# Generated by Django 5.2.4 on 2026-10-02 17:27

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('api', '0111_ttactivitytype_online_ttlocation_is_online'),
    ]

    operations = [
        migrations.CreateModel(
            name='IncomingApiMedical',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('user_id', models.BigIntegerField(blank=True, null=True)),
                ('incoming_params', models.JSONField(blank=True, null=True)),
                ('outgoing_params', models.JSONField(blank=True, null=True)),
                ('url', models.CharField(blank=True, max_length=255)),
                ('ip', models.CharField(blank=True, max_length=100)),
                ('scode', models.IntegerField(blank=True, null=True)),
                ('request_id', models.CharField(blank=True, db_index=True, max_length=255, null=True)),
                ('correlation_id', models.CharField(blank=True, db_index=True, max_length=255, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'db_table': 'incoming_api_medical',
            },
        ),
        migrations.AddField(
            model_name='accesstoken',
            name='system_type',
            field=models.SmallIntegerField(default=1, null=True),
        ),
        migrations.AlterUniqueTogether(
            name='accesstoken',
            unique_together={('user', 'type', 'device', 'system_type')},
        ),
    ]
