Add RUT registration & Validation, bulk aprove

This commit is contained in:
2025-12-28 19:57:42 -03:00
parent b91de06e29
commit f6564ec2a6
4 changed files with 214 additions and 66 deletions

View File

@@ -14,6 +14,19 @@ model User {
password String
role String @default("USER") // ADMIN, USER
plates Plate[]
people Person[]
}
model Person {
id Int @id @default(autoincrement())
rut String @unique
name String
status String @default("PENDING") // PENDING, APPROVED, DENIED
startDate DateTime
endDate DateTime
createdAt DateTime @default(now())
addedBy User? @relation(fields: [addedById], references: [id])
addedById Int?
}
model Plate {