corrected the schema definition for transaction