sql
stringlengths
6
1.05M
<filename>src/test/resources/sql/create_type/eade1f99.sql -- file:rangetypes.sql ln:454 expect:true create type two_ints as (a int, b int)
ALTER TABLE master_keys RENAME private_key TO private_key_der; ALTER TABLE master_keys RENAME public_key TO public_key_der; ALTER TABLE master_keys ADD COLUMN private_key_pem BYTEA, ADD COLUMN public_key_pem BYTEA;
update `creature_template` set `ScriptName` = 'boss_malygos' where `entry` = 28859; update `instance_template` set `ScriptName` = 'instance_eye_of_eternity' where `map` = '616'; update `gameobject` set `phaseMask`=65536, `spawntimesecs`='-604800' where id in(193905,193967); update `gameobject_template` set `faction`=0 where entry in (193905,193967);
/*==============================================================*/ /* Table: uaa_office */ /*==============================================================*/ insert into uaa_office (id,parent_id,seq,level,full_path,office_name,description,tenant_id,office_code,created_by,created_at,updated_by,updated_at,deleted,version) values ("3b268e1424be11eab36902420aff0015", "", 1, 1, "9000", "集团总公司", "集团总公司", "1", "9000", "system", now(), "system", now(), 0, 0); insert into uaa_office (id,parent_id,seq,level,full_path,office_name,description,tenant_id,office_code,created_by,created_at,updated_by,updated_at,deleted,version) values (REPLACE(UUID(), "-", ""), "3b268e1424be11eab36902420aff0015", 1, 2, "9000|1001", "武汉分公司", "武汉分公司", "1", "9000", "system", now(), "system", now(), 0, 0); insert into uaa_office (id,parent_id,seq,level,full_path,office_name,description,tenant_id,office_code,created_by,created_at,updated_by,updated_at,deleted,version) values (REPLACE(UUID(), "-", ""), "3b268e1424be11eab36902420aff0015", 1, 2, "9000|2001", "成都分公司", "成都分公司", "1", "9000", "system", now(), "system", now(), 0, 0); insert into uaa_office (id,parent_id,seq,level,full_path,office_name,description,tenant_id,office_code,created_by,created_at,updated_by,updated_at,deleted,version) values (REPLACE(UUID(), "-", ""), "3b268e1424be11eab36902420aff0015", 1, 2, "9000|3001", "西安分公司", "西安分公司", "1", "9000", "system", now(), "system", now(), 0, 0); insert into uaa_office (id,parent_id,seq,level,full_path,office_name,description,tenant_id,office_code,created_by,created_at,updated_by,updated_at,deleted,version) values (REPLACE(UUID(), "-", ""), "3b268e1424be11eab36902420aff0015", 1, 2, "9000|4001", "北京分公司", "北京分公司", "1", "9000", "system", now(), "system", now(), 0, 0); insert into uaa_office (id,parent_id,seq,level,full_path,office_name,description,tenant_id,office_code,created_by,created_at,updated_by,updated_at,deleted,version) values (REPLACE(UUID(), "-", ""), "3b268e1424be11eab36902420aff0015", 1, 2, "9000|5001", "重庆分公司", "重庆分公司", "1", "9000", "system", now(), "system", now(), 0, 0); insert into uaa_office (id,parent_id,seq,level,full_path,office_name,description,tenant_id,office_code,created_by,created_at,updated_by,updated_at,deleted,version) values (REPLACE(UUID(), "-", ""), "3b268e1424be11eab36902420aff0015", 1, 2, "9000|6001", "合肥分公司", "合肥分公司", "1", "9000", "system", now(), "system", now(), 0, 0); /*==============================================================*/ /* Table: uaa_department */ /*==============================================================*/ insert into uaa_department(id,parent_id,seq,level,full_path,department_code,department_name,description,tenant_id,office_code,created_by,created_at,updated_by,updated_at,deleted,version) values ("f48d26c324c511eab36902420aff0015", "", 1, 1, "900", "900", "总经理", "总经理", "1", "9000", "system", now(), "system", now(), 0, 0); insert into uaa_department(id,parent_id,seq,level,full_path,department_code,department_name,description,tenant_id,office_code,created_by,created_at,updated_by,updated_at,deleted,version) values ("3bfe40d824c611eab36902420aff0015", "f48d26c324c511eab36902420aff0015", 1, 2, "900|101", "101", "副总经理(行政)", "副总经理(行政)", "1", "9000", "system", now(), "system", now(), 0, 0); insert into uaa_department(id,parent_id,seq,level,full_path,department_code,department_name,description,tenant_id,office_code,created_by,created_at,updated_by,updated_at,deleted,version) values ("3c15f82024c611eab36902420aff0015", "f48d26c324c511eab36902420aff0015", 1, 2, "900|201", "201", "副总经理(营销)", "副总经理(营销)", "1", "9000", "system", now(), "system", now(), 0, 0); insert into uaa_department(id,parent_id,seq,level,full_path,department_code,department_name,description,tenant_id,office_code,created_by,created_at,updated_by,updated_at,deleted,version) values (REPLACE(UUID(), "-", ""), "3bfe40d824c611eab36902420aff0015", 1, 3, "900|101", "111", "财务部", "财务部", "1", "9000", "system", now(), "system", now(), 0, 0); insert into uaa_department(id,parent_id,seq,level,full_path,department_code,department_name,description,tenant_id,office_code,created_by,created_at,updated_by,updated_at,deleted,version) values (REPLACE(UUID(), "-", ""), "3bfe40d824c611eab36902420aff0015", 1, 3, "900|101", "112", "进出口部", "进出口部", "1", "9000", "system", now(), "system", now(), 0, 0); insert into uaa_department(id,parent_id,seq,level,full_path,department_code,department_name,description,tenant_id,office_code,created_by,created_at,updated_by,updated_at,deleted,version) values (REPLACE(UUID(), "-", ""), "3c15f82024c611eab36902420aff0015", 1, 3, "900|201", "211", "销售部", "销售部", "1", "9000", "system", now(), "system", now(), 0, 0); insert into uaa_department(id,parent_id,seq,level,full_path,department_code,department_name,description,tenant_id,office_code,created_by,created_at,updated_by,updated_at,deleted,version) values (REPLACE(UUID(), "-", ""), "3c15f82024c611eab36902420aff0015", 1, 3, "900|201", "212", "市场部", "市场部", "1", "9000", "system", now(), "system", now(), 0, 0); /*==============================================================*/ /* Table: uaa_position */ /*==============================================================*/ /*==============================================================*/ /* Table: uaa_user */ /*==============================================================*/ insert into uaa_user(id, user_code, user_name, jp, login_name, password, mobile, email, admin, last_login_date, login_count, description, tenant_id, office_code, created_by, created_at, updated_by, updated_at, deleted, version) values (REPLACE(UUID(), "-", ""), "10001", "管理员", 'gly', 'admin', "$2a$10$kdx4NpGKUnMrVQVU37f08OHbMPfRuHfa.Csbf1iiF2oBzX9DBMUpa", "1321111111111", "<EMAIL>", 1, now(), 0, "管理员", "1", "9000", "system", now(), "system", now(), 0, 0);
<gh_stars>1-10  create procedure ProcWithWriteOnlyVariableSetBySelect as begin declare @A int -- @A is only written to. This should be flagged as a problem select @a = 1 end
<gh_stars>1-10 /* ******************************************************************************************************* Copyright (C) 2019-Present Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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. ******************************************************************************************************* */ set search_path to public; \set tbl_name public.stage_data drop table if exists :tbl_name; create table :tbl_name( table_row text ) distributed randomly; \set tbl_name public.survey_data drop table :tbl_name; create table :tbl_name ( id numeric, -- relative order of var in sequence scf_var varchar, -- SCF variable name mivn varchar, -- MR Interview variable name var_ind varchar, -- numeric/character variable indicator var_evr varchar, -- flag for extended verbatim response var_label text ) distributed randomly ;
<reponame>machine-intelligence/arbital-open-source<filename>schemas/users.sql /* An entry for every user that has ever done anything in our system. */ CREATE TABLE users ( /* PK. User's unique id. */ id VARCHAR(32) NOT NULL, /* Date this user was added to the table. */ createdAt DATETIME NOT NULL, /* User's email. */ email VARCHAR(191) NOT NULL, /* User's self-assigned first name. */ firstName VARCHAR(32) NOT NULL, /* User's self-assigned last name. */ lastName VARCHAR(32) NOT NULL, /* If the user added FB, this is their userId */ fbUserId VARCHAR(32) NOT NULL, /* Date of the last website visit. */ lastWebsiteVisit DATETIME NOT NULL, /* True iff the user is an admin. */ isAdmin BOOLEAN NOT NULL, /* True iff the user is trusted to send invites. */ isTrusted BOOLEAN NOT NULL, /* Date of the last updates email. */ updateEmailSentAt DATETIME NOT NULL, /* Can only be set manually by an admin via DB console. Used for debugging. The system will load the information for the given user, instead of this user. */ pretendToBeUserId VARCHAR(32) NOT NULL, /* If the user asked to be invited to Slack. It's very possible that the user is already a Slack member, but this field isn't set. */ isSlackMember BOOLEAN NOT NULL, /* ============================= Settings ==================================== /* How frequently to send update emails. */ emailFrequency VARCHAR(16) NOT NULL, /* How many updates before sending an update email. */ emailThreshold INT(11) NOT NULL, /* If true, don't do a live preview of MathJax. */ ignoreMathjax BOOL NOT NULL, /* If true, show the advanced editor mode for new users. */ showAdvancedEditorMode BOOL NOT NULL, UNIQUE (email), PRIMARY KEY(id) ) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
<filename>apgdiff.tests/src/main/resources/cz/startnet/utils/pgdiff/depcies/chg_fts_statements_usr_configuration_diff.sql SET search_path = pg_catalog; ALTER TEXT SEARCH CONFIGURATION public.first_configuration ALTER MAPPING FOR tag WITH public.first_dictionary;
<filename>schema/hdb/decodes63to64.sql<gh_stars>1-10 -------------------------------------------------------------------------- -- This script updates DECODES tables from an USBR HDB 6.3 CCP Schema to -- OpenDCS 6.4 Schema. -- -- See the README file in this folder for instructions. -------------------------------------------------------------------------- ----------------------------------------------------------------------------- -- This software was written by Cove Software, LLC ("COVE") under contract -- to the United States Government. -- No warranty is provided or implied other than specific contractual terms -- between COVE and the U.S. Government -- -- Copyright 2017 U.S. Government. ----------------------------------------------------------------------------- set echo on spool combined.log whenever sqlerror continue set define on @@defines.sql ----------- snip --undefine TBL_SPACE_SPEC; --define TBL_SPACE_SPEC = 'tablespace HDB_DATA' -- --undefine IDX_TBL_SPACE_SPEC; --define IDX_TBL_SPACE_SPEC = 'tablespace HDB_IDX' -- --undefine DECODES_OWNER; --define DECODES_OWNER = 'DECODES' ----------- snip DELETE FROM DACQ_EVENT; ALTER TABLE DACQ_EVENT ADD LOADING_APPLICATION_ID NUMBER(*,0); ALTER TABLE DACQ_EVENT ADD CONSTRAINT DACQ_EVENT_FKLA FOREIGN KEY (LOADING_APPLICATION_ID) REFERENCES HDB_LOADING_APPLICATION(LOADING_APPLICATION_ID); DROP SEQUENCE DACQ_EVENTIDSEQ; CREATE SEQUENCE DACQ_EVENTIDSEQ MINVALUE 1 START WITH 1 NOCACHE; ----------------------------------------------------------------- -- Finally, update the database version numbers in the database ----------------------------------------------------------------- delete from DecodesDatabaseVersion; insert into DecodesDatabaseVersion values(15, 'Updated to OpenDCS 6.4'); delete from tsdb_database_version; insert into tsdb_database_version values(15, 'Updated to OpenDCS 6.4'); spool off exit;
<reponame>khuddlefish/gpdb -- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- CT Heap Part Table 1 -- CREATE TABLE ct_heap_alter_part_add_col1 (id int, rank int, year date, gender char(1)) DISTRIBUTED BY (id, gender, year) partition by list (gender) subpartition by range (year) subpartition template ( start (date '2001-01-01')) ( values ('M'), values ('F') ); -- -- INSERT ROWS -- insert into ct_heap_alter_part_add_col1 values (1,1,'2001-01-01','F'); insert into ct_heap_alter_part_add_col1 values (2,2,'2002-01-01','M'); insert into ct_heap_alter_part_add_col1 values (3,3,'2003-01-01','F'); insert into ct_heap_alter_part_add_col1 values (4,4,'2003-01-01','M'); -- -- CT Heap Part Table 2 -- CREATE TABLE ct_heap_alter_part_add_col2 (id int, rank int, year date, gender char(1)) DISTRIBUTED BY (id, gender, year) partition by list (gender) subpartition by range (year) subpartition template ( start (date '2001-01-01')) ( values ('M'), values ('F') ); -- -- INSERT ROWS -- insert into ct_heap_alter_part_add_col2 values (1,1,'2001-01-01','F'); insert into ct_heap_alter_part_add_col2 values (2,2,'2002-01-01','M'); insert into ct_heap_alter_part_add_col2 values (3,3,'2003-01-01','F'); insert into ct_heap_alter_part_add_col2 values (4,4,'2003-01-01','M'); -- -- CT Heap Part Table 3 -- CREATE TABLE ct_heap_alter_part_add_col3 (id int, rank int, year date, gender char(1)) DISTRIBUTED BY (id, gender, year) partition by list (gender) subpartition by range (year) subpartition template ( start (date '2001-01-01')) ( values ('M'), values ('F') ); -- -- INSERT ROWS -- insert into ct_heap_alter_part_add_col3 values (1,1,'2001-01-01','F'); insert into ct_heap_alter_part_add_col3 values (2,2,'2002-01-01','M'); insert into ct_heap_alter_part_add_col3 values (3,3,'2003-01-01','F'); insert into ct_heap_alter_part_add_col3 values (4,4,'2003-01-01','M'); -- -- CT Heap Part Table 4 -- CREATE TABLE ct_heap_alter_part_add_col4 (id int, rank int, year date, gender char(1)) DISTRIBUTED BY (id, gender, year) partition by list (gender) subpartition by range (year) subpartition template ( start (date '2001-01-01')) ( values ('M'), values ('F') ); -- -- INSERT ROWS -- insert into ct_heap_alter_part_add_col4 values (1,1,'2001-01-01','F'); insert into ct_heap_alter_part_add_col4 values (2,2,'2002-01-01','M'); insert into ct_heap_alter_part_add_col4 values (3,3,'2003-01-01','F'); insert into ct_heap_alter_part_add_col4 values (4,4,'2003-01-01','M'); -- -- CT Heap Part Table 5 -- CREATE TABLE ct_heap_alter_part_add_col5 (id int, rank int, year date, gender char(1)) DISTRIBUTED BY (id, gender, year) partition by list (gender) subpartition by range (year) subpartition template ( start (date '2001-01-01')) ( values ('M'), values ('F') ); -- -- INSERT ROWS -- insert into ct_heap_alter_part_add_col5 values (1,1,'2001-01-01','F'); insert into ct_heap_alter_part_add_col5 values (2,2,'2002-01-01','M'); insert into ct_heap_alter_part_add_col5 values (3,3,'2003-01-01','F'); insert into ct_heap_alter_part_add_col5 values (4,4,'2003-01-01','M'); -- -- --ALTER TABLE TO ADD COL -- -- -- -- ALTER SYNC1 Heap Part Table 4 To Add INT COL -- alter table sync1_heap_alter_part_add_col4 add column AAA int; -- -- INSERT ROWS -- insert into sync1_heap_alter_part_add_col4 values (5,5,'2001-01-01','F',1); insert into sync1_heap_alter_part_add_col4 values (6,6,'2002-01-01','M',2); insert into sync1_heap_alter_part_add_col4 values (7,7,'2003-01-01','F',3); insert into sync1_heap_alter_part_add_col4 values (8,8,'2003-01-01','M',4); -- -- -- ALTER SYNC1 Heap Part Table 4 To Add TEXT COL -- -- alter table sync1_heap_alter_part_add_col4 add column BBB text; -- -- INSERT ROWS -- insert into sync1_heap_alter_part_add_col4 values (5,5,'2001-01-01','F',1,'text1'); insert into sync1_heap_alter_part_add_col4 values (6,6,'2002-01-01','M',2,'text1'); insert into sync1_heap_alter_part_add_col4 values (7,7,'2003-01-01','F',3,'text1'); insert into sync1_heap_alter_part_add_col4 values (8,8,'2003-01-01','M',4,'text1'); -- -- ALTER CK_SYNC1 Heap Part Table 3 To Add INT COL -- alter table ck_sync1_heap_alter_part_add_col3 add column AAA int; -- -- INSERT ROWS -- insert into ck_sync1_heap_alter_part_add_col3 values (5,5,'2001-01-01','F',1); insert into ck_sync1_heap_alter_part_add_col3 values (6,6,'2002-01-01','M',2); insert into ck_sync1_heap_alter_part_add_col3 values (7,7,'2003-01-01','F',3); insert into ck_sync1_heap_alter_part_add_col3 values (8,8,'2003-01-01','M',4); -- -- -- ALTER CK_SYNC1 Heap Part Table 3 To Add TEXT COL -- -- alter table ck_sync1_heap_alter_part_add_col3 add column BBB text; -- -- INSERT ROWS -- insert into ck_sync1_heap_alter_part_add_col3 values (5,5,'2001-01-01','F',1,'text1'); insert into ck_sync1_heap_alter_part_add_col3 values (6,6,'2002-01-01','M',2,'text1'); insert into ck_sync1_heap_alter_part_add_col3 values (7,7,'2003-01-01','F',3,'text1'); insert into ck_sync1_heap_alter_part_add_col3 values (8,8,'2003-01-01','M',4,'text1'); -- -- ALTER CT Heap Part Table 1 To Add INT COL -- alter table ct_heap_alter_part_add_col1 add column AAA int; -- -- INSERT ROWS -- insert into ct_heap_alter_part_add_col1 values (5,5,'2001-01-01','F',1); insert into ct_heap_alter_part_add_col1 values (6,6,'2002-01-01','M',2); insert into ct_heap_alter_part_add_col1 values (7,7,'2003-01-01','F',3); insert into ct_heap_alter_part_add_col1 values (8,8,'2003-01-01','M',4); -- -- -- ALTER CT Heap Part Table 1 To Add TEXT COL -- -- alter table ct_heap_alter_part_add_col1 add column BBB text; -- -- INSERT ROWS -- insert into ct_heap_alter_part_add_col1 values (5,5,'2001-01-01','F',1,'text1'); insert into ct_heap_alter_part_add_col1 values (6,6,'2002-01-01','M',2,'text1'); insert into ct_heap_alter_part_add_col1 values (7,7,'2003-01-01','F',3,'text1'); insert into ct_heap_alter_part_add_col1 values (8,8,'2003-01-01','M',4,'text1');
-- Initialize the database. -- Drop any existing data and create empty tables. DROP TABLE IF EXISTS tuser; DROP TABLE IF EXISTS tprops; CREATE TABLE tuser ( id INTEGER PRIMARY KEY AUTOINCREMENT, username TEXT UNIQUE NOT NULL, password TEXT NOT NULL ); CREATE TABLE tprops ( id INTEGER PRIMARY KEY AUTOINCREMENT, -- prop_id INTEGER NOT NULL, author_id INTEGER NOT NULL, created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, ppin TEXT NOT NULL, body TEXT NOT NULL, FOREIGN KEY (author_id) REFERENCES user (id) );
--+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; create table t(d double); --test create index idx on t(ceil(d)); --test drop index idx on t(ceil(d)); create index idx on t(ceil(d)); --test drop index idx on t; drop table t; set system parameters 'dont_reuse_heap_file=no'; commit; --+ holdcas off;
h5stat error: Invalid threshold for small datasets
<filename>database/RankScores.sql<gh_stars>0 -- Source : https://leetcode.com/problems/rank-scores/ -- Author : <NAME> -- Date : 2018-04-03 /*************************************************************************************** * * Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that after a tie, the next ranking number should be the next consecutive integer value. In other words, there should be no "holes" between ranks. * * +----+-------+ * | Id | Score | * +----+-------+ * | 1 | 3.50 | * | 2 | 3.65 | * | 3 | 4.00 | * | 4 | 3.85 | * | 5 | 4.00 | * | 6 | 3.65 | * +----+-------+ * For example, given the above Scores table, your query should generate the following report (order by highest score): * * +-------+------+ * | Score | Rank | * +-------+------+ * | 4.00 | 1 | * | 4.00 | 1 | * | 3.85 | 2 | * | 3.65 | 3 | * | 3.65 | 3 | * | 3.50 | 4 | * +-------+------+ * ***************************************************************************************/ # Write your MySQL query statement below SELECT a.Score, COUNT(DISTINCT b.Score) AS Rank FROM Scores AS a INNER JOIN Scores AS b ON a.Score <= b.Score GROUP BY a.Id ORDER BY a.Score DESC;
<filename>spkdb.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 27, 2019 at 12:16 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `spkdb` -- -- -------------------------------------------------------- -- -- Table structure for table `as_admin` -- CREATE TABLE `as_admin` ( `userID` int(5) NOT NULL, `userNIP` varchar(16) NOT NULL, `userFullName` varchar(45) NOT NULL, `userPhone` varchar(15) NOT NULL, `userLevel` enum('A','U') NOT NULL, `userBlocked` enum('Y','N') NOT NULL, `userName` varchar(15) NOT NULL, `userPassword` varchar(75) NOT NULL, `createDate` date NOT NULL, `modifiedDate` date NOT NULL, `modifiedUserID` int(5) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `as_admin` -- INSERT INTO `as_admin` (`userID`, `userNIP`, `userFullName`, `userPhone`, `userLevel`, `userBlocked`, `userName`, `userPassword`, `createDate`, `modifiedDate`, `modifiedUserID`) VALUES (1, '1997200220191001', '<NAME>', '082115784351', 'A', 'N', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2019-10-05', '2019-10-05', 1), (2, '1992200220191001', 'Maman', '082115784352', 'U', 'N', 'user', 'ee11cbb19052e40b07aac0ca060c23ee', '2019-10-05', '2019-10-06', 1); -- -------------------------------------------------------- -- -- Table structure for table `as_kriteria` -- CREATE TABLE `as_kriteria` ( `criteriaID` int(5) NOT NULL, `criteriaName` varchar(35) NOT NULL, `criteriaWeight` float NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `as_kriteria` -- INSERT INTO `as_kriteria` (`criteriaID`, `criteriaName`, `criteriaWeight`) VALUES (3, 'Kondisi Ruangan', 3), (4, 'Jenis Lantai', 2), (5, 'Kondisi Atap', 4), (6, 'Kondisi Dinding', 4), (7, 'Kondisi Sumber Penerangan', 2), (8, 'Kondisi Pembuangan Akhir', 3), (9, 'Kondisi Sumber Air Minum', 2); -- -------------------------------------------------------- -- -- Table structure for table `as_nilai` -- CREATE TABLE `as_nilai` ( `nilaiID` int(5) NOT NULL, `penilaianID` int(5) NOT NULL, `C1` float NOT NULL, `C2` float NOT NULL, `C3` float NOT NULL, `C4` float NOT NULL, `C5` float NOT NULL, `C6` float NOT NULL, `C7` float NOT NULL, `modifiedUserID` int(5) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `as_nilai` -- INSERT INTO `as_nilai` (`nilaiID`, `penilaianID`, `C1`, `C2`, `C3`, `C4`, `C5`, `C6`, `C7`, `modifiedUserID`) VALUES (1, 2, 1, 3, 3, 1, 2, 3, 1, 1), (2, 3, 3, 1, 3, 3, 1, 3, 2, 1), (3, 4, 2, 2, 2, 2, 3, 2, 3, 1); -- -------------------------------------------------------- -- -- Table structure for table `as_penerima` -- CREATE TABLE `as_penerima` ( `penerimaID` int(7) NOT NULL, `penerimaNoKK` varchar(16) NOT NULL, `penerimaName` varchar(35) NOT NULL, `penerimaDusun` varchar(25) NOT NULL, `penerimaRT` varchar(4) NOT NULL, `penerimaRW` varchar(4) NOT NULL, `penerimaKet` varchar(100) NOT NULL, `modifiedUserID` int(5) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `as_penerima` -- INSERT INTO `as_penerima` (`penerimaID`, `penerimaNoKK`, `penerimaName`, `penerimaDusun`, `penerimaRT`, `penerimaRW`, `penerimaKet`, `modifiedUserID`) VALUES (3, '327805010189***1', 'Maman Sutarma', 'Sukaraja', '001', '001', '-', 1), (4, '327805010489***1', 'Uded ', 'Sukaraja', '001', '001', '-', 1), (5, '327805010160***1', '<NAME>', 'Sukaraja', '001', '001', '-', 1); -- -------------------------------------------------------- -- -- Table structure for table `as_penilaian` -- CREATE TABLE `as_penilaian` ( `penilaianID` int(5) NOT NULL, `penerimaID` int(5) NOT NULL, `priodeID` int(5) NOT NULL, `modifiedUserID` int(5) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `as_penilaian` -- INSERT INTO `as_penilaian` (`penilaianID`, `penerimaID`, `priodeID`, `modifiedUserID`) VALUES (2, 3, 3, 1), (3, 4, 3, 1), (4, 5, 3, 1); -- -------------------------------------------------------- -- -- Table structure for table `as_priode` -- CREATE TABLE `as_priode` ( `priodeID` int(5) NOT NULL, `priodeName` varchar(25) NOT NULL, `priodeYear` year(4) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `as_priode` -- INSERT INTO `as_priode` (`priodeID`, `priodeName`, `priodeYear`) VALUES (3, 'Priode 1', 2019), (4, 'Priode 2', 2019); -- -------------------------------------------------------- -- -- Table structure for table `as_subkriteria` -- CREATE TABLE `as_subkriteria` ( `subID` int(5) NOT NULL, `criteriaID` int(5) NOT NULL, `subName` varchar(45) NOT NULL, `subNilai` int(2) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `as_subkriteria` -- INSERT INTO `as_subkriteria` (`subID`, `criteriaID`, `subName`, `subNilai`) VALUES (1, 3, 'Sempit <= 9 M2', 3), (2, 3, 'Sedang 10-13 M2', 2), (3, 3, 'Lebih dari > 14 M2', 1), (4, 4, 'Buruk (Tanah,Bambu,Kayu Kualitas Rendah)', 3), (5, 4, 'Sedang (Aci / Semen)', 2), (6, 4, 'Baik (Keramik)', 1), (7, 5, 'Buruk (Injuk, Seng, Anyaman)', 3), (8, 5, 'Sedang (Asbes, Genteng)', 2), (9, 5, 'Baik (Beton)', 1), (10, 6, 'Buruk (Bambu, Rumbia)', 3), (11, 6, 'Sedang (Seng, GRC, Triplek, Kayu)', 2), (12, 6, 'Baik (Tembok,Beton)', 1), (13, 7, 'Baik (PLN <= 450)', 3), (14, 7, 'Sedang(PLN 900 - 1300)', 2), (15, 7, 'Baik (PLN >=2.200)', 1), (16, 8, 'Baik (Saluran Limbah, Tank)', 1), (17, 8, 'Sedang (Kolam, Sawah, Sungai)', 2), (18, 8, 'Buruk (Lubang Tanah)', 3), (19, 9, 'Baik (Air Isi Ulang / Kemasan)', 1), (20, 9, 'Sedang (Sumur Bor. Pompa)', 2), (21, 9, 'Buruk (Air Sungai, Air Hujan)', 3); -- -- Indexes for dumped tables -- -- -- Indexes for table `as_admin` -- ALTER TABLE `as_admin` ADD PRIMARY KEY (`userID`); -- -- Indexes for table `as_kriteria` -- ALTER TABLE `as_kriteria` ADD PRIMARY KEY (`criteriaID`); -- -- Indexes for table `as_nilai` -- ALTER TABLE `as_nilai` ADD PRIMARY KEY (`nilaiID`), ADD KEY `penilaianID` (`penilaianID`); -- -- Indexes for table `as_penerima` -- ALTER TABLE `as_penerima` ADD PRIMARY KEY (`penerimaID`); -- -- Indexes for table `as_penilaian` -- ALTER TABLE `as_penilaian` ADD PRIMARY KEY (`penilaianID`), ADD KEY `penerimaID` (`penerimaID`), ADD KEY `priodeID` (`priodeID`), ADD KEY `modifiedUserID` (`modifiedUserID`); -- -- Indexes for table `as_priode` -- ALTER TABLE `as_priode` ADD PRIMARY KEY (`priodeID`); -- -- Indexes for table `as_subkriteria` -- ALTER TABLE `as_subkriteria` ADD PRIMARY KEY (`subID`), ADD KEY `criteriaID` (`criteriaID`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `as_admin` -- ALTER TABLE `as_admin` MODIFY `userID` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `as_kriteria` -- ALTER TABLE `as_kriteria` MODIFY `criteriaID` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `as_nilai` -- ALTER TABLE `as_nilai` MODIFY `nilaiID` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `as_penerima` -- ALTER TABLE `as_penerima` MODIFY `penerimaID` int(7) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `as_penilaian` -- ALTER TABLE `as_penilaian` MODIFY `penilaianID` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `as_priode` -- ALTER TABLE `as_priode` MODIFY `priodeID` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `as_subkriteria` -- ALTER TABLE `as_subkriteria` MODIFY `subID` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>MS-BI/JobExceutionFramework CREATE TABLE [etljob].[Client] ( [ClientID] INT IDENTITY (1, 1) NOT NULL, [Client] NVARCHAR (255) NULL, CONSTRAINT [PK__Client__E67E1A047DBC5BF8] PRIMARY KEY CLUSTERED ([ClientID] ASC) );
INSERT INTO citation_datasource_municipality (citation_datasource_id,municipality_id) VALUES (2,1); #Clayton INSERT INTO datasource_municipality_mapping (citation_datasource_id,municipality_id,datasource_municipality_identifier) VALUES (2,1,'BW'); #Ballwin INSERT INTO rejis_court_mapping (court_id,rejis_court_identifier) VALUES (1,'BW'); #Ballwin
<reponame>segor/zno-opendata CREATE SCHEMA [zno2016]
<gh_stars>1-10 SELECT d.id, d.value, ci.number_format, itt.name as 'indicator_type_name', stt.name_singular as 'shape_type_name', st.common_id, st.common_name, if (ci.ancestry is null, cit.name, concat(cit.name, " (", cit_parent.name_abbrv, ")")) as 'indicator_name', if(ci.ancestry is null OR (ci.ancestry is not null AND (ci.color is not null AND length(ci.color)>0)),ci.color,ci_parent.color) as 'color' FROM data as d inner join datum_translations as dt on d.id = dt.datum_id inner join indicators as i on d.indicator_id = i.id inner join core_indicators as ci on i.core_indicator_id = ci.id inner join core_indicator_translations as cit on ci.id = cit.core_indicator_id and dt.locale = cit.locale left join core_indicators as ci_parent on ci.ancestry = ci_parent.id left join core_indicator_translations as cit_parent on ci_parent.id = cit_parent.core_indicator_id and dt.locale = cit_parent.locale inner join shapes as s on i.shape_type_id = s.shape_type_id inner join shape_translations as st on s.id = st.shape_id and dt.common_id = st.common_id and dt.common_name = st.common_name and dt.locale = st.locale inner join shape_types as sts on i.shape_type_id = sts.id inner join shape_type_translations as stt on sts.id = stt.shape_type_id and dt.locale = stt.locale inner join indicator_types as it on ci.indicator_type_id = it.id inner join indicator_type_translations as itt on it.id = itt.indicator_type_id and dt.locale = itt.locale WHERE i.event_id = 2 and ci.indicator_type_id = 2 # political parties AND s.id = 46303 AND dt.locale = 'en' order by cast(d.value as decimal(12,6)) desc limit 5 /* original way using max - very long SELECT d.id, d.value, ci.number_format, if (ci.ancestry is null, cit.name, concat(cit.name, " (", cit_parent.name_abbrv, ")")) as 'indicator_name', if(ci.ancestry is null OR (ci.ancestry is not null AND (ci.color is not null AND length(ci.color)>0)),ci.color,ci_parent.color) as 'color' FROM data as d inner join datum_translations as dt on d.id = dt.datum_id inner join indicators as i on d.indicator_id = i.id inner join core_indicators as ci on i.core_indicator_id = ci.id inner join core_indicator_translations as cit on ci.id = cit.core_indicator_id left join core_indicators as ci_parent on ci.ancestry = ci_parent.id left join core_indicator_translations as cit_parent on ci_parent.id = cit_parent.core_indicator_id and cit.locale = cit_parent.locale inner join shapes as s on i.shape_type_id = s.shape_type_id inner join shape_translations as st on s.id = st.shape_id and dt.common_id = st.common_id and dt.common_name = st.common_name inner join ( SELECT max(cast(d.value as decimal(12,6))) as max_value FROM data as d inner join datum_translations as dt on d.id = dt.datum_id inner join indicators as i on d.indicator_id = i.id inner join core_indicators as ci on i.core_indicator_id = ci.id inner join shapes as s on i.shape_type_id = s.shape_type_id inner join shape_translations as st on s.id = st.shape_id and dt.common_id = st.common_id and dt.common_name = st.common_name WHERE i.event_id = 3 and ci.indicator_type_id = 2 # political parties AND s.id = 3525 AND dt.locale = 'en' AND st.locale = 'en' ) as max_val on cast(d.value as decimal(12,6)) = max_val.max_value WHERE i.event_id = 3 and ci.indicator_type_id = 2 # political parties and s.id = 3525 AND dt.locale = 'en' AND st.locale = 'en' AND cit.locale = 'en' */
<gh_stars>1-10 -- 角色表 DROP TABLE IF EXISTS `sys_role`; CREATE TABLE `sys_role` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '角色ID', `name` varchar(255) DEFAULT NULL COMMENT '角色名称', `cn_name` varchar(255) DEFAULT '' COMMENT '权限名称', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='角色表';
if exists (select * from INFORMATION_SCHEMA.ROUTINES where ROUTINE_NAME = 'spTEAM_MEMBERSHIPS_UpdateImplicit' and ROUTINE_TYPE = 'PROCEDURE') Drop Procedure dbo.spTEAM_MEMBERSHIPS_UpdateImplicit; GO /********************************************************************************************************************** * Copyright (C) 2005-2022 SplendidCRM Software, Inc. * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, * modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software * is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR * IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *********************************************************************************************************************/ Create Procedure dbo.spTEAM_MEMBERSHIPS_UpdateImplicit ( @MODIFIED_USER_ID uniqueidentifier , @TEAM_ID uniqueidentifier ) as begin set nocount on declare @ID uniqueidentifier; declare @USER_ID uniqueidentifier; declare @REPORTS_TO_ID uniqueidentifier; declare @REPORTS_TO_KEY varchar(37); declare @REPORTS_TO_LIST varchar(8000); declare member_cursor cursor for select USER_ID from TEAM_MEMBERSHIPS where TEAM_ID = @TEAM_ID and EXPLICIT_ASSIGN = 1 and DELETED = 0 order by USER_ID; /* -- #if IBM_DB2 declare continue handler for not found set in_FETCH_STATUS = 1; set l_error ='00000'; -- #endif IBM_DB2 */ /* -- #if MySQL declare continue handler for not found set in_FETCH_STATUS = 1; set in_FETCH_STATUS = 0; -- #endif MySQL */ -- 11/18/2006 Paul. First delete all implicity assigned users. update TEAM_MEMBERSHIPS set DELETED = 1 where TEAM_ID = @TEAM_ID and EXPLICIT_ASSIGN = 0 and DELETED = 0; open member_cursor; fetch next from member_cursor into @USER_ID; -- 11/18/2006 Paul. For every explicity assigned user in the team, -- determine who they report to, and explicity add them. while @@FETCH_STATUS = 0 and @@ERROR = 0 begin -- do -- 12/15/2006 Paul. Make sure only to use REPORTS_TO_ID if it points to a valid user. select @REPORTS_TO_ID = USERS.REPORTS_TO_ID from USERS inner join USERS USERS_REPORTS_TO on USERS_REPORTS_TO.ID = USERS.REPORTS_TO_ID and USERS_REPORTS_TO.DELETED = 0 where USERS.ID = @USER_ID and USERS.DELETED = 0; -- 11/19/2006 Paul. We need a way to prevent a recursive loop. -- A temporary table would work, but we need a high-performance and cross-platform solution. -- We will use a simple varchar field that can hold up to 200 levels. -- It is not likely that a company with 200 levels in their organization would use this product. -- 11/19/2006 Paul. Make sure to reset the temp list for each user. set @REPORTS_TO_LIST = ''; -- 11/18/2006 Paul. Walk up the reports-to chain. -- 11/19/2006 Paul. A user is not allowed to report to himself. while dbo.fnIsEmptyGuid(@REPORTS_TO_ID) = 0 and @REPORTS_TO_ID <> @USER_ID begin -- do set @REPORTS_TO_KEY = cast(@REPORTS_TO_ID as varchar(36)) + ','; if charindex(@REPORTS_TO_KEY, @REPORTS_TO_LIST, 1) = 0 begin -- then set @REPORTS_TO_LIST = @REPORTS_TO_LIST + @REPORTS_TO_KEY; set @ID = null; -- BEGIN Oracle Exception select @ID = ID from TEAM_MEMBERSHIPS where TEAM_ID = @TEAM_ID and USER_ID = @REPORTS_TO_ID and DELETED = 0; -- END Oracle Exception -- 11/18/2006 Paul. If the manager is not already assigned, then implicitly assign them to the team. if dbo.fnIsEmptyGuid(@ID) = 1 begin -- then set @ID = newid(); -- print @REPORTS_TO_ID; insert into TEAM_MEMBERSHIPS ( ID , CREATED_BY , DATE_ENTERED , MODIFIED_USER_ID , DATE_MODIFIED , TEAM_ID , USER_ID , EXPLICIT_ASSIGN , IMPLICIT_ASSIGN ) values ( @ID , @MODIFIED_USER_ID , getdate() , @MODIFIED_USER_ID , getdate() , @TEAM_ID , @REPORTS_TO_ID , 0 , 1 ); end -- if; select @REPORTS_TO_ID = REPORTS_TO_ID from USERS where ID = @REPORTS_TO_ID and DELETED = 0; end else begin -- 11/19/2006 Paul. When recursion is found, just exit the loop. -- Don't throw an exception as it will prevent the user from saving. -- raiserror(N'Recursive reports-to relationship discovered in user table.', 16, 1); -- break; -- 01/07/2007 Paul. DB2 does not support break. Setting @REPORTS_TO_ID to null should accomplish the same. set @REPORTS_TO_ID = null; end -- if; end -- while; fetch next from member_cursor into @USER_ID; end -- while; close member_cursor; deallocate member_cursor; end GO Grant Execute on dbo.spTEAM_MEMBERSHIPS_UpdateImplicit to public; GO
<filename>data/starter_query.sql<gh_stars>0 drop table if exists salary cascade; drop table if exists title cascade; drop table if exists department_manager cascade; drop table if exists department_employee cascade; drop table if exists department cascade; drop table if exists employee cascade; create table employee ( emp_no integer not null, emp_title_id char(5), birth_date date, first_name varchar(50), last_name varchar(50), sex char(1), hire_date date); create table department ( dept_no char(5) not null, dept_name varchar(50) ); create table salary ( emp_no integer not null, salary integer ); create table title ( title_id char(5) not null, title varchar(50) ); create table department_manager ( dept_no char(5) not null, emp_no integer not null ); create table department_employee ( emp_no integer not null, dept_no char(5) not null ); alter table department add constraint PK_001 primary key (dept_no); alter table salary add constraint PK_002 primary key (emp_no); alter table title add constraint PK_003 primary key (title_id); alter table department_manager add constraint PK_004 primary key (dept_no, emp_no); alter table department_employee add constraint PK_005 primary key (emp_no, dept_no); alter table employee add constraint PK_006 primary key (emp_no); alter table employee add constraint FK_001 foreign key (emp_title_id) references title (title_id); alter table salary add constraint FK_002 foreign key (emp_no) references employee (emp_no); alter table department_employee add constraint FK_003 foreign key (emp_no) references employee (emp_no); alter table department_employee add constraint FK_004 foreign key (dept_no) references department (dept_no); alter table department_manager add constraint FK_005 foreign key (emp_no) references employee (emp_no); alter table department_manager add constraint FK_006 foreign key (dept_no) references department (dept_no);
<gh_stars>1-10 SELECT * FROM {{ name }}.br_abrinq_oca.primeira_infancia_municipios LIMIT 1000
<reponame>vsrts/multishop -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Хост: localhost -- Время создания: Июн 17 2019 г., 10:45 -- Версия сервера: 5.7.25-28-log -- Версия PHP: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- База данных: `host1560631_admin` -- -- -------------------------------------------------------- -- -- Структура таблицы `categories` -- CREATE TABLE `categories` ( `id` int(11) NOT NULL, `name` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `categories` -- INSERT INTO `categories` (`id`, `name`) VALUES (1, 'Суши'), (2, 'Спайс суши'), (3, 'Классические роллы'), (4, 'Роллы'), (5, 'Жареные роллы'), (6, 'Запечённые роллы'), (7, 'Сеты'), (8, 'Дополнительно'), (9, 'Вок'), (10, 'Пицца'), (11, 'Горячие закуски'), (12, 'Салаты'), (13, 'Супы'), (14, 'Бургеры'), (15, 'Напитки'); -- -------------------------------------------------------- -- -- Структура таблицы `cities` -- CREATE TABLE `cities` ( `id` int(10) NOT NULL, `name` varchar(255) NOT NULL, `subdomain` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `cities` -- INSERT INTO `cities` (`id`, `name`, `subdomain`) VALUES (1, 'Аксай', 'аксай'), (2, 'Анапа', 'анапа'), (3, 'Воронеж', 'воронеж'), (4, 'Геленджик', 'геленджик'), (5, 'Горячий Ключ', 'горячий-ключ'), (6, 'Краснодар', 'краснодар'), (7, 'Курск', 'курск'), (8, 'Курчатов', 'курчатов'), (9, 'Моздок', 'моздок'), (10, 'Новороссийск', 'новороссийск'), (11, 'Новочеркасск', 'новочеркасск'), (12, 'Ростов-на-Дону', 'ростов'), (13, 'Саратов', 'саратов'), (14, 'Станица Динская', 'динская'), (15, 'Тимашевск', 'тимашевск'), (16, 'Усть-Лабинск', 'усть-лабинск'), (17, 'Прохладный', 'прохладный'), (19, 'Таганрог', 'таганрог'), (20, 'Азов', 'азов'), (21, 'Яблоновский', 'яблоновский'), (22, 'Батайск', 'батайск'), (23, 'Кропоткин', 'кропоткин'), (24, 'Майкоп', 'майкоп'), (25, 'Владикавказ', 'владикавказ'), (26, 'Кореновск', 'кореновск'), (27, 'Омск', 'омск'); -- -------------------------------------------------------- -- -- Структура таблицы `points` -- CREATE TABLE `points` ( `id` int(10) NOT NULL, `city` int(11) NOT NULL, `phone` varchar(255) NOT NULL, `second_phone` varchar(255) DEFAULT NULL, `email` varchar(255) NOT NULL, `address` varchar(255) NOT NULL, `time` varchar(255) DEFAULT NULL, `control` varchar(255) DEFAULT NULL, `manager` int(11) DEFAULT NULL, `min_sum` int(11) DEFAULT NULL, `filial` int(11) DEFAULT NULL, `api_key` varchar(255) DEFAULT NULL, `status` int(2) NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `points` -- INSERT INTO `points` (`id`, `city`, `phone`, `second_phone`, `email`, `address`, `time`, `control`, `manager`, `min_sum`, `filial`, `api_key`, `status`) VALUES (3, 1, '8 (918) 850-04-52', '', '<EMAIL>', 'ул.Платова, 83', 'Ежедневно с 10 : 00 - 23 : 00', '8 (988) 541-01-80 Екатерина', 5, 500, NULL, 'y2H2iiDtYkk7B5y7Aabei7b9z6RFHGh6tSTF5i2NAaG265Ys62AdYBdetTN5nY2HDFbtS46d4D5ZtQbnDBsi3zrhd4btK35by7yaZreQS9AaNBnd4GnS5E38y5r7Tf8ddte3HiDni3rZrF3ead26HQ45Ff3nrZstdzhQGN5SDfESNt2QzKH7nB3THQ72BkfFHsfe592tes9TK2z8A66NtTy4ysRZF2rddzh7y8nDnnh3bF2DATbTBAHZRk', 1), (4, 2, '8 (938) 534-04-44', '', '<EMAIL>', 'ул. Промышленная, 16', 'Ежедневно с 10:00 - 23:00', '<NAME> 8 (918) 094-33-67', 6, 500, 314, '<KEY>', 1), (6, 5, '8 (967) 664-29-29', '', '<EMAIL>', 'ул. Революции, 7, ТЦ «Пятая авеню»', 'Ежедневно с 10 : 00 - 23:00', 'В<NAME> 8 (988) 474-57-32', 7, 600, 46, '<KEY>', 1), (7, 20, '8 (988) 259-89-56', '', '<EMAIL>', 'пер. Маяковского, 77 ГМ «Магнит»', 'Ежедневно с 10 : 00 - 23 : 00', '8 (988) 541-01-80 Екатерина', 5, 500, 62, 'y2H2iiDtYkk7B5y7Aabei7b9z6RFHGh6tSTF5i2NAaG265Ys62AdYBdetTN5nY2HDFbtS46d4D5ZtQbnDBsi3zrhd4btK35by7yaZreQS9AaNBnd4GnS5E38y5r7Tf8ddte3HiDni3rZrF3ead26HQ45Ff3nrZstdzhQGN5SDfESNt2QzKH7nB3THQ72BkfFHsfe592tes9TK2z8A66NtTy4ysRZF2rddzh7y8nDnnh3bF2DATbTBAHZRk', 1), (8, 3, '8(473)290-6-555', '', '<EMAIL>', 'ул. <NAME>, 50', 'Ежедневно с 10 : 00 - 23 : 00', 'Евгений Семёнов 8 (951) 081-65-61', 18, 500, NULL, 'nKGQZFnRbHRKE7G9Kzr3RRhED8RZbFsse374yhGzSk7ifEiS4BFFeR9GNQsRhK8nB5eYaNeT2b57FbQzEh5H24eBFzeQ8b4A68f7HnQzrGsZH7fbd9K54StydA8aD3BzZGsyZ6SbD92967b97Q4ZtiezHdA952yRyQaeHSh9S89N5aK3QDK7QStiYSiQFGt3ht7TadSSbRt6R5Ytytn89HhYnyzY4RHa9FT9KBSNd9GY5rbkKsiK3ytdRS', 1), (9, 4, '8 (962) 873-88-81', '', '<EMAIL>', 'ул. Ленина, 30а', 'Ежедневно с 10 : 00 - 22 : 00', 'Константин Семенченко 8 (989) 242-71-42', 17, 500, 315, 'GR5h9nEhS8EQYtaTzsYGKKZnaEHDDG38iTfh7KtQGZsrdt8BKS8isTAtk8YQFHNRrT3ksf425hb8DaAbTyk9dNssKb6dKGT4nHdFR7tHdzGGz7HesYeyyAQ6BH8adS5sr7265eE7D9D36a7iYaGeBh93T84ZRTb6R43G7sEAr7ki7fzSh5ZHbZAYTrGz8KsQBeiyzRYQN72Hdhnnba2eZk4EDz4B7fbyknSH5BiFy9bBfsRisDrbQeFdDy', 1), (10, 6, '8 (800) 555-24-08', '', '<EMAIL>', 'ул. Кубанская набережная 5', 'Ежедневно с 10 : 00 - 22 : 00', '<NAME> 8 (953) 099-17-17', 16, 600, NULL, '<KEY>', 1), (11, 6, '8 (800) 555-24-08', '', '<EMAIL>', '<NAME>, 21', 'Ежедневно с 10 : 00 - 22 : 00', '<NAME> 8 (918) 383-70-91‬', 4, 600, 280, '<KEY>', 1), (12, 6, '8 (800) 555-24-08', '', '<EMAIL>', 'у<NAME>, 2/1', 'Ежедневно с 10 : 00 - 22 : 00', '<NAME> 8 (953) 099-17-17', 16, 600, 281, '<KEY>', 1), (13, 6, '8 (800) 555-24-08', '', '<EMAIL>', 'ул. Комарова, 21 а', 'Ежедневно с 10 : 00 - 22 : 00', '<NAME> 8 (918) 383-70-91‬', 26, 600, 286, '<KEY>', 1), (14, 6, '8 (800) 555-24-08', '', '<EMAIL>', 'ул. Тюляева, 9/1', 'Ежедневно с 10 : 00 - 22 : 00', '<NAME> 8 (918) 383-70-91‬', 10, 600, 317, '2R3G8KrhyQFDiQ82E4YhTYfEYk8rhfN7ZDETbY5zAA2HbZyFQdRy322KaZ3h5DeR6HA7trsSRenS4HkEQ43DQNaQz42rs56iDsfYHABkEQ5ykd347QtKrtnQia5D62QyeYeQhF4QhY8z32kZBGyS4KtaNkEF9e4e47Y9DKQKtK8hAi62SrFG42GD9989e2d7T27iAHZThT4G5ZyHa3d4NNtNKrNRbRKZEF84dTKkBBTsib4k47dEGzeeQS', 1), (15, 7, '8 (4712) 550-580', '', '<EMAIL>', 'ул. Бойцов 9 дивизии 185Ж', 'Ежедневно с 10 : 00 - 24 : 00', 'Юрий Ли 8 (920) 700-5-700', 13, 500, NULL, '3fzKAR7hTHiD57Adzz5fYzTeBe3yiSR92aKiRGtAdE48BnbZK76ysNDTSrb57T5YYE6B9k2dSQbe5d5D922sAn9eFb9DZ5iFyd6ysTB9zDenG8SFYE2hTZnk3nQKe3dB59ZiSihbQnshk8R8BDehnyybH9QR2TeSS45AbaDRrT3EREBe7Gnh5KkBK4eAHiera8Rd9eTn3GSFafN7Q4eFDt7ahaBSkF7kEKsDS9RFGzaHENEfDKN55H6aHt', 1), (16, 7, '8 (4712) 550-590', '', '<EMAIL>', 'пр-т <NAME>, 19', 'Ежедневно с 10 : 00 - 24 : 00', '<NAME> 8 (920) 700-5-700', 13, 500, 56, '3fzKAR7hTHiD57Adzz5fYzTeBe3yiSR92aKiRGtAdE48BnbZK76ysNDTSrb57T5YYE6B9k2dSQbe5d5D922sAn9eFb9DZ5iFyd6ysTB9zDenG8SFYE2hTZnk3nQKe3dB59ZiSihbQnshk8R8BDehnyybH9QR2TeSS45AbaDRrT3EREBe7Gnh5KkBK4eAHiera8Rd9eTn3GSFafN7Q4eFDt7ahaBSkF7kEKsDS9RFGzaHENEfDKN55H6aHt', 1), (17, 8, '8 (4712) 550-540', '', '<EMAIL>', '<NAME>, 12а', 'Ежедневно с 10 : 00 - 22 : 00', '<NAME> 8 (920)700-5-700', 13, 500, NULL, '7hd7KDdy8ek5kBhR4ErByeKyB4yyDtbzDetaHzzGEKBS9Hy3bNrzT4TfTbEhyFG2N32hiiSRYfyYRSKTs3eaS2fA4KGkdb9S424b8GSSQbDtTaba4faG6h6YYB73E7FtTyyR4bzFd232342R93i58eQTGKG9FasnyQ5kRrTYdHG5ByHAhTrf363yEyy9zQkSre67zNRBiitKG48RKnZAfNYN7dNtS298655rFHSRY9nr4k6BBS3HsHhnNY', 1), (18, 9, '8 (938) 863-22-85', '', '<EMAIL>', 'ул. Армянская 14', 'Ежедневно с 10 : 00 - 23 : 00', '<NAME> 8 (909) 477-85-35', 14, 500, NULL, 'tGedDb8rhhaQ36T7HhT6fR7r6ZzEEtrZ3z3sB2HH8HiZD6TabB7he4BaQ2EeeY47eSkFFYdDtnnYf7YiyRyDGZDhH6nQQeHY2ZrsGtY3H8KS6t5r9kSF8fRGb5iS9YBZFSbba24HZBnRYe6YtKrsT62YZ8BZS4GkGKnGzedfGt2sBSaTsr99h2T7ZfTD9nRF35ak9eyGAf2323GeeGdryZie66G5fkA8eAhdFEK6NATBkrFsZHHfyYkrQY', 1), (19, 10, '8 (800) 550-53-49', '', '<EMAIL>', 'ул. Мира 10', 'пн-чт с 10:00-23:00, пт-вс с 10:00-24:00 ', '<NAME> 8 (918) 094-33-67', 6, 500, NULL, 'GR5h9nEhS8EQYtaTzsYGKKZnaEHDDG38iTfh7KtQGZsrdt8BKS8isTAtk8YQFHNRrT3ksf425hb8DaAbTyk9dNssKb6dKGT4nHdFR7tHdzGGz7HesYeyyAQ6BH8adS5sr7265eE7D9D36a7iYaGeBh93T84ZRTb6R43G7sEAr7ki7fzSh5ZHbZAYTrGz8KsQBeiyzRYQN72Hdhnnba2eZk4EDz4B7fbyknSH5BiFy9bBfsRisDrbQeFdDy', 1), (20, 10, '8 (800) 550-53-49', '', '<EMAIL>', '<NAME>, 210д ТЦ «Мамайка»', 'пн-чт с 10:00-23:00, пт-вс с 10:00-24:00', 'Д<NAME> 8 (918) 094-33-67', 6, 500, 273, 'GR<KEY>iYaGeBh93T84ZRTb6R43G7sEAr7ki7fzSh5ZHbZAYTrGz8KsQBeiyzRYQN72Hdhnnba2eZk4EDz4B7fbyknSH5BiFy9bBfsRisDrbQeFdDy', 1), (21, 10, '8 (800) 550-53-49', '', '<EMAIL>', 'пр. Дзержинского, 228', 'пн-чт с 10:00-23:00, пт-вс с 10:00-24:00', 'Дмитрий 8 (918) 094-33-67', 6, 500, 313, '<KEY>', 1), (22, 11, '8 (988) 541-05-00', '', '<EMAIL>', 'пр.Ермака, 44, ТЦ \"Арбат\"', 'Ежедневно с 10 : 00 - 22 : 00', '8 (988) 541-01-80 Екатерина', 5, 500, 49, 'y2H2iiDtYkk7B5y7Aabei7b9z6RFHGh6tSTF5i2NA<KEY>', 1), (23, 17, '8 (928) 716-55-67', '', '<EMAIL>', '<NAME>, 102/1', 'Ежедневно с 10 : 00 - 23 : 00', '<NAME> 8 (909) 477-85-35', 14, 500, 48, '<KEY>', 1), (24, 12, '8 (800) 555-82-06', '8 (863) 229-69-46', '<EMAIL>', 'б-р Комарова 20', 'пн-чт с 10:00-23:00, пт-вс с 10:00-24:00', '<NAME> 8 (938) 120-66-21', 25, 500, 0, '<KEY>', 1), (25, 12, '8(800)555-82-06', '', '<EMAIL>', 'ул. Таганрогская 114, ТЦ «Джанфида»', 'Ежедневно с 10 : 00 - 22 : 00', '<NAME> 8 (938) 120-66-21', 25, 500, 64, '34GnZe7d89y7bdt67Dbyret67HDSs7ye25tH9nQ8n86saki8Qkt6tN2nir6EkrH9h5Hffiezf9Qhk3e3bAYyaHHi2ER9Yk95eGanTeK3en9sbdfdE4AFB8SkDykiHkdQTd4BiDrrRnHTtR22Gks7h9hNtzZ4H3Fr6ySe28zDk6iGH8tehNatNh66GSZdGrtDNaGA954i2aTy9bDfQDDrNzhfb7iKiFa2GHkFBbSndAKbDaieDQyd9FibBz', 1), (26, 12, '8 (800) 555-82-06', '', '<EMAIL>', 'ул. Темерницкая 41 б', 'пн-чт с 10:00-23:00, пт-вс с 10:00-24:00', '<NAME> 8 (938) 120-66-21', 25, 500, 76, '<KEY>', 1), (27, 12, '8 (800) 555-82-06', '', '<EMAIL>', 'ул. Малиновского 38/29', 'пн-чт с 10:00-23:00, пт-вс с 10:00-24:00', 'Сергей Ким 8 (938) 120-66-21', 25, 500, 141, '34GnZe7d89y7bdt67Dbyret67HDSs7ye25tH9nQ8n86saki8Qkt6tN2nir6EkrH9h5Hffiezf9Qhk3e3bAYyaHHi2ER9Yk95eGanTeK3en9sbdfdE4AFB8SkDykiHkdQTd4BiDrrRnHTtR22Gks7h9hNtzZ4H3Fr6ySe28zDk6iGH8tehNatNh66GSZdGrtDNaGA954i2aTy9bDfQDDrNzhfb7iKiFa2GHkFBbSndAKbDaieDQyd9FibBz', 1), (28, 13, '8 (8452) 930-080', '', '<EMAIL>', 'ул. Московская 42', 'Ежедневно с 10 : 00 - 24 : 00', '<NAME> 8 (937) 149-90-90', 12, 500, NULL, 'n2iFfzQ98iy5EtatKd49fZzB3BA4FZsYHDrS36RZe9QHsQ54ST33FkrtNQhfAD586hQTbsFhshTKZKDEtst2FHfeksnKTfHNriytE3DZ8iyYYZnbbG4Ge8Qsn558aBHrN6KeTb4SkiD88R9ak4Gt2iKbdE9d6HyFD7Ni8D5iNtfK8fKi8fEZtb3zG2BBzZ73SGaR853Ki8hheYtb4Z3h3QFyD7Z2SSQznQbiF4ZR3736Rf8G5ZRTBid4e3', 1), (29, 13, '8 (8452) 930-020', '', '<EMAIL>', 'п. Солнечный, ул. Мысникова 3', 'Ежедневно с 11:00 - 24:00', '<NAME> 8 (937) 149-90-90', 12, 500, 71, '<KEY>', 1), (30, 13, '8 (8452) 939-711', '', '<EMAIL>', 'пр-т 50 Лет Октября, 69', 'Ежедневно с 11:00 - 24:00', '<NAME> 8 (937) 149-90-90', 12, 500, 72, '<KEY>', 1), (31, 13, '8 (8452) 931-322', '', '<EMAIL>', 'ул.Пономарева д.9/14', 'Ежедневно с 10 : 00 - 24 : 00', '<NAME> 8 (937) 149-90-90', 12, 500, 83, '<KEY>', 1), (32, 13, '8 (8452) 930-080', '', '<EMAIL>', 'ул. <NAME>, д. 141', 'Ежедневно с 10 : 00 - 24 : 00', '<NAME> 8 (937) 149-90-90', 12, 500, 95, 'n2iFfzQ98iy5EtatKd49fZzB3BA4FZsYHDrS36RZe9QHsQ54ST33FkrtNQhfAD586hQTbsFhshTKZKDEtst2FHfeksnKTfHNriytE3DZ8iyYYZnbbG4Ge8Qsn558aBHrN6KeTb4SkiD88R9ak4Gt2iKbdE9d6HyFD7Ni8D5iNtfK8fKi8fEZtb3zG2BBzZ73SGaR853Ki8hheYtb4Z3h3QFyD7Z2SSQznQbiF4ZR3736Rf8G5ZRTBid4e3', 1), (33, 14, '8 (918) 355-75-05', '', '<EMAIL>', 'ул. Красная 64', 'Ежедневно с 10 : 00 - 22 : 00', 'Алексей 8 (938) 424-33-48', 19, 600, 45, 'z4FHiB7e662hzAeGaYikibQdYSNFAisZaZtkknsfhdrGDybEdnRrrtt9a6FAeZhfHDtYSN54SfzfDBNGRrZ6Kd6K9B8dkfkYHFFreze2FE686GEHZrEyyz7y25B99NYHer3kN79fA6dsBH4k2tHhRFEEz5DzEk7KDZ2dS2ieTnAhZnyKG6TkAkRZdfhHtefY462HT8RBkbH8s6G22r9kDR8GZfdeni3eeNQ2KskZyYYNRsAD<KEY>', 1), (34, 19, '8 (989) 5000-141', '', '<EMAIL>', 'п<NAME>, 1а', 'Ежедневно с 10 : 00 - 23 : 00', 'Сергей Ким 8 (938) 120-66-21', 11, 500, 314, '<KEY>', 1), (35, 15, '8 (967) 673-2-444', '', '<EMAIL>', 'ул. Колесникова 40а', 'Ежедневно с 10 : 00 - 22 : 00', 'Надежда Цой 8 (967) 662-49-49', 16, 500, 47, 'z4FHiB7e662hzAeGaYikibQdYSNFAisZaZtkknsfhdrGDybEdnRrrtt9a6FAeZhfHDtYSN54SfzfDBN<KEY>', 1), (36, 16, '8(928)435-18-08', '', '<EMAIL>', 'ул. Красная, 291', 'пн-чт с 10:00-22:00, пт-вс с 10:00-23:00', '<NAME> 8 (938) 424-33-48', 19, 600, NULL, '<KEY>', 1), (37, 21, '8 (800) 555-24-08', '', '<EMAIL>', 'ул. Гагарина, 46/1', 'Ежедневно с 10:00 до 22:00', 'Наталья 8 (918) 113-81-19', 27, 600, 295, '2R3G8KrhyQFDiQ82E4YhTYfEYk8rhfN7ZDETbY5zAA2HbZyFQdRy322KaZ3h5DeR6HA7trsSRenS4HkEQ43DQNaQz42rs56iDsfYHABkEQ5ykd347QtKrtnQia5D62QyeYeQhF4QhY8z32kZBGyS4KtaNkEF9e4e47Y9DKQKtK8hAi62SrFG42GD9989e2d7T27iAHZThT4G5ZyHa3d4NNtNKrNRbRKZEF84dTKkBBTsib4k47dEGzeeQS', 1), (38, 22, ' 8 (989) 521-23-45', '', '<EMAIL>', 'ул. Огородная, 74а, ТЦ «Оранжерея»', 'Ежедневно с 10 : 00 - 22 : 00', '<NAME> 8 (988) 541-01-80', 23, 500, 96, 'y2H2iiDtYkk7B5y7Aabei7b9z6RFHGh6tSTF5i2NAaG265Ys62AdYBdetTN5nY2HDFbtS46d4D5ZtQbnDBsi3zrhd4btK35by7yaZreQS9AaNBnd4GnS5E38y5r7Tf8ddte3HiDni3rZrF3ead26HQ45Ff3nrZstdzhQGN5SDfESNt2QzKH7nB3THQ<KEY>', 1), (39, 24, ' 8 (918) 660-29-29', '', '<EMAIL>', ' ул. Курганная,197, «Торговый дом Купеческий»', 'Ежедневно с 10 : 00 - 23 : 00', '<NAME> 8 (918) 048-98-51', 24, 600, 109, '<KEY>', 1), (40, 19, ' 8 (989) 500-01-41', '', '<EMAIL>', '<NAME>, 20, ГМ «Магнит»', 'Ежедневно с 10 : 00 - 23 : 00', '<NAME> 8 (938) 120-66-21', 11, 500, 344, '34GnZe7d89y7bdt67Dbyret67HDSs7ye25tH9nQ8n86saki8Qkt6tN2nir6EkrH9h5Hffiezf9Qhk3e3bAYyaHHi2ER9Yk95eGanTeK3en9sbdfdE4AFB8SkDykiHkdQTd4BiDrrRnHTtR22Gks7h9hNtzZ4H3Fr6ySe28zDk6iGH8tehNatNh66GSZdGrtDNaGA954i2aTy9bDfQDDrNzhfb7iKiFa2GHkFBbSndAKbDaieDQyd9FibBz', 1), (41, 23, ' 8 (988) 355-75-05', '', '<EMAIL>', '1-МКР, 26/7, магазин 7', 'пн-чт, вс с 10:00-22:00, пт-сб с 10:00-23:00', 'Алексей 8 (938) 424-33-48', 19, 600, 107, '<KEY>', 1), (42, 25, '8 (928) 496-0-222', '', '<EMAIL>', 'ул.Чкалова, 1а', 'Ежедневно 10:00-23:00', '', 6, 500, 347, 'GR5h9nEhS8EQYtaTzsYGKKZnaEHDDG38iTfh7KtQGZsrdt8BKS8isTAtk8YQFHNRrT3ksf425hb8DaAbTyk9dNssKb6dKGT4nHdFR7tHdzGGz7HesYeyyAQ6BH8adS5sr7265eE7D9D36a7iYaGeBh93T84ZRTb6R43G7sEAr7ki7fzSh5ZHbZAYTrGz8KsQBeiyzRYQN72Hdhnnba2eZk4EDz4B7fbyknSH5BiFy9bBfsRisDrbQeFdDy', 1), (43, 26, '8 (961) 589-11-99', '', '<EMAIL>', 'ул. Циолковского, 1б', 'вс-чт 10:00 -22:00, пт-сб 10:00-23:00', 'Надежда Цой 8 (967) 662-49-49', 16, 500, 108, 'z4FHiB7e662hzAeGaYikibQdYSNFAisZaZtkknsfhdrGDybEdnRrrtt9a6FAeZhfHDtYSN54SfzfDBNGRrZ6Kd6K9B8dkfkYHFFreze2FE686GEHZrEyyz7y25B99NYHer3kN79fA6dsBH4k2tHhRFEE<KEY>', 1), (44, 27, '8 (800) 222-73-46', '', '<EMAIL>', '2-я ул. Поселковая, 2', 'Ежедневно с 9:00 до 22:00', 'Владимир Цой 8 (918) 098-2-009', 29, 600, NULL, '3aBT66AR3dFzFTAGA9DA2866sen3bKT4KhHEd8h5bQrGzQdZQGhBFbtZhHNkfydSENiGKyBN8Rhytnf8YrzntSaDnNRy7TbByk86GzGFbS4z68tRnR6Gy69HFQ6By73ShZKShfki2dHTa4zrFrZ4hZBRAtdYr6DBSbf4htb7zKRABaQ6sBZDiieKFiyZdZiZ2tN8NQ69kHANKaG4DssNEzk9GHYNy7zfn9e4N933GkBen88RrnsTNFSfbD', 1), (45, 12, '8 (800) 555-82-06 ', '', '<EMAIL>', 'ул. Сельмаш, 29', 'Ежедневно с 10:00 до 24:00', 'Сергей Ким 8 (938) 120-66-21', 25, 500, 362, '34GnZe7d89y7bdt67Dbyret67HDSs7ye25tH9nQ8n86saki8Qkt6tN2nir6EkrH9h5Hffiezf9Qhk3e3bAYyaHHi2ER9Yk95eGanTeK3en9sbdfdE4AFB8SkDykiHkdQTd4BiDrrRnHTtR22Gks7h9hNtzZ4H3Fr6ySe28zDk6iGH8tehNatNh66GSZdGrtDNaGA954i2aTy9bDfQDDrNzhfb7iKiFa2GHkFBbSndAKbDaieDQyd9FibBz', 1); -- -------------------------------------------------------- -- -- Структура таблицы `point_categories` -- CREATE TABLE `point_categories` ( `point_id` int(11) NOT NULL, `category_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `point_categories` -- INSERT INTO `point_categories` (`point_id`, `category_id`) VALUES (3, 1), (4, 1), (6, 1), (7, 1), (8, 1), (9, 1), (10, 1), (11, 1), (12, 1), (13, 1), (14, 1), (15, 1), (16, 1), (17, 1), (18, 1), (19, 1), (20, 1), (21, 1), (22, 1), (23, 1), (24, 1), (25, 1), (26, 1), (27, 1), (28, 1), (29, 1), (30, 1), (31, 1), (32, 1), (33, 1), (34, 1), (35, 1), (36, 1), (37, 1), (38, 1), (39, 1), (40, 1), (41, 1), (42, 1), (43, 1), (44, 1), (45, 1), (3, 2), (4, 2), (6, 2), (7, 2), (8, 2), (9, 2), (10, 2), (11, 2), (12, 2), (13, 2), (14, 2), (15, 2), (16, 2), (17, 2), (18, 2), (19, 2), (20, 2), (21, 2), (22, 2), (23, 2), (24, 2), (25, 2), (26, 2), (27, 2), (28, 2), (29, 2), (30, 2), (31, 2), (32, 2), (33, 2), (34, 2), (35, 2), (36, 2), (37, 2), (38, 2), (39, 2), (40, 2), (41, 2), (42, 2), (43, 2), (44, 2), (45, 2), (3, 3), (4, 3), (6, 3), (7, 3), (8, 3), (9, 3), (10, 3), (11, 3), (12, 3), (13, 3), (14, 3), (15, 3), (16, 3), (17, 3), (18, 3), (19, 3), (20, 3), (21, 3), (22, 3), (23, 3), (24, 3), (25, 3), (26, 3), (27, 3), (28, 3), (29, 3), (30, 3), (31, 3), (32, 3), (33, 3), (34, 3), (35, 3), (36, 3), (37, 3), (38, 3), (39, 3), (40, 3), (41, 3), (42, 3), (43, 3), (44, 3), (45, 3), (3, 4), (4, 4), (6, 4), (7, 4), (8, 4), (9, 4), (10, 4), (11, 4), (12, 4), (13, 4), (14, 4), (15, 4), (16, 4), (17, 4), (18, 4), (19, 4), (20, 4), (21, 4), (22, 4), (23, 4), (24, 4), (25, 4), (26, 4), (27, 4), (28, 4), (29, 4), (30, 4), (31, 4), (32, 4), (33, 4), (34, 4), (35, 4), (36, 4), (37, 4), (38, 4), (39, 4), (40, 4), (41, 4), (42, 4), (43, 4), (44, 4), (45, 4), (3, 5), (4, 5), (6, 5), (7, 5), (8, 5), (9, 5), (10, 5), (11, 5), (12, 5), (13, 5), (14, 5), (15, 5), (16, 5), (17, 5), (18, 5), (19, 5), (20, 5), (21, 5), (22, 5), (23, 5), (24, 5), (25, 5), (26, 5), (27, 5), (28, 5), (29, 5), (30, 5), (31, 5), (32, 5), (33, 5), (34, 5), (35, 5), (36, 5), (37, 5), (38, 5), (39, 5), (40, 5), (41, 5), (42, 5), (43, 5), (44, 5), (45, 5), (3, 6), (4, 6), (6, 6), (7, 6), (8, 6), (9, 6), (10, 6), (11, 6), (12, 6), (13, 6), (14, 6), (15, 6), (16, 6), (17, 6), (18, 6), (19, 6), (20, 6), (21, 6), (22, 6), (23, 6), (24, 6), (25, 6), (26, 6), (27, 6), (28, 6), (29, 6), (30, 6), (31, 6), (32, 6), (33, 6), (34, 6), (35, 6), (36, 6), (37, 6), (38, 6), (39, 6), (40, 6), (41, 6), (42, 6), (43, 6), (44, 6), (45, 6), (3, 7), (4, 7), (6, 7), (7, 7), (8, 7), (9, 7), (10, 7), (11, 7), (12, 7), (13, 7), (14, 7), (15, 7), (16, 7), (17, 7), (18, 7), (19, 7), (20, 7), (21, 7), (22, 7), (23, 7), (24, 7), (25, 7), (26, 7), (27, 7), (28, 7), (29, 7), (30, 7), (31, 7), (32, 7), (33, 7), (34, 7), (35, 7), (36, 7), (37, 7), (38, 7), (39, 7), (40, 7), (41, 7), (42, 7), (43, 7), (44, 7), (45, 7), (3, 8), (4, 8), (6, 8), (7, 8), (8, 8), (9, 8), (10, 8), (11, 8), (12, 8), (13, 8), (14, 8), (15, 8), (16, 8), (17, 8), (18, 8), (19, 8), (20, 8), (21, 8), (22, 8), (23, 8), (24, 8), (25, 8), (26, 8), (27, 8), (28, 8), (29, 8), (30, 8), (31, 8), (32, 8), (33, 8), (34, 8), (35, 8), (36, 8), (37, 8), (38, 8), (39, 8), (40, 8), (41, 8), (42, 8), (43, 8), (44, 8), (45, 8), (3, 9), (7, 9), (8, 9), (9, 9), (11, 9), (14, 9), (15, 9), (16, 9), (17, 9), (18, 9), (22, 9), (23, 9), (24, 9), (25, 9), (26, 9), (27, 9), (34, 9), (37, 9), (38, 9), (39, 9), (40, 9), (42, 9), (43, 9), (45, 9), (3, 10), (6, 10), (7, 10), (8, 10), (9, 10), (11, 10), (13, 10), (14, 10), (15, 10), (16, 10), (17, 10), (19, 10), (20, 10), (21, 10), (23, 10), (25, 10), (27, 10), (33, 10), (35, 10), (36, 10), (37, 10), (39, 10), (41, 10), (42, 10), (43, 10), (45, 10), (3, 11), (6, 11), (7, 11), (8, 11), (9, 11), (11, 11), (14, 11), (15, 11), (16, 11), (17, 11), (18, 11), (19, 11), (20, 11), (21, 11), (22, 11), (23, 11), (25, 11), (27, 11), (33, 11), (35, 11), (36, 11), (37, 11), (39, 11), (41, 11), (42, 11), (43, 11), (45, 11), (3, 12), (7, 12), (8, 12), (9, 12), (11, 12), (14, 12), (15, 12), (16, 12), (17, 12), (18, 12), (19, 12), (20, 12), (21, 12), (23, 12), (27, 12), (37, 12), (39, 12), (43, 12), (45, 12), (3, 13), (7, 13), (8, 13), (9, 13), (11, 13), (14, 13), (15, 13), (16, 13), (17, 13), (27, 13), (37, 13), (39, 13), (42, 13), (43, 13), (45, 13), (9, 14), (14, 14), (18, 14), (23, 14), (39, 14), (11, 15), (24, 15), (35, 15), (39, 15); -- -------------------------------------------------------- -- -- Структура таблицы `profile` -- CREATE TABLE `profile` ( `id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `phone` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `profile` -- INSERT INTO `profile` (`id`, `user_id`, `name`, `phone`) VALUES (1, 1, 'VS', '8 (917) 817-16-83'), (5, 3, 'Валера', '1234356'), (6, 4, '<NAME>', '8 (928) 421-92-53'), (7, 5, '<NAME>', ' 8 (961) 289-05-44'), (8, 6, '<NAME>', ' 8 (918) 094-33-67'), (9, 7, '<NAME>', '8 (988) 474-57-32'), (12, 10, '<NAME>', ' 8 (918) 311-43-95'), (13, 11, '<NAME>', '8 (928) 776-29-93'), (14, 12, '<NAME>', ' 8 (937) 265-70-30'), (15, 13, '<NAME>', ' 8 (920) 263-81-91'), (16, 14, '<NAME>', '8 (988) 920-84-75'), (18, 16, '<NAME>', ' 8 (961) 589-11-99'), (19, 17, '<NAME>', ' 8 (989) 242-71-42'), (20, 18, '<NAME>', ' 8 (950) 873-14-66'), (21, 19, '<NAME>', ' 8 (908) 673-66-49'), (25, 23, '<NAME>', ' 8 (908) 129-56-59'), (26, 24, '<NAME>', '8 (918) 048-98-51'), (27, 25, '<NAME>', '8 (918) 511-62-16'), (28, 26, '<NAME>', ' 8 (918) 032-32-05'), (29, 27, '<NAME>', '8 (918) 113-81-19'), (31, 29, '<NAME>', '8 (918) 098-20-09'); -- -------------------------------------------------------- -- -- Структура таблицы `slides` -- CREATE TABLE `slides` ( `id` int(10) NOT NULL, `image` varchar(255) DEFAULT NULL, `code` varchar(255) DEFAULT NULL, `sort` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `slides` -- INSERT INTO `slides` (`id`, `image`, `code`, `sort`) VALUES (1, '/images/slide/decsite.jpg', '', 2), (2, '/images/slide/decsite2.jpg', '', 3), (3, '/images/slide/49.jpg', '', 1); -- -------------------------------------------------------- -- -- Структура таблицы `slides_cities` -- CREATE TABLE `slides_cities` ( `slides_id` int(11) NOT NULL, `cities_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `slides_cities` -- INSERT INTO `slides_cities` (`slides_id`, `cities_id`) VALUES (1, 1), (2, 1), (3, 1), (1, 2), (2, 2), (3, 2), (1, 3), (2, 3), (3, 3), (1, 4), (2, 4), (3, 4), (1, 5), (2, 5), (3, 5), (1, 6), (2, 6), (3, 6), (1, 7), (2, 7), (3, 7), (1, 8), (2, 8), (3, 8), (1, 9), (2, 9), (3, 9), (1, 10), (2, 10), (3, 10), (1, 11), (2, 11), (3, 11), (1, 12), (2, 12), (3, 12), (1, 13), (2, 13), (3, 13), (1, 14), (2, 14), (3, 14), (1, 15), (2, 15), (3, 15), (1, 16), (2, 16), (3, 16), (1, 17), (2, 17), (3, 17), (1, 19), (2, 19), (3, 19), (1, 20), (2, 20), (3, 20), (1, 21), (2, 21), (3, 21), (1, 22), (2, 22), (3, 22), (1, 23), (2, 23), (3, 23), (1, 24), (2, 24), (3, 24), (1, 25), (2, 25), (3, 25), (1, 26), (2, 26), (3, 26), (1, 27), (2, 27), (3, 27); -- -------------------------------------------------------- -- -- Структура таблицы `user` -- CREATE TABLE `user` ( `id` int(10) NOT NULL, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `role` varchar(64) NOT NULL, `auth_key` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `user` -- INSERT INTO `user` (`id`, `username`, `password`, `role`, `auth_key`) VALUES (1, 'admin', '$2y$13$5lPoOl3z0EcN6MK5duNCTu9/x0wCMqHPB1FyTmTsPhZIUdDt8rxj.', 'root', 'pbJytnDCJ0niMUSLtU47pgVb9q4cTniB'), (3, 'valera', '$2y$13$U0myuIYt8JDJ/rdYD1/hB.guHJkH.I5h5Slnax6RlYKuTG0ckMaKa', 'admin', 'sOb6eBG-QCCj5gcXZkNdO35DdU-flGNt'), (4, 'uriinagai', '$2y$13$ttQP9sf.RzUQBZArE1qgBOeAHfF58jOhvUsLSj08r7va4FeNHMniO', 'manager', 'peb6I9f1szV4dq6rR2dHcpTdep-b1lLo'), (5, 'andreipak', '$2y$13$F5ugMDWJPkwwH/QQ4Oo8M.Sq9y2XMXgX6A7fYId5vhI5KIIvhoc6C', 'manager', 'C2YvVsjildI7OtAcItCAeY9Yt4GfPjVA'), (6, 'dmitriihan', '$2y$13$PVv9WjyHZL2Piy7RJ6YYCuQlTSvhoDGxhjpD.K.p.DmE9O4ekVpUy', 'manager', 'Tu3M9G2ZaeIY1OaChL9r6WboGmSsOR56'), (7, 'viktorpak', '$2y$13$B3VHS68ZG10NbZYyQBE.keT/dvUIMDKXo1Ws/3kfDPdPnqp095erS', 'manager', NULL), (10, 'viktoriyachuchalina', '$2y$13$xF5gxa1V0Yyc92YzH1/AXe2IVzxDM7ULeANSvEf29Ohp0zMN2t4mu', 'manager', NULL), (11, 'sergeikim', '$2y$13$O2KAv/UVIMEAwrc9mMINh.Aarzu45E7mCfRj3CukO7OHZuZPVjg6.', 'manager', NULL), (12, ' Juliaalenova', '$2y$13$DdqfDZ05uLfcjTx47NRL7eIfqYnSsokmDYVqEwxfU2vNA7T1cNEDu', 'manager', NULL), (13, 'jurili', '$2y$13$h.6UfymcDHrg/EcE9d7/rO.4wTqWGfzH3v52LAf0VgOJLcN/4tNc2', 'manager', 'sBwGkkwNvOf3dXbCmUzgZurJbMHFFMEE'), (14, 'romantyan', '$2y$13$AB2DAkl0TPJb9ObaiPno4.1qe7FXpQIHcYYpxtrUtw4SGluOSshh2', 'manager', 'eQ6qFht3YPb0zlYMUhWxjw7azgpi1zOE'), (16, 'nadezhdatsoy', '$2y$13$e7xxquXag0HegLSk8a7v/Or3WUEnIKkChTBjNIhmqKSy642TLZtki', 'manager', 'DxaRTS3Q5V8-JYGgflD_dpCxxSAa5yBo'), (17, ' konstantinsemenchenko', '$2y$13$T1HhITUVZX8dfv.EcG6oLO5g1uZFqbmFj3R/lq.oJPmYupprR1Y7m', 'manager', NULL), (18, ' evgeniysemenov', '$2y$13$1voXtj/RDmmRMEN4ofLaSeS6A90Cz7PrtL7u/El17W1tt2JlFNnfC', 'manager', NULL), (19, ' alekseytoluzarov', '$2y$13$y7/cJMfzwb3ou.BNR9lTxOU1EY8s6rdHGjuc4trYBQZzbDsQE15Xq', 'manager', NULL), (23, 'anatoliili', '$2y$13$wxUgExCWVtzoKGwEOd75jumhCCfxVkozIfAjziByGKIm13adGz4xO', 'manager', NULL), (24, 'olegdootaliev', '$2y$13$H1VCex4PSgsZowccyozrX.gH8rwbQY88aKbPeVYzkjdVM8t7kCQ8G', 'manager', 'Rnv5IMrmpQezlwFGCw0ysXcQRsJkPhqF'), (25, 'alexsandrnam', '$2y$13$zLUgPntGjG7QLRzKkkC1G.5GnMlF.yIsyUNhGCr3uuGFUU0t4FkZG', 'manager', 'PUbFQ4YPVEb2e19j1gc-UeJ447UoQNcg'), (26, 'liliyamystafaeva', '$2y$13$T8ipELK9lzPPA9ce2GPhgOV0t0Payy3P/tUSTff.14h/SILhyYJTK', 'manager', NULL), (27, 'nataliakim', '$2y$13$GLBRxT/QnkhSvBYbr1FWzO4PKBsg7E5ztSBGA38QzBEfIYDtc3jkG', 'manager', NULL), (28, 'nadezhdacoi', '$2y$13$FIkULEL4TchWscM1cKaKs.v7rtNgis3fMEnXdqQw/ZcJ3ENllmTJO', 'manager', 'gh2wKEUDf0KWtOymhgFDtVLfGHkCmFvE'), (29, 'vladimircoi', '$2y$13$O4zhOKUj6U.X5ZDclGSu6O.53dpdl/trK4Ma0oIcddIJkMcS51wYe', 'manager', NULL); -- -- Индексы сохранённых таблиц -- -- -- Индексы таблицы `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `cities` -- ALTER TABLE `cities` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `points` -- ALTER TABLE `points` ADD PRIMARY KEY (`id`), ADD KEY `city` (`city`), ADD KEY `manager` (`manager`); -- -- Индексы таблицы `point_categories` -- ALTER TABLE `point_categories` ADD PRIMARY KEY (`point_id`,`category_id`), ADD KEY `point_id` (`point_id`,`category_id`), ADD KEY `point_categories_ibfk_2` (`category_id`); -- -- Индексы таблицы `profile` -- ALTER TABLE `profile` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `user_id_2` (`user_id`); -- -- Индексы таблицы `slides` -- ALTER TABLE `slides` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `slides_cities` -- ALTER TABLE `slides_cities` ADD PRIMARY KEY (`slides_id`,`cities_id`), ADD KEY `cities_id` (`cities_id`), ADD KEY `slides_id` (`slides_id`); -- -- Индексы таблицы `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT для сохранённых таблиц -- -- -- AUTO_INCREMENT для таблицы `categories` -- ALTER TABLE `categories` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT для таблицы `cities` -- ALTER TABLE `cities` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28; -- -- AUTO_INCREMENT для таблицы `points` -- ALTER TABLE `points` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46; -- -- AUTO_INCREMENT для таблицы `profile` -- ALTER TABLE `profile` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32; -- -- AUTO_INCREMENT для таблицы `slides` -- ALTER TABLE `slides` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT для таблицы `user` -- ALTER TABLE `user` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30; -- -- Ограничения внешнего ключа сохраненных таблиц -- -- -- Ограничения внешнего ключа таблицы `points` -- ALTER TABLE `points` ADD CONSTRAINT `points_ibfk_1` FOREIGN KEY (`city`) REFERENCES `cities` (`id`), ADD CONSTRAINT `points_ibfk_2` FOREIGN KEY (`manager`) REFERENCES `user` (`id`); -- -- Ограничения внешнего ключа таблицы `point_categories` -- ALTER TABLE `point_categories` ADD CONSTRAINT `point_categories_ibfk_1` FOREIGN KEY (`point_id`) REFERENCES `points` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `point_categories_ibfk_2` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE; -- -- Ограничения внешнего ключа таблицы `profile` -- ALTER TABLE `profile` ADD CONSTRAINT `profile_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE; -- -- Ограничения внешнего ключа таблицы `slides_cities` -- ALTER TABLE `slides_cities` ADD CONSTRAINT `slides_cities_ibfk_1` FOREIGN KEY (`cities_id`) REFERENCES `cities` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `slides_cities_ibfk_2` FOREIGN KEY (`slides_id`) REFERENCES `slides` (`id`) ON DELETE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<gh_stars>0 -- @testpoint: 分区名字不符合标识符规范,合理报错 create table partition_table( col_1 smallint, col_2 char(30), col_3 int, col_4 date not null, col_5 boolean, col_6 nchar(30), col_7 float ) partition by range (col_4) interval ('1 month') ( partition partition-table values less than ('2020-02-29') ); create table partition_table( col_1 smallint, col_2 char(30), col_3 int, col_4 date not null, col_5 boolean, col_6 nchar(30), col_7 float ) partition by range (col_4) interval ('1 month') ( partition 001_partition_table values less than ('2020-02-29') ); create table partition_table( col_1 smallint, col_2 char(30), col_3 int, col_4 date not null, col_5 boolean, col_6 nchar(30), col_7 float ) partition by range (col_4) interval ('1 month') ( partition partition_table&^% values less than ('2020-02-29') );
<gh_stars>0 INSERT INTO department (id, name) VALUES (1, "Engineer"); INSERT INTO department (id, name) VALUES (2, "Science"); INSERT INTO department (id, name) VALUES (3, "Math"); INSERT INTO department (id, name) VALUES (4, "Art"); INSERT INTO role (id, title, salary, department_id) VALUES (1, "Manager", 42000, 1); INSERT INTO role (id, title, salary, department_id) VALUES (2, "IT specialist", 60000, 1); INSERT INTO role (id, title, salary, department_id) VALUES (3, "Developer", 75000, 1); INSERT INTO role (id, title, salary, department_id) VALUES (4, "Nurse", 65000, 2); INSERT INTO role (id, title, salary, department_id) VALUES (5, "Professor", 200000, 3); INSERT INTO role (id, title, salary, department_id) VALUES (6, "Statistic", 100000, 3); INSERT INTO role (id, title, salary, department_id) VALUES (7, "Human Resource", 80000, 4); INSERT INTO role (id, title, salary, department_id) VALUES (8, "HR director", 100000, 4); INSERT INTO role (id, title, salary, department_id) VALUES (9, "HR Cordinator", 105000, 4); INSERT INTO employee (id, first_name, last_name, role_id, manager_id) VALUES (4, "Charbelle", "Chaz", 3, null); INSERT INTO employee (id, first_name, last_name, role_id, manager_id) VALUES (5, "Sofi", "Hernan", 4, null); INSERT INTO employee (id, first_name, last_name, role_id, manager_id) VALUES (7, "Char", "Dant", 6, null); INSERT INTO employee (id, first_name, last_name, role_id, manager_id) VALUES (10, "Jonathan", "Uong", 9, null); INSERT INTO employee (id, first_name, last_name, role_id, manager_id) VALUES (3, "Melissa", "Arm", 2, 4); INSERT INTO employee (id, first_name, last_name, role_id, manager_id) VALUES (1, "Alla", "Arous", 1, 3); INSERT INTO employee (id, first_name, last_name, role_id, manager_id) VALUES (2, "Rosie", "Cole", 1, 3); INSERT INTO employee (id, first_name, last_name, role_id, manager_id) VALUES (6, "Lianne", "Soon", 5, 7); INSERT INTO employee (id, first_name, last_name, role_id, manager_id) VALUES (8, "Zach", "Soar", 7, 10); INSERT INTO employee (id, first_name, last_name, role_id, manager_id) VALUES (9, "Martin", "Cast", 8, 10);
-- github.com/CodeNameKND14 SELECT distinct CITY from STATION where MOD(id,2) = 0;
UPDATE utbetaling SET neste_paminnelsetidspunkt=now() WHERE id IN ( 'bf8d5ed1-c4f2-400b-896b-717d3f595f86', '7d540021-8562-4cbd-b21e-40f00b142208', 'ae7838b6-3261-4073-9a90-6d4ccc3b0c08', 'f95d11ed-abd3-412a-8f3d-317223b7d6be' );
/*!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 */; /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!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' */; /*Table structure for table `calon_peserta` */ DROP TABLE IF EXISTS `calon_peserta`; /*Table structure for table `kelamin` */ DROP TABLE IF EXISTS `kelamin`; CREATE TABLE `kelamin` ( `id` int(11) NOT NULL, `nama` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*Data for the table `kelamin` */ insert into `kelamin`(`id`,`nama`) values (1,'Laki laki'),(2,'Perempuan'); /*Table structure for table `kota` */ DROP TABLE IF EXISTS `kota`; CREATE TABLE `kota` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nama` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=latin1; /*Data for the table `kota` */ insert into `kota`(`id`,`nama`) values (1,'Malang'),(3,'Blitar'),(4,'Tulungagung'),(17,'Jakarta'),(21,'Surabaya'),(22,'Paris'); /*Table structure for table `oltp_peserta` */ DROP TABLE IF EXISTS `oltp_peserta`; /*Table structure for table `posisi` */ DROP TABLE IF EXISTS `posisi`; CREATE TABLE `posisi` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nama` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; /*Data for the table `posisi` */ insert into `posisi`(`id`,`nama`) values (1,'IT'),(2,'HRD'),(3,'Keuangan'),(4,'Produk'),(5,'Web Developer'),(6,'Tes'); /*Table structure for table `ref_akses` */ /*Table structure for table `ref_diklat` */ DROP TABLE IF EXISTS `ref_diklat`; CREATE TABLE `ref_diklat` ( `id_diklat` int(11) NOT NULL AUTO_INCREMENT, `keterangan` varchar(255) NOT NULL, `tgl_mulai` date DEFAULT NULL, `tgl_selesai` date DEFAULT NULL, `status` varchar(100) DEFAULT NULL, `catatan` text, `flag_status` int(2) DEFAULT NULL, PRIMARY KEY (`id_diklat`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1; /*Data for the table `ref_diklat` */ insert into `ref_diklat`(`id_diklat`,`keterangan`,`tgl_mulai`,`tgl_selesai`,`status`,`catatan`,`flag_status`) values (6,'Diklat ilmu Tanah 1','2017-11-22','2017-11-23','Pendaftaran Ditutup','--',2),(7,'Diklat ABC','2017-11-22','2017-11-23','Sedang Berjalan','Persyaratan:\r\n1.\r\n2.\r\n3.\r\n4.\r\n5.',1); /* Trigger structure for table `oltp_user` */ DELIMITER $$ /*!50003 DROP TRIGGER*//*!50032 IF EXISTS */ /*!50003 `oltp_user_after_ins_trig` */$$ /*!50003 CREATE */ /*!50017 DEFINER = 'root'@'localhost' */ /*!50003 TRIGGER `oltp_user_after_ins_trig` AFTER INSERT ON `oltp_user` FOR EACH ROW BEGIN INSERT INTO oltp_profil (id_user, email) VALUES (new.id_user, new.email, new.no_mobile); END */$$ DELIMITER ; /*Table structure for table `v_user_diklat` */ DROP TABLE IF EXISTS `v_user_diklat`; /*!50001 DROP VIEW IF EXISTS `v_user_diklat` */; /*!50001 DROP TABLE IF EXISTS `v_user_diklat` */; /*!50001 CREATE TABLE `v_user_diklat` ( `id_user` int(11) DEFAULT NULL, `nama` varchar(100) DEFAULT NULL, `umur` int(3) DEFAULT NULL, `alamat` varchar(255) DEFAULT NULL, `email` varchar(50) DEFAULT NULL, `url_dok_ktp` varchar(255) DEFAULT NULL, `url_dok_ijazah` varchar(255) DEFAULT NULL, `no_mobile` varchar(50) DEFAULT NULL, `id_diklat` int(11) DEFAULT NULL, `keterangan` varchar(255) CHARACTER SET latin1, `tgl_mulai` date DEFAULT NULL, `tgl_selesai` date DEFAULT NULL, `status_diklat` varchar(100) CHARACTER SET latin1 DEFAULT NULL, `catatan` text CHARACTER SET latin1, `status_permohonan` int(3) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 */; /*View structure for view v_user_diklat */ /*!50001 DROP TABLE IF EXISTS `v_user_diklat` */; /*!50001 DROP VIEW IF EXISTS `v_user_diklat` */; /*!50001 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_user_diklat` AS (select `a`.`id_user` AS `id_user`,`b`.`nama` AS `nama`,`b`.`umur` AS `umur`,`b`.`alamat` AS `alamat`,`b`.`email` AS `email`,`b`.`url_dok_ktp` AS `url_dok_ktp`,`b`.`url_dok_ijazah` AS `url_dok_ijazah`,`b`.`no_mobile` AS `no_mobile`,`a`.`id_diklat` AS `id_diklat`,`c`.`keterangan` AS `keterangan`,`c`.`tgl_mulai` AS `tgl_mulai`,`c`.`tgl_selesai` AS `tgl_selesai`,`c`.`status` AS `status_diklat`,`c`.`catatan` AS `catatan`,`a`.`status` AS `status_permohonan` from ((`calon_peserta` `a` left join `oltp_profil` `b` on((`a`.`id_user` = `b`.`id_user`))) left join `ref_diklat` `c` on((`a`.`id_diklat` = `c`.`id_diklat`)))) */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
<gh_stars>0 -- Adminer 4.3.1 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `perevents`; CREATE TABLE `perevents` ( `perevent_id` int(11) NOT NULL AUTO_INCREMENT, `uid` varchar(255) NOT NULL, `exec_map` text NOT NULL, `expaired_at` datetime NOT NULL, `created_at` datetime NOT NULL, PRIMARY KEY (`perevent_id`), UNIQUE KEY `uid` (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `perevents` (`perevent_id`, `uid`, `exec_map`, `expaired_at`, `created_at`) VALUES (82, '1', 'addmape', '2017-09-02 17:57:53', '2017-09-02 17:57:53'), (83, '2', 'addmape', '2017-09-02 17:58:08', '2017-09-02 17:58:08'); -- 2017-09-02 13:36:09
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.58.3 -- Waktu pembuatan: 19 Mar 2021 pada 06.41 -- Versi server: 10.4.17-MariaDB -- Versi PHP: 7.3.27 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: `db_laundryci` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_detail_transaksi` -- CREATE TABLE `tb_detail_transaksi` ( `id_detail` int(11) NOT NULL, `id_transaksi` int(11) NOT NULL, `id_paket` int(11) NOT NULL, `qty` double NOT NULL, `keterangan` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_member` -- CREATE TABLE `tb_member` ( `id_member` int(11) NOT NULL, `nama` varchar(100) NOT NULL, `alamat` text NOT NULL, `jenis_kelamin` enum('L','P') NOT NULL, `tlp` varchar(15) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `tb_member` -- INSERT INTO `tb_member` (`id_member`, `nama`, `alamat`, `jenis_kelamin`, `tlp`) VALUES (1, 'panjul', 'Depok', 'L', '088224920697'), (4, 'purnomo', 'Depok - Indonesia', 'L', '12345689'), (5, 'adhi', 'Depok - Indonesia', 'L', '2323232323'), (6, 'siti', 'Jakarta - Indonesia', 'P', '909090909'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_outlet` -- CREATE TABLE `tb_outlet` ( `id_outlet` int(11) NOT NULL, `nama` varchar(100) NOT NULL, `alamat` text NOT NULL, `tlp` varchar(15) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `tb_outlet` -- INSERT INTO `tb_outlet` (`id_outlet`, `nama`, `alamat`, `tlp`) VALUES (6, 'Starbhak Laundry', 'Jakarta', '123456789'), (7, 'Laundry Clean', 'Bandung', '123456789876'), (8, 'laundry bersih', 'Depok', '12345689'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_paket` -- CREATE TABLE `tb_paket` ( `id_paket` int(11) NOT NULL, `id_outlet` int(11) NOT NULL, `jenis` enum('kiloan','selimut','bed_cover','kaos','lain') NOT NULL, `nama_paket` varchar(100) NOT NULL, `harga` int(11) NOT NULL, `diskon` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `tb_paket` -- INSERT INTO `tb_paket` (`id_paket`, `id_outlet`, `jenis`, `nama_paket`, `harga`, `diskon`) VALUES (1, 6, 'kiloan', 'pakaian', 8000, 0), (2, 6, 'kiloan', '1 kg', 7000, 5), (3, 7, 'selimut', 'selimut', 100000, 10), (4, 8, 'kiloan', 'kiloan', 7500, 0), (5, 8, '', 'jas', 150000, 10); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_transaksi` -- CREATE TABLE `tb_transaksi` ( `id_transaksi` int(11) NOT NULL, `id_outlet` int(11) NOT NULL, `id_member` int(11) NOT NULL, `keterangan` text NOT NULL, `nama_paket` varchar(20) NOT NULL, `tgl_order` date NOT NULL, `tgl_bayar` date NOT NULL, `qty` int(11) NOT NULL, `harga` int(11) NOT NULL, `diskon` double NOT NULL, `pajak` int(11) NOT NULL, `status` enum('baru','proses','selesai','diambil') NOT NULL, `total` int(10) NOT NULL, `uang_bayar` int(10) NOT NULL, `kembalian` int(10) NOT NULL, `status_bayar` enum('dibayar','belum_dibayar') NOT NULL, `id_user` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `tb_transaksi` -- INSERT INTO `tb_transaksi` (`id_transaksi`, `id_outlet`, `id_member`, `keterangan`, `nama_paket`, `tgl_order`, `tgl_bayar`, `qty`, `harga`, `diskon`, `pajak`, `status`, `total`, `uang_bayar`, `kembalian`, `status_bayar`, `id_user`) VALUES (3, 7, 1, 'panjul - depok', 'kaos', '2021-03-09', '2021-03-09', 0, 7000, 5, 0, 'baru', 7000, 10000, 3000, 'dibayar', 1), (4, 6, 1, 'panjul - depok', '2', '2021-03-09', '2021-03-09', 1, 7000, 5, 133, 'baru', 6783, 10000, 3217, 'dibayar', 1), (5, 6, 1, 'panjul - depok', '3', '2021-03-10', '2021-03-10', 0, 100000, 10, 1800, 'baru', 91800, 100000, 8200, 'dibayar', 1), (10, 6, 4, 'purnomo - Jakarta', '1', '2021-03-11', '2021-03-11', 10, 8000, 0, 1600, 'baru', 81600, 82000, 400, 'dibayar', 1), (11, 6, 4, 'purno - depok', '1', '2021-03-11', '2021-03-11', 4, 8000, 0, 640, 'proses', 32640, 35000, 2360, 'dibayar', 1), (12, 6, 1, 'njul - padang', '1', '2021-03-11', '2021-03-11', 2, 8000, 0, 320, 'selesai', 16320, 20000, 3680, 'dibayar', 1), (13, 8, 1, 'njul - papua', '4', '2021-03-11', '2021-03-11', 1, 7500, 0, 150, 'baru', 7650, 8000, 350, 'dibayar', 4), (15, 6, 4, 'purnomo - depok', '1', '2021-03-16', '2021-03-16', 1, 8000, 0, 160, 'baru', 8160, 9000, 840, 'dibayar', 1), (16, 8, 6, 'siti - jakarta', '4', '2021-03-16', '2021-03-16', 1, 7500, 0, 150, 'proses', 7650, 8000, 350, 'dibayar', 4), (17, 6, 5, 'adhi - medan', '1', '2021-04-16', '2021-04-16', 1, 8000, 0, 160, 'baru', 8160, 10000, 1840, 'dibayar', 1), (18, 6, 1, 'njul - bandung', '1', '2021-03-16', '2021-03-20', 1, 8000, 0, 160, 'baru', 8160, 0, -8160, 'belum_dibayar', 1), (19, 6, 4, 'purno - Bali', '2', '2021-03-16', '2021-03-21', 1, 7000, 5, 133, 'baru', 6783, 0, -6783, 'belum_dibayar', 1), (20, 6, 1, 'njul - padang', '1', '2021-03-16', '2021-03-16', 3, 8000, 0, 160, 'baru', 24160, 25000, 840, 'dibayar', 1), (21, 6, 6, 'siti - palembang', '1', '2021-03-19', '2021-03-19', 1, 8000, 0, 160, 'baru', 8160, 10000, 1840, 'dibayar', 1); -- -------------------------------------------------------- -- -- Struktur dari tabel `user` -- CREATE TABLE `user` ( `id_user` int(11) NOT NULL, `username` varchar(15) NOT NULL, `email` varchar(30) NOT NULL, `no_telp` varchar(15) NOT NULL, `password` varchar(100) NOT NULL, `id_outlet` int(10) NOT NULL, `status` enum('owner','admin','kasir','') NOT NULL, `image` varchar(100) NOT NULL, `status_login` varchar(10) NOT NULL, `last_seen` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `user` -- INSERT INTO `user` (`id_user`, `username`, `email`, `no_telp`, `password`, `id_outlet`, `status`, `image`, `status_login`, `last_seen`) VALUES (1, 'julius', '<EMAIL>', '02.png', '$2y$10$3lcjIEXILayL8tXCB3Zmf..wiaUhn6Y.UF9ITXJ/z4UrzLMvqFo0G', 6, 'admin', 'lon.png', 'Offline', '2021-03-19 05:37:50'), (3, 'hadi', '<EMAIL>', '121212121', '$2y$10$4.2lnDPUJ1.Ydvi4Q3Sfee0tQHyBZL/cKdg./LqlYWVYBa5KxMuEy', 7, 'owner', '01.png', 'Offline', '2021-03-19 05:40:57'), (4, 'panjul', '<EMAIL>', '2345678865', '1234', 8, 'kasir', 'kisspng-flag-of-the-united-kingdom-royalty-free-english-5abd17eb3475e4_0072361115223418672149.jpg', 'Offline', '2021-03-16 04:11:35'), (5, 'endang', '<EMAIL>', '121212211', '1234', 7, 'admin', 'download_(1).jpg', 'Offline', '2021-03-12 09:25:06'), (6, 'aldi', '<EMAIL>', '2323232321', '1234', 7, 'kasir', 'download.jpg', 'Offline', '2021-03-12 10:13:30'), (7, 'Burhan', '<EMAIL>', '121222121', '1234', 7, 'kasir', 'download_(2).jpg', 'Offline', '2021-03-12 09:25:06'), (8, 'wildan', '<EMAIL>', '12122121121', '$2y$10$fEfhzBUZFtjfjp5O8s/JsuZLaSqgM13u2sl93uVLWEB0oj9SibpFK', 6, 'owner', 'tb1.png', 'Offline', '2021-03-16 10:12:08'), (9, 'bogel', '<EMAIL>', '4123313132', '$2y$10$N2rCXiV2bTy.fA4FY4yS4uP0w0D17q60mkyjwlGlV8pJ40DzEwsI6', 7, 'kasir', 'source.gif', 'Offline', '2021-03-19 05:37:39'); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `tb_detail_transaksi` -- ALTER TABLE `tb_detail_transaksi` ADD PRIMARY KEY (`id_detail`), ADD KEY `id_transaksi` (`id_transaksi`), ADD KEY `id_paket` (`id_paket`); -- -- Indeks untuk tabel `tb_member` -- ALTER TABLE `tb_member` ADD PRIMARY KEY (`id_member`); -- -- Indeks untuk tabel `tb_outlet` -- ALTER TABLE `tb_outlet` ADD PRIMARY KEY (`id_outlet`); -- -- Indeks untuk tabel `tb_paket` -- ALTER TABLE `tb_paket` ADD PRIMARY KEY (`id_paket`), ADD KEY `id_outlet` (`id_outlet`); -- -- Indeks untuk tabel `tb_transaksi` -- ALTER TABLE `tb_transaksi` ADD PRIMARY KEY (`id_transaksi`), ADD KEY `id_user` (`id_user`), ADD KEY `id_outlet` (`id_outlet`), ADD KEY `id_member` (`id_member`); -- -- Indeks untuk tabel `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id_user`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `tb_detail_transaksi` -- ALTER TABLE `tb_detail_transaksi` MODIFY `id_detail` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `tb_member` -- ALTER TABLE `tb_member` MODIFY `id_member` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT untuk tabel `tb_outlet` -- ALTER TABLE `tb_outlet` MODIFY `id_outlet` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT untuk tabel `tb_paket` -- ALTER TABLE `tb_paket` MODIFY `id_paket` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT untuk tabel `tb_transaksi` -- ALTER TABLE `tb_transaksi` MODIFY `id_transaksi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; -- -- AUTO_INCREMENT untuk tabel `user` -- ALTER TABLE `user` MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables) -- -- -- Ketidakleluasaan untuk tabel `tb_detail_transaksi` -- ALTER TABLE `tb_detail_transaksi` ADD CONSTRAINT `tb_detail_transaksi_ibfk_1` FOREIGN KEY (`id_transaksi`) REFERENCES `tb_transaksi` (`id_transaksi`), ADD CONSTRAINT `tb_detail_transaksi_ibfk_2` FOREIGN KEY (`id_paket`) REFERENCES `tb_paket` (`id_paket`); -- -- Ketidakleluasaan untuk tabel `tb_paket` -- ALTER TABLE `tb_paket` ADD CONSTRAINT `tb_paket_ibfk_1` FOREIGN KEY (`id_outlet`) REFERENCES `tb_outlet` (`id_outlet`); -- -- Ketidakleluasaan untuk tabel `tb_transaksi` -- ALTER TABLE `tb_transaksi` ADD CONSTRAINT `tb_transaksi_ibfk_1` FOREIGN KEY (`id_user`) REFERENCES `user` (`id_user`), ADD CONSTRAINT `tb_transaksi_ibfk_2` FOREIGN KEY (`id_outlet`) REFERENCES `tb_outlet` (`id_outlet`), ADD CONSTRAINT `tb_transaksi_ibfk_3` FOREIGN KEY (`id_member`) REFERENCES `tb_member` (`id_member`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<gh_stars>0 UPDATE sys_menu SET parent_id = NULL WHERE parent_id = 0;
GRANT SELECT ON pg_table_size TO public; GRANT SELECT ON pg_db_size TO public; GRANT SELECT ON pg_cached_size TO public; GRANT SELECT ON pg_sql TO public;
<reponame>tushartushar/dbSmellsData CREATE TABLE #{PGconn.quote_ident(table.name) CREATE TABLE numeric_types_basics ( id int, f_tinyint TINYINT, f_smallint SMALLINT, f_mediumint MEDIUMINT, f_int INT, f_integer INTEGER, f_bigint BIGINT, f_real REAL, f_double DOUBLE, f_float FLOAT, f_decimal DECIMAL, f_numeric NUMERIC) SELECT COUNT(*) FROM `#{name}` INSERT INTO numeric_types_basics VALUES(1,1,1,1,1,1,1,1,1,1,1,1)
<filename>api/sql/method.sql WITH full_thing AS ( SELECT -- not user editable id, EXTRACT(EPOCH FROM post_date) as post_date, EXTRACT(EPOCH FROM updated_date) as updated_date, featured, completeness, -- user-contributed content texts.title, texts.description, texts.body, -- media links photos, files, videos, links, audio, -- key values facilitators, facetoface_online_or_both, public_spectrum, open_limited, recruitment_method, level_polarization, level_complexity, -- key lists method_types, number_of_participants, scope_of_influence, participants_interactions, decision_methods, if_voting, purpose_method, verified, reviewed_at, reviewed_by, COALESCE(get_object_title_list(collections, 'en', methods.original_language), '{}') as collections FROM methods, get_localized_texts_fallback(methods.id, 'en', methods.original_language) AS texts ${facets:raw} ORDER BY ${sortby:raw} ${orderby:raw} LIMIT ${limit} OFFSET ${offset} ) SELECT to_json(full_thing.*) results FROM full_thing ;
<gh_stars>1-10 CREATE USER [aer-reader] WITH PASSWORD = '<PASSWORD>!'; GO; GRANT CONNECT TO [aer-reader];
ALTER TABLE "public"."turn_scorings" ADD COLUMN "game_id" uuid; ALTER TABLE "public"."turn_scorings" ALTER COLUMN "game_id" DROP NOT NULL; ALTER TABLE "public"."turn_scorings" ADD CONSTRAINT turn_scorings_game_id_fkey FOREIGN KEY (game_id) REFERENCES "public"."games" (id) ON DELETE restrict ON UPDATE restrict;
SELECT EmployeeID, FirstName,LastName,d.[Name] AS DepartmentName FROM Employees e JOIN Departments d ON e.DepartmentID = d.DepartmentID WHERE d.[Name] = 'Sales' ORDER BY EmployeeID
<gh_stars>1-10 IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_UserGroup_ExternalId' AND object_id = OBJECT_ID('uCommerce_UserGroup')) BEGIN DROP INDEX [IX_uCommerce_UserGroup_ExternalId] ON [dbo].[uCommerce_UserGroup]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_Category_ProductCatalogId' AND object_id = OBJECT_ID('uCommerce_Category')) BEGIN DROP INDEX [IX_uCommerce_Category_ProductCatalogId] ON [dbo].[uCommerce_Category]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_CategoryDescription_CategoryId' AND object_id = OBJECT_ID('uCommerce_CategoryDescription')) BEGIN DROP INDEX [IX_uCommerce_CategoryDescription_CategoryId] ON [dbo].[uCommerce_CategoryDescription]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_CategoryProductRelation_ProductId' AND object_id = OBJECT_ID('uCommerce_CategoryProductRelation')) BEGIN DROP INDEX [IX_uCommerce_CategoryProductRelation_ProductId] ON [dbo].[uCommerce_CategoryProductRelation]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_CategoryProperty_CategoryId' AND object_id = OBJECT_ID('uCommerce_CategoryProperty')) BEGIN DROP INDEX [IX_uCommerce_CategoryProperty_CategoryId] ON [dbo].[uCommerce_CategoryProperty]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_Discount_OrderId' AND object_id = OBJECT_ID('uCommerce_Discount')) BEGIN DROP INDEX [IX_uCommerce_Discount_OrderId] ON [dbo].[uCommerce_Discount]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_OrderLine_OrderId' AND object_id = OBJECT_ID('uCommerce_OrderLine')) BEGIN DROP INDEX [IX_uCommerce_OrderLine_OrderId] ON [dbo].[uCommerce_OrderLine]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_OrderLine_ShipmentId' AND object_id = OBJECT_ID('uCommerce_OrderLine')) BEGIN DROP INDEX [IX_uCommerce_OrderLine_ShipmentId] ON [dbo].[uCommerce_OrderLine]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_OrderStatusAudit_OrderId' AND object_id = OBJECT_ID('uCommerce_OrderStatusAudit')) BEGIN DROP INDEX [IX_uCommerce_OrderStatusAudit_OrderId] ON [dbo].[uCommerce_OrderStatusAudit]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_PriceGroupPrice_PriceGroupId' AND object_id = OBJECT_ID('uCommerce_PriceGroupPrice')) BEGIN DROP INDEX [IX_uCommerce_PriceGroupPrice_PriceGroupId] ON [dbo].[uCommerce_PriceGroupPrice]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_Shipment_OrderId' AND object_id = OBJECT_ID('uCommerce_Shipment')) BEGIN DROP INDEX [IX_uCommerce_Shipment_OrderId] ON [dbo].[uCommerce_Shipment]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_AdminPage' AND object_id = OBJECT_ID('uCommerce_AdminPage')) BEGIN DROP INDEX [IX_AdminPage] ON [dbo].[uCommerce_AdminPage]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_Campaign' AND object_id = OBJECT_ID('uCommerce_Campaign')) BEGIN DROP INDEX [IX_uCommerce_Campaign] ON [dbo].[uCommerce_Campaign]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Category' AND object_id = OBJECT_ID('uCommerce_Category')) BEGIN DROP INDEX [IX_Category] ON [dbo].[uCommerce_Category]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_CategoryProductRelation' AND object_id = OBJECT_ID('uCommerce_CategoryProductRelation')) BEGIN DROP INDEX [IX_CategoryProductRelation] ON [dbo].[uCommerce_CategoryProductRelation]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_Definition' AND object_id = OBJECT_ID('uCommerce_Definition')) BEGIN DROP INDEX [IX_uCommerce_Definition] ON [dbo].[uCommerce_Definition]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_OrderNumbers' AND object_id = OBJECT_ID('uCommerce_OrderNumberSerie')) BEGIN DROP INDEX [IX_OrderNumbers] ON [dbo].[uCommerce_OrderNumberSerie]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_OrderProperty' AND object_id = OBJECT_ID('uCommerce_OrderProperty')) BEGIN DROP INDEX [IX_uCommerce_OrderProperty] ON [dbo].[uCommerce_OrderProperty]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='uCommerce_OrderProperty_OrderLineId' AND object_id = OBJECT_ID('uCommerce_OrderProperty')) BEGIN DROP INDEX [uCommerce_OrderProperty_OrderLineId] ON [dbo].[uCommerce_OrderProperty]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Product_UniqueSkuAndVariantSku' AND object_id = OBJECT_ID('uCommerce_Product')) BEGIN DROP INDEX [IX_Product_UniqueSkuAndVariantSku] ON [dbo].[uCommerce_Product]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_ProductCatalog_UniqueName' AND object_id = OBJECT_ID('uCommerce_ProductCatalog')) BEGIN DROP INDEX [IX_ProductCatalog_UniqueName] ON [dbo].[uCommerce_ProductCatalog]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='uCommerce_NonClusteredIndex_ProductDescriptionId' AND object_id = OBJECT_ID('uCommerce_ProductDescriptionProperty')) BEGIN DROP INDEX [uCommerce_NonClusteredIndex_ProductDescriptionId] ON [dbo].[uCommerce_ProductDescriptionProperty]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_ProductRelation' AND object_id = OBJECT_ID('uCommerce_ProductRelation')) BEGIN DROP INDEX [IX_uCommerce_ProductRelation] ON [dbo].[uCommerce_ProductRelation]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_ProductReview' AND object_id = OBJECT_ID('uCommerce_ProductReview')) BEGIN DROP INDEX [IX_uCommerce_ProductReview] ON [dbo].[uCommerce_ProductReview]; END GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Order' AND object_id = OBJECT_ID('uCommerce_PurchaseOrder')) BEGIN DROP INDEX [IX_Order] ON [dbo].[uCommerce_PurchaseOrder]; END GO ALTER TABLE [dbo].[uCommerce_EntityUiDescription] DROP CONSTRAINT [FK_uCommerce_EntityUiDescription_uCommerce_EntityUi]; GO IF EXISTS(SELECT * FROM sys.indexes WHERE name='IX_uCommerce_EntityUi_Type' AND object_id = OBJECT_ID('uCommerce_EntityUi')) BEGIN DROP INDEX [IX_uCommerce_EntityUi_Type] ON [dbo].[uCommerce_EntityUi]; END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Unique_CategoryDescription_CultureCode_CategoryId]') AND type in (N'UQ')) BEGIN ALTER TABLE [dbo].[uCommerce_CategoryDescription] DROP CONSTRAINT [Unique_CategoryDescription_CultureCode_CategoryId] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Unique_CategoryId_ProductId]') AND type in (N'UQ')) BEGIN ALTER TABLE [dbo].[uCommerce_CategoryProductRelation] DROP CONSTRAINT [Unique_CategoryId_ProductId] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[UX_CategoryProperty_CategoryId_CultureCode_DefinitionFieldId]') AND type in (N'UQ')) BEGIN ALTER TABLE [dbo].[uCommerce_CategoryProperty] DROP CONSTRAINT [UX_CategoryProperty_CategoryId_CultureCode_DefinitionFieldId] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PaymentMethodProperty_Unique_PaymentMethodId_DefinitionFieldId]') AND type in (N'UQ')) BEGIN ALTER TABLE [dbo].[uCommerce_PaymentMethodProperty] DROP CONSTRAINT [PaymentMethodProperty_Unique_PaymentMethodId_DefinitionFieldId] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Unique_Permission_UserId_RoleId]') AND type in (N'UQ')) BEGIN ALTER TABLE [dbo].[uCommerce_Permission] DROP CONSTRAINT [Unique_Permission_UserId_RoleId] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Unique_ProductId_PriceGroupId_PriceGroupPrice]') AND type in (N'UQ')) BEGIN ALTER TABLE [dbo].[uCommerce_PriceGroupPrice] DROP CONSTRAINT [Unique_ProductId_PriceGroupId_PriceGroupPrice] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Unique_ProductDefinitionFieldDescription_CultureCode_ProductDefintionFieldId]') AND type in (N'UQ')) BEGIN ALTER TABLE [dbo].[uCommerce_ProductDefinitionFieldDescription] DROP CONSTRAINT [Unique_ProductDefinitionFieldDescription_CultureCode_ProductDefintionFieldId] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[IX_uCommerce_ProductDescription_ProductId_CultureCode]') AND type in (N'UQ')) BEGIN ALTER TABLE [dbo].[uCommerce_ProductDescription] DROP CONSTRAINT [IX_uCommerce_ProductDescription_ProductId_CultureCode] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ProductDescriptionProperty_Unique_ProductDescriptionId_ProductDefinitionFieldId]') AND type in (N'UQ')) BEGIN ALTER TABLE [dbo].[uCommerce_ProductDescriptionProperty] DROP CONSTRAINT [ProductDescriptionProperty_Unique_ProductDescriptionId_ProductDefinitionFieldId] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Unique_ProductProperty_ProductId_ProductDefinitionFieldId]') AND type in (N'UQ')) BEGIN ALTER TABLE [dbo].[uCommerce_ProductProperty] DROP CONSTRAINT [Unique_ProductProperty_ProductId_ProductDefinitionFieldId] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Unique_User_External_Id]') AND type in (N'UQ')) BEGIN ALTER TABLE [dbo].[uCommerce_User] DROP CONSTRAINT [Unique_User_External_Id] END GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Address]') AND name = N'IX_uCommerce_Address_CountryId') BEGIN DROP INDEX [IX_uCommerce_Address_CountryId] ON [dbo].[uCommerce_Address]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Address_CountryId] ON [dbo].[uCommerce_Address](CountryId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Address]') AND name = N'IX_uCommerce_Address_CustomerId') BEGIN DROP INDEX [IX_uCommerce_Address_CustomerId] ON [dbo].[uCommerce_Address]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Address_CustomerId] ON [dbo].[uCommerce_Address](CustomerId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_AdminPage]') AND name = N'IX_uCommerce_AdminPage_FullName') BEGIN DROP INDEX [IX_uCommerce_AdminPage_FullName] ON [dbo].[uCommerce_AdminPage]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_AdminPage_FullName] ON [dbo].[uCommerce_AdminPage](FullName ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_AdminTab]') AND name = N'IX_uCommerce_AdminTab_AdminPageId') BEGIN DROP INDEX [IX_uCommerce_AdminTab_AdminPageId] ON [dbo].[uCommerce_AdminTab]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_AdminTab_AdminPageId] ON [dbo].[uCommerce_AdminTab](AdminPageId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_AdminTab]') AND name = N'IX_uCommerce_AdminTab_Enabled') BEGIN DROP INDEX [IX_uCommerce_AdminTab_Enabled] ON [dbo].[uCommerce_AdminTab]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_AdminTab_Enabled] ON [dbo].[uCommerce_AdminTab](Enabled ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_AdminTab]') AND name = N'IX_uCommerce_AdminTab_MultiLingual') BEGIN DROP INDEX [IX_uCommerce_AdminTab_MultiLingual] ON [dbo].[uCommerce_AdminTab]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_AdminTab_MultiLingual] ON [dbo].[uCommerce_AdminTab](MultiLingual ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_AdminTab]') AND name = N'IX_uCommerce_AdminTab_SortOrder') BEGIN DROP INDEX [IX_uCommerce_AdminTab_SortOrder] ON [dbo].[uCommerce_AdminTab]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_AdminTab_SortOrder] ON [dbo].[uCommerce_AdminTab](SortOrder ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_AppSystemVersion]') AND name = N'IX_uCommerce_AppSystemVersion_SchemaVersion') BEGIN DROP INDEX [IX_uCommerce_AppSystemVersion_SchemaVersion] ON [dbo].[uCommerce_AppSystemVersion]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_AppSystemVersion_SchemaVersion] ON [dbo].[uCommerce_AppSystemVersion](SchemaVersion ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Award]') AND name = N'IX_uCommerce_Award_CampaignItemId') BEGIN DROP INDEX [IX_uCommerce_Award_CampaignItemId] ON [dbo].[uCommerce_Award]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Award_CampaignItemId] ON [dbo].[uCommerce_Award](CampaignItemId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Campaign]') AND name = N'IX_uCommerce_Campaign_Deleted') BEGIN DROP INDEX [IX_uCommerce_Campaign_Deleted] ON [dbo].[uCommerce_Campaign]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Campaign_Deleted] ON [dbo].[uCommerce_Campaign](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Campaign]') AND name = N'IX_uCommerce_Campaign_Enabled') BEGIN DROP INDEX [IX_uCommerce_Campaign_Enabled] ON [dbo].[uCommerce_Campaign]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Campaign_Enabled] ON [dbo].[uCommerce_Campaign](Enabled ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Campaign]') AND name = N'IX_uCommerce_Campaign_EndsOn') BEGIN DROP INDEX [IX_uCommerce_Campaign_EndsOn] ON [dbo].[uCommerce_Campaign]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Campaign_EndsOn] ON [dbo].[uCommerce_Campaign](EndsOn ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Campaign]') AND name = N'IX_uCommerce_Campaign_Priority') BEGIN DROP INDEX [IX_uCommerce_Campaign_Priority] ON [dbo].[uCommerce_Campaign]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Campaign_Priority] ON [dbo].[uCommerce_Campaign](Priority ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Campaign]') AND name = N'IX_uCommerce_Campaign_StartsOn') BEGIN DROP INDEX [IX_uCommerce_Campaign_StartsOn] ON [dbo].[uCommerce_Campaign]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Campaign_StartsOn] ON [dbo].[uCommerce_Campaign](StartsOn ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CampaignItem]') AND name = N'IX_uCommerce_CampaignItem_AllowNextCampaignItems') BEGIN DROP INDEX [IX_uCommerce_CampaignItem_AllowNextCampaignItems] ON [dbo].[uCommerce_CampaignItem]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CampaignItem_AllowNextCampaignItems] ON [dbo].[uCommerce_CampaignItem](AllowNextCampaignItems ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CampaignItem]') AND name = N'IX_uCommerce_CampaignItem_AnyTargetAdvertises') BEGIN DROP INDEX [IX_uCommerce_CampaignItem_AnyTargetAdvertises] ON [dbo].[uCommerce_CampaignItem]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CampaignItem_AnyTargetAdvertises] ON [dbo].[uCommerce_CampaignItem](AnyTargetAdvertises ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CampaignItem]') AND name = N'IX_uCommerce_CampaignItem_AnyTargetAppliesAwards') BEGIN DROP INDEX [IX_uCommerce_CampaignItem_AnyTargetAppliesAwards] ON [dbo].[uCommerce_CampaignItem]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CampaignItem_AnyTargetAppliesAwards] ON [dbo].[uCommerce_CampaignItem](AnyTargetAppliesAwards ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CampaignItem]') AND name = N'IX_uCommerce_CampaignItem_CampaignId') BEGIN DROP INDEX [IX_uCommerce_CampaignItem_CampaignId] ON [dbo].[uCommerce_CampaignItem]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CampaignItem_CampaignId] ON [dbo].[uCommerce_CampaignItem](CampaignId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CampaignItem]') AND name = N'IX_uCommerce_CampaignItem_DefinitionId') BEGIN DROP INDEX [IX_uCommerce_CampaignItem_DefinitionId] ON [dbo].[uCommerce_CampaignItem]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CampaignItem_DefinitionId] ON [dbo].[uCommerce_CampaignItem](DefinitionId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CampaignItem]') AND name = N'IX_uCommerce_CampaignItem_Deleted') BEGIN DROP INDEX [IX_uCommerce_CampaignItem_Deleted] ON [dbo].[uCommerce_CampaignItem]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CampaignItem_Deleted] ON [dbo].[uCommerce_CampaignItem](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CampaignItem]') AND name = N'IX_uCommerce_CampaignItem_Enabled') BEGIN DROP INDEX [IX_uCommerce_CampaignItem_Enabled] ON [dbo].[uCommerce_CampaignItem]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CampaignItem_Enabled] ON [dbo].[uCommerce_CampaignItem](Enabled ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CampaignItem]') AND name = N'IX_uCommerce_CampaignItem_Priority') BEGIN DROP INDEX [IX_uCommerce_CampaignItem_Priority] ON [dbo].[uCommerce_CampaignItem]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CampaignItem_Priority] ON [dbo].[uCommerce_CampaignItem](Priority ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CampaignItemProperty]') AND name = N'IX_uCommerce_CampaignItemProperty_CampaignItemId') BEGIN DROP INDEX [IX_uCommerce_CampaignItemProperty_CampaignItemId] ON [dbo].[uCommerce_CampaignItemProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CampaignItemProperty_CampaignItemId] ON [dbo].[uCommerce_CampaignItemProperty](CampaignItemId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CampaignItemProperty]') AND name = N'IX_uCommerce_CampaignItemProperty_CultureCode') BEGIN DROP INDEX [IX_uCommerce_CampaignItemProperty_CultureCode] ON [dbo].[uCommerce_CampaignItemProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CampaignItemProperty_CultureCode] ON [dbo].[uCommerce_CampaignItemProperty](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CampaignItemProperty]') AND name = N'IX_uCommerce_CampaignItemProperty_DefinitionFieldId') BEGIN DROP INDEX [IX_uCommerce_CampaignItemProperty_DefinitionFieldId] ON [dbo].[uCommerce_CampaignItemProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CampaignItemProperty_DefinitionFieldId] ON [dbo].[uCommerce_CampaignItemProperty](DefinitionFieldId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Category]') AND name = N'IX_uCommerce_Category_ParentCategoryId') BEGIN DROP INDEX [IX_uCommerce_Category_ParentCategoryId] ON [dbo].[uCommerce_Category]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Category_ParentCategoryId] ON [dbo].[uCommerce_Category](ParentCategoryId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Category]') AND name = N'IX_uCommerce_Category_ProductCatalogId') BEGIN DROP INDEX [IX_uCommerce_Category_ProductCatalogId] ON [dbo].[uCommerce_Category]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Category_ProductCatalogId] ON [dbo].[uCommerce_Category](ProductCatalogId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Category]') AND name = N'IX_uCommerce_Category_DefinitionId') BEGIN DROP INDEX [IX_uCommerce_Category_DefinitionId] ON [dbo].[uCommerce_Category]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Category_DefinitionId] ON [dbo].[uCommerce_Category](DefinitionId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Category]') AND name = N'IX_uCommerce_Category_Deleted') BEGIN DROP INDEX [IX_uCommerce_Category_Deleted] ON [dbo].[uCommerce_Category]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Category_Deleted] ON [dbo].[uCommerce_Category](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Category]') AND name = N'IX_uCommerce_Category_DisplayOnSite') BEGIN DROP INDEX [IX_uCommerce_Category_DisplayOnSite] ON [dbo].[uCommerce_Category]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Category_DisplayOnSite] ON [dbo].[uCommerce_Category](DisplayOnSite ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Category]') AND name = N'IX_uCommerce_Category_Guid') BEGIN DROP INDEX [IX_uCommerce_Category_Guid] ON [dbo].[uCommerce_Category]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Category_Guid] ON [dbo].[uCommerce_Category](Guid ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Category]') AND name = N'IX_uCommerce_Category_Name') BEGIN DROP INDEX [IX_uCommerce_Category_Name] ON [dbo].[uCommerce_Category]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Category_Name] ON [dbo].[uCommerce_Category](Name ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Category]') AND name = N'IX_uCommerce_Category_SortOrder') BEGIN DROP INDEX [IX_uCommerce_Category_SortOrder] ON [dbo].[uCommerce_Category]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Category_SortOrder] ON [dbo].[uCommerce_Category](SortOrder ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CategoryDescription]') AND name = N'IX_uCommerce_CategoryDescription_CategoryId') BEGIN DROP INDEX [IX_uCommerce_CategoryDescription_CategoryId] ON [dbo].[uCommerce_CategoryDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CategoryDescription_CategoryId] ON [dbo].[uCommerce_CategoryDescription](CategoryId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CategoryDescription]') AND name = N'IX_uCommerce_CategoryDescription_ContentId') BEGIN DROP INDEX [IX_uCommerce_CategoryDescription_ContentId] ON [dbo].[uCommerce_CategoryDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CategoryDescription_ContentId] ON [dbo].[uCommerce_CategoryDescription](ContentId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CategoryDescription]') AND name = N'IX_uCommerce_CategoryDescription_CultureCode') BEGIN DROP INDEX [IX_uCommerce_CategoryDescription_CultureCode] ON [dbo].[uCommerce_CategoryDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CategoryDescription_CultureCode] ON [dbo].[uCommerce_CategoryDescription](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CategoryDescription]') AND name = N'IX_uCommerce_CategoryDescription_RenderAsContent') BEGIN DROP INDEX [IX_uCommerce_CategoryDescription_RenderAsContent] ON [dbo].[uCommerce_CategoryDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CategoryDescription_RenderAsContent] ON [dbo].[uCommerce_CategoryDescription](RenderAsContent ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CategoryProductRelation]') AND name = N'IX_uCommerce_CategoryProductRelation_ProductId') BEGIN DROP INDEX [IX_uCommerce_CategoryProductRelation_ProductId] ON [dbo].[uCommerce_CategoryProductRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CategoryProductRelation_ProductId] ON [dbo].[uCommerce_CategoryProductRelation](ProductId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CategoryProductRelation]') AND name = N'IX_uCommerce_CategoryProductRelation_CategoryId') BEGIN DROP INDEX [IX_uCommerce_CategoryProductRelation_CategoryId] ON [dbo].[uCommerce_CategoryProductRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CategoryProductRelation_CategoryId] ON [dbo].[uCommerce_CategoryProductRelation](CategoryId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CategoryProductRelation]') AND name = N'IX_uCommerce_CategoryProductRelation_SortOrder') BEGIN DROP INDEX [IX_uCommerce_CategoryProductRelation_SortOrder] ON [dbo].[uCommerce_CategoryProductRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CategoryProductRelation_SortOrder] ON [dbo].[uCommerce_CategoryProductRelation](SortOrder ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CategoryProperty]') AND name = N'IX_uCommerce_CategoryProperty_CategoryId') BEGIN DROP INDEX [IX_uCommerce_CategoryProperty_CategoryId] ON [dbo].[uCommerce_CategoryProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CategoryProperty_CategoryId] ON [dbo].[uCommerce_CategoryProperty](CategoryId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CategoryProperty]') AND name = N'IX_uCommerce_CategoryProperty_CultureCode') BEGIN DROP INDEX [IX_uCommerce_CategoryProperty_CultureCode] ON [dbo].[uCommerce_CategoryProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CategoryProperty_CultureCode] ON [dbo].[uCommerce_CategoryProperty](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CategoryProperty]') AND name = N'IX_uCommerce_CategoryProperty_DefinitionFieldId') BEGIN DROP INDEX [IX_uCommerce_CategoryProperty_DefinitionFieldId] ON [dbo].[uCommerce_CategoryProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_CategoryProperty_DefinitionFieldId] ON [dbo].[uCommerce_CategoryProperty](DefinitionFieldId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Country]') AND name = N'IX_uCommerce_Country_Culture') BEGIN DROP INDEX [IX_uCommerce_Country_Culture] ON [dbo].[uCommerce_Country]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Country_Culture] ON [dbo].[uCommerce_Country](Culture ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Country]') AND name = N'IX_uCommerce_Country_Deleted') BEGIN DROP INDEX [IX_uCommerce_Country_Deleted] ON [dbo].[uCommerce_Country]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Country_Deleted] ON [dbo].[uCommerce_Country](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Currency]') AND name = N'IX_uCommerce_Currency_Deleted') BEGIN DROP INDEX [IX_uCommerce_Currency_Deleted] ON [dbo].[uCommerce_Currency]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Currency_Deleted] ON [dbo].[uCommerce_Currency](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Currency]') AND name = N'IX_uCommerce_Currency_Guid') BEGIN DROP INDEX [IX_uCommerce_Currency_Guid] ON [dbo].[uCommerce_Currency]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Currency_Guid] ON [dbo].[uCommerce_Currency](Guid ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Currency]') AND name = N'IX_uCommerce_Currency_ISOCode') BEGIN DROP INDEX [IX_uCommerce_Currency_ISOCode] ON [dbo].[uCommerce_Currency]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Currency_ISOCode] ON [dbo].[uCommerce_Currency](ISOCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Customer]') AND name = N'IX_uCommerce_Customer_MemberId') BEGIN DROP INDEX [IX_uCommerce_Customer_MemberId] ON [dbo].[uCommerce_Customer]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Customer_MemberId] ON [dbo].[uCommerce_Customer](MemberId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DataType]') AND name = N'IX_uCommerce_DataType_BuiltIn') BEGIN DROP INDEX [IX_uCommerce_DataType_BuiltIn] ON [dbo].[uCommerce_DataType]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DataType_BuiltIn] ON [dbo].[uCommerce_DataType](BuiltIn ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DataType]') AND name = N'IX_uCommerce_DataType_Deleted') BEGIN DROP INDEX [IX_uCommerce_DataType_Deleted] ON [dbo].[uCommerce_DataType]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DataType_Deleted] ON [dbo].[uCommerce_DataType](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DataType]') AND name = N'IX_uCommerce_DataType_Guid') BEGIN DROP INDEX [IX_uCommerce_DataType_Guid] ON [dbo].[uCommerce_DataType]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DataType_Guid] ON [dbo].[uCommerce_DataType](Guid ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DataType]') AND name = N'IX_uCommerce_DataType_Nullable') BEGIN DROP INDEX [IX_uCommerce_DataType_Nullable] ON [dbo].[uCommerce_DataType]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DataType_Nullable] ON [dbo].[uCommerce_DataType](Nullable ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DataType]') AND name = N'IX_uCommerce_DataType_TypeName') BEGIN DROP INDEX [IX_uCommerce_DataType_TypeName] ON [dbo].[uCommerce_DataType]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DataType_TypeName] ON [dbo].[uCommerce_DataType](TypeName ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DataTypeEnum]') AND name = N'IX_uCommerce_DataTypeEnum_DataTypeId') BEGIN DROP INDEX [IX_uCommerce_DataTypeEnum_DataTypeId] ON [dbo].[uCommerce_DataTypeEnum]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DataTypeEnum_DataTypeId] ON [dbo].[uCommerce_DataTypeEnum](DataTypeId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DataTypeEnum]') AND name = N'IX_uCommerce_DataTypeEnum_Deleted') BEGIN DROP INDEX [IX_uCommerce_DataTypeEnum_Deleted] ON [dbo].[uCommerce_DataTypeEnum]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DataTypeEnum_Deleted] ON [dbo].[uCommerce_DataTypeEnum](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DataTypeEnum]') AND name = N'IX_uCommerce_DataTypeEnum_Guid') BEGIN DROP INDEX [IX_uCommerce_DataTypeEnum_Guid] ON [dbo].[uCommerce_DataTypeEnum]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DataTypeEnum_Guid] ON [dbo].[uCommerce_DataTypeEnum](Guid ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DataTypeEnum]') AND name = N'IX_uCommerce_DataTypeEnum_SortOrder') BEGIN DROP INDEX [IX_uCommerce_DataTypeEnum_SortOrder] ON [dbo].[uCommerce_DataTypeEnum]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DataTypeEnum_SortOrder] ON [dbo].[uCommerce_DataTypeEnum](SortOrder ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DataTypeEnumDescription]') AND name = N'IX_uCommerce_DataTypeEnumDescription_CultureCode') BEGIN DROP INDEX [IX_uCommerce_DataTypeEnumDescription_CultureCode] ON [dbo].[uCommerce_DataTypeEnumDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DataTypeEnumDescription_CultureCode] ON [dbo].[uCommerce_DataTypeEnumDescription](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DataTypeEnumDescription]') AND name = N'IX_uCommerce_DataTypeEnumDescription_DataTypeEnumId') BEGIN DROP INDEX [IX_uCommerce_DataTypeEnumDescription_DataTypeEnumId] ON [dbo].[uCommerce_DataTypeEnumDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DataTypeEnumDescription_DataTypeEnumId] ON [dbo].[uCommerce_DataTypeEnumDescription](DataTypeEnumId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Definition]') AND name = N'IX_uCommerce_Definition_BuiltIn') BEGIN DROP INDEX [IX_uCommerce_Definition_BuiltIn] ON [dbo].[uCommerce_Definition]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Definition_BuiltIn] ON [dbo].[uCommerce_Definition](BuiltIn ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Definition]') AND name = N'IX_uCommerce_Definition_DefinitionTypeId') BEGIN DROP INDEX [IX_uCommerce_Definition_DefinitionTypeId] ON [dbo].[uCommerce_Definition]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Definition_DefinitionTypeId] ON [dbo].[uCommerce_Definition](DefinitionTypeId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Definition]') AND name = N'IX_uCommerce_Definition_Deleted') BEGIN DROP INDEX [IX_uCommerce_Definition_Deleted] ON [dbo].[uCommerce_Definition]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Definition_Deleted] ON [dbo].[uCommerce_Definition](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Definition]') AND name = N'IX_uCommerce_Definition_Guid') BEGIN DROP INDEX [IX_uCommerce_Definition_Guid] ON [dbo].[uCommerce_Definition]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Definition_Guid] ON [dbo].[uCommerce_Definition](Guid ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Definition]') AND name = N'IX_uCommerce_Definition_SortOrder') BEGIN DROP INDEX [IX_uCommerce_Definition_SortOrder] ON [dbo].[uCommerce_Definition]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Definition_SortOrder] ON [dbo].[uCommerce_Definition](SortOrder ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionField]') AND name = N'IX_uCommerce_DefinitionField_BuiltIn') BEGIN DROP INDEX [IX_uCommerce_DefinitionField_BuiltIn] ON [dbo].[uCommerce_DefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionField_BuiltIn] ON [dbo].[uCommerce_DefinitionField](BuiltIn ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionField]') AND name = N'IX_uCommerce_DefinitionField_DataTypeId') BEGIN DROP INDEX [IX_uCommerce_DefinitionField_DataTypeId] ON [dbo].[uCommerce_DefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionField_DataTypeId] ON [dbo].[uCommerce_DefinitionField](DataTypeId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionField]') AND name = N'IX_uCommerce_DefinitionField_DefinitionId') BEGIN DROP INDEX [IX_uCommerce_DefinitionField_DefinitionId] ON [dbo].[uCommerce_DefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionField_DefinitionId] ON [dbo].[uCommerce_DefinitionField](DefinitionId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionField]') AND name = N'IX_uCommerce_DefinitionField_Deleted') BEGIN DROP INDEX [IX_uCommerce_DefinitionField_Deleted] ON [dbo].[uCommerce_DefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionField_Deleted] ON [dbo].[uCommerce_DefinitionField](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionField]') AND name = N'IX_uCommerce_DefinitionField_DisplayOnSite') BEGIN DROP INDEX [IX_uCommerce_DefinitionField_DisplayOnSite] ON [dbo].[uCommerce_DefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionField_DisplayOnSite] ON [dbo].[uCommerce_DefinitionField](DisplayOnSite ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionField]') AND name = N'IX_uCommerce_DefinitionField_Guid') BEGIN DROP INDEX [IX_uCommerce_DefinitionField_Guid] ON [dbo].[uCommerce_DefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionField_Guid] ON [dbo].[uCommerce_DefinitionField](Guid ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionField]') AND name = N'IX_uCommerce_DefinitionField_Multilingual') BEGIN DROP INDEX [IX_uCommerce_DefinitionField_Multilingual] ON [dbo].[uCommerce_DefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionField_Multilingual] ON [dbo].[uCommerce_DefinitionField](Multilingual ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionField]') AND name = N'IX_uCommerce_DefinitionField_RenderInEditor') BEGIN DROP INDEX [IX_uCommerce_DefinitionField_RenderInEditor] ON [dbo].[uCommerce_DefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionField_RenderInEditor] ON [dbo].[uCommerce_DefinitionField](RenderInEditor ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionField]') AND name = N'IX_uCommerce_DefinitionField_Searchable') BEGIN DROP INDEX [IX_uCommerce_DefinitionField_Searchable] ON [dbo].[uCommerce_DefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionField_Searchable] ON [dbo].[uCommerce_DefinitionField](Searchable ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionField]') AND name = N'IX_uCommerce_DefinitionField_SortOrder') BEGIN DROP INDEX [IX_uCommerce_DefinitionField_SortOrder] ON [dbo].[uCommerce_DefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionField_SortOrder] ON [dbo].[uCommerce_DefinitionField](SortOrder ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionFieldDescription]') AND name = N'IX_uCommerce_DefinitionFieldDescription_CultureCode') BEGIN DROP INDEX [IX_uCommerce_DefinitionFieldDescription_CultureCode] ON [dbo].[uCommerce_DefinitionFieldDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionFieldDescription_CultureCode] ON [dbo].[uCommerce_DefinitionFieldDescription](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionFieldDescription]') AND name = N'IX_uCommerce_DefinitionFieldDescription_DefinitionFieldId') BEGIN DROP INDEX [IX_uCommerce_DefinitionFieldDescription_DefinitionFieldId] ON [dbo].[uCommerce_DefinitionFieldDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionFieldDescription_DefinitionFieldId] ON [dbo].[uCommerce_DefinitionFieldDescription](DefinitionFieldId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionRelation]') AND name = N'IX_uCommerce_DefinitionRelation_DefinitionId') BEGIN DROP INDEX [IX_uCommerce_DefinitionRelation_DefinitionId] ON [dbo].[uCommerce_DefinitionRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionRelation_DefinitionId] ON [dbo].[uCommerce_DefinitionRelation](DefinitionId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionRelation]') AND name = N'IX_uCommerce_DefinitionRelation_ParentDefinitionId') BEGIN DROP INDEX [IX_uCommerce_DefinitionRelation_ParentDefinitionId] ON [dbo].[uCommerce_DefinitionRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionRelation_ParentDefinitionId] ON [dbo].[uCommerce_DefinitionRelation](ParentDefinitionId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionRelation]') AND name = N'IX_uCommerce_DefinitionRelation_SortOrder') BEGIN DROP INDEX [IX_uCommerce_DefinitionRelation_SortOrder] ON [dbo].[uCommerce_DefinitionRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionRelation_SortOrder] ON [dbo].[uCommerce_DefinitionRelation](SortOrder ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionType]') AND name = N'IX_uCommerce_DefinitionType_Deleted') BEGIN DROP INDEX [IX_uCommerce_DefinitionType_Deleted] ON [dbo].[uCommerce_DefinitionType]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionType_Deleted] ON [dbo].[uCommerce_DefinitionType](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionType]') AND name = N'IX_uCommerce_DefinitionType_SortOrder') BEGIN DROP INDEX [IX_uCommerce_DefinitionType_SortOrder] ON [dbo].[uCommerce_DefinitionType]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionType_SortOrder] ON [dbo].[uCommerce_DefinitionType](SortOrder ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionTypeDescription]') AND name = N'IX_uCommerce_DefinitionTypeDescription_CultureCode') BEGIN DROP INDEX [IX_uCommerce_DefinitionTypeDescription_CultureCode] ON [dbo].[uCommerce_DefinitionTypeDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionTypeDescription_CultureCode] ON [dbo].[uCommerce_DefinitionTypeDescription](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DefinitionTypeDescription]') AND name = N'IX_uCommerce_DefinitionTypeDescription_DefinitionTypeId') BEGIN DROP INDEX [IX_uCommerce_DefinitionTypeDescription_DefinitionTypeId] ON [dbo].[uCommerce_DefinitionTypeDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DefinitionTypeDescription_DefinitionTypeId] ON [dbo].[uCommerce_DefinitionTypeDescription](DefinitionTypeId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Discount]') AND name = N'IX_uCommerce_Discount_OrderId') BEGIN DROP INDEX [IX_uCommerce_Discount_OrderId] ON [dbo].[uCommerce_Discount]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Discount_OrderId] ON [dbo].[uCommerce_Discount](OrderId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DiscountSpecificOrderLineAward]') AND name = N'IX_uCommerce_DiscountSpecificOrderLineAward_AmountType') BEGIN DROP INDEX [IX_uCommerce_DiscountSpecificOrderLineAward_AmountType] ON [dbo].[uCommerce_DiscountSpecificOrderLineAward]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DiscountSpecificOrderLineAward_AmountType] ON [dbo].[uCommerce_DiscountSpecificOrderLineAward](AmountType ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DiscountSpecificOrderLineAward]') AND name = N'IX_uCommerce_DiscountSpecificOrderLineAward_DiscountTarget') BEGIN DROP INDEX [IX_uCommerce_DiscountSpecificOrderLineAward_DiscountTarget] ON [dbo].[uCommerce_DiscountSpecificOrderLineAward]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DiscountSpecificOrderLineAward_DiscountTarget] ON [dbo].[uCommerce_DiscountSpecificOrderLineAward](DiscountTarget ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DynamicOrderPropertyTarget]') AND name = N'IX_uCommerce_DynamicOrderPropertyTarget_CompareMode') BEGIN DROP INDEX [IX_uCommerce_DynamicOrderPropertyTarget_CompareMode] ON [dbo].[uCommerce_DynamicOrderPropertyTarget]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DynamicOrderPropertyTarget_CompareMode] ON [dbo].[uCommerce_DynamicOrderPropertyTarget](CompareMode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DynamicOrderPropertyTarget]') AND name = N'IX_uCommerce_DynamicOrderPropertyTarget_Key') BEGIN DROP INDEX [IX_uCommerce_DynamicOrderPropertyTarget_Key] ON [dbo].[uCommerce_DynamicOrderPropertyTarget]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DynamicOrderPropertyTarget_Key] ON [dbo].[uCommerce_DynamicOrderPropertyTarget]([Key] ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_DynamicOrderPropertyTarget]') AND name = N'IX_uCommerce_DynamicOrderPropertyTarget_TargetOrderLine') BEGIN DROP INDEX [IX_uCommerce_DynamicOrderPropertyTarget_TargetOrderLine] ON [dbo].[uCommerce_DynamicOrderPropertyTarget]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_DynamicOrderPropertyTarget_TargetOrderLine] ON [dbo].[uCommerce_DynamicOrderPropertyTarget](TargetOrderLine ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_EmailContent]') AND name = N'IX_uCommerce_EmailContent_ContentId') BEGIN DROP INDEX [IX_uCommerce_EmailContent_ContentId] ON [dbo].[uCommerce_EmailContent]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_EmailContent_ContentId] ON [dbo].[uCommerce_EmailContent](ContentId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_EmailContent]') AND name = N'IX_uCommerce_EmailContent_CultureCode') BEGIN DROP INDEX [IX_uCommerce_EmailContent_CultureCode] ON [dbo].[uCommerce_EmailContent]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_EmailContent_CultureCode] ON [dbo].[uCommerce_EmailContent](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_EmailContent]') AND name = N'IX_uCommerce_EmailContent_EmailProfileId') BEGIN DROP INDEX [IX_uCommerce_EmailContent_EmailProfileId] ON [dbo].[uCommerce_EmailContent]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_EmailContent_EmailProfileId] ON [dbo].[uCommerce_EmailContent](EmailProfileId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_EmailContent]') AND name = N'IX_uCommerce_EmailContent_EmailTypeId') BEGIN DROP INDEX [IX_uCommerce_EmailContent_EmailTypeId] ON [dbo].[uCommerce_EmailContent]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_EmailContent_EmailTypeId] ON [dbo].[uCommerce_EmailContent](EmailTypeId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_EmailProfile]') AND name = N'IX_uCommerce_EmailProfile_Deleted') BEGIN DROP INDEX [IX_uCommerce_EmailProfile_Deleted] ON [dbo].[uCommerce_EmailProfile]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_EmailProfile_Deleted] ON [dbo].[uCommerce_EmailProfile](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_EmailProfile]') AND name = N'IX_uCommerce_EmailProfile_Guid') BEGIN DROP INDEX [IX_uCommerce_EmailProfile_Guid] ON [dbo].[uCommerce_EmailProfile]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_EmailProfile_Guid] ON [dbo].[uCommerce_EmailProfile](Guid ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_EmailProfileInformation]') AND name = N'IX_uCommerce_EmailProfileInformation_EmailProfileId') BEGIN DROP INDEX [IX_uCommerce_EmailProfileInformation_EmailProfileId] ON [dbo].[uCommerce_EmailProfileInformation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_EmailProfileInformation_EmailProfileId] ON [dbo].[uCommerce_EmailProfileInformation](EmailProfileId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_EmailProfileInformation]') AND name = N'IX_uCommerce_EmailProfileInformation_EmailTypeId') BEGIN DROP INDEX [IX_uCommerce_EmailProfileInformation_EmailTypeId] ON [dbo].[uCommerce_EmailProfileInformation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_EmailProfileInformation_EmailTypeId] ON [dbo].[uCommerce_EmailProfileInformation](EmailTypeId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_EmailType]') AND name = N'IX_uCommerce_EmailType_Deleted') BEGIN DROP INDEX [IX_uCommerce_EmailType_Deleted] ON [dbo].[uCommerce_EmailType]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_EmailType_Deleted] ON [dbo].[uCommerce_EmailType](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_EntityUi]') AND name = N'IX_uCommerce_EntityUi_SortOrder') BEGIN DROP INDEX [IX_uCommerce_EntityUi_SortOrder] ON [dbo].[uCommerce_EntityUi]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_EntityUi_SortOrder] ON [dbo].[uCommerce_EntityUi](SortOrder ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_EntityUiDescription]') AND name = N'IX_uCommerce_EntityUiDescription_CultureCode') BEGIN DROP INDEX [IX_uCommerce_EntityUiDescription_CultureCode] ON [dbo].[uCommerce_EntityUiDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_EntityUiDescription_CultureCode] ON [dbo].[uCommerce_EntityUiDescription](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_EntityUiDescription]') AND name = N'IX_uCommerce_EntityUiDescription_EntityUiId') BEGIN DROP INDEX [IX_uCommerce_EntityUiDescription_EntityUiId] ON [dbo].[uCommerce_EntityUiDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_EntityUiDescription_EntityUiId] ON [dbo].[uCommerce_EntityUiDescription](EntityUiId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderAddress]') AND name = N'IX_uCommerce_OrderAddress_CountryId') BEGIN DROP INDEX [IX_uCommerce_OrderAddress_CountryId] ON [dbo].[uCommerce_OrderAddress]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderAddress_CountryId] ON [dbo].[uCommerce_OrderAddress](CountryId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderAddress]') AND name = N'IX_uCommerce_OrderAddress_OrderId') BEGIN DROP INDEX [IX_uCommerce_OrderAddress_OrderId] ON [dbo].[uCommerce_OrderAddress]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderAddress_OrderId] ON [dbo].[uCommerce_OrderAddress](OrderId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderLine]') AND name = N'IX_uCommerce_OrderLine_OrderId') BEGIN DROP INDEX [IX_uCommerce_OrderLine_OrderId] ON [dbo].[uCommerce_OrderLine]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderLine_OrderId] ON [dbo].[uCommerce_OrderLine](OrderId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderLine]') AND name = N'IX_uCommerce_OrderLine_ShipmentId') BEGIN DROP INDEX [IX_uCommerce_OrderLine_ShipmentId] ON [dbo].[uCommerce_OrderLine]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderLine_ShipmentId] ON [dbo].[uCommerce_OrderLine](ShipmentId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderLineDiscountRelation]') AND name = N'IX_uCommerce_OrderLineDiscountRelation_DiscountId') BEGIN DROP INDEX [IX_uCommerce_OrderLineDiscountRelation_DiscountId] ON [dbo].[uCommerce_OrderLineDiscountRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderLineDiscountRelation_DiscountId] ON [dbo].[uCommerce_OrderLineDiscountRelation](DiscountId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderLineDiscountRelation]') AND name = N'IX_uCommerce_OrderLineDiscountRelation_OrderLineId') BEGIN DROP INDEX [IX_uCommerce_OrderLineDiscountRelation_OrderLineId] ON [dbo].[uCommerce_OrderLineDiscountRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderLineDiscountRelation_OrderLineId] ON [dbo].[uCommerce_OrderLineDiscountRelation](OrderLineId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderNumberSerie]') AND name = N'IX_uCommerce_OrderNumberSerie_Deleted') BEGIN DROP INDEX [IX_uCommerce_OrderNumberSerie_Deleted] ON [dbo].[uCommerce_OrderNumberSerie]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderNumberSerie_Deleted] ON [dbo].[uCommerce_OrderNumberSerie](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderNumberSerie]') AND name = N'IX_uCommerce_OrderNumberSerie_Guid') BEGIN DROP INDEX [IX_uCommerce_OrderNumberSerie_Guid] ON [dbo].[uCommerce_OrderNumberSerie]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderNumberSerie_Guid] ON [dbo].[uCommerce_OrderNumberSerie](Guid ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderNumberSerie]') AND name = N'IX_uCommerce_OrderNumberSerie_OrderNumberName') BEGIN DROP INDEX [IX_uCommerce_OrderNumberSerie_OrderNumberName] ON [dbo].[uCommerce_OrderNumberSerie]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderNumberSerie_OrderNumberName] ON [dbo].[uCommerce_OrderNumberSerie](OrderNumberName ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderProperty]') AND name = N'IX_uCommerce_OrderProperty_Key') BEGIN DROP INDEX [IX_uCommerce_OrderProperty_Key] ON [dbo].[uCommerce_OrderProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderProperty_Key] ON [dbo].[uCommerce_OrderProperty]([Key] ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderProperty]') AND name = N'IX_uCommerce_OrderProperty_OrderId') BEGIN DROP INDEX [IX_uCommerce_OrderProperty_OrderId] ON [dbo].[uCommerce_OrderProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderProperty_OrderId] ON [dbo].[uCommerce_OrderProperty](OrderId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderProperty]') AND name = N'IX_uCommerce_OrderProperty_OrderLineId') BEGIN DROP INDEX [IX_uCommerce_OrderProperty_OrderLineId] ON [dbo].[uCommerce_OrderProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderProperty_OrderLineId] ON [dbo].[uCommerce_OrderProperty](OrderLineId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderStatus]') AND name = N'IX_uCommerce_OrderStatus_AllowOrderEdit') BEGIN DROP INDEX [IX_uCommerce_OrderStatus_AllowOrderEdit] ON [dbo].[uCommerce_OrderStatus]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderStatus_AllowOrderEdit] ON [dbo].[uCommerce_OrderStatus](AllowOrderEdit ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderStatus]') AND name = N'IX_uCommerce_OrderStatus_AllowUpdate') BEGIN DROP INDEX [IX_uCommerce_OrderStatus_AllowUpdate] ON [dbo].[uCommerce_OrderStatus]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderStatus_AllowUpdate] ON [dbo].[uCommerce_OrderStatus](AllowUpdate ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderStatus]') AND name = N'IX_uCommerce_OrderStatus_AlwaysAvailable') BEGIN DROP INDEX [IX_uCommerce_OrderStatus_AlwaysAvailable] ON [dbo].[uCommerce_OrderStatus]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderStatus_AlwaysAvailable] ON [dbo].[uCommerce_OrderStatus](AlwaysAvailable ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderStatus]') AND name = N'IX_uCommerce_OrderStatus_ExternalId') BEGIN DROP INDEX [IX_uCommerce_OrderStatus_ExternalId] ON [dbo].[uCommerce_OrderStatus]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderStatus_ExternalId] ON [dbo].[uCommerce_OrderStatus](ExternalId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderStatus]') AND name = N'IX_uCommerce_OrderStatus_IncludeInAuditTrail') BEGIN DROP INDEX [IX_uCommerce_OrderStatus_IncludeInAuditTrail] ON [dbo].[uCommerce_OrderStatus]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderStatus_IncludeInAuditTrail] ON [dbo].[uCommerce_OrderStatus](IncludeInAuditTrail ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderStatus]') AND name = N'IX_uCommerce_OrderStatus_Name') BEGIN DROP INDEX [IX_uCommerce_OrderStatus_Name] ON [dbo].[uCommerce_OrderStatus]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderStatus_Name] ON [dbo].[uCommerce_OrderStatus](Name ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderStatus]') AND name = N'IX_uCommerce_OrderStatus_NextOrderStatusId') BEGIN DROP INDEX [IX_uCommerce_OrderStatus_NextOrderStatusId] ON [dbo].[uCommerce_OrderStatus]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderStatus_NextOrderStatusId] ON [dbo].[uCommerce_OrderStatus](NextOrderStatusId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderStatus]') AND name = N'IX_uCommerce_OrderStatus_Order') BEGIN DROP INDEX [IX_uCommerce_OrderStatus_Order] ON [dbo].[uCommerce_OrderStatus]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderStatus_Order] ON [dbo].[uCommerce_OrderStatus]([Order] ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderStatus]') AND name = N'IX_uCommerce_OrderStatus_RenderChildren') BEGIN DROP INDEX [IX_uCommerce_OrderStatus_RenderChildren] ON [dbo].[uCommerce_OrderStatus]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderStatus_RenderChildren] ON [dbo].[uCommerce_OrderStatus](RenderChildren ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderStatus]') AND name = N'IX_uCommerce_OrderStatus_RenderInMenu') BEGIN DROP INDEX [IX_uCommerce_OrderStatus_RenderInMenu] ON [dbo].[uCommerce_OrderStatus]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderStatus_RenderInMenu] ON [dbo].[uCommerce_OrderStatus](RenderInMenu ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderStatus]') AND name = N'IX_uCommerce_OrderStatus_Sort') BEGIN DROP INDEX [IX_uCommerce_OrderStatus_Sort] ON [dbo].[uCommerce_OrderStatus]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderStatus_Sort] ON [dbo].[uCommerce_OrderStatus](Sort ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderStatusAudit]') AND name = N'IX_uCommerce_OrderStatusAudit_OrderId') BEGIN DROP INDEX [IX_uCommerce_OrderStatusAudit_OrderId] ON [dbo].[uCommerce_OrderStatusAudit]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderStatusAudit_OrderId] ON [dbo].[uCommerce_OrderStatusAudit](OrderId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderStatusAudit]') AND name = N'IX_uCommerce_OrderStatusAudit_NewOrderStatusId') BEGIN DROP INDEX [IX_uCommerce_OrderStatusAudit_NewOrderStatusId] ON [dbo].[uCommerce_OrderStatusAudit]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderStatusAudit_NewOrderStatusId] ON [dbo].[uCommerce_OrderStatusAudit](NewOrderStatusId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_OrderStatusDescription]') AND name = N'IX_uCommerce_OrderStatusDescription_CultureCode') BEGIN DROP INDEX [IX_uCommerce_OrderStatusDescription_CultureCode] ON [dbo].[uCommerce_OrderStatusDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_OrderStatusDescription_CultureCode] ON [dbo].[uCommerce_OrderStatusDescription](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Payment]') AND name = N'IX_uCommerce_Payment_PaymentMethodId') BEGIN DROP INDEX [IX_uCommerce_Payment_PaymentMethodId] ON [dbo].[uCommerce_Payment]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Payment_PaymentMethodId] ON [dbo].[uCommerce_Payment](PaymentMethodId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Payment]') AND name = N'IX_uCommerce_Payment_PaymentMethodName') BEGIN DROP INDEX [IX_uCommerce_Payment_PaymentMethodName] ON [dbo].[uCommerce_Payment]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Payment_PaymentMethodName] ON [dbo].[uCommerce_Payment](PaymentMethodName ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Payment]') AND name = N'IX_uCommerce_Payment_PaymentStatusId') BEGIN DROP INDEX [IX_uCommerce_Payment_PaymentStatusId] ON [dbo].[uCommerce_Payment]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Payment_PaymentStatusId] ON [dbo].[uCommerce_Payment](PaymentStatusId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PaymentMethod]') AND name = N'IX_uCommerce_PaymentMethod_DefinitionId') BEGIN DROP INDEX [IX_uCommerce_PaymentMethod_DefinitionId] ON [dbo].[uCommerce_PaymentMethod]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PaymentMethod_DefinitionId] ON [dbo].[uCommerce_PaymentMethod](DefinitionId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PaymentMethod]') AND name = N'IX_uCommerce_PaymentMethod_Deleted') BEGIN DROP INDEX [IX_uCommerce_PaymentMethod_Deleted] ON [dbo].[uCommerce_PaymentMethod]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PaymentMethod_Deleted] ON [dbo].[uCommerce_PaymentMethod](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PaymentMethod]') AND name = N'IX_uCommerce_PaymentMethod_Enabled') BEGIN DROP INDEX [IX_uCommerce_PaymentMethod_Enabled] ON [dbo].[uCommerce_PaymentMethod]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PaymentMethod_Enabled] ON [dbo].[uCommerce_PaymentMethod](Enabled ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PaymentMethod]') AND name = N'IX_uCommerce_PaymentMethod_Name') BEGIN DROP INDEX [IX_uCommerce_PaymentMethod_Name] ON [dbo].[uCommerce_PaymentMethod]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PaymentMethod_Name] ON [dbo].[uCommerce_PaymentMethod](Name ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PaymentMethodDescription]') AND name = N'IX_uCommerce_PaymentMethodDescription_CultureCode') BEGIN DROP INDEX [IX_uCommerce_PaymentMethodDescription_CultureCode] ON [dbo].[uCommerce_PaymentMethodDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PaymentMethodDescription_CultureCode] ON [dbo].[uCommerce_PaymentMethodDescription](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PaymentMethodDescription]') AND name = N'IX_uCommerce_PaymentMethodDescription_PaymentMethodId') BEGIN DROP INDEX [IX_uCommerce_PaymentMethodDescription_PaymentMethodId] ON [dbo].[uCommerce_PaymentMethodDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PaymentMethodDescription_PaymentMethodId] ON [dbo].[uCommerce_PaymentMethodDescription](PaymentMethodId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PaymentMethodFee]') AND name = N'IX_uCommerce_PaymentMethodFee_CurrencyId') BEGIN DROP INDEX [IX_uCommerce_PaymentMethodFee_CurrencyId] ON [dbo].[uCommerce_PaymentMethodFee]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PaymentMethodFee_CurrencyId] ON [dbo].[uCommerce_PaymentMethodFee](CurrencyId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PaymentMethodFee]') AND name = N'IX_uCommerce_PaymentMethodFee_PaymentMethodId') BEGIN DROP INDEX [IX_uCommerce_PaymentMethodFee_PaymentMethodId] ON [dbo].[uCommerce_PaymentMethodFee]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PaymentMethodFee_PaymentMethodId] ON [dbo].[uCommerce_PaymentMethodFee](PaymentMethodId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PaymentMethodFee]') AND name = N'IX_uCommerce_PaymentMethodFee_PriceGroupId') BEGIN DROP INDEX [IX_uCommerce_PaymentMethodFee_PriceGroupId] ON [dbo].[uCommerce_PaymentMethodFee]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PaymentMethodFee_PriceGroupId] ON [dbo].[uCommerce_PaymentMethodFee](PriceGroupId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PaymentMethodProperty]') AND name = N'IX_uCommerce_PaymentMethodProperty_CultureCode') BEGIN DROP INDEX [IX_uCommerce_PaymentMethodProperty_CultureCode] ON [dbo].[uCommerce_PaymentMethodProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PaymentMethodProperty_CultureCode] ON [dbo].[uCommerce_PaymentMethodProperty](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PaymentMethodProperty]') AND name = N'IX_uCommerce_PaymentMethodProperty_DefinitionFieldId') BEGIN DROP INDEX [IX_uCommerce_PaymentMethodProperty_DefinitionFieldId] ON [dbo].[uCommerce_PaymentMethodProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PaymentMethodProperty_DefinitionFieldId] ON [dbo].[uCommerce_PaymentMethodProperty](DefinitionFieldId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PaymentMethodProperty]') AND name = N'IX_uCommerce_PaymentMethodProperty_PaymentMethodId') BEGIN DROP INDEX [IX_uCommerce_PaymentMethodProperty_PaymentMethodId] ON [dbo].[uCommerce_PaymentMethodProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PaymentMethodProperty_PaymentMethodId] ON [dbo].[uCommerce_PaymentMethodProperty](PaymentMethodId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PaymentProperty]') AND name = N'IX_uCommerce_PaymentProperty_Key') BEGIN DROP INDEX [IX_uCommerce_PaymentProperty_Key] ON [dbo].[uCommerce_PaymentProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PaymentProperty_Key] ON [dbo].[uCommerce_PaymentProperty]([Key] ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PaymentProperty]') AND name = N'IX_uCommerce_PaymentProperty_PaymentId') BEGIN DROP INDEX [IX_uCommerce_PaymentProperty_PaymentId] ON [dbo].[uCommerce_PaymentProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PaymentProperty_PaymentId] ON [dbo].[uCommerce_PaymentProperty](PaymentId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PaymentStatus]') AND name = N'IX_uCommerce_PaymentStatus_Name') BEGIN DROP INDEX [IX_uCommerce_PaymentStatus_Name] ON [dbo].[uCommerce_PaymentStatus]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PaymentStatus_Name] ON [dbo].[uCommerce_PaymentStatus](Name ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Permission]') AND name = N'IX_uCommerce_Permission_RoleId') BEGIN DROP INDEX [IX_uCommerce_Permission_RoleId] ON [dbo].[uCommerce_Permission]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Permission_RoleId] ON [dbo].[uCommerce_Permission](RoleId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Permission]') AND name = N'IX_uCommerce_Permission_UserId') BEGIN DROP INDEX [IX_uCommerce_Permission_UserId] ON [dbo].[uCommerce_Permission]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Permission_UserId] ON [dbo].[uCommerce_Permission](UserId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PriceGroup]') AND name = N'IX_uCommerce_PriceGroup_CurrencyId') BEGIN DROP INDEX [IX_uCommerce_PriceGroup_CurrencyId] ON [dbo].[uCommerce_PriceGroup]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PriceGroup_CurrencyId] ON [dbo].[uCommerce_PriceGroup](CurrencyId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PriceGroup]') AND name = N'IX_uCommerce_PriceGroup_Deleted') BEGIN DROP INDEX [IX_uCommerce_PriceGroup_Deleted] ON [dbo].[uCommerce_PriceGroup]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PriceGroup_Deleted] ON [dbo].[uCommerce_PriceGroup](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PriceGroup]') AND name = N'IX_uCommerce_PriceGroup_Guid') BEGIN DROP INDEX [IX_uCommerce_PriceGroup_Guid] ON [dbo].[uCommerce_PriceGroup]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PriceGroup_Guid] ON [dbo].[uCommerce_PriceGroup](Guid ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PriceGroupPrice]') AND name = N'IX_uCommerce_PriceGroupPrice_ProductId') BEGIN DROP INDEX [IX_uCommerce_PriceGroupPrice_ProductId] ON [dbo].[uCommerce_PriceGroupPrice]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PriceGroupPrice_ProductId] ON [dbo].[uCommerce_PriceGroupPrice](ProductId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PriceGroupPrice]') AND name = N'IX_uCommerce_PriceGroupPrice_PriceGroupId') BEGIN DROP INDEX [IX_uCommerce_PriceGroupPrice_PriceGroupId] ON [dbo].[uCommerce_PriceGroupPrice]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PriceGroupPrice_PriceGroupId] ON [dbo].[uCommerce_PriceGroupPrice](PriceGroupId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Product]') AND name = N'IX_uCommerce_Product_AllowOrdering') BEGIN DROP INDEX [IX_uCommerce_Product_AllowOrdering] ON [dbo].[uCommerce_Product]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Product_AllowOrdering] ON [dbo].[uCommerce_Product](AllowOrdering ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Product]') AND name = N'IX_uCommerce_Product_ParentProductId') BEGIN DROP INDEX [IX_uCommerce_Product_ParentProductId] ON [dbo].[uCommerce_Product]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Product_ParentProductId] ON [dbo].[uCommerce_Product](ParentProductId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Product]') AND name = N'IX_uCommerce_Product_DisplayOnSite') BEGIN DROP INDEX [IX_uCommerce_Product_DisplayOnSite] ON [dbo].[uCommerce_Product]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Product_DisplayOnSite] ON [dbo].[uCommerce_Product](DisplayOnSite ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Product]') AND name = N'IX_uCommerce_Product_Guid') BEGIN DROP INDEX [IX_uCommerce_Product_Guid] ON [dbo].[uCommerce_Product]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Product_Guid] ON [dbo].[uCommerce_Product](Guid ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Product]') AND name = N'IX_uCommerce_Product_ProductDefinitionId') BEGIN DROP INDEX [IX_uCommerce_Product_ProductDefinitionId] ON [dbo].[uCommerce_Product]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Product_ProductDefinitionId] ON [dbo].[uCommerce_Product](ProductDefinitionId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Product]') AND name = N'IX_uCommerce_Product_Rating') BEGIN DROP INDEX [IX_uCommerce_Product_Rating] ON [dbo].[uCommerce_Product]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Product_Rating] ON [dbo].[uCommerce_Product](Rating ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Product]') AND name = N'IX_uCommerce_Product_Sku') BEGIN DROP INDEX [IX_uCommerce_Product_Sku] ON [dbo].[uCommerce_Product]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Product_Sku] ON [dbo].[uCommerce_Product](Sku ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Product]') AND name = N'IX_uCommerce_Product_VariantSku') BEGIN DROP INDEX [IX_uCommerce_Product_VariantSku] ON [dbo].[uCommerce_Product]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Product_VariantSku] ON [dbo].[uCommerce_Product](VariantSku ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalog]') AND name = N'IX_uCommerce_ProductCatalog_Deleted') BEGIN DROP INDEX [IX_uCommerce_ProductCatalog_Deleted] ON [dbo].[uCommerce_ProductCatalog]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalog_Deleted] ON [dbo].[uCommerce_ProductCatalog](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalog]') AND name = N'IX_uCommerce_ProductCatalog_DisplayOnWebSite') BEGIN DROP INDEX [IX_uCommerce_ProductCatalog_DisplayOnWebSite] ON [dbo].[uCommerce_ProductCatalog]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalog_DisplayOnWebSite] ON [dbo].[uCommerce_ProductCatalog](DisplayOnWebSite ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalog]') AND name = N'IX_uCommerce_ProductCatalog_Guid') BEGIN DROP INDEX [IX_uCommerce_ProductCatalog_Guid] ON [dbo].[uCommerce_ProductCatalog]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalog_Guid] ON [dbo].[uCommerce_ProductCatalog](Guid ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalog]') AND name = N'IX_uCommerce_ProductCatalog_IsVirtual') BEGIN DROP INDEX [IX_uCommerce_ProductCatalog_IsVirtual] ON [dbo].[uCommerce_ProductCatalog]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalog_IsVirtual] ON [dbo].[uCommerce_ProductCatalog](IsVirtual ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalog]') AND name = N'IX_uCommerce_ProductCatalog_LimitedAccess') BEGIN DROP INDEX [IX_uCommerce_ProductCatalog_LimitedAccess] ON [dbo].[uCommerce_ProductCatalog]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalog_LimitedAccess] ON [dbo].[uCommerce_ProductCatalog](LimitedAccess ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalog]') AND name = N'IX_uCommerce_ProductCatalog_Name') BEGIN DROP INDEX [IX_uCommerce_ProductCatalog_Name] ON [dbo].[uCommerce_ProductCatalog]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalog_Name] ON [dbo].[uCommerce_ProductCatalog](Name ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalog]') AND name = N'IX_uCommerce_ProductCatalog_PriceGroupId') BEGIN DROP INDEX [IX_uCommerce_ProductCatalog_PriceGroupId] ON [dbo].[uCommerce_ProductCatalog]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalog_PriceGroupId] ON [dbo].[uCommerce_ProductCatalog](PriceGroupId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalog]') AND name = N'IX_uCommerce_ProductCatalog_ProductCatalogGroupId') BEGIN DROP INDEX [IX_uCommerce_ProductCatalog_ProductCatalogGroupId] ON [dbo].[uCommerce_ProductCatalog]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalog_ProductCatalogGroupId] ON [dbo].[uCommerce_ProductCatalog](ProductCatalogGroupId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalog]') AND name = N'IX_uCommerce_ProductCatalog_ShowPricesIncludingVAT') BEGIN DROP INDEX [IX_uCommerce_ProductCatalog_ShowPricesIncludingVAT] ON [dbo].[uCommerce_ProductCatalog]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalog_ShowPricesIncludingVAT] ON [dbo].[uCommerce_ProductCatalog](ShowPricesIncludingVAT ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalog]') AND name = N'IX_uCommerce_ProductCatalog_SortOrder') BEGIN DROP INDEX [IX_uCommerce_ProductCatalog_SortOrder] ON [dbo].[uCommerce_ProductCatalog]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalog_SortOrder] ON [dbo].[uCommerce_ProductCatalog](SortOrder ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogDescription]') AND name = N'IX_uCommerce_ProductCatalogDescription_CultureCode') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogDescription_CultureCode] ON [dbo].[uCommerce_ProductCatalogDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogDescription_CultureCode] ON [dbo].[uCommerce_ProductCatalogDescription](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogDescription]') AND name = N'IX_uCommerce_ProductCatalogDescription_ProductCatalogId') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogDescription_ProductCatalogId] ON [dbo].[uCommerce_ProductCatalogDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogDescription_ProductCatalogId] ON [dbo].[uCommerce_ProductCatalogDescription](ProductCatalogId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogGroup]') AND name = N'IX_uCommerce_ProductCatalogGroup_CreateCustomersAsMembers') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogGroup_CreateCustomersAsMembers] ON [dbo].[uCommerce_ProductCatalogGroup]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogGroup_CreateCustomersAsMembers] ON [dbo].[uCommerce_ProductCatalogGroup](CreateCustomersAsMembers ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogGroup]') AND name = N'IX_uCommerce_ProductCatalogGroup_CurrencyId') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogGroup_CurrencyId] ON [dbo].[uCommerce_ProductCatalogGroup]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogGroup_CurrencyId] ON [dbo].[uCommerce_ProductCatalogGroup](CurrencyId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogGroup]') AND name = N'IX_uCommerce_ProductCatalogGroup_Deleted') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogGroup_Deleted] ON [dbo].[uCommerce_ProductCatalogGroup]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogGroup_Deleted] ON [dbo].[uCommerce_ProductCatalogGroup](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogGroup]') AND name = N'IX_uCommerce_ProductCatalogGroup_DomainId') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogGroup_DomainId] ON [dbo].[uCommerce_ProductCatalogGroup]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogGroup_DomainId] ON [dbo].[uCommerce_ProductCatalogGroup](DomainId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogGroup]') AND name = N'IX_uCommerce_ProductCatalogGroup_EmailProfileId') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogGroup_EmailProfileId] ON [dbo].[uCommerce_ProductCatalogGroup]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogGroup_EmailProfileId] ON [dbo].[uCommerce_ProductCatalogGroup](EmailProfileId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogGroup]') AND name = N'IX_uCommerce_ProductCatalogGroup_Guid') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogGroup_Guid] ON [dbo].[uCommerce_ProductCatalogGroup]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogGroup_Guid] ON [dbo].[uCommerce_ProductCatalogGroup](Guid ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogGroup]') AND name = N'IX_uCommerce_ProductCatalogGroup_MemberGroupId') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogGroup_MemberGroupId] ON [dbo].[uCommerce_ProductCatalogGroup]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogGroup_MemberGroupId] ON [dbo].[uCommerce_ProductCatalogGroup](MemberGroupId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogGroup]') AND name = N'IX_uCommerce_ProductCatalogGroup_MemberTypeId') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogGroup_MemberTypeId] ON [dbo].[uCommerce_ProductCatalogGroup]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogGroup_MemberTypeId] ON [dbo].[uCommerce_ProductCatalogGroup](MemberTypeId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogGroup]') AND name = N'IX_uCommerce_ProductCatalogGroup_Name') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogGroup_Name] ON [dbo].[uCommerce_ProductCatalogGroup]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogGroup_Name] ON [dbo].[uCommerce_ProductCatalogGroup](Name ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogGroup]') AND name = N'IX_uCommerce_ProductCatalogGroup_OrderNumberId') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogGroup_OrderNumberId] ON [dbo].[uCommerce_ProductCatalogGroup]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogGroup_OrderNumberId] ON [dbo].[uCommerce_ProductCatalogGroup](OrderNumberId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogGroupCampaignRelation]') AND name = N'IX_uCommerce_ProductCatalogGroupCampaignRelation_CampaignId') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogGroupCampaignRelation_CampaignId] ON [dbo].[uCommerce_ProductCatalogGroupCampaignRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogGroupCampaignRelation_CampaignId] ON [dbo].[uCommerce_ProductCatalogGroupCampaignRelation](CampaignId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogGroupCampaignRelation]') AND name = N'IX_uCommerce_ProductCatalogGroupCampaignRelation_ProductCatalogGroupId') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogGroupCampaignRelation_ProductCatalogGroupId] ON [dbo].[uCommerce_ProductCatalogGroupCampaignRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogGroupCampaignRelation_ProductCatalogGroupId] ON [dbo].[uCommerce_ProductCatalogGroupCampaignRelation](ProductCatalogGroupId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogGroupTarget]') AND name = N'IX_uCommerce_ProductCatalogGroupTarget_Name') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogGroupTarget_Name] ON [dbo].[uCommerce_ProductCatalogGroupTarget]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogGroupTarget_Name] ON [dbo].[uCommerce_ProductCatalogGroupTarget](Name ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogPriceGroupRelation]') AND name = N'IX_uCommerce_ProductCatalogPriceGroupRelation_PriceGroupId') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogPriceGroupRelation_PriceGroupId] ON [dbo].[uCommerce_ProductCatalogPriceGroupRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogPriceGroupRelation_PriceGroupId] ON [dbo].[uCommerce_ProductCatalogPriceGroupRelation](PriceGroupId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogPriceGroupRelation]') AND name = N'IX_uCommerce_ProductCatalogPriceGroupRelation_ProductCatalogId') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogPriceGroupRelation_ProductCatalogId] ON [dbo].[uCommerce_ProductCatalogPriceGroupRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogPriceGroupRelation_ProductCatalogId] ON [dbo].[uCommerce_ProductCatalogPriceGroupRelation](ProductCatalogId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogPriceGroupRelation]') AND name = N'IX_uCommerce_ProductCatalogPriceGroupRelation_SortOrder') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogPriceGroupRelation_SortOrder] ON [dbo].[uCommerce_ProductCatalogPriceGroupRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogPriceGroupRelation_SortOrder] ON [dbo].[uCommerce_ProductCatalogPriceGroupRelation](SortOrder ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogTarget]') AND name = N'IX_uCommerce_ProductCatalogTarget_Name') BEGIN DROP INDEX [IX_uCommerce_ProductCatalogTarget_Name] ON [dbo].[uCommerce_ProductCatalogTarget]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductCatalogTarget_Name] ON [dbo].[uCommerce_ProductCatalogTarget](Name ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinition]') AND name = N'IX_uCommerce_ProductDefinition_Deleted') BEGIN DROP INDEX [IX_uCommerce_ProductDefinition_Deleted] ON [dbo].[uCommerce_ProductDefinition]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinition_Deleted] ON [dbo].[uCommerce_ProductDefinition](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinition]') AND name = N'IX_uCommerce_ProductDefinition_Guid') BEGIN DROP INDEX [IX_uCommerce_ProductDefinition_Guid] ON [dbo].[uCommerce_ProductDefinition]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinition_Guid] ON [dbo].[uCommerce_ProductDefinition](Guid ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinition]') AND name = N'IX_uCommerce_ProductDefinition_SortOrder') BEGIN DROP INDEX [IX_uCommerce_ProductDefinition_SortOrder] ON [dbo].[uCommerce_ProductDefinition]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinition_SortOrder] ON [dbo].[uCommerce_ProductDefinition](SortOrder ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionField]') AND name = N'IX_uCommerce_ProductDefinitionField_DataTypeId') BEGIN DROP INDEX [IX_uCommerce_ProductDefinitionField_DataTypeId] ON [dbo].[uCommerce_ProductDefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinitionField_DataTypeId] ON [dbo].[uCommerce_ProductDefinitionField](DataTypeId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionField]') AND name = N'IX_uCommerce_ProductDefinitionField_Deleted') BEGIN DROP INDEX [IX_uCommerce_ProductDefinitionField_Deleted] ON [dbo].[uCommerce_ProductDefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinitionField_Deleted] ON [dbo].[uCommerce_ProductDefinitionField](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionField]') AND name = N'IX_uCommerce_ProductDefinitionField_DisplayOnSite') BEGIN DROP INDEX [IX_uCommerce_ProductDefinitionField_DisplayOnSite] ON [dbo].[uCommerce_ProductDefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinitionField_DisplayOnSite] ON [dbo].[uCommerce_ProductDefinitionField](DisplayOnSite ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionField]') AND name = N'IX_uCommerce_ProductDefinitionField_Facet') BEGIN DROP INDEX [IX_uCommerce_ProductDefinitionField_Facet] ON [dbo].[uCommerce_ProductDefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinitionField_Facet] ON [dbo].[uCommerce_ProductDefinitionField](Facet ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionField]') AND name = N'IX_uCommerce_ProductDefinitionField_Guid') BEGIN DROP INDEX [IX_uCommerce_ProductDefinitionField_Guid] ON [dbo].[uCommerce_ProductDefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinitionField_Guid] ON [dbo].[uCommerce_ProductDefinitionField](Guid ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionField]') AND name = N'IX_uCommerce_ProductDefinitionField_IsVariantProperty') BEGIN DROP INDEX [IX_uCommerce_ProductDefinitionField_IsVariantProperty] ON [dbo].[uCommerce_ProductDefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinitionField_IsVariantProperty] ON [dbo].[uCommerce_ProductDefinitionField](IsVariantProperty ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionField]') AND name = N'IX_uCommerce_ProductDefinitionField_Multilingual') BEGIN DROP INDEX [IX_uCommerce_ProductDefinitionField_Multilingual] ON [dbo].[uCommerce_ProductDefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinitionField_Multilingual] ON [dbo].[uCommerce_ProductDefinitionField](Multilingual ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionField]') AND name = N'IX_uCommerce_ProductDefinitionField_ProductDefinitionId') BEGIN DROP INDEX [IX_uCommerce_ProductDefinitionField_ProductDefinitionId] ON [dbo].[uCommerce_ProductDefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinitionField_ProductDefinitionId] ON [dbo].[uCommerce_ProductDefinitionField](ProductDefinitionId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionField]') AND name = N'IX_uCommerce_ProductDefinitionField_RenderInEditor') BEGIN DROP INDEX [IX_uCommerce_ProductDefinitionField_RenderInEditor] ON [dbo].[uCommerce_ProductDefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinitionField_RenderInEditor] ON [dbo].[uCommerce_ProductDefinitionField](RenderInEditor ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionField]') AND name = N'IX_uCommerce_ProductDefinitionField_Searchable') BEGIN DROP INDEX [IX_uCommerce_ProductDefinitionField_Searchable] ON [dbo].[uCommerce_ProductDefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinitionField_Searchable] ON [dbo].[uCommerce_ProductDefinitionField](Searchable ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionField]') AND name = N'IX_uCommerce_ProductDefinitionField_SortOrder') BEGIN DROP INDEX [IX_uCommerce_ProductDefinitionField_SortOrder] ON [dbo].[uCommerce_ProductDefinitionField]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinitionField_SortOrder] ON [dbo].[uCommerce_ProductDefinitionField](SortOrder ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionFieldDescription]') AND name = N'IX_uCommerce_ProductDefinitionFieldDescription_CultureCode') BEGIN DROP INDEX [IX_uCommerce_ProductDefinitionFieldDescription_CultureCode] ON [dbo].[uCommerce_ProductDefinitionFieldDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinitionFieldDescription_CultureCode] ON [dbo].[uCommerce_ProductDefinitionFieldDescription](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionFieldDescription]') AND name = N'IX_uCommerce_ProductDefinitionFieldDescription_ProductDefinitionFieldId') BEGIN DROP INDEX [IX_uCommerce_ProductDefinitionFieldDescription_ProductDefinitionFieldId] ON [dbo].[uCommerce_ProductDefinitionFieldDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinitionFieldDescription_ProductDefinitionFieldId] ON [dbo].[uCommerce_ProductDefinitionFieldDescription](ProductDefinitionFieldId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionRelation]') AND name = N'IX_uCommerce_ProductDefinitionRelation_ParentProductDefinitionId') BEGIN DROP INDEX [IX_uCommerce_ProductDefinitionRelation_ParentProductDefinitionId] ON [dbo].[uCommerce_ProductDefinitionRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinitionRelation_ParentProductDefinitionId] ON [dbo].[uCommerce_ProductDefinitionRelation](ParentProductDefinitionId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionRelation]') AND name = N'IX_uCommerce_ProductDefinitionRelation_ProductDefinitionId') BEGIN DROP INDEX [IX_uCommerce_ProductDefinitionRelation_ProductDefinitionId] ON [dbo].[uCommerce_ProductDefinitionRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinitionRelation_ProductDefinitionId] ON [dbo].[uCommerce_ProductDefinitionRelation](ProductDefinitionId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionRelation]') AND name = N'IX_uCommerce_ProductDefinitionRelation_SortOrder') BEGIN DROP INDEX [IX_uCommerce_ProductDefinitionRelation_SortOrder] ON [dbo].[uCommerce_ProductDefinitionRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDefinitionRelation_SortOrder] ON [dbo].[uCommerce_ProductDefinitionRelation](SortOrder ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDescription]') AND name = N'IX_uCommerce_ProductDescription_ProductId') BEGIN DROP INDEX [IX_uCommerce_ProductDescription_ProductId] ON [dbo].[uCommerce_ProductDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDescription_ProductId] ON [dbo].[uCommerce_ProductDescription](ProductId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDescription]') AND name = N'IX_uCommerce_ProductDescription_CultureCode') BEGIN DROP INDEX [IX_uCommerce_ProductDescription_CultureCode] ON [dbo].[uCommerce_ProductDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDescription_CultureCode] ON [dbo].[uCommerce_ProductDescription](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDescriptionProperty]') AND name = N'IX_uCommerce_ProductDescriptionProperty_ProductDefinitionFieldId') BEGIN DROP INDEX [IX_uCommerce_ProductDescriptionProperty_ProductDefinitionFieldId] ON [dbo].[uCommerce_ProductDescriptionProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDescriptionProperty_ProductDefinitionFieldId] ON [dbo].[uCommerce_ProductDescriptionProperty](ProductDefinitionFieldId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDescriptionProperty]') AND name = N'IX_uCommerce_ProductDescriptionProperty_ProductDescriptionId') BEGIN DROP INDEX [IX_uCommerce_ProductDescriptionProperty_ProductDescriptionId] ON [dbo].[uCommerce_ProductDescriptionProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductDescriptionProperty_ProductDescriptionId] ON [dbo].[uCommerce_ProductDescriptionProperty](ProductDescriptionId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductProperty]') AND name = N'IX_uCommerce_ProductProperty_ProductId') BEGIN DROP INDEX [IX_uCommerce_ProductProperty_ProductId] ON [dbo].[uCommerce_ProductProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductProperty_ProductId] ON [dbo].[uCommerce_ProductProperty](ProductId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductProperty]') AND name = N'IX_uCommerce_ProductProperty_ProductDefinitionFieldId') BEGIN DROP INDEX [IX_uCommerce_ProductProperty_ProductDefinitionFieldId] ON [dbo].[uCommerce_ProductProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductProperty_ProductDefinitionFieldId] ON [dbo].[uCommerce_ProductProperty](ProductDefinitionFieldId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductRelation]') AND name = N'IX_uCommerce_ProductRelation_ProductId') BEGIN DROP INDEX [IX_uCommerce_ProductRelation_ProductId] ON [dbo].[uCommerce_ProductRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductRelation_ProductId] ON [dbo].[uCommerce_ProductRelation](ProductId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductRelation]') AND name = N'IX_uCommerce_ProductRelation_ProductRelationTypeId') BEGIN DROP INDEX [IX_uCommerce_ProductRelation_ProductRelationTypeId] ON [dbo].[uCommerce_ProductRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductRelation_ProductRelationTypeId] ON [dbo].[uCommerce_ProductRelation](ProductRelationTypeId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductRelation]') AND name = N'IX_uCommerce_ProductRelation_RelatedProductId') BEGIN DROP INDEX [IX_uCommerce_ProductRelation_RelatedProductId] ON [dbo].[uCommerce_ProductRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductRelation_RelatedProductId] ON [dbo].[uCommerce_ProductRelation](RelatedProductId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductRelationType]') AND name = N'IX_uCommerce_ProductRelationType_Name') BEGIN DROP INDEX [IX_uCommerce_ProductRelationType_Name] ON [dbo].[uCommerce_ProductRelationType]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductRelationType_Name] ON [dbo].[uCommerce_ProductRelationType](Name ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductReview]') AND name = N'IX_uCommerce_ProductReview_CultureCode') BEGIN DROP INDEX [IX_uCommerce_ProductReview_CultureCode] ON [dbo].[uCommerce_ProductReview]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductReview_CultureCode] ON [dbo].[uCommerce_ProductReview](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductReview]') AND name = N'IX_uCommerce_ProductReview_CustomerId') BEGIN DROP INDEX [IX_uCommerce_ProductReview_CustomerId] ON [dbo].[uCommerce_ProductReview]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductReview_CustomerId] ON [dbo].[uCommerce_ProductReview](CustomerId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductReview]') AND name = N'IX_uCommerce_ProductReview_ProductCatalogGroupId') BEGIN DROP INDEX [IX_uCommerce_ProductReview_ProductCatalogGroupId] ON [dbo].[uCommerce_ProductReview]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductReview_ProductCatalogGroupId] ON [dbo].[uCommerce_ProductReview](ProductCatalogGroupId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductReview]') AND name = N'IX_uCommerce_ProductReview_ProductId') BEGIN DROP INDEX [IX_uCommerce_ProductReview_ProductId] ON [dbo].[uCommerce_ProductReview]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductReview_ProductId] ON [dbo].[uCommerce_ProductReview](ProductId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductReview]') AND name = N'IX_uCommerce_ProductReview_ProductReviewStatusId') BEGIN DROP INDEX [IX_uCommerce_ProductReview_ProductReviewStatusId] ON [dbo].[uCommerce_ProductReview]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductReview_ProductReviewStatusId] ON [dbo].[uCommerce_ProductReview](ProductReviewStatusId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductReview]') AND name = N'IX_uCommerce_ProductReview_Rating') BEGIN DROP INDEX [IX_uCommerce_ProductReview_Rating] ON [dbo].[uCommerce_ProductReview]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductReview_Rating] ON [dbo].[uCommerce_ProductReview](Rating ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductReviewComment]') AND name = N'IX_uCommerce_ProductReviewComment_CultureCode') BEGIN DROP INDEX [IX_uCommerce_ProductReviewComment_CultureCode] ON [dbo].[uCommerce_ProductReviewComment]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductReviewComment_CultureCode] ON [dbo].[uCommerce_ProductReviewComment](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductReviewComment]') AND name = N'IX_uCommerce_ProductReviewComment_CustomerId') BEGIN DROP INDEX [IX_uCommerce_ProductReviewComment_CustomerId] ON [dbo].[uCommerce_ProductReviewComment]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductReviewComment_CustomerId] ON [dbo].[uCommerce_ProductReviewComment](CustomerId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductReviewComment]') AND name = N'IX_uCommerce_ProductReviewComment_Helpful') BEGIN DROP INDEX [IX_uCommerce_ProductReviewComment_Helpful] ON [dbo].[uCommerce_ProductReviewComment]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductReviewComment_Helpful] ON [dbo].[uCommerce_ProductReviewComment](Helpful ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductReviewComment]') AND name = N'IX_uCommerce_ProductReviewComment_ProductReviewId') BEGIN DROP INDEX [IX_uCommerce_ProductReviewComment_ProductReviewId] ON [dbo].[uCommerce_ProductReviewComment]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductReviewComment_ProductReviewId] ON [dbo].[uCommerce_ProductReviewComment](ProductReviewId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductReviewComment]') AND name = N'IX_uCommerce_ProductReviewComment_ProductReviewStatusId') BEGIN DROP INDEX [IX_uCommerce_ProductReviewComment_ProductReviewStatusId] ON [dbo].[uCommerce_ProductReviewComment]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductReviewComment_ProductReviewStatusId] ON [dbo].[uCommerce_ProductReviewComment](ProductReviewStatusId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductReviewComment]') AND name = N'IX_uCommerce_ProductReviewComment_Unhelpful') BEGIN DROP INDEX [IX_uCommerce_ProductReviewComment_Unhelpful] ON [dbo].[uCommerce_ProductReviewComment]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductReviewComment_Unhelpful] ON [dbo].[uCommerce_ProductReviewComment](Unhelpful ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductReviewStatus]') AND name = N'IX_uCommerce_ProductReviewStatus_Deleted') BEGIN DROP INDEX [IX_uCommerce_ProductReviewStatus_Deleted] ON [dbo].[uCommerce_ProductReviewStatus]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ProductReviewStatus_Deleted] ON [dbo].[uCommerce_ProductReviewStatus](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PurchaseOrder]') AND name = N'IX_uCommerce_PurchaseOrder_BillingAddressId') BEGIN DROP INDEX [IX_uCommerce_PurchaseOrder_BillingAddressId] ON [dbo].[uCommerce_PurchaseOrder]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PurchaseOrder_BillingAddressId] ON [dbo].[uCommerce_PurchaseOrder](BillingAddressId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PurchaseOrder]') AND name = N'IX_uCommerce_PurchaseOrder_BasketId') BEGIN DROP INDEX [IX_uCommerce_PurchaseOrder_BasketId] ON [dbo].[uCommerce_PurchaseOrder]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PurchaseOrder_BasketId] ON [dbo].[uCommerce_PurchaseOrder](BasketId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PurchaseOrder]') AND name = N'IX_uCommerce_PurchaseOrder_CurrencyId') BEGIN DROP INDEX [IX_uCommerce_PurchaseOrder_CurrencyId] ON [dbo].[uCommerce_PurchaseOrder]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PurchaseOrder_CurrencyId] ON [dbo].[uCommerce_PurchaseOrder](CurrencyId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PurchaseOrder]') AND name = N'IX_uCommerce_PurchaseOrder_CustomerId') BEGIN DROP INDEX [IX_uCommerce_PurchaseOrder_CustomerId] ON [dbo].[uCommerce_PurchaseOrder]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PurchaseOrder_CustomerId] ON [dbo].[uCommerce_PurchaseOrder](CustomerId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PurchaseOrder]') AND name = N'IX_uCommerce_PurchaseOrder_OrderGuid') BEGIN DROP INDEX [IX_uCommerce_PurchaseOrder_OrderGuid] ON [dbo].[uCommerce_PurchaseOrder]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PurchaseOrder_OrderGuid] ON [dbo].[uCommerce_PurchaseOrder](OrderGuid ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PurchaseOrder]') AND name = N'IX_uCommerce_PurchaseOrder_OrderNumber') BEGIN DROP INDEX [IX_uCommerce_PurchaseOrder_OrderNumber] ON [dbo].[uCommerce_PurchaseOrder]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PurchaseOrder_OrderNumber] ON [dbo].[uCommerce_PurchaseOrder](OrderNumber ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PurchaseOrder]') AND name = N'IX_uCommerce_PurchaseOrder_OrderStatusId') BEGIN DROP INDEX [IX_uCommerce_PurchaseOrder_OrderStatusId] ON [dbo].[uCommerce_PurchaseOrder]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PurchaseOrder_OrderStatusId] ON [dbo].[uCommerce_PurchaseOrder](OrderStatusId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PurchaseOrder]') AND name = N'IX_uCommerce_PurchaseOrder_ProductCatalogGroupId') BEGIN DROP INDEX [IX_uCommerce_PurchaseOrder_ProductCatalogGroupId] ON [dbo].[uCommerce_PurchaseOrder]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_PurchaseOrder_ProductCatalogGroupId] ON [dbo].[uCommerce_PurchaseOrder](ProductCatalogGroupId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_QuantityTarget]') AND name = N'IX_uCommerce_QuantityTarget_TargetOrderLine') BEGIN DROP INDEX [IX_uCommerce_QuantityTarget_TargetOrderLine] ON [dbo].[uCommerce_QuantityTarget]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_QuantityTarget_TargetOrderLine] ON [dbo].[uCommerce_QuantityTarget](TargetOrderLine ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Role]') AND name = N'IX_uCommerce_Role_CultureCode') BEGIN DROP INDEX [IX_uCommerce_Role_CultureCode] ON [dbo].[uCommerce_Role]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Role_CultureCode] ON [dbo].[uCommerce_Role](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Role]') AND name = N'IX_uCommerce_Role_Name') BEGIN DROP INDEX [IX_uCommerce_Role_Name] ON [dbo].[uCommerce_Role]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Role_Name] ON [dbo].[uCommerce_Role](Name ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Role]') AND name = N'IX_uCommerce_Role_ParentRoleId') BEGIN DROP INDEX [IX_uCommerce_Role_ParentRoleId] ON [dbo].[uCommerce_Role]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Role_ParentRoleId] ON [dbo].[uCommerce_Role](ParentRoleId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Role]') AND name = N'IX_uCommerce_Role_PriceGroupId') BEGIN DROP INDEX [IX_uCommerce_Role_PriceGroupId] ON [dbo].[uCommerce_Role]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Role_PriceGroupId] ON [dbo].[uCommerce_Role](PriceGroupId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Role]') AND name = N'IX_uCommerce_Role_ProductCatalogGroupId') BEGIN DROP INDEX [IX_uCommerce_Role_ProductCatalogGroupId] ON [dbo].[uCommerce_Role]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Role_ProductCatalogGroupId] ON [dbo].[uCommerce_Role](ProductCatalogGroupId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Role]') AND name = N'IX_uCommerce_Role_ProductCatalogId') BEGIN DROP INDEX [IX_uCommerce_Role_ProductCatalogId] ON [dbo].[uCommerce_Role]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Role_ProductCatalogId] ON [dbo].[uCommerce_Role](ProductCatalogId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Role]') AND name = N'IX_uCommerce_Role_RoleType') BEGIN DROP INDEX [IX_uCommerce_Role_RoleType] ON [dbo].[uCommerce_Role]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Role_RoleType] ON [dbo].[uCommerce_Role](RoleType ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Shipment]') AND name = N'IX_uCommerce_Shipment_OrderId') BEGIN DROP INDEX [IX_uCommerce_Shipment_OrderId] ON [dbo].[uCommerce_Shipment]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Shipment_OrderId] ON [dbo].[uCommerce_Shipment](OrderId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Shipment]') AND name = N'IX_uCommerce_Shipment_ShipmentAddressId') BEGIN DROP INDEX [IX_uCommerce_Shipment_ShipmentAddressId] ON [dbo].[uCommerce_Shipment]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Shipment_ShipmentAddressId] ON [dbo].[uCommerce_Shipment](ShipmentAddressId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Shipment]') AND name = N'IX_uCommerce_Shipment_ShipmentName') BEGIN DROP INDEX [IX_uCommerce_Shipment_ShipmentName] ON [dbo].[uCommerce_Shipment]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Shipment_ShipmentName] ON [dbo].[uCommerce_Shipment](ShipmentName ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Shipment]') AND name = N'IX_uCommerce_Shipment_ShippingMethodId') BEGIN DROP INDEX [IX_uCommerce_Shipment_ShippingMethodId] ON [dbo].[uCommerce_Shipment]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Shipment_ShippingMethodId] ON [dbo].[uCommerce_Shipment](ShippingMethodId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ShipmentDiscountRelation]') AND name = N'IX_uCommerce_ShipmentDiscountRelation_DiscountId') BEGIN DROP INDEX [IX_uCommerce_ShipmentDiscountRelation_DiscountId] ON [dbo].[uCommerce_ShipmentDiscountRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ShipmentDiscountRelation_DiscountId] ON [dbo].[uCommerce_ShipmentDiscountRelation](DiscountId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ShipmentDiscountRelation]') AND name = N'IX_uCommerce_ShipmentDiscountRelation_ShipmentId') BEGIN DROP INDEX [IX_uCommerce_ShipmentDiscountRelation_ShipmentId] ON [dbo].[uCommerce_ShipmentDiscountRelation]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ShipmentDiscountRelation_ShipmentId] ON [dbo].[uCommerce_ShipmentDiscountRelation](ShipmentId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ShippingMethod]') AND name = N'IX_uCommerce_ShippingMethod_Deleted') BEGIN DROP INDEX [IX_uCommerce_ShippingMethod_Deleted] ON [dbo].[uCommerce_ShippingMethod]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ShippingMethod_Deleted] ON [dbo].[uCommerce_ShippingMethod](Deleted ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ShippingMethod]') AND name = N'IX_uCommerce_ShippingMethod_Name') BEGIN DROP INDEX [IX_uCommerce_ShippingMethod_Name] ON [dbo].[uCommerce_ShippingMethod]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ShippingMethod_Name] ON [dbo].[uCommerce_ShippingMethod](Name ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ShippingMethod]') AND name = N'IX_uCommerce_ShippingMethod_PaymentMethodId') BEGIN DROP INDEX [IX_uCommerce_ShippingMethod_PaymentMethodId] ON [dbo].[uCommerce_ShippingMethod]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ShippingMethod_PaymentMethodId] ON [dbo].[uCommerce_ShippingMethod](PaymentMethodId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ShippingMethod]') AND name = N'IX_uCommerce_ShippingMethod_ServiceName') BEGIN DROP INDEX [IX_uCommerce_ShippingMethod_ServiceName] ON [dbo].[uCommerce_ShippingMethod]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ShippingMethod_ServiceName] ON [dbo].[uCommerce_ShippingMethod](ServiceName ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ShippingMethodDescription]') AND name = N'IX_uCommerce_ShippingMethodDescription_CultureCode') BEGIN DROP INDEX [IX_uCommerce_ShippingMethodDescription_CultureCode] ON [dbo].[uCommerce_ShippingMethodDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ShippingMethodDescription_CultureCode] ON [dbo].[uCommerce_ShippingMethodDescription](CultureCode ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ShippingMethodDescription]') AND name = N'IX_uCommerce_ShippingMethodDescription_ShippingMethodId') BEGIN DROP INDEX [IX_uCommerce_ShippingMethodDescription_ShippingMethodId] ON [dbo].[uCommerce_ShippingMethodDescription]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ShippingMethodDescription_ShippingMethodId] ON [dbo].[uCommerce_ShippingMethodDescription](ShippingMethodId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ShippingMethodPrice]') AND name = N'IX_uCommerce_ShippingMethodPrice_CurrencyId') BEGIN DROP INDEX [IX_uCommerce_ShippingMethodPrice_CurrencyId] ON [dbo].[uCommerce_ShippingMethodPrice]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ShippingMethodPrice_CurrencyId] ON [dbo].[uCommerce_ShippingMethodPrice](CurrencyId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ShippingMethodPrice]') AND name = N'IX_uCommerce_ShippingMethodPrice_PriceGroupId') BEGIN DROP INDEX [IX_uCommerce_ShippingMethodPrice_PriceGroupId] ON [dbo].[uCommerce_ShippingMethodPrice]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ShippingMethodPrice_PriceGroupId] ON [dbo].[uCommerce_ShippingMethodPrice](PriceGroupId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ShippingMethodPrice]') AND name = N'IX_uCommerce_ShippingMethodPrice_ShippingMethodId') BEGIN DROP INDEX [IX_uCommerce_ShippingMethodPrice_ShippingMethodId] ON [dbo].[uCommerce_ShippingMethodPrice]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_ShippingMethodPrice_ShippingMethodId] ON [dbo].[uCommerce_ShippingMethodPrice](ShippingMethodId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_SystemVersion]') AND name = N'IX_uCommerce_SystemVersion_SchemaVersion') BEGIN DROP INDEX [IX_uCommerce_SystemVersion_SchemaVersion] ON [dbo].[uCommerce_SystemVersion]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_SystemVersion_SchemaVersion] ON [dbo].[uCommerce_SystemVersion](SchemaVersion ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Target]') AND name = N'IX_uCommerce_Target_CampaignItemId') BEGIN DROP INDEX [IX_uCommerce_Target_CampaignItemId] ON [dbo].[uCommerce_Target]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Target_CampaignItemId] ON [dbo].[uCommerce_Target](CampaignItemId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Target]') AND name = N'IX_uCommerce_Target_EnabledForApply') BEGIN DROP INDEX [IX_uCommerce_Target_EnabledForApply] ON [dbo].[uCommerce_Target]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Target_EnabledForApply] ON [dbo].[uCommerce_Target](EnabledForApply ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Target]') AND name = N'IX_uCommerce_Target_EnabledForDisplay') BEGIN DROP INDEX [IX_uCommerce_Target_EnabledForDisplay] ON [dbo].[uCommerce_Target]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_Target_EnabledForDisplay] ON [dbo].[uCommerce_Target](EnabledForDisplay ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_UserGroupPermission]') AND name = N'IX_uCommerce_UserGroupPermission_RoleId') BEGIN DROP INDEX [IX_uCommerce_UserGroupPermission_RoleId] ON [dbo].[uCommerce_UserGroupPermission]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_UserGroupPermission_RoleId] ON [dbo].[uCommerce_UserGroupPermission](RoleId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_UserGroupPermission]') AND name = N'IX_uCommerce_UserGroupPermission_UserGroupId') BEGIN DROP INDEX [IX_uCommerce_UserGroupPermission_UserGroupId] ON [dbo].[uCommerce_UserGroupPermission]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_UserGroupPermission_UserGroupId] ON [dbo].[uCommerce_UserGroupPermission](UserGroupId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_UserWidgetSetting]') AND name = N'IX_uCommerce_UserWidgetSetting_UserId') BEGIN DROP INDEX [IX_uCommerce_UserWidgetSetting_UserId] ON [dbo].[uCommerce_UserWidgetSetting]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_UserWidgetSetting_UserId] ON [dbo].[uCommerce_UserWidgetSetting](UserId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_UserWidgetSettingProperty]') AND name = N'IX_uCommerce_UserWidgetSettingProperty_UserWidgetSettingId') BEGIN DROP INDEX [IX_uCommerce_UserWidgetSettingProperty_UserWidgetSettingId] ON [dbo].[uCommerce_UserWidgetSettingProperty]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_UserWidgetSettingProperty_UserWidgetSettingId] ON [dbo].[uCommerce_UserWidgetSettingProperty](UserWidgetSettingId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_VoucherCode]') AND name = N'IX_uCommerce_VoucherCode_MaxUses') BEGIN DROP INDEX [IX_uCommerce_VoucherCode_MaxUses] ON [dbo].[uCommerce_VoucherCode]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_VoucherCode_MaxUses] ON [dbo].[uCommerce_VoucherCode](MaxUses ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_VoucherCode]') AND name = N'IX_uCommerce_VoucherCode_NumberUsed') BEGIN DROP INDEX [IX_uCommerce_VoucherCode_NumberUsed] ON [dbo].[uCommerce_VoucherCode]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_VoucherCode_NumberUsed] ON [dbo].[uCommerce_VoucherCode](NumberUsed ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_VoucherCode]') AND name = N'IX_uCommerce_VoucherCode_TargetId') BEGIN DROP INDEX [IX_uCommerce_VoucherCode_TargetId] ON [dbo].[uCommerce_VoucherCode]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_VoucherCode_TargetId] ON [dbo].[uCommerce_VoucherCode](TargetId ASC); GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_VoucherTarget]') AND name = N'IX_uCommerce_VoucherTarget_Name') BEGIN DROP INDEX [IX_uCommerce_VoucherTarget_Name] ON [dbo].[uCommerce_VoucherTarget]; END GO CREATE NONCLUSTERED INDEX [IX_uCommerce_VoucherTarget_Name] ON [dbo].[uCommerce_VoucherTarget](Name ASC); GO WITH CTE AS( SELECT CategoryDescriptionId, CultureCode, CategoryId, RN = ROW_NUMBER()OVER(PARTITION BY CultureCode, CategoryId ORDER BY CategoryDescriptionId DESC) FROM uCommerce_CategoryDescription ) DELETE FROM CTE WHERE RN > 1 GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CategoryDescription]') AND name = N'UX_uCommerce_CategoryDescription_CultureCode_CategoryId') BEGIN DROP INDEX [UX_uCommerce_CategoryDescription_CultureCode_CategoryId] ON [dbo].[uCommerce_CategoryDescription]; END GO CREATE UNIQUE NONCLUSTERED INDEX [UX_uCommerce_CategoryDescription_CultureCode_CategoryId] ON [dbo].[uCommerce_CategoryDescription]([CultureCode] ASC, [CategoryId] ASC); GO WITH CTE AS( SELECT CategoryId, ProductId, RN = ROW_NUMBER()OVER(PARTITION BY CategoryId, ProductId ORDER BY CategoryProductRelationId DESC) FROM uCommerce_CategoryProductRelation ) DELETE FROM CTE WHERE RN > 1 GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CategoryProductRelation]') AND name = N'UX_uCommerce_CategoryProductRelation_CategoryId_ProductId') BEGIN DROP INDEX [UX_uCommerce_CategoryProductRelation_CategoryId_ProductId] ON [dbo].[uCommerce_CategoryProductRelation]; END GO CREATE UNIQUE NONCLUSTERED INDEX [UX_uCommerce_CategoryProductRelation_CategoryId_ProductId] ON [dbo].[uCommerce_CategoryProductRelation]([CategoryId] ASC, [ProductId] ASC); GO WITH CTE AS( SELECT CategoryPropertyId, CategoryId, CultureCode, DefinitionFieldId, RN = ROW_NUMBER()OVER(PARTITION BY CategoryId, CultureCode, DefinitionFieldId ORDER BY CategoryPropertyId DESC) FROM uCommerce_CategoryProperty ) DELETE FROM CTE WHERE RN > 1 GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_CategoryProperty]') AND name = N'UX_uCommerce_CategoryProperty_CategoryId_CultureCode_DefinitionFieldId') BEGIN DROP INDEX [UX_uCommerce_CategoryProperty_CategoryId_CultureCode_DefinitionFieldId] ON [dbo].[uCommerce_CategoryProperty]; END GO CREATE UNIQUE NONCLUSTERED INDEX [UX_uCommerce_CategoryProperty_CategoryId_CultureCode_DefinitionFieldId] ON [dbo].[uCommerce_CategoryProperty]([CategoryId] ASC, [CultureCode] ASC, [DefinitionFieldId] ASC); GO WITH CTE AS( SELECT PaymentMethodPropertyId, PaymentMethodId, CultureCode, DefinitionFieldId, RN = ROW_NUMBER()OVER(PARTITION BY PaymentMethodId, CultureCode, DefinitionFieldId ORDER BY PaymentMethodPropertyId DESC) FROM uCommerce_PaymentMethodProperty ) DELETE FROM CTE WHERE RN > 1 GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PaymentMethodProperty]') AND name = N'UX_uCommerce_PaymentMethodProperty_PaymentMethodId_CultureCode_DefinitionFieldId') BEGIN DROP INDEX [UX_uCommerce_PaymentMethodProperty_PaymentMethodId_CultureCode_DefinitionFieldId] ON [dbo].[uCommerce_PaymentMethodProperty]; END GO CREATE UNIQUE NONCLUSTERED INDEX [UX_uCommerce_PaymentMethodProperty_PaymentMethodId_CultureCode_DefinitionFieldId] ON [dbo].[uCommerce_PaymentMethodProperty]([PaymentMethodId] ASC, [CultureCode] ASC, [DefinitionFieldId] ASC); GO WITH CTE AS( SELECT UserId, RoleId, RN = ROW_NUMBER()OVER(PARTITION BY UserId, RoleId ORDER BY PermissionId DESC) FROM uCommerce_Permission ) DELETE FROM CTE WHERE RN > 1 GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Permission]') AND name = N'UX_uCommerce_Permission_UserId_RoleId') BEGIN DROP INDEX [UX_uCommerce_Permission_UserId_RoleId] ON [dbo].[uCommerce_Permission]; END GO CREATE UNIQUE NONCLUSTERED INDEX [UX_uCommerce_Permission_UserId_RoleId] ON [dbo].[uCommerce_Permission]([UserId] ASC, [RoleId] ASC); GO WITH CTE AS( SELECT PriceGroupPriceId, ProductId, PriceGroupId, RN = ROW_NUMBER()OVER(PARTITION BY ProductId, PriceGroupId ORDER BY PriceGroupPriceId DESC) FROM uCommerce_PriceGroupPrice ) DELETE FROM CTE WHERE RN > 1 GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_PriceGroupPrice]') AND name = N'UX_uCommerce_PriceGroupPrice_ProductId_PriceGroupId') BEGIN DROP INDEX [UX_uCommerce_PriceGroupPrice_ProductId_PriceGroupId] ON [dbo].[uCommerce_PriceGroupPrice]; END GO CREATE UNIQUE NONCLUSTERED INDEX [UX_uCommerce_PriceGroupPrice_ProductId_PriceGroupId] ON [dbo].[uCommerce_PriceGroupPrice]([ProductId] ASC, [PriceGroupId] ASC); GO WITH CTE AS( SELECT ProductId, Sku, VariantSku, RN = ROW_NUMBER()OVER(PARTITION BY Sku, VariantSku ORDER BY ProductId DESC) FROM uCommerce_Product ) DELETE FROM CTE WHERE RN > 1 GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_Product]') AND name = N'UX_uCommerce_Product_Sku_VariantSku') BEGIN DROP INDEX [UX_uCommerce_Product_Sku_VariantSku] ON [dbo].[uCommerce_Product]; END GO CREATE UNIQUE NONCLUSTERED INDEX [UX_uCommerce_Product_Sku_VariantSku] ON [dbo].[uCommerce_Product]([Sku] ASC, [VariantSku] ASC); GO WITH CTE AS( SELECT ProductCatalogId, Name, ProductCatalogGroupId, RN = ROW_NUMBER()OVER(PARTITION BY Name, ProductCatalogGroupId ORDER BY ProductCatalogId DESC) FROM uCommerce_ProductCatalog ) DELETE FROM CTE WHERE RN > 1 GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalog]') AND name = N'UX_uCommerce_ProductCatalog_Name_ProductCatalogGroupId') BEGIN DROP INDEX [UX_uCommerce_ProductCatalog_Name_ProductCatalogGroupId] ON [dbo].[uCommerce_ProductCatalog]; END GO CREATE UNIQUE NONCLUSTERED INDEX [UX_uCommerce_ProductCatalog_Name_ProductCatalogGroupId] ON [dbo].[uCommerce_ProductCatalog]([Name] ASC, [ProductCatalogGroupId] ASC); GO WITH CTE AS( SELECT ProductCatalogDescriptionId, ProductCatalogId, CultureCode, RN = ROW_NUMBER()OVER(PARTITION BY ProductCatalogId, CultureCode ORDER BY ProductCatalogDescriptionId DESC) FROM uCommerce_ProductCatalogDescription ) DELETE FROM CTE WHERE RN > 1 GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductCatalogDescription]') AND name = N'UX_uCommerce_ProductCatalogDescription_ProductCatalogId_CultureCode') BEGIN DROP INDEX [UX_uCommerce_ProductCatalogDescription_ProductCatalogId_CultureCode] ON [dbo].[uCommerce_ProductCatalogDescription]; END GO CREATE UNIQUE NONCLUSTERED INDEX [UX_uCommerce_ProductCatalogDescription_ProductCatalogId_CultureCode] ON [dbo].[uCommerce_ProductCatalogDescription]([ProductCatalogId] ASC, [CultureCode] ASC); GO WITH CTE AS( SELECT ProductDefinitionFieldDescriptionId, CultureCode, ProductDefinitionFieldId, RN = ROW_NUMBER()OVER(PARTITION BY CultureCode, ProductDefinitionFieldId ORDER BY ProductDefinitionFieldDescriptionId DESC) FROM uCommerce_ProductDefinitionFieldDescription ) DELETE FROM CTE WHERE RN > 1 GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDefinitionFieldDescription]') AND name = N'UX_uCommerce_ProductDefinitionFieldDescription_CultureCode_ProductDefinitionFieldId') BEGIN DROP INDEX [UX_uCommerce_ProductDefinitionFieldDescription_CultureCode_ProductDefinitionFieldId] ON [dbo].[uCommerce_ProductDefinitionFieldDescription]; END GO CREATE UNIQUE NONCLUSTERED INDEX [UX_uCommerce_ProductDefinitionFieldDescription_CultureCode_ProductDefinitionFieldId] ON [dbo].[uCommerce_ProductDefinitionFieldDescription]([CultureCode] ASC, [ProductDefinitionFieldId] ASC); GO WITH CTE AS( SELECT ProductDescriptionId, ProductId, CultureCode, RN = ROW_NUMBER()OVER(PARTITION BY ProductId, CultureCode ORDER BY ProductDescriptionId DESC) FROM uCommerce_ProductDescription ) DELETE FROM CTE WHERE RN > 1 GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDescription]') AND name = N'UX_uCommerce_ProductDescription_ProductId_CultureCode') BEGIN DROP INDEX [UX_uCommerce_ProductDescription_ProductId_CultureCode] ON [dbo].[uCommerce_ProductDescription]; END GO CREATE UNIQUE NONCLUSTERED INDEX [UX_uCommerce_ProductDescription_ProductId_CultureCode] ON [dbo].[uCommerce_ProductDescription]([ProductId] ASC, [CultureCode] ASC); GO WITH CTE AS( SELECT ProductDescriptionPropertyId, ProductDescriptionId, ProductDefinitionFieldId, RN = ROW_NUMBER()OVER(PARTITION BY ProductDescriptionId, ProductDefinitionFieldId ORDER BY ProductDescriptionPropertyId DESC) FROM uCommerce_ProductDescriptionProperty ) DELETE FROM CTE WHERE RN > 1 GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductDescriptionProperty]') AND name = N'UX_uCommerce_ProductDescriptionProperty_ProductDescriptionId_ProductDefinitionFieldId') BEGIN DROP INDEX [UX_uCommerce_ProductDescriptionProperty_ProductDescriptionId_ProductDefinitionFieldId] ON [dbo].[uCommerce_ProductDescriptionProperty]; END GO CREATE UNIQUE NONCLUSTERED INDEX [UX_uCommerce_ProductDescriptionProperty_ProductDescriptionId_ProductDefinitionFieldId] ON [dbo].[uCommerce_ProductDescriptionProperty]([ProductDescriptionId] ASC, [ProductDefinitionFieldId] ASC); GO WITH CTE AS( SELECT ProductPropertyId, ProductId, ProductDefinitionFieldId, RN = ROW_NUMBER()OVER(PARTITION BY ProductId, ProductDefinitionFieldId ORDER BY ProductPropertyId DESC) FROM uCommerce_ProductProperty ) DELETE FROM CTE WHERE RN > 1 GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductProperty]') AND name = N'UX_uCommerce_ProductProperty_ProductId_ProductDefinitionFieldId') BEGIN DROP INDEX [UX_uCommerce_ProductProperty_ProductId_ProductDefinitionFieldId] ON [dbo].[uCommerce_ProductProperty]; END GO CREATE UNIQUE NONCLUSTERED INDEX [UX_uCommerce_ProductProperty_ProductId_ProductDefinitionFieldId] ON [dbo].[uCommerce_ProductProperty]([ProductId] ASC, [ProductDefinitionFieldId] ASC); GO WITH CTE AS( SELECT ProductRelationId, ProductId, RelatedProductId, ProductRelationTypeId, RN = ROW_NUMBER()OVER(PARTITION BY ProductId, RelatedProductId, ProductRelationTypeId ORDER BY ProductRelationId DESC) FROM uCommerce_ProductRelation ) DELETE FROM CTE WHERE RN > 1 GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_ProductRelation]') AND name = N'UX_uCommerce_ProductRelation_ProductId_RelatedProductId_ProductRelationTypeId') BEGIN DROP INDEX [UX_uCommerce_ProductRelation_ProductId_RelatedProductId_ProductRelationTypeId] ON [dbo].[uCommerce_ProductRelation]; END GO CREATE UNIQUE NONCLUSTERED INDEX [UX_uCommerce_ProductRelation_ProductId_RelatedProductId_ProductRelationTypeId] ON [dbo].[uCommerce_ProductRelation]([ProductId] ASC, [RelatedProductId] ASC, [ProductRelationTypeId] ASC); GO WITH CTE AS( SELECT UserId, ExternalId, RN = ROW_NUMBER()OVER(PARTITION BY ExternalId ORDER BY UserId DESC) FROM uCommerce_User ) DELETE FROM CTE WHERE RN > 1 GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_User]') AND name = N'UX_uCommerce_User_ExternalId') BEGIN DROP INDEX [UX_uCommerce_User_ExternalId] ON [dbo].[uCommerce_User]; END GO CREATE UNIQUE NONCLUSTERED INDEX [UX_uCommerce_User_ExternalId] ON [dbo].[uCommerce_User]([ExternalId] ASC); GO WITH CTE AS( SELECT UserGroupId, ExternalId, RN = ROW_NUMBER()OVER(PARTITION BY ExternalId ORDER BY UserGroupId DESC) FROM uCommerce_UserGroup ) DELETE FROM CTE WHERE RN > 1 GO IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[uCommerce_UserGroup]') AND name = N'UX_uCommerce_UserGroup_ExternalId') BEGIN DROP INDEX [UX_uCommerce_UserGroup_ExternalId] ON [dbo].[uCommerce_UserGroup]; END GO CREATE UNIQUE NONCLUSTERED INDEX [UX_uCommerce_UserGroup_ExternalId] ON [dbo].[uCommerce_UserGroup]([ExternalId] ASC); GO ALTER TABLE [dbo].[uCommerce_EntityUiDescription] WITH NOCHECK ADD CONSTRAINT [FK_uCommerce_EntityUiDescription_uCommerce_EntityUi] FOREIGN KEY ([EntityUiId]) REFERENCES [dbo].[uCommerce_EntityUi] ([EntityUiId]); GO ALTER TABLE [dbo].[uCommerce_EntityUiDescription] WITH CHECK CHECK CONSTRAINT [FK_uCommerce_EntityUiDescription_uCommerce_EntityUi]; GO
<filename>api/db/migrations/000002_create_parties_table.up.sql CREATE TABLE IF NOT EXISTS parties ( id serial NOT NULL, host_id int4 NULL, "name" VARCHAR (355) NULL, "comments" VARCHAR (500) NULL, CONSTRAINT parties_pkey1 PRIMARY KEY (id) );
<reponame>Gigelf-evo-X/evo-X DELETE FROM `script_texts` WHERE `entry` BETWEEN -1533039 AND -1533000; INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES (-1533000,'Ahh... welcome to my parlor.',8788,1,0,'anubrekhan SAY_GREET'), (-1533001,'Just a little taste...',8785,1,0,'anubrekhan SAY_AGGRO1'), (-1533002,'There is no way out.',8786,1,0,'anubrekhan SAY_AGGRO2'), (-1533003,'Yes, Run! It makes the blood pump faster!',8787,1,0,'anubrekhan SAY_AGGRO3'), (-1533004,'I hear little hearts beating. Yesss... beating faster now. Soon the beating will stop.',8790,1,0,'anubrekhan SAY_TAUNT1'), (-1533005,'Where to go? What to do? So many choices that all end in pain, end in death.',8791,1,0,'anubrekhan SAY_TAUNT2'), (-1533006,'Which one shall I eat first? So difficult to choose... the all smell so delicious.',8792,1,0,'anubrekhan SAY_TAUNT3'), (-1533007,'Closer now... tasty morsels. I\'ve been too long without food. Without blood to drink.',8793,1,0,'anubrekhan SAY_TAUNT4'), (-1533008,'Shh... it will all be over soon.',8789,1,0,'anubrekhan SAY_SLAY'), (-1533009,'Your old lives, your mortal desires, mean nothing. You are acolytes of the master now, and you will serve the cause without question! The greatest glory is to die in the master\'s service!',8799,1,0,'faerlina SAY_GREET'), (-1533010,'Slay them in the master\'s name!',8794,1,0,'faerlina SAY_AGGRO1'), (-1533011,'You cannot hide from me!',8795,1,0,'faerlina SAY_AGGRO2'), (-1533012,'Kneel before me, worm!',8796,1,0,'faerlina SAY_AGGRO3'), (-1533013,'Run while you still can!',8797,1,0,'faerlina SAY_AGGRO4'), (-1533014,'You have failed!',8800,1,0,'faerlina SAY_SLAY1'), (-1533015,'Pathetic wretch!',8801,1,0,'faerlina SAY_SLAY2'), (-1533016,'The master... will avenge me!',8798,1,0,'faerlina SAY_DEATH'), (-1533017,'Patchwerk want to play!',8909,1,0,'patchwerk SAY_AGGRO1'), (-1533018,'Kel\'Thuzad make Patchwerk his Avatar of War!',8910,1,0,'patchwerk SAY_AGGRO2'), (-1533019,'No more play?',8912,1,0,'patchwerk SAY_SLAY'), (-1533020,'What happened to... Patch...',8911,1,0,'patchwerk SAY_DEATH'), (-1533021,'goes into a berserker rage!',0,2,0,'patchwerk EMOTE_BERSERK'), (-1533022,'becomes enraged!',0,2,0,'patchwerk EMOTE_ENRAGE'), (-1533023,'Stalagg crush you!',8864,1,0,'stalagg SAY_STAL_AGGRO'), (-1533024,'Stalagg kill!',8866,1,0,'stalagg SAY_STAL_SLAY'), (-1533025,'Master save me...',8865,1,0,'stalagg SAY_STAL_DEATH'), (-1533026,'Feed you to master!',8802,1,0,'feugen SAY_FEUG_AGGRO'), (-1533027,'Feugen make master happy!',8804,1,0,'feugen SAY_FEUG_SLAY'), (-1533028,'No... more... Feugen...',8803,1,0,'feugen SAY_FEUG_DEATH'), (-1533029,'You are too late... I... must... OBEY!',8872,1,0,'thaddius SAY_GREET'), (-1533030,'KILL!',8867,1,0,'thaddius SAY_AGGRO1'), (-1533031,'EAT YOUR BONES!',8868,1,0,'thaddius SAY_AGGRO2'), (-1533032,'BREAK YOU!',8869,1,0,'thaddius SAY_AGGRO3'), (-1533033,'You die now!',8877,1,0,'thaddius SAY_SLAY'), (-1533034,'Now YOU feel pain!',8871,1,0,'thaddius SAY_ELECT'), (-1533035,'Thank... you...',8870,1,0,'thaddius SAY_DEATH'), (-1533036,'Pleeease!',8873,1,0,'thaddius SAY_SCREAM1'), (-1533037,'Stop, make it stop!',8874,1,0,'thaddius SAY_SCREAM2'), (-1533038,'Help me! Save me!',8875,1,0,'thaddius SAY_SCREAM3'), (-1533039,'Please, nooo!',8876,1,0,'thaddius SAY_SCREAM4');
create or replace package sec_session_property as procedure upsert ( p_session_id in sec_session_properties.session_id%TYPE, p_module in sec_session_properties.module%TYPE, p_name in sec_session_properties.property_name%TYPE, p_value in sec_session_properties.property_value%TYPE, p_secure_p in sec_session_properties.secure_p%TYPE, p_last_hit in sec_session_properties.last_hit%TYPE ); end sec_session_property; / show errors create or replace package body sec_session_property as procedure upsert( p_session_id in sec_session_properties.session_id%TYPE, p_module in sec_session_properties.module%TYPE, p_name in sec_session_properties.property_name%TYPE, p_value in sec_session_properties.property_value%TYPE, p_secure_p in sec_session_properties.secure_p%TYPE, p_last_hit in sec_session_properties.last_hit%TYPE ) is BEGIN insert into sec_session_properties (session_id, module, property_name, secure_p, last_hit) values (p_session_id, p_module, p_name, p_secure_p, p_last_hit); exception when dup_val_on_index then update sec_session_properties set property_value = p_value, secure_p = p_secure_p, last_hit = p_last_hit where session_id = p_session_id and module = p_module and property_name = p_name; END upsert; end sec_session_property; / show errors
<reponame>tbowan/luchronia #------------------------------------------------------------------------------ # Suppression de la table des ruines enfouies #------------------------------------------------------------------------------ DROP TABLE game_building_lost ;
<filename>tiankx/sql/user_level_smooth.sql create table if not exists ( date string comment '日期', name string comment '姓名', id string comment '编号', level string comment '等级' ) ;
CREATE TABLE [dbo].[NewsReleaseTag] ( [ReleaseId] UNIQUEIDENTIFIER NOT NULL, [TagId] UNIQUEIDENTIFIER NOT NULL, CONSTRAINT [PK_NewsReleaseTag] PRIMARY KEY CLUSTERED ([ReleaseId] ASC, [TagId] ASC), CONSTRAINT [FK_NewsReleaseTag_NewsRelease] FOREIGN KEY ([ReleaseId]) REFERENCES [dbo].[NewsRelease] ([Id]) ON DELETE CASCADE, CONSTRAINT [FK_NewsReleaseTag_Tag] FOREIGN KEY ([TagId]) REFERENCES [dbo].[Tag] ([Id]) );
<filename>src/main/resources/org/support/project/web/dao/sql/HashConfigsDao/HashConfigsDao_physical_select_on_key.sql SELECT * FROM HASH_CONFIGS WHERE SYSTEM_NAME = ? ;
<gh_stars>10-100 # --- !Downs ALTER TABLE hierarchyNode DROP COLUMN shortcut; # --- !Ups ALTER TABLE hierarchyNode ADD shortcut varchar(255);
select fn_db_add_column('vds_dynamic', 'hbas', 'text default null');
ALTER TABLE public.topper ADD COLUMN normal_map VARCHAR(255);
## Inicio popula tabela clientes insert into comclien values( 1 ,'0001','<NAME>' ,'AARONSON FURNITURE LTD' ,'2015-02-17 23:14:50', '17.807.928/0001-85', '(21) 8167-6584' ,'QUEIMADOS' ,'RJ' ); insert into comclien values( 2 ,'0002','LITTLER ' ,'LITTLER LTDA' ,'2015-02-17 23:14:50', '55.643.605/0001-92', '(27) 7990-9502' ,'SERRA' ,'ES' ); insert into comclien values( 3 ,'0003','KELSEY NEIGHBOURHOOD' ,'KELSEY NEIGHBOURHOOD' ,'2015-02-17 23:14:50', '05.202.361/0001-34', '(11) 4206-9703' ,'BRAGANÇA PAULISTA' ,'SP' ); insert into comclien values( 4 ,'0004','GREAT AMERICAN MUSIC' ,'GREAT AMERICAN MUSIC' ,'2015-02-17 23:14:50', '11.880.735/0001-73', '(75) 7815-7801' ,'SAN<NAME>','BA' ); insert into comclien values( 5 ,'0005','LIFE PLAN COUNSELLING' ,'LIFE PLAN COUNSELLING' ,'2015-02-17 23:14:50', '75.185.467/0001-52', '(17) 4038-9355' ,'BEBEDOURO' ,'SP' ); insert into comclien values( 6 ,'0006','PRACTI-PLAN' ,'PRACTI-PLAN LTDA' ,'2015-02-17 23:14:50', '32.518.106/0001-78', '(28) 2267-6159' ,'CACHOEIRO DE ITAPEMIRI','ES' ); insert into comclien values( 7 ,'0007','SPORTSWEST' ,'SPORTSWEST LTDA' ,'2015-02-17 23:14:50', '83.175.645/0001-92', '(61) 4094-7184' ,'TAGUATINGA' ,'DF' ); insert into comclien values( 8 ,'0008','HUGHES MARKETS' ,'HUGHES MARKETS LTDA' ,'2015-02-17 23:14:50', '04.728.160/0001-02', '(21) 7984-9809' ,'RIO DE JANEIRO' ,'RJ' ); insert into comclien values( 9 ,'0009','AUTO WORKS' ,'AUTO WORKS LTDA' ,'2015-02-17 23:14:50', '08.271.985/0001-00', '(21) 8548-5555' ,'RIO DE JANEIRO' ,'RJ' ); insert into comclien values( 10 ,'00010','DAHLKEMPER ' ,'DAHLKEMPER LTDA' ,'2015-02-17 23:14:50', '49.815.047/0001-00','(11) 4519-7670' ,'<NAME>' ,'SP' ); ## Fim popula tabela clientes ## Inicio popula tabela Vendedores insert into comvende values(1,'0001', '<NAME>','<NAME>', '(47) 7535-8144',12 ); insert into comvende values(2,'0002', '<NAME>', 'JÚLIA GOMES LTDA', '(12) 8037-6661',25 ); ## Fim popula tabela Vendedores ## Inicio popula tabela Fornecedores insert into comforne values(1 ,'0001', 'DUN RITE LAWN MAINTENANCE' ,'DUN RITE LAWN MAINTENANCE LTDA' ,'(85) 7886-8837' ); insert into comforne values(2 ,'0002', 'SEWFRO FABRICS' ,'SEWFRO FABRICS LTDA' ,'(91) 5171-8483' ); ## Fim popula tabela Fornecedores ## Inicio popula tabela Produtos insert into comprodu values( 1 , '123131', 'NOTEBOOK' ,'1251.29' ,'A', 1 ); insert into comprodu values( 2 , '123223', 'SMARTPHONE','1242.21' ,'A', 2 ); insert into comprodu values( 3 , '1231', 'DESKTOP' ,'1241.21' ,'A', 1 ); insert into comprodu values( 4 , '142123', 'TELEVISÃO' ,'2564.92' ,'A', 2 ); insert into comprodu values( 5 , '7684', 'DRONE' ,'2325.32' ,'A', 1 ); ## Fim popula tabela Produtos ## Inicio popula tabela Vendas ## n_numevenda c_codivenda n_numeclien n_numeforne n_numevende n_valovenda n_descvenda n_totavenda d_datavenda insert into comvenda values(1 , '1' , 1 , 1 , 1 , '25141.02' , 0 , '25141.02' , '2015-01-01' ); insert into comvenda values(2 , '2' , 2 , 2 , 2 , '12476.58' , 0 , '12476.58' , '2015-01-02' ); insert into comvenda values(3 , '3' , 3 , 1 , 1 , '16257.32' , 0 , '16257.32' , '2015-01-03' ); insert into comvenda values(4 , '4' , 4 , 2 , 2 , '8704.55', 0 , '8704.55' , '2015-01-04' ); insert into comvenda values(5 , '5' , 5 , 1 , 1 , '13078.81', 0 , '13078.81' , '2015-01-01' ); insert into comvenda values(6 , '6' , 6 , 2 , 2 , '6079.19', 0 , '6079.19' , '2015-01-02' ); insert into comvenda values(7 , '7' , 7 , 1 , 1 , '7451.26', 0 , '7451.26' , '2015-01-03' ); insert into comvenda values(8 , '8' , 8 , 2 , 2 , '15380.47', 0 , '15380.47' , '2015-01-04' ); insert into comvenda values(9 , '9' , 9 , 1 , 1 , '13508.34', 0 , '13508.34' , '2015-01-01' ); insert into comvenda values(10 , '10' , 1 , 2 , 2 , '20315.07', 0 , '20315.07' , '2015-01-02' ); insert into comvenda values(11 , '11' , 1 , 1 , 1 , '8704.55', 0 , '8704.55' , '2015-01-01' ); insert into comvenda values(12 , '12' , 2 , 2 , 2 , '11198.05', 0 , '11198.05' , '2015-01-02' ); insert into comvenda values(13 , '13' , 3 , 1 , 1 , '4967.84', 0 , '4967.84' , '2015-01-03' ); insert into comvenda values(14 , '14' , 3 , 2 , 2 , '7451.26', 0 , '7451.26' , '2015-01-04' ); insert into comvenda values(15 , '15' , 5 , 1 , 1 , '10747.359', 0 , '10747.36' , '2015-01-01' ); insert into comvenda values(16 , '16' , 6 , 2 , 2 , '13502.34', 0 , '13502.34' , '2015-01-02' ); insert into comvenda values(17 , '17' , 7 , 1 , 1 , '22222.99', 0 , '22222.99' , '2015-01-03' ); insert into comvenda values(18 , '18' , 8 , 2 , 2 , '15465.69', 0 , '15465.69' , '2015-01-04' ); insert into comvenda values(19 , '19' , 9 , 1 , 1 , '4650.64', 0 , '4650.64' , '2015-01-01' ); insert into comvenda values(20 , '20' , 9 , 2 , 2 , '6975.96', 0 , '6975.96' , '2015-01-02' ); ## Fim popula tabela Vendas ## Inicio popula tabela Itens Vendas insert into comivenda values(1 ,1 ,1,'1251.29',1,0); insert into comivenda values(2 ,1 ,2,'1242.21',2,0); insert into comivenda values(3 ,1 ,3,'1241.21',3,0); insert into comivenda values(4 ,1 ,4,'1513.77',4,0); insert into comivenda values(5 ,1 ,5,'2325.32',5,0); insert into comivenda values(6 ,2 ,1,'1251.29',6,0); insert into comivenda values(7 ,3 ,3,'1241.21',7,0); insert into comivenda values(8 ,4 ,1,'1251.29',1,0); insert into comivenda values(9 ,5 ,3,'1241.21',2,0); insert into comivenda values(10,6 ,1,'1251.29',3,0); insert into comivenda values(11,7 ,2,'1242.21',4,0); insert into comivenda values(12,8 ,5,'2325.32',5,0); insert into comivenda values(13,9 ,2,'1242.21',6,0); insert into comivenda values(14,10,3,'1241.21',7,0); insert into comivenda values(15,11,1,'1251.29',1,0); insert into comivenda values(16,12,1,'1251.29',2,0); insert into comivenda values(17,13,2,'1242.21',3,0); insert into comivenda values(18,14,2,'1242.21',4,0); insert into comivenda values(19,15,3,'1241.21',5,0); insert into comivenda values(20,16,3,'1241.21',6,0); insert into comivenda values(21 ,17,4,'1513.77',7,0); insert into comivenda values(22 ,18,4,'1513.77',1,0); insert into comivenda values(23 ,19,5,'2325.32',2,0); insert into comivenda values(24 ,20,5,'2325.32',3,0); insert into comivenda values(25 ,2 ,2,'1242.21',4,0); insert into comivenda values(26 ,3 ,4,'1513.77',5,0); insert into comivenda values(27 ,4 ,2,'1242.21',6,0); insert into comivenda values(28 ,5 ,4,'1513.77',7,0); insert into comivenda values(29 ,6 ,5,'2325.32',1,0); insert into comivenda values(30,7 ,3,'1241.21',2,0); insert into comivenda values(31,8 ,1,'1251.29',3,0); insert into comivenda values(32,9 ,4,'1513.77',4,0); insert into comivenda values(33,10,5,'2325.32',5,0); insert into comivenda values(34,11,2,'1242.21',6,0); insert into comivenda values(35,12,2,'1242.21',7,0); insert into comivenda values(36,13,3,'1241.21',1,0); insert into comivenda values(37,14,3,'1241.21',2,0); insert into comivenda values(38,15,4,'1513.77',3,0); insert into comivenda values(39,16,4,'1513.77',4,0); insert into comivenda values(40,17,5,'2325.32',5,0); insert into comivenda values(41,18,5,'2325.32',6,0); ## Fim popula tabela Itens Vendas
<filename>micromall-db/src/main/resources/db/migration/V11__create_spec_teble.sql SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for micromall_goods_sku -- ---------------------------- DROP TABLE IF EXISTS `micromall_goods_sku`; CREATE TABLE `micromall_goods_sku` ( `sku_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'sku自增ID', `specification` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '规格值', `goods_id` bigint(20) NOT NULL COMMENT '商品id', `price` decimal(10,2) DEFAULT NULL COMMENT '价格', `number` int(11) DEFAULT NULL COMMENT '库存', `sku_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'sku名称', `goods_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '商品名称', `pic_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'sku图片', `is_on_sale` int(11) DEFAULT '0' COMMENT '是否上架0下架1上架', `weight` double DEFAULT NULL COMMENT '商品重量', `add_time` datetime DEFAULT NULL COMMENT '创建时间', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `deleted` tinyint(1) DEFAULT '0' COMMENT '逻辑删除', PRIMARY KEY (`sku_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品SKU表'; -- ---------------------------- -- Table structure for micromall_goods_spec -- ---------------------------- DROP TABLE IF EXISTS `micromall_goods_spec`; CREATE TABLE `micromall_goods_spec` ( `goods_id` bigint(20) NOT NULL COMMENT '商品id', `spec_id` bigint(20) NOT NULL COMMENT '规格id', `add_time` datetime DEFAULT NULL COMMENT '创建时间', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `deleted` tinyint(1) DEFAULT '0' COMMENT '逻辑删除' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品与规格关联表'; -- ---------------------------- -- Table structure for micromall_spec -- ---------------------------- DROP TABLE IF EXISTS `micromall_spec`; CREATE TABLE `micromall_spec` ( `spec_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '规格自增id', `spec_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '规格名称', `add_time` datetime DEFAULT NULL COMMENT '创建时间', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `deleted` tinyint(1) DEFAULT '0' COMMENT '逻辑删除', PRIMARY KEY (`spec_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='规格表'; -- ---------------------------- -- Table structure for micromall_spec_value -- ---------------------------- DROP TABLE IF EXISTS `micromall_spec_value`; CREATE TABLE `micromall_spec_value` ( `spec_value_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '规格值自增ID', `spec_value` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '规格值', `spec_id` bigint(20) NOT NULL COMMENT '规格id', `add_time` datetime DEFAULT NULL COMMENT '创建时间', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `deleted` tinyint(1) DEFAULT '0' COMMENT '逻辑删除', PRIMARY KEY (`spec_value_id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='规格值';
<reponame>opengauss-mirror/Yat -- @testpoint:使用insert...update语句插入一条数据,添加EXCLUDED关键字,主键列数据已存在,其他列数据已存在 --预置条件enable_upsert_to_merge为off drop table if exists products25; --建表,指定一列是主键 CREATE TABLE products25 ( product_no integer PRIMARY KEY, name text, price numeric ); --常规插入一条数据 insert into products25 values(10,'grains',5.5); select * from products25; --添加EXCLUDED关键字,主键列重复,update product_no列,合理报错 insert into products25 values(10,'grains',5.5) on DUPLICATE key update product_no=EXCLUDED.product_no ; select * from products25; drop table products25;
<filename>scripts/sql-schema/mysql.patches.d/12.0.2.sql start transaction; create table if not exists unit_data ( unit_id bigint(20) unsigned, part_id varchar(50) not null, content text null, ts bigint(20) NOT NULL DEFAULT '0', response_type varchar(50), constraint unit_data_pk primary key (unit_id, part_id) ); drop procedure if exists data_migration; create procedure data_migration() begin -- While updating to 12.0.0 with the original 12.0.0 patch, it occurred, that the update script failed in -- the middle, when there was unit with a null-entry for responses. -- This script should handle even this half-successfully patch if exists (select * from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = 'units' and COLUMN_NAME = 'responses') then alter table unit_data modify content text null; insert unit_data (unit_id, part_id, content, ts, response_type) ( select id, 'all', responses, responses_ts, responsetype from units as u where not exists( select * from unit_data as ud where ud.unit_id = u.id ) ); alter table units drop column responses; alter table units drop column responsetype; alter table units drop column responses_ts; alter table units drop column restorepoint; alter table units drop column restorepoint_ts; end if; end; call data_migration(); drop procedure if exists data_migration; commit;
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 02, 2022 at 05:42 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `safat` -- -- -------------------------------------------------------- -- -- Table structure for table `basic_categories` -- CREATE TABLE `basic_categories` ( `id` bigint(20) UNSIGNED NOT NULL, `name_ar` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `name_en` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `image_url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `basic_categories` -- INSERT INTO `basic_categories` (`id`, `name_ar`, `name_en`, `image_url`, `created_at`, `updated_at`) VALUES (1, 'كراسى', 'Chairs', 'uploads/basic_categories/images/164367679474860075782.jpg', '2021-09-11 21:13:56', '2022-02-02 14:15:18'), (2, 'الأثاث', 'furniture', 'uploads/basic_categories/images/164367681660260075951.jpg', '2021-09-11 21:13:56', '2022-02-02 14:15:01'), (4, 'غرف معيشه', 'Rooms', 'uploads/basic_categories/images/164367676595612.jpg', '2021-11-14 09:48:09', '2022-02-02 14:15:47'); -- -------------------------------------------------------- -- -- Table structure for table `best_sellers` -- CREATE TABLE `best_sellers` ( `id` bigint(20) UNSIGNED NOT NULL, `product_id` bigint(20) UNSIGNED NOT NULL, `rate` int(11) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `best_sellers` -- INSERT INTO `best_sellers` (`id`, `product_id`, `rate`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2021-09-13 22:51:58', '2021-09-13 22:51:58'), (2, 2, 1, '2021-10-23 08:37:33', '2021-10-23 08:37:33'), (3, 3, 1, '2021-11-11 23:42:21', '2021-11-11 23:42:21'), (4, 6, 3, '2021-11-16 04:16:45', '2021-11-16 18:36:53'), (5, 8, 7, '2021-11-16 18:34:17', '2022-01-09 18:37:34'), (6, 9, 11, '2021-11-17 00:55:04', '2021-11-22 15:50:19'), (7, 65, 1, '2021-12-12 10:41:49', '2021-12-12 10:41:49'), (8, 91, 4, '2021-12-26 10:12:49', '2021-12-26 10:14:26'), (9, 15, 6, '2022-01-03 13:57:19', '2022-01-10 16:31:36'), (10, 116, 2, '2022-01-03 14:11:38', '2022-01-04 07:40:53'), (11, 110, 4, '2022-01-04 07:35:07', '2022-01-04 07:37:26'), (12, 106, 1, '2022-01-09 18:35:06', '2022-01-09 18:35:06'), (13, 87, 1, '2022-01-09 18:40:20', '2022-01-09 18:40:20'), (14, 11, 1, '2022-01-10 15:48:55', '2022-01-10 15:48:55'), (15, 48, 1, '2022-01-10 16:59:47', '2022-01-10 16:59:47'), (16, 141, 1, '2022-01-10 17:00:48', '2022-01-10 17:00:48'), (17, 132, 1, '2022-01-10 20:18:21', '2022-01-10 20:18:21'), (18, 135, 4, '2022-01-11 03:27:55', '2022-01-26 10:34:35'), (19, 54, 1, '2022-01-24 18:44:35', '2022-01-24 18:44:35'), (20, 53, 1, '2022-01-26 07:07:49', '2022-01-26 07:07:49'); -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE `categories` ( `id` bigint(20) UNSIGNED NOT NULL, `name_ar` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `name_en` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `basic_category_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `categories` -- INSERT INTO `categories` (`id`, `name_ar`, `name_en`, `basic_category_id`, `created_at`, `updated_at`) VALUES (3, 'كراسى', 'Chairs', 1, '2021-09-11 21:13:56', '2022-02-02 14:18:44'), (5, 'الأثاث', 'furniture', 2, '2021-09-11 21:13:56', '2022-02-02 14:19:20'), (19, 'غرف معيشه', 'Rooms', 4, '2022-01-07 13:23:40', '2022-02-02 14:17:49'); -- -------------------------------------------------------- -- -- Table structure for table `cities` -- CREATE TABLE `cities` ( `id` bigint(20) UNSIGNED NOT NULL, `name_ar` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `name_en` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `delivery` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `delivery_period` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `country_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `cities` -- INSERT INTO `cities` (`id`, `name_ar`, `name_en`, `delivery`, `delivery_period`, `country_id`, `created_at`, `updated_at`) VALUES (1, 'دسمان', 'dasman', '3', '14', 1, '2021-09-11 21:25:57', '2022-01-09 12:59:02'), (2, 'صباح الاحمد البحرية', 'Sabah al-Ahmad Marine City', '3', '0', 1, '2021-09-11 21:26:29', '2022-01-09 16:29:53'), (3, 'ام الهيمان', 'Umm Al Hayman', '3', '0', 1, '2022-01-09 12:59:24', '2022-01-09 16:29:46'), (4, 'جزيرة وربة', 'Warba Island', '3', '0', 1, '2022-01-09 13:00:14', '2022-01-09 16:29:40'), (5, 'جزيرة بوبيان', 'Bubiyan Island', '3', '0', 1, '2022-01-09 13:00:50', '2022-01-09 16:29:33'), (6, 'محافظة مبارك الكبير', 'Mubarak Al-Kabeer', '3', '0', 1, '2022-01-09 13:01:29', '2022-01-09 16:29:22'), (7, 'محافظة حولي', 'Hawalli Governorate', '3', '0', 1, '2022-01-09 13:01:55', '2022-01-09 16:27:17'), (8, 'محافظة الجهراء', 'Jahra Governorate', '3', '0', 1, '2022-01-09 13:02:31', '2022-01-09 16:27:10'), (9, 'محافظة الفروانية', 'Farwaniya Governorate', '3', '0', 1, '2022-01-09 13:02:52', '2022-01-09 16:27:01'), (10, 'محافظة الاحمدي', 'Ahmadi Governorate', '3', '0', 1, '2022-01-09 13:04:22', '2022-01-09 16:26:54'), (11, 'محافظة العاصمة', 'Capital Governorate', '3', '0', 1, '2022-01-09 13:04:41', '2022-01-09 16:26:44'); -- -------------------------------------------------------- -- -- Table structure for table `colors` -- CREATE TABLE `colors` ( `id` bigint(20) UNSIGNED NOT NULL, `name_ar` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `name_en` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `colors` -- INSERT INTO `colors` (`id`, `name_ar`, `name_en`, `code`, `created_at`, `updated_at`) VALUES (1, 'احمر', 'Red', NULL, '2021-12-23 20:37:04', '2021-12-23 20:37:04'), (2, 'اصفر', 'Yellow', NULL, '2021-12-23 20:37:26', '2021-12-23 20:37:26'), (3, 'أسود', 'Black', NULL, '2021-12-25 17:42:01', '2021-12-25 20:38:22'), (4, 'ابيض', 'white', NULL, '2021-12-25 17:41:46', '2021-12-25 17:41:46'); -- -------------------------------------------------------- -- -- Table structure for table `contact_messages` -- CREATE TABLE `contact_messages` ( `id` bigint(20) UNSIGNED NOT NULL, `name` longtext COLLATE utf8mb4_unicode_ci, `phone` longtext COLLATE utf8mb4_unicode_ci, `email` longtext COLLATE utf8mb4_unicode_ci, `subject` longtext COLLATE utf8mb4_unicode_ci, `body` longtext COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `countries` -- CREATE TABLE `countries` ( `id` bigint(20) UNSIGNED NOT NULL, `name_ar` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `name_en` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `country_code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `delivery` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `image_url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `currency_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `countries` -- INSERT INTO `countries` (`id`, `name_ar`, `name_en`, `code`, `country_code`, `delivery`, `image_url`, `currency_id`, `created_at`, `updated_at`) VALUES (1, 'الكويت', 'Kuwait', '4', 'KWT', NULL, 'uploads/countries/images//1631402665824kuwait.png', 1, '2021-09-11 21:24:25', '2021-09-11 21:25:20'); -- -------------------------------------------------------- -- -- Table structure for table `coupons` -- CREATE TABLE `coupons` ( `id` bigint(20) UNSIGNED NOT NULL, `code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `percentage` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `coupons` -- INSERT INTO `coupons` (`id`, `code`, `percentage`, `created_at`, `updated_at`) VALUES (1, 'abc', 50, '2021-11-19 01:14:35', '2021-11-19 01:14:35'); -- -------------------------------------------------------- -- -- Table structure for table `currencies` -- CREATE TABLE `currencies` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `rate` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `code_ar` varchar(90) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `currencies` -- INSERT INTO `currencies` (`id`, `name`, `rate`, `code`, `code_ar`, `created_at`, `updated_at`) VALUES (1, 'دينار كويتي', '1', 'K.D', 'د.ك', '2021-09-11 21:23:06', '2022-01-09 13:25:06'), (3, 'ريال سعودي', '0.080', 'SAR', 'ر.س', '2021-11-16 19:10:04', '2021-11-16 19:10:04'), (4, 'دينار بحريني', '0.8', 'BHD', 'د.ب', '2021-11-16 19:11:43', '2022-01-09 13:40:52'), (5, 'درهم اماراتي', '0.082', 'UAE', NULL, '2022-01-09 13:34:17', '2022-01-09 13:38:48'), (6, 'ريال عماني', '0.78', 'OMR', NULL, '2022-01-09 13:38:10', '2022-01-09 13:39:31'), (7, 'ريال قطري', '0.08', 'QAR', NULL, '2022-01-09 13:40:14', '2022-01-09 13:40:14'); -- -------------------------------------------------------- -- -- Table structure for table `custom_sizes` -- CREATE TABLE `custom_sizes` ( `id` int(11) NOT NULL, `order_item_id` int(11) DEFAULT NULL, `is_cart` tinyint(1) NOT NULL DEFAULT '1', `height` float NOT NULL, `shoulder` float DEFAULT NULL, `chest` float DEFAULT NULL, `the_front` int(11) DEFAULT NULL, `veil_size` int(11) DEFAULT NULL, `note` text COLLATE utf8_unicode_ci, `sleeve_length` float DEFAULT NULL, `hole_sleeve` float DEFAULT NULL, `order_size` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `custom_sizes` -- INSERT INTO `custom_sizes` (`id`, `order_item_id`, `is_cart`, `height`, `shoulder`, `chest`, `the_front`, `veil_size`, `note`, `sleeve_length`, `hole_sleeve`, `order_size`, `created_at`, `updated_at`) VALUES (1, 48, 1, 10, 20, 12, 2, 1, 'rgrgrg', 5, 25, NULL, '2022-01-04 07:40:53', '2022-01-04 07:40:53'), (2, 51, 1, 11, 15, 125, 2, 1, 'ب', 12, 142, NULL, '2022-01-09 18:35:06', '2022-01-09 18:35:06'), (3, 53, 1, 12, 12, 12, 2, 2, NULL, 12, 12, NULL, '2022-01-09 18:37:34', '2022-01-09 18:37:34'), (4, 56, 1, 14, 42, 42, 1, 1, '4272', 42, 42, 'S', '2022-01-09 18:40:20', '2022-01-09 18:40:20'), (5, 59, 1, 12, NULL, NULL, 1, 1, '020', NULL, NULL, 'S', '2022-01-10 15:36:19', '2022-01-10 15:36:19'), (6, 60, 1, 12, NULL, NULL, 1, 1, '020', NULL, NULL, 'S', '2022-01-10 15:45:56', '2022-01-10 15:45:56'), (7, 62, 1, 10, NULL, NULL, 0, 0, 'ny', NULL, NULL, 'S', '2022-01-10 15:48:55', '2022-01-10 15:48:55'), (8, 63, 1, 12, NULL, NULL, 1, 1, '020', NULL, NULL, 'S', '2022-01-10 15:48:55', '2022-01-10 15:48:55'), (9, 64, 1, 12, NULL, NULL, 2, 2, '111', NULL, NULL, 'L', '2022-01-10 16:31:36', '2022-01-10 16:31:36'), (10, 65, 1, 57, NULL, NULL, 1, 1, NULL, NULL, NULL, 'S', '2022-01-10 16:59:47', '2022-01-10 16:59:47'), (11, 66, 1, 11, NULL, NULL, 1, 1, NULL, NULL, NULL, 'S', '2022-01-10 17:00:48', '2022-01-10 17:00:48'), (12, 72, 1, 54, NULL, NULL, 2, 2, NULL, NULL, NULL, 'M', '2022-01-10 20:18:21', '2022-01-10 20:18:21'), (13, 73, 1, 154, NULL, NULL, 1, 1, NULL, NULL, NULL, 'M', '2022-01-11 03:27:55', '2022-01-11 03:27:55'), (14, 74, 1, 154, NULL, NULL, 1, 1, NULL, NULL, NULL, 'M', '2022-01-11 03:28:23', '2022-01-11 03:28:23'), (15, 75, 1, 53, NULL, NULL, 2, 2, 'الكتف ١٤\nالصدر ٤٠\nطول الجم ٢١', NULL, NULL, 'L', '2022-01-24 18:44:35', '2022-01-24 18:44:35'), (16, 76, 1, 51, NULL, NULL, 1, 1, NULL, NULL, NULL, 'M', '2022-01-26 07:07:49', '2022-01-26 07:07:49'), (17, 77, 1, 55, NULL, NULL, 1, 2, 'محيط الصدر ٤٨\nالكتف ١٥\nالطول٥٥\nوطول الكم ٢٤\nوفيه طباقي الكم', NULL, NULL, 'L', '2022-01-26 10:26:53', '2022-01-26 10:26:53'), (18, 78, 1, 55, NULL, NULL, 1, 2, 'محيط الصدر ٤٨\nالكتف ١٥\nالطول٥٥\nوطول الكم ٢٤\nوفيه طباقي الكم', NULL, NULL, 'L', '2022-01-26 10:34:35', '2022-01-26 10:34:35'); -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `heights` -- CREATE TABLE `heights` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `heights` -- INSERT INTO `heights` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, '50', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (2, '51', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (3, '52', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (4, '53', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (5, '54', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (6, '55', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (7, '56', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (8, '57', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (9, '58', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (10, '59', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (12, '60', '2021-11-14 17:13:40', '2021-11-14 17:13:40'), (13, '70', '2021-11-21 00:05:45', '2021-11-21 00:05:45'), (14, 'free', '2021-12-01 12:49:04', '2021-12-01 12:49:04'); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2021_08_15_012612_laratrust_setup_tables', 1), (5, '2021_08_15_040324_create_basic_categories_table', 1), (6, '2021_08_15_040614_create_categories_table', 1), (7, '2021_08_15_041045_create_currencies_table', 1), (8, '2021_08_15_041057_create_countries_table', 1), (9, '2021_08_15_041106_create_cities_table', 1), (10, '2021_08_17_133717_create_sliders_table', 1), (11, '2021_08_17_161537_create_settings_table', 1), (12, '2021_08_17_161551_create_pages_table', 1), (13, '2021_08_17_163313_create_contact_messages_table', 1), (14, '2021_08_17_182358_create_sizes_table', 1), (15, '2021_08_17_182535_create_heights_table', 1), (16, '2021_08_18_031802_create_products_table', 1), (17, '2021_08_18_120403_create_prod_sizes_table', 1), (18, '2021_08_18_120505_create_prod_heights_table', 1), (19, '2021_08_18_120544_create_prod_imgs_table', 1), (20, '2021_08_19_170714_create_wish_lists_table', 1), (21, '2021_08_22_053016_create_views_table', 1), (22, '2021_08_28_104240_create_orders_table', 1), (23, '2021_08_28_104325_create_order_items_table', 1), (24, '2021_09_13_114827_create_best_sellers_table', 2), (25, '2021_11_11_120919_create_posts_table', 3), (26, '2021_11_13_183327_create_news_table', 4), (27, '2021_11_17_122802_create_coupons_table', 5), (28, '2021_11_25_004705_create_size_guides_table', 6), (29, '2022_02_01_144346_create_prod_properties_table', 7); -- -------------------------------------------------------- -- -- Table structure for table `news` -- CREATE TABLE `news` ( `id` bigint(20) UNSIGNED NOT NULL, `content_en` text COLLATE utf8mb4_unicode_ci NOT NULL, `content_ar` text COLLATE utf8mb4_unicode_ci NOT NULL, `appearance` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `news` -- INSERT INTO `news` (`id`, `content_en`, `content_ar`, `appearance`, `created_at`, `updated_at`) VALUES (1, 'Safat home the best Products with a high quality', 'صافة هوم افضل المنتجات و الخصومات', 1, '2021-11-17 08:02:40', '2022-02-02 14:13:49'), (2, 'shop now and enjoy the best offers and sales', 'تسوق الان و احصل علي افضل العروض و الخصومات', 1, '2021-11-17 08:03:31', '2021-11-17 08:03:31'); -- -------------------------------------------------------- -- -- Table structure for table `orders` -- CREATE TABLE `orders` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `country_id` bigint(20) UNSIGNED NOT NULL, `city_id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL, `region` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `address1` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `postal_code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `address2` longtext COLLATE utf8mb4_unicode_ci, `national_id` longtext COLLATE utf8mb4_unicode_ci, `note` longtext COLLATE utf8mb4_unicode_ci, `invoice_id` longtext COLLATE utf8mb4_unicode_ci, `invoice_link` longtext COLLATE utf8mb4_unicode_ci, `status` int(11) NOT NULL DEFAULT '0', `total_price` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `total_quantity` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `order_items` -- CREATE TABLE `order_items` ( `id` bigint(20) UNSIGNED NOT NULL, `order_id` bigint(20) UNSIGNED NOT NULL, `product_id` bigint(20) UNSIGNED NOT NULL, `product_height_id` bigint(20) UNSIGNED NOT NULL, `product_size_id` bigint(20) UNSIGNED NOT NULL, `color` bigint(20) NOT NULL DEFAULT '3', `quantity` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `pages` -- CREATE TABLE `pages` ( `id` bigint(20) UNSIGNED NOT NULL, `page_title_ar` longtext COLLATE utf8mb4_unicode_ci, `page_details_ar` longtext COLLATE utf8mb4_unicode_ci, `page_title_en` longtext COLLATE utf8mb4_unicode_ci, `page_details_en` longtext COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `pages` -- INSERT INTO `pages` (`id`, `page_title_ar`, `page_details_ar`, `page_title_en`, `page_details_en`, `created_at`, `updated_at`) VALUES (1, 'سياسة الخصوصية', ' هذا النص هو مثال لنص يمكن أن يستبدل في نفس المساحة، لقد تم توليد هذا النص من مولد النص العربى، حيث يمكنك أن تولد مثل هذا النص أو العديد من النصوص الأخرى إضافة إلى زيادة عدد الحروف التى يولدها التطبيق. إذا كنت تحتاج إلى عدد أكبر من الفقرات يتيح لك مولد النص العربى زيادة عدد الفقرات كما تريد، النص لن يبدو مقسما ولا يحوي أخطاء لغوية، مولد النص العربى مفيد لمصممي المواقع على وجه الخصوص، حيث يحتاج العميل فى كثير من الأحيان أن يطلع على صورة حقيقية لتصميم\r\n الموقع. ومن هنا وجب على المصمم أن يضع نصوصا مؤقتة على التصميم ليظهر للعميل الشكل كاملاً،دور مولد النص العربى أن يوفر على المصمم عناء\r\n البحث عن نص بديل لا علاقة له بالموضوع الذى يتحدث عنه التصميم فيظهر بشكل لا يليق. هذا النص يمكن أن يتم تركيبه على أي تصميم دون مشكلة فلن يبدو وكأنه نص منسوخ، غير منظم، غير منسق، أو حتى غير مفهوم.\r\n لأنه مازال نصاً بديلاً ومؤقتاً.', 'Privacy Policy', ' This text is an example of text\r\nthat can be replaced in the same space, this text has been generated\r\nfrom the Arabic text generator, where you can generate such text or many other\r\ntexts in addition to increasing the number of characters generated by the application. If you need\r\na larger number of paragraphs, the Arabic text generator allows you to increase the number of paragraphs as\r\nyou want, the text will not appear divided and does not contain linguistic errors, the Arabic text generator\r\nis useful for web designers in particular, as the client often needs to see a real picture For website design. Hence,\r\nthe designer must put temporary texts on the design to show the customer the complete form, the role of the Arabic text\r\ngenerator is to spare the designer the trouble of searching for an alternative text that has nothing to do with the topic\r\nthe design is talking about, so it appears in an inappropriate way. This text can be installed on any design without\r\nproblem, it will not look like copied text, unorganized, unformatted, or even incomprehensible. Because it is\r\nstill an alternate and temporary text. ', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (2, 'من نحن', ' يبق أن وجهان مليون التجارية. لكل و بقصف وانتهاءً التبرعات, قد التبرعات ويكيبيديا، أما. تلك جيما عليها جزيرتي ثم, أضف رئيس بتطويق انتصارهم أم. عدم عن فشكّل الأسيوي واعتلاء. لعملة أوروبا إنطلاق عل هذا, عدد مشروط اليابان في. بحث ماشاء طوكيو إذ, بل بأيدي الشرقي دار, بل نقطة أواخر لكل. دنو أن مارد وجهان اوروبا, بها من أسيا مكثّفة سليمان،. ولم كل لمحاكم لبلجيكا،. أم\r\n سابق الأعمال التكاليف بعض, بها تسبب الشمل الثالث، و.\r\n يبق أن وجهان مليون التجارية. لكل و بقصف وانتهاءً التبرعات, قد التبرعات ويكيبيديا، أما. تلك جيما عليها جزيرتي ثم, أضف رئيس بتطويق انتصارهم أم. عدم عن فشكّل الأسيوي واعتلاء. لعملة أوروبا إنطلاق عل هذا, عدد مشروط اليابان في. بحث ماشاء طوكيو إذ, بل بأيدي الشرقي دار, بل نقطة أواخر لكل. دنو أن مارد وجهان اوروبا, بها من أسيا مكثّفة سليمان،. ولم كل لمحاكم لبلجيكا،.\r\n أم سابق الأعمال التكاليف بعض, بها تسبب الشمل الثالث، و.', 'About Us', ' Lorem Ipsum is simply dummy text of the printing and typesetting industry.\r\nLorem Ipsum has been the industry&#39;s standard dummy text ever since the 1500s,\r\nwhen an unknown printer took a galley of type and scrambled it to make a type specimen book.\r\nIt has survived not only five centuries, but also the leap into electronic typesetting, remaining\r\nessentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,\r\nand more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum Lorem Ipsum is\r\nsimply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry&#39;s standard\r\ndummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.\r\n It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially\r\n unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and\r\n more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum Lorem Ipsum\r\n is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the\r\n industry&#39;s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled\r\n it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,\r\n remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing\r\n Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including\r\n versions of Lorem Ipsum Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been\r\n the industry&#39;s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled\r\n it to make a type specimen book. It has survived not only five centuries, but also the leap into\r\n electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of\r\n Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker\r\n including versions of Lorem Ipsum', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (3, 'الشروط والأحكام', ' هذا النص هو مثال لنص يمكن أن يستبدل في نفس المساحة، لقد تم توليد هذا النص من مولد النص العربى، حيث يمكنك أن تولد مثل هذا النص أو العديد من النصوص الأخرى إضافة إلى زيادة عدد الحروف التى يولدها التطبيق.\r\n إذا كنت تحتاج إلى عدد أكبر من الفقرات يتيح لك مولد النص العربى زيادة عدد الفقرات كما تريد، النص لن يبدو مقسما ولا يحوي أخطاء لغوية، مولد النص العربى مفيد لمصممي المواقع على وجه الخصوص، حيث يحتاج العميل فى كثير من الأحيان أن يطلع على صورة حقيقية لتصميم الموقع.\r\n ومن هنا وجب على المصمم أن يضع نصوصا مؤقتة على التصميم ليظهر للعميل الشكل كاملاً،دور مولد النص العربى أن يوفر على المصمم عناء البحث عن نص بديل لا علاقة له بالموضوع الذى يتحدث عنه التصميم فيظهر بشكل لا يليق.\r\n هذا النص يمكن أن يتم تركيبه على أي تصميم دون مشكلة فلن يبدو وكأنه نص منسوخ، غير منظم، غير منسق، أو حتى غير مفهوم. لأنه مازال نصاً بديلاً ومؤقتاً.\r\n ', 'Terms', '', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (4, 'التوصيل', ' هذا النص هو مثال لنص يمكن أن يستبدل في نفس المساحة، لقد تم توليد هذا النص من مولد النص العربى، حيث يمكنك أن تولد مثل هذا النص أو\r\nالعديد من النصوص الأخرى إضافة إلى زيادة عدد الحروف التى يولدها التطبيق. إذا كنت تحتاج إلى عدد أكبر من الفقرات يتيح لك مولد النص العربى زيادة عدد الفقرات كما تريد، النص لن يبدو مقسما ولا يحوي أخطاء لغوية، مولد النص العربى مفيد لمصممي المواقع على وجه الخصوص، حيث يحتاج العميل فى كثير من الأحيان أن يطلع\r\n على صورة حقيقية لتصميم الموقع. ومن هنا وجب على المصمم أن يضع نصوصا مؤقتة على التصميم ليظهر للعميل الشكل كاملاً،دور مولد النص العربى أن يوفر على المصمم عناء\r\n البحث عن نص بديل لا علاقة له بالموضوع الذى يتحدث عنه التصميم فيظهر بشكل لا يليق. هذا النص يمكن أن يتم تركيبه على أي تصميم دون مشكلة فلن يبدو وكأنه نص منسوخ، غير منظم، غير منسق، أو حتى غير مفهوم.\r\n لأنه مازال نصاً بديلاً ومؤقتاً. ', 'Delivery', '', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (5, 'طرق الدفع', ' هذا النص هو مثال لنص يمكن أن يستبدل في نفس المساحة، لقد تم توليد هذا النص من مولد النص العربى، حيث يمكنك أن تولد مثل هذا النص أو العديد من\r\n النصوص الأخرى إضافة إلى زيادة عدد الحروف التى يولدها التطبيق. إذا كنت تحتاج إلى عدد أكبر من الفقرات يتيح لك مولد النص العربى زيادة عدد الفقرات كما تريد، النص لن يبدو مقسما ولا يحوي أخطاء لغوية، مولد النص العربى مفيد لمصممي المواقع على وجه الخصوص، حيث يحتاج العميل فى كثير من\r\n الأحيان أن يطلع على صورة حقيقية لتصميم الموقع. ومن هنا وجب على المصمم أن يضع نصوصا مؤقتة على التصميم ليظهر للعميل الشكل كاملاً،دور مولد النص العربى أن يوفر على المصمم عناء البحث عن نص بديل\r\n لا علاقة له بالموضوع الذى يتحدث عنه التصميم فيظهر بشكل لا يليق. هذا النص يمكن أن يتم تركيبه على أي تصميم دون مشكلة فلن يبدو وكأنه نص منسوخ، غير منظم، غير منسق،\r\n أو حتى غير مفهوم. لأنه مازال نصاً بديلاً ومؤقتاً. ', 'Payment Methods', '', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (6, 'الأسترجاع والاستبدال', '..هذا النص هو مثال لنص يمكن أن يستبدل في نفس المساحة، لقد تم توليد هذا النص من مولد النص العربى، حيث يمكنك أن تولد مثل هذا النص أو العديد من النصوص الأخرى إضافة إلى زيادة عدد الحروف التى يولدها\r\n التطبيق. إذا كنت تحتاج إلى عدد أكبر من الفقرات يتيح لك مولد النص العربى زيادة عدد الفقرات كما تريد، النص لن يبدو مقسما ولا يحوي أخطاء لغوية، مولد النص العربى مفيد لمصممي المواقع\r\n على وجه الخصوص، حيث يحتاج العميل فى كثير من الأحيان أن يطلع على صورة حقيقية لتصميم الموقع. ومن هنا وجب على المصمم أن يضع نصوصا مؤقتة على التصميم ليظهر للعميل الشكل كاملاً،دور مولد النص العربى أن يوفر على المصمم عناء البحث عن نص بديل لا علاقة له بالموضوع الذى يتحدث عنه التصميم فيظهر بشكل\r\n لا يليق. هذا النص يمكن أن يتم تركيبه على أي تصميم دون مشكلة فلن\r\n يبدو وكأنه نص منسوخ، غير منظم، غير منسق، أو حتى غير مفهوم. لأنه مازال نصاً بديلاً ومؤقتاً. ', 'Exchanges', 'Lorem Ipsum is simply dummy text of the printing and\r\ntypesetting industry. Lorem Ipsum has been the industry\'s standard dummy\r\ntext ever since the 1500s, when an unknown printer took a galley of type and\r\nscrambled it to make a type specimen book. It has survived not only five centuries,\r\nbut also the leap into electronic typesetting, remaining essentially unchanged. It was popularised\r\n in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently\r\n with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (7, 'الأسئلة المتكررة', 'هذا النص هو مثال لنص يمكن أن يستبدل في نفس المساحة، لقد تم توليد هذا النص من مولد النص العربى، حيث يمكنك أن تولد مثل هذا النص أو العديد من النصوص\r\nالأخرى إضافة إلى زيادة عدد الحروف التى يولدها التطبيق. إذا كنت تحتاج إلى عدد أكبر من الفقرات يتيح لك مولد النص العربى زيادة عدد الفقرات كما تريد، النص لن يبدو مقسما ولا يحوي أخطاء لغوية، مولد النص العربى مفيد لمصممي المواقع على وجه الخصوص، حيث يحتاج العميل فى كثير من\r\n الأحيان أن يطلع على صورة حقيقية لتصميم الموقعز ومن هنا وجب على المصمم أن يضع نصوصا مؤقتة على التصميم ليظهر للعميل الشكل كاملاً،دور مولد النص العربى أن يوفر على المصمم عناء البحث عن نص بديل لا\r\n علاقة له بالموضوع الذى يتحدث عنه التصميم فيظهر بشكل لا يليق. هذا النص يمكن أن يتم تركيبه على أي تصميم دون مشكلة فلن يبدو وكأنه نص منسوخ، غير منظم، غير منسق،\r\n أو حتى غير مفهوم. لأنه مازال نصاً بديلاً ومؤقتاً', 'FAQ', 'Details', '2021-09-11 21:13:56', '2021-09-11 21:13:56'); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `password_resets` -- INSERT INTO `password_resets` (`email`, `token`, `created_at`) VALUES ('<EMAIL>', 'pWVV7UHOdaJWG4RiC9F53ZZeQw1zsdNUF3mDTkLQwxkmqnud1AhD3GpEHe9NXkGB', '2021-11-16 23:23:01'); -- -------------------------------------------------------- -- -- Table structure for table `permissions` -- CREATE TABLE `permissions` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `display_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `permission_role` -- CREATE TABLE `permission_role` ( `permission_id` bigint(20) UNSIGNED NOT NULL, `role_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `permission_user` -- CREATE TABLE `permission_user` ( `permission_id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL, `user_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `posts` -- CREATE TABLE `posts` ( `id` bigint(20) UNSIGNED NOT NULL, `title_ar` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `title_en` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `description_ar` text COLLATE utf8mb4_unicode_ci NOT NULL, `description_en` text COLLATE utf8mb4_unicode_ci NOT NULL, `description_en1` text COLLATE utf8mb4_unicode_ci, `description_ar1` text COLLATE utf8mb4_unicode_ci, `appearance` tinyint(1) DEFAULT '1', `img1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `img2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `products` -- CREATE TABLE `products` ( `id` bigint(20) UNSIGNED NOT NULL, `title_en` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `title_ar` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `description_en` text COLLATE utf8mb4_unicode_ci NOT NULL, `description_ar` text COLLATE utf8mb4_unicode_ci NOT NULL, `appearance` tinyint(1) DEFAULT NULL, `featured` tinyint(1) DEFAULT NULL, `new` tinyint(1) DEFAULT NULL, `price` float NOT NULL, `delivery_period` int(11) DEFAULT NULL, `img` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `best_selling` tinyint(1) NOT NULL DEFAULT '0', `basic_category_id` bigint(20) UNSIGNED NOT NULL, `category_id` bigint(20) UNSIGNED DEFAULT NULL, `quantity` int(11) NOT NULL, `is_order` tinyint(1) NOT NULL DEFAULT '0', `order_type` tinyint(1) NOT NULL DEFAULT '0', `order_s` tinyint(1) NOT NULL DEFAULT '0', `order_l` tinyint(1) NOT NULL DEFAULT '0', `order_m` tinyint(1) NOT NULL DEFAULT '0', `order_xl` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `products` -- INSERT INTO `products` (`id`, `title_en`, `title_ar`, `description_en`, `description_ar`, `appearance`, `featured`, `new`, `price`, `delivery_period`, `img`, `best_selling`, `basic_category_id`, `category_id`, `quantity`, `is_order`, `order_type`, `order_s`, `order_l`, `order_m`, `order_xl`, `created_at`, `updated_at`) VALUES (103, 'embroidered abaya', 'عباية مطرزة', 'Abaya in its spirit at a price of 68 dinars\r\nAbaya with pants for 78 dinars', 'العباية بروحها بسعر 68 دينار\r\nالعباية مع البنطلون بسعر 78 دينار', 1, 0, 1, 78, NULL, 'uploads/products/images/9.jpg', 1, 1, 3, 4, 1, 1, 1, 1, 1, 1, '2022-01-01 11:28:24', '2022-01-01 11:28:24'), (123, 'Khomar', 'خمار مع قبعه', 'خمار مع قبعه داخليه من غير نقاب', 'خمار مع قبعه داخليه من غير نقاب', 1, 0, 1, 15, NULL, 'uploads/products/images/15.jpg', 1, 4, 19, 4, 1, 0, 1, 1, 1, 1, '2022-01-07 13:26:22', '2022-01-09 12:45:24'), (125, 'خمار مع قبعه داخليه من غير نقاب', 'خمار مع قبعه داخليه من غير نقاب', 'خمار مع قبعه داخليه من غير نقاب', 'خمار مع قبعه داخليه من غير نقاب', 1, 0, 1, 15, NULL, 'uploads/products/images/14.jpg', 1, 4, 19, 4, 1, 0, 1, 1, 1, 1, '2022-01-08 14:38:32', '2022-01-08 14:38:32'); -- -------------------------------------------------------- -- -- Table structure for table `prod_colors` -- CREATE TABLE `prod_colors` ( `id` bigint(20) UNSIGNED NOT NULL, `product_id` bigint(20) UNSIGNED NOT NULL, `color_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `prod_heights` -- CREATE TABLE `prod_heights` ( `id` bigint(20) UNSIGNED NOT NULL, `quantity` int(11) NOT NULL, `product_id` bigint(20) UNSIGNED NOT NULL, `size_id` bigint(20) UNSIGNED NOT NULL, `height_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `prod_imgs` -- CREATE TABLE `prod_imgs` ( `id` bigint(20) UNSIGNED NOT NULL, `img` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `product_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `prod_properties` -- CREATE TABLE `prod_properties` ( `id` bigint(20) UNSIGNED NOT NULL, `prop_name_ar` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `prop_value_ar` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `prop_name_en` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `prop_value_en` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `product_id` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `prod_sizes` -- CREATE TABLE `prod_sizes` ( `id` bigint(20) UNSIGNED NOT NULL, `product_id` bigint(20) UNSIGNED NOT NULL, `size_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `roles` -- CREATE TABLE `roles` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `display_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `roles` -- INSERT INTO `roles` (`id`, `name`, `display_name`, `description`, `created_at`, `updated_at`) VALUES (1, 'admin', 'User Administrator', 'User is allowed to manage and edit other users', '2021-09-11 21:13:55', '2021-09-11 21:13:55'); -- -------------------------------------------------------- -- -- Table structure for table `role_user` -- CREATE TABLE `role_user` ( `role_id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL, `user_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `role_user` -- INSERT INTO `role_user` (`role_id`, `user_id`, `user_type`) VALUES (1, 1, 'App\\User'); -- -------------------------------------------------------- -- -- Table structure for table `settings` -- CREATE TABLE `settings` ( `id` bigint(20) UNSIGNED NOT NULL, `logo` longtext COLLATE utf8mb4_unicode_ci, `footer_logo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `ad_image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `facebook` longtext COLLATE utf8mb4_unicode_ci, `site_name_ar` longtext COLLATE utf8mb4_unicode_ci, `site_name_en` longtext COLLATE utf8mb4_unicode_ci, `site_des_ar` longtext COLLATE utf8mb4_unicode_ci, `site_des_en` longtext COLLATE utf8mb4_unicode_ci, `email` longtext COLLATE utf8mb4_unicode_ci, `twitter` longtext COLLATE utf8mb4_unicode_ci, `google_plus` longtext COLLATE utf8mb4_unicode_ci, `youtube` longtext COLLATE utf8mb4_unicode_ci, `whatsapp` longtext COLLATE utf8mb4_unicode_ci, `ios_link` longtext COLLATE utf8mb4_unicode_ci, `android_link` longtext COLLATE utf8mb4_unicode_ci, `instagram` longtext COLLATE utf8mb4_unicode_ci, `telegram` longtext COLLATE utf8mb4_unicode_ci, `phone` longtext COLLATE utf8mb4_unicode_ci, `snapchat` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `landing_image` varchar(300) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `landing_image_mob` varchar(300) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `settings` -- INSERT INTO `settings` (`id`, `logo`, `footer_logo`, `ad_image`, `facebook`, `site_name_ar`, `site_name_en`, `site_des_ar`, `site_des_en`, `email`, `twitter`, `google_plus`, `youtube`, `whatsapp`, `ios_link`, `android_link`, `instagram`, `telegram`, `phone`, `snapchat`, `landing_image`, `landing_image_mob`, `created_at`, `updated_at`) VALUES (2, 'uploads/logos/images//1643676194457safat-logo-ar.png', 'uploads/logos/images//1643675597955safat-logo-ar.png', 'uploads/logos/images//16436773689131.jpg', 'https://instagram.com/', 'صافات هوم', 'Safat Home', NULL, NULL, NULL, 'https://instagram.com/', NULL, 'https://instagram.com/', '96700033', NULL, NULL, 'https://instagram.com/', 'https://instagram.com/', '96700033', 'https://instagram.com/', 'uploads/logos/images//1641306237844تشكيلة.jpg', 'uploads/logos/images//1641306521499ففف.jpg', '2021-09-11 21:13:56', '2022-02-02 14:25:15'); -- -------------------------------------------------------- -- -- Table structure for table `sizes` -- CREATE TABLE `sizes` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `sizes` -- INSERT INTO `sizes` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'S', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (2, 'M', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (3, 'L', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (4, 'XL', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (5, 'XXL', '2021-09-11 21:13:56', '2021-09-11 21:13:56'), (6, 'اكسسوارات', '2021-12-01 11:43:58', '2021-12-01 11:43:58'); -- -------------------------------------------------------- -- -- Table structure for table `size_guides` -- CREATE TABLE `size_guides` ( `id` bigint(20) UNSIGNED NOT NULL, `name_en` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `name_ar` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `image_url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `size_guides` -- INSERT INTO `size_guides` (`id`, `name_en`, `name_ar`, `image_url`, `created_at`, `updated_at`) VALUES (1, 'Dresses and Daraa', 'فساتين ودراعات', 'uploads/size_guides/images//1641638251207فساتين ودراعات00.jpg', '2021-11-25 15:10:57', '2022-01-08 10:37:31'), (2, 'jumpsuit', 'جمبسوت', 'uploads/size_guides/images//1641638193847جمبوست 02 copy.jpg', '2021-11-25 15:11:19', '2022-01-08 10:36:33'), (3, 'pants', 'بناطيل', 'uploads/size_guides/images//1641638133525untitled-1.jpg', '2021-11-25 18:15:48', '2022-01-08 10:35:33'), (4, 'Abayas', 'عبايات', 'uploads/size_guides/images//1641638039213عباية 01.jpg', '2021-11-25 18:16:20', '2022-01-08 10:33:59'); -- -------------------------------------------------------- -- -- Table structure for table `sliders` -- CREATE TABLE `sliders` ( `id` bigint(20) UNSIGNED NOT NULL, `name_ar` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `name_en` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `description_ar` text COLLATE utf8mb4_unicode_ci NOT NULL, `description_en` text COLLATE utf8mb4_unicode_ci NOT NULL, `img` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `sliders` -- INSERT INTO `sliders` (`id`, `name_ar`, `name_en`, `description_ar`, `description_en`, `img`, `created_at`, `updated_at`) VALUES (1, 'اقوي عروض الشتاء', 'Winter Offers', 'عروض الشتاء', 'عروض الشتاء', 'uploads/sliders/images/16436764475591.jpg', '2021-09-13 21:59:10', '2022-01-31 22:47:27'), (2, '.', '.', '.', '.', 'uploads/sliders/images/16436764286274.jpg', '2021-09-13 21:59:25', '2022-01-31 22:47:08'), (3, '<NAME>', '<NAME>', 'Distinctio Autem co', 'Distinctio Autem co', 'uploads/sliders/images/16436764087143.jpg', '2022-01-31 22:20:22', '2022-01-31 22:46:49'), (4, '<NAME>', '<NAME>', 'Libero sed et volupt', 'Libero sed et volupt', 'uploads/sliders/images/16436763898392.jpg', '2022-01-31 22:20:43', '2022-01-31 22:46:30'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT '<EMAIL>', `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `password_view` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `country_id` bigint(20) UNSIGNED DEFAULT NULL, `job_id` int(11) NOT NULL DEFAULT '0', `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `<PASSWORD>`, `phone`, `country_id`, `job_id`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'saramerdas', '<EMAIL>', NULL, '$2y$10$/LesaFk5MWKpNZF/1dOMteNz65.ItLRkqWttGgv/.nJienzke40vO', 'safat2022', '96700033', 1, 1, NULL, '2021-09-11 21:13:55', '2022-02-02 14:12:09'), (2, '<NAME>', '<EMAIL>', NULL, '$2y$10$2XwODCSKMYOXR3i4UDgi5uW8bZHJbi.dtgCvqfpf6.0kmTs6rtxzS', 'Aliquam tempore eu ', '5425421', 2, 0, NULL, '2021-10-17 16:53:26', '2021-10-17 16:53:26'), (3, '<NAME>', NULL, NULL, '$2y$10$ZcfO5V.mzNIRy871OgjFhOYNgZNZE/SGslK4Ii0vIFVhxzW17mmji', 'Pa$$w0rd!', '0', 2, 0, NULL, '2021-10-23 08:05:06', '2021-10-23 08:54:05'), (4, '<NAME>', '<EMAIL>', NULL, '$2y$10$weHNYJr/RU0njmqPVswpWuHBEQefiO0qKhRwn3Q7acKfpsUYQ4FRe', '01100618113', '01100618113', 1, 0, NULL, '2021-11-08 11:59:59', '2021-11-08 11:59:59'), (6, 'AHMED', '<EMAIL>', NULL, '$2y$10$tNhHAVEb1BpuZ49Vy63ejeeYOO3xDXxOmBjBJTS0PHx733mIol82C', '12345678', '99427261', 1, 0, NULL, '2021-11-16 17:06:37', '2021-11-16 17:06:37'), (7, 'Islam', '<EMAIL>', NULL, '$2y$10$lp5VGWZktT0wSbAnkhOGrugCVt10pDijwjs8MlmkiRsZ8199/BncO', '11111111', '01229078596', 1, 1, NULL, '2021-11-17 09:59:56', '2021-11-17 09:59:56'), (8, 'انوار العنزي', NULL, NULL, '$2y$10$Ophz8C.BKc11ukSI9SIrhubiKxvgP/E5EWqnKlyd6h4o0USnXGC72', 'a123123a', '68886532', 1, 0, NULL, '2022-01-10 19:57:26', '2022-01-10 19:57:26'); -- -------------------------------------------------------- -- -- Table structure for table `views` -- CREATE TABLE `views` ( `id` bigint(20) UNSIGNED NOT NULL, `product_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `views` -- INSERT INTO `views` (`id`, `product_id`, `created_at`, `updated_at`) VALUES (1, 1, '2021-09-11 21:33:37', '2021-11-09 14:00:54'), (2, 2, '2021-10-16 16:47:15', '2021-11-11 23:03:41'), (3, 4, '2021-11-07 08:15:01', '2021-11-12 00:04:17'), (4, 5, '2021-11-07 08:16:33', '2021-11-09 10:19:58'), (5, 3, '2021-11-09 10:09:36', '2021-11-13 17:50:18'), (6, 6, '2021-11-14 10:08:25', '2021-11-30 17:52:44'), (7, 8, '2021-11-14 16:44:41', '2022-01-31 03:39:06'), (8, 7, '2021-11-14 16:58:12', '2021-11-29 09:17:55'), (9, 9, '2021-11-15 17:19:25', '2021-11-30 14:57:08'), (10, 10, '2021-11-25 17:48:20', '2021-11-25 17:48:20'), (11, 11, '2021-11-27 19:04:01', '2022-01-31 10:58:41'), (12, 17, '2021-11-30 14:03:41', '2022-01-27 09:18:24'), (13, 15, '2021-11-30 14:06:12', '2022-01-31 03:38:52'), (14, 18, '2021-11-30 14:58:09', '2022-01-10 14:43:39'), (15, 16, '2021-11-30 14:58:57', '2022-01-07 15:07:34'), (16, 22, '2021-11-30 17:53:01', '2022-01-07 07:54:59'), (17, 45, '2021-12-01 11:48:27', '2021-12-01 11:48:27'), (18, 46, '2021-12-01 12:50:25', '2021-12-01 12:50:34'), (19, 50, '2021-12-01 15:25:40', '2022-01-09 16:40:06'), (20, 47, '2021-12-01 15:44:52', '2022-01-31 11:00:55'), (21, 24, '2021-12-01 17:20:21', '2022-01-08 03:22:52'), (22, 48, '2021-12-02 09:43:35', '2022-01-31 10:52:46'), (23, 55, '2021-12-06 10:26:47', '2022-01-30 15:45:21'), (24, 54, '2021-12-06 14:47:21', '2022-01-31 10:56:54'), (25, 43, '2021-12-06 14:53:17', '2022-01-30 15:46:38'), (26, 23, '2021-12-06 14:56:51', '2022-01-30 09:39:48'), (27, 53, '2021-12-06 15:02:55', '2022-01-30 17:14:59'), (28, 20, '2021-12-06 15:55:02', '2022-01-25 19:09:55'), (29, 49, '2021-12-08 21:40:38', '2022-01-07 07:24:38'), (30, 21, '2021-12-08 23:37:29', '2022-01-06 10:39:57'), (31, 14, '2021-12-09 17:06:02', '2022-01-30 09:38:52'), (32, 57, '2021-12-09 17:34:14', '2022-02-01 11:48:33'), (33, 58, '2021-12-09 20:46:30', '2022-01-10 01:11:16'), (34, 56, '2021-12-09 22:25:13', '2022-01-29 17:28:28'), (35, 52, '2021-12-10 12:31:39', '2022-01-29 17:24:46'), (36, 60, '2021-12-10 12:31:47', '2022-01-06 19:50:08'), (37, 59, '2021-12-10 12:31:52', '2022-01-29 10:50:43'), (38, 51, '2021-12-10 12:31:58', '2022-01-09 16:18:53'), (39, 65, '2021-12-12 05:39:41', '2022-01-07 18:56:07'), (40, 68, '2021-12-13 21:04:13', '2022-01-27 16:47:50'), (41, 61, '2021-12-14 14:08:15', '2022-01-06 20:37:21'), (42, 67, '2021-12-14 17:35:43', '2022-01-29 22:55:43'), (43, 69, '2021-12-14 17:36:58', '2022-01-07 12:58:54'), (44, 72, '2021-12-15 19:23:52', '2022-01-07 06:39:10'), (45, 74, '2021-12-15 19:23:55', '2022-01-29 09:10:12'), (46, 71, '2021-12-15 19:23:57', '2022-01-07 22:28:23'), (47, 70, '2021-12-15 19:23:59', '2022-01-07 16:43:37'), (48, 73, '2021-12-15 19:24:01', '2022-01-06 20:57:38'), (49, 66, '2021-12-15 19:24:33', '2022-01-31 10:46:33'), (50, 64, '2021-12-15 19:24:35', '2022-01-07 05:02:33'), (51, 63, '2021-12-15 19:24:38', '2022-01-28 20:52:44'), (52, 62, '2021-12-15 19:24:41', '2022-01-29 02:21:38'), (53, 75, '2021-12-20 14:15:51', '2021-12-21 08:00:55'), (54, 81, '2021-12-21 18:18:20', '2022-01-27 16:37:59'), (55, 82, '2021-12-21 18:18:23', '2022-01-30 09:11:23'), (56, 85, '2021-12-21 18:18:26', '2022-01-31 10:52:14'), (57, 83, '2021-12-21 18:18:29', '2022-01-07 13:29:45'), (58, 84, '2021-12-21 18:18:32', '2022-01-31 03:38:34'), (59, 80, '2021-12-21 18:18:35', '2022-01-30 15:16:38'), (60, 79, '2021-12-21 18:18:57', '2022-01-31 10:56:36'), (61, 78, '2021-12-21 18:19:00', '2022-01-29 17:31:29'), (62, 76, '2021-12-21 18:19:05', '2022-01-30 06:37:24'), (63, 77, '2021-12-21 18:19:07', '2022-01-29 17:42:35'), (64, 19, '2021-12-22 18:13:19', '2022-01-29 23:49:20'), (65, 89, '2021-12-25 17:50:17', '2022-01-31 10:56:19'), (66, 86, '2021-12-25 19:32:21', '2022-01-30 11:51:57'), (67, 87, '2021-12-25 19:32:24', '2022-01-31 10:57:20'), (68, 88, '2021-12-25 19:32:39', '2022-01-30 06:26:06'), (69, 90, '2021-12-25 19:32:58', '2022-01-30 06:29:50'), (70, 91, '2021-12-25 19:33:06', '2022-01-25 17:23:28'), (71, 110, '2022-01-01 13:10:23', '2022-01-30 12:36:25'), (72, 112, '2022-01-01 14:18:08', '2022-01-01 14:18:08'), (73, 103, '2022-01-01 18:10:26', '2022-01-31 03:37:49'), (74, 101, '2022-01-01 18:10:47', '2022-01-31 02:26:38'), (75, 100, '2022-01-01 18:11:17', '2022-01-30 06:28:02'), (76, 97, '2022-01-01 18:11:28', '2022-01-31 02:06:38'), (77, 96, '2022-01-01 21:01:42', '2022-01-30 06:33:55'), (78, 99, '2022-01-01 23:48:31', '2022-01-30 06:34:12'), (79, 102, '2022-01-02 01:26:47', '2022-01-30 11:49:26'), (80, 104, '2022-01-02 04:26:47', '2022-01-31 03:35:53'), (81, 94, '2022-01-02 07:18:31', '2022-01-31 03:37:08'), (82, 98, '2022-01-02 07:26:47', '2022-01-29 17:41:25'), (83, 107, '2022-01-02 11:48:55', '2022-01-30 12:36:00'), (84, 108, '2022-01-02 11:48:55', '2022-01-07 20:37:28'), (85, 111, '2022-01-02 16:41:47', '2022-01-31 10:55:42'), (86, 95, '2022-01-02 18:32:08', '2022-01-31 03:39:28'), (87, 114, '2022-01-03 08:43:08', '2022-01-03 08:44:52'), (88, 116, '2022-01-03 08:51:56', '2022-01-06 17:45:36'), (89, 109, '2022-01-03 19:35:11', '2022-01-30 12:35:03'), (90, 106, '2022-01-04 05:03:05', '2022-01-30 12:34:21'), (91, 117, '2022-01-04 12:02:38', '2022-01-04 12:03:06'), (92, 118, '2022-01-04 12:19:52', '2022-01-04 12:19:52'), (93, 105, '2022-01-05 15:19:24', '2022-01-31 11:00:30'), (94, 120, '2022-01-05 21:08:57', '2022-01-30 12:35:38'), (95, 119, '2022-01-06 00:49:20', '2022-01-30 09:40:44'), (96, 121, '2022-01-06 16:16:14', '2022-01-06 16:18:57'), (97, 122, '2022-01-06 16:21:27', '2022-01-06 17:41:14'), (98, 123, '2022-01-07 13:28:47', '2022-01-31 04:50:43'), (99, 124, '2022-01-08 13:39:15', '2022-01-08 13:39:15'), (100, 126, '2022-01-08 15:02:47', '2022-01-30 12:35:50'), (101, 125, '2022-01-08 15:53:28', '2022-01-31 11:01:27'), (102, 127, '2022-01-08 16:11:08', '2022-01-08 16:11:08'), (103, 129, '2022-01-08 16:16:54', '2022-01-29 02:44:06'), (104, 133, '2022-01-08 16:42:22', '2022-01-31 10:55:18'), (105, 130, '2022-01-08 16:42:39', '2022-01-29 02:41:48'), (106, 132, '2022-01-08 16:43:58', '2022-01-27 19:16:33'), (107, 135, '2022-01-08 17:00:37', '2022-02-01 11:40:05'), (108, 138, '2022-01-09 00:18:44', '2022-02-01 11:42:39'), (109, 139, '2022-01-09 04:25:57', '2022-02-02 13:20:55'), (110, 140, '2022-01-09 16:34:49', '2022-01-09 16:34:49'), (111, 136, '2022-01-09 18:32:17', '2022-02-02 12:56:06'), (112, 141, '2022-01-10 16:10:38', '2022-01-10 16:16:28'), (113, 131, '2022-01-10 17:40:07', '2022-01-23 11:56:29'), (114, 137, '2022-02-01 12:01:59', '2022-02-01 12:01:59'); -- -------------------------------------------------------- -- -- Table structure for table `wish_list` -- CREATE TABLE `wish_list` ( `id` bigint(20) UNSIGNED NOT NULL, `product_id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Indexes for dumped tables -- -- -- Indexes for table `basic_categories` -- ALTER TABLE `basic_categories` ADD PRIMARY KEY (`id`); -- -- Indexes for table `best_sellers` -- ALTER TABLE `best_sellers` ADD PRIMARY KEY (`id`); -- -- Indexes for table `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`), ADD KEY `categories_basic_category_id_foreign` (`basic_category_id`); -- -- Indexes for table `cities` -- ALTER TABLE `cities` ADD PRIMARY KEY (`id`), ADD KEY `cities_country_id_foreign` (`country_id`); -- -- Indexes for table `colors` -- ALTER TABLE `colors` ADD PRIMARY KEY (`id`); -- -- Indexes for table `contact_messages` -- ALTER TABLE `contact_messages` ADD PRIMARY KEY (`id`); -- -- Indexes for table `countries` -- ALTER TABLE `countries` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `countries_currency_id_unique` (`currency_id`); -- -- Indexes for table `coupons` -- ALTER TABLE `coupons` ADD PRIMARY KEY (`id`); -- -- Indexes for table `currencies` -- ALTER TABLE `currencies` ADD PRIMARY KEY (`id`); -- -- Indexes for table `custom_sizes` -- ALTER TABLE `custom_sizes` ADD PRIMARY KEY (`id`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `heights` -- ALTER TABLE `heights` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `news` -- ALTER TABLE `news` ADD PRIMARY KEY (`id`); -- -- Indexes for table `orders` -- ALTER TABLE `orders` ADD PRIMARY KEY (`id`); -- -- Indexes for table `order_items` -- ALTER TABLE `order_items` ADD PRIMARY KEY (`id`); -- -- Indexes for table `pages` -- ALTER TABLE `pages` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `permissions` -- ALTER TABLE `permissions` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `permissions_name_unique` (`name`); -- -- Indexes for table `permission_role` -- ALTER TABLE `permission_role` ADD PRIMARY KEY (`permission_id`,`role_id`), ADD KEY `permission_role_role_id_foreign` (`role_id`); -- -- Indexes for table `permission_user` -- ALTER TABLE `permission_user` ADD PRIMARY KEY (`user_id`,`permission_id`,`user_type`), ADD KEY `permission_user_permission_id_foreign` (`permission_id`); -- -- Indexes for table `posts` -- ALTER TABLE `posts` ADD PRIMARY KEY (`id`); -- -- Indexes for table `products` -- ALTER TABLE `products` ADD PRIMARY KEY (`id`), ADD KEY `products_basic_category_id_foreign` (`basic_category_id`), ADD KEY `category_id_foreign` (`category_id`); -- -- Indexes for table `prod_colors` -- ALTER TABLE `prod_colors` ADD PRIMARY KEY (`id`), ADD KEY `prod_colors_product_id_foreign` (`product_id`), ADD KEY `prod_colors_color_id_foreign` (`color_id`); -- -- Indexes for table `prod_heights` -- ALTER TABLE `prod_heights` ADD PRIMARY KEY (`id`), ADD KEY `prod_heights_product_id_foreign` (`product_id`), ADD KEY `prod_heights_height_id_foreign` (`height_id`), ADD KEY `prod_heights_size_id_foreign` (`size_id`); -- -- Indexes for table `prod_imgs` -- ALTER TABLE `prod_imgs` ADD PRIMARY KEY (`id`), ADD KEY `prod_imgs_product_id_foreign` (`product_id`); -- -- Indexes for table `prod_properties` -- ALTER TABLE `prod_properties` ADD PRIMARY KEY (`id`), ADD KEY `product_id` (`product_id`); -- -- Indexes for table `prod_sizes` -- ALTER TABLE `prod_sizes` ADD PRIMARY KEY (`id`), ADD KEY `prod_sizes_product_id_foreign` (`product_id`), ADD KEY `prod_sizes_size_id_foreign` (`size_id`); -- -- Indexes for table `roles` -- ALTER TABLE `roles` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `roles_name_unique` (`name`); -- -- Indexes for table `role_user` -- ALTER TABLE `role_user` ADD PRIMARY KEY (`user_id`,`role_id`,`user_type`), ADD KEY `role_user_role_id_foreign` (`role_id`); -- -- Indexes for table `settings` -- ALTER TABLE `settings` ADD PRIMARY KEY (`id`); -- -- Indexes for table `sizes` -- ALTER TABLE `sizes` ADD PRIMARY KEY (`id`); -- -- Indexes for table `size_guides` -- ALTER TABLE `size_guides` ADD PRIMARY KEY (`id`); -- -- Indexes for table `sliders` -- ALTER TABLE `sliders` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- Indexes for table `views` -- ALTER TABLE `views` ADD PRIMARY KEY (`id`); -- -- Indexes for table `wish_list` -- ALTER TABLE `wish_list` ADD PRIMARY KEY (`id`), ADD KEY `wish_list_product_id_foreign` (`product_id`), ADD KEY `wish_list_user_id_foreign` (`user_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `basic_categories` -- ALTER TABLE `basic_categories` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `best_sellers` -- ALTER TABLE `best_sellers` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT for table `categories` -- ALTER TABLE `categories` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT for table `cities` -- ALTER TABLE `cities` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `colors` -- ALTER TABLE `colors` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `contact_messages` -- ALTER TABLE `contact_messages` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `countries` -- ALTER TABLE `countries` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `coupons` -- ALTER TABLE `coupons` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `currencies` -- ALTER TABLE `currencies` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `custom_sizes` -- ALTER TABLE `custom_sizes` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `heights` -- ALTER TABLE `heights` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30; -- -- AUTO_INCREMENT for table `news` -- ALTER TABLE `news` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `orders` -- ALTER TABLE `orders` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=72; -- -- AUTO_INCREMENT for table `order_items` -- ALTER TABLE `order_items` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `pages` -- ALTER TABLE `pages` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `permissions` -- ALTER TABLE `permissions` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `posts` -- ALTER TABLE `posts` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `products` -- ALTER TABLE `products` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=153; -- -- AUTO_INCREMENT for table `prod_colors` -- ALTER TABLE `prod_colors` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19; -- -- AUTO_INCREMENT for table `prod_heights` -- ALTER TABLE `prod_heights` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `prod_imgs` -- ALTER TABLE `prod_imgs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=465; -- -- AUTO_INCREMENT for table `prod_properties` -- ALTER TABLE `prod_properties` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `prod_sizes` -- ALTER TABLE `prod_sizes` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `roles` -- ALTER TABLE `roles` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `settings` -- ALTER TABLE `settings` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `sizes` -- ALTER TABLE `sizes` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `size_guides` -- ALTER TABLE `size_guides` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `sliders` -- ALTER TABLE `sliders` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `views` -- ALTER TABLE `views` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=115; -- -- AUTO_INCREMENT for table `wish_list` -- ALTER TABLE `wish_list` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- Constraints for dumped tables -- -- -- Constraints for table `categories` -- ALTER TABLE `categories` ADD CONSTRAINT `categories_basic_category_id_foreign` FOREIGN KEY (`basic_category_id`) REFERENCES `basic_categories` (`id`) ON DELETE CASCADE; -- -- Constraints for table `cities` -- ALTER TABLE `cities` ADD CONSTRAINT `cities_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`) ON DELETE CASCADE; -- -- Constraints for table `countries` -- ALTER TABLE `countries` ADD CONSTRAINT `countries_currency_id_foreign` FOREIGN KEY (`currency_id`) REFERENCES `currencies` (`id`) ON DELETE CASCADE; -- -- Constraints for table `permission_role` -- ALTER TABLE `permission_role` ADD CONSTRAINT `permission_role_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `permission_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `permission_user` -- ALTER TABLE `permission_user` ADD CONSTRAINT `permission_user_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `products` -- ALTER TABLE `products` ADD CONSTRAINT `products_basic_category_id_foreign` FOREIGN KEY (`basic_category_id`) REFERENCES `basic_categories` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `products_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE; -- -- Constraints for table `prod_heights` -- ALTER TABLE `prod_heights` ADD CONSTRAINT `prod_heights_height_id_foreign` FOREIGN KEY (`height_id`) REFERENCES `heights` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `prod_heights_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `prod_heights_size_id_foreign` FOREIGN KEY (`size_id`) REFERENCES `sizes` (`id`) ON DELETE CASCADE; -- -- Constraints for table `prod_imgs` -- ALTER TABLE `prod_imgs` ADD CONSTRAINT `prod_imgs_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE; -- -- Constraints for table `prod_sizes` -- ALTER TABLE `prod_sizes` ADD CONSTRAINT `prod_sizes_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `prod_sizes_size_id_foreign` FOREIGN KEY (`size_id`) REFERENCES `sizes` (`id`) ON DELETE CASCADE; -- -- Constraints for table `role_user` -- ALTER TABLE `role_user` ADD CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `wish_list` -- ALTER TABLE `wish_list` ADD CONSTRAINT `wish_list_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `wish_list_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>src/data/schema/class.sql -- -- class as in the abstract class of CSCI-1200 i.e. data structure, that has sections, that each have class_session -- drop table class; -- create table class( -- department varchar(255), -- level int, -- title varchar(255), -- ) -- consider having class maybe
ALTER TABLE `on_product` ADD COLUMN `user_id` int NOT NULL AFTER `category_id`, ADD CONSTRAINT `Product_Businessman` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`);
<gh_stars>0 -- имена тренеров чей возраст больше 20 и возраст спортсмена которого они тренируют больше 80 SELECT name FROM treners WHERE age > 20 AND EXISTS ( SELECT id FROM sportsmen WHERE sportsmen.id_trener = treners.id AND sportsmen.age > 80 );
<filename>back-end/server/services/federation-auth/prisma/migrations/20211104221754_removed_profile_fields/migration.sql /* Warnings: - You are about to drop the column `address` on the `User` table. All the data in the column will be lost. - You are about to drop the column `avatar` on the `User` table. All the data in the column will be lost. - You are about to drop the column `banner` on the `User` table. All the data in the column will be lost. - You are about to drop the column `phone` on the `User` table. All the data in the column will be lost. - You are about to drop the column `username` on the `User` table. All the data in the column will be lost. */ -- AlterTable ALTER TABLE "User" DROP COLUMN "address", DROP COLUMN "avatar", DROP COLUMN "banner", DROP COLUMN "phone", DROP COLUMN "username";
print 'Running script 1.10.0-1100.sql'
alter table SEO_PAGES add UNESCAPED_FRAGMENT varchar(724) after ESCAPED_FRAGMENT, add INDEX ESCAPED_FRAGMENT (ESCAPED_FRAGMENT), add INDEX DOMAIN (DOMAIN); commit;
<gh_stars>1-10 -- MySQL dump 10.13 Distrib 5.6.15, for Linux (x86_64) -- -- Host: localhost Database: directory -- ------------------------------------------------------ -- Server version 5.6.15 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; CREATE DATABASE `directory`; USE `directory`; -- -- Table structure for table `company_profiles` -- DROP TABLE IF EXISTS `company_profiles`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `company_profiles` ( `id` mediumint(9) DEFAULT NULL, `company_name` varchar(255) DEFAULT NULL, `phone_num` varchar(100) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `company_profiles` -- LOCK TABLES `company_profiles` WRITE; /*!40000 ALTER TABLE `company_profiles` DISABLE KEYS */; INSERT INTO `company_profiles` VALUES (70,'Lorem Ipsum Institute','(504) 141-1931'),(33,'Vestibulum Nec Euismod LLP','(705) 321-4911'),(45,'Congue Elit Sed Limited','(617) 441-1762'),(93,'Vitae Velit Egestas Incorporated','(522) 182-9846'),(27,'Turpis Non Enim Corporation','(424) 781-0181'),(84,'Et LLP','(335) 706-5212'),(57,'Velit Company','(796) 498-9205'),(48,'Per Conubia PC','(606) 311-2596'),(36,'Facilisis Company','(529) 472-7564'),(11,'Libero Foundation','(322) 119-3573'); /*!40000 ALTER TABLE `company_profiles` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2016-06-22 10:12:20
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost:3306 -- Généré le : sam. 21 mars 2020 à 23:09 -- Version du serveur : 5.7.24 -- Version de PHP : 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de données : `command_app2020` -- CREATE DATABASE IF NOT EXISTS `command_app2020` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `command_app2020`; -- -------------------------------------------------------- -- -- Structure de la table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2020_03_21_203916_create_providers_table', 1), (4, '2020_03_21_203932_create_products_table', 1), (5, '2020_03_21_203952_create_supplies_table', 1), (6, '2020_03_21_204019_create_sales_table', 1), (7, '2020_03_21_204114_create_notifications_table', 1); -- -------------------------------------------------------- -- -- Structure de la table `notifications` -- CREATE TABLE `notifications` ( `id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL, `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `notifiable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `notifiable_id` bigint(20) UNSIGNED NOT NULL, `data` text COLLATE utf8mb4_unicode_ci NOT NULL, `read_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Structure de la table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Structure de la table `products` -- CREATE TABLE `products` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `quantity` int(11) NOT NULL, `price` int(11) NOT NULL, `unity` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `unity_price` int(11) NOT NULL, `description` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Structure de la table `providers` -- CREATE TABLE `providers` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Structure de la table `sales` -- CREATE TABLE `sales` ( `id` bigint(20) UNSIGNED NOT NULL, `quantity` int(11) NOT NULL, `product_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Structure de la table `supplies` -- CREATE TABLE `supplies` ( `id` bigint(20) UNSIGNED NOT NULL, `quanity` int(11) NOT NULL, `price` int(11) NOT NULL, `confirmed_at` datetime NOT NULL, `product_id` bigint(20) UNSIGNED NOT NULL, `provider_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Structure de la table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `login` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `profile_image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `role` enum('admin','cashier') COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Index pour les tables déchargées -- -- -- Index pour la table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Index pour la table `notifications` -- ALTER TABLE `notifications` ADD PRIMARY KEY (`id`), ADD KEY `notifications_notifiable_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`); -- -- Index pour la table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Index pour la table `products` -- ALTER TABLE `products` ADD PRIMARY KEY (`id`); -- -- Index pour la table `providers` -- ALTER TABLE `providers` ADD PRIMARY KEY (`id`); -- -- Index pour la table `sales` -- ALTER TABLE `sales` ADD PRIMARY KEY (`id`), ADD KEY `sales_product_id_foreign` (`product_id`); -- -- Index pour la table `supplies` -- ALTER TABLE `supplies` ADD PRIMARY KEY (`id`), ADD KEY `supplies_product_id_foreign` (`product_id`), ADD KEY `supplies_provider_id_foreign` (`provider_id`); -- -- Index pour la table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT pour les tables déchargées -- -- -- AUTO_INCREMENT pour la table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT pour la table `products` -- ALTER TABLE `products` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT pour la table `providers` -- ALTER TABLE `providers` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT pour la table `sales` -- ALTER TABLE `sales` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT pour la table `supplies` -- ALTER TABLE `supplies` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT pour la table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- Contraintes pour les tables déchargées -- -- -- Contraintes pour la table `sales` -- ALTER TABLE `sales` ADD CONSTRAINT `sales_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`); -- -- Contraintes pour la table `supplies` -- ALTER TABLE `supplies` ADD CONSTRAINT `supplies_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`), ADD CONSTRAINT `supplies_provider_id_foreign` FOREIGN KEY (`provider_id`) REFERENCES `providers` (`id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>BugsUK/FindApprenticeship<gh_stars>1-10 /* ------------------------------------------------------------------- Name : ReportGetFrameworkFor Description : returns ordered unique sector for framework History: -------- Date Version Author Comment 27-Aug-2008 1.0 <NAME> first version ---------------------------------------------------------------------- */ CREATE procedure [dbo].[ReportGetFrameworkFor] (@Occupation int) as BEGIN SET NOCOUNT ON SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED BEGIN TRY create table #tmp1(id int, fullname varchar(1000)) create table #tmp2(id int, fullname varchar(1000)) insert into #tmp1 SELECT ApprenticeshipFrameworkId, CodeName + ' ' + FullName FROM dbo.ApprenticeshipFramework WHERE ApprenticeshipFrameworkId <> 0 and ((@Occupation=-1) or (@Occupation<>-1 and ApprenticeshipOccupationId=@Occupation)) AND ApprenticeshipFrameworkStatusTypeId <> 2 order by CodeName insert into #tmp2 SELECT ApprenticeshipFrameworkId, 'CLOSED ' + CodeName + ' ' + FullName FROM dbo.ApprenticeshipFramework WHERE ApprenticeshipFrameworkId <> 0 and ((@Occupation=-1) or (@Occupation<>-1 and ApprenticeshipOccupationId=@Occupation)) AND ApprenticeshipFrameworkStatusTypeId = 2 order by CodeName select -1 as ApprenticeshipFrameworkId, 'All' as FrameworkName, 0 as ord union all SELECT id,FullName,1 as Ord FROM #tmp1 union all SELECT id,FullName,2 as Ord FROM #tmp2 ORDER BY ord,FrameworkName END TRY BEGIN CATCH EXEC RethrowError END CATCH SET NOCOUNT OFF END
<reponame>xaiguy/abstractions CREATE OR REPLACE VIEW venus.view_vtokens (symbol, contract_address, decimals, underlying_token_address) AS VALUES ('vBNB'::text, '\xa07c5b74c9b40447a954e1466938b865b6bbea36'::bytea, 8::numeric, '\xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c'::bytea), ('vAAVE'::text, '\x26DA28954763B92139ED49283625ceCAf52C6f94'::bytea, 8::numeric, '\xfb6115445Bff7b52FeB98650C87f44907E58f802'::bytea), ('vADA'::text, '\x9A0AF7FDb2065Ce470D72664DE73cAE409dA28Ec'::bytea, 8::numeric, '\x3EE2200Efb3400fAbB9AacF31297cBdD1d435D47'::bytea), ('vBCH'::text, '\x5F0388EBc2B94FA8E123F404b79cCF5f40b29176'::bytea, 8::numeric, '\x8fF795a6F4D97E7887C79beA79aba5cc76444aDf'::bytea), ('vBETH'::text, '\x972207A639CC1B374B893cc33Fa251b55CEB7c07'::bytea, 8::numeric, '\x250632378E573c6Be1AC2f97Fcdf00515d0Aa91B'::bytea), ('vBTC'::text, '\x882C173bC7Ff3b7786CA16dfeD3DFFfb9Ee7847B'::bytea, 8::numeric, '\x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c'::bytea), ('vBUSD'::text, '\x95c78222B3D6e262426483D42CfA53685A67Ab9D'::bytea, 8::numeric, '\xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56'::bytea), ('vCAKE'::text, '\x86aC3974e2BD0d60825230fa6F355fF11409df5c'::bytea, 8::numeric, '\x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82'::bytea), ('vDAI'::text, '\x334b3eCB4DCa3593BCCC3c7EBD1A1C1d1780FBF1'::bytea, 8::numeric, '\x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3'::bytea), ('vDOGE'::text, '\xec3422Ef92B2fb59e84c8B02Ba73F1fE84Ed8D71'::bytea, 8::numeric, '\xbA2aE424d960c26247Dd6c32edC70B295c744C43'::bytea), ('vDOT'::text, '\x1610bc33319e9398de5f57B33a5b184c806aD217'::bytea, 8::numeric, '\x7083609fCE4d1d8Dc0C979AAb8c869Ea2C873402'::bytea), ('vETH'::text, '\xf508fCD89b8bd15579dc79A6827cB4686A3592c8'::bytea, 8::numeric, '\x2170Ed0880ac9A755fd29B2688956BD959F933F8'::bytea), ('vFIL'::text, '\xf91d58b5aE142DAcC749f58A49FCBac340Cb0343'::bytea, 8::numeric, '\x0D8Ce2A99Bb6e3B7Db580eD848240e4a0F9aE153'::bytea), ('vLINK'::text, '\x650b940a1033B8A1b1873f78730FcFC73ec11f1f'::bytea, 8::numeric, '\xF8A0BF9cF54Bb92F17374d9e9A321E6a111a51bD'::bytea), ('vLTC'::text, '\x57A5297F2cB2c0AaC9D554660acd6D385Ab50c6B'::bytea, 8::numeric, '\x4338665CBB7B2485A8855A139b75D5e34AB0DB94'::bytea), ('vMATIC'::text, '\x5c9476fcd6a4f9a3654139721c949c2233bbbbc8'::bytea, 8::numeric, '\xcc42724c6683b7e57334c4e856f4c9965ed682bd'::bytea), ('vSXP'::text, '\x2fF3d0F6990a40261c66E1ff2017aCBc282EB6d0'::bytea, 8::numeric, '\x47BEAd2563dCBf3bF2c9407fEa4dC236fAbA485A'::bytea), ('vTRX'::text, '\x61eDcFe8Dd6bA3c891CB9bEc2dc7657B3B422E93'::bytea, 8::numeric, '\x85EAC5Ac2F758618dFa09bDbe0cf174e7d574D5B'::bytea), ('vTUSD'::text, '\x08ceb3f4a7ed3500ca0982bcd0fc7816688084c3'::bytea, 8::numeric, '\x14016e85a25aeb13065688cafb43044c2ef86784'::bytea), ('vUSDC'::text, '\xecA88125a5ADbe82614ffC12D0DB554E2e2867C8'::bytea, 8::numeric, '\x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d'::bytea), ('vUSDT'::text, '\xfD5840Cd36d94D7229439859C0112a4185BC0255'::bytea, 8::numeric, '\x55d398326f99059fF775485246999027B3197955'::bytea), ('vXRP'::text, '\xB248a295732e0225acd3337607cc01068e3b9c10'::bytea, 8::numeric, '\x1D2F0da169ceB9fC7B3144628dB156f3F6c60dBE'::bytea), ('vXVS'::text, '\x151B1e2635A717bcDc836ECd6FbB62B674FE3E1D'::bytea, 8::numeric, '\xcF6BB5389c92Bdda8a3747Ddb454cB7a64626C63'::bytea) ;
<gh_stars>10-100 ALTER TABLE `contacts` ADD UNIQUE ( `phone`, `contact_group_id` ); -- ALTER TABLE `contacts` ADD INDEX ( `created_at` ); -- -- Triggers `callees` -- DROP TRIGGER IF EXISTS `movetocouch`; DELIMITER // CREATE TRIGGER `movetocouch` AFTER INSERT ON `contacts` FOR EACH ROW BEGIN INSERT IGNORE INTO contacts_couch_insert SET id=NEW.id, phone=NEW.phone,name=NEW.name,email=NEW.email,contact_group_id=NEW.contact_group_id,created_at=NEW.created_at,updated_at=NEW.updated_at,`couchrest-type`="Calleecouch"; END // DELIMITER ; DROP TRIGGER IF EXISTS `updateincouch`; DELIMITER // CREATE TRIGGER `updateincouch` BEFORE UPDATE ON `contacts` FOR EACH ROW BEGIN INSERT INTO contacts_couch_update SET id=NEW.id, phone=NEW.phone,name=NEW.name,email=NEW.email,contact_group_id=NEW.contact_group_id,created_at=NEW.created_at,updated_at=NEW.updated_at,`couchrest-type`="Calleecouch" ON DUPLICATE KEY UPDATE name = values(name), phone = values(phone), email = values(email); END // DELIMITER ; DROP TRIGGER IF EXISTS `deleteincouch`; DELIMITER // CREATE TRIGGER `deleteincouch` BEFORE DELETE ON `contacts` FOR EACH ROW BEGIN INSERT INTO contacts_couch_delete SET id=OLD.id; END // DELIMITER ;
<filename>src/sql/surgingdemo.sql<gh_stars>100-1000 SELECT * FROM auth_User IF OBJECT_ID ('dbo.auth_User') IS NOT NULL DROP TABLE dbo.auth_User GO CREATE TABLE dbo.auth_User ( Id BIGINT IDENTITY NOT NULL, TenantId INT, Name VARCHAR (50), Password VARCHAR (255), SecurityStamp VARCHAR (100), FullName VARCHAR (50), Surname VARCHAR (50), PhoneNumber VARCHAR (50), IsPhoneNumberConfirmed BIT DEFAULT ((0)) NOT NULL, EmailAddress VARCHAR (50), IsEmailConfirmed BIT DEFAULT ((0)) NOT NULL, EmailConfirmationCode VARCHAR (50), IsActive TINYINT DEFAULT ((0)) NOT NULL, PasswordResetCode VARCHAR (10), LastLoginTime DATETIME, IsLockoutEnabled BIT DEFAULT ((0)) NOT NULL, AccessFailedCount VARCHAR (50), LockoutEndDateUtc DATETIME, PRIMARY KEY (Id) ) GO
<reponame>FedorUporov/gridgain<gh_stars>100-1000 -- Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0, -- and the EPL 1.0 (http://h2database.com/html/license.html). -- Initial Developer: H2 Group -- CREATE TABLE TEST(C1 VARCHAR, C2 CHARACTER VARYING, C3 VARCHAR2, C4 NVARCHAR, C5 NVARCHAR2, C6 VARCHAR_CASESENSITIVE, C7 LONGVARCHAR, C8 TID); > ok SELECT COLUMN_NAME, DATA_TYPE, TYPE_NAME, COLUMN_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'TEST' ORDER BY ORDINAL_POSITION; > COLUMN_NAME DATA_TYPE TYPE_NAME COLUMN_TYPE > ----------- --------- --------- --------------------- > C1 12 VARCHAR VARCHAR > C2 12 VARCHAR CHARACTER VARYING > C3 12 VARCHAR VARCHAR2 > C4 12 VARCHAR NVARCHAR > C5 12 VARCHAR NVARCHAR2 > C6 12 VARCHAR VARCHAR_CASESENSITIVE > C7 12 VARCHAR LONGVARCHAR > C8 12 VARCHAR TID > rows (ordered): 8 DROP TABLE TEST; > ok
USE BUDT758_DB_0504_10 DELETE FROM [TerpEats.Write]; DELETE FROM [TerpEats.Review]; DELETE FROM [TerpEats.Dine]; DELETE FROM [TerpEats.Employee]; DELETE FROM [TerpEats.Restaurant]; DELETE FROM [TerpEats.Menu]; DELETE FROM [TerpEats.Location]; DELETE FROM [TerpEats.Customer];
<gh_stars>1-10 SELECT t_s_secyear.customer_id ,t_s_secyear.customer_first_name ,t_s_secyear.customer_last_name FROM ( SELECT c_customer_id customer_id ,c_first_name customer_first_name ,c_last_name customer_last_name ,d_year AS year ,MAX(ss_net_paid) year_total ,'s' sale_type FROM customer JOIN store_sales JOIN date_dim WHERE c_customer_sk = ss_customer_sk AND ss_sold_date_sk = d_date_sk AND d_year IN ( 1998 ,1998 + 1 ) GROUP BY c_customer_id ,c_first_name ,c_last_name ,d_year UNION ALL SELECT c_customer_id customer_id ,c_first_name customer_first_name ,c_last_name customer_last_name ,d_year AS year ,MAX(ws_net_paid) year_total ,'w' sale_type FROM customer JOIN web_sales JOIN date_dim WHERE c_customer_sk = ws_bill_customer_sk AND ws_sold_date_sk = d_date_sk AND d_year IN ( 1998 ,1998 + 1 ) GROUP BY c_customer_id ,c_first_name ,c_last_name ,d_year ) t_s_firstyear JOIN ( SELECT c_customer_id customer_id ,c_first_name customer_first_name ,c_last_name customer_last_name ,d_year AS year ,MAX(ss_net_paid) year_total ,'s' sale_type FROM customer JOIN store_sales JOIN date_dim WHERE c_customer_sk = ss_customer_sk AND ss_sold_date_sk = d_date_sk AND d_year IN ( 1998 ,1998 + 1 ) GROUP BY c_customer_id ,c_first_name ,c_last_name ,d_year UNION ALL SELECT c_customer_id customer_id ,c_first_name customer_first_name ,c_last_name customer_last_name ,d_year AS year ,MAX(ws_net_paid) year_total ,'w' sale_type FROM customer JOIN web_sales JOIN date_dim WHERE c_customer_sk = ws_bill_customer_sk AND ws_sold_date_sk = d_date_sk AND d_year IN ( 1998 ,1998 + 1 ) GROUP BY c_customer_id ,c_first_name ,c_last_name ,d_year ) t_s_secyear JOIN ( SELECT c_customer_id customer_id ,c_first_name customer_first_name ,c_last_name customer_last_name ,d_year AS year ,MAX(ss_net_paid) year_total ,'s' sale_type FROM customer JOIN store_sales JOIN date_dim WHERE c_customer_sk = ss_customer_sk AND ss_sold_date_sk = d_date_sk AND d_year IN ( 1998 ,1998 + 1 ) GROUP BY c_customer_id ,c_first_name ,c_last_name ,d_year UNION ALL SELECT c_customer_id customer_id ,c_first_name customer_first_name ,c_last_name customer_last_name ,d_year AS year ,MAX(ws_net_paid) year_total ,'w' sale_type FROM customer JOIN web_sales JOIN date_dim WHERE c_customer_sk = ws_bill_customer_sk AND ws_sold_date_sk = d_date_sk AND d_year IN ( 1998 ,1998 + 1 ) GROUP BY c_customer_id ,c_first_name ,c_last_name ,d_year ) t_w_firstyear JOIN ( SELECT c_customer_id customer_id ,c_first_name customer_first_name ,c_last_name customer_last_name ,d_year AS year ,MAX(ss_net_paid) year_total ,'s' sale_type FROM customer JOIN store_sales JOIN date_dim WHERE c_customer_sk = ss_customer_sk AND ss_sold_date_sk = d_date_sk AND d_year IN ( 1998 ,1998 + 1 ) GROUP BY c_customer_id ,c_first_name ,c_last_name ,d_year UNION ALL SELECT c_customer_id customer_id ,c_first_name customer_first_name ,c_last_name customer_last_name ,d_year AS year ,MAX(ws_net_paid) year_total ,'w' sale_type FROM customer JOIN web_sales JOIN date_dim WHERE c_customer_sk = ws_bill_customer_sk AND ws_sold_date_sk = d_date_sk AND d_year IN ( 1998 ,1998 + 1 ) GROUP BY c_customer_id ,c_first_name ,c_last_name ,d_year ) t_w_secyear WHERE t_s_secyear.customer_id = t_s_firstyear.customer_id AND t_s_firstyear.customer_id = t_w_secyear.customer_id AND t_s_firstyear.customer_id = t_w_firstyear.customer_id AND t_s_firstyear.sale_type = 's' AND t_w_firstyear.sale_type = 'w' AND t_s_secyear.sale_type = 's' AND t_w_secyear.sale_type = 'w' AND t_s_firstyear.year = 1998 AND t_s_secyear.year = 1998 + 1 AND t_w_firstyear.year = 1998 AND t_w_secyear.year = 1998 + 1 AND t_s_firstyear.year_total > 0 AND t_w_firstyear.year_total > 0 AND CASE WHEN t_w_firstyear.year_total > 0 THEN t_w_secyear.year_total / t_w_firstyear.year_total ELSE NULL END > CASE WHEN t_s_firstyear.year_total > 0 THEN t_s_secyear.year_total / t_s_firstyear.year_total ELSE NULL END ORDER BY 1 ,2 ,3;
<reponame>edgarrmondragon/dbt-sqlite<gh_stars>10-100 {% macro sqlite_incremental_upsert(tmp_relation, target_relation, unique_key=none, statement_name="main") %} {%- set dest_columns = adapter.get_columns_in_relation(target_relation) -%} {%- set dest_cols_csv = dest_columns | map(attribute='quoted') | join(', ') -%} {%- if unique_key is not none -%} delete from {{ target_relation }} where ({{ unique_key }}) in ( select ({{ unique_key }}) from {{ tmp_relation }} ); {%- endif %} {# difference here is sqlite doesn't want parens around the select query #} insert into {{ target_relation }} ({{ dest_cols_csv }}) select {{ dest_cols_csv }} from {{ tmp_relation }} ; {%- endmacro %} {# override this just so we can call sqlite_incremental_upsert #} {% materialization incremental, adapter='sqlite' -%} {% set unique_key = config.get('unique_key') %} {% set target_relation = this.incorporate(type='table') %} {% set existing_relation = load_relation(this) %} {% set tmp_relation = make_temp_relation(this) %} {{ run_hooks(pre_hooks, inside_transaction=False) }} -- `BEGIN` happens here: {{ run_hooks(pre_hooks, inside_transaction=True) }} {% set to_drop = [] %} {% if existing_relation is none %} {% set build_sql = create_table_as(False, target_relation, sql) %} {% elif existing_relation.is_view or should_full_refresh() %} {#-- Make sure the backup doesn't exist so we don't encounter issues with the rename below #} {% set backup_identifier = existing_relation.identifier ~ "__dbt_backup" %} {% set backup_relation = existing_relation.incorporate(path={"identifier": backup_identifier}) %} {% do adapter.drop_relation(backup_relation) %} {# this is simplified from macro in core: don't try to make a backup #} {% do adapter.drop_relation(existing_relation) %} {% set build_sql = create_table_as(False, target_relation, sql) %} {% else %} {% set tmp_relation = make_temp_relation(target_relation) %} {% do run_query(create_table_as(True, tmp_relation, sql)) %} {% do adapter.expand_target_column_types( from_relation=tmp_relation, to_relation=target_relation) %} {% set build_sql = sqlite_incremental_upsert(tmp_relation, target_relation, unique_key=unique_key) %} {% endif %} {% call statement("main") %} {{ build_sql }} {% endcall %} {% do persist_docs(target_relation, model) %} {{ run_hooks(post_hooks, inside_transaction=True) }} -- `COMMIT` happens here {% do adapter.commit() %} {% for rel in to_drop %} {% do adapter.drop_relation(rel) %} {% endfor %} {{ run_hooks(post_hooks, inside_transaction=False) }} {{ return({'relations': [target_relation]}) }} {%- endmaterialization %}
<reponame>samply/blaze<gh_stars>10-100 library Retrieve using FHIR version '4.0.0' include FHIRHelpers version '4.0.0' codesystem StorageTemperature: 'https://fhir.bbmri.de/CodeSystem/StorageTemperature' define InInitialPopulation: exists from [Specimen] S where exists from S.extension E where E.url = 'https://fhir.bbmri.de/StructureDefinition/StorageTemperature' and E.value.coding contains Code 'temperatureRoom' from StorageTemperature
<reponame>silvanei/madeira-faq -- MySQL Script generated by MySQL Workbench -- ter 17 dez 2019 09:18:03 -03 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; -- ----------------------------------------------------- -- Schema madeira_faq -- ----------------------------------------------------- -- ----------------------------------------------------- -- Schema madeira_faq -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `madeira_faq` ; USE `madeira_faq` ; -- ----------------------------------------------------- -- Table `madeira_faq`.`tags` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `madeira_faq`.`tags` ( `id` INT NOT NULL AUTO_INCREMENT, `title` VARCHAR(255) NOT NULL, `title_slug` VARCHAR(255) NOT NULL, `created_at` DATETIME NOT NULL DEFAULT current_timestamp, `updated_at` DATETIME NOT NULL DEFAULT current_timestamp, `enabled` TINYINT NOT NULL DEFAULT 1, PRIMARY KEY (`id`), FULLTEXT INDEX `FUILLTEXT` (`title`) VISIBLE) ENGINE = InnoDB COMMENT = 'Categorização das perguntas'; -- ----------------------------------------------------- -- Table `madeira_faq`.`questions` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `madeira_faq`.`questions` ( `id` INT NOT NULL AUTO_INCREMENT, `tags_id` INT NOT NULL, `title` VARCHAR(255) NOT NULL, `title_slug` VARCHAR(255) NOT NULL, `answer` TEXT NOT NULL, `created_at` DATETIME NOT NULL DEFAULT current_timestamp, `updated_at` DATETIME NOT NULL DEFAULT current_timestamp, `enabled` TINYINT NOT NULL DEFAULT 1, PRIMARY KEY (`id`), FULLTEXT INDEX `FULLTEXT` (`title`, `answer`) VISIBLE, INDEX `fk_questions_tags_idx` (`tags_id` ASC) VISIBLE, CONSTRAINT `fk_questions_tags` FOREIGN KEY (`tags_id`) REFERENCES `madeira_faq`.`tags` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
-- @testpoint:opengauss关键字routine_schema(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists routine_schema; create database routine_schema; drop database routine_schema; --关键字带双引号-成功 drop database if exists "routine_schema"; create database "routine_schema"; drop database "routine_schema"; --关键字带单引号-合理报错 drop database if exists 'routine_schema'; create database 'routine_schema'; --关键字带反引号-合理报错 drop database if exists `routine_schema`; create database `routine_schema`;
-- @testpoint:opengauss关键字Immediate(非保留),作为字段数据类型(合理报错) --前置条件 drop table if exists explain_test cascade; --关键字不带引号-合理报错 create table explain_test(id int,name Immediate); --关键字带双引号-合理报错 create table explain_test(id int,name "Immediate"); --关键字带单引号-合理报错 create table explain_test(id int,name 'Immediate'); --关键字带反引号-合理报错 create table explain_test(id int,name `Immediate`);
-- @testpoint:opengauss关键字begin_non_anoyblock非保留),作为序列名 --关键字不带引号-成功 drop sequence if exists begin_non_anoyblock; create sequence begin_non_anoyblock start 100 cache 50; --清理环境 drop sequence begin_non_anoyblock; --关键字带双引号-成功 drop sequence if exists "begin_non_anoyblock"; create sequence "begin_non_anoyblock" start 100 cache 50; --清理环境 drop sequence "begin_non_anoyblock"; --关键字带单引号-合理报错 drop sequence if exists 'begin_non_anoyblock'; --关键字带反引号-合理报错 drop sequence if exists `begin_non_anoyblock`;
<reponame>LeamHall/CharacterBible -- parser_1_create_sqlite_db.sql -- version: 0.0.1 -- date: 20201105 -- author: <NAME> -- desc: Create a sample database for CharacterBible. .headers on .mode column .nullvalue [NULL] .echo on DROP TABLE IF EXISTS cadets; CREATE TABLE cadets ( year INTEGER NOT NULL, cadre INTEGER NOT NULL, id INTEGER NOT NULL, last_name TEXT, first_name TEXT, gender TEXT, upp TEXT, birth_year INTEGER, birth_day INTEGER, notes TEXT, PRIMARY KEY (year, cadre, id) );
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50505 Source Host : localhost:3306 Source Database : feedback Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2019-09-27 16:16:37 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `failed_jobs` -- ---------------------------- DROP TABLE IF EXISTS `failed_jobs`; CREATE TABLE `failed_jobs` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of failed_jobs -- ---------------------------- -- ---------------------------- -- Table structure for `itens` -- ---------------------------- DROP TABLE IF EXISTS `itens`; CREATE TABLE `itens` ( `id` int(10) NOT NULL AUTO_INCREMENT, `nome` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `descricao` text COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPACT; -- ---------------------------- -- Records of itens -- ---------------------------- INSERT INTO `itens` VALUES ('3', 'TESTE3T333', 'TESTE3D333', '2019-06-03 15:54:26', '2019-06-03 15:54:26'); INSERT INTO `itens` VALUES ('4', 'item novo', 'descricao novo eee', '2019-09-27 15:57:56', '2019-09-27 15:57:56'); -- ---------------------------- -- Table structure for `migrations` -- ---------------------------- DROP TABLE IF EXISTS `migrations`; CREATE TABLE `migrations` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of migrations -- ---------------------------- INSERT INTO `migrations` VALUES ('1', '2014_10_12_000000_create_users_table', '1'); INSERT INTO `migrations` VALUES ('2', '2014_10_12_100000_create_password_resets_table', '1'); INSERT INTO `migrations` VALUES ('3', '2019_08_19_000000_create_failed_jobs_table', '1'); -- ---------------------------- -- Table structure for `password_resets` -- ---------------------------- DROP TABLE IF EXISTS `password_resets`; CREATE TABLE `password_resets` ( `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, KEY `password_resets_email_index` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of password_resets -- ---------------------------- -- ---------------------------- -- Table structure for `users` -- ---------------------------- DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `perfil` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `status` int(11) DEFAULT '1', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `users_email_unique` (`email`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of users -- ---------------------------- INSERT INTO `users` VALUES ('1', '<NAME>', '<EMAIL>', null, '$2y$10$WfJe4Pg6yO/6LlC3GdMlGuoh0cFOCFdgvKTZE321xPE83DM3fbdSC', null, 'admin', '1', '2019-09-27 15:01:06', '2019-09-27 15:01:06'); INSERT INTO `users` VALUES ('2', 'Teste', '<EMAIL>', null, '$2y$10$C3r4asuK7fV8urfYkG.2Q.pP781ygYp9nX5CGrCqsZFAB9w5.jOJm', null, 'cliente', '1', '2019-09-27 16:01:22', '2019-09-27 16:04:12');
INSERT INTO scripts (script, pagesecurity, description) VALUES ('SecurityTokens.php', 15, 'Administration of security tokens'); INSERT INTO scripts (script , pagesecurity ,description) VALUES ('SalesByTypePeriodInquiry.php', 2, 'Shows sales for a selected date range by sales type/price list'); INSERT INTO scripts (script , pagesecurity ,description) VALUES ('SalesCategoryPeriodInquiry.php', 2, 'Shows sales for a selected date range by stock category'); INSERT INTO scripts (script , pagesecurity ,description) VALUES ('SalesTopItemsInquiry.php', 2, 'Shows the top item sales for a selected date range'); UPDATE config SET confvalue='4.04' WHERE confname='VersionNumber';
/* Seeds for SQL table.*/ USE company_db; /* Insert 3 Rows into your new table */ INSERT INTO department (name) VALUES ("Engineering"), ("Accounting"), ("Sales"); INSERT INTO role (title, salary, department_id) VALUES ("Engineer", 60000, 1), ("Accountant", 60000, 2), ("Sales Rep", 60000, 3); INSERT INTO employee (first_name, last_name, role_id) VALUES ("Jess", "Luff", 1), ("Jane", "Smith", 2), ("Bob", "Day", 3);
DROP DATABASE IF EXISTS jacso18; CREATE DATABASE jacso18; USE jacso18; Create TABLE users( user_id INT PRIMARY KEY AUTO_INCREMENT, username varchar(100) NOT NULL, email varchar(100) not null, password varchar(100) not null ); CREATE TABLE posts( image_id INT PRIMARY KEY AUTO_INCREMENT, user_id INT, title VARCHAR(100), image MEDIUMBLOB NOT NULL, description VARCHAR(150) NOT NULL DEFAULT '', timestamp DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY(user_id) REFERENCES users(user_id) );
<reponame>miguelhp373/Curso_SQL_Server -- UNION -- ELE COMBINA DOIS OU MAIS RESULTADOS DE UM SELECT EM UM RESULTADO APENAS /* EXEMPLO: -- RETORNA TODOS OS DADOS SEM DUPLICATAS SELECT COLUMN1, COLUMN2 FROM TABLE1 UNION SELECT COLUMN1, COLUMN2 FROM TABLE 2 -- RETORNA TODOS OS DADOS INCLUINDO OS DUPLICADOS SELECT COLUMN1, COLUMN2 FROM TABLE1 UNION ALL SELECT COLUMN1, COLUMN2 FROM TABLE 2 */ -- EXEMPLO SELECT FirstName,Title FROM Person.Person WHERE Title = 'MR.' UNION SELECT FirstName,Title FROM Person.Person WHERE MiddleName = 'A' -- DESAFIO SELECT NAME,Color FROM Production.Product WHERE NAME LIKE '%A%' OR COLOR = 'BLACK' UNION SELECT NAME,Color FROM Production.Product WHERE NAME LIKE '%G%' OR COLOR = 'RED' ORDER BY NAME ASC
<filename>SqlPatch/clean_b_table.sql truncate table `b_brand_evaluation`; truncate table `b_brand_hotword`; truncate table `b_emergency_plan`; truncate table `b_info_classification_customer`; truncate table `b_info_classification_customer_news`; truncate table `b_info_classification_customer_weibo`; truncate table `b_info_classification_customer_weixin`; truncate table `b_info_classification_field`; truncate table `b_info_classification_field_news`; truncate table `b_info_classification_field_weibo`; truncate table `b_info_classification_field_weixin`; truncate table `b_news_evaluation`; truncate table `b_news_evaluation_handle`; truncate table `b_weibo_evaluation`; truncate table `b_weibo_evaluation_handle`; truncate table `b_weixin_evaluation`; truncate table `b_weixin_evaluation_handle`;
DROP DATABASE IF EXISTS WALK; CREATE DATABASE WALK; USE WALK; CREATE TABLE user ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(64) NOT NULL UNIQUE, password VARCHAR(128) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE type ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(30) NOT NULL UNIQUE, PRIMARY KEY (id) ); CREATE TABLE product ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(64) NOT NULL UNIQUE, type_id INT, price FLOAT, FOREIGN KEY (type_id) REFERENCES type(id), PRIMARY KEY (id) ); CREATE TABLE cart ( user_id INT NOT NULL, product_id INT NOT NULL, PRIMARY KEY (user_id, product_id), FOREIGN KEY (user_id) REFERENCES user(id), FOREIGN KEY (product_id) REFERENCES product(id) ); #--cart will be used for storage after logout #--makes a user with the password test INSERT INTO user (name, password) VALUES ('test', <PASSWORD>'); INSERT INTO type (name) VALUES ('type1'), ('type2'), ('sht'), ('stuff'); INSERT INTO product (name, type_id, price) VALUES ('naem', 1, 42.69), ('amazing prod', 3, 420), ('The kid who drowned at summercamp', 4, 3.1431841);
<gh_stars>0 /* Ankita Date: 09-10-2018 */ ALTER TABLE `brands` ADD COLUMN LastDataRefresh DATETIME DEFAULT NOW() AFTER NumberOfItem ; ALTER TABLE `brand_seller_bridge` ADD COLUMN DataFeed VARCHAR(250) AFTER SellerID ; /*Ankita Date:10-10-2018*/ DROP TABLE `seller_price_base`; DROP TABLE `seller_price_type`; DROP TABLE `seller_price_amount_type`; /* vaibhav's Code: 10-10-2018*/ CREATE TABLE `field_mapping` ( `meta_key` VARCHAR(150) DEFAULT NULL, `meta_value` VARCHAR(50000) DEFAULT NULL, `meta_status` INT(5) DEFAULT NULL ) ENGINE=INNODB DEFAULT CHARSET=latin1; CREATE TABLE `jp_formatted_data` ( `process_log_id` INT(11) DEFAULT NULL, `UniqueItemID` VARCHAR(255) DEFAULT NULL, `PartName` VARCHAR(255) DEFAULT NULL, `Title` VARCHAR(255) DEFAULT NULL, `Price` VARCHAR(255) DEFAULT NULL, `Quantity` VARCHAR(255) DEFAULT NULL, `ProductCondition` VARCHAR(255) DEFAULT NULL, `Description` VARCHAR(255) DEFAULT NULL, `HTMLDescription` VARCHAR(255) DEFAULT NULL, `Category` VARCHAR(255) DEFAULT NULL, `SearchKeywords` VARCHAR(255) DEFAULT NULL, `Attributes` VARCHAR(255) DEFAULT NULL, `PartNumbers` VARCHAR(255) DEFAULT NULL, `ProductSKU` VARCHAR(255) DEFAULT NULL, `Brand` VARCHAR(255) DEFAULT NULL, `Photos` VARCHAR(255) DEFAULT NULL, `Videos` VARCHAR(255) DEFAULT NULL, `PartCompatibility` MEDIUMTEXT, `PositionOnVehicle` VARCHAR(255) DEFAULT NULL, `ACESPartTypeID` VARCHAR(255) DEFAULT NULL, `ACESSubCategoryID` VARCHAR(255) DEFAULT NULL, `PrivateNotes` VARCHAR(255) DEFAULT NULL, `AcceptOffers` VARCHAR(255) DEFAULT NULL, `AutoAcceptOfferPrice` VARCHAR(255) DEFAULT NULL, `MinimumOfferPrice` VARCHAR(255) DEFAULT NULL, `PaymentMethods` VARCHAR(255) DEFAULT NULL, `PaymentInstructions` VARCHAR(255) DEFAULT NULL, `Warranty` VARCHAR(255) DEFAULT NULL, `WarrantyPeriod` VARCHAR(255) DEFAULT NULL, `WarrantyPeriodType` VARCHAR(255) DEFAULT NULL, `ReturnsAccepted` VARCHAR(255) DEFAULT NULL, `ReturnPeriod` VARCHAR(255) DEFAULT NULL, `RefundAs` VARCHAR(255) DEFAULT NULL, `WarrantyandReturnPolicy` VARCHAR(255) DEFAULT NULL, `ShippingInsurance` VARCHAR(255) DEFAULT NULL, `InsurancePrice` VARCHAR(255) DEFAULT NULL, `HandlingTime` VARCHAR(255) DEFAULT NULL, `ShippingNotes` VARCHAR(255) DEFAULT NULL, `PackageType` VARCHAR(255) DEFAULT NULL, `PackageWeight` VARCHAR(255) DEFAULT NULL, `PackageLength` VARCHAR(255) DEFAULT NULL, `PackageWidth` VARCHAR(255) DEFAULT NULL, `PackageHeight` VARCHAR(255) DEFAULT NULL, `PackageMeasurementType` VARCHAR(255) DEFAULT NULL, `USShippingMethod` VARCHAR(255) DEFAULT NULL, `USShippingService1` VARCHAR(255) DEFAULT NULL, `USShippingService2` VARCHAR(255) DEFAULT NULL, `USShippingService3` VARCHAR(255) DEFAULT NULL, `USShippingService1Cost` VARCHAR(255) DEFAULT NULL, `USShippingService2Cost` VARCHAR(255) DEFAULT NULL, `USShippingService3Cost` VARCHAR(255) DEFAULT NULL, `USShippingService1AdditionalCost` VARCHAR(255) DEFAULT NULL, `USShippingService2AdditionalCost` VARCHAR(255) DEFAULT NULL, `USShippingService3AdditionalCost` VARCHAR(255) DEFAULT NULL, `CANADAShippingMethod` VARCHAR(255) DEFAULT NULL, `CANADAShippingSettingsSameAs` VARCHAR(255) DEFAULT NULL, `CANADAShippingService1` VARCHAR(255) DEFAULT NULL, `CANADAShippingService2` VARCHAR(255) DEFAULT NULL, `CANADAShippingService3` VARCHAR(255) DEFAULT NULL, `CANADAShippingService1Cost` VARCHAR(255) DEFAULT NULL, `CANADAShippingService2Cost` VARCHAR(255) DEFAULT NULL, `CANADAShippingService3Cost` VARCHAR(255) DEFAULT NULL, `CANADAShippingService1AdditionalCost` VARCHAR(255) DEFAULT NULL, `CANADAShippingService2AdditionalCost` VARCHAR(255) DEFAULT NULL, `CANADAShippingService3AdditionalCost` VARCHAR(255) DEFAULT NULL, `INTERNATIONALShippingMethod` VARCHAR(255) DEFAULT NULL, `INTERNATIONALShippingSettingsSameAs` VARCHAR(255) DEFAULT NULL, `INTERNATIONALShippingService1` VARCHAR(255) DEFAULT NULL, `INTERNATIONALShippingService2` VARCHAR(255) DEFAULT NULL, `INTERNATIONALShippingService3` VARCHAR(255) DEFAULT NULL, `INTERNATIONALShippingService1Cost` VARCHAR(255) DEFAULT NULL, `INTERNATIONALShippingService2Cost` VARCHAR(255) DEFAULT NULL, `INTERNATIONALShippingService3Cost` VARCHAR(255) DEFAULT NULL, `INTERNATIONALShippingService1AdditionalCost` VARCHAR(255) DEFAULT NULL, `INTERNATIONALShippingService2AdditionalCost` VARCHAR(255) DEFAULT NULL, `INTERNATIONALShippingService3AdditionalCost` VARCHAR(255) DEFAULT NULL ) ENGINE=INNODB DEFAULT CHARSET=latin1; CREATE TABLE `sema_data_process_log` ( `id` INT(11) NOT NULL, `withFitmentFileName` VARCHAR(255) DEFAULT NULL, `withoutFitmentFileName` VARCHAR(255) DEFAULT NULL, `IsWithFitmentProcess` INT(11) DEFAULT NULL COMMENT '1:Yes, 0:No', `IsWithoutFitmentProcess` INT(11) DEFAULT NULL COMMENT '1:Yes, 0:No', `Brand` VARCHAR(255) DEFAULT NULL, `JobProcessingDate` VARCHAR(255) DEFAULT NULL, `CreatedDate` VARCHAR(255) DEFAULT NULL, `UpdatedDate` VARCHAR(255) DEFAULT NULL ) ENGINE=INNODB DEFAULT CHARSET=latin1; CREATE TABLE `without_fitment` ( `process_log_id` INT(11) DEFAULT NULL, `b15_part_number` VARCHAR(255) DEFAULT NULL, `aces_part_type_id` VARCHAR(255) DEFAULT NULL, `title` VARCHAR(255) DEFAULT NULL, `d40_ret_retail` VARCHAR(255) DEFAULT NULL, `quantity` VARCHAR(255) DEFAULT NULL, `c10_abr_product_desc` VARCHAR(255) DEFAULT NULL, `c10_sho_product_desc` VARCHAR(255) DEFAULT NULL, `c10_inv_product_desc` VARCHAR(255) DEFAULT NULL, `c10_def_aaia_part_type_desc` VARCHAR(255) DEFAULT NULL, `c10_lab_label_desc` VARCHAR(255) DEFAULT NULL, `c10_des_product_desc` VARCHAR(255) DEFAULT NULL, `c10_shp_shipping_desc` VARCHAR(255) DEFAULT NULL, `c10_sla_slang_desc` VARCHAR(255) DEFAULT NULL, `c10_uns_un_spsc_desc` VARCHAR(255) DEFAULT NULL, `c10_vmr_vmrs_desc` VARCHAR(255) DEFAULT NULL, `c10_ext_product_desc` VARCHAR(255) DEFAULT NULL, `c10_mkt_marketing_desc` VARCHAR(255) DEFAULT NULL, `b10_item_level_gtin` VARCHAR(255) DEFAULT NULL, `b25_brand_label` VARCHAR(255) DEFAULT NULL, `p05_lgo` VARCHAR(255) DEFAULT NULL, `p05_p04` VARCHAR(255) DEFAULT NULL, `year` VARCHAR(255) DEFAULT NULL, `make` VARCHAR(255) DEFAULT NULL, `model` VARCHAR(255) DEFAULT NULL, `e10_ws1` VARCHAR(255) DEFAULT NULL, `payment_methods` VARCHAR(255) DEFAULT NULL, `d15_jbr_jobber` VARCHAR(255) DEFAULT NULL, `d40_jbr_jobber` VARCHAR(255) DEFAULT NULL, `position` VARCHAR(255) DEFAULT NULL, `h40_uom_for_dimensions` VARCHAR(255) DEFAULT NULL ) ENGINE=INNODB DEFAULT CHARSET=latin1; CREATE TABLE `with_fitment` ( `process_log_id` INT(11) DEFAULT NULL, `b15_part_number` VARCHAR(255) DEFAULT NULL, `aces_part_type_id` VARCHAR(255) DEFAULT NULL, `title` VARCHAR(255) DEFAULT NULL, `d40_ret_retail` VARCHAR(255) DEFAULT NULL, `quantity` VARCHAR(255) DEFAULT NULL, `c10_abr_product_desc` VARCHAR(255) DEFAULT NULL, `c10_sho_product_desc` VARCHAR(255) DEFAULT NULL, `c10_inv_product_desc` VARCHAR(255) DEFAULT NULL, `c10_def_aaia_part_type_desc` VARCHAR(255) DEFAULT NULL, `c10_lab_label_desc` VARCHAR(255) DEFAULT NULL, `c10_des_product_desc` VARCHAR(255) DEFAULT NULL, `c10_shp_shipping_desc` VARCHAR(255) DEFAULT NULL, `c10_sla_slang_desc` VARCHAR(255) DEFAULT NULL, `c10_uns_un_spsc_desc` VARCHAR(255) DEFAULT NULL, `c10_vmr_vmrs_desc` VARCHAR(255) DEFAULT NULL, `c10_ext_product_desc` VARCHAR(255) DEFAULT NULL, `c10_mkt_marketing_desc` VARCHAR(255) DEFAULT NULL, `b10_item_level_gtin` VARCHAR(255) DEFAULT NULL, `b25_brand_label` VARCHAR(255) DEFAULT NULL, `p05_lgo` VARCHAR(255) DEFAULT NULL, `p05_p04` VARCHAR(255) DEFAULT NULL, `year` VARCHAR(255) DEFAULT NULL, `make` VARCHAR(255) DEFAULT NULL, `model` VARCHAR(255) DEFAULT NULL, `e10_ws1` VARCHAR(255) DEFAULT NULL, `payment_methods` VARCHAR(255) DEFAULT NULL, `d15_jbr_jobber` VARCHAR(255) DEFAULT NULL, `d40_jbr_jobber` VARCHAR(255) DEFAULT NULL, `position` VARCHAR(255) DEFAULT NULL, `h40_uom_for_dimensions` VARCHAR(255) DEFAULT NULL ) ENGINE=INNODB DEFAULT CHARSET=latin1; /*Ankita Date: 10-10-2018*/ CREATE DATABASE `sema_data_tool`; RENAME TABLE `wire_frames`.`brand_price_adjustment_bridge` TO `sema_data_tool`.`brand_price_adjustment_bridge`, `wire_frames`.`brand_seller_bridge` TO `sema_data_tool`.`brand_seller_bridge`, `wire_frames`.`brands` TO `sema_data_tool`.`brands`, `wire_frames`.`field_mapping` TO `sema_data_tool`.`field_mapping`, `wire_frames`.`jp_formatted_data` TO `sema_data_tool`.`jp_formatted_data`, `wire_frames`.`seller_brands_jp_update_data` TO `sema_data_tool`.`seller_brands_jp_update_data`, `wire_frames`.`sellers` TO `sema_data_tool`.`sellers`, `wire_frames`.`sema_brand_class_bridge` TO `sema_data_tool`.`sema_brand_class_bridge`, `wire_frames`.`sema_class` TO `sema_data_tool`.`sema_class`, `wire_frames`.`sema_data_process_log` TO `sema_data_tool`.`sema_data_process_log`, `wire_frames`.`users` TO `sema_data_tool`.`users`, `wire_frames`.`wire_frame_details` TO `sema_data_tool`.`wire_frame_details`, `wire_frames`.`with_fitment` TO `sema_data_tool`.`with_fitment`, `wire_frames`.`without_fitment` TO `sema_data_tool`.`without_fitment`; ALTER TABLE `brands` ADD COLUMN `SemaBrandAlias` VARCHAR(150) AFTER `Name`;
/* Navicat MySQL Data Transfer Source Server Version : 50523 Source Host : localhost:3306 Source Database : user-management Target Server Type : MYSQL Target Server Version : 50523 File Encoding : 65001 Date: 2017-02-19 16:48:00 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `roles` -- ---------------------------- DROP TABLE IF EXISTS `roles`; CREATE TABLE `roles` ( `id` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(200) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of roles -- ---------------------------- INSERT INTO `roles` VALUES ('1', 'Administrator'); INSERT INTO `roles` VALUES ('2', 'Technician'); INSERT INTO `roles` VALUES ('3', 'User'); -- ---------------------------- -- Table structure for `users` -- ---------------------------- DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(200) DEFAULT NULL, `email` varchar(200) DEFAULT NULL, `phone` varchar(20) DEFAULT NULL, `age` int(5) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of users -- ---------------------------- INSERT INTO `users` VALUES ('7', '<NAME>', '<EMAIL>', '667974291', '42'); INSERT INTO `users` VALUES ('19', '<NAME>', '<EMAIL>', '956623487', '31'); INSERT INTO `users` VALUES ('20', '<NAME>', '<EMAIL>', '123456789', '25'); INSERT INTO `users` VALUES ('27', '<NAME>', '<EMAIL>', '456123789', '27'); INSERT INTO `users` VALUES ('28', '<NAME>', '<EMAIL>', '859362147', '20'); INSERT INTO `users` VALUES ('29', '<NAME>', '<EMAIL>', '154876298', '39'); INSERT INTO `users` VALUES ('30', '<NAME>', '<EMAIL>', '568471456', '23'); INSERT INTO `users` VALUES ('50', '<NAME>', '<EMAIL>', '159634782', '26'); -- ---------------------------- -- Table structure for `user_role` -- ---------------------------- DROP TABLE IF EXISTS `user_role`; CREATE TABLE `user_role` ( `user_id` int(10) NOT NULL, `role_id` int(10) NOT NULL, PRIMARY KEY (`user_id`,`role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of user_role -- ---------------------------- INSERT INTO `user_role` VALUES ('7', '1'); INSERT INTO `user_role` VALUES ('19', '1'); INSERT INTO `user_role` VALUES ('19', '2'); INSERT INTO `user_role` VALUES ('20', '1'); INSERT INTO `user_role` VALUES ('20', '3'); INSERT INTO `user_role` VALUES ('27', '3'); INSERT INTO `user_role` VALUES ('28', '2'); INSERT INTO `user_role` VALUES ('29', '1'); INSERT INTO `user_role` VALUES ('29', '3'); INSERT INTO `user_role` VALUES ('30', '1'); INSERT INTO `user_role` VALUES ('30', '2'); INSERT INTO `user_role` VALUES ('30', '3'); INSERT INTO `user_role` VALUES ('50', '2');
<reponame>NutriEasyApp/nutrieasy-backend<gh_stars>0 CREATE EXTENSION IF NOT EXISTS "UUID-OSSP"; CREATE TYPE GENRE AS ENUM ('M','F'); CREATE TYPE BODYTYPE AS ENUM ('ECTOMORPH','ENDOMORPH','MESOMORPH'); CREATE TYPE OBJECTIVE AS ENUM ('GAIN', 'LOSE', 'KEEP'); CREATE TABLE IF NOT EXISTS USERS ( ID UUID NOT NULL PRIMARY KEY DEFAULT UUID_GENERATE_V4(), USERNAME VARCHAR(100) NOT NULL, PASSWORD VARCHAR(100) NOT NULL, EMAIL VARCHAR(255) UNIQUE NOT NULL, CREATED_AT TIMESTAMP NOT NULL DEFAULT NOW(), "token" varchar(100), ID_HEALTH_ANALYSIS UUID UNIQUE, ID_PROPOSED_DIET UUID UNIQUE); CREATE TABLE IF NOT EXISTS HEALTH_ANALYSIS ( ID UUID NOT NULL PRIMARY KEY DEFAULT UUID_GENERATE_V4(), GENRE GENRE NOT NULL, HEIGHT VARCHAR(10) NOT NULL, WEIGHT VARCHAR(10) NOT NULL, BIRTHDATE VARCHAR(11) NOT NULL, BODYTYPE BODYTYPE NOT NULL, OBJECTIVE OBJECTIVE NOT NULL, EXERCISETIME NUMERIC(4, 2) NOT NULL, CREATED_AT TIMESTAMP NOT NULL DEFAULT NOW(), UPDATED_AT TIMESTAMP NOT NULL DEFAULT NOW(), MEALS VARCHAR(10) NOT null, ID_USER UUID UNIQUE ); CREATE TABLE IF NOT EXISTS PROPOSED_DIET ( ID UUID NOT NULL PRIMARY KEY DEFAULT UUID_GENERATE_V4(), ID_USER UUID UNIQUE, CALORIES VARCHAR(10) NOT NULL, CARBOHYDRATES VARCHAR(10) NOT NULL, PROTEIN VARCHAR(10) NOT NULL, LIPIDS VARCHAR(10) NOT NULL, WATER VARCHAR(10) NOT NULL, MEALS VARCHAR(10) NOT NULL); ALTER TABLE USERS ADD CONSTRAINT FK_ID_HEALTH_ANALYSIS FOREIGN KEY (ID_HEALTH_ANALYSIS) REFERENCES HEALTH_ANALYSIS(ID); ALTER TABLE USERS ADD CONSTRAINT FK_ID_PROPOSED_DIET FOREIGN KEY (ID_PROPOSED_DIET) REFERENCES PROPOSED_DIET(ID);
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 01, 2019 at 03:55 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 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: `data_person` -- CREATE DATABASE IF NOT EXISTS `data_person` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `data_person`; -- -------------------------------------------------------- -- -- Table structure for table `person` -- CREATE TABLE `person` ( `id_person` int(11) NOT NULL, `nama_person` varchar(250) NOT NULL, `alamat_person` text NOT NULL, `ttl_person` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `person` -- INSERT INTO `person` (`id_person`, `nama_person`, `alamat_person`, `ttl_person`) VALUES (1, 'person 1', 'galaxy a6', '2019-08-01'), (2, 'sdsd', 'ssss', '2019-08-01'); -- -- Indexes for dumped tables -- -- -- Indexes for table `person` -- ALTER TABLE `person` ADD PRIMARY KEY (`id_person`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `person` -- ALTER TABLE `person` MODIFY `id_person` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 23, 2018 at 11:32 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.0.28 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: u414557330_jason -- -- -------------------------------------------------------- -- -- Table structure for table Burn -- CREATE TABLE Burn ( Id int(11) NOT NULL, Burnee varchar(255) COLLATE utf8_unicode_ci NOT NULL, BurnType varchar(55) COLLATE utf8_unicode_ci NOT NULL, Description mediumtext COLLATE utf8_unicode_ci NOT NULL, CreatedDate datetime NOT NULL, CreatedBy varchar(200) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table CurrentState -- CREATE TABLE CurrentState ( CurrentName varchar(255) COLLATE utf8_unicode_ci NOT NULL, ClockStart24h datetime NOT NULL, ClockStart72h datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table NotificationRecipient -- CREATE TABLE NotificationRecipient ( Email varchar(200) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Indexes for dumped tables -- -- -- Indexes for table Burn -- ALTER TABLE Burn ADD PRIMARY KEY (Id), ADD KEY IX_Burn_Burnee (Burnee), ADD KEY IX_Burn_CreatedDate (CreatedDate); -- -- Indexes for table NotificationRecipient -- ALTER TABLE NotificationRecipient ADD PRIMARY KEY (Email); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table Burn -- ALTER TABLE Burn MODIFY Id int(11) NOT NULL AUTO_INCREMENT; 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 index detection_remote_id_station_id_index on detection (remote_id desc, station_id asc);
<gh_stars>1-10 DROP DATABASE IF EXISTS warhammer_companion; CREATE DATABASE warhammer_companion; \c warhammer_companion DROP TABLE IF EXISTS figurine CASCADE; CREATE TABLE figurine( id int PRIMARY KEY, name varchar, points int );
<reponame>AcademicHumber/the-final-boss<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 13, 2020 at 03:21 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `cms` -- -- -------------------------------------------------------- -- -- Table structure for table `categorias` -- CREATE TABLE `categorias` ( `id` int(11) NOT NULL, `nombre` varchar(255) NOT NULL, `descripcion` mediumtext NOT NULL, `slug` varchar(30) 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 for table `categorias` -- INSERT INTO `categorias` (`id`, `nombre`, `descripcion`, `slug`, `created_at`, `updated_at`) VALUES (1, 'Sin Categoría', 'Esta es la categoría predeterminada para todas las publicaciones', 'sin-categoria', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (6, 'Tecnología', 'Información relacionada a la tecnología y avances tecnologicos', 'tecnologia', '2020-07-12 19:36:04', '2020-07-12 19:36:04'), (7, 'Humanidades', 'Articulos sobre la humanidad en su conjunto y derivados', 'humanidades', '2020-07-12 20:03:26', '2020-07-12 20:03:26'); -- -------------------------------------------------------- -- -- Table structure for table `comentarios` -- CREATE TABLE `comentarios` ( `id` int(11) NOT NULL COMMENT 'Identificador único de cada comentario', `cuerpo` longtext NOT NULL COMMENT 'Texto que contiene cada comentario', `created_at` datetime NOT NULL COMMENT 'fecha de creación del comentario', `updated_at` datetime NOT NULL COMMENT 'Fecha y hora de actualización del comentario', `articulo` int(11) NOT NULL COMMENT 'Llave foránea que determina a que artículo pertenece el comentario', `usuario` int(11) NOT NULL COMMENT 'Llave foranea al usuario que creo el articulo' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `comentarios` -- INSERT INTO `comentarios` (`id`, `cuerpo`, `created_at`, `updated_at`, `articulo`, `usuario`) VALUES (29, ' Me encanta aprender sociología', '2020-07-12 20:12:31', '2020-07-12 20:12:31', 51, 77), (30, ' Desearía ser antropologo', '2020-07-12 20:12:49', '2020-07-12 20:12:49', 50, 77), (31, ' La fisiología es una tontería', '2020-07-12 20:13:06', '2020-07-12 20:13:06', 49, 77), (32, ' Que buen articulo amigo', '2020-07-12 20:13:24', '2020-07-12 20:13:24', 48, 77), (33, ' Actualicen el articulo porfavor', '2020-07-12 20:13:44', '2020-07-12 20:13:44', 46, 77), (34, ' Algún día seras mió procesador', '2020-07-12 20:14:02', '2020-07-12 20:14:02', 45, 77), (35, ' Pronto querido amigo', '2020-07-12 20:14:32', '2020-07-12 20:14:32', 50, 75), (36, 'Gracias', '2020-07-12 20:14:48', '2020-07-12 20:14:48', 48, 75), (37, ' Actualizado, saludos!', '2020-07-12 20:15:05', '2020-07-12 20:15:05', 46, 75); -- -------------------------------------------------------- -- -- Table structure for table `contenidos` -- CREATE TABLE `contenidos` ( `id` int(11) NOT NULL COMMENT 'Identificador de contenido', `titulo` varchar(255) NOT NULL COMMENT 'Titulo de la página', `encabezado` varchar(255) NOT NULL COMMENT 'Encabezado e la página', `img_principal` varchar(255) NOT NULL COMMENT 'Ruta a la imagen principal', `cuerpo` longtext NOT NULL COMMENT 'Cuerpo de la página', `created_at` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'Fecha y hora de creacion del articulo', `updated_at` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'Fecha y hora de actualización del articulo', `categoria` int(11) NOT NULL, `usuario_creador` int(11) NOT NULL COMMENT 'Llave foranea que apunta al creador del articulo' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Tabla que almacena todos los articulos publicados.'; -- -- Dumping data for table `contenidos` -- INSERT INTO `contenidos` (`id`, `titulo`, `encabezado`, `img_principal`, `cuerpo`, `created_at`, `updated_at`, `categoria`, `usuario_creador`) VALUES (45, 'Intel Core i9-9900KSm', 'El nuevo procesador desafía los límites establecidos hasta la actualidad. El futuro de los ordenadores se dibuja con velocidades muy altas y tarjetas gráficas de una potencia desorbitada.', 'topimgs/1594600504_24b55b423e0c0b2775c0.jpg', '<p>Las grandes compa&ntilde;&iacute;as trabajan en el desarrollo de ordenadores y componentes que aumenten sus capacidades de manera progresiva. El sector de los ordenadores se enfrenta a una gran competencia externa, y por ello los nuevos componentes suponen un salto diferencial para ganar potencia sin perder comodidad ni accesibilidad.</p>\r\n\r\n<p>Cuando Intel anunci&oacute; la llegada del Intel Core i9-9900K el pasado oto&ntilde;o, se postulaba como el procesador m&aacute;s potente del mercado. Ahora, Intel se ha superado con el lanzamiento de la nueva y avanzada versi&oacute;n de su familia de procesadores, el i9-9900KS.</p>\r\n\r\n<p><strong>El futuro del PC en juego</strong></p>\r\n\r\n<p>La presentaci&oacute;n tuvo lugar durante la pasada edici&oacute;n de Computex, entre el 28 de mayo y el 1 de junio. La gran feria asi&aacute;tica se celebra desde hace m&aacute;s de tres d&eacute;cadas en Taipei y re&uacute;ne cada a&ntilde;o a los grandes fabricantes de ordenadores y componentes. El evento acogi&oacute; el anuncio de las grandes novedades que marcar&aacute;n el futuro del hardware, procesadores, port&aacute;tiles y PC.</p>\r\n\r\n<p>La gran haza&ntilde;a del Intel Core i9-9900KS es que plantea la posibilidad de lograr una velocidad nunca alcanzada hasta el momento. Este nuevo procesador ofrece una velocidad base de 4GHz, sin embargo, con una tensi&oacute;n adicional forzada es capaz de alcanzar el objetivo de los 5GHz.</p>\r\n\r\n<p><strong>Capacidad para alcanzar los 5GHz</strong></p>\r\n\r\n<p>La compa&ntilde;&iacute;a todav&iacute;a no ha revelado todas las especificaciones t&eacute;cnicas de su nuevo lanzamiento. Sin embargo, se ha especificado que est&aacute; compuesto por 8 n&uacute;celos y 16 hilos. El Intel Core i9-9900KS supera los 3.6GHz de base de su predecesor. Con los 8 n&uacute;cleos funcionando de manera simult&aacute;nea, el procesador es capaz de mejorar su rendimiento hasta alcanzar los 5GHz.</p>\r\n\r\n<p>El nuevo procesador estar&aacute; dotado de gr&aacute;ficos integrados. Intel todav&iacute;a no ha confirmado cu&aacute;l ser&aacute; la cantidad de potencia m&aacute;xima permitida por el sistema de refrigeraci&oacute;n o si se requerir&aacute;n soluciones especiales de enfriamiento. Tampoco se ha revelado a&uacute;n la informaci&oacute;n relativa al coste, la fecha de lanzamiento ni las cifras de producci&oacute;n que maneja Intel.</p>\r\n\n ', '2020-07-12 19:35:04', '2020-07-12 19:37:01', 6, 75), (46, 'Una IA convierte garabatos en imágenes', 'Nvidia ha presentado su herramienta GauGAN que, gracias a un modelo de aprendizaje profundo de inteligencia artificial, convierte trazos en imágenes hiperrealistas.', 'topimgs/1594602953_d5ccb73137bb6ad9c92d.jpg', '<p>El sue&ntilde;o de cualquier dise&ntilde;ador, o incluso su pesadilla por miedo a que las m&aacute;quinas le puedan quitar el trabajo. Nvidia ha presentado un innovador programa basado en inteligencia artificial que es capaz de generar im&aacute;genes hiperralistas a partir de sencillos trazos. Esta novedosa herramienta, basada en redes de confrontaci&oacute;n generativas (GAN), ha recibido el nombre de GauGAN en honor al artista post impresionista <NAME>.</p>\r\n\r\n<p><strong>La herramienta tiene una interfaz similar con Paint</strong></p>\r\n\r\n<p>El fabricante de chips estadounidense ense&ntilde;&oacute; a principios de marzo algunos ejemplos de lo que es capaz de hacer GauGAN. Con tan solo dibujar unos trazos, la inteligencia artificial de Nvidia, con una interfaz similar a MS Paint, lo convierte en pocos segundos en una imagen hiperrealista con monta&ntilde;as, oc&eacute;anos, &aacute;rboles y piedra.</p>\r\n\r\n<p>&iquest;C&oacute;mo funciona? El programa asocia los colores con objetos determinados, por ejemplo, el marr&oacute;n lo asocia a la piedra; y el azul claro, al cielo. Seg&uacute;n pinte el usuario en el &lsquo;lienzo digital&rsquo;, un modelo de aprendizaje profundo de inteligencia artificial formado por casi un mill&oacute;n de im&aacute;genes, rellena las texturas y a&ntilde;ade los detalles de la iluminaci&oacute;n.</p>\r\n\r\n<p>GauGAN tambi&eacute;n es capaz de utilizar diferentes filtros para cambiar la hora del d&iacute;a o incluso el estilo de pintura. Gracias a esta capacidad de la herramienta de Nvidia, podr&aacute;s cambiar desde el amanecer hasta la puesta del sol, o elegir entre una imagen fotorrealista o una impresionista.</p>\r\n\r\n<p>Los desarrolladores de Nvida han se&ntilde;alado que, aunque se espera que esta herramienta tenga otras utilidades, est&aacute; especializada en generar im&aacute;genes de la naturaleza.</p>\r\n\r\n<p>Adem&aacute;s, por desgracia, todav&iacute;a no est&aacute; disponible, y tenemos que esperar al menos unos meses para poder disfrutar de este incre&iacute;ble programa de inteligencia artificial.</p>\r\n\n ', '2020-07-12 19:43:46', '2020-07-12 20:15:53', 6, 75), (47, 'Efecto 2038', 'El nuevo apagón cibernético\r\nEl nuevo terror de los equipos informáticos es el conocido “Efecto 2038”. Dentro de unos años se generará un apagón en todo el mundo cibernético.', 'topimgs/1594601075_2c1540ed5575b426a05c.jpg', '<p>Dicen que la historia se repite y el paso del tiempo se encarga de demostrarnos que tienen toda la raz&oacute;n. Hace 20 a&ntilde;os, la sociedad miraba aterrada a sus ordenadores por la llegada de un desconocido y temido &ldquo;virus&rdquo; que dejar&iacute;a los equipos inform&aacute;ticos inservibles.</p>\r\n\r\n<p>Efecto 2000 lo llamaron y cop&oacute; los medios de comunicaci&oacute;n a escala global. El cambio de siglo iba a generar un apag&oacute;n en todo el mundo cibern&eacute;tico porque por aquel entonces los software antiguos codificaban los a&ntilde;os solo con los &uacute;ltimos dos d&iacute;gitos. As&iacute; pues, al llegar el nuevo siglo en el a&ntilde;o 2000, los sistemas inform&aacute;ticos lo interpretar&iacute;an como el a&ntilde;o 1900 y los dejar&iacute;an fuera de juego.</p>\r\n\r\n<p>Ahora, la vista se pone en el a&ntilde;o 2038, en lo que se conoce como el &ldquo;Efecto 2038&rdquo;, el nuevo terror de los equipos inform&aacute;ticos.</p>\r\n\r\n<p><strong>&iquest;Qu&eacute; pasar&aacute; esta vez?</strong></p>\r\n\r\n<p>Se trata de un &ldquo;bug&rdquo; que afectar&aacute; a los sistemas de 32 bits en relaci&oacute;n a su capacidad m&aacute;xima de almacenamiento. Tambi&eacute;n conocido como &lsquo;Y2K38&rsquo;.</p>\r\n\r\n<p>Sin m&aacute;s remedio, tenemos que ponernos t&eacute;cnicos para explicar bien qu&eacute; (se supone) qu&eacute; pasar&aacute;. Los sistemas de 32 bits de los que habl&aacute;bamos antes van almacenando memoria y ejecutan sus procesos utilizando d&iacute;gitos binarios, es decir 1 y 0. Por tanto, se ha calculado que su funcionamiento permite un total de 4.294.967.296 posibles combinaciones.</p>\r\n\r\n<p>Sin embargo, las combinaciones pueden ser positivas y negativas, por lo que una vez que los sistemas alcancen su n&uacute;mero m&aacute;ximo, comenzar&aacute;n a ser negativos.</p>\r\n\r\n<p>Esto est&aacute; relacionado con c&oacute;mo se codifican los tiempos, ya que uno de los sistemas utilizados por estos procesadores para medir el tiempo es el llamado POSIX, que va calculando los segundos que pasan desde la fecha de referencia. Esto es, desde el d&iacute;a 1 de enero de 1970, cada segundo va aumentando el contador del sistema, y cuando el valor se vuelva negativo, porque ha alcanzado el n&uacute;mero m&aacute;ximo de combinaciones negativas, los dispositivos de sistemas de 32 bits confundir&aacute;n la fecha real con el 13 de diciembre de 1901. Lo que, evidentemente, provocar&aacute; fallos en los sistemas y muchos dolores de cabeza para empresas y usuarios.</p>\r\n\r\n<p>Al hablar de las v&iacute;ctimas de ese bug, los expertos coinciden en se&ntilde;alar al sistema operativo Unix como una de las principales. Unix est&aacute; en el coraz&oacute;n de otros sistemas como GNU/Linux, iOS y Android, por lo que la mayor&iacute;a de los smartphones y una gran mayor&iacute;a de los servidores de Internet podr&iacute;an verse afectados.</p>\r\n\r\n<p>Lo que m&aacute;s preocupa sobre &lsquo;Y2K38&rsquo; es que no se conoce con seguridad c&oacute;mo reaccionar&aacute;n los sistemas afectados. Se barajan varias posibilidades:</p>\r\n\r\n<ul>\r\n <li>Que se reseteen las fechas y los sistemas viajen al pasado hasta 1901</li>\r\n <li>Que se generen fallos del sistema</li>\r\n <li>Apago de los dispositivos sin posibilidad de volver a arrancarlos</li>\r\n</ul>\r\n\r\n<p><strong>TIC TAC TIC TAC</strong></p>\r\n\r\n<p>Ante todo, la parte positiva en esta ocasi&oacute;n es que hay tiempo de sobra para que pueda evitarse que nuestros dispositivos viajen al pasado. Quedan todav&iacute;a 19 a&ntilde;os para que los dispositivos inform&aacute;ticos puedan desarrollar e instalar programas o parches que les permitan llegar al 20 de enero de 2038 como si nada.</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>De hecho, las grandes empresas tecnol&oacute;gicas como Microsoft o Apple est&aacute;n ofreciendo versiones de 64 bits en sus sistemas operativos para ir sustituyendo a los de 32. Por tanto, cabe esperar que esta evoluci&oacute;n se haya completado varios a&ntilde;os antes de que llegue 2038 y este efecto no supondr&iacute;a ning&uacute;n problema.</p>\r\n\r\n<p>Tambi&eacute;n es un punto a favor saber la fecha exacta en la que se producir&iacute;a. Incluso la hora, por lo que apunten: 19 de enero de 2038 a las tres y catorce minutos con siete segundos de la madrugada o, si lo prefieren: 03:14:07 UTC.</p>\r\n\n ', '2020-07-12 19:44:35', '2020-07-12 19:44:35', 6, 75), (48, 'Aplicaciones móviles', 'Definición y cómo funcionan las aplicaciones móviles', 'topimgs/1594601414_d0b4bf936b0b3591d1e6.jpg', '<h2>&iquest;Qu&eacute; es una aplicaci&oacute;n m&oacute;vil?</h2>\r\n\r\n<p>Si hablamos de la definici&oacute;n b&aacute;sica (app definici&oacute;n | movil definici&oacute;n), las&nbsp;<strong>aplicaciones m&oacute;viles</strong>&nbsp;son&nbsp; programas dise&ntilde;ados para ser ejecutados en tel&eacute;fonos, tablets y otros dispositivos m&oacute;viles, que permiten al usuario realizar actividades profesionales, acceder a servicios, mantenerse informado, entre otro universo de posibilidades.</p>\r\n\r\n<h2>&iquest;Cu&aacute;l es el origen de las Aplicaciones M&oacute;viles?</h2>\r\n\r\n<p>Se tiene conocimiento que las primeras aplicaciones se vislumbraban a finales de los 90. No estamos hablando de apps para tel&eacute;fonos inteligentes, sino para los anal&oacute;gicos. &iexcl;SI! estas tambi&eacute;n son consideradas aplicaciones. La agenda, juegos como el famoso snake, el tetris, los editores de tonos de llamadas, herramientas para personalizar el tel&eacute;fono, etc&hellip; cumpl&iacute;an funciones muy b&aacute;sicas comparando con lo que tenemos en la actualidad, sin embargo para cuando salieron significaron un avance enorme en la forma en como ve&iacute;amos a los tel&eacute;fonos celulares m&aacute;s antiguos (bloques) y abrieron un mercado gigantesco, cuya competencia es, y sigue siendo tan voraz; que nos ha permitido disfrutar de herramientas cada vez m&aacute;s pr&aacute;cticas, &uacute;tiles e incre&iacute;bles.</p>\r\n\r\n<p><strong>La tecnolog&iacute;a EDGE</strong>&nbsp;un antes y un despu&eacute;s, el hecho de poder conectarnos a Internet disparo al m&aacute;ximo las oportunidades, atrajo las miradas de visionarios y nuevos inversionistas. Para esta fecha a&uacute;n hab&iacute;an enormes restricciones por parte de los fabricantes, estos eran los propietarios de los OS que ven&iacute;an por defecto en los dispositivos, cosa que&nbsp; evitaba que desarrolladores externos tuvieran la capacidad de incorporar nuevos elementos. Pero tarde o temprano esto se har&iacute;a realidad, no faltaba mucho.</p>\r\n\r\n<h2><img alt=\"app-store-adroid-market-historia-aplicaciones\" src=\"https://cdn.shortpixel.ai/spai/w_623+q_lossy+ret_img+to_webp/https://servisoftcorp.com/wp-content/uploads/2019/02/app-store-adroid-market-historia-aplicaciones.jpg\" style=\"height:332px; width:498px\" /></h2>\r\n\r\n<p><strong>En el 2007 Apple hace una jugada maestra</strong>&nbsp;que cambia por completo la forma en la que ver&iacute;amos los equipos m&oacute;viles y por supuesto a las aplicaciones, que para ese entonces las sent&iacute;amos lejanas, poco pr&aacute;cticas y para nada relevantes.<strong>&nbsp;El Iphone</strong>&nbsp;ademas de una gran innovaci&oacute;n, represent&oacute; una plataforma para descargar aplicaciones de externos, sin los grandes militantes de los fabricantes en a&ntilde;os anteriores, esto&nbsp; a trav&eacute;s de su&nbsp;<strong>App Store</strong>, significaba el sue&ntilde;o hecho realidad para muchos desarrolladores que deseaban ofrecer apps sin las restricciones heredadas de los modelos anteriores.</p>\r\n\r\n<p><strong>Android y su HTC Dream</strong>, tambi&eacute;n presentado el 2007, puso en la mesa una alternativa al App Store de Apple, una apuesta arriesgada que&nbsp; inicialmente cont&oacute; con apenas 50 apps y que con el paso del tiempo, hasta el d&iacute;a de hoy, cuenta con la nada despreciable suma de m&aacute;s de 1 mill&oacute;n apps. Posteriormente Google le cambiar&iacute;a el nombre de &ldquo;Android Market&rdquo; por el de &ldquo;Google Play&rdquo; en marzo del 2012, que es como lo conocemos en la actualidad.</p>\r\n\r\n<p><strong><img alt=\"como funcionan las aplicaciones moviles desarrollo de apps en venezuela\" src=\"https://cdn.shortpixel.ai/spai/w_375+q_lossy+ret_img+to_webp/https://servisoftcorp.com/wp-content/uploads/2018/05/Aplicaciones-Aplicaciones-M%C3%B3viles.png\" style=\"height:187.5; width:300px\" /></strong></p>\r\n\r\n<h2>Sistemas Operativos M&oacute;viles</h2>\r\n\r\n<p>Entre los m&aacute;s importantes podemos nombrar los siguientes:</p>\r\n\r\n<ul>\r\n <li>Android (con m&aacute;s del 80% del mercado)</li>\r\n <li>IOS (con m&aacute;s del 10% del mercado)</li>\r\n <li>Windows Phone</li>\r\n <li>Blackberry</li>\r\n <li>Symbian</li>\r\n <li>Firefox O.S</li>\r\n <li>Ubuntu Touch</li>\r\n</ul>\r\n\r\n<h2>Tiendas de aplicaciones &iquest;Cuales son las m&aacute;s relevantes?</h2>\r\n\r\n<ul>\r\n <li>Google Play desarrollada por Google Inc</li>\r\n <li>App Store de Apple</li>\r\n <li>Windows Phone Store de Microsoft</li>\r\n <li>BlackBerry World</li>\r\n <li>Amazon Appstore</li>\r\n <li>Aptoide</li>\r\n <li>UptoDown</li>\r\n</ul>\r\n\r\n<h2><img alt=\"datos-accede-dispositivo-movil\" src=\"https://cdn.shortpixel.ai/spai/w_625+q_lossy+ret_img+to_webp/https://servisoftcorp.com/wp-content/uploads/2019/02/datos-accede-dispositivo-movil.png\" style=\"height:367.188; width:500px\" /></h2>\r\n\r\n<h2>&iquest;A cuales datos pueden acceder las aplicaciones m&oacute;viles?</h2>\r\n\r\n<p>Cuando descargas aplicaciones m&oacute;viles, en el proceso de instalaci&oacute;n te suelen indicar a que tipos de datos necesita acceder. Importante que le prestes atenci&oacute;n a esto, puede ser delicado incluso inseguro en casos particulares. Alguno de estos tipos de datos pueden ser:</p>\r\n\r\n<ul>\r\n <li>Lista de contactos de tel&eacute;fono y de email.</li>\r\n <li>Registro de llamadas.</li>\r\n <li>Datos transmitidos por internet.</li>\r\n <li>Informaci&oacute;n del calendario.</li>\r\n <li>Datos de localizaci&oacute;n del aparato.</li>\r\n <li>C&oacute;digo de identificaci&oacute;n exclusivo del aparato.</li>\r\n</ul>\r\n\r\n<p>Cabe destacar que algunas aplicaciones solamente pueden acceder a los datos necesarios para su funcionamiento. Otras pueden acceder a otros datos pero solo con autorizaci&oacute;n.</p>\r\n\r\n<p><strong>En la mayor&iacute;a de los OS del top</strong>, existe la posibilidad de leer las autorizaciones antes de instalar una aplicaci&oacute;n, al leerlas podr&aacute;s enterarte de algunos datos &uacute;tiles que te pueden revelar cual es la informaci&oacute;n a la cual se podr&aacute; acceder por medio de la aplicaci&oacute;n. Sino te convence, en muchos casos puede resultar m&aacute;s sensato buscar otras alternativas.</p>\r\n\r\n<h2>Aplicaciones m&oacute;viles que recolectan datos de localizaci&oacute;n</h2>\r\n\r\n<p>Esto se debe a que usan datos espec&iacute;ficos de localizaci&oacute;n para ofrecerles mapas, cupones para tiendas cercanas, o informaci&oacute;n sobre alguien que usted tal vez conozca y que se encuentre cerca. Existen aplicaciones que suministran datos de localizaci&oacute;n a redes de publicidad que pueden combinarse con otra informaci&oacute;n almacenada en sus bases de datos para dirigir espec&iacute;ficamente anuncios basados en sus intereses y su ubicaci&oacute;n geogr&aacute;fica.</p>\r\n\r\n<p>Para no permitir que las aplicaciones m&oacute;viles accedan a sus datos de localizaci&oacute;n s&oacute;lo debe configurar su tel&eacute;fono, desactivar los servicios de localizaci&oacute;n y no ser&aacute;s visible.</p>\r\n\r\n<p><img alt=\"aplicaciones-gratis-por-que-existen-motivo\" src=\"https://cdn.shortpixel.ai/spai/w_625+q_lossy+ret_img+to_webp/https://servisoftcorp.com/wp-content/uploads/2019/02/aplicaciones-gratis-por-que-existen-motivo.jpeg\" style=\"height:357.138; width:500px\" /></p>\r\n\r\n<h2>Diferencia entre aplicaciones m&oacute;viles y sitios web m&oacute;viles</h2>\r\n\r\n<p>Es normal, que algunos usuarios suelan confundir las aplicaciones m&oacute;viles con sitios web m&oacute;viles, pero en realidad, la diferencia es muy sencilla. Cuando hablamos de una App, nos referimos a programas que se instalan en el software del dispositivo haciendo que se encuentren all&iacute; de forma permanente y puedas usarlas de forma continua. Estas, requerir&aacute;n de la conexi&oacute;n a datos para su uso dependiendo de la naturaleza de las mismas pero, no desaparecer&aacute;n del m&oacute;vil a&uacute;n y cuando no tengas conexi&oacute;n a internet.</p>\r\n\r\n<p>Ahora bien, cuando hablamos de un sitio web m&oacute;vil, nos referimos a una p&aacute;gina que ha sido creada bajo una modalidad responsiva y puede visualizarse y ajustarse a las pantallas de los mismos. En otras palabras, simplemente colocas la url de la p&aacute;gina web que deseas buscar desde tus Smartphone o tablet y en cuanto aparezca, ver&aacute;s c&oacute;mo la misma se adapta a tu espacio de visi&oacute;n, m&aacute;s no significa que tengas alg&uacute;n programa instalado. Simplemente con salir del enlace, ya no visualizar&aacute;s el sitio y hasta all&iacute; llegar&aacute; el proceso. Por lo tanto, es completamente necesario tener datos para poder acceder a un sitio web m&oacute;vil.</p>\r\n\r\n<h2>&iquest;Por qu&eacute; las aplicaciones m&oacute;viles tienen anuncios publicitarios?</h2>\r\n\r\n<p>La estrategia m&aacute;s eficiente para que los desarrolladores puedan ofrecer aplicaciones a m&aacute;s bajo costo, es a&ntilde;adiendo dentro de ellas espacio publicitario que permita abaratar los precios. Ellos, venden sus espacios a redes de publicidad que a su vez, venden estos mismos espacios a redes de anunciantes. Adem&aacute;s de eso, dichas redes de publicidad eval&uacute;an las informaciones suministradas por los usuarios a trav&eacute;s de las aplicaciones para indagar sobre qu&eacute; productos son los mejores para ellos seg&uacute;n sus orientaciones de b&uacute;squedas.&nbsp; Es por ello, que cuando comienzas a buscar en internet alg&uacute;n tipo de producto milagrosamente, se aparecen ante ti anuncios relacionados a los mismos &iexcl;nada es casualidad!</p>\r\n\r\n<h2>&iquest;Puede una aplicaci&oacute;n transmitir virus a un m&oacute;vil?</h2>\r\n\r\n<p>Lamentablemente, s&iacute;. Recordemos que las Apps son programas instalables que deber&aacute;n permanecer en tu m&oacute;vil. Algunos desarrolladores mal intencionados solo crean aplicaciones de juegos u otras atracciones para que, una vez descargadas, se instalen a trav&eacute;s de ellas, virus, con los que son capaces de acceder a tu informaci&oacute;n y puedas ser v&iacute;ctima de hackeos o robos de datos. Esto, es m&aacute;s com&uacute;n de lo que piensas, por lo que debes procurar buscar tus Apps en tiendas oficiales para ello como App Store, BlackBerry World o Google Play Store ya que son las m&aacute;s confiables en el mercado quienes, cumplen m&aacute;s rigurosamente con las medidas de seguridad para poder exponer un nuevo programa a la descarga del p&uacute;blico. Sin embargo, puede que haya una que otra por ah&iacute; que este muy bien camuflada y logre colarse.</p>\r\n\r\n<p>Para prevenir estos males, lo mejor es mantener nuestras aplicaciones constantemente actualizadas. Tambi&eacute;n, deber&aacute;s fijarte muy bien en cada Apps que pretendas descargar. Observa las calificaciones u opiniones de los dem&aacute;s, esto te dar&aacute; una visi&oacute;n m&aacute;s clara de si se trata de un programa normal o si es una estafa.</p>\r\n\r\n<h3>&iquest;Aplicaciones m&oacute;viles&nbsp;gratis por qu&eacute; las hay?</h3>\r\n\r\n<p>Es importante mencionar que algunas aplicaciones&nbsp; son distribuidas gratuitamente por tiendas, no por esto se excluye la obtenci&oacute;n de dinero para sus creadores.</p>\r\n\r\n<h3>Si suelen ganar dinero y lo hacen de esta forma:</h3>\r\n\r\n<ul>\r\n <li>Los creadores de estas aplicaciones ganan dinero con los anuncios, por tal motivo distribuyen la aplicaci&oacute;n gratuitamente y de esta forma llegan a mayor cantidad de usuarios, tambi&eacute;n pueden vender un espacio publicitario dentro de la aplicaci&oacute;n.</li>\r\n <li>&nbsp;Casi todas las aplicaciones ofrecen versiones b&aacute;sicas gratuitas. Esto lo hacen con la intenci&oacute;n que en un momento dado a los usuarios les agrade lo suficiente la aplicaci&oacute;n y desee pasarse a una versi&oacute;n mejorada, la misma tendr&aacute; mayor cantidad de funciones por la que deber&aacute; que pagar un cargo.</li>\r\n <li>La mayor&iacute;a de aplicaciones que se ofrecen gratuitamente pata despertar el inter&eacute;s en otros productos de la compa&ntilde;&iacute;a.</li>\r\n</ul>\r\n\r\n<h2>&iquest;Cu&aacute;les son las aplicaciones m&oacute;viles m&aacute;s usadas?</h2>\r\n\r\n<p>Se puede decir que las aplicaciones m&oacute;viles m&aacute;s utilizadas, son aquellas que se han ganado la preferencia del p&uacute;blico, no solo por su apariencia sino por su usabilidad, buen funcionamiento, excelente dise&ntilde;o y la experiencia de usuario que son capaces de proveer. Son casi que incontables las apps existentes, pero, las que estamos a punto de mencionar se encuentran en el trading top de las que resulta pr&aacute;cticamente imposible no tener en tu celular.</p>\r\n\r\n<ul>\r\n <li><strong>Facebook:</strong>&nbsp;Indudablemente, Facebook es la aplicaci&oacute;n m&aacute;s utilizada en los &uacute;ltimos a&ntilde;os con millones de descargas a nivel mundial y con una comunidad de seguidores que va en aumento. Se puede decir que son m&aacute;s los que usan la red social desde sus celulares que desde las computadoras.</li>\r\n <li><strong>WhatsApp:</strong>&nbsp;Esta aplicaci&oacute;n de mensajer&iacute;a desplaz&oacute; casi que completamente los SMS comunes por su estupenda usabilidad y, sobre todo por la posibilidad de conectarse con quien quieras sin restricciones territoriales.</li>\r\n <li><strong>YouTube:</strong>&nbsp;El video domina la preferencia de los usuarios en cuanto a consumo de informaci&oacute;n se refiere, por lo que la descarga de YouTube es una idea que ya est&aacute; posicionada en la mente de los consumidores digitales.</li>\r\n <li><strong>Amazon:</strong>&nbsp;Las compras online crecen cada d&iacute;a m&aacute;s, y la tienda Amazon domina el mercado ayudado de su app en donde el usuario puede elegir e insertar al carrito de manera confiable lo que le guste. De este modo, mientras estas de paseo en un parque puedes comprar un par de zapatos y esperar a que lleguen a casa.</li>\r\n <li><strong>Google Maps:</strong>&nbsp;Esta app ha cobrado fuerza en la vida cotidiana y tambi&eacute;n en el &aacute;mbito laboral. Su f&aacute;cil manejo y la utilidad que brinda a quienes la consumen la vuelve indispensable. Con ella podr&aacute;s ubicarte en cualquier direcci&oacute;n indic&aacute;ndote adem&aacute;s como llegar a todo lugar, bien sea, a trav&eacute;s del marcado de rutas en el mapa o por gu&iacute;a por voz. Suele ser la favorita de millones de transportista y mensajeros a nivel mundial.</li>\r\n <li><strong>Instagram:</strong>&nbsp;La red social de alto impacto en im&aacute;genes no pod&iacute;a quedarse atr&aacute;s. La misma se ha convertido en una de las favoritas de millones de usuarios que la prefieren por su uso m&aacute;s personal. Cuenta con mensajer&iacute;a instant&aacute;nea, historias y la posibilidad de ganar seguidores m&aacute;s r&aacute;pidamente que en cualquier otra red social.</li>\r\n <li><strong>Telegram:</strong>&nbsp;La app que pretende de cierto modo reemplazar a WhatsApp, est&aacute; siendo muy bien aceptada por los consumidores debido a su estabilidad. &iexcl;Sino la conoces te recomendamos probarla!</li>\r\n <li><strong>Gmail:</strong>&nbsp;El mundo del emailmarketing a&uacute;n es capaz de ofrecer excelentes frutos y es que, simplemente a&uacute;n todo se maneja por correo. La gran mayor&iacute;a de las aplicaciones y redes sociales existentes requieren de una cuenta Gmail para comenzar, por lo que estar pendiente de nuestras notificaciones desde el celular es la mejor alternativa.</li>\r\n</ul>\r\n\r\n<p>Realmente, las apps aqu&iacute; rese&ntilde;adas se han convertido en ejemplos a seguir para las nuevas aplicaciones que se encuentran en desarrollo. Las mismas, fueron ideadas pensando en las necesidades del usuario y, es eso los que las posiciona en los primeros lugares.</p>\r\n\r\n<h2>Las mejores aplicaciones m&oacute;viles para emprendedores</h2>\r\n\r\n<p>Muchas aplicaciones, facilitan el arduo trabajo de los emprendedores convirti&eacute;ndose en herramientas &uacute;tiles para administrar mejor su dinero y sus negocios. Los mismos, descargan Apps con las que pueden controlar sus gastos, hablar con clientes, hacer publicidad o controlar mejor su tiempo. Existen muchas de ellas, aunque las m&aacute;s buscadas est&aacute;n aqu&iacute; y te las presentaremos.</p>\r\n\r\n<ul>\r\n <li><strong>Para gestionar el tiempo:&nbsp;</strong>Uno de los factores m&aacute;s influyentes al momento de trabajar tipo FreeLancer o gestionar un negocio es el tiempo. No es f&aacute;cil tener un espacio para atender todos los asuntos sin olvidar nada por lo que, muchas Apps han sido dise&ntilde;adas para que ajustes tus cronogramas de acci&oacute;n, de actividades y hasta les des seguimientos. Las Apps m&aacute;s usadas para esto son: Asana, Trello, Hibox y Google Calendar.</li>\r\n <li><strong>Establecer comunicaciones:&nbsp;</strong>Obviamente, el compartir datos, archivos, formularios o documentaciones de inter&eacute;s, es crucial en cualquier negocio o actividad laboral, por lo que, los usuarios se apoyan en Apps como Gmail, Whatsapp, Slack, Outlook, Dropbox, Skype, Google Drive y Telegram para tal fin. Quienes le han usado, saben la potencia laboral que pueden llegar a tener estos programas.</li>\r\n <li><strong>Manejar finanzas:&nbsp;</strong>Uno de los aspectos m&aacute;s dif&iacute;ciles de controlar en un negocio, son las cifras. Llevar un balance de los ingresos y egresos puede ser tedioso y agotador, por lo que existen actualmente Apps que facilitan esta tarea haci&eacute;ndote disfrutar de un control sobre tus finanzas, compras, ventas, pr&eacute;stamos bancarios, gastos del d&iacute;a y m&aacute;s. Entre las m&aacute;s destacadas est&aacute;n: Fintonic, MyScripy calculator, Anfix, Expersify y Money lover.</li>\r\n <li><strong>Atender clientes:&nbsp;</strong>Todos sabemos que un buen manejo de clientes marcar&aacute; la diferencia entre un emprendimiento u otro. Por lo que, contar con Apps que puedan organizar las demandas de nuestros clientes y segmentar sus dudas y requerimientos para atenderlos m&aacute;s r&aacute;pido no tiene precio. Las ideales para esto son: WhatsApp Business y Desk.</li>\r\n <li><strong>Viajes y movilidad:&nbsp;</strong>No podemos dejar de lado los servicios de traslado, viajes o mensajer&iacute;a que tanto nos facilitan las actividades de negocios. Contar con Apps que pongan a nuestra disposici&oacute;n estos servicios es m&aacute;s que indispensables. Por lo tanto, no puedes dejar de tener estas aplicaciones si eres emprendedor: Cabify, Booking, Expedia, Uber, Kayak o Rappi.</li>\r\n <li><strong>Compras:</strong>&nbsp;Por &uacute;ltimo, no pod&iacute;amos dejar pasar las tiendas virtuales l&iacute;deres en el mercado que deber&aacute;s tener agregadas en tu m&oacute;vil para llevar a cabo cualquier compra para tu negocio o actividad laboral dependiendo a que te dediques. Sin duda, nos referimos a Amazon, Ebay, Aliexpress, El Corte Ingl&eacute;s y Carrefour.</li>\r\n</ul>\r\n\r\n<h2>&iquest;C&oacute;mo se crean las aplicaciones m&oacute;viles?</h2>\r\n\r\n<p><img alt=\"\" src=\"https://cdn.shortpixel.ai/spai/w_963+q_lossy+ret_img+to_webp/https://servisoftcorp.com/wp-content/uploads/2019/02/aplicaciones-moviles-apps-servisoftcorp.com_.png\" style=\"height:481.25; width:770px\" /></p>\r\n\r\n<p>Para los amantes de la tecnolog&iacute;a, esta pregunta es sumamente recurrente pues, la creaci&oacute;n de estas novedosas herramientas inform&aacute;ticas facilita la vida de los usuarios o de cierta forma la alegran dependiendo de la orientaci&oacute;n que tengan. Actualmente, ya puedes encontrar en el mercado ciertos programas que te permiten crear por ti mismo aplicaciones de todo tipo, con buena estructura y, a decir verdad, sin tanto esfuerzo.</p>\r\n\r\n<p>Sin embargo, dise&ntilde;ar una app va m&aacute;s all&aacute; de lo que vemos. Es pensar de forma anal&iacute;tica que es lo que necesita el p&uacute;blico, cual es la mejor manera de satisfacerlo y, adem&aacute;s, de qu&eacute; modo podr&aacute; manejar la herramienta sin que se pierda o se aburra. Es aqu&iacute; donde resulta conveniente tener en cuenta las siguientes etapas:</p>\r\n\r\n<h3>Dise&ntilde;o basado en el usuario</h3>\r\n\r\n<p>Antes de realizar una aplicaci&oacute;n, lo primero que se debe hacer es definir a quienes ir&aacute; dirigida. Esto facilitar&aacute; las labores de dise&ntilde;o puesto que ser&aacute; un trabajo pensado en el usuario. Se deber&aacute; considerar las necesidades que pretende cubrir, edades, caracter&iacute;sticas del p&uacute;blico, que tanto puede durar en el mercado si se realiza una buena gesti&oacute;n de conceptualizaci&oacute;n, entre otros aspectos.</p>\r\n\r\n<h3>Prioriza la usabilidad</h3>\r\n\r\n<p>Nada haremos con elaborar una herramienta que el resto de las personas no entiendan. La usabilidad es una prioridad, puesto que su f&aacute;cil manejo permitir&aacute; que el consumidor la explore y aproveche completamente.</p>\r\n\r\n<h3>Comienza el desarrollo</h3>\r\n\r\n<p>En este punto ya sabes que quieres hacer y comienza la ejecuci&oacute;n. Tendr&aacute;s que armar la estructura, definir los lenguajes y realizar un arduo trabajo de desarrollo inform&aacute;tico.</p>\r\n\r\n<h3>Publicaci&oacute;n de prueba</h3>\r\n\r\n<p>Las apps no salen al mercado ya siendo exitosas, estas requieren periodos de prueba para observar las respuestas del p&uacute;blico y verificar si los objetivos propuestos est&aacute;n siendo alcanzados. Incluso, esta es la etapa perfecta para escuchar las sugerencias de los consumidores y hacer modificaciones.</p>\r\n\r\n<p>Es importante que entiendas, que las mencionadas apps cuando son hechas de modo profesional, son consideradas proyectos que requieren una inversi&oacute;n que se supone debe retornar si esta cumple con los resultados esperados. Se requieren de profesionales expertos en el &aacute;rea para llevarlas a cabo.</p>\r\n\r\n<h2>Desarrollo de aplicaciones m&oacute;viles para android &iquest;C&oacute;mo hacerlo de forma gratuita?</h2>\r\n\r\n<p>Para el desarrollo de una aplicaci&oacute;n, lo com&uacute;n, es requerir de muchos conocimientos en materia de lenguajes de programaci&oacute;n. Sobre todo en el tan popular java script. Sin embargo, actualmente, existen plataformas que les permiten a los usuarios crear aplicaciones sin la necesidad de tantas l&iacute;neas de c&oacute;digo o en algunos casos, de ninguna. Simplemente, haciendo uso de ciertos programas especiales con los que puedes crear Apps para casi todo, sin tener que ser un experto. Si estas interesado en abrirte paso por este camino del desarrollo de aplicaciones m&oacute;viles, te conviene echar un vistazo a estas plataformas:</p>\r\n\r\n<p><strong>1. Mobincube</strong></p>\r\n\r\n<p>Es la herramienta ideal para crear aplicaciones m&oacute;viles nativas orientas a sistemas Android, iOS o Windows. Te da la oportunidad de monetizar a trav&eacute;s de las aplicaciones que crees con ella. Recibir&aacute;s notificaciones de google analytics y google maps de forma autom&aacute;tica d&aacute;ndote incluso, la oportunidad de incluir estas herramientas en tus Apps creadas.&nbsp; Aunque su interfaz no es tan atractiva, te aseguramos es una herramienta de la cual puedes sacar mucho provecho.</p>\r\n\r\n<p><strong>2. Dropsource</strong></p>\r\n\r\n<p>A diferencia de Mobincube, esta, es mucho m&aacute;s amigable. Disponible de una interfaz eficiente que te permite arrastrar, soltar, copiar y pegar elementos para que vayas desarrollando tu nueva App desde el navegador. Dispone para ti de m&uacute;ltiples funciones que te dejar&aacute;n sorprendido. Con ella, podr&aacute;s idear, desarrollar, publicar y monitorear tu nuevo programa sin complicaciones. Es m&aacute;s, desde un emulador podr&aacute;s visualizar tu nueva App y solicitar feedback de los usuarios para medir su nivel de usabilidad. Ya no tendr&aacute;s excusas para crear tu aplicaci&oacute;n m&oacute;vil nativa y una vez est&eacute; lista, publicarla directamente en Google Play store o App Store de forma gratuita si logras terminarla antes de un mes.</p>\r\n\r\n<p><strong>3. Thunkable</strong></p>\r\n\r\n<p>La misma, tambi&eacute;n se trabaja desde la nube. Permite crear aplicaciones m&oacute;viles nativas para Android e iOS con mucha facilidad y su interfaz es excelente superando la de Mobincuber. Aunque esta &uacute;ltima, permite desarrollar Apps para sistemas Windows y lamentablemente Thunkable no. Sin embargo, su sistema de documentaci&oacute;n compensa esa carencia haciendo que aprendas a usar la plataforma r&aacute;pidamente a trav&eacute;s de v&iacute;deo y tutoriales. La &uacute;nica desventaja, es que si deseas que tu nueva App sea compatible con Android e iOS tendr&aacute;s que desarrollarlas por separado.</p>\r\n\r\n<p><strong>4. Andromo</strong></p>\r\n\r\n<p>Con Andromo, crear Apps en diferentes idiomas es m&aacute;s que posible gracias a su sistema multiling&uuml;e que la convierten en una plataforma especial para ello. Dispone para ti de diversas plantillas que puedes editar a tu gusto hasta darle forma a la App que quieres incluyendo Facebook, Twitter, Flickr y YouTube adem&aacute;s de galer&iacute;as de fotos e informaciones de contacto en su sistema. La &uacute;nica desventaja, es que en el plan gratuito solo te permite realizar una aplicaci&oacute;n la cual podr&aacute;s publicar sin problema en Google Play Store y en Amazon Store.</p>\r\n\r\n<p><strong>5. AppsGeyser</strong></p>\r\n\r\n<p>Es la herramienta m&aacute;s adecuada si de ensamblar contenido web en aplicaciones se trata, te permite crear programas de forma r&aacute;pida y funcional aunque lamentablemente no es compatible con IOS. En otras palabras, es la plataforma que necesitas para crear la App de tu sitio web si la belleza no es tu prioridad en tu proyecto. Dispone de 70 plantillas para ti completamente editables a las que puedes incluir contenido web, usar HTML5, agregar m&uacute;ltiples funciones de uso compartido, geolocalizaci&oacute;n y m&aacute;s.&nbsp; Una vez est&eacute; lista, la subes a Google Play Store y listo.</p>\r\n\r\n<h2>&iquest;C&oacute;mo registrar aplicaciones m&oacute;viles?</h2>\r\n\r\n<p>Una de las preguntas m&aacute;s habituales que surge entre los desarrolladores y emprendedores que crean una App, es como proteger su trabajo. En otras palabras, como garantizar que otra persona no copie o plagie lo que hemos hecho. Dicho planteamiento es importante puesto que son muchas las empresas que apoyan sus labores de venta electr&oacute;nica con la creaci&oacute;n de aplicaciones para sus usuarios y estas, deben estar registradas como parte de su marca, as&iacute; como tambi&eacute;n, cualquier otra App de peso que se considere original y de beneficio al p&uacute;blico para que la monetizaci&oacute;n de las mismas si alcanzan gran auge, pueda ser justamente reclamadas.</p>\r\n\r\n<p>Para lograrlo, se debe tener en consideraci&oacute;n que lo que se va a registrar como tal es el c&oacute;digo fuente del programa, y esto, entra dentro de la clasificaci&oacute;n de propiedades intelectuales. Seg&uacute;n la legislaci&oacute;n de cada pa&iacute;s, se tiene u instituto encargado de esta actividad, el cual, exigir&aacute; diversos documentos que abalen y certifiquen que lo que has creado realmente te pertenece. Es un procedimiento legal, que por lo general es simple y no deber&iacute;a llevar mucho tiempo. Si consideras, has desarrollado una aplicaci&oacute;n que tendr&aacute; gran repercusi&oacute;n en los consumidores y tiene una propuesta de valor atractiva, reg&iacute;strala y aseg&uacute;rate de darle a tu aplicaci&oacute;n un car&aacute;cter oficial.</p>\r\n\r\n<h2>&iquest;Qu&eacute; tipo de aplicaciones m&oacute;viles hay?</h2>\r\n\r\n<p>Ya sabes que cada vez puedes encontrar mayor cantidad de aplicaciones en el mercado, puesto que d&iacute;a a d&iacute;a se suma una nueva al mismo. Todas ellas se ajustan a una clasificaci&oacute;n que te conviene conocer para saber cu&aacute;l se puede ajustar mejor a lo que deseas hacer o simplemente, para que clasifiques por ti mismo a que grupo pertenece tu app favorita.</p>\r\n\r\n<ul>\r\n <li><strong>App nativa:&nbsp;</strong>Esta se entiende como aquella que ha sido dise&ntilde;ada bajo un lenguaje de programaci&oacute;n especifico y est&aacute; orientada a funcionar tambi&eacute;n bajo un sistema operativo determinado. Son las que, por lo general, ya vienen incorporadas en tu Smartphone funcionando independientemente tengas conexi&oacute;n a internet o no.</li>\r\n <li><strong>Web App:</strong>&nbsp;Estas, son aquellas que no se instalan en el dispositivo y se utilizan exclusivamente con el uso de internet. Suelen ser adaptaciones de p&aacute;ginas web al formato m&oacute;vil.</li>\r\n <li><strong>Web App Nativa:&nbsp;</strong>Tambi&eacute;n conocida como aplicaci&oacute;n hibrida, es aquella que se descarga de una app store y se instala en el dispositivo mostrando un icono. Dependiendo del tipo de aplicaci&oacute;n, algunas requerir&aacute;n de conexi&oacute;n a internet para funcionar y otras no.</li>\r\n</ul>\r\n\r\n<h2>Aplicaciones m&oacute;viles para ni&ntilde;os &iquest;Son buena idea?</h2>\r\n\r\n<p>Sin duda, uno de los temas m&aacute;s sonados actualmente en materia de tecnolog&iacute;a, es el acceso de los ni&ntilde;os a la descarga y uso de aplicaciones m&oacute;viles. Cada vez, son m&aacute;s los programas dise&ntilde;ados para atender al p&uacute;blico infantil que van orientados a juegos, interfaces de ense&ntilde;anza o entretenimiento educativo que, dependiendo del tipo de App, pueden ser muy &uacute;tiles. Sin embargo, el tema abarca m&aacute;s puntos a considerar como: la posibilidad de que vean anuncios inapropiados, la adicci&oacute;n al m&oacute;vil o la posibilidad de que el menor ingrese a otros sitios que no sean los propios de la aplicaci&oacute;n.</p>\r\n\r\n<p>En vista de lo anteriormente dicho, muchos representantes manifiestan dudas acerca de darles acceso o no, por lo que, lo m&aacute;s recomendable, es hacerlo bajo ciertas medidas de seguridad que garanticen el acceso &uacute;nico del ni&ntilde;o a un programa meramente educativo. Entre estas medidas, est&aacute;n:</p>\r\n\r\n<ul>\r\n <li>Supervise la App antes de descargarla observando los comentarios de la misma y sus calificaciones. De este modo, podr&aacute; verificar que realmente sea infantil e inofensiva.</li>\r\n <li>&Uacute;selo usted antes de d&aacute;rselo al ni&ntilde;o, vea cada funci&oacute;n, que tan productivo es y si vale la pena que su hijo emplee su tiempo us&aacute;ndola.</li>\r\n <li>Debe ser un App nativa que no requiera conexi&oacute;n a internet para usarla. De ese modo, solo la descargar&aacute; y pondr&aacute; el m&oacute;vil en modo avi&oacute;n para que el ni&ntilde;o no tenga acceso a nada m&aacute;s.</li>\r\n <li>Por &uacute;ltimo, supervise al infante mientras juega o aprende para evitar cualquier inconveniente y, no permita que este permanezca m&aacute;s de dos horas con el m&oacute;vil.</li>\r\n</ul>\r\n\r\n<h2>&iquest;Para qu&eacute; sirven las Apps?</h2>\r\n\r\n<p>Las aplicaciones, cumplen con m&uacute;ltiples funciones que pueden estar orientadas al &aacute;mbito educativo, laboral, creativo o simplemente favorecer al ocio o la comunicaci&oacute;n. Sin importar cual elijas, todas han sido dise&ntilde;adas pensando en tus necesidades y pretenden seguirte sorprendiendo con la incorporaci&oacute;n de m&aacute;s tareas.</p>\r\n\r\n<p><strong>Las aplicaciones m&oacute;viles son una ventana abierta a la comunicaci&oacute;n</strong>, el buen uso de ellas y toda la informaci&oacute;n que puedan suministrarle para desarrollar cualquier actividad es relevante. &Uacute;salas con conocimiento y de la mejor forma para obtener el mejor provecho.Si buscas expertos, nuestro equipo de&nbsp;<strong><a href=\"https://servisoftcorp.com/desarrollo-apps-venezuela/\" target=\"_blank\">desarrollo de apps en Venezuela</a>&nbsp;</strong>te puede ayudar a que ese proyecto que tienes en mente, se haga realidad.</p>\r\n\r\n<p>&iquest;Te gust&oacute; el art&iacute;culo? comp&aacute;rtelo y comenta. Si tienes dudas, con mucho gusto te las aclararemos.</p>\r\n\n ', '2020-07-12 19:50:14', '2020-07-12 19:50:14', 6, 75), (49, 'Fisiología', 'Estudio de la función del cuerpo', 'topimgs/1594602337_a77809276a20eb5d7d08.jpg', '<p>&nbsp;</p>\r\n\r\n<p>La fisiolog&iacute;a humana es el estudio de c&oacute;mo funciona el cuerpo humano, con &eacute;nfasis en los mecanismos espec&iacute;ficos de causa y efecto. El conocimiento de estos mecanismos se ha obtenido experimentalmente por medio de aplicaciones del m&eacute;todo cient&iacute;fico.</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>La fisiolog&iacute;a (del griego physis, &ldquo;naturaleza&rdquo;; logos, &ldquo;estudio&rdquo;) es el estudio de la funci&oacute;n biol&oacute;gica &mdash;c&oacute;mo funciona el cuerpo, desde los mecanismos moleculares dentro de las c&eacute;lulas hasta las acciones de tejidos, &oacute;rganos y sistemas, y c&oacute;mo el organismo en conjunto lleva a cabo tareas particulares esenciales para la vida&mdash;. En el estudio de la fisiolog&iacute;a se hace hincapi&eacute; en los mecanismos &mdash;con preguntas que empiezan con la palabra c&oacute;mo, y respuestas que comprenden secuencias de causa y efecto&mdash;. Tales secuencias pueden entrelazarse hacia historias cada vez m&aacute;s grandes que incluyen descripciones de las estructuras implicadas (anatom&iacute;a) y que se superponen con las ciencias de la qu&iacute;mica y la f&iacute;sica.</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>Los hechos y relaciones separados de estas secuencias de causa y efecto derivan de manera emp&iacute;rica de evidencia experimental. Las explicaciones que parecen l&oacute;gicas no necesariamente son verdaderas; s&oacute;lo son tan v&aacute;lidas como los datos en los cuales se basan y suelen cambiar a medida que se crean nuevas t&eacute;cnicas y se efect&uacute;an m&aacute;s experimentos. El objetivo final de la investigaci&oacute;n fisiol&oacute;gica es entender el funcionamiento normal de c&eacute;lulas, &oacute;rganos y sistemas. Una ciencia relacionada&mdash; la fisiopatolog&iacute;a&mdash; estudia c&oacute;mo se alteran los procesos fisiol&oacute;gicos en presencia de enfermedad o lesi&oacute;n.</p>\r\n\r\n<p>&nbsp;</p>\r\n\n ', '2020-07-12 20:05:37', '2020-07-12 20:05:37', 7, 75), (50, 'Antropología', 'La ciencia que se encarga de estudiar la realidad del ser humano a través de un enfoque holístico', 'topimgs/1594602366_fffed5c9130458103c7f.jpg', '<p>Esta ciencia analiza al hombre en el contexto cultural y social del que forma parte. As&iacute; analiza el origen del ser humano, su desarrollo como especie social y los cambios en sus conductas seg&uacute;n pasa el tiempo.</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>Se dice que <NAME>, en 1749, fue el primer estudioso en postular a la antropolog&iacute;a como una disciplina independiente. Su desarrollo se asent&oacute; sobre dos posturas: el estudio de las diversas caracter&iacute;sticas f&iacute;sicas del ser humano y la comparaci&oacute;n descriptiva de los distintos pueblos.</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>No obstante, otros muchos son los antrop&oacute;logos que a lo largo de la historia han dejado su huella imborrable en esta disciplina que ahora nos ocupa. Este ser&iacute;a el caso, por ejemplo, de <NAME>. &Eacute;l fue una figura muy respetable dentro del &aacute;mbito cient&iacute;fico que expuso sus teor&iacute;as apoy&aacute;ndose en conceptos tales como las leyes naturales, la adaptaci&oacute;n del ser al entorno o la transmisi&oacute;n de determinados factores de generaci&oacute;n en generaci&oacute;n.</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>Asimismo tampoco puede pasarse por alto la figura de <NAME> que est&aacute; considerado como uno de los aut&eacute;nticos padres de la Antropolog&iacute;a Moderna. En su caso, destac&oacute; porque expuso avances y teor&iacute;as en materia de las relaciones de parentesco que para &eacute;l eran fundamentales para conseguir que un grupo estrechara lazos y que los individuos que lo conformaban se sintieran parte vital de aquel.</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>A estos dos personajes de gran calado hist&oacute;rico, antropol&oacute;gico y filos&oacute;fico habr&iacute;a que a&ntilde;adir, entre otros muchos m&aacute;s, el nombre de <NAME>. Este, de origen norteamericano, es conocido mundialmente por ser la pieza clave del materialismo cultural. Una teor&iacute;a o corriente esta que se basa fundamentalmente en cuestiones de tipo material para determinar las diferencias o las similitudes de tipo sociocultural que existen entre diversos grupos.</p>\r\n\n ', '2020-07-12 20:06:06', '2020-07-12 20:06:06', 7, 75), (51, 'Sociología', 'La sociología es una ciencia social que tiene como objeto de estudio las relaciones sociales', 'topimgs/1594602400_99839bf99d0cc6575915.jpg', '<p>En este sentido, la sociolog&iacute;a se encarga de estudiar, analizar y describir la estructura, organizaci&oacute;n y funcionamiento de las sociedades, as&iacute; como las conductas, tendencias, fen&oacute;menos y problem&aacute;ticas que se verifican a nivel colectivo como consecuencia de las actividades sociales.</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>Para ello, la sociolog&iacute;a se vale de distintos m&eacute;todos de investigaci&oacute;n. Por un lado, el m&eacute;todo cualitativo, enfocado en la descripci&oacute;n e interpretaci&oacute;n de los fen&oacute;menos, y, por el otro, el m&eacute;todo cuantitativo, m&aacute;s volcado en la representaci&oacute;n estad&iacute;stica de los fen&oacute;menos sociales estudiados.</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>La sociolog&iacute;a, adem&aacute;s, es una ciencia interdisciplinaria, que se vale de diferentes teor&iacute;as, m&eacute;todos y t&eacute;cnicas para el an&aacute;lisis y la interpretaci&oacute;n de las causas y efectos de los fen&oacute;menos sociales.</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>En la historia de esta disciplina, <NAME> es considerado el padre de la sociolog&iacute;a, pues fue el primero en proponerse la investigaci&oacute;n y teorizaci&oacute;n cient&iacute;fica de los fen&oacute;menos sociales.</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>Otros autores de importancia ser&aacute;n <NAME>, <NAME>, &Eacute;<NAME>, <NAME> o <NAME>, pensadores e intelectuales que en el siglo XIX ya hab&iacute;an comenzado a reflexionar sobre la sociedad como objeto de estudio desde un punto de vista cient&iacute;fico.</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>El origen de la palabra sociolog&iacute;a, por su parte, est&aacute; en la obra de <NAME>, quien a partir de la voz latina socĭus, que significa &lsquo;socio&rsquo;, y el t&eacute;rmino griego &lambda;&oacute;&gamma;&omicron;&sigmaf; (l&oacute;gos), que significa &lsquo;tratado&rsquo;, &lsquo;estudio&rsquo; o &lsquo;ciencia&rsquo;, crea el neologismo sociolog&iacute;a, en su obra Curso de filosof&iacute;a positiva, publicado entre 1830 y 1842.</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>Actualmente, la sociolog&iacute;a es tambi&eacute;n una carrera universitaria en la que se opta por el grado de licenciado en sociolog&iacute;a.</p>\r\n\n ', '2020-07-12 20:06:40', '2020-07-12 20:06:40', 7, 75); -- -------------------------------------------------------- -- -- Table structure for table `paginas` -- CREATE TABLE `paginas` ( `id` int(11) NOT NULL COMMENT 'Identificador de las páginas', `titulo` varchar(255) NOT NULL, `encabezado` varchar(255) NOT NULL, `cuerpo` longtext NOT NULL, `created_at` datetime NOT NULL COMMENT 'Informacion de hora de creacion', `updated_at` datetime NOT NULL COMMENT 'Informacion de hora de actualización' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `paginas` -- INSERT INTO `paginas` (`id`, `titulo`, `encabezado`, `cuerpo`, `created_at`, `updated_at`) VALUES (4, 'Sobre los desarrolladores', 'Dariana, <NAME> y Adrian', '<p>Somos un grupo de estudiantes, y esta es nuestra historia:</p>\r\n\r\n<p>&quot;<em>Agua. Tierra. Fuego. Aire. Mi abuela sol&iacute;a contarme historias de tiempos antiguos, aquellos tiempos de paz en que el Avatar manten&iacute;a el equilibrio entre las Tribus Agua, el Reino Tierra, la Naci&oacute;n del Fuego y los N&oacute;mades Aire. Pero todo cambi&oacute; cuando la Naci&oacute;n del Fuego atac&oacute;. Solo el Avatar es capaz de dominar los cuatro elementos, solo &eacute;l puede detener a los despiadados Maestros Fuego, pero cuando el mundo m&aacute;s lo necesitaba, desapareci&oacute;. Han pasado cien a&ntilde;os y la Naci&oacute;n del Fuego est&aacute; alcanzando la victoria en esta guerra. Hace dos a&ntilde;os, mi padre, junto con los hombres de mi tribu decidieron unirse al Reino Tierra para luchar juntos en contra de la Naci&oacute;n del Fuego, dej&aacute;ndonos a mi hermano y a m&iacute; a cargo del cuidado de nuestra tribu. Algunos creen que el Avatar nunca m&aacute;s volvi&oacute; a nacer entre los N&oacute;mades Aire, y que el ciclo se ha roto. Pero yo no he perdido la esperanza. Todav&iacute;a creo que de alguna manera, el Avatar regresar&aacute; para salvar al mundo.</em>&nbsp;&quot;</p>\r\n\r\n<p>&nbsp;</p>\r\n\n ', '2020-07-12 20:09:42', '2020-07-12 20:09:42'); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL COMMENT 'identificador de usuario', `nombre_usuario` varchar(50) NOT NULL COMMENT 'username', `nombre` varchar(255) NOT NULL, `apellido` varchar(255) NOT NULL, `correo` varchar(50) NOT NULL, `contrasena` varchar(255) NOT NULL, `perfil` varchar(50) NOT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'Hora de creación', `updated_at` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'Hora de actualización' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `user` -- INSERT INTO `user` (`id`, `nombre_usuario`, `nombre`, `apellido`, `correo`, `contrasena`, `perfil`, `created_at`, `updated_at`) VALUES (75, 'Administrador', 'Administrador', 'admin', '<EMAIL>', <PASSWORD>', 'administrador', '2020-06-27 11:25:52', '2020-07-12 19:30:21'), (77, 'ElBrayan', 'Brayan', 'Cuchillo', '<EMAIL>', <PASSWORD>', 'suscriptor', '2020-07-12 20:11:30', '2020-07-12 20:11:30'); -- -- Indexes for dumped tables -- -- -- Indexes for table `categorias` -- ALTER TABLE `categorias` ADD PRIMARY KEY (`id`); -- -- Indexes for table `comentarios` -- ALTER TABLE `comentarios` ADD PRIMARY KEY (`id`), ADD KEY `articulo_comentario` (`articulo`), ADD KEY `comentario_user` (`usuario`); -- -- Indexes for table `contenidos` -- ALTER TABLE `contenidos` ADD PRIMARY KEY (`id`), ADD KEY `foreign_category` (`categoria`), ADD KEY `usuario_articulo` (`usuario_creador`); -- -- Indexes for table `paginas` -- ALTER TABLE `paginas` ADD PRIMARY KEY (`id`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `categorias` -- ALTER TABLE `categorias` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `comentarios` -- ALTER TABLE `comentarios` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Identificador único de cada comentario', AUTO_INCREMENT=38; -- -- AUTO_INCREMENT for table `contenidos` -- ALTER TABLE `contenidos` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Identificador de contenido', AUTO_INCREMENT=52; -- -- AUTO_INCREMENT for table `paginas` -- ALTER TABLE `paginas` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Identificador de las páginas', AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'identificador de usuario', AUTO_INCREMENT=78; -- -- Constraints for dumped tables -- -- -- Constraints for table `comentarios` -- ALTER TABLE `comentarios` ADD CONSTRAINT `articulo_comentario` FOREIGN KEY (`articulo`) REFERENCES `contenidos` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `comentario_user` FOREIGN KEY (`usuario`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints for table `contenidos` -- ALTER TABLE `contenidos` ADD CONSTRAINT `foreign_category` FOREIGN KEY (`categoria`) REFERENCES `categorias` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `usuario_articulo` FOREIGN KEY (`usuario_creador`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
INSERT INTO polls_question (id, question_text, pub_date) VALUES (2, 'how was pyhton code update ', now()); INSERT INTO polls_choice (id, choice_text, votes, question_id) VALUES (4, 'Excellent', 0, 2); INSERT INTO polls_choice (id, choice_text, votes, question_id) VALUES (5, 'Good', 0, 2); INSERT INTO polls_choice (id, choice_text, votes, question_id) VALUES (6, 'Ok', 0, 2);
/* Navicat Premium Data Transfer Source Server : MySQL Source Server Type : MySQL Source Server Version : 50724 Source Host : localhost:3306 Source Schema : baby Target Server Type : MySQL Target Server Version : 50724 File Encoding : 65001 Date: 07/09/2019 14:04:52 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for sys_menu -- ---------------------------- DROP TABLE IF EXISTS `sys_menu`; CREATE TABLE `sys_menu` ( `menu_id` bigint(20) NOT NULL AUTO_INCREMENT, `parent_id` bigint(20) DEFAULT NULL COMMENT '父菜单ID,一级菜单为0', `name` varchar(50) DEFAULT NULL COMMENT '菜单名称', `url` varchar(200) DEFAULT NULL COMMENT '菜单URL', `perms` varchar(500) DEFAULT NULL COMMENT '授权(多个用逗号分隔,如:user:list,user:create)', `type` int(11) DEFAULT NULL COMMENT '类型 0:目录 1:菜单 2:按钮', `icon` varchar(50) DEFAULT NULL COMMENT '菜单图标', `order_num` int(11) DEFAULT NULL COMMENT '排序', PRIMARY KEY (`menu_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8 COMMENT='菜单管理'; SET FOREIGN_KEY_CHECKS = 1;
-- whereA.test -- -- db eval { -- CREATE TABLE t1(a INTEGER PRIMARY KEY, b UNIQUE, c); -- INSERT INTO t1 VALUES(1,2,3); -- INSERT INTO t1 values(2,'hello','world'); -- INSERT INTO t1 VALUES(3,4.53,NULL); -- SELECT * FROM t1 -- } CREATE TABLE t1(a INTEGER PRIMARY KEY, b UNIQUE, c); INSERT INTO t1 VALUES(1,2,3); INSERT INTO t1 values(2,'hello','world'); INSERT INTO t1 VALUES(3,4.53,NULL); SELECT * FROM t1
INSERT INTO department (id, name) VALUES (1, "Sales"); INSERT INTO department (id, name) VALUES (2, "Finance"); INSERT INTO department (id, name) VALUES (3, "Engineering"); INSERT INTO department (id, name) VALUES (4, "Legal"); INSERT INTO role (id, title, salary, department_id) VALUES (1, "Salesperson", 80000, 1); INSERT INTO role (id, title, salary, department_id) VALUES (2, "Lead Engineer", 150000, 3); INSERT INTO role (id, title, salary, department_id) VALUES (3, "Software Engineer", 120000, 3); INSERT INTO role (id, title, salary, department_id) VALUES (4, "Account Manager", 160000, 2); INSERT INTO role (id, title, salary, department_id) VALUES (5, "Accountant", 125000, 2); INSERT INTO role (id, title, salary, department_id) VALUES (6, "Legal Team Lead", 250000, 4); INSERT INTO role (id, title, salary, department_id) VALUES (7, "Lawyer", 190000, 4); INSERT INTO employee (id, first_name, last_name, role_id) VALUES (1, "John", "Doe", 1); INSERT INTO employee (id, first_name, last_name, role_id, manager_id) VALUES (2, "Mike", "Chan", 2, 1); INSERT INTO employee (id, first_name, last_name, role_id) VALUES (3, "Ash", "Rod", 3); INSERT INTO employee (id, first_name, last_name, role_id, manager_id) VALUES (4, "Kevin", "Tupik", 4, 3); INSERT INTO employee (id, first_name, last_name, role_id) VALUES (5, "kunal", "Singh", 5); INSERT INTO employee (id, first_name, last_name, role_id, manager_id) VALUES (6, "Malia", "Brown", 6, 5); INSERT INTO employee (id, first_name, last_name, role_id) VALUES (7, "Sarah", "Lourd", 7); INSERT INTO employee (id, first_name, last_name, role_id, manager_id) VALUES (8, "Tom", "Allen", 8, 7);
<reponame>zettadb/kunlun_scripts<filename>smoke/smokeTest.sql -- Copyright (c) 2019 ZettaDB inc. All rights reserved. -- This source code is licensed under Apache 2.0 License, -- combined with Common Clause Condition 1.0, as detailed in the NOTICE file. set client_min_messages to 'warning'; drop table if exists t1; reset client_min_messages; create table t1(id integer primary key, info text, wt integer); insert into t1(id,info,wt) values(1, 'record1', 1); insert into t1(id,info,wt) values(2, 'record2', 2); update t1 set wt = 12 where id = 1; select * from t1; delete from t1 where id = 1; select * from t1; drop table t1;
CREATE SCHEMA `employees` ; CREATE DATABASE employees; CREATE USER 'user'@'localhost' IDENTIFIED by 'user123'; GRANT ALL on employees.employee TO 'user'@'localhost'; use employees; CREATE TABLE employee (id INT UNSIGNED NOT NULL, PRIMARY KEY (id), name VARCHAR(30) NOT NULL); INSERT into employee(id, name) VALUES (1, 'John'), (2, 'Denise'), (3, 'Phoebe'), (4, 'Adam');
<gh_stars>10-100 -- -- PostgreSQL database dump -- -- Dumped from database version 10.4 -- Dumped by pg_dump version 10.4 SET statement_timeout = 0; SET lock_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; ALTER TABLE IF EXISTS ONLY public.history_trades DROP CONSTRAINT IF EXISTS history_trades_counter_asset_id_fkey; ALTER TABLE IF EXISTS ONLY public.history_trades DROP CONSTRAINT IF EXISTS history_trades_counter_account_id_fkey; ALTER TABLE IF EXISTS ONLY public.history_trades DROP CONSTRAINT IF EXISTS history_trades_base_asset_id_fkey; ALTER TABLE IF EXISTS ONLY public.history_trades DROP CONSTRAINT IF EXISTS history_trades_base_account_id_fkey; ALTER TABLE IF EXISTS ONLY public.asset_stats DROP CONSTRAINT IF EXISTS asset_stats_id_fkey; DROP INDEX IF EXISTS public.trade_effects_by_order_book; DROP INDEX IF EXISTS public.index_history_transactions_on_id; DROP INDEX IF EXISTS public.index_history_operations_on_type; DROP INDEX IF EXISTS public.index_history_operations_on_transaction_id; DROP INDEX IF EXISTS public.index_history_operations_on_id; DROP INDEX IF EXISTS public.index_history_ledgers_on_sequence; DROP INDEX IF EXISTS public.index_history_ledgers_on_previous_ledger_hash; DROP INDEX IF EXISTS public.index_history_ledgers_on_ledger_hash; DROP INDEX IF EXISTS public.index_history_ledgers_on_importer_version; DROP INDEX IF EXISTS public.index_history_ledgers_on_id; DROP INDEX IF EXISTS public.index_history_ledgers_on_closed_at; DROP INDEX IF EXISTS public.index_history_effects_on_type; DROP INDEX IF EXISTS public.index_history_accounts_on_id; DROP INDEX IF EXISTS public.index_history_accounts_on_address; DROP INDEX IF EXISTS public.htrd_time_lookup; DROP INDEX IF EXISTS public.htrd_pid; DROP INDEX IF EXISTS public.htrd_pair_time_lookup; DROP INDEX IF EXISTS public.htrd_counter_lookup; DROP INDEX IF EXISTS public.htrd_by_offer; DROP INDEX IF EXISTS public.htrd_by_counter_account; DROP INDEX IF EXISTS public.htrd_by_base_account; DROP INDEX IF EXISTS public.htp_by_htid; DROP INDEX IF EXISTS public.hs_transaction_by_id; DROP INDEX IF EXISTS public.hs_ledger_by_id; DROP INDEX IF EXISTS public.hop_by_hoid; DROP INDEX IF EXISTS public.hist_tx_p_id; DROP INDEX IF EXISTS public.hist_op_p_id; DROP INDEX IF EXISTS public.hist_e_id; DROP INDEX IF EXISTS public.hist_e_by_order; DROP INDEX IF EXISTS public.by_ledger; DROP INDEX IF EXISTS public.by_hash; DROP INDEX IF EXISTS public.by_account; DROP INDEX IF EXISTS public.asset_by_issuer; DROP INDEX IF EXISTS public.asset_by_code; ALTER TABLE IF EXISTS ONLY public.history_transaction_participants DROP CONSTRAINT IF EXISTS history_transaction_participants_pkey; ALTER TABLE IF EXISTS ONLY public.history_operation_participants DROP CONSTRAINT IF EXISTS history_operation_participants_pkey; ALTER TABLE IF EXISTS ONLY public.history_assets DROP CONSTRAINT IF EXISTS history_assets_pkey; ALTER TABLE IF EXISTS ONLY public.history_assets DROP CONSTRAINT IF EXISTS history_assets_asset_code_asset_type_asset_issuer_key; ALTER TABLE IF EXISTS ONLY public.gorp_migrations DROP CONSTRAINT IF EXISTS gorp_migrations_pkey; ALTER TABLE IF EXISTS ONLY public.asset_stats DROP CONSTRAINT IF EXISTS asset_stats_pkey; ALTER TABLE IF EXISTS public.history_transaction_participants ALTER COLUMN id DROP DEFAULT; ALTER TABLE IF EXISTS public.history_operation_participants ALTER COLUMN id DROP DEFAULT; ALTER TABLE IF EXISTS public.history_assets ALTER COLUMN id DROP DEFAULT; DROP TABLE IF EXISTS public.history_transactions; DROP SEQUENCE IF EXISTS public.history_transaction_participants_id_seq; DROP TABLE IF EXISTS public.history_transaction_participants; DROP TABLE IF EXISTS public.history_trades; DROP TABLE IF EXISTS public.history_operations; DROP SEQUENCE IF EXISTS public.history_operation_participants_id_seq; DROP TABLE IF EXISTS public.history_operation_participants; DROP TABLE IF EXISTS public.history_ledgers; DROP TABLE IF EXISTS public.history_effects; DROP SEQUENCE IF EXISTS public.history_assets_id_seq; DROP TABLE IF EXISTS public.history_assets; DROP TABLE IF EXISTS public.history_accounts; DROP SEQUENCE IF EXISTS public.history_accounts_id_seq; DROP TABLE IF EXISTS public.gorp_migrations; DROP TABLE IF EXISTS public.asset_stats; DROP AGGREGATE IF EXISTS public.min_price(numeric[]); DROP AGGREGATE IF EXISTS public.max_price(numeric[]); DROP AGGREGATE IF EXISTS public.last(anyelement); DROP AGGREGATE IF EXISTS public.first(anyelement); DROP FUNCTION IF EXISTS public.min_price_agg(numeric[], numeric[]); DROP FUNCTION IF EXISTS public.max_price_agg(numeric[], numeric[]); DROP FUNCTION IF EXISTS public.last_agg(anyelement, anyelement); DROP FUNCTION IF EXISTS public.first_agg(anyelement, anyelement); DROP EXTENSION IF EXISTS plpgsql; DROP SCHEMA IF EXISTS public; -- -- Name: public; Type: SCHEMA; Schema: -; Owner: - -- CREATE SCHEMA public; -- -- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: - -- COMMENT ON SCHEMA public IS 'standard public schema'; -- -- 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'; -- -- Name: first_agg(anyelement, anyelement); Type: FUNCTION; Schema: public; Owner: - -- CREATE FUNCTION public.first_agg(anyelement, anyelement) RETURNS anyelement LANGUAGE sql IMMUTABLE STRICT AS $_$ SELECT $1 $_$; -- -- Name: last_agg(anyelement, anyelement); Type: FUNCTION; Schema: public; Owner: - -- CREATE FUNCTION public.last_agg(anyelement, anyelement) RETURNS anyelement LANGUAGE sql IMMUTABLE STRICT AS $_$ SELECT $2 $_$; -- -- Name: max_price_agg(numeric[], numeric[]); Type: FUNCTION; Schema: public; Owner: - -- CREATE FUNCTION public.max_price_agg(numeric[], numeric[]) RETURNS numeric[] LANGUAGE sql IMMUTABLE STRICT AS $_$ SELECT ( CASE WHEN $1[1]/$1[2]>$2[1]/$2[2] THEN $1 ELSE $2 END) $_$; -- -- Name: min_price_agg(numeric[], numeric[]); Type: FUNCTION; Schema: public; Owner: - -- CREATE FUNCTION public.min_price_agg(numeric[], numeric[]) RETURNS numeric[] LANGUAGE sql IMMUTABLE STRICT AS $_$ SELECT ( CASE WHEN $1[1]/$1[2]<$2[1]/$2[2] THEN $1 ELSE $2 END) $_$; -- -- Name: first(anyelement); Type: AGGREGATE; Schema: public; Owner: - -- CREATE AGGREGATE public.first(anyelement) ( SFUNC = public.first_agg, STYPE = anyelement ); -- -- Name: last(anyelement); Type: AGGREGATE; Schema: public; Owner: - -- CREATE AGGREGATE public.last(anyelement) ( SFUNC = public.last_agg, STYPE = anyelement ); -- -- Name: max_price(numeric[]); Type: AGGREGATE; Schema: public; Owner: - -- CREATE AGGREGATE public.max_price(numeric[]) ( SFUNC = public.max_price_agg, STYPE = numeric[] ); -- -- Name: min_price(numeric[]); Type: AGGREGATE; Schema: public; Owner: - -- CREATE AGGREGATE public.min_price(numeric[]) ( SFUNC = public.min_price_agg, STYPE = numeric[] ); SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: asset_stats; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.asset_stats ( id bigint NOT NULL, amount character varying NOT NULL, num_accounts integer NOT NULL, flags smallint NOT NULL, toml character varying(64) NOT NULL ); -- -- Name: gorp_migrations; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.gorp_migrations ( id text NOT NULL, applied_at timestamp with time zone ); -- -- Name: history_accounts_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.history_accounts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: history_accounts; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.history_accounts ( id bigint DEFAULT nextval('public.history_accounts_id_seq'::regclass) NOT NULL, address character varying(64) ); -- -- Name: history_assets; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.history_assets ( id integer NOT NULL, asset_type character varying(64) NOT NULL, asset_code character varying(12) NOT NULL, asset_issuer character varying(56) NOT NULL ); -- -- Name: history_assets_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.history_assets_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: history_assets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.history_assets_id_seq OWNED BY public.history_assets.id; -- -- Name: history_effects; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.history_effects ( history_account_id bigint NOT NULL, history_operation_id bigint NOT NULL, "order" integer NOT NULL, type integer NOT NULL, details jsonb ); -- -- Name: history_ledgers; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.history_ledgers ( sequence integer NOT NULL, ledger_hash character varying(64) NOT NULL, previous_ledger_hash character varying(64), transaction_count integer DEFAULT 0 NOT NULL, operation_count integer DEFAULT 0 NOT NULL, closed_at timestamp without time zone NOT NULL, created_at timestamp without time zone, updated_at timestamp without time zone, id bigint, importer_version integer DEFAULT 1 NOT NULL, total_coins bigint NOT NULL, fee_pool bigint NOT NULL, base_fee integer NOT NULL, base_reserve integer NOT NULL, max_tx_set_size integer NOT NULL, protocol_version integer DEFAULT 0 NOT NULL, ledger_header text ); -- -- Name: history_operation_participants; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.history_operation_participants ( id integer NOT NULL, history_operation_id bigint NOT NULL, history_account_id bigint NOT NULL ); -- -- Name: history_operation_participants_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.history_operation_participants_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: history_operation_participants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.history_operation_participants_id_seq OWNED BY public.history_operation_participants.id; -- -- Name: history_operations; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.history_operations ( id bigint NOT NULL, transaction_id bigint NOT NULL, application_order integer NOT NULL, type integer NOT NULL, details jsonb, source_account character varying(64) DEFAULT ''::character varying NOT NULL ); -- -- Name: history_trades; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.history_trades ( history_operation_id bigint NOT NULL, "order" integer NOT NULL, ledger_closed_at timestamp without time zone NOT NULL, offer_id bigint NOT NULL, base_account_id bigint NOT NULL, base_asset_id bigint NOT NULL, base_amount bigint NOT NULL, counter_account_id bigint NOT NULL, counter_asset_id bigint NOT NULL, counter_amount bigint NOT NULL, base_is_seller boolean, price_n bigint, price_d bigint, CONSTRAINT history_trades_base_amount_check CHECK ((base_amount > 0)), CONSTRAINT history_trades_check CHECK ((base_asset_id < counter_asset_id)), CONSTRAINT history_trades_counter_amount_check CHECK ((counter_amount > 0)) ); -- -- Name: history_transaction_participants; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.history_transaction_participants ( id integer NOT NULL, history_transaction_id bigint NOT NULL, history_account_id bigint NOT NULL ); -- -- Name: history_transaction_participants_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.history_transaction_participants_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: history_transaction_participants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.history_transaction_participants_id_seq OWNED BY public.history_transaction_participants.id; -- -- Name: history_transactions; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.history_transactions ( transaction_hash character varying(64) NOT NULL, ledger_sequence integer NOT NULL, application_order integer NOT NULL, account character varying(64) NOT NULL, account_sequence bigint NOT NULL, fee_paid integer NOT NULL, operation_count integer NOT NULL, created_at timestamp without time zone, updated_at timestamp without time zone, id bigint, tx_envelope text NOT NULL, tx_result text NOT NULL, tx_meta text NOT NULL, tx_fee_meta text NOT NULL, signatures character varying(96)[] DEFAULT '{}'::character varying[] NOT NULL, memo_type character varying DEFAULT 'none'::character varying NOT NULL, memo character varying, time_bounds int8range ); -- -- Name: history_assets id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public.history_assets ALTER COLUMN id SET DEFAULT nextval('public.history_assets_id_seq'::regclass); -- -- Name: history_operation_participants id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public.history_operation_participants ALTER COLUMN id SET DEFAULT nextval('public.history_operation_participants_id_seq'::regclass); -- -- Name: history_transaction_participants id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public.history_transaction_participants ALTER COLUMN id SET DEFAULT nextval('public.history_transaction_participants_id_seq'::regclass); -- -- Data for Name: asset_stats; Type: TABLE DATA; Schema: public; Owner: - -- INSERT INTO public.asset_stats VALUES (1, '100000000000', 2, 0, ''); INSERT INTO public.asset_stats VALUES (2, '100000000000', 2, 0, ''); -- -- Data for Name: gorp_migrations; Type: TABLE DATA; Schema: public; Owner: - -- INSERT INTO public.gorp_migrations VALUES ('1_initial_schema.sql', '2018-04-23 12:49:41.331534-08'); INSERT INTO public.gorp_migrations VALUES ('2_index_participants_by_toid.sql', '2018-04-23 12:49:41.346024-08'); INSERT INTO public.gorp_migrations VALUES ('3_use_sequence_in_history_accounts.sql', '2018-04-23 12:49:41.351718-08'); INSERT INTO public.gorp_migrations VALUES ('4_add_protocol_version.sql', '2018-04-23 12:49:41.388382-08'); INSERT INTO public.gorp_migrations VALUES ('5_create_trades_table.sql', '2018-04-23 12:49:41.412591-08'); INSERT INTO public.gorp_migrations VALUES ('6_create_assets_table.sql', '2018-04-23 12:49:41.430454-08'); INSERT INTO public.gorp_migrations VALUES ('7_modify_trades_table.sql', '2018-04-23 12:49:41.489276-08'); INSERT INTO public.gorp_migrations VALUES ('8_add_aggregators.sql', '2018-04-23 12:49:41.495208-08'); INSERT INTO public.gorp_migrations VALUES ('8_create_asset_stats_table.sql', '2018-04-23 12:49:41.508549-08'); INSERT INTO public.gorp_migrations VALUES ('9_add_header_xdr.sql', '2018-04-23 12:49:41.516755-08'); INSERT INTO public.gorp_migrations VALUES ('10_add_trades_price.sql', '2018-04-23 12:49:41.522753-08'); INSERT INTO public.gorp_migrations VALUES ('11_add_trades_account_index.sql', '2018-04-23 12:49:41.533861-08'); INSERT INTO public.gorp_migrations VALUES ('12_asset_stats_amount_string.sql', '2018-05-09 09:14:41.628472-08'); -- -- Data for Name: history_accounts; Type: TABLE DATA; Schema: public; Owner: - -- INSERT INTO public.history_accounts VALUES (1, '<KEY>'); INSERT INTO public.history_accounts VALUES (2, '<KEY>'); INSERT INTO public.history_accounts VALUES (3, '<KEY>'); INSERT INTO public.history_accounts VALUES (4, '<KEY>'); -- -- Data for Name: history_assets; Type: TABLE DATA; Schema: public; Owner: - -- INSERT INTO public.history_assets VALUES (1, 'credit_alphanum4', 'USD', 'GC23QF2HUE52AMXUFUH3AYJAXXGXXV2VHXYYR6EYXETPKDXZSAW67XO4'); INSERT INTO public.history_assets VALUES (2, 'credit_alphanum4', 'BTC', 'GC23QF2HUE52AM<KEY>'); -- -- Data for Name: history_effects; Type: TABLE DATA; Schema: public; Owner: - -- INSERT INTO public.history_effects VALUES (1, 17179873281, 1, 2, '{"amount": "5000.0000000", "asset_code": "USD", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}'); INSERT INTO public.history_effects VALUES (2, 17179873281, 2, 3, '{"amount": "5000.0000000", "asset_code": "USD", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}'); INSERT INTO public.history_effects VALUES (3, 17179877377, 1, 2, '{"amount": "5000.0000000", "asset_code": "USD", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}'); INSERT INTO public.history_effects VALUES (2, 17179877377, 2, 3, '{"amount": "5000.0000000", "asset_code": "USD", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}'); INSERT INTO public.history_effects VALUES (1, 17179881473, 1, 2, '{"amount": "5000.0000000", "asset_code": "BTC", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}'); INSERT INTO public.history_effects VALUES (2, 17179881473, 2, 3, '{"amount": "5000.0000000", "asset_code": "BTC", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}'); INSERT INTO public.history_effects VALUES (3, 17179885569, 1, 2, '{"amount": "5000.0000000", "asset_code": "BTC", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}'); INSERT INTO public.history_effects VALUES (2, 17179885569, 2, 3, '{"amount": "5000.0000000", "asset_code": "BTC", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}'); INSERT INTO public.history_effects VALUES (3, 12884905985, 1, 20, '{"limit": "922337203685.4775807", "asset_code": "USD", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}'); INSERT INTO public.history_effects VALUES (1, 12884910081, 1, 20, '{"limit": "922337203685.4775807", "asset_code": "USD", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}'); INSERT INTO public.history_effects VALUES (3, 12884914177, 1, 20, '{"limit": "922337203685.4775807", "asset_code": "BTC", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}'); INSERT INTO public.history_effects VALUES (1, 12884918273, 1, 20, '{"limit": "922337203685.4775807", "asset_code": "BTC", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}'); INSERT INTO public.history_effects VALUES (2, 8589938689, 1, 0, '{"starting_balance": "1000.0000000"}'); INSERT INTO public.history_effects VALUES (4, 8589938689, 2, 3, '{"amount": "1000.0000000", "asset_type": "native"}'); INSERT INTO public.history_effects VALUES (2, 8589938689, 3, 10, '{"weight": 1, "public_key": "<KEY>"}'); INSERT INTO public.history_effects VALUES (1, 8589942785, 1, 0, '{"starting_balance": "6000.0000000"}'); INSERT INTO public.history_effects VALUES (4, 8589942785, 2, 3, '{"amount": "6000.0000000", "asset_type": "native"}'); INSERT INTO public.history_effects VALUES (1, 8589942785, 3, 10, '{"weight": 1, "public_key": "<KEY>"}'); INSERT INTO public.history_effects VALUES (3, 8589946881, 1, 0, '{"starting_balance": "6000.0000000"}'); INSERT INTO public.history_effects VALUES (4, 8589946881, 2, 3, '{"amount": "6000.0000000", "asset_type": "native"}'); INSERT INTO public.history_effects VALUES (3, 8589946881, 3, 10, '{"weight": 1, "public_key": "<KEY>"}'); -- -- Data for Name: history_ledgers; Type: TABLE DATA; Schema: public; Owner: - -- INSERT INTO public.history_ledgers VALUES (5, '33c2d28532a813f164c9429c759f8acced97090ddd0aec597bf5179071619614', '9365baeb9e760810ddfeb6a6c1ad31a38c381ff561fbc978c2b5d4d501fc0a34', 33, 33, '2018-07-31 20:17:06', '2018-07-31 20:17:05.770517', '2018-07-31 20:17:05.770517', 21474836480, 14, 1000000000000000000, 4400, 100, 100000000, 10000, 10, '<KEY>AAA<KEY>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); INSERT INTO public.history_ledgers VALUES (4, '9365baeb9e760810ddfeb6a6c1ad31a38c381ff561fbc978c2b5d4d501fc0a34', '3b815caca35c44c30d46f5fe999f3b8c439d3dcca234bbd13c86093d97176351', 4, 4, '2018-07-31 20:17:05', '2018-07-31 20:17:05.785766', '2018-07-31 20:17:05.785766', 17179869184, 14, 1000000000000000000, 1100, 100, 100000000, 10000, 10, '<KEY>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); INSERT INTO public.history_ledgers VALUES (3, '3b815caca35c44c30d46f5fe999f3b8c439d3dcca234bbd13c86093d97176351', '1d070cc43fdafb07080861621ee9eeafa07bad7de0030d95bb5b235468024aca', 4, 4, '2018-07-31 20:17:04', '2018-07-31 20:17:05.792351', '2018-07-31 20:17:05.792351', 12884901888, 14, 1000000000000000000, 700, 100, 100000000, 10000, 10, 'AAAACh0HDMQ/2vsHCAhhYh7p7q+ge6194AMNlbtbI1RoAkrKi0EvjHy+7IZWAGpe0GdaFuJLj+Wobgg5pt+g1pBSH<KEY>DDwAAAAAAAAAAAuv3nXQPv7pfqeZbYXHSM8xqoQfhhyLRFImejAhp7RIjYA+uMpJAc4DTMGkjvKuNtYUi2zG9mZ38HjDs4t8UeNQAAAAMN4Lazp2QAAAAAAAAAAAK8AAAAAAAAAAAAAAAAAAAAZAX14QAAACcQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); INSERT INTO public.history_ledgers VALUES (2, '1d070cc43fdafb07080861621ee9eeafa07bad7de0030d95bb5b235468024aca', '63d98f536ee68d1b27b5b89f23af5311b7569a24faf1403ad0b52b633b07be99', 3, 3, '2018-07-31 20:17:03', '2018-07-31 20:17:05.798235', '2018-07-31 20:17:05.798235', 8589934592, 14, 1000000000000000000, 300, 100, 100000000, 10000, 10, 'AAAACmPZj1Nu5o0bJ7W4nyOvUxG3Vpok+vFAOtC1K2M7B76ZAUwrYbwky130abgiR+8z3pixvjYuXxWRQO3fiLTCQxsAAAAAW2DDvwAAAAIAAAAIAAAAAQAAAAoAAAAIAAAAAwAAJxAAAAAA1w9fW1+aY0dzStxnssDdI7Fc8ROLyUF72+R6hYY7OB5aQPzxCAjaB7vFIeXH1zIF7iwM/5vLxABGGx8amucxNgAAAAIN4Lazp2QAAAAAAAAAAAEsAAAAAAAAAAAAAAAAAAAAZAX14QAAACcQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); INSERT INTO public.history_ledgers VALUES (1, '63d98f536ee68d1b27b5b89f23af5311b7569a24faf1403ad0b52b633b07be99', NULL, 0, 0, '1970-01-01 00:00:00', '2018-07-31 20:17:05.80368', '2018-07-31 20:17:05.80368', 4294967296, 14, 1000000000000000000, 0, 100, 100000000, 100, 0, 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABXKi4y/ySKB7DnD9H20xjB+s0gtswIwz1XdSWYaBJaFgAAAAEN4Lazp2QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZAX14QAAAABkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); -- -- Data for Name: history_operation_participants; Type: TABLE DATA; Schema: public; Owner: - -- INSERT INTO public.history_operation_participants VALUES (1, 21474840577, 1); INSERT INTO public.history_operation_participants VALUES (2, 21474844673, 1); INSERT INTO public.history_operation_participants VALUES (3, 21474848769, 1); INSERT INTO public.history_operation_participants VALUES (4, 21474852865, 1); INSERT INTO public.history_operation_participants VALUES (5, 21474856961, 1); INSERT INTO public.history_operation_participants VALUES (6, 21474861057, 1); INSERT INTO public.history_operation_participants VALUES (7, 21474865153, 1); INSERT INTO public.history_operation_participants VALUES (8, 21474869249, 1); INSERT INTO public.history_operation_participants VALUES (9, 21474873345, 1); INSERT INTO public.history_operation_participants VALUES (10, 21474877441, 1); INSERT INTO public.history_operation_participants VALUES (11, 21474881537, 1); INSERT INTO public.history_operation_participants VALUES (12, 21474885633, 1); INSERT INTO public.history_operation_participants VALUES (13, 21474889729, 1); INSERT INTO public.history_operation_participants VALUES (14, 21474893825, 1); INSERT INTO public.history_operation_participants VALUES (15, 21474897921, 1); INSERT INTO public.history_operation_participants VALUES (16, 21474902017, 1); INSERT INTO public.history_operation_participants VALUES (17, 21474906113, 1); INSERT INTO public.history_operation_participants VALUES (18, 21474910209, 1); INSERT INTO public.history_operation_participants VALUES (19, 21474914305, 1); INSERT INTO public.history_operation_participants VALUES (20, 21474918401, 1); INSERT INTO public.history_operation_participants VALUES (21, 21474922497, 1); INSERT INTO public.history_operation_participants VALUES (22, 21474926593, 1); INSERT INTO public.history_operation_participants VALUES (23, 21474930689, 1); INSERT INTO public.history_operation_participants VALUES (24, 21474934785, 1); INSERT INTO public.history_operation_participants VALUES (25, 21474938881, 1); INSERT INTO public.history_operation_participants VALUES (26, 21474942977, 1); INSERT INTO public.history_operation_participants VALUES (27, 21474947073, 1); INSERT INTO public.history_operation_participants VALUES (28, 21474951169, 1); INSERT INTO public.history_operation_participants VALUES (29, 21474955265, 1); INSERT INTO public.history_operation_participants VALUES (30, 21474959361, 1); INSERT INTO public.history_operation_participants VALUES (31, 21474963457, 1); INSERT INTO public.history_operation_participants VALUES (32, 21474967553, 1); INSERT INTO public.history_operation_participants VALUES (33, 21474971649, 1); INSERT INTO public.history_operation_participants VALUES (34, 17179873281, 1); INSERT INTO public.history_operation_participants VALUES (35, 17179873281, 2); INSERT INTO public.history_operation_participants VALUES (36, 17179877377, 2); INSERT INTO public.history_operation_participants VALUES (37, 17179877377, 3); INSERT INTO public.history_operation_participants VALUES (38, 17179881473, 2); INSERT INTO public.history_operation_participants VALUES (39, 17179881473, 1); INSERT INTO public.history_operation_participants VALUES (40, 17179885569, 2); INSERT INTO public.history_operation_participants VALUES (41, 17179885569, 3); INSERT INTO public.history_operation_participants VALUES (42, 12884905985, 3); INSERT INTO public.history_operation_participants VALUES (43, 12884910081, 1); INSERT INTO public.history_operation_participants VALUES (44, 12884914177, 3); INSERT INTO public.history_operation_participants VALUES (45, 12884918273, 1); INSERT INTO public.history_operation_participants VALUES (46, 8589938689, 2); INSERT INTO public.history_operation_participants VALUES (47, 8589938689, 4); INSERT INTO public.history_operation_participants VALUES (48, 8589942785, 4); INSERT INTO public.history_operation_participants VALUES (49, 8589942785, 1); INSERT INTO public.history_operation_participants VALUES (50, 8589946881, 4); INSERT INTO public.history_operation_participants VALUES (51, 8589946881, 3); -- -- Data for Name: history_operations; Type: TABLE DATA; Schema: public; Owner: - -- INSERT INTO public.history_operations VALUES (21474840577, 21474840576, 1, 3, '{"price": "0.1000000", "amount": "10000.0000000", "price_r": {"d": 10, "n": 1}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474844673, 21474844672, 1, 3, '{"price": "0.1111111", "amount": "9000.0000000", "price_r": {"d": 9, "n": 1}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474848769, 21474848768, 1, 3, '{"price": "0.1250000", "amount": "8000.0000000", "price_r": {"d": 8, "n": 1}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474852865, 21474852864, 1, 3, '{"price": "0.1428571", "amount": "7000.0000000", "price_r": {"d": 7, "n": 1}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474856961, 21474856960, 1, 3, '{"price": "0.1666667", "amount": "6000.0000000", "price_r": {"d": 6, "n": 1}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474861057, 21474861056, 1, 3, '{"price": "0.2000000", "amount": "5000.0000000", "price_r": {"d": 5, "n": 1}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474865153, 21474865152, 1, 3, '{"price": "0.2500000", "amount": "4000.0000000", "price_r": {"d": 4, "n": 1}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474869249, 21474869248, 1, 3, '{"price": "0.3333333", "amount": "3000.0000000", "price_r": {"d": 3, "n": 1}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474873345, 21474873344, 1, 3, '{"price": "0.5000000", "amount": "2000.0000000", "price_r": {"d": 2, "n": 1}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474877441, 21474877440, 1, 3, '{"price": "1.0000000", "amount": "1000.0000000", "price_r": {"d": 1, "n": 1}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474881537, 21474881536, 1, 3, '{"price": "10.0000000", "amount": "100.0000000", "price_r": {"d": 1, "n": 10}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474885633, 21474885632, 1, 3, '{"price": "0.0990099", "amount": "10100.0000000", "price_r": {"d": 101, "n": 10}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474889729, 21474889728, 1, 3, '{"price": "0.1098901", "amount": "9100.0000000", "price_r": {"d": 91, "n": 10}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474893825, 21474893824, 1, 3, '{"price": "0.1234568", "amount": "8100.0000000", "price_r": {"d": 81, "n": 10}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474897921, 21474897920, 1, 3, '{"price": "0.1408451", "amount": "7100.0000000", "price_r": {"d": 71, "n": 10}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474902017, 21474902016, 1, 3, '{"price": "0.1639344", "amount": "6100.0000000", "price_r": {"d": 61, "n": 10}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474906113, 21474906112, 1, 3, '{"price": "0.1960784", "amount": "5100.0000000", "price_r": {"d": 51, "n": 10}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474910209, 21474910208, 1, 3, '{"price": "0.2439024", "amount": "4100.0000000", "price_r": {"d": 41, "n": 10}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474914305, 21474914304, 1, 3, '{"price": "0.3225806", "amount": "3100.0000000", "price_r": {"d": 310000028, "n": 100000009}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474918401, 21474918400, 1, 3, '{"price": "0.4761905", "amount": "2100.0000000", "price_r": {"d": 21, "n": 10}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474922497, 21474922496, 1, 3, '{"price": "0.9090909", "amount": "1100.0000000", "price_r": {"d": 11, "n": 10}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474926593, 21474926592, 1, 3, '{"price": "5.0000000", "amount": "200.0000000", "price_r": {"d": 1, "n": 5}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474930689, 21474930688, 1, 3, '{"price": "0.0980392", "amount": "10200.0000000", "price_r": {"d": 51, "n": 5}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474934785, 21474934784, 1, 3, '{"price": "0.1086957", "amount": "9200.0000000", "price_r": {"d": 46, "n": 5}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474938881, 21474938880, 1, 3, '{"price": "0.1219512", "amount": "8200.0000000", "price_r": {"d": 41, "n": 5}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474942977, 21474942976, 1, 3, '{"price": "0.1388889", "amount": "7200.0000000", "price_r": {"d": 36, "n": 5}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474947073, 21474947072, 1, 3, '{"price": "0.1612903", "amount": "6200.0000000", "price_r": {"d": 31, "n": 5}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474951169, 21474951168, 1, 3, '{"price": "0.1923077", "amount": "5200.0000000", "price_r": {"d": 26, "n": 5}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474955265, 21474955264, 1, 3, '{"price": "0.2380952", "amount": "4200.0000000", "price_r": {"d": 21, "n": 5}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474959361, 21474959360, 1, 3, '{"price": "0.3125000", "amount": "3200.0000000", "price_r": {"d": 16, "n": 5}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474963457, 21474963456, 1, 3, '{"price": "0.4545455", "amount": "2200.0000000", "price_r": {"d": 11, "n": 5}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474967553, 21474967552, 1, 3, '{"price": "0.8333333", "amount": "1200.0000000", "price_r": {"d": 6, "n": 5}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (21474971649, 21474971648, 1, 3, '{"price": "3.3333333", "amount": "300.0000000", "price_r": {"d": 3, "n": 10}, "offer_id": 0, "buying_asset_code": "USD", "buying_asset_type": "credit_alphanum4", "selling_asset_type": "native", "buying_asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (17179873281, 17179873280, 1, 1, '{"to": "GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU", "from": "GC<KEY>DX<KEY>", "amount": "5000.0000000", "asset_code": "USD", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}', 'GC23QF2HUE52AMX<KEY>'); INSERT INTO public.history_operations VALUES (17179877377, 17179877376, 1, 1, '{"to": "GBXGQJWVLWOYHFLVTKWV5FGHA3LNYY2JQKM7OAJAUEQFU6LPCSEFVXON", "from": "GC23QF2HUE52AMXUFUH3AYJAXXGXXV2VHXYYR6EYXETPKDXZSAW67XO4", "amount": "5000.0000000", "asset_code": "USD", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}', 'GC23QF2HUE52AMXUFUH3AYJAXXGXXV2VHXYYR6EYXETPKDXZSAW67XO4'); INSERT INTO public.history_operations VALUES (17179881473, 17179881472, 1, 1, '{"to": "GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU", "from": "GC23QF2HUE52AMXUFUH3AYJAXXGXXV2VHXYYR6EYXETPKDXZSAW67XO4", "amount": "5000.0000000", "asset_code": "BTC", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}', 'GC23QF2HUE52AMXUFUH3AYJAXXGXXV2VHXYYR6EYXETPKDXZSAW67XO4'); INSERT INTO public.history_operations VALUES (17179885569, 17179885568, 1, 1, '{"to": "GBXGQJW<KEY>", "from": "<KEY>", "amount": "5000.0000000", "asset_code": "BTC", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}', 'GC23QF2HUE52AMXUFUH3AYJAXXGXXV2VHXYYR6EYXETPKDXZSAW67XO4'); INSERT INTO public.history_operations VALUES (12884905985, 12884905984, 1, 6, '{"limit": "922337203685.4775807", "trustee": "<KEY>", "trustor": "<KEY>", "asset_code": "USD", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}', 'GBXGQJWVLWOYHFLVTKWV5FGHA3LNYY2JQKM7OAJAUEQFU6LPCSEFVXON'); INSERT INTO public.history_operations VALUES (12884910081, 12884910080, 1, 6, '{"limit": "922337203685.4775807", "trustee": "<KEY>", "trustor": "GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU", "asset_code": "USD", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (12884914177, 12884914176, 1, 6, '{"limit": "922337203685.4775807", "trustee": "<KEY>", "trustor": "GBXGQJWVLWOYHFLVTKWV5FGHA3LNYY2JQKM7OAJA<KEY>", "asset_code": "BTC", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}', 'GBXGQJWVLWOYHFLVTKWV5FGHA3LNYY2JQKM7OAJAUEQFU6LPCSEFVXON'); INSERT INTO public.history_operations VALUES (12884918273, 12884918272, 1, 6, '{"limit": "922337203685.4775807", "trustee": "<KEY>", "trustor": "<KEY>", "asset_code": "BTC", "asset_type": "credit_alphanum4", "asset_issuer": "<KEY>"}', 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU'); INSERT INTO public.history_operations VALUES (8589938689, 8589938688, 1, 0, '{"funder": "GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOAS<KEY>", "account": "<KEY>", "starting_balance": "1000.0000000"}', 'GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H'); INSERT INTO public.history_operations VALUES (8589942785, 8589942784, 1, 0, '{"funder": "GB<KEY>", "account": "<KEY>", "starting_balance": "6000.0000000"}', 'GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H'); INSERT INTO public.history_operations VALUES (8589946881, 8589946880, 1, 0, '{"funder": "GB<KEY>", "account": "<KEY>", "starting_balance": "6000.0000000"}', 'GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H'); -- -- Data for Name: history_trades; Type: TABLE DATA; Schema: public; Owner: - -- -- -- Data for Name: history_transaction_participants; Type: TABLE DATA; Schema: public; Owner: - -- INSERT INTO public.history_transaction_participants VALUES (1, 21474840576, 1); INSERT INTO public.history_transaction_participants VALUES (2, 21474844672, 1); INSERT INTO public.history_transaction_participants VALUES (3, 21474848768, 1); INSERT INTO public.history_transaction_participants VALUES (4, 21474852864, 1); INSERT INTO public.history_transaction_participants VALUES (5, 21474856960, 1); INSERT INTO public.history_transaction_participants VALUES (6, 21474861056, 1); INSERT INTO public.history_transaction_participants VALUES (7, 21474865152, 1); INSERT INTO public.history_transaction_participants VALUES (8, 21474869248, 1); INSERT INTO public.history_transaction_participants VALUES (9, 21474873344, 1); INSERT INTO public.history_transaction_participants VALUES (10, 21474877440, 1); INSERT INTO public.history_transaction_participants VALUES (11, 21474881536, 1); INSERT INTO public.history_transaction_participants VALUES (12, 21474885632, 1); INSERT INTO public.history_transaction_participants VALUES (13, 21474889728, 1); INSERT INTO public.history_transaction_participants VALUES (14, 21474893824, 1); INSERT INTO public.history_transaction_participants VALUES (15, 21474897920, 1); INSERT INTO public.history_transaction_participants VALUES (16, 21474902016, 1); INSERT INTO public.history_transaction_participants VALUES (17, 21474906112, 1); INSERT INTO public.history_transaction_participants VALUES (18, 21474910208, 1); INSERT INTO public.history_transaction_participants VALUES (19, 21474914304, 1); INSERT INTO public.history_transaction_participants VALUES (20, 21474918400, 1); INSERT INTO public.history_transaction_participants VALUES (21, 21474922496, 1); INSERT INTO public.history_transaction_participants VALUES (22, 21474926592, 1); INSERT INTO public.history_transaction_participants VALUES (23, 21474930688, 1); INSERT INTO public.history_transaction_participants VALUES (24, 21474934784, 1); INSERT INTO public.history_transaction_participants VALUES (25, 21474938880, 1); INSERT INTO public.history_transaction_participants VALUES (26, 21474942976, 1); INSERT INTO public.history_transaction_participants VALUES (27, 21474947072, 1); INSERT INTO public.history_transaction_participants VALUES (28, 21474951168, 1); INSERT INTO public.history_transaction_participants VALUES (29, 21474955264, 1); INSERT INTO public.history_transaction_participants VALUES (30, 21474959360, 1); INSERT INTO public.history_transaction_participants VALUES (31, 21474963456, 1); INSERT INTO public.history_transaction_participants VALUES (32, 21474967552, 1); INSERT INTO public.history_transaction_participants VALUES (33, 21474971648, 1); INSERT INTO public.history_transaction_participants VALUES (34, 17179873280, 2); INSERT INTO public.history_transaction_participants VALUES (35, 17179873280, 1); INSERT INTO public.history_transaction_participants VALUES (36, 17179877376, 2); INSERT INTO public.history_transaction_participants VALUES (37, 17179877376, 3); INSERT INTO public.history_transaction_participants VALUES (38, 17179881472, 2); INSERT INTO public.history_transaction_participants VALUES (39, 17179881472, 1); INSERT INTO public.history_transaction_participants VALUES (40, 17179885568, 2); INSERT INTO public.history_transaction_participants VALUES (41, 17179885568, 3); INSERT INTO public.history_transaction_participants VALUES (42, 12884905984, 3); INSERT INTO public.history_transaction_participants VALUES (43, 12884910080, 1); INSERT INTO public.history_transaction_participants VALUES (44, 12884914176, 3); INSERT INTO public.history_transaction_participants VALUES (45, 12884918272, 1); INSERT INTO public.history_transaction_participants VALUES (46, 8589938688, 4); INSERT INTO public.history_transaction_participants VALUES (47, 8589938688, 2); INSERT INTO public.history_transaction_participants VALUES (48, 8589942784, 4); INSERT INTO public.history_transaction_participants VALUES (49, 8589942784, 1); INSERT INTO public.history_transaction_participants VALUES (50, 8589946880, 4); INSERT INTO public.history_transaction_participants VALUES (51, 8589946880, 3); -- -- Data for Name: history_transactions; Type: TABLE DATA; Schema: public; Owner: - -- INSERT INTO public.history_transactions VALUES ('c48b48982dcd1f079d90ee3289dc2b6269bce088bd7183ddba8e3dca25b1e84b', 5, 1, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934595, 100, 1, '2018-07-31 20:17:05.770648', '2018-07-31 20:17:05.770648', 21474840576, '<KEY>', '<KEY>', 'AAAAAQAAAAIAAAADAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAACAAAAAgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAADAAAAAgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAFAAAAAgAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAAAAAAABAAAAAAAAAAFVU0QAAAAAALW4F0ehO6Ay9C0PsGEgvc1711U98Yj4mLkm9Q75kC3vAAAADdp55VQAAAABAAAACgAAAAAAAAAAAAAAAAAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAAMAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAAMAAAADAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAADAAAAAAAAAAC<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1c4AAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1bUAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{OL8799gdl4G9kC/cOT6pQu2zfD5GhhExAKtKmb7s8ozksyqIYI21eqCLcluwLlb2wBim5Owr0y2zzxYH7vqOBw==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('437a48108dd143273dcf1c28296d6048d0915c6072650eb5f794b89560a40c0c', 5, 2, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934596, 100, 1, '2018-07-31 20:17:05.770796', '2018-07-31 20:17:05.770796', 21474844672, '<KEY>', '<KEY>', '<KEY>AAAAAwAAAAAAAAA<KEY>AC<KEY>Q/<KEY>ABAAAACQ<KEY>AAAAMAAAAFAAAAAAAAA<KEY>Q/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAAQAAAADAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAAQAAAAEAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1bUAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAC<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1ZwAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{uUnZlMxj8taqMo/PYfI4rBl41Cpps/XHGlNot5+TWTZE9A06ipER6Q7XqbxhNzmAR8NaQbS3Ds0RQv44r3GLCg==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('9f9ea714b1a39664b1e6df0fafd1aa17eda71bb05715fe1371246f3208b3a1b1', 5, 3, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934597, 100, 1, '2018-07-31 20:17:05.770871', '2018-07-31 20:17:05.770871', 21474848768, '<KEY>', '<KEY>', '<KEY>vAAAADc6OI1AAAAABAAAACAAAAAAAAAAAAAAAAAAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAAUAAAAEAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAAUAAAAFAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1ZwAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1YMAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{9LQUhBPQFZOopSh/vuUNPcUm0DLI9wD4aw449Ccu6ADMejat8t2MyuzWvx8RwQMPd9zdXlwCE5d8cT3upwuPAg==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('f966ab310137dae86c7ee7ee08850339537c78f854eaaaea78d7fd834134da79', 5, 4, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934598, 100, 1, '2018-07-31 20:17:05.770945', '2018-07-31 20:17:05.770945', 21474852864, 'AAAAAK6jei3jmoI8TGlD/egc37PXtHKKzWV8wViZBaCu5L5MAAAAZAAAAAIAAAAGAAAAAAAAAAAAAAABAAAAAAAAAAMAAAAAAAAAAVVTRAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAAQTFM8AAAAAAEAAAAHAAAAAAAAAAAAAAAAAAAAAa7kvkwAAABAaZXT/bkDz3FqTJhXKtcSev5gzrE0wL2GSnszf7t4qBTcnW3P4heHeAFIkSjtgz0m7IgGT1goVlbtdA5PtZNNCw==', '<KEY>', '<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAAYAAAAGAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1YMAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1WoAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{aZXT/bkDz3FqTJhXKtcSev5gzrE0wL2GSnszf7t4qBTcnW3P4heHeAFIkSjtgz0m7IgGT1goVlbtdA5PtZNNCw==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('360d890880eebd224d7506b9881352fbc6b6b1921f84a85e9807f0775b5560bc', 5, 5, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934599, 100, 1, '2018-07-31 20:17:05.771012', '2018-07-31 20:17:05.771012', 21474856960, 'AAAAAK6jei3jmoI8TGlD/egc37PXtHKKzWV8wViZBaCu5L5MAAAAZAAAAAIAAAAHAAAAAAAAAAAAAAABAAAAAAAAAAMAAAAAAAAAAVVTRAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAAN+<KEY>', '<KEY>', '<KEY>AAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/<KEY>AAAAA34R0pUAAAAAgAAAAcAAAAHAAAAAAAAAAAAAAAAAQ<KEY>AAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1WoAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1VEAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{p1hMoM8rNid3pnBSv/sqgRwIIyLgkeBbUMH9SYTGgXXWZSB1Q7Rv54QgXbJ5XNxPqA9kgz/LYpJc3V9Lsk+mBA==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('bc1c988cc29d96ba3ed032e48f862cda1c9ed615b07ac8db51ef399cd3fa2941', 5, 6, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934600, 100, 1, '2018-07-31 20:17:05.771081', '2018-07-31 20:17:05.771082', 21474861056, 'AAAAAK6jei3jmoI8TGlD/egc37PXtHKKzWV8wViZBaCu5L5MAAAAZAAAAAIAAAAIAAAAAAAAAAAAAAABAAAAAAAAAAMAAAAAAAAAAVVTRAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAALpDt0AAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAa7kvkwAAABAd6LAs45dbBkADWNU5etnooaywHqrB19Tf40hy6/miUAnNAx6o8/ueoRawn+3RJyRvQW3WKpZPbp4zB49zcYkDw==', 'AAAAAAAAAG<KEY>', '<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAAAAAAAGAAAAAAAAAAFVU0QAAAA<KEY>AAAAC6Q7dAAAAAABAAAABQAAAAAAAAAAAAAAAAAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAAgAAAAHAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAAgAAAAIAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1VEAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1TgAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{d6LAs45dbBkADWNU5etnooaywHqrB19Tf40hy6/miUAnNAx6o8/ueoRawn+3RJyRvQW3WKpZPbp4zB49zcYkDw==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('61b33dced6b81dde0e86b61ba4abc280b6c35c6e4ba8045b5082f74a9a2b60ed', 5, 7, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934601, 100, 1, '2018-07-31 20:17:05.771156', '2018-07-31 20:17:05.771156', 21474865152, '<KEY>', '<KEY>', '<KEY>+TAAAAA34R0pUAAAAAgAAAAkAAAAIAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAA<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAAkAAAAJAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1TgAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAC<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1R8AAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{FHqWUK4Luj4d8sUiQ18OB6fikbsPQXZAOIfZ32sgs62+Q17GMnwYqsxFo1ti49R7cMLadDsnhHjknkOQMzc+Dg==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('163aab67c5a24a59eda5e4b4e5f32924f603cff52a5e4fb25eae987538c23106', 5, 8, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934602, 100, 1, '2018-07-31 20:17:05.771229', '2018-07-31 20:17:05.77123', 21474869248, '<KEY>', '<KEY>', '<KEY>', 'AAAA<KEY>AAAA==', '{m8aNJ18QdO28lh/q/TJRX9IDlSqhaNzxgla/NgydpGXxdgAYYA9bSLdcknkQ8zFwfSdYmmjKqnDxYG1U00rLBw==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('627fdbd55feaf21e6e96addebb0f5fc73540ff9505d5d0dc76c9ec69f4d2f76f', 5, 9, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934603, 100, 1, '2018-07-31 20:17:05.771305', '2018-07-31 20:17:05.771305', 21474873344, '<KEY>', '<KEY>', 'AAAAAQAAAAIAAAADAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAAKAAAACgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAALAAAACgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAFAAAAAgAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAAAAAAAJAAAAAAAAAAFVU0QAAAAAALW4F0ehO6Ay9C0PsGEgvc1711U98Yj4mLkm9Q75kC3vAAAABKgXyAAAAAABAAAAAgAAAAAAAAAAAAAAAAAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/<KEY>S+TAAAAA34R0pUAAAAAgAAAAsAAAAKAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAAsAAAALAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1QYAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1O0AAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{2pl8oiRj9zUIFp9AYMaKOb0OAbMsMjJNUUHewa3JwSH0V2Zaol7gkH5ymr3CNwO1e5X8fGilLZm+x5P7okPWDQ==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('e252b8842716f49fe824df8c95e51a55b40db1b51017ba97dc59b2d971e5cb10', 5, 10, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934604, 100, 1, '2018-07-31 20:17:05.771376', '2018-07-31 20:17:05.771376', 21474877440, '<KEY>', '<KEY>', '<KEY>AAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAAwAAAALAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAAwAAAAMAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1O0AAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1NQAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{0lB577a6VFTmqiBKQXiyg6YgjTPcU8n9Mldb5GdKeZ8DRkWG797qE3Tn/WL5uFYnY6qldsI9U31ASttn/Mh8Cg==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('b962b228793859d32de9d6a3d3e782acb8f2d0b9e3a17a91571a402d7cd47a8a', 5, 11, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934605, 100, 1, '2018-07-31 20:17:05.771442', '2018-07-31 20:17:05.771442', 21474881536, 'AAAAAK6jei3jmoI8T<KEY>', '<KEY>', '<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAA0AAAANAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1NQAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1LsAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{ikMlBAAA6oi4Rg6Gp3svzTPGcaUQx4HtpN0TgusXrMTkbVsBpvHNs+w0bFF9BOgtyGYK2/6zfkXYMVEB9X6aCg==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('0343d98ff86bf4b5f9e24db8b3889fe34df7a166cfde7e9098a83c11f7eb9722', 5, 12, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934606, 100, 1, '2018-07-31 20:17:05.771543', '2018-07-31 20:17:05.771543', 21474885632, 'AAAAAK6jei3jmoI8TGlD/egc37PXtHKKzWV8wViZBaCu5L5MAAAAZAAAAAIAAAAOAAAAAAAAAAAAAAABAAAAAAAAAAMAAAAAAAAAAVVTRAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAAXhBGyAAAAAAoAAABlAAAAAAAAAAAAAAAAAAAAAa7kvkwAAABAjAuehle1J2zs3RaLV5FD/TsgwVWQTHrGyz9xtHfjohTp9ugklMElF1GFa7zxijTpghCK1A0yyVuIrf8mIQiuBA==', '<KEY>', '<KEY>Q/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAA4AAAANAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAA4AAAAOAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1LsAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1KIAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{jAuehle1J2zs3RaLV5FD/TsgwVWQTHrGyz9xtHfjohTp9ugklMElF1GFa7zxijTpghCK1A0yyVuIrf8mIQiuBA==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('e82691759c9c5796c5cc91a1c71f233b6c5a38af9ad5976c7e655078818838e7', 5, 13, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934607, 100, 1, '2018-07-31 20:17:05.771617', '2018-07-31 20:17:05.771617', 21474889728, 'AAAAAK6jei3jmoI8TGlD/egc37PXtHKKzWV8wViZBaCu5L5MAAAAZAAAAAIAAAAPAAAAAAAAAAAAAAABAAAAAAAAAAMAAAAAAAAAAVVTRAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAAVMAXOAAAAAAoAAABbAAAAAAAAAAAAAAAAAAAAAa7kvkwAAABAj4F6inPyng6e0YtLtA9CBE8NYDuuMERmHR9ePEt3dFa0gma/P84LRkWeDa4Zb2E6wKVLnrjcqRdWHjE1YN3CAw==', 'AAAAAAAAAGQ<KEY>', 'AAAAAQAAAAIAAAADAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAAOAAAADgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAAPAAAADgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAFAAAAAgAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAAAAA<KEY>AAAA<KEY>AAAAKAAAAWwAAAAAAAAAAAAAAAAAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAA8AAAAOAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAA8AAAAPAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1KIAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1IkAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{j4F6inPyng6e0YtLtA9CBE8NYDuuMERmHR9ePEt3dFa0gma/P84LRkWeDa4Zb2E6wKVLnrjcqRdWHjE1YN3CAw==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('d80c809a4065600d7705e7db04e1260bf39582d941446a95fb9cea66680ef0c3', 5, 14, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934608, 100, 1, '2018-07-31 20:17:05.771693', '2018-07-31 20:17:05.771693', 21474893824, '<KEY>AAMAAAAAAAAAAVVTRAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAAS2/nqAAAAAAoAAABRAAAAAAAAAAAAAAAAAAAAAa7kvkwAAABAGYwwYwUMaDuxhjfxFrmYgv62lZiUxTe8QNw75Za/PCyZ/ZS4NK6peWAJh+m8H33lhcVsst5ElAhFZ+zwZZ3VDQ==', 'AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAK6jei3jmoI8TGlD/egc37PXtHKKzWV8wViZBaCu5L5MAAAAAAAAAA4AAAAAAAAAAVVTRAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAANjP14VAAAAAoAAABRAAAAAAAAAAAAAAAA', '<KEY>+TAAAAA34R0pUAAAAAgAAABAAAAAPAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAA<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAABAAAAAQAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/<KEY>S+TAAAAA34R1IkAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1HAAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{GYwwYwUMaDuxhjfxFrmYgv62lZiUxTe8QNw75Za/PCyZ/ZS4NK6peWAJh+m8H33lhcVsst5ElAhFZ+zwZZ3VDQ==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('fd0bc444f5e90e9a61a5aa011a8b62376ef2d7e304418a188a294bb0b95740f8', 5, 15, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934609, 100, 1, '2018-07-31 20:17:05.771754', '2018-07-31 20:17:05.771754', 21474897920, '<KEY>', '<KEY>', '<KEY>AAAAAAAAAAAAAAAA<KEY>Q/<KEY>S+TAAAAA34R0pUAAAAAgAAABEAAAARAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAA<KEY>AAAA<KEY>gAAAAIAAAACAAAAAAAAAAAAAAAA<KEY>AAAAAAAA<KEY>Q/3oHN+<KEY>S+TAAAAA34R1FcAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{vgqC6TyEhSrhF7K4wwOgd0sCvmFAQgfM1Ez+eEwWbm/BPJSW0WpOTxU5feEKAOpLYaHJvvvD+WZKm5PI/yadBw==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('04b1a1a09159b1c7bb43fd1dc0f282958d0a01c337d72a0324c0262b58d93615', 5, 16, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934610, 100, 1, '2018-07-31 20:17:05.771816', '2018-07-31 20:17:05.771816', 21474902016, '<KEY>', '<KEY>', '<KEY>Q/<KEY>Q/<KEY>S+TAAAAA34R0pUAAAAAgAAABIAAAARAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAC<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAABIAAAASAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAAC<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1FcAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1D4AAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{E0N79ktAplSSjovU50IktziuRrJN6xmRkF7fsV+YjK5g8XWPegdWuH8u55zCzZcBzddo8CaiuEWpJMPjMZZICA==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('5d37d98f720dfb3dce49331f403bfa3f9ef13122fae954a73b7b688b180b1516', 5, 17, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934611, 100, 1, '2018-07-31 20:17:05.771897', '2018-07-31 20:17:05.771897', 21474906112, '<KEY>', '<KEY>', '<KEY>AC9/WPgAAAAAKAAAAMwAAAAAAAAAAAAAAAAAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAABMAAAASAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAABMAAAATAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1D4AAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1CUAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{XUhb5QTAO+vV5kTEQqOp9yi4sDerjU5vIT5VH3MiOG381zIplmafJjLNHS02enkonOHtHWIvqznVQjHqQ389DQ==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('a3d82c4ac237e77f385f3cdf5a358cabc4b0c12b7f58b59c197fdba8a76010cf', 5, 18, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934612, 100, 1, '2018-07-31 20:17:05.771962', '2018-07-31 20:17:05.771962', 21474910208, 'AAAAAK6jei3jmoI8TGlD/egc37PXtHKKzWV8wViZBaCu5L5MAAAAZAAAAAIAAAAUAAAAAAAAAAAAAAABAAAAAAAAAAMAAAAAAAAAAVVTRAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAAJi8paAAAAAAoAAAApAAAAAAAAAAAAAAAAAAAAAa7kvkwAAABAiJwFcozA9Q4Vj/tABAkphbvOi6Hs325bHDBpTi6J/LN3SVHGsYQ2UwD1recgYoYtoWD1+qkKdFMSzeuIZodJDQ==', '<KEY>', 'AAAAAQAAAAIAAAADAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAATAAAAEwAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAAUAAAAEwAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAFAAAAAgAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAAAAAAASAAAAAAAAAAFVU0QAAAAAALW4F0ehO6Ay9C0PsGEgvc1711U98Yj4mLkm9Q75kC3vAAAACYvKWgAAAAAKAAAAKQAAAAAAAAAAAAAAAAAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAABQAAAATAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAABQAAAAUAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1CUAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1AwAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{iJwFcozA9Q4Vj/tABAkphbvOi6Hs325bHDBpTi6J/LN3SVHGsYQ2UwD1recgYoYtoWD1+qkKdFMSzeuIZodJDQ==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('e09337eedf136665192e840b23bf26b86fc85b93bb401d3a1ce4ee2a1b579213', 5, 19, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934613, 100, 1, '2018-07-31 20:17:05.772036', '2018-07-31 20:17:05.772036', 21474914304, 'AAAAAK6jei3jmoI8TGlD/egc37PXtHKKzWV8wViZBaCu5L5MAAAAZAAAAAIAAAAVAAAAAAAAAAAAAAABAAAAAAAAAAMAAAAAAAAAAVVTRAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAAHN752AAX14QkSejmcAAAAAAAAAAAAAAAAAAAAAa7kvkwAAABAEhl1VhzJ53lV9jnMsTC9/D5/tr0jaWCgSc0KCmdSqlqbQ/kDEgvT+jfSLDuQ6gM9GJCSfoFXT4preQ0mpLvCCQ==', '<KEY>', '<KEY>AAAAAgAAABUAAAAV<KEY>AAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1AwAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0/MAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{Ehl1VhzJ53lV9jnMsTC9/D5/tr0jaWCgSc0KCmdSqlqbQ/kDEgvT+jfSLDuQ6gM9GJCSfoFXT4preQ0mpLvCCQ==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('f140ddf0c75f70ddf0d79391e6b5992b9c56b9c23c040008b908c70a413eb03d', 5, 20, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934614, 100, 1, '2018-07-31 20:17:05.772109', '2018-07-31 20:17:05.772109', 21474918400, 'AAAAAK6jei3jmoI8TGlD/<KEY>3XzqIBy35EsuVN0k0hD81/rrCNCtICg==', '<KEY>', '<KEY>S+<KEY>AAAAAgAAABYAAAAVAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAABYAAAAWAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0/MAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R09oAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{W7ujBoctNRfa1M6+T0tShj0Q+l9ybp9C6jQmrSEUeBSwAqucU1YAMlc3XzqIBy35EsuVN0k0hD81/rrCNCtICg==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('5d46530574ecf525512b5184af69899d95a826ec6bbad2e0b2d34b3efa352d7f', 5, 21, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934615, 100, 1, '2018-07-31 20:17:05.772212', '2018-07-31 20:17:05.772212', 21474922496, 'AAAAAK6jei3jmoI8TGlD/egc37PXtHKKzWV8wViZBaCu5L5MAAAAZAAAAAIAAAAXAAAAAAAAAAAAAAAB<KEY>AAMAAAAAAAAAAVVTRAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAACj6auAAAAAAoAAAALAAAAAAAAAAAAAAAAAAAAAa7kvkwAAABAmEz+ciLZWEXIlsEWtrY1Ii1fzoax2dGCE/Fu0GhOyqbw90Dvs+k3aVOmQLTByU5JWjEvd6Op+oV3i+7KPPtxAw==', 'AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAK6jei3jmoI8TGlD/egc37PXtHKKzWV8wViZBaCu5L5MAAAAAAAAABUAAAAAAAAAAVVTRAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAACj6auAAAAAAoAAAALAAAAAAAAAAAAAAAA', 'AAAAAQAAAAIAAAADAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAAWAAAAFgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAAXAAAAFgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAFAAAAAgAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAAAAAAAVAAAAAAAAAAFVU0QAAAAAALW4F0ehO6Ay9C0PsGEgvc1711U98Yj4mLkm9Q75kC3vAAAAAo+mrgAAAAAKAAAACwAAAAAAAAAAAAAAAAAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAABcAAAAWAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAC<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAABcAAAAXAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAAC<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R09oAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAC<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R08EAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{mEz+ciLZWEXIlsEWtrY1Ii1fzoax2dGCE/Fu0GhOyqbw90Dvs+k3aVOmQLTByU5JWjEvd6Op+oV3i+7KPPtxAw==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('bc2a16ca82b7d0bd903c26482736cceb9f4efa077071e72849654b3aced94136', 5, 22, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934616, 100, 1, '2018-07-31 20:17:05.77229', '2018-07-31 20:17:05.77229', 21474926592, '<KEY>', '<KEY>', 'AAAAAQAAAAIAAAADAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAAXAAAAFwAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAAYAAAAFwAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAFAAAAAgAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAAAAAAAWAAAAAAAAAAFVU0QAAAAAALW4F0ehO6Ay9C0PsGEgvc1711U98Yj4mLkm9Q75kC3vAAAAAHc1lAAAAAAFAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAABgAAAAXAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/<KEY>S+TAAAAA34R0pUAAAAAgAAABgAAAAYAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAA<KEY>AAAAA34R08EAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/<KEY>S+TAAAAA34R06gAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{JnrtXGyjkqpAJAFfDY0JyJjXfS9/xXLLHdu3XT20IxpJCBQ2K0fhYnVis0tnbacC9/vTcmLnWxKg1oGCR9usBA==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('a0bdbdb1aa35b7f2aec201b618fca59405e4c375f8f76a24ef25e885a96fd7ed', 5, 23, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934617, 100, 1, '2018-07-31 20:17:05.772355', '2018-07-31 20:17:05.772355', 21474930688, '<KEY>', '<KEY>', '<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAAAAAAAXAAAAAAAAAAFVU0QAAAAAALW4F0ehO6Ay9C0PsGEgvc1711U98Yj4mLkm9Q75kC3vAAAADVdYj00AAAAFAAAAMwAAAAAAAAAAAAAAAAAAAAMAAAAFAAAAAAAAAAC<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAABkAAAAYAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAABkAAAAZAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R06gAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R048AAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{GqxC/cid99JKEBv6Y7vmkU1u+UQ+SwDxHIjLeMmmrt5Uv2TCs6Ct4tokvwjlGsbBo1scU8nQmwuXui8bfNGTAA==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('9b90554626c9bfa396b4f61cc910d383a38f1223c8f5478edde6fe60a7f2f406', 5, 24, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934618, 100, 1, '2018-07-31 20:17:05.772428', '2018-07-31 20:17:05.772428', 21474934784, '<KEY>', '<KEY>', 'AAAAAQAAAAIAAAADAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAAZAAAAGQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAAaAAAAGQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAFAAAAAgAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAAAAAAAYAAAAAAAAAAFVU0QAAAAAALW4F0ehO6Ay9C0PsGEgvc1711U98Yj4mLkm9Q75kC3vAAAADVFirkwAAAAFAAAALgAAAAAAAAAAAAAAAAAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAABoAAAAZAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAABoAAAAaAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R048AAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R03YAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{TU8XW0HLVKABibMcV0H3VxUkGh/dQhUcM0eFCkFzVgeXmY9g1V/MnP9DsNs1aipuJVlAGS0B88gxbmoQ5h6rDA==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('0e17e87fcda53937d77cbf1e2658fcdf41eb0689e9649545bb14a5960832e5b8', 5, 25, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934619, 100, 1, '2018-07-31 20:17:05.772503', '2018-07-31 20:17:05.772503', 21474938880, '<KEY>', '<KEY>', '<KEY>AAAAAgAAABsAAAAaAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAABsAAAAbAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R03YAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R010AAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{Lhl41aevL0eWZT/dx9jwFRVb7nDeDsjPeuPKK5QCBgWZjBWFwwRXz+gTiHccCvG5W4d93ucAU4xOkbCj1VH9CQ==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('f277e4abf7d0d326fa63ee62415f7a117e43453072677d1f6e9618c8d2bb8524', 5, 26, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934620, 100, 1, '2018-07-31 20:17:05.772566', '2018-07-31 20:17:05.772566', 21474942976, 'AAAAAK6jei3jmoI8TGlD/egc37PXtHKKzWV8wViZBaCu5L5MAAAAZAAAAAIAAAAcAAAAAAAAAAAAAAABAAAAAAAAAAMAAAAAAAAAAVVTRAAAAAAAtbgXR6E<KEY>', '<KEY>', '<KEY>AAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R010AAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R00QAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{xjfuAsXsrTxv+5NVYnsb0soqC6ZoluT/Xobjrt45eAeNZMwp9/RV2hLXySkVOVk2O814/dgyeap7M+LgWibPBg==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('5e3622bf6dab1276155014b8387f261a0bbfbef247caa05e9c4be8c890dad958', 5, 27, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934621, 100, 1, '2018-07-31 20:17:05.772651', '2018-07-31 20:17:05.772652', 21474947072, 'AAAAAK6jei3jmoI8TGlD/egc37PXtHKKzWV8wViZBaCu5L5MAAAAZAAAAAIAAAAdAAAAAAAAAAAAAAABAAAAAAAAAAMAAAAAAAAAAVVTRAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAAOb3zsAAAAAAUAAAAfAAAAAAAAAAAAAAAAAAAAAa7kvkwAAABAcFijipV/lZRIDYicNpHFwnaL4J0Fmwkcr0G9VxH4lZSYgLjgQnvgniCBQrvu2eqyqOFHC8H04T7D9jXseYr4Cg==', '<KEY>', '<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAB0AAAAcAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAB0AAAAdAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R00QAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0ysAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{cFijipV/lZRIDYicNpHFwnaL4J0Fmwkcr0G9VxH4lZSYgLjgQnvgniCBQrvu2eqyqOFHC8H04T7D9jXseYr4Cg==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('b00c83ae8f3d0cd4f1760517182abdf0440eca6efcd2b0fa893aac85b35e42cb', 5, 28, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934622, 100, 1, '2018-07-31 20:17:05.772716', '2018-07-31 20:17:05.772717', 21474951168, 'AAAAAK6jei3jmoI8TGlD/egc37PXtHKKzWV8wViZBaCu5L5MAAAAZAAAAAIAAAAeAAAAAAAAAAAAAAABAAAAAAAAAAMAAAAAAAAAAVVTRAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAAMG3EIAAAAAAUAAAAaAAAAAAAAAAAAAAAAAAAAAa7kvkwAAABAbHyKtzQE0yWfACwWf+1pYV3POGcAKxlNttLK4B5LmX34VwUIGjWHqKIiw/aDtsaIqBJI62bfkYn6KiMWiRnlAg==', 'AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAADAAAAAAAAAAAAAAAA<KEY>', '<KEY>AAAB4AAAAdAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAC<KEY>Q/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAB4AAAAeAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/<KEY>AAAAA34R0ysAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAC<KEY>Q/<KEY>QWgruS+TAAAAA34R0xIAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{bHyKtzQE0yWfACwWf+1pYV3POGcAKxlNttLK4B5LmX34VwUIGjWHqKIiw/aDtsaIqBJI62bfkYn6KiMWiRnlAg==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('3f731b66c1a3d2c4cf9d15bb17e910beaa6f6fa6a77cccfd62f5eabcd3ecfcc5', 5, 29, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934623, 100, 1, '2018-07-31 20:17:05.772811', '2018-07-31 20:17:05.772811', 21474955264, '<KEY>', '<KEY>', 'AAAAAQAAAAIAAAADAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAAeAAAAHgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAAfAAAAHgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAFAAAAAgAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAAAAAAAdAAAAAAAAAAFVU0QAAAAAALW4F0ehO6Ay9C0PsGEgvc1711U98Yj4mLkm9Q75kC3vAAAACcdlJAAAAAAFAAAAFQAAAAAAAAAAAAAAAAAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAB<KEY>AAAAAAAAEAAAAFAAAAAAAAA<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAB8AAAAfAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAA<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0xIAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAA<KEY>CPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0vkAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{kkZq5sVwc5pr6NYfqlSYkQevr273ibhO9EwVykO2mQ4+ka+BrQj++wfcsuJFbGaeE6NtzQxTf7XQaGZpwjk5Cw==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('492c8c2808bf649ba321f0f75dda11581107bff229ef457340aab8494f5ad412', 5, 30, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934624, 100, 1, '2018-07-31 20:17:05.772884', '2018-07-31 20:17:05.772884', 21474959360, '<KEY>', '<KEY>', '<KEY>Q/<KEY>S+TAAAAA34R0pUAAAAAgAAACAAAAAfAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAACAAAAAgAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0vkAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0uAAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{GoxQs3i+aE6OAegBkTmA0dqEadD541CFUYMVQ1aCii5ioLMaP6i5oSZ5+4c0VfY2MAPmpxdNCOY3vwH4XD8yCw==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('c03dfbea35606bd565f3609a306aa27a82aa14b3fd142f1a13b79c1871f54a3b', 5, 31, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934625, 100, 1, '2018-07-31 20:17:05.773691', '2018-07-31 20:17:05.773691', 21474963456, '<KEY>', '<KEY>', 'AAAAAQAAAAIAAAADAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAAgAAAAIAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAAhAAAAIAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAFAAAAAgAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAAAAAAAfAAAAAAAAAAFVU0QAAAAAALW4F0ehO6Ay9C0PsGEgvc1711U98Yj4mLkm9Q75kC3vAAAABR9NXAAAAAAFAAAACwAAAAAAAAAAAAAAAAAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAACEAAAAgAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAACEAAAAhAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0uAAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0scAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{lTGl5Ll7WR6ooHo4TPTHiPsPhYQEcPuFd4lby43niifsCCnLkZfzoZYxODmAHHv/RXkskBH7eRkxCZYBRXRQBA==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('42e47f8fdcb738c844e1556c9fad18eb8887d78681ef5e9616898eb6e1c5e8eb', 5, 32, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934626, 100, 1, '2018-07-31 20:17:05.773784', '2018-07-31 20:17:05.773785', 21474967552, 'AAAAAK6jei3jmoI8TGlD/egc37PXtHKKzWV8wViZBaCu5L5MAAAAZAAAAAIAAAAiAAAAAAAAAAAAAAABAAAAAAAAAAMAAAAAAAAAAVVTRAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAACy0F4AAAAAAUAAAAGAAAAAAAAAAAAAAAAAAAAAa7kvkwAAABAaSoEc/Kxao3Z6gUsTh1QfLjlT486TQKgtu9NhqT8EzSQ2jFCWgP+odJUnTIPRU74DOgqwEgcHBGpovaass24Dw==', '<KEY>', 'AAAAAQAAAAIAAAADAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAAhAAAAIQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABQAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdKVAAAAAIAAAAiAAAAIQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAFAAAAAgAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAAAAAAAgAAAAAAAAAAFVU0QAAAAAALW4F0ehO6Ay9C0PsGEgvc1711U98Yj4mLkm9Q75kC3vAAAAAstBeAAAAAAFAAAABgAAAAAAAAAAAAAAAAAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAACIAAAAhAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAACIAAAAiAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0scAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0q4AAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{aSoEc/Kxao3Z6gUsTh1QfLjlT486TQKgtu9NhqT8EzSQ2jFCWgP+odJUnTIPRU74DOgqwEgcHBGpovaass24Dw==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('ee96865dfca78c43c4074317f3dbcd7ca978643b973bc9a5dc4f2588f981c6d7', 5, 33, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934627, 100, 1, '2018-07-31 20:17:05.77386', '2018-07-31 20:17:05.77386', 21474971648, 'AAAAAK6jei3jmoI8TGlD/egc37PXtHKKzWV8wViZBaCu5L5MAAAAZAAAAAIAAAAjAAAAAAAAAAAAAAABAAAAAAAAAAMAAAAAAAAAAVVTRAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAA<KEY>', '<KEY>', '<KEY>S+TAAAAA34R0pUAAAAAgAAACMAAAAiAAAAAAAAAAAAAAAAAQ<KEY>AAAAAAAAEAAAAFAAAAAAAAAAC<KEY>Q/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAACMAAAAjAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0q4AAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R0pUAAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{2FwoenXJVOTi9oyWHyNL+0wLRdikDwB4qdNJmj+OQi8a0jRgjQG/1/EsSq885q7mUvX57XCjUGH+rf70B+CFAg==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('ea945436a3b650efa88063e737518cf1928d9a43d1aba3ec684704f160b3733e', 4, 1, 'GC23QF2HUE52AMXUFUH3AYJAXXGXXV2VHXYYR6EYXETPKDXZSAW67XO4', 8589934593, 100, 1, '2018-07-31 20:17:05.785866', '2018-07-31 20:17:05.785866', 17179873280, 'AAAAALW4F0ehO6Ay9C0PsGEgvc1711U98Yj4mLkm9Q75kC3vAAAAZAAAAAIAAAABAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAABVVNEAAAAAAC1uBdHoTugMvQtD7BhIL3Ne9dVPfGI+Ji5JvUO+ZAt7wAAAAukO3QAAAAAAAAAAAH5kC3vAAAAQH/ZkzR/eC0F7xP9zApeHvMH7nqetzaSdYh8WHyrwwvbEnx4Db6gz0grnRJBJS66OZbGmCk7yzHm8DkJ7bJ4QAU=', 'AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAB<KEY>=', '<KEY>', '<KEY>', '{f9mTNH94LQXvE/3MCl4e8wfuep63NpJ1iHxYfKvDC9sSfHgNvqDPSCudEkElLro5lsaYKTvLMebwOQntsnhABQ==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('416a63c3f1491537698cdb6f981097ed8e44ca27d2d9006bd0ba68832ebf9d55', 4, 2, 'GC23QF2HUE52AMXUFUH3AYJAXXGXXV2VHXYYR6EYXETPKDXZSAW67XO4', 8589934594, 100, 1, '2018-07-31 20:17:05.785973', '2018-07-31 20:17:05.785973', 17179877376, '<KEY>=', 'AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=', 'AAAAAQAAAAIAAAADAAAABAAAAAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAACVAvicAAAAAIAAAABAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABAAAAAAAAAAAtbgXR6E7oDL0LQ+wYSC9zXvXVT3xiPiYuSb1DvmQLe8AAAACVAvicAAAAAIAAAACAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAA<KEY>', 'AAAAAgAAAAMAAAAEAAAAAAAAAAC1uBdHoTugMvQtD7BhIL3Ne9dVPfGI+Ji5JvUO+ZAt7wAAAAJUC+OcAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAEAAAAAAAAAAC1uBdHoTugMvQtD7BhIL3Ne9dVPfGI+Ji5JvUO+ZAt7wAAAAJUC+M4AAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{UUYsYUVdsQNF2TZ4XJABM2ke6o7+wWumqzGY03AZr4wuJs1AksNdZp8LhbwowpD+ETQzRMvFl6787y1icG7DAA==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('c29948d1ca87bad2e3299c1b018c996c22ff5d56f5753bc38f0fd88c4d2c5d94', 4, 3, 'GC23QF2HUE52AMXUFUH3AYJAXXGXXV2VHXYYR6EYXETPKDXZSAW67XO4', 8589934595, 100, 1, '2018-07-31 20:17:05.786036', '2018-07-31 20:17:05.786036', 17179881472, '<KEY> 'AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=', 'AAAA<KEY>mLkm9Q75kC3vAAAAC6Q7dAB//////////wAAAAEAAAAAAAAAAA==', 'AAAAAgAAAAMAAAAEAAAAAAAAAAC1uBdHoTugMvQtD7BhIL3Ne9dVPfGI+Ji5JvUO+ZAt7wAAAAJUC+M4AAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAEAAAAAAAAAAC1uBdHoTugMvQtD7BhIL3Ne9dVPfGI+Ji5JvUO+ZAt7wAAAAJUC+LUAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{ufQ14Kxqbliua2wwlBU4vI5M+oNvtIxMJkah+blKFTp9yXc8+J4idA22TUWZFV5TF1hfWuxbYofUdBsnrjgfDQ==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('554ea22913ebf01fc4b3a4d60b59ae28f379b800d5b6da40a6987a53ebd87f07', 4, 4, 'GC23QF2HUE52AMXUFUH3AYJAXXGXXV2VHXYYR6EYXETPKDXZSAW67XO4', 8589934596, 100, 1, '2018-07-31 20:17:05.786127', '2018-07-31 20:17:05.786127', 17179885568, 'AAAAALW4F0ehO6Ay9C0PsGEgvc1711U98Yj4mLkm9Q75kC3vAAAAZAAAAAIAAAAEAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAbmgm1V2dg5V1mq1elMcG1txjSYKZ9wEgoSBaeW8UiFoAAAABQlRDAAAAAAC1uBdHoTugMvQtD7BhIL3Ne9dVPfGI+Ji5JvUO+ZAt7wAAAAukO3QAAAAAAAAAAAH5kC3vAAAAQF34mYyRLbVT42QtFuY5UN0sr9EcuE3ltA/9yAxiNOvukbVTOaz86uCXpEZlX1FnExYDZwOZJWVXfsbdovbVUwc=', 'AAAAAAAAAGQ<KEY>AAQAAAAAAAAABAAAAAAAAAAA=', '<KEY>', 'AAAAAgAAAAMAAAAEAAAAAAAAAAC1uBdHoTugMvQtD7BhIL3Ne9dVPfGI+Ji5JvUO+ZAt7wAAAAJUC+LUAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAQ<KEY>AAAAAAAA<KEY>AAAAJUC+JwAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{XfiZjJEttVPjZC0W5jlQ3Syv0Ry4TeW0D/3IDGI06+6RtVM5rPzq4JekRmVfUWcTFgNnA5klZVd+xt2i9tVTBw==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('811192c38643df73c015a5a1d77b802dff05d4f50fc6d10816aa75c0a6109f9a', 3, 1, 'GBXGQJWVLWOYHFLVTKWV5FGHA3LNYY2JQKM7OAJAUEQFU6LPCSEFVXON', 8589934593, 100, 1, '2018-07-31 20:17:05.792439', '2018-07-31 20:17:05.79244', 12884905984, 'AAAAAG5oJtVdnYOVdZqtXpTHBtbcY0mCmfcBIKEgWnlvFIhaAAAAZAAAAAIAAAABAAAAAAAAAAAAAAABAAAAAAAAAAYAAAABVVNEAAAAAAC1uBdHoTugMvQtD7BhIL3Ne9dVPfGI+Ji5JvUO+ZAt73//////////AAAAAAAAAAFvFIhaAAAAQPlg7GLhJg0x7jpAw1Ew6H2XF6yRImfJIwFfx09Nui5btOJAFewFANfOaAB8FQZl5p3A5g3k6DHDigfUNUD16gc=', 'AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAGAAAAAAAAAAA=', 'AAAAAQAAAAIAAAADAAAAAwAAAAAAAAAAbmgm1V2dg5V1mq1elMcG1txjSYKZ9wEgoSBaeW8UiFoAAAAN+EdXOAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAbmgm1V2dg5V1mq1elMcG1txjSYKZ9wEgoSBaeW8UiFoAAAAN+EdXOAAAAAIAAAABAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAADAAAAAQ<KEY>', '<KEY>', '{+WDsYuEmDTHuOkDDUTDofZcXrJEiZ8kjAV/HT026Llu04kAV7AUA185oAHwVBmXmncDmDeToMcOKB9Q1QPXqBw==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('bd486dbdd02d460817671c4a5a7e9d6e865ca29cb41e62d7aaf70a2fee5b36de', 3, 2, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934593, 100, 1, '2018-07-31 20:17:05.792542', '2018-07-31 20:17:05.792543', 12884910080, '<KEY> 'AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAGAAAAAAAAAAA=', 'AAAAAQAAAAIAAAADAAAAAwAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdXOAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdXOAAAAAIAAAABAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAADAAAAAQAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAAFVU0QAAAAAALW4F0ehO6Ay9C0PsGEgvc1711U98Yj4mLkm9Q75kC3vAAAAAAAAAAB//////////wAAAAEAAAAAAAAAAAAAAAMAAAADAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1c4AAAAAgAAAAE<KEY>AAAAAAQ<KEY>AAAAAAAAEAAAADAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1c4AAAAAgAAAAEAAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAACAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1gAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1ecAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{H2SYpbare/tB/Lw8x6QRvVNMjmLGqQjQGiBes63uA7XrZBuSHZ1JNR94Oi9zQ8Bp+ENfG2FUCWwu6OUGbKMEBg==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('7df857c23c7dfeb974d7c3956775685a8edfa8496bb781fd346c8e2025fad9bf', 3, 3, 'GBXGQJWVLWOYHFLVTKWV5FGHA3LNYY2JQKM7OAJAUEQFU6LPCSEFVXON', 8589934594, 100, 1, '2018-07-31 20:17:05.792613', '2018-07-31 20:17:05.792614', 12884914176, 'AAAAAG5oJtVdnYOVdZqtXpTHBtbcY0mCmfcBIKEgWnlvFIhaAAAAZAAAAAIAAAACAAAAAAAAAAAAAAABAAAAAAAAAAYAAAABQlRDAAAAAAC1uBdHoTugMvQtD7BhIL3Ne9dVPfGI+Ji5JvUO+ZAt73//////////AAAAAAAAAAFvFIhaAAAAQBH/ML6+RzWquFPh8gLF2RuZzYtjjpPeHv/od9M74xlU09Xa4a5e1NhMtMSRIoLItg1EaDWE9zvtHflVWIAaSwQ=', 'AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAGAAAAAAAAAAA=', 'AAAAAQAAAAIAAAADAAAAAwAAAAAAAAAAbmgm1V2dg5V1mq1elMcG1txjSYKZ9wEgoSBaeW8UiFoAAAAN+EdXOAAAAAIAAAABAAAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAbmgm1V2dg5V1mq1elMcG1txjSYKZ9wEgoSBaeW8UiFoAAAAN+EdXOAAAAAIAAAACAAAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAADAAAAAQAAAABuaCbVXZ2DlXWarV6UxwbW3GNJgpn3ASChIFp5bxSIWgAAAAFCVEMAAAAAALW4F0ehO6Ay9C0PsGEgvc1711U98Yj4mLkm9Q75kC3vAAAAAAAAAAB//////////<KEY>MA<KEY>AAAAAgAAAAIAAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAAAAAABuaCbVXZ2DlXWarV6UxwbW3GNJgpn3ASChIFp5bxSIWgAAAA34R1c4AAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAADAAAAAAAAAABuaCbVXZ2DlXWarV6UxwbW3GNJgpn3ASChIFp5bxSIWgAAAA34R1ecAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAAAAAABuaCbVXZ2DlXWarV6UxwbW3GNJgpn3ASChIFp5bxSIWgAAAA34R1c4AAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{Ef8wvr5HNaq4U+HyAsXZG5nNi2OOk94e/+h30zvjGVTT1drhrl7U2Ey0xJEigsi2DURoNYT3O+0d+VVYgBpLBA==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('3476bc649563488cf025d82790aa9c44649188232b150d2864d13fe9face5406', 3, 4, 'GCXKG6RN4ONIEPCMNFB732A436Z5PNDSRLGWK7GBLCMQLIFO4S7EYWVU', 8589934594, 100, 1, '2018-07-31 20:17:05.792681', '2018-07-31 20:17:05.792681', 12884918272, '<KEY> 'AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAGAAAAAAAAAAA=', 'AAAAAQAAAAIAAAADAAAAAwAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdXOAAAAAIAAAABAAAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAN+EdXOAAAAAIAAAACAAAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAADAAAAAQAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAAFCVEMAAAAAALW4F0ehO6Ay9C0PsGEgvc1711U98Yj4mLkm9Q75kC3vAAAAAAAAAAB//////////wAAAAEAAAAAAAAAAAAAAAMAAAADAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1c4AAAAAgAAAAIAAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1c4AAAAAgAAAAIAAAACAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAADAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1ecAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1c4AAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{QoG/7zMvV6nDEL6wmERg+ZuMv1dJxe1y2gwh163l2GCTtglUnMCdFKBhO9/Kggkol1CZfrq6Haj6sb0rokiaBg==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('db398eb4ae89756325643cad21c94e13bfc074b323ee83e141bf701a5d904f1b', 2, 1, 'GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H', 1, 100, 1, '2018-07-31 20:17:05.798297', '2018-07-31 20:17:05.798297', 8589938688, 'AAAAAGL8HQvQkbK2HA3WVjRrKmjX<KEY>', 'AAAAAAAAAGQAAAAAAAAAAQ<KEY>AAAAA=', '<KEY>', '<KEY>', '{GI0HD09huYapwZoBhnoPSfJeHNRJ1JcZJRJR/bKma9Pe9Reji1n3v5uJKRbSPrCNItai4reQNCclp24WC1uaAw==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('67c059e1118f4f79b83648e5769b8bf1f1fbf0259d90d2e4a5a8aa0852c41687', 2, 2, 'GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H', 2, 100, 1, '2018-07-31 20:17:05.798384', '2018-07-31 20:17:05.798384', 8589942784, '<KEY>', 'AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA=', 'AAAAAQAAAAAAAAABAAAAAgAAAAAAAAACAAAAAAAAAACuo3ot45qCPExpQ/3oHN+z17Ryis1lfMFYmQWgruS+TAAAAA34R1gAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAACAAAAAAAAAABi/B0L0JGythwN1lY0aypo19NHxvLCyO5tBEcCVvwF9w3gtqNbEMLUAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAACAAAAAAAAAABi/B0L0JGythwN1lY0aypo19NHxvLCyO5tBEcCVvwF9w3gtrOnY/+cAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAACAAAAAAAAAABi/B0L0JGythwN1lY0aypo19NHxvLCyO5tBEcCVvwF9w3gtrOnY/84AAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', '{1KC69RSCDHRdSTitkVYOBA0Ly/nsXo9bO/eRnWSs+bSQfeKQ5GwIs/JPpj79Dlbkk/GodTM5GWIJaLNHNQHCAw==}', 'none', NULL, NULL); INSERT INTO public.history_transactions VALUES ('f7cb8309318368f694c8830bf789841e7e2c46dce30e60969d88bd0ce588cbe9', 2, 3, 'GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H', 3, 100, 1, '2018-07-31 20:17:05.798441', '2018-07-31 20:17:05.798441', 8589946880, '<KEY>', 'AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA=', 'AAAAAQAAAAAAAAABAAAAAgAAAAAAAAACAAAAAAAAAABuaCbVXZ2DlXWarV6UxwbW3GNJgpn3ASChIFp5bxSIWgAAAA34R1gAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAACAAAAAAAAAABi/B0L0JGythwN1lY0aypo19NHxvLCyO5tBEcCVvwF9w3gtpViyWrUAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==', 'AAAAAgAAAAMAAAACAAAAAAAAAABi/B0L<KEY>', '{EAGgoJ4QB71r4ssnIiR95KfcqE0LZ9khY2wqi1FDwSs3EbfIbiExPXrX8ZRAa1uIoiZK4MkHjgqvyBmxntkQAA==}', 'none', NULL, NULL); -- -- Name: history_accounts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: - -- SELECT pg_catalog.setval('public.history_accounts_id_seq', 4, true); -- -- Name: history_assets_id_seq; Type: SEQUENCE SET; Schema: public; Owner: - -- SELECT pg_catalog.setval('public.history_assets_id_seq', 2, true); -- -- Name: history_operation_participants_id_seq; Type: SEQUENCE SET; Schema: public; Owner: - -- SELECT pg_catalog.setval('public.history_operation_participants_id_seq', 51, true); -- -- Name: history_transaction_participants_id_seq; Type: SEQUENCE SET; Schema: public; Owner: - -- SELECT pg_catalog.setval('public.history_transaction_participants_id_seq', 51, true); -- -- Name: asset_stats asset_stats_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.asset_stats ADD CONSTRAINT asset_stats_pkey PRIMARY KEY (id); -- -- Name: gorp_migrations gorp_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.gorp_migrations ADD CONSTRAINT gorp_migrations_pkey PRIMARY KEY (id); -- -- Name: history_assets history_assets_asset_code_asset_type_asset_issuer_key; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.history_assets ADD CONSTRAINT history_assets_asset_code_asset_type_asset_issuer_key UNIQUE (asset_code, asset_type, asset_issuer); -- -- Name: history_assets history_assets_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.history_assets ADD CONSTRAINT history_assets_pkey PRIMARY KEY (id); -- -- Name: history_operation_participants history_operation_participants_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.history_operation_participants ADD CONSTRAINT history_operation_participants_pkey PRIMARY KEY (id); -- -- Name: history_transaction_participants history_transaction_participants_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.history_transaction_participants ADD CONSTRAINT history_transaction_participants_pkey PRIMARY KEY (id); -- -- Name: asset_by_code; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX asset_by_code ON public.history_assets USING btree (asset_code); -- -- Name: asset_by_issuer; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX asset_by_issuer ON public.history_assets USING btree (asset_issuer); -- -- Name: by_account; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX by_account ON public.history_transactions USING btree (account, account_sequence); -- -- Name: by_hash; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX by_hash ON public.history_transactions USING btree (transaction_hash); -- -- Name: by_ledger; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX by_ledger ON public.history_transactions USING btree (ledger_sequence, application_order); -- -- Name: hist_e_by_order; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX hist_e_by_order ON public.history_effects USING btree (history_operation_id, "order"); -- -- Name: hist_e_id; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX hist_e_id ON public.history_effects USING btree (history_account_id, history_operation_id, "order"); -- -- Name: hist_op_p_id; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX hist_op_p_id ON public.history_operation_participants USING btree (history_account_id, history_operation_id); -- -- Name: hist_tx_p_id; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX hist_tx_p_id ON public.history_transaction_participants USING btree (history_account_id, history_transaction_id); -- -- Name: hop_by_hoid; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX hop_by_hoid ON public.history_operation_participants USING btree (history_operation_id); -- -- Name: hs_ledger_by_id; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX hs_ledger_by_id ON public.history_ledgers USING btree (id); -- -- Name: hs_transaction_by_id; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX hs_transaction_by_id ON public.history_transactions USING btree (id); -- -- Name: htp_by_htid; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX htp_by_htid ON public.history_transaction_participants USING btree (history_transaction_id); -- -- Name: htrd_by_base_account; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX htrd_by_base_account ON public.history_trades USING btree (base_account_id); -- -- Name: htrd_by_counter_account; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX htrd_by_counter_account ON public.history_trades USING btree (counter_account_id); -- -- Name: htrd_by_offer; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX htrd_by_offer ON public.history_trades USING btree (offer_id); -- -- Name: htrd_counter_lookup; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX htrd_counter_lookup ON public.history_trades USING btree (counter_asset_id); -- -- Name: htrd_pair_time_lookup; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX htrd_pair_time_lookup ON public.history_trades USING btree (base_asset_id, counter_asset_id, ledger_closed_at); -- -- Name: htrd_pid; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX htrd_pid ON public.history_trades USING btree (history_operation_id, "order"); -- -- Name: htrd_time_lookup; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX htrd_time_lookup ON public.history_trades USING btree (ledger_closed_at); -- -- Name: index_history_accounts_on_address; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX index_history_accounts_on_address ON public.history_accounts USING btree (address); -- -- Name: index_history_accounts_on_id; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX index_history_accounts_on_id ON public.history_accounts USING btree (id); -- -- Name: index_history_effects_on_type; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX index_history_effects_on_type ON public.history_effects USING btree (type); -- -- Name: index_history_ledgers_on_closed_at; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX index_history_ledgers_on_closed_at ON public.history_ledgers USING btree (closed_at); -- -- Name: index_history_ledgers_on_id; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX index_history_ledgers_on_id ON public.history_ledgers USING btree (id); -- -- Name: index_history_ledgers_on_importer_version; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX index_history_ledgers_on_importer_version ON public.history_ledgers USING btree (importer_version); -- -- Name: index_history_ledgers_on_ledger_hash; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX index_history_ledgers_on_ledger_hash ON public.history_ledgers USING btree (ledger_hash); -- -- Name: index_history_ledgers_on_previous_ledger_hash; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX index_history_ledgers_on_previous_ledger_hash ON public.history_ledgers USING btree (previous_ledger_hash); -- -- Name: index_history_ledgers_on_sequence; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX index_history_ledgers_on_sequence ON public.history_ledgers USING btree (sequence); -- -- Name: index_history_operations_on_id; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX index_history_operations_on_id ON public.history_operations USING btree (id); -- -- Name: index_history_operations_on_transaction_id; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX index_history_operations_on_transaction_id ON public.history_operations USING btree (transaction_id); -- -- Name: index_history_operations_on_type; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX index_history_operations_on_type ON public.history_operations USING btree (type); -- -- Name: index_history_transactions_on_id; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX index_history_transactions_on_id ON public.history_transactions USING btree (id); -- -- Name: trade_effects_by_order_book; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX trade_effects_by_order_book ON public.history_effects USING btree (((details ->> 'sold_asset_type'::text)), ((details ->> 'sold_asset_code'::text)), ((details ->> 'sold_asset_issuer'::text)), ((details ->> 'bought_asset_type'::text)), ((details ->> 'bought_asset_code'::text)), ((details ->> 'bought_asset_issuer'::text))) WHERE (type = 33); -- -- Name: asset_stats asset_stats_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.asset_stats ADD CONSTRAINT asset_stats_id_fkey FOREIGN KEY (id) REFERENCES public.history_assets(id) ON UPDATE RESTRICT ON DELETE CASCADE; -- -- Name: history_trades history_trades_base_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.history_trades ADD CONSTRAINT history_trades_base_account_id_fkey FOREIGN KEY (base_account_id) REFERENCES public.history_accounts(id); -- -- Name: history_trades history_trades_base_asset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.history_trades ADD CONSTRAINT history_trades_base_asset_id_fkey FOREIGN KEY (base_asset_id) REFERENCES public.history_assets(id); -- -- Name: history_trades history_trades_counter_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.history_trades ADD CONSTRAINT history_trades_counter_account_id_fkey FOREIGN KEY (counter_account_id) REFERENCES public.history_accounts(id); -- -- Name: history_trades history_trades_counter_asset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.history_trades ADD CONSTRAINT history_trades_counter_asset_id_fkey FOREIGN KEY (counter_asset_id) REFERENCES public.history_assets(id); -- -- PostgreSQL database dump complete --
<filename>3 course/database_labs/KR3/kr3.sql @@ Задание 1: // Автор INSERT INTO "Автор" (name) VALUES ('<NAME>.'); INSERT INTO "Автор" (name) VALUES ('<NAME>.'); INSERT INTO "Автор" (name) VALUES ('<NAME>.'); INSERT INTO "Автор" (name) VALUES ('<NAME>.'); // Издательство INSERT INTO "Издательство" (name) VALUES ('Питер'); INSERT INTO "Издательство" (name) VALUES ('Дрофа'); INSERT INTO "Издательство" (name) VALUES ('Феникс'); INSERT INTO "Издательство" (name) VALUES ('Финансы и статистика'); // Книга INSERT INTO "Книга" (name, year_out) VALUES ('Основы программирования', '2003'); INSERT INTO "Книга" (name, year_out) VALUES ('Мировая экономика', '2000'); INSERT INTO "Книга" (name, year_out) VALUES ('Информатика', '2007'); INSERT INTO "Книга" (name, year_out) VALUES ('Операционные системы', '2007'); INSERT INTO "Книга" (name, year_out) VALUES ('Физика 11 класс', '1999'); INSERT INTO "Книга" (name, year_out) VALUES ('Химия 10 класс', '2005'); // Сводная INSERT INTO "Сводная" (id_books, id_authors, id_publishers) VALUES (1,3,1); INSERT INTO "Сводная" (id_books, id_authors, id_publishers) VALUES (2,1,4); INSERT INTO "Сводная" (id_books, id_authors, id_publishers) VALUES (6,4,2); INSERT INTO "Сводная" (id_books, id_authors, id_publishers) VALUES (5,2,2); INSERT INTO "Сводная" (id_books, id_authors, id_publishers) VALUES (3,3,1); INSERT INTO "Сводная" (id_books, id_authors, id_publishers) VALUES (3,1,1); INSERT INTO "Сводная" (id_books, id_authors, id_publishers) VALUES (4,1,1); INSERT INTO "Сводная" (id_books, id_authors, id_publishers) VALUES (4,1,3); @@ Задание 2: INSERT INTO "Книга" (name, year_out) SELECT 'SQL Server', '2008'; @@ Задание 3: INSERT INTO "Автор" (name) VALUES ('<NAME>.'), ('<NAME>.'), ('<NAME>.'); @@ Задание 4: INSERT INTO "Книга" (name, year_out) VALUES ('MySQL', DEFAULT) @@ Задание 5: INSERT INTO "Сводная" (id_books, id_authors, id_publishers) SELECT MAX(id_books), MIN(id_authors), TRUNC(AVG(id_publishers)) FROM "Книга", "Автор", "Издательство"; @@ Задание 6: DELETE FROM "Сводная" as sv Where sv.id_books = (SELECT b.id_books from "Книга" as b WHERE year_out = (SELECT MIN(year_out) from "Книга")); @@ Задание 7: UPDATE "Сводная" SET "id_publishers" = (select iz."id_publishers" from "Издательство" iz where iz.name = 'Дрофа') WHERE id_authors = 3; @@ Задание 8: UPDATE "Книга" SET year_out = year_out + 1 WHERE id_books IN (SELECT id_books FROM "Книга" where name LIKE '_и%'); @@ Задание 9: SELECT year_out, COUNT(*) AS "Количество книг" FROM "Книга" GROUP BY year_out HAVING year_out = (SELECT MAX(year_out) FROM "Книга"); @@ Задание 10: SELECT name, COUNT(id_authors) FROM "Книга" AS K INNER JOIN "Сводная" as S ON S.id_books = K.id_books GROUP BY name @@ Задание 11: SELECT name FROM "Книга" AS K INNER JOIN "Сводная" as S ON S.id_books = K.id_books GROUP BY name HAVING COUNT(id_authors) = 2 @@ Задание 12: SELECT name FROM "Издательство" WHERE (name LIKE ('%ф%')) OR (name LIKE ('%Ф%')) @@ Задание 13: SELECT name, year_out FROM "Книга" WHERE year_out < 2000 OR year_out > 2006 @@ Задание 14: SELECT name, (Select LENGTH(name) - LENGTH(replace(A.name,'о','')) FROM "Автор" where A.id_authors = id_authors) as "Количество букв 'о'" FROM "Автор" as A @@ Задание 15: SELECT name, COUNT(id_books) FROM "Автор" AS A INNER JOIN "Сводная" as S ON S.id_authors = A.id_authors GROUP BY name HAVING COUNT(id_books) >= 2 @@ Задание 16: CREATE OR REPLACE FUNCTION count_alphabet() RETURNS TABLE ("Символ" text, "Количество повторений" integer) LANGUAGE plpgsql AS $BODY$ DECLARE str text; i integer; BEGIN str := (select string_agg(lower(name),'') from "Книга"); i := ASCII('а'); WHILE i <= ASCII('я') LOOP RETURN QUERY ( SELECT chr(i) , (length(str)- length(replace(str, chr(i), ''))) ); i := i+1; END LOOP; END; $BODY$
--CLIENT create class t_tr(i int, tbl varchar(255)); create class t1(i int) reuse_oid; create trigger tr1 before delete on t1 execute insert into t_tr values(obj.i, 't1'); insert into t1 values (1), (2), (3), (4), (5), (6); create class t2(i int) reuse_oid; create trigger tr2 before delete on t2 execute insert into t_tr values(obj.i, 't2'); insert into t2 values (2), (3), (4), (5), (6), (7); create class t3(i int) reuse_oid; create trigger tr3 before delete on t3 execute insert into t_tr values(obj.i, 't3'); insert into t3 values (3), (4), (5), (6), (7), (8); delete t2, t3 from t1 inner join t2 on t1.i=t2.i inner join t3 on t2.i=t3.i; commit; insert into t2 values (10), (11); insert into t3 values (12), (13); commit; select * from t1 order by 1; select * from t2 order by 1; select * from t3 order by 1; select * from t_tr order by 1, 2; drop class t1; drop class t2; drop class t3; drop class t_tr;