26 lines
912 B
Go
Executable File

// 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 model
import (
"time"
)
const TableNameOrderCoupons = "order_coupons"
// OrderCoupons 订单-优惠券使用明细
type OrderCoupons struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
OrderID int64 `gorm:"column:order_id;not null" json:"order_id"`
UserCouponID int64 `gorm:"column:user_coupon_id;not null" json:"user_coupon_id"`
AppliedAmount int64 `gorm:"column:applied_amount;not null;comment:本次抵扣金额(分)" json:"applied_amount"` // 本次抵扣金额(分)
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP(3)" json:"created_at"`
}
// TableName OrderCoupons's table name
func (*OrderCoupons) TableName() string {
return TableNameOrderCoupons
}