// @generated automatically by Diesel CLI.

diesel::table! {
    icon (id) {
        id -> Uuid,
        #[max_length = 255]
        name -> Varchar,
        #[max_length = 255]
        content_type -> Varchar,
        #[max_length = 1024]
        path -> Varchar,
        #[max_length = 2048]
        url -> Varchar,
        width -> Int4,
        height -> Int4,
        state -> Nullable<Jsonb>,
    }
}

diesel::table! {
    ingredient (id) {
        id -> Uuid,
        resource -> Uuid,
        quantity -> Int4,
        state -> Nullable<Jsonb>,
        recipe -> Uuid,
    }
}

diesel::table! {
    recipe (id) {
        id -> Uuid,
        resource -> Uuid,
        quantity -> Int4,
        #[max_length = 50]
        recipe_type -> Varchar,
        duration -> Int4,
        #[max_length = 50]
        unit -> Varchar,
        state -> Nullable<Jsonb>,
    }
}

diesel::table! {
    resource (id) {
        id -> Uuid,
        #[max_length = 255]
        name -> Varchar,
        #[max_length = 255]
        title -> Varchar,
        #[max_length = 512]
        url -> Nullable<Varchar>,
        icon -> Nullable<Uuid>,
        state -> Nullable<Jsonb>,
    }
}

diesel::joinable!(ingredient -> recipe (recipe));
diesel::joinable!(ingredient -> resource (resource));
diesel::joinable!(recipe -> resource (resource));
diesel::joinable!(resource -> icon (icon));

diesel::allow_tables_to_appear_in_same_query!(icon, ingredient, recipe, resource,);
