diff --git a/migrations/20231217111814_create_news.sql b/migrations/20231217111814_create_news.sql index 05b4744..2fac346 100644 --- a/migrations/20231217111814_create_news.sql +++ b/migrations/20231217111814_create_news.sql @@ -2,6 +2,6 @@ CREATE TABLE news ( id SERIAL NOT NULL PRIMARY KEY, title VARCHAR(256) NOT NULL, content TEXT NOT NULL, - author VARCHAR(32) NOT NULL REFERENCES users(username), + author VARCHAR(32) NOT NULL REFERENCES accounts(username), created TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP );