mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-01-16 09:16:12 +00:00
64 lines
3.0 KiB
Python
64 lines
3.0 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.9.12 on 2017-02-17 08:20
|
|
from __future__ import unicode_literals
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import jsonfield.fields
|
|
import utils.models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('contest', '0003_auto_20170217_0820'),
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
('problem', '0002_problem__id'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='ContestProblem',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('title', models.CharField(max_length=128)),
|
|
('description', utils.models.RichTextField()),
|
|
('input_description', utils.models.RichTextField()),
|
|
('output_description', utils.models.RichTextField()),
|
|
('samples', jsonfield.fields.JSONField()),
|
|
('test_case_id', models.CharField(max_length=32)),
|
|
('test_case_score', jsonfield.fields.JSONField()),
|
|
('hint', utils.models.RichTextField(blank=True, null=True)),
|
|
('languages', jsonfield.fields.JSONField()),
|
|
('template', jsonfield.fields.JSONField()),
|
|
('create_time', models.DateTimeField(auto_now_add=True)),
|
|
('last_update_time', models.DateTimeField(blank=True, null=True)),
|
|
('time_limit', models.IntegerField()),
|
|
('memory_limit', models.IntegerField()),
|
|
('spj', models.BooleanField(default=False)),
|
|
('spj_language', models.CharField(blank=True, max_length=32, null=True)),
|
|
('spj_code', models.TextField(blank=True, null=True)),
|
|
('spj_version', models.CharField(blank=True, max_length=32, null=True)),
|
|
('rule_type', models.CharField(max_length=32)),
|
|
('visible', models.BooleanField(default=True)),
|
|
('difficulty', models.CharField(max_length=32)),
|
|
('source', models.CharField(blank=True, max_length=200, null=True)),
|
|
('total_submit_number', models.IntegerField(default=0)),
|
|
('total_accepted_number', models.IntegerField(default=0)),
|
|
('_id', models.CharField(db_index=True, max_length=24)),
|
|
('is_public', models.BooleanField(default=False)),
|
|
('contest', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contest.Contest')),
|
|
('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
('tags', models.ManyToManyField(to='problem.ProblemTag')),
|
|
],
|
|
options={
|
|
'db_table': 'contest_problem',
|
|
},
|
|
),
|
|
migrations.AlterUniqueTogether(
|
|
name='contestproblem',
|
|
unique_together=set([('_id', 'contest')]),
|
|
),
|
|
]
|