Skip to content
Snippets Groups Projects
Host.py 346 B
Newer Older
  • Learn to ignore specific revisions
  • from sqlalchemy import Column, Integer, ForeignKey, String, Boolean, BigInteger, DateTime
    
    from pilab.database import Base, MAC, SERIAL, IP
    
    class HostType(Base):
        __tablename__ = "hosts"
        id = Column(Integer, primary_key=True)
        mac = Column(MAC())
        hostname = Column(String)
        ipv4_address = Column(IP())
        model = Column(String)