Eerst de bigint(20) not null auto_increment
werkt niet, gebruik gewoon bigserial primary key
. Dan datetime
is timestamp
in PostgreSQL. Al met al:
CREATE TABLE article (
article_id bigserial primary key,
article_name varchar(20) NOT NULL,
article_desc text NOT NULL,
date_added timestamp default NULL
);