This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"version": "5",
|
||||
"dialect": "mysql",
|
||||
"id": "2cf4c7e4-f538-499e-a5a5-9281d556bc9d",
|
||||
"prevId": "5eaf9185-8a1e-4e35-8144-553aec7ff31f",
|
||||
"prevId": "a6d95d47-4400-464e-bc53-45735dd6e3e3",
|
||||
"tables": {
|
||||
"academic_years": {
|
||||
"name": "academic_years",
|
||||
@@ -3068,4 +3068,4 @@
|
||||
"tables": {},
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"version": "5",
|
||||
"dialect": "mysql",
|
||||
"id": "5eaf9185-8a1e-4e35-8144-553aec7ff31f",
|
||||
"prevId": "3b23e056-3d79-4ea9-a03e-d1b5d56bafda",
|
||||
"id": "551f3408-945e-4f1d-984c-bfd35fe9d0ea",
|
||||
"prevId": "2cf4c7e4-f538-499e-a5a5-9281d556bc9d",
|
||||
"tables": {
|
||||
"academic_years": {
|
||||
"name": "academic_years",
|
||||
@@ -1180,6 +1180,20 @@
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"subject_id": {
|
||||
"name": "subject_id",
|
||||
"type": "varchar(128)",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"grade_id": {
|
||||
"name": "grade_id",
|
||||
"type": "varchar(128)",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"start_time": {
|
||||
"name": "start_time",
|
||||
"type": "timestamp",
|
||||
@@ -1220,7 +1234,22 @@
|
||||
"default": "(now())"
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"indexes": {
|
||||
"exams_subject_idx": {
|
||||
"name": "exams_subject_idx",
|
||||
"columns": [
|
||||
"subject_id"
|
||||
],
|
||||
"isUnique": false
|
||||
},
|
||||
"exams_grade_idx": {
|
||||
"name": "exams_grade_idx",
|
||||
"columns": [
|
||||
"grade_id"
|
||||
],
|
||||
"isUnique": false
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"exams_creator_id_users_id_fk": {
|
||||
"name": "exams_creator_id_users_id_fk",
|
||||
@@ -1234,6 +1263,32 @@
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"exams_subject_id_subjects_id_fk": {
|
||||
"name": "exams_subject_id_subjects_id_fk",
|
||||
"tableFrom": "exams",
|
||||
"tableTo": "subjects",
|
||||
"columnsFrom": [
|
||||
"subject_id"
|
||||
],
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"exams_grade_id_grades_id_fk": {
|
||||
"name": "exams_grade_id_grades_id_fk",
|
||||
"tableFrom": "exams",
|
||||
"tableTo": "grades",
|
||||
"columnsFrom": [
|
||||
"grade_id"
|
||||
],
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "no action",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {
|
||||
@@ -2009,6 +2064,13 @@
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"anchor_text": {
|
||||
"name": "anchor_text",
|
||||
"type": "varchar(255)",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"parent_id": {
|
||||
"name": "parent_id",
|
||||
"type": "varchar(128)",
|
||||
@@ -2765,14 +2827,6 @@
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"role": {
|
||||
"name": "role",
|
||||
"type": "varchar(50)",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'student'"
|
||||
},
|
||||
"password": {
|
||||
"name": "password",
|
||||
"type": "varchar(255)",
|
||||
@@ -3006,4 +3060,4 @@
|
||||
"tables": {},
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,6 +64,20 @@
|
||||
"when": 1768470966367,
|
||||
"tag": "0008_thin_madrox",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 9,
|
||||
"version": "5",
|
||||
"when": 1772162908476,
|
||||
"tag": "0009_smart_mephistopheles",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 10,
|
||||
"version": "5",
|
||||
"when": 1772439600000,
|
||||
"tag": "0010_subject_id_switch",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user