22 lines
1.1 KiB
Go
22 lines
1.1 KiB
Go
package dao
|
|
|
|
import "lone-services/pkg/utils"
|
|
|
|
type User struct {
|
|
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
|
FacePath string `gorm:"column:face_path" json:"face_path"`
|
|
IsRegistered uint8 `gorm:"column:is_registered" json:"is_registered"`
|
|
IsFaceVerified uint8 `gorm:"column:is_face_verified" json:"is_face_verified"`
|
|
IsProfileCompleted uint8 `gorm:"column:is_profile_completed" json:"is_profile_completed"`
|
|
CreatedAt utils.CustomTime `gorm:"column:created_at" json:"created_at"`
|
|
UpdatedAt utils.CustomTime `gorm:"column:updated_at" json:"updated_at"`
|
|
}
|
|
|
|
type UserCreate struct {
|
|
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
|
FacePath string `gorm:"column:face_path" json:"face_path"`
|
|
IsRegistered uint8 `gorm:"column:is_registered" json:"is_registered"`
|
|
IsFaceVerified uint8 `gorm:"column:is_face_verified" json:"is_face_verified"`
|
|
IsProfileCompleted uint8 `gorm:"column:is_profile_completed" json:"is_profile_completed"`
|
|
}
|