Initial commit

This commit is contained in:
Senad Uka
2019-01-14 13:15:49 +01:00
commit a107668d4b
34 changed files with 8762 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
# Generated by Django 2.1.5 on 2019-01-13 13:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Account',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('question_text', models.CharField(max_length=200)),
('created_date', models.DateTimeField(verbose_name='date created')),
],
),
migrations.CreateModel(
name='AccountItem',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('collected', models.DecimalField(decimal_places=3, max_digits=10)),
('paid', models.DecimalField(decimal_places=3, max_digits=10)),
('description', models.CharField(blank=True, max_length=100)),
('when', models.DateTimeField(verbose_name='date and time created')),
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='items', to='dough.Account')),
('from_to', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, related_name='connected_items', to='dough.Account')),
],
),
]