# Generated by Django 2.0.10 on 2019-02-21 10:43 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Link', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('state', models.CharField(choices=[('wish', 'wish'), ('planned', 'planned'), ('up', 'up'), ('down', 'down')], default='planned', max_length=20)), ('comment', models.TextField(max_length=1000)), ], ), migrations.CreateModel( name='Point', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('lat', models.DecimalField(decimal_places=6, max_digits=10)), ('lon', models.DecimalField(decimal_places=6, max_digits=10)), ('state', models.CharField(choices=[('wish', 'wish'), ('planned', 'planned'), ('up', 'up'), ('down', 'down')], default='planned', max_length=20)), ('comment', models.TextField(max_length=1000)), ('neighbors', models.ManyToManyField(through='nodeplanner.Link', to='nodeplanner.Point')), ], ), migrations.AddField( model_name='link', name='master', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='master', to='nodeplanner.Point'), ), migrations.AddField( model_name='link', name='slave', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='slave', to='nodeplanner.Point'), ), ]