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
|
# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-08 14:17
from __future__ import unicode_literals
import logging
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='BankAccount',
fields=[
('is_public', models.BooleanField(default=False)),
('balance', models.FloatField(default=0)),
('currency', models.CharField(default='', max_length=12)),
('account_no', models.AutoField(primary_key=True, serialize=False)),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='History',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('amount', models.FloatField(default=0)),
('currency', models.CharField(max_length=12)),
('direction', models.CharField(max_length=4)),
('counterpart', models.CharField(default='unknown', max_length=200)),
('subject', models.CharField(default='not given', max_length=200)),
('date', models.DateField(auto_now=True)),
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.BankAccount')),
],
),
]
|