0001_initial.py 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. # Generated by Django 3.0.3 on 2020-02-28 17:52
  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. ('organizations_ext', '0001_initial'),
  10. ('projects', '0001_initial'),
  11. ]
  12. operations = [
  13. migrations.CreateModel(
  14. name='Team',
  15. fields=[
  16. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  17. ('created', models.DateTimeField(auto_now_add=True, db_index=True)),
  18. ('slug', models.SlugField()),
  19. ('members', models.ManyToManyField(to=settings.AUTH_USER_MODEL)),
  20. ('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='teams', to='organizations_ext.Organization')),
  21. ('projects', models.ManyToManyField(to='projects.Project')),
  22. ],
  23. options={
  24. 'unique_together': {('slug', 'organization')},
  25. },
  26. ),
  27. ]