# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [("orgs", "0016_taskstate_is_disabled"), ("msgs", "0052_triggers")]

    operations = [
        migrations.CreateModel(
            name="FAQ",
            fields=[
                ("id", models.AutoField(verbose_name="ID", serialize=False, auto_created=True, primary_key=True)),
                ("question", models.CharField(max_length=255)),
                ("answer", models.TextField()),
                (
                    "language",
                    models.CharField(
                        help_text="Language for this FAQ", max_length=3, null=True, verbose_name="Language", blank=True
                    ),
                ),
                (
                    "labels",
                    models.ManyToManyField(
                        help_text="Labels assigned to this FAQ", related_name="faqs", to="msgs.Label"
                    ),
                ),
                (
                    "org",
                    models.ForeignKey(
                        related_name="faqs", verbose_name="Organization", to="orgs.Org", on_delete=models.PROTECT
                    ),
                ),
                (
                    "parent",
                    models.ForeignKey(
                        related_name="translations", blank=True, to="msgs.FAQ", null=True, on_delete=models.PROTECT
                    ),
                ),
            ],
        )
    ]
