# -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-11 14:25
from __future__ import unicode_literals

from django.conf import settings
import django.core.validators
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='Cube',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('unit', models.CharField(max_length=10, null=True)),
                ('duration', models.PositiveSmallIntegerField()),
                ('promo', models.PositiveSmallIntegerField(default=0)),
                ('start_date', models.DateField()),
                ('end_date', models.DateField()),
                ('next_due_date', models.DateField(null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Item',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=32, null=True)),
                ('quantity', models.PositiveSmallIntegerField()),
                ('price', models.DecimalField(decimal_places=2, max_digits=7)),
                ('vat', models.DecimalField(decimal_places=2, default=0, max_digits=3)),
                ('commission', models.DecimalField(decimal_places=2, default=0, max_digits=3)),
                ('cube', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='thecubestore.Cube')),
            ],
        ),
        migrations.CreateModel(
            name='Payment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('mode', models.CharField(choices=[('ca', 'CASH'), ('ch', 'CHECK')], default='ca', max_length=2)),
                ('bank', models.CharField(max_length=128)),
                ('account', models.CharField(max_length=128)),
            ],
        ),
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('contact_number', models.CharField(max_length=15, validators=[django.core.validators.RegexValidator(message="Phone number must be entered in the format:                                          '+999999999'. Up to 15 digits allowed.", regex='^\\+?1?\\d{9,15}$')])),
                ('birthday', models.DateField(null=True)),
                ('primary_address', models.CharField(max_length=2048)),
                ('alternate_address', models.CharField(max_length=2048)),
                ('user', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Sales',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date', models.DateField()),
                ('quantity', models.PositiveSmallIntegerField()),
                ('net', models.DecimalField(decimal_places=2, max_digits=7)),
                ('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='thecubestore.Item')),
            ],
        ),
        migrations.CreateModel(
            name='Store',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=256)),
                ('facebook', models.CharField(max_length=128)),
                ('instagram', models.CharField(max_length=128)),
                ('website', models.CharField(max_length=256)),
                ('profile', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='thecubestore.Profile')),
            ],
        ),
        migrations.AddField(
            model_name='payment',
            name='profile',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='thecubestore.Profile'),
        ),
        migrations.AddField(
            model_name='cube',
            name='profile',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='thecubestore.Profile'),
        ),
    ]

6e601d55cb54a33da64576e00c189779d8097523
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [migrations.CreateModel(name='Cube', fields=[('id', models
        .AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('unit', models.CharField(max_length=10, null=
        True)), ('duration', models.PositiveSmallIntegerField()), ('promo',
        models.PositiveSmallIntegerField(default=0)), ('start_date', models
        .DateField()), ('end_date', models.DateField()), ('next_due_date',
        models.DateField(null=True))]), migrations.CreateModel(name='Item',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('name', models.CharField(
        max_length=32, null=True)), ('quantity', models.
        PositiveSmallIntegerField()), ('price', models.DecimalField(
        decimal_places=2, max_digits=7)), ('vat', models.DecimalField(
        decimal_places=2, default=0, max_digits=3)), ('commission', models.
        DecimalField(decimal_places=2, default=0, max_digits=3)), ('cube',
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'thecubestore.Cube'))]), migrations.CreateModel(name='Payment',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('mode', models.CharField(
        choices=[('ca', 'CASH'), ('ch', 'CHECK')], default='ca', max_length
        =2)), ('bank', models.CharField(max_length=128)), ('account',
        models.CharField(max_length=128))]), migrations.CreateModel(name=
        'Profile', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), (
        'contact_number', models.CharField(max_length=15, validators=[
        django.core.validators.RegexValidator(message=
        "Phone number must be entered in the format:                                          '+999999999'. Up to 15 digits allowed."
        , regex='^\\+?1?\\d{9,15}$')])), ('birthday', models.DateField(null
        =True)), ('primary_address', models.CharField(max_length=2048)), (
        'alternate_address', models.CharField(max_length=2048)), ('user',
        models.OneToOneField(null=True, on_delete=django.db.models.deletion
        .CASCADE, to=settings.AUTH_USER_MODEL))]), migrations.CreateModel(
        name='Sales', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('date',
        models.DateField()), ('quantity', models.PositiveSmallIntegerField(
        )), ('net', models.DecimalField(decimal_places=2, max_digits=7)), (
        'item', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, to='thecubestore.Item'))]), migrations.CreateModel(name=
        'Store', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('name',
        models.CharField(max_length=256)), ('facebook', models.CharField(
        max_length=128)), ('instagram', models.CharField(max_length=128)),
        ('website', models.CharField(max_length=256)), ('profile', models.
        ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE,
        to='thecubestore.Profile'))]), migrations.AddField(model_name=
        'payment', name='profile', field=models.ForeignKey(null=True,
        on_delete=django.db.models.deletion.CASCADE, to=
        'thecubestore.Profile')), migrations.AddField(model_name='cube',
        name='profile', field=models.ForeignKey(null=True, on_delete=django
        .db.models.deletion.CASCADE, to='thecubestore.Profile'))]

from __future__ import unicode_literals
from django.conf import settings
import django.core.validators
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='Cube', fields=[('id', models
        .AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('unit', models.CharField(max_length=10, null=
        True)), ('duration', models.PositiveSmallIntegerField()), ('promo',
        models.PositiveSmallIntegerField(default=0)), ('start_date', models
        .DateField()), ('end_date', models.DateField()), ('next_due_date',
        models.DateField(null=True))]), migrations.CreateModel(name='Item',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('name', models.CharField(
        max_length=32, null=True)), ('quantity', models.
        PositiveSmallIntegerField()), ('price', models.DecimalField(
        decimal_places=2, max_digits=7)), ('vat', models.DecimalField(
        decimal_places=2, default=0, max_digits=3)), ('commission', models.
        DecimalField(decimal_places=2, default=0, max_digits=3)), ('cube',
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'thecubestore.Cube'))]), migrations.CreateModel(name='Payment',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('mode', models.CharField(
        choices=[('ca', 'CASH'), ('ch', 'CHECK')], default='ca', max_length
        =2)), ('bank', models.CharField(max_length=128)), ('account',
        models.CharField(max_length=128))]), migrations.CreateModel(name=
        'Profile', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), (
        'contact_number', models.CharField(max_length=15, validators=[
        django.core.validators.RegexValidator(message=
        "Phone number must be entered in the format:                                          '+999999999'. Up to 15 digits allowed."
        , regex='^\\+?1?\\d{9,15}$')])), ('birthday', models.DateField(null
        =True)), ('primary_address', models.CharField(max_length=2048)), (
        'alternate_address', models.CharField(max_length=2048)), ('user',
        models.OneToOneField(null=True, on_delete=django.db.models.deletion
        .CASCADE, to=settings.AUTH_USER_MODEL))]), migrations.CreateModel(
        name='Sales', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('date',
        models.DateField()), ('quantity', models.PositiveSmallIntegerField(
        )), ('net', models.DecimalField(decimal_places=2, max_digits=7)), (
        'item', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, to='thecubestore.Item'))]), migrations.CreateModel(name=
        'Store', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('name',
        models.CharField(max_length=256)), ('facebook', models.CharField(
        max_length=128)), ('instagram', models.CharField(max_length=128)),
        ('website', models.CharField(max_length=256)), ('profile', models.
        ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE,
        to='thecubestore.Profile'))]), migrations.AddField(model_name=
        'payment', name='profile', field=models.ForeignKey(null=True,
        on_delete=django.db.models.deletion.CASCADE, to=
        'thecubestore.Profile')), migrations.AddField(model_name='cube',
        name='profile', field=models.ForeignKey(null=True, on_delete=django
        .db.models.deletion.CASCADE, to='thecubestore.Profile'))]

# -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-11 14:25
from __future__ import unicode_literals

from django.conf import settings
import django.core.validators
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='Cube',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('unit', models.CharField(max_length=10, null=True)),
                ('duration', models.PositiveSmallIntegerField()),
                ('promo', models.PositiveSmallIntegerField(default=0)),
                ('start_date', models.DateField()),
                ('end_date', models.DateField()),
                ('next_due_date', models.DateField(null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Item',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=32, null=True)),
                ('quantity', models.PositiveSmallIntegerField()),
                ('price', models.DecimalField(decimal_places=2, max_digits=7)),
                ('vat', models.DecimalField(decimal_places=2, default=0, max_digits=3)),
                ('commission', models.DecimalField(decimal_places=2, default=0, max_digits=3)),
                ('cube', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='thecubestore.Cube')),
            ],
        ),
        migrations.CreateModel(
            name='Payment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('mode', models.CharField(choices=[('ca', 'CASH'), ('ch', 'CHECK')], default='ca', max_length=2)),
                ('bank', models.CharField(max_length=128)),
                ('account', models.CharField(max_length=128)),
            ],
        ),
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('contact_number', models.CharField(max_length=15, validators=[django.core.validators.RegexValidator(message="Phone number must be entered in the format:                                          '+999999999'. Up to 15 digits allowed.", regex='^\\+?1?\\d{9,15}$')])),
                ('birthday', models.DateField(null=True)),
                ('primary_address', models.CharField(max_length=2048)),
                ('alternate_address', models.CharField(max_length=2048)),
                ('user', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Sales',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date', models.DateField()),
                ('quantity', models.PositiveSmallIntegerField()),
                ('net', models.DecimalField(decimal_places=2, max_digits=7)),
                ('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='thecubestore.Item')),
            ],
        ),
        migrations.CreateModel(
            name='Store',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=256)),
                ('facebook', models.CharField(max_length=128)),
                ('instagram', models.CharField(max_length=128)),
                ('website', models.CharField(max_length=256)),
                ('profile', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='thecubestore.Profile')),
            ],
        ),
        migrations.AddField(
            model_name='payment',
            name='profile',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='thecubestore.Profile'),
        ),
        migrations.AddField(
            model_name='cube',
            name='profile',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='thecubestore.Profile'),
        ),
    ]
