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.

38 lines
1.5 KiB

  1. # Generated by Django 2.1.5 on 2019-01-12 14:26
  2. from django.conf import settings
  3. from django.db import migrations, models
  4. import django.db.models.deletion
  5. import uuid
  6. class Migration(migrations.Migration):
  7. dependencies = [
  8. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  9. ('accounts', '0016_remove_profile_bill_to'),
  10. ]
  11. operations = [
  12. migrations.CreateModel(
  13. name='Project',
  14. fields=[
  15. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  16. ('code', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),
  17. ('name', models.CharField(blank=True, max_length=200)),
  18. ('api_key', models.CharField(blank=True, max_length=128)),
  19. ('api_key_readonly', models.CharField(blank=True, max_length=128)),
  20. ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
  21. ],
  22. ),
  23. migrations.AddField(
  24. model_name='member',
  25. name='project',
  26. field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='accounts.Project'),
  27. ),
  28. migrations.AddField(
  29. model_name='profile',
  30. name='current_project',
  31. field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='accounts.Project'),
  32. ),
  33. ]