Protect against bad data
Fix nullability and unique constraints in tables

These are the tables dealing with polymorphic relationships.