summaryrefslogtreecommitdiffstats
path: root/miniq/migrations
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-05 22:49:25 -0600
committerAndrew Godwin2022-11-05 22:49:25 -0600
commita2404e01cdbeef2ba332e147a5f2f1ca0a0310d7 (patch)
tree9aa1ae2ffad20a7afe8eac8cbe99ab9a53dcc0ca /miniq/migrations
parent56de2362a01089c8a5ca3c6e1affcade00ffdfce (diff)
downloadtakahe-a2404e01cdbeef2ba332e147a5f2f1ca0a0310d7.tar.gz
takahe-a2404e01cdbeef2ba332e147a5f2f1ca0a0310d7.tar.bz2
takahe-a2404e01cdbeef2ba332e147a5f2f1ca0a0310d7.zip
Queuing system and lazy profile fetch
Diffstat (limited to 'miniq/migrations')
-rw-r--r--miniq/migrations/0001_initial.py37
-rw-r--r--miniq/migrations/__init__.py0
2 files changed, 37 insertions, 0 deletions
diff --git a/miniq/migrations/0001_initial.py b/miniq/migrations/0001_initial.py
new file mode 100644
index 0000000..6775ff3
--- /dev/null
+++ b/miniq/migrations/0001_initial.py
@@ -0,0 +1,37 @@
+# Generated by Django 4.1.3 on 2022-11-06 03:59
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = []
+
+ operations = [
+ migrations.CreateModel(
+ name="Task",
+ fields=[
+ (
+ "id",
+ models.BigAutoField(
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ verbose_name="ID",
+ ),
+ ),
+ ("type", models.CharField(max_length=500)),
+ ("priority", models.IntegerField(default=0)),
+ ("subject", models.TextField()),
+ ("payload", models.JSONField(blank=True, null=True)),
+ ("error", models.TextField(blank=True, null=True)),
+ ("created", models.DateTimeField(auto_now_add=True)),
+ ("completed", models.DateTimeField(blank=True, null=True)),
+ ("failed", models.DateTimeField(blank=True, null=True)),
+ ("locked", models.DateTimeField(blank=True, null=True)),
+ ("locked_by", models.CharField(blank=True, max_length=500, null=True)),
+ ],
+ ),
+ ]
diff --git a/miniq/migrations/__init__.py b/miniq/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/miniq/migrations/__init__.py