DEVELOPMENT ENVIRONMENT

~liljamo/ulairi

ref: 6881fb5a28bf2746e4aebf61ec5f3b9a4ac7a886 ulairi/ulairi-api/src/schema.rs -rw-r--r-- 729 bytes
6881fb5aJonni Liljamo docs: update README.md, add LICENSE and NOTICE 11 months ago
                                                                                
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
table! {
    hour_entries (id) {
        id -> Int4,
        user_id -> Int4,
        hours -> Int4,
        date_worked -> Date,
        date_entered -> Date,
    }
}

table! {
    roles (id) {
        id -> Int4,
        name -> Varchar,
    }
}

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

table! {
    users_roles (id) {
        id -> Int4,
        user_id -> Int4,
        role_id -> Int4,
    }
}

joinable!(hour_entries -> users (user_id));
joinable!(users_roles -> roles (role_id));
joinable!(users_roles -> users (user_id));

allow_tables_to_appear_in_same_query!(
    hour_entries,
    roles,
    users,
    users_roles,
);