Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PaymentHistory ¶
type PaymentHistory struct { ID uint64 `gorm:"primary_key" json:"-"` UserID uint64 `gorm:"type:bigint not null REFERENCES users(id)" json:"-"` IPN string `gorm:"not null;type:text" json:"-"` IPNRAW string `gorm:"not null;type:text" json:"-"` UpdatedAt time.Time `json:"-"` CreatedAt time.Time `json:"-"` }
type User ¶
type User struct { ID uint64 `gorm:"primary_key" json:"-"` PaymentID string `gorm:"not null" json:"-"` Email string `gorm:"not null;unique" json:"-"` EmailVerified *time.Time `json:"-"` StartedSubscription *time.Time `json:"-"` CancelledSubscription *time.Time `json:"-"` Quota uint64 `gorm:"not null;default:10737418240" json:"quota"` QuotaInode uint64 `gorm:"not null;default:1000" json:"quota_inode"` HashedPassword string `gorm:"not null" json:"-"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` }
func (*User) GenerateVerificationLink ¶
func (user *User) GenerateVerificationLink() *VerificationLink
func (*User) MatchPassword ¶
func (*User) SetPassword ¶
type VerificationLink ¶
type VerificationLink struct { ID string `gorm:"primary_key" json:"-"` UserID uint64 `gorm:"type:bigint not null REFERENCES users(id)" json:"-"` Email string `gorm:"type:varchar(255) not null" json:"-"` VerifiedAt *time.Time `gorm:"null" json:"-"` SentAt uint64 `gorm:"not null" json:"-"` UpdatedAt time.Time `json:"-"` CreatedAt time.Time `json:"-"` }
Click to show internal directories.
Click to hide internal directories.