# Generated by Django 5.0.3 on 2026-05-05 07:49

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


class Migration(migrations.Migration):

    dependencies = [
        ('bengkel', '0023_blueprintindicator'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='AllocationIdea',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('idea_sumber', models.TextField(verbose_name='Cadangan Keperluan Sumber')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('action_plan', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='allocation_ideas', to='bengkel.blueprintactionplan')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='allocation_ideas', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Blueprint — Idea Peruntukan',
                'verbose_name_plural': 'Blueprint — Idea Peruntukan',
                'ordering': ['-created_at'],
            },
        ),
        migrations.CreateModel(
            name='BlueprintAllocation',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('kategori_sumber', models.CharField(help_text='Contoh: Kewangan, Manusia, Fasiliti, Teknologi', max_length=100)),
                ('anggaran_keperluan', models.CharField(max_length=300, verbose_name='Anggaran/Fokus Keperluan')),
                ('justifikasi', models.TextField(blank=True, verbose_name='Sebab Keperluan')),
                ('generated_at', models.DateTimeField(auto_now_add=True)),
                ('action_plan', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='allocations', to='bengkel.blueprintactionplan')),
                ('bengkel', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='blueprint_allocations', to='bengkel.bengkel')),
            ],
            options={
                'verbose_name': 'Blueprint — Peruntukan Sumber',
                'verbose_name_plural': 'Blueprint — Peruntukan Sumber',
                'ordering': ['action_plan__strategi__urutan', 'kategori_sumber'],
            },
        ),
    ]
