# Generated by Django 3.2.4 on 2021-07-27 08:23

from django.db import migrations, models
import django.db.models.deletion
import uuid
from wikiazma.storage_helper import public_storage


class Migration(migrations.Migration):

    dependencies = [
        ('authenticate', '0007_auto_20210613_1512'),
        ('institute', '0004_remove_institute_unique_name'),
    ]

    operations = [
        migrations.CreateModel(
            name='InstituteStudent',
            fields=[
                ('id', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
                ('referer_identity', models.CharField(db_index=True, max_length=100)),
                ('first_name', models.CharField(blank=True, db_index=True, max_length=46, null=True)),
                ('last_name', models.CharField(blank=True, db_index=True, max_length=46, null=True)),
                ('email', models.CharField(blank=True, db_index=True, max_length=254, null=True)),
                ('phone', models.CharField(blank=True, db_index=True, max_length=20, null=True)),
                ('image', models.ImageField(blank=True, null=True, storage=public_storage, upload_to='institute_student/image')),
                ('image_thumbnail', models.ImageField(blank=True, null=True, storage=public_storage, upload_to='institute_student/image_thumbnail')),
                ('info', models.JSONField(blank=True, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
                ('modified_at', models.DateTimeField(auto_now=True, db_index=True)),
                ('institute', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='institute.institute')),
                ('wikiazma_account', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='authenticate.user')),
            ],
            options={
                'unique_together': {('institute', 'referer_identity')},
            },
        ),
    ]
