Add support for github host

This commit is contained in:
Lncvrt committed 2026-03-28 17:57:11 -07:00
1 parent 1b78f36a8a
commit d7da88fc90
3 files changed
+18 -13

No files matched your search

+2 -1
View File
@@ -95,11 +95,12 @@ export const resetCodes = mysqlTable('resetcodes', {
type: int('type').notNull()
})
export const cdnFiles = mysqlTable('cdnfiles', {
export const files = mysqlTable('files', {
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(),
host: int('size').notNull().default(0),
mimeType: varchar('mimeType', { length: 255 })
})