stufflog graphql server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
872 B

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