table! { categories (id) { id -> Integer, path -> Text, } } table! { photo_sets (id) { id -> Integer, base -> Text, fullsize -> Text, thumbnail -> Text, original -> Text, } } table! { products (id) { id -> Integer, photo_set -> Integer, cents -> Integer, quantity -> Integer, name -> Text, description -> Text, featured -> Integer, category -> Integer, } } joinable!(products -> categories (category)); joinable!(products -> photo_sets (photo_set)); allow_tables_to_appear_in_same_query!( categories, photo_sets, products, );