28 lines
938 B
Python
28 lines
938 B
Python
|
# Generated by Django 3.2.9 on 2022-01-15 15:58
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Car',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('mark', models.CharField(max_length=150)),
|
||
|
('model', models.CharField(max_length=150)),
|
||
|
('mileage', models.PositiveIntegerField()),
|
||
|
('production_year', models.PositiveSmallIntegerField()),
|
||
|
('engine_capacity', models.DecimalField(decimal_places=2, max_digits=16)),
|
||
|
('combustion', models.DecimalField(decimal_places=2, max_digits=16)),
|
||
|
('price', models.DecimalField(decimal_places=2, max_digits=16)),
|
||
|
],
|
||
|
),
|
||
|
]
|