feat: updates

This commit is contained in:
qier222 2022-06-12 15:29:14 +08:00
parent 196a974a64
commit 8f4c3d8e5b
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
24 changed files with 572 additions and 93 deletions

View file

@ -18,6 +18,7 @@ export const enum Tables {
AccountData = 'AccountData',
CoverColor = 'CoverColor',
AppData = 'AppData',
VideoCover = 'VideoCover',
}
interface CommonTableStructure {
id: number
@ -50,16 +51,22 @@ export interface TablesStructures {
| 'qq'
| 'bilibili'
| 'joox'
updatedAt: number
queriedAt: number
}
[Tables.CoverColor]: {
id: number
color: string
queriedAt: number
}
[Tables.AppData]: {
id: 'appVersion' | 'skippedVersion'
value: string
}
[Tables.VideoCover]: {
id: number
url: string
queriedAt: number
}
}
type TableNames = keyof TablesStructures