# Generated by Django 3.1.3 on 2021-07-22 04:05

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


class Migration(migrations.Migration):

    dependencies = [
        ('stocks', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Customer',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('m_name', models.CharField(blank=True, max_length=128, null=True)),
                ('m_picture', models.FileField(blank=True, null=True, upload_to='')),
                ('m_tel', models.CharField(blank=True, max_length=128, null=True)),
                ('m_whats', models.CharField(blank=True, max_length=128, null=True)),
                ('m_telgram', models.CharField(blank=True, max_length=128, null=True)),
                ('m_facebook', models.CharField(blank=True, max_length=128, null=True)),
                ('m_gmail', models.CharField(blank=True, max_length=128, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='ProductActivity',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('m_qte', models.IntegerField(blank=True, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='TypeTransaction',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('m_name', models.CharField(blank=True, max_length=128, null=True)),
            ],
        ),
        migrations.AddField(
            model_name='product',
            name='m_code',
            field=models.CharField(blank=True, max_length=32, null=True),
        ),
        migrations.AddField(
            model_name='product',
            name='m_price',
            field=models.FloatField(blank=True, null=True),
        ),
        migrations.CreateModel(
            name='Transaction',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('m_code', models.CharField(blank=True, max_length=32, null=True)),
                ('m_date', models.DateTimeField(auto_now=True, null=True)),
                ('m_sens', models.IntegerField(blank=True, null=True)),
                ('m_description', models.TextField(blank=True, null=True)),
                ('m_customer', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='stocks.customer')),
                ('m_products', models.ManyToManyField(blank=True, to='stocks.ProductActivity')),
            ],
        ),
        migrations.AddField(
            model_name='productactivity',
            name='m_product',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='stocks.product'),
        ),
    ]
