# Generated by Django 5.2.7 on 2025-12-15 14:44

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Problem',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255)),
                ('type', models.CharField(choices=[('contest', 'Contest'), ('practice', 'Practice')], default='contest', max_length=10)),
                ('author', models.CharField(max_length=100)),
                ('level', models.CharField(choices=[('easy', 'Easy'), ('medium', 'Medium'), ('hard', 'Hard')], default='easy', max_length=10)),
                ('input_and_output_methods', models.TextField(blank=True, help_text='Describe Input and Output methods (IaOM)')),
                ('access_code', models.CharField(blank=True, help_text='Optional code to access the problem', max_length=50)),
                ('supported_languages', models.CharField(help_text='e.g., Python, C++, Java', max_length=255)),
                ('description', models.TextField()),
                ('memory_limit', models.IntegerField(help_text='Memory limit in MB')),
                ('time_limit', models.IntegerField(help_text='Time limit in seconds')),
                ('status', models.CharField(choices=[('draft', 'Draft'), ('published', 'Published')], default='draft', max_length=10)),
                ('point', models.IntegerField(default=100)),
                ('created_day', models.DateTimeField(auto_now_add=True)),
            ],
        ),
    ]
