-- ----------------------------
-- Table structure for alarm_event
-- ----------------------------
DROP TABLE IF EXISTS "alarm_event";
CREATE TABLE "alarm_event" (
  "id" integer NOT NULL,
  "ne_type" text(32) NOT NULL,
  "ne_id" text(64) NOT NULL,
  "alarm_seq" integer(11),
  "alarm_id" text(32) NOT NULL,
  "alarm_title" text(255),
  "alarm_code" integer(11),
  "event_time" integer(20),
  "object_uid" text(64),
  "object_name" text(64),
  "object_type" text(20),
  "location_info" text(2048),
  "alarm_status" text(10),
  "specific_problem" text(255),
  "specific_problem_id" text(100),
  "add_info" text(2048),
  "clear_type" integer(11),
  "clear_time" integer(20),
  "clear_user" text(16),
  "timestamp" integer(20),
  PRIMARY KEY ("id")
);

-- ----------------------------
-- Indexes structure for table alarm_event
-- ----------------------------
CREATE INDEX "idx_astatus_etime"
ON "alarm_event" (
  "alarm_status" ASC,
  "event_time" ASC
);
CREATE UNIQUE INDEX "uk_ti_aid_aseq"
ON "alarm_event" (
  "ne_type" ASC,
  "ne_id" ASC,
  "alarm_id" ASC,
  "alarm_seq" ASC
);

-- ----------------------------
-- Records of alarm_event
-- ----------------------------
