# -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-29 19:54
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import django_remote_submission.models
import model_utils.fields


class Migration(migrations.Migration):

    dependencies = [
        ('django_remote_submission', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Result',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('remote_filename', models.TextField(help_text='The filename on the remote server for this result, relative to the remote directory of the job', max_length=250, verbose_name='Remote Filename')),
                ('local_filename', models.FileField(help_text='The filename on the local server for this result', max_length=250, upload_to=django_remote_submission.models.job_result_path, verbose_name='Local Filename')),
                ('job', models.ForeignKey(help_text='The job this result came from', on_delete=django.db.models.deletion.CASCADE, related_name='results', to='django_remote_submission.Job', verbose_name='Result Job')),
            ],
            options={
                'verbose_name_plural': 'results',
                'verbose_name': 'result',
            },
        ),
    ]
