Plain is headed towards 1.0! Subscribe for development updates →

 1# Generated by Plain 5.0.dev20231226225312 on 2023-12-28 19:18
 2
 3import uuid
 4
 5from plain import models
 6from plain.models import migrations
 7
 8
 9class Migration(migrations.Migration):
10    dependencies = [
11        ("plainworker", "0001_initial"),
12    ]
13
14    operations = [
15        migrations.CreateModel(
16            name="JobResult",
17            fields=[
18                (
19                    "id",
20                    models.BigAutoField(
21                        auto_created=True,
22                        primary_key=True,
23                    ),
24                ),
25                (
26                    "uuid",
27                    models.UUIDField(default=uuid.uuid4, editable=False, unique=True),
28                ),
29                ("created_at", models.DateTimeField(auto_now_add=True)),
30                ("updated_at", models.DateTimeField(auto_now=True)),
31                (
32                    "started_at",
33                    models.DateTimeField(blank=True, db_index=True, null=True),
34                ),
35                (
36                    "completed_at",
37                    models.DateTimeField(blank=True, db_index=True, null=True),
38                ),
39                ("error", models.TextField(blank=True)),
40                ("job_request_uuid", models.UUIDField(db_index=True)),
41                ("job_class", models.CharField(db_index=True, max_length=255)),
42                ("parameters", models.JSONField(blank=True, null=True)),
43                ("priority", models.IntegerField(db_index=True, default=0)),
44            ],
45            options={
46                "ordering": ["created_at"],
47            },
48        ),
49        migrations.RemoveField(
50            model_name="jobrequest",
51            name="completed_at",
52        ),
53        migrations.RemoveField(
54            model_name="jobrequest",
55            name="error",
56        ),
57        migrations.RemoveField(
58            model_name="jobrequest",
59            name="started_at",
60        ),
61        migrations.RemoveField(
62            model_name="jobrequest",
63            name="updated_at",
64        ),
65    ]