mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-06 07:28:53 -05:00
10 lines
229 B
TypeScript
10 lines
229 B
TypeScript
import { z } from "zod";
|
|
|
|
export const insertUserSchema = z.object({
|
|
username: z.string(),
|
|
password: z.string(),
|
|
});
|
|
|
|
export type InsertUser = z.infer<typeof insertUserSchema>;
|
|
export type User = InsertUser & { id: number };
|