1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
__all__ = ["Group"] from sqlalchemy import Column, Integer, String from sqlalchemy.orm import relationship from ._base import Base, engine class Group(Base): __tablename__ = 'groups' id = Column(Integer, primary_key=True) name = Column(String) def __repr__(self): return "<Group(name='%s')>" % (self.name)