1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- # Generated by Django 3.1.5 on 2021-01-24 17:54
- from django.db import migrations, models
- import django.db.models.deletion
- import uuid
- class Migration(migrations.Migration):
- initial = True
- dependencies = [
- (
- "projects",
- "0001_squashed_0009_alter_project_id_alter_projectcounter_id_and_more",
- ),
- ("performance", "0002_auto_20210124_1745"),
- ]
- operations = [
- migrations.CreateModel(
- name="TransactionEvent",
- fields=[
- (
- "event_id",
- models.UUIDField(
- default=uuid.uuid4,
- editable=False,
- primary_key=True,
- serialize=False,
- ),
- ),
- ("created", models.DateTimeField(auto_now_add=True, db_index=True)),
- (
- "data",
- models.JSONField(help_text="General event data that is searchable"),
- ),
- (
- "timestamp",
- models.DateTimeField(
- blank=True,
- help_text="Date created as claimed by client it came from",
- null=True,
- ),
- ),
- ("transaction", models.CharField(max_length=1024)),
- ("start_timestamp", models.DateTimeField()),
- (
- "project",
- models.ForeignKey(
- on_delete=django.db.models.deletion.CASCADE,
- to="projects.project",
- ),
- ),
- ],
- options={
- "ordering": ["-created"],
- },
- ),
- ]
|