# Generated by Django 5.0.3 on 2026-04-14 23:15

import django.utils.timezone
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Log',
            fields=[
                ('id', models.BigAutoField(primary_key=True, serialize=False)),
                ('user_id', models.IntegerField(default=0)),
                ('user', models.CharField(default='anonimo', max_length=255)),
                ('app_id', models.IntegerField(default=0)),
                ('remote_address', models.GenericIPAddressField(blank=True, null=True)),
                ('request', models.JSONField(blank=True, null=True)),
                ('response', models.JSONField(blank=True, null=True)),
                ('status_code', models.CharField(default='0', max_length=10)),
                ('path', models.CharField(max_length=255)),
                ('method', models.CharField(max_length=10)),
                ('createdAt', models.DateTimeField(default=django.utils.timezone.now)),
                ('updatedAt', models.DateTimeField(auto_now=True)),
            ],
            options={
                'db_table': 'audit_logs',
            },
        ),
    ]
