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.

19 lines
628 B

4 years ago
  1. package models
  2. // Activity is an activity within a project that can be measured and estimated, for example "writing" or "developing".
  3. // The points are for the "gamified" aspect of this.
  4. type Activity struct {
  5. ID string `db:"activity_id"`
  6. ProjectID string `db:"project_id"`
  7. Name string `db:"name"`
  8. Countable bool `db:"countable"`
  9. UnitIsTimeSpent bool `db:"unit_is_time"`
  10. UnitName string `db:"unit_name"`
  11. UnitValue float64 `db:"unit_value"`
  12. BaseValue float64 `db:"base_value"`
  13. }
  14. type ActivityFilter struct {
  15. ActivityIDs []string
  16. ProjectIDs []string
  17. }