pay_recharge.gen.go 2.0 KB

123456789101112131415161718192021222324252627282930313233
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. "github.com/shopspring/decimal"
  8. "gorm.io/gorm"
  9. )
  10. const TableNamePayRecharge = "pay_recharge"
  11. // PayRecharge 充值表
  12. type PayRecharge struct {
  13. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  14. CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
  15. UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
  16. Status int64 `gorm:"column:status;not null;default:1;comment:状态 1 正常 2 禁用" json:"status"` // 状态 1 正常 2 禁用
  17. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
  18. UserID string `gorm:"column:user_id;not null;default:1;comment:用户ID" json:"user_id"` // 用户ID
  19. Number decimal.Decimal `gorm:"column:number;not null;default:0.0000;comment:变化积分数" json:"number"` // 变化积分数
  20. Money decimal.Decimal `gorm:"column:money;default:0.0000;comment:充值钱数" json:"money"` // 充值钱数
  21. OutTradeNo string `gorm:"column:out_trade_no;comment:外部订单号" json:"out_trade_no"` // 外部订单号
  22. OrganizationID int64 `gorm:"column:organization_id;not null;default:1;comment:机构 ID" json:"organization_id"` // 机构 ID
  23. }
  24. // TableName PayRecharge's table name
  25. func (*PayRecharge) TableName() string {
  26. return TableNamePayRecharge
  27. }