# Generated by Django 5.0 on 2025-08-10 09:07

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


class Migration(migrations.Migration):

    dependencies = [
        ('authentication', '0032_organization_has_pos'),
        ('pos_device', '0047_posclientattribute_custom_field_and_more'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='device',
            name='company',
        ),
        migrations.RemoveField(
            model_name='deviceactivationcode',
            name='company',
        ),
        migrations.RemoveField(
            model_name='deviceassignment',
            name='company',
        ),
        migrations.RemoveField(
            model_name='deviceversion',
            name='company',
        ),
        migrations.AddField(
            model_name='device',
            name='organization',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='devices', to='authentication.organization'),
        ),
        migrations.AddField(
            model_name='deviceactivationcode',
            name='organization',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='device_activations', to='authentication.organization'),
        ),
        migrations.AddField(
            model_name='deviceassignment',
            name='organization',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='device_assignments', to='authentication.organization'),
        ),
        migrations.AddField(
            model_name='deviceversion',
            name='organization',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='device_versions', to='authentication.organization'),
        ),
        migrations.AlterField(
            model_name='deviceactivationcode',
            name='expires_at',
            field=models.DateTimeField(default=datetime.datetime(2025, 8, 10, 12, 37, 38, 697616)),
        ),
    ]
