sql
stringlengths
6
1.05M
SET search_path TO public; create extension pg_trgm; create extension btree_gin; create schema dds; create table dds.entity ( urn text not null, loaded_by text not null, entity_name text not null, entity_type text not null, entity_name_short text, info text, search_data text, codes jsonb, grid jsonb, json_data jsonb, json_system jsonb, json_data_ui jsonb, htmls jsonb, links jsonb, notifications jsonb, tables jsonb, tags jsonb, processed_dttm timestamp default now() ); create index entity_urn_index on dds.entity (urn); create index entity_name_trgm_index on dds.entity using gin (entity_name gin_trgm_ops); create index entity_loaded_by_index on dds.entity using gin (loaded_by); create index entity_type_index on dds.entity using gin (entity_type); create index entity_search_data_trgm_gin_index on dds.entity using gin (search_data gin_trgm_ops); create index entity_json_system ON dds.entity using gin (json_system); create table dds.relation ( source text default 'non', destination text default 'non', type text not null, loaded_by text not null, attribute text default 'non', processed_dttm timestamp default now() ); create index relation_source_index on dds.relation (source); create index relation_destination_index on dds.relation (destination); create index relation_attribute_index on dds.relation (attribute); create index relation_loaded_by_index on dds.relation using gin (loaded_by); create table dds.sample ( urn text not null, column_def jsonb not null, cnt_rows int not null, sample_data jsonb not null, processed_dttm timestamp default now() ); create index sample_urn_index on dds.sample (urn); create schema tuning; create table tuning.breadcrumb ( urn text not null, breadcrumb_urn jsonb, breadcrumb_entity jsonb, loaded_by text not null, processed_dttm timestamp default now() ); create index breadcrumb_urn_index on tuning.breadcrumb (urn); create table tuning.relations_type ( source_type text, target_type text, attribute_type text, relation_type text, source_group_name text, target_group_name text, attribute_group_name text, loaded_by text, processed_dttm timestamp default now() ); create table tuning.search_help ( type text not null, name text not null, description text not null, loaded_by text, processed_dttm timestamp default now() ); create schema mart; create table mart.entity ( load_dt date not null, urn text not null, loaded_by text not null, entity_name text not null, entity_type text not null, entity_name_short text, info text, grid jsonb, json_data jsonb, json_system jsonb, json_data_ui jsonb, codes jsonb, links jsonb, htmls jsonb, notifications jsonb, tables jsonb, search_data text, tags jsonb, processed_dttm timestamp default now() );
begin; truncate table abort_create_needed_cr_heap_truncate_table; DROP TABLE abort_create_needed_cr_heap_truncate_table; commit;
use brihaspati; drop table if exists USER_PREF; CREATE TABLE USER_PREF ( USER_ID INTEGER NOT NULL, USER_LANG VARCHAR (32) default 'english' NOT NULL, PRIMARY KEY(USER_ID), UNIQUE (USER_ID) ); insert into ID_TABLE (id_table_id, table_name, next_id, quantity) VALUES (158, 'USER_PREF', 100, 1); INSERT INTO USER_PREF (USER_ID, USER_LANG) SELECT USER_ID, USER_LANG FROM TURBINE_USER;
-- CIRCUS CS DB Migration 10 CREATE INDEX ON study_list (patient_id);
# add forum schemas, data and views # Table schemas for forum-related tables # Drop order and create order are the reverse of each other because of the # foreign keys. DROP TABLE IF EXISTS forum_thread_player_map; DROP TABLE IF EXISTS forum_board_player_map; DROP TABLE IF EXISTS forum_post; DROP TABLE IF EXISTS forum_thread; DROP TABLE IF EXISTS forum_board; CREATE TABLE forum_board ( id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) NOT NULL, board_color VARCHAR(7) NOT NULL, thread_color VARCHAR(7) NOT NULL, description VARCHAR(255), sort_order TINYINT UNSIGNED NOT NULL ); CREATE TABLE forum_thread ( id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, board_id SMALLINT UNSIGNED NOT NULL, title VARCHAR(100) NOT NULL, deleted BIT NOT NULL DEFAULT 0, INDEX (board_id), FOREIGN KEY (board_id) REFERENCES forum_board(id) ); CREATE TABLE forum_post( id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, thread_id MEDIUMINT UNSIGNED NOT NULL, poster_player_id SMALLINT UNSIGNED NOT NULL, creation_time TIMESTAMP NOT NULL DEFAULT '0000-00-00', last_update_time TIMESTAMP NOT NULL DEFAULT '0000-00-00', body TEXT NOT NULL, deleted BIT NOT NULL DEFAULT 0, INDEX (thread_id), FOREIGN KEY (thread_id) REFERENCES forum_thread(id), FOREIGN KEY (poster_player_id) REFERENCES player(id) ); CREATE TABLE forum_board_player_map( board_id SMALLINT UNSIGNED NOT NULL, player_id SMALLINT UNSIGNED NOT NULL, read_time TIMESTAMP DEFAULT '0000-00-00', PRIMARY KEY (board_id, player_id), FOREIGN KEY (board_id) REFERENCES forum_board(id), FOREIGN KEY (player_id) REFERENCES player(id) ); CREATE TABLE forum_thread_player_map( thread_id MEDIUMINT UNSIGNED NOT NULL, player_id SMALLINT UNSIGNED NOT NULL, read_time TIMESTAMP DEFAULT '0000-00-00', PRIMARY KEY (thread_id, player_id), FOREIGN KEY (thread_id) REFERENCES forum_thread(id), FOREIGN KEY (player_id) REFERENCES player(id) ); # Prepopulated data for forum-related tables # Delete order and insert order are the reverse of each other because of the # foreign keys. DELETE FROM forum_thread_player_map; DELETE FROM forum_board_player_map; DELETE FROM forum_post; DELETE FROM forum_thread; DELETE FROM forum_board; INSERT INTO forum_board (id, name, board_color, thread_color, description, sort_order) VALUES ('1', 'Miscellaneous Chatting', '#d0e0f0', '#e7f0f7', 'Any topic that doesn\'t fit anywhere else.', '20'), ('2', 'Gameplay', '#f0f0c0', '#f7f7e0', 'Button Men itself: sharing strategies, comparing buttons and skills, etc.', '40'), ('3', 'Features and Bugs', '#f0d0d0', '#f7e7e7', 'Feedback on new features that have been added, features you\'d like to see or bugs you\'ve discovered.', '60'); # Views for forum-related tables DROP VIEW IF EXISTS forum_player_post_view; CREATE VIEW forum_player_post_view AS SELECT post.*, poster.name_ingame AS poster_name, thread.board_id AS board_id, reader.id AS reader_player_id, (post.last_update_time >= GREATEST(COALESCE(tpm.read_time, 0), COALESCE(bpm.read_time, 0)) AND reader.id != poster.id AND post.deleted = 0) AS is_new FROM forum_post AS post INNER JOIN player AS poster ON poster.id = post.poster_player_id INNER JOIN forum_thread AS thread ON thread.id = post.thread_id AND thread.deleted = 0 INNER JOIN player AS reader LEFT JOIN forum_thread_player_map AS tpm ON reader.id = tpm.player_id AND tpm.thread_id = post.thread_id LEFT JOIN forum_board_player_map AS bpm ON reader.id = bpm.player_id AND bpm.board_id = thread.board_id;
--test to_timestamp function, with en_US language --+ holdcas on; set system parameters 'intl_date_lang=en_US'; prepare st from 'select to_timestamp(?, ?)'; execute st using '10:10:45 CST 8', 'HH:MI:SS TZD TZH'; execute st using '10:10:45 America/Tijuana PST -8', 'HH:MI:SS TZR TZD5 TZH'; prepare st from 'select to_timestamp(?, ?, ''en_US'')'; --test: time execute st using '20 10 45 +10/00', 'SS HH MI +TZH/TZM'; execute st using '05 55 58 am America/Manaus', 'HH24 MI SS AM TZR'; execute st using 'EDT-12:34:22 (pm) America/New_York', 'TZD-HH:MI:SS (AM) TZR'; --test: datetime execute st using '1999 Tuesday -10', 'YYYY DD TZH'; execute st using 'December 3, 1931 23:33:10 PM 33', 'MONTH DD, YYYY HH:MI:SS PM TZM'; execute st using '2000-April-2 3:00:03 pm Asia/Baku-AZST', 'YYYY-MONTH-DD HH:MI:SS PM TZR-TZD'; execute st using '11 30 59 pm Feb/27/2000 America/Fortaleza BRT', 'HH24 MI SS AM MON/DD/YYYY TZR TZD'; --test: [er] unmatched TZR a TZD execute st using '2000-April-2 3:00:03 pm Asia/Baku-AZST 4:00', 'YYYY-MONTH-DD HH:MI:SS PM TZR-TZD TZH:TZM'; --test: special time --DST: non-exist time execute st using '8 March, 2020 2 am America/Chicago', 'DD MONTH, YYYY HH AM TZR'; execute st using '1940, Apr. 28 2:30 America/New_York EST', 'YYYY, MON. DD HH24:MI TZR TZD'; execute st using '1940, Apr. 28 2:30 America/New_York EDT', 'YYYY, MON. DD HH24:MI TZR TZD'; execute st using '1920, Mar. 28 2:00 America/New_York', 'YYYY, MON. DD HH24:SS TZR'; deallocate prepare st; set timezone 'Asia/Seoul'; --+ holdcas off;
/* ################################################################################ # TESTCASE NAME : skew_hint_01.py # COMPONENT(S) : skew hint功能测试: skew hint DFX测试 # PREREQUISITE : skew_setup.py # PLATFORM : all # DESCRIPTION : skew hint # TAG : hint # TC LEVEL : Level 1 ################################################################################ */ --I1.设置guc参数 --S1.设置schema set current_schema = skew_hint; --S1.关闭sort agg和nestloop set enable_sort = off; set enable_nestloop = off; --S2.关闭query下推 --S3.设置计划格式 set explain_perf_mode = normal; --S3.设置query_dop使得explain中倾斜优化生效 set query_dop = 1002; --I2.完整性测试 --S1.正确示例 explain(verbose on, costs off) select /*+ skew(skew_t1 (b) (10)) */count(*) from skew_t1, skew_t2 t2 where skew_t1.b = t2.a; --S2.表缺省 explain(verbose on, costs off) select /*+ skew(b (10)) */count(*) from skew_t1, skew_t2 t2 where skew_t1.b = t2.a; --S3.列缺省 explain(verbose on, costs off) select /*+ skew(skew_t1 (10)) */count(*) from skew_t1, skew_t2 t2 where skew_t1.b = t2.a; --S3.值缺省 explain(verbose on, costs off) select /*+ skew(skew_t1 (b)) */count(*) from skew_t1, skew_t2 t2 where skew_t1.b = t2.a; --I3.格式错误测试 --S1.正确示例 explain(verbose on, costs off) select /*+ skew(skew_t1 (b) (10)) */count(*) from skew_t1, skew_t2 t2 where skew_t1.b = t2.a; --S2.多表无括号 explain(verbose on, costs off) select /*+ skew(skew_t1 t2 (b) (10)) */count(*) from skew_t1, skew_t2 t2 where skew_t1.b = t2.a; --S3.列无括号 explain(verbose on, costs off) select /*+ skew(skew_t1 b (10)) */count(*) from skew_t1, skew_t2 t2 where skew_t1.b = t2.a; --S4.值无括号 explain(verbose on, costs off) select /*+ skew(skew_t1 (b) 10) */count(*) from skew_t1, skew_t2 t2 where skew_t1.b = t2.a; --I4.重复hint测试 --S1.完全相同 explain(verbose on, costs off) select /*+ skew(skew_t1 (a) (10)) skew(skew_t1 (a) (10))*/ * from skew_t1 join hint.hint_t1 on skew_t1.a = hint.hint_t1.a; --S2.表相同,列存在包含情况 explain(verbose on, costs off) select /*+ skew(skew_t1 (a) (10)) skew(skew_t1 (a b) (10 10))*/ * from skew_t1 join hint.hint_t1 on skew_t1.a = hint.hint_t1.a; --S3.不同层则不算重复:不提升可能出现hint未使用 explain(verbose on, costs off) select /*+ skew(s (b) (10))*/ * from skew_t1 s join (select /*+ skew(s (b) (10)) */count(*) as a from skew_t1 s, skew_t2 t2 where s.b = t2.c)tp(a) on s.b = tp.a; --S4.不同层,不提升出现同名hint未用时,可以通过修改别名判断是哪个未用 explain(verbose on, costs off) select /*+ skew(s (b) (10))*/ * from skew_t1 s join (select /*+ skew(ss (b) (10)) */count(*) as a from skew_t1 ss, skew_t2 t2 where ss.b = t2.c)tp(a) on s.b = tp.a; --S5.不同层,提升后,无论hint指定的别名表实际上是否相同,都会出现:relation name "xx" is ambiguous的提示 --实际表相同 explain(verbose on, costs off) select /*+ skew(s (b) (10))*/ * from skew_t1 s join (select /*+ skew(s (b) (10)) */s.a as sa from skew_t1 s, skew_t2 t2 where s.b = t2.c)tp(a) on s.b = tp.a; --实际表不同 explain(verbose on, costs off) select /*+ skew(s (b) (10))*/ * from skew_t1 s join (select /*+ skew(s (b) (10)) */s.a as sa from skew_t2 s, skew_t3 t3 where s.b = t3.c)tp(a) on s.b = tp.a; --S6.不同层,提升后,可以通过修改别名避免出现S5中的错误 explain(verbose on, costs off) select /*+ skew(s (b) (10))*/ * from skew_t1 s join (select /*+ skew(ss (b) (10)) */ss.a as sa from skew_t1 ss, skew_t2 t2 where ss.b = t2.c)tp(a) on s.b = tp.a; explain(verbose on, costs off) select /*+ skew(s (b) (10))*/ * from skew_t1 s join (select /*+ skew(ss (b) (10)) */ss.a as sa from skew_t2 ss, skew_t3 t3 where ss.b = t3.c)tp(a) on s.b = tp.a; --I5.表提示测试 --S1.表未使用别名 explain(verbose on, costs off) select /*+ skew(skew_t2 (b) (10)) */count(*) from skew_t1, skew_t2 t2 where skew_t1.b = t2.a; --S2.表在query中不存在 explain(verbose on, costs off) select /*+ skew(skew_t3 (b) (10)) */count(*) from skew_t1, skew_t2 t2 where skew_t1.b = t2.a; --S3.表名存在歧义 explain(verbose on, costs off) select /*+ skew(skew_t1 (b) (10)) */count(*) from skew_hint.skew_t1, hint.skew_t1 where skew_hint.skew_t1.b = hint.skew_t1.a; --S4.表为不支持类型 --I6.列提示测试 --S1.列找不到 explain(verbose on, costs off) select /*+ skew(skew_t1 (aa) (10)) */count(*) from skew_t1, skew_t2 t2 where skew_t1.b = t2.a; --S2.列名存在歧义 explain(verbose on, costs off) select /*+ skew((skew_t1 t2) (a) (10)) */count(*) from skew_t1, skew_t2 t2 where skew_t1.b = t2.a; --I7.不支持重分布类型测试 --对于不支持重分布的类型,在hint中,应支持输入(不报语法错误),不支持解析(提示不能支持重分布) --S1.money类型 explain(verbose on, costs off) select /*+ skew(typetest (col_money) ('59'))*/ * from typetest join skew_t1 on col_integer = 10; --S2.十六进制 create table hex_t(a int, b raw) distribute by hash(a); insert into hex_t values(1,'7fffffff'); select * from hex_t; analyze hex_t; explain(verbose on, costs off) select /*+skew(hex_t(b)('7fffffff'))*/ * from hex_t, text_t where hex_t.a=text_t.a; --S3.bool型 create table bool_t(a int,b bool) distribute by hash(a); insert into bool_t values(1,true); explain(verbose on, costs off) select /*+skew(bool_t(b)(false))*/ * from bool_t, text_t where text_t.a=text_t.a; --S4.位串 create table bit_t(a int, b bit(3)) distribute by hash(a); insert into bit_t values(1,B'101'); select * from bit_t; explain(verbose on, costs off) select /*+skew(bit_t(b)(B'101'))*/ * from bit_t, text_t where bit_t.a=text_t.a; --I8.值无法转换为datum:通常出现在string类型的值未使用单引号场景或者值越界无法转换的场景 create table c_t(a int, b char) distribute by hash(a); insert into c_t values(generate_series(1,10),1); --S1.错误场景 explain(verbose on, costs off) select /*+ skew(c_t (b) (1)) */count(*) from char_t, c_t where char_t.c = c_t.b; --S2.正确场景 explain(verbose on, costs off) select /*+ skew(c_t (b) ('1')) */count(*) from char_t, c_t where char_t.c = c_t.b; --S3.值范围问题 explain(verbose on, costs off) select /*+ skew(c_t (a) (111111111111111111111111111111)) */count(*) from char_t, c_t where char_t.c = c_t.b; --S4.值与column数量不符 explain(verbose on, costs off) select /*+ skew(c_t (a b) (1 'a' 2)) */count(*) from char_t, c_t where char_t.c = c_t.b; --S5.单列倾斜值超过10个 explain(verbose on, costs off) select /*+ skew(c_t (a) (1 2 3 4 5 6 7 8 9 10 11)) */count(*) from char_t, c_t where char_t.c = c_t.b; --I9.Hint没有被使用时提示测试:unused hint --S1.正确hint的指定 explain(verbose on, costs off) select /*+ skew(s (b) (10)) */count(*) from skew_t1 s, skew_t2 t2 where s.b = t2.c; --S2.列没有包含分布键 explain(verbose on, costs off) select /*+ skew(skew_t2 (a c) (1 1)) */ count(distinct a) from skew_t2 group by a,b; --S3.hint指定有误:skew_t1表倾斜,却指定了skew_t2表。 explain(verbose on, costs off) select /*+ skew(t2 (b) (10)) */count(*) from skew_t1 s, skew_t2 t2 where s.b = t2.c; --I7.还原设置 --S1.还原query_dop set query_dop = 2002; drop table if exists warehouse; create table warehouse ( w_warehouse_sk numeric(100,4) null, w_warehouse_id char(16) not null, w_warehouse_name varchar(20) , w_warehouse_sq_ft integer , w_street_number char(10) , w_street_name varchar(60) , w_street_type char(15) , w_suite_number char(10) , w_city varchar(60) , w_county varchar(30) , w_state char(2) , w_zip char(10) , w_country varchar(20) , w_gmt_offset decimal(5,2) )with(orientation = row,compression=no) distribute by replication partition by range(w_warehouse_sk) (partition p1 values less than(maxvalue)); drop table if exists store_returns; create table store_returns ( sr_returned_date_sk integer(1000,99) null , sr_return_time_sk integer , sr_item_sk integer not null, sr_customer_sk integer , sr_cdemo_sk integer , sr_hdemo_sk integer , sr_addr_sk integer , sr_store_sk integer , sr_reason_sk integer , sr_ticket_number bigint not null, sr_return_quantity integer , sr_return_amt decimal(7,2) , sr_return_tax decimal(7,2) , sr_return_amt_inc_tax decimal(7,2) , sr_fee decimal(7,2) , sr_return_ship_cost decimal(7,2) , sr_refunded_cash decimal(7,2) , sr_reversed_charge decimal(7,2) , sr_store_credit decimal(7,2) , sr_net_loss decimal(7,2) )with(orientation = row ,compression=yes) distribute by hash (sr_returned_date_sk); create index ss on store_returns(sr_returned_date_sk); explain select/*+hashjoin(warehouse store_returns) indexscan(store_returns ss)*/ min( case when sr_return_time_sk-sr_item_sk>sr_item_sk then sr_return_time_sk when sr_return_time_sk-sr_item_sk <> sr_item_sk then (case when sr_return_time_sk>sr_item_sk then sr_return_time_sk else sr_return_time_sk-1 end) else sr_item_sk end), count(distinct sr_item_sk ) from warehouse RIGHT join store_returns on sr_returned_date_sk=w_warehouse_sk group by sr_returned_date_sk having count(distinct case when sr_returned_date_sk>sr_returned_date_sk-sr_item_sk then sr_item_sk else sr_item_sk+2 END)<>avg(sr_item_sk) and count(distinct sr_item_sk )<3;
CREATE OR ALTER PROCEDURE usp_CalculateFutureValueForAccount (@accountId INT, @interestRate FLOAT) AS SELECT a.Id, ah.FirstName AS [First Name], ah.LastName AS [Last Name], a.Balance AS [Current Balance], [dbo].[ufn_CalculateFutureValue] (a.Balance, @interestRate, 5) FROM Accounts AS a JOIN AccountHolders AS ah ON a.AccountHolderId = ah.Id WHERE a.Id = @accountId
create database if not exists myJavaDB; use myJavaDB; create table if not exists Users( userId varchar(25) unique not null, name varchar(20) not null, password varchar(200) not null, position varchar(10) not null, primary key(userId) ); create table if not exists Task( id int not null auto_increment, title varchar(20) not null, description varchar(50) not null, priority smallint default null, taskDate date, status varchar(150), userId varchar(25), primary key(id), foreign key (userId) references Users(userId) on update cascade on delete set null ); insert into Users (userId, name, password, position) values ('Admin', 'Admin', '$2a$10$K7bEe/WhUemZ67zCP.BVxe.HtLsbBp9jFKc77ox9.6yzhY6urMM8C', 'admin'); commit;
<reponame>cPolaris/school-is-fun DELETE FROM User; DELETE FROM Location; DELETE FROM HobbyTag; DROP PROCEDURE ; DROP VIEW TakenRegistrationView; DROP TABLE TempUser; DROP TABLE Follow; DROP TABLE Appear; DROP TABLE UserHobby; DROP TABLE Message; DROP TABLE Rank; DROP TABLE HobbyTag; DROP TABLE Location; DROP TABLE User;
CREATE TABLE users ( id BIGSERIAL PRIMARY KEY, created TIMESTAMP NOT NULL, updated TIMESTAMP, created_by BIGINT, updated_by BIGINT, first_name VARCHAR(128), last_name VARCHAR(128), username VARCHAR(128), email VARCHAR(256) NOT NULL, phone VARCHAR(16), status SMALLINT NOT NULL, FOREIGN KEY (created_by) REFERENCES users(id), FOREIGN KEY (updated_by) REFERENCES users(id) ); CREATE UNIQUE INDEX ON users USING btree (username); CREATE UNIQUE INDEX ON users USING btree (email); CREATE UNIQUE INDEX ON users USING btree (phone);
INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (302, 'EGF', true, 'egf', NULL, 'Financials', 4); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (303, 'Budgeting', true, NULL, 302, 'Budgeting', 8); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (304, 'Loans and Grants', false, NULL, 302, 'Loans and Grants', 9); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (305, 'Assigned Revenue Reports', false, NULL, 302, 'Assigned Revenue Reports', 9); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (306, 'Transactions', true, NULL, 302, 'Transactions', 1); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (307, 'Reports', true, NULL, 302, 'Reports', 2); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (308, 'Masters', true, NULL, 302, 'Masters', 3); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (309, 'Period End Activities', true, NULL, 302, 'Period End Activities', 4); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (310, 'Set-up', true, NULL, 302, 'Set-up', 5); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (311, 'Deductions', true, NULL, 302, 'Deductions', 7); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (313, 'Chart Of Account', true, NULL, 303, 'Chart Of Account', 2); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (314, 'Budget Addition Appropriation', true, NULL, 303, 'Budget Addition Appropriation', 1); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (315, 'Budget Reports', true, NULL, 307, 'Budget Reports', 4); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (316, 'Budget Details', true, NULL, 303, 'Budget Details', 3); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (317, 'Budget Definition', true, NULL, 303, 'Budget Definition', 1); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (318, 'Remittance Reports', true, NULL, 307, 'Remittance Reports', 5); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (319, 'Loans Reports', true, NULL, 304, 'Reports', 1); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (320, 'Fund', true, NULL, 308, 'Fund', 2); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (321, 'User Defined Codes', true, NULL, 308, 'User Defined Codes', 2); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (322, 'Function', true, NULL, 308, 'Function', 3); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (323, 'Budget Report', true, NULL, 303, 'Budget Report', 4); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (324, 'Receipts', false, NULL, 306, 'Receipts', 1); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (325, 'Expenditures', true, NULL, 306, 'Expenditures', 2); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (326, 'Journal Vouchers', true, NULL, 306, 'Journal Vouchers', 3); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (327, 'Contra Entries', true, NULL, 306, 'Contra Entries', 4); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (328, 'BRS', true, NULL, 306, 'BRS', 5); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (329, 'Financial Statements', true, NULL, 307, 'Financial Statements', 1); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (330, 'Accounting Records', true, NULL, 307, 'Accounting Records', 2); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (331, 'MIS Reports', true, NULL, 307, 'MIS Reports', 3); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (332, 'Chart of Accounts', true, NULL, 308, 'Chart of Accounts', 1); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (333, 'Supplier/Contractors', false, NULL, 308, 'Supplier/Contractors', 9); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (334, 'Schemes', true, NULL, 308, 'Schemes and Sub Schemes', 10); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (335, 'Salary Codes', false, NULL, 310, 'Salary Codes', 5); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (336, 'Report Schedule Mapping', true, NULL, 310, 'Report Schedule Mapping', 4); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (337, 'Cheque Printing Format', true, NULL, 310, 'Cheque Printing Format', 5); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (338, 'Remittance Recovery', true, NULL, 311, 'Remittance Recovery', 2); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (339, 'Party Types', true, NULL, 308, 'Party Types', 6); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (340, 'Contract Types', true, NULL, 308, 'Contract Types', 7); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (341, 'Recovery Masters', true, NULL, 310, 'Recovery Masters', 8); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (346, 'Procurement Orders', false, NULL, 325, 'Procurement Orders', 1); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (347, 'Bill Registers', true, NULL, 325, 'Bill Registers', 2); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (348, 'Bills Accounting', true, NULL, 325, 'Bills Accounting', 3); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (349, 'Payments', true, NULL, 325, 'Payments', 4); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (353, 'Salary Processing', true, NULL, 349, 'Salary Processing', 2); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (354, 'Pension Processing', true, NULL, 349, 'Pension Processing', 3); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (355, 'Salary Bills', false, NULL, 347, 'Salary Bills', 6); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (399, 'EGF-COMMON', false, 'egf', 302, 'EGF-COMMON', NULL); DROP SEQUENCE SEQ_EG_MODULE; CREATE SEQUENCE SEQ_EG_MODULE START WITH 412 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1;
DECLARE num1 number ; num2 number ; res number ; choise number ; BEGIN num1 := &num1 ; num2 := &num2 ; dbms_output.put_line('~~~MENUS~~~'); dbms_output.put_line('1. Addition'); dbms_output.put_line('2. Subtract'); dbms_output.put_line('3. Multiply'); dbms_output.put_line('4. Exit'); dbms_output.put_line('Enter your choise : '); choise := &choise ; IF ( choise = 1 ) THEN res := num1 + num2 ; dbms_output.put_line('Addition of two given number is : '|| res); ELSE IF ( choise = 2 ) THEN res := num1 - num2 ; dbms_output.put_line('Subtraction of two given number is : '|| res); ELSE IF ( choise = 3 ) THEN res := num1 * num2 ; dbms_output.put_line('Multiplication of two given number is : '|| res); ELSE dbms_output.put_line('Invalid Choise...'); END IF ; END ; /
<filename>koperasi.sql -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 04 Bulan Mei 2021 pada 15.35 -- Versi server: 10.4.16-MariaDB -- Versi PHP: 7.4.12 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: `koperasi` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_admin` -- CREATE TABLE `tb_admin` ( `id` int(11) NOT NULL, `nama_lengkap` varchar(100) NOT NULL, `username` varchar(100) NOT NULL, `password` varchar(100) NOT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `tb_admin` -- INSERT INTO `tb_admin` (`id`, `nama_lengkap`, `username`, `password`, `created_at`, `updated_at`) VALUES (1, '<NAME>', 'anas27', '<PASSWORD>', '2020-12-01 07:24:00', '2020-12-01 07:24:00'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_barang` -- CREATE TABLE `tb_barang` ( `id_barang` int(11) NOT NULL, `kode_barang` varchar(100) NOT NULL, `nama_barang` varchar(100) NOT NULL, `detail_barang` varchar(100) NOT NULL, `satuan` varchar(100) NOT NULL, `kategori` varchar(100) NOT NULL, `harga_beli` int(11) NOT NULL, `harga_jual` int(11) NOT NULL, `stok` int(11) NOT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `tb_barang` -- INSERT INTO `tb_barang` (`id_barang`, `kode_barang`, `nama_barang`, `detail_barang`, `satuan`, `kategori`, `harga_beli`, `harga_jual`, `stok`, `created_at`, `updated_at`) VALUES (1, 'BR001', 'BUSSINESS FILE 12', '<NAME>', 'PCS', 'ATK', 4800, 5760, 50, '2020-12-01 07:29:54', '0000-00-00 00:00:00'), (2, 'BR002', '<NAME>', '<NAME>', 'PCS', 'ATK', 19200, 23040, 9, '2020-12-01 07:31:03', '0000-00-00 00:00:00'), (3, 'BR003', 'TINTA EPRINT CAIR ', '<NAME>', 'PCS', 'ATK', 42000, 50400, 0, '2020-12-01 07:31:34', '0000-00-00 00:00:00'), (4, 'BR004', '<NAME>', '<NAME>', 'RIM', 'ATK', 50000, 60000, 114, '2020-12-01 07:32:13', '0000-00-00 00:00:00'), (5, 'BR005', 'PULPEN AE7', '<NAME>', 'PCS', 'ATK', 1800, 2160, 0, '2020-12-01 07:34:08', '0000-00-00 00:00:00'), (6, 'BR006', 'LEM STIK 24', '<NAME>', 'PCS', 'ATK', 4800, 5760, 0, '2020-12-01 07:34:58', '0000-00-00 00:00:00'), (7, 'BR007', 'KALKULATOR CITIZEN', '<NAME>', 'PCS', 'ATK', 162000, 194400, 0, '2020-12-01 07:36:12', '0000-00-00 00:00:00'), (8, 'BR008', '<NAME>', '<NAME>', 'DUS', 'ATK', 295000, 354000, 0, '2020-12-01 07:36:43', '0000-00-00 00:00:00'), (9, 'BR009', 'ODNERD GEMA', '<NAME>', 'PCS', 'ATK', 24000, 28800, 0, '2020-12-01 07:38:09', '0000-00-00 00:00:00'), (10, 'BR0010', 'AMPLOP PUTIH KECIL', '<NAME>', 'PCS', 'ATK', 19200, 23040, 0, '2020-12-01 07:39:47', '0000-00-00 00:00:00'), (11, 'BR0011', 'KWITANSI TELLER', '<NAME>', 'PCS', 'PRC', 11400, 13680, 0, '2020-12-01 07:41:23', '0000-00-00 00:00:00'), (12, 'BR0012', 'AMPLOP UANG SEDANG', '<NAME>', 'PCS', 'PRC', 1500, 1800, 0, '2020-12-01 07:44:16', '0000-00-00 00:00:00'), (13, 'BR0013', 'BUKTI KAS 50', '<NAME>', 'PCS', 'PRC', 3600, 4320, 0, '2020-12-01 07:45:10', '2020-12-02 05:42:33'), (15, 'BR0014', 'Pita Epson 2180', '<NAME>', 'PCS', 'SUP', 100000, 120000, -5, '2020-12-02 13:23:09', '0000-00-00 00:00:00'), (16, 'BR0015', '<NAME>', '<NAME>', 'PCS', 'AKB', 20000, 24000, 7, '2020-12-02 13:23:36', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_detailtransaksi` -- CREATE TABLE `tb_detailtransaksi` ( `id_detailtransaksi` int(11) NOT NULL, `id_transaksi` int(11) NOT NULL, `id_barang` int(11) NOT NULL, `jumlah_beli` int(11) NOT NULL, `total` int(11) NOT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `tb_detailtransaksi` -- INSERT INTO `tb_detailtransaksi` (`id_detailtransaksi`, `id_transaksi`, `id_barang`, `jumlah_beli`, `total`, `created_at`, `updated_at`) VALUES (1, 1, 1, 4, 23040, '2020-12-01 07:59:46', '0000-00-00 00:00:00'), (2, 1, 2, 5, 115200, '2020-12-01 07:59:48', '0000-00-00 00:00:00'), (3, 2, 1, 4, 23040, '2020-12-01 07:59:48', '0000-00-00 00:00:00'), (4, 2, 2, 5, 115200, '2020-12-01 07:59:48', '0000-00-00 00:00:00'), (5, 3, 2, 4, 92160, '2020-12-01 08:00:54', '0000-00-00 00:00:00'), (6, 3, 1, 3, 17280, '2020-12-01 08:00:54', '0000-00-00 00:00:00'), (7, 4, 1, 10, 57600, '2020-12-02 12:04:08', '0000-00-00 00:00:00'), (8, 4, 2, 15, 345600, '2020-12-02 12:04:09', '0000-00-00 00:00:00'), (9, 5, 1, 10, 57600, '2020-12-02 13:17:36', '0000-00-00 00:00:00'), (10, 5, 2, 9, 207360, '2020-12-02 13:17:38', '0000-00-00 00:00:00'), (11, 6, 1, 3, 17280, '2020-12-02 13:26:29', '0000-00-00 00:00:00'), (12, 6, 16, 7, 168000, '2020-12-02 13:26:29', '0000-00-00 00:00:00'), (13, 6, 15, 8, 960000, '2020-12-02 13:26:29', '0000-00-00 00:00:00'), (14, 7, 6, 5, 28800, '2020-12-02 14:57:32', '0000-00-00 00:00:00'), (15, 7, 4, 7, 420000, '2020-12-02 14:57:32', '0000-00-00 00:00:00'), (16, 7, 16, 6, 144000, '2020-12-02 14:57:32', '0000-00-00 00:00:00'), (17, 7, 1, 6, 34560, '2020-12-02 14:57:32', '0000-00-00 00:00:00'), (18, 8, 1, 3, 17280, '2021-03-14 19:49:45', '0000-00-00 00:00:00'), (19, 8, 16, 4, 96000, '2021-03-14 19:49:45', '0000-00-00 00:00:00'), (20, 8, 6, 2, 11520, '2021-03-14 19:49:45', '0000-00-00 00:00:00'), (21, 9, 1, 2, 11520, '2021-04-30 05:35:43', '0000-00-00 00:00:00'), (22, 9, 16, 3, 72000, '2021-04-30 05:35:45', '0000-00-00 00:00:00'), (23, 9, 4, 6, 360000, '2021-04-30 05:35:46', '0000-00-00 00:00:00'), (24, 10, 2, 3, 69120, '2021-04-30 05:37:11', '0000-00-00 00:00:00'), (25, 10, 6, 1, 5760, '2021-04-30 05:37:11', '0000-00-00 00:00:00'), (26, 10, 1, 2, 11520, '2021-04-30 05:37:11', '0000-00-00 00:00:00'), (27, 11, 1, 3, 17280, '2021-05-04 18:43:55', '0000-00-00 00:00:00'), (28, 11, 6, 2, 11520, '2021-05-04 18:43:55', '0000-00-00 00:00:00'), (29, 11, 16, 3, 72000, '2021-05-04 18:43:55', '0000-00-00 00:00:00'), (30, 11, 4, 3, 180000, '2021-05-04 18:43:55', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_inventori` -- CREATE TABLE `tb_inventori` ( `id_inventori` int(11) NOT NULL, `id_barang` int(11) NOT NULL, `qty` int(11) NOT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `tb_inventori` -- INSERT INTO `tb_inventori` (`id_inventori`, `id_barang`, `qty`, `created_at`, `updated_at`) VALUES (1, 2, 50, '2020-12-01 07:45:50', '0000-00-00 00:00:00'), (2, 1, 100, '2020-12-01 07:52:12', '0000-00-00 00:00:00'), (3, 4, 130, '2020-12-02 05:52:16', '2020-12-02 06:45:51'), (5, 15, 3, '2020-12-02 13:25:07', '0000-00-00 00:00:00'), (6, 16, 30, '2020-12-02 13:25:17', '0000-00-00 00:00:00'), (7, 6, 10, '2020-12-02 13:35:50', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_transaksi` -- CREATE TABLE `tb_transaksi` ( `id_transaksi` int(11) NOT NULL, `id_unit` int(11) NOT NULL, `cara_bayar` int(11) NOT NULL, `status_bayar` int(11) NOT NULL, `status_pengambilan` int(11) NOT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `tb_transaksi` -- INSERT INTO `tb_transaksi` (`id_transaksi`, `id_unit`, `cara_bayar`, `status_bayar`, `status_pengambilan`, `created_at`, `updated_at`) VALUES (1, 1, 0, 1, 1, '2020-12-01 07:59:48', '0000-00-00 00:00:00'), (2, 1, 0, 0, 0, '2020-12-01 07:59:48', '0000-00-00 00:00:00'), (3, 4, 0, 0, 1, '2020-12-01 08:00:54', '0000-00-00 00:00:00'), (4, 17, 0, 1, 1, '2020-12-02 12:04:09', '0000-00-00 00:00:00'), (5, 17, 1, 1, 1, '2020-12-02 13:17:38', '0000-00-00 00:00:00'), (6, 1, 1, 1, 1, '2020-12-02 13:26:29', '0000-00-00 00:00:00'), (7, 22, 1, 1, 1, '2020-12-02 14:57:33', '0000-00-00 00:00:00'), (8, 15, 1, 1, 1, '2021-03-14 19:49:45', '0000-00-00 00:00:00'), (9, 21, 1, 1, 1, '2021-04-30 05:35:46', '0000-00-00 00:00:00'), (10, 16, 1, 1, 1, '2021-04-30 05:37:12', '0000-00-00 00:00:00'), (11, 14, 1, 1, 1, '2021-05-04 18:43:55', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_unit` -- CREATE TABLE `tb_unit` ( `id_unit` int(11) NOT NULL, `nama_unit` varchar(100) NOT NULL, `alamat` varchar(100) NOT NULL, `no_telp` varchar(100) NOT NULL, `no_telp_pic` varchar(100) NOT NULL, `nama_pic` varchar(100) NOT NULL, `no_rek` varchar(100) NOT NULL, `status` int(11) NOT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `tb_unit` -- INSERT INTO `tb_unit` (`id_unit`, `nama_unit`, `alamat`, `no_telp`, `no_telp_pic`, `nama_pic`, `no_rek`, `status`, `created_at`, `updated_at`) VALUES (1, 'CIKAMPEK', 'Karawang', '0123456789', '0123456789', 'Dadang', '11223344', 1, '2020-12-01 07:47:39', '2020-12-02 07:50:48'), (2, 'Cilamaya', 'Karawang', '0123456789', '0123456789', 'Heru', '11223344', 1, '2020-12-01 07:48:27', '0000-00-00 00:00:00'), (3, 'Pasirukem', 'Karawang', '0123456789', '0123456789', 'Deni', '11223344', 1, '2020-12-01 07:48:51', '0000-00-00 00:00:00'), (4, 'TEGALWARU', 'Karawang', '0123456789', '0123456789', 'Susi', '11223344', 1, '2020-12-01 07:49:13', '2020-12-02 12:04:32'), (5, 'Talagasari', 'Karawang', '0123456789', '0123456789', 'Neni', '11223344', 1, '2020-12-01 07:49:43', '0000-00-00 00:00:00'), (6, '<NAME>', 'Karawang', '0123456789', '0123456789', 'Kokom', '11223344', 1, '2020-12-01 07:50:09', '0000-00-00 00:00:00'), (7, 'Jatisari', 'Karawang', '0123456789', '0123456789', 'Rudi', '11223344', 1, '2020-12-01 07:50:36', '0000-00-00 00:00:00'), (8, 'Gempol', 'Karawang', '0123456789', '0123456789', 'Ratna', '11223344', 1, '2020-12-01 07:51:06', '0000-00-00 00:00:00'), (9, 'Mekarmaya', 'Karawang', '0123456789', '0123456789', 'Joko', '11223344', 1, '2020-12-01 07:51:30', '0000-00-00 00:00:00'), (10, 'PANGULAH', 'Karawang', '08123456789', '08123456789', 'Roni', '11223344', 1, '2020-12-02 07:26:09', '0000-00-00 00:00:00'), (11, '<NAME>', 'Karawang', '08234567890', '08234567890', 'Robi', '11223344', 1, '2020-12-02 07:26:56', '0000-00-00 00:00:00'), (12, 'DUREN', 'Karawang', '08123456789', '08123456789', 'Kamil', '11223344', 1, '2020-12-02 07:27:35', '0000-00-00 00:00:00'), (13, 'CURUG', 'Karawang', '08123456789', '08123456789', 'Danang', '11223344', 1, '2020-12-02 07:28:15', '0000-00-00 00:00:00'), (14, 'BELENDUNG', 'Karawang', '08123456789', '08123456789', 'Roy', '11223344', 1, '2020-12-02 07:29:08', '0000-00-00 00:00:00'), (15, 'PURWASARI', 'Karawang', '08123456789', '08123456789', 'Bobi', '11223344', 1, '2020-12-02 07:29:54', '0000-00-00 00:00:00'), (16, 'JUANDA', 'Karawang', '08123456789', '08123456789', 'Danang', '11223344', 1, '2020-12-02 07:30:27', '0000-00-00 00:00:00'), (17, 'CIKALONGSARI', 'Karawang', '08123456789', '08123456789', 'Kiki', '11223344', 1, '2020-12-02 07:31:02', '0000-00-00 00:00:00'), (18, 'PARAKAN', 'Karawang', '08123456789', '08123456789', 'Mega', '11223344', 1, '2020-12-02 07:31:31', '0000-00-00 00:00:00'), (19, 'KIARA', 'Karawang', '08123456789', '08123456789', 'Sari', '11223344', 1, '2020-12-02 07:32:02', '0000-00-00 00:00:00'), (20, 'KOPEL', 'Karawang', '08123456789', '08123456789', 'Yusuf', '11223344', 1, '2020-12-02 07:32:37', '0000-00-00 00:00:00'), (21, 'JALAN BARU', 'Karawang', '08123456789', '08123456789', 'Jajang', '11223344', 1, '2020-12-02 07:33:53', '0000-00-00 00:00:00'), (22, 'KOSAMBI', 'Karawang', '08123456789', '08123456789', 'Junaedi', '11223344', 1, '2020-12-02 07:35:55', '0000-00-00 00:00:00'); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `tb_admin` -- ALTER TABLE `tb_admin` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `tb_barang` -- ALTER TABLE `tb_barang` ADD PRIMARY KEY (`id_barang`); -- -- Indeks untuk tabel `tb_detailtransaksi` -- ALTER TABLE `tb_detailtransaksi` ADD PRIMARY KEY (`id_detailtransaksi`); -- -- Indeks untuk tabel `tb_inventori` -- ALTER TABLE `tb_inventori` ADD PRIMARY KEY (`id_inventori`); -- -- Indeks untuk tabel `tb_transaksi` -- ALTER TABLE `tb_transaksi` ADD PRIMARY KEY (`id_transaksi`); -- -- Indeks untuk tabel `tb_unit` -- ALTER TABLE `tb_unit` ADD PRIMARY KEY (`id_unit`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `tb_admin` -- ALTER TABLE `tb_admin` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT untuk tabel `tb_barang` -- ALTER TABLE `tb_barang` MODIFY `id_barang` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT untuk tabel `tb_detailtransaksi` -- ALTER TABLE `tb_detailtransaksi` MODIFY `id_detailtransaksi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31; -- -- AUTO_INCREMENT untuk tabel `tb_inventori` -- ALTER TABLE `tb_inventori` MODIFY `id_inventori` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT untuk tabel `tb_transaksi` -- ALTER TABLE `tb_transaksi` MODIFY `id_transaksi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT untuk tabel `tb_unit` -- ALTER TABLE `tb_unit` MODIFY `id_unit` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
CREATE TABLE [Production].[ProductReview] ( [ProductReviewID] INT IDENTITY (1, 1) NOT NULL, [ProductID] INT NOT NULL, [ReviewerName] [dbo].[Name] NOT NULL, [ReviewDate] DATETIME CONSTRAINT [DF_ProductReview_ReviewDate] DEFAULT (getdate()) NOT NULL, [EmailAddress] NVARCHAR (50) NOT NULL, [Rating] INT NOT NULL, [Comments] NVARCHAR (3850) NULL, [ModifiedDate] DATETIME CONSTRAINT [DF_ProductReview_ModifiedDate] DEFAULT (getdate()) NOT NULL, CONSTRAINT [PK_ProductReview_ProductReviewID] PRIMARY KEY CLUSTERED ([ProductReviewID] ASC), CONSTRAINT [CK_ProductReview_Rating] CHECK ([Rating]>=(1) AND [Rating]<=(5)), CONSTRAINT [FK_ProductReview_Product_ProductID] FOREIGN KEY ([ProductID]) REFERENCES [Production].[Product] ([ProductID]) ); GO CREATE NONCLUSTERED INDEX [IX_ProductReview_ProductID_Name] ON [Production].[ProductReview]([ProductID] ASC, [ReviewerName] ASC) INCLUDE([Comments]); GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Nonclustered index.', @level0type = N'SCHEMA', @level0name = N'Production', @level1type = N'TABLE', @level1name = N'ProductReview', @level2type = N'INDEX', @level2name = N'IX_ProductReview_ProductID_Name'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Check constraint [Rating] BETWEEN (1) AND (5)', @level0type = N'SCHEMA', @level0name = N'Production', @level1type = N'TABLE', @level1name = N'ProductReview', @level2type = N'CONSTRAINT', @level2name = N'CK_ProductReview_Rating'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Default constraint value of GETDATE()', @level0type = N'SCHEMA', @level0name = N'Production', @level1type = N'TABLE', @level1name = N'ProductReview', @level2type = N'CONSTRAINT', @level2name = N'DF_ProductReview_ModifiedDate'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Default constraint value of GETDATE()', @level0type = N'SCHEMA', @level0name = N'Production', @level1type = N'TABLE', @level1name = N'ProductReview', @level2type = N'CONSTRAINT', @level2name = N'DF_ProductReview_ReviewDate'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Foreign key constraint referencing Product.ProductID.', @level0type = N'SCHEMA', @level0name = N'Production', @level1type = N'TABLE', @level1name = N'ProductReview', @level2type = N'CONSTRAINT', @level2name = N'FK_ProductReview_Product_ProductID'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Primary key (clustered) constraint', @level0type = N'SCHEMA', @level0name = N'Production', @level1type = N'TABLE', @level1name = N'ProductReview', @level2type = N'CONSTRAINT', @level2name = N'PK_ProductReview_ProductReviewID'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Customer reviews of products they have purchased.', @level0type = N'SCHEMA', @level0name = N'Production', @level1type = N'TABLE', @level1name = N'ProductReview'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Primary key for ProductReview records.', @level0type = N'SCHEMA', @level0name = N'Production', @level1type = N'TABLE', @level1name = N'ProductReview', @level2type = N'COLUMN', @level2name = N'ProductReviewID'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Product identification number. Foreign key to Product.ProductID.', @level0type = N'SCHEMA', @level0name = N'Production', @level1type = N'TABLE', @level1name = N'ProductReview', @level2type = N'COLUMN', @level2name = N'ProductID'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Name of the reviewer.', @level0type = N'SCHEMA', @level0name = N'Production', @level1type = N'TABLE', @level1name = N'ProductReview', @level2type = N'COLUMN', @level2name = N'ReviewerName'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Date review was submitted.', @level0type = N'SCHEMA', @level0name = N'Production', @level1type = N'TABLE', @level1name = N'ProductReview', @level2type = N'COLUMN', @level2name = N'ReviewDate'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Reviewer''s e-mail address.', @level0type = N'SCHEMA', @level0name = N'Production', @level1type = N'TABLE', @level1name = N'ProductReview', @level2type = N'COLUMN', @level2name = N'EmailAddress'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.', @level0type = N'SCHEMA', @level0name = N'Production', @level1type = N'TABLE', @level1name = N'ProductReview', @level2type = N'COLUMN', @level2name = N'Rating'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Reviewer''s comments', @level0type = N'SCHEMA', @level0name = N'Production', @level1type = N'TABLE', @level1name = N'ProductReview', @level2type = N'COLUMN', @level2name = N'Comments'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Date and time the record was last updated.', @level0type = N'SCHEMA', @level0name = N'Production', @level1type = N'TABLE', @level1name = N'ProductReview', @level2type = N'COLUMN', @level2name = N'ModifiedDate';
<filename>sql/procedures/Solvers.sql -- Description: This file contains all solver-related stored procedures for the starexec database -- The procedures are stored by which table they're related to and roughly alphabetic order. Please try to keep this organized! -- Adds a solver and returns the solver ID -- Author: <NAME> DROP PROCEDURE IF EXISTS AddSolver // CREATE PROCEDURE AddSolver(IN _userId INT, IN _name VARCHAR(128), IN _downloadable BOOLEAN, IN _path TEXT, IN _description TEXT, OUT _id INT, IN _diskSize BIGINT, IN _type INT, IN _build_status INT) BEGIN UPDATE users SET disk_size=disk_size+_diskSize WHERE id = _userId; INSERT INTO solvers (user_id, name, uploaded, path, description, downloadable, disk_size, executable_type, build_status) VALUES (_userId, _name, SYSDATE(), _path, _description, _downloadable, _diskSize, _type, _build_status); SELECT LAST_INSERT_ID() INTO _id; END // -- Gets all solvers that reside in public spaces -- Author: <NAME> DROP PROCEDURE IF EXISTS GetPublicSolvers // CREATE PROCEDURE GetPublicSolvers() BEGIN SELECT * from solvers JOIN solver_assoc ON solver_assoc.solver_id=solvers.id JOIN spaces ON spaces.id=solver_assoc.space_id where public_access=1 AND deleted=false AND recycled=false GROUP BY(solvers.id); END // -- Gets the number of conflicting benchmarks a given config was run against for a stage. -- A conflicting benchmark is a benchmark for which two solvers gave different results. DROP PROCEDURE IF EXISTS GetConflictsForConfigInJob // CREATE PROCEDURE GetConflictsForConfigInJob(IN _jobId INT, IN _configId INT, IN _stageNumber INT) BEGIN SELECT COUNT(DISTINCT jp_o.bench_id) AS conflicting_benchmarks FROM jobs j_o JOIN job_pairs jp_o ON j_o.id=jp_o.job_id JOIN jobpair_stage_data jpsd_o ON jpsd_o.jobpair_id=jp_o.id JOIN job_attributes ja_o ON ja_o.pair_id=jp_o.id JOIN (SELECT jp.bench_id FROM jobs j join job_pairs jp ON j.id=jp.job_id JOIN jobpair_stage_data jpsd ON jpsd.jobpair_id=jp.id JOIN job_attributes ja ON ja.pair_id=jp.id WHERE j.id=_jobId AND ja.stage_number=_stageNumber AND ja.attr_key='starexec-result' AND ja.attr_value!='starexec-unknown' GROUP BY jp.bench_id HAVING COUNT(DISTINCT ja.attr_value) > 1) AS conflicting ON jp_o.bench_id=conflicting.bench_id WHERE jpsd_o.config_id=_configId AND ja_o.attr_key='starexec-result' AND ja_o.attr_value!='starexec-unknown' ; END // -- Gets the data for conflicting benchmarks in the job. -- A conflicting benchmark is a benchmark for which two solvers gave different results. DROP PROCEDURE IF EXISTS GetConflictingBenchmarksForConfigInJob // CREATE PROCEDURE GetConflictingBenchmarksForConfigInJob(IN _jobId INT, IN _configId INT, IN _stageNumber INT) BEGIN SELECT b_o.* FROM jobs j_o JOIN job_pairs jp_o ON j_o.id=jp_o.job_id JOIN jobpair_stage_data jpsd_o ON jpsd_o.jobpair_id=jp_o.id JOIN job_attributes ja_o ON ja_o.pair_id=jp_o.id JOIN benchmarks b_o ON b_o.id=jp_o.bench_id JOIN (SELECT jp.bench_id FROM jobs j join job_pairs jp ON j.id=jp.job_id JOIN jobpair_stage_data jpsd ON jpsd.jobpair_id=jp.id JOIN job_attributes ja ON ja.pair_id=jp.id WHERE j.id=_jobId AND ja.stage_number=_stageNumber AND ja.attr_key='starexec-result' AND ja.attr_value!='starexec-unknown' GROUP BY jp.bench_id HAVING COUNT(DISTINCT ja.attr_value) > 1) AS conflicting ON jp_o.bench_id=conflicting.bench_id WHERE jpsd_o.config_id=_configId AND ja_o.attr_key='starexec-result' AND ja_o.attr_value!='starexec-unknown' GROUP BY b_o.id ; END // -- Gets the all of the solvers, configs, and results run on a benchmark in a job. -- Author: <NAME> DROP PROCEDURE IF EXISTS GetSolverConfigResultsForBenchmarkInJob // CREATE PROCEDURE GetSolverConfigResultsForBenchmarkInJob(IN _jobId INT, IN _benchId INT, IN _stageNum INT) BEGIN SELECT s.*, c.*, -- solver fields /* s.id AS s_id, s.user_id AS s_user_id, s.name AS s_name, s.uploaded AS s_uploaded, s.path AS s_path, s.description AS s_description, s.downloadable AS s_downloadable, s.disk_size AS s_disk_size, s.deleted AS s_deleted, s.recycled AS s_recycled, s.executable_type AS s_exectuable_type, s.build_status AS s_build_status, -- configuration fields c.id AS c_id, c.solver_id AS c_solver_id, c.name AS c_name, c.description AS c_description, c.updated AS c_updated, -- Value of starexec-result attribute */ ja.attr_value FROM jobs j JOIN job_pairs jp ON j.id=jp.job_id JOIN jobpair_stage_data jpsd ON jpsd.jobpair_id=jp.id JOIN solvers s ON jpsd.solver_id=s.id JOIN configurations c ON jpsd.config_id=c.id JOIN job_attributes ja ON ja.pair_id=jp.id WHERE j.id = _jobId AND jp.bench_id=_benchid AND ja.attr_key='starexec-result' AND ja.attr_value!='starexec-unknown' AND jpsd.stage_number=_stageNum AND c.deleted = 0 -- configs are no longer removed from the table, so only non-deleted ones should be selected -- actually specifing c.deleted = 0 here prevents the row from showing the the solver summary table -- unless other problems arise, I will leave this statement able to from select configs flagged as deleted -- <NAME>, 9/2/20 ; END // -- Adds a Space/Solver association -- Author: <NAME> DROP PROCEDURE IF EXISTS AddSolverAssociation // CREATE PROCEDURE AddSolverAssociation(IN _spaceId INT, IN _solverId INT) BEGIN INSERT IGNORE INTO solver_assoc VALUES (_spaceId, _solverId); END // -- Adds a run configuration to the specified solver -- Author: <NAME> DROP PROCEDURE IF EXISTS AddConfiguration // CREATE PROCEDURE AddConfiguration(IN _solverId INT, IN _name VARCHAR(128), IN _description TEXT, IN _time TIMESTAMP, OUT configId INT) BEGIN INSERT INTO configurations (solver_id, name, description, updated) VALUES (_solverId, _name, _description, _time); SELECT LAST_INSERT_ID() INTO configId; END // -- Deletes a configuration given that configuration's id -- Author: <NAME> DROP PROCEDURE IF EXISTS DeleteConfigurationById // CREATE PROCEDURE DeleteConfigurationById(IN _configId INT) BEGIN -- DELETE FROM configurations -- no longer deleting rows from configurations due to GHI#269; <NAME> 2020 -- now marking them as "deleted" instead UPDATE configurations SET deleted = 1 WHERE id = _configId; -- we are now marking the config as deleted and updating the owning solver CALL UpdateConfigDeletedInSolvers( _configId, 1 ); END // -- Updates the solvers table to properly reflect that the corresponding configuration has been deleted -- Author: <NAME> DROP PROCEDURE IF EXISTS UpdateConfigDeletedInSolvers // CREATE PROCEDURE UpdateConfigDeletedInSolvers( IN _configId INT, IN _configDeleted INT ) BEGIN UPDATE solvers SET config_deleted = _configDeleted WHERE id = _configId; END // -- Deletes a solver given that solver's id -- Author: <NAME> + <NAME> DROP PROCEDURE IF EXISTS SetSolverToDeletedById // CREATE PROCEDURE SetSolverToDeletedById(IN _solverId INT, OUT _path TEXT) BEGIN UPDATE users JOIN solvers ON solvers.user_id=users.id SET users.disk_size=users.disk_size-solvers.disk_size WHERE solvers.id = _solverId; SELECT path INTO _path FROM solvers WHERE id = _solverId; UPDATE solvers SET deleted=true, disk_size=0 WHERE id = _solverId; END // -- Gets the IDs of all the spaces associated with the given solver -- Author: <NAME> DROP PROCEDURE IF EXISTS GetAssociatedSpaceIdsBySolver // CREATE PROCEDURE GetAssociatedSpaceIdsBySolver(IN _solverId INT) BEGIN SELECT space_id FROM solver_assoc WHERE solver_id=_solverId; END // -- Retrieves the configurations with the given id -- Author: <NAME> -- NOTE: only retrieves configurations that have _not_ been marked as deleted (Alexander Brown) DROP PROCEDURE IF EXISTS GetConfiguration // CREATE PROCEDURE GetConfiguration(IN _id INT) BEGIN SELECT * FROM configurations -- need to ensure config has not been deleted -- WHERE id = _id; WHERE id = _id AND deleted = 0; END // -- Retrieves the configurations with the given id, including deleted configs -- Author: <NAME> DROP PROCEDURE IF EXISTS GetConfigurationIncludeDeleted // CREATE PROCEDURE GetConfigurationIncludeDeleted( IN _id INT ) BEGIN SELECT * FROM configurations WHERE id = _id; END // DROP PROCEDURE IF EXISTS GetAllSolversInJob // CREATE PROCEDURE GetAllSolversInJob(IN _jobId INT) BEGIN SELECT DISTINCT solver_id, solver_name FROM jobpair_stage_data INNER JOIN job_pairs ON jobpair_stage_data.jobpair_id=job_pairs.id WHERE job_pairs.job_id=_jobId; END // DROP PROCEDURE IF EXISTS GetAllConfigsInJob // CREATE PROCEDURE GetAllConfigsInJob(IN _jobId INT) BEGIN SELECT DISTINCT config_id, config_name FROM jobpair_stage_data INNER JOIN job_pairs ON jobpair_stage_data.jobpair_id=job_pairs.id WHERE job_pairs.job_id=_jobId; END // DROP PROCEDURE IF EXISTS GetAllConfigIdsInJob // CREATE PROCEDURE GetAllConfigIdsInJob( IN _jobId INT) BEGIN SELECT DISTINCT config_id FROM jobpair_stage_data INNER JOIN job_pairs ON jobpair_stage_data.jobpair_id=job_pairs.id WHERE job_pairs.job_id=_jobId; END // -- Retrieves the configurations that belong to a solver with the given id -- Author: <NAME> DROP PROCEDURE IF EXISTS GetConfigsForSolver // CREATE PROCEDURE GetConfigsForSolver(IN _id INT) BEGIN SELECT * FROM configurations -- WHERE solver_id = _id; -- need to ensure config has not been deleted WHERE solver_id = _id AND deleted = 0; END // -- Retrieves all solvers belonging to a space -- Author: <NAME> DROP PROCEDURE IF EXISTS GetSpaceSolversById // CREATE PROCEDURE GetSpaceSolversById(IN _id INT) BEGIN SELECT * FROM solvers JOIN solver_assoc ON solver_assoc.solver_id=solvers.id WHERE deleted=false AND recycled=false AND solver_assoc.space_id=_id; END // -- Retrieves the solver associated with the configuration with the given id -- Author: <NAME> DROP PROCEDURE IF EXISTS GetSolverIdByConfigId // CREATE PROCEDURE GetSolverIdByConfigId(IN _id INT) BEGIN SELECT solver_id AS id FROM configurations -- WHERE id=_id; -- need to ensure config has not been deleted; <NAME> WHERE id=_id AND deleted = 0; END // -- Retrieves the solver with the given id -- Author: <NAME> DROP PROCEDURE IF EXISTS GetSolverById // CREATE PROCEDURE GetSolverById(IN _id INT) BEGIN SELECT * FROM solvers WHERE id = _id and deleted=false AND recycled=false; END // -- Retrieves the solver with the given id -- Author: <NAME> DROP PROCEDURE IF EXISTS GetSolverByIdIncludeDeleted // CREATE PROCEDURE GetSolverByIdIncludeDeleted(IN _id INT) BEGIN SELECT * FROM solvers WHERE id = _id; END // -- Returns the number of solvers in a given space that match a given query -- Author: <NAME> DROP PROCEDURE IF EXISTS GetSolverCountInSpaceWithQuery // CREATE PROCEDURE GetSolverCountInSpaceWithQuery(IN _spaceId INT, IN _query TEXT) BEGIN SELECT COUNT(*) AS solverCount FROM solver_assoc JOIN solvers AS solvers ON solvers.id=solver_assoc.solver_id WHERE _spaceId=solver_assoc.space_id AND (solvers.name LIKE CONCAT('%', _query, '%') OR solvers.description LIKE CONCAT('%', _query, '%')); END // -- Retrieves the solvers owned by a given user id -- <NAME> DROP PROCEDURE IF EXISTS GetSolversByOwner // CREATE PROCEDURE GetSolversByOwner(IN _userId INT) BEGIN SELECT * FROM solvers WHERE user_id = _userId and deleted=false AND recycled=false; END // -- Returns the number of public spaces a solver is in -- Benton McCune DROP PROCEDURE IF EXISTS IsSolverPublic // CREATE PROCEDURE IsSolverPublic(IN _solverId INT) BEGIN SELECT count(*) as solverPublic FROM solver_assoc WHERE solver_id = _solverId AND IsPublic(space_id); END // DROP PROCEDURE IF EXISTS IsSolverDeleted // CREATE PROCEDURE IsSolverDeleted(IN _solverId INT) BEGIN SELECT count(*) AS solverDeleted FROM solvers WHERE deleted=true AND id=_solverId; END // -- Removes the association between a solver and a given space; -- Author: <NAME> + <NAME> DROP PROCEDURE IF EXISTS RemoveSolverFromSpace // CREATE PROCEDURE RemoveSolverFromSpace(IN _solverId INT, IN _spaceId INT) BEGIN IF _spaceId >= 0 THEN DELETE FROM solver_assoc WHERE solver_id = _solverId AND space_id = _spaceId; END IF; END // -- Updates the disk_size attribute of a given solver -- Author: <NAME> DROP PROCEDURE IF EXISTS UpdateSolverDiskSize // CREATE PROCEDURE UpdateSolverDiskSize(IN _solverId INT, IN _newDiskSize BIGINT) BEGIN UPDATE users JOIN solvers ON solvers.user_id=users.id SET users.disk_size=(users.disk_size-solvers.disk_size)+_newDiskSize WHERE solvers.id = _solverId; UPDATE solvers SET disk_size = _newDiskSize WHERE id = _solverId; END // -- Updates the details associated with a given configuration -- Author: <NAME> DROP PROCEDURE IF EXISTS UpdateConfigurationDetails // CREATE PROCEDURE UpdateConfigurationDetails(IN _configId INT, IN _name VARCHAR(128), IN _description TEXT, IN _time TIMESTAMP) BEGIN UPDATE configurations SET name = _name, description = _description, updated = _time WHERE id = _configId; END // -- Updates the details associated with a given solver -- Author: <NAME> DROP PROCEDURE IF EXISTS UpdateSolverDetails // CREATE PROCEDURE UpdateSolverDetails(IN _solverId INT, IN _name VARCHAR(128), IN _description TEXT, IN _downloadable BOOLEAN) BEGIN UPDATE solvers SET name = _name, description = _description, downloadable = _downloadable WHERE id = _solverId; END // -- Get the total count of the solvers belong to a specific user -- Author: <NAME> DROP PROCEDURE IF EXISTS GetSolverCountByUser // CREATE PROCEDURE GetSolverCountByUser(IN _userId INT) BEGIN SELECT COUNT(*) AS solverCount FROM solvers WHERE user_id = _userId AND deleted=false AND recycled=false; END // -- Returns the number of solvers in a given space that match a given query -- Author: <NAME> DROP PROCEDURE IF EXISTS GetSolverCountByUserWithQuery // CREATE PROCEDURE GetSolverCountByUserWithQuery(IN _userId INT, IN _query TEXT) BEGIN SELECT COUNT(*) AS solverCount FROM solvers WHERE user_id=_userId AND deleted=false AND recycled=false AND (name LIKE CONCAT('%', _query, '%') OR description LIKE CONCAT('%', _query, '%')); END // -- Sets the recycled attribute to the given value for the given solver -- Author: <NAME> DROP PROCEDURE IF EXISTS SetSolverRecycledValue // CREATE PROCEDURE SetSolverRecycledValue(IN _solverId INT, IN _recycled BOOLEAN) BEGIN UPDATE solvers SET recycled=_recycled WHERE id=_solverId; END // -- Checks to see whether the "recycled" flag is set for the given solver -- Author: <NAME> DROP PROCEDURE IF EXISTS IsSolverRecycled // CREATE PROCEDURE IsSolverRecycled(IN _solverId INT) BEGIN SELECT recycled FROM solvers WHERE id=_solverId; END // -- Returns the number of solvers in a given space that match a given query -- Author: <NAME> DROP PROCEDURE IF EXISTS GetRecycledSolverCountByUser // CREATE PROCEDURE GetRecycledSolverCountByUser(IN _userId INT, IN _query TEXT) BEGIN SELECT COUNT(*) AS solverCount FROM solvers WHERE solvers.user_id=_userId AND recycled=true AND deleted=false AND (solvers.name LIKE CONCAT('%', _query, '%') OR solvers.description LIKE CONCAT('%', _query, '%')); END // -- Gets the path to every recycled solver a user has -- Author: <NAME> DROP PROCEDURE IF EXISTS GetRecycledSolverPaths // CREATE PROCEDURE GetRecycledSolverPaths(IN _userId INT) BEGIN SELECT path,id FROM solvers WHERE recycled=true AND user_id=_userId AND deleted=false; END // -- Sets all the solvers the user has in the database to "deleted" -- Author: <NAME> DROP PROCEDURE IF EXISTS SetRecycledSolversToDeleted // CREATE PROCEDURE SetRecycledSolversToDeleted(IN _userId INT) BEGIN UPDATE users SET users.disk_size=users.disk_size-(SELECT COALESCE(SUM(disk_size),0) FROM solvers WHERE user_id=_userId AND recycled=true AND deleted=false) WHERE users.id=_userId; UPDATE solvers SET deleted=true, disk_size=0 WHERE user_id = _userId AND recycled=true AND deleted=false; END // -- Gets all recycled solver ids a user has in the database -- Author: <NAME> DROP PROCEDURE IF EXISTS GetRecycledSolverIds // CREATE PROCEDURE GetRecycledSolverIds(IN _userId INT) BEGIN SELECT id FROM solvers WHERE user_id=_userId AND recycled=true; END // -- Permanently removes a solver from the database -- Author: <NAME> DROP PROCEDURE IF EXISTS RemoveSolverFromDatabase // CREATE PROCEDURE RemoveSolverFromDatabase(IN _id INT) BEGIN DELETE FROM solvers WHERE id=_id; END // -- Gets all the solver ids of solvers that are in at least one space -- Author: <NAME> DROP PROCEDURE IF EXISTS GetSolversAssociatedWithSpaces // CREATE PROCEDURE GetSolversAssociatedWithSpaces() BEGIN SELECT DISTINCT solver_id AS id FROM solver_assoc; END // -- Gets the solver ids of all solvers associated with at least one pair -- Author: <NAME> DROP PROCEDURE IF EXISTS GetSolversAssociatedWithPairs // CREATE PROCEDURE GetSolversAssociatedWithPairs() BEGIN SELECT DISTINCT solver_id AS id from jobpair_stage_data; END // -- Gets the solver ids of all deleted solvers -- Author: <NAME> DROP PROCEDURE IF EXISTS GetDeletedSolvers // CREATE PROCEDURE GetDeletedSolvers() BEGIN SELECT * FROM solvers WHERE deleted=true; END // -- Sets the recycled flag for a single solver back to false -- Author: <NAME> DROP PROCEDURE IF EXISTS RestoreSolver // CREATE PROCEDURE RestoreSolver(IN _solverId INT) BEGIN UPDATE solvers SET recycled=false WHERE _solverId=id; END // -- Gets the timestamp of the configuration that was most recently added or updated -- on this solver -- Author: <NAME> DROP PROCEDURE IF EXISTS GetMaxConfigTimestamp // CREATE PROCEDURE GetMaxConfigTimestamp(IN _solverId INT) BEGIN SELECT MAX(updated) AS recent FROM configurations -- WHERE configurations.solver_id=_solverId; -- need to ensure config has not been deleted; Alexander Brown WHERE configurations.solver_id=_solverId AND configurations.deleted = 0; END // -- Gets the ids of every orphaned solver a user owns (orphaned meaning the solver is in no spaces DROP PROCEDURE IF EXISTS GetOrphanedSolverIds // CREATE PROCEDURE GetOrphanedSolverIds(IN _userId INT) BEGIN SELECT solvers.id FROM solvers LEFT JOIN solver_assoc ON solver_assoc.solver_id=solvers.id WHERE solvers.user_id=_userId AND solver_assoc.space_id IS NULL; END // -- returns every solver that shares a space with the given user -- Author: <NAME> DROP PROCEDURE IF EXISTS GetSolversInSharedSpaces // CREATE PROCEDURE GetSolversInSharedSpaces(IN _userId INT) BEGIN SELECT * FROM solvers JOIN solver_assoc ON solver_assoc.solver_id = solvers.id JOIN user_assoc ON user_assoc.space_id = solver_assoc.space_id WHERE user_assoc.user_id=_userId GROUP BY(solvers.id); END // -- Sets the build_status status code of the solver -- Author: <NAME> DROP PROCEDURE IF EXISTS SetSolverBuildStatus // CREATE PROCEDURE SetSolverBuildStatus(IN _solverId INT, IN _build_status INT) BEGIN UPDATE solvers SET build_status = _build_status WHERE id = _solverId; END // -- Updates path to solver -- Author: <NAME> DROP PROCEDURE IF EXISTS SetSolverPath // CREATE PROCEDURE SetSolverPath(IN _solverId INT, IN _path TEXT) BEGIN UPDATE solvers SET path = _path WHERE id = _solverId; END // -- This deletes the dummy config from a solver built on Starexec DROP PROCEDURE IF EXISTS DeleteBuildConfig // CREATE PROCEDURE DeleteBuildConfig(IN _solverId INT) BEGIN DELETE FROM configurations -- dummy configs are deleted but not other configs WHERE solver_id=_solverId AND name="starexec_build"; END // -- Pauses all JobPairs containing Solver and rebuilds Solver DROP PROCEDURE IF EXISTS RebuildSolver // CREATE PROCEDURE RebuildSolver(IN _solverId INT) BEGIN -- Pause all jobs containing solver UPDATE jobs SET paused = TRUE WHERE killed = FALSE AND deleted = FALSE AND buildJob = FALSE AND id IN ( SELECT job_id FROM ( SELECT job_id, id FROM job_pairs WHERE id IN ( SELECT jobpair_id FROM jobpair_stage_data WHERE solver_id = _solverId ) ) AS jobPairsWithSolver ) ; -- Pause all jobpairs containing solver UPDATE job_pairs SET status_code = 20 WHERE status_code = 1 AND id IN ( SELECT jobpair_id FROM jobpair_stage_data WHERE solver_id = _solverId ) ; -- Set Solver status to Unbuilt UPDATE solvers SET build_status = 0, -- 0 = Unbuilt : SolverBuildStatus.java path = CONCAT(path, "_src") WHERE id = _solverId AND build_status = 2 -- 2 = Built by StarExec ; END //
<filename>src/hg/xmlToSql/test/hotnews/expected/description.sql CREATE TABLE description ( id int not null, text longtext not null, PRIMARY KEY(id) );
DROP FUNCTION IF EXISTS `countryCode`; CREATE FUNCTION `countryCode`(country VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci) RETURNS VARCHAR(5) CHARSET utf8 COLLATE utf8_unicode_ci READS SQL DATA DETERMINISTIC COMMENT 'Convert country name into code, returns NULL if the country does not exist in the table.' BEGIN DECLARE c VARCHAR(5) CHARACTER SET utf8; IF country = '' THEN SET c := NULL; ELSEIF country IS NULL THEN SET c := NULL; ELSE SET country := LOWER(country); SELECT `code` INTO c FROM country WHERE LOWER(`name`) = country; END IF; RETURN c; END; UPDATE `site` set `value` = '189' where `setting` = 'sqlpatch';
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Czas generowania: 12 Lut 2017, 23:42 -- Wersja serwera: 10.1.21-MariaDB -- Wersja PHP: 5.6.30 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` -- -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `notatki` -- CREATE TABLE `notatki` ( `id` int(10) NOT NULL, `autor` varchar(255) NOT NULL, `tytul` varchar(15) NOT NULL, `tresc` mediumtext NOT NULL, `data` varchar(20) NOT NULL, `dostep` varchar(255) DEFAULT NULL, `publiczny` varchar(3) DEFAULT NULL, `kategoria` varchar(255) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Zrzut danych tabeli `notatki` -- INSERT INTO `notatki` (`id`, `autor`, `tytul`, `tresc`, `data`, `dostep`, `publiczny`, `kategoria`) VALUES (1, 'admin', 'test', ' <p><b>Informatyka</b> – dyscyplina nauki zaliczana do nauk Å›cisÅ‚ych oraz techniki zajmujÄ…ca siÄ™ przetwarzaniem informacji, w tym również technologiami przetwarzania informacji oraz technologiami wytwarzania systemów przetwarzajÄ…cych informacje. PoczÄ…tkowo stanowiÅ‚a część matematyki, później rozwinęła siÄ™ do odrÄ™bnej dyscypliny – pozostaje jednak nadal w Å›cisÅ‚ej relacji z matematykÄ…, która dostarcza informatyce podstaw teoretycznych.</p>\r\n <p><h3>Nazewnictwo</h3>\r\n OkreÅ›lenie informatyka ma swój odpowiednik w jÄ™zyku angielskim: <a>computer science</a> – dosÅ‚ownie: nauka o komputerze – co może być mylÄ…ce i dlatego jest krytykowane w Å›rodowiskach akademickich i informatycznych.<p></p>\r\n\r\n <p>W jÄ™zyku polskim termin ten zaproponowaÅ‚ w październiku 1968 Romuald MarczyÅ„ski w Zakopanem na ogólnopolskiej konferencji poÅ›wiÄ™conej \"maszynom matematycznym\" na wzór (fr.) informatique i (niem.) Informatik.</p>\r\n <p><u>PrzeglÄ…d dyscyplin</u></p>\r\n <p>Współczesna informatyka jest obecnie bardzo szerokÄ… dziedzinÄ…. Jest zarówno dyscyplinÄ… naukowÄ…, podobnie jak fizyka lub chemia, a także jest mocno powiÄ…zana z dziaÅ‚alnoÅ›ciÄ… gospodarczÄ… i wieloma innymi dziedzinami życia.</p>\r\n\r\n <p>Bardziej znane i popularne dziaÅ‚y informatyki to przede wszystkim: (kolejność alfabetyczna)\r\n\r\n <ul><li><i>administracja sieciowa</i> – zarzÄ…dzanie sieciÄ… komputerowÄ…</li>\r\n <li>administracja systemem – zarzÄ…dzanie systemem informatycznym;</li>\r\n <li>algorytmika – tworzenie i analizowanie algorytmów. Podstawowa, najstarsza dyscyplina informatyki;</li>\r\n <li>architektura procesorów – projektowanie procesorów, bez których nie byÅ‚oby komputerów;</li>\r\n <li>bezpieczeÅ„stwo komputerowe – dyscyplina łączÄ…ca informatykÄ™ z telekomunikacjÄ… w celu zapewnienia poufnoÅ›ci i bezpieczeÅ„stwa danych;</li>\r\n <li>grafika komputerowa – wykorzystuje technikÄ™ komputerowÄ… w celu wizualizacji rzeczywistoÅ›ci;</li>\r\n <li>informatyka afektywna - budowa systemów rozpoznajÄ…cych emocje użytkowników oraz reagujÄ…cych na nie;</li>\r\n <li>informatyka medyczna - metoda tworzenia systemów przetwarzajÄ…cych informacje wykorzystywane w opiece zdrowotnej.</li>\r\n <li>informatyka Å›ledcza - dostarczajÄ…ca cyfrowych Å›rodków dowodowych dotyczÄ…cych przestÄ™pstw popeÅ‚nionych cyfrowo lub przy użyciu systemów elektronicznych,</li>\r\n <li>inżynieria oprogramowania – produkcja oprogramowania;</li>\r\n <li>jÄ™zyki programowania – tworzenie jÄ™zyków programowania. WyróżniajÄ…ca siÄ™, podstawowa dyscyplina informatyki;</li>\r\n <li>programowanie komputerów – czyli tworzenie kodu źródÅ‚owego programów komputerowych. Najpopularniejsza dyscyplina informatyki;</li>\r\n <li>sprzÄ™t komputerowy – komputery i ich urzÄ…dzenia peryferyjne;</li>\r\n <li>symulacja komputerowa – komputerowa symulacja z wykorzystaniem modelowania matematycznego;</li>\r\n <li>systemy informatyczne – tworzenie systemów informatycznych w celach użytkowych;</li>\r\n <li>sztuczna inteligencja – komputerowe symulowanie inteligencji;</li>\r\n <li>teoria informacji – dyscyplina zajmujÄ…ca siÄ™ problematykÄ… informacji, w tym teoriÄ… przetwarzania i przesyÅ‚ania informacji;</li>\r\n <li>webmastering – projektowanie, programowanie i publikacja serwisów internetowych.</li></ul><p></p>\r\n', '12.02.2017, 18:11', ', ,', 'nie', 'Bazy Danych'), (2, 'admin', 'dasdas', ' <p><b>Informatyka</b> – dyscyplina nauki zaliczana do nauk Å›cisÅ‚ych oraz techniki zajmujÄ…ca siÄ™ przetwarzaniem informacji, w tym również technologiami przetwarzania informacji oraz technologiami wytwarzania systemów przetwarzajÄ…cych informacje. PoczÄ…tkowo stanowiÅ‚a część matematyki, później rozwinęła siÄ™ do odrÄ™bnej dyscypliny – pozostaje jednak nadal w Å›cisÅ‚ej relacji z matematykÄ…, która dostarcza informatyce podstaw teoretycznych.</p>\r\n <p></p><h3>Nazewnictwo</h3>\r\n OkreÅ›lenie informatyka ma swój odpowiednik w jÄ™zyku angielskim: <a>computer science</a> – dosÅ‚ownie: nauka o komputerze – co może być mylÄ…ce i dlatego jest krytykowane w Å›rodowiskach akademickich i informatycznych.<p></p>\r\n\r\n <p>W jÄ™zyku polskim termin ten zaproponowaÅ‚ w październiku 1968 Romuald MarczyÅ„ski w Zakopanem na ogólnopolskiej konferencji poÅ›wiÄ™conej \"maszynom matematycznym\" na wzór (fr.) informatique i (niem.) Informatik.</p>\r\n <p><u>PrzeglÄ…d dyscyplin</u></p>\r\n <p>Współczesna informatyka jest obecnie bardzo szerokÄ… dziedzinÄ…. Jest zarówno dyscyplinÄ… naukowÄ…, podobnie jak fizyka lub chemia, a także jest mocno powiÄ…zana z dziaÅ‚alnoÅ›ciÄ… gospodarczÄ… i wieloma innymi dziedzinami życia.</p>\r\n\r\n <p>Bardziej znane i popularne dziaÅ‚y informatyki to przede wszystkim: (kolejność alfabetyczna)\r\n\r\n </p><ul><li><i>administracja sieciowa</i> – zarzÄ…dzanie sieciÄ… komputerowÄ…</li>\r\n <li>administracja systemem – zarzÄ…dzanie systemem informatycznym;</li>\r\n <li>algorytmika – tworzenie i analizowanie algorytmów. Podstawowa, najstarsza dyscyplina informatyki;</li>\r\n <li>architektura procesorów – projektowanie procesorów, bez których nie byÅ‚oby komputerów;</li>\r\n <li>bezpieczeÅ„stwo komputerowe – dyscyplina łączÄ…ca informatykÄ™ z telekomunikacjÄ… w celu zapewnienia poufnoÅ›ci i bezpieczeÅ„stwa danych;</li>\r\n <li>grafika komputerowa – wykorzystuje technikÄ™ komputerowÄ… w celu wizualizacji rzeczywistoÅ›ci;</li>\r\n <li>informatyka afektywna - budowa systemów rozpoznajÄ…cych emocje użytkowników oraz reagujÄ…cych na nie;</li>\r\n <li>informatyka medyczna - metoda tworzenia systemów przetwarzajÄ…cych informacje wykorzystywane w opiece zdrowotnej.</li>\r\n <li>informatyka Å›ledcza - dostarczajÄ…ca cyfrowych Å›rodków dowodowych dotyczÄ…cych przestÄ™pstw popeÅ‚nionych cyfrowo lub przy użyciu systemów elektronicznych,</li>\r\n <li>inżynieria oprogramowania – produkcja oprogramowania;</li>\r\n <li>jÄ™zyki programowania – tworzenie jÄ™zyków programowania. WyróżniajÄ…ca siÄ™, podstawowa dyscyplina informatyki;</li>\r\n <li>programowanie komputerów – czyli tworzenie kodu źródÅ‚owego programów komputerowych. Najpopularniejsza dyscyplina informatyki;</li>\r\n <li>sprzÄ™t komputerowy – komputery i ich urzÄ…dzenia peryferyjne;</li>\r\n <li>symulacja komputerowa – komputerowa symulacja z wykorzystaniem modelowania matematycznego;</li>\r\n <li>systemy informatyczne – tworzenie systemów informatycznych w celach użytkowych;</li>\r\n <li>sztuczna inteligencja – komputerowe symulowanie inteligencji;</li>\r\n <li>teoria informacji – dyscyplina zajmujÄ…ca siÄ™ problematykÄ… informacji, w tym teoriÄ… przetwarzania i przesyÅ‚ania informacji;</li>\r\n <li>webmastering – projektowanie, programowanie i publikacja serwisów internetowych.</li></ul><p></p>\r\n', '12.02.2017, 18:11', ', ,', 'nie', 'Bazy Danych'), (3, 'admin', 'tak', ' <p><b>Informatyka</b> – dyscyplina nauki zaliczana do nauk Å›cisÅ‚ych oraz techniki zajmujÄ…ca siÄ™ przetwarzaniem informacji, w tym również technologiami przetwarzania informacji oraz technologiami wytwarzania systemów przetwarzajÄ…cych informacje. PoczÄ…tkowo stanowiÅ‚a część matematyki, później rozwinęła siÄ™ do odrÄ™bnej dyscypliny – pozostaje jednak nadal w Å›cisÅ‚ej relacji z matematykÄ…, która dostarcza informatyce podstaw teoretycznych.</p>\r\n <p></p><h3>Nazewnictwo</h3>\r\n OkreÅ›lenie informatyka ma swój odpowiednik w jÄ™zyku angielskim: <a>computer science</a> – dosÅ‚ownie: nauka o komputerze – co może być mylÄ…ce i dlatego jest krytykowane w Å›rodowiskach akademickich i informatycznych.<p></p>\r\n\r\n <p>W jÄ™zyku polskim termin ten zaproponowaÅ‚ w październiku 1968 Romuald MarczyÅ„ski w Zakopanem na ogólnopolskiej konferencji poÅ›wiÄ™conej \"maszynom matematycznym\" na wzór (fr.) informatique i (niem.) Informatik.</p>\r\n <p><u>PrzeglÄ…d dyscyplin</u></p>\r\n <p>Współczesna informatyka jest obecnie bardzo szerokÄ… dziedzinÄ…. Jest zarówno dyscyplinÄ… naukowÄ…, podobnie jak fizyka lub chemia, a także jest mocno powiÄ…zana z dziaÅ‚alnoÅ›ciÄ… gospodarczÄ… i wieloma innymi dziedzinami życia.</p>\r\n\r\n <p>Bardziej znane i popularne dziaÅ‚y informatyki to przede wszystkim: (kolejność alfabetyczna)\r\n\r\n </p><ul><li><i>administracja sieciowa</i> – zarzÄ…dzanie sieciÄ… komputerowÄ…</li>\r\n <li>administracja systemem – zarzÄ…dzanie systemem informatycznym;</li>\r\n <li>algorytmika – tworzenie i analizowanie algorytmów. Podstawowa, najstarsza dyscyplina informatyki;</li>\r\n <li>architektura procesorów – projektowanie procesorów, bez których nie byÅ‚oby komputerów;</li>\r\n <li>bezpieczeÅ„stwo komputerowe – dyscyplina łączÄ…ca informatykÄ™ z telekomunikacjÄ… w celu zapewnienia poufnoÅ›ci i bezpieczeÅ„stwa danych;</li>\r\n <li>grafika komputerowa – wykorzystuje technikÄ™ komputerowÄ… w celu wizualizacji rzeczywistoÅ›ci;</li>\r\n <li>informatyka afektywna - budowa systemów rozpoznajÄ…cych emocje użytkowników oraz reagujÄ…cych na nie;</li>\r\n <li>informatyka medyczna - metoda tworzenia systemów przetwarzajÄ…cych informacje wykorzystywane w opiece zdrowotnej.</li>\r\n <li>informatyka Å›ledcza - dostarczajÄ…ca cyfrowych Å›rodków dowodowych dotyczÄ…cych przestÄ™pstw popeÅ‚nionych cyfrowo lub przy użyciu systemów elektronicznych,</li>\r\n <li>inżynieria oprogramowania – produkcja oprogramowania;</li>\r\n <li>jÄ™zyki programowania – tworzenie jÄ™zyków programowania. WyróżniajÄ…ca siÄ™, podstawowa dyscyplina informatyki;</li>\r\n <li>programowanie komputerów – czyli tworzenie kodu źródÅ‚owego programów komputerowych. Najpopularniejsza dyscyplina informatyki;</li>\r\n <li>sprzÄ™t komputerowy – komputery i ich urzÄ…dzenia peryferyjne;</li>\r\n <li>symulacja komputerowa – komputerowa symulacja z wykorzystaniem modelowania matematycznego;</li>\r\n <li>systemy informatyczne – tworzenie systemów informatycznych w celach użytkowych;</li>\r\n <li>sztuczna inteligencja – komputerowe symulowanie inteligencji;</li>\r\n <li>teoria informacji – dyscyplina zajmujÄ…ca siÄ™ problematykÄ… informacji, w tym teoriÄ… przetwarzania i przesyÅ‚ania informacji;</li>\r\n <li>webmastering – projektowanie, programowanie i publikacja serwisów internetowych.</li></ul><p></p>\r\n', '12.02.2017, 18:12', ', ,', 'tak', 'Bazy Danych'), (4, 'admin', 'abc', ' <p><b>Informatyka</b> – dyscyplina nauki zaliczana do nauk Å›cisÅ‚ych oraz techniki zajmujÄ…ca siÄ™ przetwarzaniem informacji, w tym również technologiami przetwarzania informacji oraz technologiami wytwarzania systemów przetwarzajÄ…cych informacje. PoczÄ…tkowo stanowiÅ‚a część matematyki, później rozwinęła siÄ™ do odrÄ™bnej dyscypliny – pozostaje jednak nadal w Å›cisÅ‚ej relacji z matematykÄ…, która dostarcza informatyce podstaw teoretycznych.</p>\r\n <p><h3>Nazewnictwo</h3>\r\n OkreÅ›lenie informatyka ma swój odpowiednik w jÄ™zyku angielskim: <a>computer science</a> – dosÅ‚ownie: nauka o komputerze – co może być mylÄ…ce i dlatego jest krytykowane w Å›rodowiskach akademickich i informatycznych.<p></p>\r\n\r\n <p>W jÄ™zyku polskim termin ten zaproponowaÅ‚ w październiku 1968 Romuald MarczyÅ„ski w Zakopanem na ogólnopolskiej konferencji poÅ›wiÄ™conej \"maszynom matematycznym\" na wzór (fr.) informatique i (niem.) Informatik.</p>\r\n <p><u>PrzeglÄ…d dyscyplin</u></p>\r\n <p>Współczesna informatyka jest obecnie bardzo szerokÄ… dziedzinÄ…. Jest zarówno dyscyplinÄ… naukowÄ…, podobnie jak fizyka lub chemia, a także jest mocno powiÄ…zana z dziaÅ‚alnoÅ›ciÄ… gospodarczÄ… i wieloma innymi dziedzinami życia.</p>\r\n\r\n <p>Bardziej znane i popularne dziaÅ‚y informatyki to przede wszystkim: (kolejność alfabetyczna)\r\n\r\n <ul><li><i>administracja sieciowa</i> – zarzÄ…dzanie sieciÄ… komputerowÄ…</li>\r\n <li>administracja systemem – zarzÄ…dzanie systemem informatycznym;</li>\r\n <li>algorytmika – tworzenie i analizowanie algorytmów. Podstawowa, najstarsza dyscyplina informatyki;</li>\r\n <li>architektura procesorów – projektowanie procesorów, bez których nie byÅ‚oby komputerów;</li>\r\n <li>bezpieczeÅ„stwo komputerowe – dyscyplina łączÄ…ca informatykÄ™ z telekomunikacjÄ… w celu zapewnienia poufnoÅ›ci i bezpieczeÅ„stwa danych;</li>\r\n <li>grafika komputerowa – wykorzystuje technikÄ™ komputerowÄ… w celu wizualizacji rzeczywistoÅ›ci;</li>\r\n <li>informatyka afektywna - budowa systemów rozpoznajÄ…cych emocje użytkowników oraz reagujÄ…cych na nie;</li>\r\n <li>informatyka medyczna - metoda tworzenia systemów przetwarzajÄ…cych informacje wykorzystywane w opiece zdrowotnej.</li>\r\n <li>informatyka Å›ledcza - dostarczajÄ…ca cyfrowych Å›rodków dowodowych dotyczÄ…cych przestÄ™pstw popeÅ‚nionych cyfrowo lub przy użyciu systemów elektronicznych,</li>\r\n <li>inżynieria oprogramowania – produkcja oprogramowania;</li>\r\n <li>jÄ™zyki programowania – tworzenie jÄ™zyków programowania. WyróżniajÄ…ca siÄ™, podstawowa dyscyplina informatyki;</li>\r\n <li>programowanie komputerów – czyli tworzenie kodu źródÅ‚owego programów komputerowych. Najpopularniejsza dyscyplina informatyki;</li>\r\n <li>sprzÄ™t komputerowy – komputery i ich urzÄ…dzenia peryferyjne;</li>\r\n <li>symulacja komputerowa – komputerowa symulacja z wykorzystaniem modelowania matematycznego;</li>\r\n <li>systemy informatyczne – tworzenie systemów informatycznych w celach użytkowych;</li>\r\n <li>sztuczna inteligencja – komputerowe symulowanie inteligencji;</li>\r\n <li>teoria informacji – dyscyplina zajmujÄ…ca siÄ™ problematykÄ… informacji, w tym teoriÄ… przetwarzania i przesyÅ‚ania informacji;</li>\r\n <li>webmastering – projektowanie, programowanie i publikacja serwisów internetowych.</li></ul><p></p>\r\n', '12.02.2017, 18:13', ', ,', 'nie', 'Bazy Danych'), (5, 'admin', 'test', ' <p><b>Informatyka</b> – dyscyplina nauki zaliczana do nauk Å›cisÅ‚ych oraz techniki zajmujÄ…ca siÄ™ przetwarzaniem informacji, w tym również technologiami przetwarzania informacji oraz technologiami wytwarzania systemów przetwarzajÄ…cych informacje. PoczÄ…tkowo stanowiÅ‚a część matematyki, później rozwinęła siÄ™ do odrÄ™bnej dyscypliny – pozostaje jednak nadal w Å›cisÅ‚ej relacji z matematykÄ…, która dostarcza informatyce podstaw teoretycznych.</p>\r\n <p><h3>Nazewnictwo</h3>\r\n OkreÅ›lenie informatyka ma swój odpowiednik w jÄ™zyku angielskim: <a>computer science</a> – dosÅ‚ownie: nauka o komputerze – co może być mylÄ…ce i dlatego jest krytykowane w Å›rodowiskach akademickich i informatycznych.<p></p>\r\n\r\n <p>W jÄ™zyku polskim termin ten zaproponowaÅ‚ w październiku 1968 Romuald MarczyÅ„ski w Zakopanem na ogólnopolskiej konferencji poÅ›wiÄ™conej \"maszynom matematycznym\" na wzór (fr.) informatique i (niem.) Informatik.</p>\r\n <p><u>PrzeglÄ…d dyscyplin</u></p>\r\n <p>Współczesna informatyka jest obecnie bardzo szerokÄ… dziedzinÄ…. Jest zarówno dyscyplinÄ… naukowÄ…, podobnie jak fizyka lub chemia, a także jest mocno powiÄ…zana z dziaÅ‚alnoÅ›ciÄ… gospodarczÄ… i wieloma innymi dziedzinami życia.</p>\r\n\r\n <p>Bardziej znane i popularne dziaÅ‚y informatyki to przede wszystkim: (kolejność alfabetyczna)\r\n\r\n <ul><li><i>administracja sieciowa</i> – zarzÄ…dzanie sieciÄ… komputerowÄ…</li>\r\n <li>administracja systemem – zarzÄ…dzanie systemem informatycznym;</li>\r\n <li>algorytmika – tworzenie i analizowanie algorytmów. Podstawowa, najstarsza dyscyplina informatyki;</li>\r\n <li>architektura procesorów – projektowanie procesorów, bez których nie byÅ‚oby komputerów;</li>\r\n <li>bezpieczeÅ„stwo komputerowe – dyscyplina łączÄ…ca informatykÄ™ z telekomunikacjÄ… w celu zapewnienia poufnoÅ›ci i bezpieczeÅ„stwa danych;</li>\r\n <li>grafika komputerowa – wykorzystuje technikÄ™ komputerowÄ… w celu wizualizacji rzeczywistoÅ›ci;</li>\r\n <li>informatyka afektywna - budowa systemów rozpoznajÄ…cych emocje użytkowników oraz reagujÄ…cych na nie;</li>\r\n <li>informatyka medyczna - metoda tworzenia systemów przetwarzajÄ…cych informacje wykorzystywane w opiece zdrowotnej.</li>\r\n <li>informatyka Å›ledcza - dostarczajÄ…ca cyfrowych Å›rodków dowodowych dotyczÄ…cych przestÄ™pstw popeÅ‚nionych cyfrowo lub przy użyciu systemów elektronicznych,</li>\r\n <li>inżynieria oprogramowania – produkcja oprogramowania;</li>\r\n <li>jÄ™zyki programowania – tworzenie jÄ™zyków programowania. WyróżniajÄ…ca siÄ™, podstawowa dyscyplina informatyki;</li>\r\n <li>programowanie komputerów – czyli tworzenie kodu źródÅ‚owego programów komputerowych. Najpopularniejsza dyscyplina informatyki;</li>\r\n <li>sprzÄ™t komputerowy – komputery i ich urzÄ…dzenia peryferyjne;</li>\r\n <li>symulacja komputerowa – komputerowa symulacja z wykorzystaniem modelowania matematycznego;</li>\r\n <li>systemy informatyczne – tworzenie systemów informatycznych w celach użytkowych;</li>\r\n <li>sztuczna inteligencja – komputerowe symulowanie inteligencji;</li>\r\n <li>teoria informacji – dyscyplina zajmujÄ…ca siÄ™ problematykÄ… informacji, w tym teoriÄ… przetwarzania i przesyÅ‚ania informacji;</li>\r\n <li>webmastering – projektowanie, programowanie i publikacja serwisów internetowych.</li></ul><p></p>\r\n', '12.02.2017, 18:14', ', ,', 'nie', 'Bazy Danych'), (6, 'abc', 'sa', ' <p><b>Informatyka</b> – dyscyplina nauki zaliczana do nauk Å›cisÅ‚ych oraz techniki zajmujÄ…ca siÄ™ przetwarzaniem informacji, w tym również technologiami przetwarzania informacji oraz technologiami wytwarzania systemów przetwarzajÄ…cych informacje. PoczÄ…tkowo stanowiÅ‚a część matematyki, później rozwinęła siÄ™ do odrÄ™bnej dyscypliny – pozostaje jednak nadal w Å›cisÅ‚ej relacji z matematykÄ…, która dostarcza informatyce podstaw teoretycznych.</p>\r\n <p></p><h3>Nazewnictwo</h3>\r\n OkreÅ›lenie informatyka ma swój odpowiednik w jÄ™zyku angielskim: <a>computer science</a> – dosÅ‚ownie: nauka o komputerze – co może być mylÄ…ce i dlatego jest krytykowane w Å›rodowiskach akademickich i informatycznych.<p></p>\r\n\r\n <p>W jÄ™zyku polskim termin ten zaproponowaÅ‚ w październiku 1968 Romuald MarczyÅ„ski w Zakopanem na ogólnopolskiej konferencji poÅ›wiÄ™conej \"maszynom matematycznym\" na wzór (fr.) informatique i (niem.) Informatik.</p>\r\n <p><u>PrzeglÄ…d dyscyplin</u></p>\r\n <p>Współczesna informatyka jest obecnie bardzo szerokÄ… dziedzinÄ…. Jest zarówno dyscyplinÄ… naukowÄ…, podobnie jak fizyka lub chemia, a także jest mocno powiÄ…zana z dziaÅ‚alnoÅ›ciÄ… gospodarczÄ… i wieloma innymi dziedzinami życia.</p>\r\n\r\n <p>Bardziej znane i popularne dziaÅ‚y informatyki to przede wszystkim: (kolejność alfabetyczna)\r\n\r\n </p><ul><li><i>administracja sieciowa</i> – zarzÄ…dzanie sieciÄ… komputerowÄ…</li>\r\n <li>administracja systemem – zarzÄ…dzanie systemem informatycznym;</li>\r\n <li>algorytmika – tworzenie i analizowanie algorytmów. Podstawowa, najstarsza dyscyplina informatyki;</li>\r\n <li>architektura procesorów – projektowanie procesorów, bez których nie byÅ‚oby komputerów;</li>\r\n <li>bezpieczeÅ„stwo komputerowe – dyscyplina łączÄ…ca informatykÄ™ z telekomunikacjÄ… w celu zapewnienia poufnoÅ›ci i bezpieczeÅ„stwa danych;</li>\r\n <li>grafika komputerowa – wykorzystuje technikÄ™ komputerowÄ… w celu wizualizacji rzeczywistoÅ›ci;</li>\r\n <li>informatyka afektywna - budowa systemów rozpoznajÄ…cych emocje użytkowników oraz reagujÄ…cych na nie;</li>\r\n <li>informatyka medyczna - metoda tworzenia systemów przetwarzajÄ…cych informacje wykorzystywane w opiece zdrowotnej.</li>\r\n <li>informatyka Å›ledcza - dostarczajÄ…ca cyfrowych Å›rodków dowodowych dotyczÄ…cych przestÄ™pstw popeÅ‚nionych cyfrowo lub przy użyciu systemów elektronicznych,</li>\r\n <li>inżynieria oprogramowania – produkcja oprogramowania;</li>\r\n <li>jÄ™zyki programowania – tworzenie jÄ™zyków programowania. WyróżniajÄ…ca siÄ™, podstawowa dyscyplina informatyki;</li>\r\n <li>programowanie komputerów – czyli tworzenie kodu źródÅ‚owego programów komputerowych. Najpopularniejsza dyscyplina informatyki;</li>\r\n <li>sprzÄ™t komputerowy – komputery i ich urzÄ…dzenia peryferyjne;</li>\r\n <li>symulacja komputerowa – komputerowa symulacja z wykorzystaniem modelowania matematycznego;</li>\r\n <li>systemy informatyczne – tworzenie systemów informatycznych w celach użytkowych;</li>\r\n <li>sztuczna inteligencja – komputerowe symulowanie inteligencji;</li>\r\n <li>teoria informacji – dyscyplina zajmujÄ…ca siÄ™ problematykÄ… informacji, w tym teoriÄ… przetwarzania i przesyÅ‚ania informacji;</li>\r\n <li>webmastering – projektowanie, programowanie i publikacja serwisów internetowych.</li></ul><p></p>\r\n', '12.02.2017, 18:14', ', sharesd,', 'nie', '<NAME>'), (7, 'admin', 'abc', ' <p><b>Informatyka</b> – dyscyplina nauki zaliczana do nauk Å›cisÅ‚ych oraz techniki zajmujÄ…ca siÄ™ przetwarzaniem informacji, w tym również technologiami przetwarzania informacji oraz technologiami wytwarzania systemów przetwarzajÄ…cych informacje. PoczÄ…tkowo stanowiÅ‚a część matematyki, później rozwinęła siÄ™ do odrÄ™bnej dyscypliny – pozostaje jednak nadal w Å›cisÅ‚ej relacji z matematykÄ…, która dostarcza informatyce podstaw teoretycznych.</p>\r\n <p><h3>Nazewnictwo</h3>\r\n OkreÅ›lenie informatyka ma swój odpowiednik w jÄ™zyku angielskim: <a>computer science</a> – dosÅ‚ownie: nauka o komputerze – co może być mylÄ…ce i dlatego jest krytykowane w Å›rodowiskach akademickich i informatycznych.<p></p>\r\n\r\n <p>W jÄ™zyku polskim termin ten zaproponowaÅ‚ w październiku 1968 Romuald MarczyÅ„ski w Zakopanem na ogólnopolskiej konferencji poÅ›wiÄ™conej \"maszynom matematycznym\" na wzór (fr.) informatique i (niem.) Informatik.</p>\r\n <p><u>PrzeglÄ…d dyscyplin</u></p>\r\n <p>Współczesna informatyka jest obecnie bardzo szerokÄ… dziedzinÄ…. Jest zarówno dyscyplinÄ… naukowÄ…, podobnie jak fizyka lub chemia, a także jest mocno powiÄ…zana z dziaÅ‚alnoÅ›ciÄ… gospodarczÄ… i wieloma innymi dziedzinami życia.</p>\r\n\r\n <p>Bardziej znane i popularne dziaÅ‚y informatyki to przede wszystkim: (kolejność alfabetyczna)\r\n\r\n <ul><li><i>administracja sieciowa</i> – zarzÄ…dzanie sieciÄ… komputerowÄ…</li>\r\n <li>administracja systemem – zarzÄ…dzanie systemem informatycznym;</li>\r\n <li>algorytmika – tworzenie i analizowanie algorytmów. Podstawowa, najstarsza dyscyplina informatyki;</li>\r\n <li>architektura procesorów – projektowanie procesorów, bez których nie byÅ‚oby komputerów;</li>\r\n <li>bezpieczeÅ„stwo komputerowe – dyscyplina łączÄ…ca informatykÄ™ z telekomunikacjÄ… w celu zapewnienia poufnoÅ›ci i bezpieczeÅ„stwa danych;</li>\r\n <li>grafika komputerowa – wykorzystuje technikÄ™ komputerowÄ… w celu wizualizacji rzeczywistoÅ›ci;</li>\r\n <li>informatyka afektywna - budowa systemów rozpoznajÄ…cych emocje użytkowników oraz reagujÄ…cych na nie;</li>\r\n <li>informatyka medyczna - metoda tworzenia systemów przetwarzajÄ…cych informacje wykorzystywane w opiece zdrowotnej.</li>\r\n <li>informatyka Å›ledcza - dostarczajÄ…ca cyfrowych Å›rodków dowodowych dotyczÄ…cych przestÄ™pstw popeÅ‚nionych cyfrowo lub przy użyciu systemów elektronicznych,</li>\r\n <li>inżynieria oprogramowania – produkcja oprogramowania;</li>\r\n <li>jÄ™zyki programowania – tworzenie jÄ™zyków programowania. WyróżniajÄ…ca siÄ™, podstawowa dyscyplina informatyki;</li>\r\n <li>programowanie komputerów – czyli tworzenie kodu źródÅ‚owego programów komputerowych. Najpopularniejsza dyscyplina informatyki;</li>\r\n <li>sprzÄ™t komputerowy – komputery i ich urzÄ…dzenia peryferyjne;</li>\r\n <li>symulacja komputerowa – komputerowa symulacja z wykorzystaniem modelowania matematycznego;</li>\r\n <li>systemy informatyczne – tworzenie systemów informatycznych w celach użytkowych;</li>\r\n <li>sztuczna inteligencja – komputerowe symulowanie inteligencji;</li>\r\n <li>teoria informacji – dyscyplina zajmujÄ…ca siÄ™ problematykÄ… informacji, w tym teoriÄ… przetwarzania i przesyÅ‚ania informacji;</li>\r\n <li>webmastering – projektowanie, programowanie i publikacja serwisów internetowych.</li></ul><p></p>\r\n', '12.02.2017, 18:15', ', abc,', 'tak', 'Bazy Danych'), (8, 'abc', 'tylko dla abc', ' <p><b>Informatyka</b> – dyscyplina nauki zaliczana do nauk Å›cisÅ‚ych oraz techniki zajmujÄ…ca siÄ™ przetwarzaniem informacji, w tym również technologiami przetwarzania informacji oraz technologiami wytwarzania systemów przetwarzajÄ…cych informacje. PoczÄ…tkowo stanowiÅ‚a część matematyki, później rozwinęła siÄ™ do odrÄ™bnej dyscypliny – pozostaje jednak nadal w Å›cisÅ‚ej relacji z matematykÄ…, która dostarcza informatyce podstaw teoretycznych.</p>\r\n <p></p><h3>Nazewnictwo</h3>\r\n OkreÅ›lenie informatyka ma swój odpowiednik w jÄ™zyku angielskim: <a>computer science</a> – dosÅ‚ownie: nauka o komputerze – co może być mylÄ…ce i dlatego jest krytykowane w Å›rodowiskach akademickich i informatycznych.<p></p>\r\n\r\n <p>W jÄ™zyku polskim termin ten zaproponowaÅ‚ w październiku 1968 Romuald MarczyÅ„ski w Zakopanem na ogólnopolskiej konferencji poÅ›wiÄ™conej \"maszynom matematycznym\" na wzór (fr.) informatique i (niem.) Informatik.</p>\r\n <p><u>PrzeglÄ…d dyscyplin</u></p>\r\n <p>Współczesna informatyka jest obecnie bardzo szerokÄ… dziedzinÄ…. Jest zarówno dyscyplinÄ… naukowÄ…, podobnie jak fizyka lub chemia, a także jest mocno powiÄ…zana z dziaÅ‚alnoÅ›ciÄ… gospodarczÄ… i wieloma innymi dziedzinami życia.</p>\r\n\r\n <p>Bardziej znane i popularne dziaÅ‚y informatyki to przede wszystkim: (kolejność alfabetyczna)\r\n\r\n </p><ul><li><i>administracja sieciowa</i> – zarzÄ…dzanie sieciÄ… komputerowÄ…</li>\r\n <li>administracja systemem – zarzÄ…dzanie systemem informatycznym;</li>\r\n <li>algorytmika – tworzenie i analizowanie algorytmów. Podstawowa, najstarsza dyscyplina informatyki;</li>\r\n <li>architektura procesorów – projektowanie procesorów, bez których nie byÅ‚oby komputerów;</li>\r\n <li>bezpieczeÅ„stwo komputerowe – dyscyplina łączÄ…ca informatykÄ™ z telekomunikacjÄ… w celu zapewnienia poufnoÅ›ci i bezpieczeÅ„stwa danych;</li>\r\n <li>grafika komputerowa – wykorzystuje technikÄ™ komputerowÄ… w celu wizualizacji rzeczywistoÅ›ci;</li>\r\n <li>informatyka afektywna - budowa systemów rozpoznajÄ…cych emocje użytkowników oraz reagujÄ…cych na nie;</li>\r\n <li>informatyka medyczna - metoda tworzenia systemów przetwarzajÄ…cych informacje wykorzystywane w opiece zdrowotnej.</li>\r\n <li>informatyka Å›ledcza - dostarczajÄ…ca cyfrowych Å›rodków dowodowych dotyczÄ…cych przestÄ™pstw popeÅ‚nionych cyfrowo lub przy użyciu systemów elektronicznych,</li>\r\n <li>inżynieria oprogramowania – produkcja oprogramowania;</li>\r\n <li>jÄ™zyki programowania – tworzenie jÄ™zyków programowania. WyróżniajÄ…ca siÄ™, podstawowa dyscyplina informatyki;</li>\r\n <li>programowanie komputerów – czyli tworzenie kodu źródÅ‚owego programów komputerowych. Najpopularniejsza dyscyplina informatyki;</li>\r\n <li>sprzÄ™t komputerowy – komputery i ich urzÄ…dzenia peryferyjne;</li>\r\n <li>symulacja komputerowa – komputerowa symulacja z wykorzystaniem modelowania matematycznego;</li>\r\n <li>systemy informatyczne – tworzenie systemów informatycznych w celach użytkowych;</li>\r\n <li>sztuczna inteligencja – komputerowe symulowanie inteligencji;</li>\r\n <li>teoria informacji – dyscyplina zajmujÄ…ca siÄ™ problematykÄ… informacji, w tym teoriÄ… przetwarzania i przesyÅ‚ania informacji;</li>\r\n <li>webmastering – projektowanie, programowanie i publikacja serwisów internetowych.</li></ul><p></p>\r\n', '12.02.2017, 18:17', ', ,', 'nie', 'Bazy Danych'), (9, 'abc', 'lalalalal', ' <p><b>Informatyka</b> – dyscyplina nauki zaliczana do nauk Å›cisÅ‚ych oraz techniki zajmujÄ…ca siÄ™ przetwarzaniem informacji, w tym również technologiami przetwarzania informacji oraz technologiami wytwarzania systemów przetwarzajÄ…cych informacje. PoczÄ…tkowo stanowiÅ‚a część matematyki, później rozwinęła siÄ™ do odrÄ™bnej dyscypliny – pozostaje jednak nadal w Å›cisÅ‚ej relacji z matematykÄ…, która dostarcza informatyce podstaw teoretycznych.</p>\r\n <p></p><h3>Nazewnictwo</h3>\r\n OkreÅ›lenie informatyka ma swój odpowiednik w jÄ™zyku angielskim: <a>computer science</a> – dosÅ‚ownie: nauka o komputerze – co może być mylÄ…ce i dlatego jest krytykowane w Å›rodowiskach akademickich i informatycznych.<p></p>\r\n\r\n <p>W jÄ™zyku polskim termin ten zaproponowaÅ‚ w październiku 1968 Romuald MarczyÅ„ski w Zakopanem na ogólnopolskiej konferencji poÅ›wiÄ™conej \"maszynom matematycznym\" na wzór (fr.) informatique i (niem.) Informatik.</p>\r\n <p><u>PrzeglÄ…d dyscyplin</u></p>\r\n <p>Współczesna informatyka jest obecnie bardzo szerokÄ… dziedzinÄ…. Jest zarówno dyscyplinÄ… naukowÄ…, podobnie jak fizyka lub chemia, a także jest mocno powiÄ…zana z dziaÅ‚alnoÅ›ciÄ… gospodarczÄ… i wieloma innymi dziedzinami życia.</p>\r\n\r\n <p>Bardziej znane i popularne dziaÅ‚y informatyki to przede wszystkim: (kolejność alfabetyczna)\r\n\r\n </p><ul><li><i>administracja sieciowa</i> – zarzÄ…dzanie sieciÄ… komputerowÄ…</li>\r\n <li>administracja systemem – zarzÄ…dzanie systemem informatycznym;</li>\r\n <li>algorytmika – tworzenie i analizowanie algorytmów. Podstawowa, najstarsza dyscyplina informatyki;</li>\r\n <li>architektura procesorów – projektowanie procesorów, bez których nie byÅ‚oby komputerów;</li>\r\n <li>bezpieczeÅ„stwo komputerowe – dyscyplina łączÄ…ca informatykÄ™ z telekomunikacjÄ… w celu zapewnienia poufnoÅ›ci i bezpieczeÅ„stwa danych;</li>\r\n <li>grafika komputerowa – wykorzystuje technikÄ™ komputerowÄ… w celu wizualizacji rzeczywistoÅ›ci;</li>\r\n <li>informatyka afektywna - budowa systemów rozpoznajÄ…cych emocje użytkowników oraz reagujÄ…cych na nie;</li>\r\n <li>informatyka medyczna - metoda tworzenia systemów przetwarzajÄ…cych informacje wykorzystywane w opiece zdrowotnej.</li>\r\n <li>informatyka Å›ledcza - dostarczajÄ…ca cyfrowych Å›rodków dowodowych dotyczÄ…cych przestÄ™pstw popeÅ‚nionych cyfrowo lub przy użyciu systemów elektronicznych,</li>\r\n <li>inżynieria oprogramowania – produkcja oprogramowania;</li>\r\n <li>jÄ™zyki programowania – tworzenie jÄ™zyków programowania. WyróżniajÄ…ca siÄ™, podstawowa dyscyplina informatyki;</li>\r\n <li>programowanie komputerów – czyli tworzenie kodu źródÅ‚owego programów komputerowych. Najpopularniejsza dyscyplina informatyki;</li>\r\n <li>sprzÄ™t komputerowy – komputery i ich urzÄ…dzenia peryferyjne;</li>\r\n <li>symulacja komputerowa – komputerowa symulacja z wykorzystaniem modelowania matematycznego;</li>\r\n <li>systemy informatyczne – tworzenie systemów informatycznych w celach użytkowych;</li>\r\n <li>sztuczna inteligencja – komputerowe symulowanie inteligencji;</li>\r\n <li>teoria informacji – dyscyplina zajmujÄ…ca siÄ™ problematykÄ… informacji, w tym teoriÄ… przetwarzania i przesyÅ‚ania informacji;</li>\r\n <li>webmastering – projektowanie, programowanie i publikacja serwisów internetowych.</li></ul><p></p>\r\n', '12.02.2017, 18:34', ', ,', 'nie', 'Algorytmy i struktury danych'), (10, 'admin', 'ccasca', ' <p><b>Informatyka</b> – dyscyplina nauki zaliczana do nauk Å›cisÅ‚ych oraz techniki zajmujÄ…ca siÄ™ przetwarzaniem informacji, w tym również technologiami przetwarzania informacji oraz technologiami wytwarzania systemów przetwarzajÄ…cych informacje. PoczÄ…tkowo stanowiÅ‚a część matematyki, później rozwinęła siÄ™ do odrÄ™bnej dyscypliny – pozostaje jednak nadal w Å›cisÅ‚ej relacji z matematykÄ…, która dostarcza informatyce podstaw teoretycznych.</p>\r\n <p></p><h3>Nazewnictwo</h3>\r\n OkreÅ›lenie informatyka ma swój odpowiednik w jÄ™zyku angielskim: <a>computer science</a> – dosÅ‚ownie: nauka o komputerze – co może być mylÄ…ce i dlatego jest krytykowane w Å›rodowiskach akademickich i informatycznych.<p></p>\r\n\r\n <p>W jÄ™zyku polskim termin ten zaproponowaÅ‚ w październiku 1968 Romuald MarczyÅ„ski w Zakopanem na ogólnopolskiej konferencji poÅ›wiÄ™conej \"maszynom matematycznym\" na wzór (fr.) informatique i (niem.) Informatik.</p>\r\n <p><u>PrzeglÄ…d dyscyplin</u></p>\r\n <p>Współczesna informatyka jest obecnie bardzo szerokÄ… dziedzinÄ…. Jest zarówno dyscyplinÄ… naukowÄ…, podobnie jak fizyka lub chemia, a także jest mocno powiÄ…zana z dziaÅ‚alnoÅ›ciÄ… gospodarczÄ… i wieloma innymi dziedzinami życia.</p>\r\n\r\n <p>Bardziej znane i popularne dziaÅ‚y informatyki to przede wszystkim: (kolejność alfabetyczna)\r\n\r\n </p><ul><li><i>administracja sieciowa</i> – zarzÄ…dzanie sieciÄ… komputerowÄ…</li>\r\n <li>administracja systemem – zarzÄ…dzanie systemem informatycznym;</li>\r\n <li>algorytmika – tworzenie i analizowanie algorytmów. Podstawowa, najstarsza dyscyplina informatyki;</li>\r\n <li>architektura procesorów – projektowanie procesorów, bez których nie byÅ‚oby komputerów;</li>\r\n <li>bezpieczeÅ„stwo komputerowe – dyscyplina łączÄ…ca informatykÄ™ z telekomunikacjÄ… w celu zapewnienia poufnoÅ›ci i bezpieczeÅ„stwa danych;</li>\r\n <li>grafika komputerowa – wykorzystuje technikÄ™ komputerowÄ… w celu wizualizacji rzeczywistoÅ›ci;</li>\r\n <li>informatyka afektywna - budowa systemów rozpoznajÄ…cych emocje użytkowników oraz reagujÄ…cych na nie;</li>\r\n <li>informatyka medyczna - metoda tworzenia systemów przetwarzajÄ…cych informacje wykorzystywane w opiece zdrowotnej.</li>\r\n <li>informatyka Å›ledcza - dostarczajÄ…ca cyfrowych Å›rodków dowodowych dotyczÄ…cych przestÄ™pstw popeÅ‚nionych cyfrowo lub przy użyciu systemów elektronicznych,</li>\r\n <li>inżynieria oprogramowania – produkcja oprogramowania;</li>\r\n <li>jÄ™zyki programowania – tworzenie jÄ™zyków programowania. WyróżniajÄ…ca siÄ™, podstawowa dyscyplina informatyki;</li>\r\n <li>programowanie komputerów – czyli tworzenie kodu źródÅ‚owego programów komputerowych. Najpopularniejsza dyscyplina informatyki;</li>\r\n <li>sprzÄ™t komputerowy – komputery i ich urzÄ…dzenia peryferyjne;</li>\r\n <li>symulacja komputerowa – komputerowa symulacja z wykorzystaniem modelowania matematycznego;</li>\r\n <li>systemy informatyczne – tworzenie systemów informatycznych w celach użytkowych;</li>\r\n <li>sztuczna inteligencja – komputerowe symulowanie inteligencji;</li>\r\n <li>teoria informacji – dyscyplina zajmujÄ…ca siÄ™ problematykÄ… informacji, w tym teoriÄ… przetwarzania i przesyÅ‚ania informacji;</li>\r\n <li>webmastering – projektowanie, programowanie i publikacja serwisów internetowych.</li></ul><p></p>\r\n', '12.02.2017, 18:47', ', ,', 'nie', 'Zasady realizacji projetków'), (11, 'admin', 'sdads', ' <p><b>Informatyka</b> – dyscyplina nauki zaliczana do nauk Å›cisÅ‚ych oraz techniki zajmujÄ…ca siÄ™ przetwarzaniem informacji, w tym również technologiami przetwarzania informacji oraz technologiami wytwarzania systemów przetwarzajÄ…cych informacje. PoczÄ…tkowo stanowiÅ‚a część matematyki, później rozwinęła siÄ™ do odrÄ™bnej dyscypliny – pozostaje jednak nadal w Å›cisÅ‚ej relacji z matematykÄ…, która dostarcza informatyce podstaw teoretycznych.</p>\r\n <p></p><h3>Nazewnictwo</h3>\r\n OkreÅ›lenie informatyka ma swój odpowiednik w jÄ™zyku angielskim: <a>computer science</a> – dosÅ‚ownie: nauka o komputerze – co może być mylÄ…ce i dlatego jest krytykowane w Å›rodowiskach akademickich i informatycznych.<p></p>\r\n\r\n <p>W jÄ™zyku polskim termin ten zaproponowaÅ‚ w październiku 1968 Romuald MarczyÅ„ski w Zakopanem na ogólnopolskiej konferencji poÅ›wiÄ™conej \"maszynom matematycznym\" na wzór (fr.) informatique i (niem.) Informatik.</p>\r\n <p><u>PrzeglÄ…d dyscyplin</u></p>\r\n <p>Współczesna informatyka jest obecnie bardzo szerokÄ… dziedzinÄ…. Jest zarówno dyscyplinÄ… naukowÄ…, podobnie jak fizyka lub chemia, a także jest mocno powiÄ…zana z dziaÅ‚alnoÅ›ciÄ… gospodarczÄ… i wieloma innymi dziedzinami życia.</p>\r\n\r\n <p>Bardziej znane i popularne dziaÅ‚y informatyki to przede wszystkim: (kolejność alfabetyczna)\r\n\r\n </p><ul><li><i>administracja sieciowa</i> – zarzÄ…dzanie sieciÄ… komputerowÄ…</li>\r\n <li>administracja systemem – zarzÄ…dzanie systemem informatycznym;</li>\r\n <li>algorytmika – tworzenie i analizowanie algorytmów. Podstawowa, najstarsza dyscyplina informatyki;</li>\r\n <li>architektura procesorów – projektowanie procesorów, bez których nie byÅ‚oby komputerów;</li>\r\n <li>bezpieczeÅ„stwo komputerowe – dyscyplina łączÄ…ca informatykÄ™ z telekomunikacjÄ… w celu zapewnienia poufnoÅ›ci i bezpieczeÅ„stwa danych;</li>\r\n <li>grafika komputerowa – wykorzystuje technikÄ™ komputerowÄ… w celu wizualizacji rzeczywistoÅ›ci;</li>\r\n <li>informatyka afektywna - budowa systemów rozpoznajÄ…cych emocje użytkowników oraz reagujÄ…cych na nie;</li>\r\n <li>informatyka medyczna - metoda tworzenia systemów przetwarzajÄ…cych informacje wykorzystywane w opiece zdrowotnej.</li>\r\n <li>informatyka Å›ledcza - dostarczajÄ…ca cyfrowych Å›rodków dowodowych dotyczÄ…cych przestÄ™pstw popeÅ‚nionych cyfrowo lub przy użyciu systemów elektronicznych,</li>\r\n <li>inżynieria oprogramowania – produkcja oprogramowania;</li>\r\n <li>jÄ™zyki programowania – tworzenie jÄ™zyków programowania. WyróżniajÄ…ca siÄ™, podstawowa dyscyplina informatyki;</li>\r\n <li>programowanie komputerów – czyli tworzenie kodu źródÅ‚owego programów komputerowych. Najpopularniejsza dyscyplina informatyki;</li>\r\n <li>sprzÄ™t komputerowy – komputery i ich urzÄ…dzenia peryferyjne;</li>\r\n <li>symulacja komputerowa – komputerowa symulacja z wykorzystaniem modelowania matematycznego;</li>\r\n <li>systemy informatyczne – tworzenie systemów informatycznych w celach użytkowych;</li>\r\n <li>sztuczna inteligencja – komputerowe symulowanie inteligencji;</li>\r\n <li>teoria informacji – dyscyplina zajmujÄ…ca siÄ™ problematykÄ… informacji, w tym teoriÄ… przetwarzania i przesyÅ‚ania informacji;</li>\r\n <li>webmastering – projektowanie, programowanie i publikacja serwisów internetowych.</li></ul><p></p>\r\n', '12.02.2017, 18:48', ', abc,', 'nie', 'Matematyka'), (12, 'admin', 'asdasd', ' <p><b>Informatyka</b> – dyscyplina nauki zaliczana do nauk Å›cisÅ‚ych oraz techniki zajmujÄ…ca siÄ™ przetwarzaniem informacji, w tym również technologiami przetwarzania informacji oraz technologiami wytwarzania systemów przetwarzajÄ…cych informacje. PoczÄ…tkowo stanowiÅ‚a część matematyki, później rozwinęła siÄ™ do odrÄ™bnej dyscypliny – pozostaje jednak nadal w Å›cisÅ‚ej relacji z matematykÄ…, która dostarcza informatyce podstaw teoretycznych.</p>\r\n <p><h3>Nazewnictwo</h3>\r\n OkreÅ›lenie informatyka ma swój odpowiednik w jÄ™zyku angielskim: <a>computer science</a> – dosÅ‚ownie: nauka o komputerze – co może być mylÄ…ce i dlatego jest krytykowane w Å›rodowiskach akademickich i informatycznych.<p></p>\r\n\r\n <p>W jÄ™zyku polskim termin ten zaproponowaÅ‚ w październiku 1968 Romuald MarczyÅ„ski w Zakopanem na ogólnopolskiej konferencji poÅ›wiÄ™conej \"maszynom matematycznym\" na wzór (fr.) informatique i (niem.) Informatik.</p>\r\n <p><u>PrzeglÄ…d dyscyplin</u></p>\r\n <p>Współczesna informatyka jest obecnie bardzo szerokÄ… dziedzinÄ…. Jest zarówno dyscyplinÄ… naukowÄ…, podobnie jak fizyka lub chemia, a także jest mocno powiÄ…zana z dziaÅ‚alnoÅ›ciÄ… gospodarczÄ… i wieloma innymi dziedzinami życia.</p>\r\n\r\n <p>Bardziej znane i popularne dziaÅ‚y informatyki to przede wszystkim: (kolejność alfabetyczna)\r\n\r\n <ul><li><i>administracja sieciowa</i> – zarzÄ…dzanie sieciÄ… komputerowÄ…</li>\r\n <li>administracja systemem – zarzÄ…dzanie systemem informatycznym;</li>\r\n <li>algorytmika – tworzenie i analizowanie algorytmów. Podstawowa, najstarsza dyscyplina informatyki;</li>\r\n <li>architektura procesorów – projektowanie procesorów, bez których nie byÅ‚oby komputerów;</li>\r\n <li>bezpieczeÅ„stwo komputerowe – dyscyplina łączÄ…ca informatykÄ™ z telekomunikacjÄ… w celu zapewnienia poufnoÅ›ci i bezpieczeÅ„stwa danych;</li>\r\n <li>grafika komputerowa – wykorzystuje technikÄ™ komputerowÄ… w celu wizualizacji rzeczywistoÅ›ci;</li>\r\n <li>informatyka afektywna - budowa systemów rozpoznajÄ…cych emocje użytkowników oraz reagujÄ…cych na nie;</li>\r\n <li>informatyka medyczna - metoda tworzenia systemów przetwarzajÄ…cych informacje wykorzystywane w opiece zdrowotnej.</li>\r\n <li>informatyka Å›ledcza - dostarczajÄ…ca cyfrowych Å›rodków dowodowych dotyczÄ…cych przestÄ™pstw popeÅ‚nionych cyfrowo lub przy użyciu systemów elektronicznych,</li>\r\n <li>inżynieria oprogramowania – produkcja oprogramowania;</li>\r\n <li>jÄ™zyki programowania – tworzenie jÄ™zyków programowania. WyróżniajÄ…ca siÄ™, podstawowa dyscyplina informatyki;</li>\r\n <li>programowanie komputerów – czyli tworzenie kodu źródÅ‚owego programów komputerowych. Najpopularniejsza dyscyplina informatyki;</li>\r\n <li>sprzÄ™t komputerowy – komputery i ich urzÄ…dzenia peryferyjne;</li>\r\n <li>symulacja komputerowa – komputerowa symulacja z wykorzystaniem modelowania matematycznego;</li>\r\n <li>systemy informatyczne – tworzenie systemów informatycznych w celach użytkowych;</li>\r\n <li>sztuczna inteligencja – komputerowe symulowanie inteligencji;</li>\r\n <li>teoria informacji – dyscyplina zajmujÄ…ca siÄ™ problematykÄ… informacji, w tym teoriÄ… przetwarzania i przesyÅ‚ania informacji;</li>\r\n <li>webmastering – projektowanie, programowanie i publikacja serwisów internetowych.</li></ul><p></p>\r\n', '12.02.2017, 18:50', ', abc,', 'nie', 'Wyzwania bezpieczeÅ„stwa paÅ„stwa w XXI wieku'), (13, 'admin', 'vzsdvc', 'Treść notatki.\r\n', '12.02.2017, 20:41', ', ,', '', ''), (14, 'admin', 'dasd', 'Treść notatki.dsa', '12.02.2017, 20:42', ', ,', '', ''), (15, 'admin', 'cdd', 'Treść notatki.\r\n', '12.02.2017, 20:42', ', ,', '', ''), (16, 'admin', 'ddd', 'Treść notatki.\r\n', '12.02.2017, 21:06', ', ,', 'nie', 'Algorytmy i struktury danych'), (17, 'admin', 'ddd', 'Treść notatki.\r\n', '12.02.2017, 21:06', ', ,', 'nie', 'Algorytmy i struktury danych'), (18, 'admin', 'ddd', 'Treść notatki.\r\n', '12.02.2017, 21:07', ', ,', 'nie', 'Algorytmy i struktury danych'), (19, 'admin', 'sss', 'Treść notatki.\r\n', '12.02.2017, 21:07', ', ,', 'nie', 'Algorytmy i struktury danych'), (20, 'admin', 'sss', 'Treść notatki.\r\n', '12.02.2017, 21:07', ', ,', 'nie', 'Algorytmy i struktury danych'), (21, 'admin', 'dw', 'Treść notatki.ffed', '12.02.2017, 21:27', ', ,', 'nie', 'Algorytmy i struktury danych'), (22, 'admin', 'dsa', 'Treść notatki.\r\n', '12.02.2017, 21:27', ', ,', 'nie', 'Algorytmy i struktury danych'), (23, 'admin', 'dsada', 'Treść notatki.\r\n', '12.02.2017, 23:13', ', ,', '', ''), (24, 'admin', 'Test', 'Treść notatki.test', '12.02.2017, 23:13', ', ,', '', ''); -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `uzytkownicy` -- CREATE TABLE `uzytkownicy` ( `id` int(10) NOT NULL, `login` varchar(255) NOT NULL, `haslo` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `rejestracja` int(10) NOT NULL, `logowanie` int(10) NOT NULL, `ip` varchar(15) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Zrzut danych tabeli `uzytkownicy` -- INSERT INTO `uzytkownicy` (`id`, `login`, `haslo`, `email`, `rejestracja`, `logowanie`, `ip`) VALUES (1, 'admin', '207023ccb44feb4d7dadca005ce29a64', '<EMAIL>', 1357063200, 1357063200, '127.0.0.1'), (2, 'abc', '900150983cd24fb0d6963f7d28e17f72', 'abc', 1486893633, 1486893633, '127.0.0.1'); -- -- Indeksy dla zrzutów tabel -- -- -- Indexes for table `notatki` -- ALTER TABLE `notatki` ADD PRIMARY KEY (`id`); -- -- Indexes for table `uzytkownicy` -- ALTER TABLE `uzytkownicy` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT dla tabeli `notatki` -- ALTER TABLE `notatki` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25; -- -- AUTO_INCREMENT dla tabeli `uzytkownicy` -- ALTER TABLE `uzytkownicy` MODIFY `id` int(10) 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 */;
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 09, 2015 at 06:14 PM -- Server version: 5.0.51b-community-nt-log -- PHP Version: 5.3.9 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 */; -- -------------------------------------------------------- -- -- Table structure for table `userdata` -- CREATE TABLE IF NOT EXISTS `userdata` ( `user_id` int(11) NOT NULL, `name` varchar(64) NOT NULL, `type` varchar(8) default NULL, `value` text, KEY `user_id` (`user_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Dumping data for table `userdata` -- INSERT INTO `userdata` (`user_id`, `name`, `type`, `value`) VALUES (4, 'province', NULL, 'provx'), (4, 'address', NULL, 'adrre <html> </body>'), (4, 'postal', NULL, '10550'), (4, 'city', NULL, 'citi'), (4, 'country', NULL, 'count'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `user_id` int(11) NOT NULL auto_increment, `username` varchar(64) NOT NULL, `password` varchar(128) NOT NULL, `access_token_time` datetime default NULL, `access_token` varchar(96) default NULL, `user_type` varchar(64) NOT NULL, `user_title` varchar(255) NOT NULL, `user_email` varchar(255) default NULL, `user_avatar` varchar(255) default NULL, `user_about` varchar(255) default NULL, `created_time` datetime default NULL, `accessed_time` datetime default NULL, `updated_time` datetime default NULL, `user_permissions` text, `user_options` text, `user_status` int(11) default NULL, `first_name` varchar(128) default NULL, `mid_name` varchar(64) default NULL, `last_name` varchar(128) default NULL, `language` varchar(16) default NULL, `timezone` varchar(16) default NULL, `birthday` date default NULL, `flags` int(11) default NULL, PRIMARY KEY (`user_id`), KEY `access_token` (`access_token`), KEY `username` (`username`), KEY `user_id` (`user_id`), KEY `access_token_2` (`access_token`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=50 ; -- -- Dumping data for table `users` -- INSERT INTO `users` (`user_id`, `username`, `password`, `access_token_time`, `access_token`, `user_type`, `user_title`, `user_email`, `user_avatar`, `user_about`, `created_time`, `accessed_time`, `updated_time`, `user_permissions`, `user_options`, `user_status`, `first_name`, `mid_name`, `last_name`, `language`, `timezone`, `birthday`, `flags`) VALUES (1, 'a', '03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4', '0000-00-00 00:00:00', 'd994baaacb1d7851b921bf9ef6ed44d49879f2c9189cfdd150012d47912f324d', 'user', 'a', '0', NULL, '', '0000-00-00 00:00:00', NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0), (2, 'b', '71739a9a7aa0958bf43eddb283565697c112e6b618affcbc23081e9e62592ba8', NULL, '', 'staff', 'a', '0', NULL, '', '0000-00-00 00:00:00', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0), (3, 'c', '03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4', NULL, '', 'member', 'c', '<EMAIL>', NULL, '', '0000-00-00 00:00:00', NULL, '0000-00-00 00:00:00', NULL, NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, 0); /*!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 */;
ALTER TABLE QueuedInternalCommands DROP COLUMN CorrelationId ALTER TABLE QueuedInternalCommands ADD Correlation [nvarchar](255) NOT NULL DEFAULT('None');
<gh_stars>0 CREATE DATABASE IF NOT EXISTS ControleVenda; USE ControleVenda; DROP TABLE IF EXISTS pedido; CREATE TABLE IF NOT EXISTS pedido ( id int AUTO_INCREMENT PRIMARY KEY, controle int default NULL, data datetime not null DEFAULT NOW(), produto varchar(50) DEFAULT NULL, valorunitario decimal(10,2) DEFAULT NULL, quantidade int DEFAULT NULL, codigocliente varchar(7) DEFAULT NULL, total decimal(15,2) DEFAULT NULL );
create table promise_day( id int auto_increment, note VARCHAR(1000) NOT NULL, create_time timestamp default CURRENT_TIMESTAMP , PRIMARY KEY ( id ) )ENGINE=InnoDB DEFAULT CHARSET=utf8; insert into promise_day (note) values ('创建mysql表'); select * from dream.promise_day; select * from dream.bug; mysql> desc project; +---------------+--------------+------+-----+-------------------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------------+--------------+------+-----+-------------------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | name | varchar(300) | YES | | NULL | | | step | varchar(300) | YES | | NULL | | | days | int(11) | YES | | NULL | | | result | int(11) | YES | | NULL | | | creation_time | datetime | YES | | CURRENT_TIMESTAMP | | +---------------+--------------+------+-----+-------------------+----------------+ 6 rows in set (0.00 sec) insert into dream.project(name,step,days,result) values('开启小盘茄,滴滴声音,除非你静音,他们永远都在','从耳朵拒绝听他们声音,吃饭看腾讯视频等声音就像希腊神话塞壬女妖迷惑船员的歌声 ,奥德修斯遵循女神喀耳刻的忠告。为了对付塞壬姐妹,他采取了谨慎的防备措施。船只还没驶到能听到歌声的地方,奥德修斯就令人把他拴在桅杆上,并吩咐手下用蜡把他们的耳朵塞住。他还告诫他们通过死亡岛时不要理会他的命令和手',30,0); select * from dream.project; explain select * from dream.project order by name;
<reponame>oolso/yobi<gh_stars>100-1000 # --- !Ups create table notification_event ( id bigint not null, title varchar(255), message clob, sender_id bigint, created timestamp, url_to_view varchar(255), resource_type varchar(16), resource_id bigint, type varchar(255), old_value clob, new_value clob, constraint ck_notification_event_resource_type check (resource_type in ('ISSUE_POST','ISSUE_ASSIGNEE','ISSUE_STATE','ISSUE_CATEGORY','ISSUE_MILESTONE','ISSUE_LABEL','BOARD_POST','BOARD_CATEGORY','BOARD_NOTICE','CODE','MILESTONE','WIKI_PAGE','PROJECT_SETTING','SITE_SETTING','USER','USER_AVATAR','PROJECT','ATTACHMENT','ISSUE_COMMENT','NONISSUE_COMMENT','LABEL','PROJECT_LABELS','FORK')), constraint pk_notification_event primary key (id)); create table notification_event_n4user ( notification_event_id bigint not null, n4user_id bigint not null, constraint pk_notification_event_n4user primary key (notification_event_id, n4user_id)); create table notification_mail ( id bigint not null, notification_event_id bigint, constraint pk_notification_mail primary key (id)) ; create sequence notification_event_seq; alter table notification_event_n4user add constraint fk_notification_event_n4user__01 foreign key (notification_event_id) references notification_event (id) on delete restrict on update restrict; alter table notification_event_n4user add constraint fk_notification_event_n4user__02 foreign key (n4user_id) references n4user (id) on delete restrict on update restrict; create sequence notification_mail_seq; alter table notification_mail add constraint fk_notification_mail_notificat_9 foreign key (notification_event_id) references notification_event (id) on delete restrict on update restrict; create index ix_notification_mail_notificat_9 on notification_mail (notification_event_id); # --- !Downs drop table if exists notification_event; drop table if exists notification_event_n4user; drop sequence if exists notification_event_seq; drop table if exists notification_mail; drop sequence if exists notification_mail_seq;
<reponame>zdenulo/bigquery-openstreetmap SELECT 7201 AS layer_code, 'land_use' AS layer_class, 'forest' AS layer_name, feature_type AS gdal_type, osm_id, osm_way_id, osm_timestamp, all_tags, geometry FROM `openstreetmap-public-data-prod.osm_planet.features` WHERE EXISTS(SELECT 1 FROM UNNEST(all_tags) as tags WHERE (tags.key = 'landuse' AND tags.value='forest') OR (tags.key = 'natural' AND tags.value='wood'))
--[er]test incr, decr using incr, decr in select-list together CREATE CLASS board ( id INT, title VARCHAR(100), content VARCHAR(4000), read_count INT ,edit_count INT); INSERT INTO board VALUES (1, 'aaa', 'text...', 0,10); INSERT INTO board VALUES (2, 'bbb', 'text...', 0,0); INSERT INTO board VALUES (3, 'ccc', 'text...', 0,0); select incr(read_count),incr(read_count),decr(read_count) from board where id=1; drop class board;
CREATE USER jamesFulford IDENTIFIED BY theFulfordDataman DEFAULT TABLESPACE radiosilence PASSWORD EXPIRE; GRANT tutor TO jamesFulford; ALTER USER jamesFulford DEFAULT ROLE tutor;
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 03, 2022 at 05:05 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.3.15 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: `preschooldb` -- -- -------------------------------------------------------- -- -- Table structure for table `roles` -- CREATE TABLE `roles` ( `role_id` int(11) NOT NULL, `role_name` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `roles` -- INSERT INTO `roles` (`role_id`, `role_name`) VALUES (1, 'admin'), (2, 'teacher'), (3, 'student'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `users_id` int(11) NOT NULL, `active` int(11) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `username` varchar(255) NOT NULL, `role_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `users` -- INSERT INTO `users` (`users_id`, `active`, `email`, `password`, `username`, `role_id`) VALUES (1, 1, '<EMAIL>', '<PASSWORD>', '<EMAIL>', 1), (2, 1, '<EMAIL>', '<PASSWORD>', '<EMAIL>', 2), (3, 1, '<EMAIL>', '<PASSWORD>', '<EMAIL>', 3); -- -- Indexes for dumped tables -- -- -- Indexes for table `roles` -- ALTER TABLE `roles` ADD PRIMARY KEY (`role_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`users_id`), ADD KEY `role_id` (`role_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `roles` -- ALTER TABLE `roles` MODIFY `role_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `users_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- Constraints for dumped tables -- -- -- Constraints for table `users` -- ALTER TABLE `users` ADD CONSTRAINT `users_ibfk_1` FOREIGN KEY (`role_id`) REFERENCES `roles` (`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 */;
<filename>banco-relacional/consultarComAgregacao.sql SELECT regiao AS 'Região', sum(populacao) as Total FROM estados GROUP BY regiao ORDER BY Total desc; SELECT SUM(populacao) as Total FROM estados SELECT AVG(populacao) as 'Media por Estado' FROM estados;
CREATE OR REPLACE VIEW public.vw_repacked_pallet_sequence_flat AS SELECT ps.id, ps.repacked_from_pallet_id, scrapped_ps.pallet_number AS repacked_from_pallet_number, ps.pallet_id, ps.pallet_number AS repacked_to_pallet_number, ifr.failure_reason AS inspection_failure_reason, p.repacked, p.repacked_at, ps.pallet_sequence_number, locations.location_long_code::text AS location, cultivars.cultivar_name AS cultivar, ps.carton_quantity, p.carton_quantity AS pallet_carton_quantity, ps.carton_quantity::numeric / p.carton_quantity::numeric AS pallet_size, floor(fn_calc_age_days(p.id, p.created_at, COALESCE(p.shipped_at, p.scrapped_at))) AS pallet_age, floor(fn_calc_age_days(p.id, p.stock_created_at, COALESCE(p.shipped_at, p.scrapped_at))) AS stock_age, floor(fn_calc_age_days(p.id, p.first_cold_storage_at, COALESCE(p.shipped_at, p.scrapped_at))) AS cold_age, floor(fn_calc_age_days(p.id, COALESCE(p.govt_reinspection_at, p.govt_first_inspection_at), COALESCE(p.shipped_at, p.scrapped_at))) - floor(fn_calc_age_days(p.id, p.first_cold_storage_at, COALESCE(p.shipped_at, p.scrapped_at))) AS ambient_age, ps.created_at, p.palletized_at, p.govt_first_inspection_at, p.govt_first_inspection_at::date AS govt_first_inspection_date, p.govt_reinspection_at::date AS govt_reinspection_date, p.govt_inspection_passed, inspected_dest_country.country_name AS inspected_dest_country, p.shipped_at, p.govt_reinspection_at, p.allocated_at, ps.verified_at, p.allocated, p.load_id, p.shipped, p.in_stock, p.inspected, p.palletized, ps.production_run_id, farms.farm_code AS farm, pucs.puc_code AS puc, orchards.orchard_code AS orchard, commodities.code AS commodity, marketing_varieties.marketing_variety_code AS marketing_variety, grades.grade_code AS grade, std_fruit_size_counts.size_count_value AS std_size, fruit_actual_counts_for_packs.actual_count_for_pack AS actual_count, fruit_size_references.size_reference AS size_ref, std_fruit_size_counts.size_count_interval_group AS count_group, standard_pack_codes.standard_pack_code AS std_pack, target_market_groups.target_market_group_name AS packed_tm_group, marks.mark_code AS mark, inventory_codes.inventory_code, pm_products.product_code AS fruit_sticker, pm_products_2.product_code AS fruit_sticker_2, fn_party_role_name(ps.marketing_org_party_role_id) AS marketing_org, pallet_bases.pallet_base_code AS pallet_base, pallet_stack_types.stack_type_code AS stack_type, p.gross_weight, p.nett_weight, ps.nett_weight AS sequence_nett_weight, basic_pack_codes.basic_pack_code AS basic_pack, packhouses.plant_resource_code AS packhouse, lines.plant_resource_code AS line, ps.pick_ref, p.phc, ps.verification_result, p.scrapped_at, p.scrapped, p.partially_palletized, p.reinspected, ps.verified, ps.verification_passed, fn_current_status('pallets'::text, p.id) AS status, p.build_status, p.active, COALESCE(p.load_id, 0) AS zero_load_id, p.temp_tail, p.depot_pallet, edi_in_transactions.file_name AS edi_in_file, p.edi_in_consignment_note_number, otmc.failed_otmc_results, otmc.failed_otmc, ps.created_by, ps.verified_by, fn_edi_size_count(standard_pack_codes.use_size_ref_for_edi, commodities.use_size_ref_for_edi, fruit_size_references.edi_out_code, fruit_size_references.size_reference, fruit_actual_counts_for_packs.actual_count_for_pack) AS edi_size_count, ps.target_customer_party_role_id, fn_party_role_name(ps.target_customer_party_role_id) AS target_customer, cvv.marketing_variety_code AS customer_variety, lpad(govt_inspection_pallets.govt_inspection_sheet_id::text, 10, '0'::text) AS consignment_note_number, 'DN'::text || loads.id::text AS dispatch_note, depots.depot_code AS depot, loads.edi_file_name AS po_file_name, palletizing_bays.plant_resource_code AS palletizing_bay, p.has_individual_cartons, CASE WHEN p.scrapped THEN 'warning'::text WHEN p.shipped THEN 'inactive'::text WHEN p.allocated THEN 'ready'::text WHEN p.in_stock THEN 'ok'::text WHEN p.palletized OR p.partially_palletized THEN 'inprogress'::text WHEN p.inspected AND NOT p.govt_inspection_passed THEN 'error'::text WHEN ps.verified AND NOT ps.verification_passed THEN 'error'::text ELSE NULL::text END AS colour_rule, ps.colour_percentage_id, colour_percentages.colour_percentage, ps.actual_cold_treatment_id, actual_cold_treatments.treatment_code AS actual_cold_treatment, ps.actual_ripeness_treatment_id, actual_ripeness_treatments.treatment_code AS actual_ripeness_treatment, ps.rmt_code_id, rmt_codes.rmt_code FROM pallets p JOIN pallet_sequences ps ON p.id = ps.pallet_id JOIN pallets scrapped_pallets ON scrapped_pallets.id = ps.repacked_from_pallet_id JOIN pallet_sequences scrapped_ps ON scrapped_pallets.id = scrapped_ps.scrapped_from_pallet_id LEFT JOIN govt_inspection_pallets gip ON gip.pallet_id = scrapped_pallets.id LEFT JOIN inspection_failure_reasons ifr ON ifr.id = gip.failure_reason_id LEFT JOIN plant_resources plt_packhouses ON plt_packhouses.id = p.plt_packhouse_resource_id LEFT JOIN plant_resources plt_lines ON plt_lines.id = p.plt_line_resource_id LEFT JOIN plant_resources packhouses ON packhouses.id = ps.packhouse_resource_id LEFT JOIN plant_resources lines ON lines.id = ps.production_line_id LEFT JOIN plant_resources palletizing_bays ON palletizing_bays.id = p.palletizing_bay_resource_id JOIN locations ON locations.id = p.location_id JOIN farms ON farms.id = ps.farm_id LEFT JOIN farm_groups ON farms.farm_group_id = farm_groups.id JOIN production_regions ON production_regions.id = farms.pdn_region_id JOIN pucs ON pucs.id = ps.puc_id JOIN orchards ON orchards.id = ps.orchard_id JOIN cultivar_groups ON cultivar_groups.id = ps.cultivar_group_id LEFT JOIN cultivars ON cultivars.id = ps.cultivar_id LEFT JOIN commodities ON commodities.id = cultivar_groups.commodity_id JOIN marketing_varieties ON marketing_varieties.id = ps.marketing_variety_id JOIN marks ON marks.id = ps.mark_id JOIN inventory_codes ON inventory_codes.id = ps.inventory_code_id JOIN target_market_groups ON target_market_groups.id = ps.packed_tm_group_id JOIN grades ON grades.id = ps.grade_id LEFT JOIN customer_varieties ON customer_varieties.id = ps.customer_variety_id LEFT JOIN marketing_varieties cvv ON cvv.id = customer_varieties.variety_as_customer_variety_id LEFT JOIN std_fruit_size_counts ON std_fruit_size_counts.id = ps.std_fruit_size_count_id LEFT JOIN fruit_size_references ON fruit_size_references.id = ps.fruit_size_reference_id LEFT JOIN fruit_actual_counts_for_packs ON fruit_actual_counts_for_packs.id = ps.fruit_actual_counts_for_pack_id JOIN basic_pack_codes ON basic_pack_codes.id = ps.basic_pack_code_id JOIN standard_pack_codes ON standard_pack_codes.id = ps.standard_pack_code_id LEFT JOIN pm_boms ON pm_boms.id = ps.pm_bom_id LEFT JOIN pm_subtypes ON pm_subtypes.id = ps.pm_subtype_id LEFT JOIN pm_types ON pm_types.id = ps.pm_type_id JOIN seasons ON seasons.id = ps.season_id JOIN cartons_per_pallet ON cartons_per_pallet.id = ps.cartons_per_pallet_id LEFT JOIN pm_products ON pm_products.id = p.fruit_sticker_pm_product_id LEFT JOIN pm_products pm_products_2 ON pm_products_2.id = p.fruit_sticker_pm_product_2_id LEFT JOIN pallet_formats ON pallet_formats.id = p.pallet_format_id LEFT JOIN pallet_bases ON pallet_bases.id = pallet_formats.pallet_base_id LEFT JOIN pallet_stack_types ON pallet_stack_types.id = pallet_formats.pallet_stack_type_id LEFT JOIN pallet_verification_failure_reasons ON pallet_verification_failure_reasons.id = ps.pallet_verification_failure_reason_id LEFT JOIN loads ON loads.id = p.load_id LEFT JOIN load_voyages ON loads.id = load_voyages.load_id LEFT JOIN voyage_ports pol_voyage_ports ON pol_voyage_ports.id = loads.pol_voyage_port_id LEFT JOIN voyage_ports pod_voyage_ports ON pod_voyage_ports.id = loads.pod_voyage_port_id LEFT JOIN voyages ON voyages.id = pol_voyage_ports.voyage_id LEFT JOIN vessels ON vessels.id = voyages.vessel_id LEFT JOIN load_containers ON load_containers.load_id = loads.id LEFT JOIN load_vehicles ON load_vehicles.load_id = loads.id LEFT JOIN ports pol_ports ON pol_ports.id = pol_voyage_ports.port_id LEFT JOIN ports pod_ports ON pod_ports.id = pod_voyage_ports.port_id LEFT JOIN destination_cities ON destination_cities.id = loads.final_destination_id LEFT JOIN destination_countries ON destination_countries.id = destination_cities.destination_country_id LEFT JOIN destination_regions ON destination_regions.id = destination_countries.destination_region_id LEFT JOIN cargo_temperatures ON cargo_temperatures.id = load_containers.cargo_temperature_id LEFT JOIN govt_inspection_pallets ON govt_inspection_pallets.id = p.last_govt_inspection_pallet_id LEFT JOIN govt_inspection_sheets ON govt_inspection_sheets.id = govt_inspection_pallets.govt_inspection_sheet_id LEFT JOIN destination_countries inspected_dest_country ON inspected_dest_country.id = govt_inspection_sheets.destination_country_id LEFT JOIN edi_in_transactions ON edi_in_transactions.id = p.edi_in_transaction_id LEFT JOIN depots ON depots.id = loads.depot_id LEFT JOIN ( SELECT sq.id, COALESCE(btrim(array_agg(orchard_test_types.test_type_code)::text), ''::text) <> ''::text AS failed_otmc, array_agg(orchard_test_types.test_type_code) AS failed_otmc_results FROM pallet_sequences sq JOIN orchard_test_types ON orchard_test_types.id = ANY (sq.failed_otmc_results) GROUP BY sq.id) otmc ON otmc.id = ps.id LEFT JOIN colour_percentages ON colour_percentages.id = ps.colour_percentage_id LEFT JOIN treatments actual_cold_treatments ON actual_cold_treatments.id = ps.actual_cold_treatment_id LEFT JOIN treatments actual_ripeness_treatments ON actual_ripeness_treatments.id = ps.actual_ripeness_treatment_id LEFT JOIN rmt_codes ON rmt_codes.id = ps.rmt_code_id WHERE p.repacked AND p.in_stock = false ORDER BY p.repacked_at DESC, p.pallet_number DESC;
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 27, 2019 at 01:29 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 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: `skripsi2` -- -- -------------------------------------------------------- -- -- Table structure for table `tabel_kelahiran` -- CREATE TABLE `tabel_kelahiran` ( `no_kelahiran` varchar(30) NOT NULL, `no_kk` varchar(30) NOT NULL, `nama_anak` varchar(50) NOT NULL, `tempat_lahir1` varchar(20) NOT NULL, `tgl_lahir1` varchar(30) NOT NULL, `jk` varchar(10) NOT NULL, `status` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tabel_kelahiran` -- INSERT INTO `tabel_kelahiran` (`no_kelahiran`, `no_kk`, `nama_anak`, `tempat_lahir1`, `tgl_lahir1`, `jk`, `status`) VALUES ('4567', '89034567', 'Amir', 'Depok', '2019-06-09', 'L', 'Akte Sedang Diproses'), ('56718920', '3271234567890977', 'Rayhan', 'Depok', '2019-06-27', 'L', 'Akte Sudah Jadi'), ('671280310', '123567234', 'Robi', 'Depok', '2018-05-09', 'L', 'Akte Sudah Jadi'), ('77777', '1234577', 'Reja', 'Depok', '2019-08-09', 'L', 'Akte Belum Diurus'); -- -------------------------------------------------------- -- -- Table structure for table `tabel_kematian` -- CREATE TABLE `tabel_kematian` ( `no_kematian` varchar(30) NOT NULL, `nik` varchar(30) NOT NULL, `tempat_mati` varchar(30) NOT NULL, `tgl_mati` varchar(30) NOT NULL, `sebab_mati` varchar(30) NOT NULL, `status` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tabel_kematian` -- INSERT INTO `tabel_kematian` (`no_kematian`, `nik`, `tempat_mati`, `tgl_mati`, `sebab_mati`, `status`) VALUES ('234567', '23456789', 'Jakarta', '2019-09-08', 'Sakit', 'Akte Belum Diurus'), ('678964', '123457', 'Tangerang', '2019-12-01', 'Kecelakaan', 'Akte Sudah Jadi'); -- -------------------------------------------------------- -- -- Table structure for table `tabel_kk` -- CREATE TABLE `tabel_kk` ( `no_kk` varchar(30) NOT NULL, `penghuni` varchar(10) NOT NULL, `jamsos` varchar(5) NOT NULL, `username` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tabel_kk` -- INSERT INTO `tabel_kk` (`no_kk`, `penghuni`, `jamsos`, `username`) VALUES ('12345678', 'Tetap', 'Tidak', 'amin678'), ('1234577', 'Tetap', 'Tidak', 'lukmanhakim'), ('123567234', 'Kontrak', 'Ya', 'ahmad12'), ('3271234567890977', 'Tetap', 'Tidak', 'warsito77'), ('3271234567890987', 'Tetap', 'Tidak', 'budi90987'), ('89034567', 'Tetap', 'Tidak', 'raffi123'); -- -------------------------------------------------------- -- -- Table structure for table `tabel_pemasukan` -- CREATE TABLE `tabel_pemasukan` ( `invoice_iuran` varchar(10) NOT NULL, `no_kk` varchar(30) NOT NULL, `nominal` int(50) NOT NULL, `bulan` varchar(20) NOT NULL, `tgl_bayar` varchar(30) NOT NULL, `jenis` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tabel_pemasukan` -- INSERT INTO `tabel_pemasukan` (`invoice_iuran`, `no_kk`, `nominal`, `bulan`, `tgl_bayar`, `jenis`) VALUES ('LPBAS4', '1234577', 200000, 'Juli', '2019-07-09', 'Sumbangan'), ('NQP7H8', '3271234567890977', 25000, 'Juli', '2019-07-09', 'Iuran Kas Bulanan'), ('T1NS25', '123567234', 20000, 'Juni', '2019-06-27', 'Iuran Kas Bulanan'), ('VJXAC8', '12345678', 20000, 'Juni', '2019-06-27', 'Iuran Kas Bulanan'), ('VRE375', '1234577', 25000, 'Juli', '2019-07-09', 'Iuran Kas Bulanan'); -- -------------------------------------------------------- -- -- Table structure for table `tabel_pengeluaran` -- CREATE TABLE `tabel_pengeluaran` ( `id_pengeluaran` int(10) NOT NULL, `nama_pengeluaran` varchar(50) NOT NULL, `nominal` int(30) NOT NULL, `nik` varchar(30) NOT NULL, `keterangan` text NOT NULL, `tgl_input` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tabel_pengeluaran` -- INSERT INTO `tabel_pengeluaran` (`id_pengeluaran`, `nama_pengeluaran`, `nominal`, `nik`, `keterangan`, `tgl_input`) VALUES (7, 'Iuran Sampah', 100000, '12345', 'Iuran pengangkutan sampah rutin', '2019-07-09'); -- -------------------------------------------------------- -- -- Table structure for table `tabel_surat` -- CREATE TABLE `tabel_surat` ( `invoice` varchar(10) NOT NULL, `username` varchar(20) NOT NULL, `jenis_surat` varchar(50) NOT NULL, `keterangan` text NOT NULL, `status` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tabel_surat` -- INSERT INTO `tabel_surat` (`invoice`, `username`, `jenis_surat`, `keterangan`, `status`) VALUES ('-', 'ahmad12', 'Permohonan Surat Pengantar KTP', '-', 'Belum Diproses'), ('0A4VBGQ8', 'lukmanhakim', 'KTP', 'fffgg', 'Belum Diproses'), ('3V9D2Q7F', 'warsito77', 'Lain-Lain', 'Permohonan Surat Pengantar SIUP', 'Sudah Dapat Diambil'), ('ADF78BH1', 'ahmad12', 'Permohonan Surat Pengantar SKCK', '-', 'Sudah Dapat Diambil'); -- -------------------------------------------------------- -- -- Table structure for table `tabel_user` -- CREATE TABLE `tabel_user` ( `username` varchar(20) NOT NULL, `password` varchar(20) NOT NULL, `level` varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tabel_user` -- INSERT INTO `tabel_user` (`username`, `password`, `level`) VALUES ('admin', 'admin123', 'admin'), ('ahmad12', '<PASSWORD>', 'warga'), ('amin678', 'amin890', 'warga'), ('budi90987', '12345678', 'warga'), ('lukmanhakim', '<PASSWORD>', 'warga'), ('raffi123', 'raffi123', 'warga'), ('raffi23', 'raffi23', 'warga'), ('warsito77', 'warsito77', 'warga'); -- -------------------------------------------------------- -- -- Table structure for table `tabel_warga` -- CREATE TABLE `tabel_warga` ( `no_kk` varchar(30) NOT NULL, `nik` varchar(30) NOT NULL, `nama` varchar(50) NOT NULL, `jk` varchar(10) NOT NULL, `tempat_lahir` varchar(20) NOT NULL, `tgl_lahir` varchar(30) NOT NULL, `agama` varchar(20) NOT NULL, `pekerjaan` varchar(20) NOT NULL, `pendidikan` varchar(20) NOT NULL, `status_kawin` varchar(12) NOT NULL, `status_keluarga` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tabel_warga` -- INSERT INTO `tabel_warga` (`no_kk`, `nik`, `nama`, `jk`, `tempat_lahir`, `tgl_lahir`, `agama`, `pekerjaan`, `pendidikan`, `status_kawin`, `status_keluarga`) VALUES ('1234577', '122222', '<NAME>.', 'Wanita', 'Depok', '1982-09-08', 'Islam', 'PNS', 'S1', 'Kawin', 'Istri'), ('1234577', '12345', '<NAME>.', 'Pria', 'Sidoarjo', '1980-06-07', 'Islam', 'Karyawan Swasta', 'S1', 'Kawin', 'Kepala Keluarga'), ('3271234567890977', '123457', '<NAME>', 'Wanita', 'Surabaya', '1978-08-08', 'Islam', 'IRT', 'SMK', 'Kawin', 'Istri'), ('3271234567890977', '3271234567890975', 'Warsito', 'Pria', 'Semarang', '1957-12-01', 'Islam', 'PNS', 'SMA', 'Kawin', 'Kepala Keluarga'), ('3271234567890987', '3271234567890986', 'Budi', 'Pria', 'Jakarta', '1972-04-10', 'Islam', 'PNS', 'S1', 'Kawin', 'Kepala Keluarga'), ('3271234567890987', '3271234567890988', 'Wati', 'Wanita', 'Purwekerto', '1976-05-12', 'Islam', 'PNS', 'S1', 'Kawin', 'Istri'), ('3271234567890987', '9810737193', 'Lastri', 'Wanita', 'Depok', '1999-02-09', 'Islam', 'Karyawan Swasta', 'SMK', 'Belum Kawi', 'Anak'), ('89034567', '9870564', 'Raffi', 'Pria', 'Jakarta', '1980-09-08', 'Islam', 'PNS', 'S1', 'Kawin', 'Kepala Keluarga'), ('89034567', '9870565', 'Siska', 'P', 'Depok', '1983-09-05', 'Islam', 'PNS', 'S1', 'Kawin', 'Istri'); -- -- Indexes for dumped tables -- -- -- Indexes for table `tabel_kelahiran` -- ALTER TABLE `tabel_kelahiran` ADD PRIMARY KEY (`no_kelahiran`); -- -- Indexes for table `tabel_kematian` -- ALTER TABLE `tabel_kematian` ADD PRIMARY KEY (`no_kematian`); -- -- Indexes for table `tabel_kk` -- ALTER TABLE `tabel_kk` ADD PRIMARY KEY (`no_kk`); -- -- Indexes for table `tabel_pemasukan` -- ALTER TABLE `tabel_pemasukan` ADD PRIMARY KEY (`invoice_iuran`); -- -- Indexes for table `tabel_pengeluaran` -- ALTER TABLE `tabel_pengeluaran` ADD PRIMARY KEY (`id_pengeluaran`); -- -- Indexes for table `tabel_surat` -- ALTER TABLE `tabel_surat` ADD PRIMARY KEY (`invoice`); -- -- Indexes for table `tabel_user` -- ALTER TABLE `tabel_user` ADD PRIMARY KEY (`username`); -- -- Indexes for table `tabel_warga` -- ALTER TABLE `tabel_warga` ADD PRIMARY KEY (`nik`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `tabel_pengeluaran` -- ALTER TABLE `tabel_pengeluaran` MODIFY `id_pengeluaran` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; 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 */;
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 12 Jan 2017 pada 06.09 -- Versi Server: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `dbatlet` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `admin` -- CREATE TABLE `admin` ( `id` int(12) NOT NULL, `username` varchar(30) NOT NULL, `usermail` varchar(60) NOT NULL, `userpass` varchar(60) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `admin` -- INSERT INTO `admin` (`id`, `username`, `usermail`, `userpass`) VALUES (1, 'kop13x', '<EMAIL>', '<PASSWORD>'), (2, 'kopix', '<EMAIL>', '<PASSWORD>'); -- -------------------------------------------------------- -- -- Struktur dari tabel `atlet` -- CREATE TABLE `atlet` ( `id_atlet` int(11) NOT NULL, `nama` varchar(45) DEFAULT NULL, `tgl_lahir` date DEFAULT NULL, `tempat_lahir` varchar(45) DEFAULT NULL, `kontingen` varchar(45) DEFAULT NULL, `alamat` varchar(45) DEFAULT NULL, `email` varchar(45) DEFAULT NULL, `jenis_kelamin` varchar(15) DEFAULT NULL, `tinggi` varchar(45) DEFAULT NULL, `berat` varchar(45) DEFAULT NULL, `foto` varchar(250) NOT NULL, `biodata` text, `id_cabor` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `atlet` -- INSERT INTO `atlet` (`id_atlet`, `nama`, `tgl_lahir`, `tempat_lahir`, `kontingen`, `alamat`, `email`, `jenis_kelamin`, `tinggi`, `berat`, `foto`, `biodata`, `id_cabor`) VALUES (1, '<NAME>', '1981-08-10', 'Bandung', 'Jawa Barat', 'Bandung', '<EMAIL>', 'Laki-laki', '176', '64', '30ac4-220px-taufik_hidayat_2.jpg', '<p>\r\n T<NAME> (lahir di Bandung, Jawa Barat, 10 Agustus 1981; umur 35 tahun) adalah mantan pemain bulu tangkis tunggal putra untuk Indonesia. Awalnya ia bermain di klub SGS Elektrik Bandung.</p>\r\n', 17), (2, '<NAME>', '1985-09-09', 'Manado, Sulawesi Utara', 'Indonesia', 'Manado', '<EMAIL>', 'Perempuan', '165', NULL, '90635-liliyananatsir.jpg', 'Liliyana Natsir (lahir di Manado, Sulawesi Utara, 9 September 1985; umur 31 tahun) adalah pemain bulu tangkis ganda Indonesia yang berpasangan dengan Tantowi Ahmad dalam nomor ganda campuran.', 17), (7, '<NAME>', '1994-08-13', 'Bandung, Jawa Barat Indonesia', 'Jawa Barat', 'Bandung , Jawa Barat', '<EMAIL>', 'Perempuan', NULL, NULL, '5ec1d-sri_wahyuni_agustiani_-2016-.jpg', 'Pada Asian Games 2014, Ia memenagkan medlai perak di kategori 48 kg, mengangkat total beban 187 kg. Dalam Olimpiade RIO 2016, ia menyumbangkan medali pertama untuk kontingen Indonesia, dengan meraih medali perak di kategori 48 kg, mengangkat total 192 kg.\r\n', 4), (8, '<NAME>', '1987-07-18', 'Banyumas', 'PB Djarum', 'Selandaka, Sumpiuh, Banyumas', '<EMAIL>', 'Laki-laki', '178', '87', '5ec1d-tontowi_ahmad.jpg', '<p>\r\n <strong><NAME>&nbsp;</strong>(lahir di Selandaka, Sumpiuh Banyumas, 18 Jli 1987; umur 29 tahun) adalah pemain bulu tangkis ganda indonesia. Dia dari PB Djarum, sebuah klub bulu tangkis di kudus, dan bergabung ke klub pada tahun 2005.</p>\r\n', 17), (9, '<NAME>', '1970-01-01', 'Sorong, Papua Barat, Indonesia', 'Persipura Jayapura', 'Sorong, Papua Barat, Indonesia', '<EMAIL>', 'Laki-Laki', '171 cm', '67 kg', 'ca0be-boazsolossa.jpg', '<p>\r\n <strong><NAME>&nbsp;</strong>atau lebih dikenal&nbsp;<strong>Boaz salossa&nbsp;</strong>adalah pemain sepak bola Indonsia. Boaz saat ini bermain di Persipura Jayapura. Boaz merupakan striker terbaik yang dimiliki Indonesia. Dia dikinal memiliki Naluri Mmencetak gol yang tinggi, akurasi umpan yang baik, tendangan kaki kiri, serta teknik dribbling diatas rata-rata.</p>\r\n', 45), (10, '<NAME>', '1994-08-27', 'Bandung', 'Indonesia', 'Bandung', '<EMAIL>', 'Perempuan', '165 cm', '59 kg', '4e03d-yessy-yosaputra.jpg', '<p>\r\n <b>Y<NAME>&nbsp;</b>adalah atlet Renang asal Indonesia. Nomor spesialisnya adalah Gaya Punggung. Dalam SEA Games 2011 di Plembang, ia mampu merebut medali emas dan memecahkan 1 rekor SEA Games di nomor 200 meter gaya punggung putri dengan waktu 2 menit 15, 73 detik yang sebelunya dipegang perenang Akiko Thomson.</p>\r\n', 42), (11, '<NAME>', '1990-05-07', 'Jakarta, Indonesia', '<NAME>', 'Jakarta', '<EMAIL>', 'Laki-Laki', '187 cm', '65 kg', '42ac0-kurnia-mega.jpg', '<p>\r\n <strong>Kurnia Mega hermansyah&nbsp;</strong>adalah seorang pemain sepak bola indonesia yang memiliki postur tubuh 187 cm. Saat ini ia bermain untuk Arema Cronus di Liga Super Indonesia, Arema adalah klub profesional pertama yang ia perkuat setelah lulu dari SLTA. Arema tertarik mengkontraknya karena kurnia adalah penggawa timnas u-19.</p>\r\n', 45), (12, '<NAME>', '1989-12-02', 'Balangan, Kalimantan Selatan', 'Indonesia', 'Balangan', '<EMAIL>', 'Laki-Laki', '180 cm', '70 kg', '07a1d-ahmad-rijali.jpg', '<p>\r\n <strong><NAME>&nbsp;</strong>adalah atlet renang Paralimpiade Indonesia asal Kalimantan Selatan. A<NAME>ali seorang pemuda cacat dengan kaki buntung sejak lahir tersebut hingga membuat hidupnya serba kekurangan, namun dalam benaknya tersimpan tekad bahwa cacat bukanlh awal &quot;kiamat&quot;bagi masa depanya.</p>\r\n', 42), (13, 'I <NAME>', '1970-05-06', 'Jakata, Indonesia', 'Indonesia', 'Jakarta', '<EMAIL>', 'Laki-Laki', '183 cm', '90 kg', 'e0e65-ade-rai.jpg', '<p>\r\n Terlahir dengan nama&nbsp;<strong>I Gusti Agung K<NAME> Rai</strong> , Ade Rai tumbuh sebagai seorang anak yang kurus dengan minat yang besar pada berbagai aktifitas olaraga. Pada usia 10 tahun, Ade kecil hanya memiliki berat badan 25 kg. Bahkan hingga mencapai tinggi badanya seperti hari ini 183 cm di usia remaja, Ade Rai memiliki sosok yang kurus dengan badan hanya 55 kg. Pada awalnya Ade Rai sempat menggeluti cabang olahraga bulutangkis tetapi ternyat takdir membawanya ke dunia binaraga.</p>\r\n', 10), (14, 'B<NAME>', '2017-01-01', 'Kediri', 'Kediri', 'kediri jawa timur', '<EMAIL>', 'Laki-laki', '187', '85 Kg', '3c029-boazsolossa.jpg', '<p>\r\n Bla bla bla</p>\r\n', 45); -- -------------------------------------------------------- -- -- Struktur dari tabel `cabor` -- CREATE TABLE `cabor` ( `id_cabor` int(11) NOT NULL, `nama_cabor` varchar(45) DEFAULT NULL, `keterangan` text, `image` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `cabor` -- INSERT INTO `cabor` (`id_cabor`, `nama_cabor`, `keterangan`, `image`) VALUES (1, 'Airsoftgun', 'Airsoft gun adalah mainan replika senjata yang berukuran hampir sama dengan jenis senjata aslinya.', '023b5-airsoftgun.jpg'), (2, 'Aeromodeling', 'Aeromodelling adalah suatu kegiatan yang mempergunakan sarana miniatur (model) pesawat terbang untuk tujuan rekreasi, edukasi dan olahraga.', '43de8-aeromodeling.jpg'), (3, 'Anggar', 'Anggar adalah ilmu beladiri menggunakan senjata yang berkembang menjadi seni budaya olahraga ketangkasan dengan senjata.', '6f417-anggar.jpg'), (4, 'Angkat besi', 'Angkat besi atau angkat berat adalah cabang olahraga yang bersaing untuk mengangkat beban berat yang disebut dengan barbel, yang dilakukan dengan kombinasi dari kekuata.', 'ead35-angkatbesi.jpg'), (5, 'Atletik', 'Atletik adalah gabungan dari beberapa jenis olahraga yang secara garis besar dapat dikelompokkan menjadi lari, lempar, dan lompat.', '5bd8c-atletik.jpg'), (6, 'Balap motor', 'Balap motor adalah olahraga otomotif yang menggunakan sepeda motor. Balap motor, khususnya road race, cukup populer di Indonesia.', '9824f-balapmotorjpg.jpg'), (7, 'Balap mobil', 'Balap mobil merupakan salah satu cabang olahraga tontonan yang paling diminati dan juga yang paling dikomersialisasi.', '491f6-balapmobil.jpg'), (8, 'Balap sepeda', 'Balap Sepeda Jalan Raya adalah sebuah olahraga balap sepeda yang dilakukan di jalan umum dengan perkerasan.', '14f10-balap-speda.jpg'), (9, 'Berkuda', 'Berkuda merupakan salah satu olahraga yang dapat yang dapat dinikmati dan dilakukan siapa saja.', '86a6a-berkuda.jpg'), (10, 'Binaraga', 'Binaraga adalah kegiatan pembentukan tubuh yang melibatkan hipertropi otot intensif. Dengan melakukan latihan beban dan diet protein tinggi secara rutin dan intensif.', '1189f-binaraga.jpg'), (11, 'Biliard', 'Biiliard sangat dibutuhkan ketahanan dan pemahaman mental yang benar serta harus ditunjang oleh kemampuan fisik yang prima agar mampu berprestasi.', '9c38a-biliard.jpg'), (12, 'Bisbol', 'Bisbol atau dikenal dengan baseball adalah olahraga yang dimainkan dua tim.', 'b6db1-bisbol.jpg'), (13, 'Bola basket', 'Bola basket adalah terdiri atas dua tim beranggotakan masing-masing lima orang yang saling bertanding mencetak poin dengan memasukkan bola ke dalam keranjang lawan.', '15a5f-basket.jpg'), (14, 'Bola voli', 'Bola voli adalah olahraga permainan yang dimainkan oleh dua grup berlawanan. Masing-masing grup memiliki enam orang pemain', 'bf40c-bolavoli.png'), (15, 'Boling', 'Bowling adalah jenis olahraga atau permainan yang dimainkan dengan menggelindingkan bola khusus menggunakan satu tangan. Bola boling akan digelindingkan ke pin yang berjumlah sepuluh buah yang telah disusun menjadi bentuk segitiga jika dilihat dari atas.', 'f2e1c-bowling.jpg'), (16, 'Bridge', 'Bridge atau contract bridge adalah permainan kartu yang mengandalkan baik kemampuan bermain maupun keuntungan. Empat pemain berpasangan dan duduk berhadap-hadapan. Permainan ini terdiri dari lelang diikuti oleh permainan kartu. Peraturan-peraturannya cuk', '91537-bridge.jpg'), (17, 'Bulu tangkis', 'Bulu tangkis atau badminton adalah suatu olahraga raket yang dimainkan oleh dua orang (untuk tunggal) atau dua pasangan (untuk ganda) yang saling berlawanan.', '308c7-bulutangkis.jpg'), (18, 'Catur', 'Catur adalah permainan pikiran yang dimainkan oleh dua orang. Pecatur adalah orang yang memainkan catur, baik dalam pertandingan satu lawan satu maupun satu melawan banyak orang (dalam keadaan informal). Sebelum bertanding, pecatur memilih biji catur yang', '15df1-catur.jpg'), (19, 'Dayung', 'Mendayung merupakan sebuah olahraga yang menggunakan dayung dan berlangsung di atas sungai, danau, dan laut. Dalam teknik mendayung dengan oar hanya dikenal dua macam kayuhan yaitu dayung maju dan dayung mundur. Jika menginginkan perahu bergerak kedepan m', '163ed-dayungkayak.jpg'), (20, 'Futsal', 'Futsal adalah permainan bola yang dimainkan oleh dua tim, yang masing-masing beranggotakan lima orang. Tujuannya adalah memasukkan bola ke gawang lawan, dengan memanipulasi bola dengan kaki. Selain lima pemain utama, setiap regu juga diizinkan memiliki pe', '684cc-futsal.jpg'), (21, 'Golf', 'Golf adalah permainan luar ruang yang dimainkan secara perorangan atau tim yang berlomba memasukkan bola ke dalam lubang-lubang yang ada di lapangan dengan jumlah pukulan tersedikit mungkin. Bola golf dipukul dengan menggunakan satu set tongkat pemukul ya', '4db42-golf.jpg'), (22, 'Gulat', 'Gulat adalah kontak fisik antara dua orang, di mana salah seorang pegulat harus menjatuhkan atau dapat mengontrol musuh mereka. Teknik fisik yang ditunjukkan dalam gulat adalah joint lock, Clinch fighting, Grappling hold, dan Leverage. Teknik ini dapat me', '7e345-gulat.jpg'), (23, 'Hoki', 'Hoki adalah olahraga permainan yang dilakukan oleh pria dan wanita dengan menggunakan alat pemukul (stick) dan bola. Bentuk permainannya hampir sama dengan sepak bola.', 'dbc7b-hoki.jpg'), (25, 'Judo', 'Judo (bahasa Jepang: 柔道 ) adalah seni bela diri, olahraga, dan filosofi yang berakar dari Jepang. Judo dikembangkan dari seni bela diri kuno Jepang yang disebut Jujutsu. Jujutsu yang merupakan seni bertahan dan menyerang menggunakan tangan kosong maupun s', '14df0-judo.jpg'), (26, 'Karate', 'Karate (空 手 道) adalah seni bela diri yang berasal dari Jepang. Seni bela diri ini sedikit dipengaruhi oleh Seni bela diri Cina kenpō. Karate dibawa masuk ke Jepang lewat Okinawa dan mulai berkembang di Ryukyu Islands. Seni bela diri ini pertama kali diseb', 'e1449-karate.jpg'), (27, 'Kayak/Kano', 'Kayak adalah sebuah perahu kecil bertenaga manusia, biasanya dengan bagian depan dan belakang tertutup, sehingga hanya menyisakan lubang seukuran awak. Kayak dilengkapi dengan dayung berkepala tunggal atau ganda.', '85cd1-kayak.jpg'), (28, 'Kempo', 'Kempo adalah nama generik untuk beberapa aliran seni bela diri yang berasal dari Jepang dan banyak menggunakan permainan tangan. Jadi bukan nama satu aliran saja melainkan nama dari banyak aliran dan metode. Arti dari Kempo sendiri adalah beladiri dengan ', 'df28c-kempo.jpg'), (29, 'Kriket', 'Kriket adalah sebuah olahraga tim yang dimainkan antara dua kelompok yang masing-masing terdiri dari sebelas orang. Bentuk modern kriket berawal dari Inggris, dan olahraga ini populer di negara-negara Persemakmuran. Di beberapa negara di Asia Selatan, mis', 'de4a0-kriket.jpg'), (31, 'Loncat indah', 'Loncat indah adalah olahraga yang pertama kali ditemukan di Eropa dan mulai menjadi olahraga kompetisi di Inggris pada tahun 1905. Loncat indah merupakan perpaduan gerakan akrobatik di udara dan loncatan. Pada dasarnya loncat indah terdiri dari loncatan y', 'ce46d-loncat-indah.jpg'), (32, 'Menembak', 'Olahraga menembak adalah olahraga kompetitif yang melibatkan tes kemahiran (akurasi dan kecepatan) dengan menggunakan berbagai jenis senjata seperti senjata api dan senapan angin.', '2cdc7-menembak.jpg'), (33, 'Menyelam', 'Olahraga menembak adalah olahraga kompetitif yang melibatkan tes kemahiran (akurasi dan kecepatan) dengan menggunakan berbagai jenis senjata seperti senjata api dan senapan angin.', 'd30ec-menyelam.jpg'), (34, 'Parkour', 'Parkour (baca : Paar-kuur , kadang-kadang disingkat PK) atau l''art du déplacement (Seni gerak) adalah aktivitas yang bertujuan untuk berpindah dari satu tempat ke tempat lainnya, dengan efisien dan secepat-cepatnya, menggunakan prinsip kemampuan badan man', 'bf1fc-parkour.jpg'), (35, 'Panjat Tebing', 'Panjat Tebing atau istilah asingnya dikenal dengan Rock Climbing merupakan salah satu dari sekian banyak olahraga alam bebas dan merupakan salah satu bagian dari mendaki gunung yang tidak bisa dilakukan dengan cara berjalan kaki melainkan harus menggunaka', 'd94b6-panjat-tebing.jpg'), (36, 'Polo Air', 'Polo adalah olahraga beregu yang dimainkan di atas kuda dengan tujuan untuk mencetak gol ke gawang lawan. Pemain mengendalikan bola kayu atau plastik (ukuran 3 - 3,5 inci) menggunakan pemukul panjang yang disebut mallet. Gol dianggap sah apabila bola lewa', '86703-polo-air.jpg'), (38, 'Panahan', 'Panahan (Inggris:Archery) adalah suatu kegiatan menggunakan busur panah untuk menembakkan anak panah. Bukti-bukti menunjukkan bahwa sejarah panahan telah dimulai sejak 5.000 tahun yang lalu yang awalnya digunakan untuk berburu dan kemudian berkembang seba', 'f1462-panahan.jpg'), (39, 'Paralayang', 'Paralayang (bahasa Inggris: paragliding) adalah olahraga terbang bebas dengan menggunakan sayap kain (parasut) yang lepas landas dengan kaki untuk tujuan rekreasi atau kompetisi. Induk organisasinya adalah PLGI (Persatuan Layang Gantung Indonsia), sedangk', 'b573c-paralayang.jpg'), (40, 'Petanque', 'Pétanque (diucapkan [pe.tɑ̃ːk] dalam bahasa Perancis) adalah suatu bentuk permainan boules yang tujuannya melempar bola besi sedekat mungkin dengan bola kayu yang disebut cochonnet dan kaki harus berada di lingkaran kecil. Permainan ini biasa dimainkan di', '5a0e3-pentaque.jpg'), (41, 'Pilates', 'Pilates adalah suatu metode olahraga yang dikembangkan oleh <NAME> Pilates yang berasal dari Jerman pada awal abad ke-20. Metode ini difokuskan untuk kelenturan serta fleksibilitas seluruh bagian tubuh. Olahraga ini dapat memperbaiki postur tubuh .', '5e432-pilates-bolasenam-.jpg'), (42, 'Renang', 'Renang adalah olahraga yang melombakan kecepatan atlet renang dalam berenang. Gaya renang yang diperlombakan adalah gaya bebas, gaya kupu-kupu, gaya punggung, dan gaya dada. Perenang yang memenangkan lomba renang adalah perenang yang menyelesaikan jarak l', 'cf7ef-renang.jpg'), (43, 'Rugby', 'Sepak bola rugbi (bahasa Inggris: Rugby) merupakan sejenis permainan sepak bola tim yang dimainkan oleh dua tim. Setiap tim mencoba mencetak skor dengan cara menyepak, melontar, atau membawa bola sehingga mereka dapat menyepak untuk melepaskan gol lawan a', '3bf3b-rugby.jpg'), (44, 'Seni bela diri', 'Seni bela diri merupakan satu kesenian yang timbul sebagai satu cara seseorang mempertahankan / membela diri. Seni bela diri telah lama ada dan berkembang dari masa ke masa. Pada dasarnya, manusia mempunyai insting untuk selalu melindungi diri dan hidupny', '09757-seni-bela-diri.jpg'), (45, 'Sepak bola', 'Sepak bola adalah cabang olahraga yang menggunakan bola yang umumnya terbuat dari bahan kulit dan dimainkan oleh dua tim yang masing-masing beranggotakan 11 (sebelas) orang pemain inti dan beberapa pemain cadangan. Memasuki abad ke-21, olahraga ini telah ', '39efa-sepakbola.jpg'), (46, 'Sepak takraw', 'Sepak takraw adalah jenis olahraga campuran dari sepak bola dan bola voli, dimainkan di lapangan ganda bulu tangkis, dan pemain tidak boleh menyentuh bola dengan tangan. Kejuaraan paling bergengsi dalam cabang ini adalah King''s Cup World Championships, ya', 'c5864-sepaktakraw.jpg'), (47, 'Sepatu roda', 'Sepatu roda adalah sebuah alat yang dipasang di kaki yang memiliki dua hingga empat roda sebagai alas. Pemain sepatu roda biasanya mengayunkan kaki seperti layaknya berjalan untuk menambah kecepatan ketika bergerak. Pemain biasanya berhenti bergerak denga', '0bc0a-sepatu-roda.jpg'), (48, 'Senam', 'Senam merupakan suatu cabang olahraga yang melibatkan performa gerakan yang membutuhkan kekuatan, kecepatan dan keserasian gerakan fisik yang teratur. Bentuk modern dari senam ialah : Palang tak seimbang, balok keseimbangan, senam lantai. Bentuk-bentuk te', '47cfb-senam.jpg'), (49, 'Ski air', 'Ski air adalah olahraga air yang pemainnya meluncur di atas air menggunakan papan yang ditarik dengan perahu.[1] Ski air menjadi salah satu cabang olimpiade pada tahun 1972.[2] Ski air membutuhkan peralatan antara lain papan ski, tali penarik beserta pega', '92781-skyair.jpg'), (50, 'Sofbol', 'Sofbol atau dikenal dengan softball adalah olahraga bola beregu yang terdiri dari dua tim. Permainan sofbol lahir di Amerika Serikat, diciptakan oleh Ge<NAME> di kota Chicago pada tahun 1887. Sofbol merupakan perkembangan dari olahraga sejenis yaitu', '3c392-softball.jpg'), (52, 'Squash', 'Skuas (bahasa Inggris: squash) adalah sejenis olahraga raket yang berasal dari Inggris. Dua orang bermain dalam sebuah ruangan tertutup dengan saling berbalas memukulkan bola skuas ke sebuah sisi ruangan yang menghadap kedua pemain (kegiatan ini disebut r', 'c37a7-squash.jpg'), (54, 'Taekwondo', 'Taekwondo (juga dieja Tae Kwon Do atau Taekwon-Do) adalah seni bela diri asal Korea yang juga sebagai olahraga nasional Korea. Ini adalah salah satu seni bela diri populer di dunia yang dipertandingkan di Olimpiade.', 'e37ef-taekwondo.jpg'), (55, 'Tenis', 'Tenis adalah olahraga yang biasanya dimainkan antara dua pemain atau antara dua pasangan masing-masing dua pemain. Setiap pemain menggunakan raket untuk memukul bola karet. Tujuan permainan adalah memainkan bola dengan cara tertentu sehingga pemain lawan ', 'e390e-tenis.jpg'), (56, '<NAME>', 'enis meja, atau ping pong (sebuah merek dagang), adalah suatu olahraga raket yang dimainkan oleh dua orang (untuk tunggal) atau dua pasangan (untuk ganda) yang berlawanan. Di Republik Rakyat Tiongkok, nama resmi olahraga ini ialah "bola ping pong" (Tiongh', '46783-tenismeja.jpg'), (58, 'Wushu', 'Wushu (武術 atau 武术; bahasa Tionghoa: wǔshù) secara harafiah berarti "seni bertempur/bela diri". Ini merupakan istilah yang lebih benar dibanding dengan istilah yang lebih terkenal tetapi salah penggunaannya kung fu, yang berarti "ahli" dalam bidang tertent', 'c3377-wushu.jpg'); -- -------------------------------------------------------- -- -- Struktur dari tabel `ci_sessions` -- CREATE TABLE `ci_sessions` ( `id` varchar(40) COLLATE utf8_swedish_ci NOT NULL, `ip_address` varchar(45) COLLATE utf8_swedish_ci NOT NULL, `timestamp` int(10) UNSIGNED NOT NULL DEFAULT '0', `data` blob NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -- Dumping data untuk tabel `ci_sessions` -- INSERT INTO `ci_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('4asf0ndkj810fels9ohif2lgksu2aer4', '::1', 1484120206, 0x5f5f63695f6c6173745f726567656e65726174657c693a313438343132303230353b757365726d61696c7c733a31363a226b6f7031337840676d61696c2e636f6d223b75736572706173737c733a33323a223465346436633333326236666536326136336166653536313731666433373235223b6c6f676765645f696e7c623a313b), ('562bi7au6jv5tk8lpbh7o65codls0j8l', '::1', 1484197713, 0x5f5f63695f6c6173745f726567656e65726174657c693a313438343139373731313b), ('l2l5lcbcc752efn21g620rj4nb5rccfl', '::1', 1484197734, 0x5f5f63695f6c6173745f726567656e65726174657c693a313438343139373733343b), ('mp5grgblvknkid38cp73136rd0pg9g2a', '::1', 1484121771, 0x5f5f63695f6c6173745f726567656e65726174657c693a313438343132313639343b757365726d61696c7c733a31363a226b6f7031337840676d61696c2e636f6d223b75736572706173737c733a33323a223465346436633333326236666536326136336166653536313731666433373235223b6c6f676765645f696e7c623a313b); -- -------------------------------------------------------- -- -- Struktur dari tabel `prestasi` -- CREATE TABLE `prestasi` ( `id_prestasi` int(11) NOT NULL, `nama_prestasi` varchar(45) DEFAULT NULL, `medali` varchar(45) DEFAULT NULL, `tahun` year(4) DEFAULT NULL, `id_atlet` int(11) NOT NULL, `id_turnamen` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `prestasi` -- INSERT INTO `prestasi` (`id_prestasi`, `nama_prestasi`, `medali`, `tahun`, `id_atlet`, `id_turnamen`) VALUES (2, '<NAME>', 'Emas', 2015, 1, 2), (3, 'Juara Olimpiade musim panas Rio de janerio', 'Emas', 2016, 8, 1), (4, 'Juara Liga Indonesia bersama Persipura', 'Emas', 2005, 9, 9), (5, 'Juara nomor 200 meter gaya pungung', 'Emas', 2011, 10, 7), (6, 'Juara Liga Super Indonesia', 'Emas', 2009, 11, 10), (7, 'Juara Asean PARA Games gaya punggung', 'Perak', 2014, 12, 11), (8, 'IFBB ', 'Emas', 1997, 13, 7), (9, 'Juara blabla', 'Emas', 2016, 14, 10); -- -------------------------------------------------------- -- -- Struktur dari tabel `turnamen` -- CREATE TABLE `turnamen` ( `id_turnamen` int(11) NOT NULL, `nama_turnamen` varchar(45) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `turnamen` -- INSERT INTO `turnamen` (`id_turnamen`, `nama_turnamen`) VALUES (1, 'Olimpiade'), (2, 'Kejuaraan Dunia'), (3, 'Asian Games'), (4, '<NAME>'), (5, '<NAME>'), (6, 'Kejuaraan Asia'), (7, 'SEA Games'), (8, 'Kejuaraan AFF CUP'), (9, 'Liga Indonesia'), (10, 'Liga Super Indonesia'), (11, 'Asean PARA Games'); -- -- Indexes for dumped tables -- -- -- Indexes for table `admin` -- ALTER TABLE `admin` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `email` (`usermail`); -- -- Indexes for table `atlet` -- ALTER TABLE `atlet` ADD PRIMARY KEY (`id_atlet`), ADD KEY `fk_atlet_cabor1_idx` (`id_cabor`); -- -- Indexes for table `cabor` -- ALTER TABLE `cabor` ADD PRIMARY KEY (`id_cabor`); -- -- Indexes for table `ci_sessions` -- ALTER TABLE `ci_sessions` ADD PRIMARY KEY (`id`), ADD KEY `ci_sessions_timestamp` (`timestamp`); -- -- Indexes for table `prestasi` -- ALTER TABLE `prestasi` ADD PRIMARY KEY (`id_prestasi`), ADD KEY `fk_prestasi_atlet1_idx` (`id_atlet`), ADD KEY `fk_prestasi_turnamen1_idx` (`id_turnamen`); -- -- Indexes for table `turnamen` -- ALTER TABLE `turnamen` ADD PRIMARY KEY (`id_turnamen`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `admin` -- ALTER TABLE `admin` MODIFY `id` int(12) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `atlet` -- ALTER TABLE `atlet` MODIFY `id_atlet` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `cabor` -- ALTER TABLE `cabor` MODIFY `id_cabor` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=59; -- -- AUTO_INCREMENT for table `prestasi` -- ALTER TABLE `prestasi` MODIFY `id_prestasi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `turnamen` -- ALTER TABLE `turnamen` MODIFY `id_turnamen` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables) -- -- -- Ketidakleluasaan untuk tabel `atlet` -- ALTER TABLE `atlet` ADD CONSTRAINT `fk_atlet_cabor1` FOREIGN KEY (`id_cabor`) REFERENCES `cabor` (`id_cabor`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Ketidakleluasaan untuk tabel `prestasi` -- ALTER TABLE `prestasi` ADD CONSTRAINT `fk_prestasi_atlet1` FOREIGN KEY (`id_atlet`) REFERENCES `atlet` (`id_atlet`) ON DELETE CASCADE ON UPDATE NO ACTION, ADD CONSTRAINT `fk_prestasi_turnamen1` FOREIGN KEY (`id_turnamen`) REFERENCES `turnamen` (`id_turnamen`) ON DELETE CASCADE ON UPDATE NO ACTION; /*!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>migration/verify/insert-data.sql<gh_stars>0 -- Verify yabon-prono:insert-data on pg BEGIN; -- XXX Add verifications here. ROLLBACK;
<reponame>jichang/sso DROP TABLE sso.authorizations;
-- 开始初始化数据 把no_cache=1改为 true: ^(INSERT([^,]*?,){10})\s*(1,)(.*?;)$ 替换为 $1 true,$4 这行要删除才能执行; BEGIN; INSERT INTO sys_menu VALUES (2, 'Upms', '系统管理', 'example', '/upms', '/0/2', 'M', '无', '', 0, true, '', 'Layout', 1, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (3, 'Sysuser', '用户管理', 'user', 'sysuser', '/0/2/3', 'C', '无', 'system:sysuser:list', 2, NULL, NULL, '/sysuser/index', 1, '0', '1', '1', '0', '2020-04-11 15:52:48', '2020-04-12 11:10:42', NULL); INSERT INTO sys_menu VALUES (43, '', '新增用户', '', '/api/v1/sysuser', '/0/2/3/43', 'F', 'POST', 'system:sysuser:add', 3, NULL, NULL, NULL, 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (44, '', '查询用户', '', '/api/v1/sysuser', '/0/2/3/44', 'F', 'GET', 'system:sysuser:query', 3, NULL, NULL, NULL, 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (45, '', '修改用户', '', '/api/v1/sysuser/', '/0/2/3/45', 'F', 'PUT', 'system:sysuser:edit', 3, NULL, NULL, NULL, 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (46, '', '删除用户', '', '/api/v1/sysuser/', '/0/2/3/46', 'F', 'DELETE', 'system:sysuser:remove', 3, NULL, NULL, NULL, 0, '0', '1', '1', '0', '2020-04-11 15:52:48', '2020-04-12 15:32:45', NULL); INSERT INTO sys_menu VALUES (51, 'Menu', '菜单管理', 'tree-table', 'menu', '/0/2/51', 'C', '无', 'system:sysmenu:list', 2, true, '', '/menu/index', 3, '0', '1', '1', '0', '2020-04-11 15:52:48', '2020-04-12 11:16:30', NULL); INSERT INTO sys_menu VALUES (52, 'Role', '角色管理', 'peoples', 'role', '/0/2/52', 'C', '无', 'system:sysrole:list', 2, true, '', '/role/index', 2, '0', '1', '1', '0', '2020-04-11 15:52:48', '2020-04-12 11:16:19', NULL); INSERT INTO sys_menu VALUES (56, 'Dept', '部门管理', 'tree', 'dept', '/0/2/56', 'C', '无', 'system:sysdept:list', 2, false, '', '/dept/index', 4, '0', '1', '1', '0', '2020-04-11 15:52:48', '2020-04-12 11:16:47', NULL); INSERT INTO sys_menu VALUES (57, 'post', '岗位管理', 'pass', 'post', '/0/2/57', 'C', '无', 'system:syspost:list', 2, false, '', '/post/index', 5, '0', '1', '1', '0', '2020-04-11 15:52:48', '2020-04-12 11:16:53', NULL); INSERT INTO sys_menu VALUES (58, 'Dict', '字典管理', 'education', 'dict', '/0/2/58', 'C', '无', 'system:sysdicttype:list', 2, false, '', '/dict/index', 6, '0', '1', '1', '0', '2020-04-11 15:52:48', '2020-04-12 11:17:04', NULL); INSERT INTO sys_menu VALUES (59, 'DictData', '字典数据', 'education', 'dict/data/:dictId', '/0/2/59', 'C', '无', 'system:sysdictdata:list', 2, false, '', '/dict/data', 100, '1', '1', '1', '0', '2020-04-11 15:52:48', '2020-04-12 11:17:25', NULL); INSERT INTO sys_menu VALUES (60, 'Tools', '系统工具', 'component', '/tools', '/0/60', 'M', '无', '', 0, false, '', 'Layout', 3, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (61, 'Swagger', '系统接口', 'guide', 'swagger', '/0/60/61', 'C', '无', '', 60, false, '', '/tools/swagger/index', 1, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (62, 'Config', '参数设置', 'list', '/config', '/0/2/62', 'C', '无', 'system:sysconfig:list', 2, false, '', '/config/index', 7, '0', '1', '1', '0', '2020-04-11 15:52:48', '2020-04-12 11:17:16', NULL); INSERT INTO sys_menu VALUES (63, '', '接口权限', 'bug', '', '/0/63', 'M', '', '', 0, false, '', '', 99, '1', '1', '1', '0', '2020-04-11 15:52:48', '2020-04-12 16:39:32', NULL); INSERT INTO sys_menu VALUES (64, '', '用户管理', 'user', '', '/0/63/64', 'M', '', '', 63, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (66, '', '菜单管理', 'tree-table', '', '/0/63/66', 'C', '', '', 63, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (67, '', '菜单列表', 'tree-table', '/api/v1/menulist', '/0/63/66/67', 'A', 'GET', '', 66, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (68, '', '新建菜单', 'tree', '/api/v1/menu', '/0/63/66/68', 'A', 'POST', '', 66, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (69, '', '字典', 'dict', '', '/0/63/69', 'M', '', '', 63, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (70, '', '类型', 'dict', '', '/0/63/69/70', 'C', '', '', 69, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (71, '', '字典类型获取', 'tree', '/api/v1/dict/databytype/', '/0/63/256/71', 'A', 'GET', '', 256, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (72, '', '修改菜单', 'bug', '/api/v1/menu', '/0/63/66/72', 'A', 'PUT', '', 66, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (73, '', '删除菜单', 'bug', '/api/v1/menu/:id', '/0/63/66/73', 'A', 'DELETE', '', 66, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (74, '', '管理员列表', 'bug', '/api/v1/sysUserList', '/0/63/64/74', 'A', 'GET', NULL, 64, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (75, '', '根据id获取管理员', 'bug', '/api/v1/sysUser/:id', '/0/63/64/75', 'A', 'GET', NULL, 64, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (76, '', '获取管理员', 'bug', '/api/v1/sysUser/', '/0/63/256/76', 'A', 'GET', NULL, 256, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', '2020-07-18 14:30:28', NULL); INSERT INTO sys_menu VALUES (77, '', '创建管理员', 'bug', '/api/v1/sysUser', '/0/63/64/77', 'A', 'POST', NULL, 64, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (78, '', '修改管理员', 'bug', '/api/v1/sysUser', '/0/63/64/78', 'A', 'PUT', NULL, 64, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (79, '', '删除管理员', 'bug', '/api/v1/sysUser/:id', '/0/63/64/79', 'A', 'DELETE', NULL, 64, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (80, '', '当前用户个人信息', 'bug', '/api/v1/user/profile', '/0/63/256/267/80', 'A', 'GET', NULL, 267, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', '2020-05-03 20:50:40', NULL); INSERT INTO sys_menu VALUES (81, '', '角色列表', 'bug', '/api/v1/rolelist', '/0/63/201/81', 'A', 'GET', NULL, 201, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (82, '', '获取角色信息', 'bug', '/api/v1/role/:id', '/0/63/201/82', 'A', 'GET', NULL, 201, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (83, '', '创建角色', 'bug', '/api/v1/role', '/0/63/201/83', 'A', 'POST', NULL, 201, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (84, '', '修改角色', 'bug', '/api/v1/role', '/0/63/201/84', 'A', 'PUT', NULL, 201, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (85, '', '删除角色', 'bug', '/api/v1/role/:id', '/0/63/201/85', 'A', 'DELETE', NULL, 201, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (86, '', '参数列表', 'bug', '/api/v1/configList', '/0/63/202/86', 'A', 'GET', NULL, 202, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (87, '', '根据id获取参数', 'bug', '/api/v1/config/:id', '/0/63/202/87', 'A', 'GET', NULL, 202, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (89, '', '创建参数', 'bug', '/api/v1/config', '/0/63/202/89', 'A', 'POST', NULL, 202, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (90, '', '修改参数', 'bug', '/api/v1/config', '/0/63/202/90', 'A', 'PUT', NULL, 202, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (91, '', '删除参数', 'bug', '/api/v1/config/:id', '/0/63/202/91', 'A', 'DELETE', NULL, 202, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (92, '', '获取角色菜单', 'bug', '/api/v1/menurole', '/0/63/256/92', 'A', 'GET', NULL, 256, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', '2020-07-10 20:47:39', NULL); INSERT INTO sys_menu VALUES (93, '', '根据角色id获取角色', 'bug', '/api/v1/roleMenuTreeselect/:id', '/0/63/256/93', 'A', 'GET', NULL, 256, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', '2020-07-10 20:47:52', NULL); INSERT INTO sys_menu VALUES (94, '', '获取菜单树', 'bug', '/api/v1/menuTreeselect', '/0/63/256/94', 'A', 'GET', NULL, 256, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', '2020-05-03 20:52:11', NULL); INSERT INTO sys_menu VALUES (95, '', '获取角色菜单', 'bug', '/api/v1/rolemenu', '/0/63/205/95', 'A', 'GET', NULL, 205, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (96, '', '创建角色菜单', 'bug', '/api/v1/rolemenu', '/0/63/205/96', 'A', 'POST', NULL, 205, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (97, '', '删除用户菜单数据', 'bug', '/api/v1/rolemenu/:id', '/0/63/205/97', 'A', 'DELETE', NULL, 205, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (103, '', '部门菜单列表', 'bug', '/api/v1/deptList', '/0/63/203/103', 'A', 'GET', NULL, 203, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (104, '', '根据id获取部门信息', 'bug', '/api/v1/dept/:id', '/0/63/203/104', 'A', 'GET', NULL, 203, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (105, '', '创建部门', 'bug', '/api/v1/dept', '/0/63/203/105', 'A', 'POST', NULL, 203, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (106, '', '修改部门', 'bug', '/api/v1/dept', '/0/63/203/106', 'A', 'PUT', NULL, 203, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (107, '', '删除部门', 'bug', '/api/v1/dept/:id', '/0/63/203/107', 'A', 'DELETE', NULL, 203, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (108, '', '字典数据列表', 'bug', '/api/v1/dict/datalist', '/0/63/69/206/108', 'A', 'GET', NULL, 206, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (109, '', '通过编码获取字典数据', 'bug', '/api/v1/dict/data/:id', '/0/63/69/206/109', 'A', 'GET', NULL, 206, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (110, '', '通过字典类型获取字典数据', 'bug', '/api/v1/dict/databytype/:id', '/0/63/256/110', 'A', 'GET', NULL, 256, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (111, '', '创建字典数据', 'bug', '/api/v1/dict/data', '/0/63/69/206/111', 'A', 'POST', NULL, 206, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (112, '', '修改字典数据', 'bug', '/api/v1/dict/data/', '/0/63/69/206/112', 'A', 'PUT', NULL, 206, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (113, '', '删除字典数据', 'bug', '/api/v1/dict/data/:id', '/0/63/69/206/113', 'A', 'DELETE', NULL, 206, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (114, '', '字典类型列表', 'bug', '/api/v1/dict/typelist', '/0/63/69/70/114', 'A', 'GET', NULL, 70, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (115, '', '通过id获取字典类型', 'bug', '/api/v1/dict/type/:id', '/0/63/69/70/115', 'A', 'GET', NULL, 70, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (116, '', '创建字典类型', 'bug', '/api/v1/dict/type', '/0/63/69/70/116', 'A', 'POST', NULL, 70, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (117, '', '修改字典类型', 'bug', '/api/v1/dict/type', '/0/63/69/70/117', 'A', 'PUT', NULL, 70, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (118, '', '删除字典类型', 'bug', '/api/v1/dict/type/:id', '/0/63/69/70/118', 'A', 'DELETE', NULL, 70, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (119, '', '获取岗位列表', 'bug', '/api/v1/postlist', '/0/63/204/119', 'A', 'GET', NULL, 204, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (120, '', '通过id获取岗位信息', 'bug', '/api/v1/post/:id', '/0/63/204/120', 'A', 'GET', NULL, 204, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (121, '', '创建岗位', 'bug', '/api/v1/post', '/0/63/204/121', 'A', 'POST', NULL, 204, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (122, '', '修改岗位', 'bug', '/api/v1/post', '/0/63/204/122', 'A', 'PUT', NULL, 204, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (123, '', '删除岗位', 'bug', '/api/v1/post/:id', '/0/63/204/123', 'A', 'DELETE', NULL, 204, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (138, '', '获取根据id菜单信息', 'bug', '/api/v1/menu/:id', '/0/63/66/138', 'A', 'GET', NULL, 66, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (142, '', '获取角色对应的菜单id数组', 'bug', '/api/v1/menuids', '/0/63/256/142', 'A', 'GET', NULL, 256, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (201, '', '角色管理', 'peoples', '', '/0/63/201', 'C', 'GET', '', 63, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (202, '', '参数设置', 'list', '', '/0/63/202', 'C', 'DELETE', '', 63, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (203, '', '部门管理', 'tree', '', '/0/63/203', 'C', 'POST', '', 63, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (204, '', '岗位管理', 'pass', '', '/0/63/204', 'C', '', '', 63, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (205, '', '角色菜单管理', 'nested', '', '/0/63/205', 'C', '', '', 63, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (206, '', '数据', '', '', '/0/63/69/206', 'C', 'PUT', '', 69, false, '', '', 2, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (211, 'Log', '日志管理', 'log', '/log', '/0/2/211', 'M', '', '', 2, false, '', '/log/index', 8, '0', '1', '1', '0', '2020-04-11 15:52:48', '2020-04-12 11:15:32', NULL); INSERT INTO sys_menu VALUES (212, 'LoginLog', '登录日志', 'logininfor', '/loginlog', '/0/2/211/212', 'C', '', 'system:sysloginlog:list', 211, false, '', '/loginlog/index', 1, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (213, '', '获取登录日志', 'bug', '/api/v1/loginloglist', '/0/63/214/213', 'A', 'GET', NULL, 214, NULL, NULL, NULL, 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (214, '', '日志管理', 'log', '', '/0/63/214', 'M', 'GET', '', 63, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (215, '', '删除日志', 'bug', '/api/v1/loginlog/:id', '/0/63/214/215', 'A', 'DELETE', '', 214, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (216, 'OperLog', '操作日志', 'skill', '/operlog', '/0/2/211/216', 'C', '', 'system:sysoperlog:list', 211, false, '', '/operlog/index', 1, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (217, '', '获取操作日志', 'bug', '/api/v1/operloglist', '/0/63/214/217', 'A', 'GET', '', 214, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (220, '', '新增菜单', '', '', '/0/2/51/220', 'F', '', 'system:sysmenu:add', 51, false, '', '', 1, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (221, '', '修改菜单', 'edit', '', '/0/2/51/221', 'F', '', 'system:sysmenu:edit', 51, false, '', '', 1, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (222, '', '查询菜单', 'search', '', '/0/2/51/222', 'F', '', 'system:sysmenu:query', 51, false, '', '', 1, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (223, '', '删除菜单', '', '', '/0/2/51/223', 'F', '', 'system:sysmenu:remove', 51, false, '', '', 1, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (224, '', '新增角色', '', '', '/0/2/52/224', 'F', '', 'system:sysrole:add', 52, false, '', '', 1, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (225, '', '查询角色', '', '', '/0/2/52/225', 'F', '', 'system:sysrole:query', 52, false, '', '', 1, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (226, '', '修改角色', '', '', '/0/2/52/226', 'F', '', 'system:sysrole:edit', 52, false, '', '', 1, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (227, '', '删除角色', '', '', '/0/2/52/227', 'F', '', 'system:sysrole:remove', 52, false, '', '', 1, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (228, '', '查询部门', '', '', '/0/2/56/228', 'F', '', 'system:sysdept:query', 56, false, '', '', 1, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (229, '', '新增部门', '', '', '/0/2/56/229', 'F', '', 'system:sysdept:add', 56, false, '', '', 1, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (230, '', '修改部门', '', '', '/0/2/56/230', 'F', '', 'system:sysdept:edit', 56, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (231, '', '删除部门', '', '', '/0/2/56/231', 'F', '', 'system:sysdept:remove', 56, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (232, '', '查询岗位', '', '', '/0/2/57/232', 'F', '', 'system:syspost:query', 57, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (233, '', '新增岗位', '', '', '/0/2/57/233', 'F', '', 'system:syspost:add', 57, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (234, '', '修改岗位', '', '', '/0/2/57/234', 'F', '', 'system:syspost:edit', 57, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (235, '', '删除岗位', '', '', '/0/2/57/235', 'F', '', 'system:syspost:remove', 57, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (236, '', '字典查询', '', '', '/0/2/58/236', 'F', '', 'system:sysdicttype:query', 58, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (237, '', '新增类型', '', '', '/0/2/58/237', 'F', '', 'system:sysdicttype:add', 58, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (238, '', '修改类型', '', '', '/0/2/58/238', 'F', '', 'system:sysdicttype:edit', 58, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (239, '', '删除类型', '', '', '/0/2/58/239', 'F', '', 'system:sysdicttype:remove', 58, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (240, '', '查询数据', '', '', '/0/2/59/240', 'F', '', 'system:sysdictdata:query', 59, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (241, '', '新增数据', '', '', '/0/2/59/241', 'F', '', 'system:sysdictdata:add', 59, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (242, '', '修改数据', '', '', '/0/2/59/242', 'F', '', 'system:sysdictdata:edit', 59, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (243, '', '删除数据', '', '', '/0/2/59/243', 'F', '', 'system:sysdictdata:remove', 59, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (244, '', '查询参数', '', '', '/0/2/62/244', 'F', '', 'system:sysconfig:query', 62, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (245, '', '新增参数', '', '', '/0/2/62/245', 'F', '', 'system:sysconfig:add', 62, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (246, '', '修改参数', '', '', '/0/2/62/246', 'F', '', 'system:sysconfig:edit', 62, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (247, '', '删除参数', '', '', '/0/2/62/247', 'F', '', 'system:sysconfig:remove', 62, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (248, '', '查询登录日志', '', '', '/0/2/211/212/248', 'F', '', 'system:sysloginlog:query', 212, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (249, '', '删除登录日志', '', '', '/0/2/211/212/249', 'F', '', 'system:sysloginlog:remove', 212, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (250, '', '查询操作日志', '', '', '/0/2/211/216/250', 'F', '', 'system:sysoperlog:query', 216, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (251, '', '删除操作日志', '', '', '/0/2/211/216/251', 'F', '', 'system:sysoperlog:remove', 216, false, '', '', 0, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (252, '', '获取登录用户信息', '', '/api/v1/getinfo', '/0/63/256/252', 'A', 'GET', '', 256, false, '', '', 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (253, '', '角色数据权限', '', '/api/v1/roledatascope', '/0/63/256/253', 'A', 'PUT', '', 256, false, '', '', 0, '1', '1', '1', '0', '2020-04-11 15:52:48', '2020-07-10 20:47:58', NULL); INSERT INTO sys_menu VALUES (254, '', '部门树接口【数据权限】', '', '/api/v1/roleDeptTreeselect/:id', '/0/63/256/254', 'A', 'GET', '', 256, false, '', '', 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (255, '', '部门树【用户列表】', '', '/api/v1/deptTree', '/0/63/256/255', 'A', 'GET', '', 256, false, '', '', 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (256, '', '必开接口', '', '', '/0/63/256', 'M', 'GET', '', 63, false, '', '', 0, '1', '1', '', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (257, '', '通过key获取参数', 'bug', '/api/v1/configKey/:id', '/0/63/256/257', 'A', 'GET', '', 256, false, '', '', 1, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (258, '', '退出登录', '', '/api/v1/logout', '/0/63/256/258', 'A', 'POST', '', 256, false, '', '', 0, '1', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (259, '', '头像上传', '', '/api/v1/user/avatar', '/0/63/256/267/259', 'A', 'POST', '', 267, false, '', '', 0, '1', '1', '1', '0', '2020-04-11 15:52:48', '2020-05-03 20:50:05', NULL); INSERT INTO sys_menu VALUES (260, '', '修改密码', '', '/api/v1/user/pwd', '/0/63/256/260', 'A', 'PUT', '', 256, false, '', '', 0, '1', '1', '', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (261, 'Gen', '代码生成', 'code', 'gen', '/0/60/261', 'C', '', '', 60, false, '', '/tools/gen/index', 2, '0', '1', '1', '0', '2020-04-11 15:52:48', '2020-04-12 11:18:12', NULL); INSERT INTO sys_menu VALUES (262, 'EditTable', '代码生成修改', 'build', 'editTable', '/0/60/262', 'C', '', '', 60, false, '', '/tools/gen/editTable', 100, '1', '1', '1', '0', '2020-04-11 15:52:48', '2020-05-03 20:38:36', NULL); INSERT INTO sys_menu VALUES (263, '', '字典类型下拉框【生成功能】', '', '/api/v1/dict/typeoptionselect', '/0/63/256/263', 'A', 'GET', '', 256, false, '', '', 0, '1', '1', '', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (264, 'Build', '表单构建', 'build', 'build', '/0/60/264', 'C', '', '', 60, false, '', '/tools/build/index', 1, '0', '1', '1', '1', '2020-04-11 15:52:48', '2020-07-18 13:51:47', NULL); INSERT INTO sys_menu VALUES (267, '', '个人中心', '', '', '/0/63/256/267', 'M', '', '', 256, false, '', '', 0, '1', '1', '', '1', '2020-05-03 20:49:39', '2020-05-03 20:49:39', NULL); INSERT INTO sys_menu VALUES (269, 'Server', '服务监控', 'druid', 'system/monitor', '/0/60/269', 'C', '', 'monitor:server:list', 60, false, '', '/system/monitor', 0, '0', '1', '1', '1', '2020-04-14 00:28:19', '2020-08-09 02:07:53', NULL); INSERT INTO sys_menu VALUES (459, 'sys_job管理', '定时任务', 'time-range', '/sys_job', '/0/459', 'M', '无', '', 0, false, '', 'Layout', 2, '0', '1', '1', '0', '2020-08-03 09:17:37', '2020-08-09 01:27:11', NULL); INSERT INTO sys_menu VALUES (460, 'sys_job管理', '定时任务', 'tool', 'sys_job', '/0/459/460', 'C', '无', 'sysjob:sysjob:list', 459, false, '', '/sysjob/index', 0, '0', '1', '1', '0', '2020-08-03 09:17:37', '2020-08-04 15:18:32', NULL); INSERT INTO sys_menu VALUES (461, 'sys_job', '分页获取定时任务', 'pass', 'sys_job', '/0/459/460/461', 'F', '无', 'sysjob:sysjob:query', 460, false, '', '', 0, '0', '1', '1', '0', '2020-08-03 09:17:37', '2020-08-03 09:17:37', NULL); INSERT INTO sys_menu VALUES (462, 'sys_job', '创建定时任务', 'pass', 'sys_job', '/0/459/460/462', 'F', '无', 'sysjob:sysjob:add', 460, false, '', '', 0, '0', '1', '1', '0', '2020-08-03 09:17:37', '2020-08-03 09:17:37', NULL); INSERT INTO sys_menu VALUES (463, 'sys_job', '修改定时任务', 'pass', 'sys_job', '/0/459/460/463', 'F', '无', 'sysjob:sysjob:edit', 460, false, '', '', 0, '0', '1', '1', '0', '2020-08-03 09:17:37', '2020-08-03 09:17:37', NULL); INSERT INTO sys_menu VALUES (464, 'sys_job', '删除定时任务', 'pass', 'sys_job', '/0/459/460/464', 'F', '无', 'sysjob:sysjob:remove', 460, false, '', '', 0, '0', '1', '1', '0', '2020-08-03 09:17:37', '2020-08-03 09:17:37', NULL); INSERT INTO sys_menu VALUES (465, 'sys_job', '定时任务', 'bug', 'sys_job', '/0/63/465', 'M', '无', '', 63, false, '', '', 0, '1', '1', '1', '0', '2020-08-03 09:17:37', '2020-08-03 09:17:37', NULL); INSERT INTO sys_menu VALUES (466, 'sys_job', '分页获取定时任务', 'bug', '/api/v1/sysjob', '/0/63/465/466', 'A', 'GET', '', 465, false, '', '', 0, '1', '1', '1', '0', '2020-08-03 09:17:37', '2020-08-03 09:17:37', NULL); INSERT INTO sys_menu VALUES (467, 'sys_job', '根据id获取定时任务', 'bug', '/api/v1/sysjob/:id', '/0/63/465/467', 'A', 'GET', '', 465, false, '', '', 0, '1', '1', '1', '0', '2020-08-03 09:17:37', '2020-08-03 09:17:37', NULL); INSERT INTO sys_menu VALUES (468, 'sys_job', '创建定时任务', 'bug', '/api/v1/sysjob', '/0/63/465/468', 'A', 'POST', '', 465, false, '', '', 0, '1', '1', '1', '0', '2020-08-03 09:17:37', '2020-08-03 09:17:37', NULL); INSERT INTO sys_menu VALUES (469, 'sys_job', '修改定时任务', 'bug', '/api/v1/sysjob', '/0/63/465/469', 'A', 'PUT', '', 465, false, '', '', 0, '1', '1', '1', '0', '2020-08-03 09:17:37', '2020-08-03 09:17:37', NULL); INSERT INTO sys_menu VALUES (470, 'sys_job', '删除定时任务', 'bug', '/api/v1/sysjob/:id', '/0/63/465/470', 'A', 'DELETE', '', 465, false, '', '', 0, '1', '1', '1', '0', '2020-08-03 09:17:37', '2020-08-03 09:17:37', NULL); INSERT INTO sys_menu VALUES (471, 'job_log', '日志', 'bug', 'job_log', '/0/459/471', 'C', '', '', 459, false, '', '/sysjob/log', 0, '1', '1', '1', '1', '2020-08-05 21:24:46', '2020-08-06 00:02:20', NULL); INSERT INTO sys_menu VALUES (473, 'sysSetting', '系统配置', 'form', 'syssettings', '/0/60/473', 'C', '无', 'syssetting:syssetting:list', 60, false, '', '/system/settings', 0, '0', '1', '1', '0', '2020-08-09 01:05:22', '2020-08-09 02:17:10', NULL); INSERT INTO sys_menu VALUES (474, 'sys_setting', '分页获取SysSetting', 'pass', 'sys_setting', '/0/60/473/474', 'F', '无', 'syssetting:syssetting:query', 473, false, '', '', 0, '0', '1', '1', '0', '2020-08-09 01:05:22', '2020-08-09 01:05:22', NULL); INSERT INTO sys_menu VALUES (475, 'sys_setting', '创建SysSetting', 'pass', 'sys_setting', '/0/60/473/475', 'F', '无', 'syssetting:syssetting:add', 473, false, '', '', 0, '0', '1', '1', '0', '2020-08-09 01:05:22', '2020-08-09 01:05:22', NULL); INSERT INTO sys_menu VALUES (476, 'sys_setting', '修改SysSetting', 'pass', 'sys_setting', '/0/60/473/476', 'F', '无', 'syssetting:syssetting:edit', 473, false, '', '', 0, '0', '1', '1', '0', '2020-08-09 01:05:22', '2020-08-09 01:05:22', NULL); INSERT INTO sys_menu VALUES (477, 'sys_setting', '删除SysSetting', 'pass', 'sys_setting', '/0/60/473/477', 'F', '无', 'syssetting:syssetting:remove', 473, false, '', '', 0, '0', '1', '1', '0', '2020-08-09 01:05:22', '2020-08-09 01:05:22', NULL); INSERT INTO sys_menu VALUES (478, 'sys_setting', 'SysSetting', 'bug', 'sys_setting', '/0/63/478', 'M', '无', '', 63, false, '', '', 0, '1', '1', '1', '0', '2020-08-09 01:05:22', '2020-08-09 01:05:22', NULL); INSERT INTO sys_menu VALUES (479, 'sys_setting', '分页获取SysSetting', 'bug', '/api/v1/syssettingList', '/0/63/478/479', 'A', 'GET', '', 478, false, '', '', 0, '1', '1', '1', '0', '2020-08-09 01:05:22', '2020-08-09 01:05:22', NULL); INSERT INTO sys_menu VALUES (480, 'sys_setting', '根据id获取SysSetting', 'bug', '/api/v1/syssetting/:id', '/0/63/478/480', 'A', 'GET', '', 478, false, '', '', 0, '1', '1', '1', '0', '2020-08-09 01:05:22', '2020-08-09 01:05:22', NULL); INSERT INTO sys_menu VALUES (481, 'sys_setting', '创建SysSetting', 'bug', '/api/v1/syssetting', '/0/63/478/481', 'A', 'POST', '', 478, false, '', '', 0, '1', '1', '1', '0', '2020-08-09 01:05:22', '2020-08-09 01:05:22', NULL); INSERT INTO sys_menu VALUES (482, 'sys_setting', '修改SysSetting', 'bug', '/api/v1/syssetting', '/0/63/478/482', 'A', 'PUT', '', 478, false, '', '', 0, '1', '1', '1', '0', '2020-08-09 01:05:22', '2020-08-09 01:05:22', NULL); INSERT INTO sys_menu VALUES (483, 'sys_setting', '删除SysSetting', 'bug', '/api/v1/syssetting/:id', '/0/63/478/483', 'A', 'DELETE', '', 478, false, '', '', 0, '1', '1', '1', '0', '2020-08-09 01:05:22', '2020-08-09 01:05:22', NULL); COMMIT; -- 数据完成 ;
<reponame>ArthurR2/angular-review<gh_stars>1-10 /* Warnings: - The migration will add a unique constraint covering the columns `[firstName,middleName,lastName]` on the table `authors`. If there are existing duplicate values, the migration will fail. */ -- CreateIndex CREATE UNIQUE INDEX "authors.firstName_middleName_lastName_unique" ON "authors"("firstName", "middleName", "lastName");
<gh_stars>1-10 USE ANTERO IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='dw' AND TABLE_NAME='d_erityisopetus') BEGIN ALTER TABLE [dw].[d_erityisopetus] DROP CONSTRAINT [DF__d_erityisopetus__username]; ALTER TABLE [dw].[d_erityisopetus] DROP CONSTRAINT [DF__d_erityisopetus__loadtime]; DROP TABLE [dw].[d_erityisopetus] END GO IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='dw' AND TABLE_NAME='d_erityisopetus') BEGIN CREATE TABLE [dw].[d_erityisopetus]( [id] [int] IDENTITY(0,1) NOT NULL, [erityisopetus_koodi] [varchar](3) NOT NULL, [erityisopetus_nimi_fi] [varchar](100) NOT NULL, [erityisopetus_nimi_sv] [varchar](100) NOT NULL, [erityisopetus_nimi_en] [varchar](100) NOT NULL, [alkupvm] [date] NOT NULL, [loppupvm][date] NOT NULL, [loadtime] [datetime] NOT NULL, [source] [varchar](100) NOT NULL, [username] [varchar](30) NOT NULL, [jarjestys_erityisopetus_koodi] AS (case when [erityisopetus_koodi]=(-1) then '99999' else CONVERT([varchar](10),[erityisopetus_koodi]) end), CONSTRAINT [PK_d_erityisopetus] PRIMARY KEY CLUSTERED ( [id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] END GO ALTER TABLE [dw].[d_erityisopetus] ADD CONSTRAINT [DF__d_erityisopetus__loadtime] DEFAULT (getdate()) FOR [loadtime] GO ALTER TABLE [dw].[d_erityisopetus] ADD CONSTRAINT [DF__d_erityisopetus__username] DEFAULT (suser_sname()) FOR [username] GO
<filename>db/sql/2934__drop_and_create_f_5_4_yosairaaloiden_tutkimus_ja_kehitys_rahoitus.sql USE [VipunenTK_DW] GO /****** Object: Table [dbo].[f_5_4_yosairaaloiden_tutkimus_ja_kehitys_rahoitus] Script Date: 26.3.2020 11:44:53 ******/ DROP TABLE [dbo].[f_5_4_yosairaaloiden_tutkimus_ja_kehitys_rahoitus] GO /****** Object: Table [dbo].[f_5_4_yosairaaloiden_tutkimus_ja_kehitys_rahoitus] Script Date: 26.3.2020 11:44:53 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[f_5_4_yosairaaloiden_tutkimus_ja_kehitys_rahoitus]( [tilastovuosi] [nvarchar](4) NULL, [tilv_date] [date] NULL, [yosairaala_avain] [varchar](5) NULL, [rahoituslahde_avain] [varchar](20) NOT NULL, [tutkimusrahoitus] [decimal](10, 3) NULL, [tietolahde] [nvarchar](50) NULL, [rivinumero] [int] NULL ) ON [PRIMARY] GO USE [ANTERO]
<filename>plugins/admin/tables.sql INSERT INTO plugins (plugin, version) VALUES ('admin', 'v1.0') ON CONFLICT (plugin) DO NOTHING; CREATE TABLE IF NOT EXISTS servers (server_name TEXT PRIMARY KEY, agent_host TEXT NOT NULL, host TEXT NOT NULL DEFAULT '127.0.0.1', port BIGINT NOT NULL, chat_channel BIGINT, status_channel BIGINT, admin_channel BIGINT); CREATE TABLE IF NOT EXISTS message_persistence (server_name TEXT NOT NULL, embed_name TEXT NOT NULL, embed BIGINT NOT NULL, PRIMARY KEY (server_name, embed_name)); CREATE TABLE IF NOT EXISTS bans (ucid TEXT PRIMARY KEY, banned_by TEXT NOT NULL, reason TEXT, banned_at TIMESTAMP NOT NULL DEFAULT NOW());
-- file:with.sql ln:199 expect:true SELECT * FROM vsubdepartment ORDER BY name
create table basetable(id serial primary key, name text); create view ddd_changed as select name, 'x' as x from basetable; create view ddd_unchanged as select name from ddd_changed;
/* Navicat MySQL Data Transfer Source Server : makeshop Source Server Version : 50553 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2018-09-08 00:06:46 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for make_admin -- ---------------------------- DROP TABLE IF EXISTS `make_admin`; CREATE TABLE `make_admin` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(60) NOT NULL, `password` varchar(255) NOT NULL, `permit` int(10) unsigned NOT NULL COMMENT '1为超级管理员,2为普通管理员', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of make_admin -- ---------------------------- INSERT INTO `make_admin` VALUES ('14', 'aaaa', '<PASSWORD>', '1'); INSERT INTO `make_admin` VALUES ('9', 'root', '63a9f0ea7bb98050796b649e85481845', '2'); INSERT INTO `make_admin` VALUES ('17', 'yansh', 'd1b0251c3d0d3d4b43ddab353de79357', '1'); INSERT INTO `make_admin` VALUES ('15', 'user1', '<PASSWORD>', '1'); INSERT INTO `make_admin` VALUES ('16', 'user1', '<PASSWORD>', '1'); -- ---------------------------- -- Table structure for make_artcount -- ---------------------------- DROP TABLE IF EXISTS `make_artcount`; CREATE TABLE `make_artcount` ( `id` int(11) NOT NULL, `click` int(11) DEFAULT NULL COMMENT '点击量', `comment` int(11) DEFAULT NULL COMMENT '评论量', `articleId` int(11) DEFAULT NULL COMMENT '文章id', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of make_artcount -- ---------------------------- -- ---------------------------- -- Table structure for make_article -- ---------------------------- DROP TABLE IF EXISTS `make_article`; CREATE TABLE `make_article` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '文章id', `title` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT '文章题目', `keywords` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '关键词', `desc` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '描述', `author` varchar(30) CHARACTER SET utf8 DEFAULT NULL COMMENT '类别', `content` text CHARACTER SET utf8 COLLATE utf8_unicode_ci, `click` int(11) DEFAULT '0' COMMENT '点击数', `comment` int(11) DEFAULT '0' COMMENT '评论', `time` int(11) DEFAULT NULL COMMENT '创建日期', `cateid` varchar(255) DEFAULT NULL COMMENT '所属栏目', `thumb` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '缩略图', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of make_article -- ---------------------------- INSERT INTO `make_article` VALUES ('11', 'f', 'd', 'dfs', 'as', '<p>dfsd</p>', '10', '60', null, '17', '/makeblog2.0/public\\uploads/20180901\\6e14d7b804d87947ee9519dbea000406.jpg'); INSERT INTO `make_article` VALUES ('12', 'sss', 'sss', 'ddf', 'aaa', '<p>dfsdf</p>', '42', '70', null, '18', '/makeblog2.0/public\\uploads/20180901\\c1014d8e9f462ec11ba5d5d02884fc9b.jpg'); INSERT INTO `make_article` VALUES ('13', 'eee', 'dfs', 'fdvd', 'eefs', '<p>dfsere</p>', '32', '700', null, '17', '/makeblog2.0/public\\uploads/20180901\\6a71294e26240ea9fd1aa985f2f13d65.jpg'); INSERT INTO `make_article` VALUES ('14', '微信数据库最新解密方式', '微信', '微信数据库最新解密方式,C++代码解密微信数据库信息', '微信', '<p>微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息</p><p>微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息</p><p>微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息</p>', '47', '1000', null, '17', null); INSERT INTO `make_article` VALUES ('15', '微信数据库最新', '微信', '微信数据库最新解密方式,C++代码解密微信数据库信息', '微信', '<p>微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息</p><p>微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息</p><p>微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息微信数据库最新解密方式,C++代码解密微信数据库信息</p>', '60', '200', null, '18', null); INSERT INTO `make_article` VALUES ('16', '百度', '测试文章', '测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章', 'dfsdf', '<p>测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章测试文章</p>', '40', '0', '1536299472', '17', null); INSERT INTO `make_article` VALUES ('17', '哈哈哈哈哈哈哈哈哈哈', '枫叶', '枫叶花开放天涯', '枫叶', '<p>枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯</p><p>枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯</p><p>枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯</p><p>枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯</p><p>枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯枫叶花开放天涯</p>', '0', '0', '1536318267', '0', null); INSERT INTO `make_article` VALUES ('18', 'Java程序员从阿里、京东面试回来,这些面试题你会吗?', 'java', '最近有很多朋友去目前主流的大型互联网公司面试(阿里巴巴、京东-美团),面试回来之后会发给我一些面试题。有些朋友轻松过关拿到offer,但是有一些是来询问我答案的。', 'java', '<p>最近有很多朋友去目前主流的大型互联网公司面试(阿里巴巴、京东-美团),面试回来之后会发给我一些面试题。有些朋友轻松过关拿到offer,但是有一些是来询问我答案的。最近有很多朋友去目前主流的大型互联网公司面试(阿里巴巴、京东-美团),面试回来之后会发给我一些面试题。有些朋友轻松过关拿到offer,但是有一些是来询问我答案的。最近有很多朋友去目前主流的大型互联网公司面试(阿里巴巴、京东-美团),面试回来之后会发给我一些面试题。有些朋友轻松过关拿到offer,但是有一些是来询问我答案的。</p><p>最近有很多朋友去目前主流的大型互联网公司面试(阿里巴巴、京东-美团),面试回来之后会发给我一些面试题。有些朋友轻松过关拿到offer,但是有一些是来询问我答案的。</p><p>最近有很多朋友去目前主流的大型互联网公司面试(阿里巴巴、京东-美团),面试回来之后会发给我一些面试题。有些朋友轻松过关拿到offer,但是有一些是来询问我答案的。最近有很多朋友去目前主流的大型互联网公司面试(阿里巴巴、京东-美团),面试回来之后会发给我一些面试题。有些朋友轻松过关拿到offer,但是有一些是来询问我答案的。最近有很多朋友去目前主流的大型互联网公司面试(阿里巴巴、京东-美团),面试回来之后会发给我一些面试题。有些朋友轻松过关拿到offer,但是有一些是来询问我答案的。最近有很多朋友去目前主流的大型互联网公司面试(阿里巴巴、京东-美团),面试回来之后会发给我一些面试题。有些朋友轻松过关拿到offer,但是有一些是来询问我答案的。最近有很多朋友去目前主流的大型互联网公司面试(阿里巴巴、京东-美团),面试回来之后会发给我一些面试题。有些朋友轻松过关拿到offer,但是有一些是来询问我答案的。</p><p>最近有很多朋友去目前主流的大型互联网公司面试(阿里巴巴、京东-美团),面试回来之后会发给我一些面试题。有些朋友轻松过关拿到offer,但是有一些是来询问我答案的。</p>', '0', '0', '1536326482', '14', '/makeblog2.0/public\\uploads/20180907\\d05cca462f48b846ecb0db8a736dc383.png'); -- ---------------------------- -- Table structure for make_cate -- ---------------------------- DROP TABLE IF EXISTS `make_cate`; CREATE TABLE `make_cate` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `catename` varchar(30) CHARACTER SET utf8 NOT NULL COMMENT '栏目名称', `type` tinyint(4) NOT NULL COMMENT '栏目类型,1列表,2单页', `keywords` varchar(255) CHARACTER SET utf8 NOT NULL COMMENT '栏目关键词', `desc` varchar(255) CHARACTER SET utf8 NOT NULL COMMENT '栏目描述', `content` text CHARACTER SET utf8 COMMENT '栏目类型', `pid` int(11) NOT NULL COMMENT '上级栏目id', `sort` int(11) DEFAULT NULL COMMENT '排序', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=20 DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of make_cate -- ---------------------------- INSERT INTO `make_cate` VALUES ('14', '潮流前线', '3', '', '', '', '0', null); INSERT INTO `make_cate` VALUES ('15', '技术博文', '1', '', '', '', '0', null); INSERT INTO `make_cate` VALUES ('16', '团队资讯', '1', '', '', '', '0', null); INSERT INTO `make_cate` VALUES ('17', '技术团队', '1', '', '', '', '16', null); INSERT INTO `make_cate` VALUES ('18', '风采作品', '1', '', '', '', '16', null); INSERT INTO `make_cate` VALUES ('19', '经典赛事', '1', '', '', '', '0', null); -- ---------------------------- -- Table structure for make_comment -- ---------------------------- DROP TABLE IF EXISTS `make_comment`; CREATE TABLE `make_comment` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '评论表id', `articleId` varchar(255) DEFAULT NULL COMMENT '文章id', `content` varchar(255) DEFAULT NULL COMMENT '评论内容', `date` datetime DEFAULT NULL COMMENT '评论时间', `ip` varchar(255) DEFAULT NULL COMMENT '评论ip地址', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of make_comment -- ---------------------------- -- ---------------------------- -- Table structure for make_conf -- ---------------------------- DROP TABLE IF EXISTS `make_conf`; CREATE TABLE `make_conf` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `cnname` varchar(50) CHARACTER SET utf8 DEFAULT NULL COMMENT '中文名称', `enname` varchar(50) DEFAULT NULL COMMENT '英文名称', `type` tinyint(1) DEFAULT NULL COMMENT '类型 1:文本框 2:文本域 3:单选按钮 4:复选按钮 5:下拉菜单', `value` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '配置值', `values` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '配置可选值', `sort` smallint(50) DEFAULT '50' COMMENT '排序', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of make_conf -- ---------------------------- INSERT INTO `make_conf` VALUES ('2', '站点关键词', 'keyword', '1', '制造工作室,制造,make,makeblog,工作室,制造工作室云社区,技术分享', '这是关键词', '2'); INSERT INTO `make_conf` VALUES ('5', '自动清空缓存', 'cache', '5', '2个小时', '1个小时,2个小时,3个小时', '4'); INSERT INTO `make_conf` VALUES ('6', '站点名称', 'sitename', '1', '制造工作室2.0', 'thinkphp5.0', '1'); INSERT INTO `make_conf` VALUES ('7', '站点描述', 'desc', '2', '本网站提供制造技术交流空间和资料', '这是一个站点', '3'); INSERT INTO `make_conf` VALUES ('8', '是否关闭网站', 'close', '3', '是', '是,否', '5'); INSERT INTO `make_conf` VALUES ('9', '启动验证码', 'code', '4', '是', '是', '6'); INSERT INTO `make_conf` VALUES ('11', '哈哈哈哈', 'djjdk', '1', '', 'df', '50'); -- ---------------------------- -- Table structure for make_link -- ---------------------------- DROP TABLE IF EXISTS `make_link`; CREATE TABLE `make_link` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) CHARACTER SET utf8 DEFAULT NULL, `desc` varchar(255) CHARACTER SET utf8 DEFAULT NULL, `url` varchar(255) DEFAULT NULL, `sort` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of make_link -- ---------------------------- INSERT INTO `make_link` VALUES ('1', 'dd', 'sssdddd', 'https://www.baidu.com/a', '1'); INSERT INTO `make_link` VALUES ('3', 'sdfs', 'sdfs', 'dfsdfd', '2'); INSERT INTO `make_link` VALUES ('4', 'sdfs', 'fssdf', 'dfsd', '3'); INSERT INTO `make_link` VALUES ('5', '百度', '123\r\nddd', '123', null); INSERT INTO `make_link` VALUES ('6', '百度ss', '123', 'dddd', null); INSERT INTO `make_link` VALUES ('7', 'dfd', 'dff', 'ds', null); INSERT INTO `make_link` VALUES ('8', 'fdfs', 'ds', 'http://dfs', null); -- ---------------------------- -- Table structure for make_user -- ---------------------------- DROP TABLE IF EXISTS `make_user`; CREATE TABLE `make_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(60) NOT NULL, `password` varchar(60) NOT NULL, `email` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of make_user -- ---------------------------- INSERT INTO `make_user` VALUES ('1', 'root', 'root', '<EMAIL>'); INSERT INTO `make_user` VALUES ('2', 'make', 'make', '<EMAIL>'); INSERT INTO `make_user` VALUES ('3', '123', '123', '123'); INSERT INTO `make_user` VALUES ('5', '123', '123', '123'); INSERT INTO `make_user` VALUES ('14', 'thinkphp', '', ''); INSERT INTO `make_user` VALUES ('7', 'abd', 'jljd', 'jidoidj'); INSERT INTO `make_user` VALUES ('22', '1213', '6c14da109e294d1e8155be8aa4b1ce8e', '<EMAIL>'); INSERT INTO `make_user` VALUES ('24', 'sdf', 'ba7893e62fc5e3cb5324626c<PASSWORD>2847', 'dfdsd'); INSERT INTO `make_user` VALUES ('23', 'sdf', '<PASSWORD>', 'dfdsd'); INSERT INTO `make_user` VALUES ('25', 'sdf', 'ba7893e62fc5e3cb5324626c2f332847', 'dfdsd'); INSERT INTO `make_user` VALUES ('26', 'sdf', 'ba7893e62fc5e3cb5324626c2f332847', 'dfdsd'); INSERT INTO `make_user` VALUES ('27', '123', '202cb962ac59075b964b07152d234b70', '4564');
<filename>FormSubmitExport/admin/sql/updates/mysql/0.0.2.sql<gh_stars>0 --DROP TABLE IF EXISTS `#__helloworld_hello`; -- -------------------------------------------------------- -- -- Table structure for table `#__helloworld_hello` -- CREATE TABLE `#__helloworld_hello` ( `id` int(11) NOT NULL, `name` varchar(25) NOT NULL, `detail` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `#__helloworld_hello` -- INSERT INTO `#__helloworld_hello` (`id`, `name`, `detail`) VALUES (1, 'YATE Form', 'Youth and Adults Training for Employment'); -- -- Indexes for table `#__helloworld_hello` -- ALTER TABLE `#__helloworld_hello` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for table `#__helloworld_hello` -- ALTER TABLE `#__helloworld_hello` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25; -- -------------------------------------------------------- -- -- Table structure for table `#__helloworld_submission` -- --DROP TABLE IF EXISTS `#__helloworld_submission`; CREATE TABLE IF NOT EXISTS `#__helloworld_submission` ( `id` int(11) NOT NULL, `lastname` varchar(40) NOT NULL, `firstname` varchar(40) NOT NULL, `midname` varchar(40) NOT NULL, `address` varchar(45) NOT NULL, `dob` date DEFAULT NULL, `gender` varchar(8) NOT NULL, `nid` varchar(12) NOT NULL, `otherid` varchar(12) NOT NULL, `nis` varchar(12) NOT NULL, `homenum` varchar(16) NOT NULL, `mobilenum` varchar(16) NOT NULL, `email` varchar(40) NOT NULL, `mother` varchar(60) NOT NULL, `father` varchar(60) NOT NULL, `guardian` varchar(60) NOT NULL, `addressnok` varchar(45) NOT NULL, `nokhomenum` varchar(16) NOT NULL, `nokmobnum` varchar(16) NOT NULL, `nokemail` varchar(40) NOT NULL, `educlevel` varchar(20) NOT NULL, `numccslc` int(3) NOT NULL, `numcsec` int(3) NOT NULL, `empstatus` varchar(20) NOT NULL, `unemptime` varchar(20) NOT NULL, `challenges` varchar(50) NOT NULL, `childyesno` varchar(5) NOT NULL, `childnum` varchar(10) NOT NULL, `childage` varchar(16) NOT NULL, `programchoice` varchar(60) NOT NULL, `publicassist` varchar(5) NOT NULL, `otherinstitute` varchar(30) NOT NULL, `otherprogramme` varchar(40) NOT NULL, `date` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `#__helloworld_submission` ADD PRIMARY KEY (`id`); -- AUTO_INCREMENT for table `#__helloworld_submission` -- ALTER TABLE `vvrq6_helloworld_submission` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
<filename>sgipd-db/sql-new/Criterio_table.sql --liquibase formatted sql --changeset xtecuan:23 dbms:mssql CREATE TABLE Criterio ( id_criterio bigint IDENTITY(1,1) NOT NULL, nombre_criterio varchar(25) COLLATE Modern_Spanish_CI_AS NOT NULL, descripcion_criterio text COLLATE Modern_Spanish_CI_AS NOT NULL, puntaje_maximo float NOT NULL, descripcion_puntaje text COLLATE Modern_Spanish_CI_AS NOT NULL, formula varchar(350) COLLATE Modern_Spanish_CI_AS NULL, indice_criterio bigint NOT NULL, fraccion_ponderacion decimal(5,4) NULL, CONSTRAINT Criterio_PK PRIMARY KEY (id_criterio) ); EXEC sys.sp_addextendedproperty 'MS_Description', N'Criterios de seleccion Plazas docentes', 'schema', N'dbo', 'table', N'Criterio'; --rollback drop table Criterio;
<gh_stars>0 CREATE TABLE products ( id bigint NOT NULL, create_datetime timestamp, update_datetime timestamp, marked boolean NOT NULL, description varchar(1000), quantity varchar(255), title varchar(255) NOT NULL, unit varchar(255), user_id bigint NOT NULL, PRIMARY KEY (id) ); CREATE TABLE roles ( id bigint NOT NULL, name varchar(255) NOT NULL UNIQUE, PRIMARY KEY (id) ); CREATE TABLE users ( id bigint NOT NULL, create_datetime timestamp, update_datetime timestamp, email varchar(255) NOT NULL UNIQUE, first_name varchar(255), last_name varchar(255) NOT NULL, password varchar(255) NOT NULL, username varchar(255) NOT NULL UNIQUE, PRIMARY KEY (id) ); CREATE TABLE users_roles ( user_id bigint NOT NULL, role_id bigint NOT NULL ); CREATE SEQUENCE product_seq START 1 INCREMENT 50; CREATE SEQUENCE role_seq START 1 INCREMENT 50; CREATE SEQUENCE user_seq START 1 INCREMENT 50; ALTER TABLE IF EXISTS products ADD CONSTRAINT products_user_id_fkey FOREIGN KEY (user_id) REFERENCES users; ALTER TABLE IF EXISTS users_roles ADD CONSTRAINT users_roles_role_id_fkey FOREIGN KEY (role_id) REFERENCES roles; ALTER TABLE IF EXISTS users_roles ADD CONSTRAINT users_roles_user_id_fkey FOREIGN KEY (user_id) REFERENCES users;
<reponame>giosil/wcron -- -- Functions -- CREATE OR REPLACE FUNCTION ENCRYPT_TEXT(vcText IN VARCHAR2) RETURN VARCHAR2 IS vcResult VARCHAR2(2048); vcKey VARCHAR2(32); BEGIN vcResult := NULL; vcKey := '<KEY>'; dbms_obfuscation_toolkit.DESEncrypt(input_string => RPAD(vcText, 48, ' '), key_string => vcKey, encrypted_string => vcResult); RETURN vcResult; EXCEPTION WHEN OTHERS THEN RAISE; END ENCRYPT_TEXT; / CREATE OR REPLACE FUNCTION DECRYPT_TEXT(vcText IN VARCHAR2) RETURN VARCHAR2 IS vcResult VARCHAR2(2048); vcKey VARCHAR2(32); BEGIN vcResult := NULL; vcKey := '<KEY>'; dbms_obfuscation_toolkit.DESDecrypt(input_string => vcText, key_string => vcKey, decrypted_string => vcResult); RETURN trim(vcResult); EXCEPTION WHEN OTHERS THEN RAISE; END DECRYPT_TEXT; / CREATE OR REPLACE FUNCTION DROP_ALL_SCHEMA_OBJECTS RETURN NUMBER AS PRAGMA AUTONOMOUS_TRANSACTION; cursor c_get_objects is select object_type,'"'||object_name||'"'||decode(object_type,'TABLE',' cascade constraints purge',null) obj_name from user_objects where object_type in ('TABLE','VIEW','PACKAGE','SEQUENCE','SYNONYM','MATERIALIZED VIEW') order by object_type; cursor c_get_objects_type is select object_type, '"'||object_name||'"' obj_name from user_objects where object_type in ('TYPE'); BEGIN begin for object_rec in c_get_objects loop execute immediate ('drop '||object_rec.object_type||' ' ||object_rec.obj_name); end loop; for object_rec in c_get_objects_type loop begin execute immediate ('drop '||object_rec.object_type||' ' ||object_rec.obj_name); end; end loop; end; RETURN 0; END DROP_ALL_SCHEMA_OBJECTS; /
INSERT INTO user (id, username, password, name, email) VALUES (1, 'admin', '<PASSWORD>', '老卫', '<EMAIL>'); INSERT INTO user (id, username, password, name, email) VALUES (2, 'waylau', '<PASSWORD>', '<NAME>', '<EMAIL>'); INSERT INTO authority (id, name) VALUES (1, 'ROLE_ADMIN'); INSERT INTO authority (id, name) VALUES (2, 'ROLE_USER'); INSERT INTO user_authority (user_id, authority_id) VALUES (1, 1); INSERT INTO user_authority (user_id, authority_id) VALUES (2, 2);
/****** Object: Synonym [dbo].[S_DMS_V_DatasetFullDetails] ******/ CREATE SYNONYM [dbo].[S_DMS_V_DatasetFullDetails] FOR [DMS5].[dbo].[V_DatasetFullDetails] GO GRANT VIEW DEFINITION ON [dbo].[S_DMS_V_DatasetFullDetails] TO [DDL_Viewer] AS [dbo] GO
<reponame>lattwood/presto SELECT "i_item_desc" , "w_warehouse_name" , "d1"."d_week_seq" , "sum"((CASE WHEN ("p_promo_sk" IS NULL) THEN 1 ELSE 0 END)) "no_promo" , "sum"((CASE WHEN ("p_promo_sk" IS NOT NULL) THEN 1 ELSE 0 END)) "promo" , "count"(*) "total_cnt" FROM ((((((((((${database}.${schema}.catalog_sales INNER JOIN ${database}.${schema}.inventory ON ("cs_item_sk" = "inv_item_sk")) INNER JOIN ${database}.${schema}.warehouse ON ("w_warehouse_sk" = "inv_warehouse_sk")) INNER JOIN ${database}.${schema}.item ON ("i_item_sk" = "cs_item_sk")) INNER JOIN ${database}.${schema}.customer_demographics ON ("cs_bill_cdemo_sk" = "cd_demo_sk")) INNER JOIN ${database}.${schema}.household_demographics ON ("cs_bill_hdemo_sk" = "hd_demo_sk")) INNER JOIN ${database}.${schema}.date_dim d1 ON ("cs_sold_date_sk" = "d1"."d_date_sk")) INNER JOIN ${database}.${schema}.date_dim d2 ON ("inv_date_sk" = "d2"."d_date_sk")) INNER JOIN ${database}.${schema}.date_dim d3 ON ("cs_ship_date_sk" = "d3"."d_date_sk")) LEFT JOIN ${database}.${schema}.promotion ON ("cs_promo_sk" = "p_promo_sk")) LEFT JOIN ${database}.${schema}.catalog_returns ON ("cr_item_sk" = "cs_item_sk") AND ("cr_order_number" = "cs_order_number")) WHERE ("d1"."d_week_seq" = "d2"."d_week_seq") AND ("inv_quantity_on_hand" < "cs_quantity") AND ("d3"."d_date" > ("d1"."d_date" + INTERVAL '5' DAY)) AND ("hd_buy_potential" = '>10000 ') AND ("d1"."d_year" = 1999) AND ("cd_marital_status" = 'D') GROUP BY "i_item_desc", "w_warehouse_name", "d1"."d_week_seq" ORDER BY "total_cnt" DESC, "i_item_desc" ASC, "w_warehouse_name" ASC, "d1"."d_week_seq" ASC LIMIT 100
<reponame>FRRdev/J_Search -- upgrade -- ALTER TABLE "task" ALTER COLUMN "worker_id" DROP NOT NULL; -- downgrade -- ALTER TABLE "task" ALTER COLUMN "worker_id" SET NOT NULL;
<gh_stars>0 -- @testpoint:opengauss关键字is(保留),作为用户组名 --关键字不带引号-合理报错 drop group if exists is; create group is with password '<PASSWORD>'; --关键字带双引号-成功 drop group if exists "is"; create group "is" with password '<PASSWORD>'; --清理环境 drop group "is"; --关键字带单引号-合理报错 drop group if exists 'is'; create group 'is' with password '<PASSWORD>'; --关键字带反引号-合理报错 drop group if exists `is`; create group `is` with password '<PASSWORD>';
<filename>openGaussBase/testcase/SQL/INNERFUNC/Datetime/Opengauss_Function_Innerfunc_Multiplies_Case0014.sql -- @testpoint: 时间和日期操作符*,reltime乘以负数 drop table if exists test_date01; create table test_date01 (col1 reltime); insert into test_date01 values ('60'); select '-10' * col1 from test_date01; drop table if exists test_date01;
<reponame>juansdev/videos_favoritos CREATE DATABASE IF NOT EXISTS api_rest_symfony; USE api_rest_symfony; CREATE TABLE IF NOT EXISTS users( id INT(255) AUTO_INCREMENT NOT NULL, name VARCHAR(50) NOT NULL, surname VARCHAR(150), email VARCHAR(255), password VARCHAR(255) NOT NULL, role VARCHAR(255) NOT NULL, created_at DATETIME DEFAULT CURRENT_TIMESTAMP, CONSTRAINT pk_users PRIMARY KEY(id) )ENGINE=InnoDb; CREATE TABLE IF NOT EXISTS VIDEOS( id INT(255) AUTO_INCREMENT NOT NULL, user_id INT(255) NOT NULL, title VARCHAR(255) NOT NULL, description TEXT, url VARCHAR(255) NOT NULL, status VARCHAR(50), created_at DATETIME DEFAULT CURRENT_TIMESTAMP, updated_at DATETIME DEFAULT CURRENT_TIMESTAMP, CONSTRAINT pk_videos PRIMARY KEY(id), CONSTRAINT fk_video_user FOREIGN KEY(user_id) REFERENCES users(id) )ENGINE=InnoDB;
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.6.17 - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL Version: 9.4.0.5173 -- -------------------------------------------------------- /*!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 telematics.devices CREATE TABLE IF NOT EXISTS `devices` ( `id` int(11) NOT NULL AUTO_INCREMENT, `device_id` varchar(50) DEFAULT NULL, `device_label` varchar(200) DEFAULT NULL, `last_reported_date` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1; -- Dumping data for table telematics.devices: ~12 rows (approximately) DELETE FROM `devices`; /*!40000 ALTER TABLE `devices` DISABLE KEYS */; INSERT INTO `devices` (`id`, `device_id`, `device_label`, `last_reported_date`) VALUES (1, '001', 'Lexus Gen V navigation system', '2017-11-23 03:14:07'), (3, '002', 'Pictor Telematics', '2017-11-22 03:14:07'), (4, '003', 'GPS TRACKER GPS104', '2017-11-23 03:14:07'), (5, '004', 'WIRELESS TRACKER', '2001-11-11 01:50:00'), (6, '005', 'Lex Gen VI Nav', '2017-11-23 03:14:07'), (7, '006', 'adas', '2017-11-23 03:14:06'), (8, '007', 'sdsd', '2001-11-11 01:50:00'), (12, '009', 'GPS TRACKER GPS106', '2017-11-23 03:14:07'), (13, '010', 'GPS TRACKER GPS107', '2017-11-23 03:14:07'), (14, '011', 'GPS TRACKER GPS107', '2017-11-23 03:14:07'), (16, '011', 'GPS TRACKER GPS107', '2017-11-23 03:14:07'); /*!40000 ALTER TABLE `devices` 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 */;
USE department_db; SET FOREIGN_KEY_CHECKS=0; INSERT INTO departments (name) VALUES ('Support'), ('Hosting'), ('Training'), ('Programming'); INSERT INTO role (title,salary,department_id) VALUES ('Level 1 Tech', 30000,1), ('Level 2 Tech', 40000,1), ('Tech Lead', 70000, 1), ('Hosting Staff', 60000,2), ('Basic Trainer', 40000,3), ('Master Trainer', 50000,3), ('Developer Level 1',70000,4), ('Developer Level 2', 80000,4), ('Senior Developer', 100000,4); INSERT INTO employees (first_name,last_name,role_id,manager_id) VALUES ('Walter','White',3,null), ('Robert','VanScoy',1,1), ('Johnny','Sins',2,1), ('Scooby','Doo',4,1), ('Bob','Dole',6,null), ('Texas','Red',5,5), ('Huegh', 'Heffner',9,null), ('Chris','Newbie',7,7), ('Angel','GettinThereJr',8,7);
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 13, 2020 at 01:25 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `akademik` -- -- -------------------------------------------------------- -- -- Table structure for table `dt_prodi` -- CREATE TABLE `dt_prodi` ( `idprodi` int(11) NOT NULL, `kdprodi` int(6) NOT NULL, `nmprodi` varchar(70) NOT NULL, `akreditasi` enum('A','B','C','-') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `dt_prodi` -- INSERT INTO `dt_prodi` (`idprodi`, `kdprodi`, `nmprodi`, `akreditasi`) VALUES (1, 1, 'Akuntansi', 'A'), (2, 2, 'Agribisnis', 'B'), (3, 3, 'Manajement Informatika', 'B'); -- -------------------------------------------------------- -- -- Table structure for table `mahasiswa` -- CREATE TABLE `mahasiswa` ( `idmhs` int(11) NOT NULL, `npm` varchar(8) NOT NULL, `nama` varchar(50) NOT NULL, `idprodi` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `mahasiswa` -- INSERT INTO `mahasiswa` (`idmhs`, `npm`, `nama`, `idprodi`) VALUES (1, '18753034', '<NAME>', 3), (2, '18753022', '<NAME>', 3), (3, '18753030', 'I Komang Ag<NAME>', 3), (4, '18753003', 'Afriandi Selamatullah', 3), (5, '18753024', '<NAME>', 3), (6, '18753028', '<NAME>', 3); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `iduser` int(11) NOT NULL, `nama` varchar(50) NOT NULL, `username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(50) NOT NULL, `password` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `jenisuser` enum('0','1','','') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `level` enum('00','10','11','') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '00', `status` enum('F','T','','') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `idprodi` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `user` -- INSERT INTO `user` (`iduser`, `nama`, `username`, `email`, `password`, `jenisuser`, `level`, `status`, `idprodi`) VALUES (4, '<NAME>', 'alfath_ir', '<EMAIL>', '$2y$10$WQ6c3Ngh46ne.9Jri0Gin.xvhBsMlkoCntDw1YDv44oA2hba02Pq2', '1', '11', 'F', 0), (7, 'Super Admin', 'superadmin', '<EMAIL>', <PASSWORD>$10$HFN80CIgG704tKYuOwqwIufx3s4/nmlOPoZthn35w1zcNZl9/K/gq', '1', '11', 'F', 0), (8, 'Admin 1', 'admin1', '<EMAIL>', '$2y$10$LPiTUQA4ItNCwiJS5lr0tu7e2o3I9thFSyKfrMewONmcfqKiAF2em', '1', '10', 'F', 0); -- -- Indexes for dumped tables -- -- -- Indexes for table `dt_prodi` -- ALTER TABLE `dt_prodi` ADD PRIMARY KEY (`idprodi`), ADD UNIQUE KEY `kdprodi` (`kdprodi`); -- -- Indexes for table `mahasiswa` -- ALTER TABLE `mahasiswa` ADD PRIMARY KEY (`idmhs`), ADD UNIQUE KEY `npm` (`npm`), ADD KEY `idprodi` (`idprodi`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`iduser`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `dt_prodi` -- ALTER TABLE `dt_prodi` MODIFY `idprodi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `mahasiswa` -- ALTER TABLE `mahasiswa` MODIFY `idmhs` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=93; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `iduser` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; -- -- Constraints for dumped tables -- -- -- Constraints for table `mahasiswa` -- ALTER TABLE `mahasiswa` ADD CONSTRAINT `mahasiswa_ibfk_1` FOREIGN KEY (`idprodi`) REFERENCES `dt_prodi` (`idprodi`) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
DROP TABLE IF EXISTS explorer, weather, eventful; CREATE TABLE explorer ( id SERIAL PRIMARY KEY, city VARCHAR(255), formattedquery VARCHAR(255), lat NUMERIC(10, 7), long NUMERIC(10, 7) ); CREATE TABLE weather ( id SERIAL PRIMARY KEY, forecast VARCHAR(255), time VARCHAR(255) ); CREATE TABLE eventful ( id SERIAL PRIMARY KEY, link VARCHAR(255), date VARCHAR(255), summary VARCHAR(255) );
<filename>Scripts BD/20181106_ModificacionLlaveTablaComentarioLike.sql /* Se corrije error ortográfico en el nombre de columna */ -- ---------------------------- -- Tabla ComentarioLIke -- ---------------------------- ALTER TABLE public."ComentarioLike" RENAME "iIdCometario" TO "iIdComentario"; ALTER TABLE public."ComentarioLike" ALTER COLUMN "iIdComentario" TYPE integer (4);
INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Providers estimate that there have been 77 million tests done in the U.S. so far, which means hundreds of thousands of people are not getting the free testing promised by the administration. 🧐","10158963630334255",5,"null","null",44,33,66,"2020-09-13 17:00:14","https://www.dailykos.com/stories/2020/9/13/1976770/-That-free-COVID-19-testing-isn-t-free-to-many-and-Trump-isn-t-going-to-fix-that?detail=facebook",1,"DAILYKOS.COM That free COVID-19 testing isn't free to many, and Trump isn't going to fix that"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("The effects of the long-standing maternal health epidemic on our nation are compounded by the COVID-19 pandemic.","10158962901254255",5,"null","null",13,5,12,"2020-09-13 12:19:05","https://www.dailykos.com/stories/2020/9/10/1975948/-Black-immigrants-don-t-get-the-maternal-care-they-need-and-COVID-19-has-made-it-worse?detail=facebook",1,"DAILYKOS.COM Black immigrants don’t get the maternal care they need, and COVID-19 has made it worse"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("COVID-19 is ravaging the country, and we have no idea whether it will even be safe to vote in person come November. With Turnout2020, you can start calling swing state voters now—and help them request an absentee ballot. ☎️ No one should have to risk their health to exercise their right to vote. Sign up to volunteer TODAY. 👇","10158949169769255",5,"null","null",19,3,13,"2020-09-12 16:35:56","https://www.mobilize.us/turnout2020/event/292968/?utm_source=DK",1,"MOBILIZE.US Turnout Tuesday Call Event to Contact AZ Voters · Turnout2020"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Trump knew from the beginning just how deadly the coronavirus crisis could be. He did nothing. He intentionally lied to the American public. And now 190,000 Americans are dead. Chaos has a terrible price.","10158960812719255",5,"null","https://video.fnyc1-1.fna.fbcdn.net/v/t42.9040-2/119120814_642518616676953_3578083449714713267_n.mp4?_nc_cat=111&_nc_sid=985c63&efg=eyJ2ZW5jb2RlX3RhZyI6ImxlZ2FjeV9zZCJ9&_nc_ohc=ibH0PVo7rqsAX--TQRP&_nc_ht=video.fnyc1-1.fna&oh=dfda77a399334549350111b380eec589&oe=5F5FE77E",61,60,0,"2020-09-12 13:14:43","null",1,""); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Due to #COVID19, young people are needed to be poll workers this year more than ever. Sign up at www.powerthepolls.org #PowerThePolls (Power the Polls)","10158958758489255",5,"null","https://video.fnyc1-1.fna.fbcdn.net/v/t42.9040-2/118636945_2786397538349422_1340489402918675745_n.mp4?_nc_cat=100&_nc_sid=985c63&efg=eyJ2ZW5jb2RlX3RhZyI6ImxlZ2FjeV9zZCJ9&_nc_ohc=9yAKHul7yY0AX8Pn2WM&_nc_ht=video.fnyc1-1.fna&oh=bb37eb6c1f7f259bcfac0c49d9a067e8&oe=5F5FE7BC",45,0,0,"2020-09-11 15:57:07","http://www.powerthepolls.org/",1,""); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("It's a political victory for McConnell when he succeeds in preventing an actual relief bill when millions of people are losing their homes, are food insecure, are at risk of infection and death.","10158958502549255",5,"null","null",68,89,104,"2020-09-11 13:38:30","https://www.dailykos.com/stories/2020/9/11/1976685/-McConnell-plays-traditional-media-like-a-violin-millions-pay-the-price-with-no-COVID-19-relief?detail=facebook",1,"DAILYKOS.COM McConnell's political games stop COVID-19 relief, and the traditional media gets played"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Unlike almost anything else we’ve seen lately, this has a real chance of further damaging Trump among his dwindling base, and for sure, it puts a serious damper on his reelection efforts.","10158956458744255",5,"null","null",243,50,29,"2020-09-10 19:23:48","https://www.dailykos.com/stories/2020/9/9/1976204/-Three-reasons-why-Woodward-s-revelations-about-Trump-and-Civid-is-so-devastating-to-him?detail=facebook",1,"DAILYKOS.COM Three reasons why Woodward's revelations about Trump and COVID-19 are so devastating for him"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Trump knew from the beginning just how deadly the coronavirus crisis could be. He did nothing. He intentionally lied to the American public. And now 190,000 Americans are dead. Chaos has a terrible price.","10158956269194255",5,"null","https://video.fnyc1-1.fna.fbcdn.net/v/t42.9040-2/119120814_642518616676953_3578083449714713267_n.mp4?_nc_cat=111&_nc_sid=985c63&efg=eyJ2ZW5jb2RlX3RhZyI6ImxlZ2FjeV9zZCJ9&_nc_ohc=ibH0PVo7rqsAX--TQRP&_nc_ht=video.fnyc1-1.fna&oh=dfda77a399334549350111b380eec589&oe=5F5FE77E",101,62,0,"2020-09-10 17:40:57","null",1,""); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Democrats, and scientists, and the World Health Organization, and experts across the planet were all trying to warn people that the threat from COVID-19 was serious. But <NAME> kept saying “it will go away.”","10158955495699255",5,"null","null",72,61,76,"2020-09-10 12:08:04","https://www.dailykos.com/stories/2020/9/10/1976364/-Trump-admits-that-he-lied-to-the-American-people-over-and-over-about-the-danger-from-COVID-19?detail=facebook",1,"DAILYKOS.COM Trump confesses to lying in ways that denied Americans basic information for surviving COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Nothing has moved Trump’s job approval numbers in the last year except one thing: his COVID response.","10158955481384255",5,"null","null",283,92,63,"2020-09-10 11:16:05","https://www.dailykos.com/stories/2020/9/9/1976204/-Three-reasons-why-Woodward-s-revelations-about-Trump-and-Civid-is-so-devastating-to-him?detail=facebook",1,"DAILYKOS.COM Three reasons why Woodward's revelations about Trump and COVID-19 are so devastating for him"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Woodward failed to report Trump's knowledge of COVID early on but that doesn't dwarf the enormity of Trump's depravity and unfitness to serve.","10158952454194255",5,"null","null",210,66,66,"2020-09-09 18:00:56","https://www.dailykos.com/stories/2020/9/9/1976146/-New-book-puts-Trump-s-racism-on-full-display-and-it-s-on-tape-too?detail=facebook",1,"DAILYKOS.COM New book puts Trump's racism on full display (and it's on tape, too)"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("He knew since February, but hamstrung the country for 189K deaths and rising. The horror!","10158952535939255",5,"null","null",264,241,240,"2020-09-09 15:02:23","https://www.dailykos.com/stories/2020/9/9/1976133/-Trump-admits-he-deliberately-played-down-the-threat-of-COVID-19-despite-knowing-that-it-was-deadly?detail=facebook",1,"DAILYKOS.COM Woodward has Trump on tape admitting he deliberately underplayed the threat of COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Trump has utterly failed Americans during this crisis.","10158952041669255",5,"https://scontent.fnyc1-1.fna.fbcdn.net/v/t1.0-9/fr/cp0/e15/q65/119043899_10157830931855847_6580593780100163872_o.jpg?_nc_cat=100&_nc_sid=8024bb&_nc_ohc=5kAtvbdJvSEAX8dlSiQ&_nc_ht=scontent.fnyc1-1.fna&tp=14&oh=38b0ad3dfddd3ab932723e8a6dbb526b&oe=5F86A449","null",203,45,60,"2020-09-09 11:05:38","null",1,"Center For American Progress Action Fund September 9 at 6:48 AM · Americans like Deb and Allan have spent months sacrificing. Their daughter nearly died of coronavirus. They can’t hold their new grandbaby. And, because of Trump’s chaotic and incompetent leadership, there’s no end in sight. Trump has utterly failed Americans during this crisis."); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("In Trump's America aid will be whittled down and twisted to serve the reelection campaign first. 👊","10158952030694255",5,"null","null",25,39,39,"2020-09-09 10:34:25","https://www.dailykos.com/stories/2020/9/8/1975884/-McConnell-rushes-headlong-into-doing-absolutely-nothing-to-help-Americans-in-crisis?detail=facebook",1,"DAILYKOS.COM McConnell's answer to COVID-19 crisis? Poison pills and politics"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("COVID-19 is ravaging the country, and we have no idea whether it will even be safe to vote in person come November. With Turnout2020, you can start calling swing state voters now—and help them request an absentee ballot. ☎️ No one should have to risk their health to exercise their right to vote. Sign up to volunteer TODAY. 👇","10158931243409255",5,"null","null",26,5,5,"2020-09-08 20:08:34","https://www.mobilize.us/turnout2020/event/292968/?utm_source=DK",1,"MOBILIZE.US Turnout Tuesday Call Event to Contact AZ Voters · Turnout2020"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("We need an administration that works for all Americans not just some corporate powers.✔️","10158949627049255",5,"null","null",48,5,46,"2020-09-08 17:00:49","https://www.dailykos.com/stories/2020/9/8/1975874/-Employers-and-insurance-companies-are-trying-to-deny-COVID-19-workers-compensation-claims?detail=facebook",1,"DAILYKOS.COM Employers and insurance companies are trying to deny COVID-19 workers' compensation claims"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("In the last month, 19% of COVID cases can be traced to this rally.","10158949481314255",5,"null","null",391,435,611,"2020-09-08 15:41:21","https://www.dailykos.com/stories/2020/9/8/1975852/-Conservative-estimate-250-000-people-got-COVID-19-cost-12-billion-from-Sturgis-Motorcycle-Rally?detail=facebook",1,"DAILYKOS.COM Conservative estimate: 250,000 people got COVID-19, cost $12 billion from Sturgis Motorcycle Rally"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Take a look at how the rest of the country is doing. 👀👇","10158948901879255",5,"null","null",17,4,5,"2020-09-08 10:07:42","https://www.dailykos.com/stories/2020/9/7/1975113/-What-are-the-best-and-worst-states-to-work-in-during-the-coronavirus-pandemic?detail=facebook",1,"DAILYKOS.COM What are the best and worst states to work in during the coronavirus pandemic?"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("ICYMI: Latina mothers make up nearly half of the coronavirus cases among pregnant women.","10158943843314255",5,"null","null",20,7,14,"2020-09-06 13:58:51","https://www.dailykos.com/stories/2020/9/2/1974230/-Community-health-workers-are-a-lifeline-to-coronavirus-positive-pregnant-people?detail=facebook",1,"DAILYKOS.COM Community health workers are a ‘lifeline’ to coronavirus-positive pregnant people"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("COVID-19 is ravaging the country, and we have no idea whether it will even be safe to vote in person come November. With Turnout2020, you can start calling swing state voters now—and help them request an absentee ballot. ☎️ No one should have to risk their health to exercise their right to vote. Sign up to volunteer TODAY. 👇","10158931235899255",5,"null","null",18,1,9,"2020-09-04 14:30:17","https://www.mobilize.us/turnout2020/event/292968/?utm_source=DK",1,"MOBILIZE.US Turnout Tuesday Call Event to Contact AZ Voters · Turnout2020"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Trump’s comments came as the ticker at Johns Hopkins passed 185,000 American deaths from COVID-19.","10158938897949255",5,"null","null",57,71,102,"2020-09-04 14:07:38","https://www.dailykos.com/stories/2020/9/4/1974907/-Trump-mocks-Joe-Biden-for-caring-about-the-health-of-Americans?detail=facebook",1,"DAILYKOS.COM Trump mocks Joe Biden for caring about the health of Americans"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("😧","10158936810814255",5,"null","null",41,14,89,"2020-09-03 18:06:38","https://www.dailykos.com/stories/2020/9/3/1974739/-A-third-of-college-athletes-with-COVID-19-ended-up-with-heart-damage-Trump-still-wants-them-to-play?detail=facebook",1,"DAILYKOS.COM Big Ten medical director reveals that football player's hearts are getting sacked by COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("👀","10158936684584255",5,"null","null",187,73,235,"2020-09-03 17:08:30","https://www.dailykos.com/story/2020/9/3/1974754/-COVID-19-caused-more-police-officer-deaths-in-2020-than-all-other-causes-combined-Combined?detail=facebook",1,"DAILYKOS.COM COVID-19 caused more police officer deaths in 2020 than all other causes combined. Combined!"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("We need a working government, not a Trump wildcard.","10158934009644255",5,"null","null",65,18,14,"2020-09-02 20:00:31","https://www.dailykos.com/stories/2020/9/2/1974485/-White-House-no-longer-pretending-COVID-19-crisis-is-over-but-the-way-forward-on-funding-isn-t-clear?detail=facebook",1,"DAILYKOS.COM White House no longer pretending COVID-19 crisis is over, but the way forward on funding isn't clear"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("The dark belief of this conspiracy sees medical workers not as heroes but as grifters. 👎","10158933957584255",5,"null","null",68,231,202,"2020-09-02 19:00:10","https://www.dailykos.com/stories/2020/9/2/1974453/-Joni-Ernst-goes-QAnon-suggests-Iowa-healthcare-workers-are-bilking-the-system-with-COVID-19?detail=facebook",1,"DAILYKOS.COM <NAME> goes QAnon, suggests Iowa healthcare workers are bilking the system with COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("If you missed our live broadcast of Biden's speech and press event today, you can read about here. 👀👇","10158933886839255",5,"null","null",369,8,31,"2020-09-02 18:00:53","https://www.dailykos.com/stories/2020/9/2/1974454/--America-s-families-are-paying-the-price-for-Trump-s-failures-Biden-says-of-COVID-19-and-schools?detail=facebook",1,"DAILYKOS.COM 'America’s families are paying the price' for Trump's failures, Biden says of COVID-19 and schools"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("To rush something like this doesn't sound smart, it sounds political.","10158933744179255",5,"null","null",167,145,84,"2020-09-02 16:08:53","https://www.dailykos.com/stories/2020/9/2/1974393/-Trump-s-efforts-to-rush-a-vaccine-through-before-the-election-could-result-in-even-more-deaths?detail=facebook",1,"DAILYKOS.COM Rushing the release of a vaccine could be the worst part of Trump's COVID-19 disaster"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Remember, Trump takes no responsibility.","10158933574404255",5,"null","null",65,27,57,"2020-09-02 14:35:54","https://www.dailykos.com/stories/2020/9/2/1974147/-Campuses-nationwide-report-high-numbers-of-COVID-19-cases-within-a-month-of-reopening?detail=facebook",1,"DAILYKOS.COM Campuses nationwide report high numbers of COVID-19 cases within a month of reopening"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Watch Now!","10158933655504255",5,"null","https://scontent.fnyc1-1.fna.fbcdn.net/v/t66.36281-6/10000000_253090979068495_7596335058183155618_n.mp4?_nc_cat=102&_nc_sid=985c63&efg=eyJ2ZW5jb2RlX3RhZyI6Im9lcF9zZCJ9&_nc_ohc=9lGLx78oNKMAX9BEQlr&_nc_ht=scontent.fnyc1-1.fna&oh=991413253b52db18d4fd38bfda696bf4&oe=5F86FAC6",315,58,49,"2020-09-02 13:23:57","null",1,"<NAME> was live. September 2 at 10:21 AM · President Trump has failed to address COVID-19 — and now our students and educators are paying the price. Tune in as I discuss my plan to safely and effectively reopen schools:"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Most poll workers are over the age of 60 and the still uncontrolled spread of coronavirus means many don't feel comfortable serving this year. We NEED more poll workers to ensure our community’s votes are counted. Learn more about the important job of poll workers, who can be one (almost anyone!), and how you can help #PowerThePolls in November: https://www.powerthepolls.org/?source=kos","10158929321374255",5,"https://scontent.fnyc1-1.fna.fbcdn.net/v/t1.0-9/fr/cp0/e15/q65/118351510_10158929311069255_4768088386018728615_o.jpg?_nc_cat=100&_nc_sid=8024bb&_nc_ohc=SAGWD4t4UVgAX8u_fpN&_nc_ht=scontent.fnyc1-1.fna&tp=14&oh=d9ce6787160055979bf7ebc7ae893703&oe=5F83B010","null",61,2,0,"2020-09-01 14:25:00","https://www.powerthepolls.org/?source=kos",1,""); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("There's no plan and this chaos has a price.","10158930839109255",5,"null","https://video.fnyc1-1.fna.fbcdn.net/v/t42.9040-2/118715251_2743930552488764_1307551301901183515_n.mp4?_nc_cat=103&_nc_sid=985c63&efg=eyJ2ZW5jb2RlX3RhZyI6ImxlZ2FjeV9zZCJ9&_nc_ohc=XmMWxTHgGdIAX-jSKoo&_nc_ht=video.fnyc1-1.fna&oh=d6bc06d6f3d7f953286e283392db2bc2&oe=5F5FEB58",36,36,72,"2020-09-01 11:35:12","null",1,"Center For American Progress Action Fund September 1 at 6:00 AM · Trump still has NO PLAN to reopen schools safely. He’s given up on fighting this virus—and he’s leaving teachers and students to fend for themselves."); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("COVID-19 is ravaging the country, and we have no idea whether it will even be safe to vote in person come November. With Turnout2020, you can start calling swing state voters now—and help them request an absentee ballot. ☎️ No one should have to risk their health to exercise their right to vote. Sign up to volunteer TODAY. 👇","10158912430654255",5,"null","null",25,1,27,"2020-08-31 16:16:28","https://www.mobilize.us/turnout2020/event/292968/?utm_source=DK",1,"MOBILIZE.US Turnout Tuesday Call Event to Contact AZ Voters · Turnout2020"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("How long have classes been in session? Less than two weeks.","10158926355304255",5,"null","null",63,23,74,"2020-08-30 16:40:59","https://www.dailykos.com/stories/2020/8/30/1973531/-As-schools-reopen-amid-pandemic-major-university-reports-more-than-1-000-positive-COVID-19-cases?detail=facebook",1,"DAILYKOS.COM As schools reopen amid pandemic, major university reports more than 1,000 positive COVID-19 cases"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Just look at the photo of the audience and play count the masks. How many can you spot?","10158923601724255",5,"null","null",445,236,240,"2020-08-29 14:11:14","https://www.dailykos.com/stories/2020/8/28/1973040/-Republicans-see-immediate-post-convention-bounce-in-COVID-cases-attendees-start-testing-positive?detail=facebook",1,"DAILYKOS.COM Republicans see immediate post-convention bounce...in COVID cases: Attendees start testing positive"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("COVID-19 is ravaging the country, and we have no idea whether it will even be safe to vote in person come November. With Turnout2020, you can start calling swing state voters now—and help them request an absentee ballot. ☎️ No one should have to risk their health to exercise their right to vote. Sign up to volunteer TODAY. 👇","10158912421559255",5,"null","null",20,3,9,"2020-08-27 09:16:00","https://www.mobilize.us/turnout2020/event/292968/?utm_source=DK",1,"MOBILIZE.US Turnout Tuesday Call Event to Contact AZ Voters · Turnout2020"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("R E P E A T: Trump is not the world's hero that saved us from COVID.","10158914732329255",5,"https://scontent.fnyc1-1.fna.fbcdn.net/v/t1.0-9/fr/cp0/e15/q65/118349927_10157795556545847_6880164126882844852_o.jpg?_nc_cat=102&_nc_sid=8024bb&_nc_ohc=RZrmhZwZYvAAX8-\-\yqG&_nc_ht=scontent.fnyc1-1.fna&tp=14&oh=0aa14ed8997fe7c0bad8997fd7a3f85a&oe=5F8560C9","null",229,91,646,"2020-08-26 12:27:53","null",1,"Center For American Progress Action Fund August 26 at 6:36 AM · Other countries have leaders who listen to public health experts. We have Donald Trump—and more coronavirus deaths than any other country on Earth."); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Behind getting back to normal is the reminder that things aren't back to normal.","10158914740309255",5,"null","null",53,29,64,"2020-08-26 12:05:26","https://www.dailykos.com/stories/2020/8/25/1972133/-Less-than-a-week-into-classes-major-university-reports-more-than-500-COVID-19-cases?detail=facebook",1,"DAILYKOS.COM Less than a week into classes, major university reports more than 500 COVID-19 cases"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("This logjam for liability only cost $31K in campaign contributions to Mitch.","10158913556559255",5,"null","null",29,34,60,"2020-08-26 09:00:03","https://www.dailykos.com/stories/2020/8/25/1972180/-Big-surprise-The-Chamber-of-Commerce-directed-McConnell-s-COVID-19-liability-reform-push?detail=facebook",1,"DAILYKOS.COM Chamber of Commerce crows about its role in the logjam in COVID-19 relief negotiations"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("The media should not sit quietly by as Trump claims to be the hero of the crisis he created. 🎤 MIC DROP","10158912538894255",5,"null","null",123,17,76,"2020-08-25 14:01:33","https://www.dailykos.com/stories/2020/8/25/1972122/-The-biggest-lies-of-the-Trump-Party-convention-are-all-about-COVID-19?detail=facebook",1,"DAILYKOS.COM The biggest lies of the Trump Party convention are all about COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Expectations for lying were met and gaslighting on COVID were exceeded. 🤛","10158912308219255",5,"null","null",169,165,103,"2020-08-25 12:00:17","https://www.dailykos.com/stories/2020/8/25/1972096/-Ominous-RNC-opens-with-a-night-of-lies-screaming-and-apocalyptic-warnings-of-doom?detail=facebook",1,"DAILYKOS.COM Ominous RNC opens with a night of lies, screaming, and apocalyptic warnings of doom"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("We're old enough to remember when the magical healing properties of summer (???) was supposed to end COVID-19.","10158892272999255",5,"null","null",17,66,67,"2020-08-17 15:23:08","https://www.dailykos.com/stories/2020/8/17/1970011/-Trump-is-boosting-another-miracle-COVID-19-cure-this-one-brought-to-him-by-the-My-Pillow-guy?detail=facebook",1,"DAILYKOS.COM Trump is boosting another miracle COVID-19 'cure,' this one brought to him by the My Pillow guy"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("One person, one church service, almost 100 people infected. 😱","10158866405329255",5,"null","null",42,33,117,"2020-08-07 13:35:25","https://www.dailykos.com/stories/2020/8/6/1967049/--Spread-like-wildfire-Gov-DeWine-explains-how-Ohio-churchgoer-spread-virus-to-almost-100-people?detail=facebook",1,"DAILYKOS.COM 'Spread like wildfire': Gov. DeWine explains how Ohio churchgoer spread virus to almost 100 people"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Non-white American children who contract COVID-19 are dying at a higher rate than white American children.","10158863786464255",5,"null","null",26,22,102,"2020-08-06 15:00:36","https://www.dailykos.com/stories/2020/8/6/1967093/-Black-American-children-are-dying-of-COVID-19-at-higher-rates-than-white-children?detail=facebook",1,"DAILYKOS.COM Black American children are dying of COVID-19 at higher rates than white children"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("It took just days after schools opened in Corinth, Mississippi, for the first student to test positive for COVID-19, and about a week for 116 students to be told to quarantine.","10158863299739255",5,"null","null",88,68,218,"2020-08-06 12:17:56","https://www.dailykos.com/stories/2020/8/6/1967030/-116-students-in-one-Mississippi-town-quarantined-after-COVID-19-outbreak?detail=facebook",1,"DAILYKOS.COM 116 students in one Mississippi town quarantined after COVID-19 outbreak"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Clock is ticking before the August recess. ⏰","10158858109714255",5,"null","null",187,15,14,"2020-08-04 16:30:58","https://www.dailykos.com/campaigns/letters/sign-and-send-the-petition-to-senate-democrats-stay-strong-on-covid-19-relief?detail=facebook",1,"DAILYKOS.COM Sign and send the petition to Senate Democrats: Stay strong on COVID-19 relief"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("COVID-19 is ravaging the country, and we have no idea whether it will even be safe to vote in person come November. With Turnout2020, you can start calling swing state voters now—and help them request an absentee ballot. No one should have to risk their health to exercise their right to vote Sign up to volunteer today.","10158844105309255",5,"null","null",54,7,21,"2020-08-01 15:00:34","https://www.mobilize.us/turnout2020/event/292968/?utm_source=DK",1,"MOBILIZE.US Turnout Tuesday Call Event: Calling Arizona · Turnout2020"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Isaias has shutdown COVID testing until Tuesday next week, but storm kits with PPE are being prepared in case evacuations are ordered.","10158849278659255",5,"null","null",52,13,29,"2020-08-01 12:00:39","https://www.dailykos.com/stories/2020/8/1/1965674/-Hurricane-Isaias-heads-for-Florida-as-shelters-work-to-provide-protection-from-storm-and-COVID-19?detail=facebook",1,"DAILYKOS.COM Hurricane Isaias heads for Florida as shelters work to provide protection from storm and COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("This is unbelievable. 😡","10158827212509255",5,"null","null",213,135,257,"2020-07-24 14:30:49","https://www.dailykos.com/stories/2020/7/23/1963294/-White-House-claims-Stephen-Miller-s-grandma-recovered-from-COVID-19-Problem-is-she-died-from-it?detail=facebook",1,"DAILYKOS.COM What does the White House do when one of their own dies from COVID-19? Lie, of course"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("The U.S. just passed 4 million confirmed coronavirus cases. Make no mistake: It didn’t have to get this bad. Trump’s chaos has a price.","10158827176014255",5,"null","https://video.fnyc1-1.fna.fbcdn.net/v/t42.9040-2/116250988_650915285769679_7776465488629414088_n.mp4?_nc_cat=109&_nc_sid=985c63&efg=eyJ2ZW5jb2RlX3RhZyI6ImxlZ2FjeV9zZCJ9&_nc_ohc=TZcHulhDOQIAX8-zDD0&_nc_ht=video.fnyc1-1.fna&oh=477cf0eee7756c07ed828b636bc009c7&oe=5F5FEAC7",53,30,0,"2020-07-24 11:44:20","null",1,""); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Allocation of money and resources are part of the mix, but read on for more. 👀 👇","10158790994779255",5,"null","null",80,17,59,"2020-07-11 18:02:13","https://www.dailykos.com/stories/2020/7/11/1959907/-A-plasma-injection-could-protect-healthcare-workers-from-COVID-19-so-why-aren-t-they-getting-it?detail=facebook",1,"DAILYKOS.COM A plasma injection could protect healthcare workers from COVID-19 ... so why aren't they getting it?"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("So schools are safe enough for our kids, but immigrants are a danger, not COVID for everyone. Got it. ✔️","10158790540454255",5,"null","null",673,20,91,"2020-07-11 16:00:09","https://www.dailykos.com/stories/2020/7/10/1959702/-California-is-first-state-to-sue-Trump-admin-over-dangerous-attack-on-international-students?detail=facebook",1,"DAILYKOS.COM California is first state to sue Trump admin over dangerous attack on international students"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Sweden’s great “experiment” didn’t work at all. In fact, it backfired.","10158788834659255",5,"null","null",640,79,400,"2020-07-10 17:31:12","https://www.dailykos.com/stories/2020/7/9/1958933/-Those-right-wingers-who-praised-Sweden-s-response-to-Covid-19-are-looking-pretty-stupid-now?detail=facebook",1,"DAILYKOS.COM Those right-wingers who praised Sweden's response to COVID-19 are looking pretty stupid now"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("He really struggles with the fundamentals...","10158785200749255",5,"null","null",91,79,56,"2020-07-09 11:29:58","https://www.dailykos.com/stories/2020/7/9/1959264/-Trump-can-t-figure-out-why-Covid-ravaged-America-shouldn-t-open-its-schools?detail=facebook",1,"DAILYKOS.COM Trump can't figure out why coronavirus-ravaged America shouldn't open its schools"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Trump can only sell his economic fantasy by distracting us from the deadly COVID reality. 💯","10158778175954255",5,"null","null",508,106,435,"2020-07-07 11:07:49","https://www.dailykos.com/stories/2020/7/6/1958473/-Millions-of-Americans-are-about-to-find-out-just-how-badly-they-ve-been-screwed-by-Trump-and-the-GOP?detail=facebook",1,"DAILYKOS.COM Millions of Americans are about to find out just how badly they've been screwed by Trump and the GOP"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("The levels of government with the most resources and options are consistently passing the responsibility for handling this catastrophe on to levels of government where both funding and authority are weakest.","10158742202524255",5,"null","null",535,76,238,"2020-06-26 11:32:19","https://www.dailykos.com/stories/2020/6/26/1956094/-COVID-19-isn-t-just-a-health-disaster-it-s-a-catastrophic-failure-of-leadership?detail=facebook",1,"DAILYKOS.COM COVID-19 isn't just a health disaster, it's a catastrophic failure of leadership"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("In campaign mode hate trumps COVID-19 in America. 'Is our children learning?' 😡","10158736048909255",5,"null","null",69,286,111,"2020-06-24 16:00:43","https://www.dailykos.com/stories/2020/6/24/1955591/-Trump-replaces-lock-her-up-with-lock-them-up-at-Arizona-rally?detail=facebook",1,"DAILYKOS.COM Trump replaces 'lock her up' with 'lock them up' at Arizona rally"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Slowing testing is no joke for a leaderless country battling corona. 👋","10158732958104255",5,"null","null",79,94,75,"2020-06-23 13:00:30","https://www.dailykos.com/stories/2020/6/23/1955318/-Donald-Trump-confirms-that-he-tried-to-slow-down-testing-for-COVID-19?detail=facebook",1,"DAILYKOS.COM Donald Trump confirms that he tried to slow down testing for COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Florida man.","10158720587189255",5,"null","null",95,321,253,"2020-06-19 16:30:20","https://www.dailykos.com/stories/2020/6/19/1954410/-DeSantis-falsely-blames-rise-in-COVID-19-cases-in-Florida-on-overwhelmingly-Hispanic-workers?detail=facebook",1,"DAILYKOS.COM DeSantis falsely blames rise in COVID-19 cases in Florida on ‘overwhelmingly Hispanic’ workers"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Pence is OK with people getting sick as long as we have hospitals.","10158711349209255",5,"null","null",234,566,813,"2020-06-17 11:00:23","https://www.dailykos.com/stories/2020/6/16/1953633/-Mike-Pence-explains-how-COVID-19-would-go-away-if-you-would-just-stop-reading-the-news?detail=facebook",1,"DAILYKOS.COM Mike Pence explains how COVID-19 would go away if you would just stop reading the news"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Trump likes big numbers and the COVID numbers continue to rise. 🔥","10158710394114255",5,"null","null",178,283,147,"2020-06-16 12:00:04","https://www.dailykos.com/stories/2020/6/16/1953526/-Trump-is-determined-to-have-his-rally-and-his-convention-no-matter-who-has-to-die-for-it?detail=facebook",1,"DAILYKOS.COM Trump is determined to have his rally and his convention, no matter who has to die for it"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Don’t worry… the pandemic’s over, right? (It's not. Not even a little. Not even close.)","10158698677754255",5,"null","null",87,163,143,"2020-06-12 11:23:50","https://www.dailykos.com/stories/2020/6/11/1952494/-Trump-campaign-is-so-excited-to-hold-rallies-it-would-like-you-all-to-literally-sign-COVID-19-waiver?detail=facebook",1,"DAILYKOS.COM To get tickets to Trump's COVID rally you'll need to sign an actual COVID waiver"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("*sigh*","10158697613984255",5,"null","null",28,27,11,"2020-06-12 08:00:28","https://www.dailykos.com/stories/2020/6/11/1952350/-As-coronavirus-rages-on-Disneyland-sets-reopening-date-for-the-middle-of-July?detail=facebook",1,"DAILYKOS.COM As coronavirus rages on, Disneyland sets reopening date for the middle of July"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Releasing them from detention would have been better.","10158689731674255",5,"null","null",60,12,37,"2020-06-09 18:30:05","https://www.dailykos.com/stories/2020/6/9/1951780/-A-judge-had-to-order-ICE-to-do-the-bare-minimum-to-protect-detainees-against-COVID-19?detail=facebook",1,"DAILYKOS.COM A judge had to order ICE to do the bare minimum to protect detainees against COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("With all the protesting, did Trump forget to mention coronavirus?","10158679473769255",5,"null","null",64,160,95,"2020-06-07 11:03:56","https://www.dailykos.com/stories/2020/5/31/1949235/-Trump-adviser-He-s-been-over-coronavirus-for-a-long-time?detail=facebook",1,"DAILYKOS.COM Trump adviser: 'He's been over coronavirus for a long time'"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Just in case you didn't think there was enough going on.","10158653059599255",5,"null","null",39,54,137,"2020-05-29 16:28:49","https://www.dailykos.com/stories/2020/5/29/1948598/-Trump-exploiting-COVID-19-crisis-to-grab-land-on-the-border-for-his-wall?detail=facebook",1,"DAILYKOS.COM Trump exploiting COVID-19 crisis to grab land on the border for his wall"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Daily Kos and Prism are thrilled to host a live-streamed panel, Abortion Access in the Age of COVID-19, this Friday, May 29 at 3 PM EST. We have a stellar lineup of abortion access and reproductive justice advocates for Friday’s panel. Daily Kos' Campaign Manager <NAME>, who focuses on abortion rights and access, will be joined on the panel by <NAME> and <NAME>, authors of Obstacle Course: The Everyday Struggle to Get an Abortion in America, <NAME>, Executive Director of the Texas Equal Access Fund, Dr. <NAME>, an abortion provider, and <NAME>, Gender Justice Staff Reporter at Prism. While the outlook on abortion rights and access is bleak, we won’t just be discussing obstacles and barriers. Our panel will also speak to patients’ resilience and tenacity, providers’ brilliance and compassion, and the necessary work of trusted, community-rooted organizations like abortion funds that help people get the funding, transportation, and child care they need in order to access care. RSVP TODAY! https://www.facebook.com/events/706431180154626","10158650170489255",5,"https://scontent.fnyc1-1.fna.fbcdn.net/v/t1.0-9/101098634_10158650176849255_5700737545411756032_o.png?_nc_cat=109&_nc_sid=8024bb&_nc_ohc=o7kCVQfjoMIAX_EHXvl&_nc_ht=scontent.fnyc1-1.fna&oh=e298adca3b67fd8872a8cb54c185f66a&oe=5F864FBF","null",49,1,0,"2020-05-28 17:54:28","null",1,""); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Abortion Access in the Age of COVID-19","3056514621091554",5,"null","https://scontent.fnyc1-1.fna.fbcdn.net/v/t66.36281-6/10000000_311187886809529_4897351339135409809_n.mp4?_nc_cat=106&_nc_sid=985c63&efg=eyJ2ZW5jb2RlX3RhZyI6Im9lcF9zZCJ9&_nc_ohc=Wd6f59FcoxwAX-rdSRD&_nc_ht=scontent.fnyc1-1.fna&oh=abdbd54c399de3f786496265e9064318&oe=5F84A996",70,52,16,"2020-05-26 14:53:46","null",1,""); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Mark this moment and remember, Trump golfed and Pence predicted this would all be over by Memorial Day. ✔️","10158643352634255",5,"null","null",59,39,152,"2020-05-26 13:35:28","https://www.dailykos.com/stories/2020/5/26/1947750/-100-000-Americans-have-died-from-COVID-19?detail=facebook",1,"DAILYKOS.COM 100,000 Americans have died from COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("The former state legislator was angry because the store had reduced hours due to the pandemic, but that's only the beginning of this story.","10158634993764255",5,"null","null",131,88,166,"2020-05-23 22:00:28","https://www.dailykos.com/stories/2020/5/23/1947216/-Twitter-has-a-field-day-after-Republican-candidate-rage-tweets-Pottery-Barn-over-COVID-19-policies?detail=facebook",1,"DAILYKOS.COM Twitter erupts after failed Republican candidate rage-tweets Pottery Barn over COVID-19 policies"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Let's put this myth to rest. 👇","10158633480144255",5,"null","null",1825,268,621,"2020-05-23 16:00:01","https://www.dailykos.com/stories/2020/5/23/1946499/-If-COVID-19-teaches-us-anything-it-s-that-government-should-not-and-cannot-be-run-like-a-business?detail=facebook",1,"DAILYKOS.COM If COVID-19 teaches us anything, it's that government should not and cannot be run like a business"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("No one needs to microchip you. We are all walking microchips.","10158630736039255",5,"null","null",183,310,401,"2020-05-22 14:38:36","https://www.dailykos.com/stories/2020/5/22/1946964/-New-poll-shows-Fox-News-fans-believe-Bill-Gates-wants-to-microchip-them-with-a-COVID-19-vaccine?detail=facebook",1,"DAILYKOS.COM New poll shows Fox News fans believe Bill Gates wants to microchip them with a COVID-19 vaccine"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("The novel coronavirus continues to disrupt aspects of life as it spreads across the country, but it seems to have a compounding effect on racism and discrimination.","10158628256109255",5,"null","null",17,26,41,"2020-05-21 18:25:20","https://www.dailykos.com/stories/2020/5/21/1946697/-A-white-woman-attacked-a-Black-girl-then-offered-her-cookies-as-an-apology?detail=facebook",1,"DAILYKOS.COM A white woman attacked a Black girl then offered her cookies as an apology"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Years of weakening public services and being poor make certain Americans exceptionally vulnerable because that is our system. But indifference to the poor isn't inoculation either.","10158619228239255",5,"null","null",34,8,28,"2020-05-19 11:30:34","https://www.dailykos.com/stories/2020/5/18/1945952/-Chronic-health-conditions-may-make-COVID-19-more-dangerous-in-some-places-than-others?detail=facebook",1,"DAILYKOS.COM Chronic health conditions may make COVID-19 more dangerous in some places than others"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("More than 4,000 physicians have signed on to a letter urging ICE to release more detainees in order to 'avoid preventable deaths.'","10158619162044255",5,"null","null",96,12,44,"2020-05-19 09:30:39","https://www.dailykos.com/stories/2020/5/18/1946010/--Sitting-ducks-ICE-detention-centers-become-vectors-for-infection?detail=facebook",1,"DAILYKOS.COM 'Sitting ducks': ICE detention centers become vectors for coronavirus infections"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Unbelievable.","10158618568944255",5,"null","null",15,31,24,"2020-05-18 17:33:39","https://www.dailykos.com/stories/2020/5/18/1945947/-Alaska-lawmaker-offers-up-non-apology-after-likening-COVID-19-screening-sticker-to-Nazi-rule?detail=facebook",1,"DAILYKOS.COM Alaska lawmaker offers up non-apology after likening COVID-19 screening sticker to Nazi rule"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Tag a couple of friends who will appreciate this excellent resource 👇👏","10158615339329255",5,"null","null",49,1,50,"2020-05-17 17:00:45","https://www.dailykos.com/stories/2020/5/14/1945117/-Native-American-communities-are-at-grave-risk-of-getting-COVID-19-Here-s-how-you-can-help?detail=facebook",1,"DAILYKOS.COM Native American communities are at grave risk of getting COVID-19. Here’s how you can help"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("If you value your local restaurants and want to see them survive beyond the coronavirus crisis let your representatives know that restaurants need to be protected from this predatory oligopoly.","10158611698284255",5,"null","null",71,13,35,"2020-05-16 18:00:32","https://www.dailykos.com/stories/2020/5/11/1944218/-GrubHub-and-Uber-Eats-lob-threats-as-cities-move-to-regulate-delivery-app-fees?detail=facebook",1,"DAILYKOS.COM GrubHub and Uber Eats lob threats as cities move to regulate delivery app fees"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Will the economy come back even if we put all our lives on the line by reopening? Well...","10158608513204255",5,"null","null",81,29,32,"2020-05-15 13:47:32","https://www.dailykos.com/stories/2020/5/15/1944960/-After-COVID-19-closures-the-economy-is-returning-with-a-whimper-not-a-roar?detail=facebook",1,"DAILYKOS.COM After COVID-19 closures, the economy is returning with a whimper, not a roar"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Only Gov. <NAME> is doing worse than Trump, but mostly Democratic governors who acted decisively in response to coronavirus receive bipartisan support.","10158598827719255",5,"null","null",309,22,79,"2020-05-12 17:30:47","https://www.dailykos.com/stories/2020/5/12/1944566/-Trump-s-abysmal-coronavirus-response-is-making-most-governors-look-pretty-damn-good-by-comparison?detail=facebook",1,"DAILYKOS.COM Trump's abysmal coronavirus response is making most governors look pretty damn good by comparison"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Republican math overlooks where the bucks come from when they want the bucks to stop going somewhere else.","10158587760904255",5,"null","null",37,38,34,"2020-05-12 11:35:20","https://www.dailykos.com/stories/2020/5/8/1943607/-McSally-says-next-COVID-bill-shouldn-t-be-cash-cow-for-mismanaged-cities-as-Arizona-cities-suffer?detail=facebook",1,"DAILYKOS.COM McSally says next COVID bill shouldn't be 'cash cow' for other cities as Arizona cities suffer"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("As George Orwell’s 1984 has taught us, simple bold lettering is how you drive home propaganda.","10158596188294255",5,"null","null",274,354,620,"2020-05-11 19:30:58","https://www.dailykos.com/stories/2020/5/11/1944335/-Trump-unveiled-new-props-at-bizarre-COVID-19-briefing-that-spurred-instant-memes?detail=facebook",1,"DAILYKOS.COM Trump unveiled new props at bizarre COVID-19 briefing that spurred instant memes"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("😔😔","10158591454779255",5,"null","null",48,33,87,"2020-05-10 14:00:20","https://www.dailykos.com/stories/2020/5/10/1944029/-Cluster-of-COVID-19-cases-traced-to-birthday-party-of-friends-extended-family-in-California?detail=facebook",1,"DAILYKOS.COM Cluster of COVID-19 cases traced to birthday party of friends, extended family in California"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Here's a quick list of the week's COVID-19 news.","10158587769989255",5,"null","null",84,226,60,"2020-05-09 13:00:52","https://www.dailykos.com/stories/2020/5/8/1943678/-COVID-19-news-Trump-and-Pence-to-be-tested-daily-as-another-White-House-aide-tests-positive?detail=facebook",1,"DAILYKOS.COM COVID-19 news: Trump and Pence to be tested daily as another White House aide tests positive"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("The choices are not stay at home or resort to violence.","10158587482019255",5,"null","null",23,16,18,"2020-05-09 12:30:53","https://www.dailykos.com/stories/2020/5/7/1943306/-Shooting-over-closed-McDonald-s-dining-room-signals-tension-about-opening-CEO-says-of-COVID-19?detail=facebook",1,"DAILYKOS.COM Shooting over closed McDonald's dining room signals 'tension about opening,' CEO says of COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Trump's harsh immigration policies stoked private prison boom in which COVID-19 was allowed to fester.","10158577781614255",5,"null","null",34,6,55,"2020-05-07 08:30:47","https://www.dailykos.com/stories/2020/5/6/1943071/-Blockbuster-report-details-how-immigration-detention-expansion-set-stage-for-a-COVID-19-crisis?detail=facebook",1,"DAILYKOS.COM Blockbuster report details how immigration detention expansion set stage for a COVID-19 crisis"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Here's more news of incompetence from the 'Live and Let Die' camp.","10158577616499255",5,"null","null",47,59,277,"2020-05-06 20:02:31","https://www.dailykos.com/stories/2020/5/6/1943039/-Instead-of-supplies-to-fight-COVID-19-Native-American-health-center-says-it-received-body-bags?detail=facebook",1,"DAILYKOS.COM Instead of supplies to fight COVID-19, Native American health center says it received body bags"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("COVID-19 reveals Pacific Islanders need more representation in AAPI so their minority issues aren't overlooked.","10158573002669255",5,"null","null",68,3,12,"2020-05-05 16:30:52","https://www.dailykos.com/stories/2020/5/4/1942475/-AAPI-solidarity-means-acknowledging-how-Pacific-Islanders-are-often-left-out?detail=facebook",1,"DAILYKOS.COM AAPI solidarity means acknowledging how Pacific Islanders are often left out"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("The very stable genius is at it again.","10158570341729255",5,"null","null",74,157,503,"2020-05-04 17:37:12","https://www.dailykos.com/stories/2020/5/4/1942505/-Trump-takes-Social-Security-hostage-in-his-latest-COVID-19-stimulus-demand?detail=facebook",1,"DAILYKOS.COM Trump takes Social Security hostage in his latest COVID-19 stimulus demand"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("'I quit in dismay at Amazon firing whistleblowers who were making noise about warehouse employees frightened of Covid-19.' 🔥","10158569543834255",5,"null","null",520,22,110,"2020-05-04 13:20:43","https://www.dailykos.com/stories/2020/5/4/1942491/-Amazon-Vice-President-quits-over-company-s-firing-of-pandemic-whistleblowers?detail=facebook",1,"DAILYKOS.COM Amazon vice president quits over company's firing of pandemic whistleblowers"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("🤨🤨","10158566832769255",5,"null","null",103,483,293,"2020-05-03 19:00:15","https://www.dailykos.com/stories/2020/05/03/1942339/-Trump-adviser-Kudlow-again-says-no-one-could-have-predicted-a-virus-would-spread-virally?detail=facebook",1,"DAILYKOS.COM Trump adviser Kudlow again says 'no one' could have predicted a virus would spread virally"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("How can we help ensure every voter can vote safely and securely in 2020, without putting their health at risk due to COVID19? Hear from Experts at Vote at Home and Verified Voting to learn how vote by mail and early vote could help make our elections safer and to discuss what kinds of security concerns we should pay attention to as states make major changes in voting in response to the pandemic.","522675391749897",5,"null","https://video.fnyc1-1.fna.fbcdn.net/v/t42.26565-2/10000000_295005688434427_1071280620017125593_n.mp4?_nc_cat=101&_nc_sid=985c63&efg=eyJ2ZW5jb2RlX3RhZyI6Im9lcF9zZCJ9&_nc_ohc=kth5k8fFqRQAX-469f5&_nc_ht=video.fnyc1-1.fna&oh=734c106864c07258edf8e175f714e5a9&oe=5F5FEFDF",127,36,29,"2020-04-30 20:10:31","null",1,""); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("There are not enough tests. Don't believe otherwise.","10158550977424255",5,"null","null",80,55,261,"2020-04-29 15:00:02","https://www.dailykos.com/stories/2020/4/28/1941095/-Black-New-York-teacher-tried-3-times-to-get-COVID-19-testing-but-was-turned-away-She-died?detail=facebook",1,"DAILYKOS.COM Black New York teacher tried 3 times to get COVID-19 testing but was turned away. She died."); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("⚠️ This is ill-advised and people will get sick.","10158550824064255",5,"null","null",59,106,165,"2020-04-29 13:00:56","https://www.dailykos.com/stories/2020/4/27/1940786/-Just-one-day-after-Tennessee-reports-biggest-coronavirus-jump-restaurants-reopen?detail=facebook",1,"DAILYKOS.COM Just one day after Tennessee reports biggest coronavirus jump, restaurants reopen"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Trump's attempts to gain traction by shifting focus of blame to governors isn't working but it is being picked up by his rabid base.","10158547199204255",5,"null","null",141,24,51,"2020-04-28 14:00:55","https://www.dailykos.com/stories/2020/4/28/1940075/-Data-shows-Trump-s-efforts-to-weaponize-COVID-against-governors-harming-him-more-than-the-governors?detail=facebook",1,"DAILYKOS.COM Data shows Trump's efforts to weaponize COVID against governors harming him more than the governors"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Trump's excuses are worse than the dog ate my homework. 👎","10158545631059255",5,"null","null",153,112,256,"2020-04-28 11:08:48","https://www.dailykos.com/stories/2020/4/27/1940892/-Trump-had-more-than-a-dozen-briefings-on-coronavirus-threat-in-January-and-February?detail=facebook",1,"DAILYKOS.COM Trump was given more than a dozen briefings on coronavirus threat in January and February"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("The coronavirus has been particularly deadly for Black and brown communities across the U.S., prompting a call-to-action by organizers. Here is a list of their demands.","10158535248554255",5,"null","null",129,6,26,"2020-04-25 13:30:12","https://www.dailykos.com/stories/2020/4/24/1939874/-Oakland-organizers-reveal-Black-New-Deal-demands-to-help-Black-residents-during-pandemic?detail=facebook",1,"DAILYKOS.COM Oakland organizers reveal ‘Black New Deal’ demands to help Black residents during pandemic"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Roughly 500 ICE detainees continue to remain jailed as the COVID-19 numbers rise, but rather than reducing numbers, ICE wants to reduce transparency.","10158535247144255",5,"null","null",17,17,41,"2020-04-25 10:30:29","https://www.dailykos.com/stories/2020/04/24/1940042/-ICE-is-blocking-a-New-Jersey-jail-from-releasing-immigrant-detainee-testing-numbers?detail=facebook",1,"DAILYKOS.COM ICE is blocking a New Jersey jail from releasing immigrant detainee testing numbers"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("50,000 Americans have died of COVID-19.","10158533200604255",5,"null","null",166,156,221,"2020-04-24 18:59:42","https://www.dailykos.com/stories/2020/4/24/1940065/-Donald-Trump-is-spending-a-deadly-pandemic-watching-TV-and-stewing-over-negative-coverage?detail=facebook",1,"DAILYKOS.COM Donald Trump is spending a deadly pandemic watching TV and stewing over negative coverage"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Caputo wrote: “Are you kidding? Soros’s political agenda REQUIRES a pandemic.”","10158531417529255",5,"null","null",23,35,33,"2020-04-24 12:00:12","https://www.dailykos.com/stories/2020/4/23/1939795/-Racism-and-coronavirus-conspiracy-theories-found-in-over-1-300-tweets-deleted-by-new-HHS-spokesman?detail=facebook",1,"DAILYKOS.COM New Health and Human Services spokesman deleted some scary racist tweets about coronavirus"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("If you are reading this, let us be clear—DO NOT INJECT OR INGEST DISINFECTANT.","10158531363724255",5,"null","null",488,439,456,"2020-04-24 11:00:17","https://www.dailykos.com/stories/2020/4/24/1939978/-Watch-doctors-slowly-die-inside-as-Trump-suggests-people-could-ingest-disinfectant-for-COVID-19?detail=facebook",1,"DAILYKOS.COM Watch doctors slowly die inside as Trump suggests people could ingest disinfectant for COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("👀","10158528718004255",5,"null","null",20,13,8,"2020-04-23 19:49:31","https://www.dailykos.com/stories/2020/4/23/1939782/-The-most-commonly-cited-model-of-COVID-19-is-also-the-most-optimistic-Maybe-that-s-not-a-bad-thing?detail=facebook",1,"DAILYKOS.COM The most commonly cited model of COVID-19 is also the most optimistic. Maybe that's not a bad thing"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("They need so much more than this, but it’s a start.","10158528440939255",5,"null","null",350,14,50,"2020-04-23 18:10:03","https://www.dailykos.com/stories/2020/04/23/1939845/-50,000-Detroit-public-school-students-to-receive-free-tablets,-internet-as-COVID-19-closes-schools?detail=facebook",1,"DAILYKOS.COM 50,000 Detroit public school students to receive free tablets, internet as COVID-19 closes schools"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Like a shell game, the number of overall deaths is higher than normal, but what under what category shall they be put? This is a low-ball estimate of how many are attributable to COVID-19.","10158523645984255",5,"null","null",31,19,58,"2020-04-23 09:00:39","https://www.dailykos.com/stories/2020/4/22/1939429/-Review-of-statistics-finds-25-000-additional-deaths-attributable-to-COVID-19?detail=facebook",1,"DAILYKOS.COM Review of statistics finds 25,000 additional deaths attributable to COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Today is the 50th Anniversary of Earth Day. A 6% drop in carbon emissions due to COVID-19 effects on the economy is predicted along with drastic rises following an economic recovery. Now is the time to consider adjusting to a new normal.","10158522877089255",5,"https://scontent.fnyc1-1.fna.fbcdn.net/v/t1.0-9/fr/cp0/e15/q65/94392664_10158522858949255_5921134110033575936_o.jpg?_nc_cat=108&_nc_sid=8024bb&_nc_ohc=M1-Bc26Zb1YAX8swOCX&_nc_ht=scontent.fnyc1-1.fna&tp=14&oh=3c44215a002e0fff7886299f5390e594&oe=5F860D84","null",345,14,0,"2020-04-22 14:30:51","null",1,""); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Effective testing reveals the truth. If prisons aren't your thing, think of nursing homes and senior centers as clusters waiting in the wings.","10158522127044255",5,"null","null",37,10,46,"2020-04-22 11:30:09","https://www.dailykos.com/stories/2020/4/20/1938933/-With-1-800-confirmed-cases-one-Ohio-prison-becomes-the-largest-COVID-19-cluster-in-the-country?detail=facebook",1,"DAILYKOS.COM With 1,800 confirmed cases, one Ohio prison becomes the largest COVID-19 cluster in the country"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Of course, the person <NAME> named coronavirus testing czar was so bad in a previous job developing vaccine that he was let go.","10158516318479255",5,"null","null",88,87,280,"2020-04-20 19:46:54","https://www.dailykos.com/stories/2020/4/20/1938959/-Trump-s-COVID-19-testing-czar-was-forced-out-of-vaccine-development-job-for-toxic-self-promotion?detail=facebook",1,"DAILYKOS.COM Trump's COVID-19 testing 'czar' was forced out of vaccine development job for toxic self-promotion"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("There are people dying every day now because they listened to Fox News.","10158515970974255",5,"null","null",51,47,75,"2020-04-20 17:28:28","https://www.dailykos.com/stories/2020/4/19/1938595/--He-watched-Fox-and-believed-it-was-under-control-New-York-bar-owner-dies-of-COVID-19?detail=facebook",1,"DAILYKOS.COM 'He watched Fox, and believed it was under control': New York bar owner dies of COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("It’s always just about him.","10158515735709255",5,"null","null",98,158,98,"2020-04-20 16:15:35","https://www.dailykos.com/stories/1938812?detail=facebook",1,"DAILYKOS.COM Why is Trump pushing to end coronavirus restrictions? His 'electoral future is on the line'"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("And now tens of thousands of Americans are dead.","10158515279014255",5,"null","null",346,174,730,"2020-04-20 13:59:56","https://www.dailykos.com/stories/2020/4/20/1938859/-Trump-knew-everything-the-World-Health-Organization-knew-on-coronavirus-he-just-chose-to-ignore-it?detail=facebook",1,"DAILYKOS.COM Trump knew everything the World Health Organization knew on coronavirus, he just chose to ignore it"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("This shouldn’t be happening.","10158515162454255",5,"null","null",412,72,84,"2020-04-20 13:17:14","https://www.dailykos.com/story/2020/4/20/1938852/-Front-line-coronavirus-healthcare-workers-stand-up-to-MAGA-liberate-protestors?detail=facebook",1,"DAILYKOS.COM Front-line coronavirus healthcare workers stand up to MAGA ‘liberate’ protestors"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("🙄🙄🙄","10158513232639255",5,"null","null",69,401,192,"2020-04-20 08:00:13","https://www.dailykos.com/story/2020/4/19/1938682/-Trump-absurdly-claims-his-coronavirus-response-saved-billions-of-lives?detail=facebook",1,"DAILYKOS.COM Trump absurdly claims his coronavirus response saved billions of lives"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Coronavirus doesn't care how red your state is. You can't ignore science.","10158506201059255",5,"null","null",291,74,346,"2020-04-18 11:34:25","https://www.dailykos.com/stories/2020/4/17/1938211/-Where-are-the-biggest-spikes-in-coronavirus-cases-this-week-States-without-stay-at-home-orders?detail=facebook",1,"DAILYKOS.COM Where are the biggest spikes in coronavirus cases this week? States without stay-at-home orders"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("'I've been an emergency department nurse in Charlottesville, Virginia for almost ten years now. I've dealt with heart attacks and strokes. I've dealt with gunshot wounds and opiate overdoses. Domestic violence and human trafficking. I've delivered babies in the parking lot and held the hand of centenarians as they took their last breath. Hell, I've even had to deal with honest-to-God Nazis, which is not something I ever thought I would have to say at any point in my career. But the coronavirus pandemic is, by far and away, the biggest crisis I've ever faced.'","10158503957549255",5,"null","null",263,12,190,"2020-04-17 18:36:38","https://www.dailykos.com/stories/2020/4/17/1937829/-Stop-asking-us-to-die-for-your-convenience?detail=facebook",1,"DAILYKOS.COM Stop asking us to die for your convenience."); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("'I have never been so mad about a phone call in my life.'","10158503780349255",5,"null","null",347,159,328,"2020-04-17 17:33:11","https://www.dailykos.com/stories/2020/4/17/1938186/-Pence-briefed-Democratic-senators-on-COVID-19-It-did-not-go-well?detail=facebook",1,"DAILYKOS.COM Pence briefed Democratic senators on COVID-19. It did not go well"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("This is entirely in Mnuchin and Treasury's hands—it is absolutely clear that it can and should write rules to make sure the $1,200 goes where Congress intended, into people's pockets.","10158491458079255",5,"null","null",65,65,212,"2020-04-14 16:31:20","https://www.dailykos.com/stories/2020/4/14/1937177/-Trump-and-Mnuchin-are-letting-the-banks-steal-your-COVID-19-1-200?detail=facebook",1,"DAILYKOS.COM Trump and Mnuchin are letting the banks steal your COVID-19 $1,200"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Has the pandemic impacted your ability to use public transit? 👇👇","10158485561669255",5,"null","null",24,8,8,"2020-04-12 20:00:18","https://www.dailykos.com/stories/2020/4/12/1935764/-How-will-public-transit-survive-the-COVID-19-crisis?detail=facebook",1,"DAILYKOS.COM How will public transit survive the COVID-19 crisis?"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Black Americans have been dying early at high rates for a long time. it is just now being starkly illustrated, but hopefully not ignored—again.","10158481127904255",5,"null","null",75,18,61,"2020-04-11 17:30:16","https://www.dailykos.com/stories/2020/4/11/1936149/-No-one-should-be-surprised-about-COVID-19-s-impact-on-the-black-community?DETAIL=facebook",1,"DAILYKOS.COM No one should be surprised about COVID-19's impact on the black community"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("COVID-19 in New York didn’t come from China. It came from sources both in Europe, and from community circulation that was already occurring in the United States.","10158481168034255",5,"null","null",274,50,172,"2020-04-11 17:00:48","https://www.dailykos.com/stories/2020/4/11/1936406/-Trump-s-closing-the-border-with-China-did-nothing-to-affect-the-spread-of-COVID-19-in-America?detail=facebook",1,"DAILYKOS.COM Trump's 'closing the border' with China did nothing to affect the spread of COVID-19 in America"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("'We have a different value system [from Republicans] about what voting means to a democracy. […] Clearly, we want to remove all obstacles to participation.'","10158478472569255",5,"null","null",230,28,42,"2020-04-10 18:01:23","https://www.dailykos.com/stories/2020/4/10/1936269/-Congress-is-in-recess-but-still-working-on-coronavirus-response-Here-s-what-to-look-for-next-week?detail=facebook",1,"DAILYKOS.COM Congress is in recess, but still working on coronavirus response. Here's what to look for next week"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Trump wants asymptomatic people to go back to work. Unbelievable.","10158470977729255",5,"null","null",64,241,267,"2020-04-08 19:30:37","https://www.dailykos.com/stories/2020/4/8/1935607/-CDC-considering-relaxing-guidelines-for-those-most-likely-to-spread-COVID-19?detail=facebook",1,"DAILYKOS.COM CDC considering relaxing guidelines for those most likely to spread COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Death toll reveals long-standing bias and discrimination black Americans face when seeking medical care. 👀","10158470870654255",5,"null","null",30,14,24,"2020-04-08 18:30:56","https://www.dailykos.com/stories/2020/4/7/1935189/-Amid-limited-COVID-19-data-grim-numbers-suggest-disproportionate-impact-on-black-Americans?detail=facebook",1,"DAILYKOS.COM Amid limited COVID-19 data, grim numbers suggest disproportionate impact on black Americans"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("'We felt it was our obligation to the community – our home – to help with whatever resources we have at our disposal.”","10158470659064255",5,"null","null",189,3,52,"2020-04-08 17:30:20","https://www.dailykos.com/stories/2020/4/8/1935505/-After-campuses-shutter-amid-coronavirus-liberal-arts-college-offers-rooms-to-homeless-with-COVID-19?detail=facebook",1,"DAILYKOS.COM After campuses shutter amid coronavirus, liberal arts college offers rooms to homeless with COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("","10158460709089255",5,"null","null",71,47,91,"2020-04-05 16:24:07","https://www.dailykos.com/story/2020/4/5/1934546/-NYT-Navy-captain-fired-for-COVID-19-warning-memo-during-pandemic-tests-positive-for-virus",1,"DAILYKOS.COM NYT: Navy captain fired for COVID-19 warning memo during pandemic tests positive for virus"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("","10158456691274255",5,"null","null",59,20,45,"2020-04-04 13:36:22","https://www.dailykos.com/story/2020/4/1/1933343/-Coronavirus-Myths-I-had-it-back-in-January",1,"DAILYKOS.COM Coronavirus myths: 'I had it back in January'"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("","10158455765084255",5,"null","null",23,66,27,"2020-04-04 08:01:24","https://www.dailykos.com/story/2020/3/20/1929442/--Smart-guy-Trump-has-deep-feelings-about-a-miracle-cure-for-COVID-19-even-if-Dr-Fauci-disagrees",1,"DAILYKOS.COM 'Smart guy' Trump has deep feelings about a miracle cure for COVID-19 … even if Dr. Fauci disagrees"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("","10158454601714255",5,"null","null",142,25,55,"2020-04-03 21:36:23","https://www.dailykos.com/story/2020/3/19/1929141/-States-are-stepping-up-to-fill-the-gap-left-by-an-ineffective-federal-response-to-COVID-19",1,"DAILYKOS.COM States are stepping up to fill the gap left by an ineffective federal response to coronavirus"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("The acting secretary of the Navy fired Captain <NAME> over his letter begging his Navy superiors to take action to stop the spread of COVID-19 on the USS Theodore Roosevelt.","10158452726064255",5,"null","null",688,141,412,"2020-04-03 10:39:39","https://www.dailykos.com/stories/2020/04/03/1933893/-Sailors-cheer-Navy-captain-fired-for-COVID-19-warning-as-he-leaves-ship?detail=facebook",1,"DAILYKOS.COM Sailors cheer Navy captain fired for COVID-19 warning as he leaves ship"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Two things kill me about this pandemic: that people have to die alone, and that people have to grieve alone. I just can’t. It’s downright overwhelming.","10158450542189255",5,"null","null",66,24,201,"2020-04-02 21:00:09","https://www.dailykos.com/stories/2020/4/2/1933674/--I-Love-Rock-and-Roll-songwriter-dies-of-COVID-19-His-widow-s-story-is-heartbreaking?detail=facebook",1,"DAILYKOS.COM 'I Love Rock 'n' Roll' songwriter dies of COVID-19. His widow's story is heartbreaking"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("One of these people is telling the whole truth.","10158449424014255",5,"null","null",684,52,293,"2020-04-02 12:46:37","https://www.dailykos.com/stories/2020/4/2/1933636/-Fox-News-host-sits-in-silence-as-infectious-disease-specialist-exposes-Trump-s-coronavirus-failure?detail=facebook",1,"DAILYKOS.COM Fox News host sits in silence as infectious disease specialist exposes Trump’s coronavirus failure"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("We will not forget Trump's do-nothing leadership even if he wants us to.","10158445220334255",5,"null","null",144,158,153,"2020-04-01 13:00:41","https://www.dailykos.com/stories/2020/3/31/1933182/-Amnesiac-Trump-pretends-he-never-tried-to-ignore-coronavirus-until-it-went-away-like-a-miracle?detail=facebook",1,"DAILYKOS.COM Amnesiac Trump pretends he never tried to ignore coronavirus until it went away like a 'miracle'"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Taxpayer money funded 10K inexpensive ventilators to go to HHS stockpiles in September. Those orders were never completed and <NAME> is working on a deal to make profits selling more expensive models. Greed over graves! 😡","10158442107229255",5,"null","null",92,55,441,"2020-03-31 17:35:43","https://www.dailykos.com/stories/2020/3/31/1933051/-This-Trump-enabled-corporate-coronavirus-money-grab-is-killing-people-on-the-tax-payers-dime?detail=facebook",1,"DAILYKOS.COM This Trump-enabled corporate coronavirus money grab is killing people, on the taxpayers' dime"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Even during a pandemic, it's still a good idea to protect constitutional rights. 👍","10158441891154255",5,"null","null",339,11,31,"2020-03-31 14:30:18","https://www.dailykos.com/stories/2020/3/31/1933026/-Three-federal-judges-block-state-officials-from-pushing-anti-abortion-agenda-during-COVID-19?detail=facebook",1,"DAILYKOS.COM Three federal judges block state officials from pushing anti-abortion agenda during COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Trump lies. He doesn't like getting caught. That should be his problem not ours. ✊","10158441300539255",5,"null","null",905,102,274,"2020-03-31 12:01:22","https://www.dailykos.com/stories/2020/3/31/1932960/-New-Biden-ad-on-coronavirus-hoarding-does-something-Trump-really-hates-Using-Trump-s-own-words?detail=facebook",1,"DAILYKOS.COM New Biden ad on coronavirus 'hoarding' does something Trump really hates: Using Trump's own words"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Despite Fauci's dire numbers, those estimates are in fact on the low end of what other experts have warned.","10158435655994255",5,"null","null",146,90,157,"2020-03-29 20:00:47","https://www.dailykos.com/stories/2020/3/29/1932414/-Dr-Anthony-Fauci-says-between-100-000-200-000-American-COVID-19-deaths-now-possible?detail=facebook",1,"DAILYKOS.COM Dr. <NAME> says between 100,000—200,000 American COVID-19 deaths now possible"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Just in case you need a little certainty in life, you can usually count on the National Rifle Association (NRA) to tirelessly advocate for dollars over human lives.","10158434704689255",5,"null","null",50,64,107,"2020-03-29 14:11:49","https://www.dailykos.com/stories/2020/3/29/1932343/-NRA-fights-California-for-the-right-to-spread-COVID-19?detail=facebook",1,"DAILYKOS.COM NRA fights California for the right to spread COVID-19"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("“We are less safe because the CDC doesn't have the voice and the role it needs to have.”","10158434234709255",5,"null","null",239,125,558,"2020-03-29 12:02:34","https://www.dailykos.com/stories/2020/3/26/1931515/-Trump-sidelines-the-CDC-during-COVID-19-pandemic-Whether-it-s-ego-or-internal-politics-it-s-bad?detail=facebook",1,"DAILYKOS.COM Trump sidelines the CDC during COVID-19 pandemic. Whether it's ego or internal politics, it's bad"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("It's hard to say what's more terrifying: the visual (potential) spread of coronavirus, or how easy it is to track our location.","10158430512179255",5,"null","null",234,53,629,"2020-03-28 15:00:25","https://www.dailykos.com/stories/2020/3/27/1931802/-Cell-phone-location-tracking-data-shows-how-Florida-spring-breakers-dispersed-around-the-country?detail=facebook",1,"DAILYKOS.COM Cellphone location-tracking data shows how Florida spring breakers dispersed around the country"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("We're far from done yet. <NAME> lays out her 'wish list' for the next phase of bills. ☑️","10158428735929255",5,"null","null",435,48,87,"2020-03-28 11:00:25","https://www.dailykos.com/stories/2020/3/27/1931688/-The-next-coronavirus-bailout-has-to-be-for-the-people?detail=facebook",1,"DAILYKOS.COM The next coronavirus bailout has to be for the people"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("This is one of those moments when it's time to get right with the Lord. But a conman is a conman and bad theology is bad theology. And this is terrible. ❌","10158428753274255",5,"null","null",25,135,46,"2020-03-28 10:00:36","https://www.dailykos.com/stories/2020/3/27/1931847/-Top-White-House-advisor-suggests-coronavirus-is-the-consequential-wrath-of-God?detail=facebook",1,"DAILYKOS.COM Top White House advisor suggests coronavirus is the ‘consequential wrath of God’"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Fan🤬tastic. During a national public health crisis, the current Republican administration offers up deregulation that directly and very adversely affects public health.","10158427187319255",5,"null","null",27,88,334,"2020-03-27 15:33:57","https://www.dailykos.com/stories/2020/3/27/1931785/-EPA-rolls-back-the-most-basic-restrictions-on-air-and-water-pollution-during-coronavirus-emergency?detail=facebook",1,"DAILYKOS.COM EPA rolls back the most basic restrictions on air and water pollution during coronavirus emergency"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("How did we get here?","10158426277239255",5,"null","null",66,65,92,"2020-03-27 11:03:35","https://www.dailykos.com/story/2020/3/27/1931739/-Governors-need-federal-help-fighting-COVID-19-and-the-cost-is-stroking-Trump-s-ego?detail=facebook",1,"DAILYKOS.COM Governors need federal help fighting coronavirus, and the cost is stroking Trump's ego"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("This is why Trump’s “hoax” rhetoric is so dangerous.","10158423594959255",5,"null","null",183,251,945,"2020-03-26 16:46:31","https://www.dailykos.com/story/2020/3/26/1931529/-White-nationalist-planned-to-bomb-a-Missouri-hospital-as-revolt-against-coronavirus-lockdowns?detail=facebook",1,"DAILYKOS.COM White nationalist planned to bomb a Missouri hospital as revolt against coronavirus lockdowns"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("We have a $2 Trillion deal. Voting scheduled for this afternoon. Read the breakdown here. 👀","10158418456114255",5,"null","null",241,56,71,"2020-03-25 10:00:46","https://www.dailykos.com/stories/2020/3/25/1931051/-Senate-reaches-coronavirus-stimulus-deal-including-unemployment-insurance-on-steroids?detail=facebook",1,"DAILYKOS.COM Senate reaches coronavirus stimulus deal including 'unemployment insurance on steroids'"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Everyone can get sick. EVERYONE.","10158415400694255",5,"null","null",67,17,281,"2020-03-24 16:30:45","https://www.dailykos.com/stories/2020/3/24/1930483/-Twelve-year-old-girl-is-fighting-for-her-life-after-testing-positive-for-coronavirus-family-says?detail=facebook",1,"DAILYKOS.COM Twelve-year-old girl is 'fighting for her life' after testing positive for coronavirus, family says"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Trump's 'Made in China' branding of COVID-19 is fomenting hate crimes. Makes you want to pee in his coke (JK). 🤬","10158415026414255",5,"null","null",29,66,71,"2020-03-24 12:30:02","https://www.dailykos.com/stories/2020/3/23/1930323/-Hate-crimes-against-Asian-Americans-on-the-rise-as-Trump-promotes-Chinese-virus-lie",1,"DAILYKOS.COM Hate crimes against Asian Americans on the rise as Trump promotes 'Chinese virus' lie"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Is there anything more satisfying in life than watching people fail at trying to out argue or out smart Elizabeth Warren?","10158412997594255",5,"null","null",2165,137,710,"2020-03-23 20:02:01","https://www.dailykos.com/story/2020/3/23/1930463/--Excuse-me-Elizabeth-Warren-fact-checks-business-news-host-on-Republican-coronavirus-giveaway-bill?detail-=facebook",1,"DAILYKOS.COM ‘Excuse me!’ Elizabeth Warren fact-checks business news host on Republican coronavirus giveaway bill"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("'I literally have to be damn near on my death bed to take a full-blown sick day. A missed check is the difference between me having a roof over me and my family's head versus us being homeless.'","10158411831399255",5,"null","null",37,27,115,"2020-03-23 15:30:43","https://www.dailykos.com/stories/2020/3/22/1930025/--I-wound-up-vomiting-McDonald-s-skirts-paid-COVID-19-sick-leave-forcing-sick-worker-to-man-grill?detail=facebook",1,"DAILYKOS.COM 'I wound up vomiting': McDonald's skirts paid COVID-19 sick leave, forcing sick worker to man grill"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("McConnell hopes to pressure Dems into accepting pro-corporation and anti-worker proposals. Pelosi calls it a 'non-starter.' Stay tuned. 📺","10158403512759255",5,"null","null",384,55,107,"2020-03-21 13:30:07","https://www.dailykos.com/stories/2020/3/21/1929713/-Senate-Democrats-push-expanded-unemployment-insurance-in-coronavirus-response?detail=facebook",1,"DAILYKOS.COM Senate Democrats push expanded unemployment insurance in coronavirus response"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Why steer the ship of state with men who are consistently so off course? 🛳","10158403331134255",5,"null","null",334,84,168,"2020-03-21 12:00:55","https://www.dailykos.com/stories/2020/3/21/1929687/-No-one-was-more-wrong-about-the-coronavirus-than-Trump-s-money-men-and-they-re-still-wrong?detail=facebook",1,"DAILYKOS.COM No one was more wrong about the coronavirus than Trump's money men, and they're still wrong"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Look for the failure to continue, because <NAME> had a hand in some of Trump's worst COVID-19 moves, and now he's taking a bigger role.","10158397848344255",5,"null","null",56,42,100,"2020-03-19 21:15:15","https://www.dailykos.com/stories/2020/3/19/1929151/-The-coronavirus-news-is-overwhelming-Here-s-what-we-learned-Thursday?detail=facebook",1,"DAILYKOS.COM The coronavirus news is overwhelming: Here's what we learned Thursday"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("WHOA.","10158397333929255",5,"null","null",250,516,1471,"2020-03-19 18:30:34","https://www.dailykos.com/stories/2020/3/19/1929198/-Senate-Intelligence-chair-Burr-cashed-out-0-5-1-5-million-in-stock-just-before-COVID-market-crash?detail=facebook",1,"DAILYKOS.COM Senate Intelligence chair Burr cashed out $0.5-1.5 million in stock just before COVID market crash"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("“Extremists don't care if their propaganda is true. They just want it to spread.”","10158397191989255",5,"null","null",42,31,27,"2020-03-19 18:00:11","https://www.dailykos.com/stories/2020/3/19/1928890/-Oprah-becomes-the-latest-focus-of-QAnon-conspiracists-embrace-of-coronavirus-theories?detail=facebook",1,"DAILYKOS.COM Oprah becomes the latest focus of QAnon conspiracists' embrace of coronavirus theories"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Whoa. 😮","10158392932179255",5,"null","null",139,127,310,"2020-03-18 15:00:49","https://www.dailykos.com/stories/2020/3/18/1928649/-Watch-the-sharply-shifting-coronavirus-rhetoric-from-Fox-News-over-the-last-two-weeks?details=facebook",1,"DAILYKOS.COM Watch the sharply shifting coronavirus rhetoric from Fox News over the last two weeks"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("From kids in cages to country on coronavirus DHS 65% vacant. ASTOUNDING! 😲","10158392343994255",5,"null","null",55,43,156,"2020-03-18 12:00:38","https://www.dailykos.com/stories/2020/3/18/1928619/-Vacancies-at-the-top-of-the-Homeland-Security-Department-threaten-coronavirus-response?detail=facebook",1,"DAILYKOS.COM Vacancies at the top of the Homeland Security Department threaten coronavirus response"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Fissures appear to be developing among some of Trump's most fervent acolytes that could doom him electorally in November.","10158386358214255",5,"null","null",395,113,70,"2020-03-16 17:40:19","https://www.dailykos.com/stories/2020/3/16/1928001/-Trump-s-coronavirus-response-fracturing-his-MAGA-base-a-potential-electoral-disaster?detail=facebook",1,"DAILYKOS.COM Trump's coronavirus response fracturing his MAGA base, creating a potential electoral disaster"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Pure poetry.","10158384396724255",5,"null","null",422,68,343,"2020-03-16 08:30:33","https://www.dailykos.com/stories/2020/3/15/1927660/-Here-s-the-anti-Trump-coronavirus-ad-we-all-wanted-to-see?detail=facebook",1,"DAILYKOS.COM Here's the anti-Trump coronavirus ad we were all eager to see"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Sanders came out strong, going directly at Trump’s egomania and misinformation campaign.","10158383717454255",5,"null","null",1095,123,125,"2020-03-15 20:49:30","https://www.dailykos.com/stories/2020/3/15/1927786/-Bernie-Sanders-says-first-step-in-fighting-coronavirus-is-to-Shut-this-president-up-right-now?detail=facebook",1,"DAILYKOS.COM <NAME> says first step in fighting coronavirus is to 'Shut this president up right now!'"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Oh? Is that so? 🙄","10158382353049255",5,"null","null",62,310,168,"2020-03-15 16:30:22","https://www.dailykos.com/stories/2020/3/15/1927629/-Steve-Mnuchin-Trump-didn-t-give-false-statements-on-COVID-19-response-you-misinterpreted-him?detail=facebook",1,"DAILYKOS.COM Mnuchin: Trump didn't give false statements on COVID-19 response, you misinterpreted him"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("How do these people sleep at night? Like, honestly??","10158379984164255",5,"null","null",23,26,52,"2020-03-14 22:30:32","https://www.dailykos.com/stories/2020/3/11/1926559/--Coronavirus-can-only-survive-in-cold-temperatures-Top-cruise-line-allegedly-lies-to-sell-tickets?detail=facebook",1,"DAILYKOS.COM 'Coronavirus can only survive in cold temperatures': Top cruise line allegedly lies to sell tickets"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Hey, Mitch? We've got a pandemic on our hands. Get your ass back to work.","10158379177554255",5,"null","null",117,31,152,"2020-03-14 16:00:30","https://www.dailykos.com/stories/2020/3/13/1927282/-The-House-just-passed-a-bill-to-fight-the-coronavirus-Where-s-Mitch-McConnell-s-Senate-On-vacation?detail=facebook",1,"DAILYKOS.COM The House just passed a bill to fight the coronavirus. Where's <NAME>'s Senate? On vacation"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("We’re on our own, folks. As if you didn’t know that already.","10158376815659255",5,"null","null",163,204,366,"2020-03-13 19:00:16","https://www.dailykos.com/stories/2020/3/13/1927225/-Trump-takes-no-responsibility?detail=facebook",1,"DAILYKOS.COM Trump takes no responsibility for lack of coronavirus testing or firing of pandemic response team"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("The key is to institute massive preparations now before the pandemic becomes uncontainable.","10158376032549255",5,"null","null",68,17,62,"2020-03-13 13:02:39","https://www.dailykos.com/stories/2020/3/13/1927078/-The-New-York-Times-has-obtained-CDC-s-worst-case-scenario-estimates?detail=facebook",1,"DAILYKOS.COM CDC's 'worst-case scenario' estimates for coronavirus spread in U.S. obtained by the New York Times"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("What? How??","10158375916154255",5,"null","null",30,134,89,"2020-03-13 12:13:12","https://www.dailykos.com/stories/2020/3/13/1927076/-Donald-Trump-has-someone-new-to-blame-for-the-coronavirus-response-Joe-Biden?detail=facebook",1,"DAILYKOS.COM <NAME> has someone new to blame for the coronavirus response ... <NAME>"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("This is un🤬believable.","10158375846229255",5,"null","null",71,116,301,"2020-03-13 11:42:43","https://www.dailykos.com/story/2020/3/13/1927097/-Trump-administration-won-t-let-states-use-Medicaid-to-ramp-up-the-fight-against-coronavirus?detail=facebook",1,"DAILYKOS.COM Trump administration won't let states use Medicaid to ramp up the fight against coronavirus"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Next time you hear someone besmirch the name of Pelosi, remind them who is constantly saving our asses over and over and over again...","10158375746609255",5,"null","null",5155,336,2950,"2020-03-13 10:59:00","https://www.dailykos.com/stories/1927074?detail=facebook",1,"DAILYKOS.COM Pelosi reaches deal with White House for free coronavirus testing, paid sick leave, and more"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Trump didn’t just get the equivalent of a CIA memo warning “Bin Ladin Determined To Strike in US” a month before the attack on the World Trade Center. He got that memo over and over.","10158373369854255",5,"null","null",114,48,399,"2020-03-12 17:15:42","https://www.dailykos.com/stories/2020/3/12/1926805/-Donald-Trump-and-John-Bolton-conspired-to-destroy-America-s-defense-against-the-coronavirus-pandemic?detail=facebook",1,"DAILYKOS.COM <NAME> and <NAME> conspired to destroy America's defense against the coronavirus pandemic"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Trump’s attacks on the press are nothing new. But this is terrifying and heinous.","10158372632584255",5,"null","null",34,56,38,"2020-03-12 12:35:49","https://www.dailykos.com/stories/2020/3/11/1926589/-Trump-lobs-insult-at-reporter-rather-than-answer-question-about-the-coronavirus-crisis?detail=facebook",1,"DAILYKOS.COM Trump lobs insult at reporter rather than answer question about the coronavirus crisis"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Omfg. 🙇🏻‍♀️🙅🏻‍♀️","10158371608759255",5,"null","null",150,733,1222,"2020-03-12 10:00:02","https://www.dailykos.com/stories/2020/3/11/1926602/-White-House-won-t-decide-on-COVID-19-emergency-status-until-Jared-Kushner-does-his-own-research?detail=facebook",1,"DAILYKOS.COM White House won't decide on coronavirus 'emergency' status until Jared Kushner does own 'research'"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Capitalism at its worst. 🤢","10158371583019255",5,"null","null",35,30,118,"2020-03-12 08:00:49","https://www.dailykos.com/stories/2020/3/11/1926559/--Coronavirus-can-only-survive-in-cold-temperatures-Top-cruise-line-allegedly-lies-to-sell-tickets?detail=facebook",1,"DAILYKOS.COM 'Coronavirus can only survive in cold temperatures': Top cruise line allegedly lies to sell tickets"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("⚠️ Attending CPAC is already a problem, but go on...","10158369847569255",5,"null","null",25,142,34,"2020-03-11 15:30:39","https://www.dailykos.com/stories/2020/3/11/1926478/-CPAC-attendee-tells-Fox-News-since-he-didn-t-get-coronavirus-it-must-be-difficult-to-contract?detail=facebook",1,"DAILYKOS.COM CPAC attendee tells Fox News since he didn’t get coronavirus it must be ‘difficult to contract'"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Nancy steps in to present bill to help American people. 👏🏽","10158369264659255",5,"null","null",262,63,81,"2020-03-11 15:00:18","https://www.dailykos.com/stories/2020/3/11/1926447/-Trump-pushes-payroll-tax-cut-as-Pelosi-s-House-moves-to-help-workers-in-the-coronavirus-economy?detail=facebook",1,"DAILYKOS.COM Trump pushes payroll tax cut as Pelosi's House moves to help workers in the coronavirus economy"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("👀👀👀👀","10158367132684255",5,"null","null",74,11,46,"2020-03-10 19:14:14","https://www.dailykos.com/stories/2020/3/10/1926185/-As-colleges-send-students-home-amid-coronavirus-dorm-closures-highlight-underdiscussed-realities?detail=facebook",1,"DAILYKOS.COM As colleges send students home amid coronavirus, dorm closures highlight underdiscussed realities"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("⛽ Is Trump going to frack us and forget about paid sick leave too?","10158366649339255",5,"null","null",31,105,247,"2020-03-10 17:00:13","https://www.dailykos.com/stories/2020/3/10/1926204/-After-coronavirus-crashes-crude-markets-Trump-considers-bailing-out-Big-Oil-billionaires?detail=facebook",1,"DAILYKOS.COM After coronavirus crashes crude markets, Trump considers bailing out Big Oil billionaires"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Um...","10158365087984255",5,"null","null",61,64,53,"2020-03-10 09:30:10","https://www.dailykos.com/stories/2020/3/8/1925671/-Know-nothing-president-tweets-photo-of-himself-fiddling-while-coronavirus-spreads?detaill=facebook",1,"DAILYKOS.COM Know-nothing president tweets photo of himself fiddling while coronavirus churns"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Just imagine the potential risks facing the tens of thousands of people, including vulnerable children, whom officials have locked up in federal detention facilities all across the U.S.","10158363701484255",5,"null","null",41,69,142,"2020-03-09 20:00:43","https://www.dailykos.com/stories/2020/3/9/1925819/-Immigration-detention-conditions-are-already-poor-A-COVID-19-outbreak-there-could-become-a-disaster?detail=facebook",1,"DAILYKOS.COM Immigration detention conditions are already poor. A coronavirus outbreak could be a disaster"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("👀👀👀","10158351463974255",5,"null","null",99,21,61,"2020-03-05 16:49:37","https://www.dailykos.com/stories/2020/3/5/1924697/-Man-who-visited-China-during-coronavirus-outbreak-says-he-s-more-afraid-of-being-in-the-U-S?detail=facebook",1,"DAILYKOS.COM Man who visited China during coronavirus outbreak says he's more afraid of being in the U.S."); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("As we face a growing crisis with the coronavirus pandemic, the federal government must redirect funds effectively. 🔥","10158332597694255",5,"null","null",391,37,48,"2020-02-28 14:08:47","https://www.dailykos.com/campaigns/petitions/sign-the-petition-transfer-money-from-trumps-racist-wall-to-fight-coronavirus?detail=facebook",1,"DAILYKOS.COM Sign the petition: Transfer money from Trump's racist wall to fight coronavirus"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Here’s what is happening around the world…","10158316779264255",5,"null","null",54,22,103,"2020-02-23 12:00:37","https://www.dailykos.com/stories/2020/2/23/1921362/-The-window-to-avoid-a-global-pandemic-is-narrowing-as-COVID-19-grows-in-Italy-South-Korea-Iran?detail=facebook",1,"DAILYKOS.COM The window to avoid a global pandemic is 'narrowing' as COVID-19 grows in Italy, South Korea, Iran"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Tag a few people who need this update 👇👇","10158301792954255",5,"null","null",17,8,30,"2020-02-18 13:30:30","https://www.dailykos.com/stories/2020/2/18/1920041/-The-Diamond-Princess-now-has-more-cases-of-COVID-19-than-everywhere-else-outside-China-combined?detail=facebook",1,"DAILYKOS.COM The Diamond Princess now has more cases of COVID-19 than everywhere else outside China combined"); INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Disinformation doesn’t serve anyone. Get the facts straight.","10158283128829255",5,"null","null",105,17,49,"2020-02-12 10:43:43","https://www.dailykos.com/story/2020/2/12/1918567/-Coronavirus-cases-reach-45-000-But-it-did-not-come-from-a-weapons-lab-and-yes-we-know-that?detail=facebook",1,"DAILYKOS.COM Coronavirus cases reach 45,000. But it did not come from a weapons lab, and yes, we know that");
INSERT INTO `entries` (`entryID`, `childID`, `height`, `weight`, `waist`, `WHR_v`, `BMI_v`, `fruits`, `veggies`, `exercise`, `screenTimeSD`, `screenTimeNSD`, `sleepSD`, `sleepNSD`, `created_at`, `updated_at`) VALUES (1,1,162.00,44.00,44.00,0.30,0.46,3.00,3.00,'01:00:00',3.00,3.00,'10:00:00','10:00:00','2018-10-19 12:35:42','2018-10-19 12:35:42');
/* Navicat MySQL Data Transfer Source Server : localhost2018 Source Server Version : 100136 Source Host : localhost:3306 Source Database : nuestronegocio Target Server Type : MYSQL Target Server Version : 100136 File Encoding : 65001 Date: 2018-12-27 02:10:59 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for abarrotes -- ---------------------------- DROP TABLE IF EXISTS `abarrotes`; CREATE TABLE `abarrotes` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `telefono` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `direccion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `imagen` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `maps` varchar(300) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of abarrotes -- ---------------------------- INSERT INTO `abarrotes` VALUES ('1', 'Mellos', '01 55 1367 9577', 'Av. Francisco I. Madero, San Antonio, 54880 Melchor Ocampo, Méx.', 'images/mellos.jpg', 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d234.7775209594966!2d-99.14772001363853!3d19.693868517434506!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xf2d133ca88d8aab9!2sPeluquer%C3%ADa+Mellos!5e0!3m2!1ses!2smx!4v1545856110179', '2018-12-24 01:41:02', '2018-12-24 01:41:02'); INSERT INTO `abarrotes` VALUES ('2', 'San Antonio', 'S/N', 'Av. Hidalgo, San Antonio, 54880 Melchor Ocampo, Méx.', 'images/tienda_1.jpg', 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d279.1986130497067!2d-99.14683722908764!3d19.694143459140314!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x85d1f5206f205dcd%3A0xbfde114a8cf942c!2sCalle+Juventino+Rosas+19%2C+San+Antonio%2C+54883+San+Antonio%2C+M%C3%A9x.!5e0!3m2!1ses!2smx!4v1', '2018-12-24 01:41:02', '2018-12-24 01:41:02'); INSERT INTO `abarrotes` VALUES ('3', 'La Ventanita', 'S/N', 'Rosas Moreno 5, San Antonio, 54883 San Antonio, Méx.', 'images/laVentanita.jpg', 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d279.1997082417614!2d-99.14733585440811!3d19.69351554495309!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xc0e204c3459a6955!2sTienda+La+VENTANITA!5e0!3m2!1ses!2smx!4v1545856874744', '2018-12-24 01:41:02', '2018-12-24 01:41:02'); INSERT INTO `abarrotes` VALUES ('4', '<NAME>', '01 55 9795 0012', 'Himno Nacional Barrio, San Antonio, 54880 Melchor Ocampo, Méx.', 'images/donBenja.jpg', 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d332.02595452423446!2d-99.14494420249135!3d19.693672246156943!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x85d1f4df8d617209%3A0x333cee1345b13b9e!2sBar+%22George%22!5e0!3m2!1ses!2smx!4v1545857857686', '2018-12-24 01:41:02', '2018-12-24 01:41:02'); INSERT INTO `abarrotes` VALUES ('5', 'Marlen', 'S/N', '<NAME>, San Antonio, 54880 Melchor Ocampo, Méx.', 'images/marlen.jpg', 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d332.0269661433412!2d-99.14442798117227!3d19.693184517773368!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x85d1f4dfc4bb8807%3A0xe011f5917067a1e3!2sCalle+Pedro+P%C3%A9rez%2C+Estado+de+M%C3%A9xico!5e0!3m2!1ses!2smx!4v1545857583902', '2018-12-24 01:41:02', '2018-12-24 01:41:02'); INSERT INTO `abarrotes` VALUES ('6', 'San Rafael', '01 55 2620 2725', 'Local 1, <NAME>ña 11, San Antonio, 54880 Melchor Ocampo, Méx.', 'images/sanRafael.jpg', 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d234.7746881192652!2d-99.1456098!3d19.6957999!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x85d1f4df7d429563%3A0xfe73bdb212d57492!2sSan+Rafael!5e0!3m2!1ses!2smx!4v1545858706363', '2018-12-24 01:41:02', '2018-12-24 01:41:02'); INSERT INTO `abarrotes` VALUES ('7', '<NAME>', 'S/N', '<NAME>', 'images/franciscoIMadero.jpg', 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d332.0201018942512!2d-99.1474520484674!3d19.696493726547256!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x85d1f520ea0b0ea1%3A0x7224c2da668505b8!2sAv.+Francisco+I.+Madero+264%2C+San+Antonio%2C+54883+Melchor+Ocampo%2C+M%C3%A9x.!5e0!3m2!1ses!2s', '2018-12-24 01:41:02', '2018-12-24 01:41:02'); INSERT INTO `abarrotes` VALUES ('8', 'Encisos', 'S/N', 'Hidalgo, Xacopinca, 54880 Melchor Ocampo, Méx.', 'images/encisos.jpg', 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d234.7767249601351!2d-99.14666199624011!3d19.69441123471225!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xd8f6cecff633a39d!2sAbarrotes+Enciso&#39;s!5e0!3m2!1ses!2smx!4v1545859742774', '2018-12-24 01:41:02', '2018-12-24 01:41:02'); INSERT INTO `abarrotes` VALUES ('9', 'Sandy', 'S/N', 'Ixtlahuaca, Centro, Melchor Ocampo, 54880 Melchor Ocampo, Méx.', 'images/sandy.jpg', 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d234.7739368272165!2d-99.14929529381374!3d19.696312087701738!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x1746ca2d0747bd20!2sLonja+Mercantil+%22Sandy%22!5e0!3m2!1ses!2smx!4v1545860380108', '2018-12-24 01:41:02', '2018-12-24 01:41:02'); INSERT INTO `abarrotes` VALUES ('10', 'Capricornio', 'S/N', 'Zaragoza 37, Melchor Ocampo, 54880 Melchor Ocampo, Méx.', 'images/capricornio.jpg', 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d234.77357129548335!2d-99.14929762388438!3d19.6965612815854!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x85d1f5213dcee2e9%3A0xdb91da46ec753363!2sMiscel%C3%A1nea+Capricornio!5e0!3m2!1ses!2smx!4v1545860690251', '2018-12-24 01:41:02', '2018-12-24 01:41:02'); INSERT INTO `abarrotes` VALUES ('11', '<NAME>', '545-406-9475 x2222', '3085 Spencer Court\nFarrellbury, OR 47662', 'Miss Meta Howe DVM', 'Dr. <NAME> III', '2018-12-26 20:24:23', '2018-12-26 20:24:23'); INSERT INTO `abarrotes` VALUES ('12', '<NAME>', '556-649-9056 x26199', '185 Weimann Parkway\nSouth Tiffany, NY 59915-7425', '<NAME> Sr.', '<NAME>', '2018-12-26 20:24:23', '2018-12-26 20:24:23'); INSERT INTO `abarrotes` VALUES ('13', '<NAME>', '659.272.5352 x4261', '948 Jones Branch\nWest Anabelburgh, OH 36780-9268', '<NAME>', '<NAME>', '2018-12-26 20:24:23', '2018-12-26 20:24:23'); INSERT INTO `abarrotes` VALUES ('14', 'Dr. <NAME>', '(975) 762-2641 x1656', '80460 Clement Gateway Suite 054\nWest Omaristad, MI 70344', 'Hers<NAME>', '<NAME>', '2018-12-26 20:24:23', '2018-12-26 20:24:23'); INSERT INTO `abarrotes` VALUES ('15', '<NAME>', '1-751-396-9367', '16103 Moriah Ports Suite 966\nLake Daynamouth, MD 43956-3052', 'Mrs. <NAME>', '<NAME>', '2018-12-26 20:24:23', '2018-12-26 20:24:23'); INSERT INTO `abarrotes` VALUES ('16', '<NAME> IV', '(675) 379-8872', '59683 Bogisich Islands Apt. 304\nNorth Leopoldfurt, OR 00704-0462', '<NAME>', 'Mr. <NAME> DVM', '2018-12-26 20:24:23', '2018-12-26 20:24:23'); INSERT INTO `abarrotes` VALUES ('17', '<NAME>', '+13596348579', '1430 Nicolas Groves\nEast Ottilieton, SD 45358-7944', 'Ms. <NAME> Sr.', 'Dr. <NAME> III', '2018-12-26 20:24:23', '2018-12-26 20:24:23'); INSERT INTO `abarrotes` VALUES ('18', 'Miss <NAME> Sr.', '+18195730146', '1996 Leannon Ranch\nHillsberg, PA 17419-7473', 'Mrs. <NAME>', '<NAME>', '2018-12-26 20:24:23', '2018-12-26 20:24:23'); INSERT INTO `abarrotes` VALUES ('19', '<NAME>', '1-385-788-5699 x3710', '7934 Susana Keys\nToyshire, ME 55990', '<NAME>', 'Dr. <NAME> DDS', '2018-12-26 20:24:23', '2018-12-26 20:24:23'); INSERT INTO `abarrotes` VALUES ('20', '<NAME>', '1-272-964-0291 x376', '794 Lueilwitz Oval\nEast Ottismouth, OH 85505-7429', '<NAME>', 'Mrs. <NAME>', '2018-12-26 20:24:23', '2018-12-26 20:24:23');
<filename>database/seeds/user.sql INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'Admin', '<EMAIL>', NULL, '$2y$10$IvS0n0hZxSJZIRbrwoBste2WEwrZlBO1hYZXkDJG33h5IGKQmM7yq', NULL, '2019-05-19 15:11:36', '2020-05-21 14:04:56');
<reponame>estebansalgado/boiler-plate-codeigniter<gh_stars>0 -- -- PostgreSQL database dump -- -- Dumped from database version 9.6.9 -- Dumped by pg_dump version 9.6.9 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 client_min_messages = warning; SET row_security = off; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; -- -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -- COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'; SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: events; Type: TABLE; Schema: public; Owner: postgres -- CREATE TABLE public.events ( id integer NOT NULL, title character varying(255), user_id integer DEFAULT 0 NOT NULL, addtime integer DEFAULT 0 NOT NULL, start timestamp without time zone, "end" timestamp without time zone, url character varying(255) DEFAULT NULL::character varying, backgroundcolor character varying(255) DEFAULT NULL::character varying, bordercolor character varying(255) DEFAULT NULL::character varying, allday numeric(1,0) DEFAULT 1 ); ALTER TABLE public.events OWNER TO postgres; -- -- Name: events_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- CREATE SEQUENCE public.events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.events_id_seq OWNER TO postgres; -- -- Name: events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres -- ALTER SEQUENCE public.events_id_seq OWNED BY public.events.id; -- -- Name: permissions; Type: TABLE; Schema: public; Owner: postgres -- CREATE TABLE public.permissions ( id integer NOT NULL, permkey character varying(255) NOT NULL, permname character varying(255) NOT NULL, parent_id integer DEFAULT 0 NOT NULL, lft integer DEFAULT 0, rgt integer DEFAULT 0, root_id integer DEFAULT 0 NOT NULL, addtime timestamp without time zone DEFAULT now() NOT NULL, sortid integer DEFAULT 0 NOT NULL, issys integer DEFAULT 0 NOT NULL, permtype integer DEFAULT 0, rel_id integer DEFAULT 0 ); ALTER TABLE public.permissions OWNER TO postgres; -- -- Name: permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- CREATE SEQUENCE public.permissions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.permissions_id_seq OWNER TO postgres; -- -- Name: permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres -- ALTER SEQUENCE public.permissions_id_seq OWNED BY public.permissions.id; -- -- Name: permissions_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- CREATE SEQUENCE public.permissions_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.permissions_seq OWNER TO postgres; -- -- Name: role_perms; Type: TABLE; Schema: public; Owner: postgres -- CREATE TABLE public.role_perms ( id integer NOT NULL, roleid bigint DEFAULT 0 NOT NULL, permid bigint DEFAULT 0 NOT NULL, value numeric(1,0) DEFAULT 0 NOT NULL, adddate timestamp without time zone DEFAULT now() NOT NULL ); ALTER TABLE public.role_perms OWNER TO postgres; -- -- Name: role_perms_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- CREATE SEQUENCE public.role_perms_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.role_perms_id_seq OWNER TO postgres; -- -- Name: role_perms_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres -- ALTER SEQUENCE public.role_perms_id_seq OWNED BY public.role_perms.id; -- -- Name: roles; Type: TABLE; Schema: public; Owner: postgres -- CREATE TABLE public.roles ( id integer NOT NULL, rolename character varying(60) NOT NULL, issys integer DEFAULT 0 NOT NULL, company_id integer DEFAULT 0 ); ALTER TABLE public.roles OWNER TO postgres; -- -- Name: roles_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- CREATE SEQUENCE public.roles_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.roles_id_seq OWNER TO postgres; -- -- Name: roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres -- ALTER SEQUENCE public.roles_id_seq OWNED BY public.roles.id; -- -- Name: user_perms; Type: TABLE; Schema: public; Owner: postgres -- CREATE TABLE public.user_perms ( id integer NOT NULL, userid bigint DEFAULT 0 NOT NULL, permid bigint DEFAULT 0 NOT NULL, value numeric(1,0) DEFAULT 0 NOT NULL, adddate timestamp without time zone NOT NULL ); ALTER TABLE public.user_perms OWNER TO postgres; -- -- Name: user_perms_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- CREATE SEQUENCE public.user_perms_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.user_perms_id_seq OWNER TO postgres; -- -- Name: user_perms_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres -- ALTER SEQUENCE public.user_perms_id_seq OWNED BY public.user_perms.id; -- -- Name: user_roles; Type: TABLE; Schema: public; Owner: postgres -- CREATE TABLE public.user_roles ( userid integer DEFAULT 0 NOT NULL, roleid bigint DEFAULT 0 NOT NULL, adddate timestamp without time zone DEFAULT now() NOT NULL, id integer NOT NULL ); ALTER TABLE public.user_roles OWNER TO postgres; -- -- Name: user_roles_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- CREATE SEQUENCE public.user_roles_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.user_roles_id_seq OWNER TO postgres; -- -- Name: user_roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres -- ALTER SEQUENCE public.user_roles_id_seq OWNED BY public.user_roles.id; -- -- Name: users; Type: TABLE; Schema: public; Owner: postgres -- CREATE TABLE public.users ( id integer NOT NULL, username character varying(255), password character varying(255), email character varying(255), cur_login_time timestamp without time zone, cur_login_ip character varying(255), cur_login_area character varying(255), last_login_ip character varying(255), last_login_area character varying(255), last_login_time timestamp without time zone, reg_time timestamp without time zone, reg_ip character varying(255), reg_area character varying(255), status integer, login_times integer, owner_sites text, parent_user_id integer, company_id integer, photo character varying(255), user_type integer, issys integer ); ALTER TABLE public.users OWNER TO postgres; -- -- Name: COLUMN users.id; Type: COMMENT; Schema: public; Owner: postgres -- COMMENT ON COLUMN public.users.id IS 'Numero de usuario'; -- -- Name: COLUMN users.username; Type: COMMENT; Schema: public; Owner: postgres -- COMMENT ON COLUMN public.users.username IS 'Nombre de usuario'; -- -- Name: COLUMN users.password; Type: COMMENT; Schema: public; Owner: postgres -- COMMENT ON COLUMN public.users.password IS 'password'; -- -- Name: COLUMN users.cur_login_time; Type: COMMENT; Schema: public; Owner: postgres -- COMMENT ON COLUMN public.users.cur_login_time IS 'Hora de inicio de sesión actual'; -- -- Name: COLUMN users.cur_login_ip; Type: COMMENT; Schema: public; Owner: postgres -- COMMENT ON COLUMN public.users.cur_login_ip IS 'ip desde donde esta conectado actualmente'; -- -- Name: COLUMN users.cur_login_area; Type: COMMENT; Schema: public; Owner: postgres -- COMMENT ON COLUMN public.users.cur_login_area IS 'area de inicio de sesión actual'; -- -- Name: COLUMN users.last_login_ip; Type: COMMENT; Schema: public; Owner: postgres -- COMMENT ON COLUMN public.users.last_login_ip IS 'ip de la ultima sesion '; -- -- Name: events id; Type: DEFAULT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.events ALTER COLUMN id SET DEFAULT nextval('public.events_id_seq'::regclass); -- -- Name: permissions id; Type: DEFAULT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.permissions ALTER COLUMN id SET DEFAULT nextval('public.permissions_id_seq'::regclass); -- -- Name: role_perms id; Type: DEFAULT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.role_perms ALTER COLUMN id SET DEFAULT nextval('public.role_perms_id_seq'::regclass); -- -- Name: roles id; Type: DEFAULT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.roles ALTER COLUMN id SET DEFAULT nextval('public.roles_id_seq'::regclass); -- -- Name: user_perms id; Type: DEFAULT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.user_perms ALTER COLUMN id SET DEFAULT nextval('public.user_perms_id_seq'::regclass); -- -- Name: user_roles id; Type: DEFAULT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.user_roles ALTER COLUMN id SET DEFAULT nextval('public.user_roles_id_seq'::regclass); -- -- Data for Name: events; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY public.events (id, title, user_id, addtime, start, "end", url, backgroundcolor, bordercolor, allday) FROM stdin; 3 sdfsdfsdf 23207 1447208656 2015-11-12 00:00:00 2015-11-13 00:00:00 rgb(221, 75, 57) rgb(221, 75, 57) 1 4 sdfvsdfsdf 23207 1447208700 2015-11-14 00:00:00 2015-11-15 00:00:00 rgb(255, 133, 27) 1 16 sdfdsfgdf 23207 1447210716 2015-07-28 00:00:00 2015-07-29 00:00:00 \N #3c8dbc #3c8dbc 1 11 xvfvdfv 23207 1447209687 2015-11-10 20:00:00 2015-11-11 00:00:00 \N #3c8dbc #3c8dbc 0 13 sdfsdfsdfsdf 23207 1447209888 2015-11-11 02:00:00 2015-11-11 06:30:00 \N #3c8dbc #3c8dbc 0 14 zdcsdvsgfbvsdfgb 23207 1447209899 2015-11-14 00:00:00 2015-11-14 03:30:00 \N rgb(96, 92, 168) rgb(96, 92, 168) 0 15 sdvsdgsfg 23207 1447209906 2015-11-13 19:00:00 2015-11-14 00:00:00 \N #3c8dbc #3c8dbc 0 \. -- -- Name: events_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('public.events_id_seq', 1, false); -- -- Data for Name: permissions; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY public.permissions (id, permkey, permname, parent_id, lft, rgt, root_id, addtime, sortid, issys, permtype, rel_id) FROM stdin; 125 admin_manage Admin Manage 0 0 0 0 2015-11-21 20:12:58 0 0 0 0 782 admin-permissions Permissions 125 0 0 0 2015-11-23 13:46:27 0 0 0 0 783 admin-add-permission Add Permission 782 0 0 0 2015-11-23 13:46:40 0 0 0 0 784 admin-del-permission Delete Permission 782 0 0 0 2015-11-23 13:46:55 0 0 0 0 785 admin-edit-permission Edit Permission 782 0 0 0 2015-11-23 13:47:07 0 0 0 0 821 admin-events Calendar 125 0 0 0 2015-11-24 14:41:40 0 0 0 0 822 admin-add-event Add Event 821 0 0 0 2015-11-24 14:41:54 0 0 0 0 823 admin-del-event Delete Event 821 0 0 0 2015-11-24 14:42:08 0 0 0 0 824 admin-edit-event Edit Event 821 0 0 0 2015-11-24 14:42:23 0 0 0 0 833 admin-users Users 125 0 0 0 2015-11-24 14:49:07 0 0 0 0 834 admin-add-user Add User 833 0 0 0 2015-11-24 14:49:22 0 0 0 0 835 admin-del-user Delete User 833 0 0 0 2015-11-24 14:49:37 0 0 0 0 836 admin-edit-user Edit User 833 0 0 0 2015-11-24 14:49:50 0 0 0 0 837 admin-roles Roles 125 0 0 0 2015-11-24 14:50:07 0 0 0 0 838 admin-add-role Add Role 837 0 0 0 2015-11-24 14:50:20 0 0 0 0 839 admin-del-role Delete Role 837 0 0 0 2015-11-24 14:50:39 0 0 0 0 840 admin-edit-role Edit Role 837 0 0 0 2015-11-24 14:50:54 0 0 0 0 841 admin-login-log Login Log 125 0 0 0 2015-11-24 14:51:28 0 0 0 0 858 admin-login-log1 log 0 0 0 0 2018-09-17 16:49:25 0 0 0 0 \. -- -- Name: permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('public.permissions_id_seq', 1, false); -- -- Name: permissions_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('public.permissions_seq', 862, true); -- -- Data for Name: role_perms; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY public.role_perms (id, roleid, permid, value, adddate) FROM stdin; 5287 5 125 1 2015-11-29 01:53:18 5288 5 782 1 2015-11-29 01:53:18 5289 5 783 1 2015-11-29 01:53:18 5290 5 784 1 2015-11-29 01:53:18 5291 5 785 1 2015-11-29 01:53:18 5292 5 821 1 2015-11-29 01:53:18 5293 5 822 1 2015-11-29 01:53:18 5294 5 823 1 2015-11-29 01:53:18 5295 5 824 1 2015-11-29 01:53:18 5296 5 833 1 2015-11-29 01:53:18 5297 5 834 1 2015-11-29 01:53:18 5298 5 835 1 2015-11-29 01:53:18 5299 5 836 1 2015-11-29 01:53:18 5300 5 837 1 2015-11-29 01:53:18 5301 5 838 1 2015-11-29 01:53:18 5302 5 839 1 2015-11-29 01:53:18 5303 5 840 1 2015-11-29 01:53:18 5304 5 841 1 2015-11-29 01:53:18 5305 4 125 0 2015-11-29 01:53:40 5306 4 782 0 2015-11-29 01:53:40 5307 4 783 0 2015-11-29 01:53:40 5308 4 784 0 2015-11-29 01:53:40 5309 4 785 0 2015-11-29 01:53:40 5310 4 821 0 2015-11-29 01:53:40 5311 4 822 0 2015-11-29 01:53:40 5312 4 823 0 2015-11-29 01:53:40 5313 4 824 0 2015-11-29 01:53:40 5314 4 833 0 2015-11-29 01:53:40 5315 4 834 0 2015-11-29 01:53:40 5316 4 835 0 2015-11-29 01:53:40 5317 4 836 0 2015-11-29 01:53:40 5318 4 837 0 2015-11-29 01:53:40 5319 4 838 0 2015-11-29 01:53:40 5320 4 839 0 2015-11-29 01:53:40 5321 4 840 0 2015-11-29 01:53:40 5322 4 841 0 2015-11-29 01:53:40 5323 5 858 1 2018-09-17 16:49:25 \. -- -- Name: role_perms_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('public.role_perms_id_seq', 1, false); -- -- Data for Name: roles; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY public.roles (id, rolename, issys, company_id) FROM stdin; 3 Admin 1 0 4 Register User 1 0 5 Super Admin 1 0 \. -- -- Name: roles_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('public.roles_id_seq', 1, false); -- -- Data for Name: user_perms; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY public.user_perms (id, userid, permid, value, adddate) FROM stdin; \. -- -- Name: user_perms_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('public.user_perms_id_seq', 1, false); -- -- Data for Name: user_roles; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY public.user_roles (userid, roleid, adddate, id) FROM stdin; 3 5 2015-11-29 02:09:33 79 23214 3 2018-10-09 19:46:54 80 23214 5 2018-10-09 19:46:54 81 \. -- -- Name: user_roles_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('public.user_roles_id_seq', 1, true); -- -- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY public.users (id, username, password, email, cur_login_time, cur_login_ip, cur_login_area, last_login_ip, last_login_area, last_login_time, reg_time, reg_ip, reg_area, status, login_times, owner_sites, parent_user_id, company_id, photo, user_type, issys) FROM stdin; 23214 esteban $2y$10$TNexZ8Lf26KzDBilaXnaN.IzVmr8dZnV7wn6w2DFI6Z2y24.3aLOi <EMAIL> 2018-10-11 22:11:51 127.0.0.1 127.0.0.1 2018-10-11 14:20:42 2018-10-09 19:46:54 1 3 \N 0 0 \N 0 0 3 admin $2y$10$xHMQKNYwEkhGwGIDM9rKo.lu2ZDUypqgv4oOi2DF2cTzH5n5sR2r. <EMAIL> 2018-10-11 23:11:47 127.0.0.1 127.0.0.1 2018-10-11 22:13:25 2013-09-18 17:33:48 ::1 1 790 a:6:{i:0;s:2:\\"52\\";i:1;s:2:\\"53\\";i:2;s:2:\\"55\\";i:3;s:2:\\"56\\";i:4;s:2:\\"57\\";i:5;s:2:\\"58\\";} 0 0 \N 1 1 \. -- -- Name: permissions permissions_permkey_parent_id_lft_rgt_root_id_issys_key; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.permissions ADD CONSTRAINT permissions_permkey_parent_id_lft_rgt_root_id_issys_key UNIQUE (permkey, parent_id, lft, rgt, root_id, issys); -- -- Name: permissions permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.permissions ADD CONSTRAINT permissions_pkey PRIMARY KEY (id); -- -- Name: role_perms role_perms_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.role_perms ADD CONSTRAINT role_perms_pkey PRIMARY KEY (id); -- -- Name: role_perms role_perms_roleid_permid_key; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.role_perms ADD CONSTRAINT role_perms_roleid_permid_key UNIQUE (roleid, permid); -- -- Name: roles roles_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.roles ADD CONSTRAINT roles_pkey PRIMARY KEY (id, issys, rolename); -- -- Name: user_perms user_perms_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.user_perms ADD CONSTRAINT user_perms_pkey PRIMARY KEY (id); -- -- Name: user_perms user_perms_userid_permid_key; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.user_perms ADD CONSTRAINT user_perms_userid_permid_key UNIQUE (userid, permid); -- -- Name: user_roles user_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.user_roles ADD CONSTRAINT user_roles_pkey PRIMARY KEY (id); -- -- Name: user_roles user_roles_userid_roleid_key; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.user_roles ADD CONSTRAINT user_roles_userid_roleid_key UNIQUE (userid, roleid); -- -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.users ADD CONSTRAINT users_pkey PRIMARY KEY (id); -- -- PostgreSQL database dump complete --
<filename>efatwa.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 08, 2018 at 01:51 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 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: `efatwa` -- -- -------------------------------------------------------- -- -- Table structure for table `authors` -- CREATE TABLE `authors` ( `id` int(11) NOT NULL, `name` varchar(45) DEFAULT NULL, `bio` varchar(45) DEFAULT NULL, `photo` varchar(45) DEFAULT NULL, `cv` varchar(45) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE `categories` ( `id` int(11) NOT NULL, `name` varchar(100) DEFAULT NULL, `description` varchar(100) DEFAULT NULL, `type_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `categories` -- INSERT INTO `categories` (`id`, `name`, `description`, `type_id`) VALUES (1, 'DSN', 'Fatwa dari Dewan Syariah Nasional', 1), (2, 'LPPOM dan IPTEK', NULL, 1), (3, 'Akidah dan Aliran Agama', NULL, 1), (4, 'Ibadah', NULL, 1), (5, 'Sosial Budaya', NULL, 1); -- -------------------------------------------------------- -- -- Table structure for table `collections` -- CREATE TABLE `collections` ( `id` int(11) NOT NULL, `code` varchar(100) DEFAULT NULL, `date` varchar(45) DEFAULT NULL, `type_id` int(11) NOT NULL, `title` varchar(100) DEFAULT NULL, `content` varchar(45) DEFAULT NULL, `description` text, `filename` varchar(100) DEFAULT NULL, `user_id` int(11) DEFAULT NULL, `category_id` int(11) DEFAULT NULL, `parent` int(11) DEFAULT NULL, `author_id` int(11) DEFAULT NULL, `thumbnail` varchar(100) NOT NULL, `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `collections` -- INSERT INTO `collections` (`id`, `code`, `date`, `type_id`, `title`, `content`, `description`, `filename`, `user_id`, `category_id`, `parent`, `author_id`, `thumbnail`, `created_at`, `updated_at`) VALUES (8, '40 Tahun 2011', '2011-10-24', 1, 'BADAL THAWAF IFADHAH', '', 'Badal Thawaf Ifadhah adalah pelaksanaan thawaf ifadhah yang merupakan rukun haji yang dilakukankan oleh orang lain untuk menggantikan seseorang yang sedang berhaji karena sakit atau sebab lain.', '1483972025_No.-40-Badal-Tawaf-Ifadhah.pdf', 85, 4, NULL, NULL, '', '2017-01-09 00:27:05', '2017-01-09 21:27:05'), (9, '22 Tahun 2011', '2011-05-26', 1, 'PERTAMBANGAN RAMAH LINGKUNGAN', '', 'Pertambangan adalah sebagian atau seluruh tahapan kegiatan dalam rangka penelitian, pengelolaan, dan pengusahaan mineral atau batubara, yang meliputi penyelidikan umum, eksplorasi, studi kelayakan, konstruksi, pertambangan, pengolahan, dan pemurnian, pengangkutan dan penjualan, serta kegiatan pascatambang.', '1483972103_No.-22-Pertambangan-Ramah-Lingkungan_final.pdf', 85, 5, NULL, NULL, '', '2017-01-09 00:28:23', '2017-01-09 21:28:23'); -- -- Triggers `collections` -- DELIMITER $$ CREATE TRIGGER `update_collection` BEFORE UPDATE ON `collections` FOR EACH ROW SET NEW.`updated_at` = NOW() $$ DELIMITER ; -- -------------------------------------------------------- -- -- Table structure for table `permissions` -- CREATE TABLE `permissions` ( `id` int(10) NOT NULL, `label` varchar(100) NOT NULL, `name_permission` varchar(100) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `permission_role` -- CREATE TABLE `permission_role` ( `id` int(10) NOT NULL, `role_id` int(10) NOT NULL, `permission_id` int(10) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `roles` -- CREATE TABLE `roles` ( `id` int(10) NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `roles` -- INSERT INTO `roles` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'Superadmin', '2015-02-02 20:29:40', '2016-08-20 22:45:13'); -- -------------------------------------------------------- -- -- Table structure for table `settings` -- CREATE TABLE `settings` ( `id` int(11) NOT NULL, `name` varchar(100) NOT NULL, `label` varchar(100) NOT NULL, `value` varchar(255) NOT NULL, `description` text NOT NULL, `category` varchar(100) NOT NULL, `type` char(10) DEFAULT NULL, `class` varchar(100) DEFAULT NULL, `disabled` tinyint(1) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `settings` -- INSERT INTO `settings` (`id`, `name`, `label`, `value`, `description`, `category`, `type`, `class`, `disabled`, `created_at`, `updated_at`) VALUES (1, 'site_name', 'Nama Situs', 'E-Fatwa', 'Pengaturan untuk nama situs atau halaman yang akan tampil di logo header', 'Umum', NULL, NULL, 0, '2016-08-20 08:45:36', '2016-10-09 15:47:27'), (2, 'pt_name', 'Nama PT', 'Majelis Ulama Indonesia', 'Nama Perguruan tinggi yang muncul di situs', 'Umum', NULL, NULL, 0, '2016-08-20 08:45:36', '2016-10-21 21:56:23'), (3, 'motto', 'Motto', '<NAME>', '', 'Umum', NULL, NULL, 0, '2016-08-20 08:45:36', '2016-09-10 19:41:56'), (4, 'email_from', 'Email Pengirim', '<EMAIL>', 'Alamat pengirim email notifikasi dari aplikasi', 'Email', NULL, NULL, 0, '2016-09-09 09:25:12', '2016-09-10 19:41:36'), (5, 'penerima_notifikasi', 'Penerima Notikasi', '<EMAIL>', 'Daftar alamat email untuk menerima email notifikasi dari aplikasi', 'Email', NULL, NULL, 0, '2016-09-09 10:58:54', '2016-12-23 15:06:10'), (6, 'semester_aktif', 'Semester yg sekarang Aktif', '1', 'Nilai 1 untuk \"Ganjil\" dan Nilai 2 Untuk Genap', 'Akademik', NULL, NULL, 1, '2016-10-09 01:22:31', '2016-12-14 17:58:44'), (7, 'TA_aktif', 'Tahun Akademik Aktif', '2', 'Tahun akademik yang sedang aktif sekarang', 'Akademik', 'list', '\\App\\Tahunakademik', 1, '2016-11-06 09:32:44', '2016-12-14 13:41:33'), (8, 'kurikulum_aktif', 'Kurikulum Aktif', '2', '', 'Akademik', 'list', '\\App\\Kurikulum', 0, '2016-11-14 19:53:18', '2016-12-09 21:49:13'), (9, 'min_bayar_kuliah_utk_kartu_ujian', 'Minimal bayar dapat kartu ujian', '75', 'Minimal Pembayaran kuliah utk dapat kartu ujian. masukkan nilainya saja tanpa %', 'Biaya', NULL, NULL, 0, '2016-11-21 10:16:50', '2016-11-22 00:17:39'), (10, 'app_logo', 'Logo Aplikasi', 'Logo_MUI.png', '', 'Umum', NULL, NULL, 0, '2017-01-02 04:03:17', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `types` -- CREATE TABLE `types` ( `id` int(11) NOT NULL, `name` varchar(100) DEFAULT NULL, `description` varchar(45) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `types` -- INSERT INTO `types` (`id`, `name`, `description`) VALUES (1, 'Fatwa', NULL), (2, 'Ijtima\'', NULL), (3, 'Buku', NULL), (4, 'Artikel', NULL); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(10) NOT NULL, `role_id` int(10) NOT NULL, `username` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `activated` tinyint(1) NOT NULL DEFAULT '0', `activation_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `activated_at` timestamp NULL DEFAULT NULL, `last_login` timestamp NULL DEFAULT NULL, `reset_password_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `first_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `last_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `api_token` varchar(60) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime NOT NULL, `photo` varchar(100) COLLATE utf8_unicode_ci DEFAULT 'default.jpg' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `role_id`, `username`, `email`, `password`, `activated`, `activation_code`, `activated_at`, `last_login`, `reset_password_code`, `remember_token`, `first_name`, `last_name`, `api_token`, `created_at`, `updated_at`, `photo`) VALUES (85, 2, 'admin', '<EMAIL>', <PASSWORD>', 1, NULL, NULL, NULL, 'DyIU8daVDV79KYftqqLVWpgXMFtbL2ww', 'zLnfEr0irZzElQykcYfuNG14MS7ouMY2K8HqZDpf5TmrHCCkrd908WGUSte5', 'Admin', 'Super', '', '2016-11-27 05:29:35', '2017-01-09 14:28:38', '1483368029648cd749759267f65925c344b43e1613.jpg'); -- -- Indexes for dumped tables -- -- -- Indexes for table `authors` -- ALTER TABLE `authors` ADD PRIMARY KEY (`id`); -- -- Indexes for table `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`,`type_id`), ADD KEY `fk_categories_types1_idx` (`type_id`); -- -- Indexes for table `collections` -- ALTER TABLE `collections` ADD PRIMARY KEY (`id`,`type_id`), ADD KEY `fk_collections_types_idx` (`type_id`), ADD KEY `category_id` (`category_id`); -- -- Indexes for table `permissions` -- ALTER TABLE `permissions` ADD PRIMARY KEY (`id`); -- -- Indexes for table `permission_role` -- ALTER TABLE `permission_role` ADD PRIMARY KEY (`id`), ADD KEY `idgroup` (`role_id`,`permission_id`), ADD KEY `idpermission` (`permission_id`), ADD KEY `idrole` (`role_id`), ADD KEY `idpermission_2` (`permission_id`), ADD KEY `idrole_2` (`role_id`); -- -- Indexes for table `roles` -- ALTER TABLE `roles` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `groups_name_unique` (`name`); -- -- Indexes for table `settings` -- ALTER TABLE `settings` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `name` (`name`); -- -- Indexes for table `types` -- ALTER TABLE `types` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`), ADD UNIQUE KEY `username` (`username`), ADD KEY `users_activation_code_index` (`activation_code`), ADD KEY `users_reset_password_code_index` (`reset_password_code`), ADD KEY `idgroup` (`role_id`), ADD KEY `role_id` (`role_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `authors` -- ALTER TABLE `authors` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `categories` -- ALTER TABLE `categories` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `collections` -- ALTER TABLE `collections` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `permissions` -- ALTER TABLE `permissions` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `permission_role` -- ALTER TABLE `permission_role` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `roles` -- ALTER TABLE `roles` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `settings` -- ALTER TABLE `settings` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `types` -- ALTER TABLE `types` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=86; -- -- Constraints for dumped tables -- -- -- Constraints for table `categories` -- ALTER TABLE `categories` ADD CONSTRAINT `categories_ibfk_1` FOREIGN KEY (`type_id`) REFERENCES `types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
select * from liste where OBR_OBRACUN=177 and RADNIK_RADNIK in ('008661','008696','007903','007818','008745')
\set id random(1, {{ recordcount }}) select data->0 from jsonb_test where id = :id; select data->38 from jsonb_test where id = :id; select * from jsonb_test where id = :id; update jsonb_test set data = jsonb_set(data, '{0}', '"test"') where id = :id; update jsonb_test set data = jsonb_set(data, '{38}', '"test"') where id = :id;
<filename>SQL/UpdateLogExist.sql /*If I am creating a function, the script block will be executed before this script is called*/ if not exists (select * from UpdateLog where ScriptID = '@ScriptID') begin @ScriptBlock @InsertUpdateLog select 1 [Inserted]; end else begin select 0 [Inserted]; end
ALTER TABLE Employee ADD COLUMN email VARCHAR(255); ALTER TABLE Employee ADD UNIQUE (email); -- transfer the email to the employee UPDATE Employee e SET email = (SELECT email FROM Credential WHERE id = e.id); ALTER TABLE Employee ALTER COLUMN email SET NOT NULL; CREATE TABLE Settings ( id INT8 NOT NULL, type VARCHAR(255), value VARCHAR(255) NOT NULL, employee_id INT8 NOT NULL, PRIMARY KEY (id) ); alter table Settings add constraint FK_18fk82qvt48n13545pq4dt2fr foreign key (employee_id) references Employee; -- transfer locale setting from credential to settins INSERT INTO Settings (id, type, value, employee_id) ( SELECT nextval('hibernate_sequence'), 'LOCALE', locale, id FROM Credential ); DROP TABLE credential_authority; DROP TABLE credential; DROP TABLE authority;
<filename>buildmimic/aws-athena/mimic-aws-athena-ddl.sql CREATE EXTERNAL TABLE `admissions`( `row_id` int, `subject_id` int, `hadm_id` int, `admittime` timestamp, `dischtime` timestamp, `deathtime` timestamp, `admission_type` string, `admission_location` string, `discharge_location` string, `insurance` string, `language` string, `religion` string, `marital_status` string, `ethnicity` string, `edregtime` timestamp, `edouttime` timestamp, `diagnosis` string, `hospital_expire_flag` smallint, `has_chartevents_data` smallint) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/admissions/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='239', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='7903', 'sizeKey'='2525254', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `callout`( `row_id` int, `subject_id` int, `hadm_id` int, `submit_wardid` int, `submit_careunit` string, `curr_wardid` int, `curr_careunit` string, `callout_wardid` int, `callout_service` string, `request_tele` smallint, `request_resp` smallint, `request_cdiff` smallint, `request_mrsa` smallint, `request_vre` smallint, `callout_status` string, `callout_outcome` string, `discharge_wardid` int, `acknowledge_status` string, `createtime` timestamp, `updatetime` timestamp, `acknowledgetime` timestamp, `outcometime` timestamp, `firstreservationtime` timestamp, `currentreservationtime` timestamp) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/callout/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='249', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='3341', 'sizeKey'='1205036', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `caregivers`( `row_id` int, `cgid` int, `label` string, `description` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/caregivers/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='30', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='2118', 'sizeKey'='49529', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `chartevents`( `row_id` int, `subject_id` int, `hadm_id` int, `icustay_id` int, `itemid` int, `charttime` timestamp, `storetime` timestamp, `cgid` int, `value` string, `valuenum` double, `valueuom` string, `warning` int, `error` int, `resultstatus` string, `stopped` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/chartevents/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='114', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='48181790', 'sizeKey'='4287004212', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `cptevents`( `row_id` int, `subject_id` int, `hadm_id` int, `costcenter` string, `chartdate` timestamp, `cpt_cd` string, `cpt_number` int, `cpt_suffix` string, `ticket_id_seq` int, `sectionheader` string, `subsectionheader` string, `description` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/cptevents/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='118', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='88989', 'sizeKey'='4971247', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `d_cpt`( `row_id` int, `category` smallint, `sectionrange` string, `sectionheader` string, `subsectionrange` string, `subsectionheader` string, `codesuffix` string, `mincodeinsubsection` int, `maxcodeinsubsection` int) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/d-cpt/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='118', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='44', 'sizeKey'='3951', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `d_icd_diagnoses`( `row_id` int, `icd9_code` string, `short_title` string, `long_title` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/d-icd-diagnoses/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='112', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='3662', 'sizeKey'='284950', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `d_icd_procedures`( `row_id` int, `icd9_code` string, `short_title` string, `long_title` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/d-icd-procedures/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='43', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='2099', 'sizeKey'='75848', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `d_items`( `row_id` int, `itemid` int, `label` string, `abbreviation` string, `dbsource` string, `linksto` string, `category` string, `unitname` string, `param_type` string, `conceptid` int) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/d-items/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='82', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='2853', 'sizeKey'='187922', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `d_labitems`( `row_id` int, `itemid` int, `label` string, `fluid` string, `category` string, `loinc_code` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/d-labitems/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='66', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='266', 'sizeKey'='11492', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `datetimeevents`( `row_id` int, `subject_id` int, `hadm_id` int, `icustay_id` int, `itemid` int, `charttime` timestamp, `storetime` timestamp, `cgid` int, `value` timestamp, `valueuom` string, `warning` smallint, `error` smallint, `resultstatus` string, `stopped` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/datetimeevents/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='112', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='822117', 'sizeKey'='55042057', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `diagnoses_icd`( `row_id` int, `subject_id` int, `hadm_id` int, `seq_num` int, `icd9_code` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/diagnoses-icd/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'averageRecordSize'='33', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='190697', 'sizeKey'='4717463', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `drgcodes`( `row_id` int, `subject_id` int, `hadm_id` int, `drg_type` string, `drg_code` string, `description` string, `drg_severity` smallint, `drg_mortality` smallint) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/drgcodes/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='102', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='15163', 'sizeKey'='1750041', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `icustays`( `row_id` int, `subject_id` int, `hadm_id` int, `icustay_id` int, `dbsource` string, `first_careunit` string, `last_careunit` string, `first_wardid` smallint, `last_wardid` smallint, `intime` timestamp, `outtime` timestamp, `los` double) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/icustays/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='112', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='13639', 'sizeKey'='1990193', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `inputevents_cv`( `row_id` int, `subject_id` int, `hadm_id` int, `icustay_id` int, `charttime` timestamp, `itemid` int, `amount` double, `amountuom` string, `rate` double, `rateuom` string, `storetime` timestamp, `cgid` int, `orderid` int, `linkorderid` int, `stopped` string, `newbottle` int, `originalamount` double, `originalamountuom` string, `originalroute` string, `originalrate` double, `originalrateuom` string, `originalsite` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/inputevents-cv/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='169', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='3139155', 'sizeKey'='422105376', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `inputevents_mv`( `row_id` int, `subject_id` int, `hadm_id` int, `icustay_id` int, `starttime` timestamp, `endtime` timestamp, `itemid` int, `amount` double, `amountuom` string, `rate` double, `rateuom` string, `storetime` timestamp, `cgid` int, `orderid` int, `linkorderid` int, `ordercategoryname` string, `secondaryordercategoryname` string, `ordercomponenttypedescription` string, `ordercategorydescription` string, `patientweight` double, `totalamount` double, `totalamountuom` string, `isopenbag` smallint, `continueinnextdept` smallint, `cancelreason` smallint, `statusdescription` string, `comments_editedby` string, `comments_canceledby` string, `comments_date` timestamp, `originalamount` double, `originalrate` double) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/inputevents-mv/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='381', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='324529', 'sizeKey'='150909733', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `labevents`( `row_id` int, `subject_id` int, `hadm_id` int, `itemid` int, `charttime` timestamp, `value` string, `valuenum` double, `valueuom` string, `flag` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/labevents/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='61', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='6919679', 'sizeKey'='335843735', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `microbiologyevents`( `row_id` int, `subject_id` int, `hadm_id` int, `chartdate` timestamp, `charttime` timestamp, `spec_itemid` int, `spec_type_desc` string, `org_itemid` int, `org_name` string, `isolate_num` smallint, `ab_itemid` int, `ab_name` string, `dilution_text` string, `dilution_comparison` string, `dilution_value` double, `interpretation` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/microbiologyevents/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='139', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='79795', 'sizeKey'='7612452', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `noteevents`( `row_id` int, `subject_id` int, `hadm_id` int, `chartdate` timestamp, `charttime` timestamp, `storetime` timestamp, `category` string, `description` string, `cgid` int, `iserror` char, `text` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/noteevents/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='true', 'averageRecordSize'='4483', 'classification'='csv', 'columnsOrdered'='true', 'commentCharacter'='#', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='158956', 'sizeKey'='1165661452', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `outputevents`( `row_id` int, `subject_id` int, `hadm_id` int, `icustay_id` int, `charttime` timestamp, `itemid` int, `value` double, `valueuom` string, `storetime` timestamp, `cgid` int, `stopped` string, `newbottle` char(1), `iserror` int) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/outputevents/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='true', 'averageRecordSize'='103', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='1115852', 'sizeKey'='58436520', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `patients`( `row_id` int, `subject_id` int, `gender` string, `dob` timestamp, `dod` timestamp, `dod_hosp` timestamp, `dod_ssn` timestamp, `expire_flag` int) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/patients/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='62', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='11236', 'sizeKey'='571615', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `prescriptions`( `row_id` int, `subject_id` int, `hadm_id` int, `icustay_id` int, `startdate` timestamp, `enddate` timestamp, `drug_type` string, `drug` string, `drug_name_poe` string, `drug_name_generic` string, `formulary_drug_cd` string, `gsn` string, `ndc` string, `prod_strength` string, `dose_val_rx` string, `dose_unit_rx` string, `form_val_disp` string, `form_unit_disp` string, `route` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/prescriptions/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='192', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='627454', 'sizeKey'='103492087', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `procedureevents_mv`( `row_id` int, `subject_id` int, `hadm_id` int, `icustay_id` int, `starttime` timestamp, `endtime` timestamp, `itemid` int, `value` double, `valueuom` string, `location` string, `locationcategory` string, `storetime` timestamp, `cgid` int, `orderid` int, `linkorderid` int, `ordercategoryname` string, `secondaryordercategoryname` string, `ordercategorydescription` string, `isopenbag` smallint, `continueinnextdept` smallint, `cancelreason` smallint, `statusdescription` string, `comments_editedby` string, `comments_canceledby` string, `comments_date` timestamp) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/procedureevents-mv/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='242', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='27055', 'sizeKey'='7814321', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `procedures_icd`( `row_id` int, `subject_id` int, `hadm_id` int, `seq_num` int, `icd9_code` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/procedures-icd/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='34', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='66456', 'sizeKey'='1795004', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `services`( `row_id` int, `subject_id` int, `hadm_id` int, `transfertime` timestamp, `prev_service` string, `curr_service` string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/services/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='57', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='15255', 'sizeKey'='1156392', 'skip.header.line.count'='1', 'typeOfData'='file'); CREATE EXTERNAL TABLE `transfers`( `row_id` int, `subject_id` int, `hadm_id` int, `icustay_id` int, `dbsource` string, `eventtype` string, `prev_careunit` string, `curr_careunit` string, `prev_wardid` smallint, `curr_wardid` smallint, `intime` timestamp, `outtime` timestamp, `los` double) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://mimic-iii-physionet/parquet/transfers/' TBLPROPERTIES ( 'CrawlerSchemaDeserializerVersion'='1.0', 'CrawlerSchemaSerializerVersion'='1.0', 'UPDATED_BY_CRAWLER'='mimiciiitest', 'areColumnsQuoted'='false', 'averageRecordSize'='118', 'classification'='csv', 'columnsOrdered'='true', 'compressionType'='gzip', 'delimiter'=',', 'objectCount'='1', 'recordCount'='45850', 'sizeKey'='5479949', 'skip.header.line.count'='1', 'typeOfData'='file');
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.36) # Database: website_maker # Generation Time: 2022-02-11 08:20:57 +0000 # ************************************************************ /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; # Dump of table page_drafts # ------------------------------------------------------------ DROP TABLE IF EXISTS `page_drafts`; CREATE TABLE `page_drafts` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `title` varchar(255) NOT NULL DEFAULT 'Website-Maker' COMMENT '标题', `description` varchar(255) NOT NULL DEFAULT 'Website Maker' COMMENT '描述', `keywords` varchar(255) NOT NULL DEFAULT 'Website-Maker,Low-Code' COMMENT '关键字', `route` varchar(255) NOT NULL DEFAULT '' COMMENT '路由', `metadata` longtext NOT NULL COMMENT '页面数据', `created_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `updated_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `deleted_time` timestamp NULL DEFAULT NULL, `created_by` varchar(255) DEFAULT NULL, `updated_by` varchar(255) DEFAULT NULL, `deleted_by` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `page_drafts` WRITE; /*!40000 ALTER TABLE `page_drafts` DISABLE KEYS */; INSERT INTO `page_drafts` (`id`, `name`, `title`, `description`, `keywords`, `route`, `metadata`, `created_time`, `updated_time`, `deleted_time`, `created_by`, `updated_by`, `deleted_by`) VALUES (1,'Website-Maker','Website-Maker','Website Maker','website,maker,nuxt3,low-code','/maker/website-maker','[{\"zhName\":\"横幅-浅色背景\",\"enName\":\"BannerShallowBackground\",\"demoImg\":\"/_nuxt/assets/img/demo-banner__shallow.jpg\",\"data\":{\"title\":\"Website-Maker\",\"description\":\"基于 Nuxt3 的低代码建站方案\",\"img\":{\"Webp\":\"https://web-cdn.agora.io/website-maker/imgs/demo-banner__shallow.webp\",\"NoWebp\":\"https://web-cdn.agora.io/website-maker/imgs/demo-banner__shallow.jpg\"}},\"key\":\"BannerShallowBackground-1644565390528\"},{\"zhName\":\"免费10000分钟-深色背景\",\"enName\":\"Free10000MinutesDeepBackground\",\"demoImg\":\"/_nuxt/assets/img/demo-free-10000-minutes__deep.jpg\",\"data\":{\"title\":\"解放双手!告别996\",\"btnText\":\"了解一下\",\"btnLink\":\"https://github.com/hd996/website-maker\",\"btnBlank\":true},\"key\":\"Free10000MinutesDeepBackground-1644565438710\"}]','2022-02-11 15:44:48','2022-02-11 16:17:44',NULL,NULL,NULL,NULL); /*!40000 ALTER TABLE `page_drafts` ENABLE KEYS */; UNLOCK TABLES; # Dump of table pages # ------------------------------------------------------------ DROP TABLE IF EXISTS `pages`; CREATE TABLE `pages` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `title` varchar(255) NOT NULL DEFAULT 'Website-Maker' COMMENT '标题', `description` varchar(255) NOT NULL DEFAULT 'Website Maker' COMMENT '描述', `keywords` varchar(255) NOT NULL DEFAULT 'Website-Maker,Low-Code' COMMENT '关键字', `route` varchar(255) NOT NULL DEFAULT '' COMMENT '路由', `metadata` longtext NOT NULL COMMENT '页面数据', `created_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `updated_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `deleted_time` timestamp NULL DEFAULT NULL, `created_by` varchar(255) DEFAULT NULL, `updated_by` varchar(255) DEFAULT NULL, `deleted_by` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `pages` WRITE; /*!40000 ALTER TABLE `pages` DISABLE KEYS */; INSERT INTO `pages` (`id`, `name`, `title`, `description`, `keywords`, `route`, `metadata`, `created_time`, `updated_time`, `deleted_time`, `created_by`, `updated_by`, `deleted_by`) VALUES (1,'Website-Maker','Website-Maker','Website Maker','website,maker,nuxt3,low-code','/maker/website-maker','[{\"zhName\":\"横幅-浅色背景\",\"enName\":\"BannerShallowBackground\",\"demoImg\":\"/_nuxt/assets/img/demo-banner__shallow.jpg\",\"data\":{\"title\":\"Website-Maker\",\"description\":\"基于 Nuxt3 的低代码建站方案\",\"img\":{\"Webp\":\"https://web-cdn.agora.io/website-maker/imgs/demo-banner__shallow.webp\",\"NoWebp\":\"https://web-cdn.agora.io/website-maker/imgs/demo-banner__shallow.jpg\"}},\"key\":\"BannerShallowBackground-1644565390528\"},{\"zhName\":\"免费10000分钟-深色背景\",\"enName\":\"Free10000MinutesDeepBackground\",\"demoImg\":\"/_nuxt/assets/img/demo-free-10000-minutes__deep.jpg\",\"data\":{\"title\":\"解放双手!告别996\",\"btnText\":\"了解一下\",\"btnLink\":\"https://github.com/hd996/website-maker\",\"btnBlank\":true},\"key\":\"Free10000MinutesDeepBackground-1644565438710\"}]','2022-02-11 15:44:48','2022-02-11 16:17:46',NULL,NULL,NULL,NULL); /*!40000 ALTER TABLE `pages` ENABLE KEYS */; UNLOCK TABLES; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- add a new permission for modifying award report tracking INSERT INTO KRIM_PERM_T (PERM_ID, OBJ_ID, VER_NBR, PERM_TMPL_ID, NMSPC_CD, NM, DESC_TXT, ACTV_IND) VALUES (KRIM_PERM_ID_BS_S.NEXTVAL, SYS_GUID(), 1, (SELECT PERM_TMPL_ID FROM KRIM_PERM_TMPL_T WHERE NM = 'Edit Document'), 'KC-AWARD', 'Modify Award Report Tracking', 'Modify the report tracking records of an award at any time.', 'Y') / -- associate the new permission with the Award Modifier role. INSERT INTO KRIM_ROLE_PERM_T (ROLE_PERM_ID, OBJ_ID, VER_NBR, ROLE_ID, PERM_ID, ACTV_IND) VALUES (KRIM_ROLE_PERM_ID_BS_S.NEXTVAL, SYS_GUID(), 1, (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE ROLE_NM = 'Award Modifier' AND NMSPC_CD = 'KC-AWARD'), (SELECT PERM_ID FROM KRIM_PERM_T WHERE NM = 'Modify Award Report Tracking' AND NMSPC_CD = 'KC-AWARD'), 'Y') / -- Create a new role just for maintaining award report tracking INSERT INTO KRIM_ROLE_T (ROLE_ID, OBJ_ID, VER_NBR, ROLE_NM, NMSPC_CD, DESC_TXT, KIM_TYP_ID, ACTV_IND, LAST_UPDT_DT) VALUES (KRIM_ROLE_ID_BS_S.NEXTVAL, SYS_GUID(), 1, 'Maintain Award Report Tracking', 'KC-AWARD', 'Role to maintain award report tracking records.', (SELECT KIM_TYP_ID FROM KRIM_TYP_T WHERE NM = 'Default' and NMSPC_CD = 'KUALI'), 'Y', SYSDATE) / -- associate the new role and permission INSERT INTO KRIM_ROLE_PERM_T (ROLE_PERM_ID, OBJ_ID, VER_NBR, ROLE_ID, PERM_ID, ACTV_IND) VALUES (KRIM_ROLE_PERM_ID_BS_S.NEXTVAL, SYS_GUID(), 1, (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE ROLE_NM = 'Maintain Award Report Tracking' AND NMSPC_CD = 'KC-AWARD'), (SELECT PERM_ID FROM KRIM_PERM_T WHERE NM = 'Modify Award Report Tracking' AND NMSPC_CD = 'KC-AWARD'), 'Y') /
<gh_stars>0 -- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2019] EMBL-European Bioinformatics Institute -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. # patch_77_78_c.sql # # Title: Add new tables to store protein classification # # Description: # Add new tables that can be used to store the classification # of seq_members against an HMM library CREATE TABLE hmm_annot ( seq_member_id int(10) unsigned NOT NULL, # FK homology.homology_id model_id varchar(40) DEFAULT NULL, evalue float, PRIMARY KEY (seq_member_id), KEY (model_id) ) COLLATE=latin1_swedish_ci ENGINE=MyISAM; CREATE TABLE hmm_curated_annot ( seq_member_stable_id varchar(40) NOT NULL, model_id varchar(40) DEFAULT NULL, library_version varchar(40) NOT NULL, annot_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, reason MEDIUMTEXT, PRIMARY KEY (seq_member_stable_id), KEY (model_id) ) COLLATE=latin1_swedish_ci ENGINE=MyISAM; # Patch identifier INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'patch', 'patch_77_78_c.sql|hmm_tables');
with base as ( select * from {{ ref('stg_lever__interview_tmp') }} ), fields as ( select {{ fivetran_utils.fill_staging_columns( source_columns=adapter.get_columns_in_relation(ref('stg_lever__interview_tmp')), staging_columns=get_interview_columns() ) }} from base ), final as ( select _fivetran_synced, canceled_at, created_at, creator_id as creator_user_id, date as occurred_at, duration as duration_minutes, feedback_reminder as feedback_reminder_frequency, gcal_event_url, id as interview_id, location, note, opportunity_id, panel_id, stage_id as opportunity_stage_id, subject, timezone from fields ) select * from final
<filename>src/org.xtuml.bp.io.mdl.test/models/sql/enum2.sql -- BP 6.1D content: domain syschar: 3 INSERT INTO S_DOM VALUES (111189, 'enum2', 'This test is a helper domain for enum1. See enum1 for a complete description. ** Note: This domain cannot be run in Verifier as it relies on the transfer of data between two OOA domains via FBO.', 0, 1); INSERT INTO S_CDT VALUES (524289, 0); INSERT INTO S_DT VALUES (524289, 111189, 'void', ''); INSERT INTO S_CDT VALUES (524290, 1); INSERT INTO S_DT VALUES (524290, 111189, 'boolean', ''); INSERT INTO S_CDT VALUES (524291, 2); INSERT INTO S_DT VALUES (524291, 111189, 'integer', ''); INSERT INTO S_CDT VALUES (524292, 3); INSERT INTO S_DT VALUES (524292, 111189, 'real', ''); INSERT INTO S_CDT VALUES (524293, 4); INSERT INTO S_DT VALUES (524293, 111189, 'string', ''); INSERT INTO S_CDT VALUES (524294, 5); INSERT INTO S_DT VALUES (524294, 111189, 'unique_id', ''); INSERT INTO S_CDT VALUES (524295, 6); INSERT INTO S_DT VALUES (524295, 111189, 'state<State_Model>', ''); INSERT INTO S_CDT VALUES (524296, 7); INSERT INTO S_DT VALUES (524296, 111189, 'same_as<Base_Attribute>', ''); INSERT INTO S_CDT VALUES (524297, 8); INSERT INTO S_DT VALUES (524297, 111189, 'inst_ref<Object>', ''); INSERT INTO S_CDT VALUES (524298, 9); INSERT INTO S_DT VALUES (524298, 111189, 'inst_ref_set<Object>', ''); INSERT INTO S_CDT VALUES (524299, 10); INSERT INTO S_DT VALUES (524299, 111189, 'inst<Event>', ''); INSERT INTO S_CDT VALUES (524300, 11); INSERT INTO S_DT VALUES (524300, 111189, 'inst<Mapping>', ''); INSERT INTO S_CDT VALUES (524301, 12); INSERT INTO S_DT VALUES (524301, 111189, 'inst_ref<Mapping>', ''); INSERT INTO S_UDT VALUES (524302, 524300, 1); INSERT INTO S_DT VALUES (524302, 111189, 'date', ''); INSERT INTO S_UDT VALUES (524303, 524300, 2); INSERT INTO S_DT VALUES (524303, 111189, 'timestamp', ''); INSERT INTO S_UDT VALUES (524304, 524301, 3); INSERT INTO S_DT VALUES (524304, 111189, 'inst_ref<Timer>', ''); INSERT INTO S_UDT VALUES (524307, 524293, 0); INSERT INTO S_DT VALUES (524307, 111189, 'colorsA', 'ENUMERATION: TRUE Owner:enum1'); INSERT INTO S_UDT VALUES (524308, 524293, 0); INSERT INTO S_DT VALUES (524308, 111189, 'colorsB', 'comment here enumeration:TRUE //comment here enumerator0:red enumerator1:redder enumerator2:reddest //comment here '); INSERT INTO S_EE VALUES (524295, 'Logging ', '', 'LOG', 111189); INSERT INTO S_BRG VALUES (524326, 524295, 'LogSuccess', '', 0, 524289, '', 1); INSERT INTO S_BPARM VALUES (524341, 524326, 'message', 524293, 0); INSERT INTO S_BRG VALUES (524327, 524295, 'LogFailure', '', 0, 524289, '', 1); INSERT INTO S_BPARM VALUES (524342, 524327, 'message', 524293, 0); INSERT INTO S_BRG VALUES (524328, 524295, 'LogInfo', '', 0, 524289, '', 1); INSERT INTO S_BPARM VALUES (524343, 524328, 'message', 524293, 0); INSERT INTO S_EE VALUES (524296, 'Time', '', 'TIM', 111189); INSERT INTO S_BRG VALUES (524329, 524296, 'current_date', '', 1, 524302, '', 0); INSERT INTO S_BRG VALUES (524330, 524296, 'create_date', '', 1, 524302, '', 0); INSERT INTO S_BPARM VALUES (524344, 524330, 'second', 524291, 0); INSERT INTO S_BPARM VALUES (524345, 524330, 'minute', 524291, 0); INSERT INTO S_BPARM VALUES (524346, 524330, 'hour', 524291, 0); INSERT INTO S_BPARM VALUES (524347, 524330, 'day', 524291, 0); INSERT INTO S_BPARM VALUES (524348, 524330, 'month', 524291, 0); INSERT INTO S_BPARM VALUES (524349, 524330, 'year', 524291, 0); INSERT INTO S_BRG VALUES (524331, 524296, 'get_second', '', 1, 524291, '', 0); INSERT INTO S_BPARM VALUES (524350, 524331, 'date', 524302, 0); INSERT INTO S_BRG VALUES (524332, 524296, 'get_minute', '', 1, 524291, '', 0); INSERT INTO S_BPARM VALUES (524351, 524332, 'date', 524302, 0); INSERT INTO S_BRG VALUES (524333, 524296, 'get_hour', '', 1, 524291, '', 0); INSERT INTO S_BPARM VALUES (524352, 524333, 'date', 524302, 0); INSERT INTO S_BRG VALUES (524334, 524296, 'get_day', '', 1, 524291, '', 0); INSERT INTO S_BPARM VALUES (524353, 524334, 'date', 524302, 0); INSERT INTO S_BRG VALUES (524335, 524296, 'get_month', '', 1, 524291, '', 0); INSERT INTO S_BPARM VALUES (524354, 524335, 'date', 524302, 0); INSERT INTO S_BRG VALUES (524336, 524296, 'get_year', '', 1, 524291, '', 0); INSERT INTO S_BPARM VALUES (524355, 524336, 'date', 524302, 0); INSERT INTO S_BRG VALUES (524337, 524296, 'current_clock', '', 1, 524303, '', 0); INSERT INTO S_BRG VALUES (524338, 524296, 'timer_start', '', 1, 524304, '', 0); INSERT INTO S_BPARM VALUES (524356, 524338, 'microseconds', 524291, 0); INSERT INTO S_BPARM VALUES (524357, 524338, 'event_inst', 524299, 0); INSERT INTO S_BRG VALUES (524339, 524296, 'timer_start_recurring', '', 1, 524304, '', 0); INSERT INTO S_BPARM VALUES (524358, 524339, 'microseconds', 524291, 0); INSERT INTO S_BPARM VALUES (524359, 524339, 'event_inst', 524299, 0); INSERT INTO S_BRG VALUES (524340, 524296, 'timer_remaining_time', '', 1, 524291, '', 0); INSERT INTO S_BPARM VALUES (524360, 524340, 'timer_inst_ref', 524304, 0); INSERT INTO S_BRG VALUES (524341, 524296, 'timer_reset_time', '', 1, 524290, '', 0); INSERT INTO S_BPARM VALUES (524361, 524341, 'timer_inst_ref', 524304, 0); INSERT INTO S_BPARM VALUES (524362, 524341, 'microseconds', 524291, 0); INSERT INTO S_BRG VALUES (524342, 524296, 'timer_add_time', '', 1, 524290, '', 0); INSERT INTO S_BPARM VALUES (524363, 524342, 'timer_inst_ref', 524304, 0); INSERT INTO S_BPARM VALUES (524364, 524342, 'microseconds', 524291, 0); INSERT INTO S_BRG VALUES (524343, 524296, 'timer_cancel', '', 1, 524290, '', 0); INSERT INTO S_BPARM VALUES (524365, 524343, 'timer_inst_ref', 524304, 0); INSERT INTO S_EE VALUES (524297, 'EnumOne', '', 'ENUMONE', 111189); INSERT INTO S_BRG VALUES (524344, 524297, 'send_colorsA_ret_colorsA', '', 0, 524307, 'LOG::LogFailure(message:"ENUMONE::send_colorsA_ret_colorsA bridge should not have been translated"); return param.colorA;', 1); INSERT INTO S_BPARM VALUES (524366, 524344, 'colorA', 524307, 0); INSERT INTO S_BRG VALUES (524345, 524297, 'send_colorsB_ret_colorsB', '', 0, 524308, 'LOG::LogFailure(message:"ENUMONE::send_colorsB_ret_colorsB bridge should not have been translated"); return param.colorB;', 1); INSERT INTO S_BPARM VALUES (524367, 524345, 'colorB', 524308, 0); INSERT INTO S_EE VALUES (524298, 'Driver', '', 'DR', 111189); INSERT INTO S_BRG VALUES (524346, 524298, 'checkin', '', 0, 524289, 'control stop;', 1); INSERT INTO S_BPARM VALUES (524368, 524346, 'id', 524291, 0); INSERT INTO GD_MD VALUES (524289, 1, 111189, 1, 1, 0, 1, 1, 0, 12, 1631, 4141, 1.000000, 0); INSERT INTO GD_GE VALUES (524348, 524289, 5767179, 11); INSERT INTO GD_SHP VALUES (524348, 2048, 1360, 2240, 1472); INSERT INTO GD_GE VALUES (524349, 524289, 524295, 12); INSERT INTO GD_SHP VALUES (524349, 1824, 1616, 2016, 1728); INSERT INTO GD_GE VALUES (524350, 524289, 524296, 12); INSERT INTO GD_SHP VALUES (524350, 2048, 1616, 2240, 1728); INSERT INTO GD_GE VALUES (524351, 524289, 524297, 12); INSERT INTO GD_SHP VALUES (524351, 2048, 1488, 2240, 1600); INSERT INTO GD_GE VALUES (524352, 524289, 6291468, 11); INSERT INTO GD_SHP VALUES (524352, 1824, 1360, 2016, 1472); INSERT INTO GD_GE VALUES (524353, 524289, 524298, 12); INSERT INTO GD_SHP VALUES (524353, 1824, 1488, 2016, 1600); INSERT INTO GD_MD VALUES (524290, 2, 111189, 1, 1, 0, 1, 1, 0, 12, 1600, 4200, 1.000000, 0); INSERT INTO GD_GE VALUES (524354, 524290, 5767179, 11); INSERT INTO GD_SHP VALUES (524354, 1920, 1344, 2080, 1440); INSERT INTO GD_GE VALUES (524355, 524290, 6291468, 11); INSERT INTO GD_SHP VALUES (524355, 1920, 1488, 2128, 1584); INSERT INTO GD_MD VALUES (524291, 3, 111189, 1, 1, 0, 1, 1, 0, 12, 1600, 4200, 1.000000, 0); INSERT INTO GD_GE VALUES (524356, 524291, 5767179, 11); INSERT INTO GD_SHP VALUES (524356, 1920, 1344, 2080, 1440); INSERT INTO GD_GE VALUES (524357, 524291, 6291468, 11); INSERT INTO GD_SHP VALUES (524357, 1920, 1488, 2128, 1584); INSERT INTO GD_MD VALUES (524292, 4, 111189, 1, 1, 0, 1, 1, 0, 12, 1600, 4200, 1.000000, 0); INSERT INTO GD_GE VALUES (524358, 524292, 5767179, 11); INSERT INTO GD_SHP VALUES (524358, 1920, 1344, 2080, 1440); INSERT INTO GD_GE VALUES (524359, 524292, 6291468, 11); INSERT INTO GD_SHP VALUES (524359, 1920, 1488, 2128, 1584); INSERT INTO S_SS VALUES (5767179, 'enum2', '', '', 1, 111189, 5767179); INSERT INTO O_OBJ VALUES (5767172, 'Enum Bridge Object', 3, 'B', '', 5767179); INSERT INTO O_NBATTR VALUES (5767179, 5767172); INSERT INTO O_BATTR VALUES (5767179, 5767172); INSERT INTO O_ATTR VALUES (5767179, 5767172, 0, 'id', '', '', 'id', 0, 524294); INSERT INTO O_NBATTR VALUES (5767180, 5767172); INSERT INTO O_BATTR VALUES (5767180, 5767172); INSERT INTO O_ATTR VALUES (5767180, 5767172, 5767179, 'ra_send_colorsA_ret_colorsA', '', '', 'ra_send_colorsA_ret_colorsA', 0, 524307); INSERT INTO O_NBATTR VALUES (5767181, 5767172); INSERT INTO O_BATTR VALUES (5767181, 5767172); INSERT INTO O_ATTR VALUES (5767181, 5767172, 5767180, 'ra_send_colorsB_ret_colorsB', '', '', 'ra_send_colorsB_ret_colorsB', 0, 524308); INSERT INTO O_NBATTR VALUES (5767182, 5767172); INSERT INTO O_BATTR VALUES (5767182, 5767172); INSERT INTO O_ATTR VALUES (5767182, 5767172, 5767181, 'current_state', '', '', 'current_state', 0, 524295); INSERT INTO O_ID VALUES (0, 5767172); INSERT INTO O_OIDA VALUES (5767179, 5767172, 0); INSERT INTO SM_ISM VALUES (3145734, 5767172); INSERT INTO SM_SM VALUES (3145734, '', 6); INSERT INTO SM_MOORE VALUES (3145734); INSERT INTO SM_EVTDI VALUES (3145729, 3145734, 'colorA', '', 524307); INSERT INTO SM_EVTDI VALUES (3145730, 3145734, 'colorB', '', 524308); INSERT INTO SM_SUPDT VALUES (3145729, 3145734, 0); INSERT INTO SM_SDI VALUES (3145730, 3145729, 3145734); INSERT INTO SM_SDI VALUES (3145729, 3145729, 3145734); INSERT INTO SM_SUPDT VALUES (3145730, 3145734, 0); INSERT INTO SM_SUPDT VALUES (3145731, 3145734, 0); INSERT INTO SM_SDI VALUES (3145729, 3145731, 3145734); INSERT INTO SM_SUPDT VALUES (3145732, 3145734, 0); INSERT INTO SM_SDI VALUES (3145730, 3145732, 3145734); INSERT INTO SM_STATE VALUES (3145729, 3145734, 3145729, 'start instance', 1, 0); INSERT INTO SM_LEVT VALUES (3145729, 3145734, 3145729); INSERT INTO SM_SEVT VALUES (3145729, 3145734, 3145729); INSERT INTO SM_EVT VALUES (3145729, 3145734, 3145729, 1, 'start instance', 0, '', 'B1', ''); INSERT INTO SM_SEME VALUES (3145729, 3145729, 3145734, 3145729); INSERT INTO SM_LEVT VALUES (3145730, 3145734, 3145730); INSERT INTO SM_SEVT VALUES (3145730, 3145734, 3145730); INSERT INTO SM_EVT VALUES (3145730, 3145734, 3145730, 2, 'shutdown instance', 0, '', 'B2', ''); INSERT INTO SM_CH VALUES (3145729, 3145730, 3145734, 3145730, ''); INSERT INTO SM_SEME VALUES (3145729, 3145730, 3145734, 3145730); INSERT INTO SM_LEVT VALUES (3145731, 3145734, 3145729); INSERT INTO SM_SEVT VALUES (3145731, 3145734, 3145729); INSERT INTO SM_EVT VALUES (3145731, 3145734, 3145729, 3, 'start assigner', 0, '', 'B3', ''); INSERT INTO SM_CH VALUES (3145729, 3145731, 3145734, 3145729, ''); INSERT INTO SM_SEME VALUES (3145729, 3145731, 3145734, 3145729); INSERT INTO SM_LEVT VALUES (3145732, 3145734, 3145730); INSERT INTO SM_SEVT VALUES (3145732, 3145734, 3145730); INSERT INTO SM_EVT VALUES (3145732, 3145734, 3145730, 4, 'shutdown assigner', 0, '', 'B4', ''); INSERT INTO SM_CH VALUES (3145729, 3145732, 3145734, 3145730, ''); INSERT INTO SM_SEME VALUES (3145729, 3145732, 3145734, 3145730); INSERT INTO SM_LEVT VALUES (3145733, 3145734, 3145731); INSERT INTO SM_SEVT VALUES (3145733, 3145734, 3145731); INSERT INTO SM_EVT VALUES (3145733, 3145734, 3145731, 5, 'send_colorsA_ret_colorsA', 0, '', 'B5', ''); INSERT INTO SM_CH VALUES (3145729, 3145733, 3145734, 3145731, ''); INSERT INTO SM_SEME VALUES (3145729, 3145733, 3145734, 3145731); INSERT INTO SM_LEVT VALUES (3145734, 3145734, 3145732); INSERT INTO SM_SEVT VALUES (3145734, 3145734, 3145732); INSERT INTO SM_EVT VALUES (3145734, 3145734, 3145732, 6, 'send_colorsB_ret_colorsB', 0, '', 'B6', ''); INSERT INTO SM_CH VALUES (3145729, 3145734, 3145734, 3145732, ''); INSERT INTO SM_SEME VALUES (3145729, 3145734, 3145734, 3145732); INSERT INTO SM_STATE VALUES (3145730, 3145734, 3145730, 'shutdown instance', 2, 0); INSERT INTO SM_CH VALUES (3145730, 3145729, 3145734, 3145729, ''); INSERT INTO SM_SEME VALUES (3145730, 3145729, 3145734, 3145729); INSERT INTO SM_SEME VALUES (3145730, 3145730, 3145734, 3145730); INSERT INTO SM_CH VALUES (3145730, 3145731, 3145734, 3145729, ''); INSERT INTO SM_SEME VALUES (3145730, 3145731, 3145734, 3145729); INSERT INTO SM_CH VALUES (3145730, 3145732, 3145734, 3145730, ''); INSERT INTO SM_SEME VALUES (3145730, 3145732, 3145734, 3145730); INSERT INTO SM_CH VALUES (3145730, 3145733, 3145734, 3145731, ''); INSERT INTO SM_SEME VALUES (3145730, 3145733, 3145734, 3145731); INSERT INTO SM_CH VALUES (3145730, 3145734, 3145734, 3145732, ''); INSERT INTO SM_SEME VALUES (3145730, 3145734, 3145734, 3145732); INSERT INTO SM_STATE VALUES (3145731, 3145734, 3145729, 'start assigner', 3, 0); INSERT INTO SM_CH VALUES (3145731, 3145729, 3145734, 3145729, ''); INSERT INTO SM_SEME VALUES (3145731, 3145729, 3145734, 3145729); INSERT INTO SM_CH VALUES (3145731, 3145730, 3145734, 3145730, ''); INSERT INTO SM_SEME VALUES (3145731, 3145730, 3145734, 3145730); INSERT INTO SM_SEME VALUES (3145731, 3145731, 3145734, 3145729); INSERT INTO SM_CH VALUES (3145731, 3145732, 3145734, 3145730, ''); INSERT INTO SM_SEME VALUES (3145731, 3145732, 3145734, 3145730); INSERT INTO SM_CH VALUES (3145731, 3145733, 3145734, 3145731, ''); INSERT INTO SM_SEME VALUES (3145731, 3145733, 3145734, 3145731); INSERT INTO SM_CH VALUES (3145731, 3145734, 3145734, 3145732, ''); INSERT INTO SM_SEME VALUES (3145731, 3145734, 3145734, 3145732); INSERT INTO SM_STATE VALUES (3145732, 3145734, 3145730, 'shutdown assigner', 4, 0); INSERT INTO SM_CH VALUES (3145732, 3145729, 3145734, 3145729, ''); INSERT INTO SM_SEME VALUES (3145732, 3145729, 3145734, 3145729); INSERT INTO SM_CH VALUES (3145732, 3145730, 3145734, 3145730, ''); INSERT INTO SM_SEME VALUES (3145732, 3145730, 3145734, 3145730); INSERT INTO SM_CH VALUES (3145732, 3145731, 3145734, 3145729, ''); INSERT INTO SM_SEME VALUES (3145732, 3145731, 3145734, 3145729); INSERT INTO SM_SEME VALUES (3145732, 3145732, 3145734, 3145730); INSERT INTO SM_CH VALUES (3145732, 3145733, 3145734, 3145731, ''); INSERT INTO SM_SEME VALUES (3145732, 3145733, 3145734, 3145731); INSERT INTO SM_CH VALUES (3145732, 3145734, 3145734, 3145732, ''); INSERT INTO SM_SEME VALUES (3145732, 3145734, 3145734, 3145732); INSERT INTO SM_STATE VALUES (3145733, 3145734, 3145731, 'send_colorsA_ret_colorsA', 5, 0); INSERT INTO SM_CH VALUES (3145733, 3145729, 3145734, 3145729, ''); INSERT INTO SM_SEME VALUES (3145733, 3145729, 3145734, 3145729); INSERT INTO SM_CH VALUES (3145733, 3145730, 3145734, 3145730, ''); INSERT INTO SM_SEME VALUES (3145733, 3145730, 3145734, 3145730); INSERT INTO SM_CH VALUES (3145733, 3145731, 3145734, 3145729, ''); INSERT INTO SM_SEME VALUES (3145733, 3145731, 3145734, 3145729); INSERT INTO SM_CH VALUES (3145733, 3145732, 3145734, 3145730, ''); INSERT INTO SM_SEME VALUES (3145733, 3145732, 3145734, 3145730); INSERT INTO SM_SEME VALUES (3145733, 3145733, 3145734, 3145731); INSERT INTO SM_CH VALUES (3145733, 3145734, 3145734, 3145732, ''); INSERT INTO SM_SEME VALUES (3145733, 3145734, 3145734, 3145732); INSERT INTO SM_STATE VALUES (3145734, 3145734, 3145732, 'send_colorsB_ret_colorsB', 6, 0); INSERT INTO SM_CH VALUES (3145734, 3145729, 3145734, 3145729, ''); INSERT INTO SM_SEME VALUES (3145734, 3145729, 3145734, 3145729); INSERT INTO SM_CH VALUES (3145734, 3145730, 3145734, 3145730, ''); INSERT INTO SM_SEME VALUES (3145734, 3145730, 3145734, 3145730); INSERT INTO SM_CH VALUES (3145734, 3145731, 3145734, 3145729, ''); INSERT INTO SM_SEME VALUES (3145734, 3145731, 3145734, 3145729); INSERT INTO SM_CH VALUES (3145734, 3145732, 3145734, 3145730, ''); INSERT INTO SM_SEME VALUES (3145734, 3145732, 3145734, 3145730); INSERT INTO SM_CH VALUES (3145734, 3145733, 3145734, 3145731, ''); INSERT INTO SM_SEME VALUES (3145734, 3145733, 3145734, 3145731); INSERT INTO SM_SEME VALUES (3145734, 3145734, 3145734, 3145732); INSERT INTO SM_NSTXN VALUES (3145729, 3145734, 3145729, 3145729, 3145729); INSERT INTO SM_TXN VALUES (3145729, 3145734, 3145729, 3145729); INSERT INTO SM_NSTXN VALUES (3145730, 3145734, 3145730, 3145730, 3145730); INSERT INTO SM_TXN VALUES (3145730, 3145734, 3145730, 3145730); INSERT INTO SM_NSTXN VALUES (3145731, 3145734, 3145731, 3145731, 3145729); INSERT INTO SM_TXN VALUES (3145731, 3145734, 3145731, 3145729); INSERT INTO SM_NSTXN VALUES (3145732, 3145734, 3145732, 3145732, 3145730); INSERT INTO SM_TXN VALUES (3145732, 3145734, 3145732, 3145730); INSERT INTO SM_NSTXN VALUES (3145733, 3145734, 3145733, 3145733, 3145731); INSERT INTO SM_TXN VALUES (3145733, 3145734, 3145733, 3145731); INSERT INTO SM_NSTXN VALUES (3145734, 3145734, 3145734, 3145734, 3145732); INSERT INTO SM_TXN VALUES (3145734, 3145734, 3145734, 3145732); INSERT INTO SM_MOAH VALUES (3145729, 3145734, 3145729); INSERT INTO SM_AH VALUES (3145729, 3145734); INSERT INTO SM_ACT VALUES (3145729, 3145734, 1, 'select any te from instances of TE; generate TE1:''start''(colorA:rcvd_evt.colorA,colorB:rcvd_evt.colorB) to te;', ''); INSERT INTO SM_MOAH VALUES (3145730, 3145734, 3145730); INSERT INTO SM_AH VALUES (3145730, 3145734); INSERT INTO SM_ACT VALUES (3145730, 3145734, 1, 'select any te from instances of TE; generate TE3:''shutdown''() to te;', ''); INSERT INTO SM_MOAH VALUES (3145731, 3145734, 3145731); INSERT INTO SM_AH VALUES (3145731, 3145734); INSERT INTO SM_ACT VALUES (3145731, 3145734, 1, 'generate TE_A1:''start''(colorA:rcvd_evt.colorA,colorB:rcvd_evt.colorB) to TE Assigner;', ''); INSERT INTO SM_MOAH VALUES (3145732, 3145734, 3145732); INSERT INTO SM_AH VALUES (3145732, 3145734); INSERT INTO SM_ACT VALUES (3145732, 3145734, 1, 'generate TE_A2:''finish''() to TE Assigner;', ''); INSERT INTO SM_MOAH VALUES (3145733, 3145734, 3145733); INSERT INTO SM_AH VALUES (3145733, 3145734); INSERT INTO SM_ACT VALUES (3145733, 3145734, 1, 'self.ra_send_colorsA_ret_colorsA=rcvd_evt.colorA;', ''); INSERT INTO SM_MOAH VALUES (3145734, 3145734, 3145734); INSERT INTO SM_AH VALUES (3145734, 3145734); INSERT INTO SM_ACT VALUES (3145734, 3145734, 1, 'self.ra_send_colorsB_ret_colorsB=rcvd_evt.colorB;', ''); INSERT INTO GD_MD VALUES (3145729, 8, 3145734, 40, 1, 0, 1, 1, 0, 12, 1600, 4200, 1.000000, 0); INSERT INTO GD_GE VALUES (3145730, 3145729, 3145729, 41); INSERT INTO GD_SHP VALUES (3145730, 1632, 1104, 1968, 1248); INSERT INTO GD_GE VALUES (3145731, 3145729, 3145730, 41); INSERT INTO GD_SHP VALUES (3145731, 1648, 1344, 1952, 1472); INSERT INTO GD_GE VALUES (3145732, 3145729, 3145731, 41); INSERT INTO GD_SHP VALUES (3145732, 2016, 1120, 2320, 1264); INSERT INTO GD_GE VALUES (3145733, 3145729, 3145732, 41); INSERT INTO GD_SHP VALUES (3145733, 2000, 1360, 2320, 1472); INSERT INTO GD_GE VALUES (3145734, 3145729, 3145733, 41); INSERT INTO GD_SHP VALUES (3145734, 1632, 1568, 1936, 1712); INSERT INTO GD_GE VALUES (3145735, 3145729, 3145734, 41); INSERT INTO GD_SHP VALUES (3145735, 2016, 1568, 2320, 1712); INSERT INTO GD_GE VALUES (3145736, 3145729, 3145729, 42); INSERT INTO GD_CON VALUES (3145736, 3145730, 3145730, 0); INSERT INTO GD_CTXT VALUES (3145736, 0, 0, 0, 0, 0, 0, 1794, 1037, 2102, 1102, 67, 6, 0, 0, 0, 0, 0, 0); INSERT INTO GD_LS VALUES (3145737, 3145736, 1680, 1104, 1680, 1056, 0); INSERT INTO GD_LS VALUES (3145738, 3145736, 1680, 1056, 1824, 1056, 3145737); INSERT INTO GD_LS VALUES (3145739, 3145736, 1824, 1056, 1824, 1104, 3145738); INSERT INTO GD_GE VALUES (3145740, 3145729, 3145730, 42); INSERT INTO GD_CON VALUES (3145740, 3145731, 3145731, 0); INSERT INTO GD_CTXT VALUES (3145740, 0, 0, 0, 0, 0, 0, 1813, 1252, 2013, 1297, 46, -3, 0, 0, 0, 0, 0, 0); INSERT INTO GD_LS VALUES (3145741, 3145740, 1680, 1344, 1680, 1280, 0); INSERT INTO GD_LS VALUES (3145742, 3145740, 1680, 1280, 1904, 1280, 3145741); INSERT INTO GD_LS VALUES (3145743, 3145740, 1904, 1280, 1904, 1344, 3145742); INSERT INTO GD_GE VALUES (3145744, 3145729, 3145731, 42); INSERT INTO GD_CON VALUES (3145744, 3145732, 3145732, 0); INSERT INTO GD_CTXT VALUES (3145744, 0, 0, 0, 0, 0, 0, 2142, 1042, 2307, 1086, 7, -21, 0, 0, 0, 0, 0, 0); INSERT INTO GD_LS VALUES (3145745, 3145744, 2032, 1120, 2032, 1088, 0); INSERT INTO GD_LS VALUES (3145746, 3145744, 2032, 1088, 2288, 1088, 3145745); INSERT INTO GD_LS VALUES (3145747, 3145744, 2288, 1088, 2288, 1120, 3145746); INSERT INTO GD_GE VALUES (3145748, 3145729, 3145732, 42); INSERT INTO GD_CON VALUES (3145748, 3145733, 3145733, 0); INSERT INTO GD_CTXT VALUES (3145748, 0, 0, 0, 0, 0, 0, 2085, 1263, 2274, 1310, -21, -24, 0, 0, 0, 0, 0, 0); INSERT INTO GD_LS VALUES (3145749, 3145748, 2048, 1360, 2032, 1312, 0); INSERT INTO GD_LS VALUES (3145750, 3145748, 2032, 1312, 2224, 1312, 3145749); INSERT INTO GD_LS VALUES (3145751, 3145748, 2224, 1312, 2256, 1360, 3145750); INSERT INTO GD_GE VALUES (3145752, 3145729, 3145733, 42); INSERT INTO GD_CON VALUES (3145752, 3145734, 3145734, 0); INSERT INTO GD_CTXT VALUES (3145752, 0, 0, 0, 0, 0, 0, 1658, 1475, 2004, 1521, -93, -20, 0, 0, 0, 0, 0, 0); INSERT INTO GD_LS VALUES (3145753, 3145752, 1664, 1568, 1664, 1520, 0); INSERT INTO GD_LS VALUES (3145754, 3145752, 1664, 1520, 1888, 1520, 3145753); INSERT INTO GD_LS VALUES (3145755, 3145752, 1888, 1520, 1888, 1568, 3145754); INSERT INTO GD_GE VALUES (3145756, 3145729, 3145734, 42); INSERT INTO GD_CON VALUES (3145756, 3145735, 3145735, 0); INSERT INTO GD_CTXT VALUES (3145756, 0, 0, 0, 0, 0, 0, 2057, 1478, 2384, 1518, -78, -17, 0, 0, 0, 0, 0, 0); INSERT INTO GD_LS VALUES (3145757, 3145756, 2048, 1568, 2048, 1520, 0); INSERT INTO GD_LS VALUES (3145758, 3145756, 2048, 1520, 2272, 1520, 3145757); INSERT INTO GD_LS VALUES (3145759, 3145756, 2272, 1520, 2272, 1568, 3145758); INSERT INTO O_OBJ VALUES (5767173, 'enum init', 4, 'INIT', '', 5767179); INSERT INTO O_NBATTR VALUES (5767183, 5767173); INSERT INTO O_BATTR VALUES (5767183, 5767173); INSERT INTO O_ATTR VALUES (5767183, 5767173, 0, 'id', '', '', 'id', 0, 524294); INSERT INTO O_NBATTR VALUES (5767184, 5767173); INSERT INTO O_BATTR VALUES (5767184, 5767173); INSERT INTO O_ATTR VALUES (5767184, 5767173, 5767183, 'current_state', '', '', 'current_state', 0, 524295); INSERT INTO O_ID VALUES (0, 5767173); INSERT INTO O_OIDA VALUES (5767183, 5767173, 0); INSERT INTO SM_ISM VALUES (3670023, 5767173); INSERT INTO SM_SM VALUES (3670023, '', 7); INSERT INTO SM_MOORE VALUES (3670023); INSERT INTO SM_SUPDT VALUES (3670017, 3670023, 0); INSERT INTO SM_STATE VALUES (3670017, 3670023, 3670017, 'init', 1, 0); INSERT INTO SM_LEVT VALUES (3670017, 3670023, 3670017); INSERT INTO SM_SEVT VALUES (3670017, 3670023, 3670017); INSERT INTO SM_EVT VALUES (3670017, 3670023, 3670017, 1, 'Init', 0, '', 'INIT1', ''); INSERT INTO SM_SEME VALUES (3670017, 3670017, 3670023, 3670017); INSERT INTO SM_NSTXN VALUES (3670017, 3670023, 3670017, 3670017, 3670017); INSERT INTO SM_TXN VALUES (3670017, 3670023, 3670017, 3670017); INSERT INTO SM_MOAH VALUES (3670017, 3670023, 3670017); INSERT INTO SM_AH VALUES (3670017, 3670023); INSERT INTO SM_ACT VALUES (3670017, 3670023, 1, 'create object instance of TE; DR::checkin(id:2); ', ''); INSERT INTO GD_MD VALUES (3670017, 8, 3670023, 40, 1, 0, 1, 1, 0, 12, 1600, 4199, 1.000000, 0); INSERT INTO GD_GE VALUES (3670018, 3670017, 3670017, 41); INSERT INTO GD_SHP VALUES (3670018, 1648, 1264, 1936, 1440); INSERT INTO GD_GE VALUES (3670019, 3670017, 3670017, 42); INSERT INTO GD_CON VALUES (3670019, 3670018, 3670018, 0); INSERT INTO GD_CTXT VALUES (3670019, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); INSERT INTO GD_LS VALUES (3670020, 3670019, 1664, 1264, 1664, 1232, 0); INSERT INTO GD_LS VALUES (3670021, 3670019, 1664, 1232, 1904, 1232, 3670020); INSERT INTO GD_LS VALUES (3670022, 3670019, 1904, 1232, 1904, 1264, 3670021); INSERT INTO GD_MD VALUES (5767211, 5, 5767179, 11, 1, 0, 1, 1, 0, 12, 1417, 4201, 1.000000, 0); INSERT INTO GD_GE VALUES (5767214, 5767211, 5767172, 21); INSERT INTO GD_SHP VALUES (5767214, 1666, 1299, 1970, 1459); INSERT INTO GD_GE VALUES (5767215, 5767211, 5767173, 21); INSERT INTO GD_SHP VALUES (5767215, 1666, 1507, 1970, 1667); INSERT INTO GD_MD VALUES (5767212, 6, 5767179, 11, 1, 0, 1, 1, 0, 12, 1600, 4200, 1.000000, 0); INSERT INTO GD_GE VALUES (5767216, 5767212, 5767172, 21); INSERT INTO GD_SHP VALUES (5767216, 1666, 1299, 1858, 1363); INSERT INTO GD_GE VALUES (5767217, 5767212, 5767173, 21); INSERT INTO GD_SHP VALUES (5767217, 1666, 1507, 1858, 1571); INSERT INTO GD_MD VALUES (5767213, 7, 5767179, 11, 1, 0, 1, 1, 0, 12, 1600, 4200, 1.000000, 0); INSERT INTO GD_GE VALUES (5767218, 5767213, 5767172, 21); INSERT INTO GD_SHP VALUES (5767218, 1666, 1299, 1858, 1363); INSERT INTO GD_GE VALUES (5767219, 5767213, 5767173, 21); INSERT INTO GD_SHP VALUES (5767219, 1666, 1507, 1858, 1571); INSERT INTO S_SS VALUES (6291468, 'Test Enums', '', '', 300, 111189, 6291468); INSERT INTO O_OBJ VALUES (6291462, 'Test Enums', 300, 'TE', '', 6291468); INSERT INTO O_TFR VALUES (6291459, 6291462, 'send_colorsA_ret_colorsA', '', 524307, 0, '// ACTION_SPECIFICATION: TRUE return param.colorA;', 1); INSERT INTO O_TPARM VALUES (6291537, 6291459, 'colorA', 524307, 0); INSERT INTO O_TFR VALUES (6291460, 6291462, 'send_colorsB_ret_colorsB', '', 524308, 0, 'LOG::LogFailure(message:"TE::send_colorsA_ret_colorsA operation should not have been translated"); return param.colorB;', 1); INSERT INTO O_TPARM VALUES (6291538, 6291460, 'colorB', 524308, 0); INSERT INTO O_NBATTR VALUES (6291473, 6291462); INSERT INTO O_BATTR VALUES (6291473, 6291462); INSERT INTO O_ATTR VALUES (6291473, 6291462, 0, 'id', '', '', 'id', 0, 524294); INSERT INTO O_NBATTR VALUES (6291474, 6291462); INSERT INTO O_BATTR VALUES (6291474, 6291462); INSERT INTO O_ATTR VALUES (6291474, 6291462, 6291473, 'current_state', '', '', 'current_state', 0, 524295); INSERT INTO O_NBATTR VALUES (6291475, 6291462); INSERT INTO O_BATTR VALUES (6291475, 6291462); INSERT INTO O_ATTR VALUES (6291475, 6291462, 6291474, 'colorA', '', '', 'colorA', 0, 524307); INSERT INTO O_NBATTR VALUES (6291476, 6291462); INSERT INTO O_BATTR VALUES (6291476, 6291462); INSERT INTO O_ATTR VALUES (6291476, 6291462, 6291475, 'colorB', '', '', 'colorB', 0, 524308); INSERT INTO O_ID VALUES (0, 6291462); INSERT INTO O_OIDA VALUES (6291473, 6291462, 0); INSERT INTO SM_ISM VALUES (4194312, 6291462); INSERT INTO SM_SM VALUES (4194312, '', 8); INSERT INTO SM_MOORE VALUES (4194312); INSERT INTO SM_EVTDI VALUES (4194305, 4194312, 'colorA', '', 524307); INSERT INTO SM_EVTDI VALUES (4194306, 4194312, 'colorB', '', 524308); INSERT INTO SM_SUPDT VALUES (4194305, 4194312, 0); INSERT INTO SM_SDI VALUES (4194306, 4194305, 4194312); INSERT INTO SM_SDI VALUES (4194305, 4194305, 4194312); INSERT INTO SM_SUPDT VALUES (4194306, 4194312, 0); INSERT INTO SM_STATE VALUES (4194305, 4194312, 4194305, 'start', 1, 0); INSERT INTO SM_LEVT VALUES (4194305, 4194312, 4194305); INSERT INTO SM_SEVT VALUES (4194305, 4194312, 4194305); INSERT INTO SM_EVT VALUES (4194305, 4194312, 4194305, 1, 'start', 0, '', 'TE1', ''); INSERT INTO SM_SEME VALUES (4194305, 4194305, 4194312, 4194305); INSERT INTO SM_LEVT VALUES (4194306, 4194312, 4194305); INSERT INTO SM_SEVT VALUES (4194306, 4194312, 4194305); INSERT INTO SM_EVT VALUES (4194306, 4194312, 4194305, 2, 'finish', 0, '', 'TE2', ''); INSERT INTO SM_SEME VALUES (4194305, 4194306, 4194312, 4194305); INSERT INTO SM_LEVT VALUES (4194307, 4194312, 4194306); INSERT INTO SM_SEVT VALUES (4194307, 4194312, 4194306); INSERT INTO SM_EVT VALUES (4194307, 4194312, 4194306, 3, 'shutdown', 0, '', 'TE3', ''); INSERT INTO SM_CH VALUES (4194305, 4194307, 4194312, 4194306, ''); INSERT INTO SM_SEME VALUES (4194305, 4194307, 4194312, 4194306); INSERT INTO SM_STATE VALUES (4194306, 4194312, 4194305, 'finish', 2, 0); INSERT INTO SM_EIGN VALUES (4194306, 4194305, 4194312, 4194305, ''); INSERT INTO SM_SEME VALUES (4194306, 4194305, 4194312, 4194305); INSERT INTO SM_EIGN VALUES (4194306, 4194306, 4194312, 4194305, ''); INSERT INTO SM_SEME VALUES (4194306, 4194306, 4194312, 4194305); INSERT INTO SM_SEME VALUES (4194306, 4194307, 4194312, 4194306); INSERT INTO SM_STATE VALUES (4194307, 4194312, 4194306, 'done', 3, 0); INSERT INTO SM_CH VALUES (4194307, 4194305, 4194312, 4194305, ''); INSERT INTO SM_SEME VALUES (4194307, 4194305, 4194312, 4194305); INSERT INTO SM_CH VALUES (4194307, 4194306, 4194312, 4194305, ''); INSERT INTO SM_SEME VALUES (4194307, 4194306, 4194312, 4194305); INSERT INTO SM_CH VALUES (4194307, 4194307, 4194312, 4194306, ''); INSERT INTO SM_SEME VALUES (4194307, 4194307, 4194312, 4194306); INSERT INTO SM_NSTXN VALUES (4194305, 4194312, 4194305, 4194306, 4194305); INSERT INTO SM_TXN VALUES (4194305, 4194312, 4194306, 4194305); INSERT INTO SM_NSTXN VALUES (4194306, 4194312, 4194306, 4194307, 4194306); INSERT INTO SM_TXN VALUES (4194306, 4194312, 4194307, 4194306); INSERT INTO SM_NSTXN VALUES (4194307, 4194312, 4194305, 4194305, 4194305); INSERT INTO SM_TXN VALUES (4194307, 4194312, 4194305, 4194305); INSERT INTO SM_MOAH VALUES (4194305, 4194312, 4194305); INSERT INTO SM_AH VALUES (4194305, 4194312); INSERT INTO SM_ACT VALUES (4194305, 4194312, 1, '// The following exercise all valid uses of enums in the AL // object attribute // event supp data item // bridge operation argument // bridge return value // transformer argument // transform return value // comparison ==, != // assignment to local variable assign self.colorA = "a49"; assign self.colorB = "redder"; // test in attribute and event data if (self.colorA == rcvd_evt.colorA) LOG::LogSuccess(message:"ENUM1: self.enumA == rcvd_evt.enumA") ; else LOG::LogFailure(message:"ENUM1: self.enumA == rcvd_evt.enumA") ; end if; if (self.colorB == rcvd_evt.colorB) LOG::LogSuccess(message:"ENUM1: self.enumB == rcvd_evt.enum") ; else LOG::LogFailure(message:"ENUM1: self.enumB == rcvd_evt.enum") ; end if; // test local variable assign local_colorA = self.colorA; assign local_colorB = self.colorB; if (local_colorA == rcvd_evt.colorA) LOG::LogSuccess(message:"ENUM1: local_colorA == rcvd_evt.enumA") ; else LOG::LogFailure(message:"ENUM1: local_colorA == rcvd_evt.enumA") ; end if; if (local_colorB == rcvd_evt.colorB) LOG::LogSuccess(message:"ENUM1: local_colorB == rcvd_evt.enumB") ; else LOG::LogFailure(message:"ENUM1: local_colorB == rcvd_evt.enumB") ; end if; // check inequality if (local_colorA != "foocolor") LOG::LogSuccess(message:"ENUM1: local_colorA != operator") ; else LOG::LogFailure(message:"ENUM1: local_colorA != operator") ; end if; // Test transforms with enums transform ret_colorA = TE::send_colorsA_ret_colorsA(colorA:rcvd_evt.colorA); transform ret_colorB = TE::send_colorsB_ret_colorsB(colorB:rcvd_evt.colorB); if (ret_colorA == "a49") LOG::LogSuccess(message:"ENUM1: xform_ret_color == a49") ; else LOG::LogFailure(message:"ENUM1: xform_ret_color == a49") ; end if; if (ret_colorB == "redder") LOG::LogSuccess(message:"ENUM1: xform_ret_color == redder") ; else LOG::LogFailure(message:"ENUM1: xform_ret_color == redder") ; end if; // Test Bridges ca=ENUMONE::send_colorsA_ret_colorsA(colorA:self.colorA); cb=ENUMONE::send_colorsB_ret_colorsB(colorB:self.colorB); if (ca == "a49") LOG::LogSuccess(message:"ENUMTWO::send_colorsA_ret_colorsA(colorA:self.colorA") ; else LOG::LogFailure(message:"ENUMTWO::send_colorsA_ret_colorsA(colorA:self.colorA") ; end if; if (cb == "redder") LOG::LogSuccess(message:"ENUMTWO::send_colorsB_ret_colorsB(colorB:self.colorB") ; else LOG::LogFailure(message:"ENUMTWO::send_colorsB_ret_colorsB(colorB:self.colorB") ; end if; generate TE2:''finish''(colorA:"a49",colorB:"redder") to self; ', ''); INSERT INTO SM_MOAH VALUES (4194306, 4194312, 4194306); INSERT INTO SM_AH VALUES (4194306, 4194312); INSERT INTO SM_ACT VALUES (4194306, 4194312, 1, 'DR::checkin(id:10); ', ''); INSERT INTO SM_MOAH VALUES (4194307, 4194312, 4194307); INSERT INTO SM_AH VALUES (4194307, 4194312); INSERT INTO SM_ACT VALUES (4194307, 4194312, 1, '', ''); INSERT INTO GD_MD VALUES (4194305, 8, 4194312, 40, 1, 0, 1, 1, 0, 12, 1600, 4200, 1.000000, 0); INSERT INTO GD_GE VALUES (4194306, 4194305, 4194305, 41); INSERT INTO GD_SHP VALUES (4194306, 1760, 1312, 2144, 1424); INSERT INTO GD_GE VALUES (4194307, 4194305, 4194306, 41); INSERT INTO GD_SHP VALUES (4194307, 1760, 1504, 2144, 1584); INSERT INTO GD_GE VALUES (4194308, 4194305, 4194307, 41); INSERT INTO GD_SHP VALUES (4194308, 1760, 1664, 2144, 1744); INSERT INTO GD_GE VALUES (4194309, 4194305, 4194305, 42); INSERT INTO GD_CON VALUES (4194309, 4194306, 4194307, 0); INSERT INTO GD_CTXT VALUES (4194309, 0, 0, 0, 0, 0, 0, 1904, 1446, 2158, 1478, 0, -3, 0, 0, 0, 0, 0, 0); INSERT INTO GD_LS VALUES (4194310, 4194309, 1920, 1424, 1920, 1504, 0); INSERT INTO GD_GE VALUES (4194311, 4194305, 4194306, 42); INSERT INTO GD_CON VALUES (4194311, 4194307, 4194308, 0); INSERT INTO GD_CTXT VALUES (4194311, 0, 0, 0, 0, 0, 0, 1959, 1604, 2127, 1648, 39, -5, 0, 0, 0, 0, 0, 0); INSERT INTO GD_LS VALUES (4194312, 4194311, 1936, 1584, 1936, 1664, 0); INSERT INTO GD_GE VALUES (4194313, 4194305, 4194307, 42); INSERT INTO GD_CON VALUES (4194313, 4194306, 4194306, 0); INSERT INTO GD_CTXT VALUES (4194313, 0, 0, 0, 0, 0, 0, 1895, 1217, 2130, 1260, -16, -22, 0, 0, 0, 0, 0, 0); INSERT INTO GD_LS VALUES (4194314, 4194313, 1792, 1312, 1792, 1264, 0); INSERT INTO GD_LS VALUES (4194315, 4194313, 1792, 1264, 2080, 1264, 4194314); INSERT INTO GD_LS VALUES (4194316, 4194313, 2080, 1264, 2080, 1312, 4194315); INSERT INTO SM_ASM VALUES (4718601, 6291462); INSERT INTO SM_SM VALUES (4718601, '', 9); INSERT INTO SM_MOORE VALUES (4718601); INSERT INTO SM_EVTDI VALUES (4718593, 4718601, 'colorA', '', 524307); INSERT INTO SM_EVTDI VALUES (4718594, 4718601, 'colorB', '', 524308); INSERT INTO SM_SUPDT VALUES (4718593, 4718601, 0); INSERT INTO SM_SDI VALUES (4718594, 4718593, 4718601); INSERT INTO SM_SDI VALUES (4718593, 4718593, 4718601); INSERT INTO SM_SUPDT VALUES (4718594, 4718601, 0); INSERT INTO SM_STATE VALUES (4718593, 4718601, 4718593, 'start', 1, 0); INSERT INTO SM_LEVT VALUES (4718593, 4718601, 4718593); INSERT INTO SM_SEVT VALUES (4718593, 4718601, 4718593); INSERT INTO SM_EVT VALUES (4718593, 4718601, 4718593, 1, 'start', 0, '', 'TE_A1', ''); INSERT INTO SM_SEME VALUES (4718593, 4718593, 4718601, 4718593); INSERT INTO SM_LEVT VALUES (4718594, 4718601, 4718594); INSERT INTO SM_SEVT VALUES (4718594, 4718601, 4718594); INSERT INTO SM_EVT VALUES (4718594, 4718601, 4718594, 2, 'finish', 0, '', 'TE_A2', ''); INSERT INTO SM_SEME VALUES (4718593, 4718594, 4718601, 4718594); INSERT INTO SM_STATE VALUES (4718594, 4718601, 4718594, 'finish', 2, 0); INSERT INTO SM_CH VALUES (4718594, 4718593, 4718601, 4718593, ''); INSERT INTO SM_SEME VALUES (4718594, 4718593, 4718601, 4718593); INSERT INTO SM_CH VALUES (4718594, 4718594, 4718601, 4718594, ''); INSERT INTO SM_SEME VALUES (4718594, 4718594, 4718601, 4718594); INSERT INTO SM_NSTXN VALUES (4718593, 4718601, 4718593, 4718593, 4718593); INSERT INTO SM_TXN VALUES (4718593, 4718601, 4718593, 4718593); INSERT INTO SM_NSTXN VALUES (4718594, 4718601, 4718593, 4718594, 4718594); INSERT INTO SM_TXN VALUES (4718594, 4718601, 4718594, 4718594); INSERT INTO SM_MOAH VALUES (4718593, 4718601, 4718593); INSERT INTO SM_AH VALUES (4718593, 4718601); INSERT INTO SM_ACT VALUES (4718593, 4718601, 1, '// The following exercise all valid uses of enums in the AL // object attribute // event supp data item // bridge operation argument // bridge return value // transformer argument // transform return value // comparison ==, != // assignment to local variable select any te from instances of TE; assign te.colorA = "a49"; assign te.colorB = "redder"; // test in attribute and event data if (te.colorA == rcvd_evt.colorA) LOG::LogSuccess(message:"ENUM1: te.enumA == rcvd_evt.enumA") ; else LOG::LogFailure(message:"ENUM1: te.enumA == rcvd_evt.enumA") ; end if; if (te.colorB == rcvd_evt.colorB) LOG::LogSuccess(message:"ENUM1: te.enumB == rcvd_evt.enum") ; else LOG::LogFailure(message:"ENUM1: te.enumB == rcvd_evt.enum") ; end if; // test local variable assign local_colorA = te.colorA; assign local_colorB = te.colorB; if (local_colorA == rcvd_evt.colorA) LOG::LogSuccess(message:"ENUM1: local_colorA == rcvd_evt.enumA") ; else LOG::LogFailure(message:"ENUM1: local_colorA == rcvd_evt.enumA") ; end if; if (local_colorB == rcvd_evt.colorB) LOG::LogSuccess(message:"ENUM1: local_colorB == rcvd_evt.enumB") ; else LOG::LogFailure(message:"ENUM1: local_colorB == rcvd_evt.enumB") ; end if; // check inequality if (local_colorA != "foocolor") LOG::LogSuccess(message:"ENUM1: local_colorA != operator") ; else LOG::LogFailure(message:"ENUM1: local_colorA != operator") ; end if; // Test transforms with enums transform ret_colorA = TE::send_colorsA_ret_colorsA(colorA:rcvd_evt.colorA); transform ret_colorB = TE::send_colorsB_ret_colorsB(colorB:rcvd_evt.colorB); if (ret_colorA == "a49") LOG::LogSuccess(message:"ENUM1: xform_ret_color == a49") ; else LOG::LogFailure(message:"ENUM1: xform_ret_color == a49") ; end if; if (ret_colorB == "redder") LOG::LogSuccess(message:"ENUM1: xform_ret_color == redder") ; else LOG::LogFailure(message:"ENUM1: xform_ret_color == redder") ; end if; // Test Bridges ca=ENUMONE::send_colorsA_ret_colorsA(colorA:te.colorA); cb=ENUMONE::send_colorsB_ret_colorsB(colorB:te.colorB); if (ca == "a49") LOG::LogSuccess(message:"ENUMTWO::send_colorsA_ret_colorsA(colorA:te.colorA") ; else LOG::LogFailure(message:"ENUMTWO::send_colorsA_ret_colorsA(colorA:te.colorA") ; end if; if (cb == "redder") LOG::LogSuccess(message:"ENUMTWO::send_colorsB_ret_colorsB(colorB:te.colorB") ; else LOG::LogFailure(message:"ENUMTWO::send_colorsB_ret_colorsB(colorB:te.colorB") ; end if; DR::checkin(id:10); ', ''); INSERT INTO SM_MOAH VALUES (4718594, 4718601, 4718594); INSERT INTO SM_AH VALUES (4718594, 4718601); INSERT INTO SM_ACT VALUES (4718594, 4718601, 1, '//idle', ''); INSERT INTO GD_MD VALUES (4718593, 10, 4718601, 40, 1, 0, 1, 1, 0, 12, 1600, 4200, 1.000000, 0); INSERT INTO GD_GE VALUES (4718594, 4718593, 4718593, 41); INSERT INTO GD_SHP VALUES (4718594, 1700, 1270, 2084, 1494); INSERT INTO GD_GE VALUES (4718595, 4718593, 4718594, 41); INSERT INTO GD_SHP VALUES (4718595, 1700, 1558, 2084, 1638); INSERT INTO GD_GE VALUES (4718596, 4718593, 4718594, 42); INSERT INTO GD_CON VALUES (4718596, 4718594, 4718595, 0); INSERT INTO GD_CTXT VALUES (4718596, 0, 0, 0, 0, 0, 0, 1875, 1509, 2129, 1541, 31, -2, 0, 0, 0, 0, 0, 0); INSERT INTO GD_LS VALUES (4718597, 4718596, 1860, 1494, 1860, 1558, 0); INSERT INTO GD_GE VALUES (4718598, 4718593, 4718593, 42); INSERT INTO GD_CON VALUES (4718598, 4718594, 4718594, 0); INSERT INTO GD_CTXT VALUES (4718598, 0, 0, 0, 0, 0, 0, 1842, 1159, 2125, 1204, -5, -16, 0, 0, 0, 0, 0, 0); INSERT INTO GD_LS VALUES (4718599, 4718598, 1744, 1270, 1744, 1200, 0); INSERT INTO GD_LS VALUES (4718600, 4718598, 1744, 1200, 2000, 1200, 4718599); INSERT INTO GD_LS VALUES (4718601, 4718598, 2000, 1200, 2000, 1270, 4718600); INSERT INTO GD_MD VALUES (6291508, 5, 6291468, 11, 1, 0, 1, 1, 0, 12, 1600, 4199, 1.000000, 0); INSERT INTO GD_GE VALUES (6291511, 6291508, 6291462, 21); INSERT INTO GD_SHP VALUES (6291511, 1700, 1270, 2128, 1504); INSERT INTO GD_MD VALUES (6291509, 6, 6291468, 11, 1, 0, 1, 1, 0, 12, 1600, 4200, 1.000000, 0); INSERT INTO GD_GE VALUES (6291512, 6291509, 6291462, 21); INSERT INTO GD_SHP VALUES (6291512, 1700, 1270, 1892, 1334); INSERT INTO GD_GE VALUES (6291513, 6291509, 4718601, 40); INSERT INTO GD_SHP VALUES (6291513, 1860, 1362, 2052, 1426); INSERT INTO GD_MD VALUES (6291510, 7, 6291468, 11, 1, 0, 1, 1, 0, 12, 1600, 4200, 1.000000, 0); INSERT INTO GD_GE VALUES (6291514, 6291510, 6291462, 21); INSERT INTO GD_SHP VALUES (6291514, 1700, 1270, 1892, 1334); INSERT INTO GD_GE VALUES (6291515, 6291510, 4718601, 40); INSERT INTO GD_SHP VALUES (6291515, 1860, 1362, 2052, 1426);
<reponame>brucelawson/almanac.httparchive.org #standardSQL # 08_14: Frame-ancestor CSP directive SELECT client, csp_frame_ancestors_count, csp_frame_ancestors_none_count, csp_frame_ancestors_self_count, total, ROUND(csp_frame_ancestors_count * 100 / total, 2) AS pct_csp_frame_ancestors, ROUND(csp_frame_ancestors_none_count * 100 / total, 2) AS pct_csp_frame_ancestors_none, ROUND(csp_frame_ancestors_self_count * 100 / total, 2) AS pct_csp_frame_ancestors_self FROM ( SELECT client, COUNT(0) AS total, COUNTIF(REGEXP_CONTAINS(LOWER(respOtherHeaders), r'frame-ancestors') AND REGEXP_CONTAINS(LOWER(respOtherHeaders), 'content-security-policy =')) AS csp_frame_ancestors_count, COUNTIF(REGEXP_CONTAINS(LOWER(respOtherHeaders), r'content-security-policy =') AND ENDS_WITH(REGEXP_EXTRACT(respOtherHeaders, r'(?i)\Wframe-ancestors([^,|;]+)'), '\'none\'')) AS csp_frame_ancestors_none_count, COUNTIF(REGEXP_CONTAINS(LOWER(respOtherHeaders), r'content-security-policy =') AND ENDS_WITH(REGEXP_EXTRACT(respOtherHeaders, r'(?i)\Wframe-ancestors([^,|;]+)'), '\'self\'')) AS csp_frame_ancestors_self_count FROM `httparchive.almanac.requests` WHERE firstHtml GROUP BY client)
<filename>modules/web-base/src/main/java/META-INF/org/nlh4j/web/system/role/domain/dao/SystemRoleDao/findRolesBy.sql<gh_stars>1-10 SELECT r.id , COALESCE( r.viewable, false ) viewable , COALESCE( r.insertable, false ) insertable , COALESCE( r.updatable, false ) updatable , COALESCE( r.updatable, false ) deletable , m.id mid , m.code module_cd , m.name module_name , m.lang_key module_lang_key , m.main_url module_link , m.description module_description , rg.id gid , rg.code group_cd , rg.name group_name FROM role r INNER JOIN role_group rg ON rg.id = r.gid INNER JOIN fn_iv_modules( null ) m ON m.id = r.mid WHERE -- only selecting leaf nodes COALESCE( m.leaf, false ) = true AND -- only selecting not common modules COALESCE( m.common, false ) = false /*%if (enabled != null) */ AND COALESCE( m.enabled, false ) = /* enabled */false /*%end*/ /*%if unique != null && unique.id != null && unique.id > 0L*/ AND rg.id = /* unique.id */123 /*%end*/ /*%if unique != null && (unique.id == null || unique.id <= 0L) && @isNotEmpty(unique.code)*/ AND COALESCE( rg.code, '' ) = COALESCE( /* unique.code */'abc', '' ) /*%end*/ /*%if unique == null || ((unique.id == null || unique.id <= 0L) && @isEmpty(unique.code))*/ AND false /*%end*/ /*# orderBy */
create extension if not exists timescaledb cascade; drop table if exists raw_data; create table raw_data ( _time timestamptz not null, _key varchar[] not null, _value bytea not null ); select create_hypertable('raw_data', '_time'); drop table if exists key_value_data; create table key_value_data ( _time timestamptz not null, _key varchar[] not null, _context varchar null, _path varchar not null, _value varchar not null ); select create_hypertable('key_value_data', '_time');
<filename>posda/posdatools/queries/sql/GetBasicSeriesInfo.sql<gh_stars>1-10 -- Name: GetBasicSeriesInfo -- Schema: posda_files -- Columns: ['file_id', 'sop_instance_uid', 'series_instance_uid', 'series_date', 'study_instance_uid', 'study_date', 'instance_number', 'patient_id', 'modality', 'dicom_file_type', 'for_uid', 'iop', 'ipp', 'pixel_data_digest'] -- Args: ['series_instance_uid', 'activity_timepoint_id'] -- Tags: ['activity_timepoint', 'series_report'] -- Description: Get Distinct SOPs in Series with number files -- Only visible filess -- select distinct file_id, sop_instance_uid, series_instance_uid, series_date, study_instance_uid, study_date, cast (instance_number as integer) as instance_number, patient_id, modality, dicom_file_type, for_uid, iop, ipp, pixel_data_digest from file_location natural join dicom_file natural join file_series natural join file_study natural join file_patient natural join file_sop_common left join file_image_geometry using(file_id) left join image_geometry using(image_geometry_id) where file_id in ( select file_id from file_series natural join activity_timepoint_file where series_instance_uid = ? and activity_timepoint_id = ( select max(activity_timepoint_id) as activity_timepoint_id from activity_timepoint where activity_id = ? ) ) order by instance_number
drop table user if exists; drop table role if exists; create table user ( id INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1) PRIMARY KEY, name VARCHAR(32) DEFAULT 'DEFAULT', sex VARCHAR(2) ); create table role ( id INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1) PRIMARY KEY, name VARCHAR(32) NOT NULL ); insert into user(id, name, sex) values (1, '张无忌', '男'), (2, '赵敏', '女'), (3, '周芷若', '女'), (4, '小昭', '女'), (5, '殷离', '女'); insert into role(id, name) values (1, '男主角'), (2, '女主角'), (3, '配角');
/* CSIL - Columnstore Indexes Scripts Library for SQL Server vNext: Columnstore Alignment - Shows the alignment (ordering) between the different Columnstore Segments Version: 1.5.1, September 2017 Copyright 2015-2017 <NAME>, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/) 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. */ /* Known Issues & Limitations: - no support for Multi-Dimensional Segment Clustering in this version Changes in 1.5.0 + Added new parameter that allows to filter the results by specific partition number (@partitionNumber) + Added new parameter for the searching precise name of the object (@preciseSearch) + Added new parameter for the identifying the object by its object_id (@objectId) + Expanded search of the schema to include the pattern search with @preciseSearch = 0 + Added new parameter for showing the number of distinct values within the segments, the percentage related to the total number of the rows within table/partition (@countDistinctValues) + Added new parameter for showing the frequency of the column usage as predicates during querying (@scanExecutionPlans), which results are included in the overall recommendation for segment elimination + Added new parameter for showing the overall recommendation number for each table/partition (@showSegmentAnalysis) + Added information on the Predicate Pushdown support (it will be showing results depending on the used edition) - column [Predicate Pushdown] Changes in 1.5.1 + Added new parameter for specifying the name of the database, where the Columnstore Indexes should be located (@dbName) */ declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)), @SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128)); declare @errorMessage nvarchar(512); -- Ensure that we are running SQL Server vNext if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'14' begin set @errorMessage = (N'You are not running a SQL Server vNext. Your SQL Server version is ' + @SQLServerVersion); Throw 51000, @errorMessage, 1; end GO -------------------------------------------------------------------------------------------------------------------- /* CSIL - Columnstore Indexes Scripts Library for SQL Server vNext: Columnstore Alignment - Shows the alignment (ordering) between the different Columnstore Segments Version: 1.5.1, September 2017 */ create or alter procedure dbo.cstore_GetAlignment( -- Params -- @dbName SYSNAME = NULL, -- Identifies the Database to run the stored procedure against. If this parameter is left to be NULL, then the current database is used @schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema @tableName nvarchar(256) = NULL, -- Allows to show data filtered down to 1 particular table @preciseSearch bit = 0, -- Defines if the schema and data search with the parameters @schemaName & @tableName will be precise or pattern-like @showSegmentAnalysis BIT = 0, -- Allows showing the overall recommendation for aligning order for each table/partition @countDistinctValues BIT = 0, -- Allows showing the number of distinct values within the segments, the percentage related to the total number of the rows within table/partition (@countDistinctValues) @scanExecutionPlans BIT = 0, -- Allows showing the frequency of the column usage as predicates during querying (@scanExecutionPlans), which results is included in the overall recommendation for segment elimination @indexLocation varchar(15) = NULL, -- Allows to filter Columnstore Indexes based on their location: Disk-Based & In-Memory @objectId int = NULL, -- Allows to idenitfy a table thorugh the ObjectId @showPartitionStats bit = 1, -- Shows alignment statistics based on the partition @partitionNumber int = 0, -- Allows to filter data on a specific partion. Works only if @showPartitionDetails is set = 1 @showUnsupportedSegments bit = 1, -- Shows unsupported Segments in the result set @columnName nvarchar(256) = NULL, -- Allows to show data filtered down to 1 particular column name @columnId int = NULL -- Allows to filter one specific column Id -- end of -- ) as begin SET NOCOUNT ON; IF @dbName IS NULL SET @dbName = DB_NAME(DB_ID()); DECLARE @dbId INT = DB_ID(@dbName); DECLARE @sql NVARCHAR(MAX); DROP TABLE IF EXISTS #column_store_segments; CREATE TABLE #column_store_segments( [SchemaName] SYSNAME NOT NULL, [TableName] SYSNAME NOT NULL, [object_id] INT NOT NULL, [partition_number] INT NOT NULL, [hobt_id] INT, [partition_id] INT NOT NULL, [column_id] INT NOT NULL, [segment_id] INT NOT NULL, [min_data_id] INT NOT NULL, [max_data_id] INT NOT NULL ); SET @sql = N' SELECT SchemaName, TableName, object_id, partition_number, hobt_id, partition_id, column_id, segment_id, min_data_id, max_data_id INTO #column_store_segments FROM ( select object_schema_name(part.object_id,@dbId) as SchemaName, object_name(part.object_id,@dbId) as TableName, part.object_id, part.partition_number, part.hobt_id, part.partition_id, seg.column_id, seg.segment_id, seg.min_data_id, seg.max_data_id FROM ' + QUOTENAME(@dbName) + N'.sys.column_store_segments seg INNER JOIN ' + QUOTENAME(@dbName) + N'.sys.partitions part ON seg.hobt_id = part.hobt_id and seg.partition_id = part.partition_id union all select object_schema_name(part.object_id,db_id(''tempdb'')) as SchemaName, object_name(part.object_id,db_id(''tempdb'')) as TableName, part.object_id, part.partition_number, part.hobt_id, part.partition_id, seg.column_id, seg.segment_id, seg.min_data_id, seg.max_data_id FROM tempdb.sys.column_store_segments seg INNER JOIN tempdb.sys.partitions part ON seg.hobt_id = part.hobt_id and seg.partition_id = part.partition_id ) as Res'; DECLARE @paramDefinition NVARCHAR(1000) = '@dbId int'; EXEC sp_executesql @sql, @paramDefinition, @dbId = @dbId; ALTER TABLE #column_store_segments ADD UNIQUE (hobt_id, partition_id, column_id, min_data_id, segment_id); ALTER TABLE #column_store_segments ADD UNIQUE (hobt_id, partition_id, column_id, max_data_id, segment_id); DROP TABLE IF EXISTS #SegmentAlignmentResults; --- *********** CREATE TABLE #SegmentAlignmentResults( [TableName] NVARCHAR(256) NOT NULL, [Location] VARCHAR(15) NOT NULL, [Partition] INT NOT NULL, [Column Id] INT NOT NULL, [ColumnName] NVARCHAR(128) NOT NULL, [ColumnType] NVARCHAR(128) NOT NULL, [Segment Elimination] VARCHAR(25) NOT NULL, [Predicate Pushdown] VARCHAR(25) NOT NULL, [Dealigned Segments] INT NOT NULL, [Total Segments] INT NULL, [Segment Alignment %] DECIMAL(6,2) NOT NULL); SET @sql = N' WITH cteSegmentAlignment as ( select part.object_id, case ind.data_space_id when 0 then ''In-Memory'' else ''Disk-Based'' end as [Location], quotename(object_schema_name(part.object_id,@dbId)) + ''.'' + quotename(object_name(part.object_id,@dbId)) as [TableName], case @showPartitionStats when 1 then part.partition_number else 1 end as [partition_number], seg.[partition_id], seg.[column_id], cols.name as [ColumnName], tp.name as [ColumnType], seg.[segment_id], CONVERT(BIT, MAX(CASE WHEN filteredSeg.segment_id IS NOT NULL THEN 1 ELSE 0 END)) AS [hasOverlappingSegment] from ' + QUOTENAME(@dbName) + N'.sys.column_store_segments seg inner join ' + QUOTENAME(@dbName) + N'.sys.partitions part on seg.hobt_id = part.hobt_id and seg.partition_id = part.partition_id inner join ' + QUOTENAME(@dbName) + N'.sys.indexes ind on part.object_id = ind.object_id and ind.type in (5,6) inner join ' + QUOTENAME(@dbName) + N'.sys.columns cols on part.object_id = cols.object_id and (seg.column_id = cols.column_id + case ind.data_space_id when 0 then 1 else 0 end ) inner join ' + QUOTENAME(@dbName) + N'.sys.types tp on cols.system_type_id = tp.system_type_id and cols.user_type_id = tp.user_type_id outer apply ( SELECT TOP 1 otherSeg.segment_id FROM #column_store_segments otherSeg WITH (FORCESEEK) WHERE seg.hobt_id = otherSeg.hobt_id AND seg.partition_id = otherSeg.partition_id AND seg.column_id = otherSeg.column_id AND seg.segment_id <> otherSeg.segment_id AND (seg.min_data_id < otherSeg.min_data_id and seg.max_data_id > otherSeg.min_data_id ) -- Scenario 1 UNION ALL SELECT TOP 1 otherSeg.segment_id FROM #column_store_segments otherSeg WITH (FORCESEEK) WHERE seg.hobt_id = otherSeg.hobt_id AND seg.partition_id = otherSeg.partition_id AND seg.column_id = otherSeg.column_id AND seg.segment_id <> otherSeg.segment_id AND (seg.min_data_id < otherSeg.max_data_id and seg.max_data_id > otherSeg.max_data_id ) -- Scenario 2 ) filteredSeg where (@preciseSearch = 0 AND (@tableName is null or object_name (part.object_id, @dbId) like ''%'' + @tableName + ''%'') OR @preciseSearch = 1 AND (@tableName is null or object_name (part.object_id, @dbId) = @tableName) ) and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( part.object_id, @dbId ) like ''%'' + @schemaName + ''%'') OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( part.object_id, @dbId ) = @schemaName)) AND (ISNULL(@objectId,part.object_id) = part.object_id) AND partition_number = case @partitionNumber when 0 then partition_number else @partitionNumber end and ind.data_space_id = isnull( case @indexLocation when ''In-Memory'' then 0 when ''Disk-Based'' then 1 else ind.data_space_id end, ind.data_space_id ) group by part.object_id, ind.data_space_id, case @showPartitionStats when 1 then part.partition_number else 1 end, seg.partition_id, seg.column_id, cols.name, tp.name, seg.segment_id UNION ALL select part.object_id, case ind.data_space_id when 0 then ''In-Memory'' else ''Disk-Based'' end as [Location], quotename(object_schema_name(part.object_id,db_id(''tempdb''))) + ''.'' + quotename(object_name(part.object_id,db_id(''tempdb''))) as TableName, case @showPartitionStats when 1 then part.partition_number else 1 end as partition_number, seg.partition_id, seg.column_id, cols.name COLLATE DATABASE_DEFAULT as ColumnName, tp.name COLLATE DATABASE_DEFAULT as ColumnType, seg.segment_id, CONVERT(BIT, MAX(CASE WHEN filteredSeg.segment_id IS NOT NULL THEN 1 ELSE 0 END)) AS hasOverlappingSegment from tempdb.sys.column_store_segments seg inner join tempdb.sys.partitions part on seg.hobt_id = part.hobt_id and seg.partition_id = part.partition_id inner join tempdb.sys.indexes ind on part.object_id = ind.object_id and ind.type in (5,6) inner join tempdb.sys.columns cols on part.object_id = cols.object_id and seg.column_id = cols.column_id inner join tempdb.sys.types tp on cols.system_type_id = tp.system_type_id and cols.user_type_id = tp.user_type_id outer apply ( SELECT TOP 1 otherSeg.segment_id FROM #column_store_segments otherSeg --WITH (FORCESEEK) WHERE seg.hobt_id = otherSeg.hobt_id AND seg.partition_id = otherSeg.partition_id AND seg.column_id = otherSeg.column_id AND seg.segment_id <> otherSeg.segment_id AND (seg.min_data_id < otherSeg.min_data_id and seg.max_data_id > otherSeg.min_data_id ) -- Scenario 1 UNION ALL SELECT TOP 1 otherSeg.segment_id FROM #column_store_segments otherSeg --WITH (FORCESEEK) WHERE seg.hobt_id = otherSeg.hobt_id AND seg.partition_id = otherSeg.partition_id AND seg.column_id = otherSeg.column_id AND seg.segment_id <> otherSeg.segment_id AND (seg.min_data_id < otherSeg.max_data_id and seg.max_data_id > otherSeg.max_data_id ) -- Scenario 2 ) filteredSeg where (@preciseSearch = 0 AND (@tableName is null or object_name (part.object_id,db_id(''tempdb'')) like ''%'' + @tableName + ''%'') OR @preciseSearch = 1 AND (@tableName is null or object_name (part.object_id,db_id(''tempdb'')) = @tableName) ) AND (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( part.object_id,db_id(''tempdb'') ) like ''%'' + @schemaName + ''%'') OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( part.object_id,db_id(''tempdb'') ) = @schemaName)) AND (ISNULL(@objectId,part.object_id) = part.object_id) AND ind.data_space_id = isnull( case @indexLocation when ''In-Memory'' then 0 when ''Disk-Based'' then 1 else ind.data_space_id end, ind.data_space_id ) AND partition_number = case @partitionNumber when 0 then partition_number else @partitionNumber end group by part.object_id, ind.data_space_id, case @showPartitionStats when 1 then part.partition_number else 1 end, seg.partition_id, seg.column_id, cols.name, tp.name, seg.segment_id ) INSERT INTO #SegmentAlignmentResults select TableName, Location, partition_number as [Partition], cte.column_id as [Column Id], cte.ColumnName, cte.ColumnType, case cte.ColumnType when ''numeric'' then ''not supported'' when ''datetimeoffset'' then ''not supported'' when ''char'' then ''not supported'' when ''nchar'' then ''not supported'' when ''varchar'' then ''not supported'' when ''nvarchar'' then ''not supported'' when ''sysname'' then ''not supported'' when ''binary'' then ''not supported'' when ''varbinary'' then ''not supported'' when ''uniqueidentifier'' then ''not supported'' else ''OK'' end as [Segment Elimination], case cte.ColumnType when ''numeric'' then ''not supported'' when ''datetimeoffset'' then ''not supported'' when ''char'' then CASE WHEN SERVERPROPERTY(''EngineEdition'') = 3 THEN ''OK'' ELSE ''not supported'' END when ''nchar'' then CASE WHEN SERVERPROPERTY(''EngineEdition'') = 3 THEN ''OK'' ELSE ''not supported'' END when ''varchar'' then CASE WHEN SERVERPROPERTY(''EngineEdition'') = 3 THEN ''OK'' ELSE ''not supported'' END when ''nvarchar'' then CASE WHEN SERVERPROPERTY(''EngineEdition'') = 3 THEN ''OK'' ELSE ''not supported'' END when ''sysname'' then CASE WHEN SERVERPROPERTY(''EngineEdition'') = 3 THEN ''OK'' ELSE ''not supported'' END when ''binary'' then ''not supported'' when ''varbinary'' then ''not supported'' when ''uniqueidentifier'' then ''not supported'' else ''OK'' end as [Predicate Pushdown], sum(CONVERT(INT, hasOverlappingSegment)) as [Dealigned Segments], count(*) as [Total Segments], 100 - cast( sum(CONVERT(INT, hasOverlappingSegment)) * 100.0 / (count(*)) as Decimal(6,2)) as [Segment Alignment %] from cteSegmentAlignment cte where ((@showUnsupportedSegments = 0 and cte.ColumnType COLLATE DATABASE_DEFAULT not in (''numeric'',''datetimeoffset'',''char'', ''nchar'', ''varchar'', ''nvarchar'', ''sysname'',''binary'',''varbinary'',''uniqueidentifier'') ) OR @showUnsupportedSegments = 1) and cte.ColumnName = isnull(@columnName,cte.ColumnName COLLATE DATABASE_DEFAULT) and cte.column_id = isnull(@columnId,cte.column_id) group by TableName, Location, partition_number, cte.column_id, cte.ColumnName, cte.ColumnType order by TableName, partition_number, cte.column_id;'; SET @paramDefinition = '@indexLocation varchar(15), @preciseSearch bit, @tableName nvarchar(256), @schemaName nvarchar(256), @objectId int, @partitionNumber int, @showSegmentAnalysis BIT, @countDistinctValues BIT, @scanExecutionPlans BIT, @showPartitionStats BIT, @showUnsupportedSegments bit, @columnName nvarchar(256), @columnId int, @dbId int'; EXEC sp_executesql @sql, @paramDefinition, @indexLocation = @indexLocation, @preciseSearch = @preciseSearch, @tableName = @tableName, @schemaName = @schemaName, @objectId = @objectId, @partitionNumber = @partitionNumber, @showSegmentAnalysis = @showSegmentAnalysis, @countDistinctValues = @countDistinctValues, @scanExecutionPlans = @scanExecutionPlans, @showPartitionStats = @showPartitionStats, @showUnsupportedSegments = @showUnsupportedSegments, @columnName = @columnName, @columnId = @columnId, @dbId = @dbId; --- ***************************************************** IF @showSegmentAnalysis = 1 BEGIN DECLARE @alignedColumnList NVARCHAR(MAX) = NULL; DECLARE @alignedColumnNamesList NVARCHAR(MAX) = NULL; DECLARE @alignedTable NVARCHAR(256) = NULL, @alignedPartition INT = NULL, @partitioningClause NVARCHAR(500) = NULL; DROP TABLE IF EXISTS #DistinctCounts; CREATE TABLE #DistinctCounts( TableName SYSNAME NOT NULL, PartitionId INT NOT NULL, ColumnName SYSNAME NOT NULL, DistinctCount BIGINT NOT NULL, TotalRowCount BIGINT NOT NULL ); DECLARE alignmentTablesCursor CURSOR LOCAL FAST_FORWARD FOR SELECT DISTINCT TableName, [Partition] FROM #SegmentAlignmentResults; OPEN alignmentTablesCursor FETCH NEXT FROM alignmentTablesCursor INTO @alignedTable, @alignedPartition; WHILE @@FETCH_STATUS = 0 BEGIN IF @countDistinctValues = 1 BEGIN -- Define Partitioning Clause when showing partitioning information SET @partitioningClause = ''; SET @sql = N' SELECT @partitioningClause = ''WHERE $PARTITION.['' + pf.name + ''](['' + cols.name + '']) = '' + CAST(@alignedPartition AS VARCHAR(8)) FROM ' + QUOTENAME(@dbName) + N'.sys.indexes ix INNER JOIN ' + QUOTENAME(@dbName) + N'.sys.partition_schemes ps on ps.data_space_id = ix.data_space_id INNER JOIN ' + QUOTENAME(@dbName) + N'.sys.partition_functions pf on pf.function_id = ps.function_id INNER JOIN ' + QUOTENAME(@dbName) + N'.sys.index_columns ic ON ic.object_id = ix.object_id AND ix.index_id = ic.index_id INNER JOIN ' + QUOTENAME(@dbName) + N'.sys.all_columns cols ON ic.column_id = cols.column_id AND ic.object_id = cols.object_id WHERE ix.object_id = object_id(@alignedTable) AND ic.partition_ordinal = 1 AND @showPartitionStats = 1; '; SET @paramDefinition = '@alignedTable NVARCHAR(128), @alignedPartition INT, @showPartitionStats BIT, @dbId int, @partitioningClause NVARCHAR(500) OUTPUT'; EXEC sp_executesql @sql, @paramDefinition, @alignedTable = @alignedTable, @alignedPartition = @alignedPartition, @showPartitionStats = @showPartitionStats, @partitioningClause = @partitioningClause OUTPUT, @dbId = @dbId; -- Get the list with COUNT(DISTINCT [ColumnName]) SET @sql = N' SELECT @alignedColumnList = STUFF(( SELECt '', COUNT( DISTINCT '' + QUOTENAME(name) + '') as ['' + name + '']'' FROM ' + QUOTENAME(@dbName) + N'.sys.columns cols WHERE OBJECT_ID(''' + QUOTENAME(@dbName) + N'.' + @alignedTable + ''') = cols.object_id AND cols.name = isnull(@columnName,cols.name) AND cols.column_id = isnull(@columnId,cols.column_id) ORDER BY cols.column_id DESC FOR XML PATH('''') ), 1, 1, '''');' SET @paramDefinition = '@alignedTable NVARCHAR(256), @columnName nvarchar(256), @columnId INT, @dbId int, @alignedColumnList NVARCHAR(MAX) OUTPUT'; EXEC sp_executesql @sql, @paramDefinition, @alignedTable = @alignedTable, @columnName = @columnName, @columnId = @columnId, @alignedColumnList = @alignedColumnList OUTPUT, @dbId = @dbId; -- Getting the list with the column names SET @sql = N' SELECT @alignedColumnNamesList = STUFF(( SELECt '', ['' + name + '']'' FROM ' + QUOTENAME(@dbName) + N'.sys.columns cols WHERE OBJECT_ID(''' + QUOTENAME(@dbName) + N'.' + @alignedTable + ''') = cols.object_id AND cols.name = isnull(@columnName,cols.name) AND cols.column_id = isnull(@columnId,cols.column_id) ORDER BY cols.column_id DESC FOR XML PATH('''') ), 1, 1, '''');'; SET @paramDefinition = '@alignedTable NVARCHAR(128), @columnName nvarchar(256), @columnId INT, @dbId int, @alignedColumnNamesList NVARCHAR(MAX) OUTPUT'; EXEC sp_executesql @sql, @paramDefinition, @alignedTable = @alignedTable, @columnName = @columnName, @columnId = @columnId, @alignedColumnNamesList = @alignedColumnNamesList OUTPUT, @dbId = @dbId; -- Insert Count(*) and COUNT(DISTINCT*) into the #DistinctCounts table SET @sql = ( N'INSERT INTO #DistinctCounts ' + 'SELECT ''' + @alignedTable + ''' as TableName, ' + cast(@alignedPartition as VARCHAR(10)) + ' as PartitionNumber, ColumnName, DistinctCount, __TotalRowCount__ as TotalRowCount ' + ' FROM (SELECT ''DistCount'' as [__Op__], COUNT(*) as __TotalRowCount__, ' + @alignedColumnList + ' FROM ' + QUOTENAME(@dbName) + N'.' + @alignedTable + ISNULL(@partitioningClause,'') + ') res ' + ' UNPIVOT ' + ' ( DistinctCount FOR ColumnName IN(' + @alignedColumnNamesList + ') ' + ' ) AS finalResult;' ); SET @paramDefinition = '@alignedTable NVARCHAR(128), @columnName nvarchar(256), @columnId INT, @alignedPartition INT, @dbName SYSNAME, @dbId int, @alignedColumnList NVARCHAR(MAX), @alignedColumnNamesList NVARCHAR(MAX)'; EXEC sp_executesql @sql, @paramDefinition, @alignedTable = @alignedTable, @columnName = @columnName, @columnId = @columnId, @alignedColumnNamesList = @alignedColumnNamesList, @alignedPartition = @alignedPartition, @alignedColumnList = @alignedColumnList, @dbName = @dbName, @dbId = @dbId; END FETCH NEXT FROM alignmentTablesCursor INTO @alignedTable, @alignedPartition; END CLOSE alignmentTablesCursor; DEALLOCATE alignmentTablesCursor; -- Create table storing results of the access via cached execution plans DROP TABLE IF EXISTS #CachedAccessToColumnstore; CREATE TABLE #CachedAccessToColumnstore( [Schema] SYSNAME NOT NULL, [Table] SYSNAME NOT NULL, [TableName] SYSNAME NOT NULL, [ColumnName] SYSNAME NOT NULL, [ScanFrequency] BIGINT, [ScanRank] DECIMAL(16,6) ); -- Scan cached execution plans and extract the frequency with which the table columns are searched IF @scanExecutionPlans = 1 BEGIN -- Extract information from the cached execution plans to determine the frequency of the used(pushed down) predicates against Columnstore Indexes SET @sql = N' ;WITH XMLNAMESPACES (DEFAULT ''http://schemas.microsoft.com/sqlserver/2004/07/showplan'') INSERT INTO #CachedAccessToColumnstore SELECT [Schema], [Table], [Schema] + ''.'' + [Table] as TableName, [Column] as ColumnName, SUM(execution_count) as ScanFrequency, Cast(0. as Decimal(16,6)) as ScanRank FROM ( SELECT x.value(''(@Database)[1]'', ''nvarchar(128)'') AS [Database], x.value(''(@Schema)[1]'', ''nvarchar(128)'') AS [Schema], x.value(''(@Table)[1]'', ''nvarchar(128)'') AS [Table], x.value(''(@Alias)[1]'', ''nvarchar(128)'') AS [Alias], x.value(''(@Column)[1]'', ''nvarchar(128)'') AS [Column], xmlRes.execution_count FROM ( SELECT dm_exec_query_plan.query_plan, dm_exec_query_stats.execution_count FROM ' + QUOTENAME(@dbName) + N'.sys.dm_exec_query_stats CROSS APPLY ' + QUOTENAME(@dbName) + N'.sys.dm_exec_sql_text(dm_exec_query_stats.sql_handle) CROSS APPLY ' + QUOTENAME(@dbName) + N'.sys.dm_exec_query_plan(dm_exec_query_stats.plan_handle) WHERE query_plan.exist(''//RelOp//IndexScan//Object[@Storage = "ColumnStore"]'') = 1 AND query_plan.exist(''//RelOp//IndexScan//Predicate//Compare//ScalarOperator//Identifier//ColumnReference'') = 1 ) xmlRes CROSS APPLY xmlRes.query_plan.nodes(''//RelOp//IndexScan//Predicate//Compare//ScalarOperator//Identifier//ColumnReference'') x1(x) --[@Database = "[' + @dbName + ']"] WHERE -- Avoid Inter-column Search references since they are not supporting Segment Elimination NOT (query_plan.exist(''(//RelOp//IndexScan//Predicate//Compare//ScalarOperator//Identifier//ColumnReference[@Table])[1]'') = 1 AND query_plan.exist(''(//RelOp//IndexScan//Predicate//Compare//ScalarOperator//Identifier//ColumnReference[@Table])[2]'') = 1 AND x.value(''(@Table)[1]'', ''nvarchar(128)'') = x.value(''(@Table)[2]'', ''nvarchar(128)'') ) ) res WHERE res.[Database] = QUOTENAME(@dbName) AND res.[Schema] IS NOT NULL AND res.[Table] IS NOT NULL AND res.[Column] COLLATE DATABASE_DEFAULT = isnull(@columnName,res.[Column]) GROUP BY [Schema], [Table], [Column];' SET @paramDefinition = '@alignedTable NVARCHAR(128), @columnName nvarchar(256), @columnId INT, @dbName SYSNAME, @dbId int'; EXEC sp_executesql @sql, @paramDefinition, @alignedTable = @alignedTable, @columnName = @columnName, @columnId = @columnId, @dbName = @dbName, @dbId = @dbId; -- Distribute Rank based on the values between 0 & 100 UPDATE #CachedAccessToColumnstore SET ScanRank = ScanFrequency * 100. / (SELECT MAX(ScanFrequency) FROM #CachedAccessToColumnstore); END -- Deliver the final result SELECT res.*, cnt.DistinctCount, cnt.TotalRowCount, CAST(cnt.DistinctCount * 100. / CASE cnt.TotalRowCount WHEN 0 THEN 1 ELSE cnt.TotalRowCount END as Decimal(8,3)) as [PercDistinct], ISNULL(ScanFrequency,0) AS ScanFrequency, DENSE_RANK() OVER ( PARTITION BY res.[TableName], [Partition] ORDER BY ISNULL(ScanRank,-100) + CASE WHEN [DistinctCount] < [Total Segments] OR [DistinctCount] < 2 THEN - 100 ELSE 0 END + ( ISNULL(cnt.DistinctCount,0) * 100. / CASE ISNULL(cnt.TotalRowCount,0) WHEN 0 THEN 1 ELSE cnt.TotalRowCount END) - CASE [Segment Elimination] WHEN 'OK' THEN 0. ELSE 1000. END DESC ) AS [Recommendation] FROM #SegmentAlignmentResults res LEFT OUTER JOIN #DistinctCounts cnt ON res.TableName = cnt.TableName COLLATE DATABASE_DEFAULT AND res.ColumnName = cnt.ColumnName COLLATE DATABASE_DEFAULT AND res.[Partition] = cnt.PartitionId LEFT OUTER JOIN #CachedAccessToColumnstore cache ON res.TableName = cache.TableName COLLATE DATABASE_DEFAULT AND res.ColumnName = cache.ColumnName COLLATE DATABASE_DEFAULT ORDER BY res.TableName, res.Partition, res.[Column Id]; END ELSE BEGIN SELECT res.* FROM #SegmentAlignmentResults res ORDER BY res.[TableName], res.[Partition], res.[Column Id]; END -- Cleanup DROP TABLE IF EXISTS #SegmentAlignmentResults; DROP TABLE IF EXISTS #DistinctCounts; DROP TABLE IF EXISTS #CachedAccessToColumnstore; end GO
<reponame>masseelch/FastTrackBalancing UPDATE StartBiasFeatures SET Tier=4 WHERE CivilizationType='CIVILIZATION_EGYPT' AND FeatureType='FEATURE_FLOODPLAINS_PLAINS'; UPDATE StartBiasFeatures SET Tier=4 WHERE CivilizationType='CIVILIZATION_EGYPT' AND FeatureType='FEATURE_FLOODPLAINS_GRASSLAND'; INSERT INTO Requirements (RequirementId, RequirementType) VALUES ('REQUIRES_PLOT_HAS_FLOODPLAINS_GRASSLAND', 'REQUIREMENT_PLOT_FEATURE_TYPE_MATCHES'); INSERT INTO Requirements (RequirementId, RequirementType) VALUES ('REQUIRES_PLOT_HAS_FLOODPLAINS_PLAINS', 'REQUIREMENT_PLOT_FEATURE_TYPE_MATCHES'); INSERT INTO RequirementArguments (RequirementId, Name, Value) VALUES ('REQUIRES_PLOT_HAS_FLOODPLAINS_GRASSLAND', 'FeatureType', 'FEATURE_FLOODPLAINS_GRASSLAND'); INSERT INTO RequirementArguments (RequirementId, Name, Value) VALUES ('REQUIRES_PLOT_HAS_FLOODPLAINS_PLAINS', 'FeatureType', 'FEATURE_FLOODPLAINS_PLAINS'); INSERT INTO RequirementSetRequirements (RequirementSetId, RequirementId) VALUES ('REQUIRES_PLOT_HAS_FLOODPLAINS_CPL', 'REQUIRES_PLOT_HAS_FLOODPLAINS_GRASSLAND'); INSERT INTO RequirementSetRequirements (RequirementSetId, RequirementId) VALUES ('REQUIRES_PLOT_HAS_FLOODPLAINS_CPL', 'REQUIRES_PLOT_HAS_FLOODPLAINS_PLAINS');
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 28-Fev-2019 às 13:43 -- Versão do servidor: 10.1.37-MariaDB -- versão do PHP: 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `fabrica` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `clientes` -- CREATE TABLE `clientes` ( `CL_CODIGO` bigint(20) UNSIGNED NOT NULL, `CL_NOME` text NOT NULL, `CL_EMAIL` text NOT NULL, `CL_TELEFONE` varchar(11) NOT NULL, `CL_ATIVO` tinyint(1) NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `clientes` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `funcionarios` -- CREATE TABLE `funcionarios` ( `FU_CODIGO` int(11) NOT NULL, `FU_LOGIN` varchar(100) NOT NULL, `FU_SENHA` char(32) NOT NULL, `FU_ADMINISTRADOR` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Estrutura da tabela `plano` -- CREATE TABLE `plano` ( `PL_CODIGO` int(11) NOT NULL, `PL_INICIO_VIGENCIA` date NOT NULL, `PL_FIM_VIGENCIA` date NOT NULL, `PL_OBSERVACOES` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indexes for table `clientes` -- ALTER TABLE `clientes` ADD UNIQUE KEY `CL_CODIGO` (`CL_CODIGO`); -- -- Indexes for table `funcionarios` -- ALTER TABLE `funcionarios` ADD PRIMARY KEY (`FU_CODIGO`); -- -- Indexes for table `plano` -- ALTER TABLE `plano` ADD PRIMARY KEY (`PL_CODIGO`), ADD UNIQUE KEY `PL_CODIGO` (`PL_CODIGO`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `clientes` -- ALTER TABLE `clientes` MODIFY `CL_CODIGO` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; 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 */; INSERT INTO `clientes` (`CL_CODIGO`, `CL_NOME`, `CL_EMAIL`, `CL_TELEFONE`, `CL_ATIVO`) VALUES (12, '<NAME>', '<EMAIL>', '83998570157', 1), (13, 'New Cliente', '<EMAIL>', '20190326000', 2), (14, 'Teste', '<EMAIL>', '83998570157', 0), (15, 'Teste', '<EMAIL>', '99999999999', 2), (20, 'testando', '<EMAIL>', '90000000000', 1); -- -- Extraindo dados da tabela `funcionarios` -- INSERT INTO `funcionarios` (`FU_CODIGO`, `FU_LOGIN`, `FU_SENHA`, `FU_ADMINISTRADOR`) VALUES (1, 'JEFTER', '202cb962ac59075b964b07152d234b70', 1); -- -- Extraindo dados da tabela `plano` -- INSERT INTO `plano` (`PL_CODIGO`, `PL_INICIO_VIGENCIA`, `PL_FIM_VIGENCIA`, `PL_OBSERVACOES`) VALUES (12, '2019-02-27', '2019-03-27', 'NULL'), (13, '2019-02-19', '2019-02-27', 'teste new Cliente'), (14, '2019-02-26', '2019-03-26', 'NULL'), (15, '2019-01-27', '2019-02-26', 'teste novamente'), (16, '1970-01-01', '1970-01-01', 'NULL'), (17, '1970-01-01', '1970-01-01', 'NULL'), (18, '1970-01-01', '1970-01-01', 'NULL'), (19, '1970-01-01', '1970-01-01', 'NULL'), (20, '2019-02-28', '2019-03-27', 'testando');
<filename>config/db.sql SET LOCAL client_min_messages = warning; CREATE UNIQUE INDEX IF NOT EXISTS unique_name_lower ON "user" (LOWER(name));
--Test greatest() function with collections create class t1 (a int, b timestamp); select greatest({1000,99,88},{1000,98,99}) from db_root; select greatest({1000,99,88},{1000,100,99}) from db_root; select greatest({1001,99,88},{1000,100,99}) from db_root; drop class t1;
-- @testpoint:opengauss关键字nullable(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists nullable; create database nullable; drop database nullable; --关键字带双引号-成功 drop database if exists "nullable"; create database "nullable"; drop database "nullable"; --关键字带单引号-合理报错 drop database if exists 'nullable'; create database 'nullable'; --关键字带反引号-合理报错 drop database if exists `nullable`; create database `nullable`;
<gh_stars>0 CREATE DATABASE IF NOT EXISTS ormPHP COLLATE 'utf8_general_ci'; use ormPHP; CREATE TABLE users( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, username VARCHAR(50) NOT NULL UNIQUE KEY, password VARCHAR(255) NOT NULL, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NULL, born_on DATETIME DEFAULT CURRENT_TIMESTAMP );
-- 클러스터 생성 create cluster shipment_clu (shipment_id number(9)) size 1k tablespace users; -- 클러스터용 인덱스 생성 create index shipment_index on cluster shipment_clu; -- 테이블을 클러스터 안에 생성 create table c_shipment cluster shipment_clu(id) as select * from shipment; -- 이름 바꾸기 rename shipment to old_shipment; rename c_shipment to shipment; -- 테이블에 추가 인덱스 생성 create index shipment_id_clu_idx on shipment(id); -- 샘플 데이터 삽입 insert into shipment values(1,'asdf','20200120',1,1,1); -- 실행계획 확인 1 : 단일 테이블 -- select /*+ rule */ * from emp -- where deptno = 10; -- set autot on -- DROP INDEX 인덱스 명; -- DROP SEQUENCE """ drop table shipment cascade constraint; drop sequence shipment_id_seq; drop index shipment_id_idx; CREATE SEQUENCE shipment_id_seq INCREMENT BY 1 START WITH 1 MINVALUE 1 MAXVALUE 999999999 NOCYCLE; CREATE TABLE shipment ( id NUMBER(9) NOT NULL, name VARCHAR2(50 CHAR) NOT NULL, estimated_arrival_date DATE, shipment_company_id NUMBER(9) NOT NULL, product_id NUMBER(9) NOT NULL, product_customer_id NUMBER(9) NOT NULL ) LOGGING; CREATE INDEX shipment_id_idx ON shipment(id); CREATE INDEX shipment_product_id_idx ON shipment(product_id); CREATE INDEX shipment_shipment_company_id_idx ON shipment(shipment_company_id); ALTER TABLE shipment ADD CONSTRAINT shipment_id_pk PRIMARY KEY(id); ALTER TABLE shipment ADD CONSTRAINT shipment_product_id_nn CHECK (product_id is not null); -- 1:1 mandetory not null, unique �Ӽ�, fk ALTER TABLE shipment ADD CONSTRAINT shipment_product_id UNIQUE(product_id); ALTER TABLE shipment ADD CONSTRAINT shipment_shipment_company_id_fk FOREIGN KEY(shipment_company_id) REFERENCES shipment_company(id); ALTER TABLE shipment ADD CONSTRAINT shipment_product_id_fk FOREIGN KEY (product_id, product_customer_id) REFERENCES product(id, customer_id); """
<reponame>Suiname/sinatra_songs CREATE DATABASE sinatra_songs; \c sinatra_songs CREATE TABLE songs (id SERIAL PRIMARY KEY, artist varchar(255), title varchar(255), release_year Interval year);
CREATE TABLE user ( id integer primary key, name text ); CREATE TABLE user_private ( id integer primary key, user_id integer, password_hash text );
<filename>trainit_cici (1).sql -- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 12 Feb 2020 pada 07.19 -- Versi Server: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `trainit_cici` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `admin` -- CREATE TABLE `admin` ( `id_admin` int(11) NOT NULL, `username_admin` varchar(50) NOT NULL, `password_admin` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `admin` -- INSERT INTO `admin` (`id_admin`, `username_admin`, `password_admin`) VALUES (1, 'admin', '<PASSWORD>'); -- -------------------------------------------------------- -- -- Struktur dari tabel `detail_pemesanan` -- CREATE TABLE `detail_pemesanan` ( `id_detail_pemesanan` int(11) NOT NULL, `id_pemesanan` int(11) NOT NULL, `id_detail_studio` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `detail_pemesanan` -- INSERT INTO `detail_pemesanan` (`id_detail_pemesanan`, `id_pemesanan`, `id_detail_studio`) VALUES (1, 1, 1), (2, 1, 7), (3, 2, 4); -- -------------------------------------------------------- -- -- Struktur dari tabel `detail_studio` -- CREATE TABLE `detail_studio` ( `id_detail_studio` int(11) NOT NULL, `id_studio` int(11) NOT NULL, `nama_background` int(1) NOT NULL, `foto_background` varchar(150) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `detail_studio` -- INSERT INTO `detail_studio` (`id_detail_studio`, `id_studio`, `nama_background`, `foto_background`) VALUES (1, 1, 1, 'Pass_foto1.jpeg'), (4, 1, 2, 'st8.PNG'), (5, 1, 3, 'st5.PNG'), (6, 2, 1, 'Pass_foto1.jpeg'), (7, 2, 2, 'st8.PNG'), (8, 2, 3, 'st5.PNG'); -- -------------------------------------------------------- -- -- Struktur dari tabel `member` -- CREATE TABLE `member` ( `id_member` int(11) NOT NULL, `nama_member` varchar(50) NOT NULL, `username_member` varchar(50) NOT NULL, `password_member` varchar(100) NOT NULL, `email_member` varchar(50) NOT NULL, `no_telepon_member` char(13) NOT NULL, `alamat_member` text NOT NULL, `status_member` enum('Sudah Verifikasi','Belum Verifikasi') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `member` -- INSERT INTO `member` (`id_member`, `nama_member`, `username_member`, `password_member`, `email_member`, `no_telepon_member`, `alamat_member`, `status_member`) VALUES (1, 'nurul', 'nurulkho', '8cb2237d0679ca88db6464eac60da96345513964', '<EMAIL>', '087638928977', 'Jalan Kaliurang km 14.5', ''), (2, 'cici', 'cici_sha', '1234567', '<EMAIL>', '085747554797', 'Jalan Kaliurang Km 14,5 ', ''), (3, 'ghina', 'ghina_alfish19', '54321', '<EMAIL>', '08587435677', 'Jalan Slamet Riyadi', ''), (4, 'Mutiara', 'mutirnuya', '5f6955d227a320c7f1f6c7da2a6d96<PASSWORD>f', '<EMAIL>', '874937898', 'Kota Gede', 'Belum Verifikasi'); -- -------------------------------------------------------- -- -- Struktur dari tabel `paket` -- CREATE TABLE `paket` ( `id_paket` int(11) NOT NULL, `nama_paket` varchar(50) NOT NULL, `foto_paket` varchar(150) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `paket` -- INSERT INTO `paket` (`id_paket`, `nama_paket`, `foto_paket`) VALUES (1, 'Graduation & Family', 'Graduationfamily.jpg'), (3, 'Maternity & Baby', 'Maternity1.jpg'), (4, 'Couple', 'Prewed_indoor2.jpg'), (5, 'Personal', 'Graduationfamily11.jpg'), (13, 'Group', 'Group2.jpg'), (14, 'Pass Foto', 'Graduationfamily1.jpg'), (15, 'Prewedding Indoor', 'Prewed_indoor3.jpg'); -- -------------------------------------------------------- -- -- Struktur dari tabel `paket_studio` -- CREATE TABLE `paket_studio` ( `id_paket_studio` int(11) NOT NULL, `id_tipe_paket` int(11) NOT NULL, `id_studio` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `paket_studio` -- INSERT INTO `paket_studio` (`id_paket_studio`, `id_tipe_paket`, `id_studio`) VALUES (1, 1, 1), (2, 1, 2), (3, 3, 1), (4, 3, 2), (5, 3, 3), (6, 2, 1); -- -------------------------------------------------------- -- -- Struktur dari tabel `pembayaran` -- CREATE TABLE `pembayaran` ( `id_pembayaran` int(11) NOT NULL, `id_pemesanan` int(11) NOT NULL, `tanggal_bayar` date NOT NULL, `tanggal_konfirmasi` date NOT NULL, `nama_rekening` varchar(100) NOT NULL, `no_rekening` int(50) NOT NULL, `jumlah_bayar` int(11) NOT NULL, `nama_bank` varchar(100) NOT NULL, `status_pembayaran` enum('DP','Lunas') NOT NULL, `foto_bukti_bayar` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `pemesanan` -- CREATE TABLE `pemesanan` ( `id_pemesanan` int(11) NOT NULL, `id_member` int(11) NOT NULL, `id_tipe_paket` int(11) NOT NULL, `kode_pemesanan` varchar(10) NOT NULL, `tanggal_pemesanan` date NOT NULL, `tanggal_booking` date NOT NULL, `status_pemesanan` enum('Pending','Cancel','DP','Lunas','Menunggu Konfirmasi') NOT NULL, `jumlah_orang` int(2) NOT NULL, `total_bayar` varchar(8) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `pemesanan` -- INSERT INTO `pemesanan` (`id_pemesanan`, `id_member`, `id_tipe_paket`, `kode_pemesanan`, `tanggal_pemesanan`, `tanggal_booking`, `status_pemesanan`, `jumlah_orang`, `total_bayar`) VALUES (1, 1, 3, 'U231M', '2020-02-11', '2020-02-11', 'Pending', 12, '825000'), (2, 1, 1, 'I0H78', '2020-02-12', '2020-02-12', 'Pending', 12, '355000'); -- -------------------------------------------------------- -- -- Struktur dari tabel `pengaturan` -- CREATE TABLE `pengaturan` ( `id_pengaturan` int(11) NOT NULL, `nama_pengaturan` varchar(100) NOT NULL, `isi_pengaturan` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `pengaturan` -- INSERT INTO `pengaturan` (`id_pengaturan`, `nama_pengaturan`, `isi_pengaturan`) VALUES (1, 'Tarif Tambah Orang', '15000'); -- -------------------------------------------------------- -- -- Struktur dari tabel `portofolio` -- CREATE TABLE `portofolio` ( `id_portofolio` int(5) NOT NULL, `foto` varchar(100) NOT NULL, `keterangan` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `portofolio` -- INSERT INTO `portofolio` (`id_portofolio`, `foto`, `keterangan`) VALUES (1, 'GRADUATIONFAMILY2.jpeg', 'Graduation merupakan moment yang sangat ditunggu-tunggu oleh mahasiswa, sehingga momet tersebut wajib untuk diabadikan:)'), (2, 'COUPLE.jpeg', 'Couple'), (3, 'PERSONAL.jpeg', 'personal'); -- -------------------------------------------------------- -- -- Struktur dari tabel `studio` -- CREATE TABLE `studio` ( `id_studio` int(11) NOT NULL, `nama_studio` int(5) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `studio` -- INSERT INTO `studio` (`id_studio`, `nama_studio`) VALUES (1, 1), (2, 2), (3, 3); -- -------------------------------------------------------- -- -- Struktur dari tabel `tipe_paket` -- CREATE TABLE `tipe_paket` ( `id_tipe_paket` int(11) NOT NULL, `id_paket` int(11) NOT NULL, `nama_tipe_paket` varchar(50) NOT NULL, `harga_tipe_paket` varchar(8) NOT NULL, `deskripsi_tipe_paket` text NOT NULL, `min_dp_tipe_paket` varchar(6) NOT NULL, `max_jumlah_orang` int(2) NOT NULL, `foto_tipe_paket` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tipe_paket` -- INSERT INTO `tipe_paket` (`id_tipe_paket`, `id_paket`, `nama_tipe_paket`, `harga_tipe_paket`, `deskripsi_tipe_paket`, `min_dp_tipe_paket`, `max_jumlah_orang`, `foto_tipe_paket`) VALUES (1, 1, 'Bronze', '325000', '3 print foto 8RW\r\n1 DVD foto edit\r\nmax 10 orang\r\n5 pose\r\n1 background\r\n', '75000', 10, 'Graduationfamily11.jpg'), (2, 1, 'Silver', '488000', '<ul>\r\n <li>4 print foto 8RW\r\n </li>\r\n <li>1 print foto 12R + \"Minimalis Frame\"\r\n </li>\r\n <li>1 DVD foto edit\r\n </li>\r\n <li>Max. 10 orang</li>\r\n <li>6 pose</li>\r\n <li>1 background</li>\r\n</ul>\r\n\r\n\r\n', '100000', 10, 'Graduationfamily.jpg'), (3, 1, 'Gold', '795000', '4 print foto 8RW, 1 print foto 16R, 1 DVD foto edit, max 10 orang, 7 pose, 2 backgound', '125000', 10, 'Graduationfamily111.jpg'), (4, 1, 'Platinum', '995000', '5 print foto 8RW, 1 DVD foto edit, max 10 orang, 10 pose, 2 background', '150000', 10, 'Graduationfamily1.jpg'); -- -- Indexes for dumped tables -- -- -- Indexes for table `admin` -- ALTER TABLE `admin` ADD PRIMARY KEY (`id_admin`); -- -- Indexes for table `detail_pemesanan` -- ALTER TABLE `detail_pemesanan` ADD PRIMARY KEY (`id_detail_pemesanan`); -- -- Indexes for table `detail_studio` -- ALTER TABLE `detail_studio` ADD PRIMARY KEY (`id_detail_studio`); -- -- Indexes for table `member` -- ALTER TABLE `member` ADD PRIMARY KEY (`id_member`); -- -- Indexes for table `paket` -- ALTER TABLE `paket` ADD PRIMARY KEY (`id_paket`); -- -- Indexes for table `paket_studio` -- ALTER TABLE `paket_studio` ADD PRIMARY KEY (`id_paket_studio`); -- -- Indexes for table `pembayaran` -- ALTER TABLE `pembayaran` ADD PRIMARY KEY (`id_pembayaran`); -- -- Indexes for table `pemesanan` -- ALTER TABLE `pemesanan` ADD PRIMARY KEY (`id_pemesanan`); -- -- Indexes for table `pengaturan` -- ALTER TABLE `pengaturan` ADD PRIMARY KEY (`id_pengaturan`); -- -- Indexes for table `portofolio` -- ALTER TABLE `portofolio` ADD PRIMARY KEY (`id_portofolio`); -- -- Indexes for table `studio` -- ALTER TABLE `studio` ADD PRIMARY KEY (`id_studio`); -- -- Indexes for table `tipe_paket` -- ALTER TABLE `tipe_paket` ADD PRIMARY KEY (`id_tipe_paket`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `admin` -- ALTER TABLE `admin` MODIFY `id_admin` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `detail_pemesanan` -- ALTER TABLE `detail_pemesanan` MODIFY `id_detail_pemesanan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `detail_studio` -- ALTER TABLE `detail_studio` MODIFY `id_detail_studio` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `member` -- ALTER TABLE `member` MODIFY `id_member` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `paket` -- ALTER TABLE `paket` MODIFY `id_paket` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `paket_studio` -- ALTER TABLE `paket_studio` MODIFY `id_paket_studio` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `pembayaran` -- ALTER TABLE `pembayaran` MODIFY `id_pembayaran` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `pemesanan` -- ALTER TABLE `pemesanan` MODIFY `id_pemesanan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `pengaturan` -- ALTER TABLE `pengaturan` MODIFY `id_pengaturan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `portofolio` -- ALTER TABLE `portofolio` MODIFY `id_portofolio` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `studio` -- ALTER TABLE `studio` MODIFY `id_studio` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `tipe_paket` -- ALTER TABLE `tipe_paket` MODIFY `id_tipe_paket` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>schema.sql DROP DATABASE IF EXISTS bamazonDB; CREATE database bamazonDB; USE bamazonDB; CREATE TABLE products ( position INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(100) NOT NULL, department_name VARCHAR(50) NOT NULL, department_ID INT NOT NULL, price DECIMAL(6,2) NOT NULL, stock_quantity INT NOT NULL, sales INT NOT NULL, overhead_costs DECIMAL(7,2) NOT NULL, PRIMARY KEY (position) ); SELECT * FROM products;
create table point( landcode varchara(10) primary key, lat double(8,6) DEFAULT NULL, lng double(9,6) DEFAULT NULL );
<filename>db/sql/init-check.sql SELECT TRUE FROM information_schema.tables WHERE table_schema='public' AND table_name='links';
-- sequence for import model DROP SEQUENCE IF EXISTS galette_import_model_id_seq; CREATE SEQUENCE galette_import_model_id_seq START 1 INCREMENT 1 MAXVALUE 2147483647 MINVALUE 1 CACHE 1; -- Table for import models DROP TABLE IF EXISTS galette_import_model; CREATE TABLE galette_import_model ( model_id integer DEFAULT nextval('galette_import_model_id_seq'::text) NOT NULL, model_fields text, model_creation_date timestamp NOT NULL, PRIMARY KEY (model_id) ); UPDATE galette_database SET version = 0.704;
<reponame>x87-va/sputnik TRUNCATE TABLE starwars.characters;
-- Connect to the 'Orders' database to run this snippet USE [Orders] GO -- Select the product names and the order dates from the 'Orders' table -- Create a column 'Pay Due' that adds 3 days to the order date -- Create a column 'Deliver Due' that adds 1 month to the order date SELECT [ProductName] , [OrderDate] , DATEADD(DAY, 3, [OrderDate]) AS [Pay Due] , DATEADD(MONTH, 1, [OrderDate]) AS [Deliver Due] FROM [Orders] GO
<filename>SQL/1159. Market Analysis II.sql /* 1159. Market Analysis II Table: Users +----------------+---------+ | Column Name | Type | +----------------+---------+ | user_id | int | | join_date | date | | favorite_brand | varchar | +----------------+---------+ user_id is the primary key of this table. This table has the info of the users of an online shopping website where users can sell and buy items. Table: Orders +---------------+---------+ | Column Name | Type | +---------------+---------+ | order_id | int | | order_date | date | | item_id | int | | buyer_id | int | | seller_id | int | +---------------+---------+ order_id is the primary key of this table. item_id is a foreign key to the Items table. buyer_id and seller_id are foreign keys to the Users table. Table: Items +---------------+---------+ | Column Name | Type | +---------------+---------+ | item_id | int | | item_brand | varchar | +---------------+---------+ item_id is the primary key of this table. Write an SQL query to find for each user, whether the brand of the second item (by date) they sold is their favorite brand. If a user sold less than two items, report the answer for that user as no. It is guaranteed that no seller sold more than one item on a day. The query result format is in the following example: Users table: +---------+------------+----------------+ | user_id | join_date | favorite_brand | +---------+------------+----------------+ | 1 | 2019-01-01 | Lenovo | | 2 | 2019-02-09 | Samsung | | 3 | 2019-01-19 | LG | | 4 | 2019-05-21 | HP | +---------+------------+----------------+ Orders table: +----------+------------+---------+----------+-----------+ | order_id | order_date | item_id | buyer_id | seller_id | +----------+------------+---------+----------+-----------+ | 1 | 2019-08-01 | 4 | 1 | 2 | | 2 | 2019-08-02 | 2 | 1 | 3 | | 3 | 2019-08-03 | 3 | 2 | 3 | | 4 | 2019-08-04 | 1 | 4 | 2 | | 5 | 2019-08-04 | 1 | 3 | 4 | | 6 | 2019-08-05 | 2 | 2 | 4 | +----------+------------+---------+----------+-----------+ Items table: +---------+------------+ | item_id | item_brand | +---------+------------+ | 1 | Samsung | | 2 | Lenovo | | 3 | LG | | 4 | HP | +---------+------------+ Result table: +-----------+--------------------+ | seller_id | 2nd_item_fav_brand | +-----------+--------------------+ | 1 | no | | 2 | yes | | 3 | yes | | 4 | no | +-----------+--------------------+ The answer for the user with id 1 is no because they sold nothing. The answer for the users with id 2 and 3 is yes because the brands of their second sold items are their favorite brands. The answer for the user with id 4 is no because the brand of their second sold item is not their favorite brand. */ With a AS (SELECT seller_id, item_id, ROW_NUMBER() OVER (PARTITION BY seller_id ORDER BY order_date) AS rnum FROM Orders) SELECT IFNULL(a.seller_id,u.user_id) seller_id, CASE WHEN i.item_brand = u.favorite_brand THEN 'yes' ELSE 'no' END AS 2nd_item_fav_brand FROM a JOIN Items i ON a.item_id = i.item_id AND a.rnum = 2 RIGHT JOIN Users u ON a.seller_id = u.user_id
--DROP TABLE IF EXISTS public.event_journal; CREATE TABLE IF NOT EXISTS public.event_journal( ordering BIGSERIAL, persistence_id VARCHAR(255) NOT NULL, sequence_number BIGINT NOT NULL, deleted BOOLEAN DEFAULT FALSE NOT NULL, writer VARCHAR(255) NOT NULL, write_timestamp BIGINT, adapter_manifest VARCHAR(255), event_ser_id INTEGER NOT NULL, event_ser_manifest VARCHAR(255) NOT NULL, event_payload BYTEA NOT NULL, meta_ser_id INTEGER, meta_ser_manifest VARCHAR(255), meta_payload BYTEA, PRIMARY KEY(persistence_id, sequence_number) ); CREATE UNIQUE INDEX event_journal_ordering_idx ON public.event_journal(ordering); --DROP TABLE IF EXISTS public.event_tag; CREATE TABLE IF NOT EXISTS public.event_tag( event_id BIGINT, tag VARCHAR(256), PRIMARY KEY(event_id, tag), CONSTRAINT fk_event_journal FOREIGN KEY(event_id) REFERENCES event_journal(ordering) ON DELETE CASCADE ); --DROP TABLE IF EXISTS public.snapshot; CREATE TABLE IF NOT EXISTS public.snapshot ( persistence_id VARCHAR(255) NOT NULL, sequence_number BIGINT NOT NULL, created BIGINT NOT NULL, snapshot_ser_id INTEGER NOT NULL, snapshot_ser_manifest VARCHAR(255) NOT NULL, snapshot_payload BYTEA NOT NULL, meta_ser_id INTEGER, meta_ser_manifest VARCHAR(255), meta_payload BYTEA, PRIMARY KEY(persistence_id, sequence_number) ); --drop table if exists public.akka_projection_offset_store; CREATE TABLE IF NOT EXISTS public.akka_projection_offset_store ( projection_name VARCHAR(255) NOT NULL, projection_key VARCHAR(255) NOT NULL, current_offset VARCHAR(255) NOT NULL, manifest VARCHAR(4) NOT NULL, mergeable BOOLEAN NOT NULL, last_updated BIGINT NOT NULL, PRIMARY KEY(projection_name, projection_key) ); CREATE INDEX IF NOT EXISTS projection_name_index ON public.akka_projection_offset_store (projection_name); --drop table if exists public.akka_projection_management; CREATE TABLE IF NOT EXISTS public.akka_projection_management ( projection_name VARCHAR(255) NOT NULL, projection_key VARCHAR(255) NOT NULL, paused BOOLEAN NOT NULL, last_updated BIGINT NOT NULL, PRIMARY KEY(projection_name, projection_key) );
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/current/5.2.1/sequences/KC_SEQ_SUBAWARD_ATTACHMENT_ID.sql CREATE SEQUENCE SEQ_SUBAWARD_ATTACHMENT_ID INCREMENT BY 1 START WITH 1 NOCACHE /
<gh_stars>1-10 CREATE FUNCTION statsd.add_timing(text, int4, text, int4) returns void as 'statsd', 'statsd_add_timing' language C immutable; COMMENT ON FUNCTION statsd.add_timing(text, int4, text, int4) IS 'Add a timing value in milliseconds to statsd for the given metric name (host, port, metric_name, value)'; CREATE FUNCTION statsd.increment_counter(text, int4, text) returns void as 'statsd', 'statsd_increment_counter' language C immutable; COMMENT ON FUNCTION statsd.increment_counter(text, int4, text) IS 'Increment a counter by one (host, port, metric_name)'; CREATE FUNCTION statsd.increment_counter(text, int4, text, int4) returns void as 'statsd', 'statsd_increment_counter_with_value' language C immutable; COMMENT ON FUNCTION statsd.increment_counter(text, int4, text, int4) IS 'Increment a counter by the specified value (host, port, metric_name, value)'; CREATE FUNCTION statsd.increment_counter(text, int4, text, int4, float8) returns void as 'statsd', 'statsd_increment_sampled_counter' language C immutable; COMMENT ON FUNCTION statsd.increment_counter(text, int4, text, int4, float8) IS 'Increment a counter by the specified value with a sample rate (host, port, metric_name, value, sample_rate)'; CREATE FUNCTION statsd.set_gauge(text, int4, text, float8) returns void as 'statsd', 'statsd_set_gauge_float8' language C immutable; COMMENT ON FUNCTION statsd.set_gauge(text, int4, text, float8) IS 'Sets a gauge value (host, port, metric_name, value)'; CREATE FUNCTION statsd.set_gauge(text, int4, text, int4) returns void as 'statsd', 'statsd_set_gauge_int32' language C immutable; COMMENT ON FUNCTION statsd.set_gauge(text, int4, text, int4) IS 'Sets a gauge value (host, port, metric_name, value)';