// Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. package model import ( "time" ) const TableNameSmsVerificationCode = "sms_verification_code" // SmsVerificationCode 短信验证码表 type SmsVerificationCode struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键" json:"id"` // 主键 PhoneNumber string `gorm:"column:phone_number;not null;comment:手机号码" json:"phone_number"` // 手机号码 VerificationCode string `gorm:"column:verification_code;not null;comment:验证码" json:"verification_code"` // 验证码 Type int32 `gorm:"column:type;not null;comment:类型(1=登录 2=忘记密码)" json:"type"` // 类型(1=登录 2=忘记密码) IsUsed int32 `gorm:"column:is_used;not null;comment:是否已使用(0:未使用,1:已使用)" json:"is_used"` // 是否已使用(0:未使用,1:已使用) CreatedUser string `gorm:"column:created_user;not null;comment:创建人" json:"created_user"` // 创建人 CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"` // 创建时间 } // TableName SmsVerificationCode's table name func (*SmsVerificationCode) TableName() string { return TableNameSmsVerificationCode }