actvie.client.account.go 1.3 KB

1234567891011121314151617181920
  1. package shanghu
  2. import "time"
  3. type ActiveClientAccount struct {
  4. ID int64 `gorm:"column:id;type:bigint(20);primary_key;AUTO_INCREMENT" json:"id"` // 主键
  5. ClientOpenID string `gorm:"column:client_open_id;type:varchar(255)" json:"client_open_id"` //
  6. ReviewAmount string `gorm:"column:review_amount;type:decimal(10,2)" json:"review_amount"` // 待核销金额
  7. Version int `gorm:"column:version;type:int(11)" json:"version"` // Version
  8. Amount string `gorm:"column:amount;type:decimal(10,2)" json:"amount"` // 可提现金额
  9. CreateBy int64 `gorm:"column:create_by;type:bigint(20)" json:"create_by"` // 创建者
  10. UpdateBy int64 `gorm:"column:update_by;type:bigint(20)" json:"update_by"` // 更新者
  11. CreatedAt time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"` // 创建时间
  12. UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"` // 最后更新时间
  13. DeletedAt time.Time `gorm:"column:deleted_at;type:datetime(3);default:null" json:"deleted_at"` // 删除时间
  14. }
  15. func (m *ActiveClientAccount) TableName() string {
  16. return "active_client_account"
  17. }