Added addittonal section to the schema. Can now add RoomTypes but they are optional

This commit is contained in:
Jonas Linter
2025-10-16 16:01:58 +02:00
parent bb900ab1ee
commit 063ae3277f
5 changed files with 239 additions and 0 deletions

View File

@@ -127,6 +127,10 @@ class Reservation(Base):
# Add hotel_code and hotel_name for XML
hotel_code = Column(String)
hotel_name = Column(String)
# RoomTypes fields (optional)
room_type_code = Column(String)
room_classification_code = Column(String)
room_type = Column(String)
customer = relationship("Customer", back_populates="reservations")