new_contents: # Generated by Django 2.2.16 on 2020-12-28 17:35
  
  import django.contrib.postgres.fields
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          ('accounting', '0053_app_user_profiles_advanced'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='IdentityProvider',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=128)),
                  ('slug', models.CharField(db_index=True, max_length=256, unique=True)),
                  ('idp_type', models.CharField(choices=[('azure_ad', 'Azure AD')], default='azure_ad', max_length=10)),
                  ('is_editable', models.BooleanField(default=False)),
                  ('is_active', models.BooleanField(default=False)),
                  ('entity_id', models.TextField(blank=True, null=True)),
                  ('login_url', models.TextField(blank=True, null=True)),
                  ('logout_url', models.TextField(blank=True, null=True)),
                  ('idp_cert_public', models.TextField(blank=True, null=True)),
                  ('date_idp_cert_expiration', models.DateTimeField(blank=True, null=True)),
                  ('sp_cert_public', models.TextField(blank=True, null=True)),
                  ('sp_cert_private', models.TextField(blank=True, null=True)),
                  ('date_sp_cert_expiration', models.DateTimeField(blank=True, null=True)),
                  ('sp_rollover_cert_public', models.TextField(blank=True, null=True)),
                  ('sp_rollover_cert_private', models.TextField(blank=True, null=True)),
                  ('date_sp_rollover_cert_expiration', models.DateTimeField(blank=True, null=True)),
                  ('created_on', models.DateTimeField(auto_now_add=True)),
                  ('created_by', models.EmailField(max_length=254)),
                  ('last_modified', models.DateTimeField(auto_now=True)),
                  ('last_modified_by', models.EmailField(max_length=254)),
                  ('owner', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='accounting.BillingAccount')),
              ],
          ),
          migrations.CreateModel(
              name='TrustedIdentityProvider',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('domain', models.CharField(db_index=True, max_length=256)),
                  ('date_acknowledged', models.DateTimeField(auto_now_add=True)),
                  ('acknowledged_by', models.EmailField(max_length=254)),
                  ('identity_provider', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='sso.IdentityProvider')),
              ],
          ),
          migrations.CreateModel(
              name='AuthenticatedEmailDomain',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('email_domain', models.CharField(db_index=True, max_length=253, unique=True)),
                  ('sso_exempt_users', django.contrib.postgres.fields.ArrayField(base_field=models.EmailField(max_length=254), blank=True, default=list, size=None)),
                  ('identity_provider', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='sso.IdentityProvider')),
              ],
          ),
      ]
  
subject: add initial migration for sso models