oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package kernel
2
3import "amadan.net/oficina/equipo/internal/equipo/team"
4
5type Account struct {
6 ID int64
7 Label string `gorm:"uniqueIndex:account_label,expression:lower(trim(label))"`
8 Revision int64
9}
10type DecisionOwner struct {
11 ProjectID int64 `gorm:"primaryKey;autoIncrement:false"`
12 Decision string `gorm:"primaryKey"`
13 Address string `gorm:"index"`
14}
15type ProjectGroup struct {
16 Account Account
17 Projects []ProjectDetail
18}
19type ProjectDetail struct {
20 Project Project
21 Owners []DecisionOwner
22}
23type BudgetConfig struct {
24 Revision int64
25 Team team.PeriodLimits
26 Projects map[team.ProjectID]team.PeriodLimits
27}
28
29type BudgetRecord struct {
30 TeamID string `gorm:"primaryKey"`
31 Revision int64
32 Config string
33}
34