summaryrefslogblamecommitdiff
path: root/dichroism/src/schema.rs
blob: fb59bf6b8b9e8e4070aa1cf5ab9f651bfa0feb77 (plain) (tree)
1
2
3
4
5
6
7
8
9
        

                      



                          

     
 













                                              

                                      
             
  
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,
    }
}

joinable!(products -> photo_sets (photo_set));

allow_tables_to_appear_in_same_query!(
    photo_sets,
    products,
);