sql
stringlengths
6
1.05M
create table Classes( class_id int, subject_id int foreign key references subjects(subject_id), teacher_id int foreign key references Teachers(teacher_id), class_code varchar(20), class_name varchar(100), date_from date, date_to date primary key(class_id) )
<reponame>MikeKutz/Data-Dictionary-Searcher create or replace package "dd" authid current_user as subtype "param_t" is number(4); subtype "search_option_t" is int; subtype "boolean_t" is varchar2(3); TRUE_VALUE constant "boolean_t" := 'YES'; FALSE_VALUE constant "boolean_t" := 'NO'; /* Maximum column size for COLUMN_NAME_20/CONSTRAINT_NAME_20/etc. Set this prior to generating code */ PARAM_MAX_OBJECT_NAME_SIZE "param_t" := 20; /* Add additional SEQ_ID row Set to TRUE for mapping columns to an APEX Collection -- TODO: move to Cursor Parameter default is FALSE */ PARAM_INCLUDE_SEQ_ID "param_t" := FALSE_VALUE; -- Maximum number of generic columns in APEX_COLLECTIONS PARAM_MAX_VC2 constant "param_t" := 50; PARAM_MAX_NUMBER constant "param_t" := 5; PARAM_MAX_DATE constant "param_t" := 5; PARAM_MAX_CLOB constant "param_t" := 1; PARAM_MAX_BLOB constant "param_t" := 1; PARAM_MAX_XMLTYPE constant "param_t" := 1; -- Filtering options NO_FILTER constant "search_option_t" := null; ALL_COLUMNS constant "search_option_t" := 0; PK_COLUMNS constant "search_option_t" := power(2,0); -- not yet implemented HIDDEN_COLUMNS constant "search_option_t" := power(2,1); SYSTEM_GENERATED_COLUMNS constant "search_option_t" := power(2,2); -- requires >= 172.16.17.32 VIRTUAL_COLUMNS constant "search_option_t" := power(2,3); PARTITION_KEY_COLUMNS constant "search_option_t" := power(2,4); -- not yet implemented -- Defaults for filtering options DEFAULT_INCLUDE constant "search_option_t" := "dd".NO_FILTER; DEFAULT_EXCLUDE constant "search_option_t" := "dd".HIDDEN_COLUMNS + "dd".SYSTEM_GENERATED_COLUMNS; /* DESCRIPTION This cursor returns Column information from the Data Dictionary sorted by the (added) ORDER_BY column. COLUMNS RETURNED FROM THE DATA DICTIONARY OWNER table_name column_name data_type data_type_mod data_type_owner data_length data_precision data_scale CHAR_USED nullable -- decoded to YES/NO column_id data_default -- LONG (for now) hidden_column VIRTUAL_COLUMN QUALIFIED_COL_NAME COLUMN_COMMENTS ADDITIONAL COLUMNS DATA_TYPE_DESC String representation of the data type (logic comes from SQL*Developer's Shift-F4) COLUMN_NAME_20 Similar to DOS 8.3 format for long names, this converts the COLUMN_NAME to the length of "dd".PARAM_MAX_OBJECT_NAME_SIZE IS_PK Is the column part of the Primary Key? Values are 'YES' or 'NO' ORDER_BY Sequential gap free number of the results ordered by COLUMN_ID RESULTS ARE ORDERED BY THIS VALUE ORDER_BY_DESC Sequential gap free number of the results ordered by COLUMN_ID DESC COMMA_FIRST Value is a comma if the result is not the first row (ORDER_BY=1) The value is a space if it is COMMA_LAST Value is a comma if the result is not the last row (ORDER_BY_DESC=1) The value is a space if it is ADDITIONAL COLUMNS FOR MAPPING TO APEX_COLLECTIONS SEQ_ID_COLUMN This column is mapped to APEX_COLLECTIONS.SEQ_ID column Values are 'YES' or 'NO' COLLECTION_COLUMN_NAME If mappable, this is the COLUMN_NAME in APEX_COLLECTIONS -- todo COLLECTION_DATA_TYPE If mappable, this is the DATA_TYPE in APEX_COLLECTIONS -- todo FILTERING Only columns that meet the conditions defined by the INCLUDE_OPTIONS parameter and columns that do not meet the conditions listed by the EXCLUDE_OPTIONS parameter are returned. Sum the column filter options to set the search parameters. By default, only non-HIDDEN and non-system generated columns are returned. FILTERING EXAMPLES To exclude Virtual Column in addition to the defaults: for curr in "dd"."Columns"( 'SCOTT','EMP' ,EXCLUDE_OPTIONS => "dd".DEFAULT_EXCLUDE + "dd".VIRTUAL_COLUMNS ) loop null; end loop; To retrieve only the PK columns: for curr in "dd"."Columns"( 'SCOTT','EMP', INCLUDE_OPTINS => "dd".PK_COLUMNS ) loop null; end loop; COLUMN FILTER OPTIONS NO_FILTER A filter is not used ALL_COLUMNS Use for filtering all columns PK_COLUMNS Use for filtering columns that are part of the Primary Key HIDDEN_COLUMNS Use for filtering Hidden Columns (HIDDEN_COLUMN='Y') SYSTEM_GENERATED_COLUMNS Use for filtering system generated columns (USER_GENERATED<>'Y') VIRTUAL_COLUMNS Use for filter Virtual Columns (VIRTUAL_COLUMN='Y') PARTITION_KEY_COLUMNS TODO: Is this columns part of the Partitioning Key? DEFAULT_INCLUDE default search condition for INCLUDE_OPTIONS value = NO_FILTER DEFAULT_EXCLUDE default search condition for EXCLUDE_OPTIONS value = HIDDEN_COLUMNS + SYSTEM_GENERATED_COLUMNS "Column2" same columns as "Column" SEARCH_PARAMETER choices are: PK - consider columns that are part of the Primary Key VIRTUAL - consider columns that are VIRTUAL HIDDEN - consider columns that are HIDDEN SYSTEM - (12c) consider system generated columns (eg ORA$ARCHIVE_STATE) no prefix will force this column type (all options are AND) Prefix of "+" will include this column type (options are OR with results of 1) Prefix of "-" will exclude this column type HIDDEN COLUMNS ARE RETURNED BY DEFAULT EXAMPLES SEARCH_PARAM => 'PK' Returns all IS_PK columns SEARCH_PARAM => 'PK VIRTUAL' Returns all IS_PK columns that are also VIRTUAL columns SEARCH_PARAM => 'PK +VIRTUAL' Returns all IS_PK columns in addition to all VIRTUAL columns SEARCH_PARAM => 'PK -VIRTUAL' Returns all IS_PK columns that are not VIRTUAL columns. Most common searches: SEARCH_PARAM => '-HIDDEN' Returns non-hidden columns SEARCH_PARAM => 'PK' Returns only PK columns SEARCH_PARAM => '-HIDDEN -PK' Returns non-hidden, non-PK columns SEARCH_PARAM => '-HIDDEN -PK -VIRTUAL' Returns all visible non-pk, non-virtual columns */ cursor "Columns"( OWNER in SYS.ALL_TAB_COLUMNS.OWNER%type ,TABLE_NAME in SYS.ALL_TAB_COLUMNS.TABLE_NAME%type ,INCLUDE_OPTIONS in "search_option_t" default DEFAULT_INCLUDE ,EXCLUDE_OPTIONS in "search_option_t" default DEFAULT_EXCLUDE ) is with PK_COLUMN_LIST as ( select c.owner,c.table_name,cc.column_name ,decode(count(*) over (partition by c.owner,c.constraint_name),1,"dd".TRUE_VALUE) SINGLE_PK_COLUMN from sys.all_constraints c join sys.all_cons_columns cc on c.owner=cc.owner and c.constraint_name=cc.constraint_name where c.OWNER="Columns".OWNER and c.TABLE_NAME="Columns".TABLE_NAME and c.constraint_type='P' ), OWNER_TABLE_FILTERED_DATA as ( select a.owner ,a.table_name ,a.column_name ,a.data_type ,a.data_type_mod ,a.data_type_owner ,a.data_length ,a.data_precision ,a.data_scale ,a.CHAR_USED ,decode(a.nullable,'Y',TRUE_VALUE,FALSE_VALUE) as NULLABLE ,a.column_id ,a.data_default -- TODO: "dd_util".LONG2VARCHAR2() ,a.hidden_column ,a.VIRTUAL_COLUMN ,a.QUALIFIED_COL_NAME ,m.COMMENTS ,case when length(a.COLUMN_NAME) <= "dd".PARAM_MAX_OBJECT_NAME_SIZE then a.COLUMN_NAME else substr(a.COLUMN_NAME, 1, "dd".PARAM_MAX_OBJECT_NAME_SIZE - 4) || '$' || row_number() over (partition by a.OWNER,a.TABLE_NAME order by case when length(a.COLUMN_NAME) > "dd".PARAM_MAX_OBJECT_NAME_SIZE then 1 end) end COLUMN_NAME_20 ,case a.data_type when 'CHAR' then data_type||'('||a.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')' when 'VARCHAR' then data_type||'('||a.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')' when 'VARCHAR2' then data_type||'('||a.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')' when 'NCHAR' then data_type||'('||a.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')' when 'NUMBER' then case when a.data_precision is null and a.data_scale is null then 'NUMBER' when a.data_precision is null and a.data_scale is not null then 'NUMBER(38,'||a.data_scale||')' else a.data_type||'('||a.data_precision||','||a.data_SCALE||')' end when 'NVARCHAR' then a.data_type||'('||a.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')' when 'NVARCHAR2' then a.data_type||'('||a.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')' else a.data_type end DATA_TYPE_DESC ,nvl2(p.COLUMN_NAME,"dd".TRUE_VALUE,"dd".FALSE_VALUE) as IS_PK ,coalesce( $IF SYS.DBMS_DB_VERSION.VERSION >= 12 $THEN a.IS_IDENTITY -- 12c+ (correct column name?) $ELSE NULL -- pre-12c $END ,decode(a.DATA_TYPE,'NUMBER',p.SINGLE_PK_COLUMN) ,"dd".FALSE_VALUE ) as SEQ_ID_COLUMN ,case when 'YES'= coalesce( $IF SYS.DBMS_DB_VERSION.VERSION >= 12 $THEN a.IS_IDENTITY -- 12c+ (correct column name?) $ELSE NULL -- pre-12c $END ,decode(a.DATA_TYPE,'NUMBER',p.SINGLE_PK_COLUMN) ,"dd".FALSE_VALUE ) then 'SEQ_ID' when a.data_type = 'DATE' and row_number() over (partition by a.owner,a.table_name,a.data_type order by a.column_id nulls last,a.COLUMN_NAME) <= "dd".PARAM_MAX_DATE then 'DATE' when a.data_type = 'NUMBER' and row_number() over (partition by a.owner,a.table_name,a.data_type, coalesce( $IF SYS.DBMS_DB_VERSION.VERSION >= 12 $THEN a.IS_IDENTITY -- 12c+ (correct column name?) $ELSE NULL -- pre-12c $END ,decode(a.DATA_TYPE,'NUMBER',p.SINGLE_PK_COLUMN) ,"dd".FALSE_VALUE ) order by a.column_id,a.column_name) <= "dd".PARAM_MAX_NUMBER then 'NUMBER' when a.data_type = 'CLOB' and row_number() over (partition by a.owner,a.table_name,a.data_type order by a.column_id,a.column_name) <= "dd".PARAM_MAX_CLOB then 'CLOB' when a.data_type = 'BLOB' and row_number() over (partition by a.owner,a.table_name,a.data_type order by a.column_id,a.column_name) <= "dd".PARAM_MAX_BLOB then 'BLOB' when a.data_type = 'XMLTYPE' and row_number() over (partition by a.owner,a.table_name,a.data_type order by a.column_id,a.column_name) <= "dd".PARAM_MAX_BLOB then 'XML_TYPE' when a.data_type in ('VARCHAR2','NUMBER','DATE') then 'VARCHAR2' end collection_data_type from SYS.ALL_TAB_COLS a left outer join PK_COLUMN_LIST p on a.OWNER=p.OWNER and a.TABLE_NAME=p.TABLE_NAME and a.COLUMN_NAME=p.COLUMN_NAME left outer join SYS.ALL_COL_COMMENTS m on a.OWNER=m.OWNER and a.TABLE_NAME=m.TABLE_NAME and a.COLUMN_NAME=m.COLUMN_NAME where a.OWNER = "Columns".OWNER and a.TABLE_NAME = "Columns".TABLE_NAME and a.COLUMN_ID is not null -- VCs for FBIs ), APEX_MAPPED_DATA as ( select d.owner ,d.table_name ,d.column_name ,d.data_type ,d.data_type_mod ,d.data_type_owner ,d.data_length ,d.data_precision ,d.data_scale ,d.CHAR_USED ,d.nullable ,d.column_id ,d.data_default ,d.hidden_column ,d.VIRTUAL_COLUMN ,d.QUALIFIED_COL_NAME ,d.COLUMN_NAME_20 ,d.DATA_TYPE_DESC ,d.SEQ_ID_COLUMN ,d.IS_PK ,d.COMMENTS ,case collection_data_type when 'SEQ_ID' then 'NUMBER' when 'VARCHAR2' then case when row_number() over (partition by owner,table_name,collection_data_type order by column_id,column_name) <= "dd".PARAM_MAX_VC2 then COLLECTION_DATA_TYPE end else COLLECTION_DATA_TYPE end COLLECTION_DATA_TYPE ,case collection_data_type when 'SEQ_ID' then 'SEQ_ID' when 'VARCHAR2' then case when row_number() over (partition by owner,table_name,collection_data_type order by column_id,column_name) <= "dd".PARAM_MAX_VC2 then 'C' || lpad( row_number() over (partition by owner,table_name,collection_data_type order by column_id,column_name) ,3, '0') end when 'NUMBER' then 'N' || lpad( row_number() over (partition by owner,table_name,collection_data_type order by column_id,column_name) ,3, '0') when 'DATE' then 'D' || lpad( row_number() over (partition by owner,table_name,collection_data_type order by column_id,column_name) ,3, '0') when 'BLOB' then 'BLOB' || lpad( row_number() over (partition by owner,table_name,collection_data_type order by column_id,column_name) ,3, '0') when 'CLOB' then 'CLOB' || lpad( row_number() over (partition by owner,table_name,collection_data_type order by column_id,column_name) ,3, '0') END COLLECTION_COLUMN_NAME from OWNER_TABLE_FILTERED_DATA d ), OPTION_FILTERED_DATA as ( select f.owner ,f.table_name ,f.column_name ,f.data_type ,f.data_type_mod ,f.data_type_owner ,f.data_length ,f.data_precision ,f.data_scale ,f.CHAR_USED ,f.nullable ,f.column_id ,f.data_default ,f.hidden_column ,f.VIRTUAL_COLUMN ,f.QUALIFIED_COL_NAME ,f.COLUMN_NAME_20 ,f.DATA_TYPE_DESC ,f.SEQ_ID_COLUMN ,f.collection_data_type ,f.IS_PK ,f.COLLECTION_COLUMN_NAME ,f.COMMENTS from APEX_MAPPED_DATA f where ( -- filter INCLUDE_OPTIONS "Columns".INCLUDE_OPTIONS is null or "Columns".INCLUDE_OPTIONS = "dd".ALL_COLUMNS or (bitand( "Columns".INCLUDE_OPTIONS,"dd".PK_COLUMNS) > 0 and f.IS_PK = "dd".TRUE_VALUE) or (bitand( "Columns".INCLUDE_OPTIONS,"dd".HIDDEN_COLUMNS) > 0 and f.HIDDEN_COLUMN='YES') or (bitand( "Columns".INCLUDE_OPTIONS,"dd".SYSTEM_GENERATED_COLUMNS) > 0 and $IF SYS.DBMS_DB_VERSION.VERSION >= 11 $THEN f.USER_GENERATED <> 'YES' $ELSE 1=0 $END ) or (bitand( "Columns".INCLUDE_OPTIONS,"dd".VIRTUAL_COLUMNS) > 0 and f.VIRTUAL_COLUMN='YES') ) and ( -- filter EXCLUDE_OPTIONS "Columns".EXCLUDE_OPTIONS is not null or not ( "Columns".EXCLUDE_OPTIONS = "dd".ALL_COLUMNS or (bitand( "Columns".EXCLUDE_OPTIONS,"dd".PK_COLUMNS) > 0 and 1=0) or (bitand( "Columns".EXCLUDE_OPTIONS,"dd".HIDDEN_COLUMNS) > 0 and f.HIDDEN_COLUMN='YES') or (bitand( "Columns".EXCLUDE_OPTIONS,"dd".SYSTEM_GENERATED_COLUMNS) > 0 and $IF SYS.DBMS_DB_VERSION.VERSION >= 11 $THEN f.USER_GENERATED <> 'YES' $ELSE 1=0 $END ) or (bitand( "Columns".EXCLUDE_OPTIONS,"dd".VIRTUAL_COLUMNS) > 0 and f.VIRTUAL_COLUMN='YES') ) ) ), data as ( select o.owner ,o.table_name ,o.column_name ,o.data_type ,o.data_type_mod ,o.data_type_owner ,o.data_length ,o.data_precision ,o.data_scale ,o.CHAR_USED ,o.nullable ,o.column_id ,o.data_default ,o.hidden_column ,o.VIRTUAL_COLUMN ,o.QUALIFIED_COL_NAME ,o.COLUMN_NAME_20 ,o.DATA_TYPE_DESC ,o.SEQ_ID_COLUMN ,o.collection_data_type ,o.IS_PK ,o.COLLECTION_COLUMN_NAME ,o.COMMENTS ,row_number() over (partition by o.OWNER,o.TABLE_NAME order by o.COLUMN_ID) as ORDER_BY ,decode( row_number() over (partition by o.OWNER,o.TABLE_NAME order by o.COLUMN_ID) ,1, ' ', ',' ) as COMMA_FIRST ,row_number() over (partition by o.OWNER,o.TABLE_NAME order by o.COLUMN_ID desc) as ORDER_BY_DESC ,decode( row_number() over (partition by o.OWNER,o.TABLE_NAME order by o.COLUMN_ID desc) ,1, ' ', ',' ) as COMMA_LAST from OPTION_FILTERED_DATA o ) select * from data d order by OWNER,TABLE_NAME,ORDER_BY; cursor "Columns2"( OWNER in SYS.ALL_TAB_COLUMNS.OWNER%type ,TABLE_NAME in SYS.ALL_TAB_COLUMNS.TABLE_NAME%type ,SEARCH_OPTION in VARCHAR2 ) is with PK_COLUMN_LIST as ( select c.owner,c.table_name,cc.column_name ,decode(count(*) over (partition by c.owner,c.constraint_name),1,"dd".TRUE_VALUE) SINGLE_PK_COLUMN from sys.all_constraints c join sys.all_cons_columns cc on c.owner=cc.owner and c.constraint_name=cc.constraint_name where c.OWNER="Columns2".OWNER and c.TABLE_NAME="Columns2".TABLE_NAME and c.constraint_type='P' ), OWNER_TABLE_FILTERED_DATA as ( select a.owner ,a.table_name ,a.column_name ,a.data_type ,a.data_type_mod ,a.data_type_owner ,a.data_length ,a.data_precision ,a.data_scale ,a.CHAR_USED ,decode(a.nullable,'Y',TRUE_VALUE,FALSE_VALUE) as NULLABLE ,a.column_id ,a.data_default -- TODO: "dd_util".LONG2VARCHAR2() ,a.hidden_column ,a.VIRTUAL_COLUMN ,a.QUALIFIED_COL_NAME ,m.COMMENTS ,case when length(a.COLUMN_NAME) <= "dd".PARAM_MAX_OBJECT_NAME_SIZE then a.COLUMN_NAME else substr(a.COLUMN_NAME, 1, "dd".PARAM_MAX_OBJECT_NAME_SIZE - 4) || '$' || row_number() over (partition by a.OWNER,a.TABLE_NAME order by case when length(a.COLUMN_NAME) > "dd".PARAM_MAX_OBJECT_NAME_SIZE then 1 end) end COLUMN_NAME_20 ,case a.data_type when 'CHAR' then data_type||'('||a.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')' when 'VARCHAR' then data_type||'('||a.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')' when 'VARCHAR2' then data_type||'('||a.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')' when 'NCHAR' then data_type||'('||a.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')' when 'NUMBER' then case when a.data_precision is null and a.data_scale is null then 'NUMBER' when a.data_precision is null and a.data_scale is not null then 'NUMBER(38,'||a.data_scale||')' else a.data_type||'('||a.data_precision||','||a.data_SCALE||')' end when 'NVARCHAR' then a.data_type||'('||a.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')' when 'NVARCHAR2' then a.data_type||'('||a.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')' else a.data_type end DATA_TYPE_DESC ,nvl2(p.COLUMN_NAME,"dd".TRUE_VALUE,"dd".FALSE_VALUE) as IS_PK ,coalesce( $IF SYS.DBMS_DB_VERSION.VERSION >= 12 $THEN a.IS_IDENTITY -- 12c+ (correct column name?) $ELSE NULL -- pre-12c $END ,decode(a.DATA_TYPE,'NUMBER',p.SINGLE_PK_COLUMN) ,"dd".FALSE_VALUE ) as SEQ_ID_COLUMN ,case when 'YES'= coalesce( $IF SYS.DBMS_DB_VERSION.VERSION >= 12 $THEN a.IS_IDENTITY -- 12c+ (correct column name?) $ELSE NULL -- pre-12c $END ,decode(a.DATA_TYPE,'NUMBER',p.SINGLE_PK_COLUMN) ,"dd".FALSE_VALUE ) then 'SEQ_ID' when a.data_type = 'DATE' and row_number() over (partition by a.owner,a.table_name,a.data_type order by a.column_id nulls last,a.COLUMN_NAME) <= "dd".PARAM_MAX_DATE then 'DATE' when a.data_type = 'NUMBER' and row_number() over (partition by a.owner,a.table_name,a.data_type, coalesce( $IF SYS.DBMS_DB_VERSION.VERSION >= 12 $THEN a.IS_IDENTITY -- 12c+ (correct column name?) $ELSE NULL -- pre-12c $END ,decode(a.DATA_TYPE,'NUMBER',p.SINGLE_PK_COLUMN) ,"dd".FALSE_VALUE ) order by a.column_id,a.column_name) <= "dd".PARAM_MAX_NUMBER then 'NUMBER' when a.data_type = 'CLOB' and row_number() over (partition by a.owner,a.table_name,a.data_type order by a.column_id,a.column_name) <= "dd".PARAM_MAX_CLOB then 'CLOB' when a.data_type = 'BLOB' and row_number() over (partition by a.owner,a.table_name,a.data_type order by a.column_id,a.column_name) <= "dd".PARAM_MAX_BLOB then 'BLOB' when a.data_type = 'XMLTYPE' and row_number() over (partition by a.owner,a.table_name,a.data_type order by a.column_id,a.column_name) <= "dd".PARAM_MAX_BLOB then 'XML_TYPE' when a.data_type in ('VARCHAR2','NUMBER','DATE') then 'VARCHAR2' end collection_data_type from SYS.ALL_TAB_COLS a left outer join PK_COLUMN_LIST p on a.OWNER=p.OWNER and a.TABLE_NAME=p.TABLE_NAME and a.COLUMN_NAME=p.COLUMN_NAME left outer join SYS.ALL_COL_COMMENTS m on a.OWNER=m.OWNER and a.TABLE_NAME=m.TABLE_NAME and a.COLUMN_NAME=m.COLUMN_NAME where a.OWNER = "Columns2".OWNER and a.TABLE_NAME = "Columns2".TABLE_NAME and a.COLUMN_ID is not null -- VCs for FBIs ), APEX_MAPPED_DATA as ( select d.owner ,d.table_name ,d.column_name ,d.data_type ,d.data_type_mod ,d.data_type_owner ,d.data_length ,d.data_precision ,d.data_scale ,d.CHAR_USED ,d.nullable ,d.column_id ,d.data_default ,d.hidden_column ,d.VIRTUAL_COLUMN ,d.QUALIFIED_COL_NAME ,d.COLUMN_NAME_20 ,d.DATA_TYPE_DESC ,d.SEQ_ID_COLUMN ,d.IS_PK ,d.COMMENTS ,case collection_data_type when 'SEQ_ID' then 'NUMBER' when 'VARCHAR2' then case when row_number() over (partition by owner,table_name,collection_data_type order by column_id,column_name) <= "dd".PARAM_MAX_VC2 then COLLECTION_DATA_TYPE end else COLLECTION_DATA_TYPE end COLLECTION_DATA_TYPE ,case collection_data_type when 'SEQ_ID' then 'SEQ_ID' when 'VARCHAR2' then case when row_number() over (partition by owner,table_name,collection_data_type order by column_id,column_name) <= "dd".PARAM_MAX_VC2 then 'C' || lpad( row_number() over (partition by owner,table_name,collection_data_type order by column_id,column_name) ,3, '0') end when 'NUMBER' then 'N' || lpad( row_number() over (partition by owner,table_name,collection_data_type order by column_id,column_name) ,3, '0') when 'DATE' then 'D' || lpad( row_number() over (partition by owner,table_name,collection_data_type order by column_id,column_name) ,3, '0') when 'BLOB' then 'BLOB' || lpad( row_number() over (partition by owner,table_name,collection_data_type order by column_id,column_name) ,3, '0') when 'CLOB' then 'CLOB' || lpad( row_number() over (partition by owner,table_name,collection_data_type order by column_id,column_name) ,3, '0') END COLLECTION_COLUMN_NAME from OWNER_TABLE_FILTERED_DATA d ), OPTION_FILTERED_DATA as ( select f.owner ,f.table_name ,f.column_name ,f.data_type ,f.data_type_mod ,f.data_type_owner ,f.data_length ,f.data_precision ,f.data_scale ,f.CHAR_USED ,f.nullable ,f.column_id ,f.data_default ,f.hidden_column ,f.VIRTUAL_COLUMN ,f.QUALIFIED_COL_NAME ,f.COLUMN_NAME_20 ,f.DATA_TYPE_DESC ,f.SEQ_ID_COLUMN ,f.collection_data_type ,f.IS_PK ,f.COLLECTION_COLUMN_NAME ,f.COMMENTS from APEX_MAPPED_DATA f WHERE ( ( 1=1 AND IS_PK IN ( 'YES', case when REGEXP_LIKE( SEARCH_OPTION, '(^|[^+-])PK') then '---' else 'NO' end ) AND virtual_column IN ( 'YES', case when REGEXP_LIKE( SEARCH_OPTION, '(^|[^+-])VIRTUAL') then '---' else 'NO' end ) and hidden_column IN ( 'YES', case when REGEXP_LIKE( SEARCH_OPTION, '(^|[^+-])HIDDEN') then '---' else 'NO' end ) ) OR 1=decode( IS_PK,'YES', case when SEARCH_OPTION like '%+PK%' then 1 ELSE 0 end ,0 ) OR 1=decode( virtual_column,'YES', case when SEARCH_OPTION like '%+VIRTUAL%' then 1 ELSE 0 end ,0 ) OR 1=decode( hidden_column,'YES', case when SEARCH_OPTION like '%+HIDDEN%' then 1 ELSE 0 end ,0 ) ) AND NOT ( 1=0 OR 1=decode( IS_PK,'YES', case when SEARCH_OPTION like '%-PK%' then 1 ELSE 0 end ,0 ) OR 1=decode( virtual_column,'YES', case when SEARCH_OPTION like '%-VIRTUAL%' then 1 ELSE 0 end ,0 ) OR 1=decode( hidden_column,'YES', case when SEARCH_OPTION like '%-HIDDEN%' then 1 ELSE 0 end ,0 ) ) ), data as ( select o.owner ,o.table_name ,o.column_name ,o.data_type ,o.data_type_mod ,o.data_type_owner ,o.data_length ,o.data_precision ,o.data_scale ,o.CHAR_USED ,o.nullable ,o.column_id ,o.data_default ,o.hidden_column ,o.VIRTUAL_COLUMN ,o.QUALIFIED_COL_NAME ,o.COLUMN_NAME_20 ,o.DATA_TYPE_DESC ,o.SEQ_ID_COLUMN ,o.collection_data_type ,o.IS_PK ,o.COLLECTION_COLUMN_NAME ,o.COMMENTS ,row_number() over (partition by o.OWNER,o.TABLE_NAME order by o.COLUMN_ID) as ORDER_BY ,decode( row_number() over (partition by o.OWNER,o.TABLE_NAME order by o.COLUMN_ID) ,1, ' ', ',' ) as COMMA_FIRST ,row_number() over (partition by o.OWNER,o.TABLE_NAME order by o.COLUMN_ID desc) as ORDER_BY_DESC ,decode( row_number() over (partition by o.OWNER,o.TABLE_NAME order by o.COLUMN_ID desc) ,1, ' ', ',' ) as COMMA_LAST from OPTION_FILTERED_DATA o ) select * from data d order by OWNER,TABLE_NAME,ORDER_BY; type "pipe_columns_t" is table of "Columns"%rowtype; end; /
/*****************************************************************************/ /* Archivo: 04_insert_oauth_client.sql */ /* Base de datos: oreciprocas */ /* Producto: Operaciones Reciprocas */ /* Aplicaciones Impactadas: oreciprocas */ /* Diseño: Zamir García */ /* */ /* PREREQUISITOS */ /* 1. 01_oreciprocas_db.sql */ /* */ /* PROPOSITO */ /* Carga inicial de datos en la tabla OAUTH_CLIENT */ /* */ /* MODIFICACIONES */ /* FECHA AUTOR RAZON */ /* 2019-02-05 <NAME> Construcción de WI_46008 */ /*****************************************************************************/ USE oreciprocas GO INSERT INTO OAUTH_CLIENT (CLIENT_ID, RESOURCE_IDS, CLIENT_SECRET, SCOPE, AUTHORIZED_GRANT_TYPES, AUTHORITIES, REDIRECT_URIS, ACCESSTOKEN_VALIDITY_SECONDS, REFRESHTOKEN_VALIDITY_SECONDS, SCOPE_AUTO_APPROVE) VALUES ('oreciprocas-ng', 'oreciprocas-rest', '$2a$10$Q.f.QxQuUrZeM3CAfmBLE.Ak7NxeAdYBJN7eYEFLPA.CDCY80iLyi', 'read, write', 'client_credentials, password, refresh_token', 'ROLE_TRUSTED_CLIENT', null, 240, 600, 0) GO
<reponame>create-ware/webcms # ************************************************************ # Sequel Ace SQL dump # Version 20019 # # https://sequel-ace.com/ # https://github.com/Sequel-Ace/Sequel-Ace # # Host: 0.0.0.0 (MySQL 5.5.5-10.6.4-MariaDB-1:10.6.4+maria~focal) # Database: webcms # Generation Time: 2021-12-24 2:25:21 a.m. +0000 # ************************************************************ /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; SET NAMES utf8mb4; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE='NO_AUTO_VALUE_ON_ZERO', SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; # Dump of table dashboard_setting # ------------------------------------------------------------ DROP TABLE IF EXISTS `dashboard_setting`; CREATE TABLE `dashboard_setting` ( `created_at` datetime DEFAULT current_timestamp(), `updated_at` datetime DEFAULT current_timestamp(), `deleted_at` datetime DEFAULT '0000-00-00 00:00:00', `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `dashboard_setting_key` varchar(100) NOT NULL, `dashboard_setting_value` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uc_dashboard_setting_uk` (`dashboard_setting_key`,`deleted_at`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; # Dump of table file # ------------------------------------------------------------ DROP TABLE IF EXISTS `file`; CREATE TABLE `file` ( `created_at` datetime DEFAULT current_timestamp(), `updated_at` datetime DEFAULT current_timestamp(), `deleted_at` datetime DEFAULT '0000-00-00 00:00:00', `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `file_name` varchar(200) NOT NULL, `file_title` varchar(255) DEFAULT '', `file_description` varchar(255) DEFAULT '', `file_mime_type` varchar(50) DEFAULT '', `file_size` varchar(100) DEFAULT '', `user_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `fkc_file_user_id` (`user_id`), CONSTRAINT `fkc_file_user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; # Dump of table language # ------------------------------------------------------------ DROP TABLE IF EXISTS `language`; CREATE TABLE `language` ( `created_at` datetime DEFAULT current_timestamp(), `updated_at` datetime DEFAULT current_timestamp(), `deleted_at` datetime DEFAULT '0000-00-00 00:00:00', `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `language_name` varchar(50) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uc_language_uk` (`language_name`,`deleted_at`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; LOCK TABLES `language` WRITE; /*!40000 ALTER TABLE `language` DISABLE KEYS */; INSERT INTO `language` (`created_at`, `updated_at`, `deleted_at`, `id`, `language_name`) VALUES ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',1,'en'), ('2021-10-14 06:42:48','2021-12-09 02:44:22','0000-00-00 00:00:00',2,'es'); /*!40000 ALTER TABLE `language` ENABLE KEYS */; UNLOCK TABLES; # Dump of table language_message # ------------------------------------------------------------ DROP TABLE IF EXISTS `language_message`; CREATE TABLE `language_message` ( `created_at` datetime DEFAULT current_timestamp(), `updated_at` datetime DEFAULT current_timestamp(), `deleted_at` datetime DEFAULT '0000-00-00 00:00:00', `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `language_id` int(10) unsigned NOT NULL, `language_message_key` varchar(200) NOT NULL, `language_message_value` varchar(200) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uc_language_message_uk` (`language_id`,`language_message_key`,`deleted_at`), CONSTRAINT `fkc_language_message_language_id` FOREIGN KEY (`language_id`) REFERENCES `language` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; LOCK TABLES `language_message` WRITE; /*!40000 ALTER TABLE `language_message` DISABLE KEYS */; INSERT INTO `language_message` (`created_at`, `updated_at`, `deleted_at`, `id`, `language_id`, `language_message_key`, `language_message_value`) VALUES ('2021-12-01 03:18:41','2021-12-09 02:44:22','0000-00-00 00:00:00',1,2,'Files','Archivos'), ('2021-12-01 03:18:41','2021-12-09 02:44:22','0000-00-00 00:00:00',2,2,'Dashboard','Tablero'), ('2021-12-09 02:44:22','2021-12-09 02:44:22','0000-00-00 00:00:00',3,2,'Users','Usuarios'); /*!40000 ALTER TABLE `language_message` ENABLE KEYS */; UNLOCK TABLES; # Dump of table notification # ------------------------------------------------------------ DROP TABLE IF EXISTS `notification`; CREATE TABLE `notification` ( `created_at` datetime DEFAULT current_timestamp(), `updated_at` datetime DEFAULT current_timestamp(), `deleted_at` datetime DEFAULT '0000-00-00 00:00:00', `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `notification_title` varchar(150) NOT NULL, `notification_description` varchar(255) DEFAULT '', `notification_type` enum('log','error') NOT NULL, PRIMARY KEY (`id`), KEY `fkc_notification_user_id` (`user_id`), CONSTRAINT `fkc_notification_user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; # Dump of table resource # ------------------------------------------------------------ DROP TABLE IF EXISTS `resource`; CREATE TABLE `resource` ( `created_at` datetime DEFAULT current_timestamp(), `updated_at` datetime DEFAULT current_timestamp(), `deleted_at` datetime DEFAULT '0000-00-00 00:00:00', `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `resource_name` varchar(200) NOT NULL, `resource_description` varchar(255) DEFAULT '', `resource_type` enum('view','data') NOT NULL, `resource_path` varchar(255) DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `uc_resource_uk` (`resource_name`,`resource_type`,`deleted_at`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; LOCK TABLES `resource` WRITE; /*!40000 ALTER TABLE `resource` DISABLE KEYS */; INSERT INTO `resource` (`created_at`, `updated_at`, `deleted_at`, `id`, `resource_name`, `resource_description`, `resource_type`, `resource_path`) VALUES ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',1,'dashboard','','view',''), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',2,'dashboard','','data','/dashboard/[0-9]*(/)*'), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',3,'file','','view',''), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',4,'files','','view',''), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',5,'file','','data','/file/[0-9]*(/)*'), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',6,'files','','data','/files/[0-9]*(/)*'), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',7,'user','','view',''), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',8,'users','','view',''), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',9,'user','','data','/user/[0-9]*(/)*'), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',10,'users','','data','/users/[0-9]*(/)*'), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',11,'role','','view',''), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',12,'roles','','view',''), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',13,'role','','data','/role/[0-9]*(/)*'), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',14,'roles','','data','/roles/[0-9]*(/)*'), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',15,'resource','','view',''), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',16,'resources','','view',''), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',17,'resource','','data','/resource/[0-9]*(/)*'), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',18,'resources','','data','/resources/[0-9]*(/)*'), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',19,'search','','data','/search/?s=[dDw0-9a-zA-Z]+'), ('2021-10-14 06:42:48','2021-10-14 06:42:48','2021-11-30 21:34:26',20,'search-file','','data','/search-file/?s=[dDw0-9a-zA-Z]+&mimetype=[a-z0-9-.]*'), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',21,'languages','','view',''), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',22,'language','','view',''), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',23,'languages','','data','/languages/[0-9]*(/)*'), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',24,'language','','data','/language/[0-9]*(/)*'), ('2021-10-14 06:42:48','2021-10-14 06:42:48','0000-00-00 00:00:00',25,'profile','','data','/profile/'), ('2021-11-30 21:39:19','2021-11-30 21:39:19','0000-00-00 00:00:00',26,'notifications','notifications','data','/notifications/[0-9]*(/)*'), ('2021-11-30 21:39:42','2021-11-30 21:39:42','0000-00-00 00:00:00',27,'notification','notification','data','/notification/[0-9]*(/)*'); /*!40000 ALTER TABLE `resource` ENABLE KEYS */; UNLOCK TABLES; # Dump of table role # ------------------------------------------------------------ DROP TABLE IF EXISTS `role`; CREATE TABLE `role` ( `created_at` datetime DEFAULT current_timestamp(), `updated_at` datetime DEFAULT current_timestamp(), `deleted_at` datetime DEFAULT '0000-00-00 00:00:00', `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `role_name` varchar(200) NOT NULL, `user_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uc_role_uk` (`user_id`,`role_name`,`deleted_at`), CONSTRAINT `fkc_role_user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; LOCK TABLES `role` WRITE; /*!40000 ALTER TABLE `role` DISABLE KEYS */; INSERT INTO `role` (`created_at`, `updated_at`, `deleted_at`, `id`, `role_name`, `user_id`) VALUES ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',1,'administrator',1); /*!40000 ALTER TABLE `role` ENABLE KEYS */; UNLOCK TABLES; # Dump of table role_resource # ------------------------------------------------------------ DROP TABLE IF EXISTS `role_resource`; CREATE TABLE `role_resource` ( `created_at` datetime DEFAULT current_timestamp(), `updated_at` datetime DEFAULT current_timestamp(), `deleted_at` datetime DEFAULT '0000-00-00 00:00:00', `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `role_id` int(10) unsigned NOT NULL, `resource_id` int(10) unsigned NOT NULL, `permission` varchar(100) DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `uc_role_resource_uk` (`role_id`,`resource_id`,`deleted_at`), KEY `fkc_role_resource_resource_id` (`resource_id`), CONSTRAINT `fkc_role_resource_resource_id` FOREIGN KEY (`resource_id`) REFERENCES `resource` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fkc_role_resource_role_id` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; LOCK TABLES `role_resource` WRITE; /*!40000 ALTER TABLE `role_resource` DISABLE KEYS */; INSERT INTO `role_resource` (`created_at`, `updated_at`, `deleted_at`, `id`, `role_id`, `resource_id`, `permission`) VALUES ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',1,1,1,'v'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',2,1,2,'c,r,u,d'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',3,1,3,'v'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',4,1,4,'v'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',5,1,5,'c,r,u,d'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',6,1,6,'c,r,u,d'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',7,1,7,'v'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',8,1,8,'v'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',9,1,9,'c,r,u,d'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',10,1,10,'c,r,u,d'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',11,1,11,'v'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',12,1,12,'v'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',13,1,13,'c,r,u,d'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',14,1,14,'c,r,u,d'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',15,1,15,'v'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',16,1,16,'v'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',17,1,17,'c,r,u,d'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',18,1,18,'c,r,u,d'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',19,1,19,'c,r,u,d'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',21,1,21,'v'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',22,1,22,'v'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',23,1,23,'c,r,u,d'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',24,1,24,'c,r,u,d'), ('2021-10-14 06:42:48','2021-12-01 04:11:58','0000-00-00 00:00:00',25,1,25,'c,r,u,d'), ('2021-11-30 21:40:19','2021-12-01 04:11:58','0000-00-00 00:00:00',26,1,26,'c,r,u,d'), ('2021-11-30 21:40:26','2021-12-01 04:11:58','0000-00-00 00:00:00',27,1,27,'c,r,u,d'); /*!40000 ALTER TABLE `role_resource` ENABLE KEYS */; UNLOCK TABLES; # Dump of table session # ------------------------------------------------------------ DROP TABLE IF EXISTS `session`; CREATE TABLE `session` ( `session_id` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, `expires` int(11) unsigned NOT NULL, `data` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`session_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; LOCK TABLES `session` WRITE; /*!40000 ALTER TABLE `session` DISABLE KEYS */; INSERT INTO `session` (`session_id`, `expires`, `data`) VALUES (X'41724C41714F566B5374646E65416E61714B4C4642476A6357366E427A7A4834',1640571830,X'7B2265787069726573223A22323032312D31322D32375430323A32333A34392E3832355A222C22636F6F6B6965223A7B226D6178416765223A3235393230303030302C2270617468223A222F222C22687474704F6E6C79223A747275652C22736563757265223A66616C73652C2265787069726573223A22323032312D31322D32375430323A32333A34392E3832355A222C2273616D6553697465223A6E756C6C2C22646F6D61696E223A22776562636D732E6465227D2C2273657373696F6E4964223A2241724C41714F566B5374646E65416E61714B4C4642476A6357366E427A7A4834222C22656E6372797074656453657373696F6E4964223A2241724C41714F566B5374646E65416E61714B4C4642476A6357366E427A7A48342E6F75434B3136396A5651764876687A30452F7A2B774B5545525852335273636B76544F66722F6431512F34222C2275736572223A7B226964223A2231222C22757365725F6964223A2231222C22757365725F6E616D65223A2261646D696E222C22726F6C655F6964223A2231222C22757365725F726F6C655F6E616D65223A2261646D696E6973747261746F72222C22757365725F737461747573223A226F66666C696E65227D7D'); /*!40000 ALTER TABLE `session` ENABLE KEYS */; UNLOCK TABLES; # Dump of table user # ------------------------------------------------------------ DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `created_at` datetime DEFAULT current_timestamp(), `updated_at` datetime DEFAULT current_timestamp(), `deleted_at` datetime DEFAULT '0000-00-00 00:00:00', `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `role_id` int(10) unsigned NOT NULL, `language_id` int(10) unsigned NOT NULL, `profile_file_id` int(10) unsigned DEFAULT NULL, `user_id` int(10) unsigned NOT NULL DEFAULT 1, `user_name` varchar(100) NOT NULL, `user_pass` varchar(100) NOT NULL, `user_email` varchar(100) NOT NULL, `user_first_name` varchar(100) NOT NULL, `user_last_name` varchar(100) NOT NULL, `user_active` tinyint(1) unsigned DEFAULT 0, `user_status` enum('offline','online') DEFAULT 'offline', PRIMARY KEY (`id`), UNIQUE KEY `uc_user_uk` (`user_name`,`user_email`,`deleted_at`), KEY `fkc_user_role_id` (`role_id`), KEY `fkc_user_language_id` (`language_id`), KEY `fkc_user_profile_file_id` (`profile_file_id`), KEY `fkc_user_user_id` (`user_id`), CONSTRAINT `fkc_user_language_id` FOREIGN KEY (`language_id`) REFERENCES `language` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fkc_user_profile_file_id` FOREIGN KEY (`profile_file_id`) REFERENCES `file` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fkc_user_role_id` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fkc_user_user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; LOCK TABLES `user` WRITE; /*!40000 ALTER TABLE `user` DISABLE KEYS */; INSERT INTO `user` (`created_at`, `updated_at`, `deleted_at`, `id`, `role_id`, `language_id`, `profile_file_id`, `user_id`, `user_name`, `user_pass`, `user_email`, `user_first_name`, `user_last_name`, `user_active`, `user_status`) VALUES ('2021-10-14 06:42:49','2021-10-14 06:42:49','0000-00-00 00:00:00',1,1,1,NULL,1,'admin','$2b$12$ch.Z4new2A82e0muy4taBe.pKFVVC5eIsL/Js2vnP35BZ2XVBRu9G','<EMAIL>','Eduardo','<NAME>',1,'offline'); /*!40000 ALTER TABLE `user` ENABLE KEYS */; UNLOCK TABLES; # Dump of table website_setting # ------------------------------------------------------------ DROP TABLE IF EXISTS `website_setting`; CREATE TABLE `website_setting` ( `created_at` datetime DEFAULT current_timestamp(), `updated_at` datetime DEFAULT current_timestamp(), `deleted_at` datetime DEFAULT '0000-00-00 00:00:00', `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `website_setting_key` varchar(100) NOT NULL, `website_setting_value` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uc_website_setting_uk` (`website_setting_key`,`deleted_at`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>make_database/User.sql load data local infile 'User.csv' into table User fields terminated by ',' enclosed by '\'' lines terminated by '\n' (user_id, username, password); select * from User;
-- StagingTurkey / StatingFiltered / MosaicFiltered and MosaicFiltered -- ============================================================================================================= -- Created By: <NAME> -- Usage: Generate TSQL Script to move databases from Old path to New Path -- https://dba.stackexchange.com/questions/52007/how-do-i-move-sql-server-database-files -- Total INPUTS: 3 -- ============================================================================================================= SET NOCOUNT ON; -- INPUT 01 -> Path for Data Files DECLARE @p_Old_Data_Path varchar(255) = 'H:\'; -- Leave NULL if no change required DECLARE @p_New_Data_Path varchar(255) = 'L:\'; -- Leave NULL if no change required -- INPUT 02 -> Path for Log Files DECLARE @p_Old_Log_Path varchar(255) = 'H:'; -- Leave NULL if no change required DECLARE @p_New_Log_Path varchar(255) = 'L:'; -- Leave NULL if no change required -- INPUT 03 -> Comma separated list of Databases IF OBJECT_ID('tempdb..#Dbs2Consider') IS NOT NULL DROP TABLE #Dbs2Consider; SELECT d.database_id, d.name, d.recovery_model_desc INTO #Dbs2Consider FROM sys.databases as d WHERE d.database_id > 4 AND d.name IN ('FaceBook', 'MuzeUK', 'Twitter', 'UKVideo')--,'StagingFiltered','StagingTurkey','MosaicFiltered','MosaicFiltered') -- Parameter Validations DECLARE @NewLineChar AS CHAR(2) = CHAR(13) + CHAR(10) DECLARE @_errorMSG VARCHAR(2000); DECLARE @_IsValidParameter BIT = 1; DECLARE @_Old_Data_Path varchar(255); DECLARE @_New_Data_Path varchar(255); DECLARE @_DataFileCounts int = 0; DECLARE @_Old_Log_Path varchar(255); DECLARE @_New_Log_Path varchar(255); DECLARE @_LogFileCounts int = 0; DECLARE @_robocopy_DataFiles VARCHAR(3000); DECLARE @_robocopy_LogFiles VARCHAR(3000); IF @p_Old_Data_Path IS NULL AND @p_New_Data_Path IS NULL AND @p_Old_Log_Path IS NULL AND @p_New_Log_Path IS NULL BEGIN SET @_IsValidParameter = 0 END IF NOT((@p_Old_Data_Path IS NULL AND @p_New_Data_Path IS NULL) OR (@p_Old_Data_Path IS NOT NULL AND @p_New_Data_Path IS NOT NULL)) BEGIN SET @_IsValidParameter = 0 END IF NOT((@p_Old_Log_Path IS NULL AND @p_New_Log_Path IS NULL) OR (@p_Old_Log_Path IS NOT NULL AND @p_New_Log_Path IS NOT NULL)) BEGIN SET @_IsValidParameter = 0 END IF @_IsValidParameter = 0 BEGIN SET @_errorMSG = 'Kindly provide correct values for @p_Old_Data_Path/@p_New_Data_Path and @p_Old_Log_Path/@p_New_Log_Path.'; IF (select CAST(LEFT(CAST(SERVERPROPERTY('ProductVersion') AS VARCHAR(50)),charindex('.',CAST(SERVERPROPERTY('ProductVersion') AS VARCHAR(50)))-1) AS INT)) >= 12 EXECUTE sp_executesql N'THROW 50000,@_errorMSG,1',N'@_errorMSG VARCHAR(200)', @_errorMSG; ELSE EXECUTE sp_executesql N'RAISERROR (@_errorMSG, 16, 1)', N'@_errorMSG VARCHAR(200)', @_errorMSG; END IF @_IsValidParameter = 1 BEGIN -- Begin block for @_IsValidParameter = 1 SET @_Old_Data_Path = @p_Old_Data_Path; SET @_Old_Log_Path = @p_Old_Log_Path; ;WITH T_File_Paths AS ( SELECT LEFT(mf.physical_name,LEN(mf.physical_name)-CHARINDEX('\',REVERSE(mf.physical_name))+1) as FilePath, COUNT(*) as FileCounts FROM sys.master_files as mf WHERE mf.database_id IN (SELECT d.database_id FROM #Dbs2Consider AS d) AND (mf.physical_name LIKE (@p_Old_Data_Path+'%') OR mf.physical_name LIKE (@p_Old_Log_Path+'%')) GROUP BY LEFT(mf.physical_name,LEN(mf.physical_name)-CHARINDEX('\',REVERSE(mf.physical_name))+1) ) SELECT @_Old_Data_Path = CASE WHEN LEN(@p_Old_Data_Path) <= 3 THEN CASE WHEN FilePath LIKE (@p_Old_Data_Path+'%') AND @_DataFileCounts < FileCounts THEN FilePath ELSE @_Old_Data_Path END ELSE @_Old_Data_Path END ,@_Old_Log_Path = CASE WHEN LEN(@p_Old_Log_Path) <= 3 THEN CASE WHEN FilePath LIKE (@p_Old_Log_Path+'%') AND @_LogFileCounts < FileCounts THEN FilePath ELSE @_Old_Log_Path END ELSE @_Old_Log_Path END ,@_New_Data_Path = CASE WHEN LEN(@p_New_Data_Path) <= 3 THEN CASE WHEN FilePath LIKE (@p_Old_Data_Path+'%') AND @_DataFileCounts < FileCounts THEN (LEFT(@p_New_Data_Path,1)+SUBSTRING(FilePath,2,LEN(FilePath))) ELSE @_New_Data_Path END ELSE @p_New_Data_Path END ,@_New_Log_Path = CASE WHEN LEN(@p_New_Log_Path) <= 3 THEN CASE WHEN FilePath LIKE (@p_Old_Log_Path+'%') AND @_LogFileCounts < FileCounts THEN (LEFT(@p_New_Log_Path,1)+SUBSTRING(FilePath,2,LEN(FilePath))) ELSE @_New_Log_Path END ELSE @p_New_Log_Path END ,@_DataFileCounts = CASE WHEN FilePath LIKE (@_Old_Data_Path+'%') AND @_DataFileCounts < FileCounts THEN FileCounts ELSE @_DataFileCounts END --,@_LogFileCounts = CASE WHEN FilePath LIKE (@_Old_Log_Path+'%') AND @_LogFileCounts < FileCounts THEN FileCounts ELSE @_LogFileCounts END FROM T_File_Paths ORDER BY FileCounts desc; --SELECT [@p_Old_Data_Path] = @p_Old_Data_Path, [@_Old_Data_Path] = @_Old_Data_Path, [@p_New_Data_Path] = @p_New_Data_Path, [@_New_Data_Path] = @_New_Data_Path -- ,[@p_Old_Log_Path] = @p_Old_Log_Path, [@_Old_Log_Path] = @_Old_Log_Path, [@p_New_Log_Path] = @p_New_Log_Path, [@_New_Log_Path] = @_New_Log_Path PRINT '----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------' SELECT 'ALTER DATABASE '+QUOTENAME(DB_NAME(mf.database_id))+ ' MODIFY FILE ( NAME = '''+mf.name+''', FILENAME = '''+ (CASE WHEN mf.type_desc = 'ROWS' THEN ISNULL(@_New_Data_Path,'@_New_Data_Path\') ELSE ISNULL(@_New_Log_Path,'@_New_Log_Path\') END) + (RIGHT(mf.physical_name,CHARINDEX('\',REVERSE(mf.physical_name))-1)) + ''');' + @NewLineChar + 'GO' AS [-- ************************* Modify MetaData to Move Data/Log Files *********************] FROM sys.master_files as mf WHERE mf.database_id IN (SELECT d.database_id FROM #Dbs2Consider AS d) AND (mf.physical_name LIKE (@p_Old_Data_Path+'%') OR mf.physical_name LIKE (@p_Old_Log_Path+'%')); SELECT 'ALTER DATABASE '+QUOTENAME(d.DbName)+' SET OFFLINE WITH ROLLBACK IMMEDIATE;' + @NewLineChar + 'GO' FROM ( SELECT DISTINCT DB_NAME(mf.database_id) as DbName FROM sys.master_files as mf WHERE mf.database_id IN (SELECT d.database_id FROM #Dbs2Consider AS d) AND (mf.physical_name LIKE (@p_Old_Data_Path+'%') OR mf.physical_name LIKE (@p_Old_Log_Path+'%')) ) AS d; -- Move Data Files IF @p_Old_Data_Path IS NOT NULL BEGIN SET @_robocopy_DataFiles = NULL PRINT '----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------' SELECT @_robocopy_DataFiles = COALESCE(@_robocopy_DataFiles+' '+'"'+f.FileBaseName+'"','"'+f.FileBaseName+'"') FROM ( SELECT (RIGHT(mf.physical_name,CHARINDEX('\',REVERSE(mf.physical_name))-1)) AS FileBaseName FROM sys.master_files as mf WHERE mf.database_id IN (SELECT d.database_id FROM #Dbs2Consider AS d) AND mf.physical_name LIKE (@p_Old_Data_Path+'%') ) as f SET @_robocopy_DataFiles = 'robocopy "'+ @_Old_Data_Path +'" "'+ @_New_Data_Path + '" '+ @_robocopy_DataFiles + ' /it /MT'; PRINT 'New-Item -Path "'+@_New_Data_Path+'" -ItemType "directory" -Force | Out-Null;' PRINT @_robocopy_DataFiles; END -- Move Log Files IF @p_Old_Log_Path IS NOT NULL BEGIN SET @_robocopy_LogFiles = NULL; SELECT @_robocopy_LogFiles = COALESCE(@_robocopy_LogFiles+' '+'"'+f.FileBaseName+'"','"'+f.FileBaseName+'"') FROM ( SELECT (RIGHT(mf.physical_name,CHARINDEX('\',REVERSE(mf.physical_name))-1)) AS FileBaseName FROM sys.master_files as mf WHERE mf.database_id IN (SELECT d.database_id FROM #Dbs2Consider AS d) AND mf.physical_name LIKE (@p_Old_Log_Path+'%') ) as f SET @_robocopy_LogFiles = 'robocopy "'+ @_Old_Log_Path +'" "'+ @_New_Log_Path + '" '+ @_robocopy_LogFiles + ' /it /MT'; PRINT 'New-Item -Path "'+@_New_Log_Path+'" -ItemType "directory" -Force | Out-Null;' PRINT @_robocopy_LogFiles; END SELECT 'ALTER DATABASE '+QUOTENAME(d.DbName)+' SET ONLINE;' + @NewLineChar + 'GO' FROM ( SELECT DISTINCT DB_NAME(mf.database_id) as DbName FROM sys.master_files as mf WHERE mf.database_id IN (SELECT d.database_id FROM #Dbs2Consider AS d) AND (mf.physical_name LIKE (@p_Old_Data_Path+'%') OR mf.physical_name LIKE (@p_Old_Log_Path+'%')) ) AS d; --SELECT db_name(database_id),* FROM sys.master_files mf where mf.database_id = db_id('Babel') END -- End block for @_IsValidParameter = 1
USE [ANTERO] GO /****** Object: StoredProcedure [dw].[p_lataa_f_koski_perusopetus_ainevalinnat] Script Date: 31.1.2022 15:28:13 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dw].[p_lataa_f_koski_perusopetus_ainevalinnat] AS DROP TABLE IF EXISTS dw.f_koski_perusopetus_ainevalinnat SELECT [Lukuvuosi] ,[oppija_oid] ,[opiskeluoikeus_oid] ,[paatason_suoritus_id] ,[vuosiluokka] ,[vuosiluokan_suorituskieli] ,[toimipiste_oid] ,[oppilaitos_oid] ,[koulutustoimija_oid] ,[sukupuoli] ,[ika] ,[aidinkieli] ,[kansalaisuus] ,[osasuoritus_id] ,[aine_koodisto] ,[aine] ,[aineen_oppimaara_koodisto] ,[aineen_oppimaara] ,[aineen_suorituskieli] ,[aineen_arvosana] ,[aineen_arviointi_hyvaksytty] ,[koulutusmoduuli_pakollinen] ,[koulutusmoduuli_paikallinen] ,[koulutusmoduuli_laajuus_arvo] ,[kielet_lkm] --id ,d_sukupuoli_id = COALESCE(d2.id,-1) ,d_kieli_aidinkieli_id = COALESCE(d3.id,-1) ,d_ika_id = COALESCE(d4.id,-1) ,d_maatjavaltiot2_kansalaisuus_id = COALESCE(d5.id,-1) ,d_kieli_vuosiluokan_suorituskieli_id = COALESCE(d6.id, -1) ,d_kieli_aineen_suorituskieli_id = COALESCE(d6b.id, -1) ,d_vuosiluokka_id = COALESCE(d9.id,-1) ,d_organisaatioluokitus_toimipiste_id = COALESCE(d11.id,-1) ,d_organisaatioluokitus_oppilaitos_id = COALESCE(d12.id,-1) ,d_organisaatioluokitus_jarjestaja_id = COALESCE(d13.id,-1) ,d_alueluokitus_oppilaitos_id = COALESCE(d14.id,-1) ,d_alueluokitus_jarj_id = COALESCE(d15.id,-1) ,d_oppiaine_ja_oppimaara_aine_id = COALESCE(d16.id,-1) ,d_oppiaine_ja_oppimaara_maara_id = COALESCE(d17.id,-1) ,d_opintojenlaajuusyksikko_id = COALESCE(d18.id,-1) INTO dw.f_koski_perusopetus_ainevalinnat FROM (SELECT * FROM VipunenTK_SA.dbo.v_sa_TK_Koski_perusopetus_ainevalinnat) k LEFT JOIN dw.d_sukupuoli d2 ON d2.sukupuoli_koodi = k.sukupuoli LEFT JOIN dw.d_kieli d3 ON d3.kieli_koodi = k.aidinkieli LEFT JOIN dw.d_ika d4 ON d4.ika_avain = k.ika LEFT JOIN dw.d_maatjavaltiot2 d5 ON d5.maatjavaltiot2_koodi = k.kansalaisuus LEFT JOIN dw.d_kieli d6 ON d6.kieli_koodi = k.vuosiluokan_suorituskieli LEFT JOIN dw.d_kieli d6b ON d6b.kieli_koodi = k.aineen_suorituskieli LEFT JOIN dw.d_vuosiluokka_tai_koulutus d9 ON d9.koodi = k.vuosiluokka LEFT JOIN dw.d_organisaatioluokitus d11 ON d11.organisaatio_oid = k.toimipiste_oid LEFT JOIN dw.d_organisaatioluokitus d12 ON d12.organisaatio_oid = k.oppilaitos_oid LEFT JOIN dw.d_organisaatioluokitus d13 ON d13.organisaatio_oid = k.koulutustoimija_oid LEFT JOIN dw.d_alueluokitus d14 on d14.alueluokitus_avain = ('kunta_' + d12.kunta_koodi) LEFT JOIN dw.d_alueluokitus d15 on d15.alueluokitus_avain = ('kunta_' + d13.kunta_koodi) LEFT JOIN dw.d_perusopetus_oppiaine_ja_oppimaara d16 on d16.koodi = aine AND d16.koodisto = aine_koodisto LEFT JOIN dw.d_perusopetus_oppiaine_ja_oppimaara d17 on d17.koodi = aineen_oppimaara AND d17.koodisto = aineen_oppimaara_koodisto LEFT JOIN dw.d_opintojenlaajuusyksikko d18 on d18.koodiarvo = koulutusmoduuli_laajuus_yksikko
CREATE TABLE Users( Id INT PRIMARY KEY IDENTITY, Username NVARCHAR(30) NOT NULL UNIQUE, [Password] NVARCHAR(50) NOT NULL, [Name] NVARCHAR(50), Gender VARCHAR CHECK(Gender IN('M', 'F')), BirthDate DATETIME2, Age INT, Email NVARCHAR(50) NOT NULL ) CREATE TABLE Departments( Id INT PRIMARY KEY IDENTITY, [Name] NVARCHAR(50) NOT NULL ) CREATE TABLE Employees( Id INT PRIMARY KEY IDENTITY, FirstName NVARCHAR(25), LastName VARCHAR(25), Gender VARCHAR CHECK(Gender IN('M', 'F')), BirthDate DATETIME2, Age INT, DepartmentId INT NOT NULL FOREIGN KEY REFERENCES Departments(Id) ) CREATE TABLE Categories( Id INT PRIMARY KEY IDENTITY, Name NVARCHAR(50) NOT NULL, DepartmentId INT NOT NULL FOREIGN KEY REFERENCES Departments(Id) ) CREATE TABLE [Status]( Id INT PRIMARY KEY IDENTITY, Label NVARCHAR(30) NOT NULL ) CREATE TABLE Reports( Id INT PRIMARY KEY IDENTITY, CategoryId INT NOT NULL FOREIGN KEY REFERENCES Categories(Id), StatusId INT NOT NULL FOREIGN KEY REFERENCES Status(Id), OpenDate DATETIME2 NOT NULL, CloseDate DATETIME2, Description NVARCHAR(200), UserId INT NOT NULL FOREIGN KEY REFERENCES Users(Id), EmployeeId INT FOREIGN KEY REFERENCES Employees(Id) )
SELECT * FROM employee WHERE name='Jones';
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Sep 05, 2020 at 09:58 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `leojade` -- -- -------------------------------------------------------- -- -- Table structure for table `provinces` -- CREATE TABLE `provinces` ( `id` int(11) NOT NULL, `name_en` varchar(45) NOT NULL, `name_si` varchar(45) DEFAULT NULL, `name_ta` varchar(45) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `provinces` -- INSERT INTO `provinces` (`id`, `name_en`, `name_si`, `name_ta`) VALUES (1, 'Western', 'බස්නාහිර', 'மேல்'), (2, 'Central', 'මධ්‍යම', 'மத்திய'), (3, 'Southern', 'දකුණු', 'தென்'), (4, 'North Western', 'වයඹ', 'வட மேல்'), (5, 'Sabaragamuwa', 'සබරගමුව', 'சபரகமுவ'), (6, 'Eastern', 'නැගෙනහිර', 'கிழக்கு'), (7, 'Uva', 'ඌව', 'ஊவா'), (8, 'North Central', 'උතුරු මැද', 'வட மத்திய'), (9, 'Northern', 'උතුරු', 'வட'); -- -- Indexes for dumped tables -- -- -- Indexes for table `provinces` -- ALTER TABLE `provinces` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `provinces` -- ALTER TABLE `provinces` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
 /* <<property_start>>Description * property_value of xref:dhw:sqldb:property.repoobjectproperty.adoc[] is splitted in lines and these lines are splitted in rows * Where property_name = 'additional_reference_csv' <<property_end>> */ CREATE View [property].[RepoObjectProperty_SelectedPropertyName_split] As Select RepoObject_guid , property_name , property_value , value_line = Value2LineSplit.value , value_line_row = Line2RowSplit.value , value_line_len = Len ( Value2LineSplit.value ) , LinePerGuidProperty = Dense_Rank () Over ( Partition By RepoObject_guid , property_name Order By Value2LineSplit.value ) , RowPerGuidPropertyLine = Row_Number () Over ( Partition By RepoObject_guid , property_name , Value2LineSplit.value Order By Value2LineSplit.value ) From property.RepoObjectProperty --String_Split separator must be one (1) char (varchar, nchar, nvarchar) --we remove Char(13) --Windows CR LF 13 10 --Unix LF 10 Cross Apply String_Split(property_value, Char ( 10 )) As Value2LineSplit Cross Apply String_Split(Value2LineSplit.value, ',') As Line2RowSplit Where property_name = 'additional_reference_csv' And Len ( Value2LineSplit.value ) > 1 GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = 'dea68210-a51f-ec11-8523-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_SelectedPropertyName_split', @level2type = N'COLUMN', @level2name = N'RowPerGuidPropertyLine'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = 'dda68210-a51f-ec11-8523-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_SelectedPropertyName_split', @level2type = N'COLUMN', @level2name = N'LinePerGuidProperty'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = 'dca68210-a51f-ec11-8523-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_SelectedPropertyName_split', @level2type = N'COLUMN', @level2name = N'value_line_len'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = 'dba68210-a51f-ec11-8523-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_SelectedPropertyName_split', @level2type = N'COLUMN', @level2name = N'value_line_row'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = 'daa68210-a51f-ec11-8523-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_SelectedPropertyName_split', @level2type = N'COLUMN', @level2name = N'value_line'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = 'd9a68210-a51f-ec11-8523-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_SelectedPropertyName_split', @level2type = N'COLUMN', @level2name = N'property_value'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = 'd8a68210-a51f-ec11-8523-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_SelectedPropertyName_split', @level2type = N'COLUMN', @level2name = N'property_name'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = 'd7a68210-a51f-ec11-8523-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_SelectedPropertyName_split', @level2type = N'COLUMN', @level2name = N'RepoObject_guid'; GO EXECUTE sp_addextendedproperty @name = N'RepoObject_guid', @value = '49efd408-a51f-ec11-8523-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_SelectedPropertyName_split';
ALTER TABLE orders DROP COLUMN coupon_code_id; DROP TABLE coupon_codes;
-- Module 5 Demonstration 1 File 1 -- Step 1: Switch this query window to use the AdventureWorksLT database -- Step 2: Switch the Demo 1b - concurrency 2.sql query to use the AdventureWorksLT database -- Step 3: Demonstrate the settings for ALLOW_SNAPSHOT_ISOLATION and READ_COMMITTED_SNAPSHOT SELECT name, snapshot_isolation_state, is_read_committed_snapshot_on FROM sys.databases; -- Step 4: Examine the row the examples will change -- The value of the Phone column is 170-555-0127 SELECT CustomerID, Phone FROM SalesLT.Customer WHERE CustomerID = 2; -- Step 5: Demonstrate a dirty read in READ UNCOMMITTED isolation -- Run the statement under the heading Query 1 in the Demo 1b - concurrency 2.sql file, then return to this query -- Run the statements below. Note that the updated value for the Phone column is shown, even through the transaction is not committed SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED GO SELECT CustomerID, Phone FROM SalesLT.Customer WHERE CustomerID = 2; GO -- Step 6: Demonstrate that READ COMMITTED isolation with READ_COMMITTED_SNAPSHOT OFF prevents a dirty read -- Note that in Azure SQL database, READ_COMMITTED_SNAPSHOT is ON by default and cannot be disabled. -- Using the READCOMMITTEDLOCK table hint disables row versioning. -- Demonstrate that this query waits -- Run the statement under the heading Query 2 in the Demo 1b - concurrency 2.sql file, then return to this query -- Once the blocking session is rolled back, this query returns a value SET TRANSACTION ISOLATION LEVEL READ COMMITTED GO SELECT CustomerID, Phone FROM SalesLT.Customer WITH (READCOMMITTEDLOCK) WHERE CustomerID = 2; GO -- Step 7: Demonstrate that READ COMMITTED isolation with READ_COMMITTED_SNAPSHOT OFF allows a non-repeatable read -- Run the following statements SET TRANSACTION ISOLATION LEVEL READ COMMITTED BEGIN TRANSACTION SELECT CustomerID, Phone FROM SalesLT.Customer WITH (READCOMMITTEDLOCK) WHERE CustomerID = 2; -- Run the statement under the heading Query 3 in the Demo 1b - concurrency 2.sql file, then return to this query -- Run the following query. Note that the value of the Phone column has changed during the transaction SELECT CustomerID, Phone FROM SalesLT.Customer WITH (READCOMMITTEDLOCK) WHERE CustomerID = 2; COMMIT -- Step 8: Demonstrate that REPEATABLE READ isolation prevents a non-repeatable read -- Run the following statements SET TRANSACTION ISOLATION LEVEL REPEATABLE READ GO BEGIN TRANSACTION SELECT CustomerID, Phone FROM SalesLT.Customer WHERE CustomerID = 2; -- Run the statement under the heading Query 4 in the Demo 1b - concurrency 2.sql file, then return to this query -- Note that the query in the Demo 1b - concurrency 2.sql file is blocked -- Run the following query. Note that the value of the Phone column has not changed during the transaction -- Note that, once this transaction is committed, the query in the Demo 1b - concurrency 2.sql completes SELECT CustomerID, Phone FROM SalesLT.Customer WHERE CustomerID = 2; COMMIT -- Step 9: Demonstrate that REPEATABLE READ isolation allows a phantom read -- Run the following statements SET TRANSACTION ISOLATION LEVEL REPEATABLE READ GO BEGIN TRANSACTION SELECT COUNT(*) AS CustCount FROM SalesLT.Customer WHERE Phone < '111-555-2222'; -- Run the statement under the heading Query 5 in the Demo 1b - concurrency 2.sql file, then return to this query -- Run the following query. Note that the value of the count has increased by one SELECT COUNT(*) AS CustCount FROM SalesLT.Customer WHERE Phone < '111-555-2222'; COMMIT -- Step 10: Demonstrate that SERIALIZABLE isolation prevents a phantom read -- Run the following statements SET TRANSACTION ISOLATION LEVEL SERIALIZABLE GO BEGIN TRANSACTION SELECT COUNT(*) AS CustCount FROM SalesLT.Customer WHERE Phone < '111-555-2222'; -- Run the statement under the heading Query 5 in the Demo 1b - concurrency 2.sql file, then return to this query -- Note that the query in the Demo 1b - concurrency 2.sql file is blocked -- Run the following query. Note that the value of the count matches the first query -- Note that, once this transaction is committed, the query in the Demo 1b - concurrency 2.sql completes SELECT COUNT(*) AS CustCount FROM SalesLT.Customer WHERE Phone < '111-555-2222'; COMMIT -- Step 11: Demonstrate READ COMMITTED isolation with READ_COMMITTED_SNAPSHOT ON -- Reset the Phone value for customerID = 2 UPDATE SalesLT.Customer SET Phone = N'170-555-0127' WHERE CustomerID = 2 GO -- Run the statement under the heading Query 6 in the Demo 1b - concurrency 2.sql file, then return to this query -- run the following statements. Note that the committed value of the row is returned SET TRANSACTION ISOLATION LEVEL READ COMMITTED GO BEGIN TRANSACTION SELECT CustomerID, Phone FROM SalesLT.Customer WHERE CustomerID = 2; -- Run the statement under the heading Query 7 in the Demo 1b - concurrency 2.sql file, then return to this query -- Execute the following statements. Note that the updated value of the row is returned SELECT CustomerID, Phone FROM SalesLT.Customer WHERE CustomerID = 2; COMMIT -- Step 12: Demonstrate SNAPSHOT isolation -- Reset the Phone value for customerID = 2 UPDATE SalesLT.Customer SET Phone = N'170-555-0127' WHERE CustomerID = 2 GO -- Run the statement under the heading Query 6 in the Demo 1b - concurrency 2.sql file, then return to this query -- run the following statements. Note that the committed value of the row is returned SET TRANSACTION ISOLATION LEVEL SNAPSHOT GO BEGIN TRANSACTION SELECT CustomerID, Phone FROM SalesLT.Customer WHERE CustomerID = 2; -- Run the statement under the heading Query 7 in the Demo 1b - concurrency 2.sql file, then return to this query -- Execute the following statements. Note that the original value of the row is still returned SELECT CustomerID, Phone FROM SalesLT.Customer WHERE CustomerID = 2; COMMIT -- Step 13: Demonstrate an update conflict in SNAPSHOT isolation: -- Reset the Phone value for customerID = 2 UPDATE SalesLT.Customer SET Phone = N'170-555-0127' WHERE CustomerID = 2 GO -- Run the statement under the heading Query 6 in the Demo 1b - concurrency 2.sql file, then return to this query -- run the following statements. Note that the committed value of the row is returned SET TRANSACTION ISOLATION LEVEL SNAPSHOT GO BEGIN TRANSACTION UPDATE SalesLT.Customer SET Phone = N'777-555-7777' WHERE CustomerID = 2; -- Run the statement under the heading Query 7 in the Demo 1b - concurrency 2.sql file, then return to this query -- Note the error message -- Execute the following statement to show that the transaction was aborted SELECT @@TRANCOUNT;
<reponame>steinitzu/humblebee /* This is the schema for the local tv database */ PRAGMA journal_mode = WAL; CREATE TABLE IF NOT EXISTS episode ( id INTEGER PRIMARY KEY NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, modified_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, title VARCHAR, ep_number INTEGER NOT NULL, extra_ep_number INTEGER, ep_summary TEXT, air_date DATE, file_path TEXT NOT NULL, season_id INTEGER NOT NULL, season_number INTEGER, series_id INTEGER NOT NULL, series_title VARCHAR, series_summary TEXT, series_start_date DATE, run_time_minutes INTEGER, network VARCHAR ); CREATE TABLE IF NOT EXISTS unparsed_episode ( child_path VARCHAR PRIMARY KEY NOT NULL, parent_path VARCHAR DEFAULT NULL, -- filename VARCHAR NOT NULL, -- for displaying shit FOREIGN KEY (parent_path) REFERENCES unparsed_episode(path) ON DELETE CASCADE ); --CREATE INDEX ep_number_idx ON episode (ep_number); --CREATE INDEX season_number_idx ON season (season_number); --CREATE INDEX series_title_idx ON series (title); CREATE TABLE IF NOT EXISTS actor ( id INTEGER PRIMARY KEY NOT NULL, actor_name VARCHAR, picture_file VARCHAR ); /*cross table motherfucker*/ CREATE TABLE IF NOT EXISTS actor_role_series ( actor_id INTEGER NOT NULL, series_id INTEGER NOT NULL, role_name VARCHAR NOT NULL, FOREIGN KEY(actor_id) REFERENCES actor(id) ON DELETE CASCADE, FOREIGN KEY(series_id) REFERENCES series(id) ON DELETE CASCADE ); -- triggerss CREATE TRIGGER update_episode_time AFTER UPDATE on episode BEGIN UPDATE episode SET modified_at = CURRENT_TIMESTAMP; END;
-- Adminer 4.2.5 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP DATABASE IF EXISTS `anytunnel_base`; CREATE DATABASE `anytunnel_base` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `anytunnel_base`; DROP TABLE IF EXISTS `at_area`; CREATE TABLE `at_area` ( `area_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `name` varchar(50) NOT NULL COMMENT '区域名称', `cs_type` enum('server','client') NOT NULL COMMENT '类型,server或者client', `is_forbidden` tinyint(4) NOT NULL COMMENT '是否禁止,1:禁止0:允许', `create_time` int(11) NOT NULL COMMENT '创建时间', `update_time` int(11) NOT NULL COMMENT '更新时间', PRIMARY KEY (`area_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='server和client登录区域黑白名单'; DROP TABLE IF EXISTS `at_client`; CREATE TABLE `at_client` ( `client_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'client主键ID', `name` varchar(30) NOT NULL COMMENT 'client名称', `token` varchar(32) NOT NULL COMMENT 'client的token,最多32个字符', `user_id` varchar(32) NOT NULL COMMENT 'client所属用户ID,0代表是系统的client', `local_host` varchar(50) NOT NULL COMMENT '需要暴漏的本地网络host,client可以访问的ip域名都可以', `local_port` int(11) NOT NULL COMMENT '需要暴漏的本地网络host的端口', `create_time` int(11) NOT NULL COMMENT 'client创建时间', `update_time` int(11) NOT NULL COMMENT 'client更新时间', `is_delete` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除,1是,0否', PRIMARY KEY (`client_id`), UNIQUE KEY `token` (`token`), UNIQUE KEY `user_id_token` (`user_id`,`token`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='client表'; DROP TABLE IF EXISTS `at_cluster`; CREATE TABLE `at_cluster` ( `cluster_id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'id', `region_id` int(11) NOT NULL COMMENT '区域主键ID', `name` char(30) NOT NULL DEFAULT '' COMMENT '名称', `ip` char(15) NOT NULL DEFAULT '' COMMENT 'cluster的ip', `system_conn_number` int(10) NOT NULL DEFAULT '0' COMMENT '系统连接数', `tunnel_conn_number` int(10) NOT NULL DEFAULT '0' COMMENT '隧道连接数', `bandwidth` int(10) NOT NULL DEFAULT '0' COMMENT '带宽', `create_time` int(10) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(10) NOT NULL DEFAULT '0' COMMENT '修改时间', `is_disable` tinyint(1) NOT NULL COMMENT '是否禁用,0否,1是', `is_delete` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态 0 否 1 是', PRIMARY KEY (`cluster_id`), UNIQUE KEY `ip` (`ip`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='cluster机器表'; DROP TABLE IF EXISTS `at_conn`; CREATE TABLE `at_conn` ( `tunnel_id` int(11) NOT NULL COMMENT '用户的隧道主键ID', `user_id` int(11) NOT NULL COMMENT '用户主键ID', `cluster_id` int(11) NOT NULL COMMENT 'cluster主键ID', `server_id` int(11) NOT NULL COMMENT 'server主键ID', `count` int(11) NOT NULL COMMENT '用户的隧道的连接数', `upload` int(11) NOT NULL COMMENT '上传速度,字节/秒', `download` int(11) NOT NULL COMMENT '下载速度,字节/秒', `update_time` int(11) NOT NULL COMMENT '更新时间', PRIMARY KEY (`tunnel_id`), KEY `count` (`count`), KEY `user_id_count` (`user_id`,`count`), KEY `server_id` (`server_id`), KEY `upload` (`upload`), KEY `download` (`download`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='连接数表'; DROP TABLE IF EXISTS `at_ip_list`; CREATE TABLE `at_ip_list` ( `ip_list_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `ip` char(15) NOT NULL COMMENT 'IP地址', `is_forbidden` tinyint(1) NOT NULL COMMENT '0禁止,1允许', `cs_type` enum('server','client') NOT NULL COMMENT 'cs类型,server或client', `create_time` int(11) NOT NULL COMMENT '创建时间', `update_time` int(11) NOT NULL COMMENT '更新时间', PRIMARY KEY (`ip_list_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='cs登录IP黑白名单表'; DROP TABLE IF EXISTS `at_online`; CREATE TABLE `at_online` ( `online_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '在线主键ID', `user_id` int(11) NOT NULL COMMENT '用户表主键ID', `cs_id` int(11) NOT NULL COMMENT 'server或者client的id', `cluster_id` int(11) NOT NULL COMMENT 'cluster的主键ID', `cs_ip` char(15) NOT NULL COMMENT 'server或者client的外网IP', `cs_type` enum('server','client') NOT NULL COMMENT '类型,server或client', `create_time` int(11) NOT NULL COMMENT '上线时间', PRIMARY KEY (`online_id`), UNIQUE KEY `token_type` (`cs_id`,`cs_type`), KEY `ip` (`cluster_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='server或client在线表'; DROP TABLE IF EXISTS `at_package`; CREATE TABLE `at_package` ( `package_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '流量包主键ID', `user_id` int(11) NOT NULL COMMENT '用户主键ID', `bytes_total` bigint(20) NOT NULL COMMENT '流量包大小,单位字节', `bytes_left` bigint(20) NOT NULL COMMENT '剩余流量,单位字节', `start_time` int(11) NOT NULL COMMENT '生效时间', `end_time` int(11) NOT NULL COMMENT '过期时间', `create_time` int(11) NOT NULL COMMENT '创建时间', `update_time` int(11) NOT NULL COMMENT '更新时间', `comment` char(10) NOT NULL COMMENT '流量包来源说明,最多10个字符', PRIMARY KEY (`package_id`), KEY `user_id_bytes_left` (`user_id`,`bytes_left`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户流量包表'; DROP TABLE IF EXISTS `at_region`; CREATE TABLE `at_region` ( `region_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '区域主键ID', `name` char(30) NOT NULL COMMENT '区域名称', `parent_id` int(11) NOT NULL COMMENT '上级区域的region_id,顶级区域为0', `create_time` int(11) NOT NULL COMMENT '区域创建时间', `update_time` int(11) NOT NULL COMMENT '区域修改时间', `is_delete` tinyint(1) NOT NULL COMMENT '是否删除,1是.0否', PRIMARY KEY (`region_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='cluster区域表'; INSERT INTO `at_region` (`region_id`, `name`, `parent_id`, `create_time`, `update_time`, `is_delete`) VALUES (1, '香港', 0, 0, 1503657697, 0), (2, '香港免费1区', 1, 0, 1503907304, 0), (3, '新加坡', 0, 1503655210, 1503657714, 0), (4, '新加坡免费1区', 3, 1503656729, 1503907288, 0), (5, '大陆', 0, 1503658393, 0, 0), (7, '大陆VIP电信', 5, 1503658507, 1503907337, 0), (8, '香港VIP1区', 1, 1503674982, 1503907795, 0), (9, '大陆VIP联通', 5, 1503907177, 1503907343, 0), (10, '大陆VIP多线', 5, 1503907196, 1503907398, 0), (11, '大陆VIP移动', 5, 1503907217, 1503907782, 0), (12, '大陆免费1区', 5, 1503907253, 1503907771, 0), (13, '新加坡VIP1区', 3, 1503907816, 1503907824, 0), (14, '香港高速VIP1区', 1, 1503907869, 1503909105, 0), (15, '香港高速VIP2区', 1, 1503907873, 0, 0), (16, '日本', 0, 1503909138, 0, 0), (17, '日本免费1区', 16, 1503909142, 0, 0), (18, '日本VIP1区', 16, 1503909151, 0, 0), (19, '美国', 0, 1503909156, 0, 0), (20, '美国免费1区', 19, 1503909162, 1503909170, 0), (21, '美国VIP1区', 19, 1503909195, 0, 0); DROP TABLE IF EXISTS `at_role`; CREATE TABLE `at_role` ( `role_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '角色主键ID', `name` char(30) NOT NULL COMMENT '角色名称', `bandwidth` bigint(20) NOT NULL COMMENT '带宽限制,单位字节,0不限制', `server_area` enum('china','foreign','all') NOT NULL DEFAULT 'china' COMMENT 'server允许登录的区域,china:中国,foreign:国外,all:全部', `client_area` enum('china','foreign','all') NOT NULL DEFAULT 'china' COMMENT 'client允许登录的区域,china:中国,foreign:国外,all:全部', `tunnel_mode` char(5) NOT NULL COMMENT '允许的隧道模式0:普通1:高级2:特殊', `create_time` int(11) NOT NULL COMMENT '创建时间', `update_time` int(11) NOT NULL COMMENT '修改时间', `is_delete` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除,1是,0否', PRIMARY KEY (`role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='角色表'; INSERT INTO `at_role` (`role_id`, `name`, `bandwidth`, `server_area`, `client_area`, `tunnel_mode`, `create_time`, `update_time`, `is_delete`) VALUES (1, '默认组', 100000, 'china', 'china', '0,2,1', 0, 1504602526, 0), (2, 'VIP1', 500000, 'china', 'china', '0,1,2', 0, 1504509792, 0); DROP TABLE IF EXISTS `at_role_region`; CREATE TABLE `at_role_region` ( `role_region_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '角色和区域关系主键ID', `role_id` int(11) NOT NULL COMMENT '角色主键ID', `region_id` int(11) NOT NULL COMMENT '区域主键ID', `create_time` int(11) NOT NULL COMMENT '创建时间', PRIMARY KEY (`role_region_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='角色和区域关系表'; INSERT INTO `at_role_region` (`role_region_id`, `role_id`, `region_id`, `create_time`) VALUES (35, 1, 7, 1504249580), (36, 1, 9, 1504249580), (37, 1, 10, 1504249580), (38, 1, 11, 1504249580), (39, 1, 12, 1504249580), (40, 1, 17, 1504249580), (41, 1, 18, 1504249580); DROP TABLE IF EXISTS `at_server`; CREATE TABLE `at_server` ( `server_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'server主键ID', `name` varchar(30) NOT NULL COMMENT 'server名称', `token` varchar(32) NOT NULL COMMENT 'server的token,最多32个字符', `user_id` int(11) NOT NULL COMMENT 'server所属用户ID,0代表是系统的server', `create_time` int(11) NOT NULL COMMENT 'server创建时间', `update_time` int(11) NOT NULL COMMENT 'server更新时间', `is_delete` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除,1是,0否', PRIMARY KEY (`server_id`), UNIQUE KEY `token` (`token`), UNIQUE KEY `user_id_token` (`user_id`,`token`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='server表'; DROP TABLE IF EXISTS `at_tunnel`; CREATE TABLE `at_tunnel` ( `tunnel_id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'id', `mode` tinyint(1) NOT NULL COMMENT '模式,0普通模式,1高级模式,2特殊模式', `name` char(255) NOT NULL DEFAULT '' COMMENT '隧道名称', `user_id` int(10) NOT NULL DEFAULT '0' COMMENT '隧道所属用户主键ID', `cluster_id` int(10) NOT NULL COMMENT 'cluster主键ID', `server_id` int(11) NOT NULL DEFAULT '0' COMMENT 'server主键ID', `client_id` int(11) NOT NULL COMMENT 'client主键ID', `protocol` tinyint(1) NOT NULL COMMENT '协议 1:TCP 2:UDP', `server_listen_port` int(10) NOT NULL DEFAULT '0' COMMENT 'server 监听端口', `server_listen_ip` char(100) NOT NULL DEFAULT '' COMMENT 'server bind ip', `client_local_port` int(10) NOT NULL DEFAULT '0' COMMENT 'client local port', `client_local_host` char(100) NOT NULL DEFAULT '' COMMENT 'client localhost', `status` tinyint(1) NOT NULL COMMENT '隧道状态,0异常,1:正常', `is_open` tinyint(1) NOT NULL COMMENT '是否已经打开,0否,1是,打开过的无论是否异常,必须手动一次关闭', `create_time` int(10) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(10) NOT NULL DEFAULT '0' COMMENT '修改时间', `is_delete` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态 0 否 1 是', PRIMARY KEY (`tunnel_id`), KEY `user_id` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='隧道表'; DROP TABLE IF EXISTS `at_user`; CREATE TABLE `at_user` ( `user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户主键ID', `nickname` char(20) NOT NULL COMMENT '昵称', `username` char(20) NOT NULL COMMENT '用户登录名', `password` char(32) NOT NULL COMMENT '密码', `email` char(50) NOT NULL COMMENT 'email地址', `is_active` tinyint(1) NOT NULL COMMENT 'email是否激活', `is_forbidden` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否禁用用户,1是.0否', `forbidden_reason` varchar(50) NOT NULL COMMENT '禁用的原因描述', `create_time` int(11) NOT NULL COMMENT '创建时间', `update_time` int(11) NOT NULL COMMENT '修改时间', PRIMARY KEY (`user_id`), UNIQUE KEY `username` (`username`), KEY `email` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户表'; DROP TABLE IF EXISTS `at_user_role`; CREATE TABLE `at_user_role` ( `role_user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户和角色关系主键ID', `role_id` int(11) NOT NULL COMMENT '角色主键ID', `user_id` int(11) NOT NULL COMMENT '用户主键ID', `create_time` int(11) NOT NULL COMMENT '创建时间', `update_time` int(11) NOT NULL, PRIMARY KEY (`role_user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户和角色关系表'; -- 2017-09-08 09:15:00
<filename>database/src/ddl/monthly_production_elt.sql drop table if exists monthly_production_elt; create table monthly_production_elt ( month varchar(255), calendar_year varchar(255), land_class varchar(255), land_category varchar(255), commodity varchar(255), volume varchar(255) )
-- -- Copyright 2004-2014 The Kuali Foundation -- -- Licensed under the Educational Community License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.opensource.org/licenses/ecl2.php -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. -- delete from lm_accrual_category_rules_t where lm_accrual_category_rules_id >= 5000; delete from lm_leave_plan_t where lm_leave_plan_id >= 80000; delete from hr_principal_attributes_t where hr_principal_attribute_id >= 5000; delete from lm_accrual_category_t where lm_accrual_category_id >= 5000; delete from hr_job_t where hr_job_id >= 5000; delete from lm_leave_document_header_t where document_id >= 5000; delete from hr_earn_code_t where hr_earn_code_id >= 5000; delete from hr_calendar_entries_t where hr_calendar_entry_id >= 5000; delete from lm_leave_block_t where lm_leave_block_id >= 10000; delete from lm_employee_override_t where lm_employee_override_id >= 3000; delete from tk_document_header_t where document_id >= 5000; -- testUser1 employee transfer overrides insert into lm_employee_override_t (`lm_employee_override_id`,`principal_id`,`accrual_cat`,`leave_plan`,`override_type`,`override_value`,`description`,`active`,`timestamp`,`obj_id`,`ver_nbr`,`effdt`) values ('3000', 'testUser1', 'ye-xfer-eo', 'testLP', 'MB', 15, NULL,'Y', now(), uuid(), '1', '2011-02-03 12:10:23'); insert into lm_employee_override_t (`lm_employee_override_id`,`principal_id`,`accrual_cat`,`leave_plan`,`override_type`,`override_value`,`description`,`active`,`timestamp`,`obj_id`,`ver_nbr`,`effdt`) values ('3001', 'testUser1', 'ye-xfer-eo', 'testLP', 'MAC', 5, NULL,'Y', now(), uuid(), '1', '2011-02-03 12:10:23'); insert into lm_employee_override_t (`lm_employee_override_id`,`principal_id`,`accrual_cat`,`leave_plan`,`override_type`,`override_value`,`description`,`active`,`timestamp`,`obj_id`,`ver_nbr`,`effdt`) values ('3002', 'testUser1', 'ye-xfer-eo', 'testLP', 'MTA', 7, NULL,'Y', now(), uuid(), '1', '2011-02-03 12:10:23'); -- testUser2 employee transfer overrides insert into lm_employee_override_t (`lm_employee_override_id`,`principal_id`,`accrual_cat`,`leave_plan`,`override_type`,`override_value`,`description`,`active`,`timestamp`,`obj_id`,`ver_nbr`,`effdt`) values ('3003', 'testUser2', 'ye-xfer-eo', 'testLP', 'MB', 15, NULL,'Y', now(), uuid(), '1', '2011-02-03 12:10:23'); insert into lm_employee_override_t (`lm_employee_override_id`,`principal_id`,`accrual_cat`,`leave_plan`,`override_type`,`override_value`,`description`,`active`,`timestamp`,`obj_id`,`ver_nbr`,`effdt`) values ('3004', 'testUser2', 'ye-xfer-eo', 'testLP', 'MAC', 5, NULL,'Y', now(), uuid(), '1', '2011-02-03 12:10:23'); insert into lm_employee_override_t (`lm_employee_override_id`,`principal_id`,`accrual_cat`,`leave_plan`,`override_type`,`override_value`,`description`,`active`,`timestamp`,`obj_id`,`ver_nbr`,`effdt`) values ('3005', 'testUser2', 'ye-xfer-eo', 'testLP', 'MTA', 7, NULL,'Y', now(), uuid(), '1', '2011-02-03 12:10:23'); -- testUser1 employee payout overrides insert into lm_employee_override_t (`lm_employee_override_id`,`principal_id`,`accrual_cat`,`leave_plan`,`override_type`,`override_value`,`description`,`active`,`timestamp`,`obj_id`,`ver_nbr`,`effdt`) values ('4000', 'testUser1', 'ye-xfer-eo-po', 'testLP', 'MB', 15, NULL,'Y', now(), uuid(), '1', '2011-02-03 12:10:23'); insert into lm_employee_override_t (`lm_employee_override_id`,`principal_id`,`accrual_cat`,`leave_plan`,`override_type`,`override_value`,`description`,`active`,`timestamp`,`obj_id`,`ver_nbr`,`effdt`) values ('4001', 'testUser1', 'ye-xfer-eo-po', 'testLP', 'MAC', 5, NULL,'Y', now(), uuid(), '1', '2011-02-03 12:10:23'); insert into lm_employee_override_t (`lm_employee_override_id`,`principal_id`,`accrual_cat`,`leave_plan`,`override_type`,`override_value`,`description`,`active`,`timestamp`,`obj_id`,`ver_nbr`,`effdt`) values ('4006', 'testUser1', 'ye-xfer-eo-po', 'testLP', 'MPA', 7, NULL,'Y', now(), uuid(), '1', '2011-02-03 12:10:23'); -- testUser2 employee payout overrides insert into lm_employee_override_t (`lm_employee_override_id`,`principal_id`,`accrual_cat`,`leave_plan`,`override_type`,`override_value`,`description`,`active`,`timestamp`,`obj_id`,`ver_nbr`,`effdt`) values ('4003', 'testUser2', 'ye-xfer-eo-po', 'testLP', 'MB', 15, NULL,'Y', now(), uuid(), '1', '2011-02-03 12:10:23'); insert into lm_employee_override_t (`lm_employee_override_id`,`principal_id`,`accrual_cat`,`leave_plan`,`override_type`,`override_value`,`description`,`active`,`timestamp`,`obj_id`,`ver_nbr`,`effdt`) values ('4004', 'testUser2', 'ye-xfer-eo-po', 'testLP', 'MAC', 5, NULL,'Y', now(), uuid(), '1', '2011-02-03 12:10:23'); insert into lm_employee_override_t (`lm_employee_override_id`,`principal_id`,`accrual_cat`,`leave_plan`,`override_type`,`override_value`,`description`,`active`,`timestamp`,`obj_id`,`ver_nbr`,`effdt`) values ('4007', 'testUser2', 'ye-xfer-eo-po', 'testLP', 'MPA', 7, NULL,'Y', now(), uuid(), '1', '2011-02-03 12:10:23'); -- accrual category rules for ACTION = TRANSFER insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('5000', 'M', 0, 888, 16, 15.00, 'OD', 'T', 'od-xfer-dep', 0.5, 10.00, NULL, NULL, NULL, NULL, '5000', 'DEDC243D-4E51-CCDE-1326-E1700B2631E1', '1', 'Y', '2010-02-03 12:10:23', 'Y'); insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('5001', 'M', 0, 888, 16, 15.00, 'YE', 'T', 'ye-xfer-dep', 0.5, 10.00, NULL, NULL, NULL, NULL, '5001', 'DEDC243D-4E51-CCDE-1326-E1700B2631E2', '1', 'Y', '2010-02-03 12:10:23', 'Y'); insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('5002', 'M', 0, 888, 16, 15.00, 'LA', 'T', 'la-xfer-dep', 0.5, 10.00, NULL, NULL, NULL, NULL, '5002', 'DEDC243D-4E51-CCDE-1326-E1700B2631E3', '1', 'Y', '2010-02-03 12:10:23', 'Y'); insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('5003', 'M', 0, 888, 16, 15.00, 'OD', 'T', 'od-xfer-mac-dep', 0.5, 10.00, NULL, NULL, NULL, 10.00, '5003', 'DEDC243D-4E51-CCDE-1326-E1700B2631E4', '1', 'Y', '2010-02-03 12:10:23', 'Y'); insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('5004', 'M', 0, 888, 16, 15.00, 'YE', 'T', 'ye-xfer-mac-dep', 0.5, 10.00, NULL, NULL, NULL, 10.00, '5004', 'DEDC243D-4E51-CCDE-1326-E1700B2631E5', '1', 'Y', '2010-02-03 12:10:23', 'Y'); insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('5005', 'M', 0, 888, 16, 15.00, 'LA', 'T', 'la-xfer-mac-dep', 0.5, 10.00, NULL, NULL, NULL, 10.00, '5005', 'DEDC243D-4E51-CCDE-1326-E1700B2631E6', '1', 'Y', '2010-02-03 12:10:23', 'Y'); -- accrual category rules for ACTION = LOSE insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('5006', 'M', 0, 888, 16, 15.00, 'OD', 'L', 'od-lose-dep', 0.5, 10.00, NULL, NULL, NULL, NULL, '5006', 'DEDC243D-4E51-CCDE-1326-E1700B2631E7', '1', 'Y', '2010-02-03 12:10:23', 'Y'); insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('5007', 'M', 0, 888, 16, 15.00, 'YE', 'L', 'ye-lose-dep', 0.5, 10.00, NULL, NULL, NULL, NULL, '5007', 'DEDC243D-4E51-CCDE-1326-E1700B2631E8', '1', 'Y', '2010-02-03 12:10:23', 'Y'); insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('5008', 'M', 0, 888, 16, 15.00, 'LA', 'L', 'la-lose-dep', 0.5, 10.00, NULL, NULL, NULL, NULL, '5008', 'DEDC243D-4E51-CCDE-1326-E1700B2631E9', '1', 'Y', '2010-02-03 12:10:23', 'Y'); insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('5009', 'M', 0, 888, 16, 15.00, 'OD', 'L', 'od-lose-mac-dep', 0.5, 10.00, NULL, NULL, NULL, 10.00, '5009', 'DEDC243D-4E51-CCDE-1326-E1700B2631F1', '1', 'Y', '2010-02-03 12:10:23', 'Y'); insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('5010', 'M', 0, 888, 16, 15.00, 'YE', 'L', 'ye-lose-mac-dep', 0.5, 10.00, NULL, NULL, NULL, 10.00, '5010', 'DEDC243D-4E51-CCDE-1326-E1700B2631F3', '1', 'Y', '2010-02-03 12:10:23', 'Y'); insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('5011', 'M', 0, 888, 16, 15.00, 'LA', 'L', 'la-lose-mac-dep', 0.5, 10.00, NULL, NULL, NULL, 10.00, '5011', 'DEDC243D-4E51-CCDE-1326-E1700B2631F4', '1', 'Y', '2010-02-03 12:10:23', 'Y'); -- accrual category rules for ACTION = PAYOUT insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('7000', 'M', 0, 888, 16, 15.00, 'OD', 'P', NULL, NULL, NULL, 10.00, 'EC1a', NULL, NULL, '7000', 'DEDC243D-4E51-CCDE-1326-E1700B2631E1', '1', 'Y', '2011-02-03 12:10:23', 'Y'); insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('7001', 'M', 0, 888, 16, 15.00, 'YE', 'P', NULL, NULL, NULL, 10.00, 'EC2a', NULL, NULL, '7001', 'DEDC243D-4E51-CCDE-1326-E1700B2631E1', '1', 'Y', '2011-02-03 12:10:23', 'Y'); insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('7002', 'M', 0, 888, 16, 15.00, 'LA', 'P', NULL, NULL, NULL, 10.00, 'EC3a', NULL, NULL, '7002', 'DEDC243D-4E51-CCDE-1326-E1700B2631E1', '1', 'Y', '2011-02-03 12:10:23', 'Y'); insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('7003', 'M', 0, 888, 16, 15.00, 'OD', 'P', NULL, NULL, NULL, 10.00, 'EC4a', NULL, 10.00, '7003', 'DEDC243D-4E51-CCDE-1326-E1700B2631E1', '1', 'Y', '2011-02-03 12:10:23', 'Y'); insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('7004', 'M', 0, 888, 16, 15.00, 'YE', 'P', NULL, NULL, NULL, 10.00, 'EC5a', NULL, 10.00, '7004', 'DEDC243D-4E51-CCDE-1326-E1700B2631E1', '1', 'Y', '2011-02-03 12:10:23', 'Y'); insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('7005', 'M', 0, 888, 16, 15.00, 'LA', 'P', NULL, NULL, NULL, 10.00, 'EC6a', NULL, 10.00, '7005', 'DEDC243D-4E51-CCDE-1326-E1700B2631E1', '1', 'Y', '2011-02-03 12:10:23', 'Y'); -- accrual category rule whose values get overriden by employee overrides. insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('5012', 'M', 0, 888, 16, 100.00, 'YE', 'T', 'ye-xfer-eo-dep', NULL, NULL, NULL, NULL, NULL, 10.00, '5012', 'DEDC243D-4E51-CCDE-1326-E1700B2631F5', '1', 'Y', '2010-02-03 12:10:23', 'Y'); insert into lm_accrual_category_rules_t (`lm_accrual_category_rules_id`, `SERVICE_UNIT_OF_TIME`, `START_ACC`, `END_ACC`, `ACCRUAL_RATE`, `MAX_BAL`, `MAX_BAL_ACTION_FREQUENCY`, `ACTION_AT_MAX_BAL`, `MAX_BAL_TRANS_ACC_CAT`, `MAX_BAL_TRANS_CONV_FACTOR`, `MAX_TRANS_AMOUNT`, `MAX_PAYOUT_AMOUNT`, `MAX_PAYOUT_EARN_CODE`, `MAX_USAGE`, `MAX_CARRY_OVER`, `LM_ACCRUAL_CATEGORY_ID`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `MAX_BAL_FLAG`) values ('7012', 'M', 0, 888, 16, 100.00, 'YE', 'P', NULL, NULL, NULL, 10.00, 'EC7a', NULL, 10.00, '7012', 'DEDC243D-4E51-CCDE-1326-E1700B2631E1', '1', 'Y', '2011-02-03 12:10:23', 'Y'); -- setup leave plan, principal hr attributes, leave eligible jobs, leave calendar. insert into lm_leave_plan_t (`lm_leave_plan_id`, `LEAVE_PLAN`, `DESCR`, `CAL_YEAR_START`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `ACTIVE`, `TIMESTAMP`, `PLANNING_MONTHS`) values ('80000', 'testLP', 'Test Leave Plan', '01/22', '2010-02-01', '', '1', 'Y', '2010-02-06 11:59:46', '80'); -- Exempt Employee insert into hr_principal_attributes_t (`hr_principal_attribute_id`, `principal_id`, `pay_calendar`, `leave_plan`, `service_date`, `fmla_eligible`, `workers_eligible`, `timezone`, `EFFDT`, `TIMESTAMP`, `OBJ_ID`, `VER_NBR`, `active`, `leave_calendar`) values('5000', 'testUser1', null, 'testLP', '2012-03-10', 'Y', 'Y', null, '2012-03-10', now(), uuid(), '1', 'Y', 'BWS-LM'); -- Non-Exempt leave eligible employee insert into hr_principal_attributes_t (`hr_principal_attribute_id`, `principal_id`, `pay_calendar`, `leave_plan`, `service_date`, `fmla_eligible`, `workers_eligible`, `timezone`, `EFFDT`, `TIMESTAMP`, `OBJ_ID`, `VER_NBR`, `active`, `leave_calendar`) values('5001', 'testUser2', 'BWS-CAL', 'testLP', '2010-03-10', 'Y', 'Y', null, '2010-03-10', now(), uuid(), '1', 'Y', 'BWS-LM'); -- These accrual categories are for testing max balances. Each accrual category has a unique rule defined above. insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('5000', 'od-xfer', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505CF', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC1', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('5001', 'ye-xfer', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505D0', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC2', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('5002', 'la-xfer', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505D1', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC3', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('5003', 'od-xfer-mac', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505D2', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC4', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('5004', 'ye-xfer-mac', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505D3', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC5', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('5005', 'la-xfer-mac', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505D4', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC6', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('5006', 'od-lose', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505D5', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC7', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('5007', 'ye-lose', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505D6', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC8', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('5008', 'la-lose', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505D7', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC9', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('5009', 'od-lose-mac', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505D8', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC10', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('5010', 'ye-lose-mac', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505D9', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC11', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('5011', 'la-lose-mac', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505E0', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC12', 'Y'); -- Payout accrual categories with rules defined above. insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('7000', 'od-xfer-po', 'testLP', 'test', 'M', '40', '2011-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505CE', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC15', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('7001', 'ye-xfer-po', 'testLP', 'test', 'M', '40', '2011-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505CE', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC16', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('7002', 'la-xfer-po', 'testLP', 'test', 'M', '40', '2011-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505CE', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC17', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('7003', 'od-xfer-mac-po', 'testLP', 'test', 'M', '40', '2011-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505CE', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC18', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('7004', 'ye-xfer-mac-po', 'testLP', 'test', 'M', '40', '2011-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505CE', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC19', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('7005', 'la-xfer-mac-po', 'testLP', 'test', 'M', '40', '2011-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505CE', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC20', 'Y'); -- These accrual categories are for deposits. No rules are currently defined. insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('6001', 'od-xfer-dep', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505E1', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC1a', 'N'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('6002', 'ye-xfer-dep', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505E2', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC2a', 'N'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('6003', 'la-xfer-dep', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505E3', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC3a', 'N'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('6004', 'od-xfer-mac-dep', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505E4', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC4a', 'N'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('6005', 'ye-xfer-mac-dep', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505E5', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC5a', 'N'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('6006', 'la-xfer-mac-dep', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505E6', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC6a', 'N'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('6007', 'od-lose-dep', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505E7', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC7a', 'N'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('6008', 'ye-lose-dep', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505E8', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC8a', 'N'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('6009', 'la-lose-dep', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505E9', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC9a', 'N'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('6010', 'od-lose-mac-dep', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505F0', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC10a', 'N'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('6011', 'ye-lose-mac-dep', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505F1', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC11a', 'N'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('6012', 'la-lose-mac-dep', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505F2', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC12a', 'N'); -- Transfer From and Transfer To accrual categories for use with employee overrides insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('5012', 'ye-xfer-eo', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505F3', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC13', 'Y'); insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('6013', 'ye-xfer-eo-dep', 'testLP', 'test', 'M', '40', '2010-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505F4', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC13a', 'Y'); -- Payout employee override accrual category insert into lm_accrual_category_t (`lm_accrual_category_id`, `ACCRUAL_CATEGORY`, `LEAVE_PLAN`, `DESCR`, `ACCRUAL_INTERVAL_EARN`, `UNIT_OF_TIME`, `EFFDT`, `OBJ_ID`, `VER_NBR`, `PRORATION`, `DONATION`, `SHOW_ON_GRID`, `ACTIVE`, `TIMESTAMP`, `MIN_PERCENT_WORKED`, `EARN_CODE`, `HAS_RULES`) values('7012', 'ye-xfer-eo-po', 'testLP', 'test', 'M', '40', '2011-03-01', '8421CD29-E1F4-4B9A-AE33-F3F4752505CE', '1', 'N', null, 'Y', 'Y',now(), '0', 'EC14', 'Y'); -- One job for exempt EE, one for Non-Exempt EE. insert into hr_job_t (`hr_job_id`, `PRINCIPAL_ID`, `JOB_NUMBER`, `EFFDT`, `dept`, `HR_SAL_GROUP`, `pay_grade`, `TIMESTAMP`, `OBJ_ID`, `VER_NBR`, `comp_rate`, `GRP_KEY_CD`, `std_hours`, `hr_paytype`, `active`, `primary_indicator`, `position_nbr`, `eligible_for_leave`, `FLSA_STATUS`) values ('5000', 'testUser1', '19', '2012-03-01', 'TEST-DEPT', 'SD1', 'SD1', now(), uuid(), '1', '0.000000', 'IU-IN', '40.00', 'BW', 'Y', 'Y', 'N', 'Y', null); insert into hr_job_t (`hr_job_id`, `PRINCIPAL_ID`, `JOB_NUMBER`, `EFFDT`, `dept`, `HR_SAL_GROUP`, `pay_grade`, `TIMESTAMP`, `OBJ_ID`, `VER_NBR`, `comp_rate`, `GRP_KEY_CD`, `std_hours`, `hr_paytype`, `active`, `primary_indicator`, `position_nbr`, `eligible_for_leave`, `FLSA_STATUS`) values ('5001', 'testUser2', '19', '2010-03-01', 'TEST-DEPT', 'SD1', 'SD1', now(), uuid(), '1', '0.000000', 'IU-IN', '40.00', 'BW', 'Y', 'Y', 'N', 'Y', 'NE'); -- "Mock" document headers for testUser1 INSERT INTO lm_leave_document_header_t (`document_id`,`principal_id`,`begin_date`,`end_date`,`document_status`,`obj_id`,`ver_nbr`) values ('5000', 'testUser1', '2012-12-01 00:00:00','2013-01-01 00:00:00', 'S', '7EE387AB-26B0-B6A6-9C4C-5B5F687F0E97', '1'); INSERT INTO lm_leave_document_header_t (`document_id`,`principal_id`,`begin_date`,`end_date`,`document_status`,`obj_id`,`ver_nbr`) values ('5001', 'testUser1', '2013-01-01 00:00:00','2013-02-01 00:00:00', 'S', '7EE387AB-26B0-B6A6-9C4C-5B5F687F0E98', '1'); INSERT INTO lm_leave_document_header_t (`document_id`,`principal_id`,`begin_date`,`end_date`,`document_status`,`obj_id`,`ver_nbr`) values ('5002', 'testUser1', '2012-11-01 00:00:00','2012-12-01 00:00:00', 'S', '7EE387AB-26B0-B6A6-9C4C-5B5F687F0E96', '1'); -- Custom calendar entries for testUser1 insert into hr_calendar_entries_t (`hr_calendar_entry_id`,`hr_calendar_id`,`calendar_name`,`begin_period_date`,`end_period_date`) values ('5000','3','BWS-LM','2012-11-01 00:00:00','2012-12-01 00:00:00'); insert into hr_calendar_entries_t (`hr_calendar_entry_id`,`hr_calendar_id`,`calendar_name`,`begin_period_date`,`end_period_date`) values ('5001','3','BWS-LM','2012-12-01 00:00:00','2013-01-01 00:00:00'); insert into hr_calendar_entries_t (`hr_calendar_entry_id`,`hr_calendar_id`,`calendar_name`,`begin_period_date`,`end_period_date`) values ('5002','3','BWS-LM','2013-01-01 00:00:00','2013-02-01 00:00:00'); -- Timesheet test document headers for testUser2 insert into tk_document_header_t (`document_id`, `principal_id`, `pay_end_dt`, `document_status`, `pay_begin_dt`, `obj_id`, `ver_nbr`) values ('5003', 'testUser2', '2012-02-01 00:00:00', 'I', '2012-01-15 00:00:00', NULL, '1'); insert into tk_document_header_t (`document_id`, `principal_id`, `pay_end_dt`, `document_status`, `pay_begin_dt`, `obj_id`, `ver_nbr`) values ('5002', 'testUser2', '2012-01-15 00:00:00', 'I', '2012-01-01 00:00:00', NULL, '1'); insert into tk_document_header_t (`document_id`, `principal_id`, `pay_end_dt`, `document_status`, `pay_begin_dt`, `obj_id`, `ver_nbr`) values ('5000', 'testUser2', '2011-12-15 00:00:00', 'I', '2011-12-01 00:00:00', NULL, '1'); insert into tk_document_header_t (`document_id`, `principal_id`, `pay_end_dt`, `document_status`, `pay_begin_dt`, `obj_id`, `ver_nbr`) values ('5001', 'testUser2', '2012-01-01 00:00:00', 'I', '2011-12-15 00:00:00', NULL, '1'); -- Calendar entries for testUser2 defined in src/test/config/db/test/hr_calendar_entries_t.csv -- underlying earn codes for Transfer From accrual categories insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('5001', 'EC1', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'od-xfer', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('5002', 'EC2', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'ye-xfer', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('5003', 'EC3', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'la-xfer', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('5004', 'EC4', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'od-xfer-mac', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('5005', 'EC5', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'ye-xfer-mac', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('5006', 'EC6', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'la-xfer-mac', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('5007', 'EC7', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'od-lose', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('5008', 'EC8', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'ye-lose', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('5009', 'EC9', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'la-lose', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('5010', 'EC10', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'od-lose-mac', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('5011', 'EC11', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'ye-lose-mac', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('5012', 'EC12', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'la-lose-mac', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); -- Underlying earn codes for transfer TO accrual categories. insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('6001', 'EC1a', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'od-xfer-dep', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('6002', 'EC2a', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'ye-xfer-dep', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('6003', 'EC3a', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'la-xfer-dep', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('6004', 'EC4a', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'od-xfer-mac-dep', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('6005', 'EC5a', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'ye-xfer-mac-dep', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('6006', 'EC6a', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'la-xfer-mac-dep', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('6007', 'EC7a', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'od-lose-dep', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('6008', 'EC8a', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'ye-lose-dep', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('6009', 'EC9a', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'la-lose-dep', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('6010', 'EC10a', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'od-lose-mac-dep', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('6011', 'EC11a', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'ye-lose-mac-dep', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('6012', 'EC12a', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'la-lose-mac-dep', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); -- Underlying PAYOUT earn codes insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('7001', 'EC15', 'test', '2011-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'od-xfer-po', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('7002', 'EC16', 'test', '2011-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'ye-xfer-po', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('7003', 'EC17', 'test', '2011-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'la-xfer-po', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('7004', 'EC18', 'test', '2011-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'od-xfer-mac-po', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('7005', 'EC19', 'test', '2011-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'ye-xfer-mac-po', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('7006', 'EC20', 'test', '2011-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'la-xfer-mac-po', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); -- Underlying earn code for use with accrual categories being overriden by employee overrides. insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('7000', 'EC13', 'test', '2010-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'ye-xfer-eo', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N'); -- payout earn code with employee override insert into hr_earn_code_t (`hr_earn_code_id`,`earn_code`,`descr`,`effdt`,`ovt_earn_code`,`active`,`obj_id`,`ver_nbr`,`timestamp`,`accrual_category`,`inflate_min_hours`,`inflate_factor`,`record_method`,`leave_plan`,`accrual_bal_action`,`fract_time_allowd`,`round_opt`,`rollup_to_earncode`,`eligible_for_acc`,`affect_pay`,`allow_schd_leave`,`fmla`,`workmans_comp`,`def_time`,`allow_negative_acc_balance`,`usage_limit`,`count_as_reg_pay`) values('7007', 'EC14', 'test', '2011-02-01', 'Y', 'Y', 'B2991ADA-E866-F28C-7E95-A897AC377D0C', '1', now(), 'ye-xfer-eo-po', '1.5', '1.5', 'Hours', 'testLP', 'A', '99', 'T', 'N', 'Y', 'Y', 'Y', 'Y', 'test', null, 'N', 'I', 'N');
DROP TABLE B_MAIL_MAILBOX GO DROP TABLE B_MAIL_FILTER GO DROP TABLE B_MAIL_FILTER_COND GO DROP TABLE B_MAIL_MESSAGE GO DROP TABLE B_MAIL_MESSAGE_UID GO DROP TABLE B_MAIL_MSG_ATTACHMENT GO DROP TABLE B_MAIL_SPAM_WEIGHT GO DROP TABLE B_MAIL_LOG GO DROP TABLE B_MAIL_MAILSERVICES GO DROP TABLE B_MAIL_USER_RELATIONS GO DROP TABLE B_MAIL_BLACKLIST GO DROP TABLE B_MAIL_DOMAIN_EMAIL GO
/* -- Dumping data for table `mouse_model_gene_ortholog` -- Dump completed on 2014-01-17 9:47:53 */ INSERT INTO mouse_model_gene_ortholog VALUES -- Gp1bb (5917,5916,'MGI:107852'), (5918,5917,'MGI:107852'), (15731,15724,'MGI:107852'), (15732,15725,'MGI:107852'), -- Serpind1 (4404,4404,'MGI:96051'), (12191,12187,'MGI:96051'), (12192,12188,'MGI:96051'), -- Entpd1 (13910,13903,'MGI:102805'), (17332,17324,'MGI:102805'), (26450,26439,'MGI:102805'), (2992,2992,'MGI:102805'), -- Gp1ba (25350,25339,'MGI:1333744'), (2921,2921,'MGI:1333744'), -- Fgfr1 (239,239,'MGI:95522'), (1003,1003,'MGI:95522'), (1004,1004,'MGI:95522'), (1005,1005,'MGI:95522'), (1006,1006,'MGI:95522'), (1007,1007,'MGI:95522'), (1008,1008,'MGI:95522'), (1009,1009,'MGI:95522'), (1010,1010,'MGI:95522'), (1011,1011,'MGI:95522'), (1012,1012,'MGI:95522'), (1013,1013,'MGI:95522'), (1014,1014,'MGI:95522'), (1015,1015,'MGI:95522'), (1016,1016,'MGI:95522'), (1017,1017,'MGI:95522'), (1018,1018,'MGI:95522'), (2172,2172,'MGI:95522'), (6540,6539,'MGI:95522'), (8923,8922,'MGI:95522'), (8924,8923,'MGI:95522'), (8925,8924,'MGI:95522'), (8926,8925,'MGI:95522'), (8927,8926,'MGI:95522'), (11566,11562,'MGI:95522'), (11567,11563,'MGI:95522'), (11578,11574,'MGI:95522'), (11579,11575,'MGI:95522'), (11580,11576,'MGI:95522'), (22920,22911,'MGI:95522'), (22921,22912,'MGI:95522'), (22922,22913,'MGI:95522'), (23942,23931,'MGI:95522'), (23944,23933,'MGI:95522'), -- Fgfr2 (114,114,'MGI:95523'), (115,115,'MGI:95523'), (653,653,'MGI:95523'), (654,654,'MGI:95523'), (655,655,'MGI:95523'), (656,656,'MGI:95523'), (3188,3188,'MGI:95523'), (4928,4928,'MGI:95523'), (5529,5528,'MGI:95523'), (5530,5529,'MGI:95523'), (11372,11368,'MGI:95523'), (11373,11369,'MGI:95523'), (11374,11370,'MGI:95523'), (11465,11461,'MGI:95523'), (11643,11639,'MGI:95523'), (11644,11640,'MGI:95523'), (13746,13739,'MGI:95523'), (18390,18382,'MGI:95523'), (18391,18383,'MGI:95523'), (18395,18387,'MGI:95523'), (20369,20360,'MGI:95523'), (21200,21191,'MGI:95523'), (21201,21192,'MGI:95523'), (26637,26626,'MGI:95523');
/* Drop Tables */ DROP TABLE IF EXISTS js_gen_table_column; DROP TABLE IF EXISTS js_gen_table; /* Create Tables */ -- 代码生成表 CREATE TABLE js_gen_table ( table_name varchar(64) NOT NULL, class_name varchar(100) NOT NULL, comments varchar(500) NOT NULL, parent_table_name varchar(64), parent_table_fk_name varchar(64), tpl_category varchar(200), package_name varchar(500), module_name varchar(30), sub_module_name varchar(30), function_name varchar(200), function_name_simple varchar(50), function_author varchar(50), gen_base_dir varchar(2000), options varchar(2000), create_by varchar(64) NOT NULL, create_date timestamp NOT NULL, update_by varchar(64) NOT NULL, update_date timestamp NOT NULL, remarks varchar(500), PRIMARY KEY (table_name) ) WITHOUT OIDS; -- 代码生成表列 CREATE TABLE js_gen_table_column ( id varchar(64) NOT NULL, table_name varchar(64) NOT NULL, column_name varchar(64) NOT NULL, column_sort decimal(10), column_type varchar(100) NOT NULL, column_label varchar(50), comments varchar(500) NOT NULL, attr_name varchar(200) NOT NULL, attr_type varchar(200) NOT NULL, is_pk char(1), is_null char(1), is_insert char(1), is_update char(1), is_list char(1), is_query char(1), query_type varchar(200), is_edit char(1), show_type varchar(200), options varchar(2000), PRIMARY KEY (id) ) WITHOUT OIDS; /* Create Indexes */ CREATE INDEX idx_gen_table_ptn ON js_gen_table (parent_table_name); CREATE INDEX idx_gen_table_column_tn ON js_gen_table_column (table_name); /* Comments */ COMMENT ON TABLE js_gen_table IS '代码生成表'; COMMENT ON COLUMN js_gen_table.table_name IS '表名'; COMMENT ON COLUMN js_gen_table.class_name IS '实体类名称'; COMMENT ON COLUMN js_gen_table.comments IS '表说明'; COMMENT ON COLUMN js_gen_table.parent_table_name IS '关联父表的表名'; COMMENT ON COLUMN js_gen_table.parent_table_fk_name IS '本表关联父表的外键名'; COMMENT ON COLUMN js_gen_table.tpl_category IS '使用的模板'; COMMENT ON COLUMN js_gen_table.package_name IS '生成包路径'; COMMENT ON COLUMN js_gen_table.module_name IS '生成模块名'; COMMENT ON COLUMN js_gen_table.sub_module_name IS '生成子模块名'; COMMENT ON COLUMN js_gen_table.function_name IS '生成功能名'; COMMENT ON COLUMN js_gen_table.function_name_simple IS '生成功能名(简写)'; COMMENT ON COLUMN js_gen_table.function_author IS '生成功能作者'; COMMENT ON COLUMN js_gen_table.gen_base_dir IS '生成基础路径'; COMMENT ON COLUMN js_gen_table.options IS '其它生成选项'; COMMENT ON COLUMN js_gen_table.create_by IS '创建者'; COMMENT ON COLUMN js_gen_table.create_date IS '创建时间'; COMMENT ON COLUMN js_gen_table.update_by IS '更新者'; COMMENT ON COLUMN js_gen_table.update_date IS '更新时间'; COMMENT ON COLUMN js_gen_table.remarks IS '备注信息'; COMMENT ON TABLE js_gen_table_column IS '代码生成表列'; COMMENT ON COLUMN js_gen_table_column.id IS '编号'; COMMENT ON COLUMN js_gen_table_column.table_name IS '表名'; COMMENT ON COLUMN js_gen_table_column.column_name IS '列名'; COMMENT ON COLUMN js_gen_table_column.column_sort IS '列排序(升序)'; COMMENT ON COLUMN js_gen_table_column.column_type IS '类型'; COMMENT ON COLUMN js_gen_table_column.column_label IS '列标签名'; COMMENT ON COLUMN js_gen_table_column.comments IS '列备注说明'; COMMENT ON COLUMN js_gen_table_column.attr_name IS '类的属性名'; COMMENT ON COLUMN js_gen_table_column.attr_type IS '类的属性类型'; COMMENT ON COLUMN js_gen_table_column.is_pk IS '是否主键'; COMMENT ON COLUMN js_gen_table_column.is_null IS '是否可为空'; COMMENT ON COLUMN js_gen_table_column.is_insert IS '是否插入字段'; COMMENT ON COLUMN js_gen_table_column.is_update IS '是否更新字段'; COMMENT ON COLUMN js_gen_table_column.is_list IS '是否列表字段'; COMMENT ON COLUMN js_gen_table_column.is_query IS '是否查询字段'; COMMENT ON COLUMN js_gen_table_column.query_type IS '查询方式'; COMMENT ON COLUMN js_gen_table_column.is_edit IS '是否编辑字段'; COMMENT ON COLUMN js_gen_table_column.show_type IS '表单类型'; COMMENT ON COLUMN js_gen_table_column.options IS '其它生成选项';
-- Verify ggircs:swrs/transform/function/load_implied_emission_factor on pg begin; select pg_get_functiondef('swrs_transform.load_implied_emission_factor()'::regprocedure); rollback;
DROP FUNCTION IF EXISTS inventory.get_store_id_by_store_name(_store_name text); CREATE FUNCTION inventory.get_store_id_by_store_name(_store_name text) RETURNS integer AS $$ BEGIN RETURN store_id FROM inventory.stores WHERE inventory.stores.store_name = _store_name AND NOT inventory.stores.deleted; END $$ LANGUAGE plpgsql;
-- Name: GetStructureSetsByActivityTimepoint -- Schema: posda_files -- Columns: ['file_id', 'path', 'patient_id'] -- Args: ['activity_timepoint_id'] -- Tags: ['Structure Sets', 'sops', 'LinkageChecks'] -- Description: Get List of file_ids for structure sets in an activity timepoint -- select file_id, root_path || '/' || rel_path as path, patient_id from file_structure_set natural join activity_timepoint_file natural join file_location natural join file_storage_root natural join file_patient where activity_timepoint_id = ?
<gh_stars>1000+ drop index ACT_IDX_TASK_CREATE; drop index ACT_IDX_TASK_SCOPE; drop index ACT_IDX_TASK_SUB_SCOPE; drop index ACT_IDX_TASK_SCOPE_DEF; drop table ACT_HI_TSK_LOG;
SELECT tourney_hand_player_statistics.id_tourney, tourney_hand_player_statistics.id_player, tourney_hand_player_statistics.id_hand, player.player_name, player.player_name_search, tourney_hand_summary.hand_no, tourney_hand_player_statistics.flg_hero, tourney_hand_player_statistics.position, tourney_hand_player_statistics.seat, tourney_hand_player_statistics.amt_before, tourney_hand_player_statistics.amt_blind, tourney_hand_player_statistics.amt_ante, tourney_hand_player_statistics.amt_won FROM tourney_hand_player_statistics, player, tourney_hand_summary WHERE -- Filter latest `id_hand` for given `tourney_no` ( tourney_hand_player_statistics.id_hand = -- Get latest `id_hand` for `id_tourney` ( SELECT tourney_hand_summary.id_hand FROM tourney_hand_summary WHERE tourney_hand_summary.id_tourney = -- Get `id_tourney` for `tourney_no` ( SELECT tourney_summary.id_tourney FROM tourney_summary WHERE tourney_summary.tourney_no = '$_TOURNEY_NUMBER' ) ORDER BY tourney_hand_summary.date_played DESC LIMIT 1 OFFSET $_OFFSET ) ) AND -- Match `player_name` for given `id_player` ( player.id_player = tourney_hand_player_statistics.id_player ) AND -- Match `hand_no` for given `id_hand` ( tourney_hand_summary.id_hand = tourney_hand_player_statistics.id_hand ) ORDER BY tourney_hand_player_statistics.seat ASC
<filename>migrations/models/34_20211020062817_update.sql -- upgrade -- CREATE TABLE IF NOT EXISTS "clinicverification" ( "id" SERIAL NOT NULL PRIMARY KEY, "created" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, "updated" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, "name" VARCHAR(700) NOT NULL, "email" VARCHAR(800), "mobile" VARCHAR(20), "verified" BOOL NOT NULL DEFAULT False ); CREATE INDEX IF NOT EXISTS "idx_clinicverif_name_6af7e7" ON "clinicverification" ("name");; ALTER TABLE "user" ALTER COLUMN "date_of_birth" SET DEFAULT '2021-10-20'; CREATE TABLE IF NOT EXISTS "createuserorder" ( "id" SERIAL NOT NULL PRIMARY KEY, "created" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, "updated" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, "order_mode" VARCHAR(9) NOT NULL DEFAULT 'PENDING', "user_lat" VARCHAR(600), "user_lang" VARCHAR(600), "medical_lat" VARCHAR(600), "medical_lang" VARCHAR(600), "total_price" DOUBLE PRECISION NOT NULL DEFAULT 0, "discount_price" INT NOT NULL DEFAULT 0, "accepted_price" INT NOT NULL DEFAULT 0 ); COMMENT ON COLUMN "createuserorder"."order_mode" IS 'FAILED: FAILED\nCOMPLETED: COMPLETED\nACTIVE: ACTIVE\nDELIVERED: DELIVERED\nCANCELLED: CANCELLED\nPENDING: PENDING';; CREATE TABLE "createuserorder_clinic" ("clinic_id" INT NOT NULL REFERENCES "clinic" ("id") ON DELETE CASCADE,"createuserorder_id" INT NOT NULL REFERENCES "createuserorder" ("id") ON DELETE CASCADE); -- downgrade -- ALTER TABLE "dunzoorder" DROP CONSTRAINT "fk_dunzoord_createus_b98968ad"; DROP TABLE IF EXISTS "createuserorder_clinic"; ALTER TABLE "user" ALTER COLUMN "date_of_birth" SET DEFAULT '2021-10-19'; DROP TABLE IF EXISTS "clinicverification"; DROP TABLE IF EXISTS "createuserorder";
DROP DATABASE IF EXISTS pubs; CREATE DATABASE pubs; USE pubs; CREATE TABLE authors ( au_id varchar(11) NOT NULL, au_lname varchar(40) NOT NULL, au_fname varchar(20) NOT NULL, phone char(12) NOT NULL DEFAULT 'UNKNOWN', address varchar(40) NULL, city varchar(20) NULL, state char(2) NULL, zip char(5) NULL, contract bit NOT NULL, PRIMARY KEY(au_id), CHECK (au_id rlike '[0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9]'), CHECK (phone rlike '[0-9][0-9][0-9] [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]'), CHECK (zip rlike '[0-9][0-9][0-9][0-9][0-9]') ); CREATE TABLE publishers ( pub_id char(4) NOT NULL, pub_name varchar(40) NULL, city varchar(20) NULL, state char(2) NULL, country varchar(30) NULL DEFAULT 'USA', PRIMARY KEY(pub_id) ); CREATE TABLE titles ( title_id varchar(6) NOT NULL, title varchar(80) NOT NULL, type char(12) NOT NULL DEFAULT 'UNDECIDED', pub_id char(4) NULL, price decimal(4,2) NULL, advance decimal(10,2) NULL, royalty int NULL, ytd_sales int NULL, notes varchar(200) NULL, PRIMARY KEY(title_id) ); CREATE TABLE titleauthor ( au_id varchar(11) NOT NULL, title_id varchar(6) NOT NULL, au_ord tinyint NULL, royaltyper int NULL, FOREIGN KEY(au_id) REFERENCES authors(au_id), FOREIGN KEY(title_id) REFERENCES titles(title_id), PRIMARY KEY(au_id, title_id) ); CREATE TABLE stores ( stor_id char(4) NOT NULL, stor_name varchar(40) NULL, stor_address varchar(40) NULL, city varchar(20) NULL, state char(2) NULL, zip char(5) NULL, PRIMARY KEY(stor_id) ); CREATE TABLE sales ( stor_id char(4) NOT NULL, ord_num varchar(20) NOT NULL, ord_date char(8) NOT NULL, qty smallint NOT NULL, payterms varchar(12) NOT NULL, title_id varchar(6) NOT NULL, FOREIGN KEY(title_id) REFERENCES titles(title_id), FOREIGN KEY(stor_id) REFERENCES stores(stor_id), PRIMARY KEY(stor_id, ord_num, title_id) ); CREATE TABLE roysched ( title_id varchar(6) NOT NULL, lorange int NULL, hirange int NULL, royalty int NULL, FOREIGN KEY(title_id) REFERENCES titles(title_id) ); CREATE TABLE discounts ( discounttype varchar(40) NOT NULL, stor_id char(4) NULL, lowqty smallint NULL, highqty smallint NULL, discount dec(4,2) NOT NULL, FOREIGN KEY(stor_id) REFERENCES stores(stor_id) ); CREATE TABLE jobs ( job_id int NOT NULL auto_increment, job_desc varchar(50) NOT NULL DEFAULT 'New Position - title not formalized yet', min_lvl int NOT NULL, max_lvl int NOT NULL, PRIMARY KEY(job_id) ); CREATE TABLE employee ( emp_id char(9) NOT NULL, fname varchar(20) NOT NULL, minit char(1) NULL, lname varchar(30) NOT NULL, job_id int NOT NULL DEFAULT '1', job_lvl int NOT NULL DEFAULT '10', pub_id char(4) NOT NULL DEFAULT '9952', hire_date char(8) NOT NULL DEFAULT '19950818', PRIMARY KEY(emp_id), FOREIGN KEY(job_id) REFERENCES jobs(job_id), FOREIGN KEY(pub_id) REFERENCES publishers(pub_id) ); insert authors values('409-56-7008', 'Bennet', 'Abraham', '415 658-9932', '6223 Bateman St.', 'Berkeley', 'CA', '94705', 1); insert authors values('213-46-8915', 'Green', 'Marjorie', '415 986-7020', '309 63rd St. #411', 'Oakland', 'CA', '94618', 1); insert authors values('238-95-7766', 'Carson', 'Cheryl', '415 548-7723', '589 Darwin Ln.', 'Berkeley', 'CA', '94705', 1); insert authors values('998-72-3567', 'Ringer', 'Albert', '801 826-0752', '67 Seventh Av.', 'Salt Lake City', 'UT', '84152', 1); insert authors values('899-46-2035', 'Ringer', 'Anne', '801 826-0752', '67 Seventh Av.', 'Salt Lake City', 'UT', '84152', 1); insert authors values('722-51-5454', 'DeFrance', 'Michel', '219 547-9982', '3 Balding Pl.', 'Gary', 'IN', '46403', 1); insert authors values('807-91-6654', 'Panteley', 'Sylvia', '301 946-8853', '1956 Arlington Pl.', 'Rockville', 'MD', '20853', 1); insert authors values('893-72-1158', 'McBadden', 'Heather', '707 448-4982', '301 Putnam', 'Vacaville', 'CA', '95688', 0); insert authors values('724-08-9931', 'Stringer', 'Dirk', '415 843-2991', '5420 Telegraph Av.', 'Oakland', 'CA', '94609', 0); insert authors values('274-80-9391', 'Straight', 'Dean', '415 834-2919', '5420 College Av.', 'Oakland', 'CA', '94609', 1); insert authors values('756-30-7391', 'Karsen', 'Livia', '415 534-9219', '5720 McAuley St.', 'Oakland', 'CA', '94609', 1); insert authors values('724-80-9391', 'MacFeather', 'Stearns', '415 354-7128', '44 Upland Hts.', 'Oakland', 'CA', '94612', 1); insert authors values('427-17-2319', 'Dull', 'Ann', '415 836-7128', '3410 Blonde St.', 'Palo Alto', 'CA', '94301', 1); insert authors values('672-71-3249', 'Yokomoto', 'Akiko', '415 935-4228', '3 Silver Ct.', 'Walnut Creek', 'CA', '94595', 1); insert authors values('267-41-2394', 'O''Leary', 'Michael', '408 286-2428', '22 Cleveland Av. #14', 'San Jose', 'CA', '95128', 1); insert authors values('472-27-2349', 'Gringlesby', 'Burt', '707 938-6445', 'PO Box 792', 'Covelo', 'CA', '95428', 1); insert authors values('527-72-3246', 'Greene', 'Morningstar', '615 297-2723', '22 Graybar House Rd.', 'Nashville', 'TN', '37215', 0); insert authors values('172-32-1176', 'White', 'Johnson', '408 496-7223', '10932 Bigge Rd.', 'Menlo Park', 'CA', '94025', 1); insert authors values('712-45-1867', '<NAME>', 'Innes', '615 996-8275', '2286 Cram Pl. #86', '<NAME>', 'MI', '48105', 1); insert authors values('846-92-7186', 'Hunter', 'Sheryl', '415 836-7128', '3410 Blonde St.', 'Palo Alto', 'CA', '94301', 1); insert authors values('486-29-1786', 'Locksley', 'Charlene', '415 585-4620', '18 Broadway Av.', 'San Francisco', 'CA', '94130', 1); insert authors values('648-92-1872', 'Blotchet-Halls', 'Reginald', '503 745-6402', '55 Hillsdale Bl.', 'Corvallis', 'OR', '97330', 1); insert authors values('341-22-1782', 'Smith', 'Meander', '913 843-0462', '10 Mississippi Dr.', 'Lawrence', 'KS', '66044', 0); insert publishers values('0736', 'New Moon Books', 'Boston', 'MA', 'USA'); insert publishers values('0877', 'Binnet & Hardley', 'Washington', 'DC', 'USA'); insert publishers values('1389', 'Algodata Infosystems', 'Berkeley', 'CA', 'USA'); insert publishers values('9952', 'Scootney Books', 'New York', 'NY', 'USA'); insert publishers values('1622', 'Five Lakes Publishing', 'Chicago', 'IL', 'USA'); insert publishers values('1756', 'Ramona Publishers', 'Dallas', 'TX', 'USA'); insert publishers values('9901', 'GGG&G', 'Munchen', NULL, 'Germany'); insert publishers values('9999', 'Lucerne Publishing', 'Paris', NULL, 'France'); insert titles values ('PC8888', 'Secrets of Silicon Valley', 'popular_comp', '1389', 20.00, 8000.00, 10, 4095, 'Muckraking reporting on the world''s largest computer hardware and software manufacturers.'); insert titles values ('BU1032', 'The Busy Executive''s Database Guide', 'business', '1389', 19.99, 5000.00, 10, 4095, 'An overview of available database systems with emphasis on common business applications. Illustrated.'); insert titles values ('PS7777', 'Emotional Security: A New Algorithm', 'psychology', '0736', 7.99, 4000.00, 10, 3336, 'Protecting yourself and your loved ones from undue emotional stress in the modern world. Use of computer and nutritional aids emphasized.'); insert titles values ('PS3333', 'Prolonged Data Deprivation: Four Case Studies', 'psychology', '0736', 19.99, 2000.00, 10, 4072, 'What happens when the data runs dry? Searching evaluations of information-shortage effects.'); insert titles values ('BU1111', 'Cooking with Computers: Surreptitious Balance Sheets', 'business', '1389', 11.95, 5000.00, 10, 3876, 'Helpful hints on how to use your electronic resources to the best advantage.'); insert titles values ('MC2222', 'Silicon Valley Gastronomic Treats', 'mod_cook', '0877', 19.99, 0.00, 12, 2032, 'Favorite recipes for quick, easy, and elegant meals.'); insert titles values ('TC7777', 'Sushi, Anyone?', 'trad_cook', '0877', 14.99, 8000.00, 10, 4095, 'Detailed instructions on how to make authentic Japanese sushi in your spare time.'); insert titles values ('TC4203', 'Fifty Years in Buckingham Palace Kitchens', 'trad_cook', '0877', 11.95, 4000.00, 14, 15096, 'More anecdotes from the Queen''s favorite cook describing life among English royalty. Recipes, techniques, tender vignettes.'); insert titles values ('PC1035', 'But Is It User Friendly?', 'popular_comp', '1389', 22.95, 7000.00, 16, 8780, 'A survey of software for the naive user, focusing on the ''friendliness'' of each.'); insert titles values('BU2075', 'You Can Combat Computer Stress!', 'business', '0736',2.99, 10125.00, 24, 18722,'The latest medical and psychological techniques for living with the electronic office. Easy-to-understand explanations.'); insert titles values('PS2091', 'Is Anger the Enemy?', 'psychology', '0736', 10.95,2275.00, 12, 2045,'Carefully researched study of the effects of strong emotions on the body. Metabolic charts included.'); insert titles values('PS2106', 'Life Without Fear', 'psychology', '0736', 7.00, 6000.00,10, 111,'New exercise, meditation, and nutritional techniques that can reduce the shock of daily interactions. Popular audience. Sample menus included, exercise video available separately.'); insert titles values('MC3021', 'The Gourmet Microwave', 'mod_cook', '0877', 2.99,15000.00, 24, 22246,'Traditional French gourmet recipes adapted for modern microwave cooking.'); insert titles values('TC3218', 'Onions, Leeks, and Garlic: Cooking Secrets of the Mediterranean','trad_cook', '0877', 20.95, 7000.00, 10, 375,'Profusely illustrated in color, this makes a wonderful gift book for a cuisine-oriented friend.'); insert titles values ('BU7832', 'Straight Talk About Computers', 'business', '1389',19.99, 5000.00, 10, 4095,'Annotated analysis of what computers can do for you: a no-hype guide for the critical user.'); insert titles values('PS1372', 'Computer Phobic AND Non-Phobic Individuals: Behavior Variations','psychology', '0877', 21.59, 7000.00, 10, 375,'A must for the specialist, this book examines the difference between those who hate and fear computers and those who don''t.'); insert titleauthor values('409-56-7008', 'BU1032', 1, 60); insert titleauthor values('486-29-1786', 'PC8888', 1, 100); insert titleauthor values('712-45-1867', 'MC2222', 1, 100); insert titleauthor values('172-32-1176', 'PS3333', 1, 100); insert titleauthor values('238-95-7766', 'PC1035', 1, 100); insert titleauthor values('213-46-8915', 'BU2075', 1, 100); insert titleauthor values('998-72-3567', 'PS2091', 1, 50); insert titleauthor values('722-51-5454', 'MC3021', 1, 75); insert titleauthor values('899-46-2035', 'MC3021', 2, 25); insert titleauthor values('807-91-6654', 'TC3218', 1, 100); insert titleauthor values('274-80-9391', 'BU7832', 1, 100); insert titleauthor values('427-17-2319', 'PC8888', 1, 50); insert titleauthor values('846-92-7186', 'PC8888', 2, 50); insert titleauthor values('756-30-7391', 'PS1372', 1, 75); insert titleauthor values('724-80-9391', 'PS1372', 2, 25); insert titleauthor values('267-41-2394', 'BU1111', 2, 40); insert titleauthor values('672-71-3249', 'TC7777', 1, 40); insert titleauthor values('267-41-2394', 'TC7777', 2, 30); insert titleauthor values('472-27-2349', 'TC7777', 3, 30); insert titleauthor values('648-92-1872', 'TC4203', 1, 100); insert stores values('7066','Barnum''s','567 Pasadena Ave.','Tustin','CA','92789'); insert stores values('7067','News & Brews','577 First St.','Los Gatos','CA','96745'); insert stores values('7131','Doc-U-Mat: Quality Laundry and Books', '24-A Avogadro Way','Remulade','WA','98014'); insert stores values('8042','Bookbeat','679 Carson St.','Portland','OR','89076'); insert stores values('6380','Eric the Read Books','788 Catamaugus Ave.', 'Seattle','WA','98056'); insert stores values('7896','Fricative Bookshop','89 Madison St.','Fremont','CA','90019'); insert sales values('7066', 'QA7442.3', '19940913', 75, 'ON invoice','PS2091'); insert sales values('7067', 'D4482', '19940914', 10, 'Net 60','PS2091'); insert sales values('7131', 'N914008', '19940914', 20, 'Net 30','PS2091'); insert sales values('8042', '423LL922', '19940914', 15, 'ON invoice','MC3021'); insert sales values('6380', '722a', '19940913', 3, 'Net 60','PS2091'); insert sales values('8042','P723', '19930311', 25, 'Net 30', 'BU1111'); insert sales values('7896','QQ2299', '19931028', 15, 'Net 60', 'BU7832'); insert sales values('7066','A2976', '19930524', 50, 'Net 30', 'PC8888'); insert sales values('7131','P3087a', '19930529', 25, 'Net 60', 'PS7777'); insert sales values('7067','P2121', '19920615', 40, 'Net 30', 'TC3218'); insert roysched values('BU1032', 0, 5000, 10); insert roysched values('PC1035', 10001, 50000, 18); insert roysched values('BU2075', 0, 1000, 10); insert roysched values('PS2091', 1001, 5000, 12); insert roysched values('PS2106', 5001, 10000, 14); insert roysched values('MC3021', 10001, 12000, 22); insert roysched values('TC3218', 14001, 50000, 24); insert roysched values('PC8888', 0, 5000, 10); insert roysched values('PS7777', 0, 5000, 10); insert roysched values('PS3333', 15001, 50000, 16); insert roysched values('BU1111', 8001, 10000, 14); insert roysched values('PS1372', 40001, 50000, 18); insert discounts values('Initial Customer', NULL, NULL, NULL, 10.5); insert discounts values('Volume Discount', NULL, 100, 1000, 6.7); insert discounts values('Customer Discount', '8042', NULL, NULL, 5.0); insert jobs(job_desc, min_lvl, max_lvl) values ('New Hire - Job not specified', 10, 10); insert jobs(job_desc, min_lvl, max_lvl) values ('Chief Executive Officer', 200, 250); insert jobs(job_desc, min_lvl, max_lvl) values ('Business Operations Manager', 175, 225); insert jobs(job_desc, min_lvl, max_lvl) values ('Chief Financial Officier', 175, 250); insert jobs(job_desc, min_lvl, max_lvl) values ('Publisher', 150, 250); insert jobs(job_desc, min_lvl, max_lvl) values ('Managing Editor', 140, 225); insert jobs(job_desc, min_lvl, max_lvl) values ('Marketing Manager', 120, 200); insert jobs(job_desc, min_lvl, max_lvl) values ('Public Relations Manager', 100, 175); insert jobs(job_desc, min_lvl, max_lvl) values ('Acquisitions Manager', 75, 175); insert jobs(job_desc, min_lvl, max_lvl) values ('Productions Manager', 75, 165); insert jobs(job_desc, min_lvl, max_lvl) values ('Operations Manager', 75, 150); insert jobs(job_desc, min_lvl, max_lvl) values ('Editor', 25, 100); insert jobs(job_desc, min_lvl, max_lvl) values ('Sales Representative', 25, 100); insert jobs(job_desc, min_lvl, max_lvl) values ('Designer', 25, 100); insert employee values ('PTC11962M', 'Philip', 'T', 'Cramer', 2, 215, '9952', '19891111'); insert employee values ('AMD15433F', 'Ann', 'M', 'Devon', 3, 200, '9952', '19910716'); insert employee values ('F-C16315M', 'Francisco', '', 'Chang', 4, 227, '9952', '19901103'); insert employee values ('LAL21447M', 'Laurence', 'A', 'Lebihan', 5, 175, '0736', '19900603'); insert employee values ('PXH22250M', 'Paul', 'X', 'Henriot', 5, 159, '0877', '19930819'); insert employee values ('SKO22412M', 'Sven', 'K', 'Ottlieb', 5, 150, '1389', '19910405'); insert employee values ('RBM23061F', 'Rita', 'B', 'Muller', 5, 198, '1622', '19931009'); insert employee values ('MJP25939M', 'Maria', 'J', 'Pontes', 5, 246, '1756', '19890301'); insert employee values ('JYL26161F', 'Janine', 'Y', 'Labrune', 5, 172, '9901', '19910526'); insert employee values ('CFH28514M', 'Carlos', 'F', 'Hernadez', 5, 211, '9999', '19890421'); insert employee values ('VPA30890F', 'Victoria', 'P', 'Ashworth', 6, 140, '0877', '19900913'); insert employee values ('L-B31947F', 'Lesley', '', 'Brown', 7, 120, '0877', '19910213'); insert employee values ('ARD36773F', 'Anabela', 'R', 'Domingues', 8, 100, '0877', '19930127'); insert employee values ('M-R38834F', 'Martine', '', 'Rance', 9, 75, '0877', '19920205'); insert employee values ('PHF38899M', 'Peter', 'H', 'Franken', 10, 75, '0877', '19920517'); insert employee values ('DBT39435M', 'Daniel', 'B', 'Tonini', 11, 75, '0877', '19900101'); insert employee values ('H-B39728F', 'Helen', '', 'Bennett', 12, 35, '0877', '19890921'); insert employee values ('PMA42628M', 'Paolo', 'M', 'Accorti', 13, 35, '0877', '19920827'); insert employee values ('ENL44273F', 'Elizabeth', 'N', 'Lincoln', 14, 35, '0877', '19900724'); insert employee values ('MGK44605M', 'Matti', 'G', 'Karttunen', 6, 220, '0736', '19940501'); insert employee values ('PDI47470M', 'Palle', 'D', 'Ibsen', 7, 195, '0736', '19930509'); insert employee values ('MMS49649F', 'Mary', 'M', 'Saveley', 8, 175, '0736', '19930629'); insert employee values ('GHT50241M', 'Gary', 'H', 'Thomas', 9, 170, '0736', '19880809'); insert employee values ('MFS52347M', 'Martin', 'F', 'Sommer', 10, 165, '0736', '19900413'); insert employee values ('R-M53550M', 'Roland', '', 'Mendel', 11, 150, '0736', '19910905'); insert employee values ('HAS54740M', 'Howard', 'A', 'Snyder', 12, 100, '0736', '19881119'); insert employee values ('TPO55093M', 'Timothy', 'P', 'O''Rourke', 13, 100, '0736', '19880619'); insert employee values ('KFJ64308F', 'Karin', 'F', 'Josephs', 14, 100, '0736', '19921017'); insert employee values ('DWR65030M', 'Diego', 'W', 'Roel', 6, 192, '1389', '19911216'); insert employee values ('M-L67958F', 'Maria', '', 'Larsson', 7, 135, '1389', '19920327'); insert employee values ('PSP68661F', 'Paula', 'S', 'Parente', 8, 125, '1389', '19940119'); insert employee values ('MAS70474F', 'Margaret', 'A', 'Smith', 9, 78, '1389', '19880929'); insert employee values ('A-C71970F', 'Aria', '', 'Cruz', 10, 87, '1389', '19911026'); insert employee values ('MAP77183M', 'Miguel', 'A', 'Paolino', 11, 112, '1389', '19921207'); insert employee values ('Y-L77953M', 'Yoshi', '', 'Latimer', 12, 32, '1389', '19890611'); insert employee values ('CGS88322F', 'Carine', 'G', 'Schmitt', 13, 64, '1389', '19920707'); insert employee values ('PSA89086M', 'Pedro', 'S', 'Afonso', 14, 89, '1389', '19901224'); insert employee values ('A-R89858F', 'Annette', '', 'Roulet', 6, 152, '9999', '19900221'); insert employee values ('HAN90777M', 'Helvetius', 'A', 'Nagy', 7, 120, '9999', '19930319'); insert employee values ('M-P91209M', 'Manuel', '', 'Pereira', 8, 101, '9999', '19890109'); insert employee values ('KJJ92907F', 'Karla', 'J', 'Jablonski', 9, 170, '9999', '19940311'); insert employee values ('POK93028M', 'Pirkko', 'O', 'Koskitalo', 10, 80, '9999', '19931129'); insert employee values ('PCM98509F', 'Patricia', 'C', 'McKenna', 11, 150, '9999', '19890801');
CREATE TABLE USER ( id BIGINT NOT NULL AUTO_INCREMENT, active BOOLEAN DEFAULT NULL, name VARCHAR(255) NOT NULL UNIQUE, password VARCHAR(255) NOT NULL, PRIMARY KEY(id) );
CREATE TABLE domains (domain varchar(50) NOT NULL, PRIMARY KEY (domain) ); CREATE TABLE forwardings (source varchar(80) NOT NULL, destination TEXT NOT NULL, PRIMARY KEY (source) ); CREATE TABLE users (email varchar(80) NOT NULL, password varchar(20) NOT NULL, PRIMARY KEY (email) ); CREATE TABLE transport ( domain varchar(128) NOT NULL default '', transport varchar(128) NOT NULL default '', UNIQUE KEY domain (domain) );
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 06-04-2019 a las 03:14:26 -- Versión del servidor: 10.1.31-MariaDB -- Versión de PHP: 5.6.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de datos: `gesport` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `club` -- CREATE TABLE `club` ( `id` int(11) NOT NULL, `nombre` varchar(45) NOT NULL, `deporte_entrenamiento` int(11) NOT NULL, `fecha_registro` date NOT NULL, `cupo` int(11) NOT NULL, `estado` varchar(45) NOT NULL, `entrenador_cedula` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `deportes` -- CREATE TABLE `deportes` ( `id` int(11) NOT NULL, `nombre` varchar(45) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `deportes` -- INSERT INTO `deportes` (`id`, `nombre`) VALUES (1, 'Natación'), (2, 'Baloncesto'), (3, 'Futbol'), (4, 'Patinaje'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `deportista` -- CREATE TABLE `deportista` ( `cedula` int(11) NOT NULL, `tipo_documento` int(11) NOT NULL, `nombre` varchar(45) NOT NULL, `apellidos` varchar(45) NOT NULL, `telefono` int(11) DEFAULT NULL, `celular` int(11) NOT NULL, `email` varchar(60) NOT NULL, `fecha_nacimiento` date NOT NULL, `barrio` varchar(45) NOT NULL, `direccion` varchar(45) NOT NULL, `estatura` decimal(10,0) NOT NULL, `peso` int(11) NOT NULL, `deporte` int(11) NOT NULL, `password` varchar(60) NOT NULL, `fecha_registro` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `deportista` -- INSERT INTO `deportista` (`cedula`, `tipo_documento`, `nombre`, `apellidos`, `telefono`, `celular`, `email`, `fecha_nacimiento`, `barrio`, `direccion`, `estatura`, `peso`, `deporte`, `password`, `fecha_registro`) VALUES (23498759, 0, '<NAME>', 'Marin', 331452453, 342340912, '<EMAIL>', '2019-04-20', 'otun', 'cra 45 3234', '168', 50, 3, '12345', '0000-00-00'), (1053830338, 0, 'Alejandro', '<NAME>', 345663246, 23452345, '<EMAIL>', '1993-10-15', 'san jorge', 'cl 46a #20-55', '170', 50, 1, '413j0', '0000-00-00'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `deportista_club` -- CREATE TABLE `deportista_club` ( `deportista_cedula` int(11) NOT NULL, `club_id` int(11) NOT NULL, `fecha_suscripcion` date NOT NULL, `estado` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `deportista_reserva` -- CREATE TABLE `deportista_reserva` ( `deportista_cedula` int(11) NOT NULL, `reserva_id` int(11) NOT NULL, `asistencia` tinyint(4) DEFAULT NULL, `estado` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `entrenador` -- CREATE TABLE `entrenador` ( `cedula` int(11) NOT NULL, `tipo_documento` int(11) NOT NULL, `nombre` varchar(45) NOT NULL, `apellidos` varchar(45) NOT NULL, `email` varchar(60) NOT NULL, `telefono` int(11) DEFAULT NULL, `celular` int(11) NOT NULL, `fecha_nacimiento` date NOT NULL, `barrio` varchar(45) NOT NULL, `direccion` varchar(45) NOT NULL, `deporte` varchar(45) NOT NULL, `password` varchar(60) NOT NULL, `fecha_registro` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `escenario` -- CREATE TABLE `escenario` ( `id` int(11) NOT NULL, `nombre` varchar(45) NOT NULL, `deporte` int(11) NOT NULL, `descripcion` varchar(45) NOT NULL, `disponibilidad` varchar(45) NOT NULL, `barrio` varchar(45) NOT NULL, `direccion` varchar(45) NOT NULL, `latitud` float NOT NULL, `longitud` float NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `escenario` -- INSERT INTO `escenario` (`id`, `nombre`, `deporte`, `descripcion`, `disponibilidad`, `barrio`, `direccion`, `latitud`, `longitud`) VALUES (1, 'coliseo mayor', 1, 'escenario deportivo', '1', 'villapilar', 'cra 34 #20-20', 12341300, 98768800), (2, 'coliseo menor', 1, 'escenario deportivo', '1', 'san jorge', 'cra 23 #20-20', 12234300, 98768800), (3, 'futbol5', 3, 'escenario deportivo', '2', 'colinas', 'cll 55 #22-10', 12341300, 98768800), (4, 'Multicancha san juan', 2, 'escenario deportivo', '3', 'la leonora', 'cra 78 #45-20', 1841320, 98768800); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `horario` -- CREATE TABLE `horario` ( `id` int(11) NOT NULL, `dia` varchar(20) NOT NULL, `jornada` varchar(10) NOT NULL, `hora_inicio` time NOT NULL, `hora_fin` time NOT NULL, `escenario_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `horario` -- INSERT INTO `horario` (`id`, `dia`, `jornada`, `hora_inicio`, `hora_fin`, `escenario_id`) VALUES (1, 'lunes', 'manana', '09:00:00', '11:00:00', 1), (2, 'miercoles', 'manana', '06:00:00', '12:00:00', 2), (3, 'viernes', 'tarde', '13:00:00', '18:00:00', 3); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `reserva` -- CREATE TABLE `reserva` ( `id` int(11) NOT NULL, `club_id` int(11) NOT NULL, `escenario_id` int(11) NOT NULL, `deporte_entrenamiento` int(11) NOT NULL, `descripcion` varchar(200) NOT NULL, `fecha_hora_inicio` datetime NOT NULL, `fecha_hora_fin` datetime NOT NULL, `estado` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `club` -- ALTER TABLE `club` ADD PRIMARY KEY (`id`), ADD KEY `fk_club_entrenador1_idx` (`entrenador_cedula`), ADD KEY `fk_club_deporte_idx` (`deporte_entrenamiento`); -- -- Indices de la tabla `deportes` -- ALTER TABLE `deportes` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `deportista` -- ALTER TABLE `deportista` ADD PRIMARY KEY (`cedula`), ADD KEY `deportes_idx` (`deporte`); -- -- Indices de la tabla `deportista_club` -- ALTER TABLE `deportista_club` ADD KEY `fk_deportista_club_deportista_idx` (`deportista_cedula`), ADD KEY `fk_deportista_club_club1_idx` (`club_id`); -- -- Indices de la tabla `deportista_reserva` -- ALTER TABLE `deportista_reserva` ADD KEY `fk_deportista_reserva_deportista1_idx` (`deportista_cedula`), ADD KEY `fk_deportista_reserva_reserva1_idx` (`reserva_id`); -- -- Indices de la tabla `entrenador` -- ALTER TABLE `entrenador` ADD PRIMARY KEY (`cedula`); -- -- Indices de la tabla `escenario` -- ALTER TABLE `escenario` ADD PRIMARY KEY (`id`), ADD KEY `fk_escenario_deportes_idx` (`deporte`); -- -- Indices de la tabla `horario` -- ALTER TABLE `horario` ADD PRIMARY KEY (`id`), ADD KEY `fk_horario_escenario1_idx` (`escenario_id`); -- -- Indices de la tabla `reserva` -- ALTER TABLE `reserva` ADD PRIMARY KEY (`id`), ADD KEY `fk_reserva_club1_idx` (`club_id`), ADD KEY `fk_reserva_escenario1_idx` (`escenario_id`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `deportes` -- ALTER TABLE `deportes` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT de la tabla `escenario` -- ALTER TABLE `escenario` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT de la tabla `horario` -- ALTER TABLE `horario` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `club` -- ALTER TABLE `club` ADD CONSTRAINT `fk_club_deporte` FOREIGN KEY (`deporte_entrenamiento`) REFERENCES `deportes` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_club_entrenador1` FOREIGN KEY (`entrenador_cedula`) REFERENCES `entrenador` (`cedula`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `deportista` -- ALTER TABLE `deportista` ADD CONSTRAINT `deportes` FOREIGN KEY (`deporte`) REFERENCES `deportes` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `deportista_club` -- ALTER TABLE `deportista_club` ADD CONSTRAINT `fk_deportista_club_club1` FOREIGN KEY (`club_id`) REFERENCES `club` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_deportista_club_deportista` FOREIGN KEY (`deportista_cedula`) REFERENCES `deportista` (`cedula`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `deportista_reserva` -- ALTER TABLE `deportista_reserva` ADD CONSTRAINT `fk_deportista_reserva_deportista1` FOREIGN KEY (`deportista_cedula`) REFERENCES `deportista` (`cedula`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_deportista_reserva_reserva1` FOREIGN KEY (`reserva_id`) REFERENCES `reserva` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `escenario` -- ALTER TABLE `escenario` ADD CONSTRAINT `fk_escenario_deportes` FOREIGN KEY (`deporte`) REFERENCES `deportes` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `horario` -- ALTER TABLE `horario` ADD CONSTRAINT `fk_horario_escenario1` FOREIGN KEY (`escenario_id`) REFERENCES `escenario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `reserva` -- ALTER TABLE `reserva` ADD CONSTRAINT `fk_reserva_club1` FOREIGN KEY (`club_id`) REFERENCES `club` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_reserva_escenario1` FOREIGN KEY (`escenario_id`) REFERENCES `escenario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
select * from Facilities where facid in (1,5)
CREATE DATABASE SweetnSalty; CREATE TABLE Person ( ); CREATE TABLE Flavor ( ); CREATE TABLE PersonFlavorJunction ( );
-- project."transaction" definition -- Drop table -- DROP TABLE project."transaction"; CREATE TABLE project."transaction" ( id int4 NOT NULL DEFAULT nextval('project.transaction_account_sequence'::regclass), bank_sender_id int4 NOT NULL, bank_receiver_id int4 NOT NULL, amount numeric(10,2) NOT NULL, status varchar(50) NOT NULL, date_send date NOT NULL, date_receive date NULL, CONSTRAINT transaction_pkey PRIMARY KEY (id) ); -- project."transaction" foreign keys ALTER TABLE project."transaction" ADD CONSTRAINT receiver_bank_id FOREIGN KEY (bank_receiver_id) REFERENCES project.bank_account(id); ALTER TABLE project."transaction" ADD CONSTRAINT transaction_bank_sender_id_fkey FOREIGN KEY (bank_sender_id) REFERENCES project.bank_account(id); -- DML SELECT id, bank_sender_id, bank_receiver_id, amount, status, date_send, date_receive FROM project."transaction"; INSERT INTO project."transaction" (bank_sender_id, bank_receiver_id, amount, status, date_send, date_receive) VALUES(0, 0, 0, '', '', ''); UPDATE project."transaction" SET bank_sender_id=0, bank_receiver_id=0, amount=0, status='', date_send='', date_receive='' WHERE id=nextval('project.transaction_account_sequence'::regclass);
-- Codez deux procédures stockées correspondant aux requêtes 9 et 10. Les procédures stockées doivent prendre en compte les éventuels paramètres. -- 9 – Depuis quelle date le client « Du monde entier » n’a plus commandé ? DROP PROCEDURE IF EXISTS date_lastorder DELIMITER // CREATE PROCEDURE date_lastorder ( IN client CHAR(5) ) BEGIN SELECT `CustomerID`, `OrderDate` AS 'Date de dernière commande' FROM `orders` WHERE `CustomerID` = client ORDER BY `Date de dernière commande` DESC LIMIT 1; END // DELIMITER ; -- 10 – Quel est le délai moyen de livraison en jours ? DROP PROCEDURE IF EXISTS delai_liv_moy DELIMITER // CREATE PROCEDURE delai_liv_moy () BEGIN SELECT ROUND(AVG(DATEDIFF(`ShippedDate`,`OrderDate`))) AS 'Délai moyen de livraison en jours' FROM `orders`; END // DELIMITER ;
<reponame>finne132/burger INSERT INTO burgers ( burger_name, devoured ) VALUES ( "Hawaiian Volcano Burger", 0 ), ( "2lb Juicy Lucy", 0 ), ( "Peanut Butter and Jelly Burger", 0 );
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 02, 2019 at 03:58 PM -- Server version: 10.1.33-MariaDB -- PHP Version: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `gallary` -- -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE `categories` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `categories` -- INSERT INTO `categories` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Animal', '2018-10-05 08:14:19', '2018-10-05 08:14:19'), (2, 'Flower', '2018-10-05 08:14:19', '2018-10-05 08:14:19'), (3, 'Horror', '2018-10-05 08:14:19', '2018-10-05 08:14:19'), (4, 'Natural', '2018-10-05 08:14:19', '2018-10-05 08:14:19'); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (13, '2014_10_12_000000_create_users_table', 1), (14, '2014_10_12_100000_create_password_resets_table', 1), (15, '2018_10_05_092923_create_posts_table', 1), (16, '2018_10_05_093033_create_categories_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `posts` -- CREATE TABLE `posts` ( `id` int(10) UNSIGNED NOT NULL, `imagename` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `description` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `cetagory_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `author_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `posts` -- INSERT INTO `posts` (`id`, `imagename`, `image`, `description`, `cetagory_id`, `user_id`, `author_name`, `created_at`, `updated_at`) VALUES (3, 'cat', 'index1.jpg', 'Lion is the king of animal', 1, 1, 'Rasel', '2018-10-05 09:56:25', '2018-10-05 13:00:52'), (4, 'Tiger', 'imags.jpg', 'Royel Bengul Tiger is National Animal in bangladesh', 1, 1, 'Rasel', '2018-10-05 09:57:15', '2018-10-05 09:57:15'), (5, 'Cat', 'images.jpg', 'Cat is Pretti Animal', 1, 1, 'Rasel', '2018-10-05 09:58:00', '2018-10-05 14:36:28'), (7, 'Norway Sky', 'index.jpg', 'It is very amazing sky', 4, 2, 'mohib', '2018-10-05 10:00:31', '2018-10-05 10:00:31'), (8, 'Last world', 'indexq.jpg', 'Last world in', 4, 2, 'mohib', '2018-10-05 10:01:00', '2018-10-05 10:01:00'), (9, 'Flower', 'imagedds.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley', 2, 1, 'Rasel', '2018-10-05 14:07:46', '2018-10-05 14:07:46'), (10, 'Flower', 'ind.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley', 2, 1, 'Rasel', '2018-10-05 14:08:07', '2018-10-05 14:08:07'), (11, 'Flower', 'indexddd.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley', 2, 1, 'Rasel', '2018-10-05 14:08:23', '2018-10-05 14:08:23'), (12, 'Flower', 'imagedds.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley', 2, 1, 'Rasel', '2018-10-05 14:08:38', '2018-10-05 14:08:38'), (13, 'Alone', 'indedddx.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley', 3, 2, 'mohib', '2018-10-05 14:09:43', '2018-10-05 14:09:43'), (14, 'Alone', 'indel.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley', 3, 2, 'mohib', '2018-10-05 14:09:59', '2018-10-05 14:09:59'), (15, 'Alone', 'indessx.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley', 3, 2, 'mohib', '2018-10-05 14:10:15', '2018-10-05 14:10:15'), (16, 'Alone', 'indx.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley', 3, 2, 'mohib', '2018-10-05 14:10:33', '2018-10-05 14:10:33'), (17, 'Animal', 'imagegggs.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy', 1, 1, 'Rasel', '2018-10-05 14:44:11', '2018-10-05 14:44:11'), (18, 'Natural', 'im.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy', 4, 1, 'Rasel', '2018-10-05 14:44:31', '2018-10-05 14:44:31'), (19, 'Natural', 'imagedfs.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy', 4, 1, 'Rasel', '2018-10-05 14:44:46', '2018-10-05 14:44:46'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `role` int(11) NOT NULL DEFAULT '0', `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `email`, `role`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'Rasel', '<EMAIL>', 1, '$2y$10$2E5eN1zGmmR4/KoD.y.1Vu5jq7Yg3qgX8y63RVQe8ZgwHUGxv.HFS', 'TV3CoYwXOWXlWZdCrwRvVrlsyFn2DP1OZ39AWNVtLnsCks8kX0o4b42nlxmS', '2018-10-05 08:14:19', '2018-10-05 08:14:19'), (2, 'mohib', '<EMAIL>', 0, '$2y$10$6ntCGZhZaXK.MFLcjbkXwOewwwc..36IUSy70UgyPv5b4CpbO7E.2', 'RKOvImmfgwmdbPzsCVwic49FJrwt81mwRgJddu0pLQCnExYengon0aZ8z58a', '2018-10-05 09:59:47', '2018-10-05 09:59:47'); -- -- Indexes for dumped tables -- -- -- Indexes for table `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `posts` -- ALTER TABLE `posts` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `categories` -- ALTER TABLE `categories` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `posts` -- ALTER TABLE `posts` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
PROMPT ALTER TABLE grupo ADD CONSTRAINT grupo_pk PRIMARY KEY ALTER TABLE grupo ADD CONSTRAINT grupo_pk PRIMARY KEY ( grupo_id ) USING INDEX STORAGE ( NEXT 1024 K ) /
<reponame>andwilson36/Employee_Tracker -- to show all info SELECT employee.id AS ID, CONCAT(first_name, ' ', last_name) AS Name, title AS Title, department.name AS Department, salary AS Salary, manager_id AS Manager_ID FROM employee INNER JOIN role ON role.id = employee.role_id INNER JOIN department ON role.department_id = department.id;
-- phpMyAdmin SQL Dump -- version 4.6.6deb5ubuntu0.5 -- https://www.phpmyadmin.net/ -- -- Client : localhost:3306 -- Généré le : Ven 11 Décembre 2020 à 16:56 -- Version du serveur : 5.7.32-0ubuntu0.18.04.1 -- Version de PHP : 7.2.32-1+ubuntu18.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de données : `fafouloux` -- -- -------------------------------------------------------- -- -- Structure de la table `events` -- CREATE TABLE `events` ( `id` int(11) NOT NULL, `title` varchar(255) COLLATE utf16_unicode_ci NOT NULL, `description` varchar(255) COLLATE utf16_unicode_ci NOT NULL, `comment` text COLLATE utf16_unicode_ci, `image` varchar(255) COLLATE utf16_unicode_ci NOT NULL, `start_date_time` datetime NOT NULL, `end_date_time` datetime NOT NULL, `seats` int(11) NOT NULL, `price` decimal(5,2) NOT NULL, `place_id` int(11) NOT NULL, `canceled` tinyint(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_unicode_ci; -- -- Contenu de la table `events` -- INSERT INTO `events` (`id`, `title`, `description`, `comment`, `image`, `start_date_time`, `end_date_time`, `seats`, `price`, `place_id`, `canceled`) VALUES (1, 'Evénément n°1', 'description 1', 'Infos complémentaires 1', '/images/evenement1.jpg', '2020-12-10 18:00:00', '2020-12-10 20:00:00', 20, '15.50', 3, 0), (2, 'Evénement n°2', 'description 2', 'Info complémentaire 2', '/images/evenement2.jpg', '2020-12-16 11:00:00', '2020-12-16 15:00:00', 15, '12.50', 6, 0), (3, 'Evénement n° 3', 'description 3', 'Info complémentaire 3', '/images/evenement3.jpg', '2020-12-22 08:00:00', '2020-12-25 10:00:00', 15, '0.00', 6, 0); -- -------------------------------------------------------- -- -- Structure de la table `places` -- CREATE TABLE `places` ( `id` int(11) NOT NULL, `name` varchar(255) COLLATE utf16_unicode_ci NOT NULL, `address` varchar(255) COLLATE utf16_unicode_ci NOT NULL, `zipcode` char(5) COLLATE utf16_unicode_ci NOT NULL, `city` varchar(255) COLLATE utf16_unicode_ci NOT NULL, `default_seats` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_unicode_ci; -- -- Contenu de la table `places` -- INSERT INTO `places` (`id`, `name`, `address`, `zipcode`, `city`, `default_seats`) VALUES (3, 'Salle n°1', '22 rue <NAME>', '88000', 'Epinal', 40), (4, 'Salle n°2', '14 place Clémenceau', '88150', '<NAME>', 70), (5, 'Salle n°3', '16 rue <NAME>', '88000', 'Epinal', 25), (6, 'Salle N°4', '6 rue de Golbey', '88000', 'Epinal', 64), (7, 'Salle n°5', '16 rue de la Prairie enchantée', '88000', 'Epinal', 15); -- -------------------------------------------------------- -- -- Structure de la table `tickets` -- CREATE TABLE `tickets` ( `id` int(11) NOT NULL, `name` varchar(255) COLLATE utf16_unicode_ci NOT NULL, `email` varchar(100) COLLATE utf16_unicode_ci NOT NULL, `phone` varchar(20) COLLATE utf16_unicode_ci NOT NULL, `seats` tinyint(4) NOT NULL, `is_paid` tinyint(1) NOT NULL DEFAULT '0', `event_id` int(1) NOT NULL DEFAULT '0', `transaction_code` varchar(255) COLLATE utf16_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_unicode_ci; -- -- Contenu de la table `tickets` -- INSERT INTO `tickets` (`id`, `name`, `email`, `phone`, `seats`, `is_paid`, `event_id`, `transaction_code`) VALUES (21, 'qsdsqd', 'qsdq', 'qsdqsd', 3, 0, 1, 'PENDING'), (22, 'dsf', 'sdfsdf', 'sdfsdf', 5, 1, 1, 'acrdpvwm'), (23, 'dsfsdf', 'sdf', 'sdfsd', 4, 1, 3, 'FREE'), (24, 'sdfs', 'sdfsdf', 'sdfsdfsdf', 4, 1, 3, 'FREE'), (25, 'sqdsq', 'qsdqs', 'qsd', 3, 1, 1, '2qyez5dr'), (26, 'sdfsd f s', '<EMAIL>', '000000', 3, 1, 3, 'FREE'), (27, 'dgdf dfg dfg', '<EMAIL>', 'dsfsdfsdf', 4, 1, 1, '96yct3af'); -- -- Index pour les tables exportées -- -- -- Index pour la table `events` -- ALTER TABLE `events` ADD PRIMARY KEY (`id`), ADD KEY `events_fk0` (`place_id`); -- -- Index pour la table `places` -- ALTER TABLE `places` ADD PRIMARY KEY (`id`); -- -- Index pour la table `tickets` -- ALTER TABLE `tickets` ADD PRIMARY KEY (`id`), ADD KEY `tickets_fk0` (`event_id`); -- -- AUTO_INCREMENT pour les tables exportées -- -- -- AUTO_INCREMENT pour la table `events` -- ALTER TABLE `events` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT pour la table `places` -- ALTER TABLE `places` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT pour la table `tickets` -- ALTER TABLE `tickets` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28; -- -- Contraintes pour les tables exportées -- -- -- Contraintes pour la table `events` -- ALTER TABLE `events` ADD CONSTRAINT `events_fk0` FOREIGN KEY (`place_id`) REFERENCES `places` (`id`); -- -- Contraintes pour la table `tickets` -- ALTER TABLE `tickets` ADD CONSTRAINT `tickets_fk0` FOREIGN KEY (`event_id`) REFERENCES `events` (`id`); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>dbdump/lsapp.sql -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 25, 2021 at 05:02 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `lsapp` -- -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2021_01_18_115209_create_posts_table', 1), (5, '2021_01_22_125148_add_user_id_to_posts', 2), (6, '2021_01_24_115807_add_cover_image_to_posts', 3); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `posts` -- CREATE TABLE `posts` ( `id` bigint(20) UNSIGNED NOT NULL, `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `body` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `user_id` int(11) NOT NULL, `cover_image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `posts` -- INSERT INTO `posts` (`id`, `title`, `body`, `created_at`, `updated_at`, `user_id`, `cover_image`) VALUES (9, 'Post One', '<p>This is Post One</p>', '2021-01-24 05:49:03', '2021-01-24 05:49:03', 1, 'NoImage.jpg'), (10, 'Post Two', '<p>this is post two</p>', '2021-01-24 05:55:27', '2021-01-24 05:55:27', 1, '20180410_121509_1611492927.jpg'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'y<NAME>', '<EMAIL>', NULL, '$2y$10$UDQy50ODlsna832x1HZNbOnlZUhnDHSknSfqrNY8jCPoiKS3C87A6', NULL, '2021-01-22 05:31:28', '2021-01-22 05:31:28'), (2, 'bambang', '<EMAIL>', NULL, '$2y$10$uAB3MDs2TIoupNq/c3fie.IXBb0akWrjEGyrFDIBxZVnmohoCGRGm', NULL, '2021-01-23 05:08:07', '2021-01-23 05:08:07'); -- -- Indexes for dumped tables -- -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `posts` -- ALTER TABLE `posts` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `posts` -- ALTER TABLE `posts` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>src/SFA.Apprenticeships.Data.AvmsPlus/Scripts/Data/dbo.County.Upsert.sql SET IDENTITY_INSERT [dbo].[County] ON GO MERGE INTO [dbo].[County] AS Target USING (VALUES (0, N'NA', N'NA', N'Please Select...'), (1, N'BED', N'BED', N'Bedfordshire'), (2, N'BER', N'BER', N'Berkshire'), (3, N'BUC', N'BUC', N'Buckinghamshire'), (4, N'CAM', N'CAM', N'Cambridgeshire'), (5, N'CHE', N'CHE', N'Cheshire'), (6, N'COR', N'COR', N'Cornwall'), (7, N'CUM', N'CUM', N'Cumbria'), (8, N'DER', N'DER', N'Derbyshire'), (9, N'DEV', N'DEV', N'Devon'), (10, N'DOR', N'DOR', N'Dorset'), (11, N'DUR', N'DUR', N'Durham'), (12, N'EYK', N'EYK', N'East Riding of Yorkshire'), (13, N'ESX', N'ESX', N'East Sussex'), (14, N'ESS', N'ESS', N'Essex'), (15, N'GLO', N'GLO', N'Gloucestershire'), (16, N'GMN', N'GMN', N'Greater Manchester'), (17, N'HAM', N'HAM', N'Hampshire'), (18, N'HFD', N'HFD', N'Herefordshire'), (19, N'HTF', N'HTF', N'Hertfordshire'), (20, N'IOW', N'IOW', N'Isle of Wight'), (21, N'KEN', N'KEN', N'Kent'), (22, N'LAN', N'LAN', N'Lancashire'), (23, N'LEI', N'LEI', N'Leicestershire'), (24, N'LIN', N'LIN', N'Lincolnshire'), (25, N'LON', N'LON', N'London'), (26, N'MSY', N'MSY', N'Merseyside'), (27, N'NOR', N'NOR', N'Norfolk'), (28, N'NYK', N'NYK', N'North Yorkshire'), (29, N'NTP', N'NTP', N'Northamptonshire'), (30, N'NTB', N'NTB', N'Northumberland'), (31, N'NTG', N'NTG', N'Nottinghamshire'), (32, N'OXF', N'OXF', N'Oxfordshire'), (33, N'SHR', N'SHR', N'Shropshire'), (34, N'SOM', N'SOM', N'Somerset'), (35, N'SYK', N'SYK', N'South Yorkshire'), (36, N'STA', N'STA', N'Staffordshire'), (37, N'SUF', N'SUF', N'Suffolk'), (38, N'SUR', N'SUR', N'Surrey'), (39, N'TAW', N'TAW', N'Tyne and Wear'), (40, N'WAR', N'WAR', N'Warwickshire'), (41, N'WMD', N'WMD', N'West Midlands'), (42, N'WSX', N'WSX', N'West Sussex'), (43, N'WYK', N'WYK', N'West Yorkshire'), (44, N'WIL', N'WIL', N'Wiltshire'), (45, N'WOR', N'WOR', N'Worcestershire'), (46, N'RUT', N'RUT', N'Rutland'), (47, N'IOS', N'IOS', N'Isles of Scilly') ) AS Source (CountyId, CodeName, ShortName, FullName) ON Target.CountyId = Source.CountyId -- update matched rows WHEN MATCHED THEN UPDATE SET CodeName = Source.CodeName, ShortName = Source.ShortName, FullName = Source.FullName -- insert new rows WHEN NOT MATCHED BY TARGET THEN INSERT (CountyId, CodeName, ShortName, FullName) VALUES (CountyId, CodeName, ShortName, FullName) -- delete rows that are in the target but not the source WHEN NOT MATCHED BY SOURCE THEN DELETE; SET IDENTITY_INSERT [dbo].[County] OFF GO
/* interactive-complex-6 */ select t_name, count(*) from tag, message_tag, message, ( select k_person2id from knows where k_person1id = 35184372093720 union select k2.k_person2id from knows k1, knows k2 where k1.k_person1id = 35184372093720 and k1.k_person2id = k2.k_person1id and k2.k_person2id <> 35184372093720 ) f where m_creatorid = f.k_person2id and m_c_replyof IS NULL and m_messageid = mt_messageid and mt_tagid = t_tagid and t_name <> 'Chulalongkorn' and exists (select * from tag, message_tag where mt_messageid = m_messageid and mt_tagid = t_tagid and t_name = 'Chulalongkorn') group by t_name order by 2 desc, t_name limit 10;
drop view if exists PEROBOBBOT.PLATFORM_USER_VIEW; drop view if exists PEROBOBBOT.USER_TOKEN_VIEW; drop view if exists PEROBOBBOT.SAFE_VIEW; create view PEROBOBBOT.PLATFORM_USER_VIEW (ID,PLATFORM,USER_ID,LOGIN) as select pu.ID, pu.PLATFORM, pu.USER_ID, (case when pu.PLATFORM = 'Discord' then pu.DISCORD_LOGIN when pu.PLATFORM = 'Twitch' then pu.TWITCH_LOGIN else 'Unknown' end ) from PEROBOBBOT.PLATFORM_USER as pu; create view PEROBOBBOT.USER_TOKEN_VIEW (PLATFORM, LOGIN, PLATFORM_USER_ID, PLATFORM_LOGIN, SCOPES) as select puv.PLATFORM, u.LOGIN, puv.USER_ID, puv.LOGIN, ut.SCOPES from PEROBOBBOT.PLATFORM_USER_VIEW as puv left join PEROBOBBOT.USER_TOKEN as ut on puv.ID = ut.PLATFORM_USER_ID left join PEROBOBBOT.USER U on U.ID = ut.USER_ID; create view PEROBOBBOT.SAFE_VIEW as select s.ID, puv.PLATFORM, puv.LOGIN, sc.POINT_TYPE, sc.CREDIT from PEROBOBBOT.SAFE as s join PEROBOBBOT.SAFE_CREDIT as sc on s.ID = sc.ID join PEROBOBBOT.PLATFORM_USER_VIEW as puv on s.PLATFORM_USER_ID = puv.ID;
-- file:sequence.sql ln:368 expect:true SELECT lastval()
DELETE FROM KRCR_PARM_T WHERE NMSPC_CD = 'KC-PD' AND PARM_NM = 'pessimisticLocking.timeout' / UPDATE KRCR_PARM_T SET NMSPC_CD = 'KC-SYS', CMPNT_CD = 'All' WHERE NMSPC_CD = 'KC-PD' AND PARM_NM in ('pessimisticLocking.cronExpression', 'pessimisticLocking.expirationAge') /
----- -- category links ----- create table category_links ( link_id integer not null constraint category_links_pk primary key, from_category_id integer not null constraint category_links_from_fk references categories on delete cascade, to_category_id integer not null constraint category_links_to_fk references categories on delete cascade, constraint category_links_un unique (from_category_id, to_category_id) ); create unique index category_links_rev_ix on category_links (to_category_id, from_category_id); create sequence category_links_id_seq; comment on table category_links is ' Stores directed graph of linked categories. If category A and category B are linked, then any categorization on A will result in an additional categorization in B. '; comment on column category_links.link_id is ' Primary key. '; comment on column category_links.from_category_id is ' Category the link is coming from. Any categorization in this category will trigger a categorization in the other category. '; comment on column category_links.to_category_id is ' Category the link is coming to. Any categorization in the other category will trigger a categorization in this category. '; \i ../category-link-package.sql
<filename>CiklumTask/spring-petclinic-master/src/main/resources/db/hsqldb/updateDB_visitReason.sql<gh_stars>0 ALTER TABLE visits ADD COLUMN reason VARCHAR(255) DEFAULT '' NOT NULL;
-- ======================================================================================= -- Basic -- ===== -- PostgreSQL's function needs a parameter or a return parameter -- so SP_NO_PARAMETER does not exist -- #df:begin# create or replace function SP_IN_OUT_PARAMETER( v_in_varchar in varchar , v_out_varchar out varchar , v_inout_varchar inout varchar ) as $BODY$ begin v_out_varchar := v_inout_varchar; v_inout_varchar := v_in_varchar; end; $BODY$ LANGUAGE 'plpgsql'; -- #df:end# -- #df:begin# create or replace function SP_RETURN_PARAMETER() returns integer as $BODY$ begin return 1; end; $BODY$ LANGUAGE 'plpgsql'; -- #df:end# -- #df:begin# create or replace function SP_VARIOUS_TYPE_PARAMETER( v_in_varchar in varchar , v_out_varchar out varchar , v_out_char out char , v_in_text in text , v_out_text out text , vv_in_numeric_integer in numeric(5, 0) , vv_in_numeric_bigint in numeric(12, 0) , vv_in_numeric_decimal in numeric(5, 3) , vv_out_decimal out decimal , vv_out_integer out integer , vv_inout_integer inout integer , vv_out_bigint out bigint , vv_inout_bigint inout bigint , vvv_in_date in date , vvv_out_timestamp out timestamp , vvv_in_time in time , vvvv_in_bool in bool , vvvv_in_bytea in bytea , vvvv_in_oid in oid , vvvv_in_uuid in uuid ) as $BODY$ begin v_out_varchar := v_in_varchar; v_out_char := 'qux'; v_out_text := v_in_text; vv_out_decimal := 987.654; vv_out_bigint := vv_inout_integer; vv_inout_integer := vv_inout_bigint; vv_inout_bigint := vv_out_integer; vv_out_integer := 6789; vvv_out_timestamp := current_timestamp; end; $BODY$ LANGUAGE 'plpgsql'; -- #df:end# -- ======================================================================================= -- ResultSet Parameter -- =================== -- #df:begin# create or replace function SP_RESULT_SET_PARAMETER(cur_member out refcursor) as $BODY$ begin open cur_member for select MEMBER_ID, MEMBER_NAME, BIRTHDATE, FORMALIZED_DATETIME, MEMBER_STATUS_CODE from MEMBER; end; $BODY$ LANGUAGE 'plpgsql'; -- #df:end# -- #df:begin# create or replace function SP_RESULT_SET_PARAMETER_MORE( cur_member out refcursor , cur_member_status out refcursor ) as $BODY$ begin open cur_member for select MEMBER_ID, MEMBER_NAME, BIRTHDATE, FORMALIZED_DATETIME, MEMBER_STATUS_CODE from MEMBER; open cur_member_status for select * from MEMBER_STATUS; end; $BODY$ LANGUAGE 'plpgsql'; -- #df:end# -- ======================================================================================= -- Return ResultSet -- ================ -- #df:begin# create or replace function SP_RETURN_RESULT_SET() returns refcursor as $BODY$ declare cur_member refcursor; begin open cur_member for select MEMBER_ID, MEMBER_NAME, BIRTHDATE, FORMALIZED_DATETIME, MEMBER_STATUS_CODE from MEMBER; return cur_member; end; $BODY$ LANGUAGE 'plpgsql'; -- #df:end# -- #df:begin# create or replace function SP_RETURN_RESULT_SET_WITH( v_in_char in char , v_out_varchar in varchar , v_inout_varchar in varchar ) returns refcursor as $BODY$ declare cur_member refcursor; begin open cur_member for select MEMBER_ID, MEMBER_NAME, BIRTHDATE, FORMALIZED_DATETIME, MEMBER_STATUS_CODE from MEMBER where MEMBER_STATUS_CODE = v_in_char; return cur_member; end; $BODY$ LANGUAGE 'plpgsql'; -- #df:end# -- ======================================================================================= -- Transaction -- =========== -- #df:begin# -- test for being called from Sql2Entity and Application Execution create or replace function SP_TRANSACTION_INHERIT() returns integer as $BODY$ begin delete from MEMBER_LOGIN; return 1; end; $BODY$ LANGUAGE 'plpgsql'; -- #df:end# -- ======================================================================================= -- Naming -- ====== -- #df:begin# create or replace function SpCamelCaseProcedure( fooParam in varchar , BarParam in varchar , vDonParam out varchar , VHeeParam in varchar , Poo_ParamName out varchar ) as $BODY$ begin vDonParam := 'ddd'; Poo_ParamName := 'eee'; end; $BODY$ LANGUAGE 'plpgsql'; -- #df:end#
<filename>luciddb/test/sql/analyze/analyze.sql !set headerinterval 0 set schema 'analyzetest'; -- System sampling should cause the same results across runs. If row insertion -- order changes, this test may produce different results. If row insertion -- order becomes non-deterministic, this test will become non-deterministic. analyze table bench10k estimate statistics for all columns; analyze table bench1m estimate statistics for all columns; analyze table index_est estimate statistics for all columns; select table_name, column_name, distinct_value_count, is_distinct_value_count_estimated, percent_sampled, sample_size from sys_root.dba_column_stats where schema_name = 'ANALYZETEST' order by table_name, column_name; select table_name, column_name, ordinal, start_value, value_count from sys_root.dba_column_histograms where schema_name = 'ANALYZETEST' and table_name = 'BENCH1M' and column_name = 'kseq'; select table_name, column_name, ordinal, start_value, value_count from sys_root.dba_column_histograms where schema_name = 'ANALYZETEST' and table_name = 'BENCH1M' and column_name = 'k2'; select table_name, column_name, ordinal, start_value, value_count from sys_root.dba_column_histograms where schema_name = 'ANALYZETEST' and table_name = 'BENCH1M' and column_name = 'k1k'; select table_name, column_name, ordinal, start_value, value_count from sys_root.dba_column_histograms where schema_name = 'ANALYZETEST' and table_name = 'BENCH10K' and column_name = 'kseq'; select table_name, column_name, ordinal, start_value, value_count from sys_root.dba_column_histograms where schema_name = 'ANALYZETEST' and table_name = 'BENCH10K' and column_name = 'k2'; select table_name, column_name, ordinal, start_value, value_count from sys_root.dba_column_histograms where schema_name = 'ANALYZETEST' and table_name = 'BENCH10K' and column_name = 'k1k'; -- delete rows from the index_est table and recompute the stats delete from index_est where mod("kseq", 3) = 0; -- analyze table index_est estimate statistics for all columns sample 25 percent; select table_name, column_name, distinct_value_count, is_distinct_value_count_estimated, percent_sampled, sample_size from sys_root.dba_column_stats where schema_name = 'ANALYZETEST' and table_name = 'INDEX_EST' order by column_name;
UPDATE [user] SET password = <PASSWORD> WHERE (username = @org_username)
<gh_stars>10-100 /* Navicat MySQL Data Transfer Source Server : 127.0.0.1 Source Server Version : 50553 Source Host : localhost:3306 Source Database : tp5_pro Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2019-08-23 11:34:54 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for tp5_xactivitys -- ---------------------------- DROP TABLE IF EXISTS `tp5_xactivitys`; CREATE TABLE `tp5_xactivitys` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(100) NOT NULL COMMENT '活动推荐标题 ,可用于产品详情页广告位', `act_img` varchar(500) NOT NULL DEFAULT '0' COMMENT '活动图片', `act_url` varchar(100) NOT NULL DEFAULT '0' COMMENT '链接', `act_tag` varchar(100) NOT NULL DEFAULT '' COMMENT '唯一标识字符串 建议大写', `act_type` smallint(6) NOT NULL DEFAULT '1' COMMENT '活动类型,1:为首页活动 2:其他活动', `list_order` int(11) NOT NULL DEFAULT '0' COMMENT '排序,数字越大越靠前', `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否在 app 首页显示 0:不显示 1:显示', `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT 'app前端显示状态 0:正常,-1已删除', `updated_at` timestamp NOT NULL DEFAULT '1970-01-01 10:00:00' ON UPDATE CURRENT_TIMESTAMP COMMENT '文章更新时间', PRIMARY KEY (`id`,`act_tag`), UNIQUE KEY `act_tag` (`act_tag`) USING BTREE COMMENT '唯一标识索引', KEY `select` (`id`,`title`,`act_url`) USING BTREE COMMENT '便于查询' ) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COMMENT='活动表\r\n\r\n一般用于显示app首页上的活动专栏,注意status的规定'; -- ---------------------------- -- Records of tp5_xactivitys -- ---------------------------- INSERT INTO `tp5_xactivitys` VALUES ('1', '特价商品推荐', '/cms/images/imgOne.png', 'page/index/spring.xml', 'TJSPTJ', '2', '1', '1', '0', '2019-07-10 15:59:21'); INSERT INTO `tp5_xactivitys` VALUES ('2', '春季特惠商品', '/cms/images/imgTwo.png', 'http://www.hello.com/imissyou.html', 'CJTHSPA', '1', '2', '0', '0', '2019-07-10 16:03:16'); INSERT INTO `tp5_xactivitys` VALUES ('3', '生活专区推荐', '/cms/images/imgThree.png', 'page/index/live', 'SHZQTJA', '1', '3', '1', '0', '2019-07-22 16:12:33'); -- ---------------------------- -- Table structure for tp5_xact_goods -- ---------------------------- DROP TABLE IF EXISTS `tp5_xact_goods`; CREATE TABLE `tp5_xact_goods` ( `id` int(11) NOT NULL AUTO_INCREMENT, `act_id` int(11) DEFAULT '0' COMMENT '活动id,对应 表 tp5_xactivitys', `goods_id` int(11) DEFAULT '0' COMMENT '参加该活动的商品ID', `status` tinyint(2) DEFAULT '0' COMMENT '0 :正常 -1:已删除', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COMMENT='活动商品关联表\r\n\r\n'; -- ---------------------------- -- Records of tp5_xact_goods -- ---------------------------- INSERT INTO `tp5_xact_goods` VALUES ('1', '1', '1', '-1'); INSERT INTO `tp5_xact_goods` VALUES ('2', '1', '2', '-1'); INSERT INTO `tp5_xact_goods` VALUES ('3', '1', '3', '-1'); INSERT INTO `tp5_xact_goods` VALUES ('4', '2', '1', '-1'); INSERT INTO `tp5_xact_goods` VALUES ('5', '2', '2', '-1'); INSERT INTO `tp5_xact_goods` VALUES ('6', '2', '3', '-1'); INSERT INTO `tp5_xact_goods` VALUES ('7', '3', '1', '0'); INSERT INTO `tp5_xact_goods` VALUES ('8', '3', '2', '0'); INSERT INTO `tp5_xact_goods` VALUES ('9', '3', '3', '0'); INSERT INTO `tp5_xact_goods` VALUES ('10', '1', '7', '-1'); INSERT INTO `tp5_xact_goods` VALUES ('11', '1', '12', '-1'); INSERT INTO `tp5_xact_goods` VALUES ('12', '1', '30', '-1'); INSERT INTO `tp5_xact_goods` VALUES ('13', '1', '5', '-1'); INSERT INTO `tp5_xact_goods` VALUES ('14', '1', '31', '-1'); INSERT INTO `tp5_xact_goods` VALUES ('15', '6', '5', '0'); INSERT INTO `tp5_xact_goods` VALUES ('16', '1', '13', '-1'); INSERT INTO `tp5_xact_goods` VALUES ('17', '9', '18', '0'); INSERT INTO `tp5_xact_goods` VALUES ('18', '9', '13', '0'); INSERT INTO `tp5_xact_goods` VALUES ('19', '9', '19', '0'); INSERT INTO `tp5_xact_goods` VALUES ('20', '5', '18', '0'); INSERT INTO `tp5_xact_goods` VALUES ('21', '10', '19', '0'); INSERT INTO `tp5_xact_goods` VALUES ('22', '10', '9', '0'); INSERT INTO `tp5_xact_goods` VALUES ('23', '10', '31', '0'); INSERT INTO `tp5_xact_goods` VALUES ('24', '2', '8', '0'); -- ---------------------------- -- Table structure for tp5_xadmins -- ---------------------------- DROP TABLE IF EXISTS `tp5_xadmins`; CREATE TABLE `tp5_xadmins` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID', `user_name` varchar(50) NOT NULL DEFAULT '' COMMENT '管理员昵称', `picture` varchar(255) NOT NULL DEFAULT '' COMMENT '管理员头像', `password` varchar(200) NOT NULL DEFAULT '' COMMENT '<PASSWORD>登录密码', `role_id` int(11) NOT NULL DEFAULT '0' COMMENT '角色ID', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态标识 0:无效;1:正常;-1:删除', `content` varchar(500) NOT NULL DEFAULT '世界上没有两片完全相同的叶子!' COMMENT '备注信息', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='管理员表'; -- ---------------------------- -- Records of tp5_xadmins -- ---------------------------- INSERT INTO `tp5_xadmins` VALUES ('1', '<EMAIL>', '/cms/images/headshot/niuNeng.png', '489a69905c665a5705eacaa333135af8', '1', '2019-08-16 10:41:47', '0', '世界上没有两片完全相同的叶子!'); INSERT INTO `tp5_xadmins` VALUES ('2', '<EMAIL>@<EMAIL>', '/cms/images/headshot/baZhaHei.png', 'db69fc039dcbd2962cb4d28f5891aae1', '2', '2019-08-16 10:38:16', '1', '世界上没有两片完全相同的叶子!!'); INSERT INTO `tp5_xadmins` VALUES ('3', 'moTzxx@admin', '/cms/images/headshot/wuHuang.png', 'db69fc039dcbd2962cb4d28f5891aae1', '1', '2019-08-16 11:01:55', '1', '世界上没有两片完全相同的叶子!'); INSERT INTO `tp5_xadmins` VALUES ('8', 'moTzxx@admin2', '/cms/images/headshot/baZhaHei.png', 'db69fc039dcbd2962cb4d28f5891aae1', '1', '2019-08-16 10:38:46', '-1', 'admin2'); -- ---------------------------- -- Table structure for tp5_xadmin_roles -- ---------------------------- DROP TABLE IF EXISTS `tp5_xadmin_roles`; CREATE TABLE `tp5_xadmin_roles` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_name` varchar(50) NOT NULL DEFAULT '' COMMENT '角色称呼', `nav_menu_ids` text NOT NULL COMMENT '权限下的菜单ID', `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态标识', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='管理员角色表'; -- ---------------------------- -- Records of tp5_xadmin_roles -- ---------------------------- INSERT INTO `tp5_xadmin_roles` VALUES ('1', '终级管理员', '1|7|6|2|3|73|4|5|93|49|48|50|67|61|76|', '2019-07-30 18:08:27', '1'); INSERT INTO `tp5_xadmin_roles` VALUES ('2', '初级管理员', '1|6|2|3|4|5|', '2018-02-11 21:02:43', '1'); -- ---------------------------- -- Table structure for tp5_xad_lists -- ---------------------------- DROP TABLE IF EXISTS `tp5_xad_lists`; CREATE TABLE `tp5_xad_lists` ( `id` int(2) unsigned NOT NULL AUTO_INCREMENT COMMENT '广告自增id', `ad_name` varchar(20) NOT NULL DEFAULT '' COMMENT '广告名称', `start_time` varchar(20) NOT NULL COMMENT '广告开始投放时间', `end_time` varchar(20) NOT NULL COMMENT '广告结束时间', `ad_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '广告类型, 0:首页幻灯片广告 1:首屏加载倒计时广告;2:其他广告', `ad_url` varchar(50) NOT NULL DEFAULT '' COMMENT '广告链接', `original_img` varchar(500) NOT NULL DEFAULT '' COMMENT '广告图片', `list_order` int(3) unsigned NOT NULL DEFAULT '0' COMMENT '排序 数字越大越靠前', `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT 'app前端显示状态 0:正常,-1已删除', `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否在 app 首页显示 0:不显示 1:显示', `ad_tag` varchar(100) NOT NULL DEFAULT '' COMMENT '唯一标识字符串 建议大写', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='广告'; -- ---------------------------- -- Records of tp5_xad_lists -- ---------------------------- INSERT INTO `tp5_xad_lists` VALUES ('1', '首屏加载倒计时广告', '2019-07-02 00:00:00', '2019-07-06 00:00:00', '1', '/pages/goods/adlike', '/home/images/article2.png', '0', '0', '1', 'DJS'); INSERT INTO `tp5_xad_lists` VALUES ('2', '首屏广告', '2019-07-01 00:00:00', '2019-07-06 00:00:00', '2', '/goodsearch/index', '/home/images/article1.png', '2', '0', '0', 'SP'); INSERT INTO `tp5_xad_lists` VALUES ('3', '首屏广告', '2019-07-01 00:00:00', '2019-07-06 00:00:00', '0', '../goodsearch/index', '/home/images/article2.png', '0', '0', '1', 'SP'); INSERT INTO `tp5_xad_lists` VALUES ('4', '首屏广告', '2019-07-02 00:00:00', '2019-07-11 00:00:00', '2', '../goodsearch/index1', '/home/images/article3.png', '0', '0', '1', 'SP'); -- ---------------------------- -- Table structure for tp5_xarticles -- ---------------------------- DROP TABLE IF EXISTS `tp5_xarticles`; CREATE TABLE `tp5_xarticles` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Article 主键', `title` varchar(50) NOT NULL DEFAULT '' COMMENT '标题', `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '作者ID', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT '1970-01-01 10:00:00', `list_order` int(11) NOT NULL DEFAULT '0' COMMENT '排序标识 越大越靠前', `content` text NOT NULL COMMENT '文章内容', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COMMENT='文章表'; -- ---------------------------- -- Records of tp5_xarticles -- ---------------------------- INSERT INTO `tp5_xarticles` VALUES ('1', '这是今年最好的演讲:生命来来往往,来日并不方长', '1', '2018-02-11 21:02:42', '2019-02-22 09:02:28', '0', '<p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"letter-spacing: 0.544px; margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">视频中的演讲者算了一笔时间帐,如果一个人活到</span><span style=\"letter-spacing: 0.544px; margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; color: rgb(153, 0, 0); box-sizing: border-box !important; overflow-wrap: break-word !important;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">78岁</strong></span><span style=\"letter-spacing: 0.544px; margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">,那么:</span><br/></p><p class=\"\" style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">要花大概</span><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; color: rgb(153, 0, 0);\">28.3年</span></strong><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">在睡觉上,足足占据人生的三分之一;</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">要花大概</span><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; color: rgb(153, 0, 0);\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">10.5年</span></strong></span><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">在工作上;并且很可能这份工作不尽人意;</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">同时花在电视和社交媒体上的时间,也将占据</span><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; color: rgb(153, 0, 0);\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">9.5年</strong></span><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">;</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">另外,还有吃饭、化妆、照顾孩子等等,也都是不小的时间开销。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">算到最后,真正留给自己的岁月不过</span><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; color: rgb(153, 0, 0); font-size: 18px;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">9年</strong></span><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">而已。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\"><br/></span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">而如何利用这空白的9年,对每个人都有重大意义。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\"><br/></span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><img class=\" __bg_gif\" src=\"https://mmbiz.qpic.cn/mmbiz_gif/8DoQ2HTrG9wsKos14ib0E4YOyZEEtnoPwHXtHib4nT6qD8agbyicVRQgoH7d8WxAMYjHykZFrDcLB1YMgnTiaVuqZw/640?wx_fmt=gif&tp=webp&wxfrom=5&wx_lazy=1\"/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">我们每天都有</span><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; color: rgb(153, 0, 0);\">86400</span><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">秒存入自己的生命账户,一天结束后,第二天你将拥有新的86400秒。</span><br/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">如果这是一笔钱,没有人会任它白白溜走,但现实中我们却一天天浪费永不再来的时间。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">佛祖说,</span><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; color: rgb(153, 0, 0);\">人生最大的错误就是认为自己有时间</span><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\"><br/></span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">总以为岁月漫漫,有的是时间挥霍等待。</span><br/></p><p class=\"\" style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">总以为明天很多,很多事不必急于一时,很多人无需立刻相见。</span></p><p class=\"\" style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">但其实,人生来来往往,真的没有那么多来日方长。</span></strong></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\"><br/></span></strong></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; color: rgb(153, 0, 0);\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">余生很贵,经不起浪费。</span></span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; color: rgb(153, 0, 0);\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\"><br/></span></strong></span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><img class=\" __bg_gif\" src=\"https://mmbiz.qpic.cn/mmbiz_gif/8DoQ2HTrG9wsKos14ib0E4YOyZEEtnoPwCab90RLp84I8T3bNXE0FGlfWChHjwiaNfianCysBUhVvYKaaCL3YY6SA/640?wx_fmt=gif&tp=webp&wxfrom=5&wx_lazy=1\"/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\"><br/></span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">就像三毛所说,</span><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; color: rgb(153, 0, 0);\">我来不及认真地年轻,待明白过来时,只能选择认真地老去。</span></p><p class=\"\" style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">趁阳光正好,趁微风不燥,见想见的人,做想做的事,就是对人生最大的不辜负。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">所以,</span></strong></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">去爱吧,就像从来没有受过伤害一样</span></strong></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">跳舞吧,如同没有任何人注视你一样</span></strong></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px;\">活着吧,如同今天就是末日一样</span></strong></p><p class=\"\" style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; color: rgb(153, 0, 0); font-size: 15px;\">生命来来往往,来日并不方长,别等,别遗憾。</span></p>'); INSERT INTO `tp5_xarticles` VALUES ('2', '真正放下一个人,不是拉黑,也不是删除', '2', '2018-02-11 21:02:43', '2018-11-21 09:11:31', '0', '<p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\">有人说,越在乎,越假装不在乎;越放不下,越假装放得下。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\"><br/></span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px; color: rgb(153, 0, 0);\">没错。成年人的我们的确有着数不清的佯装,就连感情也难逃此劫。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\"><br/></span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\">那个曾被置顶、秒回消息、熬夜畅聊的人,连同那些曾经炽热的喜欢,深夜不眠畅谈的欢快和被宠着重视着的小雀跃,现如今都安安静静地躺在黑名单中。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\"><br/></span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\">不论是因为无所谓的小事而生气地冲动而为,还是因为有矛盾闹别扭时矫情地想博得关注,还是因为心碎而绝望地断绝关系,那看似干脆利落的拉黑、删除,都透露着在乎和放不下。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\">大张旗鼓的离开都是试探,试探对方是否像自己一样还在乎;假装洒脱的放下不过是自欺欺人,欺骗自己反正我也不怕离开他。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\"><br/></span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px; color: rgb(153, 0, 0);\">其实,你很在乎他,也害怕离开他。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\"><br/></span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\">拉黑或删除,不过是你害怕自己再次联系,不愿让自己卑微到尘埃里,想保留自己最后的尊严,而采取的无可奈何的强制手段;又或者是你期待着对方的主动联系,想证明他还在乎你,他离不开你,而实施的小手段。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\"><br/></span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\">而真正放下一个人,从来就不是拉黑和删除,不是明明在乎着却假装不在乎,明明放不下却假装已放下。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\"><br/></span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; min-height: 1em; color: rgb(51, 51, 51);\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\">真正的放下,是不闻不问,是沉默不语,是无动于衷。</span></strong></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; min-height: 1em; color: rgb(51, 51, 51);\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\"></span></strong></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px; color: rgb(153, 0, 0);\">但感情结束的那个瞬间,过去你深爱着的,深爱着你的那个人,便不再存在了。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\"><br/></span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\">他的美好,你们感情的默契,不过都是你记忆里的样子而已。而你的记忆常常会被你加上滤镜,就像相亲对象开了美颜的“照骗”一样,美好但不真实。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\"><br/></span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\">而这份值得回忆和珍藏的美好,只属于曾经,从不曾属于现在。</span></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; min-height: 1em; color: rgb(51, 51, 51);\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 15px; letter-spacing: 0.5px;\">要知道,执拗地坚持着不该坚持的,本就不是深情,是愚钝;而故作洒脱的拉黑、删除,又何尝不是因为放不下。</span></p>'); INSERT INTO `tp5_xarticles` VALUES ('4', '真正在乎你的人,绝不会说这句话', '1', '2019-07-18 09:54:31', '2019-07-18 09:07:31', '0', '<section><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); text-align: center;\"><video class=\"edui-upload-video vjs-default-skin video-js video-js\" controls=\"\" preload=\"none\" width=\"420\" height=\"280\" src=\"/upload/20190704/video/1562232422NzkwNzc5MTQyNTIz.mp4\"><source src=\"/upload/20190704/video/1562232422NzkwNzc5MTQyNTIz.mp4\" type=\"video/mp4\"/></video></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">在乎你的男人,绝不会说“我很忙,没时间”</strong></span><span style=\"font-size: 15px;\"></span></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"font-size: 15px;\"><br/></span></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"font-size: 15px;\">去年一封61岁老伯的辞职信火遍网络</span></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><img class=\" \" src=\"https://mmbiz.qpic.cn/mmbiz_jpg/GTJa0VtlmibJ9sbn9TYvApMBiaT6wzjmejyNQ92NocoaVfEc1CTicLic46G5DgWq06iaCzcpy6aiab9IAf0aK4iaAzjjA/640?wx_fmt=jpeg&wxfrom=5&wx_lazy=1&wx_co=1\"/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">你看,爱你的男人生怕陪你不够,爱你不够,给你不够,又怎会在你主动关心他,联系他的时候用“没时间”“我很忙”敷衍你呢?</strong></span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">网上有一段话,想陪你吃饭的人酸甜苦辣都想吃,想送你回家的人东南西北都顺路,<span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">想见你的人 24小时都有空&nbsp;</span></span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; color: rgb(153, 0, 0); font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">生活中没有谁是真的忙,只看他愿不愿你为你花时间</span></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; color: rgb(153, 0, 0); font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\"><br/></span></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">如果一个男人总是不回你信息,你想见他的时候,想联系他的时候经常用“没时间”“我很忙”来搪塞你。<br/></span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">那么,他或许并没有你想象的那般在乎你。</span></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><br/></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">在乎你的男人,绝不会说“你很烦”。</strong><br/></span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">电影《十二夜》中张柏芝和陈奕迅分手时的争吵让很多妹子看哭。</span></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">对男人而言,哪有什么高冷,只不过他暖的不是你。</strong></span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">我见过所谓的钢铁直男,为买一个女友喜欢的手办,跑遍全市的商店。也见过看起来高冷无比的青年才俊,女友生病,满心焦急为其洗手作羹汤。还有日理万机的公司高层,妻子外地遇到麻烦,打个飞的过去帮忙处理。</span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; color: rgb(153, 0, 0); font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">真的在乎你的男人,绝对不会将“你真烦”三个字挂在嘴边。</span></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><br/></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">我们终其一生寻寻觅觅,无非是想找一个懂自己在乎自己的人,相偎依着取暖,共同走过生活中那些孤独冰冷的日子。</span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">余生岁月漫长,遇见一个真心在乎你的人,少了忽冷忽热的不确定,少了患得患失的不安感。</strong></span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">他懂得你的喜乐,将你的感受放到心上,生活中有再多坎坷,感情中有再多波折,有了他,你就不怕了</span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">据说,人一生会遇到8263563人。其中,会打招呼的是39778人,会熟悉的是3619人,会亲近的只剩下275人,留在身边的少之又少,真正在乎你的人更是难得。</span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">所以如果遇到了,请好好珍惜</span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p></section><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; min-height: 1em; color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">如果没有,也别将热情一次次消耗在不珍惜你的人身上,你要留着最好的自己,等待那个对的人</span></p>'); INSERT INTO `tp5_xarticles` VALUES ('3', '年轻人,我劝你没事多存点钱', '1', '2019-07-22 16:22:56', '2019-07-22 16:07:56', '2', '<section><section><section><section><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; text-align: center; box-sizing: border-box !important; word-wrap: break-word !important;\"><br/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; line-height: 1.75em; text-align: center; box-sizing: border-box !important; word-wrap: break-word !important;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; color: rgb(255, 255, 255); background-color: rgb(153, 0, 0); font-size: 16px; box-sizing: border-box !important; word-wrap: break-word !important;\">你的存款,就是你选择权<br/></span></p></section></section></section></section><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">我曾经和闺蜜去过一次“非同凡响”的毕业旅游。</span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">当时的我们还是大学生,每个月的生活费只会有超支,不会有结余,整天理所当然地做着月光族。</span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">直到我们站在旅行社的门外盯着别人的海报,才猛然发现自己简直就是拿着买大宝的钱,跑去买人家的SK2。</span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">最后,不得不厚着脸皮问家里人拿了一笔小小的旅游基金,报了一个超级特惠团。</span></p><section><section><section><section><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; text-align: center; box-sizing: border-box !important; word-wrap: break-word !important;\"><br/></p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><br/></p></section></section></section></section><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; color: rgb(255, 255, 255); background-color: rgb(153, 0, 0); font-size: 16px; box-sizing: border-box !important; word-wrap: break-word !important;\">你的存款,能够让你更加懂得消费</span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">最近几年,越来越多的文章都在鼓吹消费,更有言辞偏激者,直接认为存钱只是傻x的操作。</span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">存钱傻不傻x我不知道,但是乱给别人贴标签的,绝对就是傻x无疑了。</span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">存钱,并不是一味把收入节省下来,不分青红皂白地存进各种银行卡,而是有计划、有目标地去消费,同时把不必要的支出节省出来,留作一笔存款。</span></p><section><section><section><section><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; text-align: center; box-sizing: border-box !important; word-wrap: break-word !important;\"><br/></p></section></section></section></section><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; color: rgb(255, 255, 255); background-color: rgb(153, 0, 0); font-size: 16px; box-sizing: border-box !important; word-wrap: break-word !important;\">你的存款,是你离不开的勇气</span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">经常会听到一些身边人的抱怨:</span></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">每次他们抱怨的时候,情绪都非常激动,感觉下一秒就能原地爆炸一样。</span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">可是当你提出一些建议,比如说让他们搬离自己家里、跟男朋友分手,又或者赶紧辞职的时候,他们就会开始冷静下来:</span></p><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><blockquote style=\"white-space: normal; margin: 0px; padding: 0px 0px 0px 10px; max-width: 100%; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(219, 219, 219); caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; line-height: 1.75em; box-sizing: border-box !important; word-wrap: break-word !important;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; color: rgb(136, 136, 136); box-sizing: border-box !important; word-wrap: break-word !important;\">“咦,可是自己租房子好贵啊!”</span></p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; box-sizing: border-box !important; word-wrap: break-word !important;\"><br/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; line-height: 1.75em; box-sizing: border-box !important; word-wrap: break-word !important;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; color: rgb(136, 136, 136); box-sizing: border-box !important; word-wrap: break-word !important;\">“但是,平时他也会送我一些喜欢的礼物,也不算对我太差~”</span></p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; box-sizing: border-box !important; word-wrap: break-word !important;\"><br/></p><p style=\"margin: 0px 16px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; line-height: 1.75em; box-sizing: border-box !important; word-wrap: break-word !important;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; color: rgb(136, 136, 136); box-sizing: border-box !important; word-wrap: break-word !important;\">“工作哪有那么容易找,我现在还负债好几万呢!”</span></p></blockquote><p style=\"white-space: normal; margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, \"><br/></p><p style=\"white-space: normal; margin: 0px 16px; padding: 0px; max-width: 100%; min-height: 1em; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51);\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; box-sizing: border-box !important; word-wrap: break-word !important;\">归根究底,就是没钱。</span></p>'); -- ---------------------------- -- Table structure for tp5_xarticle_points -- ---------------------------- DROP TABLE IF EXISTS `tp5_xarticle_points`; CREATE TABLE `tp5_xarticle_points` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID 标识', `article_id` int(11) NOT NULL COMMENT '文章标识', `view` int(11) NOT NULL DEFAULT '0' COMMENT '文章浏览量', `keywords` varchar(30) NOT NULL DEFAULT '' COMMENT '关键词', `picture` varchar(100) NOT NULL COMMENT '文章配图', `abstract` varchar(255) NOT NULL COMMENT '文章摘要', `recommend` tinyint(2) NOT NULL DEFAULT '0' COMMENT '推荐标志 0:未推荐 1:推荐', `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '状态标记 :-1 删除;0:隐藏;1:显示 ', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COMMENT='文章 要点表'; -- ---------------------------- -- Records of tp5_xarticle_points -- ---------------------------- INSERT INTO `tp5_xarticle_points` VALUES ('1', '1', '2', '', '/home/images/article1.png', '如今科技进步,时代向前,人的平均寿命越来越长了。但长长的一生中,究竟有多少时间真正属于我们自己呢?', '1', '1'); INSERT INTO `tp5_xarticle_points` VALUES ('2', '2', '12', '', '/home/images/article2.png', '我的小天地,我闯荡的大江湖,我的浩瀚星辰和璀璨日月,再与你无关;而你的天地,你行走的江湖,你的日月和星辰,我也再不惦念。从此,一别两宽,各生欢喜。', '0', '1'); INSERT INTO `tp5_xarticle_points` VALUES ('4', '4', '0', '', '/home/images/article4.png', '人都是对喜欢的东西最上心。他若真的在乎你,一分一秒都不想失去你的消息,更不会不时玩消失,不会对你忽冷忽热,因为他比你还害怕失去。所有的不主动都是由于不喜欢,喜欢你的人永远不忙。', '0', '0'); INSERT INTO `tp5_xarticle_points` VALUES ('3', '3', '0', '', '/home/images/article3.png', '因为穷,所以要努力赚钱;努力赚钱,就会没时间找对象;找不到对象就算了,钱也没赚多少,难免开始焦虑;一旦焦虑,每天洗头的时候,掉出来的头发会告诉你什么才是真正的“绝望”。', '1', '1'); -- ---------------------------- -- Table structure for tp5_xcategorys -- ---------------------------- DROP TABLE IF EXISTS `tp5_xcategorys`; CREATE TABLE `tp5_xcategorys` ( `cat_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `cat_name` varchar(10) NOT NULL DEFAULT '' COMMENT '分类名称', `parent_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '该分类的父id,取决于cat_id ', `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否在 app 首页导航栏显示 0:不显示 1:显示', `list_order` int(11) NOT NULL DEFAULT '0' COMMENT '排序数字越大越靠前', `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '状态 0:正常 -1:已删除', `icon` varchar(255) NOT NULL COMMENT '分类图标', `after_sale` text NOT NULL COMMENT '售后保障', PRIMARY KEY (`cat_id`), KEY `parent_id` (`parent_id`) ) ENGINE=MyISAM AUTO_INCREMENT=115 DEFAULT CHARSET=utf8mb4 COMMENT='商品分类表'; -- ---------------------------- -- Records of tp5_xcategorys -- ---------------------------- INSERT INTO `tp5_xcategorys` VALUES ('1', '美妆', '0', '1', '0', '0', '/cms/images/category/beauty.png', '<p>ZZZZ</p>'); INSERT INTO `tp5_xcategorys` VALUES ('2', '洗护', '0', '0', '0', '0', '/cms/images/category/fresh_baby.png', '<p>TYTY</p>'); INSERT INTO `tp5_xcategorys` VALUES ('3', '尿不湿', '5', '0', '2', '-1', '/cms/images/category/baby_diapers.png', '<p>SDSXZDS</p>'); INSERT INTO `tp5_xcategorys` VALUES ('4', '美食', '0', '1', '0', '0', '/cms/images/category/food.png', '<p>XCXX</p>'); INSERT INTO `tp5_xcategorys` VALUES ('5', '服饰', '0', '1', '0', '0', '/cms/images/category/clothing.png', '<p>TO</p>'); INSERT INTO `tp5_xcategorys` VALUES ('6', '面膜', '1', '1', '0', '-1', '/cms/images/category/facial_mask.png', '<p>QQQQA</p>'); INSERT INTO `tp5_xcategorys` VALUES ('7', '清洁', '2', '1', '0', '0', '/cms/images/category/clean.png', '<p>11211</p>'); INSERT INTO `tp5_xcategorys` VALUES ('9', '连衣裙', '5', '1', '0', '0', '/cms/images/category/dress.png', '<p>AAAA</p>'); INSERT INTO `tp5_xcategorys` VALUES ('8', '饮料', '4', '1', '0', '0', '/cms/images/category/drink.png', '<p>OKII</p>'); INSERT INTO `tp5_xcategorys` VALUES ('10', '红酒', '4', '1', '1', '-1', '/cms/images/category/red_wine.png', '<p>XXXX</p>'); INSERT INTO `tp5_xcategorys` VALUES ('0', '根级分类', '0', '0', '0', '0', '', ''); -- ---------------------------- -- Table structure for tp5_xconfigs -- ---------------------------- DROP TABLE IF EXISTS `tp5_xconfigs`; CREATE TABLE `tp5_xconfigs` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID标记', `title` varchar(50) NOT NULL COMMENT '配置项标题', `tag` varchar(50) NOT NULL COMMENT '缩写标签 建议使用大写字母', `value` varchar(100) NOT NULL COMMENT '配置项的 取值', `type` varchar(20) NOT NULL COMMENT '配置项类型,分为 text、number、file、checkbox', `tip` varchar(100) NOT NULL COMMENT '配置项提示信息', `list_order` int(11) NOT NULL DEFAULT '0' COMMENT '排序,越大越靠前', `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '状态 -1:删除 0:正常', `add_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间', PRIMARY KEY (`id`,`tag`), UNIQUE KEY `tag` (`tag`) USING BTREE, KEY `selcct` (`id`,`title`,`tag`) USING BTREE COMMENT '便于查询' ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='配置表'; -- ---------------------------- -- Records of tp5_xconfigs -- ---------------------------- INSERT INTO `tp5_xconfigs` VALUES ('1', '我是一个文本1', 'WSWENBEN1', 'XXEERRES', 'text', 'HELLO,不要乱改!', '0', '0', '2019-07-30 18:09:23'); INSERT INTO `tp5_xconfigs` VALUES ('2', '我是一个开关', 'SWITCHTOYOU', '1', 'checkbox', 'HAHAHA', '0', '0', '2019-07-30 18:13:34'); INSERT INTO `tp5_xconfigs` VALUES ('3', '我是一个图片', 'TUPIAN1', '/cms/images/icon/goods_manager.png', 'button', '注意图片不要太大', '3', '0', '2019-07-30 18:21:18'); INSERT INTO `tp5_xconfigs` VALUES ('4', 'VIP会员费用', 'VIP_MONEY', '199', 'text', 'VIP 就是牛!', '-1', '0', '2019-07-30 18:59:31'); -- ---------------------------- -- Table structure for tp5_xgoods -- ---------------------------- DROP TABLE IF EXISTS `tp5_xgoods`; CREATE TABLE `tp5_xgoods` ( `goods_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '商品ID', `goods_name` varchar(50) NOT NULL COMMENT '商品名称', `cat_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品分类id', `thumbnail` varchar(200) NOT NULL COMMENT '缩略图,一般用于订单页的商品展示', `tip_word` varchar(200) CHARACTER SET utf8 NOT NULL COMMENT '提示语,字数不要太多,一般一句话', `list_order` int(11) NOT NULL DEFAULT '0' COMMENT '排序,越大越靠前', `details` text NOT NULL COMMENT '商品描述详情', `reference_price` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '商品参考价', `selling_price` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '商品售价', `attr_info` text NOT NULL COMMENT 'json形式保存的属性数据', `stock` int(11) NOT NULL DEFAULT '0' COMMENT '库存,注意退货未支付订单时的数目变化', `created_at` timestamp NOT NULL DEFAULT '1970-01-01 10:00:00' COMMENT '商品创建时间', `updated_at` timestamp NOT NULL DEFAULT '1970-01-01 10:00:00' ON UPDATE CURRENT_TIMESTAMP COMMENT '商品更新时间', `act_type` varchar(2) NOT NULL DEFAULT '0' COMMENT '商品参加活动类型 0:默认', `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '状态 -1:删除 0:待上架 1:已上架 2:预售 ', PRIMARY KEY (`goods_id`) ) ENGINE=MyISAM AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 COMMENT='商品表\r\n\r\n注意:status 的规定,app 上只显示上架的产品哦'; -- ---------------------------- -- Records of tp5_xgoods -- ---------------------------- INSERT INTO `tp5_xgoods` VALUES ('1', '一杯香茗', '9', '/cms/images/goods/teaImg.png', 'shijiezhenda', '1', '<p style=\"text-align: center;\">我也不想打酱油啊啊&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<img src=\"http://img.baidu.com/hi/jx2/j_0022.gif\"/></p><p style=\"text-align: center;\"><br/></p>', '11.55', '8.90', '[{\"spec_id\":\"28\",\"spec_info\":[{\"spec_name\":\"小小小\",\"spec_id\":\"30\",\"specFstID\":\"28\"},{\"spec_name\":\"大大大\",\"spec_id\":\"29\",\"specFstID\":\"28\"}],\"spec_name\":\"大小\"},{\"spec_id\":\"11\",\"spec_info\":[{\"spec_name\":\"M(建议90-100斤)\",\"spec_id\":\"12\",\"specFstID\":\"11\"},{\"spec_name\":\"XL(建议110-120斤)\",\"spec_id\":\"14\",\"specFstID\":\"11\"},{\"spec_name\":\"S(建议80-90斤左右)\",\"spec_id\":\"16\",\"specFstID\":\"11\"}],\"spec_name\":\"尺码【连衣裙专用】\"}]', '391', '1970-01-01 10:00:00', '2019-07-12 16:07:18', '0', '1'); INSERT INTO `tp5_xgoods` VALUES ('2', '风中仙子连衣裙', '9', '/cms/images/goods/dress.png', '只是一件裙子嘛', '2', '<p>dsss&nbsp;<img src=\"http://img.baidu.com/hi/jx2/j_0012.gif\"/></p>', '56.99', '55.99', '', '12', '2019-03-11 18:03:26', '2019-07-12 17:04:19', '0', '0'); INSERT INTO `tp5_xgoods` VALUES ('3', '夏栀子连衣裙', '9', '/cms/images/goods/dress2.png', '别激动 ,你穿不下的', '0', '<p>似懂非懂</p>', '89.00', '68.98', '', '23', '2019-03-12 17:03:39', '2019-07-12 17:04:34', '0', '1'); INSERT INTO `tp5_xgoods` VALUES ('4', '热浪Caffee', '8', '/cms/images/goods/hotCoff.png', '好咖啡,有精神头', '2', '<p>不苦,有点甜...&nbsp;</p>', '5.60', '4.22', '[{\"spec_id\":\"59\",\"spec_info\":[{\"spec_name\":\"小杯\",\"spec_id\":\"60\",\"specFstID\":\"59\"},{\"spec_name\":\"中杯\",\"spec_id\":\"61\",\"specFstID\":\"59\"},{\"spec_name\":\"大杯\",\"spec_id\":\"62\",\"specFstID\":\"59\"}],\"spec_name\":\"容量【咖啡专用】\"}]', '72', '2019-03-14 11:03:58', '2019-08-14 17:08:17', '0', '1'); INSERT INTO `tp5_xgoods` VALUES ('5', '萨缪尔红酒', '8', '/cms/images/goods/redWine.png', '不给你喝,哈哈哈哈', '1', '<p>ddd</p>', '4.33', '3.22', '[{\"spec_id\":\"59\",\"spec_info\":[{\"spec_name\":\"中杯\",\"spec_id\":\"61\",\"specFstID\":\"59\"}],\"spec_name\":\"容量【咖啡专用】\"}]', '15', '2019-03-18 17:03:17', '2019-07-12 17:04:51', '0', '0'); INSERT INTO `tp5_xgoods` VALUES ('7', '卡通鲨 连衣裙SR', '9', '/cms/images/goods/dress3.png', '一条裙子', '0', '<p>有点意思!</p>', '55.33', '55.22', '[{\"spec_id\":\"17\",\"spec_info\":[{\"spec_name\":\"蓝色\",\"spec_id\":\"20\",\"specFstID\":\"17\"},{\"spec_name\":\"银色\",\"spec_id\":\"19\",\"specFstID\":\"17\"}],\"spec_name\":\"颜色\"},{\"spec_id\":\"11\",\"spec_info\":[{\"spec_name\":\"S(建议80-90斤左右)\",\"spec_id\":\"16\",\"specFstID\":\"11\"},{\"spec_name\":\"M(建议90-100斤)\",\"spec_id\":\"12\",\"specFstID\":\"11\"},{\"spec_name\":\"L(建议100-110斤)\",\"spec_id\":\"13\",\"specFstID\":\"11\"},{\"spec_name\":\"XL(建议110-120斤)\",\"spec_id\":\"14\",\"specFstID\":\"11\"}],\"spec_name\":\"尺码【连衣裙专用】\"}]', '30', '2019-03-19 10:03:48', '2019-07-12 17:04:57', '0', '1'); INSERT INTO `tp5_xgoods` VALUES ('8', '风中仙子连衣裙', '9', '/cms/images/goods/dress.png', 'HHEEE', '2', '<p>dsss&nbsp;<img src=\"http://img.baidu.com/hi/jx2/j_0012.gif\"/>&nbsp;</p><p></p>', '56.99', '55.99', '[{\"spec_id\":\"11\",\"spec_info\":[{\"spec_name\":\"S(建议80-90斤左右)\",\"spec_id\":\"16\",\"specFstID\":\"11\"},{\"spec_name\":\"M(建议90-100斤)\",\"spec_id\":\"12\",\"specFstID\":\"11\"},{\"spec_name\":\"L(建议100-110斤)\",\"spec_id\":\"13\",\"specFstID\":\"11\"},{\"spec_name\":\"XL(建议110-120斤)\",\"spec_id\":\"14\",\"specFstID\":\"11\"}],\"spec_name\":\"尺码【连衣裙专用】\"}]', '70', '2019-03-11 18:03:26', '2019-08-14 18:08:31', '0', '1'); -- ---------------------------- -- Table structure for tp5_xnav_menus -- ---------------------------- DROP TABLE IF EXISTS `tp5_xnav_menus`; CREATE TABLE `tp5_xnav_menus` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'navMenu 主键', `name` varchar(20) NOT NULL DEFAULT '' COMMENT '菜单名称', `parent_id` int(11) NOT NULL DEFAULT '0' COMMENT '父级菜单ID', `action` varchar(100) NOT NULL DEFAULT '' COMMENT 'action地址(etc:admin/home)', `icon` varchar(100) NOT NULL DEFAULT '' COMMENT '自定义图标样式', `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态,1:正常,-1:删除', `list_order` tinyint(4) NOT NULL DEFAULT '0' COMMENT '排序标识,越大越靠前', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '导航类型 0:菜单类 1:权限链接', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=98 DEFAULT CHARSET=utf8mb4 COMMENT='菜单导航表'; -- ---------------------------- -- Records of tp5_xnav_menus -- ---------------------------- INSERT INTO `tp5_xnav_menus` VALUES ('0', '根级菜单', '0', '', '/cms/images/icon/menu_icon.png', '1', '0', '2018-02-11 21:02:43', '0'); INSERT INTO `tp5_xnav_menus` VALUES ('2', '菜单管理', '1', 'cms/menu/index', '/cms/images/icon/menu_list.png', '1', '0', '2018-02-11 21:02:43', '0'); INSERT INTO `tp5_xnav_menus` VALUES ('3', '列表管理', '0', '', '/cms/images/icon/desktop.png', '1', '1', '2018-02-11 21:02:43', '0'); INSERT INTO `tp5_xnav_menus` VALUES ('4', '今日赠言', '3', 'cms/todayWord/index', '/cms/images/icon/diplom.png', '1', '0', '2018-02-11 21:02:43', '0'); INSERT INTO `tp5_xnav_menus` VALUES ('5', '文章列表', '3', 'cms/article/index', '/cms/images/icon/adaptive.png', '1', '0', '2018-02-11 21:02:43', '0'); INSERT INTO `tp5_xnav_menus` VALUES ('1', '管理分配', '0', '', '/cms/images/icon/manage.png', '1', '3', '2018-02-11 21:02:43', '0'); INSERT INTO `tp5_xnav_menus` VALUES ('6', '管理人员', '1', 'cms/admin/index', '/cms/images/icon/admin.png', '1', '2', '2018-02-11 21:02:43', '0'); INSERT INTO `tp5_xnav_menus` VALUES ('7', '角色管理', '1', 'cms/admin/role', '/cms/images/icon/role.png', '1', '3', '2018-02-11 21:02:43', '0'); INSERT INTO `tp5_xnav_menus` VALUES ('29', '添加导航菜单', '2', 'cms/menu/add', '/', '1', '0', '2018-11-23 20:32:29', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('30', '导航菜单修改', '2', 'cms/menu/edit', '/', '1', '0', '2018-11-23 20:34:54', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('31', '菜单权限设置', '2', 'cms/menu/auth', '/', '1', '0', '2018-11-23 20:35:33', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('32', '分页获取菜单数据', '2', 'cms/menu/ajaxOpForPage', '/', '1', '0', '2018-11-23 20:35:57', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('33', '添加今日赠言', '4', 'cms/todayWord/add', '/', '1', '0', '2018-11-23 20:37:59', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('34', '修改今日赠言', '4', 'cms/todayWord/edit', '/', '1', '0', '2018-11-23 20:38:17', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('35', '分页获取今日赠言数据', '4', 'cms/todayWord/ajaxOpForPage', '/', '1', '0', '2018-11-23 20:38:43', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('36', '添加文章数据', '5', 'cms/article/add', '/', '1', '0', '2018-11-23 20:39:02', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('37', '修改文章数据', '5', 'cms/article/edit', '/', '1', '0', '2018-11-23 20:39:22', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('38', '添加管理员', '6', 'cms/admin/addAdmin', '/', '1', '0', '2019-08-11 17:05:41', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('39', '修改管理员数据', '6', 'cms/admin/editAdmin', '/', '1', '0', '2019-08-11 17:05:46', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('40', '分页获取管理员数据', '6', 'cms/admin/ajaxOpForPage', '/', '1', '0', '2018-11-23 20:48:08', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('41', '增加角色', '7', 'cms/admin/addRole', '/', '1', '0', '2018-11-23 20:48:52', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('42', '修改角色数据', '7', 'cms/admin/editRole', '/', '1', '0', '2018-11-23 20:49:08', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('43', '分页获取文章数据', '5', 'cms/article/ajaxOpForPage', '/', '1', '0', '2018-11-24 16:28:33', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('48', '产品分类', '49', 'cms/category/index', '/cms/images/icon/goods_category.png', '1', '0', '2019-03-11 11:41:24', '0'); INSERT INTO `tp5_xnav_menus` VALUES ('49', '商品管理', '0', '', '/cms/images/icon/goods_manager.png', '1', '0', '2019-03-11 15:03:47', '0'); INSERT INTO `tp5_xnav_menus` VALUES ('50', '商品列表', '49', 'cms/goods/index', '/cms/images/icon/goods.png', '1', '0', '2019-03-11 15:04:20', '0'); INSERT INTO `tp5_xnav_menus` VALUES ('51', '添加产品分类', '48', 'cms/category/add', '/', '1', '0', '2019-03-11 15:16:11', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('52', '修改产品分类', '48', 'cms/category/edit', '/', '1', '0', '2019-03-11 15:16:11', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('53', '删除产品分类', '48', 'cms/category/del', '/', '1', '0', '2019-03-11 15:16:11', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('54', '商品添加', '50', 'cms/goods/add', '/', '1', '0', '2019-03-11 16:53:21', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('55', '商品修改', '50', 'cms/goods/edit', '/', '1', '0', '2019-03-11 16:53:43', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('56', '分页获取商品列表', '50', 'cms/goods/ajaxOpForPage', '/', '1', '0', '2019-03-11 16:54:05', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('57', '分页获取产品分类数据', '48', 'cms/category/ajaxOpForPage', '/', '1', '0', '2019-03-12 17:08:58', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('58', 'ajax 更改上下架状态', '50', 'cms/goods/ajaxPutaway', '/', '1', '0', '2019-03-19 16:40:41', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('59', 'ajax 首页显示状态修改', '48', 'cms/category/ajaxForShow', '/', '1', '0', '2019-03-21 11:52:13', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('60', 'ajax 删除上传的图片', '50', 'cms/goods/ajaxDelUploadImg', '/', '1', '0', '2019-03-21 18:07:22', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('66', 'ajax 根据分类获取参加活动的商品', '50', 'cms/goods/ajaxGetCatGoodsForActivity', '/', '1', '0', '2019-03-30 12:00:17', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('67', '属性列表', '49', 'cms/specInfo/index', '/cms/images/icon/spec.png', '1', '0', '2019-03-31 17:07:25', '0'); INSERT INTO `tp5_xnav_menus` VALUES ('68', '属性添加', '67', 'cms/specInfo/add', '/', '1', '0', '2019-03-31 17:07:51', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('69', '属性修改', '67', 'cms/specInfo/edit', '/', '1', '0', '2019-03-31 17:08:14', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('70', 'ajax 根据商品分类ID查询 父级属性', '67', 'cms/specInfo/ajaxGetSpecInfoFstByCat', '/', '1', '0', '2019-03-31 18:07:57', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('71', '分页获取属性数据', '67', 'cms/specInfo/ajaxOpForPage', '/', '1', '0', '2019-04-01 19:05:16', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('72', 'ajax 根据父级属性ID查询次级属性', '67', 'cms/specInfo/ajaxGetSpecInfoBySpecFst', '/', '1', '0', '2019-04-04 10:50:43', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('61', '活动列表', '49', 'cms/activity/index', '/cms/images/icon/activity.png', '1', '0', '2019-03-29 10:35:39', '0'); INSERT INTO `tp5_xnav_menus` VALUES ('62', '活动添加', '61', 'cms/activity/add', '/', '1', '0', '2019-03-29 11:35:17', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('63', '活动修改', '61', 'cms/activity/edit', '/', '1', '0', '2019-03-29 11:35:38', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('64', '分页获取活动数据', '61', 'cms/activity/ajaxOpForPage', '/', '1', '0', '2019-03-29 11:35:55', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('65', 'ajax 首页显示状态修改', '61', 'cms/activity/ajaxForShow', '/', '1', '0', '2019-03-29 11:36:35', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('73', '用户列表', '3', 'cms/users/index', '/cms/images/icon/users.png', '1', '5', '2019-07-09 17:22:35', '0'); INSERT INTO `tp5_xnav_menus` VALUES ('74', '分页获取用户数据', '73', 'cms/users/ajaxOpForPage', '/', '1', '0', '2019-07-09 17:22:54', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('75', 'ajax 修改用户状态', '73', 'cms/users/ajaxUpdateUserStatus', '/', '1', '0', '2019-07-09 17:22:57', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('76', '广告列表', '49', 'cms/adList/index', '/cms/images/icon/cms_ad.png', '1', '0', '2019-07-18 16:29:42', '0'); INSERT INTO `tp5_xnav_menus` VALUES ('77', '广告添加', '76', 'cms/adList/add', '/', '1', '0', '2019-07-19 18:10:55', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('80', 'ajax 首页显示广告状态修改', '76', 'cms/adList/ajaxForShow', '/', '1', '0', '2019-07-19 18:11:23', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('79', '分页获取广告数据', '76', 'cms/adList/ajaxOpForPage', '/', '1', '0', '2019-07-19 18:11:06', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('78', '广告修改', '76', 'cms/adList/edit', '/', '1', '0', '2019-07-19 18:11:00', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('92', 'ajax 文章推荐操作', '5', 'cms/article/ajaxForRecommend', '/', '1', '0', '2019-07-22 16:22:01', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('93', '配置列表', '3', 'cms/config/index', '/cms/images/icon/cms_config.png', '1', '0', '2019-07-30 18:06:31', '0'); INSERT INTO `tp5_xnav_menus` VALUES ('94', '添加配置项', '93', 'cms/config/add', '/', '1', '0', '2019-07-26 15:08:38', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('95', '配置项修改', '93', 'cms/config/edit', '/', '1', '0', '2019-07-29 14:30:13', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('96', '分页获取配置项数据', '93', 'cms/config/ajaxOpForConfigsPage', '/', '1', '0', '2019-07-29 18:59:31', '1'); INSERT INTO `tp5_xnav_menus` VALUES ('97', 'ajax 根据分类获取参加活动的商品', '61', 'cms/goods/ajaxGetCatGoodsForActivity', '/', '1', '0', '2019-08-16 09:31:52', '1'); -- ---------------------------- -- Table structure for tp5_xphotos -- ---------------------------- DROP TABLE IF EXISTS `tp5_xphotos`; CREATE TABLE `tp5_xphotos` ( `id` int(11) NOT NULL AUTO_INCREMENT, `picture` varchar(255) NOT NULL COMMENT '图片存放位置', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=112 DEFAULT CHARSET=utf8mb4 COMMENT='图片资源表'; -- ---------------------------- -- Records of tp5_xphotos -- ---------------------------- INSERT INTO `tp5_xphotos` VALUES ('8', '/cms/images/headshot/user8.png'); INSERT INTO `tp5_xphotos` VALUES ('2', '/cms/images/headshot/user2.png'); INSERT INTO `tp5_xphotos` VALUES ('4', '/cms/images/headshot/user4.png'); INSERT INTO `tp5_xphotos` VALUES ('7', '/cms/images/headshot/user7.png'); INSERT INTO `tp5_xphotos` VALUES ('6', '/cms/images/headshot/user6.png'); INSERT INTO `tp5_xphotos` VALUES ('3', '/cms/images/headshot/user3.png'); INSERT INTO `tp5_xphotos` VALUES ('1', '/cms/images/headshot/user1.png'); INSERT INTO `tp5_xphotos` VALUES ('9', '/cms/images/headshot/user9.png'); INSERT INTO `tp5_xphotos` VALUES ('5', '/cms/images/headshot/user5.png'); -- ---------------------------- -- Table structure for tp5_xskus -- ---------------------------- DROP TABLE IF EXISTS `tp5_xskus`; CREATE TABLE `tp5_xskus` ( `sku_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID', `sku_img` varchar(150) CHARACTER SET utf8 NOT NULL COMMENT '对应的SKU商品缩略图', `spec_info` varchar(300) CHARACTER SET utf8 NOT NULL COMMENT '对应的商品 sku属性信息,以逗号隔开。举例:12,15,23', `spec_name` varchar(300) CHARACTER SET utf8 NOT NULL COMMENT 'sku 规格描述,仅供展示', `selling_price` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '商品售价', `stock` int(11) NOT NULL DEFAULT '0' COMMENT '库存', `sold_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量', `updated_at` timestamp NOT NULL DEFAULT '1970-01-01 10:00:00' ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '状态 0:显示(正常) -1:删除(失效)', PRIMARY KEY (`sku_id`) ) ENGINE=MyISAM AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb4 COMMENT='商品 SKU 库存表\r\n\r\n用于存储商品不同属性搭配的数目、价格等'; -- ---------------------------- -- Records of tp5_xskus -- ---------------------------- INSERT INTO `tp5_xskus` VALUES ('19', '2', '', '14,18', 'L(建议100-110斤),蓝色', '10.20', '5', '2', '2019-04-20 16:33:02', '0'); INSERT INTO `tp5_xskus` VALUES ('20', '2', '', '15,16', 'L(建议100-110斤),银色', '20.00', '1', '42', '2019-04-20 16:33:08', '0'); INSERT INTO `tp5_xskus` VALUES ('21', '2', '', '14,16', '2XL(建议120-130斤),蓝色', '30.00', '6', '12', '2019-04-20 16:33:04', '0'); INSERT INTO `tp5_xskus` VALUES ('22', '2', '', '15,18', '2XL(建议120-130斤),银色', '12.00', '7', '42', '2019-04-20 16:33:06', '0'); INSERT INTO `tp5_xskus` VALUES ('23', '48', '', '14,20', 'XL(建议110-120斤),蓝色', '2.00', '122', '21', '2019-04-08 20:31:28', '-1'); INSERT INTO `tp5_xskus` VALUES ('24', '48', '', '14,19', 'XL(建议110-120斤),银色', '10.00', '41', '11', '2019-04-08 20:31:28', '-1'); INSERT INTO `tp5_xskus` VALUES ('25', '48', '', '4,9', '小号,NB78片', '10.00', '30', '1', '2019-04-08 21:31:00', '-1'); INSERT INTO `tp5_xskus` VALUES ('26', '48', '', '4,10', '小号,XL42片', '20.00', '41', '2', '2019-04-08 21:31:00', '-1'); INSERT INTO `tp5_xskus` VALUES ('27', '48', '', '3,9', '中号,NB78片', '40.00', '2', '2', '2019-04-08 21:31:00', '-1'); INSERT INTO `tp5_xskus` VALUES ('28', '48', '', '3,10', '中号,XL42片', '50.00', '110', '2', '2019-04-08 21:31:00', '-1'); INSERT INTO `tp5_xskus` VALUES ('29', '48', '', '5', '特大号', '110.00', '110', '11', '2019-04-11 17:04:48', '0'); INSERT INTO `tp5_xskus` VALUES ('30', '48', '', '4', '小号', '120.00', '12', '1112', '2019-04-11 17:04:48', '0'); INSERT INTO `tp5_xskus` VALUES ('31', '49', '', '5', '特大号', '10.00', '11', '1', '2019-05-05 15:05:11', '0'); INSERT INTO `tp5_xskus` VALUES ('32', '49', '', '4', '小号', '20.00', '11', '22', '2019-05-05 15:05:11', '0'); INSERT INTO `tp5_xskus` VALUES ('33', '13', '', '4,9', '小号,NB78片', '120.00', '11', '11', '2019-04-12 08:04:24', '0'); INSERT INTO `tp5_xskus` VALUES ('34', '13', '', '4,8', '小号,体验装L4片', '10.00', '10', '22', '2019-04-26 12:05:56', '0'); INSERT INTO `tp5_xskus` VALUES ('35', '13', '', '4,7', '小号,体验装S4片', '20.00', '10', '2', '2019-04-26 12:05:54', '0'); INSERT INTO `tp5_xskus` VALUES ('36', '13', '', '3,9', '中号,NB78片', '30.00', '41', '2', '2019-04-12 08:04:25', '0'); INSERT INTO `tp5_xskus` VALUES ('37', '13', '', '3,8', '中号,体验装L4片', '40.00', '32', '1', '2019-04-12 08:04:25', '0'); INSERT INTO `tp5_xskus` VALUES ('38', '13', '', '3,7', '中号,体验装S4片', '101.02', '21', '1', '2019-04-09 12:57:29', '0'); INSERT INTO `tp5_xskus` VALUES ('39', '5', '', '12', 'M(建议90-100斤)', '0.00', '3', '0', '2019-05-05 18:20:04', '-1'); INSERT INTO `tp5_xskus` VALUES ('40', '5', '', '15', '2XL(建议120-130斤)', '0.00', '34', '0', '2019-05-05 18:20:04', '-1'); INSERT INTO `tp5_xskus` VALUES ('41', '7', '', '20,16', '蓝色,S(建议80-90斤左右)', '55.00', '3', '3', '2019-05-05 18:05:28', '0'); INSERT INTO `tp5_xskus` VALUES ('42', '7', '', '20,12', '蓝色,M(建议90-100斤)', '34.00', '2', '1', '2019-05-05 18:05:28', '0'); INSERT INTO `tp5_xskus` VALUES ('43', '7', '', '20,13', '蓝色,L(建议100-110斤)', '12.00', '3', '1', '2019-05-05 18:05:28', '0'); INSERT INTO `tp5_xskus` VALUES ('44', '7', '', '20,14', '蓝色,XL(建议110-120斤)', '11.00', '5', '1', '2019-05-05 18:05:28', '0'); INSERT INTO `tp5_xskus` VALUES ('45', '7', '', '19,16', '银色,S(建议80-90斤左右)', '11.00', '6', '1', '2019-05-05 18:05:28', '0'); INSERT INTO `tp5_xskus` VALUES ('46', '7', '', '19,12', '银色,M(建议90-100斤)', '12.00', '3', '2', '2019-05-05 18:05:28', '0'); INSERT INTO `tp5_xskus` VALUES ('47', '7', '', '19,13', '银色,L(建议100-110斤)', '14.00', '6', '3', '2019-05-05 18:05:28', '0'); INSERT INTO `tp5_xskus` VALUES ('48', '7', '', '19,14', '银色,XL(建议110-120斤)', '22.00', '2', '2', '2019-05-05 18:05:28', '0'); INSERT INTO `tp5_xskus` VALUES ('49', '4', '', '60', '小杯', '12.00', '22', '1', '2019-08-14 17:08:17', '0'); INSERT INTO `tp5_xskus` VALUES ('50', '4', '', '61', '中杯', '15.00', '20', '4', '2019-08-14 17:08:17', '0'); INSERT INTO `tp5_xskus` VALUES ('51', '4', '', '62', '大杯', '18.00', '30', '6', '2019-08-14 17:08:17', '0'); INSERT INTO `tp5_xskus` VALUES ('52', '5', '', '61', '中杯', '15.00', '15', '11', '2019-05-05 18:05:04', '0'); INSERT INTO `tp5_xskus` VALUES ('53', '1', '', '60', '小杯', '22.00', '133', '11', '2019-07-12 16:56:18', '-1'); INSERT INTO `tp5_xskus` VALUES ('54', '1', '/upload/20190712/6dc805ca6e5628fd9f88e95d980e37db.jpg', '61', '中杯', '25.00', '125', '22', '2019-07-12 16:56:18', '-1'); INSERT INTO `tp5_xskus` VALUES ('55', '1', '/upload/20190712/6aa9c36bcf13b12d1705fb0cbf9efe09.jpg', '62', '大杯', '28.00', '133', '12', '2019-07-12 16:56:18', '-1'); INSERT INTO `tp5_xskus` VALUES ('56', '8', '', '16', 'S(建议80-90斤左右)', '124.00', '13', '1', '2019-08-14 18:08:31', '0'); INSERT INTO `tp5_xskus` VALUES ('57', '8', '', '12', 'M(建议90-100斤)', '124.00', '22', '2', '2019-08-14 18:08:31', '0'); INSERT INTO `tp5_xskus` VALUES ('58', '8', '', '13', 'L(建议100-110斤)', '124.00', '23', '1', '2019-08-14 18:08:31', '0'); INSERT INTO `tp5_xskus` VALUES ('59', '8', '', '14', 'XL(建议110-120斤)', '124.00', '12', '1', '2019-08-14 18:08:31', '0'); INSERT INTO `tp5_xskus` VALUES ('60', '1', '', '30,12', '小小小,M(建议90-100斤)', '0.00', '0', '0', '2019-07-12 16:07:18', '0'); INSERT INTO `tp5_xskus` VALUES ('61', '1', '', '30,14', '小小小,XL(建议110-120斤)', '0.00', '0', '0', '2019-07-12 16:07:18', '0'); INSERT INTO `tp5_xskus` VALUES ('62', '1', '/upload/20190712/26b2b9da92187011ec79e1c31390f770.jpg', '30,16', '小小小,S(建议80-90斤左右)', '0.00', '0', '0', '2019-07-12 16:07:18', '0'); INSERT INTO `tp5_xskus` VALUES ('63', '1', '/upload/20190712/cf4db060577cf108e27d9744d861bae6.jpg', '29,12', '大大大,M(建议90-100斤)', '0.00', '0', '0', '2019-07-12 16:07:18', '0'); INSERT INTO `tp5_xskus` VALUES ('64', '1', '', '29,14', '大大大,XL(建议110-120斤)', '0.00', '0', '0', '2019-07-12 16:07:18', '0'); INSERT INTO `tp5_xskus` VALUES ('65', '1', '', '29,16', '大大大,S(建议80-90斤左右)', '0.00', '0', '0', '2019-07-12 16:07:18', '0'); -- ---------------------------- -- Table structure for tp5_xspec_infos -- ---------------------------- DROP TABLE IF EXISTS `tp5_xspec_infos`; CREATE TABLE `tp5_xspec_infos` ( `spec_id` int(11) NOT NULL AUTO_INCREMENT, `spec_name` varchar(50) CHARACTER SET utf8 NOT NULL COMMENT '属性名称,例如:颜色、红色', `cat_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID ,主要用于父级ID=0的记录', `parent_id` int(11) NOT NULL DEFAULT '0' COMMENT '父级ID 0:初级分类', `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态,1:正常,-1:删除,发布后不要随意删除', `list_order` tinyint(4) NOT NULL DEFAULT '0' COMMENT '排序标识,越大越靠前', `mark_msg` varchar(100) CHARACTER SET utf8 NOT NULL COMMENT '备注信息 主要为了区分识别,可不填', PRIMARY KEY (`spec_id`) ) ENGINE=MyISAM AUTO_INCREMENT=63 DEFAULT CHARSET=utf8mb4 COMMENT='商品属性细则表\r\n\r\n一般只存储两级属性,注意 parent_id = 0 表示初级数据\r\n同时,注意添加后不要修改和删除'; -- ---------------------------- -- Records of tp5_xspec_infos -- ---------------------------- INSERT INTO `tp5_xspec_infos` VALUES ('0', '根级属性', '0', '0', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('1', '号码', '3', '0', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('2', '大号', '3', '1', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('3', '中号', '3', '1', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('4', '小号', '3', '1', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('5', '特大号', '3', '1', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('6', '规格', '3', '0', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('7', '体验装S4片', '3', '6', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('8', '体验装L4片', '3', '6', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('9', 'NB78片', '3', '6', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('10', 'XL42片', '3', '6', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('11', '尺码', '9', '0', '1', '0', '连衣裙专用'); INSERT INTO `tp5_xspec_infos` VALUES ('12', 'M(建议90-100斤)', '9', '11', '1', '9', ''); INSERT INTO `tp5_xspec_infos` VALUES ('13', 'L(建议100-110斤)', '9', '11', '1', '8', ''); INSERT INTO `tp5_xspec_infos` VALUES ('14', 'XL(建议110-120斤)', '9', '11', '1', '7', ''); INSERT INTO `tp5_xspec_infos` VALUES ('15', '2XL(建议120-130斤)', '9', '11', '1', '6', ''); INSERT INTO `tp5_xspec_infos` VALUES ('16', 'S(建议80-90斤左右)', '9', '11', '1', '10', ''); INSERT INTO `tp5_xspec_infos` VALUES ('17', '颜色', '9', '0', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('18', '金色', '9', '17', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('19', '银色', '9', '17', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('20', '蓝色', '9', '17', '1', '0', 'xxxxxx'); INSERT INTO `tp5_xspec_infos` VALUES ('21', '卡其色', '9', '17', '1', '12', ''); INSERT INTO `tp5_xspec_infos` VALUES ('28', '大小', '9', '0', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('29', '大大大', '9', '28', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('30', '小小小', '9', '28', '1', '0', ''); INSERT INTO `tp5_xspec_infos` VALUES ('32', 'ddzzz', '113', '17', '-1', '0', 'sdasasaaaa'); INSERT INTO `tp5_xspec_infos` VALUES ('59', '容量', '8', '0', '1', '0', '咖啡专用'); INSERT INTO `tp5_xspec_infos` VALUES ('60', '小杯', '8', '59', '1', '3', ''); INSERT INTO `tp5_xspec_infos` VALUES ('61', '中杯', '8', '59', '1', '2', ''); INSERT INTO `tp5_xspec_infos` VALUES ('62', '大杯', '8', '59', '1', '1', ''); -- ---------------------------- -- Table structure for tp5_xtoday_words -- ---------------------------- DROP TABLE IF EXISTS `tp5_xtoday_words`; CREATE TABLE `tp5_xtoday_words` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `word` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '摘句内容,不要太长', `from` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '出处', `picture` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '插图', `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态,1:正常,-1:删除', `updated_at` timestamp NOT NULL DEFAULT '1970-01-01 10:00:00' ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COMMENT='今日赠言表'; -- ---------------------------- -- Records of tp5_xtoday_words -- ---------------------------- INSERT INTO `tp5_xtoday_words` VALUES ('1', '谁的青春不迷茫,其实我们都一样!', '谁的青春不迷茫', '/home/images/ps.png', '1', '2018-11-20 19:58:05'); INSERT INTO `tp5_xtoday_words` VALUES ('2', '想和你重新认识一次 从你叫什么名字说起', '你的名字', '/home/images/ps2.png', '1', '2018-02-11 21:02:43'); INSERT INTO `tp5_xtoday_words` VALUES ('3', '我是一只雁,你是南方云烟。但愿山河宽,相隔只一瞬间. ', '秦时明月', '/home/images/ps3.png', '1', '2018-11-20 23:23:46'); INSERT INTO `tp5_xtoday_words` VALUES ('4', '人老了的好处,就是可失去的东西越来越少了.', '哈尔的移动城堡', '/home/images/ps4.png', '1', '2018-11-20 23:23:42'); INSERT INTO `tp5_xtoday_words` VALUES ('5', '到底要怎么才能证明自己成长了 那种事情我也不知道啊 但是只要那一抹笑容尚存 我便心无旁骛 ', '声之形', '/home/images/ps5.png', '1', '2018-11-20 23:23:51'); INSERT INTO `tp5_xtoday_words` VALUES ('6', '你觉得被圈养的鸟儿为什么无法自由地翱翔天际?是因为鸟笼不是属于它的东西', '东京食尸鬼A', '/home/images/ps6.png', '1', '2018-11-28 19:13:44'); INSERT INTO `tp5_xtoday_words` VALUES ('7', '我手里拿着刀,没法抱你。我放下刀,没法保护你', '死神', '/home/images/ps7.png', '1', '2018-11-28 19:12:04'); INSERT INTO `tp5_xtoday_words` VALUES ('8', '不管前方的路有多苦,只要走的方向正确,不管多么崎岖不平,都比站在原地更接近幸福!', '千与千寻', '/home/images/ps8.png', '1', '2019-08-11 17:17:06'); INSERT INTO `tp5_xtoday_words` VALUES ('12', '发个非官方个', 'dfdffdfdf大概', '/cms/images/headshot/wuHuang.png', '-1', '2018-11-20 23:28:36'); -- ---------------------------- -- Table structure for tp5_xupload_imgs -- ---------------------------- DROP TABLE IF EXISTS `tp5_xupload_imgs`; CREATE TABLE `tp5_xupload_imgs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `tag_id` int(11) NOT NULL DEFAULT '0' COMMENT '当type=0 时,对应商品ID;当type=1时,对应评论订单ID', `picture` varchar(255) CHARACTER SET utf8 NOT NULL COMMENT '存储的图片路径', `add_time` timestamp NOT NULL DEFAULT '1970-01-01 10:00:00' ON UPDATE CURRENT_TIMESTAMP COMMENT '添加时间', `type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '类型 0:商品轮播图(app界面) 1: 评论订单中的图片', `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态 1:正常 -1:删除', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COMMENT='上传图片表\r\n\r\n用于保存商品轮播图或者订单评论中需要的图片,注意其 type的区分使用'; -- ---------------------------- -- Records of tp5_xupload_imgs -- ---------------------------- INSERT INTO `tp5_xupload_imgs` VALUES ('1', '20', '/cms/images/goods/teaImg.png', '2019-03-17 20:29:48', '0', '1'); INSERT INTO `tp5_xupload_imgs` VALUES ('2', '18', '/cms/images/goods/dress.png', '2019-03-17 20:29:24', '0', '1'); INSERT INTO `tp5_xupload_imgs` VALUES ('3', '20', '/cms/images/goods/dress.png', '2019-03-17 20:34:39', '0', '-1'); INSERT INTO `tp5_xupload_imgs` VALUES ('4', '18', '/cms/images/goods/teaImg.png', '2019-03-17 20:29:55', '0', '1'); INSERT INTO `tp5_xupload_imgs` VALUES ('5', '20', '/cms/images/goods/dress2.png', '2019-03-17 20:34:39', '0', '1'); INSERT INTO `tp5_xupload_imgs` VALUES ('6', '18', '/cms/images/goods/teaImg.png', '2019-03-17 20:29:55', '1', '1'); INSERT INTO `tp5_xupload_imgs` VALUES ('27', '8', '/upload/20190505/8401863d46ece8fc86d8a89ac3117d9b.jpg', '2019-05-05 18:05:08', '0', '1'); INSERT INTO `tp5_xupload_imgs` VALUES ('28', '8', '/upload/20190505/57a30e908393441e8affc9d6de60d289.jpg', '2019-05-05 18:05:08', '0', '1'); -- ---------------------------- -- Table structure for tp5_xusers -- ---------------------------- DROP TABLE IF EXISTS `tp5_xusers`; CREATE TABLE `tp5_xusers` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `nick_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL COMMENT '昵称 默认来自微信、QQ的昵称,可后期编辑', `user_avatar` varchar(500) COLLATE utf8_unicode_ci NOT NULL COMMENT '用户头像', `auth_tel` varchar(11) COLLATE utf8_unicode_ci NOT NULL DEFAULT '15118988888' COMMENT '手机认证', `sex` tinyint(4) NOT NULL DEFAULT '0' COMMENT '性别 0:未设定 1:男 2:女', `reg_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '注册时间', `user_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT ' 0:普通用户 1:内部员工', `reg_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT '注册类型,0:安卓用户(QQ),1:安卓用户(微信)', `integral` int(11) NOT NULL DEFAULT '0' COMMENT '积分', `user_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '用户状态 0:正常 1:异常(可申诉) 2:黑名单', `union_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '第三方授权认证', `open_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '微信openid', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='注册用户表'; -- ---------------------------- -- Records of tp5_xusers -- ---------------------------- INSERT INTO `tp5_xusers` VALUES ('1', '海子', 'http://b-ssl.duitang.com/uploads/item/201802/25/20180225184943_ZRAdx.thumb.700_0.jpeg', '15118988888', '0', '1555735686', '0', '0', '700', '0', '', ''); INSERT INTO `tp5_xusers` VALUES ('2', '大熊', 'http://b-ssl.duitang.com/uploads/item/201505/14/20150514041841_Ja8nU.jpeg', '15118988888', '2', '1555738810', '0', '0', '0', '0', '', ''); INSERT INTO `tp5_xusers` VALUES ('3', '福斯特', 'http://img4q.duitang.com/uploads/item/201505/05/20150505084249_rFTdv.jpeg', '15118988888', '2', '1555738881', '0', '0', '0', '1', '', ''); INSERT INTO `tp5_xusers` VALUES ('4', '卡卡西', 'http://cdn.duitang.com/uploads/item/201611/03/20161103201556_FsyRa.thumb.700_0.jpeg', '15118988888', '1', '1555739036', '1', '0', '0', '2', '', ''); INSERT INTO `tp5_xusers` VALUES ('5', '斯蒂芬孙', 'http://img5q.duitang.com/uploads/item/201507/08/20150708123847_cXsx3.jpeg', '15118988888', '1', '1555748309', '1', '0', '0', '0', '', ''); INSERT INTO `tp5_xusers` VALUES ('6', '佐伊卡', 'http://b-ssl.duitang.com/uploads/item/201504/08/20150408H2943_ySvhM.thumb.700_0.jpeg', '15118988888', '0', '1555748365', '0', '0', '0', '1', '', ''); INSERT INTO `tp5_xusers` VALUES ('7', '安琪拉', 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1562675437205&di=61a405db0fc2ce92555380da6b909186&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201702%2F17%2F20170217131057_SExjm.jpeg', '15118988888', '1', '1555748448', '0', '0', '0', '0', '', '');
<reponame>ElmarDott/TP-CORE<filename>src/main/resources-filtered/org/europa/together/sql/mail-configuration.sql --- #### ####################################################################### --- #### POPULATE CONFIGURATION TABLE --- #### ####################################################################### --- Notes: CONF-KEY in table APP_CONFIG is SHA-256 protected --- #### E-MAIL--- mailer.host INSERT INTO APP_CONFIG (IDX, CONF_KEY, CONF_VALUE, DEFAULT_VALUE, CONF_SET, MODUL_NAME, SERVICE_VERSION, MANDATORY, DEPRECATED, COMMENT) VALUES ('8cbef5a9-81ee-496c-8486-4929f4a05749', '630fa1d4617b3f19bb631e93befc5462111f7e6ee927300b6778638cfcbdfae9', '', '${mailer.host}', 'email', 'core', '1.0', true, false, ''); -- mailer.port INSERT INTO APP_CONFIG (IDX, CONF_KEY, CONF_VALUE, DEFAULT_VALUE, CONF_SET, MODUL_NAME, SERVICE_VERSION, MANDATORY, DEPRECATED, COMMENT) VALUES ('01f05983-8f5c-4114-ad8a-7f4073c80f27', 'fca1f5a28199bae3e126181012f8e901f6746ff7c5204fc96c7a6a74698ad287', '', '${mailer.port}', 'email', 'core', '1.0', true, false, ''); -- mailer.sender INSERT INTO APP_CONFIG (IDX, CONF_KEY, CONF_VALUE, DEFAULT_VALUE, CONF_SET, MODUL_NAME, SERVICE_VERSION, MANDATORY, DEPRECATED, COMMENT) VALUES ('7d1f0e8e-81f4-4a23-a7d0-c1d96c42e3cb', 'dfb5634b02902fbfcf7bbed2dea5eec99a3a6b7cb5f44bd483e4916ae1fc9dfe', '', '${mailer.sender}', 'email', 'core', '1.0', true, false, ''); -- mailer.user INSERT INTO APP_CONFIG (IDX, CONF_KEY, CONF_VALUE, DEFAULT_VALUE, CONF_SET, MODUL_NAME, SERVICE_VERSION, MANDATORY, DEPRECATED, COMMENT) VALUES ('1a4f65f5-dc89-4b2f-8766-8092c812047f', 'b5255cb2a1425fa96e1b64182b58fa5b3b2d46c30462de64d7dc6465b02875c8', '', '${mailer.user}', 'email', 'core', '1.0', true, false, ''); -- mailer.password INSERT INTO APP_CONFIG (IDX, CONF_KEY, CONF_VALUE, DEFAULT_VALUE, CONF_SET, MODUL_NAME, SERVICE_VERSION, MANDATORY, DEPRECATED, COMMENT) VALUES ('dc73b07e-0174-4e60-920a-5607380b633b', '33e05ee4bd073156793d10793d980caf59ce8b016f0a6a8820b1d5ce18dc9b47', '', '${mailer.password}', 'email', 'core', '1.0', true, false, ''); -- mailer.ssl INSERT INTO APP_CONFIG (IDX, CONF_KEY, CONF_VALUE, DEFAULT_VALUE, CONF_SET, MODUL_NAME, SERVICE_VERSION, MANDATORY, DEPRECATED, COMMENT) VALUES ('3b7d8a78-30ec-4a53-9994-4e595acb7a26', '8e49cc844a943733ad9bbf0dca5f2cb76f2cd1555b0f714ed57447c9baa265c3', '', '${mailer.ssl}', 'email', 'core', '1.0', true, false, ''); -- mailer.tls INSERT INTO APP_CONFIG (IDX, CONF_KEY, CONF_VALUE, DEFAULT_VALUE, CONF_SET, MODUL_NAME, SERVICE_VERSION, MANDATORY, DEPRECATED, COMMENT) VALUES ('472746d8-2f2a-49dc-9b1a-a4f56dc8e2ba', 'def03e28ed295f97bf1d9121e6590de282c96bf99303177f4b123043c2bcc429', '', '${mailer.tls}', 'email', 'core', '1.0', true, false, ''); -- mailer.debug INSERT INTO APP_CONFIG (IDX, CONF_KEY, CONF_VALUE, DEFAULT_VALUE, CONF_SET,MODUL_NAME, SERVICE_VERSION, MANDATORY, DEPRECATED, COMMENT) VALUES ('9b5cb2e2-65ea-4db6-b2d3-d343adcda29d', '2430c986c0f7a145cd0df711f316b027bca71024e963d9c6c0be792ec32813b9', '', '${mailer.debug}', 'email', 'core', '1.0', true, false, ''); -- mailer.count INSERT INTO APP_CONFIG (IDX, CONF_KEY, CONF_VALUE, DEFAULT_VALUE, CONF_SET, MODUL_NAME, SERVICE_VERSION, MANDATORY, DEPRECATED, COMMENT) VALUES ('e6892b88-aa8b-4900-b6fb-c35dc108add9', 'c14efd472af892f12baa67f772bbf13da061f12f9ba1eb77fa7acb2fd51d94fb', '', '${mailer.count}', 'email', 'core', '1.0', true, false, ''); -- mailer.wait INSERT INTO APP_CONFIG (IDX, CONF_KEY, CONF_VALUE, DEFAULT_VALUE, CONF_SET, MODUL_NAME, SERVICE_VERSION, MANDATORY, DEPRECATED, COMMENT) VALUES ('3f4f8e09-f754-4285-a6d2-0bbce6354e4b', 'b20c815d1670e07e0d31066fc9b12c53af97ee9bb34fc85bc8f5312686622f05', '', '${mailer.wait}', 'email', 'core', '1.0', true, false, '');
{Source_to_Standard} SELECT distinct SOURCE_CODE, TARGET_CONCEPT_ID FROM CTE_VOCAB_MAP WHERE lower(SOURCE_VOCABULARY_ID)='read' and lower(TARGET_VOCABULARY_ID)='snomed' and lower(TARGET_DOMAIN_ID)='observation' AND (TARGET_INVALID_REASON IS NULL or TARGET_INVALID_REASON = '')
----------------------------------------------------------------------------- -- (c) Copyright IBM Corp. 2007 All rights reserved. -- -- The following sample of source code ("Sample") is owned by International -- Business Machines Corporation or one of its subsidiaries ("IBM") and is -- copyrighted and licensed, not sold. You may use, copy, modify, and -- distribute the Sample in any form without payment to IBM, for the purpose of -- assisting you in the development of your applications. -- -- The Sample code is provided to you on an "AS IS" basis, without warranty of -- any kind. IBM HEREBY EXPRESSLY DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR -- IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Some jurisdictions do -- not allow for the exclusion or limitation of implied warranties, so the above -- limitations or exclusions may not apply to you. IBM shall not be liable for -- any damages you suffer as a result of using, copying, modifying or -- distributing the Sample, even if IBM has been advised of the possibility of -- such damages. ----------------------------------------------------------------------------- -- -- SOURCE FILE NAME: baseif.db2 -- -- SAMPLE: To create the UPDATE_SALARY_IF SQL procedure -- -- To create the SQL procedure: -- 1. Connect to the database -- 2. Enter the command "db2 -td@ -vf baseif.db2" -- -- To call the SQL procedure from the command line: -- 1. Connect to the database -- 2. Enter the following command: -- db2 "CALL update_salary_if ('000100', 1)" -- -- You can also call this SQL procedure by compiling and running the -- C embedded SQL client application, "baseif", using the baseif.sqc -- source file available in the sqlpl samples directory. ----------------------------------------------------------------------------- -- -- For more information on the sample scripts, see the README file. -- -- For information on creating SQL procedures, see the Application -- Development Guide. -- -- For information on using SQL statements, see the SQL Reference. -- -- For the latest information on programming, building, and running DB2 -- applications, visit the DB2 application development website: -- http://www.software.ibm.com/data/db2/udb/ad ----------------------------------------------------------------------------- CREATE PROCEDURE update_salary_if (IN employee_number CHAR(6), IN rating SMALLINT) LANGUAGE SQL BEGIN DECLARE SQLSTATE CHAR(5); DECLARE not_found CONDITION FOR SQLSTATE '02000'; DECLARE EXIT HANDLER FOR not_found SIGNAL SQLSTATE '20000' SET MESSAGE_TEXT = 'Employee not found'; IF (rating = 1) THEN UPDATE employee SET salary = salary * 1.10, bonus = 1000 WHERE empno = employee_number; ELSEIF (rating = 2) THEN UPDATE employee SET salary = salary * 1.05, bonus = 500 WHERE empno = employee_number; ELSE UPDATE employee SET salary = salary * 1.03, bonus = 0 WHERE empno = employee_number; END IF; END @
set trims on pagesize 100 linesize 250 column table_name format a25 column partition_or_global format a25 column index_name format a25 alter session set NLS_DATE_FORMAT = 'HH24:MI:SS YYYY-MM-DD'; drop table stale_test1 purge; drop table stale_test2 purge; create table stale_test1 (col1 number(10)); create table stale_test2 (col1 number(10)) partition by range (col1) ( partition p1 values less than (100) ,partition p2 values less than (200)); create index stale_test1_i on stale_test1(col1); create index stale_test2_i on stale_test2(col1) local; exec dbms_stats.set_table_prefs(user,'stale_test1','stale_percent','5') exec dbms_stats.set_table_prefs(user,'stale_test2','stale_percent','5') insert into stale_test1 values (1); insert into stale_test2 values (1); insert into stale_test2 values (100); commit; exec dbms_stats.gather_table_stats(user,'stale_test1') exec dbms_stats.gather_table_stats(user,'stale_test2') PROMPT All tables and partitions have non-stale stats PROMPT select table_name,nvl(partition_name,'GLOBAL') partition_or_global, last_analyzed,stale_stats from user_tab_statistics where table_name in ('STALE_TEST1','STALE_TEST2') order by 1,2; pause p... insert into stale_test2 values (1); commit; exec dbms_stats.flush_database_monitoring_info exec dbms_lock.sleep(5) PROMPT We only need to gather stats for P1 and the global stats for STALE_TEST2 PROMPT select table_name,nvl(partition_name,'GLOBAL') partition_or_global, last_analyzed,stale_stats from user_tab_statistics where table_name in ('STALE_TEST1','STALE_TEST2') order by 1,2; pause p... exec dbms_stats.gather_table_stats(user,'stale_test1') exec dbms_stats.gather_table_stats(user,'stale_test2') -- If you want to test on 'gather auto' on 12c, uncomment the two lines below -- and comment the two lines above. The results will be similar. --exec dbms_stats.gather_table_stats(user,'stale_test1',options=>'gather auto') --exec dbms_stats.gather_table_stats(user,'stale_test2',options=>'gather auto') PROMPT But gather_table_stats gathers table stats irrespective of staleness PROMPT so all table and partitions have a new LAST_ANALYZED time PROMPT select table_name,nvl(partition_name,'GLOBAL') partition_or_global, last_analyzed,stale_stats from user_tab_statistics where table_name in ('STALE_TEST1','STALE_TEST2') order by 1,2; PROMPT PROMPT We used dbms_stats.gather_table_stats PROMPT PROMPT Notice above how all statistics have been re-gathered PROMPT (compare the LAST_ANALYZED time now and in the previous listing) PROMPT GATHER_TABLE_STATS does not skip tables if the statistics are not stale. pause p... insert into stale_test2 values (1); insert into stale_test2 values (1); insert into stale_test2 values (1); commit; exec dbms_stats.flush_database_monitoring_info exec dbms_lock.sleep(5) PROMPT PROMPT We are ready to try again, this time with GATHER_SCHEMA_STATS... select table_name,nvl(partition_name,'GLOBAL') partition_or_global, last_analyzed,stale_stats from user_tab_statistics where table_name in ('STALE_TEST1','STALE_TEST2') order by 1,2; pause p... DECLARE filter_lst DBMS_STATS.OBJECTTAB := DBMS_STATS.OBJECTTAB(); BEGIN filter_lst.extend(2); filter_lst(1).ownname := user; filter_lst(1).objname := 'stale_test1'; filter_lst(2).ownname := user; filter_lst(2).objname := 'stale_test2'; DBMS_STATS.GATHER_SCHEMA_STATS(ownname=>user,obj_filter_list=>filter_lst,options=>'gather auto'); END; / PROMPT PROMPT We used dbms_stats.gather_schema_stats(obj_filter_list=> ... , options=>'gather auto') PROMPT PROMPT This time non-stale tables and partitions have been skipped PROMPT and statistics have only been gathered where there are stale stats. PROMPT Bear in mind that STALE_TEST2 has new statistics at the GLOBAL level PROMPT because the stale P1 partition means that the table's global-level PROMPT statistics must be updated too. select table_name,nvl(partition_name,'GLOBAL') partition_or_global, last_analyzed,stale_stats from user_tab_statistics where table_name in ('STALE_TEST1','STALE_TEST2') order by 1,2; pause p... PROMPT PROMPT The indexes are treated correctly too PROMPT select table_name,index_name,nvl(partition_name,'GLOBAL') partition_or_global, last_analyzed,stale_stats from user_ind_statistics where table_name in ('STALE_TEST1','STALE_TEST2') order by 1,3;
-- Schema 19 unfortunately got the order of the columns in the primary key wrong CREATE INDEX libraryTrackIndex ON library_track (library); -- -- Table: library_album -- DROP TABLE IF EXISTS library_album; CREATE TABLE library_album ( album int(10) unsigned, library char(8), PRIMARY KEY (library,album), FOREIGN KEY (`album`) REFERENCES `albums` (`id`) ON DELETE CASCADE ); CREATE INDEX libraryAlbumIndex ON library_album (album); -- -- Table: library_contributor -- DROP TABLE IF EXISTS library_contributor; CREATE TABLE library_contributor ( contributor int(10) unsigned, library char(8), PRIMARY KEY (library,contributor), FOREIGN KEY (`contributor`) REFERENCES `contributors` (`id`) ON DELETE CASCADE ); CREATE INDEX libraryContributorIndex ON library_contributor (contributor); -- -- Table: library_genre -- DROP TABLE IF EXISTS library_genre; CREATE TABLE library_genre ( genre int(10) unsigned, library char(8), PRIMARY KEY (library,genre), FOREIGN KEY (`genre`) REFERENCES `genres` (`id`) ON DELETE CASCADE ); CREATE INDEX libraryGenreIndex ON library_genre (genre);
<gh_stars>0 CREATE TABLE community ( community_id UUID NOT NULL PRIMARY KEY DEFAULT gen_random_uuid(), channel_id UUID NOT NULL UNIQUE, community_show_notice_n INTEGER NOT NULL DEFAULT 3, CONSTRAINT channel_community__channel_id_fk FOREIGN KEY (channel_id) REFERENCES channel( channel_id ) ON DELETE CASCADE ); CREATE TABLE community_menu ( menu_id UUID NOT NULL PRIMARY KEY DEFAULT gen_random_uuid(), community_id UUID NOT NULL, menu_title VARCHAR(64) NOT NULL, menu_read_allow BOOLEAN NOT NULL DEFAULT TRUE, menu_write_allow BOOLEAN NOT NULL DEFAULT TRUE, CONSTRAINT community_community_menu__community_id_fk FOREIGN KEY (community_id) REFERENCES community( community_id ) ON DELETE CASCADE ); CREATE TABLE community_menu_permission ( menu_id UUID NOT NULL, role_id UUID NOT NULL, allow_to_write BOOLEAN NOT NULL, allow_to_read BOOLEAN NOT NULL, CONSTRAINT community_menu_community_menu_permission__menu_id_fk FOREIGN KEY (menu_id) REFERENCES community_menu( menu_id ) ON DELETE CASCADE, CONSTRAINT channel_role_community_menu__role_id_fk FOREIGN KEY (role_id) REFERENCES channel_role( role_id ) ON DELETE CASCADE ); CREATE TABLE community_post ( post_id UUID NOT NULL PRIMARY KEY DEFAULT gen_random_uuid(), community_id UUID NOT NULL, menu_id UUID NOT NULL, writer_id UUID NOT NULL, post_title VARCHAR(64) NOT NULL, post_content TEXT NOT NULL, post_comment_block BOOLEAN NOT NULL DEFAULT FALSE, created_at TIMESTAMP NOT NULL DEFAULT now(), updated_at TIMESTAMP NULL, CONSTRAINT community_community_post__community_id_fk FOREIGN KEY (community_id) REFERENCES community( community_id ) ON DELETE CASCADE, CONSTRAINT community_menu_community_post__community_id_fk FOREIGN KEY (menu_id) REFERENCES community_menu( menu_id ) ON DELETE CASCADE, CONSTRAINT member_community_post__writer_id_fk FOREIGN KEY (writer_id) REFERENCES member( member_id ) ); CREATE TABLE community_home ( menu_id UUID NOT NULL, community_id UUID NOT NULL, setting_flag BIT(16) NOT NULL DEFAULT B'0000000000000001', priority INTEGER NOT NULL, thumb_size INTEGER NOT NULL DEFAULT 5, CONSTRAINT community_menu_community_home__menu_id_fk FOREIGN KEY (menu_id) REFERENCES community_menu( menu_id ) ON DELETE CASCADE, CONSTRAINT community_community_home__community_id_fk FOREIGN KEY (community_id) REFERENCES community( community_id ) ON DELETE CASCADE ); CREATE TABLE community_post_history ( post_id UUID, member_id UUID, history_date TIMESTAMP DEFAULT now(), CONSTRAINT community_post_community_post_history__post_id_fk FOREIGN KEY (post_id) REFERENCES community_post( post_id ) ON DELETE CASCADE, CONSTRAINT member_community_post_history__post_id_fk FOREIGN KEY (member_id) REFERENCES member( member_id ) ON DELETE CASCADE );
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: db_eca -- ------------------------------------------------------ -- Server version 5.7.21-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `tb_peti` -- DROP TABLE IF EXISTS `tb_peti`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb_peti` ( `id_peti` int(11) NOT NULL AUTO_INCREMENT, `str_month` varchar(2) NOT NULL, `str_year` varchar(4) NOT NULL, `str_situacao` varchar(15) NOT NULL, `db_value_portion` double NOT NULL, `tb_beneficiaries_id_beneficiaries` bigint(20) NOT NULL, `tb_city_id_city` int(11) NOT NULL, PRIMARY KEY (`id_peti`), KEY `fk_tb_peti_tb_beneficiaries1_idx` (`tb_beneficiaries_id_beneficiaries`), KEY `fk_tb_peti_tb_city1_idx` (`tb_city_id_city`), CONSTRAINT `fk_tb_peti_tb_beneficiaries1` FOREIGN KEY (`tb_beneficiaries_id_beneficiaries`) REFERENCES `tb_beneficiaries` (`id_beneficiaries`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_tb_peti_tb_city1` FOREIGN KEY (`tb_city_id_city`) REFERENCES `tb_city` (`id_city`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `tb_peti` -- LOCK TABLES `tb_peti` WRITE; /*!40000 ALTER TABLE `tb_peti` DISABLE KEYS */; INSERT INTO `tb_peti` VALUES (1,'05','2014','Sacado',500,1,2),(2,'10','2016','Sacado',370,2,1),(3,'03','2017','Não Sacado',500,5,1); /*!40000 ALTER TABLE `tb_peti` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2018-09-28 14:36:03
<reponame>bogdanghita/public_bi_benchmark-master_project SELECT "Redfin1_1"."region" AS "region" FROM "Redfin1_1" GROUP BY 1 ORDER BY "region" ASC;
-- ----------------------------------------------------------------- -- File name: IndexStorageExample.sql -- Author: <NAME> -- Date: 10/26/2017 -- Class: CS445 -- Assignment: Class Example, Index & Storage Engines -- Purpose: Create a small database; inspect how queries are -- solved. -- print in 10 pt -- ----------------------------------------------------------------- Drop table if exists Prof_Ex; Drop table if exists JobStatus; Drop table if exists OneRow; Create table OneRow ( OneRowID int AUTO_INCREMENT not null, OneRowName varchar(25), Constraint OneRow_PK Primary Key(OneRowID) ) Engine = InnoDB; INSERT INTO OneRow (OneRowName) Values ("Databases"); Create table JobStatus ( StatusID int AUTO_INCREMENT not null, JobName varchar(25), PayBonus int not null default 0, Tenure boolean default FALSE, CONSTRAINT JobStatus_PK Primary key(StatusID) ) Engine = InnoDB; Create table Prof_Ex ( ProfID int not null AUTO_INCREMENT, FName varchar(25), LName varchar(50), StatusID int not null, StartDate date, CONSTRAINT Prof_Ex_PK Primary key(ProfID), Index Prof_EX_StartDate_IDX (StartDate), CONSTRAINT Prof_Ex_StatusID_FK FOREIGN key (StatusID) References JobStatus(StatusID) ) Engine=InnoDB; SHOW INDEX From Prof_Ex; SHOW INDEX From People; SHOW INDEX From CurrentlyEnrolled; INSERT INTO JobStatus (JobName, PayBonus, Tenure) Values ("Professor", 10000, TRUE); INSERT INTO JobStatus (JobName, PayBonus, Tenure) Values ("Associate", 1000, TRUE); INSERT INTO JobStatus (JobName, PayBonus, Tenure) Values ("Assistant", 0, FALSE); INSERT INTO Prof_Ex(FName, LName, StatusID, StartDate) Values ("D","R", 3, "1990-08-01"); INSERT INTO Prof_Ex(FName, LName, StatusID, StartDate) Values ("S","K", 3, "2002-08-01"); INSERT INTO Prof_Ex(FName, LName, StatusID, StartDate) Values ("C","W", 2, "2006-08-01"); INSERT INTO Prof_Ex(FName, LName, StatusID, StartDate) Values ("C","L", 2, "1999-08-01"); explain select * from OneRow; -- ALL explain select OneRowID from OneRow; -- index explain select * from OneRow where OneRowID=1; -- const explain select * from Prof_Ex where ProfID=1; -- const explain select * from Prof_Ex where StatusID=3; -- ref explain select * from JobStatus Where PayBonus > 100; -- ALL explain select * from Prof_Ex where StartDate > "2001-01-01"; -- range explain select * from Prof_Ex, JobStatus where Prof_Ex.StatusID=JobStatus.StatusID; -- ALL, ALL -- https://mariadb.com/kb/en/library/block-based-join-algorithms/ explain select ProfID from Prof_Ex; -- index (covering index) explain select ProfID from Prof_Ex, JobStatus where Prof_Ex.StatusID=JobStatus.StatusID; -- index, ref explain select ProfID, Prof_Ex.LName, JobStatus.JobName from Prof_Ex, JobStatus where Prof_Ex.StatusID=JobStatus.StatusID; -- ALL, ALL explain select Prof_Ex.*, JobStatus.JobName from Prof_Ex, JobStatus where StartDate > "2001-01-01" and Prof_Ex.StatusID = JobStatus.StatusID; -- range, All (flat BNL Join) explain select * from People, CurrentlyTeaching, Courses where People.PersonID = CurrentlyTeaching.ProfID AND Courses.CourseID = CurrentlyTeaching.CourseID; -- index, eq_ref, ALL (flat BNL Join) explain select CurrentlyTeaching.CourseID, CurrentlyEnrolled.StudentID, T.PersonID -- select * from People as T, CurrentlyTeaching, CurrentlyEnrolled, People as S where T.PersonID = CurrentlyTeaching.ProfID AND CurrentlyTeaching.CourseID=CurrentlyEnrolled.CourseID AND S.PersonID = CurrentlyEnrolled.StudentID; -- index, ref, eq_ref, eq_ref explain select * From CurrentlyEnrolled where CourseID=1; -- ref explain select * From CurrentlyEnrolled where StudentID=1; -- ref -- alter table CurrentlyEnrolled -- drop index CurrentlyEnrolled_StudentID_IDX; explain select * from People where Login like '%a%'; -- ALL explain select * from People where Login like 'c%'; -- range explain select * from People where Login like 'chadd'; -- range explain select * from People where Login = 'chadd'; -- const
<reponame>ajeng173040091/ci-app -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 07 Okt 2019 pada 17.37 -- Versi server: 10.3.16-MariaDB -- Versi PHP: 7.1.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `phpmvc` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `mahasiswa` -- CREATE TABLE `mahasiswa` ( `id` int(11) NOT NULL, `nama` varchar(100) NOT NULL, `nrp` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `jurusan` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `mahasiswa` -- INSERT INTO `mahasiswa` (`id`, `nama`, `nrp`, `email`, `jurusan`) VALUES (2, '<NAME>', '043040023', '<EMAIL>', 'Teknik mesin'), (3, '<NAME>', '153040055', '<EMAIL>', 'akutansi'), (4, '<NAME>', '65656576', '<EMAIL>', 'Teknik Informatika'), (10, '<NAME>', '0115101447', '<EMAIL>', 'Teknik Pangan'); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `mahasiswa` -- ALTER TABLE `mahasiswa` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `mahasiswa` -- ALTER TABLE `mahasiswa` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>sbenten/osm_routing_import /* A loose collection of scripts to load data accident data from DfT. 1. COPY the CSV files into PostgreSQL one at a time as NULL values and additional columns make for errors. Uncomment and comment the lines as you go. 2. Then create a point for the accident in the accidents_ex table. 3. Limit the data to the study area. 4. Copy back to the study schema for ease of use. 5. Update highway edges with accident counts. */ COPY dft.accidents(id, location_easting_osgr, location_northing_osgr, longitude, latitude, police_force, accident_severity, number_of_vehicles, number_of_casualties, date_text, day_of_week, time_text, local_authority_district, local_authority_highway, first_road_class, first_road_number, road_type, speed_limit, junction_detail, junction_control, second_road_class, second_road_number, ped_xing_human_control, ped_xing_physical_facilities, light_conditions, weather_conditions, road_surface_conditions, special_conditions_at_site, carriageway_hazards, urban_or_rural_area, police_attended, lsoa_of_accident_location) --FROM 'D:\Department for Transport\2011_Accidents.csv' DELIMITER ',' CSV HEADER; --FROM 'D:\Department for Transport\2012_Accidents.csv' DELIMITER ',' CSV HEADER; --FROM 'D:\Department for Transport\2013_Accidents.csv' DELIMITER ',' CSV HEADER; --FROM 'D:\Department for Transport\2014_Accidents.csv' DELIMITER ',' CSV HEADER; --FROM 'D:\Department for Transport\2015_Accidents.csv' DELIMITER ',' CSV HEADER; --NULLs in speed limit --FROM 'D:\Department for Transport\2016_Accidents.csv' DELIMITER ',' CSV HEADER; --NULLs in long/lat --FROM 'D:\Department for Transport\2017_Accidents.csv' DELIMITER ',' CSV HEADER; FROM 'D:\Department for Transport\2018_Accidents.csv' DELIMITER ',' CSV HEADER; COPY dft.casualties ( accident_id , vehicle_reference, reference, class, sex, age, --since 2014 age_band, severity, pedestrian_location, pedestrian_movement, car_passenger, bus_or_coach_passenger, pedestrian_road_maintenance_worker, casualty_type, casualty_home_area_type, casualty_imd_decile) --since 2015 --FROM 'D:\Department for Transport\2011_Casualties.csv' DELIMITER ',' CSV HEADER; --FROM 'D:\Department for Transport\2012_Casualties.csv' DELIMITER ',' CSV HEADER; --FROM 'D:\Department for Transport\2013_Casualties.csv' DELIMITER ',' CSV HEADER; --FROM 'D:\Department for Transport\2014_Casualties.csv' DELIMITER ',' CSV HEADER; --FROM 'D:\Department for Transport\2015_Casualties.csv' DELIMITER ',' CSV HEADER; --FROM 'D:\Department for Transport\2016_Casualties.csv' DELIMITER ',' CSV HEADER; --FROM 'D:\Department for Transport\2017_Casualties.csv' DELIMITER ',' CSV HEADER; FROM 'D:\Department for Transport\2018_Casualties.csv' DELIMITER ',' CSV HEADER; COPY dft.vehicles ( accident_id, reference, type, towing_and_articulation, manoevre, restricted_lane, junction_location, skidding_and_overturning, hit_object_in_carriageway, leaving_carriageway, hit_object_off_cariageway, first_point_of_impact, left_hand_drive, journey_purpose_of_driver, sex_of_driver, age_of_driver, --since 2014 age_band_of_driver, engine_capacity, propulsion_code, age_of_vehicle, driver_imd_decile, driver_home_area_type, vehicle_imd_decile) --since 2015 --FROM 'D:\Department for Transport\2011_Vehicles.csv' DELIMITER ',' CSV HEADER; --FROM 'D:\Department for Transport\2012_Vehicles.csv' DELIMITER ',' CSV HEADER; --FROM 'D:\Department for Transport\2013_Vehicles.csv' DELIMITER ',' CSV HEADER; --FROM 'D:\Department for Transport\2014_Vehicles.csv' DELIMITER ',' CSV HEADER; --FROM 'D:\Department for Transport\2015_Vehicles.csv' DELIMITER ',' CSV HEADER; --FROM 'D:\Department for Transport\2016_Vehicles.csv' DELIMITER ',' CSV HEADER; --FROM 'D:\Department for Transport\2017_Vehicles.csv' DELIMITER ',' CSV HEADER; FROM 'D:\Department for Transport\2018_Vehicles.csv' DELIMITER ',' CSV HEADER; --Now it's all imported add the geometry and real date time value INSERT INTO dft.accidents_ex SELECT id, ST_SetSRID(ST_MakePoint(location_easting_osgr, location_northing_osgr), 27700), To_TimeStamp(date_text || ' ' || time_text, 'DD/MM/YYYY HH24:MI') FROM dft.accidents WHERE NOT EXISTS ( SELECT accident_id FROM dft.accidents_ex WHERE dft.accidents_ex.accident_id = dft.accidents.id ); --Geographically limit accidents to within study area WITH x AS ( SELECT geom FROM ttw_boundaries WHERE objectid = 118 ), y AS ( SELECT a.accident_id FROM dft.accidents_ex a, x WHERE ST_Contains(x.geom, a.geom) ) UPDATE dft.accidents SET study = true FROM y WHERE id = y.accident_id --accident involving pedestrian casualty WITH x AS ( SELECT accident_id FROM dft.casualties WHERE casuality_type = 0 ) UPDATE dft.accidents SET pedestrian = true FROM x WHERE id = x.accident_id --accident involving cyclist casualty WITH x AS ( SELECT accident_id FROM dft.casualties WHERE casuality_type = 1 ) UPDATE dft.accidents SET cyclist = true FROM x WHERE id = x.accident_id SELECT * FROM dft.casualties WHERE casuality_type In (0, 1) /* Codes in columns of interest... Casualty class 1 Driver or rider 2 Passenger 3 Pedestrian Casualty type 0 Pedestrian 1 Cyclist 2 Motorcycle 50cc and under rider or passenger 3 Motorcycle 125cc and under rider or passenger 4 Motorcycle over 125cc and up to 500cc rider or passenger 5 Motorcycle over 500cc rider or passenger 8 Taxi/Private hire car occupant 9 Car occupant 10 Minibus (8 - 16 passenger seats) occupant 11 Bus or coach occupant (17 or more pass seats) 16 Horse rider 17 Agricultural vehicle occupant 18 Tram occupant 19 Van / Goods vehicle (3.5 tonnes mgw or under) occupant 20 Goods vehicle (over 3.5t. and under 7.5t.) occupant 21 Goods vehicle (7.5 tonnes mgw and over) occupant 22 Mobility scooter rider 23 Electric motorcycle rider or passenger 90 Other vehicle occupant 97 Motorcycle - unknown cc rider or passenger 98 Goods vehicle (unknown weight) occupant */ /* Copy back across to study area schema for later analysis */ DROP TABLE accidents CREATE TABLE accidents AS SELECT a.id, a.accident_severity as severity, a.police_attended, a.pedestrian, a.cyclist, x.geom, x.date FROM dft.accidents a JOIN dft.accidents_ex x ON x.accident_id = a.id WHERE a.study = true; ALTER TABLE accidents RENAME COLUMN accident_id TO id; ALTER TABLE accidents ADD CONSTRAINT accidents_pkey PRIMARY KEY (id); /* Update highway edges with accident counts */ UPDATE ways_clean SET cyclist_accidents = COALESCE(x.accident_count, 0) FROM ( SELECT w.id, count(a.geom) AS accident_count FROM ways_clean w LEFT JOIN accidents a ON ST_Contains(ST_Buffer(w.geom, 10.0), a.geom) WHERE w.cycle_allow AND a.cyclist = true GROUP BY w.id ) x WHERE ways_clean.id = x.id; UPDATE ways_clean SET pedestrian_accidents = COALESCE(x.accident_count, 0) FROM ( SELECT w.id, count(a.geom) AS accident_count FROM ways_clean w LEFT JOIN accidents a ON ST_Contains(ST_Buffer(w.geom, 10.0), a.geom) WHERE w.walk_allow AND a.pedestrian = true GROUP BY w.id ) x WHERE ways_clean.id = x.id; UPDATE ways_clean SET total_accidents = COALESCE(x.accident_count, 0) FROM ( SELECT w.id, count(a.geom) AS accident_count FROM ways_clean w LEFT JOIN accidents a ON ST_Contains(ST_Buffer(w.geom, 10.0), a.geom) GROUP BY w.id ) x WHERE ways_clean.id = x.id;
<reponame>GopalNG/Flask_webapplication_and_restful_Curd -- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 02, 2018 at 04:08 PM -- Server version: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `test` -- -- -------------------------------------------------------- -- -- Table structure for table `student_flask` -- CREATE TABLE `student_flask` ( `id` int(15) NOT NULL, `name` varchar(125) NOT NULL, `email` varchar(125) NOT NULL, `phone` bigint(255) NOT NULL, `img_name` varchar(255) NOT NULL, ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `student_flask` -- INSERT INTO `student_flask` (`id`, `name`, `email`, `phone`, `img_name`) VALUES (60, 'nmail', 'n@mail', 9876543210, '20180321_v.png'), (61, 'GLion', '<EMAIL>', 1234567890, '2018203121_lion-1366x768.jpg'); -- -- Indexes for dumped tables -- -- -- Indexes for table `student_flask` -- ALTER TABLE `student_flask` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `student_flask` -- ALTER TABLE `student_flask` MODIFY `id` int(15) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=62;COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>rivaisali/ATK-Kantor-Pajak -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 21 Jun 2021 pada 06.47 -- Versi server: 10.4.13-MariaDB -- Versi PHP: 7.3.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `atk_db` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `barang` -- CREATE TABLE `barang` ( `id` int(5) UNSIGNED NOT NULL, `kode_barang` varchar(50) NOT NULL, `barcode` varchar(50) NOT NULL, `kategori_id` int(5) NOT NULL, `tipe_id` int(5) NOT NULL, `merk` varchar(100) NOT NULL, `nama_barang` varchar(100) NOT NULL, `stok` int(3) NOT NULL, `updated_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `barang` -- INSERT INTO `barang` (`id`, `kode_barang`, `barcode`, `kategori_id`, `tipe_id`, `merk`, `nama_barang`, `stok`, `updated_at`, `created_at`) VALUES (17, '123', '321211', 2, 3, 'Lifebuoy', 'Sabun Cuci2', 50, '2021-06-20 23:22:48', '2021-06-21 12:11:43'), (19, '1234', '321211333', 2, 3, 'Lifebuoy', 'Sabun Cuci2343', 50, '2021-06-20 23:27:45', '2021-06-20 23:23:17'); -- -------------------------------------------------------- -- -- Struktur dari tabel `kategori` -- CREATE TABLE `kategori` ( `id` int(5) NOT NULL, `kategori` varchar(100) NOT NULL, `keterangan` varchar(100) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `kategori` -- INSERT INTO `kategori` (`id`, `kategori`, `keterangan`) VALUES (1, 'Buku', ''); -- -------------------------------------------------------- -- -- Struktur dari tabel `stok_keluar` -- CREATE TABLE `stok_keluar` ( `stok_keluar_id` int(5) NOT NULL, `tgl_keluar` date NOT NULL, `kode_barang` varchar(50) NOT NULL, `jumlah_stok` int(8) NOT NULL, `Keterangan` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Struktur dari tabel `stok_masuk` -- CREATE TABLE `stok_masuk` ( `stok_masuk_id` int(5) NOT NULL, `tgl_masuk` date NOT NULL, `kode_barang` varchar(50) NOT NULL, `jumlah_stok` int(8) NOT NULL, `keterangan` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Struktur dari tabel `tipe` -- CREATE TABLE `tipe` ( `id` int(5) NOT NULL, `kategori_id` int(5) NOT NULL, `tipe` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Struktur dari tabel `transaksi` -- CREATE TABLE `transaksi` ( `id` int(5) NOT NULL, `nomor_transaksi` varchar(50) NOT NULL, `user_id` int(5) NOT NULL, `user_pelanggan_id` int(5) NOT NULL, `tgl_transaksi` date NOT NULL, `status` int(2) NOT NULL, `updated_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Struktur dari tabel `transaksi_detail` -- CREATE TABLE `transaksi_detail` ( `id` int(5) NOT NULL, `transaksi_id` int(5) NOT NULL, `kode_barang` varchar(50) NOT NULL, `jumlah` int(8) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Struktur dari tabel `user` -- CREATE TABLE `user` ( `id` int(5) UNSIGNED NOT NULL, `nip` varchar(25) NOT NULL, `nama_lengkap` varchar(150) NOT NULL, `username` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `jabatan` varchar(100) NOT NULL, `pangkat` varchar(100) NOT NULL, `password` varchar(255) NOT NULL, `foto` text NOT NULL, `level` int(2) NOT NULL, `last_logged` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `user` -- INSERT INTO `user` (`id`, `nip`, `nama_lengkap`, `username`, `email`, `jabatan`, `pangkat`, `password`, `foto`, `level`, `last_logged`, `updated_at`, `created_at`) VALUES (3, '12345', '<NAME>', 'rivaisali', '<EMAIL>', '50000', '11', '$2y$10$bNVA5H/Cdyce3egQIt21B.OQ6gXNIbGddzj1DFg5Ssm5AHg4hxTGe', 'foto.jpg', 1, NULL, NULL, '2021-05-28 13:48:49'), (4, '123456789', '<NAME>', 'rivaisali', '<EMAIL>', 'direktur', 'akpol', '$2y$10$hov38otnXCUq0fQH/TwvaekteXpNK6dmeAwhvvYRyiCy5QbI.deJS', '12.jpg', 2, '2021-06-20 23:46:21', '2021-06-20 23:46:21', '2021-06-20 14:48:02'); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `barang` -- ALTER TABLE `barang` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `kode_barang` (`kode_barang`); -- -- Indeks untuk tabel `kategori` -- ALTER TABLE `kategori` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `stok_keluar` -- ALTER TABLE `stok_keluar` ADD PRIMARY KEY (`stok_keluar_id`); -- -- Indeks untuk tabel `stok_masuk` -- ALTER TABLE `stok_masuk` ADD PRIMARY KEY (`stok_masuk_id`); -- -- Indeks untuk tabel `tipe` -- ALTER TABLE `tipe` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `transaksi` -- ALTER TABLE `transaksi` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `transaksi_detail` -- ALTER TABLE `transaksi_detail` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `email` (`nip`), ADD UNIQUE KEY `password` (`password`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `barang` -- ALTER TABLE `barang` MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- AUTO_INCREMENT untuk tabel `kategori` -- ALTER TABLE `kategori` MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT untuk tabel `stok_keluar` -- ALTER TABLE `stok_keluar` MODIFY `stok_keluar_id` int(5) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `stok_masuk` -- ALTER TABLE `stok_masuk` MODIFY `stok_masuk_id` int(5) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `tipe` -- ALTER TABLE `tipe` MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT untuk tabel `transaksi` -- ALTER TABLE `transaksi` MODIFY `id` int(5) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `transaksi_detail` -- ALTER TABLE `transaksi_detail` MODIFY `id` int(5) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `user` -- ALTER TABLE `user` MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>yadavswap/Madni-International- -- phpMyAdmin SQL Dump -- version 4.9.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 29, 2020 at 03:09 AM -- Server version: 10.3.23-MariaDB-log-cll-lve -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `madnxfzb_db` -- -- -------------------------------------------------------- -- -- Table structure for table `countries` -- CREATE TABLE `countries` ( `id` int(11) NOT NULL, `code` varchar(2) NOT NULL DEFAULT '', `name` varchar(100) NOT NULL DEFAULT '' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `countries` -- INSERT INTO `countries` (`id`, `code`, `name`) VALUES (1, 'AF', 'Afghanistan'), (2, 'AL', 'Albania'), (3, 'DZ', 'Algeria'), (4, 'DS', 'American Samoa'), (5, 'AD', 'Andorra'), (6, 'AO', 'Angola'), (7, 'AI', 'Anguilla'), (8, 'AQ', 'Antarctica'), (9, 'AG', 'Antigua and Barbuda'), (10, 'AR', 'Argentina'), (11, 'AM', 'Armenia'), (12, 'AW', 'Aruba'), (13, 'AU', 'Australia'), (14, 'AT', 'Austria'), (15, 'AZ', 'Azerbaijan'), (16, 'BS', 'Bahamas'), (17, 'BH', 'Bahrain'), (18, 'BD', 'Bangladesh'), (19, 'BB', 'Barbados'), (20, 'BY', 'Belarus'), (21, 'BE', 'Belgium'), (22, 'BZ', 'Belize'), (23, 'BJ', 'Benin'), (24, 'BM', 'Bermuda'), (25, 'BT', 'Bhutan'), (26, 'BO', 'Bolivia'), (27, 'BA', 'Bosnia and Herzegovina'), (28, 'BW', 'Botswana'), (29, 'BV', 'Bouvet Island'), (30, 'BR', 'Brazil'), (31, 'IO', 'British Indian Ocean Territory'), (32, 'BN', 'Brunei Darussalam'), (33, 'BG', 'Bulgaria'), (34, 'BF', 'Burkina Faso'), (35, 'BI', 'Burundi'), (36, 'KH', 'Cambodia'), (37, 'CM', 'Cameroon'), (38, 'CA', 'Canada'), (39, 'CV', 'Cape Verde'), (40, 'KY', 'Cayman Islands'), (41, 'CF', 'Central African Republic'), (42, 'TD', 'Chad'), (43, 'CL', 'Chile'), (44, 'CN', 'China'), (45, 'CX', 'Christmas Island'), (46, 'CC', 'Cocos (Keeling) Islands'), (47, 'CO', 'Colombia'), (48, 'KM', 'Comoros'), (49, 'CD', 'Democratic Republic of the Congo'), (50, 'CG', 'Republic of Congo'), (51, 'CK', 'Cook Islands'), (52, 'CR', 'Costa Rica'), (53, 'HR', 'Croatia (Hrvatska)'), (54, 'CU', 'Cuba'), (55, 'CY', 'Cyprus'), (56, 'CZ', 'Czech Republic'), (57, 'DK', 'Denmark'), (58, 'DJ', 'Djibouti'), (59, 'DM', 'Dominica'), (60, 'DO', 'Dominican Republic'), (61, 'TP', 'East Timor'), (62, 'EC', 'Ecuador'), (63, 'EG', 'Egypt'), (64, 'SV', 'El Salvador'), (65, 'GQ', 'Equatorial Guinea'), (66, 'ER', 'Eritrea'), (67, 'EE', 'Estonia'), (68, 'ET', 'Ethiopia'), (69, 'FK', 'Falkland Islands (Malvinas)'), (70, 'FO', 'Faroe Islands'), (71, 'FJ', 'Fiji'), (72, 'FI', 'Finland'), (73, 'FR', 'France'), (74, 'FX', 'France, Metropolitan'), (75, 'GF', 'French Guiana'), (76, 'PF', 'French Polynesia'), (77, 'TF', 'French Southern Territories'), (78, 'GA', 'Gabon'), (79, 'GM', 'Gambia'), (80, 'GE', 'Georgia'), (81, 'DE', 'Germany'), (82, 'GH', 'Ghana'), (83, 'GI', 'Gibraltar'), (84, 'GK', 'Guernsey'), (85, 'GR', 'Greece'), (86, 'GL', 'Greenland'), (87, 'GD', 'Grenada'), (88, 'GP', 'Guadeloupe'), (89, 'GU', 'Guam'), (90, 'GT', 'Guatemala'), (91, 'GN', 'Guinea'), (92, 'GW', 'Guinea-Bissau'), (93, 'GY', 'Guyana'), (94, 'HT', 'Haiti'), (95, 'HM', 'Heard and Mc Donald Islands'), (96, 'HN', 'Honduras'), (97, 'HK', 'Hong Kong'), (98, 'HU', 'Hungary'), (99, 'IS', 'Iceland'), (100, 'IN', 'India'), (101, 'IM', 'Isle of Man'), (102, 'ID', 'Indonesia'), (103, 'IR', 'Iran (Islamic Republic of)'), (104, 'IQ', 'Iraq'), (105, 'IE', 'Ireland'), (106, 'IL', 'Israel'), (107, 'IT', 'Italy'), (108, 'CI', 'Ivory Coast'), (109, 'JE', 'Jersey'), (110, 'JM', 'Jamaica'), (111, 'JP', 'Japan'), (112, 'JO', 'Jordan'), (113, 'KZ', 'Kazakhstan'), (114, 'KE', 'Kenya'), (115, 'KI', 'Kiribati'), (116, 'KP', 'Korea, Democratic People\'s Republic of'), (117, 'KR', 'Korea, Republic of'), (118, 'XK', 'Kosovo'), (119, 'KW', 'Kuwait'), (120, 'KG', 'Kyrgyzstan'), (121, 'LA', 'Lao People\'s Democratic Republic'), (122, 'LV', 'Latvia'), (123, 'LB', 'Lebanon'), (124, 'LS', 'Lesotho'), (125, 'LR', 'Liberia'), (126, 'LY', 'Libyan Arab Jamahiriya'), (127, 'LI', 'Liechtenstein'), (128, 'LT', 'Lithuania'), (129, 'LU', 'Luxembourg'), (130, 'MO', 'Macau'), (131, 'MK', 'North Macedonia'), (132, 'MG', 'Madagascar'), (133, 'MW', 'Malawi'), (134, 'MY', 'Malaysia'), (135, 'MV', 'Maldives'), (136, 'ML', 'Mali'), (137, 'MT', 'Malta'), (138, 'MH', 'Marshall Islands'), (139, 'MQ', 'Martinique'), (140, 'MR', 'Mauritania'), (141, 'MU', 'Mauritius'), (142, 'TY', 'Mayotte'), (143, 'MX', 'Mexico'), (144, 'FM', 'Micronesia, Federated States of'), (145, 'MD', 'Moldova, Republic of'), (146, 'MC', 'Monaco'), (147, 'MN', 'Mongolia'), (148, 'ME', 'Montenegro'), (149, 'MS', 'Montserrat'), (150, 'MA', 'Morocco'), (151, 'MZ', 'Mozambique'), (152, 'MM', 'Myanmar'), (153, 'NA', 'Namibia'), (154, 'NR', 'Nauru'), (155, 'NP', 'Nepal'), (156, 'NL', 'Netherlands'), (157, 'AN', 'Netherlands Antilles'), (158, 'NC', 'New Caledonia'), (159, 'NZ', 'New Zealand'), (160, 'NI', 'Nicaragua'), (161, 'NE', 'Niger'), (162, 'NG', 'Nigeria'), (163, 'NU', 'Niue'), (164, 'NF', 'Norfolk Island'), (165, 'MP', 'Northern Mariana Islands'), (166, 'NO', 'Norway'), (167, 'OM', 'Oman'), (168, 'PK', 'Pakistan'), (169, 'PW', 'Palau'), (170, 'PS', 'Palestine'), (171, 'PA', 'Panama'), (172, 'PG', 'Papua New Guinea'), (173, 'PY', 'Paraguay'), (174, 'PE', 'Peru'), (175, 'PH', 'Philippines'), (176, 'PN', 'Pitcairn'), (177, 'PL', 'Poland'), (178, 'PT', 'Portugal'), (179, 'PR', 'Puerto Rico'), (180, 'QA', 'Qatar'), (181, 'RE', 'Reunion'), (182, 'RO', 'Romania'), (183, 'RU', 'Russian Federation'), (184, 'RW', 'Rwanda'), (185, 'KN', 'Saint Kitts and Nevis'), (186, 'LC', 'Saint Lucia'), (187, 'VC', 'Saint Vincent and the Grenadines'), (188, 'WS', 'Samoa'), (189, 'SM', 'San Marino'), (190, 'ST', 'Sao Tome and Principe'), (191, 'SA', 'Saudi Arabia'), (192, 'SN', 'Senegal'), (193, 'RS', 'Serbia'), (194, 'SC', 'Seychelles'), (195, 'SL', 'Sierra Leone'), (196, 'SG', 'Singapore'), (197, 'SK', 'Slovakia'), (198, 'SI', 'Slovenia'), (199, 'SB', 'Solomon Islands'), (200, 'SO', 'Somalia'), (201, 'ZA', 'South Africa'), (202, 'GS', 'South Georgia South Sandwich Islands'), (203, 'SS', 'South Sudan'), (204, 'ES', 'Spain'), (205, 'LK', 'Sri Lanka'), (206, 'SH', 'St. Helena'), (207, 'PM', 'St. Pierre and Miquelon'), (208, 'SD', 'Sudan'), (209, 'SR', 'Suriname'), (210, 'SJ', 'Svalbard and Jan Mayen Islands'), (211, 'SZ', 'Swaziland'), (212, 'SE', 'Sweden'), (213, 'CH', 'Switzerland'), (214, 'SY', 'Syrian Arab Republic'), (215, 'TW', 'Taiwan'), (216, 'TJ', 'Tajikistan'), (217, 'TZ', 'Tanzania, United Republic of'), (218, 'TH', 'Thailand'), (219, 'TG', 'Togo'), (220, 'TK', 'Tokelau'), (221, 'TO', 'Tonga'), (222, 'TT', 'Trinidad and Tobago'), (223, 'TN', 'Tunisia'), (224, 'TR', 'Turkey'), (225, 'TM', 'Turkmenistan'), (226, 'TC', 'Turks and Caicos Islands'), (227, 'TV', 'Tuvalu'), (228, 'UG', 'Uganda'), (229, 'UA', 'Ukraine'), (230, 'AE', 'United Arab Emirates'), (231, 'GB', 'United Kingdom'), (232, 'US', 'United States'), (233, 'UM', 'United States minor outlying islands'), (234, 'UY', 'Uruguay'), (235, 'UZ', 'Uzbekistan'), (236, 'VU', 'Vanuatu'), (237, 'VA', 'Vatican City State'), (238, 'VE', 'Venezuela'), (239, 'VN', 'Vietnam'), (240, 'VG', 'Virgin Islands (British)'), (241, 'VI', 'Virgin Islands (U.S.)'), (242, 'WF', 'Wallis and Futuna Islands'), (243, 'EH', 'Western Sahara'), (244, 'YE', 'Yemen'), (245, 'ZM', 'Zambia'), (246, 'ZW', 'Zimbabwe'); -- -------------------------------------------------------- -- -- Table structure for table `customers` -- CREATE TABLE `customers` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `phone` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `gstin` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `kind_attn` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `city` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `pincode` int(11) DEFAULT NULL, `state` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `country` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `customers` -- INSERT INTO `customers` (`id`, `name`, `email`, `phone`, `gstin`, `kind_attn`, `address`, `city`, `pincode`, `state`, `country`, `created_at`, `updated_at`) VALUES (2, 'M/S.SONI POLYMERS PVT.LTD.', '<EMAIL>', '+91-712-2236463', '27AAICS4013J1ZC', 'MR.PRASHANT/SHILPI', '42,\"UTKARSH VISHAKHA\" BAJAJ NAGAR ,', 'NAGPUR', 440010, 'MAHARASHTRA', 'INDIA', '2020-05-21 15:58:35', '2020-05-21 15:58:35'), (3, 'ICICI BANK', '<EMAIL>', '+91-712-6627396', NULL, 'MR.<NAME>', 'SHRI RAM TOWER , SADAR', 'NAGPUR', 440001, 'MAHARASHTRA', 'INDIA', '2020-05-23 11:52:00', '2020-05-23 11:53:25'), (4, 'BANK OF INDIA', '<EMAIL>', '+91-0712-2546981', NULL, 'POOJA PANJWANI', 'KINGSWAY ROAD, OPP. KASTURCHAND PARK , MOHAN NAGAR', 'NAGPUR', 440001, 'MAHARASHTRA', 'INDIA', '2020-05-23 11:58:00', '2020-05-23 14:07:23'), (5, 'MPM PVT LTD', '<EMAIL>', '+91 9860025681', NULL, 'MR.<NAME>', 'M-22,HINGNA INDUSTRIAL ESTATE ,MIDC', 'NAGPUR', 440016, 'MAHARASHTRA', 'INDIA', '2020-05-23 12:38:45', '2020-05-23 12:38:45'), (6, 'MKS FLEXITUFF LIMITED', '<EMAIL>', '9021339161', ':27AALCM0517A1ZX', 'MR.TRINATH', '20-2,H.NO.526,1ST FLOOR , BHANGDIYA HOUSE ,NEAR GETWELL HOSPITAL ,DHANTOLI', 'NAGPUR', 440012, 'MAHARASHTRA', 'INDIA', '2020-05-23 12:43:17', '2020-05-23 12:43:17'), (7, 'MANMOHAN MINERALS & CHEMICALS PVT. LTD.', '<EMAIL>', '+7104-237020', NULL, 'MS.SHO<NAME>', 'J-18,MIDC INDUSTRIAL ESTATE HINGNA', 'NAGPUR', 440016, 'MAHARASHTRA', 'INDIA', '2020-05-23 12:47:19', '2020-05-23 12:47:19'), (8, 'BETA COMPUTRONICS', '<EMAIL>', '+91-9763711367', NULL, 'MR,.SANDEEP DARWHEKAR', '10,1,IT PARK ROAD,PARSODI , <NAME>', 'NAGPUR', 440022, 'MAHARASHTRA', 'INDIA', '2020-05-23 12:53:28', '2020-05-23 12:53:28'), (9, 'DIFFUSION ENGINERS LTD.', '<EMAIL>', '+91- 9765569082', NULL, 'MS.C CHITRA', 'T-5 & T-6, MIDC AREA , HINGA', 'NAGPUR', 440016, 'MAHARASHTRA', 'INDIA', '2020-05-23 13:12:16', '2020-05-23 13:12:16'), (10, 'STAR CIRCLIPS & ENGINEERING LTD.', '<EMAIL>', '+91-9371672095', NULL, 'MS.HINA THAKKAR', 'B-24,MIDC INDUSTRIAL AREA HINGNA', 'NAGPUR', 440016, 'MAHARASHTRA', 'INDIA', '2020-05-23 13:15:05', '2020-05-23 13:15:05'), (11, 'EXCEL CONTROLINKAGE PVT LTD.', '<EMAIL>', '+91 9764093551', NULL, 'N<NAME>', 'W-68 (B) MIDC INDUSTRIAL AREA , HINGNA ROAD', 'NAGPUR', 440016, 'MAHARASHTRA', 'INDIA', '2020-05-23 14:00:41', '2020-05-23 14:00:41'), (12, 'ORIENTAL BANK OF COMMERCE', '<EMAIL>', '+91-9011708166', NULL, 'MR.VIKASH', 'KINGSWAY ROAD, S.V. <NAME>', 'NAGPUR', 440001, 'MAHARASHTRA', 'INDIA', '2020-05-23 14:06:31', '2020-05-23 14:06:31'), (13, 'CLARION DRUGS LTD.', '<EMAIL>', '+91-712-2552671', NULL, 'MR.SUMANT KEWATE', 'D-8,ANMOL APARTMENTS , CLARK TOWN', NULL, 440004, 'MAHARASHTRA', 'INDIA', '2020-05-23 14:10:21', '2020-05-23 14:10:21'), (14, 'NAGPUR PYROLUSITE PVT.LTD.', '<EMAIL>', '+91-712-2424642', NULL, 'MR.SANJAY JAINARAYAN', '85, YASHWANT STADIUM DHANTOLI', 'NAGPUR', 440012, 'MAHARASHTRA', 'INDIA', '2020-05-23 14:16:02', '2020-05-23 14:16:02'), (15, 'ASSOCIATES ENGG. INDIA', '<EMAIL>', '+91-9765554236', NULL, 'MR.ATAN<NAME>', 'P 22/5, MIDC INDUSTRIAL AREA HINGNA ROAD', 'NAGPUR', 440016, 'MAHARASHTRA', 'INDIA', '2020-05-23 14:24:01', '2020-05-23 14:24:01'), (16, 'NAGPUR KRISHMA MACHINE TOOLS PVT LTD.', '<EMAIL>', '+91-9823405152', NULL, 'MR.KHETA', 'PLOT NO.U-81,HINGNA ROAD,MIDC INDUSTRIAL AREA', 'NAGPUR', 440016, 'MAHARASHTRA', 'INDIA', '2020-05-23 14:27:11', '2020-05-23 14:27:11'); -- -------------------------------------------------------- -- -- Table structure for table `data_rows` -- CREATE TABLE `data_rows` ( `id` int(10) UNSIGNED NOT NULL, `data_type_id` int(10) UNSIGNED NOT NULL, `field` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `display_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `required` tinyint(1) NOT NULL DEFAULT 0, `browse` tinyint(1) NOT NULL DEFAULT 1, `read` tinyint(1) NOT NULL DEFAULT 1, `edit` tinyint(1) NOT NULL DEFAULT 1, `add` tinyint(1) NOT NULL DEFAULT 1, `delete` tinyint(1) NOT NULL DEFAULT 1, `details` text COLLATE utf8_unicode_ci DEFAULT NULL, `order` int(11) NOT NULL DEFAULT 1 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `data_rows` -- INSERT INTO `data_rows` (`id`, `data_type_id`, `field`, `type`, `display_name`, `required`, `browse`, `read`, `edit`, `add`, `delete`, `details`, `order`) VALUES (1, 1, 'id', 'number', 'ID', 1, 0, 0, 0, 0, 0, NULL, 1), (2, 1, 'name', 'text', 'Name', 1, 1, 1, 1, 1, 1, NULL, 2), (3, 1, 'email', 'text', 'Email', 1, 1, 1, 1, 1, 1, NULL, 3), (4, 1, 'password', 'password', 'Password', 1, 0, 0, 1, 1, 0, NULL, 4), (5, 1, 'remember_token', 'text', 'Remember Token', 0, 0, 0, 0, 0, 0, NULL, 5), (6, 1, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 0, 0, 0, NULL, 6), (7, 1, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 7), (8, 1, 'avatar', 'image', 'Avatar', 0, 1, 1, 1, 1, 1, NULL, 8), (9, 1, 'user_belongsto_role_relationship', 'relationship', 'Role', 0, 1, 1, 1, 1, 0, '{\"model\":\"TCG\\\\Voyager\\\\Models\\\\Role\",\"table\":\"roles\",\"type\":\"belongsTo\",\"column\":\"role_id\",\"key\":\"id\",\"label\":\"display_name\",\"pivot_table\":\"roles\",\"pivot\":0}', 10), (10, 1, 'user_belongstomany_role_relationship', 'relationship', 'Roles', 0, 1, 1, 1, 1, 0, '{\"model\":\"TCG\\\\Voyager\\\\Models\\\\Role\",\"table\":\"roles\",\"type\":\"belongsToMany\",\"column\":\"id\",\"key\":\"id\",\"label\":\"display_name\",\"pivot_table\":\"user_roles\",\"pivot\":\"1\",\"taggable\":\"0\"}', 11), (11, 1, 'settings', 'hidden', 'Settings', 0, 0, 0, 0, 0, 0, NULL, 12), (12, 2, 'id', 'number', 'ID', 1, 0, 0, 0, 0, 0, NULL, 1), (13, 2, 'name', 'text', 'Name', 1, 1, 1, 1, 1, 1, NULL, 2), (14, 2, 'created_at', 'timestamp', 'Created At', 0, 0, 0, 0, 0, 0, NULL, 3), (15, 2, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 4), (16, 3, 'id', 'number', 'ID', 1, 0, 0, 0, 0, 0, NULL, 1), (17, 3, 'name', 'text', 'Name', 1, 1, 1, 1, 1, 1, NULL, 2), (18, 3, 'created_at', 'timestamp', 'Created At', 0, 0, 0, 0, 0, 0, NULL, 3), (19, 3, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 4), (20, 3, 'display_name', 'text', 'Display Name', 1, 1, 1, 1, 1, 1, NULL, 5), (21, 1, 'role_id', 'text', 'Role', 1, 1, 1, 1, 1, 1, NULL, 9), (22, 4, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, '{}', 1), (23, 4, 'name', 'text', 'Customer Name', 0, 1, 1, 1, 1, 1, '{}', 2), (24, 4, 'email', 'text', 'Customer Email', 0, 1, 1, 1, 1, 1, '{}', 3), (25, 4, 'phone', 'text', 'Customer Phone', 0, 1, 1, 1, 1, 1, '{}', 4), (26, 4, 'gstin', 'text', 'Gstin', 0, 1, 1, 1, 1, 1, '{}', 5), (27, 4, 'kind_attn', 'text', 'Kind Attn', 0, 0, 1, 1, 1, 1, '{}', 6), (28, 4, 'address', 'text_area', 'Address', 0, 0, 1, 1, 1, 1, '{}', 7), (29, 4, 'city', 'text', 'City', 0, 0, 1, 1, 1, 1, '{}', 8), (30, 4, 'pincode', 'text', 'Pincode', 0, 0, 1, 1, 1, 1, '{}', 9), (31, 4, 'state', 'text', 'State', 0, 0, 1, 1, 1, 1, '{}', 10), (32, 4, 'country', 'text', 'Country', 0, 0, 1, 1, 1, 1, '{}', 11), (33, 4, 'created_at', 'timestamp', 'Created At', 0, 0, 0, 1, 0, 1, '{}', 12), (34, 4, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, '{}', 13), (35, 5, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, '{}', 1), (36, 5, 'name', 'text', 'Name', 0, 1, 1, 1, 1, 1, '{}', 2), (37, 5, 'email', 'text', 'Email', 0, 1, 1, 1, 1, 1, '{}', 3), (38, 5, 'phone', 'text', 'Phone', 0, 1, 1, 1, 1, 1, '{}', 4), (39, 5, 'gstin', 'text', 'Gstin', 0, 1, 1, 1, 1, 1, '{}', 5), (40, 5, 'kind_attn', 'text', 'Kind Attn', 0, 0, 1, 1, 1, 1, '{}', 6), (41, 5, 'address', 'text_area', 'Address', 0, 1, 1, 1, 1, 1, '{}', 7), (42, 5, 'city', 'text', 'City', 0, 0, 1, 1, 1, 1, '{}', 8), (43, 5, 'pincode', 'text', 'Pincode', 0, 0, 1, 1, 1, 1, '{}', 9), (44, 5, 'state', 'text', 'State', 0, 0, 1, 1, 1, 1, '{}', 10), (45, 5, 'country', 'text', 'Country', 0, 0, 1, 1, 1, 1, '{}', 11), (46, 5, 'created_at', 'timestamp', 'Created At', 0, 0, 0, 1, 0, 1, '{}', 12), (47, 5, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, '{}', 13), (48, 8, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, '{}', 1), (49, 8, 'consignment_id', 'text', 'Consignment Id', 0, 1, 1, 1, 1, 1, '{}', 2), (50, 8, 'customer_ref', 'text', 'Customer Ref', 0, 1, 1, 1, 1, 1, '{}', 3), (51, 8, 'service', 'text', 'Service', 0, 1, 1, 1, 1, 1, '{}', 4), (52, 8, 'sender_address_id', 'text', 'Sender Address Id', 0, 0, 0, 1, 1, 1, '{}', 5), (53, 8, 'receiver_address_id', 'text', 'Receiver Address Id', 0, 0, 0, 1, 1, 1, '{}', 6), (54, 8, 'delivery_address_id', 'text', 'Delivery Address Id', 0, 0, 0, 1, 1, 1, '{}', 7), (55, 8, 'created_at', 'timestamp', 'Created At', 0, 0, 1, 1, 0, 1, '{}', 8), (56, 8, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, '{}', 9), (57, 8, 'user_id', 'text', 'User Id', 1, 0, 0, 0, 0, 0, '{}', 2), (58, 8, 'sender_acc_no', 'text', 'Sender Acc No', 1, 1, 1, 1, 1, 1, '{}', 3), (59, 9, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, '{}', 1), (60, 9, 'price', 'text', 'Price', 0, 1, 1, 1, 1, 1, '{}', 2), (61, 9, 'weight', 'text', 'Weight', 0, 1, 1, 1, 1, 1, '{}', 3), (62, 9, 'zone', 'text', 'Zone', 0, 1, 1, 1, 1, 1, '{}', 4), (63, 9, 'title', 'text', 'Title', 0, 1, 1, 1, 1, 1, '{}', 5), (64, 9, 'provider', 'text', 'Provider', 0, 1, 1, 1, 1, 1, '{}', 6), (65, 9, 'type', 'text', 'Type', 0, 1, 1, 1, 1, 1, '{}', 7), (66, 9, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 1, 0, 1, '{}', 8), (67, 9, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, '{}', 9), (68, 10, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, '{}', 1), (75, 10, 'state_code', 'text', 'State Code', 0, 1, 1, 1, 1, 1, '{\"display\":{\"width\":\"6\",\"id\":\"state_code\"}}', 4), (77, 10, 'invoice_date', 'date', 'Invoice Date', 0, 1, 1, 1, 1, 1, '{\"display\":{\"width\":\"6\",\"id\":\"invoice_date\"}}', 5), (79, 10, 'created_at', 'timestamp', 'Created At', 0, 0, 1, 1, 0, 1, '{}', 6), (80, 10, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, '{}', 8), (81, 10, 'invoice_customer_belongsto_customer_relationship', 'relationship', 'Select Customer', 0, 1, 1, 1, 1, 1, '{\"model\":\"App\\\\Customer\",\"table\":\"customers\",\"type\":\"belongsTo\",\"column\":\"customer_id\",\"key\":\"id\",\"label\":\"name\",\"pivot_table\":\"customers\",\"pivot\":\"0\",\"taggable\":\"0\"}', 2), (82, 10, 'customer_id', 'text', 'Customer Id', 0, 0, 0, 1, 1, 1, '{}', 3), (83, 10, 'gross_amount', 'text', 'Gross Amount', 0, 1, 1, 1, 1, 1, '{\"display\":{\"width\":\"3\",\"id\":\"gross_amount\"}}', 7), (84, 10, 'fuel_surcharge_index', 'text', 'Fuel Surcharge Index', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"3\",\"id\":\"fuel_surcharge_index\"}}', 9), (85, 10, 'custom_clearance', 'number', 'Custom Clearance', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"3\",\"id\":\"custom_clearnce\"},\"default\":\"0\"}', 10), (86, 10, 'oda_charges', 'number', 'ODA Charges', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"3\",\"id\":\"oda_charges\"},\"default\":\"0\"}', 11), (87, 10, 'adc_noc_charges', 'number', 'ADC NOC Charges', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"3\",\"id\":\"ad_noc_charges\"},\"default\":\"0\"}', 12), (88, 10, 'do_charges', 'number', 'DO Charges', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"3\",\"id\":\"do_charges\"},\"default\":\"0\"}', 13), (89, 10, 'non_conveyar_charges', 'number', 'Non Conveyar Charges', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"3\",\"id\":\"non_conveyar_charges\"},\"default\":\"0\"}', 14), (90, 10, 'address_correction_charges', 'number', 'Address Correction Charges', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"3\",\"id\":\"address_correction_charges\"},\"default\":\"0\"}', 15), (91, 10, 'war_surcharges', 'number', 'War Surcharges', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"3\",\"id\":\"war_surcharges\"},\"default\":\"0\"}', 16), (92, 10, 'warehousing_charges', 'number', 'Warehousing Charges', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"3\",\"id\":\"warehoising_charges\"},\"default\":\"0\"}', 17), (93, 10, 'ad_code_registration_charges', 'number', 'AD Code Registration Charges', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"3\",\"id\":\"ad_code_registrtion_charges\"},\"default\":\"0\"}', 18), (94, 10, 'air_cargo_registration_charges', 'number', 'Air Cargo Registration Charges', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"3\",\"id\":\"air_Corgo_registration\"},\"default\":\"0\"}', 19), (95, 10, 'enhanced_security_charges', 'number', 'Enhanced Security Charges', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"6\",\"id\":\"enhanced_security_charges\"},\"default\":\"0\"}', 20), (96, 10, 'c_gst', 'text', 'CGST', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"4\",\"id\":\"c_gst\"}}', 22), (97, 10, 's_gst', 'text', 'SGST', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"4\",\"id\":\"s_gst\"}}', 23), (98, 10, 'i_gst', 'text', 'IGST', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"4\",\"id\":\"i_gst\"}}', 24), (99, 10, 'freight_amount', 'number', 'Freight Amount', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"6\",\"id\":\"freight_amount\"},\"default\":\"0\"}', 25), (100, 10, 'duty_payment', 'number', 'Duty Payment', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"6\",\"id\":\"duty_payment\"},\"default\":\"0\"}', 26), (101, 10, 'net_amount', 'text', 'Net Amount', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"12\",\"id\":\"net_amount\"}}', 27), (102, 10, 'type', 'select_dropdown', 'Select Type', 0, 0, 1, 1, 1, 1, '{\"display\":{\"width\":\"6\",\"id\":\"type\"},\"default\":\"import\",\"options\":{\"import\":\"Import\",\"export\":\"Export\"}}', 21), (103, 9, 'doc', 'text', 'Doc', 0, 1, 1, 1, 1, 1, '{}', 10), (104, 9, 'service', 'text', 'Service', 0, 1, 1, 1, 1, 1, '{}', 11); -- -------------------------------------------------------- -- -- Table structure for table `data_types` -- CREATE TABLE `data_types` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `display_name_singular` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `display_name_plural` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `icon` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `model_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `policy_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `controller` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `generate_permissions` tinyint(1) NOT NULL DEFAULT 0, `server_side` tinyint(4) NOT NULL DEFAULT 0, `details` text COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `data_types` -- INSERT INTO `data_types` (`id`, `name`, `slug`, `display_name_singular`, `display_name_plural`, `icon`, `model_name`, `policy_name`, `controller`, `description`, `generate_permissions`, `server_side`, `details`, `created_at`, `updated_at`) VALUES (1, 'users', 'users', 'User', 'Users', 'voyager-person', 'TCG\\Voyager\\Models\\User', 'TCG\\Voyager\\Policies\\UserPolicy', 'TCG\\Voyager\\Http\\Controllers\\VoyagerUserController', '', 1, 0, NULL, '2019-09-16 08:38:34', '2019-09-16 08:38:34'), (2, 'menus', 'menus', 'Menu', 'Menus', 'voyager-list', 'TCG\\Voyager\\Models\\Menu', NULL, '', '', 1, 0, NULL, '2019-09-16 08:38:34', '2019-09-16 08:38:34'), (3, 'roles', 'roles', 'Role', 'Roles', 'voyager-lock', 'TCG\\Voyager\\Models\\Role', NULL, '', '', 1, 0, NULL, '2019-09-16 08:38:34', '2019-09-16 08:38:34'), (4, 'customers', 'customers', 'Customer', 'Customers', NULL, 'App\\Customer', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null,\"order_direction\":\"asc\",\"default_search_key\":null}', '2019-09-16 08:52:20', '2019-09-16 08:52:20'), (5, 'walking_customers', 'walking-customers', 'Walking Customer', 'Walking Customers', NULL, 'App\\WalkingCustomer', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null,\"order_direction\":\"asc\",\"default_search_key\":null}', '2019-09-16 09:00:10', '2019-09-16 09:00:10'), (6, 'Employees', 'employees', 'Employee', 'Employees', NULL, 'App\\Employee', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null,\"order_direction\":\"asc\",\"default_search_key\":null}', '2019-09-18 05:27:04', '2019-09-18 05:27:04'), (8, 'dockets', 'generate-docket', 'Generate Docket', 'Dockets', NULL, 'App\\Docket', NULL, 'App\\Http\\Controllers\\DocketController', NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null,\"order_direction\":\"asc\",\"default_search_key\":null,\"scope\":null}', '2019-09-18 08:13:01', '2019-09-18 20:36:46'), (9, 'prices', 'prices', 'Import Price List', 'Import Price Lists', 'voyager-double-down', 'App\\Price', NULL, NULL, NULL, 1, 1, '{\"order_column\":null,\"order_display_column\":null,\"order_direction\":\"asc\",\"default_search_key\":null,\"scope\":null}', '2019-11-09 02:53:39', '2020-04-10 09:56:51'), (10, 'invoice_customers', 'invoice-customers', 'Invoice', 'Invoices', 'voyager-file-text', 'App\\InvoiceCustomer', NULL, '\\App\\Http\\Controllers\\InvoiceController', NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null,\"order_direction\":\"asc\",\"default_search_key\":null,\"scope\":null}', '2019-11-27 20:19:02', '2019-12-04 13:36:27'); -- -------------------------------------------------------- -- -- Table structure for table `delivery_addresses` -- CREATE TABLE `delivery_addresses` ( `id` int(10) UNSIGNED NOT NULL, `cust_id` int(11) DEFAULT NULL, `zone` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `city` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `state` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `country` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `gstin` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `phone` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `delivery_addresses` -- INSERT INTO `delivery_addresses` (`id`, `cust_id`, `zone`, `name`, `address`, `city`, `state`, `country`, `gstin`, `phone`, `email`, `created_at`, `updated_at`) VALUES (13, NULL, 'Zone-1', '<NAME>', 'Bandenawaz Nagar\r\n131', 'Nagpur', 'Maharashtra', 'India', '1234567', '07776960995', '<EMAIL>', '2019-12-23 21:56:48', '2019-12-23 21:56:48'), (14, NULL, 'Zone-1', 'Faizan Aalam', 'Bandenawaz Nagar\r\n131', 'Nagpur', 'Maharashtra', 'India', '1234567', '07776960995', '<EMAIL>', '2019-12-23 21:59:16', '2019-12-23 21:59:16'), (15, NULL, 'Zone-1', 'Faizan Aalam', 'Bandenawaz Nagar\r\n131', 'Nagpur', 'Maharashtra', 'India', '1234567', '07776960995', '<EMAIL>', '2019-12-23 22:00:33', '2019-12-23 22:00:33'), (16, NULL, 'Zone-1', 'Faizan Aalam', 'Bandenawaz Nagar\r\n131', 'Nagpur', 'Maharashtra', 'India', '1234567', '07776960995', '<EMAIL>', '2019-12-23 22:04:12', '2019-12-23 22:04:12'), (17, NULL, 'Zone-1', 'Faizan Aalam', 'Bandenawaz Nagar\r\n131', 'Nagpur', 'Maharashtra', 'India', '1234567', '07776960995', '<EMAIL>', '2019-12-23 22:04:20', '2019-12-23 22:04:20'), (18, NULL, 'Zone-1', '<NAME>', 'Band<NAME>ar\r\n131', 'Nagpur', 'Maharashtra', 'India', '1234567', '07776960995', '<EMAIL>', '2019-12-23 22:04:27', '2019-12-23 22:04:27'); -- -------------------------------------------------------- -- -- Table structure for table `dockets` -- CREATE TABLE `dockets` ( `id` int(10) UNSIGNED NOT NULL, `user_id` int(11) NOT NULL, `sender_acc_no` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `consignment_id` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `customer_ref` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `service` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `sender_address_id` int(11) DEFAULT NULL, `receiver_address_id` int(11) DEFAULT NULL, `delivery_address_id` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `connection` text COLLATE utf8_unicode_ci NOT NULL, `queue` text COLLATE utf8_unicode_ci NOT NULL, `payload` longtext COLLATE utf8_unicode_ci NOT NULL, `exception` longtext COLLATE utf8_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `invoice_customers` -- CREATE TABLE `invoice_customers` ( `id` int(10) UNSIGNED NOT NULL, `state_code` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `invoice_date` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `customer_id` int(11) DEFAULT NULL, `gross_amount` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `fuel_surcharge_index` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `custom_clearance` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `oda_charges` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `adc_noc_charges` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `do_charges` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `non_conveyar_charges` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `address_correction_charges` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `war_surcharges` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `warehousing_charges` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `ad_code_registration_charges` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `air_cargo_registration_charges` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `enhanced_security_charges` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `c_gst` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `s_gst` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `i_gst` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `freight_amount` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `duty_payment` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `net_amount` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `type` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `invoice_customers` -- INSERT INTO `invoice_customers` (`id`, `state_code`, `invoice_date`, `created_at`, `updated_at`, `customer_id`, `gross_amount`, `fuel_surcharge_index`, `custom_clearance`, `oda_charges`, `adc_noc_charges`, `do_charges`, `non_conveyar_charges`, `address_correction_charges`, `war_surcharges`, `warehousing_charges`, `ad_code_registration_charges`, `air_cargo_registration_charges`, `enhanced_security_charges`, `c_gst`, `s_gst`, `i_gst`, `freight_amount`, `duty_payment`, `net_amount`, `type`) VALUES (16, NULL, NULL, '2020-06-12 13:36:48', '2020-06-12 13:36:48', NULL, NULL, NULL, '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL, '0', '0', NULL, 'export'), (17, '27', '2020-06-12', '2020-06-12 13:46:00', '2020-06-12 14:07:49', 6, '15971', '3992.75', '100', '100', '100', '100', '100', '100', '100', '100', '100', '100', '100', '1895.7375', '1895.7375', NULL, '15971', '0', '24855.225', 'import'), (18, NULL, NULL, '2020-06-13 10:30:51', '2020-06-13 10:30:51', 3, NULL, NULL, '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL, '0', '0', NULL, 'import'); -- -------------------------------------------------------- -- -- Table structure for table `invoice_items` -- CREATE TABLE `invoice_items` ( `id` int(10) UNSIGNED NOT NULL, `invoice_customer_id` int(11) NOT NULL, `consignment_no` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `refrence_no` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `booking_date` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `origin` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `destination` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `zone` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `product` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `actual_weight` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `volumetric_weight` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `chargeable_weight` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `amount` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `invoice_items` -- INSERT INTO `invoice_items` (`id`, `invoice_customer_id`, `consignment_no`, `refrence_no`, `booking_date`, `origin`, `destination`, `zone`, `product`, `actual_weight`, `volumetric_weight`, `chargeable_weight`, `amount`, `created_at`, `updated_at`) VALUES (5, 10, 'MI12340', '12345', '2019-01-01', 'AW', 'AM', 'm', 'non doc', '12', '12', '12', '10', '2019-12-06 22:30:33', '2019-12-06 22:30:33'), (6, 10, 'MI12340', '12345', '2019-12-31', 'AL', 'AL', 'zone2', 'non doc', '12', '12', '12', '99', '2019-12-06 22:30:34', '2019-12-06 22:30:34'), (7, 10, 'MI12340', '12345', '2019-01-01', 'AZ', 'BD', 'zone5', 'non doc', '12', '12', '12', '8', '2019-12-06 22:38:20', '2019-12-06 22:38:20'), (8, 11, 'MI12340', '12345', '2019-12-08', 'AF', 'AF', 'zone1', 'doc', '10', '0.3456', '10', '12', '2019-12-08 06:36:40', '2019-12-08 06:36:40'), (9, 12, 'MI12340', '12345', '2019-12-31', 'AL', 'AL', 'zone2', 'non doc', '12', '0.1134', '12', '20', '2019-12-11 13:32:41', '2019-12-11 13:32:41'), (10, 12, 'MI12341', '12345', '2019-12-31', 'AL', 'AL', 'zone2', 'non doc', '12', '0.1512', '12', '20', '2019-12-11 13:32:41', '2019-12-11 13:32:41'), (11, 12, 'MI12342', '12345', '2019-12-31', 'AL', 'AL', 'zone2', 'non doc', '12', '0.1134', '12', '30', '2019-12-11 13:32:41', '2019-12-11 13:32:41'), (12, 12, 'MI12343', '12345', '2019-12-31', 'AL', 'AL', 'zone2', 'non doc', '12', '0.1728', '12', '10', '2019-12-11 13:32:41', '2019-12-11 13:32:41'), (13, 12, 'MI12344', '12345', '2019-12-31', 'AL', 'AL', 'zone2', 'non doc', '12', '0.2944', '12', '40', '2019-12-11 13:32:41', '2019-12-11 13:32:41'), (14, 13, NULL, NULL, NULL, 'AF', 'AF', 'Zone 1', 'doc', NULL, '0', NULL, '0', '2020-06-01 22:36:29', '2020-06-01 22:36:29'), (15, 14, '123123123', '12', '2020-06-12', 'IN', 'BD', 'Zone 1', 'doc', '0.320', '0', '0.5', '2046', '2020-06-12 11:37:51', '2020-06-12 11:37:51'), (16, 15, '123123123', '12', '2020-06-12', 'IN', 'BD', 'Zone 2', 'doc', '0.20', '0', NULL, '0', '2020-06-12 11:39:48', '2020-06-12 11:39:48'), (17, 16, '123123123', '123', '2020-06-12', 'IN', 'BD', 'Zone 2', 'doc', '0.300', '0', '0.5', '900', '2020-06-12 13:36:48', '2020-06-12 13:36:48'), (18, 16, '321321321', '321', '2020-06-12', 'IN', 'BD', 'Zone 3', 'doc', '5.20', '0.2', '5.5', '3376', '2020-06-12 13:36:48', '2020-06-12 13:36:48'), (19, 17, '123123123', '123', '2020-06-12', 'IN', 'BD', 'Zone 2', 'doc', '0.300', '0', '0.5', '900', '2020-06-12 13:46:29', '2020-06-12 13:46:29'), (20, 17, '321321321', '321', '2020-06-12', 'IN', 'BD', 'Zone 2', 'non doc', '5.2', '0.3456', '5.5', '3292', '2020-06-12 13:46:29', '2020-06-12 13:46:29'), (21, 17, '159159159', '159', '2020-06-12', 'IN', 'BD', 'Zone 4', 'non doc', '5', '18.225', '18.5', '6816', '2020-06-12 13:46:29', '2020-06-12 13:46:29'), (22, 17, '951951951', '951', '2020-06-12', 'IN', 'BD', 'Zone 2', 'non doc', '10', '0.3456', '10', '7312', '2020-06-12 13:46:29', '2020-06-12 13:46:29'), (23, 18, '123123123', '123', '2020-06-13', 'IN', 'BD', 'Zone 2', 'doc', '0.2', '0', '0.5', '0', '2020-06-13 10:30:51', '2020-06-13 10:30:51'); -- -------------------------------------------------------- -- -- Table structure for table `menus` -- CREATE TABLE `menus` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `menus` -- INSERT INTO `menus` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'admin', '2019-09-16 08:38:35', '2019-09-16 08:38:35'); -- -------------------------------------------------------- -- -- Table structure for table `menu_items` -- CREATE TABLE `menu_items` ( `id` int(10) UNSIGNED NOT NULL, `menu_id` int(10) UNSIGNED DEFAULT NULL, `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `target` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '_self', `icon_class` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `color` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `parent_id` int(11) DEFAULT NULL, `order` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `route` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `parameters` text COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `menu_items` -- INSERT INTO `menu_items` (`id`, `menu_id`, `title`, `url`, `target`, `icon_class`, `color`, `parent_id`, `order`, `created_at`, `updated_at`, `route`, `parameters`) VALUES (1, 1, 'Dashboard', '', '_self', 'voyager-boat', NULL, NULL, 1, '2019-09-16 08:38:35', '2019-09-16 08:38:35', 'voyager.dashboard', NULL), (2, 1, 'Media', '', '_self', 'voyager-images', NULL, NULL, 10, '2019-09-16 08:38:35', '2019-11-27 20:19:22', 'voyager.media.index', NULL), (3, 1, 'Users', '', '_self', 'voyager-person', NULL, NULL, 9, '2019-09-16 08:38:35', '2019-11-27 20:19:22', 'voyager.users.index', NULL), (4, 1, 'Roles', '', '_self', 'voyager-lock', NULL, NULL, 8, '2019-09-16 08:38:36', '2019-11-27 20:19:22', 'voyager.roles.index', NULL), (5, 1, 'Tools', '', '_self', 'voyager-tools', NULL, NULL, 11, '2019-09-16 08:38:36', '2019-11-27 20:19:23', NULL, NULL), (6, 1, 'Menu Builder', '', '_self', 'voyager-list', NULL, 5, 1, '2019-09-16 08:38:36', '2019-09-16 08:52:33', 'voyager.menus.index', NULL), (7, 1, 'Database', '', '_self', 'voyager-data', NULL, 5, 2, '2019-09-16 08:38:36', '2019-09-16 08:52:34', 'voyager.database.index', NULL), (8, 1, 'Compass', '', '_self', 'voyager-compass', NULL, 5, 3, '2019-09-16 08:38:36', '2019-09-16 08:52:34', 'voyager.compass.index', NULL), (9, 1, 'BREAD', '', '_self', 'voyager-bread', NULL, 5, 4, '2019-09-16 08:38:36', '2019-09-16 08:52:34', 'voyager.bread.index', NULL), (10, 1, 'Settings', '', '_self', 'voyager-settings', NULL, NULL, 12, '2019-09-16 08:38:36', '2019-11-27 20:19:23', 'voyager.settings.index', NULL), (11, 1, 'Hooks', '', '_self', 'voyager-hook', NULL, 5, 5, '2019-09-16 08:38:40', '2019-09-16 08:52:34', 'voyager.hooks', NULL), (12, 1, 'Customers', '', '_self', 'voyager-people', '#000000', NULL, 4, '2019-09-16 08:52:21', '2019-11-27 20:19:22', 'voyager.customers.index', 'null'), (13, 1, 'Walking Customers', '', '_self', 'voyager-github', '#000000', NULL, 5, '2019-09-16 09:00:10', '2019-11-27 20:19:22', 'voyager.walking-customers.index', 'null'), (15, 1, 'Dockets', '', '_self', 'voyager-pen', '#000000', NULL, 2, '2019-09-18 08:13:02', '2019-09-18 08:13:41', 'voyager.generate-docket.index', 'null'), (18, 1, 'Invoices', '/admin/invoices', '_self', 'voyager-certificate', '#000000', NULL, 7, '2019-09-28 05:40:56', '2019-11-27 20:19:22', NULL, ''), (19, 1, 'Import Price Lists', '', '_self', 'voyager-double-down', NULL, NULL, 6, '2019-11-09 02:53:39', '2019-11-27 20:19:22', 'voyager.prices.index', NULL), (20, 1, 'Invoices', '', '_self', 'voyager-file-text', NULL, NULL, 3, '2019-11-27 20:19:03', '2019-11-27 20:19:22', 'voyager.invoice-customers.index', NULL); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2016_01_01_000000_add_voyager_user_fields', 2), (5, '2016_01_01_000000_create_data_types_table', 2), (6, '2016_05_19_173453_create_menu_table', 2), (7, '2016_10_21_190000_create_roles_table', 2), (8, '2016_10_21_190000_create_settings_table', 2), (9, '2016_11_30_135954_create_permission_table', 2), (10, '2016_11_30_141208_create_permission_role_table', 2), (11, '2016_12_26_201236_data_types__add__server_side', 2), (12, '2017_01_13_000000_add_route_to_menu_items_table', 2), (13, '2017_01_14_005015_create_translations_table', 2), (14, '2017_01_15_000000_make_table_name_nullable_in_permissions_table', 2), (15, '2017_03_06_000000_add_controller_to_data_types_table', 2), (16, '2017_04_21_000000_add_order_to_data_rows_table', 2), (17, '2017_07_05_210000_add_policyname_to_data_types_table', 2), (18, '2017_08_05_000000_add_group_to_settings_table', 2), (19, '2017_11_26_013050_add_user_role_relationship', 2), (20, '2017_11_26_015000_create_user_roles_table', 2), (21, '2018_03_11_000000_add_user_settings', 2), (22, '2018_03_14_000000_add_details_to_data_types_table', 2), (23, '2018_03_16_000000_make_settings_value_nullable', 2); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `permissions` -- CREATE TABLE `permissions` ( `id` bigint(20) UNSIGNED NOT NULL, `key` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `table_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `permissions` -- INSERT INTO `permissions` (`id`, `key`, `table_name`, `created_at`, `updated_at`) VALUES (1, 'browse_admin', NULL, '2019-09-16 08:38:36', '2019-09-16 08:38:36'), (2, 'browse_bread', NULL, '2019-09-16 08:38:36', '2019-09-16 08:38:36'), (3, 'browse_database', NULL, '2019-09-16 08:38:36', '2019-09-16 08:38:36'), (4, 'browse_media', NULL, '2019-09-16 08:38:36', '2019-09-16 08:38:36'), (5, 'browse_compass', NULL, '2019-09-16 08:38:36', '2019-09-16 08:38:36'), (6, 'browse_menus', 'menus', '2019-09-16 08:38:36', '2019-09-16 08:38:36'), (7, 'read_menus', 'menus', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (8, 'edit_menus', 'menus', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (9, 'add_menus', 'menus', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (10, 'delete_menus', 'menus', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (11, 'browse_roles', 'roles', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (12, 'read_roles', 'roles', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (13, 'edit_roles', 'roles', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (14, 'add_roles', 'roles', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (15, 'delete_roles', 'roles', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (16, 'browse_users', 'users', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (17, 'read_users', 'users', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (18, 'edit_users', 'users', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (19, 'add_users', 'users', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (20, 'delete_users', 'users', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (21, 'browse_settings', 'settings', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (22, 'read_settings', 'settings', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (23, 'edit_settings', 'settings', '2019-09-16 08:38:37', '2019-09-16 08:38:37'), (24, 'add_settings', 'settings', '2019-09-16 08:38:38', '2019-09-16 08:38:38'), (25, 'delete_settings', 'settings', '2019-09-16 08:38:38', '2019-09-16 08:38:38'), (26, 'browse_hooks', NULL, '2019-09-16 08:38:40', '2019-09-16 08:38:40'), (27, 'browse_customers', 'customers', '2019-09-16 08:52:21', '2019-09-16 08:52:21'), (28, 'read_customers', 'customers', '2019-09-16 08:52:21', '2019-09-16 08:52:21'), (29, 'edit_customers', 'customers', '2019-09-16 08:52:21', '2019-09-16 08:52:21'), (30, 'add_customers', 'customers', '2019-09-16 08:52:21', '2019-09-16 08:52:21'), (31, 'delete_customers', 'customers', '2019-09-16 08:52:21', '2019-09-16 08:52:21'), (32, 'browse_walking_customers', 'walking_customers', '2019-09-16 09:00:10', '2019-09-16 09:00:10'), (33, 'read_walking_customers', 'walking_customers', '2019-09-16 09:00:10', '2019-09-16 09:00:10'), (34, 'edit_walking_customers', 'walking_customers', '2019-09-16 09:00:10', '2019-09-16 09:00:10'), (35, 'add_walking_customers', 'walking_customers', '2019-09-16 09:00:10', '2019-09-16 09:00:10'), (36, 'delete_walking_customers', 'walking_customers', '2019-09-16 09:00:10', '2019-09-16 09:00:10'), (37, 'browse_Employees', 'Employees', '2019-09-18 05:27:04', '2019-09-18 05:27:04'), (38, 'read_Employees', 'Employees', '2019-09-18 05:27:04', '2019-09-18 05:27:04'), (39, 'edit_Employees', 'Employees', '2019-09-18 05:27:04', '2019-09-18 05:27:04'), (40, 'add_Employees', 'Employees', '2019-09-18 05:27:04', '2019-09-18 05:27:04'), (41, 'delete_Employees', 'Employees', '2019-09-18 05:27:04', '2019-09-18 05:27:04'), (42, 'browse_dockets', 'dockets', '2019-09-18 08:13:01', '2019-09-18 08:13:01'), (43, 'read_dockets', 'dockets', '2019-09-18 08:13:01', '2019-09-18 08:13:01'), (44, 'edit_dockets', 'dockets', '2019-09-18 08:13:02', '2019-09-18 08:13:02'), (45, 'add_dockets', 'dockets', '2019-09-18 08:13:02', '2019-09-18 08:13:02'), (46, 'delete_dockets', 'dockets', '2019-09-18 08:13:02', '2019-09-18 08:13:02'), (47, 'browse_prices', 'prices', '2019-11-09 02:53:39', '2019-11-09 02:53:39'), (48, 'read_prices', 'prices', '2019-11-09 02:53:39', '2019-11-09 02:53:39'), (49, 'edit_prices', 'prices', '2019-11-09 02:53:39', '2019-11-09 02:53:39'), (50, 'add_prices', 'prices', '2019-11-09 02:53:39', '2019-11-09 02:53:39'), (51, 'delete_prices', 'prices', '2019-11-09 02:53:39', '2019-11-09 02:53:39'), (52, 'browse_invoice_customers', 'invoice_customers', '2019-11-27 20:19:03', '2019-11-27 20:19:03'), (53, 'read_invoice_customers', 'invoice_customers', '2019-11-27 20:19:03', '2019-11-27 20:19:03'), (54, 'edit_invoice_customers', 'invoice_customers', '2019-11-27 20:19:03', '2019-11-27 20:19:03'), (55, 'add_invoice_customers', 'invoice_customers', '2019-11-27 20:19:03', '2019-11-27 20:19:03'), (56, 'delete_invoice_customers', 'invoice_customers', '2019-11-27 20:19:03', '2019-11-27 20:19:03'); -- -------------------------------------------------------- -- -- Table structure for table `permission_role` -- CREATE TABLE `permission_role` ( `permission_id` bigint(20) UNSIGNED NOT NULL, `role_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `permission_role` -- INSERT INTO `permission_role` (`permission_id`, `role_id`) VALUES (1, 1), (1, 2), (1, 3), (2, 1), (3, 1), (4, 1), (5, 1), (6, 1), (7, 1), (8, 1), (9, 1), (10, 1), (11, 1), (12, 1), (13, 1), (14, 1), (15, 1), (16, 1), (16, 2), (16, 3), (17, 1), (17, 2), (17, 3), (18, 1), (18, 2), (18, 3), (19, 1), (19, 2), (19, 3), (20, 1), (20, 2), (20, 3), (21, 1), (21, 2), (22, 1), (22, 2), (23, 1), (23, 2), (24, 1), (25, 1), (26, 1), (27, 1), (27, 2), (27, 3), (28, 1), (28, 2), (28, 3), (29, 1), (29, 2), (29, 3), (30, 1), (30, 2), (30, 3), (31, 1), (31, 2), (31, 3), (32, 1), (32, 2), (32, 3), (33, 1), (33, 2), (33, 3), (34, 1), (34, 2), (34, 3), (35, 1), (35, 2), (35, 3), (36, 1), (36, 2), (36, 3), (37, 1), (37, 2), (38, 1), (38, 2), (39, 1), (39, 2), (40, 1), (40, 2), (41, 1), (41, 2), (42, 1), (42, 2), (42, 3), (43, 1), (43, 2), (43, 3), (44, 1), (44, 2), (44, 3), (45, 1), (45, 2), (45, 3), (46, 1), (46, 2), (46, 3), (47, 1), (47, 2), (47, 3), (48, 1), (48, 2), (48, 3), (49, 1), (49, 2), (49, 3), (50, 1), (50, 2), (50, 3), (51, 1), (51, 2), (51, 3), (52, 1), (53, 1), (54, 1), (55, 1), (56, 1); -- -------------------------------------------------------- -- -- Table structure for table `prices` -- CREATE TABLE `prices` ( `id` int(10) UNSIGNED NOT NULL, `price` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `weight` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `zone` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `title` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `provider` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `type` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `doc` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `service` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `prices_2` -- CREATE TABLE `prices_2` ( `id` int(10) UNSIGNED NOT NULL, `key` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `value` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `type` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `prices_2` -- INSERT INTO `prices_2` (`id`, `key`, `value`, `type`, `created_at`, `updated_at`) VALUES (739, 'import-du2-1', '283', 'import', '2019-09-24 06:54:09', '2019-09-24 08:25:03'), (740, 'import-du2-2', '123', 'import', '2019-09-24 06:54:09', '2019-09-28 08:24:59'), (741, 'import-du2-3', '133', 'import', '2019-09-24 06:54:09', '2019-09-28 08:24:59'), (742, 'import-du2-4', '233', 'import', '2019-09-24 06:54:10', '2019-09-28 08:24:59'), (743, 'import-du2-5', '222', 'import', '2019-09-24 06:54:10', '2019-09-28 08:24:59'), (744, 'import-du2-6', '233', 'import', '2019-09-24 06:54:10', '2019-09-28 08:25:00'), (745, 'import-du2-7', '222', 'import', '2019-09-24 06:54:10', '2019-09-28 08:25:00'), (746, 'import-du2-8', '222', 'import', '2019-09-24 06:54:10', '2019-09-28 08:25:00'), (747, 'import-du2-9', '234', 'import', '2019-09-24 06:54:10', '2019-09-28 08:25:00'), (748, 'import-du2-10', NULL, 'import', '2019-09-24 06:54:10', '2019-09-24 06:54:10'), (749, 'import-du2-11', NULL, 'import', '2019-09-24 06:54:10', '2019-09-24 06:54:10'), (750, 'import-du2-12', NULL, 'import', '2019-09-24 06:54:10', '2019-09-24 06:54:10'), (751, 'import-du2-13', NULL, 'import', '2019-09-24 06:54:11', '2019-09-24 06:54:11'), (752, 'import-du2-14', NULL, 'import', '2019-09-24 06:54:11', '2019-09-24 06:54:11'), (753, 'import-du2-15', NULL, 'import', '2019-09-24 06:54:11', '2019-09-24 06:54:11'), (754, 'import-du2-16', NULL, 'import', '2019-09-24 06:54:11', '2019-09-24 06:54:11'), (755, 'import-du2-17', NULL, 'import', '2019-09-24 06:54:11', '2019-09-24 06:54:11'), (756, 'import-du2-18', NULL, 'import', '2019-09-24 06:54:11', '2019-09-24 06:54:11'), (757, 'import-du2-19', NULL, 'import', '2019-09-24 06:54:11', '2019-09-24 06:54:11'), (758, 'import-du2-20', NULL, 'import', '2019-09-24 06:54:11', '2019-09-24 06:54:11'), (759, 'import-du2-21', NULL, 'import', '2019-09-24 06:54:11', '2019-09-24 06:54:11'), (760, 'import-du2-22', NULL, 'import', '2019-09-24 06:54:12', '2019-09-24 06:54:12'), (761, 'import-du2-23', NULL, 'import', '2019-09-24 06:54:12', '2019-09-24 06:54:12'), (762, 'import-du2-24', NULL, 'import', '2019-09-24 06:54:12', '2019-09-24 06:54:12'), (763, 'import-du2-25', NULL, 'import', '2019-09-24 06:54:12', '2019-09-24 06:54:12'), (764, 'import-du2-26', NULL, 'import', '2019-09-24 06:54:12', '2019-09-24 06:54:12'), (765, 'import-du2-27', NULL, 'import', '2019-09-24 06:54:12', '2019-09-24 06:54:12'), (766, 'import-du2-28', NULL, 'import', '2019-09-24 06:54:12', '2019-09-24 06:54:12'), (767, 'import-du2-29', NULL, 'import', '2019-09-24 06:54:12', '2019-09-24 06:54:12'), (768, 'import-du2-30', NULL, 'import', '2019-09-24 06:54:12', '2019-09-24 06:54:12'), (769, 'import-du2-31', NULL, 'import', '2019-09-24 06:54:13', '2019-09-24 06:54:13'), (770, 'import-du2-32', NULL, 'import', '2019-09-24 06:54:13', '2019-09-24 06:54:13'), (771, 'import-du2-33', NULL, 'import', '2019-09-24 06:54:13', '2019-09-24 06:54:13'), (772, 'import-du2-34', NULL, 'import', '2019-09-24 06:54:13', '2019-09-24 06:54:13'), (773, 'import-du2-35', NULL, 'import', '2019-09-24 06:54:13', '2019-09-24 06:54:13'), (774, 'import-du2-36', NULL, 'import', '2019-09-24 06:54:13', '2019-09-24 06:54:13'), (775, 'import-du2-37', '', 'import', '2019-09-24 06:54:14', '2019-09-24 06:54:14'), (776, 'import-du2-38', '', 'import', '2019-09-24 06:54:14', '2019-09-24 06:54:14'), (777, 'import-du2-39', '', 'import', '2019-09-24 06:54:14', '2019-09-24 06:54:14'), (778, 'import-du2-40', '', 'import', '2019-09-24 06:54:14', '2019-09-24 06:54:14'), (779, 'import-du2-41', '', 'import', '2019-09-24 06:54:14', '2019-09-24 06:54:15'), (780, 'import-du2-42', '', 'import', '2019-09-24 06:54:15', '2019-09-24 06:54:15'), (781, 'import-du2-43', '', 'import', '2019-09-24 06:54:15', '2019-09-24 06:54:15'), (782, 'import-du2-44', '', 'import', '2019-09-24 06:54:15', '2019-09-24 06:54:15'), (783, 'import-du2-45', '', 'import', '2019-09-24 06:54:15', '2019-09-24 06:54:15'), (784, 'import-nd2-1', NULL, 'import', '2019-09-24 06:54:15', '2019-09-24 06:54:15'), (785, 'import-nd2-2', NULL, 'import', '2019-09-24 06:54:15', '2019-09-24 06:54:15'), (786, 'import-nd2-3', NULL, 'import', '2019-09-24 06:54:15', '2019-09-24 06:54:15'), (787, 'import-nd2-4', NULL, 'import', '2019-09-24 06:54:15', '2019-09-24 06:54:15'), (788, 'import-nd2-5', NULL, 'import', '2019-09-24 06:54:16', '2019-09-24 06:54:16'), (789, 'import-nd2-6', NULL, 'import', '2019-09-24 06:54:16', '2019-09-24 06:54:16'), (790, 'import-nd2-7', NULL, 'import', '2019-09-24 06:54:16', '2019-09-24 06:54:16'), (791, 'import-nd2-8', NULL, 'import', '2019-09-24 06:54:16', '2019-09-24 06:54:16'), (792, 'import-nd2-9', NULL, 'import', '2019-09-24 06:54:16', '2019-09-24 06:54:16'), (793, 'import-nd2-10', NULL, 'import', '2019-09-24 06:54:16', '2019-09-24 06:54:16'), (794, 'import-nd2-11', NULL, 'import', '2019-09-24 06:54:16', '2019-09-24 06:54:16'), (795, 'import-nd2-12', NULL, 'import', '2019-09-24 06:54:16', '2019-09-24 06:54:16'), (796, 'import-nd2-13', NULL, 'import', '2019-09-24 06:54:17', '2019-09-24 06:54:17'), (797, 'import-nd2-14', NULL, 'import', '2019-09-24 06:54:17', '2019-09-24 06:54:17'), (798, 'import-nd2-15', NULL, 'import', '2019-09-24 06:54:17', '2019-09-24 06:54:17'), (799, 'import-nd2-16', NULL, 'import', '2019-09-24 06:54:17', '2019-09-24 06:54:17'), (800, 'import-nd2-17', NULL, 'import', '2019-09-24 06:54:17', '2019-09-24 06:54:17'), (801, 'import-nd2-18', NULL, 'import', '2019-09-24 06:54:17', '2019-09-24 06:54:18'), (802, 'import-nd2-19', NULL, 'import', '2019-09-24 06:54:18', '2019-09-24 06:54:18'), (803, 'import-nd2-20', NULL, 'import', '2019-09-24 06:54:18', '2019-09-24 06:54:18'), (804, 'import-nd2-21', NULL, 'import', '2019-09-24 06:54:18', '2019-09-24 06:54:18'), (805, 'import-nd2-22', NULL, 'import', '2019-09-24 06:54:18', '2019-09-24 06:54:18'), (806, 'import-nd2-23', NULL, 'import', '2019-09-24 06:54:18', '2019-09-24 06:54:18'), (807, 'import-nd2-24', NULL, 'import', '2019-09-24 06:54:18', '2019-09-24 06:54:18'), (808, 'import-nd2-25', NULL, 'import', '2019-09-24 06:54:18', '2019-09-24 06:54:18'), (809, 'import-nd2-26', NULL, 'import', '2019-09-24 06:54:18', '2019-09-24 06:54:18'), (810, 'import-nd2-27', NULL, 'import', '2019-09-24 06:54:18', '2019-09-24 06:54:19'), (811, 'import-nd2-28', NULL, 'import', '2019-09-24 06:54:19', '2019-09-24 06:54:19'), (812, 'import-nd2-29', NULL, 'import', '2019-09-24 06:54:19', '2019-09-24 06:54:19'), (813, 'import-nd2-30', NULL, 'import', '2019-09-24 06:54:19', '2019-09-24 06:54:19'), (814, 'import-nd2-31', NULL, 'import', '2019-09-24 06:54:19', '2019-09-24 06:54:19'), (815, 'import-nd2-32', NULL, 'import', '2019-09-24 06:54:19', '2019-09-24 06:54:19'), (816, 'import-nd2-33', NULL, 'import', '2019-09-24 06:54:19', '2019-09-24 06:54:20'), (817, 'import-nd2-34', NULL, 'import', '2019-09-24 06:54:20', '2019-09-24 06:54:20'), (818, 'import-nd2-35', NULL, 'import', '2019-09-24 06:54:20', '2019-09-24 06:54:20'), (819, 'import-nd2-36', NULL, 'import', '2019-09-24 06:54:20', '2019-09-24 06:54:20'), (820, 'import-nd2-37', NULL, 'import', '2019-09-24 06:54:20', '2019-09-24 06:54:20'), (821, 'import-nd2-38', NULL, 'import', '2019-09-24 06:54:20', '2019-09-24 06:54:20'), (822, 'import-nd2-39', NULL, 'import', '2019-09-24 06:54:20', '2019-09-24 06:54:20'), (823, 'import-nd2-40', NULL, 'import', '2019-09-24 06:54:20', '2019-09-24 06:54:21'), (824, 'import-nd2-41', NULL, 'import', '2019-09-24 06:54:21', '2019-09-24 06:54:21'), (825, 'import-nd2-42', NULL, 'import', '2019-09-24 06:54:21', '2019-09-24 06:54:21'), (826, 'import-nd2-43', NULL, 'import', '2019-09-24 06:54:21', '2019-09-24 06:54:21'), (827, 'import-nd2-44', NULL, 'import', '2019-09-24 06:54:21', '2019-09-24 06:54:21'), (828, 'import-nd2-45', NULL, 'import', '2019-09-24 06:54:21', '2019-09-24 06:54:21'), (829, 'import-nd2-46', NULL, 'import', '2019-09-24 06:54:21', '2019-09-24 06:54:21'), (830, 'import-nd2-47', NULL, 'import', '2019-09-24 06:54:21', '2019-09-24 06:54:21'), (831, 'import-nd2-48', NULL, 'import', '2019-09-24 06:54:21', '2019-09-24 06:54:21'), (832, 'import-nd2-49', NULL, 'import', '2019-09-24 06:54:21', '2019-09-24 06:54:22'), (833, 'import-nd2-50', NULL, 'import', '2019-09-24 06:54:22', '2019-09-24 06:54:22'), (834, 'import-nd2-51', NULL, 'import', '2019-09-24 06:54:22', '2019-09-24 06:54:22'), (835, 'import-nd2-52', NULL, 'import', '2019-09-24 06:54:22', '2019-09-24 06:54:22'), (836, 'import-nd2-53', NULL, 'import', '2019-09-24 06:54:22', '2019-09-24 06:54:22'), (837, 'import-nd2-54', NULL, 'import', '2019-09-24 06:54:22', '2019-09-24 06:54:22'), (838, 'import-nd2-55', NULL, 'import', '2019-09-24 06:54:22', '2019-09-24 06:54:22'), (839, 'import-nd2-56', NULL, 'import', '2019-09-24 06:54:22', '2019-09-24 06:54:22'), (840, 'import-nd2-57', NULL, 'import', '2019-09-24 06:54:22', '2019-09-24 06:54:22'), (841, 'import-nd2-58', NULL, 'import', '2019-09-24 06:54:23', '2019-09-24 06:54:23'), (842, 'import-nd2-59', NULL, 'import', '2019-09-24 06:54:23', '2019-09-24 06:54:23'), (843, 'import-nd2-60', NULL, 'import', '2019-09-24 06:54:23', '2019-09-24 06:54:23'), (844, 'import-nd2-61', NULL, 'import', '2019-09-24 06:54:23', '2019-09-24 06:54:23'), (845, 'import-nd2-62', NULL, 'import', '2019-09-24 06:54:23', '2019-09-24 06:54:23'), (846, 'import-nd2-63', NULL, 'import', '2019-09-24 06:54:23', '2019-09-24 06:54:23'), (847, 'import-nd2-64', NULL, 'import', '2019-09-24 06:54:23', '2019-09-24 06:54:23'), (848, 'import-nd2-65', NULL, 'import', '2019-09-24 06:54:23', '2019-09-24 06:54:23'), (849, 'import-nd2-66', NULL, 'import', '2019-09-24 06:54:23', '2019-09-24 06:54:23'), (850, 'import-nd2-67', NULL, 'import', '2019-09-24 06:54:23', '2019-09-24 06:54:24'), (851, 'import-nd2-68', NULL, 'import', '2019-09-24 06:54:24', '2019-09-24 06:54:24'), (852, 'import-nd2-69', NULL, 'import', '2019-09-24 06:54:24', '2019-09-24 06:54:24'), (853, 'import-nd2-70', NULL, 'import', '2019-09-24 06:54:24', '2019-09-24 06:54:24'), (854, 'import-nd2-71', NULL, 'import', '2019-09-24 06:54:24', '2019-09-24 06:54:24'), (855, 'import-nd2-72', NULL, 'import', '2019-09-24 06:54:24', '2019-09-24 06:54:24'), (856, 'import-nd2-73', NULL, 'import', '2019-09-24 06:54:24', '2019-09-24 06:54:24'), (857, 'import-nd2-74', NULL, 'import', '2019-09-24 06:54:24', '2019-09-24 06:54:24'), (858, 'import-nd2-75', NULL, 'import', '2019-09-24 06:54:24', '2019-09-24 06:54:25'), (859, 'import-nd2-76', NULL, 'import', '2019-09-24 06:54:25', '2019-09-24 06:54:25'), (860, 'import-nd2-77', NULL, 'import', '2019-09-24 06:54:25', '2019-09-24 06:54:25'), (861, 'import-nd2-78', NULL, 'import', '2019-09-24 06:54:25', '2019-09-24 06:54:25'), (862, 'import-nd2-79', NULL, 'import', '2019-09-24 06:54:25', '2019-09-24 06:54:25'), (863, 'import-nd2-80', NULL, 'import', '2019-09-24 06:54:25', '2019-09-24 06:54:25'), (864, 'import-nd2-81', NULL, 'import', '2019-09-24 06:54:25', '2019-09-24 06:54:25'), (865, 'import-nd2-82', NULL, 'import', '2019-09-24 06:54:25', '2019-09-24 06:54:25'), (866, 'import-nd2-83', NULL, 'import', '2019-09-24 06:54:25', '2019-09-24 06:54:25'), (867, 'import-nd2-84', NULL, 'import', '2019-09-24 06:54:25', '2019-09-24 06:54:26'), (868, 'import-nd2-85', NULL, 'import', '2019-09-24 06:54:26', '2019-09-24 06:54:26'), (869, 'import-nd2-86', NULL, 'import', '2019-09-24 06:54:26', '2019-09-24 06:54:26'), (870, 'import-nd2-87', NULL, 'import', '2019-09-24 06:54:26', '2019-09-24 06:54:26'), (871, 'import-nd2-88', NULL, 'import', '2019-09-24 06:54:26', '2019-09-24 06:54:26'), (872, 'import-nd2-89', NULL, 'import', '2019-09-24 06:54:26', '2019-09-24 06:54:26'), (873, 'import-nd2-90', NULL, 'import', '2019-09-24 06:54:26', '2019-09-24 06:54:26'), (874, 'import-nd2-91', NULL, 'import', '2019-09-24 06:54:26', '2019-09-24 06:54:26'), (875, 'import-nd2-92', NULL, 'import', '2019-09-24 06:54:26', '2019-09-24 06:54:26'), (876, 'import-nd2-93', NULL, 'import', '2019-09-24 06:54:26', '2019-09-24 06:54:26'), (877, 'import-nd2-94', NULL, 'import', '2019-09-24 06:54:26', '2019-09-24 06:54:27'), (878, 'import-nd2-95', NULL, 'import', '2019-09-24 06:54:27', '2019-09-24 06:54:27'), (879, 'import-nd2-96', NULL, 'import', '2019-09-24 06:54:27', '2019-09-24 06:54:27'), (880, 'import-nd2-97', NULL, 'import', '2019-09-24 06:54:27', '2019-09-24 06:54:27'), (881, 'import-nd2-98', NULL, 'import', '2019-09-24 06:54:27', '2019-09-24 06:54:27'), (882, 'import-nd2-99', NULL, 'import', '2019-09-24 06:54:27', '2019-09-24 06:54:27'), (883, 'import-nd2-100', NULL, 'import', '2019-09-24 06:54:28', '2019-09-24 06:54:28'), (884, 'import-nd2-101', NULL, 'import', '2019-09-24 06:54:28', '2019-09-24 06:54:28'), (885, 'import-nd2-102', NULL, 'import', '2019-09-24 06:54:28', '2019-09-24 06:54:28'), (886, 'import-nd2-103', NULL, 'import', '2019-09-24 06:54:28', '2019-09-24 06:54:28'), (887, 'import-nd2-104', NULL, 'import', '2019-09-24 06:54:28', '2019-09-24 06:54:28'), (888, 'import-nd2-105', NULL, 'import', '2019-09-24 06:54:28', '2019-09-24 06:54:28'), (889, 'import-nd2-106', NULL, 'import', '2019-09-24 06:54:28', '2019-09-24 06:54:28'), (890, 'import-nd2-107', NULL, 'import', '2019-09-24 06:54:28', '2019-09-24 06:54:28'), (891, 'import-nd2-108', NULL, 'import', '2019-09-24 06:54:29', '2019-09-24 06:54:29'), (892, 'import-nd2-109', NULL, 'import', '2019-09-24 06:54:29', '2019-09-24 06:54:29'), (893, 'import-nd2-110', NULL, 'import', '2019-09-24 06:54:29', '2019-09-24 06:54:29'), (894, 'import-nd2-111', NULL, 'import', '2019-09-24 06:54:29', '2019-09-24 06:54:29'), (895, 'import-nd2-112', NULL, 'import', '2019-09-24 06:54:29', '2019-09-24 06:54:29'), (896, 'import-nd2-113', NULL, 'import', '2019-09-24 06:54:30', '2019-09-24 06:54:30'), (897, 'import-nd2-114', NULL, 'import', '2019-09-24 06:54:30', '2019-09-24 06:54:30'), (898, 'import-nd2-115', NULL, 'import', '2019-09-24 06:54:30', '2019-09-24 06:54:30'), (899, 'import-nd2-116', NULL, 'import', '2019-09-24 06:54:30', '2019-09-24 06:54:30'), (900, 'import-nd2-117', NULL, 'import', '2019-09-24 06:54:30', '2019-09-24 06:54:30'), (901, 'import-nd2-118', NULL, 'import', '2019-09-24 06:54:30', '2019-09-24 06:54:30'), (902, 'import-nd2-119', NULL, 'import', '2019-09-24 06:54:31', '2019-09-24 06:54:31'), (903, 'import-nd2-120', NULL, 'import', '2019-09-24 06:54:31', '2019-09-24 06:54:31'), (904, 'import-nd2-121', NULL, 'import', '2019-09-24 06:54:31', '2019-09-24 06:54:31'), (905, 'import-nd2-122', NULL, 'import', '2019-09-24 06:54:31', '2019-09-24 06:54:31'), (906, 'import-nd2-123', NULL, 'import', '2019-09-24 06:54:31', '2019-09-24 06:54:31'), (907, 'import-nd2-124', NULL, 'import', '2019-09-24 06:54:31', '2019-09-24 06:54:31'), (908, 'import-nd2-125', NULL, 'import', '2019-09-24 06:54:31', '2019-09-24 06:54:31'), (909, 'import-nd2-126', NULL, 'import', '2019-09-24 06:54:31', '2019-09-24 06:54:31'), (910, 'import-nd2-127', NULL, 'import', '2019-09-24 06:54:32', '2019-09-24 06:54:32'), (911, 'import-nd2-128', NULL, 'import', '2019-09-24 06:54:32', '2019-09-24 06:54:32'), (912, 'import-nd2-129', NULL, 'import', '2019-09-24 06:54:32', '2019-09-24 06:54:32'), (913, 'import-nd2-130', NULL, 'import', '2019-09-24 06:54:32', '2019-09-24 06:54:32'), (914, 'import-nd2-131', NULL, 'import', '2019-09-24 06:54:32', '2019-09-24 06:54:32'), (915, 'import-nd2-132', NULL, 'import', '2019-09-24 06:54:32', '2019-09-24 06:54:32'), (916, 'import-nd2-133', NULL, 'import', '2019-09-24 06:54:32', '2019-09-24 06:54:32'), (917, 'import-nd2-134', NULL, 'import', '2019-09-24 06:54:32', '2019-09-24 06:54:33'), (918, 'import-nd2-135', NULL, 'import', '2019-09-24 06:54:33', '2019-09-24 06:54:33'), (919, 'import-nd2-136', NULL, 'import', '2019-09-24 06:54:33', '2019-09-24 06:54:33'), (920, 'import-nd2-137', NULL, 'import', '2019-09-24 06:54:33', '2019-09-24 06:54:33'), (921, 'import-nd2-138', NULL, 'import', '2019-09-24 06:54:33', '2019-09-24 06:54:33'), (922, 'import-nd2-139', NULL, 'import', '2019-09-24 06:54:33', '2019-09-24 06:54:33'), (923, 'import-nd2-140', NULL, 'import', '2019-09-24 06:54:33', '2019-09-24 06:54:33'), (924, 'import-nd2-141', NULL, 'import', '2019-09-24 06:54:33', '2019-09-24 06:54:34'), (925, 'import-nd2-142', NULL, 'import', '2019-09-24 06:54:34', '2019-09-24 06:54:34'), (926, 'import-nd2-143', NULL, 'import', '2019-09-24 06:54:34', '2019-09-24 06:54:34'), (927, 'import-nd2-144', NULL, 'import', '2019-09-24 06:54:34', '2019-09-24 06:54:34'), (928, 'import-nd2-145', NULL, 'import', '2019-09-24 06:54:34', '2019-09-24 06:54:34'), (929, 'import-nd2-146', NULL, 'import', '2019-09-24 06:54:34', '2019-09-24 06:54:34'), (930, 'import-nd2-147', NULL, 'import', '2019-09-24 06:54:34', '2019-09-24 06:54:34'), (931, 'import-nd2-148', NULL, 'import', '2019-09-24 06:54:34', '2019-09-24 06:54:34'), (932, 'import-nd2-149', NULL, 'import', '2019-09-24 06:54:34', '2019-09-24 06:54:34'), (933, 'import-nd2-150', NULL, 'import', '2019-09-24 06:54:34', '2019-09-24 06:54:35'), (934, 'import-nd2-151', NULL, 'import', '2019-09-24 06:54:35', '2019-09-24 06:54:35'), (935, 'import-nd2-152', NULL, 'import', '2019-09-24 06:54:35', '2019-09-24 06:54:35'), (936, 'import-nd2-153', NULL, 'import', '2019-09-24 06:54:35', '2019-09-24 06:54:35'), (937, 'import-nd2-154', NULL, 'import', '2019-09-24 06:54:35', '2019-09-24 06:54:35'), (938, 'import-nd2-155', NULL, 'import', '2019-09-24 06:54:35', '2019-09-24 06:54:35'), (939, 'import-nd2-156', NULL, 'import', '2019-09-24 06:54:35', '2019-09-24 06:54:35'), (940, 'import-nd2-157', NULL, 'import', '2019-09-24 06:54:35', '2019-09-24 06:54:35'), (941, 'import-nd2-158', NULL, 'import', '2019-09-24 06:54:35', '2019-09-24 06:54:35'), (942, 'import-nd2-159', NULL, 'import', '2019-09-24 06:54:36', '2019-09-24 06:54:36'), (943, 'import-nd2-160', NULL, 'import', '2019-09-24 06:54:36', '2019-09-24 06:54:36'), (944, 'import-nd2-161', NULL, 'import', '2019-09-24 06:54:36', '2019-09-24 06:54:36'), (945, 'import-nd2-162', NULL, 'import', '2019-09-24 06:54:36', '2019-09-24 06:54:36'), (946, 'import-nd2-163', NULL, 'import', '2019-09-24 06:54:36', '2019-09-24 06:54:36'), (947, 'import-nd2-164', NULL, 'import', '2019-09-24 06:54:36', '2019-09-24 06:54:36'), (948, 'import-nd2-165', NULL, 'import', '2019-09-24 06:54:36', '2019-09-24 06:54:36'), (949, 'import-nd2-166', NULL, 'import', '2019-09-24 06:54:36', '2019-09-24 06:54:36'), (950, 'import-nd2-167', NULL, 'import', '2019-09-24 06:54:36', '2019-09-24 06:54:36'), (951, 'import-nd2-168', NULL, 'import', '2019-09-24 06:54:36', '2019-09-24 06:54:37'), (952, 'import-nd2-169', NULL, 'import', '2019-09-24 06:54:37', '2019-09-24 06:54:37'), (953, 'import-nd2-170', NULL, 'import', '2019-09-24 06:54:37', '2019-09-24 06:54:37'), (954, 'import-nd2-171', NULL, 'import', '2019-09-24 06:54:37', '2019-09-24 06:54:37'), (955, 'import-nd2-172', NULL, 'import', '2019-09-24 06:54:37', '2019-09-24 06:54:37'), (956, 'import-nd2-173', NULL, 'import', '2019-09-24 06:54:37', '2019-09-24 06:54:37'), (957, 'import-nd2-174', NULL, 'import', '2019-09-24 06:54:37', '2019-09-24 06:54:37'), (958, 'import-nd2-175', NULL, 'import', '2019-09-24 06:54:37', '2019-09-24 06:54:37'), (959, 'import-nd2-176', NULL, 'import', '2019-09-24 06:54:37', '2019-09-24 06:54:38'), (960, 'import-nd2-177', NULL, 'import', '2019-09-24 06:54:38', '2019-09-24 06:54:38'), (961, 'import-nd2-178', NULL, 'import', '2019-09-24 06:54:38', '2019-09-24 06:54:38'), (962, 'import-nd2-179', NULL, 'import', '2019-09-24 06:54:38', '2019-09-24 06:54:38'), (963, 'import-nd2-180', NULL, 'import', '2019-09-24 06:54:38', '2019-09-24 06:54:38'), (964, 'import-nd2-181', NULL, 'import', '2019-09-24 06:54:38', '2019-09-24 06:54:38'), (965, 'import-nd2-182', NULL, 'import', '2019-09-24 06:54:38', '2019-09-24 06:54:38'), (966, 'import-nd2-183', NULL, 'import', '2019-09-24 06:54:38', '2019-09-24 06:54:38'), (967, 'import-nd2-184', NULL, 'import', '2019-09-24 06:54:39', '2019-09-24 06:54:39'), (968, 'import-nd2-185', NULL, 'import', '2019-09-24 06:54:39', '2019-09-24 06:54:39'), (969, 'import-nd2-186', NULL, 'import', '2019-09-24 06:54:39', '2019-09-24 06:54:39'), (970, 'import-nd2-187', NULL, 'import', '2019-09-24 06:54:39', '2019-09-24 06:54:39'), (971, 'import-nd2-188', NULL, 'import', '2019-09-24 06:54:39', '2019-09-24 06:54:39'), (972, 'import-nd2-189', NULL, 'import', '2019-09-24 06:54:39', '2019-09-24 06:54:39'), (973, 'import-nd2-190', NULL, 'import', '2019-09-24 06:54:39', '2019-09-24 06:54:39'), (974, 'import-nd2-191', NULL, 'import', '2019-09-24 06:54:39', '2019-09-24 06:54:39'), (975, 'import-nd2-192', NULL, 'import', '2019-09-24 06:54:39', '2019-09-24 06:54:39'), (976, 'import-nd2-193', NULL, 'import', '2019-09-24 06:54:40', '2019-09-24 06:54:40'), (977, 'import-nd2-194', NULL, 'import', '2019-09-24 06:54:40', '2019-09-24 06:54:40'), (978, 'import-nd2-195', NULL, 'import', '2019-09-24 06:54:40', '2019-09-24 06:54:40'), (979, 'import-nd2-196', NULL, 'import', '2019-09-24 06:54:40', '2019-09-24 06:54:40'), (980, 'import-nd2-197', NULL, 'import', '2019-09-24 06:54:40', '2019-09-24 06:54:40'), (981, 'import-nd2-198', NULL, 'import', '2019-09-24 06:54:40', '2019-09-24 06:54:40'), (982, 'import-nd2-199', NULL, 'import', '2019-09-24 06:54:40', '2019-09-24 06:54:40'), (983, 'import-nd2-200', NULL, 'import', '2019-09-24 06:54:40', '2019-09-24 06:54:41'), (984, 'import-nd2-201', NULL, 'import', '2019-09-24 06:54:41', '2019-09-24 06:54:41'), (985, 'import-nd2-202', NULL, 'import', '2019-09-24 06:54:41', '2019-09-24 06:54:41'), (986, 'import-nd2-203', NULL, 'import', '2019-09-24 06:54:41', '2019-09-24 06:54:41'), (987, 'import-nd2-204', NULL, 'import', '2019-09-24 06:54:41', '2019-09-24 06:54:41'), (988, 'import-nd2-205', NULL, 'import', '2019-09-24 06:54:41', '2019-09-24 06:54:41'), (989, 'import-nd2-206', NULL, 'import', '2019-09-24 06:54:41', '2019-09-24 06:54:41'), (990, 'import-nd2-207', NULL, 'import', '2019-09-24 06:54:41', '2019-09-24 06:54:41'), (991, 'import-nd2-208', NULL, 'import', '2019-09-24 06:54:41', '2019-09-24 06:54:42'), (992, 'import-nd2-209', NULL, 'import', '2019-09-24 06:54:42', '2019-09-24 06:54:42'), (993, 'import-nd2-210', NULL, 'import', '2019-09-24 06:54:42', '2019-09-24 06:54:42'), (994, 'import-nd2-211', NULL, 'import', '2019-09-24 06:54:42', '2019-09-24 06:54:42'), (995, 'import-nd2-212', NULL, 'import', '2019-09-24 06:54:42', '2019-09-24 06:54:42'), (996, 'import-nd2-213', NULL, 'import', '2019-09-24 06:54:42', '2019-09-24 06:54:42'), (997, 'import-nd2-214', NULL, 'import', '2019-09-24 06:54:42', '2019-09-24 06:54:42'), (998, 'import-nd2-215', NULL, 'import', '2019-09-24 06:54:42', '2019-09-24 06:54:43'), (999, 'import-nd2-216', NULL, 'import', '2019-09-24 06:54:43', '2019-09-24 06:54:43'), (1000, 'import-nd2-217', NULL, 'import', '2019-09-24 06:54:43', '2019-09-24 06:54:43'), (1001, 'import-nd2-218', NULL, 'import', '2019-09-24 06:54:43', '2019-09-24 06:54:43'), (1002, 'import-nd2-219', NULL, 'import', '2019-09-24 06:54:43', '2019-09-24 06:54:43'), (1003, 'import-nd2-220', NULL, 'import', '2019-09-24 06:54:43', '2019-09-24 06:54:43'), (1004, 'import-nd2-221', NULL, 'import', '2019-09-24 06:54:43', '2019-09-24 06:54:43'), (1005, 'import-nd2-222', NULL, 'import', '2019-09-24 06:54:43', '2019-09-24 06:54:43'), (1006, 'import-nd2-223', NULL, 'import', '2019-09-24 06:54:44', '2019-09-24 06:54:44'), (1007, 'import-nd2-224', NULL, 'import', '2019-09-24 06:54:44', '2019-09-24 06:54:44'), (1008, 'import-nd2-225', NULL, 'import', '2019-09-24 06:54:44', '2019-09-24 06:54:44'), (1009, 'import-nd2-226', NULL, 'import', '2019-09-24 06:54:44', '2019-09-24 06:54:44'), (1010, 'import-nd2-227', NULL, 'import', '2019-09-24 06:54:44', '2019-09-24 06:54:44'), (1011, 'import-nd2-228', NULL, 'import', '2019-09-24 06:54:44', '2019-09-24 06:54:44'), (1012, 'import-nd2-229', NULL, 'import', '2019-09-24 06:54:44', '2019-09-24 06:54:44'), (1013, 'import-nd2-230', NULL, 'import', '2019-09-24 06:54:44', '2019-09-24 06:54:44'), (1014, 'import-nd2-231', NULL, 'import', '2019-09-24 06:54:45', '2019-09-24 06:54:45'), (1015, 'import-nd2-232', NULL, 'import', '2019-09-24 06:54:45', '2019-09-24 06:54:45'), (1016, 'import-nd2-233', NULL, 'import', '2019-09-24 06:54:45', '2019-09-24 06:54:45'), (1017, 'import-nd2-234', NULL, 'import', '2019-09-24 06:54:45', '2019-09-24 06:54:45'), (1018, 'import-nd2-235', NULL, 'import', '2019-09-24 06:54:45', '2019-09-24 06:54:45'), (1019, 'import-nd2-236', NULL, 'import', '2019-09-24 06:54:45', '2019-09-24 06:54:45'), (1020, 'import-nd2-237', NULL, 'import', '2019-09-24 06:54:45', '2019-09-24 06:54:45'), (1021, 'import-nd2-238', NULL, 'import', '2019-09-24 06:54:45', '2019-09-24 06:54:45'), (1022, 'import-nd2-239', NULL, 'import', '2019-09-24 06:54:45', '2019-09-24 06:54:45'), (1023, 'import-nd2-240', NULL, 'import', '2019-09-24 06:54:46', '2019-09-24 06:54:46'), (1024, 'import-nd2-241', NULL, 'import', '2019-09-24 06:54:46', '2019-09-24 06:54:46'), (1025, 'import-nd2-242', NULL, 'import', '2019-09-24 06:54:46', '2019-09-24 06:54:46'), (1026, 'import-nd2-243', NULL, 'import', '2019-09-24 06:54:46', '2019-09-24 06:54:46'), (1027, 'import-nd2-244', NULL, 'import', '2019-09-24 06:54:46', '2019-09-24 06:54:46'), (1028, 'import-nd2-245', NULL, 'import', '2019-09-24 06:54:46', '2019-09-24 06:54:46'), (1029, 'import-nd2-246', NULL, 'import', '2019-09-24 06:54:46', '2019-09-24 06:54:46'), (1030, 'import-nd2-247', NULL, 'import', '2019-09-24 06:54:46', '2019-09-24 06:54:46'), (1031, 'import-nd2-248', NULL, 'import', '2019-09-24 06:54:46', '2019-09-24 06:54:46'), (1032, 'import-nd2-249', NULL, 'import', '2019-09-24 06:54:47', '2019-09-24 06:54:47'), (1033, 'import-nd2-250', NULL, 'import', '2019-09-24 06:54:47', '2019-09-24 06:54:47'), (1034, 'import-nd2-251', NULL, 'import', '2019-09-24 06:54:47', '2019-09-24 06:54:47'), (1035, 'import-nd2-252', NULL, 'import', '2019-09-24 06:54:47', '2019-09-24 06:54:47'), (1036, 'import-nd2-253', NULL, 'import', '2019-09-24 06:54:47', '2019-09-24 06:54:47'), (1037, 'import-nd2-254', NULL, 'import', '2019-09-24 06:54:47', '2019-09-24 06:54:47'), (1038, 'import-nd2-255', NULL, 'import', '2019-09-24 06:54:47', '2019-09-24 06:54:47'), (1039, 'import-nd2-256', NULL, 'import', '2019-09-24 06:54:47', '2019-09-24 06:54:48'), (1040, 'import-nd2-257', NULL, 'import', '2019-09-24 06:54:48', '2019-09-24 06:54:48'), (1041, 'import-nd2-258', NULL, 'import', '2019-09-24 06:54:48', '2019-09-24 06:54:48'), (1042, 'import-nd2-259', NULL, 'import', '2019-09-24 06:54:48', '2019-09-24 06:54:48'), (1043, 'import-nd2-260', NULL, 'import', '2019-09-24 06:54:48', '2019-09-24 06:54:48'), (1044, 'import-nd2-261', NULL, 'import', '2019-09-24 06:54:49', '2019-09-24 06:54:49'), (1045, 'import-nd2-262', NULL, 'import', '2019-09-24 06:54:49', '2019-09-24 06:54:49'), (1046, 'import-nd2-263', NULL, 'import', '2019-09-24 06:54:49', '2019-09-24 06:54:49'), (1047, 'import-nd2-264', NULL, 'import', '2019-09-24 06:54:49', '2019-09-24 06:54:49'), (1048, 'import-nd2-265', NULL, 'import', '2019-09-24 06:54:49', '2019-09-24 06:54:49'), (1049, 'import-nd2-266', NULL, 'import', '2019-09-24 06:54:49', '2019-09-24 06:54:49'), (1050, 'import-nd2-267', NULL, 'import', '2019-09-24 06:54:49', '2019-09-24 06:54:49'), (1051, 'import-nd2-268', NULL, 'import', '2019-09-24 06:54:49', '2019-09-24 06:54:49'), (1052, 'import-nd2-269', NULL, 'import', '2019-09-24 06:54:49', '2019-09-24 06:54:49'), (1053, 'import-nd2-270', NULL, 'import', '2019-09-24 06:54:50', '2019-09-24 06:54:50'), (1054, 'import-nd2-271', NULL, 'import', '2019-09-24 06:54:50', '2019-09-24 06:54:50'), (1055, 'import-nd2-272', NULL, 'import', '2019-09-24 06:54:50', '2019-09-24 06:54:50'), (1056, 'import-nd2-273', NULL, 'import', '2019-09-24 06:54:50', '2019-09-24 06:54:50'), (1057, 'import-nd2-274', NULL, 'import', '2019-09-24 06:54:50', '2019-09-24 06:54:50'), (1058, 'import-nd2-275', NULL, 'import', '2019-09-24 06:54:50', '2019-09-24 06:54:50'), (1059, 'import-nd2-276', NULL, 'import', '2019-09-24 06:54:50', '2019-09-24 06:54:50'), (1060, 'import-nd2-277', NULL, 'import', '2019-09-24 06:54:50', '2019-09-24 06:54:50'), (1061, 'import-nd2-278', NULL, 'import', '2019-09-24 06:54:51', '2019-09-24 06:54:51'), (1062, 'import-nd2-279', NULL, 'import', '2019-09-24 06:54:51', '2019-09-24 06:54:51'), (1063, 'import-nd2-280', NULL, 'import', '2019-09-24 06:54:51', '2019-09-24 06:54:51'), (1064, 'import-nd2-281', NULL, 'import', '2019-09-24 06:54:51', '2019-09-24 06:54:51'), (1065, 'import-nd2-282', NULL, 'import', '2019-09-24 06:54:51', '2019-09-24 06:54:51'), (1066, 'import-nd2-283', NULL, 'import', '2019-09-24 06:54:51', '2019-09-24 06:54:51'), (1067, 'import-nd2-284', NULL, 'import', '2019-09-24 06:54:51', '2019-09-24 06:54:51'), (1068, 'import-nd2-285', NULL, 'import', '2019-09-24 06:54:51', '2019-09-24 06:54:51'), (1069, 'import-nd2-286', NULL, 'import', '2019-09-24 06:54:51', '2019-09-24 06:54:51'), (1070, 'import-nd2-287', NULL, 'import', '2019-09-24 06:54:52', '2019-09-24 06:54:52'), (1071, 'import-nd2-288', NULL, 'import', '2019-09-24 06:54:52', '2019-09-24 06:54:52'), (1072, 'import-nd2-289', NULL, 'import', '2019-09-24 06:54:52', '2019-09-24 06:54:52'), (1073, 'import-nd2-290', NULL, 'import', '2019-09-24 06:54:52', '2019-09-24 06:54:52'), (1074, 'import-nd2-291', NULL, 'import', '2019-09-24 06:54:52', '2019-09-24 06:54:52'), (1075, 'import-nd2-292', NULL, 'import', '2019-09-24 06:54:52', '2019-09-24 06:54:52'), (1076, 'import-nd2-293', NULL, 'import', '2019-09-24 06:54:52', '2019-09-24 06:54:52'), (1077, 'import-nd2-294', NULL, 'import', '2019-09-24 06:54:52', '2019-09-24 06:54:52'), (1078, 'import-nd2-295', NULL, 'import', '2019-09-24 06:54:52', '2019-09-24 06:54:52'), (1079, 'import-nd2-296', NULL, 'import', '2019-09-24 06:54:52', '2019-09-24 06:54:53'), (1080, 'import-nd2-297', NULL, 'import', '2019-09-24 06:54:53', '2019-09-24 06:54:53'), (1081, 'import-nd2-298', NULL, 'import', '2019-09-24 06:54:53', '2019-09-24 06:54:53'), (1082, 'import-nd2-299', NULL, 'import', '2019-09-24 06:54:53', '2019-09-24 06:54:53'), (1083, 'import-nd2-300', NULL, 'import', '2019-09-24 06:54:53', '2019-09-24 06:54:53'), (1084, 'import-nd2-301', NULL, 'import', '2019-09-24 06:54:53', '2019-09-24 06:54:53'), (1085, 'import-nd2-302', NULL, 'import', '2019-09-24 06:54:53', '2019-09-24 06:54:53'), (1086, 'import-nd2-303', NULL, 'import', '2019-09-24 06:54:53', '2019-09-24 06:54:53'), (1087, 'import-nd2-304', NULL, 'import', '2019-09-24 06:54:54', '2019-09-24 06:54:54'), (1088, 'import-nd2-305', NULL, 'import', '2019-09-24 06:54:54', '2019-09-24 06:54:54'), (1089, 'import-nd2-306', NULL, 'import', '2019-09-24 06:54:54', '2019-09-24 06:54:54'), (1090, 'import-nd2-307', NULL, 'import', '2019-09-24 06:54:54', '2019-09-24 06:54:54'), (1091, 'import-nd2-308', NULL, 'import', '2019-09-24 06:54:54', '2019-09-24 06:54:54'), (1092, 'import-nd2-309', NULL, 'import', '2019-09-24 06:54:54', '2019-09-24 06:54:54'), (1093, 'import-nd2-310', NULL, 'import', '2019-09-24 06:54:55', '2019-09-24 06:54:55'), (1094, 'import-nd2-311', NULL, 'import', '2019-09-24 06:54:55', '2019-09-24 06:54:55'), (1095, 'import-nd2-312', NULL, 'import', '2019-09-24 06:54:55', '2019-09-24 06:54:55'), (1096, 'import-nd2-313', NULL, 'import', '2019-09-24 06:54:55', '2019-09-24 06:54:55'), (1097, 'import-nd2-314', NULL, 'import', '2019-09-24 06:54:55', '2019-09-24 06:54:55'), (1098, 'import-nd2-315', NULL, 'import', '2019-09-24 06:54:55', '2019-09-24 06:54:55'), (1099, 'import-nd2-316', NULL, 'import', '2019-09-24 06:54:55', '2019-09-24 06:54:55'), (1100, 'import-nd2-317', NULL, 'import', '2019-09-24 06:54:55', '2019-09-24 06:54:55'), (1101, 'import-nd2-318', NULL, 'import', '2019-09-24 06:54:55', '2019-09-24 06:54:55'), (1102, 'import-nd2-319', NULL, 'import', '2019-09-24 06:54:55', '2019-09-24 06:54:56'), (1103, 'import-nd2-320', NULL, 'import', '2019-09-24 06:54:56', '2019-09-24 06:54:56'), (1104, 'import-nd2-321', NULL, 'import', '2019-09-24 06:54:56', '2019-09-24 06:54:56'), (1105, 'import-nd2-322', NULL, 'import', '2019-09-24 06:54:56', '2019-09-24 06:54:56'), (1106, 'import-nd2-323', NULL, 'import', '2019-09-24 06:54:56', '2019-09-24 06:54:56'), (1107, 'import-nd2-324', NULL, 'import', '2019-09-24 06:54:56', '2019-09-24 06:54:56'), (1108, 'import-nd2-325', NULL, 'import', '2019-09-24 06:54:56', '2019-09-24 06:54:56'), (1109, 'import-nd2-326', NULL, 'import', '2019-09-24 06:54:56', '2019-09-24 06:54:56'), (1110, 'import-nd2-327', NULL, 'import', '2019-09-24 06:54:56', '2019-09-24 06:54:56'), (1111, 'import-nd2-328', NULL, 'import', '2019-09-24 06:54:56', '2019-09-24 06:54:56'), (1112, 'import-nd2-329', NULL, 'import', '2019-09-24 06:54:57', '2019-09-24 06:54:57'), (1113, 'import-nd2-330', NULL, 'import', '2019-09-24 06:54:57', '2019-09-24 06:54:57'), (1114, 'import-nd2-331', NULL, 'import', '2019-09-24 06:54:57', '2019-09-24 06:54:57'), (1115, 'import-nd2-332', NULL, 'import', '2019-09-24 06:54:57', '2019-09-24 06:54:57'), (1116, 'import-nd2-333', NULL, 'import', '2019-09-24 06:54:57', '2019-09-24 06:54:57'), (1117, 'import-nd2-334', NULL, 'import', '2019-09-24 06:54:57', '2019-09-24 06:54:57'), (1118, 'import-nd2-335', NULL, 'import', '2019-09-24 06:54:57', '2019-09-24 06:54:57'), (1119, 'import-nd2-336', NULL, 'import', '2019-09-24 06:54:57', '2019-09-24 06:54:57'), (1120, 'import-nd2-337', NULL, 'import', '2019-09-24 06:54:57', '2019-09-24 06:54:57'), (1121, 'import-nd2-338', NULL, 'import', '2019-09-24 06:54:57', '2019-09-24 06:54:58'), (1122, 'import-nd2-339', NULL, 'import', '2019-09-24 06:54:58', '2019-09-24 06:54:58'), (1123, 'import-nd2-340', NULL, 'import', '2019-09-24 06:54:58', '2019-09-24 06:54:58'), (1124, 'import-nd2-341', NULL, 'import', '2019-09-24 06:54:58', '2019-09-24 06:54:58'), (1125, 'import-nd2-342', NULL, 'import', '2019-09-24 06:54:58', '2019-09-24 06:54:58'), (1126, 'import-nd2-343', NULL, 'import', '2019-09-24 06:54:58', '2019-09-24 06:54:58'), (1127, 'import-nd2-344', NULL, 'import', '2019-09-24 06:54:58', '2019-09-24 06:54:58'), (1128, 'import-nd2-345', NULL, 'import', '2019-09-24 06:54:58', '2019-09-24 06:54:58'), (1129, 'import-nd2-346', NULL, 'import', '2019-09-24 06:54:58', '2019-09-24 06:54:58'), (1130, 'import-nd2-347', NULL, 'import', '2019-09-24 06:54:58', '2019-09-24 06:54:58'), (1131, 'import-nd2-348', NULL, 'import', '2019-09-24 06:54:58', '2019-09-24 06:54:59'), (1132, 'import-nd2-349', NULL, 'import', '2019-09-24 06:54:59', '2019-09-24 06:54:59'), (1133, 'import-nd2-350', NULL, 'import', '2019-09-24 06:54:59', '2019-09-24 06:54:59'), (1134, 'import-nd2-351', NULL, 'import', '2019-09-24 06:54:59', '2019-09-24 06:54:59'), (1135, 'import-nd2-352', NULL, 'import', '2019-09-24 06:54:59', '2019-09-24 06:55:00'), (1136, 'import-nd2-353', NULL, 'import', '2019-09-24 06:55:00', '2019-09-24 06:55:00'), (1137, 'import-nd2-354', NULL, 'import', '2019-09-24 06:55:00', '2019-09-24 06:55:00'), (1138, 'import-nd2-355', NULL, 'import', '2019-09-24 06:55:00', '2019-09-24 06:55:00'), (1139, 'import-nd2-356', NULL, 'import', '2019-09-24 06:55:00', '2019-09-24 06:55:01'), (1140, 'import-nd2-357', NULL, 'import', '2019-09-24 06:55:01', '2019-09-24 06:55:01'), (1141, 'import-nd2-358', NULL, 'import', '2019-09-24 06:55:01', '2019-09-24 06:55:01'), (1142, 'import-nd2-359', NULL, 'import', '2019-09-24 06:55:01', '2019-09-24 06:55:01'), (1143, 'import-nd2-360', NULL, 'import', '2019-09-24 06:55:01', '2019-09-24 06:55:01'), (1144, 'import-nd2-361', NULL, 'import', '2019-09-24 06:55:01', '2019-09-24 06:55:01'), (1145, 'import-nd2-362', NULL, 'import', '2019-09-24 06:55:01', '2019-09-24 06:55:01'), (1146, 'import-nd2-363', NULL, 'import', '2019-09-24 06:55:01', '2019-09-24 06:55:01'), (1147, 'import-nd2-364', NULL, 'import', '2019-09-24 06:55:01', '2019-09-24 06:55:01'), (1148, 'import-nd2-365', NULL, 'import', '2019-09-24 06:55:02', '2019-09-24 06:55:02'), (1149, 'import-nd2-366', NULL, 'import', '2019-09-24 06:55:02', '2019-09-24 06:55:02'), (1150, 'import-nd2-367', NULL, 'import', '2019-09-24 06:55:02', '2019-09-24 06:55:02'), (1151, 'import-nd2-368', NULL, 'import', '2019-09-24 06:55:02', '2019-09-24 06:55:02'), (1152, 'import-nd2-369', NULL, 'import', '2019-09-24 06:55:02', '2019-09-24 06:55:02'), (1153, 'import-nd2-370', NULL, 'import', '2019-09-24 06:55:02', '2019-09-24 06:55:02'), (1154, 'import-nd2-371', NULL, 'import', '2019-09-24 06:55:02', '2019-09-24 06:55:02'), (1155, 'import-nd2-372', NULL, 'import', '2019-09-24 06:55:02', '2019-09-24 06:55:03'), (1156, 'import-nd2-373', NULL, 'import', '2019-09-24 06:55:03', '2019-09-24 06:55:03'), (1157, 'import-nd2-374', NULL, 'import', '2019-09-24 06:55:03', '2019-09-24 06:55:03'), (1158, 'import-nd2-375', NULL, 'import', '2019-09-24 06:55:03', '2019-09-24 06:55:03'), (1159, 'import-nd2-376', NULL, 'import', '2019-09-24 06:55:03', '2019-09-24 06:55:03'), (1160, 'import-nd2-377', NULL, 'import', '2019-09-24 06:55:03', '2019-09-24 06:55:03'), (1161, 'import-nd2-378', NULL, 'import', '2019-09-24 06:55:03', '2019-09-24 06:55:03'), (1162, 'import-nd2-379', NULL, 'import', '2019-09-24 06:55:03', '2019-09-24 06:55:03'), (1163, 'import-nd2-380', NULL, 'import', '2019-09-24 06:55:03', '2019-09-24 06:55:03'), (1164, 'import-nd2-381', NULL, 'import', '2019-09-24 06:55:04', '2019-09-24 06:55:04'), (1165, 'import-nd2-382', NULL, 'import', '2019-09-24 06:55:04', '2019-09-24 06:55:04'), (1166, 'import-nd2-383', NULL, 'import', '2019-09-24 06:55:04', '2019-09-24 06:55:04'), (1167, 'import-nd2-384', NULL, 'import', '2019-09-24 06:55:04', '2019-09-24 06:55:04'), (1168, 'import-nd2-385', NULL, 'import', '2019-09-24 06:55:04', '2019-09-24 06:55:04'), (1169, 'import-nd2-386', NULL, 'import', '2019-09-24 06:55:04', '2019-09-24 06:55:04'), (1170, 'import-nd2-387', NULL, 'import', '2019-09-24 06:55:04', '2019-09-24 06:55:04'), (1171, 'import-nd2-388', NULL, 'import', '2019-09-24 06:55:04', '2019-09-24 06:55:05'), (1172, 'import-nd2-389', NULL, 'import', '2019-09-24 06:55:05', '2019-09-24 06:55:05'), (1173, 'import-nd2-390', NULL, 'import', '2019-09-24 06:55:05', '2019-09-24 06:55:05'), (1174, 'import-nd2-391', NULL, 'import', '2019-09-24 06:55:05', '2019-09-24 06:55:05'), (1175, 'import-nd2-392', NULL, 'import', '2019-09-24 06:55:05', '2019-09-24 06:55:05'), (1176, 'import-nd2-393', NULL, 'import', '2019-09-24 06:55:05', '2019-09-24 06:55:05'), (1177, 'import-nd2-394', NULL, 'import', '2019-09-24 06:55:05', '2019-09-24 06:55:05'), (1178, 'import-nd2-395', NULL, 'import', '2019-09-24 06:55:05', '2019-09-24 06:55:05'), (1179, 'import-nd2-396', NULL, 'import', '2019-09-24 06:55:05', '2019-09-24 06:55:06'), (1180, 'import-nd2-397', NULL, 'import', '2019-09-24 06:55:06', '2019-09-24 06:55:06'), (1181, 'import-nd2-398', NULL, 'import', '2019-09-24 06:55:06', '2019-09-24 06:55:06'), (1182, 'import-nd2-399', NULL, 'import', '2019-09-24 06:55:06', '2019-09-24 06:55:06'), (1183, 'import-nd2-400', NULL, 'import', '2019-09-24 06:55:06', '2019-09-24 06:55:06'), (1184, 'import-nd2-401', NULL, 'import', '2019-09-24 06:55:06', '2019-09-24 06:55:06'), (1185, 'import-nd2-402', NULL, 'import', '2019-09-24 06:55:06', '2019-09-24 06:55:06'), (1186, 'import-nd2-403', NULL, 'import', '2019-09-24 06:55:07', '2019-09-24 06:55:07'), (1187, 'import-nd2-404', NULL, 'import', '2019-09-24 06:55:07', '2019-09-24 06:55:07'), (1188, 'import-nd2-405', NULL, 'import', '2019-09-24 06:55:07', '2019-09-24 06:55:07'), (1189, 'import-nd2-406', NULL, 'import', '2019-09-24 06:55:07', '2019-09-24 06:55:07'), (1190, 'import-nd2-407', NULL, 'import', '2019-09-24 06:55:07', '2019-09-24 06:55:07'), (1191, 'import-nd2-408', NULL, 'import', '2019-09-24 06:55:07', '2019-09-24 06:55:07'), (1192, 'import-nd2-409', NULL, 'import', '2019-09-24 06:55:07', '2019-09-24 06:55:07'), (1193, 'import-nd2-410', NULL, 'import', '2019-09-24 06:55:07', '2019-09-24 06:55:07'), (1194, 'import-nd2-411', NULL, 'import', '2019-09-24 06:55:07', '2019-09-24 06:55:07'), (1195, 'import-nd2-412', NULL, 'import', '2019-09-24 06:55:08', '2019-09-24 06:55:08'), (1196, 'import-nd2-413', NULL, 'import', '2019-09-24 06:55:08', '2019-09-24 06:55:08'), (1197, 'import-nd2-414', NULL, 'import', '2019-09-24 06:55:08', '2019-09-24 06:55:08'), (1198, 'import-ep2-1', '1', 'import', '2019-09-24 06:55:08', '2019-09-24 06:57:06'), (1199, 'import-ep2-2', '2', 'import', '2019-09-24 06:55:08', '2019-09-24 06:57:06'), (1200, 'import-ep2-3', '3', 'import', '2019-09-24 06:55:08', '2019-09-24 06:57:06'), (1201, 'import-ep2-4', '4', 'import', '2019-09-24 06:55:08', '2019-09-24 06:57:06'), (1202, 'import-ep2-5', '5', 'import', '2019-09-24 06:55:08', '2019-09-24 06:57:06'), (1203, 'import-ep2-6', '6', 'import', '2019-09-24 06:55:08', '2019-09-24 06:57:06'), (1204, 'import-ep2-7', '7', 'import', '2019-09-24 06:55:08', '2019-09-24 06:57:06'), (1205, 'import-ep2-8', '8', 'import', '2019-09-24 06:55:09', '2019-09-24 06:57:07'), (1206, 'import-ep2-9', '9', 'import', '2019-09-24 06:55:09', '2019-09-24 06:57:07'), (1207, 'import-ep2-10', NULL, 'import', '2019-09-24 06:55:09', '2019-09-24 06:55:09'), (1208, 'import-ep2-11', NULL, 'import', '2019-09-24 06:55:09', '2019-09-24 06:55:09'), (1209, 'import-ep2-12', NULL, 'import', '2019-09-24 06:55:09', '2019-09-24 06:55:09'), (1210, 'import-ep2-13', NULL, 'import', '2019-09-24 06:55:09', '2019-09-24 06:55:09'), (1211, 'import-ep2-14', NULL, 'import', '2019-09-24 06:55:09', '2019-09-24 06:55:09'), (1212, 'import-ep2-15', NULL, 'import', '2019-09-24 06:55:09', '2019-09-24 06:55:10'), (1213, 'import-ep2-16', NULL, 'import', '2019-09-24 06:55:10', '2019-09-24 06:55:10'), (1214, 'import-ep2-17', NULL, 'import', '2019-09-24 06:55:10', '2019-09-24 06:55:10'), (1215, 'import-ep2-18', NULL, 'import', '2019-09-24 06:55:10', '2019-09-24 06:55:10'), (1216, 'import-ep2-19', NULL, 'import', '2019-09-24 06:55:10', '2019-09-24 06:55:10'), (1217, 'import-ep2-20', NULL, 'import', '2019-09-24 06:55:10', '2019-09-24 06:55:10'), (1218, 'import-ep2-21', NULL, 'import', '2019-09-24 06:55:10', '2019-09-24 06:55:10'), (1219, 'import-ep2-22', NULL, 'import', '2019-09-24 06:55:10', '2019-09-24 06:55:10'), (1220, 'import-ep2-23', NULL, 'import', '2019-09-24 06:55:10', '2019-09-24 06:55:10'), (1221, 'import-ep2-24', NULL, 'import', '2019-09-24 06:55:11', '2019-09-24 06:55:11'), (1222, 'import-ep2-25', NULL, 'import', '2019-09-24 06:55:11', '2019-09-24 06:55:11'), (1223, 'import-ep2-26', NULL, 'import', '2019-09-24 06:55:11', '2019-09-24 06:55:11'), (1224, 'import-ep2-27', NULL, 'import', '2019-09-24 06:55:11', '2019-09-24 06:55:11'), (1225, 'import-ep2-28', NULL, 'import', '2019-09-24 06:55:11', '2019-09-24 06:55:11'), (1226, 'import-ep2-29', NULL, 'import', '2019-09-24 06:55:11', '2019-09-24 06:55:11'), (1227, 'import-ep2-30', NULL, 'import', '2019-09-24 06:55:11', '2019-09-24 06:55:11'), (1228, 'import-ep2-31', NULL, 'import', '2019-09-24 06:55:11', '2019-09-24 06:55:11'), (1229, 'import-ep2-32', NULL, 'import', '2019-09-24 06:55:11', '2019-09-24 06:55:11'), (1230, 'import-ep2-33', NULL, 'import', '2019-09-24 06:55:12', '2019-09-24 06:55:12'), (1231, 'import-ep2-34', NULL, 'import', '2019-09-24 06:55:12', '2019-09-24 06:55:12'), (1232, 'import-ep2-35', NULL, 'import', '2019-09-24 06:55:12', '2019-09-24 06:55:12'), (1233, 'import-ep2-36', NULL, 'import', '2019-09-24 06:55:12', '2019-09-24 06:55:12'), (1234, 'import-ep2-37', NULL, 'import', '2019-09-24 06:55:12', '2019-09-24 06:55:12'), (1235, 'import-ep2-38', NULL, 'import', '2019-09-24 06:55:12', '2019-09-24 06:55:12'), (1236, 'import-ep2-39', NULL, 'import', '2019-09-24 06:55:12', '2019-09-24 06:55:12'), (1237, 'import-ep2-40', NULL, 'import', '2019-09-24 06:55:12', '2019-09-24 06:55:12'), (1238, 'import-ep2-41', NULL, 'import', '2019-09-24 06:55:12', '2019-09-24 06:55:12'), (1239, 'import-ep2-42', NULL, 'import', '2019-09-24 06:55:13', '2019-09-24 06:55:13'), (1240, 'import-ep2-43', NULL, 'import', '2019-09-24 06:55:13', '2019-09-24 06:55:13'), (1241, 'import-ep2-44', NULL, 'import', '2019-09-24 06:55:13', '2019-09-24 06:55:13'), (1242, 'import-ep2-45', NULL, 'import', '2019-09-24 06:55:13', '2019-09-24 06:55:13'); -- -------------------------------------------------------- -- -- Table structure for table `receiver_addresses` -- CREATE TABLE `receiver_addresses` ( `id` int(10) UNSIGNED NOT NULL, `cust_id` int(11) DEFAULT NULL, `zone` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `city` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `state` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `country` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `gstin` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `phone` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `receiver_addresses` -- INSERT INTO `receiver_addresses` (`id`, `cust_id`, `zone`, `name`, `address`, `city`, `state`, `country`, `gstin`, `phone`, `email`, `created_at`, `updated_at`) VALUES (13, NULL, 'Zone-1', 'Faizan Aalam', 'Bandenawaz Nagar\r\n131', 'Nagpur', 'Maharashtra', 'India', '12346789', '+917776960995', '<EMAIL>', '2019-12-23 21:56:48', '2019-12-23 21:56:48'), (14, NULL, 'Zone-1', 'Faizan Aalam', 'Bandenawaz Nagar\r\n131', 'Nagpur', 'Maharashtra', 'India', '12346789', '+917776960995', '<EMAIL>', '2019-12-23 21:59:16', '2019-12-23 21:59:16'), (15, NULL, 'Zone-1', 'Faizan Aalam', 'Bandenawaz Nagar\r\n131', 'Nagpur', 'Maharashtra', 'India', '12346789', '+917776960995', '<EMAIL>', '2019-12-23 22:00:33', '2019-12-23 22:00:33'), (16, NULL, 'Zone-1', 'Faizan Aalam', 'Bandenawaz Nagar\r\n131', 'Nagpur', 'Maharashtra', 'India', '12346789', '+917776960995', '<EMAIL>', '2019-12-23 22:04:12', '2019-12-23 22:04:12'), (17, NULL, 'Zone-1', 'Faizan Aalam', 'Bandenawaz Nagar\r\n131', 'Nagpur', 'Maharashtra', 'India', '12346789', '+917776960995', '<EMAIL>', '2019-12-23 22:04:20', '2019-12-23 22:04:20'), (18, NULL, 'Zone-1', 'Faizan Aalam', 'Bandenawaz Nagar\r\n131', 'Nagpur', 'Maharashtra', 'India', '12346789', '+917776960995', '<EMAIL>', '2019-12-23 22:04:27', '2019-12-23 22:04:27'); -- -------------------------------------------------------- -- -- Table structure for table `roles` -- CREATE TABLE `roles` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `display_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `roles` -- INSERT INTO `roles` (`id`, `name`, `display_name`, `created_at`, `updated_at`) VALUES (1, 'admin', 'Administrator', '2019-09-16 08:38:36', '2019-09-16 08:38:36'), (2, 'user', 'Normal User', '2019-09-16 08:38:36', '2019-09-16 08:38:36'), (3, 'employee', 'Employee', '2019-10-01 06:15:51', '2019-10-01 06:15:51'); -- -------------------------------------------------------- -- -- Table structure for table `sender_addresses` -- CREATE TABLE `sender_addresses` ( `id` int(10) UNSIGNED NOT NULL, `cust_id` int(11) DEFAULT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `city` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `state` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `country` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `gstin` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `phone` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `sender_addresses` -- INSERT INTO `sender_addresses` (`id`, `cust_id`, `name`, `address`, `city`, `state`, `country`, `gstin`, `phone`, `email`, `created_at`, `updated_at`) VALUES (15, 1, '<NAME>', '<NAME>', 'Nagpur', 'Maharashtra', 'India', '9876543210', '07776960995', '<EMAIL>', '2019-12-23 21:56:48', '2019-12-23 21:56:48'), (16, 1, '<NAME>', '<NAME>', 'Nagpur', 'Maharashtra', 'India', '9876543210', '07776960995', '<EMAIL>', '2019-12-23 21:59:16', '2019-12-23 21:59:16'), (17, 1, '<NAME>', 'Band<NAME>', 'Nagpur', 'Maharashtra', 'India', '9876543210', '07776960995', '<EMAIL>', '2019-12-23 22:00:33', '2019-12-23 22:00:33'), (18, 1, '<NAME>', '<NAME>', 'Nagpur', 'Maharashtra', 'India', '9876543210', '07776960995', '<EMAIL>', '2019-12-23 22:04:12', '2019-12-23 22:04:12'), (19, 1, '<NAME>', '<NAME>', 'Nagpur', 'Maharashtra', 'India', '9876543210', '07776960995', '<EMAIL>', '2019-12-23 22:04:20', '2019-12-23 22:04:20'), (20, 1, '<NAME>', 'Bandenawaz Nagar', 'Nagpur', 'Maharashtra', 'India', '9876543210', '07776960995', '<EMAIL>', '2019-12-23 22:04:27', '2019-12-23 22:04:27'); -- -------------------------------------------------------- -- -- Table structure for table `settings` -- CREATE TABLE `settings` ( `id` int(10) UNSIGNED NOT NULL, `key` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `display_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `value` text COLLATE utf8_unicode_ci DEFAULT NULL, `details` text COLLATE utf8_unicode_ci DEFAULT NULL, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `order` int(11) NOT NULL DEFAULT 1, `group` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `settings` -- INSERT INTO `settings` (`id`, `key`, `display_name`, `value`, `details`, `type`, `order`, `group`) VALUES (1, 'site.title', 'Site Title', 'Site Title', '', 'text', 1, 'Site'), (2, 'site.description', 'Site Description', 'Site Description', '', 'text', 2, 'Site'), (3, 'site.logo', 'Site Logo', '', '', 'image', 3, 'Site'), (4, 'site.google_analytics_tracking_id', 'Google Analytics Tracking ID', '', '', 'text', 4, 'Site'), (5, 'admin.bg_image', 'Admin Background Image', '', '', 'image', 5, 'Admin'), (6, 'admin.title', 'Admin Title', 'Voyager', '', 'text', 1, 'Admin'), (7, 'admin.description', 'Admin Description', 'Welcome to Voyager. The Missing Admin for Laravel', '', 'text', 2, 'Admin'), (8, 'admin.loader', 'Admin Loader', '', '', 'image', 3, 'Admin'), (9, 'admin.icon_image', 'Admin Icon Image', '', '', 'image', 4, 'Admin'), (10, 'admin.google_analytics_client_id', 'Google Analytics Client ID (used for admin dashboard)', '', '', 'text', 1, 'Admin'); -- -------------------------------------------------------- -- -- Table structure for table `translations` -- CREATE TABLE `translations` ( `id` int(10) UNSIGNED NOT NULL, `table_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `column_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `foreign_key` int(10) UNSIGNED NOT NULL, `locale` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `value` text COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `role_id` bigint(20) UNSIGNED DEFAULT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `avatar` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'users/default.png', `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `settings` text COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `role_id`, `name`, `email`, `avatar`, `email_verified_at`, `password`, `remember_token`, `settings`, `created_at`, `updated_at`) VALUES (1, 1, 'Admin', '<EMAIL>', 'users/default.png', NULL, '$2y$10$1dsm3pZJYo230TAT1WFbbuL3Tthf3vrqvJPcvt9vynQNMlKnpos9.', 'XjURrllRypAMJn2WMoMQlFTbkdYrhu1qKVNM2VAaeLN62mwGbPcm4pLCCDNN', NULL, '2019-09-16 08:39:06', '2019-09-16 08:39:07'), (3, 3, 'User One', '<EMAIL>', 'users/default.png', NULL, '$2y$10$GbUbe24QLA4LiV1Sm8Bqzeqbz31OcpiEg0KZx5umhvEojITiuNrBy', NULL, '{\"locale\":\"en\"}', '2019-10-18 05:05:18', '2019-11-17 08:09:26'), (4, NULL, '<NAME>', '<EMAIL>', 'users/default.png', NULL, '$2y$10$MzCoZMLQLJSODVCU9ylhjec6AX0WHF0PtUWNdXzKg5C2hsY8SomBS', NULL, '{\"locale\":\"en\"}', '2019-10-18 05:16:58', '2019-10-18 05:16:58'), (5, 2, '<NAME>', '<EMAIL>', 'users/default.png', NULL, '$2y$10$NVLZFBbl5po436xaZ6S54eZ6lV41FOyYO3pHybw5bfM22gKd2sJBO', NULL, '{\"locale\":\"en\"}', '2019-10-18 07:20:58', '2019-10-18 07:20:58'), (6, NULL, '<NAME>', '<EMAIL>', 'users/default.png', NULL, '$2y$10$ueqfgNYS8I.F7gfuOLR3euYkOX40ySRC7Et638InrTxDpvcCcWzQu', NULL, '{\"locale\":\"en\"}', '2019-10-18 08:40:14', '2019-10-18 08:40:14'); -- -------------------------------------------------------- -- -- Table structure for table `user_roles` -- CREATE TABLE `user_roles` ( `user_id` bigint(20) UNSIGNED NOT NULL, `role_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `volumns` -- CREATE TABLE `volumns` ( `id` int(10) UNSIGNED NOT NULL, `docket_id` int(11) DEFAULT NULL, `goods_desc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `qty` int(11) DEFAULT NULL, `kg` int(11) DEFAULT NULL, `grams` int(11) DEFAULT NULL, `l` int(11) DEFAULT NULL, `h` int(11) DEFAULT NULL, `w` int(11) DEFAULT NULL, `final_weight` double DEFAULT NULL, `charge_weight` double DEFAULT NULL, `amnt_rs` double DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `walking_customers` -- CREATE TABLE `walking_customers` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `phone` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `gstin` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `kind_attn` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `city` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `pincode` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `state` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `country` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Indexes for dumped tables -- -- -- Indexes for table `countries` -- ALTER TABLE `countries` ADD PRIMARY KEY (`id`); -- -- Indexes for table `customers` -- ALTER TABLE `customers` ADD PRIMARY KEY (`id`); -- -- Indexes for table `data_rows` -- ALTER TABLE `data_rows` ADD PRIMARY KEY (`id`), ADD KEY `data_rows_data_type_id_foreign` (`data_type_id`); -- -- Indexes for table `data_types` -- ALTER TABLE `data_types` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `data_types_name_unique` (`name`), ADD UNIQUE KEY `data_types_slug_unique` (`slug`); -- -- Indexes for table `delivery_addresses` -- ALTER TABLE `delivery_addresses` ADD PRIMARY KEY (`id`); -- -- Indexes for table `dockets` -- ALTER TABLE `dockets` ADD PRIMARY KEY (`id`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `invoice_customers` -- ALTER TABLE `invoice_customers` ADD PRIMARY KEY (`id`); -- -- Indexes for table `invoice_items` -- ALTER TABLE `invoice_items` ADD PRIMARY KEY (`id`); -- -- Indexes for table `menus` -- ALTER TABLE `menus` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `menus_name_unique` (`name`); -- -- Indexes for table `menu_items` -- ALTER TABLE `menu_items` ADD PRIMARY KEY (`id`), ADD KEY `menu_items_menu_id_foreign` (`menu_id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `permissions` -- ALTER TABLE `permissions` ADD PRIMARY KEY (`id`), ADD KEY `permissions_key_index` (`key`); -- -- Indexes for table `permission_role` -- ALTER TABLE `permission_role` ADD PRIMARY KEY (`permission_id`,`role_id`), ADD KEY `permission_role_permission_id_index` (`permission_id`), ADD KEY `permission_role_role_id_index` (`role_id`); -- -- Indexes for table `prices` -- ALTER TABLE `prices` ADD PRIMARY KEY (`id`); -- -- Indexes for table `prices_2` -- ALTER TABLE `prices_2` ADD PRIMARY KEY (`id`); -- -- Indexes for table `receiver_addresses` -- ALTER TABLE `receiver_addresses` ADD PRIMARY KEY (`id`); -- -- Indexes for table `roles` -- ALTER TABLE `roles` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `roles_name_unique` (`name`); -- -- Indexes for table `sender_addresses` -- ALTER TABLE `sender_addresses` ADD PRIMARY KEY (`id`); -- -- Indexes for table `settings` -- ALTER TABLE `settings` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `settings_key_unique` (`key`); -- -- Indexes for table `translations` -- ALTER TABLE `translations` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `translations_table_name_column_name_foreign_key_locale_unique` (`table_name`,`column_name`,`foreign_key`,`locale`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`), ADD KEY `users_role_id_foreign` (`role_id`); -- -- Indexes for table `user_roles` -- ALTER TABLE `user_roles` ADD PRIMARY KEY (`user_id`,`role_id`), ADD KEY `user_roles_user_id_index` (`user_id`), ADD KEY `user_roles_role_id_index` (`role_id`); -- -- Indexes for table `volumns` -- ALTER TABLE `volumns` ADD PRIMARY KEY (`id`); -- -- Indexes for table `walking_customers` -- ALTER TABLE `walking_customers` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `countries` -- ALTER TABLE `countries` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=247; -- -- AUTO_INCREMENT for table `customers` -- ALTER TABLE `customers` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `data_rows` -- ALTER TABLE `data_rows` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=105; -- -- AUTO_INCREMENT for table `data_types` -- ALTER TABLE `data_types` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `delivery_addresses` -- ALTER TABLE `delivery_addresses` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- AUTO_INCREMENT for table `dockets` -- ALTER TABLE `dockets` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `invoice_customers` -- ALTER TABLE `invoice_customers` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19; -- -- AUTO_INCREMENT for table `invoice_items` -- ALTER TABLE `invoice_items` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24; -- -- AUTO_INCREMENT for table `menus` -- ALTER TABLE `menus` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `menu_items` -- ALTER TABLE `menu_items` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24; -- -- AUTO_INCREMENT for table `permissions` -- ALTER TABLE `permissions` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=57; -- -- AUTO_INCREMENT for table `prices` -- ALTER TABLE `prices` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2096185; -- -- AUTO_INCREMENT for table `prices_2` -- ALTER TABLE `prices_2` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1243; -- -- AUTO_INCREMENT for table `receiver_addresses` -- ALTER TABLE `receiver_addresses` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- AUTO_INCREMENT for table `roles` -- ALTER TABLE `roles` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `sender_addresses` -- ALTER TABLE `sender_addresses` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; -- -- AUTO_INCREMENT for table `settings` -- ALTER TABLE `settings` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `translations` -- ALTER TABLE `translations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `volumns` -- ALTER TABLE `volumns` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `walking_customers` -- ALTER TABLE `walking_customers` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables -- -- -- Constraints for table `data_rows` -- ALTER TABLE `data_rows` ADD CONSTRAINT `data_rows_data_type_id_foreign` FOREIGN KEY (`data_type_id`) REFERENCES `data_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `menu_items` -- ALTER TABLE `menu_items` ADD CONSTRAINT `menu_items_menu_id_foreign` FOREIGN KEY (`menu_id`) REFERENCES `menus` (`id`) ON DELETE CASCADE; -- -- Constraints for table `permission_role` -- ALTER TABLE `permission_role` ADD CONSTRAINT `permission_role_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `permission_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE; -- -- Constraints for table `users` -- ALTER TABLE `users` ADD CONSTRAINT `users_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`); -- -- Constraints for table `user_roles` -- ALTER TABLE `user_roles` ADD CONSTRAINT `user_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `user_roles_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
CREATE TABLE IF NOT EXISTS `product_category` ( `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100) NOT NULL, `description` varchar(100) );
<filename>closedaydata/OLD/IAT1711191002.sql INSERT INTO pos_itemtemp VALUES("IATT190003861","193007","191001","192001","37000","1","37000","0","37000","1","1","1","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003861","193007","191001","192001","37000","1","37000","0","37000","2","1","1","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003861","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193047"), ("IATT190003861","193046","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193046"), ("IATT190003861","193047","191002","192010","10000","1","10000","0","10000","2","1","2","IAT1711191002","NHO2018000007","PAID","","193047"), ("IATT190003861","193048","191002","192010","8000","1","8000","0","8000","1","1","3","IAT1711191002","NHO2018000007","PAID","","193048"), ("IATT190003861","193055","191002","192010","17000","1","17000","0","17000","1","1","3","IAT1711191002","NHO2018000007","PAID","","193055"), ("IATT190003861","193084","191001","192001","30000","1","30000","0","30000","1","1","3","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003861","193022","191001","192003","30000","1","30000","0","30000","1","1","3","IAT1711191002","NHO2018000007","PAID","","193022"), ("IATT190003862","193192","191001","192005","40000","1","40000","17600","22400","1","1","1","IAT1711191002","NHO2018000007","PAID","","193192"), ("IATT190003862","193011","191001","192001","40000","1","40000","17600","22400","1","1","1","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003862","193022","191001","192003","30000","1","30000","0","30000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193022"), ("IATT190003863","193032","191001","192004","30000","1","30000","13200","16800","1","1","1","IAT1711191002","NHO2018000007","PAID","","193032"), ("IATT190003863","193032","191001","192004","30000","1","30000","13200","16800","2","1","1","IAT1711191002","NHO2018000007","PAID","","193032"), ("IATT190003863","193032","191001","192004","30000","1","30000","13200","16800","3","1","1","IAT1711191002","NHO2018000007","PAID","","193032"), ("IATT190003863","193032","191001","192004","30000","1","30000","13200","16800","4","1","1","IAT1711191002","NHO2018000007","PAID","","193032"), ("IATT190003863","193083","191001","192001","30000","1","30000","13200","16800","1","1","1","IAT1711191002","NHO2018000007","PAID","","193083"), ("IATT190003863","193084","191001","192001","30000","1","30000","13200","16800","1","1","1","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003863","193012","191001","192001","40000","1","40000","17600","22400","1","1","1","IAT1711191002","NHO2018000007","PAID","","193012"), ("IATT190003863","193024","191001","192003","30000","1","30000","0","30000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193024"), ("IATT190003863","193033","191001","192005","42000","1","42000","18480","23520","1","1","1","IAT1711191002","NHO2018000007","PAID","","193033"), ("IATT190003863","193054","191002","192010","20000","1","20000","0","20000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193054"), ("IATT190003863","193054","191002","192010","20000","1","20000","0","20000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193054"), ("IATT190003863","193054","191002","192010","20000","1","20000","0","20000","3","1","1","IAT1711191002","NHO2018000007","PAID","","193054"), ("IATT190003863","193054","191002","192010","20000","1","20000","0","20000","4","1","1","IAT1711191002","NHO2018000007","PAID","","193054"), ("IATT190003863","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193055"), ("IATT190003863","193055","191002","192010","17000","1","17000","0","17000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193055"), ("IATT190003863","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193047"), ("IATT190003863","193047","191002","192010","10000","1","10000","0","10000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193047"), ("IATT190003863","193047","191002","192010","10000","1","10000","0","10000","3","1","1","IAT1711191002","NHO2018000007","PAID","","193047"), ("IATT190003863","193047","191002","192010","10000","1","10000","0","10000","4","1","1","IAT1711191002","NHO2018000007","PAID","","193047"), ("IATT190003864","193029","191001","192004","27000","1","27000","11880","15120","1","1","1","IAT1711191002","NHO2018000007","PAID","","193029"), ("IATT190003864","193085","191001","192001","30000","1","30000","13200","16800","1","1","1","IAT1711191002","NHO2018000007","PAID","","193085"), ("IATT190003864","193018","191001","192002","37000","1","37000","16280","20720","1","1","1","IAT1711191002","NHO2018000007","PAID","","ORIGINAL"), ("IATT190003864","193054","191002","192010","20000","1","20000","0","20000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193054"), ("IATT190003865","193019","191001","192002","40000","1","40000","0","40000","1","1","1","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003865","193113","191001","192003","55000","1","55000","0","55000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193113"), ("IATT190003865","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193055"), ("IATT190003865","193055","191002","192010","17000","1","17000","0","17000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193055"), ("IATT190003866","193048","191002","192010","8000","1","8000","0","8000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193048"), ("IATT190003866","193048","191002","192010","8000","1","8000","0","8000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193048"), ("IATT190003866","193046","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193046"), ("IATT190003866","193011","191001","192001","40000","1","40000","0","40000","1","1","1","IAT1711191002","NHO2018000007","PAID","","ORIGINAL"), ("IATT190003866","193118","191001","192012","20000","1","20000","0","20000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193118"), ("IATT190003866","193071","191001","192012","18000","1","18000","0","18000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193071"), ("IATT190003866","193019","191001","192002","40000","1","40000","0","40000","1","1","1","IAT1711191002","NHO2018000007","PAID","","ORIGINAL"), ("IATT190003867","193022","191001","192003","30000","1","30000","0","30000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193022"), ("IATT190003867","193025","191001","192003","30000","1","30000","0","30000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193025"), ("IATT190003867","193040","191001","192008","20000","1","20000","0","20000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193040"), ("IATT190003867","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193055"), ("IATT190003867","193056","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193056"), ("IATT190003867","193056","191002","192010","17000","1","17000","0","17000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193056"), ("IATT190003868","193019","191001","192002","40000","1","40000","17600","22400","1","1","1","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003868","193086","191001","192002","33000","1","33000","14520","18480","1","1","1","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003868","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193055"), ("IATT190003868","193055","191002","192010","17000","1","17000","0","17000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193055"), ("IATT190003869","193084","191001","192001","30000","1","30000","13200","16800","1","1","1","IAT1711191002","NHO2018000007","PAID","","ORIGINAL"), ("IATT190003869","193118","191001","192012","20000","1","20000","0","20000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193118"), ("IATT190003869","193056","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193056"), ("IATT190003869","193048","191002","192010","8000","1","8000","0","8000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193048"), ("IATT190003870","193084","191001","192001","30000","1","30000","13200","16800","1","1","1","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003870","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193047"), ("IATT190003871","193033","191001","192005","42000","1","42000","18480","23520","1","1","1","IAT1711191002","NHO2018000007","PAID","","193033"), ("IATT190003871","193034","191001","192005","37000","1","37000","16280","20720","1","1","1","IAT1711191002","NHO2018000007","PAID","","193034"), ("IATT190003872","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193047"), ("IATT190003872","193047","191002","192010","10000","1","10000","0","10000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193047"), ("IATT190003873","193032","191001","192004","30000","1","30000","13200","16800","1","1","1","IAT1711191002","NHO2018000007","PAID","","193032"), ("IATT190003873","193078","191001","192001","30000","1","30000","13200","16800","1","1","1","IAT1711191002","NHO2018000007","PAID","","ORIGINAL"), ("IATT190003873","193084","191001","192001","30000","1","30000","13200","16800","1","1","1","IAT1711191002","NHO2018000007","PAID","","ORIGINAL"), ("IATT190003873","193076","191001","192001","30000","1","30000","13200","16800","1","1","1","IAT1711191002","NHO2018000007","PAID","","193076"), ("IATT190003873","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193047"), ("IATT190003873","193047","191002","192010","10000","1","10000","0","10000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193047"), ("IATT190003873","193056","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193056"), ("IATT190003874","193039","191001","192006","36000","1","36000","15840","20160","1","1","1","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003874","193011","191001","192001","40000","1","40000","17600","22400","1","1","1","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003874","193033","191001","192005","42000","1","42000","18480","23520","1","1","1","IAT1711191002","NHO2018000007","PAID","PEDES","193033"), ("IATT190003874","193036","191001","192006","36000","1","36000","15840","20160","1","1","1","IAT1711191002","NHO2018000007","PAID","","ORIGINAL"), ("IATT190003874","193113","191001","192003","55000","1","55000","0","55000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193113"), ("IATT190003874","193029","191001","192004","27000","1","27000","11880","15120","1","1","1","IAT1711191002","NHO2018000007","PAID","","193029"), ("IATT190003874","193070","191001","192012","13000","1","13000","5720","7280","1","1","1","IAT1711191002","NHO2018000007","PAID","","193070"), ("IATT190003874","193022","191001","192003","30000","1","30000","0","30000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193022"), ("IATT190003874","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193055"), ("IATT190003874","193055","191002","192010","17000","1","17000","0","17000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193055"), ("IATT190003874","193055","191002","192010","17000","1","17000","0","17000","3","1","1","IAT1711191002","NHO2018000007","PAID","","193055"), ("IATT190003874","193055","191002","192010","17000","1","17000","0","17000","4","1","1","IAT1711191002","NHO2018000007","PAID","","193055"), ("IATT190003874","193052","191002","192010","20000","1","20000","0","20000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193052"), ("IATT190003874","193052","191002","192010","20000","1","20000","0","20000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193052"), ("IATT190003874","193051","191002","192010","20000","1","20000","0","20000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193051"), ("IATT190003874","193049","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193049"), ("IATT190003875","193056","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193056"), ("IATT190003875","193048","191002","192010","8000","1","8000","0","8000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193048"), ("IATT190003875","193023","191001","192003","30000","1","30000","0","30000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193023"), ("IATT190003875","193037","191001","192006","36000","1","36000","15840","20160","1","1","1","IAT1711191002","NHO2018000007","PAID","","ORIGINAL"), ("IATT190003876","193011","191001","192001","40000","1","40000","17600","22400","1","1","1","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003877","193021","191001","192002","40000","1","40000","17600","22400","1","1","1","IAT1711191002","NHO2018000007","PAID","","ORIGINAL"), ("IATT190003877","193019","191001","192002","40000","1","40000","17600","22400","1","1","1","IAT1711191002","NHO2018000007","PAID","","ORIGINAL"), ("IATT190003877","193030","191001","192004","27000","1","27000","11880","15120","1","1","1","IAT1711191002","NHO2018000007","PAID","","193030"), ("IATT190003877","193056","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193056"), ("IATT190003877","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193055"), ("IATT190003877","193055","191002","192010","17000","1","17000","0","17000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193055"), ("IATT190003878","193009","191001","192001","40000","1","40000","0","40000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193009"), ("IATT190003878","193011","191001","192001","40000","1","40000","0","40000","1","1","1","IAT1711191002","NHO2018000007","PAID","","ORIGINAL"), ("IATT190003878","193113","191001","192003","55000","1","55000","0","55000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193113"), ("IATT190003878","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193055"), ("IATT190003878","193055","191002","192010","17000","1","17000","0","17000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193055"), ("IATT190003878","193048","191002","192010","8000","1","8000","0","8000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193048"), ("IATT190003878","193028","191001","192003","43000","1","43000","0","43000","1","1","1","IAT1711191002","NHO2018000007","PAID","TAKE AWAY !!!!!!!!","193028"), ("IATT190003878","193028","191001","192003","43000","1","43000","0","43000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193028"), ("IATT190003877","193052","191002","192010","20000","1","20000","0","20000","1","1","2","IAT1711191002","NHO2018000007","PAID","","193052"), ("IATT190003879","193078","191001","192001","30000","1","30000","0","30000","1","1","1","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003879","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193047"), ("IATT190003879","193047","191002","192010","10000","1","10000","0","10000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193047"), ("IATT190003880","193036","191001","192006","36000","1","36000","15840","20160","1","1","1","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003881","193084","191001","192001","30000","1","30000","13200","16800","1","1","1","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003881","193078","191001","192001","30000","1","30000","13200","16800","1","1","1","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003881","193011","191001","192001","40000","1","40000","17600","22400","1","1","1","IAT1711191002","NHO2018000007","PAID","","PEDAS"), ("IATT190003881","193056","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193056"), ("IATT190003881","193056","191002","192010","17000","1","17000","0","17000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193056"), ("IATT190003881","193056","191002","192010","17000","1","17000","0","17000","3","1","1","IAT1711191002","NHO2018000007","PAID","","193056"), ("IATT190003881","193048","191002","192010","8000","1","8000","0","8000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193048"), ("IATT190003881","193067","191001","192003","7000","1","7000","0","7000","1","1","1","IAT1711191002","NHO2018000007","PAID","","193067"), ("IATT190003881","193067","191001","192003","7000","1","7000","0","7000","2","1","1","IAT1711191002","NHO2018000007","PAID","","193067"); INSERT INTO pos_salestemp VALUES("IATT190003861","","2","189000","0","18900","0","207900","210000","17/11/2019","11:23","2019-11-17","13:10:28","ISU000006","tbl0012","CLOSED","1","","IATR190003754","","","","","IAT1711191002","NHO2018000007"), ("IATT190003862","","3","110000","35200","7480","0","82280","100000","17/11/2019","12:09","2019-11-17","12:45:40","ISU000006","tbl0023","CLOSED","1","","IATR190003753","","","","","IAT1711191002","NHO2018000007"), ("IATT190003863","NHM2019003420 M abdul azis","8","446000","115280","33072","0","363792","400000","17/11/2019","13:48","2019-11-17","14:39:55","ISU000006","tbl0022","CLOSED","1","","IATR190003756","","","","","IAT1711191002","NHO2018000007"), ("IATT190003864","NHM2019003676 Puteri Tiara Dwiana","2","114000","41360","7264","0","79904","79904","17/11/2019","13:50","2019-11-17","14:38:41","ISU000006","tbl0010","CLOSED","1","","IATR190003755","","","","","IAT1711191002","NHO2018000007"), ("IATT190003865","","2","129000","0","12900","0","141900","141900","17/11/2019","14:12","2019-11-17","15:11:43","ISU000004","tbl0011","CLOSED","1","","IATR190003763","","","","","IAT1711191002","NHO2018000007"), ("IATT190003866","","2","144000","0","14400","0","158400","158400","17/11/2019","14:14","2019-11-17","14:41:39","ISU000004","tbl0012","CLOSED","1","","IATR190003757","","","","","IAT1711191002","NHO2018000007"), ("IATT190003867","","3","131000","0","13100","0","144100","144100","17/11/2019","14:19","2019-11-17","14:58:01","ISU000004","tbl0014","CLOSED","1","","IATR190003758","","","","","IAT1711191002","NHO2018000007"), ("IATT190003868","","2","107000","32120","7488","0","82368","100000","17/11/2019","14:27","2019-11-17","15:03:27","ISU000004","tbl0023","CLOSED","1","","IATR190003760","","","","","IAT1711191002","NHO2018000007"), ("IATT190003869","","1","75000","13200","6180","0","67980","100000","17/11/2019","14:36","2019-11-17","15:02:07","ISU000004","tbl0009","CLOSED","1","","IATR190003759","","","","","IAT1711191002","NHO2018000007"), ("IATT190003870","","1","40000","13200","2680","0","29480","50000","17/11/2019","14:41","2019-11-17","15:30:46","ISU000004","tbl0005","CLOSED","1","","IATR190003764","","","","","IAT1711191002","NHO2018000007"), ("IATT190003871","","1","79000","34760","4424","0","48664","50000","17/11/2019","14:42","2019-11-17","15:09:59","ISU000004","tbl0019","CLOSED","1","","IATR190003762","","","","","IAT1711191002","NHO2018000007"), ("IATT190003872","","1","20000","0","2000","0","22000","22000","17/11/2019","14:42","2019-11-17","15:09:29","ISU000004","tbl0020","CLOSED","1","","IATR190003761","","","","","IAT1711191002","NHO2018000007"), ("IATT190003873","","3","157000","52800","10420","0","114620","114620","17/11/2019","15:06","2019-11-17","15:40:12","ISU000004","tbl0012","CLOSED","1","","IATR190003765","","","","","IAT1711191002","NHO2018000007"), ("IATT190003874","","5","417000","85360","33164","0","364804","364804","17/11/2019","15:27","2019-11-17","16:12:05","ISU000004","tbl0021","CLOSED","1","","IATR190003766","","","","","IAT1711191002","NHO2018000007"), ("IATT190003875","","2","91000","15840","7516","0","82676","100000","17/11/2019","15:47","2019-11-17","16:18:30","ISU000004","tbl0014","CLOSED","1","","IATR190003767","","","","","IAT1711191002","NHO2018000007"), ("IATT190003876","","1","40000","17600","2240","0","24640","25000","17/11/2019","16:21","2019-11-17","17:57:20","ISU000004","tbl0018","CLOSED","1","","IATR190003768","","","","","IAT1711191002","NHO2018000007"), ("IATT190003877","","3","178000","47080","13092","0","144012","200000","17/11/2019","19:32","2019-11-17","20:33:23","ISU000004","tbl0010","CLOSED","1","","IATR190003770","","","","","IAT1711191002","NHO2018000007"), ("IATT190003878","","2","263000","0","26300","0","289300","289300","17/11/2019","19:34","2019-11-17","20:23:42","ISU000004","tbl0012","CLOSED","1","","IATR190003769","","","","","IAT1711191002","NHO2018000007"), ("IATT190003879","","1","50000","0","5000","0","55000","55000","17/11/2019","20:18","2019-11-17","20:55:58","ISU000004","tbl0011","CLOSED","1","","IATR190003771","","","","","IAT1711191002","NHO2018000007"), ("IATT190003880","","1","36000","15840","2016","0","22176","22200","17/11/2019","21:00","2019-11-17","21:13:24","ISU000004","tbl0009","CLOSED","1","","IATR190003772","","","","","IAT1711191002","NHO2018000007"), ("IATT190003881","","3","173000","44000","12900","0","141900","200000","17/11/2019","21:18","2019-11-17","21:50:45","ISU000004","tbl0012","CLOSED","1","","IATR190003773","","","","","IAT1711191002","NHO2018000007"); INSERT INTO pos_promotion_h VALUES("IATT190003862","NPRM18000020","DISC ITEM","1","35200","PROMO LAGI VIRAL 30%+20%","IAT1711191002","PAID","NHO2018000007"), ("IATT190003864","NPRM18000020","DISC ITEM","1","41360","PROMO LAGI VIRAL 30%+20%","IAT1711191002","PAID","NHO2018000007"), ("IATT190003863","NPRM18000020","DISC ITEM","1","115280","PROMO LAGI VIRAL 30%+20%","IAT1711191002","PAID","NHO2018000007"), ("IATT190003869","NPRM18000020","DISC ITEM","1","13200","PROMO LAGI VIRAL 30%+20%","IAT1711191002","PAID","NHO2018000007"), ("IATT190003868","NPRM18000020","DISC ITEM","1","32120","PROMO LAGI VIRAL 30%+20%","IAT1711191002","PAID","NHO2018000007"), ("IATT190003871","NPRM18000020","DISC ITEM","1","34760","PROMO LAGI VIRAL 30%+20%","IAT1711191002","PAID","NHO2018000007"), ("IATT190003870","NPRM18000020","DISC ITEM","1","13200","PROMO LAGI VIRAL 30%+20%","IAT1711191002","PAID","NHO2018000007"), ("IATT190003873","NPRM18000020","DISC ITEM","1","52800","PROMO LAGI VIRAL 30%+20%","IAT1711191002","PAID","NHO2018000007"), ("IATT190003874","NPRM18000020","DISC ITEM","1","85360","PROMO LAGI VIRAL 30%+20%","IAT1711191002","PAID","NHO2018000007"), ("IATT190003875","NPRM18000020","DISC ITEM","1","15840","PROMO LAGI VIRAL 30%+20%","IAT1711191002","PAID","NHO2018000007"), ("IATT190003876","NPRM18000020","DISC ITEM","1","17600","PROMO LAGI VIRAL 30%+20%","IAT1711191002","PAID","NHO2018000007"), ("IATT190003877","NPRM18000020","DISC ITEM","1","47080","PROMO LAGI VIRAL 30%+20%","IAT1711191002","PAID","NHO2018000007"), ("IATT190003880","NPRM18000020","DISC ITEM","1","15840","PROMO LAGI VIRAL 30%+20%","IAT1711191002","PAID","NHO2018000007"), ("IATT190003881","NPRM18000020","DISC ITEM","1","44000","PROMO LAGI VIRAL 30%+20%","IAT1711191002","PAID","NHO2018000007"); INSERT INTO pos_promotion_d VALUES("IATT190003862","NPRM18000020","DISC ITEM","1","1","193192","1","17600","IAT1711191002","PAID","NHO2018000007"), ("IATT190003862","NPRM18000020","DISC ITEM","1","1","193011","1","17600","IAT1711191002","PAID","NHO2018000007"), ("IATT190003864","NPRM18000020","DISC ITEM","1","1","193029","1","11880","IAT1711191002","PAID","NHO2018000007"), ("IATT190003864","NPRM18000020","DISC ITEM","1","1","193085","1","13200","IAT1711191002","PAID","NHO2018000007"), ("IATT190003864","NPRM18000020","DISC ITEM","1","1","193018","1","16280","IAT1711191002","PAID","NHO2018000007"), ("IATT190003863","NPRM18000020","DISC ITEM","1","1","193032","1","13200","IAT1711191002","PAID","NHO2018000007"), ("IATT190003863","NPRM18000020","DISC ITEM","1","1","193032","2","13200","IAT1711191002","PAID","NHO2018000007"), ("IATT190003863","NPRM18000020","DISC ITEM","1","1","193032","3","13200","IAT1711191002","PAID","NHO2018000007"), ("IATT190003863","NPRM18000020","DISC ITEM","1","1","193032","4","13200","IAT1711191002","PAID","NHO2018000007"), ("IATT190003863","NPRM18000020","DISC ITEM","1","1","193083","1","13200","IAT1711191002","PAID","NHO2018000007"), ("IATT190003863","NPRM18000020","DISC ITEM","1","1","193084","1","13200","IAT1711191002","PAID","NHO2018000007"), ("IATT190003863","NPRM18000020","DISC ITEM","1","1","193012","1","17600","IAT1711191002","PAID","NHO2018000007"), ("IATT190003863","NPRM18000020","DISC ITEM","1","1","193033","1","18480","IAT1711191002","PAID","NHO2018000007"), ("IATT190003869","NPRM18000020","DISC ITEM","1","1","193084","1","13200","IAT1711191002","PAID","NHO2018000007"), ("IATT190003868","NPRM18000020","DISC ITEM","1","1","193019","1","17600","IAT1711191002","PAID","NHO2018000007"), ("IATT190003868","NPRM18000020","DISC ITEM","1","1","193086","1","14520","IAT1711191002","PAID","NHO2018000007"), ("IATT190003871","NPRM18000020","DISC ITEM","1","1","193033","1","18480","IAT1711191002","PAID","NHO2018000007"), ("IATT190003871","NPRM18000020","DISC ITEM","1","1","193034","1","16280","IAT1711191002","PAID","NHO2018000007"), ("IATT190003870","NPRM18000020","DISC ITEM","1","1","193084","1","13200","IAT1711191002","PAID","NHO2018000007"), ("IATT190003873","NPRM18000020","DISC ITEM","1","1","193032","1","13200","IAT1711191002","PAID","NHO2018000007"), ("IATT190003873","NPRM18000020","DISC ITEM","1","1","193078","1","13200","IAT1711191002","PAID","NHO2018000007"), ("IATT190003873","NPRM18000020","DISC ITEM","1","1","193084","1","13200","IAT1711191002","PAID","NHO2018000007"), ("IATT190003873","NPRM18000020","DISC ITEM","1","1","193076","1","13200","IAT1711191002","PAID","NHO2018000007"), ("IATT190003874","NPRM18000020","DISC ITEM","1","1","193039","1","15840","IAT1711191002","PAID","NHO2018000007"), ("IATT190003874","NPRM18000020","DISC ITEM","1","1","193011","1","17600","IAT1711191002","PAID","NHO2018000007"), ("IATT190003874","NPRM18000020","DISC ITEM","1","1","193033","1","18480","IAT1711191002","PAID","NHO2018000007"), ("IATT190003874","NPRM18000020","DISC ITEM","1","1","193036","1","15840","IAT1711191002","PAID","NHO2018000007"), ("IATT190003874","NPRM18000020","DISC ITEM","1","1","193029","1","11880","IAT1711191002","PAID","NHO2018000007"), ("IATT190003874","NPRM18000020","DISC ITEM","1","1","193070","1","5720","IAT1711191002","PAID","NHO2018000007"), ("IATT190003875","NPRM18000020","DISC ITEM","1","1","193037","1","15840","IAT1711191002","PAID","NHO2018000007"), ("IATT190003876","NPRM18000020","DISC ITEM","1","1","193011","1","17600","IAT1711191002","PAID","NHO2018000007"), ("IATT190003877","NPRM18000020","DISC ITEM","1","1","193021","1","17600","IAT1711191002","PAID","NHO2018000007"), ("IATT190003877","NPRM18000020","DISC ITEM","1","1","193019","1","17600","IAT1711191002","PAID","NHO2018000007"), ("IATT190003877","NPRM18000020","DISC ITEM","1","1","193030","1","11880","IAT1711191002","PAID","NHO2018000007"), ("IATT190003880","NPRM18000020","DISC ITEM","1","1","193036","1","15840","IAT1711191002","PAID","NHO2018000007"), ("IATT190003881","NPRM18000020","DISC ITEM","1","1","193084","1","13200","IAT1711191002","PAID","NHO2018000007"), ("IATT190003881","NPRM18000020","DISC ITEM","1","1","193078","1","13200","IAT1711191002","PAID","NHO2018000007"), ("IATT190003881","NPRM18000020","DISC ITEM","1","1","193011","1","17600","IAT1711191002","PAID","NHO2018000007"); INSERT INTO pos_paymenttemp VALUES("IATT190003862","CASH","CASH","82280","100000","ISU000006","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003861","CASH","CASH","207900","210000","ISU000006","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003864","CARD","DEBIT BCA","79904","79904","ISU000006","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003863","CASH","CASH","363792","400000","ISU000006","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003866","CARD","DEBIT BCA","158400","158400","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003867","CARD","DEBIT BCA","144100","144100","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003869","CASH","CASH","67980","100000","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003868","CASH","CASH","82368","100000","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003872","CASH","OVO","22000","22000","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003871","CASH","CASH","48664","50000","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003865","CARD","DEBIT BCA","141900","141900","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003870","CASH","CASH","29480","50000","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003873","CARD","DEBIT BCA","114620","114620","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003874","CARD","VISA","364804","364804","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003875","CASH","CASH","82676","100000","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003876","CASH","CASH","24640","25000","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003878","CARD","DEBIT BCA","289300","289300","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003877","CASH","CASH","144012","200000","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003879","CASH","OVO","55000","55000","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003880","CASH","CASH","22176","22200","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007"), ("IATT190003881","CASH","CASH","141900","200000","ISU000004","2019-11-17","","1","","CLOSED","IAT1711191002","NHO2018000007");
create or replace function insert_or_get_archetype(input varchar) returns setof integer as $$ begin return query with new_archetype as ( insert into archetypes(name) values(input) on conflict do nothing returning id ) select * from new_archetype union select id from archetypes where name = input; end; $$ language plpgsql;
INSERT INTO author VALUES (next value for s_author_id, 'George', 'Orwell', '1903-06-25', 1903, null) INSERT INTO book VALUES (3, 2, null, null, 'O Alquimista', 1988, 4, null, null, 1, null) INSERT INTO book VALUES (4, 2, null, null, 'Brida', 1990, 2, null, null, null, null) INSERT INTO book VALUES (2, 1, null, null, 'Animal Farm', 1945, 1, null, null, null, '2010-01-01 00:00:00') CREATE TABLE book_to_book_store ( book_store_name VARCHAR(400) NOT NULL, book_id INTEGER NOT NULL, stock INTEGER, CONSTRAINT pk_b2bs PRIMARY KEY(book_store_name, book_id), CONSTRAINT fk_b2bs_bs_name FOREIGN KEY (book_store_name) REFERENCES book_store (name) ON DELETE CASCADE, CONSTRAINT fk_b2bs_b_id FOREIGN KEY (book_id) REFERENCES book (id) ON DELETE CASCADE) INSERT INTO book_to_book_store VALUES ('<NAME>', 1, 10) CREATE TABLE author ( id INT NOT NULL, first_name VARCHAR(50), last_name VARCHAR(50) NOT NULL, date_of_birth DATE, year_of_birth INT, address VARCHAR(50), CONSTRAINT pk_t_author PRIMARY KEY (ID)) CREATE TABLE book ( id INT NOT NULL, author_id INT NOT NULL, co_author_id INT, details_id INT, title VARCHAR(400) NOT NULL, published_in INT, language_id INT, content_text CLOB, content_pdf BLOB, rec_version INT, rec_timestamp TIMESTAMP, CONSTRAINT pk_t_book PRIMARY KEY (id), CONSTRAINT fk_t_book_author_id FOREIGN KEY (author_id) REFERENCES author(id), CONSTRAINT fk_t_book_co_author_id FOREIGN KEY (co_author_id) REFERENCES author(id)) INSERT INTO author VALUES (next value for s_author_id, 'Paulo', 'Coelho', '1947-08-24', 1947, null) CREATE TABLE book_store ( name VARCHAR(400) NOT NULL, CONSTRAINT uk_t_book_store_name PRIMARY KEY(name))
<filename>src/test/resources/sql/reindex/2fb956b8.sql -- file:create_index.sql ln:1033 expect:true REINDEX (VERBOSE) TABLE reindex_verbose
<reponame>fragilefamilieschallenge/metadata_app<filename>ffmeta/data/ffmetadata_ddl.sql -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.5.64-MariaDB - MariaDB Server -- Server OS: Linux -- HeidiSQL Version: 9.5.0.5196 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -- Dumping database structure for FFMeta CREATE DATABASE IF NOT EXISTS `FFMeta` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `FFMeta`; -- Dumping structure for table FFMeta.data_type DROP TABLE IF EXISTS `data_type`; CREATE TABLE IF NOT EXISTS `data_type` ( `id` char(30) NOT NULL, `name` char(30) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Data exporting was unselected. -- Dumping structure for table FFMeta.group DROP TABLE IF EXISTS `group`; CREATE TABLE IF NOT EXISTS `group` ( `id` int(11) NOT NULL AUTO_INCREMENT, `group_id` text, `count` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Data exporting was unselected. -- Dumping structure for table FFMeta.measure DROP TABLE IF EXISTS `measure`; CREATE TABLE IF NOT EXISTS `measure` ( `id` tinyint(1) NOT NULL, `name` char(100) CHARACTER SET latin1 DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- Data exporting was unselected. -- Dumping structure for table FFMeta.raw2 DROP TABLE IF EXISTS `raw2`; CREATE TABLE IF NOT EXISTS `raw2` ( `new_name` char(40) DEFAULT NULL, `old_name` char(40) DEFAULT NULL, `varlab` text, `group` char(30) DEFAULT NULL, `topics` char(120) DEFAULT NULL, `subtopics` char(120) DEFAULT NULL, `n_cities_asked` int(4) DEFAULT NULL, `q_group_N` int(11) DEFAULT NULL, `q_group_list` text, `type` char(30) DEFAULT NULL, `warning` char(200) CHARACTER SET latin1 DEFAULT NULL, `scale` char(100) CHARACTER SET latin1 DEFAULT NULL, `scope` char(10) DEFAULT NULL, `source` char(30) DEFAULT NULL, `respondent` char(30) DEFAULT NULL, `wave` char(30) CHARACTER SET latin1 DEFAULT NULL, `section` char(1) DEFAULT NULL, `leaf` char(30) DEFAULT NULL, `obs` int(4) DEFAULT NULL, `min` int(7) DEFAULT NULL, `max` int(20) DEFAULT NULL, `avg` float(7) DEFAULT NULL, `std` float(7) DEFAULT NULL, `value1` varchar(20) DEFAULT NULL, `label1` varchar(200) DEFAULT NULL, `freq1` int(7) DEFAULT NULL, `per1` float(7) DEFAULT NULL, `value2` varchar(20) DEFAULT NULL, `label2` varchar(200) DEFAULT NULL, `freq2` int(7) DEFAULT NULL, `per2` float(7) DEFAULT NULL, `value3` varchar(20) DEFAULT NULL, `label3` varchar(200) DEFAULT NULL, `freq3` int(7) DEFAULT NULL, `per3` float(7) DEFAULT NULL, `value4` varchar(20) DEFAULT NULL, `label4` varchar(200) DEFAULT NULL, `freq4` int(7) DEFAULT NULL, `per4` float(7) DEFAULT NULL, `value5` varchar(20) DEFAULT NULL, `label5` varchar(200) DEFAULT NULL, `freq5` int(7) DEFAULT NULL, `per5` float(7) DEFAULT NULL, `value6` varchar(20) DEFAULT NULL, `label6` varchar(200) DEFAULT NULL, `freq6` int(7) DEFAULT NULL, `per6` float(7) DEFAULT NULL, `value7` varchar(20) DEFAULT NULL, `label7` varchar(200) DEFAULT NULL, `freq7` int(7) DEFAULT NULL, `per7` float(7) DEFAULT NULL, `value8` varchar(20) DEFAULT NULL, `label8` varchar(200) DEFAULT NULL, `freq8` int(7) DEFAULT NULL, `per8` float(7) DEFAULT NULL, `value9` varchar(20) DEFAULT NULL, `label9` varchar(200) DEFAULT NULL, `freq9` int(7) DEFAULT NULL, `per9` float(7) DEFAULT NULL, `value10` varchar(20) DEFAULT NULL, `label10` varchar(200) DEFAULT NULL, `freq10` int(7) DEFAULT NULL, `per10` float(7) DEFAULT NULL, `value11` varchar(20) DEFAULT NULL, `label11` varchar(200) DEFAULT NULL, `freq11` int(7) DEFAULT NULL, `per11` float(7) DEFAULT NULL, `value12` varchar(20) DEFAULT NULL, `label12` varchar(200) DEFAULT NULL, `freq12` int(7) DEFAULT NULL, `per12` float(7) DEFAULT NULL, `value13` varchar(20) DEFAULT NULL, `label13` varchar(200) DEFAULT NULL, `freq13` int(7) DEFAULT NULL, `per13` float(7) DEFAULT NULL, `value14` varchar(20) DEFAULT NULL, `label14` varchar(200) DEFAULT NULL, `freq14` int(7) DEFAULT NULL, `per14` float(7) DEFAULT NULL, `value15` varchar(20) DEFAULT NULL, `label15` varchar(200) DEFAULT NULL, `freq15` int(7) DEFAULT NULL, `per15` float(7) DEFAULT NULL, `value16` varchar(20) DEFAULT NULL, `label16` varchar(200) DEFAULT NULL, `freq16` int(7) DEFAULT NULL, `per16` float(7) DEFAULT NULL, `value17` varchar(20) DEFAULT NULL, `label17` varchar(200) DEFAULT NULL, `freq17` int(7) DEFAULT NULL, `per17` float(7) DEFAULT NULL, `value18` varchar(20) DEFAULT NULL, `label18` varchar(200) DEFAULT NULL, `freq18` int(7) DEFAULT NULL, `per18` float(7) DEFAULT NULL, `value19` varchar(20) DEFAULT NULL, `label19` varchar(200) DEFAULT NULL, `freq19` int(7) DEFAULT NULL, `per19` float(7) DEFAULT NULL, `value20` varchar(20) DEFAULT NULL, `label20` varchar(200) DEFAULT NULL, `freq20` int(7) DEFAULT NULL, `per20` float(7) DEFAULT NULL, `value21` varchar(20) DEFAULT NULL, `label21` varchar(200) DEFAULT NULL, `freq21` int(7) DEFAULT NULL, `per21` float(7) DEFAULT NULL, `value22` varchar(20) DEFAULT NULL, `label22` varchar(200) DEFAULT NULL, `freq22` int(7) DEFAULT NULL, `per22` float(7) DEFAULT NULL, `value23` varchar(20) DEFAULT NULL, `label23` varchar(200) DEFAULT NULL, `freq23` int(7) DEFAULT NULL, `per23` float(7) DEFAULT NULL, `value24` varchar(20) DEFAULT NULL, `label24` varchar(200) DEFAULT NULL, `freq24` int(7) DEFAULT NULL, `per24` float(7) DEFAULT NULL, `value25` varchar(20) DEFAULT NULL, `label25` varchar(200) DEFAULT NULL, `freq25` int(7) DEFAULT NULL, `per25` float(7) DEFAULT NULL, `value26` varchar(20) DEFAULT NULL, `label26` varchar(200) DEFAULT NULL, `freq26` int(7) DEFAULT NULL, `per26` float(7) DEFAULT NULL, `value27` varchar(20) DEFAULT NULL, `label27` varchar(200) DEFAULT NULL, `freq27` int(7) DEFAULT NULL, `per27` float(7) DEFAULT NULL, `value28` varchar(20) DEFAULT NULL, `label28` varchar(200) DEFAULT NULL, `freq28` int(7) DEFAULT NULL, `per28` float(7) DEFAULT NULL, `value29` varchar(20) DEFAULT NULL, `label29` varchar(200) DEFAULT NULL, `freq29` int(7) DEFAULT NULL, `per29` float(7) DEFAULT NULL, `value30` varchar(20) DEFAULT NULL, `label30` varchar(200) DEFAULT NULL, `freq30` int(7) DEFAULT NULL, `per30` float(7) DEFAULT NULL, `fp_fchild` tinyint(1) DEFAULT NULL, `fp_mother` tinyint(1) DEFAULT NULL, `fp_father` tinyint(1) DEFAULT NULL, `fp_PCG` tinyint(1) DEFAULT NULL, `fp_partner` tinyint(1) DEFAULT NULL, `fp_other` tinyint(1) DEFAULT NULL, `fp_none` tinyint(1) DEFAULT NULL, `survey` char(100) DEFAULT NULL, `qtext` text CHARACTER SET latin1, `probe` text CHARACTER SET latin1, `in_FFC_file` char(20) CHARACTER SET latin1 DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- Data exporting was unselected. -- Dumping structure for table FFMeta.response2 DROP TABLE IF EXISTS `response2`; CREATE TABLE IF NOT EXISTS `response2` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` char(40) DEFAULT NULL, `label` text, `value` char(10) DEFAULT NULL, `freq` int(7) DEFAULT NULL, `per` float(7) DEFAULT NULL, PRIMARY KEY (`id`), KEY `name` (`name`), CONSTRAINT `response2_ibfk_1` FOREIGN KEY (`name`) REFERENCES `variable3` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=3843497 DEFAULT CHARSET=latin1; -- Data exporting was unselected. -- Dumping structure for table FFMeta.subtopics DROP TABLE IF EXISTS `subtopics`; CREATE TABLE IF NOT EXISTS `subtopics` ( `id` int(11) NOT NULL AUTO_INCREMENT, `subtopic` char(50) CHARACTER SET latin1 DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=783 DEFAULT CHARSET=utf8; -- Data exporting was unselected. -- Dumping structure for table FFMeta.survey DROP TABLE IF EXISTS `survey`; CREATE TABLE IF NOT EXISTS `survey` ( `id` char(1) CHARACTER SET latin1 NOT NULL, `name` char(100) CHARACTER SET latin1 DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- Data exporting was unselected. -- Dumping structure for table FFMeta.topic DROP TABLE IF EXISTS `topic`; CREATE TABLE IF NOT EXISTS `topic` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` char(30) DEFAULT NULL, `topic` char(100) NOT NULL, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `topic` (`topic`), CONSTRAINT `topic_ibfk_1` FOREIGN KEY (`name`) REFERENCES `variable` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=131070 DEFAULT CHARSET=latin1; -- Data exporting was unselected. -- Dumping structure for table FFMeta.topics DROP TABLE IF EXISTS `topics`; CREATE TABLE IF NOT EXISTS `topics` ( `id` int(11) NOT NULL AUTO_INCREMENT, `topic` char(50) CHARACTER SET latin1 DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=246 DEFAULT CHARSET=utf8; -- Data exporting was unselected. -- Dumping structure for table FFMeta.umbrella DROP TABLE IF EXISTS `umbrella`; CREATE TABLE IF NOT EXISTS `umbrella` ( `id` int(11) NOT NULL AUTO_INCREMENT, `topic` char(100) NOT NULL, `umbrella` char(100) DEFAULT NULL, PRIMARY KEY (`id`), KEY `topic` (`topic`), CONSTRAINT `umbrella_ibfk_1` FOREIGN KEY (`topic`) REFERENCES `topic` (`topic`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=347 DEFAULT CHARSET=latin1; -- Data exporting was unselected. -- Dumping structure for table FFMeta.variable DROP TABLE IF EXISTS `variable`; CREATE TABLE IF NOT EXISTS `variable` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` char(30) DEFAULT NULL, `label` text CHARACTER SET utf8, `old_name` text, `data_type` text, `warning` int(11) DEFAULT NULL, `group_id` text, `group_subid` text, `data_source` text, `respondent` char(40) DEFAULT NULL, `wave` text, `scope` text, `section` text, `leaf` text, `measures` char(100) DEFAULT NULL, `probe` text, `qText` text, `fp_fchild` tinyint(1) DEFAULT NULL, `fp_mother` tinyint(1) DEFAULT NULL, `fp_father` tinyint(1) DEFAULT NULL, `fp_PCG` tinyint(1) DEFAULT NULL, `fp_partner` tinyint(1) DEFAULT NULL, `fp_other` tinyint(1) DEFAULT NULL, `survey` char(1) DEFAULT NULL, `focal_person` char(50) DEFAULT NULL, `survey2` char(100) DEFAULT NULL, `type` char(30) DEFAULT NULL, `wave2` char(10) DEFAULT NULL, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `measures` (`measures`), KEY `respondent` (`respondent`), KEY `survey` (`survey`), KEY `focal_person` (`focal_person`), KEY `survey2` (`survey2`) ) ENGINE=InnoDB AUTO_INCREMENT=102286 DEFAULT CHARSET=latin1; -- Data exporting was unselected. -- Dumping structure for table FFMeta.variable3 DROP TABLE IF EXISTS `variable3`; CREATE TABLE IF NOT EXISTS `variable3` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` char(40) DEFAULT NULL, `label` text CHARACTER SET utf8, `old_name` char(40) CHARACTER SET utf8 DEFAULT NULL, `warning` char(200) DEFAULT NULL, `group_id` text, `data_source` char(20) DEFAULT NULL, `respondent` char(40) DEFAULT NULL, `n_cities_asked` int(11) DEFAULT NULL, `section` text, `leaf` text, `scale` char(100) DEFAULT NULL, `probe` text, `qText` text, `fp_fchild` tinyint(1) DEFAULT NULL, `fp_mother` tinyint(1) DEFAULT NULL, `fp_father` tinyint(1) DEFAULT NULL, `fp_PCG` tinyint(1) DEFAULT NULL, `fp_partner` tinyint(1) DEFAULT NULL, `fp_other` tinyint(1) DEFAULT NULL, `focal_person` char(50) DEFAULT NULL, `survey` char(100) DEFAULT NULL, `data_type` char(30) DEFAULT NULL, `wave` char(10) DEFAULT NULL, `topics` char(200) DEFAULT NULL COMMENT 'Calculated field - concatenation of topic1/topic2 suitable for search results.', `subtopics` char(200) DEFAULT NULL COMMENT 'Calculated field - concatenation of subtopic1/subtopic2 suitable for search results.', `in_FFC_file` char(20) DEFAULT NULL, `obs` int(4) DEFAULT NULL, `min` int(7) DEFAULT NULL, `max` int(20) DEFAULT NULL, `avg` float(7) DEFAULT NULL, `std` float(7) DEFAULT NULL, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `survey2` (`survey`), KEY `measures` (`scale`), KEY `wave` (`wave`), KEY `respondent` (`respondent`), KEY `data_source` (`data_source`), KEY `data_type` (`data_type`), KEY `focal_person` (`focal_person`), KEY `topics` (`topics`), KEY `subtopics` (`subtopics`) ) ENGINE=InnoDB AUTO_INCREMENT=348995 DEFAULT CHARSET=latin1; -- Data exporting was unselected. -- Dumping structure for table FFMeta.variable_bk DROP TABLE IF EXISTS `variable_bk`; CREATE TABLE IF NOT EXISTS `variable_bk` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` text, `label` text, `old_name` text, `data_type` text, `warning` int(11) DEFAULT NULL, `group_id` text, `group_subid` text, `data_source` text, `respondent` text, `wave` text, `scope` text, `section` text, `leaf` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Data exporting was unselected. -- Dumping structure for table FFMeta.wave DROP TABLE IF EXISTS `wave`; CREATE TABLE IF NOT EXISTS `wave` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` char(30) DEFAULT NULL, `order_id` tinyint(4) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=latin1; -- Data exporting was unselected. /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/* -- DROP TABLES drop table if exists fruit; */ /* -- DROP SCHEMA drop schema if exists dev; -- CREATE DATABASE create schema dev; */ -------------------------------------------------------------------------------- -- Table : fruit create table fruit ( id integer not null , name character varying(10) , price integer , primary key (id) ); -- INSERT文 insert into fruit(id,name,price) values (1,'APPLE',300); insert into fruit(id,name,price) values (2,'ORANGE',200); insert into fruit(id,name,price) values (3,'BANANA',100); insert into fruit(id,name,price) values (4,'PINEAPPLE',456); insert into fruit(id,name,price) values (5,'PPAP',100000000);
CREATE TABLE "public"."resources" ("id" serial NOT NULL, "address" text, "contact_name" text NOT NULL, "contact_number" text NOT NULL, "description" text, "resource_type_id" integer NOT NULL, "district_id" integer NOT NULL, "upvote_count" integer, "downvote_count" integer, "verified_at" timestamptz, "created_at" timestamptz NOT NULL DEFAULT now(), "updated_at" timestamptz NOT NULL DEFAULT now(), PRIMARY KEY ("id"), FOREIGN KEY ("district_id") REFERENCES "public"."districts"("id") ON UPDATE cascade ON DELETE cascade, FOREIGN KEY ("resource_type_id") REFERENCES "public"."resources_type"("id") ON UPDATE cascade ON DELETE cascade ); CREATE OR REPLACE FUNCTION "public"."set_current_timestamp_updated_at"() RETURNS TRIGGER AS $$ DECLARE _new record; BEGIN _new := NEW; _new."updated_at" = NOW(); RETURN _new; END; $$ LANGUAGE plpgsql; CREATE TRIGGER "set_public_resources_updated_at" BEFORE UPDATE ON "public"."resources" FOR EACH ROW EXECUTE PROCEDURE "public"."set_current_timestamp_updated_at"(); COMMENT ON TRIGGER "set_public_resources_updated_at" ON "public"."resources" IS 'trigger to set value of column "updated_at" to current timestamp on row update';
<reponame>SemanticComputing/yasgui -- -------------------------------------------------------- -- -- Table structure for table `Bookmarks` -- CREATE TABLE IF NOT EXISTS `Bookmarks` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `UserId` int(11) NOT NULL, `Endpoint` text CHARACTER SET utf8, `Query` text CHARACTER SET utf8 NOT NULL, `Title` text, PRIMARY KEY (`Id`), KEY `UserId` (`UserId`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=18 ; -- -------------------------------------------------------- -- -- Table structure for table `Deltas` -- CREATE TABLE IF NOT EXISTS `Deltas` ( `Id` int(11) NOT NULL, `Time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `Users` -- CREATE TABLE IF NOT EXISTS `Users` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `OpenId` text CHARACTER SET utf8 NOT NULL, `UniqueId` varchar(12) CHARACTER SET utf8 NOT NULL, `FirstName` text CHARACTER SET utf8, `LastName` text CHARACTER SET utf8, `FullName` text, `NickName` text, `Email` text, `LastLogin` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;
<filename>dvd_rental_store/triggers/drs_language_biu.sql prompt - trigger drs_language_biu create or replace trigger drs_language_biu before insert or update on drs_language for each row begin :new.last_update := current_date; end; /
<filename>pahma/mediaAllImages.sql SELECT h2.name AS objectcsid, cc.objectnumber, h1.name AS mediacsid, regexp_replace(mc.description,E'[\\t\\n\\r]+', ' ', 'g') AS description, bc.name, mc.creator AS creatorRefname, REGEXP_REPLACE(mc.creator, '^.*\)''(.*)''$', '\1') AS creator, mc.blobcsid, mc.copyrightstatement, mc.identificationnumber, mc.rightsholder AS rightsholderRefname, REGEXP_REPLACE(mc.rightsholder, '^.*\)''(.*)''$', '\1') AS rightsholder, mc.contributor, mp.approvedforweb, cp.pahmatmslegacydepartment AS pahmatmslegacydepartment, (SELECT STRING_AGG(DISTINCT REGEXP_REPLACE(osl.item, '^.*\)''(.*)''$', '\1'),'␥') AS "status_ss" FROM collectionobjects_common cc LEFT OUTER JOIN collectionobjects_pahma_pahmaobjectstatuslist osl ON (cc.id=osl.id) JOIN misc m ON (m.id=cc.id AND m.lifecyclestate<>'deleted') WHERE cc.id=h2.id) AS objectstatus, mp.primarydisplay AS primarydisplay, bc.mimetype AS mimetype, c.data AS md5 FROM media_common mc LEFT OUTER JOIN media_pahma mp ON (mp.id = mc.id) JOIN misc ON (mc.id = misc.id AND misc.lifecyclestate <> 'deleted') LEFT OUTER JOIN hierarchy h1 ON (h1.id = mc.id) INNER JOIN relations_common rc ON (h1.name = rc.objectcsid AND rc.subjectdocumenttype = 'CollectionObject') LEFT OUTER JOIN hierarchy h2 ON (rc.subjectcsid = h2.name) LEFT OUTER JOIN collectionobjects_common cc ON (h2.id = cc.id) JOIN collectionobjects_pahma cp ON (cc.id = cp.id) JOIN hierarchy h3 ON (mc.blobcsid = h3.name) LEFT OUTER JOIN blobs_common bc ON (h3.id = bc.id) LEFT OUTER JOIN hierarchy h4 ON (bc.repositoryid = h4.parentid AND h4.primarytype = 'content') LEFT OUTER JOIN content c ON (h4.id = c.id)
<gh_stars>0 -- Create index on Patients name in the PMD document. CREATE INDEX ?SCHEMA?.NameIndex ON ?SCHEMA?.out_patient_data (PMD) GENERATE KEY USING XMLPATTERN '/patient_document/patient/name/first' AS SQL VARCHAR(20); -- Collect statistics for table 'out_patient_data' on XML column PMD. CALL SYSPROC.ADMIN_CMD('RUNSTATS ON TABLE ?SCHEMA?.out_patient_data ON COLUMNS (PMD LIKE STATISTICS)');
-- VERSION 1.3.0 BEGIN; DROP TYPE IF EXISTS location_class_item CASCADE; CREATE TYPE location_class_item AS ( id int, class text, authoritative bool, entity_classes int[] ); DROP FUNCTION IF EXISTS location_list_class(); CREATE OR REPLACE FUNCTION location_list_class() RETURNS SETOF location_class_item AS $$ SELECT l.*, as_array(e.entity_class) FROM location_class l JOIN location_class_to_entity_class e ON (l.id = e.location_class) GROUP BY l.id, l.class, l.authoritative ORDER BY l.id; $$ language sql; COMMENT ON FUNCTION location_list_class() IS $$ Lists location classes, by default in order entered.$$; CREATE OR REPLACE FUNCTION location_list_country() RETURNS SETOF country AS $$ SELECT * FROM country ORDER BY name; $$ language sql; COMMENT ON FUNCTION location_list_country() IS $$ Lists countries, by default in alphabetical order.$$; CREATE OR REPLACE FUNCTION location_save (in_location_id int, in_address1 text, in_address2 text, in_address3 text, in_city text, in_state text, in_zipcode text, in_country int) returns integer AS $$ DECLARE location_id integer; location_row RECORD; BEGIN IF in_location_id IS NULL THEN SELECT id INTO location_id FROM location WHERE line_one = in_address1 AND line_two = in_address2 AND line_three = in_address3 AND in_city = city AND in_state = state AND in_zipcode = mail_code AND in_country = country_id LIMIT 1; IF NOT FOUND THEN -- Straight insert. location_id = nextval('location_id_seq'); INSERT INTO location ( id, line_one, line_two, line_three, city, state, mail_code, country_id) VALUES ( location_id, in_address1, in_address2, in_address3, in_city, in_state, in_zipcode, in_country ); END IF; return location_id; ELSE RAISE NOTICE 'Overwriting location id %', in_location_id; -- Test it. SELECT * INTO location_row FROM location WHERE id = in_location_id; IF NOT FOUND THEN -- Tricky users are lying to us. RAISE EXCEPTION 'location_save called with nonexistant location ID %', in_location_id; ELSE -- Okay, we're good. UPDATE location SET line_one = in_address1, line_two = in_address2, line_three = in_address3, city = in_city, state = in_state, mail_code = in_zipcode, country_id = in_country WHERE id = in_location_id; return in_location_id; END IF; END IF; END; $$ LANGUAGE PLPGSQL; COMMENT ON function location_save (in_location_id int, in_address1 text, in_address2 text, in_address3 text, in_city text, in_state text, in_zipcode text, in_country int) IS $$ Note that this does NOT override the data in the database unless in_location_id is specified. Instead we search for locations matching the desired specifications and if none are found, we insert one. Either way, the return value of the location can be used for mapping to other things. This is necessary because locations are only loosly coupled with entities, etc.$$; CREATE OR REPLACE FUNCTION location__get (in_id integer) returns location AS $$ SELECT * FROM location WHERE id = in_id; $$ language sql; COMMENT ON FUNCTION location__get (in_id integer) IS $$ Returns the location specified by in_id.$$; CREATE OR REPLACE FUNCTION location_delete (in_id integer) RETURNS VOID AS $$ DELETE FROM location WHERE id = in_id; $$ language sql; COMMENT ON FUNCTION location_delete (in_id integer) IS $$ DELETES the location specified by in_id. Does not return a value.$$; DROP TYPE IF EXISTS location_result CASCADE; CREATE TYPE location_result AS ( id int, line_one text, line_two text, line_three text, city text, state text, mail_code text, country_id int, country text, location_class int, class text ); CREATE OR REPLACE FUNCTION location__deactivate(in_id int) RETURNS location AS $$ UPDATE location set active = false, inactive_date = now() WHERE id = $1; SELECT * FROM location WHERE id = 1; $$ language sql; update defaults set value = 'yes' where setting_key = 'module_load_ok'; COMMIT;
<reponame>FANsZL/hive SELECT * FROM a where 1=1 and not exists (select * from b)--abc; SELECT * FROM a where not exists ( select * from b ); SELECT * FROM tab WHERE FILE_DATE > ( SELECT MAX(FILE_DATE) AS MX_C_FILE_DT FROM tab WHERE FLAG = 'C' AND IND = 'C' AND FILE_DATE < ( SELECT CAST( LOAD_START AS DATE) FROM tab WHERE SOURCE_ID = 451 AND BATCH = 'R' ) ); SELECT * FROM DLTA_POC LEFT OUTER JOIN TEST3_DB.TET ORG ON DLTA_POC.YS_NO = ORG.EM_CODE_A AND DLTA_POC.AREA_NO = ORG.AREA_CODE_2 AND DLTA_POC.GNT_POC = ORG.GEN_CD LEFT OUTER JOIN TEST.LOCATION LOC ON DLTA_POC.SE_KEY_POC = LOC.LOC_ID AND LOC.LOCATION_END_DT = DATE '9999-12-31' ; SELECT * FROM a WHERE NOT (1 = 2)
<reponame>goldmansachs/obevo-kata CREATE PROCEDURE SP911(OUT MYCOUNT INTEGER) SPECIFIC SP911_92652 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE205;SELECT COUNT(*)INTO MYCOUNT FROM TABLE311;SELECT COUNT(*)INTO MYCOUNT FROM TABLE39;SELECT COUNT(*)INTO MYCOUNT FROM VIEW56;SELECT COUNT(*)INTO MYCOUNT FROM VIEW57;CALL SP980(MYVAR);CALL SP812(MYVAR);CALL SP183(MYVAR);CALL SP984(MYVAR);END GO
<reponame>sophia-IV/devstats<gh_stars>100-1000 select count(distinct pl.comment_id) as cnt from gha_payloads pl, gha_pull_requests pr where pl.pull_request_id = pr.id and pl.comment_id is not null and pr.created_at >= '{{from}}' and pr.created_at < '{{to}}' group by pl.pull_request_id union select 0 as cnt order by cnt desc limit 1;
SET search_path = pg_catalog; DROP POLICY test_policy_1 ON public.t1; CREATE POLICY test_policy_2 ON public.t1; DROP POLICY test_policy_3 ON public.t1; DROP POLICY test_policy_5 ON public.t1; DROP POLICY test_policy_6 ON public.t1; DROP POLICY test_policy_8 ON public.t1; ALTER POLICY test_policy_9 ON public.t1 TO PUBLIC; ALTER POLICY test_policy_10 ON public.t1 TO test_user_2; ALTER POLICY test_policy_12 ON public.t1 TO CURRENT_USER; DROP POLICY test_policy_13 ON public.t1; ALTER POLICY test_policy_14 ON public.t1 USING (true); ALTER POLICY test_policy_15 ON public.t1 USING (false); DROP POLICY test_policy_16 ON public.t1; ALTER POLICY test_policy_17 ON public.t1 WITH CHECK (true); ALTER POLICY test_policy_18 ON public.t1 WITH CHECK (false); ALTER POLICY test_policy_19 ON public.t1 TO test_user_2 USING (false) WITH CHECK (false); DROP POLICY test_policy_20 ON public.t1; CREATE POLICY test_policy_3 ON public.t1 AS RESTRICTIVE; CREATE POLICY test_policy_5 ON public.t1; CREATE POLICY test_policy_6 ON public.t1 FOR DELETE; CREATE POLICY test_policy_8 ON public.t1 FOR INSERT; CREATE POLICY test_policy_13 ON public.t1; CREATE POLICY test_policy_16 ON public.t1; CREATE POLICY test_policy_20 ON public.t1 FOR SELECT TO test_user USING (true) WITH CHECK (true);
CREATE TABLE oauth2AuthorizationConsent ( registeredClientId varchar(100) NOT NULL, principalName varchar(200) NOT NULL, authorities varchar(1000) NOT NULL, PRIMARY KEY (registeredClientId, principalName) );
<gh_stars>1-10 ALTER TYPE midgard.transaction_clearing_state ADD VALUE 'FATAL';
<filename>master/static/migrations/20210513134524_updates-for-push-api.tx.up.sql CREATE TYPE public.run_type AS ENUM ( 'TRIAL' ); CREATE TABLE public.runs ( id integer NOT NULL, start_time timestamp without time zone NOT NULL DEFAULT now(), end_time timestamp without time zone NULL, run_type run_type NOT NULL, run_type_fk integer NOT NULL, CONSTRAINT trial_runs_id_trial_id_unique UNIQUE (run_type, run_type_fk, id) ); AlTER TABLE public.steps ADD COLUMN total_records integer NOT NULL DEFAULT 0, ADD COLUMN total_epochs real NOT NULL DEFAULT 0, ADD COLUMN trial_run_id integer NOT NULL DEFAULT 0, ADD COLUMN archived boolean NOT NULL DEFAULT false, DROP CONSTRAINT steps_trial_total_batches_unique, ADD CONSTRAINT steps_trial_id_run_id_total_batches_unique UNIQUE (trial_id, trial_run_id, total_batches); ALTER TABLE public.steps RENAME TO raw_steps; CREATE VIEW steps AS SELECT * FROM raw_steps WHERE NOT archived; ALTER TABLE public.validations ADD COLUMN total_records integer NOT NULL DEFAULT 0, ADD COLUMN total_epochs real NOT NULL DEFAULT 0, ADD COLUMN trial_run_id integer NOT NULL DEFAULT 0, ADD COLUMN archived boolean NOT NULL DEFAULT false, DROP CONSTRAINT validations_trial_total_batches_unique, ADD CONSTRAINT validations_trial_id_run_id_total_batches_unique UNIQUE (trial_id, trial_run_id, total_batches); ALTER TABLE public.validations RENAME TO raw_validations; CREATE VIEW validations AS SELECT * FROM raw_validations WHERE NOT archived; ALTER TABLE public.checkpoints ADD COLUMN total_records integer NOT NULL DEFAULT 0, ADD COLUMN total_epochs real NOT NULL DEFAULT 0, ADD COLUMN trial_run_id integer NOT NULL DEFAULT 0, ADD COLUMN archived boolean NOT NULL DEFAULT false, DROP CONSTRAINT checkpoints_trial_total_batches_unique, ADD CONSTRAINT checkpoints_trial_id_run_id_total_batches_unique UNIQUE (trial_id, trial_run_id, total_batches); ALTER TABLE public.checkpoints RENAME TO raw_checkpoints; CREATE VIEW checkpoints AS SELECT * FROM raw_checkpoints WHERE NOT archived;
CREATE INDEX ON client_authorizations USING HASH ( authorization_code_value ) ; CREATE INDEX ON client_authorizations USING HASH ( access_token_value ) ; CREATE INDEX ON client_authorizations USING HASH ( refresh_token_value ) ;
SET client_min_messages TO ERROR; SET client_encoding = 'UTF8'; DROP SCHEMA IF EXISTS musicthoughts CASCADE; BEGIN; CREATE SCHEMA musicthoughts; SET search_path = musicthoughts; -- composing, performing, listening, etc CREATE TABLE musicthoughts.categories ( id serial primary key, en text, es text, fr text, de text, it text, pt text, ja text, zh text, ar text, ru text ); -- users who submit a thought CREATE TABLE musicthoughts.contributors ( id serial primary key, person_id integer NOT NULL UNIQUE REFERENCES peeps.people(id), url varchar(255), -- TODO: use peeps.people.urls.main place varchar(255) ); -- famous people who said the thought CREATE TABLE musicthoughts.authors ( id serial primary key, name varchar(127) UNIQUE, url varchar(255) ); -- quotes CREATE TABLE musicthoughts.thoughts ( id serial primary key, approved boolean default false, author_id integer not null REFERENCES musicthoughts.authors(id) ON DELETE RESTRICT, contributor_id integer not null REFERENCES musicthoughts.contributors(id) ON DELETE RESTRICT, created_at date not null default CURRENT_DATE, as_rand boolean not null default false, -- best-of to include in random selection source_url varchar(255), -- where quote was found en text, es text, fr text, de text, it text, pt text, ja text, zh text, ar text, ru text ); CREATE TABLE musicthoughts.categories_thoughts ( thought_id integer not null REFERENCES musicthoughts.thoughts(id) ON DELETE CASCADE, category_id integer not null REFERENCES musicthoughts.categories(id) ON DELETE RESTRICT, PRIMARY KEY (thought_id, category_id) ); CREATE INDEX ctti ON musicthoughts.categories_thoughts(thought_id); CREATE INDEX ctci ON musicthoughts.categories_thoughts(category_id); COMMIT;
-- SINGLE-ROW-TABLES DROP TABLE NUM_WORKERS(REFERENCE TEXT NOT NULL, COUNT INTEGER NOT NULL, PRIMARY KEY(REFERENCE)); INSERT INTO NUM_WORKERS(REFERENCE, VALUE) VALUES ("ME", 1); DROP TABLE AGENT_HEARTBEAT; CREATE TABLE AGENT_HEARTBEAT(REFERENCE TEXT NOT NULL, INFO TEXT NOT NULL, PRIMARY KEY(REFERENCE)); DROP TABLE AGENT_INFO; -- TYPE: ROW CREATE TABLE AGENT_INFO(REFERENCE TEXT NOT NULL, AGENT_UUID INTEGER, DC_UUID TEXT, NEXT_OP_ID INTEGER CACHE_NUM_BYTES INTEGER, CALLBACK_SERVER TEXT, CALLBACK_PORT INTEGER, BACKOFF_END_TIME INTEGER, PRIMARY KEY(REFERENCE)); INSERT INTO AGENT_INFO(REFERENCE) VALUES ("ME"); DROP TABLE CONNECTION_STATUS; -- TYPE: ROW CREATE TABLE CONNECTION_STATUS(AGENT_UUID INTEGER NOT NULL, CONNECTED INTEGER, ISOLATION INTEGER, PRIMARY KEY(AGENT_UUID)); DROP TABLE AGENT_CREATEDS; -- TYPE: INT CREATE TABLE AGENT_CREATEDS(DATACENTER_UUID TEXT NOT NULL, CREATED INTEGER NOT NULL, PRIMARY KEY(DATACENTER_UUID)); DROP TABLE DEVICE_KEY; CREATE TABLE DEVICE_KEY(REFERENCE TEXT NOT NULL, KEY TEXT NOT NULL, PRIMARY KEY(REFERENCE)); DROP TABLE NOTIFY; CREATE TABLE NOTIFY(REFERENCE TEXT NOT NULL, VALUE INTEGER NOT NULL, PRIMARY KEY(REFERENCE)); DROP TABLE NOTIFY_URL; CREATE TABLE NOTIFY_URL(URL TEXT NOT NULL, VALUE INTEGER NOT NULL, PRIMARY KEY(URL)); -- SINGLE-INT: PK: PID DROP TABLE WORKER_PARTITIONS; CREATE TABLE WORKER_PARTITIONS(PID INTEGER NOT NULL, PARTITION INTEGER NOT NULL, PRIMARY KEY(PID)); -- SINGLE-INT: PK: CHANNEL DROP TABLE REPLICATION_CHANNELS; -- TYPE: INT CREATE TABLE REPLICATION_CHANNELS(CHANNEL TEXT NOT NULL, NUM_SUBSCRIPTIONS INTEGER NOT NULL, PRIMARY KEY(CHANNEL)); DROP TABLE DEVICE_CHANNELS; -- TYPE: INT CREATE TABLE DEVICE_CHANNELS(CHANNEL TEXT NOT NULL, NUM_SUBSCRIPTIONS INTEGER NOT NULL, PRIMARY KEY(CHANNEL)); -- BOOLEAN PK:USERNAME DROP TABLE STATIONED_USERS; -- TYPE: BOOLEAN CREATE TABLE STATIONED_USERS(USERNAME TEXT NOT NULL, VALUE INTEGER NOT NULL, PRIMARY KEY(USERNAME)); -- BOOLEAN PK:KQK DROP TABLE CACHED_KEYS; -- TYPE: BOOLEAN CREATE TABLE CACHED_KEYS(KQK TEXT NOT NULL, VALUE INTEGER NOT NULL, PRIMARY KEY(KQK)); DROP TABLE TO_EVICT_KEYS; -- TYPE: BOOLEAN CREATE TABLE TO_EVICT_KEYS(KQK TEXT NOT NULL, VALUE INTEGER NOT NULL, PRIMARY KEY(KQK)); DROP TABLE EVICTED_KEYS; -- TYPE: BOOLEAN CREATE TABLE EVICTED_KEYS(KQK TEXT NOT NULL, VALUE INTEGER NOT NULL, PRIMARY KEY(KQK)); DROP TABLE OUT_OF_SYNC_KEYS; -- TYPE: BOOLEAN CREATE TABLE OUT_OF_SYNC_KEYS(KQK TEXT NOT NULL, VALUE INTEGER NOT NULL, PRIMARY KEY(KQK)); DROP TABLE AGENT_WATCH_KEYS; -- TYPE: BOOLEAN CREATE TABLE AGENT_WATCH_KEYS(KQK TEXT NOT NULL, VALUE INTEGER NOT NULL, PRIMARY KEY(KQK)); DROP TABLE AGENT_KEY_GC_WAIT_INCOMPLETE -- TYPE: BOOLEAN CREATE TABLE AGENT_KEY_GC_WAIT_INCOMPLETE(KQK TEXT NOT NULL, VALUE INTEGER NOT NULL, PRIMARY KEY(KQK)); -- BOOLEAN PK: DELTA_KEY DROP TABLE OOO_DELTA; -- TYPE: BOOLEAN CREATE TABLE OOO_DELTA(DELTA_KEY TEXT NOT NULL, VALUE INTEGER NOT NULL, PRIMARY KEY(DELTA_KEY)); DROP TABLE DELTA_COMMITTED; -- TYPE: BOOLEAN CREATE TABLE DELTA_COMMITTED(DELTA_KEY TEXT NOT NULL, VALUE INTEGER NOT NULL, PRIMARY KEY(DELTA_KEY)); DROP TABLE REMOVE_REFERENCE_DELTA; -- TYPE: BOOLEAN CREATE TABLE REMOVE_REFERENCE_DELTA(DELTA_KEY TEXT NOT NULL, VALUE INTEGER NOT NULL, PRIMARY KEY(DELTA_KEY)); -- SINGLE-INT: PK: KQK DROP TABLE KEY_GC_VERSION; -- TYPE: INT CREATE TABLE KEY_GC_VERSION(KQK TEXT NOT NULL, GC_VERSION INTEGER NOT NULL, PRIMARY KEY(KQK)); DROP TABLE AGENT_KEY_MAX_GC_VERSION; -- TYPE: INT CREATE TABLE AGENT_KEY_MAX_GC_VERSION(KQK TEXT NOT NULL, GC_VERSION INTEGER NOT NULL, PRIMARY KEY(KQK)); DROP TABLE DIRTY_KEYS; -- TYPE: INT CREATE TABLE DIRTY_KEYS(KQK TEXT NOT NULL, NUM_DIRTY INTEGER NOT NULL, PRIMARY KEY(KQK)); DROP TABLE OOO_KEY; -- TYPE: INT CREATE TABLE OOO_KEY(KQK TEXT NOT NULL, COUNT INTEGER NOT NULL, PRIMARY KEY(KQK)); -- SINGLE-INT: PK: DELTA_KEY DROP TABLE AGENT_SENT_DELTAS; -- TYPE: INT CREATE TABLE AGENT_SENT_DELTAS(DELTA_KEY TEXT NOT NULL, TS INTEGER NOT NULL, PRIMARY KEY(DELTA_KEY)); DROP TABLE DIRTY_DELTAS; -- TYPE: INT CREATE TABLE DIRTY_DELTAS(DELTA_KEY TEXT NOT NULL, TS INTEGER NOT NULL, PRIMARY KEY(DELTA_KEY)); -- SINGLE-INT: PK: KA_KEY DROP TABLE AGENT_KEY_OOO_GCV; -- TYPE: INT CREATE TABLE AGENT_KEY_OOO_GCV(KA_KEY TEXT NOT NULL, VALUE INTEGER NOT NULL, PRIMARY KEY(KA_KEY)); -- SINGLE-INT: PK: KAV_KEY DROP TABLE AGENT_DELTA_OOO_GCV; -- TYPE BOOLEAN CREATE TABLE AGENT_DELTA_OOO_GCV(KAV_KEY TEXT NOT NULL, VALUE INTEGER NOT NULL, PRIMARY KEY(KAV_KEY)); DROP TABLE PERSISTED_SUBSCRIBER_DELTA; -- TYPE BOOLEAN CREATE TABLE PERSISTED_SUBSCRIBER_DELTA(KAV_KEY TEXT NOT NULL, VALUE INTEGER NOT NULL, PRIMARY KEY(KAV_KEY)); -- FIXED-SIZE: PK: KQK DROP TABLE KEY_AGENT_VERSION; -- TYPE: ROW CREATE TABLE KEY_AGENT_VERSION(KQK TEXT NOT NULL, AGENT_VERSION TEXT NOT NULL, PRIMARY KEY(KQK)); --TODO treat AGENT_VERSION as UINT128 -> TYPE: UINT128 DROP TABLE TO_SYNC_KEYS; -- TYPE: ROW CREATE TABLE TO_SYNC_KEYS(KQK TEXT NOT NULL, SECURITY_TOKEN TEXT NOT NULL, PRIMARY KEY(KQK)); DROP TABLE KEY_INFO; -- TYPE: ROW CREATE TABLE KEY_INFO(KQK TEXT NOT NULL, STICKY INTEGER, SEPARATE INTEGER, PRESENT INTEGER, PRIMARY KEY(KQK)); DROP TABLE LRU_KEYS; -- TYPE: ROW CREATE TABLE LRU_KEYS(KQK TEXT NOT NULL, TS INTEGER, LOCAL_READ INTEGER, LOCAL_MODIFICATION INTEGER, EXTERNAL_MODIFICATION INTEGER, NUM_BYTES INTEGER, PIN INTEGER, WATCH INTEGER, PRIMARY KEY(KQK)); DROP TABLE NEED_MERGE_REQUEST_ID; -- TYPE: ROW CREATE TABLE NEED_MERGE_REQUEST_ID(KQK TEXT NOT NULL, ID TEXT NOT NULL, PRIMARY KEY(KQK)); -- FIXED-SIZE: PK: USERNAME DROP TABLE USER_AUTHENTICATION; -- TYPE: ROW CREATE TABLE USER_AUTHENTICATION(USERNAME TEXT NOT NULL, HASH TEXT NOT NULL, ROLE TEXT NOT NULL, PRIMARY KEY(USERNAME)); -- FIXED-SIZE: PK: KA_KEY DROP TABLE DEVICE_SUBSCRIBER_VERSION; -- TYPE: ROW CREATE TABLE DEVICE_SUBSCRIBER_VERSION(KA_KEY TEXT NOT NULL, AGENT_VERSION TEXT NOT NULL, TS INTEGER NOT NULL, PRIMARY KEY(KA_KEY)); --TODO: DEVICE_SUBSCRIBER_VERSION can be broken up into two UINT128 tables -- JSON-VALUE: PK: KQK DROP TABLE DOCUMENTS; -- TYPE: JSON CREATE TABLE DOCUMENTS(KQK TEXT NOT NULL, CRDT TEXT NOT NULL, PRIMARY KEY(KQK)); DROP TABLE LAST_REMOVE_DENTRY; -- TYPE: JSON CREATE TABLE LAST_REMOVE_DENTRY(KQK TEXT NOT NULL, META TEXT NOT NULL, PRIMARY KEY(KQK)); DROP TABLE USER_CACHED_KEYS; -- TYPE: ARRAY[STRING] CREATE TABLE USER_CACHED_KEYS(KQK TEXT NOT NULL, USERS TEXT NOT NULL, PRIMARY KEY(KQK)); DROP TABLE PER_KEY_SUBSCRIBER_VERSION; -- TYPE: MAP CREATE TABLE PER_KEY_SUBSCRIBER_VERSION(KQK TEXT NOT NULL, AGENT_VERSION_MAP TEXT NOT NULL, PRIMARY KEY(KQK)); DROP TABLE OOO_DELTA_VERSIONS; -- TYPE: ARRAY[AGENT_VERSIONS] CREATE TABLE OOO_DELTA_VERSIONS(KQK TEXT NOT NULL, AGENT_VERSIONS TEXT NOT NULL, PRIMARY KEY(KQK)); DROP TABLE DELTA_VERSIONS; -- TYPE: ARRAY[AGENT_VERSIONS] CREATE TABLE DELTA_VERSIONS(KQK TEXT NOT NULL, AGENT_VERSIONS TEXT NOT NULL, PRIMARY KEY(KQK)); DROP TABLE KEY_GC_SUMMARY_VERSIONS; -- TYPE: ARRAY[INT] CREATE TABLE KEY_GC_SUMMARY_VERSIONS(KQK TEXT NOT NULL, GC_VERSIONS TEXT NOT NULL, PRIMARY KEY(KQK)); DROP TABLE AGENT_KEY_GCV_NEEDS_REORDER; -- TYPE: MAP CREATE TABLE AGENT_KEY_GCV_NEEDS_REORDER(KQK TEXT NOT NULL, GCV_MAP TEXT NOT NULL, PRIMARY KEY(KQK)); -- JSON-VALUE: PK: USERNAME DROP TABLE USER_CHANNEL_PERMISSIONS; -- TYPE: ARRAY[STRING] CREATE TABLE USER_CHANNEL_PERMISSIONS(USERNAME TEXT NOT NULL, CHANNELS TEXT NOT NULL, PRIMARY KEY(USERNAME)); DROP TABLE USER_CHANNEL_SUBSCRIPTIONS; -- TYPE: ARRAY[STRING] CREATE TABLE USER_CHANNEL_SUBSCRIPTIONS(USERNAME TEXT NOT NULL, CHANNELS TEXT NOT NULL, PRIMARY KEY(USERNAME); -- JSON-VALUE: PK: DELTA_KEY DROP TABLE DELTAS; -- TYPE: JSON CREATE TABLE DELTAS(DELTA_KEY TEXT NOT NULL, DENTRY TEXT NOT NULL, AUTH TEXT, PRIMARY KEY(DELTA_KEY)); DROP TABLE DELTA_NEED_REFERENCE; -- TYPE: JSON CREATE TABLE DELTA_NEED_REFERENCE(DELTA_KEY TEXT NOT NULL, REFERENCE_AUTHOR TEXT NOT NULL, PRIMARY KEY(DELTA_KEY)); DROP TABLE DELTA_NEED_REORDER; -- TYPE: JSON CREATE TABLE DELTA_NEED_REORDER(DELTA_KEY TEXT NOT NULL, REORDER_AUTHOR TEXT NOT NULL, PRIMARY KEY(DELTA_KEY)); -- JSON-VALUE: PK: G-KEY DROP TABLE GCV_SUMMARIES; -- TYPE: JSON CREATE TABLE GCV_SUMMARIES(G_KEY TEXT NOT NULL, SUMMARY TEXT NOT NULL, PRIMARY KEY(G_KEY)); -- JSON-VALUE: PK: OTHER DROP TABLE FIXLOG; -- TYPE: JSON CREATE TABLE FIXLOG(FID TEXT NOT NULL, PC TEXT NOT NULL, PRIMARY KEY(FID)); DROP TABLE SUBSCRIBER_LATENCY_HISTOGRAM; -- TYPE: JSON CREATE TABLE SUBSCRIBER_LATENCY_HISTOGRAM(DATACENTER_NAME TEXT NOT NULL, HISTOGRAM TEXT NOT NULL, PRIMARY KEY(DATACENTER_NAME)); -- INTERNAL DROP TABLE WORKERS; -- TYPE: ROW CREATE TABLE WORKERS(UUID INTEGER NOT NULL, PORT INTEGER NOT NULL, MASTER INTEGER, PRIMARY KEY(UUID)); DROP TABLE LOCKS; -- TYPE: BOOLEAN CREATE TABLE LOCKS(NAME INTEGER NOT NULL, PRIMARY KEY(NAME));
-- create class and add FOREIGN key on time data type create class aoo ( a time primary key, b int, c int ); select attr_name, is_nullable from db_attribute where class_name = 'aoo' order by 1,2; select * from db_index where class_name = 'aoo'; select * from aoo; create class boo (b time ,a time ); ALTER TABLE boo ADD CONSTRAINT fk_a FOREIGN KEY (a) REFERENCES aoo(a); select attr_name, is_nullable from db_attribute where class_name = 'boo' order by 1; select * from db_index where class_name = 'boo'; select * from boo; drop boo; drop aoo;
/*L Copyright SAIC Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cabio/LICENSE.txt for details. L*/ ALTER TABLE TISSUE_CODE DROP PRIMARY KEY CASCADE / DROP TABLE TISSUE_CODE CASCADE CONSTRAINTS PURGE / -- -- TISSUE_CODE (Table) -- CREATE TABLE TISSUE_CODE ( TISSUE_CODE NUMBER NOT NULL, TISSUE_NAME VARCHAR2(100 BYTE) NOT NULL, PARENT NUMBER NULL, RELATIONSHIP VARCHAR2(25 BYTE) DEFAULT 'part-OF' NOT NULL, BIG_ID VARCHAR2(200 BYTE) NOT NULL, CONSTRAINT PK_TISSUE_CODE PRIMARY KEY (TISSUE_CODE), CONSTRAINT ORGANONTONODUPS UNIQUE (TISSUE_NAME, PARENT), CONSTRAINT TCBIGID UNIQUE (BIG_ID) ) TABLESPACE CABIO_FUT LOGGING NOCOMPRESS NOCACHE NOPARALLEL MONITORING /
<gh_stars>1-10 -- This SQL code was generated by sklearn2sql (development version). -- Copyright 2018 -- Model : CaretClassifier_nnet -- Dataset : BinaryClass_100 -- Database : monetdb -- This SQL code can contain one or more statements, to be executed in the order they appear in this file. -- Model deployment code WITH "IL" AS (SELECT "ADS"."KEY" AS "KEY", CAST("ADS"."Feature_0" AS DOUBLE) AS "Feature_0", CAST("ADS"."Feature_1" AS DOUBLE) AS "Feature_1", CAST("ADS"."Feature_2" AS DOUBLE) AS "Feature_2", CAST("ADS"."Feature_3" AS DOUBLE) AS "Feature_3", CAST("ADS"."Feature_4" AS DOUBLE) AS "Feature_4", CAST("ADS"."Feature_5" AS DOUBLE) AS "Feature_5", CAST("ADS"."Feature_6" AS DOUBLE) AS "Feature_6", CAST("ADS"."Feature_7" AS DOUBLE) AS "Feature_7", CAST("ADS"."Feature_8" AS DOUBLE) AS "Feature_8", CAST("ADS"."Feature_9" AS DOUBLE) AS "Feature_9", CAST("ADS"."Feature_10" AS DOUBLE) AS "Feature_10", CAST("ADS"."Feature_11" AS DOUBLE) AS "Feature_11", CAST("ADS"."Feature_12" AS DOUBLE) AS "Feature_12", CAST("ADS"."Feature_13" AS DOUBLE) AS "Feature_13", CAST("ADS"."Feature_14" AS DOUBLE) AS "Feature_14", CAST("ADS"."Feature_15" AS DOUBLE) AS "Feature_15", CAST("ADS"."Feature_16" AS DOUBLE) AS "Feature_16", CAST("ADS"."Feature_17" AS DOUBLE) AS "Feature_17", CAST("ADS"."Feature_18" AS DOUBLE) AS "Feature_18", CAST("ADS"."Feature_19" AS DOUBLE) AS "Feature_19", CAST("ADS"."Feature_20" AS DOUBLE) AS "Feature_20", CAST("ADS"."Feature_21" AS DOUBLE) AS "Feature_21", CAST("ADS"."Feature_22" AS DOUBLE) AS "Feature_22", CAST("ADS"."Feature_23" AS DOUBLE) AS "Feature_23", CAST("ADS"."Feature_24" AS DOUBLE) AS "Feature_24", CAST("ADS"."Feature_25" AS DOUBLE) AS "Feature_25", CAST("ADS"."Feature_26" AS DOUBLE) AS "Feature_26", CAST("ADS"."Feature_27" AS DOUBLE) AS "Feature_27", CAST("ADS"."Feature_28" AS DOUBLE) AS "Feature_28", CAST("ADS"."Feature_29" AS DOUBLE) AS "Feature_29", CAST("ADS"."Feature_30" AS DOUBLE) AS "Feature_30", CAST("ADS"."Feature_31" AS DOUBLE) AS "Feature_31", CAST("ADS"."Feature_32" AS DOUBLE) AS "Feature_32", CAST("ADS"."Feature_33" AS DOUBLE) AS "Feature_33", CAST("ADS"."Feature_34" AS DOUBLE) AS "Feature_34", CAST("ADS"."Feature_35" AS DOUBLE) AS "Feature_35", CAST("ADS"."Feature_36" AS DOUBLE) AS "Feature_36", CAST("ADS"."Feature_37" AS DOUBLE) AS "Feature_37", CAST("ADS"."Feature_38" AS DOUBLE) AS "Feature_38", CAST("ADS"."Feature_39" AS DOUBLE) AS "Feature_39", CAST("ADS"."Feature_40" AS DOUBLE) AS "Feature_40", CAST("ADS"."Feature_41" AS DOUBLE) AS "Feature_41", CAST("ADS"."Feature_42" AS DOUBLE) AS "Feature_42", CAST("ADS"."Feature_43" AS DOUBLE) AS "Feature_43", CAST("ADS"."Feature_44" AS DOUBLE) AS "Feature_44", CAST("ADS"."Feature_45" AS DOUBLE) AS "Feature_45", CAST("ADS"."Feature_46" AS DOUBLE) AS "Feature_46", CAST("ADS"."Feature_47" AS DOUBLE) AS "Feature_47", CAST("ADS"."Feature_48" AS DOUBLE) AS "Feature_48", CAST("ADS"."Feature_49" AS DOUBLE) AS "Feature_49", CAST("ADS"."Feature_50" AS DOUBLE) AS "Feature_50", CAST("ADS"."Feature_51" AS DOUBLE) AS "Feature_51", CAST("ADS"."Feature_52" AS DOUBLE) AS "Feature_52", CAST("ADS"."Feature_53" AS DOUBLE) AS "Feature_53", CAST("ADS"."Feature_54" AS DOUBLE) AS "Feature_54", CAST("ADS"."Feature_55" AS DOUBLE) AS "Feature_55", CAST("ADS"."Feature_56" AS DOUBLE) AS "Feature_56", CAST("ADS"."Feature_57" AS DOUBLE) AS "Feature_57", CAST("ADS"."Feature_58" AS DOUBLE) AS "Feature_58", CAST("ADS"."Feature_59" AS DOUBLE) AS "Feature_59", CAST("ADS"."Feature_60" AS DOUBLE) AS "Feature_60", CAST("ADS"."Feature_61" AS DOUBLE) AS "Feature_61", CAST("ADS"."Feature_62" AS DOUBLE) AS "Feature_62", CAST("ADS"."Feature_63" AS DOUBLE) AS "Feature_63", CAST("ADS"."Feature_64" AS DOUBLE) AS "Feature_64", CAST("ADS"."Feature_65" AS DOUBLE) AS "Feature_65", CAST("ADS"."Feature_66" AS DOUBLE) AS "Feature_66", CAST("ADS"."Feature_67" AS DOUBLE) AS "Feature_67", CAST("ADS"."Feature_68" AS DOUBLE) AS "Feature_68", CAST("ADS"."Feature_69" AS DOUBLE) AS "Feature_69", CAST("ADS"."Feature_70" AS DOUBLE) AS "Feature_70", CAST("ADS"."Feature_71" AS DOUBLE) AS "Feature_71", CAST("ADS"."Feature_72" AS DOUBLE) AS "Feature_72", CAST("ADS"."Feature_73" AS DOUBLE) AS "Feature_73", CAST("ADS"."Feature_74" AS DOUBLE) AS "Feature_74", CAST("ADS"."Feature_75" AS DOUBLE) AS "Feature_75", CAST("ADS"."Feature_76" AS DOUBLE) AS "Feature_76", CAST("ADS"."Feature_77" AS DOUBLE) AS "Feature_77", CAST("ADS"."Feature_78" AS DOUBLE) AS "Feature_78", CAST("ADS"."Feature_79" AS DOUBLE) AS "Feature_79", CAST("ADS"."Feature_80" AS DOUBLE) AS "Feature_80", CAST("ADS"."Feature_81" AS DOUBLE) AS "Feature_81", CAST("ADS"."Feature_82" AS DOUBLE) AS "Feature_82", CAST("ADS"."Feature_83" AS DOUBLE) AS "Feature_83", CAST("ADS"."Feature_84" AS DOUBLE) AS "Feature_84", CAST("ADS"."Feature_85" AS DOUBLE) AS "Feature_85", CAST("ADS"."Feature_86" AS DOUBLE) AS "Feature_86", CAST("ADS"."Feature_87" AS DOUBLE) AS "Feature_87", CAST("ADS"."Feature_88" AS DOUBLE) AS "Feature_88", CAST("ADS"."Feature_89" AS DOUBLE) AS "Feature_89", CAST("ADS"."Feature_90" AS DOUBLE) AS "Feature_90", CAST("ADS"."Feature_91" AS DOUBLE) AS "Feature_91", CAST("ADS"."Feature_92" AS DOUBLE) AS "Feature_92", CAST("ADS"."Feature_93" AS DOUBLE) AS "Feature_93", CAST("ADS"."Feature_94" AS DOUBLE) AS "Feature_94", CAST("ADS"."Feature_95" AS DOUBLE) AS "Feature_95", CAST("ADS"."Feature_96" AS DOUBLE) AS "Feature_96", CAST("ADS"."Feature_97" AS DOUBLE) AS "Feature_97", CAST("ADS"."Feature_98" AS DOUBLE) AS "Feature_98", CAST("ADS"."Feature_99" AS DOUBLE) AS "Feature_99" FROM "BinaryClass_100" AS "ADS"), "HL_BA_1" AS (SELECT "IL"."KEY" AS "KEY", 0.2416993 * "IL"."Feature_0" + 0.2126293 * "IL"."Feature_1" + 0.1853645 * "IL"."Feature_2" + -0.095664 * "IL"."Feature_3" + -0.677002 * "IL"."Feature_4" + 0.08565695 * "IL"."Feature_5" + -0.2242366 * "IL"."Feature_6" + -0.1913107 * "IL"."Feature_7" + 0.1688267 * "IL"."Feature_8" + 0.292796 * "IL"."Feature_9" + 0.0847182 * "IL"."Feature_10" + -0.3159323 * "IL"."Feature_11" + 0.08854283 * "IL"."Feature_12" + 0.0747826 * "IL"."Feature_13" + -0.4138426 * "IL"."Feature_14" + -0.3335935 * "IL"."Feature_15" + 0.2133573 * "IL"."Feature_16" + -0.164282 * "IL"."Feature_17" + -0.4501674 * "IL"."Feature_18" + -0.2920807 * "IL"."Feature_19" + -2.06016e-05 * "IL"."Feature_20" + -0.3518081 * "IL"."Feature_21" + -0.2515617 * "IL"."Feature_22" + -0.01548545 * "IL"."Feature_23" + -0.2936308 * "IL"."Feature_24" + -0.3973507 * "IL"."Feature_25" + -0.2370236 * "IL"."Feature_26" + 0.1529831 * "IL"."Feature_27" + -0.07686225 * "IL"."Feature_28" + -0.2203316 * "IL"."Feature_29" + -0.3366837 * "IL"."Feature_30" + -0.1404124 * "IL"."Feature_31" + 0.3627604 * "IL"."Feature_32" + -0.08157664 * "IL"."Feature_33" + -0.1789583 * "IL"."Feature_34" + -0.2395595 * "IL"."Feature_35" + 0.1201735 * "IL"."Feature_36" + 0.408771 * "IL"."Feature_37" + -0.1093107 * "IL"."Feature_38" + 0.2002609 * "IL"."Feature_39" + -0.1532728 * "IL"."Feature_40" + -0.4015692 * "IL"."Feature_41" + -0.3379156 * "IL"."Feature_42" + 0.1568163 * "IL"."Feature_43" + -0.2286033 * "IL"."Feature_44" + -0.5466098 * "IL"."Feature_45" + 0.09065141 * "IL"."Feature_46" + 0.3874058 * "IL"."Feature_47" + 0.1058939 * "IL"."Feature_48" + 0.05866177 * "IL"."Feature_49" + -0.2389015 * "IL"."Feature_50" + 0.2992284 * "IL"."Feature_51" + -0.06517018 * "IL"."Feature_52" + 0.3461995 * "IL"."Feature_53" + -0.4979821 * "IL"."Feature_54" + 0.2487398 * "IL"."Feature_55" + 0.0547854 * "IL"."Feature_56" + 0.6353617 * "IL"."Feature_57" + -0.3899088 * "IL"."Feature_58" + 0.5262887 * "IL"."Feature_59" + -0.4107484 * "IL"."Feature_60" + -0.05943686 * "IL"."Feature_61" + 0.286152 * "IL"."Feature_62" + 0.01823032 * "IL"."Feature_63" + -0.1108853 * "IL"."Feature_64" + -0.04796759 * "IL"."Feature_65" + -0.4013163 * "IL"."Feature_66" + 0.5888075 * "IL"."Feature_67" + -0.5162068 * "IL"."Feature_68" + -0.2687282 * "IL"."Feature_69" + -0.1821756 * "IL"."Feature_70" + -0.332597 * "IL"."Feature_71" + -0.1696913 * "IL"."Feature_72" + -0.7294857 * "IL"."Feature_73" + 0.2199482 * "IL"."Feature_74" + 0.2156315 * "IL"."Feature_75" + 0.4912299 * "IL"."Feature_76" + -0.3345957 * "IL"."Feature_77" + 0.1024527 * "IL"."Feature_78" + 0.07557257 * "IL"."Feature_79" + -0.279864 * "IL"."Feature_80" + 0.1807019 * "IL"."Feature_81" + 0.05295667 * "IL"."Feature_82" + -0.03459365 * "IL"."Feature_83" + -0.03931541 * "IL"."Feature_84" + -0.2953418 * "IL"."Feature_85" + -0.4841858 * "IL"."Feature_86" + -0.1469959 * "IL"."Feature_87" + 0.1952549 * "IL"."Feature_88" + -0.3456751 * "IL"."Feature_89" + -0.1530632 * "IL"."Feature_90" + -0.489842 * "IL"."Feature_91" + 0.3092252 * "IL"."Feature_92" + 0.1196912 * "IL"."Feature_93" + -0.03419281 * "IL"."Feature_94" + -0.7640245 * "IL"."Feature_95" + 0.02578373 * "IL"."Feature_96" + -0.2555657 * "IL"."Feature_97" + 0.1231269 * "IL"."Feature_98" + -0.3698501 * "IL"."Feature_99" + 0.5251235 AS "NEUR_1_1", -0.5897692 * "IL"."Feature_0" + -0.3039566 * "IL"."Feature_1" + 0.3129809 * "IL"."Feature_2" + -0.09347456 * "IL"."Feature_3" + 1.263787 * "IL"."Feature_4" + -0.9178047 * "IL"."Feature_5" + 0.1340961 * "IL"."Feature_6" + 0.2123474 * "IL"."Feature_7" + -0.34622 * "IL"."Feature_8" + -0.2168814 * "IL"."Feature_9" + -0.1062329 * "IL"."Feature_10" + -0.1271921 * "IL"."Feature_11" + -0.09828627 * "IL"."Feature_12" + -0.04753146 * "IL"."Feature_13" + 0.1882089 * "IL"."Feature_14" + 0.4604953 * "IL"."Feature_15" + -0.4125724 * "IL"."Feature_16" + -0.2127851 * "IL"."Feature_17" + 0.4625104 * "IL"."Feature_18" + 0.09082412 * "IL"."Feature_19" + -0.0438065 * "IL"."Feature_20" + 0.0710118 * "IL"."Feature_21" + 0.01541909 * "IL"."Feature_22" + 0.009025138 * "IL"."Feature_23" + 0.1655244 * "IL"."Feature_24" + 0.3116686 * "IL"."Feature_25" + -0.09265436 * "IL"."Feature_26" + -0.1891332 * "IL"."Feature_27" + 0.7385879 * "IL"."Feature_28" + -0.05859485 * "IL"."Feature_29" + 0.2705789 * "IL"."Feature_30" + 0.34531 * "IL"."Feature_31" + 0.008906424 * "IL"."Feature_32" + 0.6569231 * "IL"."Feature_33" + 0.5423215 * "IL"."Feature_34" + 0.2098693 * "IL"."Feature_35" + -0.2110732 * "IL"."Feature_36" + -0.07713449 * "IL"."Feature_37" + -0.07657623 * "IL"."Feature_38" + -0.00315886 * "IL"."Feature_39" + 0.1898156 * "IL"."Feature_40" + 0.2983176 * "IL"."Feature_41" + -0.1125674 * "IL"."Feature_42" + 0.174553 * "IL"."Feature_43" + 0.5555525 * "IL"."Feature_44" + 0.102108 * "IL"."Feature_45" + -0.02502181 * "IL"."Feature_46" + 0.08125959 * "IL"."Feature_47" + 0.421696 * "IL"."Feature_48" + 0.3245829 * "IL"."Feature_49" + -0.08271424 * "IL"."Feature_50" + -0.03489427 * "IL"."Feature_51" + 0.3974772 * "IL"."Feature_52" + -0.5516697 * "IL"."Feature_53" + -0.1887291 * "IL"."Feature_54" + -0.1988089 * "IL"."Feature_55" + -0.6182576 * "IL"."Feature_56" + -1.314308 * "IL"."Feature_57" + -0.03463088 * "IL"."Feature_58" + -0.2401255 * "IL"."Feature_59" + 0.5624653 * "IL"."Feature_60" + -0.1883811 * "IL"."Feature_61" + -0.1793062 * "IL"."Feature_62" + -0.288882 * "IL"."Feature_63" + -0.09661583 * "IL"."Feature_64" + -0.1451284 * "IL"."Feature_65" + 0.485809 * "IL"."Feature_66" + -1.153 * "IL"."Feature_67" + 0.5746699 * "IL"."Feature_68" + 0.06044816 * "IL"."Feature_69" + 0.1325653 * "IL"."Feature_70" + 0.4396935 * "IL"."Feature_71" + 0.1835792 * "IL"."Feature_72" + 0.1352563 * "IL"."Feature_73" + -0.1970926 * "IL"."Feature_74" + -0.3091946 * "IL"."Feature_75" + -0.2448971 * "IL"."Feature_76" + 0.6258122 * "IL"."Feature_77" + -0.3185853 * "IL"."Feature_78" + -0.1673017 * "IL"."Feature_79" + 0.2693394 * "IL"."Feature_80" + -0.2577981 * "IL"."Feature_81" + -0.3822427 * "IL"."Feature_82" + -0.05592828 * "IL"."Feature_83" + -0.3943356 * "IL"."Feature_84" + 0.3679075 * "IL"."Feature_85" + 0.4713251 * "IL"."Feature_86" + -0.3849793 * "IL"."Feature_87" + -0.2549752 * "IL"."Feature_88" + 0.1256232 * "IL"."Feature_89" + 0.4450447 * "IL"."Feature_90" + 0.6658693 * "IL"."Feature_91" + -0.5286787 * "IL"."Feature_92" + 0.2388588 * "IL"."Feature_93" + 0.2468151 * "IL"."Feature_94" + 0.6560858 * "IL"."Feature_95" + -0.2092594 * "IL"."Feature_96" + -0.121283 * "IL"."Feature_97" + 0.08905773 * "IL"."Feature_98" + 0.2451296 * "IL"."Feature_99" + -0.3315719 AS "NEUR_1_2", -0.3940922 * "IL"."Feature_0" + -0.1489979 * "IL"."Feature_1" + 0.08390414 * "IL"."Feature_2" + 0.0479969 * "IL"."Feature_3" + 0.6101607 * "IL"."Feature_4" + -0.4161103 * "IL"."Feature_5" + 0.01649107 * "IL"."Feature_6" + -0.06064764 * "IL"."Feature_7" + -0.1279576 * "IL"."Feature_8" + -0.06419243 * "IL"."Feature_9" + 0.3428287 * "IL"."Feature_10" + -0.1200214 * "IL"."Feature_11" + -0.03559107 * "IL"."Feature_12" + 0.05945715 * "IL"."Feature_13" + -0.03278632 * "IL"."Feature_14" + 0.2996823 * "IL"."Feature_15" + 0.01863259 * "IL"."Feature_16" + 0.1920772 * "IL"."Feature_17" + -0.01027004 * "IL"."Feature_18" + 0.052005 * "IL"."Feature_19" + -0.1120926 * "IL"."Feature_20" + 0.1492816 * "IL"."Feature_21" + 0.003692268 * "IL"."Feature_22" + -0.0291614 * "IL"."Feature_23" + -0.02113299 * "IL"."Feature_24" + 0.3341914 * "IL"."Feature_25" + 0.2126294 * "IL"."Feature_26" + 0.0474268 * "IL"."Feature_27" + -0.05030619 * "IL"."Feature_28" + -0.02780893 * "IL"."Feature_29" + -0.1656912 * "IL"."Feature_30" + 0.3041062 * "IL"."Feature_31" + -0.06986549 * "IL"."Feature_32" + 0.431067 * "IL"."Feature_33" + 0.5027731 * "IL"."Feature_34" + -0.03557483 * "IL"."Feature_35" + 0.1316083 * "IL"."Feature_36" + -0.1160635 * "IL"."Feature_37" + -0.04594338 * "IL"."Feature_38" + 0.06602841 * "IL"."Feature_39" + 0.1576618 * "IL"."Feature_40" + -0.0502981 * "IL"."Feature_41" + -0.08636412 * "IL"."Feature_42" + 0.03427916 * "IL"."Feature_43" + 0.3009254 * "IL"."Feature_44" + 0.09414845 * "IL"."Feature_45" + -0.07172109 * "IL"."Feature_46" + 0.002383097 * "IL"."Feature_47" + 0.147612 * "IL"."Feature_48" + 0.271701 * "IL"."Feature_49" + 0.1562477 * "IL"."Feature_50" + -0.214421 * "IL"."Feature_51" + 0.1040822 * "IL"."Feature_52" + -0.2460667 * "IL"."Feature_53" + -0.1748643 * "IL"."Feature_54" + -0.02115637 * "IL"."Feature_55" + -0.4007318 * "IL"."Feature_56" + -0.5633325 * "IL"."Feature_57" + -0.1895572 * "IL"."Feature_58" + -0.1208294 * "IL"."Feature_59" + -0.05177998 * "IL"."Feature_60" + 0.01660509 * "IL"."Feature_61" + -0.2222763 * "IL"."Feature_62" + -0.2211727 * "IL"."Feature_63" + 0.07604994 * "IL"."Feature_64" + 0.07643042 * "IL"."Feature_65" + 0.1170593 * "IL"."Feature_66" + -0.5045057 * "IL"."Feature_67" + 0.2770274 * "IL"."Feature_68" + 0.2170611 * "IL"."Feature_69" + 0.1041989 * "IL"."Feature_70" + 0.06974716 * "IL"."Feature_71" + -0.1685488 * "IL"."Feature_72" + 0.254207 * "IL"."Feature_73" + -0.1310745 * "IL"."Feature_74" + -0.1109178 * "IL"."Feature_75" + -0.2123061 * "IL"."Feature_76" + 0.3414015 * "IL"."Feature_77" + -0.1129328 * "IL"."Feature_78" + -0.05627434 * "IL"."Feature_79" + -0.00292374 * "IL"."Feature_80" + 0.1538818 * "IL"."Feature_81" + -0.3032383 * "IL"."Feature_82" + -0.1342425 * "IL"."Feature_83" + -0.006368257 * "IL"."Feature_84" + 0.01838092 * "IL"."Feature_85" + 0.0694999 * "IL"."Feature_86" + -0.09138955 * "IL"."Feature_87" + -0.1243247 * "IL"."Feature_88" + -0.09531837 * "IL"."Feature_89" + 0.3050179 * "IL"."Feature_90" + 0.1755675 * "IL"."Feature_91" + -0.2356794 * "IL"."Feature_92" + 0.1271703 * "IL"."Feature_93" + -0.008670682 * "IL"."Feature_94" + 0.3843453 * "IL"."Feature_95" + 0.2566207 * "IL"."Feature_96" + -0.1029073 * "IL"."Feature_97" + -0.1446749 * "IL"."Feature_98" + -0.01664893 * "IL"."Feature_99" + 0.00845193 AS "NEUR_1_3", -0.06670287 * "IL"."Feature_0" + 0.1615761 * "IL"."Feature_1" + 0.2063534 * "IL"."Feature_2" + 0.111135 * "IL"."Feature_3" + 0.5594603 * "IL"."Feature_4" + -0.1220907 * "IL"."Feature_5" + 0.114507 * "IL"."Feature_6" + -0.08326918 * "IL"."Feature_7" + -0.3453435 * "IL"."Feature_8" + -0.1423803 * "IL"."Feature_9" + -0.01112098 * "IL"."Feature_10" + -0.1132892 * "IL"."Feature_11" + 0.024812 * "IL"."Feature_12" + -0.2367799 * "IL"."Feature_13" + -0.0461809 * "IL"."Feature_14" + 0.2269396 * "IL"."Feature_15" + -0.04620444 * "IL"."Feature_16" + -0.08714011 * "IL"."Feature_17" + 0.08380536 * "IL"."Feature_18" + 0.1603768 * "IL"."Feature_19" + -0.205885 * "IL"."Feature_20" + 0.1494154 * "IL"."Feature_21" + -0.08608851 * "IL"."Feature_22" + 0.03870106 * "IL"."Feature_23" + 0.1516934 * "IL"."Feature_24" + 0.1854009 * "IL"."Feature_25" + 0.1912346 * "IL"."Feature_26" + -0.2796132 * "IL"."Feature_27" + 0.2910549 * "IL"."Feature_28" + -0.3150963 * "IL"."Feature_29" + -0.0354323 * "IL"."Feature_30" + -0.00633444 * "IL"."Feature_31" + -0.3277325 * "IL"."Feature_32" + 0.3090788 * "IL"."Feature_33" + 0.07738668 * "IL"."Feature_34" + -0.2072191 * "IL"."Feature_35" + 0.3184645 * "IL"."Feature_36" + 0.07398178 * "IL"."Feature_37" + 0.2423748 * "IL"."Feature_38" + -0.028462 * "IL"."Feature_39" + 0.1367574 * "IL"."Feature_40" + -0.02596868 * "IL"."Feature_41" + -0.03951129 * "IL"."Feature_42" + -0.03645732 * "IL"."Feature_43" + 0.1712637 * "IL"."Feature_44" + 0.1029705 * "IL"."Feature_45" + -0.09880146 * "IL"."Feature_46" + -0.02916198 * "IL"."Feature_47" + 0.1311212 * "IL"."Feature_48" + -0.008958268 * "IL"."Feature_49" + 0.196838 * "IL"."Feature_50" + -0.02147686 * "IL"."Feature_51" + 0.1845999 * "IL"."Feature_52" + 0.02277648 * "IL"."Feature_53" + 0.1997032 * "IL"."Feature_54" + -0.08074281 * "IL"."Feature_55" + -0.1662269 * "IL"."Feature_56" + -0.6988884 * "IL"."Feature_57" + 0.06204309 * "IL"."Feature_58" + -0.174607 * "IL"."Feature_59" + -0.06501858 * "IL"."Feature_60" + 0.06798616 * "IL"."Feature_61" + 0.003338138 * "IL"."Feature_62" + -0.1603325 * "IL"."Feature_63" + -0.1807128 * "IL"."Feature_64" + -0.3103215 * "IL"."Feature_65" + 0.04320849 * "IL"."Feature_66" + -0.4645085 * "IL"."Feature_67" + 0.07666764 * "IL"."Feature_68" + -0.09056092 * "IL"."Feature_69" + -0.03228586 * "IL"."Feature_70" + 0.3579705 * "IL"."Feature_71" + -0.07316063 * "IL"."Feature_72" + 0.2464172 * "IL"."Feature_73" + -0.2674528 * "IL"."Feature_74" + -0.2733869 * "IL"."Feature_75" + -0.05489506 * "IL"."Feature_76" + 0.2168435 * "IL"."Feature_77" + -0.2532953 * "IL"."Feature_78" + 0.05783808 * "IL"."Feature_79" + 0.143408 * "IL"."Feature_80" + -0.08424524 * "IL"."Feature_81" + -0.09766535 * "IL"."Feature_82" + -0.08160639 * "IL"."Feature_83" + -0.1171054 * "IL"."Feature_84" + 0.1895217 * "IL"."Feature_85" + -0.03973977 * "IL"."Feature_86" + -0.2410577 * "IL"."Feature_87" + -0.2937073 * "IL"."Feature_88" + 0.2605947 * "IL"."Feature_89" + 0.2080987 * "IL"."Feature_90" + 0.09227441 * "IL"."Feature_91" + -0.3905074 * "IL"."Feature_92" + 0.3907739 * "IL"."Feature_93" + -0.117544 * "IL"."Feature_94" + 0.1535129 * "IL"."Feature_95" + 0.1116492 * "IL"."Feature_96" + -0.06207083 * "IL"."Feature_97" + 0.1614601 * "IL"."Feature_98" + 0.01097873 * "IL"."Feature_99" + -0.1109253 AS "NEUR_1_4", 0.288397 * "IL"."Feature_0" + -0.02595201 * "IL"."Feature_1" + -0.1336809 * "IL"."Feature_2" + 0.1531225 * "IL"."Feature_3" + -0.3035268 * "IL"."Feature_4" + 0.2007607 * "IL"."Feature_5" + -0.2294312 * "IL"."Feature_6" + 0.01179258 * "IL"."Feature_7" + 0.02554559 * "IL"."Feature_8" + 0.07096018 * "IL"."Feature_9" + 0.07616025 * "IL"."Feature_10" + 0.1801947 * "IL"."Feature_11" + -0.04152269 * "IL"."Feature_12" + 0.1735429 * "IL"."Feature_13" + -0.01781874 * "IL"."Feature_14" + 0.03836355 * "IL"."Feature_15" + -0.1815504 * "IL"."Feature_16" + 0.4276033 * "IL"."Feature_17" + 0.1723247 * "IL"."Feature_18" + -0.1754602 * "IL"."Feature_19" + 0.2140994 * "IL"."Feature_20" + 0.04897503 * "IL"."Feature_21" + -0.1647751 * "IL"."Feature_22" + 0.04978317 * "IL"."Feature_23" + 0.1028888 * "IL"."Feature_24" + -0.3061573 * "IL"."Feature_25" + -0.02583206 * "IL"."Feature_26" + -0.1764682 * "IL"."Feature_27" + -0.1688309 * "IL"."Feature_28" + 0.06454161 * "IL"."Feature_29" + 0.07296908 * "IL"."Feature_30" + -0.07546796 * "IL"."Feature_31" + 0.2881721 * "IL"."Feature_32" + -0.2899172 * "IL"."Feature_33" + -0.3069764 * "IL"."Feature_34" + -0.06843378 * "IL"."Feature_35" + -0.05394492 * "IL"."Feature_36" + 0.1489681 * "IL"."Feature_37" + -0.01050414 * "IL"."Feature_38" + -0.01386875 * "IL"."Feature_39" + -0.0956729 * "IL"."Feature_40" + -0.4005675 * "IL"."Feature_41" + 0.1268939 * "IL"."Feature_42" + -0.2274506 * "IL"."Feature_43" + -0.2014966 * "IL"."Feature_44" + 0.116091 * "IL"."Feature_45" + -0.01122819 * "IL"."Feature_46" + -0.08889057 * "IL"."Feature_47" + 0.1369153 * "IL"."Feature_48" + -0.003883214 * "IL"."Feature_49" + 0.3391446 * "IL"."Feature_50" + 0.1080194 * "IL"."Feature_51" + 0.1351553 * "IL"."Feature_52" + 0.1584021 * "IL"."Feature_53" + 0.1785368 * "IL"."Feature_54" + -0.02087608 * "IL"."Feature_55" + 0.3084158 * "IL"."Feature_56" + 0.3426913 * "IL"."Feature_57" + -0.1118219 * "IL"."Feature_58" + -0.259112 * "IL"."Feature_59" + -0.04684756 * "IL"."Feature_60" + 0.1356465 * "IL"."Feature_61" + -0.07650181 * "IL"."Feature_62" + -0.07056681 * "IL"."Feature_63" + 0.07738546 * "IL"."Feature_64" + 0.07528265 * "IL"."Feature_65" + -0.1709656 * "IL"."Feature_66" + 0.3527078 * "IL"."Feature_67" + -0.3432125 * "IL"."Feature_68" + -0.06016805 * "IL"."Feature_69" + 0.2756042 * "IL"."Feature_70" + -0.01948741 * "IL"."Feature_71" + 0.111471 * "IL"."Feature_72" + -0.1396825 * "IL"."Feature_73" + -0.07743691 * "IL"."Feature_74" + 0.297903 * "IL"."Feature_75" + 0.100261 * "IL"."Feature_76" + 0.05518421 * "IL"."Feature_77" + 0.1813383 * "IL"."Feature_78" + 0.02645714 * "IL"."Feature_79" + -0.1443804 * "IL"."Feature_80" + -0.3258871 * "IL"."Feature_81" + -0.03707264 * "IL"."Feature_82" + 0.1239 * "IL"."Feature_83" + 0.1961084 * "IL"."Feature_84" + -0.05551071 * "IL"."Feature_85" + -0.01393856 * "IL"."Feature_86" + 0.181381 * "IL"."Feature_87" + 0.1679803 * "IL"."Feature_88" + -0.02077667 * "IL"."Feature_89" + -0.04675516 * "IL"."Feature_90" + -0.1061092 * "IL"."Feature_91" + 0.2106198 * "IL"."Feature_92" + 0.01709041 * "IL"."Feature_93" + 0.007753858 * "IL"."Feature_94" + -0.3208177 * "IL"."Feature_95" + 0.2251607 * "IL"."Feature_96" + -0.02119395 * "IL"."Feature_97" + -0.05868745 * "IL"."Feature_98" + 0.1519853 * "IL"."Feature_99" + 0.1742143 AS "NEUR_1_5", 0.1409197 * "IL"."Feature_0" + -0.1132872 * "IL"."Feature_1" + -0.1321204 * "IL"."Feature_2" + 0.1425855 * "IL"."Feature_3" + -0.6366081 * "IL"."Feature_4" + 0.3757373 * "IL"."Feature_5" + -0.0360382 * "IL"."Feature_6" + 0.0756624 * "IL"."Feature_7" + 0.03225576 * "IL"."Feature_8" + 0.02829812 * "IL"."Feature_9" + -0.2283477 * "IL"."Feature_10" + 0.1007051 * "IL"."Feature_11" + -0.08487605 * "IL"."Feature_12" + 0.2207233 * "IL"."Feature_13" + -0.2326463 * "IL"."Feature_14" + -0.2117667 * "IL"."Feature_15" + -0.03231975 * "IL"."Feature_16" + 0.05767488 * "IL"."Feature_17" + -0.4010722 * "IL"."Feature_18" + -0.1049982 * "IL"."Feature_19" + 0.002701182 * "IL"."Feature_20" + -0.07087208 * "IL"."Feature_21" + -0.2152194 * "IL"."Feature_22" + 0.06066187 * "IL"."Feature_23" + -0.1492766 * "IL"."Feature_24" + -0.1557918 * "IL"."Feature_25" + -0.1060676 * "IL"."Feature_26" + 0.02504671 * "IL"."Feature_27" + -0.01214378 * "IL"."Feature_28" + 0.02317726 * "IL"."Feature_29" + -0.0752567 * "IL"."Feature_30" + -0.3580755 * "IL"."Feature_31" + 0.1406166 * "IL"."Feature_32" + -0.2211887 * "IL"."Feature_33" + -0.2691902 * "IL"."Feature_34" + -0.1355902 * "IL"."Feature_35" + -0.1885199 * "IL"."Feature_36" + -0.08467187 * "IL"."Feature_37" + -0.1177315 * "IL"."Feature_38" + -0.1735443 * "IL"."Feature_39" + -0.1956465 * "IL"."Feature_40" + -0.1059361 * "IL"."Feature_41" + -0.1415017 * "IL"."Feature_42" + 0.1086039 * "IL"."Feature_43" + -0.2249667 * "IL"."Feature_44" + -0.2366924 * "IL"."Feature_45" + 0.08565389 * "IL"."Feature_46" + 0.04272192 * "IL"."Feature_47" + -0.2005542 * "IL"."Feature_48" + -0.2036746 * "IL"."Feature_49" + -0.04203047 * "IL"."Feature_50" + -0.01813122 * "IL"."Feature_51" + -0.1922768 * "IL"."Feature_52" + -0.01227627 * "IL"."Feature_53" + 0.07581983 * "IL"."Feature_54" + -0.02222638 * "IL"."Feature_55" + 0.1775102 * "IL"."Feature_56" + 0.5900138 * "IL"."Feature_57" + 0.04940528 * "IL"."Feature_58" + -0.04382495 * "IL"."Feature_59" + -0.4218564 * "IL"."Feature_60" + 0.1956212 * "IL"."Feature_61" + 0.2943963 * "IL"."Feature_62" + -0.06642301 * "IL"."Feature_63" + 0.1771677 * "IL"."Feature_64" + -0.08274494 * "IL"."Feature_65" + 0.07058125 * "IL"."Feature_66" + 0.3206514 * "IL"."Feature_67" + -0.04791864 * "IL"."Feature_68" + -0.340036 * "IL"."Feature_69" + 0.1409174 * "IL"."Feature_70" + 0.3681507 * "IL"."Feature_71" + -0.08097149 * "IL"."Feature_72" + -0.1201593 * "IL"."Feature_73" + 0.1419208 * "IL"."Feature_74" + -0.008731188 * "IL"."Feature_75" + -0.1216942 * "IL"."Feature_76" + -0.387459 * "IL"."Feature_77" + 0.05842716 * "IL"."Feature_78" + 0.03984306 * "IL"."Feature_79" + -0.1818896 * "IL"."Feature_80" + -0.06404514 * "IL"."Feature_81" + 0.1610784 * "IL"."Feature_82" + 0.1328995 * "IL"."Feature_83" + -0.1965101 * "IL"."Feature_84" + -0.297108 * "IL"."Feature_85" + 0.01212317 * "IL"."Feature_86" + 0.1590926 * "IL"."Feature_87" + -0.1149539 * "IL"."Feature_88" + -0.1343848 * "IL"."Feature_89" + -0.1989526 * "IL"."Feature_90" + -0.2454688 * "IL"."Feature_91" + 0.1187791 * "IL"."Feature_92" + -0.04540057 * "IL"."Feature_93" + 0.07255877 * "IL"."Feature_94" + -0.4098196 * "IL"."Feature_95" + -0.3045734 * "IL"."Feature_96" + 0.00946261 * "IL"."Feature_97" + -0.1219875 * "IL"."Feature_98" + -0.08714254 * "IL"."Feature_99" + -0.01537122 AS "NEUR_1_6", -0.1718081 * "IL"."Feature_0" + -0.13944 * "IL"."Feature_1" + 0.1040339 * "IL"."Feature_2" + 0.3715542 * "IL"."Feature_3" + 0.6912769 * "IL"."Feature_4" + -0.3124358 * "IL"."Feature_5" + -0.05608197 * "IL"."Feature_6" + -0.2749737 * "IL"."Feature_7" + -0.1958122 * "IL"."Feature_8" + 0.0213579 * "IL"."Feature_9" + 0.4878051 * "IL"."Feature_10" + -0.04954381 * "IL"."Feature_11" + -0.1636686 * "IL"."Feature_12" + -0.2821549 * "IL"."Feature_13" + 0.1742209 * "IL"."Feature_14" + 0.4441084 * "IL"."Feature_15" + -0.09594531 * "IL"."Feature_16" + -0.04562188 * "IL"."Feature_17" + 0.006212074 * "IL"."Feature_18" + 0.152182 * "IL"."Feature_19" + -0.1282188 * "IL"."Feature_20" + 0.1769714 * "IL"."Feature_21" + -0.1203495 * "IL"."Feature_22" + -0.03295103 * "IL"."Feature_23" + 0.0273157 * "IL"."Feature_24" + 0.2584213 * "IL"."Feature_25" + 0.306492 * "IL"."Feature_26" + -0.2136546 * "IL"."Feature_27" + -0.01473873 * "IL"."Feature_28" + 0.08664913 * "IL"."Feature_29" + 0.1068518 * "IL"."Feature_30" + 0.201421 * "IL"."Feature_31" + -0.0888377 * "IL"."Feature_32" + 0.3275034 * "IL"."Feature_33" + 0.1805744 * "IL"."Feature_34" + 0.1901789 * "IL"."Feature_35" + -0.03583911 * "IL"."Feature_36" + -0.4401218 * "IL"."Feature_37" + 0.06446273 * "IL"."Feature_38" + -0.1536901 * "IL"."Feature_39" + -0.07962082 * "IL"."Feature_40" + 0.02667452 * "IL"."Feature_41" + 0.2071769 * "IL"."Feature_42" + 0.02828982 * "IL"."Feature_43" + 0.2715865 * "IL"."Feature_44" + -0.109113 * "IL"."Feature_45" + 0.1491695 * "IL"."Feature_46" + -0.1046585 * "IL"."Feature_47" + 0.3857031 * "IL"."Feature_48" + 0.06653074 * "IL"."Feature_49" + 0.01535143 * "IL"."Feature_50" + -0.3543048 * "IL"."Feature_51" + 0.04828819 * "IL"."Feature_52" + -0.2888457 * "IL"."Feature_53" + 0.1609899 * "IL"."Feature_54" + -0.06285551 * "IL"."Feature_55" + 0.09101649 * "IL"."Feature_56" + -0.7020795 * "IL"."Feature_57" + -0.09416767 * "IL"."Feature_58" + -0.1380574 * "IL"."Feature_59" + 0.315544 * "IL"."Feature_60" + 0.155683 * "IL"."Feature_61" + -0.09040529 * "IL"."Feature_62" + -0.1670388 * "IL"."Feature_63" + -0.05275393 * "IL"."Feature_64" + -0.140898 * "IL"."Feature_65" + 0.2554934 * "IL"."Feature_66" + -0.5165848 * "IL"."Feature_67" + 0.06565995 * "IL"."Feature_68" + 0.03926942 * "IL"."Feature_69" + 0.2719193 * "IL"."Feature_70" + 0.5378895 * "IL"."Feature_71" + 0.1870695 * "IL"."Feature_72" + 0.3207427 * "IL"."Feature_73" + -0.0486693 * "IL"."Feature_74" + 0.1665959 * "IL"."Feature_75" + 0.03954433 * "IL"."Feature_76" + 0.3169306 * "IL"."Feature_77" + 0.008095491 * "IL"."Feature_78" + -0.15124 * "IL"."Feature_79" + 0.07035013 * "IL"."Feature_80" + -0.4031288 * "IL"."Feature_81" + -0.2230431 * "IL"."Feature_82" + 0.1554348 * "IL"."Feature_83" + -0.2233566 * "IL"."Feature_84" + -0.146373 * "IL"."Feature_85" + -0.04674883 * "IL"."Feature_86" + 0.1249446 * "IL"."Feature_87" + -0.3397135 * "IL"."Feature_88" + 0.1750827 * "IL"."Feature_89" + 0.1807777 * "IL"."Feature_90" + 0.2068951 * "IL"."Feature_91" + -0.424963 * "IL"."Feature_92" + 0.2941243 * "IL"."Feature_93" + 0.3306105 * "IL"."Feature_94" + 0.4765735 * "IL"."Feature_95" + 0.1723259 * "IL"."Feature_96" + -0.05138502 * "IL"."Feature_97" + -0.1015518 * "IL"."Feature_98" + 0.1116114 * "IL"."Feature_99" + 0.08039324 AS "NEUR_1_7", 0.3071532 * "IL"."Feature_0" + -0.02837647 * "IL"."Feature_1" + 0.02873585 * "IL"."Feature_2" + -0.1054804 * "IL"."Feature_3" + -0.7086033 * "IL"."Feature_4" + 0.359458 * "IL"."Feature_5" + 0.1193719 * "IL"."Feature_6" + 0.02438748 * "IL"."Feature_7" + -0.00405816 * "IL"."Feature_8" + 0.1325543 * "IL"."Feature_9" + -0.09120741 * "IL"."Feature_10" + 0.05168882 * "IL"."Feature_11" + 0.1204819 * "IL"."Feature_12" + 0.1501415 * "IL"."Feature_13" + -0.1928248 * "IL"."Feature_14" + -0.3543797 * "IL"."Feature_15" + 0.2667904 * "IL"."Feature_16" + 0.0877224 * "IL"."Feature_17" + -0.6768386 * "IL"."Feature_18" + 0.1047105 * "IL"."Feature_19" + 0.1092121 * "IL"."Feature_20" + -0.1547835 * "IL"."Feature_21" + -0.1223247 * "IL"."Feature_22" + -0.001161302 * "IL"."Feature_23" + 0.01090391 * "IL"."Feature_24" + -0.3330426 * "IL"."Feature_25" + 0.07378585 * "IL"."Feature_26" + 0.0846414 * "IL"."Feature_27" + -0.2085118 * "IL"."Feature_28" + 0.0983993 * "IL"."Feature_29" + -0.2874448 * "IL"."Feature_30" + -0.288162 * "IL"."Feature_31" + 0.08453437 * "IL"."Feature_32" + -0.2238718 * "IL"."Feature_33" + -0.445241 * "IL"."Feature_34" + 0.01359332 * "IL"."Feature_35" + -0.2179708 * "IL"."Feature_36" + -0.2658832 * "IL"."Feature_37" + 0.217741 * "IL"."Feature_38" + -0.3773819 * "IL"."Feature_39" + -0.2083522 * "IL"."Feature_40" + 0.1473982 * "IL"."Feature_41" + 0.003197163 * "IL"."Feature_42" + 0.031854 * "IL"."Feature_43" + -0.3920233 * "IL"."Feature_44" + -0.1059598 * "IL"."Feature_45" + -0.06603086 * "IL"."Feature_46" + -0.01159235 * "IL"."Feature_47" + -0.06971612 * "IL"."Feature_48" + -0.2085896 * "IL"."Feature_49" + 0.2826391 * "IL"."Feature_50" + -0.2184109 * "IL"."Feature_51" + -0.1196686 * "IL"."Feature_52" + 0.4569039 * "IL"."Feature_53" + 0.1775238 * "IL"."Feature_54" + 0.1124788 * "IL"."Feature_55" + 0.1616859 * "IL"."Feature_56" + 1.014178 * "IL"."Feature_57" + 0.07708402 * "IL"."Feature_58" + -0.07635627 * "IL"."Feature_59" + -0.5214252 * "IL"."Feature_60" + 0.1593379 * "IL"."Feature_61" + 0.2523899 * "IL"."Feature_62" + 0.07339698 * "IL"."Feature_63" + 0.1940322 * "IL"."Feature_64" + 0.2418149 * "IL"."Feature_65" + -0.0731155 * "IL"."Feature_66" + 0.3094474 * "IL"."Feature_67" + -0.1170354 * "IL"."Feature_68" + -0.08313567 * "IL"."Feature_69" + 0.211842 * "IL"."Feature_70" + -0.1396555 * "IL"."Feature_71" + -0.1331191 * "IL"."Feature_72" + -0.3722752 * "IL"."Feature_73" + 0.1289506 * "IL"."Feature_74" + -0.08865662 * "IL"."Feature_75" + 0.03086907 * "IL"."Feature_76" + -0.4716536 * "IL"."Feature_77" + -0.06267244 * "IL"."Feature_78" + 0.3167507 * "IL"."Feature_79" + -0.3176413 * "IL"."Feature_80" + -0.1447252 * "IL"."Feature_81" + 0.3076003 * "IL"."Feature_82" + -0.01701832 * "IL"."Feature_83" + -0.02835865 * "IL"."Feature_84" + -0.4633758 * "IL"."Feature_85" + -0.09237059 * "IL"."Feature_86" + 0.03392605 * "IL"."Feature_87" + -0.1897001 * "IL"."Feature_88" + -0.32227 * "IL"."Feature_89" + -0.242426 * "IL"."Feature_90" + -0.1776703 * "IL"."Feature_91" + 0.2666236 * "IL"."Feature_92" + -0.1093065 * "IL"."Feature_93" + 0.02895556 * "IL"."Feature_94" + -0.2965604 * "IL"."Feature_95" + -0.4412443 * "IL"."Feature_96" + 0.1074497 * "IL"."Feature_97" + -0.07166621 * "IL"."Feature_98" + 0.0003796364 * "IL"."Feature_99" + -0.1743522 AS "NEUR_1_8", -0.3524316 * "IL"."Feature_0" + -0.2972151 * "IL"."Feature_1" + 0.1432198 * "IL"."Feature_2" + 0.005315107 * "IL"."Feature_3" + 0.8376664 * "IL"."Feature_4" + -0.4465279 * "IL"."Feature_5" + 0.05184183 * "IL"."Feature_6" + -0.07859425 * "IL"."Feature_7" + -0.2872363 * "IL"."Feature_8" + 0.1091961 * "IL"."Feature_9" + 0.2700945 * "IL"."Feature_10" + 0.03117709 * "IL"."Feature_11" + -0.1837443 * "IL"."Feature_12" + 0.05188379 * "IL"."Feature_13" + 0.1034432 * "IL"."Feature_14" + 0.510056 * "IL"."Feature_15" + -0.09473539 * "IL"."Feature_16" + -0.2459533 * "IL"."Feature_17" + 0.2182231 * "IL"."Feature_18" + 0.1733619 * "IL"."Feature_19" + -0.0611477 * "IL"."Feature_20" + 0.02206941 * "IL"."Feature_21" + -0.006930182 * "IL"."Feature_22" + 0.01165884 * "IL"."Feature_23" + 0.05958953 * "IL"."Feature_24" + 0.2922474 * "IL"."Feature_25" + 0.1143701 * "IL"."Feature_26" + 0.02893558 * "IL"."Feature_27" + -0.004139934 * "IL"."Feature_28" + -0.000979786 * "IL"."Feature_29" + 0.03482736 * "IL"."Feature_30" + 0.2598242 * "IL"."Feature_31" + -0.1643839 * "IL"."Feature_32" + 0.4762085 * "IL"."Feature_33" + 0.310212 * "IL"."Feature_34" + -0.1532926 * "IL"."Feature_35" + -0.0001450563 * "IL"."Feature_36" + -0.1918753 * "IL"."Feature_37" + -0.07312369 * "IL"."Feature_38" + 0.009041117 * "IL"."Feature_39" + 0.003396368 * "IL"."Feature_40" + 0.02728398 * "IL"."Feature_41" + 0.0338033 * "IL"."Feature_42" + -0.0454505 * "IL"."Feature_43" + 0.3656351 * "IL"."Feature_44" + 0.1407198 * "IL"."Feature_45" + -0.1252405 * "IL"."Feature_46" + -0.04472487 * "IL"."Feature_47" + 0.3196887 * "IL"."Feature_48" + 0.04395192 * "IL"."Feature_49" + -0.310805 * "IL"."Feature_50" + -0.03039333 * "IL"."Feature_51" + -0.05266513 * "IL"."Feature_52" + -0.2175581 * "IL"."Feature_53" + 0.02018406 * "IL"."Feature_54" + -0.01936187 * "IL"."Feature_55" + -0.0940593 * "IL"."Feature_56" + -0.8152647 * "IL"."Feature_57" + -0.1022151 * "IL"."Feature_58" + -0.2669018 * "IL"."Feature_59" + 0.5094532 * "IL"."Feature_60" + 0.1297024 * "IL"."Feature_61" + 0.08884398 * "IL"."Feature_62" + -0.09164284 * "IL"."Feature_63" + -0.1618763 * "IL"."Feature_64" + 0.1233489 * "IL"."Feature_65" + 0.08741463 * "IL"."Feature_66" + -0.683136 * "IL"."Feature_67" + 0.2587275 * "IL"."Feature_68" + 0.162531 * "IL"."Feature_69" + -0.1785237 * "IL"."Feature_70" + 0.4816567 * "IL"."Feature_71" + 0.09447022 * "IL"."Feature_72" + 0.3254716 * "IL"."Feature_73" + -0.2516116 * "IL"."Feature_74" + -0.02441134 * "IL"."Feature_75" + 0.08047371 * "IL"."Feature_76" + 0.3310263 * "IL"."Feature_77" + 0.216155 * "IL"."Feature_78" + -0.1384959 * "IL"."Feature_79" + 0.206841 * "IL"."Feature_80" + 0.05397356 * "IL"."Feature_81" + -0.4259797 * "IL"."Feature_82" + 0.07857731 * "IL"."Feature_83" + -0.233222 * "IL"."Feature_84" + 0.2756382 * "IL"."Feature_85" + -0.06150488 * "IL"."Feature_86" + -0.03378713 * "IL"."Feature_87" + -0.05396712 * "IL"."Feature_88" + 0.2085484 * "IL"."Feature_89" + 0.1225589 * "IL"."Feature_90" + 0.01184536 * "IL"."Feature_91" + -0.1263808 * "IL"."Feature_92" + 0.04190618 * "IL"."Feature_93" + 0.1844159 * "IL"."Feature_94" + 0.3966752 * "IL"."Feature_95" + 0.1719941 * "IL"."Feature_96" + 0.2103786 * "IL"."Feature_97" + -0.01314439 * "IL"."Feature_98" + 0.2950253 * "IL"."Feature_99" + -0.145141 AS "NEUR_1_9", 0.3494795 * "IL"."Feature_0" + 0.2934247 * "IL"."Feature_1" + 0.06853743 * "IL"."Feature_2" + 0.1606903 * "IL"."Feature_3" + -0.8431022 * "IL"."Feature_4" + 0.8344264 * "IL"."Feature_5" + -0.4038714 * "IL"."Feature_6" + -0.3771366 * "IL"."Feature_7" + 0.2784907 * "IL"."Feature_8" + 0.2430766 * "IL"."Feature_9" + -0.1046675 * "IL"."Feature_10" + 0.1396315 * "IL"."Feature_11" + 0.1877241 * "IL"."Feature_12" + -0.1349785 * "IL"."Feature_13" + -0.1373585 * "IL"."Feature_14" + -0.3010246 * "IL"."Feature_15" + 0.055127 * "IL"."Feature_16" + 0.243161 * "IL"."Feature_17" + -0.2804297 * "IL"."Feature_18" + -0.09612529 * "IL"."Feature_19" + -0.2753033 * "IL"."Feature_20" + 0.09781421 * "IL"."Feature_21" + -0.08261232 * "IL"."Feature_22" + 0.06972483 * "IL"."Feature_23" + -0.3347971 * "IL"."Feature_24" + -0.2643921 * "IL"."Feature_25" + -0.2043354 * "IL"."Feature_26" + 0.4322192 * "IL"."Feature_27" + -0.5188972 * "IL"."Feature_28" + -0.05648683 * "IL"."Feature_29" + 0.1340518 * "IL"."Feature_30" + -0.09230889 * "IL"."Feature_31" + 0.2182114 * "IL"."Feature_32" + -0.4291674 * "IL"."Feature_33" + -0.5941712 * "IL"."Feature_34" + -0.2121746 * "IL"."Feature_35" + 0.0609519 * "IL"."Feature_36" + -0.2021422 * "IL"."Feature_37" + -0.04761297 * "IL"."Feature_38" + -0.036351 * "IL"."Feature_39" + 0.1440764 * "IL"."Feature_40" + -0.1599114 * "IL"."Feature_41" + -0.127386 * "IL"."Feature_42" + 0.2974952 * "IL"."Feature_43" + -0.524413 * "IL"."Feature_44" + -0.1601076 * "IL"."Feature_45" + 0.02970783 * "IL"."Feature_46" + 0.008106005 * "IL"."Feature_47" + -0.4118094 * "IL"."Feature_48" + -0.273194 * "IL"."Feature_49" + -0.09215248 * "IL"."Feature_50" + -0.06066058 * "IL"."Feature_51" + -0.2102565 * "IL"."Feature_52" + 0.3056381 * "IL"."Feature_53" + 0.5209719 * "IL"."Feature_54" + 0.1003348 * "IL"."Feature_55" + 0.1673583 * "IL"."Feature_56" + 0.9481778 * "IL"."Feature_57" + 0.1956836 * "IL"."Feature_58" + 0.3267436 * "IL"."Feature_59" + -0.07050999 * "IL"."Feature_60" + 0.02690083 * "IL"."Feature_61" + 0.0399874 * "IL"."Feature_62" + 0.4001858 * "IL"."Feature_63" + 0.1380111 * "IL"."Feature_64" + 0.1473658 * "IL"."Feature_65" + 0.00588761 * "IL"."Feature_66" + 0.7169813 * "IL"."Feature_67" + -0.4397131 * "IL"."Feature_68" + -0.1820837 * "IL"."Feature_69" + -0.08568253 * "IL"."Feature_70" + -0.4756235 * "IL"."Feature_71" + -0.2771165 * "IL"."Feature_72" + -0.4217924 * "IL"."Feature_73" + -0.01388265 * "IL"."Feature_74" + 0.1651969 * "IL"."Feature_75" + -0.06695334 * "IL"."Feature_76" + -0.2150132 * "IL"."Feature_77" + 0.1225754 * "IL"."Feature_78" + 0.2646313 * "IL"."Feature_79" + -0.3451718 * "IL"."Feature_80" + 0.1116996 * "IL"."Feature_81" + 0.1580315 * "IL"."Feature_82" + 0.236812 * "IL"."Feature_83" + 0.3319832 * "IL"."Feature_84" + -0.05689108 * "IL"."Feature_85" + -0.00297076 * "IL"."Feature_86" + -0.05053209 * "IL"."Feature_87" + 0.1712195 * "IL"."Feature_88" + -0.08562299 * "IL"."Feature_89" + -0.3903621 * "IL"."Feature_90" + -0.2497624 * "IL"."Feature_91" + 0.5179587 * "IL"."Feature_92" + -0.2561867 * "IL"."Feature_93" + -0.2729347 * "IL"."Feature_94" + -0.3845501 * "IL"."Feature_95" + -0.163856 * "IL"."Feature_96" + 0.4846812 * "IL"."Feature_97" + -0.04415205 * "IL"."Feature_98" + -0.05415387 * "IL"."Feature_99" + 0.4771042 AS "NEUR_1_10", 0.09880808 * "IL"."Feature_0" + -0.07594698 * "IL"."Feature_1" + 0.04956338 * "IL"."Feature_2" + -0.01034813 * "IL"."Feature_3" + -0.0979841 * "IL"."Feature_4" + -0.1311325 * "IL"."Feature_5" + 0.123696 * "IL"."Feature_6" + -0.1421492 * "IL"."Feature_7" + 0.1183293 * "IL"."Feature_8" + -0.1893386 * "IL"."Feature_9" + -0.04568533 * "IL"."Feature_10" + 0.132467 * "IL"."Feature_11" + 0.1721727 * "IL"."Feature_12" + 0.05702538 * "IL"."Feature_13" + -0.0280996 * "IL"."Feature_14" + -0.09775248 * "IL"."Feature_15" + -0.1154957 * "IL"."Feature_16" + -0.3148449 * "IL"."Feature_17" + 0.04397151 * "IL"."Feature_18" + -0.1042632 * "IL"."Feature_19" + 0.1296095 * "IL"."Feature_20" + 0.04405769 * "IL"."Feature_21" + 0.04142387 * "IL"."Feature_22" + -0.1652142 * "IL"."Feature_23" + -0.2201073 * "IL"."Feature_24" + -0.0263876 * "IL"."Feature_25" + 0.06632801 * "IL"."Feature_26" + 0.1706439 * "IL"."Feature_27" + 0.1779895 * "IL"."Feature_28" + 0.07660592 * "IL"."Feature_29" + -0.07295418 * "IL"."Feature_30" + 0.1880341 * "IL"."Feature_31" + 0.2276728 * "IL"."Feature_32" + 0.2327062 * "IL"."Feature_33" + 0.1021986 * "IL"."Feature_34" + -0.2020106 * "IL"."Feature_35" + 0.2672765 * "IL"."Feature_36" + -0.08716122 * "IL"."Feature_37" + -0.1570559 * "IL"."Feature_38" + 0.2124729 * "IL"."Feature_39" + -0.07361886 * "IL"."Feature_40" + 0.0668692 * "IL"."Feature_41" + -0.1328159 * "IL"."Feature_42" + 0.06734682 * "IL"."Feature_43" + 0.1956859 * "IL"."Feature_44" + 0.01516007 * "IL"."Feature_45" + -0.04894902 * "IL"."Feature_46" + 0.15403 * "IL"."Feature_47" + -0.06036518 * "IL"."Feature_48" + 0.09322377 * "IL"."Feature_49" + -0.1276796 * "IL"."Feature_50" + -0.2888157 * "IL"."Feature_51" + -0.04054225 * "IL"."Feature_52" + -0.3183245 * "IL"."Feature_53" + -0.2336003 * "IL"."Feature_54" + -0.2320672 * "IL"."Feature_55" + -0.3436106 * "IL"."Feature_56" + 0.0353091 * "IL"."Feature_57" + -0.1394409 * "IL"."Feature_58" + -0.1633976 * "IL"."Feature_59" + 0.2470863 * "IL"."Feature_60" + 0.1285518 * "IL"."Feature_61" + 0.2324852 * "IL"."Feature_62" + -0.0804121 * "IL"."Feature_63" + 0.04168774 * "IL"."Feature_64" + 0.1140482 * "IL"."Feature_65" + -0.009008553 * "IL"."Feature_66" + -0.4367854 * "IL"."Feature_67" + 0.1948318 * "IL"."Feature_68" + -0.1450649 * "IL"."Feature_69" + -0.0597786 * "IL"."Feature_70" + -0.1012343 * "IL"."Feature_71" + 0.04152388 * "IL"."Feature_72" + -0.02615086 * "IL"."Feature_73" + 0.01951322 * "IL"."Feature_74" + -0.09602685 * "IL"."Feature_75" + -0.001860839 * "IL"."Feature_76" + -0.04945912 * "IL"."Feature_77" + -0.05902175 * "IL"."Feature_78" + 0.1665068 * "IL"."Feature_79" + 0.1322555 * "IL"."Feature_80" + 0.1105393 * "IL"."Feature_81" + 0.1498066 * "IL"."Feature_82" + 0.1042895 * "IL"."Feature_83" + 0.01998143 * "IL"."Feature_84" + 0.01643163 * "IL"."Feature_85" + 0.08970411 * "IL"."Feature_86" + -0.2483959 * "IL"."Feature_87" + -0.03452841 * "IL"."Feature_88" + 0.08468944 * "IL"."Feature_89" + -0.2015939 * "IL"."Feature_90" + 0.1900668 * "IL"."Feature_91" + 0.03158128 * "IL"."Feature_92" + -0.2126515 * "IL"."Feature_93" + 0.02198327 * "IL"."Feature_94" + 0.04962311 * "IL"."Feature_95" + -0.2848276 * "IL"."Feature_96" + -0.03875439 * "IL"."Feature_97" + -0.1599092 * "IL"."Feature_98" + -0.1181779 * "IL"."Feature_99" + 0.114848 AS "NEUR_1_11", 0.1637789 * "IL"."Feature_0" + -0.004186859 * "IL"."Feature_1" + -0.08494367 * "IL"."Feature_2" + -0.01059097 * "IL"."Feature_3" + -0.7776722 * "IL"."Feature_4" + 0.4948634 * "IL"."Feature_5" + -0.2535645 * "IL"."Feature_6" + 0.09662217 * "IL"."Feature_7" + 0.007791125 * "IL"."Feature_8" + 0.2306938 * "IL"."Feature_9" + -0.1101896 * "IL"."Feature_10" + 0.1348533 * "IL"."Feature_11" + 0.06190587 * "IL"."Feature_12" + 0.1009756 * "IL"."Feature_13" + -0.1234044 * "IL"."Feature_14" + -0.1579017 * "IL"."Feature_15" + 0.04846507 * "IL"."Feature_16" + 0.1929257 * "IL"."Feature_17" + -0.161623 * "IL"."Feature_18" + 0.02573122 * "IL"."Feature_19" + -0.12165 * "IL"."Feature_20" + 0.008151492 * "IL"."Feature_21" + -0.1070032 * "IL"."Feature_22" + -0.1021677 * "IL"."Feature_23" + 0.06457998 * "IL"."Feature_24" + -0.243923 * "IL"."Feature_25" + 0.1030227 * "IL"."Feature_26" + -0.04926649 * "IL"."Feature_27" + -0.09781716 * "IL"."Feature_28" + 0.1067129 * "IL"."Feature_29" + 0.2647459 * "IL"."Feature_30" + -0.130975 * "IL"."Feature_31" + 0.07204912 * "IL"."Feature_32" + -0.5085829 * "IL"."Feature_33" + -0.3237018 * "IL"."Feature_34" + 0.1935399 * "IL"."Feature_35" + -0.1046492 * "IL"."Feature_36" + 0.2501094 * "IL"."Feature_37" + -0.1316146 * "IL"."Feature_38" + -0.1446261 * "IL"."Feature_39" + -0.1450094 * "IL"."Feature_40" + -0.2976943 * "IL"."Feature_41" + -0.03986363 * "IL"."Feature_42" + 0.03009997 * "IL"."Feature_43" + -0.5061273 * "IL"."Feature_44" + -0.2390811 * "IL"."Feature_45" + 0.16991 * "IL"."Feature_46" + -0.0351883 * "IL"."Feature_47" + -0.3383841 * "IL"."Feature_48" + -0.04962193 * "IL"."Feature_49" + -0.03700462 * "IL"."Feature_50" + 0.003897339 * "IL"."Feature_51" + -0.28787 * "IL"."Feature_52" + 0.007274842 * "IL"."Feature_53" + 0.08362942 * "IL"."Feature_54" + 0.09673824 * "IL"."Feature_55" + 0.3588695 * "IL"."Feature_56" + 0.698328 * "IL"."Feature_57" + 0.02450668 * "IL"."Feature_58" + 0.3126589 * "IL"."Feature_59" + -0.322455 * "IL"."Feature_60" + -0.08901534 * "IL"."Feature_61" + 0.06486743 * "IL"."Feature_62" + 0.2879523 * "IL"."Feature_63" + 0.1908228 * "IL"."Feature_64" + 0.2059576 * "IL"."Feature_65" + -0.09800324 * "IL"."Feature_66" + 0.5489882 * "IL"."Feature_67" + -0.2840116 * "IL"."Feature_68" + -0.1590784 * "IL"."Feature_69" + 0.1978674 * "IL"."Feature_70" + -0.09692089 * "IL"."Feature_71" + -0.0710243 * "IL"."Feature_72" + -0.07758469 * "IL"."Feature_73" + 0.1152137 * "IL"."Feature_74" + 0.323701 * "IL"."Feature_75" + 0.2028861 * "IL"."Feature_76" + -0.141142 * "IL"."Feature_77" + 0.1851057 * "IL"."Feature_78" + 0.1325094 * "IL"."Feature_79" + -0.3689302 * "IL"."Feature_80" + -0.05602118 * "IL"."Feature_81" + 0.02477397 * "IL"."Feature_82" + -0.2283939 * "IL"."Feature_83" + 0.1989682 * "IL"."Feature_84" + -0.4860794 * "IL"."Feature_85" + -0.05049653 * "IL"."Feature_86" + 0.02444838 * "IL"."Feature_87" + 0.3165763 * "IL"."Feature_88" + -0.3321949 * "IL"."Feature_89" + -0.204766 * "IL"."Feature_90" + -0.2055605 * "IL"."Feature_91" + 0.1934533 * "IL"."Feature_92" + -0.2700942 * "IL"."Feature_93" + -0.3142234 * "IL"."Feature_94" + -0.3788402 * "IL"."Feature_95" + -0.06026084 * "IL"."Feature_96" + 0.09245744 * "IL"."Feature_97" + -0.02427042 * "IL"."Feature_98" + -0.02095623 * "IL"."Feature_99" + 0.3022715 AS "NEUR_1_12" FROM "IL"), "HL_1_logistic" AS (SELECT "HL_BA_1"."KEY" AS "KEY", 1.0 / (1.0 + exp(CASE WHEN (100.0 <= CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_1") THEN -"HL_BA_1"."NEUR_1_1" ELSE -100.0 END) THEN 100.0 ELSE CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_1") THEN -"HL_BA_1"."NEUR_1_1" ELSE -100.0 END END)) AS "NEUR_1_1", 1.0 / (1.0 + exp(CASE WHEN (100.0 <= CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_2") THEN -"HL_BA_1"."NEUR_1_2" ELSE -100.0 END) THEN 100.0 ELSE CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_2") THEN -"HL_BA_1"."NEUR_1_2" ELSE -100.0 END END)) AS "NEUR_1_2", 1.0 / (1.0 + exp(CASE WHEN (100.0 <= CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_3") THEN -"HL_BA_1"."NEUR_1_3" ELSE -100.0 END) THEN 100.0 ELSE CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_3") THEN -"HL_BA_1"."NEUR_1_3" ELSE -100.0 END END)) AS "NEUR_1_3", 1.0 / (1.0 + exp(CASE WHEN (100.0 <= CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_4") THEN -"HL_BA_1"."NEUR_1_4" ELSE -100.0 END) THEN 100.0 ELSE CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_4") THEN -"HL_BA_1"."NEUR_1_4" ELSE -100.0 END END)) AS "NEUR_1_4", 1.0 / (1.0 + exp(CASE WHEN (100.0 <= CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_5") THEN -"HL_BA_1"."NEUR_1_5" ELSE -100.0 END) THEN 100.0 ELSE CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_5") THEN -"HL_BA_1"."NEUR_1_5" ELSE -100.0 END END)) AS "NEUR_1_5", 1.0 / (1.0 + exp(CASE WHEN (100.0 <= CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_6") THEN -"HL_BA_1"."NEUR_1_6" ELSE -100.0 END) THEN 100.0 ELSE CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_6") THEN -"HL_BA_1"."NEUR_1_6" ELSE -100.0 END END)) AS "NEUR_1_6", 1.0 / (1.0 + exp(CASE WHEN (100.0 <= CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_7") THEN -"HL_BA_1"."NEUR_1_7" ELSE -100.0 END) THEN 100.0 ELSE CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_7") THEN -"HL_BA_1"."NEUR_1_7" ELSE -100.0 END END)) AS "NEUR_1_7", 1.0 / (1.0 + exp(CASE WHEN (100.0 <= CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_8") THEN -"HL_BA_1"."NEUR_1_8" ELSE -100.0 END) THEN 100.0 ELSE CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_8") THEN -"HL_BA_1"."NEUR_1_8" ELSE -100.0 END END)) AS "NEUR_1_8", 1.0 / (1.0 + exp(CASE WHEN (100.0 <= CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_9") THEN -"HL_BA_1"."NEUR_1_9" ELSE -100.0 END) THEN 100.0 ELSE CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_9") THEN -"HL_BA_1"."NEUR_1_9" ELSE -100.0 END END)) AS "NEUR_1_9", 1.0 / (1.0 + exp(CASE WHEN (100.0 <= CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_10") THEN -"HL_BA_1"."NEUR_1_10" ELSE -100.0 END) THEN 100.0 ELSE CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_10") THEN -"HL_BA_1"."NEUR_1_10" ELSE -100.0 END END)) AS "NEUR_1_10", 1.0 / (1.0 + exp(CASE WHEN (100.0 <= CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_11") THEN -"HL_BA_1"."NEUR_1_11" ELSE -100.0 END) THEN 100.0 ELSE CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_11") THEN -"HL_BA_1"."NEUR_1_11" ELSE -100.0 END END)) AS "NEUR_1_11", 1.0 / (1.0 + exp(CASE WHEN (100.0 <= CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_12") THEN -"HL_BA_1"."NEUR_1_12" ELSE -100.0 END) THEN 100.0 ELSE CASE WHEN (-100.0 <= -"HL_BA_1"."NEUR_1_12") THEN -"HL_BA_1"."NEUR_1_12" ELSE -100.0 END END)) AS "NEUR_1_12" FROM "HL_BA_1"), "HL_1_logistic_1" AS (SELECT "HL_1_logistic"."KEY" AS "KEY", "HL_1_logistic"."NEUR_1_1" AS "NEUR_1_1", "HL_1_logistic"."NEUR_1_2" AS "NEUR_1_2", "HL_1_logistic"."NEUR_1_3" AS "NEUR_1_3", "HL_1_logistic"."NEUR_1_4" AS "NEUR_1_4", "HL_1_logistic"."NEUR_1_5" AS "NEUR_1_5", "HL_1_logistic"."NEUR_1_6" AS "NEUR_1_6", "HL_1_logistic"."NEUR_1_7" AS "NEUR_1_7", "HL_1_logistic"."NEUR_1_8" AS "NEUR_1_8", "HL_1_logistic"."NEUR_1_9" AS "NEUR_1_9", "HL_1_logistic"."NEUR_1_10" AS "NEUR_1_10", "HL_1_logistic"."NEUR_1_11" AS "NEUR_1_11", "HL_1_logistic"."NEUR_1_12" AS "NEUR_1_12" FROM "HL_1_logistic"), "OL_BA" AS (SELECT "HL_1_logistic_1"."KEY" AS "KEY", 2.939032 * "HL_1_logistic_1"."NEUR_1_1" + -5.509643 * "HL_1_logistic_1"."NEUR_1_2" + -2.222353 * "HL_1_logistic_1"."NEUR_1_3" + -1.237075 * "HL_1_logistic_1"."NEUR_1_4" + 1.549545 * "HL_1_logistic_1"."NEUR_1_5" + 2.211317 * "HL_1_logistic_1"."NEUR_1_6" + -2.682335 * "HL_1_logistic_1"."NEUR_1_7" + 2.931954 * "HL_1_logistic_1"."NEUR_1_8" + -2.745016 * "HL_1_logistic_1"."NEUR_1_9" + 2.847061 * "HL_1_logistic_1"."NEUR_1_10" + -1.192554 * "HL_1_logistic_1"."NEUR_1_11" + 2.052034 * "HL_1_logistic_1"."NEUR_1_12" + 0.3928975 AS "NEUR_2_1" FROM "HL_1_logistic_1"), "OL_softmax" AS (SELECT "OL_BA"."KEY" AS "KEY", "OL_BA"."NEUR_2_1" AS "NEUR_2_1" FROM "OL_BA"), "OL_softmax_1" AS (SELECT "OL_softmax"."KEY" AS "KEY", "OL_softmax"."NEUR_2_1" AS "NEUR_2_1" FROM "OL_softmax"), orig_cte AS (SELECT "OL_softmax_1"."KEY" AS "KEY", CAST(NULL AS DOUBLE) AS "Score_0", CAST(NULL AS DOUBLE) AS "Score_1", 1.0 - "OL_softmax_1"."NEUR_2_1" AS "Proba_0", "OL_softmax_1"."NEUR_2_1" AS "Proba_1", CAST(NULL AS DOUBLE) AS "LogProba_0", CAST(NULL AS DOUBLE) AS "LogProba_1", CAST(NULL AS BIGINT) AS "Decision", CAST(NULL AS DOUBLE) AS "DecisionProba" FROM "OL_softmax_1"), score_class_union AS (SELECT scu."KEY_u" AS "KEY_u", scu.class AS class, scu."LogProba" AS "LogProba", scu."Proba" AS "Proba", scu."Score" AS "Score" FROM (SELECT orig_cte."KEY" AS "KEY_u", 0 AS class, orig_cte."LogProba_0" AS "LogProba", orig_cte."Proba_0" AS "Proba", orig_cte."Score_0" AS "Score" FROM orig_cte UNION ALL SELECT orig_cte."KEY" AS "KEY_u", 1 AS class, orig_cte."LogProba_1" AS "LogProba", orig_cte."Proba_1" AS "Proba", orig_cte."Score_1" AS "Score" FROM orig_cte) AS scu), score_max AS (SELECT orig_cte."KEY" AS "KEY", orig_cte."Score_0" AS "Score_0", orig_cte."Score_1" AS "Score_1", orig_cte."Proba_0" AS "Proba_0", orig_cte."Proba_1" AS "Proba_1", orig_cte."LogProba_0" AS "LogProba_0", orig_cte."LogProba_1" AS "LogProba_1", orig_cte."Decision" AS "Decision", orig_cte."DecisionProba" AS "DecisionProba", max_select."KEY_m" AS "KEY_m", max_select."max_Proba" AS "max_Proba" FROM orig_cte LEFT OUTER JOIN (SELECT score_class_union."KEY_u" AS "KEY_m", max(score_class_union."Proba") AS "max_Proba" FROM score_class_union GROUP BY score_class_union."KEY_u") AS max_select ON orig_cte."KEY" = max_select."KEY_m"), union_with_max AS (SELECT score_class_union."KEY_u" AS "KEY_u", score_class_union.class AS class, score_class_union."LogProba" AS "LogProba", score_class_union."Proba" AS "Proba", score_class_union."Score" AS "Score", score_max."KEY" AS "KEY", score_max."Score_0" AS "Score_0", score_max."Score_1" AS "Score_1", score_max."Proba_0" AS "Proba_0", score_max."Proba_1" AS "Proba_1", score_max."LogProba_0" AS "LogProba_0", score_max."LogProba_1" AS "LogProba_1", score_max."Decision" AS "Decision", score_max."DecisionProba" AS "DecisionProba", score_max."KEY_m" AS "KEY_m", score_max."max_Proba" AS "max_Proba" FROM score_class_union LEFT OUTER JOIN score_max ON score_class_union."KEY_u" = score_max."KEY"), arg_max_cte AS (SELECT score_max."KEY" AS "KEY", score_max."Score_0" AS "Score_0", score_max."Score_1" AS "Score_1", score_max."Proba_0" AS "Proba_0", score_max."Proba_1" AS "Proba_1", score_max."LogProba_0" AS "LogProba_0", score_max."LogProba_1" AS "LogProba_1", score_max."Decision" AS "Decision", score_max."DecisionProba" AS "DecisionProba", score_max."KEY_m" AS "KEY_m", score_max."max_Proba" AS "max_Proba", "arg_max_t_Proba"."KEY_Proba" AS "KEY_Proba", "arg_max_t_Proba"."arg_max_Proba" AS "arg_max_Proba" FROM score_max LEFT OUTER JOIN (SELECT union_with_max."KEY" AS "KEY_Proba", max(union_with_max.class) AS "arg_max_Proba" FROM union_with_max WHERE union_with_max."max_Proba" <= union_with_max."Proba" GROUP BY union_with_max."KEY") AS "arg_max_t_Proba" ON score_max."KEY" = "arg_max_t_Proba"."KEY_Proba") SELECT arg_max_cte."KEY" AS "KEY", arg_max_cte."Score_0" AS "Score_0", arg_max_cte."Score_1" AS "Score_1", arg_max_cte."Proba_0" AS "Proba_0", arg_max_cte."Proba_1" AS "Proba_1", log(CASE WHEN (arg_max_cte."Proba_0" IS NULL OR arg_max_cte."Proba_0" > 1e-100) THEN arg_max_cte."Proba_0" ELSE 1e-100 END) AS "LogProba_0", log(CASE WHEN (arg_max_cte."Proba_1" IS NULL OR arg_max_cte."Proba_1" > 1e-100) THEN arg_max_cte."Proba_1" ELSE 1e-100 END) AS "LogProba_1", arg_max_cte."arg_max_Proba" AS "Decision", arg_max_cte."max_Proba" AS "DecisionProba" FROM arg_max_cte
-- @testpoint:opengauss关键字window(保留),作为函数名 --关键字不带引号-合理报错 create function window(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --关键字带双引号-成功 create function "window"(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --清理环境 drop function "window"; --关键字带单引号-合理报错 create function 'window'(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --关键字带反引号-合理报错 drop function if exists `window`; create function `window`(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; /
<filename>openGaussBase/testcase/SQL/INNERFUNC/bit_length/Opengauss_Function_Innerfunc_Bit_Length_Case0003.sql -- @testpoint: 特殊字符 select bit_length('#%$#'); select bit_length('*&^%$#@?|');
SET TIME ZONE 'Australia/Sydney'; CREATE TABLE stops (stop_id int, stop_code int, stop_name TEXT, stop_lat double precision, stop_lon double precision); /* remove header rows when COPYING */ COPY stops FROM '/Users/thomjoy/code/turftest/gtfs/stops.txt' DELIMITER ',' CSV; CREATE TABLE stop_times (trip_id VARCHAR, arrival_time time with time zone, departure_time time with time zone, stop_id int, stop_sequence int); COPY stop_times FROM '/Users/thomjoy/code/gtfs-utils/stop_times.txt' DELIMITER ',' CSV; CREATE TABLE trips (route_id VARCHAR, service_id int, trip_id VARCHAR,trip_headsign VARCHAR, shape_id int, wheelchair_accessible int, direction_id int); COPY trips FROM '/Users/thomjoy/code/turftest/gtfs/trips.txt' DELIMITER ',' CSV; CREATE TABLE routes (route_id VARCHAR, agency_id int, route_short_name VARCHAR, route_long_name VARCHAR, route_type int); COPY routes FROM '/Users/thomjoy/code/turftest/gtfs/routes.txt' DELIMITER ',' CSV; CREATE TABLE shapes (shape_id int, shape_pt_lat double precision, shape_pt_lon double precision, shape_pt_sequence int); COPY shapes FROM '/Users/thomjoy/code/turftest/gtfs/shapes.txt' DELIMITER ',' CSV; SELECT stop_times.stop_id, count(stop_times.stop_id) FROM stop_times GROUP BY stop_times.stop_id ORDER BY count(stop_times.stop_id) DESC /* Get services from a stop */ SELECT DISTINCT trips.route_id, routes.route_short_name, routes.route_long_name, trips.shape_id FROM trips JOIN routes on trips.route_id = routes.route_id WHERE trip_id IN (SELECT DISTINCT trip_id FROM stop_times WHERE stop_id = 200076); SELECT * FROM shapes WHERE shape_id = 157535;x /* view for populating the 'arriving soon' tab */ SELECT t.route_id, t.service_id, t.trip_id, t.trip_headsign, t.direction_id FROM trips t JOIN routes r ON r.route_id = t.route_id CREATE TABLE calendar (service_id int, monday int, tuesday int, wednesday int, thursday int, friday int, saturday int, sunday int, start_date date, end_date date); COPY calendar FROM '/Users/thomjoy/code/turftest/gtfs/calendar.txt' DELIMITER ',' CSV; SELECT r.route_id, t.trip_id, t.service_id, t.shape_id, c.monday, c.tuesday, c.wednesday, c.thursday, c.friday, c.saturday, c.sunday FROM trips t JOIN routes r ON r.route_id = t.route_id JOIN calendar c ON c.service_id = t.service_id WHERE t.service_id IN (SELECT c1.service_id FROM calendar c1 WHERE c1.wednesday = 1) /* get service_id's that run on tuesday */ SELECT c.service_id FROM calendar c WHERE c.tuesday = 1 /* get recently arriving services from a stop */ SELECT st.trip_id, st.departure_time, t.route_id, t.shape_id, t.trip_headsign FROM stop_times st JOIN trips t ON t.trip_id = st.trip_id JOIN calendar c ON c.service_id = t.service_id WHERE st.stop_id = 200077 AND t.service_id IN (SELECT c1.service_id FROM calendar c1 WHERE c1.wednesday = 1) AND date_trunc('minute', st.departure_time::time) - date_trunc('minute', now()::time) <= (interval '5 minute') AND date_trunc('minute', st.departure_time::time) - date_trunc('minute', now()::time) > (interval '0 minute') ORDER BY st.departure_time ASC SELECT date_trunc('minute', '14:30'::time without time zone) - date_trunc('minute', now()::time without time zone) < INTERVAL '5 minute' SELECT DISTINCT t.trip_id, t.route_id, t.shape_id, st.stop_id, s.stop_name, st.stop_sequence, st.arrival_time, st.departure_time, s.stop_lat, s.stop_lon, c.wednesday, t.direction_id FROM stop_times st JOIN stops s ON s.stop_id = st.stop_id JOIN trips t ON t.trip_id = st.trip_id JOIN calendar c ON c.service_id = t.service_id WHERE t.trip_id = '76466985_20150127_11954' AND t.service_id IN ( SELECT c1.service_id FROM calendar c1 WHERE c1.wednesday = 1 ) ORDER BY t.direction_id, st.stop_sequence; SELECT st.trip_id, st.departure_time, t.route_id, t.shape_id, t.trip_headsign FROM stop_times st JOIN trips t ON t.trip_id = st.trip_id JOIN calendar c ON c.service_id = t.service_id WHERE st.stop_id = 202161 AND t.service_id IN (SELECT c1.service_id FROM calendar c1 WHERE c1.monday = 1) AND date_trunc('minute', st.departure_time::time) - date_trunc('minute', now()::time) <= (interval '5 minute') AND date_trunc('minute', st.departure_time::time) - date_trunc('minute', now()::time) > (interval '0 minute') ORDER BY st.departure_time ASC /* find the nearest stop in a radius where there is a service departing in the next X minutes */ SELECT st.stop_id, s.stop_lat, s.stop_lon, st.departure_time FROM stops s JOIN stop_times st ON st.stop_id = s.stop_id JOIN trips t ON t.trip_id = st.trip_id AND t.service_id IN (SELECT c1.service_id FROM calendar c1 WHERE c1.monday = 1) AND date_trunc('minute', st.departure_time::time) - date_trunc('minute', now()::time) <= (interval '5 minute') AND date_trunc('minute', st.departure_time::time) - date_trunc('minute', now()::time) > (interval '0 minute') /* update the stops table to use postgis geometry types */ CREATE EXTENSION postgis; SELECT AddGeometryColumn ('stops', 'geom', 4326, 'POINT', 2); UPDATE stops SET geom = ST_Setsrid(ST_Makepoint(stop_lon, stop_lat),4326); /* find all stops around a point - where there is service leaving in X minutes */ SELECT s.stop_name, s.stop_lat, s.stop_lon, st.departure_time FROM stops s JOIN stop_times st ON st.stop_id = s.stop_id JOIN trips t ON t.trip_id = st.trip_id WHERE t.service_id IN ( SELECT c1.service_id FROM calendar c1 WHERE c1.monday = 1 ) AND t.direction_id = 1 AND ST_Distance_Sphere(geom, ST_MakePoint(151.22639894485471, -33.88468522118266)) <= ((10 / 0.62137) / 100) * 1609.34 AND date_trunc('minute', st.departure_time::time) - date_trunc('minute', now()::time) <= (interval '10 minute') AND date_trunc('minute', st.departure_time::time) - date_trunc('minute', now()::time) > (interval '0 minute') SELECT s.stop_id, s.stop_name, s.stop_lat, s.stop_lon, st.departure_time FROM stops s JOIN stop_times st ON st.stop_id = s.stop_id JOIN trips t ON t.trip_id = st.trip_id WHERE t.service_id IN (SELECT service_id FROM calendar WHERE tuesday = 1) AND t.direction_id = 1 AND ST_Distance_Sphere(geom, ST_MakePoint(151.2263989448547,-33.88468522118266)) <= 0.4023367719716111 * 1609.34 AND date_trunc('minute', st.departure_time::time) - date_trunc('minute', now()::time) <= (interval '5 minute') AND date_trunc('minute', st.departure_time::time) - date_trunc('minute', now()::time) > (interval '0 minute') ORDER BY st.departure_time; SELECT DISTINCT s.stop_id, s.stop_name, s.stop_lat, s.stop_lon, st.departure_time FROM stops s JOIN stop_times st ON st.stop_id = s.stop_id JOIN trips t ON t.trip_id = st.trip_id WHERE t.service_id IN (SELECT service_id FROM calendar WHERE tuesday = 1) AND t.direction_id = 0 AND ST_Distance_Sphere(geom, ST_MakePoint(151.2070655822754, -33.86998795846261)) <= 0.402 * 1609.34 AND date_trunc('minute', st.departure_time::time) - date_trunc('minute', now()::time) <= (interval '10 minute') AND date_trunc('minute', st.departure_time::time) - date_trunc('minute', now()::time) > (interval '0 minute'); SELECT DISTINCT shape_id FROM shapes CREATE TABLE suburb_shapes (suburb_name text, shape json) r
CREATE TABLE IF NOT EXISTS accounts ( id CHAR(27) PRIMARY KEY, name VARCHAR(24) NOT NULL, email VARCHAR(56), social_id VARCHAR(100), photoURL VARCHAR(100), locationURL VARCHAR (100), createtime DATE, last_updated DATE );
SELECT sku, COUNT(*) FROM customers INNER JOIN orders ON customers.cid = orders.cid INNER JOIN items ON orders.oid = items.oid INNER JOIN parent ON orders.oid = parent.id WHERE customers.name = 'Smith' GROUP BY sku ORDER BY sku
<filename>sql.sql<gh_stars>0 CREATE TABLE menu ( kode_makanan_minuman INT PRIMARY KEY AUTO_INCREMENT, nama_makanan_minuman VARCHAR(60) NOT NULL, harga_makanan_minuman INT NOT NULL, diskon DOUBLE )ENGINE = INNODB; CREATE TABLE pesanan ( id_pesanan VARCHAR(11) NOT NULL, kode_makanan_minuman INT, nomor_meja INT(2), jumlah INT(3), CONSTRAINT fk_kode_makanan_minuman FOREIGN KEY (`kode_makanan_minuman`) REFERENCES `menu`(`kode_makanan_minuman`), CONSTRAINT fk_nomor_meja FOREIGN KEY (`nomor_meja`) REFERENCES `pelanggan`(`nomor_meja`) )ENGINE=INNODB; ALTER TABLE menu ADD jenis_makanan_minuman INT(2) NOT NULL CREATE TABLE broadcast_pesanan( id_broadcast INT PRIMARY KEY AUTO_INCREMENT, id_pesanan VARCHAR(15), id INT(11) DEFAULT 0, `status` INT(2), FOREIGN KEY (`id`) REFERENCES users(id) )ENGINE=INNODB; ALTER TABLE menu ADD jenis_makanan_minuman INT(2) NOT NULL
<filename>auth/src/main/resources/studio/crud/feature/auth/db/migration/V20210512140449__CreateTokenMetadataTable.sql<gh_stars>0 create table auth_token_metadata ( id bigint auto_increment, creation_time datetime not null, last_update_time datetime not null, token TEXT not null, entity_uuid varchar(255) not null, device_hash varchar(255) null, device_score int null, primary key (id) );
<filename>pricing-service/target/classes/data.sql<gh_stars>0 INSERT INTO price (id, vehicle_id, currency, price) VALUES (1, 1, 'EUR', 999), (2, 2,'EUR', 1980), (3, 3, 'EUR', 12000), (4, 4, 'BRL', 45000), (5, 5, 'BRL', 95000)
<reponame>eaglestorm/servicebase create table Example ( id bigserial primary key, property1 varchar(255) not null, property2 varchar(255) not null )