class Migration(migrations.Migration):

    dependencies = [
        ('JobMatcherApp', '0002_employer_seeker'),
        ('jobs', '0002_update_job'),
    ]

    operations = [
        migrations.CreateModel(
            name='Match',
            fields=[
                ('id',
                 models.CharField(default=JobMatcherApp.models.id_gen,
                                  editable=False,
                                  max_length=10,
                                  primary_key=True,
                                  serialize=False)),
                ('created_at',
                 models.DateTimeField(auto_now_add=True,
                                      db_index=True,
                                      verbose_name='created time')),
                ('updated_at',
                 models.DateTimeField(auto_now=True,
                                      db_index=True,
                                      verbose_name='updated time')),
                ('seeker_action', models.CharField(blank=True, max_length=20)),
                ('employer_action', models.CharField(blank=True,
                                                     max_length=20)),
                ('is_archived_seeker', models.BooleanField(default=False)),
                ('is_archived_employer', models.BooleanField(default=False)),
                ('employer',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='matches',
                                   to='JobMatcherApp.Employer')),
                ('job',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='matches',
                                   to='jobs.Job')),
                ('seeker',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='matches',
                                   to='JobMatcherApp.Seeker')),
            ],
        ),
        migrations.AlterUniqueTogether(
            name='match',
            unique_together={('employer', 'seeker', 'job')},
        ),
    ]
Example #2
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Transaction',
            fields=[
                ('id',
                 models.CharField(default=JobMatcherApp.models.id_gen,
                                  editable=False,
                                  max_length=10,
                                  primary_key=True,
                                  serialize=False)),
                ('created_at',
                 models.DateTimeField(auto_now_add=True,
                                      db_index=True,
                                      verbose_name='created time')),
                ('updated_at',
                 models.DateTimeField(auto_now=True,
                                      db_index=True,
                                      verbose_name='updated time')),
                ('item',
                 models.CharField(choices=[('CREDIT100', 'CREDIT100'),
                                           ('CREDIT5', 'CREDIT5'),
                                           ('POSTING1', 'POSTING1')],
                                  max_length=20)),
                ('amount', models.IntegerField()),
                ('currency', models.CharField(default='usd', max_length=3)),
                ('description', models.CharField(blank=True, max_length=500)),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.PROTECT,
                                   related_name='transaction',
                                   to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('JobMatcherApp', '0002_employer_seeker'),
    ]

    operations = [
        migrations.CreateModel(
            name='Job',
            fields=[
                ('id',
                 models.CharField(default=JobMatcherApp.models.id_gen,
                                  editable=False,
                                  max_length=10,
                                  primary_key=True,
                                  serialize=False)),
                ('created_at',
                 models.DateTimeField(auto_now_add=True,
                                      db_index=True,
                                      verbose_name='created time')),
                ('updated_at',
                 models.DateTimeField(auto_now=True,
                                      db_index=True,
                                      verbose_name='updated time')),
                ('title',
                 models.CharField(blank=True,
                                  max_length=150,
                                  verbose_name='desired title')),
                ('salary_min',
                 models.DecimalField(decimal_places=2, max_digits=6)),
                ('salary_max',
                 models.DecimalField(decimal_places=2, max_digits=6)),
                ('top_skills',
                 JobMatcherApp.models.SkillsField(
                     base_field=models.CharField(max_length=30),
                     blank=True,
                     default=list,
                     size=5)),
                ('extra_skills',
                 JobMatcherApp.models.SkillsField(
                     base_field=models.CharField(max_length=30),
                     blank=True,
                     default=list,
                     size=None)),
                ('familiar_with',
                 JobMatcherApp.models.SkillsField(
                     base_field=models.CharField(max_length=30),
                     blank=True,
                     default=list,
                     size=None)),
                ('description', models.CharField(blank=True, max_length=500)),
                ('requirements', models.CharField(blank=True, max_length=500)),
                ('is_active', models.BooleanField(default=False)),
                ('employer',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='JobMatcherApp.Employer')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('JobMatcherApp', '0001_create_user_model'),
    ]

    operations = [
        migrations.CreateModel(
            name='Employer',
            fields=[
                ('id',
                 models.CharField(default=JobMatcherApp.models.id_gen,
                                  editable=False,
                                  max_length=10,
                                  primary_key=True,
                                  serialize=False)),
                ('created_at',
                 models.DateTimeField(auto_now_add=True,
                                      db_index=True,
                                      verbose_name='created time')),
                ('updated_at',
                 models.DateTimeField(auto_now=True,
                                      db_index=True,
                                      verbose_name='updated time')),
                ('photo', models.URLField(blank=True)),
                ('summary',
                 models.CharField(blank=True,
                                  max_length=500,
                                  verbose_name='summary')),
                ('confirm_spending', models.BooleanField(default=False)),
                ('company_name',
                 models.CharField(blank=True,
                                  max_length=30,
                                  verbose_name='company name')),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='employer',
                     to=settings.AUTH_USER_MODEL,
                     verbose_name='user')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Seeker',
            fields=[
                ('id',
                 models.CharField(default=JobMatcherApp.models.id_gen,
                                  editable=False,
                                  max_length=10,
                                  primary_key=True,
                                  serialize=False)),
                ('created_at',
                 models.DateTimeField(auto_now_add=True,
                                      db_index=True,
                                      verbose_name='created time')),
                ('updated_at',
                 models.DateTimeField(auto_now=True,
                                      db_index=True,
                                      verbose_name='updated time')),
                ('photo', models.URLField(blank=True)),
                ('summary',
                 models.CharField(blank=True,
                                  max_length=500,
                                  verbose_name='summary')),
                ('confirm_spending', models.BooleanField(default=False)),
                ('desired_title',
                 models.CharField(blank=True,
                                  max_length=150,
                                  verbose_name='desired title')),
                ('top_skills',
                 JobMatcherApp.models.SkillsField(
                     base_field=models.CharField(max_length=30),
                     blank=True,
                     default=list,
                     size=5)),
                ('extra_skills',
                 JobMatcherApp.models.SkillsField(
                     base_field=models.CharField(max_length=30),
                     blank=True,
                     default=list,
                     size=None)),
                ('other_skills',
                 JobMatcherApp.models.SkillsField(
                     base_field=models.CharField(max_length=30),
                     blank=True,
                     default=list,
                     size=None)),
                ('experience', models.CharField(blank=True, max_length=500)),
                ('education', models.CharField(blank=True, max_length=500)),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='seeker',
                     to=settings.AUTH_USER_MODEL,
                     verbose_name='user')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
Example #5
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0009_alter_user_last_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='User',
            fields=[
                ('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')),
                ('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')),
                ('id',
                 models.CharField(default=JobMatcherApp.models.id_gen,
                                  editable=False,
                                  max_length=10,
                                  primary_key=True,
                                  serialize=False)),
                ('created_at',
                 models.DateTimeField(auto_now_add=True,
                                      db_index=True,
                                      verbose_name='created time')),
                ('updated_at',
                 models.DateTimeField(auto_now=True,
                                      db_index=True,
                                      verbose_name='updated time')),
                ('email',
                 models.EmailField(max_length=255,
                                   unique=True,
                                   verbose_name='email address')),
                ('is_seeker',
                 models.BooleanField(default=False, verbose_name='seeker')),
                ('is_employer',
                 models.BooleanField(default=False, verbose_name='employer')),
                ('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',
            },
            managers=[
                ('objects', JobMatcherApp.models.UserManager()),
            ],
        ),
    ]