# Generated by Django 4.1 on 2024-05-25 12:05

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


class Migration(migrations.Migration):

    dependencies = [
        ('retailers', '0021_retailer_distributor'),
        ('distributors', '0008_alter_commission_distributor_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='SuperDistributorTransfer',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('amount', models.DecimalField(decimal_places=3, default=0, max_digits=10)),
                ('is_active', models.BooleanField(default=True, editable=False)),
                ('created_on', models.DateField(default=datetime.datetime.now, editable=False)),
                ('distributor', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='distributors.distributors')),
                ('super_distributor', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='distributors.superdistributors')),
            ],
            options={
                'verbose_name': 'Super Distributor Transfer',
                'verbose_name_plural': 'Super Distributor Transfer',
            },
        ),
        migrations.CreateModel(
            name='DistributorTransfer',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('amount', models.DecimalField(decimal_places=3, default=0, max_digits=10)),
                ('is_active', models.BooleanField(default=True, editable=False)),
                ('created_on', models.DateField(default=datetime.datetime.now, editable=False)),
                ('distributor', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='distributors.distributors')),
                ('retailer', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='retailers.retailer')),
            ],
            options={
                'verbose_name': 'Distributor Transfer',
                'verbose_name_plural': 'Distributor Transfer',
            },
        ),
    ]
