text: # -*- coding: utf-8 -*-
  # Generated by Django 1.10.1 on 2016-10-02 21:12
  from __future__ import unicode_literals
  
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          ('instance_manager', '0004_auto_20161002_1527'),
          ('servicecatalog', '0043_auto_20161002_1803'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Hardware',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(db_index=True, max_length=200, unique=True)),
                  ('ip', models.GenericIPAddressField(blank=True, null=True)),
                  ('instance', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='machine_belongs_to_instance', to='instance_manager.Instance')),
                  ('owner', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='owner_of_machine', to='servicecatalog.Contact')),
              ],
          ),
          migrations.CreateModel(
              name='HardwareType',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=50, null=True)),
                  ('slug', models.CharField(blank=True, max_length=3, null=True)),
              ],
              options={
                  'ordering': ['name'],
              },
          ),
          migrations.CreateModel(
              name='PuppetRepo',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=150)),
                  ('url', models.URLField(blank=True, null=True)),
              ],
          ),
          migrations.AddField(
              model_name='hardware',
              name='puppet_repo',
              field=models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, related_name='puppet_for_machine', to='machine_manager.PuppetRepo'),
          ),
          migrations.AddField(
              model_name='hardware',
              name='type',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='type_of_hardware', to='machine_manager.HardwareType'),
          ),
      ]
  