CREATE TABLE contacts ( id serial not null primary key unique, owner_id int not null references accounts (id), contact_type text not null, content text not null );