33 lines
1.1 KiB
Python
33 lines
1.1 KiB
Python
# Generated by Django 3.2.16 on 2024-02-29 10:16
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Alarm',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(blank=True, default=' ', max_length=70, verbose_name='Наименование')),
|
|
('audio_file', models.FileField(upload_to='uploads/')),
|
|
('text_alarm', models.TextField(blank=True, default=' ', max_length=1500, verbose_name='Комментарий')),
|
|
],
|
|
options={
|
|
'verbose_name': 'файл тревоги',
|
|
'verbose_name_plural': 'файлы тревоги',
|
|
'ordering': ['name'],
|
|
},
|
|
),
|
|
migrations.AddIndex(
|
|
model_name='alarm',
|
|
index=models.Index(fields=['name'], name='pla_alarm_name_8518a1_idx'),
|
|
),
|
|
]
|