The UNIQUE indexes creation was done incorrectly for the type-table creation.