aboutsummaryrefslogtreecommitdiffstats
path: root/timetask/fields.go
blob: 84bf93a5da54c494e4c03d6280486b910b2c69bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package timetask

type IDName struct {
	ID   uint
	Name string
}

type Client struct {
	IDName
	Projects []Project
}

type Project struct {
	IDName
	Modules   []Module
	Tasks     []Task
	WorkTypes []WorkType `yaml:"work_types"`
}

type Module IDName
type Task IDName
type WorkType IDName

type Fields struct {
	PersonID uint `yaml:"person_id"`
	Clients  []Client
}