# Generated by Django 3.2.19 on 2023-06-18 19:46

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        ("mitreattack", "0003_data_migration"),
    ]

    operations = [
        migrations.CreateModel(
            name="Campaign",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
                    ),
                ),
                ("mitre_stix_identifier", models.CharField(max_length=255, unique=True)),
                ("mitre_original_data", models.JSONField()),
                ("created", models.DateTimeField()),
                ("modified", models.DateTimeField()),
                ("deprecated", models.BooleanField(default=False)),
                ("revoked", models.BooleanField(default=False)),
                ("name", models.CharField(max_length=255)),
                ("description", models.TextField(blank=True, null=True)),
                ("mitre_id", models.CharField(max_length=255)),
                ("mitre_url", models.URLField()),
                ("aliases", models.JSONField(blank=True, null=True)),
                ("first_seen", models.DateTimeField()),
                ("first_seen_citation", models.CharField(max_length=255)),
                ("last_seen", models.DateTimeField()),
                ("last_seen_citation", models.CharField(max_length=255)),
                (
                    "collection",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE, to="mitreattack.collection"
                    ),
                ),
            ],
            options={
                "abstract": False,
            },
        ),
    ]
