model

package
v0.0.0-...-128d701 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: GPL-3.0 Imports: 1 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	ID        int64
	FirstName string
	LastName  string
	Email     string
	Digest    string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Assistant

type Assistant struct {
	ID        int64
	StudentNo string
	FirstName string
	LastName  string
	Email     string
	Digest    string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type AssistantLecture

type AssistantLecture struct {
	ID        int64
	StudentID int64
	LectureID int64
	CreatedAt time.Time
	UpdatedAt time.Time
}

type AssistantLectures

type AssistantLectures []*AssistantLecture

type Assistants

type Assistants = []*Assistant

type Class

type Class struct {
	ID        int64
	LectureID int64
	Name      string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Classes

type Classes []*Class

type Comment

type Comment struct {
	ID        int64
	HelpID    int64
	UserType  UserType
	UserID    int64
	Contents  string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Comments

type Comments []*Comment

type Help

type Help struct {
	ID        int64
	LectureID int64
	StudentID int64
	Title     string
	Contents  string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Helps

type Helps []*Help

type Lecture

type Lecture struct {
	ID        int64
	Name      string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Lectures

type Lectures []*Lecture

type Student

type Student struct {
	ID        int64
	StudentNo string
	FirstName string
	LastName  string
	Email     string
	Digest    string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type StudentLecture

type StudentLecture struct {
	ID        int64
	StudentID int64
	LectureID int64
	CreatedAt time.Time
	UpdatedAt time.Time
}

type StudentLectures

type StudentLectures []*StudentLecture

type Students

type Students []*Student

type Task

type Task struct {
	ID        int64
	ClassID   int64
	Title     string
	Desc      string
	Deadline  time.Time
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Tasks

type Tasks []*Task

type Teacher

type Teacher struct {
	ID        int64
	FirstName string
	LastName  string
	Email     string
	Digest    string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type TeacherLecture

type TeacherLecture struct {
	ID        int64
	TeacherID int64
	LectureID int64
	CreatedAt time.Time
	UpdatedAt time.Time
}

type TeacherLectures

type TeacherLectures []*TeacherLecture

type Teachers

type Teachers = []*Teacher

type UserType

type UserType int
const (
	StudentUser UserType = iota
	AssistantUser
	TeacherUser
	AdminUser
)

func (UserType) String

func (ut UserType) String() string

Jump to

Keyboard shortcuts

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