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,
);