# Generated by Django 6.0.1 on 2026-02-02 20:03

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('contenttypes', '0002_remove_content_type_name'),
    ]

    operations = [
        migrations.CreateModel(
            name='Document',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255, verbose_name='Nom du document')),
                ('file', models.FileField(upload_to='documents/%Y/%m/%d/', verbose_name='Fichier')),
                ('type', models.CharField(choices=[('cv', 'Curriculum Vitae'), ('id', "Pièce d'identité"), ('contract', 'Contrat / Convention'), ('diploma', 'Diplôme / Certificat'), ('other', 'Autre')], default='other', max_length=20, verbose_name='Type')),
                ('object_id', models.PositiveIntegerField()),
                ('uploaded_at', models.DateTimeField(auto_now_add=True)),
                ('description', models.TextField(blank=True, null=True)),
                ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype')),
            ],
            options={
                'verbose_name': 'Document',
                'verbose_name_plural': 'Documents',
                'ordering': ['-uploaded_at'],
            },
        ),
    ]
