models

package
v0.0.0-...-8c4f088 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 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 Board

type Board struct {
	gorm.Model
	TeamID  int
	Columns []*Column
}

type Card

type Card struct {
	gorm.Model
	ColumnID int
	Title    string
	//Labels   []*Label `gorm:"many2many:task_label;"`
	Tasks []*TeamTask
}

type Column

type Column struct {
	gorm.Model
	BoardID int
	Name    string
	Cards   []*Card
}

type Label

type Label struct {
	gorm.Model
	Name  string
	Color string
}

type Score

type Score struct {
	gorm.Model
	Value  int64
	TeamID int
}

type Task

type Task struct {
	gorm.Model
	Name        string `gorm:"uniqueIndex"`
	Description string
	Points      int64
}

type TaskColumn

type TaskColumn struct {
	gorm.Model
	ColumnName string
	Card       []*Card
}

type Team

type Team struct {
	gorm.Model
	Name  string `gorm:"uniqueIndex"`
	Users []User
	Score Score
	Board Board
}

type TeamTask

type TeamTask struct {
	gorm.Model
	CardID    int
	TaskID    int
	Task      *Task
	Completed bool
}

type User

type User struct {
	gorm.Model
	UserID string `gorm:"uniqueIndex"`
	TeamID int
}

Jump to

Keyboard shortcuts

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