auth serializer
This commit is contained in:
36
backend/api/migrations/0001_initial.py
Normal file
36
backend/api/migrations/0001_initial.py
Normal file
@@ -0,0 +1,36 @@
|
||||
# Generated by Django 5.2.1 on 2025-05-18 08:57
|
||||
|
||||
import django.db.models.deletion
|
||||
import uuid
|
||||
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')),
|
||||
('is_active', models.BooleanField(default=True)),
|
||||
('phone_number', models.CharField(max_length=13)),
|
||||
('birthday', models.DateField(blank=True, null=True)),
|
||||
('privacy_accepted', models.BooleanField(default=False)),
|
||||
('uuid', models.UUIDField(default=uuid.uuid4, editable=False, null=True)),
|
||||
('image', models.ImageField(blank=True, null=True, upload_to='')),
|
||||
('country', models.CharField(blank=True, max_length=15, null=True)),
|
||||
('city', models.CharField(blank=True, max_length=35, null=True)),
|
||||
('newsletter', models.BooleanField(default=False)),
|
||||
('authMailCode', models.CharField(max_length=50)),
|
||||
('additionalDetails', models.TextField(blank=True, null=True)),
|
||||
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user