47 lines
2.0 KiB
Python
47 lines
2.0 KiB
Python
# Generated by Django 5.2.7 on 2026-02-17 16:40
|
|
|
|
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='Intent',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=100)),
|
|
('icon', models.CharField(blank=True, help_text='Bootstrap icon class name', max_length=50)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='ValueTag',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=100)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Profile',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('professional_headline', models.CharField(blank=True, max_length=255)),
|
|
('transition_status', models.CharField(choices=[('none', 'Stable'), ('post-divorce', 'Post-Divorce'), ('relocating', 'Relocating'), ('career-change', 'Career Change'), ('new-in-town', 'New in Town')], default='none', max_length=50)),
|
|
('bio', models.TextField(blank=True)),
|
|
('location_city', models.CharField(blank=True, max_length=100)),
|
|
('avatar_url', models.URLField(blank=True, null=True)),
|
|
('intents', models.ManyToManyField(blank=True, to='core.intent')),
|
|
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
('value_tags', models.ManyToManyField(blank=True, to='core.valuetag')),
|
|
],
|
|
),
|
|
]
|