# Generated by Django 6.0.4 on 2026-07-15 09:34

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


class Migration(migrations.Migration):

    dependencies = [
        ('hr', '0003_attendance_hr_attendan_date_3a46d7_idx_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='EmployeeDocument',
            fields=[
                ('id', models.UUIDField(default=apps.hr.models.uuid7, editable=False, primary_key=True, serialize=False)),
                ('document_type', models.CharField(choices=[('surat_perjalanan_dinas', 'Surat Perjalanan Dinas'), ('surat_tugas', 'Surat Tugas'), ('surat_keterangan', 'Surat Keterangan'), ('id_card', 'ID Card / KTP'), ('certificate', 'Certificate'), ('cv', 'CV / Resume'), ('other', 'Other')], default='other', max_length=50)),
                ('title', models.CharField(max_length=255)),
                ('file', models.FileField(upload_to='employee_documents/')),
                ('issue_date', models.DateField(blank=True, null=True)),
                ('notes', models.TextField(blank=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('employee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='documents', to='hr.employee')),
            ],
            options={
                'db_table': 'hr_employee_documents',
                'ordering': ['-created_at'],
            },
        ),
    ]
