class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='AppUser', fields=[ ('user_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ('picture', models.ImageField(blank=True, null=True, upload_to=App.models.file_upload)), ('company_name', models.CharField(blank=True, max_length=100, null=True)), ('birth_date', models.CharField(blank=True, max_length=100, null=True)), ('points', models.IntegerField(default=0)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, bases=('auth.user', ), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Competition', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=250)), ('description', models.CharField(max_length=400)), ('logo', models.ImageField(upload_to=App.models.file_upload)), ('cover', models.ImageField(upload_to=App.models.file_upload)), ('max_limit', models.IntegerField(default=0)), ('speed_limit', models.IntegerField(default=0)), ('road', models.CharField(max_length=300)), ('subscribers', models.ManyToManyField(blank=True, null=True, related_name='subscribers', to='App.AppUser')), ], ), migrations.CreateModel( name='Trip', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('road', models.TextField(blank=True, null=True)), ('direction', models.CharField(max_length=250)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='App.AppUser')), ], ), migrations.CreateModel( name='GpsLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('lat', models.CharField(max_length=250)), ('lng', models.CharField(max_length=250)), ('current_speed', models.IntegerField(default=0)), ('accuracy', models.IntegerField(blank=True, null=True)), ('direction', models.CharField(blank=True, max_length=250, null=True)), ('acceleration', models.CharField(blank=True, max_length=250, null=True)), ('competition', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to='App.Competition')), ('trip', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='trip', to='App.Trip')), ('user', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, related_name='user', to='App.AppUser')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('App', '0001_initial'), ] operations = [ migrations.CreateModel( name='Entry', fields=[ ('_id', djongo.models.fields.ObjectIdField(auto_created=True, primary_key=True, serialize=False)), ('blog', djongo.models.fields.EmbeddedField( model_container=App.models.Blog)), ('headline', models.CharField(max_length=255)), ], ), migrations.CreateModel( name='UserDetail', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('UserId', models.CharField(blank=True, default='', max_length=50)), ('FirstName', models.CharField(blank=True, default='', max_length=50)), ('LastName', models.CharField(blank=True, default='', max_length=50)), ('Password', models.CharField(blank=True, default='', max_length=100)), ('Email', models.EmailField(blank=True, max_length=254)), ('SecurityQuestion', models.CharField(blank=True, default='', max_length=150)), ('SecurityAnswer', models.CharField(blank=True, default='', max_length=500)), ('profilePic', models.ImageField(default='media/user.png', upload_to='media')), ('Gender', models.CharField(choices=[('M', 'Male'), ('F', 'Female'), ('O', 'Other')], default='', max_length=1)), ], ), migrations.CreateModel( name='Votes', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('questionId', models.CharField(max_length=100)), ('userId', models.CharField(max_length=50)), ('voteType', models.IntegerField(blank=True)), ], ), migrations.CreateModel( name='Questions', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('userId', models.CharField(max_length=50)), ('questionId', models.UUIDField(default=uuid.uuid4, unique=True)), ('question', models.TextField()), ('totalVotes', models.IntegerField(blank=True, default=0)), ('date', models.DateTimeField(auto_now_add=True)), ('User', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user', to='App.UserDetail')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Application', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], ), migrations.CreateModel( name='Internship', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('location', models.CharField(max_length=50)), ('description', models.TextField()), ('stipend', models.IntegerField()), ('number_of_internships', models.IntegerField()), ('start_date', models.DateField()), ('duration', models.IntegerField()), ('posted_on', models.DateField()), ('apply_by', models.DateField()), ('incentives', models.TextField()), ], ), migrations.CreateModel( name='Internship_sq', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('question', models.CharField(max_length=100)), ('answer', models.TextField()), ('internship', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='internship_sq', to='App.Internship')), ], ), migrations.CreateModel( name='Professor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('bio', models.TextField()), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('interned', models.BooleanField(default=False)), ('mobile', models.CharField( blank=True, max_length=17, validators=[ django.core.validators.RegexValidator( message= "Phone number must be entered in the format: '+999999999'. Up to 15 digits allowed.", regex='^\\+?1?\\d{9,15}$') ])), ('resume', models.FileField(null=True, upload_to='')), ('cover_letter', models.FileField(null=True, upload_to='')), ('lor', models.FileField(null=True, upload_to='')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='base_profile', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile_add_details', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('add_details', models.TextField()), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='profile_add_details', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile_education', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('graduation_status', models.CharField(choices=[('P', 'Pursuing'), ('C', 'Completed')], max_length=1)), ('college', models.CharField(max_length=200)), ('start_year', models.IntegerField(validators=[ django.core.validators.MinValueValidator(1984), App.models.max_value_current_year ])), ('end_year', models.IntegerField(validators=[ django.core.validators.MinValueValidator(1984), App.models.max_value_current_year ])), ('degree', models.CharField(max_length=100)), ('stream', models.CharField(max_length=50)), ('cgpa', models.FloatField( validators=[django.core.validators.MaxValueValidator(10)]) ), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='profile_education', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile_internships', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('profile', models.CharField(max_length=50)), ('organization', models.CharField(max_length=50)), ('location', models.CharField(max_length=50)), ('start_date', models.DateField()), ('end_date', models.DateField()), ('description', models.TextField()), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='profile_internships', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile_POR', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('description', models.TextField()), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='profile_por', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile_projects', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50)), ('start_month', models.DateField()), ('end_month', models.DateField()), ('description', models.TextField()), ('project_link', models.URLField()), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='profile_projects', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile_skills', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('level', models.CharField(choices=[('B', 'Beginner'), ('I', 'Intermediate'), ('A', 'Advanced')], max_length=1)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='profile_skills', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile_work_samples', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('blog_link', models.URLField()), ('github_profile', models.URLField()), ('other_portfolio_link', models.URLField()), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='profile_work_samples', to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='internship', name='professor', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='interships', to='App.Professor'), ), migrations.AddField( model_name='application', name='internship', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='application', to='App.Internship'), ), migrations.AddField( model_name='application', name='user', field=models.ManyToManyField(related_name='applications', to=settings.AUTH_USER_MODEL), ), ]