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