# Generated by Django 5.2.6 on 2026-04-08 02:04

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ("organization", "0001_initial"),
    ]

    operations = [
        migrations.CreateModel(
            name="BatchYear",
            fields=[
                (
                    "is_global",
                    models.BooleanField(
                        default=False,
                        help_text="If true, this data is shared across all organizations.",
                    ),
                ),
                ("year_id", models.AutoField(primary_key=True, serialize=False)),
                ("title", models.CharField(max_length=100, unique=True)),
                ("slug", models.SlugField(blank=True, max_length=100, unique=True)),
                ("code", models.CharField(max_length=10, unique=True)),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                (
                    "organization",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="%(class)s_data",
                        to="organization.organization",
                    ),
                ),
            ],
            options={
                "verbose_name": "Batch Year",
                "verbose_name_plural": "Batch Years",
                "ordering": ["code"],
            },
        ),
    ]
