Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthAccessToken ¶
type AuthAccessToken struct {
Model
AuthSessionId uint `json:"auth_session_id" binding:"required"`
AuthSession AuthSession
Scopes string `json:"scopes" binding:"required" gorm:"type:text"`
IsRevoked bool `json:"is_revoked" binding:"required"`
}
type AuthFailed ¶
type AuthSession ¶
type AuthSession struct {
Model
UserId uint `json:"user_id" binding:"required"`
User User `json:"user"`
Location string `json:"location" binding:"required"`
Latitude string `json:"latitude" binding:"required"`
Longitude string `json:"longitude" binding:"required"`
Device string `json:"device" binding:"required"`
UserAgent string `json:"user_agent" binding:"required"`
IpAddress string `json:"ip_address" binding:"required"`
DeviceId string `json:"device_id" gorm:"type:varchar;NULL"`
DeviceIdUuid string `json:"device_id_uuid" gorm:"type:varchar;NULL"`
IsActive bool `json:"is_active" gorm:"default:false"`
}
type User ¶
type User struct {
Model
Username string `gorm:"type:varchar" json:"username" binding:"required"`
Name string `gorm:"type:varchar" json:"name" binding:"required"`
Avatar string `gorm:"type:varchar" json:"avatar" binding:"required"`
Bio string `gorm:"type:varchar;NULL" json:"bio"`
Password string `gorm:"type:varchar" json:"-" binding:"required"`
PhoneNumber string `gorm:"type:varchar;NULL" json:"phone_number"`
Email string `gorm:"type:varchar;unique_index" json:"email" binding:"required"`
EmailVerifiedAt *time.Time `gorm:"NULL" json:"email_verified_at"`
Tracks []*Track `gorm:"many2many:track_user;"`
}
type UserFriend ¶
type UserNotification ¶
type UserPreference ¶
Click to show internal directories.
Click to hide internal directories.