Home

mint @c25623e57de228678a62614be097d142b1df0055 - refs - log -
-
https://git.jolheiser.com/mint.git
Budget
mint / budget / migrations / 0001_initial.py
- raw -
 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
# Generated by Django 5.2.6 on 2025-09-15 01:38

from django.db import migrations, models


class Migration(migrations.Migration):
    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name="Transaction",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("title", models.CharField(max_length=100)),
                ("cents", models.BigIntegerField()),
                ("date", models.DateField()),
                (
                    "recurrence",
                    models.CharField(
                        choices=[("M", "Monthly"), ("W", "Weekly")],
                        db_comment="M (Monthly) | W (Weekly)",
                        max_length=1,
                    ),
                ),
                ("week", models.IntegerField()),
                ("is_income", models.BooleanField(default=False)),
            ],
        ),
    ]