replicate to mobile

This commit is contained in:
Peter Maquiran
2024-09-06 14:38:30 +01:00
parent 27eeebb767
commit e7887d4e5a
10 changed files with 399 additions and 79 deletions
@@ -6,6 +6,6 @@ export const BoldTableSchema = z.object({
bold: z.number()
})
export type BoldTable = z.infer<typeof BoldTableSchema>
export type BoldTable = z.infer<typeof BoldTableSchema>;
export type DexieBoldTable = EntityTable<BoldTable, 'roomId'>;
export const BoldTableColumn = 'roomId, bold'
export const BoldTableColumn = 'roomId, bold';
@@ -0,0 +1,12 @@
import { EntityTable } from 'Dexie';
import { z } from 'zod';
export const UserPhotoTableSchema = z.object({
wxUserId: z.string(),
blob: z.instanceof(Blob),
attachmentId: z.string()
})
export type UserPhotoTable = z.infer<typeof UserPhotoTableSchema>
export type DexieUserPhotoTable = EntityTable<UserPhotoTable, 'wxUserId'>;
export const UserPhotoTableColumn = 'wxUserId'