2022-01-17 14:45:10 +08:00
|
|
|
-- auto-generated definition
|
|
|
|
create table audio_resources
|
|
|
|
(
|
|
|
|
id bigint auto_increment,
|
|
|
|
name varchar(32) null comment '名称',
|
|
|
|
`desc` varchar(256) null comment '描述',
|
|
|
|
url varchar(256) not null comment '资源地址',
|
|
|
|
create_time datetime not null comment '创建时间',
|
|
|
|
update_time datetime null comment '更新时间',
|
|
|
|
constraint audio_resources_id_uindex
|
|
|
|
unique (id)
|
|
|
|
)
|
|
|
|
comment '音频资源';
|
|
|
|
|
|
|
|
alter table audio_resources
|
|
|
|
add primary key (id);
|
|
|
|
|
|
|
|
-- auto-generated definition
|
|
|
|
create table iscs_device
|
|
|
|
(
|
|
|
|
id bigint auto_increment,
|
|
|
|
map_id bigint not null comment '地图id',
|
2022-01-18 15:54:29 +08:00
|
|
|
code varchar(64) not null comment '编号',
|
2022-01-17 14:45:10 +08:00
|
|
|
`system` varchar(32) null comment '所属系统',
|
|
|
|
station varchar(32) null comment '所属车站',
|
|
|
|
position varchar(32) null comment '具体位置',
|
|
|
|
type varchar(32) not null comment '设备类型',
|
|
|
|
constraint iscs_device_id_uindex
|
|
|
|
unique (id)
|
|
|
|
)
|
|
|
|
comment 'ISCS设备';
|
|
|
|
|
|
|
|
alter table iscs_device
|
|
|
|
add primary key (id);
|
|
|
|
|
|
|
|
-- auto-generated definition
|
|
|
|
create table iscs_system_resources
|
|
|
|
(
|
|
|
|
id bigint auto_increment,
|
|
|
|
map_id bigint not null comment '地图id',
|
|
|
|
`system` varchar(32) not null comment '系统',
|
|
|
|
type varchar(32) null comment '类型',
|
|
|
|
resource_ids varchar(1024) null comment '资源id集合',
|
|
|
|
constraint iscs_system_resources_id_uindex
|
|
|
|
unique (id)
|
|
|
|
)
|
|
|
|
comment 'ISCS系统资源';
|
|
|
|
|
|
|
|
alter table iscs_system_resources
|
|
|
|
add primary key (id);
|
|
|
|
|