Primary keys
Why: a PRIMARY KEY is the column that uniquely identifies each row. PostgreSQL enforces that it is never NULL and never repeated, and automatically builds an index on it so lookups by id are fast. Note: we build small throwaway tables in this lesson so they do not clash with the schema you already created.
CREATE TABLE tags (
id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
name text NOT NULL
);