增加语音文本

This commit is contained in:
曹前明 2022-07-02 10:46:42 +08:00
parent fc0ce469e3
commit 0266e2e8e6
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.12 on 2022-07-02 02:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ecm', '0004_auto_20220702_1025'),
]
operations = [
migrations.AddField(
model_name='event',
name='voice_msg',
field=models.TextField(blank=True, null=True, verbose_name='语音文本'),
),
]

View File

@ -85,6 +85,7 @@ class Event(CommonBModel):
employee = models.ForeignKey(Employee, verbose_name='当事人',
on_delete=models.CASCADE, null=True, blank=True)
msg = models.TextField('事件文本', null=True, blank=True)
voice_msg = models.TextField('语音文本', null=True, blank=True)
voice = models.TextField('语音地址', null=True, blank=True)
is_timeout = models.BooleanField('是否超时', default=False)
mark = models.PositiveSmallIntegerField('事件标记', default=10, help_text='10(正常)/20(误报)')

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.12 on 2022-07-02 02:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('third', '0002_alter_tdevice_name'),
]
operations = [
migrations.AlterField(
model_name='tdevice',
name='type',
field=models.PositiveSmallIntegerField(choices=[(10, '定位基站'), (20, '定位信标'), (30, '定位标签'), (40, 'aoa引擎'), (50, '喇叭'), (60, '视频通道'), (70, '闸机通道'), (80, '面板机')], verbose_name='设备类型'),
),
]