create or replace table accountcrowns ( accountId int not null primary key, crownCount int not null, constraint accountcrowns_ibfk_1 foreign key (accountId) references accounts (id) );