Module userland.models.message.message_tags

Message tag relationship model

Classes

class MessageTags (**values)

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

var message_id

The tagged message ID

var tag_name

The name of the tag