diff --git a/src/model/user_virtual_amount_back.go b/src/model/user_virtual_amount_back.go new file mode 100644 index 0000000..f44988b --- /dev/null +++ b/src/model/user_virtual_amount_back.go @@ -0,0 +1,14 @@ +package model + +import ( + "time" +) + +type UserVirtualAmountBack struct { + Id int64 `json:"id" xorm:"pk autoincr BIGINT(20)"` + Uid int64 `json:"uid" xorm:"not null default 0 unique(idx_uid_coin_id) BIGINT(20)"` + CoinId int `json:"coin_id" xorm:"not null default 0 index(idx_coinid_amount) unique(idx_uid_coin_id) INT(11)"` + Amount string `json:"amount" xorm:"not null default 0.00000000 index(idx_coinid_amount) DECIMAL(28,8)"` + CreateAt time.Time `json:"create_at" xorm:"not null default CURRENT_TIMESTAMP DATETIME"` + UpdateAt time.Time `json:"update_at" xorm:"not null default CURRENT_TIMESTAMP DATETIME"` +} diff --git a/src/model/user_wallet_back.go b/src/model/user_wallet_back.go new file mode 100644 index 0000000..7eb7a7d --- /dev/null +++ b/src/model/user_wallet_back.go @@ -0,0 +1,13 @@ +package model + +import ( + "time" +) + +type UserWalletBack struct { + Id int64 `json:"id" xorm:"pk autoincr BIGINT(20)"` + Uid int64 `json:"uid" xorm:"not null default 0 comment('用户id') BIGINT(20)"` + Amount string `json:"amount" xorm:"not null default 0.00 comment('用户余额') DECIMAL(10,2)"` + CreateAt time.Time `json:"create_at" xorm:"not null default CURRENT_TIMESTAMP DATETIME"` + UpdateAt time.Time `json:"update_at" xorm:"not null default CURRENT_TIMESTAMP DATETIME"` +}