保存
This commit is contained in:
19
mail-worker/src/entity/att.js
Normal file
19
mail-worker/src/entity/att.js
Normal 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(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user