text: # Generated by Django 3.0.1 on 2020-01-02 00:07
  
  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),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Room',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('kind', models.IntegerField(choices=[(1, 'Private'), (2, 'Group')])),
                  ('participants', models.ManyToManyField(related_name='rooms', to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'verbose_name': 'Sala',
                  'verbose_name_plural': 'Salas',
              },
          ),
          migrations.CreateModel(
              name='Message',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('body', models.TextField(default='', max_length=500)),
                  ('timestamp', models.DateTimeField(auto_now_add=True)),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                  ('pending_reception', models.ManyToManyField(related_name='pending_messages', to=settings.AUTH_USER_MODEL)),
                  ('room', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='chat.Room')),
              ],
              options={
                  'verbose_name': 'Mensaje',
                  'verbose_name_plural': 'Mensajes',
              },
          ),
      ]
  