nic_table = Table('nics', meta,
Column('machine_id', Integer, ForeignKey('machines.machine_id'), nullable=True),
- Column('mac_addr', String, nullable=False),
+ Column('mac_addr', String, nullable=False, primary_key=True),
Column('ip', String, nullable=False),
- Column('hostname', String, primary_key=True, nullable=False))
+ Column('hostname', String, nullable=True))
disk_table = Table('disks', meta,
Column('machine_id', Integer, ForeignKey('machines.machine_id'), nullable=False),