text: # Generated by Django 3.2 on 2021-08-28 20:31
  
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
      ]
  
      operations = [
          migrations.CreateModel(
              name='State',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='created time')),
                  ('modified_time', models.DateTimeField(auto_now=True, verbose_name='modified time')),
                  ('name', models.CharField(max_length=20, verbose_name='name')),
                  ('slug', models.SlugField(allow_unicode=True, max_length=25, verbose_name='slug')),
              ],
              options={
                  'verbose_name': 'State',
                  'verbose_name_plural': 'States',
                  'db_table': 'state',
              },
          ),
          migrations.CreateModel(
              name='City',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='created time')),
                  ('modified_time', models.DateTimeField(auto_now=True, verbose_name='modified time')),
                  ('name', models.CharField(max_length=20, verbose_name='name')),
                  ('slug', models.SlugField(allow_unicode=True, max_length=25, verbose_name='slug')),
                  ('state', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='cities', to='address.state', verbose_name='state')),
              ],
              options={
                  'verbose_name': 'City',
                  'verbose_name_plural': 'Cities',
                  'db_table': 'city',
              },
          ),
          migrations.CreateModel(
              name='Area',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='created time')),
                  ('modified_time', models.DateTimeField(auto_now=True, verbose_name='modified time')),
                  ('name', models.CharField(max_length=20, verbose_name='name')),
                  ('slug', models.SlugField(allow_unicode=True, max_length=25, verbose_name='slug')),
                  ('city', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='areas', to='address.city', verbose_name='city')),
              ],
              options={
                  'verbose_name': 'Area',
                  'verbose_name_plural': 'Areas',
                  'db_table': 'area',
              },
          ),
          migrations.CreateModel(
              name='Address',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='created time')),
                  ('modified_time', models.DateTimeField(auto_now=True, verbose_name='modified time')),
                  ('floor', models.SmallIntegerField(verbose_name='floor')),
                  ('plaque', models.SmallIntegerField(verbose_name='plaque')),
                  ('area', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='addresses', to='address.area', verbose_name='area')),
                  ('city', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='addresses', to='address.city', verbose_name='city')),
                  ('state', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='addresses', to='address.state', verbose_name='state')),
              ],
              options={
                  'verbose_name': 'Address',
                  'verbose_name_plural': 'Addresses',
                  'db_table': 'address',
              },
          ),
      ]
  