# Generated by Django 3.1 on 2020-08-27 12:17

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('contenttypes', '0002_remove_content_type_name'),
    ]

    operations = [
        migrations.CreateModel(
            name='ContentLicenceRegistry',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('object_id', models.IntegerField()),
                ('model_field', models.CharField(max_length=255)),
                ('uploaded_at', models.DateTimeField(auto_now_add=True)),
                ('last_modified_at', models.DateTimeField(auto_now=True)),
                ('licence', models.CharField(choices=[('All Rights Reserved', 'All Rights Reserved'), ('PDM', 'Public Domain Mark'), ('CC0', 'Public Domain Dedication'), ('CC BY', 'Creative Commons Attribution'), ('CC BY-SA', 'Creative Commons Attribution-ShareAlike'), ('CC BY-ND', 'Creative Commons Attribution-NoDerivs'), ('CC BY-NC', 'Creative Commons Attribution-NonCommercial'), ('CC BY-NC-SA', 'Creative Commons Attribution-NonCommercial-ShareAlike'), ('CC BY-NC-ND', 'Creative Commons Attribution-NonCommercial-NoDerivs')], default={'short_name': 'CC0', 'version': '1.0'}, max_length=100)),
                ('licence_version', models.CharField(max_length=10)),
                ('creator_name', models.CharField(max_length=355)),
                ('creator_link', models.CharField(blank=True, max_length=355, null=True)),
                ('source_link', models.TextField(blank=True, null=True)),
                ('language', models.CharField(max_length=15, null=True)),
                ('sha256', models.CharField(max_length=355)),
                ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype')),
                ('contributors', models.ManyToManyField(related_name='contributors', to=settings.AUTH_USER_MODEL)),
                ('uploader', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'unique_together': {('content_type', 'object_id', 'model_field', 'language')},
            },
        ),
    ]
