This commit is contained in:
parent
39f014db86
commit
53f1108aba
@ -188,7 +188,7 @@ class ProfileLanguage(db.Model):
|
|||||||
__tablename__ = "profile_language"
|
__tablename__ = "profile_language"
|
||||||
|
|
||||||
profile_id = Column(Integer, ForeignKey("profile.id"), primary_key=True)
|
profile_id = Column(Integer, ForeignKey("profile.id"), primary_key=True)
|
||||||
language_id = Column(Integer, ForeignKey("language.id"), primary_key=True)
|
language_id = Column(String(2), ForeignKey("language.id"), primary_key=True)
|
||||||
level = Column(SmallInteger, nullable=False)
|
level = Column(SmallInteger, nullable=False)
|
||||||
|
|
||||||
profile = relationship("Profile", back_populates="languages")
|
profile = relationship("Profile", back_populates="languages")
|
||||||
|
Loading…
Reference in New Issue
Block a user