feat: analysis user auth and ws
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user