Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoMigrate ¶
Types ¶
type Account ¶
type GormTCPConnectionConfig ¶
type HitPoint ¶
type Plan ¶
type Plan struct { gorm.Model Name string `gorm:"not null;"` UUID string `gorm:"type:varchar(100);primaryKey;"` DurationType PlanDuration }
type PlanDuration ¶
type PlanDuration uint8
const ( Lifetime PlanDuration = 1 Monthly PlanDuration = 2 )
type Project ¶
type ProjectUser ¶
type Subscription ¶
type Subscription struct { gorm.Model UUID string `gorm:"type:varchar(100);primaryKey;"` PlanID uint `gorm:"not null;"` Plan Plan AccountID uint `gorm:"not null;"` Account Account }
func (*Subscription) BeforeCreate ¶
func (s *Subscription) BeforeCreate(tx *gorm.DB) error
type User ¶
type User struct { gorm.Model UUID string `gorm:"type:varchar(100);primaryKey;"` Name string `gorm:"type:varchar(255);not null"` Email string `gorm:"type:varchar(500);not null;unique"` PasswordHash string `gorm:"type:varchar(255);not null"` IsVerified bool `gorm:"not null;"` AccountID uint `gorm:"not null;"` Account Account }
func (*User) SetPassword ¶
func (*User) VerifyPasswordMatch ¶
Click to show internal directories.
Click to hide internal directories.