Przeglądaj źródła

注销备份表

master
huangjiajun 2 dni temu
rodzic
commit
e92ccaca37
2 zmienionych plików z 27 dodań i 0 usunięć
  1. +14
    -0
      src/model/user_virtual_amount_back.go
  2. +13
    -0
      src/model/user_wallet_back.go

+ 14
- 0
src/model/user_virtual_amount_back.go Wyświetl plik

@@ -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"`
}

+ 13
- 0
src/model/user_wallet_back.go Wyświetl plik

@@ -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"`
}

Ładowanie…
Anuluj
Zapisz