Quiz

Форк
0
/
0001_initial.py 
56 строк · 4.0 Кб
1
# Generated by Django 4.0.4 on 2023-03-12 12:41
2

3
from django.conf import settings
4
import django.contrib.auth.models
5
import django.contrib.auth.validators
6
from django.db import migrations, models
7
import django.db.models.deletion
8
import django.utils.timezone
9

10

11
class Migration(migrations.Migration):
12

13
    initial = True
14

15
    dependencies = [
16
        ('games', '0001_initial'),
17
        ('auth', '0012_alter_user_first_name_max_length'),
18
    ]
19

20
    operations = [
21
        migrations.CreateModel(
22
            name='AuthUser',
23
            fields=[
24
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
25
                ('password', models.CharField(max_length=128, verbose_name='password')),
26
                ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
27
                ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
28
                ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')),
29
                ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')),
30
                ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')),
31
                ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')),
32
                ('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')),
33
                ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
34
                ('nickname', models.CharField(max_length=16, verbose_name='Ник')),
35
                ('telegram_id', models.PositiveIntegerField(blank=True, null=True, verbose_name='ID Телеграм')),
36
                ('email', models.EmailField(blank=True, max_length=254, null=True, verbose_name='email')),
37
                ('birthdate', models.DateField(verbose_name='Дата рождения')),
38
                ('is_moderator', models.BooleanField(default=False, verbose_name='Модератор')),
39
                ('level', models.PositiveSmallIntegerField(default=1, verbose_name='Уровень')),
40
                ('current_experience', models.PositiveSmallIntegerField(default=0, verbose_name='Опыт текущего уровня')),
41
                ('current_game', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='players', to='games.game')),
42
                ('current_lobby', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='players', to='games.lobby')),
43
                ('friends', models.ManyToManyField(to=settings.AUTH_USER_MODEL, verbose_name='Друзья')),
44
                ('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')),
45
                ('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')),
46
            ],
47
            options={
48
                'verbose_name': 'user',
49
                'verbose_name_plural': 'users',
50
                'abstract': False,
51
            },
52
            managers=[
53
                ('objects', django.contrib.auth.models.UserManager()),
54
            ],
55
        ),
56
    ]
57

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.