Add support for foreign key and unique constraints to db-meta