|
24 | 24 | "maxLength": null |
25 | 25 | }, |
26 | 26 | { |
27 | | - "id": "public.Absence.absentTeacherId", |
28 | | - "name": "absentTeacherId", |
29 | | - "columnName": "absentTeacherId", |
30 | | - "type": "int4", |
| 27 | + "id": "public.Absence.lessonDate", |
| 28 | + "name": "lessonDate", |
| 29 | + "columnName": "lessonDate", |
| 30 | + "type": "timestamp", |
31 | 31 | "isRequired": true, |
32 | 32 | "kind": "scalar", |
33 | 33 | "isList": false, |
|
38 | 38 | "maxLength": null |
39 | 39 | }, |
40 | 40 | { |
41 | | - "id": "public.Absence.lessonDate", |
42 | | - "name": "lessonDate", |
43 | | - "columnName": "lessonDate", |
44 | | - "type": "timestamp", |
| 41 | + "id": "public.Absence.reasonOfAbsence", |
| 42 | + "name": "reasonOfAbsence", |
| 43 | + "columnName": "reasonOfAbsence", |
| 44 | + "type": "text", |
45 | 45 | "isRequired": true, |
46 | 46 | "kind": "scalar", |
47 | 47 | "isList": false, |
|
52 | 52 | "maxLength": null |
53 | 53 | }, |
54 | 54 | { |
55 | | - "id": "public.Absence.reasonOfAbsence", |
56 | | - "name": "reasonOfAbsence", |
57 | | - "columnName": "reasonOfAbsence", |
| 55 | + "id": "public.Absence.notes", |
| 56 | + "name": "notes", |
| 57 | + "columnName": "notes", |
58 | 58 | "type": "text", |
59 | | - "isRequired": true, |
| 59 | + "isRequired": false, |
60 | 60 | "kind": "scalar", |
61 | 61 | "isList": false, |
62 | 62 | "isGenerated": false, |
|
66 | 66 | "maxLength": null |
67 | 67 | }, |
68 | 68 | { |
69 | | - "id": "public.Absence.substituteTeacherId", |
70 | | - "name": "substituteTeacherId", |
71 | | - "columnName": "substituteTeacherId", |
72 | | - "type": "int4", |
| 69 | + "id": "public.Absence.roomNumber", |
| 70 | + "name": "roomNumber", |
| 71 | + "columnName": "roomNumber", |
| 72 | + "type": "text", |
73 | 73 | "isRequired": false, |
74 | 74 | "kind": "scalar", |
75 | 75 | "isList": false, |
|
80 | 80 | "maxLength": null |
81 | 81 | }, |
82 | 82 | { |
83 | | - "id": "public.Absence.locationId", |
84 | | - "name": "locationId", |
85 | | - "columnName": "locationId", |
| 83 | + "id": "public.Absence.absentTeacherId", |
| 84 | + "name": "absentTeacherId", |
| 85 | + "columnName": "absentTeacherId", |
86 | 86 | "type": "int4", |
87 | 87 | "isRequired": true, |
88 | 88 | "kind": "scalar", |
|
94 | 94 | "maxLength": null |
95 | 95 | }, |
96 | 96 | { |
97 | | - "id": "public.Absence.subjectId", |
98 | | - "name": "subjectId", |
99 | | - "columnName": "subjectId", |
| 97 | + "id": "public.Absence.substituteTeacherId", |
| 98 | + "name": "substituteTeacherId", |
| 99 | + "columnName": "substituteTeacherId", |
100 | 100 | "type": "int4", |
101 | | - "isRequired": true, |
| 101 | + "isRequired": false, |
102 | 102 | "kind": "scalar", |
103 | 103 | "isList": false, |
104 | 104 | "isGenerated": false, |
|
108 | 108 | "maxLength": null |
109 | 109 | }, |
110 | 110 | { |
111 | | - "id": "public.Absence.notes", |
112 | | - "name": "notes", |
113 | | - "columnName": "notes", |
114 | | - "type": "text", |
115 | | - "isRequired": false, |
| 111 | + "id": "public.Absence.locationId", |
| 112 | + "name": "locationId", |
| 113 | + "columnName": "locationId", |
| 114 | + "type": "int4", |
| 115 | + "isRequired": true, |
116 | 116 | "kind": "scalar", |
117 | 117 | "isList": false, |
118 | 118 | "isGenerated": false, |
|
122 | 122 | "maxLength": null |
123 | 123 | }, |
124 | 124 | { |
125 | | - "id": "public.Absence.roomNumber", |
126 | | - "name": "roomNumber", |
127 | | - "columnName": "roomNumber", |
128 | | - "type": "text", |
129 | | - "isRequired": false, |
| 125 | + "id": "public.Absence.subjectId", |
| 126 | + "name": "subjectId", |
| 127 | + "columnName": "subjectId", |
| 128 | + "type": "int4", |
| 129 | + "isRequired": true, |
130 | 130 | "kind": "scalar", |
131 | 131 | "isList": false, |
132 | 132 | "isGenerated": false, |
|
675 | 675 | "tableName": "MailingList", |
676 | 676 | "fields": [ |
677 | 677 | { |
678 | | - "id": "public.MailingList.subjectId", |
679 | | - "name": "subjectId", |
680 | | - "columnName": "subjectId", |
| 678 | + "id": "public.MailingList.userId", |
| 679 | + "name": "userId", |
| 680 | + "columnName": "userId", |
681 | 681 | "type": "int4", |
682 | 682 | "isRequired": true, |
683 | 683 | "kind": "scalar", |
|
689 | 689 | "maxLength": null |
690 | 690 | }, |
691 | 691 | { |
692 | | - "id": "public.MailingList.userId", |
693 | | - "name": "userId", |
694 | | - "columnName": "userId", |
| 692 | + "id": "public.MailingList.subjectId", |
| 693 | + "name": "subjectId", |
| 694 | + "columnName": "subjectId", |
695 | 695 | "type": "int4", |
696 | 696 | "isRequired": true, |
697 | 697 | "kind": "scalar", |
|
819 | 819 | "maxLength": null |
820 | 820 | }, |
821 | 821 | { |
822 | | - "id": "public.Subject.colorGroupId", |
823 | | - "name": "colorGroupId", |
824 | | - "columnName": "colorGroupId", |
825 | | - "type": "int4", |
| 822 | + "id": "public.Subject.archived", |
| 823 | + "name": "archived", |
| 824 | + "columnName": "archived", |
| 825 | + "type": "bool", |
826 | 826 | "isRequired": true, |
827 | 827 | "kind": "scalar", |
828 | 828 | "isList": false, |
829 | 829 | "isGenerated": false, |
830 | 830 | "sequence": false, |
831 | | - "hasDefaultValue": false, |
| 831 | + "hasDefaultValue": true, |
832 | 832 | "isId": false, |
833 | 833 | "maxLength": null |
834 | 834 | }, |
835 | 835 | { |
836 | | - "id": "public.Subject.archived", |
837 | | - "name": "archived", |
838 | | - "columnName": "archived", |
839 | | - "type": "bool", |
| 836 | + "id": "public.Subject.colorGroupId", |
| 837 | + "name": "colorGroupId", |
| 838 | + "columnName": "colorGroupId", |
| 839 | + "type": "int4", |
840 | 840 | "isRequired": true, |
841 | 841 | "kind": "scalar", |
842 | 842 | "isList": false, |
843 | 843 | "isGenerated": false, |
844 | 844 | "sequence": false, |
845 | | - "hasDefaultValue": true, |
| 845 | + "hasDefaultValue": false, |
846 | 846 | "isId": false, |
847 | 847 | "maxLength": null |
848 | 848 | }, |
|
1019 | 1019 | "maxLength": null |
1020 | 1020 | }, |
1021 | 1021 | { |
1022 | | - "id": "public.User.role", |
1023 | | - "name": "role", |
1024 | | - "columnName": "role", |
1025 | | - "type": "Role", |
1026 | | - "isRequired": true, |
| 1022 | + "id": "public.User.profilePicture", |
| 1023 | + "name": "profilePicture", |
| 1024 | + "columnName": "profilePicture", |
| 1025 | + "type": "text", |
| 1026 | + "isRequired": false, |
1027 | 1027 | "kind": "scalar", |
1028 | 1028 | "isList": false, |
1029 | 1029 | "isGenerated": false, |
1030 | 1030 | "sequence": false, |
1031 | | - "hasDefaultValue": true, |
| 1031 | + "hasDefaultValue": false, |
1032 | 1032 | "isId": false, |
1033 | 1033 | "maxLength": null |
1034 | 1034 | }, |
1035 | 1035 | { |
1036 | | - "id": "public.User.profilePicture", |
1037 | | - "name": "profilePicture", |
1038 | | - "columnName": "profilePicture", |
1039 | | - "type": "text", |
1040 | | - "isRequired": false, |
| 1036 | + "id": "public.User.role", |
| 1037 | + "name": "role", |
| 1038 | + "columnName": "role", |
| 1039 | + "type": "Role", |
| 1040 | + "isRequired": true, |
1041 | 1041 | "kind": "scalar", |
1042 | 1042 | "isList": false, |
1043 | 1043 | "isGenerated": false, |
1044 | 1044 | "sequence": false, |
1045 | | - "hasDefaultValue": false, |
| 1045 | + "hasDefaultValue": true, |
1046 | 1046 | "isId": false, |
1047 | 1047 | "maxLength": null |
1048 | 1048 | }, |
|
1218 | 1218 | "nullNotDistinct": false |
1219 | 1219 | } |
1220 | 1220 | ] |
1221 | | - }, |
1222 | | - "_prisma_migrations": { |
1223 | | - "id": "public._prisma_migrations", |
1224 | | - "schemaName": "public", |
1225 | | - "tableName": "_prisma_migrations", |
1226 | | - "fields": [ |
1227 | | - { |
1228 | | - "id": "public._prisma_migrations.id", |
1229 | | - "name": "id", |
1230 | | - "columnName": "id", |
1231 | | - "type": "varchar", |
1232 | | - "isRequired": true, |
1233 | | - "kind": "scalar", |
1234 | | - "isList": false, |
1235 | | - "isGenerated": false, |
1236 | | - "sequence": false, |
1237 | | - "hasDefaultValue": false, |
1238 | | - "isId": true, |
1239 | | - "maxLength": 36 |
1240 | | - }, |
1241 | | - { |
1242 | | - "id": "public._prisma_migrations.checksum", |
1243 | | - "name": "checksum", |
1244 | | - "columnName": "checksum", |
1245 | | - "type": "varchar", |
1246 | | - "isRequired": true, |
1247 | | - "kind": "scalar", |
1248 | | - "isList": false, |
1249 | | - "isGenerated": false, |
1250 | | - "sequence": false, |
1251 | | - "hasDefaultValue": false, |
1252 | | - "isId": false, |
1253 | | - "maxLength": 64 |
1254 | | - }, |
1255 | | - { |
1256 | | - "id": "public._prisma_migrations.finished_at", |
1257 | | - "name": "finished_at", |
1258 | | - "columnName": "finished_at", |
1259 | | - "type": "timestamptz", |
1260 | | - "isRequired": false, |
1261 | | - "kind": "scalar", |
1262 | | - "isList": false, |
1263 | | - "isGenerated": false, |
1264 | | - "sequence": false, |
1265 | | - "hasDefaultValue": false, |
1266 | | - "isId": false, |
1267 | | - "maxLength": null |
1268 | | - }, |
1269 | | - { |
1270 | | - "id": "public._prisma_migrations.migration_name", |
1271 | | - "name": "migration_name", |
1272 | | - "columnName": "migration_name", |
1273 | | - "type": "varchar", |
1274 | | - "isRequired": true, |
1275 | | - "kind": "scalar", |
1276 | | - "isList": false, |
1277 | | - "isGenerated": false, |
1278 | | - "sequence": false, |
1279 | | - "hasDefaultValue": false, |
1280 | | - "isId": false, |
1281 | | - "maxLength": 255 |
1282 | | - }, |
1283 | | - { |
1284 | | - "id": "public._prisma_migrations.logs", |
1285 | | - "name": "logs", |
1286 | | - "columnName": "logs", |
1287 | | - "type": "text", |
1288 | | - "isRequired": false, |
1289 | | - "kind": "scalar", |
1290 | | - "isList": false, |
1291 | | - "isGenerated": false, |
1292 | | - "sequence": false, |
1293 | | - "hasDefaultValue": false, |
1294 | | - "isId": false, |
1295 | | - "maxLength": null |
1296 | | - }, |
1297 | | - { |
1298 | | - "id": "public._prisma_migrations.rolled_back_at", |
1299 | | - "name": "rolled_back_at", |
1300 | | - "columnName": "rolled_back_at", |
1301 | | - "type": "timestamptz", |
1302 | | - "isRequired": false, |
1303 | | - "kind": "scalar", |
1304 | | - "isList": false, |
1305 | | - "isGenerated": false, |
1306 | | - "sequence": false, |
1307 | | - "hasDefaultValue": false, |
1308 | | - "isId": false, |
1309 | | - "maxLength": null |
1310 | | - }, |
1311 | | - { |
1312 | | - "id": "public._prisma_migrations.started_at", |
1313 | | - "name": "started_at", |
1314 | | - "columnName": "started_at", |
1315 | | - "type": "timestamptz", |
1316 | | - "isRequired": true, |
1317 | | - "kind": "scalar", |
1318 | | - "isList": false, |
1319 | | - "isGenerated": false, |
1320 | | - "sequence": false, |
1321 | | - "hasDefaultValue": true, |
1322 | | - "isId": false, |
1323 | | - "maxLength": null |
1324 | | - }, |
1325 | | - { |
1326 | | - "id": "public._prisma_migrations.applied_steps_count", |
1327 | | - "name": "applied_steps_count", |
1328 | | - "columnName": "applied_steps_count", |
1329 | | - "type": "int4", |
1330 | | - "isRequired": true, |
1331 | | - "kind": "scalar", |
1332 | | - "isList": false, |
1333 | | - "isGenerated": false, |
1334 | | - "sequence": false, |
1335 | | - "hasDefaultValue": true, |
1336 | | - "isId": false, |
1337 | | - "maxLength": null |
1338 | | - } |
1339 | | - ], |
1340 | | - "uniqueConstraints": [ |
1341 | | - { |
1342 | | - "name": "_prisma_migrations_pkey", |
1343 | | - "fields": ["id"], |
1344 | | - "nullNotDistinct": false |
1345 | | - } |
1346 | | - ] |
1347 | 1221 | } |
1348 | 1222 | }, |
1349 | 1223 | "enums": { |
|
0 commit comments