# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Device',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(max_length=256)),
                ('model', models.CharField(max_length=32)),
                ('os', models.CharField(max_length=256)),
                ('sys_info', models.CharField(max_length=1024)),
                ('sys_location', models.CharField(max_length=1024)),
                ('oper_status', models.IntegerField(default=0)),
            ],
        ),
        migrations.CreateModel(
            name='Interface',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('if_index', models.CharField(max_length=256)),
                ('if_name', models.CharField(max_length=256)),
                ('if_description', models.CharField(max_length=256)),
                ('if_encapsulation', models.CharField(max_length=128)),
                ('if_media_type', models.CharField(max_length=128)),
                ('if_belongs_to', models.ForeignKey(to='inventory.Device')),
            ],
        ),
        migrations.CreateModel(
            name='Inventory',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('device_model', models.CharField(max_length=256)),
                ('device_serial', models.CharField(max_length=256)),
                ('device_description', models.CharField(max_length=256)),
                ('device_parent', models.ForeignKey(to='inventory.Inventory')),
            ],
        ),
    ]
