# Generated by Django 5.2.9 on 2026-01-04 00:13

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


class Migration(migrations.Migration):

    dependencies = [
        ("cards", "0002_initial"),
    ]

    operations = [
        migrations.CreateModel(
            name="CardFace",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("is_seed_data", models.BooleanField(default=False, editable=False)),
                ("is_user_data", models.BooleanField(default=False, editable=False)),
                ("is_deleted", models.BooleanField(default=False, editable=False)),
                ("name", models.CharField(max_length=128)),
                ("background", models.ImageField(upload_to="cards/faces/backgrounds/")),
                (
                    "overlay_one_text",
                    models.TextField(
                        blank=True, default="", help_text="Primary overlay text."
                    ),
                ),
                (
                    "overlay_one_font",
                    models.CharField(blank=True, default="", max_length=255),
                ),
                ("overlay_one_font_size", models.PositiveIntegerField(default=28)),
                ("overlay_one_x", models.IntegerField(default=0)),
                ("overlay_one_y", models.IntegerField(default=0)),
                (
                    "overlay_two_text",
                    models.TextField(
                        blank=True, default="", help_text="Secondary overlay text."
                    ),
                ),
                (
                    "overlay_two_font",
                    models.CharField(blank=True, default="", max_length=255),
                ),
                ("overlay_two_font_size", models.PositiveIntegerField(default=24)),
                ("overlay_two_x", models.IntegerField(default=0)),
                ("overlay_two_y", models.IntegerField(default=0)),
                (
                    "fixed_back",
                    models.OneToOneField(
                        blank=True,
                        help_text="Optional fixed back for this card face.",
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        related_name="fixed_front",
                        to="cards.cardface",
                    ),
                ),
            ],
            options={
                "verbose_name": "Card Face",
                "verbose_name_plural": "Card Faces",
                "ordering": ("name",),
            },
        ),
    ]
