11 lines
218 B
TypeScript
11 lines
218 B
TypeScript
import { z } from 'zod';
|
|
|
|
export const RoleSchema = z.object({
|
|
role: z.string().min(1),
|
|
});
|
|
|
|
export const UpdateMemberRoleSchema = RoleSchema.extend({
|
|
accountId: z.string().uuid(),
|
|
userId: z.string().uuid(),
|
|
});
|