first commit
This commit is contained in:
73
authentication/migrations/0001_initial.py
Normal file
73
authentication/migrations/0001_initial.py
Normal file
@@ -0,0 +1,73 @@
|
||||
# Generated by Django 4.2.19 on 2025-02-26 08:14
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import uuid
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='UserProfile',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('create_date', models.DateTimeField(auto_now_add=True)),
|
||||
('modify_date', models.DateTimeField(auto_now=True)),
|
||||
('trash', models.BooleanField(default=False)),
|
||||
('key', models.UUIDField(default=uuid.uuid4, null=True)),
|
||||
('fullname', models.CharField(default='', max_length=150, null=True)),
|
||||
('first_name', models.CharField(default='', max_length=200, null=True)),
|
||||
('last_name', models.CharField(default='', max_length=200, null=True)),
|
||||
('mobile', models.CharField(default='', max_length=11, null=True)),
|
||||
('password', models.CharField(max_length=100, null=True)),
|
||||
('base_order', models.BigIntegerField(null=True)),
|
||||
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_createdby', to=settings.AUTH_USER_MODEL)),
|
||||
('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_modifiedby', to=settings.AUTH_USER_MODEL)),
|
||||
('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='users', to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Province',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('key', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),
|
||||
('create_date', models.DateTimeField(auto_now_add=True)),
|
||||
('modify_date', models.DateTimeField(auto_now=True)),
|
||||
('trash', models.BooleanField(default=False)),
|
||||
('name', models.CharField(max_length=200, null=True)),
|
||||
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_createdby', to=settings.AUTH_USER_MODEL)),
|
||||
('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_modifiedby', to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='City',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('key', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),
|
||||
('create_date', models.DateTimeField(auto_now_add=True)),
|
||||
('modify_date', models.DateTimeField(auto_now=True)),
|
||||
('trash', models.BooleanField(default=False)),
|
||||
('name', models.CharField(max_length=200, null=True)),
|
||||
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_createdby', to=settings.AUTH_USER_MODEL)),
|
||||
('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_modifiedby', to=settings.AUTH_USER_MODEL)),
|
||||
('province', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='city_province', to='authentication.province')),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
},
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,33 @@
|
||||
# Generated by Django 4.2.19 on 2025-08-09 08:37
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('authentication', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='city',
|
||||
name='Lat',
|
||||
field=models.FloatField(default=0),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='city',
|
||||
name='Lng',
|
||||
field=models.FloatField(default=0),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='province',
|
||||
name='Lat',
|
||||
field=models.FloatField(default=0),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='province',
|
||||
name='Lng',
|
||||
field=models.FloatField(default=0),
|
||||
),
|
||||
]
|
||||
61
authentication/migrations/0003_auto_20250809_1248.py
Normal file
61
authentication/migrations/0003_auto_20250809_1248.py
Normal file
@@ -0,0 +1,61 @@
|
||||
# Generated by Django 3.2.13 on 2025-08-09 09:18
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('authentication', '0002_city_lat_city_lng_province_lat_province_lng'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='city',
|
||||
name='create_date',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='city',
|
||||
name='created_by',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='city',
|
||||
name='key',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='city',
|
||||
name='modified_by',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='city',
|
||||
name='modify_date',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='city',
|
||||
name='trash',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='province',
|
||||
name='create_date',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='province',
|
||||
name='created_by',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='province',
|
||||
name='key',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='province',
|
||||
name='modified_by',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='province',
|
||||
name='modify_date',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='province',
|
||||
name='trash',
|
||||
),
|
||||
]
|
||||
18
authentication/migrations/0004_province_tel_prefix.py
Normal file
18
authentication/migrations/0004_province_tel_prefix.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.2.13 on 2025-08-09 09:18
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('authentication', '0003_auto_20250809_1248'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='province',
|
||||
name='tel_prefix',
|
||||
field=models.CharField(max_length=200, null=True),
|
||||
),
|
||||
]
|
||||
0
authentication/migrations/__init__.py
Normal file
0
authentication/migrations/__init__.py
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
authentication/migrations/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
authentication/migrations/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
BIN
authentication/migrations/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
authentication/migrations/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
authentication/migrations/__pycache__/__init__.cpython-312.pyc
Normal file
BIN
authentication/migrations/__pycache__/__init__.cpython-312.pyc
Normal file
Binary file not shown.
BIN
authentication/migrations/__pycache__/__init__.cpython-39.pyc
Normal file
BIN
authentication/migrations/__pycache__/__init__.cpython-39.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user