some further moddeling

This commit is contained in:
Jan 2024-12-14 17:21:31 +01:00
parent 7d56f4650a
commit 3ed2a66acd
2 changed files with 11 additions and 6 deletions

View File

@ -1,20 +1,25 @@
package database
import "time"
type Account struct {
Number int
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
}

2
go.mod
View File

@ -2,4 +2,4 @@ module github.com/LeRoid-hub/Bookholder-API
go 1.22.1
require github.com/joho/godotenv v1.5.1 // indirect
require github.com/joho/godotenv v1.5.1