Add RUT registration & Validation, bulk aprove
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user