fix time table

This commit is contained in:
Alejandro Vazquez
2026-03-27 18:30:04 -03:00
parent 68e8d81617
commit 79f5da9bcd
8 changed files with 713 additions and 237 deletions
+5
View File
@@ -27,6 +27,11 @@ class Reservation(db.Model):
created_at = db.Column(db.DateTime, default=datetime.utcnow)
updated_at = db.Column(db.DateTime, default=datetime.utcnow, onupdate=datetime.utcnow)
# Relationships
classroom = db.relationship('Classroom', backref=db.backref('reservation_list', lazy=True, cascade='all, delete-orphan'))
commission = db.relationship('Commission', backref=db.backref('reservation_list', lazy=True, cascade='all, delete-orphan'))
# User already defines the relationship back to reservation
def to_dict(self):
"""Convert reservation to dictionary"""
return {