123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- # Generated by Django 2.0.5 on 2018-05-09 09:35
- from django.db import migrations, models
- import django.db.models.deletion
- class Migration(migrations.Migration):
- initial = True
- dependencies = [
- ]
- operations = [
- migrations.CreateModel(
- name='Book',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(auto_now_add=True)),
- ('updated_at', models.DateTimeField(auto_now=True)),
- ('title', models.CharField(max_length=255)),
- ('scale', models.PositiveIntegerField()),
- ('position', models.PositiveIntegerField()),
- ('resume', models.TextField()),
- ('completed', models.BooleanField()),
- ('completed_at', models.DateTimeField()),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.CreateModel(
- name='BookStackRecord',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(auto_now_add=True)),
- ('updated_at', models.DateTimeField(auto_now=True)),
- ('position', models.PositiveIntegerField()),
- ('book', models.OneToOneField(null=True, on_delete=django.db.models.deletion.SET_NULL, to='storage.Book')),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.CreateModel(
- name='Course',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(auto_now_add=True)),
- ('updated_at', models.DateTimeField(auto_now=True)),
- ('title', models.CharField(max_length=255)),
- ('info', models.TextField(max_length=255)),
- ('reason', models.TextField()),
- ('link', models.URLField()),
- ('progress', models.PositiveIntegerField()),
- ('completed', models.BooleanField()),
- ('completed_at', models.DateTimeField()),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.CreateModel(
- name='CourseStackRecord',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(auto_now_add=True)),
- ('updated_at', models.DateTimeField(auto_now=True)),
- ('position', models.PositiveIntegerField()),
- ('course', models.OneToOneField(null=True, on_delete=django.db.models.deletion.SET_NULL, to='storage.Course')),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.CreateModel(
- name='Issue',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(auto_now_add=True)),
- ('updated_at', models.DateTimeField(auto_now=True)),
- ('title', models.CharField(blank=True, max_length=255, null=True)),
- ('description', models.TextField()),
- ('mitigation', models.TextField()),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.CreateModel(
- name='Material',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(auto_now_add=True)),
- ('updated_at', models.DateTimeField(auto_now=True)),
- ('title', models.CharField(max_length=255)),
- ('file', models.FileField(upload_to='')),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.CreateModel(
- name='Note',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(auto_now_add=True)),
- ('updated_at', models.DateTimeField(auto_now=True)),
- ('title', models.CharField(blank=True, max_length=255, null=True)),
- ('body', models.TextField()),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.CreateModel(
- name='PersonOfInterest',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(auto_now_add=True)),
- ('updated_at', models.DateTimeField(auto_now=True)),
- ('name', models.CharField(max_length=255)),
- ('notes', models.ManyToManyField(to='storage.Note')),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.CreateModel(
- name='Plan',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(auto_now_add=True)),
- ('updated_at', models.DateTimeField(auto_now=True)),
- ('title', models.CharField(max_length=255)),
- ('goal', models.CharField(max_length=255)),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.CreateModel(
- name='Project',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(auto_now_add=True)),
- ('updated_at', models.DateTimeField(auto_now=True)),
- ('title', models.CharField(max_length=255)),
- ('description', models.TextField()),
- ('reason', models.TextField()),
- ('plans', models.ManyToManyField(to='storage.Plan')),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.CreateModel(
- name='Task',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(auto_now_add=True)),
- ('updated_at', models.DateTimeField(auto_now=True)),
- ('title', models.CharField(max_length=255)),
- ('description', models.TextField()),
- ('due_date', models.DateTimeField()),
- ('priority', models.CharField(choices=[(0, 'Unprioritized'), (1, 'Hight'), (2, 'Medium'), (3, 'Low')], max_length=1)),
- ('completed', models.BooleanField()),
- ('completed_at', models.DateTimeField()),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.AddField(
- model_name='plan',
- name='tasks',
- field=models.ManyToManyField(to='storage.Task'),
- ),
- migrations.AddField(
- model_name='course',
- name='materials',
- field=models.ManyToManyField(to='storage.Material'),
- ),
- migrations.AddField(
- model_name='book',
- name='materials',
- field=models.ManyToManyField(to='storage.Material'),
- ),
- migrations.AddField(
- model_name='book',
- name='notes',
- field=models.ManyToManyField(to='storage.Note'),
- ),
- ]
|