sql
stringlengths
6
1.05M
-- GW_BiologicConstituent downs DROP table if exists public.gwml2c_gw_biologicconstituent; drop SEQUENCE IF EXISTS public.gwml2c_gw_biologicconstituent_id_seq; Drop INDEX if EXISTS gwml2c_gw_biologicconstituent_id_uindex; Drop INDEX if EXISTS gwml2c_gw_biologicconstituent_gml_id_uindex; -- GW_ChemicalConstituent downs DROP table if exists public.gwml2c_gw_chemicalconstituent; drop SEQUENCE IF EXISTS public.gwml2c_gw_chemicalconstituent_id_seq; Drop INDEX if EXISTS gwml2c_gw_chemicalconstituent_id_uindex; Drop INDEX if EXISTS gwml2c_gw_chemicalconstituent_gml_id_uindex; -- gwChemical downs DROP table if exists public.gwml2c_gwchemical; drop SEQUENCE IF EXISTS public.gwml2c_gwchemical_id_seq; Drop INDEX if EXISTS gwml2c_gwchemical_id_uindex; Drop INDEX if EXISTS gwml2c_gwchemical_gml_id_uindex; -- gwConstituedOf downs DROP table if exists public.gwml2c_gwconstituedof; drop SEQUENCE IF EXISTS public.gwml2c_gwconstituedof_id_seq; Drop INDEX if EXISTS gwml2c_gwconstituedof_id_uindex; Drop INDEX if EXISTS gwml2c_gwconstituedof_gml_id_uindex; -- gwConstituent downs DROP table if exists public.gwml2c_gwconstituent; drop SEQUENCE IF EXISTS public.gwml2c_gwconstituent_id_seq; Drop INDEX if EXISTS gwml2c_gwconstituent_id_uindex; Drop INDEX if EXISTS gwml2c_gwconstituent_gml_id_uindex; -- GW_ConstituentRelation downs DROP table if exists public.gwml2c_gw_constituentrelation; drop SEQUENCE IF EXISTS public.gwml2c_gw_constituentrelation_id_seq; Drop INDEX if EXISTS gwml2c_gw_constituentrelation_id_uindex; Drop INDEX if EXISTS gwml2c_gw_constituentrelation_gml_id_uindex; -- gwConstituentRelationMechanism downs DROP table if exists public.gwml2c_gwconstituentrelationmechanism; drop SEQUENCE IF EXISTS public.gwml2c_gwconstituentrelationmechanism_id_seq; Drop INDEX if EXISTS gwml2c_gwconstituentrelationmechanism_id_uindex; Drop INDEX if EXISTS gwml2c_gwconstituentrelationmechanism_gml_id_uindex; -- gwConstituentRelationType downs DROP table if exists public.gwml2c_gwconstituentrelationtype; drop SEQUENCE IF EXISTS public.gwml2c_gwconstituentrelationtype_id_seq; Drop INDEX if EXISTS gwml2c_gwconstituentrelationtype_id_uindex; Drop INDEX if EXISTS gwml2c_gwconstituentrelationtype_gml_id_uindex; -- gwConstitutedOf downs DROP table if exists public.gwml2c_gwconstitutedof; drop SEQUENCE IF EXISTS public.gwml2c_gwconstitutedof_id_seq; Drop INDEX if EXISTS gwml2c_gwconstitutedof_id_uindex; Drop INDEX if EXISTS gwml2c_gwconstitutedof_gml_id_uindex; -- GW_MaterialConstituent downs DROP table if exists public.gwml2c_gw_materialconstituent; drop SEQUENCE IF EXISTS public.gwml2c_gw_materialconstituent_id_seq; Drop INDEX if EXISTS gwml2c_gw_materialconstituent_id_uindex; Drop INDEX if EXISTS gwml2c_gw_materialconstituent_gml_id_uindex; -- gwMaterial downs DROP table if exists public.gwml2c_gwmaterial; drop SEQUENCE IF EXISTS public.gwml2c_gwmaterial_id_seq; Drop INDEX if EXISTS gwml2c_gwmaterial_id_uindex; Drop INDEX if EXISTS gwml2c_gwmaterial_gml_id_uindex; -- gwOrganism downs DROP table if exists public.gwml2c_gworganism; drop SEQUENCE IF EXISTS public.gwml2c_gworganism_id_seq; Drop INDEX if EXISTS gwml2c_gworganism_id_uindex; Drop INDEX if EXISTS gwml2c_gworganism_gml_id_uindex; -- gwState downs DROP table if exists public.gwml2c_gwstate; drop SEQUENCE IF EXISTS public.gwml2c_gwstate_id_seq; Drop INDEX if EXISTS gwml2c_gwstate_id_uindex; Drop INDEX if EXISTS gwml2c_gwstate_gml_id_uindex; -- lithology downs DROP table if exists public.gwml2c_lithology; drop SEQUENCE IF EXISTS public.gwml2c_lithology_id_seq; Drop INDEX if EXISTS gwml2c_lithology_id_uindex; Drop INDEX if EXISTS gwml2c_lithology_gml_id_uindex; -- mineralName downs DROP table if exists public.gwml2c_mineralname; drop SEQUENCE IF EXISTS public.gwml2c_mineralname_id_seq; Drop INDEX if EXISTS gwml2c_mineralname_id_uindex; Drop INDEX if EXISTS gwml2c_mineralname_gml_id_uindex;
<gh_stars>10-100 {% set partition_clause = "partition by id order by created_at rows between unbounded preceding and unbounded following" %} with events as ( select * from {{ref('stripe_invoice_item_events')}} ) select distinct id, last_value(invoice_id ignore nulls) over ( {{ partition_clause }} ) as invoice_id, last_value(customer_id) over ( {{ partition_clause }} ) as customer_id, last_value(event_id) over ( {{ partition_clause }} ) as event_id, last_value(subscription_id ignore nulls) over ( {{ partition_clause }} ) as subscription_id, last_value(invoice_date) over ( {{ partition_clause }} ) as invoice_date, last_value(period_start ignore nulls) over ( {{ partition_clause }} ) as period_start, last_value(period_end ignore nulls) over ( {{ partition_clause }} ) as period_end, last_value(proration ignore nulls) over ( {{ partition_clause }} ) as proration, last_value(plan_id ignore nulls) over ( {{ partition_clause }} ) as plan_id, last_value(amount ignore nulls) over ( {{ partition_clause }} ) as amount, last_value(currency ignore nulls) over ( {{ partition_clause }} ) as currency, last_value(description ignore nulls) over ( {{ partition_clause }} ) as description, first_value(created_at) over ( {{ partition_clause }} ) as created_at, min( case when event_type = 'invoiceitem.deleted' then created_at end ) over ( {{ partition_clause }} ) as deleted_at from events
<reponame>bcgov/cas-ciip-portal -- Verify ggircs-portal:computed_columns/application_revision_is_immutable on pg begin; select pg_get_functiondef('ggircs_portal.application_revision_is_immutable(ggircs_portal.application_revision)'::regprocedure); rollback;
<filename>sql/cls-summary.sql #standardSQL # This query only processes 117.5 MB because it uses the materialized dataset! SELECT p75_cls, small_cls AS good, medium_cls AS needs_improvement, large_cls AS poor FROM `chrome-ux-report.materialized.metrics_summary` WHERE yyyymm = 202003 AND origin = 'https://web.dev'
/* * Calls all the SQL scripts needed to clear the entire conditions DB * Note: Does not include the CHANNELVIEW and VIEWDESCRIPTION tables/data! */ @clear_calibration_data @clear_calibration_core @clear_laser_data @clear_laser_core @clear_dcu_data @clear_dcu_core @clear_monitoring_data @clear_monitoring_core @clear_run_data @clear_run_core @clear_conddb_procedures @clear_metadata @show_db
ALTER TABLE "source_collector"."Schema" ADD COLUMN "ConnectionId" uuid NOT NULL;
<reponame>SKalt/pg_sql_parser_tests CREATE SCHEMA myschema;
--Test collection type --Create class with collection type: set create class t1(c1 set of integer, c2 set of varchar(10), c3 set of date, c4 set of char(2), c5 set of timestamp, c6 set of bit(8)); insert into t1 values({1,2,3},{'abc','xxx','yyy','xxx'}, {date'05/12/2008', date'05/11/2008',date'05/11/2008'}, {'xx','yy','zz','xx','yy'}, {TIMESTAMP '01/31/1994 8:15:00 pm', TIMESTAMP '01/31/1994 8:15:00 pm', TIMESTAMP '01/21/1992 12:00:00 am'}, {B'0001',B'0010',B'0010'}); select * from t1; drop class t1;
/* test for partial indexes on partitioned tables */ create table part ( id integer unique, textlabel varchar(255), description varchar(4096) ) partition by range (id) ( partition p1 values less than (10), partition p2 values less than (20), partition p3 values less than (30), partition p4 values less than MAXVALUE ); create index idx_part on part(id, textlabel) where textlabel like '%$_%' escape '$'; insert into part(id, textlabel, description) values -- p1 -- (1, 'a00', 'from tex''s viewpoint, a single character from a font is a box;'), (2, 'a_0', 'the font designer has decided what the height, width, and depth of the character are'), (3, 'a11', 'tex uses these dimensions to paste boxes together'), -- p2 -- (14, 'ea0', ' you needn''t bother to learn these measurements yourself'), (15, 'ea3', 'the character shape need not fit inside the boundaries of its box.'), (16, 'ea4', 'for example, some characters that are used to build up larger math symbols'), -- p3 -- (21, 'm..', 'slanted letters frequently extend a little to the right of the box'), (22, 'm.-', 'a number is specified for each character, telling roughly how far that character extends...'), (23, 'm--', '(printers generally prefer white space to black space.)'), -- part -- (100, 'xk~', 'plain tex has an output routine that takes care of ordinary jobs.'), (101, 'xy~', 'this format is suitable for preprints of technical papers, ...'), (110, 'xx~', 'in fact, \nopagenumbers is a special case of a much more general mechanism'); select /*+ recompile */ * from part where id > -1 using index idx_part(+); select /*+ recompile */ * from part where id > -1 using index idx_part(+) difference select /*+ recompile */ * from part where textlabel like '%$_%' escape '$' or textlabel like '%3%' or textlabel like '%-%' or textlabel like '%~%'; -- values should all be outside the index -- create table orig_part as select /*+ recompile */ * from part where id > -1 using index idx_part(+); select * from orig_part order by id; drop table orig_part; insert into part (id, textlabel) values (4, 'a12'), (13, 'ea2'), (20, 'm '), (102, '***'); select /*+ recompile */ * from part where id > -1 using index idx_part(+); select /*+ recompile */ * from part where id > -1 using index idx_part(+) difference select /*+ recompile */ * from part where textlabel like '%$_%' escape '$' or textlabel like '%3%' or textlabel like '%-%' or textlabel like '%~%'; select /*+ recompile */ * from part where id > -1 using index idx_part(+) difference select /*+ recompile */ * from orig_part; -- values should all be inside the index -- insert into part(id, textlabel) values (5, 'a_1'), (12, 'e33'), (24, 'm-.'), (111, 'xz~'); select /*+ recompile */ * from part where id > -1 using index idx_part(+); select /*+ recompile */ * from part where id > -1 using index idx_part(+) difference select /*+ recompile */ * from part where textlabel like '%$_%' escape '$' or textlabel like '%3%' or textlabel like '%-%' or textlabel like '%~%'; -- bring a value from outside the index into the index -- update part set textlabel='a0_' where textlabel='a00'; update part set textlabel='3a0' where textlabel='ea0'; update part set textlabel='..m' where textlabel='m '; update part set textlabel='**~' where textlabel='***'; select /*+ recompile */ * from part where id > -1 using index idx_part(+); select /*+ recompile */ * from part where id > -1 using index idx_part(+) difference select /*+ recompile */ * from part where textlabel like '%$_%' escape '$' or textlabel like '%3%' or textlabel like '%-%' or textlabel like '%~%'; -- take values from the index out of it -- update part set textlabel='a99' where id = 2; update part set textlabel='eaa' where id = 15; update part set textlabel='...' where id = 23; update part set textlabel='xxx' where id = 110; select /*+ recompile */ * from part where id > -1 using index idx_part(+); select /*+ recompile */ * from part where id > -1 using index idx_part(+) difference select /*+ recompile */ * from part where textlabel like '%$_%' escape '$' or textlabel like '%3%' or textlabel like '%-%' or textlabel like '%~%'; -- bring values from outside the index into the index -- replace part(id, textlabel) values (3, 'a__'), (16, '3e3'), (21, '-m-'), (110, '~xx'); select /*+ recompile */ * from part where id > -1 using index idx_part(+); select /*+ recompile */ * from part where id > -1 using index idx_part(+) difference select /*+ recompile */ * from part where textlabel like '%$_%' escape '$' or textlabel like '%3%' or textlabel like '%-%' or textlabel like '%~%'; drop table part;
-- @testpoint:opengauss关键字volatile非保留),作为序列名 --关键字不带引号-成功 drop sequence if exists volatile; create sequence volatile start 100 cache 50; drop sequence volatile; --关键字带双引号-成功 drop sequence if exists "volatile"; create sequence "volatile" start 100 cache 50; drop sequence "volatile"; --关键字带单引号-合理报错 drop sequence if exists 'volatile'; create sequence 'volatile' start 100 cache 50; --关键字带反引号-合理报错 drop sequence if exists `volatile`; create sequence `volatile` start 100 cache 50;
<reponame>jphacks/C_2101 CREATE TABLE IF NOT EXISTS `participation` ( `user_id` INT UNSIGNED NOT NULL, `room_id` INT UNSIGNED NOT NULL, `type` INT NOT NULL, `title` VARCHAR(255) NULL, PRIMARY KEY (`user_id`, `room_id`), INDEX `fk_participation_room_id_idx` (`room_id` ASC) VISIBLE, CONSTRAINT `fk_participation_user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `fk_participation_room_id` FOREIGN KEY (`room_id`) REFERENCES `room` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION) ENGINE = InnoDB;
<filename>migrations/2017-06-18-GameHasPokemon.sql<gh_stars>0 /* -- Query: SELECT * FROM pokedex.gameHasPokemon LIMIT 0, 10000 -- Date: 2017-06-18 14:29 */ INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,1); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,1); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,2); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,2); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,3); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,3); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,4); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,4); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,5); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,5); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,6); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,6); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,7); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,7); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,8); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,8); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,9); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,9); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,10); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,10); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,11); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,11); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,12); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,12); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,13); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,13); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,14); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,14); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,15); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,15); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,16); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,16); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,17); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,17); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,18); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,18); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,19); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,19); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,20); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,20); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,21); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,21); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,22); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,22); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,23); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,23); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,24); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,24); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,25); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,25); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,26); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,26); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,27); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,27); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,28); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,28); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,29); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,29); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,30); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,30); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,31); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,31); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,32); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,32); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,33); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,33); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,34); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,34); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,35); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,35); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,36); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,36); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,37); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,37); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,38); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,38); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,39); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,39); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,40); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,40); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,41); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,41); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,42); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,42); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,43); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,43); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,44); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,44); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,45); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,45); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,46); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,46); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,47); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,47); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,48); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,48); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,49); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,49); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,50); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,50); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,51); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,51); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,52); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,52); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,53); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,53); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,54); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,54); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,55); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,55); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,56); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,56); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,57); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,57); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,58); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,58); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,59); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,59); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,60); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,60); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,61); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,61); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,62); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,62); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,63); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,63); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,64); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,64); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,65); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,65); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,66); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,66); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,67); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,67); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,68); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,68); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,69); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,69); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,70); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,70); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,71); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,71); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,72); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,72); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,73); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,73); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,74); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,74); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,75); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,75); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,76); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,76); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,77); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,77); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,78); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,78); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,79); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,79); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,80); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,80); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,81); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,81); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,82); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,82); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,83); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,83); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,84); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,84); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,85); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,85); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,86); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,86); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,87); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,87); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,88); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,88); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,89); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,89); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,90); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,90); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,91); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,91); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,92); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,92); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,93); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,93); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,94); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,94); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,95); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,95); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,96); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,96); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,97); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,97); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,98); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,98); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,99); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,99); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,100); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,100); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,101); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,101); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,102); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,102); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,103); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,103); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,104); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,104); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,105); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,105); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,106); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,106); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,107); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,107); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,108); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,108); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,109); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,109); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,110); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,110); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,111); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,111); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,112); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,112); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,113); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,113); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,114); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,114); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,115); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,115); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,116); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,116); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,117); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,117); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,118); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,118); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,119); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,119); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,120); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,120); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,121); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,121); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,122); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,122); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,123); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,123); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,124); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,124); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,125); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,125); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,126); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,126); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,127); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,127); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,128); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,128); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,129); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,129); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,130); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,130); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,131); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,131); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,132); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,132); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,133); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,133); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,134); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,134); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,135); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,135); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,136); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,136); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,137); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,137); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,138); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,138); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,139); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,139); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,140); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,140); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,141); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,141); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,142); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,142); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,143); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,143); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,144); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,144); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,145); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,145); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,146); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,146); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,147); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,147); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,148); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,148); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,149); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,149); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,150); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,150); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (1,151); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (2,151); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,152); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,152); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,153); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,153); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,154); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,154); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,155); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,155); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,156); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,156); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,157); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,157); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,158); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,158); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,159); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,159); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,160); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,160); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,161); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,161); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,162); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,162); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,163); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,163); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,164); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,164); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,165); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,165); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,166); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,166); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,167); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,167); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,168); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,168); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,169); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,169); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,170); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,170); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,171); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,171); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,172); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,172); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,173); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,173); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,174); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,174); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,175); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,175); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,176); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,176); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,177); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,177); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,178); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,178); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,179); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,179); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,180); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,180); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,181); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,181); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,182); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,182); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,183); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,183); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,184); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,184); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,185); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,185); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,186); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,186); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,187); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,187); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,188); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,188); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,189); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,189); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,190); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,190); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,191); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,191); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,192); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,192); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,193); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,193); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,194); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,194); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,195); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,195); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,196); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,196); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,197); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,197); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,198); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,198); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,199); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,199); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,200); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,200); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,201); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,201); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,202); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,202); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,203); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,203); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,204); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,204); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,205); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,205); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,206); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,206); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,207); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,207); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,208); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,208); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,209); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,209); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,210); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,210); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,211); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,211); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,212); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,212); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,213); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,213); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,214); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,214); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,215); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,215); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,216); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,216); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,217); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,217); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,218); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,218); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,219); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,219); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,220); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,220); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,221); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,221); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,222); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,222); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,223); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,223); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,224); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,224); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,225); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,225); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,226); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,226); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,227); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,227); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,228); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,228); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,229); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,229); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,230); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,230); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,231); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,231); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,232); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,232); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,233); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,233); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,234); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,234); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,235); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,235); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,236); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,236); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,237); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,237); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,238); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,238); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,239); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,239); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,240); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,240); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,241); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,241); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,242); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,242); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,243); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,243); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,244); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,244); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,245); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,245); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,246); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,246); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,247); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,247); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,248); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,248); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,249); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,249); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,250); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,250); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (3,251); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (4,251); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,252); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,252); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,252); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,252); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,252); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,253); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,253); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,253); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,253); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,253); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,254); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,254); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,254); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,254); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,254); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,255); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,255); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,255); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,255); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,255); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,256); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,256); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,256); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,256); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,256); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,257); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,257); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,257); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,257); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,257); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,258); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,258); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,258); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,258); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,258); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,259); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,259); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,259); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,259); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,259); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,260); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,260); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,260); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,260); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,260); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,261); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,261); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,261); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,261); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,261); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,262); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,262); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,262); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,262); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,262); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,263); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,263); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,263); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,263); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,263); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,264); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,264); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,264); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,264); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,264); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,265); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,265); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,265); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,265); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,265); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,266); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,266); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,266); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,266); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,266); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,267); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,267); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,267); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,267); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,267); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,268); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,268); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,268); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,268); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,268); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,269); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,269); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,269); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,269); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,269); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,270); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,270); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,270); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,270); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,270); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,271); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,271); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,271); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,271); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,271); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,272); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,272); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,272); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,272); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,272); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,273); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,273); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,273); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,273); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,273); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,274); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,274); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,274); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,274); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,274); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,275); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,275); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,275); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,275); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,275); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,276); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,276); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,276); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,276); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,276); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,277); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,277); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,277); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,277); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,277); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,278); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,278); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,278); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,278); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,278); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,279); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,279); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,279); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,279); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,279); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,280); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,280); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,280); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,280); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,280); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,281); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,281); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,281); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,281); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,281); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,282); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,282); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,282); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,282); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,282); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,283); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,283); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,283); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,283); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,283); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,284); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,284); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,284); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,284); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,284); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,285); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,285); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,285); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,285); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,285); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,286); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,286); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,286); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,286); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,286); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,287); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,287); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,287); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,287); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,287); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,288); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,288); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,288); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,288); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,288); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,289); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,289); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,289); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,289); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,289); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,290); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,290); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,290); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,290); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,290); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,291); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,291); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,291); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,291); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,291); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,292); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,292); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,292); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,292); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,292); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,293); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,293); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,293); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,293); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,293); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,294); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,294); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,294); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,294); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,294); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,295); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,295); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,295); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,295); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,295); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,296); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,296); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,296); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,296); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,296); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,297); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,297); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,297); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,297); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,297); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,298); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,298); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,298); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,298); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,298); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,299); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,299); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,299); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,299); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,299); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,300); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,300); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,300); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,300); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,300); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,301); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,301); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,301); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,301); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,301); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,302); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,302); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,302); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,302); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,302); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,303); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,303); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,303); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,303); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,303); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,304); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,304); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,304); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,304); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,304); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,305); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,305); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,305); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,305); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,305); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,306); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,306); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,306); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,306); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,306); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,307); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,307); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,307); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,307); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,307); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,308); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,308); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,308); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,308); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,308); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,309); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,309); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,309); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,309); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,309); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,310); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,310); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,310); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,310); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,310); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,311); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,311); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,311); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,311); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,311); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,312); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,312); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,312); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,312); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,312); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,313); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,313); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,313); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,313); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,313); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,314); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,314); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,314); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,314); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,314); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,315); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,315); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,315); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,315); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,315); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,316); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,316); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,316); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,316); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,316); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,317); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,317); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,317); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,317); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,317); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,318); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,318); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,318); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,318); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,318); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,319); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,319); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,319); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,319); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,319); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,320); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,320); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,320); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,320); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,320); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,321); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,321); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,321); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,321); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,321); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,322); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,322); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,322); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,322); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,322); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,323); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,323); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,323); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,323); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,323); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,324); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,324); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,324); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,324); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,324); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,325); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,325); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,325); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,325); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,325); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,326); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,326); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,326); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,326); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,326); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,327); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,327); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,327); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,327); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,327); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,328); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,328); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,328); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,328); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,328); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,329); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,329); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,329); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,329); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,329); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,330); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,330); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,330); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,330); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,330); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,331); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,331); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,331); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,331); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,331); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,332); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,332); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,332); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,332); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,332); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,333); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,333); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,333); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,333); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,333); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,334); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,334); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,334); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,334); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,334); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,335); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,335); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,335); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,335); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,335); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,336); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,336); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,336); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,336); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,336); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,337); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,337); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,337); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,337); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,337); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,338); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,338); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,338); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,338); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,338); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,339); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,339); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,339); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,339); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,339); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,340); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,340); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,340); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,340); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,340); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,341); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,341); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,341); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,341); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,341); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,342); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,342); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,342); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,342); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,342); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,343); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,343); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,343); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,343); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,343); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,344); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,344); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,344); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,344); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,344); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,345); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,345); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,345); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,345); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,345); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,346); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,346); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,346); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,346); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,346); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,347); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,347); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,347); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,347); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,347); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,348); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,348); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,348); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,348); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,348); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,349); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,349); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,349); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,349); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,349); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,350); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,350); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,350); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,350); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,350); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,351); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,351); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,351); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,351); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,351); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,352); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,352); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,352); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,352); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,352); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,353); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,353); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,353); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,353); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,353); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,354); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,354); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,354); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,354); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,354); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,355); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,355); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,355); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,355); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,355); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,356); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,356); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,356); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,356); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,356); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,357); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,357); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,357); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,357); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,357); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,358); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,358); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,358); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,358); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,358); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,359); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,359); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,359); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,359); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,359); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,360); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,360); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,360); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,360); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,360); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,361); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,361); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,361); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,361); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,361); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,362); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,362); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,362); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,362); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,362); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,363); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,363); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,363); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,363); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,363); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,364); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,364); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,364); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,364); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,364); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,365); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,365); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,365); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,365); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,365); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,366); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,366); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,366); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,366); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,366); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,367); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,367); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,367); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,367); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,367); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,368); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,368); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,368); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,368); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,368); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,369); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,369); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,369); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,369); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,369); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,370); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,370); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,370); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,370); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,370); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,371); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,371); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,371); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,371); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,371); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,372); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,372); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,372); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,372); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,372); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,373); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,373); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,373); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,373); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,373); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,374); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,374); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,374); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,374); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,374); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,375); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,375); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,375); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,375); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,375); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,376); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,376); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,376); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,376); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,376); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,377); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,377); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,377); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,377); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,377); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,378); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,378); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,378); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,378); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,378); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,379); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,379); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,379); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,379); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,379); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,380); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,380); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,380); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,380); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,380); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,381); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,381); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,381); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,381); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,381); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,382); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,382); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,382); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,382); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,382); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,383); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,383); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,383); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,383); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,383); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,384); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,384); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,384); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,384); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,384); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,385); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,385); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,385); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,385); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,385); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (5,386); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (6,386); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (7,386); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (12,386); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (13,386); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,387); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,387); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,387); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,388); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,388); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,388); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,389); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,389); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,389); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,390); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,390); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,390); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,391); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,391); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,391); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,392); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,392); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,392); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,393); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,393); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,393); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,394); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,394); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,394); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,395); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,395); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,395); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,396); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,396); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,396); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,397); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,397); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,397); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,398); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,398); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,398); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,399); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,399); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,399); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,400); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,400); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,400); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,401); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,401); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,401); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,402); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,402); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,402); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,403); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,403); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,403); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,404); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,404); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,404); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,405); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,405); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,405); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,406); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,406); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,406); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,407); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,407); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,407); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,408); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,408); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,408); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,409); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,409); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,409); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,410); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,410); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,410); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,411); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,411); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,411); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,412); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,412); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,412); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,413); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,413); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,413); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,414); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,414); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,414); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,415); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,415); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,415); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,416); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,416); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,416); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,417); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,417); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,417); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,418); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,418); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,418); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,419); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,419); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,419); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,420); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,420); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,420); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,421); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,421); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,421); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,422); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,422); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,422); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,423); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,423); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,423); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,424); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,424); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,424); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,425); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,425); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,425); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,426); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,426); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,426); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,427); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,427); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,427); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,428); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,428); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,428); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,429); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,429); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,429); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,430); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,430); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,430); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,431); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,431); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,431); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,432); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,432); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,432); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,433); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,433); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,433); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,434); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,434); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,434); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,435); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,435); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,435); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,436); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,436); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,436); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,437); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,437); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,437); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,438); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,438); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,438); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,439); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,439); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,439); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,440); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,440); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,440); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,441); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,441); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,441); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,442); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,442); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,442); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,443); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,443); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,443); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,444); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,444); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,444); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,445); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,445); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,445); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,446); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,446); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,446); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,447); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,447); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,447); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,448); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,448); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,448); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,449); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,449); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,449); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,450); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,450); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,450); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,451); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,451); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,451); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,452); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,452); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,452); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,453); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,453); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,453); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,454); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,454); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,454); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,455); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,455); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,455); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,456); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,456); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,456); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,457); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,457); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,457); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,458); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,458); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,458); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,459); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,459); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,459); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,460); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,460); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,460); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,461); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,461); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,461); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,462); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,462); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,462); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,463); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,463); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,463); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,464); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,464); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,464); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,465); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,465); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,465); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,466); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,466); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,466); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,467); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,467); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,467); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,468); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,468); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,468); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,469); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,469); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,469); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,470); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,470); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,470); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,471); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,471); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,471); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,472); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,472); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,472); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,473); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,473); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,473); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,474); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,474); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,474); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,475); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,475); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,475); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,476); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,476); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,476); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,477); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,477); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,477); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,478); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,478); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,478); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,479); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,479); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,479); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,480); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,480); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,480); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,481); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,481); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,481); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,482); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,482); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,482); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,483); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,483); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,483); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,484); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,484); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,484); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,485); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,485); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,485); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,486); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,486); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,486); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,487); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,487); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,487); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,488); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,488); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,488); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,489); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,489); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,489); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,490); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,490); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,490); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,491); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,491); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,491); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,492); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,492); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,492); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (8,493); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (9,493); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (10,493); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,494); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,494); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,495); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,495); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,496); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,496); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,497); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,497); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,498); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,498); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,499); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,499); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,500); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,500); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,501); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,501); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,502); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,502); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,503); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,503); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,504); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,504); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,505); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,505); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,506); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,506); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,507); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,507); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,508); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,508); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,509); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,509); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,510); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,510); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,511); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,511); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,512); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,512); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,513); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,513); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,514); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,514); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,515); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,515); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,516); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,516); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,517); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,517); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,518); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,518); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,519); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,519); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,520); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,520); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,521); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,521); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,522); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,522); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,523); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,523); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,524); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,524); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,525); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,525); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,526); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,526); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,527); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,527); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,528); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,528); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,529); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,529); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,530); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,530); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,531); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,531); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,532); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,532); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,533); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,533); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,534); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,534); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,535); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,535); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,536); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,536); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,537); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,537); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,538); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,538); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,539); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,539); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,540); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,540); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,541); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,541); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,542); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,542); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,543); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,543); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,544); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,544); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,545); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,545); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,546); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,546); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,547); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,547); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,548); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,548); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,549); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,549); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,550); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,550); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,551); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,551); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,552); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,552); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,553); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,553); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,554); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,554); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,555); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,555); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,556); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,556); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,557); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,557); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,558); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,558); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,559); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,559); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,560); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,560); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,561); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,561); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,562); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,562); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,563); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,563); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,564); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,564); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,565); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,565); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,566); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,566); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,567); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,567); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,568); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,568); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,569); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,569); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,570); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,570); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,571); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,571); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,572); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,572); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,573); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,573); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,574); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,574); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,575); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,575); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,576); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,576); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,577); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,577); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,578); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,578); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,579); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,579); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,580); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,580); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,581); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,581); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,582); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,582); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,583); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,583); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,584); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,584); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,585); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,585); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,586); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,586); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,587); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,587); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,588); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,588); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,589); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,589); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,590); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,590); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,591); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,591); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,592); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,592); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,593); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,593); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,594); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,594); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,595); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,595); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,596); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,596); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,597); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,597); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,598); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,598); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,599); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,599); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,600); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,600); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,601); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,601); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,602); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,602); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,603); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,603); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,604); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,604); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,605); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,605); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,606); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,606); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,607); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,607); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,608); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,608); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,609); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,609); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,610); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,610); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,611); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,611); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,612); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,612); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,613); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,613); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,614); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,614); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,615); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,615); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,616); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,616); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,617); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,617); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,618); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,618); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,619); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,619); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,620); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,620); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,621); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,621); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,622); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,622); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,623); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,623); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,624); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,624); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,625); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,625); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,626); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,626); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,627); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,627); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,628); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,628); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,629); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,629); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,630); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,630); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,631); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,631); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,632); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,632); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,633); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,633); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,634); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,634); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,635); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,635); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,636); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,636); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,637); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,637); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,638); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,638); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,639); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,639); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,640); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,640); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,641); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,641); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,642); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,642); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,643); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,643); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,644); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,644); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,645); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,645); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,646); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,646); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,647); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,647); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,648); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,648); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (11,649); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (14,649); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,650); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,650); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,651); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,651); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,652); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,652); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,653); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,653); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,654); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,654); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,655); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,655); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,656); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,656); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,657); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,657); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,658); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,658); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,659); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,659); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,660); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,660); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,661); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,661); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,662); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,662); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,663); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,663); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,664); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,664); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,665); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,665); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,666); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,666); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,667); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,667); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,668); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,668); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,669); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,669); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,670); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,670); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,671); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,671); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,672); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,672); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,673); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,673); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,674); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,674); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,675); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,675); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,676); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,676); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,677); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,677); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,678); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,678); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,679); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,679); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,680); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,680); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,681); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,681); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,682); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,682); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,683); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,683); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,684); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,684); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,685); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,685); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,686); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,686); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,687); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,687); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,688); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,688); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,689); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,689); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,690); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,690); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,691); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,691); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,692); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,692); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,693); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,693); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,694); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,694); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,695); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,695); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,696); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,696); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,697); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,697); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,698); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,698); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,699); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,699); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,700); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,700); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,701); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,701); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,702); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,702); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,703); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,703); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,704); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,704); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,705); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,705); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,706); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,706); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,707); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,707); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,708); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,708); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,709); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,709); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,710); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,710); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,711); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,711); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,712); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,712); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,713); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,713); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,714); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,714); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,715); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,715); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,716); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,716); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,717); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,717); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,718); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,718); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,719); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,719); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,720); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,720); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (15,721); INSERT INTO `gameHasPokemon` (`gameId`,`pokeId`) VALUES (16,721);
<reponame>cj2-site/cj2_backend<filename>schema.sql DROP TABLE IF EXISTS url; CREATE TABLE url ( id SERIAL PRIMARY KEY, long_url TEXT, short_url TEXT, clicks INTEGER, qr_code TEXT, times_created INT, created_at timestamp NOT NULL DEFAULT NOW() );
<filename>data/db/116-cascade.sql ALTER TABLE `conversation_text_editor` DROP FOREIGN KEY `fk_conversation_doc_10`, DROP FOREIGN KEY `fk_conversation_doc_20`; ALTER TABLE `conversation_text_editor` ADD CONSTRAINT `fk_conversation_doc_10` FOREIGN KEY (`conversation_id`) REFERENCES `conversation` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, ADD CONSTRAINT `fk_conversation_doc_20` FOREIGN KEY (`text_editor_id`) REFERENCES `library` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION; ALTER TABLE `conversation_whiteboard` DROP FOREIGN KEY `fk_conversation_doc_100`, DROP FOREIGN KEY `fk_conversation_doc_200`; ALTER TABLE `conversation_whiteboard` ADD CONSTRAINT `fk_conversation_doc_100` FOREIGN KEY (`conversation_id`) REFERENCES `conversation` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, ADD CONSTRAINT `fk_conversation_doc_200` FOREIGN KEY (`whiteboard_id`) REFERENCES `whiteboard` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION; DROP TABLE `videoconf_conversation`; DROP TABLE `videoconf_doc`; DROP TABLE `videoconf_user`; DROP TABLE `videoconf`; ALTER TABLE `thread` DROP FOREIGN KEY `fk_thread_1`, DROP FOREIGN KEY `fk_thread_3`; ALTER TABLE `thread` ADD CONSTRAINT `fk_thread_1` FOREIGN KEY (`course_id`) REFERENCES `course` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, ADD CONSTRAINT `fk_thread_3` FOREIGN KEY (`item_id`) REFERENCES `item` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Client : localhost:3306 -- Généré le : Ven 05 Octobre 2018 à 03:56 -- Version du serveur : 5.7.23 -- Version de PHP : 7.2.9-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 : `cucas` -- -- -------------------------------------------------------- -- -- Structure de la table `AFFECT` -- CREATE TABLE `AFFECT` ( `ID_PERSONNEL` int(11) NOT NULL, `ID_SESSION` int(11) NOT NULL, `DATE` date NOT NULL, `COMMENTAIRE` varchar(250) COLLATE utf8_bin DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- -------------------------------------------------------- -- -- Structure de la table `CLIENT` -- CREATE TABLE `CLIENT` ( `ID_CLIENT` int(11) NOT NULL, `CIN_CLIENT` varchar(20) COLLATE utf8_bin DEFAULT NULL, `NOM_CLIENT` varchar(100) COLLATE utf8_bin DEFAULT NULL, `DATE_NAISSANCE` date DEFAULT NULL, `LIEU_NAISSANCE` varchar(50) COLLATE utf8_bin DEFAULT NULL, `NUM_TEL` varchar(20) COLLATE utf8_bin DEFAULT NULL, `NOM_PERE` varchar(255) COLLATE utf8_bin DEFAULT NULL, `FCT_PERE` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TEL_PERE` varchar(50) COLLATE utf8_bin NOT NULL, `NOM_MERE` varchar(255) COLLATE utf8_bin DEFAULT NULL, `FCT_MERE` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TEL_MERE` varchar(50) COLLATE utf8_bin DEFAULT NULL, `EMAIL` varchar(50) COLLATE utf8_bin DEFAULT NULL, `ADR_CLIENT` varchar(60) COLLATE utf8_bin DEFAULT NULL, `NIVEAU_ETUDE` varchar(50) COLLATE utf8_bin DEFAULT NULL, `DOMAINE_ETUDE` varchar(250) COLLATE utf8_bin DEFAULT NULL, `NATIONALITE` varchar(50) COLLATE utf8_bin DEFAULT NULL, `DERNIER_ETABLISEMENT` varchar(50) COLLATE utf8_bin DEFAULT NULL, `CERTIF_ANGLAIS` varchar(20) COLLATE utf8_bin DEFAULT NULL, `PROGRAM` varchar(50) COLLATE utf8_bin DEFAULT NULL, `COMMENTAIRE` varchar(250) COLLATE utf8_bin DEFAULT NULL, `IMAGE` varchar(250) COLLATE utf8_bin DEFAULT NULL, `DATE2` date DEFAULT NULL, `DATE` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- -- Contenu de la table `CLIENT` -- INSERT INTO `CLIENT` (`ID_CLIENT`, `CIN_CLIENT`, `NOM_CLIENT`, `DATE_NAISSANCE`, `LIEU_NAISSANCE`, `NUM_TEL`, `NOM_PERE`, `FCT_PERE`, `TEL_PERE`, `NOM_MERE`, `FCT_MERE`, `TEL_MERE`, `EMAIL`, `ADR_CLIENT`, `NIVEAU_ETUDE`, `DOMAINE_ETUDE`, `NATIONALITE`, `DERNIER_ETABLISEMENT`, `CERTIF_ANGLAIS`, `PROGRAM`, `COMMENTAIRE`, `IMAGE`, `DATE2`, `DATE`) VALUES (2, NULL, 'aderalle', '1987-01-01', NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Halitiyet', NULL, NULL, NULL, NULL, 'light_sky_stars_background_85555_1920x1080.jpg', NULL, NULL), (3, NULL, 'Salah', '2010-06-15', NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Maghrebi', NULL, NULL, NULL, NULL, 'starry_sky_stars_space_galaxy_118510_1920x1080.jpg', NULL, NULL); -- -------------------------------------------------------- -- -- Structure de la table `DOSSIER` -- CREATE TABLE `DOSSIER` ( `ID_DOSSIER` int(11) NOT NULL, `ID_SESSION` int(11) NOT NULL, `CONTRAT` tinyint(1) DEFAULT NULL, `PASSEPORT` tinyint(1) DEFAULT NULL, `BILLET` tinyint(1) DEFAULT NULL, `REPONSE` varchar(20) COLLATE utf8_bin DEFAULT NULL, `ETAT_DOSSIER` varchar(20) COLLATE utf8_bin DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- -------------------------------------------------------- -- -- Structure de la table `groups` -- CREATE TABLE `groups` ( `id` mediumint(8) UNSIGNED NOT NULL, `name` varchar(20) NOT NULL, `description` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Contenu de la table `groups` -- INSERT INTO `groups` (`id`, `name`, `description`) VALUES (1, 'admin', 'Administrator'), (2, 'members', 'General User'); -- -------------------------------------------------------- -- -- Structure de la table `login_attempts` -- CREATE TABLE `login_attempts` ( `id` int(11) UNSIGNED NOT NULL, `ip_address` varchar(45) NOT NULL, `login` varchar(100) NOT NULL, `time` int(11) UNSIGNED DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Structure de la table `PAIEMENT` -- CREATE TABLE `PAIEMENT` ( `ID_PAIEMENT` int(11) NOT NULL, `ID_SESSION` int(11) NOT NULL, `MONTANT_PAIEM` float DEFAULT NULL, `A_PAYE` float DEFAULT NULL, `METHOD_PAIEMENT` varchar(60) COLLATE utf8_bin DEFAULT NULL, `ETAT_PAIEMENT` varchar(20) COLLATE utf8_bin DEFAULT NULL, `DATE_PAIEMENT` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- -------------------------------------------------------- -- -- Structure de la table `PERSONNEL` -- CREATE TABLE `PERSONNEL` ( `ID_PERSONNEL` int(11) NOT NULL, `CIN_PERSONNEL` varchar(20) COLLATE utf8_bin DEFAULT NULL, `NOM_PERSONNEL` varchar(100) COLLATE utf8_bin DEFAULT NULL, `NUM_TEL` varchar(20) COLLATE utf8_bin DEFAULT NULL, `CATEGORIE` varchar(10) COLLATE utf8_bin DEFAULT NULL, `EMAIL` varchar(50) COLLATE utf8_bin DEFAULT NULL, `PWD` varchar(250) COLLATE utf8_bin DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- -------------------------------------------------------- -- -- Structure de la table `SESSION` -- CREATE TABLE `SESSION` ( `ID_SESSION` int(11) NOT NULL, `ID_CLIENT` int(11) NOT NULL, `TYPE_SESSION` varchar(10) COLLATE utf8_bin DEFAULT NULL, `DATE_DEBUT` date DEFAULT NULL, `DATE_CLOTURE` date DEFAULT NULL, `PARTENAIRE` varchar(250) COLLATE utf8_bin DEFAULT NULL, `TYPE_FINANCE` varchar(20) COLLATE utf8_bin DEFAULT NULL, `ETAT_SESSION` varchar(20) COLLATE utf8_bin DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- -------------------------------------------------------- -- -- Structure de la table `TRADUCTION` -- CREATE TABLE `TRADUCTION` ( `ID_TRADUCTION` int(11) NOT NULL, `ID_CLIENT` int(11) NOT NULL, `MONTANT` float DEFAULT NULL, `PAIEMENT` float DEFAULT NULL, `ETAT_TRAD` varchar(20) COLLATE utf8_bin DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- -------------------------------------------------------- -- -- Structure de la table `users` -- CREATE TABLE `users` ( `id` int(11) UNSIGNED NOT NULL, `ip_address` varchar(45) NOT NULL, `username` varchar(100) DEFAULT NULL, `password` varchar(255) NOT NULL, `salt` varchar(255) DEFAULT NULL, `email` varchar(254) NOT NULL, `activation_code` varchar(40) DEFAULT NULL, `forgotten_password_code` varchar(40) DEFAULT NULL, `forgotten_password_time` int(11) UNSIGNED DEFAULT NULL, `remember_code` varchar(40) DEFAULT NULL, `created_on` int(11) UNSIGNED NOT NULL, `last_login` int(11) UNSIGNED DEFAULT NULL, `active` tinyint(1) UNSIGNED DEFAULT NULL, `first_name` varchar(50) DEFAULT NULL, `last_name` varchar(50) DEFAULT NULL, `company` varchar(100) DEFAULT NULL, `phone` varchar(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Contenu de la table `users` -- INSERT INTO `users` (`id`, `ip_address`, `username`, `password`, `salt`, `email`, `activation_code`, `forgotten_password_code`, `forgotten_password_time`, `remember_code`, `created_on`, `last_login`, `active`, `first_name`, `last_name`, `company`, `phone`) VALUES (1, '127.0.0.1', 'administrator', '$2a$07$SeBknntpZror9uyftVopmu61qg0ms8Qv1yV6FG.kQOSM.9QhmTo36', '', '<EMAIL>', '', NULL, NULL, NULL, 1268889823, 1538698425, 1, 'Admin', 'istrator', 'ADMIN', '0'); -- -------------------------------------------------------- -- -- Structure de la table `users_groups` -- CREATE TABLE `users_groups` ( `id` int(11) UNSIGNED NOT NULL, `user_id` int(11) UNSIGNED NOT NULL, `group_id` mediumint(8) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Contenu de la table `users_groups` -- INSERT INTO `users_groups` (`id`, `user_id`, `group_id`) VALUES (1, 1, 1), (2, 1, 2); -- -------------------------------------------------------- -- -- Structure de la table `VISA` -- CREATE TABLE `VISA` ( `ID_VISA` int(11) NOT NULL, `ID_SESSION` int(11) NOT NULL, `DATE_VISA` date DEFAULT NULL, `DUREE_VISA` varchar(50) COLLATE utf8_bin DEFAULT NULL, `PAYS` varchar(50) COLLATE utf8_bin DEFAULT NULL, `ETAT_VISA` varchar(20) COLLATE utf8_bin DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- -- Index pour les tables exportées -- -- -- Index pour la table `AFFECT` -- ALTER TABLE `AFFECT` ADD PRIMARY KEY (`ID_PERSONNEL`,`ID_SESSION`), ADD KEY `FK_AFFECT` (`ID_SESSION`); -- -- Index pour la table `CLIENT` -- ALTER TABLE `CLIENT` ADD PRIMARY KEY (`ID_CLIENT`); -- -- Index pour la table `DOSSIER` -- ALTER TABLE `DOSSIER` ADD PRIMARY KEY (`ID_DOSSIER`), ADD KEY `FK_COMPLETER` (`ID_SESSION`); -- -- Index pour la table `groups` -- ALTER TABLE `groups` ADD PRIMARY KEY (`id`); -- -- Index pour la table `login_attempts` -- ALTER TABLE `login_attempts` ADD PRIMARY KEY (`id`); -- -- Index pour la table `PAIEMENT` -- ALTER TABLE `PAIEMENT` ADD PRIMARY KEY (`ID_PAIEMENT`), ADD KEY `FK_REGLER` (`ID_SESSION`); -- -- Index pour la table `PERSONNEL` -- ALTER TABLE `PERSONNEL` ADD PRIMARY KEY (`ID_PERSONNEL`); -- -- Index pour la table `SESSION` -- ALTER TABLE `SESSION` ADD PRIMARY KEY (`ID_SESSION`), ADD KEY `FK_AFFECTER` (`ID_CLIENT`); -- -- Index pour la table `TRADUCTION` -- ALTER TABLE `TRADUCTION` ADD PRIMARY KEY (`ID_TRADUCTION`), ADD KEY `FK_EFFECTUER` (`ID_CLIENT`); -- -- Index pour la table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- Index pour la table `users_groups` -- ALTER TABLE `users_groups` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `uc_users_groups` (`user_id`,`group_id`), ADD KEY `fk_users_groups_users1_idx` (`user_id`), ADD KEY `fk_users_groups_groups1_idx` (`group_id`); -- -- Index pour la table `VISA` -- ALTER TABLE `VISA` ADD PRIMARY KEY (`ID_VISA`), ADD KEY `FK_DEPOSER` (`ID_SESSION`); -- -- AUTO_INCREMENT pour les tables exportées -- -- -- AUTO_INCREMENT pour la table `CLIENT` -- ALTER TABLE `CLIENT` MODIFY `ID_CLIENT` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT pour la table `groups` -- ALTER TABLE `groups` MODIFY `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT pour la table `login_attempts` -- ALTER TABLE `login_attempts` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT pour la table `users` -- ALTER TABLE `users` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT pour la table `users_groups` -- ALTER TABLE `users_groups` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- Contraintes pour les tables exportées -- -- -- Contraintes pour la table `AFFECT` -- ALTER TABLE `AFFECT` ADD CONSTRAINT `FK_AFFECT` FOREIGN KEY (`ID_SESSION`) REFERENCES `SESSION` (`ID_SESSION`), ADD CONSTRAINT `FK_AFFECT2` FOREIGN KEY (`ID_PERSONNEL`) REFERENCES `PERSONNEL` (`ID_PERSONNEL`); -- -- Contraintes pour la table `DOSSIER` -- ALTER TABLE `DOSSIER` ADD CONSTRAINT `FK_COMPLETER` FOREIGN KEY (`ID_SESSION`) REFERENCES `SESSION` (`ID_SESSION`); -- -- Contraintes pour la table `PAIEMENT` -- ALTER TABLE `PAIEMENT` ADD CONSTRAINT `FK_REGLER` FOREIGN KEY (`ID_SESSION`) REFERENCES `SESSION` (`ID_SESSION`); -- -- Contraintes pour la table `SESSION` -- ALTER TABLE `SESSION` ADD CONSTRAINT `FK_AFFECTER` FOREIGN KEY (`ID_CLIENT`) REFERENCES `CLIENT` (`ID_CLIENT`); -- -- Contraintes pour la table `TRADUCTION` -- ALTER TABLE `TRADUCTION` ADD CONSTRAINT `FK_EFFECTUER` FOREIGN KEY (`ID_CLIENT`) REFERENCES `CLIENT` (`ID_CLIENT`); -- -- Contraintes pour la table `users_groups` -- ALTER TABLE `users_groups` ADD CONSTRAINT `fk_users_groups_groups1` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, ADD CONSTRAINT `fk_users_groups_users1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION; -- -- Contraintes pour la table `VISA` -- ALTER TABLE `VISA` ADD CONSTRAINT `FK_DEPOSER` FOREIGN KEY (`ID_SESSION`) REFERENCES `SESSION` (`ID_SESSION`); /*!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 */;
<gh_stars>0 CREATE PROCEDURE usp_no_result AS
<reponame>italoteix/foodfy CREATE TABLE "files" ( "id" SERIAL PRIMARY KEY, "name" text, "path" text NOT NULL ); CREATE TABLE "chefs" ( "id" SERIAL PRIMARY KEY, "name" text, "file_id" int REFERENCES files(id), "created_at" timestamp DEFAULT (now()) ); CREATE TABLE "recipes" ( "id" SERIAL PRIMARY KEY, "chef_id" int NOT NULL REFERENCES chefs(id), "title" text, "ingredients" text[], "preparation" text[], "information" text, "created_at" timestamp DEFAULT (now()) "updated_at" timestamp DEFAULT (now()) ); CREATE TABLE "recipe_files" ( "id" SERIAL PRIMARY KEY, "recipe_id" int REFERENCES recipes(id), "file_id" int REFERENCES files(id) ); CREATE OR REPLACE FUNCTION trigger_set_timestamp() RETURNS TRIGGER AS $$ BEGIN NEW.updated_at = NOW(); RETURN NEW; END; $$ LANGUAGE plpgsql; CREATE TRIGGER set_timestamp BEFORE UPDATE ON recipes FOR EACH ROW EXECUTE PROCEDURE trigger_set_timestamp();
<reponame>bennokr/rdflib-r2r CREATE TABLE "Target" ( "PK" INT PRIMARY KEY, "key1attr1" CHAR(5), "key1attr2" CHAR(5), "key2attr1" CHAR(5), "key2attr2" CHAR(5), UNIQUE ("key1attr1", "key1attr2"), UNIQUE ("key2attr2", "key2attr1") ); CREATE TABLE "Source" ( "ID" INT PRIMARY KEY, "attrA" CHAR(5), "attrB" CHAR(5), FOREIGN KEY ("attrA", "attrB") REFERENCES "Target"("key2attr2", "key2attr1") ); INSERT INTO "Target" ("PK", "key1attr1", "key1attr2", "key2attr1", "key2attr2") VALUES (1010, 'K1A11' , 'K1A21' , 'K2A11' , 'K2A21' ); INSERT INTO "Target" ("PK", "key1attr1", "key1attr2", "key2attr1", "key2attr2") VALUES (1011, 'K1A12' , 'K1A22' , NULL , 'K2A22' ); INSERT INTO "Source" ("ID", "attrA", "attrB") VALUES (1100, 'K2A21', 'K2A11'); INSERT INTO "Source" ("ID", "attrA", "attrB") VALUES (1101, 'K2A22', NULL );
<reponame>RG4421/codeshare<gh_stars>0 CREATE TABLE [dbo].[ProjectFile] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Name] NVARCHAR (255) NOT NULL, [Url] NVARCHAR (2083) NOT NULL, [ProjectRelease_Id] INT NULL, CONSTRAINT [PK_dbo.ProjectFile] PRIMARY KEY CLUSTERED ([Id] ASC), CONSTRAINT [FK_dbo.ProjectFile_dbo.ProjectRelease_ProjectRelease_Id] FOREIGN KEY ([ProjectRelease_Id]) REFERENCES [dbo].[ProjectRelease] ([Id]) ); GO CREATE NONCLUSTERED INDEX [IX_ProjectRelease_Id] ON [dbo].[ProjectFile]([ProjectRelease_Id] ASC);
-- ugyldige koblinger opprettet pga feil i k9-sak (eksisterer ikke der, så ute av synk). update kobling set aktiv=false where kobling_referanse in ('98272ad2-b511-424c-b1bf-7d8edc51b7ce' , '633c29ab-d17b-4b4b-bdc8-bd86d368c068' , '26c33466-6eff-4192-a225-1de59c83381e' , '9924ddef-43e9-4bce-a817-adaf4c16832f' , '2fab9c9f-c364-4911-881c-15470e19ccd3' , '454e8808-c9b1-4000-92b4-06f524a3deba' , '777bb0ef-b08b-48c2-8999-dca37230f5ed' , '0e1673f4-660e-4182-af6b-dec833f246f0' , '2105901d-1b95-4939-928e-e2e7e3fbcaf1' , 'e6104e15-33e4-4daf-bbe4-748423a84420' , '60763169-0a57-41b3-a64a-5256b4193f68' , '78256996-3b55-4131-8eea-a806be0266b4' , '7f66a6f6-ef20-4645-a97f-4909327eabe5' , '0ef38680-3227-4b59-b036-083770097bed' , '3e42b518-10e7-49c7-9ca9-0a2c36758809' , '29f92268-4143-4160-89cc-e01adeeeef92' , 'cd6a2b52-a8be-4135-a115-fdb4fcabc173' , '63fb636c-4b88-427b-9364-4e3b6274c304' , 'f3037362-2567-4a5a-a242-6c4be72de4f5' , '736e1f37-af6c-45ba-9bb1-8b8bbfeb9ea1' , '055ad59e-d44e-4b37-b326-13059d01aa1c' , 'e1663650-ad6e-4c35-af24-0f9382411325' , '79e8a508-99a1-476e-9507-983c48f762ec' , '2fef7a41-336f-4f7b-8727-6edb45a41044' , '291b9e03-8f57-4992-897f-bcc360e792e0' , '8b9281da-fde4-4f80-bbf4-cf73d9c7b2cc' , '431da02d-db0f-4b0c-8036-fec0b4ebb925' , '52742ad1-29f7-42a3-83a7-a93d8f580245' , '2d3abe84-a8d2-45fd-aa77-41ec971b423d' , '84d2d537-6467-4275-a9d5-00e13be62919' , '60506a6d-040a-452b-8d0b-a9760a524675' , 'a3b87c45-f88b-47f6-aa96-9397cd069ad4' , '0d6bfadc-4623-473b-af37-0a1d222ca00a' , '362c1071-0d28-472b-a322-a78fd3905db7' , '7cb8f5c5-9b96-491d-be22-5c502f126e4e' , '234d14e9-f2bb-4d8a-8e13-4bff5fa0af62' , '231452b0-d1e6-4f85-b5f7-1708e77c4488' , 'c4dfeb49-65f3-4e2f-b27c-19ffebd772fb' , 'dcd965ad-2873-4146-8295-05fbca697975' , 'e57982a5-b2af-45c7-95c4-925dc01998cf' , 'a16f076a-4e04-461b-a5c5-d7fa15366307' , 'd33c21b5-a76c-4273-aa97-60a517dc315c' , '2317dfe5-ff2f-4dbb-9ca9-8af7e405977e' , '8fac64ce-e2f0-4bd0-9cfa-b777784cb904' , '6b41b04f-aec8-4ebd-815e-21ec319aba73' , 'bc93486e-8878-4020-a45b-c10dbfcbb0be' , '4c134eed-9713-414b-9c27-7743e4835f0e' , 'ef84cd94-dd60-46d4-bd46-f663e60f904e' , '70847572-1378-478b-bc10-466b8b3f7573' , '77260276-12ed-4a13-8014-4c80d1a6bbf2' , 'a246dc91-173e-4c28-8cd6-19bc34dbbabf' , 'd02c7f7f-b624-401b-957d-1a9ca32dbd85' , 'd38c9b03-b7b9-4f16-bf9e-069a5cc6fddc' , 'ad1a34b0-a8d9-4dea-8117-58adc6292746' , '58f6f634-aea2-47d1-baf2-b1af30089325' , '6d607fb7-e489-4394-be45-665a2802268e' , '6d9995b4-cc5a-4ff2-b8f7-24142b2c9e62' , '5d67103e-93e5-44d7-affa-6dcb28ba5e67' , '15665556-dff4-446a-ac71-48db98c89837' , 'dfbbe2f6-46b9-4c94-aecd-172015068385' , '3c3b2ca7-b653-4f5b-87a5-b3475fb2dbe1' , 'c72268fa-8061-41c3-bfd5-6c000151d803' , '35a6b623-a442-4425-86c0-2d11118d2ac5' , '2897d139-811c-45de-ae6e-3dbadd333d92' , '87c49100-8fd1-4dec-a294-bed439c1dd12' , 'adfc74e5-deef-41e2-ad91-052e13856a51' , '29c1de51-c8ac-4e05-b15b-92b2ae30d07e' , 'd69087a7-8b7a-4f39-876c-a8494635b7d3' , '9720e604-53fe-4b0b-82a2-17caedda2bbf' , '520069b0-6c83-4408-afaa-fbaaf360b7a6' , 'b5f11c23-43bc-4c4d-ad60-fe1e1f575a92' , '848144e9-5689-41c3-82d4-ecd724423eb8' , '04d266b6-0748-49cd-a740-d1ccb3e2547e' , '6cbe970b-60f1-46a6-9596-46b812cf1c13' , 'b09a5c62-0b1b-47f4-8a0f-2424459a966c' , '87791bac-ad80-4b0d-8627-e443b1f7125a' , 'd03780c9-e41c-4ebe-9c2e-dd85515318d1' , '6acc136d-f114-428f-b19e-fa9381daf5f6' , 'a5fbac20-b2aa-4353-b6d5-15f8b82b9eb3' , '8b8857a9-9bd8-40e1-bd3a-d3e583fe15df' , 'f8c20070-9cea-4184-83a9-a38ad3e0bb8a' , 'dbfaf56b-fd91-4cec-982f-bd533b59a217' , '4bdebb69-da29-4d6e-a019-4b48aa73e660' , '40aeea98-55eb-4d88-b2cd-bed4e20e059d' , '4424b9b8-d741-48fe-9212-6d84137c3268' , 'd782c33f-354b-45c8-830d-bac3a302f121' , '09597afa-f068-49d1-8a3c-bfc1b4b21eca' , 'af116854-eea3-46da-a8f3-5461d121abcd' , 'ebb7209c-fd36-4823-a0de-4d257c243c8f' , '42a1f51d-6717-4e24-84e0-42cf735e5aba' , '8b6c1345-be08-4093-9476-2f69a3677199' , '4f84021b-3826-457a-aca0-bef29cf8847c' , '11f11e50-e839-4351-9646-299734a904f5' , 'a3d7e1d7-7ec4-4840-88cc-1d189666a999' , 'a8bb2f9a-8764-4486-8e72-bcf4131a3093' , '5b92f333-7335-411e-8594-0d0dad36e2a8' , 'c38ca224-c31e-48fd-b62a-7966d9b52891' , '4f239c18-9b4b-443a-958a-c089f2257103' , '35154867-6ba9-4a13-917c-cd9b7bd2c84e' , 'c1d48e17-2d8a-4083-939d-627345eb290a' , 'c9a4d74b-8114-4910-b72e-f5cef5214d30' , 'eaed5e7e-c1b0-4564-a34b-be1a80823241' , 'b0ff505d-93f2-44a6-9527-2fd138ef2085' , '5b827e20-862d-4531-b43e-c6217d5df8ff' , '6398a645-c742-4809-acbb-7107a55a4743' , 'a16a8cf4-9ddf-4f61-926e-2b86a410b8e0' , '5d8f3a3a-e3bb-48a9-b93d-bee6aed3755e' , '65814541-ba8b-4473-a797-2992606882c2' , '07e18ee4-a3e6-4d8b-95c9-363302192f57' , 'c6467df6-8b7f-4c6f-9a67-394b4c86b5fc' , '97bdb9b2-dbec-4a74-9246-75641c933ebc' , '58e570cc-d093-490f-a58a-24da2841f1eb' , '01bfa114-7a14-481d-9345-7ce69cf1bc23' , 'ef170314-d121-486a-9ca3-0a09bcc48a43' , 'c1066eac-bbbd-4eb0-8819-dfc8c840d8aa' , 'e515c6a4-eba3-48ba-9c4e-4c5d0f4a1c08' , '6f62dc4f-5b14-46c7-a81b-854e18999122' , '097eb6ac-3a82-4ecc-88b8-b00aedb3c6fd' , 'd213ec5b-e533-4691-9eb6-c5ccc7948e5f' , '2ace670b-a119-4c75-ae02-2c232027e0c2' , '7dbc83d6-98ab-4ad5-8d2d-05d238e17a5a' , 'bcdc3702-4dca-4f4c-af81-e133808e54a0' , '3310750a-1bd2-4cfa-ac33-6f2f53139727' , '7f0200ec-f2e3-4a87-9874-eaa7583e5046' , '1a1910fa-b961-4322-a803-771b0dfc3a47' , '6311b13c-ffb4-4d66-9787-4564b98eccb9' , '124b9be2-c315-49fc-99a2-19df3e44d7cd' , '7b1a1563-9367-492d-b307-3cdbd5723d72' , 'ba3c1fbe-7637-42c3-808c-3607376610a0' , 'c186c97e-a0ac-422f-a6d1-94b7cca3f206' , '5cc49de5-1751-499c-bbec-e69d7b2105e2' , '5b0ec182-60bf-477c-a7ff-9c8faed31ef1' , 'f7fbaaa0-e1f0-453c-bc0e-34cbc2f5b09c' , '076353df-69d9-49e5-9ad9-5eb289b2df22' , 'dd30c8ac-5b97-43fd-91a8-660477e1905d' , '00c919c7-8f3f-492a-bd17-5e217ad42b07' , '5451af54-64d7-4f7e-ae97-9936d5918ef0' , '9c6948aa-fa3a-46ee-b15c-88e8babb9fff' , '871a691f-66d0-41a2-8225-6422906dd504' , '500e3456-d83e-4d59-b6bf-333082cee3fd' , '7395bd9a-df85-44b5-803a-8eacb7d11ac8' , '4fa77ad8-42a1-4b2f-b78e-613f1e61b0a9' , '73472492-c4ac-4146-bfce-f045b46dc1a2' , '9a1dc714-ff35-4664-9ee0-9c29bcf76578' , 'bb9868d3-9517-4739-97e8-3d78a7ac05d3' , '6c535742-d701-42c1-af3f-eb9af4c16703' , '55f7390e-43e3-40ee-91bd-425826315437' , 'aa7809b3-d50c-4ae1-bf8c-d4061507cdf1' , '9fcba600-4340-4dd0-9bc3-063dce1e2cbd' , '6d8ed75b-3867-411c-86d0-4aab78fe6ddc' , 'd9123a8e-fc23-4c13-b730-8da15edc7541' , 'a0ccbe9c-02bf-4a3b-8d29-a83cbedb9e92' , '9c553644-d291-431d-b63c-a4459c708a90' , 'bd34bbc3-70e3-4854-b436-bc60d2d799ca' , 'd283638f-e18a-45ce-96cb-32db646955b9' , '74ff0c11-5eb8-4a58-a57f-8303e6a6dac0' , '3fb7e74b-3e9d-4f41-af3c-740eb83716fc' , 'f9adb8ac-928e-429f-a4e7-3447430f8dc6' , '28a58f38-e276-44a5-af10-a41add58cfb1' , 'e15db78c-9ec1-498b-a494-625c400bffa8' , '9a9f74f8-d932-4a2a-929f-8ae2094deda0' , '4d4a5d1a-c605-4e10-a91f-2701506aad63' , '617ff1b9-4d1e-4fd0-9377-a83257adaa65' , '4dcf3bb1-fa05-4d6a-8f03-e30e1c1dd33f' , '5c6c2c46-2288-4d28-b63b-a11f44f3ad98' , '8b27b86e-0cfa-4ccc-9b21-5275788afbca' , 'ca4650a8-eb65-47eb-a587-d88c89cda78b' , '2e6674b6-0d58-4b2d-9eb4-cdc21ec5af6d' , '11bdde74-2b20-4a6a-a881-955c61e128ba' , '660bfa07-24d8-4394-b26e-128a3e4ef19b' , '5cdd9604-118b-4149-b333-19aa9cc3206f' , 'ee1bdfe6-239a-4b28-8afc-ffc7a266d78f' , '0955ae68-671c-4818-8b4f-61b0d200dbea' , 'a3dd3859-eace-4138-ae22-15ef3b0232c3' , '3155219f-94bb-4357-9dd7-f220f682e850' , '3cc6c760-19d0-4bcf-94ba-2e287a35fc75' , '6e96e7b6-bfc3-440a-b2b5-e463aee763f9' , 'f187a95c-673c-4374-afb1-5f35d22e2ef2' , '47600535-4e01-4e38-9cc3-4e54c1cafe4f' , '84a5ddb3-7f01-4f54-b8d9-8193f08e85b6' , 'c21f89cb-5576-4589-8ad4-36cb0b2cb09d' , '81402f63-d212-4802-b4b7-c915c9dec79d' , 'efdae16c-231f-4828-bc8e-eb433a625da2' , '1d807b3e-dff4-4c69-9da2-5860aa7e93f5' , 'ae068aa5-134e-4933-b025-b0ce7c841694' , 'd250ed4a-55c8-44a6-a091-204a669baac5' );
CREATE DATABASE delilah_resto; USE delilah_resto; CREATE TABLE `favorites` ( `favorite_id` int primary key auto_increment not null unique, `user_id` int not null, `product_id` int not null ); CREATE TABLE `products_orders` ( `product_order_id` int primary key auto_increment not null unique, `product_id` int not null, `product_amount` int not null, `order_id` int not null ); CREATE TABLE `products` ( `product_id` int primary key auto_increment not null unique, `name` varchar (255) unique not null, `price` int not null, `photo` varchar (255) not null ); CREATE TABLE `orders` ( `order_id` int primary key auto_increment not null unique, `user_id` int not null, `order_state_id` int not null, `details` text not null, `final_cost` int not null, `payment_method_id` int not null, `address` varchar (255) not null, `time` timestamp not null ); CREATE TABLE `users` ( `user_id` int primary key auto_increment not null unique, `username` varchar (255) unique not null, `full_name` varchar (255) not null, `email` varchar (255) not null unique, `phone_number` int unsigned not null unique, `address` varchar (255) not null, `role_id` int not null, `password` varchar (255) not null ); CREATE TABLE `roles` ( `role_id` int primary key auto_increment not null unique, `name` varchar (255) not null unique ); CREATE TABLE `payment_method` ( `payment_method_id` int primary key auto_increment not null unique, `payment_method` varchar (255) not null unique ); CREATE TABLE `order_state` ( `order_state_id` int primary key auto_increment not null unique, `state` varchar (255) not null unique ); ALTER TABLE orders ADD FOREIGN KEY (user_id) REFERENCES users(user_id); ALTER TABLE users ADD FOREIGN KEY (role_id) REFERENCES roles(role_id); ALTER TABLE favorites ADD FOREIGN KEY (user_id) REFERENCES users(user_id); ALTER TABLE favorites ADD FOREIGN KEY (product_id) REFERENCES products(product_id); ALTER TABLE products_orders ADD FOREIGN KEY (order_id) REFERENCES orders(order_id); ALTER TABLE products_orders ADD FOREIGN KEY (product_id) REFERENCES products(product_id); ALTER TABLE orders ADD FOREIGN KEY (payment_method_id) REFERENCES payment_method(payment_method_id); ALTER TABLE orders ADD FOREIGN KEY (order_state_id) REFERENCES order_state(order_state_id); INSERT INTO roles (name) VALUES ('admin'); INSERT INTO roles (name) VALUES ('client'); INSERT INTO order_state (state) VALUES ('nuevo'); INSERT INTO order_state (state) VALUES ('confirmado'); INSERT INTO order_state (state) VALUES ('preparando'); INSERT INTO order_state (state) VALUES ('enviando'); INSERT INTO order_state (state) VALUES ('entregado'); INSERT INTO order_state (state) VALUES ('cancelado'); INSERT INTO payment_method (payment_method) VALUES ('efectivo'); INSERT INTO payment_method (payment_method) VALUES ('tarjeta'); INSERT INTO users (username, full_name, email, phone_number, address, role_id, password) VALUES ('admin', 'Admin Admin', '<EMAIL>', 3203333333, 'IDK', 1, '$2a$10$..1rLuMT3PWI6a8LK7MXV.PPge82SspvMc5eJuB1rYCv8844Ycf1m'); INSERT INTO products (name, price, photo) VALUES ('Soupe à l’oignon', 250, 'https://www.expatica.com/app/uploads/sites/5/2020/03/French-onion-soup.jpg'); INSERT INTO products (name, price, photo) VALUES ('Coq au vin', 350, 'https://www.expatica.com/app/uploads/sites/5/2020/03/Coq-au-vin-1024x683.jpg'); INSERT INTO products (name, price, photo) VALUES ('Cassoulet', 400, 'https://www.expatica.com/app/uploads/sites/5/2020/03/Cassoulet.jpg'); INSERT INTO products (name, price, photo) VALUES ('Boeuf bourguignon', 500, 'https://www.expatica.com/app/uploads/sites/5/2020/03/Boeuf-bourguignon.jpg'); INSERT INTO products (name, price, photo) VALUES ('Chocolate soufflé', 150, 'https://www.expatica.com/app/uploads/sites/5/2020/03/Chocolate-souffle%CC%81%EF%BB%BF-1024x683.jpg'); INSERT INTO products (name, price, photo) VALUES ('Flamiche', 300, 'https://www.expatica.com/app/uploads/sites/5/2020/03/Flamiche-1024x683.jpg'); INSERT INTO products (name, price, photo) VALUES ('Confit de canard', 350, 'https://www.expatica.com/app/uploads/sites/5/2020/03/Confit-de-canard-1024x683.jpg'); INSERT INTO products (name, price, photo) VALUES ('Salade Niçoise', 250, 'https://www.expatica.com/app/uploads/sites/5/2020/03/Salade-Nic%CC%A7oise-1024x683.jpg'); INSERT INTO products (name, price, photo) VALUES ('Ratatouille', 550, 'https://www.expatica.com/app/uploads/sites/5/2020/03/Ratatouille-1024x683.jpg'); INSERT INTO products (name, price, photo) VALUES ('<NAME>', 400, 'https://www.expatica.com/app/uploads/sites/5/2020/03/Tarte-tatin.jpg');
-- Example for creating a Star schema -- Create the Fact Table. In our case it would be the TripTable DROP TABLE dbo.FactTrips; CREATE TABLE dbo.FactTrips ( [tripId] INT NOT NULL, [driverId] INT NOT NULL, [customerId] INT NOT NULL, [tripdate] INT, [startLocation] VARCHAR (40), [endLocation] VARCHAR (40) ) WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = HASH ([tripId]) ) GO -- Insert some sample values. In reality the Fact tables will have Millions of rows. INSERT INTO dbo.FactTrips VALUES (101, 201, 301, 20220101, 'New York', 'New Jersey'); INSERT INTO dbo.FactTrips VALUES (102, 202, 302, 20220101, 'Miami', 'Dallas'); INSERT INTO dbo.FactTrips VALUES (103, 203, 303, 20220102, 'Phoenix', 'Tempe'); INSERT INTO dbo.FactTrips VALUES (104, 204, 304, 20220204, 'LA', 'San Jose'); INSERT INTO dbo.FactTrips VALUES (105, 205, 305, 20220205, 'Seattle', 'Redmond'); INSERT INTO dbo.FactTrips VALUES (106, 206, 306, 20220301, 'Atlanta', 'Chicago'); -- Create the Customer Dimension table DROP TABLE dbo.DimCustomer; CREATE TABLE dbo.DimCustomer ( [customerId] INT NOT NULL, [name] VARCHAR(40) NOT NULL, [emailId] VARCHAR(40), [phoneNum] VARCHAR(40), [city] VARCHAR(40) ) WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = REPLICATE ) GO -- Another way of inserting data using COPY INTO -- You will have to use the https format here instead of the abfss format -- Copy the customer.csv file in this directory to the ADLS Gen2 location and use that path here. COPY INTO dbo.DimCustomer FROM '<INSERT https:// LOCATION>' WITH ( FILE_TYPE='CSV', FIELDTERMINATOR=',', FIELDQUOTE='', ROWTERMINATOR='\n', ENCODING = 'UTF8', FIRSTROW = 2 ); SELECT * from dbo.DimCustomer; -- Create a Driver Dimension table CREATE TABLE dbo.DimDriver ( [driverId] INT NOT NULL, [firstName] VARCHAR(40), [middleName] VARCHAR(40), [lastName] VARCHAR(40), [city] VARCHAR(40), [gender] VARCHAR(40), [salary] INT ) WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = REPLICATE ) GO -- Insert some sample values INSERT INTO dbo.DimDriver VALUES (210, 'Alicia','','Yang','New York', 'Female', 2000); INSERT INTO dbo.DimDriver VALUES (211, 'Brandon','','Rhodes','New York','Male', 3000); INSERT INTO dbo.DimDriver VALUES (212, 'Cathy','','Mayor','California','Female', 3000); INSERT INTO dbo.DimDriver VALUES (213, 'Dennis','','Brown','Florida','Male', 2500); INSERT INTO dbo.DimDriver VALUES (214, 'Jeremey','','Stilton','Arizona','Male', 2500); INSERT INTO dbo.DimDriver VALUES (215, 'Maile','','Green','Florida','Female', 4000); SELECT * from dbo.DimDriver; DROP TABLE dbo.DimDate -- Create the date dimension table CREATE TABLE dbo.DimDate ( [dateId] INT NOT NULL, [date] DATETIME NOT NULL, [dayOfWeek] VARCHAR(40), [fiscalQuarter] VARCHAR(40) ) WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = REPLICATE ) GO INSERT INTO dbo.DimDate VALUES (20210101, '20210101','Saturday','Q3'); INSERT INTO dbo.DimDate VALUES (20210102, '20210102','Sunday','Q3'); INSERT INTO dbo.DimDate VALUES (20210103, '20210103','Monday','Q3'); INSERT INTO dbo.DimDate VALUES (20210104, '20210104','Tuesday','Q3'); INSERT INTO dbo.DimDate VALUES (20210105, '20210105','Wednesday','Q3'); -- Now run some sample queries SELECT trip.[tripId], customer.[name] from dbo.FactTrips AS trip JOIN dbo.DimCustomer AS customer ON trip.[customerId] = customer.[customerId] WHERE trip.[endLocation] = 'San Jose';
-- file:guc.sql ln:243 expect:true select myfunc(0), current_setting('work_mem')
<filename>internal/pkg/db/mysql/migrations/000001_init.up.sql CREATE TABLE IF NOT EXISTS links ( id binary(16) NOT NULL DEFAULT (UUID_TO_BIN(UUID(), TRUE)), url varchar(255) NOT NULL, hash varchar(255) NOT NULL, description text NULL, created_at timestamp NULL DEFAULT CURRENT_TIMESTAMP, updated_at timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
<filename>api/bonus_pulsa.sql -- MySQL dump 10.13 Distrib 5.7.19, for Linux (x86_64) -- -- Host: localhost Database: bonus_pulsa -- ------------------------------------------------------ -- Server version 5.7.19-0ubuntu0.16.04.1 /*!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 `absen` -- DROP TABLE IF EXISTS `absen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `absen` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` text NOT NULL, `tanggal` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `absen` -- LOCK TABLES `absen` WRITE; /*!40000 ALTER TABLE `absen` DISABLE KEYS */; INSERT INTO `absen` VALUES (4,'<EMAIL>','12-09-2017'); /*!40000 ALTER TABLE `absen` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `histori_iklan` -- DROP TABLE IF EXISTS `histori_iklan`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `histori_iklan` ( `email` text NOT NULL, `tanggal` text NOT NULL, `jam` text NOT NULL, `jenis_iklan` text NOT NULL, `saldo_dapat` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `histori_iklan` -- LOCK TABLES `histori_iklan` WRITE; /*!40000 ALTER TABLE `histori_iklan` DISABLE KEYS */; INSERT INTO `histori_iklan` VALUES ('<EMAIL>','11-09-2017','10:42','KLIK IKLAN','13'),('<EMAIL>','11-09-2017','10:30','TONTON VIDEO','47'),('<EMAIL>','11-09-2017','10:40','KLIK IKLAN','11'),('<EMAIL>','11-09-2017','11:49','KLIK IKLAN','15'),('<EMAIL>','11-09-2017','14:19','KLIK IKLAN','17'),('<EMAIL>','11-09-2017','14:23','TONTON VIDEO','23'),('<EMAIL>','11-09-2017','20:35','TONTON VIDEO','22'),('<EMAIL>','11-09-2017','20:57','TONTON VIDEO','37'),('<EMAIL>','11-09-2017','21:23','K<NAME>','15'),('<EMAIL>','11-09-2017','22:02','KLIK IKLAN','16'),('<EMAIL>','11-09-2017','22:03','TONTON VIDEO','24'),('<EMAIL>','11-09-2017','22:07','TONTON VIDEO','47'),('<EMAIL>','12-09-2017','08:14','TONTON VIDEO','27'),('<EMAIL>','12-09-2017','08:58','<NAME>','12'),('<EMAIL>','12-09-2017','08:03','TONTON VIDEO','24'),('<EMAIL>','12-09-2017','08:30','TONTON VIDEO','17'),('<EMAIL>','12-09-2017','08:00','KLIK IKLAN','18'),('<EMAIL>','12-09-2017','08:16','TONTON VIDEO','17'),('<EMAIL>','12-09-2017','09:38','TONTON VIDEO','43'),('<EMAIL>','12-09-2017','09:10','TONTON VIDEO','45'),('<EMAIL>','12-09-2017','09:36','TONTON VIDEO','30'),('<EMAIL>','12-09-2017','09:53','TONTON VIDEO','49'),('<EMAIL>','12-09-2017','09:59','TONTON VIDEO','32'),('<EMAIL>','12-09-2017','09:48','TONTON VIDEO','38'),('<EMAIL>','12-09-2017','09:45','TONTON VIDEO','27'),('<EMAIL>','12-09-2017','09:59','TONTON VIDEO','50'),('<EMAIL>','12-09-2017','09:12','TONTON VIDEO','30'),('<EMAIL>','12-09-2017','09:02','TONTON VIDEO','26'),('<EMAIL>','12-09-2017','09:55','TONTON VIDEO','39'),('<EMAIL>','12-09-2017','09:18','TONTON VIDEO','48'),('<EMAIL>','12-09-2017','09:44','TONTON VIDEO','30'),('<EMAIL>','12-09-2017','09:55','TONTON VIDEO','47'),('<EMAIL>','12-09-2017','10:23','TONTON VIDEO','36'),('<EMAIL>','12-09-2017','10:18','TONTON VIDEO','19'),('<EMAIL>','12-09-2017','10:15','TONTON VIDEO','30'),('<EMAIL>','12-09-2017','10:28','TONTON VIDEO','41'),('<EMAIL>','12-09-2017','10:58','TONTON VIDEO','31'),('<EMAIL>','12-09-2017','10:02','TONTON VIDEO','47'),('<EMAIL>','12-09-2017','10:02','TONTON VIDEO','49'),('<EMAIL>','12-09-2017','10:22','TONTON VIDEO','37'),('<EMAIL>','12-09-2017','10:49','TONTON VIDEO','31'),('<EMAIL>','12-09-2017','10:18','TONTON VIDEO','16'),('<EMAIL>','12-09-2017','10:37','TONTON VIDEO','46'),('<EMAIL>','12-09-2017','10:16','TONTON VIDEO','30'),('<EMAIL>','12-09-2017','10:19','TONTON VIDEO','19'),('<EMAIL>','12-09-2017','10:52','TONTON VIDEO','38'),('<EMAIL>','12-09-2017','10:17','TONTON VIDEO','30'),('<EMAIL>','12-09-2017','10:42','TONTON VIDEO','32'),('<EMAIL>','12-09-2017','10:14','TONTON VIDEO','37'),('<EMAIL>','12-09-2017','10:29','TONTON VIDEO','50'),('<EMAIL>','12-09-2017','10:57','TONTON VIDEO','28'),('<EMAIL>','12-09-2017','10:33','TONTON VIDEO','49'),('<EMAIL>','12-09-2017','10:58','TONTON VIDEO','49'),('<EMAIL>','12-09-2017','10:14','TONTON VIDEO','21'),('<EMAIL>','12-09-2017','10:41','TONTON VIDEO','21'),('<EMAIL>','12-09-2017','10:47','TONTON VIDEO','45'),('<EMAIL>','12-09-2017','11:18','TONTON VIDEO','31'),('<EMAIL>','12-09-2017','11:57','TONTON VIDEO','47'),('<EMAIL>','12-09-2017','11:33','TONTON VIDEO','44'),('<EMAIL>','12-09-2017','11:40','TONTON VIDEO','37'),('<EMAIL>','12-09-2017','11:14','TONTON VIDEO','34'),('<EMAIL>','12-09-2017','11:01','TONTON VIDEO','32'),('<EMAIL>','12-09-2017','11:22','TONTON VIDEO','50'),('<EMAIL>','12-09-2017','11:20','TONTON VIDEO','21'),('<EMAIL>','12-09-2017','11:40','TONTON VIDEO','21'),('<EMAIL>','12-09-2017','11:19','TONTON VIDEO','39'),('<EMAIL>','12-09-2017','11:35','TONTON VIDEO','34'),('<EMAIL>','12-09-2017','11:55','TONTON VIDEO','35'),('<EMAIL>','12-09-2017','11:27','TONTON VIDEO','20'),('<EMAIL>','12-09-2017','12:44','TONTON VIDEO','49'),('<EMAIL>','12-09-2017','12:44','TONTON VIDEO','23'),('<EMAIL>','12-09-2017','12:52','TONTON VIDEO','17'),('<EMAIL>','12-09-2017','12:07','TONTON VIDEO','25'),('<EMAIL>','12-09-2017','12:48','TONTON VIDEO','16'),('<EMAIL>','12-09-2017','12:20','TONTON VIDEO','49'),('<EMAIL>','12-09-2017','12:54','TONTON VIDEO','43'),('<EMAIL>','12-09-2017','13:08','TONTON VIDEO','46'),('<EMAIL>','12-09-2017','13:55','TONTON VIDEO','27'),('<EMAIL>','12-09-2017','13:17','TONTON VIDEO','45'),('<EMAIL>','12-09-2017','14:36','TONTON VIDEO','48'),('<EMAIL>','12-09-2017','14:05','TONTON VIDEO','30'),('<EMAIL>','12-09-2017','15:14','TONTON VIDEO','28'),('<EMAIL>','12-09-2017','15:28','TONTON VIDEO','42'),('<EMAIL>','12-09-2017','15:26','TONTON VIDEO','41'),('<EMAIL>','12-09-2017','16:43','KLIK IKLAN','20'),('<EMAIL>','12-09-2017','16:08','TONTON VIDEO','23'),('<EMAIL>','12-09-2017','19:24','TONTON VIDEO','41'),('<EMAIL>','12-09-2017','19:17','TONTON VIDEO','23'),('<EMAIL>','12-09-2017','19:54','TONTON VIDEO','36'),('<EMAIL>','12-09-2017','20:53','ABSEN HARIAN','486'),('<EMAIL>','12-09-2017','20:20','ABSEN HARIAN','315'),('<EMAIL>','12-09-2017','20:56','ABSEN HARIAN','135'),('<EMAIL>','12-09-2017','20:15','KLIK IKLAN','10'),('<EMAIL>','12-09-2017','20:36','ABSEN HARIAN','497'),('<EMAIL>','12-09-2017','20:33','TONTON VIDEO','25'),('<EMAIL>','12-09-2017','21:14','TONTON VIDEO','35'),('<EMAIL>','12-09-2017','22:31','TONTON VIDEO','15'); /*!40000 ALTER TABLE `histori_iklan` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `member` -- DROP TABLE IF EXISTS `member`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `member` ( `email` varchar(50) NOT NULL, `password` text NOT NULL, `nama_lengkap` text NOT NULL, `no_telepon` text NOT NULL, `saldo` int(11) NOT NULL, `status` text NOT NULL, `verifikasi` text NOT NULL, `firebase_id` text NOT NULL, PRIMARY KEY (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `member` -- LOCK TABLES `member` WRITE; /*!40000 ALTER TABLE `member` DISABLE KEYS */; INSERT INTO `member` VALUES ('<EMAIL>','Hash2856','<NAME>','085454845',0,'registered','belum',''),('<EMAIL>','123456','Cipta','08512454322',1614,'registered','ok','fqwNQPbrX9c:APA91bGUoyFyNV_GT62JoUw04TgQV6h1WNuilaVUZURNgjozTsrj9gExkMKYrt97mVQMz68POBywFdQuClvh32sd8HZhylt_6cEJyG6ou8AOYoIhb-UT5AoMZzSA6lY0eEIuYygblsxw'),('<EMAIL>','123456','<NAME>','08213124',101,'registered','ok','null'),('<EMAIL>','123456','suspend','0846480464',0,'suspend','ok',''),('<EMAIL>','rf09thebye','<NAME>','081223744803',1517204,'registered','ok','f8rBwvMek8c:APA91bFCD6FCCHLjvCQHUznxzsfdPrdQFmBZcPcEFamCqQzKqpiBjDAxtpLe5dOsRF2cvWJv2i9LrFvVkg3WwRwI8s-iFCqwFQ5mZbmo94i6_OR4u-pGvhQsHn27-vu7eKfsZBpRs5AV'); /*!40000 ALTER TABLE `member` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `penukaran` -- DROP TABLE IF EXISTS `penukaran`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `penukaran` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` text NOT NULL, `id_tukar_point` text NOT NULL, `tanggal` text NOT NULL, `status` text NOT NULL, `tanggal_aksi` varchar(10) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `penukaran` -- LOCK TABLES `penukaran` WRITE; /*!40000 ALTER TABLE `penukaran` DISABLE KEYS */; INSERT INTO `penukaran` VALUES (19,'<EMAIL>','6','12-09-2017','DONE','12-09-2017'),(20,'<EMAIL>','5','12-09-2017','PROCESSING',''); /*!40000 ALTER TABLE `penukaran` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `tukar_point` -- DROP TABLE IF EXISTS `tukar_point`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tukar_point` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nama_tukar` text NOT NULL, `jumlah_point` text NOT NULL, `jumlah_dapat` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `tukar_point` -- LOCK TABLES `tukar_point` WRITE; /*!40000 ALTER TABLE `tukar_point` DISABLE KEYS */; INSERT INTO `tukar_point` VALUES (1,'PULSA RP 5.000','6500','5000'),(2,'PULSA RP 10.000','12000','10000'),(3,'PULSA RP 20.000','21000','20000'),(4,'PULSA RP 25.000','25500','25000'),(5,'PULSA RP 50.000','50000','50000'),(6,'PULSA RP 100.000','90000','100000'),(7,'PULSA RP 200.000','175000','200000'); /*!40000 ALTER TABLE `tukar_point` 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 2017-09-12 15:52:19
-- alter tables ALTER TABLE `sys_sessions` ADD INDEX `date` (`date`); -- regular updates/changes DELETE FROM `sys_admin_dashboard` WHERE `name` = 'sys_licenses_90days' OR `name` = 'sys_licenses_400days'; UPDATE `sys_email_templates` SET `Desc` = 'Admin notification - new user joined' WHERE `Name` = 't_UserJoined' AND `Desc` = 'Profile activation message template.'; UPDATE `sys_email_templates` SET `Desc` = 'Admin notification - user confirmed email' WHERE `Name` = 't_UserConfirmed' AND `Desc` = 'Profile activation message template.'; UPDATE `sys_options` SET `desc` = 'Enable TinyMCE in comments' WHERE `Name` = 'enable_tiny_in_comments' AND `desc` = 'Enable TinyMCS in comments'; UPDATE `sys_options` SET `Type` = 'checkbox' WHERE `Name` = 'news_enable'; UPDATE `sys_options` SET `VALUE` = 'on' WHERE `Name` = 'news_enable' AND `VALUE` = '1'; UPDATE `sys_options` SET `VALUE` = '' WHERE `Name` = 'news_enable' AND `VALUE` = '0'; INSERT IGNORE INTO `sys_options` VALUES('feeds_enable', 'on', 3, 'Show boonex feeds in admin panel', 'checkbox', '', '', 7, ''); DELETE FROM `sys_pre_values` WHERE `Key` = 'Country' AND `Value` = 'JP' AND `LKey` = '__Jersey'; DELETE FROM `sys_objects_actions` WHERE `Type` = 'Profile' AND `Caption` = '{cpt_fave}'; DELETE FROM `sys_objects_actions` WHERE `Type` = 'Profile' AND `Caption` = '{cpt_befriend}'; DELETE FROM `sys_objects_actions` WHERE `Type` = 'Profile' AND `Caption` = '{cpt_greet}'; DELETE FROM `sys_objects_actions` WHERE `Type` = 'Profile' AND `Caption` = '{cpt_get_mail}'; DELETE FROM `sys_objects_actions` WHERE `Type` = 'Profile' AND `Caption` = '{cpt_report}'; DELETE FROM `sys_objects_actions` WHERE `Type` = 'Profile' AND `Caption` = '{cpt_block}'; DELETE FROM `sys_objects_actions` WHERE `Type` = 'Profile' AND `Caption` = '{cpt_remove_friend}'; DELETE FROM `sys_objects_actions` WHERE `Type` = 'Profile' AND `Caption` = '{cpt_unblock}'; INSERT INTO `sys_objects_actions` (`Caption`, `Icon`, `Url`, `Script`, `Eval`, `Order`, `Type`, `bDisplayInSubMenuHeader`) VALUES ('{cpt_fave}', 'action_fave.png', '', '{evalResult}', 'if ({ID} == {member_id}) return;\r\n\r\n$bDisplayType = {display_type};\r\n$iWindowWidth = {window_width};\r\n$iWindowHeight = {window_height};\r\n\r\n$sOnclick = $bDisplayType\r\n ? "openWindowWithParams(''list_pop.php?action=hot'', ''action_hot_profile'', new Array(''ID''), new Array(''{ID}''), ''width={$iWindowWidth},height={$iWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no'', ''post'');" \r\n : "$.post(''list_pop.php?action=hot'', { ID: ''{ID}'' }, function(sData){ $(''#ajaxy_popup_result_div_{ID}'').html(sData) } );return false;";\r\n\r\nreturn $sOnclick;\r\n', 3, 'Profile', 0), ('{cpt_befriend}', 'action_friends.png', '', '{evalResult}', 'if ({ID} == {member_id} OR is_friends({ID} , {member_id})) return;\r\n\r\n$bDisplayType = {display_type};\r\n$iWindowWidth = {window_width};\r\n$iWindowHeight = {window_height};\r\n\r\n$sOnclick = $bDisplayType\r\n ? "openWindowWithParams(''list_pop.php?action=friend'', ''action_friend_profile'', new Array(''ID''), new Array(''{ID}''), ''width={$iWindowWidth},height={$iWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no'', ''post'');" \r\n : "$.post(''list_pop.php?action=friend'', { ID: ''{ID}'' }, function(sData){ $(''#ajaxy_popup_result_div_{ID}'').html(sData) } );return false;";\r\n\r\n \r\nreturn $sOnclick;', 4, 'Profile', 0), ('{cpt_greet}', 'action_greet.png', '', '{evalResult}', 'if ({ID} == {member_id}) return;\r\n\r\n$bDisplayType = {display_type};\r\n$iWindowWidth = {window_width};\r\n$iWindowHeight = {window_height};\r\n\r\n\r\n$sOnclick = $bDisplayType\r\n ? "openWindowWithParams(''greet.php'', ''action_greet_profile'', new Array(''sendto''), new Array(''{ID}''), ''width={$iWindowWidth},height={$iWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no'', ''post'');" \r\n : "$.post(''greet.php'', { sendto: ''{ID}'' }, function(sData){ $(''#ajaxy_popup_result_div_{ID}'').html(sData) } );return false;";\r\n\r\nreturn $sOnclick;\r\n', 5, 'Profile', 0), ('{cpt_get_mail}', 'action_email.png', '', '{evalResult}', 'if ({ID} == {member_id}) return;\r\n\r\n$bDisplayType = {display_type};\r\n$bAnonymousMode = ''{anonym_mode}'';\r\n$iWindowWidth = {window_width};\r\n$iWindowHeight = {window_height};\r\n\r\nif ( !$bAnonymousMode ) {\r\n\r\n $sOnclick = $bDisplayType\r\n ? "openWindowWithParams(''freemail.php'', ''action_get_mail_profile'', new Array(''ID''), new Array(''{ID}''), ''width={$iWindowWidth},height={$iWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no'', ''post'');" \r\n : "$.post(''freemail.php'', { ID: ''{ID}'' }, function(sData){ $(''#ajaxy_popup_result_div_{ID}'').html(sData) } );return false;";\r\n\r\n return $sOnclick;\r\n}\r\nelse \r\n return null;', 6, 'Profile', 0), ('{cpt_report}', 'action_report.png', '', '{evalResult}', 'if ({ID} == {member_id}) return;\r\n\r\n$bDisplayType = {display_type};\r\n$iWindowWidth = {window_width};\r\n$iWindowHeight = {window_height};\r\n\r\n$sOnclick = $bDisplayType\r\n ? "openWindowWithParams(''list_pop.php?action=spam'', ''action_spam_profile'', new Array(''ID''), new Array(''{ID}''), ''width={$iWindowWidth},height={$iWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no'', ''post'');" \r\n : "$.post(''list_pop.php?action=spam'', { ID: ''{ID}'' }, function(sData){ $(''#ajaxy_popup_result_div_{ID}'').html(sData) } );return false;";\r\n\r\nreturn $sOnclick;\r\n', 8, 'Profile', 0), ('{cpt_block}', 'action_block.png', '', '{evalResult}', 'if ( {ID} == {member_id} || isBlocked({member_id}, {ID}) ) return;\r\n\r\n$bDisplayType = {display_type};\r\n$iWindowWidth = {window_width};\r\n$iWindowHeight = {window_height};\r\n\r\n$sOnclick = $bDisplayType\r\n ? "openWindowWithParams(''list_pop.php?action=block'', ''action_block_profile'', new Array(''ID''), new Array(''{ID}''), ''width={$iWindowWidth},height={$iWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no'', ''post'');" \r\n : "$.post(''list_pop.php?action=block'', { ID: ''{ID}'' }, function(sData){ $(''#ajaxy_popup_result_div_{ID}'').html(sData) } );return false;";\r\n\r\nreturn $sOnclick;', 9, 'Profile', 0), ('{cpt_remove_friend}', 'action_friends.png', '', '{evalResult}', 'if ({ID} == {member_id} OR !is_friends({ID} , {member_id}) ) return;\r\n\r\n$bDisplayType = {display_type};\r\n$iWindowWidth = {window_width};\r\n$iWindowHeight = {window_height};\r\n\r\n$sOnclick = $bDisplayType\r\n ? "openWindowWithParams(''list_pop.php?action=remove_friend'', ''action_remove_friend'', new Array(''ID''), new Array(''{ID}''), ''width={$iWindowWidth},height={$iWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no'', ''post'');" \r\n : "$.post(''list_pop.php?action=remove_friend'', { ID: ''{ID}'' }, function(sData){ $(''#ajaxy_popup_result_div_{ID}'').html(sData) } );return false;";\r\n\r\nreturn $sOnclick;', 4, 'Profile', 0), ('{cpt_unblock}', 'action_block.png', '', '{evalResult}', 'if ({ID} == {member_id} || !isBlocked({member_id}, {ID}) ) return;\r\n\r\n$bDisplayType = {display_type};\r\n$iWindowWidth = {window_width};\r\n$iWindowHeight = {window_height};\r\n\r\n$sOnclick = $bDisplayType\r\n ? "openWindowWithParams(''list_pop.php?action=unblock'', ''action_unblock_profile'', new Array(''ID''), new Array(''{ID}''), ''width={$iWindowWidth},height={$iWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no'', ''post'');" \r\n : "$.post(''list_pop.php?action=unblock'', { ID: ''{ID}'' }, function(sData){ $(''#ajaxy_popup_result_div_{ID}'').html(sData) } );return false;";\r\n\r\nreturn $sOnclick;', 9, 'Profile', 0); -- last step is to update current version INSERT INTO `sys_options` VALUES ('sys_tmp_version', '7.0.5', 0, 'Temporary Dolphin version ', 'digit', '', '', 0, '') ON DUPLICATE KEY UPDATE `VALUE` = '7.0.5';
DROP FUNCTION IF EXISTS migrate_production(); CREATE OR REPLACE FUNCTION migrate_production() RETURNS void AS $$ DECLARE row_count integer; BEGIN raise notice '...importing wells_production_data data'; INSERT INTO production_data( production_data_guid , filing_number , well_tag_number , yield_estimation_method_code , yield_estimation_rate , yield_estimation_duration , well_yield_unit_code , static_level , drawdown , hydro_fracturing_performed , create_user , create_date , update_user , update_date ) SELECT gen_random_uuid() , null , xform.well_tag_number , CASE production_data.yield_estimated_method_code WHEN 'UNK' THEN null ELSE production_data.yield_estimated_method_code END AS yield_estimation_method_code, production_data.test_rate , production_data.test_duration , CASE production_data.test_rate_units_code WHEN 'USGM' THEN 'USGPM' ELSE production_data.test_rate_units_code END AS well_yield_unit_code , production_data.static_level , production_data.net_drawdown , false , production_data.who_created , production_data.when_created , COALESCE(production_data.who_updated,production_data.who_created) , COALESCE(production_data.when_updated,production_data.when_created) FROM wells.wells_production_data production_data INNER JOIN xform_well xform ON production_data.well_id=xform.well_id; raise notice '...wells_production_data data imported'; SELECT count(*) from production_data into row_count; raise notice '% rows loaded into the production_data table', row_count; END; $$ LANGUAGE plpgsql; COMMENT ON FUNCTION migrate_production () IS 'Load Production Data, only for the wells that have been replicated.';
INSERT INTO settings(key, hint, value) VALUES('twitter-search', 'Twitter-søk', '{"type": "string", "value": "Switcharoo"}'); INSERT INTO services(key, value) VALUES('program-enabled', FALSE); INSERT INTO services(key, value) VALUES('twitter-enabled', FALSE); INSERT INTO csses(selector, property, value, type, title) VALUES('body', 'background-color', '#ffffff', 'string', 'Background color'); INSERT INTO csses(selector, property, value, type, title) VALUES('.slide__title', 'color', '#000000', 'string', 'Slide title color'); INSERT INTO csses(selector, property, value, type, title) VALUES('.slide__body', 'color', '#000000', 'string', 'Slide text color'); INSERT INTO csses(selector, property, value, type, title) VALUES('.tweet__at', 'color', '#000000', 'string', 'Tweet text handle color'); INSERT INTO csses(selector, property, value, type, title) VALUES('.tweet__text', 'color', '#000000', 'string', 'Tweet text color'); INSERT INTO csses(selector, property, value, type, title) VALUES('.tweet__hash', 'color', '#000000', 'string', 'Tweet text hash color'); INSERT INTO csses(selector, property, value, type, title) VALUES('.tweet__handle', 'color', '#000000', 'string', 'Tweet author handle color'); INSERT INTO csses(selector, property, value, type, title) VALUES('.tweet__name', 'color', '#000000', 'string', 'Tweet author name color'); INSERT INTO slides(title, body, visible, type, index, name) VALUES('Welcome', 'Your first slide', TRUE, 'text', 10, 'welcome');
<filename>postgres/src/test/sql/configure.sql<gh_stars>1-10 CREATE OR REPLACE FUNCTION assert(actual int8, expected int8, message text) RETURNS bool LANGUAGE plpgsql AS $$ BEGIN IF expected IS DISTINCT FROM actual THEN RAISE EXCEPTION 'ASSERT: %: expected=%, actual=%', message, expected, actual; END IF; RETURN true; END; $$; CREATE OR REPLACE FUNCTION assert(actual ANYELEMENT, expected anyelement, message text) RETURNS bool LANGUAGE plpgsql AS $$ BEGIN IF expected IS DISTINCT FROM actual THEN RAISE EXCEPTION 'ASSERT: %: expected=%, actual=%', message, expected, actual; END IF; RETURN true; END; $$; ALTER TABLE so_posts SET (autovacuum_enabled = false); ALTER TABLE so_users SET (autovacuum_enabled = false); ALTER TABLE words SET (autovacuum_enabled = false);
<gh_stars>1-10 INSERT INTO `base_menu` VALUES ('111', 'assetAccountLogManager', '资产流水明细', '56', '/assets/assetAccountLog', null, 'menu', '0', '资产流水明细', '/assetsManager/assetAccountLog', null, '_import(\'assets/assetAccountLog/index\')', null, null, null, '2019-03-30 17:07:32', 'Tian'); INSERT INTO `base_menu_title` VALUES (null, '资产流水明细', 'en', '111');
-- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. USE [generate] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF EXISTS(SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'Staging' AND TABLE_NAME = 'OrganizationAddress') BEGIN DROP TABLE [Staging].[OrganizationAddress] END GO CREATE TABLE Staging.OrganizationAddress ( Id INT IDENTITY(1, 1) Primary Key ,OrganizationIdentifier VARCHAR(60) ,OrganizationType VARCHAR(100) ,AddressTypeForOrganization VARCHAR(50) ,AddressStreetNumberAndName VARCHAR(150) ,AddressApartmentRoomOrSuite VARCHAR(50) ,AddressCity VARCHAR(30) ,RefStateId VARCHAR(100) ,AddressStateANSICode VARCHAR(100) ,AddressPostalCode VARCHAR(17) ,OrganizationId VARCHAR(100) ,LocationId VARCHAR(100) ,RunDateTime DATETIME ) exec sp_addextendedproperty @name = N'Required', @value = N'True', @level0type = N'Schema', @level0name = 'Staging', @level1type = N'Table', @level1name = 'OrganizationAddress', @level2type = N'Column', @level2name = 'OrganizationIdentifier' exec sp_addextendedproperty @name = N'Required', @value = N'True', @level0type = N'Schema', @level0name = 'Staging', @level1type = N'Table', @level1name = 'OrganizationAddress', @level2type = N'Column', @level2name = 'OrganizationType' exec sp_addextendedproperty @name = N'Lookup', @value = N'RefOrganizationType', @level0type = N'Schema', @level0name = 'Staging', @level1type = N'Table', @level1name = 'OrganizationAddress', @level2type = N'Column', @level2name = 'OrganizationType' exec sp_addextendedproperty @name = N'TableFilter', @value = N'001156', @level0type = N'Schema', @level0name = 'Staging', @level1type = N'Table', @level1name = 'OrganizationAddress', @level2type = N'Column', @level2name = 'OrganizationType' exec sp_addextendedproperty @name = N'Required', @value = N'True', @level0type = N'Schema', @level0name = 'Staging', @level1type = N'Table', @level1name = 'OrganizationAddress', @level2type = N'Column', @level2name = 'AddressTypeForOrganization' exec sp_addextendedproperty @name = N'Lookup', @value = N'RefOrganizationLocationType', @level0type = N'Schema', @level0name = 'Staging', @level1type = N'Table', @level1name = 'OrganizationAddress', @level2type = N'Column', @level2name = 'AddressTypeForOrganization' exec sp_addextendedproperty @name = N'Required', @value = N'True', @level0type = N'Schema', @level0name = 'Staging', @level1type = N'Table', @level1name = 'OrganizationAddress', @level2type = N'Column', @level2name = 'AddressStreetNumberAndName' exec sp_addextendedproperty @name = N'Required', @value = N'True', @level0type = N'Schema', @level0name = 'Staging', @level1type = N'Table', @level1name = 'OrganizationAddress', @level2type = N'Column', @level2name = 'AddressCity' exec sp_addextendedproperty @name = N'Required', @value = N'True', @level0type = N'Schema', @level0name = 'Staging', @level1type = N'Table', @level1name = 'OrganizationAddress', @level2type = N'Column', @level2name = 'RefStateId' exec sp_addextendedproperty @name = N'Lookup', @value = N'RefState', @level0type = N'Schema', @level0name = 'Staging', @level1type = N'Table', @level1name = 'OrganizationAddress', @level2type = N'Column', @level2name = 'RefStateId' exec sp_addextendedproperty @name = N'Required', @value = N'True', @level0type = N'Schema', @level0name = 'Staging', @level1type = N'Table', @level1name = 'OrganizationAddress', @level2type = N'Column', @level2name = 'AddressStateANSICode' exec sp_addextendedproperty @name = N'Lookup', @value = N'RefStateANSICode', @level0type = N'Schema', @level0name = 'Staging', @level1type = N'Table', @level1name = 'OrganizationAddress', @level2type = N'Column', @level2name = 'AddressStateANSICode' exec sp_addextendedproperty @name = N'Required', @value = N'True', @level0type = N'Schema', @level0name = 'Staging', @level1type = N'Table', @level1name = 'OrganizationAddress', @level2type = N'Column', @level2name = 'AddressPostalCode'
create table rule_engine_condition ( id int auto_increment primary key, name varchar(50) not null, description varchar(500) null, workspace_id int null, create_user_id int null, create_user_name varchar(50) null, left_type tinyint null, left_value varchar(2000) null, left_value_type varchar(20) not null, right_type tinyint null, right_value_type varchar(20) not null, right_value varchar(2000) null, symbol varchar(20) null, update_time timestamp null, create_time timestamp null, deleted tinyint null ) charset = utf8; create index rule_engine_condition_name_index on rule_engine_condition (name); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (47, 'true', null, 1, null, null, 2, 'true', 'BOOLEAN', 2, 'BOOLEAN', 'true', 'EQ', '2020-09-04 20:50:46', '2020-08-24 15:57:57', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (48, 'false', null, 1, null, null, 2, 'true', 'BOOLEAN', 2, 'BOOLEAN', 'false', 'EQ', '2020-08-24 16:26:51', '2020-08-24 16:26:51', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (51, '年龄', null, 1, null, null, 0, '66', 'NUMBER', 2, 'NUMBER', '20', 'GE', '2020-08-27 00:15:15', '2020-08-27 00:15:15', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (52, 'vip等级', null, 1, null, null, 0, '67', 'NUMBER', 2, 'NUMBER', '3', 'GE', '2020-08-27 00:15:35', '2020-08-27 00:15:35', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (53, '消费金额', null, 1, null, null, 0, '68', 'NUMBER', 2, 'NUMBER', '30000', 'GE', '2020-08-27 00:17:05', '2020-08-27 00:17:05', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (54, '特殊省份', null, 1, null, null, 2, '北京,河南,上海', 'COLLECTION', 0, 'COLLECTION', '69', 'CONTAIN', '2020-08-27 01:05:05', '2020-08-27 01:05:05', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (55, '文化程度', null, 1, null, null, 2, '博士', 'STRING', 0, 'STRING', '70', 'EQ', '2020-08-27 01:08:04', '2020-08-27 01:08:04', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (56, '特殊市区', null, 1, null, null, 2, '北京市,商丘市', 'COLLECTION', 0, 'STRING', '71', 'CONTAIN', '2020-08-27 01:14:08', '2020-08-27 01:13:05', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (57, '审批人测试', null, 1, null, null, 1, '35', 'COLLECTION', 2, 'NUMBER', '123', 'CONTAIN', '2020-08-27 12:35:57', '2020-08-27 12:35:50', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (58, '测试条件-绝对值', null, 1, null, null, 1, '52', 'NUMBER', 2, 'NUMBER', '123', 'EQ', '2020-08-28 14:48:48', '2020-08-28 14:48:48', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (60, '集合在.测试', null, 1, null, null, 0, '61', 'COLLECTION', 2, 'COLLECTION', '1,2', 'IN', '2020-09-10 18:12:49', '2020-08-28 16:25:44', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (64, '年龄范围条件', null, 1, null, null, 1, '70', 'BOOLEAN', 2, 'BOOLEAN', 'true', 'EQ', '2020-08-30 18:53:37', '2020-08-30 18:53:37', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (65, '年龄大于等于20条件', null, 1, null, null, 0, '66', 'NUMBER', 2, 'NUMBER', '20', 'GE', '2020-08-30 21:25:26', '2020-08-30 21:24:51', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (66, '年龄小于等于26条件', null, 1, null, null, 0, '66', 'NUMBER', 2, 'NUMBER', '26', 'LE', '2020-09-04 20:56:36', '2020-08-30 21:25:18', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (69, '号码开头', null, 1, null, null, 0, '77', 'STRING', 2, 'STRING', '137', 'STARTS_WITH', '2020-09-10 18:08:13', '2020-09-10 18:08:13', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (70, '限制号码长度', null, 1, null, null, 1, '76', 'NUMBER', 2, 'NUMBER', '17', 'LE', '2020-09-10 20:08:15', '2020-09-10 18:11:41', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (71, '排除号码在白名单的', null, 1, null, null, 1, '77', 'COLLECTION', 0, 'STRING', '77', 'CONTAIN', '2020-09-10 23:44:25', '2020-09-10 18:15:27', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (73, '验证是否为手机号码条件', null, 1, null, null, 1, '79', 'BOOLEAN', 2, 'BOOLEAN', 'true', 'EQ', '2020-09-16 14:57:38', '2020-09-16 14:57:38', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (74, 'vip等级大于4以上', null, 1, null, null, 0, '67', 'NUMBER', 2, 'NUMBER', '4', 'GT', '2020-11-13 19:14:00', '2020-11-13 19:14:00', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (75, '消费金额大于3000', null, 1, null, null, 0, '68', 'NUMBER', 2, 'NUMBER', '3000', 'GT', '2020-11-13 19:14:33', '2020-11-13 19:14:33', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (85, '定期存款年限在', null, 1, null, null, 2, '0.5', 'NUMBER', 2, 'NUMBER', '1', 'LE', '2020-12-07 11:25:49', '2020-12-07 11:24:38', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (86, '存款年限在', null, 1, null, null, 2, '10', 'NUMBER', 2, 'NUMBER', '2', 'GE', '2020-12-07 13:43:09', '2020-12-07 11:25:26', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (87, '账户最低存款额度', null, 1, null, null, 0, '95', 'NUMBER', 2, 'NUMBER', '2000', 'GT', '2020-12-07 11:27:15', '2020-12-07 11:27:15', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (88, '存款年限', null, 1, null, null, 2, '1', 'NUMBER', 2, 'NUMBER', '2', 'LE', '2020-12-07 16:11:35', '2020-12-07 16:11:35', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (89, '最低存款额度大于等于2000', null, 1, null, null, 0, '95', 'NUMBER', 2, 'NUMBER', '2000', 'GE', '2020-12-07 16:27:39', '2020-12-07 16:27:39', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (90, '定期存款年限', null, 1, null, null, 0, '98', 'NUMBER', 2, 'NUMBER', '1', 'GE', '2020-12-14 04:57:40', '2020-12-07 16:28:24', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (94, '年收入是否大于20万', null, 1, 1, 'dqw', 0, '105', 'NUMBER', 2, 'NUMBER', '200000', 'GE', '2020-12-16 10:37:08', '2020-12-16 10:36:52', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (95, '年收入是否小于26400', '年收入是否小于26400说明', 1, 2, 'lq', 0, '105', 'NUMBER', 2, 'NUMBER', '26400', 'LT', '2020-12-17 07:35:10', '2020-12-17 07:35:10', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (96, '年收入是否大于10000', '年收入是否大于10000说明', 1, 2, 'lq', 0, '105', 'NUMBER', 2, 'NUMBER', '10000', 'GT', '2020-12-17 07:36:44', '2020-12-17 07:36:44', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (98, '性别是男的', null, 1, 1, 'dqw', 0, '114', 'STRING', 2, 'STRING', '男', 'EQ', '2020-12-25 03:19:47', '2020-12-25 03:19:47', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (99, '年龄小于10岁', null, 1, 1, 'dqw', 0, '66', 'NUMBER', 2, 'NUMBER', '10', 'LT', '2020-12-25 03:20:28', '2020-12-25 03:20:28', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (100, '身高170cm以上', null, 1, 1, 'dqw', 0, '115', 'NUMBER', 2, 'NUMBER', '170', 'GE', '2020-12-25 03:51:48', '2020-12-25 03:22:45', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (101, '年级是三年级以上', null, 1, 1, 'dqw', 0, '116', 'NUMBER', 2, 'NUMBER', '3', 'GT', '2020-12-25 03:55:45', '2020-12-25 03:55:45', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (102, '身体是否健壮', null, 1, 1, 'dqw', 2, '健壮,优秀,良好', 'COLLECTION', 0, 'STRING', '117', 'CONTAIN', '2020-12-28 19:23:00', '2020-12-25 04:00:21', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (103, '专业是否为体育生', null, 1, 1, 'dqw', 2, '体育', 'STRING', 0, 'STRING', '119', 'EQ', '2020-12-29 14:12:12', '2020-12-25 04:05:11', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (104, '年龄在7-11之间条件', null, 1, 1, 'dqw', 1, '118', 'BOOLEAN', 2, 'BOOLEAN', 'true', 'EQ', '2020-12-25 04:08:33', '2020-12-25 04:08:33', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (105, '当压力小于最小值时候进行报警', null, 1, 2, 'lq', 0, '120', 'NUMBER', 1, 'NUMBER', '120', 'LT', '2020-12-28 07:10:47', '2020-12-28 02:48:22', 0); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (107, '123', null, 1, 2, 'lq', 2, 'KeyValue', 'STRING', 2, 'STRING', '4', 'NE', '2020-12-31 08:56:18', '2020-12-31 08:56:18', 1); INSERT INTO boot_engine.rule_engine_condition (id, name, description, workspace_id, create_user_id, create_user_name, left_type, left_value, left_value_type, right_type, right_value_type, right_value, symbol, update_time, create_time, deleted) VALUES (108, '---', null, 1, 2, 'lq', 0, '66', 'NUMBER', 2, 'NUMBER', '10', 'GT', '2021-01-07 02:24:02', '2021-01-07 02:24:02', 0); create table rule_engine_condition_group ( id int auto_increment primary key, name varchar(50) not null, rule_id int null, order_no int not null, create_time timestamp null, update_time timestamp null, deleted tinyint null ) charset = utf8; create index rule_engine_condition_group_rule_id_index on rule_engine_condition_group (rule_id); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1403, '是否为体育生条件组', 121, 1, '2020-12-29 03:10:33', '2020-12-29 03:10:33', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1404, '条件组', 121, 2, '2020-12-29 03:10:33', '2020-12-29 03:10:33', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1413, '条件组', 122, 1, '2020-12-29 13:44:23', '2020-12-29 13:44:23', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1414, '条件组', 122, 2, '2020-12-29 13:44:23', '2020-12-29 13:44:23', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1415, '是否为体育生条件组', 121, 1, '2020-12-29 14:11:20', '2020-12-29 14:11:20', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1416, '条件组', 121, 2, '2020-12-29 14:11:20', '2020-12-29 14:11:20', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1417, '是否为体育生条件组', 121, 1, '2020-12-29 14:11:59', '2020-12-29 14:11:59', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1418, '条件组', 121, 2, '2020-12-29 14:11:59', '2020-12-29 14:11:59', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1419, '是否为体育生条件组', 121, 1, '2020-12-29 16:20:57', '2020-12-29 16:20:57', 0); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1420, '条件组', 121, 2, '2020-12-29 16:20:57', '2020-12-29 16:20:57', 0); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1421, '条件组', 124, 1, '2020-12-30 00:49:54', '2020-12-30 00:49:54', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1422, '条件组', 125, 1, '2020-12-30 01:38:20', '2020-12-30 01:38:20', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1423, '条件组', 125, 2, '2020-12-30 01:38:20', '2020-12-30 01:38:20', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1424, '条件组', 126, 1, '2020-12-30 01:42:08', '2020-12-30 01:42:08', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1425, '条件组', 126, 2, '2020-12-30 01:42:08', '2020-12-30 01:42:08', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1426, '条件组', 128, 1, '2020-12-30 11:51:11', '2020-12-30 11:51:11', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1427, '条件组', 128, 1, '2020-12-30 14:51:16', '2020-12-30 14:51:16', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1428, '条件组', 122, 1, '2021-01-02 19:12:26', '2021-01-02 19:12:26', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1429, '条件组', 122, 2, '2021-01-02 19:12:26', '2021-01-02 19:12:26', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1430, '条件组', 122, 1, '2021-01-03 17:21:35', '2021-01-03 17:21:35', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1431, '条件组', 122, 2, '2021-01-03 17:21:35', '2021-01-03 17:21:35', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1432, '条件组', 122, 1, '2021-01-03 17:28:55', '2021-01-03 17:28:55', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1433, '条件组', 122, 2, '2021-01-03 17:28:56', '2021-01-03 17:28:56', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1434, '条件组', 122, 1, '2021-01-03 17:54:16', '2021-01-03 17:54:16', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1435, '条件组', 122, 2, '2021-01-03 17:54:16', '2021-01-03 17:54:16', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1436, '条件组', 132, 1, '2021-01-05 09:00:34', '2021-01-05 09:00:34', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1437, '条件组', 132, 1, '2021-01-05 09:01:04', '2021-01-05 09:01:04', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1438, '条件组', 132, 1, '2021-01-05 17:16:47', '2021-01-05 17:16:47', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1439, '条件组', 132, 1, '2021-01-05 18:49:02', '2021-01-05 18:49:02', 1); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1440, '条件组', 122, 1, '2021-01-06 04:56:57', '2021-01-06 04:56:57', 0); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1441, '条件组', 122, 2, '2021-01-06 04:56:57', '2021-01-06 04:56:57', 0); INSERT INTO boot_engine.rule_engine_condition_group (id, name, rule_id, order_no, create_time, update_time, deleted) VALUES (1442, '条件组', 137, 1, '2021-01-07 02:25:12', '2021-01-07 02:25:12', 0); create table rule_engine_condition_group_condition ( id int auto_increment primary key, condition_id int not null, condition_group_id int not null, order_no int not null, create_time timestamp null, update_time timestamp null, deleted tinyint null ) charset = utf8; create index rule_engine_condition_group_condition_condition_group_id_index on rule_engine_condition_group_condition (condition_group_id); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2138, 103, 1403, 1, '2020-12-29 03:10:33', '2020-12-29 03:10:33', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2139, 104, 1404, 1, '2020-12-29 03:10:33', '2020-12-29 03:10:33', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2140, 102, 1404, 2, '2020-12-29 03:10:33', '2020-12-29 03:10:33', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2141, 101, 1404, 3, '2020-12-29 03:10:33', '2020-12-29 03:10:33', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2142, 100, 1404, 4, '2020-12-29 03:10:33', '2020-12-29 03:10:33', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2143, 98, 1404, 5, '2020-12-29 03:10:33', '2020-12-29 03:10:33', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2160, 71, 1413, 1, '2020-12-29 13:44:23', '2020-12-29 13:44:23', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2161, 73, 1414, 1, '2020-12-29 13:44:23', '2020-12-29 13:44:23', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2162, 70, 1414, 2, '2020-12-29 13:44:23', '2020-12-29 13:44:23', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2163, 69, 1414, 3, '2020-12-29 13:44:23', '2020-12-29 13:44:23', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2164, 103, 1415, 1, '2020-12-29 14:11:20', '2020-12-29 14:11:20', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2165, 104, 1416, 1, '2020-12-29 14:11:20', '2020-12-29 14:11:20', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2166, 102, 1416, 2, '2020-12-29 14:11:20', '2020-12-29 14:11:20', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2167, 101, 1416, 3, '2020-12-29 14:11:20', '2020-12-29 14:11:20', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2168, 100, 1416, 4, '2020-12-29 14:11:20', '2020-12-29 14:11:20', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2169, 98, 1416, 5, '2020-12-29 14:11:20', '2020-12-29 14:11:20', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2170, 103, 1417, 1, '2020-12-29 14:11:59', '2020-12-29 14:11:59', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2171, 104, 1418, 1, '2020-12-29 14:11:59', '2020-12-29 14:11:59', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2172, 102, 1418, 2, '2020-12-29 14:11:59', '2020-12-29 14:11:59', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2173, 101, 1418, 3, '2020-12-29 14:11:59', '2020-12-29 14:11:59', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2174, 100, 1418, 4, '2020-12-29 14:11:59', '2020-12-29 14:11:59', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2175, 98, 1418, 5, '2020-12-29 14:11:59', '2020-12-29 14:11:59', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2176, 103, 1419, 1, '2020-12-29 16:20:57', '2020-12-29 16:20:57', 0); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2177, 104, 1420, 1, '2020-12-29 16:20:57', '2020-12-29 16:20:57', 0); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2178, 102, 1420, 2, '2020-12-29 16:20:57', '2020-12-29 16:20:57', 0); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2179, 101, 1420, 3, '2020-12-29 16:20:57', '2020-12-29 16:20:57', 0); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2180, 100, 1420, 4, '2020-12-29 16:20:57', '2020-12-29 16:20:57', 0); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2181, 98, 1420, 5, '2020-12-29 16:20:57', '2020-12-29 16:20:57', 0); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2182, 103, 1421, 1, '2020-12-30 00:49:54', '2020-12-30 00:49:54', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2183, 104, 1421, 2, '2020-12-30 00:49:54', '2020-12-30 00:49:54', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2184, 98, 1421, 3, '2020-12-30 00:49:54', '2020-12-30 00:49:54', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2185, 103, 1422, 1, '2020-12-30 01:38:20', '2020-12-30 01:38:20', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2186, 104, 1423, 1, '2020-12-30 01:38:20', '2020-12-30 01:38:20', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2187, 99, 1424, 1, '2020-12-30 01:42:08', '2020-12-30 01:42:08', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2188, 65, 1425, 1, '2020-12-30 01:42:08', '2020-12-30 01:42:08', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2189, 57, 1426, 1, '2020-12-30 11:51:11', '2020-12-30 11:51:11', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2190, 57, 1427, 1, '2020-12-30 14:51:16', '2020-12-30 14:51:16', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2191, 71, 1428, 1, '2021-01-02 19:12:26', '2021-01-02 19:12:26', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2192, 73, 1429, 1, '2021-01-02 19:12:26', '2021-01-02 19:12:26', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2193, 70, 1429, 2, '2021-01-02 19:12:26', '2021-01-02 19:12:26', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2194, 69, 1429, 3, '2021-01-02 19:12:26', '2021-01-02 19:12:26', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2195, 71, 1430, 1, '2021-01-03 17:21:35', '2021-01-03 17:21:35', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2196, 73, 1431, 1, '2021-01-03 17:21:35', '2021-01-03 17:21:35', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2197, 70, 1431, 2, '2021-01-03 17:21:35', '2021-01-03 17:21:35', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2198, 69, 1431, 3, '2021-01-03 17:21:35', '2021-01-03 17:21:35', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2199, 71, 1432, 1, '2021-01-03 17:28:56', '2021-01-03 17:28:56', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2200, 73, 1433, 1, '2021-01-03 17:28:56', '2021-01-03 17:28:56', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2201, 70, 1433, 2, '2021-01-03 17:28:56', '2021-01-03 17:28:56', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2202, 69, 1433, 3, '2021-01-03 17:28:56', '2021-01-03 17:28:56', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2203, 71, 1434, 1, '2021-01-03 17:54:16', '2021-01-03 17:54:16', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2204, 73, 1435, 1, '2021-01-03 17:54:16', '2021-01-03 17:54:16', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2205, 70, 1435, 2, '2021-01-03 17:54:16', '2021-01-03 17:54:16', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2206, 69, 1435, 3, '2021-01-03 17:54:16', '2021-01-03 17:54:16', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2207, 104, 1436, 1, '2021-01-05 09:00:35', '2021-01-05 09:00:35', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2208, 73, 1436, 2, '2021-01-05 09:00:35', '2021-01-05 09:00:35', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2209, 104, 1437, 1, '2021-01-05 09:01:04', '2021-01-05 09:01:04', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2210, 73, 1437, 2, '2021-01-05 09:01:04', '2021-01-05 09:01:04', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2211, 104, 1438, 1, '2021-01-05 17:16:47', '2021-01-05 17:16:47', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2212, 73, 1438, 2, '2021-01-05 17:16:47', '2021-01-05 17:16:47', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2213, 104, 1439, 1, '2021-01-05 18:49:02', '2021-01-05 18:49:02', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2214, 73, 1439, 2, '2021-01-05 18:49:02', '2021-01-05 18:49:02', 1); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2215, 71, 1440, 1, '2021-01-06 04:56:57', '2021-01-06 04:56:57', 0); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2216, 73, 1441, 1, '2021-01-06 04:56:57', '2021-01-06 04:56:57', 0); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2217, 70, 1441, 2, '2021-01-06 04:56:57', '2021-01-06 04:56:57', 0); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2218, 69, 1441, 3, '2021-01-06 04:56:57', '2021-01-06 04:56:57', 0); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2219, 108, 1442, 1, '2021-01-07 02:25:12', '2021-01-07 02:25:12', 0); INSERT INTO boot_engine.rule_engine_condition_group_condition (id, condition_id, condition_group_id, order_no, create_time, update_time, deleted) VALUES (2220, 108, 1442, 2, '2021-01-07 02:25:12', '2021-01-07 02:25:12', 0); create table rule_engine_decision_table ( id int auto_increment primary key, name varchar(50) not null, code varchar(50) not null, description varchar(500) null, workspace_id int null, workspace_code varchar(20) null, table_data json null, strategy_type tinyint null, create_user_id int null, create_user_name varchar(100) null, status tinyint null, abnormal_alarm json null, create_time timestamp null, update_time timestamp null, deleted tinyint null ) charset = utf8; create index rule_engine_rule_code_workspace_id_index on rule_engine_decision_table (workspace_id); INSERT INTO boot_engine.rule_engine_decision_table (id, name, code, description, workspace_id, workspace_code, table_data, strategy_type, create_user_id, create_user_name, status, abnormal_alarm, create_time, update_time, deleted) VALUES (5, '1229test', 'test1229', null, 2, 'test', null, null, 2, 'lq', 0, null, '2020-12-29 01:52:27', '2020-12-29 01:52:27', 1); INSERT INTO boot_engine.rule_engine_decision_table (id, name, code, description, workspace_id, workspace_code, table_data, strategy_type, create_user_id, create_user_name, status, abnormal_alarm, create_time, update_time, deleted) VALUES (11, 'test', 'test', null, 1, 'default', '{"rows": [{"id": 1, "result": {"type": 5, "value": "张三", "visible": false, "valueType": "STRING"}, "priority": 10, "conditions": [{"type": 7, "value": 12, "visible": false, "valueType": "NUMBER"}, {"type": 5, "value": "男", "visible": false, "valueType": "STRING"}, {"type": 5, "value": "女", "visible": false, "valueType": "STRING"}]}, {"id": 1, "result": {"visible": false}, "priority": 1, "conditions": [{"type": 7, "value": 12, "visible": false, "valueType": "NUMBER"}, {"visible": false}, {"visible": false}]}, {"id": 2, "result": {"type": 5, "value": "李四", "visible": false, "valueType": "STRING"}, "priority": 1, "conditions": [{"type": 7, "value": 21, "visible": false, "valueType": "NUMBER"}, {"type": 5, "value": "男", "visible": false, "valueType": "STRING"}, {"visible": false}]}, {"id": 1, "result": {"visible": false}, "priority": 1, "conditions": [{"visible": false}, {"visible": false}, {"visible": false}]}, {"id": 1, "result": {"visible": false}, "priority": 1, "conditions": [{"visible": false}, {"visible": false}, {"visible": false}]}, {"id": 1, "result": {"visible": false}, "priority": 1, "conditions": [{"visible": false}, {"visible": false}, {"visible": false}]}, {"id": 1, "result": {"visible": false}, "priority": 1, "conditions": [{"visible": false}, {"visible": false}, {"visible": false}]}, {"id": 1, "result": {"visible": false}, "priority": 1, "conditions": [{"visible": false}, {"visible": false}, {"visible": false}]}, {"id": 1, "result": {"visible": false}, "priority": 1, "conditions": [{"visible": false}, {"visible": false}, {"visible": false}]}, {"id": 1, "result": {"visible": false}, "priority": 1, "conditions": [{"visible": false}, {"visible": false}, {"visible": false}]}, {"id": 1, "result": {"visible": false}, "priority": 1, "conditions": [{"visible": false}, {"visible": false}, {"visible": false}]}], "collResultHead": {"type": 5, "valueType": "STRING", "defaultAction": {"visible": false}}, "collConditionHeads": [{"name": "年龄大于等于20的人", "uuid": "1", "symbol": "GE", "visible": false, "leftValue": {"type": 7, "value": 20, "valueType": "NUMBER"}}, {"name": "性别为男的", "uuid": "2", "symbol": "EQ", "visible": false, "leftValue": {"type": 5, "value": "男", "valueType": "STRING"}}, {"name": "性别为男的", "uuid": "2", "symbol": "EQ", "visible": false, "leftValue": {"type": 5, "value": "男", "valueType": "STRING"}}]}', null, 2, 'lq', 0, '{"enable": false, "timeOutThreshold": 3000}', '2020-12-29 16:17:52', '2020-12-31 19:53:15', 1); INSERT INTO boot_engine.rule_engine_decision_table (id, name, code, description, workspace_id, workspace_code, table_data, strategy_type, create_user_id, create_user_name, status, abnormal_alarm, create_time, update_time, deleted) VALUES (14, '444', 'a_4777', '55555', 1, 'default', null, null, 2, 'lq', 0, null, '2020-12-31 09:12:54', '2020-12-31 09:12:54', 1); INSERT INTO boot_engine.rule_engine_decision_table (id, name, code, description, workspace_id, workspace_code, table_data, strategy_type, create_user_id, create_user_name, status, abnormal_alarm, create_time, update_time, deleted) VALUES (15, '123', 'afd', null, 1, 'default', null, null, 1, 'dqw', 0, null, '2020-12-31 20:20:18', '2020-12-31 20:20:18', 1); INSERT INTO boot_engine.rule_engine_decision_table (id, name, code, description, workspace_id, workspace_code, table_data, strategy_type, create_user_id, create_user_name, status, abnormal_alarm, create_time, update_time, deleted) VALUES (16, 'sa''d''f', 'sadf', null, 1, 'default', '{"rows": [], "collResultHead": {}, "collPriorityHead": {}, "collConditionHeads": []}', null, 1, 'dqw', 0, null, '2021-01-01 04:57:55', '2021-01-01 04:57:55', 1); INSERT INTO boot_engine.rule_engine_decision_table (id, name, code, description, workspace_id, workspace_code, table_data, strategy_type, create_user_id, create_user_name, status, abnormal_alarm, create_time, update_time, deleted) VALUES (17, 'sadf', 'sadf', null, 1, 'default', '{"rows": [{"result": {}, "priority": 1, "conditions": [{}]}], "collResultHead": {}, "collConditionHeads": [{}]}', null, 1, 'dqw', 0, null, '2021-01-01 05:02:59', '2021-01-01 05:02:59', 1); INSERT INTO boot_engine.rule_engine_decision_table (id, name, code, description, workspace_id, workspace_code, table_data, strategy_type, create_user_id, create_user_name, status, abnormal_alarm, create_time, update_time, deleted) VALUES (18, 'asdf', 'sadf', null, 1, 'default', '{"rows": [{"result": {"visible": false, "valueType": "BOOLEAN"}, "priority": 1, "conditions": [{"type": 7, "value": 36, "visible": false, "valueType": "NUMBER"}, {"visible": false}, {"type": 7, "value": 3600, "visible": false, "valueType": "NUMBER"}]}, {"result": {"type": 6, "value": "true", "visible": false, "valueType": "BOOLEAN"}, "priority": 1, "conditions": [{"type": 7, "value": 53, "visible": false, "valueType": "NUMBER"}, {"visible": false}, {"type": 7, "value": 12000, "visible": false, "valueType": "NUMBER"}]}, {"result": {"type": 1, "value": "112", "visible": false, "valueName": "布尔值", "valueType": "BOOLEAN"}, "priority": 1, "conditions": [{"type": 7, "value": 30, "visible": false, "valueType": "NUMBER"}, {"visible": false}, {"type": 7, "value": 5100, "visible": false, "valueType": "NUMBER"}]}, {"result": {"type": 1, "value": "124", "visible": false, "valueName": "发送**邮件", "valueType": "BOOLEAN"}, "priority": 10, "conditions": [{"type": 7, "value": 36, "visible": false, "valueType": "NUMBER"}, {"type": 7, "value": 21000, "visible": false, "valueType": "NUMBER"}, {"visible": false}]}, {"result": {"type": 1, "value": "124", "visible": false, "valueName": "发送**邮件", "valueType": "BOOLEAN"}, "priority": 10, "conditions": [{"visible": false}, {"type": 7, "value": 3000, "visible": false, "valueType": "NUMBER"}, {"visible": false}]}, {"id": 1, "result": {"type": 1, "value": "124", "visible": false, "valueName": "发送**邮件", "valueType": "BOOLEAN"}, "priority": 2, "conditions": [{"type": 1, "visible": false}, {"visible": false}, {"type": 7, "value": 3265, "visible": false, "valueType": "NUMBER"}]}, {"id": 1, "result": {"type": 1, "value": "124", "visible": false, "valueName": "发送**邮件", "valueType": "BOOLEAN"}, "priority": 10, "conditions": [{"visible": false}, {"type": 7, "value": 26000, "visible": false, "valueType": "NUMBER"}, {"visible": false}]}, {"id": 1, "result": {"type": 1, "value": "124", "visible": false, "valueName": "发送**邮件", "valueType": "BOOLEAN"}, "priority": 1, "conditions": [{"type": 7, "value": 36, "visible": false, "valueType": "NUMBER"}, {"visible": false}, {"type": 7, "value": 6930, "visible": false, "valueType": "NUMBER"}]}, {"id": 1, "result": {"type": 1, "value": "124", "visible": false, "valueName": "发送**邮件", "valueType": "BOOLEAN"}, "priority": 1, "conditions": [{"type": 7, "value": 51, "visible": false, "valueType": "NUMBER"}, {"visible": false}, {"type": 7, "value": 6300, "visible": false, "valueType": "NUMBER"}]}], "collResultHead": {"type": 6, "valueType": "BOOLEAN", "defaultAction": {"visible": false, "valueType": "BOOLEAN"}}, "collConditionHeads": [{"name": "年龄小于40岁", "symbol": "LT", "visible": false, "leftValue": {"type": 7, "value": 40, "valueType": "NUMBER"}}, {"name": "月薪大于20000", "symbol": "GT", "visible": false, "leftValue": {"type": 7, "value": 20000, "valueType": "NUMBER"}}, {"name": "月薪大于5000", "symbol": "GT", "visible": false, "leftValue": {"type": 7, "value": 5000, "valueType": "NUMBER"}}]}', null, 1, 'dqw', 0, '{"enable": false, "timeOutThreshold": 3000}', '2021-01-01 05:07:36', '2021-01-03 10:06:12', 1); INSERT INTO boot_engine.rule_engine_decision_table (id, name, code, description, workspace_id, workspace_code, table_data, strategy_type, create_user_id, create_user_name, status, abnormal_alarm, create_time, update_time, deleted) VALUES (19, 'test', 'asdf', null, 1, 'default', '{"rows": [{"result": {"type": 2, "value": "00", "visible": false, "tempType": 8, "valueType": "COLLECTION"}, "priority": 2, "conditions": [{"type": 2, "value": "true", "visible": false, "tempType": 6, "valueType": "BOOLEAN"}, {"type": 2, "value": "123", "visible": false, "tempType": 5, "valueType": "STRING"}]}, {"result": {"type": 2, "value": "1,2", "visible": false, "tempType": 8, "valueType": "COLLECTION"}, "priority": 1, "conditions": [{"type": 2, "value": "true", "visible": false, "tempType": 6, "valueType": "BOOLEAN"}, {"type": 2, "value": "123", "visible": false, "tempType": 5, "valueType": "STRING"}]}, {"result": {"type": 2, "value": "0", "visible": false, "tempType": 8, "valueType": "COLLECTION"}, "priority": 1, "conditions": [{"type": 2, "value": "true", "visible": false, "tempType": 6, "valueType": "BOOLEAN"}, {"type": 2, "value": "0", "visible": false, "tempType": 5, "valueType": "STRING"}]}], "collResultHead": {"type": 2, "tempType": 8, "valueType": "COLLECTION", "defaultAction": {"type": 2, "value": "默认值", "visible": false, "tempType": 8, "valueType": "COLLECTION", "enableDefaultAction": 0}}, "collConditionHeads": [{"name": "条件", "symbol": "EQ", "visible": false, "leftValue": {"type": 0, "value": "122", "visible": false, "tempType": 0, "valueName": "布尔元素", "valueType": "BOOLEAN"}}, {"name": "条件", "symbol": "EQ", "visible": false, "leftValue": {"type": 2, "value": "123", "visible": false, "tempType": 5, "valueType": "STRING"}}]}', 1, 1, 'dqw', 1, '{"enable": false, "timeOutThreshold": 3000}', '2021-01-02 18:38:25', '2021-01-06 04:49:30', 0); INSERT INTO boot_engine.rule_engine_decision_table (id, name, code, description, workspace_id, workspace_code, table_data, strategy_type, create_user_id, create_user_name, status, abnormal_alarm, create_time, update_time, deleted) VALUES (20, 'test', 'test', null, 1, 'default', '{"rows": [{"result": {"type": 2, "value": "11", "visible": false, "tempType": 5, "valueType": "STRING"}, "priority": 1, "conditions": [{"type": 2, "value": "1", "visible": false, "tempType": 5, "valueType": "STRING"}]}, {"result": {"type": 2, "value": "22", "visible": false, "tempType": 5, "valueType": "STRING"}, "priority": 1, "conditions": [{"type": 2, "value": "2", "visible": false, "tempType": 5, "valueType": "STRING"}]}], "collResultHead": {"type": 2, "tempType": 5, "valueType": "STRING", "defaultAction": {"visible": false}}, "collConditionHeads": [{"name": "条件", "symbol": "EQ", "visible": false, "leftValue": {"type": 0, "value": "60", "visible": false, "tempType": 0, "valueName": "字符串元素", "valueType": "STRING"}}]}', 1, 1, 'dqw', 1, '{"enable": false, "timeOutThreshold": 3000}', '2021-01-05 17:07:34', '2021-01-05 17:28:03', 0); INSERT INTO boot_engine.rule_engine_decision_table (id, name, code, description, workspace_id, workspace_code, table_data, strategy_type, create_user_id, create_user_name, status, abnormal_alarm, create_time, update_time, deleted) VALUES (21, 'tye', 'te', null, 1, 'default', '{"rows": [{"result": {"type": 2, "value": "123", "visible": false, "tempType": 5, "valueType": "STRING"}, "priority": 1, "conditions": [{"visible": false}]}], "collResultHead": {"type": 2, "tempType": 5, "valueType": "STRING", "defaultAction": {"visible": false}}, "collConditionHeads": [{"name": "条件", "symbol": "EQ", "visible": false, "leftValue": {"type": 2, "value": "123", "visible": false, "tempType": 5, "valueType": "STRING"}}]}', 1, 1, 'dqw', 1, '{"enable": false, "timeOutThreshold": 3000}', '2021-01-05 18:41:42', '2021-01-05 18:49:47', 1); INSERT INTO boot_engine.rule_engine_decision_table (id, name, code, description, workspace_id, workspace_code, table_data, strategy_type, create_user_id, create_user_name, status, abnormal_alarm, create_time, update_time, deleted) VALUES (22, 'tes', 'asdff', null, 1, 'default', '{"rows": [{"result": {"type": 2, "value": "123", "visible": false, "tempType": 5, "valueType": "STRING"}, "priority": 1, "conditions": [{"type": 2, "value": "123", "visible": false, "tempType": 5, "valueType": "STRING"}]}, {"result": {"type": 2, "value": "111", "visible": false, "tempType": 5, "valueType": "STRING"}, "priority": 1, "conditions": [{"type": 2, "value": "1", "visible": false, "tempType": 5, "valueType": "STRING"}]}], "collResultHead": {"type": 2, "tempType": 5, "valueType": "STRING", "defaultAction": {"type": 2, "visible": false, "valueType": "STRING"}}, "collConditionHeads": [{"name": "条件", "symbol": "EQ", "visible": false, "leftValue": {"type": 2, "value": "123", "visible": false, "tempType": 5, "valueType": "STRING"}}]}', 1, 1, 'dqw', 1, '{"enable": false, "timeOutThreshold": 3000}', '2021-01-05 18:54:38', '2021-01-06 05:34:16', 0); INSERT INTO boot_engine.rule_engine_decision_table (id, name, code, description, workspace_id, workspace_code, table_data, strategy_type, create_user_id, create_user_name, status, abnormal_alarm, create_time, update_time, deleted) VALUES (23, '1', 'a1', null, 1, 'default', '{"rows": [{"result": {"type": 2, "value": "5", "visible": false, "tempType": 7, "valueType": "NUMBER"}, "priority": 1, "conditions": [{"type": 2, "value": "10", "visible": false, "tempType": 7, "valueType": "NUMBER"}]}], "collResultHead": {"type": 2, "tempType": 7, "valueType": "NUMBER", "defaultAction": {"type": 2, "value": "1", "visible": false, "tempType": 7, "valueType": "NUMBER", "enableDefaultAction": 0}}, "collConditionHeads": [{"name": "条件", "symbol": "GT", "visible": false, "leftValue": {"type": 0, "value": "66", "visible": false, "tempType": 0, "valueName": "年龄", "valueType": "NUMBER"}}]}', 2, 2, 'lq', 1, '{"enable": false, "timeOutThreshold": 3000}', '2021-01-07 02:26:04', '2021-01-07 04:18:20', 0); create table rule_engine_decision_table_publish ( id int auto_increment primary key, decision_table_id int not null, decision_table_code varchar(50) null, workspace_id int null, workspace_code varchar(20) null, data json null, status tinyint null, create_time timestamp null, update_time timestamp null, deleted tinyint null ) charset = utf8; INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (199, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "sdaf", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["12"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-03 17:18:40', '2021-01-03 17:18:40', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (200, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "sdaf", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["12"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-03 17:18:44', '2021-01-03 17:18:44', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (201, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "sdaf", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["12"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-03 17:18:47', '2021-01-03 17:18:47', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (202, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "sdaf", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["12"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-03 17:19:00', '2021-01-03 17:19:00', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (203, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "sdaf", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["12"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-03 17:19:07', '2021-01-03 17:19:07', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (205, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "sdaf", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["12"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-03 17:30:05', '2021-01-03 17:30:05', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (206, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "sdaf", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["12"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-03 17:30:11', '2021-01-03 17:30:11', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (207, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "sdaf", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["12"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-03 17:30:15', '2021-01-03 17:30:15', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (208, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "sdaf", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["12"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-03 17:45:46', '2021-01-03 17:45:46', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (209, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "sdaf", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 112}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["12"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-03 17:46:25', '2021-01-03 17:46:25', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (210, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "sdaf", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["12"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-03 17:47:43', '2021-01-03 17:47:43', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (211, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "sdaf", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["12"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-03 17:47:57', '2021-01-03 17:47:57', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (212, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "sdaf", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["12"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-03 17:56:07', '2021-01-03 17:56:07', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (213, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["12"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-03 17:56:40', '2021-01-03 17:56:40', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (214, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["12"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-03 18:17:44', '2021-01-03 18:17:44', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (215, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["12"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-05 04:41:51', '2021-01-05 04:41:51', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (216, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["11"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1122"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-05 04:42:11', '2021-01-05 04:42:11', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (217, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["00"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["11220"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-05 04:42:46', '2021-01-05 04:42:46', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (218, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["00"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["11220"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-05 04:42:53', '2021-01-05 04:42:53', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (219, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["00"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["11220"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-05 09:13:22', '2021-01-05 09:13:22', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (220, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["00"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["11220"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-05 11:51:16', '2021-01-05 11:51:16', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (221, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["00"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["11220"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-05 11:52:09', '2021-01-05 11:52:09', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (222, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["00"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["11220"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-05 11:52:17', '2021-01-05 11:52:17', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (223, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["00"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "HIGHEST_PRIORITY_ALL"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["11220"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-05 11:53:03', '2021-01-05 11:53:03', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (224, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["00"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "HIGHEST_PRIORITY_ALL"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["11220"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-05 11:54:54', '2021-01-05 11:54:54', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (225, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["00"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["11220"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-05 15:29:05', '2021-01-05 15:29:05', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (226, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["00"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["11220"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-05 15:53:41', '2021-01-05 15:53:41', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (227, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["00"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["11220"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-05 16:01:40', '2021-01-05 16:01:40', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (228, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["00"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["11220"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-05 16:19:27', '2021-01-05 16:19:27', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (229, 20, 'test', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 20, "code": "test", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 60, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "ele-string"}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "1", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": "11", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "2", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": "22", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "priority": 1}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": null}}', 1, '2021-01-05 17:12:24', '2021-01-05 17:12:24', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (230, 20, 'test', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 20, "code": "test", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 60, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "ele-string"}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "1", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": "11", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "2", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": "22", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "priority": 1}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": null}}', 1, '2021-01-05 17:28:04', '2021-01-05 17:28:04', 0); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (231, 21, 'te', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 21, "code": "te", "name": "tye", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": null}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "priority": 1}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": null}}', 1, '2021-01-05 18:49:47', '2021-01-05 18:49:47', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (232, 22, 'asdff', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 22, "code": "asdff", "name": "tes", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "1", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": "111", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "priority": 1}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": null}}', 1, '2021-01-05 18:55:32', '2021-01-05 18:55:32', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (233, 22, 'asdff', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 22, "code": "asdff", "name": "tes", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "1", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": "111", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "priority": 1}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": null}}', 1, '2021-01-05 19:19:29', '2021-01-05 19:19:29', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (234, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["00"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": null}}', 1, '2021-01-06 04:48:46', '2021-01-06 04:48:46', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (235, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["00"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["默认值"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-06 04:49:11', '2021-01-06 04:49:11', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (236, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["00"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["默认值"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-06 04:49:21', '2021-01-06 04:49:21', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (237, 19, 'asdf', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 19, "code": "asdf", "name": "test", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 122, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "elementCode": "boolean"}}}}, {"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["1", "2"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "0", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 2, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["0"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 1}}]}, "2": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["00"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "priority": 2}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["默认值"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}}}', 1, '2021-01-06 04:49:30', '2021-01-06 04:49:30', 0); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (238, 22, 'asdff', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 22, "code": "asdff", "name": "tes", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "1", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": "111", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "priority": 1}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": null}}', 1, '2021-01-06 04:59:50', '2021-01-06 04:59:50', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (239, 22, 'asdff', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 22, "code": "asdff", "name": "tes", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "1", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": "111", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "priority": 1}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": null}}', 1, '2021-01-06 05:25:54', '2021-01-06 05:25:54', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (240, 22, 'asdff', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 22, "code": "asdff", "name": "tes", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "priority": 1}}, {"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": "1", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}, "order": 1, "action": {"cn.ruleengine.core.value.Constant": {"value": "111", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "priority": 1}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "ALL_PRIORITY"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": null}}', 1, '2021-01-06 05:34:16', '2021-01-06 05:34:16', 0); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (241, 23, 'a1', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 23, "code": "a1", "name": "1", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "GT"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 66, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "elementCode": "age"}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 10}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 5}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}, "priority": 1}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "HIGHEST_PRIORITY_SINGLE"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 1}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}', 1, '2021-01-07 02:28:43', '2021-01-07 02:28:43', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (242, 23, 'a1', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 23, "code": "a1", "name": "1", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "GT"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 66, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "elementCode": "age"}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 10}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 5}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}, "priority": 1}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "HIGHEST_PRIORITY_SINGLE"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 1}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}', 1, '2021-01-07 02:29:13', '2021-01-07 02:29:13', 1); INSERT INTO boot_engine.rule_engine_decision_table_publish (id, decision_table_id, decision_table_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (243, 23, 'a1', 1, 'default', '{"cn.ruleengine.core.decisiontable.DecisionTable": {"id": 23, "code": "a1", "name": "1", "collHeads": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.CollHead": {"name": "条件", "operator": {"cn.ruleengine.core.condition.Operator": "GT"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 66, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "elementCode": "age"}}}}]}, "description": null, "workspaceId": 1, "decisionTree": {"java.util.TreeMap": {"1": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Row": {"colls": {"java.util.ArrayList": [{"cn.ruleengine.core.decisiontable.Coll": {"rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 10}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}]}, "order": 0, "action": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 5}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}, "priority": 1}}]}}}, "strategyType": {"cn.ruleengine.core.decisiontable.DecisionTableStrategyType": "HIGHEST_PRIORITY_SINGLE"}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": null, "enable": false, "timeOutThreshold": 3000}}, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 1}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}', 1, '2021-01-07 04:18:20', '2021-01-07 04:18:20', 0); create table rule_engine_element ( id int auto_increment primary key, name varchar(50) not null, code varchar(50) not null, workspace_id int null, create_user_id int null, create_user_name varchar(50) null, value_type varchar(20) null, description varchar(500) null, create_time timestamp null, update_time timestamp null, deleted tinyint null ) charset = utf8; create index rule_engine_element_name_code_index on rule_engine_element (name, code); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (60, '字符串元素', 'ele-string', 1, null, null, 'STRING', null, '2020-08-20 02:05:43', '2020-08-20 02:05:43', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (61, '集合元素', 'ele-collection', 1, null, null, 'COLLECTION', null, '2020-08-20 02:05:43', '2020-08-20 02:05:43', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (66, '年龄', 'age', 1, null, null, 'NUMBER', null, '2020-08-27 00:14:03', '2020-08-27 00:14:03', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (67, 'vip等级', 'vipLevel', 1, null, null, 'NUMBER', null, '2020-08-27 00:14:34', '2020-08-27 00:14:34', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (68, '消费金额', 'AmountOfConsumption', 1, null, null, 'NUMBER', null, '2020-08-27 00:16:35', '2020-08-27 00:16:35', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (69, '家庭地址(省份)', 'HomeAddressProvince', 1, null, null, 'STRING', null, '2020-08-27 01:01:40', '2020-08-27 01:05:12', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (70, '学历', 'education', 1, null, null, 'STRING', null, '2020-08-27 01:07:30', '2020-08-27 01:07:30', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (71, '家庭地址(市区)', 'HomeAddressCityArea', 1, null, null, 'STRING', null, '2020-08-27 01:13:40', '2020-08-27 01:17:20', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (72, '数值', 'number', 1, null, null, 'NUMBER', null, '2020-08-28 14:47:06', '2020-08-28 14:47:06', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (73, '邮件内容', 'youjianneirong', 1, null, null, 'STRING', null, '2020-08-29 01:33:44', '2020-08-29 01:33:44', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (74, '邮件标题', 'youjianbiaoti', 1, null, null, 'STRING', '123', '2020-08-29 01:34:12', '2020-08-30 11:46:01', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (76, '身份证', 'identityCard', 1, null, null, 'STRING', null, '2020-09-02 13:36:00', '2020-09-02 13:36:00', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (77, '号码', 'phone', 1, null, null, 'STRING', null, '2020-09-10 18:07:45', '2020-09-10 18:07:45', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (81, '注册时间(时间戳)', 'registrationTime', 1, null, null, 'NUMBER', null, '2020-11-13 19:04:31', '2020-11-13 19:04:31', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (82, '邮件收件人1', 'mailRecipient', 1, null, null, 'COLLECTION', null, '2020-11-13 19:23:02', '2020-12-21 10:00:14', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (94, '定期存款期限', 'fixedDeposit', 1, null, null, 'NUMBER', null, '2020-12-07 11:20:26', '2020-12-07 11:20:26', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (95, '账户最低存款额度', 'lowestLimit', 1, null, null, 'NUMBER', null, '2020-12-07 11:21:39', '2020-12-07 11:21:39', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (96, '每笔存款送多少', 'send', 1, null, null, 'NUMBER', null, '2020-12-07 11:21:56', '2020-12-07 11:21:56', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (97, '存款', 'asdsadsa', 1, null, null, 'NUMBER', null, '2020-12-07 16:10:14', '2020-12-07 16:10:14', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (98, '定期存款年限', 'fixedMoney', 1, null, null, 'NUMBER', null, '2020-12-07 16:26:04', '2020-12-13 06:47:28', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (105, '年收入', 'annualIncome', 1, 1, 'dqw', 'NUMBER', null, '2020-12-16 10:34:01', '2020-12-16 10:34:01', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (114, '性别', 'sex', 1, 1, 'dqw', 'STRING', null, '2020-12-25 03:18:20', '2020-12-25 03:18:20', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (115, '身高', 'height', 1, 1, 'dqw', 'NUMBER', null, '2020-12-25 03:22:13', '2020-12-25 03:22:13', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (116, '年级', 'grade', 1, 1, 'dqw', 'NUMBER', null, '2020-12-25 03:55:16', '2020-12-25 03:55:16', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (117, '健康状况', 'healthStatus', 1, 1, 'dqw', 'STRING', null, '2020-12-25 03:58:24', '2020-12-25 03:58:24', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (118, '班级', 'class', 1, 1, 'dqw', 'STRING', null, '2020-12-25 04:02:10', '2020-12-25 04:02:10', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (119, '专业', 'major', 1, 1, 'dqw', 'STRING', null, '2020-12-25 04:04:07', '2020-12-25 04:04:07', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (120, '压力', 'carPress', 1, 2, 'lq', 'NUMBER', 'a', '2020-12-28 02:43:55', '2020-12-29 15:44:55', 0); INSERT INTO boot_engine.rule_engine_element (id, name, code, workspace_id, create_user_id, create_user_name, value_type, description, create_time, update_time, deleted) VALUES (122, '布尔元素', 'boolean', 1, 1, 'dqw', 'BOOLEAN', null, '2021-01-03 17:47:22', '2021-01-03 17:47:22', 0); create table rule_engine_function ( id int auto_increment primary key, name varchar(50) null, description varchar(500) null, executor varchar(50) not null, return_value_type varchar(50) null, create_time timestamp default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP, update_time timestamp null, deleted tinyint null ) charset = utf8; INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (1, '是否为邮箱', '是否为邮箱函数', 'isEmailFunction', 'BOOLEAN', '2020-09-11 20:26:14', '2020-07-16 13:00:43', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (2, '是否为空集合', '是否为空集合函数', 'isEmptyCollectionFunction', 'BOOLEAN', '2020-09-11 20:26:14', '2020-07-19 18:54:10', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (3, '发送邮件', '发送邮件函数', 'sendEmailFunction', 'BOOLEAN', '2020-09-11 20:26:14', '2020-08-18 17:06:45', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (4, '求集合大小', null, 'collectionSizeFunction', 'NUMBER', '2020-09-11 20:26:14', '2020-08-28 14:39:39', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (6, '是否为空字符串', '', 'isEmptyFunction', 'BOOLEAN', '2020-11-15 00:28:25', '2020-08-28 14:43:52', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (7, '求绝对值', null, 'mathAbsFunction', 'NUMBER', '2020-09-11 20:26:14', '2020-08-28 14:45:04', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (8, '返回集合中第几个元素', '不存在则返回null', 'getCollectionElementsFunction', 'STRING', '2020-09-11 20:26:14', '2020-08-30 02:05:37', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (9, '在..之间', '', 'isBetweenFunction', 'BOOLEAN', '2020-09-11 20:26:14', '2020-08-30 02:16:51', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (10, '求平均值', '集合中必须为number类型的值', 'avgFunction', 'NUMBER', '2020-09-11 20:26:14', '2020-09-01 13:41:44', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (11, '集合中最大值', '集合中必须为number类型的值', 'collectionMaxFunction', 'NUMBER', '2020-09-11 20:26:14', '2020-09-01 13:48:32', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (12, '集合中最小值', '集合中必须为number类型的值', 'collectionMinFunction', 'NUMBER', '2020-09-11 20:26:14', '2020-09-01 13:49:12', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (13, '字符串的长度', '', 'stringLengthFunction', 'NUMBER', '2020-09-11 20:26:14', '2020-09-01 13:50:13', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (14, '字符串去除前后空格', null, 'stringTrimFunction', 'STRING', '2020-09-11 20:26:14', '2020-09-01 13:51:14', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (15, '求和', '集合中必须为number类型的值', 'sumFunction', 'NUMBER', '2020-09-11 20:26:14', '2020-09-01 13:52:08', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (16, '验证是否为手机号码', null, 'isMobileFunction', 'BOOLEAN', '2020-09-11 20:26:14', '2020-09-01 13:53:17', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (17, '是否为身份证', null, 'isCitizenIdFunction', 'BOOLEAN', '2020-09-11 20:26:14', '2020-09-01 13:54:34', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (18, '字符串转为集合', null, 'stringToCollectionFunction', 'COLLECTION', '2020-09-11 20:26:14', '2020-09-01 14:33:48', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (21, '字符串替换', null, 'stringReplaceFunction', 'STRING', '2020-11-18 23:50:09', '2020-11-18 23:50:10', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (22, '集合去除重复', null, 'collectionDeduplicationFunction', 'COLLECTION', '2020-11-19 00:00:03', '2020-11-19 00:00:05', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (23, '获取当前时间', null, 'currentDateFunction', 'STRING', '2020-11-19 00:37:33', '2020-11-19 00:37:34', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (24, '获取手机号码所在省份', null, 'mobilePhoneProvinceFunction', 'STRING', '2020-12-13 13:28:58', '2020-12-13 13:28:59', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (25, '获取JSON中指定的值返回STRING类型', '例如:JOSN数据为:{"name":"abc"},获取name的值通过JSON值路径配置为$.name,更多使用方法待文档补全。', 'parseJsonStringFunction', 'STRING', '2020-12-13 13:56:04', '2020-12-13 13:50:52', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (26, '获取JSON中指定的值返回NUMBER类型', '例如:JOSN数据为:{"age":"18"},获取name的值通过JSON值路径配置为$.age,更多使用方法待文档补全。', 'parseJsonNumberFunction', 'NUMBER', '2020-12-13 14:08:28', '2020-12-13 14:08:29', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (27, '字母转小写', null, 'letterToLowerCaseFunction', 'STRING', '2020-12-24 00:16:07', '2020-12-24 00:16:08', 0); INSERT INTO boot_engine.rule_engine_function (id, name, description, executor, return_value_type, create_time, update_time, deleted) VALUES (28, '字母转大写', null, 'letterToUpperCaseFunction', 'STRING', '2020-12-24 00:16:38', '2020-12-24 00:16:39', 0); create table rule_engine_function_param ( id int auto_increment primary key, function_id int not null, param_name varchar(100) null, param_code varchar(100) null, value_type varchar(50) null, create_time timestamp default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP, update_time timestamp null, deleted tinyint null ) charset = utf8; create index rule_engine_function_param_function_id_index on rule_engine_function_param (function_id); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (1, 1, '普通参数', 'value', 'STRING', '2020-08-27 17:43:54', '2020-07-16 13:01:21', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (2, 2, '集合', 'list', 'COLLECTION', '2020-08-27 17:43:53', '2020-07-19 18:54:39', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (3, 3, '服务器地址', 'mailSmtpHost', 'STRING', '2020-08-28 14:40:49', '2020-08-18 17:09:05', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (4, 3, '发送人', 'user', 'STRING', '2020-08-28 14:40:49', '2020-08-18 17:09:20', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (5, 3, '发送人密码', 'password', 'STRING', '2020-08-28 14:40:49', '2020-08-18 17:09:44', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (6, 3, '邮件接收人', 'tos', 'COLLECTION', '2020-08-27 17:43:54', '2020-08-18 17:10:07', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (7, 3, '邮件标题', 'title', 'STRING', '2020-08-27 17:43:53', '2020-08-18 17:10:33', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (8, 3, '邮件内容', 'text', 'STRING', '2020-08-27 17:43:53', '2020-08-18 17:10:50', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (9, 4, '集合', 'list', 'COLLECTION', '2020-08-28 14:40:29', '2020-08-28 14:40:31', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (11, 6, '字符串', 'value', 'STRING', '2020-08-28 14:44:22', '2020-08-28 14:44:24', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (12, 7, '数值', 'value', 'NUMBER', '2020-08-28 14:45:28', '2020-08-28 14:45:30', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (13, 3, '端口号', 'mailSmtpPort', 'NUMBER', '2020-08-29 01:36:00', '2020-08-29 01:36:02', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (14, 8, '集合', 'list', 'COLLECTION', '2020-08-30 02:06:06', '2020-08-30 02:06:07', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (15, 8, '索引', 'index', 'NUMBER', '2020-08-30 02:06:24', '2020-08-30 02:06:25', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (16, 9, '数值', 'value', 'NUMBER', '2020-08-30 02:17:18', '2020-08-30 02:17:19', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (17, 9, '最小', 'min', 'NUMBER', '2020-08-30 02:17:37', '2020-08-30 02:17:39', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (18, 9, '最大', 'max', 'NUMBER', '2020-08-30 02:17:57', '2020-08-30 02:17:58', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (19, 10, '集合', 'list', 'COLLECTION', '2020-09-01 13:55:40', '2020-09-01 13:42:10', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (20, 10, '小树位', 'scale', 'NUMBER', '2020-09-01 13:55:40', '2020-09-01 13:46:31', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (21, 11, '集合', 'list', 'COLLECTION', '2020-09-01 13:55:40', '2020-09-01 13:46:31', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (22, 12, '集合', 'list', 'COLLECTION', '2020-09-01 13:55:40', '2020-09-01 13:49:34', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (23, 13, '字符串', 'value', 'STRING', '2020-09-01 13:55:40', '2020-09-01 13:50:41', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (24, 14, '字符串', 'value', 'STRING', '2020-09-01 13:55:40', '2020-09-01 13:51:30', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (25, 15, '集合', 'list', 'COLLECTION', '2020-09-01 13:55:39', '2020-09-01 13:46:31', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (26, 16, '手机号', 'mobile', 'STRING', '2020-09-01 13:55:39', '2020-09-01 13:53:56', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (27, 17, '身份证号', 'citizenId', 'STRING', '2020-09-01 13:55:39', '2020-09-01 13:54:59', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (28, 18, '字符串', 'value', 'STRING', '2020-09-01 14:34:22', '2020-09-01 14:34:24', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (29, 18, '分隔符', 'regex', 'STRING', '2020-09-01 14:34:51', '2020-09-01 14:34:52', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (30, 21, '字符串', 'value', 'STRING', '2020-11-18 23:50:55', '2020-11-18 23:50:57', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (31, 21, '目标', 'target', 'STRING', '2020-11-18 23:51:28', '2020-11-18 23:51:30', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (32, 21, '替身', 'replacement', 'STRING', '2020-11-18 23:51:51', '2020-11-18 23:51:52', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (33, 22, '集合', 'list', 'COLLECTION', '2020-11-19 00:00:44', '2020-11-19 00:00:45', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (34, 23, '格式', 'pattern', 'STRING', '2020-11-19 00:38:14', '2020-11-19 00:38:15', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (35, 23, '时区', 'timeZone', 'STRING', '2020-11-19 00:38:44', '2020-11-19 00:38:46', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (36, 24, '手机号', 'phone', 'STRING', '2020-12-13 13:29:29', '2020-12-13 13:29:30', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (37, 25, 'JSON字符串', 'jsonString', 'STRING', '2020-12-13 13:51:39', '2020-12-13 13:51:41', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (38, 25, 'JSON值路径', 'jsonValuePath', 'STRING', '2020-12-13 13:52:35', '2020-12-13 13:52:37', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (39, 26, 'JSON字符串', 'jsonString', 'STRING', '2020-12-13 14:09:20', '2020-12-13 14:09:21', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (40, 26, 'JSON值路径', 'jsonValuePath', 'STRING', '2020-12-13 14:09:56', '2020-12-13 14:09:57', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (41, 27, '字母', 'letter', 'STRING', '2020-12-24 00:17:14', '2020-12-24 00:17:15', 0); INSERT INTO boot_engine.rule_engine_function_param (id, function_id, param_name, param_code, value_type, create_time, update_time, deleted) VALUES (42, 28, '字母', 'letter', 'STRING', '2020-12-24 00:17:29', '2020-12-24 00:17:30', 0); create table rule_engine_function_value ( id int auto_increment primary key, function_id int not null, variable_id int not null, param_name varchar(100) null, param_code varchar(100) null, type int null comment '0:元素,1:变量,2:固定值', value_type varchar(50) null, value varchar(2000) null, create_time timestamp null, update_time timestamp null, deleted tinyint null ) charset = utf8; create index rule_engine_function_value_function_id_variable_id_index on rule_engine_function_value (function_id, variable_id); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (38, 1, 33, null, 'value', 0, 'STRING', '60', '2020-08-20 02:05:43', '2020-08-20 02:05:43', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (39, 2, 34, null, 'list', 0, 'COLLECTION', '61', '2020-08-20 02:05:43', '2020-08-20 02:05:43', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (42, 2, 50, '集合', 'list', 2, 'COLLECTION', '123,3', '2020-08-27 22:28:49', '2020-08-27 22:28:49', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (50, 1, 51, '普通参数', 'value', 0, 'STRING', '60', '2020-08-27 23:27:06', '2020-08-27 23:27:06', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (51, 7, 52, '数值', 'value', 0, 'NUMBER', '72', '2020-08-28 14:47:28', '2020-08-28 14:47:28', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (53, 4, 54, '集合', 'list', 1, 'COLLECTION', '35', '2020-08-28 15:22:10', '2020-08-28 15:22:10', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (54, 7, 55, '数值', 'value', 1, 'NUMBER', '53', '2020-08-28 15:26:00', '2020-08-28 15:26:00', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (56, 4, 35, '集合', 'list', 2, 'COLLECTION', '123,a,v', '2020-08-28 16:02:37', '2020-08-28 16:02:37', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (60, 4, 53, '集合', 'list', 0, 'COLLECTION', '61', '2020-08-28 16:22:59', '2020-08-28 16:22:59', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (61, 5, 57, '规则入参', 'info', 0, 'STRING', '60', '2020-08-28 21:29:09', '2020-08-28 21:29:09', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (64, 4, 58, '集合', 'list', 2, 'COLLECTION', '123,123', '2020-08-29 01:28:39', '2020-08-29 01:28:39', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (113, 8, 61, '集合', 'list', 0, 'COLLECTION', '61', '2020-08-30 12:35:49', '2020-08-30 12:35:49', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (114, 8, 61, '索引', 'index', 2, 'NUMBER', '12', '2020-08-30 12:35:49', '2020-08-30 12:35:49', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (115, 3, 63, '服务器地址', 'mailSmtpHost', 0, 'STRING', '60', '2020-08-30 12:40:08', '2020-08-30 12:40:08', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (116, 3, 63, '发送人', 'user', 2, 'STRING', '123', '2020-08-30 12:40:08', '2020-08-30 12:40:08', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (117, 3, 63, '发送人密码', 'password', null, 'STRING', null, '2020-08-30 12:40:08', '2020-08-30 12:40:08', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (118, 3, 63, '邮件接收人', 'tos', null, 'COLLECTION', null, '2020-08-30 12:40:08', '2020-08-30 12:40:08', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (119, 3, 63, '邮件标题', 'title', null, 'STRING', null, '2020-08-30 12:40:08', '2020-08-30 12:40:08', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (120, 3, 63, '邮件内容', 'text', null, 'STRING', null, '2020-08-30 12:40:08', '2020-08-30 12:40:08', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (121, 3, 63, '端口号', 'mailSmtpPort', 2, 'NUMBER', '0', '2020-08-30 12:40:08', '2020-08-30 12:40:08', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (122, 3, 64, '服务器地址', 'mailSmtpHost', 2, 'STRING', '123', '2020-08-30 12:42:12', '2020-08-30 12:42:12', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (123, 3, 64, '发送人', 'user', 2, 'STRING', '123123123', '2020-08-30 12:42:12', '2020-08-30 12:42:12', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (124, 3, 64, '发送人密码', 'password', null, 'STRING', null, '2020-08-30 12:42:12', '2020-08-30 12:42:12', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (125, 3, 64, '邮件接收人', 'tos', null, 'COLLECTION', null, '2020-08-30 12:42:12', '2020-08-30 12:42:12', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (126, 3, 64, '邮件标题', 'title', null, 'STRING', null, '2020-08-30 12:42:12', '2020-08-30 12:42:12', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (127, 3, 64, '邮件内容', 'text', null, 'STRING', null, '2020-08-30 12:42:12', '2020-08-30 12:42:12', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (128, 3, 64, '端口号', 'mailSmtpPort', 2, 'NUMBER', '12', '2020-08-30 12:42:12', '2020-08-30 12:42:12', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (136, 6, 67, '字符串', 'value', 2, 'STRING', '123', '2020-08-30 13:20:35', '2020-08-30 13:20:35', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (270, 3, 65, '服务器地址', 'mailSmtpHost', 2, 'STRING', '123', '2020-08-30 13:53:58', '2020-08-30 13:53:58', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (271, 3, 65, '发送人', 'user', 2, 'STRING', null, '2020-08-30 13:53:58', '2020-08-30 13:53:58', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (272, 3, 65, '发送人密码', 'password', 2, 'STRING', null, '2020-08-30 13:53:58', '2020-08-30 13:53:58', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (273, 3, 65, '邮件接收人', 'tos', 2, 'COLLECTION', null, '2020-08-30 13:53:58', '2020-08-30 13:53:58', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (274, 3, 65, '邮件标题', 'title', 2, 'STRING', null, '2020-08-30 13:53:58', '2020-08-30 13:53:58', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (275, 3, 65, '邮件内容', 'text', 2, 'STRING', null, '2020-08-30 13:53:58', '2020-08-30 13:53:58', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (276, 3, 65, '端口号', 'mailSmtpPort', 2, 'NUMBER', '21', '2020-08-30 13:53:58', '2020-08-30 13:53:58', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (286, 9, 70, '数值', 'value', 0, 'NUMBER', '66', '2020-08-30 23:52:20', '2020-08-30 23:52:20', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (287, 9, 70, '最小', 'min', 2, 'NUMBER', '20', '2020-08-30 23:52:20', '2020-08-30 23:52:20', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (288, 9, 70, '最大', 'max', 2, 'NUMBER', '26', '2020-08-30 23:52:20', '2020-08-30 23:52:20', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (291, 15, 72, '集合', 'list', 2, 'COLLECTION', '1,3', '2020-09-01 14:04:50', '2020-09-01 14:04:50', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (305, 17, 71, '身份证号', 'citizenId', 0, 'STRING', '76', '2020-09-04 19:38:53', '2020-09-04 19:38:53', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (306, 11, 73, '集合', 'list', 2, 'COLLECTION', '1,19,20,5', '2020-09-08 12:19:25', '2020-09-08 12:19:25', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (307, 8, 74, '集合', 'list', 2, 'COLLECTION', '123,34,33', '2020-09-08 12:23:25', '2020-09-08 12:23:25', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (308, 8, 74, '索引', 'index', 2, 'NUMBER', '0', '2020-09-08 12:23:25', '2020-09-08 12:23:25', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (309, 10, 75, '集合', 'list', 2, 'COLLECTION', '4,10', '2020-09-08 12:25:40', '2020-09-08 12:25:40', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (310, 10, 75, '小树位', 'scale', 2, 'NUMBER', '2', '2020-09-08 12:25:40', '2020-09-08 12:25:40', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (311, 13, 76, '字符串', 'value', 0, 'STRING', '77', '2020-09-10 18:11:06', '2020-09-10 18:11:06', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (314, 16, 79, '手机号', 'mobile', 0, 'STRING', '77', '2020-09-18 19:08:19', '2020-09-18 19:08:19', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (368, 8, 87, '集合', 'list', 2, 'COLLECTION', '123123', '2020-11-15 00:26:14', '2020-11-15 00:26:14', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (369, 8, 87, '索引', 'index', 0, 'NUMBER', '83', '2020-11-15 00:26:14', '2020-11-15 00:26:14', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (374, 1, 84, '普通参数', 'value', 1, 'STRING', '88', '2020-11-15 01:08:50', '2020-11-15 01:08:50', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (377, 8, 88, '集合', 'list', 2, 'COLLECTION', '123', '2020-11-15 01:10:16', '2020-11-15 01:10:16', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (410, 15, 98, '集合', 'list', 0, 'COLLECTION', '61', '2020-12-01 18:20:32', '2020-12-01 18:20:32', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (451, 9, 118, '数值', 'value', 0, 'NUMBER', '66', '2020-12-25 04:07:45', '2020-12-25 04:07:45', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (452, 9, 118, '最小', 'min', 2, 'NUMBER', '7', '2020-12-25 04:07:45', '2020-12-25 04:07:45', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (453, 9, 118, '最大', 'max', 2, 'NUMBER', '11', '2020-12-25 04:07:45', '2020-12-25 04:07:45', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (454, 3, 124, '服务器地址', 'mailSmtpHost', 2, 'STRING', 't', '2021-01-01 11:45:27', '2021-01-01 11:45:27', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (455, 3, 124, '发送人', 'user', 2, 'STRING', 't', '2021-01-01 11:45:27', '2021-01-01 11:45:27', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (456, 3, 124, '发送人密码', 'password', 2, 'STRING', 't', '2021-01-01 11:45:27', '2021-01-01 11:45:27', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (457, 3, 124, '邮件接收人', 'tos', 2, 'COLLECTION', 't', '2021-01-01 11:45:27', '2021-01-01 11:45:27', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (458, 3, 124, '邮件标题', 'title', 2, 'STRING', 't', '2021-01-01 11:45:27', '2021-01-01 11:45:27', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (459, 3, 124, '邮件内容', 'text', 2, 'STRING', 't', '2021-01-01 11:45:27', '2021-01-01 11:45:27', 0); INSERT INTO boot_engine.rule_engine_function_value (id, function_id, variable_id, param_name, param_code, type, value_type, value, create_time, update_time, deleted) VALUES (460, 3, 124, '端口号', 'mailSmtpPort', 2, 'NUMBER', '22', '2021-01-01 11:45:27', '2021-01-01 11:45:27', 0); create table rule_engine_general_rule ( id int auto_increment primary key, name varchar(50) not null, code varchar(50) not null, rule_id int null, description varchar(500) null, workspace_id int null, workspace_code varchar(20) null, create_user_id int null, create_user_name varchar(100) null, status tinyint null, enable_default_action tinyint null, default_action_value varchar(2000) null, default_action_type tinyint null, default_action_value_type varchar(50) null, abnormal_alarm json null, create_time timestamp null, update_time timestamp null, deleted tinyint null ) charset = utf8; create index rule_engine_rule_code_workspace_id_index on rule_engine_general_rule (code, workspace_id); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (120, 'test', 'test', 120, null, 2, 'test', 2, 'lq', 0, null, null, null, null, '{"email": [""], "enable": false, "timeOutThreshold": 3000}', '2020-12-29 01:46:36', '2020-12-29 01:50:23', 0); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (121, '篮球苗子', 'bs', 121, '是否为篮球苗子测试', 1, 'default', 1, 'dqw', 2, 0, '不是', 2, 'STRING', '{"email": [""], "enable": false, "timeOutThreshold": 3000}', '2020-12-29 03:07:07', '2020-12-29 16:20:53', 0); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (122, '手机号规则测试', 'phoneRuletest', 122, null, 1, 'default', 1, 'dqw', 1, 0, 'false', 2, 'BOOLEAN', '{"email": [""], "enable": false, "timeOutThreshold": 3000}', '2020-12-29 03:12:45', '2021-01-03 17:54:12', 0); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (123, 'test', 'test', 123, null, 1, 'default', 1, 'dqw', 1, 0, '123', 2, 'STRING', '{"email": [""], "enable": false, "timeOutThreshold": 3000}', '2020-12-29 15:39:44', '2020-12-29 15:39:44', 1); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (124, '测试', 'TEST_1230', 124, null, 1, 'default', 2, 'lq', 2, 0, '测试111', 2, 'STRING', '{"email": [""], "enable": false, "timeOutThreshold": 3000}', '2020-12-30 00:45:44', '2020-12-30 00:45:44', 1); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (125, '订单-策略', 'order_ll', 125, null, 1, 'default', 2, 'lq', 2, 0, '222', 2, 'STRING', '{"email": [""], "enable": false, "timeOutThreshold": 3000}', '2020-12-30 01:36:48', '2020-12-30 01:36:48', 1); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (126, '订单策略', 'order', 126, null, 1, 'default', 2, 'lq', 2, 0, 'false', 2, 'STRING', '{"email": [""], "enable": false, "timeOutThreshold": 3000}', '2020-12-30 01:40:55', '2020-12-30 01:40:55', 1); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (127, 'zjh-test-1', 'zjh-test-1', 127, null, 1, 'default', 2, 'lq', 0, null, null, null, null, null, '2020-12-30 03:53:50', '2020-12-30 03:53:50', 1); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (128, '测试一下', 'test1111', 128, null, 1, 'default', 2, 'lq', 1, null, null, null, null, '{"email": [""], "enable": false, "timeOutThreshold": 3000}', '2020-12-30 11:50:05', '2020-12-30 11:50:05', 1); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (129, 'test', 'test', 129, null, 1, 'default', 2, 'lq', 1, null, null, null, null, '{"email": [""], "enable": false, "timeOutThreshold": 3000}', '2020-12-30 17:19:03', '2020-12-30 17:19:03', 1); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (130, 'test', 'ste', 130, null, 1, 'default', 2, 'lq', 2, null, null, null, null, '{"email": [""], "enable": false, "timeOutThreshold": 3000}', '2020-12-30 17:19:21', '2020-12-30 17:19:21', 1); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (131, '444', 'a_666', 131, '77776', 2, 'test', 2, 'lq', 0, null, null, null, null, null, '2020-12-31 09:15:28', '2020-12-31 09:15:28', 0); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (132, '测试', 'test', 132, null, 1, 'default', 2, 'lq', 1, 0, '60', 0, 'STRING', '{"email": [""], "enable": false, "timeOutThreshold": 3000}', '2021-01-05 08:59:20', '2021-01-05 18:48:59', 1); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (133, 'kevin_test', 'sad', 133, null, 1, 'default', 2, 'lq', 0, null, null, null, null, null, '2021-01-05 09:13:10', '2021-01-05 09:13:10', 1); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (134, '绩效', 'aaa', 134, null, 1, 'default', 2, 'lq', 0, null, null, null, null, null, '2021-01-05 09:32:39', '2021-01-05 09:47:19', 1); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (135, '3', 'a', 135, null, 1, 'default', 2, 'lq', 0, null, null, null, null, null, '2021-01-05 09:45:26', '2021-01-05 09:45:26', 1); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (136, 'f', 'f', 136, null, 1, 'default', 2, 'lq', 0, null, null, null, null, null, '2021-01-05 09:46:03', '2021-01-05 09:46:03', 1); INSERT INTO boot_engine.rule_engine_general_rule (id, name, code, rule_id, description, workspace_id, workspace_code, create_user_id, create_user_name, status, enable_default_action, default_action_value, default_action_type, default_action_value_type, abnormal_alarm, create_time, update_time, deleted) VALUES (137, '---', 'a123', 137, null, 1, 'default', 2, 'lq', 2, null, null, null, null, '{"email": [""], "enable": false, "timeOutThreshold": 3000}', '2021-01-07 02:24:26', '2021-01-07 02:24:26', 0); create table rule_engine_general_rule_publish ( id int auto_increment primary key, general_rule_id int not null, general_rule_code varchar(50) null, workspace_id int null, workspace_code varchar(20) null, data json null, status tinyint null, create_time timestamp null, update_time timestamp null, deleted tinyint null ) charset = utf8; create index rule_engine_rule_publish_rule_code_index on rule_engine_general_rule_publish (general_rule_code); create index rule_engine_rule_publish_rule_id_index on rule_engine_general_rule_publish (general_rule_id); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (227, 122, 'phoneRuletest', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 122, "code": "phoneRuletest", "name": "手机号规则测试", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1413, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 71, "name": "排除号码在白名单的", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "CONTAIN"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}, "variableId": 77}}, "rightValue": {"cn.ruleengine.core.value.Element": {"elementId": 77, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "phone"}}}}]}}}, {"cn.ruleengine.core.condition.ConditionGroup": {"id": 1414, "name": null, "orderNo": 2, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 73, "name": "验证是否为手机号码条件", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 79}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 70, "name": "限制号码长度", "orderNo": 2, "operator": {"cn.ruleengine.core.condition.Operator": "LE"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "variableId": 76}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 17}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 69, "name": "号码开头", "orderNo": 3, "operator": {"cn.ruleengine.core.condition.Operator": "STARTS_WITH"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 77, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "phone"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": "137", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": false, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}', 2, '2020-12-29 13:44:23', '2020-12-29 13:44:23', 0); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (228, 121, 'bs', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 121, "code": "bs", "name": "篮球苗子", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": "是一个篮球苗子,需要培养", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "description": "是否为篮球苗子测试", "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1415, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 103, "name": "专业是否为体育生", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "体育", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "rightValue": {"cn.ruleengine.core.value.Element": {"elementId": 119, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "major"}}}}]}}}, {"cn.ruleengine.core.condition.ConditionGroup": {"id": 1416, "name": null, "orderNo": 2, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 104, "name": "年龄在7-11之间条件", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 118}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 102, "name": "身体是否健壮", "orderNo": 2, "operator": {"cn.ruleengine.core.condition.Operator": "CONTAIN"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["健壮", "优秀", "良好"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "rightValue": {"cn.ruleengine.core.value.Element": {"elementId": 117, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "healthStatus"}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 101, "name": "年级是三年级以上", "orderNo": 3, "operator": {"cn.ruleengine.core.condition.Operator": "GT"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 116, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "elementCode": "grade"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 3}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 100, "name": "身高170cm以上", "orderNo": 4, "operator": {"cn.ruleengine.core.condition.Operator": "GE"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 115, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "elementCode": "height"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 170}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 98, "name": "性别是男的", "orderNo": 5, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 114, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "sex"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": "男", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": "不是", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}', 2, '2020-12-29 14:11:21', '2020-12-29 14:11:21', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (229, 121, 'bs', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 121, "code": "bs", "name": "篮球苗子", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": "是一个篮球苗子,需要培养", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "description": "是否为篮球苗子测试", "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1417, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 103, "name": "专业是否为体育生条件", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "体育", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "rightValue": {"cn.ruleengine.core.value.Element": {"elementId": 119, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "major"}}}}]}}}, {"cn.ruleengine.core.condition.ConditionGroup": {"id": 1418, "name": null, "orderNo": 2, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 104, "name": "年龄在7-11之间条件", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 118}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 102, "name": "身体是否健壮", "orderNo": 2, "operator": {"cn.ruleengine.core.condition.Operator": "CONTAIN"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["健壮", "优秀", "良好"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "rightValue": {"cn.ruleengine.core.value.Element": {"elementId": 117, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "healthStatus"}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 101, "name": "年级是三年级以上", "orderNo": 3, "operator": {"cn.ruleengine.core.condition.Operator": "GT"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 116, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "elementCode": "grade"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 3}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 100, "name": "身高170cm以上", "orderNo": 4, "operator": {"cn.ruleengine.core.condition.Operator": "GE"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 115, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "elementCode": "height"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 170}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 98, "name": "性别是男的", "orderNo": 5, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 114, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "sex"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": "男", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": "不是", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}', 2, '2020-12-29 14:12:00', '2020-12-29 14:12:00', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (230, 123, 'test', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 123, "code": "test", "name": "test", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": []}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": "123", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}', 1, '2020-12-29 15:51:30', '2020-12-29 15:51:30', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (231, 121, 'bs', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 121, "code": "bs", "name": "篮球苗子", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": "是一个篮球苗子,需要培养", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "description": "是否为篮球苗子测试", "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1419, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 103, "name": "专业是否为体育生", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "体育", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "rightValue": {"cn.ruleengine.core.value.Element": {"elementId": 119, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "major"}}}}]}}}, {"cn.ruleengine.core.condition.ConditionGroup": {"id": 1420, "name": null, "orderNo": 2, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 104, "name": "年龄在7-11之间条件", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 118}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 102, "name": "身体是否健壮", "orderNo": 2, "operator": {"cn.ruleengine.core.condition.Operator": "CONTAIN"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.util.Arrays$ArrayList": ["健壮", "优秀", "良好"]}, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}}}, "rightValue": {"cn.ruleengine.core.value.Element": {"elementId": 117, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "healthStatus"}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 101, "name": "年级是三年级以上", "orderNo": 3, "operator": {"cn.ruleengine.core.condition.Operator": "GT"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 116, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "elementCode": "grade"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 3}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 100, "name": "身高170cm以上", "orderNo": 4, "operator": {"cn.ruleengine.core.condition.Operator": "GE"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 115, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "elementCode": "height"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 170}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 98, "name": "性别是男的", "orderNo": 5, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 114, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "sex"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": "男", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": "不是", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}', 2, '2020-12-29 16:20:58', '2020-12-29 16:20:58', 0); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (232, 124, 'TEST_1230', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 124, "code": "TEST_1230", "name": "测试", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": "测试", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1421, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 103, "name": "专业是否为体育生", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "体育", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "rightValue": {"cn.ruleengine.core.value.Element": {"elementId": 119, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "major"}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 104, "name": "年龄在7-11之间条件", "orderNo": 2, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 118}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 98, "name": "性别是男的", "orderNo": 3, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 114, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "sex"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": "男", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": "测试111", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}', 2, '2020-12-30 00:49:55', '2020-12-30 00:49:55', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (233, 125, 'order_ll', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 125, "code": "order_ll", "name": "订单-策略", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": "1111", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1422, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 103, "name": "专业是否为体育生", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Constant": {"value": "体育", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "rightValue": {"cn.ruleengine.core.value.Element": {"elementId": 119, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "major"}}}}]}}}, {"cn.ruleengine.core.condition.ConditionGroup": {"id": 1423, "name": null, "orderNo": 2, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 104, "name": "年龄在7-11之间条件", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 118}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": "222", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}', 2, '2020-12-30 01:38:21', '2020-12-30 01:38:21', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (234, 126, 'order', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 126, "code": "order", "name": "订单策略", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": "true", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1424, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 99, "name": "年龄小于10岁", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "LT"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 66, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "elementCode": "age"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 10}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}]}}}, {"cn.ruleengine.core.condition.ConditionGroup": {"id": 1425, "name": null, "orderNo": 2, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 65, "name": "年龄大于等于20条件", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "GE"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 66, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "elementCode": "age"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 20}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": "false", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}', 2, '2020-12-30 01:42:08', '2020-12-30 01:42:08', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (235, 128, 'test1111', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 128, "code": "test1111", "name": "测试一下", "actionValue": {"cn.ruleengine.core.value.Element": {"elementId": 82, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}, "elementCode": "mailRecipient"}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1426, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 57, "name": "审批人测试", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "CONTAIN"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}, "variableId": 35}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 123}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": null}}', 1, '2020-12-30 11:51:11', '2020-12-30 11:51:11', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (236, 128, 'test1111', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 128, "code": "test1111", "name": "测试一下", "actionValue": {"cn.ruleengine.core.value.Element": {"elementId": 82, "valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}, "elementCode": "mailRecipient"}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1427, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 57, "name": "审批人测试", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "CONTAIN"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}, "variableId": 35}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 123}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": null}}', 1, '2020-12-30 14:51:16', '2020-12-30 14:51:16', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (237, 129, 'test', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 129, "code": "test", "name": "test", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": []}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": null}}', 1, '2020-12-30 17:19:08', '2020-12-30 17:19:08', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (238, 130, 'ste', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 130, "code": "ste", "name": "test", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 123}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": []}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": null}}', 2, '2020-12-30 17:19:33', '2020-12-30 17:19:33', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (239, 122, 'phoneRuletest', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 122, "code": "phoneRuletest", "name": "手机号规则测试", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1428, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 71, "name": "排除号码在白名单的", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "CONTAIN"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}, "variableId": 77}}, "rightValue": {"cn.ruleengine.core.value.Element": {"elementId": 77, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "phone"}}}}]}}}, {"cn.ruleengine.core.condition.ConditionGroup": {"id": 1429, "name": null, "orderNo": 2, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 73, "name": "验证是否为手机号码条件", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 79}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 70, "name": "限制号码长度", "orderNo": 2, "operator": {"cn.ruleengine.core.condition.Operator": "LE"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "variableId": 76}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 17}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 69, "name": "号码开头", "orderNo": 3, "operator": {"cn.ruleengine.core.condition.Operator": "STARTS_WITH"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 77, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "phone"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": "137", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": false, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}', 1, '2021-01-02 19:12:27', '2021-01-02 19:12:27', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (241, 122, 'phoneRuletest', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 122, "code": "phoneRuletest", "name": "手机号规则测试", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1432, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 71, "name": "排除号码在白名单的", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "CONTAIN"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}, "variableId": 77}}, "rightValue": {"cn.ruleengine.core.value.Element": {"elementId": 77, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "phone"}}}}]}}}, {"cn.ruleengine.core.condition.ConditionGroup": {"id": 1433, "name": null, "orderNo": 2, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 73, "name": "验证是否为手机号码条件", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 79}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 70, "name": "限制号码长度", "orderNo": 2, "operator": {"cn.ruleengine.core.condition.Operator": "LE"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "variableId": 76}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 17}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 69, "name": "号码开头", "orderNo": 3, "operator": {"cn.ruleengine.core.condition.Operator": "STARTS_WITH"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 77, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "phone"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": "137", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": false, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}', 1, '2021-01-03 17:28:56', '2021-01-03 17:28:56', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (242, 122, 'phoneRuletest', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 122, "code": "phoneRuletest", "name": "手机号规则测试", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1434, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 71, "name": "排除号码在白名单的", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "CONTAIN"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}, "variableId": 77}}, "rightValue": {"cn.ruleengine.core.value.Element": {"elementId": 77, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "phone"}}}}]}}}, {"cn.ruleengine.core.condition.ConditionGroup": {"id": 1435, "name": null, "orderNo": 2, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 73, "name": "验证是否为手机号码条件", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 79}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 70, "name": "限制号码长度", "orderNo": 2, "operator": {"cn.ruleengine.core.condition.Operator": "LE"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "variableId": 76}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 17}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 69, "name": "号码开头", "orderNo": 3, "operator": {"cn.ruleengine.core.condition.Operator": "STARTS_WITH"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 77, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "phone"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": "137", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": false, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}', 1, '2021-01-03 17:54:16', '2021-01-03 17:54:16', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (243, 132, 'test', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 132, "code": "test", "name": "测试", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": "true", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1436, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 104, "name": "年龄在7-11之间条件", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 118}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 73, "name": "验证是否为手机号码条件", "orderNo": 2, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 79}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": null}}', 1, '2021-01-05 09:00:35', '2021-01-05 09:00:35', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (244, 132, 'test', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 132, "code": "test", "name": "测试", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": "true", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1437, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 104, "name": "年龄在7-11之间条件", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 118}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 73, "name": "验证是否为手机号码条件", "orderNo": 2, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 79}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": null}}', 1, '2021-01-05 09:01:04', '2021-01-05 09:01:04', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (245, 132, 'test', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 132, "code": "test", "name": "测试", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": "true", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1438, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 104, "name": "年龄在7-11之间条件", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 118}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 73, "name": "验证是否为手机号码条件", "orderNo": 2, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 79}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Element": {"elementId": 60, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "ele-string"}}}}', 1, '2021-01-05 17:16:48', '2021-01-05 17:16:48', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (246, 132, 'test', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 132, "code": "test", "name": "测试", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": "true", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1439, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 104, "name": "年龄在7-11之间条件", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 118}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 73, "name": "验证是否为手机号码条件", "orderNo": 2, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 79}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Element": {"elementId": 60, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "ele-string"}}}}', 1, '2021-01-05 18:49:03', '2021-01-05 18:49:03', 1); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (247, 122, 'phoneRuletest', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 122, "code": "phoneRuletest", "name": "手机号规则测试", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1440, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 71, "name": "排除号码在白名单的", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "CONTAIN"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "COLLECTION"}, "variableId": 77}}, "rightValue": {"cn.ruleengine.core.value.Element": {"elementId": 77, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "phone"}}}}]}}}, {"cn.ruleengine.core.condition.ConditionGroup": {"id": 1441, "name": null, "orderNo": 2, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 73, "name": "验证是否为手机号码条件", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "EQ"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}, "variableId": 79}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": true, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 70, "name": "限制号码长度", "orderNo": 2, "operator": {"cn.ruleengine.core.condition.Operator": "LE"}, "leftValue": {"cn.ruleengine.core.value.Variable": {"valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "variableId": 76}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 17}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 69, "name": "号码开头", "orderNo": 3, "operator": {"cn.ruleengine.core.condition.Operator": "STARTS_WITH"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 77, "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}, "elementCode": "phone"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": "137", "valueType": {"cn.ruleengine.core.value.ValueType": "STRING"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": {"cn.ruleengine.core.value.Constant": {"value": false, "valueType": {"cn.ruleengine.core.value.ValueType": "BOOLEAN"}}}}}', 1, '2021-01-06 04:56:58', '2021-01-06 04:56:58', 0); INSERT INTO boot_engine.rule_engine_general_rule_publish (id, general_rule_id, general_rule_code, workspace_id, workspace_code, data, status, create_time, update_time, deleted) VALUES (248, 137, 'a123', 1, 'default', '{"cn.ruleengine.core.rule.GeneralRule": {"id": 137, "code": "a123", "name": "---", "actionValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 1}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}, "description": null, "workspaceId": 1, "conditionSet": {"cn.ruleengine.core.condition.ConditionSet": {"conditionGroups": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.ConditionGroup": {"id": 1442, "name": null, "orderNo": 1, "conditions": {"java.util.ArrayList": [{"cn.ruleengine.core.condition.Condition": {"id": 108, "name": "---", "orderNo": 1, "operator": {"cn.ruleengine.core.condition.Operator": "GT"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 66, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "elementCode": "age"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 10}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}, {"cn.ruleengine.core.condition.Condition": {"id": 108, "name": "---", "orderNo": 2, "operator": {"cn.ruleengine.core.condition.Operator": "GT"}, "leftValue": {"cn.ruleengine.core.value.Element": {"elementId": 66, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}, "elementCode": "age"}}, "rightValue": {"cn.ruleengine.core.value.Constant": {"value": {"java.math.BigDecimal": 10}, "valueType": {"cn.ruleengine.core.value.ValueType": "NUMBER"}}}}}]}}}]}}}, "precondition": {"cn.ruleengine.core.condition.Precondition": {"precondition": {"java.util.ArrayList": []}}}, "abnormalAlarm": {"cn.ruleengine.core.rule.AbnormalAlarm": {"email": {"[Ljava.lang.String;": [""]}, "enable": false, "timeOutThreshold": 3000}}, "enableMonitor": false, "workspaceCode": "default", "defaultActionValue": null}}', 2, '2021-01-07 02:25:12', '2021-01-07 02:25:12', 0); create table rule_engine_group_data ( id int auto_increment primary key, group_id int not null, data_id int not null, data_type tinyint not null, create_time timestamp null, update_time timestamp null, deleted tinyint null ) comment '规则用户组与数据权限' charset = utf8; INSERT INTO boot_engine.rule_engine_group_data (id, group_id, data_id, data_type, create_time, update_time, deleted) VALUES (1, 1, 1, 0, '2020-11-21 02:42:01', '2020-11-21 02:42:03', 0); create table rule_engine_menu ( id int auto_increment primary key, name varchar(20) not null comment '用户id', description varchar(500) null, parent_id int null, icon varchar(100) null, sort int null, menu_path varchar(500) not null comment '菜单路径', create_time timestamp null on update CURRENT_TIMESTAMP, update_time timestamp null on update CURRENT_TIMESTAMP, deleted tinyint(1) default 0 not null ); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (9, '规则引擎', null, null, null, 0, '/', '2020-11-21 03:09:56', '2020-11-21 03:09:57', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (10, '首页', null, 9, 'el-icon-s-home', 0, '/home', '2020-11-21 03:17:13', '2020-11-21 03:17:13', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (11, '基础组件', null, 9, 'el-icon-menu', 1, '/', '2020-11-21 03:17:13', '2020-11-21 03:17:13', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (12, '元素', null, 11, null, 0, '/element', '2020-11-21 03:16:24', '2020-11-21 03:16:25', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (13, '变量', null, 11, null, 2, '/variable', '2020-12-28 23:46:45', '2020-12-28 23:46:45', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (14, '函数', null, 11, null, 3, '/function', '2020-12-28 23:46:45', '2020-12-28 23:46:45', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (15, '条件', null, 11, null, 4, '/condition', '2020-12-28 23:46:45', '2020-12-28 23:46:45', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (16, '功能', null, 9, 'el-icon-s-marketing', 2, '/', '2020-11-21 03:17:49', '2020-11-21 03:17:50', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (17, '普通规则', null, 16, null, 0, '/generalRule', '2020-12-29 21:39:59', '2020-12-29 21:39:59', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (18, '设置', null, 9, 'el-icon-s-tools', 4, '/', '2020-12-19 01:30:40', '2020-12-19 01:30:40', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (19, '个人设置', null, 18, null, 0, '/personalSettings', '2020-11-21 03:52:51', '2020-11-21 03:52:51', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (20, '系统设置', null, 18, '', 2, '/systemSetting', '2020-12-28 21:53:17', '2020-12-28 21:53:17', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (21, '决策表', null, 16, null, 2, '/decisionTable', '2020-12-28 21:55:40', '2020-12-28 21:55:40', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (22, '评分卡', null, 16, null, 3, '/scoreCard', '2020-12-28 21:56:00', '2020-12-28 21:56:00', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (23, '权限管理', null, 9, 'el-icon-s-custom', 3, '/', '2020-12-19 01:30:40', '2020-12-19 01:30:40', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (24, '工作空间', null, 23, null, 1, '/workspace', '2020-12-19 01:31:18', '2020-12-19 01:31:20', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (25, '规则集', null, 16, null, 1, '/ruleSet', '2020-12-28 21:53:08', '2020-12-28 21:53:09', 0); INSERT INTO boot_engine.rule_engine_menu (id, name, description, parent_id, icon, sort, menu_path, create_time, update_time, deleted) VALUES (26, '元素组', '一组元素,可以类似一个java pojo', 11, null, 1, '/elementGroup', '2020-12-28 23:46:06', '2020-12-28 23:46:08', 0); create table rule_engine_role ( id int auto_increment primary key, name varchar(50) not null comment '名称', code varchar(50) not null, description varchar(300) null comment '描述', parent_id int null comment '此角色的父级', role_path varchar(500) not null comment '角色路径', create_time timestamp null on update CURRENT_TIMESTAMP, update_time timestamp null on update CURRENT_TIMESTAMP, deleted tinyint(1) default 0 null ); INSERT INTO boot_engine.rule_engine_role (id, name, code, description, parent_id, role_path, create_time, update_time, deleted) VALUES (1, '系统管理员', 'admin', null, null, '1', '2020-09-25 22:18:42', '2020-09-25 22:18:42', 0); INSERT INTO boot_engine.rule_engine_role (id, name, code, description, parent_id, role_path, create_time, update_time, deleted) VALUES (2, '用户', 'user', '', 1, '1@2', '2020-09-25 22:19:30', '2020-09-25 22:19:31', 0); create table rule_engine_role_menu ( id int auto_increment primary key, role_id int not null comment '用户id', menu_id varchar(500) null, create_time timestamp null on update CURRENT_TIMESTAMP, update_time timestamp null on update CURRENT_TIMESTAMP, deleted tinyint(1) default 0 not null ); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (8, 1, '9', '2020-11-21 03:20:17', '2020-11-21 03:20:18', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (9, 1, '10', '2020-11-21 03:20:22', '2020-11-21 03:20:19', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (10, 1, '11', '2020-11-21 03:20:23', '2020-11-21 03:20:20', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (11, 1, '12', '2020-11-21 03:20:24', '2020-11-21 03:20:34', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (12, 1, '13', '2020-11-21 03:20:26', '2020-11-21 03:20:35', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (13, 1, '14', '2020-11-21 03:20:28', '2020-11-21 03:20:37', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (14, 1, '15', '2020-11-21 03:20:29', '2020-11-21 03:20:39', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (15, 1, '16', '2020-11-21 03:20:30', '2020-11-21 03:20:41', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (16, 1, '17', '2020-11-21 03:20:32', '2020-11-21 03:20:42', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (17, 1, '18', '2020-11-21 03:55:02', '2020-11-21 03:55:04', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (18, 1, '19', '2020-11-21 03:55:08', '2020-11-21 03:55:05', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (19, 1, '20', '2020-11-21 03:55:09', '2020-11-21 03:55:06', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (20, 1, '21', '2020-11-21 03:55:09', '2020-11-21 03:55:07', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (21, 1, '22', '2020-11-21 03:55:10', '2020-11-21 03:55:07', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (22, 2, '9', '2020-11-21 20:50:38', '2020-11-21 20:50:39', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (23, 2, '10', '2020-11-21 20:50:45', '2020-11-21 20:50:40', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (24, 2, '11', '2020-11-21 20:50:46', '2020-11-21 20:50:41', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (25, 2, '12', '2020-11-21 20:50:47', '2020-11-21 20:50:42', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (26, 2, '13', '2020-11-21 20:50:47', '2020-11-21 20:50:42', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (27, 2, '14', '2020-11-21 20:50:48', '2020-11-21 20:50:43', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (28, 2, '15', '2020-11-21 20:50:49', '2020-11-21 20:50:44', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (29, 2, '16', '2020-11-21 20:50:49', '2020-11-21 20:50:44', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (30, 2, '17', '2020-11-21 20:51:39', '2020-11-21 20:51:40', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (31, 2, '18', '2020-11-21 20:51:38', '2020-11-21 20:51:40', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (32, 2, '19', '2020-11-21 20:51:37', '2020-11-21 20:51:44', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (34, 2, '22', '2020-12-15 22:43:29', '2020-12-15 22:43:30', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (35, 1, '23', '2020-12-19 01:29:48', '2020-12-19 01:29:49', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (36, 1, '24', '2020-12-19 01:31:32', '2020-12-19 01:31:34', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (37, 2, '23', '2020-12-19 01:53:04', '2020-12-19 01:53:05', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (38, 2, '24', '2020-12-19 01:53:14', '2020-12-19 01:53:16', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (39, 2, '21', '2020-12-19 15:56:26', '2020-12-19 15:56:28', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (40, 1, '25', '2020-12-28 21:53:35', '2020-12-28 21:53:36', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (41, 2, '25', '2020-12-28 21:53:37', '2020-12-28 21:53:37', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (42, 1, '26', '2020-12-28 23:47:02', '2020-12-28 23:47:05', 0); INSERT INTO boot_engine.rule_engine_role_menu (id, role_id, menu_id, create_time, update_time, deleted) VALUES (43, 2, '26', '2020-12-28 23:47:03', '2020-12-28 23:47:05', 0); create table rule_engine_rule ( id int auto_increment primary key, name varchar(50) null, code varchar(50) null, description varchar(500) null, create_user_id int null, create_user_name varchar(100) null, action_value varchar(2000) null, action_type tinyint null, action_value_type varchar(50) null, create_time timestamp null, update_time timestamp null, deleted tinyint null ) charset = utf8; INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (120, 'test', 'test', null, 2, 'lq', 'true', 2, 'BOOLEAN', '2020-12-29 01:46:36', '2020-12-29 01:46:36', 0); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (121, '篮球苗子', 'bs', '是否为篮球苗子测试', 1, 'dqw', '是一个篮球苗子,需要培养', 2, 'STRING', '2020-12-29 03:07:07', '2020-12-29 03:07:07', 0); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (122, '手机号规则测试', 'phoneRuletest', null, 1, 'dqw', 'true', 2, 'BOOLEAN', '2020-12-29 03:12:44', '2020-12-29 03:12:44', 0); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (123, 'test', 'test', null, 1, 'dqw', 'true', 2, 'BOOLEAN', '2020-12-29 15:39:44', '2020-12-29 15:39:44', 1); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (124, '测试', 'TEST_1230', null, 2, 'lq', '测试', 2, 'STRING', '2020-12-30 00:45:44', '2020-12-30 00:45:44', 1); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (125, '订单-策略', 'order_ll', null, 2, 'lq', '1111', 2, 'STRING', '2020-12-30 01:36:48', '2020-12-30 01:36:48', 1); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (126, '订单策略', 'order', null, 2, 'lq', 'true', 2, 'STRING', '2020-12-30 01:40:54', '2020-12-30 01:40:54', 1); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (127, 'zjh-test-1', 'zjh-test-1', null, 2, 'lq', null, null, null, '2020-12-30 03:53:50', '2020-12-30 03:53:50', 1); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (128, '测试一下', 'test1111', null, 2, 'lq', '82', 0, 'COLLECTION', '2020-12-30 11:50:05', '2020-12-30 11:50:05', 1); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (129, 'test', 'test', null, 2, 'lq', 'true', 2, 'BOOLEAN', '2020-12-30 17:19:03', '2020-12-30 17:19:03', 1); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (130, 'test', 'ste', null, 2, 'lq', '123', 2, 'NUMBER', '2020-12-30 17:19:21', '2020-12-30 17:19:21', 1); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (131, '444', 'a_666', '77776', 2, 'lq', null, null, null, '2020-12-31 09:15:28', '2020-12-31 09:15:28', 0); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (132, '测试', 'test', null, 2, 'lq', 'true', 2, 'STRING', '2021-01-05 08:59:20', '2021-01-05 08:59:20', 1); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (133, 'kevin_test', 'sad', null, 2, 'lq', null, null, null, '2021-01-05 09:13:10', '2021-01-05 09:13:10', 1); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (134, '绩效', 'aaa', null, 2, 'lq', null, null, null, '2021-01-05 09:32:39', '2021-01-05 09:32:39', 1); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (135, '3', 'a', null, 2, 'lq', null, null, null, '2021-01-05 09:45:26', '2021-01-05 09:45:26', 1); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (136, 'f', 'f', null, 2, 'lq', null, null, null, '2021-01-05 09:46:03', '2021-01-05 09:46:03', 1); INSERT INTO boot_engine.rule_engine_rule (id, name, code, description, create_user_id, create_user_name, action_value, action_type, action_value_type, create_time, update_time, deleted) VALUES (137, '---', 'a123', null, 2, 'lq', '1', 2, 'NUMBER', '2021-01-07 02:24:25', '2021-01-07 02:24:25', 0); create table rule_engine_system_log ( id int auto_increment comment 'id' primary key, user_id int null, description varchar(300) null, ip varchar(20) not null comment '请求ip', browser varchar(50) null comment '浏览器', browser_version varchar(50) null comment '浏览器版本', `system` varchar(50) not null comment '请求者系统', detailed varchar(300) not null comment '请求者系统详情', mobile tinyint(1) null comment '是否为移动平台', ages mediumtext null comment '请求参数', request_url varchar(100) not null comment '请求url', end_time timestamp null on update CURRENT_TIMESTAMP comment '请求结束时间', running_time bigint(10) null comment '运行时间', return_value mediumtext null, exception text null comment '异常', request_id varchar(200) null, create_time timestamp null on update CURRENT_TIMESTAMP, update_time timestamp null on update CURRENT_TIMESTAMP, deleted tinyint(1) null ); create table rule_engine_user ( id int auto_increment primary key, username varchar(30) not null, password varchar(50) not null, email varchar(50) null, phone bigint(16) null, avatar varchar(200) null comment '头像', sex varchar(2) null, create_time timestamp null, update_time timestamp null, deleted tinyint null ) comment '规则引擎用户表' charset = utf8; INSERT INTO boot_engine.rule_engine_user (id, username, password, email, phone, avatar, sex, create_time, update_time, deleted) VALUES (2, 'lq', '<PASSWORD>', '<PASSWORD> <EMAIL>@<EMAIL>', null, 'http://oss-boot-test.oss-cn-beijing.aliyuncs.com/ruleengine/IMG_0010.jpeg?Expires=33144366632&OSSAccessKeyId=<KEY>&Signature=lsAj1tUhbEYOAbfHK9PHr666NHE%3D', '女', '2020-09-25 23:05:06', '2020-12-19 08:30:34', 0); INSERT INTO boot_engine.rule_engine_user (id, username, password, email, phone, avatar, sex, create_time, update_time, deleted) VALUES (3, 'test', '5<PASSWORD>', '<PASSWORD>', null, '/static/avatar.jpg', '男', '2020-11-22 00:53:08', '2020-11-22 00:53:09', 0); create table rule_engine_user_role ( id int auto_increment primary key, user_id int not null comment '用户id', role_id int not null comment '角色id', create_time timestamp null on update CURRENT_TIMESTAMP, update_time timestamp null on update CURRENT_TIMESTAMP, deleted tinyint(1) default 0 not null ); INSERT INTO boot_engine.rule_engine_user_role (id, user_id, role_id, create_time, update_time, deleted) VALUES (3, 1, 1, '2020-09-25 22:20:31', '2020-09-25 22:20:32', 0); INSERT INTO boot_engine.rule_engine_user_role (id, user_id, role_id, create_time, update_time, deleted) VALUES (4, 2, 2, '2020-09-25 23:05:20', '2020-09-25 23:05:21', 0); INSERT INTO boot_engine.rule_engine_user_role (id, user_id, role_id, create_time, update_time, deleted) VALUES (5, 3, 2, '2020-11-22 00:53:38', '2020-11-22 00:53:39', 0); create table rule_engine_user_workspace ( id int auto_increment primary key, user_id varchar(30) not null, workspace_id int null, create_time timestamp null, update_time timestamp null, deleted tinyint null ) comment '用户工作空间' charset = utf8; INSERT INTO boot_engine.rule_engine_user_workspace (id, user_id, workspace_id, create_time, update_time, deleted) VALUES (2, '2', 2, '2020-11-22 03:53:37', '2020-11-22 03:53:39', 0); INSERT INTO boot_engine.rule_engine_user_workspace (id, user_id, workspace_id, create_time, update_time, deleted) VALUES (3, '3', 2, '2020-11-22 14:42:50', '2020-11-22 14:42:51', 0); INSERT INTO boot_engine.rule_engine_user_workspace (id, user_id, workspace_id, create_time, update_time, deleted) VALUES (4, '2', 1, '2020-11-22 14:50:33', '2020-11-22 14:50:34', 0); INSERT INTO boot_engine.rule_engine_user_workspace (id, user_id, workspace_id, create_time, update_time, deleted) VALUES (5, '3', 1, '2020-12-21 17:20:16', '2020-12-21 17:20:18', 0); create table rule_engine_variable ( id int auto_increment primary key, name varchar(50) not null, description varchar(500) null, value_type varchar(20) null, workspace_id int null, create_user_id int null, create_user_name varchar(50) null, type tinyint null, value varchar(2000) null, create_time timestamp null, update_time timestamp null, deleted tinyint null ) charset = utf8; create index rule_engine_variable_name_index on rule_engine_variable (name); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (34, '是否为空集合', null, 'BOOLEAN', 1, null, null, 3, '2', '2020-08-20 02:05:43', '2020-08-20 02:05:43', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (35, '审批人', null, 'COLLECTION', 1, null, null, 2, '123123,234234,123', '2020-08-24 22:12:53', '2020-12-30 14:53:01', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (36, '获取规则执行接口地址', null, 'STRING', 1, null, null, 2, 'http://ruleserver.cn/ruleEngine/execute', '2020-08-25 18:53:36', '2020-12-12 12:39:17', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (51, '测试变量', null, 'BOOLEAN', 1, null, null, 3, '1', '2020-08-27 23:27:06', '2020-08-27 23:27:06', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (52, '求绝对值', null, 'NUMBER', 1, null, null, 3, '7', '2020-08-28 14:47:28', '2020-08-28 14:47:28', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (54, '高级配置测试', null, 'NUMBER', 1, null, null, 3, '4', '2020-08-28 15:22:10', '2020-08-28 15:22:10', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (56, '是否开启', null, 'BOOLEAN', 1, null, null, 2, 'true', '2020-08-28 16:10:31', '2020-08-28 16:10:31', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (58, '求集合的大小', null, 'NUMBER', 1, null, null, 3, '4', '2020-08-29 01:22:06', '2020-08-29 01:28:39', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (70, '年龄在20-26之间的', null, 'BOOLEAN', 1, null, null, 3, '9', '2020-08-30 18:34:53', '2020-08-30 23:52:20', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (71, '是否为身份证', null, 'BOOLEAN', 1, null, null, 3, '17', '2020-09-01 13:58:26', '2020-09-04 19:38:53', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (73, '集合中最大值测试', null, 'NUMBER', 1, null, null, 3, '11', '2020-09-08 12:19:25', '2020-09-08 12:19:25', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (75, '平均值', null, 'NUMBER', 1, null, null, 3, '10', '2020-09-08 12:25:40', '2020-09-08 12:25:40', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (76, '号码长度', null, 'NUMBER', 1, null, null, 3, '13', '2020-09-10 18:11:06', '2020-09-10 18:11:06', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (77, '全局白名单', null, 'COLLECTION', 1, null, null, 2, '1343493849384,1371728378123,1340000000001', '2020-09-10 18:14:43', '2020-12-29 14:12:57', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (79, '验证是否为手机号码', null, 'BOOLEAN', 1, null, null, 3, '16', '2020-09-16 14:57:18', '2020-09-18 19:08:19', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (98, '求和测试', null, 'NUMBER', 1, null, null, 3, '15', '2020-12-01 18:18:31', '2020-12-01 18:20:32', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (103, '赠送积分', null, 'NUMBER', 1, null, null, 2, '123', '2020-12-07 16:14:08', '2020-12-07 16:18:50', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (112, '布尔值', '123', 'BOOLEAN', 1, 2, 'lq', 2, 'true', '2020-12-16 06:57:17', '2020-12-16 06:57:17', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (118, '年龄在7-11之间', null, 'BOOLEAN', 1, 1, 'dqw', 3, '9', '2020-12-25 04:07:45', '2020-12-25 04:07:45', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (120, '压力最小值', '压力最小值', 'NUMBER', 1, 2, 'lq', 2, '10', '2020-12-28 02:44:46', '2020-12-28 15:51:28', 0); INSERT INTO boot_engine.rule_engine_variable (id, name, description, value_type, workspace_id, create_user_id, create_user_name, type, value, create_time, update_time, deleted) VALUES (124, '发送**邮件', null, 'BOOLEAN', 1, 1, 'dqw', 3, '3', '2021-01-01 11:45:27', '2021-01-01 11:45:27', 0); create table rule_engine_workspace ( id int auto_increment primary key, code varchar(20) null, name varchar(30) not null, access_key_id varchar(100) null, access_key_secret varchar(100) null, description varchar(500) null, create_time timestamp null, update_time timestamp null, deleted tinyint null ) comment '工作空间' charset = utf8; INSERT INTO boot_engine.rule_engine_workspace (id, code, name, access_key_id, access_key_secret, description, create_time, update_time, deleted) VALUES (1, 'default', '默认工作空间', 'root', '123456', '默认的', '2020-11-21 02:41:33', '2020-11-21 02:41:34', 0); INSERT INTO boot_engine.rule_engine_workspace (id, code, name, access_key_id, access_key_secret, description, create_time, update_time, deleted) VALUES (2, 'test', '测试', 'gdfhdgfh', 'sdfasdfas', '供测试使用', '2020-11-21 19:36:12', '2020-11-21 19:36:13', 0); INSERT INTO boot_engine.rule_engine_workspace (id, code, name, access_key_id, access_key_secret, description, create_time, update_time, deleted) VALUES (4, 'prd', '线上', 'asdfasdf', 'asasdfasdfas', '请勿随意修改', '2020-11-07 21:49:36', '2020-11-07 21:49:38', 0); CREATE TABLE `rule_engine_rule_set` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, `code` varchar(50) DEFAULT NULL, `description` varchar(500) DEFAULT NULL, `workspace_id` int(11) DEFAULT NULL, `workspace_code` varchar(20) DEFAULT NULL, `status` tinyint(4) DEFAULT NULL, `strategy_type` tinyint null, `create_user_id` int(11) DEFAULT NULL, `create_user_name` varchar(100) DEFAULT NULL, `enable_default_rule` bigint(20) DEFAULT NULL, `default_rule_id` int(11) DEFAULT NULL, `create_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL, `deleted` tinyint(4) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=154 DEFAULT CHARSET=utf8; CREATE TABLE `rule_engine_rule_set_publish` ( `id` int(11) NOT NULL AUTO_INCREMENT, `rule_set_id` int(11) NOT NULL, `rule_set_code` varchar(50) DEFAULT NULL, `workspace_id` int(11) DEFAULT NULL, `workspace_code` varchar(20) DEFAULT NULL, `data` json DEFAULT NULL, `status` tinyint(4) DEFAULT NULL, `create_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL, `deleted` tinyint(4) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `rule_engine_rule_set_rule` ( `id` int(11) NOT NULL AUTO_INCREMENT, `rule_set_id` int(11) DEFAULT NULL, `rule_id` int(11) DEFAULT NULL, `order_no` int(11) DEFAULT NULL, `create_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL, `deleted` tinyint(4) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=154 DEFAULT CHARSET=utf8;
-- AlterTable ALTER TABLE `Collection` MODIFY `updatedAt` DATETIME(3) NOT NULL; -- AlterTable ALTER TABLE `CollectionAuthor` MODIFY `updatedAt` DATETIME(3) NOT NULL; -- AlterTable ALTER TABLE `CollectionStory` MODIFY `updatedAt` DATETIME(3) NOT NULL; -- AlterTable ALTER TABLE `Image` MODIFY `updatedAt` DATETIME(3) NOT NULL;
<filename>db_dump/photo_processing_db.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Хост: localhost -- Время создания: Ноя 01 2021 г., 02:16 -- Версия сервера: 8.0.25 -- Версия PHP: 8.0.8 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 */; -- -- База данных: `photo_processing_db` -- -- -------------------------------------------------------- -- -- Структура таблицы `migration` -- CREATE TABLE `migration` ( `version` varchar(180) NOT NULL, `apply_time` int DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -- -- Дамп данных таблицы `migration` -- INSERT INTO `migration` (`version`, `apply_time`) VALUES ('m000000_000000_base', 1635723569), ('yii\\queue\\db\\migrations\\M161119140200Queue', 1635723642), ('yii\\queue\\db\\migrations\\M170307170300Later', 1635723642), ('yii\\queue\\db\\migrations\\M170509001400Retry', 1635723642), ('yii\\queue\\db\\migrations\\M170601155600Priority', 1635723642); -- -------------------------------------------------------- -- -- Структура таблицы `queue` -- CREATE TABLE `queue` ( `id` int NOT NULL, `channel` varchar(255) NOT NULL, `job` blob NOT NULL, `pushed_at` int NOT NULL, `ttr` int NOT NULL, `delay` int NOT NULL DEFAULT '0', `priority` int UNSIGNED NOT NULL DEFAULT '1024', `reserved_at` int DEFAULT NULL, `attempt` int DEFAULT NULL, `done_at` int DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -- -------------------------------------------------------- -- -- Структура таблицы `results` -- CREATE TABLE `results` ( `task_id` int NOT NULL, `result` float NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -- -------------------------------------------------------- -- -- Структура таблицы `tasks` -- CREATE TABLE `tasks` ( `id` int NOT NULL, `status` set('wait','ready') NOT NULL DEFAULT 'wait' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -- -------------------------------------------------------- -- -- Структура таблицы `user_info` -- CREATE TABLE `user_info` ( `task_id` int NOT NULL, `user_name` varchar(100) NOT NULL, `file_name` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -- -- Индексы сохранённых таблиц -- -- -- Индексы таблицы `migration` -- ALTER TABLE `migration` ADD PRIMARY KEY (`version`); -- -- Индексы таблицы `queue` -- ALTER TABLE `queue` ADD PRIMARY KEY (`id`), ADD KEY `channel` (`channel`), ADD KEY `reserved_at` (`reserved_at`), ADD KEY `priority` (`priority`); -- -- Индексы таблицы `results` -- ALTER TABLE `results` ADD PRIMARY KEY (`task_id`); -- -- Индексы таблицы `tasks` -- ALTER TABLE `tasks` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `user_info` -- ALTER TABLE `user_info` ADD PRIMARY KEY (`task_id`), ADD UNIQUE KEY `user_name_2` (`user_name`,`file_name`), ADD KEY `user_name` (`user_name`,`file_name`); -- -- AUTO_INCREMENT для сохранённых таблиц -- -- -- AUTO_INCREMENT для таблицы `queue` -- ALTER TABLE `queue` MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35; -- -- AUTO_INCREMENT для таблицы `tasks` -- ALTER TABLE `tasks` MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33; -- -- Ограничения внешнего ключа сохраненных таблиц -- -- -- Ограничения внешнего ключа таблицы `results` -- ALTER TABLE `results` ADD CONSTRAINT `results_ibfk_1` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Ограничения внешнего ключа таблицы `user_info` -- ALTER TABLE `user_info` ADD CONSTRAINT `user_info_ibfk_1` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE ON UPDATE 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 */;
-- @testpoint:opengauss关键字where(保留),作为用户组名 --关键字不带引号-合理报错 drop group if exists where; create group where with password '<PASSWORD>'; --关键字带双引号-成功 drop group if exists "where"; create group "where" with password '<PASSWORD>'; --清理环境 drop group "where"; --关键字带单引号-合理报错 drop group if exists 'where'; create group 'where' with password '<PASSWORD>'; --关键字带反引号-合理报错 drop group if exists `where`; create group `where` with password '<PASSWORD>';
-- @testpoint: opengauss关键字trigger_schema(非保留),作为存储过程名,部分测试点合理报错 --关键字不带引号-成功 drop procedure if exists trigger_schema; create procedure trigger_schema( section number(6), salary_sum out number(8,2), staffs_count out integer) is begin select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; end; / drop procedure if exists trigger_schema; --关键字带双引号-成功 drop procedure if exists "trigger_schema"; create procedure "trigger_schema"( section number(6), salary_sum out number(8,2), staffs_count out integer) is begin select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; end; / drop procedure if exists "trigger_schema"; --关键字带单引号-合理报错 drop procedure if exists 'trigger_schema'; create procedure 'trigger_schema'( section number(6), salary_sum out number(8,2), staffs_count out integer) is begin select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; end; / --关键字带反引号-合理报错 drop procedure if exists `trigger_schema`; create procedure `trigger_schema`( section number(6), salary_sum out number(8,2), staffs_count out integer) is begin select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; end; /
create table feedbacks ( id bigserial primary key, create_time timestamptz not null default now(), user bigint references users (id), feedback text not null ); create index feedbacks_create_time_idx ON feedbacks (create_time); create index feedbacks_user_idx ON feedbacks (user);
-- Up CREATE TABLE "failed_extraction" ( id INTEGER PRIMARY KEY AUTOINCREMENT, searchQuery VARCHAR(255), title VARCHAR(255), errorMessage VARCHAR(255), pageSize INTEGER, page INTEGER, resultIndex INTEGER ); -- Down DROP TABLE "failed_extraction";
CREATE TABLE [dbo].[ExceptionLog] ( [ExceptionLogId] BIGINT NOT NULL CONSTRAINT PK_ExceptionLogId PRIMARY KEY IDENTITY, [Message] TEXT NOT NULL, [Exception] TEXT NOT NULL, [LoggedDateTime] DATETIMEOFFSET NOT NULL, [StackTrace] TEXT NOT NULL, [Url] TEXT NULL, [ApplicationName] NVARCHAR(50) NOT NULL, [ServerIP] NVARCHAR(50) NOT NULL, [RequestData] TEXT NULL )
UPDATE ewb_user SET hashed_password = $2, salt = $3 WHERE id = $1
DROP TABLE IF EXISTS #Stage CREATE TABLE #Stage ( Input int NOT NULL ) DROP TABLE IF EXISTS #Inputs CREATE TABLE #Inputs ( Id int IDENTITY NOT NULL , depth int NOT NULL ) BULK INSERT #Stage FROM 'D:\AdventOfCode2021\Day1\Input.csv' WITH ( FIRSTROW = 1, FIELDTERMINATOR = ',', --CSV field delimiter ROWTERMINATOR = '\n', --Use to shift the control to next row TABLOCK ) INSERT INTO #Inputs WITH (TABLOCKX) (depth) SELECT s.Input FROM #Stage AS s ;WITH leadInput AS ( SELECT depth , Id , LAG(depth) OVER(ORDER BY Id) AS lg , CASE WHEN depth > LAG(depth) OVER(ORDER BY Id) THEN 1 ELSE 0 END AS inc FROM #Inputs ) SELECT * FROM leadInput WHERE leadInput.inc = 1 ORDER BY Id
<reponame>omoghrabi/SQL_exercise select firstname,surname, joindate from Members where joindate = (select max(joindate) from Members)
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 07, 2018 at 04:50 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 7.0.8 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 */; -- -- Database: `matrimonial_db` -- -- -------------------------------------------------------- -- -- Table structure for table `tbl_admin` -- CREATE TABLE `tbl_admin` ( `aid` int(11) NOT NULL, `fname` varchar(30) NOT NULL, `mname` varchar(30) NOT NULL, `lname` varchar(30) NOT NULL, `uname` varchar(30) NOT NULL, `dob` date NOT NULL, `blood` int(11) NOT NULL, `gender` int(11) NOT NULL, `email` varchar(40) NOT NULL, `number1` varchar(20) NOT NULL, `number2` varchar(20) NOT NULL, `password` varchar(30) NOT NULL, `propic` varchar(100) NOT NULL, `joinning_date` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_admin` -- INSERT INTO `tbl_admin` (`aid`, `fname`, `mname`, `lname`, `uname`, `dob`, `blood`, `gender`, `email`, `number1`, `number2`, `password`, `propic`, `joinning_date`) VALUES (1, 'admin first', '', 'admin last', 'admin', '1995-01-11', 3, 2, '<EMAIL>', '016', '015', 'admin', 'propic/admin.jpg', '2017-01-01'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_blood` -- CREATE TABLE `tbl_blood` ( `id` int(11) NOT NULL, `bgroup` varchar(5) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_blood` -- INSERT INTO `tbl_blood` (`id`, `bgroup`) VALUES (1, 'A+'), (2, 'A-'), (7, 'AB+'), (8, 'AB-'), (5, 'B+'), (6, 'B-'), (3, 'O+'), (4, 'O-'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_complexion` -- CREATE TABLE `tbl_complexion` ( `id` int(11) NOT NULL, `type` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_complexion` -- INSERT INTO `tbl_complexion` (`id`, `type`) VALUES (4, 'Black'), (5, 'Caucasian'), (3, 'Dusty'), (2, 'Fair'), (1, 'white'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_degree` -- CREATE TABLE `tbl_degree` ( `id` int(11) NOT NULL, `degree` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_degree` -- INSERT INTO `tbl_degree` (`id`, `degree`) VALUES (8, 'B. Pharm'), (3, 'Bachelor'), (7, 'Diploma'), (2, 'H.S.C'), (5, 'Masters'), (6, 'Ph.D'), (1, 'S.S.C'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_district` -- CREATE TABLE `tbl_district` ( `id` int(11) NOT NULL, `name` varchar(50) NOT NULL, `division` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_district` -- INSERT INTO `tbl_district` (`id`, `name`, `division`) VALUES (1, 'Gazipur', 1), (2, 'Tangail', 1), (4, 'Pabna', 2), (5, 'Natore', 2), (6, 'Dhaka', 1), (7, 'Faridpur', 1), (8, 'Gopalganj', 1), (9, 'Narayang0nj', 1), (10, 'Bogra', 2), (11, 'Rajshahi', 2), (12, 'Pirojpur', 4); -- -------------------------------------------------------- -- -- Table structure for table `tbl_division` -- CREATE TABLE `tbl_division` ( `id` int(11) NOT NULL, `name` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_division` -- INSERT INTO `tbl_division` (`id`, `name`) VALUES (4, 'Barishal'), (6, 'Chittagang'), (1, 'Dhaka'), (3, 'Khulna'), (2, 'Rajshahi'), (7, 'Shobuj er bari'), (5, 'Sylhet'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_education` -- CREATE TABLE `tbl_education` ( `uid` int(11) NOT NULL, `degree` int(11) NOT NULL, `institution` varchar(50) DEFAULT NULL, `field` varchar(50) NOT NULL, `passing_year` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_education` -- INSERT INTO `tbl_education` (`uid`, `degree`, `institution`, `field`, `passing_year`) VALUES (1, 3, '', '', '0000-00-00'), (2, 1, 'IUB', 'asdf', '2017-12-01'), (3, 2, '<NAME>', 'Arts', '2017-12-01'), (4, 3, NULL, 'CSSE', NULL); -- -------------------------------------------------------- -- -- Table structure for table `tbl_family` -- CREATE TABLE `tbl_family` ( `uid` int(11) NOT NULL, `type` int(11) NOT NULL, `father_name` varchar(25) NOT NULL, `father_occupation` varchar(20) DEFAULT NULL, `father_income` int(11) DEFAULT NULL, `mother_name` varchar(25) NOT NULL, `mother_occupation` varchar(20) DEFAULT NULL, `mother_income` int(11) DEFAULT NULL, `contact` varchar(20) DEFAULT NULL, `siblings` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_family` -- INSERT INTO `tbl_family` (`uid`, `type`, `father_name`, `father_occupation`, `father_income`, `mother_name`, `mother_occupation`, `mother_income`, `contact`, `siblings`) VALUES (1, 3, 'Fahter', '', 0, '', '', 0, '', 0), (2, 1, 'name', 'job', 100, 'name', 'occ', 10, '02', 2), (3, 1, 'fat', 'focc', 500, 'mot', 'mocc', 500, '03', 2), (4, 3, 'Father', 'Teacher', NULL, 'Mother', NULL, NULL, NULL, 0); -- -------------------------------------------------------- -- -- Table structure for table `tbl_family_type` -- CREATE TABLE `tbl_family_type` ( `id` int(11) NOT NULL, `type` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_family_type` -- INSERT INTO `tbl_family_type` (`id`, `type`) VALUES (3, 'Extended'), (1, 'Join'), (4, 'N/A'), (2, 'Seperate'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_favorite` -- CREATE TABLE `tbl_favorite` ( `id` int(11) NOT NULL, `uid` int(11) NOT NULL, `favorite_user` int(11) NOT NULL, `date` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_favorite` -- INSERT INTO `tbl_favorite` (`id`, `uid`, `favorite_user`, `date`) VALUES (2, 3, 2, '2017-12-18'), (5, 4, 5, '2017-12-19'), (6, 7, 3, '2017-12-19'), (7, 10, 5, '2017-12-23'), (8, 16, 3, '2018-05-05'), (9, 1, 2, '2018-05-11'), (10, 7, 5, '2018-05-11'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_friend` -- CREATE TABLE `tbl_friend` ( `id` int(11) NOT NULL, `sender` int(11) NOT NULL, `send_to` int(11) NOT NULL, `date` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_friend` -- INSERT INTO `tbl_friend` (`id`, `sender`, `send_to`, `date`) VALUES (12, 2, 5, '2017-12-19'), (20, 2, 9, '2018-03-04'), (24, 1, 12, '2018-05-02'), (25, 14, 9, '2018-05-03'), (26, 3, 2, '2018-05-05'), (29, 7, 1, '2018-05-11'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_friend_req` -- CREATE TABLE `tbl_friend_req` ( `id` int(11) NOT NULL, `sender` int(11) NOT NULL, `send_to` int(11) NOT NULL, `date` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_friend_req` -- INSERT INTO `tbl_friend_req` (`id`, `sender`, `send_to`, `date`) VALUES (13, 16, 4, '2018-05-05'), (15, 3, 14, '2018-05-05'), (16, 5, 4, '2018-05-05'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_gender` -- CREATE TABLE `tbl_gender` ( `id` int(11) NOT NULL, `gender` varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_gender` -- INSERT INTO `tbl_gender` (`id`, `gender`) VALUES (2, 'Female'), (1, 'Male'), (3, 'Other'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_hobby` -- CREATE TABLE `tbl_hobby` ( `id` int(11) NOT NULL, `name` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_hobby` -- INSERT INTO `tbl_hobby` (`id`, `name`) VALUES (6, 'Collecting bank notes'), (2, 'Drawing'), (1, 'Fishing'), (7, 'Gaming'), (5, 'Gardenning'), (4, 'Hunting'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_interest` -- CREATE TABLE `tbl_interest` ( `id` int(11) NOT NULL, `name` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_interest` -- INSERT INTO `tbl_interest` (`id`, `name`) VALUES (1, 'astronomy'), (2, 'Shopping'), (5, 'Sleeping'), (3, 'Theatre'), (4, 'Traveling'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_job` -- CREATE TABLE `tbl_job` ( `uid` int(11) NOT NULL, `designation` varchar(20) DEFAULT NULL, `company` varchar(50) DEFAULT NULL, `joinning_date` date DEFAULT NULL, `annual_income` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_job` -- INSERT INTO `tbl_job` (`uid`, `designation`, `company`, `joinning_date`, `annual_income`) VALUES (1, '', '', '0000-00-00', NULL), (2, 'CEO', 'Simplex hub', '2016-12-01', 30000000), (3, 'Intern', 'AIUB', '2017-12-01', 130), (4, 'Jr. SE', NULL, '2018-05-01', NULL); -- -------------------------------------------------------- -- -- Table structure for table `tbl_login` -- CREATE TABLE `tbl_login` ( `uid` int(11) NOT NULL, `is_logged` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_login` -- INSERT INTO `tbl_login` (`uid`, `is_logged`) VALUES (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (7, 0); -- -------------------------------------------------------- -- -- Table structure for table `tbl_marital_status` -- CREATE TABLE `tbl_marital_status` ( `id` int(11) NOT NULL, `status` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_marital_status` -- INSERT INTO `tbl_marital_status` (`id`, `status`) VALUES (2, 'Married'), (1, 'Single'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_message` -- CREATE TABLE `tbl_message` ( `id` int(11) NOT NULL, `sender` int(11) NOT NULL, `send_to` int(11) NOT NULL, `time` datetime NOT NULL, `message` text NOT NULL, `is_seen` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_message` -- INSERT INTO `tbl_message` (`id`, `sender`, `send_to`, `time`, `message`, `is_seen`) VALUES (1, 3, 5, '2017-12-19 08:07:16', 'adsf', 1), (2, 3, 5, '2017-12-19 08:13:38', 'adsf', 1), (3, 5, 2, '2017-12-19 08:35:38', 'hi', 1), (4, 2, 5, '2017-12-19 08:36:17', 'hlw', 1), (5, 5, 2, '2017-12-19 08:37:46', 'how are you?', 1), (6, 2, 5, '2017-12-19 08:41:33', 'you know what?', 1), (7, 5, 2, '2017-12-19 08:47:27', 'what?', 1), (8, 2, 5, '2017-12-19 08:47:44', 'this is a test app?', 1), (9, 5, 2, '2017-12-19 08:47:58', 'really?\r\n', 1), (10, 5, 2, '2017-12-19 08:48:08', 'that is great', 1), (11, 7, 1, '2017-12-19 09:09:41', 'hey tushar', 1), (13, 1, 7, '2017-12-19 08:12:30', 'hlw masud', 1), (14, 1, 7, '2017-12-19 08:12:58', 'how is going ?', 1), (15, 7, 1, '2017-12-19 08:12:06', 'i m f9', 1), (16, 7, 1, '2017-12-19 08:12:17', 'what about you?', 1), (17, 1, 7, '2017-12-19 08:12:21', 'mee too', 1), (18, 2, 3, '2017-12-19 09:12:35', 'hlw siam', 1), (104, 4, 2, '2017-12-23 09:12:55', 'hey', 1), (105, 2, 4, '2017-12-23 09:12:36', 'hlw', 1), (106, 4, 2, '2017-12-23 09:12:46', 'what?', 1), (107, 2, 4, '2017-12-23 09:12:50', 'is not working', 1), (108, 4, 2, '2017-12-23 09:12:00', 'why?', 1), (109, 2, 4, '2017-12-23 10:12:10', 'try again', 1), (110, 2, 4, '2017-12-23 10:12:21', 'untill it works', 1), (111, 1, 7, '2017-12-31 12:12:31', 'hlw masud', 1), (112, 7, 1, '2017-12-31 12:12:32', 'hey', 1), (147, 1, 7, '2018-01-02 09:01:53', '0', 1), (148, 7, 1, '2018-01-02 09:01:59', '1', 1), (149, 7, 1, '2018-01-02 10:01:42', '?', 1), (150, 1, 7, '2018-01-02 10:01:01', 'hlw', 1), (151, 7, 1, '2018-01-02 10:01:19', 'hi', 1), (152, 1, 7, '2018-01-02 10:01:08', 'bainchod', 1), (153, 7, 1, '2018-01-02 10:01:19', '.', 1), (154, 7, 1, '2018-01-02 10:01:25', 'kjp', 1), (155, 1, 7, '2018-01-02 10:01:51', 'asdf', 1), (156, 1, 7, '2018-01-02 10:01:14', 'hlw masud', 1), (157, 1, 7, '2018-01-03 01:01:00', 'kire?', 1), (158, 7, 1, '2018-01-03 01:01:05', 'hm', 1), (159, 1, 7, '2018-01-03 11:01:50', 'adil', 1), (160, 7, 1, '2018-01-03 11:01:56', 'yup', 1), (161, 1, 2, '2018-01-03 03:01:41', '?', 1), (162, 2, 1, '2018-01-03 03:01:07', '?', 1), (163, 7, 1, '2018-01-15 05:01:37', 'a', 1), (164, 1, 7, '2018-01-15 05:01:46', 'b', 1), (165, 1, 2, '2018-04-19 04:04:56', 'ki obostha?', 1), (166, 1, 2, '2018-05-02 09:05:05', 'kire?', 1), (167, 14, 9, '2018-05-03 04:05:22', '<NAME>', 1), (168, 9, 14, '2018-05-03 04:05:37', 'kire?', 1), (169, 9, 14, '2018-05-03 04:05:46', 'ki obostha?', 1), (170, 14, 9, '2018-05-03 04:05:54', 'madarchod', 1), (171, 9, 2, '2018-05-03 04:05:20', 'hlw', 1), (172, 3, 7, '2018-05-05 00:45:27', 'asdf', 1), (173, 3, 7, '2018-05-05 00:50:57', 'hey', 1), (174, 3, 7, '2018-05-05 00:54:29', 'hlw', 1), (175, 7, 3, '2018-05-05 00:55:16', 'ki obostha?', 1), (176, 3, 7, '2018-05-05 01:40:47', 'asdf', 1), (177, 3, 7, '2018-05-05 01:41:50', 'asdf', 1), (178, 3, 7, '2018-05-05 01:45:07', 'check', 1), (179, 7, 3, '2018-05-05 01:46:38', 'ki hoise?', 1), (180, 7, 3, '2018-05-05 01:59:57', 'a', 1), (181, 7, 3, '2018-05-05 02:01:32', 'a', 1), (182, 3, 7, '2018-05-05 02:02:08', 'check chekc', 1), (183, 7, 3, '2018-05-05 02:06:53', 'a', 1), (184, 7, 3, '2018-05-05 02:08:42', 'b', 1), (185, 3, 7, '2018-05-05 02:11:06', 'check chekc', 1), (186, 7, 3, '2018-05-05 02:12:52', 'z', 1), (187, 7, 3, '2018-05-05 02:13:02', 'a', 1), (188, 3, 7, '2018-05-05 02:13:14', '1', 1), (189, 3, 7, '2018-05-05 02:13:20', '2', 1), (190, 7, 3, '2018-05-05 02:47:10', 'hoise?', 1), (191, 3, 7, '2018-05-05 02:47:25', 'bujhtesi na', 1), (192, 3, 7, '2018-05-05 02:47:33', 'mone hosse', 1), (193, 7, 3, '2018-05-05 02:48:33', 'hosse na', 1), (194, 7, 3, '2018-05-05 02:50:38', 'scroll e jhamela', 1), (195, 3, 7, '2018-05-05 02:50:49', 'sure?', 1), (196, 7, 3, '2018-05-05 02:53:27', 'sure', 1), (197, 3, 7, '2018-05-05 02:54:13', 'let me check', 1), (198, 3, 7, '2018-05-05 02:54:56', 'what about now?', 1), (199, 7, 3, '2018-05-05 02:55:09', 'yup, it''s working', 1), (200, 7, 3, '2018-05-05 02:56:17', 'there is another problem', 1), (201, 2, 3, '2018-05-05 09:15:48', 'hi', 1), (202, 3, 2, '2018-05-05 09:16:00', 'ki obostha?', 1), (203, 2, 3, '2018-05-05 09:16:12', 'eito', 1), (204, 3, 2, '2018-05-06 02:30:51', 'oiasdhfoih', 1), (205, 2, 5, '2018-05-06 03:05:29', 'hlw', 1), (206, 5, 2, '2018-05-06 03:05:47', 'hi', 1), (207, 2, 5, '2018-05-06 03:05:48', '', 1), (208, 2, 5, '2018-05-06 03:05:51', '', 1), (209, 2, 5, '2018-05-06 03:05:52', '', 1), (210, 2, 5, '2018-05-06 03:05:08', 'asdf', 1), (211, 2, 5, '2018-05-06 03:05:26', '', 1), (212, 2, 5, '2018-05-06 03:05:12', '', 1), (213, 2, 5, '2018-05-06 03:05:12', '', 1), (214, 7, 1, '2018-05-09 09:05:24', 'hlw', 1), (215, 1, 7, '2018-05-09 09:05:37', 'blw', 1), (216, 1, 7, '2018-05-09 09:05:49', '?', 1), (217, 7, 1, '2018-05-09 09:05:38', '?', 1), (218, 7, 1, '2018-05-09 09:05:00', '.', 1), (219, 7, 1, '2018-05-09 09:05:31', 'check', 1), (220, 7, 1, '2018-05-09 09:05:52', 'again', 1), (221, 7, 1, '2018-05-09 09:05:05', '', 1), (222, 7, 1, '2018-05-09 09:05:13', 'and', 1), (223, 1, 7, '2018-05-09 09:05:23', 'hoise?', 1), (224, 7, 1, '2018-05-09 09:05:15', 'mone hosse', 1), (225, 1, 7, '2018-05-09 09:05:23', 'hoise to', 1), (226, 1, 7, '2018-05-09 09:05:43', 'but still there are some problem', 1), (227, 5, 1, '2018-05-11 09:05:47', 'hi', 1), (228, 1, 5, '2018-05-11 09:05:57', 'hlw', 1), (229, 1, 12, '2018-05-11 11:05:32', 'hey shabuz', 1), (230, 7, 1, '2018-06-06 23:18:10', 'hlw', 1), (231, 1, 7, '2018-06-06 23:18:15', 'hi', 1); -- -------------------------------------------------------- -- -- Table structure for table `tbl_music` -- CREATE TABLE `tbl_music` ( `id` int(11) NOT NULL, `name` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_music` -- INSERT INTO `tbl_music` (`id`, `name`) VALUES (2, 'Band'), (1, 'Classic'), (3, 'Folk'), (4, 'Rock'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_password_token` -- CREATE TABLE `tbl_password_token` ( `id` int(11) NOT NULL, `email` varchar(100) NOT NULL, `token` text NOT NULL, `verified` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_password_token` -- INSERT INTO `tbl_password_token` (`id`, `email`, `token`, `verified`) VALUES (1, '<EMAIL>', 'e591bc4aced695834490d0254974685d0d2a79aa', 1), (2, '<EMAIL>', '4fba2d6505249f99ca3a5cb5fc72a8164a1fcac4', 0), (3, '<EMAIL>', '<PASSWORD>', 1), (4, '<EMAIL>', '916b9f5215bcb4b8182ae07a65f559a41979e690', 1); -- -------------------------------------------------------- -- -- Table structure for table `tbl_per_address` -- CREATE TABLE `tbl_per_address` ( `per_uid` int(11) NOT NULL, `per_house` varchar(20) DEFAULT NULL, `per_road` varchar(20) DEFAULT NULL, `per_area` varchar(30) DEFAULT NULL, `per_police_station` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_per_address` -- INSERT INTO `tbl_per_address` (`per_uid`, `per_house`, `per_road`, `per_area`, `per_police_station`) VALUES (1, '21', '02', 'Nikunja-2', 6), (2, '30', '2', 'Khilkhet', 1), (3, '2', '02', 'Takshal', NULL), (4, NULL, NULL, NULL, 9); -- -------------------------------------------------------- -- -- Table structure for table `tbl_police_station` -- CREATE TABLE `tbl_police_station` ( `id` int(11) NOT NULL, `name` varchar(50) NOT NULL, `district` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_police_station` -- INSERT INTO `tbl_police_station` (`id`, `name`, `district`) VALUES (1, 'Faridpur', 4), (2, '<NAME>', 1), (5, 'Pabna', 4), (6, 'Khilkhet', 6), (7, 'Chatmohor', 4), (8, 'Natore', 11), (9, 'Sherpur', 10); -- -------------------------------------------------------- -- -- Table structure for table `tbl_pr_address` -- CREATE TABLE `tbl_pr_address` ( `pr_uid` int(11) NOT NULL, `pr_house` varchar(10) DEFAULT NULL, `pr_road` varchar(10) DEFAULT NULL, `pr_area` varchar(30) DEFAULT NULL, `pr_police_station` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_pr_address` -- INSERT INTO `tbl_pr_address` (`pr_uid`, `pr_house`, `pr_road`, `pr_area`, `pr_police_station`) VALUES (1, '', '', '', 6), (2, '20', '1', 'Banani', 2), (3, '21', '0', '1924', 1), (4, NULL, NULL, NULL, 6), (10, 'w', 'w', 'w', 1); -- -------------------------------------------------------- -- -- Table structure for table `tbl_registration_req` -- CREATE TABLE `tbl_registration_req` ( `uid` int(11) NOT NULL, `fname` varchar(30) NOT NULL, `mname` varchar(30) DEFAULT NULL, `lname` varchar(30) NOT NULL, `uname` varchar(30) NOT NULL, `dob` date NOT NULL, `blood` int(11) NOT NULL, `gender` int(11) NOT NULL, `email` varchar(30) NOT NULL, `religion` int(11) NOT NULL, `number1` varchar(20) NOT NULL, `password` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `tbl_registration_token` -- CREATE TABLE `tbl_registration_token` ( `id` int(11) NOT NULL, `email` varchar(100) NOT NULL, `token` text NOT NULL, `verified` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_registration_token` -- INSERT INTO `tbl_registration_token` (`id`, `email`, `token`, `verified`) VALUES (9, '<EMAIL>', '<PASSWORD>', 1), (10, '<EMAIL>', '45f072da1a7b861f8404a2ff51203073f33ad552', 1), (11, '<EMAIL>', 'e899e5d830134e8844edea70007f6314d2d3e5e6', 0), (12, '<EMAIL>', '<PASSWORD>', 0); -- -------------------------------------------------------- -- -- Table structure for table `tbl_religion` -- CREATE TABLE `tbl_religion` ( `id` int(11) NOT NULL, `name` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_religion` -- INSERT INTO `tbl_religion` (`id`, `name`) VALUES (2, 'Hindu'), (1, 'Islam'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_search` -- CREATE TABLE `tbl_search` ( `id` int(11) NOT NULL, `uid` int(11) NOT NULL, `min_age` int(11) DEFAULT NULL, `max_age` int(11) DEFAULT NULL, `min_height` int(11) DEFAULT NULL, `max_height` int(11) DEFAULT NULL, `religion` int(11) DEFAULT NULL, `gender` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_search` -- INSERT INTO `tbl_search` (`id`, `uid`, `min_age`, `max_age`, `min_height`, `max_height`, `religion`, `gender`) VALUES (22, 2, NULL, NULL, NULL, NULL, NULL, 1), (23, 2, NULL, NULL, NULL, NULL, 2, 1), (24, 2, 18, 24, NULL, NULL, NULL, NULL), (25, 2, NULL, NULL, 4, 6, NULL, NULL), (26, 2, 20, 40, NULL, NULL, NULL, NULL), (27, 2, 18, 19, NULL, NULL, NULL, NULL), (28, 2, 18, 28, NULL, NULL, NULL, NULL), (29, 2, NULL, NULL, NULL, NULL, NULL, 2), (30, 2, NULL, NULL, NULL, NULL, 2, NULL), (31, 1, 18, 30, NULL, NULL, 1, 2), (32, 1, 18, 33, NULL, NULL, 2, 2), (33, 1, 18, 33, NULL, NULL, 1, 1), (34, 1, 18, 33, NULL, NULL, 1, 2), (35, 1, 18, 33, NULL, NULL, 2, 2), (36, 7, 18, 24, NULL, NULL, 1, 2), (37, 4, 18, 33, NULL, NULL, 1, 1), (38, 4, 23, 33, NULL, NULL, 1, 1), (39, 4, 23, 24, NULL, NULL, 1, 1), (40, 4, 23, 24, NULL, NULL, 1, 1), (41, 4, 23, 24, NULL, NULL, 1, 1), (42, 4, 18, 24, NULL, NULL, 1, 1), (43, 4, 23, 24, NULL, NULL, 1, 1), (44, 4, 23, 24, NULL, NULL, 1, 1), (45, 4, 23, 24, NULL, NULL, 1, 1), (46, 1, 18, 22, NULL, NULL, NULL, NULL), (47, 1, 18, 24, NULL, NULL, NULL, NULL), (48, 1, NULL, NULL, NULL, NULL, NULL, 2), (49, 1, NULL, NULL, NULL, NULL, NULL, 2), (50, 1, NULL, NULL, NULL, NULL, NULL, 1), (51, 1, NULL, NULL, NULL, NULL, NULL, 2), (52, 1, 18, 24, NULL, NULL, 1, 1), (53, 1, 18, 24, NULL, NULL, 1, 2), (54, 1, 18, 27, NULL, NULL, 1, 2), (55, 1, 18, 27, NULL, NULL, 1, 1), (56, 16, 18, 24, NULL, NULL, 1, 2), (57, 3, 18, 24, NULL, NULL, 1, 1), (58, 14, 24, 28, NULL, NULL, NULL, NULL), (59, 14, NULL, NULL, NULL, NULL, 1, NULL), (60, 1, 24, 28, NULL, NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `tbl_sports` -- CREATE TABLE `tbl_sports` ( `id` int(11) NOT NULL, `name` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_sports` -- INSERT INTO `tbl_sports` (`id`, `name`) VALUES (3, 'Badminton'), (1, 'cricket'), (2, 'Football'), (4, 'Soccer'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_users` -- CREATE TABLE `tbl_users` ( `uid` int(11) NOT NULL, `fname` varchar(30) NOT NULL, `mname` varchar(30) DEFAULT NULL, `lname` varchar(30) NOT NULL, `uname` varchar(30) NOT NULL, `dob` date NOT NULL, `blood` int(11) NOT NULL, `gender` int(11) NOT NULL, `email` varchar(30) NOT NULL, `number1` varchar(20) NOT NULL, `number2` varchar(20) DEFAULT NULL, `password` varchar(50) NOT NULL, `propic` varchar(50) NOT NULL, `height` float DEFAULT NULL, `weight` float DEFAULT NULL, `complexion` int(11) DEFAULT NULL, `religion` int(11) DEFAULT NULL, `marital_status` int(11) DEFAULT NULL, `children` int(11) DEFAULT NULL, `annual_income` int(11) DEFAULT NULL, `bio` text, `last_login` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_users` -- INSERT INTO `tbl_users` (`uid`, `fname`, `mname`, `lname`, `uname`, `dob`, `blood`, `gender`, `email`, `number1`, `number2`, `password`, `propic`, `height`, `weight`, `complexion`, `religion`, `marital_status`, `children`, `annual_income`, `bio`, `last_login`) VALUES (1, 'mushfiqur', '', 'tushar', 'user', '1995-02-01', 1, 1, '<EMAIL>', '01676167636', '', 'user', 'propic/user.png', 5.6, 70, 2, 1, 2, 0, 0, '', '2018-05-11 12:10:14'), (2, 'userf', 'userm', 'userl', 'u', '1990-01-02', 1, 1, '<EMAIL>', '0155', '0122', 'u', 'propic/u.jpg', 4, 55, 2, 1, 1, 2, 300000000, 'nothing', '2018-05-08 07:15:38'), (3, 'Siam', 'Hasan', 'Evan', 'a', '1995-12-05', 1, 2, '<EMAIL>', '11111111111', NULL, 'a', 'propic/a.png', 6, 70, 2, 1, 1, 900, 1300, '', '2018-05-05 03:36:27'), (4, 'Siam', 'Hasan', 'Evan', 'vv', '2001-12-18', 1, 1, '<EMAIL>', '01710987607', NULL, '0000', 'propic/vv.jpg', NULL, 60, 4, 1, 1, NULL, NULL, NULL, '2017-12-23 09:12:28'), (5, 'Ashik', 'Mahmud', 'Ashik', 'ashik', '1994-12-30', 1, 1, '<EMAIL>', '12345678', NULL, '1234', 'propic/ashik.jpg', NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, '2018-05-11 09:05:23'), (7, 'masud', '', 'rana', 'masud', '1990-01-01', 3, 1, '<EMAIL>', '0111111', NULL, 'masud', 'propic/masud.png', NULL, NULL, NULL, 2, NULL, NULL, NULL, NULL, '2018-05-11 12:09:50'), (9, 'jalal', 'middle', 'uddin', 'aser', '2017-12-07', 3, 3, '<EMAIL>', 'asdf', NULL, '1234', 'defaultpic/user.png', NULL, NULL, NULL, 2, NULL, NULL, NULL, NULL, '2018-05-03 04:06:02'), (10, '1', 'd', 'adminlast', 'dwd', '2017-12-11', 1, 1, 'ddd', 'ddd', NULL, '12', 'defaultpic/user.png', NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, '2017-12-23 11:12:52'), (12, 'shabuz', 'mohammad', 'badsha', 'shabuz', '1991-10-20', 3, 3, '<EMAIL>', '01711111111', NULL, 'shabuz', 'propic/shabuz.png', NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, '2018-05-11 11:53:18'), (14, 'pepe', 'charlie', 'sylvia', '<NAME>', '1999-01-01', 1, 1, '<EMAIL>', '01710987607', NULL, '11', 'propic/pepe sylvia.jpg', NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, '2018-05-09 05:05:09'), (15, 'Anna', NULL, 'eve', 'eve', '1991-05-09', 7, 2, '<EMAIL>', '54855844484', NULL, 'eve', 'defaultpic/user.png', NULL, NULL, NULL, 2, NULL, NULL, NULL, NULL, NULL), (16, 'thor', 'hammer', 'asgard', 'odinson1', '1992-05-01', 1, 1, '<EMAIL>.com', '01676167636', NULL, '1', 'propic/odinson1.jpg', NULL, NULL, 1, 1, 1, NULL, NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `tbl_user_hobby` -- CREATE TABLE `tbl_user_hobby` ( `uid` int(11) NOT NULL, `hobby` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_user_hobby` -- INSERT INTO `tbl_user_hobby` (`uid`, `hobby`) VALUES (2, 2), (2, 1), (10, 2), (10, 1), (10, 5), (10, 4), (16, 6), (4, 4), (3, 6), (3, 2), (3, 1), (14, 4), (1, 6), (1, 1), (1, 7), (1, 4); -- -------------------------------------------------------- -- -- Table structure for table `tbl_user_interest` -- CREATE TABLE `tbl_user_interest` ( `uid` int(11) NOT NULL, `interest` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_user_interest` -- INSERT INTO `tbl_user_interest` (`uid`, `interest`) VALUES (2, 1), (10, 1), (10, 2), (10, 3), (10, 4), (16, 1), (16, 4), (4, 1), (3, 1), (3, 2), (14, 4), (1, 1), (1, 5), (1, 3), (1, 4); -- -------------------------------------------------------- -- -- Table structure for table `tbl_user_music` -- CREATE TABLE `tbl_user_music` ( `uid` int(11) NOT NULL, `music` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_user_music` -- INSERT INTO `tbl_user_music` (`uid`, `music`) VALUES (2, 2), (10, 2), (10, 1), (10, 3), (16, 1), (4, 1), (3, 2), (3, 1), (14, 2), (14, 4), (1, 2), (1, 1), (1, 3), (1, 4); -- -------------------------------------------------------- -- -- Table structure for table `tbl_user_sports` -- CREATE TABLE `tbl_user_sports` ( `uid` int(11) NOT NULL, `sport` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_user_sports` -- INSERT INTO `tbl_user_sports` (`uid`, `sport`) VALUES (2, 2), (10, 3), (10, 1), (10, 2), (16, 3), (3, 2), (14, 1), (14, 4), (1, 3), (1, 2), (1, 4); -- -------------------------------------------------------- -- -- Table structure for table `tbl_warning` -- CREATE TABLE `tbl_warning` ( `id` int(11) NOT NULL, `aid` int(11) NOT NULL, `uid` int(11) NOT NULL, `message` text NOT NULL, `send_date` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Stand-in structure for view `view_admin_details` -- CREATE TABLE `view_admin_details` ( `aid` int(11) ,`fname` varchar(30) ,`mname` varchar(30) ,`lname` varchar(30) ,`uname` varchar(30) ,`dob` date ,`blood` int(11) ,`gender` int(11) ,`email` varchar(40) ,`number1` varchar(20) ,`number2` varchar(20) ,`password` varchar(30) ,`propic` varchar(100) ,`joinning_date` date ,`age` bigint(21) ,`job_in_month` bigint(21) ,`bgroup` varchar(5) ,`gender_name` varchar(10) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_admin_info` -- CREATE TABLE `view_admin_info` ( `aid` int(11) ,`fname` varchar(30) ,`mname` varchar(30) ,`lname` varchar(30) ,`uname` varchar(30) ,`dob` date ,`blood` int(11) ,`gender` int(11) ,`email` varchar(40) ,`number1` varchar(20) ,`number2` varchar(20) ,`password` varchar(30) ,`propic` varchar(100) ,`joinning_date` date ,`bgroup` varchar(5) ,`gender_name` varchar(10) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_family_details` -- CREATE TABLE `view_family_details` ( `uid` int(11) ,`type` int(11) ,`father_name` varchar(25) ,`father_occupation` varchar(20) ,`father_income` int(11) ,`mother_name` varchar(25) ,`mother_occupation` varchar(20) ,`mother_income` int(11) ,`contact` varchar(20) ,`siblings` int(11) ,`family_type` varchar(20) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_max_age` -- CREATE TABLE `view_max_age` ( `id` int(11) ,`uid` int(11) ,`min_age` int(11) ,`max_age` int(11) ,`min_height` int(11) ,`max_height` int(11) ,`religion` int(11) ,`gender` int(11) ,`counter` bigint(21) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_max_height` -- CREATE TABLE `view_max_height` ( `id` int(11) ,`uid` int(11) ,`min_age` int(11) ,`max_age` int(11) ,`min_height` int(11) ,`max_height` int(11) ,`religion` int(11) ,`gender` int(11) ,`counter` bigint(21) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_min_age` -- CREATE TABLE `view_min_age` ( `id` int(11) ,`uid` int(11) ,`min_age` int(11) ,`max_age` int(11) ,`min_height` int(11) ,`max_height` int(11) ,`religion` int(11) ,`gender` int(11) ,`counter` bigint(21) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_min_height` -- CREATE TABLE `view_min_height` ( `id` int(11) ,`uid` int(11) ,`min_age` int(11) ,`max_age` int(11) ,`min_height` int(11) ,`max_height` int(11) ,`religion` int(11) ,`gender` int(11) ,`counter` bigint(21) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_per_address_details` -- CREATE TABLE `view_per_address_details` ( `per_uid` int(11) ,`per_house` varchar(20) ,`per_road` varchar(20) ,`per_area` varchar(30) ,`per_police_station` int(11) ,`police_station_id` int(11) ,`police_station_name` varchar(50) ,`district_id` int(11) ,`district_name` varchar(50) ,`division_id` int(11) ,`division_name` varchar(50) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_police_station_details` -- CREATE TABLE `view_police_station_details` ( `police_station_id` int(11) ,`police_station_name` varchar(50) ,`district_id` int(11) ,`district_name` varchar(50) ,`division_id` int(11) ,`division_name` varchar(50) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_pr_address_details` -- CREATE TABLE `view_pr_address_details` ( `pr_uid` int(11) ,`pr_house` varchar(10) ,`pr_road` varchar(10) ,`pr_area` varchar(30) ,`pr_police_station` int(11) ,`police_station_id` int(11) ,`police_station_name` varchar(50) ,`district_id` int(11) ,`district_name` varchar(50) ,`division_id` int(11) ,`division_name` varchar(50) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_registration` -- CREATE TABLE `view_registration` ( `uid` int(11) ,`fname` varchar(30) ,`mname` varchar(30) ,`lname` varchar(30) ,`uname` varchar(30) ,`dob` date ,`blood` int(11) ,`gender` int(11) ,`email` varchar(30) ,`number1` varchar(20) ,`number2` varchar(20) ,`password` varchar(50) ,`propic` varchar(50) ,`height` float ,`weight` float ,`complexion` int(11) ,`religion` int(11) ,`marital_status` int(11) ,`children` int(11) ,`annual_income` int(11) ,`bio` text ,`age` bigint(21) ,`bgroup` varchar(5) ,`gender_name` varchar(10) ,`religion_name` varchar(20) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_registration_req` -- CREATE TABLE `view_registration_req` ( `uid` int(11) ,`fname` varchar(30) ,`mname` varchar(30) ,`lname` varchar(30) ,`uname` varchar(30) ,`dob` date ,`blood` int(11) ,`gender` int(11) ,`email` varchar(30) ,`religion` int(11) ,`number1` varchar(20) ,`password` varchar(20) ,`age` bigint(21) ,`bgroup` varchar(5) ,`gender_name` varchar(10) ,`religion_name` varchar(20) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_user_details` -- CREATE TABLE `view_user_details` ( `uid` int(11) ,`fname` varchar(30) ,`mname` varchar(30) ,`lname` varchar(30) ,`uname` varchar(30) ,`dob` date ,`blood` int(11) ,`gender` int(11) ,`email` varchar(30) ,`number1` varchar(20) ,`number2` varchar(20) ,`password` varchar(50) ,`propic` varchar(50) ,`height` float ,`weight` float ,`complexion` int(11) ,`religion` int(11) ,`marital_status` int(11) ,`children` int(11) ,`annual_income` int(11) ,`bio` text ,`age` int(9) ,`gender_name` varchar(10) ,`religion_name` varchar(20) ,`bgroup_name` varchar(5) ,`complexion_name` varchar(20) ,`marital_status_name` varchar(50) ,`pr_house` varchar(10) ,`pr_road` varchar(10) ,`pr_area` varchar(30) ,`pr_police_station` int(11) ,`per_house` varchar(20) ,`per_road` varchar(20) ,`per_area` varchar(30) ,`per_police_station` int(11) ,`designation` varchar(20) ,`company` varchar(50) ,`joinning_date` date ,`degree` int(11) ,`institution` varchar(50) ,`field` varchar(50) ,`passing_year` date ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_user_education` -- CREATE TABLE `view_user_education` ( `uid` int(11) ,`degree` int(11) ,`institution` varchar(50) ,`field` varchar(50) ,`passing_year` date ,`degree_name` varchar(50) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_user_hobby` -- CREATE TABLE `view_user_hobby` ( `uid` int(11) ,`hobby` int(11) ,`hobby_name` varchar(30) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_user_interest` -- CREATE TABLE `view_user_interest` ( `uid` int(11) ,`interest` int(11) ,`interest_name` varchar(20) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_user_music` -- CREATE TABLE `view_user_music` ( `uid` int(11) ,`music` int(11) ,`music_name` varchar(30) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `view_user_sports` -- CREATE TABLE `view_user_sports` ( `uid` int(11) ,`sport` int(11) ,`sports_name` varchar(20) ); -- -------------------------------------------------------- -- -- Structure for view `view_admin_details` -- DROP TABLE IF EXISTS `view_admin_details`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_admin_details` AS select `tbl_admin`.`aid` AS `aid`,`tbl_admin`.`fname` AS `fname`,`tbl_admin`.`mname` AS `mname`,`tbl_admin`.`lname` AS `lname`,`tbl_admin`.`uname` AS `uname`,`tbl_admin`.`dob` AS `dob`,`tbl_admin`.`blood` AS `blood`,`tbl_admin`.`gender` AS `gender`,`tbl_admin`.`email` AS `email`,`tbl_admin`.`number1` AS `number1`,`tbl_admin`.`number2` AS `number2`,`tbl_admin`.`password` AS `password`,`tbl_admin`.`propic` AS `propic`,`tbl_admin`.`joinning_date` AS `joinning_date`,timestampdiff(YEAR,`tbl_admin`.`dob`,curdate()) AS `age`,timestampdiff(MONTH,`tbl_admin`.`joinning_date`,curdate()) AS `job_in_month`,`tbl_blood`.`bgroup` AS `bgroup`,`tbl_gender`.`gender` AS `gender_name` from ((`tbl_admin` join `tbl_blood`) join `tbl_gender`) where ((`tbl_admin`.`blood` = `tbl_blood`.`id`) and (`tbl_admin`.`gender` = `tbl_gender`.`id`)) ; -- -------------------------------------------------------- -- -- Structure for view `view_admin_info` -- DROP TABLE IF EXISTS `view_admin_info`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_admin_info` AS select `tbl_admin`.`aid` AS `aid`,`tbl_admin`.`fname` AS `fname`,`tbl_admin`.`mname` AS `mname`,`tbl_admin`.`lname` AS `lname`,`tbl_admin`.`uname` AS `uname`,`tbl_admin`.`dob` AS `dob`,`tbl_admin`.`blood` AS `blood`,`tbl_admin`.`gender` AS `gender`,`tbl_admin`.`email` AS `email`,`tbl_admin`.`number1` AS `number1`,`tbl_admin`.`number2` AS `number2`,`tbl_admin`.`password` AS `password`,`tbl_admin`.`propic` AS `propic`,`tbl_admin`.`joinning_date` AS `joinning_date`,`tbl_blood`.`bgroup` AS `bgroup`,`tbl_gender`.`gender` AS `gender_name` from ((`tbl_admin` join `tbl_blood`) join `tbl_gender`) where ((`tbl_admin`.`blood` = `tbl_blood`.`id`) and (`tbl_admin`.`gender` = `tbl_gender`.`id`)) ; -- -------------------------------------------------------- -- -- Structure for view `view_family_details` -- DROP TABLE IF EXISTS `view_family_details`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_family_details` AS select `tbl_family`.`uid` AS `uid`,`tbl_family`.`type` AS `type`,`tbl_family`.`father_name` AS `father_name`,`tbl_family`.`father_occupation` AS `father_occupation`,`tbl_family`.`father_income` AS `father_income`,`tbl_family`.`mother_name` AS `mother_name`,`tbl_family`.`mother_occupation` AS `mother_occupation`,`tbl_family`.`mother_income` AS `mother_income`,`tbl_family`.`contact` AS `contact`,`tbl_family`.`siblings` AS `siblings`,`tbl_family_type`.`type` AS `family_type` from (`tbl_family` join `tbl_family_type`) where (`tbl_family`.`type` = `tbl_family_type`.`id`) ; -- -------------------------------------------------------- -- -- Structure for view `view_max_age` -- DROP TABLE IF EXISTS `view_max_age`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_max_age` AS select `tbl_search`.`id` AS `id`,`tbl_search`.`uid` AS `uid`,`tbl_search`.`min_age` AS `min_age`,`tbl_search`.`max_age` AS `max_age`,`tbl_search`.`min_height` AS `min_height`,`tbl_search`.`max_height` AS `max_height`,`tbl_search`.`religion` AS `religion`,`tbl_search`.`gender` AS `gender`,count(0) AS `counter` from `tbl_search` where (`tbl_search`.`max_age` is not null) group by `tbl_search`.`max_age` order by count(0) desc ; -- -------------------------------------------------------- -- -- Structure for view `view_max_height` -- DROP TABLE IF EXISTS `view_max_height`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_max_height` AS select `tbl_search`.`id` AS `id`,`tbl_search`.`uid` AS `uid`,`tbl_search`.`min_age` AS `min_age`,`tbl_search`.`max_age` AS `max_age`,`tbl_search`.`min_height` AS `min_height`,`tbl_search`.`max_height` AS `max_height`,`tbl_search`.`religion` AS `religion`,`tbl_search`.`gender` AS `gender`,count(0) AS `counter` from `tbl_search` where (`tbl_search`.`max_height` is not null) group by `tbl_search`.`max_height` order by count(0) desc ; -- -------------------------------------------------------- -- -- Structure for view `view_min_age` -- DROP TABLE IF EXISTS `view_min_age`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_min_age` AS select `tbl_search`.`id` AS `id`,`tbl_search`.`uid` AS `uid`,`tbl_search`.`min_age` AS `min_age`,`tbl_search`.`max_age` AS `max_age`,`tbl_search`.`min_height` AS `min_height`,`tbl_search`.`max_height` AS `max_height`,`tbl_search`.`religion` AS `religion`,`tbl_search`.`gender` AS `gender`,count(0) AS `counter` from `tbl_search` where (`tbl_search`.`min_age` is not null) group by `tbl_search`.`min_age` order by count(0) desc ; -- -------------------------------------------------------- -- -- Structure for view `view_min_height` -- DROP TABLE IF EXISTS `view_min_height`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_min_height` AS select `tbl_search`.`id` AS `id`,`tbl_search`.`uid` AS `uid`,`tbl_search`.`min_age` AS `min_age`,`tbl_search`.`max_age` AS `max_age`,`tbl_search`.`min_height` AS `min_height`,`tbl_search`.`max_height` AS `max_height`,`tbl_search`.`religion` AS `religion`,`tbl_search`.`gender` AS `gender`,count(0) AS `counter` from `tbl_search` where (`tbl_search`.`min_height` is not null) group by `tbl_search`.`min_height` order by count(0) desc ; -- -------------------------------------------------------- -- -- Structure for view `view_per_address_details` -- DROP TABLE IF EXISTS `view_per_address_details`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_per_address_details` AS select `tbl_per_address`.`per_uid` AS `per_uid`,`tbl_per_address`.`per_house` AS `per_house`,`tbl_per_address`.`per_road` AS `per_road`,`tbl_per_address`.`per_area` AS `per_area`,`tbl_per_address`.`per_police_station` AS `per_police_station`,`view_police_station_details`.`police_station_id` AS `police_station_id`,`view_police_station_details`.`police_station_name` AS `police_station_name`,`view_police_station_details`.`district_id` AS `district_id`,`view_police_station_details`.`district_name` AS `district_name`,`view_police_station_details`.`division_id` AS `division_id`,`view_police_station_details`.`division_name` AS `division_name` from (`tbl_per_address` join `view_police_station_details`) where (`tbl_per_address`.`per_police_station` = `view_police_station_details`.`police_station_id`) ; -- -------------------------------------------------------- -- -- Structure for view `view_police_station_details` -- DROP TABLE IF EXISTS `view_police_station_details`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_police_station_details` AS select `tbl_police_station`.`id` AS `police_station_id`,`tbl_police_station`.`name` AS `police_station_name`,`tbl_district`.`id` AS `district_id`,`tbl_district`.`name` AS `district_name`,`tbl_division`.`id` AS `division_id`,`tbl_division`.`name` AS `division_name` from ((`tbl_police_station` join `tbl_district`) join `tbl_division`) where ((`tbl_police_station`.`district` = `tbl_district`.`id`) and (`tbl_district`.`division` = `tbl_division`.`id`)) ; -- -------------------------------------------------------- -- -- Structure for view `view_pr_address_details` -- DROP TABLE IF EXISTS `view_pr_address_details`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_pr_address_details` AS select `tbl_pr_address`.`pr_uid` AS `pr_uid`,`tbl_pr_address`.`pr_house` AS `pr_house`,`tbl_pr_address`.`pr_road` AS `pr_road`,`tbl_pr_address`.`pr_area` AS `pr_area`,`tbl_pr_address`.`pr_police_station` AS `pr_police_station`,`view_police_station_details`.`police_station_id` AS `police_station_id`,`view_police_station_details`.`police_station_name` AS `police_station_name`,`view_police_station_details`.`district_id` AS `district_id`,`view_police_station_details`.`district_name` AS `district_name`,`view_police_station_details`.`division_id` AS `division_id`,`view_police_station_details`.`division_name` AS `division_name` from (`tbl_pr_address` join `view_police_station_details`) where (`tbl_pr_address`.`pr_police_station` = `view_police_station_details`.`police_station_id`) ; -- -------------------------------------------------------- -- -- Structure for view `view_registration` -- DROP TABLE IF EXISTS `view_registration`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_registration` AS select `tbl_users`.`uid` AS `uid`,`tbl_users`.`fname` AS `fname`,`tbl_users`.`mname` AS `mname`,`tbl_users`.`lname` AS `lname`,`tbl_users`.`uname` AS `uname`,`tbl_users`.`dob` AS `dob`,`tbl_users`.`blood` AS `blood`,`tbl_users`.`gender` AS `gender`,`tbl_users`.`email` AS `email`,`tbl_users`.`number1` AS `number1`,`tbl_users`.`number2` AS `number2`,`tbl_users`.`password` AS `password`,`tbl_users`.`propic` AS `propic`,`tbl_users`.`height` AS `height`,`tbl_users`.`weight` AS `weight`,`tbl_users`.`complexion` AS `complexion`,`tbl_users`.`religion` AS `religion`,`tbl_users`.`marital_status` AS `marital_status`,`tbl_users`.`children` AS `children`,`tbl_users`.`annual_income` AS `annual_income`,`tbl_users`.`bio` AS `bio`,timestampdiff(YEAR,`tbl_users`.`dob`,curdate()) AS `age`,`tbl_blood`.`bgroup` AS `bgroup`,`tbl_gender`.`gender` AS `gender_name`,`tbl_religion`.`name` AS `religion_name` from (((`tbl_users` join `tbl_blood`) join `tbl_gender`) join `tbl_religion`) where ((`tbl_blood`.`id` = `tbl_users`.`blood`) and (`tbl_users`.`gender` = `tbl_gender`.`id`) and (`tbl_religion`.`id` = `tbl_users`.`religion`)) ; -- -------------------------------------------------------- -- -- Structure for view `view_registration_req` -- DROP TABLE IF EXISTS `view_registration_req`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_registration_req` AS select `tbl_registration_req`.`uid` AS `uid`,`tbl_registration_req`.`fname` AS `fname`,`tbl_registration_req`.`mname` AS `mname`,`tbl_registration_req`.`lname` AS `lname`,`tbl_registration_req`.`uname` AS `uname`,`tbl_registration_req`.`dob` AS `dob`,`tbl_registration_req`.`blood` AS `blood`,`tbl_registration_req`.`gender` AS `gender`,`tbl_registration_req`.`email` AS `email`,`tbl_registration_req`.`religion` AS `religion`,`tbl_registration_req`.`number1` AS `number1`,`tbl_registration_req`.`password` AS `password`,timestampdiff(YEAR,`tbl_registration_req`.`dob`,curdate()) AS `age`,`tbl_blood`.`bgroup` AS `bgroup`,`tbl_gender`.`gender` AS `gender_name`,`tbl_religion`.`name` AS `religion_name` from (((`tbl_registration_req` join `tbl_blood`) join `tbl_gender`) join `tbl_religion`) where ((`tbl_registration_req`.`blood` = `tbl_blood`.`id`) and (`tbl_registration_req`.`gender` = `tbl_gender`.`id`) and (`tbl_registration_req`.`religion` = `tbl_religion`.`id`)) ; -- -------------------------------------------------------- -- -- Structure for view `view_user_details` -- DROP TABLE IF EXISTS `view_user_details`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_user_details` AS select `tbl_users`.`uid` AS `uid`,`tbl_users`.`fname` AS `fname`,`tbl_users`.`mname` AS `mname`,`tbl_users`.`lname` AS `lname`,`tbl_users`.`uname` AS `uname`,`tbl_users`.`dob` AS `dob`,`tbl_users`.`blood` AS `blood`,`tbl_users`.`gender` AS `gender`,`tbl_users`.`email` AS `email`,`tbl_users`.`number1` AS `number1`,`tbl_users`.`number2` AS `number2`,`tbl_users`.`password` AS `password`,`tbl_users`.`propic` AS `propic`,`tbl_users`.`height` AS `height`,`tbl_users`.`weight` AS `weight`,`tbl_users`.`complexion` AS `complexion`,`tbl_users`.`religion` AS `religion`,`tbl_users`.`marital_status` AS `marital_status`,`tbl_users`.`children` AS `children`,`tbl_users`.`annual_income` AS `annual_income`,`tbl_users`.`bio` AS `bio`,floor(((to_days(curdate()) - to_days(`tbl_users`.`dob`)) / 365)) AS `age`,`tbl_gender`.`gender` AS `gender_name`,`tbl_religion`.`name` AS `religion_name`,`tbl_blood`.`bgroup` AS `bgroup_name`,`tbl_complexion`.`type` AS `complexion_name`,`tbl_marital_status`.`status` AS `marital_status_name`,`tbl_pr_address`.`pr_house` AS `pr_house`,`tbl_pr_address`.`pr_road` AS `pr_road`,`tbl_pr_address`.`pr_area` AS `pr_area`,`tbl_pr_address`.`pr_police_station` AS `pr_police_station`,`tbl_per_address`.`per_house` AS `per_house`,`tbl_per_address`.`per_road` AS `per_road`,`tbl_per_address`.`per_area` AS `per_area`,`tbl_per_address`.`per_police_station` AS `per_police_station`,`tbl_job`.`designation` AS `designation`,`tbl_job`.`company` AS `company`,`tbl_job`.`joinning_date` AS `joinning_date`,`tbl_education`.`degree` AS `degree`,`tbl_education`.`institution` AS `institution`,`tbl_education`.`field` AS `field`,`tbl_education`.`passing_year` AS `passing_year` from (((((((((`tbl_users` join `tbl_gender`) join `tbl_religion`) join `tbl_blood`) join `tbl_complexion`) join `tbl_marital_status`) join `tbl_pr_address`) join `tbl_per_address`) join `tbl_job`) join `tbl_education`) where ((`tbl_users`.`gender` = `tbl_gender`.`id`) and (`tbl_users`.`religion` = `tbl_religion`.`id`) and (`tbl_users`.`blood` = `tbl_blood`.`id`) and (`tbl_users`.`complexion` = `tbl_complexion`.`id`) and (`tbl_users`.`marital_status` = `tbl_marital_status`.`id`) and (`tbl_users`.`uid` = `tbl_pr_address`.`pr_uid`) and (`tbl_users`.`uid` = `tbl_per_address`.`per_uid`) and (`tbl_users`.`uid` = `tbl_job`.`uid`) and (`tbl_users`.`uid` = `tbl_education`.`uid`)) ; -- -------------------------------------------------------- -- -- Structure for view `view_user_education` -- DROP TABLE IF EXISTS `view_user_education`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_user_education` AS select `tbl_education`.`uid` AS `uid`,`tbl_education`.`degree` AS `degree`,`tbl_education`.`institution` AS `institution`,`tbl_education`.`field` AS `field`,`tbl_education`.`passing_year` AS `passing_year`,`tbl_degree`.`degree` AS `degree_name` from (`tbl_education` join `tbl_degree`) where (`tbl_education`.`degree` = `tbl_degree`.`id`) ; -- -------------------------------------------------------- -- -- Structure for view `view_user_hobby` -- DROP TABLE IF EXISTS `view_user_hobby`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_user_hobby` AS select `tbl_user_hobby`.`uid` AS `uid`,`tbl_user_hobby`.`hobby` AS `hobby`,`tbl_hobby`.`name` AS `hobby_name` from (`tbl_user_hobby` join `tbl_hobby`) where (`tbl_user_hobby`.`hobby` = `tbl_hobby`.`id`) ; -- -------------------------------------------------------- -- -- Structure for view `view_user_interest` -- DROP TABLE IF EXISTS `view_user_interest`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_user_interest` AS select `tbl_user_interest`.`uid` AS `uid`,`tbl_user_interest`.`interest` AS `interest`,`tbl_interest`.`name` AS `interest_name` from (`tbl_user_interest` join `tbl_interest`) where (`tbl_user_interest`.`interest` = `tbl_interest`.`id`) ; -- -------------------------------------------------------- -- -- Structure for view `view_user_music` -- DROP TABLE IF EXISTS `view_user_music`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_user_music` AS select `tbl_user_music`.`uid` AS `uid`,`tbl_user_music`.`music` AS `music`,`tbl_music`.`name` AS `music_name` from (`tbl_user_music` join `tbl_music`) where (`tbl_user_music`.`music` = `tbl_music`.`id`) ; -- -------------------------------------------------------- -- -- Structure for view `view_user_sports` -- DROP TABLE IF EXISTS `view_user_sports`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_user_sports` AS select `tbl_user_sports`.`uid` AS `uid`,`tbl_user_sports`.`sport` AS `sport`,`tbl_sports`.`name` AS `sports_name` from (`tbl_user_sports` join `tbl_sports`) where (`tbl_user_sports`.`sport` = `tbl_sports`.`id`) ; -- -- Indexes for dumped tables -- -- -- Indexes for table `tbl_admin` -- ALTER TABLE `tbl_admin` ADD PRIMARY KEY (`aid`), ADD UNIQUE KEY `uname` (`uname`), ADD UNIQUE KEY `email` (`email`), ADD KEY `blood` (`blood`), ADD KEY `id` (`aid`), ADD KEY `gender` (`gender`); -- -- Indexes for table `tbl_blood` -- ALTER TABLE `tbl_blood` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `bgroup` (`bgroup`), ADD KEY `id` (`id`); -- -- Indexes for table `tbl_complexion` -- ALTER TABLE `tbl_complexion` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `type` (`type`), ADD KEY `id` (`id`); -- -- Indexes for table `tbl_degree` -- ALTER TABLE `tbl_degree` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `degree` (`degree`), ADD KEY `id` (`id`); -- -- Indexes for table `tbl_district` -- ALTER TABLE `tbl_district` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `name` (`name`), ADD KEY `id` (`id`), ADD KEY `division` (`division`); -- -- Indexes for table `tbl_division` -- ALTER TABLE `tbl_division` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `name` (`name`), ADD KEY `id` (`id`); -- -- Indexes for table `tbl_education` -- ALTER TABLE `tbl_education` ADD UNIQUE KEY `user_id` (`uid`), ADD KEY `user_id_2` (`uid`), ADD KEY `degree` (`degree`); -- -- Indexes for table `tbl_family` -- ALTER TABLE `tbl_family` ADD UNIQUE KEY `user_id` (`uid`), ADD KEY `user_id_2` (`uid`), ADD KEY `type_2` (`type`); -- -- Indexes for table `tbl_family_type` -- ALTER TABLE `tbl_family_type` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `type` (`type`), ADD KEY `id` (`id`); -- -- Indexes for table `tbl_favorite` -- ALTER TABLE `tbl_favorite` ADD PRIMARY KEY (`id`), ADD KEY `user_id` (`uid`), ADD KEY `favorite_user` (`favorite_user`); -- -- Indexes for table `tbl_friend` -- ALTER TABLE `tbl_friend` ADD PRIMARY KEY (`id`), ADD KEY `user_id1` (`sender`), ADD KEY `user_id2` (`send_to`); -- -- Indexes for table `tbl_friend_req` -- ALTER TABLE `tbl_friend_req` ADD PRIMARY KEY (`id`), ADD KEY `sender` (`sender`), ADD KEY `send_to` (`send_to`); -- -- Indexes for table `tbl_gender` -- ALTER TABLE `tbl_gender` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `gender` (`gender`), ADD KEY `id` (`id`); -- -- Indexes for table `tbl_hobby` -- ALTER TABLE `tbl_hobby` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `name` (`name`), ADD KEY `id` (`id`); -- -- Indexes for table `tbl_interest` -- ALTER TABLE `tbl_interest` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `name` (`name`), ADD KEY `id` (`id`); -- -- Indexes for table `tbl_job` -- ALTER TABLE `tbl_job` ADD UNIQUE KEY `user_id` (`uid`), ADD KEY `user_id_2` (`uid`); -- -- Indexes for table `tbl_login` -- ALTER TABLE `tbl_login` ADD UNIQUE KEY `uid` (`uid`), ADD KEY `uid_2` (`uid`); -- -- Indexes for table `tbl_marital_status` -- ALTER TABLE `tbl_marital_status` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `status` (`status`), ADD KEY `id` (`id`); -- -- Indexes for table `tbl_message` -- ALTER TABLE `tbl_message` ADD PRIMARY KEY (`id`), ADD KEY `sender` (`sender`), ADD KEY `send_to` (`send_to`); -- -- Indexes for table `tbl_music` -- ALTER TABLE `tbl_music` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `name` (`name`), ADD KEY `id` (`id`), ADD KEY `id_2` (`id`); -- -- Indexes for table `tbl_password_token` -- ALTER TABLE `tbl_password_token` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_per_address` -- ALTER TABLE `tbl_per_address` ADD UNIQUE KEY `per_user_id` (`per_uid`), ADD KEY `per_user_id_2` (`per_uid`), ADD KEY `per_police_station` (`per_police_station`); -- -- Indexes for table `tbl_police_station` -- ALTER TABLE `tbl_police_station` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `name` (`name`), ADD KEY `id` (`id`), ADD KEY `district` (`district`); -- -- Indexes for table `tbl_pr_address` -- ALTER TABLE `tbl_pr_address` ADD UNIQUE KEY `user_id` (`pr_uid`), ADD KEY `user_id_2` (`pr_uid`), ADD KEY `police_station` (`pr_police_station`); -- -- Indexes for table `tbl_registration_req` -- ALTER TABLE `tbl_registration_req` ADD PRIMARY KEY (`uid`); -- -- Indexes for table `tbl_registration_token` -- ALTER TABLE `tbl_registration_token` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_religion` -- ALTER TABLE `tbl_religion` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `name` (`name`), ADD KEY `id` (`id`); -- -- Indexes for table `tbl_search` -- ALTER TABLE `tbl_search` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_sports` -- ALTER TABLE `tbl_sports` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `name` (`name`), ADD KEY `id` (`id`); -- -- Indexes for table `tbl_users` -- ALTER TABLE `tbl_users` ADD PRIMARY KEY (`uid`), ADD UNIQUE KEY `email` (`email`), ADD KEY `blood` (`blood`), ADD KEY `id` (`uid`), ADD KEY `marital_status` (`marital_status`), ADD KEY `religion` (`religion`), ADD KEY `complexion` (`complexion`), ADD KEY `gender` (`gender`); -- -- Indexes for table `tbl_user_hobby` -- ALTER TABLE `tbl_user_hobby` ADD KEY `user_id` (`uid`), ADD KEY `hobby` (`hobby`); -- -- Indexes for table `tbl_user_interest` -- ALTER TABLE `tbl_user_interest` ADD KEY `user_id` (`uid`), ADD KEY `interest` (`interest`); -- -- Indexes for table `tbl_user_music` -- ALTER TABLE `tbl_user_music` ADD KEY `user_id` (`uid`), ADD KEY `music` (`music`); -- -- Indexes for table `tbl_user_sports` -- ALTER TABLE `tbl_user_sports` ADD KEY `user_id` (`uid`), ADD KEY `sport` (`sport`); -- -- Indexes for table `tbl_warning` -- ALTER TABLE `tbl_warning` ADD PRIMARY KEY (`id`), ADD KEY `admin_id` (`aid`), ADD KEY `user_id` (`uid`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `tbl_admin` -- ALTER TABLE `tbl_admin` MODIFY `aid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `tbl_blood` -- ALTER TABLE `tbl_blood` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `tbl_complexion` -- ALTER TABLE `tbl_complexion` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `tbl_degree` -- ALTER TABLE `tbl_degree` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `tbl_district` -- ALTER TABLE `tbl_district` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `tbl_division` -- ALTER TABLE `tbl_division` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `tbl_family_type` -- ALTER TABLE `tbl_family_type` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `tbl_favorite` -- ALTER TABLE `tbl_favorite` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `tbl_friend` -- ALTER TABLE `tbl_friend` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30; -- -- AUTO_INCREMENT for table `tbl_friend_req` -- ALTER TABLE `tbl_friend_req` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `tbl_gender` -- ALTER TABLE `tbl_gender` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `tbl_hobby` -- ALTER TABLE `tbl_hobby` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `tbl_interest` -- ALTER TABLE `tbl_interest` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `tbl_marital_status` -- ALTER TABLE `tbl_marital_status` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `tbl_message` -- ALTER TABLE `tbl_message` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=232; -- -- AUTO_INCREMENT for table `tbl_music` -- ALTER TABLE `tbl_music` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `tbl_password_token` -- ALTER TABLE `tbl_password_token` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `tbl_police_station` -- ALTER TABLE `tbl_police_station` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `tbl_registration_req` -- ALTER TABLE `tbl_registration_req` MODIFY `uid` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `tbl_registration_token` -- ALTER TABLE `tbl_registration_token` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `tbl_religion` -- ALTER TABLE `tbl_religion` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `tbl_search` -- ALTER TABLE `tbl_search` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=61; -- -- AUTO_INCREMENT for table `tbl_sports` -- ALTER TABLE `tbl_sports` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `tbl_users` -- ALTER TABLE `tbl_users` MODIFY `uid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `tbl_warning` -- ALTER TABLE `tbl_warning` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables -- -- -- Constraints for table `tbl_admin` -- ALTER TABLE `tbl_admin` ADD CONSTRAINT `tbl_admin_ibfk_1` FOREIGN KEY (`blood`) REFERENCES `tbl_blood` (`id`), ADD CONSTRAINT `tbl_admin_ibfk_2` FOREIGN KEY (`gender`) REFERENCES `tbl_gender` (`id`); -- -- Constraints for table `tbl_district` -- ALTER TABLE `tbl_district` ADD CONSTRAINT `tbl_district_ibfk_1` FOREIGN KEY (`division`) REFERENCES `tbl_division` (`id`); -- -- Constraints for table `tbl_education` -- ALTER TABLE `tbl_education` ADD CONSTRAINT `tbl_education_ibfk_1` FOREIGN KEY (`degree`) REFERENCES `tbl_degree` (`id`), ADD CONSTRAINT `tbl_education_ibfk_2` FOREIGN KEY (`uid`) REFERENCES `tbl_users` (`uid`); -- -- Constraints for table `tbl_family` -- ALTER TABLE `tbl_family` ADD CONSTRAINT `tbl_family_ibfk_1` FOREIGN KEY (`type`) REFERENCES `tbl_family_type` (`id`), ADD CONSTRAINT `tbl_family_ibfk_2` FOREIGN KEY (`uid`) REFERENCES `tbl_users` (`uid`); -- -- Constraints for table `tbl_favorite` -- ALTER TABLE `tbl_favorite` ADD CONSTRAINT `tbl_favorite_ibfk_1` FOREIGN KEY (`uid`) REFERENCES `tbl_users` (`uid`), ADD CONSTRAINT `tbl_favorite_ibfk_2` FOREIGN KEY (`favorite_user`) REFERENCES `tbl_users` (`uid`); -- -- Constraints for table `tbl_friend` -- ALTER TABLE `tbl_friend` ADD CONSTRAINT `tbl_friend_ibfk_1` FOREIGN KEY (`sender`) REFERENCES `tbl_users` (`uid`), ADD CONSTRAINT `tbl_friend_ibfk_2` FOREIGN KEY (`send_to`) REFERENCES `tbl_users` (`uid`); -- -- Constraints for table `tbl_friend_req` -- ALTER TABLE `tbl_friend_req` ADD CONSTRAINT `tbl_friend_req_ibfk_1` FOREIGN KEY (`sender`) REFERENCES `tbl_users` (`uid`), ADD CONSTRAINT `tbl_friend_req_ibfk_2` FOREIGN KEY (`send_to`) REFERENCES `tbl_users` (`uid`); -- -- Constraints for table `tbl_job` -- ALTER TABLE `tbl_job` ADD CONSTRAINT `tbl_job_ibfk_1` FOREIGN KEY (`uid`) REFERENCES `tbl_users` (`uid`); -- -- Constraints for table `tbl_login` -- ALTER TABLE `tbl_login` ADD CONSTRAINT `tbl_login_ibfk_1` FOREIGN KEY (`uid`) REFERENCES `tbl_users` (`uid`); -- -- Constraints for table `tbl_message` -- ALTER TABLE `tbl_message` ADD CONSTRAINT `tbl_message_ibfk_1` FOREIGN KEY (`sender`) REFERENCES `tbl_users` (`uid`), ADD CONSTRAINT `tbl_message_ibfk_2` FOREIGN KEY (`send_to`) REFERENCES `tbl_users` (`uid`); -- -- Constraints for table `tbl_per_address` -- ALTER TABLE `tbl_per_address` ADD CONSTRAINT `tbl_per_address_ibfk_1` FOREIGN KEY (`per_uid`) REFERENCES `tbl_users` (`uid`), ADD CONSTRAINT `tbl_per_address_ibfk_2` FOREIGN KEY (`per_police_station`) REFERENCES `tbl_police_station` (`id`); -- -- Constraints for table `tbl_police_station` -- ALTER TABLE `tbl_police_station` ADD CONSTRAINT `tbl_police_station_ibfk_1` FOREIGN KEY (`district`) REFERENCES `tbl_district` (`id`); -- -- Constraints for table `tbl_pr_address` -- ALTER TABLE `tbl_pr_address` ADD CONSTRAINT `tbl_pr_address_ibfk_1` FOREIGN KEY (`pr_police_station`) REFERENCES `tbl_police_station` (`id`), ADD CONSTRAINT `tbl_pr_address_ibfk_2` FOREIGN KEY (`pr_uid`) REFERENCES `tbl_users` (`uid`); -- -- Constraints for table `tbl_users` -- ALTER TABLE `tbl_users` ADD CONSTRAINT `tbl_users_ibfk_2` FOREIGN KEY (`marital_status`) REFERENCES `tbl_marital_status` (`id`), ADD CONSTRAINT `tbl_users_ibfk_3` FOREIGN KEY (`religion`) REFERENCES `tbl_religion` (`id`), ADD CONSTRAINT `tbl_users_ibfk_4` FOREIGN KEY (`complexion`) REFERENCES `tbl_complexion` (`id`), ADD CONSTRAINT `tbl_users_ibfk_5` FOREIGN KEY (`gender`) REFERENCES `tbl_gender` (`id`); -- -- Constraints for table `tbl_user_hobby` -- ALTER TABLE `tbl_user_hobby` ADD CONSTRAINT `tbl_user_hobby_ibfk_1` FOREIGN KEY (`hobby`) REFERENCES `tbl_hobby` (`id`), ADD CONSTRAINT `tbl_user_hobby_ibfk_2` FOREIGN KEY (`uid`) REFERENCES `tbl_users` (`uid`); -- -- Constraints for table `tbl_user_interest` -- ALTER TABLE `tbl_user_interest` ADD CONSTRAINT `tbl_user_interest_ibfk_1` FOREIGN KEY (`interest`) REFERENCES `tbl_interest` (`id`), ADD CONSTRAINT `tbl_user_interest_ibfk_2` FOREIGN KEY (`uid`) REFERENCES `tbl_users` (`uid`); -- -- Constraints for table `tbl_user_music` -- ALTER TABLE `tbl_user_music` ADD CONSTRAINT `tbl_user_music_ibfk_1` FOREIGN KEY (`music`) REFERENCES `tbl_music` (`id`), ADD CONSTRAINT `tbl_user_music_ibfk_2` FOREIGN KEY (`uid`) REFERENCES `tbl_users` (`uid`); -- -- Constraints for table `tbl_user_sports` -- ALTER TABLE `tbl_user_sports` ADD CONSTRAINT `tbl_user_sports_ibfk_1` FOREIGN KEY (`sport`) REFERENCES `tbl_sports` (`id`), ADD CONSTRAINT `tbl_user_sports_ibfk_2` FOREIGN KEY (`uid`) REFERENCES `tbl_users` (`uid`); -- -- Constraints for table `tbl_warning` -- ALTER TABLE `tbl_warning` ADD CONSTRAINT `tbl_warning_ibfk_1` FOREIGN KEY (`uid`) REFERENCES `tbl_users` (`uid`), ADD CONSTRAINT `tbl_warning_ibfk_2` FOREIGN KEY (`aid`) REFERENCES `tbl_admin` (`aid`); /*!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 */;
SET DEFINE OFF; ALTER TABLE AFW_13_NAVGT ADD ( CONSTRAINT AFW_13_NAVGT_FK1 FOREIGN KEY (REF_ID_SESN) REFERENCES AFW_12_SESN (ID_SESN) ON DELETE CASCADE ENABLE VALIDATE) /
<reponame>marius11/studious-guacamole<filename>ApiService/Stored Procedures/dbo.UpdateStudent.sql CREATE PROCEDURE [dbo].[UpdateStudent] @Id INT, @FirstName NVARCHAR(64) = NULL, @LastName NVARCHAR(64) = NULL AS IF COALESCE(@FirstName, @LastName) IS NOT NULL BEGIN SET NOCOUNT ON; UPDATE Students SET FirstName = COALESCE(@FirstName, FirstName), LastName = COALESCE(@LastName, LastName) WHERE Id = @Id END
<filename>sql jangan ikut diupload/restodepo2_tambahan1.sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 24, 2018 at 05:11 AM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.0.23 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: `restodepo2` -- -- -------------------------------------------------------- -- -- Table structure for table `bank_list` -- DROP TABLE IF EXISTS `bank_list`; CREATE TABLE `bank_list` ( `kode` varchar(4) NOT NULL, `nama` varchar(64) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Truncate table before insert `bank_list` -- TRUNCATE TABLE `bank_list`; -- -- Dumping data for table `bank_list` -- INSERT INTO `bank_list` (`kode`, `nama`) VALUES ('002', 'PT. BANK RAKYAT INDONESIA TBK.'), ('008', 'PT. BANK MANDIRI TBK.'), ('009', 'PT. BANK NEGARA INDONESIA 46 TBK.'), ('011', 'PT. BANK DANAMON INDONESIA TBK.'), ('013', 'PT. BANK PERMATA TBK.'), ('014', 'PT. BANK CENTRAL ASIA TBK.'), ('016', 'PT. BANK INTERNASIONAL INDONESIA'), ('019', 'PT. PANIN BANK TBK.'), ('022', 'PT. BANK CIMB NIAGA TBK'), ('023', 'PT. BANK UOB BUANA TBK.'), ('028', 'PT. BANK OCBC NISP TBK'), ('031', 'CITIBANK, NA'), ('032', 'JPMORGAN CHASE BANK, NA'), ('033', 'BANK OF AMERICA, NA'), ('036', 'PT. BANK WINDU KENTJANA INTL TBK.'), ('037', 'PT. BANK ARTHA GRAHA INTERNASIONAL'), ('040', 'THE BANGKOK BANK PCL'), ('041', 'THE HONGKONG AND SHANGHAI BC'), ('042', 'THE BANK OF TOKYO MITSUBISHI LTD.'), ('045', 'PT. BANK SUMITOMO MITSUI INDONESIA'), ('046', 'PT. BANK DBS INDONESIA'), ('047', 'PT. BANK RESONA PERDANIA'), ('048', 'PT. BANK MIZUHO INDONESIA'), ('050', 'STANDARD CHARTERED BANK'), ('052', 'ABN AMRO BANK NV'), ('054', 'PT. BANK CAPITAL INDONESIA TBK.'), ('057', 'PT. BANK BNP PARIBAS INDONESIA'), ('059', 'PT. KOREA EXCHANGE BANK DANAMON'), ('060', 'PT. BANK RABOBANK INTERNATIONAL INDONESIA'), ('061', 'PT. ANZ PANIN BANK'), ('067', 'DEUTSCHE BANK AG'), ('068', 'PT. BANK WOORI INDONESIA'), ('069', 'BANK OF CHINA LIMITED'), ('076', 'PT. BANK BUMI ARTA'), ('087', 'PT. BANK EKONOMI RAHARJA'), ('088', 'PT. BANK ANTAR DAERAH'), ('095', 'PT. BANK MUTIARA TBK.'), ('097', 'PT. BANK MAYAPADA TBK.'), ('110', 'PT. BANK PEMBANGUNAN DAERAH JABAR DAN BANTEN TBK.'), ('111', 'PT. BPD DKI JAKARTA'), ('112', 'PT. BANK PEMBANGUNAN DAERAH DIY'), ('113', 'PT. BANK PEMBANGUNAN DAERAH JATENG'), ('114', 'PT. BANK PEMBANGUNAN DAERAH JATIM'), ('115', 'PT. BANK PEMBANGUNAN DAERAH JAMBI'), ('116', 'PT. BANK PEMBANGUNAN DI ACEH'), ('117', 'PT. BANK PEMBANGUNAN DAERAH SUMUT'), ('119', 'PT. BANK PEMBANGUNAN DAERAH RIAU'), ('120', 'PT. BANK PEMBANGUNAN DAERAH SUMATERA SELATAN DAN BANGKA BELITUNG'), ('121', 'PT. BANK PEMBANGUNAN DAERAH LAMPUNG'), ('122', 'PT. BANK PEMBANGUNAN DAERAH KALSEL'), ('123', 'PT. BANK PEMBANGUNAN DAERAH KALBAR'), ('124', 'PT. BANK PEMBANGUNAN DAERAH KALTIM'), ('125', 'PT. BANK PEMBANGUNAN DAERAH KALTENG'), ('126', 'PT. BANK PEMBANGUNAN DAERAH SULAWESI SELATAN DAN SULAWESI BARAT'), ('127', 'PT. BANK PEMBANGUNAN SULUT'), ('128', 'PT. BANK PEMBANGUNAN DAERAH NTB'), ('129', 'PT. BANK PEMBANGUNAN DAERAH BALI'), ('130', 'PT. BANK PEMBANGUNAN DAERAH NTT'), ('131', 'PT. BANK PEMBANGUNAN DAERAH MALUKU'), ('132', 'PT. BANK PEMBANGUNAN DAERAH PAPUA'), ('133', 'PT. BPD BENGKULU'), ('135', 'PT. BPD SULAWESI TENGGARA'), ('145', 'PT. BANK NUSANTARA PARAHYANGAN'), ('146', 'PT. BANK SWADESI TBK.'), ('147', 'PT. BANK MUAMALAT INDONESIA'), ('151', 'PT. BANK MESTIKA DHARMA'), ('152', 'PT. BANK METRO EKSPRESS'), ('153', 'PT. BANK SINAR MAS'), ('157', 'PT. BANK MASPION INDONESIA'), ('161', 'PT. BANK GANESHA'), ('167', 'PT. BANK KESAWAN'), ('200', 'PT. BANK TABUNGAN NEGARA'), ('212', 'PT. BANK HS 1906'), ('213', 'PT. BANK TABUNGAN'), ('405', 'PT. BANK SWAGUNA'), ('422', 'PT. BANK RAKYAT INDONESIA SYARIAH TBK'), ('426', 'PT. BANK MEGA TBK.'), ('427', 'PT. BANK JASA JAKARTA'), ('441', 'PT. BUKOPIN'), ('451', 'PT. BANK SYARIAH MANDIRI TBK.'), ('459', 'PT. BANK BISNIS INTERNATIONAL'), ('485', 'PT. BANK BUMIPUTERA'), ('490', 'PT. BANK YUDHA BHAKTI'), ('491', 'PT. BANK MITRANIAGA'), ('494', 'PT. AGRONIAGA BANK'), ('498', 'PT. BANK SBI INDONESIA'), ('501', 'PT. BANK ROYAL INDONESIA'), ('506', 'PT. BANK SYARIAH MEGA INDONESIA'), ('513', 'PT. BANK INA PERDANA'), ('517', 'PT. BANK HARFA'), ('520', 'PT. PRIMA MASTER BANK'), ('521', 'PT. BANK PERSYARIKATAN INDONESIA'), ('523', 'PT. BANK DIPO INTERNATIONAL'), ('525', 'PT. BANK AKITA'), ('526', 'PT. BANK LIMAN INTERNATIONAL'), ('531', 'PT. ANGLOMAS INTERNATIONAL BANK'), ('535', 'PT. BANK KESEJAHTERAAN EKONOMI'), ('542', 'PT. BANK ARTOS INDONESIA'), ('547', 'PT. BANK SAHABAT PURBA DANARTA'), ('548', 'PT. BANK MULTIARTA SENTOSA'), ('553', 'PT. BANK MAYORA INDONESIA'), ('555', 'PT. BANK INDEX SELINDO'), ('559', 'PT. CENTRATAMA NASIONAL BANK'), ('562', 'PT. BANK FAMA INTERNATIONAL'), ('564', 'PT. BANK SINAR HARAPAN BALI'), ('566', 'PT. BANK VICTORIA INTERNATIONAL'), ('567', 'PT. BANK HARDA INTERNASIONAL'), ('947', 'PT. BANK MAYBANK INDOCORP'), ('949', 'PT. BANK CHINATRUST INDONESIA'), ('950', 'PT. BANK COMMONWEALTH'); -- -------------------------------------------------------- -- -- Table structure for table `penjual` -- DROP TABLE IF EXISTS `penjual`; CREATE TABLE `penjual` ( `id_penjual` int(11) NOT NULL, `username` varchar(255) NOT NULL, `password` varchar(64) NOT NULL, `nama` varchar(64) NOT NULL, `nama_toko` varchar(64) NOT NULL, `alamat` text NOT NULL, `id_kota` int(11) NOT NULL, `telepon` varchar(64) NOT NULL, `join_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `penjual_key` varchar(32) NOT NULL, `last_login` datetime DEFAULT NULL, `is_active` tinyint(4) NOT NULL COMMENT '0 ga aktif, 1 aktif', `status` tinyint(4) NOT NULL COMMENT '0 baru, 1 aktif, 2 suspend, 3 hapus', `permalink` varchar(254) NOT NULL, `the_lat` varchar(254) NOT NULL, `the_long` varchar(254) NOT NULL, `deskripsi_toko` text NOT NULL, `catatan_toko` text NOT NULL, `thumbnail_logo` varchar(254) NOT NULL, `file_npwp_or_siup` varchar(254) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Truncate table before insert `penjual` -- TRUNCATE TABLE `penjual`; -- -- Dumping data for table `penjual` -- INSERT INTO `penjual` (`id_penjual`, `username`, `password`, `nama`, `nama_toko`, `alamat`, `id_kota`, `telepon`, `join_date`, `penjual_key`, `last_login`, `is_active`, `status`, `permalink`, `the_lat`, `the_long`, `deskripsi_toko`, `catatan_toko`, `thumbnail_logo`, `file_npwp_or_siup`) VALUES (1, '<EMAIL>', '<PASSWORD>', 'Gusti', 'Rumah Kopi', 'Jl Lawu no 101 karanganyar', 200, '081 66778899', '2018-05-22 10:30:30', '49cUQhs6DPcX9QIS', '2018-07-16 08:30:00', 1, 1, 'rumah-kopi', '-7.5981957', '110.9541759', 'disini jualan kopi yang enak dan murah', '', '', ''); -- -------------------------------------------------------- -- -- Table structure for table `penjual_no_rek` -- DROP TABLE IF EXISTS `penjual_no_rek`; CREATE TABLE `penjual_no_rek` ( `id_rekening` int(11) NOT NULL, `id_penjual` int(11) NOT NULL, `kode_bank` varchar(8) NOT NULL, `nama_akun` varchar(64) NOT NULL, `nomor_rekening` varchar(32) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Truncate table before insert `penjual_no_rek` -- TRUNCATE TABLE `penjual_no_rek`; -- -- Dumping data for table `penjual_no_rek` -- INSERT INTO `penjual_no_rek` (`id_rekening`, `id_penjual`, `kode_bank`, `nama_akun`, `nomor_rekening`) VALUES (1, 1, '014', '<NAME>', '1122334455'); -- -- Indexes for dumped tables -- -- -- Indexes for table `bank_list` -- ALTER TABLE `bank_list` ADD PRIMARY KEY (`kode`); -- -- Indexes for table `penjual` -- ALTER TABLE `penjual` ADD PRIMARY KEY (`id_penjual`) USING BTREE; -- -- Indexes for table `penjual_no_rek` -- ALTER TABLE `penjual_no_rek` ADD PRIMARY KEY (`id_rekening`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `penjual` -- ALTER TABLE `penjual` MODIFY `id_penjual` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `penjual_no_rek` -- ALTER TABLE `penjual_no_rek` MODIFY `id_rekening` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; 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 */;
-- Script per l'inserimento di uno o più impiegati nel database da utilizzare solamente dopo aver eseguito creazione.sql -- ed aver avviato per la prima volta la webapp. USE tirociniosmart; -- Inserimento dell'impiegato dell'ufficio tirocini -- Specificare i valori dei campi username, password, email, nome e login da utilizzare per accedere all'account -- IMPORTANTE: il primo parametro inserito nella prima riga VALUES deve coincidere con l'unico parametro della seconda riga VALUES INSERT INTO utente_registrato (username, password, email, nome, cognome) VALUES ('ufficiotirocini', 'ufficiotirocini', '<EMAIL>', '<NAME>', 'Unisa'); INSERT INTO impiegato_ufficio_tirocini (username) VALUES ('ufficiotirocini'); -- Ripetere le righe superiori tante volte quant'è il numero degli impiegati da voler inserire -- IMPORTANTE: garantire l'unicità di username ed email
<gh_stars>1-10 SELECT name, brewer FROM Beers b1 WHERE NOT EXISTS (SELECT * FROM Beers WHERE brewer = b1.brewer AND name != b1.name);
<reponame>kenzeng24/sqlzoo-exercises<filename>select-within-select.sql<gh_stars>1-10 /* Author: <NAME> Date: August 20 2021 A collection of questions from "SELECT within SELECT" section from sqlzoo https://sqlzoo.net/wiki/SELECT_within_SELECT_Tutorial */ /* 1. List each country name where the population is larger than that of 'Russia'. */ SELECT name FROM world WHERE population > ( SELECT population FROM world WHERE name='Russia') /* 2. Show the countries in Europe with a per capita GDP greater than 'United Kingdom'. */ SELECT name FROM world WHERE gdp / population > (SELECT gdp / population FROM world WHERE name = 'United Kingdom') AND continent = 'Europe'; /* 3. List each country name where the population is larger than that of 'Russia'. */ SELECT name, continent FROM world WHERE continent IN ( SELECT continent FROM world WHERE name = 'Argentina' OR name = 'Australia') ORDER BY name; /* 4. Which country has a population that is more than Canada but less than Poland? Show the name and the population. */ SELECT name,population FROM world WHERE population > (SELECT population FROM world WHERE name = 'Canada') AND population < (SELECT population FROM world WHERE name = 'Poland') /* 5. Show the name and the population of each country in Europe. Show the population as a percentage of the population of Germany. */ SELECT name, CONCAT(CAST(CAST(population / ( SELECT population from world WHERE name = 'Germany') * 100 AS int) AS varchar(4)), '%') AS percentage FROM world WHERE continent = 'Europe'; /* 6. Which countries have a GDP greater than every country in Europe? [Give the name only.] (Some countries may have NULL gdp values) */ SELECT name FROM world WHERE gdp > (SELECT max(gdp) FROM world WHERE continent = 'Europe') /* 7. Find the largest country (by area) in each continent, show the continent, the name and the area: */ SELECT continent, name, area FROM world x WHERE area >= (SELECT max(area) FROM world y WHERE y.continent=x.continent GROUP BY continent) SELECT continent, name, area FROM world x WHERE area >= ALL (SELECT area FROM world y WHERE y.continent=x.continent) /* 8. List each continent and the name of the country that comes first alphabetically. */ select continent, min(name) as name from world group by continent /* 9. Find the continents where all countries have a population <= 25000000. Then find the names of the countries associated with these continents. Show name, continent and population. */ SELECT name, continent, population FROM world x WHERE 25000000 >= ( SELECT max(population) FROM world y WHERE y.continent = x.continent GROUP BY continent) /* 10. Some countries have populations more than three times that of any of their neighbours (in the same continent). Give the countries and continents. */ SELECT name, continent FROM world x WHERE population / 3 >= ( SELECT max(population) FROM world y WHERE y.continent = x.continent AND y.name != x.name GROUP BY continent)
<gh_stars>10-100 -- schemas CREATE SCHEMA IF NOT EXISTS bdot; CREATE SCHEMA IF NOT EXISTS changesets_processing; CREATE SCHEMA IF NOT EXISTS prg; CREATE SCHEMA IF NOT EXISTS teryt; -- extensions CREATE EXTENSION IF NOT EXISTS hstore WITH SCHEMA public; CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public; CREATE EXTENSION IF NOT EXISTS postgis WITH SCHEMA public; -- tables -- ------------------------------------------------------------- -- bdot create table if not exists bdot.buildings_categories_mappings ( kategoria_bdot text not null, funkcja_ogolna_budynku text not null, funkcja_szczegolowa_budynku text not null, building text, amenity text, man_made text, leisure text, historic text, tourism text, constraint buildings_categories_mappings_pk primary key (kategoria_bdot, funkcja_ogolna_budynku, funkcja_szczegolowa_budynku) ); create table if not exists bdot_buildings ( powiat text not null, lokalnyid uuid primary key, status_bdot text not null, -- dane bdot kategoria_bdot text, funkcja_ogolna_budynku text, funkcja_szczegolowa_budynku text, aktualnosc_geometrii date, aktualnosc_atrybutow date, -- zmapowane tagi osm building text, amenity text, man_made text, leisure text, historic text, tourism text, building_levels smallint, geom_4326 geometry(polygon, 4326) not null ); CREATE INDEX if not exists idx_bdot_buildings_geom ON bdot_buildings USING gist (geom_4326); CREATE TABLE IF NOT EXISTS bdot_buildings_all ( powiat text NOT NULL, lokalnyid uuid primary key, status_bdot text NOT NULL, kategoria_bdot text, funkcja_ogolna_budynku text, funkcja_szczegolowa_budynku text, aktualnosc_geometrii date, aktualnosc_atrybutow date, building text, amenity text, man_made text, leisure text, historic text, tourism text, building_levels smallint, geom_4326 geometry(Polygon,4326) NOT NULL ); create index if not exists idx_bdot_buildings_all_geom on bdot_buildings_all using GIST (geom_4326); create unlogged table if not exists bdot.stg_budynki_ogolne_poligony ( lokalnyid text, wersjaid text, x_kod text, x_skrkarto text, x_katistnienia text, x_aktualnoscg text, x_aktualnosca text, koniecwersjiobiektu text, funogolnabudynku text, funszczegolowabudynku text, funszczegolowabudynku_01 text, funszczegolowabudynku_02 text, funszczegolowabudynku_03 text, funszczegolowabudynku_04 text, funszczegolowabudynku_05 text, funszczegolowabudynku_06 text, funszczegolowabudynku_07 text, funszczegolowabudynku_08 text, funszczegolowabudynku_09 text, funszczegolowabudynku_10 text, liczbakondygnacji text, kodkst text, nazwa text, zabytek text, geometry text, powiat text ); create table if not exists bdot.lookup_funogolnabudynku ( funogolnabudynku text primary key, funkcja_ogolna_budynku text not null ); create table if not exists bdot.lookup_funszczegolowabudynku ( funszczegolowabudynku text primary key, funkcja_szczegolowa_budynku text not null ); create table if not exists bdot.lookup_x_katistnienia ( x_katistnienia text primary key, status_bdot text not null ); create table if not exists bdot.lookup_x_kod ( x_kod text primary key, kategoria_bdot text not null ); -- ------------------------------------------------------------- -- changesets_processing CREATE TABLE IF NOT EXISTS changesets_processing.processed_files ( file_path text not null primary key, inserted_at timestamp with time zone not null default CURRENT_TIMESTAMP ); create index if not exists idx_processed_files_ts_inserted on changesets_processing.processed_files (inserted_at); CREATE TABLE IF NOT EXISTS changesets_processing.changesets ( file_path text not null, changeset_id integer not null, created_at timestamp with time zone not null, closed_at timestamp with time zone, open boolean, num_changes integer, osm_user text not null, uid integer not null, comments_count integer, tags jsonb, bbox geometry(Polygon, 4326), primary key (file_path, changeset_id), foreign key (file_path) REFERENCES changesets_processing.processed_files ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED ); -- create index if not exists idx_changesets_ts on changesets_processing.changesets using brin (created_at) with (pages_per_range=64, autosummarize = on); create index if not exists idx_changesets_ts_created on changesets_processing.changesets (created_at); create index if not exists idx_changesets_ts_closed on changesets_processing.changesets (closed_at); create index if not exists idx_changesets_geom on changesets_processing.changesets using gist (bbox); -- ------------------------------------------------------------- -- prg CREATE TABLE IF NOT EXISTS prg.delta ( lokalnyid uuid primary key, teryt_msc text, teryt_simc text, teryt_ulica text, teryt_ulic text, nr text, pna text, geom geometry, nr_standaryzowany text ); CREATE INDEX if not exists delta_gis ON prg.delta USING gist (geom); create index if not exists delta_lokalnyid on prg.delta using btree (lokalnyid); create index if not exists delta_simc on prg.delta using hash (teryt_simc); CREATE TABLE IF NOT EXISTS prg.pa ( lokalnyid uuid primary key, woj text, pow text, gmi text, terc6 text, teryt7 text, msc text NOT NULL, simc text, ul text, ulic text, numerporzadkowy text NOT NULL, nr text NOT NULL, pna text, gml geometry, teryt_msc text, teryt_simc text, teryt_ulica text, teryt_ulic text, osm_ulica text ); --CREATE INDEX if not exists prg_pa_geom ON prg.pa USING gist (geometry); CREATE TABLE IF NOT EXISTS prg.pa_hashed ( hash text, lokalnyid uuid, geom geometry ); CREATE INDEX if not exists prg_pa_hashed_geom ON prg.pa_hashed USING gist (geom); CREATE TABLE IF NOT EXISTS addresses ( lokalnyid uuid, teryt_msc text, teryt_simc text, teryt_ulica text, teryt_ulic text, nr text, pna text, nr_standaryzowany text, geom_2180 geometry ); create index if not exists addresses_lokalnyid on addresses using btree (lokalnyid); CREATE INDEX if not exists addresses_geom ON addresses USING gist (geom_2180); CREATE UNLOGGED TABLE IF NOT EXISTS prg.jednostki_administracyjne ( gmlid text, identifier text, lokalnyid text, przestrzennazw text, wersjaid text, poczatekwersjiobiektu text, koniecwersjiobiektu text, waznyod text, waznydo text, nazwa text, idteryt text, poziom text, jednostkapodzialuteryt text ); CREATE UNLOGGED TABLE IF NOT EXISTS prg.miejscowosci ( gmlid text, identifier text, lokalnyid text, przestrzennazw text, wersjaid text, poczatekwersjiobiektu text, koniecwersjiobiektu text, waznyod text, waznydo text, nazwa text, idteryt text, geometry text, miejscowosc text ); CREATE UNLOGGED TABLE IF NOT EXISTS prg.ulice ( gmlid text, identifier text, lokalnyid text, przestrzennazw text, wersjaid text, poczatekwersjiobiektu text, koniecwersjiobiektu text, waznyod text, waznydo text, nazwaglownaczesc text, idteryt text, geometry text, ulica text ); CREATE UNLOGGED TABLE IF NOT EXISTS prg.punkty_adresowe ( gmlid text, identifier text, lokalnyid text, przestrzennazw text, wersjaid text, poczatekwersjiobiektu text, koniecwersjiobiektu text, waznyod text, waznydo text, jednostkaadministracyjna text, jednostkaadministracyjna_01 text, jednostkaadministracyjna_02 text, jednostkaadministracyjna_03 text, miejscowosc text, czescmiejscowosci text, ulica text, numerporzadkowy text, kodpocztowy text, status text, geometry text, komponent text, komponent_01 text, komponent_02 text, komponent_03 text, komponent_04 text, komponent_05 text, komponent_06 text, obiektemuia text ); -- ------------------------------------------------------------- -- app/update process general create table if not exists exclude_prg ( id uuid primary key, created_at timestamp with time zone not null default CURRENT_TIMESTAMP ); create index if not exists idx_exclude_prg_created_ts on exclude_prg(created_at); create table if not exists exclude_prg_queue ( id uuid primary key, created_at timestamp with time zone not null default CURRENT_TIMESTAMP, processed bool not null default false ); create table if not exists exclude_bdot_buildings ( id uuid primary key, created_at timestamp with time zone not null default CURRENT_TIMESTAMP ); create index if not exists idx_exclude_bdot_buildings_created_ts on exclude_bdot_buildings(created_at); create table if not exists exclude_bdot_buildings_queue ( id uuid primary key, created_at timestamp with time zone not null default CURRENT_TIMESTAMP, processed bool not null default false ); create table if not exists expired_tiles ( file_name text not null, z int not null, x int not null, y int not null, processed bool not null default false, created_at timestamp with time zone not null default CURRENT_TIMESTAMP, constraint expired_tiles_pk primary key (file_name, z, x, y) ); create index if not exists idx_expired_tiles_created_ts on expired_tiles(created_at); create index if not exists idx_expired_tiles_not_processed on expired_tiles(processed) where not processed; create table if not exists package_exports ( export_id bigint generated by default as identity, created_at timestamp with time zone not null default CURRENT_TIMESTAMP, bbox geometry(geometry, 3857) not null, adresy int, budynki int ); create index if not exists idx_package_exports_created_at on package_exports(created_at); create table if not exists tiles ( z integer not null, x integer not null, y integer not null, mvt bytea, bbox geometry(Polygon, 3857), constraint tiles_zxy_pk primary key (z, x, y) ); create index if not exists idx_tiles_bbox on tiles using gist (bbox); create table if not exists tiles_bounds ( z int, x int, y int, geom_3857 geometry(Polygon, 3857), primary key (z, x, y) ); create index if not exists idx_tiles_bounds_geom on tiles_bounds using gist (geom_3857); CREATE TABLE if not exists prng ( id integer, geom geometry(Point,4326), liczba_adresow bigint, liczba_budynkow bigint, count bigint ); CREATE INDEX if not exists idx_prng_count ON prng USING btree (count DESC); CREATE INDEX if not exists idx_prng_geom ON prng USING gist (geom); CREATE TABLE if not exists process_locks ( process_name text primary key, in_progress boolean NOT NULL, start_time timestamp with time zone, end_time timestamp with time zone, last_status text, pretty_name text ); CREATE TABLE if not exists stg_prng_miejscowosci ( id integer NOT NULL, geom geometry(Point,4326), "identyfikator prng" integer, "nazwa główna" character varying, "rodzaj obiektu" character varying, "klasa obiektu" character varying, "obiekt nadrzędny" character varying, "funkcja administracyjna miejscowości" character varying, "dopełniacz" character varying, przymiotnik character varying, uwagi character varying, "źródło informacji" character varying, "element rozróżniający" character varying, "element rodzajowy" character varying, "wymowa ipa" character varying, "wymowa polska" character varying, "szerokość geograficzna" character varying, "długość geograficzna" character varying, "współrzędne prostokątne y" character varying, "współrzędne prostokątne x" character varying, "data modyfikacji" character varying, "rodzaj reprezentacji" character varying, "system zewnętrzny" character varying, "identyfikator zewnętrzny" integer, "identyfikator iip" character varying, "skala mapy" character varying, "status nazwy" character varying, "nazwa dodatkowa" character varying, "kod języka nazwy dodatkowej" character varying, "język nazwy dodatkowej" character varying, "latynizacja nazwy dodatkowej" character varying, "nazwa historyczna" character varying, "nazwa oboczna" character varying, "uwagi nazw dodatkowych" character varying, "uwagi nazw historycznych" character varying, "uwagi nazw obocznych" character varying, "obcy egzonim" character varying, "pismo egzonimu" character varying, "język egzonimu" character varying, "latynizacja egzonimu" character varying, "zagraniczny endonim" character varying, "pismo endonimu" character varying, "język endonimu" character varying, "latynizacja endonimu" character varying, "państwo" character varying, "województwo" character varying, powiat character varying, gmina character varying, "identyfikator jednostki podziału terytorialnego kraju" integer, "data wprowadzenia" character varying, "data zniesienia lub usunięcia" character varying, "przestrzeń nazw" character varying ); CREATE TABLE if not exists streets_all ( street_id uuid primary key, interpolated_teryt_simc text, teryt_ulic text, street_name text, geom_2180 geometry NOT NULL ); CREATE INDEX if not exists streets_all_new_geom_2180_idx1 ON streets_all USING gist (geom_2180); -- ------------------------------------------------------------- -- teryt create table if not exists street_names_mappings ( teryt_simc_code text not null, teryt_ulic_code text not null, teryt_street_name text not null, osm_street_name text not null, constraint street_names_mappings_pk primary key (teryt_simc_code, teryt_ulic_code) ); create table if not exists teryt.cecha_mapping ( cecha text primary key, m text not null ); CREATE TABLE if not exists teryt.simc ( woj text, pow text, gmi text, rodz_gmi text, rm text, mz text, nazwa text, sym text, sympod text, stan_na text ); CREATE TABLE if not exists teryt.terc ( woj text, pow text, gmi text, rodz text, nazwa text, nazdod text, stan_na text ); CREATE TABLE if not exists teryt.ulic ( woj text, pow text, gmi text, rodz_gmi text, sym text, sym_ul text, cecha text, nazwa_1 text, nazwa_2 text, stan_na text ); CREATE TABLE if not exists teryt.wmrodz ( rm text, nazwa_rm text, stan_na text ); -- ------------------------------------------------------------- -- osm CREATE TABLE IF NOT EXISTS osm_abandoned_or_demolished_buildings ( id integer NOT NULL, osm_id bigint NOT NULL, abandoned_building character varying, demolished_building character varying, geometry geometry(Geometry,4326), CONSTRAINT osm_abandoned_or_demolished_buildings_pkey PRIMARY KEY (osm_id, id) ); CREATE INDEX IF NOT EXISTS osm_abandoned_or_demolished_buildings_geom ON osm_abandoned_or_demolished_buildings USING gist (geometry); CREATE TABLE IF NOT EXISTS osm_addr_point ( id integer NOT NULL, osm_id bigint NOT NULL, name character varying, type character varying, ulica character varying, kod_ulic character varying, kod_simc character varying, kod_pna character varying, miejscowosc character varying, cz_msc character varying, geometry geometry(Point,4326), CONSTRAINT osm_addr_point_pkey PRIMARY KEY (osm_id, id) ); CREATE INDEX IF NOT EXISTS osm_addr_point_geom ON osm_addr_point USING gist (geometry); CREATE TABLE IF NOT EXISTS osm_addr_polygon ( id integer NOT NULL, osm_id bigint NOT NULL, name character varying, type character varying, ulica character varying, kod_ulic character varying, kod_simc character varying, kod_pna character varying, miejscowosc character varying, cz_msc character varying, geometry geometry(Geometry,4326), CONSTRAINT osm_addr_polygon_pkey PRIMARY KEY (osm_id, id) ); CREATE INDEX IF NOT EXISTS osm_addr_polygon_geom ON osm_addr_polygon USING gist (geometry); CREATE TABLE IF NOT EXISTS osm_admin ( id integer NOT NULL, osm_id bigint NOT NULL, admin_level integer, tags hstore, geometry geometry(Geometry,4326), CONSTRAINT osm_admin_pkey PRIMARY KEY (osm_id, id) ); CREATE INDEX IF NOT EXISTS osm_admin_geom ON osm_admin USING gist (geometry); -- make sure these are created manually after imposm data import create index if not exists osm_admin_terc on osm_admin ((tags -> 'teryt:terc')) where exist(tags, 'teryt:terc'); create index if not exists osm_admin_simc on osm_admin ((tags -> 'teryt:simc')) where exist(tags, 'teryt:simc'); CREATE TABLE IF NOT EXISTS osm_adr ( msc text, czmsc text, ul text, nr text, pna character varying, ulic character varying, simc character varying, geom geometry ); CREATE INDEX IF NOT EXISTS osm_adr_geom ON osm_adr USING gist (geom); CREATE TABLE IF NOT EXISTS osm_amenity_areas ( id integer NOT NULL, osm_id bigint NOT NULL, tags hstore, geometry geometry(Geometry,4326), CONSTRAINT osm_amenity_areas_pkey PRIMARY KEY (osm_id, id) ); CREATE INDEX IF NOT EXISTS osm_amenity_areas_geom ON osm_amenity_areas USING gist (geometry); CREATE TABLE IF NOT EXISTS osm_amenity_points ( id integer NOT NULL, osm_id bigint NOT NULL, tags hstore, geometry geometry(Point,4326), CONSTRAINT osm_amenity_points_pkey PRIMARY KEY (osm_id, id) ); CREATE INDEX IF NOT EXISTS osm_amenity_points_geom ON osm_amenity_points USING gist (geometry); CREATE TABLE IF NOT EXISTS osm_buildings ( id integer NOT NULL, osm_id bigint NOT NULL, budynek character varying, kondygnacje character varying, ksztalt_dachu character varying, liczba_mieszkan character varying, kondygnacje_podziemne character varying, wysokosc_npg character varying, geometry geometry(Geometry,4326), CONSTRAINT osm_buildings_pkey PRIMARY KEY (osm_id, id) ); CREATE INDEX IF NOT EXISTS osm_buildings_geom ON osm_buildings USING gist (geometry); CREATE TABLE IF NOT EXISTS osm_hashed ( hash text, geom geometry ); CREATE INDEX IF NOT EXISTS osm_hashed_geom ON osm_hashed USING gist (geom); CREATE INDEX IF NOT EXISTS osm_hashed_md5 ON osm_hashed USING btree (hash); CREATE TABLE IF NOT EXISTS osm_place_areas ( id integer NOT NULL, osm_id bigint NOT NULL, tags hstore, geometry geometry(Geometry,4326), CONSTRAINT osm_place_areas_pkey PRIMARY KEY (osm_id, id) ); CREATE INDEX IF NOT EXISTS osm_place_areas_geom ON osm_place_areas USING gist (geometry); CREATE TABLE IF NOT EXISTS osm_place_points ( id integer NOT NULL, osm_id bigint NOT NULL, tags hstore, geometry geometry(Point,4326), CONSTRAINT osm_place_points_pkey PRIMARY KEY (osm_id, id) ); CREATE INDEX IF NOT EXISTS osm_place_points_geom ON osm_place_points USING gist (geometry); CREATE TABLE IF NOT EXISTS osm_roads ( id integer NOT NULL, osm_id bigint NOT NULL, tags hstore, geometry geometry(LineString,4326), CONSTRAINT osm_roads_pkey PRIMARY KEY (osm_id, id) ); CREATE INDEX IF NOT EXISTS osm_roads_geom ON osm_roads USING gist (geometry); CREATE TABLE IF NOT EXISTS osm_stats ( created_at timestamp with time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, measurement_day date NOT NULL, metric_key text NOT NULL, metric_description text NOT NULL, value integer NOT NULL, sql_version integer DEFAULT 2, CONSTRAINT osm_stats_pk PRIMARY KEY (measurement_day, metric_key) ); CREATE TABLE IF NOT EXISTS osm_tree_rows ( id integer NOT NULL, osm_id bigint NOT NULL, tags hstore, geometry geometry(LineString,4326), CONSTRAINT osm_tree_rows_pkey PRIMARY KEY (osm_id, id) ); CREATE INDEX IF NOT EXISTS osm_tree_rows_geom ON osm_tree_rows USING gist (geometry); CREATE TABLE IF NOT EXISTS osm_trees ( id integer NOT NULL, osm_id bigint NOT NULL, tags hstore, geometry geometry(Point,4326), CONSTRAINT osm_trees_pkey PRIMARY KEY (osm_id, id) ); CREATE INDEX IF NOT EXISTS osm_trees_geom ON osm_trees USING gist (geometry); CREATE TABLE IF NOT EXISTS osm_waterareas ( id integer NOT NULL, osm_id bigint NOT NULL, tags hstore, geometry geometry(Geometry,4326), CONSTRAINT osm_waterareas_pkey PRIMARY KEY (osm_id, id) ); CREATE INDEX IF NOT EXISTS osm_waterareas_geom ON osm_waterareas USING gist (geometry); CREATE TABLE IF NOT EXISTS osm_waterways ( id integer NOT NULL, osm_id bigint NOT NULL, tags hstore, geometry geometry(LineString,4326), CONSTRAINT osm_waterways_pkey PRIMARY KEY (osm_id, id) ); CREATE INDEX IF NOT EXISTS osm_waterways_geom ON osm_waterways USING gist (geometry); CREATE TABLE IF NOT EXISTS osm_woods ( id integer NOT NULL, osm_id bigint NOT NULL, tags hstore, geometry geometry(Geometry,4326), CONSTRAINT osm_woods_pkey PRIMARY KEY (osm_id, id) ); CREATE INDEX IF NOT EXISTS osm_woods_geom ON osm_woods USING gist (geometry); -- -------------------------------------------------------------
ALTER TABLE integration_entity ADD COLUMN api_endpoint varchar(255); UPDATE integration_entity SET api_endpoint = api_label; ALTER TABLE integration_entity MODIFY COLUMN api_endpoint varchar(255) NOT NULL;
-- file:json.sql ln:600 expect:true SELECT json_build_object(VARIADIC '{a,b,c}'::text[])
<reponame>dmitigr/cefeika<gh_stars>10-100 -- -*- SQL -*- -- Copyright (C) 2021 <NAME> -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purpose, -- including commercial applications, and to alter it and redistribute it -- freely, subject to the following restrictions: -- -- 1. The origin of this software must not be misrepresented; you must not -- claim that you wrote the original software. If you use this software -- in a product, an acknowledgment in the product documentation would be -- appreciated but is not required. -- 2. Altered source versions must be plainly marked as such, and must not be -- misrepresented as being the original software. -- 3. This notice may not be removed or altered from any source distribution. -- -- <NAME> -- <EMAIL> -- This query calculates :n + 1 -- -- $id$plus_one$id$ SELECT :n::int + 1, 'semicolons in qoutes like these: ;;; are ignored'; /* * This query concatenates two strings * * $id$digit$id$ * * $cond$ * n > 0 * AND n < 2 * $cond$ */ SELECT n FROM (SELECT generate_series(1,9) n) foo WHERE :cond
<filename>ci-scripts/dsTesterDockerCompose/oai_db.sql -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 172.16.200.10:3306 -- Generation Time: Mar 22, 2021 at 10:31 AM -- Server version: 5.7.33 -- PHP Version: 7.4.15 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: `oai_db` -- -- -------------------------------------------------------- -- -- Table structure for table `AccessAndMobilitySubscriptionData` -- CREATE TABLE `AccessAndMobilitySubscriptionData` ( `ueid` varchar(15) NOT NULL, `servingPlmnid` varchar(15) NOT NULL, `supportedFeatures` varchar(50) DEFAULT NULL, `gpsis` json DEFAULT NULL, `internalGroupIds` json DEFAULT NULL, `sharedVnGroupDataIds` json DEFAULT NULL, `subscribedUeAmbr` json DEFAULT NULL, `nssai` json DEFAULT NULL, `ratRestrictions` json DEFAULT NULL, `forbiddenAreas` json DEFAULT NULL, `serviceAreaRestriction` json DEFAULT NULL, `coreNetworkTypeRestrictions` json DEFAULT NULL, `rfspIndex` int(10) DEFAULT NULL, `subsRegTimer` int(10) DEFAULT NULL, `ueUsageType` int(10) DEFAULT NULL, `mpsPriority` tinyint(1) DEFAULT NULL, `mcsPriority` tinyint(1) DEFAULT NULL, `activeTime` int(10) DEFAULT NULL, `sorInfo` json DEFAULT NULL, `sorInfoExpectInd` tinyint(1) DEFAULT NULL, `sorafRetrieval` tinyint(1) DEFAULT NULL, `sorUpdateIndicatorList` json DEFAULT NULL, `upuInfo` json DEFAULT NULL, `micoAllowed` tinyint(1) DEFAULT NULL, `sharedAmDataIds` json DEFAULT NULL, `odbPacketServices` json DEFAULT NULL, `serviceGapTime` int(10) DEFAULT NULL, `mdtUserConsent` json DEFAULT NULL, `mdtConfiguration` json DEFAULT NULL, `traceData` json DEFAULT NULL, `cagData` json DEFAULT NULL, `stnSr` varchar(50) DEFAULT NULL, `cMsisdn` varchar(50) DEFAULT NULL, `nbIoTUePriority` int(10) DEFAULT NULL, `nssaiInclusionAllowed` tinyint(1) DEFAULT NULL, `rgWirelineCharacteristics` varchar(50) DEFAULT NULL, `ecRestrictionDataWb` json DEFAULT NULL, `ecRestrictionDataNb` tinyint(1) DEFAULT NULL, `expectedUeBehaviourList` json DEFAULT NULL, `primaryRatRestrictions` json DEFAULT NULL, `secondaryRatRestrictions` json DEFAULT NULL, `edrxParametersList` json DEFAULT NULL, `ptwParametersList` json DEFAULT NULL, `iabOperationAllowed` tinyint(1) DEFAULT NULL, `wirelineForbiddenAreas` json DEFAULT NULL, `wirelineServiceAreaRestriction` json DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `Amf3GppAccessRegistration` -- CREATE TABLE `Amf3GppAccessRegistration` ( `ueid` varchar(15) NOT NULL, `amfInstanceId` varchar(50) NOT NULL, `supportedFeatures` varchar(50) DEFAULT NULL, `purgeFlag` tinyint(1) DEFAULT NULL, `pei` varchar(50) DEFAULT NULL, `imsVoPs` json DEFAULT NULL, `deregCallbackUri` varchar(50) NOT NULL, `amfServiceNameDereg` json DEFAULT NULL, `pcscfRestorationCallbackUri` varchar(50) DEFAULT NULL, `amfServiceNamePcscfRest` json DEFAULT NULL, `initialRegistrationInd` tinyint(1) DEFAULT NULL, `guami` json NOT NULL, `backupAmfInfo` json DEFAULT NULL, `drFlag` tinyint(1) DEFAULT NULL, `ratType` json NOT NULL, `urrpIndicator` tinyint(1) DEFAULT NULL, `amfEeSubscriptionId` varchar(50) DEFAULT NULL, `epsInterworkingInfo` json DEFAULT NULL, `ueSrvccCapability` tinyint(1) DEFAULT NULL, `registrationTime` varchar(50) DEFAULT NULL, `vgmlcAddress` json DEFAULT NULL, `contextInfo` json DEFAULT NULL, `noEeSubscriptionInd` tinyint(1) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `AuthenticationStatus` -- CREATE TABLE `AuthenticationStatus` ( `ueid` varchar(20) NOT NULL, `nfInstanceId` varchar(50) NOT NULL, `success` tinyint(1) NOT NULL, `timeStamp` varchar(50) NOT NULL, `authType` varchar(25) NOT NULL, `servingNetworkName` varchar(50) NOT NULL, `authRemovalInd` tinyint(1) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `AuthenticationSubscription` -- CREATE TABLE `AuthenticationSubscription` ( `ueid` varchar(20) NOT NULL, `authenticationMethod` varchar(25) NOT NULL, `encPermanentKey` varchar(50) DEFAULT NULL, `protectionParameterId` varchar(50) DEFAULT NULL, `sequenceNumber` json DEFAULT NULL, `authenticationManagementField` varchar(50) DEFAULT NULL, `algorithmId` varchar(50) DEFAULT NULL, `encOpcKey` varchar(50) DEFAULT NULL, `encTopcKey` varchar(50) DEFAULT NULL, `vectorGenerationInHss` tinyint(1) DEFAULT NULL, `n5gcAuthMethod` varchar(15) DEFAULT NULL, `rgAuthenticationInd` tinyint(1) DEFAULT NULL, `supi` varchar(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `AuthenticationSubscription` -- INSERT INTO `AuthenticationSubscription` (`ueid`, `authenticationMethod`, `encPermanentKey`, `protectionParameterId`, `sequenceNumber`, `authenticationManagementField`, `algorithmId`, `encOpcKey`, `encTopcKey`, `vectorGenerationInHss`, `n5gcAuthMethod`, `rgAuthenticationInd`, `supi`) VALUES ('208950000000031', '5G_AKA', '0C0A34601D4F07677303652C0462535B', '0C0A34601D4F07677303652C0462535B', '{\"sqn\": \"000000000020\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '8000', 'milenage', '<KEY>', NULL, NULL, NULL, NULL, '208950000000031'); -- -------------------------------------------------------- -- -- Table structure for table `SdmSubscriptions` -- CREATE TABLE `SdmSubscriptions` ( `ueid` varchar(15) NOT NULL, `subsId` int(10) UNSIGNED NOT NULL, `nfInstanceId` varchar(50) NOT NULL, `implicitUnsubscribe` tinyint(1) DEFAULT NULL, `expires` varchar(50) DEFAULT NULL, `callbackReference` varchar(50) NOT NULL, `amfServiceName` json DEFAULT NULL, `monitoredResourceUris` json NOT NULL, `singleNssai` json DEFAULT NULL, `dnn` varchar(50) DEFAULT NULL, `subscriptionId` varchar(50) DEFAULT NULL, `plmnId` json DEFAULT NULL, `immediateReport` tinyint(1) DEFAULT NULL, `report` json DEFAULT NULL, `supportedFeatures` varchar(50) DEFAULT NULL, `contextInfo` json DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `SessionManagementSubscriptionData` -- CREATE TABLE `SessionManagementSubscriptionData` ( `ueid` varchar(15) NOT NULL, `servingPlmnid` varchar(15) NOT NULL, `singleNssai` json NOT NULL, `dnnConfigurations` json DEFAULT NULL, `internalGroupIds` json DEFAULT NULL, `sharedVnGroupDataIds` json DEFAULT NULL, `sharedDnnConfigurationsId` varchar(50) DEFAULT NULL, `odbPacketServices` json DEFAULT NULL, `traceData` json DEFAULT NULL, `sharedTraceDataId` varchar(50) DEFAULT NULL, `expectedUeBehavioursList` json DEFAULT NULL, `suggestedPacketNumDlList` json DEFAULT NULL, `3gppChargingCharacteristics` varchar(50) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `SmfRegistrations` -- CREATE TABLE `SmfRegistrations` ( `ueid` varchar(15) NOT NULL, `subpduSessionId` int(10) NOT NULL, `smfInstanceId` varchar(50) NOT NULL, `smfSetId` varchar(50) DEFAULT NULL, `supportedFeatures` varchar(50) DEFAULT NULL, `pduSessionId` int(10) NOT NULL, `singleNssai` json NOT NULL, `dnn` varchar(50) DEFAULT NULL, `emergencyServices` tinyint(1) DEFAULT NULL, `pcscfRestorationCallbackUri` varchar(50) DEFAULT NULL, `plmnId` json NOT NULL, `pgwFqdn` varchar(50) DEFAULT NULL, `epdgInd` tinyint(1) DEFAULT NULL, `deregCallbackUri` varchar(50) DEFAULT NULL, `registrationReason` json DEFAULT NULL, `registrationTime` varchar(50) DEFAULT NULL, `contextInfo` json DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `SmfSelectionSubscriptionData` -- CREATE TABLE `SmfSelectionSubscriptionData` ( `ueid` varchar(15) NOT NULL, `servingPlmnid` varchar(15) NOT NULL, `supportedFeatures` varchar(50) DEFAULT NULL, `subscribedSnssaiInfos` json DEFAULT NULL, `sharedSnssaiInfosId` varchar(50) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Indexes for dumped tables -- -- -- Indexes for table `AccessAndMobilitySubscriptionData` -- ALTER TABLE `AccessAndMobilitySubscriptionData` ADD PRIMARY KEY (`ueid`,`servingPlmnid`) USING BTREE; -- -- Indexes for table `Amf3GppAccessRegistration` -- ALTER TABLE `Amf3GppAccessRegistration` ADD PRIMARY KEY (`ueid`); -- -- Indexes for table `AuthenticationStatus` -- ALTER TABLE `AuthenticationStatus` ADD PRIMARY KEY (`ueid`); -- -- Indexes for table `AuthenticationSubscription` -- ALTER TABLE `AuthenticationSubscription` ADD PRIMARY KEY (`ueid`); -- -- Indexes for table `SdmSubscriptions` -- ALTER TABLE `SdmSubscriptions` ADD PRIMARY KEY (`subsId`,`ueid`) USING BTREE; -- -- Indexes for table `SessionManagementSubscriptionData` -- ALTER TABLE `SessionManagementSubscriptionData` ADD PRIMARY KEY (`ueid`,`servingPlmnid`) USING BTREE; -- -- Indexes for table `SmfRegistrations` -- ALTER TABLE `SmfRegistrations` ADD PRIMARY KEY (`ueid`,`subpduSessionId`) USING BTREE; -- -- Indexes for table `SmfSelectionSubscriptionData` -- ALTER TABLE `SmfSelectionSubscriptionData` ADD PRIMARY KEY (`ueid`,`servingPlmnid`) USING BTREE; -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `SdmSubscriptions` -- ALTER TABLE `SdmSubscriptions` MODIFY `subsId` 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 */;
<gh_stars>0 select * from {{ var('customer_source') }}
ALTER TABLE project ADD COLUMN IF NOT EXISTS registry_id int; ALTER TABLE IF EXISTS cve_whitelist RENAME TO cve_allowlist; UPDATE role SET name='maintainer' WHERE name='master'; UPDATE project_metadata SET name='reuse_sys_cve_allowlist' WHERE name='reuse_sys_cve_whitelist'; CREATE TABLE IF NOT EXISTS execution ( id SERIAL NOT NULL, vendor_type varchar(16) NOT NULL, vendor_id int, status varchar(16), status_message text, trigger varchar(16) NOT NULL, extra_attrs JSON, start_time timestamp DEFAULT CURRENT_TIMESTAMP, end_time timestamp, PRIMARY KEY (id) ); CREATE TABLE IF NOT EXISTS task ( id SERIAL PRIMARY KEY NOT NULL, execution_id int NOT NULL, job_id varchar(64), status varchar(16) NOT NULL, status_code int NOT NULL, status_revision int, status_message text, run_count int, extra_attrs JSON, creation_time timestamp DEFAULT CURRENT_TIMESTAMP, start_time timestamp, update_time timestamp, end_time timestamp, FOREIGN KEY (execution_id) REFERENCES execution(id) ); ALTER TABLE blob ADD COLUMN IF NOT EXISTS update_time timestamp default CURRENT_TIMESTAMP; ALTER TABLE blob ADD COLUMN IF NOT EXISTS status varchar(255); ALTER TABLE blob ADD COLUMN IF NOT EXISTS version BIGINT default 0; CREATE INDEX IF NOT EXISTS idx_status ON blob (status); CREATE INDEX IF NOT EXISTS idx_version ON blob (version); CREATE TABLE p2p_preheat_instance ( id SERIAL PRIMARY KEY NOT NULL, name varchar(255) NOT NULL, description varchar(255), vendor varchar(255) NOT NULL, endpoint varchar(255) NOT NULL, auth_mode varchar(255), auth_data text, enabled boolean, is_default boolean, insecure boolean, setup_timestamp int, UNIQUE (name) ); CREATE TABLE IF NOT EXISTS p2p_preheat_policy ( id SERIAL PRIMARY KEY NOT NULL, name varchar(255) NOT NULL, description varchar(1024), project_id int NOT NULL, provider_id int NOT NULL, filters varchar(1024), trigger varchar(16), enabled boolean, creation_time timestamp, update_time timestamp, UNIQUE (name, project_id) );
# 创建数据库 create database if not exists es_admin charset utf8mb4; use es_admin; # 后台管理员 create table if not exists `admin_auth` ( `id` int(10) unsigned not null AUTO_INCREMENT, `uname` varchar(20) not null comment '用户名', `pwd` text not null comment '密码', `encry` char(6) not null comment '加密串', `role_id` int(10) unsigned not null comment '组id', `display_name` varchar(100) default '' comment '显示用户名', `logined_at` datetime comment '最近登陆时间', `created_at` timestamp null default current_timestamp, `status` tinyint(1) default 1 comment '状态 0 启用 1禁用 ', `deleted` tinyint(1) default 0 , PRIMARY key(`id`), UNIQUE KEY(`uname`) ) engine=InnoDB default CHARSET=utf8mb4 COMMENT='后台管理员'; INSERT INTO `admin_auth`(`id`, `uname`, `pwd`, `encry`, `role_id`, `display_name`, `status`, `deleted`) VALUES (1, 'admin', '<PASSWORD>', 'XK.?}<', 1, 'jmz', 1, 0) ,(2, 'jmz', '<PASSWORD>', 'M@q}DS', 2, 'caiwu 123', 1, 0); # 组 create table if not exists `admin_role` ( `id` int(10) unsigned not null AUTO_INCREMENT, `name` varchar(50) not null comment '组名', `detail` varchar(200) not null comment '简单描述', `rules_checked` text comment 'layui 树形选中的checked', `rules` text comment '权限列表 所有打勾的', `pid` int(10) unsigned default 0 comment '上级部门', `created_at` timestamp default current_timestamp, PRIMARY key(`id`) ) engine =InnoDB default charset=utf8mb4 comment= '组名'; INSERT INTO `admin_role`(`id`, `name`, `detail`, `rules_checked`, `rules`) VALUES (1, '超级管理员', '网站建设者', '5,6,7,8,9,10,11,12,17,13,14,15,16', '1,2,5,6,7,8,3,9,10,11,12,17,4,13,14,15,16') ,(2,'测试','测试小角色','5,6,7,8,9,10,11,12,17,13,14,15,16,19','1,2,5,6,7,8,3,9,10,11,12,17,4,13,14,15,16,18,19'); # 权限 CREATE TABLE if not exists `admin_rule` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID', `name` varchar(128) NOT NULL DEFAULT '' COMMENT '名称', `node` varchar(50) default '' comment '节点', `status` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '1 启用; 0 禁用', `pid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '父级ID', `created_at` timestamp default current_timestamp, PRIMARY KEY (`id`), KEY node(`node`), KEY `status_node` (`status`,`node`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='权限点和菜单列表'; INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (1, '管理用户', 'auth', 1, 0); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (2, '后台管理员', 'auth.auth', 1, 1); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (3, '角色管理', 'auth.role', 1, 1); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (4, '权限管理', 'auth.rule', 1, 1); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (5, '查看管理列表', 'auth.auth.view', 1, 2); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (6, '添加管理员', 'auth.auth.add', 1, 2); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (7, '修改管理员', 'auth.auth.set', 1, 2); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (8, '删除管理员', 'auth.auth.del', 1, 2); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (9, '查看角色', 'auth.role.view', 1, 3); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (10, '增加角色', 'auth.role.add', 1, 3); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (11, '修改角色', 'auth.role.set', 1, 3); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (12, '删除角色', 'auth.role.del', 1, 3); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (13, '查看权限', 'auth.rule.view', 1, 4); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (14, '增加权限', 'auth.rule.add', 1, 4); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (15, '修改权限', 'auth.rule.set', 1, 4); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (16, '删除权限', 'auth.rule.del', 1, 4); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (17, '变更权限', 'auth.role.rule', 1, 3); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (18, '主页', 'index', 1, 0); INSERT INTO `admin_rule`(`id`, `name`, `node`, `status`, `pid`) VALUES (19, '登录日志', 'index.login.log', 1, 18); # 操作日志记录 CREATE TABLE if not exists `admin_log` ( `id` int(10) unsigned not null auto_increment, `url` varchar(50) not null DEFAULT '' comment '操作url', `data` text comment '信息', `uid` int(10) comment '操作人', `created_at` timestamp default current_timestamp, PRIMARY KEY(`id`) ) engine=MyISAM default CHARSET=utf8mb4 comment='操作记录表'; # 登录日志记录 CREATE TABLE if not exists `admin_login_log`( `id` int(10) unsigned not null auto_increment, `uname` varchar(20) comment '登录人', `status` tinyint(1) default '0' comment '是否登录 1 登录成功,0失败', `created_at` timestamp default current_timestamp, PRIMARY KEY(`id`) )engine=MyISAM default CHARSET=utf8mb4 comment='登录日志记录表'; # 创建直播源列表 CREATE TABLE IF NOT EXISTS `admin_play`( `id` TINYINT UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(32) NOT NULL DEFAULT '' COMMENT '主播名称', `url` VARCHAR(64) NOT NULL DEFAULT '' COMMENT '主播网址', `func` VARCHAR(20) NOT NULL COMMENT '接入方法,需后端开发配置', `cover_img` VARCHAR(64) NOT NULL DEFAULT '' COMMENT '封面图片', `status` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '1 启用; 0 禁用', `uid` int(10) comment '操作人', `created_at` timestamp default current_timestamp, PRIMARY KEY(`id`) )engine=MyISAM default CHARSET=utf8mb4 comment='直播源列表'; # 创建用户表 DROP TABLE IF EXISTS `admin_user`; CREATE TABLE IF NOT EXISTS `admin_user`( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `mobile` VARCHAR(32) NOT NULL DEFAULT '' COMMENT '手机号', `nickname` VARCHAR(32) NOT NULL DEFAULT '' COMMENT '昵称', `password_hash` VARCHAR(128) NOT NULL DEFAULT '' COMMENT '密码', `photo` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '头像', `wx_photo` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '微信头像', `wx_name` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '微信昵称', `third_wx_unionid` VARCHAR(128) NOT NULL DEFAULT '' COMMENT '微信id', `sign_at` timestamp comment '最后登陆时间', `status` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '1 启用; 0 禁用', `is_online` tinyint(2) unsigned NOT NULL DEFAULT 0 COMMENT '1 在线; 0 不在线', `created_at` timestamp default current_timestamp, `updated_at` timestamp default current_timestamp, PRIMARY KEY(`id`), UNIQUE KEY `mobile`(`mobile`), KEY `created_at`(`created_at`), KEY `sign_at`(`sign_at`) )engine=InnoDB default CHARSET=utf8mb4 comment='用户表'; # 系统配置表 CREATE TABLE IF NOT EXISTS `admin_sys_setting`( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `sys_key` VARCHAR(24) NOT NULL COMMENT '系统配置key', `sys_value` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '配置项值', `created_at` timestamp default current_timestamp, `updated_at` timestamp default current_timestamp, PRIMARY KEY(`id`), UNIQUE KEY `sys_key`(`sys_key`) )engine=InnoDB default CHARSET=utf8mb4 comment='系统配置表'; # 意见表 DROP TABLE IF EXISTS `admin_user_options`; CREATE TABLE IF NOT EXISTS `admin_user_options`( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `user_id` INT UNSIGNED NOT NULL COMMENT '用户id', `nickname` varchar(64) NOT NULL COMMENT '昵称', `phone` VARCHAR(13) NOT NULL COMMENT '手机号', `content` TEXT NOT NULL COMMENT '反馈内容', `reply` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '回复内容', `status` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT '0待审核1已回复', `admin_id` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT '回复人id', `admin_name` VARCHAR(64) NOT NULL default '' COMMENT '管理员', `created_at` timestamp default current_timestamp, `updated_at` timestamp default current_timestamp, PRIMARY KEY (`id`), KEY `user_created`(`user_id`, `created_at`) USING btree )engine=InnoDB default CHARSET=utf8mb4 comment='意见表'; # 创建消息表 DROP TABLE IF EXISTS `admin_messages`; CREATE TABLE IF NOT EXISTS `admin_messages`( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `type` varchar(10) NOT NULL DEFAULT '' COMMENT '消息类型广播', `sender_user_id` INT UNSIGNED NOT NULL COMMENT '来源用户id', `sender_mobile` char(13) NOT NULL COMMENT '发送手机号', `sender_photo` varchar(128) NOT NULL COMMENT '发送者头像', `sender_nickname` VARCHAR(64) NOT NULL COMMENT '来源昵称', `match_id` INT UNSIGNED NOT NULL COMMENT '比赛id', `content` TEXT NOT NULL COMMENT '消息实体', `with_message_id` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT '@messageId', `created_at` timestamp default current_timestamp, PRIMARY KEY(`id`), KEY `group_username`(`match_id`, `sender_user_id`), KEY `group_time`(`match_id`, `created_at`) )engine=InnoDB default CHARSET=utf8mb4 comment='聊天记录表'; # 创建群组表 (可能不需要, 只需要记录对应的直播源id即可) # 创建异常表,方便排错 DROP TABLE IF EXISTS `exceptions`; CREATE TABLE IF NOT EXISTS `exceptions`( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `path` VARCHAR(64) NOT NULL COMMENT '路径', `message` VARCHAR(255) NOT NULL COMMENT '消息', `detail` TINYTEXT NOT NULL, `created_at` timestamp default current_timestamp, PRIMARY KEY(`id`) )engine=MyISAM default CHARSET=utf8mb4 comment='消息表'; # 创建用户登陆日志表 /*DROP TABLE IF EXISTS `admin_user_login_log`; CREATE TABLE IF NOT EXISTS `admin_user_login_log`( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `uid` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id', `username` VARCHAR(64) NOT NULL DEFAULT '' COMMENT '登陆用户', `created_at` timestamp default current_timestamp COMMENT '登陆时间', `drop_at` timestamp default current_timestamp COMMENT '下线时间' )engine=InnoDB default CHARSET=utf8mb4 comment='用户登陆日志表';*/ # 创建系统消息类型 DROP TABLE IF EXISTS `admin_system_message_category`; CREATE TABLE IF NOT EXISTS `admin_system_message_category`( `id` TINYINT UNSIGNED AUTO_INCREMENT, `name` varchar(32) NOT NULL COMMENT '分类名称', `pid` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '上级id', `pname` varchar(32) NOT NULL DEFAULT '' COMMENT '上级名称', `admin_id` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT '管理员id', `admin_name` VARCHAR(64) NOT NULL default '' COMMENT '管理员', `created_at` timestamp default current_timestamp, `updated_at` timestamp default current_timestamp, PRIMARY KEY(`id`) )engine=InnoDB default CHARSET=utf8mb4 comment='系统消息类型'; # 创建系统消息列表 DROP TABLE IF EXISTS `admin_system_message_lists`; CREATE TABLE IF NOT EXISTS `admin_system_message_lists`( `id` TINYINT UNSIGNED AUTO_INCREMENT, `cate_name` varchar(32) NOT NULL COMMENT '分类名称', `cate_id` tinyint UNSIGNED NOT NULL COMMENT '分类id', `title` VARCHAR(64) NOT NULL COMMENT '标题', `content` TEXT NOT NULL COMMENT '消息内容', `status` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT '0待审核1已公布2已删除', `admin_id` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT '管理员id', `admin_name` VARCHAR(64) NOT NULL default '' COMMENT '管理员', `created_at` timestamp default current_timestamp, `updated_at` timestamp default current_timestamp, PRIMARY KEY(`id`), KEY `cate_status_time`(`cate_id`, `status`, `created_at`) )engine=InnoDB default CHARSET=utf8mb4 comment='系统消息表'; # 消息用户已读 DROP TABLE IF EXISTS `admin_user_read_records`; CREATE TABLE IF NOT EXISTS `admin_user_read_records`( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `message_id` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT '消息id', `message_title` VARCHAR(64) NOT NULL COMMENT '标题', `user_id` INT UNSIGNED NOT NULL COMMENT '用户id', `mobile` VARCHAR(13) NOT NULL COMMENT '手机号', `created_at` timestamp default current_timestamp, PRIMARY KEY(`id`), unique key `user_message`(`user_id`, `message_id`) USING btree )engine=InnoDB default CHARSET=utf8mb4 comment='消息用户已读表'; # 短信验证码表 DROP TABLE IF EXISTS `admin_user_phonecode`; CREATE TABLE IF NOT EXISTS `admin_user_phonecode`( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `mobile` VARCHAR(13) NOT NULL COMMENT '手机号', `code` CHAR(6) NOT NULL COMMENT '验证码', `status` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT '0待审核1已使用', `created_at` timestamp default current_timestamp, PRIMARY KEY (`id`), KEY `creatd_at`(`created_at`) )engine=InnoDB default CHARSET=utf8mb4 comment='短信验证码表';
<reponame>Ensembl/ensembl-taxonomy -- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2021] EMBL-European Bioinformatics Institute -- -- Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 -- -- 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. -- change this internal node name as requested by Dr. <NAME>: UPDATE ncbi_taxa_name SET name = 'Marsupialia' WHERE taxon_id = 9263 AND name_class = 'scientific name' AND name = 'Metatheria'; UPDATE ncbi_taxa_name SET name = 'Metatheria' WHERE taxon_id = 9263 AND name_class = 'synonym' AND name = 'Marsupialia';
<filename>dbt_packages/dbt_utils/integration_tests/models/cross_db_utils/test_bool_or.sql<gh_stars>1-10 select key, {{ dbt_utils.bool_or('val1 = val2') }} as value from {{ ref('data_bool_or' )}} group by key
<gh_stars>10-100 select network_interface_id, interface_type from aws.aws_ec2_network_interface where network_interface_id = '{{ output.resource_id.value }}'
<reponame>TTGS/IT_script --日期可以和数字相加,结果是天进位。时间和时间戳都不行,需要指定。 --当前日期可以直接加数字。 select current_date,current_date+1 ; -- 时间和时间戳会保持。 select current_time,current_time +1 ; select current_timestamp,current_timestamp +1 ; --使用指定单位进行相加。 select current_timestamp,current_timestamp +interval '1' month ; --如果是列中数字,可以使用拼接加指定完成。比如我需要将当前时间戳加指定单位和间隔数据类型即可。 select i ,current_timestamp , current_timestamp + (i||' minute')::interval from generate_series(1,100 ) t(i) ; -- 这里注意下,如果是1月29日,加一个月,那么他不会变到2月29日,而是2月28日。除非这年是闰年。 select '2019-01-29'::Date+interval '1' month , '2019-01-30'::Date+interval '1' month , '2019-01-31'::Date+interval '1' month -- 闰年的1月29日,那么加1个月就会有2月29日出现。 select '2020-01-29'::Date+interval '1' month , '2020-01-30'::Date+interval '1' month , '2020-01-31'::Date+interval '1' month
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 17-09-2018 a las 21:01:07 -- Versión del servidor: 5.7.19 -- Versión de PHP: 7.1.14 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: `hospital` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `data_rows` -- CREATE TABLE `data_rows` ( `id` int(10) UNSIGNED NOT NULL, `data_type_id` int(10) UNSIGNED NOT NULL, `field` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `display_name` varchar(191) COLLATE utf8mb4_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 utf8mb4_unicode_ci, `order` int(11) NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `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, '', 1), (2, 1, 'name', 'text', 'Name', 1, 1, 1, 1, 1, 1, '', 2), (3, 1, 'email', 'text', 'Email', 1, 1, 1, 1, 1, 1, '', 3), (4, 1, 'password', 'password', 'Password', 1, 0, 0, 1, 1, 0, '', 4), (5, 1, 'remember_token', 'text', 'Remember Token', 0, 0, 0, 0, 0, 0, '', 5), (6, 1, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 0, 0, 0, '', 6), (7, 1, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, '', 7), (8, 1, 'avatar', 'image', 'Avatar', 0, 1, 1, 1, 1, 1, '', 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, 'locale', 'text', 'Locale', 0, 1, 1, 1, 1, 0, '', 12), (12, 1, 'settings', 'hidden', 'Settings', 0, 0, 0, 0, 0, 0, '', 12), (13, 2, 'id', 'number', 'ID', 1, 0, 0, 0, 0, 0, '', 1), (14, 2, 'name', 'text', 'Name', 1, 1, 1, 1, 1, 1, '', 2), (15, 2, 'created_at', 'timestamp', 'Created At', 0, 0, 0, 0, 0, 0, '', 3), (16, 2, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, '', 4), (17, 3, 'id', 'number', 'ID', 1, 0, 0, 0, 0, 0, '', 1), (18, 3, 'name', 'text', 'Name', 1, 1, 1, 1, 1, 1, '', 2), (19, 3, 'created_at', 'timestamp', 'Created At', 0, 0, 0, 0, 0, 0, '', 3), (20, 3, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, '', 4), (21, 3, 'display_name', 'text', 'Display Name', 1, 1, 1, 1, 1, 1, '', 5), (22, 1, 'role_id', 'text', 'Role', 1, 1, 1, 1, 1, 1, '', 9), (23, 4, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, NULL, 1), (24, 4, 'telefono', 'text', 'Telefono', 0, 1, 1, 1, 1, 1, NULL, 2), (25, 4, 'email', 'text', 'Email', 0, 1, 1, 1, 1, 1, NULL, 3), (26, 4, 'horario', 'text', 'Horario', 0, 1, 1, 1, 1, 1, NULL, 4), (27, 4, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 0, 0, 0, NULL, 5), (28, 4, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 6), (29, 5, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, NULL, 1), (30, 5, 'titulouno', 'text', 'Titulouno', 1, 1, 1, 1, 1, 1, NULL, 2), (31, 5, 'titulodos', 'text', 'Titulodos', 1, 1, 1, 1, 1, 1, NULL, 3), (32, 5, 'titulotres', 'text', 'Titulotres', 0, 1, 1, 1, 1, 1, NULL, 4), (33, 5, 'fondo', 'image', 'Fondo', 1, 1, 1, 1, 1, 1, NULL, 5), (34, 5, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 1, 0, 1, NULL, 6), (35, 5, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 7), (36, 6, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, NULL, 1), (37, 6, 'titulouno', 'text', 'Titulouno', 1, 1, 1, 1, 1, 1, NULL, 2), (38, 6, 'titulodos', 'text', 'Titulodos', 1, 1, 1, 1, 1, 1, NULL, 3), (39, 6, 'titulotres', 'text', 'Titulotres', 0, 1, 1, 1, 1, 1, NULL, 4), (40, 6, 'fondo', 'image', 'Fondo (Tamaño ideal (1920 x 1100)px', 1, 1, 1, 1, 1, 1, '{\"validation\":{\"rule\":\"required\"}}', 5), (41, 6, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 1, 0, 1, NULL, 6), (42, 6, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 7), (43, 7, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, NULL, 1), (44, 7, 'titulouno', 'text', 'Titulouno', 1, 1, 1, 1, 1, 1, NULL, 2), (45, 7, 'descripcionuno', 'text_area', 'Descripcion uno', 1, 1, 1, 1, 1, 1, NULL, 3), (46, 7, 'titulodos', 'text', 'Titulo dos', 1, 1, 1, 1, 1, 1, NULL, 4), (47, 7, 'diauno', 'text', 'Dia uno', 1, 1, 1, 1, 1, 1, NULL, 5), (48, 7, 'horauno', 'text', 'Hora uno', 1, 1, 1, 1, 1, 1, NULL, 6), (49, 7, 'diados', 'text', 'Dia dos', 1, 1, 1, 1, 1, 1, NULL, 7), (50, 7, 'horados', 'text', 'Hora dos', 1, 1, 1, 1, 1, 1, NULL, 8), (51, 7, 'diatres', 'text', 'Dia tres', 0, 1, 1, 1, 1, 1, NULL, 9), (52, 7, 'horatres', 'text', 'Hora tres', 0, 1, 1, 1, 1, 1, NULL, 10), (53, 7, 'diacuatro', 'text', 'Dia cuatro', 0, 1, 1, 1, 1, 1, NULL, 11), (54, 7, 'horacuatro', 'text', 'Hora cuatro', 0, 1, 1, 1, 1, 1, NULL, 12), (55, 7, 'diacinco', 'text', 'Dia cinco', 0, 1, 1, 1, 1, 1, NULL, 13), (56, 7, 'horacinco', 'text', 'Hora cinco', 0, 1, 1, 1, 1, 1, NULL, 14), (57, 7, 'diaseis', 'text', '<NAME>', 0, 1, 1, 1, 1, 1, NULL, 15), (58, 7, 'horaseis', 'text', '<NAME>', 0, 1, 1, 1, 1, 1, NULL, 16), (59, 7, 'diasiete', 'text', '<NAME>', 0, 1, 1, 1, 1, 1, NULL, 17), (60, 7, 'horasiete', 'text', '<NAME>', 0, 1, 1, 1, 1, 1, NULL, 18), (61, 7, 'titulotres', 'text', 'Titulo tres', 1, 1, 1, 1, 1, 1, NULL, 19), (62, 7, 'descripciondos', 'text_area', 'Descripcion dos', 1, 1, 1, 1, 1, 1, NULL, 20), (63, 7, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 1, 0, 1, NULL, 21), (64, 7, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 22), (65, 8, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, NULL, 1), (66, 8, 'titulouno', 'text', 'Título uno', 1, 1, 1, 1, 1, 1, NULL, 2), (67, 8, 'descripcionuno', 'text_area', 'Descripción uno', 1, 1, 1, 1, 1, 1, NULL, 3), (68, 8, 'titulodos', 'text', 'Título dos', 1, 1, 1, 1, 1, 1, NULL, 4), (69, 8, 'diauno', 'text', 'Día uno', 1, 1, 1, 1, 1, 1, NULL, 5), (70, 8, 'horauno', 'text', 'Hora uno', 1, 1, 1, 1, 1, 1, NULL, 6), (71, 8, 'diados', 'text', 'Día dos', 1, 1, 1, 1, 1, 1, NULL, 7), (72, 8, 'horados', 'text', 'Hora dos', 1, 1, 1, 1, 1, 1, NULL, 8), (73, 8, 'diatres', 'text', 'Día tres', 0, 1, 1, 1, 1, 1, NULL, 9), (74, 8, 'horatres', 'text', 'Hora tres', 0, 1, 1, 1, 1, 1, NULL, 10), (75, 8, 'titulotres', 'text', 'Título tres', 1, 1, 1, 1, 1, 1, NULL, 11), (76, 8, 'descripciondos', 'text', 'Descripcion dos', 1, 1, 1, 1, 1, 1, NULL, 12), (77, 8, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 1, 0, 1, NULL, 13), (78, 8, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 14), (79, 9, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, NULL, 1), (80, 9, 'titulo', 'text', 'Título', 1, 1, 1, 1, 1, 1, NULL, 2), (81, 9, 'subuno', 'text', 'Sub uno', 1, 1, 1, 1, 1, 1, NULL, 3), (82, 9, 'subdos', 'text', 'Sub dos', 1, 1, 1, 1, 1, 1, NULL, 4), (83, 9, 'descripcion', 'text_area', 'Descripcion', 1, 1, 1, 1, 1, 1, NULL, 5), (84, 9, 'imagen', 'image', 'Imagen (800 x 532)px', 1, 1, 1, 1, 1, 1, NULL, 6), (85, 9, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 1, 0, 1, NULL, 7), (86, 9, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 8), (87, 10, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, NULL, 1), (96, 10, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 1, 0, 1, NULL, 10), (97, 10, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 11), (98, 10, 'imagen', 'image', 'Imagen (800 x 532)px', 1, 1, 1, 1, 1, 1, NULL, 2), (99, 10, 'texto', 'text', 'Texto', 1, 1, 1, 1, 1, 1, NULL, 3), (100, 11, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, NULL, 1), (101, 11, 'titulouno', 'text', 'Título uno', 1, 1, 1, 1, 1, 1, NULL, 2), (102, 11, 'desuno', 'text', 'Descripción uno', 1, 1, 1, 1, 1, 1, NULL, 3), (103, 11, 'titulodos', 'text', 'Título dos', 1, 1, 1, 1, 1, 1, NULL, 4), (104, 11, 'desdos', 'text', 'Descripción dos', 1, 1, 1, 1, 1, 1, NULL, 5), (105, 11, 'titulotres', 'text', 'Títulotres', 1, 1, 1, 1, 1, 1, NULL, 6), (106, 11, 'destres', 'text', 'Descripción tres', 1, 1, 1, 1, 1, 1, NULL, 7), (107, 11, 'titulocuatro', 'text', 'Título cuatro', 1, 1, 1, 1, 1, 1, NULL, 8), (108, 11, 'descuatro', 'text', 'Descripción cuatro', 1, 1, 1, 1, 1, 1, NULL, 9), (109, 11, 'titulocinco', 'text', 'Título cinco', 1, 1, 1, 1, 1, 1, NULL, 10), (110, 11, 'descinco', 'text', 'Descripción cinco', 1, 1, 1, 1, 1, 1, NULL, 11), (111, 11, 'tituloseis', 'text', 'Título seis', 1, 1, 1, 1, 1, 1, NULL, 12), (112, 11, 'desseis', 'text', 'Descripción seis', 1, 1, 1, 1, 1, 1, NULL, 13), (113, 11, 'imagen', 'image', 'Imagen (450 x 400)px', 1, 1, 1, 1, 1, 1, NULL, 14), (114, 11, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 0, 0, 0, NULL, 15), (115, 11, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 16), (116, 12, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, NULL, 1), (117, 12, 'imagen', 'image', 'Imagen (600 x 700)px', 1, 1, 1, 1, 1, 1, NULL, 2), (118, 12, 'nombre', 'text', 'Nombre', 1, 1, 1, 1, 1, 1, NULL, 3), (119, 12, 'especialidad', 'text', 'Especialidad', 1, 1, 1, 1, 1, 1, NULL, 4), (120, 12, 'descripcion', 'text', 'Descripción', 1, 1, 1, 1, 1, 1, NULL, 5), (121, 12, 'imagendos', 'image', 'Imagen dos (600 x 700)px', 1, 1, 1, 1, 1, 1, NULL, 6), (122, 12, 'nombredos', 'text', 'Nombre dos', 1, 1, 1, 1, 1, 1, NULL, 7), (123, 12, 'especialidaddos', 'text', 'Especialidad dos', 1, 1, 1, 1, 1, 1, NULL, 8), (124, 12, 'descripciondos', 'text', 'Descripción dos', 1, 1, 1, 1, 1, 1, NULL, 9), (125, 12, 'imagentres', 'image', 'Imagen tres (600 x 700)px', 1, 1, 1, 1, 1, 1, NULL, 10), (126, 12, 'nombretres', 'text', 'Nombre tres', 1, 1, 1, 1, 1, 1, NULL, 11), (127, 12, 'especialidadtres', 'text', 'Especialidad tres', 1, 1, 1, 1, 1, 1, NULL, 12), (128, 12, 'descripciontres', 'text', 'Descripción tres', 1, 1, 1, 1, 1, 1, NULL, 13), (129, 12, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 1, 0, 1, NULL, 14), (130, 12, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 15), (131, 13, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, NULL, 1), (132, 13, 'titulo', 'text', 'Título', 1, 1, 1, 1, 1, 1, NULL, 2), (133, 13, 'descripcion', 'text_area', 'Descripción', 1, 1, 1, 1, 1, 1, NULL, 4), (135, 13, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 0, 0, 0, NULL, 6), (136, 13, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 7), (137, 13, 'costo', 'text', 'Costo', 1, 1, 1, 1, 1, 1, NULL, 3), (138, 13, 'contactanos', 'text', 'Contactanos', 1, 1, 1, 1, 1, 1, NULL, 5), (139, 14, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, NULL, 1), (140, 14, 'titulo', 'text', 'Testimonio', 1, 1, 1, 1, 1, 1, NULL, 2), (141, 14, 'descripcion', 'text_area', 'Descripción', 1, 1, 1, 1, 1, 1, NULL, 3), (142, 14, 'foto', 'image', 'Foto', 1, 1, 1, 1, 1, 1, NULL, 4), (143, 14, 'nombre', 'text', 'Nombre', 1, 1, 1, 1, 1, 1, NULL, 5), (144, 14, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 1, 0, 1, NULL, 6), (145, 14, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 7), (146, 15, 'id', 'text', 'Id', 1, 0, 0, 0, 0, 0, NULL, 1), (147, 15, 'logo', 'image', 'Logo (413 x 72)px', 1, 1, 1, 1, 1, 1, NULL, 2), (148, 15, 'descripcion', 'text_area', 'Descripción', 1, 1, 1, 1, 1, 1, NULL, 3), (149, 15, 'desc_contacto', 'text_area', 'Descripción Contacto', 1, 1, 1, 1, 1, 1, NULL, 4), (150, 15, 'subscribe', 'text_area', 'Subscribe', 1, 1, 1, 1, 1, 1, NULL, 5), (151, 15, 'distribuido', 'text', 'Distribuido', 0, 1, 1, 1, 1, 1, NULL, 6), (152, 15, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 1, 0, 1, NULL, 7), (153, 15, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 8); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `data_types` -- CREATE TABLE `data_types` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `display_name_singular` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `display_name_plural` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `icon` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `model_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `policy_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `controller` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `generate_permissions` tinyint(1) NOT NULL DEFAULT '0', `server_side` tinyint(4) NOT NULL DEFAULT '0', `details` text COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `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', '', '', 1, 0, NULL, '2018-09-06 22:49:35', '2018-09-06 22:49:35'), (2, 'menus', 'menus', 'Menu', 'Menus', 'voyager-list', 'TCG\\Voyager\\Models\\Menu', NULL, '', '', 1, 0, NULL, '2018-09-06 22:49:35', '2018-09-06 22:49:35'), (3, 'roles', 'roles', 'Role', 'Roles', 'voyager-lock', 'TCG\\Voyager\\Models\\Role', NULL, '', '', 1, 0, NULL, '2018-09-06 22:49:35', '2018-09-06 22:49:35'), (4, 'headers', 'headers', 'Header', 'Headers', 'voyager-file-text', 'App\\Header', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null}', '2018-09-06 23:10:49', '2018-09-06 23:10:49'), (5, 'slider', 'slider', 'Slider', 'Sliders', 'voyager-images', 'App\\Slider', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null}', '2018-09-11 02:15:00', '2018-09-11 02:15:00'), (6, 'sliders', 'sliders', 'Slider', 'Sliders', 'voyager-images', 'App\\Slider', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null}', '2018-09-11 02:36:46', '2018-09-11 02:36:46'), (7, 'informacion', 'informacion', 'Informacion', 'Informacions', 'voyager-file-text', 'App\\Informacion', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null}', '2018-09-11 03:22:03', '2018-09-11 03:22:03'), (8, 'informacions', 'informacions', 'Informacion', 'Informacions', 'voyager-file-text', 'App\\Informacion', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null}', '2018-09-11 03:34:15', '2018-09-11 03:34:15'), (9, 'servicios', 'servicios', 'Servicio', 'Servicios', 'voyager-heart', 'App\\Servicio', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null}', '2018-09-11 20:40:06', '2018-09-11 20:40:06'), (10, 'galerias', 'galerias', 'Galeria', 'Galerias', 'voyager-images', 'App\\Galeria', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null}', '2018-09-11 21:12:18', '2018-09-11 21:16:15'), (11, 'serviciosdos', 'serviciosdos', 'Serviciosdo', 'Serviciosdos', 'voyager-puzzle', 'App\\Serviciosdo', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null}', '2018-09-12 22:12:14', '2018-09-12 22:12:14'), (12, 'doctores', 'doctores', 'Doctore', 'Doctores', 'voyager-people', 'App\\Doctore', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null}', '2018-09-12 22:36:02', '2018-09-12 22:36:02'), (13, 'promociones', 'promociones', 'Promocione', 'Promociones', 'voyager-paypal', 'App\\Promocione', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null}', '2018-09-13 20:23:12', '2018-09-13 20:23:12'), (14, 'testimonios', 'testimonios', 'Testimonio', 'Testimonios', 'voyager-group', 'App\\Testimonio', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null}', '2018-09-13 20:57:34', '2018-09-13 20:57:34'), (15, 'footers', 'footers', 'Footer', 'Footers', 'voyager-logbook', 'App\\Footer', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null}', '2018-09-18 01:44:52', '2018-09-18 01:44:52'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `doctores` -- CREATE TABLE `doctores` ( `id` int(10) UNSIGNED NOT NULL, `imagen` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `nombre` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `especialidad` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `imagendos` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `nombredos` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `especialidaddos` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `descripciondos` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `imagentres` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `nombretres` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `especialidadtres` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `descripciontres` varchar(255) 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; -- -- Volcado de datos para la tabla `doctores` -- INSERT INTO `doctores` (`id`, `imagen`, `nombre`, `especialidad`, `descripcion`, `imagendos`, `nombredos`, `especialidaddos`, `descripciondos`, `imagentres`, `nombretres`, `especialidadtres`, `descripciontres`, `created_at`, `updated_at`) VALUES (1, 'doctores\\September2018\\dYUnprq8drlXut5G998e.jpg', '<NAME>', 'Oftalmología.', 'Doctor uno de Ejemplo', 'doctores\\September2018\\JEWRjFimIzuKDfFXRq7v.jpg', '<NAME>', 'Urología', 'Doctor dos de ejmplo', 'doctores\\September2018\\3ltPnaQ3camMUrwm3t5y.jpg', '<NAME>', 'Traumatología.', 'Doctor de ejemplo tres', '2018-09-12 22:38:51', '2018-09-12 22:38:51'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `footers` -- CREATE TABLE `footers` ( `id` int(10) UNSIGNED NOT NULL, `logo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `descripcion` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `desc_contacto` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `subscribe` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `distribuido` varchar(255) 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; -- -- Volcado de datos para la tabla `footers` -- INSERT INTO `footers` (`id`, `logo`, `descripcion`, `desc_contacto`, `subscribe`, `distribuido`, `created_at`, `updated_at`) VALUES (1, 'footers\\September2018\\dDgFBW4SmyExKTGgXTvT.gif', 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus.', 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus.', 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus.', 'Derechos Reservados para el Ing. <NAME>', '2018-09-18 01:48:00', '2018-09-18 01:56:01'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `galerias` -- CREATE TABLE `galerias` ( `id` int(10) UNSIGNED NOT NULL, `imagen` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `texto` varchar(50) 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; -- -- Volcado de datos para la tabla `galerias` -- INSERT INTO `galerias` (`id`, `imagen`, `texto`, `created_at`, `updated_at`) VALUES (3, 'galerias\\September2018\\Mxh4iajfe7XCMvJIeF6q.jpg', 'Demo uno', '2018-09-11 21:33:04', '2018-09-11 21:33:04'), (4, 'galerias\\September2018\\tfF4quVQYveJnXVvIiD0.jpg', 'Demo dos', '2018-09-11 21:33:20', '2018-09-11 21:33:20'), (5, 'galerias\\September2018\\8QHXkhpSK1cFQIm9wiWl.jpg', 'Demo tres', '2018-09-11 21:33:33', '2018-09-11 21:33:33'), (6, 'galerias\\September2018\\S3MFiczph2kRlrCa9Tfh.jpg', 'Demo cuatro', '2018-09-11 21:33:47', '2018-09-11 21:33:47'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `headers` -- CREATE TABLE `headers` ( `id` int(10) UNSIGNED NOT NULL, `telefono` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `email` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `horario` varchar(249) 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; -- -- Volcado de datos para la tabla `headers` -- INSERT INTO `headers` (`id`, `telefono`, `email`, `horario`, `created_at`, `updated_at`) VALUES (1, '87876876876', '<EMAIL>', 'Diario: 7:00am a 9:00pm', '2018-09-06 23:32:11', '2018-09-06 23:32:11'), (2, '57961975', '<EMAIL>', 'Diario: 7:00am a 9:00pm', '2018-09-06 23:41:02', '2018-09-12 22:58:58'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `informacions` -- CREATE TABLE `informacions` ( `id` int(10) UNSIGNED NOT NULL, `titulouno` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `descripcionuno` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `titulodos` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `diauno` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `horauno` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `diados` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `horados` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `diatres` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `horatres` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `titulotres` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `descripciondos` longtext 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; -- -- Volcado de datos para la tabla `informacions` -- INSERT INTO `informacions` (`id`, `titulouno`, `descripcionuno`, `titulodos`, `diauno`, `horauno`, `diados`, `horados`, `diatres`, `horatres`, `titulotres`, `descripciondos`, `created_at`, `updated_at`) VALUES (1, 'Casos de Emergencia', 'En caso de emergencia favor de comunicarse a los siguientes telefonos 6566757- 768787987', 'Horas de Trabajo', 'Lunes - Viernes', '8:00 -18:00', 'Sabados', '8:00 -17:00', 'Domingos', '8:00 -13:00', 'Consultas Especiales', 'Las consultas especiales serán en horarios no fijos, se tendrá que hacer previa cita.', '2018-09-11 03:26:00', '2018-09-11 03:39:25'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `menus` -- CREATE TABLE `menus` ( `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; -- -- Volcado de datos para la tabla `menus` -- INSERT INTO `menus` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'admin', '2018-09-06 22:49:38', '2018-09-06 22:49:38'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `menu_items` -- CREATE TABLE `menu_items` ( `id` int(10) UNSIGNED NOT NULL, `menu_id` int(10) UNSIGNED DEFAULT NULL, `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `url` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `target` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '_self', `icon_class` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `color` varchar(191) COLLATE utf8mb4_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(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `parameters` text COLLATE utf8mb4_unicode_ci ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `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, '2018-09-06 22:49:38', '2018-09-06 22:49:38', 'voyager.dashboard', NULL), (2, 1, 'Media', '', '_self', 'voyager-images', NULL, NULL, 4, '2018-09-06 22:49:38', '2018-09-06 23:14:54', 'voyager.media.index', NULL), (3, 1, 'Users', '', '_self', 'voyager-person', NULL, NULL, 3, '2018-09-06 22:49:38', '2018-09-06 22:49:38', 'voyager.users.index', NULL), (4, 1, 'Roles', '', '_self', 'voyager-lock', NULL, NULL, 2, '2018-09-06 22:49:38', '2018-09-06 22:49:38', 'voyager.roles.index', NULL), (5, 1, 'Herramientas', '', '_self', 'voyager-tools', '#000000', NULL, 5, '2018-09-06 22:49:38', '2018-09-06 23:14:54', NULL, ''), (6, 1, 'Menus', '', '_self', 'voyager-list', '#000000', 5, 1, '2018-09-06 22:49:38', '2018-09-06 23:14:54', 'voyager.menus.index', 'null'), (7, 1, 'Base de Datos', '', '_self', 'voyager-data', '#000000', 5, 2, '2018-09-06 22:49:38', '2018-09-06 23:14:54', 'voyager.database.index', 'null'), (8, 1, 'Compass', '', '_self', 'voyager-compass', NULL, 5, 3, '2018-09-06 22:49:38', '2018-09-06 23:14:54', 'voyager.compass.index', NULL), (9, 1, 'BREAD', '', '_self', 'voyager-bread', NULL, 5, 4, '2018-09-06 22:49:38', '2018-09-06 23:14:54', 'voyager.bread.index', NULL), (10, 1, 'Configuraciones', '', '_self', 'voyager-settings', '#000000', NULL, 6, '2018-09-06 22:49:39', '2018-09-06 23:14:54', 'voyager.settings.index', 'null'), (11, 1, 'Hooks', '', '_self', 'voyager-hook', NULL, 5, 5, '2018-09-06 22:49:44', '2018-09-06 23:14:54', 'voyager.hooks', NULL), (12, 1, 'Headers', '', '_self', 'voyager-file-text', NULL, 13, 1, '2018-09-06 23:10:49', '2018-09-06 23:14:57', 'voyager.headers.index', NULL), (13, 1, 'Administración', '', '_self', 'voyager-list-add', '#000000', NULL, 7, '2018-09-06 23:14:28', '2018-09-06 23:17:02', NULL, ''), (15, 1, 'Sliders', '', '_self', 'voyager-images', NULL, 13, 2, '2018-09-11 02:36:46', '2018-09-11 03:22:20', 'voyager.sliders.index', NULL), (17, 1, 'Información', '', '_self', 'voyager-file-text', '#000000', 13, 3, '2018-09-11 03:34:15', '2018-09-11 03:34:48', 'voyager.informacions.index', 'null'), (18, 1, 'Servicios', '', '_self', 'voyager-heart', NULL, 13, 4, '2018-09-11 20:40:06', '2018-09-11 20:40:25', 'voyager.servicios.index', NULL), (19, 1, 'Galerias', '', '_self', 'voyager-images', '#000000', 13, 5, '2018-09-11 21:12:18', '2018-09-11 21:14:53', 'voyager.galerias.index', 'null'), (20, 1, 'Serviciosdos', '', '_self', 'voyager-puzzle', NULL, 13, 6, '2018-09-12 22:12:14', '2018-09-12 22:12:33', 'voyager.serviciosdos.index', NULL), (21, 1, 'Doctores', '', '_self', 'voyager-people', NULL, 13, 7, '2018-09-12 22:36:03', '2018-09-12 22:36:15', 'voyager.doctores.index', NULL), (22, 1, 'Promociones', '', '_self', 'voyager-paypal', NULL, 13, 8, '2018-09-13 20:23:15', '2018-09-13 20:23:34', 'voyager.promociones.index', NULL), (23, 1, 'Testimonios', '', '_self', 'voyager-group', NULL, 13, 9, '2018-09-13 20:57:34', '2018-09-13 20:57:50', 'voyager.testimonios.index', NULL), (24, 1, 'Footers', '', '_self', 'voyager-logbook', NULL, 13, 10, '2018-09-18 01:44:53', '2018-09-18 01:45:10', 'voyager.footers.index', NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `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; -- -- Volcado de datos para la tabla `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, '2016_01_01_000000_add_voyager_user_fields', 1), (4, '2016_01_01_000000_create_data_types_table', 1), (5, '2016_05_19_173453_create_menu_table', 1), (6, '2016_10_21_190000_create_roles_table', 1), (7, '2016_10_21_190000_create_settings_table', 1), (8, '2016_11_30_135954_create_permission_table', 1), (9, '2016_11_30_141208_create_permission_role_table', 1), (10, '2016_12_26_201236_data_types__add__server_side', 1), (11, '2017_01_13_000000_add_route_to_menu_items_table', 1), (12, '2017_01_14_005015_create_translations_table', 1), (13, '2017_01_15_000000_make_table_name_nullable_in_permissions_table', 1), (14, '2017_03_06_000000_add_controller_to_data_types_table', 1), (15, '2017_04_21_000000_add_order_to_data_rows_table', 1), (16, '2017_07_05_210000_add_policyname_to_data_types_table', 1), (17, '2017_08_05_000000_add_group_to_settings_table', 1), (18, '2017_11_26_013050_add_user_role_relationship', 1), (19, '2017_11_26_015000_create_user_roles_table', 1), (20, '2018_03_11_000000_add_user_settings', 1), (21, '2018_03_14_000000_add_details_to_data_types_table', 1), (22, '2018_03_16_000000_make_settings_value_nullable', 1); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `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; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `permissions` -- CREATE TABLE `permissions` ( `id` int(10) UNSIGNED NOT NULL, `key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `table_name` varchar(191) 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; -- -- Volcado de datos para la tabla `permissions` -- INSERT INTO `permissions` (`id`, `key`, `table_name`, `created_at`, `updated_at`) VALUES (1, 'browse_admin', NULL, '2018-09-06 22:49:39', '2018-09-06 22:49:39'), (2, 'browse_bread', NULL, '2018-09-06 22:49:39', '2018-09-06 22:49:39'), (3, 'browse_database', NULL, '2018-09-06 22:49:39', '2018-09-06 22:49:39'), (4, 'browse_media', NULL, '2018-09-06 22:49:39', '2018-09-06 22:49:39'), (5, 'browse_compass', NULL, '2018-09-06 22:49:39', '2018-09-06 22:49:39'), (6, 'browse_menus', 'menus', '2018-09-06 22:49:39', '2018-09-06 22:49:39'), (7, 'read_menus', 'menus', '2018-09-06 22:49:39', '2018-09-06 22:49:39'), (8, 'edit_menus', 'menus', '2018-09-06 22:49:40', '2018-09-06 22:49:40'), (9, 'add_menus', 'menus', '2018-09-06 22:49:40', '2018-09-06 22:49:40'), (10, 'delete_menus', 'menus', '2018-09-06 22:49:40', '2018-09-06 22:49:40'), (11, 'browse_roles', 'roles', '2018-09-06 22:49:40', '2018-09-06 22:49:40'), (12, 'read_roles', 'roles', '2018-09-06 22:49:40', '2018-09-06 22:49:40'), (13, 'edit_roles', 'roles', '2018-09-06 22:49:40', '2018-09-06 22:49:40'), (14, 'add_roles', 'roles', '2018-09-06 22:49:40', '2018-09-06 22:49:40'), (15, 'delete_roles', 'roles', '2018-09-06 22:49:40', '2018-09-06 22:49:40'), (16, 'browse_users', 'users', '2018-09-06 22:49:40', '2018-09-06 22:49:40'), (17, 'read_users', 'users', '2018-09-06 22:49:40', '2018-09-06 22:49:40'), (18, 'edit_users', 'users', '2018-09-06 22:49:41', '2018-09-06 22:49:41'), (19, 'add_users', 'users', '2018-09-06 22:49:41', '2018-09-06 22:49:41'), (20, 'delete_users', 'users', '2018-09-06 22:49:41', '2018-09-06 22:49:41'), (21, 'browse_settings', 'settings', '2018-09-06 22:49:41', '2018-09-06 22:49:41'), (22, 'read_settings', 'settings', '2018-09-06 22:49:41', '2018-09-06 22:49:41'), (23, 'edit_settings', 'settings', '2018-09-06 22:49:41', '2018-09-06 22:49:41'), (24, 'add_settings', 'settings', '2018-09-06 22:49:41', '2018-09-06 22:49:41'), (25, 'delete_settings', 'settings', '2018-09-06 22:49:41', '2018-09-06 22:49:41'), (26, 'browse_hooks', NULL, '2018-09-06 22:49:49', '2018-09-06 22:49:49'), (27, 'browse_headers', 'headers', '2018-09-06 23:10:49', '2018-09-06 23:10:49'), (28, 'read_headers', 'headers', '2018-09-06 23:10:49', '2018-09-06 23:10:49'), (29, 'edit_headers', 'headers', '2018-09-06 23:10:49', '2018-09-06 23:10:49'), (30, 'add_headers', 'headers', '2018-09-06 23:10:49', '2018-09-06 23:10:49'), (31, 'delete_headers', 'headers', '2018-09-06 23:10:49', '2018-09-06 23:10:49'), (32, 'browse_slider', 'slider', '2018-09-11 02:15:01', '2018-09-11 02:15:01'), (33, 'read_slider', 'slider', '2018-09-11 02:15:01', '2018-09-11 02:15:01'), (34, 'edit_slider', 'slider', '2018-09-11 02:15:01', '2018-09-11 02:15:01'), (35, 'add_slider', 'slider', '2018-09-11 02:15:01', '2018-09-11 02:15:01'), (36, 'delete_slider', 'slider', '2018-09-11 02:15:01', '2018-09-11 02:15:01'), (37, 'browse_sliders', 'sliders', '2018-09-11 02:36:46', '2018-09-11 02:36:46'), (38, 'read_sliders', 'sliders', '2018-09-11 02:36:46', '2018-09-11 02:36:46'), (39, 'edit_sliders', 'sliders', '2018-09-11 02:36:46', '2018-09-11 02:36:46'), (40, 'add_sliders', 'sliders', '2018-09-11 02:36:46', '2018-09-11 02:36:46'), (41, 'delete_sliders', 'sliders', '2018-09-11 02:36:46', '2018-09-11 02:36:46'), (42, 'browse_informacion', 'informacion', '2018-09-11 03:22:04', '2018-09-11 03:22:04'), (43, 'read_informacion', 'informacion', '2018-09-11 03:22:04', '2018-09-11 03:22:04'), (44, 'edit_informacion', 'informacion', '2018-09-11 03:22:04', '2018-09-11 03:22:04'), (45, 'add_informacion', 'informacion', '2018-09-11 03:22:04', '2018-09-11 03:22:04'), (46, 'delete_informacion', 'informacion', '2018-09-11 03:22:04', '2018-09-11 03:22:04'), (47, 'browse_informacions', 'informacions', '2018-09-11 03:34:15', '2018-09-11 03:34:15'), (48, 'read_informacions', 'informacions', '2018-09-11 03:34:15', '2018-09-11 03:34:15'), (49, 'edit_informacions', 'informacions', '2018-09-11 03:34:15', '2018-09-11 03:34:15'), (50, 'add_informacions', 'informacions', '2018-09-11 03:34:15', '2018-09-11 03:34:15'), (51, 'delete_informacions', 'informacions', '2018-09-11 03:34:15', '2018-09-11 03:34:15'), (52, 'browse_servicios', 'servicios', '2018-09-11 20:40:06', '2018-09-11 20:40:06'), (53, 'read_servicios', 'servicios', '2018-09-11 20:40:06', '2018-09-11 20:40:06'), (54, 'edit_servicios', 'servicios', '2018-09-11 20:40:06', '2018-09-11 20:40:06'), (55, 'add_servicios', 'servicios', '2018-09-11 20:40:06', '2018-09-11 20:40:06'), (56, 'delete_servicios', 'servicios', '2018-09-11 20:40:06', '2018-09-11 20:40:06'), (57, 'browse_galerias', 'galerias', '2018-09-11 21:12:18', '2018-09-11 21:12:18'), (58, 'read_galerias', 'galerias', '2018-09-11 21:12:18', '2018-09-11 21:12:18'), (59, 'edit_galerias', 'galerias', '2018-09-11 21:12:18', '2018-09-11 21:12:18'), (60, 'add_galerias', 'galerias', '2018-09-11 21:12:18', '2018-09-11 21:12:18'), (61, 'delete_galerias', 'galerias', '2018-09-11 21:12:18', '2018-09-11 21:12:18'), (62, 'browse_serviciosdos', 'serviciosdos', '2018-09-12 22:12:14', '2018-09-12 22:12:14'), (63, 'read_serviciosdos', 'serviciosdos', '2018-09-12 22:12:14', '2018-09-12 22:12:14'), (64, 'edit_serviciosdos', 'serviciosdos', '2018-09-12 22:12:14', '2018-09-12 22:12:14'), (65, 'add_serviciosdos', 'serviciosdos', '2018-09-12 22:12:14', '2018-09-12 22:12:14'), (66, 'delete_serviciosdos', 'serviciosdos', '2018-09-12 22:12:14', '2018-09-12 22:12:14'), (67, 'browse_doctores', 'doctores', '2018-09-12 22:36:02', '2018-09-12 22:36:02'), (68, 'read_doctores', 'doctores', '2018-09-12 22:36:02', '2018-09-12 22:36:02'), (69, 'edit_doctores', 'doctores', '2018-09-12 22:36:02', '2018-09-12 22:36:02'), (70, 'add_doctores', 'doctores', '2018-09-12 22:36:02', '2018-09-12 22:36:02'), (71, 'delete_doctores', 'doctores', '2018-09-12 22:36:02', '2018-09-12 22:36:02'), (72, 'browse_promociones', 'promociones', '2018-09-13 20:23:14', '2018-09-13 20:23:14'), (73, 'read_promociones', 'promociones', '2018-09-13 20:23:14', '2018-09-13 20:23:14'), (74, 'edit_promociones', 'promociones', '2018-09-13 20:23:14', '2018-09-13 20:23:14'), (75, 'add_promociones', 'promociones', '2018-09-13 20:23:14', '2018-09-13 20:23:14'), (76, 'delete_promociones', 'promociones', '2018-09-13 20:23:14', '2018-09-13 20:23:14'), (77, 'browse_testimonios', 'testimonios', '2018-09-13 20:57:34', '2018-09-13 20:57:34'), (78, 'read_testimonios', 'testimonios', '2018-09-13 20:57:34', '2018-09-13 20:57:34'), (79, 'edit_testimonios', 'testimonios', '2018-09-13 20:57:34', '2018-09-13 20:57:34'), (80, 'add_testimonios', 'testimonios', '2018-09-13 20:57:34', '2018-09-13 20:57:34'), (81, 'delete_testimonios', 'testimonios', '2018-09-13 20:57:34', '2018-09-13 20:57:34'), (82, 'browse_footers', 'footers', '2018-09-18 01:44:53', '2018-09-18 01:44:53'), (83, 'read_footers', 'footers', '2018-09-18 01:44:53', '2018-09-18 01:44:53'), (84, 'edit_footers', 'footers', '2018-09-18 01:44:53', '2018-09-18 01:44:53'), (85, 'add_footers', 'footers', '2018-09-18 01:44:53', '2018-09-18 01:44:53'), (86, 'delete_footers', 'footers', '2018-09-18 01:44:53', '2018-09-18 01:44:53'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `permission_role` -- CREATE TABLE `permission_role` ( `permission_id` int(10) UNSIGNED NOT NULL, `role_id` int(10) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `permission_role` -- INSERT INTO `permission_role` (`permission_id`, `role_id`) VALUES (1, 1), (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), (17, 1), (18, 1), (19, 1), (20, 1), (21, 1), (22, 1), (23, 1), (24, 1), (25, 1), (26, 1), (27, 1), (27, 3), (28, 1), (28, 3), (29, 1), (29, 3), (30, 1), (30, 3), (31, 1), (31, 3), (32, 1), (32, 3), (33, 1), (33, 3), (34, 1), (34, 3), (35, 1), (35, 3), (36, 1), (36, 3), (37, 1), (37, 3), (38, 1), (38, 3), (39, 1), (39, 3), (40, 1), (40, 3), (41, 1), (41, 3), (42, 1), (42, 3), (43, 1), (43, 3), (44, 1), (44, 3), (45, 1), (45, 3), (46, 1), (46, 3), (47, 1), (47, 3), (48, 1), (48, 3), (49, 1), (49, 3), (50, 1), (50, 3), (51, 1), (51, 3), (52, 1), (52, 3), (53, 1), (53, 3), (54, 1), (54, 3), (55, 1), (55, 3), (56, 1), (56, 3), (57, 1), (57, 3), (58, 1), (58, 3), (59, 1), (59, 3), (60, 1), (60, 3), (61, 1), (61, 3), (62, 1), (62, 3), (63, 1), (63, 3), (64, 1), (64, 3), (65, 1), (65, 3), (66, 1), (66, 3), (67, 1), (67, 3), (68, 1), (68, 3), (69, 1), (69, 3), (70, 1), (70, 3), (71, 1), (71, 3), (72, 1), (73, 1), (74, 1), (75, 1), (76, 1), (77, 1), (78, 1), (79, 1), (80, 1), (81, 1), (82, 1), (83, 1), (84, 1), (85, 1), (86, 1); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `promociones` -- CREATE TABLE `promociones` ( `id` int(10) UNSIGNED NOT NULL, `titulo` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `descripcion` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `costo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `contactanos` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `promociones` -- INSERT INTO `promociones` (`id`, `titulo`, `descripcion`, `created_at`, `updated_at`, `costo`, `contactanos`) VALUES (1, 'Implante Anticonceptivo', 'Nuestras promociones incluyen, costos de análisis.\r\ndemo uno\r\ndemo dos\r\ndemo tres\r\ndemo cuatro', '2018-09-13 20:25:00', '2018-09-13 20:32:50', '450', 'Contactanos'), (2, 'Diu T Plata', 'es simplemente el texto de relleno de las imprentas y archivos de texto. Lorem Ipsum ha sido el texto de relleno estándar de las industrias desde el año 1500, cuando un impresor (N. del T. persona que se dedica', '2018-09-13 20:44:46', '2018-09-13 20:44:46', '2500', 'Ver más'), (3, 'Consultas Generales', 'es simplemente el texto de relleno de las imprentas y archivos de texto. Lorem Ipsum ha sido el texto de relleno estándar de las industrias desde el año 1500, cuando un impresor (N. del T. persona que se dedica', '2018-09-13 20:45:42', '2018-09-13 20:45:42', '350', 'Contactanos'), (4, 'Consultas Especiales', 'es simplemente el texto de relleno de las imprentas y archivos de texto. Lorem Ipsum ha sido el texto de relleno estándar de las industrias desde el año 1500, cuando un impresor (N. del T. persona que se dedica', '2018-09-13 20:46:13', '2018-09-13 20:46:13', '590', 'Contactanos'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `roles` -- CREATE TABLE `roles` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `display_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; -- -- Volcado de datos para la tabla `roles` -- INSERT INTO `roles` (`id`, `name`, `display_name`, `created_at`, `updated_at`) VALUES (1, 'admin', 'Administrator', '2018-09-06 22:49:39', '2018-09-06 22:49:39'), (2, 'user', 'Normal User', '2018-09-06 22:49:39', '2018-09-06 22:49:39'), (3, 'Agregar doctores', 'doctores', '2018-09-12 22:53:55', '2018-09-12 22:53:55'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `servicios` -- CREATE TABLE `servicios` ( `id` int(10) UNSIGNED NOT NULL, `titulo` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `subuno` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `subdos` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `descripcion` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `imagen` varchar(255) 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; -- -- Volcado de datos para la tabla `servicios` -- INSERT INTO `servicios` (`id`, `titulo`, `subuno`, `subdos`, `descripcion`, `imagen`, `created_at`, `updated_at`) VALUES (1, 'Especialidades de la Clinica', 'Que es lo que hacemos ?', 'Nuestros Servicios', 'Contamos con los mejores Servicios, el mejor equipo técnico y personal Capacitado.', 'servicios\\September2018\\8678KEMEzd6gM13VY71e.jpg', '2018-09-11 20:45:00', '2018-09-11 20:55:12'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `serviciosdos` -- CREATE TABLE `serviciosdos` ( `id` int(10) UNSIGNED NOT NULL, `titulouno` varchar(60) COLLATE utf8mb4_unicode_ci NOT NULL, `desuno` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `titulodos` varchar(60) COLLATE utf8mb4_unicode_ci NOT NULL, `desdos` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `titulotres` varchar(60) COLLATE utf8mb4_unicode_ci NOT NULL, `destres` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `titulocuatro` varchar(60) COLLATE utf8mb4_unicode_ci NOT NULL, `descuatro` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `titulocinco` varchar(60) COLLATE utf8mb4_unicode_ci NOT NULL, `descinco` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `tituloseis` varchar(60) COLLATE utf8mb4_unicode_ci NOT NULL, `desseis` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `imagen` varchar(255) 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; -- -- Volcado de datos para la tabla `serviciosdos` -- INSERT INTO `serviciosdos` (`id`, `titulouno`, `desuno`, `titulodos`, `desdos`, `titulotres`, `destres`, `titulocuatro`, `descuatro`, `titulocinco`, `descinco`, `tituloseis`, `desseis`, `imagen`, `created_at`, `updated_at`) VALUES (1, 'Hospital', 'Demo uno', 'Estudios', 'Ejemplo dos', 'Embarazos', 'Ejemplo tres', 'Demo cuatro', 'Ejemplo cuatro', 'Demo cinco', 'Ejemplo cinco', 'Demo seis', 'Ejemplo seis', 'serviciosdos\\September2018\\TjATIt1GYeKL1fNa5fYf.jpg', '2018-09-12 22:14:00', '2018-09-12 22:23:46'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `settings` -- CREATE TABLE `settings` ( `id` int(10) UNSIGNED NOT NULL, `key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `display_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `value` text COLLATE utf8mb4_unicode_ci, `details` text COLLATE utf8mb4_unicode_ci, `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `order` int(11) NOT NULL DEFAULT '1', `group` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `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'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `sliders` -- CREATE TABLE `sliders` ( `id` int(10) UNSIGNED NOT NULL, `titulouno` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `titulodos` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `titulotres` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `fondo` varchar(255) 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; -- -- Volcado de datos para la tabla `sliders` -- INSERT INTO `sliders` (`id`, `titulouno`, `titulodos`, `titulotres`, `fondo`, `created_at`, `updated_at`) VALUES (1, 'Bienvenidos', 'Medica Life care', 'Somos tu mejor Opción', 'slider\\September2018\\dGYVxq6whiYBIiB72Pib.jpg', '2018-09-11 02:17:30', '2018-09-11 02:17:30'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `testimonios` -- CREATE TABLE `testimonios` ( `id` int(10) UNSIGNED NOT NULL, `titulo` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL, `descripcion` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `foto` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `nombre` varchar(255) 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; -- -- Volcado de datos para la tabla `testimonios` -- INSERT INTO `testimonios` (`id`, `titulo`, `descripcion`, `foto`, `nombre`, `created_at`, `updated_at`) VALUES (1, 'Increíble Servicio, muy Profesional', 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.', 'testimonios\\September2018\\STN5vHxymmgLFRJEPr2U.png', '<NAME>', '2018-09-13 21:02:22', '2018-09-13 21:02:22'), (2, 'Estoy super agradecido por la excelente Atención.', 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.', 'testimonios\\September2018\\Z0YNoAYU1FV6qdEKcYyq.png', '<NAME>', '2018-09-13 21:34:56', '2018-09-13 21:34:56'), (3, 'Muchas gracias por toda su Atención', 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.', 'testimonios\\September2018\\iXYiF7BJNbEfWh7FKpq4.png', '<NAME>', '2018-09-13 21:39:00', '2018-09-13 22:09:36'), (4, 'Son muy profesionales, muy buen Servicio', 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est', 'testimonios\\September2018\\iu2UH1BxFPZUcmybojh7.png', '<NAME>', '2018-09-13 21:41:00', '2018-09-13 22:09:21'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `translations` -- CREATE TABLE `translations` ( `id` int(10) UNSIGNED NOT NULL, `table_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `column_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `foreign_key` int(10) UNSIGNED NOT NULL, `locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `value` text 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; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `role_id` int(10) UNSIGNED DEFAULT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `avatar` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT 'users/default.png', `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `settings` text COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `users` -- INSERT INTO `users` (`id`, `role_id`, `name`, `email`, `avatar`, `password`, `remember_token`, `settings`, `created_at`, `updated_at`) VALUES (1, 1, 'rodrigo', '<EMAIL>', 'users/default.png', '$2y$10$OSlx1rI7q2P8hZcAPoVwxu7HHQbbOppdigIUpAor/ZVTsyH7Yyjme', NULL, NULL, '2018-09-06 22:51:32', '2018-09-06 22:51:32'), (2, 3, 'erika', '<EMAIL>', 'users\\September2018\\vfPxDGHVjILdM5WoEcuW.jpg', '$2y$10$977VZY.YjvBONdTfAM15ZeS4zvgMM50wZqK5.3y0yuvqrLByx1sgm', '6UesXIvPpGvQ15Lam9foTvv4QTsX62V2blVPldezg8NOs1CG5b8f0Tt9YGcD', '{\"locale\":\"es\"}', '2018-09-12 22:54:51', '2018-09-12 22:54:51'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `user_roles` -- CREATE TABLE `user_roles` ( `user_id` int(10) UNSIGNED NOT NULL, `role_id` int(10) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `user_roles` -- INSERT INTO `user_roles` (`user_id`, `role_id`) VALUES (2, 3); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `data_rows` -- ALTER TABLE `data_rows` ADD PRIMARY KEY (`id`), ADD KEY `data_rows_data_type_id_foreign` (`data_type_id`); -- -- Indices de la tabla `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`); -- -- Indices de la tabla `doctores` -- ALTER TABLE `doctores` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `footers` -- ALTER TABLE `footers` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `galerias` -- ALTER TABLE `galerias` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `headers` -- ALTER TABLE `headers` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `informacions` -- ALTER TABLE `informacions` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `menus` -- ALTER TABLE `menus` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `menus_name_unique` (`name`); -- -- Indices de la tabla `menu_items` -- ALTER TABLE `menu_items` ADD PRIMARY KEY (`id`), ADD KEY `menu_items_menu_id_foreign` (`menu_id`); -- -- Indices de la tabla `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indices de la tabla `permissions` -- ALTER TABLE `permissions` ADD PRIMARY KEY (`id`), ADD KEY `permissions_key_index` (`key`); -- -- Indices de la tabla `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`); -- -- Indices de la tabla `promociones` -- ALTER TABLE `promociones` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `roles` -- ALTER TABLE `roles` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `roles_name_unique` (`name`); -- -- Indices de la tabla `servicios` -- ALTER TABLE `servicios` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `serviciosdos` -- ALTER TABLE `serviciosdos` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `settings` -- ALTER TABLE `settings` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `settings_key_unique` (`key`); -- -- Indices de la tabla `sliders` -- ALTER TABLE `sliders` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `testimonios` -- ALTER TABLE `testimonios` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `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`); -- -- Indices de la tabla `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`), ADD KEY `users_role_id_foreign` (`role_id`); -- -- Indices de la tabla `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`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `data_rows` -- ALTER TABLE `data_rows` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=154; -- -- AUTO_INCREMENT de la tabla `data_types` -- ALTER TABLE `data_types` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT de la tabla `doctores` -- ALTER TABLE `doctores` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `footers` -- ALTER TABLE `footers` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `galerias` -- ALTER TABLE `galerias` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT de la tabla `headers` -- ALTER TABLE `headers` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT de la tabla `informacions` -- ALTER TABLE `informacions` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `menus` -- ALTER TABLE `menus` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `menu_items` -- ALTER TABLE `menu_items` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25; -- -- AUTO_INCREMENT de la tabla `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; -- -- AUTO_INCREMENT de la tabla `permissions` -- ALTER TABLE `permissions` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=87; -- -- AUTO_INCREMENT de la tabla `promociones` -- ALTER TABLE `promociones` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT de la tabla `roles` -- ALTER TABLE `roles` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT de la tabla `servicios` -- ALTER TABLE `servicios` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `serviciosdos` -- ALTER TABLE `serviciosdos` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `settings` -- ALTER TABLE `settings` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT de la tabla `sliders` -- ALTER TABLE `sliders` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `testimonios` -- ALTER TABLE `testimonios` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT de la tabla `translations` -- ALTER TABLE `translations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `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; -- -- Filtros para la tabla `menu_items` -- ALTER TABLE `menu_items` ADD CONSTRAINT `menu_items_menu_id_foreign` FOREIGN KEY (`menu_id`) REFERENCES `menus` (`id`) ON DELETE CASCADE; -- -- Filtros para la tabla `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; -- -- Filtros para la tabla `users` -- ALTER TABLE `users` ADD CONSTRAINT `users_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`); -- -- Filtros para la tabla `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 */;
select Category , sum(case when EXTRACT(month from time) = 3 then cost else 0 end) as Mar , sum(case when EXTRACT(month from time) = 2 then cost else 0 end) as Feb , sum(case when EXTRACT(month from time) = 1 then cost else 0 end) as Jan from Expenses group by 1 order by category ;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 23 Feb 2022 pada 16.33 -- Versi server: 10.4.17-MariaDB -- Versi PHP: 8.0.1 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: `sharedgame` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `booking` -- CREATE TABLE `booking` ( `id_booking` int(11) NOT NULL, `id_transaksi` int(11) NOT NULL, `id_user` int(11) NOT NULL, `created_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Struktur dari tabel `brand` -- CREATE TABLE `brand` ( `id_brand` int(11) NOT NULL, `nama_brand` varchar(100) NOT NULL, `gambar_brand` varchar(100) NOT NULL, `status_brand` enum('aktif','tidak_aktif','','') NOT NULL, `datetime_brand_added` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `brand` -- INSERT INTO `brand` (`id_brand`, `nama_brand`, `gambar_brand`, `status_brand`, `datetime_brand_added`) VALUES (1, 'sony', '', 'aktif', '0000-00-00 00:00:00'), (2, 'logitech', '', 'aktif', '0000-00-00 00:00:00'), (5, 'Oculus Quest 2', '', 'aktif', '0000-00-00 00:00:00'), (6, 'Rockstar', '', 'aktif', '0000-00-00 00:00:00'), (7, 'Konami', '', 'aktif', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Struktur dari tabel `cart` -- CREATE TABLE `cart` ( `id_cart` int(11) NOT NULL, `id_user` int(11) NOT NULL, `jumlah_produk` int(11) NOT NULL, `total_pembayaran` int(11) NOT NULL, `updated_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Struktur dari tabel `customerservice` -- CREATE TABLE `customerservice` ( `id_cs` int(11) NOT NULL, `nama_lengkap` varchar(100) NOT NULL, `email_cs` varchar(100) NOT NULL, `number_cs` varchar(100) NOT NULL, `pesan_cs` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `status` enum('pending','processed','done','') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Struktur dari tabel `detailbooking` -- CREATE TABLE `detailbooking` ( `id_detail_booking` int(11) NOT NULL, `id_booking` int(11) NOT NULL, `id_produk` int(11) NOT NULL, `qty_produk` int(11) NOT NULL, `tgl_jam_awal_sewa` datetime NOT NULL, `tgl_jam_akhir_sewa` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Struktur dari tabel `detailcart` -- CREATE TABLE `detailcart` ( `id_detail_cart` int(11) NOT NULL, `id_cart` int(11) NOT NULL, `id_produk` int(11) NOT NULL, `qty_produk` int(11) NOT NULL, `total_harga_produk` int(11) NOT NULL, `plan_sewa_awal` datetime NOT NULL, `plan_sewa_akhir` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Struktur dari tabel `loginhistory` -- CREATE TABLE `loginhistory` ( `id_login_history` int(11) NOT NULL, `email` varchar(100) NOT NULL, `time_login` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `loginhistory` -- INSERT INTO `loginhistory` (`id_login_history`, `email`, `time_login`) VALUES (1, '<EMAIL>', '2022-02-20 01:47:15'), (2, '<EMAIL>', '2022-02-20 02:00:56'), (3, '<EMAIL>', '2022-02-20 13:38:11'); -- -------------------------------------------------------- -- -- Struktur dari tabel `nomorhphistory` -- CREATE TABLE `nomorhphistory` ( `id_nomor_hp` int(11) NOT NULL, `nomor_hp` varchar(100) NOT NULL, `id_user` int(11) NOT NULL, `created_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Struktur dari tabel `produk` -- CREATE TABLE `produk` ( `id_produk` int(11) NOT NULL, `id_brand` int(11) NOT NULL, `nama_produk` varchar(100) NOT NULL, `kategori_produk` enum('console','game_physics','game_gear','') NOT NULL, `warna_produk` varchar(100) NOT NULL, `gambar_produk` varchar(500) NOT NULL, `deskripsi_produk` varchar(100) NOT NULL, `serial_produk` varchar(100) NOT NULL, `jumlah_tersedia` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `produk` -- INSERT INTO `produk` (`id_produk`, `id_brand`, `nama_produk`, `kategori_produk`, `warna_produk`, `gambar_produk`, `deskripsi_produk`, `serial_produk`, `jumlah_tersedia`) VALUES (1, 1, 'playstation 5', 'console', 'putih', 'https://asset.kompas.com/crops/OShkHBI40cCFj6mMFFcYmhbhBaw=/187x12:1126x638/750x500/data/photo/2020/06/12/5ee2bae6901d6.jpg', 'playstation 5 terbaru', '123', 1), (3, 1, 'playstation 4', 'console', 'hitam', 'https://cdn1-production-images-kly.akamaized.net/Tib_XTBmEyghebeVYZPvqM0HDCY=/640x360/smart/filters:quality(75):strip_icc():format(jpeg)/kly-media-production/medias/3218222/original/083216700_1598339935-playstation-4-pro-vertical-product-shot-01.jpg', '', '1234', 1), (5, 2, 'logitech g29', 'game_gear', 'hitam', 'https://s2.bukalapak.com/uploads/content_attachment/2e5be96d20e8d762b88169c5/w-740/Setir.jpg', 'steering wheel terbaru', '123', 2), (6, 5, 'Oculus Quest 2', 'game_gear', 'hitam', 'https://i.ebayimg.com/images/g/j2YAAOSw-IheQHZh/s-l600.jpg', '', '123', 2), (7, 6, 'Kaset PlayStation 4 \"Grand Theft Auto V\"', 'game_physics', 'coklat', 'https://cf.shopee.co.id/file/70667261780ce5784cf3e2dd82551075', '', '123', 4), (8, 7, 'Kaset PlayStation 4 \"Pro Evolution Soccer 2021\"', 'game_physics', 'putih', 'https://images.tokopedia.net/img/cache/500-square/product-1/2020/9/14/2860018/2860018_e1c7f385-85da-447b-9cdd-a1da0188bdc4_500_500', '', '123', 4), (9, 1, 'Kaset PlayStation 4 \"Horizon Forbidden West\"', 'game_physics', 'biru', 'https://images.tokopedia.net/img/cache/700/VqbcmM/2021/11/26/8e4051a9-826b-424f-9d7c-e720eb6e2196.jpg', '', '123', 4); -- -------------------------------------------------------- -- -- Struktur dari tabel `rekeningtoko` -- CREATE TABLE `rekeningtoko` ( `id_rekening_toko` int(11) NOT NULL, `no_rekening_toko` varchar(100) NOT NULL, `bank_rekening_toko` int(11) NOT NULL, `status_rekening_toko` enum('aktif','tidak_aktif','','') NOT NULL, `created_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Struktur dari tabel `transaksi` -- CREATE TABLE `transaksi` ( `id_transaksi` int(11) NOT NULL, `id_user` int(11) NOT NULL, `waktu_buat_transaksi` datetime NOT NULL, `waktu_pembayaran` datetime NOT NULL, `kode_unik_pembayaran` int(11) NOT NULL, `jumlah_pembayaran` int(11) NOT NULL, `total_pembayaran` int(11) NOT NULL, `status_pembayaran` enum('pending','diverifikasi','ditolak','diterima','dibatalkan') NOT NULL, `no_rekening_user` int(11) NOT NULL, `bank_asal_user` varchar(100) NOT NULL, `id_rekening_toko` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Struktur dari tabel `user` -- CREATE TABLE `user` ( `id_user` int(11) NOT NULL, `nama_lengkap` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `password` varchar(60) NOT NULL, `alamat_lengkap` varchar(100) NOT NULL, `no_hp` varchar(12) NOT NULL, `no_hp_dua` varchar(12) NOT NULL, `tgl_lahir` date NOT NULL, `foto_ktp` varchar(100) NOT NULL, `foto_selfie_ktp` varchar(100) NOT NULL, `user_level` enum('admin','karyawan','customer') NOT NULL, `status_ktp` enum('belum','sedang_verifikasi','diterima','ditolak') NOT NULL, `is_active` enum('yes','off_by_admin','off_by_user') NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `user` -- INSERT INTO `user` (`id_user`, `nama_lengkap`, `email`, `password`, `alamat_lengkap`, `no_hp`, `no_hp_dua`, `tgl_lahir`, `foto_ktp`, `foto_selfie_ktp`, `user_level`, `status_ktp`, `is_active`, `created_at`, `updated_at`) VALUES (4, 'Tara', '<EMAIL>', '$2y$10$RuDOdeShVAHMgDP366lDSeZOg2llIGmk7jRzgVo1N55YK7F0SnYTS', 'empty', 'empty', 'empty', '0000-00-00', 'empty', 'empty', 'customer', 'belum', 'yes', '2022-02-19 12:47:07', '2022-02-19 12:47:07'), (5, 'gema', '<EMAIL>', '$2y$10$1l0vlb8TaO4eb2MCpQcJNOT3uVGrzdpOloUcoqgkn7sqXrDwZVdtu', 'empty', 'empty', 'empty', '0000-00-00', 'empty', 'empty', 'customer', 'belum', 'yes', '1970-01-01 07:00:01', '1970-01-01 07:00:01'), (6, 'chris', '<EMAIL>', '$2y$10$7wvKBZBIF0NAYB7Du1.rouhydFxXuHosV4MqEsdLZzg.MXEa2BZVi', 'empty', 'empty', 'empty', '0000-00-00', 'empty', 'empty', 'customer', 'belum', 'yes', '1970-01-01 07:00:01', '1970-01-01 07:00:01'), (7, 'alip', '<EMAIL>', <PASSWORD>', 'empty', 'empty', 'empty', '0000-00-00', 'empty', 'empty', 'customer', 'belum', 'yes', '2022-02-19 18:55:47', '2022-02-19 18:55:47'), (8, '<NAME>', '<EMAIL>', <PASSWORD>', 'empty', 'empty', 'empty', '0000-00-00', 'empty', 'empty', 'customer', 'belum', 'yes', '2022-02-20 01:00:45', '2022-02-20 01:00:45'), (9, 'm', '<EMAIL>', <PASSWORD>fg<PASSWORD>.G<PASSWORD>.3<PASSWORD>d<PASSWORD>DuNVMSCi71Lcmv.s32', 'empty', 'empty', 'empty', '0000-00-00', 'empty', 'empty', 'customer', 'belum', 'yes', '2022-02-20 01:07:29', '2022-02-20 01:07:29'), (10, 'trevor', '<EMAIL>', '$2y$10$dhGTJlR02RrNVAvHU2ZG2ed8X9PXSw7f0sRGKnjP8L6me7IJxmyzO', 'empty', 'empty', 'empty', '0000-00-00', 'empty', 'empty', 'customer', 'belum', 'yes', '2022-02-20 13:53:06', '2022-02-20 13:53:06'), (11, 'Michael', '<EMAIL>', '$2y$10$rDuO73rBFn/QZQcUdZ3ZA.Cv.Dog/ntcr.CxwemhmjwjxTmg5ejz2', 'empty', 'empty', 'empty', '0000-00-00', 'empty', 'empty', 'customer', 'belum', 'yes', '2022-02-20 15:36:55', '2022-02-20 15:36:55'), (12, 'halohalo', '<EMAIL>', '$2y$10$.ytOi6jTnVhGXqBzBjMl1er9LqYvaGmN65m6mU.x6OPjAuZGFygl.', 'empty', 'empty', 'empty', '0000-00-00', 'empty', 'empty', 'admin', 'belum', 'yes', '2022-02-20 15:49:28', '2022-02-21 15:49:28'), (13, 'Ebenheizer', '<EMAIL>', '$2y$10$CWkNI8EZxGx8dnsXzWkM8.xm4pEJc8QACvBNCpfAzIzRdj8enoX22', 'empty', 'empty', 'empty', '0000-00-00', 'empty', 'empty', 'customer', 'belum', 'yes', '2022-02-22 21:24:16', '2022-02-22 21:24:16'), (14, 'migeell', '<EMAIL>', <PASSWORD>ZlCTHc7pLSLiejer.9<PASSWORD>2OzuVfY4fGN2/5<PASSWORD>C/SPf<PASSWORD>', 'empty', 'empty', 'empty', '0000-00-00', 'empty', 'empty', 'customer', 'belum', 'yes', '2022-02-22 22:20:17', '2022-02-22 22:20:17'); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `booking` -- ALTER TABLE `booking` ADD PRIMARY KEY (`id_booking`), ADD KEY `id_transaksi` (`id_transaksi`), ADD KEY `id_customer` (`id_user`); -- -- Indeks untuk tabel `brand` -- ALTER TABLE `brand` ADD PRIMARY KEY (`id_brand`); -- -- Indeks untuk tabel `cart` -- ALTER TABLE `cart` ADD PRIMARY KEY (`id_cart`), ADD KEY `id_user` (`id_user`); -- -- Indeks untuk tabel `customerservice` -- ALTER TABLE `customerservice` ADD PRIMARY KEY (`id_cs`); -- -- Indeks untuk tabel `detailbooking` -- ALTER TABLE `detailbooking` ADD PRIMARY KEY (`id_detail_booking`), ADD KEY `id_booking` (`id_booking`), ADD KEY `id_product` (`id_produk`); -- -- Indeks untuk tabel `detailcart` -- ALTER TABLE `detailcart` ADD PRIMARY KEY (`id_detail_cart`), ADD KEY `id_cart` (`id_cart`), ADD KEY `id_produk` (`id_produk`); -- -- Indeks untuk tabel `loginhistory` -- ALTER TABLE `loginhistory` ADD PRIMARY KEY (`id_login_history`); -- -- Indeks untuk tabel `nomorhphistory` -- ALTER TABLE `nomorhphistory` ADD PRIMARY KEY (`id_nomor_hp`), ADD KEY `id_user` (`id_user`); -- -- Indeks untuk tabel `produk` -- ALTER TABLE `produk` ADD PRIMARY KEY (`id_produk`), ADD KEY `id_brand` (`id_brand`); -- -- Indeks untuk tabel `rekeningtoko` -- ALTER TABLE `rekeningtoko` ADD PRIMARY KEY (`id_rekening_toko`); -- -- Indeks untuk tabel `transaksi` -- ALTER TABLE `transaksi` ADD PRIMARY KEY (`id_transaksi`), ADD KEY `id_user` (`id_user`), ADD KEY `id_rekening_toko` (`id_rekening_toko`); -- -- Indeks untuk tabel `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id_user`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `booking` -- ALTER TABLE `booking` MODIFY `id_booking` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `brand` -- ALTER TABLE `brand` MODIFY `id_brand` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT untuk tabel `cart` -- ALTER TABLE `cart` MODIFY `id_cart` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `customerservice` -- ALTER TABLE `customerservice` MODIFY `id_cs` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `detailbooking` -- ALTER TABLE `detailbooking` MODIFY `id_detail_booking` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `detailcart` -- ALTER TABLE `detailcart` MODIFY `id_detail_cart` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `loginhistory` -- ALTER TABLE `loginhistory` MODIFY `id_login_history` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT untuk tabel `nomorhphistory` -- ALTER TABLE `nomorhphistory` MODIFY `id_nomor_hp` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `produk` -- ALTER TABLE `produk` MODIFY `id_produk` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT untuk tabel `rekeningtoko` -- ALTER TABLE `rekeningtoko` MODIFY `id_rekening_toko` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `transaksi` -- ALTER TABLE `transaksi` MODIFY `id_transaksi` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `user` -- ALTER TABLE `user` MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables) -- -- -- Ketidakleluasaan untuk tabel `booking` -- ALTER TABLE `booking` ADD CONSTRAINT `booking_ibfk_1` FOREIGN KEY (`id_transaksi`) REFERENCES `transaksi` (`id_transaksi`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `booking_ibfk_2` FOREIGN KEY (`id_user`) REFERENCES `user` (`id_user`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Ketidakleluasaan untuk tabel `cart` -- ALTER TABLE `cart` ADD CONSTRAINT `cart_ibfk_1` FOREIGN KEY (`id_user`) REFERENCES `user` (`id_user`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Ketidakleluasaan untuk tabel `detailbooking` -- ALTER TABLE `detailbooking` ADD CONSTRAINT `detailbooking_ibfk_1` FOREIGN KEY (`id_booking`) REFERENCES `booking` (`id_booking`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `detailbooking_ibfk_2` FOREIGN KEY (`id_produk`) REFERENCES `produk` (`id_produk`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Ketidakleluasaan untuk tabel `detailcart` -- ALTER TABLE `detailcart` ADD CONSTRAINT `detailcart_ibfk_1` FOREIGN KEY (`id_produk`) REFERENCES `produk` (`id_produk`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `detailcart_ibfk_2` FOREIGN KEY (`id_cart`) REFERENCES `cart` (`id_cart`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Ketidakleluasaan untuk tabel `nomorhphistory` -- ALTER TABLE `nomorhphistory` ADD CONSTRAINT `nomorhphistory_ibfk_1` FOREIGN KEY (`id_user`) REFERENCES `user` (`id_user`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Ketidakleluasaan untuk tabel `produk` -- ALTER TABLE `produk` ADD CONSTRAINT `produk_ibfk_1` FOREIGN KEY (`id_brand`) REFERENCES `brand` (`id_brand`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Ketidakleluasaan untuk tabel `transaksi` -- ALTER TABLE `transaksi` ADD CONSTRAINT `transaksi_ibfk_1` FOREIGN KEY (`id_user`) REFERENCES `user` (`id_user`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `transaksi_ibfk_2` FOREIGN KEY (`id_rekening_toko`) REFERENCES `rekeningtoko` (`id_rekening_toko`) ON DELETE CASCADE ON UPDATE 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 */;
<reponame>horseyhorsey/Horsify_2.0 AS SELECT S.Id, S.Rating, S.Year, Art.Name AS Artist, S.Title, S.Time, S.Country, A.Title AS Album, M.MusicKey, S.Bpm, S.BitRate, S.Track, S.Comment, L.Name AS Label, G.Name AS Genre, I.DriveVolume || I.Folder || '\' || I.Filename AS FileLocation, S.DiscogId, D.ReleaseId, S.ImageLocation, S.TimesPlayed, S.IsDamaged, S.AddedDate, S.LastPlayed, S.NSFW FROM Song AS S INNER JOIN [File] AS I ON I.Id = S.FileId INNER JOIN Album AS A ON A.Id = S.AlbumId INNER JOIN Label AS L ON L.Id = S.LabelId INNER JOIN Genre AS G ON G.Id = S.GenreId INNER JOIN MusicalKey AS M ON M.Id = S.MusicalKeyId INNER JOIN Discog AS D ON D.Id = S.DiscogId INNER JOIN Artist AS Art ON Art.Id = S.ArtistId;
DROP DATABASE IF EXISTS health_db; CREATE DATABASE health_db;
<filename>sql/updates/005-upgrade-user.sql<gh_stars>0 ALTER TABLE `users` CHANGE `role` `role` INT( 11 ) NOT NULL ;
## SQL EXAMPLE WITH MACRO CONDITIONS AND MACRO INTERPRET CONSTANT #DEFINE @GERMAN #IFNDEF @ENGLISH #IFDEF @GERMAN #DEFINE @SELECT_LINE ProjektNr, DataDate, Deadline, TätigkeitNr, Beschreibung, FrühereBeginn, SpätereEnde, IsKritisch, Verantwortlicher, Kommentar #DEFINE @CONDITION SpätestesEnde > Deadline and IsKritisch -- auf Deutsch /* #ELSE *//* #IFDEF @FRENCH *//* #DEFINE @SELECT_LINE projet_no, date_début, date_limite, nombre, déscription, début_plutôt, fin_retardé, est_critique, responsable, commentaire *//* #DEFINE @CONDITION fin_retardé > date_limite and est_critique -- en français *//* #ELSE *//* #IFDEF @ROMANIAN *//* #DEFINE @SELECT_LINE prnr, dd, dl, no, descr, es, ef, cr, resp, com *//* #DEFINE @CONDITION ef > dl and cr *//* #ENDIF *//* #ENDIF */ #ENDIF #ENDIF ## COMMENT: begin of query select #IFDEF @SELECT_LINE ProjektNr, DataDate, Deadline, TätigkeitNr, Beschreibung, FrühereBeginn, SpätereEnde, IsKritisch, Verantwortlicher, Kommentar /* #ELSE *//* project_id, data_date, deadline, task_id, task_descr, early_start, late_finish, is_critical, responsible, comment */#ENDIF from #IFNDEF @ENGLISH (select * from multilang_prj_source where -- comment: all projects in foreign languages in the same table with different fields #IFDEF @GERMAN -- if you see this comment, your project is in German language like '%@GERMAN%' and /* #ELSE *//* #IFDEF @FRENCH *//* -- si vous voyez cette commentaire, votre projet est en français *//* language like '%@FRENCH%' and *//* #ELSE *//* -- if you see this comment, your project is not in German nor in French *//* #IFDEF @ROMANIAN *//* language like '%@ROMANIAN%' and *//* #ENDIF *//* #ENDIF *//* -- if you see this comment, your project _is_not_in_ German */ #ENDIF true) /* #ELSE *//* LastProject -- let's suppose, English project is separate table */#ENDIF where #IFDEF @CONDITION SpätestesEnde > Deadline and IsKritisch -- auf Deutsch /* #ELSE *//* late_finish > deadline and is_critical -- someting default */#ENDIF ; ## COMMENT: ~~end of query
/* Navicat Premium Data Transfer Source Server : 本地mysql8.0 Source Server Type : MySQL Source Server Version : 80012 Source Host : localhost:3306 Source Schema : goblog_new Target Server Type : MySQL Target Server Version : 80012 File Encoding : 65001 Date: 22/03/2021 13:06:32 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for attachments -- ---------------------------- DROP TABLE IF EXISTS `attachments`; CREATE TABLE `attachments` ( `aid` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `created` int(10) UNSIGNED NOT NULL, `relativePath` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (`aid`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 0 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for postmeta -- ---------------------------- DROP TABLE IF EXISTS `postmeta`; CREATE TABLE `postmeta` ( `mid` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `pid` int(10) UNSIGNED NOT NULL, `metaKey` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `metaValue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (`mid`) USING BTREE, UNIQUE INDEX `pid_metaKey`(`pid`, `metaKey`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 0 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for posts -- ---------------------------- DROP TABLE IF EXISTS `posts`; CREATE TABLE `posts` ( `pid` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `created` int(10) UNSIGNED NOT NULL, `modified` int(10) UNSIGNED NOT NULL, `excerpt` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `keywords` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `commentCount` int(10) UNSIGNED NOT NULL, `commentAllow` tinyint(1) UNSIGNED NOT NULL, PRIMARY KEY (`pid`) USING BTREE, INDEX `created`(`created`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 0 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for relationships -- ---------------------------- DROP TABLE IF EXISTS `relationships`; CREATE TABLE `relationships` ( `pid` int(10) UNSIGNED NOT NULL, `tid` int(10) UNSIGNED NOT NULL, PRIMARY KEY (`pid`, `tid`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for terms -- ---------------------------- DROP TABLE IF EXISTS `terms`; CREATE TABLE `terms` ( `tid` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `slug` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `count` int(10) UNSIGNED NOT NULL, PRIMARY KEY (`tid`) USING BTREE, UNIQUE INDEX `slug`(`slug`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 0 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for options -- ---------------------------- DROP TABLE IF EXISTS `options`; CREATE TABLE `options` ( `optionKey` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `optionValue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (`optionKey`) USING BTREE, UNIQUE INDEX `optionKey`(`optionKey`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of options -- ---------------------------- INSERT INTO `options` VALUES ('eachPageLimit', '10'); INSERT INTO `options` VALUES ('pageNavLimit', '7'); INSERT INTO `options` VALUES ('websiteName', '追风寻逸'); INSERT INTO `options` VALUES ('websiteURL', 'https://www.jpcli.top'); SET FOREIGN_KEY_CHECKS = 1;
CREATE USER rockmine_user WITH PASSWORD '<PASSWORD>' CREATEDB; GRANT SELECT on asteroid to rockmine_user; GRANT SELECT on composition to rockmine_user; GRANT SELECT on spec_header to rockmine_user; GRANT SELECT on spec_link to rockmine_user; GRANT SELECT on spec_data to rockmine_user;
<reponame>power-cosmic/cosc571_database_project<gh_stars>1-10 -- MySQL dump 10.13 Distrib 5.6.23, for osx10.8 (x86_64) -- -- Host: localhost Database: bbb_te -- ------------------------------------------------------ -- Server version 5.6.23 /*!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 `author` -- DROP TABLE IF EXISTS `author`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `author` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `first_name` varchar(64) DEFAULT NULL, `last_name` varchar(64) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `author` -- LOCK TABLES `author` WRITE; /*!40000 ALTER TABLE `author` DISABLE KEYS */; INSERT INTO `author` VALUES (1,'<NAME>.','Lovecraft'),(2,'<NAME>.','Rowling'),(3,'Suzanne','Collins'),(4,'Dave','Wolverton'),(5,'Jude','Watson'); /*!40000 ALTER TABLE `author` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `book` -- DROP TABLE IF EXISTS `book`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `book` ( `isbn` char(13) NOT NULL DEFAULT '', `title` varchar(256) NOT NULL, `description` varchar(2048) DEFAULT NULL, `price` decimal(6,2) NOT NULL DEFAULT '0.00', `author_id` int(11) unsigned NOT NULL, `publisher_id` int(11) unsigned NOT NULL, PRIMARY KEY (`isbn`), KEY `author_id` (`author_id`), KEY `publisher_id` (`publisher_id`), CONSTRAINT `book_ibfk_1` FOREIGN KEY (`author_id`) REFERENCES `author` (`id`), CONSTRAINT `book_ibfk_3` FOREIGN KEY (`publisher_id`) REFERENCES `publisher` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `book` -- LOCK TABLES `book` WRITE; /*!40000 ALTER TABLE `book` DISABLE KEYS */; INSERT INTO `book` VALUES ('9780439000017','Harry Potter and the Philosopher\'s Stone',NULL,18.29,2,2),('9780439000024','Harry Potter and the Chamber of Secrets',NULL,15.29,2,2),('9780439000031','Harry Potter and the Prisoner of Azkaban',NULL,17.56,2,2),('9780439000048','Harry Potter and the Goblet of Fire',NULL,5.93,2,2),('9780439000055','H<NAME> and the Order of the Phoenix',NULL,4.98,2,2),('9780439000062','H<NAME> and the Half-Blood Prince',NULL,19.10,2,2),('9780439000079','<NAME> and the Deathly Hallows',NULL,12.55,2,2),('9780439000086','The Hunger Games',NULL,4.85,3,2),('9780439000093','Catching Fire',NULL,17.25,3,2),('9780439000109','Mockingjay',NULL,19.70,3,2),('9780439000116','The Dark Rival',NULL,10.74,5,2),('9780439000123','The Hidden Past',NULL,6.60,5,2),('9780439000130','The Mark of the Crown',NULL,12.79,5,2),('9780439000147','The Defenders of the Dead',NULL,8.14,5,2),('9780439000154','The Uncertain Path',NULL,14.35,5,2),('9780439000161','The Captive Temple',NULL,11.31,5,2),('9780439000178','The Day of Reckoning',NULL,9.51,5,2),('9780439000185','The Fight for Truth',NULL,9.63,5,2),('9780439000192','The Shattered Peace',NULL,15.63,5,2),('9780439000208','The Deadly Hunter',NULL,13.25,5,2),('9780439000215','The Evil Experiment',NULL,15.37,5,2),('9780439000222','The Dangerous Rescue',NULL,17.10,5,2),('9780439000239','The Ties That Bind',NULL,19.39,5,2),('9780439000246','The Death of Hope',NULL,9.63,5,2),('9780439000253','The Call to Vengeance',NULL,18.01,5,2),('9780439000260','The Only Witness',NULL,9.14,5,2),('9780439000277','The Threat Within',NULL,19.68,5,2),('9780439000284','Special Edition #1: Deceptions',NULL,18.99,5,2),('9780439000291','Special Edition #2: The Followers',NULL,15.92,5,2),('9780439000307','The Rising Force',NULL,18.60,4,2),('9780870450013','The Tomb',NULL,8.13,1,1),('9780870450020','Dagon',NULL,6.45,1,1),('9780870450037','A Reminiscence of Dr. <NAME>',NULL,19.84,1,1),('9780870450044','Polaris',NULL,11.84,1,1),('9780870450051','Beyond the Wall of Sleep',NULL,11.68,1,1),('9780870450068','Memory',NULL,18.87,1,1),('9780870450075','Old Bugs',NULL,7.33,1,1),('9780870450082','The Transition of J<NAME>',NULL,8.02,1,1),('9780870450099','The White Ship',NULL,14.12,1,1),('9780870450105','The Doom that Came to Sarnath',NULL,10.55,1,1),('9780870450112','The Statement of <NAME>',NULL,6.38,1,1),('9780870450129','The Street',NULL,12.27,1,1),('9780870450136','The Terrible Old Man',NULL,6.20,1,1),('9780870450143','The Cats of Ulthar',NULL,6.21,1,1),('9780870450150','The Tree',NULL,8.42,1,1),('9780870450167','Celephaïs',NULL,19.49,1,1),('9780870450174','From Beyond',NULL,4.19,1,1),('9780870450181','The Temple',NULL,6.47,1,1),('9780870450198','Nyarlathotep',NULL,15.77,1,1),('9780870450204','The Picture in the House',NULL,7.43,1,1),('9780870450211','Facts Concerning the Late Arthur Jermyn and His Family',NULL,17.87,1,1),('9780870450228','The Nameless City',NULL,15.03,1,1),('9780870450235','The Quest of Iranon',NULL,17.55,1,1),('9780870450242','The Moon-Bog',NULL,6.67,1,1),('9780870450259','Ex Oblivione',NULL,8.70,1,1),('9780870450266','The Other Gods',NULL,19.48,1,1),('9780870450273','The Outsider',NULL,19.30,1,1),('9780870450280','The Music of <NAME>',NULL,18.07,1,1),('9780870450297','Sweet Ermengarde',NULL,12.45,1,1),('9780870450303','Hypnos',NULL,4.02,1,1),('9780870450310','What the Moon Brings',NULL,10.75,1,1),('9780870450327','Azathoth',NULL,5.70,1,1),('9780870450334','Herbert West–Reanimator',NULL,8.27,1,1),('9780870450341','The Hound',NULL,4.23,1,1),('9780870450358','The Lurking Fear',NULL,8.34,1,1),('9780870450365','The Rats in the Walls',NULL,9.00,1,1),('9780870450372','The Unnamable',NULL,15.97,1,1),('9780870450389','The Festival',NULL,16.88,1,1),('9780870450396','The Shunned House',NULL,16.49,1,1),('9780870450402','The Horror at Red Hook',NULL,11.80,1,1),('9780870450419','He',NULL,5.54,1,1),('9780870450426','In the Vault',NULL,4.31,1,1),('9780870450433','Cool Air',NULL,16.91,1,1),('9780870450440','The Call of Cthulhu',NULL,19.61,1,1),('9780870450457','Pickman\'s Model',NULL,11.35,1,1),('9780870450464','The Strange High House in the Mist',NULL,9.91,1,1),('9780870450471','The Silver Key',NULL,11.51,1,1),('9780870450488','The Dream-Quest of Unknown Kadath',NULL,7.80,1,1),('9780870450495','The Case of Charles Dexter Ward',NULL,16.49,1,1),('9780870450501','The Colour Out of Space',NULL,7.03,1,1),('9780870450518','The Descendant',NULL,13.71,1,1),('9780870450525','The Very Old Folk',NULL,11.43,1,1),('9780870450532','History of the Necronomicon',NULL,12.01,1,1),('9780870450549','The Dunwich Horror',NULL,5.79,1,1),('9780870450556','Ibid',NULL,4.92,1,1),('9780870450563','The Whisperer in Darkness',NULL,19.23,1,1),('9780870450570','At the Mountains of Madness',NULL,13.37,1,1),('9780870450587','The Shadow Over Innsmouth',NULL,5.18,1,1),('9780870450594','The Dreams in the Witch House',NULL,13.77,1,1),('9780870450600','The Thing on the Doorstep',NULL,17.30,1,1),('9780870450617','The Book',NULL,9.20,1,1),('9780870450624','The Evil Clergyman',NULL,6.08,1,1),('9780870450631','The Shadow Out of Time',NULL,14.83,1,1),('9780870450648','The Haunter of the Dark',NULL,19.88,1,1); /*!40000 ALTER TABLE `book` ENABLE KEYS */; UNLOCK TABLES; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION' */ ; DELIMITER ;; /*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER on_insert_book BEFORE INSERT ON book FOR EACH ROW BEGIN UPDATE publisher SET num_books=num_books+1, NEW.isbn=isbn_with_check_digit(CONCAT('9780', code, LPAD(num_books, 8 - CHAR_LENGTH(code), '0'))) WHERE publisher.id=NEW.publisher_id; IF (NEW.price = 0) THEN SET NEW.price=(RAND() * 16) + 4; END IF; END */;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; -- -- Table structure for table `book_genre` -- DROP TABLE IF EXISTS `book_genre`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `book_genre` ( `isbn` char(13) NOT NULL DEFAULT '', `genre_id` int(11) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`isbn`,`genre_id`), KEY `genre_id` (`genre_id`), CONSTRAINT `book_genre_ibfk_1` FOREIGN KEY (`isbn`) REFERENCES `book` (`isbn`), CONSTRAINT `book_genre_ibfk_2` FOREIGN KEY (`genre_id`) REFERENCES `genre` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `book_genre` -- LOCK TABLES `book_genre` WRITE; /*!40000 ALTER TABLE `book_genre` DISABLE KEYS */; INSERT INTO `book_genre` VALUES ('9780870450013',1),('9780870450020',1),('9780870450037',1),('9780870450044',1),('9780870450051',1),('9780870450068',1),('9780870450075',1),('9780870450082',1),('9780870450099',1),('9780870450105',1),('9780870450112',1),('9780870450129',1),('9780870450136',1),('9780870450143',1),('9780870450150',1),('9780870450167',1),('9780870450174',1),('9780870450181',1),('9780870450198',1),('9780870450204',1),('9780870450211',1),('9780870450228',1),('9780870450235',1),('9780870450242',1),('9780870450259',1),('9780870450266',1),('9780870450273',1),('9780870450280',1),('9780870450297',1),('9780870450303',1),('9780870450310',1),('9780870450327',1),('9780870450334',1),('9780870450341',1),('9780870450358',1),('9780870450365',1),('9780870450372',1),('9780870450389',1),('9780870450396',1),('9780870450402',1),('9780870450419',1),('9780870450426',1),('9780870450433',1),('9780870450440',1),('9780870450457',1),('9780870450464',1),('9780870450471',1),('9780870450488',1),('9780870450495',1),('9780870450501',1),('9780870450518',1),('9780870450525',1),('9780870450532',1),('9780870450549',1),('9780870450556',1),('9780870450563',1),('9780870450570',1),('9780870450587',1),('9780870450594',1),('9780870450600',1),('9780870450617',1),('9780870450624',1),('9780870450631',1),('9780870450648',1),('9780870450013',4),('9780870450020',4),('9780870450037',4),('9780870450044',4),('9780870450051',4),('9780870450068',4),('9780870450075',4),('9780870450082',4),('9780870450099',4),('9780870450105',4),('9780870450112',4),('9780870450129',4),('9780870450136',4),('9780870450143',4),('9780870450150',4),('9780870450167',4),('9780870450174',4),('9780870450181',4),('9780870450198',4),('9780870450204',4),('9780870450211',4),('9780870450228',4),('9780870450235',4),('9780870450242',4),('9780870450259',4),('9780870450266',4),('9780870450273',4),('9780870450280',4),('9780870450297',4),('9780870450303',4),('9780870450310',4),('9780870450327',4),('9780870450334',4),('9780870450341',4),('9780870450358',4),('9780870450365',4),('9780870450372',4),('9780870450389',4),('9780870450396',4),('9780870450402',4),('9780870450419',4),('9780870450426',4),('9780870450433',4),('9780870450440',4),('9780870450457',4),('9780870450464',4),('9780870450471',4),('9780870450488',4),('9780870450495',4),('9780870450501',4),('9780870450518',4),('9780870450525',4),('9780870450532',4),('9780870450549',4),('9780870450556',4),('9780870450563',4),('9780870450570',4),('9780870450587',4),('9780870450594',4),('9780870450600',4),('9780870450617',4),('9780870450624',4),('9780870450631',4),('9780870450648',4),('9780439000017',5),('9780439000024',5),('9780439000031',5),('9780439000048',5),('9780439000055',5),('9780439000062',5),('9780439000079',5),('9780439000086',6),('9780439000093',6),('9780439000109',6),('9780439000116',6),('9780439000123',6),('9780439000130',6),('9780439000147',6),('9780439000154',6),('9780439000161',6),('9780439000178',6),('9780439000185',6),('9780439000192',6),('9780439000208',6),('9780439000215',6),('9780439000222',6),('9780439000239',6),('9780439000246',6),('9780439000253',6),('9780439000260',6),('9780439000277',6),('9780439000284',6),('9780439000291',6),('9780439000307',6),('9780439000017',7),('9780439000024',7),('9780439000031',7),('9780439000048',7),('9780439000055',7),('9780439000062',7),('9780439000079',7),('9780439000017',8),('9780439000024',8),('9780439000031',8),('9780439000048',8),('9780439000055',8),('9780439000062',8),('9780439000079',8),('9780439000086',8),('9780439000093',8),('9780439000109',8),('9780439000116',8),('9780439000123',8),('9780439000130',8),('9780439000147',8),('9780439000154',8),('9780439000161',8),('9780439000178',8),('9780439000185',8),('9780439000192',8),('9780439000208',8),('9780439000215',8),('9780439000222',8),('9780439000239',8),('9780439000246',8),('9780439000253',8),('9780439000260',8),('9780439000277',8),('9780439000284',8),('9780439000291',8),('9780439000307',8),('9780439000086',9),('9780439000093',9),('9780439000109',9); /*!40000 ALTER TABLE `book_genre` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `genre` -- DROP TABLE IF EXISTS `genre`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `genre` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `genre` -- LOCK TABLES `genre` WRITE; /*!40000 ALTER TABLE `genre` DISABLE KEYS */; INSERT INTO `genre` VALUES (1,'Lovecraftian'),(2,'High Fantasy'),(3,'Low Fantasy'),(4,'Horror'),(5,'Magical Realism'),(6,'Science Fiction'),(7,'Bildungsroman'),(8,'Young Adult'),(9,'Dystopian'); /*!40000 ALTER TABLE `genre` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `publisher` -- DROP TABLE IF EXISTS `publisher`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `publisher` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) NOT NULL, `code` varchar(7) NOT NULL, `num_books` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `publisher` -- LOCK TABLES `publisher` WRITE; /*!40000 ALTER TABLE `publisher` DISABLE KEYS */; INSERT INTO `publisher` VALUES (1,'Arkham House','87045',64),(2,'Scholastic','439',30),(3,'Prentice Hall','13',0),(4,'McGraw Hill','7',0),(5,'Addison-Wesley','321',0),(6,'MIT Press','262',0),(7,'Random House','307',0); /*!40000 ALTER TABLE `publisher` 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 2015-03-18 8:32:31
/* Tablas Temporales ----------------- Una tabla temporal es un tipo especial de tabla que permite almacenar un conjunto de resultado temporal, el cual puede ser reutilizado varias veces por una sesión. Una tabla temporal es útil cuando quieres consultar datos que requieren un SELECT sencillo con claúsulas JOIN. Usualmente se utilizan en procedimientos almacenados para almacenar resultados inmediatos para su uso subsecuente. Sintaxis: # Creación CREATE TEMPORARY TABLE nombre_tablatemporal consulta_con_join; # Eliminación DROP TEMPORARY TABLE nombre_tablatemporal; Notas: - Una tabla temporal es creada cuando se utiliza la sentencia CREATE TEMPORARY TABLE. - El gestor elimina la tabla temporal automáticamente cuando la sesión termina o cuando la conexión es terminada. O bien, se puede utilizar la sentencia DROP TABLE. - Una tabla temporal está disponible y accesible para el cliente dueño de la tabla. - Diferentes clientes pueden crear una tabla temporal con el mismo nombre sin causar errores porque sólo el cliente que crea la tabla temporal puede verla. Sin embargo, en una misma sesión, dos tablas temporales no pueden tener el mismo nombre. - Una tabla temporal puede tener el mismo nombre que una tabla existente de la base de datos. Ejemplo: tabla - empleado, tabla temporal - empleado. Sin embargo, cada consulta que se haga contra empleado hará referencia a la tabla temporal y será hasta que se elimine la tabla temporal que se podrá acceder nuevamente a la tabla regular. */ /* ----------------------- ----------------- ----------------- | cliente | | saldo | | top10clientes | ----------------------- ----------------- ----------------- | id INT PK | | id INT PK | | nombre VARCHAR(100) | | total DECIMAL | ----------------------- | idC iNT FK | ----------------- */ CREATE TABLE IF NOT EXISTS cliente ( id INT NOT NULL AUTO_INCREMENT, nombre VARCHAR(100) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE IF NOT EXISTS saldo ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, total DECIMAL NOT NULL, idC INT FOREIGN KEY REFERENCES cliente(id), ); -- Creación de tabla temporal CREATE TEMPORARY TABLE top10clientes SELECT a.id, a.nombre, FORMAT(SUM(b.total),2) total FROM saldo b INNER JOIN cliente a ON a.id = b.idC GROUP BY b.id ORDER BY total DESC LIMIT 10; -- Eliminación de tabla temporal DROP TEMPORARY TABLE top10clientes;
<reponame>saddam22/Jhinaiya-High-School -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 19, 2020 at 02:57 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.11 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: `jhinaiyahighschool` -- -- -------------------------------------------------------- -- -- Table structure for table `admission_orientations` -- CREATE TABLE `admission_orientations` ( `admission_orientation_id` int(10) UNSIGNED NOT NULL, `admission_orientation_title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `admission_orientation_description` text 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 `admission_orientations` -- INSERT INTO `admission_orientations` (`admission_orientation_id`, `admission_orientation_title`, `admission_orientation_description`, `created_at`, `updated_at`) VALUES (1, 'admission open', 'nice to meet you', '2020-02-16 19:49:35', '2020-02-16 19:49:35'), (2, 'Orientation', 'Orientation is Open', '2020-02-16 19:56:35', '2020-02-16 19:56:35'); -- -------------------------------------------------------- -- -- Table structure for table `frontend_include_schools` -- CREATE TABLE `frontend_include_schools` ( `include_school_id` int(10) UNSIGNED NOT NULL, `include_school_image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `include_school_title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `include_school_address` text 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 `frontend_include_schools` -- INSERT INTO `frontend_include_schools` (`include_school_id`, `include_school_image`, `include_school_title`, `include_school_address`, `created_at`, `updated_at`) VALUES (1, 'Picture', 'Jhinaiya High School', 'Jhinaiya', '2020-02-16 13:17:19', '2020-02-16 13:17:19'); -- -------------------------------------------------------- -- -- Table structure for table `frontend_latest_school_news` -- CREATE TABLE `frontend_latest_school_news` ( `school_news_id` int(10) UNSIGNED NOT NULL, `school_news_title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `school_news_description` text 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 `frontend_latest_school_news` -- INSERT INTO `frontend_latest_school_news` (`school_news_id`, `school_news_title`, `school_news_description`, `created_at`, `updated_at`) VALUES (1, 'sunday is class off', 'sunday is class off for all student', '2020-02-16 06:07:14', '2020-02-16 06:07:14'), (3, 'top learn', 'check sum', '2020-02-16 06:22:00', '2020-02-16 06:22:00'); -- -------------------------------------------------------- -- -- Table structure for table `frontend_learn_shares` -- CREATE TABLE `frontend_learn_shares` ( `learn_share_id` int(10) UNSIGNED NOT NULL, `learn_share_title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `learn_share_description` text 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 `frontend_learn_shares` -- INSERT INTO `frontend_learn_shares` (`learn_share_id`, `learn_share_title`, `learn_share_description`, `created_at`, `updated_at`) VALUES (1, 'To be descipline', 'talk to many', '2020-02-16 14:03:53', '2020-02-16 14:03:53'); -- -------------------------------------------------------- -- -- Table structure for table `frontend_notices` -- CREATE TABLE `frontend_notices` ( `notice_id` int(10) UNSIGNED NOT NULL, `notice_title` varchar(255) 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 `frontend_notices` -- INSERT INTO `frontend_notices` (`notice_id`, `notice_title`, `created_at`, `updated_at`) VALUES (1, 'result will be out in the tomorrow', '2020-02-16 19:21:40', '2020-02-16 19:21:40'); -- -------------------------------------------------------- -- -- Table structure for table `frontend_practice_wishs` -- CREATE TABLE `frontend_practice_wishs` ( `practice_wish_id` int(10) UNSIGNED NOT NULL, `practice_wish_title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `practice_wish_description` text 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 `frontend_practice_wishs` -- INSERT INTO `frontend_practice_wishs` (`practice_wish_id`, `practice_wish_title`, `practice_wish_description`, `created_at`, `updated_at`) VALUES (1, 'to be practice', 'finger type', '2020-02-16 14:26:02', '2020-02-16 14:26:02'); -- -------------------------------------------------------- -- -- Table structure for table `frontend_student_reviews` -- CREATE TABLE `frontend_student_reviews` ( `student_review_id` int(10) UNSIGNED NOT NULL, `student_review_title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `student_review_description` text 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 `frontend_student_reviews` -- INSERT INTO `frontend_student_reviews` (`student_review_id`, `student_review_title`, `student_review_description`, `created_at`, `updated_at`) VALUES (1, 'this is good', 'wow to school', '2020-02-16 18:53:05', '2020-02-16 18:53:05'); -- -------------------------------------------------------- -- -- Table structure for table `frontend_upcoming_events` -- CREATE TABLE `frontend_upcoming_events` ( `upcoming_events_id` int(10) UNSIGNED NOT NULL, `upcoming_events_title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `upcoming_events_address` text 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 `frontend_upcoming_events` -- INSERT INTO `frontend_upcoming_events` (`upcoming_events_id`, `upcoming_events_title`, `upcoming_events_address`, `created_at`, `updated_at`) VALUES (1, 'sport news', 'jhinaiya high school', '2020-02-16 09:30:15', '2020-02-16 09:30:15'); -- -------------------------------------------------------- -- -- Table structure for table `menus` -- CREATE TABLE `menus` ( `id` int(10) UNSIGNED NOT NULL, `MenuName` varchar(255) 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 `menus` -- INSERT INTO `menus` (`id`, `MenuName`, `created_at`, `updated_at`) VALUES (1, 'Home', '2020-02-14 13:44:02', '2020-02-14 13:44:02'), (2, 'Class', '2020-02-14 13:58:41', '2020-02-14 13:58:41'), (3, 'Teacher', '2020-02-14 13:59:07', '2020-02-14 13:59:07'), (4, 'Student', '2020-02-14 13:59:14', '2020-02-14 13:59:14'), (5, 'Result', '2020-02-14 13:59:23', '2020-02-14 13:59:23'), (6, 'Institute', '2020-02-14 13:59:31', '2020-02-14 13:59:31'), (7, 'Donation', '2020-02-14 13:59:58', '2020-02-14 13:59:58'), (8, 'About Creation', '2020-02-14 14:00:12', '2020-02-14 14:00:12'), (9, 'চল শিখি/শিখাই', '2020-02-14 14:00:21', '2020-02-14 14:00:21'); -- -------------------------------------------------------- -- -- 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, '2020_02_14_191112_create_menus_table', 2), (4, '2020_02_14_202526_create_sub_categories_table', 3), (5, '2020_02_16_105733_create_frontend_latest_school_news_table', 4), (6, '2020_02_16_134005_create_frontend_upcoming_events_table', 5), (7, '2020_02_16_162652_create_frontend__include__schools_table', 6), (8, '2020_02_16_183839_create_frontend__include__schools_table', 7), (9, '2020_02_16_184833_create_frontend__include__schools_table', 8), (10, '2020_02_16_191247_create_frontend_include_schools_table', 9), (11, '2020_02_16_195710_create_frontend_learn_shares_table', 10), (12, '2020_02_16_200814_create_frontend_practice_wishs_table', 11), (13, '2020_02_17_003147_create_frontend_student_reviews_table', 12), (14, '2020_02_17_010644_create_frontend_notices_table', 13), (15, '2020_02_17_013620_create_admission_orientations_table', 14), (16, '2020_02_19_080425_create_sliders_table', 15); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(100) 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 `sliders` -- CREATE TABLE `sliders` ( `id` int(10) UNSIGNED NOT NULL, `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `title_head` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `title_para` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `image` varchar(255) 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; -- -------------------------------------------------------- -- -- Table structure for table `sub_categories` -- CREATE TABLE `sub_categories` ( `id` int(10) UNSIGNED NOT NULL, `SubMenuName` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `Menu_id` varchar(255) 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 `sub_categories` -- INSERT INTO `sub_categories` (`id`, `SubMenuName`, `Menu_id`, `created_at`, `updated_at`) VALUES (1, 'Six', '2', '2020-02-14 14:51:54', '2020-02-14 14:51:54'), (3, 'Seven', '2', '2020-02-14 15:05:14', '2020-02-14 15:05:14'), (4, 'Eight', '2', '2020-02-14 15:05:23', '2020-02-14 15:05:23'), (5, 'Nine', '2', '2020-02-14 15:05:32', '2020-02-14 15:05:32'), (6, 'Ten', '2', '2020-02-14 15:05:39', '2020-02-14 15:05:39'), (7, 'Six', '5', '2020-02-14 15:06:08', '2020-02-14 15:06:08'), (8, 'Seven', '5', '2020-02-14 15:06:19', '2020-02-14 15:06:19'), (9, 'Eight', '5', '2020-02-14 15:06:28', '2020-02-14 15:06:28'), (10, 'Nine', '5', '2020-02-14 15:06:36', '2020-02-14 15:06:36'), (11, 'Ten', '5', '2020-02-14 15:06:56', '2020-02-14 15:06:56'), (12, 'wanbahjahkas.net', '9', '2020-02-14 15:08:11', '2020-02-14 15:08:11'); -- -------------------------------------------------------- -- -- 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(100) 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, 'asad', '<EMAIL>', NULL, '$2y$10$Drejkj4wOKkzoJ16/UmrzuyLHjrz13aHJje9SIqxCOIo4z83XNLjS', NULL, '2020-02-13 10:10:22', '2020-02-13 10:10:22'), (2, '<NAME>', '<EMAIL>', NULL, '$2y$10$nHmP45wJSzeYurdAzkYkE.GQWdIqe539C5b3Pcd.QDxDCpU/tIl4i', NULL, '2020-02-13 11:14:04', '2020-02-13 11:14:04'); -- -- Indexes for dumped tables -- -- -- Indexes for table `admission_orientations` -- ALTER TABLE `admission_orientations` ADD PRIMARY KEY (`admission_orientation_id`); -- -- Indexes for table `frontend_include_schools` -- ALTER TABLE `frontend_include_schools` ADD PRIMARY KEY (`include_school_id`); -- -- Indexes for table `frontend_latest_school_news` -- ALTER TABLE `frontend_latest_school_news` ADD PRIMARY KEY (`school_news_id`); -- -- Indexes for table `frontend_learn_shares` -- ALTER TABLE `frontend_learn_shares` ADD PRIMARY KEY (`learn_share_id`); -- -- Indexes for table `frontend_notices` -- ALTER TABLE `frontend_notices` ADD PRIMARY KEY (`notice_id`); -- -- Indexes for table `frontend_practice_wishs` -- ALTER TABLE `frontend_practice_wishs` ADD PRIMARY KEY (`practice_wish_id`); -- -- Indexes for table `frontend_student_reviews` -- ALTER TABLE `frontend_student_reviews` ADD PRIMARY KEY (`student_review_id`); -- -- Indexes for table `frontend_upcoming_events` -- ALTER TABLE `frontend_upcoming_events` ADD PRIMARY KEY (`upcoming_events_id`); -- -- Indexes for table `menus` -- ALTER TABLE `menus` 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 `sliders` -- ALTER TABLE `sliders` ADD PRIMARY KEY (`id`); -- -- Indexes for table `sub_categories` -- ALTER TABLE `sub_categories` 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 `admission_orientations` -- ALTER TABLE `admission_orientations` MODIFY `admission_orientation_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `frontend_include_schools` -- ALTER TABLE `frontend_include_schools` MODIFY `include_school_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `frontend_latest_school_news` -- ALTER TABLE `frontend_latest_school_news` MODIFY `school_news_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `frontend_learn_shares` -- ALTER TABLE `frontend_learn_shares` MODIFY `learn_share_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `frontend_notices` -- ALTER TABLE `frontend_notices` MODIFY `notice_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `frontend_practice_wishs` -- ALTER TABLE `frontend_practice_wishs` MODIFY `practice_wish_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `frontend_student_reviews` -- ALTER TABLE `frontend_student_reviews` MODIFY `student_review_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `frontend_upcoming_events` -- ALTER TABLE `frontend_upcoming_events` MODIFY `upcoming_events_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `menus` -- ALTER TABLE `menus` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `sliders` -- ALTER TABLE `sliders` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `sub_categories` -- ALTER TABLE `sub_categories` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- 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 */;
<gh_stars>1-10 create or replace view "AIRBYTE_DATABASE"._AIRBYTE_TEST_NORMALIZATION."NESTED_STREAM_WITH_COMPLEX_COLUMNS_RESULTING_INTO_LONG_NAMES_PARTITION_AB2" as ( -- SQL model to cast each column to its adequate SQL type converted from the JSON schema type select _AIRBYTE_NESTED_STREAM_WITH_COMPLEX_COLUMNS_RESULTING_INTO_LONG_NAMES_HASHID, DOUBLE_ARRAY_DATA, DATA, _airbyte_emitted_at from "AIRBYTE_DATABASE"._AIRBYTE_TEST_NORMALIZATION."NESTED_STREAM_WITH_COMPLEX_COLUMNS_RESULTING_INTO_LONG_NAMES_PARTITION_AB1" -- PARTITION at nested_stream_with_complex_columns_resulting_into_long_names/partition );
/* Creating memory-optimized key-value pairs table for caching purposes (drop existing if needed) */ DROP TABLE IF EXISTS Cache; GO CREATE TABLE Cache ( [key] BIGINT IDENTITY, value NVARCHAR(MAX), INDEX IX_Hash_Key HASH ([key]) WITH (BUCKET_COUNT = 100000) ) WITH ( MEMORY_OPTIMIZED = ON, DURABILITY = SCHEMA_ONLY );
<reponame>StJudeWasHere/seonaut CREATE TABLE IF NOT EXISTS `users` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `email` varchar(256) NOT NULL DEFAULT '', `password` varchar(512) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ); CREATE TABLE IF NOT EXISTS `issue_types` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `type` varchar(256) DEFAULT NULL, `priority` int DEFAULT NULL, PRIMARY KEY (`id`) ); INSERT INTO `issue_types` (`id`, `type`, `priority`) VALUES (1,'ERROR_30x',1), (2,'ERROR_40x',1), (3,'ERROR_50x',1), (4,'ERROR_DUPLICATED_TITLE',2), (5,'ERROR_DUPLICATED_DESCRIPTION',2), (6,'ERROR_EMPTY_TITLE',2), (7,'ERROR_SHORT_TITLE',2), (8,'ERROR_LONG_TITLE',2), (9,'ERROR_EMPTY_DESCRIPTION',2), (10,'ERROR_SHORT_DESCRIPTION',2), (11,'ERROR_LONG_DESCRIPTION',2), (12,'ERROR_LITTLE_CONTENT',3), (13,'ERROR_IMAGES_NO_ALT',2), (14,'ERROR_REDIRECT_CHAIN',1), (15,'ERROR_NO_H1',2), (16,'ERROR_NO_LANG',3), (17,'ERROR_HTTP_LINKS',2), (18,'ERROR_HREFLANG_RETURN',2), (19,'ERROR_TOO_MANY_LINKS',3), (20,'ERROR_INTERNAL_NOFOLLOW',3), (21,'ERROR_EXTERNAL_WITHOUT_NOFOLLOW',3), (22,'ERROR_CANONICALIZED_NON_CANONICAL',2), (23,'ERROR_REDIRECT_LOOP',1), (24,'ERROR_NOT_VALID_HEADINGS',2); CREATE TABLE IF NOT EXISTS `projects` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `user_id` int unsigned DEFAULT NULL, `url` varchar(2048) NOT NULL DEFAULT '', `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `ignore_robotstxt` tinyint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `user_id` (`user_id`), CONSTRAINT `projects_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ); CREATE TABLE IF NOT EXISTS `crawls` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `project_id` int unsigned NOT NULL, `start` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `end` timestamp NULL DEFAULT NULL, `total_urls` int NOT NULL DEFAULT '0', `total_issues` int NOT NULL DEFAULT '0', `issues_end` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `crawl_project` (`project_id`), CONSTRAINT `crawl_project` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE ); CREATE TABLE IF NOT EXISTS `pagereports` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `crawl_id` int unsigned NOT NULL, `url` varchar(2048) NOT NULL DEFAULT '', `scheme` varchar(5) DEFAULT NULL, `redirect_url` varchar(2048) DEFAULT NULL, `refresh` varchar(2048) DEFAULT NULL, `status_code` int NOT NULL, `content_type` varchar(100) DEFAULT NULL, `media_type` varchar(100) DEFAULT NULL, `lang` varchar(10) DEFAULT NULL, `title` varchar(2048) DEFAULT NULL, `description` varchar(2048) DEFAULT NULL, `robots` varchar(100) DEFAULT NULL, `canonical` varchar(2048) DEFAULT NULL, `h1` varchar(1024) DEFAULT NULL, `h2` varchar(1024) DEFAULT NULL, `words` int DEFAULT NULL, `size` int DEFAULT NULL, `url_hash` varchar(256) NOT NULL DEFAULT '', `redirect_hash` varchar(256) DEFAULT NULL, `valid_headings` tinyint NOT NULL DEFAULT '1', PRIMARY KEY (`id`), KEY `pagereport_crawl` (`crawl_id`), KEY `pagereport_hash` (`url_hash`), KEY `redirect_hash` (`redirect_hash`), CONSTRAINT `pagereport_crawl` FOREIGN KEY (`crawl_id`) REFERENCES `crawls` (`id`) ON DELETE CASCADE ); CREATE TABLE IF NOT EXISTS `external_links` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `pagereport_id` int unsigned NOT NULL, `crawl_id` int unsigned NOT NULL, `url` varchar(2048) NOT NULL DEFAULT '', `rel` varchar(100) DEFAULT NULL, `text` varchar(1024) DEFAULT NULL, `nofollow` tinyint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `external_links_pagereport` (`pagereport_id`), KEY `external_links_crawl` (`crawl_id`), CONSTRAINT `external_links_crawl` FOREIGN KEY (`crawl_id`) REFERENCES `crawls` (`id`) ON DELETE CASCADE, CONSTRAINT `external_links_pagereport` FOREIGN KEY (`pagereport_id`) REFERENCES `pagereports` (`id`) ON DELETE CASCADE ); CREATE TABLE IF NOT EXISTS `hreflangs` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `pagereport_id` int unsigned NOT NULL, `crawl_id` int unsigned NOT NULL, `from_lang` varchar(10) DEFAULT NULL, `to_url` varchar(2048) NOT NULL DEFAULT '', `to_lang` varchar(10) DEFAULT NULL, `from_hash` varchar(256) NOT NULL DEFAULT '', `to_hash` varchar(256) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `hreflangs_from_hash` (`from_hash`), KEY `hreflangs_to_hash` (`to_hash`), KEY `hreflangs_pagereport` (`pagereport_id`), KEY `hreflangs_crawl` (`crawl_id`), KEY `hreflangs_crawl_from_to` (`crawl_id`,`from_hash`,`to_hash`), CONSTRAINT `hreflangs_crawl` FOREIGN KEY (`crawl_id`) REFERENCES `crawls` (`id`) ON DELETE CASCADE, CONSTRAINT `hreflangs_pagereport` FOREIGN KEY (`pagereport_id`) REFERENCES `pagereports` (`id`) ON DELETE CASCADE ); CREATE TABLE IF NOT EXISTS `images` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `pagereport_id` int unsigned NOT NULL, `url` varchar(2048) NOT NULL DEFAULT '', `alt` varchar(1024) DEFAULT NULL, `crawl_id` int unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `images_pagereport` (`pagereport_id`), KEY `images_crawl` (`crawl_id`), CONSTRAINT `images_crawl` FOREIGN KEY (`crawl_id`) REFERENCES `crawls` (`id`) ON DELETE CASCADE, CONSTRAINT `images_pagereport` FOREIGN KEY (`pagereport_id`) REFERENCES `pagereports` (`id`) ON DELETE CASCADE ); CREATE TABLE IF NOT EXISTS `issues` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `pagereport_id` int unsigned NOT NULL, `crawl_id` int unsigned NOT NULL, `issue_type_id` int unsigned NOT NULL, PRIMARY KEY (`id`), KEY `issue_crawl` (`crawl_id`), KEY `issue_pagereport` (`pagereport_id`), KEY `issues_issue_type` (`issue_type_id`), CONSTRAINT `issue_crawl` FOREIGN KEY (`crawl_id`) REFERENCES `crawls` (`id`) ON DELETE CASCADE, CONSTRAINT `issue_pagereport` FOREIGN KEY (`pagereport_id`) REFERENCES `pagereports` (`id`) ON DELETE CASCADE, CONSTRAINT `issues_issue_type` FOREIGN KEY (`issue_type_id`) REFERENCES `issue_types` (`id`) ON DELETE CASCADE ); CREATE TABLE IF NOT EXISTS `links` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `pagereport_id` int unsigned NOT NULL, `crawl_id` int unsigned NOT NULL, `url` varchar(2048) NOT NULL DEFAULT '', `scheme` varchar(5) NOT NULL, `rel` varchar(100) DEFAULT NULL, `text` varchar(1024) DEFAULT NULL, `url_hash` varchar(256) NOT NULL DEFAULT '', `nofollow` tinyint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `links_external` (`pagereport_id`), KEY `links_hash` (`url_hash`), KEY `links_crawl` (`crawl_id`), CONSTRAINT `links_crawl` FOREIGN KEY (`crawl_id`) REFERENCES `crawls` (`id`) ON DELETE CASCADE, CONSTRAINT `links_pagereport` FOREIGN KEY (`pagereport_id`) REFERENCES `pagereports` (`id`) ON DELETE CASCADE ); CREATE TABLE IF NOT EXISTS `scripts` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `pagereport_id` int unsigned NOT NULL, `url` varchar(2048) NOT NULL DEFAULT '', `crawl_id` int unsigned NOT NULL, PRIMARY KEY (`id`), KEY `scripts_pagereport` (`pagereport_id`), KEY `scripts_crawl` (`crawl_id`), CONSTRAINT `scripts_crawl` FOREIGN KEY (`crawl_id`) REFERENCES `crawls` (`id`) ON DELETE CASCADE, CONSTRAINT `scripts_pagereport` FOREIGN KEY (`pagereport_id`) REFERENCES `pagereports` (`id`) ON DELETE CASCADE ); CREATE TABLE IF NOT EXISTS `styles` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `pagereport_id` int unsigned NOT NULL, `url` varchar(2048) NOT NULL DEFAULT '', `crawl_id` int unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `styles_pagereport` (`pagereport_id`), KEY `styles_crawl` (`crawl_id`), CONSTRAINT `styles_crawl` FOREIGN KEY (`crawl_id`) REFERENCES `crawls` (`id`) ON DELETE CASCADE, CONSTRAINT `styles_pagereport` FOREIGN KEY (`pagereport_id`) REFERENCES `pagereports` (`id`) ON DELETE CASCADE );
<gh_stars>1-10 --Problem 16 CREATE DATABASE SoftUni CREATE TABLE Towns ( Id INT PRIMARY KEY IDENTITY(1,1), [Name] NVARCHAR(100) NOT NULL ) CREATE TABLE Addresses ( Id INT PRIMARY KEY IDENTITY(1,1), AddressText NVARCHAR(100), TownId INT NOT NULL ) CREATE TABLE Departments ( Id INT PRIMARY KEY IDENTITY(1,1), [Name] NVARCHAR(100) NOT NULL ) CREATE TABLE Employees ( Id INT PRIMARY KEY IDENTITY(1,1), FirstName NVARCHAR(50) NOT NULL, MiddleName NVARCHAR(50) NOT NULL, LastName NVARCHAR(50) NOT NULL, JobTitle NVARCHAR(50) NOT NULL, DepartmentId INT NOT NULL, HireDate DATE, Salary DECIMAL(10,2) NOT NULL, AddressId INT )
<filename>services/service-core-db/migrations/2018-06-07-115918_permissions_fix_to_user_details/down.sql DROP FUNCTION community_service_api.user_details(id uuid);
<filename>copy_my_subfolders_to_my_grandparent/adf/Projects/Project002/11_diabetes_model_reg/sql_demo_scripts/M11_AzureSQLDB_create_tables.sql -- DEMO Azure SQL Database source for M11_Diabetes model -- 1) IN DATA to Lake, anonymized CREATE TABLE [dbo].[esml_diabetes] ( -- PersonId: Not needed for ML scoring. It is actually only noise for the Machine Learning brain. PersonId INT IDENTITY(1,1) not null, -- But IF we want to reconnect scored RESULT to an individual, we need it. AGE FLOAT NOT NULL, SEX FLOAT NOT NULL, BMI FLOAT NOT NULL, BP FLOAT NOT NULL, S1 FLOAT NOT NULL, S2 FLOAT NOT NULL, S3 FLOAT NOT NULL, S4 FLOAT NOT NULL, S5 FLOAT NOT NULL, S6 FLOAT NOT NULL ) -- 2) Scored data the PIPELINE WroteBack CREATE TABLE [dbo].[esml_personID_scoring] ( PersonId INT NOT NULL, DiabetesMLScoring DECIMAL NULL, scoring_time DATETIME NULL, in_data_time DATETIME NULL, ts DATETIME NOT NULL DEFAULT (GETDATE()) ) -- SELECT Count(*) as total_rows FROM [dbo].[esml_personID_scoring] -- 442 rows per RUN since "UPSERT" from Azure Datafactory on PersonID -- SELECT * FROM [dbo].[esml_personID_scoring] -- 3) VIEW Person connected to scoring: Risk of DIABETES --SELECT * FROM [dbo].[esml_diabetes] as a SELECT * FROM [dbo].[esml_person_info] as a LEFT JOIN [dbo].[esml_personID_scoring] as b ON a.PersonId = b.PersonId
<filename>backend/de.metas.purchasecandidate.base/src/main/sql/postgresql/system/5495680_gh4033-app_UC_C_PurchaseCandidate_Alloc_C_OrderLinePO_ID.sql -- 2018-06-11T15:26:39.332 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Table (AD_Client_ID,AD_Index_Table_ID,AD_Org_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsUnique,Name,Processing,Updated,UpdatedBy,WhereClause) VALUES (0,540441,0,540930,TO_TIMESTAMP('2018-06-11 15:26:39','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.purchasecandidate','Y','Y','UC_C_PurchaseCandidate_Alloc_C_OrderLinePO_ID','N',TO_TIMESTAMP('2018-06-11 15:26:39','YYYY-MM-DD HH24:MI:SS'),100,'IsActive=''Y''') ; -- 2018-06-11T15:26:39.336 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Table_Trl (AD_Language,AD_Index_Table_ID, ErrorMsg, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Index_Table_ID, t.ErrorMsg, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Index_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Index_Table_ID=540441 AND NOT EXISTS (SELECT 1 FROM AD_Index_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Index_Table_ID=t.AD_Index_Table_ID) ; -- 2018-06-11T15:26:59.387 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Column (AD_Client_ID,AD_Column_ID,AD_Index_Column_ID,AD_Index_Table_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,559005,540866,540441,0,TO_TIMESTAMP('2018-06-11 15:26:59','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.purchasecandidate','Y',10,TO_TIMESTAMP('2018-06-11 15:26:59','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-06-11T15:28:56.677 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Index_Table SET Help='Each purchase order line can''t have mor than one purchase candidate. Still wee want to keep this table C_PurchaseCandidate_Alloc, because it also holds a reference to the the "remote" pruchase order line (from the vendor gateway''s side). And we don''t want to add all those columns to C_OrderLine..',Updated=TO_TIMESTAMP('2018-06-11 15:28:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Index_Table_ID=540441 ; -- 2018-06-11T15:29:00.588 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator CREATE UNIQUE INDEX UC_C_PurchaseCandidate_Alloc_C_OrderLinePO_ID ON C_PurchaseCandidate_Alloc (C_OrderLinePO_ID) WHERE IsActive='Y' ;
<reponame>Sharko-21/exam-filippov_y_i<filename>app/sql/plate/findByEnsembleID.sql SELECT DISTINCT plate.* FROM composition_ensemble_plate INNER JOIN plate ON composition_ensemble_plate.plate_id = plate.id WHERE ensemble_id = ${id};
<gh_stars>0 select c_integer, COUNT(DISTINCT c_integer) from alltypes group by c_integer order by c_integer;
<reponame>majacQ/keywhiz ALTER TABLE clients ADD expiration BIGINT;
<reponame>albertoivo/log-analisys -- What are the three most popular articles of all time? SELECT a.title, count(a.title) AS quantity FROM log l, articles a WHERE l.path = '/article/' || a.slug GROUP BY a.title ORDER BY quantity DESC LIMIT 3
ALTER TABLE `staff_promotionals_details` ADD `spd_filename` VARCHAR(500) NULL AFTER `spd_specialgrddate`;
-- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 16, 2021 at 07:53 PM -- Server version: 10.5.9-MariaDB-1:10.5.9+maria~focal -- PHP Version: 7.4.3 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: `zend_test_db` -- -- -------------------------------------------------------- -- -- Table structure for table `album` -- -- Creation: Mar 13, 2021 at 10:48 PM -- Last update: Mar 16, 2021 at 03:41 PM -- DROP TABLE IF EXISTS `album`; CREATE TABLE `album` ( `id` int(11) NOT NULL, `product_id` int(11) NOT NULL, `artist_id` int(11) NOT NULL, `title` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `album` -- INSERT INTO `album` (`id`, `product_id`, `artist_id`, `title`) VALUES (1, 6, 1, 'In My Dreams'), (2, 7, 2, '21'), (3, 8, 3, 'Wrecking Ball (Deluxe)'), (4, 9, 4, 'Born To Die'), (5, 10, 5, 'Making Mirrors'); -- -------------------------------------------------------- -- -- Table structure for table `artist` -- -- Creation: Mar 13, 2021 at 10:30 PM -- Last update: Mar 13, 2021 at 10:43 PM -- DROP TABLE IF EXISTS `artist`; CREATE TABLE `artist` ( `id` int(11) NOT NULL, `name` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `artist` -- INSERT INTO `artist` (`id`, `name`) VALUES (2, 'Adele'), (3, '<NAME>'), (5, 'Gotye'), (4, '<NAME>'), (1, 'The Military Wives'); -- -------------------------------------------------------- -- -- Table structure for table `author` -- -- Creation: Mar 13, 2021 at 10:31 PM -- Last update: Mar 16, 2021 at 03:45 PM -- DROP TABLE IF EXISTS `author`; CREATE TABLE `author` ( `id` int(11) NOT NULL, `name` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `author` -- INSERT INTO `author` (`id`, `name`) VALUES (1, '<NAME>'), (4, '<NAME>'), (6, '<NAME>'), (8, '<NAME>'), (5, '<NAME>'), (9, '<NAME>'), (3, '<NAME>'), (7, '<NAME>'), (10, '<NAME>'), (2, '<NAME>'); -- -------------------------------------------------------- -- -- Table structure for table `book` -- -- Creation: Mar 13, 2021 at 10:41 PM -- Last update: Mar 16, 2021 at 03:50 PM -- DROP TABLE IF EXISTS `book`; CREATE TABLE `book` ( `id` int(11) NOT NULL, `product_id` int(11) NOT NULL, `author_id` int(11) NOT NULL, `title` varchar(100) NOT NULL, `isbn` varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `book` -- INSERT INTO `book` (`id`, `product_id`, `author_id`, `title`, `isbn`) VALUES (1, 1, 1, 'Everything Will Be Okay: Life Lessons for Young Women (from a Former Young Woman)', '1538737086'), (2, 2, 2, 'The Code Breaker: <NAME>, Gene Editing, and the Future of the Human Race', '1982115858'), (3, 3, 3, 'Life After Death', '1982139137'), (4, 4, 4, 'Dog Man: Mothering Heights', '1338680455'), (5, 5, 5, 'It\'s Not Easy Being a Bunny', '0394861027'), (6, 28, 6, 'The UNREVEALED', '8976576432'), (7, 29, 7, 'A Man at Arms', '0393540979'), (8, 30, 8, 'The Russian Assassin: A Max <NAME>', '1232425324'), (9, 31, 9, 'The Prototype', '6543623423'), (10, 32, 10, 'The Wrong Family', '6345347643'); -- -------------------------------------------------------- -- -- Table structure for table `product` -- -- Creation: Mar 13, 2021 at 10:28 PM -- Last update: Mar 16, 2021 at 03:46 PM -- DROP TABLE IF EXISTS `product`; CREATE TABLE `product` ( `id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `product` -- INSERT INTO `product` (`id`) VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (28), (29), (30), (31), (32); -- -------------------------------------------------------- -- -- Table structure for table `thriller` -- -- Creation: Mar 13, 2021 at 10:48 PM -- Last update: Mar 16, 2021 at 03:51 PM -- DROP TABLE IF EXISTS `thriller`; CREATE TABLE `thriller` ( `id` int(11) NOT NULL, `book_id` int(11) NOT NULL, `excitement_factor` tinyint(4) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `thriller` -- INSERT INTO `thriller` (`id`, `book_id`, `excitement_factor`) VALUES (1, 6, 67), (2, 7, 35), (3, 8, 79), (4, 9, 64), (5, 10, 84); -- -- Indexes for dumped tables -- -- -- Indexes for table `album` -- ALTER TABLE `album` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `product_id` (`product_id`), ADD UNIQUE KEY `artist_id` (`artist_id`,`title`), ADD KEY `title` (`title`); -- -- Indexes for table `artist` -- ALTER TABLE `artist` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `name` (`name`); -- -- Indexes for table `author` -- ALTER TABLE `author` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `name` (`name`); -- -- Indexes for table `book` -- ALTER TABLE `book` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `isbn` (`isbn`), ADD UNIQUE KEY `product_id` (`product_id`), ADD UNIQUE KEY `author_id` (`author_id`,`title`), ADD KEY `title` (`title`); -- -- Indexes for table `product` -- ALTER TABLE `product` ADD PRIMARY KEY (`id`); -- -- Indexes for table `thriller` -- ALTER TABLE `thriller` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `book_id` (`book_id`) USING BTREE, ADD KEY `excitement_factor` (`excitement_factor`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `album` -- ALTER TABLE `album` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `artist` -- ALTER TABLE `artist` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `author` -- ALTER TABLE `author` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `book` -- ALTER TABLE `book` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `product` -- ALTER TABLE `product` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33; -- -- AUTO_INCREMENT for table `thriller` -- ALTER TABLE `thriller` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- Constraints for dumped tables -- -- -- Constraints for table `album` -- ALTER TABLE `album` ADD CONSTRAINT `album_ibfk_1` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `album_ibfk_2` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE; -- -- Constraints for table `book` -- ALTER TABLE `book` ADD CONSTRAINT `book_ibfk_1` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `book_ibfk_2` FOREIGN KEY (`author_id`) REFERENCES `author` (`id`) ON DELETE CASCADE; -- -- Constraints for table `thriller` -- ALTER TABLE `thriller` ADD CONSTRAINT `thriller_ibfk_1` FOREIGN KEY (`book_id`) REFERENCES `book` (`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 */;
<gh_stars>1-10 -- 更新实验室管理的基础配置数据 -- 陈乐为 update c_message_properties set business_config_status='yes' where business_config_status='1'; update c_message_properties set business_config_status='no' where business_config_status='2'; update c_message_properties_extend set business_config_extend_status='yes' where business_config_extend_status='1'; update c_message_properties_extend set business_config_extend_status='no' where business_config_extend_status='2';
/* Script Generado por Evolution - Editor de Formulación de Planillas. 16-01-2017 2:36 PM */ begin transaction delete from [sal].[fac_factores] where [fac_codigo] = '7D1AF3D1-70A8-4168-8C97-E62AEFBA44B2'; insert into [sal].[fac_factores] ([fac_codigo],[fac_id],[fac_descripcion],[fac_vbscript],[fac_codfld],[fac_codpai],[fac_size]) values ('7D1AF3D1-70A8-4168-8C97-E62AEFBA44B2','OtrosIngresos_aju','Otros ingresos','Function OtrosIngresos_aju() valorTotal = 0 if Emp_OtrosIngresos.RecordCount > 0 then Emp_OtrosIngresos.MoveFirst do until Emp_OtrosIngresos.EOF valor = round(cdbl(Emp_OtrosIngresos.Fields("oin_valor_a_pagar").Value), 2) Emp_OtrosIngresos.Fields("oin_aplicado_planilla").Value = 1 agrega_ingresos_historial Agrupadores, _ IngresosEstaPlanilla, _ Emp_InfoSalario_Ajustes.Fields("EMP_CODIGO").Value, _ Pla_Periodo.Fields("PPL_CODPPL").Value, _ Emp_OtrosIngresos.Fields("oin_codtig").Value, _ valor, _ Emp_OtrosIngresos.Fields("oin_codmon").Value, _ 0, _ "Dias" valorTotal = valorTotal + valor Emp_OtrosIngresos.MoveNext loop end if OtrosIngresos_aju = valorTotal End Function','double','pa',0); commit transaction;
begin param_admin.edit_parameter_group( p_pgr_id => 'PIT', p_pgr_description => 'Parameter for PIT', p_pgr_is_modifiable => true ); param_admin.edit_parameter( p_par_id => 'ADAPTER_PREFERENCE' ,p_par_pgr_id => 'PIT' ,p_par_description => 'Order in which PIT tries to use adapter preferences (left ot right)' ,p_par_string_value => q'^APEX_ADAPTER:DEFAULT_ADAPTER^' ); param_admin.edit_parameter( p_par_id => 'ALLOW_TOGGLE' ,p_par_pgr_id => 'PIT' ,p_par_description => 'Flag to indicate whether PIT utilizes toggle functionality' ,p_par_boolean_value => true ); param_admin.edit_parameter( p_par_id => 'PIT_CTX_TYPE' ,p_par_pgr_id => 'CONTEXT' ,p_par_description => 'Type of the globally accessed PIT context (SESSION|PREFER_USER_CLIENT_ID etc.)' ,p_par_string_value => q'^PREFER_USER_CLIENT_ID^' ); param_admin.edit_parameter( p_par_id => 'PIT_CTX_&INSTALL_USER._TYPE' ,p_par_pgr_id => 'CONTEXT' ,p_par_description => 'Type of the globally accessed PIT context (SESSION|PREFER_USER_CLIENT_ID etc.)' ,p_par_string_value => q'^PREFER_USER_CLIENT_ID^' ); param_admin.edit_parameter( p_par_id => 'BROADCAST_CONTEXT_SWITCH' ,p_par_pgr_id => 'PIT' ,p_par_description => 'Flag to indicate whether context switches are sent to all available modules (true) or to active modules only' ,p_par_boolean_value => false ); param_admin.edit_parameter( p_par_id => 'XLIFF_SKELETON' ,p_par_pgr_id => 'PIT' ,p_par_description => 'template for XLIFF translation files for messages.' ,p_par_xml_value => xmltype(q'^<?xml version="1.0"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> <file original="pit_message_translation.xml" source-language="en" target-language="de" datatype="html"> <header/> <body/> </file> </xliff> ^') ); param_admin.edit_parameter( p_par_id => 'ERROR_PREFIX' ,p_par_pgr_id => 'PIT' ,p_par_description => 'Optional prefix for exception constant names' ,p_par_string_value => q'^^' ,p_par_validation_string => 'length(#STRING_VALUE#) < 4' ,p_par_validation_message => 'Prefix length must not exceed 3 characters' ); param_admin.edit_parameter( p_par_id => 'ERROR_POSTFIX' ,p_par_pgr_id => 'PIT' ,p_par_description => 'Optional postfix for exception constant names' ,p_par_string_value => q'^ERR^' ,p_par_validation_string => 'length(#STRING_VALUE#) < 4' ,p_par_validation_message => 'Postfix length must not exceed 3 characters' ); param_admin.edit_parameter( p_par_id => 'PIT_WEB_SOCKET_SERVER', p_par_pgr_id => 'PIT', p_par_description => 'WebSocket-Server zum Pushen von Nachrichten an PIT_APEX', p_par_string_value => 'http://localhost:8880' ); param_admin.edit_parameter( p_par_id => 'PIT_CALL_STACK_TEMPLATE', p_par_pgr_id => 'PIT', p_par_description =>'Template that is used in Version 12 onwards to create a call stack string', p_par_string_value => q'^* Call Stack Line Schema Object ----- --------------- ----------------------------------------------^' ); param_admin.edit_parameter( p_par_id => 'PIT_ERROR_STACK_TEMPLATE', p_par_pgr_id => 'PIT', p_par_description =>'Template that is used in Version 12 onwards to create a error stack string', p_par_string_value => q'^* Error Stack Level Error# Message ----- --------- ----------------------------------------------------^' ); param_admin.edit_parameter( p_par_id => 'NAME_SPELLING' ,p_par_pgr_id => 'PIT' ,p_par_description => 'Default spelling for database object names' ,p_par_string_value => q'^LOWER^' ,p_par_validation_string => q'^#STRING_VALUE# in ('LOWER', 'UPER', 'UNCHANGED')^' ,p_par_validation_message => 'Allowed values are LOWER|UPPER|UNCHANGED' ); pit_admin.create_named_context( p_context_name => 'CONTEXT_DEBUG', p_settings => '70|50|Y|PIT_CONSOLE', p_comment => 'Named context, switches logging on [LOG_LEVEL|TRACE_LEVEL|TRACE_TIMING_FLAG (Y,N)|MODULE_LIST]'); pit_admin.create_named_context( p_context_name => 'CONTEXT_DEFAULT', p_settings => '30|10|N|PIT_TABLE:PIT_APEX', p_comment => 'Named context, default values [LOG_LEVEL|TRACE_LEVEL|TRACE_TIMING_FLAG (Y,N)|MODULE_LIST]'); pit_admin.create_named_context( p_context_name => 'CONTEXT_OFF', p_settings => '10|10|N|', p_comment => 'Named context, switches logging off [LOG_LEVEL|TRACE_LEVEL|TRACE_TIMING_FLAG (Y,N)|MODULE_LIST]'); commit; end; /
-- -------------------------------------------------------- -- Servidor: localhost -- Versão do servidor: 10.4.6-MariaDB - mariadb.org binary distribution -- OS do Servidor: Win64 -- HeidiSQL Versão: 11.2.0.6213 -- -------------------------------------------------------- /*!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' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- Copiando estrutura do banco de dados para devbarber CREATE DATABASE IF NOT EXISTS `devbarber` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `devbarber`; -- Copiando estrutura para tabela devbarber.barberavailability CREATE TABLE IF NOT EXISTS `barberavailability` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `id_barber` int(11) NOT NULL, `weekday` int(11) NOT NULL, `hours` text COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Copiando dados para a tabela devbarber.barberavailability: ~60 rows (aproximadamente) DELETE FROM `barberavailability`; /*!40000 ALTER TABLE `barberavailability` DISABLE KEYS */; INSERT INTO `barberavailability` (`id`, `id_barber`, `weekday`, `hours`) VALUES (1, 1, 0, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (2, 1, 1, '07:00,08:00,09:00,10:00,11:00,12:00,13:00,14:00'), (3, 1, 2, '08:00,09:00,10:00,11:00,12:00,13:00,14:00,15:00'), (4, 1, 3, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (5, 2, 0, '07:00,08:00,09:00,10:00,11:00,12:00,13:00,14:00'), (6, 2, 1, '08:00,09:00,10:00,11:00,12:00,13:00,14:00,15:00'), (7, 2, 2, '07:00,08:00,09:00,10:00,11:00,12:00,13:00,14:00'), (8, 2, 3, '10:00,11:00,12:00,13:00,14:00,15:00,16:00,17:00'), (9, 3, 0, '08:00,09:00,10:00,11:00,12:00,13:00,14:00,15:00'), (10, 3, 1, '10:00,11:00,12:00,13:00,14:00,15:00,16:00,17:00'), (11, 3, 2, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (12, 3, 3, '10:00,11:00,12:00,13:00,14:00,15:00,16:00,17:00'), (13, 4, 0, '10:00,11:00,12:00,13:00,14:00,15:00,16:00,17:00'), (14, 4, 1, '10:00,11:00,12:00,13:00,14:00,15:00,16:00,17:00'), (15, 4, 2, '07:00,08:00,09:00,10:00,11:00,12:00,13:00,14:00'), (16, 4, 3, '08:00,09:00,10:00,11:00,12:00,13:00,14:00,15:00'), (17, 5, 0, '10:00,11:00,12:00,13:00,14:00,15:00,16:00,17:00'), (18, 5, 1, '10:00,11:00,12:00,13:00,14:00,15:00,16:00,17:00'), (19, 5, 2, '07:00,08:00,09:00,10:00,11:00,12:00,13:00,14:00'), (20, 5, 3, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (21, 6, 0, '10:00,11:00,12:00,13:00,14:00,15:00,16:00,17:00'), (22, 6, 1, '10:00,11:00,12:00,13:00,14:00,15:00,16:00,17:00'), (23, 6, 2, '07:00,08:00,09:00,10:00,11:00,12:00,13:00,14:00'), (24, 6, 3, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (25, 7, 0, '10:00,11:00,12:00,13:00,14:00,15:00,16:00,17:00'), (26, 7, 1, '07:00,08:00,09:00,10:00,11:00,12:00,13:00,14:00'), (27, 7, 2, '08:00,09:00,10:00,11:00,12:00,13:00,14:00,15:00'), (28, 7, 3, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (29, 8, 0, '08:00,09:00,10:00,11:00,12:00,13:00,14:00,15:00'), (30, 8, 1, '10:00,11:00,12:00,13:00,14:00,15:00,16:00,17:00'), (31, 8, 2, '10:00,11:00,12:00,13:00,14:00,15:00,16:00,17:00'), (32, 8, 3, '08:00,09:00,10:00,11:00,12:00,13:00,14:00,15:00'), (33, 9, 0, '07:00,08:00,09:00,10:00,11:00,12:00,13:00,14:00'), (34, 9, 1, '08:00,09:00,10:00,11:00,12:00,13:00,14:00,15:00'), (35, 9, 2, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (36, 9, 3, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (37, 10, 0, '10:00,11:00,12:00,13:00,14:00,15:00,16:00,17:00'), (38, 10, 1, '08:00,09:00,10:00,11:00,12:00,13:00,14:00,15:00'), (39, 10, 2, '08:00,09:00,10:00,11:00,12:00,13:00,14:00,15:00'), (40, 10, 3, '07:00,08:00,09:00,10:00,11:00,12:00,13:00,14:00'), (41, 11, 0, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (42, 11, 1, '07:00,08:00,09:00,10:00,11:00,12:00,13:00,14:00'), (43, 11, 2, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (44, 11, 3, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (45, 12, 0, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (46, 12, 1, '07:00,08:00,09:00,10:00,11:00,12:00,13:00,14:00'), (47, 12, 2, '08:00,09:00,10:00,11:00,12:00,13:00,14:00,15:00'), (48, 12, 3, '07:00,08:00,09:00,10:00,11:00,12:00,13:00,14:00'), (49, 13, 0, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (50, 13, 1, '10:00,11:00,12:00,13:00,14:00,15:00,16:00,17:00'), (51, 13, 2, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (52, 13, 3, '07:00,08:00,09:00,10:00,11:00,12:00,13:00,14:00'), (53, 14, 0, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (54, 14, 1, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (55, 14, 2, '08:00,09:00,10:00,11:00,12:00,13:00,14:00,15:00'), (56, 14, 3, '08:00,09:00,10:00,11:00,12:00,13:00,14:00,15:00'), (57, 15, 0, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (58, 15, 1, '07:00,08:00,09:00,10:00,11:00,12:00,13:00,14:00'), (59, 15, 2, '09:00,10:00,11:00,12:00,13:00,14:00,15:00,16:00'), (60, 15, 3, '07:00,08:00,09:00,10:00,11:00,12:00,13:00,14:00'); /*!40000 ALTER TABLE `barberavailability` ENABLE KEYS */; -- Copiando estrutura para tabela devbarber.barberphotos CREATE TABLE IF NOT EXISTS `barberphotos` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `id_barber` int(11) NOT NULL, `url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Copiando dados para a tabela devbarber.barberphotos: ~60 rows (aproximadamente) DELETE FROM `barberphotos`; /*!40000 ALTER TABLE `barberphotos` DISABLE KEYS */; INSERT INTO `barberphotos` (`id`, `id_barber`, `url`) VALUES (1, 1, '4.png'), (2, 1, '2.png'), (3, 1, '3.png'), (4, 1, '5.png'), (5, 2, '1.png'), (6, 2, '5.png'), (7, 2, '3.png'), (8, 2, '5.png'), (9, 3, '5.png'), (10, 3, '4.png'), (11, 3, '1.png'), (12, 3, '4.png'), (13, 4, '4.png'), (14, 4, '4.png'), (15, 4, '3.png'), (16, 4, '5.png'), (17, 5, '2.png'), (18, 5, '4.png'), (19, 5, '2.png'), (20, 5, '2.png'), (21, 6, '3.png'), (22, 6, '1.png'), (23, 6, '4.png'), (24, 6, '5.png'), (25, 7, '2.png'), (26, 7, '2.png'), (27, 7, '4.png'), (28, 7, '3.png'), (29, 8, '5.png'), (30, 8, '5.png'), (31, 8, '1.png'), (32, 8, '5.png'), (33, 9, '3.png'), (34, 9, '1.png'), (35, 9, '3.png'), (36, 9, '3.png'), (37, 10, '3.png'), (38, 10, '4.png'), (39, 10, '4.png'), (40, 10, '4.png'), (41, 11, '1.png'), (42, 11, '3.png'), (43, 11, '3.png'), (44, 11, '4.png'), (45, 12, '4.png'), (46, 12, '3.png'), (47, 12, '2.png'), (48, 12, '5.png'), (49, 13, '4.png'), (50, 13, '2.png'), (51, 13, '2.png'), (52, 13, '3.png'), (53, 14, '4.png'), (54, 14, '3.png'), (55, 14, '3.png'), (56, 14, '2.png'), (57, 15, '2.png'), (58, 15, '3.png'), (59, 15, '3.png'), (60, 15, '1.png'); /*!40000 ALTER TABLE `barberphotos` ENABLE KEYS */; -- Copiando estrutura para tabela devbarber.barberreviews CREATE TABLE IF NOT EXISTS `barberreviews` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `id_barber` int(11) NOT NULL, `rate` double(8,2) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Copiando dados para a tabela devbarber.barberreviews: ~0 rows (aproximadamente) DELETE FROM `barberreviews`; /*!40000 ALTER TABLE `barberreviews` DISABLE KEYS */; /*!40000 ALTER TABLE `barberreviews` ENABLE KEYS */; -- Copiando estrutura para tabela devbarber.barbers CREATE TABLE IF NOT EXISTS `barbers` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `avatar` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'default.png', `stars` double(8,2) NOT NULL, `latitude` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `longitude` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Copiando dados para a tabela devbarber.barbers: ~15 rows (aproximadamente) DELETE FROM `barbers`; /*!40000 ALTER TABLE `barbers` DISABLE KEYS */; INSERT INTO `barbers` (`id`, `name`, `avatar`, `stars`, `latitude`, `longitude`) VALUES (1, '<NAME>', '4.png', 4.60, '-23.5630907', '-46.6982795'), (2, '<NAME>', '1.png', 4.30, '-23.5130907', '-46.6382795'), (3, '<NAME>', '1.png', 3.20, '-23.5830907', '-46.6582795'), (4, '<NAME>', '1.png', 4.40, '-23.5330907', '-46.6482795'), (5, '<NAME>', '2.png', 2.40, '-23.5330907', '-46.6382795'), (6, '<NAME>', '3.png', 3.00, '-23.5430907', '-46.6082795'), (7, '<NAME>', '1.png', 4.30, '-23.5830907', '-46.6882795'), (8, '<NAME>', '2.png', 4.80, '-23.5030907', '-46.6382795'), (9, '<NAME>', '4.png', 2.40, '-23.5330907', '-46.6882795'), (10, '<NAME>', '2.png', 3.50, '-23.5230907', '-46.6182795'), (11, '<NAME>', '2.png', 3.60, '-23.5430907', '-46.6382795'), (12, '<NAME>', '1.png', 2.40, '-23.5230907', '-46.6782795'), (13, '<NAME>', '3.png', 4.20, '-23.5230907', '-46.6782795'), (14, '<NAME>', '4.png', 2.90, '-23.5930907', '-46.6582795'), (15, '<NAME>', '4.png', 3.50, '-23.5930907', '-46.6282795'); /*!40000 ALTER TABLE `barbers` ENABLE KEYS */; -- Copiando estrutura para tabela devbarber.barberservices CREATE TABLE IF NOT EXISTS `barberservices` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `id_barber` int(11) NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `price` double(8,2) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=74 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Copiando dados para a tabela devbarber.barberservices: ~73 rows (aproximadamente) DELETE FROM `barberservices`; /*!40000 ALTER TABLE `barberservices` DISABLE KEYS */; INSERT INTO `barberservices` (`id`, `id_barber`, `name`, `price`) VALUES (1, 1, 'Corte de Pernas', 63.91), (2, 1, 'Corte de Unha', 79.46), (3, 1, 'Corte de Sobrancelhas', 31.34), (4, 1, 'Efeite de Unha', 77.44), (5, 1, 'Pintura de Cabelo', 19.33), (6, 2, 'Corte de Pernas', 77.60), (7, 2, 'Aparação de Pernas', 83.76), (8, 2, 'Aparação de Cabelo', 62.38), (9, 2, 'Efeite de Sobrancelhas', 20.54), (10, 2, 'Aparação de Pernas', 40.22), (11, 3, 'Corte de Cabelo', 15.93), (12, 3, 'Corte de Pernas', 20.40), (13, 3, 'Corte de Pernas', 59.38), (14, 3, 'Aparação de Cabelo', 98.25), (15, 3, 'Corte de Pernas', 22.64), (16, 3, 'Efeite de Sobrancelhas', 98.91), (17, 4, 'Aparação de Pernas', 58.49), (18, 4, 'Efeite de Pernas', 95.46), (19, 4, 'Corte de Cabelo', 6.66), (20, 4, 'Aparação de Unha', 21.60), (21, 4, 'Pintura de Sobrancelhas', 71.33), (22, 5, 'Corte de Sobrancelhas', 62.28), (23, 5, 'Corte de Cabelo', 27.46), (24, 5, 'Corte de Cabelo', 82.70), (25, 6, 'Corte de Pernas', 19.53), (26, 6, 'Pintura de Cabelo', 63.14), (27, 6, 'Corte de Unha', 41.42), (28, 6, 'Pintura de Cabelo', 4.10), (29, 6, 'Corte de Unha', 71.26), (30, 7, 'Aparação de Cabelo', 34.10), (31, 7, 'Efeite de Sobrancelhas', 15.75), (32, 7, 'Pintura de Pernas', 37.68), (33, 7, 'Efeite de Unha', 60.37), (34, 7, 'Aparação de Sobrancelhas', 17.78), (35, 7, 'Corte de Pernas', 91.76), (36, 8, 'Corte de Pernas', 30.17), (37, 8, 'Pintura de Sobrancelhas', 53.93), (38, 8, 'Corte de Cabelo', 10.13), (39, 9, 'Aparação de Pernas', 95.44), (40, 9, 'Pintura de Sobrancelhas', 99.56), (41, 9, 'Corte de Sobrancelhas', 39.44), (42, 9, 'Aparação de Unha', 78.35), (43, 9, 'Corte de Pernas', 76.82), (44, 9, 'Corte de Cabelo', 66.59), (45, 10, 'Pintura de Cabelo', 20.30), (46, 10, 'Efeite de Cabelo', 84.88), (47, 10, 'Corte de Sobrancelhas', 38.78), (48, 10, 'Efeite de Pernas', 20.10), (49, 10, '<NAME>', 96.11), (50, 10, 'Corte de Unha', 74.62), (51, 11, '<NAME>', 63.79), (52, 11, '<NAME>', 11.85), (53, 11, 'Aparação de Pernas', 85.26), (54, 11, 'Aparação de Pernas', 90.20), (55, 11, 'Corte de Cabelo', 76.21), (56, 12, '<NAME>', 68.84), (57, 12, 'Corte de Sobrancelhas', 27.25), (58, 12, '<NAME>', 33.76), (59, 12, '<NAME>', 59.83), (60, 12, 'Aparação de Cabelo', 81.22), (61, 13, 'Efeite de Sobrancelhas', 93.10), (62, 13, 'Corte de Unha', 75.94), (63, 13, 'Corte de Unha', 15.39), (64, 13, 'Corte de Sobrancelhas', 47.98), (65, 13, 'Aparação de Sobrancelhas', 19.49), (66, 14, 'Efeite de Sobrancelhas', 71.52), (67, 14, 'Aparação de Pernas', 9.92), (68, 14, 'Efeite de Cabelo', 47.80), (69, 14, 'Pintura de Sobrancelhas', 88.56), (70, 15, 'Aparação de Cabelo', 6.95), (71, 15, 'Corte de Unha', 70.71), (72, 15, 'Pintura de Unha', 17.70), (73, 15, 'Corte de Unha', 56.48); /*!40000 ALTER TABLE `barberservices` ENABLE KEYS */; -- Copiando estrutura para tabela devbarber.barbertestimonials CREATE TABLE IF NOT EXISTS `barbertestimonials` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `id_barber` int(11) NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `rate` double(8,2) NOT NULL, `body` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Copiando dados para a tabela devbarber.barbertestimonials: ~45 rows (aproximadamente) DELETE FROM `barbertestimonials`; /*!40000 ALTER TABLE `barbertestimonials` DISABLE KEYS */; INSERT INTO `barbertestimonials` (`id`, `id_barber`, `name`, `rate`, `body`) VALUES (1, 1, '<NAME>', 2.70, 'Gostaria de enfatizar que a estrutura atual da organização possibilita uma melhor visão global dos paradigmas corporativos.'), (2, 1, '<NAME>', 2.40, 'Todas estas questões, devidamente ponderadas, levantam dúvidas sobre se o desafiador cenário globalizado obstaculiza a apreciação da importância das condições inegavelmente apropriadas.'), (3, 1, '<NAME>', 2.70, 'Gostaria de enfatizar que a estrutura atual da organização possibilita uma melhor visão global dos paradigmas corporativos.'), (4, 2, '<NAME>', 4.70, 'Gostaria de enfatizar que a estrutura atual da organização possibilita uma melhor visão global dos paradigmas corporativos.'), (5, 2, '<NAME>', 2.60, 'Podemos já vislumbrar o modo pelo qual a estrutura atual da organização faz parte de um processo de gerenciamento do fluxo de informações.'), (6, 2, '<NAME>', 2.10, 'Gostaria de enfatizar que a estrutura atual da organização possibilita uma melhor visão global dos paradigmas corporativos.'), (7, 3, '<NAME>', 4.70, 'As experiências acumuladas demonstram que a revolução dos costumes maximiza as possibilidades por conta do impacto na agilidade decisória.'), (8, 3, '<NAME>', 3.10, 'Podemos já vislumbrar o modo pelo qual a estrutura atual da organização faz parte de um processo de gerenciamento do fluxo de informações.'), (9, 3, '<NAME>', 2.80, 'Gostaria de enfatizar que a estrutura atual da organização possibilita uma melhor visão global dos paradigmas corporativos.'), (10, 4, '<NAME>', 3.00, 'As experiências acumuladas demonstram que a revolução dos costumes maximiza as possibilidades por conta do impacto na agilidade decisória.'), (11, 4, '<NAME>', 2.20, 'Assim mesmo, o desenvolvimento contínuo de distintas formas de atuação talvez venha a ressaltar a relatividade dos conhecimentos estratégicos para atingir a excelência.'), (12, 4, '<NAME>', 3.00, 'Assim mesmo, o desenvolvimento contínuo de distintas formas de atuação talvez venha a ressaltar a relatividade dos conhecimentos estratégicos para atingir a excelência.'), (13, 5, '<NAME>', 3.00, 'Podemos já vislumbrar o modo pelo qual a estrutura atual da organização faz parte de um processo de gerenciamento do fluxo de informações.'), (14, 5, '<NAME>', 3.60, 'As experiências acumuladas demonstram que a revolução dos costumes maximiza as possibilidades por conta do impacto na agilidade decisória.'), (15, 5, '<NAME>', 3.10, 'Gostaria de enfatizar que a estrutura atual da organização possibilita uma melhor visão global dos paradigmas corporativos.'), (16, 6, '<NAME>', 3.10, 'Podemos já vislumbrar o modo pelo qual a estrutura atual da organização faz parte de um processo de gerenciamento do fluxo de informações.'), (17, 6, '<NAME>', 4.20, 'Gostaria de enfatizar que a estrutura atual da organização possibilita uma melhor visão global dos paradigmas corporativos.'), (18, 6, '<NAME>', 3.10, 'As experiências acumuladas demonstram que a revolução dos costumes maximiza as possibilidades por conta do impacto na agilidade decisória.'), (19, 7, '<NAME>', 4.10, 'Gostaria de enfatizar que a estrutura atual da organização possibilita uma melhor visão global dos paradigmas corporativos.'), (20, 7, '<NAME>', 3.00, 'Assim mesmo, o desenvolvimento contínuo de distintas formas de atuação talvez venha a ressaltar a relatividade dos conhecimentos estratégicos para atingir a excelência.'), (21, 7, '<NAME>', 2.70, 'Todas estas questões, devidamente ponderadas, levantam dúvidas sobre se o desafiador cenário globalizado obstaculiza a apreciação da importância das condições inegavelmente apropriadas.'), (22, 8, '<NAME>', 3.50, 'Todas estas questões, devidamente ponderadas, levantam dúvidas sobre se o desafiador cenário globalizado obstaculiza a apreciação da importância das condições inegavelmente apropriadas.'), (23, 8, '<NAME>', 3.70, 'As experiências acumuladas demonstram que a revolução dos costumes maximiza as possibilidades por conta do impacto na agilidade decisória.'), (24, 8, '<NAME>', 2.50, 'Todas estas questões, devidamente ponderadas, levantam dúvidas sobre se o desafiador cenário globalizado obstaculiza a apreciação da importância das condições inegavelmente apropriadas.'), (25, 9, '<NAME>', 3.20, 'Gostaria de enfatizar que a estrutura atual da organização possibilita uma melhor visão global dos paradigmas corporativos.'), (26, 9, '<NAME>', 2.00, 'Podemos já vislumbrar o modo pelo qual a estrutura atual da organização faz parte de um processo de gerenciamento do fluxo de informações.'), (27, 9, '<NAME>', 2.30, 'Assim mesmo, o desenvolvimento contínuo de distintas formas de atuação talvez venha a ressaltar a relatividade dos conhecimentos estratégicos para atingir a excelência.'), (28, 10, '<NAME>', 2.80, 'Podemos já vislumbrar o modo pelo qual a estrutura atual da organização faz parte de um processo de gerenciamento do fluxo de informações.'), (29, 10, '<NAME>', 2.50, 'Podemos já vislumbrar o modo pelo qual a estrutura atual da organização faz parte de um processo de gerenciamento do fluxo de informações.'), (30, 10, '<NAME>', 2.70, 'Assim mesmo, o desenvolvimento contínuo de distintas formas de atuação talvez venha a ressaltar a relatividade dos conhecimentos estratégicos para atingir a excelência.'), (31, 11, '<NAME>', 2.30, 'Todas estas questões, devidamente ponderadas, levantam dúvidas sobre se o desafiador cenário globalizado obstaculiza a apreciação da importância das condições inegavelmente apropriadas.'), (32, 11, '<NAME>', 3.40, 'Gostaria de enfatizar que a estrutura atual da organização possibilita uma melhor visão global dos paradigmas corporativos.'), (33, 11, '<NAME>', 4.50, 'Podemos já vislumbrar o modo pelo qual a estrutura atual da organização faz parte de um processo de gerenciamento do fluxo de informações.'), (34, 12, '<NAME>', 4.50, 'Gostaria de enfatizar que a estrutura atual da organização possibilita uma melhor visão global dos paradigmas corporativos.'), (35, 12, '<NAME>', 4.30, 'Assim mesmo, o desenvolvimento contínuo de distintas formas de atuação talvez venha a ressaltar a relatividade dos conhecimentos estratégicos para atingir a excelência.'), (36, 12, '<NAME>', 4.10, 'Podemos já vislumbrar o modo pelo qual a estrutura atual da organização faz parte de um processo de gerenciamento do fluxo de informações.'), (37, 13, '<NAME>', 2.10, 'Todas estas questões, devidamente ponderadas, levantam dúvidas sobre se o desafiador cenário globalizado obstaculiza a apreciação da importância das condições inegavelmente apropriadas.'), (38, 13, '<NAME>', 2.30, 'Todas estas questões, devidamente ponderadas, levantam dúvidas sobre se o desafiador cenário globalizado obstaculiza a apreciação da importância das condições inegavelmente apropriadas.'), (39, 13, '<NAME>', 2.00, 'As experiências acumuladas demonstram que a revolução dos costumes maximiza as possibilidades por conta do impacto na agilidade decisória.'), (40, 14, '<NAME>', 3.80, 'Podemos já vislumbrar o modo pelo qual a estrutura atual da organização faz parte de um processo de gerenciamento do fluxo de informações.'), (41, 14, '<NAME>', 3.50, 'Gostaria de enfatizar que a estrutura atual da organização possibilita uma melhor visão global dos paradigmas corporativos.'), (42, 14, '<NAME>', 4.70, 'Gostaria de enfatizar que a estrutura atual da organização possibilita uma melhor visão global dos paradigmas corporativos.'), (43, 15, '<NAME>', 3.60, 'Todas estas questões, devidamente ponderadas, levantam dúvidas sobre se o desafiador cenário globalizado obstaculiza a apreciação da importância das condições inegavelmente apropriadas.'), (44, 15, '<NAME>', 2.50, 'Podemos já vislumbrar o modo pelo qual a estrutura atual da organização faz parte de um processo de gerenciamento do fluxo de informações.'), (45, 15, '<NAME>', 4.30, 'Todas estas questões, devidamente ponderadas, levantam dúvidas sobre se o desafiador cenário globalizado obstaculiza a apreciação da importância das condições inegavelmente apropriadas.'); /*!40000 ALTER TABLE `barbertestimonials` ENABLE KEYS */; -- Copiando estrutura para tabela devbarber.migrations CREATE TABLE IF NOT EXISTS `migrations` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Copiando dados para a tabela devbarber.migrations: ~2 rows (aproximadamente) DELETE FROM `migrations`; /*!40000 ALTER TABLE `migrations` DISABLE KEYS */; INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2019_12_14_000001_create_personal_access_tokens_table', 1), (2, '2021_09_18_154815_create_all_tables', 1), (3, '2021_09_20_182133_alter_appointment_table', 1); /*!40000 ALTER TABLE `migrations` ENABLE KEYS */; -- Copiando estrutura para tabela devbarber.personal_access_tokens CREATE TABLE IF NOT EXISTS `personal_access_tokens` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `tokenable_id` bigint(20) unsigned NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, `abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `last_used_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `personal_access_tokens_token_unique` (`token`), KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Copiando dados para a tabela devbarber.personal_access_tokens: ~0 rows (aproximadamente) DELETE FROM `personal_access_tokens`; /*!40000 ALTER TABLE `personal_access_tokens` DISABLE KEYS */; /*!40000 ALTER TABLE `personal_access_tokens` ENABLE KEYS */; -- Copiando estrutura para tabela devbarber.userappointments CREATE TABLE IF NOT EXISTS `userappointments` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `id_user` int(11) NOT NULL, `id_barber` int(11) NOT NULL, `id_service` int(11) NOT NULL, `ap_datetime` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Copiando dados para a tabela devbarber.userappointments: ~2 rows (aproximadamente) DELETE FROM `userappointments`; /*!40000 ALTER TABLE `userappointments` DISABLE KEYS */; INSERT INTO `userappointments` (`id`, `id_user`, `id_barber`, `id_service`, `ap_datetime`) VALUES (1, 1, 1, 4, '2021-09-26 09:00:00'), (2, 1, 1, 4, '2021-09-26 10:00:00'); /*!40000 ALTER TABLE `userappointments` ENABLE KEYS */; -- Copiando estrutura para tabela devbarber.userfavorites CREATE TABLE IF NOT EXISTS `userfavorites` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `id_user` int(11) NOT NULL, `id_barber` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Copiando dados para a tabela devbarber.userfavorites: ~2 rows (aproximadamente) DELETE FROM `userfavorites`; /*!40000 ALTER TABLE `userfavorites` DISABLE KEYS */; INSERT INTO `userfavorites` (`id`, `id_user`, `id_barber`) VALUES (3, 1, 14), (4, 1, 10), (5, 1, 1); /*!40000 ALTER TABLE `userfavorites` ENABLE KEYS */; -- Copiando estrutura para tabela devbarber.users CREATE TABLE IF NOT EXISTS `users` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `avatar` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'default.png', `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `users_email_unique` (`email`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Copiando dados para a tabela devbarber.users: ~1 rows (aproximadamente) DELETE FROM `users`; /*!40000 ALTER TABLE `users` DISABLE KEYS */; INSERT INTO `users` (`id`, `name`, `avatar`, `email`, `password`) VALUES (1, '<NAME>', '<PASSWORD>.jpg', '<EMAIL>', <PASSWORD>'); /*!40000 ALTER TABLE `users` ENABLE KEYS */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;
/* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.5.5-10.1.21-MariaDB : Database - mine_craft_mods ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!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 */; CREATE DATABASE /*!32312 IF NOT EXISTS*/`mine_craft_mods` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `mine_craft_mods`; /*Table structure for table `account` */ DROP TABLE IF EXISTS `account`; CREATE TABLE `account` ( `account_id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(50) NOT NULL, `password` text NOT NULL, PRIMARY KEY (`account_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; /*Data for the table `account` */ insert into `account`(`account_id`,`username`,`password`) values (1,'khoavin','<PASSWORD>'); /*Table structure for table `category` */ DROP TABLE IF EXISTS `category`; CREATE TABLE `category` ( `category_id` int(11) NOT NULL AUTO_INCREMENT, `category_name` varchar(40) NOT NULL, PRIMARY KEY (`category_id`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1; /*Data for the table `category` */ insert into `category`(`category_id`,`category_name`) values (1,'Adventure'),(2,'Creation'),(3,'CTM'),(4,'Custom Terrain'),(5,'MiniGame'),(6,'Parkour'),(7,'Puzzle'),(8,'PvP'),(9,'RedStone'),(10,'RollerCoaster'),(11,'Survival'); /*Table structure for table `error_code` */ DROP TABLE IF EXISTS `error_code`; CREATE TABLE `error_code` ( `response_code` varchar(20) DEFAULT NULL, `meaning` text ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*Data for the table `error_code` */ insert into `error_code`(`response_code`,`meaning`) values ('200','Success!'),('201','Duplicate Insert Row'),('202','Unlike Success!'),('203','Like Success!'),('204','\r\nLogin success!'),('205','Login Failed!'),('206','Exist Item!'),('207','SQL Exception!'),('208','Item was verified!'),('209','Upload item was verified or not exist!'); /*Table structure for table `html_content` */ DROP TABLE IF EXISTS `html_content`; CREATE TABLE `html_content` ( `html_content_id` int(11) NOT NULL AUTO_INCREMENT, `html_content` text NOT NULL, PRIMARY KEY (`html_content_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; /*Data for the table `html_content` */ insert into `html_content`(`html_content_id`,`html_content`) values (1,'&lt;p&gt;My Title&lt;/p&gt;\n&lt;p&gt;&amp;nbsp;&lt;/p&gt;\n&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot; /&gt; \n&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.jqueryscript.net/images/Minimalist-Image-Viewer-Lightbox-Plugin-with-jQuery.jpg&quot; style=&quot;height:221px; width:300px&quot; /&gt;&lt;/p&gt;\n&lt;p&gt;&lt;iframe frameborder=&quot;0&quot; height=&quot;200&quot; src=&quot;https://www.youtube.com/embed/HQFk0pEq2bI&quot; width=&quot;300&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;\n&lt;p&gt;&amp;nbsp;&lt;/p&gt;\n'); /*Table structure for table `item` */ DROP TABLE IF EXISTS `item`; CREATE TABLE `item` ( `item_id` int(11) NOT NULL AUTO_INCREMENT, `type_id` int(11) DEFAULT NULL, `category_id` int(11) DEFAULT NULL, `item_name` varchar(50) NOT NULL, `file_url` text NOT NULL, `image_url` text NOT NULL, `thumb_url` text NOT NULL, `author_name` varchar(100) NOT NULL, `version` varchar(30) DEFAULT NULL, `size` varchar(20) DEFAULT NULL, `description` text NOT NULL, `short_description` text NOT NULL, `hot_priority` int(11) NOT NULL, `download_count` int(11) NOT NULL, `video_code` varchar(20) NOT NULL, `is_verify` tinyint(1) DEFAULT NULL, `create_time` datetime DEFAULT NULL, PRIMARY KEY (`item_id`), KEY `category_id` (`category_id`), KEY `type_id` (`type_id`), CONSTRAINT `item_ibfk_2` FOREIGN KEY (`category_id`) REFERENCES `category` (`category_id`), CONSTRAINT `item_ibfk_3` FOREIGN KEY (`type_id`) REFERENCES `item_type` (`type_id`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8; /*Data for the table `item` */ insert into `item`(`item_id`,`type_id`,`category_id`,`item_name`,`file_url`,`image_url`,`thumb_url`,`author_name`,`version`,`size`,`description`,`short_description`,`hot_priority`,`download_count`,`video_code`,`is_verify`,`create_time`) values (1,1,2,'Mine-Trucks Addon','http://azminecraftskins.com/mcpe/mcpemods/files/MineTrucks.addon','https://dl.dropboxusercontent.com/u/26776365/mcpemods/thumbs/MineTrucks.jpg','https://dl.dropboxusercontent.com/u/26776365/mcpemods/thumbs/MineTrucks.jpg','MattH44','1.0.6',NULL,'Recently an evil villager decided to overthrow your kingdom and proclaim himself as king. This obviously comes as bitter news and its up to you to take back what was once yours and reinstate yourself as king. Its a fun map where you need to search for clues to find the tools youll need to save the kingdom.\\\\nStoryline\\\\nYouve long ruled your kingdom but recently someone overthrew you! He is an evil man and your people is now being ruled by a complete maniac. You need to find a way to destroy him and take back your lost kingdom. To do this youll need a couple of different tools','Recently an evil villager decided to overthrow your kingdom and proclaim himself as king. This obviously comes as bitter news and its up to you to take back what was once yours and reinstate yourself as king. Its a fun map where you need to search for clues to find the tools youll need to save the kingdom.',4,1019,'',0,'2017-04-20 13:27:33'),(2,2,1,'Pocket Creatures Mod','http://azminecraftskins.com/mcpe/mcpemods/files/PocketCreaturesMod.zip','https://dl.dropboxusercontent.com/u/26776365/mcpemods/thumbs/PocketCreaturesMod.jpg','https://dl.dropboxusercontent.com/u/26776365/mcpemods/thumbs/PocketCreaturesMod.jpg','BlockMaster_203','1.0.6',NULL,'Thorpe Park is a theme park in England which now has been recreated in Minecraft Pocket Edition. There are more than 40 different attractions (and that includes everything from roller coasters to water rides). However, it should be noticed that its not a 1:1 scale recreation and some attractions have been moved or changed to make everything fit nicely together.','Thorpe Park is a theme park in England which now has been recreated in Minecraft Pocket Edition.',3,1026,'',0,'2017-04-20 13:29:44'),(3,3,1,'Castle Adventure','http://azminecraftskins.com/mcpe/mcpemaps/files/adventure/CastleAdventureV2.zip','https://dl.dropboxusercontent.com/u/26776365/mcpemaps/images/adventure/CastleAdventureV2.jpg','https://dl.dropboxusercontent.com/u/26776365/mcpemaps/thumbs/adventure/CastleAdventureV2.jpg','MattH44','1.0.6',NULL,'Recently an evil villager decided to overthrow your kingdom and proclaim himself as king. This obviously comes as bitter news and its up to you to take back what was once yours and reinstate yourself as king. Its a fun map where you need to search for clues to find the tools youll need to save the kingdom.\\\\nStoryline\\\\nYouve long ruled your kingdom but recently someone overthrew you! He is an evil man and your people is now being ruled by a complete maniac. You need to find a way to destroy him and take back your lost kingdom. To do this youll need a couple of different tools','Recently an evil villager decided to overthrow your kingdom and proclaim himself as king. This obviously comes as bitter news and its up to you to take back what was once yours and reinstate yourself as king. Its a fun map where you need to search for clues to find the tools youll need to save the kingdom.',4,1006,'',0,'2017-04-21 12:02:03'),(6,6,NULL,'Too Many Temples (And More)','http://azminecraftskins.com/mcpe/mcpeseeds/files/TooManyTemples.zip','http://azminecraftskins.com/mcpe/mcpeseeds/images/TooManyTemples.jpg','http://azminecraftskins.com/mcpe/mcpeseeds/thumbs/TooManyTemples.jpg','','','920847948','In this seed you will find yourself spawning very close to three different temples. And just within minutes of spawning you will be able to collect almost fifty gold and iron ingots! Besides the temples we will also show you how to find a village and two witch huts.\nIn front of spawn is the first temple. To find the treasures destroy the colored blocks in the center and drop down there. Avoid the pressure plate as it will trigger a deadly TNT trap. In total there are four chests.\n19 bones\n18 iron ingots\n19 gold ingots\n33 rotten flesh\nTo find the two other temples return to the spawn but this time walk in the opposite direction (just turn around) and you will find them.\n12 gold ingots\n9 iron ingots\n3 diamonds\n34 bones\n22 rotten flesh\nIn front of the temples is a river. Follow the river to the left and after a while take a turn to the left as seen in the images down below.\nPretty soon you will find a little village.\nContinue straight out into the swamp biome for a while to find the first witch hut.\nFollow the path of the water in the swamp biome to get to the second witch hut.','In this seed you will find yourself spawning very close to three different temples. And just within minutes of spawning you will be able to collect almost fifty gold and iron ingots! Besides the temples we will also show you how to find a village and two witch huts.',1,457,'',0,'2017-04-01 00:00:00'),(7,4,NULL,'Strong Gladiator','http://azminecraftskins.com/mcpe/mcpeskins/files/fantasy/StrongGladiator.png','http://azminecraftskins.com/mcpe/mcpeskins/images/fantasy/StrongGladiator.jpg','http://azminecraftskins.com/mcpe/mcpeskins/thumbs/fantasy/StrongGladiator.jpg','Irish','','','A Roman champion fighting in the gladiator games.','',1,126,'',0,'2017-04-01 00:00:00'),(8,5,1,'2101: A Minecraft Odyssey','http://azminecraftskins.com/mcpe/mcpetextures/files/2101AMinecraftOdyssey.zip','http://azminecraftskins.com/mcpe/mcpetextures/images/2101AMinecraftOdyssey.jpg','http://azminecraftskins.com/mcpe/mcpetextures/thumbs/2101AMinecraftOdyssey.jpg','keithross39','1.0.6','32x32','Creator: Mediocritus (original PC pack). This texture pack includes textures which are considered modern and futuristic. The creators main inspiration while designing the texture pack was 2001: A Space Odyssey which is a classic sci-fi movie from the 60s. Its a really useful texture pack if you are building a space station or anything similar which relates to space or the future in general.','This texture pack includes textures which are considered modern and futuristic.',1,12,'',0,'2017-04-01 00:00:00'),(9,1,NULL,'2101: A Minecraft Odyssey','http://azminecraftskins.com/mcpe/mcpetextures/files/2101AMinecraftOdyssey.zip','http://azminecraftskins.com/mcpe/mcpetextures/images/2101AMinecraftOdyssey.jpg','http://azminecraftskins.com/mcpe/mcpetextures/images/2101AMinecraftOdyssey.jpg','keithross39','1.0.6','32x32','Creator: Mediocritus (original PC pack). This texture pack includes textures which are considered modern and futuristic. The creators main inspiration while designing the texture pack was 2001: A Space Odyssey which is a classic sci-fi movie from the 60s. Its a really useful texture pack if you are building a space station or anything similar which relates to space or the future in general.','',0,2001,'',0,'2017-04-21 17:07:46'),(10,1,NULL,'Too Many Temples (And More)','http://azminecraftskins.com/mcpe/mcpemods/files/MineTrucks.addon','https://dl.dropboxusercontent.com/u/26776365/mcpemods/thumbs/MineTrucks.jpg','https://dl.dropboxusercontent.com/u/26776365/mcpemods/thumbs/MineTrucks.jpg','',NULL,NULL,'Recently an evil villager decided to overthrow your kingdom and proclaim himself as king. This obviously comes as bitter news and its up to you to take back what was once yours and reinstate yourself as king. Its a fun map where you need to search for clues to find the tools youll need to save the kingdom.\\\\nStoryline\\\\nYouve long ruled your kingdom but recently someone overthrew you! He is an evil man and your people is now being ruled by a complete maniac. You need to find a way to destroy him and take back your lost kingdom. To do this youll need a couple of different tools','Recently an evil villager decided to overthrow your kingdom and proclaim himself as king. This obviously comes as bitter news and its up to you to take back what was once yours and reinstate yourself as king. Its a fun map where you need to search for clues to find the tools youll need to save the kingdom.',4,399,'',NULL,'2017-04-21 17:17:03'); /*Table structure for table `item_comment` */ DROP TABLE IF EXISTS `item_comment`; CREATE TABLE `item_comment` ( `comment_id` int(11) NOT NULL AUTO_INCREMENT, `item_id` varchar(100) NOT NULL, `user_id` varchar(50) NOT NULL, `comment_message` text NOT NULL, `create_time` datetime NOT NULL, `like_count` int(11) NOT NULL, PRIMARY KEY (`comment_id`) ) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=latin1; /*Data for the table `item_comment` */ insert into `item_comment`(`comment_id`,`item_id`,`user_id`,`comment_message`,`create_time`,`like_count`) values (2,'1','1','gasgsafasf','2017-04-19 13:43:37',100),(3,'1','1','Greate Job!','2017-04-21 09:28:29',34),(4,'1','1','hehela','2017-04-21 10:42:31',0),(5,'1','1','hehela','2017-04-21 10:59:35',0),(6,'1','1','aksdhasnd.asdkjasd','2017-04-21 10:59:56',0),(7,'1','1','aksdhasnd.asdkjasd','2017-04-21 11:05:17',0),(8,'1','1','aksdhasnd.asdkjasd','2017-04-21 13:06:11',0),(9,'1','1','aksdhasnd.asdkjasd','2017-04-21 13:06:13',0),(10,'1','1','sdfdsfdsfsdfds','2017-04-21 13:23:23',0),(11,'1','1','Hello','2017-04-21 13:25:36',0),(12,'1','1','´dasdas','2017-04-21 13:27:35',0),(13,'1','1','´dasd´dasd','2017-04-21 13:27:44',0),(14,'1','1','´dasdasdasdasdasd','2017-04-21 13:27:48',0),(15,'1','1','sdfdsfdsfdsfdsf','2017-04-21 13:28:56',0),(16,'1','1','22222','2017-04-21 15:09:57',0),(17,'1','1','22222','2017-04-21 15:32:17',0),(18,'8','1','hgfhghgf','2017-04-24 09:12:33',0),(19,'2','1','fghgfhgfh','2017-04-24 09:13:52',0),(20,'3','1','dsfdsfdsfds','2017-04-24 09:17:43',0),(21,'2','1','asdsadsad','2017-04-24 09:21:27',0),(22,'2','1','sadsadsa','2017-04-24 09:21:29',0),(23,'1','1','dfdsfdsfdsf','2017-04-25 15:07:32',0),(24,'10','1','hjkhjkjhkhj','2017-04-25 15:44:14',0),(25,'10','1','xcvxcvxcv','2017-04-25 16:06:19',0),(26,'10','1','cvbvcbcvb','2017-04-25 16:07:04',0),(27,'3','1','fa','2017-04-26 11:18:26',0),(28,'10','1','o000000','2017-04-26 13:27:00',0),(29,'1','1','bnmbnmbn','2017-04-26 13:27:24',0),(30,'1','1','ghjhgjghj','2017-04-26 13:31:20',0),(31,'1','1','jghj','2017-04-26 13:34:46',0),(32,'1','1','vbbvbcvb','2017-04-26 13:35:32',0),(33,'1','1','cvbcvbcvbcv','2017-04-26 13:35:37',0),(34,'1','1','ghhfgh','2017-04-26 13:37:34',0),(35,'1','1','fghgfhgfh','2017-04-26 13:37:36',0),(36,'1','1','fghgfhgfh','2017-04-26 13:37:38',0),(37,'1','1','gfhgfh','2017-04-26 13:37:38',0),(38,'1','1','gfhgf','2017-04-26 13:37:39',0),(39,'1','1','h','2017-04-26 13:37:39',0),(40,'1','1','hgf','2017-04-26 13:37:40',0),(41,'1','1','fhgf','2017-04-26 13:37:40',0),(42,'1','1','gfhgfhgfhgfh','2017-04-26 13:37:58',0),(43,'1','1','f','2017-04-26 13:37:58',0),(44,'1','1','hf','2017-04-26 13:37:58',0),(45,'1','1','g','2017-04-26 13:37:58',0),(46,'1','1','gf','2017-04-26 13:37:59',0),(47,'1','1','hgfhg','2017-04-26 13:37:59',0),(48,'1','1','hgfhg','2017-04-26 13:38:00',0),(49,'1','1','fgfh','2017-04-26 13:38:00',0),(50,'1','1','hgf','2017-04-26 13:38:00',0),(51,'1','1','gfh','2017-04-26 13:38:01',0),(52,'1','1','gf','2017-04-26 13:38:01',0),(53,'1','1','hgf','2017-04-26 13:38:01',0),(54,'1','1','gf','2017-04-26 13:38:01',0),(55,'1','1','gf','2017-04-26 13:38:02',0),(56,'1','1','gfh','2017-04-26 13:38:02',0),(57,'1','1','gh','2017-04-26 13:38:03',0),(58,'1','1','hgf','2017-04-26 13:38:03',0),(59,'1','1','hgf','2017-04-26 13:38:03',0),(60,'1','1','hgf','2017-04-26 13:38:04',0),(61,'1','1','g','2017-04-26 13:38:04',0),(62,'1','1','h','2017-04-26 13:38:04',0),(63,'1','1','f','2017-04-26 13:38:04',0),(64,'1','1','hf','2017-04-26 13:38:05',0),(65,'1','1','h','2017-04-26 13:38:05',0),(66,'1','1','ghg','2017-04-26 13:38:05',0),(67,'1','1','hgf','2017-04-26 13:38:06',0),(68,'1','1','h','2017-04-26 13:38:06',0),(69,'1','1','fh','2017-04-26 13:38:06',0),(70,'1','1','f','2017-04-26 13:38:06',0),(71,'1','1','hfg','2017-04-26 13:38:07',0),(72,'1','1','fghfg','2017-04-26 13:38:07',0),(73,'1','1','gf','2017-04-26 13:38:08',0),(74,'1','1','hfg','2017-04-26 13:38:08',0),(75,'1','1','gfh','2017-04-26 13:38:08',0),(76,'1','1','gf','2017-04-26 13:38:09',0),(77,'1','1','gfh','2017-04-26 13:38:09',0),(78,'1','1','gf','2017-04-26 13:38:10',0),(79,'1','1','gfh','2017-04-26 13:38:10',0),(80,'1','1','hgfh','2017-04-26 13:38:10',0),(81,'1','1','f','2017-04-26 13:38:11',0),(82,'1','1','gfhgfhgfh','2017-04-26 13:38:35',0),(83,'1','1','gh','2017-04-26 13:38:35',0),(84,'1','1','hgfhf','2017-04-26 13:38:36',0),(85,'1','1','hh','2017-04-26 13:38:36',0),(86,'1','1','fh','2017-04-26 13:38:36',0),(87,'1','1','gf','2017-04-26 13:38:36',0),(88,'1','1','gfh','2017-04-26 13:38:37',0),(89,'1','1','hgf','2017-04-26 13:38:37',0),(90,'1','1','gfhg','2017-04-26 13:38:37',0),(91,'1','1','h','2017-04-26 13:38:38',0),(92,'1','1','h','2017-04-26 13:38:38',0),(93,'1','1','gfh','2017-04-26 13:38:38',0),(94,'1','1','fgf','2017-04-26 13:38:39',0),(95,'1','1','dfgdfgdfg','2017-04-26 13:51:04',0),(96,'1','1','dfgdfgfdg','2017-04-26 13:51:09',0); /*Table structure for table `item_type` */ DROP TABLE IF EXISTS `item_type`; CREATE TABLE `item_type` ( `type_id` int(11) NOT NULL AUTO_INCREMENT, `type_name` varchar(40) NOT NULL, PRIMARY KEY (`type_id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; /*Data for the table `item_type` */ insert into `item_type`(`type_id`,`type_name`) values (1,'AddOn'),(2,'Mod'),(3,'Map'),(4,'Skin'),(5,'Texture'),(6,'Seed'); /*Table structure for table `like` */ DROP TABLE IF EXISTS `like`; CREATE TABLE `like` ( `like_id` int(11) NOT NULL AUTO_INCREMENT, `comment_id` int(11) NOT NULL, `user_id` varchar(50) NOT NULL, PRIMARY KEY (`like_id`) ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=latin1; /*Data for the table `like` */ insert into `like`(`like_id`,`comment_id`,`user_id`) values (1,1,'1'),(2,1,'1'),(3,1,'1'),(4,1,'1'),(5,1,'1'),(7,1,'2'),(21,2,'1'),(23,3,'1'),(24,20,'1'),(25,1,'1'),(26,1,'2'); /*Table structure for table `news` */ DROP TABLE IF EXISTS `news`; CREATE TABLE `news` ( `news_id` int(11) NOT NULL AUTO_INCREMENT, `news_title` text NOT NULL, `news_thumb_url` text NOT NULL, `news_content_id` int(11) NOT NULL, `news_create_at` datetime DEFAULT NULL, PRIMARY KEY (`news_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; /*Data for the table `news` */ insert into `news`(`news_id`,`news_title`,`news_thumb_url`,`news_content_id`,`news_create_at`) values (1,'My Title','http://www.gettyimages.in/gi-resources/images/Homepage/Hero/US/MAR2016/prestige-587705839_full.jpg',1,'2017-04-23 10:28:57'),(2,'Haha','http://beebom.com/wp-content/uploads/2016/01/Reverse-Image-Search-Engines-Apps-And-Its-Uses-2016.jpg',1,'2017-04-24 10:29:01'),(3,'Keke','http://1.bp.blogspot.com/-SzGp9N3s138/UzBFiIOyonI/AAAAAAAAKkE/YzOOFiW61DI/s1600/Beautiful+Indian+Girls+Wallpapers+for+Desktop+Image+12.jpg',1,'2017-04-21 10:29:04'); /*Table structure for table `news_comment` */ DROP TABLE IF EXISTS `news_comment`; CREATE TABLE `news_comment` ( `comment_id` int(11) NOT NULL AUTO_INCREMENT, `news_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `comment_message` text NOT NULL, `create_time` datetime DEFAULT NULL, `like_count` int(11) DEFAULT NULL, PRIMARY KEY (`comment_id`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1; /*Data for the table `news_comment` */ insert into `news_comment`(`comment_id`,`news_id`,`user_id`,`comment_message`,`create_time`,`like_count`) values (1,0,1,'hahahassiss','2017-04-24 13:28:34',NULL),(2,0,1,'hahahassiss','2017-04-24 13:28:40',NULL),(3,1,1,'hahahassiss','2017-04-24 13:32:41',NULL),(4,1,1,'hahahassiss','2017-04-24 13:39:32',NULL),(5,1,1,'hahahassiss','2017-04-24 13:39:34',NULL),(6,1,1,'hahahassiss','2017-04-24 13:39:34',NULL),(7,1,1,'hahahassiss','2017-04-24 13:39:34',NULL),(8,1,1,'hahahassiss','2017-04-24 13:39:35',NULL),(9,3,1,'Hello','2017-04-24 13:48:08',NULL),(10,2,1,'ttdd','2017-04-25 10:05:51',NULL),(11,2,1,'ddd','2017-04-25 10:05:54',NULL),(12,2,1,'daa','2017-04-25 10:06:05',NULL),(13,1,1,'xcvxcvxcv','2017-04-25 15:50:06',NULL),(14,2,1,'dsfdsfdsf','2017-04-26 13:51:20',NULL),(15,2,1,'sdfdfdsf','2017-04-26 13:51:22',NULL),(16,2,1,'kjjklj','2017-04-26 13:52:59',NULL); /*Table structure for table `upload_item` */ DROP TABLE IF EXISTS `upload_item`; CREATE TABLE `upload_item` ( `item_id` int(11) NOT NULL AUTO_INCREMENT, `type_id` int(11) NOT NULL, `category_id` int(11) NOT NULL, `item_name` varchar(50) NOT NULL, `file_url` text, `image_url` text, `thumb_url` text, `author_name` text, `version` varchar(30) DEFAULT NULL, `size` varchar(20) DEFAULT NULL, `description` text, `short_description` text, `hot_priority` int(11) DEFAULT NULL, `download_count` int(11) DEFAULT NULL, `video_code` varchar(20) DEFAULT NULL, `is_verify` int(11) DEFAULT NULL, `create_time` datetime DEFAULT NULL, PRIMARY KEY (`item_id`) ) ENGINE=InnoDB AUTO_INCREMENT=92 DEFAULT CHARSET=latin1; /*Data for the table `upload_item` */ insert into `upload_item`(`item_id`,`type_id`,`category_id`,`item_name`,`file_url`,`image_url`,`thumb_url`,`author_name`,`version`,`size`,`description`,`short_description`,`hot_priority`,`download_count`,`video_code`,`is_verify`,`create_time`) values (87,5,1,'adsadsgg','http://azminecraftskins.com/mcpe/mcpemods/adsadsgg.zip','http://azminecraftskins.com/mcpe/mcpemods/adsadsgg.jpg','http://azminecraftskins.com/mcpe/mcpemods/adsadsgg.jpg','asdads','asdads','asdasd','asdasdadwd','asdasd',0,0,'asdads',0,'2017-04-26 17:45:16'),(90,5,1,'755','http://azminecraftskins.com/mcpe/mcpemods/755.zip','http://azminecraftskins.com/mcpe/mcpemods/755.jpg','http://azminecraftskins.com/mcpe/mcpemods/755.jpg','asdads','asdads','asdasd','asdasdadwd','asdasd',0,0,'asdads',0,'2017-04-26 17:48:26'),(91,3,1,'adsads','http://azminecraftskins.com/mcpe/mcpemods/adsads.zip','http://azminecraftskins.com/mcpe/mcpemods/adsads.jpg','http://azminecraftskins.com/mcpe/mcpemods/adsads.jpg','asdads','asdads','asdasd','asdasdadwd','asdasd',0,0,'asdads',0,'2017-04-26 17:50:14'); /* Procedure structure for procedure `add_new_upload_item` */ /*!50003 DROP PROCEDURE IF EXISTS `add_new_upload_item` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `add_new_upload_item`( in p_type_id int(11), in p_category_id int(11), in p_item_name VARCHAR(50), in p_file_url text, in p_image_url text, in p_thumb_url text, in p_author_name text, in p_version varchar(30), in p_size varchar(20), in p_description text, in p_short_description text, in p_hot_priority int(11), in p_video_code varchar(20), in p_download_count int(11), in p_is_verify int(11) ) BEGIN select count(*) from mine_craft_mods.`item` where item.item_name = p_item_name into @check_exist_a; SELECT COUNT(*) FROM mine_craft_mods.`upload_item` WHERE upload_item.item_name = p_item_name INTO @check_exist_b; if ((@check_exist_a + @check_exist_b) = 0) then INSERT INTO `mine_craft_mods`.`upload_item` (`type_id`, `category_id`, `item_name`, `file_url`, `image_url`, `thumb_url`, `author_name`, `version`, `size`, `description`, `short_description`, `hot_priority`, `download_count`, `video_code`, `is_verify`, `create_time`) VALUES (p_type_id, p_category_id, p_item_name, p_file_url, p_image_url, p_thumb_url, p_author_name, p_version, p_size, p_description, p_short_description, p_hot_priority, p_download_count, p_video_code, p_is_verify, NOW()); select * from error_code where error_code.`response_code` = 200; else SELECT * FROM error_code WHERE error_code.`response_code` = 206; end if; END */$$ DELIMITER ; /* Procedure structure for procedure `admin_authentication` */ /*!50003 DROP PROCEDURE IF EXISTS `admin_authentication` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `admin_authentication`( IN p_username varchar(50), in p_password varchar(50) ) BEGIN select count(*) from account where account.`username` = p_username and account.`password` = p_password into @check_login; if(@check_login = 1) then select * from error_code where response_code = 204; else select * from error_code where response_code = 205; end if; END */$$ DELIMITER ; /* Procedure structure for procedure `create_item_comment` */ /*!50003 DROP PROCEDURE IF EXISTS `create_item_comment` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `create_item_comment`( in p_item_id int(11), IN p_user_id VARCHAR(50), in p_message TEXT ) BEGIN INSERT INTO `mine_craft_mods`.`item_comment` ( `item_id`, `user_id`, `comment_message`, `create_time`) VALUES ( p_item_id, p_user_id, p_message, NOW()); select * from error_code where `error_code`.`response_code`=200; END */$$ DELIMITER ; /* Procedure structure for procedure `create_news_comment` */ /*!50003 DROP PROCEDURE IF EXISTS `create_news_comment` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `create_news_comment`( in p_news_id int(11), in p_user_id int(11), in p_comment_message text ) BEGIN INSERT INTO `mine_craft_mods`.`news_comment` (`news_id`, `user_id`, `comment_message`, `create_time`) VALUES (p_news_id, p_user_id, p_comment_message, NOW()); SELECT * FROM error_code where error_code.`response_code` = 200; END */$$ DELIMITER ; /* Procedure structure for procedure `delete_upload_item` */ /*!50003 DROP PROCEDURE IF EXISTS `delete_upload_item` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `delete_upload_item`( in p_item_id int(11) ) BEGIN DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SELECT * FROM error_code WHERE error_code.`response_code` = 207; DELETE FROM `mine_craft_mods`.`upload_item` WHERE `item_id` = p_item_id; select * from error_code where error_code.`response_code` = 200; END */$$ DELIMITER ; /* Procedure structure for procedure `download_item` */ /*!50003 DROP PROCEDURE IF EXISTS `download_item` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `download_item`( in p_item_id int(11) ) BEGIN DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SELECT * FROM error_code WHERE error_code.`response_code` = 207; select item.`download_count` from item where `item_id` = p_item_id into @download; UPDATE `mine_craft_mods`.`item` SET `download_count` = (@download + 1) WHERE `item_id` = p_item_id; select * from error_code where error_code.`response_code` = 200; END */$$ DELIMITER ; /* Procedure structure for procedure `get_all_categories` */ /*!50003 DROP PROCEDURE IF EXISTS `get_all_categories` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `get_all_categories`() BEGIN SELECT * FROM category; END */$$ DELIMITER ; /* Procedure structure for procedure `get_all_item` */ /*!50003 DROP PROCEDURE IF EXISTS `get_all_item` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `get_all_item`( IN p_amount INT(11) ) BEGIN IF (p_amount = 0) THEN SELECT * FROM mine_craft_mods.`item`; ELSE SELECT * FROM item limit p_amount; END IF; END */$$ DELIMITER ; /* Procedure structure for procedure `get_all_items` */ /*!50003 DROP PROCEDURE IF EXISTS `get_all_items` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `get_all_items`( ) BEGIN SELECT * FROM item; END */$$ DELIMITER ; /* Procedure structure for procedure `get_all_items_by_category` */ /*!50003 DROP PROCEDURE IF EXISTS `get_all_items_by_category` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `get_all_items_by_category`( IN p_category_id INT(11), IN p_limit_amount int(11) ) BEGIN IF (p_limit_amount > 0) THEN SELECT * from item where item.`category_id` = p_category_id limit p_limit_amount; ELSE SELECT * from item where item.`category_id` = p_category_id; END IF; END */$$ DELIMITER ; /* Procedure structure for procedure `get_all_item_type` */ /*!50003 DROP PROCEDURE IF EXISTS `get_all_item_type` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `get_all_item_type`() BEGIN SELECT * FROM item_type; END */$$ DELIMITER ; /* Procedure structure for procedure `get_all_news_items` */ /*!50003 DROP PROCEDURE IF EXISTS `get_all_news_items` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `get_all_news_items`( in p_limit_amount int(11) ) BEGIN if(p_limit_amount > 0) then select * from news order by news.`news_create_at` desc limit p_limit_amount; else SELECT * FROM news ORDER BY news.`news_create_at` DESC; end if; END */$$ DELIMITER ; /* Procedure structure for procedure `get_all_upload_item` */ /*!50003 DROP PROCEDURE IF EXISTS `get_all_upload_item` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `get_all_upload_item`( in p_start_datetime datetime, in p_end_datetime datetime ) BEGIN select * from upload_item where (`create_time` >= p_start_datetime) AND (`create_time`<= p_end_datetime); END */$$ DELIMITER ; /* Procedure structure for procedure `get_error_code` */ /*!50003 DROP PROCEDURE IF EXISTS `get_error_code` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `get_error_code`() BEGIN SELECT * FROM error_code; END */$$ DELIMITER ; /* Procedure structure for procedure `get_home_newest_news` */ /*!50003 DROP PROCEDURE IF EXISTS `get_home_newest_news` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `get_home_newest_news`( IN p_amount INT(11) ) BEGIN if (p_amount > 0 ) THEN select * FROM news limit p_amount; ELSE SELECT * FROM news; END IF; END */$$ DELIMITER ; /* Procedure structure for procedure `get_hot_items` */ /*!50003 DROP PROCEDURE IF EXISTS `get_hot_items` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `get_hot_items`( IN p_item_type INT(11), IN p_limit_count INT(11) ) BEGIN if (p_limit_count >0) THEN SELECT * FROM item where item.`type_id` = p_item_type order by item.`hot_priority` desc LIMIT p_limit_count; ELSE SELECT * FROM item WHERE item.`type_id` = p_item_type ORDER BY item.`hot_priority` DESC; END IF; END */$$ DELIMITER ; /* Procedure structure for procedure `get_all_item_comment` */ /*!50003 DROP PROCEDURE IF EXISTS `get_all_item_comment` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `get_all_item_comment`( IN p_item_id INT(40), IN p_limit_amount INT(11) ) BEGIN IF (p_limit_amount > 0) THEN SELECT `item_comment`.`comment_id`,`item_comment`.`item_id`,`item_comment`.`comment_message`,`item_comment`.`like_count`,TIMEDIFF(NOW(),`item_comment`.`create_time`) as duration FROM mine_craft_mods.`item_comment` where `item_id`= p_item_id order by item_comment.`create_time` desc limit p_limit_amount; ELSE SELECT `item_comment`.`comment_id`,`item_comment`.`item_id`,`item_comment`.`comment_message`,`item_comment`.`like_count`,TIMEDIFF(NOW(),`item_comment`.`create_time`) AS duration FROM mine_craft_mods.`item_comment` WHERE `item_id`= p_item_id ORDER BY item_comment.`create_time` DESC; end if; END */$$ DELIMITER ; /* Procedure structure for procedure `get_html_content` */ /*!50003 DROP PROCEDURE IF EXISTS `get_html_content` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `get_html_content`( IN p_html_content_id int(11) ) BEGIN SELECT * FROM html_content where html_content.`html_content_id` = p_html_content_id; END */$$ DELIMITER ; /* Procedure structure for procedure `get_item_by_type` */ /*!50003 DROP PROCEDURE IF EXISTS `get_item_by_type` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `get_item_by_type`( in p_item_type_id int(11), in p_limit_amount INT(11) ) BEGIN if(p_limit_amount > 0) then select * from item where item.`type_id` = p_item_type_id limit p_limit_amount; else select * from item where item.`type_id` = p_item_type_id; end if; END */$$ DELIMITER ; /* Procedure structure for procedure `get_news_comment` */ /*!50003 DROP PROCEDURE IF EXISTS `get_news_comment` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `get_news_comment`( IN p_news_id INT(11), IN p_limit_amount INT(11) ) BEGIN IF (p_limit_amount > 0) THEN SELECT `news_comment`.`comment_id`,`news_comment`.`news_id`,`news_comment`.`user_id`,`news_comment`.`comment_message`,TIMEDIFF(NOW(),`news_comment`.`create_time`) as duration FROM `news_comment` where `news_id`= p_news_id order by news_comment.`create_time` desc limit p_limit_amount; ELSE SELECT `news_comment`.`comment_id`,`news_comment`.`news_id`,`news_comment`.`user_id`,`news_comment`.`comment_message`,TIMEDIFF(NOW(),`news_comment`.`create_time`) AS duration FROM `news_comment` WHERE `news_id`= p_news_id ORDER BY news_comment.`create_time` DESC; end if; END */$$ DELIMITER ; /* Procedure structure for procedure `like_comment` */ /*!50003 DROP PROCEDURE IF EXISTS `like_comment` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `like_comment`( in p_user_id VARCHAR(50), in p_comment_id int(11) ) BEGIN SELECT COUNT(*) FROM `mine_craft_mods`.`like` WHERE ((comment_id = p_comment_id) AND (user_id = p_user_id)) into @check_liked; if(@check_liked = 0) then INSERT INTO `mine_craft_mods`.`like`(`comment_id`,`user_id`) VALUES (p_comment_id,p_user_id); select * from error_code where `error_code`.`response_code` = 203; else DELETE FROM `mine_craft_mods`.`like` where (`like`.`user_id`= p_user_id) and (`like`.`comment_id` = p_comment_id); select * from error_code where response_code = 202; end if; END */$$ DELIMITER ; /* Procedure structure for procedure `search_items` */ /*!50003 DROP PROCEDURE IF EXISTS `search_items` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `search_items`( IN p_search_keyword VARCHAR(50), IN p_limit_count INT(11) ) BEGIN if (p_limit_count >0) THEN SELECT * FROM `item`,`item_type`,`category` where (item.`author_name` LIKE CONCAT("%",p_search_keyword,"%")) OR (item.`item_name` LIKE CONCAT("%",p_search_keyword,"%")) OR (item.`category_id` = category.`category_id` AND category.`category_name` LIKE CONCAT("%",p_search_keyword,"%")) OR (item.`type_id` = `item_type`.`type_id` AND item_type.`type_name` LIKE CONCAT("%",p_search_keyword,"%")) GROUP BY item.`item_id` LIMIT p_limit_count; ELSE SELECT * FROM `item`,`item_type`,`category` WHERE (item.`author_name` LIKE CONCAT("%",p_search_keyword,"%")) OR (item.`item_name` LIKE CONCAT("%",p_search_keyword,"%")) OR (item.`category_id` = category.`category_id` AND category.`category_name` LIKE CONCAT("%",p_search_keyword,"%")) OR (item.`type_id` = `item_type`.`type_id` AND item_type.`type_name` LIKE CONCAT("%",p_search_keyword,"%")) GROUP BY item.`item_id`; END IF; END */$$ DELIMITER ; /* Procedure structure for procedure `search_related_items` */ /*!50003 DROP PROCEDURE IF EXISTS `search_related_items` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `search_related_items`( IN p_item_id INT(11), IN p_search_keyword VARCHAR(50), IN p_limit_count INT(11) ) BEGIN IF(p_limit_count > 0) THEN SELECT * FROM `item`,`item_type`,`category` WHERE( (item.`author_name` LIKE CONCAT("%",p_search_keyword,"%")) OR (item.`item_name` LIKE CONCAT("%",p_search_keyword,"%")) OR (item.`category_id` = category.`category_id` AND category.`category_name` LIKE CONCAT("%",p_search_keyword,"%")) OR (item.`type_id` = `item_type`.`type_id` AND item_type.`type_name` LIKE CONCAT("%",p_search_keyword,"%"))) AND (item.`item_id` <> p_item_id) GROUP BY item.`item_id` LIMIT p_limit_count; ELSE SELECT * FROM `item`,`item_type`,`category` WHERE( (item.`author_name` LIKE CONCAT("%",p_search_keyword,"%")) OR (item.`item_name` LIKE CONCAT("%",p_search_keyword,"%")) OR (item.`category_id` = category.`category_id` AND category.`category_name` LIKE CONCAT("%",p_search_keyword,"%")) OR (item.`type_id` = `item_type`.`type_id` AND item_type.`type_name` LIKE CONCAT("%",p_search_keyword,"%"))) AND (item.`item_id` <> p_item_id) GROUP BY item.`item_id`; END IF; END */$$ DELIMITER ; /* Procedure structure for procedure `update_upload_item` */ /*!50003 DROP PROCEDURE IF EXISTS `update_upload_item` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `update_upload_item`( in p_item_id int(11), IN p_type_id INT(11), IN p_category_id INT(11), IN p_item_name VARCHAR(50), IN p_file_url TEXT, IN p_image_url TEXT, IN p_thumb_url TEXT, IN p_author_name TEXT, IN p_version VARCHAR(30), IN p_size VARCHAR(20), IN p_description TEXT, IN p_short_description TEXT, IN p_hot_priority INT(11), IN p_video_code VARCHAR(20), IN p_download_count INT(11) ) BEGIN DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SELECT * FROM error_code WHERE error_code.`response_code` = 207; UPDATE `mine_craft_mods`.`upload_item` SET `item_id` = p_item_id, `type_id` = p_type_id, `category_id` = p_category_id, `item_name` = p_item_name, `file_url` = p_file_url, `image_url` = p_image_url, `thumb_url` = p_thumb_url, `author_name` = p_author_name, `version` = p_version, `size` = p_size, `description` = p_description, `short_description` = p_short_description, `hot_priority` = p_hot_priority, `download_count` = p_download_count, `video_code` = p_video_code, `is_verify` = 0, `create_time` = now() WHERE `item_id` = p_item_id; select * from error_code where error_code.`response_code` = 200; END */$$ DELIMITER ; /* Procedure structure for procedure `verify_upload_item` */ /*!50003 DROP PROCEDURE IF EXISTS `verify_upload_item` */; DELIMITER $$ /*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `verify_upload_item`( in p_upload_item_id int(11) ) BEGIN -- EXCEPTION CATCH DECLARE continue HANDLER FOR SQLEXCEPTION SELECT * FROM error_code WHERE error_code.`response_code` = 207; -- update is verify of upload item select count(*) from `upload_item` where (`upload_item`.`item_id` = p_upload_item_id) into @check_upload_item; if (@check_upload_item = 1) then select count(*) from `upload_item` where ( `upload_item`.`item_id` = p_upload_item_id and `upload_item`.`is_verify` = 1) into @check; if(@check = 0) then UPDATE `mine_craft_mods`.`upload_item` SET `is_verify` = 1 WHERE `item_id` = p_upload_item_id; -- insert from upload item to item table INSERT INTO `item` (`type_id`,`category_id`,`item_name`,`file_url`,`image_url`,`thumb_url`,`author_name`, `version`,`size`,`description`,`short_description`,`hot_priority`,`download_count`,`video_code`,`is_verify`,`create_time`) SELECT `type_id`,`category_id`,`item_name`,`file_url`,`image_url`,`thumb_url`,`author_name`, `version`,`size`,`description`,`short_description`,`hot_priority`,`download_count`,`video_code`,`is_verify`,NOW() FROM upload_item WHERE `upload_item`.`item_id` = p_upload_item_id; -- delete from upload item DELETE FROM `mine_craft_mods`.`upload_item` WHERE `item_id` = p_upload_item_id; -- response result of insert select * from error_code where error_code.`response_code` = 200; else SELECT * FROM error_code WHERE error_code.`response_code` = 208; end if; else select * from error_code where error_code.`response_code` = 209; end if; END */$$ DELIMITER ; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
<reponame>IgorSilvaFreitas/MySQL create table assite ( id int not null auto_increment, data date, idcadastro int, idcurso int, primary key (id), foreign key (idcadastro) references cadastro(id), foreign key (idcurso) references cursos(idcurso) )default charset = utf8; insert into assite values (default, '2921-09-26', '1', '2'); select * from assite; select * from cadastro ca join assite a on ca.id = a.idcadastro; select * from cadastro ca join assite a on ca.id = a.idcadastro join cursos c on c.idcurso = a.idcurso; select ca.nome, c.nome from cadastro ca join assite a on ca.id = a.idcadastro join cursos c on c.idcurso = a.idcurso; select ca.nome, c.nome from cadastro ca join assite a on ca.id = a.idcadastro join cursos c on c.idcurso = a.idcurso;
USE master GO SELECT COUNT(*) FROM sys.certificates
{{ config( materialized='table', unique_key = 'table_name', on_schema_change='sync_all_columns', ) }} -- depends_on: {{ ref('re_data_last_table_samples') }} -- depends_on: {{ ref('re_data_last_table_samples_part') }} select table_name, sample_data, {{- dbt_utils.current_timestamp_in_utc() -}} as sampled_on from {{ ref('re_data_last_table_samples_part') }}
<reponame>Jon-NJ/bookclub-plugin CREATE TABLE `{{table}}` ( `event_id` varchar(40) NOT NULL, `organiser` int(10) UNSIGNED NOT NULL DEFAULT '0', `starttime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `endtime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `modtime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, `summary` varchar(80) NOT NULL DEFAULT '', `location` varchar(60) NOT NULL DEFAULT '', `map` varchar(80) NOT NULL DEFAULT '', `description` text NOT NULL DEFAULT '', `private` int(10) UNSIGNED NOT NULL DEFAULT '0', `priority` int(10) UNSIGNED NOT NULL DEFAULT '0', `max_attend` int(10) UNSIGNED NOT NULL DEFAULT '0', `rsvp_attend` int(10) UNSIGNED NOT NULL DEFAULT '0' ) ENGINE={{engine}} {{charset}}; ALTER TABLE `{{table}}` ADD PRIMARY KEY (`event_id`);
CREATE SCHEMA playlist; CREATE TABLE playlist.name ( id SERIAL, name VARCHAR(75), PRIMARY KEY (id) ) ENGINE INNODB; CREATE UNIQUE INDEX by_names ON playlist.name (name); CREATE TABLE playlist.playlist ( id SERIAL, name_key BIGINT(20) UNSIGNED NOT NULL, idx INTEGER UNSIGNED, object VARCHAR(256), PRIMARY KEY(id), FOREIGN KEY(name_key) REFERENCES playlist.name(id) ON DELETE CASCADE ) ENGINE INNODB; CREATE UNIQUE INDEX find_item ON playlist.playlist (name_key,idx);
drop table if exists MB_ACCT_WITHDRAW_TYPE; /*==============================================================*/ /* Table: MB_ACCT_WITHDRAW_TYPE */ /*==============================================================*/ create table MB_ACCT_WITHDRAW_TYPE ( INTERNAL_KEY Decimal(15) not null comment '账户标识符', WITHDRAWAL_TYPE varchar(1) not null comment '支取方式 ', CHANNEL_MUSTER varchar(200) comment '支取渠道,支持多个渠道,逗号分隔', DAC_VALUE varchar(32) comment 'DAC值 防篡改加密', COMPANY varchar(20) comment '法人代码', TRAN_TIMESTAMP varchar(17) comment '交易时间戳', TRAN_TIME Decimal(11,0) comment '交易时间', ROUTER_KEY varchar(100) comment '分库路由关键字', primary key (INTERNAL_KEY,WITHDRAWAL_TYPE) ); alter table MB_ACCT_WITHDRAW_TYPE comment '账户支取方式 undefined';
ALTER TABLE ONLY analysis_record ALTER COLUMN set_id SET DEFAULT currval('analysis_sets_set_id_seq'); -- CREATE TABLE analysis_sets_record_xref ( -- set_id integer NOT NULL, -- analysis_id integer NOT NULL, -- CONSTRAINT fk_set -- FOREIGN KEY(set_id) -- REFERENCES analysis_sets(set_id), -- CONSTRAINT fk_record -- FOREIGN KEY(analysis_id) -- REFERENCES analysis_record(analysis_id) -- );
-- original: e_fkey.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test CREATE TABLE p(a UNIQUE); CREATE TABLE c(b REFERENCES p(a) ON DELETE SET NULL); INSERT INTO p VALUES('x'); INSERT INTO c VALUES('x'); BEGIN; DROP TABLE p; SELECT * FROM c; ROLLBACK ;PRAGMA foreign_keys = OFF; DROP TABLE p; SELECT * FROM c ;PRAGMA foreign_keys = ON ;INSERT INTO p VALUES(1, 2, 3) ;INSERT INTO c VALUES('w', 2, 3) ;INSERT INTO c VALUES('x', 'x', NULL) ;INSERT INTO c VALUES('y', NULL, 'x') ;INSERT INTO c VALUES('z', NULL, NULL) ;CREATE TABLE p(a, b, PRIMARY KEY(a, b)); CREATE TABLE cd(c, d, FOREIGN KEY(c, d) REFERENCES p DEFERRABLE INITIALLY DEFERRED); CREATE TABLE ci(c, d, FOREIGN KEY(c, d) REFERENCES p DEFERRABLE INITIALLY IMMEDIATE); BEGIN ;DELETE FROM cd; COMMIT ;BEGIN; CREATE TABLE t0(a PRIMARY KEY, b); INSERT INTO t0 VALUES('x0', NULL) ;BEGIN; CREATE TABLE t0(a PRIMARY KEY); INSERT INTO t0 VALUES('xxx') ;PRAGMA recursive_triggers = sub_recursive_triggers_setting ;CREATE TABLE t1(a PRIMARY KEY, b REFERENCES t1 ON DELETE CASCADE); INSERT INTO t1 VALUES(1, NULL); INSERT INTO t1 VALUES(2, 1); INSERT INTO t1 VALUES(3, 2); INSERT INTO t1 VALUES(4, 3); INSERT INTO t1 VALUES(5, 4); SELECT count(*) FROM t1 ;SELECT count(*) FROM t1 WHERE a = 1 ;DELETE FROM t1 WHERE a = 1; SELECT count(*) FROM t1;
<gh_stars>1-10 DELIMITER | CREATE TRIGGER `nas_insert` AFTER INSERT ON `nas` FOR EACH ROW BEGIN INSERT INTO `nas_changes` (kind) VALUES ("insert"); END; | DELIMITER ; DELIMITER | CREATE TRIGGER `nas_update` AFTER UPDATE ON `nas` FOR EACH ROW BEGIN INSERT INTO `nas_changes` (kind) VALUES ("update"); END; | DELIMITER ; DELIMITER | CREATE TRIGGER `nas_delete` AFTER DELETE ON `nas` FOR EACH ROW BEGIN INSERT INTO `nas_changes` (kind) VALUES ("delete"); END; | DELIMITER ;