# Generated by Django 5.1.4 on 2025-01-29 12:42

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


class Migration(migrations.Migration):
    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name="Plugin",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("name", models.CharField(max_length=255, unique=True)),
                (
                    "model",
                    models.CharField(
                        blank=True,
                        choices=[
                            ("4o-mini", "gpt-4o-mini"),
                            ("4o", "gpt-4o"),
                            ("o1-mini", "gpt-o1-mini"),
                            ("o1", "gpt-o1"),
                            ("claude-3.5-haiku", "claude-3.5-haiku"),
                            ("claude-3.5-sonnet", "claude-3.5-sonnet"),
                        ],
                        default="4o-mini",
                        max_length=30,
                    ),
                ),
                ("prompt", models.TextField(blank=True, default="")),
                ("module", models.TextField(blank=True, default="")),
                ("form_template", models.TextField(blank=True, default="")),
                ("content_template", models.TextField(blank=True, default="")),
                ("plugin_data", models.JSONField(blank=True, default=dict)),
                ("is_active", models.BooleanField(default=False)),
            ],
        ),
        migrations.CreateModel(
            name="Resume",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("name", models.CharField(max_length=255)),
                ("slug", models.SlugField(max_length=255, unique=True)),
                ("plugin_data", models.JSONField(blank=True, default=dict)),
                (
                    "owner",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
        ),
    ]
