text: # Generated by Django 2.2.24 on 2022-02-03 11:51
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Storage',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('type', models.CharField(max_length=100)),
                  ('charge', models.IntegerField()),
                  ('no_units', models.IntegerField(default=0)),
                  ('available_units', models.IntegerField(default=0)),
              ],
          ),
          migrations.CreateModel(
              name='Goods',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('no_of_units', models.IntegerField(null=True)),
                  ('arrival_date', models.DateField()),
                  ('departure_date', models.DateField()),
                  ('description', models.TextField(max_length=500)),
                  ('total_cost', models.IntegerField(null=True)),
                  ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='goods', to=settings.AUTH_USER_MODEL)),
                  ('storage_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='units', to='units.Storage')),
              ],
          ),
      ]
  