create initial models and mobile test for mojtaba eshaghi
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
# Generated by Django 4.2.20 on 2025-05-05 07:54
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('authentication', '0004_user_otp_status'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='address',
|
||||
field=models.TextField(max_length=1000, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='birthdate',
|
||||
field=models.DateTimeField(null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='nationality',
|
||||
field=models.CharField(max_length=20, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='ownership',
|
||||
field=models.IntegerField(default=1, help_text='number 1 is natural & number 2 is legal'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='phone',
|
||||
field=models.CharField(max_length=18, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='user',
|
||||
name='photo',
|
||||
field=models.CharField(max_length=50, null=True),
|
||||
),
|
||||
]
|
||||
17
apps/authentication/migrations/0006_remove_user_ownership.py
Normal file
17
apps/authentication/migrations/0006_remove_user_ownership.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# Generated by Django 4.2.20 on 2025-05-05 08:20
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('authentication', '0005_user_address_user_birthdate_user_nationality_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='user',
|
||||
name='ownership',
|
||||
),
|
||||
]
|
||||
18
apps/authentication/migrations/0007_user_ownership.py
Normal file
18
apps/authentication/migrations/0007_user_ownership.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.2.20 on 2025-05-05 08:25
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('authentication', '0006_remove_user_ownership'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='ownership',
|
||||
field=models.CharField(choices=[('N', 'Natural'), ('L', 'Legal')], default='N', help_text='N is natural & L is legal', max_length=1),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user