mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
docs: update public schemas
This commit is contained in:
parent
d08cfee5b4
commit
96feaf3cbe
1 changed files with 94 additions and 6 deletions
|
@ -13,15 +13,17 @@
|
||||||
- [archivedSponsorTimes](#archivedsponsortimes)
|
- [archivedSponsorTimes](#archivedsponsortimes)
|
||||||
- [ratings](#ratings)
|
- [ratings](#ratings)
|
||||||
- [userFeatures](#userFeatures)
|
- [userFeatures](#userFeatures)
|
||||||
|
- [shadowBannedIPs](#shadowBannedIPs)
|
||||||
- [titles](#titles)
|
- [titles](#titles)
|
||||||
- [titleVotes](#titleVotes)
|
- [titleVotes](#titleVotes)
|
||||||
- [thumbnails](#thumbnails)
|
- [thumbnails](#thumbnails)
|
||||||
|
- [thumbnailTimestamps](#thumbnailTimestamps)
|
||||||
- [thumbnailVotes](#thumbnailVotes)
|
- [thumbnailVotes](#thumbnailVotes)
|
||||||
|
|
||||||
### vipUsers
|
### vipUsers
|
||||||
| Name | Type | |
|
| Name | Type | |
|
||||||
| -- | :--: | -- |
|
| -- | :--: | -- |
|
||||||
| userID | TEXT | not null |
|
| userID | TEXT | not null, primary key |
|
||||||
|
|
||||||
| index | field |
|
| index | field |
|
||||||
| -- | :--: |
|
| -- | :--: |
|
||||||
|
@ -37,7 +39,7 @@
|
||||||
| votes | INTEGER | not null |
|
| votes | INTEGER | not null |
|
||||||
| locked | INTEGER | not null, default '0' |
|
| locked | INTEGER | not null, default '0' |
|
||||||
| incorrectVotes | INTEGER | not null, default 1 |
|
| incorrectVotes | INTEGER | not null, default 1 |
|
||||||
| UUID | TEXT | not null, unique |
|
| UUID | TEXT | not null, unique, primary key |
|
||||||
| userID | TEXT | not null |
|
| userID | TEXT | not null |
|
||||||
| timeSubmitted | INTEGER | not null |
|
| timeSubmitted | INTEGER | not null |
|
||||||
| views | INTEGER | not null |
|
| views | INTEGER | not null |
|
||||||
|
@ -66,7 +68,7 @@
|
||||||
|
|
||||||
| Name | Type | |
|
| Name | Type | |
|
||||||
| -- | :--: | -- |
|
| -- | :--: | -- |
|
||||||
| userID | TEXT | not null |
|
| userID | TEXT | not null, primary key |
|
||||||
| userName | TEXT | not null |
|
| userName | TEXT | not null |
|
||||||
| locked | INTEGER | not nul, default '0' |
|
| locked | INTEGER | not nul, default '0' |
|
||||||
|
|
||||||
|
@ -81,6 +83,7 @@
|
||||||
| UUID | TEXT | not null |
|
| UUID | TEXT | not null |
|
||||||
| category | TEXT | not null |
|
| category | TEXT | not null |
|
||||||
| votes | INTEGER | not null, default 0 |
|
| votes | INTEGER | not null, default 0 |
|
||||||
|
| id | SERIAL | primary key
|
||||||
|
|
||||||
| index | field |
|
| index | field |
|
||||||
| -- | :--: |
|
| -- | :--: |
|
||||||
|
@ -97,6 +100,7 @@
|
||||||
| hashedVideoID | TEXT | not null, default '' |
|
| hashedVideoID | TEXT | not null, default '' |
|
||||||
| reason | TEXT | not null, default '' |
|
| reason | TEXT | not null, default '' |
|
||||||
| service | TEXT | not null, default 'YouTube' |
|
| service | TEXT | not null, default 'YouTube' |
|
||||||
|
| id | SERIAL | primary key
|
||||||
|
|
||||||
| index | field |
|
| index | field |
|
||||||
| -- | :--: |
|
| -- | :--: |
|
||||||
|
@ -111,6 +115,11 @@
|
||||||
| issuerUserID | TEXT | not null |
|
| issuerUserID | TEXT | not null |
|
||||||
| enabled | INTEGER | not null |
|
| enabled | INTEGER | not null |
|
||||||
| reason | TEXT | not null, default '' |
|
| reason | TEXT | not null, default '' |
|
||||||
|
| type | INTEGER | default 0 |
|
||||||
|
|
||||||
|
| constraint | field |
|
||||||
|
| -- | :--: |
|
||||||
|
| PRIMARY KEY | userID, issueTime |
|
||||||
|
|
||||||
| index | field |
|
| index | field |
|
||||||
| -- | :--: |
|
| -- | :--: |
|
||||||
|
@ -121,7 +130,7 @@
|
||||||
|
|
||||||
| Name | Type | |
|
| Name | Type | |
|
||||||
| -- | :--: | -- |
|
| -- | :--: | -- |
|
||||||
| userID | TEXT | not null |
|
| userID | TEXT | not null, primary key |
|
||||||
|
|
||||||
| index | field |
|
| index | field |
|
||||||
| -- | :--: |
|
| -- | :--: |
|
||||||
|
@ -151,12 +160,13 @@
|
||||||
| channelID | TEXT | not null |
|
| channelID | TEXT | not null |
|
||||||
| timeSubmitted | INTEGER | not null |
|
| timeSubmitted | INTEGER | not null |
|
||||||
| service | TEXT | not null, default 'YouTube' |
|
| service | TEXT | not null, default 'YouTube' |
|
||||||
|
| id | SERIAL | primary key
|
||||||
|
|
||||||
### config
|
### config
|
||||||
|
|
||||||
| Name | Type | |
|
| Name | Type | |
|
||||||
| -- | :--: | -- |
|
| -- | :--: | -- |
|
||||||
| key | TEXT | not null, unique |
|
| key | TEXT | not null, unique, primary key |
|
||||||
| value | TEXT | not null |
|
| value | TEXT | not null |
|
||||||
|
|
||||||
### archivedSponsorTimes
|
### archivedSponsorTimes
|
||||||
|
@ -169,7 +179,7 @@
|
||||||
| votes | INTEGER | not null |
|
| votes | INTEGER | not null |
|
||||||
| locked | INTEGER | not null, default '0' |
|
| locked | INTEGER | not null, default '0' |
|
||||||
| incorrectVotes | INTEGER | not null, default 1 |
|
| incorrectVotes | INTEGER | not null, default 1 |
|
||||||
| UUID | TEXT | not null, unique |
|
| UUID | TEXT | not null, unique, primary key |
|
||||||
| userID | TEXT | not null |
|
| userID | TEXT | not null |
|
||||||
| timeSubmitted | INTEGER | not null |
|
| timeSubmitted | INTEGER | not null |
|
||||||
| views | INTEGER | not null |
|
| views | INTEGER | not null |
|
||||||
|
@ -182,6 +192,7 @@
|
||||||
| shadowHidden | INTEGER | not null |
|
| shadowHidden | INTEGER | not null |
|
||||||
| hashedVideoID | TEXT | not null, default '', sha256 |
|
| hashedVideoID | TEXT | not null, default '', sha256 |
|
||||||
| userAgent | TEXT | not null, default '' |
|
| userAgent | TEXT | not null, default '' |
|
||||||
|
| description | TEXT | not null, default '' |
|
||||||
|
|
||||||
### ratings
|
### ratings
|
||||||
|
|
||||||
|
@ -192,6 +203,7 @@
|
||||||
| type | INTEGER | not null |
|
| type | INTEGER | not null |
|
||||||
| count | INTEGER | not null |
|
| count | INTEGER | not null |
|
||||||
| hashedVideoID | TEXT | not null |
|
| hashedVideoID | TEXT | not null |
|
||||||
|
| id | SERIAL | primary key
|
||||||
|
|
||||||
| index | field |
|
| index | field |
|
||||||
| -- | :--: |
|
| -- | :--: |
|
||||||
|
@ -200,13 +212,38 @@
|
||||||
| ratings_videoID | videoID, service |
|
| ratings_videoID | videoID, service |
|
||||||
|
|
||||||
### userFeatures
|
### userFeatures
|
||||||
|
| userID | TEXT | not null |
|
||||||
|
| feature | INTEGER | not null |
|
||||||
|
| issuerUserID | TEXT | not null |
|
||||||
|
| timeSubmitted | INTEGER | not null |
|
||||||
|
|
||||||
|
| constraint | field |
|
||||||
|
| -- | :--: |
|
||||||
|
| primary key | userID, feature |
|
||||||
|
|
||||||
| index | field |
|
| index | field |
|
||||||
| -- | :--: |
|
| -- | :--: |
|
||||||
| userFeatures_userID | userID, feature |
|
| userFeatures_userID | userID, feature |
|
||||||
|
|
||||||
|
### shadowBannedIPs
|
||||||
|
|
||||||
|
| Name | Type | |
|
||||||
|
| -- | :--: | -- |
|
||||||
|
| hashedIP | TEXT | not null, primary key |
|
||||||
|
|
||||||
### titles
|
### titles
|
||||||
|
|
||||||
|
| Name | Type | |
|
||||||
|
| -- | :--: | -- |
|
||||||
|
| videoID | TEXT | not null |
|
||||||
|
| title | TEXT | not null |
|
||||||
|
| original | INTEGER | default 0 |
|
||||||
|
| userID | TEXT | not null
|
||||||
|
| service | TEXT not null |
|
||||||
|
| hashedVideoID | TEXT | not null |
|
||||||
|
| timeSubmitted | INTEGER | not null |
|
||||||
|
| UUID | TEXT | not null, primary key
|
||||||
|
|
||||||
| index | field |
|
| index | field |
|
||||||
| -- | :--: |
|
| -- | :--: |
|
||||||
| titles_timeSubmitted | timeSubmitted |
|
| titles_timeSubmitted | timeSubmitted |
|
||||||
|
@ -215,11 +252,37 @@
|
||||||
| titles_hashedVideoID_2 | service, hashedVideoID, timeSubmitted |
|
| titles_hashedVideoID_2 | service, hashedVideoID, timeSubmitted |
|
||||||
|
|
||||||
### titleVotes
|
### titleVotes
|
||||||
|
|
||||||
|
| Name | Type | |
|
||||||
|
| -- | :--: | -- |
|
||||||
|
| UUID | TEXT | not null, primary key |
|
||||||
|
| votes | INTEGER | not null, default 0 |
|
||||||
|
| locked | INTEGER | not null, default 0 |
|
||||||
|
| shadowHidden | INTEGER | not null, default 0 |
|
||||||
|
| verification | INTEGER | default 0 |
|
||||||
|
| downvotes | INTEGER | default 0 |
|
||||||
|
| removed | INTEGER | default 0 |
|
||||||
|
|
||||||
|
| constraint | field |
|
||||||
|
| -- | :--: |
|
||||||
|
| foreign key | UUID references "titles"("UUID")
|
||||||
|
|
||||||
| index | field |
|
| index | field |
|
||||||
| -- | :--: |
|
| -- | :--: |
|
||||||
| titleVotes_votes | UUID, votes
|
| titleVotes_votes | UUID, votes
|
||||||
|
|
||||||
### thumbnails
|
### thumbnails
|
||||||
|
|
||||||
|
| Name | Type | |
|
||||||
|
| -- | :--: | -- |
|
||||||
|
| UUID | TEXT | not null |
|
||||||
|
| original | INTEGER | default 0 |
|
||||||
|
| userID | TEXT | not null |
|
||||||
|
| service | TEXT | not null |
|
||||||
|
| hashedVideoID | TEXT | not null |
|
||||||
|
| timeSubmitted | INTEGER | not null |
|
||||||
|
| UUID | TEXT | not null, primary key |
|
||||||
|
|
||||||
| index | field |
|
| index | field |
|
||||||
| -- | :--: |
|
| -- | :--: |
|
||||||
| thumbnails_timeSubmitted | timeSubmitted |
|
| thumbnails_timeSubmitted | timeSubmitted |
|
||||||
|
@ -227,7 +290,32 @@
|
||||||
| thumbnails_videoID | videoID, service |
|
| thumbnails_videoID | videoID, service |
|
||||||
| thumbnails_hashedVideoID_2 | service, hashedVideoID, timeSubmitted |
|
| thumbnails_hashedVideoID_2 | service, hashedVideoID, timeSubmitted |
|
||||||
|
|
||||||
|
### thumbnailTimestamps
|
||||||
|
|
||||||
|
| index | field |
|
||||||
|
| -- | :--: |
|
||||||
|
| UUID | TEXT | not null, primary key
|
||||||
|
| timestamp | INTEGER | not null, default 0
|
||||||
|
|
||||||
|
| constraint | field |
|
||||||
|
| -- | :--: |
|
||||||
|
| foreign key | UUID references "thumbnails"("UUID")
|
||||||
|
|
||||||
### thumbnailVotes
|
### thumbnailVotes
|
||||||
|
|
||||||
|
| index | field |
|
||||||
|
| -- | :--: |
|
||||||
|
| UUID | TEXT | not null, primary key |
|
||||||
|
| votes | INTEGER | not null, default 0 |
|
||||||
|
| locked | INTEGER |not null, default 0 |
|
||||||
|
| shadowHidden | INTEGER | not null, default 0 |
|
||||||
|
| downvotes | INTEGER | default 0 |
|
||||||
|
| removed | INTEGER | default 0 |
|
||||||
|
|
||||||
|
| constraint | field |
|
||||||
|
| -- | :--: |
|
||||||
|
| foreign key | UUID references "thumbnails"("UUID")
|
||||||
|
|
||||||
| index | field |
|
| index | field |
|
||||||
| -- | :--: |
|
| -- | :--: |
|
||||||
| thumbnailVotes_votes | UUID, votes
|
| thumbnailVotes_votes | UUID, votes
|
||||||
|
|
Loading…
Reference in a new issue