sql
stringlengths
6
1.05M
<reponame>sadponyguerillaboy/AST-Server /* Navicat Premium Data Transfer Source Server : Local Source Server Type : MySQL Source Server Version : 80017 Source Host : localhost:3306 Source Schema : ast_server Target Server Type : MySQL Target Server Version : 80017 File Encoding : 65001 Date: 14/10/2019 17:58:13 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for users_accounts -- ---------------------------- DROP TABLE IF EXISTS `users_accounts`; CREATE TABLE `users_accounts` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_uuid` varchar(40) DEFAULT NULL, `user_first_name` varchar(80) DEFAULT NULL, `user_last_name` varchar(80) DEFAULT NULL, `user_email` varchar(255) DEFAULT NULL, `user_email_status` varchar(20) DEFAULT '0', `user_account_status` varchar(20) DEFAULT '0', `user_password_hash` varchar(255) DEFAULT NULL, `user_account_id` varchar(20) DEFAULT NULL, `user_organisation_uuid` varchar(40) DEFAULT NULL, `user_organisation_role` varchar(20) DEFAULT NULL, `user_permissions_scopes` varchar(500) DEFAULT NULL, `created_at` int(10) DEFAULT NULL, `deleted_at` int(10) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `user_email` (`user_email`), UNIQUE KEY `user_uuid` (`user_uuid`) ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8; -- ---------------------------- -- Table structure for users_diagnostics_headers -- ---------------------------- DROP TABLE IF EXISTS `users_diagnostics_headers`; CREATE TABLE `users_diagnostics_headers` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_uuid` varchar(40) DEFAULT NULL, `diagnostic_event_number` varchar(40) DEFAULT NULL, `tool_id` varchar(20) DEFAULT NULL, `tool_version` varchar(20) DEFAULT NULL, `diagnostic_start_timestamp` int(10) DEFAULT NULL, `diagnostic_end_timestamp` int(10) DEFAULT NULL, `serial_number` varchar(20) DEFAULT NULL, `server_id` varchar(20) DEFAULT NULL, `account_id` int(10) DEFAULT NULL, `profile_file` mediumtext CHARACTER SET latin1 COLLATE latin1_swedish_ci, `log_file` mediumtext CHARACTER SET latin1 COLLATE latin1_swedish_ci, `test_result` varchar(20) DEFAULT NULL, `pass_count` int(10) DEFAULT NULL, `created_at` int(10) DEFAULT NULL, `deleted_at` int(10) DEFAULT NULL, `tech_notes` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `diagnostic_event_number` (`diagnostic_event_number`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1; -- ---------------------------- -- Table structure for users_diagnostics_results -- ---------------------------- DROP TABLE IF EXISTS `users_diagnostics_results`; CREATE TABLE `users_diagnostics_results` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_uuid` varchar(40) DEFAULT NULL, `diagnostic_event_number` varchar(40) DEFAULT NULL, `module_name` varchar(100) DEFAULT NULL, `module_location` varchar(100) DEFAULT NULL, `module_serial_number` varchar(50) DEFAULT NULL, `module_test_name` varchar(100) DEFAULT NULL, `module_test_number` int(10) DEFAULT NULL, `module_test_result` varchar(20) DEFAULT NULL, `created_at` int(10) DEFAULT NULL, `deleted_at` int(10) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1; -- ---------------------------- -- Table structure for users_tokens -- ---------------------------- DROP TABLE IF EXISTS `users_tokens`; CREATE TABLE `users_tokens` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_uuid` varchar(40) DEFAULT NULL, `user_session_token` varchar(35) DEFAULT NULL, `expires_at` int(10) DEFAULT '0', `created_at` int(10) DEFAULT '0', `deleted_at` int(10) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `user_session_token` (`user_session_token`) ) ENGINE=InnoDB AUTO_INCREMENT=7712 DEFAULT CHARSET=utf8; SET FOREIGN_KEY_CHECKS = 1;
<filename>src/DataAbstractions.Dapper.TestDb/Tables/Employee.sql CREATE TABLE [dbo].[Employee] ( [Id] INT NOT NULL PRIMARY KEY, [CompanyId] INT NOT NULL, [DepartmentId] INT NOT NULL, [FirstName] NVARCHAR(50) NULL, [LastName] NVARCHAR(50) NULL, [Title] NVARCHAR(50) NULL )
<filename>src/test/resources/sql/alter_role/f8cf7e84.sql -- file:rolenames.sql ln:95 expect:false ALTER ROLE ALL WITH REPLICATION
<gh_stars>10-100 -- file:uuid.sql ln:28 expect:true INSERT INTO guid1(guid_field) VALUES('{22222222-2222-2222-2222-222222222222}')
-- -- PostgreSQL database dump -- -- Dumped from database version 12.3 (Debian 12.3-1.pgdg100+1) -- Dumped by pg_dump version 12.3 (Debian 12.3-1.pgdg100+1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; SET default_tablespace = ''; SET default_table_access_method = heap; -- -- Name: jwt_site_scopes; Type: TABLE; Schema: madoc_ts; Owner: madoc_ts -- CREATE TABLE madoc_ts.jwt_site_scopes ( id integer NOT NULL, site_id integer NOT NULL, created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, user_id integer, role text, scope text ); ALTER TABLE madoc_ts.jwt_site_scopes OWNER TO madoc_ts; -- -- Name: jwt_site_scopes_id_seq; Type: SEQUENCE; Schema: madoc_ts; Owner: madoc_ts -- CREATE SEQUENCE madoc_ts.jwt_site_scopes_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE madoc_ts.jwt_site_scopes_id_seq OWNER TO madoc_ts; -- -- Name: jwt_site_scopes_id_seq; Type: SEQUENCE OWNED BY; Schema: madoc_ts; Owner: madoc_ts -- ALTER SEQUENCE madoc_ts.jwt_site_scopes_id_seq OWNED BY madoc_ts.jwt_site_scopes.id; -- -- Name: jwt_site_scopes id; Type: DEFAULT; Schema: madoc_ts; Owner: madoc_ts -- ALTER TABLE ONLY madoc_ts.jwt_site_scopes ALTER COLUMN id SET DEFAULT nextval('madoc_ts.jwt_site_scopes_id_seq'::regclass); -- -- Data for Name: jwt_site_scopes; Type: TABLE DATA; Schema: madoc_ts; Owner: madoc_ts -- COPY madoc_ts.jwt_site_scopes (id, site_id, created_at, user_id, role, scope) FROM stdin; 1 1 2020-09-30 11:34:00.067214 \N admin site.admin 2 1 2020-09-30 11:34:00.067214 \N admin tasks.admin 3 1 2020-09-30 11:34:00.067214 \N admin models.admin 4 1 2020-09-30 11:34:00.067214 \N reviewer tasks.create 5 1 2020-09-30 11:34:00.067214 \N reviewer tasks.progress 6 1 2020-09-30 11:34:00.067214 \N reviewer models.revision 7 1 2020-09-30 11:34:00.067214 \N reviewer models.create 8 1 2020-09-30 11:34:00.067214 \N reviewer models.contribute 9 1 2020-09-30 11:34:00.067214 \N reviewer models.view_published 10 1 2020-09-30 11:34:00.067214 \N reviewer site.view 11 1 2020-09-30 11:34:00.067214 \N limited-reviewer tasks.create 12 1 2020-09-30 11:34:00.067214 \N limited-reviewer tasks.progress 13 1 2020-09-30 11:34:00.067214 \N limited-reviewer models.revision 14 1 2020-09-30 11:34:00.067214 \N limited-reviewer models.contribute 15 1 2020-09-30 11:34:00.067214 \N limited-reviewer models.view_published 16 1 2020-09-30 11:34:00.067214 \N limited-reviewer site.view 17 1 2020-09-30 11:34:00.067214 \N transcriber tasks.progress 18 1 2020-09-30 11:34:00.067214 \N transcriber models.revision 19 1 2020-09-30 11:34:00.067214 \N transcriber models.contribute 20 1 2020-09-30 11:34:00.067214 \N transcriber models.view_published 21 1 2020-09-30 11:34:00.067214 \N transcriber site.view 22 1 2020-09-30 11:34:00.067214 \N limited-transcriber tasks.progress 23 1 2020-09-30 11:34:00.067214 \N limited-transcriber models.revision 24 1 2020-09-30 11:34:00.067214 \N limited-transcriber models.contribute 25 1 2020-09-30 11:34:00.067214 \N limited-transcriber models.view_published 26 1 2020-09-30 11:34:00.067214 \N limited-transcriber site.view 27 1 2020-09-30 11:34:00.067214 \N viewer models.view_published 28 1 2020-09-30 11:34:00.067214 \N viewer site.view 29 1 2020-09-30 11:34:00.067214 \N editor models.view_published 30 1 2020-09-30 11:34:00.067214 \N editor site.view 34 2 2020-09-30 11:38:49.207013 \N admin site.admin 35 2 2020-09-30 11:38:49.207013 \N admin tasks.admin 36 2 2020-09-30 11:38:49.207013 \N admin models.admin 37 2 2020-09-30 11:38:49.207013 \N reviewer tasks.create 38 2 2020-09-30 11:38:49.207013 \N reviewer tasks.progress 39 2 2020-09-30 11:38:49.207013 \N reviewer models.revision 40 2 2020-09-30 11:38:49.207013 \N reviewer models.create 41 2 2020-09-30 11:38:49.207013 \N reviewer models.contribute 42 2 2020-09-30 11:38:49.207013 \N reviewer models.view_published 43 2 2020-09-30 11:38:49.207013 \N reviewer site.view 44 2 2020-09-30 11:38:49.207013 \N limited-reviewer tasks.create 45 2 2020-09-30 11:38:49.207013 \N limited-reviewer tasks.progress 46 2 2020-09-30 11:38:49.207013 \N limited-reviewer models.revision 47 2 2020-09-30 11:38:49.207013 \N limited-reviewer models.contribute 48 2 2020-09-30 11:38:49.207013 \N limited-reviewer models.view_published 49 2 2020-09-30 11:38:49.207013 \N limited-reviewer site.view 50 2 2020-09-30 11:38:49.207013 \N transcriber tasks.progress 51 2 2020-09-30 11:38:49.207013 \N transcriber models.revision 52 2 2020-09-30 11:38:49.207013 \N transcriber models.contribute 53 2 2020-09-30 11:38:49.207013 \N transcriber models.view_published 54 2 2020-09-30 11:38:49.207013 \N transcriber site.view 55 2 2020-09-30 11:38:49.207013 \N limited-transcriber tasks.progress 56 2 2020-09-30 11:38:49.207013 \N limited-transcriber models.revision 57 2 2020-09-30 11:38:49.207013 \N limited-transcriber models.contribute 58 2 2020-09-30 11:38:49.207013 \N limited-transcriber models.view_published 59 2 2020-09-30 11:38:49.207013 \N limited-transcriber site.view 60 2 2020-09-30 11:38:49.207013 \N viewer models.view_published 61 2 2020-09-30 11:38:49.207013 \N viewer site.view 62 2 2020-09-30 11:38:49.207013 \N editor models.view_published 63 2 2020-09-30 11:38:49.207013 \N editor site.view \. -- -- Name: jwt_site_scopes_id_seq; Type: SEQUENCE SET; Schema: madoc_ts; Owner: madoc_ts -- SELECT pg_catalog.setval('madoc_ts.jwt_site_scopes_id_seq', 63, true); -- -- Name: jwt_site_scopes jwt_site_scopes_pk; Type: CONSTRAINT; Schema: madoc_ts; Owner: madoc_ts -- ALTER TABLE ONLY madoc_ts.jwt_site_scopes ADD CONSTRAINT jwt_site_scopes_pk PRIMARY KEY (id); -- -- Name: jwt_site_scopes_uindex; Type: INDEX; Schema: madoc_ts; Owner: madoc_ts -- CREATE UNIQUE INDEX jwt_site_scopes_uindex ON madoc_ts.jwt_site_scopes USING btree (id); -- -- PostgreSQL database dump complete --
-- remove pgbench tables DROP TABLE IF EXISTS pgbench_inserts_unlogged; DROP TABLE IF EXISTS pgbench_inserts_normal; DROP TABLE IF EXISTS pgbench_inserts_indexed;
-- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Description,,> -- ============================================= CREATE PROCEDURE [dbo].[usp_update_user_organization] @UserId varchar(50), @OrganizationId varchar(10), @RoleId varchar(3), @Active bit = 0 AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; UPDATE [UserOrganization] SET [ROLEID] = @RoleId, [Active] = @Active WHERE UserId = @UserId and OrganizationId = @OrganizationId END
<gh_stars>10-100 COPY ( --- WITH relidfeat AS ( --- SELECT relation_id, unnest(features) as feature FROM gene_hpoterm_relations_is_correct_inference --- ) SELECT t0.doc_id as doc_id , t0.section_id as section_id , t0.relation_id as relation_id , array_to_string(t5.words, '_') || '/' || t6.entity as relation_name , t0.wordidxs_1 as gene_words , t0.wordidxs_2 as hpoterm_words , t1.words as words -- , t2.array_accum as sentences_before -- , t3.array_accum as sentences_after , t0.expectation as expectation --, t5.expectation as gene_expectation --, t6.expectation as hpoterm_expectation --, t7.features as features --, t7.weights as weights FROM gene_hpoterm_relations_is_correct_inference t0, sentences t1, -- preceding_sentences t2, -- following_sentences t3, gene_mentions_is_correct_inference t5, hpoterm_mentions_is_correct_inference t6 --, -- ( -- find features relevant to the relation -- SELECT relation_id -- , ARRAY_AGG(feature ORDER BY abs(weight) DESC) AS features -- , ARRAY_AGG(weight ORDER BY abs(weight) DESC) AS weights -- FROM relidfeat f -- , dd_inference_result_weights_mapping wm -- WHERE wm.description = ('classify_gene_hpoterm_relations_features-' || f.feature) -- GROUP BY relation_id -- ) t7 WHERE t0.doc_id = t1.doc_id AND t0.section_id = t1.section_id AND t0.sent_id_1 = t1.sent_id AND t0.relation_id not like '%UNSUP' -- AND -- t0.doc_id = t2.doc_id AND t0.sent_id_1 = t2.sent_id -- AND -- t0.doc_id = t3.doc_id AND t0.sent_id_1 = t3.sent_id -- AND -- t0.relation_id = t7.relation_id AND t0.mention_id_1 = t5.mention_id AND t0.mention_id_2 = t6.mention_id AND t0.expectation < 0.9 AND t0.expectation > 0.4 AND t0.is_correct is NULL ORDER BY random() -- LIMIT 400 LIMIT 500 ) TO STDOUT WITH HEADER ;
alter type "framework" add value 'terraform';
<filename>tests/queries/0_stateless/01881_negate_formatting.sql -- { echo } EXPLAIN SYNTAX SELECT -1; EXPLAIN SYNTAX SELECT -(1); EXPLAIN SYNTAX SELECT -(-(1)); EXPLAIN SYNTAX SELECT -(-(-(1))); EXPLAIN SYNTAX SELECT -(-(-1)); EXPLAIN SYNTAX SELECT -(-toUInt64(-(1)));
DROP TYPE IF EXISTS flybase.stock cascade; CREATE TYPE flybase.stock AS (fbid text, fbst text, center text, stock_number text, genotype varchar(1024)); CREATE OR REPLACE FUNCTION flybase.get_stocks(id text) RETURNS SETOF flybase.stock AS $$ DECLARE -- Cast scalar to an array. ids text[] = array_agg(id); BEGIN -- Call the main function with an array of a single ID. RETURN QUERY SELECT * FROM flybase.get_stocks(ids); END $$ LANGUAGE plpgsql STABLE; COMMENT ON FUNCTION flybase.get_stocks(text) IS 'Given a FlyBase ID, returns the associated stocks.'; CREATE OR REPLACE FUNCTION flybase.get_stocks(ids text[]) RETURNS SETOF flybase.stock AS $$ DECLARE id text; _stock flybase.stock; num_genotype text[]; id_genotype text[]; BEGIN FOREACH id IN ARRAY ids LOOP FOR _stock IN SELECT f.uniquename as fbid, null as fbst, replace(fpt.name, 'derived_stock_', '') AS center, null as stock_number, regexp_split_to_table(fp.value, '\n') AS genotype FROM featureprop fp JOIN cvterm fpt ON (fp.type_id = fpt.cvterm_id) JOIN feature f ON (fp.feature_id = f.feature_id) WHERE fpt.name ~ '^derived_stock_' AND f.uniquename = id LOOP SELECT regexp_split_to_array(_stock.genotype, '\t') INTO num_genotype; _stock.stock_number = num_genotype[1]; SELECT regexp_split_to_array(trim(both ' @' from num_genotype[2]), ':') INTO id_genotype; _stock.fbst = id_genotype[1]; _stock.genotype = id_genotype[2]; RETURN NEXT _stock; END LOOP; END LOOP; RETURN; END $$ LANGUAGE plpgsql STABLE; COMMENT ON FUNCTION flybase.get_stocks(text[]) IS 'Given an array of FlyBase IDs returns the associated stocks.';
<filename>sctp-core/src/main/resources/db/migration/V1.50.1652961110233__Add_district_id_to_transfer_sessions.sql -- Adds District ID to the Transfer Sessions table ALTER TABLE transfers_sessions ADD COLUMN district_id BIGINT(19) NOT NULL AFTER program_id;
--TEST: test with tables with triggers create table rownum_trigger( col1 bit(20), col2 bit varying, col3 blob, col4 clob ); create table rownum_action( id int auto_increment, str varchar ); --create trigger create trigger bef_ins before insert on rownum_trigger execute insert into rownum_action(str) values('BEFORE INSERT'); insert into rownum_trigger values(B'1011', X'abc', X'0', char_to_clob('cubrid')); insert into rownum_trigger values(B'1011', x'bcd', X'1', char_to_clob('cubrid')); insert into rownum_trigger values(B'1011', X'abc', X'2', char_to_clob('cubrid')); insert into rownum_trigger values(B'1011', x'bcd', X'3', char_to_clob('cubrid')); insert into rownum_trigger values(B'1011', X'abc', X'4', char_to_clob('cubrid')); insert into rownum_trigger values(B'1001', x'bcd', X'5', char_to_clob('cubrid')); insert into rownum_trigger values(B'1001', X'abc', X'6', char_to_clob('cubrid')); insert into rownum_trigger values(B'1001', X'abc', X'7', char_to_clob('cubrid')); insert into rownum_trigger values(B'1001', X'cde', X'8', char_to_clob('cubrid')); insert into rownum_trigger values(B'0011', X'abc', X'9', char_to_clob('cubrid')); insert into rownum_trigger values(B'0011', X'abc', X'10', char_to_clob('mysql')); insert into rownum_trigger values(B'0011', X'cde', X'11', char_to_clob('mysql')); insert into rownum_trigger values(B'1010', X'abc', X'12', char_to_clob('mysql')); insert into rownum_trigger values(B'1111', X'abc', X'13', char_to_clob('mysql')); insert into rownum_trigger values(B'1111', x'bcd', X'14', char_to_clob('mysql')); insert into rownum_trigger values(B'1111', X'abc', X'15', char_to_clob('mysql')); insert into rownum_trigger values(B'1111', X'abc', X'16', char_to_clob('mysql')); insert into rownum_trigger values(B'1111', X'cde', X'17', char_to_clob('mysql')); insert into rownum_trigger values(B'1111', X'abc', X'18', char_to_clob('mysql')); insert into rownum_trigger values(B'1111', X'abc', X'19', char_to_clob('mysql')); --TEST: OVER() clause --TEST: no alias select row_num from (select col1, col2, row_number() over() row_num from rownum_trigger) order by 1; --TEST: with alias select row_num from (select col2, blob_to_bit(col3), row_number() over() row_num from rownum_trigger) order by 1; --TEST: blob select row_num from (select blob_to_bit(col3), clob_to_char(col4), row_number() over() row_num from rownum_trigger where col1 > B'1011') order by 1; --TEST: clob select row_num from (select clob_to_char(col4), col1, row_number() over() row_num from rownum_trigger) order by 1; --TEST: syntax error select col1, blob_to_bit(col3), clob_to_char(col4), row_number() over row_num from rownum_trigger; select col1, blob_to_bit(col3), col2, row_number() over(1) row_num from rownum_trigger; --TEST: trigger action table select id, str, row_number() over() row_num from rownum_action order by 1, 2, 3; --TEST: OVER(PARTITION BY) clause --TEST: partition by bit(n) select row_num from (select col1, col2, blob_to_bit(col3), clob_to_char(col4), row_number() over(partition by col1) row_num from rownum_trigger) order by 1; --TEST: partition by bit varying select row_num from (select col1, col2, blob_to_bit(col3), clob_to_char(col4), row_number() over(partition by col2) row_num from rownum_trigger) order by 1; --TEST: partition by blob select row_num from (select col1, col2, blob_to_bit(col3), clob_to_char(col4), row_number() over(partition by 3) row_num from rownum_trigger) order by 1; --TEST: partition by clob select row_num from (select col1, col2, blob_to_bit(col3), clob_to_char(col4), row_number() over(partition by 4) row_num from rownum_trigger) order by 1; --TEST: trigger action table, partition by int select id, str, row_number() over(partition by id) from rownum_action order by 1, 2, 3; --TEST: trigger action table, partition by string select id, str, row_number() over(partition by str) from rownum_action order by 1, 2, 3; --TEST: OVER(ORDER BY) clause --TEST: order by 1 column name select col1, row_number() over(order by col1) row_num from rownum_trigger; --TEST: order by 2 column names select col2, blob_to_bit(col3), row_number() over(order by col2, blob_to_bit(col3) asc) row_num from rownum_trigger; --TEST: order by more than 2 column names select col1, col2, blob_to_bit(col3), clob_to_char(col4), row_number() over(order by col1, col2 desc, blob_to_bit(col3), clob_to_char(col4) asc) row_num from rownum_trigger; --TEST: order by columns not selected select row_num from (select blob_to_bit(col3), row_number() over(order by clob_to_char(col4) desc, col2, col1 asc) row_num from rownum_trigger) order by 1; --TEST: order by 1 position select clob_to_char(col4), row_number() over(order by 1) row_num from rownum_trigger; --TEST: order by 3 positions select blob_to_bit(col3), col2, row_number() over(order by blob_to_bit(col3), 2 desc, 3 asc) row_num from rownum_trigger; --TEST: order by more than 3 positions select col1, col2, blob_to_bit(col3), clob_to_char(col4), row_number() over(order by blob_to_bit(col3), 2 asc, 1 desc, clob_to_char(col4)) row_num from rownum_trigger; --TEST: order by positions not existed select col2, row_number() over(order by 2) row_num from rownum_trigger; select col1, row_number() over(order by 3, 4, 1 desc) row_num, col2, clob_to_char(col4) from rownum_trigger; select blob_to_bit(col3), clob_to_char(col4), row_number() over(order by 5) row_num from rownum_trigger; select blob_to_bit(col3), col1, row_number() over(order by 100) row_num from rownum_trigger; --TEST: order by column names and positions select col1, col2, blob_to_bit(col3), clob_to_char(col4), row_number() over(order by 1, col2 desc, 3, clob_to_char(col4) asc) row_num from rownum_trigger; --TEST: trigger action table select id, str, row_number() over(order by id) row_num from rownum_action order by 1; --TEST: OVER(PARTITION BY ORDER BY) clause --TEST: partition by bit(n) select col1, col2, blob_to_bit(col3), row_number() over(partition by col1 order by col1, blob_to_bit(col3)) from rownum_trigger; --TEST: partition by bit varying select col2, clob_to_char(col4), col1, row_number() over(partition by col2 order by col2, clob_to_char(col4), col1 desc) from rownum_trigger; --TEST: partition by blob select blob_to_bit(col3), row_number() over(partition by 1 order by blob_to_bit(col3), clob_to_char(col4)) row_num, col2 from rownum_trigger; --TEST: partition by clob select clob_to_char(col4), col1, row_number() over(partition by 1 order by clob_to_char(col4), 2 desc) row_num from rownum_trigger; --TEST: syntax error select col1, col2, row_number() over(order by col1, col2 partition by col2) from rownum_trigger; --TEST: trigger action table, partition by int select str, row_number() over(partition by id order by id), id from rownum_action order by 3; --TEST: trigger action table, partition by str select id, str, row_number() over(partition by str order by id) from rownum_action order by id; delete from rownum_trigger; drop trigger bef_ins; drop table rownum_trigger; drop table rownum_action;
-- @testpoint: 创建存储过程时带not package参数 合理报错 --创建存储过程带not package参数 create table test_emp_001(name varchar(10)); create or replace procedure test_proc_using_010() not package as v_sql varchar2(2000); begin v_sql := 'insert into test_emp_001 values (:v1)'; execute immediate v_sql using 'kimy'; end; / --调用存储过程 call test_proc_using_010(); --查看表结构 select * from test_emp_001; --清理环境 drop procedure test_proc_using_010; drop table test_emp_001; --创建存储过程不带not package参数 create table test_emp_001(name varchar(10)); create or replace procedure test_proc_using_010() as v_sql varchar2(2000); begin v_sql := 'insert into test_emp_001 values (:v1)'; execute immediate v_sql using 'kimy'; end; / --调用存储过程 call test_proc_using_010(); --查看表结构 select * from test_emp_001; --清理环境 drop procedure test_proc_using_010; drop table test_emp_001;
insert into tiposcarreras (descripcion) values ('Pregrado'); insert into tiposcarreras (descripcion) values ('Grado'); insert into tiposcarreras (descripcion) values ('Posgrado'); insert into regimenes (descripcion) values ('Mixto'); insert into regimenes (descripcion) values ('Diferenciado'); insert into tiposduraciones (descripcion) values ('bimestre'); insert into tiposduraciones (descripcion) values ('trimestre'); insert into tiposduraciones (descripcion) values ('cuatrimestre'); insert into tiposduraciones (descripcion) values ('años'); insert into modalidades (descripcion) values ('Presencial'); insert into modalidades (descripcion) values ('No presencial'); insert into modalidades (descripcion) values ('a distancia'); insert into areasocupacionales (descripcion) values ('sistema de salud publica'); insert into areasocupacionales (descripcion) values ('informática');
ALTER TABLE organizations ADD COLUMN IF NOT EXISTS is_deleted BOOLEAN DEFAULT false
select `trans`.`id` AS `id`,`users`.`id` AS `personid`,concat(`users`.`name`,' ',`users`.`famili`) AS `person`,`trans`.`transdate` AS `transdate`,(case when (`trans`.`creditor` = 0) then concat('-',`trans`.`debtor`) else `trans`.`creditor` end) AS `currency`,`trans`.`description` AS `description` from (`taa_transaction` `trans` join `taa_users` `users`) where (`users`.`id` = `trans`.`userid`)
-- phpMyAdmin SQL Dump -- version 3.3.10 -- http://www.phpmyadmin.net -- -- Host: 192.168.50.1 -- Generation Time: Aug 24, 2016 at 06:17 PM -- Server version: 1.0.110 -- PHP Version: 5.6.25 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!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 */; -- -- Database: `github_rundiz_nested-set` -- -- -------------------------------------------------------- -- -- Table structure for table `test_taxonomy` -- CREATE TABLE IF NOT EXISTS `test_taxonomy` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `parent_id` bigint(20) NOT NULL DEFAULT '0' COMMENT 'refer to this table column id. this column value must be integer. if it is root then this value must be 0, it can not be NULL.', `name` varchar(255) DEFAULT NULL COMMENT 'taxonomy name', `position` int(9) NOT NULL DEFAULT '0' COMMENT 'position when sort/order tags item.', `level` int(10) NOT NULL DEFAULT '1' COMMENT 'deep level of taxonomy hierarchy. begins at 1 (no sub items).', `left` int(10) NOT NULL DEFAULT '0' COMMENT 'for nested set model calculation. this will be able to select filtered parent id and all of its children.', `right` int(10) NOT NULL DEFAULT '0' COMMENT 'for nested set model calculation. this will be able to select filtered parent id and all of its children.', PRIMARY KEY (`id`), KEY `parent_id` (`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='contain taxonomy data such as category.' AUTO_INCREMENT=1 ; -- -- Dumping data for table `test_taxonomy` --
<gh_stars>0 CREATE TABLE pedidos ( id int primary key auto_increment, data date not null, data_confirmacao date not null, cliente_id int not null, funcionario_id int not null, CONSTRAINT `fk-cliente` FOREIGN KEY (`cliente_id`) REFERENCES `clientes` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT `fk-funcionario` FOREIGN KEY (`funcionario_id`) REFERENCES `funcionarios` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE ); INSERT INTO pedidos (data, data_confirmacao, cliente_id, funcionario_id) VALUES ('2008-05-19','1971-09-10', 20, 83), ('1987-12-26','1995-06-17', 507, 790), ('1995-03-05','2021-01-06', 772, 532), ('1978-03-09','2013-11-16', 814, 24), ('2020-04-21','2013-12-14', 478, 229), ('2006-05-24','1972-11-08', 369, 149), ('1995-11-27','1975-01-26', 905, 55), ('2004-01-02','1994-03-30', 531, 644), ('1990-11-06','2003-11-28', 444, 515), ('1980-03-14','1972-07-26', 745, 785), ('2012-05-20','2011-07-22', 273, 882), ('2007-09-21','1980-12-13', 608, 891), ('1989-10-08','1971-05-16', 894, 879), ('2019-06-15','2002-12-25', 98, 757), ('2005-08-14','2017-10-04', 8, 200), ('2007-05-27','1995-01-29', 900, 686), ('1989-05-16','2020-02-02', 559, 496), ('1992-03-02','1986-08-03', 556, 669), ('2018-09-01','2018-01-05', 989, 993), ('2014-07-22','1970-04-21', 841, 88), ('1980-11-01','2017-02-07', 205, 358), ('1989-04-18','1995-03-20', 400, 180), ('2020-08-27','2003-09-15', 741, 464), ('1984-02-14','1975-04-28', 541, 686), ('2010-07-30','2010-01-08', 964, 693), ('1990-02-03','2009-06-05', 289, 541), ('1987-05-06','2011-02-26', 907, 890), ('2003-04-04','1980-01-21', 145, 436), ('2011-10-19','1998-07-29', 518, 608), ('1984-10-16','1996-05-13', 492, 61), ('1995-01-24','1997-12-24', 858, 375), ('1994-07-15','2015-03-19', 530, 475), ('1986-05-01','1982-09-24', 617, 136), ('1981-06-09','2017-01-14', 571, 833), ('2008-03-27','1974-11-16', 45, 119), ('2009-12-03','2006-01-28', 468, 561), ('2016-07-28','1990-01-09', 813, 536), ('1997-07-27','1998-11-06', 241, 209), ('1996-06-05','1983-06-17', 890, 268), ('1995-07-03','1993-08-18', 361, 633), ('2008-09-25','1998-09-13', 100, 776), ('2018-10-06','2003-02-23', 393, 435), ('1975-03-15','2013-08-24', 67, 490), ('2014-06-04','2003-01-06', 826, 914), ('2018-08-14','1983-11-19', 819, 259), ('2005-03-07','1992-08-19', 395, 532), ('2016-12-13','2018-08-13', 185, 548), ('2015-09-12','1972-05-28', 394, 858), ('1995-11-05','1986-07-16', 752, 182), ('1998-01-09','1997-02-04', 370, 160), ('2020-04-22','1978-06-11', 220, 495), ('2014-09-07','2014-11-14', 215, 122), ('1970-03-26','1983-03-16', 566, 933), ('2008-08-24','1983-04-16', 488, 759), ('1971-11-22','2011-06-11', 762, 608), ('1975-01-13','2017-12-09', 813, 419), ('2003-12-24','2014-03-02', 57, 128), ('1983-03-16','1981-03-30', 973, 890), ('1989-06-06','1996-08-26', 289, 332), ('1979-10-29','2001-05-14', 206, 413), ('2020-11-16','1983-03-15', 388, 39), ('1981-03-07','1970-12-22', 693, 726), ('2008-11-18','2004-10-09', 352, 419), ('2013-07-27','2001-08-03', 78, 779), ('2019-08-15','2017-07-06', 524, 423), ('2003-06-05','1997-05-21', 991, 124), ('2004-11-18','1985-01-06', 718, 946), ('1975-01-10','1975-08-05', 535, 413), ('2012-03-09','2008-05-30', 512, 199), ('1975-02-28','2011-08-21', 650, 315), ('1990-11-04','2006-08-08', 112, 765), ('1979-09-29','1980-06-09', 768, 502), ('1990-03-04','1995-07-13', 120, 40), ('1979-08-08','1975-02-13', 905, 675), ('1970-03-02','1997-08-30', 424, 709), ('2011-05-25','1976-01-20', 632, 309), ('1974-08-19','2008-09-26', 383, 297), ('2018-10-04','1984-05-02', 677, 525), ('2007-12-29','2011-06-19', 443, 738), ('1993-04-24','1979-01-27', 864, 717), ('2014-01-04','2009-06-13', 427, 50), ('2020-10-30','1972-06-27', 1, 686), ('1999-04-01','2021-01-19', 313, 798), ('1983-02-26','1977-10-29', 441, 829), ('2013-09-05','1984-12-19', 93, 34), ('1973-10-10','1994-05-02', 198, 818), ('2005-08-22','1983-02-17', 381, 152), ('2019-08-14','1998-03-03', 102, 529), ('2015-10-29','1990-12-19', 810, 443), ('2001-01-09','1982-05-21', 376, 699), ('1978-05-13','1995-03-17', 873, 173), ('2010-10-27','1975-08-15', 525, 27), ('2019-08-16','2009-06-18', 602, 42), ('1978-02-02','2008-07-29', 166, 581), ('2019-02-01','1991-12-16', 291, 673), ('2015-03-21','2002-07-25', 926, 999), ('1992-01-06','2002-08-28', 172, 552), ('2005-05-07','1983-01-19', 817, 790), ('1980-11-04','1986-12-30', 699, 230), ('1999-12-15','1975-01-18', 243, 898), ('1989-08-27','1978-10-04', 167, 455), ('1981-07-18','1989-03-17', 128, 291), ('1979-07-19','2004-06-05', 791, 749), ('1999-08-27','2017-11-10', 115, 228), ('2018-05-13','1979-08-27', 60, 592), ('1988-01-18','2005-10-01', 872, 717), ('2021-03-17','2012-12-09', 393, 260), ('1978-05-12','1978-04-25', 802, 159), ('1975-08-02','1981-03-05', 908, 608), ('1987-11-12','2012-03-24', 232, 371), ('2001-01-05','1971-04-09', 604, 991), ('1993-04-18','2011-08-11', 249, 91), ('1985-02-16','1980-06-19', 286, 938), ('2003-11-07','1981-04-20', 979, 499), ('2013-09-02','2003-02-05', 457, 762), ('1986-01-04','1983-03-26', 891, 102), ('1992-07-12','1999-10-29', 244, 111), ('1997-04-02','2009-03-09', 84, 508), ('1977-06-16','2019-05-27', 407, 604), ('2014-05-20','2002-11-05', 905, 909), ('2019-04-29','2004-04-09', 14, 492), ('2002-06-15','1993-01-19', 597, 463), ('2007-06-30','1980-11-12', 665, 392), ('1979-09-25','1998-02-05', 645, 351), ('1974-04-30','1992-05-09', 19, 350), ('2015-01-07','1974-07-28', 179, 750), ('1984-12-27','1992-11-06', 467, 937), ('2019-12-09','2006-08-26', 351, 825), ('1992-09-23','1994-06-04', 548, 627), ('2007-01-26','1970-08-08', 986, 116), ('2003-04-08','2005-08-03', 244, 485), ('1970-01-06','1982-11-07', 401, 682), ('2010-12-06','2014-11-16', 413, 387), ('2002-07-31','2003-06-20', 34, 559), ('1978-05-30','1976-10-05', 671, 77), ('1974-08-07','1989-11-04', 78, 809), ('2000-05-26','2001-10-20', 848, 397), ('1983-05-17','1997-09-26', 896, 876), ('1989-12-05','1991-03-27', 909, 130), ('2012-01-10','1985-07-01', 908, 330), ('2016-07-20','2001-08-12', 576, 751), ('1971-12-07','2005-04-05', 768, 600), ('1991-07-12','2005-04-03', 107, 608), ('2012-02-03','1996-02-20', 522, 745), ('1989-03-12','1972-11-06', 404, 156), ('2013-10-05','1973-08-02', 443, 404), ('1997-09-03','1991-09-01', 855, 86), ('2013-02-17','1983-11-01', 276, 976), ('2014-11-22','1984-04-02', 979, 779), ('1992-03-20','1979-10-22', 76, 39), ('1990-04-10','2018-08-14', 54, 708), ('1998-12-22','1992-02-13', 213, 572), ('2008-02-20','2020-08-16', 436, 368), ('2013-03-04','1979-09-19', 614, 844), ('2018-03-23','1993-07-09', 812, 632), ('1988-09-27','2006-08-28', 585, 359), ('2016-10-24','2017-05-25', 782, 809), ('2013-03-03','2001-03-06', 481, 86), ('1987-06-01','2012-08-21', 531, 780), ('1981-10-15','1971-08-29', 513, 835), ('1975-06-26','2012-04-26', 139, 181), ('1982-09-23','1970-06-22', 963, 455), ('2017-01-07','2019-02-04', 61, 739), ('1985-12-05','1976-07-20', 583, 354), ('2006-05-23','1990-12-20', 595, 213), ('2010-12-06','2001-09-16', 999, 344), ('1981-01-22','1988-10-28', 394, 172), ('1970-05-04','1988-11-11', 612, 115), ('2010-05-03','1970-10-06', 784, 623), ('1990-09-17','2017-01-31', 560, 512), ('1999-06-02','1979-09-12', 351, 909), ('2000-12-08','1984-09-08', 670, 892), ('1984-04-08','1979-04-13', 510, 650), ('2017-06-30','1998-11-02', 927, 363), ('2001-01-31','1987-04-21', 499, 443), ('1988-03-29','1993-11-14', 435, 667), ('1971-03-29','2015-09-22', 704, 114), ('1989-09-18','1971-03-25', 195, 562), ('2009-05-21','2002-03-20', 272, 727), ('1979-07-18','1989-03-20', 227, 111), ('1980-05-13','1986-09-08', 566, 510), ('1986-01-02','1978-08-18', 515, 574), ('1999-09-02','1995-04-22', 201, 202), ('2020-10-28','2013-10-28', 852, 967), ('2001-11-07','1981-05-03', 248, 824), ('2019-09-27','1979-09-28', 586, 9), ('1976-04-05','2005-04-14', 449, 854), ('1993-08-12','1991-11-11', 889, 52), ('1986-12-18','1986-06-25', 547, 769), ('2017-01-15','1991-09-21', 745, 367), ('1993-08-20','1974-11-25', 654, 448), ('2006-09-24','1979-07-23', 649, 192), ('2006-06-26','2001-07-16', 164, 42), ('1994-10-31','1993-03-20', 998, 600), ('1973-07-27','1977-10-19', 409, 568), ('1975-06-21','1982-11-17', 732, 856), ('1999-10-22','1989-04-27', 115, 728), ('1975-01-23','1974-02-25', 169, 529), ('1993-07-14','1972-01-09', 735, 529), ('1999-01-01','2019-03-28', 571, 411), ('2018-11-13','1971-09-05', 368, 505), ('1977-07-22','2003-11-13', 277, 441), ('2011-04-28','2012-04-06', 137, 338), ('1975-08-12','1997-12-30', 815, 50), ('1977-03-10','1992-12-29', 853, 542), ('2013-05-26','1971-11-03', 287, 208), ('1989-05-20','1986-08-25', 457, 917), ('2001-09-16','1983-05-01', 997, 559), ('1984-12-31','2000-12-17', 947, 806), ('1999-02-21','1988-08-02', 165, 988), ('2013-05-19','1989-01-11', 612, 967), ('1970-04-17','1984-07-20', 895, 621), ('2003-08-23','2015-12-08', 299, 234), ('2017-08-25','1970-01-23', 177, 562), ('1976-07-03','1999-10-21', 247, 520), ('2007-02-17','1995-04-22', 500, 433), ('2004-04-01','1984-06-30', 387, 874), ('1977-09-08','1983-07-16', 54, 765), ('2017-07-26','1986-08-11', 561, 483), ('1980-06-09','1977-09-26', 637, 878), ('1988-05-10','1977-08-30', 118, 258), ('2019-01-03','2002-10-04', 153, 715), ('1972-06-02','1985-03-10', 424, 220), ('1990-01-25','2011-08-24', 339, 836), ('1976-11-09','1979-05-17', 150, 491), ('2014-05-27','2002-03-27', 65, 38), ('2007-03-23','2019-09-03', 987, 288), ('2005-07-29','2017-07-28', 935, 915), ('1983-04-26','1977-04-18', 665, 977), ('1989-12-02','1987-06-04', 387, 669), ('2008-04-20','2021-03-07', 834, 787), ('1972-10-03','1975-04-25', 502, 972), ('1996-12-11','2021-01-13', 149, 105), ('2002-07-17','2000-08-05', 351, 863), ('2018-01-21','1986-10-17', 221, 379), ('2012-02-08','1987-02-16', 271, 898), ('1978-03-05','1986-08-25', 102, 501), ('2015-11-15','1977-12-26', 936, 400), ('2004-11-10','1983-12-03', 440, 240), ('1979-06-26','1973-02-15', 952, 262), ('2019-02-13','2012-09-06', 592, 342), ('1997-12-30','1986-02-24', 288, 517), ('1987-06-28','1976-05-03', 549, 572), ('2007-08-01','2011-06-20', 782, 529), ('1980-07-31','1979-03-07', 576, 192), ('1986-11-16','1972-10-19', 128, 873), ('2004-10-29','1982-10-31', 822, 883), ('2004-10-19','1982-02-18', 853, 511), ('1977-07-13','2012-06-15', 863, 386), ('1983-11-06','2019-11-06', 322, 974), ('1983-02-14','1985-10-08', 691, 675), ('1979-01-12','2020-08-05', 837, 280), ('2011-03-25','1991-08-04', 869, 870), ('1996-05-12','2014-12-12', 611, 310), ('2000-04-13','1981-02-03', 222, 148), ('1970-07-15','2020-06-18', 101, 570), ('2000-04-29','1983-06-12', 62, 501), ('2002-02-21','1988-06-15', 543, 917), ('2012-01-04','1990-05-28', 533, 759), ('1980-05-15','1996-05-05', 740, 448), ('1986-01-25','2004-08-21', 406, 22), ('1997-03-25','2001-03-19', 103, 238), ('2003-02-09','2008-08-20', 980, 40), ('2020-02-02','1999-04-30', 583, 393), ('2007-05-07','2008-03-20', 627, 441), ('1992-05-15','2000-11-15', 965, 957), ('1996-02-21','1974-06-19', 812, 240), ('1991-08-25','2007-05-01', 896, 549), ('2015-12-17','1990-09-30', 262, 895), ('1992-05-10','1998-09-14', 995, 877), ('2011-10-31','2019-01-07', 761, 973), ('1997-03-18','1974-07-24', 200, 444), ('1991-08-26','2013-08-22', 4, 853), ('1983-03-25','2016-05-21', 396, 644), ('1987-01-27','2012-12-02', 425, 694), ('1996-03-10','1991-11-21', 26, 946), ('2011-08-17','1992-10-30', 635, 661), ('1979-03-16','2009-05-31', 664, 106), ('1989-01-30','2002-07-10', 21, 428), ('1984-01-31','1995-02-14', 576, 316), ('2010-07-28','1977-09-19', 701, 863), ('2003-08-15','2004-08-23', 86, 549), ('1978-06-10','2002-08-31', 179, 175), ('2005-10-15','1976-06-01', 94, 642), ('2019-10-21','2017-05-10', 759, 421), ('2001-02-10','1991-12-11', 986, 775), ('2014-09-09','2014-11-18', 204, 789), ('2004-09-16','1980-02-29', 208, 688), ('1973-07-19','1980-08-14', 969, 995), ('1983-05-18','2015-09-10', 424, 707), ('1989-06-20','1971-12-10', 533, 638), ('1981-06-06','2003-09-27', 927, 478), ('2011-04-26','1991-07-19', 514, 683), ('1977-03-22','1997-04-12', 154, 882), ('2007-10-04','1987-05-03', 327, 681), ('1980-09-15','2020-07-13', 717, 87), ('1995-06-12','2003-09-13', 43, 388), ('2009-11-08','2006-04-30', 328, 246), ('1988-07-29','1974-09-22', 624, 748), ('1992-01-23','2018-02-27', 144, 802), ('2020-05-19','1998-09-06', 325, 314), ('2019-02-28','1989-03-17', 468, 370), ('2005-02-14','2009-05-31', 875, 811), ('1987-04-07','2012-09-15', 428, 623), ('1972-11-04','1998-02-07', 773, 915), ('1981-01-17','2000-11-20', 123, 167), ('2005-01-12','1979-09-13', 910, 319), ('1987-08-31','1978-03-05', 616, 183), ('1975-06-16','2010-04-12', 780, 218), ('1997-04-28','2012-03-29', 1000, 132), ('2001-05-20','1992-08-29', 866, 839), ('1996-12-09','1998-10-14', 398, 115), ('2018-11-30','1999-07-16', 42, 675), ('2019-01-20','1998-05-01', 40, 553), ('2000-11-02','1979-07-09', 667, 640), ('2000-09-30','2015-07-06', 879, 398), ('2016-07-21','1970-06-08', 3, 296), ('1988-08-26','2012-12-23', 572, 109), ('1971-05-18','1980-11-16', 574, 865), ('1979-06-29','1985-01-27', 623, 837), ('1986-03-22','2000-03-26', 81, 818), ('2019-12-05','2006-01-12', 379, 207), ('1981-07-27','1973-08-13', 568, 553), ('1982-05-31','1989-11-16', 251, 797), ('1980-02-17','1991-11-11', 111, 625), ('1983-03-17','2008-12-08', 981, 449), ('1993-08-31','1973-04-27', 16, 69), ('1994-11-11','1984-04-15', 859, 195), ('1974-02-06','1975-12-17', 364, 103), ('1992-03-13','1986-06-21', 872, 503), ('1981-12-17','1977-10-21', 825, 69), ('1988-06-23','2002-09-11', 591, 690), ('1996-09-29','1987-05-03', 999, 119), ('1984-01-22','1994-09-12', 572, 585), ('1978-05-26','1989-05-06', 205, 807), ('1972-02-05','1993-06-27', 703, 338), ('1973-05-20','2008-08-18', 147, 797), ('2013-12-03','1979-10-30', 18, 887), ('1975-08-03','2007-12-26', 488, 489), ('1990-10-05','2003-11-18', 876, 430), ('1999-06-27','2006-10-19', 134, 708), ('1986-09-14','2015-05-26', 431, 587), ('2017-03-25','2016-07-12', 229, 480), ('1979-03-24','1995-03-04', 995, 427), ('2018-08-20','2015-01-05', 374, 834), ('2015-07-24','1993-10-18', 965, 91), ('1989-11-18','1982-02-28', 685, 12), ('1990-12-23','2019-08-19', 669, 214), ('2005-09-20','2015-06-30', 143, 44), ('1998-10-08','2017-01-15', 332, 847), ('2007-01-27','2017-11-20', 827, 138), ('2019-11-03','1999-04-04', 715, 933), ('1986-09-30','2006-01-09', 603, 598), ('1995-04-20','1982-10-18', 529, 307), ('1990-04-17','2007-04-18', 861, 757), ('1988-03-09','1997-02-28', 177, 805), ('1978-01-23','1999-06-30', 473, 706), ('1985-12-20','2003-12-26', 729, 781), ('2004-04-03','2019-09-12', 503, 200), ('2006-03-10','2008-06-03', 183, 805), ('1991-05-31','1995-11-23', 628, 836), ('1986-09-18','1997-11-12', 566, 155), ('2004-12-26','1983-03-20', 1, 906), ('1997-01-16','2009-04-27', 712, 678), ('1995-07-30','2014-06-19', 933, 302), ('1984-07-24','2015-12-15', 771, 613), ('1973-08-06','2006-07-28', 164, 113), ('2016-03-19','1975-05-12', 110, 675), ('2000-10-26','1998-02-16', 767, 795), ('2016-05-13','1986-10-13', 949, 539), ('2004-12-10','2016-08-31', 889, 937), ('1974-11-03','1986-12-28', 368, 303), ('1997-04-11','1994-01-28', 292, 368), ('1982-09-13','2003-11-23', 948, 423), ('2013-08-14','1972-01-27', 334, 936), ('2013-12-17','1974-01-07', 707, 951), ('2020-03-03','2009-07-03', 684, 942), ('1983-06-12','2004-01-26', 77, 663), ('2009-12-09','1973-01-17', 693, 54), ('1997-04-06','1981-05-15', 572, 92), ('1978-09-12','1977-10-23', 671, 596), ('1982-10-31','2009-08-12', 574, 299), ('2019-08-09','1997-05-17', 504, 145), ('1978-12-31','1996-12-08', 872, 974), ('2012-03-06','2001-01-19', 242, 211), ('1980-07-01','2016-11-14', 858, 93), ('1982-07-27','1994-09-19', 982, 874), ('2014-03-15','1993-09-10', 264, 388), ('2017-10-12','1978-12-28', 772, 56), ('1998-05-13','1987-03-21', 764, 283), ('2019-11-28','1975-11-07', 831, 647), ('2000-01-29','1998-07-18', 866, 523), ('2006-07-04','2010-05-05', 522, 157), ('1973-10-23','1978-11-13', 375, 719), ('2000-03-27','2003-02-04', 222, 971), ('1970-03-06','2001-05-18', 169, 842), ('1975-02-27','2019-09-17', 814, 127), ('1977-09-15','1986-03-17', 545, 692), ('2017-02-20','1983-05-25', 31, 447), ('1995-12-07','1983-03-30', 835, 486), ('1973-04-08','2008-03-20', 291, 196), ('2001-05-11','1999-11-13', 285, 534), ('1986-11-02','1992-04-09', 91, 983), ('2016-04-23','1994-02-12', 609, 448), ('2006-08-29','2007-11-11', 585, 628), ('2016-02-14','2016-03-09', 526, 388), ('2000-02-15','2013-02-21', 86, 827), ('1988-09-23','1995-12-23', 731, 716), ('2007-01-31','2017-01-11', 766, 524), ('2013-12-23','1971-09-10', 225, 677), ('1983-09-28','1989-11-01', 582, 116), ('1990-07-13','1980-07-12', 382, 177), ('1972-07-14','2006-06-03', 188, 911), ('1986-11-30','2021-01-09', 204, 156), ('2013-12-01','2017-04-08', 195, 967), ('2015-05-11','1981-04-11', 788, 507), ('2011-08-18','2004-11-06', 201, 376), ('2020-04-02','2005-02-10', 168, 694), ('1971-08-07','1980-02-03', 775, 165), ('1989-06-04','1976-01-30', 544, 164), ('1971-08-30','2010-06-18', 373, 556), ('1997-03-08','1993-05-31', 877, 323), ('2020-07-24','1990-04-13', 417, 433), ('2015-02-11','1976-08-18', 406, 329), ('2012-01-15','2011-03-07', 132, 609), ('2003-09-02','1990-11-21', 328, 454), ('2007-07-08','1979-06-25', 248, 554), ('2006-03-09','1977-10-08', 477, 305), ('2019-06-23','1975-05-05', 77, 807), ('1988-07-18','1998-04-20', 127, 468), ('1989-07-10','2012-02-18', 454, 13), ('2000-03-04','2007-12-30', 946, 112), ('1993-03-30','1992-02-22', 992, 818), ('1975-10-10','2000-12-17', 489, 447), ('1999-02-16','2000-03-27', 819, 189), ('2004-04-04','1986-10-14', 672, 790), ('1999-10-28','2008-12-15', 149, 213), ('2006-03-12','2007-03-13', 508, 613), ('1991-08-19','2004-06-07', 734, 862), ('2011-09-14','1977-02-14', 648, 250), ('1987-12-12','1997-05-18', 515, 816), ('2010-06-07','1988-03-27', 131, 65), ('1984-05-20','2015-08-08', 454, 967), ('2004-06-13','2017-11-04', 435, 531), ('1992-10-07','2003-03-14', 7, 55), ('1996-08-23','1985-08-29', 72, 735), ('1974-09-17','1998-06-28', 51, 254), ('2001-01-02','1990-02-08', 626, 337), ('2012-05-20','1973-07-16', 609, 307), ('1977-10-31','1993-10-21', 887, 267), ('2014-07-01','1984-12-28', 218, 499), ('1974-03-15','1997-09-16', 976, 746), ('2014-08-26','1982-05-17', 97, 47), ('1973-03-31','1997-11-29', 822, 55), ('2010-05-08','2007-06-26', 161, 369), ('1992-08-31','1976-03-28', 154, 286), ('2007-11-02','1989-04-29', 59, 48), ('2007-11-08','2011-02-13', 300, 411), ('2001-07-27','2007-07-25', 867, 803), ('1986-05-27','1970-01-29', 513, 527), ('2004-12-26','1988-04-19', 694, 67), ('2010-02-24','1975-04-25', 733, 932), ('1993-02-25','1988-09-12', 634, 763), ('2015-10-21','1990-12-30', 156, 604), ('1993-05-02','1993-03-27', 501, 749), ('2012-11-23','1975-07-10', 28, 992), ('2013-07-18','2017-01-17', 106, 737), ('2006-06-29','2019-03-28', 540, 155), ('2020-10-31','2012-09-04', 390, 573), ('2019-11-08','2011-10-30', 194, 21), ('1982-11-02','1990-03-26', 925, 34), ('1987-09-16','2002-07-13', 245, 750), ('1987-10-01','2016-07-23', 27, 423), ('2002-03-17','1970-08-21', 754, 634), ('2018-12-11','1994-09-23', 127, 525), ('1984-10-23','1988-07-03', 172, 329), ('1994-01-01','1994-10-29', 999, 342), ('1979-03-10','1971-01-14', 188, 810), ('1981-04-21','1972-10-23', 335, 146), ('1977-01-21','1983-07-18', 82, 90), ('1994-12-25','1978-05-05', 412, 604), ('2009-03-05','1988-02-09', 32, 441), ('1998-12-18','2019-01-24', 928, 818), ('1973-10-30','2020-08-26', 860, 679), ('1994-05-10','2006-07-19', 579, 298), ('2008-11-24','1983-01-11', 87, 455), ('1977-08-21','1987-05-26', 90, 10), ('1977-08-12','1998-02-10', 203, 6), ('2018-06-25','1995-04-24', 452, 616), ('1976-09-22','1970-08-11', 510, 76), ('1981-12-11','1985-01-30', 826, 364), ('1993-12-30','2017-10-28', 912, 932), ('1990-11-05','1977-02-25', 888, 475), ('1970-02-24','1993-06-21', 396, 746), ('2007-12-27','2015-02-27', 506, 982), ('1994-07-03','1982-10-06', 856, 60), ('1996-11-30','2009-02-20', 634, 845), ('2009-09-16','1972-10-25', 286, 154), ('2003-07-25','2013-11-22', 76, 496), ('1971-10-08','1973-07-01', 995, 507), ('2011-01-19','1975-11-27', 33, 780), ('2008-10-04','2004-02-28', 464, 148), ('2018-05-09','2006-07-26', 882, 411), ('1977-04-01','1978-07-14', 5, 995), ('2013-10-23','1974-04-24', 780, 839), ('2008-08-21','2017-07-28', 686, 331), ('2003-02-14','1989-06-30', 792, 69), ('1979-01-03','1984-12-05', 503, 874), ('1983-03-03','1995-08-25', 981, 19), ('2015-02-17','1975-06-26', 477, 816), ('1975-01-29','2017-10-09', 59, 364), ('1999-09-02','1974-09-24', 924, 442), ('2014-03-21','1992-12-07', 15, 90), ('1974-11-09','1985-07-12', 148, 193), ('1993-10-14','1991-06-12', 491, 984), ('2012-06-20','2020-03-06', 75, 703), ('2013-10-31','1990-05-20', 742, 897), ('1992-05-13','1984-07-27', 677, 271), ('1981-02-03','2001-06-08', 998, 881), ('1974-11-01','1970-10-19', 881, 661), ('1986-11-24','1984-03-22', 129, 133), ('1987-08-07','1970-05-01', 18, 543), ('2000-08-27','1972-09-19', 964, 586), ('2000-12-23','1976-12-20', 918, 965), ('2013-01-07','1977-03-19', 174, 123), ('1988-02-11','2014-11-07', 36, 547), ('2007-05-12','1981-12-31', 896, 506), ('2017-05-01','2014-11-29', 282, 110), ('1977-03-07','1999-02-17', 867, 395), ('2011-07-28','2001-10-21', 39, 261), ('2019-09-04','2010-08-01', 418, 637), ('2002-08-22','2006-09-08', 746, 831), ('2001-05-01','1987-02-03', 872, 875), ('1982-06-04','1999-06-16', 241, 309), ('1973-04-16','2018-07-03', 721, 344), ('2011-01-26','1971-07-03', 965, 877), ('2017-12-20','1996-01-30', 301, 875), ('1973-04-24','1976-06-21', 785, 427), ('1970-07-09','1975-09-20', 376, 695), ('2013-08-27','2020-09-07', 243, 299), ('1979-01-13','1971-03-20', 495, 785), ('2004-01-08','2017-01-25', 190, 160), ('1976-07-16','2007-12-19', 3, 692), ('1999-07-09','1993-10-14', 733, 337), ('1986-11-15','2002-09-15', 943, 540), ('2013-03-20','2006-04-16', 241, 231), ('1978-03-25','1972-03-23', 720, 219), ('1983-05-23','1970-03-22', 562, 587), ('2018-12-22','1996-08-04', 514, 124), ('1980-06-22','1979-09-29', 634, 511), ('1987-02-14','1973-05-15', 938, 709), ('1986-07-09','1979-05-21', 96, 996), ('1984-05-02','2017-11-28', 167, 126), ('1972-08-16','2011-01-13', 364, 332), ('1998-10-05','2013-08-16', 699, 839), ('2004-12-27','1992-07-26', 420, 340), ('1971-01-08','1977-03-14', 966, 152), ('2005-09-23','1979-01-29', 39, 582), ('2017-05-27','1993-04-03', 356, 303), ('1984-09-09','2020-03-22', 118, 954), ('1970-05-22','2015-07-19', 441, 116), ('1998-12-06','1988-03-13', 861, 924), ('1981-09-29','2020-11-22', 879, 459), ('1985-07-12','2002-01-31', 904, 904), ('2012-06-06','1986-12-24', 325, 60), ('2018-04-18','1985-03-05', 868, 433), ('2019-05-31','1989-12-13', 410, 540), ('1971-12-11','2017-03-31', 999, 125), ('1979-12-27','1971-08-23', 349, 547), ('2010-06-04','2003-07-17', 996, 202), ('1987-07-30','2008-06-14', 74, 206), ('2015-07-30','1990-03-02', 466, 665), ('1990-01-15','2001-06-26', 706, 830), ('2000-10-15','2019-12-12', 237, 304), ('2008-02-23','1996-03-03', 50, 367), ('1972-07-07','2010-01-30', 18, 103), ('1975-04-04','1993-12-25', 265, 272), ('1973-12-21','1988-09-07', 602, 798), ('2007-05-31','1975-04-17', 322, 95), ('1986-10-03','1973-02-12', 557, 181), ('1985-04-15','2011-06-02', 727, 947), ('2000-12-06','1990-10-11', 999, 908), ('2010-12-12','1987-02-21', 593, 92), ('1992-02-27','1997-02-26', 558, 523), ('2018-11-22','1987-02-20', 654, 751), ('2008-07-19','1990-10-15', 110, 87), ('1993-05-28','2013-09-26', 777, 199), ('1987-07-20','1982-09-29', 929, 134), ('1984-03-15','2017-08-13', 384, 608), ('1976-03-31','1986-03-28', 822, 877), ('1996-04-04','1980-06-03', 711, 8), ('1997-08-18','1986-06-24', 53, 994), ('2011-12-09','1988-04-22', 881, 332), ('1970-11-18','2020-02-07', 355, 402), ('2001-12-23','2016-02-01', 949, 220), ('1984-08-22','1999-02-10', 647, 134), ('2018-06-08','2001-12-13', 948, 454), ('2009-06-29','1971-06-02', 968, 920), ('1997-03-12','2003-07-20', 19, 306), ('1981-06-08','2007-06-24', 169, 482), ('1984-03-30','1985-01-10', 962, 923), ('1984-12-14','1986-10-07', 698, 767), ('2006-07-22','2001-08-08', 851, 513), ('1976-11-19','2005-10-20', 852, 669), ('1971-07-15','2019-09-19', 543, 626), ('2014-03-19','2012-07-28', 531, 152), ('1973-03-09','2014-07-16', 384, 122), ('1976-01-10','1993-09-22', 31, 979), ('1988-01-18','1990-05-28', 161, 717), ('2002-02-25','1982-08-11', 643, 418), ('1991-11-10','2017-10-04', 525, 375), ('1999-11-04','2016-09-02', 217, 391), ('1986-06-09','1990-03-23', 477, 511), ('1986-02-24','1982-08-07', 816, 121), ('1988-10-05','1977-05-16', 936, 964), ('1974-01-11','2005-11-09', 638, 559), ('1990-04-24','1975-08-19', 149, 907), ('1977-10-13','1992-06-20', 748, 65), ('1976-02-16','2020-06-14', 469, 179), ('1991-03-15','2019-01-27', 71, 783), ('1981-02-27','2021-03-09', 713, 53), ('2009-11-18','1981-11-06', 165, 260), ('1996-06-04','1981-03-27', 901, 309), ('2020-09-26','1988-10-12', 783, 897), ('1990-11-17','1997-03-18', 36, 810), ('1998-08-24','1983-11-16', 106, 617), ('1979-03-26','1982-11-24', 202, 910), ('2002-02-15','1972-03-15', 334, 788), ('1990-06-13','1993-06-24', 657, 664), ('2000-01-29','2009-12-19', 200, 186), ('1973-07-25','1973-07-02', 552, 159), ('2013-11-22','1976-09-09', 538, 48), ('2003-11-23','1989-07-18', 294, 214), ('1995-03-28','1973-04-18', 114, 219), ('2005-08-16','2015-08-19', 269, 259), ('1994-08-06','2019-06-17', 200, 755), ('2005-10-01','1972-01-05', 518, 803), ('2007-07-17','2014-05-03', 184, 262), ('1989-05-08','1977-10-05', 655, 96), ('1992-05-08','2018-08-31', 859, 761), ('1999-09-23','1995-12-13', 457, 695), ('2016-06-11','2005-04-16', 255, 846), ('1986-07-09','1974-03-24', 128, 333), ('1998-04-27','1999-09-29', 614, 7), ('2002-06-10','2003-12-26', 880, 475), ('1997-01-06','2004-08-22', 193, 237), ('2020-10-31','2011-06-24', 122, 323), ('2015-04-30','1977-03-08', 560, 138), ('1990-03-26','2020-06-01', 437, 580), ('1987-07-21','1983-12-17', 503, 216), ('1983-12-10','2013-09-21', 2, 585), ('2018-06-17','2004-05-11', 608, 966), ('1973-07-01','1981-03-14', 506, 651), ('1983-12-21','1973-07-20', 289, 538), ('2015-06-30','1989-11-30', 38, 260), ('1996-02-21','1972-03-17', 129, 949), ('1988-04-12','2003-07-01', 458, 430), ('2008-05-25','1996-12-09', 1, 855), ('1977-10-30','1973-06-20', 576, 226), ('2019-02-16','1972-09-27', 575, 630), ('2004-08-15','2000-09-03', 225, 71), ('2010-07-06','1975-10-16', 143, 74), ('1993-09-13','2009-07-17', 486, 157), ('1997-06-16','2009-03-31', 504, 147), ('1997-11-14','2003-01-20', 653, 983), ('2017-09-08','1976-12-06', 110, 193), ('1989-08-12','2004-06-02', 388, 651), ('2020-05-23','2019-11-17', 243, 596), ('2000-01-24','1981-12-23', 177, 525), ('2005-12-27','1973-04-12', 542, 866), ('2020-03-29','1988-11-24', 590, 102), ('1998-02-14','1970-08-21', 155, 204), ('2006-05-28','1987-10-31', 200, 810), ('1975-07-30','2013-10-02', 111, 806), ('1989-07-17','1990-11-12', 328, 22), ('1987-07-25','1996-12-18', 678, 991), ('2019-03-17','1985-11-22', 728, 683), ('2014-04-28','2007-11-03', 595, 153), ('2014-07-08','1983-01-03', 940, 560), ('1972-06-13','2013-06-11', 208, 952), ('1981-01-31','2020-07-15', 760, 467), ('2011-12-23','1972-08-25', 859, 962), ('1991-07-29','1980-02-28', 638, 249), ('1976-04-25','1987-01-07', 930, 963), ('1970-11-17','2013-10-01', 477, 368), ('1980-02-19','1976-12-04', 715, 746), ('2015-06-06','1994-01-12', 667, 281), ('1987-02-03','1982-07-09', 809, 864), ('2004-07-05','1984-10-06', 850, 410), ('1977-09-27','2012-02-06', 279, 298), ('2002-07-01','2020-10-01', 720, 414), ('1977-10-09','1975-03-29', 577, 164), ('1986-06-21','1970-12-25', 313, 76), ('1984-05-23','2006-05-22', 920, 574), ('1974-10-31','2015-01-20', 626, 418), ('1992-02-13','2017-02-13', 691, 693), ('2011-07-11','2018-09-18', 772, 507), ('1977-10-29','2003-06-27', 825, 537), ('1992-05-16','1999-10-21', 374, 348), ('2013-06-22','2013-02-08', 980, 207), ('1979-01-10','2016-03-11', 928, 804), ('1987-06-15','1986-03-28', 860, 607), ('2012-08-24','2016-03-23', 692, 626), ('1978-08-02','1996-05-30', 702, 256), ('1980-04-07','1987-05-11', 308, 911), ('1983-01-06','1992-02-23', 360, 20), ('1995-11-29','2004-11-30', 594, 543), ('2011-10-22','2016-02-03', 891, 386), ('1999-11-08','1980-05-27', 707, 935), ('2008-12-22','2000-02-13', 437, 658), ('2017-11-18','1982-07-02', 457, 580), ('2003-08-14','2012-08-02', 409, 497), ('2004-01-16','1998-02-26', 107, 505), ('2002-03-05','2002-04-04', 683, 476), ('2016-10-30','1991-01-14', 601, 916), ('1992-01-26','1995-01-17', 994, 238), ('1976-04-24','1989-06-02', 462, 517), ('2007-04-12','1976-09-04', 99, 46), ('2000-11-17','1979-01-03', 523, 325), ('1980-09-25','2005-07-13', 892, 166), ('1991-07-27','1997-01-08', 414, 711), ('1979-07-28','1998-02-22', 221, 996), ('1987-03-06','1974-05-22', 157, 121), ('1974-08-02','1983-05-24', 949, 600), ('1982-02-07','2014-12-03', 146, 74), ('2015-05-20','1998-01-23', 666, 602), ('1971-09-15','2013-05-22', 831, 597), ('2002-10-28','1989-05-26', 337, 204), ('2006-08-27','2006-06-07', 166, 355), ('2018-10-31','1974-08-21', 619, 257), ('1999-01-12','1972-09-05', 368, 621), ('1976-10-27','2013-07-12', 419, 764), ('2020-02-09','1970-12-27', 294, 824), ('2018-09-16','2002-02-13', 996, 356), ('1985-12-04','2014-10-27', 45, 946), ('1992-03-14','1971-08-16', 407, 212), ('2009-09-25','1973-04-26', 606, 987), ('1997-11-18','2014-03-20', 411, 306), ('2003-10-10','1976-04-25', 92, 653), ('1985-02-06','2000-07-04', 911, 570), ('1979-11-23','2004-03-17', 702, 602), ('1975-09-28','1986-03-26', 84, 533), ('1999-06-09','1971-06-15', 308, 770), ('2004-03-23','2021-01-31', 940, 333), ('1989-05-18','2015-05-07', 285, 313), ('1970-11-13','1985-10-11', 276, 134), ('2013-10-22','2020-05-16', 138, 778), ('1973-04-09','1976-03-13', 903, 610), ('1982-05-07','1979-01-02', 471, 900), ('1972-07-11','1985-01-05', 304, 968), ('1972-01-03','2021-03-14', 761, 443), ('1972-08-10','1997-12-20', 592, 404), ('2018-11-21','1970-07-17', 223, 696), ('2013-12-04','1987-07-10', 208, 258), ('1998-02-07','1983-06-02', 717, 696), ('1992-08-18','2001-07-26', 559, 811), ('1998-10-13','2020-09-24', 731, 401), ('1973-03-21','1971-08-23', 45, 521), ('2016-03-10','1987-01-01', 354, 471), ('2004-07-10','1972-02-25', 591, 983), ('2002-10-13','1989-05-15', 112, 387), ('2007-11-12','1992-12-24', 348, 724), ('1998-09-10','1995-03-18', 44, 569), ('2008-11-01','1985-07-12', 70, 305), ('2004-01-19','1989-06-26', 843, 524), ('2014-01-20','1978-03-22', 518, 300), ('1994-04-12','2001-02-13', 733, 94), ('1980-01-28','2007-12-18', 817, 759), ('1970-10-25','2003-11-05', 479, 950), ('1995-09-03','2004-09-11', 539, 428), ('2006-11-12','1997-07-16', 366, 129), ('1983-04-01','1993-04-30', 37, 449), ('2003-02-26','1990-05-16', 137, 241), ('1998-02-13','1973-06-19', 465, 555), ('1971-12-30','1979-07-12', 241, 489), ('1977-01-10','2015-06-14', 171, 193), ('1979-05-02','1999-04-15', 356, 366), ('1981-12-31','2012-06-07', 970, 645), ('1989-01-17','1995-09-20', 3, 681), ('2020-08-30','1983-11-04', 129, 857), ('1972-01-24','1987-01-13', 460, 23), ('1984-01-14','2002-08-15', 422, 631), ('2014-03-27','2011-09-24', 25, 988), ('1979-03-25','2010-12-14', 146, 337), ('2003-09-01','1980-03-29', 251, 49), ('1971-04-11','2007-12-09', 263, 896), ('2014-04-15','1981-05-25', 197, 128), ('1998-02-26','2002-01-03', 46, 796), ('1976-06-25','1994-06-15', 341, 944), ('1977-01-07','1995-12-12', 100, 577), ('2016-06-19','1998-08-06', 115, 658), ('1982-03-20','1995-11-12', 405, 501), ('1979-09-21','1997-01-06', 633, 746), ('2010-09-06','1972-05-09', 540, 262), ('1988-09-01','2016-10-30', 443, 458), ('1999-09-29','2002-01-12', 218, 227), ('2015-12-01','1989-06-18', 879, 353), ('1984-02-08','1971-11-04', 282, 263), ('1984-07-04','1970-12-24', 730, 185), ('1984-05-18','1976-02-14', 294, 553), ('2006-12-23','1998-10-23', 508, 387), ('2001-05-05','1997-10-23', 224, 65), ('1994-12-09','1999-01-12', 485, 239), ('1972-09-11','2010-03-02', 565, 244), ('2020-12-23','2015-01-07', 967, 540), ('2003-02-06','2020-04-23', 151, 600), ('2003-08-05','1972-11-03', 295, 425), ('2007-04-18','2003-08-08', 855, 434), ('2017-10-07','2010-09-26', 946, 576), ('1988-09-21','1982-05-05', 872, 280), ('2007-04-20','1996-03-26', 171, 413), ('1994-11-03','1984-06-20', 338, 308), ('1999-03-05','2018-08-06', 771, 440), ('1982-12-05','2014-04-16', 192, 781), ('2009-07-03','2015-11-25', 348, 576), ('1977-12-09','1971-01-31', 685, 411), ('1974-04-17','1976-01-28', 143, 273), ('2001-03-31','2013-01-22', 782, 149), ('2000-06-10','1973-12-15', 628, 460), ('2004-11-03','1970-04-22', 41, 890), ('1976-01-27','1986-07-10', 330, 585), ('1985-12-09','1988-08-23', 327, 395), ('2014-01-25','2005-11-06', 658, 187), ('2011-05-30','2002-08-05', 557, 848), ('1972-01-20','1988-07-27', 966, 258), ('1974-10-02','1988-01-02', 910, 878), ('2001-03-02','1978-05-16', 776, 686), ('1994-03-02','1984-05-23', 333, 696), ('2007-05-18','2005-12-19', 530, 788), ('1976-09-14','2004-12-14', 834, 918), ('1992-08-21','1977-09-29', 765, 153), ('1998-03-18','1978-05-17', 514, 430), ('1992-04-06','2011-10-22', 210, 2), ('1984-04-06','1970-10-25', 284, 688), ('2007-10-11','2018-08-25', 267, 754), ('1979-01-09','2003-03-25', 968, 618), ('1982-09-19','2008-01-03', 60, 929), ('1982-07-21','1972-05-05', 701, 831), ('2008-04-29','1984-04-10', 844, 300), ('1996-01-07','2001-10-26', 193, 603), ('1973-10-03','1987-09-24', 598, 651), ('1998-07-28','2009-05-19', 435, 745), ('1979-12-28','1972-07-01', 718, 277), ('1983-09-13','1983-03-06', 744, 12), ('2007-05-09','1976-08-14', 658, 275), ('2017-01-09','1980-08-20', 943, 718), ('1983-07-10','1972-07-22', 26, 119), ('2003-08-28','2001-08-01', 936, 5), ('2005-09-19','2009-03-20', 846, 64), ('1991-02-25','2004-04-11', 116, 952), ('1992-09-27','2009-03-21', 703, 115), ('1985-06-22','1974-11-24', 946, 609), ('1980-01-24','1981-01-11', 905, 920), ('2016-12-05','1974-01-07', 170, 847), ('1977-07-06','1988-09-16', 871, 631), ('2015-12-19','2006-09-24', 723, 660), ('1971-07-01','1989-05-06', 155, 15), ('1994-01-15','1976-11-07', 269, 321), ('1982-12-16','1983-07-18', 491, 516), ('2011-12-26','1988-06-12', 998, 540), ('1979-11-26','1973-01-09', 996, 11), ('1975-03-11','1970-12-13', 265, 404), ('1996-05-04','2009-04-07', 698, 214), ('2009-05-20','2016-07-28', 6, 379), ('2012-04-06','1977-05-19', 389, 102), ('1977-05-14','2014-10-10', 646, 935), ('1995-06-15','2000-03-08', 735, 330), ('1997-07-17','1991-02-17', 424, 911), ('2012-04-25','1989-06-27', 484, 770), ('2009-07-31','1982-04-11', 118, 618), ('2003-06-02','1977-10-30', 129, 567), ('2004-06-26','1995-11-16', 211, 435), ('1988-10-24','2002-04-24', 155, 790), ('2005-06-23','1987-12-19', 354, 763), ('2000-06-27','1996-10-14', 407, 462), ('1995-04-07','2015-09-27', 241, 178), ('2019-03-14','1970-12-26', 311, 336), ('2009-04-26','1999-12-15', 578, 210), ('1988-08-05','1978-02-08', 447, 547), ('2001-10-16','1997-01-02', 372, 129), ('2014-12-01','2008-01-01', 120, 988), ('1987-11-30','1990-11-01', 864, 553), ('1972-04-02','1996-04-29', 630, 914), ('2010-07-01','2013-04-26', 412, 223), ('1979-12-16','1999-05-21', 916, 206), ('2021-03-26','2015-02-22', 332, 645), ('1981-10-20','1983-05-15', 340, 37), ('2002-01-12','2018-06-16', 405, 755), ('1970-04-18','1993-11-18', 40, 116), ('1996-09-01','2006-10-26', 94, 739), ('2011-11-11','1987-10-30', 984, 963), ('1973-03-06','2014-01-17', 976, 711), ('2020-03-23','1972-01-16', 547, 993), ('2002-03-20','1977-02-06', 263, 687), ('1993-04-16','2020-06-25', 814, 161), ('2000-11-11','2019-01-20', 244, 176), ('2007-06-18','2017-01-21', 10, 915), ('2005-07-03','1971-06-04', 278, 106), ('1999-06-30','2003-04-13', 433, 610), ('1999-07-11','2016-05-20', 326, 137), ('1995-08-05','2006-06-22', 572, 775), ('2004-11-20','1974-02-06', 470, 710), ('2000-03-15','1997-10-24', 569, 956), ('1987-01-10','2009-02-06', 499, 629), ('2002-08-15','2019-05-21', 235, 246), ('1971-03-01','1971-07-30', 847, 667), ('1998-12-28','1999-04-29', 122, 531), ('1987-07-10','1980-04-09', 784, 530), ('2002-06-02','2002-10-14', 383, 506), ('2009-01-18','1996-01-09', 270, 786), ('2016-01-29','1975-09-12', 45, 375), ('2020-03-07','1979-10-01', 612, 600), ('1997-09-02','1999-09-19', 865, 113), ('1992-07-09','2009-09-30', 243, 420), ('1986-01-31','1986-05-23', 976, 564), ('1984-11-27','2009-09-23', 500, 637), ('2001-07-26','1988-05-25', 59, 254), ('1984-02-05','1972-05-28', 17, 739), ('2009-11-09','1984-04-14', 308, 262), ('1983-01-23','2006-09-23', 342, 24), ('1980-07-21','1987-08-21', 273, 538), ('1979-04-25','1996-11-07', 638, 963), ('1995-11-26','1970-07-22', 917, 124), ('2018-10-01','1995-09-07', 150, 808), ('1979-06-10','1989-11-21', 461, 572), ('1978-07-02','1972-11-15', 411, 488), ('2021-03-01','1976-03-01', 743, 906), ('1992-12-04','1990-03-02', 752, 724), ('1998-10-29','1975-08-18', 801, 221), ('2004-08-22','1971-11-07', 801, 997), ('1994-05-15','1993-04-29', 752, 512), ('2014-10-11','1997-04-03', 387, 846), ('2019-10-18','1974-02-07', 565, 344), ('1977-08-08','2015-02-03', 332, 325), ('2018-01-17','1991-08-22', 388, 387), ('1971-04-24','1990-07-06', 936, 539), ('2018-09-11','1986-11-07', 101, 882), ('2012-12-24','1973-03-18', 602, 642), ('1983-02-21','2008-02-28', 784, 785), ('1999-03-02','1996-04-26', 269, 76), ('2005-03-29','2011-01-16', 166, 711), ('1987-09-27','2010-12-12', 481, 606), ('1977-12-11','1974-11-27', 587, 167), ('1975-06-08','1990-05-06', 465, 386), ('1998-04-01','1979-03-07', 266, 270), ('2014-01-29','1972-02-21', 225, 10), ('2012-04-19','1984-09-16', 481, 507), ('2001-11-17','1989-01-09', 358, 655), ('2006-04-02','1995-09-20', 820, 653), ('1992-11-19','1979-06-10', 110, 180), ('1984-11-05','1974-09-09', 254, 745), ('1977-04-03','1975-01-24', 71, 851), ('2002-12-31','1970-09-25', 436, 156), ('1978-07-02','1987-11-17', 574, 465), ('1977-04-28','1980-07-07', 80, 51), ('2020-12-23','1971-03-14', 996, 771), ('1996-04-01','1987-10-28', 509, 734), ('1984-11-22','2013-12-02', 156, 111), ('2005-11-10','2003-01-22', 104, 453), ('2014-05-24','2004-09-20', 175, 879), ('1980-12-15','1996-01-30', 88, 232), ('2015-07-29','1987-11-24', 717, 86), ('1979-11-10','1973-09-14', 98, 215), ('1997-05-16','1992-06-01', 372, 921), ('2010-04-20','1989-09-24', 750, 69), ('2018-01-22','2001-05-30', 994, 767), ('2006-03-03','2012-02-01', 24, 969), ('2015-03-16','2005-01-27', 695, 849), ('2004-05-26','1982-11-02', 516, 867), ('1970-07-06','2021-01-28', 646, 91), ('2009-08-22','2008-12-24', 775, 159), ('1992-06-27','1971-03-20', 626, 379), ('1988-01-25','1998-01-16', 696, 801), ('2007-11-25','1973-07-18', 448, 913), ('1997-09-21','1970-10-22', 183, 511), ('2007-03-07','2012-01-17', 491, 413), ('1983-03-24','2009-02-01', 481, 469), ('1980-07-19','1985-07-09', 736, 19), ('2010-09-17','1970-10-02', 963, 220), ('1991-06-03','2016-02-06', 794, 925), ('2006-03-06','2015-06-16', 3, 433), ('2004-08-26','1990-03-04', 394, 811), ('1982-08-31','1996-12-12', 73, 565), ('2016-11-29','2005-07-17', 417, 886), ('1999-11-16','2004-03-22', 203, 449), ('1970-06-26','1994-01-10', 19, 517), ('1977-02-06','1977-04-07', 382, 825), ('1981-12-20','2009-01-30', 32, 157), ('2004-12-10','1980-04-06', 974, 939), ('2007-12-24','1987-03-13', 834, 557), ('1973-03-07','1976-07-25', 839, 764), ('2002-11-30','2001-07-08', 455, 28), ('2002-02-14','1992-02-28', 644, 901), ('2000-07-12','1986-08-19', 841, 559), ('2019-02-15','1991-09-10', 889, 88), ('1970-11-11','2000-03-05', 847, 824), ('2011-07-30','1996-07-12', 84, 49), ('2013-09-04','1979-07-18', 382, 227), ('2000-05-18','1983-12-25', 172, 324), ('2011-01-30','1978-03-09', 868, 352);
CREATE TABLE POLICY_SB( Name VARCHAR(20), Policy VARCHAR(100), PRIMARY KEY(Name, Policy) ); CREATE TABLE PUBLICATION_SB( Name VARCHAR(20), Publication VARCHAR(100), PRIMARY KEY(Name, Publication) ); CREATE TABLE POLICY_FINANCE( Name VARCHAR(20), Policy VARCHAR(100), PRIMARY KEY(Name, Policy) ); CREATE TABLE PUBLICATION_FINANCE( Name VARCHAR(20), Publication VARCHAR(100), PRIMARY KEY(Name, Publication) ); CREATE TABLE POLICY_EDUCATION( Name VARCHAR(20), Policy VARCHAR(100), PRIMARY KEY(Name, Policy) ); CREATE TABLE PUBLICATION_EDUCATION( Name VARCHAR(20), Publication VARCHAR(100), PRIMARY KEY(Name, Publication) ); CREATE TABLE POLICY_HEALTH( Name VARCHAR(20), Policy VARCHAR(100), PRIMARY KEY(Name, Policy) ); CREATE TABLE PUBLICATION_HEALTH( Name VARCHAR(20), Publication VARCHAR(100), PRIMARY KEY(Name, Publication) ); CREATE TABLE POLICY_TRADE( Name VARCHAR(20), Policy VARCHAR(100), PRIMARY KEY(Name, Policy) ); CREATE TABLE PUBLICATION_TRADE( Name VARCHAR(20), Publication VARCHAR(100), PRIMARY KEY(Name, Publication) ); CREATE TABLE EDU_RESEARCH( Name VARCHAR(20), SciResearch VARCHAR(100), PRIMARY KEY(Name, SciResearch) ); CREATE TABLE HEALTH_RESEARCH( Name VARCHAR(20), SciResearch VARCHAR(100), PRIMARY KEY(Name, SciResearch) ); CREATE TABLE VACCINATION_PROGRAM( Name VARCHAR(20), Program VARCHAR(100), PRIMARY KEY(Name, Program) ); CREATE TABLE BANK_PROGRAM( BankID INT, Program VARCHAR(100), PRIMARY KEY(BankID, Program) ); CREATE TABLE BANK( BankID INT PRIMARY KEY, Name VARCHAR(20), BalanceSheet INT, Director VARCHAR(20), SBName VARCHAR(20), MOFName VARCHAR(20), UNIQUE(Name) ); CREATE TABLE INFORMATION_EXCHANGE( BankID INT, CoopBankID INT, BadCreditAccountNo INT, PRIMARY KEY(BankID, CoopBankID, BadCreditAccountNo) ); CREATE TABLE STATEBANK( Name VARCHAR(20) PRIMARY KEY CHECK (Name='Statebank'), Minister VARCHAR(20), Budget INT, Function VARCHAR(100), TotalLiquidity INT, MoneyInCirculation INT ); CREATE TABLE MINISTRY_OF_FINANCE( Name VARCHAR(20) PRIMARY KEY CHECK (Name='Finance'), Minister VARCHAR(20), Budget INT, Function VARCHAR(100), StateBudget INT, PublicAssets INT ); CREATE TABLE MINISTRY_OF_EDUCATION( Name VARCHAR(20) PRIMARY KEY CHECK (Name='Education'), Minister VARCHAR(20), Budget INT, Function VARCHAR(100) ); CREATE TABLE MINISTRY_OF_HEALTH( Name VARCHAR(20) PRIMARY KEY CHECK (Name='Health'), Minister VARCHAR(20), Budget INT, Function VARCHAR(100) ); CREATE TABLE MINISTRY_OF_TRADE( Name VARCHAR(20) PRIMARY KEY CHECK (Name='Trade'), Minister VARCHAR(20), Budget INT, Function VARCHAR(100) ); CREATE TABLE DEPARTMENT_OF_FINANCE( ProvinceName VARCHAR(20) PRIMARY KEY, Head VARCHAR(20), MOFName VARCHAR(20) ); CREATE TABLE DEPARTMENT_OF_EDUCATION( ProvinceName VARCHAR(20) PRIMARY KEY, Head VARCHAR(20), MOEName VARCHAR(20) ); CREATE TABLE DEPARTMENT_OF_HEALTH( ProvinceName VARCHAR(20) PRIMARY KEY, Head VARCHAR(20), MOHName VARCHAR(20) ); CREATE TABLE DEPARTMENT_OF_TRADE( ProvinceName VARCHAR(20) PRIMARY KEY, Head VARCHAR(20), MOTName VARCHAR(20) ); CREATE TABLE UNIVERSITY( ID INT PRIMARY KEY, Name VARCHAR(20), Address VARCHAR(100), Principal VARCHAR(20), MOEName VARCHAR(20), UNIQUE(Name), UNIQUE(Address) ); CREATE TABLE CENTRAL_HOSPITAL( ID INT PRIMARY KEY, Name VARCHAR(20), Address VARCHAR(100), NoDoctors INT, NoEquipment INT, MOHName VARCHAR(20), UNIQUE(Name), UNIQUE(Address) ); CREATE TABLE BILATERAL_TRADE( ID INT PRIMARY KEY, Country VARCHAR(20), Goods VARCHAR(20), Year INT, Quantity INT, isImport BOOLEAN, MOTName VARCHAR(20) ); CREATE TABLE ONLINE_SHOP( ID INT PRIMARY KEY, Name VARCHAR(20), Owner VARCHAR(20), URL VARCHAR(80), MOTName VARCHAR(20), UNIQUE(Name), UNIQUE(URL) ); CREATE TABLE DIVISION_OF_FINANCE( ProvinceName VARCHAR(20), DistrictName VARCHAR(20), Head VARCHAR(20), PRIMARY KEY(ProvinceName, DistrictName) ); CREATE TABLE DIVISION_OF_EDUCATION( ProvinceName VARCHAR(20), DistrictName VARCHAR(20), Head VARCHAR(20), PRIMARY KEY(ProvinceName, DistrictName) ); CREATE TABLE DIVISION_OF_HEALTH( ProvinceName VARCHAR(20), DistrictName VARCHAR(20), Head VARCHAR(20), PRIMARY KEY(ProvinceName, DistrictName) ); CREATE TABLE DIVISION_OF_TRADE( ProvinceName VARCHAR(20), DistrictName VARCHAR(20), Head VARCHAR(20), PRIMARY KEY(ProvinceName, DistrictName) ); CREATE TABLE BANK_BRANCH( BankID INT, BranchID INT, Name VARCHAR(20), Manager VARCHAR(20), Address VARCHAR(100), ProvinceName VARCHAR(20), DistrictName VARCHAR(20), PRIMARY KEY(BankID, BranchID), UNIQUE(Name), UNIQUE(Address) ); CREATE TABLE PROVINCIAL_HOSPITAL( ID INT PRIMARY KEY, Name VARCHAR(20), Address VARCHAR(100), NoDoctors INT, NoEquipment INT, ProvinceName VARCHAR(20), UNIQUE(Address) ); CREATE TABLE SCHOOL( ID INT PRIMARY KEY, Name VARCHAR(100), Principal VARCHAR(20), Address VARCHAR(100), ProvinceName VARCHAR(20), DistrictName VARCHAR(20), UNIQUE(Address) ); CREATE TABLE LIBRARY( ID INT PRIMARY KEY, Name VARCHAR(20), Librarian VARCHAR(20), NoBooks INT, Address VARCHAR(100), ProvinceName VARCHAR(20), UNIQUE(Address) ); CREATE TABLE LOCAL_HOSPITAL( ID INT PRIMARY KEY, Name VARCHAR(20), Address VARCHAR(100), NoDoctors INT, NoEquipment INT, ProvinceName VARCHAR(20), DistrictName VARCHAR(20), UNIQUE(Address) ); CREATE TABLE VACCINATION_INFO( ProvinceName VARCHAR(20), DistrictName VARCHAR(20), ManagerName VARCHAR(20), NoOfVaccinated INT, NoOfUnvaccinated INT, PRIMARY KEY(ProvinceName, DistrictName) ); CREATE TABLE MARKET( ID INT PRIMARY KEY, Name VARCHAR(20), Manager VARCHAR(20), Type VARCHAR(20), NoOfKiosk INT, Address VARCHAR(100), ProvinceName VARCHAR(20), DistrictName VARCHAR(20), UNIQUE(Address) ); CREATE TABLE RED_ZONE( ProvinceName VARCHAR(20), DistrictName VARCHAR(20), Zone VARCHAR(40), PRIMARY KEY(ProvinceName, DistrictName, Zone) ); CREATE TABLE GREEN_ZONE( ProvinceName VARCHAR(20), DistrictName VARCHAR(20), Zone VARCHAR(40), PRIMARY KEY(ProvinceName, DistrictName, Zone) ); CREATE TABLE OS_GOODS( OS_ID INT, Goods VARCHAR(20), PRIMARY KEY(OS_ID, Goods) ); ALTER TABLE POLICY_SB ADD FOREIGN KEY(Name) REFERENCES STATEBANK(Name) ON DELETE CASCADE; ALTER TABLE PUBLICATION_SB ADD FOREIGN KEY(Name) REFERENCES STATEBANK(Name) ON DELETE CASCADE; ALTER TABLE POLICY_FINANCE ADD FOREIGN KEY(Name) REFERENCES MINISTRY_OF_FINANCE(Name) ON DELETE CASCADE; ALTER TABLE PUBLICATION_FINANCE ADD FOREIGN KEY(Name) REFERENCES MINISTRY_OF_FINANCE(Name) ON DELETE CASCADE; ALTER TABLE POLICY_EDUCATION ADD FOREIGN KEY(Name) REFERENCES MINISTRY_OF_EDUCATION(Name) ON DELETE CASCADE; ALTER TABLE PUBLICATION_EDUCATION ADD FOREIGN KEY(Name) REFERENCES MINISTRY_OF_EDUCATION(Name) ON DELETE CASCADE; ALTER TABLE POLICY_HEALTH ADD FOREIGN KEY(Name) REFERENCES MINISTRY_OF_HEALTH(Name) ON DELETE CASCADE; ALTER TABLE PUBLICATION_HEALTH ADD FOREIGN KEY(Name) REFERENCES MINISTRY_OF_HEALTH(Name) ON DELETE CASCADE; ALTER TABLE POLICY_TRADE ADD FOREIGN KEY(Name) REFERENCES MINISTRY_OF_TRADE(Name) ON DELETE CASCADE; ALTER TABLE PUBLICATION_TRADE ADD FOREIGN KEY(Name) REFERENCES MINISTRY_OF_TRADE(Name) ON DELETE CASCADE; ALTER TABLE EDU_RESEARCH ADD FOREIGN KEY(Name) REFERENCES MINISTRY_OF_EDUCATION(Name) ON DELETE CASCADE; ALTER TABLE HEALTH_RESEARCH ADD FOREIGN KEY(Name) REFERENCES MINISTRY_OF_HEALTH(Name) ON DELETE CASCADE; ALTER TABLE VACCINATION_PROGRAM ADD FOREIGN KEY(Name) REFERENCES MINISTRY_OF_HEALTH(Name) ON DELETE CASCADE; ALTER TABLE BANK_PROGRAM ADD FOREIGN KEY (BankID) REFERENCES BANK(BankID) ON DELETE CASCADE; ALTER TABLE BANK ADD FOREIGN KEY(SBName) REFERENCES STATEBANK(Name) ON DELETE CASCADE; ALTER TABLE BANK ADD FOREIGN KEY(MOFName) REFERENCES MINISTRY_OF_FINANCE(Name) ON DELETE CASCADE; ALTER TABLE INFORMATION_EXCHANGE ADD FOREIGN KEY(BankID) REFERENCES BANK(BankID) ON DELETE CASCADE; ALTER TABLE INFORMATION_EXCHANGE ADD FOREIGN KEY(CoopBankID) REFERENCES BANK(BankID) ON DELETE CASCADE; ALTER TABLE DEPARTMENT_OF_FINANCE ADD FOREIGN KEY(MOFName) REFERENCES MINISTRY_OF_FINANCE(Name) ON DELETE CASCADE; ALTER TABLE DEPARTMENT_OF_EDUCATION ADD FOREIGN KEY(MOEName) REFERENCES MINISTRY_OF_EDUCATION(Name) ON DELETE CASCADE; ALTER TABLE DEPARTMENT_OF_HEALTH ADD FOREIGN KEY(MOHName) REFERENCES MINISTRY_OF_HEALTH(Name) ON DELETE CASCADE; ALTER TABLE DEPARTMENT_OF_TRADE ADD FOREIGN KEY(MOTName) REFERENCES MINISTRY_OF_TRADE(Name) ON DELETE CASCADE; ALTER TABLE UNIVERSITY ADD FOREIGN KEY(MOEName) REFERENCES MINISTRY_OF_EDUCATION(Name) ON DELETE CASCADE; ALTER TABLE CENTRAL_HOSPITAL ADD FOREIGN KEY(MOHName) REFERENCES MINISTRY_OF_HEALTH(Name) ON DELETE CASCADE; ALTER TABLE BILATERAL_TRADE ADD FOREIGN KEY(MOTName) REFERENCES MINISTRY_OF_TRADE(Name) ON DELETE CASCADE; ALTER TABLE ONLINE_SHOP ADD FOREIGN KEY(MOTName) REFERENCES MINISTRY_OF_TRADE(Name) ON DELETE CASCADE; ALTER TABLE DIVISION_OF_FINANCE ADD FOREIGN KEY(ProvinceName) REFERENCES DEPARTMENT_OF_FINANCE(ProvinceName) ON DELETE CASCADE; ALTER TABLE DIVISION_OF_EDUCATION ADD FOREIGN KEY(ProvinceName) REFERENCES DEPARTMENT_OF_EDUCATION(ProvinceName) ON DELETE CASCADE; ALTER TABLE DIVISION_OF_HEALTH ADD FOREIGN KEY(ProvinceName) REFERENCES DEPARTMENT_OF_HEALTH(ProvinceName) ON DELETE CASCADE; ALTER TABLE DIVISION_OF_TRADE ADD FOREIGN KEY(ProvinceName) REFERENCES DEPARTMENT_OF_TRADE(ProvinceName) ON DELETE CASCADE; ALTER TABLE BANK_BRANCH ADD FOREIGN KEY(BankID) REFERENCES BANK(BankID) ON DELETE CASCADE; ALTER TABLE BANK_BRANCH ADD FOREIGN KEY(ProvinceName, DistrictName) REFERENCES DIVISION_OF_FINANCE(ProvinceName, DistrictName) ON DELETE CASCADE; ALTER TABLE PROVINCIAL_HOSPITAL ADD FOREIGN KEY(ProvinceName) REFERENCES DEPARTMENT_OF_HEALTH(ProvinceName) ON DELETE CASCADE; ALTER TABLE SCHOOL ADD FOREIGN KEY(ProvinceName, DistrictName) REFERENCES DIVISION_OF_EDUCATION(ProvinceName, DistrictName) ON DELETE CASCADE; ALTER TABLE LIBRARY ADD FOREIGN KEY(ProvinceName) REFERENCES DEPARTMENT_OF_EDUCATION(ProvinceName) ON DELETE CASCADE; ALTER TABLE LOCAL_HOSPITAL ADD FOREIGN KEY(ProvinceName, DistrictName) REFERENCES DIVISION_OF_HEALTH(ProvinceName, DistrictName) ON DELETE CASCADE; ALTER TABLE VACCINATION_INFO ADD FOREIGN KEY(ProvinceName, DistrictName) REFERENCES DIVISION_OF_HEALTH(ProvinceName, DistrictName) ON DELETE CASCADE; ALTER TABLE MARKET ADD FOREIGN KEY(ProvinceName, DistrictName) REFERENCES DIVISION_OF_TRADE(ProvinceName, DistrictName) ON DELETE CASCADE; ALTER TABLE RED_ZONE ADD FOREIGN KEY(ProvinceName, DistrictName) REFERENCES VACCINATION_INFO(ProvinceName, DistrictName) ON DELETE CASCADE; ALTER TABLE GREEN_ZONE ADD FOREIGN KEY(ProvinceName, DistrictName) REFERENCES VACCINATION_INFO(ProvinceName, DistrictName) ON DELETE CASCADE; ALTER TABLE OS_GOODS ADD FOREIGN KEY(OS_ID) REFERENCES ONLINE_SHOP(ID) ON DELETE CASCADE; -- ====================== INSERT ================== INSERT INTO STATEBANK VALUES('Statebank', '<NAME>', 14000000, 'Managing banks', 1000000,2000000); INSERT INTO MINISTRY_OF_FINANCE VALUES('Finance', '<NAME>', 15000000, 'Managing banks and departments of finance', 5000000, 3000000); INSERT INTO MINISTRY_OF_EDUCATION VALUES('Education', '<NAME>', 12000000, 'Managing universities and departments of education'); INSERT INTO MINISTRY_OF_HEALTH VALUES('Health', 'Le Minh Thuan', 18000000, 'Managing central hospitals and departments of health'); INSERT INTO MINISTRY_OF_TRADE VALUES('Trade', '<NAME>', 17000000, 'Managing bilateral trade, departments and online shops'); INSERT INTO POLICY_SB VALUES ('Statebank', 'Ensuring safe and sound banking operations and the system of credit institutions'), ('Statebank', 'Ensuring safe and efficiency of national payment system'); INSERT INTO PUBLICATION_SB VALUES ('Statebank', 'The way to reach annual inflation rate targets'), ('Statebank', 'National reports '); INSERT INTO POLICY_FINANCE VALUES ('Finance', 'Strengthen relations with counterparts'), ('Finance', 'Create mutually beneficial partnerships'); INSERT INTO PUBLICATION_FINANCE VALUES ('Finance', 'National reports'), ('Finance', 'Socio-economic development in 2014'); INSERT INTO POLICY_EDUCATION VALUES ('Education', 'Higher Education curriculum to possess Flexibility of Subjects'), ('Education', 'Fixed fees for public and private institutions'); INSERT INTO PUBLICATION_EDUCATION VALUES ('Education', 'National reports'), ('Education', 'The Information and Communications going along with Education and Training'); INSERT INTO POLICY_HEALTH VALUES ('Health', 'Allow registered pharmacists to be Pharmacist Investigators (PIs) of clinical trials'), ('Health', 'Perform Collaborative Prescribing Services'); INSERT INTO PUBLICATION_HEALTH VALUES ('Health', 'National reports'), ('Health', 'NURSING PRACTICE GUIDELINES'); INSERT INTO POLICY_TRADE VALUES ('Trade', 'Restricts the import and sale of non-medicinal chewing gum'), ('Trade', 'Maintain liberal trading regimes'); INSERT INTO PUBLICATION_TRADE VALUES ('Trade', 'National reports'), ('Trade', 'Country Commercial Guide'); INSERT INTO EDU_RESEARCH VALUES ('Education', 'How does the blended learning approach affect students performance?'), ('Education', 'The trends in computer literacy'), ('Education', 'From homeschooling to successful careers: an overview'), ('Education', 'How do children benefit from bilingual education?'), ('Education', 'How can career counseling support high school students?'); INSERT INTO HEALTH_RESEARCH VALUES ('Health', 'A closer look at the most dangerous diseases in the 21st'), ('Health', 'What role do therapists play in the treatment of the mental disorder?'), ('Health', 'Sleep deprivation: A closer look at its implications on memory.'), ('Health', 'A closer look at alternative medication: Does it work?'), ('Health', 'COVID-19 vaccination: What is driving the fear in people about it?'); INSERT INTO VACCINATION_PROGRAM VALUES ('Health', 'Adult vaccination'), ('Health', 'National vaccination'), ('Health', 'Astra vaccination'); INSERT INTO BANK VALUES (1, 'BID', 4500000, '<NAME>', 'Statebank', 'Finance'), (2, 'FTB', 6000000, '<NAME>', 'Statebank', 'Finance'), (3, 'CJSBank', 6800000, '<NAME>', 'Statebank', 'Finance'), (4, 'ABank', 5200000, '<NAME>', 'Statebank', 'Finance'); INSERT INTO BANK_PROGRAM VALUES (1, 'SPECIAL OFFER FOR NEW INTERNATIONAL DEBIT CARDHOLDERS'), (2, 'Key selling points of FWD Elevating success'), (3, 'Priority Savings'), (2, 'Visa Signature international credit card'), (4, 'Portfolio Management'); INSERT INTO INFORMATION_EXCHANGE VALUES (1, 2, 00014586), (2, 1, 00014586), (2, 3, 0008642), (3, 2, 0008642), (1, 4, 12300089), (4, 1, 12300089); INSERT INTO DEPARTMENT_OF_FINANCE VALUES ('<NAME>', '<NAME>', 'Finance'), ('<NAME>', '<NAME>', 'Finance'), ('HCMC', '<NAME>', 'Finance'), ('Bin<NAME>inh', 'Nguyen Tan Loc', 'Finance'); INSERT INTO DEPARTMENT_OF_EDUCATION VALUES ('Dong Nai', 'Phan Huy Anh Vu', 'Education'), ('Binh Thuan', 'Nguyen Hoang Minh', 'Education'), ('HCMC', 'Tang Chi Thuong', 'Education'), ('Binh Dinh', 'Le Viet Hung', 'Education'); INSERT INTO DEPARTMENT_OF_HEALTH VALUES ('Dong Nai', 'Nguyen Tan Binh', 'Health'), ('Binh Thuan', 'Pham Manh Hung', 'Health'), ('HCMC', 'Le Viet Duc', 'Health'), ('Binh Dinh', 'Le Tan Loc', 'Health'); INSERT INTO CENTRAL_HOSPITAL VALUES (1, 'Tu Du Hospital', '284 Cong Quynh, District 1, HCMC, VietNam', 200, 5000, 'Health'), (2, 'M.U Hospital', '215 Hong Bang, Ward 11, District 5, HCMC', 300, 5800, 'Health'), (3, 'Heart hospital', '04 Duong Quang Trung street, district 10, HCMC', 150, 3200, 'Health'), (4, 'Cho Ray hospital', '201B Nguyen Chi Thanh, district 5, HCMC', 230, 3600, 'Health'); INSERT INTO PROVINCIAL_HOSPITAL VALUES (1, 'Dong Nai hospital', '2 Dong Khoi street, Tan Hiep, Bien Hoa City, Dong Nai', 120, 1800, 'Dong Nai'), (2, 'Binh Thuan hospital', '14 Truong Chinh, Phu Tai, Phan Thiet City, Binh Thuan', 140, 2000, 'Binh Thuan'), (3, 'Hoa Hao hospital', '3 Le Cong Dinh, Phan Thiet, Binh Thuan', 128, 1950, 'Binh Thuan'), (4, 'Quy Nhon hospital', '114 Tran Hung Dao, Hai Cang, Quy Nhon City, Binh Dinh', 100, 1500, 'Binh Dinh'); INSERT BILATERAL_TRADE VALUES (1, 'Korea', 'Seaweed', 2018, 5000, True, 'Trade'), (2, 'South Africa', 'Cocoa', 2019, 6000, True, 'Trade'), (3, 'France', 'Coffee', 2019, 8000, False, 'Trade'), (4, 'UK', 'Tea', 2020, 7000, False, 'Trade'), (5, 'China', 'Mango', 2020, 6500, False, 'Trade'), (6, 'Germany', 'Car', 2021, 800, True, 'Trade'); INSERT DEPARTMENT_OF_TRADE VALUES ('Dong Nai', 'Pham Minh Hoang', 'Trade'), ('Binh Thuan', 'Le Viet Hung', 'Trade'), ('Binh Dinh', 'Nguyen The Minh', 'Trade'), ('HCMC', 'Le The Loc', 'Trade'); INSERT INTO DIVISION_OF_FINANCE VALUES ('Dong Nai', 'Long Khanh', 'Nguyen Van Hieu'), ('Binh Thuan', 'Ham Tan', 'Le Nhat Tan'), ('HCMC', 'District 10', 'Le Van Tam'), ('Binh Dinh', 'Phu Cat', 'Nguyen Ba Hung'), ('HCMC', 'District 1','Nguyen Nhat Quang'); INSERT INTO BANK_BRANCH VALUES (2, 1, 'FTB CMT8', 'Le Viet Hoang', '268 Cach mang Thang Tam, Long Khanh, Dong Nai', 'Dong Nai', 'Long Khanh'), (1, 2, 'BID Saigon 1', 'Le Nhat Tan', '276 Ly Thuong Kiet, District 1, HCMC', 'HCMC', 'District 1'), (3, 3, 'CJSB District 10', 'Nguyen Ngoc Nhan', '12 Hoa Hao, District 10, HCMC', 'HCMC', 'District 10'), (4, 4, 'ABank Ham Tan', 'Vo Huy Hoang', '14 Thong Nhat, Ham Tan, Binh Thuan', 'Binh Thuan', 'Ham Tan'), (2, 5, 'FTB Hoai Nhon', 'Ngo Tat To', '42 Vo Nguyen Giap, Phu Cat, Binh Dinh', 'Binh Dinh', 'Phu Cat'); INSERT INTO DIVISION_OF_EDUCATION VALUES ('Dong Nai', 'Long Khanh', 'Nguyen Nhat Long'), ('Binh Thuan', 'Ham Tan', 'Le Hoang Viet'), ('HCMC', 'District 10', 'Nguyen Thai Hoc'), ('Binh Dinh', 'Phu Cat', 'Pham Minh Chinh'), ('HCMC', 'District 1', 'Le Tan Loc'); INSERT INTO SCHOOL VALUES (1, 'Ngo Quyen high school', 'Pham Minh Chinh', '210 CMT8, Long Khanh, Dong Nai', 'Dong Nai', 'Long Khanh'), (2, 'Tran Hung Dao high school', 'Le Cong Minh', '224 Ly Thai To, Ham Tan, Binh Thuan', 'Binh Thuan', 'Ham Tan'), (3, 'Nguyen Khuyen high school', 'Le Quang Dinh', '246 Nguyen Thi Minh Khai, District 10, HCMC', 'HCMC', 'District 10'), (4, 'Le Quy Don high school', 'Pham Tan Phuoc', '249 Ngo Quyen, Phu Cat, Binh Dinh', 'Binh Dinh', 'Phu Cat'), (5, 'Mac Dinh Chi high school', 'Le Tan Tai', '278 Ngo Quyen, District 1, HCMC', 'HCMC', 'District 1'), (6, 'Hung Vuong high school', 'Nguyen Ngoc Duyen', '478 Hung Vuong, District 1, HCMC', 'HCMC', 'District 1'); INSERT INTO LIBRARY VALUES (1, 'Library of Dong Nai', 'Nguyen Ngoc Ha', 6000, '21 Dinh Bo Linh, Bien Hoa City, Dong Nai', 'Dong Nai'), (2, 'Central library', 'Nguyen Thai Hoa', 6500, '38 Ly Thai To, Phan Thiet City, Binh Thuan', 'Binh Thuan'), (3, 'Saigon Library', 'Pham Dinh Thai', 7000, '24 Nguyen Thi Minh Khai, District 10, HCMC', 'HCMC'), (4, 'Phuong Nam Library', 'Ho Viet Toan', 6400, '32 Le Cong Dinh, District 1, HCMC', 'HCMC'), (5, 'Ocean Library', 'Nguyen Huyen Trang', 6800, '48 Nguyen Hue, Quy Nhon City, Binh Dinh', 'Binh Dinh'); INSERT INTO DIVISION_OF_HEALTH VALUES ('Dong Nai', 'Long Khanh', 'Le Viet Minh'), ('Binh Thuan', 'Ham Tan', 'Nguyen Hoang Loc'), ('HCMC', 'District 10', 'Pham Tan Loc'), ('Binh Dinh', 'Phu Cat', 'Vo Tan Minh'), ('HCMC', 'District 1', 'Nguyen Hoang Dung'), ('Binh Thuan', 'Phan Thiet', 'Nguyen Hoang Tan'); INSERT INTO LOCAL_HOSPITAL VALUES (1, 'Long Khanh hospital', '21 Le Quang Dinh, Long Khanh, Dong Nai', 35, 300, 'Dong Nai', 'Long Khanh'), (2, 'Ham Tan hospital', '35 Ngo Quyen, Ham Tan, Binh Thuan', 40, 400, 'Binh Thuan', 'Ham Tan'), (3, 'District 10 hospital', '36 Nguyen Thi Minh Khai, District 10, HCMC', 28, 350, 'HCMC', 'District 10'), (4, 'Phu Cat hospital', '47 Tran Hung Dao, Phu Cat, Binh Dinh', 50, 320, 'Binh Dinh', 'Phu Cat'), (5, 'District 1 hospital', '67 Ly Thuong Kiet, District 1, HCMC', 38, 35, 'HCMC', 'District 1'); INSERT INTO VACCINATION_INFO VALUES ('Dong Nai', 'Long Khanh', 'Le Nhat Tan', 158700, 30000), ('Binh Thuan', 'Ham Tan', 'Nguyen Viet Tuan', 210000, 20000), ('HCMC', 'District 10', 'Nguyen Ngoc Hung', 230000, 18000), ('Binh Dinh', 'Phu Cat', 'Pham The Loc', 225000, 19800), ('HCMC', 'District 1', 'Nguyen The Ha', 230000, 6500); INSERT INTO RED_ZONE VALUES ('Dong Nai', 'Long Khanh', 'Binh Tan Ward'), ('Dong Nai', 'Long Khanh', 'Long Binh Ward'), ('Binh Thuan', 'Ham Tan', 'Ham Thuan Ward'), ('HCMC', 'District 10', 'Ward 3'), ('Binh Dinh', 'Phu Cat', 'Phu My Ward'), ('HCMC', 'District 1', 'Ward 1'), ('HCMC', 'District 1', 'Ward 3'); INSERT INTO GREEN_ZONE VALUES ('Dong Nai', 'Long Khanh', 'Tan Mai Ward'), ('Dong Nai', 'Long Khanh', 'Long Thanh Ward'), ('Dong Nai', 'Long Khanh', 'Thong Nhat Ward'), ('Binh Thuan', 'Ham Tan', 'Thanh Binh Ward'), ('Binh Thuan', 'Ham Tan', 'Tan Tien Ward'), ('HCMC', 'District 10', 'Ward 1'), ('HCMC', 'District 10', 'Ward 2'), ('Binh Dinh', 'Phu Cat', 'Thai Hoa Ward'), ('Binh Dinh', 'Phu Cat', 'Thai Binh Ward'), ('HCMC', 'District 1', 'Ward 2'); INSERT INTO DIVISION_OF_TRADE VALUES ('Dong Nai', 'Long Khanh', 'Nguyen Tan Loc'), ('Binh Thuan', 'Ham Tan', 'Le Thanh Hai'), ('HCMC', 'District 10', 'Nguyen Phuoc Thinh'), ('Binh Dinh', 'Phu Cat', 'Nguyen Ngoc Hoa'), ('HCMC', 'District 1', 'Le Minh Dinh'); INSERT INTO MARKET VALUES (1, 'Binh Tan Market', 'Le Ngoc Hoa', 'Local market', 60, '46 Thong Nhat, Long Khanh, Dong Nai', 'Dong Nai', 'Long Khanh'), (2, 'Coopmart Ham Tan', 'Pham Dinh Phuoc', 'Supermarket', 200, '78 CMT8, Ham Tan, Binh Thuan', 'Binh Thuan', 'Ham Tan'), (3, 'BigC Ly Thuong Kiet', 'Pham Hoa Hao', 'Supermarket', 180, '42 Ly Thuong Kiet, District 10, HCMC', 'HCMC', 'District 10'), (4, 'Phu Cat Market', 'Le The Ha', 'Local market', 78, '86 Tran Hung Dao, Phu Cat, Binh Dinh', 'Binh Dinh', 'Phu Cat'), (5, 'BigC NTMK', 'Nguyen Dinh Hao', 'Supermarket', 210, '46 Nguyen Thi Minh Khai, District 1, HCMC', 'HCMC', 'District 1'); INSERT INTO ONLINE_SHOP VALUES (1, 'Mommy Baby shop', 'Le Thanh Danh', 'MBaby.com', 'Trade'), (2, 'ToTo shop', 'Nguyen Ngoc Dat', 'ToTo.com', 'Trade'), (3, 'TTC shop', 'Le Minh Phuc', 'TTC.com', 'Trade'), (4, 'Meichan shop', 'Nguyen Hoang Ngoc', 'Meichan.com', 'Trade'), (5, 'Johnskin shop', 'Le Hoang Trang', 'Johnskin.com', 'Trade'); INSERT INTO OS_GOODS VALUES (1, 'Children clothes'), (2, 'Gifts'), (3, 'Furniture'), (4, 'Laptop'), (5, 'Cosmetic'), (1, 'Cosmetic'), (1, 'Books'), (2, 'Books'), (4, 'PC'); -- ==================== QUERY ================== # 1. For each market, retrieve their name, manager, type, number of kiosks SELECT Name, Manager, Type, NoOfKiosk as "Number of kiosks" FROM MARKET; # 2.1 Retrieve information of ministry of finance in with default order SELECT * FROM MINISTRY_OF_FINANCE; # 2.2 Retrieve information of ministry of finance in with "specific our order" SELECT mof.Name as "Ministry", mof.Minister, mof.Function, mof.StateBudget, mof. PublicAssets, mof.Budget FROM MINISTRY_OF_FINANCE as mof; # 3. For each bank_branch of specific bank (use ID = 2), retrieve the Manager and where they located SELECT Name, Manager, Address, ProvinceName, DistrictName FROM BANK_BRANCH WHERE BankID = 2; # 4. Retrieve information of bilateral trade in 2020 SELECT b.ID, b.Country, b.Goods, b.Quantity, b.isImport FROM BILATERAL_TRADE AS b WHERE b.Year = 2020; # 5. For each school, retrieve their name, principle, which province, district they belong to and the head of division education they belong to SELECT s.Name, s.Principal, s.ProvinceName, s.DistrictName, DOE.Head as "Head of division of education" FROM SCHOOL as s JOIN DIVISION_OF_EDUCATION DOE on s.DistrictName = DOE.DistrictName; # 6. For each online shop, retrieve their ID, Name, owner and number of goods SELECT ol.ID, ol.Name, ol.Owner, COUNT(gd.Goods) as "Number of goods" FROM ONLINE_SHOP AS ol JOIN OS_GOODS AS gd WHERE ol.ID = gd.OS_ID GROUP BY ol.ID; # 7. Retrieve the goods of specific online shop SELECT ol.NAME, ol.Owner, GROUP_CONCAT(gd.Goods) as "Goods" FROM ONLINE_SHOP as ol JOIN OS_GOODS AS gd WHERE ol.ID = gd.OS_ID AND ol.ID = 1 # online shop have id=1 GROUP BY ol.ID; # 8. Retrieve number vaccinated, unvaccinated, redzone and greenzone of Ho Chi Minh SELECT SUM(vi.NoOfVaccinated) as "Number of Vaccinated", SUM(vi.NoOfUnvaccinated) as "Number of Unvaccinated", (SELECT COUNT(*) FROM RED_ZONE rz WHERE rz.ProvinceName=vi.ProvinceName) AS "Number of redzone", (SELECT COUNT(*) FROM GREEN_ZONE gz WHERE gz.ProvinceName=vi.ProvinceName) AS "Number of greenzone" FROM VACCINATION_INFO vi WHERE vi.ProvinceName = 'HCMC'; # 9. Retrieve number vaccinated and unvaccinated; redzone and greenzone of specific Ho Chi Minh, quan 10 SELECT SUM(vi.NoOfVaccinated) as "Number of Vaccinated", SUM(vi.NoOfUnvaccinated) as "Number of Unvaccinated", (SELECT COUNT(*) FROM RED_ZONE rz WHERE rz.ProvinceName=vi.ProvinceName AND rz.DistrictName=vi.DistrictName) AS "Number of redzone", (SELECT COUNT(*) FROM GREEN_ZONE gz WHERE gz.ProvinceName=vi.ProvinceName AND gz.DistrictName=vi.DistrictName) AS "Number of greenzone" FROM VACCINATION_INFO vi WHERE vi.ProvinceName = 'HCMC' AND vi.DistrictName = 'District 10'; # 10. Retrieve minister and their function of each ministry SELECT Name, Minister, Function FROM MINISTRY_OF_EDUCATION UNION SELECT Name, Minister, Function FROM MINISTRY_OF_FINANCE UNION SELECT Name, Minister, Function FROM MINISTRY_OF_HEALTH UNION SELECT Name, Minister, Function FROM MINISTRY_OF_TRADE; -- ====================== STORED PROCEDURE =================== DROP PROCEDURE Get_all_OnlineShop_info; DROP PROCEDURE Get_ministry_info; DROP PROCEDURE Get_vaccine_info; # 1. Get online shop ID, Name, owner, goods and number of goods (with no parameter) DELIMITER // CREATE PROCEDURE Get_all_OnlineShop_info() BEGIN SELECT ol.ID, ol.Name, ol.Owner, GROUP_CONCAT(gd.Goods) as "Goods",COUNT(gd.Goods) as "Number of goods" FROM ONLINE_SHOP AS ol JOIN OS_GOODS AS gd WHERE ol.ID = gd.OS_ID GROUP BY ol.ID; END // DELIMITER ; CALL Get_all_OnlineShop_info(); # 2. Get information of specific ministry (with one parameter) DELIMITER // CREATE PROCEDURE Get_ministry_info(IN MinistryName VARCHAR(20)) BEGIN SELECT * FROM ( SELECT Name, Minister, Function FROM MINISTRY_OF_EDUCATION UNION SELECT Name, Minister, Function FROM MINISTRY_OF_FINANCE UNION SELECT Name, Minister, Function FROM MINISTRY_OF_HEALTH UNION SELECT Name, Minister, Function FROM MINISTRY_OF_TRADE ) AS mof WHERE mof.Name = MinistryName; END // DELIMITER ; CALL Get_ministry_info('Education'); CALL Get_ministry_info('Finance'); CALL Get_ministry_info('Health'); CALL Get_ministry_info('Trade'); # 3. Get number of vaccinated, unvaccinated, redzone, greenzone of given province and district (more than one parameters and with condition) DELIMITER // CREATE PROCEDURE Get_vaccine_info(IN ProvinceName VARCHAR(50), IN DistrictName VARCHAR(50)) BEGIN IF DistrictName IS NULL THEN SELECT SUM(vi.NoOfVaccinated) as "Number of Vaccinated", SUM(vi.NoOfUnvaccinated) as "Number of Unvaccinated", (SELECT COUNT(*) FROM RED_ZONE rz WHERE rz.ProvinceName=vi.ProvinceName) AS "Number of redzone", (SELECT COUNT(*) FROM GREEN_ZONE gz WHERE gz.ProvinceName=vi.ProvinceName) AS "Number of greenzone" FROM VACCINATION_INFO vi WHERE vi.ProvinceName = ProvinceName; ELSE SELECT SUM(vi.NoOfVaccinated) as "Number of Vaccinated", SUM(vi.NoOfUnvaccinated) as "Number of Unvaccinated", (SELECT COUNT(*) FROM RED_ZONE rz WHERE rz.ProvinceName=vi.ProvinceName AND rz.DistrictName=vi.DistrictName) AS "Number of redzone", (SELECT COUNT(*) FROM GREEN_ZONE gz WHERE gz.ProvinceName=vi.ProvinceName AND gz.DistrictName=vi.DistrictName) AS "Number of greenzone" FROM VACCINATION_INFO vi WHERE vi.ProvinceName = ProvinceName AND vi.DistrictName = DistrictName; END IF; END // DELIMITER ; CALL Get_vaccine_info('HCMC', NULL); CALL Get_vaccine_info('HCMC', 'District 10'); CALL Get_vaccine_info('Binh Thuan', NULL); CALL Get_vaccine_info('Binh Thuan', 'Ham Tan'); CALL Get_vaccine_info('Dong Nai', NULL); CALL Get_vaccine_info('Dong Nai', 'Long Khanh'); -- =================== TRIGGER ================ # TRIGGER BEFORE INSERT # 1. This trigger is invoked automatically insert the NoOfVaccinated and NoOfUnvaccinated = 0 if someone tries to insert these value < 0. DELIMITER // CREATE TRIGGER before_insert_vaccineinfo BEFORE INSERT ON VACCINATION_INFO FOR EACH ROW BEGIN IF NEW.NoOfVaccinated < 0 THEN SET NEW.NoOfVaccinated = 0; END IF; IF NEW.NoOfUnvaccinated < 0 THEN SET NEW.NoOfUnvaccinated = 0; END IF; END // DELIMITER ; INSERT INTO VACCINATION_INFO VALUES ('<NAME>', '<NAME>', '<NAME>', -1, -100); # The value < 0 will be set to 0 SELECT * FROM VACCINATION_INFO; -- =======> We can do this for multiple table have column is number format
INSERT INTO item(id,label) VALUES (1,'Abacate'); INSERT INTO item(id,label) VALUES (2,'Abacaxi'); INSERT INTO item(id,label) VALUES (3,'Acerola'); INSERT INTO item(id,label) VALUES (4,'Banana'); INSERT INTO item(id,label) VALUES (5,'Cajú'); INSERT INTO item(id,label) VALUES (6,'Caqui'); INSERT INTO item(id,label) VALUES (7,'Cereja'); INSERT INTO item(id,label) VALUES (8,'Coco'); INSERT INTO item(id,label) VALUES (9,'Fruta do Conde'); INSERT INTO item(id,label) VALUES (10,'Goiaba'); INSERT INTO item(id,label) VALUES (11,'Jabuticaba'); INSERT INTO item(id,label) VALUES (12,'Jaca'); INSERT INTO item(id,label) VALUES (13,'Kiwi'); INSERT INTO item(id,label) VALUES (14,'Laranja'); INSERT INTO item(id,label) VALUES (15,'Limão'); INSERT INTO item(id,label) VALUES (16,'Maçã'); INSERT INTO item(id,label) VALUES (17,'Mamão'); INSERT INTO item(id,label) VALUES (18,'Manga Fiapo'); INSERT INTO item(id,label) VALUES (19,'Maracujá'); INSERT INTO item(id,label) VALUES (20,'Melancia'); INSERT INTO item(id,label) VALUES (21,'Morango'); INSERT INTO item(id,label) VALUES (22,'Pera'); INSERT INTO item(id,label) VALUES (23,'Pêssego'); INSERT INTO item(id,label) VALUES (24,'Tangerina'); INSERT INTO item(id,label) VALUES (25,'Uva Itália'); INSERT INTO item(id,label) VALUES (26,'Armário'); INSERT INTO item(id,label) VALUES (27,'Borracha'); INSERT INTO item(id,label) VALUES (28,'Cadeira'); INSERT INTO item(id,label) VALUES (29,'Câmera'); INSERT INTO item(id,label) VALUES (30,'Caneta'); INSERT INTO item(id,label) VALUES (31,'Celular'); INSERT INTO item(id,label) VALUES (32,'Chapéu'); INSERT INTO item(id,label) VALUES (33,'Chuteira'); INSERT INTO item(id,label) VALUES (34,'Colher'); INSERT INTO item(id,label) VALUES (35,'Copo'); INSERT INTO item(id,label) VALUES (36,'Faca'); INSERT INTO item(id,label) VALUES (37,'Maiô'); INSERT INTO item(id,label) VALUES (38,'Mesa'); INSERT INTO item(id,label) VALUES (39,'Videogame'); INSERT INTO item(id,label) VALUES (40,'Panela'); INSERT INTO item(id,label) VALUES (41,'Rádio'); INSERT INTO item(id,label) VALUES (42,'Régua'); INSERT INTO item(id,label) VALUES (43,'Sapato'); INSERT INTO item(id,label) VALUES (44,'Saxofone'); INSERT INTO item(id,label) VALUES (45,'Sofá'); INSERT INTO item(id,label) VALUES (46,'Sunga'); INSERT INTO item(id,label) VALUES (47,'Teclado'); INSERT INTO item(id,label) VALUES (48,'Trompete'); INSERT INTO item(id,label) VALUES (49,'TV'); INSERT INTO item(id,label) VALUES (50,'Violão');
<reponame>inity13/testsys CREATE TABLE `Test_cases` ( `TestName` varchar(256) NOT NULL, `Description` varchar(1080) NOT NULL, `Created` TIMESTAMP NOT NULL UNIQUE, `ID` INT(255) NOT NULL AUTO_INCREMENT UNIQUE, PRIMARY KEY (`ID`) ); CREATE TABLE `Test_run_log` ( `LogID` INT (255) NOT NULL AUTO_INCREMENT UNIQUE, `Passed` INT(10) NOT NULL, --not null vittuun että voi hakea NULLin perusteella läpäisemättömät `NotPassed` INT(10) NOT NULL, --not null vittuun `NotesFromTest` varchar(256) NOT NULL, `Time` TIMESTAMP NOT NULL, `TestID` INT(255) NOT NULL, `TestReason` varchar(256) NOT NULL ); ALTER TABLE `Test_run_log` ADD CONSTRAINT `Test_run_log_fk0` FOREIGN KEY (`Passed`) REFERENCES `Test_cases`(`TestName`); ALTER TABLE `Test_run_log` ADD CONSTRAINT `Test_run_log_fk1` FOREIGN KEY (`NotPassed`) REFERENCES `Test_cases`(`TestName`); ALTER TABLE `Test_run_log` ADD CONSTRAINT `Test_run_log_fk2` FOREIGN KEY (`NotesFromTest`) REFERENCES `Test_cases`(`TestName`); ALTER TABLE `Test_run_log` ADD CONSTRAINT `Test_run_log_fk3` FOREIGN KEY (`Time`) REFERENCES `Test_cases`(`TestName`); ALTER TABLE `Test_run_log` ADD CONSTRAINT `Test_run_log_fk4` FOREIGN KEY (`TestID`) REFERENCES `Test_cases`(`TestName`); /* --Test INSERTS INSERT INTO `test_cases` (`TestName`, `Description`, `Created`, `ID`) VALUES ('EkaCase', 'Tässä testataan testauksen testausta', CURRENT_TIMESTAMP, NULL) INSERT INTO `test_cases` (`TestName`, `Description`, `Created`, `ID`) VALUES ('TokaCase', 'Tässä testataan testauksen testausta numerolla kaksi', CURRENT_TIMESTAMP, NULL) --Test INSERTS */
DELETE FROM `sys_objects_auths` WHERE `Link` = 'modules/?r=facebook_connect/login_form'; INSERT INTO `sys_objects_auths` (`Name`, `Title`, `Link`, `Icon`) VALUES ('facebook', '_bx_facebook_auth_title', 'modules/?r=facebook_connect/login_form', 'facebook-square'); SET @iHandlerId := (SELECT `id` FROM `sys_alerts_handlers` WHERE `name` = 'bx_facebook_connect'); DELETE FROM `sys_alerts` WHERE `unit` = 'system' AND `action` = 'join_after_payment' AND `handler_id` = @iHandlerId; INSERT INTO `sys_alerts` SET `unit` = 'system', `action` = 'join_after_payment', `handler_id` = @iHandlerId; -- delete unused language keys DELETE `sys_localization_strings` FROM `sys_localization_strings`, `sys_localization_keys` WHERE `sys_localization_keys`.`ID` = `sys_localization_strings`.`IDKey` AND `sys_localization_keys`.`Key` IN('_bx_facebook_error_email'); DELETE FROM `sys_localization_keys` WHERE `Key` IN('_bx_facebook_error_email'); -- update module version UPDATE `sys_modules` SET `version` = '1.2.0' WHERE `uri` = 'facebook_connect' AND `version` = '1.1.6';
<reponame>zulfaltfh/PWBFPraktikum-Kel10<filename>ipehganteng.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 02, 2022 at 12:35 AM -- Server version: 5.7.33 -- PHP Version: 7.4.19 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: `ipehganteng` -- -- -------------------------------------------------------- -- -- Table structure for table `detail_barang` -- CREATE TABLE `detail_barang` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `kode_bar` bigint(20) UNSIGNED NOT NULL, `id_ukuran` bigint(20) UNSIGNED NOT NULL, `id_warna` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `detail_barang` -- INSERT INTO `detail_barang` (`id`, `created_at`, `updated_at`, `kode_bar`, `id_ukuran`, `id_warna`) VALUES (1, NULL, NULL, 1, 5, 10), (2, '2021-12-21 20:41:56', '2021-12-21 20:41:56', 2, 5, 19), (3, '2021-12-21 20:44:57', '2021-12-21 20:44:57', 1, 1, 1), (4, '2021-12-21 20:46:55', '2021-12-21 20:46:55', 1, 4, 1), (5, '2021-12-21 20:47:50', '2021-12-21 20:47:50', 1, 4, 1), (6, '2021-12-21 20:56:52', '2021-12-21 20:56:52', 1, 4, 8), (7, '2021-12-21 20:57:32', '2021-12-21 20:57:32', 6, 5, 4), (8, '2021-12-21 20:59:48', '2021-12-21 20:59:48', 6, 3, 3), (9, '2021-12-21 21:00:21', '2021-12-21 21:00:21', 6, 3, 3), (10, '2021-12-24 06:34:14', '2021-12-24 06:34:14', 1, 3, 7); -- -------------------------------------------------------- -- -- Table structure for table `detail_pemesanan` -- CREATE TABLE `detail_pemesanan` ( `id` bigint(20) UNSIGNED NOT NULL, `jumlah_up` int(11) NOT NULL, `harga_up` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `id_pesan` bigint(20) UNSIGNED NOT NULL, `kode_bar` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `detail_pemesanan` -- INSERT INTO `detail_pemesanan` (`id`, `jumlah_up`, `harga_up`, `created_at`, `updated_at`, `id_pesan`, `kode_bar`) VALUES (1, 90, 70000, '2021-12-29 23:56:37', '2021-12-29 23:56:37', 2, 2), (2, 90, 70000, '2021-12-29 23:57:01', '2021-12-29 23:57:01', 2, 2), (3, 3, 1231123, '2021-12-31 20:21:43', '2021-12-31 20:21:43', 2, 1), (4, 33, 12313, '2021-12-31 20:22:47', '2021-12-31 20:22:47', 3, 6), (5, 33, 1133, '2021-12-31 20:24:01', '2021-12-31 20:24:01', 3, 8); -- -------------------------------------------------------- -- -- Table structure for table `detail_penerimaan` -- CREATE TABLE `detail_penerimaan` ( `id` bigint(20) UNSIGNED NOT NULL, `harga_his` int(11) NOT NULL, `jumlah_his` int(11) NOT NULL, `sub_total` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `id_terima` bigint(20) UNSIGNED NOT NULL, `kode_bar` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `detail_penerimaan` -- INSERT INTO `detail_penerimaan` (`id`, `harga_his`, `jumlah_his`, `sub_total`, `created_at`, `updated_at`, `id_terima`, `kode_bar`) VALUES (1, 123, 1, 123, '2022-01-19 03:40:14', NULL, 1, 1); -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- 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_100000_create_password_resets_table', 1), (2, '2019_08_19_000000_create_failed_jobs_table', 1), (3, '2019_12_14_000001_create_personal_access_tokens_table', 1), (4, '2021_10_07_142602_create_table_kota', 1), (5, '2021_10_07_142658_create_table_role', 1), (6, '2021_10_07_142736_create_table_user', 1), (7, '2021_10_07_142851_create_table_supplier', 1), (8, '2021_10_07_143023_create_table_warna', 1), (9, '2021_10_07_143056_create_table_ukuran', 1), (10, '2021_10_07_143136_create_table_jenis_barang', 1), (11, '2021_10_07_143203_create_table_barang', 1), (12, '2021_10_07_143234_create_table_history_stock', 1), (13, '2021_10_07_143351_create_detail_barang', 1), (14, '2021_10_07_143627_create_table_pemesanan', 1), (15, '2021_10_07_143648_create_detail_pemesanan', 1), (16, '2021_10_07_143712_create_table_penerimaan', 1), (17, '2021_10_07_143732_create_detail_penerimaan', 1), (18, '2021_10_07_143803_create_table_pembayaran', 1), (19, '2021_10_22_115844_create_sessions_table', 2); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `personal_access_tokens` -- CREATE TABLE `personal_access_tokens` ( `id` bigint(20) UNSIGNED NOT NULL, `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, `last_used_at` timestamp NULL DEFAULT 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 `sessions` -- CREATE TABLE `sessions` ( `id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `name` varchar(111) COLLATE utf8mb4_unicode_ci NOT NULL, `role` int(11) DEFAULT NULL, `updated_at` timestamp NOT NULL, `created_at` timestamp NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `sessions` -- INSERT INTO `sessions` (`id`, `name`, `role`, `updated_at`, `created_at`) VALUES ('1', 'hepi', 1, '2022-01-01 06:32:40', '2022-01-01 06:32:40'); -- -------------------------------------------------------- -- -- Table structure for table `table_barang` -- CREATE TABLE `table_barang` ( `id` bigint(20) UNSIGNED NOT NULL, `foto` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `nama_bar` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `stock_barang` int(11) NOT NULL, `harga_beli_bar` int(11) NOT NULL, `harga_jual_bar` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `id_jb` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `table_barang` -- INSERT INTO `table_barang` (`id`, `foto`, `nama_bar`, `stock_barang`, `harga_beli_bar`, `harga_jual_bar`, `created_at`, `updated_at`, `id_jb`) VALUES (1, '', 'kaos', 4, 10000, 20000, '2021-10-25 05:43:47', '2021-11-18 15:12:38', 2), (2, '', 'trasher', 10, 30000, 100000, '2021-10-30 05:50:17', '2021-10-31 04:36:59', 2), (6, 'ipeh.jpg', 'q', 1, 1, 1, '2021-12-14 19:59:27', '2021-12-14 19:59:27', 1), (7, '357c43b4-a49e-40e0-834d-892721a4f6ae.jpg', 'qwe', 1, 1, 1, '2021-12-14 21:14:19', '2021-12-14 21:14:19', 2), (8, 'bloodseeker-wallpaper.jpg', 'qeqwe', 123, 3131, 1311, '2021-12-21 19:46:01', '2021-12-21 19:46:01', 1); -- -------------------------------------------------------- -- -- Table structure for table `table_history_stock` -- CREATE TABLE `table_history_stock` ( `id` bigint(20) UNSIGNED NOT NULL, `tgl_hs` date NOT NULL, `update_stok_hs` int(11) NOT NULL, `status` tinyint(1) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `kode_bar` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `table_jenis_barang` -- CREATE TABLE `table_jenis_barang` ( `id` bigint(20) UNSIGNED NOT NULL, `jenis_barang` varchar(20) 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 `table_jenis_barang` -- INSERT INTO `table_jenis_barang` (`id`, `jenis_barang`, `created_at`, `updated_at`) VALUES (1, 'Baju', '2021-10-24 00:07:14', '2021-10-24 00:07:14'), (2, 'Celana', '2021-10-24 00:07:22', '2021-10-24 00:07:22'), (3, 'Topi', '2021-10-24 00:07:27', '2021-10-24 00:07:27'); -- -------------------------------------------------------- -- -- Table structure for table `table_kota` -- CREATE TABLE `table_kota` ( `id` bigint(20) UNSIGNED NOT NULL, `nama_kota` varchar(30) 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 `table_kota` -- INSERT INTO `table_kota` (`id`, `nama_kota`, `created_at`, `updated_at`) VALUES (1, 'SBY', NULL, NULL), (2, 'JBG', NULL, NULL), (3, 'Padangpanjang', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (4, 'Bima', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (5, 'Bukittinggi', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (6, 'Pekalongan', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (7, 'Manado', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (8, 'Lhokseumawe', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (9, 'Makassar', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (10, 'Palopo', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (11, 'Padang', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (12, 'Tual', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (13, '<NAME>', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (14, 'Gunungsitoli', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (15, 'Binjai', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (16, 'Gorontalo', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (17, 'Bandung', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (18, 'Mataram', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (19, 'Blitar', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (20, 'Tarakan', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (21, 'Probolinggo', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (22, 'Banjar', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (23, 'Sorong', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (24, 'Serang', '2021-12-18 00:55:20', '2021-12-18 00:55:20'), (25, 'Subulussalam', '2021-12-18 00:55:20', '2021-12-18 00:55:20'); -- -------------------------------------------------------- -- -- Table structure for table `table_pembayaran` -- CREATE TABLE `table_pembayaran` ( `id` bigint(20) UNSIGNED NOT NULL, `total_bayar` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `id_terima` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `table_pembayaran` -- INSERT INTO `table_pembayaran` (`id`, `total_bayar`, `created_at`, `updated_at`, `id_terima`) VALUES (1, '12345661234', '2021-12-29 21:11:37', '2021-12-29 21:11:37', 2), (2, '321', '2021-12-29 23:35:33', '2021-12-29 23:35:33', 3), (3, '123123', '2021-12-29 23:42:28', '2021-12-29 23:42:28', 3), (4, '123123', '2021-12-29 23:43:30', '2021-12-29 23:43:30', 3); -- -------------------------------------------------------- -- -- Table structure for table `table_pemesanan` -- CREATE TABLE `table_pemesanan` ( `id` bigint(20) UNSIGNED NOT NULL, `status_pesan` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `id_user` bigint(20) UNSIGNED NOT NULL, `id_sup` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `table_pemesanan` -- INSERT INTO `table_pemesanan` (`id`, `status_pesan`, `created_at`, `updated_at`, `id_user`, `id_sup`) VALUES (2, '0', '2021-11-21 06:30:18', '2021-11-21 06:30:18', 9, 1), (3, '0', '2021-12-29 23:20:00', '2021-12-29 23:20:00', 2, 2); -- -------------------------------------------------------- -- -- Table structure for table `table_penerimaan` -- CREATE TABLE `table_penerimaan` ( `id` bigint(20) UNSIGNED NOT NULL, `total_harga` int(11) NOT NULL, `status_terima` char(1) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `id_user` bigint(20) UNSIGNED NOT NULL, `id_sup` bigint(20) UNSIGNED NOT NULL, `id_pemesanan` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `table_penerimaan` -- INSERT INTO `table_penerimaan` (`id`, `total_harga`, `status_terima`, `created_at`, `updated_at`, `id_user`, `id_sup`, `id_pemesanan`) VALUES (1, 900000000, '0', '2021-12-29 20:50:00', '2021-12-29 20:50:00', 1, 2, 0), (2, 54678, '1', '2021-12-29 20:50:30', '2021-12-29 20:50:30', 1, 2, 0), (3, 321, '0', '2021-12-29 23:35:09', '2021-12-29 23:35:09', 1, 2, 3); -- -------------------------------------------------------- -- -- Table structure for table `table_role` -- CREATE TABLE `table_role` ( `id` bigint(20) UNSIGNED NOT NULL, `role` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Pegawai', `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 `table_role` -- INSERT INTO `table_role` (`id`, `role`, `created_at`, `updated_at`) VALUES (1, 'Pegawai', NULL, NULL), (2, 'pemilik', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `table_supplier` -- CREATE TABLE `table_supplier` ( `id` bigint(20) UNSIGNED NOT NULL, `nama_sup` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL, `alamat_sup` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL, `telp_sup` varchar(13) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `id_kota` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `table_supplier` -- INSERT INTO `table_supplier` (`id`, `nama_sup`, `alamat_sup`, `telp_sup`, `created_at`, `updated_at`, `id_kota`) VALUES (1, 'Suplier', 'adoh', '01238', '2021-11-21 12:48:26', '2021-11-21 12:48:26', 1), (2, 'PT. Mencari Cinta Sejati', 'disana', '1233123', '2021-11-21 06:42:39', '2021-11-21 06:42:39', 2); -- -------------------------------------------------------- -- -- Table structure for table `table_ukuran` -- CREATE TABLE `table_ukuran` ( `id` bigint(20) UNSIGNED NOT NULL, `ukuran` varchar(3) 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 `table_ukuran` -- INSERT INTO `table_ukuran` (`id`, `ukuran`, `created_at`, `updated_at`) VALUES (1, 'XS', '2021-12-18 00:55:18', '2021-12-18 00:55:18'), (2, 'XL', '2021-12-18 00:55:18', '2021-12-18 00:55:18'), (3, 'M', '2021-12-18 00:55:18', '2021-12-18 00:55:18'), (4, 'S', '2021-12-18 00:55:18', '2021-12-18 00:55:18'), (5, 'L', '2021-12-18 00:55:18', '2021-12-18 00:55:18'); -- -------------------------------------------------------- -- -- Table structure for table `table_user` -- CREATE TABLE `table_user` ( `id` bigint(20) UNSIGNED NOT NULL, `nama_user` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL, `alamat_user` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `telp_user` varchar(13) COLLATE utf8mb4_unicode_ci NOT NULL, `username` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `id_kota` bigint(20) UNSIGNED NOT NULL, `id_role` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `table_user` -- INSERT INTO `table_user` (`id`, `nama_user`, `alamat_user`, `telp_user`, `username`, `email`, `password`, `created_at`, `updated_at`, `id_kota`, `id_role`) VALUES (1, 'hepi', 'adoh', '081', 'hepi', '<EMAIL>', '123', '2021-10-23 23:47:39', '2021-10-23 23:47:39', 2, 1), (2, 'julpa', 'adoh', '081', 'julpa', '<EMAIL>', '123', '2021-10-23 23:48:14', '2021-10-23 23:48:14', 2, 1), (4, 'agif', 'a', '1', 'agif', 'agif', '1', NULL, NULL, 2, 2), (9, 'pegawai', 'pegawai', '123', 'pegawai', 'pegawai', 'pegawai', '2021-11-18 16:05:45', '2021-11-18 16:05:45', 1, 1), (10, 'pemilik', 'pemilik', '123', 'pemilik', 'pemilik', 'pemilik', '2021-11-18 16:06:13', '2021-11-18 16:06:13', 1, 2); -- -------------------------------------------------------- -- -- Table structure for table `table_warna` -- CREATE TABLE `table_warna` ( `id` bigint(20) UNSIGNED NOT NULL, `warna` varchar(15) 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 `table_warna` -- INSERT INTO `table_warna` (`id`, `warna`, `created_at`, `updated_at`) VALUES (1, 'jingga', '2021-12-18 00:55:18', '2021-12-18 00:55:18'), (2, 'nila', '2021-12-18 00:55:18', '2021-12-18 00:55:18'), (3, 'putih', '2021-12-18 00:55:18', '2021-12-18 00:55:18'), (4, 'krem', '2021-12-18 00:55:18', '2021-12-18 00:55:18'), (5, 'teal', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (6, 'mawar', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (7, 'ungu', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (8, 'magenta', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (9, 'emas', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (10, 'abu-abu', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (11, 'sepia', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (12, 'hijau', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (13, 'cokelat', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (14, 'violet', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (15, 'biru laut', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (16, 'merah', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (17, 'perak', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (18, 'biru', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (19, 'zaitun', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (20, 'hitam', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (21, '<NAME>', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (22, '<NAME>', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (23, 'merah jambu', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (24, 'toska', '2021-12-18 00:55:19', '2021-12-18 00:55:19'), (25, 'kuning', '2021-12-18 00:55:19', '2021-12-18 00:55:19'); -- -- Indexes for dumped tables -- -- -- Indexes for table `detail_barang` -- ALTER TABLE `detail_barang` ADD PRIMARY KEY (`id`), ADD KEY `detail_barang_kode_bar_foreign` (`kode_bar`), ADD KEY `detail_barang_id_ukuran_foreign` (`id_ukuran`), ADD KEY `detail_barang_id_warna_foreign` (`id_warna`); -- -- Indexes for table `detail_pemesanan` -- ALTER TABLE `detail_pemesanan` ADD PRIMARY KEY (`id`), ADD KEY `detail_pemesanan_id_pesan_foreign` (`id_pesan`), ADD KEY `detail_pemesanan_kode_bar_foreign` (`kode_bar`); -- -- Indexes for table `detail_penerimaan` -- ALTER TABLE `detail_penerimaan` ADD PRIMARY KEY (`id`), ADD KEY `detail_penerimaan_id_terima_foreign` (`id_terima`), ADD KEY `detail_penerimaan_kode_bar_foreign` (`kode_bar`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); -- -- 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 `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`), ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`); -- -- Indexes for table `sessions` -- ALTER TABLE `sessions` ADD PRIMARY KEY (`id`); -- -- Indexes for table `table_barang` -- ALTER TABLE `table_barang` ADD PRIMARY KEY (`id`), ADD KEY `table_barang_id_jb_foreign` (`id_jb`); -- -- Indexes for table `table_history_stock` -- ALTER TABLE `table_history_stock` ADD PRIMARY KEY (`id`), ADD KEY `table_history_stock_kode_bar_foreign` (`kode_bar`); -- -- Indexes for table `table_jenis_barang` -- ALTER TABLE `table_jenis_barang` ADD PRIMARY KEY (`id`); -- -- Indexes for table `table_kota` -- ALTER TABLE `table_kota` ADD PRIMARY KEY (`id`); -- -- Indexes for table `table_pembayaran` -- ALTER TABLE `table_pembayaran` ADD PRIMARY KEY (`id`), ADD KEY `table_pembayaran_id_terima_foreign` (`id_terima`); -- -- Indexes for table `table_pemesanan` -- ALTER TABLE `table_pemesanan` ADD PRIMARY KEY (`id`), ADD KEY `table_pemesanan_id_user_foreign` (`id_user`), ADD KEY `table_pemesanan_id_sup_foreign` (`id_sup`); -- -- Indexes for table `table_penerimaan` -- ALTER TABLE `table_penerimaan` ADD PRIMARY KEY (`id`), ADD KEY `table_penerimaan_id_user_foreign` (`id_user`), ADD KEY `table_penerimaan_id_sup_foreign` (`id_sup`); -- -- Indexes for table `table_role` -- ALTER TABLE `table_role` ADD PRIMARY KEY (`id`); -- -- Indexes for table `table_supplier` -- ALTER TABLE `table_supplier` ADD PRIMARY KEY (`id`), ADD KEY `table_supplier_id_kota_foreign` (`id_kota`); -- -- Indexes for table `table_ukuran` -- ALTER TABLE `table_ukuran` ADD PRIMARY KEY (`id`); -- -- Indexes for table `table_user` -- ALTER TABLE `table_user` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `table_user_username_unique` (`username`), ADD KEY `table_user_id_kota_foreign` (`id_kota`), ADD KEY `table_user_id_role_foreign` (`id_role`), ADD KEY `username` (`username`); -- -- Indexes for table `table_warna` -- ALTER TABLE `table_warna` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `detail_barang` -- ALTER TABLE `detail_barang` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `detail_pemesanan` -- ALTER TABLE `detail_pemesanan` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `detail_penerimaan` -- ALTER TABLE `detail_penerimaan` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- AUTO_INCREMENT for table `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `table_barang` -- ALTER TABLE `table_barang` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `table_history_stock` -- ALTER TABLE `table_history_stock` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `table_jenis_barang` -- ALTER TABLE `table_jenis_barang` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `table_kota` -- ALTER TABLE `table_kota` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- -- AUTO_INCREMENT for table `table_pembayaran` -- ALTER TABLE `table_pembayaran` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `table_pemesanan` -- ALTER TABLE `table_pemesanan` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `table_penerimaan` -- ALTER TABLE `table_penerimaan` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `table_role` -- ALTER TABLE `table_role` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `table_supplier` -- ALTER TABLE `table_supplier` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `table_ukuran` -- ALTER TABLE `table_ukuran` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `table_user` -- ALTER TABLE `table_user` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `table_warna` -- ALTER TABLE `table_warna` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- -- Constraints for dumped tables -- -- -- Constraints for table `detail_barang` -- ALTER TABLE `detail_barang` ADD CONSTRAINT `detail_barang_id_ukuran_foreign` FOREIGN KEY (`id_ukuran`) REFERENCES `table_ukuran` (`id`), ADD CONSTRAINT `detail_barang_id_warna_foreign` FOREIGN KEY (`id_warna`) REFERENCES `table_warna` (`id`), ADD CONSTRAINT `detail_barang_kode_bar_foreign` FOREIGN KEY (`kode_bar`) REFERENCES `table_barang` (`id`); -- -- Constraints for table `detail_pemesanan` -- ALTER TABLE `detail_pemesanan` ADD CONSTRAINT `detail_pemesanan_id_pesan_foreign` FOREIGN KEY (`id_pesan`) REFERENCES `table_pemesanan` (`id`), ADD CONSTRAINT `detail_pemesanan_kode_bar_foreign` FOREIGN KEY (`kode_bar`) REFERENCES `table_barang` (`id`); -- -- Constraints for table `detail_penerimaan` -- ALTER TABLE `detail_penerimaan` ADD CONSTRAINT `detail_penerimaan_id_terima_foreign` FOREIGN KEY (`id_terima`) REFERENCES `table_penerimaan` (`id`), ADD CONSTRAINT `detail_penerimaan_kode_bar_foreign` FOREIGN KEY (`kode_bar`) REFERENCES `table_barang` (`id`); -- -- Constraints for table `table_barang` -- ALTER TABLE `table_barang` ADD CONSTRAINT `table_barang_id_jb_foreign` FOREIGN KEY (`id_jb`) REFERENCES `table_jenis_barang` (`id`); -- -- Constraints for table `table_history_stock` -- ALTER TABLE `table_history_stock` ADD CONSTRAINT `table_history_stock_kode_bar_foreign` FOREIGN KEY (`kode_bar`) REFERENCES `table_barang` (`id`); -- -- Constraints for table `table_pembayaran` -- ALTER TABLE `table_pembayaran` ADD CONSTRAINT `table_pembayaran_id_terima_foreign` FOREIGN KEY (`id_terima`) REFERENCES `table_penerimaan` (`id`); -- -- Constraints for table `table_pemesanan` -- ALTER TABLE `table_pemesanan` ADD CONSTRAINT `table_pemesanan_id_sup_foreign` FOREIGN KEY (`id_sup`) REFERENCES `table_supplier` (`id`), ADD CONSTRAINT `table_pemesanan_id_user_foreign` FOREIGN KEY (`id_user`) REFERENCES `table_user` (`id`); -- -- Constraints for table `table_penerimaan` -- ALTER TABLE `table_penerimaan` ADD CONSTRAINT `table_penerimaan_id_sup_foreign` FOREIGN KEY (`id_sup`) REFERENCES `table_supplier` (`id`), ADD CONSTRAINT `table_penerimaan_id_user_foreign` FOREIGN KEY (`id_user`) REFERENCES `table_user` (`id`); -- -- Constraints for table `table_supplier` -- ALTER TABLE `table_supplier` ADD CONSTRAINT `table_supplier_id_kota_foreign` FOREIGN KEY (`id_kota`) REFERENCES `table_kota` (`id`); -- -- Constraints for table `table_user` -- ALTER TABLE `table_user` ADD CONSTRAINT `table_user_id_kota_foreign` FOREIGN KEY (`id_kota`) REFERENCES `table_kota` (`id`), ADD CONSTRAINT `table_user_id_role_foreign` FOREIGN KEY (`id_role`) REFERENCES `table_role` (`id`); 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>lgcarrier/AFW SET DEFINE OFF; create or replace package afw_01_hierc_aplic_pkg as procedure creer_hierc_aplic (pnu_ref_evenm_notfb in number ,pnu_ref_atrib_struc_aplic in number ,pnu_aplic_prior in number default 0); procedure maj_hierc_aplic (pnu_seqnc in number ,pnu_aplic_prior in number); procedure suprm_hierc_aplic (pnu_seqnc in number); end afw_01_hierc_aplic_pkg; /
DROP TABLE IF EXISTS covid_spread; CREATE TABLE covid_spread ( -- Data collected weekly start_date TEXT, end_date TEXT, week TEXT, -- Each record represents the overlap -- of a zip code and community area zip INTEGER, area INTEGER, -- COVID spread metrics cases_weekly INTEGER );
create table big as select * from all_objects; insert /*+ append */ into big select * from big; commit; insert /*+ append */ into big select * from big; commit; insert /*+ append */ into big select * from big; commit; insert /*+ append */ into big select * from big; commit; create index big_idx on big(object_id); create table small as select * from all_objects where rownum < 100; create index small_idx on small(object_id); insert into big select * from small; commit; @gen_stats @gen_stats rem analyze table big compute statistics rem for table rem for all indexes rem for all indexed columns rem / rem analyze table small compute statistics rem for table rem for all indexes rem for all indexed columns rem / /* so, small has 99 rows, big has 133,000+ select count(subobject_name) from big where object_id in ( select object_id from small ) call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.01 0.01 0 0 0 0 Execute 1 0.00 0.00 0 0 0 0 Fetch 2 0.02 0.02 0 993 0 1 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 4 0.03 0.03 0 993 0 1 Rows Execution Plan ------- --------------------------------------------------- 0 SELECT STATEMENT GOAL: CHOOSE 1 SORT (AGGREGATE) 792 MERGE JOIN 100 SORT (JOIN) 100 VIEW OF 'VW_NSO_1' 99 SORT (UNIQUE) 792 INDEX GOAL: ANALYZED (FULL SCAN) OF 'SMALL_IDX' (NON-UNIQUE) 891 SORT (JOIN) 0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'BIG' versus: select count(subobject_name) from big where exists ( select null from small where small.object_id = big.object_id ) call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.00 0.00 0 0 0 0 Execute 1 0.00 0.00 0 0 0 0 Fetch 2 4.12 4.12 0 135356 15 1 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 4 4.12 4.12 0 135356 15 1 Rows Execution Plan ------- --------------------------------------------------- 0 SELECT STATEMENT GOAL: CHOOSE 1 SORT (AGGREGATE) 792 FILTER 135297 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'BIG' 133504 INDEX GOAL: ANALYZED (RANGE SCAN) OF 'SMALL_IDX' (NON-UNIQUE) That shows if the outer query is "big" and the inner query is "small", in is generally more efficient then NOT EXISTS. Now: select count(subobject_name) from small where object_id in ( select object_id from big ) call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.01 0.01 0 0 0 0 Execute 2 0.00 0.00 0 0 0 0 Fetch 2 0.51 0.82 50 298 22 1 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 5 0.52 0.83 50 298 22 1 Rows Execution Plan ------- --------------------------------------------------- 0 SELECT STATEMENT GOAL: CHOOSE 1 SORT (AGGREGATE) 99 MERGE JOIN 16913 SORT (JOIN) 16912 VIEW OF 'VW_NSO_1' 16912 SORT (UNIQUE) 135296 INDEX GOAL: ANALYZED (FAST FULL SCAN) OF 'BIG_IDX' (NON-UNIQUE) 99 SORT (JOIN) 99 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'SMALL' versus: select count(subobject_name) from small where exists ( select null from big where small.object_id = big.object_id ) call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.00 0.00 0 0 0 0 Execute 1 0.00 0.00 0 0 0 0 Fetch 2 0.01 0.01 0 204 12 1 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 4 0.01 0.01 0 204 12 1 EGATE) 99 FILTER 100 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'SMALL' 99 INDEX GOAL: ANALYZED (RANGE SCAN) OF 'BIG_IDX' (NON-UNIQUE) */
DROP FUNCTION bytea2numeric(bytea, boolean, text); CREATE FUNCTION bytea2numeric(a bytea, signed boolean = true, byteorder text = 'big') RETURNS numeric AS $$ return int.from_bytes(a, byteorder=byteorder, signed=signed) $$ LANGUAGE plpython3u IMMUTABLE STRICT;
drop table if exists public.tb_user; drop sequence if exists public.user_id_seq; CREATE SEQUENCE public.user_id_seq START WITH 1 INCREMENT BY 1 minvalue 0 NO MAXVALUE CACHE 1; ALTER SEQUENCE public.user_id_seq OWNER TO postgres; create table if not exists public.tb_user ( user_id integer DEFAULT nextval('public.user_id_seq') NOT NULL, username character varying(128) NOT NULL, email character varying(128) NOT NULL, mobile character varying(16) NOT NULL, create_date date DEFAULT ('now'::text)::date NOT NULL, last_login timestamp without time zone DEFAULT now(), passwd character(32) NOT NULL ); create index idx_username ON public.tb_user USING btree(username); ALTER TABLE public.tb_user ADD CONSTRAINT constraint_unique_column UNIQUE (username, email, mobile);
<filename>src/main/resources/sql/action/start/agent/Job.sql DECLARE @JobId UNIQUEIDENTIFIER = '%s'; EXEC msdb.dbo.sp_start_job @job_id = @JobId;
<filename>src/main/resources/db/migration/daiad/V1_0_58__Alter_schema_for_message_generation.sql CREATE SEQUENCE public.alert_resolver_execution_id_seq START 1 INCREMENT 1; CREATE TABLE public.alert_resolver_execution ( id int4 PRIMARY KEY DEFAULT nextval('alert_resolver_execution_id_seq'::regclass), ref_date timestamp not null, resolver_name varchar(255) NOT NULL, started timestamp NOT NULL, finished timestamp, target int4 NULL REFERENCES public.utility(id), target_group int4 NULL REFERENCES public."group"(id) ); CREATE SEQUENCE public.recommendation_resolver_execution_id_seq START 1 INCREMENT 1; CREATE TABLE public.recommendation_resolver_execution ( id int4 PRIMARY KEY DEFAULT nextval('recommendation_resolver_execution_id_seq'::regclass), ref_date timestamp not null, resolver_name varchar(255) NOT NULL, started timestamp NOT NULL, finished timestamp, target int4 NULL REFERENCES public.utility(id), target_group int4 NULL REFERENCES public."group"(id) ); TRUNCATE TABLE public.account_alert CASCADE; ALTER TABLE public.account_alert ADD COLUMN device_type character varying(16) NOT NULL CHECK (device_type = 'METER' OR device_type = 'AMPHIRO'); ALTER TABLE public.account_alert ADD COLUMN resolver_execution int4 NOT NULL REFERENCES public.alert_resolver_execution(id); TRUNCATE TABLE public.account_recommendation CASCADE; ALTER TABLE public.account_recommendation ADD COLUMN device_type character varying(16) NOT NULL CHECK (device_type = 'METER' OR device_type = 'AMPHIRO'); ALTER TABLE public.account_recommendation ADD COLUMN resolver_execution int4 NOT NULL REFERENCES public.recommendation_resolver_execution(id);
CREATE TABLE failed ( id INTEGER, artist TEXT, title TEXT, time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id) ); CREATE TABLE downloaded ( id INTEGER, path TEXT NOT NULL, time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id) );
-- Copyright 2021 the Exposure Notification Server authors -- -- 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. BEGIN; ALTER TABLE ExportFile ALTER filename TYPE TEXT, ALTER batch_id TYPE BIGINT, ALTER output_region TYPE TEXT, ALTER batch_num TYPE BIGINT, ALTER batch_size TYPE BIGINT, ALTER status TYPE TEXT, ALTER bucket_name TYPE TEXT, ALTER input_regions TYPE TEXT[], ALTER exclude_regions TYPE TEXT[]; CREATE INDEX exportfile_batch_id ON ExportFile(batch_id); CREATE INDEX exportfile_status ON ExportFile(status); CREATE INDEX exportfile_bucket_name ON ExportFile(bucket_name); CREATE INDEX exportfile_include_travelers ON ExportFile(include_travelers); CREATE INDEX exportfile_only_non_travelers ON ExportFile(only_non_travelers); END;
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.7.14 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 11.0.0.5919 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -- Dumping structure for table thokar.careers CREATE TABLE IF NOT EXISTS `careers` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(191) DEFAULT NULL, `email` varchar(191) DEFAULT NULL, `phone` varchar(50) DEFAULT NULL, `file` longtext, `created_at` date DEFAULT NULL, `updated_at` date DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; -- Dumping data for table thokar.careers: 0 rows /*!40000 ALTER TABLE `careers` DISABLE KEYS */; INSERT INTO `careers` (`id`, `name`, `email`, `phone`, `file`, `created_at`, `updated_at`) VALUES (2, 'jawadahmed', '<EMAIL>', '1024', 'career-data-2021-03-22-6058334d7fa9a.pdf', '2021-03-22', '2021-03-22'); /*!40000 ALTER TABLE `careers` ENABLE KEYS */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
DROP TABLE IF EXISTS "extra_costs" CASCADE; CREATE TABLE "extra_costs"( "cost_id" serial PRIMARY KEY UNIQUE NOT NULL, "value" FLOAT(8) NOT NULL, "description" TEXT NOT NULL, -- "payed_at" DATE, -- chaves estrangeiras "project_id" INTEGER NOT NULL );
ALTER TABLE `picklog` CHANGE `nsiuid` `unique_id` BIGINT( 20 ) NOT NULL DEFAULT '0';
<filename>PCM-Database/PCM-FillerData.sql /* ======================================================== SECTION: INSERT DATA INTO ALL OF THE TABLES OF THE PCM ======================================================== */ /* --> FOR NOW WORK WITH SMALLER DATA SETS. WHEN YOU GET THE PROJECT UP AND RUNNING, YOU CAN ALWAYS AD MORE!!! */ -- /* INSERT into the PATIENT table. */ -- -- Entry 1/10 --> <WAS ALREADY INSERTED INTO DATABASE> -- INSERT INTO Patient(PatientNotes, PatientFirstName, PatientMiddleName, PatientLastName, -- PatientBirtdate, PatientWeight, PatientPhone, PatientEmail, PatientHeight, -- PatientStartDate) -- VALUES('Patient is here for a tonsillectomy.', 'Jeremy', 'Andrew', 'Carter', '05/27/2016', -- 80, '507-943-1497', '<EMAIL>', 5.3, '06/17/2022'); -- -- Entry 2/10 --> <WAS ALREADY INSERTED INTO DATABASE> -- INSERT INTO Patient(PatientNotes, PatientFirstName, PatientMiddleName, PatientLastName, -- PatientBirtdate, PatientWeight, PatientPhone, PatientEmail, PatientHeight, -- PatientStartDate) -- VALUES('Patient is here for a chemotherapy.', 'Ryan', 'McCarther', 'Johnson', '09/03/1970', -- 170, '608-195-0174', '<EMAIL>', 5.11, '01/12/2022'); -- -- Entry 3/10 --> <WAS ALREADY INSERTED INTO DATABASE> -- INSERT INTO Patient(PatientNotes, PatientFirstName, PatientMiddleName, PatientLastName, -- PatientBirtdate, PatientWeight, PatientPhone, PatientEmail, PatientHeight, -- PatientStartDate) -- VALUES('Patient is here for a caesarean section.', 'Jennifer', 'Helen', 'Krasinski', '09/03/1983', -- 165, '608-273-0982', '<EMAIL>', 5.6, '07/24/2022'); -- -- Entry 4/10 --> <WAS ALREADY INSERTED INTO DATABASE> -- INSERT INTO Patient(PatientNotes, PatientFirstName, PatientMiddleName, PatientLastName, -- PatientBirtdate, PatientWeight, PatientPhone, PatientEmail, PatientHeight, -- PatientStartDate) -- VALUES('Patient is here for a hip fracture.', 'Dan', 'Anderson', 'Hinckley', '04/24/1980', -- 195, '507-345-9031', '<EMAIL>', 6.1, '05/18/2022'); -- -- Entry 5/10 --> <WAS ALREADY INSERTED INTO DATABASE> -- INSERT INTO Patient(PatientNotes, PatientFirstName, PatientMiddleName, PatientLastName, -- PatientBirtdate, PatientWeight, PatientPhone, PatientEmail, PatientHeight, -- PatientStartDate) -- VALUES('Patient is here for a lung cancer screening.', 'Erika', 'Brown', 'Nelson', '12/15/1995', -- 210, '608-273-0982', '<EMAIL>', 5.8, '06/30/2022'); -- -- Entry 6/10 --> <WAS ALREADY INSERTED INTO DATABASE> -- INSERT INTO Patient(PatientNotes, PatientFirstName, PatientMiddleName, PatientLastName, -- PatientBirtdate, PatientWeight, PatientPhone, PatientEmail, PatientHeight, -- PatientStartDate) -- VALUES('Patient is here for cardiac arrhythmia.', 'Adrian', 'Chris', 'Jackson', '8/09/2000', -- 258, '507-801-9005', '<EMAIL>', 6.3, '02/21/2022'); -- -- Entry 7/10 --> <WAS ALREADY INSERTED INTO DATABASE> -- INSERT INTO Patient(PatientNotes, PatientFirstName, PatientMiddleName, PatientLastName, -- PatientBirtdate, PatientWeight, PatientPhone, PatientEmail, PatientHeight, -- PatientStartDate) -- VALUES('Patient is here for wisdom teeth removal.', 'Braxton', 'Jay', 'Feldonworth', '10/11/2002', -- 155, '507-438-9823', '<EMAIL>', 4.11, '09/24/2022');
CREATE TABLE employees_demo ( employee_id NUMBER(6) , first_name VARCHAR2(20) , last_name VARCHAR2(25) CONSTRAINT emp_last_name_nn_demo NOT NULL , email VARCHAR2(25) CONSTRAINT emp_email_nn_demo NOT NULL , phone_number VARCHAR2(20) , hire_date DATE DEFAULT SYSDATE CONSTRAINT emp_hire_date_nn_demo NOT NULL , job_id VARCHAR2(10) CONSTRAINT emp_job_nn_demo NOT NULL , salary NUMBER(8,2) CONSTRAINT emp_salary_nn_demo NOT NULL , commission_pct NUMBER(2,2) , manager_id NUMBER(6) , department_id NUMBER(4) , dn VARCHAR2(300) , CONSTRAINT emp_salary_min_demo CHECK (salary > 0) , CONSTRAINT emp_email_uk_demo UNIQUE (email) ) TABLESPACE example STORAGE (INITIAL 6144 NEXT 6144 MINEXTENTS 1 MAXEXTENTS 5 ); SELECT log AS x FROM t1 GROUP BY x HAVING count(*) >= 4 ORDER BY max(n) + 0; CREATE TABLE films ( code char(5) CONSTRAINT firstkey PRIMARY KEY, title varchar(40) NOT NULL, did integer NOT NULL, date_prod date, kind varchar(10), len interval hour to minute ); CREATE TABLE distributors ( did integer PRIMARY KEY DEFAULT nextval('serial'), name varchar(40) NOT NULL CHECK (name <> '') );
create database spa; use spa; CREATE TABLE `spa`.`r1` ( `PE` char(10) NOT NULL, `FY_reported` int(11) NOT NULL, `Organization` char(200) DEFAULT NULL, `BA` int(11) DEFAULT NULL, `BA_Title` char(100) DEFAULT NULL, `PE_Title` char(200) DEFAULT NULL, `CREATE_DTM` timestamp DEFAULT CURRENT_TIMESTAMP, `FY_1996` double DEFAULT NULL, `FY_1997` double DEFAULT NULL, `FY_1998` double DEFAULT NULL, `FY_1999` double DEFAULT NULL, `FY_2000` double DEFAULT NULL, `FY_2001` double DEFAULT NULL, `FY_2002` double DEFAULT NULL, `FY_2003` double DEFAULT NULL, `FY_2004` double DEFAULT NULL, `FY_2005` double DEFAULT NULL, `FY_2006` double DEFAULT NULL, `FY_2007` double DEFAULT NULL, `FY_2008` double DEFAULT NULL, `FY_2009` double DEFAULT NULL, `FY_2010` double DEFAULT NULL, `FY_2011` double DEFAULT NULL, `FY_2012` double DEFAULT NULL, `FY_2013` double DEFAULT NULL, `FY_2014` double DEFAULT NULL, `FY_2015` double DEFAULT NULL, `FY_2016` double DEFAULT NULL, `FY_2017` double DEFAULT NULL, UNIQUE KEY `r101` (`PE`,`FY_reported`) ); CREATE TABLE `spa`.`r2` ( `PE` char(8) NOT NULL, `PE_Title` char(200) NOT NULL, `Budget_Year` int(11) NOT NULL, `Budget_Cycle` char(5) NOT NULL, `Submission_Date` date NOT NULL, `Service_Agency_Name` char(200) DEFAULT NULL, `Appropriation_Code` int(11) NOT NULL, `Appropriation_Name` char(200) DEFAULT NULL, `BA` int(11) DEFAULT NULL, `BA_Title` char(100) DEFAULT NULL, `CREATE_DTM` timestamp DEFAULT CURRENT_TIMESTAMP, `FY_2010` double DEFAULT NULL, `FY_2011` double DEFAULT NULL, `FY_2012` double DEFAULT NULL, `FY_2013` double DEFAULT NULL, `FY_2014` double DEFAULT NULL, `FY_2015` double DEFAULT NULL, `FY_2016` double DEFAULT NULL, `FY_2017` double DEFAULT NULL, `FY_2018` double DEFAULT NULL, `FY_2019` double DEFAULT NULL, `FY_2020` double DEFAULT NULL, `FY_2021` double DEFAULT NULL, `FY_2022` double DEFAULT NULL, `FY_2023` double DEFAULT NULL, UNIQUE KEY `r101` (`PE`,`Budget_Year`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
create function dbo.GetImages(@boardId bigint) returns table as return( select fig.boardId, fig.id, img.initPointId, point.x as pointX, point.y as pointY, img.src, img.width as imageWidth, img.height as imageHeight from dbo.Figure as fig inner join dbo.[Image] as img on(img.figureId = fig.id AND img.boardId = fig.boardId) inner join dbo.Point as point on point.id = img.initPointId WHERE fig.boardId = @boardId )
-- phpMyAdmin SQL Dump -- version 4.5.0.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Czas generowania: 20 Wrz 2017, 16:47 -- Wersja serwera: 10.0.17-MariaDB -- Wersja PHP: 5.6.14 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 */; -- -- Baza danych: `test_laravel_ytb` -- -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `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; -- -- Zrzut danych tabeli `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, '2017_09_20_133633_pages', 1); -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `pages` -- CREATE TABLE `pages` ( `id` int(10) UNSIGNED NOT NULL, `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `content` 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; -- -- Zrzut danych tabeli `pages` -- INSERT INTO `pages` (`id`, `title`, `content`, `created_at`, `updated_at`) VALUES (1, 'Nazwa', 'Nazwa nazwa', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (2, 'Dare-Gibson', 'Aut enim quaerat officia. Praesentium et unde exercitationem quisquam optio. Vel at aut qui laboriosam id illum vel. Non dolores fugit placeat ab sint.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (3, 'Fritsch-Connelly', 'Id facere eos officiis quisquam ex fugiat ullam. Eaque et hic recusandae voluptas voluptas. Sequi saepe et delectus maiores vero. A non aperiam atque nisi veritatis culpa itaque.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (4, '<NAME> and Erdman', 'Est adipisci cum est laborum. Earum id quis mollitia sunt ut. Voluptas eos tempore aut. Doloremque quae ab quia et.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (5, '<NAME> and Roberts', 'Dolorem eius odit deserunt nobis esse voluptas. Velit quis voluptas est laudantium voluptatem. Id adipisci autem saepe nostrum praesentium facilis. Vero quisquam aut aut.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (6, 'Langworth Ltd', 'Consequatur consequatur est illo corporis expedita. Recusandae perferendis modi eos minima. Officia magni in expedita voluptatem quae necessitatibus culpa velit.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (7, '<NAME> and Aufderhar', 'Quia dicta eos aliquam labore nesciunt odio. Qui quis consequuntur occaecati et distinctio veritatis. Vero voluptas corporis numquam aut fuga nesciunt.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (8, '<NAME> and Schaefer', 'Eos eum quaerat deleniti ut. Ipsam inventore ea aut placeat est. Nostrum et vel fugiat soluta est repellendus molestias. Ab in totam velit officiis. Atque tempore aperiam laborum cumque unde.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (9, 'Keebler-Rath', 'Ut ex sed ut sint voluptatem impedit numquam. Nam qui perspiciatis harum vel mollitia. Veritatis sint voluptates dolores iste velit.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (10, 'Satterfield-Herzog', 'Sequi aut enim aut ducimus. Voluptatum ab veniam temporibus delectus atque ea. Deleniti voluptas minus repudiandae sint. Eum nisi enim rerum molestias. Sapiente a repellendus rerum.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (11, 'Fahey-Terry', 'Fugiat sapiente deserunt suscipit qui cupiditate. Voluptatem ut officia ratione. Et omnis est sint ipsa consequatur cumque ipsam. Adipisci dolore id accusantium illo rerum.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (12, 'Zulauf-Mosciski', 'Voluptatum aut omnis aut enim sed. Et omnis doloremque omnis. In nulla distinctio pariatur quos saepe magnam sit. Minus totam eaque dolor omnis est voluptatem quo.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (13, '<NAME> and Jaskolski', 'Eaque deserunt accusamus dolor. Eos illum eius necessitatibus nesciunt porro. Laudantium nesciunt eligendi est ipsum id culpa.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (14, '<NAME> and Langosh', 'Omnis nulla laudantium dolore. Nobis consequatur totam corrupti tenetur quia odit. Non et quam eos voluptates enim.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (15, '<NAME>', 'Doloremque corrupti eveniet quis rerum illum. Labore autem pariatur fugiat corrupti corporis. Temporibus quibusdam vero omnis illum illum sunt nihil. Sit dolorum ipsam rerum molestias eaque ab nihil.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (16, 'Graham-Klocko', 'Omnis nihil voluptatem commodi enim. Est assumenda voluptas nisi nulla dolorem dolorem nobis. Repellat qui vitae eveniet quidem voluptates. Et alias autem eum dolor.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (17, 'Stehr-Wehner', 'Ut exercitationem deleniti aut aperiam eum. Assumenda a beatae tempore molestiae. Error officiis molestiae alias reprehenderit.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (18, '<NAME> and Welch', 'Dicta minima officiis dolorem atque vel. Ipsum rerum voluptatem praesentium ut cumque dolor. Sint accusantium odit non molestiae perferendis. Vel accusantium debitis vel ea quia in et.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (19, 'Wiza Group', 'Et repudiandae qui facilis doloremque. Repellat quod sed porro quis voluptas sit a. Consequuntur ipsam sint adipisci voluptate dolor itaque in. Rerum ducimus ut ducimus delectus.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (20, 'Rowe, Kuhlman and Mante', 'Odit aperiam veritatis qui minus modi necessitatibus. Facilis optio ut qui. Est illum ullam amet est maxime rerum eos ut.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (21, 'Olson-Bartell', 'Qui ea expedita et quam aperiam rerum molestias. Sapiente aperiam eaque maxime sint ipsum. Tempore voluptatem quaerat suscipit.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (22, 'Koelpin-Klocko', 'Sit voluptatum nobis est impedit consequatur. Ipsum tenetur natus exercitationem error. Occaecati beatae culpa iusto qui. Ratione est saepe unde dolorem.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (23, '<NAME> and Casper', 'Maxime laboriosam non perspiciatis dicta pariatur aperiam libero est. Nobis exercitationem rerum non veniam voluptatum aperiam iure. Non ad delectus non vel perspiciatis qui ut.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (24, 'Jacobs LLC', 'Magnam ipsam voluptatum incidunt ut. Magnam blanditiis necessitatibus quae. Corrupti corporis ut itaque sed enim.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (25, 'Sauer-Dickens', 'Nemo veniam sed blanditiis officia fugit. Recusandae a esse molestiae provident. Possimus provident quia cupiditate voluptas soluta qui eos. Quaerat nulla labore qui nihil dolor.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (26, 'Thompson Ltd', 'Ducimus et assumenda vel animi sint asperiores dolor excepturi. Quas temporibus quos ut iure. Maiores quod atque quibusdam accusantium. Veniam ea quaerat corporis excepturi dolorem.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (27, '<NAME>', 'Iure quam et voluptas molestiae. Ducimus rem deserunt et inventore. Odio in consequatur autem dolores modi et. Provident ut provident totam consequatur accusamus veniam.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (28, 'Marvin-Russel', 'Voluptatem quia a possimus fuga quia amet. Aperiam et error qui temporibus tenetur.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (29, 'Bogan-Bechtelar', 'Cumque aliquid inventore quia voluptatum. In ipsum sequi omnis ab aliquam atque placeat. Hic est amet ut odit consequuntur nostrum aut.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (30, 'Torp-Bogisich', 'Illo aut iste numquam soluta. Sint omnis consequatur laboriosam esse harum quidem reprehenderit. Ipsa rerum officia odit incidunt et non mollitia. Fugiat eum qui vitae vitae saepe.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (31, 'Goldner-Legros', 'Alias totam soluta hic ipsam esse dolore culpa. Provident necessitatibus eum ea. Non aut eum voluptas voluptas distinctio.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (32, '<NAME> and Terry', 'Est quae aut harum soluta dolore. Odio ducimus voluptas autem maxime et dignissimos quis.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (33, '<NAME>', 'Omnis repellendus est assumenda velit numquam. Harum aut qui dolorum ratione molestiae aut ipsa. Harum expedita illo blanditiis minima.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (34, 'Bergstrom-Purdy', 'Dolor et placeat ut impedit consequatur laudantium. Quas ipsum eveniet suscipit et. Vero atque quam dolores similique nihil.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (35, 'Dooley-DuBuque', 'Impedit laudantium eius et cupiditate fuga. Illum vero vel et sit sapiente at ea. Aut nobis nobis eum at nobis voluptatum. Numquam enim corporis provident ad natus eos expedita quo.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (36, 'Kreiger-Pfannerstill', 'Et sit sint vero et. Est et harum veniam unde dicta eos. Porro saepe veritatis rerum iure. Et rerum perferendis velit dolorum.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (37, 'Vandervort Group', 'Qui alias consequuntur et aut dicta totam repellat. Consequatur est ab soluta explicabo voluptatibus et corporis sunt.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (38, 'Wisoky Group', 'Rerum ex adipisci corrupti non quia. Voluptatem consequatur incidunt sunt incidunt odit reiciendis repellendus. Sapiente ut et incidunt a consequuntur omnis et.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (39, 'Powlowski PLC', 'Explicabo omnis repellendus quo ullam modi voluptas. Et tenetur dignissimos consequatur velit. Repudiandae eius ut quas saepe non doloremque vitae.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (40, 'Koepp, Gutkowski and Bergnaum', 'Adipisci dolorem corrupti velit est impedit. Nam harum doloribus hic culpa consequatur et. Quo aut at atque voluptatum deserunt neque et. Qui voluptatum iure non sequi quae.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (41, 'Kuhic LLC', 'Sit architecto fuga accusantium amet. Aspernatur aut placeat omnis. Eveniet vel quo dicta sint eligendi sit. Quia laudantium consequatur sunt.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (42, 'Howe-Bernier', 'In incidunt non impedit accusamus vel. Eaque dolorum cupiditate sit. Sequi omnis itaque quaerat dolorum temporibus voluptatem sit.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (43, 'Auer Ltd', 'Qui dolor nulla tempora deserunt optio fuga odio aliquid. Doloremque ea omnis iusto labore. Deleniti vero consequuntur quis facilis aliquid. Ex eaque velit asperiores velit harum in.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (44, 'Deckow-Runte', 'Est aut sequi facere laudantium. Pariatur deserunt aut asperiores doloribus. Adipisci natus laborum veritatis architecto sed et fugit.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (45, 'Veum-Bednar', 'Sit in ut possimus maxime perferendis quasi voluptas atque. Et doloremque nemo fugiat deserunt facere iusto aut tempora. Vel aut repudiandae magni. Fuga neque nisi nesciunt repellat nemo eaque magni.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (46, 'Casper-Morissette', 'Ut rerum amet reprehenderit non. Non ea voluptate quas voluptatem voluptas laboriosam. Maxime rerum quia debitis velit. Ut sequi est et id.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (47, 'Hodkiewicz, Ebert and Paucek', 'Illo dicta quo maiores repellat. Ea optio velit consequatur qui reprehenderit maxime magnam necessitatibus. Temporibus ex consequuntur asperiores.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (48, 'Schaefer, Heidenreich and Cummerata', 'Laudantium reiciendis quisquam voluptatem. Sunt neque eaque veritatis. Voluptas natus provident porro consequatur. Dolorem hic incidunt corporis tempora ex omnis.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (49, 'Bogisich Group', 'Qui sint laboriosam necessitatibus. Nulla ut eum quisquam quisquam atque. Eum qui non et hic hic. Quisquam minima repellendus repellendus veritatis repellendus consectetur aliquam.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (50, 'Stroman, Witting and Murray', 'Est aliquid est iste quibusdam officiis et. Veritatis alias est nostrum quam eos. Ipsa consequatur molestiae sed cupiditate fugit. Voluptatem voluptatem rerum deserunt et.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (51, 'Lakin-Mann', 'Non sit libero sint sit placeat. Rem sunt et libero illum fugiat. Tenetur est debitis praesentium soluta accusantium sed itaque. Quaerat doloremque ducimus dolorem.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (52, 'Flatley-Ledner', 'Nobis ad laboriosam at modi aut. Et et voluptatem explicabo libero est. Corporis fugit deleniti laboriosam fuga. Asperiores voluptas ipsam molestiae recusandae maxime porro nihil quidem.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (53, '<NAME>', 'Itaque atque cupiditate ipsam repellendus molestiae ipsum. Delectus veritatis sint inventore autem accusantium et autem ad. Quam illo qui consequatur facilis architecto.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (54, '<NAME> and Quitzon', 'Et tempore et impedit quae fugit omnis vel. Qui ipsum velit et consectetur et. Dicta perferendis id minima voluptas.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (55, 'Sauer-Kassulke', 'Id id quam quo ipsam pariatur aut eaque. Quis ducimus qui necessitatibus. Atque voluptatem minus deserunt molestiae aut unde.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (56, 'Heller-Pagac', 'Distinctio qui perspiciatis possimus deleniti qui ab ratione. Ut nihil id sit ut veritatis harum illo. Suscipit ab totam eveniet.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (57, 'O''Hara LLC', 'Voluptate rerum laboriosam quae quis sed. Et delectus consequatur omnis laudantium nihil nihil vel. Quos fuga quasi rem sit facilis. Voluptatum fuga et harum impedit.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (58, 'Dickinson PLC', 'Dignissimos nihil ea similique aut fuga neque. Hic dolor animi qui harum dolores. Ut eveniet eos qui dolorem.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (59, 'Goodwin-Keeling', 'Quia eligendi soluta iste veniam. Unde vel distinctio maiores ullam molestias molestiae consequuntur qui. Officia quas earum vel eligendi. Voluptate vero a voluptas consequuntur rerum unde.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (60, 'Crona-Welch', 'Voluptas earum id magnam doloremque et ab. Et sed voluptatem cupiditate voluptatem perferendis maxime. Est hic tenetur quia veniam ut. Consectetur saepe velit voluptas dicta.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (61, 'Kunze, Goodwin and Rodriguez', 'Ad earum voluptatum optio dolorum cumque. Quam autem repudiandae nobis harum sint. Qui vero est molestiae asperiores aut ad.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (62, 'Murphy-Ondricka', 'Minus totam velit totam aut fugiat excepturi aliquam. Omnis cupiditate fugiat ea recusandae aperiam. Sint illo et qui.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (63, 'Kohler, Schmeler and Hansen', 'Distinctio possimus tempore quibusdam iusto id maiores. Error autem repellendus ut nihil qui eligendi. Eveniet suscipit incidunt recusandae. Eum atque et sit accusamus laudantium facilis.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (64, 'Jakubowski-Weber', 'Dolor vero perferendis reiciendis qui ducimus velit velit. Dignissimos error eos accusamus ducimus non veniam culpa. Nostrum rem vel repellendus odit doloremque eos.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (65, 'Rohan, Gaylord and Kutch', 'Quia quia quos rem et dolor numquam. Deleniti accusantium quod repellat ut sunt dolorum. Culpa et optio ut. Libero nulla cum expedita consequatur autem eaque dignissimos.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (66, '<NAME> and Frami', 'Illum est nisi modi velit corrupti. Sequi hic nisi non dolorem ducimus dolorum.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (67, '<NAME> and McGlynn', 'Est ut placeat sint itaque. Fugiat placeat odit voluptatem. Vitae optio numquam provident itaque itaque. Quod tenetur quia impedit quis.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (68, 'Shanahan-Toy', 'Harum ipsum ea inventore error eum nesciunt harum. Consectetur minus ratione quis laboriosam occaecati temporibus. Vero ut tenetur recusandae esse et omnis ab sed. Sed qui ullam unde accusantium.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (69, '<NAME>', 'Rerum ipsa vel quaerat accusamus ut eum repellat. Adipisci sequi sit deleniti. Est velit maxime consequatur odit in temporibus inventore. Illo consequatur illum reiciendis quis dolorem.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (70, '<NAME>', 'Quo quaerat perferendis voluptatem quod. Sed qui sit minus earum repellendus ut aut reprehenderit. Reiciendis reiciendis quisquam eaque molestiae illo.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (71, 'Gutmann Inc', 'Omnis id in suscipit provident quod. Natus est dolorem inventore eum sit accusantium et beatae. Quia ea temporibus placeat quis debitis. Doloribus nulla nihil totam sunt.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (72, 'Little, Little and Prohaska', 'Totam non aut et pariatur vel ipsum officiis. Eos eius rerum reprehenderit quibusdam molestiae tempora qui.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (73, '<NAME>', 'Aut veniam sed incidunt doloremque itaque in quasi. Nihil nisi vel neque. Velit quo quis laboriosam sit.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (74, 'Macejkovic-Cormier', 'Cupiditate quas omnis consequatur magnam beatae perspiciatis omnis. Sit nisi maxime aliquid vitae autem quia. Vero id natus dolore eos libero. Cumque dolores doloribus similique nihil.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (75, 'Schowalter Group', 'Pariatur deserunt ut eum inventore voluptatum enim. Modi consequatur est sed molestias pariatur sed vel. Doloribus amet est amet dolore vero. Porro tenetur expedita consequuntur enim.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (76, '<NAME> Becker', 'Similique nobis aut odio voluptates assumenda. Similique et facere autem est. Molestiae voluptatem perspiciatis et omnis quae maiores non eum. A provident blanditiis ut ducimus.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (77, '<NAME> and Balistreri', 'Est dolorem non officia perspiciatis reprehenderit et. Omnis cupiditate eaque numquam architecto porro porro. Dolore ea expedita sed ut ut commodi labore labore.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (78, 'Hand-Kunde', 'Itaque vitae laboriosam similique. Atque aut ut quod sit. Accusantium cupiditate sint qui saepe qui eaque nobis.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (79, 'Schultz LLC', 'Mollitia nam corrupti ut ratione quasi. Ipsum vel doloremque illo et repudiandae non vero. Nemo dolorem quaerat commodi rerum nihil.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (80, '<NAME> and Schowalter', 'Natus suscipit voluptatum iure. Beatae consectetur rem sit et. Eveniet omnis laborum doloribus expedita ea. Et maiores cupiditate eum quam nihil.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (81, 'Stroman Ltd', 'Consequatur velit ipsa officia atque exercitationem. Quidem iusto illo autem id quibusdam autem labore. Adipisci omnis suscipit quos eos aut. Cum sint dignissimos et quia a dolores delectus.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (82, 'Kozey Group', 'Maxime repellat aliquam aut minus quasi. Molestias qui laborum doloremque nihil. Sit fugit recusandae vitae nesciunt. Possimus pariatur dolor unde facere et corrupti quas.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (83, 'Dach LLC', 'Rerum esse impedit repellendus ut enim dolor. Et laboriosam ut rerum omnis molestiae et.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (84, '<NAME>', 'Quia qui accusamus voluptatibus porro. Ad consequuntur dolorem sit commodi. Accusantium itaque nulla perferendis non quas eaque qui. Molestiae consequuntur enim expedita deleniti natus aut quis.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (85, 'Zemlak, Stiedemann and Ortiz', 'Ipsa ipsa tempore voluptatem pariatur perspiciatis. Et nihil velit ab vitae. Excepturi repellendus quas tempora ut. Laboriosam aliquam amet voluptatem. Facilis ea rerum molestiae sunt.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (86, 'Gutmann-Bartoletti', 'Sint perspiciatis vel et consectetur. Rerum molestiae error nobis numquam harum nesciunt blanditiis. Rem at earum odio inventore inventore est fugiat. Vero fugiat est officiis sapiente cumque.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (87, 'Howe LLC', 'Et dolores totam blanditiis molestias qui sit. Amet qui est odio sed beatae alias omnis. Et eos molestiae animi distinctio.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (88, 'Muller-Glover', 'Molestiae non velit id. Praesentium est dolor optio officiis rerum. Cumque laboriosam minus atque aspernatur.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (89, 'Torphy PLC', 'Possimus voluptate autem unde nobis nulla et. Porro placeat expedita molestiae excepturi. Sint aut deserunt ea iure consequatur quidem dolores.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (90, 'Huels Ltd', 'Quidem necessitatibus ipsum sunt qui alias commodi inventore. Debitis id repellendus dolore rerum dolores molestiae atque.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (91, '<NAME>', 'Voluptatibus ratione adipisci quia unde. Nemo neque sint eos. Eos quia sit voluptatem corrupti.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (92, 'Daugherty Ltd', 'Recusandae molestiae in veniam amet et quia. Rem mollitia repellat enim impedit nostrum. Atque voluptatibus expedita ipsum ullam.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (93, 'Streich LLC', 'Eum dolore sint aut dolor voluptatem. Rem sit amet ipsam porro sed. Quibusdam odit et voluptas harum voluptates non illum. Similique deleniti asperiores veniam corrupti explicabo.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (94, 'Erdman PLC', 'Sed quia est facilis et cupiditate odit. Eum quia provident minus culpa qui non autem dignissimos. Omnis omnis explicabo pariatur.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (95, 'Wehner-Runolfsson', 'Voluptatem voluptas ea quaerat nobis hic sunt ducimus. Totam quasi dolore sed quidem ex veritatis possimus.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (96, 'Schaden-Kohler', 'Officiis qui ipsa possimus accusamus aut explicabo. Aut in quas quidem eius excepturi laborum voluptatem. Accusamus magni qui a omnis recusandae inventore similique earum.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (97, 'Lesch, Conn and Walker', 'Aut deserunt expedita non facere repellendus. Ea corporis soluta non aut ut vel sapiente. Aut repudiandae quaerat accusantium totam et. Minus qui tempore et rerum magni alias velit.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (98, '<NAME> and O''Kon', 'Odit sed ullam ad fuga voluptatum vitae dolor. Quae repellendus saepe excepturi ratione ut eos. Officia blanditiis ipsa autem alias maxime quas. Dicta temporibus ut odio eum.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (99, 'Stoltenberg Ltd', 'Magni et minus accusantium ab voluptatem explicabo. Dolor dolorem asperiores dolores reprehenderit. Eum ipsum autem itaque cupiditate ipsam.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (100, 'Kuphal, Rippin and Douglas', 'Voluptas doloribus sunt voluptatem in recusandae. Ex ut rerum impedit possimus qui tempora at. Quos corrupti eos laborum sint illo esse et.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (101, 'Herzog and Sons', 'Voluptatem sint omnis asperiores dolorem itaque. Earum animi voluptatem doloremque. Possimus facere aut voluptas tempore similique harum. Aut dolorem voluptatibus illo minima voluptate.', '2017-09-20 12:10:00', '2017-09-20 12:10:00'); -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `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; -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Zrzut danych tabeli `users` -- INSERT INTO `users` (`id`, `name`, `email`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'user', '<EMAIL>', <PASSWORD>XOlQVlcCxUfhGuMCVlBBUOrhK/BNQIh7yXqBvVzltzPJe', NULL, '2017-09-20 12:10:00', '2017-09-20 12:10:00'), (2, 'user2', '<EMAIL>', '$2y$10$58bsuVw/H7ekdA9SgE1dlOZ5d0xWlmC1Bvf82UgIZ2LGB.s7xaJcO', NULL, '2017-09-20 12:10:00', '2017-09-20 12:10:00'); -- -- Indeksy dla zrzutów tabel -- -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `pages` -- ALTER TABLE `pages` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- 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 dla tabeli `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT dla tabeli `pages` -- ALTER TABLE `pages` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=102; -- -- AUTO_INCREMENT dla tabeli `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>db/get_blk_classic.sql SELECT * FROM dw_store where id_primary_key > 12 and id_primary_key < 20 order by id_primary_key asc
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 14, 2018 at 05:55 PM -- Server version: 5.6.34-log -- PHP Version: 7.2.1 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: `press_start` -- -- -------------------------------------------------------- -- -- Table structure for table `clients` -- CREATE TABLE `clients` ( `id` int(11) NOT NULL, `userId` bigint(20) UNSIGNED NOT NULL, `firstname` varchar(44) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `lastname` varchar(44) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `pseudonyme` varchar(44) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(44) COLLATE utf8mb4_unicode_ci NOT NULL, `mobile_phone` int(11) DEFAULT NULL, `pro_phone` int(11) DEFAULT NULL, `city` varchar(150) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `postcode` int(11) DEFAULT NULL, `adress` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `job` text COLLATE utf8mb4_unicode_ci, `consoles` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `website` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `notes` text COLLATE utf8mb4_unicode_ci, `facebook` varchar(44) COLLATE utf8mb4_unicode_ci NOT NULL, `youtube` varchar(44) COLLATE utf8mb4_unicode_ci NOT NULL, `twitch` varchar(44) COLLATE utf8mb4_unicode_ci NOT NULL, `twitter` varchar(44) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `clients` -- INSERT INTO `clients` (`id`, `userId`, `firstname`, `lastname`, `pseudonyme`, `email`, `mobile_phone`, `pro_phone`, `city`, `postcode`, `adress`, `job`, `consoles`, `website`, `notes`, `facebook`, `youtube`, `twitch`, `twitter`) VALUES (1, 35, 'Pika', 'Chu', 'pikachu', '<EMAIL>', 123456789, 0, 'Bourg Palette', 11111, '12 maison du fond', 'Mercenaire', '', 'www.pikachu.fr', '', 'pikachu', 'pikachu', '', 'pikachu'), (2, 36, 'Julie', 'Manhes', 'Julie', '<EMAIL>', 123456789, 0, 'Paris', 75000, '162 avenue de rivoli', NULL, '', 'www.jaimlebio.fr', '', 'julie', '', '', 'julie'), (3, 37, 'Lara', 'Croft', 'Lara', '<EMAIL>', 123456789, 123456789, 'Londres', 55555, 'croft manor', 'Aventurière', '', 'www.lara.croft', '', '', '', 'crystaldynamics', ''), (4, 38, 'Link', '', 'zelda', 'legend<EMAIL>', 123455628, 0, 'Cocorico', 0, '5 rue de la triforce', NULL, '', 'www.linkzeldalol.fr', '', '', '', 'nintendo', ''), (6, 40, 'Cayde', '6', 'cassis', '<EMAIL>', 668718627, 0, 'La Tour', 123456, '22 rue du hangar', 'Chasseur', '', 'www.destinythegame.fr', '', '', '', 'bungie', 'bungie'), (7, 41, 'Mario', '', 'Mario', '<EMAIL>', 668718627, 0, 'Peach Castle', 0, 'Chateau de la princesse Peach', 'Plombier', '', 'www.nintendo.fr', '', '', '', 'nintendo', 'nintendo'), (8, 42, 'Nathan', 'Drake', 'Nate', '<EMAIL>', 668718627, 0, 'La Plage', 13486152, 'la jolie plage', 'Blogueur MesVoyages.fr', '', 'www.naughtydog.fr', '', '', '', 'naughtydog', 'naughtydog'), (9, 43, 'Elena', 'Fischer', 'elenazebest', '<EMAIL>', 668718627, 668718627, 'World', 0, '', 'Journaliste Le Monde', '', 'www.uncharted.com', '', '', '', 'naughtydog', 'naughtydog'); -- -------------------------------------------------------- -- -- Table structure for table `clients_tags` -- CREATE TABLE `clients_tags` ( `id` int(11) NOT NULL, `client_id` int(11) NOT NULL, `tag_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `clients_tags` -- INSERT INTO `clients_tags` (`id`, `client_id`, `tag_id`) VALUES (1, 1, 1), (2, 8, 2), (3, 7, 2), (4, 4, 2), (5, 3, 1), (6, 2, 1), (7, 9, 1); -- -------------------------------------------------------- -- -- Table structure for table `tags` -- CREATE TABLE `tags` ( `id` int(11) NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `detail` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `tags` -- INSERT INTO `tags` (`id`, `name`, `detail`) VALUES (1, 'journaliste', 'Personnes reliées au site Gameblog'), (2, 'blog', 'Youtubeur / Bloggeur'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `email` varchar(249) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(255) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL, `username` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `status` tinyint(2) UNSIGNED NOT NULL DEFAULT '0', `verified` tinyint(1) UNSIGNED NOT NULL DEFAULT '0', `resettable` tinyint(1) UNSIGNED NOT NULL DEFAULT '1', `roles_mask` int(10) UNSIGNED NOT NULL DEFAULT '0', `registered` int(10) UNSIGNED NOT NULL, `last_login` int(10) UNSIGNED DEFAULT NULL, `force_logout` mediumint(7) UNSIGNED NOT NULL DEFAULT '0' ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `email`, `password`, `username`, `status`, `verified`, `resettable`, `roles_mask`, `registered`, `last_login`, `force_logout`) VALUES (35, '<EMAIL>', <PASSWORD>', 'pikachu', 0, 1, 1, 0, 1528971627, NULL, 0), (3, '<EMAIL>', <PASSWORD>$oSUnklW4ioA/8qeiKR.K4exp/ckfhegSN9zyPyhSrr0S7FM7eXZDW', 'admin', 0, 1, 1, 262145, 1528874700, 1528996493, 1), (36, '<EMAIL>', '$2y$10$XemagyUS4cEH2mvM1gYy0.bnaHcawUvUh0tr7m.o9wlVLjgKNtZ7y', 'Julie', 0, 1, 1, 0, 1528971731, NULL, 0), (9, '<EMAIL>', '$2y$10$.r4G.Ok3AwSlAiuUFNYIh.CX1MRB7cQ5EJ0I/uEvzh/CVvQOG57gm', 'pitch', 0, 1, 1, 1, 1528892269, 1528892505, 0), (38, '<EMAIL>', '$2y$10$NJA78hnSIdqh29cu0KM8V.pb2sg57P8D4jkz0QJ/Tmjno7JwHyO0i', 'zelda', 0, 1, 1, 0, 1528972065, NULL, 0), (37, '<EMAIL>', '$2y$10$O1RvrcLCL5C0vRgfimkwg.SfjR72RUD9RLFnXvrQlw36KJ9cDocC2', 'Lara', 0, 1, 1, 0, 1528971935, NULL, 0), (45, '<EMAIL>', '$2y$10$4dd7Fmj9aqU52d1gTtvUkOTFSZbl239fvBIELl0YrkK/KEcGUasRy', NULL, 0, 1, 1, 0, 1528991193, NULL, 0), (40, '<EMAIL>', '$2y$10$NoI0Ovo73C/I.u0.TMWFp.MKsA0R6v7EOd5YLcLqJYaDD5YAj7bRe', 'cassis', 0, 1, 1, 0, 1528972258, NULL, 0), (41, '<EMAIL>', '$2y$10$k9ZriHxRnzP6uxuO4fKBkOwanfP/zOtZ0tumW7GVbHzNNK8DNWNES', 'Mario', 0, 1, 1, 0, 1528972319, NULL, 0), (42, '<EMAIL>', '$2y$10$9EIrOSxh/Bg7lndIOUl5X.28879Typt9HV5bI1FeKhmd4.Tbf25yO', 'Nate', 0, 1, 1, 0, 1528972435, NULL, 0), (43, '<EMAIL>', <PASSWORD>', 'elenazebest', 0, 1, 1, 0, 1528972504, NULL, 0); -- -------------------------------------------------------- -- -- Table structure for table `users_confirmations` -- CREATE TABLE `users_confirmations` ( `id` int(10) UNSIGNED NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `email` varchar(249) COLLATE utf8mb4_unicode_ci NOT NULL, `selector` varchar(16) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL, `token` varchar(255) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL, `expires` int(10) UNSIGNED NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `users_remembered` -- CREATE TABLE `users_remembered` ( `id` bigint(20) UNSIGNED NOT NULL, `user` int(10) UNSIGNED NOT NULL, `selector` varchar(24) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL, `token` varchar(255) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL, `expires` int(10) UNSIGNED NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `users_resets` -- CREATE TABLE `users_resets` ( `id` bigint(20) UNSIGNED NOT NULL, `user` int(10) UNSIGNED NOT NULL, `selector` varchar(20) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL, `token` varchar(255) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL, `expires` int(10) UNSIGNED NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users_resets` -- INSERT INTO `users_resets` (`id`, `user`, `selector`, `token`, `expires`) VALUES (16, 29, 'd4OEFemarfT7AfGifMej', <PASSWORD>', 1528992719), (15, 28, 'e8EkBQ3Ei73cgy-ZAR7S', '$2y$10$Mw759SeIT4csxOmGXhNrZOF.z7YG2ocl6sESviHiDoYl9qVvWIitO', 1528992679), (14, 27, 'tiKlK1MvHIwFDvJlYDmu', '$2y$10$SKfuBx3CHUjTGO59WLdsOu51orW245ua1s4XQL1Gv6vJXsah3HeiW', 1528992601), (13, 24, '_R3spgnbvnHCkfKYkd6g', '$2y$10$AnPek2GuFuAT4nok4TAcyOphJOwMNN7ld1uEAjlTT4vhEIagRcscG', 1528992126), (17, 30, 'yeXpVHRUlQg45r_GqCWM', '$2y$10$ZftPpZ5FcALlnoUX3LyJ7.lI06tnzb/MmAYxyTDJ.bwJeyJy0q94C', 1528992776), (18, 31, '1FUz9sPR8NLCrej38jyT', '$2y$10$fonUZtggdmbwI6m0H3nF8uPOjCGi9P73tKTc02wHx7ELFTHc.KqD6', 1528992818), (19, 32, 'mRbO-YevLHHXxDKTn2is', '$2y$10$bvmARVnoBw/OdLvcVtvGieFLacnefWQktP7sE6Yv9d6pH0hx7Rocu', 1528992893), (20, 33, 'QTkn7ZxDKFUc6fKOg1O6', '$2y$10$JXCx3JaHDCKroqzISESCEur8/i8Duo9UUCpPnwOLPLzjwAXU2BJu2', 1528992924), (21, 34, 'sq-QVV4RqLvM42koSBJk', '$2y$10$tK7s9Zuf8VnuwkDseeu/0O/Mge29C9ayhXEhLbZY/sBHqLUfGz4Si', 1528992947), (22, 35, '8LCftS5FVPaAF-ksjSEN', '$2y$10$YICMcclWgmSfbIBgrqrUhuv7m715om1eg6r2DOvn5yeBIts6zuP3C', 1528993227), (23, 36, '6t5ao7J1QWcZZWBBbEAs', '$2y$10$zshT98WNjlql3edI.l6huOWU4Gj7MBj0JixUWJquiyre.62MS/GJe', 1528993331), (24, 37, 'Al7z4oRXy46o1FCrgtE8', '$2y$10$jSkX2s2sUR2cS1aO4/DfpOY74JAUN58gzVhi4HxISZay3nKB7UXkC', 1528993535), (25, 38, '29p7ITgjFuD02GoOOLJA', '$2y$10$7Sa9lfP89CzKMXEWO8h3X.stUW0lB21wow99rG1.Wqd/QAX7GTC56', 1528993665), (26, 39, 'CqATE1y_CFkyAGMS1Qm3', '$2y$10$G5fs7KfZSkHSagv.mgQBZu4eMPOfBkJ6K8KSuBLxM16mhEr2vaLgK', 1528993802), (27, 40, 'p46VQJ27qEi7IK57NTGh', '$2y$10$8VwkvuV6SNP9j8PzGDmPCubF3PFH1VCegLKsB53IMPQe0ZhnXz0he', 1528993858), (28, 41, '9FF464G4-S5IH4Lzzokx', '$2y$10$2KnbscS4yc8xADRnQ0Oo5uNkLzQkz3EeRjawicbaJd20YK2TMUBLK', 1528993919), (29, 42, 'FQMJ3dbiqufg54j81ocA', '$2y$10$Tfg6Ha4qTYVHLRzONZMCyebclUCU7FLAZ8WQUnPhGuJ6dASBV8KkK', 1528994035), (30, 43, 'QBOpvuJL2CK2EKJx6Fpn', '$2y$10$f9O2jdTsP8lFHn4eBpGAjOtjQ7IG2oWz3tJLw/BzUCN7WR8WhJU6W', 1528994104), (31, 44, 'tvtD4rxbtbk3SFFyoscr', '$2y$10$uIFcgqDNgfuVTa7r59pwu.RKT/l6a8Cgsh/X7f1M1xYa9UuZkMDeK', 1529006815), (32, 45, '5NmGpRH9h4PkI6Zbl_6Q', '$2y$10$Bk2bQPw/h98Ojq./G9u/qet3HA2iE2ma0fC.LA02HO4j7wdZkNfwi', 1529012793); -- -------------------------------------------------------- -- -- Table structure for table `users_throttling` -- CREATE TABLE `users_throttling` ( `bucket` varchar(44) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL, `tokens` float UNSIGNED NOT NULL, `replenished_at` int(10) UNSIGNED NOT NULL, `expires_at` int(10) UNSIGNED NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Indexes for dumped tables -- -- -- Indexes for table `clients` -- ALTER TABLE `clients` ADD PRIMARY KEY (`id`); -- -- Indexes for table `clients_tags` -- ALTER TABLE `clients_tags` ADD PRIMARY KEY (`id`), ADD KEY `tag_id` (`tag_id`), ADD KEY `client_id` (`client_id`); -- -- Indexes for table `tags` -- ALTER TABLE `tags` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `email` (`email`); -- -- Indexes for table `users_confirmations` -- ALTER TABLE `users_confirmations` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `selector` (`selector`), ADD KEY `email_expires` (`email`,`expires`), ADD KEY `user_id` (`user_id`); -- -- Indexes for table `users_remembered` -- ALTER TABLE `users_remembered` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `selector` (`selector`), ADD KEY `user` (`user`); -- -- Indexes for table `users_resets` -- ALTER TABLE `users_resets` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `selector` (`selector`), ADD KEY `user_expires` (`user`,`expires`); -- -- Indexes for table `users_throttling` -- ALTER TABLE `users_throttling` ADD PRIMARY KEY (`bucket`), ADD KEY `expires_at` (`expires_at`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `clients` -- ALTER TABLE `clients` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `clients_tags` -- ALTER TABLE `clients_tags` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `tags` -- ALTER TABLE `tags` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46; -- -- AUTO_INCREMENT for table `users_confirmations` -- ALTER TABLE `users_confirmations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users_remembered` -- ALTER TABLE `users_remembered` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users_resets` -- ALTER TABLE `users_resets` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33; -- -- Constraints for dumped tables -- -- -- Constraints for table `clients_tags` -- ALTER TABLE `clients_tags` ADD CONSTRAINT `client_id` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`), ADD CONSTRAINT `tag_id` FOREIGN KEY (`tag_id`) REFERENCES `tags` (`id`); 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>flexsocialbox/una SET @sName = 'bx_decorous'; -- SETTINGS UPDATE `sys_options` SET `value`='0.75rem 1.0rem' WHERE `name`=CONCAT(@sName, '_block_title_padding'); UPDATE `sys_options` SET `value`='1.25rem' WHERE `name`=CONCAT(@sName, '_block_title_font_size'); UPDATE `sys_options` SET `value`='700' WHERE `name`=CONCAT(@sName, '_block_title_font_weight'); UPDATE `sys_options` SET `value`='0.75rem' WHERE `name`=CONCAT(@sName, '_button_lg_font_size'); UPDATE `sys_options` SET `value`='600' WHERE `name`=CONCAT(@sName, '_button_lg_font_weight'); UPDATE `sys_options` SET `value`='1.75rem' WHERE `name`=CONCAT(@sName, '_button_sm_height');
<filename>MySQL Query/Add_Timestamp.sql use test_arduino; alter table Temperature_data modify column Recorded_Time datetime null default current_timestamp; alter table Humidity_data modify column Recorded_Time datetime null default current_timestamp;
SELECT * FROM employees WHERE first_name = 'Parto'; -- 性能分析命令 sql语句的执行计划 -- EXPLAIN 只能用于分析select语句的性能 EXPLAIN SELECT * FROM employees WHERE first_name = 'Parto'; -- 开启Profile命令 SELECT @@profiling; SET profiling = 1; SELECT * FROM employees; -- 3s SHOW PROFILES; -- 优化之前和优化之后的时间对比 3s, 0.1s -- select_type UNION EXPLAIN SELECT * FROM employees WHERE emp_no = '10001' UNION SELECT * FROM employees WHERE emp_no = '10002'; -- select_type = SUBQUERY EXPLAIN SELECT * FROM employees WHERE emp_no IN ( SELECT emp_no FROM employees WHERE emp_no = '10001' UNION SELECT emp_no FROM employees WHERE emp_no = '10002' ); -- type = eq_ref EXPLAIN SELECT * FROM employees a, employees b WHERE a.emp_no = b.emp_no; -- type = index_merge EXPLAIN SELECT * FROM dept_manager WHERE emp_no = 110022 OR dept_no = 'd001'; -- type = index EXPLAIN SELECT COUNT(*) FROM employees;
<filename>sql/pyclone/pyclone_cluster_stats2.sql<gh_stars>10-100 WITH selected_tumor_pairs AS ( SELECT tumor_pair_barcode, tumor_barcode_a, tumor_barcode_b, ss.case_barcode, idh_codel_subtype FROM analysis.gold_set ss INNER JOIN clinical.subtypes st ON st.case_barcode = ss.case_barcode ), selected_aliquots AS ( SELECT tumor_barcode_a AS aliquot_barcode, idh_codel_subtype, case_barcode, 'P' AS sample_type FROM selected_tumor_pairs UNION SELECT tumor_barcode_b AS aliquot_barcode, idh_codel_subtype, case_barcode, 'R' AS sample_type FROM selected_tumor_pairs ), driver_counts AS ( SELECT case_barcode, cluster_id, COUNT(*) AS num_drivers FROM variants.passanno pa INNER JOIN ref.driver_genes dg ON dg.gene_symbol = pa.gene_symbol INNER JOIN variants.pyclone_loci pl ON pl.variant_id = pa.variant_id INNER JOIN biospecimen.aliquots al ON al.aliquot_barcode = pl.aliquot_barcode INNER JOIN biospecimen.samples sa ON sa.sample_barcode = al.sample_barcode WHERE has_mut IS TRUE AND variant_allele_frequency > 0 GROUP BY 1,2 ), pyclone_clusters AS ( SELECT pc.aliquot_barcode, sa.case_barcode, pc.cluster_id, sample_type, idh_codel_subtype, pc.size, pc.mean, pc.std, num_drivers FROM variants.pyclone_cluster pc INNER JOIN selected_aliquots sa ON sa.aliquot_barcode = pc.aliquot_barcode LEFT JOIN driver_counts t0 ON t0.case_barcode = sa.case_barcode AND t0.cluster_id = pc.cluster_id WHERE pc.size > 1 )/*, t2 AS ( SELECT t1.case_barcode, COUNT(t1.cluster_id) AS num_clust, COUNT(CASE WHEN min_ccf > 0.25 THEN 1 END) AS num_clonal, bool_or(min_ccf > 0.25 AND num_drivers > 0)::integer AS any_clonal_drivers, bool_or(min_ccf <= 0.25 AND num_drivers > 0)::integer AS any_subclonal_drivers --COUNT(CASE WHEN min_ccf > 0.25 THEN num_drivers END) AS num_drivers_clonal, --COUNT(CASE WHEN min_ccf <= 0.25 THEN num_drivers END) AS num_drivers_subclonal FROM pyclone_clusters t1 LEFT JOIN driver_counts t0 ON t0.case_barcode = t1.case_barcode AND t0.cluster_id = t1.cluster_id GROUP BY 1 ORDER BY 3 DESC )*/ SELECT * FROM pyclone_clusters
select substr(cast(age(date_add(max(cast (O_ORDERDate as Date)),date_part('year',min(cast (O_ORDERDate as Date))))) as varchar(10)),4,5) as age from orders;
insert into reserva (id_usuario,id_finca,fecha_inicio_reserva,fecha_fin_reserva,valor_total_reserva) values (:idUsuario, :idFinca, :fechaInicioReserva, :fechaFinReserva, :valorTotalReserva)
<gh_stars>0 -- ----------------------------------------------------------------------------- -- NAME: itim_mining.sql -- PURPOSE: sql code for mining Unison for ITIMS -- -- $Id: itim_mining.sql,v 1.7 2004/07/02 23:38:59 cavs Exp $ -- ----------------------------------------------------------------------------- -- define views for mining -- CREATE OR REPLACE VIEW cavs.canonical_itim AS SELECT r.pseq_id, h.eval,h.start as "Pfam_start",h.stop as "Pfam_stop", t.start as "tm_start",t.stop as "tm_stop", r.start as "ITIM_start", r.stop as "ITIM_stop" FROM pahmm h JOIN pftmdetect t ON h.pseq_id = t.pseq_id JOIN pfregexp r ON h.pseq_id = r.pseq_id WHERE h.pmodel_id IN (11356269,10283) AND t.pftype_id IN (5,6) AND t.start > h.stop AND r.pmodel_id=11368857 AND r.start > t.stop; CREATE OR REPLACE VIEW cavs.pfam_tm_itim AS SELECT r.pseq_id, h.eval, h.start as "Pfam_start",h.stop as "Pfam_stop", t.start as "tm_start",t.stop as "tm_stop", r.start as "ITIM_start", r.stop as "ITIM_stop" FROM pahmm h JOIN pftmdetect t ON h.pseq_id = t.pseq_id JOIN pfregexp r ON h.pseq_id = r.pseq_id WHERE h.pmodel_id IN (11356269,10283) AND h.eval <= 0.05 AND t.pftype_id IN (5,6) AND t.start > h.stop AND r.pmodel_id=11368857 AND r.start > t.stop; CREATE OR REPLACE VIEW prospect_ig_fn3_in_top_10 AS SELECT Q.pseq_id,(SELECT count(DISTINCT pmodel_id) FROM ((SELECT pmodel_id FROM paprospect2 A WHERE A.pseq_id=Q.pseq_id AND A.params_id=1 ORDER BY raw ASC LIMIT 10) INTERSECT (SELECT pmodel_id FROM pmsm_prospect2 WHERE pmodelset_id IN (13,14))) X) AS cnt FROM pseq Q; CREATE OR REPLACE VIEW prospect_ig_in_top_10 AS SELECT Q.pseq_id,(SELECT count(DISTINCT pmodel_id) FROM ((SELECT pmodel_id FROM paprospect2 A WHERE A.pseq_id=Q.pseq_id AND A.params_id=1 ORDER BY raw ASC LIMIT 10) INTERSECT (SELECT pmodel_id FROM pmsm_prospect2 WHERE pmodelset_id IN (13))) X) AS cnt FROM pseq Q; CREATE OR REPLACE VIEW prospect_fn3_in_top_10 AS SELECT Q.pseq_id,(SELECT count(DISTINCT pmodel_id) FROM ((SELECT pmodel_id FROM paprospect2 A WHERE A.pseq_id=Q.pseq_id AND A.params_id=1 ORDER BY raw ASC LIMIT 10) INTERSECT (SELECT pmodel_id FROM pmsm_prospect2 WHERE pmodelset_id IN (13))) X) AS cnt FROM pseq Q; CREATE OR REPLACE VIEW cavs.prospect_tm_itim AS SELECT DISTINCT r.pseq_id, h.cnt AS "# of top 10 ig/fn3 threads", t."start" AS tm_start, t.stop AS tm_stop, r."start" AS itim_start, r.stop AS itim_stop FROM prospect_ig_fn3_in_top_10 h JOIN pftmdetect t ON h.pseq_id = t.pseq_id JOIN pfregexp r ON h.pseq_id = r.pseq_id WHERE h.cnt >= 2 AND t.pftype_id IN (5,6) AND r.pmodel_id = 11368857 AND r."start" > t.stop; -- create a defining view for prospect ig pmodels CREATE OR REPLACE VIEW dv_ig_prospect_pmodelset AS SELECT DISTINCT pmodel_id from pmprospect2_scop WHERE sunid IN (SELECT sunid FROM scop.des WHERE level='px' AND sccs ~ 'b[.]1[.]1[.]'); COMMENT ON VIEW dv_ig_prospect_pmodelset IS 'defines set of Immunoglobin prospect templates'; SELECT COUNT(DISTINCT pmodel_id) from dv_ig_prospect_pmodelset; -- create a defining view for prospect fn3 pmodels CREATE OR REPLACE VIEW dv_fn3_prospect_pmodelset AS SELECT DISTINCT pmodel_id from pmprospect2_scop WHERE sunid IN (SELECT sunid FROM scop.des WHERE level='px' AND sccs ~ 'b[.]1[.]2[.]'); COMMENT ON VIEW dv_ig_prospect_pmodelset IS 'defines set of Fibronectin III prospect templates'; SELECT COUNT(DISTINCT pmodel_id) from dv_fn3_prospect_pmodelset; -- build sets of known ITIMs for comparison -- -- build a set of pclusters based on known SPDI ITIM seqs DELETE FROM cavs.pclusterset WHERE pclustersetname_id=1; INSERT INTO cavs.pclusterset SELECT DISTINCT 1,pcluster_id FROM unison.pcluster_member WHERE pseq_id IN (SELECT pseq_id FROM pseqset WHERE pset_id=40); -- get a list of pcluster siblings for known SPDI ITIM seqs DELETE FROM pseqset WHERE pset_id=41; INSERT INTO pseqset SELECT DISTINCT 41,pseq_id FROM unison.pcluster_member WHERE pcluster_id IN (SELECT pcluster_id FROM cavs.pclusterset WHERE pclustersetname_id=1); -- build a set of pclusters based on known staub ITIM seqs DELETE FROM cavs.pclusterset WHERE pclustersetname_id=2; INSERT INTO cavs.pclusterset SELECT DISTINCT 2,pcluster_id FROM unison.pcluster_member WHERE pseq_id IN (SELECT pseq_id FROM pseqset WHERE pset_id=45); -- get a list of pcluster siblings for known staub ITIM seqs DELETE FROM pseqset WHERE pset_id=46; INSERT INTO pseqset SELECT DISTINCT 46,pseq_id FROM unison.pcluster_member WHERE pcluster_id IN (SELECT pcluster_id FROM cavs.pclusterset WHERE pclustersetname_id=2); -- mine uni_h -- -- mine uni_h for ITIMs using pfam model --DELETE FROM pseqset WHERE pset_id=-30; --INSERT INTO pseqset SELECT DISTINCT -30,pseq_id --FROM cavs.pfam_tm_itim --WHERE pseq_id IN (SELECT pseq_id FROM pseqset WHERE pset_id=42); -- build list of novel pfam itim seqs by subtract known ITIMs (and pcluster siblings) from set of pfam mined ITIMS DELETE FROM pseqset WHERE pset_id=-31; INSERT INTO pseqset SELECT DISTINCT -31,pseq_id FROM pseqset WHERE pset_id=-30 EXCEPT SELECT -31,pseq_id FROM pseqset WHERE pset_id in (41,46); -- build a set of pclusters based on novel pfam hits DELETE FROM cavs.pclusterset WHERE pclustersetname_id=3; INSERT INTO cavs.pclusterset SELECT DISTINCT 3,pcluster_id FROM unison.pcluster_member WHERE pseq_id IN (SELECT pseq_id FROM pseqset WHERE pset_id=-31); -- mine uni_h for ITIMs using prospect model --DELETE FROM pseqset WHERE pset_id=-35; --INSERT INTO pseqset SELECT DISTINCT -35,pseq_id --FROM cavs.prospect_tm_itim --WHERE pseq_id IN (SELECT pseq_id FROM pseqset WHERE pset_id=42); -- build list of novel prospect ITIM seqs by subtract known ITIMs (AND pcluster siblings) from set of prospect mINed ITIMS DELETE FROM pseqset WHERE pset_id=-36; INSERT INTO pseqset SELECT DISTINCT -36,pseq_id FROM pseqset WHERE pset_id=-35 EXCEPT SELECT -36,pseq_id FROM pseqset WHERE pset_id in (41,46); -- build a set of pclusters based on novel prospect hits DELETE FROM cavs.pclusterset WHERE pclustersetname_id=4; INSERT INTO cavs.pclusterset SELECT DISTINCT 4,pcluster_id FROM unison.pcluster_member WHERE pseq_id IN (SELECT pseq_id FROM pseqset WHERE pset_id=-36); -- push the novel hits to a bonafide pset DELETE FROM pseqset WHERE pset_id=47; INSERT INTO pseqset SELECT DISTINCT 47,pseq_id FROM pseqset WHERE pset_id IN (-31,-36); -- get a list of pcluster siblings for already mined ITIM seqs DELETE FROM pseqset WHERE pset_id=48; INSERT INTO pseqset SELECT DISTINCT 48,pseq_id FROM unison.pcluster_member WHERE pcluster_id IN (SELECT pcluster_id FROM cavs.pclusterset WHERE pclustersetname_id=3); -- mine GGI -- -- get a list of GGI ITIMs from pfam --DELETE FROM pseqset WHERE pset_id=-39; --INSERT INTO pseqset SELECT DISTINCT -39,pseq_id FROM --pfam_tm_itim WHERE pseq_id IN --(SELECT pseq_id FROM palias WHERE origin_id=10047); -- subtract known staub, known SPDI, already mined, and their genomic siblings from the -- GGI ITIMs to get a novel GGI set DELETE FROM pseqset WHERE pset_id=-40; INSERT INTO pseqset SELECT DISTINCT -40,pseq_id FROM pseqset WHERE pset_id=-39 EXCEPT SELECT -40,pseq_id FROM pseqset WHERE pset_id in (41,46,48); -- build a set of pclusters based on novel prospect hits DELETE FROM cavs.pclusterset WHERE pclustersetname_id=5; INSERT INTO cavs.pclusterset SELECT DISTINCT 5,pcluster_id FROM unison.pcluster_member WHERE pseq_id IN (SELECT pseq_id FROM pseqset WHERE pset_id=-40); -- get a list of GGI ITIMs from prospect --DELETE FROM pseqset WHERE pset_id=-41; --INSERT INTO pseqset SELECT DISTINCT -41,* FROM --(SELECT --(SELECT DISTINCT pti.pseq_id FROM cavs.prospect_tm_itim pti --WHERE pti.pseq_id=S.pseq_id) AS sq FROM palias S WHERE S.origin_id=10047) --X WHERE X.sq IS NOT NULL; -- subtract known staub, known SPDI, already mined, and their genomic siblings from the -- GGI ITIMs to get a novel GGI set DELETE FROM pseqset WHERE pset_id=-42; INSERT INTO pseqset SELECT DISTINCT -42,pseq_id FROM pseqset WHERE pset_id=-41 EXCEPT SELECT -42,pseq_id FROM pseqset WHERE pset_id in (41,46,48); -- build a set of pclusters based on novel pfam hits DELETE FROM cavs.pclusterset WHERE pclustersetname_id=6; INSERT INTO cavs.pclusterset SELECT DISTINCT 6,pcluster_id FROM unison.pcluster_member WHERE pseq_id IN (SELECT pseq_id FROM pseqset WHERE pset_id=-42); -- get counts of pseq_id for ITIM hits from uni_h by method -- only found by pfam method SELECT COUNT(*) FROM ( SELECT DISTINCT pseq_id FROM pseqset WHERE pset_id=-30 EXCEPT SELECT pseq_id FROM pseqset WHERE pset_id=-35) x; -- found by both pfam and prospect methods SELECT COUNT(*) FROM ( SELECT DISTINCT pseq_id FROM pseqset WHERE pset_id=-30 INTERSECT SELECT pseq_id FROM pseqset WHERE pset_id=-35) x; -- only found by prospect method SELECT COUNT(*) FROM ( SELECT DISTINCT pseq_id FROM pseqset WHERE pset_id=-35 EXCEPT SELECT pseq_id FROM pseqset WHERE pset_id=-30) x; -- get counts of pseq_id for novel ITIM hits from uni_h by method -- only found by pfam method SELECT COUNT(*) FROM ( SELECT DISTINCT pseq_id FROM pseqset WHERE pset_id=-31 EXCEPT SELECT pseq_id FROM pseqset WHERE pset_id=-36) x; -- found by both pfam and prospect methods SELECT COUNT(*) FROM ( SELECT DISTINCT pseq_id FROM pseqset WHERE pset_id=-31 INTERSECT SELECT pseq_id FROM pseqset WHERE pset_id=-36) x; -- only found by prospect method SELECT COUNT(*) FROM ( SELECT DISTINCT pseq_id FROM pseqset WHERE pset_id=-36 EXCEPT SELECT pseq_id FROM pseqset WHERE pset_id=-31) x; -- get counts of pseq_id for novel ITIM hits from GGI by method -- only found by pfam method SELECT COUNT(*) FROM ( SELECT DISTINCT pseq_id FROM pseqset WHERE pset_id=-31 EXCEPT SELECT pseq_id FROM pseqset WHERE pset_id=-36) x; -- found by both pfam and prospect methods SELECT COUNT(*) FROM ( SELECT DISTINCT pseq_id FROM pseqset WHERE pset_id=-31 INTERSECT SELECT pseq_id FROM pseqset WHERE pset_id=-36) x; -- only found by prospect method SELECT COUNT(*) FROM ( SELECT DISTINCT pseq_id FROM pseqset WHERE pset_id=-36 EXCEPT SELECT pseq_id FROM pseqset WHERE pset_id=-31) x; -- get counts of pclusters for novel ITIM hits by method -- only found by pfam method SELECT COUNT(*) FROM ( SELECT DISTINCT pcluster_id FROM cavs.pclusterset WHERE pclustersetname_id=3 EXCEPT SELECT pcluster_id FROM cavs.pclusterset WHERE pclustersetname_id=4) x; -- found by both pfam and prospect methods SELECT COUNT(*) FROM ( SELECT DISTINCT pcluster_id FROM cavs.pclusterset WHERE pclustersetname_id=3 INTERSECT SELECT pcluster_id FROM cavs.pclusterset WHERE pclustersetname_id=4) x; -- only found by prospect method SELECT COUNT(*) FROM ( SELECT DISTINCT pcluster_id FROM cavs.pclusterset WHERE pclustersetname_id=4 EXCEPT SELECT pcluster_id FROM cavs.pclusterset WHERE pclustersetname_id=3) x;
<filename>p7-skill/concurrent/large-data-sql-demo/sql/juc.sql<gh_stars>0 # create database juc default character set utf8mb4 collate utf8mb4_general_ci; create table user ( id int auto_increment, username varchar(200) not null, password varchar(200) null, age int null, sex int null, constraint user_pk primary key (id) )comment '用户信息';
CREATE TABLE [dbo].[Settings] ( [Id] [uniqueidentifier] NOT NULL, [SettingKey] [nvarchar] (300) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [SettingValue] [nvarchar] (1000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [Version] [timestamp] NOT NULL, [IsValid] [bit] NOT NULL CONSTRAINT [DF__Settings__IsVali__035179CE] DEFAULT ((1)), [ModifiedDateUtc] [datetime] NOT NULL CONSTRAINT [DF__Settings__Modifi__04459E07] DEFAULT (getutcdate()), [AddedDateUtc] [datetime] NOT NULL CONSTRAINT [DF__Settings__AddedD__0539C240] DEFAULT (getutcdate()) ) GO ALTER TABLE [dbo].[Settings] ADD CONSTRAINT [PK__Settings__3214EC06487C853A] PRIMARY KEY NONCLUSTERED ([Id]) GO
-- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you 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. -- ---------------------------------------------------------------------------------------------------------------- -- DATABASE: column_type_test -- ---------------------------------------------------------------------------------------------------------------- CREATE DATABASE column_type_test; USE column_type_test; CREATE TABLE full_types ( id INT AUTO_INCREMENT NOT NULL, bool_c BOOLEAN, tiny_c TINYINT, tiny_un_c TINYINT UNSIGNED, small_c SMALLINT, small_un_c SMALLINT UNSIGNED, medium_c MEDIUMINT, medium_un_c MEDIUMINT UNSIGNED, int_c INTEGER, int_un_c INTEGER UNSIGNED, big_c BIGINT, big_un_c BIGINT UNSIGNED, real_c REAL, float_c FLOAT, double_c DOUBLE, decimal_c DECIMAL(8, 4), numeric_c NUMERIC(6, 0), big_decimal_c DECIMAL(65, 1), date_c DATE, time_c TIME(0), datetime3_c TIMESTAMP(3), datetime6_c TIMESTAMP(6), timestamp_c TIMESTAMP, char_c CHAR(3), varchar_c VARCHAR(255), bit_c BIT(64), text_c TEXT, tiny_blob_c TINYBLOB, medium_blob_c MEDIUMBLOB, blob_c BLOB, long_blob_c LONGBLOB, year_c YEAR, set_c SET ('a', 'b'), enum_c ENUM ('red', 'green', 'blue'), PRIMARY KEY (id) ) DEFAULT CHARSET = utf8mb4; INSERT INTO full_types VALUES (DEFAULT, true, 127, 255, 32767, 65535, 8388607, 16777215, 2147483647, 4294967295, 9223372036854775807, 18446744073709551615, 123.102, 123.102, 404.4443, 123.4567, 345.6, 34567892.1, '2020-07-17', '18:00:22', '2020-07-17 18:00:22.123', '2020-07-17 18:00:22.123456', '2020-07-17 18:00:22', 'abc', 'Hello World', b'0000010000000100000001000000010000000100000001000000010000000100', 'text', UNHEX(HEX(16)), UNHEX(HEX(16)), UNHEX(HEX(16)), UNHEX(HEX(16)), 2022, 'a', 'red');
select '12'; select to_char(12); select '1'||''||'2'; select to_char(1)||''||to_char(2); select 12; select 8 + 4; select 16 - 4; select 999999999999999999999999999 - 999999999999999999999999987; select '12' as a; select 12 as a; select to_char(12) as a; select 8 + 4 as a; select 16 - 4 as a; select 999999999999999999999999999 - 999999999999999999999999987 as a;
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/SQL/DML/call_function/Opengauss_Function_DML_Call_Function_Case0005.sql<gh_stars>0 -- @testpoint: 调用函数,不加函数名,合理报错 drop FUNCTION if EXISTS func_add_sql006; CREATE FUNCTION func_add_sql006(num1 integer, num2 integer) RETURN integer AS BEGIN RETURN num1 + num2; END; / CALL (1, 3); drop FUNCTION func_add_sql006;
<reponame>opengauss-mirror/Yat -- @testpoint:opengauss关键字Lc_Collate(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists Lc_Collate; create database Lc_Collate; drop database Lc_Collate; --关键字带双引号-成功 drop database if exists "Lc_Collate"; create database "Lc_Collate"; drop database "Lc_Collate"; --关键字带单引号-合理报错 drop database if exists 'Lc_Collate'; create database 'Lc_Collate'; --关键字带反引号-合理报错 drop database if exists `Lc_Collate`; create database `Lc_Collate`;
<reponame>vladzcloudius/scylla-manager<filename>schema/006-ssh_user_per_cluster.cql -- Cluster ALTER TABLE cluster ADD ssh_user text;
SELECT * FROM ( SELECT EmployeeID ,FirstName, LastName, Salary, DENSE_RANK() OVER (PARTITION BY Salary ORDER BY EmployeeID) AS RANK FROM Employees WHERE Salary BETWEEN 10000 AND 50000 ) AS MyTable WHERE RANK = 2 ORDER BY Salary DESC
/* Copyright (c) 2016 E.I.Sarmas (github.com/dsnz) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* E.I.Sarmas (github.com/dsnz) 2016-02-09 implementation and demo for json_table.json_table() functionality modelled after Oracle 12c json_table() this type/package is intended to work within the pljson library (https://github.com/pljson) */ /* test table with 3 rows, each row contains a json document */ drop table pljson_table_test; create table pljson_table_test (num number not null, col clob); insert into pljson_table_test values(1, '{"data": { "name": "name 1", "description": "Cloud computing can support a company''s speed and agility, ...", "type": "link", "created_time": "2015-05-12T16:26:12+0000", "shares": { "count": 1 }, "extra": "x1", "maps" : [ true ] } }'); insert into pljson_table_test values(2, '{"data": { "name": "<NAME>", "description": "Oracle''s suite of SaaS applications not only reduces costs but...", "type": "link", "created_time": "2015-05-29T19:23:27+0000", "shares": { "count": 5 }, "extra": "x5", "maps" : [ true ] } }'); insert into pljson_table_test values(3, '{"data": { "name": "<NAME>", "description": "blah blah...", "type": "text", "created_time": "2015-12-21T19:23:29+0000", "shares": { "count": 100 }, "extra": null, "maps" : [ true, true, false ] } }'); commit; /* the call format is <type>.json_table(<json document>, pljson_varray(...), pljson_varray()) where <type> is pljson_table or json_table or pljson_table_impl pljson_varray is a type used to pass multiple string arguments 1st pljson_varray contains 'paths' in the document to select and project as columns 2nd pljson_varray contains 'names' for respective paths that will serve as 'column names' the names array is optional, if not present the columns are named JSON_1, JSON_2, ... the value for a column may be a single one (string/number/boolean/number) or an array of single values the final table contains the 'cartesian product' of all column values (this is equivalent to the 'NESTED PATH' of json_table() in Oracle12c) all returned columns are of type varchar2 it could be easy for the columns to be automatically of type varchar2/number/... but this would involve excessive number of transformations from and to varchar representation in the implementation and would impact performance it is believed that the user of the library can manipulate the varchar2 values in the way that better serves his/her application needs */ /* select from a single 'literal' json document */ select * from table( pljson_table.json_table( '{"data": { "name": "<NAME>", "description": "blah blah...", "type": "text", "created_time": "2015-12-21T19:23:29+0000", "shares": { "count": 100 }, "extra": null, "maps" : [ true, true, false ] } }', pljson_varray('data.name', 'data.extra', 'data.maps', 'data.shares.count', 'data.missing'), pljson_varray('name', 'extra', 'map', 'count', 'whatelse')) ) / /* select from a single 'literal' json document and joined to other table */ select num, name, map, count from pljson_table_test, table( pljson_table.json_table( '{"data": { "name": "<NAME>", "description": "blah blah...", "type": "text", "created_time": "2015-12-21T19:23:29+0000", "shares": { "count": 100 }, "extra": null, "maps" : [ true, true, false ] } }', pljson_varray('data.name', 'data.extra', 'data.maps', 'data.shares.count', 'data.missing'), pljson_varray('name', 'extra', 'map', 'count', 'whatelse')) ) order by num / /* select from a table with json documents projecting all results to new table */ select num, name, map, count from pljson_table_test, table( pljson_table.json_table( col, pljson_varray('data.name', 'data.extra', 'data.maps', 'data.shares.count', 'data.missing'), pljson_varray('name', 'extra', 'map', 'count', 'whatelse')) ) order by num /
<reponame>rerinho/nestjs-realworld-example-app<filename>prisma/migrations/20210707003808_alter_article_slug_obrigatoriety/migration.sql -- AlterTable ALTER TABLE "articles" ALTER COLUMN "slug" DROP NOT NULL;
<reponame>RyanHallMedia/generic-blog -- Generated by Craft v2.6.2962 on Feb 23, 2017, 9:18:10 PM. -- -- Disable foreign key checks and autocommit. -- SET FOREIGN_KEY_CHECKS = 0; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; SET NAMES utf8; DROP TABLE IF EXISTS `craft_assetfiles`; -- -- Schema for table `craft_assetfiles` -- CREATE TABLE `craft_assetfiles` ( `id` int(11) NOT NULL, `sourceId` int(11) DEFAULT NULL, `folderId` int(11) NOT NULL, `filename` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `kind` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'unknown', `width` int(11) unsigned DEFAULT NULL, `height` int(11) unsigned DEFAULT NULL, `size` bigint(20) unsigned DEFAULT NULL, `dateModified` datetime DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_assetfiles_filename_folderId_unq_idx` (`filename`,`folderId`), KEY `craft_assetfiles_sourceId_fk` (`sourceId`), KEY `craft_assetfiles_folderId_fk` (`folderId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_assetfiles` -- INSERT INTO `craft_assetfiles` (`id`, `sourceId`, `folderId`, `filename`, `kind`, `width`, `height`, `size`, `dateModified`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('8', '1', '1', 'me.jpg', 'image', '900', '1350', '438893', '2017-02-22 16:14:11', '2017-02-22 16:14:11', '2017-02-22 16:14:11', 'abc819ec-db43-407d-ac15-60a9499026f9'), ('9', '1', '1', 'ryan.png', 'image', '320', '320', '162789', '2017-02-22 16:14:12', '2017-02-22 16:14:12', '2017-02-22 16:14:12', '13967fa5-6041-41d0-b311-0a30837a8a51'), ('12', '1', '1', 'blog-back.jpg', 'image', '1600', '900', '1773576', '2017-02-22 18:57:02', '2017-02-22 18:57:02', '2017-02-22 18:57:02', '724ceaef-dd23-4f09-b189-d49cfad8f814'), ('13', '1', '1', 'Logos-04.png', 'image', '503', '500', '45174', '2017-02-22 21:30:16', '2017-02-22 21:30:16', '2017-02-22 21:30:16', '93bb58e6-e157-4336-abd7-8a4396e92a71'), ('14', '1', '1', 'Static-Assets-with-Amazon-s3.jpg', 'image', '750', '500', '99510', '2017-02-22 21:30:17', '2017-02-22 21:30:17', '2017-02-22 21:30:17', '06bb8c37-2336-4ecc-bfd7-941220774b3d'), ('16', '1', '1', 'Static-Assets-with-Amazon-s3-1.jpg', 'image', '1600', '1067', '370448', '2017-02-22 21:52:04', '2017-02-22 21:52:06', '2017-02-22 21:52:06', 'a340cc7b-76af-4b6a-9392-e30faba35282'); DROP TABLE IF EXISTS `craft_assetfolders`; -- -- Schema for table `craft_assetfolders` -- CREATE TABLE `craft_assetfolders` ( `id` int(11) NOT NULL AUTO_INCREMENT, `parentId` int(11) DEFAULT NULL, `sourceId` int(11) DEFAULT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `path` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_assetfolders_name_parentId_sourceId_unq_idx` (`name`,`parentId`,`sourceId`), KEY `craft_assetfolders_parentId_fk` (`parentId`), KEY `craft_assetfolders_sourceId_fk` (`sourceId`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_assetfolders` -- INSERT INTO `craft_assetfolders` (`id`, `parentId`, `sourceId`, `name`, `path`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', NULL, '1', 'blog', '', '2017-02-21 22:02:26', '2017-02-21 22:02:26', 'a4500b8c-b567-4e49-8e56-9add613c5281'); DROP TABLE IF EXISTS `craft_assetindexdata`; -- -- Schema for table `craft_assetindexdata` -- CREATE TABLE `craft_assetindexdata` ( `id` int(11) NOT NULL AUTO_INCREMENT, `sessionId` varchar(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `sourceId` int(10) NOT NULL, `offset` int(10) NOT NULL, `uri` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `size` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `recordId` int(10) DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_assetindexdata_sessionId_sourceId_offset_unq_idx` (`sessionId`,`sourceId`,`offset`), KEY `craft_assetindexdata_sourceId_fk` (`sourceId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_assetsources`; -- -- Schema for table `craft_assetsources` -- CREATE TABLE `craft_assetsources` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `handle` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `type` varchar(150) COLLATE utf8_unicode_ci NOT NULL, `settings` text COLLATE utf8_unicode_ci, `sortOrder` smallint(6) unsigned DEFAULT NULL, `fieldLayoutId` int(10) DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_assetsources_name_unq_idx` (`name`), UNIQUE KEY `craft_assetsources_handle_unq_idx` (`handle`), KEY `craft_assetsources_fieldLayoutId_fk` (`fieldLayoutId`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_assetsources` -- INSERT INTO `craft_assetsources` (`id`, `name`, `handle`, `type`, `settings`, `sortOrder`, `fieldLayoutId`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', 'blog', 'blog', 'Local', '{\"path\":\"assets\\/img\\/blog\\/\",\"publicURLs\":\"1\",\"url\":\"\\/assets\\/img\\/blog\\/\"}', '1', '32', '2017-02-21 22:02:26', '2017-02-22 16:17:50', '33908694-3218-4153-944a-0082586204e4'); DROP TABLE IF EXISTS `craft_assettransformindex`; -- -- Schema for table `craft_assettransformindex` -- CREATE TABLE `craft_assettransformindex` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fileId` int(11) NOT NULL, `filename` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `format` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `sourceId` int(11) DEFAULT NULL, `fileExists` tinyint(1) DEFAULT NULL, `inProgress` tinyint(1) DEFAULT NULL, `dateIndexed` datetime DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `craft_assettransformindex_sourceId_fileId_location_idx` (`sourceId`,`fileId`,`location`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_assettransforms`; -- -- Schema for table `craft_assettransforms` -- CREATE TABLE `craft_assettransforms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `handle` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `mode` enum('stretch','fit','crop') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'crop', `position` enum('top-left','top-center','top-right','center-left','center-center','center-right','bottom-left','bottom-center','bottom-right') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'center-center', `height` int(10) DEFAULT NULL, `width` int(10) DEFAULT NULL, `format` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `quality` int(10) DEFAULT NULL, `dimensionChangeTime` datetime DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_assettransforms_name_unq_idx` (`name`), UNIQUE KEY `craft_assettransforms_handle_unq_idx` (`handle`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_categories`; -- -- Schema for table `craft_categories` -- CREATE TABLE `craft_categories` ( `id` int(11) NOT NULL, `groupId` int(11) NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `craft_categories_groupId_fk` (`groupId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_categorygroups`; -- -- Schema for table `craft_categorygroups` -- CREATE TABLE `craft_categorygroups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `structureId` int(11) NOT NULL, `fieldLayoutId` int(11) DEFAULT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `handle` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `hasUrls` tinyint(1) unsigned NOT NULL DEFAULT '1', `template` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_categorygroups_name_unq_idx` (`name`), UNIQUE KEY `craft_categorygroups_handle_unq_idx` (`handle`), KEY `craft_categorygroups_structureId_fk` (`structureId`), KEY `craft_categorygroups_fieldLayoutId_fk` (`fieldLayoutId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_categorygroups_i18n`; -- -- Schema for table `craft_categorygroups_i18n` -- CREATE TABLE `craft_categorygroups_i18n` ( `id` int(11) NOT NULL AUTO_INCREMENT, `groupId` int(11) NOT NULL, `locale` char(12) COLLATE utf8_unicode_ci NOT NULL, `urlFormat` text COLLATE utf8_unicode_ci, `nestedUrlFormat` text COLLATE utf8_unicode_ci, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_categorygroups_i18n_groupId_locale_unq_idx` (`groupId`,`locale`), KEY `craft_categorygroups_i18n_locale_fk` (`locale`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_content`; -- -- Schema for table `craft_content` -- CREATE TABLE `craft_content` ( `id` int(11) NOT NULL AUTO_INCREMENT, `elementId` int(11) NOT NULL, `locale` char(12) COLLATE utf8_unicode_ci NOT NULL, `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `field_body` text COLLATE utf8_unicode_ci, `field_blogSummary` text COLLATE utf8_unicode_ci, `field_ert` text COLLATE utf8_unicode_ci, `field_blogIndexTitle` text COLLATE utf8_unicode_ci, `field_blogIndexSubtitle` text COLLATE utf8_unicode_ci, `field_postTitle` text COLLATE utf8_unicode_ci, `field_postSubtitle` text COLLATE utf8_unicode_ci, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_content_elementId_locale_unq_idx` (`elementId`,`locale`), KEY `craft_content_title_idx` (`title`), KEY `craft_content_locale_fk` (`locale`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_content` -- INSERT INTO `craft_content` (`id`, `elementId`, `locale`, `title`, `field_body`, `field_blogSummary`, `field_ert`, `field_blogIndexTitle`, `field_blogIndexSubtitle`, `field_postTitle`, `field_postSubtitle`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', '1', 'en_us', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2017-02-21 21:10:15', '2017-02-22 17:02:40', '439f6f0c-419b-4d35-a8a2-c05052f3e621'), ('2', '2', 'en_us', 'Ryan\'s test blog', '<p>It’s true, this site doesn’t have a whole lot of content yet, but don’t worry. Our web developers have just installed the CMS, and they’re setting things up for the content editors this very moment. Soon Dev.blog.com will be an oasis of fresh perspectives, sharp analyses, and astute opinions that will keep you coming back again and again.</p>', NULL, NULL, '<NAME><br>Ass Test Blog', 'This is a blog about nothing. Its main use is to prove that I can use craft<br class=\"hidden-xs\">and don\'t write shit code... Some of this code is pretty shitty though', NULL, NULL, '2017-02-21 21:10:19', '2017-02-23 16:54:13', '1b125203-a3fb-492d-8835-804260ef8898'), ('3', '3', 'en_us', 'We just installed Craft!', '<p>Craft is the CMS that’s powering Dev.blog.com. It’s beautiful, powerful, flexible, and easy-to-use, and it’s made by Pixel &amp; Tonic. We can’t wait to dive in and see what it’s capable of!</p><!--pagebreak--><p>This is even more captivating content, which you couldn’t see on the News index page because it was entered after a Page Break, and the News index template only likes to show the content on the first page.</p><p>Craft: a nice alternative to Word, if you’re making a website.</p>', NULL, NULL, NULL, NULL, NULL, NULL, '2017-02-21 21:10:19', '2017-02-21 21:10:19', 'dea8a383-da7d-4f91-b7f3-c0612bc22da3'), ('4', '4', 'en_us', 'Hosting Static Files with S3 & CloudFront', NULL, 'The modern web is rich with photography, iconography, and video, but image-heavy sites can result in poor performance for the end user.', '1', NULL, NULL, 'Hosting Static Files with S3 & CloudFront', 'This is something', '2017-02-21 22:37:07', '2017-02-23 18:39:40', 'bead7017-d455-4598-abb2-276f2d35f6e6'), ('5', '6', 'en_us', 'blogpost', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2017-02-22 15:04:46', '2017-02-22 15:04:46', '284a220a-ba9f-4997-9cab-5601e938d3b0'), ('6', '7', 'en_us', 'another test', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2017-02-22 15:07:42', '2017-02-22 15:07:42', '43388c1d-b1c9-4302-84fb-29b545b8d4a3'), ('7', '8', 'en_us', 'Me', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2017-02-22 16:14:11', '2017-02-22 16:14:11', 'e3889f39-647e-49e8-a28c-acc247564324'), ('8', '9', 'en_us', 'Ryan', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2017-02-22 16:14:12', '2017-02-22 16:14:12', '79c32722-85b5-4c5a-bd41-b5933cc84acd'), ('9', '10', 'en_us', 'Designing an Exceptional Beer Experience', NULL, 'Following our Design on Tap event, we chatted with <NAME>, and <NAME>, from Hopworks Urban Brewery about branding beer.', '2', NULL, NULL, 'Designing an Exceptional Beer Experience', 'This is another test post!', '2017-02-22 16:15:31', '2017-02-22 21:30:40', 'd5e34cb0-091d-4ae5-a624-d667ed5b9a2a'), ('10', '12', 'en_us', 'Blog Back', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2017-02-22 18:57:02', '2017-02-22 18:57:02', 'f4328f05-4cdb-4a7f-8425-6f25fed2c716'), ('11', '13', 'en_us', 'Logos 04', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2017-02-22 21:30:16', '2017-02-22 21:30:16', 'fe019260-01f2-4086-beab-59097afb28fe'), ('12', '14', 'en_us', 'Static Assets With Amazon S3', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2017-02-22 21:30:17', '2017-02-22 21:30:17', 'f4dc6708-d3e8-4995-af27-45b44cae293f'), ('14', '16', 'en_us', 'Static Assets With Amazon S3 1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2017-02-22 21:52:06', '2017-02-22 21:52:06', 'f27f7f24-7276-4b2d-af8b-e381d7660c77'), ('15', '23', 'en_us', 'Hosting Static Files with S3 & CloudFront', NULL, 'The modern web is rich with photography, iconography, and video, but image-heavy sites can result in poor performance for the end user.', '1', NULL, NULL, 'Hosting Static Files with S3 & CloudFront', 'This is something', '2017-02-23 00:03:50', '2017-02-23 00:03:52', 'd62ab4d7-3c12-4f85-ae13-d3819a486f68'), ('16', '31', 'en_us', 'Designing an Exceptional Beer Experience', NULL, 'Following our Design on Tap event, we chatted with <NAME>, and <NAME>, from Hopworks Urban Brewery about branding beer.', '2', NULL, NULL, 'Designing an Exceptional Beer Experience', 'This is another test post!', '2017-02-23 00:13:07', '2017-02-23 00:13:09', '78ec9db5-078c-43ae-b2d9-6b23880a8d18'); DROP TABLE IF EXISTS `craft_deprecationerrors`; -- -- Schema for table `craft_deprecationerrors` -- CREATE TABLE `craft_deprecationerrors` ( `id` int(11) NOT NULL AUTO_INCREMENT, `key` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `fingerprint` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `lastOccurrence` datetime NOT NULL, `file` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `line` smallint(6) unsigned NOT NULL, `class` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `method` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `template` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `templateLine` smallint(6) unsigned DEFAULT NULL, `message` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `traces` text COLLATE utf8_unicode_ci, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_deprecationerrors_key_fingerprint_unq_idx` (`key`,`fingerprint`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_elementindexsettings`; -- -- Schema for table `craft_elementindexsettings` -- CREATE TABLE `craft_elementindexsettings` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(150) COLLATE utf8_unicode_ci NOT NULL, `settings` text COLLATE utf8_unicode_ci, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_elementindexsettings_type_unq_idx` (`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_elements`; -- -- Schema for table `craft_elements` -- CREATE TABLE `craft_elements` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(150) COLLATE utf8_unicode_ci NOT NULL, `enabled` tinyint(1) unsigned NOT NULL DEFAULT '1', `archived` tinyint(1) unsigned NOT NULL DEFAULT '0', `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `craft_elements_type_idx` (`type`), KEY `craft_elements_enabled_idx` (`enabled`), KEY `craft_elements_archived_dateCreated_idx` (`archived`,`dateCreated`) ) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_elements` -- INSERT INTO `craft_elements` (`id`, `type`, `enabled`, `archived`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', 'User', '1', '0', '2017-02-21 21:10:15', '2017-02-22 17:02:40', '7a8a3330-cf63-4ab7-8467-13c6ffdad543'), ('2', 'Entry', '1', '0', '2017-02-21 21:10:19', '2017-02-23 16:54:13', '157d9d36-7b24-4037-996b-e0d6bb147428'), ('3', 'Entry', '1', '0', '2017-02-21 21:10:19', '2017-02-21 21:10:19', '22a1cd7b-37ad-41f1-b22f-766989a7ee75'), ('4', 'Entry', '1', '0', '2017-02-21 22:37:07', '2017-02-23 18:39:40', 'f6aa4f0e-eba4-40bd-bb74-b7db75f75d10'), ('5', 'MatrixBlock', '1', '0', '2017-02-21 22:37:07', '2017-02-23 18:39:40', 'd761ca86-610f-4be2-bbad-2ead07532718'), ('6', 'Tag', '1', '0', '2017-02-22 15:04:46', '2017-02-22 15:04:46', '2194759e-6b53-4df1-a061-0df5f7806bf3'), ('7', 'Tag', '1', '0', '2017-02-22 15:07:42', '2017-02-22 15:07:42', '68337765-9932-4705-b1dc-3c1fa1fe70fd'), ('8', 'Asset', '1', '0', '2017-02-22 16:14:11', '2017-02-22 16:14:11', 'd6cf08ca-771e-4601-8d45-0198ae640594'), ('9', 'Asset', '1', '0', '2017-02-22 16:14:12', '2017-02-22 16:14:12', '7b19a5c6-1f0b-431e-b155-a5ddccef9409'), ('10', 'Entry', '1', '0', '2017-02-22 16:15:31', '2017-02-22 21:30:40', '1d2fb858-c860-4c96-80ff-c7f723a0e21f'), ('11', 'MatrixBlock', '1', '0', '2017-02-22 16:15:31', '2017-02-22 21:30:40', '2859e04e-03c3-4e94-a23f-5b5d6dec4f3a'), ('12', 'Asset', '1', '0', '2017-02-22 18:57:02', '2017-02-22 18:57:02', '2d20f873-239b-43b8-a82a-2cda2e653f28'), ('13', 'Asset', '1', '0', '2017-02-22 21:30:16', '2017-02-22 21:30:16', '29cdae6e-e719-432a-b60e-b33daf2630f0'), ('14', 'Asset', '1', '0', '2017-02-22 21:30:17', '2017-02-22 21:30:17', '864073f9-2556-4ea0-9ae7-c4616058c799'), ('16', 'Asset', '1', '0', '2017-02-22 21:52:06', '2017-02-22 21:52:06', 'a796e743-5847-4f72-9507-cd08b3d0b43d'), ('17', 'MatrixBlock', '1', '0', '2017-02-22 21:54:22', '2017-02-23 18:39:40', '8162cc9b-457e-437e-a17a-49fcf434be02'), ('18', 'MatrixBlock', '1', '0', '2017-02-22 21:54:22', '2017-02-23 18:39:40', 'd2c7d483-75f5-437e-8733-a46a312ac457'), ('19', 'MatrixBlock', '1', '0', '2017-02-22 21:54:22', '2017-02-23 18:39:40', '2d6875ed-ae07-4712-9f0a-5362cdadbe4f'), ('20', 'MatrixBlock', '1', '0', '2017-02-22 21:54:22', '2017-02-23 18:39:40', '0ffa0365-6c09-432a-aa5a-dd970352f559'), ('21', 'MatrixBlock', '1', '0', '2017-02-22 23:05:26', '2017-02-23 18:39:40', 'bd8865f8-1884-4a60-ac7b-b3fab75ff8f9'), ('22', 'MatrixBlock', '1', '0', '2017-02-22 23:05:26', '2017-02-23 18:39:40', '313af82f-9921-4269-b5e2-8db7dfc5551c'), ('23', 'Entry', '1', '0', '2017-02-23 00:03:50', '2017-02-23 00:03:52', 'ed424488-f152-4e50-9989-1745b2964cee'), ('24', 'MatrixBlock', '1', '0', '2017-02-23 00:03:50', '2017-02-23 00:03:53', 'e58df091-17b1-4a13-970d-b6e0044129ba'), ('25', 'MatrixBlock', '1', '0', '2017-02-23 00:03:50', '2017-02-23 00:03:53', '22e4b7d8-09af-4740-ab89-8ebcb5355de0'), ('26', 'MatrixBlock', '1', '0', '2017-02-23 00:03:50', '2017-02-23 00:03:53', '88a2e7ed-5f9d-4d39-b7f8-5fa0b7f216d9'), ('27', 'MatrixBlock', '1', '0', '2017-02-23 00:03:50', '2017-02-23 00:03:53', '2a2c2674-ec2c-4177-825b-cea995923414'), ('28', 'MatrixBlock', '1', '0', '2017-02-23 00:03:50', '2017-02-23 00:03:53', '16ff57a0-d7d6-49ff-b2a5-c981250d0242'), ('29', 'MatrixBlock', '1', '0', '2017-02-23 00:03:50', '2017-02-23 00:03:53', '29f54f4f-cd3e-4ce9-8964-1fc75fb99d0f'), ('30', 'MatrixBlock', '1', '0', '2017-02-23 00:03:50', '2017-02-23 00:03:53', '21d97b40-18d6-4f6c-9013-ef54fd1a4bbf'), ('31', 'Entry', '1', '0', '2017-02-23 00:13:07', '2017-02-23 00:13:09', '7604946c-8ca2-4487-ab5c-5291d2270666'), ('32', 'MatrixBlock', '1', '0', '2017-02-23 00:13:07', '2017-02-23 00:13:09', 'b3141ef9-0676-43fd-ab69-60d860230ac7'), ('33', 'MatrixBlock', '1', '0', '2017-02-23 18:39:40', '2017-02-23 18:39:40', '77212d43-41c8-40df-91c3-2e93ea88242d'); DROP TABLE IF EXISTS `craft_elements_i18n`; -- -- Schema for table `craft_elements_i18n` -- CREATE TABLE `craft_elements_i18n` ( `id` int(11) NOT NULL AUTO_INCREMENT, `elementId` int(11) NOT NULL, `locale` char(12) COLLATE utf8_unicode_ci NOT NULL, `slug` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `uri` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `enabled` tinyint(1) unsigned NOT NULL DEFAULT '1', `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_elements_i18n_elementId_locale_unq_idx` (`elementId`,`locale`), UNIQUE KEY `craft_elements_i18n_uri_locale_unq_idx` (`uri`,`locale`), KEY `craft_elements_i18n_slug_locale_idx` (`slug`,`locale`), KEY `craft_elements_i18n_enabled_idx` (`enabled`), KEY `craft_elements_i18n_locale_fk` (`locale`) ) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_elements_i18n` -- INSERT INTO `craft_elements_i18n` (`id`, `elementId`, `locale`, `slug`, `uri`, `enabled`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', '1', 'en_us', '', NULL, '1', '2017-02-21 21:10:15', '2017-02-22 17:02:40', '215355bf-7174-4326-8ab6-552fc4486403'), ('2', '2', 'en_us', 'homepage', '__home__', '1', '2017-02-21 21:10:19', '2017-02-23 16:54:13', 'dd7b813f-f319-4199-b0a6-273d6fec30ae'), ('3', '3', 'en_us', 'we-just-installed-craft', 'news/2017/we-just-installed-craft', '1', '2017-02-21 21:10:19', '2017-02-21 21:10:19', '4e0eac2c-5eae-4cbf-a628-70036da7b824'), ('4', '4', 'en_us', 'the-first-post', 'blog/the-first-post', '1', '2017-02-21 22:37:07', '2017-02-23 18:39:40', '9cec54ae-f4c2-49b2-81de-7ee1f504bf20'), ('5', '5', 'en_us', '', NULL, '1', '2017-02-21 22:37:07', '2017-02-23 18:39:40', 'ba69b037-84d2-44de-8174-80ea94dda172'), ('6', '6', 'en_us', 'blogpost', NULL, '1', '2017-02-22 15:04:46', '2017-02-22 15:04:46', '43e5b5af-eb70-4d1e-9489-524ffa27b083'), ('7', '7', 'en_us', 'another-test', NULL, '1', '2017-02-22 15:07:42', '2017-02-22 15:07:42', '59128fbc-d8f9-4efe-b16f-91f457ccdd24'), ('8', '8', 'en_us', 'me', NULL, '1', '2017-02-22 16:14:11', '2017-02-22 16:14:11', '8965a55a-54d4-4e61-a9e9-d7e744bdf92e'), ('9', '9', 'en_us', 'ryan', NULL, '1', '2017-02-22 16:14:12', '2017-02-22 16:14:12', '6a0f2ce5-0db2-49c4-8291-f2d0e0d87a9e'), ('10', '10', 'en_us', 'another-test-post', 'blog/another-test-post', '1', '2017-02-22 16:15:31', '2017-02-22 21:30:40', '259a2192-0bc8-4b67-93a5-f466e34d93fe'), ('11', '11', 'en_us', '', NULL, '1', '2017-02-22 16:15:31', '2017-02-22 21:30:40', '4b396de5-f5f8-478a-8f5a-a6ce6548ac47'), ('12', '12', 'en_us', 'blog-back', NULL, '1', '2017-02-22 18:57:02', '2017-02-22 18:57:02', '9c7c880c-3e91-40a3-a058-43faab21c862'), ('13', '13', 'en_us', 'logos-04', NULL, '1', '2017-02-22 21:30:16', '2017-02-22 21:30:16', '9ba47680-0f73-463a-914b-34ae90672527'), ('14', '14', 'en_us', 'static-assets-with-amazon-s3', NULL, '1', '2017-02-22 21:30:17', '2017-02-22 21:30:17', '0c4e5438-3d41-4da3-bbc4-c8ba02ab2f30'), ('16', '16', 'en_us', 'static-assets-with-amazon-s3-1', NULL, '1', '2017-02-22 21:52:06', '2017-02-22 21:52:06', '5c93abb4-96c7-4de0-8bed-3ee4b9f95cee'), ('17', '17', 'en_us', '', NULL, '1', '2017-02-22 21:54:22', '2017-02-23 18:39:40', 'da842e76-66a7-4e7c-872e-de372e35bbf1'), ('18', '18', 'en_us', '', NULL, '1', '2017-02-22 21:54:22', '2017-02-23 18:39:40', '7a2a4d43-e9a0-4343-9845-60b46212905b'), ('19', '19', 'en_us', '', NULL, '1', '2017-02-22 21:54:22', '2017-02-23 18:39:40', 'e8de03a5-e726-4c67-942e-a4f740ff0400'), ('20', '20', 'en_us', '', NULL, '1', '2017-02-22 21:54:22', '2017-02-23 18:39:40', 'e492f6b5-1da9-4696-86b8-69596ee65152'), ('21', '21', 'en_us', '', NULL, '1', '2017-02-22 23:05:26', '2017-02-23 18:39:40', '06a5149c-5126-4c0f-a83a-5b0373f2f88a'), ('22', '22', 'en_us', '', NULL, '1', '2017-02-22 23:05:26', '2017-02-23 18:39:40', 'e2f49c08-4e72-4a69-be37-8a91e4186031'), ('23', '23', 'en_us', 'the-first-post-1', 'blog/the-first-post-1', '1', '2017-02-23 00:03:50', '2017-02-23 00:03:53', 'a26cadcc-be59-4a93-a581-ff38272acae0'), ('24', '24', 'en_us', '', NULL, '1', '2017-02-23 00:03:50', '2017-02-23 00:03:53', '98c2cab7-544f-4a74-a0b6-7cce2a164f56'), ('25', '25', 'en_us', '', NULL, '1', '2017-02-23 00:03:50', '2017-02-23 00:03:53', '508ac761-d82a-4120-bcd0-a8296a254ca5'), ('26', '26', 'en_us', '', NULL, '1', '2017-02-23 00:03:50', '2017-02-23 00:03:53', '8ffe4214-ce09-41cc-86cd-2c180867a9af'), ('27', '27', 'en_us', '', NULL, '1', '2017-02-23 00:03:50', '2017-02-23 00:03:53', '1fd324b1-5770-4335-92e6-b5cd6c8c48ae'), ('28', '28', 'en_us', '', NULL, '1', '2017-02-23 00:03:50', '2017-02-23 00:03:53', '43f2755a-b46d-4ce3-a0ed-fe78f700fff7'), ('29', '29', 'en_us', '', NULL, '1', '2017-02-23 00:03:50', '2017-02-23 00:03:53', '0d27982c-c102-45a9-877d-7fccb5e2c029'), ('30', '30', 'en_us', '', NULL, '1', '2017-02-23 00:03:50', '2017-02-23 00:03:53', 'aced0948-a4c4-4fd2-95fd-c1794e95aa16'), ('31', '31', 'en_us', 'another-test-post-1', 'blog/another-test-post-1', '1', '2017-02-23 00:13:07', '2017-02-23 00:13:09', 'c95a639f-2fa0-45f0-8614-426f6f61ffa6'), ('32', '32', 'en_us', '', NULL, '1', '2017-02-23 00:13:07', '2017-02-23 00:13:09', 'e4bed31f-7314-41fe-9913-54211e50c496'), ('33', '33', 'en_us', '', NULL, '1', '2017-02-23 18:39:40', '2017-02-23 18:39:40', '8dbdc095-cf8e-46f0-94bc-51fb57bc7a9f'); DROP TABLE IF EXISTS `craft_emailmessages`; -- -- Schema for table `craft_emailmessages` -- CREATE TABLE `craft_emailmessages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `key` char(150) COLLATE utf8_unicode_ci NOT NULL, `locale` char(12) COLLATE utf8_unicode_ci NOT NULL, `subject` varchar(1000) COLLATE utf8_unicode_ci NOT NULL, `body` text COLLATE utf8_unicode_ci NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_emailmessages_key_locale_unq_idx` (`key`,`locale`), KEY `craft_emailmessages_locale_fk` (`locale`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_entries`; -- -- Schema for table `craft_entries` -- CREATE TABLE `craft_entries` ( `id` int(11) NOT NULL, `sectionId` int(11) NOT NULL, `typeId` int(11) DEFAULT NULL, `authorId` int(11) DEFAULT NULL, `postDate` datetime DEFAULT NULL, `expiryDate` datetime DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `craft_entries_sectionId_idx` (`sectionId`), KEY `craft_entries_typeId_idx` (`typeId`), KEY `craft_entries_postDate_idx` (`postDate`), KEY `craft_entries_expiryDate_idx` (`expiryDate`), KEY `craft_entries_authorId_fk` (`authorId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_entries` -- INSERT INTO `craft_entries` (`id`, `sectionId`, `typeId`, `authorId`, `postDate`, `expiryDate`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('2', '1', NULL, NULL, '2017-02-21 21:10:19', NULL, '2017-02-21 21:10:19', '2017-02-23 16:54:13', 'a2f851e0-34a9-4330-bb50-d966195a6cd3'), ('3', '2', '2', '1', '2017-02-21 21:10:19', NULL, '2017-02-21 21:10:19', '2017-02-21 21:10:19', 'ce762f0b-677a-4268-90a0-978b57f964e7'), ('4', '3', '3', '1', '2017-02-21 22:37:00', NULL, '2017-02-21 22:37:07', '2017-02-23 18:39:40', '97955a17-8166-4484-a37b-7da62da05e83'), ('10', '3', '3', '1', '2017-02-22 16:15:00', NULL, '2017-02-22 16:15:31', '2017-02-22 21:30:40', '0e6e41f1-32dc-4af4-8526-d182302af313'), ('23', '3', '3', '1', '2017-02-21 22:37:00', NULL, '2017-02-23 00:03:50', '2017-02-23 00:03:53', '8b154c4f-a8ae-4e7c-9855-70810c1db5ee'), ('31', '3', '3', '1', '2017-02-22 16:15:00', NULL, '2017-02-23 00:13:08', '2017-02-23 00:13:09', '85dfc2cb-051b-4011-af99-878792d6f391'); DROP TABLE IF EXISTS `craft_entrydrafts`; -- -- Schema for table `craft_entrydrafts` -- CREATE TABLE `craft_entrydrafts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `entryId` int(11) NOT NULL, `sectionId` int(11) NOT NULL, `creatorId` int(11) NOT NULL, `locale` char(12) COLLATE utf8_unicode_ci NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `notes` tinytext COLLATE utf8_unicode_ci, `data` mediumtext COLLATE utf8_unicode_ci NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `craft_entrydrafts_entryId_locale_idx` (`entryId`,`locale`), KEY `craft_entrydrafts_sectionId_fk` (`sectionId`), KEY `craft_entrydrafts_creatorId_fk` (`creatorId`), KEY `craft_entrydrafts_locale_fk` (`locale`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_entrytypes`; -- -- Schema for table `craft_entrytypes` -- CREATE TABLE `craft_entrytypes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `sectionId` int(11) NOT NULL, `fieldLayoutId` int(11) DEFAULT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `handle` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `hasTitleField` tinyint(1) unsigned NOT NULL DEFAULT '1', `titleLabel` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Title', `titleFormat` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `sortOrder` smallint(6) unsigned DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_entrytypes_name_sectionId_unq_idx` (`name`,`sectionId`), UNIQUE KEY `craft_entrytypes_handle_sectionId_unq_idx` (`handle`,`sectionId`), KEY `craft_entrytypes_sectionId_fk` (`sectionId`), KEY `craft_entrytypes_fieldLayoutId_fk` (`fieldLayoutId`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_entrytypes` -- INSERT INTO `craft_entrytypes` (`id`, `sectionId`, `fieldLayoutId`, `name`, `handle`, `hasTitleField`, `titleLabel`, `titleFormat`, `sortOrder`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', '1', '27', 'Homepage', 'homepage', '1', 'Title', NULL, '1', '2017-02-21 21:10:19', '2017-02-21 22:29:43', '7f4a67fc-78f6-413c-b368-c75eb8b05183'), ('2', '2', '5', 'News', 'news', '1', 'Title', NULL, '1', '2017-02-21 21:10:19', '2017-02-21 21:10:19', '94d5236d-96ad-4af4-9929-739b368c3daa'), ('3', '3', '29', 'Blog', 'blog', '1', 'Title', NULL, '1', '2017-02-21 21:44:56', '2017-02-22 15:04:26', 'ed1c5a6c-fc8b-444e-9cfd-3387417953a0'); DROP TABLE IF EXISTS `craft_entryversions`; -- -- Schema for table `craft_entryversions` -- CREATE TABLE `craft_entryversions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `entryId` int(11) NOT NULL, `sectionId` int(11) NOT NULL, `creatorId` int(11) DEFAULT NULL, `locale` char(12) COLLATE utf8_unicode_ci NOT NULL, `num` smallint(6) unsigned NOT NULL, `notes` tinytext COLLATE utf8_unicode_ci, `data` mediumtext COLLATE utf8_unicode_ci NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `craft_entryversions_entryId_locale_idx` (`entryId`,`locale`), KEY `craft_entryversions_sectionId_fk` (`sectionId`), KEY `craft_entryversions_creatorId_fk` (`creatorId`), KEY `craft_entryversions_locale_fk` (`locale`) ) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_entryversions` -- INSERT INTO `craft_entryversions` (`id`, `entryId`, `sectionId`, `creatorId`, `locale`, `num`, `notes`, `data`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', '2', '1', '1', 'en_us', '1', NULL, '{\"typeId\":\"1\",\"authorId\":null,\"title\":\"Homepage\",\"slug\":\"homepage\",\"postDate\":1487711419,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":[]}', '2017-02-21 21:10:19', '2017-02-21 21:10:19', '4e8ed094-e9ad-4a3c-a33a-6cc60480269a'), ('2', '2', '1', '1', 'en_us', '2', NULL, '{\"typeId\":null,\"authorId\":null,\"title\":\"Welcome to Dev.blog.com!\",\"slug\":\"homepage\",\"postDate\":1487711419,\"expiryDate\":null,\"enabled\":\"1\",\"parentId\":null,\"fields\":{\"1\":\"<p>It\\u2019s true, this site doesn\\u2019t have a whole lot of content yet, but don\\u2019t worry. Our web developers have just installed the CMS, and they\\u2019re setting things up for the content editors this very moment. Soon Dev.blog.com will be an oasis of fresh perspectives, sharp analyses, and astute opinions that will keep you coming back again and again.<\\/p>\"}}', '2017-02-21 21:10:19', '2017-02-21 21:10:19', '398edf03-7723-4c41-998e-9d4172d3e3ec'), ('3', '3', '2', '1', 'en_us', '1', NULL, '{\"typeId\":\"2\",\"authorId\":\"1\",\"title\":\"We just installed Craft!\",\"slug\":\"we-just-installed-craft\",\"postDate\":1487711419,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":[]}', '2017-02-21 21:10:19', '2017-02-21 21:10:19', '0eb2379b-4582-4ce1-a70e-9b74d8c0f5d9'), ('4', '4', '3', '1', 'en_us', '1', '', '{\"typeId\":null,\"authorId\":\"1\",\"title\":\"The First Post!\",\"slug\":\"the-first-post\",\"postDate\":1487716627,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"3\":{\"new2\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>text<\\/p>\"}}},\"12\":\"This is a post about nothing. This is just here to fill space and make the page look nice\",\"13\":\"1\",\"16\":\"\",\"19\":\"This is something\",\"18\":\"The First Post\",\"2\":\"\",\"17\":\"\"}}', '2017-02-21 22:37:07', '2017-02-21 22:37:07', '815d2c76-bbea-4087-9c74-ed7200733ccd'), ('5', '2', '1', '1', 'en_us', '3', '', '{\"typeId\":null,\"authorId\":null,\"title\":\"Welcome to Dev.blog.com!\",\"slug\":\"homepage\",\"postDate\":1487711419,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"15\":\"this is a small subtitle for the blog\",\"14\":\"THIS IS THE BLOG\",\"1\":\"<p>It\\u2019s true, this site doesn\\u2019t have a whole lot of content yet, but don\\u2019t worry. Our web developers have just installed the CMS, and they\\u2019re setting things up for the content editors this very moment. Soon Dev.blog.com will be an oasis of fresh perspectives, sharp analyses, and astute opinions that will keep you coming back again and again.<\\/p>\",\"16\":\"\"}}', '2017-02-21 22:38:37', '2017-02-21 22:38:37', '4c4bb5dd-d151-4e7b-b295-2ced6d4b8eab'), ('6', '4', '3', '1', 'en_us', '2', '', '{\"typeId\":\"3\",\"authorId\":\"1\",\"title\":\"The First Post!\",\"slug\":\"the-first-post\",\"postDate\":1487716620,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"3\":{\"5\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>text<\\/p>\"}}},\"12\":\"This is a post about nothing. This is just here to fill space and make the page look nice\",\"13\":\"1\",\"16\":\"\",\"19\":\"This is something\",\"18\":\"The First Post\",\"2\":\"\",\"20\":[\"6\"],\"17\":\"\"}}', '2017-02-22 15:04:49', '2017-02-22 15:04:49', '3051796e-b8ca-4b56-87fe-333485e28426'), ('7', '4', '3', '1', 'en_us', '3', '', '{\"typeId\":\"3\",\"authorId\":\"1\",\"title\":\"The First Post!\",\"slug\":\"the-first-post\",\"postDate\":1487716620,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"3\":{\"5\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>text<\\/p>\"}}},\"12\":\"This is a post about nothing. This is just here to fill space and make the page look nice\",\"13\":\"1\",\"16\":\"\",\"19\":\"This is something\",\"18\":\"The First Post\",\"2\":\"\",\"20\":[\"6\",\"7\"],\"17\":\"\"}}', '2017-02-22 15:07:44', '2017-02-22 15:07:44', '9d79b878-0771-4291-ab2b-0ff761205f86'), ('8', '10', '3', '1', 'en_us', '1', '', '{\"typeId\":null,\"authorId\":\"1\",\"title\":\"Another test post\",\"slug\":\"another-test-post\",\"postDate\":1487780130,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"3\":{\"new1\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>test post&nbsp;test post&nbsp;test post&nbsp;test post&nbsp;test post&nbsp;test post&nbsp;test post&nbsp;test post&nbsp;test post&nbsp;<\\/p>\"}}},\"12\":\"Just in case you missed it. This is another test post\",\"13\":\"2\",\"16\":[\"8\"],\"19\":\"This is another test post!\",\"18\":\"Another Test Post!\",\"2\":\"\",\"20\":[\"6\"],\"17\":[\"9\"]}}', '2017-02-22 16:15:31', '2017-02-22 16:15:31', 'ee3b7b69-3b6e-4ba5-b404-10c7885c4146'), ('9', '2', '1', '1', 'en_us', '4', '', '{\"typeId\":null,\"authorId\":null,\"title\":\"Ryan\'s test blog\",\"slug\":\"homepage\",\"postDate\":1487711419,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"15\":\"This is a blog about nothing. It\'s main use is to prove that I can use craft and don\'t write shit code... Some of this code is pretty shitty\",\"14\":\"<NAME> Ass Test Blog\",\"1\":\"<p>It\\u2019s true, this site doesn\\u2019t have a whole lot of content yet, but don\\u2019t worry. Our web developers have just installed the CMS, and they\\u2019re setting things up for the content editors this very moment. Soon Dev.blog.com will be an oasis of fresh perspectives, sharp analyses, and astute opinions that will keep you coming back again and again.<\\/p>\",\"16\":[\"12\"]}}', '2017-02-22 18:59:06', '2017-02-22 18:59:06', '42c34841-7d94-4a00-914f-802ce0732977'), ('10', '2', '1', '1', 'en_us', '5', '', '{\"typeId\":null,\"authorId\":null,\"title\":\"Ryan\'s test blog\",\"slug\":\"homepage\",\"postDate\":1487711419,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"15\":\"This is a blog about nothing. It\'s main use is to prove that I can use craft and don\'t write shit code... Some of this code is pretty shitty though\",\"14\":\"<NAME> Ass Test Blog\",\"1\":\"<p>It\\u2019s true, this site doesn\\u2019t have a whole lot of content yet, but don\\u2019t worry. Our web developers have just installed the CMS, and they\\u2019re setting things up for the content editors this very moment. Soon Dev.blog.com will be an oasis of fresh perspectives, sharp analyses, and astute opinions that will keep you coming back again and again.<\\/p>\",\"16\":[\"12\"]}}', '2017-02-22 19:07:42', '2017-02-22 19:07:42', '308259b0-2ac0-4a27-ae45-d714876a3c73'), ('11', '2', '1', '1', 'en_us', '6', '', '{\"typeId\":null,\"authorId\":null,\"title\":\"Ryan\'s test blog\",\"slug\":\"homepage\",\"postDate\":1487711419,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"15\":\"<p>This is a blog about nothing. It\'s main use is to prove that I can use craft and don\'t write shit code... Some of this code is pretty shitty though<\\/p>\",\"14\":\"<p><NAME>&lt;br \\/&gt;Ass Test Blog<\\/p>\",\"1\":\"<p>It\\u2019s true, this site doesn\\u2019t have a whole lot of content yet, but don\\u2019t worry. Our web developers have just installed the CMS, and they\\u2019re setting things up for the content editors this very moment. Soon Dev.blog.com will be an oasis of fresh perspectives, sharp analyses, and astute opinions that will keep you coming back again and again.<\\/p>\",\"16\":[\"12\"]}}', '2017-02-22 19:42:28', '2017-02-22 19:42:28', '86707105-1dcf-445a-b8f5-7b0efa33cb8f'), ('12', '2', '1', '1', 'en_us', '7', '', '{\"typeId\":null,\"authorId\":null,\"title\":\"Ryan\'s test blog\",\"slug\":\"homepage\",\"postDate\":1487711419,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"15\":\"<p>This is a blog about nothing. It\'s main use is to prove that I can use craft and don\'t write shit code... Some of this code is pretty shitty though<\\/p>\",\"14\":\"<p><NAME><br \\/>Ass Test Blog<\\/p>\",\"1\":\"<p>It\\u2019s true, this site doesn\\u2019t have a whole lot of content yet, but don\\u2019t worry. Our web developers have just installed the CMS, and they\\u2019re setting things up for the content editors this very moment. Soon Dev.blog.com will be an oasis of fresh perspectives, sharp analyses, and astute opinions that will keep you coming back again and again.<\\/p>\",\"16\":[\"12\"]}}', '2017-02-22 19:43:56', '2017-02-22 19:43:56', '1c9f072d-f698-4213-9ede-1bbcf16e38bb'), ('13', '2', '1', '1', 'en_us', '8', '', '{\"typeId\":null,\"authorId\":null,\"title\":\"Ryan\'s test blog\",\"slug\":\"homepage\",\"postDate\":1487711419,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"15\":\"This is a blog about nothing. Its main use is to<br \\/>prove that I can use craft and don\'t write shit<br \\/>code... Some of this code is pretty shitty though\",\"14\":\"<NAME><br>Ass Test Blog\",\"1\":\"<p>It\\u2019s true, this site doesn\\u2019t have a whole lot of content yet, but don\\u2019t worry. Our web developers have just installed the CMS, and they\\u2019re setting things up for the content editors this very moment. Soon Dev.blog.com will be an oasis of fresh perspectives, sharp analyses, and astute opinions that will keep you coming back again and again.<\\/p>\",\"16\":[\"12\"]}}', '2017-02-22 19:45:45', '2017-02-22 19:45:45', 'a5ed1fe4-e016-4fcc-b866-7eded58a5f92'), ('14', '2', '1', '1', 'en_us', '9', '', '{\"typeId\":null,\"authorId\":null,\"title\":\"Ryan\'s test blog\",\"slug\":\"homepage\",\"postDate\":1487711419,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"15\":\"This is a blog about nothing. Its main use is to prove that I can use craft<br \\/>and don\'t write shit code... Some of this code is pretty shitty though\",\"14\":\"<NAME><br>Ass Test Blog\",\"1\":\"<p>It\\u2019s true, this site doesn\\u2019t have a whole lot of content yet, but don\\u2019t worry. Our web developers have just installed the CMS, and they\\u2019re setting things up for the content editors this very moment. Soon Dev.blog.com will be an oasis of fresh perspectives, sharp analyses, and astute opinions that will keep you coming back again and again.<\\/p>\",\"16\":[\"12\"]}}', '2017-02-22 21:06:09', '2017-02-22 21:06:09', 'b73c3a1d-be28-4d85-85af-41ac241575ee'), ('15', '4', '3', '1', 'en_us', '4', '', '{\"typeId\":\"3\",\"authorId\":\"1\",\"title\":\"Hosting Static Files with S3 & CloudFront\",\"slug\":\"the-first-post\",\"postDate\":1487716620,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"3\":{\"5\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>text<\\/p>\"}}},\"12\":\"The modern web is rich with photography, iconography, and video, but image-heavy sites can result in poor performance for the end user.\",\"13\":\"1\",\"16\":\"\",\"19\":\"This is something\",\"18\":\"Hosting Static Files with S3 & CloudFront\",\"2\":\"\",\"20\":[\"6\",\"7\"],\"17\":\"\"}}', '2017-02-22 21:27:54', '2017-02-22 21:27:54', '640cc20a-89c0-467b-9c97-5a717aa271ef'), ('16', '10', '3', '1', 'en_us', '2', '', '{\"typeId\":\"3\",\"authorId\":\"1\",\"title\":\"Designing an Exceptional Beer Experience\",\"slug\":\"another-test-post\",\"postDate\":1487780100,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"3\":{\"11\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>Following our Design on Tap event, we chatted with <NAME>, and <NAME>, from Hopworks Urban Brewery about branding beer.<\\/p>\"}}},\"12\":\"Following our Design on Tap event, we chatted with <NAME>, and <NAME>, from Hopworks Urban Brewery about branding beer.\",\"13\":\"2\",\"16\":[\"8\"],\"19\":\"This is another test post!\",\"18\":\"Designing an Exceptional Beer Experience\",\"2\":\"\",\"20\":[\"6\"],\"17\":[\"9\"]}}', '2017-02-22 21:28:20', '2017-02-22 21:28:20', '6613b8c1-b6ed-421d-8389-80c9fc6795c0'), ('17', '10', '3', '1', 'en_us', '3', '', '{\"typeId\":\"3\",\"authorId\":\"1\",\"title\":\"Designing an Exceptional Beer Experience\",\"slug\":\"another-test-post\",\"postDate\":1487780100,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"3\":{\"11\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>Following our Design on Tap event, we chatted with <NAME>, and <NAME>, from Hopworks Urban Brewery about branding beer.<\\/p>\"}}},\"12\":\"Following our Design on Tap event, we chatted with <NAME>, and <NAME>, from Hopworks Urban Brewery about branding beer.\",\"13\":\"2\",\"16\":\"\",\"19\":\"This is another test post!\",\"18\":\"Designing an Exceptional Beer Experience\",\"2\":\"\",\"20\":[\"6\"],\"17\":[\"13\"]}}', '2017-02-22 21:30:41', '2017-02-22 21:30:41', 'e2f78204-0cc2-48e2-8cb2-2c86388ad3a8'), ('18', '4', '3', '1', 'en_us', '5', '', '{\"typeId\":\"3\",\"authorId\":\"1\",\"title\":\"Hosting Static Files with S3 & CloudFront\",\"slug\":\"the-first-post\",\"postDate\":1487716620,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"3\":{\"5\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>text<\\/p>\"}}},\"12\":\"The modern web is rich with photography, iconography, and video, but image-heavy sites can result in poor performance for the end user.\",\"13\":\"1\",\"16\":\"\",\"19\":\"This is something\",\"18\":\"Hosting Static Files with S3 & CloudFront\",\"2\":\"\",\"20\":[\"6\",\"7\"],\"17\":[\"14\"]}}', '2017-02-22 21:30:52', '2017-02-22 21:30:52', 'ad4275be-48dc-4943-9c36-0fce7caf3c8e'), ('19', '4', '3', '1', 'en_us', '6', '', '{\"typeId\":\"3\",\"authorId\":\"1\",\"title\":\"Hosting Static Files with S3 & CloudFront\",\"slug\":\"the-first-post\",\"postDate\":1487716620,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"3\":{\"5\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>text<\\/p>\"}}},\"12\":\"The modern web is rich with photography, iconography, and video, but image-heavy sites can result in poor performance for the end user.\",\"13\":\"1\",\"16\":[\"16\"],\"19\":\"This is something\",\"18\":\"Hosting Static Files with S3 & CloudFront\",\"2\":\"\",\"20\":[\"6\",\"7\"],\"17\":[\"14\"]}}', '2017-02-22 21:52:11', '2017-02-22 21:52:11', '2684efe9-e609-4a81-b147-1f016e0ea93c'), ('20', '4', '3', '1', 'en_us', '7', '', '{\"typeId\":\"3\",\"authorId\":\"1\",\"title\":\"Hosting Static Files with S3 & CloudFront\",\"slug\":\"the-first-post\",\"postDate\":1487716620,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"3\":{\"5\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>The modern web is rich with&nbsp;photography, iconography, and video, but image-heavy sites can result in poor performance for the end user. Part of providing an elegant user experience is asset optimization, and we use Amazon\'s&nbsp;<a href=\\\"https:\\/\\/aws.amazon.com\\/s3\\/\\\" target=\\\"_blank\\\">S3<\\/a>&nbsp;and&nbsp;<a href=\\\"https:\\/\\/aws.amazon.com\\/cloudfront\\/\\\" target=\\\"_blank\\\">CloudFront<\\/a>&nbsp;to do the heavy-lifting.<\\/p>\\r\\n<p>There are a few reasons why we choose to use S3 to host static assets for our clients<\\/p>\"}},\"new1\":{\"type\":\"mainTitle\",\"enabled\":\"1\",\"fields\":{\"maintitle\":\"Storage\"}},\"new2\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>One of the largest pieces of overhead involved in hosting a website is data storage - and media assets make up a large part of that. Storing gigabytes of photography, video, and graphics on your web host can make it difficult to move, backup, or deploy your site because it makes it&nbsp;heavier (figuratively). Offloading&nbsp;your media files to&nbsp;the cloud allows you to keep your web server thin while maintaining a central repository to manage your digital assets.<\\/p>\"}},\"new3\":{\"type\":\"mainTitle\",\"enabled\":\"1\",\"fields\":{\"maintitle\":\"Speed\"}},\"new4\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>Amazon\'s servers are low-latency and&nbsp;have incredibly fast transfer speeds which allow for quick rendering. With the added bonuses of using a&nbsp;<a href=\\\"http:\\/\\/www.sitepoint.com\\/7-reasons-to-use-a-cdn\\/\\\" target=\\\"_blank\\\">Content Delivery Network (CDN)<\\/a>&nbsp;such as caching and utilizing parallel downloads, you\'ll notice a&nbsp;huge difference in how fast your files show up on your page.<\\/p>\"}}},\"12\":\"The modern web is rich with photography, iconography, and video, but image-heavy sites can result in poor performance for the end user.\",\"13\":\"1\",\"16\":[\"16\"],\"19\":\"This is something\",\"18\":\"Hosting Static Files with S3 & CloudFront\",\"2\":\"\",\"20\":[\"6\",\"7\"],\"17\":[\"14\"]}}', '2017-02-22 21:54:22', '2017-02-22 21:54:22', 'e7d04f2a-b851-42ba-a41d-bc0846986e89'), ('21', '4', '3', '1', 'en_us', '8', '', '{\"typeId\":\"3\",\"authorId\":\"1\",\"title\":\"Hosting Static Files with S3 & CloudFront\",\"slug\":\"the-first-post\",\"postDate\":1487716620,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"3\":{\"5\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>The modern web is rich with&nbsp;photography, iconography, and video, but image-heavy sites can result in poor performance for the end user. Part of providing an elegant user experience is asset optimization, and we use Amazon\'s&nbsp;<a href=\\\"https:\\/\\/aws.amazon.com\\/s3\\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer\\\">S3<\\/a>&nbsp;and&nbsp;<a href=\\\"https:\\/\\/aws.amazon.com\\/cloudfront\\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer\\\">CloudFront<\\/a>&nbsp;to do the heavy-lifting.<\\/p>\\r\\n<p>There are a few reasons why we choose to use S3 to host static assets for our clients<\\/p>\"}},\"17\":{\"type\":\"mainTitle\",\"enabled\":\"1\",\"fields\":{\"mainTitle\":\"Storage\"}},\"18\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>One of the largest pieces of overhead involved in hosting a website is data storage - and media assets make up a large part of that. Storing gigabytes of photography, video, and graphics on your web host can make it difficult to move, backup, or deploy your site because it makes it&nbsp;heavier (figuratively). Offloading&nbsp;your media files to&nbsp;the cloud allows you to keep your web server thin while maintaining a central repository to manage your digital assets.<\\/p>\"}},\"new1\":{\"type\":\"photoBlock\",\"enabled\":\"1\",\"fields\":{\"image\":[\"9\"],\"caption\":\"That\'s me\"}},\"19\":{\"type\":\"mainTitle\",\"enabled\":\"1\",\"fields\":{\"mainTitle\":\"Speed\"}},\"20\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>Amazon\'s servers are low-latency and&nbsp;have incredibly fast transfer speeds which allow for quick rendering. With the added bonuses of using a&nbsp;<a href=\\\"http:\\/\\/www.sitepoint.com\\/7-reasons-to-use-a-cdn\\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer\\\">Content Delivery Network (CDN)<\\/a>&nbsp;such as caching and utilizing parallel downloads, you\'ll notice a&nbsp;huge difference in how fast your files show up on your page.<\\/p>\"}},\"new2\":{\"type\":\"quoteBlock\",\"enabled\":\"1\",\"fields\":{\"quote\":\"This is a quote in a quote block. To call attention to a specific phrases or sentence.\",\"cite\":\"Ryan Hall\"}}},\"12\":\"The modern web is rich with photography, iconography, and video, but image-heavy sites can result in poor performance for the end user.\",\"13\":\"1\",\"16\":[\"16\"],\"19\":\"This is something\",\"18\":\"Hosting Static Files with S3 & CloudFront\",\"2\":\"\",\"20\":[\"6\",\"7\"],\"17\":[\"14\"]}}', '2017-02-22 23:05:26', '2017-02-22 23:05:26', '33cc8273-7790-468d-9c1d-43e45479e685'), ('22', '23', '3', '1', 'en_us', '1', '', '{\"typeId\":null,\"authorId\":\"1\",\"title\":\"Hosting Static Files with S3 & CloudFront\",\"slug\":\"the-first-post-1\",\"postDate\":1487716620,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"3\":{\"5\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>The modern web is rich with&nbsp;photography, iconography, and video, but image-heavy sites can result in poor performance for the end user. Part of providing an elegant user experience is asset optimization, and we use Amazon\'s&nbsp;<a href=\\\"https:\\/\\/aws.amazon.com\\/s3\\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer\\\">S3<\\/a>&nbsp;and&nbsp;<a href=\\\"https:\\/\\/aws.amazon.com\\/cloudfront\\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer\\\">CloudFront<\\/a>&nbsp;to do the heavy-lifting.<\\/p>\\r\\n<p>There are a few reasons why we choose to use S3 to host static assets for our clients<\\/p>\"}},\"17\":{\"type\":\"mainTitle\",\"enabled\":\"1\",\"fields\":{\"mainTitle\":\"Storage\"}},\"18\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>One of the largest pieces of overhead involved in hosting a website is data storage - and media assets make up a large part of that. Storing gigabytes of photography, video, and graphics on your web host can make it difficult to move, backup, or deploy your site because it makes it&nbsp;heavier (figuratively). Offloading&nbsp;your media files to&nbsp;the cloud allows you to keep your web server thin while maintaining a central repository to manage your digital assets.<\\/p>\"}},\"21\":{\"type\":\"photoBlock\",\"enabled\":\"1\",\"fields\":{\"image\":[\"9\"],\"caption\":\"That\'s me\"}},\"19\":{\"type\":\"mainTitle\",\"enabled\":\"1\",\"fields\":{\"mainTitle\":\"Speed\"}},\"20\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>Amazon\'s servers are low-latency and&nbsp;have incredibly fast transfer speeds which allow for quick rendering. With the added bonuses of using a&nbsp;<a href=\\\"http:\\/\\/www.sitepoint.com\\/7-reasons-to-use-a-cdn\\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer\\\">Content Delivery Network (CDN)<\\/a>&nbsp;such as caching and utilizing parallel downloads, you\'ll notice a&nbsp;huge difference in how fast your files show up on your page.<\\/p>\"}},\"22\":{\"type\":\"quoteBlock\",\"enabled\":\"1\",\"fields\":{\"quote\":\"This is a quote in a quote block. To call attention to a specific phrases or sentence.\",\"cite\":\"Ryan Hall\"}}},\"12\":\"The modern web is rich with photography, iconography, and video, but image-heavy sites can result in poor performance for the end user.\",\"13\":\"1\",\"16\":[\"16\"],\"19\":\"This is something\",\"18\":\"Hosting Static Files with S3 & CloudFront\",\"2\":\"\",\"20\":[\"6\",\"7\"],\"17\":[\"14\"]}}', '2017-02-23 00:03:50', '2017-02-23 00:03:50', 'fc8afbd1-dd7b-48b6-867f-ab21a53b5df9'), ('23', '23', '3', '1', 'en_us', '2', '', '{\"typeId\":\"3\",\"authorId\":\"1\",\"title\":\"Hosting Static Files with S3 & CloudFront\",\"slug\":\"the-first-post-1\",\"postDate\":1487716620,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"3\":{\"24\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>The modern web is rich with&nbsp;photography, iconography, and video, but image-heavy sites can result in poor performance for the end user. Part of providing an elegant user experience is asset optimization, and we use Amazon\'s&nbsp;<a href=\\\"https:\\/\\/aws.amazon.com\\/s3\\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer\\\">S3<\\/a>&nbsp;and&nbsp;<a href=\\\"https:\\/\\/aws.amazon.com\\/cloudfront\\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer\\\">CloudFront<\\/a>&nbsp;to do the heavy-lifting.<\\/p>\\r\\n<p>There are a few reasons why we choose to use S3 to host static assets for our clients<\\/p>\"}},\"25\":{\"type\":\"mainTitle\",\"enabled\":\"1\",\"fields\":{\"mainTitle\":\"Storage\"}},\"26\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>One of the largest pieces of overhead involved in hosting a website is data storage - and media assets make up a large part of that. Storing gigabytes of photography, video, and graphics on your web host can make it difficult to move, backup, or deploy your site because it makes it&nbsp;heavier (figuratively). Offloading&nbsp;your media files to&nbsp;the cloud allows you to keep your web server thin while maintaining a central repository to manage your digital assets.<\\/p>\"}},\"27\":{\"type\":\"photoBlock\",\"enabled\":\"1\",\"fields\":{\"image\":[\"9\"],\"caption\":\"That\'s me\"}},\"28\":{\"type\":\"mainTitle\",\"enabled\":\"1\",\"fields\":{\"mainTitle\":\"Speed\"}},\"29\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>Amazon\'s servers are low-latency and&nbsp;have incredibly fast transfer speeds which allow for quick rendering. With the added bonuses of using a&nbsp;<a href=\\\"http:\\/\\/www.sitepoint.com\\/7-reasons-to-use-a-cdn\\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer\\\">Content Delivery Network (CDN)<\\/a>&nbsp;such as caching and utilizing parallel downloads, you\'ll notice a&nbsp;huge difference in how fast your files show up on your page.<\\/p>\"}},\"30\":{\"type\":\"quoteBlock\",\"enabled\":\"1\",\"fields\":{\"quote\":\"This is a quote in a quote block. To call attention to a specific phrases or sentence.\",\"cite\":\"<NAME>\"}}},\"12\":\"The modern web is rich with photography, iconography, and video, but image-heavy sites can result in poor performance for the end user.\",\"13\":\"1\",\"16\":[\"16\"],\"19\":\"This is something\",\"18\":\"Hosting Static Files with S3 & CloudFront\",\"2\":\"\",\"20\":[\"6\",\"7\"],\"17\":[\"14\"]}}', '2017-02-23 00:03:53', '2017-02-23 00:03:53', 'f32a8ba4-c756-4609-877f-dfb48019c3ed'), ('24', '31', '3', '1', 'en_us', '1', '', '{\"typeId\":null,\"authorId\":\"1\",\"title\":\"Designing an Exceptional Beer Experience\",\"slug\":\"another-test-post-1\",\"postDate\":1487780100,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"3\":{\"11\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>Following our Design on Tap event, we chatted with <NAME>, and <NAME>, from Hopworks Urban Brewery about branding beer.<\\/p>\"}}},\"12\":\"Following our Design on Tap event, we chatted with <NAME>, and <NAME>, from Hopworks Urban Brewery about branding beer.\",\"13\":\"2\",\"16\":\"\",\"19\":\"This is another test post!\",\"18\":\"Designing an Exceptional Beer Experience\",\"2\":\"\",\"20\":[\"6\"],\"17\":[\"13\"]}}', '2017-02-23 00:13:08', '2017-02-23 00:13:08', 'b2f364b6-c1bc-4a68-bf4d-cb41fb1354c5'), ('25', '31', '3', '1', 'en_us', '2', '', '{\"typeId\":\"3\",\"authorId\":\"1\",\"title\":\"Designing an Exceptional Beer Experience\",\"slug\":\"another-test-post-1\",\"postDate\":1487780100,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"3\":{\"32\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>Following our Design on Tap event, we chatted with <NAME>, and <NAME>, from Hopworks Urban Brewery about branding beer.<\\/p>\"}}},\"12\":\"Following our Design on Tap event, we chatted with <NAME>, and <NAME>, from Hopworks Urban Brewery about branding beer.\",\"13\":\"2\",\"16\":\"\",\"19\":\"This is another test post!\",\"18\":\"Designing an Exceptional Beer Experience\",\"2\":\"\",\"20\":[\"6\"],\"17\":[\"13\"]}}', '2017-02-23 00:13:09', '2017-02-23 00:13:09', '9ccf163f-ceb1-4c41-ab10-c2c579dd6f64'), ('26', '2', '1', '1', 'en_us', '10', '', '{\"typeId\":null,\"authorId\":null,\"title\":\"Ryan\'s test blog\",\"slug\":\"homepage\",\"postDate\":1487711419,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"15\":\"This is a blog about nothing. Its main use is to prove that I can use craft<br class=\\\"xs-hidden\\\">and don\'t write shit code... Some of this code is pretty shitty though\",\"14\":\"<NAME><br>Ass Test Blog\",\"1\":\"<p>It\\u2019s true, this site doesn\\u2019t have a whole lot of content yet, but don\\u2019t worry. Our web developers have just installed the CMS, and they\\u2019re setting things up for the content editors this very moment. Soon Dev.blog.com will be an oasis of fresh perspectives, sharp analyses, and astute opinions that will keep you coming back again and again.<\\/p>\",\"16\":[\"12\"]}}', '2017-02-23 16:52:59', '2017-02-23 16:52:59', 'f83b6a1a-c1ea-49de-88ed-64c1f61c4319'), ('27', '2', '1', '1', 'en_us', '11', '', '{\"typeId\":null,\"authorId\":null,\"title\":\"Ryan\'s test blog\",\"slug\":\"homepage\",\"postDate\":1487711419,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"15\":\"This is a blog about nothing. Its main use is to prove that I can use craft<br class=\\\"hidden-xs\\\">and don\'t write shit code... Some of this code is pretty shitty though\",\"14\":\"<NAME><br>Ass Test Blog\",\"1\":\"<p>It\\u2019s true, this site doesn\\u2019t have a whole lot of content yet, but don\\u2019t worry. Our web developers have just installed the CMS, and they\\u2019re setting things up for the content editors this very moment. Soon Dev.blog.com will be an oasis of fresh perspectives, sharp analyses, and astute opinions that will keep you coming back again and again.<\\/p>\",\"16\":[\"12\"]}}', '2017-02-23 16:54:13', '2017-02-23 16:54:13', 'e9236b3d-cd56-4149-b400-4b367cccb295'), ('28', '4', '3', '1', 'en_us', '9', '', '{\"typeId\":\"3\",\"authorId\":\"1\",\"title\":\"Hosting Static Files with S3 & CloudFront\",\"slug\":\"the-first-post\",\"postDate\":1487716620,\"expiryDate\":null,\"enabled\":1,\"parentId\":null,\"fields\":{\"3\":{\"5\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>The modern web is rich with&nbsp;photography, iconography, and video, but image-heavy sites can result in poor performance for the end user. Part of providing an elegant user experience is asset optimization, and we use Amazon\'s&nbsp;<a href=\\\"https:\\/\\/aws.amazon.com\\/s3\\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer\\\">S3<\\/a>&nbsp;and&nbsp;<a href=\\\"https:\\/\\/aws.amazon.com\\/cloudfront\\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer\\\">CloudFront<\\/a>&nbsp;to do the heavy-lifting.<\\/p>\\r\\n<p>There are a few reasons why we choose to use S3 to host static assets for our clients<\\/p>\"}},\"17\":{\"type\":\"mainTitle\",\"enabled\":\"1\",\"fields\":{\"mainTitle\":\"Storage\"}},\"18\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>One of the largest pieces of overhead involved in hosting a website is data storage - and media assets make up a large part of that. Storing gigabytes of photography, video, and graphics on your web host can make it difficult to move, backup, or deploy your site because it makes it&nbsp;heavier (figuratively). Offloading&nbsp;your media files to&nbsp;the cloud allows you to keep your web server thin while maintaining a central repository to manage your digital assets.<\\/p>\"}},\"21\":{\"type\":\"photoBlock\",\"enabled\":\"1\",\"fields\":{\"image\":[\"9\"],\"caption\":\"That\'s me\"}},\"19\":{\"type\":\"mainTitle\",\"enabled\":\"1\",\"fields\":{\"mainTitle\":\"Speed\"}},\"20\":{\"type\":\"textBlock\",\"enabled\":\"1\",\"fields\":{\"textBlock\":\"<p>Amazon\'s servers are low-latency and&nbsp;have incredibly fast transfer speeds which allow for quick rendering. With the added bonuses of using a&nbsp;<a href=\\\"http:\\/\\/www.sitepoint.com\\/7-reasons-to-use-a-cdn\\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer\\\">Content Delivery Network (CDN)<\\/a>&nbsp;such as caching and utilizing parallel downloads, you\'ll notice a&nbsp;huge difference in how fast your files show up on your page.<\\/p>\"}},\"22\":{\"type\":\"quoteBlock\",\"enabled\":\"1\",\"fields\":{\"quote\":\"This is a quote in a quote block. To call attention to a specific phrases or sentence.\",\"cite\":\"<NAME>\"}},\"new1\":{\"type\":\"photoBlock\",\"enabled\":\"1\",\"fields\":{\"image\":[\"13\"],\"caption\":\"\"}}},\"12\":\"The modern web is rich with photography, iconography, and video, but image-heavy sites can result in poor performance for the end user.\",\"13\":\"1\",\"16\":[\"16\"],\"19\":\"This is something\",\"18\":\"Hosting Static Files with S3 & CloudFront\",\"2\":\"\",\"20\":[\"6\",\"7\"],\"17\":[\"14\"]}}', '2017-02-23 18:39:40', '2017-02-23 18:39:40', 'fe1c92a6-abdd-46e1-9cbb-04fb5a83d88c'); DROP TABLE IF EXISTS `craft_fieldgroups`; -- -- Schema for table `craft_fieldgroups` -- CREATE TABLE `craft_fieldgroups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_fieldgroups_name_unq_idx` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_fieldgroups` -- INSERT INTO `craft_fieldgroups` (`id`, `name`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', 'Default', '2017-02-21 21:10:19', '2017-02-21 21:10:19', '8b5fbb6c-d64a-48b0-bd4f-092b3d9fdf18'), ('2', 'Blog', '2017-02-21 21:49:44', '2017-02-21 21:49:44', 'ee3c5155-66b7-4190-89cb-41b8195749aa'); DROP TABLE IF EXISTS `craft_fieldlayoutfields`; -- -- Schema for table `craft_fieldlayoutfields` -- CREATE TABLE `craft_fieldlayoutfields` ( `id` int(11) NOT NULL AUTO_INCREMENT, `layoutId` int(11) NOT NULL, `tabId` int(11) NOT NULL, `fieldId` int(11) NOT NULL, `required` tinyint(1) unsigned NOT NULL DEFAULT '0', `sortOrder` smallint(6) unsigned DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_fieldlayoutfields_layoutId_fieldId_unq_idx` (`layoutId`,`fieldId`), KEY `craft_fieldlayoutfields_sortOrder_idx` (`sortOrder`), KEY `craft_fieldlayoutfields_tabId_fk` (`tabId`), KEY `craft_fieldlayoutfields_fieldId_fk` (`fieldId`) ) ENGINE=InnoDB AUTO_INCREMENT=89 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_fieldlayoutfields` -- INSERT INTO `craft_fieldlayoutfields` (`id`, `layoutId`, `tabId`, `fieldId`, `required`, `sortOrder`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('2', '5', '2', '1', '1', '1', '2017-02-21 21:10:19', '2017-02-21 21:10:19', '97d4e817-04b3-4327-aaba-42070987b69e'), ('3', '5', '2', '2', '0', '2', '2017-02-21 21:10:19', '2017-02-21 21:10:19', '246c8463-b176-44ce-94d9-1b0d84dc980d'), ('61', '27', '26', '14', '0', '1', '2017-02-21 22:29:43', '2017-02-21 22:29:43', '0c19a68a-81d9-4a9d-b142-891e80637675'), ('62', '27', '26', '15', '0', '2', '2017-02-21 22:29:43', '2017-02-21 22:29:43', '96a03802-34ba-4404-8bd5-cce75522d25b'), ('63', '27', '26', '1', '1', '3', '2017-02-21 22:29:43', '2017-02-21 22:29:43', '4b65a217-6cc1-4d41-b53d-164b76551638'), ('64', '27', '27', '16', '0', '1', '2017-02-21 22:29:43', '2017-02-21 22:29:43', 'a7472119-d229-4200-b4d2-ce584204580c'), ('65', '29', '28', '18', '0', '1', '2017-02-22 15:04:26', '2017-02-22 15:04:26', 'bb5e4a13-c168-43e0-896e-13cce052c4a8'), ('66', '29', '28', '19', '0', '2', '2017-02-22 15:04:26', '2017-02-22 15:04:26', 'f7673110-d12f-43d7-900d-04e041dbf40e'), ('67', '29', '28', '3', '0', '3', '2017-02-22 15:04:26', '2017-02-22 15:04:26', '8201cbf3-5736-4a88-ba5f-783b1e4e110d'), ('68', '29', '28', '12', '0', '4', '2017-02-22 15:04:26', '2017-02-22 15:04:26', '75a057b7-68ea-4c97-ab5d-8fac924d4c8a'), ('69', '29', '28', '13', '0', '5', '2017-02-22 15:04:26', '2017-02-22 15:04:26', '4e4397f4-b3a3-42fc-a956-bac758b091d0'), ('70', '29', '28', '20', '0', '6', '2017-02-22 15:04:26', '2017-02-22 15:04:26', '0fbee4f6-a8bf-4412-a011-520f10c6810e'), ('71', '29', '28', '2', '0', '7', '2017-02-22 15:04:26', '2017-02-22 15:04:26', '9cbe61d7-ac0a-47c0-b016-f0eabbf7dee7'), ('72', '29', '29', '17', '0', '1', '2017-02-22 15:04:26', '2017-02-22 15:04:26', 'f9f48079-d474-4fbc-9b3b-9155d61f479a'), ('73', '29', '29', '16', '0', '2', '2017-02-22 15:04:26', '2017-02-22 15:04:26', 'acf450e2-e124-43f7-b473-94ef9727ec4a'), ('82', '39', '36', '4', '0', '1', '2017-02-22 23:05:48', '2017-02-22 23:05:48', '756c48b9-c943-479c-8d57-33c26db76e67'), ('83', '40', '37', '5', '0', '1', '2017-02-22 23:05:48', '2017-02-22 23:05:48', 'ed8141e8-498f-4780-9000-b14555da047c'), ('84', '41', '38', '6', '0', '1', '2017-02-22 23:05:48', '2017-02-22 23:05:48', '254958b8-3bd0-477a-8a45-5fb904d0683a'), ('85', '42', '39', '7', '0', '1', '2017-02-22 23:05:48', '2017-02-22 23:05:48', 'c0a01316-492f-418b-a641-b644b2a09d1b'), ('86', '42', '39', '8', '0', '2', '2017-02-22 23:05:48', '2017-02-22 23:05:48', '74d38e44-fc64-46d0-8d4f-3df9582ff870'), ('87', '43', '40', '10', '0', '1', '2017-02-22 23:05:48', '2017-02-22 23:05:48', 'cd01534d-95a7-497e-b70a-0457b065e4dc'), ('88', '43', '40', '11', '0', '2', '2017-02-22 23:05:48', '2017-02-22 23:05:48', '8a4a7547-4207-4ef5-bd58-e498ce00f62c'); DROP TABLE IF EXISTS `craft_fieldlayouts`; -- -- Schema for table `craft_fieldlayouts` -- CREATE TABLE `craft_fieldlayouts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(150) COLLATE utf8_unicode_ci NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `craft_fieldlayouts_type_idx` (`type`) ) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_fieldlayouts` -- INSERT INTO `craft_fieldlayouts` (`id`, `type`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', 'Tag', '2017-02-21 21:10:19', '2017-02-21 21:10:19', 'f653a2ec-81b2-444d-b1b9-e97fc721e583'), ('5', 'Entry', '2017-02-21 21:10:19', '2017-02-21 21:10:19', '01006e39-9c9f-46c1-a5c8-15cb999e1286'), ('27', 'Entry', '2017-02-21 22:29:43', '2017-02-21 22:29:43', 'eb2a5c55-42d7-49b1-a935-27ec5b81c20a'), ('28', 'Tag', '2017-02-22 15:02:04', '2017-02-22 15:02:04', 'e062fcf4-2beb-4255-b035-81c78c436756'), ('29', 'Entry', '2017-02-22 15:04:26', '2017-02-22 15:04:26', 'f54efb7f-87a9-4196-8828-263e577ee2b7'), ('32', 'Asset', '2017-02-22 16:17:50', '2017-02-22 16:17:50', 'd8d905b3-1946-458e-bac9-2de1e99ffc54'), ('39', 'MatrixBlock', '2017-02-22 23:05:48', '2017-02-22 23:05:48', '7113178e-4469-4f6d-8a70-506094216b4d'), ('40', 'MatrixBlock', '2017-02-22 23:05:48', '2017-02-22 23:05:48', '08dd9c6d-dc3f-4b51-87ca-208c8062e5b1'), ('41', 'MatrixBlock', '2017-02-22 23:05:48', '2017-02-22 23:05:48', '61102835-6f5d-42d6-b2d8-c8368603bc15'), ('42', 'MatrixBlock', '2017-02-22 23:05:48', '2017-02-22 23:05:48', '26886d41-4011-48b4-8c28-52800c22fed5'), ('43', 'MatrixBlock', '2017-02-22 23:05:48', '2017-02-22 23:05:48', '5ee80a9d-4274-4aae-8f11-9bbc1978dbd2'); DROP TABLE IF EXISTS `craft_fieldlayouttabs`; -- -- Schema for table `craft_fieldlayouttabs` -- CREATE TABLE `craft_fieldlayouttabs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `layoutId` int(11) NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `sortOrder` smallint(6) unsigned DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `craft_fieldlayouttabs_sortOrder_idx` (`sortOrder`), KEY `craft_fieldlayouttabs_layoutId_fk` (`layoutId`) ) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_fieldlayouttabs` -- INSERT INTO `craft_fieldlayouttabs` (`id`, `layoutId`, `name`, `sortOrder`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('2', '5', 'Content', '1', '2017-02-21 21:10:19', '2017-02-21 21:10:19', '96f8e168-92a3-4132-9721-de2e61929da6'), ('26', '27', 'Content', '1', '2017-02-21 22:29:43', '2017-02-21 22:29:43', '61622c0d-3090-4c15-81fc-9c61ec108ae7'), ('27', '27', 'Default', '2', '2017-02-21 22:29:43', '2017-02-21 22:29:43', '2739aaf6-4857-415b-9fcb-6ea2871ab732'), ('28', '29', 'Blog', '1', '2017-02-22 15:04:26', '2017-02-22 15:04:26', 'befd0513-8bae-4468-83a6-803c5f46a0e8'), ('29', '29', 'Default', '2', '2017-02-22 15:04:26', '2017-02-22 15:04:26', '6e8331fd-b21d-4481-98e6-6fda152d9761'), ('36', '39', 'Content', '1', '2017-02-22 23:05:48', '2017-02-22 23:05:48', 'ec2c16b8-dc8b-43bb-9da8-2c47c7c17435'), ('37', '40', 'Content', '1', '2017-02-22 23:05:48', '2017-02-22 23:05:48', 'e80303eb-b8d4-47f5-aad9-1a88e5260cd7'), ('38', '41', 'Content', '1', '2017-02-22 23:05:48', '2017-02-22 23:05:48', '04fb7191-4f4e-4bdf-8b77-5a85d4636385'), ('39', '42', 'Content', '1', '2017-02-22 23:05:48', '2017-02-22 23:05:48', 'f10c38b4-8e2a-4079-8f09-98836b1095b1'), ('40', '43', 'Content', '1', '2017-02-22 23:05:48', '2017-02-22 23:05:48', 'd4f194b8-5769-4ed5-bb5e-8727030bd4dc'); DROP TABLE IF EXISTS `craft_fields`; -- -- Schema for table `craft_fields` -- CREATE TABLE `craft_fields` ( `id` int(11) NOT NULL AUTO_INCREMENT, `groupId` int(11) DEFAULT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `handle` varchar(58) COLLATE utf8_unicode_ci NOT NULL, `context` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'global', `instructions` text COLLATE utf8_unicode_ci, `translatable` tinyint(1) unsigned NOT NULL DEFAULT '0', `type` varchar(150) COLLATE utf8_unicode_ci NOT NULL, `settings` text COLLATE utf8_unicode_ci, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_fields_handle_context_unq_idx` (`handle`,`context`), KEY `craft_fields_context_idx` (`context`), KEY `craft_fields_groupId_fk` (`groupId`) ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_fields` -- INSERT INTO `craft_fields` (`id`, `groupId`, `name`, `handle`, `context`, `instructions`, `translatable`, `type`, `settings`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', '1', 'Body', 'body', 'global', NULL, '1', 'RichText', '{\"configFile\":\"Standard.json\",\"columnType\":\"text\"}', '2017-02-21 21:10:19', '2017-02-21 21:10:19', '1ffef567-23d8-45a6-97c5-88c64d6cd5d8'), ('2', '1', 'Tags', 'tags', 'global', NULL, '0', 'Tags', '{\"source\":\"taggroup:1\"}', '2017-02-21 21:10:19', '2017-02-21 21:10:19', 'c9c8e90d-7fb3-44aa-8cff-977fbfbe1571'), ('3', '2', 'blog layout', 'blogLayout', 'global', '', '0', 'Matrix', '{\"maxBlocks\":null}', '2017-02-21 21:59:49', '2017-02-22 23:05:48', '0b5ff483-1dd9-4470-9635-f2b8a1cb8c3b'), ('4', NULL, 'main title', 'mainTitle', 'matrixBlockType:1', '', '0', 'PlainText', '{\"placeholder\":\"\",\"maxLength\":\"\",\"multiline\":\"\",\"initialRows\":\"4\"}', '2017-02-21 21:59:49', '2017-02-22 23:05:48', '17d39146-4ea1-4814-afbb-5b4c268ea931'), ('5', NULL, 'second title', 'secondTitle', 'matrixBlockType:2', '', '0', 'PlainText', '{\"placeholder\":\"\",\"maxLength\":\"\",\"multiline\":\"\",\"initialRows\":\"4\"}', '2017-02-21 21:59:49', '2017-02-22 23:05:48', 'd24216bb-e655-48d5-b87e-6dc923dcfe67'), ('6', NULL, 'text block', 'textBlock', 'matrixBlockType:3', '', '0', 'RichText', '{\"configFile\":\"\",\"availableAssetSources\":\"*\",\"availableTransforms\":\"*\",\"cleanupHtml\":\"1\",\"purifyHtml\":\"1\",\"columnType\":\"text\"}', '2017-02-21 21:59:49', '2017-02-22 23:05:48', '29394ae4-d6d1-45fa-8d06-5c54a1c684fb'), ('7', NULL, 'image', 'image', 'matrixBlockType:4', '', '0', 'Assets', '{\"useSingleFolder\":\"\",\"sources\":\"*\",\"defaultUploadLocationSource\":\"1\",\"defaultUploadLocationSubpath\":\"\",\"singleUploadLocationSource\":\"1\",\"singleUploadLocationSubpath\":\"\",\"restrictFiles\":\"\",\"limit\":\"\",\"viewMode\":\"list\",\"selectionLabel\":\"\"}', '2017-02-21 21:59:49', '2017-02-22 23:05:48', '7d9bff6f-7f8a-4ac9-814a-a9dc7f92387c'), ('8', NULL, 'caption', 'caption', 'matrixBlockType:4', '', '0', 'PlainText', '{\"placeholder\":\"\",\"maxLength\":\"\",\"multiline\":\"\",\"initialRows\":\"4\"}', '2017-02-21 21:59:49', '2017-02-22 23:05:48', 'e3a7a654-cf37-488f-b6f3-75876a3ae430'), ('10', NULL, 'quote', 'quote', 'matrixBlockType:6', '', '0', 'PlainText', '{\"placeholder\":\"\",\"maxLength\":\"\",\"multiline\":\"\",\"initialRows\":\"4\"}', '2017-02-21 21:59:49', '2017-02-22 23:05:48', 'a86133c6-f851-401e-95de-5ebe715d443b'), ('11', NULL, 'cite', 'cite', 'matrixBlockType:6', '', '0', 'PlainText', '{\"placeholder\":\"\",\"maxLength\":\"\",\"multiline\":\"\",\"initialRows\":\"4\"}', '2017-02-21 21:59:49', '2017-02-22 23:05:48', '0ca6cda3-c289-4366-80c4-c274d396e0e8'), ('12', '2', 'blog summary', 'blogSummary', 'global', '', '0', 'PlainText', '{\"placeholder\":\"\",\"maxLength\":\"\",\"multiline\":\"\",\"initialRows\":\"4\"}', '2017-02-21 22:06:01', '2017-02-21 22:06:01', 'a82be0be-96b8-443a-8fdb-de6f395fa072'), ('13', '2', 'ert', 'ert', 'global', '', '0', 'PlainText', '{\"placeholder\":\"\",\"maxLength\":\"\",\"multiline\":\"\",\"initialRows\":\"4\"}', '2017-02-21 22:06:23', '2017-02-21 22:06:23', '209fb213-f3a5-4249-8370-fb6c54d90cdd'), ('14', '2', 'blog index title', 'blogIndexTitle', 'global', '', '0', 'RichText', '{\"configFile\":\"Standard.json\",\"availableAssetSources\":\"*\",\"availableTransforms\":\"*\",\"cleanupHtml\":\"\",\"purifyHtml\":\"\",\"columnType\":\"text\"}', '2017-02-21 22:08:46', '2017-02-22 19:43:27', 'bf8c4494-60ab-4bd6-9405-c4a5a7e21df2'), ('15', '2', 'blog index subtitle', 'blogIndexSubtitle', 'global', '', '0', 'RichText', '{\"configFile\":\"Standard.json\",\"availableAssetSources\":\"*\",\"availableTransforms\":\"*\",\"cleanupHtml\":\"\",\"purifyHtml\":\"\",\"columnType\":\"text\"}', '2017-02-21 22:08:57', '2017-02-22 19:43:19', '7bbaf7f6-e71b-4791-8aa2-be2d3c85da5e'), ('16', '2', 'hero image', 'heroImage', 'global', '', '0', 'Assets', '{\"useSingleFolder\":\"\",\"sources\":\"*\",\"defaultUploadLocationSource\":\"1\",\"defaultUploadLocationSubpath\":\"\",\"singleUploadLocationSource\":\"1\",\"singleUploadLocationSubpath\":\"\",\"restrictFiles\":\"1\",\"allowedKinds\":[\"image\"],\"limit\":\"\",\"viewMode\":\"list\",\"selectionLabel\":\"\"}', '2017-02-21 22:24:11', '2017-02-21 22:24:11', 'b31ec585-d5c6-453b-bacb-cbd268122bcd'), ('17', '2', 'thumbnail', 'thumbnail', 'global', '', '0', 'Assets', '{\"useSingleFolder\":\"\",\"sources\":\"*\",\"defaultUploadLocationSource\":\"1\",\"defaultUploadLocationSubpath\":\"\",\"singleUploadLocationSource\":\"1\",\"singleUploadLocationSubpath\":\"\",\"restrictFiles\":\"1\",\"allowedKinds\":[\"image\"],\"limit\":\"\",\"viewMode\":\"list\",\"selectionLabel\":\"\"}', '2017-02-21 22:24:46', '2017-02-21 22:24:46', '8987b2c5-49df-4b8b-9c2d-1dd90b887c87'), ('18', '2', 'post title', 'postTitle', 'global', '', '0', 'PlainText', '{\"placeholder\":\"\",\"maxLength\":\"\",\"multiline\":\"\",\"initialRows\":\"4\"}', '2017-02-21 22:27:58', '2017-02-21 22:27:58', 'bad1c311-5c00-4e88-bdb7-671899b550ac'), ('19', '2', 'post subtitle', 'postSubtitle', 'global', '', '0', 'PlainText', '{\"placeholder\":\"\",\"maxLength\":\"\",\"multiline\":\"\",\"initialRows\":\"4\"}', '2017-02-21 22:28:08', '2017-02-21 22:28:08', '1c73224c-d968-4caf-9aa8-611fdb7ae654'), ('20', '2', 'tags for blog', 'tagsForBlog', 'global', '', '0', 'Tags', '{\"source\":\"taggroup:2\",\"selectionLabel\":\"enter your tag here\"}', '2017-02-22 15:03:57', '2017-02-22 15:03:57', 'f1482ba0-a5e4-462d-bd9e-19a625f9ee57'); DROP TABLE IF EXISTS `craft_globalsets`; -- -- Schema for table `craft_globalsets` -- CREATE TABLE `craft_globalsets` ( `id` int(11) NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `handle` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `fieldLayoutId` int(10) DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_globalsets_name_unq_idx` (`name`), UNIQUE KEY `craft_globalsets_handle_unq_idx` (`handle`), KEY `craft_globalsets_fieldLayoutId_fk` (`fieldLayoutId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_info`; -- -- Schema for table `craft_info` -- CREATE TABLE `craft_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `version` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `schemaVersion` varchar(15) COLLATE utf8_unicode_ci NOT NULL, `edition` tinyint(1) unsigned NOT NULL DEFAULT '0', `siteName` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `siteUrl` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `timezone` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `on` tinyint(1) unsigned NOT NULL DEFAULT '0', `maintenance` tinyint(1) unsigned NOT NULL DEFAULT '0', `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_info` -- INSERT INTO `craft_info` (`id`, `version`, `schemaVersion`, `edition`, `siteName`, `siteUrl`, `timezone`, `on`, `maintenance`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', '2.6.2962', '2.6.9', '0', 'Dev Blog', 'http://dev.blog.com', 'UTC', '1', '0', '2017-02-21 21:10:12', '2017-02-21 21:10:12', 'f037263f-c9de-433f-81c1-525c23203033'); DROP TABLE IF EXISTS `craft_locales`; -- -- Schema for table `craft_locales` -- CREATE TABLE `craft_locales` ( `locale` char(12) COLLATE utf8_unicode_ci NOT NULL, `sortOrder` smallint(6) unsigned DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`locale`), KEY `craft_locales_sortOrder_idx` (`sortOrder`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_locales` -- INSERT INTO `craft_locales` (`locale`, `sortOrder`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('en_us', '1', '2017-02-21 21:10:13', '2017-02-21 21:10:13', 'b873e909-f2c3-4cb2-939d-09548760a251'); DROP TABLE IF EXISTS `craft_matrixblocks`; -- -- Schema for table `craft_matrixblocks` -- CREATE TABLE `craft_matrixblocks` ( `id` int(11) NOT NULL, `ownerId` int(11) NOT NULL, `fieldId` int(11) NOT NULL, `typeId` int(11) DEFAULT NULL, `sortOrder` smallint(6) unsigned DEFAULT NULL, `ownerLocale` char(12) COLLATE utf8_unicode_ci DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `craft_matrixblocks_ownerId_idx` (`ownerId`), KEY `craft_matrixblocks_fieldId_idx` (`fieldId`), KEY `craft_matrixblocks_typeId_idx` (`typeId`), KEY `craft_matrixblocks_sortOrder_idx` (`sortOrder`), KEY `craft_matrixblocks_ownerLocale_fk` (`ownerLocale`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_matrixblocks` -- INSERT INTO `craft_matrixblocks` (`id`, `ownerId`, `fieldId`, `typeId`, `sortOrder`, `ownerLocale`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('5', '4', '3', '3', '1', NULL, '2017-02-21 22:37:07', '2017-02-23 18:39:40', 'ebe9d8b0-104e-45ef-b99e-c01f43fb7473'), ('11', '10', '3', '3', '1', NULL, '2017-02-22 16:15:31', '2017-02-22 21:30:40', '45aeb7c2-cf48-42f9-9029-459cd15719b7'), ('17', '4', '3', '1', '2', NULL, '2017-02-22 21:54:22', '2017-02-23 18:39:40', 'bfe5a121-e8c9-4c8b-8bad-be2de8c6589d'), ('18', '4', '3', '3', '3', NULL, '2017-02-22 21:54:22', '2017-02-23 18:39:40', 'cb722c64-e20f-483b-b0d7-cb44f57679f5'), ('19', '4', '3', '1', '5', NULL, '2017-02-22 21:54:22', '2017-02-23 18:39:40', '3352a271-41db-43f4-b557-396c9c2b5b3b'), ('20', '4', '3', '3', '6', NULL, '2017-02-22 21:54:22', '2017-02-23 18:39:40', 'dd10c8a3-0755-4aec-a757-571532f30bcf'), ('21', '4', '3', '4', '4', NULL, '2017-02-22 23:05:26', '2017-02-23 18:39:40', 'cbdce8c2-5e05-412b-b296-9faa4a43b454'), ('22', '4', '3', '6', '7', NULL, '2017-02-22 23:05:26', '2017-02-23 18:39:40', '389b3408-7a78-43d1-b8cd-10e3be0d2540'), ('24', '23', '3', '3', '1', NULL, '2017-02-23 00:03:50', '2017-02-23 00:03:53', 'b64e3195-cd99-4a54-997c-62bffe4ec83d'), ('25', '23', '3', '1', '2', NULL, '2017-02-23 00:03:50', '2017-02-23 00:03:53', '4897a850-b53d-4d33-82ec-4b80053fc88a'), ('26', '23', '3', '3', '3', NULL, '2017-02-23 00:03:50', '2017-02-23 00:03:53', 'fc94b66b-2682-4275-8172-ff27c7942e91'), ('27', '23', '3', '4', '4', NULL, '2017-02-23 00:03:50', '2017-02-23 00:03:53', '69abc83a-4d57-4397-993f-659f49cffc08'), ('28', '23', '3', '1', '5', NULL, '2017-02-23 00:03:50', '2017-02-23 00:03:53', 'fc07413c-f7d4-4b54-a09c-a7e1031c068a'), ('29', '23', '3', '3', '6', NULL, '2017-02-23 00:03:50', '2017-02-23 00:03:53', '3b4932ab-82bd-4217-ba1a-b1260606aabe'), ('30', '23', '3', '6', '7', NULL, '2017-02-23 00:03:50', '2017-02-23 00:03:53', '2b79be19-1214-4dd0-b14f-22b89c9f416c'), ('32', '31', '3', '3', '1', NULL, '2017-02-23 00:13:08', '2017-02-23 00:13:09', 'b68ac103-9110-4023-b560-ca2e931a68f9'), ('33', '4', '3', '4', '8', NULL, '2017-02-23 18:39:40', '2017-02-23 18:39:40', '34f31598-8166-47b7-9f07-3ee89e09de5f'); DROP TABLE IF EXISTS `craft_matrixblocktypes`; -- -- Schema for table `craft_matrixblocktypes` -- CREATE TABLE `craft_matrixblocktypes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fieldId` int(11) NOT NULL, `fieldLayoutId` int(11) DEFAULT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `handle` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `sortOrder` smallint(6) unsigned DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_matrixblocktypes_name_fieldId_unq_idx` (`name`,`fieldId`), UNIQUE KEY `craft_matrixblocktypes_handle_fieldId_unq_idx` (`handle`,`fieldId`), KEY `craft_matrixblocktypes_fieldId_fk` (`fieldId`), KEY `craft_matrixblocktypes_fieldLayoutId_fk` (`fieldLayoutId`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_matrixblocktypes` -- INSERT INTO `craft_matrixblocktypes` (`id`, `fieldId`, `fieldLayoutId`, `name`, `handle`, `sortOrder`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', '3', '39', 'main title', 'mainTitle', '1', '2017-02-21 21:59:49', '2017-02-22 23:05:48', '62a6ac57-4019-41d6-93b7-00317706b7d2'), ('2', '3', '40', 'second title', 'secondTitle', '2', '2017-02-21 21:59:49', '2017-02-22 23:05:48', 'ee28bfe0-6430-4669-8927-5ff034cedec6'), ('3', '3', '41', 'text block', 'textBlock', '3', '2017-02-21 21:59:49', '2017-02-22 23:05:48', '00f51a2c-333b-4a1e-98d4-4fc6f0f98ed9'), ('4', '3', '42', 'photo block', 'photoBlock', '4', '2017-02-21 21:59:49', '2017-02-22 23:05:48', '79b3b9a7-5050-40e3-aa85-178596210aa0'), ('6', '3', '43', 'quote block', 'quoteBlock', '5', '2017-02-21 21:59:49', '2017-02-22 23:05:48', 'c55623d0-780a-4d16-a8d6-bead5ce2745d'); DROP TABLE IF EXISTS `craft_matrixcontent_bloglayout`; -- -- Schema for table `craft_matrixcontent_bloglayout` -- CREATE TABLE `craft_matrixcontent_bloglayout` ( `id` int(11) NOT NULL AUTO_INCREMENT, `elementId` int(11) NOT NULL, `locale` char(12) COLLATE utf8_unicode_ci NOT NULL, `field_mainTitle_mainTitle` text COLLATE utf8_unicode_ci, `field_secondTitle_secondTitle` text COLLATE utf8_unicode_ci, `field_textBlock_textBlock` text COLLATE utf8_unicode_ci, `field_photoBlock_caption` text COLLATE utf8_unicode_ci, `field_quoteBlock_quote` text COLLATE utf8_unicode_ci, `field_quoteBlock_cite` text COLLATE utf8_unicode_ci, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_matrixcontent_bloglayout_elementId_locale_unq_idx` (`elementId`,`locale`), KEY `craft_matrixcontent_bloglayout_locale_fk` (`locale`) ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_matrixcontent_bloglayout` -- INSERT INTO `craft_matrixcontent_bloglayout` (`id`, `elementId`, `locale`, `field_mainTitle_mainTitle`, `field_secondTitle_secondTitle`, `field_textBlock_textBlock`, `field_photoBlock_caption`, `field_quoteBlock_quote`, `field_quoteBlock_cite`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', '5', 'en_us', NULL, NULL, '<p>The modern web is rich with photography, iconography, and video, but image-heavy sites can result in poor performance for the end user. Part of providing an elegant user experience is asset optimization, and we use Amazon\'s <a href=\"https://aws.amazon.com/s3/\" target=\"_blank\" rel=\"noreferrer\">S3</a> and <a href=\"https://aws.amazon.com/cloudfront/\" target=\"_blank\" rel=\"noreferrer\">CloudFront</a> to do the heavy-lifting.</p>\n<p>There are a few reasons why we choose to use S3 to host static assets for our clients</p>', NULL, NULL, NULL, '2017-02-21 22:37:07', '2017-02-23 18:39:40', '09197047-711a-4dce-8fb7-7118183b418b'), ('2', '11', 'en_us', NULL, NULL, '<p>Following our Design on Tap event, we chatted with <NAME>, and <NAME>, from Hopworks Urban Brewery about branding beer.</p>', NULL, NULL, NULL, '2017-02-22 16:15:31', '2017-02-22 21:30:40', '3925b2e6-a9fe-49bc-b7dd-8c088d8fa015'), ('3', '17', 'en_us', 'Storage', NULL, NULL, NULL, NULL, NULL, '2017-02-22 21:54:22', '2017-02-23 18:39:40', '6a7a17ef-6f49-49ac-98db-a7398a492fdc'), ('4', '18', 'en_us', NULL, NULL, '<p>One of the largest pieces of overhead involved in hosting a website is data storage - and media assets make up a large part of that. Storing gigabytes of photography, video, and graphics on your web host can make it difficult to move, backup, or deploy your site because it makes it heavier (figuratively). Offloading your media files to the cloud allows you to keep your web server thin while maintaining a central repository to manage your digital assets.</p>', NULL, NULL, NULL, '2017-02-22 21:54:22', '2017-02-23 18:39:40', '6ed35278-0748-4108-a6ee-391af9b8b4d4'), ('5', '19', 'en_us', 'Speed', NULL, NULL, NULL, NULL, NULL, '2017-02-22 21:54:22', '2017-02-23 18:39:40', '041504a1-aa78-4b00-a85f-aee798eb6846'), ('6', '20', 'en_us', NULL, NULL, '<p>Amazon\'s servers are low-latency and have incredibly fast transfer speeds which allow for quick rendering. With the added bonuses of using a <a href=\"http://www.sitepoint.com/7-reasons-to-use-a-cdn/\" target=\"_blank\" rel=\"noreferrer\">Content Delivery Network (CDN)</a> such as caching and utilizing parallel downloads, you\'ll notice a huge difference in how fast your files show up on your page.</p>', NULL, NULL, NULL, '2017-02-22 21:54:22', '2017-02-23 18:39:40', '15fe12cb-583a-4dd7-ae48-361d8cb0a485'), ('7', '21', 'en_us', NULL, NULL, NULL, 'That\'s me', NULL, NULL, '2017-02-22 23:05:26', '2017-02-23 18:39:40', '778f80d1-2b3e-4c7d-9b94-f2504c0c412e'), ('8', '22', 'en_us', NULL, NULL, NULL, NULL, 'This is a quote in a quote block. To call attention to a specific phrases or sentence.', '<NAME>', '2017-02-22 23:05:26', '2017-02-23 18:39:40', 'f7fc4ed3-9e4b-40ec-9bf7-c45e374906f0'), ('9', '24', 'en_us', NULL, NULL, '<p>The modern web is rich with photography, iconography, and video, but image-heavy sites can result in poor performance for the end user. Part of providing an elegant user experience is asset optimization, and we use Amazon\'s <a href=\"https://aws.amazon.com/s3/\" target=\"_blank\" rel=\"noreferrer\">S3</a> and <a href=\"https://aws.amazon.com/cloudfront/\" target=\"_blank\" rel=\"noreferrer\">CloudFront</a> to do the heavy-lifting.</p>\n<p>There are a few reasons why we choose to use S3 to host static assets for our clients</p>', NULL, NULL, NULL, '2017-02-23 00:03:50', '2017-02-23 00:03:53', 'eaa4d4d4-eea7-402d-915c-bdd505fc0abb'), ('10', '25', 'en_us', 'Storage', NULL, NULL, NULL, NULL, NULL, '2017-02-23 00:03:50', '2017-02-23 00:03:53', '77f22d16-f997-4a64-b1cd-1db8bc739fe5'), ('11', '26', 'en_us', NULL, NULL, '<p>One of the largest pieces of overhead involved in hosting a website is data storage - and media assets make up a large part of that. Storing gigabytes of photography, video, and graphics on your web host can make it difficult to move, backup, or deploy your site because it makes it heavier (figuratively). Offloading your media files to the cloud allows you to keep your web server thin while maintaining a central repository to manage your digital assets.</p>', NULL, NULL, NULL, '2017-02-23 00:03:50', '2017-02-23 00:03:53', '219be6a2-a80d-48b8-86bd-e232d9d2aa66'), ('12', '27', 'en_us', NULL, NULL, NULL, 'That\'s me', NULL, NULL, '2017-02-23 00:03:50', '2017-02-23 00:03:53', '18e66294-f146-4cec-9f7a-d5ce75d54149'), ('13', '28', 'en_us', 'Speed', NULL, NULL, NULL, NULL, NULL, '2017-02-23 00:03:50', '2017-02-23 00:03:53', '830eda40-07d5-4b66-bcc7-612cb5fe674d'), ('14', '29', 'en_us', NULL, NULL, '<p>Amazon\'s servers are low-latency and have incredibly fast transfer speeds which allow for quick rendering. With the added bonuses of using a <a href=\"http://www.sitepoint.com/7-reasons-to-use-a-cdn/\" target=\"_blank\" rel=\"noreferrer\">Content Delivery Network (CDN)</a> such as caching and utilizing parallel downloads, you\'ll notice a huge difference in how fast your files show up on your page.</p>', NULL, NULL, NULL, '2017-02-23 00:03:50', '2017-02-23 00:03:53', '7d98d642-6fa8-4e3e-b7e9-9aec5fdc362a'), ('15', '30', 'en_us', NULL, NULL, NULL, NULL, 'This is a quote in a quote block. To call attention to a specific phrases or sentence.', '<NAME>', '2017-02-23 00:03:50', '2017-02-23 00:03:53', 'a466daaf-f946-4ca1-bdf1-38dbc027b716'), ('16', '32', 'en_us', NULL, NULL, '<p>Following our Design on Tap event, we chatted with <NAME>, and <NAME>, from Hopworks Urban Brewery about branding beer.</p>', NULL, NULL, NULL, '2017-02-23 00:13:07', '2017-02-23 00:13:09', 'b22a72c1-19ce-4c39-8a65-b8ba5a9a5442'), ('17', '33', 'en_us', NULL, NULL, NULL, '', NULL, NULL, '2017-02-23 18:39:40', '2017-02-23 18:39:40', '13c4b56b-8628-4e5c-99dc-c097fa4d04a4'); DROP TABLE IF EXISTS `craft_migrations`; -- -- Schema for table `craft_migrations` -- CREATE TABLE `craft_migrations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `pluginId` int(11) DEFAULT NULL, `version` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `applyTime` datetime NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_migrations_version_unq_idx` (`version`), KEY `craft_migrations_pluginId_fk` (`pluginId`) ) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_migrations` -- INSERT INTO `craft_migrations` (`id`, `pluginId`, `version`, `applyTime`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', NULL, 'm000000_000000_base', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '55550b74-721a-4273-9c99-99148574eab0'), ('2', NULL, 'm140730_000001_add_filename_and_format_to_transformindex', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '8969720a-b375-4698-89ba-fcf9665f763a'), ('3', NULL, 'm140815_000001_add_format_to_transforms', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '42c872ff-e761-4880-a02c-b2473e2bd405'), ('4', NULL, 'm140822_000001_allow_more_than_128_items_per_field', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', 'f1cabfc8-4ec2-4872-b615-71c48a9c7eee'), ('5', NULL, 'm140829_000001_single_title_formats', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '302579fc-c4e4-48f9-8bcd-5ed9a44dab43'), ('6', NULL, 'm140831_000001_extended_cache_keys', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', 'ed63e3b9-f85a-400e-839b-878f5ea3694b'), ('7', NULL, 'm140922_000001_delete_orphaned_matrix_blocks', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', 'a3aaf7ee-4b4a-4a7f-83dc-3280a91a2743'), ('8', NULL, 'm141008_000001_elements_index_tune', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', 'bbd5bd8b-e1ae-4f9b-a251-15fefa275ac5'), ('9', NULL, 'm141009_000001_assets_source_handle', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '3a3250e7-aa30-4d23-84af-08abcd57f3bf'), ('10', NULL, 'm141024_000001_field_layout_tabs', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '9aef0975-e5b7-4940-95bf-8a2d8437f807'), ('11', NULL, 'm141030_000000_plugin_schema_versions', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '55fe0aa4-98cd-4b17-8cdf-880b71ca9d9e'), ('12', NULL, 'm141030_000001_drop_structure_move_permission', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '59fa01a6-b5d7-44a0-a71a-cc79f64f8423'), ('13', NULL, 'm141103_000001_tag_titles', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '63e78ada-0494-4e6c-917b-c53fda849702'), ('14', NULL, 'm141109_000001_user_status_shuffle', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '83bb660d-679b-4b0f-bff6-f0500ad9b21f'), ('15', NULL, 'm141126_000001_user_week_start_day', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', 'ebce88ec-f261-4e4c-af2b-ab41629bad9a'), ('16', NULL, 'm150210_000001_adjust_user_photo_size', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '3c0982b5-bd98-4ff7-8c56-c6128e2c7828'), ('17', NULL, 'm150724_000001_adjust_quality_settings', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '3883c37d-5902-43f8-9f30-67bc0a7f5796'), ('18', NULL, 'm150827_000000_element_index_settings', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '080cbcb3-5bc5-4c51-a460-95b9f6a341ab'), ('19', NULL, 'm150918_000001_add_colspan_to_widgets', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '254e0726-d470-4c8a-b3d7-e673b17fa1ec'), ('20', NULL, 'm151007_000000_clear_asset_caches', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', 'a7e4b850-c181-4564-8228-7c4b263705a4'), ('21', NULL, 'm151109_000000_text_url_formats', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '9e29ad63-7042-4bce-bad0-8110ac87c350'), ('22', NULL, 'm151110_000000_move_logo', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '45eb51ef-5618-4330-b31f-c4f8be9ebba6'), ('23', NULL, 'm151117_000000_adjust_image_widthheight', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '8e3bc051-b1c2-4128-8fb8-c34ec7cc6f00'), ('24', NULL, 'm151127_000000_clear_license_key_status', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '8cd02ff8-ce07-4a7e-9e3a-f940652797bc'), ('25', NULL, 'm151127_000000_plugin_license_keys', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2a<PASSWORD>-<PASSWORD>-55606304<PASSWORD>'), ('26', NULL, 'm151130_000000_update_pt_widget_feeds', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '510f92e8-5133-44fd-a341-1103204bc2e9'), ('27', NULL, 'm160114_000000_asset_sources_public_url_default_true', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '35bb3e3c-5e5e-4297-b863-2bebe3dd3786'), ('28', NULL, 'm160223_000000_sortorder_to_smallint', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', 'e0d84459-461f-4050-a069-16e45e5735a8'), ('29', NULL, 'm160229_000000_set_default_entry_statuses', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '60971c2e-103c-4ee0-bc55-86ed40e03d36'), ('30', NULL, 'm160304_000000_client_permissions', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', 'bfca8e1f-6b94-436f-b28e-a4b171a83e92'), ('31', NULL, 'm160322_000000_asset_filesize', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '99a0051b-7cad-4a94-b7ed-dcda5d354913'), ('32', NULL, 'm160503_000000_orphaned_fieldlayouts', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '19062762-df4b-4504-8a70-faf24f3946a5'), ('33', NULL, 'm160510_000000_tasksettings', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '5b3cbbb3-1c9e-4abf-b843-13602e16ee41'), ('34', NULL, 'm160829_000000_pending_user_content_cleanup', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', 'a1cfbcfe-f4e4-43d4-9f99-25896081da3b'), ('35', NULL, 'm160830_000000_asset_index_uri_increase', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', 'a93aaa07-0baa-4434-9bb5-614d84322d76'), ('36', NULL, 'm160919_000000_usergroup_handle_title_unique', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '325447d0-bdbd-474b-b32f-7c49f3482d54'), ('37', NULL, 'm161108_000000_new_version_format', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', 'd1929eb1-95a9-4a79-b088-3ebec9fca549'), ('38', NULL, 'm161109_000000_index_shuffle', '2017-02-21 21:10:13', '2017-02-21 21:10:13', '2017-02-21 21:10:13', 'ba7f6168-ab4a-46b7-bf97-209975b3ce67'); DROP TABLE IF EXISTS `craft_plugins`; -- -- Schema for table `craft_plugins` -- CREATE TABLE `craft_plugins` ( `id` int(11) NOT NULL AUTO_INCREMENT, `class` varchar(150) COLLATE utf8_unicode_ci NOT NULL, `version` varchar(15) COLLATE utf8_unicode_ci NOT NULL, `schemaVersion` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL, `licenseKey` char(24) COLLATE utf8_unicode_ci DEFAULT NULL, `licenseKeyStatus` enum('valid','invalid','mismatched','unknown') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'unknown', `enabled` tinyint(1) unsigned NOT NULL DEFAULT '0', `settings` text COLLATE utf8_unicode_ci, `installDate` datetime NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_rackspaceaccess`; -- -- Schema for table `craft_rackspaceaccess` -- CREATE TABLE `craft_rackspaceaccess` ( `id` int(11) NOT NULL AUTO_INCREMENT, `connectionKey` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `storageUrl` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `cdnUrl` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_rackspaceaccess_connectionKey_unq_idx` (`connectionKey`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_relations`; -- -- Schema for table `craft_relations` -- CREATE TABLE `craft_relations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fieldId` int(11) NOT NULL, `sourceId` int(11) NOT NULL, `sourceLocale` char(12) COLLATE utf8_unicode_ci DEFAULT NULL, `targetId` int(11) NOT NULL, `sortOrder` smallint(6) DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_relations_fieldId_sourceId_sourceLocale_targetId_unq_idx` (`fieldId`,`sourceId`,`sourceLocale`,`targetId`), KEY `craft_relations_sourceId_fk` (`sourceId`), KEY `craft_relations_sourceLocale_fk` (`sourceLocale`), KEY `craft_relations_targetId_fk` (`targetId`) ) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_relations` -- INSERT INTO `craft_relations` (`id`, `fieldId`, `sourceId`, `sourceLocale`, `targetId`, `sortOrder`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('18', '20', '10', NULL, '6', '1', '2017-02-22 21:30:40', '2017-02-22 21:30:40', '1579ddce-3041-42b3-9ae5-9a4e82ea6644'), ('19', '17', '10', NULL, '13', '1', '2017-02-22 21:30:40', '2017-02-22 21:30:40', '2fdb3f64-729d-4353-bbf5-2e32a2f24004'), ('41', '7', '27', NULL, '9', '1', '2017-02-23 00:03:53', '2017-02-23 00:03:53', 'd0289b73-ca37-4dc1-8be4-a713a9836c14'), ('42', '20', '23', NULL, '6', '1', '2017-02-23 00:03:53', '2017-02-23 00:03:53', 'af2a200b-96a0-459c-ac32-c4f092ac9de4'), ('43', '20', '23', NULL, '7', '2', '2017-02-23 00:03:53', '2017-02-23 00:03:53', '635ac78e-3eeb-489a-bbc7-e00a2610b7aa'), ('44', '17', '23', NULL, '14', '1', '2017-02-23 00:03:53', '2017-02-23 00:03:53', 'c4207d2f-c0cb-4d6b-8bb0-7dae04c6e632'), ('45', '16', '23', NULL, '16', '1', '2017-02-23 00:03:53', '2017-02-23 00:03:53', 'c38a97b1-fa49-4ded-a629-92e2c984093a'), ('48', '20', '31', NULL, '6', '1', '2017-02-23 00:13:09', '2017-02-23 00:13:09', '8cd2d336-47e4-43f3-b4ff-dc00742ab2d6'), ('49', '17', '31', NULL, '13', '1', '2017-02-23 00:13:09', '2017-02-23 00:13:09', 'fd739bf2-0b97-445c-ac76-91a705f8276d'), ('51', '16', '2', NULL, '12', '1', '2017-02-23 16:54:13', '2017-02-23 16:54:13', 'ce3fec30-709d-47e9-b279-f2c2766e2fb4'), ('52', '7', '21', NULL, '9', '1', '2017-02-23 18:39:40', '2017-02-23 18:39:40', '65b352c5-4cb7-45cf-b9ce-24930948417f'), ('53', '7', '33', NULL, '13', '1', '2017-02-23 18:39:40', '2017-02-23 18:39:40', '4be7be9e-ec0e-4792-9d2c-fe980fc55b17'), ('54', '20', '4', NULL, '6', '1', '2017-02-23 18:39:40', '2017-02-23 18:39:40', 'e8c9cbf9-50cb-4ce2-83d8-b17c0c153703'), ('55', '20', '4', NULL, '7', '2', '2017-02-23 18:39:40', '2017-02-23 18:39:40', 'a359eb3a-f3e3-4bdb-8d60-c3723f0f52c7'), ('56', '17', '4', NULL, '14', '1', '2017-02-23 18:39:40', '2017-02-23 18:39:40', 'dc09283f-dddb-41b3-a125-c47e0aced021'), ('57', '16', '4', NULL, '16', '1', '2017-02-23 18:39:40', '2017-02-23 18:39:40', 'f60bde86-90a5-45f6-99bd-f9d029534834'); DROP TABLE IF EXISTS `craft_routes`; -- -- Schema for table `craft_routes` -- CREATE TABLE `craft_routes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `locale` char(12) COLLATE utf8_unicode_ci DEFAULT NULL, `urlParts` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `urlPattern` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `template` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `sortOrder` smallint(6) unsigned DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_routes_urlPattern_unq_idx` (`urlPattern`), KEY `craft_routes_locale_idx` (`locale`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_searchindex`; -- -- Schema for table `craft_searchindex` -- CREATE TABLE `craft_searchindex` ( `elementId` int(11) NOT NULL, `attribute` varchar(25) COLLATE utf8_unicode_ci NOT NULL, `fieldId` int(11) NOT NULL, `locale` char(12) COLLATE utf8_unicode_ci NOT NULL, `keywords` text COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`elementId`,`attribute`,`fieldId`,`locale`), FULLTEXT KEY `craft_searchindex_keywords_idx` (`keywords`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_searchindex` -- INSERT INTO `craft_searchindex` (`elementId`, `attribute`, `fieldId`, `locale`, `keywords`) VALUES ('1', 'username', '0', 'en_us', ' ryanhall '), ('1', 'firstname', '0', 'en_us', ' ryan '), ('1', 'lastname', '0', 'en_us', ' hall '), ('1', 'fullname', '0', 'en_us', ' <NAME> '), ('1', 'email', '0', 'en_us', ' ryan ryanhallmedia com '), ('1', 'slug', '0', 'en_us', ''), ('2', 'slug', '0', 'en_us', ' homepage '), ('2', 'title', '0', 'en_us', ' ryan s test blog '), ('2', 'field', '1', 'en_us', ' it s true this site doesn t have a whole lot of content yet but don t worry our web developers have just installed the cms and they re setting things up for the content editors this very moment soon dev blog com will be an oasis of fresh perspectives sharp analyses and astute opinions that will keep you coming back again and again '), ('3', 'field', '1', 'en_us', ' craft is the cms that s powering dev blog com it s beautiful powerful flexible and easy to use and it s made by pixel tonic we can t wait to dive in and see what it s capable of this is even more captivating content which you couldn t see on the news index page because it was entered after a page break and the news index template only likes to show the content on the first page craft a nice alternative to word if you re making a website '), ('3', 'field', '2', 'en_us', ''), ('3', 'slug', '0', 'en_us', ' we just installed craft '), ('3', 'title', '0', 'en_us', ' we just installed craft '), ('4', 'field', '18', 'en_us', ' hosting static files with s3 cloudfront '), ('4', 'field', '19', 'en_us', ' this is something '), ('4', 'field', '3', 'en_us', ' the modern web is rich with photography iconography and video but image heavy sites can result in poor performance for the end user part of providing an elegant user experience is asset optimization and we use amazon s s3 and cloudfront to do the heavy lifting there are a few reasons why we choose to use s3 to host static assets for our clients storage one of the largest pieces of overhead involved in hosting a website is data storage and media assets make up a large part of that storing gigabytes of photography video and graphics on your web host can make it difficult to move backup or deploy your site because it makes it heavier figuratively offloading your media files to the cloud allows you to keep your web server thin while maintaining a central repository to manage your digital assets that s me ryan speed amazon s servers are low latency and have incredibly fast transfer speeds which allow for quick rendering with the added bonuses of using a content delivery network cdn such as caching and utilizing parallel downloads you ll notice a huge difference in how fast your files show up on your page ryan hall this is a quote in a quote block to call attention to a specific phrases or sentence logos 04 '), ('4', 'field', '12', 'en_us', ' the modern web is rich with photography iconography and video but image heavy sites can result in poor performance for the end user '), ('4', 'field', '13', 'en_us', ' 1 '), ('4', 'field', '2', 'en_us', ''), ('4', 'field', '17', 'en_us', ' static assets with amazon s3 '), ('4', 'field', '16', 'en_us', ' static assets with amazon s3 1 '), ('4', 'slug', '0', 'en_us', ' the first post '), ('4', 'title', '0', 'en_us', ' hosting static files with s3 cloudfront '), ('5', 'field', '6', 'en_us', ' the modern web is rich with photography iconography and video but image heavy sites can result in poor performance for the end user part of providing an elegant user experience is asset optimization and we use amazon s s3 and cloudfront to do the heavy lifting there are a few reasons why we choose to use s3 to host static assets for our clients '), ('5', 'slug', '0', 'en_us', ''), ('2', 'field', '14', 'en_us', ' ryan halls kickass test blog '), ('2', 'field', '15', 'en_us', ' this is a blog about nothing its main use is to prove that i can use craftand don t write shit code some of this code is pretty shitty though '), ('2', 'field', '16', 'en_us', ' blog back '), ('6', 'name', '0', 'en_us', ' blogpost '), ('6', 'slug', '0', 'en_us', ' blogpost '), ('6', 'title', '0', 'en_us', ' blogpost '), ('4', 'field', '20', 'en_us', ' blogpost another test '), ('7', 'name', '0', 'en_us', ' another test '), ('7', 'slug', '0', 'en_us', ' another test '), ('7', 'title', '0', 'en_us', ' another test '), ('8', 'filename', '0', 'en_us', ' me jpg '), ('8', 'extension', '0', 'en_us', ' jpg '), ('8', 'kind', '0', 'en_us', ' image '), ('8', 'slug', '0', 'en_us', ' me '), ('8', 'title', '0', 'en_us', ' me '), ('9', 'filename', '0', 'en_us', ' ryan png '), ('9', 'extension', '0', 'en_us', ' png '), ('9', 'kind', '0', 'en_us', ' image '), ('9', 'slug', '0', 'en_us', ' ryan '), ('9', 'title', '0', 'en_us', ' ryan '), ('10', 'field', '18', 'en_us', ' designing an exceptional beer experience '), ('10', 'field', '19', 'en_us', ' this is another test post '), ('10', 'field', '3', 'en_us', ' following our design on tap event we chatted with <NAME> and bruce kehe from hopworks urban brewery about branding beer '), ('10', 'field', '12', 'en_us', ' following our design on tap event we chatted with <NAME> and bruce kehe from hopworks urban brewery about branding beer '), ('10', 'field', '13', 'en_us', ' 2 '), ('10', 'field', '20', 'en_us', ' blogpost '), ('10', 'field', '2', 'en_us', ''), ('10', 'field', '17', 'en_us', ' logos 04 '), ('10', 'field', '16', 'en_us', ''), ('10', 'slug', '0', 'en_us', ' another test post '), ('10', 'title', '0', 'en_us', ' designing an exceptional beer experience '), ('11', 'field', '6', 'en_us', ' following our design on tap event we chatted with <NAME> and bruce kehe from hopworks urban brewery about branding beer '), ('11', 'slug', '0', 'en_us', ''), ('12', 'filename', '0', 'en_us', ' blog back jpg '), ('12', 'extension', '0', 'en_us', ' jpg '), ('12', 'kind', '0', 'en_us', ' image '), ('12', 'slug', '0', 'en_us', ' blog back '), ('12', 'title', '0', 'en_us', ' blog back '), ('13', 'filename', '0', 'en_us', ' logos 04 png '), ('13', 'extension', '0', 'en_us', ' png '), ('13', 'kind', '0', 'en_us', ' image '), ('13', 'slug', '0', 'en_us', ' logos 04 '), ('13', 'title', '0', 'en_us', ' logos 04 '), ('14', 'filename', '0', 'en_us', ' static assets with amazon s3 jpg '), ('14', 'extension', '0', 'en_us', ' jpg '), ('14', 'kind', '0', 'en_us', ' image '), ('14', 'slug', '0', 'en_us', ' static assets with amazon s3 '), ('14', 'title', '0', 'en_us', ' static assets with amazon s3 '), ('16', 'filename', '0', 'en_us', ' static assets with amazon s3 1 jpg '), ('16', 'extension', '0', 'en_us', ' jpg '), ('16', 'kind', '0', 'en_us', ' image '), ('16', 'slug', '0', 'en_us', ' static assets with amazon s3 1 '), ('16', 'title', '0', 'en_us', ' static assets with amazon s3 1 '), ('17', 'field', '4', 'en_us', ' storage '), ('17', 'slug', '0', 'en_us', ''), ('18', 'field', '6', 'en_us', ' one of the largest pieces of overhead involved in hosting a website is data storage and media assets make up a large part of that storing gigabytes of photography video and graphics on your web host can make it difficult to move backup or deploy your site because it makes it heavier figuratively offloading your media files to the cloud allows you to keep your web server thin while maintaining a central repository to manage your digital assets '), ('18', 'slug', '0', 'en_us', ''), ('19', 'field', '4', 'en_us', ' speed '), ('19', 'slug', '0', 'en_us', ''), ('20', 'field', '6', 'en_us', ' amazon s servers are low latency and have incredibly fast transfer speeds which allow for quick rendering with the added bonuses of using a content delivery network cdn such as caching and utilizing parallel downloads you ll notice a huge difference in how fast your files show up on your page '), ('20', 'slug', '0', 'en_us', ''), ('21', 'field', '7', 'en_us', ' ryan '), ('21', 'field', '8', 'en_us', ' that s me '), ('21', 'slug', '0', 'en_us', ''), ('22', 'field', '10', 'en_us', ' this is a quote in a quote block to call attention to a specific phrases or sentence '), ('22', 'field', '11', 'en_us', ' ryan hall '), ('22', 'slug', '0', 'en_us', ''), ('23', 'field', '18', 'en_us', ' hosting static files with s3 cloudfront '), ('23', 'field', '19', 'en_us', ' this is something '), ('23', 'field', '3', 'en_us', ' the modern web is rich with photography iconography and video but image heavy sites can result in poor performance for the end user part of providing an elegant user experience is asset optimization and we use amazon s s3 and cloudfront to do the heavy lifting there are a few reasons why we choose to use s3 to host static assets for our clients storage one of the largest pieces of overhead involved in hosting a website is data storage and media assets make up a large part of that storing gigabytes of photography video and graphics on your web host can make it difficult to move backup or deploy your site because it makes it heavier figuratively offloading your media files to the cloud allows you to keep your web server thin while maintaining a central repository to manage your digital assets that s me ryan speed amazon s servers are low latency and have incredibly fast transfer speeds which allow for quick rendering with the added bonuses of using a content delivery network cdn such as caching and utilizing parallel downloads you ll notice a huge difference in how fast your files show up on your page ryan hall this is a quote in a quote block to call attention to a specific phrases or sentence '), ('23', 'field', '12', 'en_us', ' the modern web is rich with photography iconography and video but image heavy sites can result in poor performance for the end user '), ('23', 'field', '13', 'en_us', ' 1 '), ('23', 'field', '20', 'en_us', ' blogpost another test '), ('23', 'field', '2', 'en_us', ''), ('23', 'field', '17', 'en_us', ' static assets with amazon s3 '); INSERT INTO `craft_searchindex` (`elementId`, `attribute`, `fieldId`, `locale`, `keywords`) VALUES ('23', 'field', '16', 'en_us', ' static assets with amazon s3 1 '), ('23', 'slug', '0', 'en_us', ' the first post 1 '), ('23', 'title', '0', 'en_us', ' hosting static files with s3 cloudfront '), ('24', 'field', '6', 'en_us', ' the modern web is rich with photography iconography and video but image heavy sites can result in poor performance for the end user part of providing an elegant user experience is asset optimization and we use amazon s s3 and cloudfront to do the heavy lifting there are a few reasons why we choose to use s3 to host static assets for our clients '), ('24', 'slug', '0', 'en_us', ''), ('25', 'field', '4', 'en_us', ' storage '), ('25', 'slug', '0', 'en_us', ''), ('26', 'field', '6', 'en_us', ' one of the largest pieces of overhead involved in hosting a website is data storage and media assets make up a large part of that storing gigabytes of photography video and graphics on your web host can make it difficult to move backup or deploy your site because it makes it heavier figuratively offloading your media files to the cloud allows you to keep your web server thin while maintaining a central repository to manage your digital assets '), ('26', 'slug', '0', 'en_us', ''), ('27', 'field', '7', 'en_us', ' ryan '), ('27', 'field', '8', 'en_us', ' that s me '), ('27', 'slug', '0', 'en_us', ''), ('28', 'field', '4', 'en_us', ' speed '), ('28', 'slug', '0', 'en_us', ''), ('29', 'field', '6', 'en_us', ' amazon s servers are low latency and have incredibly fast transfer speeds which allow for quick rendering with the added bonuses of using a content delivery network cdn such as caching and utilizing parallel downloads you ll notice a huge difference in how fast your files show up on your page '), ('29', 'slug', '0', 'en_us', ''), ('30', 'field', '10', 'en_us', ' this is a quote in a quote block to call attention to a specific phrases or sentence '), ('30', 'field', '11', 'en_us', ' ryan hall '), ('30', 'slug', '0', 'en_us', ''), ('31', 'field', '18', 'en_us', ' designing an exceptional beer experience '), ('31', 'field', '19', 'en_us', ' this is another test post '), ('31', 'field', '3', 'en_us', ' following our design on tap event we chatted with eric steen and bruce kehe from hopworks urban brewery about branding beer '), ('31', 'field', '12', 'en_us', ' following our design on tap event we chatted with eric steen and bruce kehe from hopworks urban brewery about branding beer '), ('31', 'field', '13', 'en_us', ' 2 '), ('31', 'field', '20', 'en_us', ' blogpost '), ('31', 'field', '2', 'en_us', ''), ('31', 'field', '17', 'en_us', ' logos 04 '), ('31', 'field', '16', 'en_us', ''), ('31', 'slug', '0', 'en_us', ' another test post 1 '), ('31', 'title', '0', 'en_us', ' designing an exceptional beer experience '), ('32', 'field', '6', 'en_us', ' following our design on tap event we chatted with <NAME> and bruce kehe from hopworks urban brewery about branding beer '), ('32', 'slug', '0', 'en_us', ''), ('33', 'field', '7', 'en_us', ' logos 04 '), ('33', 'field', '8', 'en_us', ''), ('33', 'slug', '0', 'en_us', ''); DROP TABLE IF EXISTS `craft_sections`; -- -- Schema for table `craft_sections` -- CREATE TABLE `craft_sections` ( `id` int(11) NOT NULL AUTO_INCREMENT, `structureId` int(11) DEFAULT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `handle` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `type` enum('single','channel','structure') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'channel', `hasUrls` tinyint(1) unsigned NOT NULL DEFAULT '1', `template` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL, `enableVersioning` tinyint(1) unsigned NOT NULL DEFAULT '0', `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_sections_name_unq_idx` (`name`), UNIQUE KEY `craft_sections_handle_unq_idx` (`handle`), KEY `craft_sections_structureId_fk` (`structureId`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_sections` -- INSERT INTO `craft_sections` (`id`, `structureId`, `name`, `handle`, `type`, `hasUrls`, `template`, `enableVersioning`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', NULL, 'Homepage', 'homepage', 'single', '1', 'index', '1', '2017-02-21 21:10:19', '2017-02-21 21:10:19', 'ee370083-71ad-45ef-83a9-2e5fa51fa908'), ('2', NULL, 'News', 'news', 'channel', '1', 'news/_entry', '1', '2017-02-21 21:10:19', '2017-02-21 21:10:19', '515123a5-e467-436e-88de-02c45e243040'), ('3', NULL, 'Blog', 'blog', 'channel', '1', 'blog/_entry', '1', '2017-02-21 21:44:56', '2017-02-21 21:44:56', '437ddfa2-e5c1-4b34-8c97-45f95541c52c'); DROP TABLE IF EXISTS `craft_sections_i18n`; -- -- Schema for table `craft_sections_i18n` -- CREATE TABLE `craft_sections_i18n` ( `id` int(11) NOT NULL AUTO_INCREMENT, `sectionId` int(11) NOT NULL, `locale` char(12) COLLATE utf8_unicode_ci NOT NULL, `enabledByDefault` tinyint(1) unsigned NOT NULL DEFAULT '1', `urlFormat` text COLLATE utf8_unicode_ci, `nestedUrlFormat` text COLLATE utf8_unicode_ci, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_sections_i18n_sectionId_locale_unq_idx` (`sectionId`,`locale`), KEY `craft_sections_i18n_locale_fk` (`locale`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_sections_i18n` -- INSERT INTO `craft_sections_i18n` (`id`, `sectionId`, `locale`, `enabledByDefault`, `urlFormat`, `nestedUrlFormat`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', '1', 'en_us', '1', '__home__', NULL, '2017-02-21 21:10:19', '2017-02-21 21:10:19', '6bce0f67-b540-4088-8a50-bc5907eead0e'), ('2', '2', 'en_us', '1', 'news/{postDate.year}/{slug}', NULL, '2017-02-21 21:10:19', '2017-02-21 21:10:19', '7cd7b3e2-b902-4d36-815c-806e8b5a66ba'), ('3', '3', 'en_us', '1', 'blog/{slug}', NULL, '2017-02-21 21:44:56', '2017-02-21 21:44:56', '2b246638-782d-4ed8-abdd-3ed4a0df6b17'); DROP TABLE IF EXISTS `craft_sessions`; -- -- Schema for table `craft_sessions` -- CREATE TABLE `craft_sessions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) NOT NULL, `token` char(100) COLLATE utf8_unicode_ci NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `craft_sessions_uid_idx` (`uid`), KEY `craft_sessions_token_idx` (`token`), KEY `craft_sessions_dateUpdated_idx` (`dateUpdated`), KEY `craft_sessions_userId_fk` (`userId`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_shunnedmessages`; -- -- Schema for table `craft_shunnedmessages` -- CREATE TABLE `craft_shunnedmessages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) NOT NULL, `message` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `expiryDate` datetime DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_shunnedmessages_userId_message_unq_idx` (`userId`,`message`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_structureelements`; -- -- Schema for table `craft_structureelements` -- CREATE TABLE `craft_structureelements` ( `id` int(11) NOT NULL AUTO_INCREMENT, `structureId` int(11) NOT NULL, `elementId` int(11) DEFAULT NULL, `root` int(11) unsigned DEFAULT NULL, `lft` int(11) unsigned NOT NULL, `rgt` int(11) unsigned NOT NULL, `level` smallint(6) unsigned NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_structureelements_structureId_elementId_unq_idx` (`structureId`,`elementId`), KEY `craft_structureelements_root_idx` (`root`), KEY `craft_structureelements_lft_idx` (`lft`), KEY `craft_structureelements_rgt_idx` (`rgt`), KEY `craft_structureelements_level_idx` (`level`), KEY `craft_structureelements_elementId_fk` (`elementId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_structures`; -- -- Schema for table `craft_structures` -- CREATE TABLE `craft_structures` ( `id` int(11) NOT NULL AUTO_INCREMENT, `maxLevels` smallint(6) unsigned DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_systemsettings`; -- -- Schema for table `craft_systemsettings` -- CREATE TABLE `craft_systemsettings` ( `id` int(11) NOT NULL AUTO_INCREMENT, `category` varchar(15) COLLATE utf8_unicode_ci NOT NULL, `settings` text COLLATE utf8_unicode_ci, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_systemsettings_category_unq_idx` (`category`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_systemsettings` -- INSERT INTO `craft_systemsettings` (`id`, `category`, `settings`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', 'email', '{\"protocol\":\"php\",\"emailAddress\":\"<EMAIL>\",\"senderName\":\"<NAME>\"}', '2017-02-21 21:10:19', '2017-02-21 21:10:19', 'a630d3c5-9fe2-45f9-89d0-4d12f937efe3'); DROP TABLE IF EXISTS `craft_taggroups`; -- -- Schema for table `craft_taggroups` -- CREATE TABLE `craft_taggroups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `handle` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `fieldLayoutId` int(10) DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_taggroups_name_unq_idx` (`name`), UNIQUE KEY `craft_taggroups_handle_unq_idx` (`handle`), KEY `craft_taggroups_fieldLayoutId_fk` (`fieldLayoutId`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_taggroups` -- INSERT INTO `craft_taggroups` (`id`, `name`, `handle`, `fieldLayoutId`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', 'Default', 'default', '1', '2017-02-21 21:10:19', '2017-02-21 21:10:19', '994e7833-5854-4b42-b289-3080cb91be71'), ('2', 'blog tags', 'blogTags', '28', '2017-02-22 15:02:04', '2017-02-22 15:02:04', 'f13a5425-b496-43b8-bc79-25b15a007457'); DROP TABLE IF EXISTS `craft_tags`; -- -- Schema for table `craft_tags` -- CREATE TABLE `craft_tags` ( `id` int(11) NOT NULL, `groupId` int(11) NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `craft_tags_groupId_fk` (`groupId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_tags` -- INSERT INTO `craft_tags` (`id`, `groupId`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('6', '2', '2017-02-22 15:04:46', '2017-02-22 15:04:46', '0d8b70be-0607-4983-8c03-eee3c47c7e6e'), ('7', '2', '2017-02-22 15:07:42', '2017-02-22 15:07:42', '5743caba-a339-4e07-ae27-22a140353f3b'); DROP TABLE IF EXISTS `craft_tasks`; -- -- Schema for table `craft_tasks` -- CREATE TABLE `craft_tasks` ( `id` int(11) NOT NULL AUTO_INCREMENT, `root` int(11) unsigned DEFAULT NULL, `lft` int(11) unsigned NOT NULL, `rgt` int(11) unsigned NOT NULL, `level` smallint(6) unsigned NOT NULL, `currentStep` int(11) unsigned DEFAULT NULL, `totalSteps` int(11) unsigned DEFAULT NULL, `status` enum('pending','error','running') COLLATE utf8_unicode_ci DEFAULT NULL, `type` varchar(150) COLLATE utf8_unicode_ci NOT NULL, `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `settings` mediumtext COLLATE utf8_unicode_ci, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `craft_tasks_root_idx` (`root`), KEY `craft_tasks_lft_idx` (`lft`), KEY `craft_tasks_rgt_idx` (`rgt`), KEY `craft_tasks_level_idx` (`level`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_templatecachecriteria`; -- -- Schema for table `craft_templatecachecriteria` -- CREATE TABLE `craft_templatecachecriteria` ( `id` int(11) NOT NULL AUTO_INCREMENT, `cacheId` int(11) NOT NULL, `type` varchar(150) COLLATE utf8_unicode_ci NOT NULL, `criteria` text COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `craft_templatecachecriteria_cacheId_fk` (`cacheId`), KEY `craft_templatecachecriteria_type_idx` (`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_templatecacheelements`; -- -- Schema for table `craft_templatecacheelements` -- CREATE TABLE `craft_templatecacheelements` ( `cacheId` int(11) NOT NULL, `elementId` int(11) NOT NULL, KEY `craft_templatecacheelements_cacheId_fk` (`cacheId`), KEY `craft_templatecacheelements_elementId_fk` (`elementId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_templatecaches`; -- -- Schema for table `craft_templatecaches` -- CREATE TABLE `craft_templatecaches` ( `id` int(11) NOT NULL AUTO_INCREMENT, `cacheKey` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `locale` char(12) COLLATE utf8_unicode_ci NOT NULL, `path` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `expiryDate` datetime NOT NULL, `body` mediumtext COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `craft_templatecaches_expiryDate_cacheKey_locale_path_idx` (`expiryDate`,`cacheKey`,`locale`,`path`), KEY `craft_templatecaches_locale_fk` (`locale`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_tokens`; -- -- Schema for table `craft_tokens` -- CREATE TABLE `craft_tokens` ( `id` int(11) NOT NULL AUTO_INCREMENT, `token` char(32) COLLATE utf8_unicode_ci NOT NULL, `route` text COLLATE utf8_unicode_ci, `usageLimit` tinyint(3) unsigned DEFAULT NULL, `usageCount` tinyint(3) unsigned DEFAULT NULL, `expiryDate` datetime NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_tokens_token_unq_idx` (`token`), KEY `craft_tokens_expiryDate_idx` (`expiryDate`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_usergroups`; -- -- Schema for table `craft_usergroups` -- CREATE TABLE `craft_usergroups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `handle` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_usergroups_name_unq_idx` (`name`), UNIQUE KEY `craft_usergroups_handle_unq_idx` (`handle`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_usergroups_users`; -- -- Schema for table `craft_usergroups_users` -- CREATE TABLE `craft_usergroups_users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `groupId` int(11) NOT NULL, `userId` int(11) NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_usergroups_users_groupId_userId_unq_idx` (`groupId`,`userId`), KEY `craft_usergroups_users_userId_fk` (`userId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_userpermissions`; -- -- Schema for table `craft_userpermissions` -- CREATE TABLE `craft_userpermissions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_userpermissions_name_unq_idx` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_userpermissions_usergroups`; -- -- Schema for table `craft_userpermissions_usergroups` -- CREATE TABLE `craft_userpermissions_usergroups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `permissionId` int(11) NOT NULL, `groupId` int(11) NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_userpermissions_usergroups_permissionId_groupId_unq_idx` (`permissionId`,`groupId`), KEY `craft_userpermissions_usergroups_groupId_fk` (`groupId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_userpermissions_users`; -- -- Schema for table `craft_userpermissions_users` -- CREATE TABLE `craft_userpermissions_users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `permissionId` int(11) NOT NULL, `userId` int(11) NOT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_userpermissions_users_permissionId_userId_unq_idx` (`permissionId`,`userId`), KEY `craft_userpermissions_users_userId_fk` (`userId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `craft_users`; -- -- Schema for table `craft_users` -- CREATE TABLE `craft_users` ( `id` int(11) NOT NULL, `username` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `photo` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `firstName` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `lastName` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password` char(255) COLLATE utf8_unicode_ci DEFAULT NULL, `preferredLocale` char(12) COLLATE utf8_unicode_ci DEFAULT NULL, `weekStartDay` tinyint(1) unsigned NOT NULL DEFAULT '0', `admin` tinyint(1) unsigned NOT NULL DEFAULT '0', `client` tinyint(1) unsigned NOT NULL DEFAULT '0', `locked` tinyint(1) unsigned NOT NULL DEFAULT '0', `suspended` tinyint(1) unsigned NOT NULL DEFAULT '0', `pending` tinyint(1) unsigned NOT NULL DEFAULT '0', `archived` tinyint(1) unsigned NOT NULL DEFAULT '0', `lastLoginDate` datetime DEFAULT NULL, `lastLoginAttemptIPAddress` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, `invalidLoginWindowStart` datetime DEFAULT NULL, `invalidLoginCount` tinyint(4) unsigned DEFAULT NULL, `lastInvalidLoginDate` datetime DEFAULT NULL, `lockoutDate` datetime DEFAULT NULL, `verificationCode` char(100) COLLATE utf8_unicode_ci DEFAULT NULL, `verificationCodeIssuedDate` datetime DEFAULT NULL, `unverifiedEmail` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `passwordResetRequired` tinyint(1) unsigned NOT NULL DEFAULT '0', `lastPasswordChangeDate` datetime DEFAULT NULL, `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `craft_users_username_unq_idx` (`username`), UNIQUE KEY `craft_users_email_unq_idx` (`email`), KEY `craft_users_verificationCode_idx` (`verificationCode`), KEY `craft_users_uid_idx` (`uid`), KEY `craft_users_preferredLocale_fk` (`preferredLocale`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_users` -- INSERT INTO `craft_users` (`id`, `username`, `photo`, `firstName`, `lastName`, `email`, `password`, `preferredLocale`, `weekStartDay`, `admin`, `client`, `locked`, `suspended`, `pending`, `archived`, `lastLoginDate`, `lastLoginAttemptIPAddress`, `invalidLoginWindowStart`, `invalidLoginCount`, `lastInvalidLoginDate`, `lockoutDate`, `verificationCode`, `verificationCodeIssuedDate`, `unverifiedEmail`, `passwordResetRequired`, `lastPasswordChangeDate`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', 'RyanHall', 'ryan.png', 'Ryan', 'Hall', '<EMAIL>', <PASSWORD>', NULL, '0', '1', '0', '0', '0', '0', '0', '2017-02-23 21:18:02', '::1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', '2017-02-21 21:10:15', '2017-02-21 21:10:15', '2017-02-23 21:18:02', '87f401a2-762d-4eee-9dd6-8f125e868892'); DROP TABLE IF EXISTS `craft_widgets`; -- -- Schema for table `craft_widgets` -- CREATE TABLE `craft_widgets` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) NOT NULL, `type` varchar(150) COLLATE utf8_unicode_ci NOT NULL, `sortOrder` smallint(6) unsigned DEFAULT NULL, `colspan` tinyint(4) unsigned DEFAULT NULL, `settings` text COLLATE utf8_unicode_ci, `enabled` tinyint(1) unsigned NOT NULL DEFAULT '1', `dateCreated` datetime NOT NULL, `dateUpdated` datetime NOT NULL, `uid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `craft_widgets_userId_fk` (`userId`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Data for table `craft_widgets` -- INSERT INTO `craft_widgets` (`id`, `userId`, `type`, `sortOrder`, `colspan`, `settings`, `enabled`, `dateCreated`, `dateUpdated`, `uid`) VALUES ('1', '1', 'RecentEntries', '1', NULL, NULL, '1', '2017-02-21 21:10:28', '2017-02-21 21:10:28', '58c72cc6-1ce3-41ef-b4b8-fe634371fb96'), ('2', '1', 'GetHelp', '2', NULL, NULL, '1', '2017-02-21 21:10:28', '2017-02-21 21:10:28', '01dd6417-28d4-4d5e-878b-1a53d6ef523d'), ('3', '1', 'Updates', '3', NULL, NULL, '1', '2017-02-21 21:10:28', '2017-02-21 21:10:28', '927f539b-01f0-4d15-8f22-a1cd1756ef04'), ('4', '1', 'Feed', '4', NULL, '{\"url\":\"https:\\/\\/craftcms.com\\/news.rss\",\"title\":\"Craft News\"}', '1', '2017-02-21 21:10:28', '2017-02-21 21:10:28', '9dedb027-4e23-402d-b39d-1872bc4079f3'); -- -- Constraints for tables -- -- -- Constraints for table `craft_assetfiles` -- ALTER TABLE `craft_assetfiles` ADD CONSTRAINT `craft_assetfiles_folderId_fk` FOREIGN KEY (`folderId`) REFERENCES `craft_assetfolders` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_assetfiles_id_fk` FOREIGN KEY (`id`) REFERENCES `craft_elements` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_assetfiles_sourceId_fk` FOREIGN KEY (`sourceId`) REFERENCES `craft_assetsources` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_assetfolders` -- ALTER TABLE `craft_assetfolders` ADD CONSTRAINT `craft_assetfolders_parentId_fk` FOREIGN KEY (`parentId`) REFERENCES `craft_assetfolders` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_assetfolders_sourceId_fk` FOREIGN KEY (`sourceId`) REFERENCES `craft_assetsources` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_assetindexdata` -- ALTER TABLE `craft_assetindexdata` ADD CONSTRAINT `craft_assetindexdata_sourceId_fk` FOREIGN KEY (`sourceId`) REFERENCES `craft_assetsources` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_assetsources` -- ALTER TABLE `craft_assetsources` ADD CONSTRAINT `craft_assetsources_fieldLayoutId_fk` FOREIGN KEY (`fieldLayoutId`) REFERENCES `craft_fieldlayouts` (`id`) ON DELETE SET NULL; -- -- Constraints for table `craft_categories` -- ALTER TABLE `craft_categories` ADD CONSTRAINT `craft_categories_groupId_fk` FOREIGN KEY (`groupId`) REFERENCES `craft_categorygroups` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_categories_id_fk` FOREIGN KEY (`id`) REFERENCES `craft_elements` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_categorygroups` -- ALTER TABLE `craft_categorygroups` ADD CONSTRAINT `craft_categorygroups_fieldLayoutId_fk` FOREIGN KEY (`fieldLayoutId`) REFERENCES `craft_fieldlayouts` (`id`) ON DELETE SET NULL, ADD CONSTRAINT `craft_categorygroups_structureId_fk` FOREIGN KEY (`structureId`) REFERENCES `craft_structures` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_categorygroups_i18n` -- ALTER TABLE `craft_categorygroups_i18n` ADD CONSTRAINT `craft_categorygroups_i18n_groupId_fk` FOREIGN KEY (`groupId`) REFERENCES `craft_categorygroups` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_categorygroups_i18n_locale_fk` FOREIGN KEY (`locale`) REFERENCES `craft_locales` (`locale`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `craft_content` -- ALTER TABLE `craft_content` ADD CONSTRAINT `craft_content_elementId_fk` FOREIGN KEY (`elementId`) REFERENCES `craft_elements` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_content_locale_fk` FOREIGN KEY (`locale`) REFERENCES `craft_locales` (`locale`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `craft_elements_i18n` -- ALTER TABLE `craft_elements_i18n` ADD CONSTRAINT `craft_elements_i18n_elementId_fk` FOREIGN KEY (`elementId`) REFERENCES `craft_elements` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_elements_i18n_locale_fk` FOREIGN KEY (`locale`) REFERENCES `craft_locales` (`locale`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `craft_emailmessages` -- ALTER TABLE `craft_emailmessages` ADD CONSTRAINT `craft_emailmessages_locale_fk` FOREIGN KEY (`locale`) REFERENCES `craft_locales` (`locale`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `craft_entries` -- ALTER TABLE `craft_entries` ADD CONSTRAINT `craft_entries_authorId_fk` FOREIGN KEY (`authorId`) REFERENCES `craft_users` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_entries_id_fk` FOREIGN KEY (`id`) REFERENCES `craft_elements` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_entries_sectionId_fk` FOREIGN KEY (`sectionId`) REFERENCES `craft_sections` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_entries_typeId_fk` FOREIGN KEY (`typeId`) REFERENCES `craft_entrytypes` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_entrydrafts` -- ALTER TABLE `craft_entrydrafts` ADD CONSTRAINT `craft_entrydrafts_creatorId_fk` FOREIGN KEY (`creatorId`) REFERENCES `craft_users` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_entrydrafts_entryId_fk` FOREIGN KEY (`entryId`) REFERENCES `craft_entries` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_entrydrafts_locale_fk` FOREIGN KEY (`locale`) REFERENCES `craft_locales` (`locale`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `craft_entrydrafts_sectionId_fk` FOREIGN KEY (`sectionId`) REFERENCES `craft_sections` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_entrytypes` -- ALTER TABLE `craft_entrytypes` ADD CONSTRAINT `craft_entrytypes_fieldLayoutId_fk` FOREIGN KEY (`fieldLayoutId`) REFERENCES `craft_fieldlayouts` (`id`) ON DELETE SET NULL, ADD CONSTRAINT `craft_entrytypes_sectionId_fk` FOREIGN KEY (`sectionId`) REFERENCES `craft_sections` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_entryversions` -- ALTER TABLE `craft_entryversions` ADD CONSTRAINT `craft_entryversions_creatorId_fk` FOREIGN KEY (`creatorId`) REFERENCES `craft_users` (`id`) ON DELETE SET NULL, ADD CONSTRAINT `craft_entryversions_entryId_fk` FOREIGN KEY (`entryId`) REFERENCES `craft_entries` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_entryversions_locale_fk` FOREIGN KEY (`locale`) REFERENCES `craft_locales` (`locale`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `craft_entryversions_sectionId_fk` FOREIGN KEY (`sectionId`) REFERENCES `craft_sections` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_fieldlayoutfields` -- ALTER TABLE `craft_fieldlayoutfields` ADD CONSTRAINT `craft_fieldlayoutfields_fieldId_fk` FOREIGN KEY (`fieldId`) REFERENCES `craft_fields` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_fieldlayoutfields_layoutId_fk` FOREIGN KEY (`layoutId`) REFERENCES `craft_fieldlayouts` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_fieldlayoutfields_tabId_fk` FOREIGN KEY (`tabId`) REFERENCES `craft_fieldlayouttabs` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_fieldlayouttabs` -- ALTER TABLE `craft_fieldlayouttabs` ADD CONSTRAINT `craft_fieldlayouttabs_layoutId_fk` FOREIGN KEY (`layoutId`) REFERENCES `craft_fieldlayouts` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_fields` -- ALTER TABLE `craft_fields` ADD CONSTRAINT `craft_fields_groupId_fk` FOREIGN KEY (`groupId`) REFERENCES `craft_fieldgroups` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_globalsets` -- ALTER TABLE `craft_globalsets` ADD CONSTRAINT `craft_globalsets_fieldLayoutId_fk` FOREIGN KEY (`fieldLayoutId`) REFERENCES `craft_fieldlayouts` (`id`) ON DELETE SET NULL, ADD CONSTRAINT `craft_globalsets_id_fk` FOREIGN KEY (`id`) REFERENCES `craft_elements` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_matrixblocks` -- ALTER TABLE `craft_matrixblocks` ADD CONSTRAINT `craft_matrixblocks_fieldId_fk` FOREIGN KEY (`fieldId`) REFERENCES `craft_fields` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_matrixblocks_id_fk` FOREIGN KEY (`id`) REFERENCES `craft_elements` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_matrixblocks_ownerId_fk` FOREIGN KEY (`ownerId`) REFERENCES `craft_elements` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_matrixblocks_ownerLocale_fk` FOREIGN KEY (`ownerLocale`) REFERENCES `craft_locales` (`locale`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `craft_matrixblocks_typeId_fk` FOREIGN KEY (`typeId`) REFERENCES `craft_matrixblocktypes` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_matrixblocktypes` -- ALTER TABLE `craft_matrixblocktypes` ADD CONSTRAINT `craft_matrixblocktypes_fieldId_fk` FOREIGN KEY (`fieldId`) REFERENCES `craft_fields` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_matrixblocktypes_fieldLayoutId_fk` FOREIGN KEY (`fieldLayoutId`) REFERENCES `craft_fieldlayouts` (`id`) ON DELETE SET NULL; -- -- Constraints for table `craft_matrixcontent_bloglayout` -- ALTER TABLE `craft_matrixcontent_bloglayout` ADD CONSTRAINT `craft_matrixcontent_bloglayout_elementId_fk` FOREIGN KEY (`elementId`) REFERENCES `craft_elements` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_matrixcontent_bloglayout_locale_fk` FOREIGN KEY (`locale`) REFERENCES `craft_locales` (`locale`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `craft_migrations` -- ALTER TABLE `craft_migrations` ADD CONSTRAINT `craft_migrations_pluginId_fk` FOREIGN KEY (`pluginId`) REFERENCES `craft_plugins` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_relations` -- ALTER TABLE `craft_relations` ADD CONSTRAINT `craft_relations_fieldId_fk` FOREIGN KEY (`fieldId`) REFERENCES `craft_fields` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_relations_sourceId_fk` FOREIGN KEY (`sourceId`) REFERENCES `craft_elements` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_relations_sourceLocale_fk` FOREIGN KEY (`sourceLocale`) REFERENCES `craft_locales` (`locale`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `craft_relations_targetId_fk` FOREIGN KEY (`targetId`) REFERENCES `craft_elements` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_routes` -- ALTER TABLE `craft_routes` ADD CONSTRAINT `craft_routes_locale_fk` FOREIGN KEY (`locale`) REFERENCES `craft_locales` (`locale`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `craft_sections` -- ALTER TABLE `craft_sections` ADD CONSTRAINT `craft_sections_structureId_fk` FOREIGN KEY (`structureId`) REFERENCES `craft_structures` (`id`) ON DELETE SET NULL; -- -- Constraints for table `craft_sections_i18n` -- ALTER TABLE `craft_sections_i18n` ADD CONSTRAINT `craft_sections_i18n_locale_fk` FOREIGN KEY (`locale`) REFERENCES `craft_locales` (`locale`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `craft_sections_i18n_sectionId_fk` FOREIGN KEY (`sectionId`) REFERENCES `craft_sections` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_sessions` -- ALTER TABLE `craft_sessions` ADD CONSTRAINT `craft_sessions_userId_fk` FOREIGN KEY (`userId`) REFERENCES `craft_users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_shunnedmessages` -- ALTER TABLE `craft_shunnedmessages` ADD CONSTRAINT `craft_shunnedmessages_userId_fk` FOREIGN KEY (`userId`) REFERENCES `craft_users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_structureelements` -- ALTER TABLE `craft_structureelements` ADD CONSTRAINT `craft_structureelements_elementId_fk` FOREIGN KEY (`elementId`) REFERENCES `craft_elements` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_structureelements_structureId_fk` FOREIGN KEY (`structureId`) REFERENCES `craft_structures` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_taggroups` -- ALTER TABLE `craft_taggroups` ADD CONSTRAINT `craft_taggroups_fieldLayoutId_fk` FOREIGN KEY (`fieldLayoutId`) REFERENCES `craft_fieldlayouts` (`id`) ON DELETE SET NULL; -- -- Constraints for table `craft_tags` -- ALTER TABLE `craft_tags` ADD CONSTRAINT `craft_tags_groupId_fk` FOREIGN KEY (`groupId`) REFERENCES `craft_taggroups` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_tags_id_fk` FOREIGN KEY (`id`) REFERENCES `craft_elements` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_templatecachecriteria` -- ALTER TABLE `craft_templatecachecriteria` ADD CONSTRAINT `craft_templatecachecriteria_cacheId_fk` FOREIGN KEY (`cacheId`) REFERENCES `craft_templatecaches` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_templatecacheelements` -- ALTER TABLE `craft_templatecacheelements` ADD CONSTRAINT `craft_templatecacheelements_cacheId_fk` FOREIGN KEY (`cacheId`) REFERENCES `craft_templatecaches` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_templatecacheelements_elementId_fk` FOREIGN KEY (`elementId`) REFERENCES `craft_elements` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_templatecaches` -- ALTER TABLE `craft_templatecaches` ADD CONSTRAINT `craft_templatecaches_locale_fk` FOREIGN KEY (`locale`) REFERENCES `craft_locales` (`locale`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `craft_usergroups_users` -- ALTER TABLE `craft_usergroups_users` ADD CONSTRAINT `craft_usergroups_users_groupId_fk` FOREIGN KEY (`groupId`) REFERENCES `craft_usergroups` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_usergroups_users_userId_fk` FOREIGN KEY (`userId`) REFERENCES `craft_users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_userpermissions_usergroups` -- ALTER TABLE `craft_userpermissions_usergroups` ADD CONSTRAINT `craft_userpermissions_usergroups_groupId_fk` FOREIGN KEY (`groupId`) REFERENCES `craft_usergroups` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_userpermissions_usergroups_permissionId_fk` FOREIGN KEY (`permissionId`) REFERENCES `craft_userpermissions` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_userpermissions_users` -- ALTER TABLE `craft_userpermissions_users` ADD CONSTRAINT `craft_userpermissions_users_permissionId_fk` FOREIGN KEY (`permissionId`) REFERENCES `craft_userpermissions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_userpermissions_users_userId_fk` FOREIGN KEY (`userId`) REFERENCES `craft_users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `craft_users` -- ALTER TABLE `craft_users` ADD CONSTRAINT `craft_users_id_fk` FOREIGN KEY (`id`) REFERENCES `craft_elements` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `craft_users_preferredLocale_fk` FOREIGN KEY (`preferredLocale`) REFERENCES `craft_locales` (`locale`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Constraints for table `craft_widgets` -- ALTER TABLE `craft_widgets` ADD CONSTRAINT `craft_widgets_userId_fk` FOREIGN KEY (`userId`) REFERENCES `craft_users` (`id`) ON DELETE CASCADE; SET FOREIGN_KEY_CHECKS = 1;
<reponame>doni27/sales-penjualan -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.3.11 -- Generation Time: Jun 24, 2020 at 06:56 AM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 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: `sales` -- -- -------------------------------------------------------- -- -- Table structure for table `barang` -- CREATE TABLE `barang` ( `id_barang` int(11) NOT NULL, `nama` varchar(225) NOT NULL, `harga` int(11) NOT NULL, `stok` int(11) NOT NULL, `no_stok` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `barang` -- INSERT INTO `barang` (`id_barang`, `nama`, `harga`, `stok`, `no_stok`) VALUES (17, 'tas laptoppppp', 180000, 97, 3), (18, 'jam tangan', 100000, 188, 0), (19, 'mouse laptop', 30000, 187, 0), (20, 'sepatu', 12000, 7, 0); -- -------------------------------------------------------- -- -- Table structure for table `keranjang` -- CREATE TABLE `keranjang` ( `id_keranjang` int(11) NOT NULL, `no_transaksi` int(11) NOT NULL, `no_barang` int(11) NOT NULL, `nama_barang` varchar(225) NOT NULL, `harga` int(11) NOT NULL, `jumlah` int(11) NOT NULL, `total` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `keranjang` -- INSERT INTO `keranjang` (`id_keranjang`, `no_transaksi`, `no_barang`, `nama_barang`, `harga`, `jumlah`, `total`) VALUES (5, 7, 9, 'cabe', 12000, 10, 120000), (6, 10, 8, 'laptop', 12000, 1, 12000), (7, 14, 17, 'tas laptop', 180000, 1, 180000), (8, 14, 16, 'Buku', 6000, 2, 12000), (9, 14, 13, '<NAME>', 200000, 2, 400000), (10, 14, 15, 'pulpen', 4000, 1, 4000), (12, 13, 16, 'Buku', 6000, 1, 6000), (13, 13, 13, '<NAME>', 200000, 1, 200000), (14, 12, 13, '<NAME>', 200000, 2, 400000), (16, 16, 17, 'tas laptoppppp', 180000, 5, 900000), (19, 17, 18, 'jam tangan', 100, 12, 1200), (20, 17, 19, 'mouse laptop', 30000, 13, 390000), (21, 17, 17, 'tas laptoppppp', 180000, 3, 540000), (22, 17, 20, 'sepatu', 12000, 3, 36000); -- -------------------------------------------------------- -- -- Table structure for table `stok` -- CREATE TABLE `stok` ( `id_stok` int(11) NOT NULL, `nama_barang` varchar(225) NOT NULL, `harga_barang` int(11) NOT NULL, `jumlah_barang` varchar(225) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `stok` -- INSERT INTO `stok` (`id_stok`, `nama_barang`, `harga_barang`, `jumlah_barang`) VALUES (3, 'tas laptop', 120000, '12'), (4, 'Buku', 10000, '100'), (5, 'pulpen', 12, '3000'), (6, 'Sepatu', 120000, '3'), (7, 'Kipas angin', 140000, '13'); -- -------------------------------------------------------- -- -- Table structure for table `transaksi` -- CREATE TABLE `transaksi` ( `id_transaksi` int(11) NOT NULL, `jumlah_barang` int(11) NOT NULL, `id_barang` int(11) NOT NULL, `kode_transaksi` varchar(225) NOT NULL, `tgl` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `transaksi` -- INSERT INTO `transaksi` (`id_transaksi`, `jumlah_barang`, `id_barang`, `kode_transaksi`, `tgl`) VALUES (17, 0, 0, 'nota-37243705', '2020-06-24 03:52:39'), (18, 0, 0, 'nota-51245104', '2020-06-24 04:44:53'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id_user` int(11) NOT NULL, `nama` varchar(225) NOT NULL, `email` varchar(225) NOT NULL, `username` varchar(32) NOT NULL, `password` varchar(225) NOT NULL, `akses_level` varchar(225) NOT NULL, `tanggal_upload` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id_user`, `nama`, `email`, `username`, `password`, `akses_level`, `tanggal_upload`) VALUES (5, 'admin', '<EMAIL>', 'administrator', '<PASSWORD>', 'Admin', '2020-04-11 14:12:08'), (6, 'hoscloud', '<EMAIL>', 'hoscloud', '<PASSWORD>', 'Admin', '2020-06-24 04:50:40'); -- -- Indexes for dumped tables -- -- -- Indexes for table `barang` -- ALTER TABLE `barang` ADD PRIMARY KEY (`id_barang`); -- -- Indexes for table `keranjang` -- ALTER TABLE `keranjang` ADD PRIMARY KEY (`id_keranjang`); -- -- Indexes for table `stok` -- ALTER TABLE `stok` ADD PRIMARY KEY (`id_stok`); -- -- Indexes for table `transaksi` -- ALTER TABLE `transaksi` ADD PRIMARY KEY (`id_transaksi`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id_user`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `barang` -- ALTER TABLE `barang` MODIFY `id_barang` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT for table `keranjang` -- ALTER TABLE `keranjang` MODIFY `id_keranjang` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; -- -- AUTO_INCREMENT for table `stok` -- ALTER TABLE `stok` MODIFY `id_stok` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `transaksi` -- ALTER TABLE `transaksi` MODIFY `id_transaksi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; 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 -- AlterTable ALTER TABLE "quotes" ADD COLUMN "published" BOOLEAN NOT NULL DEFAULT false;
-- Defines the `views.resto_place_types` view in Taste prod. -- This query extracts "PlaceType" scores for different restaurants based on the -- frequency of appearance of text in Yelp reviews. The column indices match -- the number for the firestore.PlaceType enum. i.e. column index 1 (2nd column) -- corresponds to enum-value 1: PlaceType#american_restaurant. SELECT place, (COUNTIF(LOWER(text) LIKE '% american%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% coffee%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% fast food%') + COUNTIF(LOWER(text) LIKE '% fastfood%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% italian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% breakfast%') + COUNTIF(LOWER(text) LIKE '% brunch')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% bar%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% pizza%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% seafood%') + COUNTIF(LOWER(text) LIKE '% mussels%') + COUNTIF(LOWER(text) LIKE '% crab%') + COUNTIF(LOWER(text) LIKE '% octopus%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% bakery%') + COUNTIF(LOWER(text) LIKE '% croissant%') + COUNTIF(LOWER(text) LIKE '% pastry%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% new american%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% sushi%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% mexican%') + COUNTIF(LOWER(text) LIKE '% tacos %') + COUNTIF(LOWER(text) LIKE '% burritos %')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% bar and grill%') + COUNTIF(LOWER(text) LIKE '% bar & grill%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% ice cream%') + COUNTIF(LOWER(text) LIKE '% icecream%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% cafe%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% burger%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% family style%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% pub%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% asian fusion%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% sandwich%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% deli %') + COUNTIF(LOWER(text) LIKE '% delicatessen%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% caterer%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% diner%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% dessert%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% vegetarian%') + COUNTIF(LOWER(text) LIKE '% vegan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% barbecue%') + COUNTIF(LOWER(text) LIKE '% bbq%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% steakhouse%') + COUNTIF(LOWER(text) LIKE '% steak %') + COUNTIF(LOWER(text) LIKE '% steaks %')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% chinese%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% cocktail%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% thai%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% wine bar%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% french%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% korean%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% smoothie%') + COUNTIF(LOWER(text) LIKE '% juice bar%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% european%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% mediterranean%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% chicken joint%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% brewery%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% sports bar%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% japanese%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% health food%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% tea room%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% donut%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% ramen%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% food and beverage%') + COUNTIF(LOWER(text) LIKE '% food & beverage%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% bubble tea%') + COUNTIF(LOWER(text) LIKE '% milk tea%') + COUNTIF(LOWER(text) LIKE '% boba%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% food truck%') + COUNTIF(LOWER(text) LIKE '% foodtruck%') + COUNTIF(LOWER(text) LIKE '% food-truck%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% tapas%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% gastropub%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% tex mex%') + COUNTIF(LOWER(text) LIKE '% tex-mex%') + COUNTIF(LOWER(text) LIKE '% texmex%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% southern%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% pho%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% spanish%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% food stand%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% grocery store%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% greek%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% farmers market%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% cantonese%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% beer %')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% vietnamese%') + COUNTIF(LOWER(text) LIKE '% banh mi%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% middle eastern%') + COUNTIF(LOWER(text) LIKE '% middle-eastern%') + COUNTIF(LOWER(text) LIKE '% middleeastern%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% bagel%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% cupcake%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% indian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% dim sum%') + COUNTIF(LOWER(text) LIKE '% dimsum%') + COUNTIF(LOWER(text) LIKE '% dumpling%') + COUNTIF(LOWER(text) LIKE '% momos %')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% winery%') + COUNTIF(LOWER(text) LIKE '% vineyard%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% hawaiian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% poke %')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% beer garden%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% asian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% frozen yogurt%') + COUNTIF(LOWER(text) LIKE '% froyo%') + COUNTIF(LOWER(text) LIKE '% fro-yo%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% soup%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% latin american%') + COUNTIF(LOWER(text) LIKE '% latinamerican%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '%cajun%') + COUNTIF(LOWER(text) LIKE '%creole%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% hot dog%') + COUNTIF(LOWER(text) LIKE '% hotdog%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% halal%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% taiwanese%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% candy store%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% creperie%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% salad bar%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% filipino%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% buffet%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% caribbean%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% gelato%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% cafeteria%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% peruvian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% southwestern%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% comfort food%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% cuban%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% gluten free%') + COUNTIF(LOWER(text) LIKE '% gluten-free%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% modern european%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% british%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% irish%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% noodle house%') + COUNTIF(LOWER(text) LIKE '% noodle soup%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% hot pot%') + COUNTIF(LOWER(text) LIKE '% hotpot%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '%fish and chips%') + COUNTIF(LOWER(text) LIKE '%fish n chips%') + COUNTIF(LOWER(text) LIKE '%fish & chips%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% kosher%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% soul food%') + COUNTIF(LOWER(text) LIKE '% soulfood%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% lebanese%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% chocolate%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% portuguese%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% shaved ice%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% brazilian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% szechuan%') + COUNTIF(LOWER(text) LIKE '% sichuan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% wine %') + COUNTIF(LOWER(text) LIKE '% spirits%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% turkish%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% german%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% argentinian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% dive bar%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% taco%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% australian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% irish pub%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '%raw food%') + COUNTIF(LOWER(text) LIKE '%live food%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% south indian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% persian%') + COUNTIF(LOWER(text) LIKE '% iranian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% fondue%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '%bed and breakfast%') + COUNTIF(LOWER(text) LIKE '%bed & breakfast%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% continental%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% whisky bar%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% teppanyaki%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% kebab%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% colombian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% pakistani%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% malaysian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% sake bar%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% indonesian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% belgian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% scandinavian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% theme%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% jamaican%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% shabu shabu%') + COUNTIF(LOWER(text) LIKE '% shabushabu%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% canadian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% hong kong%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% venezuelan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% israeli%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% north indian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% ethiopian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% singaporean%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% moroccan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% speakeasy%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% puerto rican%') + COUNTIF(LOWER(text) LIKE '% puertorican%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% neapolitan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% polynesian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% bavarian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% afghan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% shanghainese%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% udon%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% tuscan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% yakitori%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% tiki %')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% yakiniku%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% roman%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% nepalese%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% salvadoran%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% russian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% african%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% cambodian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% mongolian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% eastern european%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% abruzzo%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% bunsik%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% himalayan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% basque%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% tonkatsu%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% sicilian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% burmese%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% south african%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% soba%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% polish%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% austrian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% dominican%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% bossam%') + COUNTIF(LOWER(text) LIKE '% jokbal%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% drive in%') + COUNTIF(LOWER(text) LIKE '% drive-in%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% swiss%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% hungarian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% arabian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% czech%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% okonomiyaki%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% indo chinese%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% armenian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% hunan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% tempura%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% venetian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% unagi%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% georgian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% donburi%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% kaiseki%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% beijing%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% sri lankan%') + COUNTIF(LOWER(text) LIKE '% srilankan%') + COUNTIF(LOWER(text) LIKE '% sri-lankan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% scottish%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% indian chinese%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% takoyaki%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% syrian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% balinese%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% uzbek%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% emilia romagna%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% egyptian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% chilean%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% yoshoku%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% javanese%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% catalan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% zhejiang%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% yunnan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% sukiyaki%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% gukbap%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% costa rican%') + COUNTIF(LOWER(text) LIKE '% costarican%') + COUNTIF(LOWER(text) LIKE '% costa-rican%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% bengali%') + COUNTIF(LOWER(text) LIKE '% bangladeshi%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% punjabi%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% molecular gastronomy%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% bolivian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% samgyetang%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% nabe%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% haitian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% guatemalan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% ecuadorian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% wagashi%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% ukrainian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% shaanxi%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% sardinian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% nicaraguan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% xinjiang%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% uruguayan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% shanxi%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% senegalese%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% kushikatsu%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% janguh%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% gujarati%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% trinidadian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% romanian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% paraguayan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% panamanian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% padangnese%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% nigerian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% monjayaki%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% marche%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% macanese%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% jiangsu%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% henan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% umbrian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% tamilian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% swabian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% parsi%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% molise%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% lombard%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% kurdish%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% kerala%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% huaiyang%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% honduran%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% hainan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% goan%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% dongbei%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% dhaba%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% calabrian%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% belizean%')) / COUNT(*), (COUNTIF(LOWER(text) LIKE '% acehnese%')) / COUNT(*) FROM `firestore_export.yelp_reviews` GROUP BY 1;
<reponame>rahul-ojha-07/Quiz-App create user 'quizapp'@'localhost' identified by 'quizapp'; grant all privileges on *.* to 'quizapp'@'localhost'; create database `quiz-app`; use `quiz-app`; drop table if exists questions; create table questions( id int primary key auto_increment, question text not null , opt_1 text not null , opt_2 text not null , opt_3 text not null , opt_4 text not null , correct_option text not null ); insert into questions(question, opt_1, opt_2, opt_3, opt_4, correct_option) values ('Which is used to find and fix bugs in the Java programs.?','JVM','JDB','JDK','JRE','JDB'), ('What is the return type of the hashCode() method in the Object class?','int','Object','long','void','int'), ('Which package contains the Random class?','java.util package','java.lang package','java.awt package','java.io package','java.util package'), ('An interface with no fields or methods is known as?','Runnable Interface','Abstract Interface','Marker Interface','CharSequence Interface','Marker Interface'), ('In which memory a String is stored, when we create a string using new operator?','Stack','String memory','Random storage space','Heap memory','Heap memory'), ('Which of the following is a marker interface?','Runnable interface','Remote interface','Readable interface','Result interface','Remote interface' ), ('Which keyword is used for accessing the features of a package?','import','package','extends','export','import'), ('In java, jar stands for?','Java Archive Runner','Java Archive','Java Application Resource','Java Application Runner','Java Archive'), ('Which of the following is a mutable class in java?','java.lang.StringBuilder','java.lang.Short','java.lang.Byte','java.lang.String','java.lang.StringBuilder'), ('Which of the following option leads to the portability and security of Java?','Bytecode is executed by JVM','The applet makes the Java code secure and portable','Use of exception handling','Dynamic binding between objects','Bytecode is executed by JVM');
<reponame>saurbkumar/sqlCrud CREATE DATABASE IF NOT EXISTS `test`; GRANT ALL ON `test`.* TO 'admin' @'%';
<gh_stars>10-100 SELECT food.description , food.foodGroup , food.servings[0].description AS servingDescription , food.servings[0].weightInGrams AS servingWeight FROM food WHERE 1=1 AND food.foodGroup = "Fruits and Fruit Juices" AND food.servings[0].description = "cup" ORDER BY food.servings[0].weightInGrams DESC
CREATE OR REPLACE VIEW VIEW_JC_LANC_IMP_NFS_FUNC AS SELECT B.CODFILIAL, B.RECNUM, B.VPAGO, COALESCE (B.VPAGOBORDERO, B.VALOR) AS VALOR, B.DTCOMPETENCIA, B.DTPAGTO, B.DTCOMPENSACAO, B.CODFILIALBANCO, B.CODBANCO, B.CODCONTABILBANCO, B.CODCONTA, B.GRUPOCONTA, B.CODFORNEC, '' AS CODCONTABCLIENTE, B.TIPOPARCEIRO, B.NUMTRANS, 'I' AS TIPO, ( CASE WHEN B.GRUPOCONTA NOT IN ( 510, 515 ) THEN ('NFS ' || B.NUMNOTA || ' - ' || B.HISTORICO2 || ' - ' || F.FORNECEDOR) ELSE (B.RECNUM || ' - ' || B.HISTORICO2 || ' - ' || B.HISTORICO) END ) AS HISTORICO FROM VIEW_JC_LANC_BASE B INNER JOIN VIEW_JC_IMPOSTO_NFSE I ON B.RECNUM = I.RECNUM LEFT JOIN PCFORNEC F ON B.CODFORNEC = F.CODFORNEC; /
-- file:privileges.sql ln:348 expect:true UPDATE atest5 SET one = 1
<filename>init.sql CREATE TABLE account_transactions ( id SERIAL, account_id int NOT NULL, ts TIMESTAMP NOT NULL, place VARCHAR, amount FLOAT NOT NULL, verified BOOLEAN NOT NULL, type INT NOT NULL, hash VARCHAR NOT NULL, PRIMARY KEY (id) ); CREATE TABLE users ( id SERIAL, username varchar NOT NULL, hashed_pass varchar NOT NULL, email VARCHAR NOT NULL, UNIQUE(username), PRIMARY KEY (id) ); CREATE TABLE accounts ( id SERIAL, user_id int NOT NULL, username VARCHAR NOT NULL, password VARCHAR NOT NULL, message VARCHAR NOT NULL, answer VARCHAR NOT NULL, balance float DEFAULT 0.0, timezone VARCHAR NOT NULL, tracked BOOLEAN NOT NULL, PRIMARY KEY (id) );
<gh_stars>0 CREATE TABLE `phpbb_characters` ( `character_ID` int(4) NOT NULL auto_increment, `character_user_ID` mediumint(8) NOT NULL default '0', `character_main` tinyint(2) NOT NULL default '0', `character_cname` varchar(75) NOT NULL default 1, `character_cserv` tinyint(4) NOT NULL default 1, `character_sanrank` tinyint(4) NOT NULL default 1, `character_basrank` tinyint(4) NOT NULL default 1, `character_winrank` tinyint(4) NOT NULL default 1, `character_mercrank` tinyint(4) NOT NULL default 1, `character_nation` tinyint(4) NOT NULL default 1, `character_race` tinyint(4) NOT NULL default 1, `character_mjob` tinyint(4) NOT NULL default 1, `character_sjob` tinyint(4) NOT NULL default 0, `character_mcraft` tinyint(4) NOT NULL default 0, `character_scraft` tinyint(4) NOT NULL default 0, `character_warlvl` tinyint(4) NOT NULL default 1, `character_mnklvl` tinyint(4) NOT NULL default 1, `character_whmlvl` tinyint(4) NOT NULL default 1, `character_blmlvl` tinyint(4) NOT NULL default 1, `character_rdmlvl` tinyint(4) NOT NULL default 1, `character_thflvl` tinyint(4) NOT NULL default 1, `character_pldlvl` tinyint(4) NOT NULL default 0, `character_drklvl` tinyint(4) NOT NULL default 0, `character_bstlvl` tinyint(4) NOT NULL default 0, `character_rnglvl` tinyint(4) NOT NULL default 0, `character_brdlvl` tinyint(4) NOT NULL default 0, `character_smnlvl` tinyint(4) NOT NULL default 0, `character_samlvl` tinyint(4) NOT NULL default 0, `character_ninlvl` tinyint(4) NOT NULL default 0, `character_drglvl` tinyint(4) NOT NULL default 0, `character_corlvl` tinyint(4) NOT NULL default 0, `character_puplvl` tinyint(4) NOT NULL default 0, `character_blulvl` tinyint(4) NOT NULL default 0, `character_dnclvl` tinyint(4) NOT NULL default 0, `character_schlvl` tinyint(4) NOT NULL default 0, `character_zilart_mission` tinyint(4) NOT NULL default 0, `character_cop_mission` tinyint(4) NOT NULL default 0, `character_toa_mission` tinyint(4) NOT NULL default 0, `character_goddess_mission` tinyint(4) NOT NULL default 0, `character_alchlvl` tinyint(4) NOT NULL default 0, `character_bonelvl` tinyint(4) NOT NULL default 0, `character_clothlvl` tinyint(4) NOT NULL default 0, `character_cooklvl` tinyint(4) NOT NULL default 0, `character_fishlvl` tinyint(4) NOT NULL default 0, `character_goldlvl` tinyint(4) NOT NULL default 0, `character_leatherlvl` tinyint(4) NOT NULL default 0, `character_smithlvl` tinyint(4) NOT NULL default 0, `character_woodlvl` tinyint(4) NOT NULL default 0, `character_npc_mjob_level` tinyint(4) NOT NULL default 0, `character_npc_mjob` tinyint(4) NOT NULL default 1, `character_campaign_rank` tinyint(4) NOT NULL default 0, PRIMARY KEY (`character_ID`) ); INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ( 'allow_ffxi_characters', '1' ); INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ( 'show_topic', '1' ); INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ( 'show_flags', '1' ); INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ( 'show_serv', '1' ); INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ( 'show_synthdata_topic', '1' ); INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ( 'show_expansiondata_topic', '0' ); INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ( 'ffxi_characters_version', '3.0.0' ); ALTER TABLE `phpbb_users` ADD `user_allow_ffxi_char` TINYINT( 2 ) DEFAULT '1' NOT NULL ;
<filename>sql/schema/data_ingest_stage.sql /* 1-ingested - file is recorded to be "in the system", but data not loaded yet 2-loaded - rows have been loaded into the system, no transformations made 3-mapped - rows have been tagged with appropriate metadata, or transformed -- message functions applied and built out 4-queued / contacting - rows have been copied into appropriate contact queue tables -- last chance to cancel contacts 5-complete */ CREATE TABLE `data_ingest_stage` ( `id` INT AUTO_INCREMENT, `name` VARCHAR(80) NOT NULL DEFAULT '', `description` VARCHAR(80) NOT NULL DEFAULT '', `updated_at` DATETIME NOT NULL DEFAULT NOW(), `created_at` DATETIME NOT NULL DEFAULT NOW(), PRIMARY KEY (`id`) ) ENGINE=INNODB;
<gh_stars>0 insert into code_category_values (code_category_id, concept_dbid) SELECT distinct 6, s.dbid-- , s.id, s.name, p2.id, p2.name, i.id, i.name, p.id, p.name, c.id, c.name FROM concept c -- Source SNOMED concept JOIN concept p ON p.id = 'SN_116680003' -- "Is A" relationship (child of code) JOIN concept_tct t ON t.target = c.dbid AND t.property = p.dbid -- All children, grand children, etc JOIN concept i ON i.dbid = t.source -- Intermediary (just for info) JOIN concept p2 ON p2.id IN ('SN_116680003', 'is_equivalent_to') -- "Is A" and "Equivalent" relationships (self and legacy maps) JOIN concept_property_object cpo ON cpo.value = t.source AND cpo.property = p2.dbid -- All related JOIN concept s ON s.dbid = cpo.dbid -- Concepts WHERE c.id in ( 'SN_1002311000006110', 'SN_1002571000006110', 'SN_1002581000006110', 'SN_1002591000006100', 'SN_1003281000006100', 'SN_1003291000006100', 'SN_1003521000006100', 'SN_1003531000006100', 'SN_1003541000006110', 'SN_1003551000006110', 'SN_1003561000006110', 'SN_1003571000006100', 'SN_1003581000006100', 'SN_1003651000006110', 'SN_1003661000006110', 'SN_1003671000006100', 'SN_1003681000006100', 'SN_1003691000006100', 'SN_1003701000006100', 'SN_1003711000006100', 'SN_1003721000006110', 'SN_1003731000006110', 'SN_1003741000006100', 'SN_1003751000006100', 'SN_1003761000006100', 'SN_1003771000006110', 'SN_1003781000006100', 'SN_1003791000006110', 'SN_1003801000006110', 'SN_1003811000006110', 'SN_1003821000006100', 'SN_1003831000006100', 'SN_1003841000006110', 'SN_1003851000006110', 'SN_1003861000006100', 'SN_1003871000006100', 'SN_1003881000006100', 'SN_1003891000006100', 'SN_1003901000006100', 'SN_1003911000006100', 'SN_1003921000006110', 'SN_1003931000006110', 'SN_1003941000006100', 'SN_1004221000006100', 'SN_1004231000006100', 'SN_1004241000006110', 'SN_1005841000006110', 'SN_1005851000006110', 'SN_1006181000006100', 'SN_1006191000006100', 'SN_1006201000006100', 'SN_1006211000006100', 'SN_1006221000006110', 'SN_1006231000006110', 'SN_1006241000006100', 'SN_1006251000006100', 'SN_1006261000006100', 'SN_1006271000006110', 'SN_1006281000006100', 'SN_1006291000006110', 'SN_1006301000006110', 'SN_1006311000006110', 'SN_1006321000006100', 'SN_1006331000006100', 'SN_1006341000006110', 'SN_1006351000006110', 'SN_1006361000006100', 'SN_1006371000006100', 'SN_1006381000006100', 'SN_1006391000006100', 'SN_1006401000006100', 'SN_1006411000006100', 'SN_1006421000006100', 'SN_1006431000006110', 'SN_1006441000006100', 'SN_1006451000006100', 'SN_1006461000006100', 'SN_1006471000006110', 'SN_1006481000006110', 'SN_1006491000006110', 'SN_1006501000006100', 'SN_1006511000006100', 'SN_1006521000006110', 'SN_1006531000006110', 'SN_1006541000006100', 'SN_1006711000006110', 'SN_1006721000006100', 'SN_1006741000006110', 'SN_1006751000006110', 'SN_1006771000006100', 'SN_1006811000006100', 'SN_1006831000006100', 'SN_1006841000006100', 'SN_1006851000006100', 'SN_1006861000006100', 'SN_1006871000006110', 'SN_1006881000006110', 'SN_1006891000006110', 'SN_1006911000006110', 'SN_1006921000006100', 'SN_1006931000006100', 'SN_1006941000006100', 'SN_1006951000006110', 'SN_1006961000006110', 'SN_1006971000006100', 'SN_1006981000006100', 'SN_1006991000006100', 'SN_1007001000006110', 'SN_1007011000006110', 'SN_1007021000006100', 'SN_1007031000006100', 'SN_1007041000006110', 'SN_1007051000006110', 'SN_1007061000006100', 'SN_1007071000006100', 'SN_1007081000006100', 'SN_1007101000006110', 'SN_1007111000006110', 'SN_1007121000006100', 'SN_1007131000006100', 'SN_1007691000006110', 'SN_1007701000006110', 'SN_1007711000006100', 'SN_1007721000006100', 'SN_1007731000006100', 'SN_1007741000006110', 'SN_1007751000006110', 'SN_1007761000006110', 'SN_1007771000006100', 'SN_1007781000006100', 'SN_1007791000006100', 'SN_1007801000006100', 'SN_1007811000006100', 'SN_1007821000006110', 'SN_1007831000006110', 'SN_1007841000006100', 'SN_1007851000006100', 'SN_1007861000006100', 'SN_1007871000006100', 'SN_1007881000006110', 'SN_1007891000006110', 'SN_1007901000006100', 'SN_1007911000006110', 'SN_1007921000006100', 'SN_1007931000006100', 'SN_1007941000006110', 'SN_1007951000006110', 'SN_1007961000006110', 'SN_1007971000006100', 'SN_1007981000006100', 'SN_1007991000006100', 'SN_1008001000006110', 'SN_1008011000006110', 'SN_1008021000006100', 'SN_1008031000006100', 'SN_1008041000006100', 'SN_1008051000006110', 'SN_1008541000006100', 'SN_1008561000006100', 'SN_1008571000006110', 'SN_1008581000006110', 'SN_1008591000006110', 'SN_1008601000006100' ) union SELECT distinct 6, i.dbid FROM concept c -- Source SNOMED concept JOIN concept p ON p.id = 'SN_116680003' -- "Is A" relationship (child of code) JOIN concept_tct t ON t.target = c.dbid AND t.property = p.dbid -- All children, grand children, etc JOIN concept i ON i.dbid = t.source -- Concepts WHERE c.id IN ( 'SN_1002311000006110', 'SN_1002571000006110', 'SN_1002581000006110', 'SN_1002591000006100', 'SN_1003281000006100', 'SN_1003291000006100', 'SN_1003521000006100', 'SN_1003531000006100', 'SN_1003541000006110', 'SN_1003551000006110', 'SN_1003561000006110', 'SN_1003571000006100', 'SN_1003581000006100', 'SN_1003651000006110', 'SN_1003661000006110', 'SN_1003671000006100', 'SN_1003681000006100', 'SN_1003691000006100', 'SN_1003701000006100', 'SN_1003711000006100', 'SN_1003721000006110', 'SN_1003731000006110', 'SN_1003741000006100', 'SN_1003751000006100', 'SN_1003761000006100', 'SN_1003771000006110', 'SN_1003781000006100', 'SN_1003791000006110', 'SN_1003801000006110', 'SN_1003811000006110', 'SN_1003821000006100', 'SN_1003831000006100', 'SN_1003841000006110', 'SN_1003851000006110', 'SN_1003861000006100', 'SN_1003871000006100', 'SN_1003881000006100', 'SN_1003891000006100', 'SN_1003901000006100', 'SN_1003911000006100', 'SN_1003921000006110', 'SN_1003931000006110', 'SN_1003941000006100', 'SN_1004221000006100', 'SN_1004231000006100', 'SN_1004241000006110', 'SN_1005841000006110', 'SN_1005851000006110', 'SN_1006181000006100', 'SN_1006191000006100', 'SN_1006201000006100', 'SN_1006211000006100', 'SN_1006221000006110', 'SN_1006231000006110', 'SN_1006241000006100', 'SN_1006251000006100', 'SN_1006261000006100', 'SN_1006271000006110', 'SN_1006281000006100', 'SN_1006291000006110', 'SN_1006301000006110', 'SN_1006311000006110', 'SN_1006321000006100', 'SN_1006331000006100', 'SN_1006341000006110', 'SN_1006351000006110', 'SN_1006361000006100', 'SN_1006371000006100', 'SN_1006381000006100', 'SN_1006391000006100', 'SN_1006401000006100', 'SN_1006411000006100', 'SN_1006421000006100', 'SN_1006431000006110', 'SN_1006441000006100', 'SN_1006451000006100', 'SN_1006461000006100', 'SN_1006471000006110', 'SN_1006481000006110', 'SN_1006491000006110', 'SN_1006501000006100', 'SN_1006511000006100', 'SN_1006521000006110', 'SN_1006531000006110', 'SN_1006541000006100', 'SN_1006711000006110', 'SN_1006721000006100', 'SN_1006741000006110', 'SN_1006751000006110', 'SN_1006771000006100', 'SN_1006811000006100', 'SN_1006831000006100', 'SN_1006841000006100', 'SN_1006851000006100', 'SN_1006861000006100', 'SN_1006871000006110', 'SN_1006881000006110', 'SN_1006891000006110', 'SN_1006911000006110', 'SN_1006921000006100', 'SN_1006931000006100', 'SN_1006941000006100', 'SN_1006951000006110', 'SN_1006961000006110', 'SN_1006971000006100', 'SN_1006981000006100', 'SN_1006991000006100', 'SN_1007001000006110', 'SN_1007011000006110', 'SN_1007021000006100', 'SN_1007031000006100', 'SN_1007041000006110', 'SN_1007051000006110', 'SN_1007061000006100', 'SN_1007071000006100', 'SN_1007081000006100', 'SN_1007101000006110', 'SN_1007111000006110', 'SN_1007121000006100', 'SN_1007131000006100', 'SN_1007691000006110', 'SN_1007701000006110', 'SN_1007711000006100', 'SN_1007721000006100', 'SN_1007731000006100', 'SN_1007741000006110', 'SN_1007751000006110', 'SN_1007761000006110', 'SN_1007771000006100', 'SN_1007781000006100', 'SN_1007791000006100', 'SN_1007801000006100', 'SN_1007811000006100', 'SN_1007821000006110', 'SN_1007831000006110', 'SN_1007841000006100', 'SN_1007851000006100', 'SN_1007861000006100', 'SN_1007871000006100', 'SN_1007881000006110', 'SN_1007891000006110', 'SN_1007901000006100', 'SN_1007911000006110', 'SN_1007921000006100', 'SN_1007931000006100', 'SN_1007941000006110', 'SN_1007951000006110', 'SN_1007961000006110', 'SN_1007971000006100', 'SN_1007981000006100', 'SN_1007991000006100', 'SN_1008001000006110', 'SN_1008011000006110', 'SN_1008021000006100', 'SN_1008031000006100', 'SN_1008041000006100', 'SN_1008051000006110', 'SN_1008541000006100', 'SN_1008561000006100', 'SN_1008571000006110', 'SN_1008581000006110', 'SN_1008591000006110', 'SN_1008601000006100' );
create table tab_new ( id number(15) ) parallel 4;
ALTER TABLE ONLY "public"."file" ALTER COLUMN "ext" SET DEFAULT 'tsx';
<filename>grupo35bd2.sql -- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 09-12-2019 a las 22:08:05 -- Versión del servidor: 5.5.24-log -- Versión de PHP: 5.4.3 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 utf8 */; -- -- Base de datos: `grupo35` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `administracion_orquesta` -- CREATE TABLE IF NOT EXISTS `administracion_orquesta` ( `titulo` varchar(100) DEFAULT NULL, `descripcion` varchar(100) DEFAULT NULL, `mail_contacto` varchar(100) DEFAULT NULL, `sitio_activo` tinyint(1) DEFAULT '1', `elementos_por_pagina` int(11) DEFAULT NULL, `id` int(11) NOT NULL, `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `administracion_orquesta` -- INSERT INTO `administracion_orquesta` (`titulo`, `descripcion`, `mail_contacto`, `sitio_activo`, `elementos_por_pagina`, `id`, `created`) VALUES ('Orquesta Escuela de Berisso', 'Buenos Aires', '<EMAIL>', 1, 2, 1, '2019-10-27 05:53:58'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `asistencia_taller_ciclo_lectivo_dia` -- CREATE TABLE IF NOT EXISTS `asistencia_taller_ciclo_lectivo_dia` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ciclo_lectivo_taller_horario` int(11) DEFAULT NULL, `estudiante_id` int(11) DEFAULT NULL, `dia` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `ciclo_lectivo_taller_horario` (`ciclo_lectivo_taller_horario`), KEY `estudiante_id` (`estudiante_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; -- -- Volcado de datos para la tabla `asistencia_taller_ciclo_lectivo_dia` -- INSERT INTO `asistencia_taller_ciclo_lectivo_dia` (`id`, `ciclo_lectivo_taller_horario`, `estudiante_id`, `dia`) VALUES (1, 42, 3, '2019-12-09 18:59:19'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `barrio` -- CREATE TABLE IF NOT EXISTS `barrio` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nombre` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=26 ; -- -- Volcado de datos para la tabla `barrio` -- INSERT INTO `barrio` (`id`, `nombre`) VALUES (1, '<NAME>'), (2, '<NAME>'), (3, 'Berisso'), (4, '<NAME>'), (5, 'Barrio Obrero'), (6, 'Barrio Bco. Pcia.'), (7, '<NAME>'), (8, '<NAME>'), (9, 'El Carmen'), (10, 'El Labrador'), (11, 'Ensenada'), (12, 'La Hermosura'), (13, 'La PLata'), (14, 'Los Talas'), (15, 'Ringuelet'), (16, 'Tolosa'), (17, '<NAME>'), (18, '<NAME>'), (19, '<NAME>'), (20, '<NAME>'), (21, '<NAME>'), (22, '<NAME>'), (23, '<NAME>'), (24, '<NAME>'), (25, '<NAME>'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `ciclo_lectivo` -- CREATE TABLE IF NOT EXISTS `ciclo_lectivo` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fecha_ini` datetime DEFAULT NULL, `fecha_fin` datetime DEFAULT NULL, `semestre` tinyint(1) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Volcado de datos para la tabla `ciclo_lectivo` -- INSERT INTO `ciclo_lectivo` (`id`, `fecha_ini`, `fecha_fin`, `semestre`) VALUES (1, '2019-11-05 00:00:00', '2019-11-15 00:00:00', 1), (2, '2013-04-02 00:00:00', '2019-02-01 00:00:00', 2), (3, '2019-08-03 00:00:00', '2019-12-02 00:00:00', 2), (4, '2019-06-06 00:00:00', '2019-12-30 00:00:00', 2); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `ciclo_lectivo_taller` -- CREATE TABLE IF NOT EXISTS `ciclo_lectivo_taller` ( `id` int(11) NOT NULL AUTO_INCREMENT, `taller_id` int(11) NOT NULL, `ciclo_lectivo_id` int(11) NOT NULL, `nucleo_id` int(255) DEFAULT NULL, `ciclo_lectivo_taller_horario_id` int(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK_ciclo_lectivo_taller_ciclo_lectivo_id` (`ciclo_lectivo_id`), KEY `FK_ciclo_lectivo_taller_taller_id` (`taller_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=12 ; -- -- Volcado de datos para la tabla `ciclo_lectivo_taller` -- INSERT INTO `ciclo_lectivo_taller` (`id`, `taller_id`, `ciclo_lectivo_id`, `nucleo_id`, `ciclo_lectivo_taller_horario_id`) VALUES (1, 2, 2, 2, 1), (2, 1, 1, 2, 2), (8, 2, 1, NULL, NULL), (9, 2, 3, NULL, NULL), (10, 2, 4, NULL, NULL), (11, 1, 4, 1, NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `ciclo_lectivo_taller_horario` -- CREATE TABLE IF NOT EXISTS `ciclo_lectivo_taller_horario` ( `id` int(255) NOT NULL AUTO_INCREMENT, `ciclo_lectivo_taller_id` int(255) NOT NULL, `horario_id` int(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=43 ; -- -- Volcado de datos para la tabla `ciclo_lectivo_taller_horario` -- INSERT INTO `ciclo_lectivo_taller_horario` (`id`, `ciclo_lectivo_taller_id`, `horario_id`) VALUES (35, 0, 5), (36, 1, 1), (37, 1, 3), (38, 1, 2), (39, 1, 4), (40, 2, 4), (41, 2, 1), (42, 11, 1); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `clase_taller_ciclo_lectivo` -- CREATE TABLE IF NOT EXISTS `clase_taller_ciclo_lectivo` ( `id` int(11) NOT NULL AUTO_INCREMENT, `taller_ciclo_lectivo_id` int(11) DEFAULT NULL, `dia_semana` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `taller_ciclo_lectivo_id` (`taller_ciclo_lectivo_id`), KEY `dia_semana` (`dia_semana`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `dia_semana` -- CREATE TABLE IF NOT EXISTS `dia_semana` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dia` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `docente` -- CREATE TABLE IF NOT EXISTS `docente` ( `id` int(11) NOT NULL AUTO_INCREMENT, `apellido` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `nombre` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `fecha_nac` date NOT NULL, `localidad_id` int(11) NOT NULL, `domicilio` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `genero_id` int(11) NOT NULL, `tipo_doc_id` int(11) NOT NULL, `numero_documento` int(11) NOT NULL, `tel` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `FK_genero_docente_id` (`genero_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=7 ; -- -- Volcado de datos para la tabla `docente` -- INSERT INTO `docente` (`id`, `apellido`, `nombre`, `fecha_nac`, `localidad_id`, `domicilio`, `genero_id`, `tipo_doc_id`, `numero_documento`, `tel`) VALUES (2, 'dvcsd', 'casc', '1999-01-01', 1, 'calle 123', 1, 1, 10011111, ''), (6, 'sandler', 'hola2', '2017-12-01', 1, 'calle 123', 1, 1, 553543, '2216458766'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `docente_responsable_taller` -- CREATE TABLE IF NOT EXISTS `docente_responsable_taller` ( `id` int(11) NOT NULL AUTO_INCREMENT, `docente_id` int(11) DEFAULT NULL, `ciclo_lectivo_taller_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `docente_id` (`docente_id`), KEY `ciclo_lectivo_taller_id` (`ciclo_lectivo_taller_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Volcado de datos para la tabla `docente_responsable_taller` -- INSERT INTO `docente_responsable_taller` (`id`, `docente_id`, `ciclo_lectivo_taller_id`) VALUES (1, 2, 11); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `escuela` -- CREATE TABLE IF NOT EXISTS `escuela` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nombre` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `direccion` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `telefono` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=157 ; -- -- Volcado de datos para la tabla `escuela` -- INSERT INTO `escuela` (`id`, `nombre`, `direccion`, `telefono`) VALUES (1, '502', NULL, NULL), (2, '<NAME>', NULL, NULL), (3, 'Anexa', NULL, NULL), (4, '<NAME>', NULL, NULL), (5, 'Basiliana', NULL, NULL), (6, 'Basiliano', NULL, NULL), (7, '<NAME>', NULL, NULL), (8, 'Canossiano', NULL, NULL), (9, 'Castañeda', NULL, NULL), (10, 'Col. Nacional', NULL, NULL), (11, 'Conquista Cristiana', NULL, NULL), (12, '<NAME> N° 24', NULL, NULL), (13, 'E.E.M.N° 2', NULL, NULL), (14, 'E.M. N°26', NULL, NULL), (15, 'E.P. Municipal N° 2', NULL, NULL), (16, 'EE N° 2', NULL, NULL), (17, 'EEE N° 501', NULL, NULL), (18, 'EEE N°501', NULL, NULL), (19, 'EEM N° 1', NULL, NULL), (20, 'EEM N° 26 L.P', NULL, NULL), (21, 'EEM N°128', NULL, NULL), (22, 'EEM N°2', NULL, NULL), (23, 'EES N° 10', NULL, NULL), (24, 'EES N° 14', NULL, NULL), (25, 'EES N° 4', NULL, NULL), (26, 'EES N° 4 Berisso', NULL, NULL), (27, 'EES N° 4 El Pino', NULL, NULL), (28, 'EEST N° 1 bsso', NULL, NULL), (29, 'EET Nº 1', NULL, NULL), (30, 'EET Nº1', NULL, NULL), (31, 'EGB N°25', NULL, NULL), (32, 'EM N° 2', NULL, NULL), (33, 'EMM N° 3', NULL, NULL), (34, 'EP N° 1 L.P-', NULL, NULL), (35, 'EP N° 11', NULL, NULL), (36, 'EP N° 129', NULL, NULL), (37, 'EP N° 14', NULL, NULL), (38, 'EP N° 15', NULL, NULL), (39, 'EP N° 17', NULL, NULL), (40, 'EP N° 18', NULL, NULL), (41, 'EP N° 19', NULL, NULL), (42, 'EP N° 2', NULL, NULL), (43, 'EP N° 20', NULL, NULL), (44, 'EP N° 22', NULL, NULL), (45, 'EP N° 25', NULL, NULL), (46, 'EP N° 27', NULL, NULL), (47, 'EP N° 3', NULL, NULL), (48, 'EP N° 37 LP', NULL, NULL), (49, 'EP N° 43', NULL, NULL), (50, 'EP N° 45', NULL, NULL), (51, 'EP N° 5', NULL, NULL), (52, 'EP N° 6', NULL, NULL), (53, 'EP N° 65 La Plata', NULL, NULL), (54, 'EP N° 7', NULL, NULL), (55, 'EPB N° 10', NULL, NULL), (56, 'EPB N° 14', NULL, NULL), (57, 'EPB N° 15', NULL, NULL), (58, 'EPB N° 19', NULL, NULL), (59, 'EPB N° 2', NULL, NULL), (60, 'EPB N° 20', NULL, NULL), (61, 'EPB N° 24', NULL, NULL), (62, 'EPB N° 25', NULL, NULL), (63, 'EPB N° 45', NULL, NULL), (64, 'EPB N° 5', NULL, NULL), (65, 'EPB N° 55', NULL, NULL), (66, 'EPB N° 6', NULL, NULL), (67, 'EPB N° 65', NULL, NULL), (68, 'EPB N° 8', NULL, NULL), (69, 'ESB N° 10', NULL, NULL), (70, 'ESB N° 11', NULL, NULL), (71, 'ESB N° 14', NULL, NULL), (72, 'ESB N° 3', NULL, NULL), (73, 'ESB N° 61', NULL, NULL), (74, 'ESB N° 66', NULL, NULL), (75, 'ESB N° 8', NULL, NULL), (76, 'ESB N° 9', NULL, NULL), (77, 'ESC N° 10', NULL, NULL), (78, 'ESC N° 13', NULL, NULL), (79, 'ESC N° 19', NULL, NULL), (80, 'ESC N° 2', NULL, NULL), (81, 'ESC N° 20', NULL, NULL), (82, 'ESC N° 22', NULL, NULL), (83, 'ESC N° 23', NULL, NULL), (84, 'ESC N° 24', NULL, NULL), (85, 'ESC N° 25', NULL, NULL), (86, 'ESC N° 27', NULL, NULL), (87, 'ESC N° 3', NULL, NULL), (88, 'ESC N° 43', NULL, NULL), (89, 'ESC N° 45', NULL, NULL), (90, 'ESC N° 5', NULL, NULL), (91, 'ESC N° 501', NULL, NULL), (92, 'ESC N° 6', NULL, NULL), (93, 'ESC N° 66', NULL, NULL), (94, 'ESC N° 7', NULL, NULL), (95, 'ESC N° 8', NULL, NULL), (96, 'ESC N°11', NULL, NULL), (97, 'ESC N°17', NULL, NULL), (98, 'ESC N°19', NULL, NULL), (99, 'ESC N°3', NULL, NULL), (100, 'ESC N°7', NULL, NULL), (101, 'ESC de Arte', NULL, NULL), (102, 'ESS N° 4', NULL, NULL), (103, 'Enseñanza Media', NULL, NULL), (104, 'Especial N° 502', NULL, NULL), (105, 'Estrada', NULL, NULL), (106, 'FACULTAD', NULL, NULL), (107, 'INDUSTRIAL', NULL, NULL), (108, 'Italiana', NULL, NULL), (109, 'J 904', NULL, NULL), (110, '<NAME>', NULL, NULL), (111, 'Jacarandá', NULL, NULL), (112, '<NAME>', NULL, NULL), (113, 'Jardín N° 903', NULL, NULL), (114, 'Jardín N° 907', NULL, NULL), (115, 'JoaquinV.Gonzalez', NULL, NULL), (116, '<NAME>', NULL, NULL), (117, '<NAME>', NULL, NULL), (118, 'MUNICIOAL 11', NULL, NULL), (119, '<NAME>', NULL, NULL), (120, '<NAME>', NULL, NULL), (121, 'Media 2 España', NULL, NULL), (122, 'Media N 1', NULL, NULL), (123, '<NAME>', NULL, NULL), (124, '<NAME>', NULL, NULL), (125, '<NAME>', NULL, NULL), (126, '<NAME>', NULL, NULL), (127, 'N1 Francisco', NULL, NULL), (128, 'Normal 2', NULL, NULL), (129, 'Normal 3 LP', NULL, NULL), (130, 'Normal n 2', NULL, NULL), (131, 'Ntra Sra Lourdes', NULL, NULL), (132, '<NAME>', NULL, NULL), (133, 'PSICOLOGIA', NULL, NULL), (134, 'Parroquial', NULL, NULL), (135, '<NAME>', NULL, NULL), (136, 'Ped 61', NULL, NULL), (137, 'Pedagogica', NULL, NULL), (138, 'SEC N° 8', NULL, NULL), (139, 'SEC N°17', NULL, NULL), (140, '<NAME>', NULL, NULL), (141, '<NAME>', NULL, NULL), (142, 'Sra de Fátima', NULL, NULL), (143, '<NAME>', NULL, NULL), (144, 'Sta Ro. de Lima', NULL, NULL), (145, 'Sta Rosa', NULL, NULL), (146, 'Sta Rosa Lima', NULL, NULL), (147, 'Sta. R. de Lima', NULL, NULL), (148, 'Sta. Rosa de lima', NULL, NULL), (149, 'Técnica N° 1', NULL, NULL), (150, 'Técnica N° 1 Berisso', NULL, NULL), (151, 'Técnica N° 5', NULL, NULL), (152, 'Técnica N° 7', NULL, NULL), (153, 'UCALP', NULL, NULL), (154, 'UNLP', NULL, NULL), (155, 'UTN', NULL, NULL), (156, 'Universitas', NULL, NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `estudiante` -- CREATE TABLE IF NOT EXISTS `estudiante` ( `id` int(11) NOT NULL AUTO_INCREMENT, `apellido` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `nombre` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `fecha_nacimiento` date NOT NULL, `localidad_id` int(11) NOT NULL, `nivel_id` int(11) NOT NULL, `domicilio` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `genero_id` int(11) NOT NULL, `escuela_id` int(11) NOT NULL, `tipo_doc_id` int(11) NOT NULL, `documento` int(11) NOT NULL, `telefono` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `barrio_id` int(11) NOT NULL, `lugar_de_nacimiento` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `responsable` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `numero_contacto` int(255) NOT NULL, `email_contacto` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `FK_nivel_id` (`nivel_id`), KEY `FK_genero_estudiante_id` (`genero_id`), KEY `FK_escuela_id` (`escuela_id`), KEY `FK_barrio_id` (`barrio_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Volcado de datos para la tabla `estudiante` -- INSERT INTO `estudiante` (`id`, `apellido`, `nombre`, `fecha_nacimiento`, `localidad_id`, `nivel_id`, `domicilio`, `genero_id`, `escuela_id`, `tipo_doc_id`, `documento`, `telefono`, `barrio_id`, `lugar_de_nacimiento`, `responsable`, `numero_contacto`, `email_contacto`) VALUES (2, 'njn', 'scac', '2018-01-01', 1, 4, '<NAME>23', 1, 2, 1, -1, '2216458766', 6, 'La Plata', 'Padre', 0, ''), (3, 'dc', 'cas', '2016-12-31', 1, 1, 'cal<NAME>23', 1, 1, 1, 77744888, '6464464464', 6, 'La Plata', 'Padre', 2147483647, '<EMAIL>'), (4, 'khbkh', 'dcsdc|', '2017-12-31', 1, 7, 'calle 123', 1, 3, 1, 3535, '68686', 6, 'La Plata', 'Madre', 97987999, '<EMAIL>'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `estudiante_ciclo_lectivo_taller` -- CREATE TABLE IF NOT EXISTS `estudiante_ciclo_lectivo_taller` ( `id` int(11) NOT NULL AUTO_INCREMENT, `estudiante_id` int(11) DEFAULT NULL, `ciclo_lectivo_taller_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `estudiante_id` (`estudiante_id`), KEY `ciclo_lectivo_taller_id` (`ciclo_lectivo_taller_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; -- -- Volcado de datos para la tabla `estudiante_ciclo_lectivo_taller` -- INSERT INTO `estudiante_ciclo_lectivo_taller` (`id`, `estudiante_id`, `ciclo_lectivo_taller_id`) VALUES (1, 2, 1), (2, 3, 11), (3, 4, 11); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `estudiante_taller` -- CREATE TABLE IF NOT EXISTS `estudiante_taller` ( `estudiante_id` int(11) NOT NULL, `ciclo_lectivo_id` int(11) NOT NULL, `taller_id` int(11) NOT NULL, PRIMARY KEY (`estudiante_id`,`ciclo_lectivo_id`,`taller_id`), KEY `FK_estudiante_taller_ciclo_lectivo_id` (`ciclo_lectivo_id`), KEY `FK_estudiante_taller_taller_id` (`taller_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `genero` -- CREATE TABLE IF NOT EXISTS `genero` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nombre` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Volcado de datos para la tabla `genero` -- INSERT INTO `genero` (`id`, `nombre`) VALUES (1, 'Masculino'), (2, 'Femenino'), (3, 'Otro'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `horario` -- CREATE TABLE IF NOT EXISTS `horario` ( `id` int(255) NOT NULL AUTO_INCREMENT, `dia` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ; -- -- Volcado de datos para la tabla `horario` -- INSERT INTO `horario` (`id`, `dia`) VALUES (1, 'lunes'), (2, 'martes'), (3, 'miercoles'), (4, 'jueves'), (5, 'viernes'), (6, 'sabado'), (7, 'domingo'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `instrumento` -- CREATE TABLE IF NOT EXISTS `instrumento` ( `numero_inventario` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `nombre` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `tipo_instrumento_id` int(11) NOT NULL, `imagen` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`numero_inventario`), KEY `FK_tipo_instrumento_id` (`tipo_instrumento_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Volcado de datos para la tabla `instrumento` -- INSERT INTO `instrumento` (`numero_inventario`, `nombre`, `tipo_instrumento_id`, `imagen`) VALUES ('ABC123', 'GUITARRA ELECTRICA', 1, '1542113135_776401_1542116070_noticia_normal.jpg'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `issues` -- CREATE TABLE IF NOT EXISTS `issues` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(30) DEFAULT NULL, `description` text, `category_id` int(10) NOT NULL, `status_id` int(10) NOT NULL, PRIMARY KEY (`id`), KEY `category_id` (`category_id`), KEY `status_id` (`status_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ; -- -- Volcado de datos para la tabla `issues` -- INSERT INTO `issues` (`id`, `email`, `description`, `category_id`, `status_id`) VALUES (5, 'aslgo', 'asdas', 1, 1); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `nivel` -- CREATE TABLE IF NOT EXISTS `nivel` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nombre` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=13 ; -- -- Volcado de datos para la tabla `nivel` -- INSERT INTO `nivel` (`id`, `nombre`) VALUES (1, 'I'), (2, 'II'), (3, 'III'), (4, 'IV'), (5, 'V'), (6, 'VI'), (7, 'VII'), (8, 'VIII'), (9, 'IX'), (10, 'X'), (11, 'XI'), (12, 'XII'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `nucleo` -- CREATE TABLE IF NOT EXISTS `nucleo` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nombre` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `direccion` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `telefono` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `latitud` float DEFAULT NULL, `longitud` float DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ; -- -- Volcado de datos para la tabla `nucleo` -- INSERT INTO `nucleo` (`id`, `nombre`, `direccion`, `telefono`, `latitud`, `longitud`) VALUES (1, 'nucleo1', 'calle 123', '4654654654', NULL, NULL), (2, 'nucleo2', 'calle 321', '8854654654', NULL, NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `permiso` -- CREATE TABLE IF NOT EXISTS `permiso` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nombre` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=22 ; -- -- Volcado de datos para la tabla `permiso` -- INSERT INTO `permiso` (`id`, `nombre`) VALUES (1, 'usuario_index'), (2, 'usuario_new'), (3, 'usuario_destroy'), (4, 'usuario_update'), (5, 'usuario_show'), (6, 'configuracion_update'), (7, 'docente_new'), (8, 'docente_index'), (9, 'docente_destroy'), (10, 'docente_update'), (11, 'docente_show'), (12, 'estudiante_index'), (13, 'estudiante_destroy'), (14, 'estudiante_update'), (15, 'estudiante_new'), (16, 'estudiante_show'), (17, 'administracion_new'), (18, 'administracion_index'), (19, 'administracion_show'), (20, 'administracion_update'), (21, 'administracion_destroy'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `preceptor` -- CREATE TABLE IF NOT EXISTS `preceptor` ( `id` int(11) NOT NULL AUTO_INCREMENT, `apellido` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `nombre` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `tel` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `preceptor_nucleo` -- CREATE TABLE IF NOT EXISTS `preceptor_nucleo` ( `preceptor_id` int(11) NOT NULL, `nucleo_id` int(11) NOT NULL, PRIMARY KEY (`preceptor_id`,`nucleo_id`), KEY `FK_nucleo_id` (`nucleo_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `responsable` -- CREATE TABLE IF NOT EXISTS `responsable` ( `id` int(11) NOT NULL AUTO_INCREMENT, `apellido` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `nombre` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `fecha_nac` date NOT NULL, `localidad_id` int(11) NOT NULL, `domicilio` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `genero_id` int(11) NOT NULL, `tipo_doc_id` int(11) NOT NULL, `numero` int(11) NOT NULL, `tel` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `FK_genero_responsable_id` (`genero_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `responsable_estudiante` -- CREATE TABLE IF NOT EXISTS `responsable_estudiante` ( `responsable_id` int(11) NOT NULL, `estudiante_id` int(11) NOT NULL, PRIMARY KEY (`responsable_id`,`estudiante_id`), KEY `FK_estudiante_id` (`estudiante_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `rol` -- CREATE TABLE IF NOT EXISTS `rol` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nombre` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; -- -- Volcado de datos para la tabla `rol` -- INSERT INTO `rol` (`id`, `nombre`) VALUES (1, 'administrador'), (2, 'preceptor'), (3, 'docente'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `rol_tiene_permiso` -- CREATE TABLE IF NOT EXISTS `rol_tiene_permiso` ( `id` int(11) NOT NULL AUTO_INCREMENT, `rol_id` int(11) NOT NULL, `permiso_id` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=25 ; -- -- Volcado de datos para la tabla `rol_tiene_permiso` -- INSERT INTO `rol_tiene_permiso` (`id`, `rol_id`, `permiso_id`) VALUES (1, 1, 1), (3, 1, 3), (4, 1, 4), (5, 1, 5), (6, 1, 6), (7, 1, 2), (8, 1, 12), (9, 1, 13), (10, 1, 14), (11, 1, 15), (12, 1, 16), (13, 1, 17), (14, 1, 18), (15, 1, 19), (16, 1, 20), (17, 1, 21), (18, 1, 7), (19, 1, 8), (20, 1, 9), (21, 1, 10), (22, 1, 11), (23, 3, 8), (24, 3, 11); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `taller` -- CREATE TABLE IF NOT EXISTS `taller` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nombre` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `nombre_corto` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Volcado de datos para la tabla `taller` -- INSERT INTO `taller` (`id`, `nombre`, `nombre_corto`) VALUES (1, 'taller guitarra', 'T_Guitarra'), (2, 'taller violin', 'T_Violin'), (3, 'taller_piano', 'T_Piano'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `tipo_instrumento` -- CREATE TABLE IF NOT EXISTS `tipo_instrumento` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nombre` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Volcado de datos para la tabla `tipo_instrumento` -- INSERT INTO `tipo_instrumento` (`id`, `nombre`) VALUES (1, 'Cuerda'), (2, 'Viento'), (3, 'Percucion'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `activo` tinyint(1) NOT NULL DEFAULT '1', `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `deleted_at` timestamp NULL DEFAULT NULL, `first_name` varchar(255) NOT NULL, `last_name` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ; -- -- Volcado de datos para la tabla `users` -- INSERT INTO `users` (`id`, `email`, `username`, `password`, `activo`, `updated_at`, `deleted_at`, `first_name`, `last_name`) VALUES (1, '<EMAIL>', 'root', 'pbkdf2:sha256:150000$I1H0Bio1$35490d74caa06f9a42f49bc537fb5b7cf28fda9b20969ad45ff40b8<PASSWORD>5', 1, '2019-10-22 00:31:22', NULL, 'root', 'root'), (3, '<EMAIL>', '<EMAIL>', '<EMAIL>', 1, '2019-10-26 19:09:23', NULL, '<EMAIL>', '<EMAIL>'), (7, '<EMAIL>', 'juan', 'pbkdf2:sha256:150000$cXCoGSsB$23a147531a635e73ccc290f1946f78e8f1063f7f5030a5681c4eb84efce9bf61', 1, '2019-10-31 04:56:25', NULL, 'Agustin', '<PASSWORD>'), (8, '<EMAIL>', 'Tomas', 'pbkdf2:sha256:150000$YCw8l3AG$6ad4ba9d3f1c376b72eaeb1c69eecac505ac50ad111d1635f4c4d49dd1e175f5', 1, '2019-10-31 04:57:32', NULL, 'Tomas', 'Sandler'), (9, '<EMAIL>', 'Julian', 'pbkdf2:sha256:150000$cwYhgoxE$3931cfbeb7acfacb5f688fd998c285b392d4589b9132e0ad68affb874169d5fc', 1, '2019-10-31 04:58:09', NULL, 'Julian', 'Villega'), (10, '<EMAIL>', 'Dg', 'fgh', 1, '2019-11-05 00:15:41', NULL, 'Dyy', 'Fgh'), (11, '<EMAIL>', 'pepe123', 'pbkdf2:sha256:150000$RqlVbzsp$abb48f8707382d6d3ccd7db3a3a954357093ca6150d0a45112262fc7e7ebcfc9', 0, '2019-11-11 03:06:14', NULL, 'pepe', 'pepep'), (12, '<EMAIL>', 'pepe321', 'pbkdf2:sha256:150000$iXseDja0$39afc8ac2ca8402a8f5d9bfdbf4df2e29d660ada7b903a2c0dacfa5017d8e149', 1, '2019-11-20 19:28:32', NULL, 'pepe', 'popo'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `usuario_tiene_rol` -- CREATE TABLE IF NOT EXISTS `usuario_tiene_rol` ( `id` int(11) NOT NULL AUTO_INCREMENT, `usuario_id` int(11) NOT NULL, `rol_id` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=14 ; -- -- Volcado de datos para la tabla `usuario_tiene_rol` -- INSERT INTO `usuario_tiene_rol` (`id`, `usuario_id`, `rol_id`) VALUES (1, 1, 1), (3, 5, 1), (6, 9, 1), (8, 7, 2), (9, 11, 1), (10, 11, 2), (11, 11, 3), (12, 10, 2), (13, 8, 3); -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `asistencia_taller_ciclo_lectivo_dia` -- ALTER TABLE `asistencia_taller_ciclo_lectivo_dia` ADD CONSTRAINT `asistencia_taller_ciclo_lectivo_dia_ibfk_1` FOREIGN KEY (`ciclo_lectivo_taller_horario`) REFERENCES `ciclo_lectivo_taller_horario` (`id`), ADD CONSTRAINT `asistencia_taller_ciclo_lectivo_dia_ibfk_2` FOREIGN KEY (`estudiante_id`) REFERENCES `estudiante` (`id`); -- -- Filtros para la tabla `ciclo_lectivo_taller` -- ALTER TABLE `ciclo_lectivo_taller` ADD CONSTRAINT `FK_ciclo_lectivo_taller_ciclo_lectivo_id` FOREIGN KEY (`ciclo_lectivo_id`) REFERENCES `ciclo_lectivo` (`id`), ADD CONSTRAINT `FK_ciclo_lectivo_taller_taller_id` FOREIGN KEY (`taller_id`) REFERENCES `taller` (`id`); -- -- Filtros para la tabla `clase_taller_ciclo_lectivo` -- ALTER TABLE `clase_taller_ciclo_lectivo` ADD CONSTRAINT `clase_taller_ciclo_lectivo_ibfk_1` FOREIGN KEY (`taller_ciclo_lectivo_id`) REFERENCES `ciclo_lectivo_taller` (`id`), ADD CONSTRAINT `clase_taller_ciclo_lectivo_ibfk_2` FOREIGN KEY (`dia_semana`) REFERENCES `dia_semana` (`id`); -- -- Filtros para la tabla `docente` -- ALTER TABLE `docente` ADD CONSTRAINT `FK_genero_docente_id` FOREIGN KEY (`genero_id`) REFERENCES `genero` (`id`); -- -- Filtros para la tabla `docente_responsable_taller` -- ALTER TABLE `docente_responsable_taller` ADD CONSTRAINT `docente_responsable_taller_ibfk_1` FOREIGN KEY (`docente_id`) REFERENCES `docente` (`id`), ADD CONSTRAINT `docente_responsable_taller_ibfk_2` FOREIGN KEY (`ciclo_lectivo_taller_id`) REFERENCES `ciclo_lectivo_taller` (`id`); -- -- Filtros para la tabla `estudiante` -- ALTER TABLE `estudiante` ADD CONSTRAINT `FK_barrio_id` FOREIGN KEY (`barrio_id`) REFERENCES `barrio` (`id`), ADD CONSTRAINT `FK_escuela_id` FOREIGN KEY (`escuela_id`) REFERENCES `escuela` (`id`), ADD CONSTRAINT `FK_genero_estudiante_id` FOREIGN KEY (`genero_id`) REFERENCES `genero` (`id`), ADD CONSTRAINT `FK_nivel_id` FOREIGN KEY (`nivel_id`) REFERENCES `nivel` (`id`); -- -- Filtros para la tabla `estudiante_ciclo_lectivo_taller` -- ALTER TABLE `estudiante_ciclo_lectivo_taller` ADD CONSTRAINT `estudiante_ciclo_lectivo_taller_ibfk_1` FOREIGN KEY (`estudiante_id`) REFERENCES `estudiante` (`id`), ADD CONSTRAINT `estudiante_ciclo_lectivo_taller_ibfk_2` FOREIGN KEY (`ciclo_lectivo_taller_id`) REFERENCES `ciclo_lectivo_taller` (`id`); -- -- Filtros para la tabla `estudiante_taller` -- ALTER TABLE `estudiante_taller` ADD CONSTRAINT `FK_estudiante_taller_ciclo_lectivo_id` FOREIGN KEY (`ciclo_lectivo_id`) REFERENCES `ciclo_lectivo` (`id`), ADD CONSTRAINT `FK_estudiante_taller_id` FOREIGN KEY (`estudiante_id`) REFERENCES `estudiante` (`id`), ADD CONSTRAINT `FK_estudiante_taller_taller_id` FOREIGN KEY (`taller_id`) REFERENCES `taller` (`id`); -- -- Filtros para la tabla `preceptor_nucleo` -- ALTER TABLE `preceptor_nucleo` ADD CONSTRAINT `FK_nucleo_id` FOREIGN KEY (`nucleo_id`) REFERENCES `nucleo` (`id`), ADD CONSTRAINT `FK_preceptor_id` FOREIGN KEY (`preceptor_id`) REFERENCES `preceptor` (`id`); -- -- Filtros para la tabla `responsable` -- ALTER TABLE `responsable` ADD CONSTRAINT `FK_genero_responsable_id` FOREIGN KEY (`genero_id`) REFERENCES `genero` (`id`); -- -- Filtros para la tabla `responsable_estudiante` -- ALTER TABLE `responsable_estudiante` ADD CONSTRAINT `FK_estudiante_id` FOREIGN KEY (`estudiante_id`) REFERENCES `estudiante` (`id`), ADD CONSTRAINT `FK_responsable_id` FOREIGN KEY (`responsable_id`) REFERENCES `responsable` (`id`); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<gh_stars>0 SELECT COUNT(*) FROM tag as t, site as s, question as q, tag_question as tq WHERE t.site_id = s.site_id AND q.site_id = s.site_id AND tq.site_id = s.site_id AND tq.question_id = q.id AND tq.tag_id = t.id AND (s.site_name in ('stackoverflow')) AND (t.name in ('client-server','coding-style','drag-and-drop','msbuild','python-2.x','sbt','sequence','shared-libraries','stack-overflow','windows-phone-8.1')) AND (q.view_count >= 0) AND (q.view_count <= 100)
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 31 Des 2020 pada 01.23 -- Versi server: 10.3.16-MariaDB -- Versi PHP: 7.1.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `db_toko_taniku` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_detail_transaksi` -- CREATE TABLE `tb_detail_transaksi` ( `kode_transaksi` varchar(30) NOT NULL, `id_user` int(11) NOT NULL, `id_distributor` int(11) NOT NULL, `nama_distributor` varchar(50) NOT NULL, `email` varchar(255) NOT NULL, `telephon` varchar(50) NOT NULL, `alamat` varchar(300) NOT NULL, `tanggal_transaksi` datetime NOT NULL, `jumlah_transaksi` int(11) NOT NULL, `status_bayar` varchar(20) NOT NULL, `tanggal_post` datetime NOT NULL, `tanggal_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_detail_transaksi` -- INSERT INTO `tb_detail_transaksi` (`kode_transaksi`, `id_user`, `id_distributor`, `nama_distributor`, `email`, `telephon`, `alamat`, `tanggal_transaksi`, `jumlah_transaksi`, `status_bayar`, `tanggal_post`, `tanggal_update`) VALUES ('13122020GSLQ5UYE', 1, 1, '<NAME>', '<EMAIL>', '081554988354', 'jalan karimata 4', '2020-12-13 00:00:00', 26000, 'Sudah Bayar', '2020-12-13 06:04:47', '2020-12-28 14:56:06'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_distributor` -- CREATE TABLE `tb_distributor` ( `id_distributor` int(11) NOT NULL, `id_user` int(11) NOT NULL, `nama_distributor` varchar(50) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(54) NOT NULL, `telephon` varchar(50) NOT NULL, `alamat` varchar(300) NOT NULL, `status_distributor` varchar(20) NOT NULL, `tanggal_daftar` datetime NOT NULL, `tanggal_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_distributor` -- INSERT INTO `tb_distributor` (`id_distributor`, `id_user`, `nama_distributor`, `email`, `password`, `telephon`, `alamat`, `status_distributor`, `tanggal_daftar`, `tanggal_update`) VALUES (1, 0, '<NAME>', '<EMAIL>', '<PASSWORD>', '<PASSWORD>88354', 'jalan karimata 4', 'Pending', '2020-12-10 13:49:45', '2020-12-10 12:49:45'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_gambar` -- CREATE TABLE `tb_gambar` ( `id_gambar` int(11) NOT NULL, `id_product` int(11) DEFAULT NULL, `judul_gambar` varchar(255) NOT NULL, `gambar` varchar(255) NOT NULL, `tanggal_update` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_kategori` -- CREATE TABLE `tb_kategori` ( `id_kategori` int(11) NOT NULL, `slug_kategori` varchar(255) NOT NULL, `nama_kategori` varchar(255) NOT NULL, `tanggal_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_kategori` -- INSERT INTO `tb_kategori` (`id_kategori`, `slug_kategori`, `nama_kategori`, `tanggal_update`) VALUES (1, 'sayur', 'Sayur', '2020-12-10 08:39:48'), (2, 'buah', 'Buah', '2020-12-17 07:35:46'), (3, 'bumbu-dapur', 'Bumbu Dapur', '2020-12-17 07:36:05'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_konfigurasi` -- CREATE TABLE `tb_konfigurasi` ( `id_konfigurasi` int(11) NOT NULL, `namaweb` varchar(255) NOT NULL, `tagline` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `website` varchar(255) NOT NULL, `keywords` text NOT NULL, `metatext` text NOT NULL, `telephone` varchar(50) NOT NULL, `alamat` varchar(300) NOT NULL, `facebook` varchar(255) NOT NULL, `instagram` varchar(255) NOT NULL, `deskripsi` text NOT NULL, `logo` varchar(255) NOT NULL, `icon` varchar(255) NOT NULL, `rekening_pembayaran` varchar(255) NOT NULL, `tanggal_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_konfigurasi` -- INSERT INTO `tb_konfigurasi` (`id_konfigurasi`, `namaweb`, `tagline`, `email`, `website`, `keywords`, `metatext`, `telephone`, `alamat`, `facebook`, `instagram`, `deskripsi`, `logo`, `icon`, `rekening_pembayaran`, `tanggal_update`) VALUES (1, '<NAME>', 'Dist<NAME>', '<EMAIL>', '<EMAIL>', 'jeruk, toko jeruk, pak sur', 'ok', '081554988354', 'darungan-sidomulyo', 'https://facebook.com/tokojerukpaksur', 'https://instagram.com/tokojerukpaksur', 'distribusi jeruk kerennn', 'Logo.png', 'Logo1.png', '0221866622', '2020-12-03 12:04:38'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_pembayaran` -- CREATE TABLE `tb_pembayaran` ( `id_pembayaran` int(11) NOT NULL, `kode_transaksi` varchar(255) NOT NULL, `id_rekening` int(11) NOT NULL, `rekening_pembayaran` varchar(255) NOT NULL, `rekening_distributor` varchar(255) NOT NULL, `tanggal_bayar` datetime NOT NULL, `nama_bank` varchar(10) NOT NULL, `jumlah_bayar` int(11) NOT NULL, `bukti_bayar` varchar(255) NOT NULL, `tanggal_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_pembayaran` -- INSERT INTO `tb_pembayaran` (`id_pembayaran`, `kode_transaksi`, `id_rekening`, `rekening_pembayaran`, `rekening_distributor`, `tanggal_bayar`, `nama_bank`, `jumlah_bayar`, `bukti_bayar`, `tanggal_update`) VALUES (2, '13122020GSLQ5UYE', 2, '12333', 'hadi', '2020-12-13 00:00:00', 'BANK BRI', 26000, '6701_png_860.png', '2020-12-13 14:20:54'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_petani` -- CREATE TABLE `tb_petani` ( `id_petani` int(11) NOT NULL, `id_user` int(11) NOT NULL, `nama_petani` varchar(50) NOT NULL, `telephon` varchar(50) NOT NULL, `alamat` varchar(300) NOT NULL, `tanggal_daftar` datetime NOT NULL, `tanggal_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_product` -- CREATE TABLE `tb_product` ( `id_product` int(11) NOT NULL, `id_user` int(11) NOT NULL, `id_kategori` int(11) NOT NULL, `id_tengkulak` int(11) DEFAULT NULL, `kode_product` varchar(20) NOT NULL, `nama_product` varchar(255) NOT NULL, `slug_product` varchar(255) NOT NULL, `keterangan` text NOT NULL, `harga` int(11) NOT NULL, `stok` int(11) DEFAULT NULL, `gambar` varchar(255) NOT NULL, `status_product` varchar(20) NOT NULL, `tanggal_post` datetime NOT NULL, `tanggal_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_product` -- INSERT INTO `tb_product` (`id_product`, `id_user`, `id_kategori`, `id_tengkulak`, `kode_product`, `nama_product`, `slug_product`, `keterangan`, `harga`, `stok`, `gambar`, `status_product`, `tanggal_post`, `tanggal_update`) VALUES (1, 1, 1, NULL, 'bwm-01', 'Bawang Merah', 'bawang-merah-bwm-01', '<p>ada</p>\r\n', 12000, 5, 'bawang1.jpg', 'Publish', '2020-12-10 09:46:17', '2020-12-10 08:46:17'), (2, 10, 1, NULL, 'b1', 'bawang Putih', 'bawang-putih-b1', '<p>ada</p>\r\n', 14000, 5, 'bawang3.jpg', 'Publish', '2020-12-10 09:49:07', '2020-12-10 08:49:07'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_rekening` -- CREATE TABLE `tb_rekening` ( `id_rekening` int(11) NOT NULL, `nama_bank` varchar(255) NOT NULL, `nomor_rekening` varchar(20) NOT NULL, `nama_pemilik` varchar(255) NOT NULL, `gambar` varchar(255) NOT NULL, `tanggal_post` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_rekening` -- INSERT INTO `tb_rekening` (`id_rekening`, `nama_bank`, `nomor_rekening`, `nama_pemilik`, `gambar`, `tanggal_post`) VALUES (2, 'Bank BRI', '9873837838', 'Retno Anjarwati', '', '2020-12-05 22:31:12'), (3, 'Bank BNI', '26276537367', 'Retno', '', '2020-12-05 22:31:29'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_tengkulak` -- CREATE TABLE `tb_tengkulak` ( `id_tengkulak` int(11) NOT NULL, `id_user` int(11) NOT NULL, `nama_tengkulak` varchar(50) NOT NULL, `alamat` varchar(300) DEFAULT NULL, `telephon` varchar(50) DEFAULT NULL, `status_tengkulak` varchar(20) NOT NULL, `tanggal_daftar` datetime DEFAULT NULL, `tanggal_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_tengkulak` -- INSERT INTO `tb_tengkulak` (`id_tengkulak`, `id_user`, `nama_tengkulak`, `alamat`, `telephon`, `status_tengkulak`, `tanggal_daftar`, `tanggal_update`) VALUES (1, 10, 'agil', 'semboro', '081554988354', 'Pending', '2020-12-07 13:06:02', '2020-12-07 16:08:35'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_transaksi` -- CREATE TABLE `tb_transaksi` ( `id_transaksi` int(11) NOT NULL, `id_distributor` int(11) NOT NULL, `id_product` int(11) NOT NULL, `id_user` int(11) NOT NULL, `kode_transaksi` varchar(255) NOT NULL, `harga` int(11) NOT NULL, `jumlah` int(11) NOT NULL, `total_harga` int(11) NOT NULL, `tanggal_transaksi` datetime NOT NULL, `taggal_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_transaksi` -- INSERT INTO `tb_transaksi` (`id_transaksi`, `id_distributor`, `id_product`, `id_user`, `kode_transaksi`, `harga`, `jumlah`, `total_harga`, `tanggal_transaksi`, `taggal_update`) VALUES (1, 1, 2, 0, '13122020GSLQ5UYE', 14000, 1, 14000, '2020-12-13 00:00:00', '2020-12-13 05:04:48'), (2, 1, 1, 0, '13122020GSLQ5UYE', 12000, 1, 12000, '2020-12-13 00:00:00', '2020-12-13 05:04:48'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_user` -- CREATE TABLE `tb_user` ( `id_user` int(11) NOT NULL, `nama` varchar(50) NOT NULL, `email` varchar(255) NOT NULL, `username` varchar(32) NOT NULL, `password` varchar(64) NOT NULL, `akses_level` varchar(20) NOT NULL, `tanggal_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_user` -- INSERT INTO `tb_user` (`id_user`, `nama`, `email`, `username`, `password`, `akses_level`, `tanggal_update`) VALUES (1, 'Admin', '<EMAIL>', 'admin', '<PASSWORD>', 'Admin', '2020-12-03 12:46:30'), (2, 'Tengkulak', '<EMAIL>', 'tengkulak', 'e0e040515f41eb4df6a6cc<PASSWORD>6<PASSWORD>', 'Tengkulak', '2020-12-07 09:50:36'), (10, 'agil', '<EMAIL>', '<PASSWORD>34', '<PASSWORD>', 'Tengkulak', '2020-12-07 12:06:02'); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `tb_detail_transaksi` -- ALTER TABLE `tb_detail_transaksi` ADD PRIMARY KEY (`kode_transaksi`); -- -- Indeks untuk tabel `tb_distributor` -- ALTER TABLE `tb_distributor` ADD PRIMARY KEY (`id_distributor`), ADD UNIQUE KEY `email` (`email`); -- -- Indeks untuk tabel `tb_gambar` -- ALTER TABLE `tb_gambar` ADD PRIMARY KEY (`id_gambar`); -- -- Indeks untuk tabel `tb_kategori` -- ALTER TABLE `tb_kategori` ADD PRIMARY KEY (`id_kategori`); -- -- Indeks untuk tabel `tb_konfigurasi` -- ALTER TABLE `tb_konfigurasi` ADD PRIMARY KEY (`id_konfigurasi`); -- -- Indeks untuk tabel `tb_pembayaran` -- ALTER TABLE `tb_pembayaran` ADD PRIMARY KEY (`id_pembayaran`); -- -- Indeks untuk tabel `tb_petani` -- ALTER TABLE `tb_petani` ADD PRIMARY KEY (`id_petani`); -- -- Indeks untuk tabel `tb_product` -- ALTER TABLE `tb_product` ADD PRIMARY KEY (`id_product`), ADD UNIQUE KEY `kode_product` (`kode_product`); -- -- Indeks untuk tabel `tb_rekening` -- ALTER TABLE `tb_rekening` ADD PRIMARY KEY (`id_rekening`), ADD UNIQUE KEY `nomor_rekening` (`nomor_rekening`); -- -- Indeks untuk tabel `tb_tengkulak` -- ALTER TABLE `tb_tengkulak` ADD PRIMARY KEY (`id_tengkulak`); -- -- Indeks untuk tabel `tb_transaksi` -- ALTER TABLE `tb_transaksi` ADD PRIMARY KEY (`id_transaksi`); -- -- Indeks untuk tabel `tb_user` -- ALTER TABLE `tb_user` ADD PRIMARY KEY (`id_user`), ADD UNIQUE KEY `username` (`username`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `tb_distributor` -- ALTER TABLE `tb_distributor` MODIFY `id_distributor` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT untuk tabel `tb_gambar` -- ALTER TABLE `tb_gambar` MODIFY `id_gambar` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `tb_kategori` -- ALTER TABLE `tb_kategori` MODIFY `id_kategori` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT untuk tabel `tb_konfigurasi` -- ALTER TABLE `tb_konfigurasi` MODIFY `id_konfigurasi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT untuk tabel `tb_pembayaran` -- ALTER TABLE `tb_pembayaran` MODIFY `id_pembayaran` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT untuk tabel `tb_petani` -- ALTER TABLE `tb_petani` MODIFY `id_petani` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `tb_product` -- ALTER TABLE `tb_product` MODIFY `id_product` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT untuk tabel `tb_rekening` -- ALTER TABLE `tb_rekening` MODIFY `id_rekening` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT untuk tabel `tb_tengkulak` -- ALTER TABLE `tb_tengkulak` MODIFY `id_tengkulak` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT untuk tabel `tb_transaksi` -- ALTER TABLE `tb_transaksi` MODIFY `id_transaksi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT untuk tabel `tb_user` -- ALTER TABLE `tb_user` MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
drop database if exists rwdatabase; create database rwdatabase; use rwdatabase; CREATE TABLE `usuario` ( `idUsuario` int(11) NOT NULL AUTO_INCREMENT, `usuario` varchar(45) DEFAULT NULL, `correo` varchar(45) DEFAULT NULL, `contraseña` varchar(45) DEFAULT NULL, PRIMARY KEY (`idUsuario`), UNIQUE KEY `correo_UNIQUE` (`correo`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `usuario` WRITE; /*!40000 ALTER TABLE `usuario` DISABLE KEYS */; /*!40000 ALTER TABLE `usuario` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `obra` ( `idObra` int(11) NOT NULL AUTO_INCREMENT, `titulo` varchar(45) DEFAULT NULL, `fecha` date DEFAULT NULL, `consejos` varchar(45) DEFAULT NULL, PRIMARY KEY (`idObra`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `obra` WRITE; /*!40000 ALTER TABLE `obra` DISABLE KEYS */; /*!40000 ALTER TABLE `obra` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `tipoobra` ( `idTipoObra` int(11) NOT NULL AUTO_INCREMENT, `TipoObra` varchar(45) DEFAULT NULL, PRIMARY KEY (`idTipoObra`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `tipoobra` WRITE; /*!40000 ALTER TABLE `tipoobra` DISABLE KEYS */; /*!40000 ALTER TABLE `tipoobra` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `relobratipoobra` ( `idRelObraTipoobra` int(11) NOT NULL AUTO_INCREMENT, `idObraa` int(11) DEFAULT NULL, `idTipoObra` int(11) DEFAULT NULL, PRIMARY KEY (`idRelObraTipoobra`), KEY `idObraa_idx` (`idObraa`), KEY `idTipoObra_idx` (`idTipoObra`), CONSTRAINT `idObraa` FOREIGN KEY (`idObraa`) REFERENCES `obra` (`idObra`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `idTipoObra` FOREIGN KEY (`idTipoObra`) REFERENCES `tipoobra` (`idTipoObra`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `relobratipoobra` WRITE; /*!40000 ALTER TABLE `relobratipoobra` DISABLE KEYS */; /*!40000 ALTER TABLE `relobratipoobra` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `personaje` ( `idPersonaje` int(11) NOT NULL AUTO_INCREMENT, `nombre` varchar(45) DEFAULT NULL, `personalidad` text, `apariencia` varchar(200) DEFAULT NULL, `motivaciones` varchar(220) DEFAULT NULL, `habitos` varchar(220) DEFAULT NULL, PRIMARY KEY (`idPersonaje`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `personaje` WRITE; /*!40000 ALTER TABLE `personaje` DISABLE KEYS */; /*!40000 ALTER TABLE `personaje` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `actos` ( `idActos` int(11) NOT NULL AUTO_INCREMENT, `Escenario` varchar(250) DEFAULT NULL, PRIMARY KEY (`idActos`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `actos` WRITE; /*!40000 ALTER TABLE `actos` DISABLE KEYS */; /*!40000 ALTER TABLE `actos` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `referencias` ( `idReferencias` int(11) NOT NULL AUTO_INCREMENT, `tipoRef` varchar(45) DEFAULT NULL, `autor` varchar(100) DEFAULT NULL, `año` varchar(45) DEFAULT NULL, `fechaConsulta` date DEFAULT NULL, `datos` varchar(200) DEFAULT NULL, PRIMARY KEY (`idReferencias`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `referencias` WRITE; /*!40000 ALTER TABLE `referencias` DISABLE KEYS */; /*!40000 ALTER TABLE `referencias` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `dramatico` ( `idDramatico` int(11) NOT NULL AUTO_INCREMENT, `idActos` int(11) DEFAULT NULL, `idRelObraTipoobra` int(11) DEFAULT NULL, PRIMARY KEY (`idDramatico`), KEY `idActoss_idx` (`idActos`), FOREIGN KEY (`idRelObraTipoobra`) REFERENCES `relObraTipoobra` (`idRelObraTipoobra`), CONSTRAINT `idActoss` FOREIGN KEY (`idActos`) REFERENCES `actos` (`idActos`) ON DELETE NO ACTION ON UPDATE NO ACTION )ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `dramatico` WRITE; /*!40000 ALTER TABLE `dramatico` DISABLE KEYS */; /*!40000 ALTER TABLE `dramatico` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `ensayo` ( `idEnsayo` int(11) NOT NULL AUTO_INCREMENT, `idRelObraTipoobra` int(11) DEFAULT NULL, `intro` text, `desarrollo` text, `conclusion` text, PRIMARY KEY (`idEnsayo`), FOREIGN KEY (`idRelObraTipoobra`) REFERENCES `relObraTipoobra` (`idRelObraTipoobra`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `ensayo` WRITE; /*!40000 ALTER TABLE `ensayo` DISABLE KEYS */; /*!40000 ALTER TABLE `ensayo` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `apendices` ( `idApendices` int(11) NOT NULL AUTO_INCREMENT, `titulo` varchar(100) DEFAULT NULL, `contenido` text, PRIMARY KEY (`idApendices`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;LOCK TABLES `apendices` WRITE; /*!40000 ALTER TABLE `apendices` DISABLE KEYS */; /*!40000 ALTER TABLE `apendices` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `articulo` ( `idArticulo` int(11) NOT NULL AUTO_INCREMENT, `idRelObraTipoobra` int(11) DEFAULT NULL, `resumen` text, `autores` text, `materiales` text, `metodos` text, `resultados` text, `discusion` text, `conclusiones` text, FOREIGN KEY (`idRelObraTipoobra`) REFERENCES `relObraTipoobra` (`idRelObraTipoobra`), PRIMARY KEY (`idArticulo`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `articulo` WRITE; /*!40000 ALTER TABLE `articulo` DISABLE KEYS */; /*!40000 ALTER TABLE `articulo` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `dialogos` ( `idDialogos` int(11) NOT NULL AUTO_INCREMENT, `contenido` text, `acotaciones` varchar(220) DEFAULT NULL, PRIMARY KEY (`idDialogos`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `dialogos` WRITE; /*!40000 ALTER TABLE `dialogos` DISABLE KEYS */; /*!40000 ALTER TABLE `dialogos` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `estrofa` ( `idEstrofa` int(11) NOT NULL AUTO_INCREMENT, `versos` varchar(250) DEFAULT NULL, PRIMARY KEY (`idEstrofa`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `estrofa` WRITE; /*!40000 ALTER TABLE `estrofa` DISABLE KEYS */; /*!40000 ALTER TABLE `estrofa` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `lirico` ( `idLirico` int(11) NOT NULL AUTO_INCREMENT, `idRelObraTipoobra` int(11) DEFAULT NULL, `idEstrofa` int(11) DEFAULT NULL, PRIMARY KEY (`idLirico`), KEY `idEstrof_idx` (`idEstrofa`), FOREIGN KEY (`idRelObraTipoobra`) REFERENCES `relObraTipoobra` (`idRelObraTipoobra`), CONSTRAINT `idEstrof` FOREIGN KEY (`idEstrofa`) REFERENCES `estrofa` (`idEstrofa`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `lirico` WRITE; /*!40000 ALTER TABLE `lirico` DISABLE KEYS */; /*!40000 ALTER TABLE `lirico` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `narrativo` ( `idNarrativo` int(11) NOT NULL AUTO_INCREMENT, `idRelObraTipoobra` int(11) DEFAULT NULL, `exposicion` text, `desarrollo` text, `desenlace` text, `climax` text, FOREIGN KEY (`idRelObraTipoobra`) REFERENCES `relObraTipoobra` (`idRelObraTipoobra`), PRIMARY KEY (`idNarrativo`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `narrativo` WRITE; /*!40000 ALTER TABLE `narrativo` DISABLE KEYS */; /*!40000 ALTER TABLE `narrativo` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `resumen` ( `idResumen` int(11) NOT NULL AUTO_INCREMENT, `idRelObraTipoobra` int(11) DEFAULT NULL, `contenido` text, `claves` varchar(45) DEFAULT NULL, `idReferencias` int(11) DEFAULT NULL, FOREIGN KEY (`idRelObraTipoobra`) REFERENCES `relObraTipoobra` (`idRelObraTipoobra`), PRIMARY KEY (`idResumen`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `resumen` WRITE; /*!40000 ALTER TABLE `resumen` DISABLE KEYS */; /*!40000 ALTER TABLE `resumen` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `tipo` ( `idTipo` int(11) NOT NULL AUTO_INCREMENT, `nombre` varchar(45) DEFAULT NULL, `numVersos` int(11) DEFAULT NULL, `rima` int(11) DEFAULT NULL, PRIMARY KEY (`idTipo`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `tipo` WRITE; /*!40000 ALTER TABLE `tipo` DISABLE KEYS */; /*!40000 ALTER TABLE `tipo` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `relresurefe` ( `idRelResuRefe` int(11) NOT NULL AUTO_INCREMENT, `idRefere` int(11) DEFAULT NULL, `idResumen` int(11) DEFAULT NULL, PRIMARY KEY (`idRelResuRefe`), KEY `idRefere_idx` (`idRefere`), KEY `idResumen_idx` (`idResumen`), CONSTRAINT `idRefere` FOREIGN KEY (`idRefere`) REFERENCES `referencias` (`idReferencias`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `idResumen` FOREIGN KEY (`idResumen`) REFERENCES `resumen` (`idResumen`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `relresurefe` WRITE; /*!40000 ALTER TABLE `relresurefe` DISABLE KEYS */; /*!40000 ALTER TABLE `relresurefe` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `relusuobra` ( `idRelUSuObra` int(11) NOT NULL AUTO_INCREMENT, `idUsuario` int(11) DEFAULT NULL, `idObra` int(11) DEFAULT NULL, PRIMARY KEY (`idRelUSuObra`), KEY `idObra_idx` (`idObra`), KEY `idUsuario_idx` (`idUsuario`), CONSTRAINT `idObra` FOREIGN KEY (`idObra`) REFERENCES `obra` (`idObra`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `idUsuario` FOREIGN KEY (`idUsuario`) REFERENCES `usuario` (`idUsuario`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `relusuobra` WRITE; /*!40000 ALTER TABLE `relusuobra` DISABLE KEYS */; /*!40000 ALTER TABLE `relusuobra` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `relactodialo` ( `idRelActoDialo` int(11) NOT NULL AUTO_INCREMENT, `idActos` int(11) DEFAULT NULL, `idDialogo` int(11) DEFAULT NULL, PRIMARY KEY (`idRelActoDialo`), KEY `idActos_idx` (`idActos`), KEY `idDialogos_idx` (`idDialogo`), CONSTRAINT `idActos` FOREIGN KEY (`idActos`) REFERENCES `actos` (`idActos`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `idDialogo` FOREIGN KEY (`idDialogo`) REFERENCES `dialogos` (`idDialogos`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `relactodialo` WRITE; /*!40000 ALTER TABLE `relactodialo` DISABLE KEYS */; /*!40000 ALTER TABLE `relactodialo` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `relapendiarti` ( `idRelApendiArti` int(11) NOT NULL AUTO_INCREMENT, `idArticulo` int(11) DEFAULT NULL, `idApendice` int(11) DEFAULT NULL, PRIMARY KEY (`idRelApendiArti`), KEY `idArticulo_idx` (`idArticulo`), KEY `idApendice_idx` (`idApendice`), CONSTRAINT `idApendice` FOREIGN KEY (`idApendice`) REFERENCES `apendices` (`idApendices`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `idArticulo` FOREIGN KEY (`idArticulo`) REFERENCES `articulo` (`idArticulo`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `relapendiarti` WRITE; /*!40000 ALTER TABLE `relapendiarti` DISABLE KEYS */; /*!40000 ALTER TABLE `relapendiarti` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `reldialogopersona` ( `idrelDialogoPersona` int(11) NOT NULL AUTO_INCREMENT, `idDialogos` int(11) DEFAULT NULL, `idPersonaje` int(11) DEFAULT NULL, PRIMARY KEY (`idrelDialogoPersona`), KEY `idDialogos_idx` (`idDialogos`), KEY `idPersonaje_idx` (`idPersonaje`), CONSTRAINT `idDialogos` FOREIGN KEY (`idDialogos`) REFERENCES `dialogos` (`idDialogos`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `idPersonaje` FOREIGN KEY (`idPersonaje`) REFERENCES `personaje` (`idPersonaje`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `reldialogopersona` WRITE; /*!40000 ALTER TABLE `reldialogopersona` DISABLE KEYS */; /*!40000 ALTER TABLE `reldialogopersona` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `relestrofatipo` ( `idRelEstrofaTipo` int(11) NOT NULL AUTO_INCREMENT, `idTipo` int(11) DEFAULT NULL, `idEstrofa` int(11) DEFAULT NULL, PRIMARY KEY (`idRelEstrofaTipo`), KEY `idTipo_idx` (`idTipo`), KEY `idEstrofa_idx` (`idEstrofa`), CONSTRAINT `idEstrofa` FOREIGN KEY (`idEstrofa`) REFERENCES `estrofa` (`idEstrofa`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `idTipo` FOREIGN KEY (`idTipo`) REFERENCES `tipo` (`idTipo`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `relestrofatipo` WRITE; /*!40000 ALTER TABLE `relestrofatipo` DISABLE KEYS */; /*!40000 ALTER TABLE `relestrofatipo` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `relnarraperson` ( `idRelNarraPerson` int(11) NOT NULL AUTO_INCREMENT, `idNarrativo` int(11) DEFAULT NULL, `idPerson` int(11) DEFAULT NULL, PRIMARY KEY (`idRelNarraPerson`), KEY `idNarrativo_idx` (`idNarrativo`), KEY `idPerson_idx` (`idPerson`), CONSTRAINT `idNarrativo` FOREIGN KEY (`idNarrativo`) REFERENCES `narrativo` (`idNarrativo`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `idPerson` FOREIGN KEY (`idPerson`) REFERENCES `personaje` (`idPersonaje`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `relnarraperson` WRITE; /*!40000 ALTER TABLE `relnarraperson` DISABLE KEYS */; /*!40000 ALTER TABLE `relnarraperson` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `relrefarti` ( `idRelRefArti` int(11) NOT NULL AUTO_INCREMENT, `idArticuloo` int(11) DEFAULT NULL, `idRefe` int(11) DEFAULT NULL, PRIMARY KEY (`idRelRefArti`), KEY `idArticuloo_idx` (`idArticuloo`), KEY `idRefe_idx` (`idRefe`), CONSTRAINT `idArticuloo` FOREIGN KEY (`idArticuloo`) REFERENCES `articulo` (`idArticulo`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `idRefe` FOREIGN KEY (`idRefe`) REFERENCES `referencias` (`idReferencias`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `relrefarti` WRITE; /*!40000 ALTER TABLE `relrefarti` DISABLE KEYS */; /*!40000 ALTER TABLE `relrefarti` ENABLE KEYS */; UNLOCK TABLES; CREATE TABLE `relrefeensayo` ( `idRelRefeEnsayo` int(11) NOT NULL AUTO_INCREMENT, `idReferencia` int(11) DEFAULT NULL, `idEnsayo` int(11) DEFAULT NULL, PRIMARY KEY (`idRelRefeEnsayo`), KEY `idReferencia_idx` (`idReferencia`), KEY `idEnsayo_idx` (`idEnsayo`), CONSTRAINT `idEnsayo` FOREIGN KEY (`idEnsayo`) REFERENCES `ensayo` (`idEnsayo`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `idReferencia` FOREIGN KEY (`idReferencia`) REFERENCES `referencias` (`idReferencias`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `relrefeensayo` WRITE; /*!40000 ALTER TABLE `relrefeensayo` DISABLE KEYS */; /*!40000 ALTER TABLE `relrefeensayo` ENABLE KEYS */; UNLOCK TABLES;
-- ============================================= -- Author: HPCPC -- Create date: 2/9/2017 11:21:50 AM -- Description: Warning, this is auto-generated and might be over written. Do not edit. -- ============================================= CREATE PROCEDURE [dbo].[AppResourceLinkSearch] @LinkUrlStartsWith NVARCHAR(4000) , @LinkUrlContains NVARCHAR(4000) AS BEGIN SET NOCOUNT ON DECLARE @Parameters NVARCHAR(MAX) = ' @LinkUrlStartsWith NVARCHAR(4000) ,@LinkUrlContains NVARCHAR(4000) ' DECLARE @Query NVARCHAR(MAX) = ' SELECT * FROM [dbo].[AppResourceLink] WHERE 1 = 1 ' IF (@LinkUrlStartsWith IS NOT NULL) SET @Query = @Query + 'AND ([LinkUrl] LIKE (@LinkUrlStartsWith + ''%''))' IF (@LinkUrlContains IS NOT NULL) SET @Query = @Query + 'AND ([LinkUrl] LIKE (''%'' + @LinkUrlContains + ''%''))' --execute the sql EXECUTE sp_executesql @Query ,@Parameters ,@LinkUrlStartsWith ,@LinkUrlContains END
CREATE TABLE `v1_users` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` varchar(64) NOT NULL, `user_name` varchar(64) NOT NULL DEFAULT '', `lv` int(11) NOT NULL DEFAULT '1', `exp` int(11) NOT NULL DEFAULT '0', `remark` varchar(64) NOT NULL DEFAULT '', `vip` tinyint(4) NOT NULL DEFAULT '0', `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `idx_v1_users_user_id` (`user_id`) ); CREATE TABLE `v1_user_vehicles` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` varchar(64) NOT NULL, `vehicle` varchar(64) NOT NULL, PRIMARY KEY (`id`), KEY `idx_v1_user_vehicles_user_id` (`user_id`) ); CREATE TABLE `v1_user_rubbishes` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` varchar(64) NOT NULL, `type_id` smallint(6) NOT NULL, `count` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `idx_v1_user_rubbishes_user_id_type_id` (`user_id`,`type_id`) ); CREATE TABLE `v1_user_nutrients` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` varchar(64) NOT NULL, `type_id` smallint(6) NOT NULL, `count` int(11) NOT NULL, `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `idx_user_id_type_id` (`user_id`,`type_id`) ); CREATE TABLE `v1_accounts` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` varchar(64) NOT NULL, `amount` bigint(20) NOT NULL, `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `idx_v1_accounts_user_id` (`user_id`) ); CREATE TABLE `v1_cheating_users` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` varchar(64) NOT NULL, `speed_up_rate` decimal(15,2) NOT NULL, `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `idx_v1_cheating_users_user_id` (`user_id`) ); CREATE TABLE `v1_goods_payment_records` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` varchar(64) NOT NULL, `goods_key` varchar(64) NOT NULL, `amount` int(11) NOT NULL, `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `idx_v1_goods_payment_records_user_id` (`user_id`) ); CREATE TABLE `v1_rubbish_recycle_records` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` varchar(64) NOT NULL, `rubbish_count` int(11) NOT NULL, `amount` int(11) NOT NULL, `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `idx_v1_rubbish_recycle_records_user_id` (`user_id`) ); CREATE TABLE `v1_recharge_records` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` varchar(64) NOT NULL, `amount` int(11) NOT NULL, `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `idx_v1_recharge_records_user_id` (`user_id`) ); CREATE TABLE `v1_user_register_infos` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `login_name` varchar(32) NOT NULL, `password` varchar(64) NOT NULL, `user_id` varchar(64) NOT NULL, `gender` varchar(16) NOT NULL, `qq` varchar(32) NOT NULL, `email` varchar(64) NOT NULL, `introduction` varchar(256) NOT NULL, `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `idx_v1_user_register_infos_login_name` (`login_name`), UNIQUE KEY `idx_v1_user_register_infos_user_id` (`user_id`) ); CREATE TABLE `v1_promotion_link_stats` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(64) NOT NULL, `promotion_count` bigint(20) NOT NULL DEFAULT '0', `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ); CREATE TABLE `v1_user_pets` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `pet_id` varchar(64) NOT NULL, `pet_type` varchar(64) NOT NULL, `user_id` varchar(64) NOT NULL, `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `idx_v1_user_pets_pet_id` (`pet_id`), KEY `idx_v1_user_pets_user_id` (`user_id`) ); CREATE TABLE `v1_user_equipments` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` varchar(64) NOT NULL, `equipment_type` varchar(32) NOT NULL, `equipment_key` varchar(64) NOT NULL, `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `idx_v1_user_equipments_user_id` (`user_id`) ); CREATE TABLE `v1_goods` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `equipment_type` varchar(32) NOT NULL, `key` varchar(64) NOT NULL, `price` bigint(20) NOT NULL, `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `idx_v1_goods_key` (`key`), KEY `idx_v1_goods_equipment_type` (`equipment_type`) ); CREATE TABLE `v1_shit_mines` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` varchar(64) NOT NULL, `mine_count` bigint(20) NOT NULL, `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `idx_v1_shit_mines_user_id` (`user_id`) ); CREATE TABLE `v1_daily_red_packets` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` varchar(64) NOT NULL, `amount` bigint(20) NOT NULL, `ctime` datetime NOT NULL, `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `idx_v1_daily_red_packets_user_id_ctime` (`user_id`, `ctime`) );
<filename>docs/db/init.sql -- -- 数据库: `remind` -- set names utf8; create database `remind`; use `remind`; -- -------------------------------------------------------- -- -- 表的结构 `ci_sessions` -- CREATE TABLE IF NOT EXISTS `ci_sessions` ( `session_id` varchar(40) NOT NULL DEFAULT '0', `ip_address` varchar(45) NOT NULL DEFAULT '0', `user_agent` varchar(120) NOT NULL, `last_activity` int(10) unsigned NOT NULL DEFAULT '0', `user_data` text NOT NULL, PRIMARY KEY (`session_id`), KEY `last_activity_idx` (`last_activity`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- 表的结构 `email_sys_queue` -- CREATE TABLE IF NOT EXISTS `email_sys_queue` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '唯一自增标识', `content` text NOT NULL COMMENT '邮件内容', `priority` int(4) NOT NULL COMMENT '优先级,默认5,数字越小优先级越高', `status` int(4) NOT NULL COMMENT '状态 0未发送 1已发送 -1发送失败', `create_time` int(10) NOT NULL COMMENT '添加时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='系统通知邮件队列表' AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- 表的结构 `sys_menu` -- CREATE TABLE IF NOT EXISTS `sys_menu` ( `menu_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '应用菜单ID', `pid` int(11) DEFAULT '0' COMMENT '上级菜单ID', `title` varchar(40) DEFAULT '' COMMENT '菜单标题', `ctrl_name` varchar(100) DEFAULT '' COMMENT '菜单访问控制器', `sort` tinyint(4) DEFAULT '0' COMMENT '菜单排序', `create_uname` varchar(40) DEFAULT '' COMMENT '创建者账号', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`menu_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='应用菜单表' AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- 表的结构 `sys_user` -- CREATE TABLE IF NOT EXISTS `sys_user` ( `user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '系统用户ID', `user_name` varchar(40) DEFAULT '' COMMENT '系统用户账号', `true_name` varchar(40) DEFAULT NULL COMMENT '真实姓名', `email` varchar(255) DEFAULT '' COMMENT '邮箱', `pwd` varchar(32) DEFAULT '' COMMENT '用户密码<PASSWORD>', `is_admin` tinyint(4) DEFAULT '0' COMMENT '是否管理员0:非管理员,1:管理员', `is_del` tinyint(4) DEFAULT '0' COMMENT '0:有效账户,1:无效账户', `create_uname` varchar(40) DEFAULT '' COMMENT '创建者账号', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`user_id`), UNIQUE KEY `key_uname` (`user_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系统用户表' ; -- -- 转存表中的数据 `sys_user` -- INSERT INTO `sys_user` (`user_id`, `user_name`, `true_name`, `email`, `pwd`, `is_admin`, `is_del`, `create_uname`, `create_time`) VALUES (1, 'admin', '超级管理员', '', '<PASSWORD>', 1, 0, 'admin', '2016-07-04 14:18:07'); -- -------------------------------------------------------- -- -- 表的结构 `sys_user_pms` -- CREATE TABLE IF NOT EXISTS `sys_user_pms` ( `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '系统用户ID', `menu_id` int(11) NOT NULL DEFAULT '0' COMMENT '应用菜单ID', `pms` char(9) DEFAULT '' COMMENT '用户权限设置1:查询2:增加3:删除4:修改5:特殊', PRIMARY KEY (`user_id`,`menu_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户权限表';
<reponame>schmandr/gretljobs SELECT ogc_fid AS t_id, id, ort, wkb_geometry AS geometrie FROM ada_adagis_a.schutz_olten_solothurn WHERE archive = 0 ;
<reponame>fharookshaik/DBMS-Project-Vehicle-Insurance<filename>Generate SQL (Python Project)/sqlfiles/g2membership.sql INSERT INTO g2membership VALUES (20301, 'VIP', 7792910958, 2001) ; INSERT INTO g2membership VALUES (20302, 'Premium', 9395965690, 2002) ; INSERT INTO g2membership VALUES (20303, 'Normal', 8865315691, 2003) ; INSERT INTO g2membership VALUES (20304, 'Investment', 7792910958, 2004) ; INSERT INTO g2membership VALUES (20305, 'Normal', 8865315691, 2005) ; INSERT INTO g2membership VALUES (20306, 'Premium', 9395965690, 2006) ; INSERT INTO g2membership VALUES (20307, 'Normal', 7792910958, 2007) ; INSERT INTO g2membership VALUES (20308, 'VIP', 8865315691, 2008) ; INSERT INTO g2membership VALUES (20309, 'Premium', 9395965690, 2009) ; INSERT INTO g2membership VALUES (20310, 'VIP', 8865315691, 2010) ; INSERT INTO g2membership VALUES (20311, 'Normal', 7792910958, 2011) ; INSERT INTO g2membership VALUES (20312, 'Premium', 8865315691, 2012) ; INSERT INTO g2membership VALUES (20313, 'Investment', 7792910958, 2013) ; INSERT INTO g2membership VALUES (20314, 'Normal', 9395965690, 2014) ; INSERT INTO g2membership VALUES (20315, 'VIP', 7792910958, 2015) ; INSERT INTO g2membership VALUES (20316, 'Premium', 8865315691, 2016) ; INSERT INTO g2membership VALUES (20317, 'Normal', 7792910958, 2017) ; INSERT INTO g2membership VALUES (20318, 'Investment', 8865315691, 2018) ; INSERT INTO g2membership VALUES (20319, 'VIP', 9395965690, 2019) ; INSERT INTO g2membership VALUES (20320, 'Premium', 8865315691, 2020) ; INSERT INTO g2membership VALUES (20321, 'Investment', 7792910958, 2021) ; INSERT INTO g2membership VALUES (20322, 'Normal', 8865315691, 2022) ; INSERT INTO g2membership VALUES (20323, 'VIP', 9395965690, 2023) ; INSERT INTO g2membership VALUES (20324, 'Normal', 9395965690, 2024) ; INSERT INTO g2membership VALUES (20325, 'Premium', 7792910958, 2025) ; INSERT INTO g2membership VALUES (20326, 'Premium', '', 2019) ; INSERT INTO g2membership VALUES (20327, 'Premium', '', 2020) ;
<filename>devops/sql/migrate-04.sql -- states -- Add created columns ALTER TABLE chatroach.states ADD COLUMN fb_error_code varchar AS (state_json->'error'->>'code') STORED; ALTER TABLE chatroach.states ADD COLUMN timeout_date TIMESTAMPTZ AS (CASE WHEN state_json->'wait'->>'type' = 'timeout' THEN (CEILING((state_json->>'waitStart')::INT/1000)::INT::TIMESTAMPTZ + (state_json->'wait'->>'value')::INTERVAL) ELSE NULL END) STORED; -- Index those columns for queries! -- TODO: Should include updated, for time window filtering in grafana!! CREATE INDEX ON chatroach.states (current_state, fb_error_code) STORING (state_json); -- CREATE INDEX ON chatroach.states (current_state, timeout_date) STORING (state_json);
<gh_stars>10-100 WITH actual_sales AS ( SELECT cust, min(quant) AS min_q, max(quant) AS max_q, avg(quant) AS avg_q FROM sales GROUP BY cust ), min_sales AS ( SELECT A1.cust, min_q, S.prod, S.day, S.month, S.year, S.state FROM actual_sales A1, sales S WHERE A1.cust = S.cust AND min_q = S.quant ), max_sales AS ( SELECT A2.cust, max_q, S.prod, S.day, S.month, S.year, S.state FROM actual_sales A2, sales S WHERE A2.cust = S.cust AND max_q = S.quant ) SELECT A.cust, A.min_q, MIN.prod, MIN.day, MIN.month, MIN.year, MIN.state, A.max_q, MAX.prod, MAX.day, MAX.month, MAX.year, MAX.state, ROUND(A.avg_q) FROM min_sales AS MIN, max_sales AS MAX, actual_sales AS A WHERE MIN.cust = MAX.cust AND MIN.cust = A.cust AND MAX.cust = A.cust
-- file:plpgsql.sql ln:3159 expect:true select * from return_dquery()
<filename>db/schema.sql<gh_stars>0 DROP DATABASE IF EXISTS employees_db; CREATE DATABASE employees_db; USE employees_db; CREATE TABLE department ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(30) UNIQUE NOT NULL ) CREATE TABLE role ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, title VARCHAR(30) UNIQUE NOT NULL, salary DECIMAL NOT NULL, department_id INT, FOREIGN KEY (department_id) REFERENCES department(id) ON DELETE SET NULL ) CREATE TABLE employee ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(30) UNIQUE NOT NULL, last_name VARCHAR(30) UNIQUE NOT NULL, role_id INT, manager_id INT )
<gh_stars>0 CREATE TABLE [dbo].[CaseWorkers] ( [Id] INT IDENTITY (1,1) NOT NULL, [Name] NVARCHAR(250) NOT NULL, CONSTRAINT [PK_CaseWorkers] PRIMARY KEY CLUSTERED ([Id] ASC) )
CREATE TABLE `t_user`( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增主键', `full_name` varchar(200) NOT NULL COMMENT '姓名', `alias` JSON COMMENT '别名,例如:["张三","李四"]', `citizenship` JSON COMMENT '国籍,例如"["",""]', `state` tinyint(2) NOT NULL DEFAULT 1 COMMENT '状态,1-有效,0-无效', `gmt_created` datetime NOT NULL COMMENT '入库时间', `gmt_modified` datetime NOT NULL COMMENT '更新时间', PRIMARY KEY (`id`) )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='AML 名单表';
<reponame>sumesh-aot/namex @ ../../../object/names/namesdb/package/nro_datapump_pkg.pks
<filename>sql-scripts/user-status.sql CREATE TABLE [redis-labs-demo].dbo.user_status ( user_id INT NOT NULL, user_status NVARCHAR NOT NULL, created_date DATETIME2 DEFAULT (getutcdate()) NOT NULL, FOREIGN KEY (user_id) REFERENCES user_login (user_id) ); CREATE INDEX user_status_user_id_index ON user_status (user_id);
<gh_stars>10-100 CREATE PROCEDURE SP490(OUT MYCOUNT INTEGER) SPECIFIC SP490_30145 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE360;SELECT COUNT(*)INTO MYCOUNT FROM TABLE25;SELECT COUNT(*)INTO MYCOUNT FROM TABLE281;SELECT COUNT(*)INTO MYCOUNT FROM VIEW38;SELECT COUNT(*)INTO MYCOUNT FROM VIEW78;SELECT COUNT(*)INTO MYCOUNT FROM VIEW89;END GO
CREATE TABLE test ( id bigserial NOT NULL, key character varying(32) NOT NULL, value bigint NOT NULL, CONSTRAINT test_pkey PRIMARY KEY (id) )
<filename>foundation/african_marketplace_data_-_subcategories.sql INSERT INTO SUBCATEGORIES (CATEGORY_ID, SUBCATEGORY_ID, NAME, CREATED_BY, CREATED_DATE, LAST_MODIFIED_BY, LAST_MODIFIED_DATE) VALUES (1, 1, 'Animal Products - Other', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (1, 2, 'Livestock', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (1, 3, 'Poultry', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (2, 4, 'Beans', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (3, 5, 'Maize', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (4, 6, 'Barley', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (4, 7, 'Millet', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (4, 8, 'Sorghum', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (4, 9, 'Wheat', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (5, 10, 'Rice', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (6, 11, 'Avocado', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (6, 12, 'Bananas', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (6, 13, 'Fruits', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (6, 14, 'Lemons', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (6, 15, 'Limes', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (6, 16, 'Mangoes', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (6, 17, 'Oranges', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (6, 18, 'Pawpaw', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (6, 19, 'Pineapples', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (7, 20, 'Coffee', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (7, 21, 'Cotton', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (7, 22, 'Tea', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (7, 23, 'Tobacco', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (7, 24, 'Vanilla', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (8, 25, 'Peas', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (9, 26, 'Cassava', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (9, 27, 'Potatoes', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (10, 28, 'Nuts', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (10, 29, 'Simsim', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (10, 30, 'Sunflowers', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (11, 31, 'Brinjals', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (11, 32, 'Cabbages', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (11, 33, 'Capsicums', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (11, 34, 'Carrots', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (11, 35, 'Cauliflower', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (11, 36, 'Chillies', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (11, 37, 'Cucumber', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (11, 38, 'Ginger', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (11, 39, 'Kales', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (11, 40, 'Lettuce', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (11, 41, 'Onions', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP), (11, 42, 'Tomatoes', CURRENT_USER, CURRENT_TIMESTAMP, CURRENT_USER, CURRENT_TIMESTAMP);
<filename>src/main/resources/initTablePosts.sql<gh_stars>0 CREATE TABLE posts ( id SERIAL PRIMARY KEY, title VARCHAR(20), content VARCHAR(5000), description VARCHAR(100), age int );
<reponame>ldifederico/Burger<filename>db/seeds.sql<gh_stars>0 INSERT INTO burgers (burger_name, devoured) VALUES ("Big Mac", TRUE); INSERT INTO burgers (burger_name) VALUES ("Whopper"); INSERT INTO burgers (burger_name, devoured) VALUES ("Filet-O-Fish", TRUE);
<reponame>jwatte/mwreg<filename>MySQL-schema.sql<gh_stars>0 /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; DROP TABLE IF EXISTS `events`; CREATE TABLE `events` ( `eventid` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `location` varchar(255) DEFAULT NULL, `starttime` datetime DEFAULT NULL, `endtime` datetime DEFAULT NULL, `url` varchar(255) DEFAULT NULL, `published` tinyint(4) DEFAULT NULL, `submitter` int(10) unsigned NOT NULL, PRIMARY KEY (`eventid`), KEY `starttime` (`starttime`), KEY `endtime` (`endtime`), KEY `submitter` (`submitter`) ) ENGINE=InnoDB AUTO_INCREMENT=200000 DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `mech_event_registration`; CREATE TABLE `mech_event_registration` ( `mechid` int(10) unsigned NOT NULL, `eventid` int(10) unsigned NOT NULL, `teamid` int(10) unsigned NOT NULL, `reguser` int(10) unsigned NOT NULL, `regtime` datetime DEFAULT NULL, `comments` varchar(255) DEFAULT NULL, `paid` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`mechid`,`eventid`), KEY `reguser` (`reguser`), KEY `eventid` (`eventid`), KEY `teamid` (`teamid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `proposedevents`; CREATE TABLE `proposedevents` ( `proposedeventid` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `location` varchar(255) DEFAULT NULL, `starttime` datetime DEFAULT NULL, `endtime` datetime DEFAULT NULL, `url` varchar(255) DEFAULT NULL, `submitter` int(10) unsigned NOT NULL, `approver` int(10) unsigned DEFAULT NULL, `approvedtime` datetime DEFAULT NULL, `submittedtime` datetime DEFAULT NULL, PRIMARY KEY (`proposedeventid`), KEY `starttime` (`starttime`), KEY `endtime` (`endtime`), KEY `submitter` (`submitter`), KEY `approver` (`approver`), KEY `submittedtime` (`submittedtime`) ) ENGINE=InnoDB AUTO_INCREMENT=500000 DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `mechs`; CREATE TABLE `mechs` ( `mechid` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `builder` int(10) unsigned NOT NULL, `team` int(10) unsigned NOT NULL, `url` varchar(255) NOT NULL, PRIMARY KEY (`mechid`), KEY `name` (`name`), KEY `builder` (`builder`), KEY `team` (`team`) ) ENGINE=InnoDB AUTO_INCREMENT=100000 DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `sessions`; CREATE TABLE `sessions` ( `sessionid` varchar(255) NOT NULL DEFAULT '', `data` text, `expires` datetime DEFAULT NULL, PRIMARY KEY (`sessionid`), KEY `expires` (`expires`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `teammembers`; CREATE TABLE `teammembers` ( `teamid` int(10) unsigned NOT NULL, `userid` int(10) unsigned NOT NULL, `membersince` datetime NOT NULL, `teamadmin` tinyint(4) DEFAULT '0', `approved` tinyint(4) DEFAULT '0', PRIMARY KEY (`teamid`,`userid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `teams`; CREATE TABLE `teams` ( `teamid` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `leader` int(10) unsigned NOT NULL, `url` varchar(255) NOT NULL, PRIMARY KEY (`teamid`), KEY `name` (`name`), KEY `leader` (`leader`) ) ENGINE=InnoDB AUTO_INCREMENT=300000 DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `useremaillog`; CREATE TABLE `useremaillog` ( `userid` int(10) unsigned NOT NULL, `email` varchar(255) DEFAULT NULL, `setdate` datetime DEFAULT NULL, `verified` tinyint(4) NOT NULL DEFAULT '0', KEY `userid` (`userid`), KEY `email` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `useriplog`; CREATE TABLE `useriplog` ( `userid` int(10) unsigned NOT NULL, `ipaddr` varchar(64) DEFAULT NULL, `attime` datetime DEFAULT NULL, KEY `userid` (`userid`), KEY `ipaddr` (`ipaddr`), KEY `attime` (`attime`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `usernamelog`; CREATE TABLE `usernamelog` ( `userid` int(10) unsigned NOT NULL, `name` varchar(255) DEFAULT NULL, `setdate` datetime DEFAULT NULL, KEY `userid` (`userid`), KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `userid` int(10) unsigned NOT NULL AUTO_INCREMENT, `email` varchar(255) DEFAULT NULL, `verified` tinyint(4) DEFAULT '0', `verifykey` varchar(255) DEFAULT NULL, `passwordhash` varchar(255) DEFAULT NULL, `registerdate` datetime DEFAULT NULL, `disabled` tinyint(4) DEFAULT '0', `name` varchar(255) DEFAULT NULL, `adminlevel` tinyint(4) DEFAULT '0', PRIMARY KEY (`userid`) ) ENGINE=InnoDB AUTO_INCREMENT=400000 DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `sentmails`; CREATE TABLE `sentmails` ( `sentmailid` int(10) unsigned NOT NULL AUTO_INCREMENT, `address` varchar(255) DEFAULT NULL, `subject` varchar(255) DEFAULT NULL, `sendtime` datetime DEFAULT NULL, PRIMARY KEY (`sentmailid`), KEY `address` (`address`), KEY `sendtime` (`sendtime`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */;
<filename>pet_owners.sql DROP DATABASE IF EXISTS pet_owners; CREATE DATABASE IF NOT EXISTS pet_owners; -- Creates the "pet_owners" database -- USE pet_owners;
-- CreateTable CREATE TABLE "User" ( "id" TEXT NOT NULL, "username" TEXT NOT NULL, "email" TEXT NOT NULL, "password" TEXT NOT NULL, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "Post" ( "id" TEXT NOT NULL, "slug" TEXT NOT NULL, "authorId" TEXT NOT NULL, "title" TEXT NOT NULL, "body" TEXT NOT NULL, "published" BOOLEAN NOT NULL DEFAULT false, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" TIMESTAMP(3) NOT NULL, PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "Tag" ( "id" TEXT NOT NULL, "name" TEXT NOT NULL, "slug" TEXT NOT NULL, PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "Topic" ( "id" TEXT NOT NULL, "name" TEXT NOT NULL, "slug" TEXT NOT NULL, PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "Image" ( "id" TEXT NOT NULL, "postId" TEXT NOT NULL, "name" TEXT NOT NULL, "url" TEXT NOT NULL, PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "_PostToTag" ( "A" TEXT NOT NULL, "B" TEXT NOT NULL ); -- CreateTable CREATE TABLE "_PostToTopic" ( "A" TEXT NOT NULL, "B" TEXT NOT NULL ); -- CreateIndex CREATE UNIQUE INDEX "User.username_unique" ON "User"("username"); -- CreateIndex CREATE UNIQUE INDEX "User.email_unique" ON "User"("email"); -- CreateIndex CREATE UNIQUE INDEX "Post.slug_unique" ON "Post"("slug"); -- CreateIndex CREATE UNIQUE INDEX "Tag.slug_unique" ON "Tag"("slug"); -- CreateIndex CREATE UNIQUE INDEX "Topic.slug_unique" ON "Topic"("slug"); -- CreateIndex CREATE UNIQUE INDEX "_PostToTag_AB_unique" ON "_PostToTag"("A", "B"); -- CreateIndex CREATE INDEX "_PostToTag_B_index" ON "_PostToTag"("B"); -- CreateIndex CREATE UNIQUE INDEX "_PostToTopic_AB_unique" ON "_PostToTopic"("A", "B"); -- CreateIndex CREATE INDEX "_PostToTopic_B_index" ON "_PostToTopic"("B"); -- AddForeignKey ALTER TABLE "Post" ADD FOREIGN KEY ("authorId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE; -- AddForeignKey ALTER TABLE "Image" ADD FOREIGN KEY ("postId") REFERENCES "Post"("id") ON DELETE CASCADE ON UPDATE CASCADE; -- AddForeignKey ALTER TABLE "_PostToTag" ADD FOREIGN KEY ("A") REFERENCES "Post"("id") ON DELETE CASCADE ON UPDATE CASCADE; -- AddForeignKey ALTER TABLE "_PostToTag" ADD FOREIGN KEY ("B") REFERENCES "Tag"("id") ON DELETE CASCADE ON UPDATE CASCADE; -- AddForeignKey ALTER TABLE "_PostToTopic" ADD FOREIGN KEY ("A") REFERENCES "Post"("id") ON DELETE CASCADE ON UPDATE CASCADE; -- AddForeignKey ALTER TABLE "_PostToTopic" ADD FOREIGN KEY ("B") REFERENCES "Topic"("id") ON DELETE CASCADE ON UPDATE CASCADE;