legacy/pairent_backend/pairent_app/migrations/0005_user.py

28 lines
1.1 KiB
Python

# Generated by Django 4.2.1 on 2023-05-12 12:45
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pairent_app', '0004_apartament_lastprice'),
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('favorites_apartaments', models.CharField(max_length=100, verbose_name='Избранные квартиры')),
('apartaments_for_comparison', models.CharField(max_length=100, verbose_name='Квартиры для сравнения')),
('psych_test_result', models.IntegerField(null=True, validators=[django.core.validators.MaxValueValidator(100)], verbose_name='Результат психологического теста')),
],
options={
'verbose_name': 'Пользователь',
'verbose_name_plural': 'Пользователи',
},
),
]