24 lines
1.3 KiB
Go
24 lines
1.3 KiB
Go
package models
|
||
|
||
import (
|
||
"time"
|
||
|
||
"git.apinb.com/bsm-sdk/core/database"
|
||
)
|
||
|
||
// GasBasicReview 对应 gas_basic_review,保存气站审核记录。
|
||
type GasBasicReview struct {
|
||
Entity // 公共实体字段
|
||
GasBasicID uint64 `gorm:"column:gas_basic_id;not null;index" json:"gas_basic_id"` // 气站自增主键
|
||
ReviewStatus int `gorm:"column:review_status;not null;index" json:"review_status"` // 审核结果:已通过或已驳回
|
||
ReviewReason string `gorm:"column:review_reason;type:text;not null;default:''" json:"review_reason"` // 审核不通过理由
|
||
ReviewerIdentity string `gorm:"column:reviewer_identity;type:varchar(36);not null;default:'';index" json:"reviewer_identity"` // 审核人业务标识
|
||
ReviewerName string `gorm:"column:reviewer_name;type:varchar(64);not null;default:''" json:"reviewer_name"` // 审核人姓名快照
|
||
ReviewedAt time.Time `gorm:"column:reviewed_at;type:timestamptz;not null" json:"reviewed_at"` // 审核时间
|
||
}
|
||
|
||
func init() { database.AppendMigrate(&GasBasicReview{}) }
|
||
|
||
// TableName 返回与模型、文件名一致的单数数据表名。
|
||
func (table *GasBasicReview) TableName() string { return "gas_basic_review" }
|