Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Company ¶
type Company struct { ID uint `gorm:"primaryKey;autoIncrement;unique" json:"id"` Name string `gorm:"not null" json:"name" binding:"required"` URL string `gorm:"unique; not null" json:"url" binding:"required"` Address datatypes.JSON `json:"address,omitempty"` SocialMedia datatypes.JSON `json:"socialMedia,omitempty"` Description string `json:"description"` IsRemote bool `json:"isRemote"` IsJobPostingDisable bool `gorm:"default:false" json:"isJobPostingDisable"` Users []User `json:"users,omitempty"` CreatedAt int64 `gorm:"autoCreateTime" json:"createdAt"` UpdatedAt int64 `gorm:"autoUpdateTime" json:"updatedAt"` }
type OTP ¶
type User ¶
type User struct { ID uuid.UUID `gorm:"unique, not null" json:"id"` FirstName string `gorm:"not null" json:"firstName"` MiddleName string `json:"middleName,omitempty"` LastName string `gorm:"not null" json:"lastName"` Address datatypes.JSON `json:"address,omitempty"` Avatar string `json:"avatar,omitempty"` RoleID uint `json:"roleId,omitempty"` IsVerified bool `json:"isVerified"` IsActive bool `gorm:"default:true" json:"isActive"` Department string `gorm:"not null" json:"department"` Designation string `gorm:"not null" json:"designation"` Type string `gorm:"not null" json:"type"` Timezone string `gorm:"not null" json:"timezone"` CompanyID uint `json:"companyId"` CreatedAt int64 `gorm:"autoCreateTime"` UpdatedAt int64 `gorm:"autoUpdateTime"` }
Click to show internal directories.
Click to hide internal directories.