[Model] Event has userid not user

This commit is contained in:
Ferdinand Thiessen 2020-10-27 13:38:03 +01:00
parent c3b5721202
commit 8ac43826dc
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class Event(db.Model, ModelSerializeMixin):
class Job(db.Model, ModelSerializeMixin):
__tablename__ = "job"
user: str = None
userid: str = None
value: float = db.Column(db.Numeric(precision=3, scale=2))
_id = db.Column("id", db.Integer, primary_key=True)
@ -55,7 +55,7 @@ class Job(db.Model, ModelSerializeMixin):
_slot = db.relationship("JobSlot")
@property
def user(self):
def userid(self):
return self._user.userid