Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { ID int `json:"id" gorm:"primaryKey"` Name string `json:"name" gorm:"not null"` UserID int `json:"user_id" gorm:"references:users;not null"` Balance float64 `json:"balance,omitempty" gorm:"not null"` Picture string `json:"path,omitempty" gorm:"not null"` IsActive bool `json:"is_active" gorm:"not null"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"` }
type Category ¶
type Category struct { ID int `json:"id" gorm:"primaryKey"` Name string `json:"name" gorm:"not null"` Description string `json:"description" gorm:"not null"` Price float64 `json:"price,omitempty" gorm:"not null"` Picture string `json:"path,omitempty" gorm:"not null"` IsActive bool `json:"is_active" gorm:"not null"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"` }
type PostgresSettings ¶
type Settings ¶
type Settings struct { AppParams Params PostgresParams PostgresSettings }
type Transaction ¶
type Transaction struct { ID int `json:"id" gorm:"primaryKey"` From int `json:"from_id"` To int `json:"to_id"` ToType string `json:"to_type"` Comment string `json:"comment,omitempty" gorm:"not null"` Amount float64 `json:"amount"` Type string `json:"type"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"` }
type User ¶
type User struct { ID int `json:"id" gorm:"primaryKey"` Firstname string `json:"firstname" gorm:"not null"` Lastname string `json:"lastname" gorm:"not null"` Username string `json:"username" gorm:"not null;unique"` Email string `json:"email" gorm:"not null;unique"` Password string `json:"-" gorm:"not null"` Picture string `json:"path,omitempty" gorm:"not null"` IsActive bool `json:"is_active" gorm:"not null"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"` }
Click to show internal directories.
Click to hide internal directories.