package models type Item struct { ID string `db:"item_id"` Name string `db:"name"` Description string `db:"description"` Tags []string `db:"tags"` ImageURL *string `db:"image_url"` } type ItemFilter struct { ItemIDs []string Tags []string } /* SELECT i.item_id, i.name FROM item i LEFT JOIN tag AS t ON t.item_id = i.item_id WHERE t.tag_name IN ("Groceries") GROUP by i.item_id; */