package models import "time" // An Goal denotes a goal for a project or an activity within a project. // It can ask for one or more of the time, unit or score. If there is no // activity ID provided, all activities within the project should contribute. // If there are no activity, a non-zero unit amount is not allowed. type Goal struct { ActivityGoalID string `db:"goal_id"` ProjectID string `db:"project_id"` ActivityID string `db:"activity_id"` UserID string `db:"user_id"` TimeAmount time.Duration `db:"time_amount"` AllRequired bool `db:"all_required"` UnitAmount int `db:"unit_amount"` ScoreAmount int `db:"score_amount"` TaskAmount int `db:"task_amount"` StartTime time.Time `db:"start_time"` EndTime time.Time `db:"end_time"` }