0001_initial.py 1.3 KB

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