19 lines
210 B
Go
19 lines
210 B
Go
|
package db
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"gorm.io/gorm"
|
||
|
)
|
||
|
|
||
|
type Debt struct {
|
||
|
gorm.Model
|
||
|
AccountID uint
|
||
|
Account *Account
|
||
|
Value uint64
|
||
|
IOwe bool
|
||
|
Date time.Time
|
||
|
DateEnd time.Time
|
||
|
Finished bool
|
||
|
}
|