# Generated by Django 3.1.3 on 2021-07-24 20:38

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


class Migration(migrations.Migration):

    dependencies = [
        ('stocks', '0004_auto_20210723_0232'),
    ]

    operations = [
        migrations.CreateModel(
            name='TransactionProduct',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('m_qte', models.IntegerField(blank=True, null=True)),
            ],
            options={
                'verbose_name': 'Produit par Transaction',
                'verbose_name_plural': 'Produit par Transactions',
            },
        ),
        migrations.RemoveField(
            model_name='transaction',
            name='m_products',
        ),
        migrations.AlterField(
            model_name='product',
            name='m_code',
            field=models.CharField(blank=True, max_length=32, null=True),
        ),
        migrations.AlterField(
            model_name='transaction',
            name='m_customer',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='stocks.customer'),
        ),
        migrations.DeleteModel(
            name='ProductActivity',
        ),
        migrations.AddField(
            model_name='transactionproduct',
            name='m_product',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='stocks.product'),
        ),
        migrations.AddField(
            model_name='transactionproduct',
            name='m_transaction',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='stocks.transaction'),
        ),
    ]
