# Generated by Django 5.0.3 on 2026-07-20 03:49

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


class Migration(migrations.Migration):

    dependencies = [
        ('bengkel', '0049_actionplanidea_skor_relevansi'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='BlueprintIndicatorCalibration',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('penilaian', models.CharField(help_text='ideal, ambitious, low', max_length=50)),
                ('cadangan_sasaran', models.TextField(blank=True, verbose_name='Cadangan Sasaran Baharu')),
                ('skor_relevansi', models.FloatField(default=0.0, help_text='Skor kualiti AI untuk Gamifikasi')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('kpi', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='calibrations', to='bengkel.blueprintindicator')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='kpi_calibrations', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Blueprint — Kalibrasi KPI',
                'verbose_name_plural': 'Blueprint — Kalibrasi KPI',
                'ordering': ['-created_at'],
            },
        ),
    ]
