# Generated by Django 2.1 on 2019-01-02 02:42 from django.db import migrations, models import django.db.models.deletion import djgeojson.fields import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Address', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')), ('name', models.CharField(max_length=256, verbose_name='区域')), ('geom', djgeojson.fields.PointField(default=dict)), ], ), migrations.CreateModel( name='CountyBoundary', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')), ('name', models.CharField(max_length=256, verbose_name='县名')), ('geom', djgeojson.fields.MultiPolygonField(default=dict)), ], ), migrations.CreateModel( name='Grid', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')), ('geom', djgeojson.fields.PointField(default=dict)), ], ), migrations.CreateModel( name='Station', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')), ('code', models.CharField(max_length=256, verbose_name='区站号')), ('geom', djgeojson.fields.PointField(default=dict)), ], ), migrations.CreateModel( name='TownBoundary', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')), ('name', models.CharField(max_length=256, verbose_name='乡名')), ('geom', djgeojson.fields.MultiPolygonField(default=dict)), ('county', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='graphic.CountyBoundary')), ], ), migrations.AddField( model_name='grid', name='station', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='graphic.Station'), ), ]