# Generated by Django 3.0.8 on 2020-08-20 23:33

import django.contrib.gis.db.models.fields
import django.contrib.postgres.fields.ranges
import django.contrib.postgres.search
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Company',
            fields=[
                ('id', models.BigAutoField(primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=100, unique=True)),
                ('name_slug', models.SlugField(max_length=100, unique=True, verbose_name='Name Slug')),
                ('industry', models.CharField(max_length=100)),
                ('vacancies_url', models.URLField(verbose_name='Vacancies Url')),
                ('last_updated', models.DateTimeField(verbose_name='Last Updated')),
                ('update_freq', models.IntegerField(default=0, verbose_name='Update Frequency')),
            ],
            options={
                'verbose_name_plural': 'Companies',
            },
        ),
        migrations.CreateModel(
            name='Location',
            fields=[
                ('id', models.BigAutoField(primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=100, unique=True)),
                ('geom', django.contrib.gis.db.models.fields.PointField(srid=4326, verbose_name='GPS Coord')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Opening',
            fields=[
                ('id', models.BigAutoField(primary_key=True, serialize=False)),
                ('role_title', models.CharField(max_length=100, verbose_name='Role Title')),
                ('description', models.TextField()),
                ('url', models.URLField(unique=True, verbose_name='Job Url')),
                ('is_remote', models.NullBooleanField(verbose_name='Is Remote')),
                ('part_time_permitted', models.NullBooleanField(verbose_name='Part-Time Permitted')),
                ('has_401k', models.NullBooleanField(verbose_name='Has 401k')),
                ('has_dentalins', models.NullBooleanField(verbose_name='Has Dental Insurance')),
                ('has_healthins', models.NullBooleanField(verbose_name='Has Health Insurance')),
                ('salary_range', django.contrib.postgres.fields.ranges.IntegerRangeField(blank=True, null=True, verbose_name='Salary Range')),
                ('date_active', models.DateField(verbose_name='Date Active')),
                ('date_inactive', models.DateField(blank=True, null=True, verbose_name='Date Inactive')),
                ('date_created', models.DateTimeField(auto_now_add=True, verbose_name='Date Created')),
                ('last_processed', models.DateTimeField(auto_now=True, null=True, verbose_name='Last Processed')),
                ('tsdocument', django.contrib.postgres.search.SearchVectorField(verbose_name='Document')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='jobs.Company')),
                ('locations', models.ManyToManyField(blank=True, to='jobs.Location')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
