From a2404e01cdbeef2ba332e147a5f2f1ca0a0310d7 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 5 Nov 2022 22:49:25 -0600 Subject: Queuing system and lazy profile fetch --- miniq/migrations/0001_initial.py | 37 +++++++++++++++++++++++++++++++++++++ miniq/migrations/__init__.py | 0 2 files changed, 37 insertions(+) create mode 100644 miniq/migrations/0001_initial.py create mode 100644 miniq/migrations/__init__.py (limited to 'miniq/migrations') 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 -- cgit v1.2.3