Implemented job view

This commit is contained in:
2021-04-19 01:34:33 +02:00
parent 998658c148
commit 800ed14449
9 changed files with 289 additions and 44 deletions

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env python3
from . import db
class Controller(db.Model):
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
job_id = db.Column(db.Integer, db.ForeignKey("job.id", ondelete="CASCADE"), nullable=False)
job = db.relationship("Job", backref=db.backref("controllers", lazy='joined'))