Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Fasting ¶
type Fasting struct { ID uint `json:"id" gorm:"column:id;primarykey"` CategoryID uint `json:"category_id" gorm:"column:category_id;not null"` TypeID uint `json:"type_id" gorm:"column:type_id;not null"` Date datatypes.Date `json:"date" gorm:"column:date;not null"` Year uint32 `json:"year" gorm:"column:year;not null"` Month uint32 `json:"month" gorm:"column:month;not null"` Day uint32 `json:"day" gorm:"column:day;not null"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Category Category `json:"category" gorm:"foreignKey:CategoryID;references:ID"` Type Type `json:"type" gorm:"foreignKey:TypeID;references:ID"` }
type Source ¶
type Type ¶
type Type struct { ID uint `json:"id" gorm:"column:id;primarykey"` Name string `json:"name" gorm:"column:name;type:varchar(255);not null"` Description string `json:"description" gorm:"column:description;type:text;not null"` CreatedAt time.Time `json:"created_at" gorm:"column:created_at"` UpdatedAt time.Time `json:"updated_at" gorm:"column:updated_at"` }
Click to show internal directories.
Click to hide internal directories.