# Generated by Django 5.2.4 on 2025-09-27 17:48

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


class Migration(migrations.Migration):

    dependencies = [
        ("core", "0051_ensure_system_user_staff"),
        ("otp_totp", "0003_add_timestamps"),
    ]

    operations = [
        migrations.CreateModel(
            name="TOTPDeviceSettings",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "issuer",
                    models.CharField(
                        blank=True,
                        default="",
                        help_text="Label shown in authenticator apps. Leave blank to use Arthexis.",
                        max_length=64,
                    ),
                ),
                (
                    "device",
                    models.OneToOneField(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="custom_settings",
                        to="otp_totp.totpdevice",
                    ),
                ),
            ],
            options={
                "verbose_name": "Authenticator device settings",
                "verbose_name_plural": "Authenticator device settings",
            },
        ),
    ]
