mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
183 lines
3.8 KiB
Markdown
183 lines
3.8 KiB
Markdown
|
# SponsorTimesDB
|
||
|
|
||
|
[vipUsers](###vipUsers)
|
||
|
[sponsorTimes](###sponsorTimes)
|
||
|
[userNames](###userNames)
|
||
|
[categoryVotes](###categoryVotes)
|
||
|
[lockCategories](###lockCategories)
|
||
|
[warnings](###warnings)
|
||
|
[shadowBannedUsers](###shadowBannedUsers)
|
||
|
[unlistedVideos](###unlistedVideos)
|
||
|
[config](###config)
|
||
|
|
||
|
### vipUsers
|
||
|
| Name | Type | |
|
||
|
| -- | :--: | -- |
|
||
|
| userID | TEXT | not null |
|
||
|
|
||
|
| index | field |
|
||
|
| -- | :--: |
|
||
|
| vipUsers_index | userID |
|
||
|
|
||
|
### sponsorTimes
|
||
|
|
||
|
| Name | Type | |
|
||
|
| -- | :--: | -- |
|
||
|
| videoID | TEXT | not null |
|
||
|
| startTime | REAL | not null |
|
||
|
| endTime | REAL | not null |
|
||
|
| votes | INTEGER | not null |
|
||
|
| locked | INTEGER | not nul, default '0' |
|
||
|
| incorrectVotes | INTEGER | not null, default 1 |
|
||
|
| UUID | TEXT | not null, unique |
|
||
|
| userID | TEXT | not null |
|
||
|
| timeSubmitted | INTEGER | not null |
|
||
|
| views | INTEGER | not null |
|
||
|
| category | TEXT | not null, default 'sponsor' |
|
||
|
| service | TEXT | not nul, default 'Youtube' |
|
||
|
| videoDuration | INTEGER | not nul, default '0' |
|
||
|
| hidden | INTEGER | not nul, default '0' |
|
||
|
| reputation | REAL | not nul, default '0' |
|
||
|
| shadowHidden | INTEGER | not null |
|
||
|
| hashedVideoID | TEXT | not null, default '', sha256 |
|
||
|
|
||
|
| index | field |
|
||
|
| -- | :--: |
|
||
|
| sponsorTime_timeSubmitted | timeSubmitted |
|
||
|
| sponsorTime_userID | userID |
|
||
|
| sponsorTimes_UUID | UUID |
|
||
|
| sponsorTimes_hashedVideoID_gin| hashedVideoID, category |
|
||
|
| sponsorTimes_videoID | videoID, service, category, timeSubmitted |
|
||
|
|
||
|
### userNames
|
||
|
|
||
|
| Name | Type | |
|
||
|
| -- | :--: | -- |
|
||
|
| userID | TEXT | not null |
|
||
|
| userName | TEXT | not null |
|
||
|
| locked | INTEGER | not nul, default '0' |
|
||
|
|
||
|
| index | field |
|
||
|
| -- | :--: |
|
||
|
| userNames_userID | userID |
|
||
|
|
||
|
### categoryVotes
|
||
|
|
||
|
| Name | Type | |
|
||
|
| -- | :--: | -- |
|
||
|
| UUID | TEXT | not null |
|
||
|
| category | TEXT | not null |
|
||
|
| votes | INTEGER | not null, default 0 |
|
||
|
|
||
|
| index | field |
|
||
|
| -- | :--: |
|
||
|
| categoryVotes_UUID_public | UUID, category |
|
||
|
|
||
|
### lockCategories
|
||
|
|
||
|
| Name | Type | |
|
||
|
| -- | :--: | -- |
|
||
|
| videoID | TEXT | not null |
|
||
|
| userID | TEXT | not null |
|
||
|
| category | TEXT | not null |
|
||
|
|
||
|
| index | field |
|
||
|
| -- | :--: |
|
||
|
| noSegments_videoID | videoID |
|
||
|
|
||
|
### warnings
|
||
|
|
||
|
| Name | Type | |
|
||
|
| -- | :--: | -- |
|
||
|
| userID | TEXT | not null |
|
||
|
| issueTime | INTEGER | not null |
|
||
|
| issuerUserID | TEXT | not null |
|
||
|
| enabled | INTEGER | not null |
|
||
|
|
||
|
| index | field |
|
||
|
| -- | :--: |
|
||
|
| warnings_index | userID |
|
||
|
| warnings_issueTime | issueTime |
|
||
|
|
||
|
### shadowBannedUsers
|
||
|
|
||
|
| Name | Type | |
|
||
|
| -- | :--: | -- |
|
||
|
| userID | TEXT | not null |
|
||
|
|
||
|
| index | field |
|
||
|
| -- | :--: |
|
||
|
| shadowBannedUsers_index | userID |
|
||
|
|
||
|
### unlistedVideos
|
||
|
|
||
|
| Name | Type | |
|
||
|
| -- | :--: | -- |
|
||
|
| videoID | TEXT | not null |
|
||
|
| year | TEXT | not null |
|
||
|
| views | TEXT | not null |
|
||
|
| channelID | TEXT | not null |
|
||
|
| timeSubmitted | INTEGER | not null |
|
||
|
|
||
|
### config
|
||
|
|
||
|
| Name | Type | |
|
||
|
| -- | :--: | -- |
|
||
|
| key | TEXT | not null, unique |
|
||
|
| value | TEXT | not null |
|
||
|
|
||
|
|
||
|
|
||
|
# Private
|
||
|
|
||
|
[vote](###vote)
|
||
|
[categoryVotes](###categoryVotes)
|
||
|
[sponsorTimes](###sponsorTimes)
|
||
|
[config](###config)
|
||
|
|
||
|
### vote
|
||
|
|
||
|
| Name | Type | |
|
||
|
| -- | :--: | -- |
|
||
|
| UUID | TEXT | not null |
|
||
|
| userID | TEXT | not null |
|
||
|
| hashedIP | TEXT | not null |
|
||
|
| type | INTEGER | not null |
|
||
|
|
||
|
| index | field |
|
||
|
| -- | :--: |
|
||
|
| votes_userID | UUID |
|
||
|
|
||
|
### categoryVotes
|
||
|
|
||
|
| Name | Type | |
|
||
|
| -- | :--: | -- |
|
||
|
| UUID | TEXT | not null |
|
||
|
| userID | TEXT | not null |
|
||
|
| hashedIP | TEXT | not null |
|
||
|
| category | TEXT | not null |
|
||
|
| timeSubmitted | INTEGER | not null |
|
||
|
|
||
|
| index | field |
|
||
|
| -- | :--: |
|
||
|
| categoryVotes_UUID | UUID, userID, hasedIP, category |
|
||
|
|
||
|
### sponsorTimes
|
||
|
|
||
|
| Name | Type | |
|
||
|
| -- | :--: | -- |
|
||
|
| videoID | TEXT | not null |
|
||
|
| hashedIP | TEXT | not null |
|
||
|
| timeSubmitted | INTEGER | not null |
|
||
|
|
||
|
| index | field |
|
||
|
| -- | :--: |
|
||
|
| sponsorTimes_hashedIP | hashedIP |
|
||
|
| privateDB_sponsorTimes_videoID | videoID |
|
||
|
|
||
|
### config
|
||
|
|
||
|
| Name | Type | |
|
||
|
| -- | :--: | -- |
|
||
|
| key | TEXT | not null |
|
||
|
| value | TEXT | not null |
|