label.gen.go 2.2 KB

123456789101112131415161718192021222324252627282930313233
  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 TableNameLabel = "label"
  10. // Label mapped from table <label>
  11. type Label 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:Status 1: normal 2: ban | 状态 1 正常 2 禁用" json:"status"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  16. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
  17. Type int64 `gorm:"column:type;default:1;comment:标签类型:1好友,2群组,3公众号,4企业微信联系人" json:"type"` // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  18. Name string `gorm:"column:name;not null;comment:标签名称" json:"name"` // 标签名称
  19. From int64 `gorm:"column:from;not null;comment:标签来源:1后台创建 2个微同步" json:"from"` // 标签来源:1后台创建 2个微同步
  20. Mode int64 `gorm:"column:mode;not null;comment:标签模式:1动态 2静态" json:"mode"` // 标签模式:1动态 2静态
  21. Conditions string `gorm:"column:conditions;comment:标签的触达条件" json:"conditions"` // 标签的触达条件
  22. OrganizationID int64 `gorm:"column:organization_id;default:1;comment:机构 ID" json:"organization_id"` // 机构 ID
  23. }
  24. // TableName Label's table name
  25. func (*Label) TableName() string {
  26. return TableNameLabel
  27. }