prototype of recipe comments

This commit is contained in:
Mikayla Dobson
2022-11-19 18:24:45 -06:00
parent f35ed55806
commit aaf71bc4f7

View File

@@ -72,6 +72,15 @@ dotenv.config();
);
`
const recipecomments = `
CREATE TABLE IF NOT EXISTS recipin.cmp_recipecomments (
id INT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
commentbody varchar NOT NULL,
parentcommentid int,
authorid int REFERENCES recipin.appusers (id) NOT NULL
);
`
const recipeingredient = `
CREATE TABLE IF NOT EXISTS recipin.cmp_recipeingredient (
recipeingredientid INT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,