Schema changes
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user