Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { GroupID uint `gorm:"primary_key"` CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time `sql:"index"` GroupName string `gorm:"type:varchar(100);not null"` GroupURL string `gorm:"type:varchar(180)"` GroupLogo string Verified bool Active bool Handle string `gorm:"type:varchar(50);not null"` Ibans []Iban `gorm:"polymorphic:Owner;"` }
Group : Model with injected fields `ID`, `CreatedAt`, `UpdatedAt`
type Iban ¶
type Iban struct { IbanID uint `gorm:"primary_key"` CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time `sql:"index"` Text string `gorm:"type:varchar(100);not null"` Description string Password string Handle string `gorm:"type:varchar(20);not null"` Active bool IsPrivate bool OwnerID uint OwnerType string }
Iban : Model with injected fields `ID`, `CreatedAt`, `UpdatedAt`
func (*Iban) CheckHandle ¶
Check Handle before create or update = must be add as index to db
func (*Iban) ComparePassword ¶
ComparePassword : compare the password
type User ¶
type User struct { UserID uint `gorm:"primary_key"` CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time `sql:"index"` Email string `gorm:"type:varchar(100);not null"` Password string `gorm:"not null"` Handle string `gorm:"not null;unique"` FirstName string `gorm:"type:varchar(50);not null"` LastName string `gorm:"type:varchar(50);not null"` Bio string `gorm:"type:text"` Visible bool // visible email address Avatar string Verified bool Active bool Admin bool Ibans []*Iban `gorm:"polymorphic:Owner;"` }
User : Model with injected fields `ID`, `CreatedAt`, `UpdatedAt`
func (*User) ComparePassword ¶
ComparePassword : compare the password
Click to show internal directories.
Click to hide internal directories.