// Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. package models import ( "platform/web/common" "time" "gorm.io/gorm" ) const TableNameCoupon = "coupon" // Coupon mapped from table type Coupon struct { ExpireAt time.Time `gorm:"column:expire_at" json:"expire_at"` CreatedAt common.LocalDateTime `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt common.LocalDateTime `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"` ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` UserID int32 `gorm:"column:user_id" json:"user_id"` Status int32 `gorm:"column:status;not null" json:"status"` Code string `gorm:"column:code;not null" json:"code"` Remark string `gorm:"column:remark" json:"remark"` Amount float64 `gorm:"column:amount;not null" json:"amount"` MinAmount float64 `gorm:"column:min_amount;not null" json:"min_amount"` } // TableName Coupon's table name func (*Coupon) TableName() string { return TableNameCoupon }