mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
add interface
This commit is contained in:
+2
-2
@@ -17,11 +17,11 @@ const tableSchema = z.object({
|
||||
expirationDate: z.any(),
|
||||
roomType: z.any()
|
||||
})
|
||||
export type Table = z.infer<typeof tableSchema>
|
||||
export type TableRoom = z.infer<typeof tableSchema>
|
||||
|
||||
// Database declaration (move this to its own module also)
|
||||
export const roomDataSource = new Dexie('FriendDatabase') as Dexie & {
|
||||
room: EntityTable<Table, 'id'>;
|
||||
room: EntityTable<TableRoom, 'id'>;
|
||||
};
|
||||
|
||||
roomDataSource.version(1).stores({
|
||||
|
||||
Reference in New Issue
Block a user