SHARE
TWEET

Untitled

a guest Apr 19th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top