Posts can be displayed on the website. Subscribers are automatically notified by email. This gives the opportunity to track explicitly how many people followed the link provided in the emails sent without being intrusive (no invisible image).
8 lines
200 B
SQL
8 lines
200 B
SQL
CREATE TABLE posts (
|
|
post_id UUID PRIMARY KEY,
|
|
author_id UUID NOT NULL REFERENCES users (user_id),
|
|
title TEXT NOT NULL,
|
|
content TEXT NOT NULL,
|
|
published_at TIMESTAMPTZ NOT NULL
|
|
);
|