This commit is contained in:
2026-03-19 18:00:46 +07:00
commit f72ad2769f
98 changed files with 9299 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import { z } from "zod";
export const createTableSchema = z.object({
name: z.string().min(1),
columns: z
.array(
z.object({
name: z.string().min(1),
type: z.string().min(1),
nullable: z.boolean().default(true),
primaryKey: z.boolean().default(false),
defaultValue: z.string().nullable().optional()
})
)
.min(1),
groupSlug: z.string().min(1).optional()
});