init db with zod schemas

This commit is contained in:
moist-webDev 2023-06-06 00:19:20 -04:00
parent b9f27eff66
commit e201b43fd4
1 changed files with 16 additions and 0 deletions

16
lib/client.ts Normal file
View File

@ -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;