Add Date and User binding to Transfer
This commit is contained in:
parent
3b17cff1ea
commit
ea2c50c654
|
@ -1,6 +1,10 @@
|
||||||
package db
|
package db
|
||||||
|
|
||||||
import "gorm.io/gorm"
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
|
)
|
||||||
|
|
||||||
type Transfer struct {
|
type Transfer struct {
|
||||||
gorm.Model
|
gorm.Model
|
||||||
|
@ -9,4 +13,7 @@ type Transfer struct {
|
||||||
ToCardID uint
|
ToCardID uint
|
||||||
ToCard *Card
|
ToCard *Card
|
||||||
Value uint64
|
Value uint64
|
||||||
|
Date time.Time
|
||||||
|
UserID uint
|
||||||
|
User *User
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user