You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.7 KiB

  1. # Generated by Django 3.2.8 on 2022-01-13 01:54
  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. initial = True
  7. dependencies = [
  8. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  9. ('roles', '0003_delete_member'),
  10. ('api', '0028_auto_20220111_0655'),
  11. ]
  12. operations = [
  13. migrations.SeparateDatabaseAndState(
  14. state_operations=[
  15. migrations.CreateModel(
  16. name='Member',
  17. fields=[
  18. ('id',
  19. models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  20. ('created_at', models.DateTimeField(auto_now_add=True)),
  21. ('updated_at', models.DateTimeField(auto_now=True)),
  22. ('project',
  23. models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='role_mappings',
  24. to='api.project')),
  25. ('role', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='roles.role')),
  26. ('user',
  27. models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='role_mappings',
  28. to=settings.AUTH_USER_MODEL)),
  29. ],
  30. options={
  31. 'unique_together': {('user', 'project')},
  32. },
  33. ),
  34. ],
  35. database_operations=[]
  36. )
  37. ]