互动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
694 B

5 years ago
  1. package models
  2. import (
  3. "time"
  4. )
  5. //用户得钱包流水
  6. type UserWalletHistory struct {
  7. Id int64 `json:"id" xorm:"pk autoincr INT(11)"`
  8. UserId int64 `json:"user_id" xorm:"not null comment('用户id') INT(11)"`
  9. Amount float64 `json:"amount" xorm:"not null comment('金额, 分正负') DECIMAL"`
  10. Mark string `json:"mark" xorm:"not null comment('备注') VARCHAR(125)"`
  11. IsDelete bool `json:"is_delete" xorm:"default(0) comment('软删除') TINYINT(1)"`
  12. CreatedAt time.Time `json:"created_at" xorm:"not null created comment('创建时间') DATETIME"`
  13. UpdatedAt time.Time `json:"updated_at" xorm:"not null updated comment('更新时间') DATETIME"`
  14. }