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










                             



                      
 













                                              


                                      
             
  
table! {
    photo_sets (id) {
        id -> Integer,
        base -> Integer,
        fullsize -> Integer,
        thumbnail -> Integer,
        original -> Integer,
    }
}

table! {
    photos (id) {
        id -> Integer,
        path -> 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,
    photos,
    products,
);