Tipos de toma backend logic

This commit is contained in:
2026-02-02 17:37:10 -06:00
parent e06941fd02
commit 6c5323906d
8 changed files with 522 additions and 6 deletions

View File

@@ -44,6 +44,11 @@ export const createProjectSchema = z.object({
.enum([ProjectStatus.ACTIVE, ProjectStatus.INACTIVE, ProjectStatus.COMPLETED])
.default(ProjectStatus.ACTIVE)
.optional(),
meter_type_id: z
.string()
.uuid('Meter type ID must be a valid UUID')
.optional()
.nullable(),
});
/**
@@ -74,6 +79,11 @@ export const updateProjectSchema = z.object({
status: z
.enum([ProjectStatus.ACTIVE, ProjectStatus.INACTIVE, ProjectStatus.COMPLETED])
.optional(),
meter_type_id: z
.string()
.uuid('Meter type ID must be a valid UUID')
.optional()
.nullable(),
});
/**