Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseModel ¶
type BaseModel struct { // ID should use uuid_generate_v4() for the pk's ID uuid.UUID `gorm:"primary_key;type:uuid"` CreatedAt time.Time `gorm:"index;not null"` // (My|Postgre)SQL UpdatedAt *time.Time `gorm:"index"` }
BaseModel defines the common columns that all db structs should hold, usually db structs based on this have no soft delete
type BaseModelSoftDelete ¶
BaseModelSoftDelete defines the common columns that all db structs should hold, usually. This struct also defines the fields for GORM triggers to detect the entity should soft delete
type EventCapability ¶
type Organization ¶
type User ¶
type User struct { BaseModelSoftDelete Name string `gorm:"type:varchar(255)"` FirstName string `gorm:"type:varchar(255)"` LastName string `gorm:"type:varchar(255)"` NickName string `gorm:"type:varchar(255)"` Email string `gorm:"type:varchar(255)"` AvatarURL string Description string UserID string `sql:"index"` Members []Member Wallet *Wallet WalletID *uuid.UUID LoginAt *time.Time ConfirmedAt *time.Time VerifiedAt *time.Time InvitedAt *time.Time }
type Wallet ¶
type Wallet struct { BaseModelSoftDelete OrganizationID uuid.UUID UserID uuid.UUID Organization Organization EthAddress string }
Click to show internal directories.
Click to hide internal directories.