# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):
    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Bag',
            fields=[
                ('id', models.AutoField(serialize=False, verbose_name='ID', auto_created=True, primary_key=True)),
                ('is_active', models.BooleanField(default=True, editable=False)),
                ('name', models.CharField(verbose_name='name', max_length=63, unique=True)),
                ('manufactured_at', models.DateField(verbose_name='manufacturing date')),
            ],
            options={
                'verbose_name': 'bag',
                'verbose_name_plural': 'bags',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='BagMaterial',
            fields=[
                ('id', models.AutoField(serialize=False, verbose_name='ID', auto_created=True, primary_key=True)),
                ('is_active', models.BooleanField(default=True, editable=False)),
                ('name', models.CharField(verbose_name='name', max_length=63, unique=True)),
            ],
            options={
                'verbose_name': 'bag material',
                'verbose_name_plural': 'bag materials',
            },
            bases=(models.Model,),
        ),
        migrations.AddField(
            model_name='bag',
            name='material',
            field=models.ForeignKey(to='bags.BagMaterial', related_name='bags'),
            preserve_default=True,
        ),
    ]
