feat: Schwarmkontrolle-Protokoll
Neues SwarmControlCheck-Modul: strukturierte Weiselzellenkontrollen pro Volk mit Zahl/Verdeckelungsstatus der Zellen, Schwarmstimmung, ergriffener Maßnahme und optionalem naechsten Kontrolltermin. Frontend: neue Karte auf der Volk-Detailseite, Erfassungsformular unter /swarm-control/new sowie Quick-Add-Eintrag.
This commit is contained in:
1 parent
4609a0f9ec
commit
1a7331b6b2
19 files changed
+1076
No files matched your search
@@ -39,6 +39,7 @@ model User {
|
||||
|
||||
inspections Inspection[]
|
||||
varroaMeasurements VarroaMeasurement[]
|
||||
swarmControlChecks SwarmControlCheck[]
|
||||
treatments Treatment[]
|
||||
feedings Feeding[]
|
||||
harvests Harvest[]
|
||||
@@ -175,6 +176,7 @@ model Colony {
|
||||
lineageAsResult ColonyLineage[] @relation("LineageTo")
|
||||
inspections Inspection[]
|
||||
varroaMeasurements VarroaMeasurement[]
|
||||
swarmControlChecks SwarmControlCheck[]
|
||||
treatments Treatment[]
|
||||
feedings Feeding[]
|
||||
harvests HarvestColony[]
|
||||
@@ -457,6 +459,43 @@ model VarroaMeasurement {
|
||||
@@index([colonyId, date])
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Schwarmkontrolle (jenseits Lastenheft: strukturiertes Protokoll für
|
||||
// Weiselzellenkontrollen während der Schwarmzeit)
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
enum SwarmMood {
|
||||
NONE
|
||||
LOW
|
||||
HIGH
|
||||
}
|
||||
|
||||
enum SwarmControlAction {
|
||||
NONE
|
||||
QUEEN_CELLS_REMOVED
|
||||
ARTIFICIAL_SWARM
|
||||
COLONY_DIVIDED
|
||||
OTHER
|
||||
}
|
||||
|
||||
model SwarmControlCheck {
|
||||
id String @id @default(cuid())
|
||||
colonyId String
|
||||
colony Colony @relation(fields: [colonyId], references: [id])
|
||||
userId String
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
date DateTime
|
||||
queenCellsFound Int?
|
||||
queenCellsCapped Boolean @default(false)
|
||||
swarmMood SwarmMood @default(NONE)
|
||||
actionTaken SwarmControlAction @default(NONE)
|
||||
notes String?
|
||||
nextCheckDate DateTime?
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
@@index([colonyId, date])
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Behandlung / Tierarzneimittel (Abschnitt 4.11)
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user