aboutsummaryrefslogtreecommitdiffstats
path: root/timetask/fields.go
blob: 4e3ac7c1ec103e355b8be4f399810d2292dca941 (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
28
29
30
31
32
33
package timetask

type Client struct {
	ID       uint
	Name     string
	Projects []Project
}

type Project struct {
	ID        uint
	Name      string
	Modules   []Module
	Tasks     []Task
	WorkTypes []WorkType `yaml:"work_types"`
}

type Module struct {
	ID   uint
	Name string
}
type Task struct {
	ID   uint
	Name string
}
type WorkType struct {
	ID   uint
	Name string
}

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