<commit_before><commit_msg>add initial migration for sso models<commit_after># 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')),
            ],
        ),
    ]
{'fraction_non_alphanumeric': 0.13843148199832542, 'fraction_numerical': 0.012838403572425341, 'mean_word_length': 2.982222222222222, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '357795', 'n_tokens_mistral': 1070, 'n_tokens_neox': 996, 'n_words': 136}