created a table schema for settings

This commit is contained in:
moist-webDev 2023-06-21 21:53:03 -04:00
parent 7918b3d9f9
commit 13d995edd2
1 changed files with 6 additions and 0 deletions

View File

@ -89,3 +89,9 @@ export const TestTableShema = z.object({
test: z.string(), test: z.string(),
}).strict(); }).strict();
export type TestTable = z.infer<typeof TestTableShema>; export type TestTable = z.infer<typeof TestTableShema>;
export const SettingSchema = z.object({
id: z.string(),
value: z.string().or(z.boolean().or(z.number()))
})
export type SettingsTable = z.infer<typeof SettingSchema>