Fix spacing in test schemas

This commit is contained in:
Aaron L 2016-09-18 16:07:57 -07:00
parent 34b30ce6c3
commit ea528d50b2
2 changed files with 306 additions and 306 deletions

View file

@ -1,113 +1,113 @@
CREATE TABLE magic ( CREATE TABLE magic (
id int PRIMARY KEY NOT NULL AUTO_INCREMENT, id int PRIMARY KEY NOT NULL AUTO_INCREMENT,
id_two int NOT NULL, id_two int NOT NULL,
id_three int, id_three int,
bool_zero bool, bool_zero bool,
bool_one bool NULL, bool_one bool NULL,
bool_two bool NOT NULL, bool_two bool NOT NULL,
bool_three bool NULL DEFAULT FALSE, bool_three bool NULL DEFAULT FALSE,
bool_four bool NULL DEFAULT TRUE, bool_four bool NULL DEFAULT TRUE,
bool_five bool NOT NULL DEFAULT FALSE, bool_five bool NOT NULL DEFAULT FALSE,
bool_six bool NOT NULL DEFAULT TRUE, bool_six bool NOT NULL DEFAULT TRUE,
string_zero VARCHAR(1), string_zero VARCHAR(1),
string_one VARCHAR(1) NULL, string_one VARCHAR(1) NULL,
string_two VARCHAR(1) NOT NULL, string_two VARCHAR(1) NOT NULL,
string_three VARCHAR(1) NULL DEFAULT 'a', string_three VARCHAR(1) NULL DEFAULT 'a',
string_four VARCHAR(1) NOT NULL DEFAULT 'b', string_four VARCHAR(1) NOT NULL DEFAULT 'b',
string_five VARCHAR(1000), string_five VARCHAR(1000),
string_six VARCHAR(1000) NULL, string_six VARCHAR(1000) NULL,
string_seven VARCHAR(1000) NOT NULL, string_seven VARCHAR(1000) NOT NULL,
string_eight VARCHAR(1000) NULL DEFAULT 'abcdefgh', string_eight VARCHAR(1000) NULL DEFAULT 'abcdefgh',
string_nine VARCHAR(1000) NOT NULL DEFAULT 'abcdefgh', string_nine VARCHAR(1000) NOT NULL DEFAULT 'abcdefgh',
string_ten VARCHAR(1000) NULL DEFAULT '', string_ten VARCHAR(1000) NULL DEFAULT '',
string_eleven VARCHAR(1000) NOT NULL DEFAULT '', string_eleven VARCHAR(1000) NOT NULL DEFAULT '',
big_int_zero bigint, big_int_zero bigint,
big_int_one bigint NULL, big_int_one bigint NULL,
big_int_two bigint NOT NULL, big_int_two bigint NOT NULL,
big_int_three bigint NULL DEFAULT 111111, big_int_three bigint NULL DEFAULT 111111,
big_int_four bigint NOT NULL DEFAULT 222222, big_int_four bigint NOT NULL DEFAULT 222222,
big_int_five bigint NULL DEFAULT 0, big_int_five bigint NULL DEFAULT 0,
big_int_six bigint NOT NULL DEFAULT 0, big_int_six bigint NOT NULL DEFAULT 0,
int_zero int, int_zero int,
int_one int NULL, int_one int NULL,
int_two int NOT NULL, int_two int NOT NULL,
int_three int NULL DEFAULT 333333, int_three int NULL DEFAULT 333333,
int_four int NOT NULL DEFAULT 444444, int_four int NOT NULL DEFAULT 444444,
int_five int NULL DEFAULT 0, int_five int NULL DEFAULT 0,
int_six int NOT NULL DEFAULT 0, int_six int NOT NULL DEFAULT 0,
float_zero float, float_zero float,
float_one float, float_one float,
float_two float(2,1), float_two float(2,1),
float_three float(2,1), float_three float(2,1),
float_four float(2,1) NULL, float_four float(2,1) NULL,
float_five float(2,1) NOT NULL, float_five float(2,1) NOT NULL,
float_six float(2,1) NULL DEFAULT 1.1, float_six float(2,1) NULL DEFAULT 1.1,
float_seven float(2,1) NOT NULL DEFAULT 1.1, float_seven float(2,1) NOT NULL DEFAULT 1.1,
float_eight float(2,1) NULL DEFAULT 0.0, float_eight float(2,1) NULL DEFAULT 0.0,
float_nine float(2,1) NULL DEFAULT 0.0, float_nine float(2,1) NULL DEFAULT 0.0,
bytea_zero binary, bytea_zero binary,
bytea_one binary NULL, bytea_one binary NULL,
bytea_two binary NOT NULL, bytea_two binary NOT NULL,
bytea_three binary NOT NULL DEFAULT 'a', bytea_three binary NOT NULL DEFAULT 'a',
bytea_four binary NULL DEFAULT 'b', bytea_four binary NULL DEFAULT 'b',
bytea_five binary(100) NOT NULL DEFAULT 'abcdefghabcdefghabcdefgh', bytea_five binary(100) NOT NULL DEFAULT 'abcdefghabcdefghabcdefgh',
bytea_six binary(100) NULL DEFAULT 'hgfedcbahgfedcbahgfedcba', bytea_six binary(100) NULL DEFAULT 'hgfedcbahgfedcbahgfedcba',
bytea_seven binary NOT NULL DEFAULT '', bytea_seven binary NOT NULL DEFAULT '',
bytea_eight binary NOT NULL DEFAULT '', bytea_eight binary NOT NULL DEFAULT '',
time_zero timestamp, time_zero timestamp,
time_one date, time_one date,
time_two timestamp NULL DEFAULT NULL, time_two timestamp NULL DEFAULT NULL,
time_three timestamp NULL, time_three timestamp NULL,
time_five timestamp NULL DEFAULT CURRENT_TIMESTAMP, time_five timestamp NULL DEFAULT CURRENT_TIMESTAMP,
time_nine timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, time_nine timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
time_eleven date NULL, time_eleven date NULL,
time_twelve date NOT NULL, time_twelve date NOT NULL,
time_fifteen date NULL DEFAULT '19990108', time_fifteendate NULL DEFAULT '19990108',
time_sixteen date NOT NULL DEFAULT '1999-01-08', time_sixteen date NOT NULL DEFAULT '1999-01-08',
aa json NULL, aa json NULL,
bb json NOT NULL, bb json NOT NULL,
kk double precision NULL, kk double precision NULL,
ll double precision NOT NULL, ll double precision NOT NULL,
mm tinyint NULL, mm tinyint NULL,
nn tinyint NOT NULL, nn tinyint NOT NULL,
oo tinyint(1) NULL, oo tinyint(1) NULL,
pp tinyint(1) NOT NULL, pp tinyint(1) NOT NULL,
qq smallint NULL, qq smallint NULL,
rr smallint NOT NULL, rr smallint NOT NULL,
ss mediumint NULL, ss mediumint NULL,
tt mediumint NOT NULL, tt mediumint NOT NULL,
uu bigint NULL, uu bigint NULL,
vv bigint NOT NULL, vv bigint NOT NULL,
ww float NULL, ww float NULL,
xx float NOT NULL, xx float NOT NULL,
yy double NULL, yy double NULL,
zz double NOT NULL, zz double NOT NULL,
aaa double precision NULL, aaa double precision NULL,
bbb double precision NOT NULL, bbb double precision NOT NULL,
ccc real NULL, ccc real NULL,
ddd real NOT NULL, ddd real NOT NULL,
eee boolean NULL, eee boolean NULL,
fff boolean NOT NULL, fff boolean NOT NULL,
ggg date NULL, ggg date NULL,
hhh date NOT NULL, hhh date NOT NULL,
iii datetime NULL, iii datetime NULL,
jjj datetime NOT NULL, jjj datetime NOT NULL,
kkk timestamp NULL, kkk timestamp NULL,
lll timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, lll timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
mmm binary NULL, mmm binary NULL,
nnn binary NOT NULL, nnn binary NOT NULL,
ooo varbinary(100) NULL, ooo varbinary(100) NULL,
ppp varbinary(100) NOT NULL, ppp varbinary(100) NOT NULL,
qqq tinyblob NULL, qqq tinyblob NULL,
rrr tinyblob NOT NULL, rrr tinyblob NOT NULL,
sss blob NULL, sss blob NULL,
ttt blob NOT NULL, ttt blob NOT NULL,
uuu mediumblob NULL, uuu mediumblob NULL,
vvv mediumblob NOT NULL, vvv mediumblob NOT NULL,
www longblob NULL, www longblob NULL,
xxx longblob NOT NULL, xxx longblob NOT NULL,
yyy varchar(100) NULL, yyy varchar(100) NULL,
zzz varchar(100) NOT NULL, zzz varchar(100) NOT NULL,
aaaa char NULL, aaaa char NULL,
bbbb char NOT NULL, bbbb char NOT NULL,
cccc text NULL, cccc text NULL,
@ -115,58 +115,58 @@ CREATE TABLE magic (
); );
create table owner ( create table owner (
id int primary key not null auto_increment, id int primary key not null auto_increment,
name varchar(255) not null name varchar(255) not null
); );
create table cats ( create table cats (
id int primary key not null auto_increment, id int primary key not null auto_increment,
name varchar(255) not null, name varchar(255) not null,
owner_id int references owner (id) owner_id int references owner (id)
); );
create table toys ( create table toys (
id int primary key not null auto_increment, id int primary key not null auto_increment,
name varchar(255) not null name varchar(255) not null
); );
create table cat_toys ( create table cat_toys (
cat_id int not null references cats (id), cat_id int not null references cats (id),
toy_id int not null references toys (id), toy_id int not null references toys (id),
primary key (cat_id, toy_id) primary key (cat_id, toy_id)
); );
create table dog_toys ( create table dog_toys (
dog_id int not null, dog_id int not null,
toy_id int not null, toy_id int not null,
primary key (dog_id, toy_id) primary key (dog_id, toy_id)
); );
create table dragon_toys ( create table dragon_toys (
dragon_id varchar(100), dragon_id varchar(100),
toy_id varchar(100), toy_id varchar(100),
primary key (dragon_id, toy_id) primary key (dragon_id, toy_id)
); );
create table spider_toys ( create table spider_toys (
spider_id varchar(100) primary key, spider_id varchar(100) primary key,
name varchar(100) name varchar(100)
); );
create table pals ( create table pals (
pal varchar(100) primary key pal varchar(100) primary key
); );
create table friend ( create table friend (
friend varchar(100) primary key friend varchar(100) primary key
); );
create table bro ( create table bro (
bros varchar(100) primary key bros varchar(100) primary key
); );
create table enemies ( create table enemies (
enemies varchar(100) primary key enemies varchar(100) primary key
); );
create table tigers ( create table tigers (
@ -175,28 +175,28 @@ create table tigers (
); );
create table elephants ( create table elephants (
id binary primary key, id binary primary key,
name binary not null, name binary not null,
tiger_id binary null unique, tiger_id binary null unique,
foreign key (tiger_id) references tigers (id) foreign key (tiger_id) references tigers (id)
); );
create table wolves ( create table wolves (
id binary primary key, id binary primary key,
name binary not null, name binary not null,
tiger_id binary not null unique, tiger_id binary not null unique,
foreign key (tiger_id) references tigers (id) foreign key (tiger_id) references tigers (id)
); );
create table ants ( create table ants (
id binary primary key, id binary primary key,
name binary not null, name binary not null,
tiger_id binary not null, tiger_id binary not null,
foreign key (tiger_id) references tigers (id) foreign key (tiger_id) references tigers (id)
); );
create table worms ( create table worms (
id binary primary key, id binary primary key,
name binary not null, name binary not null,
tiger_id binary null, tiger_id binary null,
foreign key (tiger_id) references tigers (id) foreign key (tiger_id) references tigers (id)

View file

@ -1,217 +1,217 @@
CREATE TABLE magic ( CREATE TABLE magic (
id serial PRIMARY KEY NOT NULL, id serial PRIMARY KEY NOT NULL,
id_two serial NOT NULL, id_two serial NOT NULL,
id_three serial, id_three serial,
bool_zero bool, bool_zero bool,
bool_one bool NULL, bool_one bool NULL,
bool_two bool NOT NULL, bool_two bool NOT NULL,
bool_three bool NULL DEFAULT FALSE, bool_three bool NULL DEFAULT FALSE,
bool_four bool NULL DEFAULT TRUE, bool_four bool NULL DEFAULT TRUE,
bool_five bool NOT NULL DEFAULT FALSE, bool_five bool NOT NULL DEFAULT FALSE,
bool_six bool NOT NULL DEFAULT TRUE, bool_six bool NOT NULL DEFAULT TRUE,
string_zero VARCHAR(1), string_zero VARCHAR(1),
string_one VARCHAR(1) NULL, string_one VARCHAR(1) NULL,
string_two VARCHAR(1) NOT NULL, string_two VARCHAR(1) NOT NULL,
string_three VARCHAR(1) NULL DEFAULT 'a', string_three VARCHAR(1) NULL DEFAULT 'a',
string_four VARCHAR(1) NOT NULL DEFAULT 'b', string_four VARCHAR(1) NOT NULL DEFAULT 'b',
string_five VARCHAR(1000), string_five VARCHAR(1000),
string_six VARCHAR(1000) NULL, string_six VARCHAR(1000) NULL,
string_seven VARCHAR(1000) NOT NULL, string_seven VARCHAR(1000) NOT NULL,
string_eight VARCHAR(1000) NULL DEFAULT 'abcdefgh', string_eight VARCHAR(1000) NULL DEFAULT 'abcdefgh',
string_nine VARCHAR(1000) NOT NULL DEFAULT 'abcdefgh', string_nine VARCHAR(1000) NOT NULL DEFAULT 'abcdefgh',
string_ten VARCHAR(1000) NULL DEFAULT '', string_ten VARCHAR(1000) NULL DEFAULT '',
string_eleven VARCHAR(1000) NOT NULL DEFAULT '', string_eleven VARCHAR(1000) NOT NULL DEFAULT '',
big_int_zero bigint, big_int_zero bigint,
big_int_one bigint NULL, big_int_one bigint NULL,
big_int_two bigint NOT NULL, big_int_two bigint NOT NULL,
big_int_three bigint NULL DEFAULT 111111, big_int_three bigint NULL DEFAULT 111111,
big_int_four bigint NOT NULL DEFAULT 222222, big_int_four bigint NOT NULL DEFAULT 222222,
big_int_five bigint NULL DEFAULT 0, big_int_five bigint NULL DEFAULT 0,
big_int_six bigint NOT NULL DEFAULT 0, big_int_six bigint NOT NULL DEFAULT 0,
int_zero int, int_zero int,
int_one int NULL, int_one int NULL,
int_two int NOT NULL, int_two int NOT NULL,
int_three int NULL DEFAULT 333333, int_three int NULL DEFAULT 333333,
int_four int NOT NULL DEFAULT 444444, int_four int NOT NULL DEFAULT 444444,
int_five int NULL DEFAULT 0, int_five int NULL DEFAULT 0,
int_six int NOT NULL DEFAULT 0, int_six int NOT NULL DEFAULT 0,
float_zero decimal, float_zero decimal,
float_one numeric, float_one numeric,
float_two numeric(2,1), float_two numeric(2,1),
float_three numeric(2,1), float_three numeric(2,1),
float_four numeric(2,1) NULL, float_four numeric(2,1) NULL,
float_five numeric(2,1) NOT NULL, float_five numeric(2,1) NOT NULL,
float_six numeric(2,1) NULL DEFAULT 1.1, float_six numeric(2,1) NULL DEFAULT 1.1,
float_seven numeric(2,1) NOT NULL DEFAULT 1.1, float_seven numeric(2,1) NOT NULL DEFAULT 1.1,
float_eight numeric(2,1) NULL DEFAULT 0.0, float_eight numeric(2,1) NULL DEFAULT 0.0,
float_nine numeric(2,1) NULL DEFAULT 0.0, float_nine numeric(2,1) NULL DEFAULT 0.0,
bytea_zero bytea, bytea_zero bytea,
bytea_one bytea NULL, bytea_one bytea NULL,
bytea_two bytea NOT NULL, bytea_two bytea NOT NULL,
bytea_three bytea NOT NULL DEFAULT 'a', bytea_three bytea NOT NULL DEFAULT 'a',
bytea_four bytea NULL DEFAULT 'b', bytea_four bytea NULL DEFAULT 'b',
bytea_five bytea NOT NULL DEFAULT 'abcdefghabcdefghabcdefgh', bytea_five bytea NOT NULL DEFAULT 'abcdefghabcdefghabcdefgh',
bytea_six bytea NULL DEFAULT 'hgfedcbahgfedcbahgfedcba', bytea_six bytea NULL DEFAULT 'hgfedcbahgfedcbahgfedcba',
bytea_seven bytea NOT NULL DEFAULT '', bytea_seven bytea NOT NULL DEFAULT '',
bytea_eight bytea NOT NULL DEFAULT '', bytea_eight bytea NOT NULL DEFAULT '',
time_zero timestamp, time_zero timestamp,
time_one date, time_one date,
time_two timestamp NULL DEFAULT NULL, time_two timestamp NULL DEFAULT NULL,
time_three timestamp NULL, time_three timestamp NULL,
time_four timestamp NOT NULL, time_four timestamp NOT NULL,
time_five timestamp NULL DEFAULT '1999-01-08 04:05:06.789', time_five timestamp NULL DEFAULT '1999-01-08 04:05:06.789',
time_six timestamp NULL DEFAULT '1999-01-08 04:05:06.789 -8:00', time_six timestamp NULL DEFAULT '1999-01-08 04:05:06.789 -8:00',
time_seven timestamp NULL DEFAULT 'January 8 04:05:06 1999 PST', time_seven timestamp NULL DEFAULT 'January 8 04:05:06 1999 PST',
time_eight timestamp NOT NULL DEFAULT '1999-01-08 04:05:06.789', time_eight timestamp NOT NULL DEFAULT '1999-01-08 04:05:06.789',
time_nine timestamp NOT NULL DEFAULT '1999-01-08 04:05:06.789 -8:00', time_nine timestamp NOT NULL DEFAULT '1999-01-08 04:05:06.789 -8:00',
time_ten timestamp NOT NULL DEFAULT 'January 8 04:05:06 1999 PST', time_ten timestamp NOT NULL DEFAULT 'January 8 04:05:06 1999 PST',
time_eleven date NULL, time_eleven date NULL,
time_twelve date NOT NULL, time_twelve date NOT NULL,
time_thirteen date NULL DEFAULT '1999-01-08', time_thirteen date NULL DEFAULT '1999-01-08',
time_fourteen date NULL DEFAULT 'January 8, 1999', time_fourteen date NULL DEFAULT 'January 8, 1999',
time_fifteen date NULL DEFAULT '19990108', time_fifteen date NULL DEFAULT '19990108',
time_sixteen date NOT NULL DEFAULT '1999-01-08', time_sixteen date NOT NULL DEFAULT '1999-01-08',
time_seventeen date NOT NULL DEFAULT 'January 8, 1999', time_seventeen date NOT NULL DEFAULT 'January 8, 1999',
time_eighteen date NOT NULL DEFAULT '19990108', time_eighteen date NOT NULL DEFAULT '19990108',
uuid_zero uuid, uuid_zero uuid,
uuid_one uuid NULL, uuid_one uuid NULL,
uuid_two uuid NULL DEFAULT NULL, uuid_two uuid NULL DEFAULT NULL,
uuid_three uuid NOT NULL, uuid_three uuid NOT NULL,
uuid_four uuid NULL DEFAULT '6ba7b810-9dad-11d1-80b4-00c04fd430c8', uuid_four uuid NULL DEFAULT '6ba7b810-9dad-11d1-80b4-00c04fd430c8',
uuid_five uuid NOT NULL DEFAULT '6ba7b810-9dad-11d1-80b4-00c04fd430c8', uuid_five uuid NOT NULL DEFAULT '6ba7b810-9dad-11d1-80b4-00c04fd430c8',
strange_one integer DEFAULT '5'::integer, strange_one integer DEFAULT '5'::integer,
strange_two varchar(1000) DEFAULT 5::varchar, strange_two varchar(1000) DEFAULT 5::varchar,
strange_three timestamp without time zone default (now() at time zone 'utc'), strange_three timestamp without time zone default (now() at time zone 'utc'),
strange_four timestamp with time zone default (now() at time zone 'utc'), strange_four timestamp with time zone default (now() at time zone 'utc'),
strange_five interval NOT NULL DEFAULT '21 days', strange_five interval NOT NULL DEFAULT '21 days',
strange_six interval NULL DEFAULT '23 hours', strange_six interval NULL DEFAULT '23 hours',
aa json NULL, aa json NULL,
bb json NOT NULL, bb json NOT NULL,
cc jsonb NULL, cc jsonb NULL,
dd jsonb NOT NULL, dd jsonb NOT NULL,
ee box NULL, ee box NULL,
ff box NOT NULL, ff box NOT NULL,
gg cidr NULL, gg cidr NULL,
hh cidr NOT NULL, hh cidr NOT NULL,
ii circle NULL, ii circle NULL,
jj circle NOT NULL, jj circle NOT NULL,
kk double precision NULL, kk double precision NULL,
ll double precision NOT NULL, ll double precision NOT NULL,
mm inet NULL, mm inet NULL,
nn inet NOT NULL, nn inet NOT NULL,
oo line NULL, oo line NULL,
pp line NOT NULL, pp line NOT NULL,
qq lseg NULL, qq lseg NULL,
rr lseg NOT NULL, rr lseg NOT NULL,
ss macaddr NULL, ss macaddr NULL,
tt macaddr NOT NULL, tt macaddr NOT NULL,
uu money NULL, uu money NULL,
vv money NOT NULL, vv money NOT NULL,
ww path NULL, ww path NULL,
xx path NOT NULL, xx path NOT NULL,
yy pg_lsn NULL, yy pg_lsn NULL,
zz pg_lsn NOT NULL, zz pg_lsn NOT NULL,
aaa point NULL, aaa point NULL,
bbb point NOT NULL, bbb point NOT NULL,
ccc polygon NULL, ccc polygon NULL,
ddd polygon NOT NULL, ddd polygon NOT NULL,
eee tsquery NULL, eee tsquery NULL,
fff tsquery NOT NULL, fff tsquery NOT NULL,
ggg tsvector NULL, ggg tsvector NULL,
hhh tsvector NOT NULL, hhh tsvector NOT NULL,
iii txid_snapshot NULL, iii txid_snapshot NULL,
jjj txid_snapshot NOT NULL, jjj txid_snapshot NOT NULL,
kkk xml NULL, kkk xml NULL,
lll xml NOT NULL lll xml NOT NULL
); );
create table owner ( create table owner (
id serial primary key not null, id serial primary key not null,
name varchar(255) not null name varchar(255) not null
); );
create table cats ( create table cats (
id serial primary key not null, id serial primary key not null,
name varchar(255) not null, name varchar(255) not null,
owner_id int references owner (id) owner_id int references owner (id)
); );
create table toys ( create table toys (
id serial primary key not null, id serial primary key not null,
name varchar(255) not null name varchar(255) not null
); );
create table cat_toys ( create table cat_toys (
cat_id int not null references cats (id), cat_id int not null references cats (id),
toy_id int not null references toys (id), toy_id int not null references toys (id),
primary key (cat_id, toy_id) primary key (cat_id, toy_id)
); );
create table dog_toys ( create table dog_toys (
dog_id int not null, dog_id int not null,
toy_id int not null, toy_id int not null,
primary key (dog_id, toy_id) primary key (dog_id, toy_id)
); );
create table dragon_toys ( create table dragon_toys (
dragon_id uuid, dragon_id uuid,
toy_id uuid, toy_id uuid,
primary key (dragon_id, toy_id) primary key (dragon_id, toy_id)
); );
create table spider_toys ( create table spider_toys (
spider_id uuid, spider_id uuid,
name character varying, name character varying,
primary key (spider_id) primary key (spider_id)
); );
create table pals ( create table pals (
pal character varying, pal character varying,
primary key (pal) primary key (pal)
); );
create table friend ( create table friend (
friend character varying, friend character varying,
primary key (friend) primary key (friend)
); );
create table bro ( create table bro (
bros character varying, bros character varying,
primary key (bros) primary key (bros)
); );
create table enemies ( create table enemies (
enemies character varying, enemies character varying,
primary key (enemies) primary key (enemies)
); );
create table fun_arrays ( create table fun_arrays (
id serial, id serial,
fun_one integer[] null, fun_one integer[] null,
fun_two integer[] not null, fun_two integer[] not null,
fun_three boolean[] null, fun_three boolean[] null,
fun_four boolean[] not null, fun_four boolean[] not null,
fun_five varchar[] null, fun_five varchar[] null,
fun_six varchar[] not null, fun_six varchar[] not null,
fun_seven decimal[] null, fun_seven decimal[] null,
fun_eight decimal[] not null, fun_eight decimal[] not null,
fun_nine bytea[] null, fun_nine bytea[] null,
fun_ten bytea[] not null, fun_ten bytea[] not null,
fun_eleven jsonb[] null, fun_eleven jsonb[] null,
fun_twelve jsonb[] not null, fun_twelve jsonb[] not null,
fun_thirteen json[] null, fun_thirteen json[] null,
fun_fourteen json[] not null, fun_fourteen json[] not null,
primary key (id) primary key (id)
); );
create table tigers ( create table tigers (
@ -220,28 +220,28 @@ create table tigers (
); );
create table elephants ( create table elephants (
id bytea primary key, id bytea primary key,
name bytea not null, name bytea not null,
tiger_id bytea null unique, tiger_id bytea null unique,
foreign key (tiger_id) references tigers (id) foreign key (tiger_id) references tigers (id)
); );
create table wolves ( create table wolves (
id bytea primary key, id bytea primary key,
name bytea not null, name bytea not null,
tiger_id bytea not null unique, tiger_id bytea not null unique,
foreign key (tiger_id) references tigers (id) foreign key (tiger_id) references tigers (id)
); );
create table ants ( create table ants (
id bytea primary key, id bytea primary key,
name bytea not null, name bytea not null,
tiger_id bytea not null, tiger_id bytea not null,
foreign key (tiger_id) references tigers (id) foreign key (tiger_id) references tigers (id)
); );
create table worms ( create table worms (
id bytea primary key, id bytea primary key,
name bytea not null, name bytea not null,
tiger_id bytea null, tiger_id bytea null,
foreign key (tiger_id) references tigers (id) foreign key (tiger_id) references tigers (id)