model_old

package
v0.0.0-...-d42fbf4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Class

type Class struct {
	ID   uuid.UUID `db:"id" json:"id" gorm:"primary_key"`
	Name string    `db:"name" json:"name"`
}

type LocalIdentity

type LocalIdentity struct {
	UserID   uuid.UUID `db:"user_id" json:"user_id"`
	Password string    `db:"password" json:"password"`
}

type MultipleChoiceAnswer

type MultipleChoiceAnswer struct {
	ID         uuid.UUID `db:"id" json:"id"`
	QuestionID uuid.UUID `db:"question_id" json:"question_id"`
	Answer     string    `db:"answer" json:"answer"`
	Correct    bool      `db:"correct" json:"correct"`
}

type MultipleChoiceQuestion

type MultipleChoiceQuestion struct {
	ID            uuid.UUID `db:"id" json:"id"`
	ClassID       uuid.UUID `db:"class_id" json:"class_id"`
	AuthorID      uuid.UUID `db:"author_id" json:"author_id"`
	Question      string    `db:"question" json:"question"`
	PartialCredit bool      `db:"partial_credit" json:"partial_credit"`
	Timestamp     time.Time `db:"timestamp" json:"timestamp"`
	UnitID        uuid.UUID `db:"unit_id" json:"unit_id"`
}

type MultipleChoiceResponse

type MultipleChoiceResponse struct {
	ID         uuid.UUID `db:"id" json:"id"`
	QuestionID uuid.UUID `db:"question_id" json:"question_id"`
	AuthorID   uuid.UUID `db:"author_id" json:"author_id"`
	ResponseID uuid.UUID `db:"response_id" json:"response_id"`
}

type Profile

type Profile struct {
	ID      uuid.UUID `db:"id" json:"id"`
	UserID  uuid.UUID `db:"user_id" json:"user_id"`
	ClassID uuid.UUID `db:"class_id" json:"class_id"`
	Role    string    `db:"role" json:"role"`
}

type Question

type Question struct {
	ID           uuid.UUID `db:"id" json:"id"`
	AuthorID     uuid.UUID `db:"author_id" json:"author_id"`
	QuestionType string    `db:"question_type" json:"question_type"`
	UnitID       uuid.UUID `db:"unit_id" json:"unit_id"`
	VoteCount    int       `db:"vote_count" json:"vote_count"`
}

type ShortAnswerQuestion

type ShortAnswerQuestion struct {
	ID            uuid.UUID `db:"id" json:"id"`
	ClassID       uuid.UUID `db:"class_id" json:"class_id"`
	AuthorID      uuid.UUID `db:"author_id" json:"author_id"`
	Prompt        string    `db:"prompt" json:"prompt"`
	MinimumLength int       `db:"minimum_length" json:"minimum_length"`
	MaximumLength int       `db:"maximum_length" json:"maximum_length"`
	UnitID        uuid.UUID `db:"unit_id" json:"unit_id"`
}

type ShortAnswerResponse

type ShortAnswerResponse struct {
	ID         uuid.UUID `db:"id" json:"id"`
	QuestionID uuid.UUID `db:"question_id" json:"question_id"`
	AuthorID   uuid.UUID `db:"author_id" json:"author_id"`
	Response   string    `db:"response" json:"response"`
}

type TrueFalseQuestion

type TrueFalseQuestion struct {
	ID            uuid.UUID `db:"id" json:"id"`
	ClassID       uuid.UUID `db:"class_id" json:"class_id"`
	AuthorID      uuid.UUID `db:"author_id" json:"author_id"`
	Question      string    `db:"question" json:"question"`
	CorrectAnswer bool      `db:"correct_answer" json:"correct_answer"`
	UnitID        uuid.UUID `db:"unit_id" json:"unit_id"`
}

type TrueFalseResponse

type TrueFalseResponse struct {
	ID         uuid.UUID `db:"id" json:"id"`
	QuestionID uuid.UUID `db:"question_id" json:"question_id"`
	AuthorID   uuid.UUID `db:"author_id" json:"author_id"`
	Response   bool      `db:"response" json:"response"`
}

type Unit

type Unit struct {
	ID      uuid.UUID `db:"id" json:"id"`
	ClassID uuid.UUID `db:"class_id" json:"class_id"`
	Name    string    `db:"name" json:"name"`
	Weight  int       `db:"weight" json:"weight"`
}

type User

type User struct {
	ID    uuid.UUID `db:"id" json:"id"`
	Name  string    `db:"name" json:"name"`
	Email string    `db:"email" json:"email"`
}

Jump to

Keyboard shortcuts

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