models

package
v0.0.0-...-2218ed6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

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.
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL