This commit is contained in:
Finn 2024-11-22 19:50:18 -08:00
parent b957988957
commit 58569dee2e
27 changed files with 623 additions and 220 deletions

View file

@ -9,6 +9,20 @@ import (
"time"
)
type IssuedCode struct {
ID int64
Name sql.NullString
Code string
Start sql.NullTime
End sql.NullTime
}
type IssuedCodeSlot struct {
IssuedCode interface{}
Lock interface{}
Slot interface{}
}
type Lock struct {
ID int64
Name string
@ -25,28 +39,9 @@ type LockCodeSlot struct {
}
type LockLog struct {
Lock int64
Timestamp time.Time
State string
Code sql.NullInt64
}
type User struct {
ID int64
Name string
}
type UserCode struct {
ID int64
User sql.NullInt64
Name sql.NullString
Code string
Start sql.NullTime
End sql.NullTime
}
type UserCodeSlot struct {
UserCode interface{}
Lock interface{}
Slot interface{}
Lock int64
Timestamp time.Time
State string
Code sql.NullInt64
IssuedCode sql.NullInt64
}