package model

import "time"

type UserRealname struct {
	ID              uint64     `gorm:"primaryKey" json:"id"`
	UserID          uint64     `gorm:"not null;uniqueIndex" json:"user_id"`
	Provider        string     `gorm:"size:32;not null" json:"provider"`
	ProviderOrderNo string     `gorm:"size:128;not null;default:''" json:"provider_order_no"`
	Status          string     `gorm:"size:32;not null;default:'pending'" json:"status"`
	MaskedName      string     `gorm:"size:64;not null;default:''" json:"masked_name"`
	MaskedIDNo      string     `gorm:"size:64;not null;default:''" json:"masked_id_no"`
	VerifiedAt      *time.Time `json:"verified_at"`
	FailReason      string     `gorm:"size:255;not null;default:''" json:"fail_reason"`
	CreatedAt       time.Time  `json:"created_at"`
	UpdatedAt       time.Time  `json:"updated_at"`
}

func (UserRealname) TableName() string {
	return "user_realname"
}
