0001_initial.py 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. # Generated by Django 2.0.5 on 2018-05-09 09:35
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. initial = True
  6. dependencies = [
  7. ]
  8. operations = [
  9. migrations.CreateModel(
  10. name='Book',
  11. fields=[
  12. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  13. ('created_at', models.DateTimeField(auto_now_add=True)),
  14. ('updated_at', models.DateTimeField(auto_now=True)),
  15. ('title', models.CharField(max_length=255)),
  16. ('scale', models.PositiveIntegerField()),
  17. ('position', models.PositiveIntegerField()),
  18. ('resume', models.TextField()),
  19. ('completed', models.BooleanField()),
  20. ('completed_at', models.DateTimeField()),
  21. ],
  22. options={
  23. 'abstract': False,
  24. },
  25. ),
  26. migrations.CreateModel(
  27. name='BookStackRecord',
  28. fields=[
  29. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  30. ('created_at', models.DateTimeField(auto_now_add=True)),
  31. ('updated_at', models.DateTimeField(auto_now=True)),
  32. ('position', models.PositiveIntegerField()),
  33. ('book', models.OneToOneField(null=True, on_delete=django.db.models.deletion.SET_NULL, to='storage.Book')),
  34. ],
  35. options={
  36. 'abstract': False,
  37. },
  38. ),
  39. migrations.CreateModel(
  40. name='Course',
  41. fields=[
  42. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  43. ('created_at', models.DateTimeField(auto_now_add=True)),
  44. ('updated_at', models.DateTimeField(auto_now=True)),
  45. ('title', models.CharField(max_length=255)),
  46. ('info', models.TextField(max_length=255)),
  47. ('reason', models.TextField()),
  48. ('link', models.URLField()),
  49. ('progress', models.PositiveIntegerField()),
  50. ('completed', models.BooleanField()),
  51. ('completed_at', models.DateTimeField()),
  52. ],
  53. options={
  54. 'abstract': False,
  55. },
  56. ),
  57. migrations.CreateModel(
  58. name='CourseStackRecord',
  59. fields=[
  60. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  61. ('created_at', models.DateTimeField(auto_now_add=True)),
  62. ('updated_at', models.DateTimeField(auto_now=True)),
  63. ('position', models.PositiveIntegerField()),
  64. ('course', models.OneToOneField(null=True, on_delete=django.db.models.deletion.SET_NULL, to='storage.Course')),
  65. ],
  66. options={
  67. 'abstract': False,
  68. },
  69. ),
  70. migrations.CreateModel(
  71. name='Issue',
  72. fields=[
  73. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  74. ('created_at', models.DateTimeField(auto_now_add=True)),
  75. ('updated_at', models.DateTimeField(auto_now=True)),
  76. ('title', models.CharField(blank=True, max_length=255, null=True)),
  77. ('description', models.TextField()),
  78. ('mitigation', models.TextField()),
  79. ],
  80. options={
  81. 'abstract': False,
  82. },
  83. ),
  84. migrations.CreateModel(
  85. name='Material',
  86. fields=[
  87. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  88. ('created_at', models.DateTimeField(auto_now_add=True)),
  89. ('updated_at', models.DateTimeField(auto_now=True)),
  90. ('title', models.CharField(max_length=255)),
  91. ('file', models.FileField(upload_to='')),
  92. ],
  93. options={
  94. 'abstract': False,
  95. },
  96. ),
  97. migrations.CreateModel(
  98. name='Note',
  99. fields=[
  100. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  101. ('created_at', models.DateTimeField(auto_now_add=True)),
  102. ('updated_at', models.DateTimeField(auto_now=True)),
  103. ('title', models.CharField(blank=True, max_length=255, null=True)),
  104. ('body', models.TextField()),
  105. ],
  106. options={
  107. 'abstract': False,
  108. },
  109. ),
  110. migrations.CreateModel(
  111. name='PersonOfInterest',
  112. fields=[
  113. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  114. ('created_at', models.DateTimeField(auto_now_add=True)),
  115. ('updated_at', models.DateTimeField(auto_now=True)),
  116. ('name', models.CharField(max_length=255)),
  117. ('notes', models.ManyToManyField(to='storage.Note')),
  118. ],
  119. options={
  120. 'abstract': False,
  121. },
  122. ),
  123. migrations.CreateModel(
  124. name='Plan',
  125. fields=[
  126. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  127. ('created_at', models.DateTimeField(auto_now_add=True)),
  128. ('updated_at', models.DateTimeField(auto_now=True)),
  129. ('title', models.CharField(max_length=255)),
  130. ('goal', models.CharField(max_length=255)),
  131. ],
  132. options={
  133. 'abstract': False,
  134. },
  135. ),
  136. migrations.CreateModel(
  137. name='Project',
  138. fields=[
  139. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  140. ('created_at', models.DateTimeField(auto_now_add=True)),
  141. ('updated_at', models.DateTimeField(auto_now=True)),
  142. ('title', models.CharField(max_length=255)),
  143. ('description', models.TextField()),
  144. ('reason', models.TextField()),
  145. ('plans', models.ManyToManyField(to='storage.Plan')),
  146. ],
  147. options={
  148. 'abstract': False,
  149. },
  150. ),
  151. migrations.CreateModel(
  152. name='Task',
  153. fields=[
  154. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  155. ('created_at', models.DateTimeField(auto_now_add=True)),
  156. ('updated_at', models.DateTimeField(auto_now=True)),
  157. ('title', models.CharField(max_length=255)),
  158. ('description', models.TextField()),
  159. ('due_date', models.DateTimeField()),
  160. ('priority', models.CharField(choices=[(0, 'Unprioritized'), (1, 'Hight'), (2, 'Medium'), (3, 'Low')], max_length=1)),
  161. ('completed', models.BooleanField()),
  162. ('completed_at', models.DateTimeField()),
  163. ],
  164. options={
  165. 'abstract': False,
  166. },
  167. ),
  168. migrations.AddField(
  169. model_name='plan',
  170. name='tasks',
  171. field=models.ManyToManyField(to='storage.Task'),
  172. ),
  173. migrations.AddField(
  174. model_name='course',
  175. name='materials',
  176. field=models.ManyToManyField(to='storage.Material'),
  177. ),
  178. migrations.AddField(
  179. model_name='book',
  180. name='materials',
  181. field=models.ManyToManyField(to='storage.Material'),
  182. ),
  183. migrations.AddField(
  184. model_name='book',
  185. name='notes',
  186. field=models.ManyToManyField(to='storage.Note'),
  187. ),
  188. ]