domain

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.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 Answer

type Answer struct {
	ID         uuid.UUID
	QuestionID uuid.UUID
	Text       string
	IsCorrect  bool
}

func (Answer) TableName

func (Answer) TableName() string

type Form

type Form struct {
	ID               uuid.UUID
	Name             string
	TeacherUsername  string
	Questions        []*Question `gorm:"foreignKey:FormID;references:ID"`
	Description      string
	TestingBeginDate time.Time
	TestingEndDate   time.Time
	CreatedAt        time.Time
}

func (Form) TableName

func (Form) TableName() string

type Question

type Question struct {
	ID      uuid.UUID
	FormID  uuid.UUID
	Text    string
	Answers []*Answer `gorm:"foreignKey:QuestionID;references:ID"`
}

func (Question) TableName

func (Question) TableName() string

Jump to

Keyboard shortcuts

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