0001_initial.py 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. (
  8. "projects",
  9. "0001_squashed_0009_alter_project_id_alter_projectcounter_id_and_more",
  10. ),
  11. ("issues", "0001_squashed_0010_auto_20210117_1543"),
  12. ]
  13. operations = [
  14. migrations.CreateModel(
  15. name="ProjectAlert",
  16. fields=[
  17. (
  18. "id",
  19. models.AutoField(
  20. auto_created=True,
  21. primary_key=True,
  22. serialize=False,
  23. verbose_name="ID",
  24. ),
  25. ),
  26. (
  27. "timespan_minutes",
  28. models.PositiveSmallIntegerField(blank=True, null=True),
  29. ),
  30. ("quantity", models.PositiveSmallIntegerField(blank=True, null=True)),
  31. ("created", models.DateTimeField(auto_now_add=True)),
  32. (
  33. "project",
  34. models.ForeignKey(
  35. on_delete=django.db.models.deletion.CASCADE,
  36. to="projects.Project",
  37. ),
  38. ),
  39. ],
  40. ),
  41. migrations.CreateModel(
  42. name="Notification",
  43. fields=[
  44. (
  45. "id",
  46. models.AutoField(
  47. auto_created=True,
  48. primary_key=True,
  49. serialize=False,
  50. verbose_name="ID",
  51. ),
  52. ),
  53. ("created", models.DateField(auto_now_add=True)),
  54. ("is_sent", models.BooleanField(default=False)),
  55. ("issues", models.ManyToManyField(to="issues.Issue")),
  56. (
  57. "project",
  58. models.ForeignKey(
  59. on_delete=django.db.models.deletion.CASCADE,
  60. to="projects.Project",
  61. ),
  62. ),
  63. ],
  64. ),
  65. ]