Volk Überarbeittung und Englisch Varaiblen ersetzt
This commit is contained in:
1 parent
9282777ac9
commit
8520678a48
11 files changed
+231
-104
No files matched your search
@@ -65,15 +65,15 @@ model RolePermission {
|
||||
}
|
||||
|
||||
model User {
|
||||
id String @id @default(cuid())
|
||||
email String @unique
|
||||
id String @id @default(cuid())
|
||||
email String @unique
|
||||
passwordHash String
|
||||
name String
|
||||
roleId String
|
||||
role Role @relation(fields: [roleId], references: [id])
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
role Role @relation(fields: [roleId], references: [id])
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
deactivatedAt DateTime?
|
||||
|
||||
// TOTP-Secret AES-256-GCM-verschluesselt gespeichert (siehe
|
||||
@@ -209,24 +209,33 @@ enum ColonyStatus {
|
||||
MERGED
|
||||
}
|
||||
|
||||
// Fuenfstufige Zustandsskala, geteilt von Brut-, Futter- und Gesundheitsstatus.
|
||||
enum ColonyCondition {
|
||||
EXCELLENT
|
||||
GOOD
|
||||
AVERAGE
|
||||
WEAK
|
||||
CRITICAL
|
||||
}
|
||||
|
||||
model Colony {
|
||||
id String @id @default(cuid())
|
||||
code String @unique
|
||||
id String @id @default(cuid())
|
||||
code String @unique
|
||||
apiaryId String
|
||||
apiary Apiary @relation(fields: [apiaryId], references: [id])
|
||||
apiary Apiary @relation(fields: [apiaryId], references: [id])
|
||||
hiveType String?
|
||||
originText String?
|
||||
colonyType ColonyType
|
||||
status ColonyStatus @default(ACTIVE)
|
||||
status ColonyStatus @default(ACTIVE)
|
||||
strength Int?
|
||||
broodStatus String?
|
||||
feedStatus String?
|
||||
healthStatus String?
|
||||
broodStatus ColonyCondition?
|
||||
feedStatus ColonyCondition?
|
||||
healthStatus ColonyCondition?
|
||||
notes String?
|
||||
currentQueenId String? @unique
|
||||
currentQueen Queen? @relation("ColonyCurrentQueen", fields: [currentQueenId], references: [id])
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
currentQueenId String? @unique
|
||||
currentQueen Queen? @relation("ColonyCurrentQueen", fields: [currentQueenId], references: [id])
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
deactivatedAt DateTime?
|
||||
|
||||
apiaryHistory ColonyApiaryHistory[]
|
||||
|
||||
Reference in new issue
Block a user