text: # -*- coding: utf-8 -*-
  from __future__ import unicode_literals
  
  from django.db import models, migrations
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('auth', '0006_require_contenttypes_0002'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Command',
              fields=[
                  ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('uuid', models.CharField(max_length=128, db_index=True)),
              ],
              options={
                  'abstract': False,
              },
          ),
          migrations.CreateModel(
              name='LocalComputer',
              fields=[
                  ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('uuid', models.CharField(max_length=128, db_index=True)),
                  ('name', models.CharField(max_length=128)),
                  ('group', models.ManyToManyField(to='auth.Group')),
              ],
              options={
                  'abstract': False,
              },
          ),
          migrations.CreateModel(
              name='Map',
              fields=[
                  ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('uuid', models.CharField(max_length=128, db_index=True)),
                  ('name', models.CharField(max_length=128)),
                  ('controller', models.ForeignKey(to='data_api.LocalComputer')),
                  ('group', models.ManyToManyField(to='auth.Group')),
              ],
              options={
                  'abstract': False,
              },
          ),
          migrations.CreateModel(
              name='MapPoint',
              fields=[
                  ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('uuid', models.CharField(max_length=128, db_index=True)),
                  ('point_type', models.IntegerField(default=2)),
                  ('name', models.CharField(max_length=128)),
                  ('path', models.CharField(max_length=128)),
                  ('controller', models.ForeignKey(to='data_api.LocalComputer')),
                  ('map', models.ForeignKey(to='data_api.Map')),
              ],
              options={
                  'abstract': False,
              },
          ),
          migrations.CreateModel(
              name='Program',
              fields=[
                  ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('uuid', models.CharField(max_length=128, db_index=True)),
                  ('code', models.TextField(null=True)),
                  ('description', models.TextField(null=True)),
                  ('name', models.CharField(max_length=128)),
                  ('group', models.ManyToManyField(to='auth.Group')),
              ],
              options={
                  'abstract': False,
              },
          ),
          migrations.CreateModel(
              name='Shift',
              fields=[
                  ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('uuid', models.CharField(max_length=128, db_index=True)),
                  ('name', models.CharField(max_length=128)),
              ],
              options={
                  'abstract': False,
              },
          ),
          migrations.CreateModel(
              name='Signal',
              fields=[
                  ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('uuid', models.CharField(max_length=128, db_index=True)),
                  ('name', models.CharField(max_length=128)),
                  ('group', models.ManyToManyField(to='auth.Group')),
              ],
              options={
                  'abstract': False,
              },
          ),
          migrations.CreateModel(
              name='SignalBlob',
              fields=[
                  ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('uuid', models.CharField(max_length=128, db_index=True)),
                  ('signal', models.ForeignKey(to='data_api.Signal')),
              ],
              options={
                  'abstract': False,
              },
          ),
          migrations.CreateModel(
              name='System',
              fields=[
                  ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('uuid', models.CharField(max_length=128, db_index=True)),
                  ('name', models.CharField(max_length=128)),
                  ('timezone', models.CharField(max_length=32)),
                  ('group', models.ManyToManyField(to='auth.Group')),
                  ('shifts', models.ManyToManyField(to='data_api.Shift')),
              ],
              options={
                  'abstract': False,
              },
          ),
          migrations.AddField(
              model_name='localcomputer',
              name='system',
              field=models.ForeignKey(to='data_api.System'),
          ),
          migrations.AddField(
              model_name='command',
              name='controller',
              field=models.ForeignKey(to='data_api.LocalComputer'),
          ),
      ]
  