mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
set bold
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { EntityTable } from 'Dexie';
|
||||
import { z } from 'zod';
|
||||
|
||||
export const BoldTableSchema = z.object({
|
||||
roomId: z.string(),
|
||||
bold: z.number()
|
||||
})
|
||||
|
||||
export type BoldTable = z.infer<typeof BoldTableSchema>
|
||||
export type DexieBoldTable = EntityTable<BoldTable, 'roomId'>;
|
||||
export const BoldTableColumn = 'roomId, bold'
|
||||
@@ -2,12 +2,14 @@ import { EntityTable } from 'Dexie';
|
||||
import { z } from 'zod';
|
||||
|
||||
export const DistributionTableSchema = z.object({
|
||||
$id: z.string(),
|
||||
$messageIdMemberId: z.string().optional(),
|
||||
messageId: z.string(),
|
||||
memberId: z.number(),
|
||||
readAt: z.string().nullable(),
|
||||
deliverAt: z.string().nullable()
|
||||
deliverAt: z.string().nullable(),
|
||||
roomId: z.string(),
|
||||
})
|
||||
|
||||
export type DistributionTable = z.infer<typeof DistributionTableSchema>
|
||||
export type DexieDistributionTable = EntityTable<DistributionTable, '$id'>;
|
||||
export const DistributionTableColumn = '++$id, messageId, memberId, readAt, deliverAt'
|
||||
export type DexieDistributionTable = EntityTable<DistributionTable, '$messageIdMemberId'>;
|
||||
export const DistributionTableColumn = '$messageIdMemberId, messageId, memberId, readAt, deliverAt, roomId'
|
||||
Reference in New Issue
Block a user