Files
vikileo-shop/config/accounts/migrations/0001_initial.py
2024-05-10 09:38:31 +03:00

47 lines
3.3 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Generated by Django 4.2.13 on 2024-05-09 15:55
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('password', models.CharField(max_length=128, verbose_name='password')),
('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')),
('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
('first_name', models.CharField(blank=True, max_length=60, null=True, verbose_name='Имя')),
('last_name', models.CharField(blank=True, max_length=60, null=True, verbose_name='Фамилия')),
('gender', models.CharField(choices=[('n', 'Не указано'), ('m', 'Мужчина'), ('f', 'Женщина')], default='n', max_length=10, verbose_name='Пол')),
('email', models.EmailField(max_length=254, unique=True, verbose_name='Email Address')),
('username', models.CharField(max_length=60, verbose_name='Ник')),
('bio', models.TextField(blank=True, verbose_name='О себе')),
('image', models.URLField(blank=True, null=True, verbose_name='Аватар')),
('address', models.CharField(blank=True, max_length=255, null=True, verbose_name='Адрес')),
('date_joined', models.DateTimeField(auto_now_add=True, null=True, verbose_name='Дата регистрации')),
('last_updated', models.DateTimeField(auto_now=True, null=True, verbose_name='Последнее обновление')),
('last_login', models.DateTimeField(auto_now=True, null=True, verbose_name='Последняя авторизация')),
('status', models.BooleanField(default=False, verbose_name='Статус')),
('followers', models.ManyToManyField(blank=True, to=settings.AUTH_USER_MODEL, verbose_name='Подписчики')),
('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.group', verbose_name='groups')),
('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.permission', verbose_name='user permissions')),
],
options={
'verbose_name': 'user',
'verbose_name_plural': 'users',
'abstract': False,
},
),
]