681 lines
16 KiB
JSON
681 lines
16 KiB
JSON
{
|
|
"id": "bd317b68-1c46-4e83-b4d3-a14f68751afb",
|
|
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
"version": "7",
|
|
"dialect": "postgresql",
|
|
"tables": {
|
|
"public.ajustements": {
|
|
"name": "ajustements",
|
|
"schema": "",
|
|
"columns": {
|
|
"numEtud": {
|
|
"name": "numEtud",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"idUE": {
|
|
"name": "idUE",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"valeur": {
|
|
"name": "valeur",
|
|
"type": "double precision",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"ajustements_numEtud_students_numEtud_fk": {
|
|
"name": "ajustements_numEtud_students_numEtud_fk",
|
|
"tableFrom": "ajustements",
|
|
"tableTo": "students",
|
|
"columnsFrom": [
|
|
"numEtud"
|
|
],
|
|
"columnsTo": [
|
|
"numEtud"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"ajustements_idUE_ues_id_fk": {
|
|
"name": "ajustements_idUE_ues_id_fk",
|
|
"tableFrom": "ajustements",
|
|
"tableTo": "ues",
|
|
"columnsFrom": [
|
|
"idUE"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"ajustements_numEtud_idUE_pk": {
|
|
"name": "ajustements_numEtud_idUE_pk",
|
|
"columns": [
|
|
"numEtud",
|
|
"idUE"
|
|
]
|
|
}
|
|
},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.enseignements": {
|
|
"name": "enseignements",
|
|
"schema": "",
|
|
"columns": {
|
|
"idProf": {
|
|
"name": "idProf",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"idModule": {
|
|
"name": "idModule",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"idPromo": {
|
|
"name": "idPromo",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"enseignements_idProf_users_id_fk": {
|
|
"name": "enseignements_idProf_users_id_fk",
|
|
"tableFrom": "enseignements",
|
|
"tableTo": "users",
|
|
"columnsFrom": [
|
|
"idProf"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"enseignements_idModule_modules_id_fk": {
|
|
"name": "enseignements_idModule_modules_id_fk",
|
|
"tableFrom": "enseignements",
|
|
"tableTo": "modules",
|
|
"columnsFrom": [
|
|
"idModule"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"enseignements_idPromo_promotions_idPromo_fk": {
|
|
"name": "enseignements_idPromo_promotions_idPromo_fk",
|
|
"tableFrom": "enseignements",
|
|
"tableTo": "promotions",
|
|
"columnsFrom": [
|
|
"idPromo"
|
|
],
|
|
"columnsTo": [
|
|
"idPromo"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"enseignements_idProf_idModule_idPromo_pk": {
|
|
"name": "enseignements_idProf_idModule_idPromo_pk",
|
|
"columns": [
|
|
"idProf",
|
|
"idModule",
|
|
"idPromo"
|
|
]
|
|
}
|
|
},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.mobility": {
|
|
"name": "mobility",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"studentId": {
|
|
"name": "studentId",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"startDate": {
|
|
"name": "startDate",
|
|
"type": "date",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"endDate": {
|
|
"name": "endDate",
|
|
"type": "date",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"weeksCount": {
|
|
"name": "weeksCount",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"destinationCountry": {
|
|
"name": "destinationCountry",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"destinationName": {
|
|
"name": "destinationName",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"mobilityStatus": {
|
|
"name": "mobilityStatus",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": "'N/A'"
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"mobility_studentId_students_numEtud_fk": {
|
|
"name": "mobility_studentId_students_numEtud_fk",
|
|
"tableFrom": "mobility",
|
|
"tableTo": "students",
|
|
"columnsFrom": [
|
|
"studentId"
|
|
],
|
|
"columnsTo": [
|
|
"numEtud"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.modules": {
|
|
"name": "modules",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"nom": {
|
|
"name": "nom",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.notes": {
|
|
"name": "notes",
|
|
"schema": "",
|
|
"columns": {
|
|
"numEtud": {
|
|
"name": "numEtud",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"idModule": {
|
|
"name": "idModule",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"note": {
|
|
"name": "note",
|
|
"type": "double precision",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"notes_numEtud_students_numEtud_fk": {
|
|
"name": "notes_numEtud_students_numEtud_fk",
|
|
"tableFrom": "notes",
|
|
"tableTo": "students",
|
|
"columnsFrom": [
|
|
"numEtud"
|
|
],
|
|
"columnsTo": [
|
|
"numEtud"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"notes_idModule_modules_id_fk": {
|
|
"name": "notes_idModule_modules_id_fk",
|
|
"tableFrom": "notes",
|
|
"tableTo": "modules",
|
|
"columnsFrom": [
|
|
"idModule"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"notes_numEtud_idModule_pk": {
|
|
"name": "notes_numEtud_idModule_pk",
|
|
"columns": [
|
|
"numEtud",
|
|
"idModule"
|
|
]
|
|
}
|
|
},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.permissions": {
|
|
"name": "permissions",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"nom": {
|
|
"name": "nom",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.promotions": {
|
|
"name": "promotions",
|
|
"schema": "",
|
|
"columns": {
|
|
"idPromo": {
|
|
"name": "idPromo",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"annee": {
|
|
"name": "annee",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.role_permissions": {
|
|
"name": "role_permissions",
|
|
"schema": "",
|
|
"columns": {
|
|
"idRole": {
|
|
"name": "idRole",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"idPermission": {
|
|
"name": "idPermission",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"role_permissions_idRole_roles_id_fk": {
|
|
"name": "role_permissions_idRole_roles_id_fk",
|
|
"tableFrom": "role_permissions",
|
|
"tableTo": "roles",
|
|
"columnsFrom": [
|
|
"idRole"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"role_permissions_idPermission_permissions_id_fk": {
|
|
"name": "role_permissions_idPermission_permissions_id_fk",
|
|
"tableFrom": "role_permissions",
|
|
"tableTo": "permissions",
|
|
"columnsFrom": [
|
|
"idPermission"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"role_permissions_idRole_idPermission_pk": {
|
|
"name": "role_permissions_idRole_idPermission_pk",
|
|
"columns": [
|
|
"idRole",
|
|
"idPermission"
|
|
]
|
|
}
|
|
},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.roles": {
|
|
"name": "roles",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"nom": {
|
|
"name": "nom",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.students": {
|
|
"name": "students",
|
|
"schema": "",
|
|
"columns": {
|
|
"numEtud": {
|
|
"name": "numEtud",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"nom": {
|
|
"name": "nom",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"prenom": {
|
|
"name": "prenom",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"idPromo": {
|
|
"name": "idPromo",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"students_idPromo_promotions_idPromo_fk": {
|
|
"name": "students_idPromo_promotions_idPromo_fk",
|
|
"tableFrom": "students",
|
|
"tableTo": "promotions",
|
|
"columnsFrom": [
|
|
"idPromo"
|
|
],
|
|
"columnsTo": [
|
|
"idPromo"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.ue_modules": {
|
|
"name": "ue_modules",
|
|
"schema": "",
|
|
"columns": {
|
|
"idModule": {
|
|
"name": "idModule",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"idUE": {
|
|
"name": "idUE",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"idPromo": {
|
|
"name": "idPromo",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"coeff": {
|
|
"name": "coeff",
|
|
"type": "double precision",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"ue_modules_idModule_modules_id_fk": {
|
|
"name": "ue_modules_idModule_modules_id_fk",
|
|
"tableFrom": "ue_modules",
|
|
"tableTo": "modules",
|
|
"columnsFrom": [
|
|
"idModule"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"ue_modules_idUE_ues_id_fk": {
|
|
"name": "ue_modules_idUE_ues_id_fk",
|
|
"tableFrom": "ue_modules",
|
|
"tableTo": "ues",
|
|
"columnsFrom": [
|
|
"idUE"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"ue_modules_idPromo_promotions_idPromo_fk": {
|
|
"name": "ue_modules_idPromo_promotions_idPromo_fk",
|
|
"tableFrom": "ue_modules",
|
|
"tableTo": "promotions",
|
|
"columnsFrom": [
|
|
"idPromo"
|
|
],
|
|
"columnsTo": [
|
|
"idPromo"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"ue_modules_idModule_idUE_idPromo_pk": {
|
|
"name": "ue_modules_idModule_idUE_idPromo_pk",
|
|
"columns": [
|
|
"idModule",
|
|
"idUE",
|
|
"idPromo"
|
|
]
|
|
}
|
|
},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.ues": {
|
|
"name": "ues",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"nom": {
|
|
"name": "nom",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.users": {
|
|
"name": "users",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"nom": {
|
|
"name": "nom",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"prenom": {
|
|
"name": "prenom",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"idRole": {
|
|
"name": "idRole",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"users_idRole_roles_id_fk": {
|
|
"name": "users_idRole_roles_id_fk",
|
|
"tableFrom": "users",
|
|
"tableTo": "roles",
|
|
"columnsFrom": [
|
|
"idRole"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
}
|
|
},
|
|
"enums": {},
|
|
"schemas": {},
|
|
"sequences": {},
|
|
"roles": {},
|
|
"policies": {},
|
|
"views": {},
|
|
"_meta": {
|
|
"columns": {},
|
|
"schemas": {},
|
|
"tables": {}
|
|
}
|
|
}
|