Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Count ¶
type Count struct {
ID uint `gorm:"primarykey" json:"id"`
CreatedAt time.Time `json:"created_at"`
// Relations
CounterID uint `json:"counter_id"`
Counter Counter `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;" json:"counter"`
}
Count is a model struct for count.
type CountGroupResult ¶
CountGroupResult is a grouped result of Count.
type Counter ¶
type Counter struct {
ID uint `gorm:"primarykey" json:"id"`
Name string `gorm:"type:varchar(100);not null" json:"name"`
Count uint `json:"count"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
// Relations
NamespaceID uint `json:"namespace_id"`
Namespace Namespace `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;" json:"namespace"`
}
Counter is a model struct for counter.
Click to show internal directories.
Click to hide internal directories.