fixed attire model for pg database compatibility