You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.6 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package models
import (
"time"
)
type TTransferApply struct {
Id int64 `xorm:"not null pk autoincr index(id) INT(11)"`
SourceBureauId string `xorm:"not null comment('源单位') index(person_name) CHAR(36)"`
TargetBureauId string `xorm:"not null comment('目标单位') index(target_bureau_id) CHAR(36)"`
IdentityId int64 `xorm:"not null comment('身份ID') INT(11)"`
PersonId string `xorm:"not null comment('人员ID') CHAR(36)"`
PersonName string `xorm:"not null comment('人员姓名,冗余') index(person_name) index(target_bureau_id) VARCHAR(32)"`
StatusId int64 `xorm:"not null comment('申请状态t_transfer_apply_status') INT(11)"`
TargetIsRead int64 `xorm:"not null default 0 comment('目标单位管理员是否已查阅') INT(11)"`
SourceIsRead int64 `xorm:"not null default 0 comment('源单位管理员是否已查看回执结果') INT(11)"`
ApplyTime time.Time `xorm:"not null comment('申请时间') DATETIME"`
ApplyMessage string `xorm:"not null comment('申请信息') VARCHAR(255)"`
EchoTime time.Time `xorm:"not null default ''1970-01-01 00:00:00'' comment('反馈时间') DATETIME"`
EchoMessage string `xorm:"not null comment('审核信息') VARCHAR(255)"`
BUse int64 `xorm:"not null default 1 comment('是不是有效') INT(11)"`
UpdateTs time.Time `xorm:"not null default 'current_timestamp()' comment('时间戳') index(id) index TIMESTAMP"`
Operator string `xorm:"not null comment('操作人员') CHAR(36)"`
IpAddress int64 `xorm:"not null default 0 comment('操作者IP') BIGINT(11)"`
}