init db with zod schemas
This commit is contained in:
parent
b9f27eff66
commit
e201b43fd4
|
|
@ -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;
|
||||||
Loading…
Reference in New Issue