text: # Generated by Django 3.2.7 on 2021-10-15 19:42
  
  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='Topic',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=200)),
              ],
          ),
          migrations.CreateModel(
              name='Room',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=200)),
                  ('description', models.TextField(blank=True, null=True)),
                  ('updated', models.DateTimeField(auto_now=True)),
                  ('created', models.DateTimeField(auto_now_add=True)),
                  ('host', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
                  ('participants', models.ManyToManyField(blank=True, related_name='participants', to=settings.AUTH_USER_MODEL)),
                  ('topic', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='room.topic')),
              ],
              options={
                  'ordering': ['-updated', '-created'],
              },
          ),
          migrations.CreateModel(
              name='Message',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('body', models.TextField()),
                  ('updated', models.DateTimeField(auto_now=True)),
                  ('created', models.DateTimeField(auto_now_add=True)),
                  ('room', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='room.room')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'ordering': ['-updated', '-created'],
              },
          ),
      ]
  