16 lines
986 B
Go
16 lines
986 B
Go
|
|
// 功能:保存本人紧急联系人资料,不隐含设备授权或通知权限;版本:1.0.0。
|
|||
|
|
package models
|
|||
|
|
|
|||
|
|
// UserEmergencyContact 联系人最多五位;归档保留幂等标识以防重试复活。
|
|||
|
|
type UserEmergencyContact struct {
|
|||
|
|
Entity // 公共实体字段
|
|||
|
|
UserAccountID uint64 `gorm:"column:user_account_id;not null"` // 联系人资料所属用户内部主键
|
|||
|
|
Name string `gorm:"column:name;type:varchar(64);not null"` // 联系人姓名
|
|||
|
|
Phone string `gorm:"column:phone;type:varchar(32);not null"` // 联系人手机号
|
|||
|
|
Relationship string `gorm:"column:relationship;type:varchar(32);not null"` // 与当前用户的关系描述
|
|||
|
|
RequestNo string `gorm:"column:request_no;type:varchar(36);not null"` // 新增请求幂等标识
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// TableName 返回独立用户资料表,不注册全库自动迁移。
|
|||
|
|
func (*UserEmergencyContact) TableName() string { return "user_emergency_contact" }
|