# Generated by Django 5.2.9 on 2025-12-15 19:18

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ("nodes", "0005_remove_seed_nodes"),
    ]

    operations = [
        migrations.CreateModel(
            name="RecordingDevice",
            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)),
                ("identifier", models.CharField(max_length=50)),
                ("description", models.CharField(blank=True, max_length=255)),
                ("capture_channels", models.PositiveIntegerField(default=0)),
                ("raw_info", models.TextField(blank=True)),
                (
                    "node",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="recording_devices",
                        to="nodes.node",
                    ),
                ),
            ],
            options={
                "verbose_name": "Recording Device",
                "verbose_name_plural": "Recording Devices",
                "ordering": ["identifier"],
                "constraints": [
                    models.UniqueConstraint(
                        fields=("node", "identifier"),
                        name="audio_recordingdevice_unique",
                    )
                ],
            },
        ),
    ]
