package model

import (
	"time"

	"gorm.io/plugin/soft_delete"
)

// RealName 实名认证模型
type RealName struct {
	ID                 uint `gorm:"primarykey"`
	CreatedAt          time.Time
	UpdatedAt          time.Time
	DeletedAt          soft_delete.DeletedAt `gorm:"column:deleted_at;type:int(11)"`
	Name               string                `gorm:"column:name;comment:姓名" json:"name"`
	Sex                string                `gorm:"column:sex;comment:" json:"sex"`
	Nationality        string                `gorm:"column:nationality;comment:国籍" json:"nationality"`
	DocumentType       int                   `gorm:"column:document_type;comment:证件类型:1护照 2身份证 3驾驶证 4居住证 5自拍照 6社保卡" json:"documentType"`
	CertificatePicture string                `gorm:"type:varchar(500);column:certificate_picture;comment:证件照片" json:"certificatePicture"`
	Validity           string                `gorm:"column:validity;comment:证件有效期" json:"validity"`
	PlaceOfResidence   string                `gorm:"column:place_of_residence;comment:居住地" json:"placeOfResidence"`
	GroupPhoto         string                `gorm:"column:group_photo;comment:证件合影" json:"groupPhoto"`
	Attachment         string                `gorm:"column:attachment;comment:附件" json:"attachment"`
	IdNumber           string                `gorm:"column:id_number;comment:证件号" json:"idNumber"`
	DateOfBirth        string                `gorm:"column:date_of_birth;comment:出生日期" json:"dateOfBirth"`
}
