From 13d995edd2ddd2b63fa2bb492006476a489166a0 Mon Sep 17 00:00:00 2001 From: moist-webDev Date: Wed, 21 Jun 2023 21:53:03 -0400 Subject: [PATCH] created a table schema for settings --- lib/schemas.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/schemas.ts b/lib/schemas.ts index cd6c6d1..ac57784 100644 --- a/lib/schemas.ts +++ b/lib/schemas.ts @@ -89,3 +89,9 @@ export const TestTableShema = z.object({ test: z.string(), }).strict(); export type TestTable = z.infer; + +export const SettingSchema = z.object({ + id: z.string(), + value: z.string().or(z.boolean().or(z.number())) +}) +export type SettingsTable = z.infer \ No newline at end of file