more-allow
This commit is contained in:
parent
1788ab7ea1
commit
0da0313435
|
@ -30,6 +30,7 @@ class ClassType(TypeDecorator):
|
||||||
|
|
||||||
class Role(Base):
|
class Role(Base):
|
||||||
__tablename__ = "role"
|
__tablename__ = "role"
|
||||||
|
__allow_unmapped__ = True
|
||||||
|
|
||||||
name = Column(String, nullable=False, comment="Role Name")
|
name = Column(String, nullable=False, comment="Role Name")
|
||||||
desc = Column(String, nullable=True, comment="Role Description")
|
desc = Column(String, nullable=True, comment="Role Description")
|
||||||
|
|
|
@ -41,6 +41,7 @@ class ShoutAuthor(Base):
|
||||||
|
|
||||||
class Shout(Base):
|
class Shout(Base):
|
||||||
__tablename__ = "shout"
|
__tablename__ = "shout"
|
||||||
|
__allow_unmapped__ = True
|
||||||
|
|
||||||
slug = Column(String, unique=True)
|
slug = Column(String, unique=True)
|
||||||
community = Column(ForeignKey("community.id"), default=1)
|
community = Column(ForeignKey("community.id"), default=1)
|
||||||
|
|
|
@ -19,6 +19,7 @@ class TopicFollower(Base):
|
||||||
|
|
||||||
class Topic(Base):
|
class Topic(Base):
|
||||||
__tablename__ = "topic"
|
__tablename__ = "topic"
|
||||||
|
__allow_unmapped__ = True
|
||||||
|
|
||||||
slug = Column(String, unique=True)
|
slug = Column(String, unique=True)
|
||||||
title = Column(String, nullable=False, comment="Title")
|
title = Column(String, nullable=False, comment="Title")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user