sop_task.gen.go 2.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. "gorm.io/gorm"
  8. )
  9. const TableNameSopTask = "sop_task"
  10. // SopTask mapped from table <sop_task>
  11. type SopTask struct {
  12. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  13. CreatedAt time.Time `gorm:"column:created_at;not null;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
  14. UpdatedAt time.Time `gorm:"column:updated_at;not null;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
  15. Status int64 `gorm:"column:status;default:1;comment:状态 1 草稿 2 未开始 3 已开始 4 已结束 5 禁用" json:"status"` // 状态 1 草稿 2 未开始 3 已开始 4 已结束 5 禁用
  16. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
  17. Name string `gorm:"column:name;comment:SOP 任务名称" json:"name"` // SOP 任务名称
  18. BotWxidList string `gorm:"column:bot_wxid_list;comment:机器人微信 id 列表" json:"bot_wxid_list"` // 机器人微信 id 列表
  19. Type int64 `gorm:"column:type;default:1;comment:标签类型:1好友,2群组,3企业微信联系人" json:"type"` // 标签类型:1好友,2群组,3企业微信联系人
  20. PlanStartTime time.Time `gorm:"column:plan_start_time;comment:任务计划开始时间" json:"plan_start_time"` // 任务计划开始时间
  21. PlanEndTime time.Time `gorm:"column:plan_end_time;comment:任务计划结束时间" json:"plan_end_time"` // 任务计划结束时间
  22. CreatorID string `gorm:"column:creator_id;comment:创建者 id" json:"creator_id"` // 创建者 id
  23. OrganizationID int64 `gorm:"column:organization_id;default:1;comment:机构 ID" json:"organization_id"` // 机构 ID
  24. Token string `gorm:"column:token" json:"token"`
  25. }
  26. // TableName SopTask's table name
  27. func (*SopTask) TableName() string {
  28. return TableNameSopTask
  29. }