38222-vm/core/migrations/0002_profile.py
Flatlogic Bot 3c3b3ecffe v1
2026-02-07 20:22:14 +00:00

28 lines
1011 B
Python

# Generated by Django 5.2.7 on 2026-02-07 19:56
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Profile',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('bio', models.TextField(blank=True, max_length=500)),
('location', models.CharField(blank=True, max_length=100)),
('birth_date', models.DateField(blank=True, null=True)),
('avatar', models.ImageField(blank=True, null=True, upload_to='avatars/')),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
]