SmartPicasso/rest-app/smartpicasso/app/user_profile/migrations/0001_initial.py

31 lines
952 B
Python
Raw Permalink Normal View History

# Generated by Django 3.1.3 on 2020-11-30 21:41
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('user', '0002_auto_20201130_2119'),
]
operations = [
migrations.CreateModel(
name='UserProfile',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('first_name', models.CharField(max_length=50)),
('last_name', models.CharField(max_length=50)),
('phone_number', models.CharField(blank=True, max_length=10, null=True)),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to='user.user')),
],
options={
'db_table': 'user_profile',
},
),
]