Currently the record has a sequential `id` and `chain_id` which is the canonical one - remove `id` and use `chain_id` as primary key