From ffa8d9211f3dc0ad7179d527d8221405f3f97122 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Sat, 3 Aug 2024 08:15:02 +0300 Subject: [PATCH] Create Transfer model for database --- db/transfer.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 db/transfer.go diff --git a/db/transfer.go b/db/transfer.go new file mode 100644 index 0000000..abdc03d --- /dev/null +++ b/db/transfer.go @@ -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 +}