# Generated by Django 2.2.13 on 2020-12-01 09:35

import datagrowth.configuration.fields
from django.db import migrations, models
import django.db.models.deletion
import json_field.fields


class Migration(migrations.Migration):

    dependencies = [
        ('contenttypes', '0002_remove_content_type_name'),
        ('core', '0002_harvest_resources'),
    ]

    operations = [
        migrations.AlterField(
            model_name='oaipmhharvest',
            name='stage',
            field=models.CharField(choices=[('Basic', 'Basic'), ('Complete', 'Complete'), ('New', 'New'), ('Preview', 'Preview'), ('Video', 'Video')], default='New', max_length=50),
        ),
        migrations.CreateModel(
            name='ChromeScreenshotResource',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('uri', models.CharField(db_index=True, default=None, max_length=255)),
                ('status', models.PositiveIntegerField(default=0)),
                ('config', datagrowth.configuration.fields.ConfigurationField()),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('modified_at', models.DateTimeField(auto_now=True)),
                ('purge_at', models.DateTimeField(blank=True, null=True)),
                ('retainer_id', models.PositiveIntegerField(blank=True, null=True)),
                ('command', json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object')),
                ('stdin', models.TextField(blank=True, default=None, null=True)),
                ('stdout', models.TextField(blank=True, default=None, null=True)),
                ('stderr', models.TextField(blank=True, default=None, null=True)),
                ('retainer_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
