# Generated by Django 4.2.14 on 2026-01-13 16:05 from django.db import migrations, models import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='AsyncTask', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('task_type', models.CharField(choices=[('instance_create', '인스턴스 생성'), ('instance_delete', '인스턴스 삭제'), ('nks_create', 'NKS 클러스터 생성'), ('nks_delete', 'NKS 클러스터 삭제')], max_length=50)), ('status', models.CharField(choices=[('pending', '대기중'), ('running', '실행중'), ('success', '성공'), ('failed', '실패')], default='pending', max_length=20)), ('request_data', models.JSONField(default=dict, help_text='요청 데이터')), ('result_data', models.JSONField(default=dict, help_text='결과 데이터')), ('error_message', models.TextField(blank=True, help_text='에러 메시지')), ('resource_id', models.CharField(blank=True, help_text='생성된 리소스 ID', max_length=255)), ('resource_name', models.CharField(blank=True, help_text='리소스 이름', max_length=255)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('completed_at', models.DateTimeField(blank=True, null=True)), ], options={ 'verbose_name': '비동기 작업', 'verbose_name_plural': '비동기 작업들', 'ordering': ['-created_at'], }, ), ]