mirror of
https://github.com/LeRoid-hub/Bookholder-API.git
synced 2025-01-31 02:34:57 +00:00
some further moddeling
This commit is contained in:
parent
7d56f4650a
commit
3ed2a66acd
@ -1,20 +1,25 @@
|
||||
package database
|
||||
|
||||
import "time"
|
||||
|
||||
type Account struct {
|
||||
Number int
|
||||
Name string
|
||||
Kind string
|
||||
ID uint
|
||||
Name string
|
||||
Kind string
|
||||
}
|
||||
|
||||
type Transaction struct {
|
||||
ID uint
|
||||
Amount float32
|
||||
Debit bool
|
||||
OffsetAccount int
|
||||
Account int
|
||||
OffsetAccount uint
|
||||
Account uint
|
||||
Time time.Time
|
||||
Description string
|
||||
}
|
||||
|
||||
type User struct {
|
||||
ID uint
|
||||
Name string
|
||||
Password string
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user