class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('email', models.EmailField(max_length=255, unique=True, verbose_name='Email')), ('phn_no', models.CharField(max_length=12, validators=[assignment.models.phn_no_validation], verbose_name='Mobile No.')), ('active', models.BooleanField(default=False)), ('client', models.BooleanField(default=False)), ('staff', models.BooleanField(default=False)), ('admin', models.BooleanField(default=False)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Category_type', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, verbose_name='Name')), ], ), migrations.CreateModel( name='Request_Table', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('request_desc', models.TextField(verbose_name='Request Desc')), ('city', models.CharField(max_length=255, verbose_name='City')), ('state', models.CharField(choices=[('Punjab', 'Punjab'), ('Delhi', 'Delhi'), ('Rajasthan', 'Rajasthan'), ('Maharastra', 'Maharastra'), ('Utter Pradesh', 'Utter Pradesh'), ('Madhya Pradesh', 'Madhya Pradesh'), ('Jammu Kashmir', 'Jammu Kashmir'), ('Gujrat', 'Gujrat'), ('Tamil Nadu', 'Tamil Nadu'), ('Kerela', 'Kerela'), ('Karnatka', 'Karnatka'), ('Orissa', 'Orissa')], max_length=255)), ('pincode', models.CharField(max_length=6, validators=[assignment.models.validate_pin], verbose_name='Pin Code')), ('date', models.DateTimeField(auto_now_add=True, verbose_name='Request Date')), ('mobile', phonenumber_field.modelfields.PhoneNumberField(max_length=128, region=None)), ('status', models.CharField(blank=True, choices=[('Pending', 'Pending'), ('In Progress', 'In Progress'), ('Completed', 'Completed')], default='Pending', max_length=255, null=True, verbose_name='Status')), ('remarks', models.TextField(blank=True, null=True, verbose_name='Remarks')), ('request_type', models.ManyToManyField(to='assignment.Category_type', verbose_name='Request Type')), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='User')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('accounts', '0001_initial'), ('course', '0001_initial'), ] operations = [ migrations.CreateModel( name='Assignment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=256, verbose_name='title')), ('description', models.TextField(blank=True, max_length=256, null=True, verbose_name='description')), ('deadline', models.DateTimeField(verbose_name='deadline')), ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=True)), ('slug', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)), ('points', models.PositiveIntegerField(default=0, verbose_name='points')), ('course_offering', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='course.CourseOffering')), ], bases=(meta.models.ModelMeta, models.Model), ), migrations.CreateModel( name='AssignmentWork', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('submit_date', models.DateTimeField(blank=True, null=True, verbose_name='submit date')), ('submitted', models.BooleanField(default=False, verbose_name='submitted')), ('points', models.IntegerField(blank=True, default=-1, null=True, verbose_name='points')), ('assignment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assignment.Assignment')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='accounts.Student')), ], ), migrations.CreateModel( name='AssignmentWorkFile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file', models.FileField(upload_to=assignment.models.upload_work_path)), ('assignment_work', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='assignment.AssignmentWork')), ], ), migrations.CreateModel( name='AssignmentFile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file', models.FileField(upload_to=assignment.models.upload_path)), ('assignment', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='assignment.Assignment')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. At least 8 characters, at most 12 characters. Letters and digits only.', max_length=12, unique=True, validators=[ assignment.validators.UsernameValidator(), django.core.validators.MinLengthValidator(8) ], verbose_name='username')), ('assigned_id', models.CharField(default=assignment.models.User.uuid, max_length=15, unique=True, verbose_name='assigned id')), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Assignment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=512, verbose_name='title')), ('description', models.TextField(verbose_name='description')), ('created_date', models.DateTimeField(auto_now_add=True, verbose_name='created date')), ('expire_date', models.DateTimeField(verbose_name='expire date')), ('earning', models.DecimalField(decimal_places=2, default=0, max_digits=11, verbose_name='earning')), ('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='creator')), ], options={ 'verbose_name': 'assignment', 'verbose_name_plural': 'assignments', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), ] operations = [ migrations.CreateModel( name='People', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators.ASCIIUsernameValidator( ) ], verbose_name='username')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('first_name', models.CharField(max_length=30)), ('last_name', models.CharField(max_length=30)), ('gender', models.CharField(max_length=10)), ('email', models.EmailField(max_length=254, unique=True)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'abstract': False, 'verbose_name': 'user', 'verbose_name_plural': 'users', }, managers=[ ('objects', assignment.models.PeopleManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('is_student', models.BooleanField(default=False)), ('is_teacher', models.BooleanField(default=False)), ('is_admin', models.BooleanField(default=False)), ('email', models.EmailField(max_length=100)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='AnswerRemark', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Remarks', models.TextField(default='No remarks added!', null=True, verbose_name='Remarks')), ], ), migrations.CreateModel( name='Assignment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=225)), ('submission_date', models.DateField(verbose_name='Submission Date')), ('date_added', models.DateField(auto_now_add=True)), ('question', models.FileField(upload_to=assignment.models.Assignment. user_directory_path)), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Student', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('roll_no', models.PositiveIntegerField(unique=True)), ('sem', models.PositiveIntegerField(default=5, verbose_name='Semister')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='StudentAnswer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('question', models.FileField(upload_to=assignment.models.StudentAnswer. user_directory_path)), ('submitted_date', models.DateField(auto_now_add=True, null=True)), ('assignment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assignment.assignment')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='assignment_answers', to='assignment.student')), ], ), ]