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