diff --git a/server/db/seed.ts b/server/db/seed.ts index ccf13b8..04a89e5 100644 --- a/server/db/seed.ts +++ b/server/db/seed.ts @@ -62,7 +62,6 @@ dotenv.config(); CREATE TABLE IF NOT EXISTS recipin.cmp_users_collections ( users_collections_id INT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, collection_id int REFERENCES recipin.collection (id), - owner_id int REFERENCES recipin.collection (owner_id), user_member_id int REFERENCES recipin.app_users (id) ); `; @@ -72,7 +71,7 @@ dotenv.config(); ] const client = new Client({ connectionString: process.env.CONSTRING }); - await client.connect().then(() => console.log('connected to pg at ' + process.env.CONSTRING)); + await client.connect().then(() => console.log('connected to pg. seeding...')); try { for (let s of allStatements) {