This commit is contained in:
2025-03-01 09:54:12 +08:00
parent ee2f6ccea1
commit 706bb97460
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -60,4 +60,6 @@ class Booking(db.Model):
listing_id = db.Column(db.Integer, db.ForeignKey('listing.id'), nullable=False)
check_in = db.Column(db.DateTime, nullable=False)
check_out = db.Column(db.DateTime, nullable=False)
guests = db.Column(db.Integer, nullable=False)
guests = db.Column(db.Integer, nullable=False)
listing = db.relationship('Listing', backref='bookings')