From d7df07dbc2d5e58762f3546b2e43b0b3dd347b1c Mon Sep 17 00:00:00 2001 From: josedario87 Date: Fri, 30 May 2025 13:08:02 -0600 Subject: [PATCH] agregada relacion tarea-planilla en el schema prisma --- api/prisma/schema.prisma | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/api/prisma/schema.prisma b/api/prisma/schema.prisma index d1c3c07..d7f4d7f 100644 --- a/api/prisma/schema.prisma +++ b/api/prisma/schema.prisma @@ -46,8 +46,6 @@ model Planilla { model TareaRealizada { id BigInt @id @default(autoincrement()) - empleado_id BigInt - planilla_id BigInt? titulo String precio Float? estado String @default("pendiente") @@ -57,10 +55,14 @@ model TareaRealizada { tipo String @default("") fecha_anulado DateTime? + planilla_id BigInt? + planilla Planilla? @relation(fields: [planilla_id], references: [id]) + + empleado_id BigInt + empleado Cliente @relation(fields: [empleado_id], references: [id]) + creador_id String @default(uuid()) @db.Uuid anulador_id String? @db.Uuid - - empleado Cliente @relation(fields: [empleado_id], references: [id]) } model Asistencia {