loginCode model
parent
0e534f5a2d
commit
0b8a592bf1
|
@ -0,0 +1,11 @@
|
|||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type LoginCode struct {
|
||||
LoginCode_id uint `gorm:"primaryKey"`
|
||||
PhoneNumber string `gorm:"not null" validate:"required"`
|
||||
Code string `gorm:"not null" validate:"required"`
|
||||
CreatedAt time.Time `gorm:"not null"`
|
||||
ExpiresAt time.Time `gorm:"not null"`
|
||||
}
|
Loading…
Reference in New Issue