feat: add client workspace management
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { z } from 'zod';
|
||||
import {
|
||||
booleanString,
|
||||
idSchema,
|
||||
optionalEmail,
|
||||
optionalText,
|
||||
requiredText
|
||||
} from './shared.schema';
|
||||
|
||||
export const contactCreateSchema = z.object({
|
||||
clientId: requiredText('Client'),
|
||||
name: requiredText('Contact name'),
|
||||
role: optionalText(120),
|
||||
email: optionalEmail,
|
||||
phone: optionalText(80),
|
||||
isPrimary: booleanString,
|
||||
notes: optionalText(1000)
|
||||
});
|
||||
|
||||
export const contactEditSchema = contactCreateSchema.extend(idSchema.shape);
|
||||
Reference in New Issue
Block a user