# Generated by Django 3.0.4 on 2020-04-28 05:26

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('app', '0013_auto_20200427_1702'),
    ]

    operations = [
        migrations.CreateModel(
            name='Comentario',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('texto', models.TextField(max_length=2000)),
                ('fechaHora', models.DateTimeField(auto_now_add=True)),
                ('activo', models.BooleanField(null=True)),
                ('pelicula', models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='comentarios', to='app.Pelicula')),
                ('usuario', models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='comentarios', to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
