29 lines
906 B
C
29 lines
906 B
C
|
|
|
||
|
|
#pragma once
|
||
|
|
/**
|
||
|
|
* @file t_rule_result.h
|
||
|
|
* @brief 报警历史
|
||
|
|
* @author Cat (null.null.null@qq.com)
|
||
|
|
* @version 0.1
|
||
|
|
* @date 2021-09-17
|
||
|
|
*
|
||
|
|
* Copyright: Baosight Co. Ltd.
|
||
|
|
* DO NOT COPY/USE WITHOUT PERMISSION
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
#include "mix_cc/sql/make_table.h"
|
||
|
|
#include "mix_cc/type/mix_time.h"
|
||
|
|
|
||
|
|
#include <string>
|
||
|
|
using namespace mix_cc::sql;
|
||
|
|
using namespace std::chrono;
|
||
|
|
|
||
|
|
MIX_CC_SQL_MAKE_TABLE(T_RULE_RESULT, (mix_cc::mix_time_t, ruleBtime),
|
||
|
|
(std::string, ruleId), (std::string, ruleGroup),
|
||
|
|
(std::string, ruleName), (std::string, result),
|
||
|
|
(int, dealResult), (int, rank),
|
||
|
|
(mix_cc::mix_time_t, ruleEtime),
|
||
|
|
(mix_cc::mix_time_t, dealTime), (std::string, dealMsg),
|
||
|
|
(mix_cc::mix_time_t, ruleLastMTime),
|
||
|
|
(mix_cc::mix_time_t, ruleLastSTime), (short, statuscode));
|