|
@ -7,13 +7,13 @@ create table if not exists camera_status_alarm |
|
|
confirm_time timestamp with time zone, |
|
|
confirm_time timestamp with time zone, |
|
|
create_time timestamp with time zone, |
|
|
create_time timestamp with time zone, |
|
|
update_time timestamp with time zone, |
|
|
update_time timestamp with time zone, |
|
|
camera_id integer, |
|
|
serial_no varchar(64), |
|
|
|
|
|
channel_no varchar(64), |
|
|
|
|
|
platform varchar(32), |
|
|
constraint camera_status_alarm_pk |
|
|
constraint camera_status_alarm_pk |
|
|
primary key (id), |
|
|
primary key (id), |
|
|
constraint camera_status_alarm_camera_status_id_fk |
|
|
constraint camera_status_alarm_camera_status_id_fk |
|
|
foreign key (status_id) references camera_status, |
|
|
foreign key (status_id) references camera_status |
|
|
constraint camera_status_alarm_camera_id_fk |
|
|
|
|
|
foreign key (camera_id) references camera |
|
|
|
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
comment on column camera_status_alarm.description is '描述'; |
|
|
comment on column camera_status_alarm.description is '描述'; |
|
@ -24,6 +24,10 @@ comment on column camera_status_alarm.create_time is '生成时间'; |
|
|
|
|
|
|
|
|
comment on column camera_status_alarm.update_time is '更新时间'; |
|
|
comment on column camera_status_alarm.update_time is '更新时间'; |
|
|
|
|
|
|
|
|
|
|
|
comment on column camera_status_alarm.serial_no is '序列号'; |
|
|
|
|
|
|
|
|
|
|
|
comment on column camera_status_alarm.channel_no is '通道号'; |
|
|
|
|
|
|
|
|
create unique index if not exists camera_status_alarm_id_uindex |
|
|
create unique index if not exists camera_status_alarm_id_uindex |
|
|
on camera_status_alarm (id); |
|
|
on camera_status_alarm (id); |
|
|
|
|
|
|
|
|