0002_organizationinvitation.py 1.5 KB

123456789101112131415161718192021222324252627282930
  1. # Generated by Django 3.2.7 on 2021-09-29 15:06
  2. from django.conf import settings
  3. from django.db import migrations, models
  4. import django.db.models.deletion
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  8. ('organizations_ext', '0001_squashed_0009_organization_scrub_ip_addresses'),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name='OrganizationInvitation',
  13. fields=[
  14. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  15. ('guid', models.UUIDField(editable=False)),
  16. ('invitee_identifier', models.CharField(help_text='The contact identifier for the invitee, email, phone number, social media handle, etc.', max_length=1000)),
  17. ('invited_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='organizations_ext_organizationinvitation_sent_invitations', to=settings.AUTH_USER_MODEL)),
  18. ('invitee', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='organizations_ext_organizationinvitation_invitations', to=settings.AUTH_USER_MODEL)),
  19. ('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='organization_invites', to='organizations_ext.organization')),
  20. ],
  21. options={
  22. 'abstract': False,
  23. },
  24. ),
  25. ]