PostgreSQL generates auto-incrementing IDs (typically for primary keys) using sequences — special objects that produce unique increasing numbers. SERIAL is shorthand that creates a sequence automatically, and IDENTITY is the modern SQL-standard equivalent.
SERIAL — the classic shorthand
users (
id SERIAL ,
name TEXT
);
users (name) ();
