aboutsummaryrefslogtreecommitdiffstats
path: root/src/schema.rs
blob: 84bf5babc7a25b92756136f0fea2935ab3616258 (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
30
table! {
    history (id) {
        id -> Int8,
        client_id -> Text,
        user_id -> Int8,
        hostname -> Text,
        timestamp -> Timestamp,
        data -> Varchar,
        created_at -> Timestamp,
    }
}

table! {
    sessions (id) {
        id -> Int8,
        user_id -> Int8,
        token -> Varchar,
    }
}

table! {
    users (id) {
        id -> Int8,
        username -> Varchar,
        email -> Varchar,
        password -> Varchar,
    }
}

allow_tables_to_appear_in_same_query!(history, sessions, users,);