-- Deploy rsugest:ingredient-table to pg
-- requires: recipe-schema

BEGIN;

CREATE TABLE recipe.ingredient (
    id SERIAL PRIMARY KEY,
    recipe_id INT,
    text TEXT,
    purpose TEXT,
    name TEXT,
    name_conf FLOAT,
    amount_quantity TEXT[],
    amount_unit TEXT[],
    amount_conf FLOAT[],
    preparation TEXT,
    preparation_conf FLOAT,
    comment TEXT,
    comment_conf FLOAT);

COMMIT;
