# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-12-31 11:43 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Item', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('url', models.CharField(max_length=200)), ('title', models.CharField(max_length=200)), ('purchase_price', models.IntegerField()), ('currently_own', models.BooleanField(default=False)), ('sold', models.BooleanField(default=False)), ('sale_price', models.IntegerField()), ], ), migrations.CreateModel( name='Price', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateTimeField()), ('price', models.IntegerField()), ], ), migrations.CreateModel( name='TrackedItem', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('url', models.CharField(max_length=200)), ('title', models.CharField(max_length=200)), ], ), migrations.AddField( model_name='price', name='item', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ebay.TrackedItem'), ), ]