// 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 TableNameSopTask = "sop_task" // SopTask mapped from table type SopTask struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` CreatedAt time.Time `gorm:"column:created_at;not null;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期 UpdatedAt time.Time `gorm:"column:updated_at;not null;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期 Status int64 `gorm:"column:status;default:1;comment:状态 1 草稿 2 未开始 3 已开始 4 已结束 5 禁用" json:"status"` // 状态 1 草稿 2 未开始 3 已开始 4 已结束 5 禁用 DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期 Name string `gorm:"column:name;comment:SOP 任务名称" json:"name"` // SOP 任务名称 BotWxidList string `gorm:"column:bot_wxid_list;comment:机器人微信 id 列表" json:"bot_wxid_list"` // 机器人微信 id 列表 Type int64 `gorm:"column:type;default:1;comment:标签类型:1好友,2群组,3企业微信联系人" json:"type"` // 标签类型:1好友,2群组,3企业微信联系人 PlanStartTime time.Time `gorm:"column:plan_start_time;comment:任务计划开始时间" json:"plan_start_time"` // 任务计划开始时间 PlanEndTime time.Time `gorm:"column:plan_end_time;comment:任务计划结束时间" json:"plan_end_time"` // 任务计划结束时间 CreatorID string `gorm:"column:creator_id;comment:创建者 id" json:"creator_id"` // 创建者 id OrganizationID int64 `gorm:"column:organization_id;default:1;comment:机构 ID" json:"organization_id"` // 机构 ID Token string `gorm:"column:token" json:"token"` } // TableName SopTask's table name func (*SopTask) TableName() string { return TableNameSopTask }