23 lines
1.2 KiB
Go
23 lines
1.2 KiB
Go
package message
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/plugin/soft_delete"
|
|
)
|
|
|
|
// TemplateBind 逻辑表和物理表的绑定关系
|
|
type TemplateBind struct {
|
|
ID uint32 `gorm:"primarykey"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
DeletedAt soft_delete.DeletedAt `gorm:"column:deleted_at;type:int(11)" json:"deletedAt"`
|
|
TemplateNoId uint32 `gorm:"column:template_no_id;type:int(11) not null;default:1;comment:绑定的id,不可重复"`
|
|
TemplateId uint `gorm:"column:template_id;type:int(11) not null;default:1;comment:缓存的模版id"`
|
|
TemplateTitle string `gorm:"column:template_title;type:varchar(50) not null;default:;comment:标题"`
|
|
TemplateEntityId uint `gorm:"column:template_entity_id;type:int(11) not null;default:1;comment:实体id"`
|
|
TemplateEntityNoId uint `gorm:"column:template_entity_no_id;type:int(11) not null;default:1;comment:实体模版id"`
|
|
TemplateEntityPlat string `gorm:"column:template_entity_plat;type:varchar(20) not null;default:;comment:实体平台"`
|
|
Remark string `gorm:"column:remark;type:varchar(50) not null;default:;comment:备注"`
|
|
}
|