# Generated by Django 5.2 on 2025-12-07 13:08 import django.db.models.deletion import django_tenants.postgresql_backend.base from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Client', fields=[ ('id', models.BigAutoField(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(max_length=100)), ('created_at', models.DateField(auto_now_add=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Domain', fields=[ ('id', models.BigAutoField(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, }, ), ]