Schema changes

This commit is contained in:
2024-12-23 18:21:24 +05:30
parent 6c1399ddd4
commit ca8659fdef
3 changed files with 32 additions and 16 deletions

View File

@@ -31,7 +31,7 @@ export const orgModel = mongoose.model(
const orgCore = {
_id: z.string().optional(),
name: z.string().max(30),
domain: z.string().max(30),
domain: z.string().max(30).optional(),
avatar: z.string().url().optional(),
type: z.enum(["county", "builder"], {
message: "Must be county or builder",