0001_initial.py 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # Generated by Django 3.0.3 on 2020-04-17 20:38
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. initial = True
  6. dependencies = [
  7. ("projects", "0001_initial"),
  8. ("issues", "0001_squashed_0010_auto_20210117_1543"),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name="ProjectAlert",
  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. (
  24. "timespan_minutes",
  25. models.PositiveSmallIntegerField(blank=True, null=True),
  26. ),
  27. ("quantity", models.PositiveSmallIntegerField(blank=True, null=True)),
  28. ("created", models.DateTimeField(auto_now_add=True)),
  29. (
  30. "project",
  31. models.ForeignKey(
  32. on_delete=django.db.models.deletion.CASCADE,
  33. to="projects.Project",
  34. ),
  35. ),
  36. ],
  37. ),
  38. migrations.CreateModel(
  39. name="Notification",
  40. fields=[
  41. (
  42. "id",
  43. models.AutoField(
  44. auto_created=True,
  45. primary_key=True,
  46. serialize=False,
  47. verbose_name="ID",
  48. ),
  49. ),
  50. ("created", models.DateField(auto_now_add=True)),
  51. ("is_sent", models.BooleanField(default=False)),
  52. ("issues", models.ManyToManyField(to="issues.Issue")),
  53. (
  54. "project",
  55. models.ForeignKey(
  56. on_delete=django.db.models.deletion.CASCADE,
  57. to="projects.Project",
  58. ),
  59. ),
  60. ],
  61. ),
  62. ]