0001_initial.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Generated by Django 3.0.8 on 2020-07-25 20:07
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. initial = True
  6. dependencies = [
  7. ("issues", "0001_squashed_0010_auto_20210117_1543"),
  8. ("projects", "0003_projectcounter"),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name="UserReport",
  13. fields=[
  14. (
  15. "id",
  16. models.AutoField(
  17. auto_created=True,
  18. primary_key=True,
  19. serialize=False,
  20. verbose_name="ID",
  21. ),
  22. ),
  23. ("event_id", models.UUIDField()),
  24. ("name", models.CharField(max_length=128)),
  25. ("email", models.EmailField(max_length=254)),
  26. ("comments", models.TextField()),
  27. ("created", models.DateTimeField(auto_now_add=True, db_index=True)),
  28. (
  29. "issue",
  30. models.ForeignKey(
  31. null=True,
  32. on_delete=django.db.models.deletion.CASCADE,
  33. to="issues.Issue",
  34. ),
  35. ),
  36. (
  37. "project",
  38. models.ForeignKey(
  39. on_delete=django.db.models.deletion.CASCADE,
  40. to="projects.Project",
  41. ),
  42. ),
  43. ],
  44. options={"unique_together": {("project", "event_id")},},
  45. ),
  46. ]