refactor(utils): 修复密码哈希比较逻辑错误 feat(user): 新增按状态筛选优惠券接口 docs: 添加虚拟发货与任务中心相关文档 fix(wechat): 修正Code2Session上下文传递问题 test: 补充订单折扣与积分转换测试用例 build: 更新配置文件与构建脚本 style: 清理多余的空行与注释
31 lines
1.5 KiB
Go
31 lines
1.5 KiB
Go
// 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"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
const TableNameChannels = "channels"
|
|
|
|
// Channels 推广渠道表
|
|
type Channels struct {
|
|
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID
|
|
Name string `gorm:"column:name;not null;comment:渠道名称" json:"name"` // 渠道名称
|
|
Code string `gorm:"column:code;not null;comment:渠道唯一标识" json:"code"` // 渠道唯一标识
|
|
Type string `gorm:"column:type;not null;default:other;comment:渠道类型" json:"type"` // 渠道类型
|
|
Remarks string `gorm:"column:remarks;comment:备注" json:"remarks"` // 备注
|
|
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP(3);comment:创建时间" json:"created_at"` // 创建时间
|
|
UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP(3);comment:更新时间" json:"updated_at"` // 更新时间
|
|
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:删除时间" json:"deleted_at"` // 删除时间
|
|
}
|
|
|
|
// TableName Channels's table name
|
|
func (*Channels) TableName() string {
|
|
return TableNameChannels
|
|
}
|