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