# Generated by Django 5.0.4 on 2025-05-24 10:20

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('app_data', '0005_alter_dataregistry_key'),
    ]

    operations = [
        migrations.AlterField(
            model_name='dataclass',
            name='handle_method',
            field=models.CharField(choices=[('keyname', 'keyname'), ('external', 'external'), ('uuid', 'uuid'), ('md5', 'md5'), ('ipv4', 'ipv4')], default='keyname', max_length=32),
        ),
        migrations.CreateModel(
            name='DataEAV',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('classname', models.CharField(max_length=128)),
                ('keyname', models.CharField(max_length=128)),
                ('displayname', models.CharField(blank=True, max_length=500, null=True)),
                ('handle', models.CharField(blank=True, max_length=128, null=True)),
                ('is_enabled', models.BooleanField(default=True)),
                ('fieldname', models.CharField(blank=True, max_length=500, null=True)),
                ('format', models.CharField(blank=True, max_length=512, null=True)),
                ('value', models.CharField(blank=True, max_length=1024, null=True)),
                ('p_read', models.CharField(blank=True, max_length=256, null=True)),
                ('last_update', models.DateTimeField(auto_now_add=True, null=True)),
            ],
            options={
                'verbose_name': 'Data EAV',
                'verbose_name_plural': 'Data EAV',
                'db_table': 'data_eav',
                'indexes': [models.Index(fields=['classname'], name='data_eav_classna_d24eaf_idx'), models.Index(fields=['keyname'], name='data_eav_keyname_5dc129_idx'), models.Index(fields=['fieldname'], name='data_eav_fieldna_c130ac_idx'), models.Index(fields=['format'], name='data_eav_format_6cf572_idx'), models.Index(fields=['last_update'], name='data_eav_last_up_b1d3bc_idx'), models.Index(fields=['classname', 'keyname'], name='data_eav_classna_12224d_idx'), models.Index(fields=['classname', 'keyname', 'fieldname'], name='data_eav_classna_9025fa_idx')],
            },
        ),
    ]
