mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
14 lines
410 B
TypeScript
14 lines
410 B
TypeScript
|
|
import { z } from "zod";
|
||
|
|
import { EntityTable } from 'Dexie';
|
||
|
|
|
||
|
|
export const AttachmentTableSchema = z.object({
|
||
|
|
id: z.string(),
|
||
|
|
$id: z.string(),
|
||
|
|
messageId: z.string(),
|
||
|
|
file: z.string(),
|
||
|
|
})
|
||
|
|
|
||
|
|
export type AttachmentTable = z.infer<typeof AttachmentTableSchema>
|
||
|
|
export type DexieAttachmentsTableSchema = EntityTable<AttachmentTable, '$id'>;
|
||
|
|
export const AttachmentTableColumn = '++$id, id, messageId, file'
|