2019-03-03 09:08:20 +00:00
|
|
|
# Generated by Django 2.1.7 on 2019-03-03 09:06
|
2019-01-23 01:03:07 +00:00
|
|
|
|
2019-03-03 08:59:44 +00:00
|
|
|
import datetime
|
2019-01-23 01:03:07 +00:00
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Field',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2019-03-03 08:59:44 +00:00
|
|
|
('field_name', models.CharField(default='field', max_length=512)),
|
2019-02-01 00:55:11 +00:00
|
|
|
('label', models.CharField(max_length=512)),
|
2019-03-03 08:59:44 +00:00
|
|
|
('number', models.IntegerField(default=0)),
|
|
|
|
('field_type', models.CharField(max_length=128)),
|
2019-01-23 01:03:07 +00:00
|
|
|
('completed', models.BooleanField(default=False)),
|
2019-02-01 00:55:11 +00:00
|
|
|
('data_bool', models.BooleanField(default=False)),
|
2019-03-03 08:59:44 +00:00
|
|
|
('data_decimal', models.DecimalField(decimal_places=2, default=0, max_digits=9)),
|
2019-02-01 00:55:11 +00:00
|
|
|
('data_date', models.DateField(blank=True, null=True)),
|
|
|
|
('data_file', models.FileField(blank=True, max_length=512, null=True, upload_to='uploads/%Y/%m/%d/')),
|
2019-03-03 08:59:44 +00:00
|
|
|
('data_string', models.TextField(blank=True, default='')),
|
|
|
|
('data_integer', models.IntegerField(blank=True, default=0)),
|
2019-01-23 01:03:07 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Report',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('title', models.CharField(max_length=128)),
|
2019-03-03 08:59:44 +00:00
|
|
|
('date_created', models.DateTimeField(default=datetime.date.today, verbose_name='date created')),
|
|
|
|
('date_submitted', models.DateTimeField(default=datetime.date.today, verbose_name='date submitted')),
|
2019-01-23 01:03:07 +00:00
|
|
|
('submitted', models.BooleanField(default=False)),
|
2019-03-03 08:59:44 +00:00
|
|
|
('reference_number', models.CharField(default='', max_length=32)),
|
2019-01-23 01:03:07 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Section',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2019-03-03 08:59:44 +00:00
|
|
|
('auto_submit', models.BooleanField(default=False)),
|
|
|
|
('required', models.BooleanField(default=False)),
|
|
|
|
('completed', models.BooleanField(default=False)),
|
2019-01-23 01:03:07 +00:00
|
|
|
('title', models.CharField(max_length=256)),
|
|
|
|
('html_description', models.TextField()),
|
|
|
|
('number', models.IntegerField()),
|
2019-03-03 08:59:44 +00:00
|
|
|
('approved', models.BooleanField(default=False)),
|
2019-01-23 01:03:07 +00:00
|
|
|
('report_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='backend.Report')),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|