# Generated by Django 5.2.16 on 2026-07-31 18:34

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='UserProfile',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('role', models.CharField(choices=[('STUDENT', 'Alumno'), ('INSTRUCTOR', 'Profesor / Docente'), ('MANAGER', 'Coordinador'), ('ADMIN', 'Administrador')], default='STUDENT', max_length=20, verbose_name='Rol en la Plataforma')),
                ('rut', models.CharField(blank=True, max_length=20, null=True, unique=True, verbose_name='RUT / DNI')),
                ('phone', models.CharField(blank=True, max_length=30, verbose_name='Teléfono / Celular')),
                ('company', models.CharField(blank=True, max_length=150, verbose_name='Empresa / Organización')),
                ('position_title', models.CharField(blank=True, max_length=150, verbose_name='Cargo / Puesto de Trabajo')),
                ('bio', models.TextField(blank=True, verbose_name='Biografía / Resumen Docente')),
                ('avatar', models.ImageField(blank=True, null=True, upload_to='users/avatars/', verbose_name='Foto de Perfil')),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Fecha de Creación')),
                ('updated_at', models.DateTimeField(auto_now=True, verbose_name='Última Actualización')),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL, verbose_name='Usuario')),
            ],
            options={
                'verbose_name': 'Perfil de Usuario',
                'verbose_name_plural': 'Perfiles de Usuario',
                'ordering': ['-created_at'],
            },
        ),
    ]
