41 lines
1.6 KiB
Python
41 lines
1.6 KiB
Python
# Generated by Django 5.2.1 on 2025-05-18 17:23
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Job',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('title', models.CharField(max_length=255)),
|
|
('description_en', models.TextField()),
|
|
('description_ar', models.TextField()),
|
|
('is_published', models.BooleanField(default=False)),
|
|
('posted_to_linkedin', models.BooleanField(default=False)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Candidate',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=255)),
|
|
('email', models.EmailField(max_length=254)),
|
|
('resume', models.FileField(upload_to='resumes/')),
|
|
('parsed_summary', models.TextField(blank=True)),
|
|
('status', models.CharField(default='Applied', max_length=100)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='candidates', to='recruitment.job')),
|
|
],
|
|
),
|
|
]
|