0001_initial.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. ("projects", "0007_auto_20201026_2354"),
  8. ("events", "0002_auto_20201229_1643"),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name="TransactionEvent",
  13. fields=[
  14. (
  15. "event_ptr",
  16. models.OneToOneField(
  17. auto_created=True,
  18. on_delete=django.db.models.deletion.CASCADE,
  19. parent_link=True,
  20. primary_key=True,
  21. serialize=False,
  22. to="events.event",
  23. ),
  24. ),
  25. ("transaction", models.CharField(max_length=1024)),
  26. ("start_timestamp", models.DateTimeField()),
  27. (
  28. "project",
  29. models.ForeignKey(
  30. on_delete=django.db.models.deletion.CASCADE,
  31. to="projects.project",
  32. ),
  33. ),
  34. ],
  35. bases=("events.event",),
  36. ),
  37. ]