mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 12:43:24 +00:00
Initial Commit
This commit is contained in:
commit
f3e2f01bd7
150 changed files with 13612 additions and 0 deletions
12
actions/create-card/schema.ts
Normal file
12
actions/create-card/schema.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { z } from "zod";
|
||||
|
||||
export const CreateCard = z.object({
|
||||
title: z.string({
|
||||
required_error: "Card title is required",
|
||||
invalid_type_error: "Card title must be a string",
|
||||
}).min(2, {
|
||||
message: "Card title must be at least 2 characters",
|
||||
}),
|
||||
boardId: z.string(),
|
||||
listId: z.string(),
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue