tempest.games 0.2.11 → 0.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,539 @@
1
+ {
2
+ "id": "d49057b3-f77f-4176-a47b-ce5b1db20614",
3
+ "prevId": "d1f9be67-f652-4910-83e0-58a795a7415d",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.accountActions": {
8
+ "name": "accountActions",
9
+ "schema": "",
10
+ "columns": {
11
+ "userId": {
12
+ "name": "userId",
13
+ "type": "uuid",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "action": {
18
+ "name": "action",
19
+ "type": "accountAction",
20
+ "typeSchema": "public",
21
+ "primaryKey": false,
22
+ "notNull": true
23
+ },
24
+ "code": {
25
+ "name": "code",
26
+ "type": "varchar(254)",
27
+ "primaryKey": false,
28
+ "notNull": true
29
+ },
30
+ "wrongCodeCount": {
31
+ "name": "wrongCodeCount",
32
+ "type": "integer",
33
+ "primaryKey": false,
34
+ "notNull": true,
35
+ "default": 0
36
+ },
37
+ "expiresAt": {
38
+ "name": "expiresAt",
39
+ "type": "timestamp with time zone",
40
+ "primaryKey": false,
41
+ "notNull": true
42
+ },
43
+ "expiresAtIso": {
44
+ "name": "expiresAtIso",
45
+ "type": "varchar(24)",
46
+ "primaryKey": false,
47
+ "notNull": true
48
+ }
49
+ },
50
+ "indexes": {},
51
+ "foreignKeys": {
52
+ "accountActions_userId_users_id_fk": {
53
+ "name": "accountActions_userId_users_id_fk",
54
+ "tableFrom": "accountActions",
55
+ "tableTo": "users",
56
+ "columnsFrom": [
57
+ "userId"
58
+ ],
59
+ "columnsTo": [
60
+ "id"
61
+ ],
62
+ "onDelete": "no action",
63
+ "onUpdate": "no action"
64
+ }
65
+ },
66
+ "compositePrimaryKeys": {},
67
+ "uniqueConstraints": {},
68
+ "policies": {},
69
+ "checkConstraints": {},
70
+ "isRLSEnabled": false
71
+ },
72
+ "public.banishedIps": {
73
+ "name": "banishedIps",
74
+ "schema": "",
75
+ "columns": {
76
+ "ip": {
77
+ "name": "ip",
78
+ "type": "varchar(45)",
79
+ "primaryKey": true,
80
+ "notNull": true
81
+ },
82
+ "reason": {
83
+ "name": "reason",
84
+ "type": "varchar(2048)",
85
+ "primaryKey": false,
86
+ "notNull": true
87
+ },
88
+ "banishedAt": {
89
+ "name": "banishedAt",
90
+ "type": "timestamp with time zone",
91
+ "primaryKey": false,
92
+ "notNull": true,
93
+ "default": "now()"
94
+ },
95
+ "banishedAtIso": {
96
+ "name": "banishedAtIso",
97
+ "type": "varchar(24)",
98
+ "primaryKey": false,
99
+ "notNull": true,
100
+ "default": "SELECT TO_CHAR(NOW() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
101
+ },
102
+ "banishedUntil": {
103
+ "name": "banishedUntil",
104
+ "type": "timestamp with time zone",
105
+ "primaryKey": false,
106
+ "notNull": false
107
+ },
108
+ "banishedUntilIso": {
109
+ "name": "banishedUntilIso",
110
+ "type": "varchar(24)",
111
+ "primaryKey": false,
112
+ "notNull": false
113
+ }
114
+ },
115
+ "indexes": {},
116
+ "foreignKeys": {},
117
+ "compositePrimaryKeys": {},
118
+ "uniqueConstraints": {},
119
+ "policies": {},
120
+ "checkConstraints": {},
121
+ "isRLSEnabled": false
122
+ },
123
+ "public.games": {
124
+ "name": "games",
125
+ "schema": "",
126
+ "columns": {
127
+ "id": {
128
+ "name": "id",
129
+ "type": "uuid",
130
+ "primaryKey": true,
131
+ "notNull": true,
132
+ "default": "gen_random_uuid()"
133
+ }
134
+ },
135
+ "indexes": {},
136
+ "foreignKeys": {},
137
+ "compositePrimaryKeys": {},
138
+ "uniqueConstraints": {},
139
+ "policies": {},
140
+ "checkConstraints": {},
141
+ "isRLSEnabled": false
142
+ },
143
+ "public.passwordResetAttempts": {
144
+ "name": "passwordResetAttempts",
145
+ "schema": "",
146
+ "columns": {
147
+ "id": {
148
+ "name": "id",
149
+ "type": "uuid",
150
+ "primaryKey": true,
151
+ "notNull": true,
152
+ "default": "gen_random_uuid()"
153
+ },
154
+ "userId": {
155
+ "name": "userId",
156
+ "type": "uuid",
157
+ "primaryKey": false,
158
+ "notNull": true
159
+ },
160
+ "requestedIp": {
161
+ "name": "requestedIp",
162
+ "type": "varchar(45)",
163
+ "primaryKey": false,
164
+ "notNull": true
165
+ },
166
+ "requestedAt": {
167
+ "name": "requestedAt",
168
+ "type": "timestamp with time zone",
169
+ "primaryKey": false,
170
+ "notNull": true,
171
+ "default": "now()"
172
+ },
173
+ "requestedAtIso": {
174
+ "name": "requestedAtIso",
175
+ "type": "varchar(24)",
176
+ "primaryKey": false,
177
+ "notNull": true,
178
+ "default": "SELECT TO_CHAR(NOW() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
179
+ },
180
+ "succeededIp": {
181
+ "name": "succeededIp",
182
+ "type": "varchar(45)",
183
+ "primaryKey": false,
184
+ "notNull": false
185
+ },
186
+ "succeededAt": {
187
+ "name": "succeededAt",
188
+ "type": "timestamp with time zone",
189
+ "primaryKey": false,
190
+ "notNull": false
191
+ },
192
+ "succeededAtIso": {
193
+ "name": "succeededAtIso",
194
+ "type": "varchar(24)",
195
+ "primaryKey": false,
196
+ "notNull": false
197
+ },
198
+ "verificationMethod": {
199
+ "name": "verificationMethod",
200
+ "type": "twoFactorMethod",
201
+ "typeSchema": "public",
202
+ "primaryKey": false,
203
+ "notNull": true
204
+ }
205
+ },
206
+ "indexes": {},
207
+ "foreignKeys": {
208
+ "passwordResetAttempts_userId_users_id_fk": {
209
+ "name": "passwordResetAttempts_userId_users_id_fk",
210
+ "tableFrom": "passwordResetAttempts",
211
+ "tableTo": "users",
212
+ "columnsFrom": [
213
+ "userId"
214
+ ],
215
+ "columnsTo": [
216
+ "id"
217
+ ],
218
+ "onDelete": "cascade",
219
+ "onUpdate": "no action"
220
+ }
221
+ },
222
+ "compositePrimaryKeys": {},
223
+ "uniqueConstraints": {},
224
+ "policies": {},
225
+ "checkConstraints": {},
226
+ "isRLSEnabled": false
227
+ },
228
+ "public.players": {
229
+ "name": "players",
230
+ "schema": "",
231
+ "columns": {
232
+ "userId": {
233
+ "name": "userId",
234
+ "type": "uuid",
235
+ "primaryKey": false,
236
+ "notNull": true
237
+ },
238
+ "gameId": {
239
+ "name": "gameId",
240
+ "type": "uuid",
241
+ "primaryKey": false,
242
+ "notNull": true
243
+ },
244
+ "score": {
245
+ "name": "score",
246
+ "type": "integer",
247
+ "primaryKey": false,
248
+ "notNull": true
249
+ }
250
+ },
251
+ "indexes": {},
252
+ "foreignKeys": {
253
+ "players_userId_users_id_fk": {
254
+ "name": "players_userId_users_id_fk",
255
+ "tableFrom": "players",
256
+ "tableTo": "users",
257
+ "columnsFrom": [
258
+ "userId"
259
+ ],
260
+ "columnsTo": [
261
+ "id"
262
+ ],
263
+ "onDelete": "cascade",
264
+ "onUpdate": "no action"
265
+ },
266
+ "players_gameId_games_id_fk": {
267
+ "name": "players_gameId_games_id_fk",
268
+ "tableFrom": "players",
269
+ "tableTo": "games",
270
+ "columnsFrom": [
271
+ "gameId"
272
+ ],
273
+ "columnsTo": [
274
+ "id"
275
+ ],
276
+ "onDelete": "cascade",
277
+ "onUpdate": "no action"
278
+ }
279
+ },
280
+ "compositePrimaryKeys": {
281
+ "players_userId_gameId_pk": {
282
+ "name": "players_userId_gameId_pk",
283
+ "columns": [
284
+ "userId",
285
+ "gameId"
286
+ ]
287
+ }
288
+ },
289
+ "uniqueConstraints": {},
290
+ "policies": {},
291
+ "checkConstraints": {},
292
+ "isRLSEnabled": false
293
+ },
294
+ "public.signInHistory": {
295
+ "name": "signInHistory",
296
+ "schema": "",
297
+ "columns": {
298
+ "id": {
299
+ "name": "id",
300
+ "type": "uuid",
301
+ "primaryKey": true,
302
+ "notNull": true,
303
+ "default": "gen_random_uuid()"
304
+ },
305
+ "userId": {
306
+ "name": "userId",
307
+ "type": "uuid",
308
+ "primaryKey": false,
309
+ "notNull": false
310
+ },
311
+ "signInTime": {
312
+ "name": "signInTime",
313
+ "type": "timestamp with time zone",
314
+ "primaryKey": false,
315
+ "notNull": true,
316
+ "default": "now()"
317
+ },
318
+ "signInTimeIso": {
319
+ "name": "signInTimeIso",
320
+ "type": "varchar(24)",
321
+ "primaryKey": false,
322
+ "notNull": true,
323
+ "default": "SELECT TO_CHAR(NOW() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
324
+ },
325
+ "ipAddress": {
326
+ "name": "ipAddress",
327
+ "type": "varchar(45)",
328
+ "primaryKey": false,
329
+ "notNull": true
330
+ },
331
+ "userAgent": {
332
+ "name": "userAgent",
333
+ "type": "varchar(1024)",
334
+ "primaryKey": false,
335
+ "notNull": false
336
+ },
337
+ "successful": {
338
+ "name": "successful",
339
+ "type": "boolean",
340
+ "primaryKey": false,
341
+ "notNull": true,
342
+ "default": false
343
+ }
344
+ },
345
+ "indexes": {},
346
+ "foreignKeys": {
347
+ "signInHistory_userId_users_id_fk": {
348
+ "name": "signInHistory_userId_users_id_fk",
349
+ "tableFrom": "signInHistory",
350
+ "tableTo": "users",
351
+ "columnsFrom": [
352
+ "userId"
353
+ ],
354
+ "columnsTo": [
355
+ "id"
356
+ ],
357
+ "onDelete": "cascade",
358
+ "onUpdate": "no action"
359
+ }
360
+ },
361
+ "compositePrimaryKeys": {},
362
+ "uniqueConstraints": {},
363
+ "policies": {},
364
+ "checkConstraints": {},
365
+ "isRLSEnabled": false
366
+ },
367
+ "public.users": {
368
+ "name": "users",
369
+ "schema": "",
370
+ "columns": {
371
+ "id": {
372
+ "name": "id",
373
+ "type": "uuid",
374
+ "primaryKey": true,
375
+ "notNull": true,
376
+ "default": "gen_random_uuid()"
377
+ },
378
+ "username": {
379
+ "name": "username",
380
+ "type": "varchar(16)",
381
+ "primaryKey": false,
382
+ "notNull": true
383
+ },
384
+ "emailOffered": {
385
+ "name": "emailOffered",
386
+ "type": "varchar(254)",
387
+ "primaryKey": false,
388
+ "notNull": true
389
+ },
390
+ "emailVerified": {
391
+ "name": "emailVerified",
392
+ "type": "varchar(254)",
393
+ "primaryKey": false,
394
+ "notNull": false
395
+ },
396
+ "password": {
397
+ "name": "password",
398
+ "type": "varchar(254)",
399
+ "primaryKey": false,
400
+ "notNull": false
401
+ },
402
+ "createdAt": {
403
+ "name": "createdAt",
404
+ "type": "timestamp with time zone",
405
+ "primaryKey": false,
406
+ "notNull": true,
407
+ "default": "now()"
408
+ },
409
+ "createdAtIso": {
410
+ "name": "createdAtIso",
411
+ "type": "varchar(24)",
412
+ "primaryKey": false,
413
+ "notNull": true,
414
+ "default": "SELECT TO_CHAR(NOW() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
415
+ },
416
+ "createdIp": {
417
+ "name": "createdIp",
418
+ "type": "varchar(45)",
419
+ "primaryKey": false,
420
+ "notNull": true
421
+ },
422
+ "isActive": {
423
+ "name": "isActive",
424
+ "type": "boolean",
425
+ "primaryKey": false,
426
+ "notNull": true,
427
+ "default": false
428
+ },
429
+ "verifiedAt": {
430
+ "name": "verifiedAt",
431
+ "type": "timestamp with time zone",
432
+ "primaryKey": false,
433
+ "notNull": false
434
+ },
435
+ "verifiedAtIso": {
436
+ "name": "verifiedAtIso",
437
+ "type": "varchar(24)",
438
+ "primaryKey": false,
439
+ "notNull": false
440
+ },
441
+ "userRole": {
442
+ "name": "userRole",
443
+ "type": "role",
444
+ "typeSchema": "public",
445
+ "primaryKey": false,
446
+ "notNull": false,
447
+ "default": "'user'"
448
+ }
449
+ },
450
+ "indexes": {
451
+ "usernameUniqueIndex": {
452
+ "name": "usernameUniqueIndex",
453
+ "columns": [
454
+ {
455
+ "expression": "lower(\"username\")",
456
+ "asc": true,
457
+ "isExpression": true,
458
+ "nulls": "last"
459
+ }
460
+ ],
461
+ "isUnique": true,
462
+ "concurrently": false,
463
+ "method": "btree",
464
+ "with": {}
465
+ },
466
+ "emailVerifiedUniqueIndex": {
467
+ "name": "emailVerifiedUniqueIndex",
468
+ "columns": [
469
+ {
470
+ "expression": "lower(\"emailVerified\")",
471
+ "asc": true,
472
+ "isExpression": true,
473
+ "nulls": "last"
474
+ }
475
+ ],
476
+ "isUnique": true,
477
+ "concurrently": false,
478
+ "method": "btree",
479
+ "with": {}
480
+ }
481
+ },
482
+ "foreignKeys": {},
483
+ "compositePrimaryKeys": {},
484
+ "uniqueConstraints": {},
485
+ "policies": {},
486
+ "checkConstraints": {},
487
+ "isRLSEnabled": false
488
+ }
489
+ },
490
+ "enums": {
491
+ "public.accountAction": {
492
+ "name": "accountAction",
493
+ "schema": "public",
494
+ "values": [
495
+ "cooldown",
496
+ "confirmEmail",
497
+ "signIn",
498
+ "resetPassword"
499
+ ]
500
+ },
501
+ "public.role": {
502
+ "name": "role",
503
+ "schema": "public",
504
+ "values": [
505
+ "admin",
506
+ "user"
507
+ ]
508
+ },
509
+ "public.trackedUserColumnName": {
510
+ "name": "trackedUserColumnName",
511
+ "schema": "public",
512
+ "values": [
513
+ "username",
514
+ "emailOffered",
515
+ "emailVerified",
516
+ "password",
517
+ "userRole"
518
+ ]
519
+ },
520
+ "public.twoFactorMethod": {
521
+ "name": "twoFactorMethod",
522
+ "schema": "public",
523
+ "values": [
524
+ "email",
525
+ "phone"
526
+ ]
527
+ }
528
+ },
529
+ "schemas": {},
530
+ "sequences": {},
531
+ "roles": {},
532
+ "policies": {},
533
+ "views": {},
534
+ "_meta": {
535
+ "columns": {},
536
+ "schemas": {},
537
+ "tables": {}
538
+ }
539
+ }