summaryrefslogtreecommitdiff
path: root/app/gtd/migrations/0001_initial.py
blob: 9df3dc9e4f110b921f6faefcaf85fa78ded01eb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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',
            },
        ),
    ]