Module userland.models.message.tag

Message tag model

Classes

class MessageTag (**values)

Message tag model

Expand source code
class MessageTag(db.Model):
    """Message tag model"""

    name = Column(String(32), primary_key=True)
    """The tag's name"""

    created = Column(DateTime(), default=datetime.utcnow, nullable=False)
    """When the tag was created"""

    __tablename__ = "message_tag"

    def __repr__(self):
        return f"MessageTag({self.name})"

Ancestors

  • gino.declarative.Model
  • gino.crud.CRUDModel
  • gino.declarative.Model

Class variables

var created

When the tag was created

var name

The tag's name