# Generated by Django 5.0.4 on 2025-06-08 10:55

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('app_data', '0008_alter_dataeav_last_update'),
    ]

    operations = [
        migrations.CreateModel(
            name='DataFile',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('fileid', models.CharField(max_length=128, unique=True)),
                ('filename', models.CharField(max_length=256)),
                ('displayname', models.CharField(blank=True, max_length=500, null=True)),
                ('filepath', models.CharField(blank=True, max_length=128, null=True)),
                ('p_read', models.CharField(blank=True, max_length=256, null=True)),
                ('p_write', models.CharField(blank=True, max_length=256, null=True)),
                ('size', models.BigIntegerField()),
                ('hash', models.CharField(blank=True, max_length=128, null=True)),
                ('is_encrypted', models.BooleanField(default=False)),
                ('is_enabled', models.BooleanField(default=True)),
                ('not_after', models.DateTimeField(blank=True, null=True)),
                ('last_update', models.DateTimeField(auto_now_add=True, null=True)),
            ],
            options={
                'verbose_name': 'Data File',
                'verbose_name_plural': 'Data Files',
                'db_table': 'data_file',
                'indexes': [models.Index(fields=['is_enabled'], name='data_file_is_enab_c08c1c_idx'), models.Index(fields=['last_update'], name='data_file_last_up_2a39d0_idx'), models.Index(fields=['not_after'], name='data_file_not_aft_462872_idx')],
            },
        ),
    ]
