2026-07-27 00:18:42 +08:00
|
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
|
|
import "git.apinb.com/bsm-sdk/core/database"
|
|
|
|
|
|
|
2026-07-27 14:28:23 +08:00
|
|
|
|
// SafeInspection 对应 safe_inspection,保存安检与复检记录。
|
|
|
|
|
|
type SafeInspection struct {
|
2026-07-27 12:02:08 +08:00
|
|
|
|
Entity // 公共实体字段
|
|
|
|
|
|
UserAccountID uint64 `gorm:"column:user_account_id;not null;index" json:"user_account_id"` // user_account_id 业务字段
|
|
|
|
|
|
StaffAccountID uint64 `gorm:"column:staff_account_id;not null;index" json:"staff_account_id"` // staff_account_id 业务字段
|
|
|
|
|
|
Result string `gorm:"column:result;type:varchar(32);not null" json:"result"` // result 业务字段
|
|
|
|
|
|
EvidenceURI string `gorm:"column:evidence_uri;type:varchar(512);not null;default:''" json:"evidence_uri"` // evidence_uri 业务字段
|
2026-07-27 00:18:42 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-27 14:28:23 +08:00
|
|
|
|
func init() { database.AppendMigrate(&SafeInspection{}) }
|
|
|
|
|
|
func (table *SafeInspection) TableName() string { return "safe_inspection" }
|