2018-10-26 23:42:53 +00:00
|
|
|
# Generated by Django 2.1.2 on 2018-10-26 22:05
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='ItemListing',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('item_name', models.CharField(max_length=128)),
|
|
|
|
('price', models.IntegerField()),
|
|
|
|
('amount', models.IntegerField()),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Location',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('name', models.CharField(max_length=128, unique=True)),
|
|
|
|
('x_coord', models.IntegerField()),
|
|
|
|
('z_coord', models.IntegerField()),
|
|
|
|
('dimension', models.CharField(choices=[('O', 'Overworld'), ('N', 'Nether'), ('E', 'The End')], max_length=1)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Player',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('name', models.CharField(max_length=30)),
|
|
|
|
('mc_uuid', models.CharField(max_length=36)),
|
|
|
|
('discord_uuid', models.CharField(max_length=50)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Tunnel',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('tunnel_number', models.IntegerField()),
|
|
|
|
('tunnel_direction', models.CharField(choices=[('N', 'North'), ('E', 'East'), ('S', ''), ('W', '')], max_length=1)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Base',
|
|
|
|
fields=[
|
2018-11-22 02:09:30 +00:00
|
|
|
('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')),
|
2018-10-26 23:42:53 +00:00
|
|
|
],
|
2018-11-22 02:09:30 +00:00
|
|
|
bases=('GeoffreyApp.location',),
|
2018-10-26 23:42:53 +00:00
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Shop',
|
|
|
|
fields=[
|
2018-11-22 02:09:30 +00:00
|
|
|
('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')),
|
2018-10-26 23:42:53 +00:00
|
|
|
],
|
2018-11-22 02:09:30 +00:00
|
|
|
bases=('GeoffreyApp.location',),
|
2018-10-26 23:42:53 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='tunnel',
|
|
|
|
name='location',
|
2018-11-22 02:09:30 +00:00
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tunnel_location', to='GeoffreyApp.Location'),
|
2018-10-26 23:42:53 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='location',
|
|
|
|
name='owner',
|
2018-11-22 02:09:30 +00:00
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='owner_player', to='GeoffreyApp.Player'),
|
2018-10-26 23:42:53 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='itemlisting',
|
|
|
|
name='shop',
|
2018-11-22 02:09:30 +00:00
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='shop_selling', to='GeoffreyApp.Shop'),
|
2018-10-26 23:42:53 +00:00
|
|
|
),
|
|
|
|
]
|