16 lines
763 B
Go
16 lines
763 B
Go
|
|
package models
|
|||
|
|
|
|||
|
|
import "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"`
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func init() { database.AppendMigrate(&AudApproval{}) }
|
|||
|
|
func (table *AudApproval) TableName() string { return "aud_approval" }
|