# -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-08-28 04:12
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('users', '0001_initial'),
        ('activities', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Submit',
            fields=[
                ('submit_id', models.AutoField(primary_key=True, serialize=False)),
                ('code_desc', models.TextField(max_length=4096)),
                ('praise_count', models.IntegerField(default=0)),
                ('browse_times', models.IntegerField(default=0)),
                ('activity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='activities.Activity')),
                ('activity_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='activity_user', to='users.ActivityUser')),
                ('programming_language', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='users.ProgrammingLanguage')),
                ('submit_reviewer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='submit_reviewer', to='users.ActivityUser')),
            ],
        ),
        migrations.CreateModel(
            name='SubmitFile',
            fields=[
                ('submit_file_id', models.AutoField(primary_key=True, serialize=False)),
                ('file_path', models.CharField(max_length=256)),
                ('file_name', models.CharField(default='', max_length=128)),
                ('submit', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='submit.Submit')),
            ],
        ),
        migrations.CreateModel(
            name='SubmitFileType',
            fields=[
                ('submit_file_type_id', models.AutoField(primary_key=True, serialize=False)),
                ('submit_file_type_name', models.CharField(max_length=64)),
            ],
        ),
        migrations.CreateModel(
            name='SubmitReviewPlan',
            fields=[
                ('submit_review_plan_id', models.AutoField(primary_key=True, serialize=False)),
                ('plan_item_start', models.DateTimeField(verbose_name='Start time')),
                ('plan_item_end', models.DateTimeField(verbose_name='End time')),
                ('submit', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='submit.Submit')),
            ],
        ),
        migrations.AddField(
            model_name='submitfile',
            name='submit_file_type',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='submit.SubmitFileType'),
        ),
    ]
