model

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvaluationStatuses

type EvaluationStatuses struct {
	ID            string `sql:"primary_key"`
	DescriptionEn string
	DescriptionLv string
	DevNotes      *string
}

type EvaluationTestResults

type EvaluationTestResults struct {
	ID             int64 `sql:"primary_key"`
	EvaluationID   int64
	EvalStatusID   string
	TaskVTestID    int64
	ExecRDataID    *int64
	CheckerRDataID *int64
}

type Evaluations

type Evaluations struct {
	ID                      int64 `sql:"primary_key"`
	EvalStatusID            string
	EvalTotalScore          int64
	EvalPossibleScore       *int64
	TestRuntimeStatisticsID *int64
	CompilationDataID       *int64
	CreatedAt               time.Time
	TaskVersionID           int64
}

type FlywaySchemaHistory

type FlywaySchemaHistory struct {
	InstalledRank int32 `sql:"primary_key"`
	Version       *string
	Description   string
	Type          string
	Script        string
	Checksum      *int32
	InstalledBy   string
	InstalledOn   time.Time
	ExecutionTime int32
	Success       bool
}

type MarkdownStatements

type MarkdownStatements struct {
	ID            int64 `sql:"primary_key"`
	Story         string
	Input         string
	Output        string
	Notes         *string
	Scoring       *string
	TaskVersionID *int64
	LangIso6391   string
}

type ProblemTags

type ProblemTags struct {
	ID            string `sql:"primary_key"`
	CreatedAt     *time.Time
	UpdatedAt     *time.Time
	ColorRgbHex   *string
	DescriptionLv *string
}

type ProgrammingLanguages

type ProgrammingLanguages struct {
	ID               string `sql:"primary_key"`
	FullName         string
	CodeFilename     string
	CompileCmd       *string
	ExecuteCmd       string
	EnvVersionCmd    *string
	HelloWorldCode   *string
	MonacoID         *string
	CompiledFilename *string
	Enabled          bool
}

type RuntimeData

type RuntimeData struct {
	ID              int64 `sql:"primary_key"`
	Stdout          *string
	Stderr          *string
	TimeMillis      *int64
	MemoryKibibytes *int64
	TimeWallMillis  *int64
	ExitCode        *int64
}

type RuntimeStatistics

type RuntimeStatistics struct {
	ID                     int64 `sql:"primary_key"`
	MaximumTimeMillis      int64
	MaximumMemoryKibibytes int64
	TotalTimeMillis        int64
	TotalMemoryKibibytes   int64
	AvgTimeMillis          float64
	AvgMemoryKibibytes     float64
}

type StatementExamples

type StatementExamples struct {
	ID            int64
	Input         string
	Answer        string
	TaskVersionID int64
}

type SubmissionEvaluations

type SubmissionEvaluations struct {
	ID           int64 `sql:"primary_key"`
	SubmissionID int64
	EvaluationID int64
}

type TaskOrigins

type TaskOrigins struct {
	Abbreviation string `sql:"primary_key"`
	FullName     string
}

type TaskSubmissions

type TaskSubmissions struct {
	ID                int64 `sql:"primary_key"`
	UserID            int64
	TaskID            int64
	ProgrammingLangID string
	Submission        string
	CreatedAt         time.Time
	Hidden            bool
	VisibleEvalID     *int64
}

type TaskVersionTests

type TaskVersionTests struct {
	ID               int64 `sql:"primary_key"`
	TestFilename     string
	TaskVersionID    int64
	InputTextFileID  int64
	AnswerTextFileID int64
}

type TaskVersions

type TaskVersions struct {
	ID              int64 `sql:"primary_key"`
	TaskID          int64
	ShortCode       string
	FullName        string
	TimeLimMs       int64
	MemLimKibibytes int64
	TestingTypeID   string
	Origin          *string
	CreatedAt       time.Time
	UpdatedAt       *time.Time
	CheckerID       *int64
	InteractorID    *int64
}

type Tasks

type Tasks struct {
	ID                 int64 `sql:"primary_key"`
	CreatedAt          time.Time
	CreatedByID        int64
	RelevantVersionID  *int64
	PublishedVersionID *int32
}

type TestingTypes

type TestingTypes struct {
	ID            string `sql:"primary_key"`
	DescriptionEn string
}

type TestlibCheckers

type TestlibCheckers struct {
	ID   int64 `sql:"primary_key"`
	Code string
}

type TestlibInteractors

type TestlibInteractors struct {
	ID   int64 `sql:"primary_key"`
	Code string
}

type TextFiles

type TextFiles struct {
	ID        int64 `sql:"primary_key"`
	Sha256    string
	Content   string
	CreatedAt *time.Time
}

type Users

type Users struct {
	ID             int64 `sql:"primary_key"`
	Username       string
	Email          string
	HashedPassword string
	FirstName      string
	LastName       string
	CreatedAt      time.Time
	UpdatedAt      *time.Time
	IsAdmin        bool
}

type VersionAuthors

type VersionAuthors struct {
	TaskVersionID int32  `sql:"primary_key"`
	Author        string `sql:"primary_key"`
}

Jump to

Keyboard shortcuts

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