api recipe and ingredient, GET and PUT
This commit is contained in:
21
sqitch/deploy/ingredient-table.sql
Normal file
21
sqitch/deploy/ingredient-table.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
-- 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;
|
||||
7
sqitch/deploy/recipe-schema.sql
Normal file
7
sqitch/deploy/recipe-schema.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
-- Deploy rsugest:recipe-schema to pg
|
||||
|
||||
BEGIN;
|
||||
|
||||
CREATE SCHEMA recipe;
|
||||
|
||||
COMMIT;
|
||||
18
sqitch/deploy/recipe-table.sql
Normal file
18
sqitch/deploy/recipe-table.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
-- Deploy rsugest:recipe-table to pg
|
||||
-- requires: recipe-schema
|
||||
|
||||
BEGIN;
|
||||
|
||||
CREATE TABLE recipe.recipe (
|
||||
id SERIAL PRIMARY KEY,
|
||||
title TEXT,
|
||||
url TEXT,
|
||||
site_name TEXT,
|
||||
cuisine TEXT,
|
||||
category TEXT,
|
||||
description TEXT,
|
||||
cook_time REAL,
|
||||
prep_time REAL,
|
||||
yields TEXT);
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user