22 lines
289 B
Go
22 lines
289 B
Go
package db
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
// For grocery payment
|
|
type Payment struct {
|
|
gorm.Model
|
|
AccountID uint
|
|
Account *Account
|
|
CategoryID uint
|
|
Category *Category
|
|
Name string
|
|
Descr string
|
|
Note string
|
|
Items []ItemBought
|
|
Date time.Time
|
|
}
|