Create Transfer model for database
This commit is contained in:
parent
83cf0bd71c
commit
ffa8d9211f
12
db/transfer.go
Normal file
12
db/transfer.go
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
package db
|
||||||
|
|
||||||
|
import "gorm.io/gorm"
|
||||||
|
|
||||||
|
type Transfer struct {
|
||||||
|
gorm.Model
|
||||||
|
FromCardID uint
|
||||||
|
FromCard *Card
|
||||||
|
ToCardID uint
|
||||||
|
ToCard *Card
|
||||||
|
Value uint64
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user