# Generated by Django 5.2.8 on 2025-12-07 00:05

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


class Migration(migrations.Migration):

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

    operations = [
        migrations.CreateModel(
            name="ApplicationModel",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("label", models.CharField(max_length=255)),
                ("model_name", models.CharField(max_length=100)),
                ("verbose_name", models.CharField(blank=True, max_length=255)),
                (
                    "application",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="models",
                        to="app.application",
                    ),
                ),
            ],
            options={
                "verbose_name": "Application model",
                "verbose_name_plural": "Application models",
                "db_table": "pages_applicationmodel",
                "ordering": ("label",),
                "unique_together": {("application", "label")},
            },
        ),
    ]
