Is there any way to add a limitation rule to a table
CREATE TABLE table1
(
id serial not null primary key,
values1 smallint[] not null DEFAULT ARRAY [12, 20],
values2 smallint[] not null DEFAULT ARRAY [],
CONSTRAINT constraint_check_error CHECK (values1 NOT ( IS NULL OR values1 = '{}') AND NOT (values2 IS NULL OR values2 = '{}') )
);
to avoid the the tables values1and values2 being empty?