HF RL Explorer

Task: PostgreSQL AUTO INCREMENT Equivalent

Task: PostgreSQL AUTO INCREMENT Equivalent: a task in Terminal-Lego-15k (Harbor dataset). Create a PostgreSQL database schema that demonstrates the equivalent of MySQL's AUTO INCREMENT functionality. In PostgreSQL, this is achieved using the SERIAL or BIGSERIAL pseudo-type, or the more modern…

The task

Create a PostgreSQL database schema that demonstrates the equivalent of MySQL's `AUTO_INCREMENT` functionality. In PostgreSQL, this is achieved using the `SERIAL` or `BIGSERIAL` pseudo-type, or the more modern `GENERATED ALWAYS AS IDENTITY` syntax.

Part of PrimeIntellect/Terminal-Lego-15k.