sql
stringlengths
6
1.05M
ALTER TABLE `skill` ADD COLUMN `flag` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0;
SELECT E.empid AS MaNv, E.empname AS TenNv, E.salary AS Luong, E.sex AS GioiTing, D.departmentname AS TenPhong FROM Employee E JOIN Department D ON E.DepartmentId = D.DepartmentId SELECT * FROM Employee WHERE Employee.EmpName LIKE '%g' SELECT CONCAT(E.empid, '-', E.empname) AS NhanVien, CONCAT(D.DepartmentId, '-', D.departmentname) AS Phong FROM Employee E JOIN Department D ON E.DepartmentId = D.DepartmentId UPDATE Employee SET Status = NULL WHERE Status = 0; DELETE Employee WHERE Status IS NULL CREATE INDEX EmpName_Idx ON Employee (EmpName) DROP VIEW IF EXISTS vwEmployee CREATE VIEW vwEmployee AS SELECT EmpName AS [<NAME>], DepartmentName AS [Ten Phong Ban], Location AS [Noi Lam Viec], EmpTypeName AS [Loai Nhan Vien] FROM Employee E LEFT JOIN EmployeeType ET ON E.EmpTypeId = ET.EmpTypeId LEFT JOIN Department D ON E.DepartmentId = D.DepartmentId GO CREATE PROCEDURE SelectBySalary @min FLOAT, @max FLOAT AS SELECT * FROM Employee WHERE Salary >= @min AND Salary <= @max GO CREATE PROCEDURE SelectBySalaryBiggerThan7Mil AS SELECT * FROM Employee WHERE Salary >= 7000000 GO
CREATE DATABASE [ENode] GO USE [ENode] GO CREATE TABLE [dbo].[Command] ( [Sequence] BIGINT IDENTITY (1, 1) NOT NULL, [CommandId] NVARCHAR (36) NOT NULL, [CreatedOn] DATETIME NOT NULL, [AggregateRootId] NVARCHAR (36) NULL, [MessagePayload] NVARCHAR (MAX) NULL, [MessageTypeName] NVARCHAR (256) NULL, CONSTRAINT [PK_Command] PRIMARY KEY CLUSTERED ([Sequence] ASC) ) GO CREATE UNIQUE INDEX [IX_Command_CommandId] ON [dbo].[Command] ([CommandId] ASC) GO CREATE TABLE [dbo].[EventStream] ( [Sequence] BIGINT IDENTITY (1, 1) NOT NULL, [AggregateRootTypeName] NVARCHAR (256) NOT NULL, [AggregateRootId] NVARCHAR (36) NOT NULL, [Version] INT NOT NULL, [CommandId] NVARCHAR (36) NOT NULL, [CreatedOn] DATETIME NOT NULL, [Events] NVARCHAR (MAX) NOT NULL, CONSTRAINT [PK_EventStream] PRIMARY KEY CLUSTERED ([Sequence] ASC) ) GO CREATE UNIQUE INDEX [IX_EventStream_AggId_Version] ON [dbo].[EventStream] ([AggregateRootId] ASC, [Version] ASC) GO CREATE UNIQUE INDEX [IX_EventStream_AggId_CommandId] ON [dbo].[EventStream] ([AggregateRootId] ASC, [CommandId] ASC) GO CREATE TABLE [dbo].[PublishedVersion] ( [Sequence] BIGINT IDENTITY (1, 1) NOT NULL, [ProcessorName] NVARCHAR (128) NOT NULL, [AggregateRootTypeName] NVARCHAR (256) NOT NULL, [AggregateRootId] NVARCHAR (36) NOT NULL, [Version] INT NOT NULL, [CreatedOn] DATETIME NOT NULL, CONSTRAINT [PK_PublishedVersion] PRIMARY KEY CLUSTERED ([Sequence] ASC) ) GO CREATE UNIQUE INDEX [IX_PublishedVersion_AggId_Version] ON [dbo].[PublishedVersion] ([ProcessorName] ASC, [AggregateRootId] ASC, [Version] ASC) GO CREATE TABLE [dbo].[LockKey] ( [Name] NVARCHAR (128) NOT NULL, CONSTRAINT [PK_LockKey] PRIMARY KEY CLUSTERED ([Name] ASC) ) GO
<gh_stars>1-10 delete from eg_appconfig_values where key_id in(select id from eg_appconfig where key_name='DemandReasonGlcodeMap'); INSERT INTO eg_appconfig_values ( ID, KEY_ID, EFFECTIVE_FROM, VALUE, VERSION ) VALUES (nextval('SEQ_EG_APPCONFIG_VALUES'), (SELECT id FROM EG_APPCONFIG WHERE KEY_NAME='DemandReasonGlcodeMap'), current_date, 'WTAXDONATION=1100201' ,0); INSERT INTO eg_appconfig_values ( ID, KEY_ID, EFFECTIVE_FROM, VALUE, VERSION ) VALUES (nextval('SEQ_EG_APPCONFIG_VALUES'), (SELECT id FROM EG_APPCONFIG WHERE KEY_NAME='DemandReasonGlcodeMap'), current_date, 'WTAXSECURITY=1100201' ,0); INSERT INTO eg_appconfig_values ( ID, KEY_ID, EFFECTIVE_FROM, VALUE, VERSION ) VALUES (nextval('SEQ_EG_APPCONFIG_VALUES'), (SELECT id FROM EG_APPCONFIG WHERE KEY_NAME='DemandReasonGlcodeMap'), current_date, 'WTAXFIELDINSPEC=1407011' ,0); INSERT INTO eg_appconfig_values ( ID, KEY_ID, EFFECTIVE_FROM, VALUE, VERSION ) VALUES (nextval('SEQ_EG_APPCONFIG_VALUES'), (SELECT id FROM EG_APPCONFIG WHERE KEY_NAME='DemandReasonGlcodeMap'), current_date, 'WTAXCHARGES=1405016' ,0); INSERT INTO eg_appconfig_values ( ID, KEY_ID, EFFECTIVE_FROM, VALUE, VERSION ) VALUES (nextval('SEQ_EG_APPCONFIG_VALUES'), (SELECT id FROM EG_APPCONFIG WHERE KEY_NAME='DemandReasonGlcodeMap'), current_date, 'WTADVANCE=3504106' ,0);
<reponame>delux-internal/gameservers CREATE TABLE sm_admins ( id int(10) unsigned NOT NULL auto_increment, authtype enum('steam','name','ip') NOT NULL, identity varchar(65) NOT NULL, password varchar(65), flags varchar(30) NOT NULL, name varchar(65) NOT NULL, immunity int(10) unsigned NOT NULL, PRIMARY KEY (id) ); CREATE TABLE sm_groups ( id int(10) unsigned NOT NULL auto_increment, flags varchar(30) NOT NULL, name varchar(120) NOT NULL, immunity_level int(1) unsigned NOT NULL, PRIMARY KEY (id) ); CREATE TABLE sm_group_immunity ( group_id int(10) unsigned NOT NULL, other_id int(10) unsigned NOT NULL, PRIMARY KEY (group_id, other_id) ); CREATE TABLE sm_group_overrides ( group_id int(10) unsigned NOT NULL, type enum('command','group') NOT NULL, name varchar(32) NOT NULL, access enum('allow','deny') NOT NULL, PRIMARY KEY (group_id, type, name) ); CREATE TABLE sm_overrides ( type enum('command','group') NOT NULL, name varchar(32) NOT NULL, flags varchar(30) NOT NULL, PRIMARY KEY (type,name) ); CREATE TABLE sm_admins_groups ( admin_id int(10) unsigned NOT NULL, group_id int(10) unsigned NOT NULL, inherit_order int(10) NOT NULL, PRIMARY KEY (admin_id, group_id) ); CREATE TABLE IF NOT EXISTS sm_config ( cfg_key varchar(32) NOT NULL, cfg_value varchar(255) NOT NULL, PRIMARY KEY (cfg_key) ); INSERT INTO sm_config (cfg_key, cfg_value) VALUES ('admin_version', '1.0.0.1409') ON DUPLICATE KEY UPDATE cfg_value = '1.0.0.1409';
<filename>eicu_vli/analysis/sql/intake72hrs_full.sql -- this query extracts all intake fluids from intakeoutput With t1 AS ( SELECT distinct patientunitstayid FROM `physionet-data.eicu_crd.intakeoutput` WHERE intakeoutputoffset BETWEEN 36*60 AND 84*60 AND LOWER (cellpath) LIKE '%intake%' AND cellvaluenumeric IS NOT NULL AND ( LOWER (cellpath) LIKE '%crystalloids%' OR LOWER (cellpath) LIKE '%saline%' OR LOWER (cellpath) LIKE '%ringer%' OR LOWER (cellpath) LIKE '%ivf%' OR LOWER (cellpath) LIKE '% ns %' )), t2 AS ( SELECT patientunitstayid, sum(cellvaluenumeric) as intakes_total72 FROM `physionet-data.eicu_crd.intakeoutput` WHERE intakeoutputoffset BETWEEN 36*60 AND 84*60 AND cellvaluenumeric IS NOT NULL AND LOWER (cellpath) LIKE '%intake%' GROUP BY patientunitstayid ), t3 AS ( SELECT * FROM t1 INNER JOIN t2 using (patientunitstayid) ), t4 as ( SELECT patientunitstayid, sum(cellvaluenumeric) as outputs_total72, FROM `physionet-data.eicu_crd.intakeoutput` WHERE intakeoutputoffset BETWEEN 36*60 AND 84*60 AND cellvaluenumeric IS NOT NULL AND LOWER (cellpath) LIKE '%output%' GROUP BY patientunitstayid), reliable_fluid_data AS ( -- This subqueryquery selects only patients coming from ICUs with reliable fluids data. -- This query should be used every time fluids data is required on a given project. SELECT patientunitstayid FROM `physionet-data.eicu_crd.patient` WHERE hospitaldischargeyear = 2014 AND hospitalid = 300 AND wardid = 822 OR hospitaldischargeyear = 2014 AND hospitalid = 144 AND wardid = 267 OR hospitaldischargeyear = 2014 AND hospitalid = 452 AND wardid = 1074 OR hospitaldischargeyear = 2014 AND hospitalid = 338 AND wardid = 841 OR hospitaldischargeyear = 2014 AND hospitalid = 155 AND wardid = 362 OR hospitaldischargeyear = 2014 AND hospitalid = 183 AND wardid = 431 OR hospitaldischargeyear = 2014 AND hospitalid = 300 AND wardid = 829 OR hospitaldischargeyear = 2014 AND hospitalid = 142 AND wardid = 290 OR hospitaldischargeyear = 2014 AND hospitalid = 188 AND wardid = 445 OR hospitaldischargeyear = 2014 AND hospitalid = 167 AND wardid = 413 OR hospitaldischargeyear = 2014 AND hospitalid = 171 AND wardid = 335 OR hospitaldischargeyear = 2014 AND hospitalid = 165 AND wardid = 402 OR hospitaldischargeyear = 2014 AND hospitalid = 416 AND wardid = 1020 OR hospitaldischargeyear = 2014 AND hospitalid = 420 AND wardid = 1026 OR hospitaldischargeyear = 2014 AND hospitalid = 176 AND wardid = 376 OR hospitaldischargeyear = 2014 AND hospitalid = 445 AND wardid = 1087 OR hospitaldischargeyear = 2014 AND hospitalid = 188 AND wardid = 451 OR hospitaldischargeyear = 2014 AND hospitalid = 307 AND wardid = 804 OR hospitaldischargeyear = 2014 AND hospitalid = 420 AND wardid = 1039 OR hospitaldischargeyear = 2014 AND hospitalid = 143 AND wardid = 259 OR hospitaldischargeyear = 2014 AND hospitalid = 167 AND wardid = 408 OR hospitaldischargeyear = 2014 AND hospitalid = 420 AND wardid = 1027 OR hospitaldischargeyear = 2014 AND hospitalid = 307 AND wardid = 766 OR hospitaldischargeyear = 2014 AND hospitalid = 243 AND wardid = 609 OR hospitaldischargeyear = 2014 AND hospitalid = 141 AND wardid = 286 OR hospitaldischargeyear = 2014 AND hospitalid = 181 AND wardid = 425 OR hospitaldischargeyear = 2014 AND hospitalid = 420 AND wardid = 1029 OR hospitaldischargeyear = 2014 AND hospitalid = 416 AND wardid = 1017 OR hospitaldischargeyear = 2014 AND hospitalid = 171 AND wardid = 377 OR hospitaldischargeyear = 2014 AND hospitalid = 141 AND wardid = 307 OR hospitaldischargeyear = 2014 AND hospitalid = 154 AND wardid = 317 OR hospitaldischargeyear = 2014 AND hospitalid = 148 AND wardid = 347 OR hospitaldischargeyear = 2014 AND hospitalid = 243 AND wardid = 607 OR hospitaldischargeyear = 2014 AND hospitalid = 422 AND wardid = 1025 OR hospitaldischargeyear = 2014 AND hospitalid = 345 AND wardid = 876 OR hospitaldischargeyear = 2014 AND hospitalid = 148 AND wardid = 347 OR hospitaldischargeyear = 2014 AND hospitalid = 243 AND wardid = 607 OR hospitaldischargeyear = 2014 AND hospitalid = 422 AND wardid = 1025 OR hospitaldischargeyear = 2014 AND hospitalid = 345 AND wardid = 876 OR hospitaldischargeyear = 2014 AND hospitalid = 148 AND wardid = 384 OR hospitaldischargeyear = 2014 AND hospitalid = 206 AND wardid = 489 OR hospitaldischargeyear = 2014 AND hospitalid = 183 AND wardid = 430 OR hospitaldischargeyear = 2014 AND hospitalid = 246 AND wardid = 602 OR hospitaldischargeyear = 2014 AND hospitalid = 142 AND wardid = 256 OR hospitaldischargeyear = 2014 AND hospitalid = 416 AND wardid = 1021 OR hospitaldischargeyear = 2014 AND hospitalid = 165 AND wardid = 337 OR hospitaldischargeyear = 2014 AND hospitalid = 188 AND wardid = 434 OR hospitaldischargeyear = 2014 AND hospitalid = 420 AND wardid = 1037 OR hospitaldischargeyear = 2014 AND hospitalid = 300 AND wardid = 809 OR hospitaldischargeyear = 2014 AND hospitalid = 337 AND wardid = 888 OR hospitaldischargeyear = 2014 AND hospitalid = 390 AND wardid = 953 OR hospitaldischargeyear = 2014 AND hospitalid = 181 AND wardid = 428 OR hospitaldischargeyear = 2014 AND hospitalid = 420 AND wardid = 1032 OR hospitaldischargeyear = 2014 AND hospitalid = 171 AND wardid = 386 OR hospitaldischargeyear = 2014 AND hospitalid = 244 AND wardid = 608 OR hospitaldischargeyear = 2014 AND hospitalid = 175 AND wardid = 417 OR hospitaldischargeyear = 2014 AND hospitalid = 142 AND wardid = 285 OR hospitaldischargeyear = 2014 AND hospitalid = 176 AND wardid = 391 OR hospitaldischargeyear = 2014 AND hospitalid = 154 AND wardid = 394 OR hospitaldischargeyear = 2014 AND hospitalid = 252 AND wardid = 622 OR hospitaldischargeyear = 2014 AND hospitalid = 188 AND wardid = 464 OR hospitaldischargeyear = 2014 AND hospitalid = 140 AND wardid = 261 OR hospitaldischargeyear = 2014 AND hospitalid = 248 AND wardid = 619 OR hospitaldischargeyear = 2014 AND hospitalid = 171 AND wardid = 364 OR hospitaldischargeyear = 2014 AND hospitalid = 420 AND wardid = 1035 OR hospitaldischargeyear = 2014 AND hospitalid = 167 AND wardid = 345 OR hospitaldischargeyear = 2014 AND hospitalid = 142 AND wardid = 273 OR hospitaldischargeyear = 2014 AND hospitalid = 436 AND wardid = 1053 OR hospitaldischargeyear = 2014 AND hospitalid = 312 AND wardid = 814 OR hospitaldischargeyear = 2014 AND hospitalid = 157 AND wardid = 369 OR hospitaldischargeyear = 2014 AND hospitalid = 440 AND wardid = 1043 OR hospitaldischargeyear = 2014 AND hospitalid = 243 AND wardid = 601 OR hospitaldischargeyear = 2014 AND hospitalid = 394 AND wardid = 996 OR hospitaldischargeyear = 2014 AND hospitalid = 420 AND wardid = 1032 OR hospitaldischargeyear = 2015 AND hospitalid = 140 AND wardid = 261 OR hospitaldischargeyear = 2015 AND hospitalid = 141 AND wardid = 286 OR hospitaldischargeyear = 2015 AND hospitalid = 141 AND wardid = 307 OR hospitaldischargeyear = 2015 AND hospitalid = 142 AND wardid = 273 OR hospitaldischargeyear = 2015 AND hospitalid = 142 AND wardid = 285 OR hospitaldischargeyear = 2015 AND hospitalid = 142 AND wardid = 290 OR hospitaldischargeyear = 2015 AND hospitalid = 143 AND wardid = 259 OR hospitaldischargeyear = 2015 AND hospitalid = 144 AND wardid = 267 OR hospitaldischargeyear = 2015 AND hospitalid = 148 AND wardid = 347 OR hospitaldischargeyear = 2015 AND hospitalid = 148 AND wardid = 384 OR hospitaldischargeyear = 2015 AND hospitalid = 154 AND wardid = 317 OR hospitaldischargeyear = 2015 AND hospitalid = 154 AND wardid = 394 OR hospitaldischargeyear = 2015 AND hospitalid = 155 AND wardid = 362 OR hospitaldischargeyear = 2015 AND hospitalid = 157 AND wardid = 369 OR hospitaldischargeyear = 2015 AND hospitalid = 165 AND wardid = 337 OR hospitaldischargeyear = 2015 AND hospitalid = 165 AND wardid = 402 OR hospitaldischargeyear = 2015 AND hospitalid = 167 AND wardid = 345 OR hospitaldischargeyear = 2015 AND hospitalid = 167 AND wardid = 408 OR hospitaldischargeyear = 2015 AND hospitalid = 167 AND wardid = 413 OR hospitaldischargeyear = 2015 AND hospitalid = 171 AND wardid = 335 OR hospitaldischargeyear = 2015 AND hospitalid = 171 AND wardid = 377 OR hospitaldischargeyear = 2015 AND hospitalid = 175 AND wardid = 417 OR hospitaldischargeyear = 2015 AND hospitalid = 176 AND wardid = 376 OR hospitaldischargeyear = 2015 AND hospitalid = 176 AND wardid = 391 OR hospitaldischargeyear = 2015 AND hospitalid = 180 AND wardid = 427 OR hospitaldischargeyear = 2015 AND hospitalid = 181 AND wardid = 425 OR hospitaldischargeyear = 2015 AND hospitalid = 181 AND wardid = 428 OR hospitaldischargeyear = 2015 AND hospitalid = 183 AND wardid = 430 OR hospitaldischargeyear = 2015 AND hospitalid = 183 AND wardid = 431 OR hospitaldischargeyear = 2015 AND hospitalid = 184 AND wardid = 429 OR hospitaldischargeyear = 2015 AND hospitalid = 188 AND wardid = 434 OR hospitaldischargeyear = 2015 AND hospitalid = 188 AND wardid = 445 OR hospitaldischargeyear = 2015 AND hospitalid = 188 AND wardid = 451 OR hospitaldischargeyear = 2015 AND hospitalid = 188 AND wardid = 464 OR hospitaldischargeyear = 2015 AND hospitalid = 199 AND wardid = 491 OR hospitaldischargeyear = 2015 AND hospitalid = 202 AND wardid = 498 OR hospitaldischargeyear = 2015 AND hospitalid = 206 AND wardid = 489 OR hospitaldischargeyear = 2015 AND hospitalid = 209 AND wardid = 506 OR hospitaldischargeyear = 2015 AND hospitalid = 243 AND wardid = 601 OR hospitaldischargeyear = 2015 AND hospitalid = 243 AND wardid = 607 OR hospitaldischargeyear = 2015 AND hospitalid = 243 AND wardid = 609 OR hospitaldischargeyear = 2015 AND hospitalid = 244 AND wardid = 608 OR hospitaldischargeyear = 2015 AND hospitalid = 246 AND wardid = 602 OR hospitaldischargeyear = 2015 AND hospitalid = 248 AND wardid = 619 OR hospitaldischargeyear = 2015 AND hospitalid = 252 AND wardid = 611 OR hospitaldischargeyear = 2015 AND hospitalid = 252 AND wardid = 622 OR hospitaldischargeyear = 2015 AND hospitalid = 252 AND wardid = 628 OR hospitaldischargeyear = 2015 AND hospitalid = 253 AND wardid = 613 OR hospitaldischargeyear = 2015 AND hospitalid = 300 AND wardid = 772 OR hospitaldischargeyear = 2015 AND hospitalid = 300 AND wardid = 809 OR hospitaldischargeyear = 2015 AND hospitalid = 300 AND wardid = 822 OR hospitaldischargeyear = 2015 AND hospitalid = 300 AND wardid = 829 OR hospitaldischargeyear = 2015 AND hospitalid = 300 AND wardid = 831 OR hospitaldischargeyear = 2015 AND hospitalid = 312 AND wardid = 814 OR hospitaldischargeyear = 2015 AND hospitalid = 338 AND wardid = 840 OR hospitaldischargeyear = 2015 AND hospitalid = 338 AND wardid = 841 OR hospitaldischargeyear = 2015 AND hospitalid = 345 AND wardid = 876 OR hospitaldischargeyear = 2015 AND hospitalid = 383 AND wardid = 983 OR hospitaldischargeyear = 2015 AND hospitalid = 384 AND wardid = 991 OR hospitaldischargeyear = 2015 AND hospitalid = 388 AND wardid = 962 OR hospitaldischargeyear = 2015 AND hospitalid = 390 AND wardid = 953 OR hospitaldischargeyear = 2015 AND hospitalid = 390 AND wardid = 966 OR hospitaldischargeyear = 2015 AND hospitalid = 416 AND wardid = 1017 OR hospitaldischargeyear = 2015 AND hospitalid = 416 AND wardid = 1020 OR hospitaldischargeyear = 2015 AND hospitalid = 416 AND wardid = 1021 OR hospitaldischargeyear = 2015 AND hospitalid = 419 AND wardid = 1030 OR hospitaldischargeyear = 2015 AND hospitalid = 420 AND wardid = 1026 OR hospitaldischargeyear = 2015 AND hospitalid = 420 AND wardid = 1027 OR hospitaldischargeyear = 2015 AND hospitalid = 420 AND wardid = 1032 OR hospitaldischargeyear = 2015 AND hospitalid = 420 AND wardid = 1035 OR hospitaldischargeyear = 2015 AND hospitalid = 420 AND wardid = 1037 OR hospitaldischargeyear = 2015 AND hospitalid = 422 AND wardid = 1025 OR hospitaldischargeyear = 2015 AND hospitalid = 428 AND wardid = 1048 OR hospitaldischargeyear = 2015 AND hospitalid = 436 AND wardid = 1053 OR hospitaldischargeyear = 2015 AND hospitalid = 440 AND wardid = 1043 OR hospitaldischargeyear = 2015 AND hospitalid = 445 AND wardid = 1087 OR hospitaldischargeyear = 2015 AND hospitalid = 452 AND wardid = 1074 ) SELECT * FROM t3 LEFT JOIN t4 USING (patientunitstayid) --INNER JOIN --reliable_fluid_data --USING (patientunitstayid) WHERE intakes_total72 IS NOT NULL ORDER BY patientunitstayid
-- file:interval.sql ln:202 expect:true SELECT interval '1 -2:03' minute to second
<filename>MySql/DML/Central-GetTier1Configuration.sql USE Central; DROP PROCEDURE IF EXISTS GetTier1Configuration; DELIMITER // CREATE PROCEDURE GetTier1Configuration ( IN HostName VARCHAR(255), IN ServiceName VARCHAR(255) ) BEGIN DECLARE Environment VARCHAR(3); SELECT hosts.Environment into Environment FROM Hosts hosts WHERE hosts.HostName=HostName; #call DebugLog(Environment); SELECT Name, Value from Tier1Configuration tier1Config WHERE tier1Config.Environment = Environment and tier1Config.ServiceName = ServiceName; END // DELIMITER ;
-- -- PostgreSQL database dump -- -- Dumped from database version 12.1 -- Dumped by pg_dump version 12.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; -- -- Name: pgcrypto; Type: EXTENSION; Schema: -; Owner: - -- CREATE EXTENSION IF NOT EXISTS pgcrypto WITH SCHEMA public; -- -- Name: EXTENSION pgcrypto; Type: COMMENT; Schema: -; Owner: -- COMMENT ON EXTENSION pgcrypto IS 'cryptographic functions'; SET default_tablespace = ''; SET default_table_access_method = heap; -- -- Name: comments; Type: TABLE; Schema: public; Owner: brangi -- CREATE TABLE public.comments ( id integer NOT NULL, comment text, commenter integer, image_id integer, created_at timestamp with time zone DEFAULT CURRENT_TIMESTAMP ); ALTER TABLE public.comments OWNER TO brangi; -- -- Name: comments_id_seq; Type: SEQUENCE; Schema: public; Owner: brangi -- CREATE SEQUENCE public.comments_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.comments_id_seq OWNER TO brangi; -- -- Name: comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: brangi -- ALTER SEQUENCE public.comments_id_seq OWNED BY public.comments.id; -- -- Name: images; Type: TABLE; Schema: public; Owner: brangi -- CREATE TABLE public.images ( image_id integer NOT NULL, image_name text, image_url character varying, image_data jsonb, poster integer, created_at timestamp with time zone DEFAULT CURRENT_TIMESTAMP ); ALTER TABLE public.images OWNER TO brangi; -- -- Name: images_image_id_seq; Type: SEQUENCE; Schema: public; Owner: brangi -- CREATE SEQUENCE public.images_image_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.images_image_id_seq OWNER TO brangi; -- -- Name: images_image_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: brangi -- ALTER SEQUENCE public.images_image_id_seq OWNED BY public.images.image_id; -- -- Name: users; Type: TABLE; Schema: public; Owner: brangi -- CREATE TABLE public.users ( user_id integer NOT NULL, username character varying(50) NOT NULL, password character varying(50) NOT NULL, email character varying(355) ); ALTER TABLE public.users OWNER TO brangi; -- -- Name: users_user_id_seq; Type: SEQUENCE; Schema: public; Owner: brangi -- CREATE SEQUENCE public.users_user_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.users_user_id_seq OWNER TO brangi; -- -- Name: users_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: brangi -- ALTER SEQUENCE public.users_user_id_seq OWNED BY public.users.user_id; -- -- Name: comments id; Type: DEFAULT; Schema: public; Owner: brangi -- ALTER TABLE ONLY public.comments ALTER COLUMN id SET DEFAULT nextval('public.comments_id_seq'::regclass); -- -- Name: images image_id; Type: DEFAULT; Schema: public; Owner: brangi -- ALTER TABLE ONLY public.images ALTER COLUMN image_id SET DEFAULT nextval('public.images_image_id_seq'::regclass); -- -- Name: users user_id; Type: DEFAULT; Schema: public; Owner: brangi -- ALTER TABLE ONLY public.users ALTER COLUMN user_id SET DEFAULT nextval('public.users_user_id_seq'::regclass); -- -- Name: images unique_image; Type: CONSTRAINT; Schema: public; Owner: brangi -- ALTER TABLE ONLY public.images ADD CONSTRAINT unique_image PRIMARY KEY (image_id); -- -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: brangi -- ALTER TABLE ONLY public.users ADD CONSTRAINT users_pkey PRIMARY KEY (user_id); -- -- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: brangi -- ALTER TABLE ONLY public.users ADD CONSTRAINT users_username_key UNIQUE (username); -- -- Name: comments comments_commenter_fkey; Type: FK CONSTRAINT; Schema: public; Owner: brangi -- ALTER TABLE ONLY public.comments ADD CONSTRAINT comments_commenter_fkey FOREIGN KEY (commenter) REFERENCES public.users(user_id); -- -- Name: comments comments_image_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: brangi -- ALTER TABLE ONLY public.comments ADD CONSTRAINT comments_image_id_fkey FOREIGN KEY (image_id) REFERENCES public.images(image_id); -- -- Name: images images_poster_fkey; Type: FK CONSTRAINT; Schema: public; Owner: brangi -- ALTER TABLE ONLY public.images ADD CONSTRAINT images_poster_fkey FOREIGN KEY (poster) REFERENCES public.users(user_id); -- -- PostgreSQL database dump complete --
<filename>R for data analysis/5/SQLQuery4.sql SELECT * FROM Customer C INNER JOIN Organization O ON O.CustomerID= C.CustomerID
insert into security_group (security_group_id, created_on_date, last_updated_date, description, group_name) select 10, current_timestamp, current_timestamp, 'Role for creating passcodes', 'REMOTE_PROCTOR' where not exists (select 1 from security_group where security_group_id=10); insert into security_group_security_permission (security_permission_id, security_group_id) select 'GENERATE_PRIVATE_PASSCODE_FOR_CURRENT_USER', 10 where not exists (select 1 from security_group where security_group_id=10); insert into security_group_security_permission (security_permission_id, security_group_id) select 'GENERATE_PUBLIC_PASSCODE_FOR_CURRENT_USER', 10 where not exists (select 1 from security_group where security_group_id=10); insert into security_group_security_permission (security_permission_id, security_group_id) select 'VIEW_PASSCODES_FOR_CURRENT_USER', 10 where not exists (select 1 from security_group where security_group_id=10);
DROP DATABASE IF EXISTS test_show_tables; CREATE DATABASE test_show_tables; CREATE TABLE test_show_tables.A (A UInt8) ENGINE = TinyLog; CREATE TABLE test_show_tables.B (A UInt8) ENGINE = TinyLog; SHOW TABLES from test_show_tables; SHOW TABLES in system where engine like '%System%' and name in ('numbers', 'one'); SELECT name, toUInt32(metadata_modification_time) > 0, engine_full, create_table_query FROM system.tables WHERE database = 'test_show_tables' ORDER BY name FORMAT TSVRaw; CREATE TEMPORARY TABLE test_temporary_table (id UInt64); SELECT name FROM system.tables WHERE is_temporary = 1 AND name = 'test_temporary_table'; CREATE TABLE test_show_tables.test_log(id UInt64) ENGINE = Log; CREATE MATERIALIZED VIEW test_show_tables.test_materialized ENGINE = Log AS SELECT * FROM test_show_tables.test_log; SELECT dependencies_database, dependencies_table FROM system.tables WHERE name = 'test_log'; DROP DATABASE test_show_tables; -- Check that create_table_query works for system tables and unusual Databases DROP DATABASE IF EXISTS test_DatabaseMemory; CREATE DATABASE test_DatabaseMemory ENGINE = Memory; CREATE TABLE test_DatabaseMemory.A (A UInt8) ENGINE = Null; SELECT sum(ignore(*, metadata_modification_time, engine_full, create_table_query)) FROM system.tables WHERE database = 'test_DatabaseMemory'; DROP DATABASE test_DatabaseMemory;
select count(*) from movie_info AS mi join info_type AS it1 on (it1.info = 'release dates' AND it1.id = mi.info_type_id and mi.note LIKE '%internet%' AND mi.info IS NOT NULL AND (mi.info LIKE 'USA:% 199%' OR mi.info LIKE 'USA:% 200%')) join title AS t on (t.production_year > 2000 AND t.id = mi.movie_id) join kind_type AS kt on (kt.kind IN ('movie') AND kt.id = t.kind_id) join (select movie_id from complete_cast AS cc join comp_cast_type AS cct1 on (cct1.kind = 'complete+verified' AND cct1.id = cc.status_id)) as t_cc on(t_cc.movie_id = mi.movie_id) JOIN movie_companies AS mc on(mc.movie_id = t_cc.movie_id) join company_type AS ct on (ct.id = mc.company_type_id) join company_name AS cn on (cn.country_code = '[us]' AND cn.id = mc.company_id) JOIN movie_keyword AS mk on(mk.movie_id = mc.movie_id) join keyword AS k on (k.id = mk.keyword_id);
-- Tasks INSERT INTO tasks (id, assignee_id, closer_id, creation_time, creator_id, description, modification_time, modifier_id, resolution, status, title, version) VALUES (1, 1, 1, now(), 1, 'This example contains end-to-end tests', now(), 1, 'DONE', 'CLOSED', 'Write example application', 0); INSERT INTO tasks (id, assignee_id, closer_id, creation_time, creator_id, description, modification_time, modifier_id, resolution, status, title, version) VALUES (2, null, null, now(), 1, 'This lesson talks about end-to-end testing', now(), 1, null, 'OPEN', 'Write lesson', 0); -- Tags INSERT INTO tags (id, creation_time, modification_time, name, version) VALUES (1, now(), now(), 'example', 0); INSERT INTO tags (id, creation_time, modification_time, name, version) VALUES (2, now(), now(), 'lesson', 0); INSERT INTO tasks_tags (task_id, tag_id) VALUES (1, 1); INSERT INTO tasks_tags (task_id, tag_id) VALUES (2, 2);
-- Copyright 2018 <NAME>. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. SELECT TRUNC(sample_time,'MI') minute , sql_plan_hash_value , COUNT(*)/60 avg_act_ses FROM v$active_session_history -- dba_hist_active_sess_history WHERE sql_id = '&1' GROUP BY TRUNC(sample_time,'MI') , sql_plan_hash_value ORDER BY minute, sql_plan_hash_value /
<gh_stars>1-10 CREATE INDEX IDX_USER_RID ON IDN_UMA_RESOURCE (RESOURCE_ID, RESOURCE_OWNER_NAME, USER_DOMAIN, CLIENT_ID) /
<reponame>archzi/druid<filename>src/main/resources/tpch/q9.sql -- database: presto; groups: tpch, big_query; tables: part,supplier,lineitem,partsupp,orders,nation SELECT nation, o_year, sum(amount) AS sum_profit FROM ( SELECT n_name AS nation, extract(YEAR FROM o_orderdate) AS o_year, l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity AS amount FROM part, supplier, lineitem, partsupp, orders, nation WHERE s_suppkey = l_suppkey AND ps_suppkey = l_suppkey AND ps_partkey = l_partkey AND p_partkey = l_partkey AND o_orderkey = l_orderkey AND s_nationkey = n_nationkey AND p_name LIKE '%green%' ) AS profit GROUP BY nation, o_year ORDER BY nation, o_year DESC
-- alter table which create using int,char,varchar,bit,bit varying,nchar,nchar varying,string to add 3 range partitions having maxvalue on nvarchar field create table range_test(id int not null , test_char char(50), test_varchar varchar(2000), test_bit bit(16), test_varbit bit varying(20), test_nchar nchar(50), test_nvarchar nchar varying(2000), test_string string, test_datetime timestamp,primary key(id,test_nvarchar)); ALTER TABLE range_test PARTITION BY RANGE (test_nvarchar) ( PARTITION p0 VALUES LESS THAN (N'ddd'), PARTITION p1 VALUES LESS THAN (N'ggg'), PARTITION p2 VALUES LESS THAN MAXVALUE ); select * from db_class where class_name like 'range_test%' order by class_name; drop table range_test;
-- @testpoint: create table和LIKE INCLUDING COMMENTS参数结合使用 DROP TABLE IF EXISTS tab_12; CREATE TABLE tab_12 (id NUMBER(7) CONSTRAINT tab_12_id_nn NOT NULL, use_filename VARCHAR2(20), filename VARCHAR2(255), text VARCHAR2(2000) ); insert into tab_12 values(1,'李','小龙','截拳道大师'); create table long (like tab_12 INCLUDING COMMENTS); drop table if exists tab_12; drop table if exists long;
<reponame>TuesdayHat/CD-Organizer-DB SET MODE PostgreSQL; CREATE TABLE IF NOT EXISTS artists ( id int PRIMARY KEY auto_increment, name VARCHAR ); CREATE TABLE IF NOT EXISTS cds ( id int PRIMARY KEY auto_increment, title VARCHAR, artistid INTEGER );
<reponame>akshaytambekar17/soyosystem -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 19, 2018 at 03:46 PM -- Server version: 5.7.21-0ubuntu0.16.04.1 -- PHP Version: 7.2.1-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `soyosystem` -- -- -------------------------------------------------------- -- -- Table structure for table `project_data` -- CREATE TABLE `project_data` ( `project_id` int(100) NOT NULL, `project_name` varchar(500) NOT NULL, `project_state` varchar(200) NOT NULL, `project_dist` varchar(200) NOT NULL, `project_city` varchar(200) NOT NULL, `sys_type` varchar(500) NOT NULL, `d_id` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `project_data` -- INSERT INTO `project_data` (`project_id`, `project_name`, `project_state`, `project_dist`, `project_city`, `sys_type`, `d_id`) VALUES (1, 'Pump', 'Maharashtra', 'Pune', 'Pune', 'solar', '0'), (2, 'AC', 'Maharashtra', 'Jalgoan', 'Jalgaon', 'Conditioner', '0'), (3, '2', 'fdgdf', 'gfdgvf', 'gfg', 'gfg', 'gdfg'), (4, 'dfgvfg', 'fgf', 'fgf', 'fg', 'gfgf', '4'); -- -------------------------------------------------------- -- -- Table structure for table `soyo_device` -- CREATE TABLE `soyo_device` ( `id` bigint(11) NOT NULL, `device_name` varchar(255) NOT NULL, `drive_manufacture_id` int(11) NOT NULL, `created_at` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `soyo_device` -- INSERT INTO `soyo_device` (`id`, `device_name`, `drive_manufacture_id`, `created_at`) VALUES (3, '862118028689567', 3, ''), (4, '866762020580492', 6, '2018-02-10 10:28:16am'), (6, '813697485216932', 3, '2018-02-10 04:10:13pm'), (7, 'Test device123', 0, '2018-02-12 11:27:18pm'); -- -------------------------------------------------------- -- -- Table structure for table `soyo_device_param` -- CREATE TABLE `soyo_device_param` ( `dvc_id` int(100) NOT NULL, `dev_imei` decimal(50,0) NOT NULL, `itv` float NOT NULL, `itc` float NOT NULL, `itp` float NOT NULL, `acv1` float NOT NULL, `acv2` float NOT NULL, `acv3` float NOT NULL, `acc1` float NOT NULL, `acc2` float NOT NULL, `acc3` float NOT NULL, `frq` float NOT NULL, `enrg` float NOT NULL, `lph` float NOT NULL, `temp` float NOT NULL, `sig_str` int(5) NOT NULL, `p_stat` int(5) NOT NULL, `nlc` int(5) NOT NULL, `drc` int(5) NOT NULL, `srt_ckt` int(5) NOT NULL, `x_heat` int(5) NOT NULL, `o_load` int(5) NOT NULL, `dcb_err` int(5) NOT NULL, `temp_sen_abst` int(5) NOT NULL, `emrg` int(5) NOT NULL, `user_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `soyo_device_param` -- INSERT INTO `soyo_device_param` (`dvc_id`, `dev_imei`, `itv`, `itc`, `itp`, `acv1`, `acv2`, `acv3`, `acc1`, `acc2`, `acc3`, `frq`, `enrg`, `lph`, `temp`, `sig_str`, `p_stat`, `nlc`, `drc`, `srt_ckt`, `x_heat`, `o_load`, `dcb_err`, `temp_sen_abst`, `emrg`, `user_id`) VALUES (1, '4', 0, 0, 0, 45535, 34.88, 234, 0, 0, 0, 0, 600.67, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14), (2, '3', 0, 0, 0, 9875, 888, 234, 0, 0, 0, 0, 600.67, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14), (3, '813697485216932', 0, 0, 0, 3087, 546, 534, 0, 0, 0, 0, 600.67, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (4, '793145268315463', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (5, '746982531498651', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (6, '865479315874236', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (7, '697521364892167', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); -- -------------------------------------------------------- -- -- Table structure for table `soyo_device_paramters` -- CREATE TABLE `soyo_device_paramters` ( `id` bigint(11) NOT NULL, `name` varchar(255) NOT NULL, `device_id` int(11) NOT NULL, `category` varchar(50) NOT NULL, `unique_id` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `soyo_device_paramters` -- INSERT INTO `soyo_device_paramters` (`id`, `name`, `device_id`, `category`, `unique_id`) VALUES (13, 'acv1', 2, '', ''), (14, 'new itv', 2, '', ''), (15, 'acv4', 2, '', ''), (16, 'engry', 1, '', ''), (17, 'work', 1, '', ''), (26, 'Energy Meter Comm unication', 3, '', 'F1'), (27, 'EnergyMeter CBC', 3, '', 'F2'), (28, 'Vo Mode', 3, '', 'F3'), (29, 'Actual Energy', 3, '', 'P1'), (30, 'VO mode Energy', 3, '', 'P2'), (31, 'lnput Voltage R-Y', 3, '', 'P3'), (32, 'Phase Voltage', 3, '', 'F4'), (33, 'Energy Meter Comm unication', 4, '', 'F1'), (34, 'Low Voltage', 6, '', 'F1'), (35, 'System ON', 6, '', 'F2'), (36, 'lnput Current B', 6, '', 'P1'), (38, 'acce', 7, '', 'F1'), (39, 'acce2', 7, '', 'F2'); -- -------------------------------------------------------- -- -- Table structure for table `soyo_device_request` -- CREATE TABLE `soyo_device_request` ( `id` bigint(11) NOT NULL, `parameter` varchar(100) NOT NULL, `value` float NOT NULL, `imei` varchar(100) NOT NULL, `vfd_id` int(11) NOT NULL, `product_type` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `soyo_device_request` -- INSERT INTO `soyo_device_request` (`id`, `parameter`, `value`, `imei`, `vfd_id`, `product_type`) VALUES (1, 'F1', 100, '866762020580492', 3, 1), (2, 'F2', 2345.91, '866762020580492', 3, 1), (3, 'F3', 1098.09, '862118028689567', 3, 1), (4, 'P1', 0.9, '866762020580492', 3, 1), (5, 'P2', 8.9, '862118028689567', 3, 1), (6, 'P3', 3, '862118028689567', 3, 1), (7, 'F4', 1, '862118028689567', 3, 1), (8, 'F1', 100, '862118028689567', 3, 1), (9, 'F2', 2345.91, '862118028689567', 3, 1), (10, 'F3', 1098.09, '862118028689567', 3, 1), (11, 'P1', 0.9, '862118028689567', 3, 1), (12, 'P2', 8.9, '862118028689567', 3, 1), (13, 'P3', 3, '862118028689567', 3, 1), (14, 'F4', 1, '862118028689567', 3, 1), (15, 'F1', 100, '862118028689567', 3, 1), (16, 'F2', 2345.91, '862118028689567', 3, 1), (17, 'F3', 1098.09, '862118028689567', 3, 1), (18, 'P1', 0.9, '862118028689567', 3, 1), (19, 'P2', 8.9, '862118028689567', 3, 1), (20, 'P3', 3, '862118028689567', 3, 1), (21, 'F4', 1, '862118028689567', 3, 1), (22, 'F1', 100, '862118028689567', 3, 1), (23, 'F2', 2345.91, '862118028689567', 3, 1), (24, 'F3', 1098.09, '862118028689567', 3, 1), (25, 'P1', 0.9, '862118028689567', 3, 1), (26, 'P2', 8.9, '862118028689567', 3, 1), (27, 'P3', 3, '862118028689567', 3, 1), (28, 'F4', 1, '862118028689567', 3, 1); -- -------------------------------------------------------- -- -- Table structure for table `soyo_district` -- CREATE TABLE `soyo_district` ( `id` int(11) NOT NULL, `name` varchar(200) NOT NULL, `state_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `soyo_district` -- INSERT INTO `soyo_district` (`id`, `name`, `state_id`) VALUES (1, 'Ahmednagar', 15), (2, 'Akola', 15), (3, 'Amravati', 15), (4, 'Aurangabad', 15), (5, 'Beed', 15), (6, 'Bhandara', 15), (7, 'Buldhana', 15), (8, 'Chandrapur', 15), (9, 'Dhule', 15), (10, 'Gadchiroli', 15), (11, 'Gondia', 15), (12, 'Hingoli', 15), (13, 'Jalgaon', 15), (14, 'Jalna', 15), (15, 'Kolhapur', 15), (16, 'Latur', 15), (17, 'Mumbai City', 15), (18, '<NAME>', 15), (19, 'Nagpur', 15), (20, 'Nanded', 15), (21, 'Nandurbar', 15), (22, 'Nashik', 15), (23, 'Osmanabad', 15), (24, 'Parbhani', 15), (25, 'Pune', 15), (26, 'Raigad', 15), (27, 'Ratnagiri', 15), (28, 'Sangli', 15), (29, 'Satara', 15), (30, 'Sindhudurg', 15), (31, 'Solapur', 15), (32, 'Thane', 15), (33, 'Wardha', 15), (34, 'Washim', 15), (35, 'Yavatmal', 15), (36, 'Palghar', 15); -- -------------------------------------------------------- -- -- Table structure for table `soyo_drive_manufacture` -- CREATE TABLE `soyo_drive_manufacture` ( `id` int(11) NOT NULL, `name` varchar(200) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `soyo_drive_manufacture` -- INSERT INTO `soyo_drive_manufacture` (`id`, `name`) VALUES (1, 'Nord Drive Systems Pvt. Ltd.'), (2, 'Srijan Control Drives'), (3, 'Chemco Group of Companies'), (4, 'Powercare Corporation'), (5, 'Gennext Control, India'), (6, 'Hyco Drive Company'), (7, 'Drive Technologies'); -- -------------------------------------------------------- -- -- Table structure for table `soyo_notification` -- CREATE TABLE `soyo_notification` ( `id` int(100) NOT NULL, `message` varchar(500) NOT NULL, `send_to` int(100) NOT NULL, `send_from` int(100) NOT NULL, `type` int(10) NOT NULL, `status` int(5) NOT NULL, `user_id` int(11) NOT NULL, `view` int(5) NOT NULL, `created_at` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `soyo_notification` -- INSERT INTO `soyo_notification` (`id`, `message`, `send_to`, `send_from`, `type`, `status`, `user_id`, `view`, `created_at`) VALUES (1, 'vdfg fgvdfv has registered. Waiting for your response.', 1, 8, 1, 0, 0, 1, ''), (2, 'Saniya Sharmahas registered. Waiting for your response.', 1, 10, 1, 0, 0, 1, ''), (3, 'Admin added new distributer <NAME>', 1, 1, 0, 0, 17, 1, '2018-02-11 06:03:55pm'), (4, 'akshay tambekar added new user akshay User tambekar user', 1, 14, 0, 0, 20, 1, '2018-02-15 10:54:19am'), (5, 'akshay tambekar added new user test2 user surname user', 1, 14, 0, 0, 22, 1, '2018-02-15 10:57:52am'), (6, '<NAME> added new user test2 user surname user', 1, 17, 0, 0, 27, 0, '2018-02-19 03:17:57pm'); -- -------------------------------------------------------- -- -- Table structure for table `soyo_product` -- CREATE TABLE `soyo_product` ( `p_id` int(10) NOT NULL, `product_name` varchar(500) COLLATE utf8_unicode_ci NOT NULL, `product_img` varchar(1000) COLLATE utf8_unicode_ci NOT NULL, `added_by` int(10) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `soyo_product` -- INSERT INTO `soyo_product` (`p_id`, `product_name`, `product_img`, `added_by`) VALUES (2, 'Solar Water Pumping System', 'solar-water2.jpg', 1), (3, 'Solar Off Grid Power Plant', 'solar-off-grid-power-plant1.jpg', 1), (4, 'Solar Inverters', 'inverter2.jpg', 1), (5, 'LED Garden Light', 'led-lights1.jpg', 1), (6, '20 Kw Power Pack', 'battery1.jpg', 1), (7, 'Offline UPS', 'ups1.jpg', 1); -- -------------------------------------------------------- -- -- Table structure for table `soyo_projects` -- CREATE TABLE `soyo_projects` ( `id` bigint(11) NOT NULL, `name` varchar(255) NOT NULL, `state_id` int(11) NOT NULL, `district_id` int(11) NOT NULL, `description` varchar(255) NOT NULL, `city` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `distributer_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `soyo_projects` -- INSERT INTO `soyo_projects` (`id`, `name`, `state_id`, `district_id`, `description`, `city`, `created_at`, `distributer_id`) VALUES (1, 'Test project1', 15, 15, 'Test project description2', 'Kolhapur', '2018-02-19 12:23:17', 17); -- -------------------------------------------------------- -- -- Table structure for table `soyo_state` -- CREATE TABLE `soyo_state` ( `id` int(11) NOT NULL, `name` varchar(100) NOT NULL, `country_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `soyo_state` -- INSERT INTO `soyo_state` (`id`, `name`, `country_id`) VALUES (1, 'Andhra Pradesh', 82), (2, 'Arunachal Pradesh', 82), (3, 'Assam', 82), (4, 'Bihar', 82), (5, 'Chhattisgarh', 82), (6, 'Goa', 82), (7, 'Gujarat', 82), (8, 'Haryana', 82), (9, 'Himachal Pradesh', 82), (10, 'Jammu and Kashmir', 82), (11, 'Jharkhand', 82), (12, 'Karnataka', 82), (13, 'Kerala', 82), (14, 'Madhya Pradesh', 82), (15, 'Maharashtra', 82), (16, 'Manipur', 82), (17, 'Meghalaya', 82), (18, 'Mizoram', 82), (19, 'Nagaland', 82), (20, 'Odisha', 82), (21, 'Punjab', 82), (22, 'Rajasthan', 82), (23, 'Sikkim', 82), (24, 'Tamil Nadu', 82), (25, 'Telangana', 82), (26, 'Tripura', 82), (27, 'Uttar Pradesh', 82), (28, 'Uttarakhand', 82), (29, 'West Bengal', 82), (30, 'Andaman and Nicobar Islands', 82), (31, 'Chandigarh', 82), (32, 'Dadra and Nagar Haveli', 82), (33, 'Daman and Diu', 82), (34, 'Delhi', 82), (35, 'Lakshadweep', 82), (36, 'Puducherry', 82); -- -------------------------------------------------------- -- -- Table structure for table `soyo_users` -- CREATE TABLE `soyo_users` ( `user_id` int(100) NOT NULL, `fname` varchar(100) NOT NULL, `lname` varchar(100) NOT NULL, `state` varchar(100) NOT NULL, `dist` varchar(100) NOT NULL, `city` varchar(100) NOT NULL, `mobile` bigint(11) NOT NULL, `email` varchar(200) NOT NULL, `username` varchar(100) NOT NULL, `password` varchar(100) NOT NULL, `adhar` bigint(16) NOT NULL, `date` date NOT NULL, `time` varchar(50) NOT NULL DEFAULT '00:00:00', `type` int(3) NOT NULL, `status` int(5) NOT NULL, `profile_image` varchar(255) NOT NULL, `added_by` int(11) NOT NULL, `address` varchar(255) NOT NULL, `site_image` varchar(255) NOT NULL, `created_at` varchar(255) NOT NULL, `project_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `soyo_users` -- INSERT INTO `soyo_users` (`user_id`, `fname`, `lname`, `state`, `dist`, `city`, `mobile`, `email`, `username`, `password`, `adhar`, `date`, `time`, `type`, `status`, `profile_image`, `added_by`, `address`, `site_image`, `created_at`, `project_id`) VALUES (1, 'Admin', 'Soyo', '15', '25', 'Kolhapur', 9876543213, '<EMAIL>', 'admin', '<PASSWORD>', 0, '2018-01-25', '01:00:', 1, 0, 'admin2.png', 0, '', '', '', 0), (2, 'karishma', 'kawate', '15', '25', 'Kolhapur', 9156886093, '<EMAIL>', 'kk', 'kk', 0, '2018-01-25', '07:32 ', 2, 0, 'debate_web_team.jpg', 0, '', '', '', 0), (3, 'test', 'test', '15', '25', 'Bhusawal', 9156886093, '<EMAIL>', 'test', 'test123', 0, '2018-01-26', '12:37 ', 3, 1, '400266_237783952963915_21745964_n.jpg', 0, 'pune', 'Image_Slider1.jpg', '', 0), (5, 'vishal', 'Kawate', '15', '25', 'Bhusawal', 7986543215, '<EMAIL>', 'vish', 'vish', 0, '2018-01-26', '12:44 ', 3, 1, '', 0, '', '', '', 0), (6, 'Yash', 'Khadke', 'Maharashtra', 'Jalgoan', 'Jalgaon', 8765432187, '<EMAIL>', 'yash', 'yash', 0, '2018-01-26', '12:54 ', 2, 0, '', 0, '', '', '', 0), (8, 'ved', 'gfdgdf', 'fgvdfv', 'cvcvfd', 'fvd', 8765432187, '<EMAIL>', 'asas', 'asas', 0, '2018-02-02', '05:29 ', 2, 0, '', 0, '', '', '', 0), (10, 'Saniya', 'Sharma', 'Maharashtra', 'Pune', 'Pune', 9458699068, '<EMAIL>', 'saniya', 'saniya', 0, '2018-02-02', '07:01 ', 3, 1, '', 0, '', '', '', 0), (17, 'Nikhil', 'Vharamble', '15', '25', 'Pune', 12345678901, '<EMAIL>', 'niks', '12345', 0, '2018-02-11', '06:03:55pm', 2, 1, 'ERP_slider2.jpg', 0, '', '', '', 0), (19, 'test1', 'test1', '15', '25', 'Pune', 7789456213, '<EMAIL>', 'testuser1', '12345', 78, '2018-02-11', '06:03:55pm', 3, 1, 'images1.jpeg', 2, 'pune', 'images2.jpeg', '2018-02-13 12:45:55pm', 0), (20, 'akshay User', 'tambekar user', '15', '25', 'pune', 12345678901, '<EMAIL>', 'akshayuser', '123456', 0, '2018-02-15', '10:54:19am', 3, 1, 'admin5.png', 14, 'pune', 'Image_Slider2.jpg', '2018-02-15 10:54:19am', 0), (22, 'test2 user', 'surname user', '15', '25', 'pune', 12345678901, '<EMAIL>', 'test2 user', '12345', 0, '2018-02-15', '10:57:52am', 3, 0, 'ERP_slider4.jpg', 14, 'pune', 'Team_Velociracers___website_photo8.jpg', '2018-02-15 10:57:52am', 0), (27, 'test2 user', 'surname user', '15', '3', 'amrabati', 12345678901, '<EMAIL>', 'test2user', 'test', 1234567890123456, '2018-02-19', '03:17:57pm', 3, 0, 'coepfinal1.jpg', 17, 'amrvati', '', '2018-02-19 03:17:57pm', 1); -- -------------------------------------------------------- -- -- Table structure for table `soyo_user_site_information` -- CREATE TABLE `soyo_user_site_information` ( `id` bigint(11) NOT NULL, `user_id` int(11) NOT NULL, `location` varchar(255) NOT NULL, `owner` varchar(255) NOT NULL, `solar_panel` varchar(255) NOT NULL, `pump` varchar(255) NOT NULL, `no_lbows` varchar(255) NOT NULL, `installer` varchar(255) NOT NULL, `installation_date` datetime NOT NULL, `warranty` varchar(255) NOT NULL, `imei_no` varchar(255) NOT NULL, `device_type` int(11) NOT NULL, `vfd_type` int(11) NOT NULL, `pipe_height` varchar(255) NOT NULL, `pipe_diameter` varchar(255) NOT NULL, `site_image` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `soyo_user_site_information` -- INSERT INTO `soyo_user_site_information` (`id`, `user_id`, `location`, `owner`, `solar_panel`, `pump`, `no_lbows`, `installer`, `installation_date`, `warranty`, `imei_no`, `device_type`, `vfd_type`, `pipe_height`, `pipe_diameter`, `site_image`) VALUES (1, 19, 'pune', 'dist', 'a1', 'solar', '43', 'distributerdsd', '2018-02-13 12:45:55', '2sd', '123456789', 6, 3, '21', '43', ''), (2, 20, 'pune', 'owener', 'solar panel', 'pump', '5', 'Akshay', '2018-02-15 10:54:19', '2', '866762020580492', 6, 2, '15', '24', ''), (3, 22, 'pune', 'owener', 'solar panel', 'pump', '5', 'Akshay', '2018-02-15 10:57:52', '2', '0987654321s', 3, 2, '15', '24', ''); -- -------------------------------------------------------- -- -- Table structure for table `soyo_user_system` -- CREATE TABLE `soyo_user_system` ( `sys_id` int(10) NOT NULL, `sys_imei` decimal(50,0) NOT NULL, `username` varchar(100) NOT NULL, `password` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `soyo_user_system` -- INSERT INTO `soyo_user_system` (`sys_id`, `sys_imei`, `username`, `password`) VALUES (1, '<PASSWORD>', 'admin', '<PASSWORD>'), (2, '862118028689567', 'kk', '<PASSWORD>'), (3, '813697485216932', 'vish', '<PASSWORD>'), (4, '793145268315463', 'pune', 'pune@123'), (5, '746982531498651', 'karish', 'karish123'), (6, '865479315874236', 'soyo', 'soyo@123'), (7, '697521364892167', 'system', 'sys@123'); -- -------------------------------------------------------- -- -- Table structure for table `soyo_vfd` -- CREATE TABLE `soyo_vfd` ( `id` bigint(11) NOT NULL, `vfd_name` varchar(255) NOT NULL, `drive_manufacture_id` int(11) NOT NULL, `created_at` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `soyo_vfd` -- INSERT INTO `soyo_vfd` (`id`, `vfd_name`, `drive_manufacture_id`, `created_at`) VALUES (1, 'VFD 1', 2, '2018-02-12 11:06:32pm'), (2, 'Testing vfd', 2, '2018-02-16 10:55:20pm'); -- -- Indexes for dumped tables -- -- -- Indexes for table `project_data` -- ALTER TABLE `project_data` ADD PRIMARY KEY (`project_id`); -- -- Indexes for table `soyo_device` -- ALTER TABLE `soyo_device` ADD PRIMARY KEY (`id`); -- -- Indexes for table `soyo_device_param` -- ALTER TABLE `soyo_device_param` ADD PRIMARY KEY (`dvc_id`); -- -- Indexes for table `soyo_device_paramters` -- ALTER TABLE `soyo_device_paramters` ADD PRIMARY KEY (`id`), ADD KEY `device_id_fk` (`device_id`); -- -- Indexes for table `soyo_device_request` -- ALTER TABLE `soyo_device_request` ADD PRIMARY KEY (`id`); -- -- Indexes for table `soyo_district` -- ALTER TABLE `soyo_district` ADD PRIMARY KEY (`id`); -- -- Indexes for table `soyo_drive_manufacture` -- ALTER TABLE `soyo_drive_manufacture` ADD PRIMARY KEY (`id`); -- -- Indexes for table `soyo_notification` -- ALTER TABLE `soyo_notification` ADD PRIMARY KEY (`id`); -- -- Indexes for table `soyo_product` -- ALTER TABLE `soyo_product` ADD PRIMARY KEY (`p_id`); -- -- Indexes for table `soyo_projects` -- ALTER TABLE `soyo_projects` ADD PRIMARY KEY (`id`); -- -- Indexes for table `soyo_state` -- ALTER TABLE `soyo_state` ADD PRIMARY KEY (`id`); -- -- Indexes for table `soyo_users` -- ALTER TABLE `soyo_users` ADD PRIMARY KEY (`user_id`), ADD UNIQUE KEY `username` (`username`); -- -- Indexes for table `soyo_user_site_information` -- ALTER TABLE `soyo_user_site_information` ADD PRIMARY KEY (`id`); -- -- Indexes for table `soyo_user_system` -- ALTER TABLE `soyo_user_system` ADD PRIMARY KEY (`sys_id`); -- -- Indexes for table `soyo_vfd` -- ALTER TABLE `soyo_vfd` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `project_data` -- ALTER TABLE `project_data` MODIFY `project_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `soyo_device` -- ALTER TABLE `soyo_device` MODIFY `id` bigint(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `soyo_device_param` -- ALTER TABLE `soyo_device_param` MODIFY `dvc_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `soyo_device_paramters` -- ALTER TABLE `soyo_device_paramters` MODIFY `id` bigint(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40; -- -- AUTO_INCREMENT for table `soyo_device_request` -- ALTER TABLE `soyo_device_request` MODIFY `id` bigint(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29; -- -- AUTO_INCREMENT for table `soyo_district` -- ALTER TABLE `soyo_district` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37; -- -- AUTO_INCREMENT for table `soyo_drive_manufacture` -- ALTER TABLE `soyo_drive_manufacture` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `soyo_notification` -- ALTER TABLE `soyo_notification` MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `soyo_product` -- ALTER TABLE `soyo_product` MODIFY `p_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `soyo_projects` -- ALTER TABLE `soyo_projects` MODIFY `id` bigint(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `soyo_state` -- ALTER TABLE `soyo_state` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37; -- -- AUTO_INCREMENT for table `soyo_users` -- ALTER TABLE `soyo_users` MODIFY `user_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28; -- -- AUTO_INCREMENT for table `soyo_user_site_information` -- ALTER TABLE `soyo_user_site_information` MODIFY `id` bigint(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `soyo_user_system` -- ALTER TABLE `soyo_user_system` MODIFY `sys_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `soyo_vfd` -- ALTER TABLE `soyo_vfd` MODIFY `id` bigint(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- DROP DATABASE Kmom05oophp; CREATE DATABASE IF NOT EXISTS Kmom05oophp; USE Kmom05oophp; -- USE carb14; SET NAMES 'utf8'; -- -- Create table for Content -- DROP TABLE IF EXISTS Post2Category; DROP TABLE IF EXISTS Content; CREATE TABLE Content ( id INT AUTO_INCREMENT PRIMARY KEY NOT NULL, slug CHAR(80) UNIQUE, url CHAR(80) UNIQUE, type CHAR(80), title VARCHAR(80), data TEXT, filter CHAR(80), published DATETIME, created DATETIME, updated DATETIME, deleted DATETIME ) ENGINE INNODB CHARACTER SET utf8; DROP TABLE IF EXISTS Category; CREATE TABLE Category ( id INT AUTO_INCREMENT PRIMARY KEY NOT NULL, name CHAR(20) NOT NULL -- diverse, redovisning, nyheter, etc ) ENGINE INNODB CHARACTER SET utf8; DROP TABLE IF EXISTS Post2Category; CREATE TABLE Post2Category ( idPost INT NOT NULL, idCategory INT NOT NULL, FOREIGN KEY (idPost) REFERENCES Content (id), FOREIGN KEY (idCategory) REFERENCES Category (id), PRIMARY KEY (idPost, idCategory) ) ENGINE INNODB; DELETE FROM Category; INSERT INTO Category (name) VALUES ('Nyheter'), ('Tänkvärt'), ('Redovisning'), ('Diverse'); -- -- Table for user -- DROP TABLE IF EXISTS USER; CREATE TABLE USER ( id INT AUTO_INCREMENT PRIMARY KEY, acronym CHAR(12) UNIQUE NOT NULL, name VARCHAR(80), password CHAR(32), salt INT NOT NULL ) ENGINE INNODB CHARACTER SET utf8; INSERT INTO USER (acronym, name, salt) VALUES ('doe', '<NAME>', unix_timestamp()), ('admin', 'Administrator', unix_timestamp()) ; UPDATE USER SET password = md5(concat('doe', salt)) WHERE acronym = 'doe'; UPDATE USER SET password = md5(concat('admin', salt)) WHERE acronym = 'admin'; ALTER TABLE Content ADD COLUMN Content_userId INT; ALTER TABLE Content ADD FOREIGN KEY (Content_userId) REFERENCES USER(id); DELETE FROM Content; INSERT INTO Content (slug, url, type, title, data, filter, published, created, Content_userId) VALUES ('hem', 'hem', 'page', 'Hem', "Detta är min hemsida. Den är skriven i [url=http://en.wikipedia.org/wiki/BBCode]bbcode[/url] vilket innebär att man kan formattera texten till [b]bold[/b] och [i]kursiv stil[/i] samt hantera länkar.\n\nDessutom finns ett filter 'nl2br' som lägger in <br>-element istället för \\n, det är smidigt, man kan skriva texten precis som man tänker sig att den skall visas, med radbrytningar.", 'bbcode,nl2br', NOW(), NOW(), 1), ('om', 'om', 'page', 'Om', "Detta är en sida om mig och min webbplats. Den är skriven i [Markdown](http://en.wikipedia.org/wiki/Markdown). Markdown innebär att du får bra kontroll över innehållet i din sida, du kan formattera och sätta rubriker, men du behöver inte bry dig om HTML.\n\nRubrik nivå 2\n-------------\n\nDu skriver enkla styrtecken för att formattera texten som **fetstil** och *kursiv*. Det finns ett speciellt sätt att länka, skapa tabeller och så vidare.\n\n###Rubrik nivå 3\n\nNär man skriver i markdown så blir det läsbart även som textfil och det är lite av tanken med markdown.", 'markdown', NOW(), NOW(), 1), ('blogpost-1', null, 'post', 'Välkommen till min blogg!', "Detta är en bloggpost.\n\nNär det finns länkar till andra webbplatser så kommer de länkarna att bli klickbara.\n\nhttp://dbwebb.se är ett exempel på en länk som blir klickbar.", 'link,nl2br', NOW(), NOW(), 1), ('blogpost-2', null, 'post', 'Nu har sommaren kommit', "Detta är en bloggpost som berättar att sommaren har kommit, ett budskap som kräver en bloggpost.", 'nl2br', NOW(), NOW(), 1), ('blogpost-3', null, 'post', 'Nu har hösten kommit', "Detta är en bloggpost som berättar att hösten har kommit, ett budskap som kräver en bloggpost", 'nl2br', NOW(), NOW(), 1), ('Kmom01', null, 'report', 'Kmom01', "Det första kursmomentet har löpt ganska smärtfritt eftersom jag precis har avslutat förra kursen och hade saker färskt i minnet. Det var dock en hel del att göra och tog längre tid än jag först trodde. Jag skummade igenom litteraturen eftersom jag läste kapitlen mer grundligt i höstas. Jag jobbade däremot igenom guiden \"20 steg...\" mer noggrant och det var en bra repetition. Det var kanske inget nytt men en del saker från förra kursen fick en bättre förklaring.\n\nSedan gav jag mig på Anax-artikeln och byggde upp mitt ramverk. Det fick heta Leaf, mest för att jag hade en lämplig ikon för loggan. Men också för att ordet också syftar på blad eller sidor. Jag har följt upplägget i artikeln eftersom det var rekommendationen inför kommande kursmoment.\n\nSkapandet av ramverket flöt på bra men det som orsakade en del huvudbry var den dynamiska menyn. Jag följde artikeln men fick tänka till lite för att anpassa koden till strukturen på sidorna i ramverket. Det fanns en följdartikel med en mer direkt passande lösning men nu försökte jag lösa det själv utifrån första exemplet. Jag lade in CNavigation som en klass eftersom det ändå ska handla om objektorientering i den här kursen. Det blev en fungerande lösning till slut. Kanske får jag revidera den senare, det återstår att se.\n\nJag lade in source.php som modul och det beredde inga problem. Jag lade in CSource genom att klona från Github. Funktionen dump() lade jag in i bootstrap.php enligt instruktion.\n\nJag lade även in JavaScript-delarna trots att de kunde hoppas över. Jag har dessutom skrivit in all kod för hand, då det är en inlärningsmetod som fungerat bra för mig. Med klipp och klistra missar man lätt detaljkollen på vad som händer i varje steg.\n\nJag gjorde även extrauppgiften med Github eftersom jag redan innan velat komma igång med att versionshantera min kod. Jag har erfarenhet av Subversion från ett tidigare jobb och versionshantering är ett krav i professionella sammanhang. Mitt Github-repo finns här: [url=https://github.com/helikopterspark/leaf.git']helikopterspark/leaf[/url].\n\nMin utvecklingsmiljö består av en Mac Mini med OS X 10.10.2, som alltid hålls uppdaterad till senaste OS-version. Jag kodar i NetBeans 8 och använder TextMate för att skriva rena textfiler. Jag började använda NetBeans i förra kursen och tycker att det funkar bra för mig. Jag testar löpande i Firefox men har Safari, Chrome och Opera installerade att testa med också. Sedan testar jag också hur sidorna ser ut i Ubuntu och Windows 7 via VMware Fusion. Jag kör XAMPP som webbserver och FileZilla för filöverföring. Jag använder Pixelmator för att fixa till bilder.", 'bbcode,nl2br', NOW(), NOW(), 2), ('Kmom02', null, 'report', 'Kmom02', "Kursmoment 2 blev en riktig långkörare. Jag läste igenom litteraturen och jobbade mig igenom oophp20-guiden. Jag har erfarenhet av objektorienterad programmering i C++ och Objective-C sedan tidigare så just den biten var inte svår att förstå och det var egentligen inget nytt. Däremot tog det lång tid att göra uppgifterna.\n\nDet som ständigt ger mig huvudbry är att man måste tänka på sidomladdningar hela tiden, vilket jag är ovan med. Men jag börjar väl vänja mig vid det nu och jag fick både tärningsspelet och kalendern att funka till slut.\n\nJag gav mig på tärningsspelet först och utgick ifrån klasserna som skapades i oophp20-guiden. Sedan skapade jag en klass för själva spelet och en klass för en spelare. Spelklassen är den som sköter all logik och den blev kanske lite rörig. Det finns nog utrymme för en del refactoring där.\n\nSpelet funkar iallafall, men det går att sabba spelet om man manuellt laddar om sidan. Tyvärr upptäckte jag detta lite för sent för att hinna skriva om koden. Men så länge spelaren sköter sig är det inga problem. Man kan gå ifrån sidan och komma tillbaka till den och fortsätta spelet därifrån man var. Det går att spela mot en mänsklig spelare eller upp till två datorspelare. Datorn försöker alltid få minst tio poäng och avgör sedan från kast till kast om den ska fortsätta kasta eller spara.\n\nTärningsspelet tog lång tid för mig att få till, så jag hade väldigt lite tid kvar till att göra kalendern och hann därför inte med alla extrauppgifterna. Det gick dock snabbare att få den här uppgiften att fungera.\n\nEn kalenderklass, CCalendar, bygger upp en sida genom att använda sig av en månadsklass, CCalendarMonth. En instans av denna klass skapas genom att skicka in månad och år. Utifrån dessa värden kollar den upp veckonummer i månaden och skapar en array med veckonumren. Med hjälp av denna array skriver den ut ingående dagar för respektive vecka. Den visar även veckonummer, söndagar, markerar dagens datum och gör datum utanför aktuell månad gråa och lite mindre. Varje månad visar en egen bild. Sidorna validerar korrekt i Unicorn vad jag kan se, vilket även gäller tärningsspelet.\n\nJag hade gärna fortsatt och gjort aside-kalendern, namnsdagar och fler helgdagar men tiden rann ut för att hinna lämna in i tid. I övrigt gjorde jag om redovisningssidan lite så att den laddar in separata filer för varje kursmoment och bygger även en länklista. Jag gjorde detta för att få lite mer överskådliga filer för redovisningssrapporterna.\n\nDet blev lite mastigt att göra bägge uppgifterna och en reflektion är att kalenderuppgiften nästan hade kunnat få vara ett eget kursmoment och då i samband med en databas för namnsdagar och helgdagar.\n\nTillägg: Jag korrigerade problemet med att det gick att ladda om sidan för att fuska. ", 'bbcode,nl2br', NOW(), NOW(), 2), ('Kmom03', null, 'report', 'Kmom03', "Kursmoment 3 kändes lugnare än det föregående. Mina tidigare erfarenheter av SQL och databaser bestod av att vi fick bekanta oss med SQLite och väldigt grundläggande SQL i förra kursen. Jag har även läst en kurs i databaser och datamodellering för längesedan. 1995 närmare bestämt och har inte datamodellerat sedan dess. Då var det MS Access vi använde som verktyg. Jag har vissa minnen av ER-diagram, entiteter, relationer, kardinaliteter och attribut, men har som sagt inte jobbat med det praktiskt. Jag har byggt några mindre datamodeller i Core Data för iPhone-appar men även om det är en SQLite-fil i bakgrunden så ligger det ett abstraktionslager ovanpå och man skriver inte SQL-frågor utan använder en annan syntax där. Det kändes bra att fräscha upp kunskaperna igen och det blir ännu bättre att få använda dem praktiskt i kommande kursmoment.\n\nJag började med att läsa litteraturen och testade sedan att starta de olika klienterna. När jag fått igång dessa lokalt så testade jag även att logga in på BTH-servern via alla tre klienterna, bara för att verifiera att det funkade. Det var dessbättre inga problem, anslutning och inloggning funkade bra.\n\nDet var inte speciellt svårt att genomföra övningarna den här gången. Jag gjorde övningarna lokalt på min dator för att kunna skapa en ny databas och radera den. Jag använde MySQL Workbench eftersom guiden använde den, och jag tycker att applikationen är rätt smidig och överskådlig för att snabbt kunna lägga upp tabeller och testa SQL-frågor. Jag hade dock lite problem med att applikationen hängde sig emellanåt när jag hade auto-complete påslaget.\n\nGuiden och litteraturen i form av boken Databasteknik och MySQL-manualen gav svaren på de smärre undringar jag hade. MySQL-manualen är kanske inte den mest lättlästa manualen som skrivits men den finns där som en hjälp i alla fall. Nytt för mig i det här kursmomentet vad gäller SQL var vyer och INNER och OUTER JOIN. Storage engine och teckenkodning likaså.", 'bbcode,nl2br', NOW(), NOW(), 2), ('Kmom04', null, 'report', 'Kmom04', "I det fjärde kursmomentet blev det mer att göra vad övningar beträffar. Jag gjorde övningen med filmdatabasen och den tog en bra stund att ta sig igenom. Den kändes ganska mastig måste jag säga men det är förstås bra med mängdträning plus att det säkert är användbara delar att gå tillbaka till när projektuppgiften ska göras. Jag gjorde även övningen med databasklassen, vilket gick snabbare.\n\nUppgiften gick ju egentligen ut på att ”objektifiera” den sista sidan från övningen och det gick betydligt snabbare och enklare än att göra själva övningen. Att jobba med PHP PDO känns bra och eftersom det ingick redan i förra kursen så var det egentligen inget nytt med det. Jag använde mig av undantagshantering redan där så den biten satt redan.\n\nJag valde att skapa två nya klasser enligt förslaget, CMovieSearch och CHTMLTable. Den förstnämnda hanterar kopplingen till databasen så att databasobjektet inte behöver anropas från sidkontrollern. Jag lade in hantering av genrer också även om det inte var ett krav. Jag valde även att baka in GET-variablerna och valideringen av dessa i klasserna, för att kapsla in så mycket som möjligt. Det resulterade i en väldigt slimmad sidkontroller.\n\nMan hade kanske kunnat tänka sig att samla allt i en och samma klass, eftersom dessa två klasser är beroende av varann. Nu har jag dessutom dubblerat metoden GetQueryString() i bägge klasserna. Jag tycker dock det känns lättare att hantera ett par mindre klasser än en stor.\n\nKlassen CUser och sidorna Login, Logout och Status gick snabbt och problemfritt att fixa. Sidorna ger lite olika utseende beroende på om användaren är inloggad eller inte.\n\nJag gjorde även extrauppgiften med dropdown-menyer. Jag uppdaterade klassen CNavigation för detta, så även denna lösning är objektorienterad. Det som strulade i detta moment var faktiskt CSS-filen där jag hade problem med att få menyvalen i submenyn att markeras korrekt. Det slutade med att jag tvingades använda !important på lämpliga ställen. Det är kanske ett litet nederlag men slutresultatet fungerar ju.\n\nKonceptet med klassmoduler är bra och känns naturligt efter att man har hållit på med objektorienterad programmering ett tag. Långa skript är svåra att överblicka och underhålla. Det blir enklare med klasser som man kan stycka upp i metoder. Men man kan ändå hålla ihop en viss funktionalitet i en samlad fil. Uppdatering, vidareutveckling och återanvändning blir då smidigare. ", 'bbcode,nl2br', NOW(), NOW(), 2), ('Kmom05', null, 'report', 'Kmom05', "Det börjar bli en del moduler i ramverket men det känns hanterbart. Det gäller förstås att namnge modulerna vettigt så att man direkt förstår vad de gör. Sidkontrollerna blir korta historier och det är förstås bra. Jag tycker det är relativt enkelt att dela upp koden i klasser och sidkontroller.\n\nEn sak som jag skulle vilja förbättra men som den tillgängliga tiden inte tillåtit är att se till att få bort hårdkokade referenser till specifika sidkontroller i klasserna. Det förekommer ibland i html-genereringen. Det skulle i så fall medföra lite mer logik i sidkontrollerna men det skulle minska direkta beroenden i klasserna. Klasserna är inte riktigt så generellt användbara som jag skulle önska utan är ofta väldigt specifika.\n\nJag jobbade mig igenom guiden och gjorde sedan övningen med CTextFilter. Jag gjorde även extrauppgifterna med typografi- och purifier-filtren. De finns nu med i min klass och används för blogginläggen. Jag tänkte även föreslå en förbättring med att lägga till code-taggen för bbcode2html för repot på Github men någon hade hunnit före mig där med precis samma förslag. En exempelsida för textfiltren finns under TextDB->Textfilter.\n\nDen mesta tiden gick åt till att koda klassen CContent. Här finns i princip all logik och den mesta html-genereringen. Jag gjorde extrauppgifterna med att koppla inlägg till en ägare i CUser och kategorier för blogginlägg. Det blev ett par extra tabeller. För att förenkla databasanropen och hålla ner antalet så skapade jag en vy, VContent, där relevanta kolumner från alla tabellerna är samlade. Merparten av frågorna kan ställas mot denna vy. Extrauppgiften med slugify gjorde jag också, slug skapas automatiskt om användaren inte fyller i något annat i slug-fältet.\n\nDet krävdes en del pill för att få alla properties att bli rätt. Klassen kan initiera tabeller i databasen genom att köra reset.sql mot databasen. Man kan lägga till och redigera innehåll. Jag rationaliserade bort create.php och låter edit.php sköta både nytt inlägg och uppdatering av befintligt. Det är en och samma metod som skapar rätt formulär för sammanhanget. För att förhindra inmatning av felaktiga värden så använde jag dropdown-listor för typ och kategori och checkboxar för filtren. Det blev lite kodhackande för att få checkboxarna att bockas av rätt när sidan laddar ett befintligt inlägg.\n\nNär man raderar ett inlägg så sätts det endast ett datum för raderat, så som guiden föreslog. Inlägget ligger m a o kvar i databasen men kommer inte att visas på bloggsidan eller i menyn. Sidkontrollen view.php (TextDB i menyn) visar en översikt över innehållet i databasen, inklusive raderade inlägg.\n\nKlassen CPage var det inga konstigheter med att få till och den blev ganska liten. Den ärver CContent och har bara en metod för att hämta innehåll.\n\nKlassen CBlog är snarlik och ärver också CContent. Den har bara en metod mer för att generera html. Publiceringsdatum visas för blogginläggen och när det eventuellt uppdaterats. Författare visas och varje inlägg kopplas till en kategori. Jag har dock inte vidareutvecklat kategorifunktionaliteten mer än så, men det är görbart eftersom kategoridata nu finns i databasen. Ett inlägg kan endast kopplas till en kategori. CContent och de ärvande klasserna skulle gå att använda för redovisningstexterna också, vilket jag kanske gör inför sista kursmomentet.\n\nSist men inte minst gjorde jag extrauppgiften med att förbättra navbaren. Den skapar nu undermenyer utifrån vad som finns i databasen så att varje inlägg visas som ett menyval. Klickar man t ex direkt på Blogg så får man en lista på alla inlägg. Väljer man sedan ett inlägg markeras toppvalet och även det inlägg som för tillfället visas. Det tog en stund att få detta att funka även om det egentligen bara blev några extra rader kod. Jag skrev två funktioner för detta (getNavbarArray och getLinkList), där den ena även kan användas för att skapa en html-lista av alla inlägg. Beroende på om man skickar in argument eller inte så får man ut olika form på resultatet.\n\nDet känns som att det finns en användbar grund i ramverket nu. Det som behöver byggas ut är användarhanteringen känner jag. Lägga till nya användare, begränsa uppdatering av inlägg till deras ägare, kanske olika nivåer etc. Jag sneglade på projektuppgiften och det verkar vara en extrauppgift där, så där kan jag kanske utveckla funktionaliteten mer. ", 'bbcode,nl2br', NOW(), NOW(), 2), ('Kmom06', null, 'report', 'Kmom06', "Sjätte kursmomentet var kanske det roligaste och har löpt smärtfritt. Jag läste igenom guiderna och gjorde sen objektorienterade lösningar av exemplen. Jag skapade klassen CImage och la in i princip all funktionalitet där. Sidkontrollern img.php är mycket kort och skapar bara CImage-objektet och anropar sedan klassens enda publika metod för att processa bilden.\n\nEfter att klarat av grundkraven så gjorde jag uppgiften med galleriet. Den gick snabbt att göra utan några egentliga problem. Det blev dock uppenbart att jag behövde kunna hantera transparenta bilder och därför fixade jag det i CImage-klassen. Jag gjorde även övriga extrauppgifter, dvs stöd för GIF-bilder och imagefilter. Jag gjorde en liknande lösning som i förlagan till CImage, dvs att klassen kan hantera alla tillgängliga filter och upp till 11 filter i en GET-query. Därefter blev det enkelt att fixa ett sepia-filter som shortcut också. Det är inte en lika sofistikerad lösning som förlagan med all dess felhantering men den funkar. Jag lade till en exempelsida under Galleri-menyn (Bildhantering) där några av filtren demonstreras i de fyra sista exemplen.\n\nYtterligare ett tillägg i detta moment som egentligen inte ingick var att jag lade in redovisningstexterna i databasen och plockar fram dem med hjälp av CContent-klassen plus en ärvd klass, CReport.\n\nJag hade begränsad erfarenhet av bildbehandling sedan tidigare, det som jag till nöds behövt göra med bilder i olika sammanhang. Förminska, förstora, beskära, spara i annat format etc. Färghantering och mer avancerade saker har jag inte sysslat med men skulle gärna lära mig mer om.\n\nPHP GD verkar enkelt att jobba med. Det är lätt att få till effekterna med filtren tycker jag. img.php kan nog vara ett bra verktyg och är enkel att lägga in när man väl vet hur den fungerar.\n\nEfter sista kursmomentet innan projektet så har ramverket fått en del klasser som jag hoppas går att återanvända. Jag befarar att klasserna är lite för specifika för uppgifterna i kursmomenten för att kunna användas mer generellt. Troligtvis kommer jag att få skriva om en del i projektet sedan. Men det känns enklare att skapa nya klasser nu när jag fått strukturen klarare för mig. Det ska förhoppningsvis gå bra att genomföra projektet med ramverket som grund. Jag saknar en lite mer avancerad hantering av användare och ska försöka få till det i projektet. Sedan kanske någon modul för uppspelning av media kunde vara trevlig att ha.", 'bbcode,nl2br', NOW(), NOW(), 2) ; DELETE FROM Post2Category; INSERT INTO Post2Category (idPost, idCategory) VALUES (1,4), (2,4), (3,1), (4,1), (5,4), (6,3), (7,3), (8,3), (9,3), (10,3), (11,3); -- SELECT * FROM Content; -- SELECT * FROM USER; -- SELECT * FROM Category; -- SELECT * FROM Post2Category; -- -- Create view for Content with joined tables USER and Category -- DROP VIEW IF EXISTS VContent; CREATE VIEW VContent AS SELECT Content.*, USER.name AS UserName, Category.id AS CategoryID, Category.name AS CategoryName FROM Content LEFT OUTER JOIN USER ON USER.id = Content.Content_userId LEFT OUTER JOIN Post2Category ON Post2Category.idPost = Content.id LEFT OUTER JOIN Category ON Category.id = Post2Category.idCategory GROUP BY Content.id;
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='TRADITIONAL,ALLOW_INVALID_DATES'; CREATE SCHEMA IF NOT EXISTS `school` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ; USE `school` ; -- ----------------------------------------------------- -- Table `school`.`student` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `school`.`student` ( `student_id` INT NOT NULL AUTO_INCREMENT , `student_name` VARCHAR(100) NULL , `student_address` TEXT NULL , PRIMARY KEY (`student_id`) ) ENGINE = InnoDB; USE `school` ; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
CREATE TABLE IF NOT EXISTS `pv_feedbacks` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` char(50) DEFAULT NULL, `user_id` int(11) DEFAULT NULL, `sadr_id` int(11) DEFAULT NULL, `sadr_followup_id` int(11) DEFAULT NULL, `pqmp_id` int(11) DEFAULT NULL, `feedback` text, `created` datetime DEFAULT NULL, `modified` datetime DEFAULT NULL, PRIMARY KEY (`id`) )//
<filename>services/db/init/seed/004-chat-queue.sql insert into chat_queue (queue_id, user_handle) values ('06fad102-1a73-41ad-ba62-7bbd4be3278f','b9cdffec-ad82-4855-8cad-5315c3a06610'), on conflict do nothing;
INSERT INTO `clubs` VALUES (1,'Universitario De Deportes','2017-09-20 23:34:43','2017-09-20 23:34:43'), (2,'<NAME>','2017-09-20 23:34:43','2017-09-20 23:34:43'), (3,'Sporting Cristal','2017-09-20 23:34:43','2017-09-20 23:34:43'); INSERT INTO `roles` VALUES (1,'Admin','2017-09-20 23:34:43','2017-09-20 23:34:43'), (2,'Entrenador','2017-09-20 23:34:43','2017-09-20 23:34:43'), (3,'Dirigente','2017-09-20 23:34:43','2017-09-20 23:34:43'); INSERT INTO `users` VALUES (1,'Admin','Admin','<EMAIL>','$2y$10$lkGTlfvq851vkQQBB4pm7OvFvEYG44MahOENLM/7H6mvgaXy1yjYS',NULL,1,1,'2017-09-20 23:34:43','2017-09-20 23:34:43'), (2,'<NAME>','Vallejos','<EMAIL>','$2y$10$lkGTlfvq851vkQQBB4pm7OvFvEYG44MahOENLM/7H6mvgaXy1yjYS',NULL,1,2,'2017-09-20 23:34:43','2017-09-20 23:34:43'); COMMIT;
insert into public.item(id,inventory__id,type,quantity) values(DEFAULT,?,?,?) returning id;
<reponame>DimitarDKirov/Data-Bases /*============================================================================ File: 1.1 - Optimize for Ad-hoc workload.sql Summary: The script demonstrates how and what is the effect for turning on the option "Optimize for Ad-hoc Workloads" on a SQL Server instance. THIS SCRIPT IS PART OF THE Lecture: "Performance Tuning" for SoftUni, Sofia Date: February 2015 SQL Server Version: 2008 / 2012 / 2014 ------------------------------------------------------------------------------ Written by <NAME>, SQL Server MVP This script is intended only as a supplement to demos and lectures given by <NAME>. THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. ============================================================================*/ --What do we have in the plan cache? SELECT objtype AS [CacheType] , count_big(*) AS [Total Plans] , sum(cast(size_in_bytes as decimal(18,2)))/1024/1024 AS [Total MBs] , avg(usecounts) AS [Avg Use Count] , sum(cast((CASE WHEN usecounts = 1 THEN size_in_bytes ELSE 0 END) as decimal(18,2)))/1024/1024 AS [Total MBs - USE Count 1] , sum(CASE WHEN usecounts = 1 THEN 1 ELSE 0 END) AS [Total Plans - USE Count 1] FROM sys.dm_exec_cached_plans GROUP BY objtype ORDER BY [Total MBs - USE Count 1] DESC GO --Let's see the caching now --Clean Cache and Buffers DBCC FREEPROCCACHE DBCC DROPCLEANBUFFERS --Check the plan cache again GO USE AdventureWorks2012 GO -- Run Adhoc Query First Time SELECT * FROM HumanResources.Shift GO /* Check if Adhoc query is cached. It will return one result */ SELECT usecounts, cacheobjtype, objtype, text, size_in_bytes FROM sys.dm_exec_cached_plans CROSS APPLY sys.dm_exec_sql_text(plan_handle) WHERE usecounts > 0 AND text like '%SELECT * FROM HumanResources.Shift%' ORDER BY usecounts DESC; GO /* Enabling Advance Option */ SP_CONFIGURE 'show advanced options',1 RECONFIGURE GO /* Enabling Advance Workload Option */ SP_CONFIGURE 'optimize for ad hoc workloads',1 RECONFIGURE GO --Let's see the difference. Execute once and check the cache. DBCC FREEPROCCACHE DBCC DROPCLEANBUFFERS GO SELECT * FROM HumanResources.Shift SELECT usecounts, cacheobjtype, objtype, text, size_in_bytes FROM sys.dm_exec_cached_plans CROSS APPLY sys.dm_exec_sql_text(plan_handle) WHERE usecounts > 0 AND text like '%SELECT * FROM HumanResources.Shift%' ORDER BY usecounts DESC; GO --Run it again and check the cache! --Rollback SP_CONFIGURE 'show advanced options',1 RECONFIGURE GO SP_CONFIGURE 'optimize for ad hoc workloads',0 RECONFIGURE GO
<filename>egov/egov-egf/src/main/resources/db/migration/main/V20160314175054__egf_budget_reappropriation_sequence_py.sql INSERT INTO EG_SCRIPT (ID,NAME,type,SCRIPT,version) VALUES(nextval('seq_eg_script'),'egf.budget.reappropriation.sequence.generator','python', 'from org.egov.infra.validation.exception import ValidationError from org.egov.infstr.utils.seqgen import DatabaseSequenceFirstTimeException finRange=wfItem.getBudget().getFinancialYear().getFinYearRange() be_sequence="BDGT-REAPPRN-BE-"+finRange re_sequence="BDGT-REAPPRN-RE-"+finRange sequenceNumber = 0 type = wfItem.getBudget().getIsbere() def getBdgtReAppNum(): if type == "RE": try: sequenceNumber = sequenceGenerator.getNextNumberWithFormat(re_sequence,4,"0",0).getFormattedNumber().zfill(4) except DatabaseSequenceFirstTimeException,e: return (None,[ValidationError(e.getMessage(),e.getMessage())]) else: try: sequenceNumber = sequenceGenerator.getNextNumberWithFormat(be_sequence,4,"0",0).getFormattedNumber().zfill(4) except DatabaseSequenceFirstTimeException,e: return (None,[ValidationError(e.getMessage(),e.getMessage())]) result=type+"/"+finRange+"/"+sequenceNumber return (result,None) result,validationErrors=getBdgtReAppNum()',0);
<reponame>bytecraftoy/timesheets-backend # --- !Ups CREATE TABLE timeinput ( timeinput_id UUID NOT NULL, app_user_id UUID NOT NULL, project_id UUID NOT NULL, input_date DATE NOT NULL, minutes INTEGER DEFAULT NULL, description TEXT DEFAULT NULL, timestamp_created TIMESTAMP NOT NULL, timestamp_edited TIMESTAMP NOT NULL, CONSTRAINT timeinput_pk PRIMARY KEY (timeinput_id), CONSTRAINT timeinput_app_user_fk FOREIGN KEY (app_user_id) REFERENCES app_user(app_user_id), CONSTRAINT timeinput_project_fk FOREIGN KEY (project_id) REFERENCES project(project_id) ); CREATE UNIQUE INDEX idx_timeinput_unique ON timeinput(app_user_id, project_id, input_date); # --- !Downs DROP INDEX idx_timeinput_unique; DROP TABLE timeinput;
ALTER TABLE vedtak_simulering_mottaker ADD COLUMN opprettet_av VARCHAR(512) DEFAULT 'VL'::CHARACTER VARYING NOT NULL; ALTER TABLE vedtak_simulering_mottaker ADD COLUMN opprettet_tid TIMESTAMP(3) DEFAULT LOCALTIMESTAMP NOT NULL; ALTER TABLE vedtak_simulering_mottaker ADD COLUMN endret_av VARCHAR(512); ALTER TABLE vedtak_simulering_mottaker ADD COLUMN endret_tid TIMESTAMP(3); ALTER TABLE vedtak_simulering_postering ADD COLUMN opprettet_av VARCHAR(512) DEFAULT 'VL'::CHARACTER VARYING NOT NULL; ALTER TABLE vedtak_simulering_postering ADD COLUMN opprettet_tid TIMESTAMP(3) DEFAULT LOCALTIMESTAMP NOT NULL; ALTER TABLE vedtak_simulering_postering ADD COLUMN endret_av VARCHAR(512); ALTER TABLE vedtak_simulering_postering ADD COLUMN endret_tid TIMESTAMP(3);
<reponame>Shuttl-Tech/antlr_psql -- file:jsonb.sql ln:493 expect:true select '[{"b": "c"}, {"b": null}]'::jsonb #>> array['1','b']
<reponame>Shuttl-Tech/antlr_psql -- file:tsrf.sql ln:54 expect:true SELECT few.dataa, count(*) FROM few WHERE dataa = 'a' GROUP BY few.dataa ORDER BY 2
Rem $Header: bi_views.sql 2015/03/19 10:23:26 smtaylor Exp $ Rem Rem Copyright (c) 2002, 2015, Oracle Corporation. All rights reserved. Rem Rem Permission is hereby granted, free of charge, to any person obtaining Rem a copy of this software and associated documentation files (the Rem "Software"), to deal in the Software without restriction, including Rem without limitation the rights to use, copy, modify, merge, publish, Rem distribute, sublicense, and/or sell copies of the Software, and to Rem permit persons to whom the Software is furnished to do so, subject to Rem the following conditions: Rem Rem The above copyright notice and this permission notice shall be Rem included in all copies or substantial portions of the Software. Rem Rem THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, Rem EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF Rem MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND Rem NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE Rem LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION Rem OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION Rem WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Rem Rem NAME Rem bi_views.sql - Views and synonyms for schema BI Rem Rem DESCRIPTION Rem tbd Rem Rem MODIFIED (MM/DD/YY) Rem smtaylor 03/19/15 - added parameter 2, connect_string Rem smtaylor 03/19/15 - added @&connect_string to CONNECT Rem ahunold 05/07/03 - no COMPANY_ID Rem ahunold 09/18/02 - ahunold_sep17_02 Rem ahunold 09/17/02 - created Rem SET FEEDBACK 1 SET NUMWIDTH 10 SET LINESIZE 80 SET TRIMSPOOL ON SET TAB OFF SET PAGESIZE 100 PROMPT PROMPT specify password for BI as parameter 1: DEFINE bi_pass = &1 PROMPT PROMPT specify connect string as parameter 2: DEFINE connect_string = &2 PROMPT CONNECT bi/&bi_pass@&connect_string; CREATE SYNONYM channels FOR sh.channels; CREATE SYNONYM countries FOR sh.countries; CREATE SYNONYM times FOR sh.times; CREATE SYNONYM costs FOR sh.costs; CREATE SYNONYM customers FOR sh.customers; CREATE SYNONYM products FOR sh.products; CREATE SYNONYM promotions FOR sh.promotions; CREATE SYNONYM sales FOR sh.sales; COMMIT;
SELECT * FROM `{{internal_project_id}}.{{dataset_name}}.{{history_table_name}}` WHERE DATE(block_timestamp) <= '{{ds}}' UNION ALL SELECT * FROM `{{internal_project_id}}.{{dataset_name}}.{{table_name}}` WHERE DATE(block_timestamp) > '{{ds}}'
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 21, 2017 at 08:37 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `sangquan` -- -- -------------------------------------------------------- -- -- Table structure for table `sangnhanh_danhmuc` -- CREATE TABLE `sangnhanh_danhmuc` ( `MaDanhMuc` int(11) NOT NULL, `LoaiDanhMuc` varchar(20) NOT NULL, `TenDanhMuc` varchar(200) NOT NULL, `TenKhongDau` varchar(250) NOT NULL, `UrlHinh` text NOT NULL, `STT` int(11) NOT NULL, `NoiDung` text, `ThuocTinh` text, `CapCha` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `sangnhanh_danhmuc` -- INSERT INTO `sangnhanh_danhmuc` (`MaDanhMuc`, `LoaiDanhMuc`, `TenDanhMuc`, `TenKhongDau`, `UrlHinh`, `STT`, `NoiDung`, `ThuocTinh`, `CapCha`) VALUES (253, '1', 'Sang Quán Cafe', 'sang-quan-cafe', 'icon/cafe.png', 0, '', '{"MailMenu":"0","TimKiemHome":"1","DanhMucView":"danhmuccafe","DanhMucLienQuan1":"256","DanhMucLienQuan2":"256"}', 0), (254, '1', '<NAME>', 'sang-quan', 'icon/sang-quan-nhau.png', 0, '', '{"MailMenu":"1","TimKiemHome":"0","DanhMucView":"danhmucsangquan","DanhMucLienQuan1":"259","DanhMucLienQuan2":"258"}', 0), (255, '1', 'Sang Cửa Hàng | Shop', 'sang-cua-hang-shop', 'icon/sang-cua-hang-shop.png', 0, '', '{"MailMenu":"0","TimKiemHome":"0","DanhMucView":"index","DanhMucLienQuan1":"256","DanhMucLienQuan2":"256"}', 0), (259, '1', 'Sang Tiệm Tóc', 'sang-tiem-toc', 'icon/sang-tien-toc.png', 0, '', '{"MailMenu":"0","TimKiemHome":"0","DanhMucView":"danhmucsangquan","DanhMucLienQuan1":"256","DanhMucLienQuan2":"260"}', 0), (260, '1', '<NAME>', 'sang-quan-nhau', 'icon/sang-quan-nhau.png', 0, '', '{"MailMenu":"0"}', 0), (261, '1', '<NAME>', 'sang-quan-bida', 'icon/sang-quan-bida.png', 0, '', '{"MailMenu":"0","TimKiemHome":"0","DanhMucView":"danhmucsangquan","DanhMucLienQuan1":"263","DanhMucLienQuan2":"255"}', 0), (262, '1', 'Sang CLB Thể Hình', 'sang-clb-the-hinh', 'icon/SANG-CLB-THE-HINH.png', 0, '', '{"MailMenu":"0"}', 0), (263, '1', 'Sang Mặt Bằng', 'sang-mat-bang', 'icon/mat-bang-kinh-doanh.png', 11, '', '{"MailMenu":"0","TimKiemHome":"0","DanhMucView":"index","DanhMucLienQuan1":"256","DanhMucLienQuan2":"256"}', 0), (265, '{}', 'Quán Ăn - Nhậu - Ốc', 'quan-an-nhau-oc', '', 0, '', '{}', 0), (266, '{}', 'Q cơm, phở, hủ tiếu', 'q-com-pho-hu-tieu', '', 0, '', '{}', 0), (267, '{}', 'Sang nhà hàng', 'sang-nha-hang', '', 0, '', '{}', 0), (268, '{}', 'Bar - Beer - Karaoke', 'bar-beer-karaoke', '', 0, '', '{}', 0), (269, '{}', 'Trà Sữa - Chanh - Chè', 'tra-sua-chanh-che', '', 0, '', '{}', 0), (270, '{}', 'Sang phòng trà', 'sang-phong-tra', '', 0, '', '{}', 0), (271, '{}', 'Sang các shop', 'sang-cac-shop', '', 0, '', '{}', 0), (272, '{}', 'Spa - Thẩm Mỹ Viện', 'spa-tham-my-vien', '', 0, '', '{}', 0), (273, '{}', 'Tiệm Tóc - Nails', 'tiem-toc-nails', '', 0, '', '{}', 0), (274, '{}', 'Tiệm Áo Cưới - Studio', 'tiem-ao-cuoi-studio', '', 0, '', '{}', 0), (275, '{}', 'Massage - xông hơi', 'massage-xong-hoi', '', 0, '', '{}', 0), (276, '{}', 'Khách sạn', 'khach-san', '', 0, '', '{}', 0), (277, '{}', 'Mặt bằng', 'mat-bang', '', 0, '', '{}', 0), (278, '{}', 'Trường mầm non', 'truong-mam-non', '', 0, '', '{}', 0), (279, '{}', 'trường ngoại ngữ', 'truong-ngoai-ngu', '', 0, '', '{}', 0), (280, '{}', 'Các trung tâm', 'cac-trung-tam', '', 0, '', '{}', 0), (281, '{}', 'Sang công ty', 'sang-cong-ty', '', 0, '', '{}', 0), (282, '{}', 'Sang GPKD các loại', 'sang-gpkd-cac-loai', '', 0, '', '{}', 0), (283, '{}', 'Sang phòng vé', 'sang-phong-ve', '', 0, '', '{}', 0), (284, '{}', 'Nhà trọ', 'nha-tro', '', 0, '', '{}', 0), (285, '{}', 'Sang nhà thuốc', 'sang-nha-thuoc', '', 0, '', '{}', 0), (286, '{}', '<NAME>', 'phong-kham', '', 0, '', '{}', 0), (287, '{}', 'Showroom', 'showroom', '', 0, '', '{}', 0), (288, '{}', 'Sang các cơ sở', 'sang-cac-co-so', '', 0, '', '{}', 0), (289, '{}', 'Máy móc các loại', 'may-moc-cac-loai', '', 0, '', '{}', 0), (290, '{}', 'Sang tiệm bánh', 'sang-tiem-banh', '', 0, '', '{}', 0), (291, '{}', 'Tiệm - Sạp - Kios', 'tiem-sap-kios', '', 0, '', '{}', 0), (292, '{}', 'Sang CLB Bida', 'sang-clb-bida', '', 0, '', '{}', 0), (293, '{}', 'CLB Thể Hình', 'clb-the-hinh', '', 0, '', '{}', 0), (294, '{}', 'sang tiệm net', 'sang-tiem-net', '', 0, '', '{}', 0), (295, '{}', 'Tiệm Tạp Hóa', 'tiem-tap-hoa', '', 0, '', '{}', 0), (296, '{}', 'CH VLXD', 'ch-vlxd', '', 0, '', '{}', 0), (297, '{}', 'CH điện nước', 'ch-dien-nuoc', '', 0, '', '{}', 0), (298, '{}', 'SANG KHÁC', 'sang-khac', '', 0, '', '{}', 0), (299, '{}', 'Tiệm sửa - rửa xe', 'tiem-sua-rua-xe', '', 0, '', '{}', 0), (300, '{}', 'Tiệm photocopy', 'tiem-photocopy', '', 0, '', '{}', 0), (301, '{}', 'Tiệm điện thoại', 'tiem-dien-thoai', '', 0, '', '{}', 0), (302, '{}', 'sang tiệm giặt ủi', 'sang-tiem-giat-ui', '', 0, '', '{}', 0), (303, '{}', 'Khu du lịch - Câu Cá', 'khu-du-lich-cau-ca', '', 0, '', '{}', 0), (304, '{}', 'Xưởng - Trang Trại', 'xuong-trang-trai', '', 0, '', '{}', 0), (305, '{}', 'Cây kiểng-Thú Nuôi', 'cay-kiengthu-nuoi', '', 0, '', '{}', 0); -- -------------------------------------------------------- -- -- Table structure for table `sangnhanh_sanpham` -- CREATE TABLE `sangnhanh_sanpham` ( `IdTin` varchar(20) NOT NULL DEFAULT '0', `IDKhachHang` int(11) NOT NULL, `title` varchar(250) NOT NULL, `keyword` varchar(250) NOT NULL, `description` text NOT NULL, `MaDanhMuc` int(11) NOT NULL, `TieuDe` varchar(500) NOT NULL, `TieuDeKhongDau` varchar(500) NOT NULL, `TomTat` varchar(250) NOT NULL, `NoiDung` longtext NOT NULL, `AnHien` tinyint(4) NOT NULL DEFAULT '1', `NgayDang` datetime DEFAULT NULL, `UrlHinh` text, `TinNoiBat` int(11) NOT NULL, `SoLanXem` int(11) NOT NULL DEFAULT '0', `Stt` int(11) NOT NULL, `Gia` double NOT NULL, `GhiChu` text NOT NULL, `DoQuanTrong` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `sangnhanh_sanpham` -- INSERT INTO `sangnhanh_sanpham` (`IdTin`, `IDKhachHang`, `title`, `keyword`, `description`, `MaDanhMuc`, `TieuDe`, `TieuDeKhongDau`, `TomTat`, `NoiDung`, `AnHien`, `NgayDang`, `UrlHinh`, `TinNoiBat`, `SoLanXem`, `Stt`, `Gia`, `GhiChu`, `DoQuanTrong`) VALUES ('1487656587166', 53, 'Cho thuê quán Shisha tại 34 Nam Quốc Cang tại 34 Nam quốc Cang', 'Cho thuê quán Shisha tại 34 Nam Quốc Cang tại 34 Nam quốc Cang', 'Cho thuê quán Shisha tại 34 Nam Quốc Cang tại 34 Nam quốc Cang', 253, 'Cho thuê quán Shisha tại 34 Nam Quốc Cang tại 34 Nam quốc Cang', 'cho-thue-quan-shisha-tai-34-nam-quoc-cang-tai-34-nam-quoc-cang1487656587166', '', '', 1, '2017-02-21 06:56:27', '', 0, 0, 0, 20, '{"ViTri":"1","PhongCach":"1","SoPhong":"1","Toilet":"1","GoiDangTin":"1","DonVi":"1","NguoiLienHe":"","DienThoai":"","ChieuNgang":"5","ChieuRong":"5","Tinh":"32","Huyen":"34"}', 0), ('1487656587194', 53, 'Sang Quán Cafe 2MT Khu Bàu Cát , F. 14 , Tân Bình', 'Sang Quán Cafe 2MT Khu Bàu Cát , F. 14 , Tân Bình', 'Sang Quán Cafe 2MT Khu Bàu Cát , F. 14 , Tân Bình', 253, 'Sang Quán Cafe 2MT Khu Bàu Cát , F. 14 , Tân Bình', 'sang-quan-cafe-2mt-khu-bau-cat-f-14-tan-binh1487656587194', '', '', 1, '2017-02-21 06:56:27', '', 0, 0, 0, 20, '{"ViTri":"1","PhongCach":"1","SoPhong":"1","Toilet":"1","GoiDangTin":"1","DonVi":"1","NguoiLienHe":"","DienThoai":"","ChieuNgang":"5","ChieuRong":"5","Tinh":"1","Huyen":"1"}', 0), ('1487656587377', 53, 'Sang gấp quán cafe điểm tâm YẾN NHI quận 3', 'Sang gấp quán cafe điểm tâm YẾN NHI quận 3', 'Sang gấp quán cafe điểm tâm YẾN NHI quận 3', 253, 'Sang gấp quán cafe điểm tâm YẾN NHI quận 3', 'sang-gap-quan-cafe-diem-tam-yen-nhi-quan-3', '', '', 1, '2017-02-21 06:56:27', '', 0, 0, 0, 20, '{}', 0), ('1487656587399', 53, 'sang quán cafe cơm vp số 13 đường Hòa Bình, P. <NAME>, <NAME>.', 'sang quán cafe cơm vp số 13 đường <NAME>, <NAME>, Q.Thủ Đức.', 'sang quán cafe cơm vp số 13 đường Hòa Bình, P. <NAME>, Q.Thủ Đức.', 253, 'sang quán cafe cơm vp số 13 đường Hò<NAME>, <NAME>, Q.Thủ Đức.', 'sang-quan-cafe-com-vp-so-13-duong-hoa-binh-p-binh-tho-qthu-duc', '', '', 1, '2017-02-21 06:56:27', '', 0, 0, 0, 20, '{}', 0), ('1487656587450', 53, 'Sang quán cafe mới hoạt động tại quận 9', 'Sang quán cafe mới hoạt động tại quận 9', 'Sang quán cafe mới hoạt động tại quận 9', 253, 'Sang quán cafe mới hoạt động tại quận 9', 'sang-quan-cafe-moi-hoat-dong-tai-quan-9', '', '', 1, '2017-02-21 06:56:27', '', 0, 0, 0, 20, '{}', 0), ('1487656587456', 53, 'Sang quán cafe đông khách đường Đặng Thúc Vịnh Hóc Môn', 'Sang quán cafe đông khách đường Đặng Thúc Vịnh Hóc Môn', 'Sang quán cafe đông khách đường Đặng Thúc Vịnh Hóc Môn', 253, 'Sang quán cafe đông khách đường Đặng Thúc Vịnh Hóc Môn', 'sang-quan-cafe-dong-khach-duong-dang-thuc-vinh-hoc-mon', '', '', 1, '2017-02-21 06:56:27', '', 0, 0, 0, 20, '{}', 0), ('1487656587620', 53, 'Sang Quán Cafe + Cơm Trưa + Quán Nhậu, Làng Đại Học Khu B, Nhà Bè', 'Sang Quán Cafe + Cơm Trưa + Quán Nhậu, Làng Đại Học Khu B, Nhà Bè', 'Sang Quán Cafe + Cơm Trưa + Quán Nhậu, Làng Đại Học Khu B, Nhà Bè', 253, 'Sang Quán Cafe + Cơm Trưa + Quán Nhậu, Làng Đại Học Khu B, Nhà Bè', 'sang-quan-cafe-com-trua-quan-nhau-lang-dai-hoc-khu-b-nha-be', '', '', 1, '2017-02-21 06:56:27', '', 0, 0, 0, 20, '{}', 0), ('1487656587699', 53, 'Sang Cafe - Kem , MT Lê Văn Thọ , Gò Vấp', 'Sang Cafe - Kem , MT Lê Văn Thọ , Gò Vấp', 'Sang Cafe - Kem , MT Lê Văn Thọ , Gò Vấp', 253, 'Sang Cafe - Kem , MT Lê Văn Thọ , Gò Vấp', 'sang-cafe-kem-mt-le-van-tho-go-vap', '', '', 1, '2017-02-21 06:56:27', '', 0, 0, 0, 20, '{}', 0), ('1487656587725', 53, 'Sang quán cafe 2 mặt tiền quận 7', 'Sang quán cafe 2 mặt tiền quận 7', 'Sang quán cafe 2 mặt tiền quận 7', 253, 'Sang quán cafe 2 mặt tiền quận 7', 'sang-quan-cafe-2-mat-tien-quan-7', '', '', 1, '2017-02-21 06:56:27', '', 0, 0, 0, 20, '{}', 0), ('1487656587869', 53, 'sang quán cafe cơm vp 208 Nguyễn Trọng Tuyển, Phú Nhuận.', 'sang quán cafe cơm vp 208 Nguyễn Trọng Tuyển, Phú Nhuận.', 'sang quán cafe cơm vp 208 Nguyễn Trọng Tuyển, Phú Nhuận.', 253, 'sang quán cafe cơm vp 208 Nguyễn Trọng Tuyển, Phú Nhuận.', 'sang-quan-cafe-com-vp-208-nguyen-trong-tuyen-phu-nhuan', '', '', 1, '2017-02-21 06:56:27', '', 0, 0, 0, 20, '{}', 0), ('1487656587899', 53, 'Sang quán cafe trà sữa quận Bình Thạnh', 'Sang quán cafe trà sữa quận Bình Thạnh', 'Sang quán cafe trà sữa quận Bình Thạnh', 253, 'Sang quán cafe trà sữa quận Bình Thạnh', 'sang-quan-cafe-tra-sua-quan-binh-thanh', '', '', 1, '2017-02-21 06:56:27', '', 0, 0, 0, 20, '{}', 0), ('1487656587928', 53, 'Sang Quán Cafe Mặt tiền đường Phạm Văn Chiêu, P. 14, quận Gò Vấp', 'Sang Quán Cafe Mặt tiền đường Phạm Văn Chiêu, P. 14, quận Gò Vấp', 'Sang Quán Cafe Mặt tiền đường Phạm Văn Chiêu, P. 14, quận Gò Vấp', 253, 'Sang Quán Cafe Mặt tiền đường Phạm Văn Chiêu, P. 14, quận Gò Vấp', 'sang-quan-cafe-mat-tien-duong-pham-van-chieu-p-14-quan-go-vap', '', '', 1, '2017-02-21 06:56:27', '', 0, 0, 0, 20, '{}', 0), ('1487656587960', 53, 'Sang quán cafe Bóng Đá K+ quận Bình Thạnh', 'Sang quán cafe Bóng Đá K+ quận Bình Thạnh', 'Sang quán cafe Bóng Đá K+ quận Bình Thạnh', 253, 'Sang quán cafe Bóng Đá K+ quậ<NAME>', 'sang-quan-cafe-bong-da-k-quan-binh-thanh', '', '', 1, '2017-02-21 06:56:27', '', 0, 0, 0, 20, '{}', 0), ('1487658914103', 0, 'Cho thuê mặt bằng đẹp mở shop thời trang', 'Cho thuê mặt bằng đẹp mở shop thời trang', 'Cho thuê mặt bằng đẹp mở shop thời trang', 271, 'Cho thuê mặt bằng đẹp mở shop thời trang', 'cho-thue-mat-bang-dep-mo-shop-thoi-trang', '', '', 1, '2017-02-21 07:35:14', '', 0, 0, 0, 20, '{}', 0), ('1487658914131', 0, 'Sang mặt bằng Shop mặt tiền số 457B đường Nguyễn Kiệm, quận Phú Nhuận', 'Sang mặt bằng Shop mặt tiền số 457B đường Nguyễn Kiệm, quận Phú Nhuận', 'Sang mặt bằng Shop mặt tiền số 457B đường Nguyễn Kiệm, quận Phú Nhuận', 271, 'Sang mặt bằng Shop mặt tiền số 457B đường Nguyễn Kiệm, quận Phú Nhuận', 'sang-mat-bang-shop-mat-tien-so-457b-duong-nguyen-kiem-quan-phu-nhuan', '', '', 1, '2017-02-21 07:35:14', '', 0, 0, 0, 20, '{}', 0), ('1487658914160', 0, 'Sang khách sạn cao cấp khu cx Bắc Hải', 'Sang khách sạn cao cấp khu cx Bắc Hải', 'Sang khách sạn cao cấp khu cx Bắc Hải', 271, 'Sang khách sạn cao cấp khu cx Bắc Hải', 'sang-khach-san-cao-cap-khu-cx-bac-hai', '', '', 1, '2017-02-21 07:35:14', '', 0, 0, 0, 20, '{}', 0), ('1487658914251', 0, 'Sang shop 443 Lê Văn sỹ, quận Tân Bình', 'Sang shop 443 Lê Văn sỹ, quận Tân Bình', 'Sang shop 443 Lê Văn sỹ, quận Tân Bình', 271, 'Sang shop 443 Lê Văn sỹ, quận Tân Bình', 'sang-shop-443-le-van-sy-quan-tan-binh', '', '', 1, '2017-02-21 07:35:14', '', 0, 0, 0, 20, '{}', 0), ('1487658914284', 0, 'Sang gấp shop thời trang nữ giá rẻ đường thống nhất, Q Gò Vấp.', 'Sang gấp shop thời trang nữ giá rẻ đường thống nhất, Q Gò Vấp.', 'Sang gấp shop thời trang nữ giá rẻ đường thống nhất, Q Gò Vấp.', 271, 'Sang gấp shop thời trang nữ giá rẻ đường thống nhất, Q Gò Vấp.', 'sang-gap-shop-thoi-trang-nu-gia-re-duong-thong-nhat-q-go-vap', '', '', 1, '2017-02-21 07:35:14', '', 0, 0, 0, 20, '{}', 0), ('1487658914306', 0, 'Sang nhượng thương hiệu thời trang, Doanh Thu 300-600 triêu/tháng', 'Sang nhượng thương hiệu thời trang, Doanh Thu 300-600 triêu/tháng', 'Sang nhượng thương hiệu thời trang, Doanh Thu 300-600 triêu/tháng', 271, 'Sang nhượng thương hiệu thời trang, Doanh Thu 300-600 triêu/tháng', 'sang-nhuong-thuong-hieu-thoi-trang-doanh-thu-300600-trieuthang', '', '', 1, '2017-02-21 07:35:14', '', 0, 0, 0, 20, '{}', 0), ('1487658914311', 0, 'Sang Shop Thực Phẩm Sạch, Mạc Dĩnh Chi ,Q.1', 'Sang Shop Thực Phẩm Sạch, Mạc Dĩnh Chi ,Q.1', 'Sang Shop Thực Phẩm Sạch, Mạc Dĩnh Chi ,Q.1', 271, 'Sang Shop Thực Phẩm Sạch, Mạc Dĩnh Chi ,Q.1', 'sang-shop-thuc-pham-sach-mac-dinh-chi-q1', '', '', 1, '2017-02-21 07:35:14', '', 0, 0, 0, 20, '{}', 0), ('1487658914357', 0, 'Sang shop 265 Nguyễn Thượng Hiền P. 4 Quận 3', 'Sang shop 265 Nguyễn Thượng Hiền P. 4 Quận 3', 'Sang shop 265 Nguyễn Thượng Hiền P. 4 Quận 3', 271, 'Sang shop 265 Nguyễn Thượng Hiền P. 4 Quận 3', 'sang-shop-265-nguyen-thuong-hien-p-4-quan-3', '', '', 1, '2017-02-21 07:35:14', '', 0, 0, 0, 20, '{}', 0), ('1487658914363', 0, 'Đi nước ngoài sang Shop thời trang hàng xách tay', 'Đi nước ngoài sang Shop thời trang hàng xách tay', 'Đi nước ngoài sang Shop thời trang hàng xách tay', 271, 'Đi nước ngoài sang Shop thời trang hàng xách tay', 'di-nuoc-ngoai-sang-shop-thoi-trang-hang-xach-tay', '', '', 1, '2017-02-21 07:35:14', '', 0, 0, 0, 20, '{}', 0), ('1487658914383', 0, 'Cần sang shop thời trang nằm ngay ngã 3 Tô Ngọc Vân-Lam Sơn, Thủ Đức.', 'Cần sang shop thời trang nằm ngay ngã 3 Tô Ngọc Vân-Lam Sơn, Thủ Đức.', 'Cần sang shop thời trang nằm ngay ngã 3 Tô Ngọc Vân-Lam Sơn, Thủ Đức.', 271, 'Cần sang shop thời trang nằm ngay ngã 3 Tô Ngọc Vân-Lam Sơn, Thủ Đức.', 'can-sang-shop-thoi-trang-nam-ngay-nga-3-to-ngoc-vanlam-son-thu-duc', '', '', 1, '2017-02-21 07:35:14', '', 0, 0, 0, 20, '{}', 0), ('1487659759181', 0, 'Sag spa mini Gần sân golf Tân Sơn Nhất, chợ Tân Sơn, Tân Phú', 'Sag spa mini Gần sân golf Tân Sơn Nhất, chợ Tân Sơn, Tân Phú', 'Sag spa mini Gần sân golf Tân Sơn Nhất, chợ Tân Sơn, Tân Phú', 272, 'Sag spa mini Gần sân golf Tân Sơn Nhất, chợ Tân Sơn, Tân Phú', 'sag-spa-mini-gan-san-golf-tan-son-nhat-cho-tan-son-tan-phu', '', '', 1, '2017-02-21 07:49:19', '', 0, 0, 0, 20, '{"Tinh":"32","Huyen":"33","DienThoai":"0123456789","NguoiLienHe":"Admin"}', 0), ('1487659759294', 0, 'Sang nhượng spa đẹp Quận Tân Bình', 'Sang nhượng spa đẹp Quận Tân Bình', 'Sang nhượng spa đẹp Quận Tân Bình', 272, 'Sang nhượng spa đẹp Quận Tân Bình', 'sang-nhuong-spa-dep-quan-tan-binh', '', '', 1, '2017-02-21 07:49:19', '', 0, 0, 0, 20, '{"Tinh":"32","Huyen":"33","DienThoai":"0123456789","NguoiLienHe":"Admin"}', 0), ('1487659759306', 0, 'Sang nhương lại spa tại 47 Thạch Thị Thanh, quận 1', 'Sang nhương lại spa tại 47 Thạch Thị Thanh, quận 1', 'Sang nhương lại spa tại 47 Thạch Thị Thanh, quận 1', 272, 'Sang nhương lại spa tại 47 Thạch Thị Thanh, quận 1', 'sang-nhuong-lai-spa-tai-47-thach-thi-thanh-quan-1', '', '', 1, '2017-02-21 07:49:19', '', 0, 0, 0, 20, '{"Tinh":"32","Huyen":"33","DienThoai":"0123456789","NguoiLienHe":"Admin"}', 0), ('1487659759330', 0, 'Cần sang tiệm Spa, ở mặt tiền 154, Nguyễn Công Trứ, Q1', 'Cần sang tiệm Spa, ở mặt tiền 154, Nguyễn Công Trứ, Q1', 'Cần sang tiệm Spa, ở mặt tiền 154, Nguyễn Công Trứ, Q1', 272, 'Cần sang tiệm Spa, ở mặt tiền 154, Nguyễn Công Trứ, Q1', 'can-sang-tiem-spa-o-mat-tien-154-nguyen-cong-tru-q1', '', '', 1, '2017-02-21 07:49:19', '', 0, 0, 0, 20, '{"Tinh":"32","Huyen":"33","DienThoai":"0123456789","NguoiLienHe":"Admin"}', 0), ('1487659759358', 0, 'Sang spa thâm mỹ viện trung tâm quận 1', 'Sang spa thâm mỹ viện trung tâm quận 1', 'Sang spa thâm mỹ viện trung tâm quận 1', 272, 'Sang spa thâm mỹ viện trung tâm quận 1', 'sang-spa-tham-my-vien-trung-tam-quan-1', '', '', 1, '2017-02-21 07:49:19', '', 0, 0, 0, 20, '{"Tinh":"32","Huyen":"33","DienThoai":"0123456789","NguoiLienHe":"Admin"}', 0), ('1487659759417', 0, 'Sang Spa 96 đường Trần Văn Kỷ, P.14, Q. Bình Thạnh.', 'Sang Spa 96 đường Trần Văn Kỷ, P.14, Q. Bình Thạnh.', 'Sang Spa 96 đường Trần Văn Kỷ, P.14, Q. Bình Thạnh.', 272, 'Sang Spa 96 đường Trần Văn Kỷ, P.14, Q. Bình Thạnh.', 'sang-spa-96-duong-tran-van-ky-p14-q-binh-thanh', '', '', 1, '2017-02-21 07:49:19', '', 0, 0, 0, 20, '{"Tinh":"32","Huyen":"33","DienThoai":"0123456789","NguoiLienHe":"Admin"}', 0), ('1487659759435', 0, 'Sang Spa chăm sóc da công nghệ cao 118/14 Trần Quang Diệu P.14, Q.3', 'Sang Spa chăm sóc da công nghệ cao 118/14 Trần Quang Diệu P.14, Q.3', 'Sang Spa chăm sóc da công nghệ cao 118/14 Trần Quang Diệu P.14, Q.3', 272, 'Sang Spa chăm sóc da công nghệ cao 118/14 Trần Quang Diệu P.14, Q.3', 'sang-spa-cham-soc-da-cong-nghe-cao-11814-tran-quang-dieu-p14-q3', '', '', 1, '2017-02-21 07:49:19', '', 0, 0, 0, 20, '{"Tinh":"32","Huyen":"33","DienThoai":"0123456789","NguoiLienHe":"Admin"}', 0), ('1487659759551', 0, 'Sang Spa-Tóc Nail mặt tiền 40 Quốc Hương, P.Thảo Điền, quận 2.', 'Sang Spa-Tóc Nail mặt tiền 40 Quốc Hương, P.Thảo Điền, quận 2.', 'Sang Spa-Tóc Nail mặt tiền 40 Quốc Hương, P.Thảo Điền, quận 2.', 272, 'Sang Spa-Tóc Nail mặt tiền 40 Quốc Hương, P.Thảo Điền, quận 2.', 'sang-spatoc-nail-mat-tien-40-quoc-huong-pthao-dien-quan-2', '', '', 1, '2017-02-21 07:49:19', '', 0, 0, 0, 20, '{"Tinh":"32","Huyen":"33","DienThoai":"0123456789","NguoiLienHe":"Admin"}', 0), ('1487659759569', 0, 'Sang Spa nhỏ đẹp đông khách đường Thích Quảng Đức', 'Sang Spa nhỏ đẹp đông khách đường Thích Quảng Đức', 'Sang Spa nhỏ đẹp đông khách đường Thích Quảng Đức', 272, 'Sang Spa nhỏ đẹp đông khách đường Thích Quảng Đức', 'sang-spa-nho-dep-dong-khach-duong-thich-quang-duc', '', '', 1, '2017-02-21 07:49:19', '', 0, 0, 0, 20, '{"Tinh":"32","Huyen":"33","DienThoai":"0123456789","NguoiLienHe":"Admin"}', 0), ('1487659759645', 0, 'Đi nước ngoài cần sang gấp Spa ở Võ Thị Sáu Quận 3', 'Đi nước ngoài cần sang gấp Spa ở Võ Thị Sáu Quận 3', 'Đi nước ngoài cần sang gấp Spa ở Võ Thị Sáu Quận 3', 272, 'Đi nước ngoài cần sang gấp Spa ở Võ Thị Sáu Quận 3', 'di-nuoc-ngoai-can-sang-gap-spa-o-vo-thi-sau-quan-3', '', '', 1, '2017-02-21 07:49:19', '', 0, 0, 0, 20, '{"Tinh":"32","Huyen":"33","DienThoai":"0123456789","NguoiLienHe":"Admin"}', 0), ('201701241485234399', 53, '', '', '', 259, 'Sang lại tổ hợp tiệm Xăm & Coffee, mặt tiền số 571 đường ', 'sang-lai-to-hop-tiem-xam-coffee-mat-tien-so-571-duong201701241485234399', '<h3><em>s as dasdas</em></h3>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>&nbsp;</p>', '<p>asdasdas</p>\r\n', 1, '2017-01-24 12:06:39', 'sanpham/nhadathanoi_3.20150525133347-f208.jpg', 0, 0, 0, 800, '{"ViTri":"3","PhongCach":"3","SoPhong":"5","Toilet":"5","GoiDangTin":"2","NguoiLienHe":"asdasdas","DienThoai":"23423421","ChieuNgang":"9","ChieuRong":"9","Tinh":"32","Huyen":"33"}', 0), ('201702151487117976', 53, '', '', '', 1, '', '', '', '', 0, '2017-02-15 07:19:36', '', 0, 0, 0, 0, '{}', 0), ('201702191487510842', 53, 'SANG GẤP QUÁN NHẬU 45 NGUYỄN VĂN LINH, P. <NAME>ẬN TÂY, QUẬN 7.', 'SANG GẤP QUÁN NHẬU 45 NGUYỄN VĂN LINH, P. TÂN THUẬN TÂY, QUẬN 7.', 'SANG GẤP QUÁN NHẬU 45 NGUYỄN VĂN LINH, P. TÂN THUẬN TÂY, QUẬN 7.', 260, 'Sang quán nhậu nguyển văn linh', 'sang-quan-nhau-nguyen-van-linh201702191487510842', '', '<p><a href="http://sangquan.com.vn/default/quan-an-nhau-oc-r3" style="margin: 0px; padding: 0px; font-family: sans-serif; font-size: 14px; text-decoration: none; text-align: justify;" target="_blank"><strong><span style="font-family:times new roman; font-size:18px">Sang Gấp Qu&aacute;n Nhậu mặt tiền số 45, đường Nguyễn Văn Linh, P. T&acirc;n Thuận T&acirc;y, Quận 7</span></strong></a><br />\r\n<br />\r\n<span style="color:rgb(0, 0, 0); font-family:times new roman; font-size:18px">- Diện t&iacute;ch sử dụng 200m2. C&oacute; ph&ograve;ng ngủ lại, khu bếp ri&ecirc;ng. Gi&aacute; thu&ecirc; rẻ: 7triệu/th&aacute;ng.</span><br />\r\n<br />\r\n<span style="color:rgb(0, 0, 0); font-family:times new roman; font-size:18px">qu&aacute;n nằm mặt tiền đường Nguyễ<NAME>, đối diện KCX T&acirc;n Thuận, đ&atilde; kinh doanh l&acirc;u năm, lượng kh&aacute;ch đ&ocirc;ng, ổn định.Sang to&agrave;n bộ: m&aacute;i che di động, tủ m&aacute;t,tủ đ&ocirc;ng,b&agrave;n ghế, thiết bị nấu đầy đủ... v&agrave;o kinh doanh ngay.</span><br />\r\n<br />\r\n<span style="color:rgb(254, 36, 25); font-family:times new roman; font-size:18px">Gi&aacute;&nbsp;<a href="http://sangquan.com.vn/default/quan-an-nhau-oc-r3" style="margin: 0px; padding: 0px; font-family: sans-serif; font-size: 14px; text-decoration: none;" target="_blank"><strong><span style="color:rgb(254, 36, 25)">sang qu&aacute;n nhậu</span></strong></a>&nbsp;:&nbsp;<span style="font-family:sans-serif; font-size:32px">80 triệu</span>&nbsp;(c&ograve;n thương lượng) - chua bao gồm 7triệu tiền cọc nh&agrave;</span><br />\r\n<br />\r\n<br />\r\n<span style="color:rgb(0, 0, 0); font-family:times new roman; font-size:18px"><span style="font-family:sans-serif; font-size:24px">Li&ecirc;n hệ:&nbsp;</span><span style="font-family:sans-serif; font-size:24px"><a class="phonenumber" href="tel:0966588037" style="margin: 0px; padding: 0px; font-size: 20px; text-decoration: none;">0966588037</a></span><span style="font-family:sans-serif; font-size:24px">&nbsp;chị G</span>iang</span></p>\r\n', 1, '2017-02-19 02:27:22', '', 0, 0, 0, 80, '{"ViTri":"1","PhongCach":"1","SoPhong":"1","Toilet":"1","GoiDangTin":"1","DonVi":"1","NguoiLienHe":"Giang","DienThoai":"0966588037","ChieuNgang":"3","ChieuRong":"3","Tinh":"1","Huyen":"2"}', 0); -- -- Indexes for dumped tables -- -- -- Indexes for table `sangnhanh_danhmuc` -- ALTER TABLE `sangnhanh_danhmuc` ADD PRIMARY KEY (`MaDanhMuc`), ADD UNIQUE KEY `TenKhongDau` (`TenKhongDau`); -- -- Indexes for table `sangnhanh_sanpham` -- ALTER TABLE `sangnhanh_sanpham` ADD PRIMARY KEY (`IdTin`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `sangnhanh_danhmuc` -- ALTER TABLE `sangnhanh_danhmuc` MODIFY `MaDanhMuc` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=342; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
select count(distinct F1.ID2) + count(distinct F2.ID2) from Friend F1, Friend F2, Highschooler where Highschooler.name = 'Cassandra' and Highschooler.ID = F1.ID1 -- reach friends of friends and F2.ID1 = F1.ID2 -- except herself and F2.ID1 <> Highschooler.ID and F2.ID2 <> Highschooler.ID ;
CREATE TABLE [dbo].[Car] ( [Id] int identity not null PRIMARY KEY, [Name] nvarchar(255) ) GO CREATE TABLE [dbo].[Person] ( [Id] int identity not null, [Name] nvarchar(255) not null, [FavouriteCar] int, CONSTRAINT FK_Person_FavouriteCar FOREIGN KEY (FavouriteCar) REFERENCES dbo.Car (Id) ) GO
<reponame>ckamtsikis/cmssw /* Show all the database objects */ SELECT table_name FROM user_tables ORDER BY table_name; SELECT sequence_name FROM user_sequences ORDER BY sequence_name; SELECT procedure_name, object_name FROM user_procedures ORDER BY procedure_name; SELECT object_name AS FUNCTION FROM user_objects WHERE object_type = 'FUNCTION'; SELECT trigger_name, table_name FROM user_triggers WHERE trigger_name NOT LIKE 'BIN%' ORDER BY trigger_name; SELECT db_link, username FROM user_db_links;
<gh_stars>10-100 select db_instance_identifier, title, tags, akas from aws.aws_rds_db_instance where db_instance_identifier = '{{ resourceName }}'
SELECT (myfunc(x)).* FROM some_table; SELECT (myfunc(x)).a, (myfunc(x)).b, (myfunc(x)).c FROM some_table;
-- +migrate Up SELECT create_index('workflow_run', 'IDX_WORKFLOW_LOAD_RUNS_NUM', 'project_id, workflow_id, num'); -- +migrate Down DROP INDEX IDX_WORKFLOW_LOAD_RUNS_NUM;
# SQL day3 # JOIN -- user/addr 테이블 작성 후 join 연습 use ssac; create table user( user_id int primary key auto_increment, name varchar(30) not null ); create table addr( addr_id int primary key auto_increment, addr_name varchar(30) not null, user_id int not null ); insert into user(name) values ("jin"), ("po"), ("alice"); select * from user; insert into addr(addr_name, user_id) values ("seoul", 1), ("pusan", 2), ("daegu", 4), ("seoul", 5); select * from addr; ## inner join select * from user join addr; -- join만 하면, user기준으로 모든 행에 각각 addr 요소가 붙음 -- 교집합의 데이터만 출력 select user.user_id, user.name, addr.addr_name from user join addr -- inner join과 같은뜻 on user.user_id = addr.user_id; ## left join select user.user_id, user.name, addr.addr_name from user left join addr on user.user_id = addr.user_id; -- user기준 addr테이블 붙이기 ## right join select addr.user_id, user.name, addr.addr_name from user right join addr -- inner join과 같은뜻 on user.user_id = addr.user_id; -- 국가코드, 국가이름, 국가인구, 도시이름, 도시인구 출력 -- 도시인구가 500만 이상인 도시만 출력, 도시인구순으로 내림차순 -- 도시의 국가인구에 대한 비율 출력하는 컬럼 추가 use world; select country.code, country.name, country.population , city.name, city.population , round(city.population/country.population * 100, 2) as rate from country join city on country.code = city.countrycode having city.population >= 500*10000 order by rate desc limit 10 ; -- (staff id기준) 스태프 아이디, 스태프 풀네임, 매출액 use sakila; select payment.staff_id, concat(staff.first_name, " ", staff.last_name), payment.amount from payment join staff on payment.staff_id = staff.staff_id -- 스태프별 발생한 총 매출을 출력 use sakila; select payment.staff_id, concat(staff.first_name, " ", staff.last_name) as full_name, sum(payment.amount) as total from payment join staff on payment.staff_id = staff.staff_id group by payment.staff_id; -- 위의 문제를 서브쿼리로 use sakila; select * from( select payment.staff_id, concat(staff.first_name, " ", staff.last_name) as full_name, amount from payment join staff on payment.staff_id = staff.staff_id )A -- 테이블 3개 조인 -- 국가이름, 도시이름, 사용언어, 사용언어 비율 use world; select country.name as country_name, city.name as city_name ,countrylanguage.language, countrylanguage.percentage from country join city on country.code = city.countrycode join countrylanguage on country.code=countrylanguage.countrycode ; -- 좀 더 간편하게 select country.name as country_name, city.name as city_name ,countrylanguage.language, countrylanguage.percentage -- 중복되지 않은 컬럼인 language, percentage는 독립적으로 써도 되긴함 from country, city, countrylanguage where country.code = city.countrycode and country.code = countrylanguage.countrycode; -- 도시에서 언어를 사용하는 인구수(국가의 언어사용비율이 도시의 언어사용비율과 같다 가정) select country.name as country_name, city.name as city_name , countrylanguage.language, countrylanguage.percentage , round(city.population*countrylanguage.percentage/100,0) as rate from country, city, countrylanguage where country.code = city.countrycode and country.code = countrylanguage.countrycode; ## UNION (outer join) : 쿼리를 실행한 결과를 row 데이터 기준으로 합쳐서 출력 use ssac; select name from user union -- 중복 데이터를 제거하고 싶지 않은 경우, union all select addr_name from addr; -- addr의 서울이 2개 있었는데, union으로 하면 사라짐 : 중복 데이터를 제거하는 기능도 포함 -- outer join select user.user_id, user.name, addr.addr_name from user left join addr on user.user_id=addr.user_id union select addr.user_id, user.name, addr.addr_name from user right join addr on user.user_id=addr.user_id; # Sub Query -- select, from, where에서 사용 가능 ## sub query : select -- 전체 나라수, 전체 도시수, 전체 언어수를 하나의 row, 세개의 column으로 출력 use world; select (select count(*) from country) as country_count , (select count(*) from city ) as city_count , (select count(distinct(language)) from countrylanguage) as language_count from dual; -- 빈 테이블 -- 800만 이상이 되는 도시의 국가코드, 국가이름, 도시이름, 도시인구수 출력 -- join으로 표현 select country.code, country.name, city.name, city.population from country -- 239개 join city -- 4079개 > 975000 rows 생성 on country.code=city.countrycode -- 4079개 having city.population >= 800*10000; -- 10개 -- sub query로 표현(계산 효율이 좋음) select country.code, country.name, city.name, city.population from ( select * from city where population >= 800*10000 ) as city -- 10개 join country -- 239개 > 2390 rows 생성 on country.code=city.countrycode; -- 10개 ## sub query : where -- 800만 이상 도시의 국가코드, 국가이름, 대통령이름 출력 select countrycode from city where population >= 800*10000; select code, name, headofstate from country where code in (select countrycode from city where population >= 800*10000 ); -- any, all select code, name, headofstate, population from country where population >= ( select population from country where code in ("KOR", "BRA") ); -- 오류 발생 -- any : or : 둘중에 하나만 만족해도 TRUE select code, name, headofstate, population from country where population >= any ( select population from country where code in ("KOR", "BRA") ); -- all : and : 둘다 만족해야 TRUE select code, name, headofstate, population from country where population >= all ( select population from country where code in ("KOR", "BRA") ); -- 대륙과 지역별 사용하는 언어의 수 select country.continent, country.region, countrylanguage.language from country join countrylanguage on country.code = countrylanguage.countrycode; -- continent, region별 language의 수를 출력 select A.continent, A.region, count(A.language) as language from ( select country.continent, country.region, countrylanguage.language from country join countrylanguage on country.code = countrylanguage.countrycode ) A group by A.continent, A.region # View -- 가상의 테이블로 특정 쿼리를 실행한 결과 데이터를 출력하는 용도 -- 실제 데이터를 저장하지 않음 => "수정 및 인덱스 설정이 불가능" -- 쿼리를 조금 더 단순하게 작성하게 해주는 기능 -- table에 저장된 데이터의 주소를 불러와서 사용하는 개념 ## 800만 이상의 도시인구가 있는 국가의 국가콛, 국가이름, 도시이름 use world; select country.code, country.name, city_800.name from ( select countrycode, name from city where population >= 800*10000 ) as city_800 join country on country.code = city_800.countrycode; -- 위의 sub query를 view를 사용해서 단순하게 create view city2 as -- view이름을 city2로 설정 select countrycode, name from city where population >= 800*10000; -- city2 활용 select country.code, country.name, city2.name from city2 join country on country.code = city2.countrycode; -- 테이블의 데이터를 직접 다루는(수정하는) 경우, 그만큼 공간을 많이 차지함 -- 뷰는 같은 저장공간을 같이 사용하므로 공간의 제약이 없음(직접 저장하지 않기도하고) # INDEX : 테이블에서 데이터를 빠르게 검색할 수 있도록 해주는 기능 -- employs 데이터로 실습 -- employs 데이터를 pc에 저장 -> 인터넷을 통해 aws ec2로 전송 (scp 방법) -- (scp방법을 사용하기 위해 ip, pem값이 있어야 전송이 가능) -- scp로 전송한 파일을 ec2에서 mysql을 실행해서 넣어주기 use employees; show index from salaries; -- 인덱스 확인 desc salaries; select count(*) from salaries; select * from salaries where to_date < "1986-01-01"; -- 763ms create index tdate on salaries (to_date); -- 인덱스 생성 select * from salaries where to_date < "1986-01-01"; -- 37ms drop index tdate on salaries; select * from salaries where to_date < "1986-01-01"; -- 1s, 인덱스가 없어서 매우느림 # 실행계획 explain select * from salaries where to_date < "1986-01-01"; -- 인덱스 생성 후, 실행 create index tdate on salaries (to_date); explain select * from salaries where to_date < "1986-01-01"; drop index tdate on salaries; # Trigger : 특정 테이블을 감시하고 있다가, 설정한 조건이 감지되면 지정해놓은 쿼리가 자동으로 실행 use test; show tables; drop table money; drop table user; -- ex)chat, backup이라는 테이블이 있다. chat의 데이터를 delete를 했을 때, backup으로 chat으로 옮겨지게 할 수 있다. create table chat( chat_id int primary key auto_increment, msg varchar(200) not null ); create table backup( backup_id int primary key auto_increment, backup_msg varchar(200), backup_date timestamp default current_timestamp -- 현재시간 자동저장되는 열 ); insert into chat(msg) values ("hello"), ("hi"), ("my name is peter!"); select * from chat; -- trigger 생성 delimiter | create trigger backup_tr before delete on chat -- backup_tr이라는 이름의 트리거생성 / chat테이블에 delete가 실행되기 전에 for each row begin -- for each row : 한줄 한줄 실행될때 begin : 실행해라(delete는 한줄씩 삭제된다) insert into backup(backup_msg) value (old.msg); -- backup 테이블의 backup_msg열에 값을 넣는다 -- create에도, value에도 ';'가 들어가야해서 오류가 난다 -> delimiter 설정 end | -- '|'로 사용됨을 알 수 있다. show triggers; -- trigger에 대한 정보 알 수 있음 select * from chat; select * from backup; -- 현재 비어있음 -- 삭제 쿼리 작동시키기 delete from chat where msg like "h%" -- chat테이블에서 h로 시작하는 msg 삭제 limit 10; select * from chat; -- 데이터가 삭제됨 select * from backup; -- 삭제된 데이터가 백업되어 있음 -- 데이터 복원 insert into chat(msg) select backup_msg from backup; select * from chat; -- 현재 메세지만 복원했는데, 보통 id랑 같이 해주는게 좋다 -- triger 삭제 use test; drop trigger backup_tr; -- join 예제 : 국가별로 국가코드, 국가이름, 국가인구, 도시인구, 도시갯수 를 출력 use world; select A.code, A.name, A.population , sum(B.population) as city_p, count(B.name) as city_c from country A join city B on A.code = B.countrycode group by A.code, A.name, A.population;
<filename>src/ESFA.DC.Data.LARS.Database/Core/Tables/LARS_StandardMetaData.sql CREATE TABLE [Core].[LARS_StandardMetaData] ( [StandardCode] INT NOT NULL, [RoleOverview] NVARCHAR (MAX) NULL, [JobRoles] NVARCHAR (MAX) NULL, [Keywords] NVARCHAR (MAX) NULL, [EntryRequirements] NVARCHAR (MAX) NULL, [Learning] NVARCHAR (MAX) NULL, [Qualifications] NVARCHAR (MAX) NULL, [ProfessionalRegistration] NVARCHAR (MAX) NULL, [EffectiveFrom] DATE NULL, [EffectiveTo] DATE NULL, [Created_On] DATETIME NOT NULL, [Created_By] VARCHAR (100) NOT NULL, [Modified_On] DATETIME NOT NULL, [Modified_By] VARCHAR (100) NOT NULL, CONSTRAINT [PK_CORE_LARS_StandardDescription] PRIMARY KEY CLUSTERED ([StandardCode] ASC) WITH (FILLFACTOR = 90) );
<reponame>zharmedia386/Progate-Course-Repo<gh_stars>0 DROP DATABASE IF EXISTS blog; CREATE DATABASE blog CHARACTER SET utf8 COLLATE utf8_general_ci; USE blog; CREATE TABLE articles ( id int(11) NOT NULL AUTO_INCREMENT, title varchar(100), summary varchar(200), content text, category varchar(11), PRIMARY KEY (id) ); INSERT INTO articles( id, title, summary, content, category ) VALUES ( '1', 'Why Is It Called a Bug?', 'You may have heard the word "bug" when you''re doing programming right? I''ve researched about the origin of why "bug" is used.', 'Have you ever said "Oh it''s buggy!" when something weird happened while you''re playing games or using some applications? I got curious about this "bug", so I did some research and here''s what I found! \r\n\r\nFirst of all, the word "buggy" seems to be referring to a glitch that occurred unexpectedly. How did the word "bug" came to refer to a glitch? Well, I''ve researched about this too! \r\n\r\nWhen researching about the origin of the word "bug", it took me back to the time when computers were invented. \r\nThe computers at that time were about the size of a school classroom and looked like factory machines. One day, this big computer suddenly stopped working due to a glitch. The team who invented the computer looked everywhere for the cause of the glitch and found a moth stuck inside the computer. Just because of this one tiny moth, it caused the huge computer to stop working. Since then, the word "bug" has come to mean that glitches were cause by a moth (bug). \r\n\r\nIt''s hard to imagine now that the reason behind the huge computer glitch was because of a real bug was inside the computer! If you have a friend who says, "It''s buggy!", you can tell them this story!', 'all' ); INSERT INTO articles( id, title, summary, content, category ) VALUES ( '2', 'Do You Know the Origins of Cookies?', 'We might have known cookies as a food, but they''re not related at all. I got curious about it, so I looked it up on the internet and the result was interesting!', 'When you first heard about Cookies from <NAME>, did you think of them as something you could eat? Well, I thought of it as a food! But I was disappointed after I heard about the explanation of Cookies as it has nothing to do with food. Because of my disappointment and curiosity on how they got the name Cookies, I looked it up online! \r\n\r\nThere are many things that''ve been said about the origins of the name Cookies, but I''ll just share some of the things that I''ve found.\r\n\r\n1. Cookies are used for storing data, so the name came from the cookies used as storage food.\r\n\r\n2. It was named Cookies because the developer who invented it liked cookies.\r\n\r\n3. It was named after the data that behaves similarly, called "Magic Cookie".\r\n\r\nMe personally, I like the first point which is related to food preservation! You''ll find something interesting when you look up the origins of the name!', 'limited' ); INSERT INTO articles( id, title, summary, content, category ) VALUES ( '3', 'Mouse That Connects to a Computer', 'Have you ever heard that every computer has a mouse on it? Actually, this story is true!', 'Hey I have a mouse connected to my computer! You should get one too! \r\n\r\nI would love to, but I already have a hamster! \r\n\r\nThat''s just a new mouse right? What''s a hamster? \r\n\r\nHaha! Mine doesn''t have a "tail". A mouse without a "tail" is a hamster, right? \r\n\r\nJokes aside, let''s get into our topic.\r\n\r\nRecently, technology has advanced and wireless has become the mainstream. Before wireless technology arrived, we used to connect everything with cords. It''s the same with the computer mouse. It''s said that the name "mouse" comes from the shape and the way the cable is extending from it, which looks like a real mouse. \r\n\r\nNowadays, although we still call it "mouse", it comes with many buttons, no cables, and various shapes, which makes them looking less and less like a mouse!\r\n\r\nOh right! One more thing. Do a search for "mouse movement units" and you might be surprised at what you find!', 'limited' ); INSERT INTO articles( id, title, summary, content, category ) VALUES ( '4', 'What Is the "My" in "MySQL"?', 'Have you ever thought of the "My" in MySQL refers to the "My" as in "Myself"? Try to look it up and you''ll be surprised to find out that it actually means something completely different!', 'This time, we''re going to talk about MySQL, which is also used in the Node.js courses.\r\nThe other day, I suddenly found myself wondering about the "My" on MySQL, so I did some research again!\r\nBefore I looked it up, I thought it meant "My" SQL as in I own the SQL because it''s named MySQL, but it actually means something different!\r\n\r\nSo let me share my research with you!\r\n\r\nMySQL was founded by <NAME> and his friends. Michael had three children, named My, Max, and Maria, respectively.\r\n\r\nSome of you may have figured out that there''s a child''s name My, and yes, MySQL was named after the founder''s child!\r\n\r\nBy the way, <NAME>, the founder of MySQL, has also created other databases named MaxDB and MariaDB. It''s nice to know that you can name your own system after your child!', 'limited' ); CREATE TABLE users ( id int(11) NOT NULL AUTO_INCREMENT, username varchar(20) DEFAULT NULL, email varchar(100) DEFAULT NULL, password varchar(60) DEFAULT NULL, PRIMARY KEY (id) ); INSERT INTO users (username, email, password) VALUES ('K<NAME>','<EMAIL>','<PASSWORD>'); INSERT INTO users (username, email, password) VALUES ('Master Wooly','<EMAIL>','<PASSWORD>'); INSERT INTO users (username, email, password) VALUES ('Ben the Baby','<EMAIL>','<PASSWORD>'); INSERT INTO users (username, email, password) VALUES ('Birdie','<EMAIL>','<PASSWORD>');
DELETE FROM project WHERE id=?;
DROP DATABASE IF EXISTS employeeTrackerDB; CREATE database employeeTrackerDB; USE employeeTrackerDB; CREATE TABLE department ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(30) NULL, PRIMARY KEY (id) ); CREATE TABLE role ( id INT NOT NULL AUTO_INCREMENT, title VARCHAR(30), salary DECIMAL, department_id INT, PRIMARY KEY (id), CONSTRAINT FK_department_id FOREIGN KEY (department_id) REFERENCES department(id) ); CREATE TABLE employees ( id INT NOT NULL AUTO_INCREMENT, first_name VARCHAR(30), last_name VARCHAR(30), role_id INT, manager_id INT NULL, PRIMARY KEY (id), CONSTRAINT FK_role_id FOREIGN KEY (role_id) REFERENCES role(id), CONSTRAINT FK_manager_id FOREIGN KEY (manager_id) REFERENCES employees(id) ); -- SELECT * FROM employees; -- select * from role; -- select * from department;
-- showfree.sql -- show all free space col tbs format a15 col fid format 999999 col bid format 999999 col MEG format 99999.99 col blocks format 9999999 clear break clear compute break on tbs skip 1 on report compute sum of MEG on tbs compute sum of MEG on report @@title80 'Show All Free Space' --ttitle center 'All Free Space' right 'Page ' SQL.PNO skip 2 --btitle right 'showfree.sql' select tablespace_name tbs, file_id fid, block_id bid, (bytes/1048576) MEG, blocks from dba_free_space where tablespace_name like '%' order by tbs,meg desc,fid,bid / btitle off
<gh_stars>0 CREATE TABLE IF NOT EXISTS Department ( department_id varchar(15) PRIMARY KEY, department_name varchar(50) ); CREATE TABLE IF NOT EXISTS Student ( student_usn varchar(10) CHECK (student_usn ~ '^[0-9][A-Z]{2}[0-9]{2}[A-Z]{2}[0-9]{3}') PRIMARY KEY, first_name varchar(20), middle_name varchar(20), last_name varchar(20), joining_year numeric(4), expected_graduation_year numeric(4), quota varchar(15) CHECK (quota IN ('CET', 'COMED-K', 'MANAGEMENT')), email_id varchar(320), phone numeric(10), department_id varchar(15) REFERENCES Department (department_id) ON DELETE CASCADE, dob date ); CREATE TABLE IF NOT EXISTS Parent ( student_usn varchar(15) REFERENCES Student (student_usn) ON DELETE CASCADE, name varchar(50), contact numeric(10), email_id varchar(320) ); CREATE TABLE IF NOT EXISTS Faculty ( faculty_id varchar(320) PRIMARY KEY, name varchar(50), department_id varchar(15) REFERENCES Department (department_id) ON DELETE CASCADE ); CREATE TABLE IF NOT EXISTS Proctor ( proctor_id varchar(320), student_usn varchar(15) UNIQUE, PRIMARY KEY (proctor_id, student_usn), FOREIGN KEY (proctor_id) REFERENCES Faculty (faculty_id) ON DELETE CASCADE, FOREIGN KEY (student_usn) REFERENCES Student (student_usn) ON DELETE CASCADE ); CREATE TABLE IF NOT EXISTS Reports ( meet_date varchar(10), proctor_id varchar(320) REFERENCES Faculty (faculty_id) ON DELETE CASCADE ); CREATE TABLE IF NOT EXISTS Remarks ( meet_date varchar(10), proctor_id varchar(320) REFERENCES Faculty (faculty_id) ON DELETE CASCADE, student_usn varchar(10) REFERENCES Student (student_usn) ON DELETE CASCADE, remark varchar(250) ); CREATE TABLE IF NOT EXISTS ProctorCredentials ( proctor_id varchar(320) UNIQUE REFERENCES Faculty (faculty_id) ON DELETE CASCADE, password VARCHAR(512) );
<filename>backend/db/init/players-scores.sql -- Creating Tables DROP TABLE IF EXISTS players; CREATE TABLE players ( id serial not null constraint players_pk primary key, name text ); DROP TABLE IF EXISTS scores; CREATE TABLE scores ( id serial not null constraint table_name_pk primary key, score integer, player_id integer constraint table_name_players_id_fk references players, date_created timestamp ); -- Insert data INSERT INTO players(id, name) VALUES (1, 'John'); INSERT INTO scores(score, player_id, date_created) VALUES (111, 1, current_timestamp); INSERT INTO scores(score, player_id, date_created) VALUES (122, 1, current_timestamp); INSERT INTO scores(score, player_id, date_created) VALUES (133, 1, current_timestamp); INSERT INTO players(id, name) VALUES (2, 'Jane'); INSERT INTO scores(score, player_id, date_created) VALUES (211, 2, current_timestamp); INSERT INTO scores(score, player_id, date_created) VALUES (222, 2, current_timestamp); INSERT INTO scores(score, player_id, date_created) VALUES (233, 2, current_timestamp);
<filename>Interface/src/sql/forsesk_table.sql -- phpMyAdmin SQL Dump -- version 4.6.6deb4 -- https://www.phpmyadmin.net/ -- -- Hostiteľ: localhost:3306 -- Čas generovania: St 11.Okt 2017, 21:20 -- Verzia serveru: 5.7.19-0ubuntu0.17.04.1 -- Verzia PHP: 5.6.11-1ubuntu3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Databáza: `forsesk` -- -- -------------------------------------------------------- -- -- Štruktúra tabuľky pre tabuľku `noszel` -- CREATE TABLE `noszel` ( `sql_id` int(10) UNSIGNED NOT NULL, `PV` varchar(63) COLLATE utf8_bin NOT NULL, `partner` varchar(63) COLLATE utf8_bin NOT NULL, `partner_id` varchar(15) COLLATE utf8_bin NOT NULL, `norma` varchar(7) COLLATE utf8_bin NOT NULL, `material_nazov` varchar(63) COLLATE utf8_bin NOT NULL, `material_cislo` int(7) NOT NULL, `spz` varchar(9) COLLATE utf8_bin NOT NULL, `vodic` varchar(40) COLLATE utf8_bin NOT NULL, `vazil` varchar(40) COLLATE utf8_bin NOT NULL, `poznamka` varchar(126) COLLATE utf8_bin NOT NULL, `id_paired_brutto` varchar(15) CHARACTER SET utf8 DEFAULT NULL COMMENT 'FK', `id_paired_tara` varchar(15) CHARACTER SET utf8 DEFAULT NULL COMMENT 'FK', `brutto_time` datetime NOT NULL, `brutto_weight` varchar(7) COLLATE utf8_bin NOT NULL, `tara_time` datetime NOT NULL, `tara_weight` varchar(7) COLLATE utf8_bin NOT NULL, `netto_time` datetime NOT NULL, `netto_weight` varchar(7) COLLATE utf8_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- -- Kľúče pre exportované tabuľky -- -- -- Indexy pre tabuľku `noszel` -- ALTER TABLE `noszel` ADD PRIMARY KEY (`sql_id`), ADD KEY `zodpovedá` (`id_paired_brutto`), ADD KEY `zodpoveda1` (`id_paired_tara`); -- -- AUTO_INCREMENT pre exportované tabuľky -- -- -- AUTO_INCREMENT pre tabuľku `noszel` -- ALTER TABLE `noszel` MODIFY `sql_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- Obmedzenie pre exportované tabuľky -- -- -- Obmedzenie pre tabuľku `noszel` -- ALTER TABLE `noszel` ADD CONSTRAINT `zodpoveda1` FOREIGN KEY (`id_paired_tara`) REFERENCES `strediska`.`noszel` (`id`), ADD CONSTRAINT `zodpovedá` FOREIGN KEY (`id_paired_brutto`) REFERENCES `strediska`.`noszel` (`id`); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<gh_stars>0 CREATE PROCEDURE [dbo].[AddRandomCarOrders] @MaxOrders int AS BEGIN --declare @MaxOrders int = 1500 declare @lastNumber int; SELECT TOP 1 @lastNumber = SUBSTRING(Ord_Code, PATINDEX('%/%', Ord_Code)+1, PATINDEX('%/%', Ord_Code)) from Orders order by Ord_Id desc IF @lastNumber is null BEGIN SET @lastNumber=0 END ;with CTE (Cus_Id, Emp_Id, Model_Id, Date_Start, Rownumber) as (select 1, 1, 1, DATEADD(DAY, ABS(CHECKSUM(NEWID()) % 400), '2017-01-01'), 1 union all SELECT --ABS(CHECKSUM(NewId())) % @MaxOrders - 0, [dbo].RandomCustomer(), [dbo].RandomTeamMember(), ABS(CHECKSUM(NewId())) % 98-0, DATEADD(DAY, ABS(CHECKSUM(NEWID()) % 400), '2017-01-01'), Rownumber+1 from CTE where Rownumber<=@MaxOrders ) INSERT INTO Orders (Ord_Code, Ord_CusId, Ord_EmpId, Ord_ModId, Ord_MprId, Ord_SellPrice, Ord_OrderDate, Ord_PlannedPickupDate, Ord_IsCompleted, Ord_IsPaid) select distinct TOP (@MaxOrders) --cast(YEAR(GETDATE()) as varchar(4))+'/'+cast(@lastNumber as varchar(10))+cast(Rownumber as varchar(10)), ISNULL((SELECT MAX(Ord_Id) from Orders),0)+ROW_NUMBER() OVER (ORDER BY (SELECT NULL)), Cus_Id as Cus_ID , Emp_id, M.Mod_Id AS Ord_ModId, 1 as Mpr_Id, MP.MPr_NetValue AS Ord_SellPrice, CTE.Date_Start as MPr_DateStart, NULL AS Ord_PlannedPickupDate, (SELECT ABS(CHECKSUM(NewId())) % 2 - 0) AS Ord_IsCompleted, (SELECT ABS(CHECKSUM(NewId())) % 2 - 0) AS Ord_IsPaid from CTE JOIN Model M on CTE.Model_Id=M.Mod_Id Join ModelPrice MP on M.Mod_Id=MP.Mpr_ModId --JOIN (SELECT MAX(Mpr_Id) FROM ModelPrice GROUP BY Mpr_ModId WHERE ) MP2 on Mp OPTION (MAXRECURSION 0) UPDATE Orders SET Ord_PlannedPickupDate=DATEADD(day, 14,Ord_OrderDate) WHERE Ord_PlannedPickupDate is null END
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 03, 2017 at 03:29 AM -- Server version: 5.5.24-log -- PHP Version: 5.3.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `stock` -- -- -------------------------------------------------------- -- -- Table structure for table `brands` -- CREATE TABLE IF NOT EXISTS `brands` ( `brand_id` int(11) NOT NULL AUTO_INCREMENT, `brand_name` varchar(255) NOT NULL, `brand_active` int(11) NOT NULL DEFAULT '0', `brand_status` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`brand_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ; -- -- Dumping data for table `brands` -- INSERT INTO `brands` (`brand_id`, `brand_name`, `brand_active`, `brand_status`) VALUES (1, 'Gap', 1, 2), (2, 'Forever 21', 1, 2), (3, 'Gap', 1, 2), (4, 'Forever 21', 1, 2), (5, 'Adidas', 1, 2), (6, 'Gap', 1, 2), (7, 'Forever 21', 1, 2), (8, 'Adidas', 1, 2), (9, 'Gap', 1, 2), (10, 'Forever 21', 1, 2), (11, 'Adidas', 1, 2), (12, 'Gap', 1, 2), (13, 'Forever 21', 1, 2), (14, 'Veetu Vaithiyam', 1, 1); -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE IF NOT EXISTS `categories` ( `categories_id` int(11) NOT NULL AUTO_INCREMENT, `categories_name` varchar(255) NOT NULL, `categories_active` int(11) NOT NULL DEFAULT '0', `categories_status` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`categories_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ; -- -- Dumping data for table `categories` -- INSERT INTO `categories` (`categories_id`, `categories_name`, `categories_active`, `categories_status`) VALUES (1, 'Sports ', 1, 2), (2, 'Casual', 1, 2), (3, 'Casual', 1, 2), (4, 'Sport', 1, 2), (5, 'Casual', 1, 2), (6, 'Sport wear', 1, 2), (7, 'Casual wear', 1, 2), (8, 'Sports ', 1, 2), (9, 'Oil', 1, 1); -- -------------------------------------------------------- -- -- Table structure for table `customer` -- CREATE TABLE IF NOT EXISTS `customer` ( `client_id` int(10) NOT NULL, `client_name` varchar(15) NOT NULL, `phone_number` int(10) NOT NULL, `address` varchar(40) NOT NULL, `family_type` int(2) NOT NULL, `family_count` int(2) NOT NULL, `google_map` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `orders` -- CREATE TABLE IF NOT EXISTS `orders` ( `order_id` int(11) NOT NULL AUTO_INCREMENT, `order_date` date NOT NULL, `client_name` varchar(255) NOT NULL, `client_contact` varchar(255) NOT NULL, `sub_total` varchar(255) NOT NULL, `vat` varchar(255) NOT NULL, `total_amount` varchar(255) NOT NULL, `discount` varchar(255) NOT NULL, `grand_total` varchar(255) NOT NULL, `paid` varchar(255) NOT NULL, `due` varchar(255) NOT NULL, `payment_type` int(11) NOT NULL, `payment_status` int(11) NOT NULL, `order_status` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ; -- -- Dumping data for table `orders` -- INSERT INTO `orders` (`order_id`, `order_date`, `client_name`, `client_contact`, `sub_total`, `vat`, `total_amount`, `discount`, `grand_total`, `paid`, `due`, `payment_type`, `payment_status`, `order_status`) VALUES (1, '2016-07-15', '<NAME>', '9807867564', '2700.00', '351.00', '3051.00', '1000.00', '2051.00', '1000.00', '1051.00', 2, 2, 2), (2, '2016-07-15', '<NAME>', '9808746573', '3400.00', '442.00', '3842.00', '500.00', '3342.00', '3342', '0', 2, 1, 2), (3, '2016-07-16', '<NAME>', '9809876758', '3600.00', '468.00', '4068.00', '568.00', '3500.00', '3500', '0', 2, 1, 2), (4, '2016-08-01', 'Indra', '19208130', '1200.00', '156.00', '1356.00', '1000.00', '356.00', '356', '0.00', 2, 1, 2), (5, '2016-07-16', '<NAME>', '9808767689', '920.00', '119.60', '1039.60', '0', '1039.60', '0', '1039.60', 2, 1, 1); -- -------------------------------------------------------- -- -- Table structure for table `order_item` -- CREATE TABLE IF NOT EXISTS `order_item` ( `order_item_id` int(11) NOT NULL AUTO_INCREMENT, `order_id` int(11) NOT NULL DEFAULT '0', `product_id` int(11) NOT NULL DEFAULT '0', `quantity` varchar(255) NOT NULL, `rate` varchar(255) NOT NULL, `total` varchar(255) NOT NULL, `order_item_status` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`order_item_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=18 ; -- -- Dumping data for table `order_item` -- INSERT INTO `order_item` (`order_item_id`, `order_id`, `product_id`, `quantity`, `rate`, `total`, `order_item_status`) VALUES (1, 1, 1, '1', '1500', '1500.00', 2), (2, 1, 2, '1', '1200', '1200.00', 2), (3, 2, 3, '2', '1200', '2400.00', 2), (4, 2, 4, '1', '1000', '1000.00', 2), (5, 3, 5, '2', '1200', '2400.00', 2), (6, 3, 6, '1', '1200', '1200.00', 2), (7, 4, 5, '1', '1200', '1200.00', 2), (16, 5, 9, '3', '150', '450.00', 1), (17, 5, 10, '2', '235', '470.00', 1); -- -------------------------------------------------------- -- -- Table structure for table `product` -- CREATE TABLE IF NOT EXISTS `product` ( `product_id` int(11) NOT NULL AUTO_INCREMENT, `skuid` varchar(12) DEFAULT NULL, `product_name` varchar(255) NOT NULL, `product_cost` int(8) NOT NULL, `transport_cost` int(4) NOT NULL, `bottel_cost` int(4) NOT NULL, `margin_cost` int(5) NOT NULL, `product_desc` varchar(40) NOT NULL, `product_image` text NOT NULL, `brand_id` int(11) NOT NULL, `categories_id` int(11) NOT NULL, `quantity` varchar(255) NOT NULL, `rate` varchar(255) NOT NULL, `active` int(11) NOT NULL DEFAULT '0', `status` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`product_id`), UNIQUE KEY `skuid` (`skuid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ; -- -- Dumping data for table `product` -- INSERT INTO `product` (`product_id`, `skuid`, `product_name`, `product_cost`, `transport_cost`, `bottel_cost`, `margin_cost`, `product_desc`, `product_image`, `brand_id`, `categories_id`, `quantity`, `rate`, `active`, `status`) VALUES (9, 'gnut01042017', 'Groundnut Oil', 0, 0, 0, 0, '', '../assests/images/stock/1454858dfb9f882fc9.png', 14, 9, '15', '150', 1, 1), (10, 'same01042017', 'Sesame Oil', 0, 0, 0, 0, '', '../assests/images/stock/586358df0e5d1d647.jpg', 14, 9, '16', '235', 1, 1), (12, NULL, 'COCO', 5600, 7, 5, 35, '', '../assests/images/stock/1181558dfb9e1e8b74.png', 14, 9, '32', '222', 1, 1); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, PRIMARY KEY (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Dumping data for table `users` -- INSERT INTO `users` (`user_id`, `username`, `password`, `email`) VALUES (1, 'admin', '<PASSWORD>', ''); /*!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>scripts/createTables.sql -- Criar tabelas USE spotper CREATE TABLE gravadora ( cod INT NOT NULL, nome NVARCHAR(50) NOT NULL, homepage NVARCHAR(50), pais NVARCHAR(50) NOT NULL, cidade NVARCHAR(50) NOT NULL, rua NVARCHAR(50) NOT NULL, CONSTRAINT gravadora_PK PRIMARY KEY (cod) ) ON spotper_fg01; CREATE TABLE periodo_musical ( id INT NOT NULL, inicio_periodo DATE NOT NULL, fim_periodo DATE, descricao NVARCHAR(50) NOT NULL, CONSTRAINT periodo_musical_PK PRIMARY KEY (id) ) ON spotper_fg01; CREATE TABLE compositor ( id_compositor INT NOT NULL, id_periodo INT NOT NULL, dt_nascimento DATE NOT NULL, dt_morte DATE, pais NVARCHAR(50) NOT NULL, cidade NVARCHAR(50) NOT NULL, nome NVARCHAR(50) NOT NULL CONSTRAINT compositor_PK PRIMARY KEY (id_compositor), CONSTRAINT compositor_periodo_musical_FK FOREIGN KEY (id_periodo) REFERENCES periodo_musical ON DELETE NO ACTION ON UPDATE CASCADE ) ON spotper_fg01; CREATE TABLE tipo_interprete ( id INT NOT NULL, tipo NVARCHAR(50) NOT NULL, CONSTRAINT tipo_interprete_PK PRIMARY KEY (id) ) ON spotper_fg01; CREATE TABLE interprete ( id_interprete INT NOT NULL, id_tipo_interprete INT NOT NULL, nome NVARCHAR(50), CONSTRAINT interprete_PK PRIMARY KEY (id_interprete), CONSTRAINT interprete_tipo_inter_FK FOREIGN KEY (id_tipo_interprete) REFERENCES tipo_interprete ON DELETE NO ACTION ON UPDATE CASCADE ) ON spotper_fg01; CREATE TABLE album ( id INT NOT NULL, cod_gravadora INT NOT NULL, descricao NVARCHAR(50) NOT NULL, tipo_compra NVARCHAR(50) NOT NULL, dt_gravacao DATE NOT NULL, dt_compra DATE, preco_compra DECIMAL(10,2), CONSTRAINT album_PK PRIMARY KEY (id), CONSTRAINT album_gravadora_FK FOREIGN KEY (cod_gravadora) REFERENCES gravadora ON DELETE CASCADE ON UPDATE CASCADE, ) ON spotper_fg01; CREATE TABLE tipo_composicao ( id INT NOT NULL, descricao NVARCHAR(50) NOT NULL, CONSTRAINT tipo_composicao_PK PRIMARY KEY (id) ) ON spotper_fg01; CREATE TABLE faixa ( num_faixa INT NOT NULL, id_album INT NOT NULL, id_tipo_composicao INT NOT NULL, descricao NVARCHAR(50) NOT NULL, tipo_gravacao NVARCHAR(3) NOT NULL, tempo_duracao DECIMAL(10,2) NOT NULL, CONSTRAINT faixa_PK PRIMARY KEY (num_faixa, id_album), CONSTRAINT faixa_tipo_composicao_FK FOREIGN KEY (id_tipo_composicao) REFERENCES tipo_composicao ON DELETE NO ACTION ON UPDATE CASCADE, CONSTRAINT faixa_album_FK FOREIGN KEY (id_album) REFERENCES album ON DELETE CASCADE ON UPDATE CASCADE ) ON spotper_fg02; CREATE TABLE faixa_compositor ( id_compositor INT NOT NULL, num_faixa INT NOT NULL, id_album INT NOT NULL, CONSTRAINT faixa_compositor_PK PRIMARY KEY (id_compositor, num_faixa, id_album), CONSTRAINT faixa_compositor_comp_FK FOREIGN KEY (id_compositor) REFERENCES compositor ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT faixa_compositor_faixa_FK FOREIGN KEY (num_faixa, id_album) REFERENCES faixa (num_faixa, id_album) ON DELETE CASCADE ON UPDATE CASCADE ) ON spotper_fg01; CREATE TABLE telefone_gravadora ( cod INT NOT NULL, telefone NVARCHAR(20) NOT NULL, CONSTRAINT telefone_gravadora_PK PRIMARY KEY (cod, telefone), CONSTRAINT tel_gravadora_FK FOREIGN KEY (cod) REFERENCES gravadora ON DELETE CASCADE ON UPDATE CASCADE ) ON spotper_fg01; CREATE TABLE faixa_interprete ( id_interprete INT NOT NULL, id_album INT NOT NULL, num_faixa INT NOT NULL, CONSTRAINT faixa_interprete_PK PRIMARY KEY (id_interprete, num_faixa, id_album), CONSTRAINT faixa_interprete_inter_FK FOREIGN KEY (id_interprete) REFERENCES interprete ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT faixa_interprete_faixa_FK FOREIGN KEY (num_faixa, id_album) REFERENCES faixa (num_faixa, id_album) ON DELETE CASCADE ON UPDATE CASCADE ) ON spotper_fg01; CREATE TABLE playlist ( id INT NOT NULL, nome NVARCHAR(50) NOT NULL, dt_criacao DATE NOT NULL, tempo_total_execucao DECIMAL(10,2), CONSTRAINT playlist_PK PRIMARY KEY (id) ) ON spotper_fg02; CREATE TABLE faixa_playlist ( id_playlist INT NOT NULL, id_album INT NOT NULL, num_faixa INT NOT NULL, qtde_tocada INT, dt_ultima_vez_tocada DATE, CONSTRAINT faixa_playlist_PK PRIMARY KEY (id_playlist, num_faixa, id_album), CONSTRAINT faixa_playlist_play_FK FOREIGN KEY (id_playlist) REFERENCES playlist ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT faixa_playlist_faixa_FK FOREIGN KEY (num_faixa, id_album) REFERENCES faixa (num_faixa, id_album) ON DELETE CASCADE ON UPDATE CASCADE ) ON spotper_fg02;
DROP TABLE "public"."projects_cache";
DROP TABLE IF EXISTS `node_countries`; CREATE TABLE `node_countries` ( `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '', `tld` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '', `cca2` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '', `capital` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '', `callingCode` INT(3) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; INSERT INTO `node_countries` (`id`, `name`, `tld`, `cca2`, `capital`, `callingCode`) VALUES (NULL,'Afghanistan','.af','AF','Kabul',93), (NULL,'Italy','.it','IT','Rome',39), (NULL,'France','.fr','FR','Rome',33), (NULL,'Malaysia','.my','MY','Kuala Lumpur',60), (NULL,'Mauritania','.mr','MR','Nouakchott',222), (NULL,'Tunisia','.tn','TN','Tunis',216), (NULL,'Tanzania','.tz','TZ','Dodoma',255), (NULL,'Seychelles','.sc','SC','Victoria',248), (NULL,'Norway','.no','NO','Oslo',47), (NULL,'Nepal','.np','NP','Kathmandu',977);
<reponame>mndnext/MNDDEV2<filename>templates/project/db/remove_db.sql DROP DATABASE IF EXISTS mnddev;
<reponame>AndreyQC/UN-statistic<filename>src/UNStatistic/UNStatistic.DWH.Azure/adf/Stored procedures/usp_Configuration_Seed.sql  CREATE PROCEDURE [adf].[usp_Configuration_Seed] ( @JSON NVARCHAR(MAX) ) AS BEGIN SET NOCOUNT ON; BEGIN TRY BEGIN TRANSACTION; DELETE FROM [adf].[Configuration]; INSERT INTO [adf].[Configuration] ( [ConfigurationKey], [ConfigurationValue] ) SELECT [ConfigurationKey], [ConfigurationValue] FROM OPENJSON(@JSON) WITH ( [ConfigurationKey] NVARCHAR(150) '$.ConfigurationKey', [ConfigurationValue] NVARCHAR(500) '$.ConfigurationValue' ); COMMIT TRANSACTION; END TRY BEGIN CATCH DECLARE @ErrorMessage NVARCHAR(4000); DECLARE @ErrorSeverity INT; DECLARE @ErrorState INT; SET @ErrorMessage = ERROR_MESSAGE(); SET @ErrorSeverity = ERROR_SEVERITY(); SET @ErrorState = ERROR_STATE(); RAISERROR (@ErrorMessage, @ErrorSeverity, @ErrorState); IF @@TRANCOUNT > 0 BEGIN ROLLBACK TRANSACTION; END END CATCH END;
<filename>ORACLE_SQL/SHARED_FUNCTIONS/22_SEC/22F003_SEC.GET_USR_NAME.sql /* Formatted on 10/6/2014 3:09:31 AM (QP5 v5.126.903.23003) */ CREATE OR REPLACE FUNCTION SEC.GET_USR_NAME (P_USRID NUMBER) RETURN VARCHAR2 AS L_RESULT VARCHAR2 (200 BYTE); BEGIN L_RESULT := ''; SELECT USER_NAME INTO L_RESULT FROM SEC.SEC_USERS WHERE USER_ID = P_USRID; RETURN L_RESULT; EXCEPTION WHEN OTHERS THEN RETURN ''; END; /
<gh_stars>10-100 -- file:alter_generic.sql ln:364 expect:true CREATE OPERATOR FAMILY alt_opf13 USING hash
-- file:rowsecurity.sql ln:1503 expect:true INSERT INTO r1 SELECT a + 1 FROM r2 RETURNING *
-- file:xml.sql ln:272 expect:true SELECT xml_is_well_formed('<pg:foo xmlns:pg="http://postgresql.org/stuff">bar</my:foo>')
<reponame>aws-samples/postgres-lightweight-locks-simulator<gh_stars>1-10 CREATE SCHEMA partman; CREATE EXTENSION pg_partman WITH SCHEMA partman; SELECT partman.create_parent( p_parent_table => 'public.orders', p_control => 'created_at', p_type => 'native', p_start_partition => '2022-01-21', p_interval=> 'daily', p_premake => 10);
<reponame>MellonQ/leechcraft CREATE TABLE mrss_thumbnails ( mrss_thumb_id BIGINT PRIMARY KEY, mrss_id BIGINT NOT NULL, url TEXT, width INTEGER, height INTEGER, time TEXT ); ALTER TABLE mrss_thumbnails ADD FOREIGN KEY ( mrss_id ) REFERENCES mrss ( mrss_id ) ON DELETE CASCADE ON UPDATE CASCADE ;
/* Select all movies stored in the database (independent of actor). */ SELECT mov.mov_href, mov.mov_title, mov.mov_year, mov.mov_rating, mt.met_name FROM movie AS mov INNER JOIN medium_type AS mt ON mov.mov_type = mt.met_id;
<filename>tajo-core-tests/src/test/resources/queries/TestInsertQuery/testInsertOverwriteWithTargetColumns.sql insert overwrite into table1 (col1, col3) select l_orderkey, l_quantity from default.lineitem;
CREATE TABLE grouper_ddl_worker ( id VARCHAR(40) NOT NULL, grouper VARCHAR(40) NOT NULL, worker_uuid VARCHAR(40) NOT NULL, heartbeat TIMESTAMP, last_updated TIMESTAMP NOT NULL, PRIMARY KEY (id) ); CREATE UNIQUE INDEX grouper_ddl_worker_grp_idx ON grouper_ddl_worker (grouper);
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='TRADITIONAL'; -- ----------------------------------------------------- -- Table `audit_event_history` -- ----------------------------------------------------- DROP TABLE IF EXISTS `audit_event_history` ; CREATE TABLE IF NOT EXISTS `audit_event_history` ( `audit_event_id` INT(10) NOT NULL AUTO_INCREMENT , `audit_user` VARCHAR(50) NOT NULL , `audit_host` VARCHAR(25) NOT NULL , `audit_timestamp` TIMESTAMP NULL DEFAULT NULL , `action` VARCHAR(255) NOT NULL , `action_event` VARCHAR(50) NOT NULL , `action_id_param` VARCHAR(50) NULL DEFAULT NULL , `event_note` VARCHAR(255) NULL DEFAULT NULL , `exception` VARCHAR(255) NULL DEFAULT NULL , `exception_message` VARCHAR(255) NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`audit_event_id`) ) ENGINE = InnoDB DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `audit_entity_history` -- ----------------------------------------------------- DROP TABLE IF EXISTS `audit_entity_history` ; CREATE TABLE IF NOT EXISTS `audit_entity_history` ( `audit_entity_id` INT(10) NOT NULL AUTO_INCREMENT , `audit_event_id` INT(10) NOT NULL , `entity_id` INT(10) NOT NULL , `entity` VARCHAR(100) NOT NULL , `entity_type` VARCHAR(100) NOT NULL , `audit_type` VARCHAR(10) NOT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`audit_entity_id`) , INDEX `audit_entity_history__audit_event_id` (`audit_event_id` ASC) , CONSTRAINT `audit_entity_history__audit_event_id` FOREIGN KEY (`audit_event_id` ) REFERENCES `audit_event_history` (`audit_event_id` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `audit_event_work` -- ----------------------------------------------------- DROP TABLE IF EXISTS `audit_event_work` ; CREATE TABLE IF NOT EXISTS `audit_event_work` ( `audit_event_id` INT(10) NOT NULL AUTO_INCREMENT , `audit_user` VARCHAR(50) NOT NULL , `audit_host` VARCHAR(25) NOT NULL , `audit_timestamp` TIMESTAMP NULL DEFAULT NULL , `action` VARCHAR(255) NOT NULL , `action_event` VARCHAR(50) NOT NULL , `action_id_param` VARCHAR(50) NULL DEFAULT NULL , `event_note` VARCHAR(255) NULL DEFAULT NULL , `exception` VARCHAR(255) NULL DEFAULT NULL , `exception_message` VARCHAR(255) NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`audit_event_id`) ) ENGINE = InnoDB AUTO_INCREMENT = 1071 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `audit_entity_work` -- ----------------------------------------------------- DROP TABLE IF EXISTS `audit_entity_work` ; CREATE TABLE IF NOT EXISTS `audit_entity_work` ( `audit_entity_id` INT(10) NOT NULL AUTO_INCREMENT , `audit_event_id` INT(10) NOT NULL , `entity_id` INT(10) NOT NULL , `entity` VARCHAR(100) NOT NULL , `entity_type` VARCHAR(100) NULL DEFAULT NULL , `audit_type` VARCHAR(10) NOT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`audit_entity_id`) , INDEX `audit_entity_work__audit_event_id` (`audit_event_id` ASC) , CONSTRAINT `audit_entity_work__audit_event_id` FOREIGN KEY (`audit_event_id` ) REFERENCES `audit_event_work` (`audit_event_id` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB AUTO_INCREMENT = 103 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `audit_property_history` -- ----------------------------------------------------- DROP TABLE IF EXISTS `audit_property_history` ; CREATE TABLE IF NOT EXISTS `audit_property_history` ( `audit_property_id` INT(10) NOT NULL AUTO_INCREMENT , `audit_entity_id` INT(10) NOT NULL , `property` VARCHAR(100) NOT NULL , `index_key` VARCHAR(100) NULL DEFAULT NULL , `subproperty` VARCHAR(255) NULL DEFAULT NULL , `old_value` VARCHAR(255) NOT NULL , `new_value` VARCHAR(255) NOT NULL , `audit_timestamp` TIMESTAMP NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`audit_property_id`) , INDEX `audit_property_history__audit_entity_id` (`audit_entity_id` ASC) , CONSTRAINT `audit_property_history__audit_entity_id` FOREIGN KEY (`audit_entity_id` ) REFERENCES `audit_entity_history` (`audit_entity_id` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `audit_property_work` -- ----------------------------------------------------- DROP TABLE IF EXISTS `audit_property_work` ; CREATE TABLE IF NOT EXISTS `audit_property_work` ( `audit_property_id` INT(10) NOT NULL AUTO_INCREMENT , `audit_entity_id` INT(10) NOT NULL , `property` VARCHAR(100) NOT NULL , `index_key` VARCHAR(100) NULL DEFAULT NULL , `subproperty` VARCHAR(255) NULL DEFAULT NULL , `old_value` VARCHAR(255) NOT NULL , `new_value` VARCHAR(255) NOT NULL , `audit_timestamp` TIMESTAMP NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`audit_property_id`) , INDEX `audit_property_work__audit_entity_id` (`audit_entity_id` ASC) , CONSTRAINT `audit_property_work__audit_entity_id` FOREIGN KEY (`audit_entity_id` ) REFERENCES `audit_entity_work` (`audit_entity_id` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB AUTO_INCREMENT = 328 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `audit_text_history` -- ----------------------------------------------------- DROP TABLE IF EXISTS `audit_text_history` ; CREATE TABLE IF NOT EXISTS `audit_text_history` ( `audit_property_id` INT(10) NOT NULL , `old_text` TEXT NULL DEFAULT NULL , `new_text` TEXT NULL DEFAULT NULL , PRIMARY KEY (`audit_property_id`) , INDEX `audit_text_history__audit_property_id` (`audit_property_id` ASC) , CONSTRAINT `audit_text_history__audit_property_id` FOREIGN KEY (`audit_property_id` ) REFERENCES `audit_property_history` (`audit_property_id` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `audit_text_work` -- ----------------------------------------------------- DROP TABLE IF EXISTS `audit_text_work` ; CREATE TABLE IF NOT EXISTS `audit_text_work` ( `audit_property_id` INT(10) NOT NULL , `old_text` TEXT NULL DEFAULT NULL , `new_text` TEXT NULL DEFAULT NULL , PRIMARY KEY (`audit_property_id`) , INDEX `audit_text_work__audit_property_id` (`audit_property_id` ASC) , CONSTRAINT `audit_text_work__audit_property_id` FOREIGN KEY (`audit_property_id` ) REFERENCES `audit_property_work` (`audit_property_id` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `authgroup` -- ----------------------------------------------------- DROP TABLE IF EXISTS `authgroup` ; CREATE TABLE IF NOT EXISTS `authgroup` ( `GID` INT(10) NOT NULL AUTO_INCREMENT , `GroupName` VARCHAR(50) NOT NULL , `EffectiveDate` DATE NOT NULL , `ExpirationDate` DATE NULL DEFAULT NULL , `Notes` VARCHAR(255) NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`GID`) ) ENGINE = InnoDB AUTO_INCREMENT = 5 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `authrole` -- ----------------------------------------------------- DROP TABLE IF EXISTS `authrole` ; CREATE TABLE IF NOT EXISTS `authrole` ( `RoleID` INT(10) NOT NULL AUTO_INCREMENT , `RoleName` VARCHAR(25) NOT NULL , `Notes` VARCHAR(255) NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`RoleID`) ) ENGINE = InnoDB AUTO_INCREMENT = 6 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `authpermission` -- ----------------------------------------------------- DROP TABLE IF EXISTS `authpermission` ; CREATE TABLE IF NOT EXISTS `authpermission` ( `PermID` INT(10) NOT NULL AUTO_INCREMENT , `RoleID` INT(10) NOT NULL , `PermitDeny` VARCHAR(10) NOT NULL , `Scope` VARCHAR(50) NOT NULL , `Module` VARCHAR(50) NOT NULL , `Section` VARCHAR(50) NOT NULL , `Target` VARCHAR(50) NOT NULL , `Mode` VARCHAR(25) NOT NULL , `Notes` VARCHAR(100) NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`PermID`) , INDEX `authpermission_RoleID` (`RoleID` ASC) , CONSTRAINT `authpermission_RoleID` FOREIGN KEY (`RoleID` ) REFERENCES `authrole` (`RoleID` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB AUTO_INCREMENT = 54 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `authuser` -- ----------------------------------------------------- DROP TABLE IF EXISTS `authuser` ; CREATE TABLE IF NOT EXISTS `authuser` ( `UID` INT(10) NOT NULL AUTO_INCREMENT , `UserName` VARCHAR(50) NOT NULL , `Login` VARCHAR(100) NULL DEFAULT NULL , `email` VARCHAR(100) NULL DEFAULT NULL , `phone` VARCHAR(25) NULL DEFAULT NULL , `AccessAgreementDate` DATE NULL DEFAULT NULL , `ShortUserName` VARCHAR(50) NULL DEFAULT NULL , `ShortUserNameRev` VARCHAR(50) NULL DEFAULT NULL , `EffectiveDate` DATE NOT NULL , `ExpirationDate` DATE NULL DEFAULT NULL , `Notes` VARCHAR(255) NULL DEFAULT NULL , `authenticationType` VARCHAR(10) NULL DEFAULT 'EXTERNAL' , `password` VARCHAR(100) NULL DEFAULT NULL , `passwordExpiration` TIMESTAMP NULL DEFAULT NULL , `passwordResetToken` VARCHAR(100) NULL DEFAULT NULL , `passwordResetExpiration` TIMESTAMP NULL DEFAULT NULL , `failedLoginCount` SMALLINT NULL DEFAULT NULL , `lastFailedLogin` TIMESTAMP NULL DEFAULT NULL , `accountLocked` TIMESTAMP NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`UID`) , UNIQUE INDEX `Unique_UserName` (`UserName` ASC) , UNIQUE INDEX `Unique_Login` (`Login` ASC) ) ENGINE = InnoDB AUTO_INCREMENT = 6 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `authusergroup` -- ----------------------------------------------------- DROP TABLE IF EXISTS `authusergroup` ; CREATE TABLE IF NOT EXISTS `authusergroup` ( `UGID` INT(10) NOT NULL AUTO_INCREMENT , `UID` INT(10) NOT NULL , `GID` INT(10) NOT NULL , `Notes` VARCHAR(255) NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`UGID`) , INDEX `authusergroup_UID` (`UID` ASC) , INDEX `authusergroup_GID` (`UGID` ASC) , CONSTRAINT `authusergroup_UID` FOREIGN KEY (`UID` ) REFERENCES `authuser` (`UID` ) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `authusergroup_GID` FOREIGN KEY (`UGID` ) REFERENCES `authgroup` (`GID` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB AUTO_INCREMENT = 5 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `authuserrole` -- ----------------------------------------------------- DROP TABLE IF EXISTS `authuserrole` ; CREATE TABLE IF NOT EXISTS `authuserrole` ( `URID` INT(10) NOT NULL AUTO_INCREMENT , `RoleID` INT(10) NOT NULL , `UID` INT(10) NULL DEFAULT NULL , `GID` INT(10) NULL DEFAULT NULL , `Notes` VARCHAR(255) NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`URID`) , INDEX `authuserrole_RoleID` (`RoleID` ASC) , INDEX `authuserrole_UID` (`URID` ASC) , INDEX `authuserrole_GID` (`GID` ASC) , CONSTRAINT `authuserrole_RoleID` FOREIGN KEY (`RoleID` ) REFERENCES `authrole` (`RoleID` ) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `authuserrole_UID` FOREIGN KEY (`URID` ) REFERENCES `authuser` (`UID` ) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `authuserrole_GID` FOREIGN KEY (`GID` ) REFERENCES `authgroup` (`GID` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB AUTO_INCREMENT = 5 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `hibernateproperty` -- ----------------------------------------------------- DROP TABLE IF EXISTS `hibernateproperty` ; CREATE TABLE IF NOT EXISTS `hibernateproperty` ( `id` INT(10) NOT NULL AUTO_INCREMENT , `instance` VARCHAR(25) NOT NULL DEFAULT 'lava' , `scope` VARCHAR(25) NOT NULL , `entity` VARCHAR(100) NOT NULL , `property` VARCHAR(100) NOT NULL , `dbTable` VARCHAR(50) NOT NULL , `dbColumn` VARCHAR(50) NOT NULL , `dbType` VARCHAR(50) NULL DEFAULT NULL , `dbLength` SMALLINT(5) NULL DEFAULT NULL , `dbPrecision` SMALLINT(5) NULL DEFAULT NULL , `dbScale` SMALLINT(5) NULL DEFAULT NULL , `dbOrder` SMALLINT(5) NULL DEFAULT NULL , `hibernateProperty` VARCHAR(50) NULL DEFAULT NULL , `hibernateType` VARCHAR(50) NULL DEFAULT NULL , `hibernateClass` VARCHAR(250) NULL DEFAULT NULL , `hibernateNotNull` VARCHAR(50) NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`id`) ) ENGINE = InnoDB AUTO_INCREMENT = 1625 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `lavaserverinstance` -- ----------------------------------------------------- DROP TABLE IF EXISTS `lavaserverinstance` ; CREATE TABLE IF NOT EXISTS `lavaserverinstance` ( `ServerInstanceID` INT(10) NOT NULL AUTO_INCREMENT , `ServerDescription` VARCHAR(255) NULL DEFAULT NULL , `CreateTime` TIMESTAMP NULL DEFAULT NULL , `DisconnectTime` DATETIME NULL DEFAULT NULL , `DisconnectWarningMinutes` INT(10) NULL DEFAULT NULL , `DisconnectMessage` VARCHAR(500) NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`ServerInstanceID`) ) ENGINE = InnoDB AUTO_INCREMENT = 79 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `lava_session` -- ----------------------------------------------------- DROP TABLE IF EXISTS `lava_session` ; CREATE TABLE IF NOT EXISTS `lava_session` ( `lava_session_id` INT(10) NOT NULL AUTO_INCREMENT , `server_instance_id` INT(10) NOT NULL , `http_session_id` VARCHAR(64) NULL DEFAULT NULL , `current_status` VARCHAR(25) NOT NULL DEFAULT 'NEW' , `user_id` INT(10) NULL DEFAULT NULL , `user_name` VARCHAR(50) NULL DEFAULT NULL , `host_name` VARCHAR(50) NULL DEFAULT NULL , `create_timestamp` TIMESTAMP NULL DEFAULT NULL , `access_timestamp` TIMESTAMP NULL DEFAULT NULL , `expire_timestamp` DATETIME NULL DEFAULT NULL , `disconnect_date` DATE NULL DEFAULT NULL , `disconnect_time` TIME NULL DEFAULT NULL , `disconnect_message` VARCHAR(500) NULL DEFAULT NULL , `notes` VARCHAR(255) NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`lava_session_id`) , INDEX `lavasession__server_instance_id` (`server_instance_id` ASC) , INDEX `lavasession__user_id` (`user_id` ASC) , CONSTRAINT `lavasession__server_instance_id` FOREIGN KEY (`server_instance_id` ) REFERENCES `lavaserverinstance` (`ServerInstanceID` ) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `lavasession__user_id` FOREIGN KEY (`user_id` ) REFERENCES `authuser` (`UID` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB AUTO_INCREMENT = 243 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `list` -- ----------------------------------------------------- DROP TABLE IF EXISTS `list` ; CREATE TABLE IF NOT EXISTS `list` ( `ListID` INT(10) NOT NULL AUTO_INCREMENT , `ListName` VARCHAR(50) NOT NULL , `scope` VARCHAR(25) NOT NULL , `NumericKey` TINYINT(1) NOT NULL DEFAULT '0' , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`ListID`) , UNIQUE INDEX `ListName` (`ListName` ASC) ) ENGINE = InnoDB AUTO_INCREMENT = 468 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `listvalues` -- ----------------------------------------------------- DROP TABLE IF EXISTS `listvalues` ; CREATE TABLE IF NOT EXISTS `listvalues` ( `ID` INT(10) NOT NULL AUTO_INCREMENT , `ListID` INT(10) NOT NULL , `ValueKey` VARCHAR(100) NOT NULL , `ValueDesc` VARCHAR(100) NULL DEFAULT NULL , `OrderID` INT(10) NOT NULL DEFAULT '0' , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`ID`) , INDEX `ListID` (`ListID` ASC) , INDEX `ValueKey` (`ValueKey` ASC) , INDEX `listvalues__listID` (`ListID` ASC) , CONSTRAINT `listvalues__listID` FOREIGN KEY (`ListID` ) REFERENCES `list` (`ListID` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB AUTO_INCREMENT = 24376 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `versionhistory` -- ----------------------------------------------------- DROP TABLE IF EXISTS `versionhistory` ; CREATE TABLE IF NOT EXISTS `versionhistory` ( `Module` VARCHAR(25) NOT NULL , `Version` VARCHAR(10) NOT NULL , `VersionDate` DATETIME NOT NULL , `Major` INT(10) NOT NULL , `Minor` INT(10) NOT NULL , `Fix` INT(10) NOT NULL , `UpdateRequired` TINYINT(1) NOT NULL DEFAULT '0' , PRIMARY KEY (`Module`, `Version`) ) ENGINE = InnoDB DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `viewproperty` -- ----------------------------------------------------- DROP TABLE IF EXISTS `viewproperty` ; CREATE TABLE IF NOT EXISTS `viewproperty` ( `id` INT(10) NOT NULL AUTO_INCREMENT , `messageCode` VARCHAR(255) NULL DEFAULT NULL , `locale` VARCHAR(10) NOT NULL DEFAULT 'en' , `instance` VARCHAR(25) NOT NULL DEFAULT 'lava' , `scope` VARCHAR(25) NOT NULL , `prefix` VARCHAR(50) NULL DEFAULT NULL , `entity` VARCHAR(100) NOT NULL , `property` VARCHAR(100) NOT NULL , `section` VARCHAR(50) NULL DEFAULT NULL , `context` VARCHAR(10) NULL DEFAULT NULL , `style` VARCHAR(25) NULL DEFAULT NULL , `required` VARCHAR(3) NULL DEFAULT NULL , `label` VARCHAR(500) NULL DEFAULT NULL , `maxLength` SMALLINT(5) NULL DEFAULT NULL , `size` SMALLINT(5) NULL DEFAULT NULL , `indentLevel` SMALLINT(5) NULL DEFAULT '0' , `attributes` VARCHAR(100) NULL DEFAULT NULL , `list` VARCHAR(50) NULL DEFAULT NULL , `listAttributes` VARCHAR(100) NULL DEFAULT NULL , `propOrder` INT(10) NULL DEFAULT NULL , `quickHelp` VARCHAR(500) NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`id`) ) ENGINE = InnoDB AUTO_INCREMENT = 2479 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `calendar` -- ----------------------------------------------------- DROP TABLE IF EXISTS `calendar` ; CREATE TABLE IF NOT EXISTS `calendar` ( `calendar_id` INT UNSIGNED NOT NULL AUTO_INCREMENT , `type` VARCHAR(25) NOT NULL , `name` VARCHAR(100) NOT NULL , `description` VARCHAR(255) NULL DEFAULT NULL , `notes` TEXT NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`calendar_id`) ) ENGINE = InnoDB AUTO_INCREMENT = 1 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `appointment` -- ----------------------------------------------------- DROP TABLE IF EXISTS `appointment` ; CREATE TABLE IF NOT EXISTS `appointment` ( `appointment_id` INT UNSIGNED NOT NULL AUTO_INCREMENT , `calendar_id` INT UNSIGNED NOT NULL , `organizer_id` INT NOT NULL , `type` VARCHAR(25) NOT NULL , `description` VARCHAR(100) NULL DEFAULT NULL , `location` VARCHAR(100) NULL DEFAULT NULL , `start_date` DATE NOT NULL , `start_time` TIME NOT NULL , `end_date` DATE NOT NULL , `end_time` TIME NOT NULL , `status` VARCHAR(25) NULL DEFAULT NULL , `notes` TEXT NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`appointment_id`) , INDEX `appointment__calendar` (`calendar_id` ASC) , CONSTRAINT `appointment__calendar` FOREIGN KEY (`calendar_id` ) REFERENCES `calendar` (`calendar_id` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB AUTO_INCREMENT = 10 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `attendee` -- ----------------------------------------------------- DROP TABLE IF EXISTS `attendee` ; CREATE TABLE IF NOT EXISTS `attendee` ( `attendee_id` INT UNSIGNED NOT NULL AUTO_INCREMENT , `appointment_id` INT UNSIGNED NOT NULL , `user_id` INT(10) NOT NULL , `role` VARCHAR(25) NOT NULL , `status` VARCHAR(25) NOT NULL , `notes` VARCHAR(100) NULL DEFAULT NULL , `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`attendee_id`) , INDEX `attendee__appointment` (`appointment_id` ASC) , INDEX `attendee__user_id` (`user_id` ASC) , CONSTRAINT `attendee__appointment` FOREIGN KEY (`appointment_id` ) REFERENCES `appointment` (`appointment_id` ) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `attendee__user_id` FOREIGN KEY (`user_id` ) REFERENCES `authuser` (`UID` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `appointment_change` -- ----------------------------------------------------- DROP TABLE IF EXISTS `appointment_change` ; CREATE TABLE IF NOT EXISTS `appointment_change` ( `appointment_change_id` INT UNSIGNED NOT NULL AUTO_INCREMENT , `appointment_id` INT UNSIGNED NOT NULL , `type` VARCHAR(25) NOT NULL , `description` VARCHAR(255) NULL DEFAULT NULL , `change_by` INT(10) NOT NULL , `change_timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`appointment_change_id`) , INDEX `appointment_change__appointment` (`appointment_id` ASC) , INDEX `appointment_change__change_by` (`change_by` ASC) , CONSTRAINT `appointment_change__appointment` FOREIGN KEY (`appointment_id` ) REFERENCES `appointment` (`appointment_id` ) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `appointment_change__change_by` FOREIGN KEY (`change_by` ) REFERENCES `authuser` (`UID` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `resource_calendar` -- ----------------------------------------------------- DROP TABLE IF EXISTS `resource_calendar` ; CREATE TABLE IF NOT EXISTS `resource_calendar` ( `calendar_id` INT UNSIGNED NOT NULL , `resource_type` VARCHAR(25) NOT NULL , `location` VARCHAR(100) NULL DEFAULT NULL , `contact_id` INT(10) NOT NULL , PRIMARY KEY (`calendar_id`) , INDEX `resource_calendar__calendar` (`calendar_id` ASC) , INDEX `resource_calendar__user_id` (`contact_id` ASC) , CONSTRAINT `resource_calendar__calendar` FOREIGN KEY (`calendar_id` ) REFERENCES `calendar` (`calendar_id` ) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `resource_calendar__user_id` FOREIGN KEY (`contact_id` ) REFERENCES `authuser` (`UID` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Placeholder table for view `audit_entity` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `audit_entity` (`id` INT); -- ----------------------------------------------------- -- Placeholder table for view `audit_event` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `audit_event` (`id` INT); -- ----------------------------------------------------- -- Placeholder table for view `audit_property` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `audit_property` (`id` INT); -- ----------------------------------------------------- -- Placeholder table for view `audit_text` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `audit_text` (`id` INT); -- ----------------------------------------------------- -- View `audit_entity` -- ----------------------------------------------------- DROP VIEW IF EXISTS `audit_entity` ; DROP TABLE IF EXISTS `audit_entity`; CREATE OR REPLACE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `audit_entity` AS select `audit_entity_work`.`audit_entity_id` AS `audit_entity_id`,`audit_entity_work`.`audit_event_id` AS `audit_event_id`,`audit_entity_work`.`entity_id` AS `entity_id`,`audit_entity_work`.`entity` AS `entity`,`audit_entity_work`.`entity_type` AS `entity_type`,`audit_entity_work`.`audit_type` AS `audit_type`,`audit_entity_work`.`modified` AS `modified` from `audit_entity_work` union all select `audit_entity_history`.`audit_entity_id` AS `audit_entity_id`,`audit_entity_history`.`audit_event_id` AS `audit_event_id`,`audit_entity_history`.`entity_id` AS `entity_id`,`audit_entity_history`.`entity` AS `entity`,`audit_entity_history`.`entity_type` AS `entity_type`,`audit_entity_history`.`audit_type` AS `audit_type`,`audit_entity_history`.`modified` AS `modified` from `audit_entity_history`; -- ----------------------------------------------------- -- View `audit_event` -- ----------------------------------------------------- DROP VIEW IF EXISTS `audit_event` ; DROP TABLE IF EXISTS `audit_event`; CREATE OR REPLACE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `audit_event` AS select `audit_event_work`.`audit_event_id` AS `audit_event_id`,`audit_event_work`.`audit_user` AS `audit_user`,`audit_event_work`.`audit_host` AS `audit_host`,`audit_event_work`.`audit_timestamp` AS `audit_timestamp`,`audit_event_work`.`action` AS `action`,`audit_event_work`.`action_event` AS `action_event`,`audit_event_work`.`action_id_param` AS `action_id_param`,`audit_event_work`.`event_note` AS `event_note`,`audit_event_work`.`exception` AS `exception`,`audit_event_work`.`exception_message` AS `exception_message`,`audit_event_work`.`modified` AS `modified` from `audit_event_work` union all select `audit_event_history`.`audit_event_id` AS `audit_event_id`,`audit_event_history`.`audit_user` AS `audit_user`,`audit_event_history`.`audit_host` AS `audit_host`,`audit_event_history`.`audit_timestamp` AS `audit_timestamp`,`audit_event_history`.`action` AS `action`,`audit_event_history`.`action_event` AS `action_event`,`audit_event_history`.`action_id_param` AS `action_id_param`,`audit_event_history`.`event_note` AS `event_note`,`audit_event_history`.`exception` AS `exception`,`audit_event_history`.`exception_message` AS `exception_message`,`audit_event_history`.`modified` AS `modified` from `audit_event_history`; -- ----------------------------------------------------- -- View `audit_property` -- ----------------------------------------------------- DROP VIEW IF EXISTS `audit_property` ; DROP TABLE IF EXISTS `audit_property`; CREATE OR REPLACE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `audit_property` AS select `audit_property_work`.`audit_property_id` AS `audit_property_id`,`audit_property_work`.`audit_entity_id` AS `audit_entity_id`,`audit_property_work`.`property` AS `property`,`audit_property_work`.`index_key` AS `index_key`,`audit_property_work`.`subproperty` AS `subproperty`,`audit_property_work`.`old_value` AS `old_value`,`audit_property_work`.`new_value` AS `new_value`,`audit_property_work`.`audit_timestamp` AS `audit_timestamp`,`audit_property_work`.`modified` AS `modified` from `audit_property_work` union all select `audit_property_history`.`audit_property_id` AS `audit_property_id`,`audit_property_history`.`audit_entity_id` AS `audit_entity_id`,`audit_property_history`.`property` AS `property`,`audit_property_history`.`index_key` AS `index_key`,`audit_property_history`.`subproperty` AS `subproperty`,`audit_property_history`.`old_value` AS `old_value`,`audit_property_history`.`new_value` AS `new_value`,`audit_property_history`.`audit_timestamp` AS `audit_timestamp`,`audit_property_history`.`modified` AS `modified` from `audit_property_history`; -- ----------------------------------------------------- -- View `audit_text` -- ----------------------------------------------------- DROP VIEW IF EXISTS `audit_text` ; DROP TABLE IF EXISTS `audit_text`; CREATE OR REPLACE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `audit_text` AS select `audit_text_history`.`audit_property_id` AS `audit_property_id`,`audit_text_history`.`old_text` AS `old_text`,`audit_text_history`.`new_text` AS `new_text` from `audit_text_history` union all select `audit_text_work`.`audit_property_id` AS `audit_property_id`,`audit_text_work`.`old_text` AS `old_text`,`audit_text_work`.`new_text` AS `new_text` from `audit_text_work`; insert into versionhistory(`Module`,`Version`,`VersionDate`,`Major`,`Minor`,`Fix`,`UpdateRequired`) VALUES ('lava-core-model','3.0.3',NOW(),3,0,3,1); SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
<filename>Database/SqlServer/Petshop.sql SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Inventory]( [ItemId] [varchar](10) NOT NULL, [Qty] [int] NOT NULL, PRIMARY KEY CLUSTERED ( [ItemId] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-1', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-10', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-11', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-12', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-13', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-14', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-15', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-16', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-17', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-18', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-19', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-2', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-20', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-21', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-22', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-23', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-24', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-25', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-26', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-27', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-28', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-3', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-4', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-5', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-6', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-7', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-8', 10000) INSERT [dbo].[Inventory] ([ItemId], [Qty]) VALUES (N'EST-9', 10000) SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Category]( [CatId] [varchar](10) NOT NULL, [Name] [varchar](80) NULL, [Descn] [varchar](255) NULL, PRIMARY KEY CLUSTERED ( [CatId] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO INSERT [dbo].[Category] ([CatId], [Name], [Descn]) VALUES (N'BIRDS', N'Birds', NULL) INSERT [dbo].[Category] ([CatId], [Name], [Descn]) VALUES (N'CATS', N'Cats', NULL) INSERT [dbo].[Category] ([CatId], [Name], [Descn]) VALUES (N'DOGS', N'Dogs', NULL) INSERT [dbo].[Category] ([CatId], [Name], [Descn]) VALUES (N'FISH', N'Fish', NULL) INSERT [dbo].[Category] ([CatId], [Name], [Descn]) VALUES (N'REPTILES', N'Reptiles', NULL) SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[BannerData]( [FavCategory] [varchar](80) NOT NULL, [BannerData] [varchar](255) NULL, PRIMARY KEY CLUSTERED ( [FavCategory] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO INSERT [dbo].[BannerData] ([FavCategory], [BannerData]) VALUES (N'Birds', N'<img src="Images/bannerBirds.gif">') INSERT [dbo].[BannerData] ([FavCategory], [BannerData]) VALUES (N'Cats', N'<img src="Images/bannerCats.gif">') INSERT [dbo].[BannerData] ([FavCategory], [BannerData]) VALUES (N'Dogs', N'<img src="Images/bannerDogs.gif">') INSERT [dbo].[BannerData] ([FavCategory], [BannerData]) VALUES (N'Fish', N'<img src="Images/bannerFish.gif">') INSERT [dbo].[BannerData] ([FavCategory], [BannerData]) VALUES (N'Reptiles', N'<img src="Images/bannerReptiles.gif">') SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Account]( [UserId] [varchar](20) NOT NULL, [Email] [varchar](80) NOT NULL, [FirstName] [varchar](80) NOT NULL, [LastName] [varchar](80) NOT NULL, [Status] [varchar](2) NULL, [Addr1] [varchar](80) NOT NULL, [Addr2] [varchar](80) NULL, [City] [varchar](80) NOT NULL, [State] [varchar](80) NOT NULL, [Zip] [varchar](20) NOT NULL, [Country] [varchar](20) NOT NULL, [Phone] [varchar](20) NOT NULL, PRIMARY KEY CLUSTERED ( [UserId] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO INSERT [dbo].[Account] ([UserId], [Email], [FirstName], [LastName], [Status], [Addr1], [Addr2], [City], [State], [Zip], [Country], [Phone]) VALUES (N'ACID', N'<EMAIL>', N'Distributed', N'Transaction', N'OK', N'PO Box 4482', N'', N'Carmel', N'CA', N'93921', N'USA', N'831-625-1861') INSERT [dbo].[Account] ([UserId], [Email], [FirstName], [LastName], [Status], [Addr1], [Addr2], [City], [State], [Zip], [Country], [Phone]) VALUES (N'DotNet', N'<EMAIL>', N'ABC', N'XYX', N'OK', N'901 San Antonio Road', N'MS UCUP02-206', N'Palo Alto', N'CA', N'94303', N'USA', N'555-555-5555') SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Orders]( [OrderId] [int] IDENTITY(1,1) NOT NULL, [UserId] [varchar](20) NOT NULL, [OrderDate] [datetime] NOT NULL, [ShipAddr1] [varchar](80) NOT NULL, [ShipAddr2] [varchar](80) NULL, [ShipCity] [varchar](80) NOT NULL, [ShipState] [varchar](80) NOT NULL, [ShipZip] [varchar](20) NOT NULL, [ShipCountry] [varchar](20) NOT NULL, [BillAddr1] [varchar](80) NOT NULL, [BillAddr2] [varchar](80) NULL, [BillCity] [varchar](80) NOT NULL, [BillState] [varchar](80) NOT NULL, [BillZip] [varchar](20) NOT NULL, [BillCountry] [varchar](20) NOT NULL, [Courier] [varchar](80) NOT NULL, [TotalPrice] [decimal](10, 2) NOT NULL, [BillToFirstName] [varchar](80) NOT NULL, [BillToLastName] [varchar](80) NOT NULL, [ShipToFirstName] [varchar](80) NOT NULL, [ShipToLastName] [varchar](80) NOT NULL, [CreditCard] [varchar](20) NOT NULL, [ExprDate] [varchar](7) NOT NULL, [CardType] [varchar](40) NOT NULL, [Locale] [varchar](20) NOT NULL, PRIMARY KEY CLUSTERED ( [OrderId] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Supplier]( [SuppId] [int] NOT NULL, [Name] [varchar](80) NULL, [Status] [varchar](2) NOT NULL, [Addr1] [varchar](80) NULL, [Addr2] [varchar](80) NULL, [City] [varchar](80) NULL, [State] [varchar](80) NULL, [Zip] [varchar](5) NULL, [Phone] [varchar](40) NULL, PRIMARY KEY CLUSTERED ( [SuppId] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO INSERT [dbo].[Supplier] ([SuppId], [Name], [Status], [Addr1], [Addr2], [City], [State], [Zip], [Phone]) VALUES (1, N'XYZ Pets', N'AC', N'600 Avon Way', N'', N'Los Angeles', N'CA', N'94024', N'212-947-0797') INSERT [dbo].[Supplier] ([SuppId], [Name], [Status], [Addr1], [Addr2], [City], [State], [Zip], [Phone]) VALUES (2, N'ABC Pets', N'AC', N'700 Abalone Way', N'', N'San Francisco', N'CA', N'94024', N'415-947-0797') SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[SignOn]( [UserName] [varchar](20) NOT NULL, [Password] [varchar](20) NOT NULL, PRIMARY KEY CLUSTERED ( [UserName] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO INSERT [dbo].[SignOn] ([UserName], [Password]) VALUES (N'ACID', N'ACID') INSERT [dbo].[SignOn] ([UserName], [Password]) VALUES (N'<PASSWORD>', N'<PASSWORD>') SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Profile]( [UserId] [varchar](20) NOT NULL, [LangPref] [varchar](80) NOT NULL, [FavCategory] [varchar](30) NULL, [MyListOpt] [int] NULL, [BannerOpt] [int] NULL, PRIMARY KEY CLUSTERED ( [UserId] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO INSERT [dbo].[Profile] ([UserId], [LangPref], [FavCategory], [MyListOpt], [BannerOpt]) VALUES (N'ACID', N'English', N'Birds', 1, 1) INSERT [dbo].[Profile] ([UserId], [LangPref], [FavCategory], [MyListOpt], [BannerOpt]) VALUES (N'DotNet', N'English', N'Dogs', 1, 1) SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Product]( [ProductId] [varchar](10) NOT NULL, [Category] [varchar](10) NOT NULL, [Name] [varchar](80) NULL, [Descn] [varchar](255) NULL, PRIMARY KEY CLUSTERED ( [ProductId] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX [IxProduct1] ON [dbo].[Product] ( [Name] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX [IxProduct2] ON [dbo].[Product] ( [Category] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX [IxProduct3] ON [dbo].[Product] ( [Category] ASC, [Name] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX [IxProduct4] ON [dbo].[Product] ( [Category] ASC, [ProductId] ASC, [Name] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO INSERT [dbo].[Product] ([ProductId], [Category], [Name], [Descn]) VALUES (N'AV-CB-01', N'BIRDS', N'Amazon Parrot', N'<img align="absmiddle" src="Images/Pets/bird1.jpg">Great companion for up to 75 years') INSERT [dbo].[Product] ([ProductId], [Category], [Name], [Descn]) VALUES (N'AV-SB-02', N'BIRDS', N'Finch', N'<img align="absmiddle" src="Images/Pets/bird2.jpg">Great stress reliever') INSERT [dbo].[Product] ([ProductId], [Category], [Name], [Descn]) VALUES (N'FI-FW-01', N'FISH', N'Koi', N'<img align="absmiddle" src="Images/Pets/fish3.jpg">Freshwater fish from Japan') INSERT [dbo].[Product] ([ProductId], [Category], [Name], [Descn]) VALUES (N'FI-FW-02', N'FISH', N'Goldfish', N'<img align="absmiddle" src="Images/Pets/fish4.jpg">Freshwater fish from China') INSERT [dbo].[Product] ([ProductId], [Category], [Name], [Descn]) VALUES (N'FI-SW-01', N'FISH', N'Angelfish', N'<img align="absmiddle" src="Images/Pets/fish1.jpg">Saltwater fish from Australia') INSERT [dbo].[Product] ([ProductId], [Category], [Name], [Descn]) VALUES (N'FI-SW-02', N'FISH', N'Tiger Shark', N'<img align="absmiddle" src="Images/Pets/fish2.jpg">Saltwater fish from Australia') INSERT [dbo].[Product] ([ProductId], [Category], [Name], [Descn]) VALUES (N'FL-DLH-02', N'CATS', N'Persian', N'<img align="absmiddle" src="Images/Pets/cat2.jpg">Friendly house cat, doubles as a princess') INSERT [dbo].[Product] ([ProductId], [Category], [Name], [Descn]) VALUES (N'FL-DSH-01', N'CATS', N'Manx', N'<img align="absmiddle" src="Images/Pets/cat1.jpg">Great for reducing mouse populations') INSERT [dbo].[Product] ([ProductId], [Category], [Name], [Descn]) VALUES (N'K9-BD-01', N'DOGS', N'Bulldog', N'<img align="absmiddle" src="Images/Pets/dog1.jpg">Friendly dog from England') INSERT [dbo].[Product] ([ProductId], [Category], [Name], [Descn]) VALUES (N'K9-CW-01', N'DOGS', N'Chihuahua', N'<img align="absmiddle" src="Images/Pets/dog6.jpg">Great companion dog') INSERT [dbo].[Product] ([ProductId], [Category], [Name], [Descn]) VALUES (N'K9-DL-01', N'DOGS', N'Dalmation', N'<img align="absmiddle" src="Images/Pets/dog3.jpg">Great dog for a fire station') INSERT [dbo].[Product] ([ProductId], [Category], [Name], [Descn]) VALUES (N'K9-PO-02', N'DOGS', N'Poodle', N'<img align="absmiddle" src="Images/Pets/dog2.jpg">Cute dog from France') INSERT [dbo].[Product] ([ProductId], [Category], [Name], [Descn]) VALUES (N'K9-RT-01', N'DOGS', N'Golden Retriever', N'<img align="absmiddle" src="Images/Pets/dog4.jpg">Great family dog') INSERT [dbo].[Product] ([ProductId], [Category], [Name], [Descn]) VALUES (N'K9-RT-02', N'DOGS', N'Labrador Retriever', N'<img align="absmiddle" src="Images/Pets/dog5.jpg">Great hunting dog') INSERT [dbo].[Product] ([ProductId], [Category], [Name], [Descn]) VALUES (N'RP-LI-02', N'REPTILES', N'Iguana', N'<img align="absmiddle" src="Images/Pets/reptile2.jpg">Friendly green friend') INSERT [dbo].[Product] ([ProductId], [Category], [Name], [Descn]) VALUES (N'RP-SN-01', N'REPTILES', N'Rattlesnake', N'<img align="absmiddle" src="Images/Pets/reptile1.jpg">Doubles as a watch dog') SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[OrderStatus]( [OrderId] [int] NOT NULL, [LineNum] [int] NOT NULL, [Timestamp] [datetime] NOT NULL, [Status] [varchar](2) NOT NULL, CONSTRAINT [PkOrderStatus] PRIMARY KEY CLUSTERED ( [OrderId] ASC, [LineNum] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[LineItem]( [OrderId] [int] NOT NULL, [LineNum] [int] NOT NULL, [ItemId] [varchar](10) NOT NULL, [Quantity] [int] NOT NULL, [UnitPrice] [decimal](10, 2) NOT NULL, CONSTRAINT [PkLineItem] PRIMARY KEY CLUSTERED ( [OrderId] ASC, [LineNum] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Item]( [ItemId] [varchar](10) NOT NULL, [ProductId] [varchar](10) NOT NULL, [ListPrice] [decimal](10, 2) NULL, [UnitCost] [decimal](10, 2) NULL, [Supplier] [int] NULL, [Status] [varchar](2) NULL, [Attr1] [varchar](80) NULL, [Attr2] [varchar](80) NULL, [Attr3] [varchar](80) NULL, [Attr4] [varchar](80) NULL, [Attr5] [varchar](80) NULL, PRIMARY KEY CLUSTERED ( [ItemId] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX [IxItem] ON [dbo].[Item] ( [ProductId] ASC, [ItemId] ASC, [ListPrice] ASC, [Attr1] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-1', N'FI-SW-01', CAST(16.50 AS Decimal(10, 2)), CAST(10.00 AS Decimal(10, 2)), 1, N'P', N'Large', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-10', N'K9-DL-01', CAST(18.50 AS Decimal(10, 2)), CAST(12.00 AS Decimal(10, 2)), 1, N'P', N'Spotted Adult Female', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-11', N'RP-SN-01', CAST(18.50 AS Decimal(10, 2)), CAST(12.00 AS Decimal(10, 2)), 1, N'P', N'Venomless', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-12', N'RP-SN-01', CAST(18.50 AS Decimal(10, 2)), CAST(12.00 AS Decimal(10, 2)), 1, N'P', N'Rattleless', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-13', N'RP-LI-02', CAST(18.50 AS Decimal(10, 2)), CAST(12.00 AS Decimal(10, 2)), 1, N'P', N'Green Adult', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-14', N'FL-DSH-01', CAST(58.50 AS Decimal(10, 2)), CAST(12.00 AS Decimal(10, 2)), 1, N'P', N'Tailless', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-15', N'FL-DSH-01', CAST(23.50 AS Decimal(10, 2)), CAST(12.00 AS Decimal(10, 2)), 1, N'P', N'Tailed', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-16', N'FL-DLH-02', CAST(93.50 AS Decimal(10, 2)), CAST(12.00 AS Decimal(10, 2)), 1, N'P', N'Adult Female', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-17', N'FL-DLH-02', CAST(93.50 AS Decimal(10, 2)), CAST(12.00 AS Decimal(10, 2)), 1, N'P', N'Adult Male', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-18', N'AV-CB-01', CAST(193.50 AS Decimal(10, 2)), CAST(92.00 AS Decimal(10, 2)), 1, N'P', N'Adult Male', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-19', N'AV-SB-02', CAST(15.50 AS Decimal(10, 2)), CAST(2.00 AS Decimal(10, 2)), 1, N'P', N'Adult Male', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-2', N'FI-SW-01', CAST(16.50 AS Decimal(10, 2)), CAST(10.00 AS Decimal(10, 2)), 1, N'P', N'Small', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-20', N'FI-FW-02', CAST(5.50 AS Decimal(10, 2)), CAST(2.00 AS Decimal(10, 2)), 1, N'P', N'Adult Male', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-21', N'FI-FW-02', CAST(5.29 AS Decimal(10, 2)), CAST(1.00 AS Decimal(10, 2)), 1, N'P', N'Adult Female', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-22', N'K9-RT-02', CAST(135.50 AS Decimal(10, 2)), CAST(100.00 AS Decimal(10, 2)), 1, N'P', N'Adult Male', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-23', N'K9-RT-02', CAST(145.49 AS Decimal(10, 2)), CAST(100.00 AS Decimal(10, 2)), 1, N'P', N'Adult Female', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-24', N'K9-RT-02', CAST(255.50 AS Decimal(10, 2)), CAST(92.00 AS Decimal(10, 2)), 1, N'P', N'Adult Male', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-25', N'K9-RT-02', CAST(325.29 AS Decimal(10, 2)), CAST(90.00 AS Decimal(10, 2)), 1, N'P', N'Adult Female', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-26', N'K9-CW-01', CAST(125.50 AS Decimal(10, 2)), CAST(92.00 AS Decimal(10, 2)), 1, N'P', N'Adult Male', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-27', N'K9-CW-01', CAST(155.29 AS Decimal(10, 2)), CAST(90.00 AS Decimal(10, 2)), 1, N'P', N'Adult Female', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-28', N'K9-RT-01', CAST(155.29 AS Decimal(10, 2)), CAST(90.00 AS Decimal(10, 2)), 1, N'P', N'Adult Female', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-3', N'FI-SW-02', CAST(18.50 AS Decimal(10, 2)), CAST(12.00 AS Decimal(10, 2)), 1, N'P', N'Toothless', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-4', N'FI-FW-01', CAST(18.50 AS Decimal(10, 2)), CAST(12.00 AS Decimal(10, 2)), 1, N'P', N'Spotted', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-5', N'FI-FW-01', CAST(18.50 AS Decimal(10, 2)), CAST(12.00 AS Decimal(10, 2)), 1, N'P', N'Spotless', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-6', N'K9-BD-01', CAST(18.50 AS Decimal(10, 2)), CAST(12.00 AS Decimal(10, 2)), 1, N'P', N'Male Adult', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-7', N'K9-BD-01', CAST(18.50 AS Decimal(10, 2)), CAST(12.00 AS Decimal(10, 2)), 1, N'P', N'Female Puppy', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-8', N'K9-PO-02', CAST(18.50 AS Decimal(10, 2)), CAST(12.00 AS Decimal(10, 2)), 1, N'P', N'Male Puppy', NULL, NULL, NULL, NULL) INSERT [dbo].[Item] ([ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Attr1], [Attr2], [Attr3], [Attr4], [Attr5]) VALUES (N'EST-9', N'K9-DL-01', CAST(18.50 AS Decimal(10, 2)), CAST(12.00 AS Decimal(10, 2)), 1, N'P', N'Spotless Male Puppy', NULL, NULL, NULL, NULL) ALTER TABLE [dbo].[Item] WITH CHECK ADD FOREIGN KEY([ProductId]) REFERENCES [dbo].[Product] ([ProductId]) GO ALTER TABLE [dbo].[Item] WITH CHECK ADD FOREIGN KEY([Supplier]) REFERENCES [dbo].[Supplier] ([SuppId]) GO ALTER TABLE [dbo].[LineItem] WITH CHECK ADD FOREIGN KEY([OrderId]) REFERENCES [dbo].[Orders] ([OrderId]) GO ALTER TABLE [dbo].[OrderStatus] WITH CHECK ADD FOREIGN KEY([OrderId]) REFERENCES [dbo].[Orders] ([OrderId]) GO ALTER TABLE [dbo].[Product] WITH CHECK ADD FOREIGN KEY([Category]) REFERENCES [dbo].[Category] ([CatId]) GO
-- This file is automatically generated by LogicalPlanToSQLSuite. SELECT exp.id, parquet_t3.id FROM parquet_t3 LATERAL VIEW OUTER EXPLODE(arr) exp AS id -------------------------------------------------------------------------------- SELECT `gen_attr` AS `id`, `gen_attr` AS `id` FROM (SELECT `gen_attr`, `gen_attr` FROM (SELECT `arr` AS `gen_attr`, `arr2` AS `gen_attr`, `json` AS `gen_attr`, `id` AS `gen_attr` FROM `default`.`parquet_t3`) AS gen_subquery_0 LATERAL VIEW OUTER explode(`gen_attr`) gen_subquery_2 AS `gen_attr`) AS gen_subquery_1
USE [QL_DH_GH_ONLINE] GO ---- CREATE 5 LOGIN ------ EXEC sp_addLogin 'LG_DoiTac','DoiTac' EXEC sp_addLogin 'LG_KhachHang','KhachHang' EXEC sp_addLogin 'LG_NhanVien','NhanVien' EXEC sp_addLogin 'LG_TaiXe','TaiXe' EXEC sp_addLogin 'LG_Admin','Admin' ---- CREATE USER --------- CREATE USER userDT FOR LOGIN LG_DoiTac CREATE USER userKH FOR LOGIN LG_KhachHang CREATE USER userNV FOR LOGIN LG_NhanVien CREATE USER userTX FOR LOGIN LG_TaiXe CREATE USER userAd FOR LOGIN LG_Admin ------ ADD ROLE ---------- EXEC sp_addrole 'DoiTac' EXEC sp_addrole 'KhachHang' EXEC sp_addrole 'TaiXe' EXEC sp_addrole 'NhanVien' EXEC sp_addrole 'Admin' EXEC sp_addrolemember 'DoiTac', 'userDT' EXEC sp_addrolemember 'KhachHang', 'userKH' EXEC sp_addrolemember 'TaiXe', 'userTX' EXEC sp_addrolemember 'NhanVien', 'userNV' EXEC sp_addrolemember 'Admin', 'userAd' ------ GRANT FOR DOITAC ------- GRANT SELECT, INSERT, DELETE, UPDATE ON SANPHAM TO DoiTac GRANT INSERT, UPDATE ON HOPDONG TO DoiTac GRANT INSERT, DELETE, UPDATE ON CHINHANH TO DoiTac GRANT SELECT ON DONHANG TO DoiTac GRANT SELECT ON CTDONHANG TO DoiTac GRANT UPDATE ON DONHANG(TTDONHANG) TO DoiTac ------ GRANT FOR KHACHHANG ------- GRANT INSERT, UPDATE ON KHACHHANG TO KhachHang GRANT SELECT ON DOITAC TO KhachHang GRANT SELECT ON SANPHAM TO KhachHang GRANT SELECT ON DONHANG TO KhachHang GRANT SELECT ON DONGIAOHANG TO KhachHang ------- GRANT FOR TAIXE --------- GRANT INSERT, UPDATE ON TAIXE TO TaiXe GRANT UPDATE ON DONGIAOHANG(TTGIAOHANG) TO TaiXe GRANT SELECT ON DONHANG TO TaiXe GRANT SELECT ON DONGIAOHANG TO TaiXe ------- GRANT FOR NHANVIEN --------- GRANT SELECT ON HOPDONG TO NhanVien GRANT UPDATE ON HOPDONG(TINHTRANGHD) TO NhanVien GRANT UPDATE ON HOPDONG(PHANTRAMHOAHONG) TO NhanVien ------- GRANT FOR ADMIN -------- EXEC sp_addsrvrolemember 'Admin', 'sysadmin';
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 16, 2017 at 07:05 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `lumen-web-api` -- -- -------------------------------------------------------- -- -- Table structure for table `manga_book` -- CREATE TABLE `manga_book` ( `id` varchar(40) COLLATE utf8_unicode_ci NOT NULL, `authorId` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, `publisherId` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, `statusId` int(10) UNSIGNED DEFAULT NULL, `totalView` int(10) UNSIGNED DEFAULT NULL, `coverImage` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `summary` longtext COLLATE utf8_unicode_ci, `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 `manga_book` -- INSERT INTO `manga_book` (`id`, `authorId`, `publisherId`, `statusId`, `totalView`, `coverImage`, `summary`, `created_at`, `updated_at`) VALUES ('dac54eed-b293-11e7-a73c-9cb6d0606bec', '1dfb1c9d-b293-11e7-a73c-9cb6d0606bec', 'bce51f79-b292-11e7-a73c-9cb6d0606bec', 1, 346, 'cover/one-piece.jpg', 'One Piece follows the adventurous and funny story of <NAME>. As a boy, Luffy has always wanted to be the Pirate King. His body obtained the properties of rubber after eating a Devil Fruit. Together with a diverse crew of wannabe pirates, Luffy sets out on the ocean in an attempt to find the world’s ultimate treasure, One Piece.\r\n\r\nWhen talking about the most successful manga and anime series of all time, One Piece will always enter the conversation. Just the mere fact of it running for almost decades goes to show how loved it is by millions of fans worldwide. What’s interesting is that there are still plenty of folks who are eager to get started on their One Piece adventure. It doesn’t matter if they have to read countless manga chapters or watch hundreds of anime episodes. The undeniable lure of One Piece continues to fascinate fans around the world.\r\n\r\nThe series boasts of some jaw-dropping numbers. The manga consists of over 800 chapters while the anime series has more than 700 episodes. And there are no signs of slowing down. One Piece has even made it to the Guinness Book of World Records. The manga has 320 million copies in print worldwide as of June 2015.\r\n\r\nIt’s never too late to join Luffy and his crew of amazing pirates. You can choose to jump straight to the anime series, but many hardcore fans recommend that starters begin with the manga. There are plenty of places where you can read One Piece manga online. Usually, it all boils down to personal preference. You can check out community forums and see a list of the most suggested manga websites. The official version from Viz Media is a good place to start.\r\n\r\nOne Piece Manga transform to Anime - Marine Ford Saga\r\n\r\n\r\nOne huge determining factor of what manga website to use is how fast it is in releasing new chapters. Most websites are able to upload a new chapter after a day or two from being released. But there are some out there which can release on the same day. Thousands of fans flock to these sites in order to get the first glimpse of the new chapter. After all, you want to be the first in action and avoid getting spoiled in community forums or on social media.\r\n\r\nIt’s time to begin your own adventure and look for the best place to read One Piece manga online. It shouldn’t be too difficult to find several manga websites. Just be sure to try multiple sites to see their differences so you can come up with an informed decision.\r\n\r\nIf you are a fan of One Piece, you know that new chapters of this pirate tale are coming out soon. Not every manga website can offer these chapters license-free. That means you may hit a snag when you go to read the newest chapter.\r\n\r\nEven if you use the same One Piece manga fan website as before to read chapters you can sometimes discover that you are unable to view the whole story. Make sure to check the website''s terms and agreements.\r\n\r\nIt is probably more boring to read terms and conditions than One Piece manga, but your time will be well spent. You might find that the website can no longer display licensed content for free. In this instance you may need to apply for a paid account.\r\n\r\nIt helps to pay for an account so that you get to read the content you crave while the creator''s rights are protected. Besides this, if you sign up for an account, you usually get a choice to read online or on a smart phone or tablet using the app that the website offers.\r\n\r\nAlways find legitimate websites to read your favorite manga. You will get access to everything with no disappointments. In addition, you have options to read the chapters from a computer or from an app that you download. This lets you have the convenience of reading the story while on a train, in a car, on a plane or wherever you are when the mood to manga hits.\r\n\r\nIf you want to try a chapter before you sign up for an account at a website that licenses the work, you could take a peek over at a site that is run by a fan. Fans like you are often happy to post chapters which they have translated.\r\n\r\nOther attractive Manga : \r\n+ Detective Conan Manga\r\n+ Girls of the Wilds Manga', '2017-10-16 17:00:00', NULL); -- -- Indexes for dumped tables -- -- -- Indexes for table `manga_book` -- ALTER TABLE `manga_book` ADD PRIMARY KEY (`id`), ADD KEY `manga_book_status_idx` (`statusId`), ADD KEY `manga_book_author_idx` (`authorId`), ADD KEY `manga_book_publisher_idx` (`publisherId`); -- -- Constraints for dumped tables -- -- -- Constraints for table `manga_book` -- ALTER TABLE `manga_book` ADD CONSTRAINT `manga_book_author_idx` FOREIGN KEY (`authorId`) REFERENCES `manga_author` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `manga_book_publisher_idx` FOREIGN KEY (`publisherId`) REFERENCES `manga_publisher` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `manga_book_status_idx` FOREIGN KEY (`statusId`) REFERENCES `manga_book_status` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>apex/f120/application/shared_components/security/authentications/opendoorcred.sql<gh_stars>0 prompt --application/shared_components/security/authentications/opendoorcred begin wwv_flow_api.create_authentication( p_id=>wwv_flow_api.id(34574642392703810) ,p_name=>'OpenDoorCred' ,p_scheme_type=>'NATIVE_OPEN_DOOR' ,p_use_secure_cookie_yn=>'N' ,p_ras_mode=>0 ); end; /
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.4.15.10 -- https://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 17, 2017 at 04:02 PM -- Server version: 5.5.52-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `gizmo` -- -- -------------------------------------------------------- -- -- Table structure for table `lesson` -- CREATE TABLE IF NOT EXISTS `lesson` ( `id` int(10) unsigned NOT NULL, `order_no` int(10) unsigned NOT NULL, `title` varchar(255) DEFAULT NULL, `dependency` varchar(255) DEFAULT NULL, `topic_id` int(10) unsigned DEFAULT NULL COMMENT ' ', `created_at` timestamp NULL DEFAULT NULL, `modified_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `level` -- CREATE TABLE IF NOT EXISTS `level` ( `id` int(11) NOT NULL, `order_no` int(10) unsigned NOT NULL, `title` varchar(255) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE IF NOT EXISTS `migrations` ( `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE IF NOT EXISTS `password_resets` ( `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `question` -- CREATE TABLE IF NOT EXISTS `question` ( `id` int(10) unsigned NOT NULL, `lesson_id` int(10) unsigned NOT NULL, `mandatoriness` varchar(255) NOT NULL, `type` varchar(255) NOT NULL, `reply_mode` varchar(255) DEFAULT NULL, `option_text` varchar(255) DEFAULT NULL, `option_size` varchar(12) DEFAULT NULL, `size` int(10) NOT NULL DEFAULT '1', `question` varchar(255) DEFAULT NULL, `question_fp1` varchar(500) DEFAULT NULL, `question_fp2` varchar(500) DEFAULT NULL, `question_fp3` varchar(500) DEFAULT NULL, `question_fp4` varchar(500) DEFAULT NULL, `question_fp5` varchar(500) DEFAULT NULL, `question_fp6` varchar(500) DEFAULT NULL, `question_fp7` varchar(500) DEFAULT NULL, `image` varchar(255) DEFAULT NULL, `shape` varchar(255) DEFAULT NULL, `min_value` varchar(255) DEFAULT NULL, `max_value` varchar(255) DEFAULT NULL, `initial_position` varchar(255) DEFAULT NULL, `step_value` varchar(255) DEFAULT NULL, `mcq1` varchar(255) DEFAULT NULL, `mcq2` varchar(255) DEFAULT NULL, `mcq3` varchar(255) DEFAULT NULL, `mcq4` varchar(255) DEFAULT NULL, `mcq5` varchar(255) DEFAULT NULL, `mcq6` varchar(255) DEFAULT NULL, `answer` varchar(255) DEFAULT NULL, `answer2` varchar(255) DEFAULT NULL, `answer3` varchar(255) DEFAULT NULL, `answer4` varchar(255) DEFAULT NULL, `answer5` varchar(255) DEFAULT NULL, `answer6` varchar(255) DEFAULT NULL, `explanation` varchar(255) DEFAULT NULL, `feedback` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `modified_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `question_type` -- CREATE TABLE IF NOT EXISTS `question_type` ( `id` int(10) unsigned NOT NULL, `code` varchar(255) NOT NULL, `type` varchar(255) NOT NULL, `created_at` timestamp(6) NULL DEFAULT NULL, `modified_at` timestamp(6) NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `reply_mode` -- CREATE TABLE IF NOT EXISTS `reply_mode` ( `id` int(10) unsigned NOT NULL, `code` varchar(255) NOT NULL, `mode` varchar(255) NOT NULL, `created_at` timestamp(6) NULL DEFAULT NULL, `modified_at` timestamp(6) NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `topic` -- CREATE TABLE IF NOT EXISTS `topic` ( `id` int(10) unsigned NOT NULL, `order_no` int(10) NOT NULL, `image_id` varchar(255) NOT NULL DEFAULT 'cb0-img', `title` varchar(255) DEFAULT NULL, `short_name` varchar(255) NOT NULL, `dependency` varchar(255) DEFAULT NULL, `unit_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `modified_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `unit` -- CREATE TABLE IF NOT EXISTS `unit` ( `id` int(10) unsigned NOT NULL, `order_no` int(10) unsigned NOT NULL, `title` varchar(255) NOT NULL, `dependency` varchar(255) NOT NULL, `level_id` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `modified_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` int(10) unsigned NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `remember_token` 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; -- -- Indexes for dumped tables -- -- -- Indexes for table `lesson` -- ALTER TABLE `lesson` ADD PRIMARY KEY (`id`), ADD KEY `topic_id_idx` (`topic_id`); -- -- Indexes for table `level` -- ALTER TABLE `level` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `id_UNIQUE` (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`), ADD KEY `password_resets_token_index` (`token`); -- -- Indexes for table `question` -- ALTER TABLE `question` ADD PRIMARY KEY (`id`), ADD KEY `lesson_id_idx` (`lesson_id`); -- -- Indexes for table `question_type` -- ALTER TABLE `question_type` ADD PRIMARY KEY (`id`); -- -- Indexes for table `reply_mode` -- ALTER TABLE `reply_mode` ADD PRIMARY KEY (`id`); -- -- Indexes for table `topic` -- ALTER TABLE `topic` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `id_UNIQUE` (`id`), ADD KEY `unit_id_idx` (`unit_id`); -- -- Indexes for table `unit` -- ALTER TABLE `unit` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `id_UNIQUE` (`id`), ADD KEY `level_id_idx` (`level_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `lesson` -- ALTER TABLE `lesson` MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `level` -- ALTER TABLE `level` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `question` -- ALTER TABLE `question` MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `question_type` -- ALTER TABLE `question_type` MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `topic` -- ALTER TABLE `topic` MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `unit` -- ALTER TABLE `unit` MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables -- -- -- Constraints for table `lesson` -- ALTER TABLE `lesson` ADD CONSTRAINT `topic_id` FOREIGN KEY (`topic_id`) REFERENCES `topic` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `question` -- ALTER TABLE `question` ADD CONSTRAINT `lesson_id` FOREIGN KEY (`lesson_id`) REFERENCES `lesson` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `topic` -- ALTER TABLE `topic` ADD CONSTRAINT `unit_id` FOREIGN KEY (`unit_id`) REFERENCES `unit` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `unit` -- ALTER TABLE `unit` ADD CONSTRAINT `level_id` FOREIGN KEY (`level_id`) REFERENCES `level` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Fill predefined options -- INSERT INTO `question_type` VALUES (1,'text','Plain Text Question Only',NULL,NULL),(2,'draw','Dynamic Drawing',NULL,NULL),(3,'image','Image Type',NULL,NULL); INSERT INTO `reply_mode` VALUES (1,'general','General',NULL,NULL), (2,'FB','Fill In The Blank',NULL,NULL), (3,'TF','True or False',NULL,NULL), (4,'mcq3','Multiple Choice 3',NULL,NULL), (5,'mcq4','Multiple Choice 4',NULL,NULL), (6,'mcq5','Multiple Choice 5',NULL,NULL), (7,'mcq6','Multiple Choice 6',NULL,NULL), (8,'ascending','Ascending Order',NULL,NULL), (9,'descending','Descending Order',NULL,NULL); /*!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 */;
USE master; go -- check if configuration property is set SELECT name, description, value FROM sys.configurations WHERE name = 'external scripts enabled'; -- if value is 0, reset the configuration to enable EXEC sp_configure 'external scripts enabled', 1; RECONFIGURE WITH OVERRIDE; -- Restart SQL Server Service -- check if configuration property is set SELECT name, description, value FROM sys.configurations WHERE name = 'external scripts enabled';
<filename>benchmark/MLB/tables-vectorwise/MLB_1.table-renamed.sql<gh_stars>0 CREATE TABLE "MLB_1"( "col_00" smallint NOT NULL, "col_01" decimal(4, 3), "col_02" decimal(4, 3), "col_03" smallint NOT NULL, "col_04" smallint NOT NULL, "col_05" smallint NOT NULL, "col_06" decimal(4, 1) NOT NULL, "col_07" smallint NOT NULL, "col_08" decimal(4, 1) NOT NULL, "col_09" smallint NOT NULL, "col_10" smallint NOT NULL, "col_11" smallint NOT NULL, "col_12" smallint NOT NULL, "col_13" smallint NOT NULL, "col_14" decimal(4, 3), "col_15" smallint, "col_16" decimal(4, 1) NOT NULL, "col_17" smallint NOT NULL, "col_18" smallint NOT NULL, "col_19" decimal(4, 3), "col_20" smallint NOT NULL, "col_21" decimal(4, 1) NOT NULL, "col_22" smallint NOT NULL, "col_23" smallint NOT NULL, "col_24" smallint NOT NULL, "col_25" decimal(4, 3), "col_26" smallint NOT NULL, "col_27" smallint NOT NULL, "col_28" smallint NOT NULL, "col_29" smallint NOT NULL, "col_30" smallint NOT NULL, "col_31" smallint NOT NULL, "col_32" smallint NOT NULL, "col_33" varchar(26) NOT NULL, "col_34" varchar(8) NOT NULL, "col_35" smallint NOT NULL, "col_36" varchar(4) NOT NULL, "col_37" varchar(3) NOT NULL, "col_38" smallint, "col_39" varchar(1) NOT NULL, "col_40" varchar(27) NOT NULL, "col_41" decimal(4, 3) NOT NULL, "col_42" decimal(3, 1) NOT NULL, "col_43" smallint, "col_44" decimal(3, 1) NOT NULL, "col_45" smallint NOT NULL, "col_46" decimal(17, 14), "col_47" decimal(17, 14) );
drop table if exists tweets; drop table if exists users; drop table if exists tweets_x_users; drop table if exists scrape_histories;
<filename>db/eapi .sql -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Feb 21, 2020 at 01:37 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.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: `eapi` -- -- -------------------------------------------------------- -- -- 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 `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2020_02_21_120812_create_products_table', 1), (5, '2020_02_21_120831_create_reviews_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `products` -- CREATE TABLE `products` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `detail` text COLLATE utf8mb4_unicode_ci NOT NULL, `price` int(11) NOT NULL, `stock` int(11) NOT NULL, `discount` 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; -- -- Dumping data for table `products` -- INSERT INTO `products` (`id`, `name`, `detail`, `price`, `stock`, `discount`, `created_at`, `updated_at`) VALUES (1, 'et', 'Expedita perferendis voluptatem quia. Possimus voluptates non officiis dolor. Fugiat ut voluptate et aut qui dicta.', 494, 7, 29, '2020-02-21 06:05:22', '2020-02-21 06:05:22'), (2, 'eum', 'Itaque perferendis deserunt non at quam quod sunt debitis. Iste commodi eveniet quia vel illum. Repellendus qui qui qui saepe.', 808, 7, 23, '2020-02-21 06:05:22', '2020-02-21 06:05:22'), (3, 'mollitia', 'Et consectetur debitis corrupti magni. Recusandae numquam temporibus quas ea quod et. Sed voluptatem et consectetur qui rem hic. Recusandae non hic et quisquam iste totam id.', 312, 0, 4, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (4, 'ipsam', 'Velit perferendis illum et. Quam ad nemo autem sed laborum ea neque. Dolorum nisi est numquam qui non quae.', 267, 7, 11, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (5, 'rerum', 'Autem est rem laboriosam nihil. Similique ut totam consequatur non nihil. Aut dignissimos omnis voluptatibus est quo fugiat id. Veniam nostrum temporibus voluptates ipsa nulla molestiae doloremque earum.', 832, 9, 14, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (6, 'nemo', 'Sunt sapiente molestias id maxime voluptatem ducimus. Tempora iste amet voluptatem vel consectetur nam labore. Et cum voluptatem iste autem molestiae eos veritatis.', 396, 5, 7, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (7, 'nisi', 'Error saepe qui saepe est est maxime. Quas autem aspernatur esse sit qui aperiam corporis. Minima quam id commodi.', 378, 6, 18, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (8, 'est', 'Corrupti dolor est consequatur maxime corporis ad. Consequuntur laboriosam minima magnam at cumque. Omnis in magni ex cumque et dolores.', 541, 4, 12, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (9, 'sunt', 'Nihil dolor tenetur labore laboriosam qui. Autem aut enim doloribus cupiditate optio omnis veniam.', 763, 9, 6, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (10, 'nihil', 'Corrupti hic est iste perferendis labore. Rerum repellat temporibus quidem dolores et voluptas recusandae. Rerum aut voluptas quasi unde porro consequatur.', 165, 1, 6, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (11, 'ut', 'Sed exercitationem et velit praesentium quia omnis in. Facere et ut sed itaque quidem harum. Vel non molestiae sit debitis sequi laudantium.', 180, 5, 19, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (12, 'dolor', 'Enim repellendus sunt enim aliquid minus delectus autem eos. Distinctio consequatur rem voluptatibus voluptas qui quia. Aut qui architecto perferendis. Beatae nesciunt suscipit est id maiores.', 723, 2, 19, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (13, 'non', 'Voluptatum sed ad cupiditate assumenda animi. Et eos et sit at. Tempore voluptatem odio rerum repellat voluptatem. Et quidem explicabo quam veniam dolor quasi quam.', 712, 7, 23, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (14, 'officia', 'Repudiandae eos perspiciatis dolore iure. Rerum voluptas deleniti qui iure omnis. Voluptatem minus ut laborum dolorem officiis est et. Consectetur aut perferendis dolores vitae. Dolorem adipisci laudantium fugit voluptates.', 678, 2, 29, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (15, 'sint', 'Omnis in necessitatibus delectus omnis dolor dolorem aut. Magnam recusandae numquam ipsam dolor qui. Facilis debitis quaerat cumque. Non hic enim aut. Cumque enim odio numquam rerum nostrum.', 810, 2, 28, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (16, 'facilis', 'Praesentium quod qui optio doloremque consequatur qui tenetur aliquid. Nihil est ullam accusamus adipisci molestias. Aperiam rerum quo et doloribus aliquam. Cum qui dolore expedita facere.', 217, 2, 30, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (17, 'laboriosam', 'Optio sint minus doloremque voluptatem et nemo. Et repudiandae repellendus nemo unde. Quaerat et pariatur rerum laboriosam est sed fuga.', 883, 7, 14, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (18, 'ut', 'Similique facilis quam unde quaerat. Qui esse facere reiciendis et in error. Consequatur quis in maxime officia unde quas autem at. Corporis adipisci esse rerum dolores occaecati.', 234, 2, 6, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (19, 'et', 'In eius quia porro nihil illo ut. Eos ullam libero nulla atque. Dolor totam unde voluptas vero. Reiciendis inventore in sapiente architecto deleniti.', 882, 9, 19, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (20, 'quasi', 'Ipsum eveniet officiis provident ut facilis. Dolorum mollitia sapiente fuga aut aperiam neque. Enim quos repudiandae impedit. Expedita ratione in quas esse impedit error.', 500, 5, 30, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (21, 'quo', 'Illum error corrupti nam quis et suscipit accusantium. Quia illum ea autem officiis. Eius iste nam eligendi perspiciatis. Possimus nobis excepturi voluptatem optio nihil aut qui.', 700, 8, 19, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (22, 'est', 'Molestiae nemo dolores dignissimos et ratione accusantium voluptatem. Officia omnis placeat nulla. Unde voluptas quos vero molestias neque commodi autem qui.', 609, 6, 29, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (23, 'sint', 'Officiis voluptatem eius velit quo. Rerum aut veniam aut repellendus laborum commodi itaque atque. Praesentium nihil autem ipsa odio ab.', 905, 2, 28, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (24, 'quia', 'Voluptas similique vel sit in quo a ab dolores. Dolore accusamus soluta sed ducimus. Eius pariatur consectetur rerum accusamus veritatis. Quibusdam commodi iusto necessitatibus. Quis saepe culpa doloribus dolorem voluptatem ab consequatur et.', 597, 0, 26, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (25, 'sint', 'Nemo repellendus consequatur officiis aliquam. Rerum quasi blanditiis tempore cupiditate laboriosam veniam. Eum voluptate praesentium minima consequatur quo doloribus atque qui.', 578, 2, 18, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (26, 'voluptatibus', 'Animi quis ut sapiente doloremque autem. Nemo est accusamus officiis non. Et dolorem totam impedit vel.', 274, 7, 19, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (27, 'quo', 'Fugit sint ullam perspiciatis recusandae. Repellendus quod temporibus quod animi quia totam. Voluptatem quis consequatur sit dolores qui alias eveniet.', 233, 9, 5, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (28, 'quos', 'Iste iusto maiores ipsum quas ex temporibus. Eum voluptas et corporis ratione quia voluptatibus. Ut sit rerum neque consequatur. Porro vel pariatur iste et ex eligendi minus.', 635, 2, 5, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (29, 'dolore', 'Sit dolores voluptas excepturi dolor sed earum laboriosam. Aut suscipit esse sunt. Eum enim ut quod et optio eius. Quas suscipit minus sit vero.', 573, 2, 9, '2020-02-21 06:05:23', '2020-02-21 06:05:23'), (30, 'distinctio', 'Est voluptates non perspiciatis. Corporis tempore quo et et mollitia adipisci eveniet. Et aliquam rem error doloribus. Similique occaecati sed tempora sint quia minima mollitia nihil. Deleniti reprehenderit omnis facere.', 646, 7, 18, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (31, 'expedita', 'Non reprehenderit delectus ut repellat sit. Quia quo consectetur assumenda non omnis ipsam. Eum consequatur ratione et eum. Et aperiam dolores et.', 530, 2, 20, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (32, 'doloribus', 'Sed doloremque id ducimus. Voluptatem et corrupti placeat ipsum. Dolorem omnis temporibus esse culpa ad.', 986, 7, 24, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (33, 'nihil', 'Qui animi omnis quibusdam nam ut eum sequi. Deleniti alias esse vel. Aspernatur doloremque enim natus facere perferendis. Maxime qui sit fuga molestias debitis neque. Tenetur temporibus et sit enim et illum.', 547, 9, 17, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (34, 'delectus', 'Et molestiae quasi assumenda. Quisquam autem rerum tempore aliquam. Tempore necessitatibus expedita sit aut adipisci sint explicabo.', 878, 1, 28, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (35, 'harum', 'Est dicta rerum enim porro. Rerum praesentium eveniet quae ut voluptatum molestiae. Ut id non aperiam ut minus sint.', 187, 9, 20, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (36, 'maxime', 'Reprehenderit aspernatur perferendis quisquam cupiditate sit itaque eos. Sed alias provident quia nesciunt. Est quia aut et cumque cum cum et quam. Libero quaerat autem qui earum laboriosam.', 180, 2, 12, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (37, 'et', 'Consectetur qui quia eius aliquid in earum. Et laborum voluptatem ipsum alias quam. Rerum debitis nihil illum qui quas et voluptate ipsam.', 760, 8, 6, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (38, 'id', 'Aut eos mollitia nulla nisi alias. Eveniet totam earum aut qui eveniet. Et placeat nobis est dolorum amet corporis hic et. Et dolores voluptatem nihil veritatis aperiam cumque. Suscipit illo nihil iusto quos quo voluptatem sunt.', 454, 5, 5, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (39, 'quod', 'Voluptatem iure labore officiis. Nostrum esse ea tempore repellendus nihil reprehenderit. Ratione rerum inventore dolor quos quisquam inventore animi.', 941, 4, 9, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (40, 'consectetur', 'Ad odit eos non. Sapiente error voluptas neque itaque ut.', 362, 8, 16, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (41, 'dolor', 'Dolore omnis enim fugit possimus quibusdam ratione. Animi nam omnis ut iure. Ut ut minima deleniti suscipit dolores repudiandae.', 478, 2, 23, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (42, 'dolor', 'Eum omnis aut similique mollitia. Et debitis alias voluptas cum iure. Earum est similique ratione qui necessitatibus. Dolorem rerum ut rem sit delectus nihil deleniti.', 627, 0, 6, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (43, 'soluta', 'Molestiae ut voluptatibus voluptatem maiores. Esse omnis voluptas voluptas consequatur odit blanditiis. Aut odit molestiae dolorem quam.', 872, 7, 26, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (44, 'iste', 'Necessitatibus voluptatem placeat rem eos et hic dolores est. Eos delectus sint aut quia distinctio velit saepe. Et odio consequatur voluptatem et dolorum quis.', 927, 7, 10, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (45, 'itaque', 'Iste sequi voluptates at ut consectetur explicabo dolores. Est iusto quia laboriosam corporis qui. Molestias enim cum id. Ratione modi natus ipsam est et eum.', 905, 8, 6, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (46, 'sequi', 'Veniam accusantium saepe aut natus. Tenetur assumenda voluptas consectetur at. Error quasi est quisquam nemo numquam repellat.', 723, 1, 24, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (47, 'accusantium', 'Voluptatibus maxime rem quasi. Consequatur facilis maiores totam rerum quod accusamus. Reprehenderit facere tenetur officiis hic ut similique.', 971, 7, 4, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (48, 'adipisci', 'Distinctio repudiandae qui corrupti neque. Eveniet rerum facilis et sunt et. Officiis aspernatur perspiciatis esse nostrum accusantium rem. Fugiat quis ab aut eos rem.', 546, 8, 16, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (49, 'aut', 'Fugiat ipsam fugiat nihil dolor soluta nulla. Ipsa unde enim autem sapiente aliquam harum. Molestiae culpa in est qui itaque repellat. At consequatur fugit quam natus sit cumque numquam.', 117, 3, 10, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (50, 'delectus', 'Architecto earum aut quas quis aperiam. Aut nulla nisi corrupti cupiditate. Eius voluptate nulla et ipsum dolorem et eos.', 368, 7, 4, '2020-02-21 06:05:24', '2020-02-21 06:05:24'), (51, 'consectetur', 'Sunt similique fugit libero doloribus deleniti nam rem. Doloremque aliquid porro omnis eos. Minima id autem voluptatem porro. Voluptatem quia odit aut quo.', 935, 5, 22, '2020-02-21 06:05:49', '2020-02-21 06:05:49'), (52, 'illo', 'Quam illum rem quam sunt eveniet magni. Provident nemo rerum nulla nostrum accusantium. Sunt totam repellendus voluptas cupiditate.', 406, 2, 6, '2020-02-21 06:05:49', '2020-02-21 06:05:49'), (53, 'repellat', 'Fuga consequatur corporis aut assumenda et. Aut id at aperiam aut dolorem. Qui ipsum provident voluptates veritatis est sint. Rerum quis assumenda aut enim.', 961, 5, 29, '2020-02-21 06:05:49', '2020-02-21 06:05:49'), (54, 'laudantium', 'At temporibus vel beatae rerum aut numquam consequatur. Aliquam qui voluptatem id illum.', 177, 4, 16, '2020-02-21 06:05:49', '2020-02-21 06:05:49'), (55, 'voluptatem', 'Dignissimos voluptatem amet tempore sed sit alias ipsum. Consequatur voluptates in deserunt nemo.', 951, 3, 6, '2020-02-21 06:05:49', '2020-02-21 06:05:49'), (56, 'itaque', 'Quis qui id officiis neque laudantium est. Quia commodi ducimus commodi impedit. Voluptatem quaerat quo et. Voluptate enim quae voluptatibus laboriosam id.', 309, 7, 9, '2020-02-21 06:05:49', '2020-02-21 06:05:49'), (57, 'id', 'Officiis in laboriosam beatae ea. Voluptatibus sed nemo rerum molestias odio. Eos suscipit cupiditate eveniet unde molestias maxime qui qui.', 829, 6, 30, '2020-02-21 06:05:49', '2020-02-21 06:05:49'), (58, 'eaque', 'Dolores quo iure ab saepe ut ex. Deserunt nobis quaerat perspiciatis. Ducimus sint ut tempore dolores quas impedit.', 742, 9, 18, '2020-02-21 06:05:49', '2020-02-21 06:05:49'), (59, 'ab', 'Ut sint aut voluptatibus laudantium neque nemo dolore iste. Doloremque suscipit nihil fugiat cupiditate nobis et voluptatem. Tenetur quisquam nulla iure dolores impedit corrupti. Quod a tenetur consequatur delectus facilis.', 743, 9, 2, '2020-02-21 06:05:49', '2020-02-21 06:05:49'), (60, 'similique', 'Voluptatem quia est quaerat qui. Saepe mollitia accusamus dolores labore consequuntur consequatur et. Sed expedita nulla velit nobis blanditiis quibusdam.', 183, 2, 16, '2020-02-21 06:05:49', '2020-02-21 06:05:49'), (61, 'delectus', 'Hic sed incidunt aut et laboriosam veniam a. Quia illum omnis quia omnis eveniet et. Aperiam in facilis eos ab et quia consectetur.', 139, 7, 20, '2020-02-21 06:05:49', '2020-02-21 06:05:49'), (62, 'dolor', 'Minus aut corrupti sed. Voluptatem laborum ut et quaerat a delectus ea vel. Velit occaecati eum atque officiis enim id.', 656, 8, 3, '2020-02-21 06:05:49', '2020-02-21 06:05:49'), (63, 'molestiae', 'Consequuntur in consequatur nisi et voluptatibus ut. Maxime et incidunt debitis. Quis atque qui illo esse qui sunt perferendis dignissimos.', 575, 3, 17, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (64, 'laboriosam', 'Ut rerum maxime magni nostrum quibusdam quis. Ab reiciendis architecto cupiditate et libero sit doloribus deserunt. Et nostrum sed cupiditate autem.', 175, 6, 3, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (65, 'nihil', 'Nostrum odit aliquid laborum perferendis accusamus iure architecto est. Debitis qui aut laudantium minima. Expedita atque cum vitae veritatis voluptatibus error. Animi tempora ut hic velit eum sunt aspernatur.', 189, 5, 20, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (66, 'aspernatur', 'Omnis aut libero omnis. Voluptates blanditiis non odio excepturi impedit sunt.', 619, 2, 8, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (67, 'non', 'Ea perspiciatis ullam nulla non vero commodi. Ratione impedit tenetur perspiciatis pariatur beatae totam. Sed quisquam possimus quam molestiae explicabo repellat. Nisi a praesentium error aliquam nostrum sed inventore. Sunt placeat aut ea error quibusdam.', 127, 3, 7, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (68, 'neque', 'Doloribus possimus et aut ut minima eum. Laudantium soluta repudiandae ducimus consequatur facilis. Minus tenetur voluptas aut aut fuga temporibus. Eos occaecati quasi tenetur pariatur.', 658, 1, 2, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (69, 'et', 'Qui commodi doloremque nihil nisi voluptatem ipsam quas. Atque nulla necessitatibus molestiae nostrum. Ex porro ipsa ratione omnis quia iure.', 969, 2, 24, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (70, 'dolore', 'Nulla eaque dolor adipisci in. Cupiditate voluptas aliquid esse qui aspernatur modi. Aut provident quo eaque ut deleniti. Sit et et voluptates eos nobis consectetur reiciendis.', 940, 5, 11, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (71, 'est', 'Velit maxime omnis dicta tempora consequatur. Nobis voluptas aut ut. Placeat et aut iure sit voluptatum. Eaque recusandae et error dolor.', 725, 5, 6, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (72, 'doloribus', 'Nisi aut laudantium facere fuga nemo. Voluptatem nemo maxime enim nobis voluptates minus libero. Aut quam nisi omnis porro. Perferendis quis omnis dolorem est ipsum.', 405, 3, 17, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (73, 'ea', 'Sed est quisquam optio et a. Est numquam dolorum libero aut veritatis commodi debitis. Quod qui modi aut id est minima. Vel aut maiores libero id.', 282, 4, 24, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (74, 'iste', 'Nemo facere omnis aliquam reprehenderit. Ex odio quis et laudantium voluptatibus magnam aut. In suscipit labore assumenda inventore quis voluptate voluptatum et. Consectetur facere ut similique libero recusandae.', 920, 2, 18, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (75, 'dicta', 'Quia ipsum consequuntur laudantium quasi provident. Temporibus aliquid corrupti cupiditate illo veniam ut quibusdam. Veritatis delectus est quas aut culpa.', 434, 2, 8, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (76, 'sint', 'Consequuntur blanditiis dignissimos maiores illo saepe nisi. Quos unde quia sequi eum iste tenetur accusantium. Ut consequatur eos et doloribus expedita dolores.', 729, 6, 4, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (77, 'at', 'Et quisquam et rem error. Et omnis vel minima odit. Excepturi cumque voluptates commodi repudiandae minus harum et. Et veniam est dicta.', 783, 3, 7, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (78, 'aut', 'Cupiditate excepturi vero impedit vero sint quas. Laborum dolores illum aut et ex enim perspiciatis ut. Totam sequi magni eligendi ipsa.', 397, 1, 24, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (79, 'animi', 'Unde velit praesentium molestiae earum reiciendis. Officia ipsum quia eius ea labore. Tenetur deleniti placeat voluptate inventore.', 573, 1, 15, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (80, 'quibusdam', 'In qui harum iste quam beatae. Consectetur accusantium aliquam ducimus similique. Veniam repudiandae eum ullam. Incidunt et vitae ut molestiae. Rem occaecati unde dicta quasi optio aut.', 135, 3, 25, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (81, 'delectus', 'Expedita rerum qui dolorem expedita cum asperiores. Libero officiis sed autem quia dolores quo animi. Aut hic ex ab ut voluptatem eos sed. Optio sint cupiditate at iure qui sit aut.', 565, 8, 22, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (82, 'voluptate', 'Possimus sit non est rem velit expedita. Numquam sint reiciendis ex et tempora blanditiis.', 746, 1, 3, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (83, 'ducimus', 'Autem qui aliquid ullam. Et vel aut nihil doloremque. Excepturi quaerat tempora incidunt voluptas. Autem atque qui esse aut.', 107, 1, 2, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (84, 'omnis', 'Natus beatae accusamus fugiat ea sint ratione autem. Et et explicabo et consectetur aspernatur veritatis laboriosam excepturi. Reiciendis temporibus quam officia cupiditate maiores exercitationem.', 182, 0, 5, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (85, 'in', 'Laboriosam voluptatem accusantium expedita possimus blanditiis. Exercitationem consequatur ut omnis eveniet aut eius rerum corporis. Aut qui qui hic voluptas ab ab ut.', 620, 7, 29, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (86, 'temporibus', 'Possimus placeat aut ea consequatur. Non maiores pariatur dolores officiis voluptatem qui. Officiis qui modi perferendis et veniam unde doloribus. Molestias id deserunt tempore maxime consectetur porro.', 447, 1, 20, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (87, 'iusto', 'Neque nisi sint error velit autem. Dolore perferendis excepturi dignissimos ipsum ut. Sapiente quisquam iure dolores dolorem. Dolorum provident facilis iusto eius alias consequuntur.', 321, 8, 10, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (88, 'aut', 'Eaque praesentium et libero et veniam aut enim numquam. Rerum harum dolorum rerum et officiis qui placeat. Fugit pariatur modi fuga quasi eaque. Ea qui possimus vel doloribus quasi.', 176, 2, 12, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (89, 'nesciunt', 'Et sunt voluptatem repellendus eveniet est reprehenderit. Accusantium nostrum eveniet aperiam voluptatem facilis harum. Et nisi officiis ipsam natus officia atque itaque. Ut temporibus rerum quae voluptatem.', 579, 2, 15, '2020-02-21 06:05:50', '2020-02-21 06:05:50'), (90, 'officiis', 'Quia consequatur est odit hic impedit cum ullam. Totam rerum nulla et.', 900, 5, 14, '2020-02-21 06:05:51', '2020-02-21 06:05:51'), (91, 'et', 'Alias dicta corporis quae voluptates labore ut in occaecati. Nulla in ab temporibus facere omnis quibusdam. Deleniti necessitatibus et nobis quas quis repudiandae. Minus sit nostrum error eligendi adipisci officiis.', 596, 1, 28, '2020-02-21 06:05:51', '2020-02-21 06:05:51'), (92, 'eos', 'Laudantium vero natus accusantium expedita fuga sint. Velit ab dolores odio vitae repellendus et aliquam. Rerum dignissimos nostrum illum quia. Ullam praesentium ipsum earum sint maiores.', 589, 4, 17, '2020-02-21 06:05:51', '2020-02-21 06:05:51'), (93, 'quia', 'Non vero quae ducimus aut fugiat quo. Laudantium et a voluptas. Nisi magnam voluptatum debitis incidunt recusandae saepe ex voluptates. Occaecati eligendi voluptates et eum maiores ut dolorem.', 337, 2, 14, '2020-02-21 06:05:51', '2020-02-21 06:05:51'), (94, 'in', 'Possimus blanditiis eveniet rerum qui eaque amet. Quia qui in provident optio omnis.', 786, 2, 29, '2020-02-21 06:05:51', '2020-02-21 06:05:51'), (95, 'eius', 'Et modi quasi quam omnis. Repellendus quod optio id. Sed consequatur animi incidunt accusantium molestiae dolor.', 1000, 5, 20, '2020-02-21 06:05:51', '2020-02-21 06:05:51'), (96, 'quia', 'Quibusdam velit praesentium cumque tempore possimus aspernatur. Placeat voluptatem sint est ut cum molestiae. Dolore enim alias et qui. Mollitia ut animi hic molestiae. Eum delectus id voluptatum ut nesciunt sed saepe.', 479, 4, 28, '2020-02-21 06:05:51', '2020-02-21 06:05:51'), (97, 'est', 'Autem illo fugit quo debitis voluptas porro voluptates. Rerum nam mollitia quia dolore enim mollitia est. Qui sit non qui ipsum laudantium.', 917, 8, 11, '2020-02-21 06:05:51', '2020-02-21 06:05:51'), (98, 'vitae', 'Fugiat maxime tempora velit repudiandae. Ipsa voluptas eos voluptates ut reiciendis voluptatem sint autem.', 279, 9, 13, '2020-02-21 06:05:51', '2020-02-21 06:05:51'), (99, 'ullam', 'Eos ipsa dolor ut maxime. Impedit suscipit fuga qui quisquam voluptatem sit animi. Molestiae adipisci architecto cupiditate nam nulla quia dolores non. Ex eligendi rerum nostrum inventore cum eius quam.', 408, 8, 19, '2020-02-21 06:05:51', '2020-02-21 06:05:51'), (100, 'voluptates', 'Officiis pariatur a et sed fugiat quaerat qui. Accusantium ipsam dignissimos reprehenderit aut recusandae voluptatem rerum. Corrupti impedit tempore quam non voluptatem.', 687, 9, 26, '2020-02-21 06:05:51', '2020-02-21 06:05:51'), (101, 'laudantium', 'Autem quia cumque laboriosam hic sit. Ea id eum voluptatibus fuga. Quia aut ea natus voluptas non culpa excepturi. Fugit blanditiis mollitia molestias unde et et eaque.', 507, 3, 23, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (102, 'aut', 'Et ut suscipit id dolorum doloribus maiores consequuntur nihil. Alias ut et asperiores aliquam itaque voluptatibus id. Aut molestiae unde earum non.', 835, 8, 14, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (103, 'temporibus', 'Laboriosam nisi a corporis accusantium perferendis. Voluptas perferendis ipsam repellendus incidunt sapiente nobis ratione. Quis aut omnis id sunt.', 946, 6, 19, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (104, 'autem', 'Enim qui illo similique. Quasi occaecati ut perferendis aut voluptatem laudantium sit ipsa. Modi consequatur laudantium at voluptatem qui eveniet occaecati.', 281, 9, 21, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (105, 'aut', 'Ad perspiciatis ut dolores quo dolores. Sed quia rem odio facere voluptatem eum velit. Voluptatum qui dolorum magni culpa quidem ex voluptatem.', 956, 3, 28, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (106, 'quasi', 'Rerum asperiores ipsa qui labore inventore molestiae veniam. Dolores voluptatem occaecati quasi qui dolor molestiae rerum. Provident rerum ea placeat et dicta aut deleniti deserunt. Quibusdam qui expedita ab ea odio voluptas modi. Delectus sapiente ut pariatur recusandae non.', 999, 8, 4, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (107, 'sit', 'Earum aut consequatur perspiciatis qui. Qui aliquid ea quas libero sequi rerum asperiores. Debitis et libero praesentium at.', 895, 7, 6, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (108, 'beatae', 'Aut ea natus totam ipsam sed. Qui quia ad nulla. Maiores sint rerum omnis voluptatem sit reiciendis error.', 505, 1, 13, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (109, 'error', 'Sit voluptates voluptate eum nobis iure blanditiis. Magni velit adipisci dolores deleniti assumenda omnis voluptas.', 646, 2, 5, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (110, 'deleniti', 'Soluta et sit qui dolor sunt aperiam. Nisi nisi consequatur animi. Pariatur sequi vel odio eius nihil omnis. Quo dignissimos nesciunt animi rerum corrupti magni.', 185, 3, 23, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (111, 'minus', 'Magnam nisi natus sed est nihil soluta. Optio et rerum sed. Reprehenderit cupiditate in non aut atque voluptas.', 704, 5, 7, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (112, 'dolorem', 'Autem ullam repudiandae quia. Dolorem labore nihil voluptatem et rerum.', 537, 2, 21, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (113, 'sed', 'Necessitatibus et vitae rem numquam quia. Praesentium harum et voluptate in voluptatem eos. Esse ratione dolorem expedita autem sed. Reprehenderit illo natus sit at.', 223, 4, 16, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (114, 'odit', 'Et praesentium qui aut quae. Aut minima quibusdam consectetur. Asperiores neque eum sit qui officia facere quo. Omnis consequatur id repellat deserunt repellat hic.', 198, 0, 28, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (115, 'cum', 'Voluptas sapiente vel repellat dolores tenetur optio. Delectus eius corporis fuga. Dolores quaerat est odio eligendi voluptas ab consequatur ipsum. In eius voluptatem quo optio similique illum qui. Unde molestiae reprehenderit fuga consequuntur doloribus saepe quod ut.', 153, 8, 17, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (116, 'distinctio', 'Dolorem maiores mollitia voluptates delectus natus minima. Voluptatem illo aliquid ullam accusamus. Molestiae dolorem velit porro cumque nihil. Nemo a porro reiciendis ea non. Dolor sint aut autem pariatur omnis.', 780, 6, 30, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (117, 'et', 'In eos possimus fugiat accusantium architecto sit. Facere libero explicabo qui. Architecto nobis cumque deserunt et optio. Neque ipsam neque sint accusantium est.', 154, 6, 3, '2020-02-21 06:05:59', '2020-02-21 06:05:59'), (118, 'voluptatem', 'Ullam adipisci sit porro qui fugit ullam quas. Tempore et neque iste. Facilis et qui corrupti consequatur ut sed sit. Corrupti quaerat voluptas cupiditate mollitia culpa.', 562, 1, 18, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (119, 'recusandae', 'Quo eum repellat dolorum ex odit. Ea eveniet voluptatum recusandae. Nam inventore dolores est qui eius et debitis repudiandae.', 837, 3, 11, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (120, 'distinctio', 'Et consequuntur repellendus sint harum ratione sint. Dolorum similique dolor veritatis mollitia maiores officiis sapiente. In odio deserunt et debitis.', 257, 5, 27, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (121, 'et', 'Rerum facilis non tempora expedita est in. Quidem non voluptates id optio.', 325, 8, 18, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (122, 'ea', 'Totam cumque possimus quis qui et. Atque soluta nihil id reprehenderit natus. Non qui adipisci officiis ut qui.', 975, 5, 5, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (123, 'aut', 'Est aut sunt illo officia. Magnam fuga et est quo similique vel reprehenderit. Eligendi est consequatur dicta. Officia enim earum cupiditate sed.', 111, 3, 18, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (124, 'dolorem', 'Et quia repellat accusantium error animi exercitationem. Nihil cupiditate nemo nemo officiis ut placeat. Beatae dolorum ut asperiores ipsam omnis.', 729, 2, 25, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (125, 'dolore', 'Exercitationem accusamus atque pariatur numquam aperiam pariatur quod. Rerum mollitia rerum commodi.', 804, 4, 23, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (126, 'cum', 'Voluptas fugiat est explicabo eos. Quo dolorem ad et repudiandae ut molestiae. Quae ab odit repudiandae laboriosam soluta ut. Et voluptatibus blanditiis et dignissimos est et aut tempora.', 724, 1, 4, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (127, 'tempora', 'Maiores et doloremque nisi. Temporibus aut aut et earum quia est. Animi quod velit sit iste. Porro qui accusantium ut adipisci dolorem nostrum hic.', 827, 5, 9, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (128, 'aut', 'Enim consequatur voluptatibus sit rerum dolores aut ducimus. Ut explicabo adipisci ad suscipit voluptatem voluptas nemo. Velit soluta ut voluptas est quos. Quaerat est quasi id mollitia qui.', 664, 2, 11, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (129, 'expedita', 'Impedit ea dignissimos et qui non similique. Ut sed et tempore nisi. Aut similique odit fugiat voluptatibus corrupti. Aliquam tenetur mollitia id quaerat eos. Soluta consequatur veritatis reiciendis cupiditate voluptatem ut doloremque.', 657, 6, 20, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (130, 'voluptas', 'Et aliquid illum ex exercitationem non consequatur molestias architecto. Consequuntur alias omnis aspernatur eos rerum.', 345, 0, 27, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (131, 'porro', 'Autem omnis corrupti dolorem aut tempore et eveniet. Numquam fuga ea ut quod. Porro minima consequuntur et optio in.', 541, 1, 7, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (132, 'ut', 'Earum quasi sit et. Voluptatem sunt alias consequatur iure nihil rerum perspiciatis.', 727, 4, 17, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (133, 'quibusdam', 'Cupiditate debitis quisquam quas magnam vitae. Deserunt deleniti dignissimos et incidunt necessitatibus ab eum. Repudiandae quod et impedit rem odio qui. Sint molestias error est sequi.', 208, 6, 2, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (134, 'nostrum', 'Odio possimus in sit quod. Voluptatem et est voluptatem velit magnam. Dicta labore ut ut quia natus. Et molestiae nihil in provident quisquam.', 295, 4, 13, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (135, 'maxime', 'Illum voluptate nihil magnam qui maxime et amet. Commodi iure culpa ut aliquam et aut. Et magnam eum et quia sequi.', 183, 3, 3, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (136, 'earum', 'Maxime qui omnis aut commodi ad. Blanditiis perferendis perferendis expedita quisquam pariatur neque libero. Voluptas explicabo reprehenderit recusandae.', 601, 0, 20, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (137, 'incidunt', 'Dolor temporibus maiores commodi pariatur. Quidem veniam ut vel. Occaecati provident earum vel facilis.', 779, 8, 25, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (138, 'commodi', 'Iste libero delectus ullam dolorum cumque dicta. Quia vero est dolorum temporibus. Quia optio id commodi hic eligendi aut ducimus aliquam.', 372, 7, 19, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (139, 'fugiat', 'Impedit libero laboriosam sint provident a. Quo fugit facere porro sit et voluptas. Qui quae ea hic vel. Dolor ipsa ut dolorem expedita neque omnis.', 509, 4, 19, '2020-02-21 06:06:00', '2020-02-21 06:06:00'), (140, 'eaque', 'Nam laudantium molestiae eos. Earum laborum veritatis quod quae nihil. Reiciendis autem praesentium commodi velit error qui delectus. Sapiente voluptate rerum laudantium non velit dicta quos.', 969, 8, 26, '2020-02-21 06:06:01', '2020-02-21 06:06:01'), (141, 'consequatur', 'Rerum debitis nulla porro. Rerum ut qui iusto voluptatem architecto. Rerum voluptatum dolores corrupti laborum voluptatem aut. Sint quis nisi et labore voluptatibus ea.', 416, 7, 14, '2020-02-21 06:06:01', '2020-02-21 06:06:01'), (142, 'autem', 'Quo illum sit recusandae sit. Est qui sed illum est voluptatem.', 762, 6, 27, '2020-02-21 06:06:01', '2020-02-21 06:06:01'), (143, 'voluptatibus', 'Dignissimos quod explicabo distinctio vel voluptate qui. Quia praesentium voluptatem modi impedit velit et et enim. Facere eum velit voluptatibus magnam aut consectetur consequuntur amet. A sit et error laboriosam et debitis ab.', 349, 1, 29, '2020-02-21 06:06:01', '2020-02-21 06:06:01'), (144, 'a', 'Ducimus sint voluptatem tempora aliquid. Molestias ab eum cum et. Nihil iusto et rem molestiae.', 487, 9, 21, '2020-02-21 06:06:01', '2020-02-21 06:06:01'), (145, 'porro', 'Deleniti dolorum et sit quidem. Quia quia reiciendis nesciunt unde cupiditate commodi. Ut qui dolore porro asperiores laudantium.', 519, 3, 9, '2020-02-21 06:06:01', '2020-02-21 06:06:01'), (146, 'placeat', 'Perspiciatis nam repudiandae rerum provident. Non eaque suscipit unde consectetur sunt molestias eveniet. Dignissimos repellendus quia iusto non incidunt quam autem.', 873, 0, 15, '2020-02-21 06:06:01', '2020-02-21 06:06:01'), (147, 'cum', 'Nemo voluptas eum consequatur rerum. Eligendi porro neque sapiente quae aliquid omnis.', 213, 5, 28, '2020-02-21 06:06:01', '2020-02-21 06:06:01'), (148, 'ut', 'Commodi reiciendis ut ea asperiores facilis voluptatem. Reiciendis eum ut sint. Minima odit et qui molestias aut.', 727, 0, 9, '2020-02-21 06:06:02', '2020-02-21 06:06:02'), (149, 'architecto', 'Beatae voluptatem id possimus laborum dolor iure. Ipsa nam molestiae dicta corrupti magni. Voluptatem error impedit asperiores quis sit nesciunt.', 405, 9, 27, '2020-02-21 06:06:02', '2020-02-21 06:06:02'), (150, 'modi', 'Debitis qui tenetur voluptatem veritatis repellat vitae quia iste. Non in impedit voluptatem id excepturi. Aut quia molestiae eius eum officia cupiditate sint. Quos corporis a nulla quia quos quae.', 815, 7, 14, '2020-02-21 06:06:02', '2020-02-21 06:06:02'), (151, 'qui', 'Ex aut voluptates qui quam atque nisi. Quo architecto voluptas et atque inventore non. Distinctio et laboriosam expedita. Quia maxime suscipit mollitia.', 447, 6, 21, '2020-02-21 06:06:18', '2020-02-21 06:06:18'), (152, 'sed', 'Alias corporis nisi dignissimos harum perspiciatis vitae quaerat. Nostrum quo ut deserunt non hic sequi. Eos eum cumque itaque quos omnis. Eligendi sit et et suscipit.', 836, 8, 27, '2020-02-21 06:06:18', '2020-02-21 06:06:18'), (153, 'consectetur', 'Soluta quo quisquam culpa voluptas suscipit aspernatur facere provident. Ut pariatur ex ratione similique temporibus est. Aspernatur nulla voluptatem eum ut labore ipsa cupiditate. Occaecati tempora qui et eligendi quia et ducimus.', 382, 8, 19, '2020-02-21 06:06:18', '2020-02-21 06:06:18'), (154, 'voluptatem', 'Odit dolores iste eos veniam at officiis aut autem. Rerum tenetur dolor error pariatur commodi perferendis velit. Quasi ad dicta sunt veritatis.', 795, 2, 24, '2020-02-21 06:06:18', '2020-02-21 06:06:18'), (155, 'cum', 'Itaque vitae suscipit nisi asperiores in ea fugiat deleniti. Illum quidem repudiandae error quo. Exercitationem vero aut distinctio magni consequatur iste tempora. Aperiam architecto et exercitationem recusandae.', 354, 4, 30, '2020-02-21 06:06:18', '2020-02-21 06:06:18'), (156, 'autem', 'Omnis ullam porro ab veritatis a autem. Officia ut excepturi omnis adipisci et. Facilis harum perspiciatis sint deleniti et animi. Autem adipisci quae aut necessitatibus commodi. Autem totam eum eius eligendi delectus deserunt dolorum.', 708, 2, 7, '2020-02-21 06:06:18', '2020-02-21 06:06:18'), (157, 'est', 'Et velit ut veritatis ex atque. Dolores natus nemo rerum est. Pariatur aliquid ipsa porro voluptas dignissimos tempore distinctio. Perspiciatis eum maiores neque autem a.', 694, 1, 16, '2020-02-21 06:06:18', '2020-02-21 06:06:18'), (158, 'quos', 'Nostrum eos quis tenetur. Tempore eum in ullam.', 808, 8, 15, '2020-02-21 06:06:19', '2020-02-21 06:06:19'), (159, 'quia', 'Quis mollitia sint rerum commodi aut magni vel. Et et maiores laboriosam beatae officia similique eligendi.', 380, 5, 23, '2020-02-21 06:06:19', '2020-02-21 06:06:19'), (160, 'quia', 'Et provident doloribus aut illo. Maxime quas maiores non ipsam. Molestiae officiis consequatur qui rerum aut.', 265, 3, 19, '2020-02-21 06:06:19', '2020-02-21 06:06:19'), (161, 'aut', 'Magnam qui qui deserunt aut aliquam debitis. Mollitia quia ea dolorem temporibus a nesciunt. Quis natus est id eum sed quia et. Perferendis explicabo esse est et velit officia.', 143, 4, 19, '2020-02-21 06:06:19', '2020-02-21 06:06:19'), (162, 'earum', 'Enim officiis magni natus iure quaerat soluta incidunt. Alias vitae dolorem quasi placeat voluptas. Et est recusandae molestiae ullam.', 669, 2, 25, '2020-02-21 06:06:19', '2020-02-21 06:06:19'), (163, 'ex', 'Non in consequatur ea provident qui voluptatibus. Error qui et aut ut et commodi modi. Sunt harum animi distinctio incidunt eveniet.', 667, 8, 8, '2020-02-21 06:06:19', '2020-02-21 06:06:19'), (164, 'ea', 'Dolor alias tempore et enim. Sed minus corporis ullam velit. Voluptas maxime architecto qui eum. Fuga animi officiis autem ut voluptatibus perferendis occaecati soluta.', 947, 8, 7, '2020-02-21 06:06:19', '2020-02-21 06:06:19'), (165, 'dolorem', 'Quia dicta perferendis tenetur consequatur nostrum quod. Est voluptas commodi ab dolores inventore numquam magnam. Quo ut qui rerum eos laudantium.', 813, 7, 2, '2020-02-21 06:06:19', '2020-02-21 06:06:19'), (166, 'necessitatibus', 'Reiciendis quia distinctio vel dicta sit ipsam reiciendis. Nobis impedit maiores totam sapiente iure officia iusto. Quas maiores aut ratione et temporibus. Non fugit pariatur dolorem consectetur.', 260, 8, 20, '2020-02-21 06:06:19', '2020-02-21 06:06:19'), (167, 'aut', 'Facilis dolorem placeat aliquid nesciunt enim quia. Molestias porro adipisci accusamus et maiores beatae. Et quos magnam commodi. Et aut iste ipsa repellendus et eos exercitationem.', 759, 3, 4, '2020-02-21 06:06:19', '2020-02-21 06:06:19'), (168, 'expedita', 'Sit blanditiis omnis quia inventore enim iste dolorem nemo. Et sequi officia quam sunt debitis at. Itaque sunt error et est officiis asperiores cumque. Vel magni ratione odio voluptas. Aut error illo ut veniam inventore iure aut.', 627, 5, 15, '2020-02-21 06:06:19', '2020-02-21 06:06:19'), (169, 'dicta', 'Tenetur quia autem et voluptatum repellat. Praesentium et sunt vitae libero enim tenetur non. Commodi molestiae necessitatibus mollitia ut facere quas. Corporis veniam sapiente qui cumque et nemo ad.', 105, 6, 10, '2020-02-21 06:06:19', '2020-02-21 06:06:19'), (170, 'modi', 'Aut ut id sequi aut. Cum eum necessitatibus consequatur minus reprehenderit magni. Minus totam ullam et eligendi voluptatibus optio quos.', 639, 7, 16, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (171, 'deleniti', 'Commodi sint ut dignissimos perspiciatis nihil quis sint voluptates. Harum aut rerum sit cupiditate ipsam. Sit est quisquam non amet est. Est quaerat voluptatem consequuntur sequi. Quia veritatis architecto ut modi mollitia debitis rem.', 406, 1, 20, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (172, 'perspiciatis', 'Quisquam officiis atque non nostrum quia. Quia rerum atque odio voluptatem ullam. Debitis sint quia nihil minima non.', 508, 4, 18, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (173, 'id', 'Tenetur eveniet earum delectus tenetur quas minus ut natus. Ex commodi ullam quidem aperiam a voluptatem libero. Molestiae quod non qui iusto rem.', 630, 5, 17, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (174, 'sit', 'Quo dolorum et eaque non autem nisi consequatur. Impedit et reiciendis facere quos temporibus. Ut atque quod corrupti totam est eius.', 257, 4, 6, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (175, 'iure', 'Nam quisquam aut enim quisquam tenetur. Velit perferendis explicabo accusamus et odio fugiat veritatis.', 920, 4, 22, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (176, 'autem', 'Sed autem harum consequatur neque et laboriosam. Eligendi libero deserunt rerum aut fuga sed reiciendis. Reiciendis corrupti temporibus ducimus tenetur et.', 291, 4, 4, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (177, 'ut', 'Voluptatum sunt neque aut magnam. Enim repudiandae non autem officiis rerum dolorum nisi. Eligendi placeat maiores voluptatum cumque dolorem harum adipisci.', 692, 9, 3, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (178, 'ab', 'Velit eaque distinctio voluptates aut qui minus molestiae. Tempora ipsum nihil et non numquam sunt. Minus nemo sapiente itaque numquam quae pariatur. Earum natus et facilis dolores velit aut fugiat perspiciatis.', 227, 7, 11, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (179, 'expedita', 'Quibusdam id et velit. Nihil saepe itaque laboriosam quaerat. Enim animi praesentium voluptas earum est rem.', 255, 7, 20, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (180, 'cupiditate', 'Quos corrupti vel omnis fuga fugit. Quia voluptas quam ex quidem sint iste debitis harum. Ut omnis fugit omnis expedita accusamus vero eveniet. Veritatis dolor minus mollitia vero adipisci qui fugit blanditiis.', 761, 2, 9, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (181, 'voluptas', 'Et eveniet odit dignissimos dicta optio cupiditate deserunt. Qui sit sed adipisci pariatur pariatur numquam nemo. Aut quo et quisquam sed et est amet laudantium. Corporis quod et magnam quibusdam nihil voluptates quia.', 479, 2, 28, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (182, 'laborum', 'Maxime modi laudantium et. Quam quia nam et aut nostrum. Officiis et eius natus labore provident dicta. Quas molestiae blanditiis qui.', 312, 4, 2, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (183, 'harum', 'Quia et quis harum ipsa vero nam. Aspernatur enim debitis excepturi doloribus placeat quia. Qui similique eos autem quia ad quam et.', 751, 9, 25, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (184, 'delectus', 'Optio totam qui eius eius. Vel doloremque assumenda sit ab non odit.', 360, 2, 2, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (185, 'non', 'Autem voluptates mollitia molestiae est ut corporis. Quo nemo ea et.', 939, 8, 19, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (186, 'expedita', 'Perspiciatis vitae est quasi quia omnis dolorum. Ex quibusdam qui rerum. Quidem aut asperiores consequatur officiis dolorem. Ipsa quis consequuntur recusandae et vel ut.', 118, 9, 5, '2020-02-21 06:06:20', '2020-02-21 06:06:20'), (187, 'ipsa', 'Ipsum reiciendis earum ut dolorem dolorum. Perferendis sapiente distinctio cum rerum et. Facere quas repellendus fugit. Dignissimos a et quia reiciendis.', 226, 2, 14, '2020-02-21 06:06:21', '2020-02-21 06:06:21'), (188, 'ab', 'Rerum facilis aut vitae. Dolores officiis reprehenderit accusamus. Est dignissimos assumenda dolores repellendus. Cupiditate quas et quia vel cum non.', 473, 0, 9, '2020-02-21 06:06:21', '2020-02-21 06:06:21'), (189, 'voluptas', 'Ut id ducimus nulla maiores iure corporis quaerat itaque. Quia error aut assumenda voluptatibus consequatur. Consequatur in ut ea aut.', 571, 4, 18, '2020-02-21 06:06:21', '2020-02-21 06:06:21'), (190, 'enim', 'Hic in sit recusandae et eum velit non. Ullam accusamus impedit quaerat aut. Nemo recusandae qui fugiat iusto dignissimos. Quibusdam voluptatem esse minus.', 966, 0, 16, '2020-02-21 06:06:21', '2020-02-21 06:06:21'), (191, 'molestiae', 'Recusandae assumenda facilis quos tenetur soluta modi quis est. Voluptatem eveniet itaque sint quasi vel non. Sed aut corrupti debitis aliquam repudiandae molestiae.', 703, 5, 6, '2020-02-21 06:06:21', '2020-02-21 06:06:21'), (192, 'iure', 'Quas amet est corporis alias ab minima cupiditate. Tenetur dicta esse nam doloribus accusamus. Ut sunt earum consequuntur excepturi quia iusto velit non.', 802, 1, 12, '2020-02-21 06:06:21', '2020-02-21 06:06:21'), (193, 'repudiandae', 'Repellat voluptatem molestiae magnam et in ipsum. Ab aut quidem eos architecto non quae non voluptatem. Quis voluptatem qui neque architecto natus ut tempora modi. Laborum est ut laboriosam quo in.', 544, 2, 25, '2020-02-21 06:06:21', '2020-02-21 06:06:21'), (194, 'consequatur', 'Laboriosam cum ipsum sed autem minus et voluptas. Odit nulla doloremque inventore similique iusto. Non quo dolorem aut impedit veritatis. Animi minus consequatur sint eum.', 729, 9, 10, '2020-02-21 06:06:21', '2020-02-21 06:06:21'), (195, 'officiis', 'Magnam et sint voluptatibus velit. Fugiat voluptas ab voluptatem vel distinctio dolor est deleniti. Perferendis aliquam eaque neque. Ipsum et occaecati nostrum eligendi ex nihil quia vel.', 745, 7, 8, '2020-02-21 06:06:21', '2020-02-21 06:06:21'), (196, 'et', 'Soluta debitis minima quos dicta blanditiis ut necessitatibus. Alias sed id qui quia reiciendis. Corrupti excepturi sed maiores dolor similique vel. Laborum suscipit corrupti mollitia reprehenderit quia aut impedit id.', 919, 6, 10, '2020-02-21 06:06:21', '2020-02-21 06:06:21'), (197, 'tempora', 'Voluptas iste atque doloribus rem. Rem qui iusto quo ipsa. Dignissimos vero hic qui omnis totam aut voluptatem. Ad illum expedita ad qui non officiis et.', 776, 5, 16, '2020-02-21 06:06:21', '2020-02-21 06:06:21'), (198, 'dolorum', 'Tempora voluptatum commodi dicta molestiae. Vitae ut velit officia praesentium. Repudiandae quam omnis est doloremque. Eum quod veniam vero voluptate delectus aut quia.', 387, 1, 16, '2020-02-21 06:06:21', '2020-02-21 06:06:21'), (199, 'sit', 'Id perferendis ut distinctio magnam est et. Id est repudiandae quos perferendis tenetur distinctio deserunt inventore. Velit at vero soluta itaque architecto. Deserunt pariatur recusandae fugiat sit rerum consequuntur.', 128, 0, 21, '2020-02-21 06:06:21', '2020-02-21 06:06:21'), (200, 'alias', 'Ipsum ea et blanditiis dolorem in. Nesciunt assumenda dicta veniam tenetur earum. Dolor ut qui omnis quas dolor qui blanditiis debitis. Accusantium cum quia reiciendis illum amet aperiam. Eaque id necessitatibus ad et saepe.', 251, 3, 22, '2020-02-21 06:06:21', '2020-02-21 06:06:21'); -- -------------------------------------------------------- -- -- Table structure for table `reviews` -- CREATE TABLE `reviews` ( `id` int(10) UNSIGNED NOT NULL, `product_id` int(10) UNSIGNED NOT NULL, `customer` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `review` text COLLATE utf8mb4_unicode_ci NOT NULL, `star` 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; -- -- Dumping data for table `reviews` -- INSERT INTO `reviews` (`id`, `product_id`, `customer`, `review`, `star`, `created_at`, `updated_at`) VALUES (1, 158, '<NAME>', 'Delectus deserunt quod veritatis nesciunt. Voluptate illum aut veniam doloribus dolores qui ad sapiente. Alias et nihil repellat dignissimos. Qui ea nisi iste earum est ut.', 3, '2020-02-21 06:06:22', '2020-02-21 06:06:22'), (2, 36, '<NAME>', 'Quaerat illo a ut sit. Quo qui molestiae sunt consequatur quia. Voluptate ea nostrum labore cumque.', 5, '2020-02-21 06:06:22', '2020-02-21 06:06:22'), (3, 50, '<NAME>', 'Nemo rerum atque rerum iste rerum. Nihil ut laudantium et modi sint. Quisquam eius earum consequatur error.', 1, '2020-02-21 06:06:22', '2020-02-21 06:06:22'), (4, 85, '<NAME> DDS', 'Quidem facere deleniti asperiores facere blanditiis aut. Et beatae odit sed eveniet consequatur. Ab deleniti rerum qui itaque ut deleniti itaque dolores. Eveniet unde unde ab ut dolor sint.', 0, '2020-02-21 06:06:22', '2020-02-21 06:06:22'), (5, 63, 'Dr. <NAME> III', 'Minima ratione libero debitis nulla. Fuga illo ut blanditiis voluptatibus earum odio doloremque libero. Consequuntur quas reiciendis repudiandae esse perferendis ducimus animi molestias.', 2, '2020-02-21 06:06:22', '2020-02-21 06:06:22'), (6, 194, '<NAME>', 'Neque vitae voluptatem iste necessitatibus non. Quia ea qui est modi facilis neque sed. Illo alias dolorem molestiae a nihil. Vitae amet quisquam qui.', 5, '2020-02-21 06:06:23', '2020-02-21 06:06:23'), (7, 133, '<NAME>', 'Numquam blanditiis quam alias dolor non possimus quis. Veniam reprehenderit omnis magni molestias provident culpa voluptatibus illum. Voluptas enim aut aspernatur. Quo voluptatum vel aut omnis perferendis qui. Cumque suscipit aut inventore fugit quia rerum at.', 4, '2020-02-21 06:06:23', '2020-02-21 06:06:23'), (8, 49, 'Mrs. <NAME>', 'Qui molestiae in pariatur corrupti. At iure harum quia dolores molestias rerum voluptas. Temporibus ut odit aut quidem autem alias corrupti quas. Ad natus necessitatibus id neque rerum eum expedita.', 4, '2020-02-21 06:06:23', '2020-02-21 06:06:23'), (9, 27, '<NAME>', 'Iusto quos aliquam molestiae. Eius error vero accusamus voluptatem eveniet modi illo. Reprehenderit sint et corporis quia asperiores consequatur laboriosam. Aut ipsam et qui amet sint et.', 2, '2020-02-21 06:06:23', '2020-02-21 06:06:23'), (10, 164, '<NAME> Jr.', 'Minima dolorem id modi facere ullam. Omnis nostrum earum nihil dolores voluptas exercitationem neque. Error et ab nostrum qui omnis dicta et.', 1, '2020-02-21 06:06:23', '2020-02-21 06:06:23'), (11, 103, '<NAME>', 'Sunt aut voluptas quae vitae dignissimos. Occaecati molestias repellat harum voluptatem quia. Nobis sed et pariatur ut ea.', 2, '2020-02-21 06:06:23', '2020-02-21 06:06:23'), (12, 75, '<NAME>', 'Nihil rerum mollitia sapiente saepe similique. Sint atque modi qui et soluta et. Quo consectetur voluptas minus dolorem nostrum voluptas possimus.', 3, '2020-02-21 06:06:23', '2020-02-21 06:06:23'), (13, 65, 'Prof. <NAME> II', 'Ea modi ut et cum optio odit error. Blanditiis rem voluptatem sint ipsum exercitationem sit eum. Aliquid odio corporis repellat aut.', 0, '2020-02-21 06:06:23', '2020-02-21 06:06:23'), (14, 118, 'Prof. <NAME> DDS', 'Commodi quibusdam non debitis delectus ipsum. Suscipit commodi molestiae labore quis. Est nam eum quia provident nulla.', 5, '2020-02-21 06:06:24', '2020-02-21 06:06:24'), (15, 96, 'Mrs. <NAME>', 'Cumque voluptas non sit. Quod explicabo deserunt aut consequatur. Dolor qui eos error aliquid.', 3, '2020-02-21 06:06:24', '2020-02-21 06:06:24'), (16, 176, '<NAME>', 'Repudiandae consequatur similique fugit reiciendis. Aperiam quo nihil aliquam dolorem. Eos est magni sint voluptate qui.', 1, '2020-02-21 06:06:24', '2020-02-21 06:06:24'), (17, 48, '<NAME> PhD', 'Reiciendis dolorem vel inventore accusantium reprehenderit. Quas corrupti eaque vero voluptatem. Cumque saepe autem ex minima quis.', 5, '2020-02-21 06:06:24', '2020-02-21 06:06:24'), (18, 8, '<NAME>', 'Nemo asperiores et laborum et ut qui. Ex explicabo recusandae voluptates. Ea totam repellat dolores repudiandae nihil veniam. Error dolor dolor assumenda facere labore doloremque dolorem pariatur.', 1, '2020-02-21 06:06:24', '2020-02-21 06:06:24'), (19, 26, '<NAME>', 'Expedita vitae deleniti amet eveniet. Aliquid nam repellat ut sint aut vitae doloribus dolorum. Voluptates sed laboriosam tenetur est.', 0, '2020-02-21 06:06:24', '2020-02-21 06:06:24'), (20, 55, '<NAME>', 'Reprehenderit eius quod eum aut facilis nostrum fugiat. At sed vel autem nihil aut laborum esse. Et aspernatur at quasi aut voluptatem vero culpa.', 2, '2020-02-21 06:06:24', '2020-02-21 06:06:24'), (21, 158, '<NAME>', 'Omnis dolorum illum doloribus. Alias rerum et sunt tempora unde placeat mollitia facere. Qui quia beatae magnam ut culpa amet et. Facilis libero est quo velit et est.', 0, '2020-02-21 06:06:24', '2020-02-21 06:06:24'), (22, 196, '<NAME>', 'Amet ea minus eligendi. Qui excepturi a rerum. Tempore placeat expedita error ut illo omnis.', 1, '2020-02-21 06:06:24', '2020-02-21 06:06:24'), (23, 37, 'Dr. <NAME> Jr.', 'Dolores id corporis optio reprehenderit et nemo fuga. Quia et delectus sed eos perspiciatis corporis accusantium. Provident voluptatibus enim ducimus nobis voluptatem consequatur.', 4, '2020-02-21 06:06:24', '2020-02-21 06:06:24'), (24, 182, '<NAME>', 'Culpa expedita accusantium vel tempore eveniet quas. Est quo sed et temporibus harum sed. Placeat architecto ut voluptates eos sequi voluptatum ab. Inventore vel nemo ea consequatur laboriosam.', 2, '2020-02-21 06:06:24', '2020-02-21 06:06:24'), (25, 144, '<NAME>', 'Nemo nulla occaecati sed dolores debitis. Dolorum sed aperiam porro at. Ipsam nisi architecto asperiores eos beatae aspernatur adipisci. Eaque temporibus ipsum consectetur officiis voluptatem alias esse.', 5, '2020-02-21 06:06:24', '2020-02-21 06:06:24'), (26, 116, 'Mr. <NAME> III', 'Voluptatem eaque est non nihil. Magnam possimus quae eos consequatur rerum consequatur. Quibusdam esse asperiores officia eum. Reprehenderit sed suscipit vitae consectetur.', 4, '2020-02-21 06:06:24', '2020-02-21 06:06:24'), (27, 8, '<NAME>', 'Quia blanditiis est qui enim iure totam laudantium. Ex tempore tempora et facilis sit est voluptas. Nobis iste adipisci omnis porro ea vero. Quaerat sit qui ipsam eum praesentium vel vel. Autem similique voluptatem officia repellendus aliquid omnis.', 1, '2020-02-21 06:06:25', '2020-02-21 06:06:25'), (28, 199, '<NAME> III', 'Incidunt maxime repellendus ut. Eos dolores et nisi mollitia tenetur. Illum qui et officia cum aliquam non exercitationem.', 2, '2020-02-21 06:06:25', '2020-02-21 06:06:25'), (29, 49, '<NAME>', 'Ab exercitationem ad ut. Ducimus aliquid ut dolorem. Harum eveniet omnis quos officia et. Cum dolor qui fuga et voluptatibus porro dolores.', 1, '2020-02-21 06:06:25', '2020-02-21 06:06:25'), (30, 104, '<NAME> DVM', 'Laboriosam accusamus autem minima perferendis dignissimos ex. Sed assumenda in consequatur. Blanditiis tempora est eos accusamus deserunt earum. Nesciunt aut neque omnis.', 3, '2020-02-21 06:06:25', '2020-02-21 06:06:25'), (31, 149, '<NAME>', 'Repellendus et architecto rerum excepturi aut commodi qui. Dolor quaerat corporis eaque quas eveniet similique fugiat ad. Quasi iure expedita nesciunt esse. Voluptates quaerat mollitia fugit.', 1, '2020-02-21 06:06:25', '2020-02-21 06:06:25'), (32, 59, 'Mr. <NAME> PhD', 'Sapiente qui possimus corrupti sed alias. Incidunt ad dignissimos occaecati omnis beatae. Eum libero illum molestiae quibusdam quia voluptatum error.', 0, '2020-02-21 06:06:25', '2020-02-21 06:06:25'), (33, 185, '<NAME>', 'Ut quisquam enim facilis rerum saepe voluptas voluptas debitis. Nemo inventore dolore ex sequi perspiciatis. Quod voluptas inventore sint. Quo ipsa qui dicta occaecati.', 2, '2020-02-21 06:06:25', '2020-02-21 06:06:25'), (34, 48, '<NAME>', 'Sit distinctio ut voluptatem voluptatem aperiam itaque. Sequi culpa dolorem delectus. Distinctio est odio omnis dolores et aut ducimus. Illum ea ratione doloribus eos dolores. Nostrum voluptatibus aut molestiae eum consectetur est non.', 2, '2020-02-21 06:06:26', '2020-02-21 06:06:26'), (35, 185, '<NAME>', 'In expedita et rerum ut. Dignissimos soluta consequuntur sunt quae. Sequi culpa assumenda et assumenda. Quia et similique ut in beatae.', 5, '2020-02-21 06:06:26', '2020-02-21 06:06:26'), (36, 163, '<NAME>', 'Sit ut ipsum laudantium totam omnis fuga. In molestiae qui ipsam in voluptatem. Et molestiae quasi accusamus fuga eum quasi nihil aliquid.', 1, '2020-02-21 06:06:26', '2020-02-21 06:06:26'), (37, 89, 'Prof. <NAME> IV', 'Eum unde commodi possimus voluptatem quia consequatur et. Praesentium aut rerum dolore. Magnam quae et quam molestiae quia sed. Assumenda qui consectetur qui laudantium distinctio totam qui aut.', 5, '2020-02-21 06:06:26', '2020-02-21 06:06:26'), (38, 129, '<NAME>', 'Est recusandae cumque eos nihil. Illum voluptates et minus. Ut modi facilis corporis officiis.', 5, '2020-02-21 06:06:26', '2020-02-21 06:06:26'), (39, 103, '<NAME> IV', 'Aliquid vitae exercitationem libero adipisci tenetur. Iusto numquam illum suscipit voluptatum accusamus quis. Rerum id tenetur debitis dolorem dolor praesentium. Minima nesciunt rerum consectetur fuga eum.', 4, '2020-02-21 06:06:26', '2020-02-21 06:06:26'), (40, 150, 'Mr. <NAME>', 'Perspiciatis dolorem magnam qui ea voluptatem corrupti ab rem. Aut reiciendis consectetur odio saepe vel rem ut. Consequatur eos culpa quia est impedit voluptas facilis.', 3, '2020-02-21 06:06:26', '2020-02-21 06:06:26'), (41, 124, '<NAME>', 'Natus reprehenderit dolorem illo deleniti debitis. Accusantium quam dolores alias fuga consequatur sed. Sunt odio earum reiciendis rem facilis fuga nesciunt. Tenetur quae ex adipisci aspernatur.', 4, '2020-02-21 06:06:26', '2020-02-21 06:06:26'), (42, 52, 'Prof. <NAME> DDS', 'Consectetur a earum ad quibusdam voluptas distinctio. Rerum eveniet velit est mollitia. Eos minima voluptatem modi tempora quibusdam. Eligendi culpa dolores rerum dicta sed sed a.', 5, '2020-02-21 06:06:26', '2020-02-21 06:06:26'), (43, 136, 'Prof. <NAME>', 'Voluptate consequatur vero accusamus pariatur. Non et id dolorem exercitationem iure.', 3, '2020-02-21 06:06:26', '2020-02-21 06:06:26'), (44, 77, '<NAME>', 'Ea eos culpa rerum incidunt et ea. Porro dolor incidunt libero consequatur unde qui. Deleniti asperiores vitae iure temporibus qui est. Quas enim atque non provident dignissimos fuga.', 3, '2020-02-21 06:06:26', '2020-02-21 06:06:26'), (45, 70, 'Prof. <NAME>', 'Nobis et rem placeat veniam facere aut. Ut ut sed rem expedita esse neque. Hic quibusdam illum et blanditiis et perspiciatis. Beatae eos accusamus reiciendis corporis dolorem magnam non ullam.', 1, '2020-02-21 06:06:26', '2020-02-21 06:06:26'), (46, 194, '<NAME>', 'Aperiam doloremque odio quidem ipsum. Omnis iusto odit et totam expedita et ad. Enim aspernatur sapiente eaque vitae et officiis.', 3, '2020-02-21 06:06:27', '2020-02-21 06:06:27'), (47, 186, '<NAME>', 'Repudiandae quod qui quasi ut quam sit. Voluptas et excepturi ad eaque inventore ut provident. Nisi eius voluptates id tenetur quia doloribus nobis. Est et quia omnis sunt.', 5, '2020-02-21 06:06:27', '2020-02-21 06:06:27'), (48, 169, 'Dr. <NAME>', 'Nihil assumenda sit asperiores id. Ut iure corporis odit aliquid quia optio eos praesentium. Facilis et nihil neque at cumque.', 3, '2020-02-21 06:06:27', '2020-02-21 06:06:27'), (49, 80, '<NAME>', 'Tempora sint quisquam atque aliquam sint maxime repudiandae. Mollitia consequatur odit est exercitationem et. Saepe dolores eius tenetur et enim veniam. Deleniti voluptatem eum sit fugiat ad saepe.', 0, '2020-02-21 06:06:27', '2020-02-21 06:06:27'), (50, 173, '<NAME>', 'Quisquam ut culpa et optio est sapiente est. Eligendi alias nam magnam vero provident sequi ratione quia. Voluptas debitis qui reiciendis molestias. Eveniet ducimus ex mollitia quos.', 0, '2020-02-21 06:06:28', '2020-02-21 06:06:28'), (51, 129, '<NAME>', 'Qui voluptatem omnis vero ut in rerum. Est quia atque quidem molestias. Sequi nihil et earum voluptatem neque ratione. Est suscipit dicta eveniet molestiae et veniam.', 5, '2020-02-21 06:06:28', '2020-02-21 06:06:28'), (52, 148, '<NAME> MD', 'Ab praesentium eius voluptas vero. Quam dignissimos itaque amet asperiores. Incidunt at aut reiciendis nisi et. Eaque error enim dolorem laborum tenetur qui. Culpa deleniti recusandae in delectus dicta accusamus.', 0, '2020-02-21 06:06:28', '2020-02-21 06:06:28'), (53, 187, '<NAME> I', 'Voluptas unde quos possimus illum animi aut. Qui placeat et sed. Odio iure quidem tenetur quae. Velit reprehenderit et sunt fugiat incidunt. Nam quaerat maiores praesentium eos beatae.', 0, '2020-02-21 06:06:28', '2020-02-21 06:06:28'), (54, 2, '<NAME>', 'Dolorem sunt et deserunt neque. Vero ut omnis earum quam consequatur at. Dolores omnis quod similique autem iusto cum. Eaque aut eos ut maiores et minima.', 0, '2020-02-21 06:06:28', '2020-02-21 06:06:28'), (55, 21, '<NAME>', 'Eveniet quaerat accusamus nostrum quidem quibusdam saepe. Ut culpa tempora rerum aut quibusdam earum consequatur. Voluptatum nihil similique eum et soluta natus.', 2, '2020-02-21 06:06:28', '2020-02-21 06:06:28'), (56, 65, 'Ms. <NAME>', 'Accusantium est rerum et rem qui. Dolores ut quia animi qui necessitatibus modi ducimus. Sequi voluptatem distinctio est consectetur quas et.', 4, '2020-02-21 06:06:28', '2020-02-21 06:06:28'), (57, 25, 'Dr. <NAME>', 'Beatae est ut amet. Ipsa vero odio vitae quia. Sunt incidunt ipsam tenetur modi incidunt facere.', 0, '2020-02-21 06:06:28', '2020-02-21 06:06:28'), (58, 47, '<NAME>', 'Adipisci ex quo unde modi molestias recusandae est ipsa. Nesciunt quo minima id ut non. Qui quaerat velit molestiae vel tempore optio aut ipsa.', 5, '2020-02-21 06:06:28', '2020-02-21 06:06:28'), (59, 70, 'Dr. <NAME> MD', 'Et eaque aut ipsum ut. Error eum odio neque asperiores tempora consequatur. Qui ut ut molestias sed. Voluptatem consequatur cum laboriosam officiis dolorem aliquam.', 3, '2020-02-21 06:06:29', '2020-02-21 06:06:29'), (60, 163, 'Dr. <NAME> DVM', 'Corrupti optio nisi quod. Nulla iste rem nulla optio minima ut quis. Tempora voluptas quos ut iusto non. Officia eligendi eum et quia omnis.', 3, '2020-02-21 06:06:29', '2020-02-21 06:06:29'), (61, 16, '<NAME>', 'Qui eligendi accusantium nobis recusandae id sint vel. Recusandae eligendi nulla modi quo maxime velit sapiente. Quidem esse ea nulla molestiae quidem debitis reiciendis. Debitis error deleniti molestiae tempora.', 2, '2020-02-21 06:06:29', '2020-02-21 06:06:29'), (62, 37, '<NAME>', 'Voluptatem in natus fugiat aut explicabo modi quia. Omnis repellendus et vel. Eaque sunt sit voluptatem omnis molestiae.', 3, '2020-02-21 06:06:29', '2020-02-21 06:06:29'), (63, 41, '<NAME>', 'Delectus quia et fugiat nulla. Ut molestias impedit sed quia est consectetur cum. Vel officiis quos atque aperiam aspernatur. Non occaecati aliquid aut.', 5, '2020-02-21 06:06:29', '2020-02-21 06:06:29'), (64, 139, '<NAME>', 'Eos magnam nobis porro. Velit nihil officiis ut distinctio est molestiae beatae et. Sint dicta sed exercitationem voluptatem eius reprehenderit. Dolore voluptatibus corrupti repellendus.', 1, '2020-02-21 06:06:30', '2020-02-21 06:06:30'), (65, 106, '<NAME>', 'Non eum ducimus voluptas rerum. Impedit quia omnis in doloribus. Autem qui vel dolor dolorem cupiditate perferendis natus dicta.', 2, '2020-02-21 06:06:30', '2020-02-21 06:06:30'), (66, 126, '<NAME>', 'Nisi facere id molestiae suscipit quae. Repellendus illum commodi dolor eum dolorem blanditiis. Quidem id est et tempora voluptatibus id labore est.', 1, '2020-02-21 06:06:30', '2020-02-21 06:06:30'), (67, 91, 'Dr. <NAME>', 'Totam reprehenderit quam tempore blanditiis sed minima. Eveniet voluptas dolorem officia voluptatem voluptate sit.', 0, '2020-02-21 06:06:30', '2020-02-21 06:06:30'), (68, 181, '<NAME>', 'Enim accusamus nulla occaecati. Atque perspiciatis omnis optio corrupti et nihil hic autem. Aut id ipsam exercitationem illum est harum fuga quia.', 5, '2020-02-21 06:06:30', '2020-02-21 06:06:30'), (69, 195, 'Ms. <NAME>', 'Et aut molestiae architecto aliquid debitis. Fugiat esse et in rerum. Hic totam sunt ut fugit pariatur iure soluta quisquam. Voluptas consectetur nam quia. Facilis ratione nesciunt similique eligendi.', 3, '2020-02-21 06:06:30', '2020-02-21 06:06:30'), (70, 105, '<NAME>', 'Eligendi labore voluptatem est. Qui veritatis reprehenderit quos. Quasi magni aliquam ut ex. Non iure itaque veritatis id totam ut voluptates.', 5, '2020-02-21 06:06:30', '2020-02-21 06:06:30'), (71, 155, 'Prof. <NAME> III', 'Explicabo sed quisquam consequatur eveniet nostrum. Aut corrupti voluptatem error dolorum sit explicabo beatae. Quo in dignissimos quasi reprehenderit.', 1, '2020-02-21 06:06:30', '2020-02-21 06:06:30'), (72, 37, '<NAME>', 'Provident officia dolorem explicabo voluptatem vitae voluptatem aliquam distinctio. Soluta aut alias sed tenetur ut. Corrupti dolorem veritatis hic quae vero est incidunt. Enim exercitationem eum ab ut.', 4, '2020-02-21 06:06:31', '2020-02-21 06:06:31'), (73, 192, '<NAME> III', 'Repellendus incidunt quis debitis. Illum beatae possimus id enim iste. Sit fugit eos et excepturi sint. Rerum non aut ex saepe ea.', 1, '2020-02-21 06:06:31', '2020-02-21 06:06:31'), (74, 170, '<NAME> MD', 'Dignissimos autem quis vero cupiditate corrupti. Dolorem veniam voluptatem sunt repellendus expedita quibusdam perferendis. Voluptatem eveniet sequi enim inventore laborum eos.', 4, '2020-02-21 06:06:31', '2020-02-21 06:06:31'), (75, 98, '<NAME>', 'Eius laboriosam fugit modi repellat. Rerum beatae saepe consequuntur quas hic.', 1, '2020-02-21 06:06:31', '2020-02-21 06:06:31'), (76, 8, '<NAME>', 'Possimus quod earum blanditiis consectetur provident. Ducimus ipsa eum laboriosam beatae incidunt. Rerum veritatis et et dolor.', 5, '2020-02-21 06:06:31', '2020-02-21 06:06:31'), (77, 142, '<NAME> III', 'Rerum excepturi officia laudantium provident exercitationem. Aperiam temporibus temporibus alias illum voluptas voluptates est. Voluptatem aut in ut totam.', 1, '2020-02-21 06:06:31', '2020-02-21 06:06:31'), (78, 3, '<NAME>', 'Odio id facere molestias aut non. Quia voluptatem ad aut quia modi at voluptatibus aut. Recusandae minus dolor quia quos rerum.', 0, '2020-02-21 06:06:31', '2020-02-21 06:06:31'), (79, 167, 'Prof. <NAME> DVM', 'Quia sequi suscipit reprehenderit qui. Alias ut quam fugiat rerum ab delectus perspiciatis tenetur. Reiciendis modi animi amet ea. Aspernatur ut libero quo enim.', 5, '2020-02-21 06:06:31', '2020-02-21 06:06:31'), (80, 60, '<NAME> V', 'Necessitatibus nihil voluptatem ex explicabo ut corporis neque fugit. Quia ut doloremque illo dolor debitis libero. Enim ratione eveniet quam. Laudantium vero labore aspernatur sit quae eum quaerat. Eos quae qui dolorum laborum rerum velit.', 4, '2020-02-21 06:06:32', '2020-02-21 06:06:32'), (81, 66, '<NAME> III', 'Odit in non inventore architecto molestias nisi velit tempore. Harum accusantium nihil suscipit qui. Optio unde non quia corrupti magnam. Magnam omnis hic recusandae blanditiis.', 0, '2020-02-21 06:06:32', '2020-02-21 06:06:32'), (82, 185, 'Sime<NAME>', 'Tempora temporibus et quam itaque quia. Ut quia harum eos ut. Enim quae voluptatem velit illum. Soluta ut voluptas nobis. Suscipit velit sunt nostrum mollitia assumenda.', 4, '2020-02-21 06:06:32', '2020-02-21 06:06:32'), (83, 87, '<NAME>', 'Veritatis et reiciendis blanditiis odit aut repellat. Dicta corporis totam repellendus a quae aliquam voluptatem. Perferendis magnam est praesentium incidunt ut veritatis reprehenderit. Alias beatae natus rerum molestiae ducimus necessitatibus sunt.', 1, '2020-02-21 06:06:32', '2020-02-21 06:06:32'), (84, 158, '<NAME>', 'Fuga qui corporis quod voluptas. Et occaecati doloribus expedita est. Dicta aperiam officiis esse et aperiam odit alias. Quidem similique error et eaque consequatur.', 1, '2020-02-21 06:06:32', '2020-02-21 06:06:32'), (85, 133, '<NAME>', 'Sit tenetur non est ex deserunt rerum molestiae. Consequatur inventore aut expedita excepturi veritatis reiciendis sapiente. Illum iusto modi perferendis et.', 1, '2020-02-21 06:06:32', '2020-02-21 06:06:32'), (86, 140, '<NAME> IV', 'Sed voluptates expedita doloribus numquam nesciunt amet dignissimos. Voluptatibus laudantium dolores sunt ullam facilis autem. Esse neque fugiat modi sunt aut. Dolor quae molestiae similique non consectetur veniam sit.', 5, '2020-02-21 06:06:32', '2020-02-21 06:06:32'), (87, 7, 'Miss <NAME>', 'Architecto sint consequatur laboriosam amet possimus. In enim vitae quasi quo. Delectus nam et nobis aliquid aut eum non tempora.', 4, '2020-02-21 06:06:33', '2020-02-21 06:06:33'), (88, 159, '<NAME>', 'Et autem architecto beatae ea doloribus sapiente. Temporibus sed doloribus nobis deleniti delectus quas voluptas. Ducimus magni architecto et rerum aut est aut.', 5, '2020-02-21 06:06:33', '2020-02-21 06:06:33'), (89, 187, 'Prof. <NAME>', 'Modi aut dolorem non quidem. Praesentium fugiat quis id aut ut id harum. Et sunt aut possimus odio omnis aut qui.', 0, '2020-02-21 06:06:33', '2020-02-21 06:06:33'), (90, 137, '<NAME> Sr.', 'Laboriosam perspiciatis eligendi est et et. In optio aliquid explicabo rerum eius et. Soluta praesentium sed a molestiae facere nihil voluptas. Culpa quibusdam rerum eveniet voluptate inventore. Dolore quo voluptatem veritatis autem natus itaque.', 2, '2020-02-21 06:06:33', '2020-02-21 06:06:33'), (91, 193, '<NAME>', 'Doloremque numquam nihil porro non eum labore soluta. Perspiciatis magnam distinctio sunt officia dolore voluptatem dolorem. Ratione beatae et sint est maiores. Porro non perferendis similique facere a saepe.', 1, '2020-02-21 06:06:33', '2020-02-21 06:06:33'), (92, 16, 'Mr. <NAME>', 'Blanditiis alias nihil est unde architecto. Earum nisi ipsa et perspiciatis voluptatem dolor. Et quidem in consequatur. Sunt alias minus quisquam.', 2, '2020-02-21 06:06:33', '2020-02-21 06:06:33'), (93, 190, '<NAME>', 'Sint vel et quibusdam eaque iure adipisci amet. Natus possimus quia impedit vel molestias. Et alias quae dicta fugiat accusantium maxime laborum nihil.', 5, '2020-02-21 06:06:33', '2020-02-21 06:06:33'), (94, 4, '<NAME> DVM', 'Libero nesciunt neque laborum velit cumque. Tempora id quis perspiciatis ea et. Ut blanditiis et ex consequuntur fugit repellendus. Eos voluptas quaerat ut reiciendis.', 3, '2020-02-21 06:06:33', '2020-02-21 06:06:33'), (95, 147, 'Ms. <NAME>', 'Maiores atque provident sapiente aspernatur voluptas accusamus harum asperiores. Ut qui doloremque qui ut. Qui earum culpa quo repudiandae. Voluptatem ut maiores quia labore occaecati. Illo fugit qui earum magnam dolores culpa.', 5, '2020-02-21 06:06:33', '2020-02-21 06:06:33'), (96, 151, '<NAME>', 'Assumenda vel ut sunt. Itaque laboriosam sequi voluptatum ab libero et voluptas.', 1, '2020-02-21 06:06:33', '2020-02-21 06:06:33'), (97, 126, 'Dr. <NAME>', 'Dolor voluptatem est in in repellendus ut. Molestiae eaque aperiam ut voluptatem est amet. Quam autem nemo dolorem consequuntur deserunt accusamus eos.', 1, '2020-02-21 06:06:34', '2020-02-21 06:06:34'), (98, 197, '<NAME>', 'Aut a voluptatibus et quis et. Dolore debitis reiciendis cupiditate earum exercitationem veniam quos. Debitis nihil itaque at ut. Nobis vel ut quod adipisci ut.', 0, '2020-02-21 06:06:34', '2020-02-21 06:06:34'), (99, 12, '<NAME>', 'Beatae natus et doloremque. Impedit excepturi consequatur dolores. Saepe corrupti ut autem ea mollitia. Aut et vel soluta rerum rerum ex accusantium. Unde omnis quis doloribus corrupti impedit.', 4, '2020-02-21 06:06:35', '2020-02-21 06:06:35'), (100, 8, '<NAME> DVM', 'Vero fugit est quasi dolorem qui et itaque. Animi impedit hic rerum cumque. Earum ducimus quibusdam dolorem omnis vel at minima temporibus. Sint architecto recusandae possimus quas sequi harum. Voluptas id ducimus iusto laborum.', 1, '2020-02-21 06:06:35', '2020-02-21 06:06:35'), (101, 111, '<NAME> MD', 'Sequi est nisi illo culpa. Qui dolor asperiores voluptas quia id. Dolores dolorum perspiciatis odit fuga ut illum. Unde doloremque reprehenderit assumenda qui eos eum rerum.', 0, '2020-02-21 06:06:35', '2020-02-21 06:06:35'), (102, 160, '<NAME>', 'Beatae quo aspernatur temporibus odio sunt enim placeat. Optio veritatis ratione quisquam ipsa.', 5, '2020-02-21 06:06:35', '2020-02-21 06:06:35'), (103, 11, '<NAME> DVM', 'Quis aut ut non minus ut ut est. Unde nihil veritatis rem necessitatibus in minima ut. Labore debitis illum quisquam aut et cupiditate natus.', 1, '2020-02-21 06:06:35', '2020-02-21 06:06:35'), (104, 61, 'Ms. <NAME> PhD', 'Maxime debitis laborum dolor. Dolor ipsum facere qui et magni et sed. Quis maiores ipsum nesciunt tempore expedita saepe. Veniam nihil tempora numquam et. Excepturi culpa voluptas voluptatem tempora quo nam.', 3, '2020-02-21 06:06:35', '2020-02-21 06:06:35'), (105, 20, '<NAME>', 'Est minima voluptatem doloribus iure aut et qui. Assumenda et nihil officia natus in labore. Iste deserunt consequuntur dolor aliquid quos quo possimus ut.', 1, '2020-02-21 06:06:36', '2020-02-21 06:06:36'), (106, 34, '<NAME>', 'Qui maxime enim tempora ut. Rerum sit quibusdam et nam qui non quam repellendus. Explicabo doloremque ut enim sequi ex quo alias sit. Itaque et quasi ipsum quam deleniti asperiores.', 5, '2020-02-21 06:06:36', '2020-02-21 06:06:36'), (107, 20, 'Dr. <NAME>', 'Et rerum ut odit ipsam exercitationem dolorum minus. Numquam incidunt corrupti dolores repudiandae. Harum fuga enim voluptatem eos eos repudiandae incidunt. Quod ut quis quia illo.', 1, '2020-02-21 06:06:36', '2020-02-21 06:06:36'), (108, 5, '<NAME>', 'Dolores sed qui dicta explicabo officia deserunt dicta. Voluptas id omnis nisi officiis aut dicta odit. Alias aut omnis distinctio.', 3, '2020-02-21 06:06:36', '2020-02-21 06:06:36'), (109, 12, 'Prof. <NAME>', 'Aut rerum adipisci quisquam sed officia porro dolor. Reprehenderit aspernatur commodi blanditiis optio. Iure est nisi omnis tempora voluptas delectus dolorem.', 2, '2020-02-21 06:06:36', '2020-02-21 06:06:36'), (110, 91, '<NAME>', 'Natus perspiciatis aperiam voluptatum et praesentium eius fuga. Sint aspernatur et quaerat veritatis ea quos. Excepturi quod id voluptatum iste laboriosam sunt ullam aliquam. Provident qui quia velit non sed similique dolore ab.', 5, '2020-02-21 06:06:37', '2020-02-21 06:06:37'), (111, 61, 'Mr. <NAME> IV', 'Nobis facilis cum sequi voluptatem. Ut et nostrum delectus consectetur nemo ullam. Ab qui ut possimus odio quam nihil.', 3, '2020-02-21 06:06:37', '2020-02-21 06:06:37'), (112, 167, '<NAME>', 'Nostrum sequi modi non corporis vel. Fuga numquam non explicabo sit. Illo facere et eveniet dolores.', 5, '2020-02-21 06:06:37', '2020-02-21 06:06:37'), (113, 135, '<NAME> Jr.', 'Voluptas qui minima dolores eos vitae asperiores a. Sunt iusto sed autem quia beatae. Occaecati in amet voluptatem omnis et quis aut. Et mollitia eius quidem omnis dolores necessitatibus debitis.', 0, '2020-02-21 06:06:37', '2020-02-21 06:06:37'), (114, 189, '<NAME>', 'Aut dignissimos numquam et et. Voluptas dignissimos accusamus at qui id ratione consequatur. Et voluptas blanditiis quia perferendis.', 0, '2020-02-21 06:06:37', '2020-02-21 06:06:37'), (115, 197, '<NAME> II', 'Minus odio aliquam ut molestiae expedita veniam. Sed delectus nisi saepe asperiores inventore qui. Modi fugiat laborum molestias quo iste similique voluptas. Ad quae quia quis officiis sit.', 2, '2020-02-21 06:06:37', '2020-02-21 06:06:37'), (116, 122, '<NAME>', 'Blanditiis eos reprehenderit voluptatum sunt sapiente dolores magni commodi. Repellendus nulla quod non quibusdam. Eligendi delectus unde voluptates nihil repudiandae eligendi repudiandae. Soluta et aut voluptatem a.', 4, '2020-02-21 06:06:37', '2020-02-21 06:06:37'), (117, 152, '<NAME>', 'Ea reprehenderit ratione quia cupiditate odit autem omnis. Tempora atque non omnis iure aut id. Debitis ea nihil id omnis et odio. Quod odio odit aliquam.', 2, '2020-02-21 06:06:38', '2020-02-21 06:06:38'), (118, 101, 'Mr. <NAME> Sr.', 'Sunt tempore qui consequuntur et perferendis iusto amet. Saepe dignissimos minima iste totam. Dolor labore qui fugit cumque velit et.', 5, '2020-02-21 06:06:38', '2020-02-21 06:06:38'), (119, 102, 'Mrs. <NAME>', 'Quisquam est eveniet in ut unde qui. Dolorem consequuntur voluptas maxime quidem. Et deleniti eligendi porro aut explicabo omnis. Dolorem non quia veritatis ratione. Iusto est rerum sit ut quia.', 5, '2020-02-21 06:06:38', '2020-02-21 06:06:38'), (120, 163, 'Prof. <NAME>', 'Repellat beatae incidunt nam quis. Ut tenetur quas aut vel ipsum cum nisi laboriosam.', 3, '2020-02-21 06:06:38', '2020-02-21 06:06:38'), (121, 152, 'Miss <NAME>', 'Necessitatibus nihil molestiae ipsum mollitia. Rerum est atque quas tenetur dolorum quis iusto omnis. Unde quam corrupti ut saepe. Modi aliquam neque quaerat vitae velit rerum possimus.', 1, '2020-02-21 06:06:38', '2020-02-21 06:06:38'), (122, 69, '<NAME>', 'Et molestias quidem voluptatem nostrum harum. Sapiente dolorem est neque. Fuga et recusandae quia alias quibusdam.', 3, '2020-02-21 06:06:38', '2020-02-21 06:06:38'), (123, 78, '<NAME>', 'Impedit eos explicabo est eos. Libero dolorem ipsum dicta ea. Ipsa optio repellendus cum voluptas hic voluptas. Quae dignissimos ut aspernatur vel.', 4, '2020-02-21 06:06:38', '2020-02-21 06:06:38'), (124, 52, '<NAME>', 'At tempora qui consequuntur asperiores id omnis quas. Sequi at qui deleniti distinctio. Fugiat voluptatem quae optio velit est.', 3, '2020-02-21 06:06:39', '2020-02-21 06:06:39'), (125, 29, '<NAME>', 'Deserunt non quis et voluptates esse ratione. Tenetur id porro mollitia cumque amet atque in facere. Voluptas omnis architecto rerum alias voluptatibus a.', 3, '2020-02-21 06:06:39', '2020-02-21 06:06:39'), (126, 147, 'Dr. <NAME>', 'Recusandae qui nostrum fuga deleniti quia minima. Omnis voluptas aperiam delectus qui dolor velit. Consequatur quaerat maiores quibusdam consequatur voluptatum quia asperiores. Eveniet dolor voluptatibus qui et laboriosam ipsam.', 2, '2020-02-21 06:06:39', '2020-02-21 06:06:39'), (127, 64, '<NAME>', 'Voluptatem et et natus et nesciunt dicta. Et minima ipsum eaque aspernatur doloribus. Fuga aut sed voluptatum necessitatibus labore. Necessitatibus est officia officiis deserunt non voluptatem et temporibus.', 3, '2020-02-21 06:06:39', '2020-02-21 06:06:39'), (128, 15, '<NAME> Jr.', 'Corrupti et necessitatibus cumque quae sed. Dolore animi exercitationem repudiandae rerum soluta reprehenderit accusantium. Impedit facere rerum vel voluptatibus maxime nihil asperiores.', 2, '2020-02-21 06:06:40', '2020-02-21 06:06:40'), (129, 93, 'Mrs. <NAME> DDS', 'Rerum voluptate assumenda iure. Quia sequi sint doloremque sapiente voluptates. Minima aut voluptatem nam delectus aliquid consequatur enim. Autem quia quia mollitia dolorem id.', 1, '2020-02-21 06:06:40', '2020-02-21 06:06:40'), (130, 20, '<NAME>', 'Voluptas quia asperiores neque velit non aliquid veniam. Officia atque dolorum voluptatem dolor quasi eum debitis tenetur. Ut in maiores cupiditate labore nulla et aperiam dicta.', 1, '2020-02-21 06:06:41', '2020-02-21 06:06:41'), (131, 8, '<NAME>', 'Officiis deserunt beatae numquam amet explicabo nulla sed voluptatem. Quidem libero sit est neque laborum. Qui consectetur saepe voluptatem quo ullam rerum ullam esse. Inventore ipsam quo eum enim.', 2, '2020-02-21 06:06:42', '2020-02-21 06:06:42'), (132, 44, '<NAME>', 'Incidunt inventore aut accusantium cum unde. Animi eos magni optio doloremque. Quia nemo dolore numquam nobis est explicabo. Hic sed dolor suscipit voluptate nobis ut repudiandae.', 4, '2020-02-21 06:06:42', '2020-02-21 06:06:42'), (133, 144, 'Prof. <NAME>', 'Deleniti temporibus necessitatibus ipsa sit tempore. Et illum nesciunt dolorem. Non dolores iste facilis tenetur fugit.', 3, '2020-02-21 06:06:42', '2020-02-21 06:06:42'), (134, 19, '<NAME> II', 'Deserunt aliquam aut animi autem recusandae eveniet. Dolorem temporibus soluta enim aperiam impedit nam. Amet assumenda quasi eos blanditiis incidunt magnam voluptatem. Similique nisi nihil ea. Inventore aut aut temporibus velit autem omnis.', 4, '2020-02-21 06:06:42', '2020-02-21 06:06:42'), (135, 184, '<NAME>', 'Labore mollitia voluptate ut molestias et est quaerat. Voluptate commodi esse in alias. Beatae nihil sit porro sed. Sequi inventore qui eos qui magni eos ex.', 5, '2020-02-21 06:06:42', '2020-02-21 06:06:42'), (136, 54, '<NAME>', 'Nisi distinctio unde sint sed quia id autem. Omnis veniam distinctio voluptatem quasi aut explicabo. Cum exercitationem magnam quia sunt cum excepturi qui quod.', 5, '2020-02-21 06:06:42', '2020-02-21 06:06:42'), (137, 152, '<NAME>', 'Consectetur sunt consectetur quod itaque dicta et molestiae dolores. Dolore voluptatibus rerum in qui eius voluptas. Laudantium sint rerum dolor voluptas.', 4, '2020-02-21 06:06:42', '2020-02-21 06:06:42'), (138, 64, '<NAME>', 'In quia tempore in porro pariatur quisquam similique. Enim repellendus libero sunt architecto nihil. Officiis est quia omnis quae.', 5, '2020-02-21 06:06:42', '2020-02-21 06:06:42'), (139, 74, 'Miss <NAME>', 'Possimus sit dolorum est magnam. Rem quo mollitia saepe non explicabo enim molestias sint. Cum dolor non rerum enim numquam.', 1, '2020-02-21 06:06:42', '2020-02-21 06:06:42'), (140, 121, '<NAME>', 'Est nemo eos nam. Maxime consequuntur non tenetur non et autem. Sed ex sit at sint quis ut. Mollitia sit id omnis illum fugit. Aspernatur id voluptatem aut.', 4, '2020-02-21 06:06:42', '2020-02-21 06:06:42'), (141, 64, 'Mr. <NAME>', 'Porro dolor quam laudantium doloribus. Voluptates fugit et et soluta ipsa vero qui maxime. Eveniet dolorum alias sed aspernatur rerum officiis.', 5, '2020-02-21 06:06:42', '2020-02-21 06:06:42'), (142, 60, '<NAME>', 'Vel et voluptatum perspiciatis distinctio sequi. Rem earum occaecati suscipit libero et. Veritatis veniam quia quod temporibus iure est omnis.', 0, '2020-02-21 06:06:42', '2020-02-21 06:06:42'), (143, 107, '<NAME>', 'Adipisci explicabo sint earum vel laboriosam quia. Omnis doloribus ex et et numquam. Qui beatae doloribus dolor velit. Tempora vel assumenda autem sint nemo sed.', 2, '2020-02-21 06:06:42', '2020-02-21 06:06:42'), (144, 123, 'Prof. <NAME> IV', 'Autem consectetur eum incidunt fugiat. Corrupti in et quisquam quas aliquid quia consequatur reprehenderit. Nulla corrupti tenetur sunt tempore dignissimos hic.', 1, '2020-02-21 06:06:43', '2020-02-21 06:06:43'), (145, 119, '<NAME>', 'Ut dolores rem nesciunt aspernatur et. Et reiciendis et et eum consectetur. Exercitationem voluptas aut est est velit.', 1, '2020-02-21 06:06:43', '2020-02-21 06:06:43'), (146, 107, '<NAME>', 'Eaque quam id qui ut dolorem. Id sapiente aliquid ullam reprehenderit soluta est aut. Labore quasi earum inventore ut earum enim.', 3, '2020-02-21 06:06:43', '2020-02-21 06:06:43'), (147, 10, '<NAME>', 'Dolor corporis qui commodi. Sapiente et est doloribus et veritatis accusantium accusantium. Asperiores aperiam ipsum atque distinctio error dolores esse.', 4, '2020-02-21 06:06:43', '2020-02-21 06:06:43'), (148, 107, '<NAME>', 'Voluptatem nostrum occaecati voluptatum veniam velit repudiandae earum. Qui minus ea qui. Rerum ut adipisci doloribus voluptas error aut. Aliquam ab dolor unde provident. Aliquam voluptas esse officia voluptatibus numquam.', 2, '2020-02-21 06:06:44', '2020-02-21 06:06:44'), (149, 35, '<NAME>', 'Cupiditate itaque molestiae doloribus recusandae. Ut qui asperiores odio.', 4, '2020-02-21 06:06:44', '2020-02-21 06:06:44'), (150, 87, 'Prof. <NAME> III', 'Suscipit et minus dolor minus nisi. Sit voluptatem aut perspiciatis ipsam quos necessitatibus itaque. Amet ad quod sunt. Sint qui voluptates autem voluptatem odit.', 2, '2020-02-21 06:06:44', '2020-02-21 06:06:44'), (151, 107, '<NAME>', 'Dolorem et magni sit tempora. Fugiat est dolore exercitationem tempora et vitae. Adipisci facilis adipisci et aliquid officia quod placeat. Ad culpa voluptas architecto rerum repellendus aut.', 2, '2020-02-21 06:06:44', '2020-02-21 06:06:44'), (152, 189, '<NAME>', 'Impedit est delectus ut sequi iste distinctio dolore. Sit et temporibus distinctio nobis et cumque. Repellendus qui quia quos qui.', 1, '2020-02-21 06:06:44', '2020-02-21 06:06:44'), (153, 1, '<NAME>', 'Omnis qui voluptatem aut voluptatum non dolores. Tenetur harum quos nobis ipsa tempore. Facere quaerat laudantium et dignissimos rerum et quibusdam minima.', 0, '2020-02-21 06:06:44', '2020-02-21 06:06:44'), (154, 163, '<NAME>', 'Laudantium iste sunt qui debitis. Aut aut sed est id tempora. Eaque vero voluptatem libero culpa sit eos eveniet. Aut architecto at pariatur dolore perferendis.', 0, '2020-02-21 06:06:44', '2020-02-21 06:06:44'), (155, 173, '<NAME>', 'Ab omnis consequatur quia molestiae. Velit explicabo qui error voluptas ut aut. Consequatur iure assumenda et molestias aliquam aspernatur. Voluptatem repellendus et recusandae.', 5, '2020-02-21 06:06:44', '2020-02-21 06:06:44'), (156, 83, 'Dr. <NAME> IV', 'Repellendus id deleniti distinctio sit ipsam deserunt. Blanditiis veniam et aspernatur aut. Nisi illo voluptas dolorum nemo sit est. Qui sed perferendis iure eum excepturi.', 3, '2020-02-21 06:06:44', '2020-02-21 06:06:44'), (157, 12, '<NAME>', 'Magni assumenda possimus velit inventore corrupti. Qui ipsa explicabo nihil minus cumque iste et sed. Ex assumenda sunt sed ut iste repellendus sit. Eum accusantium rerum ut.', 3, '2020-02-21 06:06:44', '2020-02-21 06:06:44'), (158, 162, '<NAME> I', 'Tempore autem commodi quos. Omnis eos eius voluptas molestias dolorem quos debitis.', 1, '2020-02-21 06:06:44', '2020-02-21 06:06:44'), (159, 78, '<NAME> I', 'Officiis quod reiciendis atque sed similique sed rem. Id aperiam magni consequatur qui. Tempore qui et dicta corporis ipsa qui laborum eos.', 2, '2020-02-21 06:06:45', '2020-02-21 06:06:45'), (160, 129, 'Prof. <NAME>', 'Voluptas unde amet atque corrupti. Ipsum omnis nemo excepturi sed molestias doloremque rerum. Rem nostrum deleniti explicabo ipsam sit molestias est.', 4, '2020-02-21 06:06:45', '2020-02-21 06:06:45'), (161, 6, '<NAME> DDS', 'Est non quis iste saepe placeat. Id minima aperiam accusantium deleniti officia.', 4, '2020-02-21 06:06:45', '2020-02-21 06:06:45'), (162, 143, 'Dr. <NAME> III', 'Maxime ut officiis tempora corrupti quis dicta soluta. Sunt laudantium qui repellendus. Nemo animi rerum eos. Cumque provident iste maxime sed corporis illum doloremque quaerat. Ut aut et dolorum dolore est.', 4, '2020-02-21 06:06:45', '2020-02-21 06:06:45'), (163, 31, '<NAME> Sr.', 'Exercitationem possimus inventore quia et. Ea eaque reprehenderit quia. Officia earum iste accusamus assumenda rerum.', 2, '2020-02-21 06:06:45', '2020-02-21 06:06:45'), (164, 8, '<NAME>', 'Libero consequatur est eos consequatur. Eaque dolores explicabo sint eligendi corrupti aut. Minima quaerat id omnis sunt. Qui saepe inventore vitae iste.', 1, '2020-02-21 06:06:45', '2020-02-21 06:06:45'), (165, 133, '<NAME>', 'Impedit et enim sed nisi omnis nulla. Voluptatibus optio ut voluptas dolor autem hic. Ut eligendi nostrum voluptas voluptatem molestiae autem.', 1, '2020-02-21 06:06:45', '2020-02-21 06:06:45'), (166, 152, '<NAME>', 'Aut cumque ad et sint magni deleniti vero labore. Odit occaecati quo laboriosam et aut commodi occaecati id. Pariatur fugiat officiis mollitia tempore omnis.', 5, '2020-02-21 06:06:45', '2020-02-21 06:06:45'), (167, 144, '<NAME>', 'Ut aliquid aut aut exercitationem sequi omnis laboriosam. Et exercitationem aperiam ducimus. Ea officia eius dolorem ducimus molestiae quia sed. Eum quidem itaque non repellat.', 1, '2020-02-21 06:06:46', '2020-02-21 06:06:46'), (168, 190, '<NAME>', 'Eligendi maxime dolorem deleniti ex. Alias impedit quas nihil voluptatum. Eos ea corrupti sed omnis. Excepturi est in cupiditate impedit vero facilis et.', 3, '2020-02-21 06:06:46', '2020-02-21 06:06:46'), (169, 134, '<NAME>', 'Porro porro debitis ex aut earum. Maiores et quidem ut libero. Quos nihil earum quidem quidem. Magni nesciunt eius iure rem.', 2, '2020-02-21 06:06:46', '2020-02-21 06:06:46'), (170, 158, '<NAME> III', 'Ab quo laudantium maiores aut dolores. Dolores et sint exercitationem iste reprehenderit aut. Omnis dicta ut reiciendis. Enim eaque voluptas enim voluptate harum quam quos.', 3, '2020-02-21 06:06:46', '2020-02-21 06:06:46'), (171, 66, 'Dr. <NAME>', 'Temporibus expedita sed eligendi recusandae earum sequi. Nihil beatae ratione molestiae laborum ea. Laborum sunt rerum ipsum quasi incidunt. Aspernatur omnis quia est minima et deserunt.', 5, '2020-02-21 06:06:46', '2020-02-21 06:06:46'), (172, 11, '<NAME>', 'Consequatur architecto sit neque dignissimos incidunt quasi. Voluptatem similique officiis porro quidem. Magnam nihil est unde nemo error qui. Et quo ab error voluptas omnis.', 4, '2020-02-21 06:06:46', '2020-02-21 06:06:46'), (173, 135, '<NAME>', 'Ullam dolorem impedit voluptatibus beatae velit delectus minus tempore. Atque voluptate corrupti error consectetur quia. Veniam molestiae dolorem voluptas tempora. Impedit quam voluptatum a et.', 3, '2020-02-21 06:06:46', '2020-02-21 06:06:46'), (174, 159, '<NAME>', 'Dicta non praesentium voluptatem magni accusantium sit alias. Aut fugiat vel amet sunt aut. Aut animi officiis illum ab quis minima in. Quisquam voluptatem deleniti sequi.', 0, '2020-02-21 06:06:46', '2020-02-21 06:06:46'), (175, 171, 'Miss <NAME>', 'Quas delectus dolor quia architecto quisquam esse quia. Cumque tenetur et sit recusandae magni. Ab voluptatem maxime iste dolor. Omnis ut et laudantium id autem quis voluptas.', 0, '2020-02-21 06:06:46', '2020-02-21 06:06:46'), (176, 197, 'Prof. <NAME> III', 'Explicabo quia sapiente quo commodi. Magnam aliquid veniam sit sapiente magni iusto quidem eos. Nisi sunt ipsa repudiandae quibusdam itaque. Voluptates eos consequatur tempora quis.', 3, '2020-02-21 06:06:47', '2020-02-21 06:06:47'), (177, 67, '<NAME>', 'Et velit iste quisquam nihil officia hic quia. Rerum voluptatibus omnis et nobis quia non. Asperiores expedita earum ut qui sapiente.', 1, '2020-02-21 06:06:47', '2020-02-21 06:06:47'), (178, 85, '<NAME>', 'Quidem voluptatibus officia neque dolores. Odio voluptatum sunt molestiae adipisci sunt repellat nisi. Itaque ipsum et cupiditate laboriosam enim exercitationem qui. Deleniti qui asperiores adipisci deleniti ea nulla.', 3, '2020-02-21 06:06:47', '2020-02-21 06:06:47'), (179, 106, '<NAME>', 'Amet natus deserunt dolor nesciunt. Quisquam temporibus aperiam veniam recusandae. Nobis eum eos quis suscipit non libero facilis. Et rerum ipsam nostrum vero voluptatem.', 5, '2020-02-21 06:06:47', '2020-02-21 06:06:47'), (180, 13, '<NAME>', 'Porro provident sed iure voluptate. Cupiditate alias atque dolor reiciendis voluptas neque. Veniam quis deserunt voluptate earum odit iure. Blanditiis esse ut consequatur deleniti blanditiis nemo. Aut explicabo qui explicabo ea quibusdam.', 1, '2020-02-21 06:06:47', '2020-02-21 06:06:47'), (181, 159, '<NAME>', 'Beatae laboriosam reprehenderit velit. Provident incidunt et voluptatem ipsum.', 3, '2020-02-21 06:06:48', '2020-02-21 06:06:48'), (182, 192, '<NAME>', 'Ut autem architecto similique deserunt. Sed delectus ratione molestias sit amet consequatur et aliquid. Odit corporis velit ea quia qui. Illo esse nihil necessitatibus iusto est.', 4, '2020-02-21 06:06:48', '2020-02-21 06:06:48'), (183, 46, 'Mr. <NAME> Sr.', 'Quaerat sed dolorem quas culpa. Ullam quia laudantium in. Iure quidem molestiae non aut sint. Magnam qui voluptatibus ipsum.', 1, '2020-02-21 06:06:48', '2020-02-21 06:06:48'), (184, 198, 'Dr. <NAME>', 'Dolorem illum molestiae consequuntur nisi porro. Libero laudantium a dolores autem molestias est consectetur sed. Ut velit aliquid et laboriosam distinctio sed est. Aut culpa et placeat deleniti.', 0, '2020-02-21 06:06:48', '2020-02-21 06:06:48'), (185, 47, '<NAME> III', 'Rerum dolorem animi a ea numquam ipsum. Sit similique asperiores voluptatem et est tempore consequatur voluptatibus. Velit voluptatibus aliquid et sed voluptatem velit.', 4, '2020-02-21 06:06:48', '2020-02-21 06:06:48'), (186, 111, '<NAME>', 'Quos rerum perferendis recusandae error ea sed blanditiis. Nihil nihil quia quos quam voluptatum at. Qui fugiat inventore rem eaque. Exercitationem est harum id quas officia est cumque.', 4, '2020-02-21 06:06:48', '2020-02-21 06:06:48'), (187, 190, 'Dr. <NAME>', 'Possimus ullam aut et iusto accusantium. Labore aspernatur provident accusamus fugit. Pariatur ad qui veritatis atque. Aut voluptas asperiores distinctio consequatur distinctio sequi tempore molestiae. Omnis eligendi assumenda accusamus qui.', 3, '2020-02-21 06:06:48', '2020-02-21 06:06:48'), (188, 21, '<NAME> MD', 'Non culpa vitae quod animi neque nihil ipsa. Illum est iure nobis quisquam a quisquam. Accusamus eveniet qui repudiandae molestiae minima placeat libero.', 5, '2020-02-21 06:06:48', '2020-02-21 06:06:48'), (189, 84, 'Mr. <NAME> MD', 'Delectus cum commodi quia quia consectetur omnis ut. Repudiandae perspiciatis voluptatem animi dolorem sequi molestias et. Est facilis consectetur dolores deserunt quis temporibus aut. Ipsam consequuntur delectus eius et nesciunt alias dicta quas. Impedit facere optio est omnis optio similique.', 2, '2020-02-21 06:06:48', '2020-02-21 06:06:48'), (190, 37, '<NAME>', 'Totam sed tempora doloribus dolores unde provident quae. Aut numquam et asperiores aut accusamus. Suscipit rerum quia nemo veniam ipsum. Facere reiciendis mollitia tenetur cum hic repudiandae accusantium. Laboriosam vero neque ex occaecati magnam qui aut nam.', 3, '2020-02-21 06:06:48', '2020-02-21 06:06:48'), (191, 151, '<NAME>', 'Quia nemo voluptate voluptas non nulla perspiciatis. Quia nobis et aspernatur aut adipisci. Hic repellendus temporibus reprehenderit et et sit.', 3, '2020-02-21 06:06:48', '2020-02-21 06:06:48'), (192, 142, 'Mrs. <NAME>', 'Magnam mollitia debitis aliquam itaque recusandae. At voluptate voluptatem ipsum in maxime neque. Animi vitae necessitatibus voluptate molestiae modi. Aperiam et qui ipsa.', 3, '2020-02-21 06:06:49', '2020-02-21 06:06:49'), (193, 54, '<NAME>', 'Cumque mollitia similique consequatur dolor alias a. Et odit accusantium et in aspernatur sunt omnis.', 4, '2020-02-21 06:06:49', '2020-02-21 06:06:49'), (194, 197, '<NAME>', 'Eos molestiae mollitia omnis placeat. Asperiores aut culpa fuga ut quasi illum laborum. Qui distinctio rem eaque. Consequatur voluptatem qui voluptatum quod voluptatem. Est saepe dolor et natus hic.', 0, '2020-02-21 06:06:49', '2020-02-21 06:06:49'), (195, 178, 'Prof. <NAME>', 'Dolorem doloremque beatae quia voluptatibus dignissimos quos. Optio ratione qui et praesentium unde sint. Ut asperiores non rerum excepturi qui error. Corporis ipsum iure numquam.', 5, '2020-02-21 06:06:49', '2020-02-21 06:06:49'), (196, 188, '<NAME>', 'Qui consequatur est minus voluptates et reprehenderit exercitationem. Aut alias ut quia neque nihil. Tenetur est aut fugiat cupiditate suscipit id autem.', 4, '2020-02-21 06:06:49', '2020-02-21 06:06:49'), (197, 61, '<NAME>', 'Voluptas voluptatem nesciunt placeat neque eos. Unde dolor voluptas ea minima. Dicta tenetur odio dolorem nihil vel et. Exercitationem ipsam qui cum. Blanditiis reprehenderit minima consequatur voluptas ut.', 4, '2020-02-21 06:06:49', '2020-02-21 06:06:49'), (198, 183, '<NAME>', 'Possimus est omnis id. Aut et magnam atque qui a sed. Sapiente excepturi aut aut sequi aliquam quia aut magni. Ad eos qui dolorem quidem.', 3, '2020-02-21 06:06:49', '2020-02-21 06:06:49'), (199, 124, 'Prof. <NAME> PhD', 'Culpa ea hic officiis quo repellendus eveniet. Enim sit mollitia aliquam sed porro ullam asperiores. Tempora eum maxime iure expedita quod ut tempora. Beatae sapiente dolore voluptatem totam ea voluptas ducimus.', 1, '2020-02-21 06:06:49', '2020-02-21 06:06:49'), (200, 58, 'Dr. <NAME>', 'Et laboriosam corrupti ut accusantium repellendus dolorem quos. Maxime nam fuga ab possimus. Nam in et molestias aspernatur. Excepturi rerum cum non tenetur excepturi non soluta sunt.', 4, '2020-02-21 06:06:49', '2020-02-21 06:06:49'), (201, 60, '<NAME>', 'Vel veritatis eaque minus aliquam ab omnis ullam culpa. Consectetur minus sint reprehenderit nulla nam. Ex ullam tempora expedita non quaerat animi. Quasi illum assumenda sint ipsa id ipsam repellat natus.', 1, '2020-02-21 06:06:50', '2020-02-21 06:06:50'), (202, 100, 'Ms. <NAME> Jr.', 'Minus nemo hic sit magnam. Ad et quibusdam quia est quia illo placeat. Ipsum voluptatem voluptate facilis id maxime saepe.', 3, '2020-02-21 06:06:50', '2020-02-21 06:06:50'), (203, 111, '<NAME> DDS', 'Sed repellat porro delectus. Quasi commodi quis eos excepturi dolor.', 5, '2020-02-21 06:06:50', '2020-02-21 06:06:50'), (204, 142, '<NAME>', 'Dolor dicta debitis est voluptatem. Eos occaecati temporibus aut iure.', 3, '2020-02-21 06:06:50', '2020-02-21 06:06:50'); INSERT INTO `reviews` (`id`, `product_id`, `customer`, `review`, `star`, `created_at`, `updated_at`) VALUES (205, 66, 'Prof. <NAME>', 'Dolor eaque consequatur eos rerum repellat corrupti et. Sed explicabo mollitia cumque voluptatem magnam dolore. Suscipit numquam autem et debitis natus sit.', 1, '2020-02-21 06:06:50', '2020-02-21 06:06:50'), (206, 150, 'Miss <NAME> DDS', 'Ipsam asperiores atque nisi ipsum fugiat. Enim debitis laboriosam ut optio deleniti veritatis ipsam consequatur. In nesciunt sapiente et excepturi accusantium.', 0, '2020-02-21 06:06:50', '2020-02-21 06:06:50'), (207, 41, '<NAME>', 'Eveniet minus exercitationem sed qui nisi. Id odio voluptas dolorem necessitatibus asperiores ratione. Ipsam tenetur eius ea temporibus. Animi dolorem voluptatum et officia ullam non vel.', 5, '2020-02-21 06:06:50', '2020-02-21 06:06:50'), (208, 185, '<NAME>', 'Ipsam non accusantium dolore vero delectus et. Ducimus modi itaque sequi officiis debitis eligendi ullam consequatur. Impedit recusandae magni exercitationem sequi molestiae expedita ab.', 1, '2020-02-21 06:06:51', '2020-02-21 06:06:51'), (209, 127, 'Mrs. <NAME> PhD', 'Libero accusamus nihil sunt temporibus et maiores. Voluptates quisquam voluptatibus harum ducimus. Autem quos omnis similique veritatis neque labore.', 5, '2020-02-21 06:06:51', '2020-02-21 06:06:51'), (210, 195, '<NAME>', 'Beatae ipsa sint asperiores commodi fuga vel. Temporibus ducimus repellendus recusandae dignissimos et est non quis. Ut sed nostrum ullam. Minus nemo itaque nesciunt. Consequatur quis nam deserunt assumenda nihil veniam est delectus.', 0, '2020-02-21 06:06:51', '2020-02-21 06:06:51'), (211, 147, '<NAME>', 'Perspiciatis qui est et iure quam repellat. Pariatur atque iste quia quasi odit ad et. Quod consequatur aliquam debitis provident voluptate velit perferendis. Cumque dolores dolor est corporis.', 5, '2020-02-21 06:06:51', '2020-02-21 06:06:51'), (212, 9, 'Dr. <NAME>', 'Vitae quia aliquid assumenda hic est eum ipsam. Sint ratione est quibusdam velit dolor. Quo maiores nihil hic.', 0, '2020-02-21 06:06:51', '2020-02-21 06:06:51'), (213, 155, '<NAME>', 'Qui repellendus amet error. Quo culpa est sunt ea. Consectetur qui ea repudiandae omnis non.', 1, '2020-02-21 06:06:51', '2020-02-21 06:06:51'), (214, 161, '<NAME>', 'Et et ab deserunt. Ut cum quibusdam eius nihil maxime odit libero. Iste dolore sunt accusamus nisi repellendus vero. Cupiditate quo velit inventore soluta. Enim ducimus nisi voluptas numquam assumenda.', 3, '2020-02-21 06:06:51', '2020-02-21 06:06:51'), (215, 4, '<NAME>', 'Est voluptatem harum deserunt odit quam molestias ex. Inventore at esse rerum voluptatem ut repellendus. Ut quis aliquam consectetur dolor. Tenetur et quam tenetur consequuntur nihil voluptas dignissimos. Corrupti quibusdam autem sequi dolorum modi.', 4, '2020-02-21 06:06:51', '2020-02-21 06:06:51'), (216, 87, '<NAME>', 'Occaecati eius id aliquid quos repellendus. Inventore quia corrupti asperiores repellat ea repellendus officiis provident. Consequatur itaque molestias corporis dicta ut non dolores. Incidunt sit maxime molestiae ducimus. Rerum quam inventore placeat et qui.', 4, '2020-02-21 06:06:52', '2020-02-21 06:06:52'), (217, 192, '<NAME> DDS', 'Quis nobis aut voluptates voluptas repellat ab placeat beatae. Ex voluptatem quis est sed consequatur quasi soluta. Consequatur minus quam odit adipisci.', 1, '2020-02-21 06:06:52', '2020-02-21 06:06:52'), (218, 31, '<NAME>', 'Sunt non numquam ea id distinctio. Et ducimus ratione explicabo qui quia aperiam autem. Atque aut consequatur harum enim ullam veniam. Quis tempore quo vel eos eaque. Quasi ab velit illo voluptatem.', 3, '2020-02-21 06:06:52', '2020-02-21 06:06:52'), (219, 139, 'Dr. <NAME> PhD', 'Maiores incidunt temporibus quod aliquid. Placeat sint et vel est. Autem neque exercitationem sit rerum praesentium.', 1, '2020-02-21 06:06:52', '2020-02-21 06:06:52'), (220, 119, 'Mr. <NAME> V', 'Non quod iusto dolores tenetur quam. Necessitatibus sunt doloribus minus et pariatur. Occaecati ratione et provident ullam officiis voluptatem. Aut quia quia nulla aliquam eum voluptatem.', 4, '2020-02-21 06:06:53', '2020-02-21 06:06:53'), (221, 200, '<NAME>', 'Saepe quos et natus ut veniam velit. Qui nulla maiores voluptatem modi consequuntur ut esse. Ut enim quia numquam id rerum inventore in. Minima aperiam eaque sit tempora.', 1, '2020-02-21 06:06:53', '2020-02-21 06:06:53'), (222, 67, 'Mrs. <NAME> PhD', 'Consequatur quasi officiis ducimus quia in occaecati. Minima quaerat dolorem ullam eos facere aut blanditiis. Nostrum et nobis aut omnis id quia ut. Rerum aut aut velit eum voluptatem dolorem doloremque.', 5, '2020-02-21 06:06:53', '2020-02-21 06:06:53'), (223, 39, 'Mrs. <NAME>', 'Nobis velit aspernatur ducimus ipsa non. Eum omnis in sapiente qui tenetur et voluptatibus. Et ex nesciunt eum similique nam saepe molestiae. Aut enim in magnam ut beatae adipisci.', 0, '2020-02-21 06:06:53', '2020-02-21 06:06:53'), (224, 66, '<NAME>', 'Nihil voluptates iste earum. Et modi soluta accusamus sed. Ut numquam dolorum exercitationem voluptas ipsum sed totam. Et harum deleniti voluptatem adipisci voluptas aperiam.', 4, '2020-02-21 06:06:53', '2020-02-21 06:06:53'), (225, 144, '<NAME> IV', 'Rerum voluptas in beatae vel temporibus autem. Modi et et ducimus rerum. Et totam ut iste. Laudantium eos eius recusandae saepe.', 3, '2020-02-21 06:06:53', '2020-02-21 06:06:53'), (226, 1, 'Ms. <NAME>', 'Commodi est ad explicabo similique voluptatem est quia dolorem. Aut quia velit ut sit consequuntur quia omnis. Architecto quis et similique aut aperiam. Et aperiam voluptatem molestias modi deleniti est tempora qui.', 5, '2020-02-21 06:06:53', '2020-02-21 06:06:53'), (227, 166, 'Mrs. <NAME>', 'Molestiae beatae facere aut reiciendis. Totam sunt optio quos veniam quaerat deleniti modi accusantium. Unde ad omnis error consequatur eius molestias. Quia ipsa aliquam aut ea voluptatem.', 4, '2020-02-21 06:06:53', '2020-02-21 06:06:53'), (228, 64, '<NAME>', 'Et minus distinctio saepe voluptate at. Omnis est itaque placeat et et ea accusantium. Quis vero sit esse ex est.', 3, '2020-02-21 06:06:53', '2020-02-21 06:06:53'), (229, 83, '<NAME>', 'Porro sunt molestias dolorum itaque ad. Labore pariatur commodi et reiciendis et consequatur aspernatur. Animi enim distinctio rem et. Debitis voluptas repellendus sunt quam error.', 1, '2020-02-21 06:06:53', '2020-02-21 06:06:53'), (230, 1, '<NAME>', 'Recusandae itaque illum provident maiores aut impedit. Aut corrupti eius cumque qui cum aut est. Et perspiciatis ratione perspiciatis et. Maiores magnam dolores doloremque velit sequi libero ut.', 3, '2020-02-21 06:06:53', '2020-02-21 06:06:53'), (231, 190, '<NAME>', 'Itaque esse provident iure quaerat distinctio. Sed magni qui perferendis. Velit consequatur rerum in minima illum dignissimos vel.', 1, '2020-02-21 06:06:54', '2020-02-21 06:06:54'), (232, 52, '<NAME>', 'Perspiciatis ut velit tempora sed impedit. Rerum aut iste eveniet dolores aspernatur animi voluptatem. Veniam corporis excepturi dolore et aut laborum itaque possimus.', 5, '2020-02-21 06:06:54', '2020-02-21 06:06:54'), (233, 77, '<NAME>', 'Ut sunt impedit fuga cumque ipsum cum. Eligendi corporis est unde. Omnis quo quia adipisci deleniti culpa. Ut rerum perferendis facilis molestias laborum aut et.', 1, '2020-02-21 06:06:54', '2020-02-21 06:06:54'), (234, 154, '<NAME> III', 'Voluptate similique nisi qui rerum dolorem commodi quam ratione. Adipisci debitis ullam quis doloremque expedita corrupti.', 4, '2020-02-21 06:06:54', '2020-02-21 06:06:54'), (235, 190, '<NAME>', 'Nam ut voluptatum earum aliquid sint et. Nesciunt velit odit qui nihil voluptatibus et. In eligendi ex veritatis molestiae. Repellendus et molestiae repellat rerum quo.', 3, '2020-02-21 06:06:54', '2020-02-21 06:06:54'), (236, 168, '<NAME>', 'Voluptatem sed fugit dolorem praesentium labore ut est. Natus et consequatur quas voluptatem. Quis deserunt pariatur totam maxime non.', 4, '2020-02-21 06:06:54', '2020-02-21 06:06:54'), (237, 22, 'Mr. <NAME> III', 'Quod consectetur voluptatem et ut accusantium vel debitis ratione. Nesciunt laboriosam et consequatur sit harum blanditiis temporibus. Veritatis saepe sunt sed autem. Itaque eos aut quos ad molestias.', 0, '2020-02-21 06:06:54', '2020-02-21 06:06:54'), (238, 81, '<NAME>', 'Modi facere ipsa maiores nulla facere deleniti. Nam voluptatem ipsam dolore minus sunt pariatur. Voluptatem vel distinctio nobis rerum. Eum commodi est porro quos nesciunt. Animi error autem rerum est et ducimus.', 1, '2020-02-21 06:06:55', '2020-02-21 06:06:55'), (239, 127, '<NAME>', 'Porro aut sed voluptatem quam velit odio. Voluptate et commodi aut molestiae reprehenderit vitae consequuntur. Qui quis hic eaque molestiae quos veritatis. Et ratione magnam enim quia.', 3, '2020-02-21 06:06:55', '2020-02-21 06:06:55'), (240, 136, 'Prof. <NAME> III', 'Dolor optio dolor omnis ea. Qui cum dolorem minima aperiam eos eveniet. Commodi repudiandae molestiae cum commodi qui. Quisquam sed qui cum assumenda. Nisi error expedita at minima.', 1, '2020-02-21 06:06:55', '2020-02-21 06:06:55'), (241, 128, 'Prof. <NAME>', 'Maxime dolor vero consequatur voluptatem. Eum voluptas neque rem quis. Nesciunt quo nostrum amet est recusandae tenetur.', 2, '2020-02-21 06:06:55', '2020-02-21 06:06:55'), (242, 127, '<NAME>', 'Quis nihil omnis quod sit quia placeat voluptatem. Ea laudantium recusandae amet rerum fuga dignissimos. Sed numquam non enim incidunt explicabo libero. Et aut nihil aliquam.', 2, '2020-02-21 06:06:55', '2020-02-21 06:06:55'), (243, 64, 'Ms. <NAME>', 'In ab aut hic aliquam aut error id quae. Repudiandae ut quaerat culpa quae consequuntur perspiciatis. Perspiciatis porro suscipit commodi velit aut eligendi aut est. Est similique animi optio et voluptatem.', 3, '2020-02-21 06:06:55', '2020-02-21 06:06:55'), (244, 47, '<NAME>', 'Ea ullam quo culpa at et quo ullam. Cum voluptatem non ex quo sint odit non. Maiores qui atque aliquam sunt et. Pariatur iure rem accusantium dolores.', 0, '2020-02-21 06:06:55', '2020-02-21 06:06:55'), (245, 79, '<NAME>', 'Facere eius quis necessitatibus qui modi. Impedit alias et est sed atque voluptates. Consequatur autem tempora perferendis accusantium adipisci. Enim accusamus nisi ullam similique.', 3, '2020-02-21 06:06:55', '2020-02-21 06:06:55'), (246, 117, '<NAME>', 'Ut minima officia cumque. Qui fugiat quo recusandae aut.', 0, '2020-02-21 06:06:55', '2020-02-21 06:06:55'), (247, 16, '<NAME>', 'Fugit ut sed repellat libero ipsa deleniti distinctio aut. Ut omnis vel qui nemo. Quia exercitationem non iusto et necessitatibus. Sunt ea maiores debitis dolore id consequatur sequi.', 5, '2020-02-21 06:06:55', '2020-02-21 06:06:55'), (248, 192, '<NAME>', 'Accusantium sequi a ut quo est distinctio. At aliquid beatae corrupti debitis commodi. Quis perferendis aut esse sit veritatis temporibus ipsam. Doloremque minus perferendis quibusdam voluptate maxime.', 4, '2020-02-21 06:06:56', '2020-02-21 06:06:56'), (249, 19, 'Ms. <NAME> III', 'Ut est perferendis et. Recusandae dolore et quia quaerat molestiae facilis. Fuga rerum mollitia sed. Ad ipsam cupiditate omnis itaque veniam est est officiis.', 5, '2020-02-21 06:06:56', '2020-02-21 06:06:56'), (250, 180, 'Ms. <NAME>', 'Molestias numquam voluptate molestiae reiciendis quae. Veniam tempora voluptatibus aut omnis. Est quia ipsam odit in.', 3, '2020-02-21 06:06:56', '2020-02-21 06:06:56'), (251, 126, '<NAME>', 'Ad aliquid minima voluptatem itaque ut magnam sed. Molestias quae occaecati quo ullam rerum nisi eveniet officiis. Odit voluptas omnis maiores iure itaque cupiditate distinctio. Explicabo eos deserunt nisi vitae amet quam.', 2, '2020-02-21 06:06:56', '2020-02-21 06:06:56'), (252, 93, '<NAME> Sr.', 'Consequuntur reprehenderit totam accusamus. Facilis dignissimos maxime ullam rem fuga sed temporibus. Molestiae assumenda impedit tenetur voluptate.', 2, '2020-02-21 06:06:56', '2020-02-21 06:06:56'), (253, 46, '<NAME>', 'Sunt dolorem aut porro repudiandae sit. In ullam sit aperiam explicabo facilis. Et dolorem exercitationem omnis enim accusantium unde magni. Debitis totam eius expedita quos.', 4, '2020-02-21 06:06:56', '2020-02-21 06:06:56'), (254, 187, '<NAME>', 'Est inventore possimus minima error natus illum. Vel amet voluptatem soluta optio. Minus id voluptatem dolor voluptatibus. Consequuntur quia culpa accusantium illum repellat et enim.', 0, '2020-02-21 06:06:56', '2020-02-21 06:06:56'), (255, 51, '<NAME>', 'Perspiciatis alias soluta cum dolor suscipit quia recusandae. Consequuntur dolores cupiditate hic sed maxime voluptas. Eos architecto doloribus ut porro cupiditate magni officia rem.', 2, '2020-02-21 06:06:56', '2020-02-21 06:06:56'), (256, 196, '<NAME>', 'Provident ad sint dolorem illo voluptatem. Consectetur ut sequi delectus ut deleniti eveniet. Qui voluptatibus quo commodi. Quis aut quia omnis harum iusto tempora enim. Est praesentium qui aut accusantium voluptatem similique.', 2, '2020-02-21 06:06:56', '2020-02-21 06:06:56'), (257, 18, '<NAME>', 'Pariatur et quis nisi ut debitis enim. Minima ea et amet aut dolor non veniam vel. Quo repudiandae dolores molestiae. Sint quis expedita ad ab ipsam tenetur. Eius facere quia magni.', 3, '2020-02-21 06:06:57', '2020-02-21 06:06:57'), (258, 22, 'Dr. <NAME> III', 'Occaecati non aut et unde quos repudiandae error. Rerum dolores error est quisquam voluptatem non tempora. Eum molestiae voluptatibus omnis repellat. Libero esse totam consequuntur voluptatem sit fugit esse et.', 0, '2020-02-21 06:06:57', '2020-02-21 06:06:57'), (259, 170, '<NAME>', 'Magnam minus molestias qui. Expedita vel aliquam nulla sint non consequuntur et. Aperiam nihil et magni. Repellat facere nihil odio velit est ea.', 3, '2020-02-21 06:06:57', '2020-02-21 06:06:57'), (260, 133, '<NAME>', 'Dicta ratione corrupti modi corrupti. Harum rerum at est omnis dignissimos. Et quibusdam aut eaque non non doloremque quis dolor. Doloremque architecto error rem.', 5, '2020-02-21 06:06:57', '2020-02-21 06:06:57'), (261, 128, '<NAME> V', 'Aut porro asperiores atque fuga nihil fugiat. Ad velit praesentium earum facilis. Nemo perspiciatis et quibusdam aut similique. Ut incidunt quia itaque rerum.', 4, '2020-02-21 06:06:57', '2020-02-21 06:06:57'), (262, 73, '<NAME>', 'Aut distinctio officiis sint perferendis. Ipsum ea in quaerat vel necessitatibus quasi. Et libero quibusdam voluptatibus reprehenderit.', 2, '2020-02-21 06:06:57', '2020-02-21 06:06:57'), (263, 166, '<NAME>', 'Facere quas porro molestias corrupti soluta. Facilis eum non modi magnam. Non qui rem nihil laborum et enim occaecati.', 3, '2020-02-21 06:06:57', '2020-02-21 06:06:57'), (264, 64, 'Dr. <NAME>', 'Debitis cumque tenetur dicta atque nihil aut et sit. Ipsum iure qui dolores veritatis ut inventore aut in. Reiciendis iusto et molestiae vero eum. Architecto facere adipisci quae impedit.', 3, '2020-02-21 06:06:57', '2020-02-21 06:06:57'), (265, 118, '<NAME>', 'Facilis vel nam necessitatibus rerum exercitationem. Facilis ipsum perspiciatis animi pariatur. Possimus consequuntur molestiae similique explicabo.', 3, '2020-02-21 06:06:57', '2020-02-21 06:06:57'), (266, 166, '<NAME>', 'Non id fugit eveniet sit ex. Asperiores earum neque ut. Doloribus nam cum quo ad. Amet ut cumque non in dolores sed et aliquid.', 0, '2020-02-21 06:06:57', '2020-02-21 06:06:57'), (267, 149, 'Prof. <NAME>', 'Fuga consequatur repudiandae ex perferendis. Molestiae iusto repellendus sequi ad.', 3, '2020-02-21 06:06:57', '2020-02-21 06:06:57'), (268, 190, '<NAME>', 'Porro est molestias a pariatur impedit. Aut placeat omnis iure aperiam. Repellat sunt nostrum similique aut omnis nobis blanditiis. Voluptate omnis quis est quam neque.', 1, '2020-02-21 06:06:58', '2020-02-21 06:06:58'), (269, 9, '<NAME>', 'Provident dignissimos quo autem quisquam. Dignissimos dolorem ut dolorum adipisci rerum necessitatibus nesciunt. Molestias eum perferendis soluta porro expedita.', 2, '2020-02-21 06:06:58', '2020-02-21 06:06:58'), (270, 24, '<NAME>', 'Ut consequatur ipsa autem molestias. Quis sed rerum et tenetur rerum. Laboriosam possimus vitae omnis nihil quia eveniet voluptas rerum.', 2, '2020-02-21 06:06:58', '2020-02-21 06:06:58'), (271, 38, '<NAME>', 'Accusantium sit natus sed. Deserunt error laborum exercitationem rem ut optio. Dolorem illo aut ut excepturi deleniti quaerat.', 1, '2020-02-21 06:06:58', '2020-02-21 06:06:58'), (272, 127, '<NAME>', 'Et cum est aut corrupti. Debitis quas ullam mollitia. Quaerat mollitia impedit iste ut similique quidem ea.', 2, '2020-02-21 06:06:58', '2020-02-21 06:06:58'), (273, 115, 'Mr. <NAME>', 'Temporibus beatae quod praesentium quis sunt autem. Doloremque maxime dicta quia eaque. Exercitationem commodi eos et molestias officiis qui. Earum sed blanditiis et dolores quia incidunt sed.', 5, '2020-02-21 06:06:58', '2020-02-21 06:06:58'), (274, 150, '<NAME> I', 'Et dolorem eligendi dolorem aliquid. Qui accusamus est impedit perferendis. Porro nobis error dolore esse molestiae. Neque et in omnis neque laborum impedit qui.', 5, '2020-02-21 06:06:59', '2020-02-21 06:06:59'), (275, 107, '<NAME> DVM', 'Assumenda et et et nesciunt quo natus. Amet dolor aliquid inventore iure in. Laudantium eos distinctio recusandae asperiores excepturi.', 0, '2020-02-21 06:06:59', '2020-02-21 06:06:59'), (276, 68, '<NAME>', 'Sit ipsa labore pariatur aspernatur. Delectus quod et sit totam. Sed dicta sed eos a cumque ad iste commodi.', 5, '2020-02-21 06:06:59', '2020-02-21 06:06:59'), (277, 11, '<NAME>', 'Dolorem non natus culpa adipisci aspernatur nesciunt. Nihil voluptas voluptatibus rem et consequuntur velit tempora dolores.', 4, '2020-02-21 06:06:59', '2020-02-21 06:06:59'), (278, 129, '<NAME>', 'Et dolorem suscipit hic ullam dolores. Voluptatibus in esse amet est. Sit a dolore molestias non dicta distinctio sed. Quo ut magni sit aut nesciunt est officia.', 2, '2020-02-21 06:06:59', '2020-02-21 06:06:59'), (279, 134, '<NAME>', 'Commodi nihil vitae explicabo. Molestiae fugiat est sint voluptas. Voluptatem eum adipisci tempore ipsa pariatur.', 2, '2020-02-21 06:06:59', '2020-02-21 06:06:59'), (280, 117, '<NAME> V', 'Distinctio sapiente nulla aut minus. Nulla dolorem qui consequatur temporibus molestiae cupiditate repudiandae quis. Id ipsam voluptates consequatur sit qui. Ut aliquid nulla nesciunt illo nobis tenetur.', 0, '2020-02-21 06:06:59', '2020-02-21 06:06:59'), (281, 27, 'Lottie Spinka III', 'Dolor vel quos labore occaecati. Voluptas quia officiis labore accusantium. Eum non possimus et deserunt sint voluptatem sed.', 4, '2020-02-21 06:06:59', '2020-02-21 06:06:59'), (282, 25, '<NAME> Sr.', 'Voluptate eum animi velit in. Nisi quod consectetur eum nobis saepe qui. Aspernatur cum consectetur aspernatur doloremque omnis quae et iure. Iure et laboriosam iste et.', 1, '2020-02-21 06:06:59', '2020-02-21 06:06:59'), (283, 150, 'Mr. <NAME>', 'Eligendi eos in voluptatem odio. Excepturi dolores corrupti reprehenderit dolorem est. Est deleniti qui tenetur aut maiores eligendi dolores.', 5, '2020-02-21 06:07:00', '2020-02-21 06:07:00'), (284, 67, 'Prof. <NAME> IV', 'Qui sint at deleniti cum assumenda. At sit sit magni corporis. Ab enim rem qui voluptates non in.', 0, '2020-02-21 06:07:00', '2020-02-21 06:07:00'), (285, 6, 'Ms. <NAME> IV', 'Fugiat pariatur in aut iure facilis. Libero qui dicta eos autem et ut et cupiditate. Numquam alias porro voluptates occaecati odio.', 1, '2020-02-21 06:07:00', '2020-02-21 06:07:00'), (286, 33, '<NAME>', 'Dolor fuga ea laudantium veniam. Exercitationem animi aliquid architecto non cupiditate. Vitae porro numquam ex quasi. Dolorem ea autem ut rerum necessitatibus sit pariatur.', 0, '2020-02-21 06:07:00', '2020-02-21 06:07:00'), (287, 125, '<NAME>', 'Quibusdam error et enim et quibusdam aut. Et ut nisi cupiditate nam.', 0, '2020-02-21 06:07:00', '2020-02-21 06:07:00'), (288, 3, '<NAME>', 'Id quo delectus et tempore. Numquam perferendis fuga harum repellat. Quis non voluptates ipsam. Cupiditate corrupti aut ipsum ut voluptatem.', 3, '2020-02-21 06:07:00', '2020-02-21 06:07:00'), (289, 97, '<NAME>', 'Ea modi cum et iusto autem minus maxime. Ipsum ab dicta odio et dolor accusamus. Quas omnis enim repellat delectus consequatur et.', 0, '2020-02-21 06:07:00', '2020-02-21 06:07:00'), (290, 189, '<NAME>', 'Et tempore id quidem. Veritatis molestiae ipsa magni quos voluptate sed sequi sed. Perferendis voluptatibus nam assumenda alias nostrum aperiam.', 4, '2020-02-21 06:07:00', '2020-02-21 06:07:00'), (291, 87, '<NAME>', 'Assumenda quia sit tempore perspiciatis veritatis ex. Eos voluptatem voluptatem tempore perferendis recusandae. Repellendus enim cupiditate qui consequatur quo voluptates et. Sed asperiores veniam repellendus nesciunt sed.', 4, '2020-02-21 06:07:00', '2020-02-21 06:07:00'), (292, 156, '<NAME>', 'Aut assumenda doloribus vel sed unde delectus doloribus saepe. Ea sint dignissimos quia debitis eaque similique aut. Quia quisquam voluptatibus sapiente labore. Quisquam sed laboriosam eum numquam.', 0, '2020-02-21 06:07:01', '2020-02-21 06:07:01'), (293, 179, '<NAME>', 'Consequatur expedita aut quae numquam aspernatur ut. Consectetur in fugiat sint veniam. Repellendus voluptate alias fuga omnis sit et et. Et tempora quia fugiat.', 4, '2020-02-21 06:07:01', '2020-02-21 06:07:01'), (294, 36, '<NAME>', 'Ullam architecto facere ullam eos quasi nam. Nam quos nesciunt magni deleniti eos est. Qui expedita expedita repudiandae. Eligendi suscipit nobis adipisci occaecati consequatur dolores non.', 4, '2020-02-21 06:07:01', '2020-02-21 06:07:01'), (295, 8, '<NAME>', 'Itaque velit voluptas et quos nulla qui eos. Unde commodi est mollitia porro quaerat aut. Incidunt voluptas ducimus tempore iusto. Rerum aspernatur debitis quia nisi aperiam veritatis.', 0, '2020-02-21 06:07:01', '2020-02-21 06:07:01'), (296, 148, 'Miss <NAME> Jr.', 'Dolorem praesentium qui aut suscipit itaque facere. Rerum eos nobis quasi laudantium aut rerum sequi sunt. Repudiandae nihil commodi excepturi laudantium quaerat. Quam et corrupti fuga sequi et et.', 3, '2020-02-21 06:07:02', '2020-02-21 06:07:02'), (297, 93, '<NAME>', 'Ut sunt dolore molestiae enim voluptates. Minus architecto laboriosam beatae quae. Non mollitia a a corporis adipisci ipsa.', 2, '2020-02-21 06:07:02', '2020-02-21 06:07:02'), (298, 18, '<NAME>', 'Facilis ea sunt voluptatem dolor. Quo quidem ipsa quia officia placeat. Cum fugiat veniam natus sunt aut adipisci eaque ipsa.', 5, '2020-02-21 06:07:02', '2020-02-21 06:07:02'), (299, 32, '<NAME>', 'Cum veniam assumenda sint vitae nobis. Tempore rerum asperiores voluptatibus. Pariatur vitae iusto rerum vel libero porro ipsum. Quo ea facilis ex.', 4, '2020-02-21 06:07:02', '2020-02-21 06:07:02'), (300, 101, '<NAME>', 'In aliquam ullam sint dolorem enim fugit qui. Corporis enim molestiae ullam sint rerum. Dolorum quo aut libero dolorem aliquid quibusdam. Et voluptas aut sed facere distinctio quo accusantium odio.', 0, '2020-02-21 06:07:02', '2020-02-21 06:07:02'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Indexes for dumped tables -- -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `products` -- ALTER TABLE `products` ADD PRIMARY KEY (`id`); -- -- Indexes for table `reviews` -- ALTER TABLE `reviews` ADD PRIMARY KEY (`id`), ADD KEY `reviews_product_id_index` (`product_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `products` -- ALTER TABLE `products` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=201; -- -- AUTO_INCREMENT for table `reviews` -- ALTER TABLE `reviews` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=301; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables -- -- -- Constraints for table `reviews` -- ALTER TABLE `reviews` ADD CONSTRAINT `reviews_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
CREATE TABLE teams_users( Teams_Users_ID SERIAL NOT NULL PRIMARY KEY, Team_ID INT NOT NULL REFERENCES teams(Team_ID), User_ID INT NOT NULL REFERENCES users(User_ID), Role_ID INT NOT NULL REFERENCES team_roles(Team_Role_ID), Status BIT DEFAULT NULL -- 0 for declined, 1 for accepted );
USE [master]; CREATE DATABASE [MSPetShop4];
create or replace function insert_taxonomies_search_view_from_taxonomies_fn() returns trigger as $$ begin insert into taxonomies_search_view select t.id as id, t.form_id as taxonomy_id, illuminate_text(f, s, 'name') as name, context.name as context, (case t.hierarchical when true then 'hierarchical' else 'flat' end) as type, (select count(*) from taxonomy_taxon_links as link where link.taxonomy_id = t.id and link.archived_at is null) as values_count, illuminate_text(f, s, 'activeFrom') as active_from, illuminate_text(f, s, 'activeTo') as active_to, to_char(t.archived_at, 'YYYY-MM-DD"T"HH24:MI:SS.MS"Z"') as archived_at, t.scope as scope, to_char(t.created_at, 'YYYY-MM-DD"T"HH24:MI:SS.MS"Z"') as created_at, to_char(t.updated_at, 'YYYY-MM-DD"T"HH24:MI:SS.MS"Z"') as updated_at from taxonomies as t inner join object_contexts as context on (t.context_id = context.id) inner join object_forms as f on (f.id = t.form_id) inner join object_shadows as s on (s.id = t.shadow_id) where t.id = new.id; return null; end; $$ language plpgsql; create or replace function update_taxonomies_search_view_from_taxonomies_fn() returns trigger as $$ declare taxonomy_ids integer []; begin case tg_table_name when 'taxonomies' then taxonomy_ids := array_agg(new.id); when 'taxons' then select array_agg(taxonomy_id) from taxonomy_taxon_links where taxon_id = new.id into taxonomy_ids; when 'taxonomy_taxon_links' then select array_agg(taxonomy_id) from taxonomy_taxon_links where id = new.id into taxonomy_ids; end case; update taxonomies_search_view set taxonomy_id = t.form_id, scope = t.scope, name = illuminate_text(f, s, 'name'), context = context.name, values_count = (select count(*) from taxonomy_taxon_links as link where link.taxonomy_id = t.id and link.archived_at is null), active_from = illuminate_text(f, s, 'activeFrom'), active_to = illuminate_text(f, s, 'activeTo'), updated_at = to_char(t.updated_at, 'YYYY-MM-DD"T"HH24:MI:SS.MS"Z"'), archived_at = to_char(t.archived_at, 'YYYY-MM-DD"T"HH24:MI:SS.MS"Z"') from taxonomies as t inner join object_contexts as context on (t.context_id = context.id) inner join object_forms as f on (f.id = t.form_id) inner join object_shadows as s on (s.id = t.shadow_id) where t.id = any (taxonomy_ids) and t.id = taxonomies_search_view.id; return null; end; $$ language plpgsql; drop trigger if exists insert_taxonomies_search_view_from_taxonomies on taxonomies; create trigger insert_taxonomies_search_view_from_taxonomies after insert on taxonomies for each row execute procedure insert_taxonomies_search_view_from_taxonomies_fn(); drop trigger if exists update_taxonomies_search_view_from_taxonomies_fn on taxonomies; create trigger update_taxonomies_search_view_from_taxonomies_fn after update on taxonomies for each row execute procedure update_taxonomies_search_view_from_taxonomies_fn(); drop trigger if exists update_taxonomies_search_view_from_taxons_fn on taxons; create trigger update_taxonomies_search_view_from_taxons_fn after insert or update on taxons for each row execute procedure update_taxonomies_search_view_from_taxonomies_fn(); drop trigger if exists update_taxonomies_search_view_from_taxonomy_taxon_links_fn on taxonomy_taxon_links; create trigger update_taxonomies_search_view_from_taxonomy_taxon_links_fn after insert or update on taxonomy_taxon_links for each row execute procedure update_taxonomies_search_view_from_taxonomies_fn();
<reponame>csouflis/postgres-react-text-search CREATE DATABASE partydb; create table users ( user_id INT, first_name VARCHAR(50), last_name VARCHAR(50) ); insert into users (user_id, first_name, last_name) values (1, 'Hartwell', 'Scoates'); insert into users (user_id, first_name, last_name) values (2, 'Buck', 'Wyley'); insert into users (user_id, first_name, last_name) values (3, 'Easter', 'Grimmert'); insert into users (user_id, first_name, last_name) values (4, 'Darryl', 'Bennedick'); insert into users (user_id, first_name, last_name) values (5, 'Eadie', 'Bordiss'); insert into users (user_id, first_name, last_name) values (6, 'Anabel', 'Rudinger'); insert into users (user_id, first_name, last_name) values (7, 'Gusella', 'Wearne'); insert into users (user_id, first_name, last_name) values (8, 'Burtie', 'Daines'); insert into users (user_id, first_name, last_name) values (9, 'Korella', 'Toon'); insert into users (user_id, first_name, last_name) values (10, 'Tamara', 'Huyche'); insert into users (user_id, first_name, last_name) values (11, 'Leland', 'Keysel'); insert into users (user_id, first_name, last_name) values (12, 'Imelda', 'Ratley'); insert into users (user_id, first_name, last_name) values (13, 'Adrea', 'Morde'); insert into users (user_id, first_name, last_name) values (14, 'Sandor', 'Walshaw'); insert into users (user_id, first_name, last_name) values (15, 'Rafaellle', 'Beeson'); insert into users (user_id, first_name, last_name) values (16, 'Brodie', 'Appleton'); insert into users (user_id, first_name, last_name) values (17, 'Zacherie', 'Jeenes'); insert into users (user_id, first_name, last_name) values (18, 'Luelle', 'Brinkman'); insert into users (user_id, first_name, last_name) values (19, 'Rosamund', 'Gunderson'); insert into users (user_id, first_name, last_name) values (20, 'Matias', 'McWilliam'); insert into users (user_id, first_name, last_name) values (21, 'Mike', 'Goring'); insert into users (user_id, first_name, last_name) values (22, 'Harbert', 'Lutas'); insert into users (user_id, first_name, last_name) values (23, 'Jaine', 'Alleyn'); insert into users (user_id, first_name, last_name) values (24, 'Zebadiah', 'Heinl'); insert into users (user_id, first_name, last_name) values (25, 'Dall', 'Hopewell'); insert into users (user_id, first_name, last_name) values (26, 'Doralynn', 'Minocchi'); insert into users (user_id, first_name, last_name) values (27, 'Eddy', 'Andrelli'); insert into users (user_id, first_name, last_name) values (28, 'Zorine', 'Sidnell'); insert into users (user_id, first_name, last_name) values (29, 'Eduino', 'Spoole'); insert into users (user_id, first_name, last_name) values (30, 'Everett', 'Joslyn'); insert into users (user_id, first_name, last_name) values (31, 'Tatum', 'Pacheco'); insert into users (user_id, first_name, last_name) values (32, 'Guthrie', 'Sauvage'); insert into users (user_id, first_name, last_name) values (33, 'Chrystal', 'Belvin'); insert into users (user_id, first_name, last_name) values (34, 'Federico', 'Odda'); insert into users (user_id, first_name, last_name) values (35, 'Delaney', 'Lunn'); insert into users (user_id, first_name, last_name) values (36, 'Kingston', 'Pavlasek'); insert into users (user_id, first_name, last_name) values (37, 'Janenna', 'Dzeniskevich'); insert into users (user_id, first_name, last_name) values (38, 'Kennedy', 'Flowerden'); insert into users (user_id, first_name, last_name) values (39, 'Babara', 'Palombi'); insert into users (user_id, first_name, last_name) values (40, 'Brigit', 'Pach'); insert into users (user_id, first_name, last_name) values (41, 'Egan', 'Bryceson'); insert into users (user_id, first_name, last_name) values (42, 'Garreth', 'Putman'); insert into users (user_id, first_name, last_name) values (43, 'Pansie', 'Springtorp'); insert into users (user_id, first_name, last_name) values (44, 'Alfy', 'Waison'); insert into users (user_id, first_name, last_name) values (45, 'Dolph', 'Gravenall'); insert into users (user_id, first_name, last_name) values (46, 'Gusti', 'McGuiney'); insert into users (user_id, first_name, last_name) values (47, 'Klemens', 'Gercke'); insert into users (user_id, first_name, last_name) values (48, 'Foss', 'Murr'); insert into users (user_id, first_name, last_name) values (49, 'Prent', 'Chastang'); insert into users (user_id, first_name, last_name) values (50, 'Trixi', 'Minchin'); insert into users (user_id, first_name, last_name) values (51, 'Costanza', 'Noury'); insert into users (user_id, first_name, last_name) values (52, 'Kermy', 'Forsdyke'); insert into users (user_id, first_name, last_name) values (53, 'Bald', 'Donegan'); insert into users (user_id, first_name, last_name) values (54, 'Carling', 'Plaskitt'); insert into users (user_id, first_name, last_name) values (55, 'Bernarr', 'Buckberry'); insert into users (user_id, first_name, last_name) values (56, 'Toby', 'McCorrie'); insert into users (user_id, first_name, last_name) values (57, 'Khalil', 'Seawell'); insert into users (user_id, first_name, last_name) values (58, 'Rica', 'Inglis'); insert into users (user_id, first_name, last_name) values (59, 'Marcela', 'Szwarc'); insert into users (user_id, first_name, last_name) values (60, 'Sal', 'Paquet'); insert into users (user_id, first_name, last_name) values (61, 'Deanna', 'Rankmore'); insert into users (user_id, first_name, last_name) values (62, 'Grove', 'Stubbings'); insert into users (user_id, first_name, last_name) values (63, 'Mona', 'O''Dooghaine'); insert into users (user_id, first_name, last_name) values (64, 'Suzann', 'Bain'); insert into users (user_id, first_name, last_name) values (65, 'Rube', 'Tetlow'); insert into users (user_id, first_name, last_name) values (66, 'Shalna', '<NAME>'); insert into users (user_id, first_name, last_name) values (67, 'Nap', '<NAME>'); insert into users (user_id, first_name, last_name) values (68, 'Gwen', 'Chilvers'); insert into users (user_id, first_name, last_name) values (69, 'Flor', 'Laurenzi'); insert into users (user_id, first_name, last_name) values (70, 'Abe', 'Romi'); insert into users (user_id, first_name, last_name) values (71, 'Franklin', 'Robley'); insert into users (user_id, first_name, last_name) values (72, 'Caesar', 'Ganiford'); insert into users (user_id, first_name, last_name) values (73, 'Ange', 'MacComiskey'); insert into users (user_id, first_name, last_name) values (74, 'Ginnie', 'Lemerie'); insert into users (user_id, first_name, last_name) values (75, 'Dyanne', 'Kerfod'); insert into users (user_id, first_name, last_name) values (76, 'Codie', 'Bruton'); insert into users (user_id, first_name, last_name) values (77, 'Mayor', 'Guidone'); insert into users (user_id, first_name, last_name) values (78, 'Alli', 'Vail'); insert into users (user_id, first_name, last_name) values (79, 'Holmes', 'Simner'); insert into users (user_id, first_name, last_name) values (80, 'Tonya', 'Oneal'); insert into users (user_id, first_name, last_name) values (81, 'Creight', 'McDougle'); insert into users (user_id, first_name, last_name) values (82, 'Carlyn', 'Stuehmeyer'); insert into users (user_id, first_name, last_name) values (83, 'Tamqrah', 'Chaundy'); insert into users (user_id, first_name, last_name) values (84, 'Rolland', 'Dwyr'); insert into users (user_id, first_name, last_name) values (85, 'Sigrid', 'Antrag'); insert into users (user_id, first_name, last_name) values (86, 'Gawain', 'Verdun'); insert into users (user_id, first_name, last_name) values (87, 'Hillery', 'Cloonan'); insert into users (user_id, first_name, last_name) values (88, 'Heddi', 'Durak'); insert into users (user_id, first_name, last_name) values (89, 'Granville', 'Strase'); insert into users (user_id, first_name, last_name) values (90, 'Deedee', 'Luggar'); insert into users (user_id, first_name, last_name) values (91, 'Westbrook', 'Vandrill'); insert into users (user_id, first_name, last_name) values (92, 'Reynold', 'Pardy'); insert into users (user_id, first_name, last_name) values (93, 'Welch', 'Hacard'); insert into users (user_id, first_name, last_name) values (94, 'Riobard', 'Karoly'); insert into users (user_id, first_name, last_name) values (95, 'Herschel', 'Jeynes'); insert into users (user_id, first_name, last_name) values (96, 'Kipp', 'Minihane'); insert into users (user_id, first_name, last_name) values (97, 'Sigvard', 'Durrans'); insert into users (user_id, first_name, last_name) values (98, 'Leeland', 'Claasen'); insert into users (user_id, first_name, last_name) values (99, 'Devin', 'Couvert'); insert into users (user_id, first_name, last_name) values (100, 'Myra', 'Bruntje'); insert into users (user_id, first_name, last_name) values (101, 'Melli', 'Randlesome'); insert into users (user_id, first_name, last_name) values (102, 'Gaelan', 'Hucklesby'); insert into users (user_id, first_name, last_name) values (103, 'Cullen', 'Dilloway'); insert into users (user_id, first_name, last_name) values (104, 'Bradley', 'Abramov'); insert into users (user_id, first_name, last_name) values (105, 'Carin', 'Agett'); insert into users (user_id, first_name, last_name) values (106, 'Bobinette', 'Tizard'); insert into users (user_id, first_name, last_name) values (107, 'Elfrieda', 'Mein'); insert into users (user_id, first_name, last_name) values (108, 'Chelsea', 'Ovise'); insert into users (user_id, first_name, last_name) values (109, 'Dulce', 'Fust'); insert into users (user_id, first_name, last_name) values (110, 'Crissy', 'Avrahm'); insert into users (user_id, first_name, last_name) values (111, 'Annie', 'Godfree'); insert into users (user_id, first_name, last_name) values (112, 'Ashley', 'Moyne'); insert into users (user_id, first_name, last_name) values (113, 'Ivie', 'Cuddehy'); insert into users (user_id, first_name, last_name) values (114, 'Maria', 'Reddihough'); insert into users (user_id, first_name, last_name) values (115, 'Aimil', 'Jennick'); insert into users (user_id, first_name, last_name) values (116, 'Ellswerth', 'Wagen'); insert into users (user_id, first_name, last_name) values (117, 'Feliza', 'Ebden'); insert into users (user_id, first_name, last_name) values (118, 'Eudora', 'Blomfield'); insert into users (user_id, first_name, last_name) values (119, 'Janice', 'Bremond'); insert into users (user_id, first_name, last_name) values (120, 'Goldarina', 'MacCurtain'); insert into users (user_id, first_name, last_name) values (121, 'Griff', 'Plett'); insert into users (user_id, first_name, last_name) values (122, 'Christy', 'O''Coskerry'); insert into users (user_id, first_name, last_name) values (123, 'Rubina', 'Gabites'); insert into users (user_id, first_name, last_name) values (124, 'Dallas', 'Cockren'); insert into users (user_id, first_name, last_name) values (125, 'Quintilla', 'Renol'); insert into users (user_id, first_name, last_name) values (126, 'Mattheus', 'Houldin'); insert into users (user_id, first_name, last_name) values (127, 'Isidoro', 'Pirazzi'); insert into users (user_id, first_name, last_name) values (128, 'Lyndy', 'Beton'); insert into users (user_id, first_name, last_name) values (129, 'Sherman', 'Medeway'); insert into users (user_id, first_name, last_name) values (130, 'Florri', 'Duffell'); insert into users (user_id, first_name, last_name) values (131, 'Dorothea', 'Davidy'); insert into users (user_id, first_name, last_name) values (132, 'Sande', 'Bentz'); insert into users (user_id, first_name, last_name) values (133, 'Genevra', 'Dewen'); insert into users (user_id, first_name, last_name) values (134, 'Risa', 'Fagge'); insert into users (user_id, first_name, last_name) values (135, 'Valentijn', 'Croney'); insert into users (user_id, first_name, last_name) values (136, 'Franz', 'Antonazzi'); insert into users (user_id, first_name, last_name) values (137, 'Esme', 'Grimsditch'); insert into users (user_id, first_name, last_name) values (138, 'Amil', 'Knoller'); insert into users (user_id, first_name, last_name) values (139, 'Albertina', 'Conrad'); insert into users (user_id, first_name, last_name) values (140, 'Blair', 'Curror'); insert into users (user_id, first_name, last_name) values (141, 'Shelby', 'Patrono'); insert into users (user_id, first_name, last_name) values (142, 'Rutledge', 'Ferreri'); insert into users (user_id, first_name, last_name) values (143, 'Charity', 'Goly'); insert into users (user_id, first_name, last_name) values (144, 'Haily', 'Hedley'); insert into users (user_id, first_name, last_name) values (145, 'Garek', 'Bythway'); insert into users (user_id, first_name, last_name) values (146, 'Juana', 'Bottomley'); insert into users (user_id, first_name, last_name) values (147, 'Shawn', 'Mariolle'); insert into users (user_id, first_name, last_name) values (148, 'Gale', 'Oldacres'); insert into users (user_id, first_name, last_name) values (149, 'Douglass', 'Kitchin'); insert into users (user_id, first_name, last_name) values (150, 'Roarke', 'Ucchino'); insert into users (user_id, first_name, last_name) values (151, 'Ginni', 'Brandle'); insert into users (user_id, first_name, last_name) values (152, 'Ahmed', 'Morbey'); insert into users (user_id, first_name, last_name) values (153, 'Chevalier', 'O''Doireidh'); insert into users (user_id, first_name, last_name) values (154, 'Bert', 'Jacklin'); insert into users (user_id, first_name, last_name) values (155, 'Ikey', 'Grabeham'); insert into users (user_id, first_name, last_name) values (156, 'Leigh', 'Primmer'); insert into users (user_id, first_name, last_name) values (157, 'Mariska', 'Dallas'); insert into users (user_id, first_name, last_name) values (158, 'Simona', 'Grinikhin'); insert into users (user_id, first_name, last_name) values (159, 'Sukey', 'Whilde'); insert into users (user_id, first_name, last_name) values (160, 'Clair', 'Pummell'); insert into users (user_id, first_name, last_name) values (161, 'Brady', 'Flower'); insert into users (user_id, first_name, last_name) values (162, 'Peder', 'Chatteris'); insert into users (user_id, first_name, last_name) values (163, 'Jean', 'Walden'); insert into users (user_id, first_name, last_name) values (164, 'Murdock', 'Chrestien'); insert into users (user_id, first_name, last_name) values (165, 'Florrie', 'Scoullar'); insert into users (user_id, first_name, last_name) values (166, 'Mitzi', 'McMichell'); insert into users (user_id, first_name, last_name) values (167, 'Lilli', 'Cline'); insert into users (user_id, first_name, last_name) values (168, 'Haslett', 'Odeson'); insert into users (user_id, first_name, last_name) values (169, 'Bertram', 'Aucutt'); insert into users (user_id, first_name, last_name) values (170, 'Warden', 'Moult'); insert into users (user_id, first_name, last_name) values (171, 'Bari', 'Jachimiak'); insert into users (user_id, first_name, last_name) values (172, 'Ashbey', 'Pallis'); insert into users (user_id, first_name, last_name) values (173, 'Noach', 'Riseborough'); insert into users (user_id, first_name, last_name) values (174, 'Ammamaria', 'Blackmore'); insert into users (user_id, first_name, last_name) values (175, 'Tiff', 'Bunworth'); insert into users (user_id, first_name, last_name) values (176, 'Binni', 'Bartaloni'); insert into users (user_id, first_name, last_name) values (177, 'Margarethe', 'Vasyukhin'); insert into users (user_id, first_name, last_name) values (178, 'Sherwood', 'Pressey'); insert into users (user_id, first_name, last_name) values (179, 'Sonja', 'Ferrettini'); insert into users (user_id, first_name, last_name) values (180, 'Gilemette', 'Fortey'); insert into users (user_id, first_name, last_name) values (181, 'Benny', 'Coughtrey'); insert into users (user_id, first_name, last_name) values (182, 'Kevan', 'Whall'); insert into users (user_id, first_name, last_name) values (183, 'Krysta', 'Halegarth'); insert into users (user_id, first_name, last_name) values (184, 'Roman', 'Seivertsen'); insert into users (user_id, first_name, last_name) values (185, 'Meier', 'Mityashev'); insert into users (user_id, first_name, last_name) values (186, 'Guenevere', 'Filippucci'); insert into users (user_id, first_name, last_name) values (187, 'Neilla', 'Sichardt'); insert into users (user_id, first_name, last_name) values (188, 'Banky', 'Koppe'); insert into users (user_id, first_name, last_name) values (189, 'Bruis', 'Anand'); insert into users (user_id, first_name, last_name) values (190, 'Haily', 'Streatfeild'); insert into users (user_id, first_name, last_name) values (191, 'Essie', 'Chaffey'); insert into users (user_id, first_name, last_name) values (192, 'Siward', 'Armatage'); insert into users (user_id, first_name, last_name) values (193, 'Brigida', 'McClaurie'); insert into users (user_id, first_name, last_name) values (194, 'Iggie', 'Hesser'); insert into users (user_id, first_name, last_name) values (195, 'Abe', 'Tieraney'); insert into users (user_id, first_name, last_name) values (196, 'Billy', 'Togher'); insert into users (user_id, first_name, last_name) values (197, 'Leola', 'Elizabeth'); insert into users (user_id, first_name, last_name) values (198, 'Buck', 'Cleynaert'); insert into users (user_id, first_name, last_name) values (199, 'Aldus', 'MacCallion'); insert into users (user_id, first_name, last_name) values (200, 'Byrom', 'Tregale'); insert into users (user_id, first_name, last_name) values (201, 'Keenan', 'Brownlea'); insert into users (user_id, first_name, last_name) values (202, 'Lonni', 'Czajkowski'); insert into users (user_id, first_name, last_name) values (203, 'Jorge', 'Bernhard'); insert into users (user_id, first_name, last_name) values (204, 'Dillie', 'Baumber'); insert into users (user_id, first_name, last_name) values (205, 'Danyelle', 'Ryle'); insert into users (user_id, first_name, last_name) values (206, 'Stirling', 'Jorioz'); insert into users (user_id, first_name, last_name) values (207, 'Kinnie', 'Stansfield'); insert into users (user_id, first_name, last_name) values (208, 'Gary', 'Traut'); insert into users (user_id, first_name, last_name) values (209, 'Salomon', 'Dymocke'); insert into users (user_id, first_name, last_name) values (210, 'Reta', 'Kinnie'); insert into users (user_id, first_name, last_name) values (211, 'Quintina', 'Trussman'); insert into users (user_id, first_name, last_name) values (212, 'Correna', 'Benallack'); insert into users (user_id, first_name, last_name) values (213, 'Husain', 'Dorbon'); insert into users (user_id, first_name, last_name) values (214, 'Daveta', 'Pepler'); insert into users (user_id, first_name, last_name) values (215, 'Westley', 'Gipps'); insert into users (user_id, first_name, last_name) values (216, 'Nadia', 'Othen'); insert into users (user_id, first_name, last_name) values (217, 'Britte', 'Muckloe'); insert into users (user_id, first_name, last_name) values (218, 'Crysta', 'Mothersole'); insert into users (user_id, first_name, last_name) values (219, 'Gustavus', 'Serle'); insert into users (user_id, first_name, last_name) values (220, 'Gwennie', 'McOwan'); insert into users (user_id, first_name, last_name) values (221, 'Regan', 'Seagood'); insert into users (user_id, first_name, last_name) values (222, 'Janel', 'Baptiste'); insert into users (user_id, first_name, last_name) values (223, 'Shelton', 'Bartosinski'); insert into users (user_id, first_name, last_name) values (224, 'Helene', 'Chippindale'); insert into users (user_id, first_name, last_name) values (225, 'Patric', 'O''Doogan'); insert into users (user_id, first_name, last_name) values (226, 'Tamara', 'Tilliards'); insert into users (user_id, first_name, last_name) values (227, 'Spense', 'Mouget'); insert into users (user_id, first_name, last_name) values (228, 'Rick', 'Connue'); insert into users (user_id, first_name, last_name) values (229, 'Adrian', 'Joselson'); insert into users (user_id, first_name, last_name) values (230, 'Caren', 'Stoving'); insert into users (user_id, first_name, last_name) values (231, 'Opal', 'Coleyshaw'); insert into users (user_id, first_name, last_name) values (232, 'Brandy', 'Zorzi'); insert into users (user_id, first_name, last_name) values (233, 'Melba', 'Peaple'); insert into users (user_id, first_name, last_name) values (234, 'Morly', 'Hadlington'); insert into users (user_id, first_name, last_name) values (235, 'Merwin', 'Whapple'); insert into users (user_id, first_name, last_name) values (236, 'Arden', 'MacRinn'); insert into users (user_id, first_name, last_name) values (237, 'Hendrik', 'Kears'); insert into users (user_id, first_name, last_name) values (238, 'Hall', 'Cline'); insert into users (user_id, first_name, last_name) values (239, 'Duane', 'Kitching'); insert into users (user_id, first_name, last_name) values (240, 'Corny', 'Donlon'); insert into users (user_id, first_name, last_name) values (241, 'Becki', 'Walters'); insert into users (user_id, first_name, last_name) values (242, 'Britt', 'Robe'); insert into users (user_id, first_name, last_name) values (243, 'Hasheem', 'Pittle'); insert into users (user_id, first_name, last_name) values (244, 'Willie', 'Trehearne'); insert into users (user_id, first_name, last_name) values (245, 'Courtney', 'Troy'); insert into users (user_id, first_name, last_name) values (246, 'Lynda', 'Dougill'); insert into users (user_id, first_name, last_name) values (247, 'Benetta', 'Shephard'); insert into users (user_id, first_name, last_name) values (248, 'Ham', 'Phillps'); insert into users (user_id, first_name, last_name) values (249, 'Ermanno', 'Lagde'); insert into users (user_id, first_name, last_name) values (250, 'Cassey', 'Armall'); insert into users (user_id, first_name, last_name) values (251, 'Janella', 'Hammant'); insert into users (user_id, first_name, last_name) values (252, 'Raleigh', 'Maken'); insert into users (user_id, first_name, last_name) values (253, 'Scottie', 'Cooper'); insert into users (user_id, first_name, last_name) values (254, 'Alva', 'Guerry'); insert into users (user_id, first_name, last_name) values (255, 'Aurore', 'Champken'); insert into users (user_id, first_name, last_name) values (256, 'Adolf', 'Timmis'); insert into users (user_id, first_name, last_name) values (257, 'Leola', 'Reichhardt'); insert into users (user_id, first_name, last_name) values (258, 'Bronnie', 'McTurk'); insert into users (user_id, first_name, last_name) values (259, 'Denice', 'Bolstridge'); insert into users (user_id, first_name, last_name) values (260, 'Vincent', 'Spears'); insert into users (user_id, first_name, last_name) values (261, 'Nicko', 'Silber'); insert into users (user_id, first_name, last_name) values (262, 'Edmon', 'Brandes'); insert into users (user_id, first_name, last_name) values (263, 'Madalena', 'Jessup'); insert into users (user_id, first_name, last_name) values (264, 'Desmond', 'Iskowitz'); insert into users (user_id, first_name, last_name) values (265, 'Arliene', 'Llewhellin'); insert into users (user_id, first_name, last_name) values (266, 'Lynda', 'Borghese'); insert into users (user_id, first_name, last_name) values (267, 'Bo', 'Lorman'); insert into users (user_id, first_name, last_name) values (268, 'Dania', 'Beaven'); insert into users (user_id, first_name, last_name) values (269, 'Osbourne', 'McSorley'); insert into users (user_id, first_name, last_name) values (270, 'Dyanna', 'Motte'); insert into users (user_id, first_name, last_name) values (271, 'Valerye', 'Americi'); insert into users (user_id, first_name, last_name) values (272, 'Lucinda', 'Lewerenz'); insert into users (user_id, first_name, last_name) values (273, 'Pearl', 'McNicol'); insert into users (user_id, first_name, last_name) values (274, 'Aaren', 'Scollard'); insert into users (user_id, first_name, last_name) values (275, 'Lolita', 'McComish'); insert into users (user_id, first_name, last_name) values (276, 'Janette', 'Paskins'); insert into users (user_id, first_name, last_name) values (277, 'Alis', 'Stradling'); insert into users (user_id, first_name, last_name) values (278, 'Dulci', 'Enrdigo'); insert into users (user_id, first_name, last_name) values (279, 'Cheri', 'Becconsall'); insert into users (user_id, first_name, last_name) values (280, 'Flossi', 'Dagnan'); insert into users (user_id, first_name, last_name) values (281, 'Elwood', 'Charlton'); insert into users (user_id, first_name, last_name) values (282, 'Stefa', 'Hartwell'); insert into users (user_id, first_name, last_name) values (283, 'Duffie', 'Liffey'); insert into users (user_id, first_name, last_name) values (284, 'Belicia', 'Gatteridge'); insert into users (user_id, first_name, last_name) values (285, 'Lorettalorna', 'Kittel'); insert into users (user_id, first_name, last_name) values (286, 'Felecia', 'Robroe'); insert into users (user_id, first_name, last_name) values (287, 'Lizzie', 'Alben'); insert into users (user_id, first_name, last_name) values (288, 'Chastity', 'Triebner'); insert into users (user_id, first_name, last_name) values (289, 'Ryley', 'Duffy'); insert into users (user_id, first_name, last_name) values (290, 'Maisey', 'Hamshaw'); insert into users (user_id, first_name, last_name) values (291, 'Darius', 'Baudrey'); insert into users (user_id, first_name, last_name) values (292, 'Allene', 'Ifill'); insert into users (user_id, first_name, last_name) values (293, 'Beatrix', 'Sibthorp'); insert into users (user_id, first_name, last_name) values (294, 'Neel', 'Balassi'); insert into users (user_id, first_name, last_name) values (295, 'Margaretha', 'Rauprich'); insert into users (user_id, first_name, last_name) values (296, 'Margarete', 'Atkin'); insert into users (user_id, first_name, last_name) values (297, 'Gail', 'Helliwell'); insert into users (user_id, first_name, last_name) values (298, 'Bellanca', 'Beddoes'); insert into users (user_id, first_name, last_name) values (299, 'Trumann', 'Call'); insert into users (user_id, first_name, last_name) values (300, 'Wainwright', 'McAlester'); insert into users (user_id, first_name, last_name) values (301, 'Lisa', 'Olphert'); insert into users (user_id, first_name, last_name) values (302, 'Delia', 'Gyngell'); insert into users (user_id, first_name, last_name) values (303, 'Neille', 'Will'); insert into users (user_id, first_name, last_name) values (304, 'Burt', 'Wadge'); insert into users (user_id, first_name, last_name) values (305, 'Elora', 'Slowan'); insert into users (user_id, first_name, last_name) values (306, 'Celine', 'Barfford'); insert into users (user_id, first_name, last_name) values (307, 'Terza', 'Racine'); insert into users (user_id, first_name, last_name) values (308, 'Ronny', 'Simionato'); insert into users (user_id, first_name, last_name) values (309, 'Vivyanne', 'Patzelt'); insert into users (user_id, first_name, last_name) values (310, 'Clair', 'Meake'); insert into users (user_id, first_name, last_name) values (311, 'Clair', 'Redwall'); insert into users (user_id, first_name, last_name) values (312, 'Carling', 'Chaston'); insert into users (user_id, first_name, last_name) values (313, 'Yasmeen', 'Linning'); insert into users (user_id, first_name, last_name) values (314, 'Timmi', 'Diggens'); insert into users (user_id, first_name, last_name) values (315, 'Rockie', '<NAME>'); insert into users (user_id, first_name, last_name) values (316, 'Johann', 'Jaegar'); insert into users (user_id, first_name, last_name) values (317, 'Tiffie', 'Bobasch'); insert into users (user_id, first_name, last_name) values (318, 'Maury', 'Coombs'); insert into users (user_id, first_name, last_name) values (319, 'Rupert', 'Delyth'); insert into users (user_id, first_name, last_name) values (320, 'Nicolis', 'O''Mannion'); insert into users (user_id, first_name, last_name) values (321, 'Steffi', 'Zannotelli'); insert into users (user_id, first_name, last_name) values (322, 'Koenraad', 'Skeen'); insert into users (user_id, first_name, last_name) values (323, 'Loutitia', 'Reany'); insert into users (user_id, first_name, last_name) values (324, 'Salomon', 'Cottham'); insert into users (user_id, first_name, last_name) values (325, 'Mollee', 'Kunrad'); insert into users (user_id, first_name, last_name) values (326, 'Hurley', 'Parmenter'); insert into users (user_id, first_name, last_name) values (327, 'Jaquelyn', 'Leggan'); insert into users (user_id, first_name, last_name) values (328, 'Constance', 'Minter'); insert into users (user_id, first_name, last_name) values (329, 'Amity', 'Hurd'); insert into users (user_id, first_name, last_name) values (330, 'Claudette', 'Eslie'); insert into users (user_id, first_name, last_name) values (331, 'Franky', 'Berringer'); insert into users (user_id, first_name, last_name) values (332, 'Broddy', 'Soitoux'); insert into users (user_id, first_name, last_name) values (333, 'Vina', 'Houlworth'); insert into users (user_id, first_name, last_name) values (334, 'Barron', 'Heazel'); insert into users (user_id, first_name, last_name) values (335, 'Oberon', 'Mineghelli'); insert into users (user_id, first_name, last_name) values (336, 'Merle', 'Stambridge'); insert into users (user_id, first_name, last_name) values (337, 'Ali', 'Briston'); insert into users (user_id, first_name, last_name) values (338, 'Harry', 'Dredge'); insert into users (user_id, first_name, last_name) values (339, 'Siana', 'McIlveen'); insert into users (user_id, first_name, last_name) values (340, 'Tallie', 'Dunaway'); insert into users (user_id, first_name, last_name) values (341, 'Christophe', 'Philot'); insert into users (user_id, first_name, last_name) values (342, 'Josy', 'Reavell'); insert into users (user_id, first_name, last_name) values (343, 'Dixie', 'Hallibone'); insert into users (user_id, first_name, last_name) values (344, 'Jacquenette', 'Krimmer'); insert into users (user_id, first_name, last_name) values (345, 'Addia', 'Domm'); insert into users (user_id, first_name, last_name) values (346, 'Tori', 'Daintith'); insert into users (user_id, first_name, last_name) values (347, 'Reade', 'Portman'); insert into users (user_id, first_name, last_name) values (348, 'Martelle', 'Rothschild'); insert into users (user_id, first_name, last_name) values (349, 'Bartholomeo', 'Perry'); insert into users (user_id, first_name, last_name) values (350, 'Jed', 'Airey'); insert into users (user_id, first_name, last_name) values (351, 'Natale', 'Shevlane'); insert into users (user_id, first_name, last_name) values (352, 'Leroi', 'Mattea'); insert into users (user_id, first_name, last_name) values (353, 'Ursuline', 'Livings'); insert into users (user_id, first_name, last_name) values (354, 'Danila', 'Stollenhof'); insert into users (user_id, first_name, last_name) values (355, 'Hollyanne', 'Cridlon'); insert into users (user_id, first_name, last_name) values (356, 'Oneida', 'Treat'); insert into users (user_id, first_name, last_name) values (357, 'Lance', 'Artist'); insert into users (user_id, first_name, last_name) values (358, 'Rafe', 'Bourhill'); insert into users (user_id, first_name, last_name) values (359, 'Ina', 'Arundale'); insert into users (user_id, first_name, last_name) values (360, 'Goddard', 'Derrell'); insert into users (user_id, first_name, last_name) values (361, 'Kristel', 'Godsafe'); insert into users (user_id, first_name, last_name) values (362, 'Garrett', 'Cossins'); insert into users (user_id, first_name, last_name) values (363, 'Krissie', 'Cestard'); insert into users (user_id, first_name, last_name) values (364, 'Butch', 'Keyse'); insert into users (user_id, first_name, last_name) values (365, 'York', 'Pendle'); insert into users (user_id, first_name, last_name) values (366, 'Sidoney', 'Gaylor'); insert into users (user_id, first_name, last_name) values (367, 'Elyn', 'Srutton'); insert into users (user_id, first_name, last_name) values (368, 'Willdon', 'Ferrar'); insert into users (user_id, first_name, last_name) values (369, 'Nahum', 'Shynn'); insert into users (user_id, first_name, last_name) values (370, 'Jacinta', 'Clarage'); insert into users (user_id, first_name, last_name) values (371, 'Erroll', 'Bloodworthe'); insert into users (user_id, first_name, last_name) values (372, 'Findley', 'Merrell'); insert into users (user_id, first_name, last_name) values (373, 'Brooks', 'Burnitt'); insert into users (user_id, first_name, last_name) values (374, 'Egor', 'Antognazzi'); insert into users (user_id, first_name, last_name) values (375, 'Kristan', 'Verity'); insert into users (user_id, first_name, last_name) values (376, 'Verney', 'Tolliday'); insert into users (user_id, first_name, last_name) values (377, 'Adriane', 'Spritt'); insert into users (user_id, first_name, last_name) values (378, 'Lemar', 'Maddison'); insert into users (user_id, first_name, last_name) values (379, 'Olivier', 'Viscovi'); insert into users (user_id, first_name, last_name) values (380, 'Gabby', 'Tratton'); insert into users (user_id, first_name, last_name) values (381, 'Carita', 'Ferns'); insert into users (user_id, first_name, last_name) values (382, 'Hussein', 'Couthard'); insert into users (user_id, first_name, last_name) values (383, 'Winnie', 'Bilton'); insert into users (user_id, first_name, last_name) values (384, 'Dell', 'Bearblock'); insert into users (user_id, first_name, last_name) values (385, 'Rae', 'Stores'); insert into users (user_id, first_name, last_name) values (386, 'Friedrich', 'Luckey'); insert into users (user_id, first_name, last_name) values (387, 'Salomo', 'Vondrys'); insert into users (user_id, first_name, last_name) values (388, 'Xylia', 'Bewshaw'); insert into users (user_id, first_name, last_name) values (389, 'Tye', 'Coldicott'); insert into users (user_id, first_name, last_name) values (390, 'Alessandro', 'Annwyl'); insert into users (user_id, first_name, last_name) values (391, 'Angelo', 'Nowick'); insert into users (user_id, first_name, last_name) values (392, 'Scottie', 'MacKall'); insert into users (user_id, first_name, last_name) values (393, 'Otis', 'Russell'); insert into users (user_id, first_name, last_name) values (394, 'Elva', 'Cheasman'); insert into users (user_id, first_name, last_name) values (395, 'Lucinda', 'Bowell'); insert into users (user_id, first_name, last_name) values (396, 'Florri', 'Bidgood'); insert into users (user_id, first_name, last_name) values (397, 'Filberte', 'Boerderman'); insert into users (user_id, first_name, last_name) values (398, 'Ernie', 'Elden'); insert into users (user_id, first_name, last_name) values (399, 'Alla', 'Bold'); insert into users (user_id, first_name, last_name) values (400, 'Dieter', 'Grestye'); insert into users (user_id, first_name, last_name) values (401, 'Marlo', 'Teligin'); insert into users (user_id, first_name, last_name) values (402, 'Lauralee', 'Fladgate'); insert into users (user_id, first_name, last_name) values (403, 'Flin', 'Whittet'); insert into users (user_id, first_name, last_name) values (404, 'Norean', 'Ziehm'); insert into users (user_id, first_name, last_name) values (405, 'Lorry', 'Sparshutt'); insert into users (user_id, first_name, last_name) values (406, 'Tabbitha', 'Lydiard'); insert into users (user_id, first_name, last_name) values (407, 'Allsun', 'Gilbart'); insert into users (user_id, first_name, last_name) values (408, 'Marna', 'Meus'); insert into users (user_id, first_name, last_name) values (409, 'Ede', 'Gander'); insert into users (user_id, first_name, last_name) values (410, 'Douglass', 'O''Logan'); insert into users (user_id, first_name, last_name) values (411, 'Udale', 'Lamble'); insert into users (user_id, first_name, last_name) values (412, 'Raleigh', 'Bedberry'); insert into users (user_id, first_name, last_name) values (413, 'Kimmi', 'Oylett'); insert into users (user_id, first_name, last_name) values (414, 'Maurita', 'Bracher'); insert into users (user_id, first_name, last_name) values (415, 'Evie', 'Coppens'); insert into users (user_id, first_name, last_name) values (416, 'Sheffy', 'Pagan'); insert into users (user_id, first_name, last_name) values (417, 'Greer', 'Mustchin'); insert into users (user_id, first_name, last_name) values (418, 'Joseph', 'MacMichael'); insert into users (user_id, first_name, last_name) values (419, 'Buiron', 'Charette'); insert into users (user_id, first_name, last_name) values (420, 'Allix', 'Currall'); insert into users (user_id, first_name, last_name) values (421, 'Fabian', 'Pritchard'); insert into users (user_id, first_name, last_name) values (422, 'Carmelia', 'Bysouth'); insert into users (user_id, first_name, last_name) values (423, 'Suzanna', 'Challiss'); insert into users (user_id, first_name, last_name) values (424, 'Erinna', 'Balasin'); insert into users (user_id, first_name, last_name) values (425, 'Corina', 'Fursland'); insert into users (user_id, first_name, last_name) values (426, 'Queenie', 'Seville'); insert into users (user_id, first_name, last_name) values (427, 'Zachary', 'Wigan'); insert into users (user_id, first_name, last_name) values (428, 'Ronalda', 'Biasioli'); insert into users (user_id, first_name, last_name) values (429, 'Catherine', 'Yurocjkin'); insert into users (user_id, first_name, last_name) values (430, 'Shelby', 'Hintze'); insert into users (user_id, first_name, last_name) values (431, 'Desmund', 'Peele'); insert into users (user_id, first_name, last_name) values (432, 'Nickey', 'Heningam'); insert into users (user_id, first_name, last_name) values (433, 'Bethena', 'Gilhool'); insert into users (user_id, first_name, last_name) values (434, 'Friedrich', 'Abramamov'); insert into users (user_id, first_name, last_name) values (435, 'Emlyn', 'Nequest'); insert into users (user_id, first_name, last_name) values (436, 'Alessandra', 'Gosland'); insert into users (user_id, first_name, last_name) values (437, 'Venita', 'Lyfield'); insert into users (user_id, first_name, last_name) values (438, 'Vivien', 'Maffioletti'); insert into users (user_id, first_name, last_name) values (439, 'Clo', 'Gomby'); insert into users (user_id, first_name, last_name) values (440, 'Quincey', 'Hamill'); insert into users (user_id, first_name, last_name) values (441, 'Harrie', 'Fenich'); insert into users (user_id, first_name, last_name) values (442, 'Felipa', 'Raccio'); insert into users (user_id, first_name, last_name) values (443, 'Dyann', 'Pesterfield'); insert into users (user_id, first_name, last_name) values (444, 'Harri', 'Gillum'); insert into users (user_id, first_name, last_name) values (445, 'Carlynne', 'Russel'); insert into users (user_id, first_name, last_name) values (446, 'Conny', 'Easom'); insert into users (user_id, first_name, last_name) values (447, 'Cicily', 'Bentall'); insert into users (user_id, first_name, last_name) values (448, 'Diandra', 'Grenter'); insert into users (user_id, first_name, last_name) values (449, 'Ab', 'Maciaszczyk'); insert into users (user_id, first_name, last_name) values (450, 'Cesare', 'Peachment'); insert into users (user_id, first_name, last_name) values (451, 'Prent', 'MacCahey'); insert into users (user_id, first_name, last_name) values (452, 'Odele', 'Standrin'); insert into users (user_id, first_name, last_name) values (453, 'Roger', 'Brandone'); insert into users (user_id, first_name, last_name) values (454, 'Orson', 'Faill'); insert into users (user_id, first_name, last_name) values (455, 'Ricki', 'Dartnall'); insert into users (user_id, first_name, last_name) values (456, 'Gian', 'Wickes'); insert into users (user_id, first_name, last_name) values (457, 'Ursa', 'Edmondson'); insert into users (user_id, first_name, last_name) values (458, 'Stavro', 'Shovelin'); insert into users (user_id, first_name, last_name) values (459, 'Maud', 'Verdy'); insert into users (user_id, first_name, last_name) values (460, 'Adriana', 'Roberson'); insert into users (user_id, first_name, last_name) values (461, 'Coralie', 'Woodhouse'); insert into users (user_id, first_name, last_name) values (462, 'Maynord', 'Rangall'); insert into users (user_id, first_name, last_name) values (463, 'Diann', 'Liddiard'); insert into users (user_id, first_name, last_name) values (464, 'Rubina', 'MacNamee'); insert into users (user_id, first_name, last_name) values (465, 'Minor', 'Fevers'); insert into users (user_id, first_name, last_name) values (466, 'Hattie', 'Trillo'); insert into users (user_id, first_name, last_name) values (467, 'Nero', 'Haycock'); insert into users (user_id, first_name, last_name) values (468, 'Jacqueline', 'Balstone'); insert into users (user_id, first_name, last_name) values (469, 'Eleanora', 'Bordessa'); insert into users (user_id, first_name, last_name) values (470, 'Moyra', 'Revie'); insert into users (user_id, first_name, last_name) values (471, 'Cindy', 'McNelis'); insert into users (user_id, first_name, last_name) values (472, 'Catlaina', 'Davison'); insert into users (user_id, first_name, last_name) values (473, 'Petronille', 'Cuardall'); insert into users (user_id, first_name, last_name) values (474, 'Carce', 'Jennery'); insert into users (user_id, first_name, last_name) values (475, 'Dru', 'Rolf'); insert into users (user_id, first_name, last_name) values (476, 'Tod', 'Verralls'); insert into users (user_id, first_name, last_name) values (477, 'Kenyon', 'Pickless'); insert into users (user_id, first_name, last_name) values (478, 'Yul', 'Howell'); insert into users (user_id, first_name, last_name) values (479, 'Jobye', 'Jamblin'); insert into users (user_id, first_name, last_name) values (480, 'Emma', 'Asche'); insert into users (user_id, first_name, last_name) values (481, 'Shina', '<NAME>'); insert into users (user_id, first_name, last_name) values (482, 'Crissie', 'Mattin'); insert into users (user_id, first_name, last_name) values (483, 'Shaun', 'Klaiser'); insert into users (user_id, first_name, last_name) values (484, 'Raphael', 'Devereu'); insert into users (user_id, first_name, last_name) values (485, 'Harvey', 'Bax'); insert into users (user_id, first_name, last_name) values (486, 'Will', 'Ballham'); insert into users (user_id, first_name, last_name) values (487, 'Claudine', 'Ebanks'); insert into users (user_id, first_name, last_name) values (488, 'Scottie', 'Devo'); insert into users (user_id, first_name, last_name) values (489, 'Raina', 'Tytterton'); insert into users (user_id, first_name, last_name) values (490, 'Valentino', 'Stubbeley'); insert into users (user_id, first_name, last_name) values (491, 'Theadora', 'Ellington'); insert into users (user_id, first_name, last_name) values (492, 'Beniamino', 'Sharnock'); insert into users (user_id, first_name, last_name) values (493, 'Carlo', 'Rachuig'); insert into users (user_id, first_name, last_name) values (494, 'Adrianne', 'Avard'); insert into users (user_id, first_name, last_name) values (495, 'Kala', 'Cresswell'); insert into users (user_id, first_name, last_name) values (496, 'Charlot', 'O''Harney'); insert into users (user_id, first_name, last_name) values (497, 'Moshe', 'Lillie'); insert into users (user_id, first_name, last_name) values (498, 'Tait', 'Hegley'); insert into users (user_id, first_name, last_name) values (499, 'Ursala', 'Allso'); insert into users (user_id, first_name, last_name) values (500, 'Robinette', 'Willisch');
ALTER TABLE photos ALTER COLUMN width SET NOT NULL; ALTER TABLE photos ALTER COLUMN height SET NOT NULL;
CREATE TABLE IF NOT EXISTS note ( id INT NOT NULL AUTO_INCREMENT, text VARCHAR NOT NULL ); CREATE TABLE IF NOT EXISTS author ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR NOT NULL );
<filename>src/test/resources/sql/savepoint/bb635eea.sql -- file:foreign_key.sql ln:872 expect:true SAVEPOINT savept1
-- file:create_table.sql ln:498 expect:true CREATE TEMP TABLE temp_parted ( a int ) PARTITION BY LIST (a)
ALTER TABLE frames ADD COLUMN tags text[];
<reponame>machengim/MyLib ALTER TABLE site ADD allow_guest INTEGER NOT NULL DEFAULT 0; CREATE TABLE IF NOT EXISTS hidden ( hidden_id INTEGER PRIMARY KEY, path TEXT NOT NULL UNIQUE, least_permission INTEGER NOT NULL DEFAULT 0 );
CREATE TABLE Inventory ( BookCode CHAR(4) not null, BranchNum DECIMAL(2,0) not null, OnHand DECIMAL(2,0), constraint Invent_pk primary key(BookCode, BranchNum), constraint InventBranch_fk foreign key (BranchNum) references Branch(branchNum) ); -- Insertion of forty seven Inventory rows INSERT INTO Inventory VALUES ('0180',1,2); INSERT INTO Inventory VALUES ('0189',2,2); INSERT INTO Inventory VALUES ('0200',1,1); INSERT INTO Inventory VALUES ('0200',2,3); INSERT INTO Inventory VALUES ('0378',3,2); INSERT INTO Inventory VALUES ('079X',2,1); INSERT INTO Inventory VALUES ('079X',3,2); INSERT INTO Inventory VALUES ('079X',4,3); INSERT INTO Inventory VALUES ('0808',2,1); INSERT INTO Inventory VALUES ('1351',2,4); INSERT INTO Inventory VALUES ('1351',3,2); INSERT INTO Inventory VALUES ('1382',2,1); INSERT INTO Inventory VALUES ('138X',2,3); INSERT INTO Inventory VALUES ('2226',1,3); INSERT INTO Inventory VALUES ('2226',3,2); INSERT INTO Inventory VALUES ('2226',4,1); INSERT INTO Inventory VALUES ('2281',4,3); INSERT INTO Inventory VALUES ('2766',3,2); INSERT INTO Inventory VALUES ('2908',1,3); INSERT INTO Inventory VALUES ('2908',4,1); INSERT INTO Inventory VALUES ('3350',1,2); INSERT INTO Inventory VALUES ('3743',2,1); INSERT INTO Inventory VALUES ('3906',2,1); INSERT INTO Inventory VALUES ('3906',3,2); INSERT INTO Inventory VALUES ('5163',1,1); INSERT INTO Inventory VALUES ('5790',4,2); INSERT INTO Inventory VALUES ('6128',2,4); INSERT INTO Inventory VALUES ('6128',3,3); INSERT INTO Inventory VALUES ('6328',2,2); INSERT INTO Inventory VALUES ('669X',1,1); INSERT INTO Inventory VALUES ('6908',2,2); INSERT INTO Inventory VALUES ('7405',3,2); INSERT INTO Inventory VALUES ('7443',4,1); INSERT INTO Inventory VALUES ('7559',2,2); INSERT INTO Inventory VALUES ('8092',3,1); INSERT INTO Inventory VALUES ('8720',1,3); INSERT INTO Inventory VALUES ('9611',1,2); INSERT INTO Inventory VALUES ('9627',3,5); INSERT INTO Inventory VALUES ('9627',4,2); INSERT INTO Inventory VALUES ('9701',1,2); INSERT INTO Inventory VALUES ('9701',2,1); INSERT INTO Inventory VALUES ('9701',3,3); INSERT INTO Inventory VALUES ('9701',4,2); INSERT INTO Inventory VALUES ('9882',3,3); INSERT INTO Inventory VALUES ('9883',2,3); INSERT INTO Inventory VALUES ('9883',4,2); INSERT INTO Inventory VALUES ('9931',1,2);
version https://git-lfs.github.com/spec/v1 oid sha256:471c7a483eb12a2e85b7eedc0abe4dc1919a9bfe16cc3dd1d658d1a44c34e49c size 170
<filename>EdFi.Ods.Utilities.Migration/Scripts/MsSql/02Upgrade/v24_to_v25/11 Create Constraints/50140 AssessmentContentStandard [FK].sql -- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. PRINT N'Adding foreign keys to [edfi].[AssessmentContentStandard]' GO ALTER TABLE [edfi].[AssessmentContentStandard] ADD CONSTRAINT [FK_AssessmentContentStandard_Assessment] FOREIGN KEY ([AssessmentIdentifier], [Namespace]) REFERENCES [edfi].[Assessment] ([AssessmentIdentifier], [Namespace]) ON DELETE CASCADE GO ALTER TABLE [edfi].[AssessmentContentStandard] ADD CONSTRAINT [FK_AssessmentContentStandard_EducationOrganization] FOREIGN KEY ([MandatingEducationOrganizationId]) REFERENCES [edfi].[EducationOrganization] ([EducationOrganizationId]) GO ALTER TABLE [edfi].[AssessmentContentStandard] ADD CONSTRAINT [FK_AssessmentContentStandard_PublicationStatusType] FOREIGN KEY ([PublicationStatusTypeId]) REFERENCES [edfi].[PublicationStatusType] ([PublicationStatusTypeId]) GO
<reponame>Vertabelo/vertabelo-mobile-orm-demo-ios -- Created by Vertabelo (http://vertabelo.com) -- Last modification date: 2015-10-28 10:23:49.038 -- tables -- Table: address CREATE TABLE address ( id integer NOT NULL PRIMARY KEY, city_id integer NOT NULL, address varchar(255), FOREIGN KEY (city_id) REFERENCES city (id) ); -- Table: city CREATE TABLE city ( id integer NOT NULL PRIMARY KEY, country_id integer NOT NULL, name varchar(255) NOT NULL, CONSTRAINT city_ak_1 UNIQUE (country_id,name), FOREIGN KEY (country_id) REFERENCES country (id) ); -- Table: country CREATE TABLE country ( id integer NOT NULL PRIMARY KEY, name varchar(255) NOT NULL, CONSTRAINT name UNIQUE (name) ); -- Table: place CREATE TABLE place ( id integer NOT NULL PRIMARY KEY, name varchar(255) NOT NULL, address_id integer NOT NULL, rating integer NOT NULL, added datetime NOT NULL, comment text, image blob, FOREIGN KEY (address_id) REFERENCES address (id) ); -- Table: place_tag CREATE TABLE place_tag ( place_id integer NOT NULL, tag_name varchar(255) NOT NULL, CONSTRAINT place_tag_pk PRIMARY KEY (place_id,tag_name), FOREIGN KEY (place_id) REFERENCES place (id), FOREIGN KEY (tag_name) REFERENCES tag (name) ); -- Table: tag CREATE TABLE tag ( name varchar(255) NOT NULL PRIMARY KEY ); -- views -- View: address_view CREATE VIEW address_view AS select address.id as address_id, address.address as address, city.name as city_name, country.name as country_name from country join city on (country.id=city.country_id) join address on (city.id=address.city_id); -- End of file.
CREATE FUNCTION networkapi_deletetriggersbysensorid(sensorid VARCHAR(24)) RETURNS TABLE( "ID" BIGINT, "SensorID" VARCHAR(24), "KeyValue" VARCHAR(32), "LowerEdge" NUMERIC, "UpperEdge" NUMERIC, "FormalLanguage" TEXT, "Type" INT ) LANGUAGE plpgsql AS $$ BEGIN RETURN QUERY DELETE FROM "Triggers" WHERE "Triggers"."SensorID" = sensorid RETURNING "Triggers"."ID", "Triggers"."SensorID", "Triggers"."KeyValue", "Triggers"."LowerEdge", "Triggers"."UpperEdge", "Triggers"."FormalLanguage", "Triggers"."Type"; END $$
# actions_args schema # --- !Ups DROP TABLE IF EXISTS actions_args CASCADE; CREATE TABLE actions_args ( id serial not null primary key, label varchar(100) default null, arg_value varchar(100) not null, action_id integer not null, foreign key (action_id) references actions (id) ); # --- !Downs DROP TABLE actions_args;
<gh_stars>1-10 -- -- Table structure for table easyrec.action -- DROP TABLE IF EXISTS action; CREATE TABLE action ( id int(11) unsigned NOT NULL AUTO_INCREMENT, tenantId int(11) NOT NULL, userId int(11) DEFAULT NULL, sessionId varchar(50) DEFAULT NULL, ip varchar(45) DEFAULT NULL, itemId int(11) DEFAULT NULL, itemTypeId int(11) NOT NULL, actionTypeId int(11) NOT NULL, ratingValue int(11) DEFAULT NULL, actionInfo varchar(500) CHARACTER SET utf8 DEFAULT NULL, actionTime datetime NOT NULL, PRIMARY KEY (id), KEY action_reader (tenantId,userId,actionTypeId,itemTypeId), KEY charts (tenantId,actionTypeId,actionTime,itemId,itemTypeId) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='Table containing user actions'; -- -- Table structure for table easyrec.actionarch -- DROP TABLE IF EXISTS actionarch; CREATE TABLE actionarch ( id int(11) unsigned NOT NULL, tenantId int(11) NOT NULL, userId int(11) default NULL, sessionId varchar(50) default NULL, ip varchar(45) default NULL, itemId int(11) default NULL, itemTypeId int(11) NOT NULL, actionTypeId int(11) NOT NULL, ratingValue int(11) default NULL, actionInfo varchar(500) CHARACTER SET utf8 default NULL, actionTime datetime NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='Table containing archived actions'; -- -- Table structure for table easyrec.actiontype -- DROP TABLE IF EXISTS actiontype; CREATE TABLE actiontype ( tenantId int(11) unsigned NOT NULL, name varchar(50) NOT NULL, id int(11) NOT NULL, hasvalue bit(1) NOT NULL DEFAULT b'0', weight INT(11) NOT NULL DEFAULT 1, UNIQUE KEY tenantId (tenantId,name), UNIQUE KEY tenantId_2 (tenantId,id) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='Table containing actiontypes'; -- -- Table structure for table easyrec.aggregatetype -- DROP TABLE IF EXISTS aggregatetype; CREATE TABLE aggregatetype ( tenantId int(11) unsigned NOT NULL, name varchar(50) NOT NULL, id int(11) NOT NULL, UNIQUE KEY tenantId (tenantId,name), UNIQUE KEY tenantId_2 (tenantId,id) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='Table containing aggregatetypes'; -- -- Table structure for table easyrec.assoctype -- DROP TABLE IF EXISTS assoctype; CREATE TABLE assoctype ( tenantId INT(11) unsigned NOT NULL, name VARCHAR(50) NOT NULL, id INT(11) NOT NULL, visible BIT(1) NOT NULL DEFAULT b'1', UNIQUE KEY (tenantId, name), UNIQUE KEY (tenantId, id) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='Table containing assoctypes'; -- -- Table structure for table easyrec.authentication -- DROP TABLE IF EXISTS authentication; CREATE TABLE authentication ( tenantId int(11) unsigned NOT NULL, domainURL varchar(250) NOT NULL default '', UNIQUE KEY unique_authentication (tenantId,domainURL) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='Table containing valid access domains for tenants'; -- -- Table structure for table easyrec.idmapping -- DROP TABLE IF EXISTS idmapping; CREATE TABLE idmapping ( intId int(11) unsigned NOT NULL auto_increment, stringId varchar(250) CHARACTER SET utf8 NOT NULL default '0', PRIMARY KEY (intId), UNIQUE KEY unique_mapping (stringId) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='Table containing id mapping'; -- -- Table structure for table easyrec.item -- DROP TABLE IF EXISTS item; CREATE TABLE item ( id int(11) NOT NULL AUTO_INCREMENT, tenantId int(11) NOT NULL, itemid varchar(250) NOT NULL DEFAULT '', itemtype varchar(20) NOT NULL DEFAULT '', description varchar(500) DEFAULT NULL, profileData text, url varchar(500) DEFAULT NULL, imageurl varchar(500) CHARACTER SET utf8 DEFAULT NULL, active tinyint(1) DEFAULT '1', creationdate TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, changedate TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (id), UNIQUE KEY itemTripple (tenantId,itemid,itemtype) ) ENGINE=InnoDb DEFAULT CHARSET=utf8 COMMENT='Table containing items with profiles'; -- -- Table structure for table easyrec.itemassoc -- DROP TABLE IF EXISTS itemassoc; CREATE TABLE itemassoc ( id int(11) unsigned NOT NULL auto_increment, tenantId int(11) NOT NULL default '0', itemFromId int(11) NOT NULL default '0', itemFromTypeId int(11) unsigned NOT NULL default '0', assocTypeId int(11) unsigned NOT NULL default '0', assocValue double NOT NULL default '0', itemToId int(11) NOT NULL default '0', itemToTypeId int(11) unsigned NOT NULL default '0', sourceTypeId int(11) NOT NULL default '0', sourceInfo varchar(250) default '0', viewTypeId int(11) unsigned NOT NULL default '0', active tinyint(1) NOT NULL default '1', changeDate datetime NOT NULL, PRIMARY KEY (id), UNIQUE KEY unique_itemassoc (tenantId,itemFromId,itemFromTypeId,itemToId,itemToTypeId,assocTypeId,sourceTypeId), KEY idFrom_assoc (itemFromId,itemFromTypeId,assocTypeId,tenantId), KEY recommender (itemFromId,itemFromTypeId,itemToTypeId,assocTypeId,tenantId,active) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='Table containing item associations'; -- -- Table structure for table easyrec.itemtype -- DROP TABLE IF EXISTS itemtype; CREATE TABLE itemtype ( tenantId INT(11) unsigned NOT NULL, name VARCHAR(50) NOT NULL, id INT(11) NOT NULL, visible BIT(1) NOT NULL DEFAULT b'1', UNIQUE KEY (tenantId, name), UNIQUE KEY (tenantId, id) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='Table containing itemtypes'; -- -- Table structure for table easyrec.operator -- DROP TABLE IF EXISTS operator; CREATE TABLE operator ( operatorid varchar(50) NOT NULL DEFAULT '', password varchar(250) NOT NULL DEFAULT '', firstname varchar(250) DEFAULT NULL, lastname varchar(250) DEFAULT NULL, email varchar(250) DEFAULT NULL, phone varchar(50) DEFAULT NULL, company varchar(250) DEFAULT NULL, address varchar(250) DEFAULT NULL, apikey varchar(32) DEFAULT NULL, ip varchar(39) DEFAULT NULL, active tinyint(1) NOT NULL DEFAULT '0', creationdate date DEFAULT NULL, accesslevel smallint(6) DEFAULT '0', lastlogin date DEFAULT NULL, logincount int(10) unsigned DEFAULT '0', token varchar(32) DEFAULT NULL, PRIMARY KEY (operatorid) ) ENGINE=InnoDb DEFAULT CHARSET=latin1; -- -- Table structure for table easyrec.recommendation -- DROP TABLE IF EXISTS recommendation; CREATE TABLE recommendation ( id int(11) unsigned NOT NULL auto_increment, tenantId int(11) NOT NULL, userId int(11) default NULL, queriedItemId int(11) default NULL, queriedItemTypeId int(11) default NULL, queriedAssocTypeId int(11) default NULL, relatedActionTypeId int(11) default NULL, recommendationStrategy varchar(50) default NULL, explanation varchar(255) default NULL, recommendationTime datetime NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='Table containing the history of recommendations'; -- -- Table structure for table easyrec.recommendeditem -- DROP TABLE IF EXISTS recommendeditem; CREATE TABLE recommendeditem ( id int(11) unsigned NOT NULL auto_increment, itemId int(11) NOT NULL, itemTypeId int(11) NOT NULL, recommendationId int(11) NOT NULL, predictionValue double NOT NULL default '0', itemAssocId int(11) default NULL, explanation varchar(255) default NULL, PRIMARY KEY (id), UNIQUE KEY unique_recommended_item (itemId,itemTypeId,recommendationId) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='Table containing all recommended items (ever)'; -- -- Table structure for table easyrec.sourcetype -- DROP TABLE IF EXISTS sourcetype; CREATE TABLE sourcetype ( tenantId int(11) unsigned NOT NULL, name varchar(250) NOT NULL, id int(11) NOT NULL, UNIQUE KEY tenantId (tenantId,name), UNIQUE KEY tenantId_2 (tenantId,id) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='Table containing sourcetypes'; -- -- Table structure for table easyrec.tenant -- DROP TABLE IF EXISTS tenant; CREATE TABLE tenant ( id int(11) unsigned NOT NULL, stringId varchar(100) NOT NULL, description varchar(250) DEFAULT NULL, ratingRangeMin int(11) unsigned DEFAULT NULL, ratingRangeMax int(11) unsigned DEFAULT NULL, ratingRangeNeutral double DEFAULT NULL, active tinyint(1) NOT NULL DEFAULT '1', operatorid varchar(250) DEFAULT NULL, url varchar(250) DEFAULT NULL, creationdate datetime DEFAULT NULL, tenantConfig mediumblob, tenantStatistic mediumblob, PRIMARY KEY (id), UNIQUE KEY stringId (stringId,operatorid) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='Table containing tenants'; -- -- Table structure for table easyrec.viewtype -- DROP TABLE IF EXISTS viewtype; CREATE TABLE viewtype ( tenantId int(11) unsigned NOT NULL, name varchar(50) NOT NULL, id int(11) NOT NULL, UNIQUE KEY tenantId (tenantId,name), UNIQUE KEY tenantId_2 (tenantId,id) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='Table containing viewtypes'; DROP TABLE IF EXISTS backtracking; CREATE TABLE backtracking ( userId INT(11) UNSIGNED NOT NULL DEFAULT '0', tenantId INT(11) UNSIGNED NOT NULL, itemFromId INT(11) UNSIGNED NOT NULL, itemFromTypeId INT(11) UNSIGNED NOT NULL, itemToId INT(11) UNSIGNED NOT NULL, itemToTypeId INT(11) UNSIGNED NOT NULL, recType INT(11) UNSIGNED NOT NULL, actionTime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, INDEX assoc (tenantId, itemFromId, itemFromTypeId, recType, itemToId, itemToTypeId) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='Backtracking information about recommendations'; DROP TABLE IF EXISTS plugin; CREATE TABLE plugin ( id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, displayname VARCHAR(150) DEFAULT NULL, pluginid VARCHAR(500) NOT NULL, version VARCHAR(50) NOT NULL, origfilename VARCHAR(150) DEFAULT '', state VARCHAR(50) NOT NULL, file LONGBLOB, changeDate TIMESTAMP DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), UNIQUE KEY pluginId (pluginid, version) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='Table containing plugins'; -- Add a table for versioning easyrec and set actual version number DROP TABLE IF EXISTS easyrec; CREATE TABLE easyrec ( version float(9,3) DEFAULT NULL ) ENGINE=InnoDb DEFAULT CHARSET=latin1; INSERT INTO easyrec (version) VALUES (1.0); DROP TABLE IF EXISTS plugin_log; CREATE TABLE plugin_log ( id int(11) NOT NULL AUTO_INCREMENT, tenantId int(11) unsigned NOT NULL, pluginId varchar(500) NOT NULL, pluginVersion varchar(50) NOT NULL, -- need to add default value or else a on update set to today is auto inserted by mysql startDate timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', endDate timestamp NULL DEFAULT NULL, assocTypeId int(11) NOT NULL, configuration text NOT NULL, statistics text, PRIMARY KEY (id), -- need to use subset of pluginId otherwise maximum key length would be exhausted UNIQUE unique_plugin_log (tenantId,pluginId(255),pluginVersion,assocTypeId,startDate), KEY idx_tenantId (tenantId), KEY idx_endDate (endDate) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT = 'store runs of plugins'; DROP TABLE IF EXISTS plugin_configuration; CREATE TABLE plugin_configuration ( id int(11) NOT NULL AUTO_INCREMENT, tenantId int(11) NOT NULL, assocTypeId int(11) NOT NULL, pluginId varchar(500) NOT NULL, pluginVersion varchar(50) NOT NULL, name varchar(255) NOT NULL, configuration text NOT NULL, active bit(1) NOT NULL DEFAULT b'0', PRIMARY KEY (id), UNIQUE KEY unique_configuration (tenantId,assocTypeId,pluginId(250),pluginVersion,name(250)), KEY idx_tenantAssoc (tenantId,assocTypeId) ) ENGINE=InnoDb DEFAULT CHARSET=latin1 COMMENT='store plugin configurations for tenants';
<filename>sql/roles.sql /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50553 Source Host : localhost:3306 Source Database : tp5 Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2018-04-21 22:23:47 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for roles -- ---------------------------- DROP TABLE IF EXISTS `roles`; CREATE TABLE `roles` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL COMMENT '角色名称', `remark` text COMMENT '角色描述', `create_at` datetime NOT NULL COMMENT '创建时间', `update_at` datetime DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of roles -- ---------------------------- INSERT INTO `roles` VALUES ('1', '管理组', '后台管理组', '2018-04-21 20:46:25', '2018-04-21 20:46:25'); INSERT INTO `roles` VALUES ('2', 'test', '', '2018-04-21 20:56:06', '2018-04-21 20:56:06'); SET FOREIGN_KEY_CHECKS=1;
<gh_stars>1-10 -- begin DDCUI_MESSAGE alter table DDCUI_MESSAGE add constraint FK_DDCUI_MESSAGE_ON_SENDER foreign key (SENDER_ID) references SEC_USER(ID)^ alter table DDCUI_MESSAGE add constraint FK_DDCUI_MESSAGE_ON_RECEIVER foreign key (RECEIVER_ID) references SEC_USER(ID)^ create index IDX_DDCUI_MESSAGE_ON_SENDER on DDCUI_MESSAGE (SENDER_ID)^ create index IDX_DDCUI_MESSAGE_ON_RECEIVER on DDCUI_MESSAGE (RECEIVER_ID)^ -- end DDCUI_MESSAGE
alter type audience add value 'All Ages'; alter type audience add value 'Research';
<gh_stars>1-10 DROP VIEW IF EXISTS finance.current_asset_selector_view; CREATE VIEW finance.current_asset_selector_view AS SELECT finance.account_scrud_view.account_id AS current_asset_id, finance.account_scrud_view.account_name AS current_asset_name FROM finance.account_scrud_view WHERE account_master_id IN(SELECT * FROM finance.get_account_master_ids(10100)) ORDER BY account_id;
<filename>src/cloud/profile/schema/000019_create_org_ide_configs_tables.down.sql DROP TABLE IF EXISTS org_ide_configs;