mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-28 16:12:13 +00:00
75 lines
2.9 KiB
Python
75 lines
2.9 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.9.12 on 2017-01-23 07:59
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='JudgeServer',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('hostname', models.CharField(max_length=64)),
|
|
('ip', models.CharField(blank=True, max_length=32, null=True)),
|
|
('judger_version', models.CharField(max_length=24)),
|
|
('cpu_core', models.IntegerField()),
|
|
('memory_usage', models.FloatField()),
|
|
('cpu_usage', models.FloatField()),
|
|
('last_heartbeat', models.DateTimeField()),
|
|
('create_time', models.DateTimeField(auto_now_add=True)),
|
|
('task_number', models.IntegerField(default=0)),
|
|
('service_url', models.CharField(blank=True, max_length=128, null=True)),
|
|
],
|
|
options={
|
|
'db_table': 'judge_server',
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='JudgeServerToken',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('token', models.CharField(max_length=32)),
|
|
],
|
|
options={
|
|
'db_table': 'judge_server_token',
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='SMTPConfig',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('server', models.CharField(max_length=128)),
|
|
('port', models.IntegerField(default=25)),
|
|
('email', models.CharField(max_length=128)),
|
|
('password', models.CharField(max_length=128)),
|
|
('tls', models.BooleanField()),
|
|
],
|
|
options={
|
|
'db_table': 'smtp_config',
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='WebsiteConfig',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('base_url', models.CharField(default='http://127.0.0.1', max_length=128)),
|
|
('name', models.CharField(default='Online Judge', max_length=32)),
|
|
('name_shortcut', models.CharField(default='oj', max_length=32)),
|
|
('footer', models.TextField(default='Online Judge Footer')),
|
|
('allow_register', models.BooleanField(default=True)),
|
|
('submission_list_show_all', models.BooleanField(default=True)),
|
|
],
|
|
options={
|
|
'db_table': 'website_config',
|
|
},
|
|
),
|
|
]
|