# Generated by Django 3.1.7 on 2021-06-09 06:35

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Genre',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
            ],
        ),
        migrations.CreateModel(
            name='Movie',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=400)),
                ('description', models.TextField()),
                ('created', models.DateField()),
                ('rated', models.CharField(choices=[('5', '5 Star'), ('4', '4 Star'), ('3', '3 Star'), ('2', '2 Star'), ('1', '1 Star')], max_length=1)),
                ('duration', models.CharField(max_length=10)),
                ('actors', models.CharField(max_length=40)),
                ('country', models.CharField(max_length=100)),
                ('type_movie', models.CharField(choices=[('series', 'Series'), ('movie', 'Movie'), ('episode', 'Episode')], max_length=15)),
                ('poster', models.ImageField(upload_to='')),
                ('director', models.CharField(max_length=200)),
                ('language', models.CharField(max_length=30)),
                ('genre', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.genre')),
            ],
        ),
    ]
