// @generated automatically by Diesel CLI.
diesel::table! {
actions (id) {
id -> Uuid,
created_at -> Timestamptz,
updated_at -> Timestamptz,
game_data_id -> Uuid,
invoker -> Uuid,
data -> Json,
timestamp -> Timestamptz,
}
}
diesel::table! {
gamedata (id) {
id -> Uuid,
created_at -> Timestamptz,
updated_at -> Timestamptz,
turn -> Int2,
host_hand -> Nullable<Json>,
host_deck -> Nullable<Json>,
guest_hand -> Nullable<Json>,
guest_deck -> Nullable<Json>,
}
}
diesel::table! {
games (id) {
id -> Uuid,
created_at -> Timestamptz,
updated_at -> Timestamptz,
host_id -> Uuid,
guest_id -> Nullable<Uuid>,
state -> Int2,
ended_at -> Nullable<Timestamptz>,
game_data_id -> Uuid,
}
}
diesel::table! {
users (id) {
id -> Uuid,
created_at -> Timestamptz,
updated_at -> Timestamptz,
username -> Varchar,
email -> Varchar,
password -> Varchar,
}
}
diesel::joinable!(actions -> gamedata (game_data_id));
diesel::joinable!(actions -> users (invoker));
diesel::joinable!(games -> gamedata (game_data_id));
diesel::allow_tables_to_appear_in_same_query!(
actions,
gamedata,
games,
users,
);