jobportal/jobs/migrations/0001_initial.py

32 lines
1.3 KiB
Python
Raw Normal View History

2020-12-31 10:36:51 +01:00
# Generated by Django 3.1.4 on 2020-12-30 19:24
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Job',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=300)),
('company', models.CharField(max_length=300)),
('job_type', models.CharField(choices=[('full_time', 'Full Time'), ('part_time', 'Part Time'), ('freelance', 'Freelance'), ('internship', 'Internship'), ('temporary', 'Temporary')], default=None, max_length=20)),
('location', models.CharField(default=None, max_length=200)),
('description', models.TextField(default=None)),
('publishing_date', models.DateTimeField(auto_now_add=True)),
('slug', models.SlugField(default=None, editable=False)),
('employer', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
]