0001_initial.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Generated by Django 3.1.4 on 2020-12-31 16:45
  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. ("events", "0001_squashed_0003_auto_20210116_2110"),
  12. ]
  13. operations = [
  14. migrations.CreateModel(
  15. name="TransactionEvent",
  16. fields=[
  17. (
  18. "event_ptr",
  19. models.OneToOneField(
  20. auto_created=True,
  21. on_delete=django.db.models.deletion.CASCADE,
  22. parent_link=True,
  23. primary_key=True,
  24. serialize=False,
  25. to="events.event",
  26. ),
  27. ),
  28. ("transaction", models.CharField(max_length=1024)),
  29. ("start_timestamp", models.DateTimeField()),
  30. (
  31. "project",
  32. models.ForeignKey(
  33. on_delete=django.db.models.deletion.CASCADE,
  34. to="projects.project",
  35. ),
  36. ),
  37. ],
  38. bases=("events.event",),
  39. ),
  40. ]