40 lines
1.6 KiB
Python
40 lines
1.6 KiB
Python
# Generated by Django 3.2.16 on 2024-10-22 06:37
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='WorkersLocation',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('abonent_id', models.CharField(max_length=128, verbose_name='ID рации')),
|
|
('latitude', models.DecimalField(decimal_places=6, default=0.0, max_digits=9, verbose_name='Широта')),
|
|
('longitude', models.DecimalField(decimal_places=6, default=0.0, max_digits=9, verbose_name='Долгота')),
|
|
('velocity', models.DecimalField(decimal_places=6, default=0.0, max_digits=9, verbose_name='Скорость')),
|
|
('radius', models.DecimalField(decimal_places=6, default=0.0, max_digits=9, verbose_name='Радиус')),
|
|
('update_time', models.DateTimeField(auto_now=True, verbose_name='Время связи')),
|
|
],
|
|
options={
|
|
'verbose_name': 'объект',
|
|
'verbose_name_plural': 'объекты',
|
|
'ordering': ('abonent_id',),
|
|
},
|
|
),
|
|
migrations.AddIndex(
|
|
model_name='workerslocation',
|
|
index=models.Index(fields=['abonent_id'], name='workersloca_abonent_54a8c5_idx'),
|
|
),
|
|
migrations.AddIndex(
|
|
model_name='workerslocation',
|
|
index=models.Index(fields=['update_time'], name='workersloca_update__0a4688_idx'),
|
|
),
|
|
]
|