36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
# Generated for V1 demo business records.
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("audit", "0001_initial"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="DemoBusinessRecord",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("scenario_id", models.CharField(db_index=True, max_length=100)),
|
|
("record_type", models.CharField(db_index=True, max_length=100)),
|
|
("title", models.CharField(max_length=255)),
|
|
("payload", models.JSONField(blank=True, default=dict)),
|
|
("created_at", models.DateTimeField(auto_now_add=True)),
|
|
],
|
|
options={
|
|
"ordering": ["-created_at"],
|
|
},
|
|
),
|
|
]
|