|
1 | 1 | { |
2 | | - "id": "9ddaada5-a097-4fc3-a118-1d764288a820", |
| 2 | + "id": "088d4291-46ce-417a-9cac-c473a85afa9f", |
3 | 3 | "prevId": "00000000-0000-0000-0000-000000000000", |
4 | 4 | "version": "7", |
5 | 5 | "dialect": "postgresql", |
6 | 6 | "tables": { |
| 7 | + "public.participants": { |
| 8 | + "name": "participants", |
| 9 | + "schema": "", |
| 10 | + "columns": { |
| 11 | + "id": { |
| 12 | + "name": "id", |
| 13 | + "type": "uuid", |
| 14 | + "primaryKey": true, |
| 15 | + "notNull": true, |
| 16 | + "default": "gen_random_uuid()" |
| 17 | + }, |
| 18 | + "room_id": { |
| 19 | + "name": "room_id", |
| 20 | + "type": "uuid", |
| 21 | + "primaryKey": false, |
| 22 | + "notNull": true |
| 23 | + }, |
| 24 | + "user_id": { |
| 25 | + "name": "user_id", |
| 26 | + "type": "uuid", |
| 27 | + "primaryKey": false, |
| 28 | + "notNull": true |
| 29 | + }, |
| 30 | + "identity": { |
| 31 | + "name": "identity", |
| 32 | + "type": "text", |
| 33 | + "primaryKey": false, |
| 34 | + "notNull": true |
| 35 | + }, |
| 36 | + "is_admin": { |
| 37 | + "name": "is_admin", |
| 38 | + "type": "boolean", |
| 39 | + "primaryKey": false, |
| 40 | + "notNull": false, |
| 41 | + "default": false |
| 42 | + }, |
| 43 | + "joined_at": { |
| 44 | + "name": "joined_at", |
| 45 | + "type": "timestamp", |
| 46 | + "primaryKey": false, |
| 47 | + "notNull": true, |
| 48 | + "default": "now()" |
| 49 | + }, |
| 50 | + "left_at": { |
| 51 | + "name": "left_at", |
| 52 | + "type": "timestamp", |
| 53 | + "primaryKey": false, |
| 54 | + "notNull": false |
| 55 | + } |
| 56 | + }, |
| 57 | + "indexes": {}, |
| 58 | + "foreignKeys": { |
| 59 | + "participants_room_id_rooms_id_fk": { |
| 60 | + "name": "participants_room_id_rooms_id_fk", |
| 61 | + "tableFrom": "participants", |
| 62 | + "tableTo": "rooms", |
| 63 | + "columnsFrom": [ |
| 64 | + "room_id" |
| 65 | + ], |
| 66 | + "columnsTo": [ |
| 67 | + "id" |
| 68 | + ], |
| 69 | + "onDelete": "no action", |
| 70 | + "onUpdate": "no action" |
| 71 | + }, |
| 72 | + "participants_user_id_users_id_fk": { |
| 73 | + "name": "participants_user_id_users_id_fk", |
| 74 | + "tableFrom": "participants", |
| 75 | + "tableTo": "users", |
| 76 | + "columnsFrom": [ |
| 77 | + "user_id" |
| 78 | + ], |
| 79 | + "columnsTo": [ |
| 80 | + "id" |
| 81 | + ], |
| 82 | + "onDelete": "no action", |
| 83 | + "onUpdate": "no action" |
| 84 | + } |
| 85 | + }, |
| 86 | + "compositePrimaryKeys": {}, |
| 87 | + "uniqueConstraints": {}, |
| 88 | + "policies": {}, |
| 89 | + "checkConstraints": {}, |
| 90 | + "isRLSEnabled": false |
| 91 | + }, |
| 92 | + "public.rooms": { |
| 93 | + "name": "rooms", |
| 94 | + "schema": "", |
| 95 | + "columns": { |
| 96 | + "id": { |
| 97 | + "name": "id", |
| 98 | + "type": "uuid", |
| 99 | + "primaryKey": true, |
| 100 | + "notNull": true, |
| 101 | + "default": "gen_random_uuid()" |
| 102 | + }, |
| 103 | + "name": { |
| 104 | + "name": "name", |
| 105 | + "type": "text", |
| 106 | + "primaryKey": false, |
| 107 | + "notNull": true |
| 108 | + }, |
| 109 | + "sid": { |
| 110 | + "name": "sid", |
| 111 | + "type": "text", |
| 112 | + "primaryKey": false, |
| 113 | + "notNull": true |
| 114 | + }, |
| 115 | + "created_by": { |
| 116 | + "name": "created_by", |
| 117 | + "type": "uuid", |
| 118 | + "primaryKey": false, |
| 119 | + "notNull": true |
| 120 | + }, |
| 121 | + "max_participants": { |
| 122 | + "name": "max_participants", |
| 123 | + "type": "integer", |
| 124 | + "primaryKey": false, |
| 125 | + "notNull": false, |
| 126 | + "default": 20 |
| 127 | + }, |
| 128 | + "created_at": { |
| 129 | + "name": "created_at", |
| 130 | + "type": "timestamp", |
| 131 | + "primaryKey": false, |
| 132 | + "notNull": true, |
| 133 | + "default": "now()" |
| 134 | + }, |
| 135 | + "updated_at": { |
| 136 | + "name": "updated_at", |
| 137 | + "type": "timestamp", |
| 138 | + "primaryKey": false, |
| 139 | + "notNull": true, |
| 140 | + "default": "now()" |
| 141 | + }, |
| 142 | + "deleted_at": { |
| 143 | + "name": "deleted_at", |
| 144 | + "type": "timestamp", |
| 145 | + "primaryKey": false, |
| 146 | + "notNull": false |
| 147 | + } |
| 148 | + }, |
| 149 | + "indexes": {}, |
| 150 | + "foreignKeys": { |
| 151 | + "rooms_created_by_users_id_fk": { |
| 152 | + "name": "rooms_created_by_users_id_fk", |
| 153 | + "tableFrom": "rooms", |
| 154 | + "tableTo": "users", |
| 155 | + "columnsFrom": [ |
| 156 | + "created_by" |
| 157 | + ], |
| 158 | + "columnsTo": [ |
| 159 | + "id" |
| 160 | + ], |
| 161 | + "onDelete": "no action", |
| 162 | + "onUpdate": "no action" |
| 163 | + } |
| 164 | + }, |
| 165 | + "compositePrimaryKeys": {}, |
| 166 | + "uniqueConstraints": { |
| 167 | + "rooms_sid_unique": { |
| 168 | + "name": "rooms_sid_unique", |
| 169 | + "nullsNotDistinct": false, |
| 170 | + "columns": [ |
| 171 | + "sid" |
| 172 | + ] |
| 173 | + } |
| 174 | + }, |
| 175 | + "policies": {}, |
| 176 | + "checkConstraints": {}, |
| 177 | + "isRLSEnabled": false |
| 178 | + }, |
7 | 179 | "public.users": { |
8 | 180 | "name": "users", |
9 | 181 | "schema": "", |
10 | 182 | "columns": { |
11 | 183 | "id": { |
12 | 184 | "name": "id", |
13 | | - "type": "serial", |
| 185 | + "type": "uuid", |
14 | 186 | "primaryKey": true, |
15 | | - "notNull": true |
| 187 | + "notNull": true, |
| 188 | + "default": "gen_random_uuid()" |
16 | 189 | }, |
17 | 190 | "name": { |
18 | 191 | "name": "name", |
|
0 commit comments