feat: 完善平台总后台模块
This commit is contained in:
15
backend/api/internal/models/saf_event_disposal.go
Normal file
15
backend/api/internal/models/saf_event_disposal.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import "git.apinb.com/bsm-sdk/core/database"
|
||||
|
||||
// SafEventDisposal 对应 saf_event_disposal,保存安全处置记录。
|
||||
type SafEventDisposal struct {
|
||||
Entity
|
||||
SafEventIdentity string `gorm:"column:saf_event_identity;type:varchar(36);not null;index" json:"saf_event_identity"`
|
||||
Action string `gorm:"column:action;type:varchar(64);not null" json:"action"`
|
||||
Reason string `gorm:"column:reason;type:text;not null;default:''" json:"reason"`
|
||||
OperatorIdentity string `gorm:"column:operator_identity;type:varchar(36);not null;default:''" json:"operator_identity"`
|
||||
}
|
||||
|
||||
func init() { database.AppendMigrate(&SafEventDisposal{}) }
|
||||
func (table *SafEventDisposal) TableName() string { return "saf_event_disposal" }
|
||||
Reference in New Issue
Block a user