36 lines
1.4 KiB
Python
36 lines
1.4 KiB
Python
# 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')),
|
|
],
|
|
),
|
|
]
|