diff --git a/job.py b/job.py index 1d6b372..4c2ae71 100644 --- a/job.py +++ b/job.py @@ -15,7 +15,7 @@ from flask_login import login_required, current_user # pylint: disable=no-member ################################################################################ -# Class describing Job in the database, and via sqlalchemy, connected to the DB as well +# Class describing extra/specific info for a Job and via sqlalchemy, connected to the DB as well ################################################################################ class JobExtra(db.Model): __tablename__ = "jobextra" @@ -27,6 +27,9 @@ class JobExtra(db.Model): def __repr__(self): return "".format(self.id, self.job_id, self.name, self.value ) +################################################################################ +# Class describing logs for each job and via sqlalchemy, connected to the DB as well +################################################################################ class Joblog(db.Model): id = db.Column(db.Integer, db.Sequence('joblog_id_seq'), primary_key=True ) job_id = db.Column(db.Integer, db.ForeignKey('job.id'), primary_key=True ) @@ -36,6 +39,9 @@ class Joblog(db.Model): def __repr__(self): return "