1# Generated by Plain 5.0.dev20231223023818 on 2023-12-23 03:30
2
3import uuid
4
5from plain import models
6from plain.models import migrations
7
8
9class Migration(migrations.Migration):
10 initial = True
11
12 dependencies = []
13
14 operations = [
15 migrations.CreateModel(
16 name="JobRequest",
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 ("job_class", models.CharField(db_index=True, max_length=255)),
30 ("parameters", models.JSONField(blank=True, null=True)),
31 ("priority", models.IntegerField(db_index=True, default=0)),
32 ("created_at", models.DateTimeField(auto_now_add=True)),
33 ("updated_at", models.DateTimeField(auto_now=True)),
34 (
35 "started_at",
36 models.DateTimeField(blank=True, db_index=True, null=True),
37 ),
38 (
39 "completed_at",
40 models.DateTimeField(blank=True, db_index=True, null=True),
41 ),
42 ("error", models.TextField(blank=True)),
43 ],
44 options={
45 "ordering": ["priority", "-created_at"],
46 },
47 ),
48 ]