diff options
Diffstat (limited to 'dichroism/src/schema.rs')
| -rw-r--r-- | dichroism/src/schema.rs | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/dichroism/src/schema.rs b/dichroism/src/schema.rs index fb59bf6..45501cf 100644 --- a/dichroism/src/schema.rs +++ b/dichroism/src/schema.rs @@ -1,4 +1,11 @@  table! { +    categories (id) { +        id -> Integer, +        path -> Text, +    } +} + +table! {      photo_sets (id) {          id -> Integer,          base -> Text, @@ -17,12 +24,15 @@ table! {          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,  );  |