feat(db): add SallePret and PosteEmprunt infrastructure models
This commit is contained in:
@@ -16,6 +16,7 @@ model Campus {
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
utilisateurs Utilisateur[]
|
||||
sallesPret SallePret[]
|
||||
|
||||
@@map("campus")
|
||||
}
|
||||
@@ -58,3 +59,30 @@ model CategorieMateriel {
|
||||
|
||||
@@map("categorie_materiel")
|
||||
}
|
||||
|
||||
model SallePret {
|
||||
id Int @id @default(autoincrement())
|
||||
nom String
|
||||
localisation String
|
||||
campusId Int @map("campus_id")
|
||||
actif Boolean @default(true)
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
campus Campus @relation(fields: [campusId], references: [id])
|
||||
postes PosteEmprunt[]
|
||||
|
||||
@@map("salle_pret")
|
||||
}
|
||||
|
||||
model PosteEmprunt {
|
||||
id Int @id @default(autoincrement())
|
||||
nom String
|
||||
identifiantPoste String @map("identifiant_poste")
|
||||
sallePretId Int @map("salle_pret_id")
|
||||
actif Boolean @default(true)
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
sallePret SallePret @relation(fields: [sallePretId], references: [id])
|
||||
|
||||
@@map("poste_emprunt")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user