summaryrefslogtreecommitdiff
path: root/dichroism/src/schema.rs
blob: 2d9e14a2178c90a6aaf6f54bdd3278ff8a6f3f76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 -> Text,
    }
}

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

allow_tables_to_appear_in_same_query!(
    photo_sets,
    products,
);