123456789101112131415161718192021222324252627282930 |
- package model
- import (
- "time"
- "gorm.io/gorm"
- )
- const TableNameLabelRelationship = "label_relationship"
- type LabelRelationship 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"`
- UpdatedAt time.Time `gorm:"column:updated_at;not null;comment:Update Time | 修改日期" json:"updated_at"`
- Status int64 `gorm:"column:status;default:1;comment:Status 1: normal 2: ban | 状态 1 正常 2 禁用" json:"status"`
- DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"`
- LabelID int64 `gorm:"column:label_id;not null" json:"label_id"`
- ContactID int64 `gorm:"column:contact_id;not null" json:"contact_id"`
- OrganizationID int64 `gorm:"column:organization_id;default:1;comment:机构 ID" json:"organization_id"`
- }
- func (*LabelRelationship) TableName() string {
- return TableNameLabelRelationship
- }
|