[Model] Event has userid not user
This commit is contained in:
parent
c3b5721202
commit
8ac43826dc
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue