Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activities ¶
type Activities struct { gorm.Model ID string `json:"id" gorm:"primaryKey"` Title string `json:"title"` Description string `json:"description"` Types []ActivityType `gorm:"foreignKey:ActivityID"` ImageURL string `json:"imageUrl"` // Cover Image ColourCode string `json:"colourCode"` // Sport Colour code }
func (Activities) TableName ¶
func (Activities) TableName() string
type ActivityType ¶
type ActivityType struct { gorm.Model ID string `json:"id" gorm:"primaryKey"` Title string `json:"title"` Description string `json:"description"` Headline string `json:"headline"` // Headlines like GET READY FOR etc. ImageURL string `json:"imageUrl"` // Cover Image ActivityID string `json:"activityID"` Drills []Drill `gorm:"foreignKey:ActivityTypeID"` }
type DrillCompletion ¶
type MarkedQuestionSet ¶
type MarkedQuestionSet struct { gorm.Model UserID string `json:"uid" gorm:"uniqueIndex"` Marked pq.Int32Array `json:"marked" gorm:"type:int[]"` }
type MuscleGroup ¶
type MuscleGroup struct { gorm.Model ID string `json:"id" gorm:"primaryKey"` Title string `json:"title"` SubMuscleGroups []SubMuscleGroup `gorm:"foreignKey:MuscleGroupID"` }
type QuestionSet ¶
type QuestionSet struct { gorm.Model ID int32 `json:"id" gorm:"primaryKey;autoIncrement:true;unique"` Questions pq.StringArray `json:"questions" gorm:"type:text[]"` }
type SubMuscleGroup ¶
type User ¶
type User struct { gorm.Model ID string `json:"id" gorm:"primaryKey"` Username string `json:"username" gorm:"unique;not null"` Fname string `json:"fname" gorm:"not null"` Lname string `json:"lname" gorm:"not null"` Email string `json:"email" gorm:"unique;not null"` Password string `json:"-" gorm:"not null"` Age int `json:"age" gorm:"not null"` Access string `json:"access" gorm:"not null"` //free or premium Verified bool `json:"verified" gorm:"not null"` OTP string `json:"otp"` }
User struct represents a user in the system. Embedded GORM struct. Includes ID,CreatedAt,UpdatedAt,DeletedAt fields.
type UserActivityMapping ¶
Click to show internal directories.
Click to hide internal directories.