create table alarm_service
(
	id serial not null,
	file text not null,
	type int not null,
	create_time timestamp not null,
	comment varchar
);

comment on column alarm_service.type is '服务告警类型编号';

create unique index alarm_service_id_uindex
	on alarm_service (id);

alter table alarm_service
	add constraint alarm_service_pk
		primary key (id);




create table alarm_service_type
(
	id serial not null,
	name varchar not null,
	type_number int not null
);

comment on column alarm_service_type.type_number is '编号';

create unique index alarm_service_type_id_uindex
	on alarm_service_type (id);

alter table alarm_service_type
	add constraint alarm_service_type_pk
		primary key (id);
