Пример #1
0
class Migration(migrations.Migration):

    dependencies = [
        ('candidates', '0013_auto_20190511_0012'),
    ]

    operations = [
        migrations.AlterField(
            model_name='candidate',
            name='cv',
            field=models.FileField(
                upload_to=candidates.models.get_upload_path),
        ),
    ]
Пример #2
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Candidate',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=50)),
                ('education', models.CharField(max_length=50)),
                ('contact', models.EmailField(blank=True, max_length=254)),
                ('resume', models.FileField(blank=True, null=True, upload_to=candidates.models.upload_path)),
            ],
        ),
    ]
Пример #3
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='CandidateModel',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('email', models.EmailField(max_length=254)),
                ('date', models.DateTimeField(auto_now_add=True)),
                ('contact', models.CharField(blank=True, max_length=13)),
                ('resume',
                 models.FileField(
                     null=True,
                     upload_to=candidates.models.rename_and_save,
                     validators=[
                         django.core.validators.FileExtensionValidator(
                             allowed_extensions=['pdf', 'docx'])
                     ])),
                ('job_applied_to',
                 models.CharField(choices=[
                     ('Backend Engineer', 'Backend Engineer'),
                     ('Frontend Engineer', 'Frontend Engineer'),
                     ('Python Developer', 'Python Developer'),
                     ('Business Analyst', 'Business Analyst'),
                     ('ML Engineer', 'ML Engineer'),
                     ('Data Engineer', 'Data Engineer'),
                     ('Technical Recruiter', 'Technical Recruiter')
                 ],
                                  max_length=100)),
            ],
        ),
    ]
Пример #4
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Candidate',
            fields=[
                ('id',
                 models.BigAutoField(auto_created=True,
                                     primary_key=True,
                                     serialize=False,
                                     verbose_name='ID')),
                ('Name', models.CharField(max_length=100)),
                ('Email_id',
                 models.CharField(blank=True, max_length=100, null=True)),
                ('Years_of_Experience',
                 models.IntegerField(blank=True, default=None, null=True)),
                ('Linkedin_Profile', models.CharField(max_length=100,
                                                      null=True)),
                ('Expected_hourly_rate',
                 models.IntegerField(blank=True, default=None, null=True)),
                ('Resume',
                 models.FileField(upload_to='doc',
                                  validators=[candidates.models.file_size])),
            ],
        ),
        migrations.CreateModel(
            name='Location',
            fields=[
                ('id',
                 models.BigAutoField(auto_created=True,
                                     primary_key=True,
                                     serialize=False,
                                     verbose_name='ID')),
                ('title', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='Role',
            fields=[
                ('id',
                 models.BigAutoField(auto_created=True,
                                     primary_key=True,
                                     serialize=False,
                                     verbose_name='ID')),
                ('title', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='Job',
            fields=[
                ('id',
                 models.BigAutoField(auto_created=True,
                                     primary_key=True,
                                     serialize=False,
                                     verbose_name='ID')),
                ('Req_Id', models.IntegerField()),
                ('Job_title', models.CharField(max_length=255)),
                ('Start_date', models.DateField()),
                ('End_date', models.DateField()),
                ('Submission_deadline', models.DateTimeField()),
                ('No_Openings', models.IntegerField()),
                ('Description',
                 ckeditor_uploader.fields.RichTextUploadingField(default='')),
                ('location',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='candidates.location')),
                ('role',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='candidates.role')),
            ],
        ),
        migrations.CreateModel(
            name='CandidateJobMap',
            fields=[
                ('id',
                 models.BigAutoField(auto_created=True,
                                     primary_key=True,
                                     serialize=False,
                                     verbose_name='ID')),
                ('status',
                 models.CharField(choices=[('Pending', 'Pending'),
                                           ('Accepted', 'Accepted'),
                                           ('Rejected', 'Rejected')],
                                  default='Pending',
                                  max_length=30)),
                ('feedback', models.TextField(blank=True, null=True)),
                ('candidate',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='candidates.candidate')),
                ('job',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='candidates.job')),
            ],
            options={
                'verbose_name_plural': 'All_Candidates',
            },
        ),
        migrations.AddField(
            model_name='candidate',
            name='job',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='candidates.job'),
        ),
    ]