Skip to content

Commit 8e5084c

Browse files
docs: update private schemas
1 parent 96feaf3 commit 8e5084c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

DatabaseSchema.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@
339339
| hashedIP | TEXT | not null |
340340
| type | INTEGER | not null |
341341
| originalVoteType | INTEGER | not null | # Since type was reused to also specify the number of votes removed when less than 0, this is being used for the actual type
342+
| id | SERIAL | primary key |
342343

343344
| index | field |
344345
| -- | :--: |
@@ -353,6 +354,7 @@
353354
| hashedIP | TEXT | not null |
354355
| category | TEXT | not null |
355356
| timeSubmitted | INTEGER | not null |
357+
| id | SERIAL | primary key |
356358

357359
| index | field |
358360
| -- | :--: |
@@ -366,6 +368,7 @@
366368
| hashedIP | TEXT | not null |
367369
| timeSubmitted | INTEGER | not null |
368370
| service | TEXT | not null, default 'YouTube' |
371+
| id | SERIAL | primary key |
369372

370373
| index | field |
371374
| -- | :--: |
@@ -375,7 +378,7 @@
375378

376379
| Name | Type | |
377380
| -- | :--: | -- |
378-
| key | TEXT | not null |
381+
| key | TEXT | not null, primary key |
379382
| value | TEXT | not null |
380383

381384
### ratings
@@ -388,6 +391,7 @@
388391
| type | INTEGER | not null |
389392
| timeSubmitted | INTEGER | not null |
390393
| hashedIP | TEXT | not null |
394+
| id | SERIAL | primary key |
391395

392396
| index | field |
393397
| -- | :--: |
@@ -400,6 +404,7 @@
400404
| targetUserID | TEXT | not null |
401405
| enabled | BOOLEAN | not null |
402406
| updatedAt | INTEGER | not null |
407+
| id | SERIAL | primary key |
403408

404409
### userNameLogs
405410

@@ -409,4 +414,5 @@
409414
| newUserName | TEXT | not null |
410415
| oldUserName | TEXT | not null |
411416
| updatedByAdmin | BOOLEAN | not null |
412-
| updatedAt | INTEGER | not null |
417+
| updatedAt | INTEGER | not null |
418+
| id | SERIAL | primary key |

0 commit comments

Comments
 (0)