# Generated by Django 4.0.8 on 2024-08-31 11:51 import accounts.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('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')), ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('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')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('is_student', models.BooleanField(default=False)), ('is_lecturer', models.BooleanField(default=False)), ('is_parent', models.BooleanField(default=False)), ('is_dep_head', models.BooleanField(default=False)), ('gender', models.CharField(blank=True, choices=[('M', 'Male'), ('F', 'Female')], max_length=1, null=True)), ('phone', models.CharField(blank=True, max_length=60, null=True)), ('address', models.CharField(blank=True, max_length=60, null=True)), ('picture', models.ImageField(default='default.png', null=True, upload_to='profile_pictures/%y/%m/%d/')), ('email', models.EmailField(blank=True, max_length=254, null=True)), ], options={ 'ordering': ('-date_joined',), }, managers=[ ('objects', accounts.models.CustomUserManager()), ], ), migrations.CreateModel( name='DepartmentHead', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], options={ 'ordering': ('-user__date_joined',), }, ), migrations.CreateModel( name='Parent', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(max_length=120)), ('last_name', models.CharField(max_length=120)), ('phone', models.CharField(blank=True, max_length=60, null=True)), ('email', models.EmailField(blank=True, max_length=254, null=True)), ('relation_ship', models.TextField(blank=True, choices=[('Father', 'Father'), ('Mother', 'Mother'), ('Brother', 'Brother'), ('Sister', 'Sister'), ('Grand mother', 'Grand mother'), ('Grand father', 'Grand father'), ('Other', 'Other')])), ], options={ 'ordering': ('-user__date_joined',), }, ), migrations.CreateModel( name='Student', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('level', models.CharField(choices=[('Bachelor', 'Bachelor Degree'), ('Master', 'Master Degree')], max_length=25, null=True)), ], options={ 'ordering': ('-student__date_joined',), }, ), ]