From c07634a682e0ac8ff4556971cf5db3f69af26177 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Fri, 27 Sep 2024 15:24:59 +0000 Subject: [PATCH] regenerate migrations --- codeforlife/user/migrations/0001_initial.py | 353 ++++++++------------ 1 file changed, 134 insertions(+), 219 deletions(-) diff --git a/codeforlife/user/migrations/0001_initial.py b/codeforlife/user/migrations/0001_initial.py index adb07fc..509678c 100644 --- a/codeforlife/user/migrations/0001_initial.py +++ b/codeforlife/user/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 3.2.25 on 2024-09-27 10:06 +# Generated by Django 3.2.25 on 2024-09-27 15:24 import codeforlife.user.models.user import django.contrib.auth.models @@ -11,323 +11,238 @@ class Migration(migrations.Migration): initial = True dependencies = [ - ("common", "0054_delete_aimmo_models"), - ("auth", "0012_alter_user_first_name_max_length"), - ("common", "0054_delete_aimmo_models"), + ('auth', '0012_alter_user_first_name_max_length'), + ('common', '0054_delete_aimmo_models'), ] operations = [ migrations.CreateModel( - name="Independent", - fields=[], + name='Independent', + fields=[ + ], options={ - "proxy": True, - "indexes": [], - "constraints": [], + 'proxy': True, + 'indexes': [], + 'constraints': [], }, - bases=("common.student",), + bases=('common.student',), ), migrations.CreateModel( - name="NonSchoolTeacher", - fields=[], + name='NonSchoolTeacher', + fields=[ + ], options={ - "proxy": True, - "indexes": [], - "constraints": [], + 'proxy': True, + 'indexes': [], + 'constraints': [], }, - bases=("common.teacher",), + bases=('common.teacher',), ), migrations.CreateModel( - name="SchoolTeacher", - fields=[], + name='SchoolTeacher', + fields=[ + ], options={ - "proxy": True, - "indexes": [], - "constraints": [], + 'proxy': True, + 'indexes': [], + 'constraints': [], }, - bases=("common.teacher",), + bases=('common.teacher',), ), migrations.CreateModel( - name="User", - fields=[], + name='User', + fields=[ + ], options={ - "proxy": True, - "indexes": [], - "constraints": [], + 'proxy': True, + 'indexes': [], + 'constraints': [], }, - bases=("auth.user",), + bases=('auth.user',), managers=[ - ("objects", django.contrib.auth.models.UserManager()), + ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( - name="Session", + name='Session', fields=[ - ( - "session_key", - models.CharField( - max_length=40, - primary_key=True, - serialize=False, - verbose_name="session key", - ), - ), - ("session_data", models.TextField(verbose_name="session data")), - ( - "expire_date", - models.DateTimeField( - db_index=True, verbose_name="expire date" - ), - ), - ( - "user", - models.OneToOneField( - blank=True, - null=True, - on_delete=django.db.models.deletion.CASCADE, - to="user.user", - ), - ), + ('session_key', models.CharField(max_length=40, primary_key=True, serialize=False, verbose_name='session key')), + ('session_data', models.TextField(verbose_name='session data')), + ('expire_date', models.DateTimeField(db_index=True, verbose_name='expire date')), + ('user', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='user.user')), ], options={ - "verbose_name": "session", - "verbose_name_plural": "sessions", - "abstract": False, + 'verbose_name': 'session', + 'verbose_name_plural': 'sessions', + 'abstract': False, }, ), migrations.CreateModel( - name="OtpBypassToken", + name='OtpBypassToken', fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "token", - models.CharField( - help_text="The hashed equivalent of the token.", - max_length=88, - verbose_name="token", - ), - ), - ( - "user", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - related_name="otp_bypass_tokens", - to="user.user", - ), - ), + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('token', models.CharField(help_text='The hashed equivalent of the token.', max_length=88, verbose_name='token')), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='otp_bypass_tokens', to='user.user')), ], options={ - "verbose_name": "OTP bypass token", - "verbose_name_plural": "OTP bypass tokens", + 'verbose_name': 'OTP bypass token', + 'verbose_name_plural': 'OTP bypass tokens', }, ), migrations.CreateModel( - name="AuthFactor", + name='AuthFactor', fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "type", - models.TextField(choices=[("otp", "one-time password")]), - ), - ( - "user", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - related_name="auth_factors", - to="user.user", - ), - ), + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('type', models.TextField(choices=[('otp', 'one-time password')])), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='auth_factors', to='user.user')), ], options={ - "unique_together": {("user", "type")}, + 'unique_together': {('user', 'type')}, }, ), migrations.CreateModel( - name="AdminSchoolTeacher", - fields=[], + name='AdminSchoolTeacher', + fields=[ + ], options={ - "proxy": True, - "indexes": [], - "constraints": [], + 'proxy': True, + 'indexes': [], + 'constraints': [], }, - bases=("user.schoolteacher",), + bases=('user.schoolteacher',), ), migrations.CreateModel( - name="ContactableUser", - fields=[], + name='ContactableUser', + fields=[ + ], options={ - "proxy": True, - "indexes": [], - "constraints": [], + 'proxy': True, + 'indexes': [], + 'constraints': [], }, - bases=("user.user",), + bases=('user.user',), managers=[ - ("objects", django.contrib.auth.models.UserManager()), + ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( - name="NonAdminSchoolTeacher", - fields=[], + name='NonAdminSchoolTeacher', + fields=[ + ], options={ - "proxy": True, - "indexes": [], - "constraints": [], + 'proxy': True, + 'indexes': [], + 'constraints': [], }, - bases=("user.schoolteacher",), + bases=('user.schoolteacher',), ), migrations.CreateModel( - name="StudentUser", - fields=[], + name='StudentUser', + fields=[ + ], options={ - "proxy": True, - "indexes": [], - "constraints": [], + 'proxy': True, + 'indexes': [], + 'constraints': [], }, - bases=("user.user",), + bases=('user.user',), managers=[ - ("objects", codeforlife.user.models.user.StudentUserManager()), + ('objects', codeforlife.user.models.user.StudentUserManager()), ], ), migrations.CreateModel( - name="SessionAuthFactor", + name='SessionAuthFactor', fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "auth_factor", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - related_name="sessions", - to="user.authfactor", - ), - ), - ( - "session", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - related_name="auth_factors", - to="user.session", - ), - ), + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('auth_factor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sessions', to='user.authfactor')), + ('session', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='auth_factors', to='user.session')), ], options={ - "unique_together": {("session", "auth_factor")}, + 'unique_together': {('session', 'auth_factor')}, }, ), migrations.CreateModel( - name="IndependentUser", - fields=[], + name='IndependentUser', + fields=[ + ], options={ - "proxy": True, - "indexes": [], - "constraints": [], + 'proxy': True, + 'indexes': [], + 'constraints': [], }, - bases=("user.contactableuser",), + bases=('user.contactableuser',), managers=[ - ( - "objects", - codeforlife.user.models.user.IndependentUserManager(), - ), + ('objects', codeforlife.user.models.user.IndependentUserManager()), ], ), migrations.CreateModel( - name="TeacherUser", - fields=[], + name='TeacherUser', + fields=[ + ], options={ - "proxy": True, - "indexes": [], - "constraints": [], + 'proxy': True, + 'indexes': [], + 'constraints': [], }, - bases=("user.contactableuser",), + bases=('user.contactableuser',), managers=[ - ("objects", codeforlife.user.models.user.TeacherUserManager()), + ('objects', codeforlife.user.models.user.TeacherUserManager()), ], ), migrations.CreateModel( - name="NonSchoolTeacherUser", - fields=[], + name='NonSchoolTeacherUser', + fields=[ + ], options={ - "proxy": True, - "indexes": [], - "constraints": [], + 'proxy': True, + 'indexes': [], + 'constraints': [], }, - bases=("user.teacheruser",), + bases=('user.teacheruser',), managers=[ - ( - "objects", - codeforlife.user.models.user.NonSchoolTeacherUserManager(), - ), + ('objects', codeforlife.user.models.user.NonSchoolTeacherUserManager()), ], ), migrations.CreateModel( - name="SchoolTeacherUser", - fields=[], + name='SchoolTeacherUser', + fields=[ + ], options={ - "proxy": True, - "indexes": [], - "constraints": [], + 'proxy': True, + 'indexes': [], + 'constraints': [], }, - bases=("user.teacheruser",), + bases=('user.teacheruser',), managers=[ - ( - "objects", - codeforlife.user.models.user.SchoolTeacherUserManager(), - ), + ('objects', codeforlife.user.models.user.SchoolTeacherUserManager()), ], ), migrations.CreateModel( - name="AdminSchoolTeacherUser", - fields=[], + name='AdminSchoolTeacherUser', + fields=[ + ], options={ - "proxy": True, - "indexes": [], - "constraints": [], + 'proxy': True, + 'indexes': [], + 'constraints': [], }, - bases=("user.schoolteacheruser",), + bases=('user.schoolteacheruser',), managers=[ - ( - "objects", - codeforlife.user.models.user.AdminSchoolTeacherUserManager(), - ), + ('objects', codeforlife.user.models.user.AdminSchoolTeacherUserManager()), ], ), migrations.CreateModel( - name="NonAdminSchoolTeacherUser", - fields=[], + name='NonAdminSchoolTeacherUser', + fields=[ + ], options={ - "proxy": True, - "indexes": [], - "constraints": [], + 'proxy': True, + 'indexes': [], + 'constraints': [], }, - bases=("user.schoolteacheruser",), + bases=('user.schoolteacheruser',), managers=[ - ( - "objects", - codeforlife.user.models.user.NonAdminSchoolTeacherUserManager(), - ), + ('objects', codeforlife.user.models.user.NonAdminSchoolTeacherUserManager()), ], ), ]