Bookholder-API/database/models.go

26 lines
344 B
Go
Raw Normal View History

package database
2024-12-14 16:21:31 +00:00
import "time"
type Account struct {
2024-12-14 16:21:31 +00:00
ID uint
Name string
Kind string
}
type Transaction struct {
2024-12-14 16:21:31 +00:00
ID uint
Amount float32
Debit bool
2024-12-14 16:21:31 +00:00
OffsetAccount uint
Account uint
Time time.Time
Description string
}
type User struct {
2024-12-14 16:21:31 +00:00
ID uint
Name string
Password string
}