Clarify storage limits and unify file metadata displays
This commit is contained in:
@@ -224,6 +224,17 @@ export const files = sqliteTable(
|
||||
),
|
||||
],
|
||||
);
|
||||
export const fileUploadContexts = sqliteTable(
|
||||
'file_upload_contexts',
|
||||
{
|
||||
fileId: text()
|
||||
.primaryKey()
|
||||
.references(() => files.id, { onDelete: 'cascade' }),
|
||||
context: text().notNull(),
|
||||
expiresAt: integer().notNull(),
|
||||
},
|
||||
(t) => [index('file_upload_context_expiry').on(t.expiresAt)],
|
||||
);
|
||||
export const reservations = sqliteTable(
|
||||
'quota_reservations',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user