Geoffrey-Django/GeoffreyApp/migrations/0008_publicfarm_resource.py

32 lines
1.1 KiB
Python
Raw Normal View History

# Generated by Django 2.1.2 on 2019-03-01 20:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('GeoffreyApp', '0007_town'),
]
operations = [
migrations.CreateModel(
name='PublicFarm',
fields=[
('location_ptr',
models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True,
primary_key=True, serialize=False, to='GeoffreyApp.Location')),
],
bases=('GeoffreyApp.location',),
),
migrations.CreateModel(
name='Resource',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('resource_name', models.CharField(max_length=128)),
('farm', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='resource',
to='GeoffreyApp.PublicFarm')),
],
),
]