postgres how to add field created at
snippet in sql

postgresql add column with constraint

user5027

ALTER TABLE customers 
ADD COLUMN contact_name VARCHAR NOT NULL;

postgres how to add field created at

user4063

CREATE TABLE my_table
(
	id serial NOT NULL,
    user_name text,
	created_at timestamp with time zone DEFAULT CURRENT_TIMESTAMP //here
)