# -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-03 21:43
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='CartItem',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('quantity', models.IntegerField(default=1)),
            ],
        ),
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(default='New Product', max_length=255)),
                ('description', models.TextField(default='Mechanical designs by w^3')),
                ('on_hand', models.IntegerField(default=0)),
                ('price', models.DecimalField(decimal_places=2, default=0.0, max_digits=5)),
                ('packaging', models.CharField(choices=[('FlatRateEnvelope', 'Flat Rate Envelope (12.5 x 9.5)'), ('FlatRatePaddedEnvelope', 'Flat Rate Envelope Padded (12.5 x 9.5)'), ('SmallFlatRateBox', 'Flat Rate Small Box (8.6 x 5.3 x 1.6)'), ('MediumFlatRateBox1', 'Flat Rate Medium Box 1 (11 x 8.5 x 5.5)'), ('MediumFlatRateBox2', 'Flat Rate Medium Box 2 (13.6 x 11.8 x 5.5)'), ('LargeFlatRateBox', 'Flat Rate Large Box (12 x 12 x 5.5)'), ('LargeFlatRateBoardGameBox', 'Flat Rate Board Game Box (23.6 x 11.75 x 3)'), ('custom', 'Fill out the custom size below')], help_text='Size listed is internal inches', max_length=100)),
                ('weight', models.IntegerField(help_text="Item's weight in oz")),
                ('custom_width', models.IntegerField(blank=True, help_text='Exterior box size in inches', null=True)),
                ('custom_height', models.IntegerField(blank=True, help_text='Exterior box size in inches', null=True)),
                ('custom_depth', models.IntegerField(blank=True, help_text='Exterior box size in inches', null=True)),
                ('preview_image', models.ImageField(blank=True, null=True, upload_to='uploads')),
                ('image1', models.ImageField(blank=True, null=True, upload_to='uploads')),
                ('image2', models.ImageField(blank=True, null=True, upload_to='uploads')),
                ('image3', models.ImageField(blank=True, null=True, upload_to='uploads')),
                ('image4', models.ImageField(blank=True, null=True, upload_to='uploads')),
                ('image5', models.ImageField(blank=True, null=True, upload_to='uploads')),
            ],
        ),
        migrations.CreateModel(
            name='ShoppingCart',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('active', models.BooleanField(default=True)),
                ('customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Paintball',
            fields=[
                ('category_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='cart.Category')),
            ],
            options={
                'verbose_name': 'Paintball',
                'verbose_name_plural': 'Paintball Products',
            },
            bases=('cart.category',),
        ),
        migrations.CreateModel(
            name='Watch',
            fields=[
                ('category_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='cart.Category')),
            ],
            options={
                'verbose_name': 'Watch',
                'verbose_name_plural': 'Watches',
            },
            bases=('cart.category',),
        ),
        migrations.AddField(
            model_name='cartitem',
            name='cart',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='cart.ShoppingCart'),
        ),
        migrations.AddField(
            model_name='cartitem',
            name='item',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cart.Category'),
        ),
    ]
