The table was wrong. You needed a new column.
A new column can change your data model, your queries, and your product logic. Done well, it unlocks capabilities. Done poorly, it causes downtime and bugs that hide until production. Adding a column is simple in syntax but complex in impact.
In SQL, ALTER TABLE is the entry point. You write:
ALTER TABLE users ADD COLUMN last_login TIMESTAMP;
This command updates the schema. But schema change safety depends on engine, table size, and traffic. For large datasets, adding a new column can lock writes. Some systems allow ADD COLUMN with DEFAULT NULL instantly. Others rebuild the table.
If your database supports online schema changes, use them. PostgreSQL can add a nullable column instantly. Setting a default with a non-null value requires a table rewrite. MySQL with InnoDB can use ALGORITHM=INSTANT in recent versions.