diff options
author | prashantsinalkar | 2019-09-12 17:20:14 +0530 |
---|---|---|
committer | prashantsinalkar | 2019-09-13 16:21:15 +0530 |
commit | 33b135291c5d7865c94eace17eb762e9a5aec9e8 (patch) | |
tree | 80cf16d8bea3c713050f07cdae24cc5aa46cd99a | |
parent | e87d9feb957b25afefc4eee982e76b4a7a045177 (diff) | |
download | R_on_Cloud_Web_Interface-33b135291c5d7865c94eace17eb762e9a5aec9e8.tar.gz R_on_Cloud_Web_Interface-33b135291c5d7865c94eace17eb762e9a5aec9e8.tar.bz2 R_on_Cloud_Web_Interface-33b135291c5d7865c94eace17eb762e9a5aec9e8.zip |
fixed code and changed modals
-rw-r--r-- | website/migrations/0001_initial.py | 38 | ||||
-rw-r--r-- | website/migrations/0002_auto_20190830_1050.py | 113 |
2 files changed, 151 insertions, 0 deletions
diff --git a/website/migrations/0001_initial.py b/website/migrations/0001_initial.py new file mode 100644 index 0000000..7a40825 --- /dev/null +++ b/website/migrations/0001_initial.py @@ -0,0 +1,38 @@ +# Generated by Django 2.2.2 on 2019-08-30 10:24 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='TextbookCompanionCategoryList', + fields=[ + ('id', models.IntegerField(primary_key=True, serialize=False, unique=True)), + ('category_name', models.CharField(max_length=100)), + ('category_id', models.IntegerField()), + ('maincategory', models.CharField(max_length=255)), + ], + options={ + 'db_table': 'list_of_category', + }, + ), + migrations.CreateModel( + name='TextbookCompanionSubCategoryList', + fields=[ + ('id', models.IntegerField(primary_key=True, serialize=False, unique=True)), + ('subcategory_id', models.IntegerField()), + ('subcategory', models.CharField(max_length=255)), + ('maincategory_id', models.IntegerField()), + ], + options={ + 'db_table': 'list_of_subcategory', + }, + ), + ] diff --git a/website/migrations/0002_auto_20190830_1050.py b/website/migrations/0002_auto_20190830_1050.py new file mode 100644 index 0000000..eafbcd1 --- /dev/null +++ b/website/migrations/0002_auto_20190830_1050.py @@ -0,0 +1,113 @@ +# Generated by Django 2.2.2 on 2019-08-30 10:50 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='TextbookCompanionChapter', + fields=[ + ('id', models.IntegerField(primary_key=True, serialize=False)), + ('number', models.IntegerField()), + ('name', models.CharField(max_length=255)), + ('cloud_chapter_err_status', models.CharField(max_length=255)), + ], + options={ + 'db_table': 'textbook_companion_chapter', + }, + ), + migrations.CreateModel( + name='TextbookCompanionExample', + fields=[ + ('id', models.IntegerField(primary_key=True, serialize=False)), + ('approver_uid', models.IntegerField()), + ('number', models.CharField(max_length=10)), + ('caption', models.CharField(max_length=255)), + ('approval_date', models.IntegerField()), + ('approval_status', models.IntegerField()), + ('timestamp', models.IntegerField()), + ('cloud_err_status', models.IntegerField()), + ('chapter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.TextbookCompanionChapter')), + ], + options={ + 'db_table': 'textbook_companion_example', + }, + ), + migrations.CreateModel( + name='TextbookCompanionProposal', + fields=[ + ('id', models.IntegerField(primary_key=True, serialize=False, unique=True)), + ('uid', models.IntegerField()), + ('approver_uid', models.IntegerField()), + ('full_name', models.CharField(max_length=50)), + ('mobile', models.CharField(max_length=15)), + ('gender', models.CharField(max_length=10)), + ('how_project', models.CharField(max_length=50)), + ('course', models.CharField(max_length=50)), + ('branch', models.CharField(max_length=50)), + ('university', models.CharField(max_length=100)), + ('faculty', models.CharField(max_length=100)), + ('reviewer', models.CharField(max_length=100)), + ('completion_date', models.IntegerField()), + ('creation_date', models.IntegerField()), + ('approval_date', models.IntegerField()), + ('proposal_status', models.IntegerField()), + ('message', models.TextField()), + ('scilab_version', models.CharField(max_length=20)), + ('operating_system', models.CharField(max_length=20)), + ('teacher_email', models.CharField(max_length=20)), + ], + options={ + 'db_table': 'textbook_companion_proposal', + }, + ), + migrations.CreateModel( + name='TextbookCompanionPreference', + fields=[ + ('id', models.IntegerField(primary_key=True, serialize=False, unique=True)), + ('pref_number', models.IntegerField()), + ('book', models.CharField(max_length=100)), + ('author', models.CharField(max_length=100)), + ('isbn', models.CharField(max_length=25)), + ('publisher', models.CharField(max_length=50)), + ('edition', models.CharField(max_length=2)), + ('year', models.IntegerField()), + ('category', models.IntegerField()), + ('approval_status', models.IntegerField()), + ('cloud_pref_err_status', models.IntegerField()), + ('proposal', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.TextbookCompanionProposal')), + ], + options={ + 'db_table': 'textbook_companion_preference', + }, + ), + migrations.CreateModel( + name='TextbookCompanionExampleFiles', + fields=[ + ('id', models.IntegerField(primary_key=True, serialize=False)), + ('filename', models.CharField(max_length=255)), + ('filepath', models.CharField(max_length=500)), + ('filemime', models.CharField(max_length=255)), + ('filesize', models.IntegerField()), + ('filetype', models.CharField(max_length=1)), + ('caption', models.CharField(max_length=100)), + ('timestamp', models.IntegerField()), + ('example', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.TextbookCompanionExample')), + ], + options={ + 'db_table': 'textbook_companion_example_files', + }, + ), + migrations.AddField( + model_name='textbookcompanionchapter', + name='preference', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.TextbookCompanionPreference'), + ), + ] |