diff --git a/docs/pages/getting-started/adapters/pg.mdx b/docs/pages/getting-started/adapters/pg.mdx index cac20aaa4a..a19e8237ec 100644 --- a/docs/pages/getting-started/adapters/pg.mdx +++ b/docs/pages/getting-started/adapters/pg.mdx @@ -216,7 +216,7 @@ CREATE TABLE users CREATE TABLE accounts ( id SERIAL, - "userId" INTEGER NOT NULL REFERENCES users ON DELETE CASCADE, + "userId" INTEGER NOT NULL REFERENCES users (id) ON DELETE CASCADE, type VARCHAR(255) NOT NULL, provider VARCHAR(255) NOT NULL, "providerAccountId" VARCHAR(255) NOT NULL, @@ -234,7 +234,7 @@ CREATE TABLE accounts CREATE TABLE sessions ( id SERIAL, - "userId" INTEGER NOT NULL REFERENCES users ON DELETE CASCADE, + "userId" INTEGER NOT NULL REFERENCES users (id) ON DELETE CASCADE, expires TIMESTAMPTZ NOT NULL, "sessionToken" VARCHAR(255) UNIQUE NOT NULL,