text: # Generated by Django 2.2.4 on 2019-08-21 17:02
  
  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),
          ('circles', '0003_auto_20190820_1818'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Invitation',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('created', models.DateTimeField(auto_now_add=True, help_text='Date time on which the object was created.', verbose_name='created_at')),
                  ('modified', models.DateTimeField(auto_now=True, help_text='Date time on which the object was last modified.', verbose_name='modified_at')),
                  ('code', models.CharField(max_length=50, unique=True)),
                  ('used', models.BooleanField(default=True)),
                  ('used_at', models.DateTimeField(blank=True, null=True)),
                  ('circle', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='circles.Circle')),
                  ('issued_by', models.ForeignKey(help_text='Circle member that is provinding the invitation', on_delete=django.db.models.deletion.CASCADE, related_name='issued_by', to=settings.AUTH_USER_MODEL)),
                  ('used_by', models.ForeignKey(help_text='User that used the code to enter the circle', null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'ordering': ['-created', '-modified'],
                  'get_latest_by': 'created',
                  'abstract': False,
              },
          ),
      ]
  