UPDATE: Added functions for adding to newsletter

This commit is contained in:
white
2025-02-28 11:53:42 +00:00
parent 8620642214
commit bce119b0b3
3 changed files with 39 additions and 0 deletions

View File

@@ -57,4 +57,11 @@ CREATE TABLE followed_categories
PRIMARY KEY (user_id, category_id),
FOREIGN KEY(user_id) REFERENCES users(user_id) ON DELETE CASCADE,
FOREIGN KEY(category_id) REFERENCES categories(category_id) ON DELETE CASCADE
);
DROP TABLE IF EXISTS newsletter;
CREATE TABLE newsletter
(
email VARCHAR(256) NOT NULL,
PRIMARY KEY(email)
);