Prep for replies from support
This commit is contained in:
parent
a1f6403e9e
commit
72d5c7c875
400
apex/f770/application/pages/page_00998.sql
Normal file
400
apex/f770/application/pages/page_00998.sql
Normal file
@ -0,0 +1,400 @@
|
|||||||
|
prompt --application/pages/page_00998
|
||||||
|
begin
|
||||||
|
-- Manifest
|
||||||
|
-- PAGE: 00998
|
||||||
|
-- Manifest End
|
||||||
|
wwv_flow_api.component_begin (
|
||||||
|
p_version_yyyy_mm_dd=>'2021.04.15'
|
||||||
|
,p_release=>'21.1.7'
|
||||||
|
,p_default_workspace_id=>9014660246496943
|
||||||
|
,p_default_application_id=>770
|
||||||
|
,p_default_id_offset=>0
|
||||||
|
,p_default_owner=>'CORE'
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_page(
|
||||||
|
p_id=>998
|
||||||
|
,p_user_interface_id=>wwv_flow_api.id(9169746885570061)
|
||||||
|
,p_name=>'#fa-support Support Users'
|
||||||
|
,p_alias=>'SUPPORT-USERS'
|
||||||
|
,p_step_title=>'Support Users'
|
||||||
|
,p_autocomplete_on_off=>'OFF'
|
||||||
|
,p_group_id=>wwv_flow_api.id(9490872346072322)
|
||||||
|
,p_page_template_options=>'#DEFAULT#'
|
||||||
|
,p_required_role=>wwv_flow_api.id(9823062898204869)
|
||||||
|
,p_last_updated_by=>'DEV'
|
||||||
|
,p_last_upd_yyyymmddhh24miss=>'20220315202558'
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_page_plug(
|
||||||
|
p_id=>wwv_flow_api.id(36249012658846118)
|
||||||
|
,p_plug_name=>'TABS'
|
||||||
|
,p_region_name=>'TABS'
|
||||||
|
,p_region_template_options=>'#DEFAULT#:js-useLocalStorage:t-TabsRegion-mod--simple'
|
||||||
|
,p_plug_template=>wwv_flow_api.id(9086964183569930)
|
||||||
|
,p_plug_display_sequence=>10
|
||||||
|
,p_include_in_reg_disp_sel_yn=>'Y'
|
||||||
|
,p_plug_display_point=>'BODY'
|
||||||
|
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
|
||||||
|
,p_attribute_01=>'N'
|
||||||
|
,p_attribute_02=>'HTML'
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_page_plug(
|
||||||
|
p_id=>wwv_flow_api.id(36249452728846122)
|
||||||
|
,p_plug_name=>'Support Users'
|
||||||
|
,p_parent_plug_id=>wwv_flow_api.id(36249012658846118)
|
||||||
|
,p_region_template_options=>'#DEFAULT#'
|
||||||
|
,p_plug_template=>wwv_flow_api.id(9049155795569902)
|
||||||
|
,p_plug_display_sequence=>10
|
||||||
|
,p_plug_display_point=>'BODY'
|
||||||
|
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
|
||||||
|
,p_attribute_01=>'N'
|
||||||
|
,p_attribute_02=>'HTML'
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_page_plug(
|
||||||
|
p_id=>wwv_flow_api.id(36249119976846119)
|
||||||
|
,p_plug_name=>'Support Users'
|
||||||
|
,p_parent_plug_id=>wwv_flow_api.id(36249452728846122)
|
||||||
|
,p_icon_css_classes=>'fa-support'
|
||||||
|
,p_region_template_options=>'#DEFAULT#'
|
||||||
|
,p_plug_template=>wwv_flow_api.id(9070356145569920)
|
||||||
|
,p_plug_display_sequence=>10
|
||||||
|
,p_plug_display_point=>'BODY'
|
||||||
|
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
|
||||||
|
,p_attribute_01=>'N'
|
||||||
|
,p_attribute_02=>'HTML'
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_page_plug(
|
||||||
|
p_id=>wwv_flow_api.id(36249286819846120)
|
||||||
|
,p_plug_name=>'Support Users [GRID]'
|
||||||
|
,p_parent_plug_id=>wwv_flow_api.id(36249452728846122)
|
||||||
|
,p_region_template_options=>'#DEFAULT#'
|
||||||
|
,p_plug_template=>wwv_flow_api.id(9078290074569925)
|
||||||
|
,p_plug_display_sequence=>20
|
||||||
|
,p_plug_display_point=>'BODY'
|
||||||
|
,p_query_type=>'TABLE'
|
||||||
|
,p_query_table=>'USER_MESSAGES_CHATS'
|
||||||
|
,p_include_rowid_column=>false
|
||||||
|
,p_plug_source_type=>'NATIVE_IG'
|
||||||
|
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
|
||||||
|
,p_prn_units=>'MILLIMETERS'
|
||||||
|
,p_prn_paper_size=>'A4'
|
||||||
|
,p_prn_width=>297
|
||||||
|
,p_prn_height=>210
|
||||||
|
,p_prn_orientation=>'HORIZONTAL'
|
||||||
|
,p_prn_page_header=>'Support Users [GRID]'
|
||||||
|
,p_prn_page_header_font_color=>'#000000'
|
||||||
|
,p_prn_page_header_font_family=>'Helvetica'
|
||||||
|
,p_prn_page_header_font_weight=>'normal'
|
||||||
|
,p_prn_page_header_font_size=>'12'
|
||||||
|
,p_prn_page_footer_font_color=>'#000000'
|
||||||
|
,p_prn_page_footer_font_family=>'Helvetica'
|
||||||
|
,p_prn_page_footer_font_weight=>'normal'
|
||||||
|
,p_prn_page_footer_font_size=>'12'
|
||||||
|
,p_prn_header_bg_color=>'#EEEEEE'
|
||||||
|
,p_prn_header_font_color=>'#000000'
|
||||||
|
,p_prn_header_font_family=>'Helvetica'
|
||||||
|
,p_prn_header_font_weight=>'bold'
|
||||||
|
,p_prn_header_font_size=>'10'
|
||||||
|
,p_prn_body_bg_color=>'#FFFFFF'
|
||||||
|
,p_prn_body_font_color=>'#000000'
|
||||||
|
,p_prn_body_font_family=>'Helvetica'
|
||||||
|
,p_prn_body_font_weight=>'normal'
|
||||||
|
,p_prn_body_font_size=>'10'
|
||||||
|
,p_prn_border_width=>.5
|
||||||
|
,p_prn_page_header_alignment=>'CENTER'
|
||||||
|
,p_prn_page_footer_alignment=>'CENTER'
|
||||||
|
,p_prn_border_color=>'#666666'
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_region_column(
|
||||||
|
p_id=>wwv_flow_api.id(36249736919846125)
|
||||||
|
,p_name=>'APP_ID'
|
||||||
|
,p_source_type=>'DB_COLUMN'
|
||||||
|
,p_source_expression=>'APP_ID'
|
||||||
|
,p_data_type=>'NUMBER'
|
||||||
|
,p_is_query_only=>false
|
||||||
|
,p_item_type=>'NATIVE_LINK'
|
||||||
|
,p_heading=>'App Id'
|
||||||
|
,p_heading_alignment=>'RIGHT'
|
||||||
|
,p_display_sequence=>10
|
||||||
|
,p_value_alignment=>'RIGHT'
|
||||||
|
,p_link_target=>'f?p=&APP_ID.:925:&SESSION.::&DEBUG.:925:P925_APP_ID:&APP_ID.'
|
||||||
|
,p_link_text=>'&APP_ID.'
|
||||||
|
,p_enable_filter=>true
|
||||||
|
,p_filter_is_required=>false
|
||||||
|
,p_filter_lov_type=>'NONE'
|
||||||
|
,p_use_as_row_header=>false
|
||||||
|
,p_enable_sort_group=>true
|
||||||
|
,p_enable_control_break=>true
|
||||||
|
,p_enable_hide=>true
|
||||||
|
,p_is_primary_key=>false
|
||||||
|
,p_duplicate_value=>true
|
||||||
|
,p_include_in_export=>true
|
||||||
|
,p_escape_on_http_output=>true
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_region_column(
|
||||||
|
p_id=>wwv_flow_api.id(36249824868846126)
|
||||||
|
,p_name=>'USER_ID'
|
||||||
|
,p_source_type=>'DB_COLUMN'
|
||||||
|
,p_source_expression=>'USER_ID'
|
||||||
|
,p_data_type=>'VARCHAR2'
|
||||||
|
,p_is_query_only=>false
|
||||||
|
,p_item_type=>'NATIVE_LINK'
|
||||||
|
,p_heading=>'User Id'
|
||||||
|
,p_heading_alignment=>'LEFT'
|
||||||
|
,p_display_sequence=>20
|
||||||
|
,p_value_alignment=>'LEFT'
|
||||||
|
,p_link_target=>'f?p=&APP_ID.:920:&SESSION.::&DEBUG.:920:P920_USER_ID:&USER_ID.'
|
||||||
|
,p_link_text=>'&USER_ID.'
|
||||||
|
,p_enable_filter=>true
|
||||||
|
,p_filter_operators=>'C:S:CASE_INSENSITIVE:REGEXP'
|
||||||
|
,p_filter_is_required=>false
|
||||||
|
,p_filter_text_case=>'MIXED'
|
||||||
|
,p_filter_exact_match=>true
|
||||||
|
,p_filter_lov_type=>'DISTINCT'
|
||||||
|
,p_use_as_row_header=>false
|
||||||
|
,p_enable_sort_group=>true
|
||||||
|
,p_enable_control_break=>true
|
||||||
|
,p_enable_hide=>true
|
||||||
|
,p_is_primary_key=>false
|
||||||
|
,p_duplicate_value=>true
|
||||||
|
,p_include_in_export=>true
|
||||||
|
,p_escape_on_http_output=>true
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_region_column(
|
||||||
|
p_id=>wwv_flow_api.id(36249966849846127)
|
||||||
|
,p_name=>'SESSION_ID'
|
||||||
|
,p_source_type=>'DB_COLUMN'
|
||||||
|
,p_source_expression=>'SESSION_ID'
|
||||||
|
,p_data_type=>'NUMBER'
|
||||||
|
,p_is_query_only=>false
|
||||||
|
,p_item_type=>'NATIVE_LINK'
|
||||||
|
,p_heading=>'Session Id'
|
||||||
|
,p_heading_alignment=>'RIGHT'
|
||||||
|
,p_display_sequence=>30
|
||||||
|
,p_value_alignment=>'RIGHT'
|
||||||
|
,p_link_target=>'f?p=&APP_ID.:915:&SESSION.::&DEBUG.:915:P915_SESSION_ID:&SESSION_ID.'
|
||||||
|
,p_link_text=>'&SESSION_ID.'
|
||||||
|
,p_enable_filter=>true
|
||||||
|
,p_filter_is_required=>false
|
||||||
|
,p_filter_lov_type=>'NONE'
|
||||||
|
,p_use_as_row_header=>false
|
||||||
|
,p_enable_sort_group=>true
|
||||||
|
,p_enable_control_break=>true
|
||||||
|
,p_enable_hide=>true
|
||||||
|
,p_is_primary_key=>false
|
||||||
|
,p_duplicate_value=>true
|
||||||
|
,p_include_in_export=>true
|
||||||
|
,p_escape_on_http_output=>true
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_region_column(
|
||||||
|
p_id=>wwv_flow_api.id(36250027619846128)
|
||||||
|
,p_name=>'COUNT_MESSAGES'
|
||||||
|
,p_source_type=>'DB_COLUMN'
|
||||||
|
,p_source_expression=>'COUNT_MESSAGES'
|
||||||
|
,p_data_type=>'NUMBER'
|
||||||
|
,p_is_query_only=>false
|
||||||
|
,p_item_type=>'NATIVE_NUMBER_FIELD'
|
||||||
|
,p_heading=>'Count Messages'
|
||||||
|
,p_heading_alignment=>'RIGHT'
|
||||||
|
,p_display_sequence=>40
|
||||||
|
,p_value_alignment=>'RIGHT'
|
||||||
|
,p_attribute_03=>'right'
|
||||||
|
,p_is_required=>false
|
||||||
|
,p_enable_filter=>true
|
||||||
|
,p_filter_is_required=>false
|
||||||
|
,p_filter_lov_type=>'NONE'
|
||||||
|
,p_use_as_row_header=>false
|
||||||
|
,p_enable_sort_group=>true
|
||||||
|
,p_enable_control_break=>true
|
||||||
|
,p_enable_hide=>true
|
||||||
|
,p_is_primary_key=>false
|
||||||
|
,p_duplicate_value=>true
|
||||||
|
,p_include_in_export=>true
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_region_column(
|
||||||
|
p_id=>wwv_flow_api.id(36250167843846129)
|
||||||
|
,p_name=>'COUNT_USERS'
|
||||||
|
,p_source_type=>'DB_COLUMN'
|
||||||
|
,p_source_expression=>'COUNT_USERS'
|
||||||
|
,p_data_type=>'NUMBER'
|
||||||
|
,p_is_query_only=>false
|
||||||
|
,p_item_type=>'NATIVE_NUMBER_FIELD'
|
||||||
|
,p_heading=>'Count Users'
|
||||||
|
,p_heading_alignment=>'RIGHT'
|
||||||
|
,p_display_sequence=>50
|
||||||
|
,p_value_alignment=>'RIGHT'
|
||||||
|
,p_attribute_03=>'right'
|
||||||
|
,p_is_required=>false
|
||||||
|
,p_enable_filter=>true
|
||||||
|
,p_filter_is_required=>false
|
||||||
|
,p_filter_lov_type=>'NONE'
|
||||||
|
,p_use_as_row_header=>false
|
||||||
|
,p_enable_sort_group=>true
|
||||||
|
,p_enable_control_break=>true
|
||||||
|
,p_enable_hide=>true
|
||||||
|
,p_is_primary_key=>false
|
||||||
|
,p_duplicate_value=>true
|
||||||
|
,p_include_in_export=>true
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_region_column(
|
||||||
|
p_id=>wwv_flow_api.id(36250205519846130)
|
||||||
|
,p_name=>'START_AT'
|
||||||
|
,p_source_type=>'DB_COLUMN'
|
||||||
|
,p_source_expression=>'START_AT'
|
||||||
|
,p_data_type=>'DATE'
|
||||||
|
,p_is_query_only=>false
|
||||||
|
,p_item_type=>'NATIVE_DATE_PICKER_JET'
|
||||||
|
,p_heading=>'Start At'
|
||||||
|
,p_heading_alignment=>'CENTER'
|
||||||
|
,p_display_sequence=>60
|
||||||
|
,p_value_alignment=>'CENTER'
|
||||||
|
,p_attribute_01=>'N'
|
||||||
|
,p_attribute_02=>'POPUP'
|
||||||
|
,p_attribute_03=>'NONE'
|
||||||
|
,p_attribute_06=>'NONE'
|
||||||
|
,p_attribute_09=>'N'
|
||||||
|
,p_attribute_11=>'Y'
|
||||||
|
,p_format_mask=>'&FORMAT_DATE_TIME.'
|
||||||
|
,p_is_required=>false
|
||||||
|
,p_enable_filter=>true
|
||||||
|
,p_filter_is_required=>false
|
||||||
|
,p_filter_date_ranges=>'ALL'
|
||||||
|
,p_filter_lov_type=>'DISTINCT'
|
||||||
|
,p_use_as_row_header=>false
|
||||||
|
,p_enable_sort_group=>true
|
||||||
|
,p_enable_control_break=>true
|
||||||
|
,p_enable_hide=>true
|
||||||
|
,p_is_primary_key=>false
|
||||||
|
,p_duplicate_value=>true
|
||||||
|
,p_include_in_export=>true
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_region_column(
|
||||||
|
p_id=>wwv_flow_api.id(36250362418846131)
|
||||||
|
,p_name=>'END_AT'
|
||||||
|
,p_source_type=>'DB_COLUMN'
|
||||||
|
,p_source_expression=>'END_AT'
|
||||||
|
,p_data_type=>'DATE'
|
||||||
|
,p_is_query_only=>false
|
||||||
|
,p_item_type=>'NATIVE_DATE_PICKER_JET'
|
||||||
|
,p_heading=>'End At'
|
||||||
|
,p_heading_alignment=>'CENTER'
|
||||||
|
,p_display_sequence=>70
|
||||||
|
,p_value_alignment=>'CENTER'
|
||||||
|
,p_attribute_01=>'N'
|
||||||
|
,p_attribute_02=>'POPUP'
|
||||||
|
,p_attribute_03=>'NONE'
|
||||||
|
,p_attribute_06=>'NONE'
|
||||||
|
,p_attribute_09=>'N'
|
||||||
|
,p_attribute_11=>'Y'
|
||||||
|
,p_format_mask=>'&FORMAT_DATE_TIME.'
|
||||||
|
,p_is_required=>false
|
||||||
|
,p_enable_filter=>true
|
||||||
|
,p_filter_is_required=>false
|
||||||
|
,p_filter_date_ranges=>'ALL'
|
||||||
|
,p_filter_lov_type=>'DISTINCT'
|
||||||
|
,p_use_as_row_header=>false
|
||||||
|
,p_enable_sort_group=>true
|
||||||
|
,p_enable_control_break=>true
|
||||||
|
,p_enable_hide=>true
|
||||||
|
,p_is_primary_key=>false
|
||||||
|
,p_duplicate_value=>true
|
||||||
|
,p_include_in_export=>true
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_interactive_grid(
|
||||||
|
p_id=>wwv_flow_api.id(36249618337846124)
|
||||||
|
,p_internal_uid=>36249618337846124
|
||||||
|
,p_is_editable=>false
|
||||||
|
,p_lazy_loading=>false
|
||||||
|
,p_requires_filter=>false
|
||||||
|
,p_select_first_row=>false
|
||||||
|
,p_fixed_row_height=>true
|
||||||
|
,p_pagination_type=>'SET'
|
||||||
|
,p_show_total_row_count=>true
|
||||||
|
,p_show_toolbar=>true
|
||||||
|
,p_toolbar_buttons=>'SEARCH_COLUMN:SEARCH_FIELD:ACTIONS_MENU:SAVE'
|
||||||
|
,p_enable_save_public_report=>false
|
||||||
|
,p_enable_subscriptions=>true
|
||||||
|
,p_enable_flashback=>true
|
||||||
|
,p_define_chart_view=>true
|
||||||
|
,p_enable_download=>true
|
||||||
|
,p_download_formats=>'CSV:HTML:XLSX:PDF'
|
||||||
|
,p_enable_mail_download=>true
|
||||||
|
,p_fixed_header=>'PAGE'
|
||||||
|
,p_show_icon_view=>false
|
||||||
|
,p_show_detail_view=>false
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_ig_report(
|
||||||
|
p_id=>wwv_flow_api.id(36279714925844163)
|
||||||
|
,p_interactive_grid_id=>wwv_flow_api.id(36249618337846124)
|
||||||
|
,p_static_id=>'362798'
|
||||||
|
,p_type=>'PRIMARY'
|
||||||
|
,p_default_view=>'GRID'
|
||||||
|
,p_show_row_number=>false
|
||||||
|
,p_settings_area_expanded=>true
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_ig_report_view(
|
||||||
|
p_id=>wwv_flow_api.id(36279936188844164)
|
||||||
|
,p_report_id=>wwv_flow_api.id(36279714925844163)
|
||||||
|
,p_view_type=>'GRID'
|
||||||
|
,p_srv_exclude_null_values=>false
|
||||||
|
,p_srv_only_display_columns=>true
|
||||||
|
,p_edit_mode=>false
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_ig_report_column(
|
||||||
|
p_id=>wwv_flow_api.id(36280448349844166)
|
||||||
|
,p_view_id=>wwv_flow_api.id(36279936188844164)
|
||||||
|
,p_display_seq=>1
|
||||||
|
,p_column_id=>wwv_flow_api.id(36249736919846125)
|
||||||
|
,p_is_visible=>true
|
||||||
|
,p_is_frozen=>false
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_ig_report_column(
|
||||||
|
p_id=>wwv_flow_api.id(36281312836844169)
|
||||||
|
,p_view_id=>wwv_flow_api.id(36279936188844164)
|
||||||
|
,p_display_seq=>2
|
||||||
|
,p_column_id=>wwv_flow_api.id(36249824868846126)
|
||||||
|
,p_is_visible=>true
|
||||||
|
,p_is_frozen=>false
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_ig_report_column(
|
||||||
|
p_id=>wwv_flow_api.id(36282255810844171)
|
||||||
|
,p_view_id=>wwv_flow_api.id(36279936188844164)
|
||||||
|
,p_display_seq=>3
|
||||||
|
,p_column_id=>wwv_flow_api.id(36249966849846127)
|
||||||
|
,p_is_visible=>true
|
||||||
|
,p_is_frozen=>false
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_ig_report_column(
|
||||||
|
p_id=>wwv_flow_api.id(36283162318844173)
|
||||||
|
,p_view_id=>wwv_flow_api.id(36279936188844164)
|
||||||
|
,p_display_seq=>4
|
||||||
|
,p_column_id=>wwv_flow_api.id(36250027619846128)
|
||||||
|
,p_is_visible=>true
|
||||||
|
,p_is_frozen=>false
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_ig_report_column(
|
||||||
|
p_id=>wwv_flow_api.id(36284086634844175)
|
||||||
|
,p_view_id=>wwv_flow_api.id(36279936188844164)
|
||||||
|
,p_display_seq=>5
|
||||||
|
,p_column_id=>wwv_flow_api.id(36250167843846129)
|
||||||
|
,p_is_visible=>true
|
||||||
|
,p_is_frozen=>false
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_ig_report_column(
|
||||||
|
p_id=>wwv_flow_api.id(36284918138844177)
|
||||||
|
,p_view_id=>wwv_flow_api.id(36279936188844164)
|
||||||
|
,p_display_seq=>6
|
||||||
|
,p_column_id=>wwv_flow_api.id(36250205519846130)
|
||||||
|
,p_is_visible=>true
|
||||||
|
,p_is_frozen=>false
|
||||||
|
);
|
||||||
|
wwv_flow_api.create_ig_report_column(
|
||||||
|
p_id=>wwv_flow_api.id(36285843865844180)
|
||||||
|
,p_view_id=>wwv_flow_api.id(36279936188844164)
|
||||||
|
,p_display_seq=>7
|
||||||
|
,p_column_id=>wwv_flow_api.id(36250362418846131)
|
||||||
|
,p_is_visible=>true
|
||||||
|
,p_is_frozen=>false
|
||||||
|
);
|
||||||
|
wwv_flow_api.component_end;
|
||||||
|
end;
|
||||||
|
/
|
||||||
@ -152,6 +152,7 @@ prompt --install
|
|||||||
@@application/pages/page_00995.sql
|
@@application/pages/page_00995.sql
|
||||||
@@application/pages/page_00996.sql
|
@@application/pages/page_00996.sql
|
||||||
@@application/pages/page_00997.sql
|
@@application/pages/page_00997.sql
|
||||||
|
@@application/pages/page_00998.sql
|
||||||
@@application/pages/page_09999.sql
|
@@application/pages/page_09999.sql
|
||||||
@@application/deployment/definition.sql
|
@@application/deployment/definition.sql
|
||||||
@@application/deployment/install/install_install_tables.sql
|
@@application/deployment/install/install_install_tables.sql
|
||||||
|
|||||||
@ -38,7 +38,7 @@ FROM user_messages m
|
|||||||
JOIN x
|
JOIN x
|
||||||
ON x.app_id = m.app_id
|
ON x.app_id = m.app_id
|
||||||
AND x.user_id = m.user_id
|
AND x.user_id = m.user_id
|
||||||
--AND x.session_id = m.session_id
|
AND x.session_id = m.session_id
|
||||||
WHERE m.message_type = 'CHAT'
|
WHERE m.message_type = 'CHAT'
|
||||||
ORDER BY m.created_at DESC
|
ORDER BY m.created_at DESC
|
||||||
FETCH FIRST 20 ROWS ONLY;
|
FETCH FIRST 20 ROWS ONLY;
|
||||||
|
|||||||
15
views/user_messages_chats.sql
Normal file
15
views/user_messages_chats.sql
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
CREATE OR REPLACE VIEW user_messages_chats AS
|
||||||
|
SELECT
|
||||||
|
m.app_id,
|
||||||
|
m.user_id,
|
||||||
|
m.session_id,
|
||||||
|
--
|
||||||
|
COUNT(*) AS count_messages,
|
||||||
|
COUNT(DISTINCT m.created_by) AS count_users,
|
||||||
|
--
|
||||||
|
MIN(m.created_at) AS start_at,
|
||||||
|
MAX(m.created_at) AS end_at
|
||||||
|
FROM user_messages m
|
||||||
|
WHERE m.message_type = 'CHAT'
|
||||||
|
GROUP BY m.app_id, m.user_id, m.session_id
|
||||||
|
;
|
||||||
Loading…
x
Reference in New Issue
Block a user