# Generated by Django 6.0.7 on 2026-07-14 09:26 import django.contrib.auth.models 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 = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='AccountModel', fields=[ ('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')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('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')), ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='rack.mixin.created_at')), ('deleted_at', models.DateTimeField(blank=True, null=True, verbose_name='rack.mixin.deleted_at')), ('description', models.TextField(blank=True, max_length=2048, null=True, verbose_name='rack.mixin.description')), ('updated_at', models.DateTimeField(blank=True, null=True, verbose_name='rack.mixin.updated_at')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, verbose_name='rack.mixin.id')), ('username', models.EmailField(default=None, max_length=254, verbose_name='rack.models.account.username')), ('nick_name', models.CharField(blank=True, max_length=32, null=True, verbose_name='rack.models.account.nick_name')), ('full_name', models.CharField(blank=True, max_length=127, null=True, verbose_name='rack.models.account.full_name')), ('joined_at', models.DateTimeField(blank=True, default=None, null=True, verbose_name='rack.models.account.joined_at')), ('last_login', models.DateTimeField(blank=True, default=None, null=True, verbose_name='rack.models.account.last_login')), ('extra', models.JSONField(default=dict, verbose_name='rack.models.account.extra')), ('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': 'rack.models.account', 'verbose_name_plural': 'rack.models.account_plural', 'db_table': 'rack_accounts', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='SessionModel', fields=[ ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='rack.mixin.created_at')), ('expires_at', models.DateTimeField(blank=True, null=True, verbose_name='rack.mixin.expires_at')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, verbose_name='rack.mixin.id')), ('token', models.CharField(max_length=255, verbose_name='rack.models.session_model.token')), ('device_id', models.CharField(blank=True, default='WEB', max_length=36, null=True, verbose_name='rack.models.session_model.device_id')), ('fcm_token', models.CharField(blank=True, default=None, max_length=256, null=True, verbose_name='rack.models.session_model.fcm_token')), ('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='rack.models.session_model.account')), ('actual_account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fk_session_model_actual_account', to=settings.AUTH_USER_MODEL, verbose_name='rack.models.session_model.actual_account')), ], options={ 'verbose_name': 'rack.models.session', 'verbose_name_plural': 'rack.models.session_plural', 'db_table': 'rack_sessions', }, ), migrations.AddConstraint( model_name='accountmodel', constraint=models.UniqueConstraint(fields=('username',), name='unique_account_username'), ), migrations.AddIndex( model_name='sessionmodel', index=models.Index(fields=['account'], name='rack_sessio_account_bd8396_idx'), ), migrations.AddIndex( model_name='sessionmodel', index=models.Index(fields=['actual_account'], name='rack_sessio_actual__7e7637_idx'), ), migrations.AddConstraint( model_name='sessionmodel', constraint=models.UniqueConstraint(fields=('token',), name='unique_session_token'), ), ]