mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-02 09:48:22 +00:00
first commit
This commit is contained in:
12
lib/schemas.ts
Normal file
12
lib/schemas.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { z } from "zod";
|
||||
export const signUpFormSchema = z.object({
|
||||
name: z.string().min(2, { message: "Name is required." }),
|
||||
id_card: z
|
||||
.string()
|
||||
.min(2, { message: "ID Card is required" })
|
||||
.regex(/^[A][0-9]{6}$/, "Please enter a valid phone ID Card number."),
|
||||
island: z.string().min(2, { message: "Island is required." }),
|
||||
house_name: z.string().min(5, { message: "House name is required." }),
|
||||
dob: z.coerce.date({ message: "Date of birth is required." }),
|
||||
phoneNumber: z.string().min(7, { message: "Phone number is required." }),
|
||||
});
|
Reference in New Issue
Block a user