This commit is contained in:
eoao
2025-04-26 17:24:39 +08:00
commit 24ba4772e6
107 changed files with 13612 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { sqliteTable, integer, text } from 'drizzle-orm/sqlite-core';
import { sql } from 'drizzle-orm';
export const att = sqliteTable('attachments', {
attId: integer('att_id').primaryKey({ autoIncrement: true }),
userId: integer('user_id').notNull(),
emailId: integer('email_id').notNull(),
accountId: integer('account_id').notNull(),
key: text('key').notNull(),
filename: text('filename'),
mimeType: text('mime_type'),
size: integer('size'),
disposition: text('disposition'),
related: text('related'),
contentId: text('content_id'),
encoding: text('encoding'),
createTime: text('create_time').default(sql`CURRENT_TIMESTAMP`).notNull(),
});