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
432 B

  1. package models
  2. type Item struct {
  3. ID string `db:"item_id"`
  4. Name string `db:"name"`
  5. Description string `db:"description"`
  6. Tags []string `db:"tags"`
  7. ImageURL *string `db:"image_url"`
  8. }
  9. type ItemFilter struct {
  10. ItemIDs []string
  11. Tags []string
  12. }
  13. /*
  14. SELECT i.item_id, i.name FROM item i
  15. LEFT JOIN tag AS t ON t.item_id = i.item_id
  16. WHERE t.tag_name IN ("Groceries")
  17. GROUP by i.item_id;
  18. */