# Generated by Django 4.2.14 on 2025-01-28 11:41

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


class Migration(migrations.Migration):

    dependencies = [
        ('base', '0009_remove_endpointreference_endpoint_and_more'),
        ('devicedefinitions', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='DeviceDefinitionDeviceVersion',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('value', models.CharField(max_length=255, null=True)),
                ('component', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='device_definition_device_version_component', to='base.identifier')),
                ('type', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='device_definition_device_version_type', to='base.codeableconcept')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.RemoveField(
            model_name='devicedefinition',
            name='device_version',
        ),
        migrations.DeleteModel(
            name='DeviceVersion',
        ),
    ]
