126 lines
4.1 KiB
Python
126 lines
4.1 KiB
Python
# Generated by Django 3.1.3 on 2020-12-02 22:47
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import phonenumber_field.modelfields
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('users', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Base_User',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('password', models.CharField(max_length=128, verbose_name='password')),
|
|
('email', models.EmailField(max_length=254, unique=True, verbose_name='Email')),
|
|
('phone', phonenumber_field.modelfields.PhoneNumberField(max_length=128, region=None, unique=True)),
|
|
('is_staff', models.BooleanField(default=False)),
|
|
('is_active', models.BooleanField(default=True)),
|
|
('date_joined', models.DateTimeField(auto_now_add=True, verbose_name='Date joined')),
|
|
('last_login', models.DateTimeField(verbose_name='Last Login')),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
),
|
|
migrations.DeleteModel(
|
|
name='CompanyUser',
|
|
),
|
|
migrations.RenameField(
|
|
model_name='normaluser',
|
|
old_name='last_nane',
|
|
new_name='last_name',
|
|
),
|
|
migrations.RenameField(
|
|
model_name='owneruser',
|
|
old_name='last_nane',
|
|
new_name='last_name',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='normaluser',
|
|
name='avatar',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='normaluser',
|
|
name='date_joined',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='normaluser',
|
|
name='email',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='normaluser',
|
|
name='is_active',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='normaluser',
|
|
name='is_staff',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='normaluser',
|
|
name='last_login',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='normaluser',
|
|
name='password',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='normaluser',
|
|
name='phone',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='owneruser',
|
|
name='email',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='owneruser',
|
|
name='is_active',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='owneruser',
|
|
name='is_staff',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='owneruser',
|
|
name='last_login',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='owneruser',
|
|
name='password',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='owneruser',
|
|
name='phone',
|
|
),
|
|
migrations.AddField(
|
|
model_name='normaluser',
|
|
name='birth_date',
|
|
field=models.DateField(blank=True, null=True, verbose_name='Birth date'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='owneruser',
|
|
name='company_name',
|
|
field=models.CharField(blank=True, max_length=30, verbose_name='Company name'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='owneruser',
|
|
name='status',
|
|
field=models.CharField(choices=[('Active', 'Active account'), ('Checked', 'Wait for verification'), ('Verified', 'Verified Owner')], default='Checked', max_length=32),
|
|
),
|
|
migrations.AddField(
|
|
model_name='normaluser',
|
|
name='user',
|
|
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='users.base_user'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='owneruser',
|
|
name='user',
|
|
field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, to='users.base_user'),
|
|
),
|
|
]
|