text: # Generated by Django 3.2.7 on 2021-09-25 10:02
  
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          ('products', '0001_initial'),
          ('profiles', '0002_alter_profile_avatar'),
          ('customers', '0001_initial'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='CSV',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('file_name', models.FileField(upload_to='csv')),
                  ('activated', models.BooleanField(default=False)),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
              ],
          ),
          migrations.CreateModel(
              name='Position',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('quantity', models.PositiveIntegerField()),
                  ('price', models.FloatField(blank=True)),
                  ('created_at', models.DateTimeField(blank=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='products.product')),
              ],
          ),
          migrations.CreateModel(
              name='Sale',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('transaction_id', models.CharField(blank=True, max_length=12)),
                  ('total_price', models.FloatField(blank=True)),
                  ('created_at', models.DateTimeField(blank=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='customers.customer')),
                  ('positions', models.ManyToManyField(to='sales.Position')),
                  ('salesman', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='profiles.profile')),
              ],
          ),
      ]
  