Module userland.models.message.message_tags
Message tag relationship model
Classes
-
Message tag model
Expand source code
class MessageTags(db.Model): """Message tag model""" message_id = Column( None, ForeignKey("message.id", onupdate="cascade", ondelete="cascade"), nullable=False, ) """The tagged message ID""" tag_name = Column( None, ForeignKey("message_tag.name", onupdate="cascade", ondelete="cascade"), nullable=False, ) """The name of the tag""" __tablename__ = "message_x_message_tag"
Ancestors
- gino.declarative.Model
- gino.crud.CRUDModel
- gino.declarative.Model
Class variables
-
The tagged message ID
-
The name of the tag