Files
yunzerwebsiteallinone/go/models/auth_tenant_apply.go
T
2026-11-16 17:22:50 +08:00

46 lines
2.6 KiB
Go

package models
import "time"
const (
TenantApplyTypeJoin = 1
TenantApplyTypeCreate = 2
TenantApplyStatusPending = 0
TenantApplyStatusPassed = 1
TenantApplyStatusReject = 2
)
type AuthTenantApply struct {
ID uint64 `orm:"column(id);pk;auto" json:"id"`
IdentityID uint64 `orm:"column(identity_id)" json:"identity_id"`
ApplicantName string `orm:"column(applicant_name);size(64);default('')" json:"applicant_name"`
DepartmentID uint64 `orm:"column(department_id);default(0)" json:"department_id"`
DepartmentName string `orm:"column(department_name);size(128);default('')" json:"department_name"`
PositionID uint64 `orm:"column(position_id);default(0)" json:"position_id"`
PositionName string `orm:"column(position_name);size(128);default('')" json:"position_name"`
WechatMobile string `orm:"column(wechat_mobile);size(20);default('')" json:"wechat_mobile"`
Type int8 `orm:"column(type);default(1)" json:"type"`
Tid uint64 `orm:"column(tid);default(0)" json:"tid"`
TenantName string `orm:"column(tenant_name);size(128);default('')" json:"tenant_name"`
CreditCode string `orm:"column(credit_code);size(64);default('')" json:"credit_code"`
LegalPerson string `orm:"column(legal_person);size(64);default('')" json:"legal_person"`
LicenseFile string `orm:"column(license_file);size(500);default('')" json:"license_file"`
ContactPerson string `orm:"column(contact_person);size(64);default('')" json:"contact_person"`
ContactPhone string `orm:"column(contact_phone);size(20);default('')" json:"contact_phone"`
ContactEmail string `orm:"column(contact_email);size(128);default('')" json:"contact_email"`
Address string `orm:"column(address);size(255);default('')" json:"address"`
Status int8 `orm:"column(status);default(0)" json:"status"`
RejectReason string `orm:"column(reject_reason);size(255);default('')" json:"reject_reason"`
ReviewerID uint64 `orm:"column(reviewer_id);default(0)" json:"reviewer_id"`
ReviewerName string `orm:"column(reviewer_name);size(64);default('')" json:"reviewer_name"`
ReviewTime *time.Time `orm:"column(review_time);type(datetime);null" json:"review_time"`
CreateTime time.Time `orm:"column(create_time);type(datetime);auto_now_add" json:"create_time"`
UpdateTime *time.Time `orm:"column(update_time);type(datetime);null" json:"update_time"`
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"`
}
func (m *AuthTenantApply) TableName() string {
return "yz_auth_tenant_apply"
}