81 lines
3.3 KiB
Python
81 lines
3.3 KiB
Python
|
# 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=[
|
||
|
('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='Shop',
|
||
|
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.AddField(
|
||
|
model_name='tunnel',
|
||
|
name='location',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tunnel_location', to='GeoffreyApp.Location'),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='location',
|
||
|
name='owner',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='owner_player', to='GeoffreyApp.Player'),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='itemlisting',
|
||
|
name='shop',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='shop_selling', to='GeoffreyApp.Shop'),
|
||
|
),
|
||
|
]
|