QuickEvaluationModel modeli qoshildi shu tezkor baholash uchun ishatiladi
This commit is contained in:
43
core/apps/evaluation/migrations/0007_quickevaluationmodel.py
Normal file
43
core/apps/evaluation/migrations/0007_quickevaluationmodel.py
Normal file
@@ -0,0 +1,43 @@
|
||||
# Generated by Django 5.2.7 on 2026-02-13 13:31
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('evaluation', '0006_movablepropertyevaluationmodel'),
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='QuickEvaluationModel',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
('tech_passport_number', models.CharField(blank=True, max_length=50, null=True, verbose_name='tech passport number')),
|
||||
('license_plate', models.CharField(blank=True, max_length=20, null=True, verbose_name='license plate')),
|
||||
('model', models.CharField(blank=True, max_length=255, null=True, verbose_name='model')),
|
||||
('brand', models.CharField(blank=True, max_length=255, null=True, verbose_name='brand')),
|
||||
('manufacture_year', models.IntegerField(blank=True, null=True, verbose_name='manufacture year')),
|
||||
('mileage', models.IntegerField(blank=True, null=True, verbose_name='mileage')),
|
||||
('vin_number', models.CharField(blank=True, max_length=50, null=True, verbose_name='VIN number')),
|
||||
('engine_number', models.CharField(blank=True, max_length=50, null=True, verbose_name='engine number')),
|
||||
('color', models.CharField(blank=True, max_length=50, null=True, verbose_name='color')),
|
||||
('fuel_type', models.CharField(blank=True, choices=[('petrol', 'Petrol'), ('diesel', 'Diesel'), ('gas', 'Gas'), ('electric', 'Electric'), ('hybrid', 'Hybrid')], max_length=50, null=True, verbose_name='fuel type')),
|
||||
('body_type', models.CharField(blank=True, choices=[('hatchback', 'Hatchback'), ('sedan', 'Sedan'), ('universal', 'Universal'), ('coupe', 'Coupe'), ('cabriolet', 'Cabriolet'), ('liftback', 'Liftback'), ('minivan', 'Minivan'), ('crossover', 'Crossover')], max_length=50, null=True, verbose_name='body type')),
|
||||
('condition', models.CharField(blank=True, choices=[('excellent', 'Excellent'), ('good', 'Good'), ('average', 'Average'), ('needs_repair', 'Needs repair')], max_length=50, null=True, verbose_name='condition')),
|
||||
('estimated_price', models.DecimalField(blank=True, decimal_places=2, max_digits=15, null=True, verbose_name='estimated price')),
|
||||
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='quick_evaluations', to=settings.AUTH_USER_MODEL, verbose_name='created by')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Quick Evaluation',
|
||||
'verbose_name_plural': 'Quick Evaluations',
|
||||
'db_table': 'QuickEvaluation',
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user