Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sqlalchemy import Column, types
- from sqlalchemy.ext.declarative import declarative_base
- Base = declarative_base()
- class Person(Base):
- __tablename__ = 'person'
- id = Column('person_id', types.Integer)
- login_type = Column(types.Enum('sso', 'local', name='login_type',
- metadata=Base.metadata,
- inherit_schema=True))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement