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.

25 lines
589 B

  1. package models
  2. import "time"
  3. type Log struct {
  4. ID string `db:"log_id"`
  5. IssueID string `db:"issue_id"`
  6. UserID string `db:"user_id"`
  7. IssueTaskID *string `db:"issue_task_id"`
  8. UnitsDone *int `db:"units_done"`
  9. Duration time.Duration `db:"duration"`
  10. Description []string `db:"description"`
  11. }
  12. type LogFilter struct {
  13. LogIDs []string
  14. IssueIDs []string
  15. IssueTaskIDs []string
  16. }
  17. type LogItem struct {
  18. LogID string `db:"log_id"`
  19. IssueItemID string `db:"issue_item_id"`
  20. Amount int `db:"amount"`
  21. }