Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func ConnectDatabase ¶
func ConnectDatabase()
Types ¶
type Homework ¶
type Homework struct { Id int `json:"id" gorm:"primary_key"` Grade string `json:"grade"` Class string `json:"class"` Course string `json:"course"` Task string `json:"task"` Reported *string `json:"reportedBy" default:"null"` Author string `json:"author"` Deadline int64 `json:"deadline"` // to have a unixTimestamp. Gorm and go have bad timestamp support. }
Click to show internal directories.
Click to hide internal directories.