feat: mongoose integration

This commit is contained in:
2023-07-04 23:06:32 -03:00
parent da3e6cb101
commit 6971eeda3c
9 changed files with 62 additions and 7 deletions

View File

@@ -0,0 +1 @@
export * from './user';

View File

@@ -0,0 +1,3 @@
import { type z } from 'zod';
export type StringInput = string | z.ZodString | { type: StringConstructor; [key: string]: any };

View File

@@ -0,0 +1,7 @@
import { type StringInput } from './primitives';
export interface UserType {
email: StringInput;
name: StringInput;
password: StringInput;
}