1
+ {
2
+ "id" : " 3f2a74c7-fab7-4742-a1ee-c4106ac7c9fc" ,
3
+ "prevId" : " c729a77e-d878-4ed1-b693-7282745c583d" ,
4
+ "version" : " 7" ,
5
+ "dialect" : " postgresql" ,
6
+ "tables" : {
7
+ "public.bot" : {
8
+ "name" : " bot" ,
9
+ "schema" : " " ,
10
+ "columns" : {
11
+ "id" : {
12
+ "name" : " id" ,
13
+ "type" : " text" ,
14
+ "primaryKey" : true ,
15
+ "notNull" : true
16
+ },
17
+ "user_id" : {
18
+ "name" : " user_id" ,
19
+ "type" : " text" ,
20
+ "primaryKey" : false ,
21
+ "notNull" : true
22
+ },
23
+ "botName" : {
24
+ "name" : " botName" ,
25
+ "type" : " text" ,
26
+ "primaryKey" : false ,
27
+ "notNull" : false
28
+ },
29
+ "botEmail" : {
30
+ "name" : " botEmail" ,
31
+ "type" : " text" ,
32
+ "primaryKey" : false ,
33
+ "notNull" : false
34
+ },
35
+ "botHd" : {
36
+ "name" : " botHd" ,
37
+ "type" : " text" ,
38
+ "primaryKey" : false ,
39
+ "notNull" : false
40
+ },
41
+ "botPicture" : {
42
+ "name" : " botPicture" ,
43
+ "type" : " text" ,
44
+ "primaryKey" : false ,
45
+ "notNull" : false
46
+ },
47
+ "accessToken" : {
48
+ "name" : " accessToken" ,
49
+ "type" : " text" ,
50
+ "primaryKey" : false ,
51
+ "notNull" : false
52
+ },
53
+ "refreshToken" : {
54
+ "name" : " refreshToken" ,
55
+ "type" : " text" ,
56
+ "primaryKey" : false ,
57
+ "notNull" : false
58
+ },
59
+ "createdAt" : {
60
+ "name" : " createdAt" ,
61
+ "type" : " timestamp" ,
62
+ "primaryKey" : false ,
63
+ "notNull" : false ,
64
+ "default" : " now()"
65
+ },
66
+ "updatedAt" : {
67
+ "name" : " updatedAt" ,
68
+ "type" : " timestamp" ,
69
+ "primaryKey" : false ,
70
+ "notNull" : false ,
71
+ "default" : " now()"
72
+ }
73
+ },
74
+ "indexes" : {},
75
+ "foreignKeys" : {
76
+ "bot_user_id_user_id_fk" : {
77
+ "name" : " bot_user_id_user_id_fk" ,
78
+ "tableFrom" : " bot" ,
79
+ "tableTo" : " user" ,
80
+ "columnsFrom" : [
81
+ " user_id"
82
+ ],
83
+ "columnsTo" : [
84
+ " id"
85
+ ],
86
+ "onDelete" : " no action" ,
87
+ "onUpdate" : " no action"
88
+ }
89
+ },
90
+ "compositePrimaryKeys" : {},
91
+ "uniqueConstraints" : {}
92
+ },
93
+ "public.registrations" : {
94
+ "name" : " registrations" ,
95
+ "schema" : " " ,
96
+ "columns" : {
97
+ "id" : {
98
+ "name" : " id" ,
99
+ "type" : " text" ,
100
+ "primaryKey" : true ,
101
+ "notNull" : true
102
+ },
103
+ "userName" : {
104
+ "name" : " userName" ,
105
+ "type" : " text" ,
106
+ "primaryKey" : false ,
107
+ "notNull" : true
108
+ },
109
+ "userEmail" : {
110
+ "name" : " userEmail" ,
111
+ "type" : " text" ,
112
+ "primaryKey" : false ,
113
+ "notNull" : true
114
+ },
115
+ "createdAt" : {
116
+ "name" : " createdAt" ,
117
+ "type" : " timestamp" ,
118
+ "primaryKey" : false ,
119
+ "notNull" : false ,
120
+ "default" : " now()"
121
+ }
122
+ },
123
+ "indexes" : {},
124
+ "foreignKeys" : {},
125
+ "compositePrimaryKeys" : {},
126
+ "uniqueConstraints" : {}
127
+ },
128
+ "public.session" : {
129
+ "name" : " session" ,
130
+ "schema" : " " ,
131
+ "columns" : {
132
+ "id" : {
133
+ "name" : " id" ,
134
+ "type" : " text" ,
135
+ "primaryKey" : true ,
136
+ "notNull" : true
137
+ },
138
+ "user_id" : {
139
+ "name" : " user_id" ,
140
+ "type" : " text" ,
141
+ "primaryKey" : false ,
142
+ "notNull" : true
143
+ },
144
+ "expires_at" : {
145
+ "name" : " expires_at" ,
146
+ "type" : " timestamp with time zone" ,
147
+ "primaryKey" : false ,
148
+ "notNull" : true
149
+ },
150
+ "createdAt" : {
151
+ "name" : " createdAt" ,
152
+ "type" : " timestamp" ,
153
+ "primaryKey" : false ,
154
+ "notNull" : false ,
155
+ "default" : " now()"
156
+ }
157
+ },
158
+ "indexes" : {},
159
+ "foreignKeys" : {
160
+ "session_user_id_user_id_fk" : {
161
+ "name" : " session_user_id_user_id_fk" ,
162
+ "tableFrom" : " session" ,
163
+ "tableTo" : " user" ,
164
+ "columnsFrom" : [
165
+ " user_id"
166
+ ],
167
+ "columnsTo" : [
168
+ " id"
169
+ ],
170
+ "onDelete" : " no action" ,
171
+ "onUpdate" : " no action"
172
+ }
173
+ },
174
+ "compositePrimaryKeys" : {},
175
+ "uniqueConstraints" : {}
176
+ },
177
+ "public.transcriptions" : {
178
+ "name" : " transcriptions" ,
179
+ "schema" : " " ,
180
+ "columns" : {
181
+ "id" : {
182
+ "name" : " id" ,
183
+ "type" : " uuid" ,
184
+ "primaryKey" : true ,
185
+ "notNull" : true ,
186
+ "default" : " gen_random_uuid()"
187
+ },
188
+ "user_id" : {
189
+ "name" : " user_id" ,
190
+ "type" : " text" ,
191
+ "primaryKey" : false ,
192
+ "notNull" : true
193
+ },
194
+ "translation" : {
195
+ "name" : " translation" ,
196
+ "type" : " text" ,
197
+ "primaryKey" : false ,
198
+ "notNull" : true
199
+ },
200
+ "summary" : {
201
+ "name" : " summary" ,
202
+ "type" : " text" ,
203
+ "primaryKey" : false ,
204
+ "notNull" : true
205
+ },
206
+ "segments" : {
207
+ "name" : " segments" ,
208
+ "type" : " jsonb" ,
209
+ "primaryKey" : false ,
210
+ "notNull" : true ,
211
+ "default" : " '[]'::jsonb"
212
+ },
213
+ "createdAt" : {
214
+ "name" : " createdAt" ,
215
+ "type" : " timestamp" ,
216
+ "primaryKey" : false ,
217
+ "notNull" : false ,
218
+ "default" : " now()"
219
+ },
220
+ "documentUrl" : {
221
+ "name" : " documentUrl" ,
222
+ "type" : " text" ,
223
+ "primaryKey" : false ,
224
+ "notNull" : true
225
+ },
226
+ "documentName" : {
227
+ "name" : " documentName" ,
228
+ "type" : " text" ,
229
+ "primaryKey" : false ,
230
+ "notNull" : true
231
+ },
232
+ "isDefault" : {
233
+ "name" : " isDefault" ,
234
+ "type" : " boolean" ,
235
+ "primaryKey" : false ,
236
+ "notNull" : true ,
237
+ "default" : false
238
+ },
239
+ "audioDuration" : {
240
+ "name" : " audioDuration" ,
241
+ "type" : " integer" ,
242
+ "primaryKey" : false ,
243
+ "notNull" : false
244
+ },
245
+ "user_name" : {
246
+ "name" : " user_name" ,
247
+ "type" : " text" ,
248
+ "primaryKey" : false ,
249
+ "notNull" : false
250
+ }
251
+ },
252
+ "indexes" : {},
253
+ "foreignKeys" : {
254
+ "transcriptions_user_id_user_id_fk" : {
255
+ "name" : " transcriptions_user_id_user_id_fk" ,
256
+ "tableFrom" : " transcriptions" ,
257
+ "tableTo" : " user" ,
258
+ "columnsFrom" : [
259
+ " user_id"
260
+ ],
261
+ "columnsTo" : [
262
+ " id"
263
+ ],
264
+ "onDelete" : " no action" ,
265
+ "onUpdate" : " no action"
266
+ }
267
+ },
268
+ "compositePrimaryKeys" : {},
269
+ "uniqueConstraints" : {}
270
+ },
271
+ "public.user" : {
272
+ "name" : " user" ,
273
+ "schema" : " " ,
274
+ "columns" : {
275
+ "id" : {
276
+ "name" : " id" ,
277
+ "type" : " text" ,
278
+ "primaryKey" : true ,
279
+ "notNull" : true
280
+ },
281
+ "username" : {
282
+ "name" : " username" ,
283
+ "type" : " text" ,
284
+ "primaryKey" : false ,
285
+ "notNull" : true
286
+ },
287
+ "password_hash" : {
288
+ "name" : " password_hash" ,
289
+ "type" : " text" ,
290
+ "primaryKey" : false ,
291
+ "notNull" : true
292
+ },
293
+ "name" : {
294
+ "name" : " name" ,
295
+ "type" : " text" ,
296
+ "primaryKey" : false ,
297
+ "notNull" : false
298
+ },
299
+ "contactNumber" : {
300
+ "name" : " contactNumber" ,
301
+ "type" : " text" ,
302
+ "primaryKey" : false ,
303
+ "notNull" : false
304
+ },
305
+ "role" : {
306
+ "name" : " role" ,
307
+ "type" : " text" ,
308
+ "primaryKey" : false ,
309
+ "notNull" : false
310
+ },
311
+ "createdAt" : {
312
+ "name" : " createdAt" ,
313
+ "type" : " timestamp" ,
314
+ "primaryKey" : false ,
315
+ "notNull" : false ,
316
+ "default" : " now()"
317
+ }
318
+ },
319
+ "indexes" : {},
320
+ "foreignKeys" : {},
321
+ "compositePrimaryKeys" : {},
322
+ "uniqueConstraints" : {
323
+ "user_username_unique" : {
324
+ "name" : " user_username_unique" ,
325
+ "nullsNotDistinct" : false ,
326
+ "columns" : [
327
+ " username"
328
+ ]
329
+ }
330
+ }
331
+ }
332
+ },
333
+ "enums" : {},
334
+ "schemas" : {},
335
+ "sequences" : {},
336
+ "_meta" : {
337
+ "columns" : {},
338
+ "schemas" : {},
339
+ "tables" : {}
340
+ }
341
+ }
0 commit comments