Skip to content

Commit 96dd9ec

Browse files
docs: update public indexes
1 parent 4422104 commit 96dd9ec

File tree

1 file changed

+46
-6
lines changed

1 file changed

+46
-6
lines changed

DatabaseSchema.md

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SponsorTimesDB
1+
# Public
22

33
- [vipUsers](#vipusers)
44
- [sponsorTimes](#sponsortimes)
@@ -12,6 +12,11 @@
1212
- [config](#config)
1313
- [archivedSponsorTimes](#archivedsponsortimes)
1414
- [ratings](#ratings)
15+
- [userFeatures](#userFeatures)
16+
- [titles](#titles)
17+
- [titleVotes](#titleVotes)
18+
- [thumbnails](#thumbnails)
19+
- [thumbnailVotes](#thumbnailVotes)
1520

1621
### vipUsers
1722
| Name | Type | |
@@ -52,8 +57,10 @@
5257
| sponsorTime_timeSubmitted | timeSubmitted |
5358
| sponsorTime_userID | userID |
5459
| sponsorTimes_UUID | UUID |
55-
| sponsorTimes_hashedVideoID | hashedVideoID, category |
56-
| sponsorTimes_videoID | videoID, service, category, timeSubmitted |
60+
| sponsorTimes_hashedVideoID | service, hashedVideoID, startTime |
61+
| sponsorTimes_videoID | service, videoID, startTime |
62+
| sponsorTimes_videoID_category | videoID, category |
63+
| sponsorTimes_description_gin | description, category |
5764

5865
### userNames
5966

@@ -107,7 +114,7 @@
107114

108115
| index | field |
109116
| -- | :--: |
110-
| warnings_index | userID |
117+
| warnings_index | userID, issueTime, enabled |
111118
| warnings_issueTime | issueTime |
112119

113120
### shadowBannedUsers
@@ -131,8 +138,8 @@
131138

132139
| index | field |
133140
| -- | :--: |
134-
| videoInfo_videoID | timeSubmitted |
135-
| videoInfo_channelID | userID |
141+
| videoInfo_videoID | videoID |
142+
| videoInfo_channelID | channelID |
136143

137144
### unlistedVideos
138145

@@ -192,6 +199,39 @@
192199
| ratings_hashedVideoID | hashedVideoID, service |
193200
| ratings_videoID | videoID, service |
194201

202+
### userFeatures
203+
204+
| index | field |
205+
| -- | :--: |
206+
| userFeatures_userID | userID, feature |
207+
208+
### titles
209+
210+
| index | field |
211+
| -- | :--: |
212+
| titles_timeSubmitted | timeSubmitted |
213+
| titles_userID_timeSubmitted | videoID, service, userID, timeSubmitted |
214+
| titles_videoID | videoID, service |
215+
| titles_hashedVideoID_2 | service, hashedVideoID, timeSubmitted |
216+
217+
### titleVotes
218+
| index | field |
219+
| -- | :--: |
220+
| titleVotes_votes | UUID, votes
221+
222+
### thumbnails
223+
| index | field |
224+
| -- | :--: |
225+
| thumbnails_timeSubmitted | timeSubmitted |
226+
| thumbnails_votes_timeSubmitted | videoID, service, userID, timeSubmitted |
227+
| thumbnails_videoID | videoID, service |
228+
| thumbnails_hashedVideoID_2 | service, hashedVideoID, timeSubmitted |
229+
230+
### thumbnailVotes
231+
| index | field |
232+
| -- | :--: |
233+
| thumbnailVotes_votes | UUID, votes
234+
195235
# Private
196236

197237
- [votes](#votes)

0 commit comments

Comments
 (0)