summaryrefslogtreecommitdiff
path: root/app/budget/migrations/0001_initial.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2022-11-11 16:57:21 -0600
committerluxagraf <sng@luxagraf.net>2022-11-11 16:57:21 -0600
commit2db52b9aecda64220777983a5a4ce26b9eb237f6 (patch)
tree25c091d2dbb3f7312c05c53f9a4193a8e43e849b /app/budget/migrations/0001_initial.py
parentbe0cc14d112afc136e54806d7105ded0a7c3f15a (diff)
bdgt: added simple spending tracker
Diffstat (limited to 'app/budget/migrations/0001_initial.py')
-rw-r--r--app/budget/migrations/0001_initial.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/app/budget/migrations/0001_initial.py b/app/budget/migrations/0001_initial.py
new file mode 100644
index 0000000..30bd5a1
--- /dev/null
+++ b/app/budget/migrations/0001_initial.py
@@ -0,0 +1,36 @@
+# Generated by Django 4.0.6 on 2022-11-11 17:50
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='LuxSource',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('name', models.CharField(max_length=200)),
+ ('date_recorded', models.DateTimeField(auto_now_add=True)),
+ ],
+ ),
+ migrations.CreateModel(
+ name='LuxPurchase',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('amount', models.IntegerField()),
+ ('category', models.IntegerField(choices=[(0, 'Grocery and Home'), (1, 'Gas'), (2, 'Bus'), (3, 'Lodging'), (4, 'Books'), (5, 'Clothes'), (6, 'Eating Out'), (7, 'Misc')], default=0)),
+ ('date_recorded', models.DateTimeField(auto_now_add=True)),
+ ('source', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='budget.luxsource')),
+ ],
+ options={
+ 'ordering': ('-date_recorded',),
+ },
+ ),
+ ]