aboutsummaryrefslogtreecommitdiff
path: root/src/schema.rs
blob: b6074f2b0fedb053310338a626c79041cb1bf76a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
table! {
    members (id) {
        id -> Integer,
        username -> Varchar,
        password -> Varchar,
        phone_number -> Varchar,
        email_id -> Varchar,
    }
}

table! {
    product (id) {
        id -> Integer,
        name -> Varchar,
        kind -> Nullable<Varchar>,
        price -> Float,
        description -> Nullable<Varchar>,
    }
}

allow_tables_to_appear_in_same_query!(
    members,
    product,
);