diff options
author | prashantsinalkar | 2018-08-15 23:41:49 +0530 |
---|---|---|
committer | prashantsinalkar | 2018-08-15 23:41:49 +0530 |
commit | abc656b078d3ac27e6d3888f811db2962e25f753 (patch) | |
tree | e0e481118d550fc676868c3a1e327435abd55d34 | |
parent | 835c52df060e468fac822cd7aed3eb22dd7310e1 (diff) | |
download | SciPy2018-abc656b078d3ac27e6d3888f811db2962e25f753.tar.gz SciPy2018-abc656b078d3ac27e6d3888f811db2962e25f753.tar.bz2 SciPy2018-abc656b078d3ac27e6d3888f811db2962e25f753.zip |
added migrations
-rw-r--r-- | website/migrations/0001_initial.py | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/website/migrations/0001_initial.py b/website/migrations/0001_initial.py new file mode 100644 index 0000000..5ffde4c --- /dev/null +++ b/website/migrations/0001_initial.py @@ -0,0 +1,64 @@ +# Generated by Django 2.1 on 2018-08-14 07:08 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import website.models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='Comments', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('comment', models.CharField(max_length=700)), + ], + ), + migrations.CreateModel( + name='Proposal', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('about_me', models.TextField(max_length=500)), + ('email', models.CharField(max_length=128)), + ('phone', models.CharField(max_length=20)), + ('title', models.CharField(max_length=250)), + ('abstract', models.TextField(max_length=700)), + ('prerequisite', models.CharField(max_length=750)), + ('duration', models.CharField(max_length=100)), + ('attachment', models.FileField(upload_to=website.models.get_document_dir)), + ('date_created', models.DateTimeField(auto_now_add=True)), + ('date_modified', models.DateTimeField(auto_now=True)), + ('status', models.CharField(default='Pending', max_length=100)), + ('proposal_type', models.CharField(max_length=100)), + ('tags', models.CharField(max_length=250)), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ], + ), + migrations.CreateModel( + name='Ratings', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('rating', models.CharField(max_length=700)), + ('proposal', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.Proposal')), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ], + ), + migrations.AddField( + model_name='comments', + name='proposal', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.Proposal'), + ), + migrations.AddField( + model_name='comments', + name='user', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), + ), + ] |