# Generated by Django 5.2.12 on 2026-03-28 14:15

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


class Migration(migrations.Migration):

    dependencies = [
        ("rims_grants", "0001_initial"),
    ]

    operations = [
        migrations.AddField(
            model_name="application",
            name="proposal",
            field=models.TextField(
                blank=True, help_text="Project proposal, cover letter, or statement of purpose."
            ),
        ),
        migrations.CreateModel(
            name="RequiredDocument",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
                    ),
                ),
                (
                    "label",
                    models.CharField(
                        help_text="e.g. CV / Résumé, Research proposal, Reference letter",
                        max_length=128,
                    ),
                ),
                (
                    "description",
                    models.CharField(
                        blank=True, help_text="Brief guidance shown to applicants", max_length=255
                    ),
                ),
                ("is_required", models.BooleanField(default=True)),
                ("sort_order", models.PositiveSmallIntegerField(default=0)),
                (
                    "call",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="required_documents",
                        to="rims_grants.grantcall",
                    ),
                ),
            ],
            options={
                "ordering": ["sort_order", "pk"],
            },
        ),
    ]
