32 lines
2.0 KiB
Go
32 lines
2.0 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"
|
||
)
|
||
|
||
const TableNameTaskCenterUserProgress = "task_center_user_progress"
|
||
|
||
// TaskCenterUserProgress 任务中心-用户进度
|
||
type TaskCenterUserProgress struct {
|
||
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID
|
||
UserID int64 `gorm:"column:user_id;not null;comment:用户ID(users.id)" json:"user_id"` // 用户ID(users.id)
|
||
TaskID int64 `gorm:"column:task_id;not null;comment:任务ID(task_center_tasks.id)" json:"task_id"` // 任务ID(task_center_tasks.id)
|
||
OrderCount int64 `gorm:"column:order_count;not null;comment:累计完成订单数" json:"order_count"` // 累计完成订单数
|
||
InviteCount int64 `gorm:"column:invite_count;not null;comment:累计有效邀请数" json:"invite_count"` // 累计有效邀请数
|
||
FirstOrder int32 `gorm:"column:first_order;not null;comment:首单标记:1是 0否" json:"first_order"` // 首单标记:1是 0否
|
||
ClaimedTiers string `gorm:"column:claimed_tiers;comment:已领取档位ID数组(JSON)" json:"claimed_tiers"` // 已领取档位ID数组(JSON)
|
||
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"` // 创建时间
|
||
UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"updated_at"` // 更新时间
|
||
ActivityID int32 `gorm:"column:activity_id" json:"activity_id"`
|
||
OrderAmount int64 `gorm:"column:order_amount;not null;comment:累计消费金额(单位分)" json:"order_amount"` // 累计消费金额(单位分)
|
||
}
|
||
|
||
// TableName TaskCenterUserProgress's table name
|
||
func (*TaskCenterUserProgress) TableName() string {
|
||
return TableNameTaskCenterUserProgress
|
||
}
|