Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. from sqlalchemy import Column, types
  2. from sqlalchemy.ext.declarative import declarative_base
  3.  
  4. Base = declarative_base()
  5.  
  6. class Person(Base):
  7. __tablename__ = 'person'
  8.  
  9. id = Column('person_id', types.Integer)
  10. login_type = Column(types.Enum('sso', 'local', name='login_type',
  11. metadata=Base.metadata,
  12. inherit_schema=True))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement