From 740b864ae2524610e74d3ca01725c502c431f452 Mon Sep 17 00:00:00 2001 From: David Layman Date: Tue, 11 Dec 2018 16:01:52 -0500 Subject: [PATCH] first commit --- adventure/migrations/0001_initial.py | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 adventure/migrations/0001_initial.py diff --git a/adventure/migrations/0001_initial.py b/adventure/migrations/0001_initial.py new file mode 100644 index 00000000..47d7f078 --- /dev/null +++ b/adventure/migrations/0001_initial.py @@ -0,0 +1,39 @@ +# Generated by Django 2.1.1 on 2018-12-10 22:01 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import uuid + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='Player', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('currentRoom', models.IntegerField(default=0)), + ('uuid', models.UUIDField(default=uuid.uuid4, unique=True)), + ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ], + ), + migrations.CreateModel( + name='Room', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(default='DEFAULT TITLE', max_length=50)), + ('description', models.CharField(default='DEFAULT DESCRIPTION', max_length=500)), + ('n_to', models.IntegerField(default=0)), + ('s_to', models.IntegerField(default=0)), + ('e_to', models.IntegerField(default=0)), + ('w_to', models.IntegerField(default=0)), + ], + ), + ]