# Generated by Django 5.0.3 on 2026-05-05 04:29

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


class Migration(migrations.Migration):

    dependencies = [
        ('bengkel', '0021_blueprintstrategy_strategyidea'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='BlueprintActionPlan',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('tajuk', models.CharField(max_length=300, verbose_name='Item Tindakan')),
                ('penerangan', models.TextField(verbose_name='Perincian Pelaksanaan')),
                ('tahun_pelaksanaan', models.CharField(blank=True, help_text='Contoh: Tahun 1 (2026)', max_length=100, null=True)),
                ('generated_at', models.DateTimeField(auto_now_add=True)),
                ('bengkel', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='blueprint_action_plans', to='bengkel.bengkel')),
                ('strategi', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='action_plans', to='bengkel.blueprintstrategy')),
            ],
            options={
                'verbose_name': 'Blueprint — Pelan Tindakan',
                'verbose_name_plural': 'Blueprint — Pelan Tindakan',
                'ordering': ['strategi__urutan', 'id'],
            },
        ),
        migrations.CreateModel(
            name='ActionPlanIdea',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('idea', models.TextField(verbose_name='Cadangan KPI / Indikator Kejayaan')),
                ('status_ai', models.CharField(default='pending', max_length=20)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='action_plan_ideas', to=settings.AUTH_USER_MODEL)),
                ('action_plan', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ideas', to='bengkel.blueprintactionplan')),
            ],
            options={
                'verbose_name': 'Blueprint — Idea KPI Tindakan',
                'verbose_name_plural': 'Blueprint — Idea KPI Tindakan',
                'ordering': ['-created_at'],
            },
        ),
    ]
