ALTER TABLE "public"."contents_review_log" OWNER TO "ikylin_nx";
CREATE INDEX "contents_review_log_index_chat_tpye" ON "public"."contents_review_log" USING btree ( "chat_type" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST );
CREATE INDEX "contents_review_log_index_event_time" ON "public"."contents_review_log" USING btree ( "event_time" "pg_catalog"."timestamp_ops" ASC NULLS LAST );
CREATE INDEX "contents_review_log_index_generate_id" ON "public"."contents_review_log" USING btree ( "generate_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST );
CREATE UNIQUE INDEX "contents_review_log_index_id" ON "public"."contents_review_log" USING btree ( "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST );
CREATE INDEX "contents_review_log_index_role" ON "public"."contents_review_log" USING btree ( "send_role_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST, "receive_role_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST );
CREATE INDEX "contents_review_log_index_vip_level" ON "public"."contents_review_log" USING btree ( "send_vip_level" "pg_catalog"."int4_ops" ASC NULLS LAST, "receive_vip_level" "pg_catalog"."int4_ops" ASC NULLS LAST );
CREATE TRIGGER "auto_del_chat" AFTER INSERT ON "public"."contents_review_log" FOR EACH ROW EXECUTE PROCEDURE "public"."auto_del_chat"();
COMMENT ON COLUMN "public"."contents_review_log"."id" IS '唯一使用appid+违规角色id+服务器id+事件时间戳组合';
COMMENT ON COLUMN "public"."contents_review_log"."app_id" IS '游戏id';
COMMENT ON COLUMN "public"."contents_review_log"."open_id" IS '违规用户id';
COMMENT ON COLUMN "public"."contents_review_log"."platform_id" IS '平台id';
COMMENT ON COLUMN "public"."contents_review_log"."send_role_id" IS '违规角色id';
COMMENT ON COLUMN "public"."contents_review_log"."receive_role_id" IS '收信角色id';
COMMENT ON COLUMN "public"."contents_review_log"."send_server_id" IS '发送者所在服务器id';
COMMENT ON COLUMN "public"."contents_review_log"."receive_server_id" IS '接收者所在服务器id';
COMMENT ON COLUMN "public"."contents_review_log"."send_role_name" IS '发信者角色名称';
COMMENT ON COLUMN "public"."contents_review_log"."receive_role_name" IS '接收者角色名称';
COMMENT ON COLUMN "public"."contents_review_log"."send_vip_level" IS '违规角色vip等级';
COMMENT ON COLUMN "public"."contents_review_log"."receive_vip_level" IS '接收角色vip等级';
COMMENT ON COLUMN "public"."contents_review_log"."send_role_level" IS '发送者用户等级';
COMMENT ON COLUMN "public"."contents_review_log"."receive_role_level" IS '接收者用户等级';
COMMENT ON COLUMN "public"."contents_review_log"."chat_type" IS '频道';
COMMENT ON COLUMN "public"."contents_review_log"."suggestion" IS '检测结果可分为block、review';
COMMENT ON COLUMN "public"."contents_review_log"."detail" IS '语义检查结果';
COMMENT ON COLUMN "public"."contents_review_log"."chat_content" IS '审核文本';
COMMENT ON COLUMN "public"."contents_review_log"."event_time" IS '事件生成时间戳';
COMMENT ON COLUMN "public"."contents_review_log"."creation_time" IS '数据入库时间';
COMMENT ON COLUMN "public"."contents_review_log"."is_review" IS '后台是否已经处理';
COMMENT ON COLUMN "public"."contents_review_log"."generate_id" IS 'appid+违规角色id+服务器id+事件时间戳组合';
COMMENT ON TABLE "public"."contents_review_log" IS '内容审查表';
@Override publicvoidsetNonNullParameter(PreparedStatement preparedStatement, int i, Object o, JdbcType jdbcType)throws SQLException { jsonObject.setType("jsonb"); jsonObject.setValue(JSONUtil.toJsonStr(o)); preparedStatement.setObject(i, jsonObject);
}
@Override public Object getNullableResult(ResultSet resultSet, String s)throws SQLException { if (null != resultSet.getString(s)) { return JSONUtil.toBean(resultSet.getString(s), Object.class); } returnnull;
}
@Override public Object getNullableResult(ResultSet resultSet, int i)throws SQLException { if (null != resultSet.getString(i)) { return JSONUtil.toBean(resultSet.getString(i), Object.class); } returnnull;
}
@Override public Object getNullableResult(CallableStatement callableStatement, int i)throws SQLException { if (null != callableStatement.getString(i)) { return JSONUtil.toBean(callableStatement.getString(i), Object.class); } returnnull; } }