correct table creation when indexes are defined in schema