models

package
v0.0.0-...-00bc121 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() (*gorm.DB, error)

Types

type AvaliacaoDisciplina

type AvaliacaoDisciplina struct {
	CodUsuario    string `gorm:"primaryKey"`
	CodDisciplina string `gorm:"primaryKey"`
	NotaAvaliacao uint8
	DataAvaliacao *time.Time
}

func (AvaliacaoDisciplina) TableName

func (AvaliacaoDisciplina) TableName() string

type AvaliacaoProfessor

type AvaliacaoProfessor struct {
	CodUsuario    string `gorm:"primaryKey"`
	NomeProfessor string `gorm:"primaryKey"`
	NotaAvaliacao uint8
	DataAvaliacao *time.Time
}

func (AvaliacaoProfessor) TableName

func (AvaliacaoProfessor) TableName() string

type Curriculo

type Curriculo struct {
	CodCurriculo  uint8 `gorm:"primaryKey"`
	NomeCurriculo string
}

type Disciplina

type Disciplina struct {
	CodDisciplina  string `gorm:"primaryKey"`
	CodDepto       string
	NomeDisciplina string
	Ementa         sql.NullString
	Creditos       uint8
}

type Grade

type Grade struct {
	CodGrade   string `gorm:"primaryKey"`
	CodUsuario string
	Conteudo   string
}

type Historico

type Historico struct {
	CodUsuario    string `gorm:"primaryKey"`
	CodDisciplina string `gorm:"primaryKey"`
	Semestre      int    `gorm:"primaryKey"`
	Grau          int
}

type Modificacao

type Modificacao struct {
	DataEmenta   *time.Time `gorm:"primaryKey" json:"dataEmenta"`
	DataGeral    *time.Time `gorm:"primaryKey" json:"dataGeral"`
	ModoFallback bool       `gorm:"primaryKey" json:"modoFallback"`
}

func (Modificacao) TableName

func (Modificacao) TableName() string

type Professor

type Professor struct {
	NomeProfessor string `gorm:"primaryKey"`
}

type Semestre

type Semestre struct {
	CodDisciplina string `gorm:"primaryKey"`
	CodCurriculo  uint8  `gorm:"primaryKey"`
	Semestre      uint8
}

type Usuario

type Usuario struct {
	CodUsuario   string `gorm:"primaryKey"`
	NomeUsuario  string
	CodCurriculo sql.NullString
}

Jump to

Keyboard shortcuts

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