# Generated by Django 3.2.13 on 2023-02-21 12:24

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


class Migration(migrations.Migration):

    dependencies = [
        ('authentication', '0002_auto_20230221_1224'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('panel', '0007_auto_20230130_1656'),
    ]

    operations = [
        migrations.CreateModel(
            name='Admin',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('key', models.UUIDField(default=uuid.uuid4, editable=False, null=True, unique=True)),
                ('create_date', models.DateTimeField(auto_now_add=True)),
                ('modify_date', models.DateTimeField(auto_now=True)),
                ('trash', models.BooleanField(default=False)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='admin_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='admin_modifiedby', to=settings.AUTH_USER_MODEL)),
                ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='user_profile_admin', to='authentication.systemuserprofile')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='FinancialTransaction',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('key', models.UUIDField(default=uuid.uuid4, editable=False, null=True, unique=True)),
                ('create_date', models.DateTimeField(auto_now_add=True)),
                ('modify_date', models.DateTimeField(auto_now=True)),
                ('trash', models.BooleanField(default=False)),
                ('type', models.CharField(max_length=50, null=True)),
                ('cost', models.IntegerField(null=True)),
                ('description', models.TextField(null=True)),
                ('image', models.JSONField(null=True)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='financialtransaction_createdby', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='financialdocument',
            name='payment_code',
            field=models.IntegerField(null=True),
        ),
        migrations.AddField(
            model_name='financialdocument',
            name='type',
            field=models.CharField(max_length=30, null=True),
        ),
        migrations.AddField(
            model_name='financialdocument',
            name='wallet',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='financial_wallet', to='panel.wallet'),
        ),
        migrations.AddField(
            model_name='itransaction',
            name='file_id',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='poultryrequest',
            name='assignment',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='pricing',
            name='lock',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='pricing',
            name='operator',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='pricing_operator', to='authentication.systemuserprofile'),
        ),
        migrations.AddField(
            model_name='pricing',
            name='retail_seller_price',
            field=models.FloatField(null=True),
        ),
        migrations.AddField(
            model_name='pricing',
            name='role',
            field=models.CharField(max_length=20, null=True),
        ),
        migrations.AlterField(
            model_name='financialdocument',
            name='image',
            field=models.JSONField(null=True),
        ),
        migrations.AlterField(
            model_name='functionexecutor',
            name='compare_time',
            field=models.DateTimeField(default=datetime.datetime(2023, 2, 21, 12, 24, 53, 844709)),
        ),
        migrations.AlterField(
            model_name='itransaction',
            name='payment_code',
            field=models.BigIntegerField(default=0, null=True),
        ),
        migrations.AlterField(
            model_name='itransaction',
            name='transfer_amount',
            field=models.FloatField(null=True),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='assignment_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2023, 2, 21, 12, 24, 53, 760174)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='city_operator_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2023, 2, 21, 12, 24, 53, 760098)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='kill_house_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2023, 2, 21, 12, 24, 53, 760156)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='province_operator_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2023, 2, 21, 12, 24, 53, 760137)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='date_of_register',
            field=models.DateTimeField(default=datetime.datetime(2023, 2, 21, 12, 24, 53, 764614)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='hatching_date',
            field=models.DateTimeField(default=datetime.datetime(2023, 2, 21, 12, 24, 53, 764400)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='last_party_date',
            field=models.DateTimeField(default=datetime.datetime(2023, 2, 21, 12, 24, 53, 764427)),
        ),
        migrations.DeleteModel(
            name='Iwallet',
        ),
        migrations.AddField(
            model_name='financialtransaction',
            name='itransaction',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='financial_transaction', to='panel.itransaction'),
        ),
        migrations.AddField(
            model_name='financialtransaction',
            name='modified_by',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='financialtransaction_modifiedby', to=settings.AUTH_USER_MODEL),
        ),
    ]
