models

package
v0.0.0-...-a4a49b0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Course

type Course struct {
	ID      primitive.ObjectID `json:"_id" bson:"_id"`
	Code    string             `json:"code" bson:"code"`
	Credits int                `json:"credits" bson:"credits"`
	Faculty string             `json:"faculty" bson:"faculty"`
	Owner   string             `json:"owner" bson:"owner"`
	Room    string             `json:"room" bson:"room"`
	Slot    string             `json:"slot" bson:"slot"`
	Title   string             `json:"title" bson:"title"`
	Type    string             `json:"type" bson:"type"`
}

type CourseItem

type CourseItem struct {
	ID      primitive.ObjectID `json:"_id" bson:"_id"`
	Code    string             `json:"code" bson:"code"`
	Title   string             `json:"title" bson:"title"`
	Credits int                `json:"credits" bson:"credits"`
	Type    string             `json:"type" bson:"type"`
}

type CourseList

type CourseList struct {
	ID      primitive.ObjectID `json:"_id" bson:"_id"`
	Courses []CourseItem       `json:"courses" bson:"courses"`
}

type Faculty

type Faculty struct {
	ID      primitive.ObjectID   `json:"_id" bson:"_id"`
	Name    string               `json:"faculty" bson:"faculty"`
	Rating  float64              `json:"rating" bson:"rating"`
	Reviews int                  `json:"reviews" bson:"reviews"`
	RatedBy []primitive.ObjectID `json:"ratedby" bson:"ratedby"`
}

type FacultyList

type FacultyList struct {
	ID          primitive.ObjectID `json:"_id" bson:"_id"`
	FacultyList []Faculty          `json:"faculty" bson:"faculty"`
}

type FacultyRating

type FacultyRating struct {
	ID     primitive.ObjectID `json:"_id" bson:"_id"`
	Rating float64            `json:"rating" bson:"rating"`
}

type TimeTable

type TimeTable struct {
	ID      primitive.ObjectID `json:"_id" bson:"_id"`
	Slots   [60]bool           `json:"slots" bson:"slots"`
	Courses []TimeTableCourse  `json:"courses" bson:"courses"`
}

type TimeTableCourse

type TimeTableCourse struct {
	ID      primitive.ObjectID `json:"_id" bson:"_id"`
	Code    string             `json:"code" bson:"code"`
	Title   string             `json:"title" bson:"title"`
	Credits int                `json:"credits" bson:"credits"`
	Type    string             `json:"type" bson:"type"`
	Slot    []int              `json:"slot" bson:"slot"`
}

type User

type User struct {
	ID       primitive.ObjectID `json:"_id" bson:"_id"`
	Email    string             `json:"email" bson:"email"`
	Password string             `json:"password" bson:"password"`
}

Jump to

Keyboard shortcuts

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