31 lines
1.1 KiB
Python
31 lines
1.1 KiB
Python
# Generated by Django 5.0.1 on 2024-01-26 12:00
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('core', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Unit',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('unit_id', models.CharField(max_length=100, unique=True)),
|
|
('unit_type', models.CharField(choices=[('Ambulance', 'Ambulance'), ('Police Car', 'Police Car')], max_length=50)),
|
|
('location_lat', models.FloatField(default=0.0)),
|
|
('location_lon', models.FloatField(default=0.0)),
|
|
('status', models.CharField(choices=[('Available', 'Available'), ('Dispatched', 'Dispatched'), ('Refueling', 'Refueling'), ('Out of Service', 'Out of Service')], default='Available', max_length=50)),
|
|
],
|
|
options={
|
|
'ordering': ['unit_id'],
|
|
},
|
|
),
|
|
migrations.DeleteModel(
|
|
name='Ticket',
|
|
),
|
|
]
|