# Generated by Django 2.2 on 2021-09-27 13:39 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import django_tenants.postgresql_backend.base class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Client', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('schema_name', models.CharField(db_index=True, max_length=63, unique=True, validators=[django_tenants.postgresql_backend.base._check_schema_name])), ('name', models.CharField(db_index=True, max_length=100, unique=True)), ('paid_until', models.DateField(default=django.utils.timezone.now)), ('on_trial', models.BooleanField(default=True)), ('created_on', models.DateField(auto_now_add=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Domain', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('domain', models.CharField(db_index=True, max_length=253, unique=True)), ('is_primary', models.BooleanField(db_index=True, default=True)), ('tenant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='domains', to='Customers.Client')), ], options={ 'abstract': False, }, ), ]