0011_transactioneventprojecthourlystatistic.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Generated by Django 4.1.4 on 2023-01-03 20:21
  2. import django.db.models.deletion
  3. from django.db import migrations, models
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ("projects", "0010_eventprojecthourlystatistic"),
  7. ]
  8. operations = [
  9. migrations.CreateModel(
  10. name="TransactionEventProjectHourlyStatistic",
  11. fields=[
  12. (
  13. "id",
  14. models.BigAutoField(
  15. auto_created=True,
  16. primary_key=True,
  17. serialize=False,
  18. verbose_name="ID",
  19. ),
  20. ),
  21. ("date", models.DateTimeField()),
  22. ("count", models.PositiveIntegerField()),
  23. (
  24. "project",
  25. models.ForeignKey(
  26. on_delete=django.db.models.deletion.CASCADE,
  27. to="projects.project",
  28. ),
  29. ),
  30. ],
  31. options={
  32. "abstract": False,
  33. "unique_together": {("project", "date")},
  34. },
  35. ),
  36. ]