Create decent server skeleton

This commit is contained in:
2025-10-22 15:20:13 -04:00
parent 390f637c48
commit 520c0a8280
4 changed files with 53 additions and 10 deletions

View File

@@ -39,11 +39,12 @@ enum AlarmGroupState {
}
model Alarm {
id Int @id @default(autoincrement())
time String
nextRing DateTime
secondsSinceMidnight Int
nextRing DateTime
// AlarmGroup FK
AlarmGroupId Int
AlarmGroup AlarmGroup @relation(fields: [AlarmGroupId], references: [id])
@@id([secondsSinceMidnight, AlarmGroupId])
}