add: add two new model
This commit is contained in:
35
core/apps/common/migrations/0003_requisite.py
Normal file
35
core/apps/common/migrations/0003_requisite.py
Normal file
@@ -0,0 +1,35 @@
|
||||
# Generated by Django 5.2 on 2025-09-03 18:12
|
||||
|
||||
import uuid
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('common', '0002_banner_text_banner_text_en_banner_text_ru_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Requisite',
|
||||
fields=[
|
||||
('id', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
|
||||
('created_at', models.DateField(auto_now_add=True)),
|
||||
('updated_at', models.DateField(auto_now=True)),
|
||||
('company_name', models.CharField(max_length=200)),
|
||||
('legal_address', models.CharField(max_length=200)),
|
||||
('tin', models.CharField(max_length=15)),
|
||||
('okpo', models.CharField(max_length=10)),
|
||||
('oked', models.CharField(max_length=10)),
|
||||
('bank_name', models.CharField(max_length=200)),
|
||||
('bank_code', models.CharField(max_length=15)),
|
||||
('uzs', models.PositiveBigIntegerField()),
|
||||
('usd', models.PositiveBigIntegerField()),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'korxona rekvizit',
|
||||
'verbose_name_plural': 'korxona rekvizitlar',
|
||||
},
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,43 @@
|
||||
# Generated by Django 5.2 on 2025-09-03 18:13
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('common', '0003_requisite'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='requisite',
|
||||
name='company_name_en',
|
||||
field=models.CharField(max_length=200, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='requisite',
|
||||
name='company_name_ru',
|
||||
field=models.CharField(max_length=200, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='requisite',
|
||||
name='company_name_uz',
|
||||
field=models.CharField(max_length=200, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='requisite',
|
||||
name='legal_address_en',
|
||||
field=models.CharField(max_length=200, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='requisite',
|
||||
name='legal_address_ru',
|
||||
field=models.CharField(max_length=200, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='requisite',
|
||||
name='legal_address_uz',
|
||||
field=models.CharField(max_length=200, null=True),
|
||||
),
|
||||
]
|
||||
34
core/apps/common/migrations/0005_privacypolicy.py
Normal file
34
core/apps/common/migrations/0005_privacypolicy.py
Normal file
@@ -0,0 +1,34 @@
|
||||
# Generated by Django 5.2 on 2025-09-03 18:19
|
||||
|
||||
import uuid
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('common', '0004_requisite_company_name_en_requisite_company_name_ru_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='PrivacyPolicy',
|
||||
fields=[
|
||||
('id', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
|
||||
('created_at', models.DateField(auto_now_add=True)),
|
||||
('updated_at', models.DateField(auto_now=True)),
|
||||
('title', models.CharField(max_length=200)),
|
||||
('title_uz', models.CharField(max_length=200, null=True)),
|
||||
('title_en', models.CharField(max_length=200, null=True)),
|
||||
('title_ru', models.CharField(max_length=200, null=True)),
|
||||
('text', models.TextField()),
|
||||
('text_uz', models.TextField(null=True)),
|
||||
('text_en', models.TextField(null=True)),
|
||||
('text_ru', models.TextField(null=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Maxfiylik siyosati',
|
||||
'verbose_name_plural': 'Maxfiylik siyosati',
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user