jobportal/users/migrations/0002_profile.py

28 lines
1020 B
Python
Raw Normal View History

2020-12-31 15:56:44 +01:00
# Generated by Django 3.1.4 on 2020-12-31 14:51
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Profile',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('image', models.ImageField(upload_to='media/users')),
('birth_day', models.DateField(blank=True, default=None, null=True)),
('location', models.CharField(blank=True, max_length=100)),
('resume', models.TextField(blank=True)),
('company', models.CharField(blank=True, max_length=250)),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)),
],
),
]