Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidSlot = errors.New("invalid slot")
)
View Source
var Table = "slots"
Functions ¶
Types ¶
type Slot ¶
type Slot struct { ID int `json:"id" gorm:"primary_key;unique;not null"` Hours string `json:"hours" gorm:"not null"` IsActive bool `json:"is_active" gorm:"default:false;not null"` CreatedAt time.Time `json:"created_at" gorm:"default:CURRENT_TIMESTAMP;not null"` UpdatedAt time.Time `json:"updated_at" gorm:"default:CURRENT_TIMESTAMP;not null"` }
Slot contains the schema for specific identity
Click to show internal directories.
Click to hide internal directories.