create table latest_dynamic_list ( id serial not null, time timestamp not null, project_correlation_id int not null, alarm_appear_id int, email_send_id int, alarm_confirm_id int, type int ); comment on table latest_dynamic_list is '最新动态表'; comment on column latest_dynamic_list.type is '1:发现,2:通知,3:处置,4:确认'; create unique index latest_dynamic_list_id_uindex on latest_dynamic_list (id); alter table latest_dynamic_list add constraint latest_dynamic_list_pk primary key (id);