# Generated by Django 3.1.14 on 2022-12-12 14:39

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import localcosmos_server.models


class Migration(migrations.Migration):

    dependencies = [
        ('contenttypes', '0002_remove_content_type_name'),
        ('localcosmos_server', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='ServerImageStore',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('taxon_latname', models.CharField(max_length=255, null=True)),
                ('taxon_author', models.CharField(max_length=255, null=True)),
                ('taxon_source', models.CharField(max_length=255, null=True)),
                ('taxon_include_descendants', models.BooleanField(default=False)),
                ('taxon_nuid', models.CharField(max_length=255, null=True)),
                ('name_uuid', models.UUIDField(null=True)),
                ('md5', models.CharField(max_length=255)),
                ('source_image', models.ImageField(upload_to=localcosmos_server.models.get_image_store_path)),
                ('uploaded_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='ServerContentImage',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('crop_parameters', models.TextField(null=True)),
                ('features', models.JSONField(null=True)),
                ('object_id', models.IntegerField()),
                ('image_type', models.CharField(default='image', max_length=100)),
                ('position', models.IntegerField(default=0)),
                ('is_primary', models.BooleanField(default=False)),
                ('text', models.CharField(max_length=355, null=True)),
                ('requires_translation', models.BooleanField(default=False)),
                ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype')),
                ('image_store', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='localcosmos_server.serverimagestore')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
