From e201b43fd4d39e775b153d30d0b0cb5e1cf6f41c Mon Sep 17 00:00:00 2001 From: moist-webDev Date: Tue, 6 Jun 2023 00:19:20 -0400 Subject: [PATCH] init db with zod schemas --- lib/client.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/client.ts diff --git a/lib/client.ts b/lib/client.ts new file mode 100644 index 0000000..14ec364 --- /dev/null +++ b/lib/client.ts @@ -0,0 +1,16 @@ +import nasa from './nasa'; +import { MovieSchema, ShowSchema, TestTableShema, OtherSchema, CategorySchema} from './schemas'; + + +const tableSchemas = { + movies: MovieSchema, + shows: ShowSchema, + others: OtherSchema, + categories: CategorySchema, + test: TestTableShema, +} + + +const db:any = new nasa(tableSchemas); + +export default db; \ No newline at end of file