WIP
This commit is contained in:
parent
b957988957
commit
58569dee2e
27 changed files with 623 additions and 220 deletions
43
db/models.go
43
db/models.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue