Finish reworking launcher manifest stuff
This commit is contained in:
10 files changed
+251
-229
No files matched your search
+14
-7
@@ -1,6 +1,7 @@
|
||||
import {
|
||||
bigint,
|
||||
boolean,
|
||||
char,
|
||||
int,
|
||||
longtext,
|
||||
mysqlTable,
|
||||
@@ -53,23 +54,21 @@ export const games = mysqlTable('games', {
|
||||
export const launcherVersionManifest = mysqlTable('launcherversionmanifest', {
|
||||
id: varchar('id', { length: 24 }).primaryKey().notNull(),
|
||||
displayName: text('displayName').notNull(),
|
||||
versionName: text('versionName').notNull(),
|
||||
downloads: text('downloads').default('[]').notNull(),
|
||||
releaseDate: bigint('releaseDate', { mode: 'number' }).notNull(),
|
||||
downloadUrlVersion: text('downloadUrlVersion').notNull(),
|
||||
downloadUrls: text('downloadUrls').notNull(),
|
||||
platforms: text('platforms').notNull(),
|
||||
executables: text('executables').notNull(),
|
||||
hidden: boolean('hidden').default(false).notNull(),
|
||||
game: bigint('game', { mode: 'number' })
|
||||
.default(0)
|
||||
.references(() => games.id)
|
||||
.notNull(),
|
||||
place: bigint('place', { mode: 'number' }).default(0).notNull(),
|
||||
sha512sums: text('sha512sums').default('[]').notNull(),
|
||||
sizes: text('sizes').default('[]').notNull(),
|
||||
changelog: text('changelog'),
|
||||
category: int('category').notNull().default(-1),
|
||||
lastRevision: bigint('lastRevision', { mode: 'number' }).notNull().default(0),
|
||||
downloads: bigint('downloads', { mode: 'number' }).notNull().default(0)
|
||||
downloadCount: bigint('downloadCount', { mode: 'number' })
|
||||
.notNull()
|
||||
.default(0)
|
||||
})
|
||||
|
||||
export const verifyCodes = mysqlTable('verifycodes', {
|
||||
@@ -94,6 +93,14 @@ export const resetCodes = mysqlTable('resetcodes', {
|
||||
type: int('type').notNull()
|
||||
})
|
||||
|
||||
export const cdnFiles = mysqlTable('cdnfiles', {
|
||||
id: bigint('id', { mode: 'number' }).primaryKey().autoincrement().notNull(),
|
||||
path: varchar('path', { length: 4096 }).notNull(),
|
||||
hash: char('hash', { length: 128 }).notNull(),
|
||||
size: bigint('size', { mode: 'number' }).notNull(),
|
||||
mimeType: varchar('mimeType', { length: 255 })
|
||||
})
|
||||
|
||||
// berrydashdatabase
|
||||
|
||||
export const berryDashUserData = mysqlTable('userdata', {
|
||||
|
||||
Reference in new issue
Block a user