models

package
v0.0.0-...-02de94c Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EducationMaterial

type EducationMaterial struct {
	ID           string `json:"id,omitempty" db:"id"`
	TaskID       string `json:"task_id" db:"task_id"`
	Name         string `json:"name" db:"name"`
	Description  string `json:"description" db:"description"`
	Category     string `json:"category" db:"category"`
	MaterialLink string `json:"material_link" db:"material_url"`
	CreatedAt    string `json:"created_at,omitempty" db:"created_at"`
	UpdatedAt    string `json:"updated_at,omitempty" db:"updated_at"`
}

type Task

type Task struct {
	ID          string     `json:"id,omitempty" db:"id"`
	Name        string     `json:"name" db:"name"`
	Description string     `json:"description" db:"description"`
	Status      TaskStatus `json:"status" db:"status"`
	UserID      string     `json:"user_id,omitempty" db:"user_id"`
	DueTo       string     `json:"due_to" db:"due_to"`
	CreatedAt   string     `json:"created_at,omitempty" db:"created_at"`
	UpdatedAt   string     `json:"updated_at,omitempty" db:"updated_at"`
}

type TaskStatus

type TaskStatus string
var (
	TaskStatusTODO       TaskStatus = "todo"
	TaskStatusInProgress TaskStatus = "in progress"
	TaskStatusReview     TaskStatus = "review"
	TaskStatusFinished   TaskStatus = "finished"
)

type TaskWithMaterials

type TaskWithMaterials struct {
	Task               *Task
	EducationMaterials []*EducationMaterial
}

Jump to

Keyboard shortcuts

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