23 lines
1.4 KiB
Go
23 lines
1.4 KiB
Go
|
|
package models
|
|||
|
|
|
|||
|
|
import (
|
|||
|
|
"time"
|
|||
|
|
|
|||
|
|
"git.apinb.com/bsm-sdk/core/database"
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
// GasorderConfirm 对应 gasorder_confirm,保存用户签收确认。
|
|||
|
|
type GasorderConfirm struct {
|
|||
|
|
Entity // 公共实体字段
|
|||
|
|
GasorderBasicID uint64 `gorm:"column:gasorder_basic_id;not null;uniqueIndex" json:"gasorder_basic_id"` // 订单自增主键
|
|||
|
|
ConfirmType string `gorm:"column:confirm_type;type:varchar(32);not null" json:"confirm_type"` // 签收类型
|
|||
|
|
RecipientName string `gorm:"column:recipient_name;type:varchar(64);not null" json:"recipient_name"` // 签收人姓名快照
|
|||
|
|
RecipientPhone string `gorm:"column:recipient_phone;type:varchar(32);not null;default:''" json:"recipient_phone"` // 签收人手机号快照
|
|||
|
|
ProofURI string `gorm:"column:proof_uri;type:varchar(512);not null;default:''" json:"proof_uri"` // 签名或凭证地址
|
|||
|
|
ConfirmedAt time.Time `gorm:"column:confirmed_at;type:timestamptz;not null;index" json:"confirmed_at"` // 确认时间
|
|||
|
|
Remark string `gorm:"column:remark;type:text;not null;default:''" json:"remark"` // 签收备注
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func init() { database.AppendMigrate(&GasorderConfirm{}) }
|
|||
|
|
func (table *GasorderConfirm) TableName() string { return "gasorder_confirm" }
|