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

package models
// Activity is an activity within a project that can be measured and estimated, for example "writing" or "developing".
// The points are for the "gamified" aspect of this.
type Activity struct {
ID string `db:"activity_id"`
ProjectID string `db:"project_id"`
Name string `db:"name"`
Countable bool `db:"countable"`
UnitIsTimeSpent bool `db:"unit_is_time"`
UnitName string `db:"unit_name"`
UnitValue float64 `db:"unit_value"`
BaseValue float64 `db:"base_value"`
}
type ActivityFilter struct {
ActivityIDs []string
ProjectIDs []string
}