diff options
Diffstat (limited to 'timetask')
-rw-r--r-- | timetask/fields.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/timetask/fields.go b/timetask/fields.go new file mode 100644 index 0000000..84bf93a --- /dev/null +++ b/timetask/fields.go @@ -0,0 +1,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 +} |