63 lines
2.4 KiB
Python
63 lines
2.4 KiB
Python
|
# Generated by Django 2.0.7 on 2018-07-10 03:15
|
||
|
|
||
|
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'),
|
||
|
),
|
||
|
]
|