2023-05-12 15:01:55 +02:00
|
|
|
|
# Generated by Django 4.2.1 on 2023-05-12 12:45
|
|
|
|
|
|
|
|
|
|
import django.core.validators
|
2023-05-15 05:12:05 +02:00
|
|
|
|
from django.core.validators import RegexValidator, MaxValueValidator
|
2023-05-12 15:01:55 +02:00
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
2023-05-15 05:12:05 +02:00
|
|
|
|
from pairent_app.models import User
|
2023-05-12 15:01:55 +02:00
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
|
('pairent_app', '0004_apartament_lastprice'),
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
operations = [
|
2023-05-15 05:12:05 +02:00
|
|
|
|
migrations.DeleteModel('User'),
|
2023-05-12 15:01:55 +02:00
|
|
|
|
migrations.CreateModel(
|
|
|
|
|
name='User',
|
|
|
|
|
fields=[
|
2023-05-15 05:12:05 +02:00
|
|
|
|
('favorites_apartments', models.CharField(max_length=100, help_text="Избранные квартиры (CSV)")),
|
|
|
|
|
('comparison_apartments', models.CharField(max_length=100, help_text="Квартиры для сравнения (CSV)")),
|
|
|
|
|
('psych_test_result', models.IntegerField(validators=[MaxValueValidator(100)], null=True, help_text="Результат психологического теста")),
|
|
|
|
|
('openid_addr', models.CharField(max_length=1000, null=False, help_text='Адрес Open ID Connect (login@provider.com, для ВВГУ - login@vvsu.ru)')),
|
|
|
|
|
('name', models.CharField(max_length=256, help_text='ФИО Пользователя')),
|
|
|
|
|
('date_of_birth', models.DateField(help_text='Дата рождения пользователя')),
|
|
|
|
|
('about_me', models.CharField(max_length=1000, help_text='Поле "О Себе"')),
|
|
|
|
|
('gender', models.CharField(max_length=1, help_text='Пол пользователя (f,m,n,?)')),
|
|
|
|
|
('phone', models.CharField(max_length=30, help_text='Телефон пользователя в международном формате (+00000000)', null=True)),
|
|
|
|
|
('email', models.CharField(max_length=1000, help_text='Почтовый ящик пользователя в формате user@example.com', null=True)),
|
|
|
|
|
('telegram', models.CharField(max_length=1000, help_text='Телеграм пользователя', null=True)),
|
|
|
|
|
('discord', models.CharField(max_length=1000, help_text='Дискорд ник пользователя', null=True)),
|
|
|
|
|
('city', models.CharField(max_length=1000, help_text='Город пользователя', null=True)),
|
|
|
|
|
('role', models.CharField(max_length=1, help_text='Роль пользователя (s - student, a - admin, m - moderator)', null=False))
|
|
|
|
|
]
|
|
|
|
|
)
|
2023-05-12 15:01:55 +02:00
|
|
|
|
]
|