123456789101112131415161718192021222324252627282930313233 |
- package shanghu
- import (
- "github.com/shopspring/decimal"
- "time"
- )
- type ActiveClientAccountLog struct {
- ID int64 `gorm:"column:id;type:bigint(20);primary_key;AUTO_INCREMENT" json:"id"`
- ReviewAmountAfter decimal.Decimal `gorm:"column:review_amount_after;type:decimal(10,2)" json:"review_amount_after"`
- ReviewAmountPre decimal.Decimal `gorm:"column:review_amount_pre;type:decimal(10,2)" json:"review_amount_pre"`
- AmountPre decimal.Decimal `gorm:"column:amount_pre;type:decimal(10,2)" json:"amount_pre"`
- AmountAfter decimal.Decimal `gorm:"column:amount_after;type:decimal(10,2)" json:"amount_after"`
- TransType int `gorm:"column:trans_type;type:int(11)" json:"trans_type"`
- ClientOpenID string `gorm:"column:client_open_id;type:varchar(255)" json:"client_open_id"`
- CreateBy int64 `gorm:"column:create_by;type:bigint(20)" json:"create_by"`
- UpdateBy int64 `gorm:"column:update_by;type:bigint(20)" json:"update_by"`
- CreatedAt time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
- UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
- DeletedAt time.Time `gorm:"column:deleted_at;type:datetime(3);default:null" json:"deleted_at"`
- Amount decimal.Decimal `gorm:"column:amount;type:decimal(10,2)" json:"amount"`
- PayTransID int64 `gorm:"column:pay_trans_id;type:bigint(20)" json:"pay_trans_id"`
- }
- const (
- ActiveClientAccountLogTransTypeGroupBuy = 1
- ActiveClientAccountLogTypeCashOut = 2
- ActiveClientAccountLogTypeCashOutFee = 3
- )
- func (m *ActiveClientAccountLog) TableName() string {
- return "active_client_account_log"
- }
|