CREATE DOMAIN cdate AS timestamp with time zone DEFAULT now();
CREATE TABLE test_table
(
id bigserial NOT NULL,
cdate cdate NOT NULL,
CONSTRAINT pk_ra_type PRIMARY KEY (id)
);
__PACKAGE__->meta->setup(
table => 'test_table',
columns => [
id => { type => 'bigserial', not_null => 1 },
cdate => { type => 'scalar', length => 8, not_null => 1 },
],
primary_key_columns => [ 'id' ],
allow_inline_column_values => 1,
);