32 lines
1.2 KiB
Python
32 lines
1.2 KiB
Python
# Generated by Django 5.2.7 on 2025-10-05 16:11
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('recruitment', '0013_candidate_criteria_checklist_candidate_match_score_and_more'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Source',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(choices=[('ATS', 'Applicant Tracking System'), ('ERP', 'ERP system')], max_length=100, verbose_name='Source Type')),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
],
|
|
options={
|
|
'verbose_name': 'Source',
|
|
'verbose_name_plural': 'Sources',
|
|
},
|
|
),
|
|
migrations.AddField(
|
|
model_name='jobposting',
|
|
name='source',
|
|
field=models.ForeignKey(blank=True, help_text='The system or channel from which this job posting originated or was first published.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='job_postings', to='recruitment.source'),
|
|
),
|
|
]
|