Skip to content
Snippets Groups Projects
Cube.py 311 B
Newer Older
  • Learn to ignore specific revisions
  • from sqlalchemy import Column, Integer, ForeignKey
    
    from pilab.database import Base, MAC, SERIAL, IP
    
    class CubesType(Base):
        __tablename__ = "cubes"
        id = Column(Integer, primary_key=True)
        switch_id = Column(Integer, ForeignKey('hosts.id'))
        controller_id = Column(Integer, ForeignKey('hosts.id'))