|
1 | 1 | {
|
2 | 2 | "version": "6",
|
3 | 3 | "dialect": "sqlite",
|
4 |
| - "id": "aa587fca-e182-4e52-9c64-fdccc3b58d8f", |
| 4 | + "id": "7ceb7a0a-5b91-4343-b3ae-a30bb904d647", |
5 | 5 | "prevId": "00000000-0000-0000-0000-000000000000",
|
6 | 6 | "tables": {
|
| 7 | + "course_lessons": { |
| 8 | + "name": "course_lessons", |
| 9 | + "columns": { |
| 10 | + "id": { |
| 11 | + "name": "id", |
| 12 | + "type": "integer", |
| 13 | + "primaryKey": true, |
| 14 | + "notNull": true, |
| 15 | + "autoincrement": false |
| 16 | + }, |
| 17 | + "name": { |
| 18 | + "name": "name", |
| 19 | + "type": "text", |
| 20 | + "primaryKey": false, |
| 21 | + "notNull": false, |
| 22 | + "autoincrement": false |
| 23 | + }, |
| 24 | + "courseId": { |
| 25 | + "name": "courseId", |
| 26 | + "type": "integer", |
| 27 | + "primaryKey": false, |
| 28 | + "notNull": true, |
| 29 | + "autoincrement": false |
| 30 | + }, |
| 31 | + "body": { |
| 32 | + "name": "body", |
| 33 | + "type": "text", |
| 34 | + "primaryKey": false, |
| 35 | + "notNull": true, |
| 36 | + "autoincrement": false |
| 37 | + }, |
| 38 | + "created_at": { |
| 39 | + "name": "created_at", |
| 40 | + "type": "text", |
| 41 | + "primaryKey": false, |
| 42 | + "notNull": true, |
| 43 | + "autoincrement": false, |
| 44 | + "default": "(unixepoch())" |
| 45 | + } |
| 46 | + }, |
| 47 | + "indexes": {}, |
| 48 | + "foreignKeys": { |
| 49 | + "course_lessons_courseId_courses_id_fk": { |
| 50 | + "name": "course_lessons_courseId_courses_id_fk", |
| 51 | + "tableFrom": "course_lessons", |
| 52 | + "tableTo": "courses", |
| 53 | + "columnsFrom": [ |
| 54 | + "courseId" |
| 55 | + ], |
| 56 | + "columnsTo": [ |
| 57 | + "id" |
| 58 | + ], |
| 59 | + "onDelete": "no action", |
| 60 | + "onUpdate": "no action" |
| 61 | + } |
| 62 | + }, |
| 63 | + "compositePrimaryKeys": {}, |
| 64 | + "uniqueConstraints": {} |
| 65 | + }, |
| 66 | + "courses": { |
| 67 | + "name": "courses", |
| 68 | + "columns": { |
| 69 | + "id": { |
| 70 | + "name": "id", |
| 71 | + "type": "integer", |
| 72 | + "primaryKey": true, |
| 73 | + "notNull": true, |
| 74 | + "autoincrement": false |
| 75 | + }, |
| 76 | + "name": { |
| 77 | + "name": "name", |
| 78 | + "type": "text", |
| 79 | + "primaryKey": false, |
| 80 | + "notNull": false, |
| 81 | + "autoincrement": false |
| 82 | + }, |
| 83 | + "creator_id": { |
| 84 | + "name": "creator_id", |
| 85 | + "type": "integer", |
| 86 | + "primaryKey": false, |
| 87 | + "notNull": false, |
| 88 | + "autoincrement": false |
| 89 | + }, |
| 90 | + "description": { |
| 91 | + "name": "description", |
| 92 | + "type": "text", |
| 93 | + "primaryKey": false, |
| 94 | + "notNull": true, |
| 95 | + "autoincrement": false |
| 96 | + }, |
| 97 | + "created_at": { |
| 98 | + "name": "created_at", |
| 99 | + "type": "text", |
| 100 | + "primaryKey": false, |
| 101 | + "notNull": true, |
| 102 | + "autoincrement": false, |
| 103 | + "default": "(unixepoch())" |
| 104 | + } |
| 105 | + }, |
| 106 | + "indexes": {}, |
| 107 | + "foreignKeys": { |
| 108 | + "courses_creator_id_users_id_fk": { |
| 109 | + "name": "courses_creator_id_users_id_fk", |
| 110 | + "tableFrom": "courses", |
| 111 | + "tableTo": "users", |
| 112 | + "columnsFrom": [ |
| 113 | + "creator_id" |
| 114 | + ], |
| 115 | + "columnsTo": [ |
| 116 | + "id" |
| 117 | + ], |
| 118 | + "onDelete": "no action", |
| 119 | + "onUpdate": "no action" |
| 120 | + } |
| 121 | + }, |
| 122 | + "compositePrimaryKeys": {}, |
| 123 | + "uniqueConstraints": {} |
| 124 | + }, |
7 | 125 | "users": {
|
8 | 126 | "name": "users",
|
9 | 127 | "columns": {
|
|
27 | 145 | "primaryKey": false,
|
28 | 146 | "notNull": true,
|
29 | 147 | "autoincrement": false
|
| 148 | + }, |
| 149 | + "updated_at": { |
| 150 | + "name": "updated_at", |
| 151 | + "type": "text", |
| 152 | + "primaryKey": false, |
| 153 | + "notNull": false, |
| 154 | + "autoincrement": false |
| 155 | + }, |
| 156 | + "created_at": { |
| 157 | + "name": "created_at", |
| 158 | + "type": "text", |
| 159 | + "primaryKey": false, |
| 160 | + "notNull": true, |
| 161 | + "autoincrement": false, |
| 162 | + "default": "(unixepoch())" |
30 | 163 | }
|
31 | 164 | },
|
32 | 165 | "indexes": {
|
|
0 commit comments