diff --git a/app/models/workout.py b/app/models/workout.py index 887daae..afa7808 100644 --- a/app/models/workout.py +++ b/app/models/workout.py @@ -62,4 +62,13 @@ class WorkoutLog(db.Model): updated_at = db.Column(db.DateTime, nullable=False, default=datetime.utcnow, onupdate=datetime.utcnow) def __repr__(self): - return f'' \ No newline at end of file + return f'' + +class GymAdmissionLog(db.model): + __tablename__ = 'gym_admission_logs' + + id = db.Column(db.Integer, primary_key=True) + user_id = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=False) + gym_name = db.Column(db.String(120), nullable=False) + enter_at = db.Column(db.DateTime, nullable=False) + exit_at = db.Column(db.DateTime, nullable=False) \ No newline at end of file