22 lines
1015 B
Go
22 lines
1015 B
Go
package models
|
||
|
||
import (
|
||
"time"
|
||
|
||
"git.apinb.com/bsm-sdk/core/database"
|
||
)
|
||
|
||
// AudApproval 对应 aud_approval,保存审批流与复核意见。
|
||
type AudApproval struct {
|
||
Entity
|
||
BusinessType string `gorm:"column:business_type;type:varchar(64);not null" json:"business_type"`
|
||
BusinessIdentity string `gorm:"column:business_identity;type:varchar(36);not null;index" json:"business_identity"`
|
||
ApplicantIdentity string `gorm:"column:applicant_identity;type:varchar(36);not null;index" json:"applicant_identity"`
|
||
Opinion string `gorm:"column:opinion;type:text;not null;default:''" json:"opinion"`
|
||
HandlerIdentity string `gorm:"column:handler_identity;type:varchar(36);not null;default:'';index" json:"handler_identity"`
|
||
HandledAt *time.Time `gorm:"column:handled_at;type:timestamptz" json:"handled_at"`
|
||
}
|
||
|
||
func init() { database.AppendMigrate(&AudApproval{}) }
|
||
func (table *AudApproval) TableName() string { return "aud_approval" }
|