diff options
Diffstat (limited to 'dichroism/src/schema.rs')
-rw-r--r-- | dichroism/src/schema.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dichroism/src/schema.rs b/dichroism/src/schema.rs index 5b038e6..9eb92d8 100644 --- a/dichroism/src/schema.rs +++ b/dichroism/src/schema.rs @@ -15,7 +15,22 @@ table! { } } +table! { + products (id) { + id -> Integer, + photo_set -> Integer, + cents -> Integer, + quantity -> Integer, + name -> Text, + description -> Text, + featured -> Integer, + } +} + +joinable!(products -> photo_sets (photo_set)); + allow_tables_to_appear_in_same_query!( photo_sets, photos, + products, ); |