Create Transfer model for database

This commit is contained in:
qowevisa 2024-08-03 08:15:02 +03:00
parent 83cf0bd71c
commit ffa8d9211f

12
db/transfer.go Normal file
View 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
}