summaryrefslogtreecommitdiffstats
path: root/src/schema.rs
blob: 0e42988aa7b60c5fa52d8fbe776ce41813cda199 (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
table! {
    repositories (id) {
        id -> Unsigned<Bigint>,
        name -> Varchar,
        description -> Varchar,
        owner -> Unsigned<Bigint>,
        created -> Timestamp,
    }
}

table! {
    users (id) {
        id -> Unsigned<Bigint>,
        power_level -> Integer,
        name -> Varchar,
        created -> Timestamp,
        hash -> Char,
    }
}

joinable!(repositories -> users (owner));

allow_tables_to_appear_in_same_query!(
    repositories,
    users,
);