CREATE TABLE sales_distribution ( id serial PRIMARY KEY NOT NULL, pep_user_id int NOT NULL, provinces varchar(255) [] NOT NULL, cities varchar(255) [], del boolean DEFAULT false NULL ); CREATE UNIQUE INDEX sales_distribution_id_uindex ON sales_distribution (id);