# Generated by Django 2.0.6 on 2018-07-21 00:37

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('cart', '0001_initial'),
        ('books', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Address',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('location', models.CharField(blank=True, max_length=120, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Member',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('profile_picture', models.ImageField(default='members/images/default_member.jpg', upload_to=members.models.upload_location)),
                ('slug', models.SlugField(blank=True, unique=True)),
                ('birth_date', models.DateField()),
                ('receive_newsletter', models.BooleanField(default=True)),
                ('hex_code', models.CharField(blank=True, max_length=10, null=True)),
                ('activated', models.BooleanField(default=False)),
                ('authentication_key', models.CharField(blank=True, max_length=8)),
                ('cart', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='cart.Cart')),
                ('orders', models.ManyToManyField(blank=True, to='cart.Order')),
                ('primary_address', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='members.Address')),
                ('purchased', models.ManyToManyField(blank=True, to='books.Book')),
                ('reserved', models.ManyToManyField(blank=True, to='books.Reservation')),
                ('saved_addresses', models.ManyToManyField(blank=True, related_name='address', to='members.Address')),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
