# Generated by Django 4.2.20 on 2026-03-24 09:39

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('organizations', '0001_initial'),
    ]

    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=100, verbose_name='职位名称')),
                ('category', models.CharField(max_length=50, verbose_name='职位类别')),
                ('location', models.CharField(max_length=100, verbose_name='工作地点')),
                ('salary', models.CharField(max_length=50, verbose_name='薪资范围')),
                ('description', models.TextField(blank=True, verbose_name='职位描述')),
                ('status', models.CharField(choices=[('draft', '草稿'), ('published', '已发布'), ('closed', '已关闭')], default='draft', max_length=20)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='jobs', to='organizations.organization')),
            ],
            options={
                'verbose_name': '职位',
                'ordering': ['-created_at'],
            },
        ),
    ]
