summaryrefslogtreecommitdiff
path: root/app/gtd/migrations/0001_initial.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-11-15 17:08:29 -0500
committerluxagraf <sng@luxagraf.net>2023-11-15 17:08:29 -0500
commit5d26ed7dbba5475a93b70c450741b358153b0855 (patch)
tree8c9dcdb2bb1735e787cb0753215898b17e92f062 /app/gtd/migrations/0001_initial.py
parent9f1c7ef8a47ee1a2df40ce1f57df105af8b99cc1 (diff)
gtd: rolled in wired stuff plus created my own gtd app
Diffstat (limited to 'app/gtd/migrations/0001_initial.py')
-rw-r--r--app/gtd/migrations/0001_initial.py71
1 files changed, 71 insertions, 0 deletions
diff --git a/app/gtd/migrations/0001_initial.py b/app/gtd/migrations/0001_initial.py
new file mode 100644
index 0000000..9df3dc9
--- /dev/null
+++ b/app/gtd/migrations/0001_initial.py
@@ -0,0 +1,71 @@
+# Generated by Django 4.2.7 on 2023-11-14 09:18
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('media', '0008_auto_20201202_1155'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='GTDOutcome',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('title', models.CharField(max_length=300)),
+ ('slug', models.SlugField()),
+ ('body_markdown', models.TextField()),
+ ('body_html', models.TextField(blank=True)),
+ ('date_goal', models.DateField()),
+ ('date_ended', models.DateField()),
+ ('featured_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='media.luximage')),
+ ],
+ options={
+ 'ordering': ('-date_goal',),
+ },
+ ),
+ migrations.CreateModel(
+ name='GTDProject',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('title', models.CharField(max_length=200)),
+ ('short_title', models.CharField(blank=True, max_length=200, null=True)),
+ ('slug', models.SlugField()),
+ ('body_markdown', models.TextField(blank=True, null=True)),
+ ('body_html', models.TextField(blank=True)),
+ ('date_goal', models.DateField(blank=True, null=True)),
+ ('date_ended', models.DateField(blank=True, null=True)),
+ ('project_type', models.IntegerField(choices=[(0, 'wired'), (1, 'lbh'), (2, 'personal')], default=0)),
+ ('outcome', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='gtd.gtdoutcome')),
+ ],
+ options={
+ 'ordering': ('-date_goal',),
+ 'get_latest_by': 'date_goal',
+ },
+ ),
+ migrations.CreateModel(
+ name='GTDNote',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('title', models.CharField(max_length=200)),
+ ('slug', models.SlugField()),
+ ('body_markdown', models.TextField()),
+ ('body_html', models.TextField(blank=True)),
+ ('date_completed', models.DateField()),
+ ('date_created', models.DateTimeField(auto_now=True)),
+ ('note_type', models.IntegerField(choices=[(0, 'action'), (1, 'reminder'), (2, 'reference')], default=0)),
+ ('reminder', models.BigIntegerField(help_text='In days')),
+ ('status', models.IntegerField(choices=[(0, 'None'), (1, 'Open'), (2, 'Completed')], default=0)),
+ ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='gtd.gtdproject')),
+ ],
+ options={
+ 'ordering': ('-date_created',),
+ 'get_latest_by': 'date_created',
+ },
+ ),
+ ]