schema.rs 305 Bytes
Newer Older
Gaël Berthaud-Müller's avatar
Gaël Berthaud-Müller committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
table! {
    localuser (user_id) {
        user_id -> Text,
        username -> Text,
        password -> Text,
    }
}

table! {
    user (id) {
        id -> Text,
        role -> Text,
    }
}

joinable!(localuser -> user (user_id));

allow_tables_to_appear_in_same_query!(
    localuser,
    user,
);