loginCode model

master
nima 2024-06-17 18:54:08 +03:30
parent 0e534f5a2d
commit 0b8a592bf1
1 changed files with 11 additions and 0 deletions

11
models/code.go 100644
View File

@ -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"`
}