# Generated by Django 3.1.1 on 2020-09-26 13:49

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name="SlackBot",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("client_id", models.TextField()),
                ("app_id", models.TextField()),
                ("enterprise_id", models.TextField(null=True)),
                ("team_id", models.TextField(null=True)),
                ("bot_token", models.TextField(null=True)),
                ("bot_id", models.TextField(null=True)),
                ("bot_user_id", models.TextField(null=True)),
                ("bot_scopes", models.TextField(null=True)),
                ("installed_at", models.DateTimeField()),
            ],
        ),
        migrations.CreateModel(
            name="SlackInstallation",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("client_id", models.TextField()),
                ("app_id", models.TextField()),
                ("enterprise_id", models.TextField(null=True)),
                ("team_id", models.TextField(null=True)),
                ("bot_token", models.TextField(null=True)),
                ("bot_id", models.TextField(null=True)),
                ("bot_user_id", models.TextField(null=True)),
                ("bot_scopes", models.TextField(null=True)),
                ("user_id", models.TextField()),
                ("user_token", models.TextField(null=True)),
                ("user_scopes", models.TextField(null=True)),
                ("incoming_webhook_url", models.TextField(null=True)),
                ("incoming_webhook_channel_id", models.TextField(null=True)),
                ("incoming_webhook_configuration_url", models.TextField(null=True)),
                ("installed_at", models.DateTimeField()),
            ],
        ),
        migrations.CreateModel(
            name="SlackOAuthState",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("state", models.TextField()),
                ("expire_at", models.DateTimeField()),
            ],
        ),
        migrations.AddIndex(
            model_name="slackinstallation",
            index=models.Index(
                fields=[
                    "client_id",
                    "enterprise_id",
                    "team_id",
                    "user_id",
                    "installed_at",
                ],
                name="slackapp_sl_client__9b0d3f_idx",
            ),
        ),
        migrations.AddIndex(
            model_name="slackbot",
            index=models.Index(
                fields=["client_id", "enterprise_id", "team_id", "installed_at"],
                name="slackapp_sl_client__d220d6_idx",
            ),
        ),
    ]
