# Generated by Django 4.2.7 on 2024-01-05 12:37

from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='OwnProduction',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=255, verbose_name='Назва')),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='дата')),
                ('updated_at', models.DateTimeField(auto_now_add=True, verbose_name='дата')),
                ('created_by', models.CharField(blank=True, default='System', max_length=200, null=True, verbose_name='Користувач')),
            ],
            options={
                'verbose_name': 'ВВ',
                'verbose_name_plural': 'ВВ',
            },
        ),
        migrations.CreateModel(
            name='OwnProductionItem',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('good', models.CharField(max_length=255, verbose_name='Назва')),
                ('quantity', models.FloatField(verbose_name='Кількість')),
                ('own_production', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='own_production.ownproduction', verbose_name='Власне Виробництво')),
            ],
            options={
                'verbose_name_plural': 'ТМЦ в ВВ',
            },
        ),
    ]
