sql stringlengths 6 1.05M |
|---|
<filename>server/src/test/diff/compiled/4_lines_with_config.sql
select id
from `singular-vector-135519`.`dbt_ls_e2e_dataset`.`users` |
<reponame>flexsocialbox/una<gh_stars>100-1000
-- TABLES
ALTER TABLE `bx_ads_entries` CHANGE `price` `price` float NOT NULL;
ALTER TABLE `bx_ads_entries` CHANGE `year` `year` int(11) NOT NULL;
|
<reponame>yangfancoming/mybatis
drop table users if exists;
drop table users2 if exists;
create table users (
id int,
name varchar(16)
);
create table users2 (
id int IDENTITY,
name varchar(16)
);
|
-- phpMyAdmin SQL Dump
-- version 3.3.9
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 03, 2016 at 09:37 AM
-- Server version: 5.5.8
-- PHP Version: 5.3.5
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `sunshine`
--
-- --------------------------------------------------------
--
-- Table structure for table `about`
--
CREATE TABLE IF NOT EXISTS `about` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`msg` mediumtext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `about`
--
INSERT INTO `about` (`id`, `msg`) VALUES
(1, '<p><span style="font-size:36px"><span style="color:#0000FF">About Company</span></span></p>\r\n\r\n<p> </p>\r\n\r\n<p><span style="font-size:22px"><span style="color:#808080">SunShine Properties is a leading plain land provider of Ahmedabad.</span></span></p>\r\n\r\n<p> </p>\r\n\r\n<p><span style="font-size:22px"><span style="color:#808080">The compay represents real estate professionals of more than two decades long experience </span></span></p>\r\n\r\n<p><span style="font-size:22px"><span style="color:#808080">who subscribe to a strict </span></span><span style="font-size:22px"><span style="color:#808080">code of ethics.</span></span></p>\r\n\r\n<p><br />\r\n<span style="font-size:22px"><span style="color:#808080">The promoters of the company working in the field of plain land since 25 years , while</span></span></p>\r\n\r\n<p><span style="font-size:22px"><span style="color:#808080">achieving their goal to assist the </span></span><span style="font-size:22px"><span style="color:#808080">precious clients in conducting business successfully</span></span></p>\r\n\r\n<p><span style="font-size:22px"><span style="color:#808080">and ethically along with promoting the preservation of the right to </span></span><span style="font-size:22px"><span style="color:#808080">own, transfer and use</span></span></p>\r\n\r\n<p><span style="font-size:22px"><span style="color:#808080">real property. </span></span></p>\r\n\r\n<p><br />\r\n<span style="font-size:22px"><span style="color:#808080">Our clients are from Ahmedabad . </span></span></p>\r\n\r\n<p><br />\r\n<span style="font-size:22px"><span style="color:#808080">This, perhaps, speaks a lot about how we take care of uncertainty associated with </span></span></p>\r\n\r\n<p><span style="font-size:22px"><span style="color:#808080">real estate market with the application </span></span><span style="font-size:22px"><span style="color:#808080">of the specific standards for a meaningful</span></span></p>\r\n\r\n<p><span style="font-size:22px"><span style="color:#808080"> transaction business to take place.</span></span></p>\r\n');
-- --------------------------------------------------------
--
-- Table structure for table `city_area`
--
CREATE TABLE IF NOT EXISTS `city_area` (
`city_area_id` int(10) NOT NULL AUTO_INCREMENT,
`city_area_name` varchar(100) NOT NULL,
PRIMARY KEY (`city_area_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
--
-- Dumping data for table `city_area`
--
INSERT INTO `city_area` (`city_area_id`, `city_area_name`) VALUES
(1, 'Isanpur'),
(2, 'Bapunagar'),
(3, 'Satellite'),
(4, 'S.G.Highway'),
(5, 'Sanand'),
(6, 'Bopal'),
(7, 'Naroda'),
(8, 'Ambavadi'),
(9, 'Ushmanpura'),
(10, 'Bavla'),
(12, 'Rakhiyal'),
(13, 'Maninagar');
-- --------------------------------------------------------
--
-- Table structure for table `contact`
--
CREATE TABLE IF NOT EXISTS `contact` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(30) NOT NULL,
`emaill` varchar(25) NOT NULL,
`subje` varchar(50) NOT NULL,
`mono` varchar(13) NOT NULL,
`msg` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `contact`
--
INSERT INTO `contact` (`id`, `name`, `emaill`, `subje`, `mono`, `msg`) VALUES
(2, 'Jash', '<EMAIL>', 'Land', '8866223311', 'Please Send Me The Address Of Your Company .\r\n'),
(3, 'Mpreksh', '<EMAIL>', 'About Land', '9426353302', 'When We can Disscuss About This Land'),
(4, 'Mahendra', '<EMAIL>', 'Negotiate', '8866554433', 'Negotiate Price ?');
-- --------------------------------------------------------
--
-- Table structure for table `feedback_product`
--
CREATE TABLE IF NOT EXISTS `feedback_product` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(30) NOT NULL,
`subje` varchar(30) NOT NULL,
`mobo` varchar(13) NOT NULL,
`msg` mediumtext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `feedback_product`
--
INSERT INTO `feedback_product` (`id`, `name`, `subje`, `mobo`, `msg`) VALUES
(2, 'Ashish', 'Isanpur land', '8460285358', 'Abc');
-- --------------------------------------------------------
--
-- Table structure for table `inquery`
--
CREATE TABLE IF NOT EXISTS `inquery` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`land_name` varchar(20) NOT NULL,
`land_price` varchar(10) NOT NULL,
`path` varchar(100) NOT NULL,
`name` varchar(30) NOT NULL,
`emaill` varchar(25) NOT NULL,
`mono` varchar(13) NOT NULL,
`msg` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;
--
-- Dumping data for table `inquery`
--
INSERT INTO `inquery` (`id`, `land_name`, `land_price`, `path`, `name`, `emaill`, `mono`, `msg`) VALUES
(12, 'Satellite', '₹ 1 Cr', 'sale_land/img_40.jpg', 'Jash', '<EMAIL>', '9426353302', 'Intrested'),
(13, 'S.G.Highway', '₹ 1.2 Cr', 'sale_land/img_43.jpg', 'Jash', '<EMAIL>', '9090909090', 'intrested'),
(14, 'Ushmanpura', '₹ 1.0 Cr', 'sale_land/img_41.jpg', 'Jash', '<EMAIL>', '8866223311', 'It Can Be Negotiate ?'),
(15, 'Ushmanpura', '₹ 1.0 Cr', 'sale_land/img_41.jpg', 'Jash', '<EMAIL>', '8460285358', 'intrested');
-- --------------------------------------------------------
--
-- Table structure for table `login`
--
CREATE TABLE IF NOT EXISTS `login` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`email` varchar(25) NOT NULL,
`password` varchar(25) NOT NULL,
`type` int(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;
--
-- Dumping data for table `login`
--
INSERT INTO `login` (`id`, `email`, `password`, `type`) VALUES
(1, '<EMAIL>', '<PASSWORD>', 1),
(4, '<EMAIL>', '12345', 1),
(5, '<EMAIL>', '<PASSWORD>', 1),
(6, '<EMAIL>', '12345', 1),
(7, '<EMAIL>', '12345', 1),
(8, '<EMAIL>', '12345', 2),
(9, '<EMAIL>', '<PASSWORD>', 2),
(10, '<EMAIL>', '12345', 1),
(11, '<EMAIL>', 'abhi', 1);
-- --------------------------------------------------------
--
-- Table structure for table `news`
--
CREATE TABLE IF NOT EXISTS `news` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`titel` varchar(10000) NOT NULL,
`msg` mediumtext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;
--
-- Dumping data for table `news`
--
INSERT INTO `news` (`id`, `titel`, `msg`) VALUES
(8, 'PM Modi woos German companies, says India is now a changed country ', '<p> </p>\r\n\r\n<p><span style="font-size:20px"><span style="color:#000000">Prime Minister Narendra Modi on Monday made a strong pitch for German companies to invest in India asking them to come and feel the change.<br />\r\n<br />\r\nStating that India is now a changed country, PM Modi said "we have removed lot of regressive taxation regimes."<br />\r\n<br />\r\n"Our regulatory regime is much more transparent, responsive and stable," PM said inaugurating the India-German business summit.<br />\r\n<br />\r\nStating that there was more potential in India-German economic collaboration, PM Modi said, "Our economic partnership not as much as what both nations would like to have. I am here to assure the German companies that India is now a changed country."<br />\r\n<br />\r\n"It is the effort of my government to encourage innovation, R & D and entrepreneurship in the country," PM said adding, "I take this opportunity for inviting more and more German companies to India. Assure all support from my side." <br />\r\nEarlier, speaking at the inauguration of the 'India Pavilion' at the Hannover Messe, Modi said India has a huge potential to become a global manufacturing hub as he invited the whole world to partner with the fastest growing economy in this endeavour.<br />\r\n<br />\r\n"The entire world is looking at India. Demography, democracy and demand are attracting the world to India," Modi said as he along with German chancellor <NAME> opened the 'India Pavilion' at the Hannover Messe, the world's largest industrial fair.<br />\r\n<br />\r\nIndia is the partner country at the fair. "</span><a href="http://timesofindia.indiatimes.com/india/PM-Modi-woos-German-companies-says-India-is-now-a-changed-country/articleshow/46905513.cms" style="box-sizing: border-box; margin-top: 5px; padding: 0px; color: rgb(132, 211, 241); text-decoration: none; text-shadow: none; transition: all 0.2s linear;"><span style="color:#000000">Not only Germany, the whole world is looking at India</span></a><span style="color:#000000">," Modi said.<br />\r\n<br />\r\n"Low-cost manufacturing, efficient governance and no-defect manufacturing makes India a global engine in the manufacturing centre," he said, adding there is a huge potential of India becoming a manufacturing hub.<br />\r\n<br />\r\nThe Prime Minister invited the whole world to come to India and increase their partnership with the country and make use of the opportunities India offer to scale new heights of success.<br />\r\n<br />\r\n"All kinds of rating agencies of the world are saying India is the fastest growing economy," he said.<br />\r\nMerkel said she was impressed with what India is showcasing at the fair</span></span></p>\r\n\r\n<p> </p>\r\n\r\n<p><span style="font-size:20px"><span style="color:#000000">(Source: Times of India)</span></span></p>\r\n'),
(14, 'RBI governor urges developers to slash prices to improve sales ', '<p> </p>\r\n\r\n<p> </p>\r\n\r\n<p><span style="font-size:22px">After a proposed cut in the interest rates, the Reserve Bank of India (RBI) Governor, <NAME>, has urged the real estate developers to consider reducing prices to encourage residential sales.</span></p>\r\n\r\n<p> </p>\r\n\r\n<p><span style="font-size:22px">His statement came at a time when the real estate industry is reeling under the pressures of an inventory overhang and low housing demand. Rajan shared that post interest rate fall, buying will increase and prices will stabilise in turn encouraging people to buy, he said while delivering Y B Chavan Memorial Lecture.</span></p>\r\n\r\n<p> </p>\r\n\r\n<p><span style="font-size:22px">According to reports, the RBI has already cut interest rates by 1.5 percent since January last year. The policy rate has also come down by 0.25 percent to 6.25 percent, which is the lowest in the last five years.</span></p>\r\n\r\n<p> </p>\r\n\r\n<p><span style="font-size:22px">Rajan said that to revive the real estate industry of the country, a little bit of everything must be done.</span></p>\r\n\r\n<p> </p>\r\n\r\n<p><span style="font-size:22px">Rajan appreciated the corrective measures to include affordable housing loans under priority sector. He believes the strategy adopted by the government will take care of financing woes.</span></p>\r\n\r\n<p> </p>\r\n\r\n<p><span style="font-size:22px">Emphasizing on transparency in real estate, Rajan said that transparency on land acquisition, construction, and sales is important to help financiers to track flow of their funds.</span></p>\r\n\r\n<p> </p>\r\n\r\n<p><span style="font-size:22px">He stated that construction in the country is important as it paves way for growth.</span></p>\r\n\r\n<p> </p>\r\n');
-- --------------------------------------------------------
--
-- Table structure for table `registration`
--
CREATE TABLE IF NOT EXISTS `registration` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`fname` varchar(15) NOT NULL,
`lname` varchar(15) NOT NULL,
`gender` varchar(10) NOT NULL,
`dob` date NOT NULL,
`mobo` varchar(13) NOT NULL,
`emaill` varchar(25) NOT NULL,
`pass` varchar(25) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;
--
-- Dumping data for table `registration`
--
INSERT INTO `registration` (`id`, `fname`, `lname`, `gender`, `dob`, `mobo`, `emaill`, `pass`) VALUES
(1, 'meet', 'patel', 'male', '2016-02-29', '2147483647', '<EMAIL>', '123'),
(2, 'sumit', 'patel', 'male', '1993-11-20', '992562315', '<EMAIL>', '12345'),
(3, 'Megha', 'Mehta', 'female', '1985-01-10', '2147483647', '<EMAIL>', '12345'),
(4, 's', 'm', 'female', '1993-11-20', '2147483647', '<EMAIL>', '12345'),
(5, 'ashish', 'patel', 'male', '1993-11-20', '2147483647', '<EMAIL>', '12345'),
(6, 'keval', 'patel', 'male', '2016-04-12', '9924601285', '<EMAIL>', '12345'),
(7, 'preksh', 'Mehta', 'male', '1996-07-21', '8460285358', '<EMAIL>', '123@abc'),
(8, 'Jash', 'Shah', 'male', '1996-05-19', '8128983310', '<EMAIL>', '12345'),
(9, 'Abhi', 'Shah', 'male', '1996-08-19', '9898252423', '<EMAIL>', 'abhi');
-- --------------------------------------------------------
--
-- Table structure for table `sale_land`
--
CREATE TABLE IF NOT EXISTS `sale_land` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`imgg` varchar(100) NOT NULL,
`titel` varchar(50) NOT NULL,
`pric` varchar(15) NOT NULL,
`p_area` varchar(15) NOT NULL,
`poass` varchar(20) NOT NULL,
`discri` mediumtext NOT NULL,
`area_name` varchar(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=51 ;
--
-- Dumping data for table `sale_land`
--
INSERT INTO `sale_land` (`id`, `imgg`, `titel`, `pric`, `p_area`, `poass`, `discri`, `area_name`) VALUES
(37, 'sale_land/img_1.jpg', ' Bapunagar', '₹ 1.62 Cr', '2500 syrd', 'Immediate', 'Residential Plot 2500 sqyrd,</br>Opp. City Pulse,</br>Nr. Karnavati Bunglows,</br>Bapunagar.', 'Bapunagar'),
(38, 'sale_land/img_37.jpg', 'Bavla', '₹ 60 Lakh', '250 sqyrd', 'Immediate', 'Residential Plot 250 sqyrd,</br>Opp. Spectra House ,</br>Nr.RamdevNagar ,</br>Bavla.', 'Bavla'),
(39, 'sale_land/img_38.jpg', 'Isanpur', '₹ 50 Lakh', '300 sqyrd', 'Immediate', ' Residential Plot 300 sqyrd,</br>Opp. Vrunda App ,</br>Nr.Patelvas ,</br>Isanpur.', 'Isanpur'),
(40, 'sale_land/img_39.jpg', 'Bopal', '₹ 80 Lakh', '450 sqyrd', 'Immediate', 'Commercial Plot 450 sqyrd ,</br>Opp Sakshi Mil Factory ,</br>Bopal', 'Bopal'),
(41, 'sale_land/img_40.jpg', 'Satellite', '₹ 1 Cr', '200 sqyrd', 'Immediate', ' Very Good Resedential Plot At Satellite</br>\r\nNr Mansi Circle ,</br>\r\nOpp, Bikaner House ,</br>\r\nSatellite', 'Satellite'),
(42, 'sale_land/img_41.jpg', 'Ushmanpura', '₹ 1.0 Cr', '2000 sqyrd', 'Immediate', 'A very Good Commercial Plot At Ushmanpura,</br>\r\n2000 sqyrd,</br>\r\nNr. Rakshit Circle,</br>\r\nUshmanpura ', 'Ushmanpura'),
(43, 'sale_land/img_42.jpg', 'Ambavadi', '₹ 70 Lakh', '450 sqyrd', 'Immediate', ' Residential Plot ,</br>450 sqyrd,</br>Nr Bharat PetrolPump,</br>Ambavadi', 'Ambavadi'),
(44, 'sale_land/img_43.jpg', 'S.G.Highwaya', '₹ 1.2 Cr', '2200 sqyrd', 'Immediate', 'Residential Plot 2200 sqyrd </br>\r\nOpp Shapath V in SG Highway,</br> Ahmedabad\r\n₹ 1.2 Cr </br>\r\nAddress</br>\r\nNr Karnavati Club, SG Highway,</br>\r\n Ahmedabad ', 'S.G.Highway'),
(45, 'sale_land/img_44.jpg', 'Sanand', '₹ 50 Lakh', '700 sqyrd', 'Immediate', 'Commercial Plot ,</br>700 sqyrd,</br>Nr Sanand Highway,</br>Opp, Commercial Park,</br>Sanand.', 'Sanand'),
(46, 'sale_land/img_45.jpg', 'Naroda', '₹ 35 Lakh', '380 sqyrd', 'Immediate', ' Commercial Plot ,</br> 380 sqyrd, </br>Nr Raspan Party Plot,</br> Opp, Murti Dham Park,</br> Naroda.', 'Naroda'),
(47, 'sale_land/img_46.jpg', 'S.G.Highway', '₹ 1.5 Cr', '2500 sqyrd', 'Immediate', 'Residential Plot 2500 sqyrd \r\nPrice is ₹ 1.5 Cr \r\nAddress\r\nNr Karnavati Club, SG Highway,\r\nAhmedabad', 'S.G.Highway'),
(48, 'sale_land/img_47.jpg', 'Iabc', '50 Lakhs', '500 sqrd', 'Immediate', ' dbf', 'Naroda'),
(49, 'sale_land/img_48.jpg', 'Great Land At Maninagar', '₹ 50 Lakh', '250 sqyrd', 'Immediate', '18 Ramdev Nagar,</br>\r\nNr. Bhadvat naagr,</br>\r\nManinagar,\r\nAhmedabad', 'Maninagar');
-- --------------------------------------------------------
--
-- Table structure for table `slider`
--
CREATE TABLE IF NOT EXISTS `slider` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`imag` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=29 ;
--
-- Dumping data for table `slider`
--
INSERT INTO `slider` (`id`, `imag`) VALUES
(26, 'slider/img_0.jpg'),
(27, 'slider/img_26.jpg'),
(28, 'slider/img_27.jpg');
|
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.4
-- Dumped by pg_dump version 10.4
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET client_min_messages = warning;
SET row_security = off;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
--
-- Name: uuid-ossp; Type: EXTENSION; Schema: -; Owner: -
--
CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA public;
--
-- Name: EXTENSION "uuid-ossp"; Type: COMMENT; Schema: -; Owner: -
--
COMMENT ON EXTENSION "uuid-ossp" IS 'generate universally unique identifiers (UUIDs)';
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: clients; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.clients (
id integer NOT NULL,
name text,
type text,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
);
--
-- Name: clients_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
ALTER TABLE public.clients ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.clients_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: oauth_access_grants; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.oauth_access_grants (
id integer NOT NULL,
application_id integer NOT NULL,
resource_owner_id integer NOT NULL,
token character varying(255) NOT NULL,
expires_in integer NOT NULL,
redirect_uri text NOT NULL,
created_at timestamp without time zone NOT NULL,
revoked_at timestamp without time zone,
scopes character varying(255)
);
--
-- Name: oauth_access_grants_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
ALTER TABLE public.oauth_access_grants ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.oauth_access_grants_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: oauth_access_tokens; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.oauth_access_tokens (
id integer NOT NULL,
application_id integer,
resource_owner_id integer,
token character varying(255) NOT NULL,
refresh_token character varying(255),
previous_refresh_token character varying(255) DEFAULT ''::character varying NOT NULL,
expires_in integer,
revoked_at timestamp without time zone,
created_at timestamp without time zone NOT NULL,
scopes character varying(255)
);
--
-- Name: oauth_access_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
ALTER TABLE public.oauth_access_tokens ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.oauth_access_tokens_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: oauth_applications; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.oauth_applications (
id integer NOT NULL,
name character varying(255) NOT NULL,
uid character varying(255) NOT NULL,
secret character varying(255) NOT NULL,
scopes character varying(255) DEFAULT ''::character varying NOT NULL,
redirect_uri text,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
--
-- Name: oauth_applications_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
ALTER TABLE public.oauth_applications ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.oauth_applications_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: operational_outcomes; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.operational_outcomes (
id integer NOT NULL,
profile_id integer,
resource_id integer,
resolved boolean DEFAULT false NOT NULL,
type text,
data jsonb
);
--
-- Name: operational_outcomes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
ALTER TABLE public.operational_outcomes ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.operational_outcomes_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: profile_providers; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.profile_providers (
id integer NOT NULL,
profile_id integer NOT NULL,
provider_id integer NOT NULL,
patient_id text,
access_token text,
refresh_token text,
last_sync timestamp without time zone,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
);
--
-- Name: profile_providers_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
ALTER TABLE public.profile_providers ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.profile_providers_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: profiles; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.profiles (
id integer NOT NULL,
user_id integer NOT NULL,
patient_id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
name text NOT NULL,
first_name text,
last_name text,
gender text,
dob date,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
);
--
-- Name: profiles_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
ALTER TABLE public.profiles ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.profiles_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: providers; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.providers (
id integer NOT NULL,
parent_id integer,
type text NOT NULL,
name text NOT NULL,
description text DEFAULT ''::text NOT NULL,
end_point text,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
);
--
-- Name: providers_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
ALTER TABLE public.providers ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.providers_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: resource_histories; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.resource_histories (
id integer NOT NULL,
resource_id integer,
provider_id integer,
transaction_id integer,
resource_type text,
provider_resource_id text,
provider_resource_version text,
fhir_version text,
merged boolean,
resource jsonb,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
);
--
-- Name: resource_histories_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
ALTER TABLE public.resource_histories ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.resource_histories_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: resources; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.resources (
id integer NOT NULL,
user_id integer,
profile_id integer NOT NULL,
provider_id integer NOT NULL,
transaction_id integer NOT NULL,
resource_type text NOT NULL,
provider_resource_id text NOT NULL,
provider_resource_version text NOT NULL,
data_specification_version text DEFAULT ''::text NOT NULL,
merged boolean DEFAULT false NOT NULL,
resource jsonb,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
);
--
-- Name: resources_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
ALTER TABLE public.resources ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.resources_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.schema_migrations (
filename text NOT NULL
);
--
-- Name: transactions; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.transactions (
id integer NOT NULL,
profile_id integer NOT NULL,
provider_id integer NOT NULL,
type text NOT NULL,
data jsonb NOT NULL,
processed boolean,
processed_time timestamp without time zone,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
);
--
-- Name: transactions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
ALTER TABLE public.transactions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.transactions_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: users; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.users (
id integer NOT NULL,
first_name text DEFAULT ''::text NOT NULL,
last_name text DEFAULT ''::text NOT NULL,
email text DEFAULT ''::text NOT NULL,
encrypted_password text DEFAULT ''::text NOT NULL,
reset_password_token text,
reset_password_sent_at text,
remember_created_at timestamp without time zone,
sign_in_count integer DEFAULT 0 NOT NULL,
current_sign_in_at timestamp without time zone,
last_sign_in_at timestamp without time zone,
current_sign_in_ip text,
last_sign_in_ip text,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);
--
-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
ALTER TABLE public.users ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME public.users_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: clients clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.clients
ADD CONSTRAINT clients_pkey PRIMARY KEY (id);
--
-- Name: oauth_access_grants oauth_access_grants_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.oauth_access_grants
ADD CONSTRAINT oauth_access_grants_pkey PRIMARY KEY (id);
--
-- Name: oauth_access_tokens oauth_access_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.oauth_access_tokens
ADD CONSTRAINT oauth_access_tokens_pkey PRIMARY KEY (id);
--
-- Name: oauth_applications oauth_applications_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.oauth_applications
ADD CONSTRAINT oauth_applications_pkey PRIMARY KEY (id);
--
-- Name: operational_outcomes operational_outcomes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.operational_outcomes
ADD CONSTRAINT operational_outcomes_pkey PRIMARY KEY (id);
--
-- Name: profile_providers profile_providers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.profile_providers
ADD CONSTRAINT profile_providers_pkey PRIMARY KEY (id);
--
-- Name: profiles profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.profiles
ADD CONSTRAINT profiles_pkey PRIMARY KEY (id);
--
-- Name: providers providers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.providers
ADD CONSTRAINT providers_pkey PRIMARY KEY (id);
--
-- Name: resource_histories resource_histories_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.resource_histories
ADD CONSTRAINT resource_histories_pkey PRIMARY KEY (id);
--
-- Name: resources resources_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.resources
ADD CONSTRAINT resources_pkey PRIMARY KEY (id);
--
-- Name: schema_migrations schema_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.schema_migrations
ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (filename);
--
-- Name: transactions transactions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.transactions
ADD CONSTRAINT transactions_pkey PRIMARY KEY (id);
--
-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.users
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
--
-- Name: oauth_access_grants_token_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX oauth_access_grants_token_index ON public.oauth_access_grants USING btree (token);
--
-- Name: oauth_access_tokens_refresh_token_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX oauth_access_tokens_refresh_token_index ON public.oauth_access_tokens USING btree (refresh_token);
--
-- Name: oauth_access_tokens_resource_owner_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX oauth_access_tokens_resource_owner_id_index ON public.oauth_access_tokens USING btree (resource_owner_id);
--
-- Name: oauth_access_tokens_token_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX oauth_access_tokens_token_index ON public.oauth_access_tokens USING btree (token);
--
-- Name: oauth_applications_uid_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX oauth_applications_uid_index ON public.oauth_applications USING btree (uid);
--
-- Name: users_email_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX users_email_index ON public.users USING btree (email);
--
-- Name: users_reset_password_token_index; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX users_reset_password_token_index ON public.users USING btree (reset_password_token);
--
-- Name: oauth_access_grants oauth_access_grants_application_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.oauth_access_grants
ADD CONSTRAINT oauth_access_grants_application_id_fkey FOREIGN KEY (application_id) REFERENCES public.oauth_applications(id) ON DELETE CASCADE;
--
-- Name: oauth_access_tokens oauth_access_tokens_application_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.oauth_access_tokens
ADD CONSTRAINT oauth_access_tokens_application_id_fkey FOREIGN KEY (application_id) REFERENCES public.oauth_applications(id) ON DELETE CASCADE;
--
-- Name: operational_outcomes operational_outcomes_profile_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.operational_outcomes
ADD CONSTRAINT operational_outcomes_profile_id_fkey FOREIGN KEY (profile_id) REFERENCES public.profiles(id);
--
-- Name: operational_outcomes operational_outcomes_resource_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.operational_outcomes
ADD CONSTRAINT operational_outcomes_resource_id_fkey FOREIGN KEY (resource_id) REFERENCES public.resources(id);
--
-- Name: profile_providers profile_providers_profile_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.profile_providers
ADD CONSTRAINT profile_providers_profile_id_fkey FOREIGN KEY (profile_id) REFERENCES public.profiles(id);
--
-- Name: profile_providers profile_providers_provider_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.profile_providers
ADD CONSTRAINT profile_providers_provider_id_fkey FOREIGN KEY (provider_id) REFERENCES public.providers(id);
--
-- Name: profiles profiles_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.profiles
ADD CONSTRAINT profiles_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
--
-- Name: providers providers_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.providers
ADD CONSTRAINT providers_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES public.providers(id);
--
-- Name: resource_histories resource_histories_provider_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.resource_histories
ADD CONSTRAINT resource_histories_provider_id_fkey FOREIGN KEY (provider_id) REFERENCES public.providers(id);
--
-- Name: resource_histories resource_histories_resource_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.resource_histories
ADD CONSTRAINT resource_histories_resource_id_fkey FOREIGN KEY (resource_id) REFERENCES public.resources(id);
--
-- Name: resource_histories resource_histories_transaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.resource_histories
ADD CONSTRAINT resource_histories_transaction_id_fkey FOREIGN KEY (transaction_id) REFERENCES public.transactions(id);
--
-- Name: resources resources_profile_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.resources
ADD CONSTRAINT resources_profile_id_fkey FOREIGN KEY (profile_id) REFERENCES public.profiles(id);
--
-- Name: resources resources_provider_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.resources
ADD CONSTRAINT resources_provider_id_fkey FOREIGN KEY (provider_id) REFERENCES public.providers(id);
--
-- Name: resources resources_transaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.resources
ADD CONSTRAINT resources_transaction_id_fkey FOREIGN KEY (transaction_id) REFERENCES public.transactions(id);
--
-- Name: resources resources_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.resources
ADD CONSTRAINT resources_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
--
-- Name: transactions transactions_profile_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.transactions
ADD CONSTRAINT transactions_profile_id_fkey FOREIGN KEY (profile_id) REFERENCES public.profiles(id);
--
-- Name: transactions transactions_provider_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.transactions
ADD CONSTRAINT transactions_provider_id_fkey FOREIGN KEY (provider_id) REFERENCES public.providers(id);
--
-- PostgreSQL database dump complete
--
SET search_path TO ["mine", "public"];
INSERT INTO "schema_migrations" ("filename") VALUES ('20180524025638_devise_create_users.rb');
INSERT INTO "schema_migrations" ("filename") VALUES ('20180524030931_create_doorkeeper_tables.rb');
INSERT INTO "schema_migrations" ("filename") VALUES ('20180524050000_create_clients.rb');
INSERT INTO "schema_migrations" ("filename") VALUES ('20180524050050_create_profiles.rb');
INSERT INTO "schema_migrations" ("filename") VALUES ('20180524051906_create_providers.rb');
INSERT INTO "schema_migrations" ("filename") VALUES ('20180524051950_create_profile_providers.rb');
INSERT INTO "schema_migrations" ("filename") VALUES ('20180524052000_create_transactions.rb');
INSERT INTO "schema_migrations" ("filename") VALUES ('20180524052034_create_resources.rb');
INSERT INTO "schema_migrations" ("filename") VALUES ('20180524053910_create_operational_outcomes.rb'); |
<reponame>RiansyahTohamba/sibeljar<filename>db_sibelajar.sql
-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Host: 1192.168.3.11
-- Generation Time: Mar 13, 2016 at 07:35 AM
-- Server version: 5.5.27
-- PHP Version: 5.4.7
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: `db_sibelajar`
--
-- --------------------------------------------------------
--
-- Table structure for table `tb_administrasi`
--
CREATE TABLE IF NOT EXISTS `tb_administrasi` (
`id_akun` int(3) NOT NULL AUTO_INCREMENT,
`username` varchar(40) NOT NULL,
`password` varchar(30) NOT NULL,
PRIMARY KEY (`id_akun`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `tb_administrasi`
--
INSERT INTO `tb_administrasi` (`id_akun`, `username`, `password`) VALUES
(1, 'rian', '<PASSWORD>'),
(2, '<PASSWORD>', '<PASSWORD>');
-- --------------------------------------------------------
--
-- Table structure for table `tb_belajar_mengajar`
--
CREATE TABLE IF NOT EXISTS `tb_belajar_mengajar` (
`id_pbm` int(11) NOT NULL AUTO_INCREMENT,
`id_hari` char(5) NOT NULL,
`id_kelas` int(2) NOT NULL,
`jam` char(12) NOT NULL,
`nip` int(3) NOT NULL,
PRIMARY KEY (`id_pbm`),
KEY `id_pbm` (`id_pbm`),
KEY `id_hari` (`id_hari`),
KEY `id_kelas` (`id_kelas`),
KEY `nip` (`nip`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=55 ;
--
-- Dumping data for table `tb_belajar_mengajar`
--
INSERT INTO `tb_belajar_mengajar` (`id_pbm`, `id_hari`, `id_kelas`, `jam`, `nip`) VALUES
(1, '1', 11, '07.00-09.00', 1),
(2, '1', 11, '09.15-12.00', 3),
(3, '1', 11, '13.00-14.30', 4),
(4, '1', 12, '07.00-09.00', 4),
(5, '1', 12, '09.15-12.00', 3),
(6, '1', 12, '13.00-14.30', 6),
(7, '1', 13, '07.00-09.00', 7),
(8, '1', 13, '07.00-09.00', 2),
(9, '1', 13, '13.00-14.30', 5),
(10, '2', 11, '07.00-09.00', 2),
(11, '2', 11, '07.00-09.00', 4),
(12, '2', 11, '07.00-09.00', 6),
(13, '2', 12, '13.00-14.30', 8),
(14, '2', 12, '07.00-09.00', 10),
(15, '2', 12, '07.00-09.00', 12),
(16, '2', 13, '07.00-09.00', 14),
(17, '2', 13, '07.00-09.00', 15),
(18, '2', 13, '13.00-14.30', 13),
(19, '3', 11, '07.00-09.00', 5),
(20, '3', 11, '07.00-09.00', 9),
(21, '3', 11, '07.00-09.00', 10),
(22, '3', 12, '07.00-09.00', 1),
(23, '3', 12, '07.00-09.00', 2),
(24, '3', 12, '07.00-09.00', 5),
(25, '3', 13, '07.00-09.00', 3),
(26, '3', 13, '07.00-09.00', 8),
(27, '3', 13, '07.00-09.00', 4),
(28, '4', 11, '07.00-09.00', 13),
(29, '4', 11, '07.00-09.00', 14),
(30, '4', 11, '07.00-09.00', 15),
(31, '4', 12, '07.00-09.00', 12),
(32, '4', 12, '07.00-09.00', 11),
(33, '4', 12, '07.00-09.00', 7),
(34, '4', 13, '07.00-09.00', 1),
(35, '4', 13, '07.00-09.00', 5),
(36, '4', 13, '07.00-09.00', 6),
(37, '5', 11, '07.00-09.00', 3),
(38, '5', 11, '07.00-09.00', 1),
(39, '5', 11, '07.00-09.00', 2),
(40, '5', 12, '07.00-09.00', 12),
(41, '5', 12, '07.00-09.00', 10),
(42, '5', 12, '07.00-09.00', 14),
(43, '5', 13, '07.00-09.00', 11),
(44, '5', 13, '07.00-09.00', 9),
(45, '5', 13, '07.00-09.00', 15),
(46, '6', 11, '07.00-09.00', 12),
(47, '6', 11, '07.00-09.00', 11),
(48, '6', 11, '07.00-09.00', 6),
(49, '6', 12, '07.00-09.00', 3),
(50, '6', 12, '07.00-09.00', 7),
(51, '6', 12, '07.00-09.00', 8),
(52, '6', 13, '07.00-09.00', 15),
(53, '6', 13, '07.00-09.00', 9),
(54, '6', 13, '07.00-09.00', 4);
-- --------------------------------------------------------
--
-- Table structure for table `tb_guru`
--
CREATE TABLE IF NOT EXISTS `tb_guru` (
`nip` int(3) NOT NULL AUTO_INCREMENT,
`nama` varchar(55) NOT NULL,
`id_mapel` int(2) NOT NULL,
PRIMARY KEY (`nip`),
KEY `nrp_pengajar` (`nip`),
KEY `id_mapel` (`id_mapel`),
KEY `id_mapel_2` (`id_mapel`),
KEY `id_mapel_3` (`id_mapel`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;
--
-- Dumping data for table `tb_guru`
--
INSERT INTO `tb_guru` (`nip`, `nama`, `id_mapel`) VALUES
(1, '<NAME>', 1),
(2, '<NAME>', 1),
(3, '<NAME>', 2),
(4, '<NAME>', 3),
(5, '<NAME>', 4),
(6, '<NAME>', 5),
(7, '<NAME>', 6),
(8, '<NAME>', 7),
(9, '<NAME>', 8),
(10, '<NAME>', 9),
(11, '<NAME>', 10),
(12, '<NAME>', 5),
(13, '<NAME>', 7),
(14, '<NAME>', 9),
(15, '<NAME>', 3);
-- --------------------------------------------------------
--
-- Table structure for table `tb_hari`
--
CREATE TABLE IF NOT EXISTS `tb_hari` (
`id_hari` char(5) NOT NULL,
`hari` varchar(10) DEFAULT NULL,
PRIMARY KEY (`id_hari`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tb_hari`
--
INSERT INTO `tb_hari` (`id_hari`, `hari`) VALUES
('1', 'Senin'),
('2', 'Selasa'),
('3', 'Rabu'),
('4', 'Kamis'),
('5', 'Jumat'),
('6', 'Sabtu');
-- --------------------------------------------------------
--
-- Table structure for table `tb_kelas`
--
CREATE TABLE IF NOT EXISTS `tb_kelas` (
`id_kelas` int(2) NOT NULL AUTO_INCREMENT,
`kelas` varchar(10) NOT NULL,
PRIMARY KEY (`id_kelas`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=39 ;
--
-- Dumping data for table `tb_kelas`
--
INSERT INTO `tb_kelas` (`id_kelas`, `kelas`) VALUES
(11, 'I-1'),
(12, 'I-2'),
(13, 'I-3'),
(14, 'I-4'),
(15, 'I-5'),
(16, 'I-6'),
(17, 'I-7'),
(18, 'I-8'),
(21, 'II-1'),
(22, 'II-2'),
(23, 'II-3'),
(24, 'II-4'),
(25, 'II-5'),
(26, 'II-6'),
(27, 'II-7'),
(28, 'II-8'),
(31, 'III-1 '),
(32, 'III-2'),
(33, 'III-3'),
(34, 'III-4'),
(35, 'III-5'),
(36, 'III-6'),
(37, 'III-7'),
(38, 'III-8');
-- --------------------------------------------------------
--
-- Table structure for table `tb_matapelajaran`
--
CREATE TABLE IF NOT EXISTS `tb_matapelajaran` (
`id_mapel` int(2) NOT NULL AUTO_INCREMENT,
`nama` varchar(100) NOT NULL,
PRIMARY KEY (`id_mapel`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
--
-- Dumping data for table `tb_matapelajaran`
--
INSERT INTO `tb_matapelajaran` (`id_mapel`, `nama`) VALUES
(1, 'Matematika'),
(2, 'Kimia'),
(3, 'Biologi'),
(4, 'Fisika'),
(5, 'Agama'),
(6, 'Bahasa Inggris'),
(7, 'Bahasa Indonesia'),
(8, 'Bahasa Arab'),
(9, 'Bahasa Jerman'),
(10, 'Bahasa Jepang');
-- --------------------------------------------------------
--
-- Table structure for table `tb_materi`
--
CREATE TABLE IF NOT EXISTS `tb_materi` (
`id_materi` int(4) NOT NULL AUTO_INCREMENT,
`bab` char(100) NOT NULL,
`id_mapel` int(2) NOT NULL,
PRIMARY KEY (`id_materi`),
KEY `id_mapel` (`id_mapel`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
--
-- Dumping data for table `tb_materi`
--
INSERT INTO `tb_materi` (`id_materi`, `bab`, `id_mapel`) VALUES
(1, '1. Pengantar Matematika', 1),
(2, '2. Jenis Bilangan', 1),
(3, '3. Sistem Persamaan Linear Dua Variabel', 1),
(4, '4. Integral', 1),
(5, '5. Diferensial', 1),
(6, '1. <NAME>', 2),
(7, '2. Unsur-unsur Kimia', 2),
(8, '3. Unsur Halogen', 2),
(9, '4. Unsur <NAME>', 2),
(10, '5. Analisis Unsur', 2);
-- --------------------------------------------------------
--
-- Table structure for table `tb_presensi`
--
CREATE TABLE IF NOT EXISTS `tb_presensi` (
`pertemuan` int(3) DEFAULT NULL,
`status_kehadiran` varchar(10) DEFAULT NULL,
`status_hadir_guru` varchar(10) NOT NULL,
`id_presensi` int(8) NOT NULL AUTO_INCREMENT,
`tanggal` date DEFAULT NULL,
`id_pbm` int(11) NOT NULL,
`nis` varchar(9) NOT NULL,
`berita_acara` text NOT NULL,
`id_materi` int(4) NOT NULL,
PRIMARY KEY (`id_presensi`),
KEY `id_pbm` (`id_pbm`),
KEY `nis` (`nis`),
KEY `id_materi` (`id_materi`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1071 ;
--
-- Dumping data for table `tb_presensi`
--
INSERT INTO `tb_presensi` (`pertemuan`, `status_kehadiran`, `status_hadir_guru`, `id_presensi`, `tanggal`, `id_pbm`, `nis`, `berita_acara`, `id_materi`) VALUES
(1, 'tidak', 'hadir', 911, '2016-00-12', 1, '123020001', '11111', 1),
(1, 'tidak', 'hadir', 912, '2016-00-12', 1, '123020005', '11111', 1),
(1, 'tidak', 'hadir', 913, '2016-00-12', 1, '123010137', '11111', 1),
(1, 'tidak', 'hadir', 914, '2016-00-12', 1, '113030039', '11111', 1),
(1, 'tidak', 'hadir', 915, '2016-00-12', 1, '113040234', '11111', 1),
(1, 'tidak', 'hadir', 916, '2016-00-12', 1, '123020011', '11111', 1),
(1, 'tidak', 'hadir', 917, '2016-00-12', 1, '123020013', '11111', 1),
(1, 'tidak', 'hadir', 918, '2016-00-12', 1, '113040150', '11111', 1),
(1, 'tidak', 'hadir', 919, '2016-00-12', 1, '123020003', '11111', 1),
(1, 'tidak', 'hadir', 920, '2016-00-12', 1, '123020002', '11111', 1),
(1, 'tidak', 'hadir', 921, '2016-00-12', 1, '123020009', '11111', 1),
(1, 'tidak', 'hadir', 922, '2016-00-12', 1, '113040257', '11111', 1),
(1, 'tidak', 'hadir', 923, '2016-00-12', 1, '123020007', '11111', 1),
(1, 'tidak', 'hadir', 924, '2016-00-12', 1, '113020036', '11111', 1),
(1, 'tidak', 'hadir', 925, '2016-00-12', 1, '123020006', '11111', 1),
(1, 'tidak', 'hadir', 926, '2016-00-12', 1, '123020004', '11111', 1),
(1, 'tidak', 'hadir', 927, '2016-00-12', 1, '123020010', '11111', 1),
(1, 'tidak', 'hadir', 928, '2016-00-12', 1, '113040233', '11111', 1),
(1, 'tidak', 'hadir', 929, '2016-00-12', 1, '123020008', '11111', 1),
(1, 'tidak', 'hadir', 930, '2016-00-12', 1, '123020012', '11111', 1),
(2, 'tidak', 'hadir', 931, '2016-01-11', 1, '123020001', '11111', 1),
(2, 'tidak', 'hadir', 932, '2016-01-11', 1, '123020005', '11111', 1),
(2, 'tidak', 'hadir', 933, '2016-01-11', 1, '123010137', '11111', 1),
(2, 'tidak', 'hadir', 934, '2016-01-11', 1, '113030039', '11111', 1),
(2, 'tidak', 'hadir', 935, '2016-01-11', 1, '113040234', '11111', 1),
(2, 'tidak', 'hadir', 936, '2016-01-11', 1, '123020011', '11111', 1),
(2, 'tidak', 'hadir', 937, '2016-01-11', 1, '123020013', '11111', 1),
(2, 'tidak', 'hadir', 938, '2016-01-11', 1, '113040150', '11111', 1),
(2, 'tidak', 'hadir', 939, '2016-01-11', 1, '123020003', '11111', 1),
(2, 'tidak', 'hadir', 940, '2016-01-11', 1, '123020002', '11111', 1),
(2, 'tidak', 'hadir', 941, '2016-01-11', 1, '123020009', '11111', 1),
(2, 'tidak', 'hadir', 942, '2016-01-11', 1, '113040257', '11111', 1),
(2, 'tidak', 'hadir', 943, '2016-01-11', 1, '123020007', '11111', 1),
(2, 'tidak', 'hadir', 944, '2016-01-11', 1, '113020036', '11111', 1),
(2, 'tidak', 'hadir', 945, '2016-01-11', 1, '123020006', '11111', 1),
(2, 'tidak', 'hadir', 946, '2016-01-11', 1, '123020004', '11111', 1),
(2, 'tidak', 'hadir', 947, '2016-01-11', 1, '123020010', '11111', 1),
(2, 'tidak', 'hadir', 948, '2016-01-11', 1, '113040233', '11111', 1),
(2, 'tidak', 'hadir', 949, '2016-01-11', 1, '123020008', '11111', 1),
(2, 'tidak', 'hadir', 950, '2016-01-11', 1, '123020012', '11111', 1),
(3, 'hadir', 'tidak', 951, '2016-01-09', 1, '123020001', 'tidak hadir', 1),
(3, 'hadir', 'tidak', 952, '2016-01-09', 1, '123020005', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 953, '2016-01-09', 1, '123010137', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 954, '2016-01-09', 1, '113030039', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 955, '2016-01-09', 1, '113040234', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 956, '2016-01-09', 1, '123020011', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 957, '2016-01-09', 1, '123020013', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 958, '2016-01-09', 1, '113040150', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 959, '2016-01-09', 1, '123020003', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 960, '2016-01-09', 1, '123020002', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 961, '2016-01-09', 1, '123020009', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 962, '2016-01-09', 1, '113040257', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 963, '2016-01-09', 1, '123020007', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 964, '2016-01-09', 1, '113020036', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 965, '2016-01-09', 1, '123020006', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 966, '2016-01-09', 1, '123020004', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 967, '2016-01-09', 1, '123020010', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 968, '2016-01-09', 1, '113040233', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 969, '2016-01-09', 1, '123020008', 'tidak hadir', 1),
(3, 'tidak', 'tidak', 970, '2016-01-09', 1, '123020012', 'tidak hadir', 1),
(4, 'tidak', 'hadir', 971, '2016-01-18', 1, '123020001', 'baik', 1),
(4, 'tidak', 'hadir', 972, '2016-01-18', 1, '123020005', 'baik', 1),
(4, 'tidak', 'hadir', 973, '2016-01-18', 1, '123010137', 'baik', 1),
(4, 'tidak', 'hadir', 974, '2016-01-18', 1, '113030039', 'baik', 1),
(4, 'tidak', 'hadir', 975, '2016-01-18', 1, '113040234', 'baik', 1),
(4, 'tidak', 'hadir', 976, '2016-01-18', 1, '123020011', 'baik', 1),
(4, 'tidak', 'hadir', 977, '2016-01-18', 1, '123020013', 'baik', 1),
(4, 'tidak', 'hadir', 978, '2016-01-18', 1, '113040150', 'baik', 1),
(4, 'tidak', 'hadir', 979, '2016-01-18', 1, '123020003', 'baik', 1),
(4, 'tidak', 'hadir', 980, '2016-01-18', 1, '123020002', 'baik', 1),
(4, 'tidak', 'hadir', 981, '2016-01-18', 1, '123020009', 'baik', 1),
(4, 'tidak', 'hadir', 982, '2016-01-18', 1, '113040257', 'baik', 1),
(4, 'tidak', 'hadir', 983, '2016-01-18', 1, '123020007', 'baik', 1),
(4, 'tidak', 'hadir', 984, '2016-01-18', 1, '113020036', 'baik', 1),
(4, 'tidak', 'hadir', 985, '2016-01-18', 1, '123020006', 'baik', 1),
(4, 'tidak', 'hadir', 986, '2016-01-18', 1, '123020004', 'baik', 1),
(4, 'tidak', 'hadir', 987, '2016-01-18', 1, '123020010', 'baik', 1),
(4, 'tidak', 'hadir', 988, '2016-01-18', 1, '113040233', 'baik', 1),
(4, 'tidak', 'hadir', 989, '2016-01-18', 1, '123020008', 'baik', 1),
(4, 'tidak', 'hadir', 990, '2016-01-18', 1, '123020012', 'baik', 1),
(5, 'tidak', 'hadir', 991, '2016-01-17', 1, '123020001', 'hadir', 1),
(5, 'tidak', 'hadir', 992, '2016-01-17', 1, '123020005', 'hadir', 1),
(5, 'hadir', 'hadir', 993, '2016-01-17', 1, '123010137', 'hadir', 1),
(5, 'hadir', 'hadir', 994, '2016-01-17', 1, '113030039', 'hadir', 1),
(5, 'hadir', 'hadir', 995, '2016-01-17', 1, '113040234', 'hadir', 1),
(5, 'tidak', 'hadir', 996, '2016-01-17', 1, '123020011', 'hadir', 1),
(5, 'tidak', 'hadir', 997, '2016-01-17', 1, '123020013', 'hadir', 1),
(5, 'tidak', 'hadir', 998, '2016-01-17', 1, '113040150', 'hadir', 1),
(5, 'tidak', 'hadir', 999, '2016-01-17', 1, '123020003', 'hadir', 1),
(5, 'tidak', 'hadir', 1000, '2016-01-17', 1, '123020002', 'hadir', 1),
(5, 'tidak', 'hadir', 1001, '2016-01-17', 1, '123020009', 'hadir', 1),
(5, 'tidak', 'hadir', 1002, '2016-01-17', 1, '113040257', 'hadir', 1),
(5, 'tidak', 'hadir', 1003, '2016-01-17', 1, '123020007', 'hadir', 1),
(5, 'tidak', 'hadir', 1004, '2016-01-17', 1, '113020036', 'hadir', 1),
(5, 'tidak', 'hadir', 1005, '2016-01-17', 1, '123020006', 'hadir', 1),
(5, 'tidak', 'hadir', 1006, '2016-01-17', 1, '123020004', 'hadir', 1),
(5, 'tidak', 'hadir', 1007, '2016-01-17', 1, '123020010', 'hadir', 1),
(5, 'tidak', 'hadir', 1008, '2016-01-17', 1, '113040233', 'hadir', 1),
(5, 'tidak', 'hadir', 1009, '2016-01-17', 1, '123020008', 'hadir', 1),
(5, 'tidak', 'hadir', 1010, '2016-01-17', 1, '123020012', 'hadir', 1),
(6, 'hadir', 'hadir', 1011, '2016-01-12', 1, '123020001', 'baru', 1),
(6, 'tidak', 'hadir', 1012, '2016-01-12', 1, '123020005', 'baru', 1),
(6, 'hadir', 'hadir', 1013, '2016-01-12', 1, '123010137', 'baru', 1),
(6, 'tidak', 'hadir', 1014, '2016-01-12', 1, '113030039', 'baru', 1),
(6, 'tidak', 'hadir', 1015, '2016-01-12', 1, '113040234', 'baru', 1),
(6, 'tidak', 'hadir', 1016, '2016-01-12', 1, '123020011', 'baru', 1),
(6, 'tidak', 'hadir', 1017, '2016-01-12', 1, '123020013', 'baru', 1),
(6, 'tidak', 'hadir', 1018, '2016-01-12', 1, '113040150', 'baru', 1),
(6, 'tidak', 'hadir', 1019, '2016-01-12', 1, '123020003', 'baru', 1),
(6, 'tidak', 'hadir', 1020, '2016-01-12', 1, '123020002', 'baru', 1),
(6, 'tidak', 'hadir', 1021, '2016-01-12', 1, '123020009', 'baru', 1),
(6, 'tidak', 'hadir', 1022, '2016-01-12', 1, '113040257', 'baru', 1),
(6, 'tidak', 'hadir', 1023, '2016-01-12', 1, '123020007', 'baru', 1),
(6, 'tidak', 'hadir', 1024, '2016-01-12', 1, '113020036', 'baru', 1),
(6, 'tidak', 'hadir', 1025, '2016-01-12', 1, '123020006', 'baru', 1),
(6, 'tidak', 'hadir', 1026, '2016-01-12', 1, '123020004', 'baru', 1),
(6, 'tidak', 'hadir', 1027, '2016-01-12', 1, '123020010', 'baru', 1),
(6, 'tidak', 'hadir', 1028, '2016-01-12', 1, '113040233', 'baru', 1),
(6, 'tidak', 'hadir', 1029, '2016-01-12', 1, '123020008', 'baru', 1),
(6, 'tidak', 'hadir', 1030, '2016-01-12', 1, '123020012', 'baru', 1),
(7, 'hadir', 'hadir', 1031, '2016-01-20', 1, '123020001', 'awal belajar matematika', 1),
(7, 'hadir', 'hadir', 1032, '2016-01-20', 1, '123020005', 'awal belajar matematika', 1),
(7, 'tidak', 'hadir', 1033, '2016-01-20', 1, '123010137', 'awal belajar matematika', 1),
(7, 'hadir', 'hadir', 1034, '2016-01-20', 1, '113030039', 'awal belajar matematika', 1),
(7, 'hadir', 'hadir', 1035, '2016-01-20', 1, '113040234', 'awal belajar matematika', 1),
(7, 'tidak', 'hadir', 1036, '2016-01-20', 1, '123020011', 'awal belajar matematika', 1),
(7, 'tidak', 'hadir', 1037, '2016-01-20', 1, '123020013', 'awal belajar matematika', 1),
(7, 'tidak', 'hadir', 1038, '2016-01-20', 1, '113040150', 'awal belajar matematika', 1),
(7, 'tidak', 'hadir', 1039, '2016-01-20', 1, '123020003', 'awal belajar matematika', 1),
(7, 'tidak', 'hadir', 1040, '2016-01-20', 1, '123020002', 'awal belajar matematika', 1),
(7, 'tidak', 'hadir', 1041, '2016-01-20', 1, '123020009', 'awal belajar matematika', 1),
(7, 'tidak', 'hadir', 1042, '2016-01-20', 1, '113040257', 'awal belajar matematika', 1),
(7, 'tidak', 'hadir', 1043, '2016-01-20', 1, '123020007', 'awal belajar matematika', 1),
(7, 'tidak', 'hadir', 1044, '2016-01-20', 1, '113020036', 'awal belajar matematika', 1),
(7, 'tidak', 'hadir', 1045, '2016-01-20', 1, '123020006', 'awal belajar matematika', 1),
(7, 'tidak', 'hadir', 1046, '2016-01-20', 1, '123020004', 'awal belajar matematika', 1),
(7, 'tidak', 'hadir', 1047, '2016-01-20', 1, '123020010', 'awal belajar matematika', 1),
(7, 'tidak', 'hadir', 1048, '2016-01-20', 1, '113040233', 'awal belajar matematika', 1),
(7, 'tidak', 'hadir', 1049, '2016-01-20', 1, '123020008', 'awal belajar matematika', 1),
(7, 'tidak', 'hadir', 1050, '2016-01-20', 1, '123020012', 'awal belajar matematika', 1),
(8, 'hadir', 'hadir', 1051, '2016-01-22', 1, '123020001', 'Belajar Matematika', 1),
(8, 'hadir', 'hadir', 1052, '2016-01-22', 1, '123020005', 'Belajar Matematika', 1),
(8, 'hadir', 'hadir', 1053, '2016-01-22', 1, '123010137', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1054, '2016-01-22', 1, '113030039', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1055, '2016-01-22', 1, '113040234', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1056, '2016-01-22', 1, '123020011', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1057, '2016-01-22', 1, '123020013', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1058, '2016-01-22', 1, '113040150', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1059, '2016-01-22', 1, '123020003', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1060, '2016-01-22', 1, '123020002', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1061, '2016-01-22', 1, '123020009', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1062, '2016-01-22', 1, '113040257', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1063, '2016-01-22', 1, '123020007', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1064, '2016-01-22', 1, '113020036', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1065, '2016-01-22', 1, '123020006', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1066, '2016-01-22', 1, '123020004', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1067, '2016-01-22', 1, '123020010', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1068, '2016-01-22', 1, '113040233', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1069, '2016-01-22', 1, '123020008', 'Belajar Matematika', 1),
(8, 'tidak', 'hadir', 1070, '2016-01-22', 1, '123020012', 'Belajar Matematika', 1);
-- --------------------------------------------------------
--
-- Table structure for table `tb_siswa`
--
CREATE TABLE IF NOT EXISTS `tb_siswa` (
`nis` varchar(9) NOT NULL,
`nama` varchar(35) DEFAULT NULL,
`jenis_kelamin` char(1) DEFAULT NULL,
`kontak` varchar(13) DEFAULT NULL,
`alamat` varchar(30) DEFAULT NULL,
`id_kelas` int(11) NOT NULL,
PRIMARY KEY (`nis`),
KEY `id_kelas` (`id_kelas`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tb_siswa`
--
INSERT INTO `tb_siswa` (`nis`, `nama`, `jenis_kelamin`, `kontak`, `alamat`, `id_kelas`) VALUES
('113020036', 'riansyah', 'P', '0282828282', 'Jln Mekar', 11),
('113030039', '<NAME>', 'L', '089012345678', 'Psir Inpun, Cicaheum', 11),
('113040150', 'iqbal', 'P', '085756603194', 'Jln Mekar No 25 I', 11),
('113040233', '<NAME>', 'P', '09809897831', 'Padalarang', 11),
('113040234', 'Guskar', 'L', '0898989892', 'Jl. Setiabudi No. 193', 11),
('113040257', '<NAME>', 'L', '081220485102', 'Gegerkalong Tengah No. 50', 11),
('123010137', '<NAME>. ', 'L', '0817867617671', 'Cipasnas', 11),
('123020001', '<NAME>', 'P', '09927489729', 'Sukasari', 11),
('123020002', 'Kira', 'P', '09927489729', 'Sukasari', 11),
('123020003', 'Itachi', 'P', '09927489729', 'Sukasari', 11),
('123020004', 'Sasuke', 'P', '09927489729', 'Sukasari', 11),
('123020005', 'Bryan', 'P', '09927489729', 'Sukasari', 11),
('123020006', 'Roger', 'P', '09927489729', 'Sukasari', 11),
('123020007', 'Pressman', 'P', '09927489729', 'Sukasari', 11),
('123020008', 'Tobi', 'P', '09927489729', 'Sukasari', 11),
('123020009', 'Madara', 'P', '09927489729', 'Sukasari', 11),
('123020010', 'Senju', 'P', '09927489729', 'Sukasari', 11),
('123020011', 'Hashirama', 'P', '09927489729', 'Sukasari', 11),
('123020012', 'Uciha', 'P', '09927489729', 'Sukasari', 11),
('123020013', 'Ichigo', 'P', '09927489729', 'Sukasari', 11),
('123020014', 'Obito', 'P', '09927489729', 'Sukasari', 12),
('123020015', 'Kakashi', 'P', '09927489729', 'Sukasari', 12),
('123020016', 'Luffy', 'P', '09927489729', 'Sukasari', 12),
('123020017', '<NAME>', 'P', '09927489729', 'Sukasari', 12),
('123020062', 'Yoga Purnama N.', 'L', '089786735615', 'Gg. Sempit', 12),
('123020101', '<NAME> ', 'P', '09927489729', 'Sukasari', 12),
('123040226', 'Riansyah', 'L', '085756603194', 'Jln Mekar', 12),
('133010001', '<NAME>', 'L', '0837373732828', NULL, 12),
('133010002', '<NAME>', 'L', NULL, NULL, 12),
('133010003', '<NAME>', 'L', NULL, NULL, 12),
('133010004', '<NAME>', 'L', NULL, NULL, 12),
('133010005', '<NAME>', 'L', NULL, NULL, 12),
('133010006', '<NAME>', 'L', NULL, NULL, 12),
('133010007', '<NAME>', 'L', NULL, NULL, 12),
('133010008', '<NAME>', 'L', NULL, NULL, 12),
('133010009', '<NAME>', 'L', NULL, NULL, 12),
('133010010', '<NAME>', 'L', NULL, NULL, 12),
('133010011', '<NAME>', 'L', NULL, NULL, 12),
('133010012', '<NAME>', 'P', NULL, NULL, 12),
('133010013', '<NAME>', 'L', NULL, NULL, 12),
('133010014', '<NAME>', 'L', NULL, NULL, 13),
('133010015', '<NAME>', 'P', NULL, NULL, 13),
('133010016', '<NAME>', 'L', NULL, NULL, 13),
('133010017', '<NAME>', 'L', NULL, NULL, 13),
('133010018', '<NAME>', 'L', NULL, NULL, 13),
('133010019', '<NAME>', 'L', NULL, NULL, 13),
('133010020', '<NAME>', 'L', NULL, NULL, 13),
('133010021', '<NAME>', 'L', NULL, NULL, 13),
('133010022', '<NAME>', 'P', NULL, NULL, 13),
('133010024', '<NAME>', 'P', NULL, NULL, 13),
('133010025', '<NAME>', 'L', NULL, NULL, 13),
('133010027', '<NAME>', 'P', NULL, NULL, 13),
('133010028', '<NAME>', 'L', NULL, NULL, 13),
('133010029', '<NAME>', 'L', NULL, NULL, 13),
('133010030', '<NAME>', 'P', NULL, NULL, 13),
('133010031', '<NAME>', 'L', NULL, NULL, 13),
('133010032', '<NAME>', 'P', NULL, NULL, 13),
('133010033', '<NAME>', 'L', NULL, NULL, 13),
('133010034', '<NAME>', 'L', NULL, NULL, 13),
('133010035', '<NAME>', 'P', NULL, NULL, 13),
('133010036', '<NAME>', 'L', NULL, NULL, 0),
('133010037', '<NAME>', 'L', NULL, NULL, 0),
('133010039', '<NAME>', 'L', NULL, NULL, 0),
('133010040', '<NAME>', 'L', NULL, NULL, 0),
('133010041', '<NAME>', 'L', NULL, NULL, 0),
('133010042', '<NAME>', 'L', NULL, NULL, 0),
('133010043', '<NAME>', 'P', NULL, NULL, 0),
('133010044', '<NAME>', 'P', NULL, NULL, 0),
('133010045', 'BUDIMAN', 'L', NULL, NULL, 0),
('133010047', '<NAME>', 'L', NULL, NULL, 0),
('133010048', '<NAME>', 'L', NULL, NULL, 0),
('133010049', '<NAME>', 'L', NULL, NULL, 0),
('133010050', '<NAME>', 'L', NULL, NULL, 0),
('133010051', '<NAME>', 'L', NULL, NULL, 0),
('133010052', '<NAME>', 'L', NULL, NULL, 0),
('133010053', '<NAME>', 'L', NULL, NULL, 0),
('133010054', '<NAME>', 'L', NULL, NULL, 0),
('133010055', '<NAME>', 'L', NULL, NULL, 0),
('133010056', '<NAME>', 'L', NULL, NULL, 0),
('133010057', '<NAME>', 'L', NULL, NULL, 0),
('133010058', '<NAME>', 'P', NULL, NULL, 0),
('133010059', '<NAME>', 'L', NULL, NULL, 0),
('133010060', '<NAME>', 'L', NULL, NULL, 0),
('133010061', '<NAME>', 'L', NULL, NULL, 0),
('133010062', '<NAME>', 'L', NULL, NULL, 0),
('133010063', '<NAME>', 'L', NULL, NULL, 0),
('133010064', '<NAME>', 'L', NULL, NULL, 0),
('133010065', '<NAME>', 'L', NULL, NULL, 0),
('133010066', '<NAME>', 'L', NULL, NULL, 0),
('133010067', '<NAME>', 'L', NULL, NULL, 0),
('133010068', '<NAME>', 'L', NULL, NULL, 0),
('133010069', '<NAME>', 'L', NULL, NULL, 0),
('133010070', '<NAME>', 'L', NULL, NULL, 0),
('133010071', '<NAME>', 'L', NULL, NULL, 0),
('133010073', 'SUWARDI', 'L', NULL, NULL, 0),
('133010074', '<NAME>', 'L', NULL, NULL, 0),
('133010075', '<NAME>', 'L', NULL, NULL, 0),
('133010076', '<NAME>', 'P', NULL, NULL, 0),
('133010077', '<NAME>', 'L', NULL, NULL, 0),
('133010078', '<NAME>', 'L', NULL, NULL, 0),
('133010079', '<NAME>', 'L', NULL, NULL, 0),
('133010080', '<NAME>', 'L', NULL, NULL, 0),
('133010081', '<NAME>', 'L', NULL, NULL, 0),
('133010082', '<NAME>', 'L', NULL, NULL, 0),
('133010083', '<NAME>', 'P', NULL, NULL, 0),
('133010084', '<NAME>', 'L', NULL, NULL, 0),
('133010085', '<NAME>', 'L', NULL, NULL, 0),
('133010086', '<NAME>', 'L', NULL, NULL, 0),
('133010087', '<NAME>', 'L', NULL, NULL, 0),
('133010088', '<NAME>', 'L', NULL, NULL, 0),
('133010089', '<NAME>', 'L', NULL, NULL, 0),
('133010090', '<NAME>', 'L', NULL, NULL, 0),
('133010091', '<NAME>', 'L', NULL, NULL, 0),
('133010092', '<NAME>', 'L', NULL, NULL, 0),
('133010093', 'ENDRIYANTO', 'L', NULL, NULL, 0),
('133010094', '<NAME>', 'L', NULL, NULL, 0),
('133010095', '<NAME>', 'P', '08262727272', 'jln mekar', 0),
('133010096', '<NAME>', 'L', NULL, NULL, 0),
('133010097', '<NAME>', 'L', NULL, NULL, 0),
('133010098', '<NAME>', 'L', NULL, NULL, 0),
('133010099', 'EKA PERMANA', 'L', NULL, NULL, 0),
('133010100', '<NAME>', 'L', NULL, NULL, 0),
('133010101', '<NAME>', 'L', NULL, NULL, 0),
('133010102', '<NAME>', 'L', NULL, NULL, 0),
('133010103', '<NAME>', 'L', NULL, NULL, 0),
('133010104', '<NAME>', 'L', NULL, NULL, 0),
('133010105', '<NAME>', 'L', NULL, NULL, 0),
('133010106', '<NAME>', 'L', NULL, NULL, 0),
('133010107', '<NAME>', 'L', NULL, NULL, 0),
('133010108', '<NAME>', 'P', NULL, NULL, 0),
('133010109', '<NAME>', 'L', NULL, NULL, 0),
('133010110', '<NAME>', 'L', NULL, NULL, 0),
('133010111', '<NAME>', 'L', NULL, NULL, 0),
('133010112', '<NAME>', 'L', NULL, NULL, 0),
('133010113', '<NAME>', 'L', NULL, NULL, 0),
('133010114', '<NAME>', 'P', NULL, NULL, 0),
('133010115', '<NAME>', 'L', NULL, NULL, 0),
('133010116', '<NAME>', 'P', NULL, NULL, 0),
('133010117', '<NAME>', 'L', NULL, NULL, 0),
('133010118', '<NAME>', 'L', NULL, NULL, 0),
('133010119', '<NAME>', 'L', NULL, NULL, 0),
('133010120', '<NAME>', 'P', NULL, NULL, 0),
('133010121', '<NAME>', 'P', NULL, NULL, 0),
('133010122', '<NAME>', 'L', NULL, NULL, 0),
('133010123', '<NAME>', 'L', NULL, NULL, 0),
('133010124', '<NAME>', 'P', NULL, NULL, 0),
('133010125', 'FIKRY', 'L', NULL, NULL, 0),
('133010126', '<NAME>', 'L', NULL, NULL, 0),
('133010127', '<NAME>', 'L', NULL, NULL, 0),
('133010128', '<NAME>', 'P', NULL, NULL, 0),
('133010129', '<NAME>', 'L', NULL, NULL, 0),
('133010130', '<NAME>', 'L', NULL, NULL, 0),
('133010131', '<NAME>', 'L', NULL, NULL, 0),
('133010132', '<NAME>', 'L', NULL, NULL, 0),
('133010133', '<NAME>', 'L', NULL, NULL, 0),
('133010134', '<NAME>', 'L', NULL, NULL, 0),
('133010135', '<NAME>', 'L', NULL, NULL, 0),
('133010136', '<NAME>', 'L', NULL, NULL, 0),
('133010137', '<NAME>', 'L', NULL, NULL, 0),
('133010138', '<NAME>', 'L', NULL, NULL, 0),
('133010139', '<NAME>', 'L', NULL, NULL, 0),
('133010140', '<NAME>', 'L', NULL, NULL, 0),
('133010141', '<NAME>', 'L', NULL, NULL, 0),
('133010142', '<NAME>', 'P', NULL, NULL, 0),
('133010143', '<NAME>', 'L', NULL, NULL, 0),
('133010144', '<NAME>', 'L', NULL, NULL, 0),
('133010145', '<NAME>', 'L', NULL, NULL, 0),
('133010146', '<NAME>', 'P', NULL, NULL, 0),
('133010147', '<NAME>', 'P', NULL, NULL, 0),
('133010148', '<NAME>', 'L', NULL, NULL, 0),
('133010149', '<NAME>', 'L', NULL, NULL, 0),
('133010150', '<NAME>', 'P', NULL, NULL, 0),
('133010151', '<NAME>', 'P', NULL, NULL, 0),
('133010152', '<NAME>', 'P', NULL, NULL, 0),
('133010153', '<NAME>', 'L', NULL, NULL, 0),
('133010154', '<NAME>', 'L', NULL, NULL, 0),
('133010155', '<NAME>', 'L', NULL, NULL, 0),
('133010156', '<NAME>', 'L', NULL, NULL, 0),
('133010157', '<NAME>', 'L', NULL, NULL, 0),
('133010158', '<NAME>', 'L', NULL, NULL, 0),
('133010159', '<NAME>', 'P', NULL, NULL, 0),
('133010160', '<NAME>', 'L', NULL, NULL, 0),
('133010161', '<NAME>', 'L', NULL, NULL, 0),
('133010162', '<NAME>', 'L', NULL, NULL, 0),
('133010164', '<NAME>', 'P', NULL, NULL, 0),
('133010165', '<NAME>', 'L', NULL, NULL, 0),
('133010166', '<NAME>', 'L', NULL, NULL, 0),
('133010167', '<NAME>', 'L', NULL, NULL, 0),
('133010168', '<NAME>', 'L', NULL, NULL, 0),
('133010169', '<NAME>', 'L', NULL, NULL, 0),
('133010170', '<NAME>', 'L', NULL, NULL, 0),
('133010171', '<NAME>', 'L', NULL, NULL, 0),
('133010172', '<NAME>', 'L', NULL, NULL, 0),
('133010173', '<NAME>', 'L', NULL, NULL, 0),
('133010174', '<NAME>', 'L', NULL, NULL, 0),
('133010175', '<NAME>', 'L', NULL, NULL, 0),
('133010176', '<NAME>', 'L', NULL, NULL, 0),
('133010177', '<NAME>', 'P', NULL, NULL, 0),
('133010178', '<NAME>', 'L', NULL, NULL, 0),
('133010179', '<NAME>', 'L', NULL, NULL, 0),
('133010180', 'SUWANDIN', 'L', NULL, NULL, 0),
('133010181', '<NAME>', 'L', NULL, NULL, 0),
('133010182', '<NAME>', 'P', NULL, NULL, 0),
('133010183', '<NAME>', 'P', NULL, NULL, 0),
('133010184', '<NAME>', 'L', NULL, NULL, 0),
('133010185', '<NAME>', 'L', NULL, NULL, 0),
('133010186', '<NAME>', 'L', NULL, NULL, 0),
('133010187', '<NAME>', 'L', NULL, NULL, 0),
('133010188', '<NAME>', 'L', NULL, NULL, 0),
('133010189', '<NAME>', 'P', NULL, NULL, 0),
('133010190', '<NAME>', 'L', NULL, NULL, 0),
('133010191', '<NAME>', 'L', NULL, NULL, 0),
('133010192', '<NAME>', 'L', NULL, NULL, 0),
('133010193', '<NAME>', 'P', NULL, NULL, 0),
('133010194', '<NAME>', 'L', NULL, NULL, 0),
('133010195', '<NAME>', 'L', NULL, NULL, 0),
('133010196', '<NAME>', 'L', NULL, NULL, 0),
('133010197', '<NAME>', 'L', NULL, NULL, 0),
('133010198', '<NAME>', 'L', NULL, NULL, 0),
('133010199', '<NAME>', 'L', NULL, NULL, 0),
('133010200', '<NAME>', 'L', NULL, NULL, 0),
('133010201', '<NAME>', 'L', NULL, NULL, 0),
('133010202', '<NAME>', 'L', NULL, NULL, 0),
('133010203', '<NAME>', 'L', NULL, NULL, 0),
('133010204', '<NAME>', 'L', NULL, NULL, 0),
('133010205', '<NAME>', 'L', NULL, NULL, 0),
('133010206', '<NAME>', 'L', NULL, NULL, 0),
('133010207', '<NAME>,', 'L', NULL, NULL, 0),
('133010208', '<NAME>', 'P', NULL, NULL, 0),
('133010209', '<NAME>', 'L', NULL, NULL, 0),
('133010210', '<NAME>', 'L', NULL, NULL, 0),
('133010211', '<NAME>', 'L', NULL, NULL, 0),
('133010212', '<NAME>', 'L', NULL, NULL, 0),
('133010213', '<NAME>', 'L', NULL, NULL, 0),
('133010214', '<NAME>', 'L', NULL, NULL, 0),
('133010215', '<NAME>', 'L', NULL, NULL, 0),
('133010216', '<NAME>', 'L', NULL, NULL, 0),
('133010217', '<NAME>', 'L', NULL, NULL, 0),
('133010218', '<NAME>', 'L', NULL, NULL, 0),
('133010219', '<NAME>', 'L', NULL, NULL, 0),
('133010220', '<NAME>', 'L', NULL, NULL, 0),
('133010221', '<NAME>', 'L', NULL, NULL, 0),
('133010222', '<NAME>', 'P', NULL, NULL, 0),
('133010223', '<NAME>', 'L', NULL, NULL, 0),
('133010224', '<NAME>', 'L', NULL, NULL, 0),
('133020002', '<NAME>', 'P', NULL, NULL, 0),
('133020003', '<NAME>', 'P', NULL, NULL, 0),
('133020004', '<NAME>', 'P', NULL, NULL, 0),
('133020005', '<NAME>', 'P', NULL, NULL, 0),
('133020006', '<NAME>', 'P', NULL, NULL, 0),
('133020007', '<NAME>', 'L', NULL, NULL, 0),
('133020008', '<NAME>', 'P', NULL, NULL, 0),
('133020009', '<NAME>', 'P', NULL, NULL, 0),
('133020010', '<NAME>', 'P', NULL, NULL, 0),
('133020011', '<NAME>', 'L', NULL, NULL, 0),
('133020012', '<NAME>', 'P', NULL, NULL, 0),
('133020013', '<NAME>', 'L', NULL, NULL, 0),
('133020014', '<NAME>', 'P', NULL, NULL, 0),
('133020015', '<NAME>', 'L', NULL, NULL, 0),
('133020016', '<NAME>', 'P', NULL, NULL, 0),
('133020017', '<NAME>', 'L', NULL, NULL, 0),
('133020018', '<NAME>', 'L', NULL, NULL, 0),
('133020019', '<NAME>', 'P', NULL, NULL, 0),
('133020020', '<NAME>', 'L', NULL, NULL, 0),
('133020021', '<NAME>', 'P', NULL, NULL, 0),
('133020022', '<NAME>', 'L', NULL, NULL, 0),
('133020023', '<NAME>', 'P', NULL, NULL, 0),
('133020024', '<NAME>', 'L', NULL, NULL, 0),
('133020025', '<NAME>', 'P', NULL, NULL, 0),
('133020026', '<NAME>', 'L', NULL, NULL, 0),
('133020027', '<NAME>URISTINA', 'P', NULL, NULL, 0),
('133020028', '<NAME>', 'P', NULL, NULL, 0),
('133020029', '<NAME>', 'P', NULL, NULL, 0),
('133020030', '<NAME>', 'P', NULL, NULL, 0),
('133020031', '<NAME>', 'P', NULL, NULL, 0),
('133020032', '<NAME>', 'L', NULL, NULL, 0),
('133020033', '<NAME>', 'P', NULL, NULL, 0),
('133020034', '<NAME>', 'L', NULL, NULL, 0),
('133020035', '<NAME>', 'P', NULL, NULL, 0),
('133020036', '<NAME>', 'P', NULL, NULL, 0),
('133020037', '<NAME>', 'L', NULL, NULL, 0),
('133020038', '<NAME>', 'L', NULL, NULL, 0),
('133020039', '<NAME>', 'P', NULL, NULL, 0),
('133020040', '<NAME>', 'P', NULL, NULL, 0),
('133020041', '<NAME>', 'L', NULL, NULL, 0),
('133020042', 'RAMADIANSYAH', 'L', NULL, NULL, 0),
('143040200', 'Randi', 'L', '08627292020', NULL, 0),
('143040201', 'Rasen', 'L', '08627292020', NULL, 0),
('143040202', 'Bambang', 'L', '08627292020', NULL, 0),
('143040203', 'Basen', 'L', '08627292020', NULL, 0),
('143040204', 'Raden', 'L', '08627292020', NULL, 0),
('143040205', 'Lamas', 'L', '08627292020', NULL, 0),
('143040206', 'Bari', 'L', '08627292020', NULL, 0),
('143040207', 'Naim', 'L', '08627292020', NULL, 0),
('143040208', 'Jasen', 'L', '08627292020', NULL, 0),
('143040209', 'Jamil', 'L', '08627292020', NULL, 0),
('143040210', 'Rivel', 'L', '08627292020', NULL, 0),
('143040220', 'Budi', 'L', '08627292020', NULL, 0),
('143040226', 'Busi', 'L', '08627292020', NULL, 0);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<gh_stars>0
-- 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'Creating [edfi].[StateAbbreviationDescriptor]'
GO
CREATE TABLE [edfi].[StateAbbreviationDescriptor]
(
[StateAbbreviationDescriptorId] [int] NOT NULL
)
GO
EXEC [migration_tempdata].[sp_ImportDescriptorsFromXML] 'StateAbbreviationDescriptor'
GO
EXEC [migration_tempdata].[sp_ConvertTypeToDescriptor]
'migration_tempdata', 'StaffCredentialIdentityMapping',
'edfi', 'StateAbbreviationDescriptor',
'edfi', 'StateAbbreviationType',
'StateOfIssueStateAbbreviationTypeId', 'StateOfIssueStateAbbreviationDescriptorId'
GO
|
<gh_stars>0
--postgresql CDM DDL Specification for OMOP Common Data Model v6_0
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.PERSON (
person_id bigint NOT NULL,
gender_concept_id integer NOT NULL,
year_of_birth integer NOT NULL,
month_of_birth integer NULL,
day_of_birth integer NULL,
birth_datetime TIMESTAMP NULL,
death_datetime TIMESTAMP NULL,
race_concept_id integer NOT NULL,
ethnicity_concept_id integer NOT NULL,
location_id bigint NULL,
provider_id bigint NULL,
care_site_id bigint NULL,
person_source_value varchar(50) NULL,
gender_source_value varchar(50) NULL,
gender_source_concept_id integer NOT NULL,
race_source_value varchar(50) NULL,
race_source_concept_id integer NOT NULL,
ethnicity_source_value varchar(50) NULL,
ethnicity_source_concept_id integer NOT NULL );
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.OBSERVATION_PERIOD (
observation_period_id bigint NOT NULL,
person_id bigint NOT NULL,
observation_period_start_date date NOT NULL,
observation_period_end_date date NOT NULL,
period_type_concept_id Integer NOT NULL );
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.VISIT_OCCURRENCE (
visit_occurrence_id bigint NOT NULL,
person_id bigint NOT NULL,
visit_concept_id integer NOT NULL,
visit_start_date date NULL,
visit_start_datetime TIMESTAMP NOT NULL,
visit_end_date date NULL,
visit_end_datetime TIMESTAMP NOT NULL,
visit_type_concept_id Integer NOT NULL,
provider_id bigint NULL,
care_site_id bigint NULL,
visit_source_value varchar(50) NULL,
visit_source_concept_id integer NOT NULL,
admitted_from_concept_id integer NOT NULL,
admitted_from_source_value varchar(50) NULL,
discharge_to_concept_id integer NOT NULL,
discharge_to_source_value varchar(50) NULL,
preceding_visit_occurrence_id bigint NULL );
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.VISIT_DETAIL (
visit_detail_id bigint NOT NULL,
person_id bigint NOT NULL,
visit_detail_concept_id integer NOT NULL,
visit_detail_start_date date NOT NULL,
visit_detail_start_datetime TIMESTAMP NULL,
visit_detail_end_date date NOT NULL,
visit_detail_end_datetime TIMESTAMP NULL,
visit_detail_type_concept_id Integer NOT NULL,
provider_id bigint NULL,
care_site_id bigint NULL,
visit_detail_source_value varchar(50) NULL,
visit_detail_source_concept_id integer NOT NULL,
admitting_source_value varchar(50) NULL,
admitting_source_concept_id integer NOT NULL,
discharge_to_source_value varchar(50) NULL,
discharge_to_concept_id integer NOT NULL,
preceding_visit_detail_id bigint NULL,
visit_detail_parent_id bigint NULL,
visit_occurrence_id bigint NOT NULL );
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.CONDITION_OCCURRENCE (
condition_occurrence_id bigint NOT NULL,
person_id bigint NOT NULL,
condition_concept_id integer NOT NULL,
condition_start_date date NOT NULL,
condition_start_datetime TIMESTAMP NULL,
condition_end_date date NULL,
condition_end_datetime TIMESTAMP NULL,
condition_type_concept_id integer NOT NULL,
condition_status_concept_id integer NOT NULL,
stop_reason varchar(20) NULL,
provider_id bigint NULL,
visit_occurrence_id bigint NULL,
visit_detail_id bigint NULL,
condition_source_value varchar(50) NULL,
condition_source_concept_id integer NOT NULL,
condition_status_source_value varchar(50) NULL );
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.DRUG_EXPOSURE (
drug_exposure_id bigint NOT NULL,
person_id bigint NOT NULL,
drug_concept_id integer NOT NULL,
drug_exposure_start_date date NOT NULL,
drug_exposure_start_datetime TIMESTAMP NULL,
drug_exposure_end_date date NOT NULL,
drug_exposure_end_datetime TIMESTAMP NULL,
verbatim_end_date date NULL,
drug_type_concept_id integer NOT NULL,
stop_reason varchar(20) NULL,
refills integer NULL,
quantity NUMERIC NULL,
days_supply integer NULL,
sig TEXT NULL,
route_concept_id integer NULL,
lot_number varchar(50) NULL,
provider_id bigint NULL,
visit_occurrence_id bigint NULL,
visit_detail_id bigint NULL,
drug_source_value varchar(50) NULL,
drug_source_concept_id integer NOT NULL,
route_source_value varchar(50) NULL,
dose_unit_source_value varchar(50) NULL );
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.PROCEDURE_OCCURRENCE (
procedure_occurrence_id bigint NOT NULL,
person_id bigint NOT NULL,
procedure_concept_id integer NOT NULL,
procedure_date date NULL,
procedure_datetime TIMESTAMP NOT NULL,
procedure_type_concept_id integer NOT NULL,
modifier_concept_id integer NOT NULL,
quantity integer NULL,
provider_id bigint NULL,
visit_occurrence_id bigint NULL,
visit_detail_id bigint NULL,
procedure_source_value varchar(50) NULL,
procedure_source_concept_id integer NOT NULL,
modifier_source_value varchar(50) NULL );
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.DEVICE_EXPOSURE (
device_exposure_id bigint NOT NULL,
person_id bigint NOT NULL,
device_concept_id integer NOT NULL,
device_exposure_start_date date NOT NULL,
device_exposure_start_datetime TIMESTAMP NULL,
device_exposure_end_date date NULL,
device_exposure_end_datetime TIMESTAMP NULL,
device_type_concept_id integer NOT NULL,
unique_device_id varchar(50) NULL,
quantity integer NULL,
provider_id bigint NULL,
visit_occurrence_id bigint NULL,
visit_detail_id bigint NULL,
device_source_value varchar(50) NULL,
device_source_concept_id integer NOT NULL );
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.MEASUREMENT (
measurement_id bigint NOT NULL,
person_id bigint NOT NULL,
measurement_concept_id integer NOT NULL,
measurement_date date NOT NULL,
measurement_datetime TIMESTAMP NULL,
measurement_time varchar(10) NULL,
measurement_type_concept_id integer NOT NULL,
operator_concept_id integer NULL,
value_as_number NUMERIC NULL,
value_as_concept_id integer NULL,
unit_concept_id integer NULL,
range_low NUMERIC NULL,
range_high NUMERIC NULL,
provider_id bigint NULL,
visit_occurrence_id bigint NULL,
visit_detail_id bigint NULL,
measurement_source_value varchar(50) NULL,
measurement_source_concept_id integer NOT NULL,
unit_source_value varchar(50) NULL,
value_source_value varchar(50) NULL );
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.OBSERVATION (
observation_id bigint NOT NULL,
person_id bigint NOT NULL,
observation_concept_id integer NOT NULL,
observation_date date NULL,
observation_datetime TIMESTAMP NOT NULL,
observation_type_concept_id integer NOT NULL,
value_as_number NUMERIC NULL,
value_as_string varchar(60) NULL,
value_as_concept_id Integer NULL,
qualifier_concept_id integer NULL,
unit_concept_id integer NULL,
provider_id bigint NULL,
visit_occurrence_id bigint NULL,
visit_detail_id bigint NULL,
observation_source_value varchar(50) NULL,
observation_source_concept_id integer NOT NULL,
unit_source_value varchar(50) NULL,
qualifier_source_value varchar(50) NULL,
observation_event_id bigint NULL,
obs_event_field_concept_id integer NULL,
value_as_datetime TIMESTAMP NULL );
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.NOTE (
note_id integer NOT NULL,
person_id bigint NOT NULL,
note_date date NOT NULL,
note_datetime TIMESTAMP NULL,
note_type_concept_id integer NOT NULL,
note_class_concept_id integer NOT NULL,
note_title varchar(250) NULL,
note_text TEXT NOT NULL,
encoding_concept_id integer NOT NULL,
language_concept_id integer NOT NULL,
provider_id bigint NULL,
visit_occurrence_id bigint NULL,
visit_detail_id bigint NULL,
note_source_value varchar(50) NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.NOTE_NLP (
note_nlp_id bigint NOT NULL,
note_id integer NOT NULL,
section_concept_id integer NULL,
snippet varchar(250) NULL,
"offset" varchar(50) NULL,
lexical_variant varchar(250) NOT NULL,
note_nlp_concept_id integer NULL,
note_nlp_source_concept_id integer NULL,
nlp_system varchar(250) NULL,
nlp_date date NOT NULL,
nlp_datetime TIMESTAMP NULL,
term_exists varchar(1) NULL,
term_temporal varchar(50) NULL,
term_modifiers varchar(2000) NULL );
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.SPECIMEN (
specimen_id bigint NOT NULL,
person_id bigint NOT NULL,
specimen_concept_id integer NOT NULL,
specimen_type_concept_id integer NOT NULL,
specimen_date date NOT NULL,
specimen_datetime TIMESTAMP NULL,
quantity NUMERIC NULL,
unit_concept_id integer NULL,
anatomic_site_concept_id integer NULL,
disease_status_concept_id integer NULL,
specimen_source_id varchar(50) NULL,
specimen_source_value varchar(50) NULL,
unit_source_value varchar(50) NULL,
anatomic_site_source_value varchar(50) NULL,
disease_status_source_value varchar(50) NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.FACT_RELATIONSHIP (
domain_concept_id_1 integer NOT NULL,
fact_id_1 bigint NOT NULL,
domain_concept_id_2 integer NOT NULL,
fact_id_2 bigint NOT NULL,
relationship_concept_id integer NOT NULL );
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.SURVEY_CONDUCT (
survey_conduct_id bigint NOT NULL,
person_id bigint NOT NULL,
survey_concept_id integer NOT NULL,
survey_start_date date NULL,
survey_start_datetime TIMESTAMP NULL,
survey_end_date date NULL,
survey_end_datetime TIMESTAMP NOT NULL,
provider_id bigint NULL,
assisted_concept_id integer NOT NULL,
respondent_type_concept_id integer NOT NULL,
timing_concept_id integer NOT NULL,
collection_method_concept_id integer NOT NULL,
assisted_source_value varchar(50) NULL,
respondent_type_source_value varchar(100) NULL,
timing_source_value varchar(100) NULL,
collection_method_source_value varchar(100) NULL,
survey_source_value varchar(100) NULL,
survey_source_concept_id integer NOT NULL,
survey_source_identifier varchar(100) NULL,
validated_survey_concept_id integer NOT NULL,
validated_survey_source_value integer NULL,
survey_version_number varchar(20) NULL,
visit_occurrence_id bigint NULL,
response_visit_occurrence_id bigint NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.LOCATION (
location_id bigint NOT NULL,
address_1 varchar(50) NULL,
address_2 varchar(50) NULL,
city varchar(50) NULL,
state varchar(2) NULL,
zip varchar(9) NULL,
county varchar(20) NULL,
location_source_value varchar(50) NULL,
latitude NUMERIC NULL,
longitude NUMERIC NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.LOCATION_HISTORY (
location_id bigint NOT NULL,
relationship_type_concept_id integer NOT NULL,
domain_id varchar(50) NOT NULL,
entity_id bigint NOT NULL,
start_date date NOT NULL,
end_date date NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.CARE_SITE (
care_site_id bigint NOT NULL,
care_site_name varchar(255) NULL,
place_of_service_concept_id integer NOT NULL,
location_id bigint NULL,
care_site_source_value varchar(50) NULL,
place_of_service_source_value varchar(50) NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.PROVIDER (
provider_id bigint NOT NULL,
provider_name varchar(255) NULL,
npi varchar(20) NULL,
dea varchar(20) NULL,
specialty_concept_id integer NOT NULL,
care_site_id bigint NULL,
year_of_birth integer NULL,
gender_concept_id integer NOT NULL,
provider_source_value varchar(50) NULL,
specialty_source_value varchar(50) NULL,
specialty_source_concept_id integer NOT NULL,
gender_source_value varchar(50) NULL,
gender_source_concept_id integer NOT NULL );
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.PAYER_PLAN_PERIOD (
payer_plan_period_id bigint NOT NULL,
person_id bigint NOT NULL,
contract_person_id bigint NULL,
payer_plan_period_start_date date NOT NULL,
payer_plan_period_end_date date NOT NULL,
payer_concept_id integer NOT NULL,
payer_source_value varchar(50) NULL,
payer_source_concept_id integer NOT NULL,
plan_concept_id integer NOT NULL,
plan_source_value varchar(50) NULL,
plan_source_concept_id integer NOT NULL,
contract_concept_id integer NOT NULL,
contract_source_value varchar(50) NOT NULL,
contract_source_concept_id integer NOT NULL,
sponsor_concept_id integer NOT NULL,
sponsor_source_value varchar(50) NULL,
sponsor_source_concept_id integer NULL,
family_source_value varchar(50) NULL,
stop_reason_concept_id integer NULL,
stop_reason_source_value varchar(50) NULL,
stop_reason_source_concept_id integer NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.COST (
cost_id INTEGER NOT NULL,
cost_event_id bigint NOT NULL,
cost_domain_id VARCHAR(20) NOT NULL,
cost_type_concept_id integer NOT NULL,
currency_concept_id integer NULL,
total_charge NUMERIC NULL,
total_cost NUMERIC NULL,
total_paid NUMERIC NULL,
paid_by_payer NUMERIC NULL,
paid_by_patient NUMERIC NULL,
paid_patient_copay NUMERIC NULL,
paid_patient_coinsurance NUMERIC NULL,
paid_patient_deductible NUMERIC NULL,
paid_by_primary NUMERIC NULL,
paid_ingredient_cost NUMERIC NULL,
paid_dispensing_fee NUMERIC NULL,
payer_plan_period_id bigint NULL,
amount_allowed NUMERIC NULL,
revenue_code_concept_id integer NULL,
revenue_code_source_value VARCHAR(50) NULL,
drg_concept_id integer NULL,
drg_source_value VARCHAR(3) NULL );
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.DRUG_ERA (
drug_era_id bigint NOT NULL,
person_id bigint NOT NULL,
drug_concept_id integer NOT NULL,
drug_era_start_date TIMESTAMP NOT NULL,
drug_era_end_date TIMESTAMP NOT NULL,
drug_exposure_count integer NULL,
gap_days integer NULL );
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.DOSE_ERA (
dose_era_id bigint NOT NULL,
person_id bigint NOT NULL,
drug_concept_id integer NOT NULL,
unit_concept_id integer NOT NULL,
dose_value NUMERIC NOT NULL,
dose_era_start_date TIMESTAMP NOT NULL,
dose_era_end_date TIMESTAMP NOT NULL );
--HINT DISTRIBUTE ON KEY (person_id)
CREATE TABLE ohdsi.CONDITION_ERA (
condition_era_id integer NOT NULL,
person_id bigint NOT NULL,
condition_concept_id integer NOT NULL,
condition_era_start_date TIMESTAMP NOT NULL,
condition_era_end_date TIMESTAMP NOT NULL,
condition_occurrence_count integer NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.METADATA (
metadata_concept_id integer NOT NULL,
metadata_type_concept_id integer NOT NULL,
name varchar(250) NOT NULL,
value_as_string varchar(250) NULL,
value_as_concept_id integer NULL,
metadata_date date NULL,
metadata_datetime TIMESTAMP NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.CDM_SOURCE (
cdm_source_name varchar(255) NOT NULL,
cdm_source_abbreviation varchar(25) NULL,
cdm_holder varchar(255) NULL,
source_description TEXT NULL,
source_documentation_reference varchar(255) NULL,
cdm_etl_reference varchar(255) NULL,
source_release_date date NULL,
cdm_release_date date NULL,
cdm_version varchar(10) NULL,
vocabulary_version varchar(20) NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.CONCEPT (
concept_id integer NOT NULL,
concept_name varchar(255) NOT NULL,
domain_id varchar(20) NOT NULL,
vocabulary_id varchar(20) NOT NULL,
concept_class_id varchar(20) NOT NULL,
standard_concept varchar(1) NULL,
concept_code varchar(50) NOT NULL,
valid_start_date date NOT NULL,
valid_end_date date NOT NULL,
invalid_reason varchar(1) NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.VOCABULARY (
vocabulary_id varchar(20) NOT NULL,
vocabulary_name varchar(255) NOT NULL,
vocabulary_reference varchar(255) NOT NULL,
vocabulary_version varchar(255) NULL,
vocabulary_concept_id integer NOT NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.DOMAIN (
domain_id varchar(20) NOT NULL,
domain_name varchar(255) NOT NULL,
domain_concept_id integer NOT NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.CONCEPT_CLASS (
concept_class_id varchar(20) NOT NULL,
concept_class_name varchar(255) NOT NULL,
concept_class_concept_id integer NOT NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.CONCEPT_RELATIONSHIP (
concept_id_1 integer NOT NULL,
concept_id_2 integer NOT NULL,
relationship_id varchar(20) NOT NULL,
valid_start_date date NOT NULL,
valid_end_date date NOT NULL,
invalid_reason varchar(1) NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.RELATIONSHIP (
relationship_id varchar(20) NOT NULL,
relationship_name varchar(255) NOT NULL,
is_hierarchical varchar(1) NOT NULL,
defines_ancestry varchar(1) NOT NULL,
reverse_relationship_id varchar(20) NOT NULL,
relationship_concept_id integer NOT NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.CONCEPT_SYNONYM (
concept_id integer NOT NULL,
concept_synonym_name varchar(1000) NOT NULL,
language_concept_id integer NOT NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.CONCEPT_ANCESTOR (
ancestor_concept_id integer NOT NULL,
descendant_concept_id integer NOT NULL,
min_levels_of_separation integer NOT NULL,
max_levels_of_separation integer NOT NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.SOURCE_TO_CONCEPT_MAP (
source_code varchar(50) NOT NULL,
source_concept_id integer NOT NULL,
source_vocabulary_id varchar(20) NOT NULL,
source_code_description varchar(255) NULL,
target_concept_id integer NOT NULL,
target_vocabulary_id varchar(20) NOT NULL,
valid_start_date date NOT NULL,
valid_end_date date NOT NULL,
invalid_reason varchar(1) NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.DRUG_STRENGTH (
drug_concept_id integer NOT NULL,
ingredient_concept_id integer NOT NULL,
amount_value NUMERIC NULL,
amount_unit_concept_id integer NULL,
numerator_value NUMERIC NULL,
numerator_unit_concept_id integer NULL,
denominator_value NUMERIC NULL,
denominator_unit_concept_id integer NULL,
box_size integer NULL,
valid_start_date date NOT NULL,
valid_end_date date NOT NULL,
invalid_reason varchar(1) NULL );
--HINT DISTRIBUTE ON RANDOM
CREATE TABLE ohdsi.COHORT_DEFINITION (
cohort_definition_id integer NOT NULL,
cohort_definition_name varchar(255) NOT NULL,
cohort_definition_description TEXT NULL,
definition_type_concept_id integer NOT NULL,
cohort_definition_syntax TEXT NULL,
subject_concept_id integer NOT NULL,
cohort_initiation_date date NULL ); |
<reponame>aehrc/release-validation-framework<filename>importer/src/main/resources/scripts/release-type/release-type-snapshot-validation-expression-association-refset.sql
/*
* Content in the the current ExpressionAssociationRefset snapshot file must be in the current full file
*/
insert into qa_result (runid, assertionuuid, concept_id, details)
select
<RUNID>,
'<ASSERTIONUUID>',
a.referencedcomponentid,
concat('ExpressionAssociationRefset: id=',a.id, ' is in SNAPSHOT file, but not in FULL file.')
from curr_expressionAssociationRefset_s a
left join curr_expressionAssociationRefset_f b
on a.id = b.id
and a.effectivetime = b.effectivetime
and a.active = b.active
and a.moduleid = b.moduleid
and a.refsetid = b.refsetid
and a.referencedcomponentid = b.referencedcomponentid
and a.mapTarget = b.mapTarget
and a.expression = b.expression
and a.definitionStatusId = b.definitionStatusId
and a.correlationId = b.correlationId
and a.contentOriginId = b.contentOriginId
where
b.id is null
or b.effectivetime is null
or b.active is null
or b.moduleid is null
or b.refsetid is null
or b.referencedcomponentid is null
or b.mapTarget is null
or b.expression is null
or b.definitionStatusId is null
or b.correlationId is null
or b.contentOriginId is null;
commit;
insert into qa_result (runid, assertionuuid, concept_id, details)
select
<RUNID>,
'<ASSERTIONUUID>',
a.referencedcomponentid,
concat('ExpressionAssociationRefset: id=',a.id, ' is in FULL file, but not in SNAPSHOT file.')
from curr_expressionAssociationRefset_f a
left join curr_expressionAssociationRefset_s b
on a.id = b.id
and a.effectivetime = b.effectivetime
and a.active = b.active
and a.moduleid = b.moduleid
and a.refsetid = b.refsetid
and a.referencedcomponentid = b.referencedcomponentid
and a.mapTarget = b.mapTarget
and a.expression = b.expression
and a.definitionStatusId = b.definitionStatusId
and a.correlationId = b.correlationId
and a.contentOriginId = b.contentOriginId
where
cast(a.effectivetime as datetime) =
(select max(cast(z.effectivetime as datetime))
from curr_expressionAssociationRefset_f z
where z.id = a.id)
and
( b.id is null
or b.effectivetime is null
or b.active is null
or b.moduleid is null
or b.refsetid is null
or b.referencedcomponentid is null
or b.mapTarget is null
or b.expression is null
or b.definitionStatusId is null
or b.correlationId is null
or b.contentOriginId is null);
commit; |
{#####################################################}
{## Change policy owner ##}
{#####################################################}
{% if data.policyowner and o_data.policyowner != data.policyowner %}
ALTER POLICY {{ conn|qtIdent(o_data.name) }} ON {{conn|qtIdent(o_data.schema, o_data.table)}}
TO {{ conn|qtTypeIdent(data.policyowner) }};
{% endif %}
{#####################################################}
{## Change policy using condition ##}
{#####################################################}
{% if data.using and o_data.using != data.using %}
ALTER POLICY {{ conn|qtIdent(o_data.name) }} ON {{conn|qtIdent(o_data.schema, o_data.table)}}
USING ({{ data.using }});
{% endif %}
{#####################################################}
{## Change policy with check condition ##}
{#####################################################}
{% if data.withcheck and o_data.withcheck != data.withcheck %}
ALTER POLICY {{ conn|qtIdent(o_data.name) }} ON {{conn|qtIdent(o_data.schema, o_data.table)}}
WITH CHECK ({{ data.withcheck }});
{% endif %}
{#####################################################}
{## Change policy name ##}
{#####################################################}
{% if data.name and o_data.name != data.name %}
ALTER POLICY {{ conn|qtIdent(o_data.name) }} ON {{conn|qtIdent(o_data.schema, o_data.table)}}
RENAME TO {{ conn|qtIdent(data.name) }};
{% endif %}
|
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 2017 m. Vas 14 d. 17:30
-- Server version: 10.1.19-MariaDB
-- PHP Version: 5.6.28
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: `blog_db`
--
-- --------------------------------------------------------
--
-- Sukurta duomenų struktūra lentelei `category`
--
CREATE TABLE `category` (
`id` int(11) NOT NULL,
`category_name` varchar(255) NOT NULL,
`status` varchar(10) NOT NULL DEFAULT 'a'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Sukurta duomenų kopija lentelei `category`
--
INSERT INTO `category` (`id`, `category_name`, `status`) VALUES
(1, 'kelionÄ—s', 'a'),
(2, 'atostogos', 'a'),
(3, 'sostinÄ—s', 'a'),
(4, 'maršrutai', 'a'),
(5, 'patarimai', 'a');
-- --------------------------------------------------------
--
-- Sukurta duomenų struktūra lentelei `comments`
--
CREATE TABLE `comments` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`entry_id` int(11) NOT NULL,
`comment` varchar(255) NOT NULL,
`timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`status` varchar(11) NOT NULL DEFAULT 'a'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Sukurta duomenų kopija lentelei `comments`
--
INSERT INTO `comments` (`id`, `user_id`, `entry_id`, `comment`, `timestamp`, `status`) VALUES
(1, 0, 17, 'asasasa', '2017-02-14 13:36:37', 'd'),
(2, 0, 17, 'Pats antriausias komentaras ever.', '2017-02-14 13:37:21', 'd'),
(3, 0, 17, 'TreÄiausias komentaras', '2017-02-14 13:40:22', 'd'),
(4, 0, 17, 'KetvirÄiausias komentaras', '2017-02-14 13:44:14', 'd'),
(5, 0, 17, 'Ketvirtas komentaras', '2017-02-14 13:46:41', 'd'),
(6, 4, 17, 'Arklimanto komentaras 2ia tur4t7 b8ti 5ra6omas', '2017-02-14 14:09:06', 'd'),
(7, 3, 18, 'Pirmas komentaras apie kavÄ…', '2017-02-14 16:37:51', 'a'),
(8, 0, 18, 'Kometaras', '2017-02-14 18:24:21', 'a');
-- --------------------------------------------------------
--
-- Sukurta duomenų struktūra lentelei `entries`
--
CREATE TABLE `entries` (
`id` int(11) NOT NULL,
`user_id` varchar(100) NOT NULL,
`title` varchar(2000) NOT NULL,
`entry` text NOT NULL,
`category_id` int(11) NOT NULL,
`timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`status` varchar(11) NOT NULL DEFAULT 'a',
`picture` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Sukurta duomenų kopija lentelei `entries`
--
INSERT INTO `entries` (`id`, `user_id`, `title`, `entry`, `category_id`, `timestamp`, `status`, `picture`) VALUES
(17, '1', 'Ä®raÅ¡as apie BarselonÄ…', '<p>Barselona – miestas Ispanijos šiaurÄ—s rytuose, Katalonijos regiono sostinÄ— ir provincijos centras. Tai didelis jÅ«rų uostas, tarptautinis oro uostas, vienas iš svarbiausių visos Ispanijos ekonomikos ir kultÅ«ros centras. Išvystyta mašinų, tekstilÄ—s, chemijos, popieriaus, poligrafijos, maisto pramonÄ—. Po miestu nutiestas patogus metropolitenas. Barselonoje yra 3 universitetai, Äia rengiamos prekybinÄ—s mugÄ—s ir renginiai. SenamiesÄio branduolys – <NAME>, viduramžių gotikos pastatų ir bažnyÄių muziejus po atviru dangumi. Šioje miesto dalyje yra ir P. Pikaso muziejus. CentrinÄ— Barselonos katedra La Seu – vienas iš didžiausių gotikos statinių Ispanijoje. Mieste yra daug įvairių architektÅ«ros ir kultÅ«ros paminklų – Santa Eul?lia katedra, įžymiojo architekto Antonio Gaudi neužbaigta katedra Sagrada Familia daugiau nei 100 metų statoma bažnyÄia (statoma nuo 1882 m., planuojama baigti 2026 m.), San Pablo del Campo bažnyÄia (X–XIII a.), gotikinÄ— XIII–XV a. katedra, Nuestra Se?ora de Belen bažnyÄia (XVII–XVIII a. barokas), Güell parkas ir kt. Yra daug muziejų – istorijos, archeologijos, jÅ«rų, dailÄ—s menų ir kt. Operos ir baleto teatras. Netoliese aikštÄ—s ir rÅ«mai Episcopal Palace, Palau de Generalitat, Placa del Rei). JÅ«ros pakrantÄ—je – monumentas Kristupui Kolumbui. Mieste labai ryški architekto Antonio Gaud? (1852–1923) įtaka (XIX a. pabaiga). Barselona įsikÅ«rusi paÄiuose Ispanijos šiaurÄ—s rytuose, netoli sienos su PrancÅ«zija. Miesto pakrantes skalauja Viduržemio jÅ«ra.</p>', 3, '2017-02-14 11:00:42', 'a', ''),
(18, '3', 'Ä®raÅ¡as apie kavÄ…', '<p>Ji kelia aistrÄ…, nuotaikÄ… ir priklausomybÄ™. Tai antras vertingiausias pasaulyje dalykas (po naftos) ir yra svarbus bei reikalingas daugumai žmonių kasdienoje ir kelionÄ—se, nepriklausomai nuo to, kur vykstama.Kalbame apie kavÄ… ir geriausias vietas ja mÄ—gautis.Adis Abeba, Etiopija</p>\r\n<p>Kai kurie tvirtina, kad Etiopija yra kavos gimtinÄ—, taigi nenuostabu, kad kava Äia kuo įprasÄiausias ir kasdieniškiausias dalykas. Jei bÅ«site pakviesti į etiopietiškÄ… kavos gÄ—rimo ceremonijÄ…, jokiais bÅ«dais jos nepražiopsokite: tai unikalus ir įmantrus ritualas, kurio niekada nepamiršite. Jei tokiame dalyvauti neteks, visuomet yra Tomoka, tradicinÄ— itališko stiliaus kavinukÄ—, kurioje maloniai praleisite laikÄ….</p>\r\n<p>Havana, Kuba</p>\r\n<p>KubieÄiai dievina savo stipriÄ…, juodÄ…, saldžiÄ… ir patiekiamÄ… mažuose espresso puodeliuose kavÄ…. Užauginta Escambray ir Sierra Maestra kalnuose, šviežia kava suteiks jÄ—gų kiekvienam keliautojui. Kavos namai Havanoje dygsta kas minutÄ™, tad pasirinkimas tikrai didelis, taÄiau nuodÄ—mÄ— bÅ«tų praeiti pro šalį ir neužsukti į vietinÄ™ Café de las Infusiones kavinukÄ™.</p>\r\n<p>Stambulas, Turkija</p>\r\n<p>StebÄ—tina, taÄiau turkiška kava (Türk kahve) savo gimtinÄ—je nÄ—ra tokia paplitusi kaip arbata (?ay). TaÄiau neverta jaudintis, kad nerasite kur patenkinti savo kavos poreikio. Tradiciniai kavos namai (pvz. Etham Tez?akar Kahveci) siÅ«lo šviežiÄ…, stipriÄ… ir tirštÄ… kavÄ…, nuo kurios gali ir plaukai pasišiaušti.</p>\r\n<p>Medellin, Kolumbija</p>\r\n<p>Kolumbija garsÄ—ja savo sodria, aromatinga kava. Deja, didžioji geriausių pupelių dalis eksportuojama į kitas šalis, tad vietiniams tenka tik vidutinÄ—s kokybÄ—s kava. Viena išimtis – Le Bon Café Medellin mieste. Taip pat galima aplankyti kavamedžių plantacijas Zona Cafetera ir kavos pupelių įsigyti tiesiai iš augintojų.</p>', 4, '2017-02-14 16:33:31', 'a', ''),
(19, '3', 'Ä®raÅ¡as apie kelionÄ™ į BratislavÄ…', '<p>Atkeliavome į BratislavÄ… mikroautobusu, pilnu kelionÄ—s draugų. Su kolega paprašÄ—me bÅ«ti išleidžiami, kadangi norÄ—jome apžiÅ«rÄ—ti miestÄ…. Kaip vÄ—liau paaiškÄ—jo, buvome visiškai nepasiruošÄ™: žinojome keliÄ… į hostelį tik nuo traukinių stoties, bet turÄ—jome problemų surandant tinkamÄ… autobusÄ…, o vÄ—liau ir patį hostelį. Galiausiai radÄ™ jį ir palikÄ™ kai kuriuos savo daiktus, atsisÄ—dome apaÄioje esanÄiame restorane puodeliui arbatos. Kol galvojome, kÄ… Äia nuveikus, per langÄ… pastebÄ—jau naujÄ…jį Bratislavos tiltÄ…. Mergina, dirbanti restorane, rekomendavo nueiti į kitus restoranus, esanÄius kitoje upÄ—s pusÄ—je. Pagalvojome, jog nukakti iki jų per įspÅ«dingÄ…jį tiltÄ… bus trumpa, lengva kelionÄ— pÄ—sÄiomis, taÄiau tik išÄ—jÄ™ iš restorano sugebÄ—jome pasiklysti, o beklaidžiodami atsitrenkti į to paties hostelio gyventojÄ…, įsmeigusį akis į žemÄ—lapį. PasikalbÄ—jÄ™ nusprendÄ—me, jog suvienijÄ™ jÄ—gas turÄ—sime daugiau šansų rasti tiltÄ…, tad į paieškas pajudÄ—jome jau trise. PasiekÄ™ tiltÄ… supratome, jog mÅ«sų visos pastangos jo beieškant nuÄ—jo bergždžiai. Tiltas neturÄ—jo jokių šaligatvių, todÄ—l pereiti jį pÄ—sÄiomis nebus įmanoma. Ta proga pasitenkinÄ™ tik upÄ—s kranto tyrinÄ—jimu užsukome į slovakų nacionalinÄ—s virtuvÄ—s restoranÄ… suvalgyti slovakiškų pietų. Pasmaguriavau slovakiško alaus ir jautienos griežinÄ—lių padaže su ryžiais. Toliau pajudÄ—jome į žymiÄ…jÄ… MÄ—lynÄ…jÄ… BažnyÄiÄ…. Ši bažnyÄia tapo mano mÄ—gstamiausia vieta Bratislavoje. Bet jei norite apžiÅ«rÄ—ti ir jos vidų, pirma patikrinkite lankymo valandas, nes kitaip teks bažnyÄiÄ… apžiÅ«rinÄ—ti už vartų.</p>\r\n<p> </p>', 2, '2017-02-14 16:40:01', 'a', ''),
(20, '3', 'Ä®raÅ¡as apie TalinÄ… žiemÄ… ', '<p>Ä® pažintinÄ™ kelionÄ™ autobusu į TalinÄ… nusprendÄ—me leistis visai atsitiktinai pamatÄ™ beprotiškai viliojantį tik vienÄ… dienÄ… galiojusį pasiÅ«lymÄ…. Taigi, apgalvojÄ™ visus keliavimo ir pažinimo džiaugsmų pliusus, juo ir pasinaudojom, nors buvome nutarÄ™ niekur žiemÄ… nevažiuoti, nes juk šalta ir apskritai jokių autobusų, nÄ— kalbos negali bÅ«ti apie keliavimÄ… šiuo bÅ«du! Bet išÄ—jo kitaip – tiesiog neatsispyrÄ—m 9 valandÄ—lių pasikratymui, nes sÄ…lygos buvo itin viliojanÄios, todÄ—l kartais vis nerimavau, kad kur nors vis tiek gausim sÄ…skaitÄ…. Dar niekada nekeliavau į kelionÄ™ su grupe, bet nujauÄiau, kad kova dÄ—l vietų bus atkakli lyg dÄ—l milijono. Ir o taip! Iš pradžių atrodÄ—, kad dar nesusirinkom, bet vos tik atvažiavo autobusas, visi išlindo iš visų kampų ir kampelių ir bÅ«dami jauni ir tikrai vikrÅ«s puolÄ— vidun kovoti dÄ—l padoriausių vietų savo ilgoms kojytÄ—ms ištiesti. Vis dÄ—lto neskubÄ—dami įsitaisÄ—me į likusias neblogas vieteles bei iškart susipažinome su faktu, kad autobusas – ne pats patogiausias, kokiu teko važiuoti – dÄ—l vietų trÅ«kumo atsilenkti sÄ—dynių beveik neįmanoma. Neilgai trukus susipažinome ir su gide Marija, kuri išsyk pristatÄ— save kaip 11 sÅ«nų mamÄ…, kuri dÄ—l šios priežasties ir mus visus labai myli! PasijutÄ™ paÄiose geriausiose rankose, patraukÄ—me link Panevėžio su išties prastu filmu rusų kalba fone, kuris neleido miegoti. Tiesa, to filmo metu pramiegojau paÄiÄ… skaniausiÄ… valandÄ… per visÄ… naktį. Tikrasis miego laikas prasidÄ—jo nuo 4 valandos paryÄiais, kai susirinkome visus išsibarsÄiusius keleivius ir pagaliau baigÄ—si rusiškas filmas. Staigmena! 07:53 visi mitriai budinosi ir švytÄ—jo, nes mikrofonas labai garsiai pranešÄ—, kad štai dabar yra Didysis Sustojimas Ä® TualetÄ… ir daugiau iki pat Talino tokių nebus! Taigi, visi judindami savo kenÄianÄius sÄ…narius stojo į gražias eilutes prie kavos ir higienos taškų. Ir tikrai daugiau sustojimų iki Talino nebuvo, bet buvo daug įprastai ne autobusams skirtų žaidimų autobuso viduje. Rezultate daug prisijuokÄ—me, kai kas laimÄ—jo dovanų ir visas autobusas buvo pilnas balionÄ—lių palubÄ—je. Ir kadangi jau buvo šviesu, supratome, kad šis ekipažas pilnas puikiai nusiteikusių į avantiÅ«ras linkusių pakeleivių.</p>', 1, '2017-02-14 16:41:42', 'a', ''),
(21, '3', 'Ä®raÅ¡as apie Paryžių', '<p>Paryžius (pranc. Paris) – PrancÅ«zijos sostinÄ—, didžiausias miestas ir departamentas. 2,2 mln. gyventojų (2009 m.), aire urbaine (su priemiesÄiais Versaliu, Sen Deni, Ivri, Dransi, Aržantejumi ir kt.) – apie 11 mln. ir yra didžiausia Eurozonos metropolinÄ— zona.</p>\r\n<p>Miestas pastatytas Senos upÄ—s vingyje, abiejuose upÄ—s krantuose. Miestas visame pasaulyje gerai žinomas dÄ—l gausybÄ—s istorinių paminklų bei savo unikalios kultÅ«ros. Paryžius yra Il de Franso regiono pagrindinis miestas. PramonÄ—: mašinų gamyba (automobiliai, lÄ—ktuvai), elektrotechnika, poligrafija, maisto perdirbimo, chemijos, lengvoji, madų prekÄ—s ir galanterija.Paryžiuje reziduoja daug tarptautinių organizacijų (žinomiausia – UNESCO). Labai išvystytas turizmo sektorius. Daug aukštųjų mokyklų: universitetų (žymiausias – Sorbonos), kolegijų, institutų, akademijų. NacionalinÄ— biblioteka įkurta dar 1480 metais. MiestÄ… įkÅ«rÄ— galų gentis Parisii apie 250–247 metais prieš mÅ«sų erÄ… Senos saloje (kuri dabar vadinama pranc. ?le de la Cité). Pirma kartÄ… rašytiniuose šaltiniuose Lutetia paminÄ—ta 53 m. pr. m. e. šeštojoje <NAME> knygoje apie Galų karÄ… (De bello Gallico). Apie 52 m. pr. m. e. romÄ—nai užėmÄ— miestÄ…. RomÄ—nų miestas įsikÅ«rÄ— kairiajame Senos krante. RomÄ—nų laikais buvo žinomas kaip Civitas Parisiorum arba Parisia. III-IV a. miestas jau vadinamas Parisii, o dabartiniu vardu imtas vadinti nuo V amžiaus, kai 486 metais Frankų karalius Chlodvigas I po pergalÄ—s prieš romÄ—nus Äia perkÄ—lÄ— savo valstybÄ—s sostinÄ™. Po Romos imperijos žlugimo, visų pirma mieste atsirado religinÄ— architektÅ«ra. Tuo tarpu Frankų karaliai norÄ—jo užimti buvusius romÄ—nų rÅ«mus, esanÄius Senos saloje (pranc. ?le de la Cité). Per daugelį metų rÅ«mai buvo perstatyti ir išplÄ—sti, dabar jie vadinami Palais de la Cité.</p>', 3, '2017-02-14 16:43:55', 'a', '');
-- --------------------------------------------------------
--
-- Sukurta duomenų struktūra lentelei `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`username` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`user_level` int(11) NOT NULL DEFAULT '3',
`type` varchar(11) NOT NULL DEFAULT 'a',
`timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Sukurta duomenų kopija lentelei `users`
--
INSERT INTO `users` (`id`, `username`, `email`, `password`, `user_level`, `type`, `timestamp`) VALUES
(1, 'admin', '<EMAIL>', '<PASSWORD>', 1, 'a', '2017-02-11 20:27:11'),
(3, 'tomas', '<EMAIL>', '<PASSWORD>', 2, 'a', '2017-02-11 19:49:43'),
(4, 'arklimantas', '<EMAIL>', '<PASSWORD>', 3, 'a', '2017-02-11 20:21:44'),
(5, 'terminatorius', '<EMAIL>', '<PASSWORD>', 3, 'd', '2017-02-11 20:23:22'),
(7, 'adminukas', '<EMAIL>', '<PASSWORD>', 3, 'a', '2017-02-11 20:30:14'),
(8, 'bronius', '<EMAIL>', '827ccb0eea8a706c4c34a16891f84e7b', 3, 'a', '2017-02-12 08:00:04');
-- --------------------------------------------------------
--
-- Sukurta duomenų struktūra lentelei `user_level`
--
CREATE TABLE `user_level` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Sukurta duomenų kopija lentelei `user_level`
--
INSERT INTO `user_level` (`id`, `name`) VALUES
(3, 'Vartotojas'),
(1, 'Administratorius'),
(2, 'Moderatorius');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `category`
--
ALTER TABLE `category`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `comments`
--
ALTER TABLE `comments`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `entries`
--
ALTER TABLE `entries`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `category`
--
ALTER TABLE `category`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `comments`
--
ALTER TABLE `comments`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `entries`
--
ALTER TABLE `entries`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<filename>db/dializ.sql
/*
SQLyog Enterprise - MySQL GUI v7.15
MySQL - 5.5.5-10.1.13-MariaDB : Database - dializ
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`dializ` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_persian_ci */;
USE `dializ`;
/*Table structure for table `addmission` */
DROP TABLE IF EXISTS `addmission`;
CREATE TABLE `addmission` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`patient_id` int(11) NOT NULL,
`addmissionDate` date NOT NULL,
`ward` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`doctor` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`addmissionType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`insuranceType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`insuranceNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`room` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`bed` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `addmission` */
/*Table structure for table `condition` */
DROP TABLE IF EXISTS `condition`;
CREATE TABLE `condition` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `condition` */
/*Table structure for table `diseasecode` */
DROP TABLE IF EXISTS `diseasecode`;
CREATE TABLE `diseasecode` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `diseasecode` */
/*Table structure for table `doctor` */
DROP TABLE IF EXISTS `doctor`;
CREATE TABLE `doctor` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`family` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`mobile` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `doctor` */
insert into `doctor`(`id`,`name`,`family`,`mobile`,`phone`,`address`,`created_at`,`updated_at`,`deleted_at`) values (1,'بهروز','سبک دست','0912839289','021389289','','2016-07-31 00:25:20','2016-07-31 00:25:20',NULL),(2,'ایمان','شریف النسب','09123782787','02147387843','شهرک غرب - گیشا','2016-07-31 00:25:53','2016-07-31 00:25:53',NULL),(3,'دکتر مهدی','عین الهی','09123782787','9127953485','تیسنتنستی','2016-07-31 00:26:14','2016-07-31 00:26:14',NULL);
/*Table structure for table `doctororder` */
DROP TABLE IF EXISTS `doctororder`;
CREATE TABLE `doctororder` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`patient_id` int(11) NOT NULL,
`dateTimeOrder` datetime NOT NULL,
`doctor_id` int(11) NOT NULL,
`nurse_id` int(11) DEFAULT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `doctororder` */
/*Table structure for table `gender` */
DROP TABLE IF EXISTS `gender`;
CREATE TABLE `gender` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `gender` */
insert into `gender`(`id`,`title`,`created_at`,`updated_at`,`deleted_at`) values (1,'مرد','2016-07-28 21:55:04','2016-07-28 21:55:04',NULL),(2,'زن','2016-07-28 21:55:09','2016-07-28 21:55:09',NULL);
/*Table structure for table `introductionletter` */
DROP TABLE IF EXISTS `introductionletter`;
CREATE TABLE `introductionletter` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `introductionletter` */
insert into `introductionletter`(`id`,`title`,`created_at`,`updated_at`,`deleted_at`) values (1,'تست','2016-07-30 21:29:16','2016-07-30 21:29:21','2016-07-30 21:29:21'),(2,'تست','2016-07-30 21:34:32','2016-07-30 21:34:38','2016-07-30 21:34:38');
/*Table structure for table `kindofadm` */
DROP TABLE IF EXISTS `kindofadm`;
CREATE TABLE `kindofadm` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `kindofadm` */
/*Table structure for table `maritalstatus` */
DROP TABLE IF EXISTS `maritalstatus`;
CREATE TABLE `maritalstatus` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `maritalstatus` */
insert into `maritalstatus`(`id`,`title`,`created_at`,`updated_at`,`deleted_at`) values (1,'مجرد','2016-07-28 21:55:27','2016-07-28 21:55:27',NULL),(2,'متاهل','2016-07-28 21:55:32','2016-07-28 21:55:32',NULL),(3,'مطلقه','2016-07-28 21:55:40','2016-07-28 21:55:40',NULL),(4,'بیوه','2016-07-28 21:55:51','2016-07-30 21:28:55','2016-07-30 21:28:55'),(5,'بیوه','2016-07-30 21:29:03','2016-07-30 21:29:03',NULL);
/*Table structure for table `menu_role` */
DROP TABLE IF EXISTS `menu_role`;
CREATE TABLE `menu_role` (
`menu_id` int(10) unsigned NOT NULL,
`role_id` int(10) unsigned NOT NULL,
UNIQUE KEY `menu_role_menu_id_role_id_unique` (`menu_id`,`role_id`),
KEY `menu_role_menu_id_index` (`menu_id`),
KEY `menu_role_role_id_index` (`role_id`),
CONSTRAINT `menu_role_menu_id_foreign` FOREIGN KEY (`menu_id`) REFERENCES `menus` (`id`) ON DELETE CASCADE,
CONSTRAINT `menu_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `menu_role` */
insert into `menu_role`(`menu_id`,`role_id`) values (3,1),(3,2),(4,1),(4,2),(5,1),(5,2),(6,1),(6,2),(7,1),(7,2),(8,1),(8,2),(9,1),(9,2),(10,2),(11,1),(11,2),(12,1),(12,2),(13,1),(13,2),(17,1),(17,2),(18,1),(18,2),(19,1),(19,2),(20,1),(20,2),(23,1),(23,2),(24,1),(24,2);
/*Table structure for table `menus` */
DROP TABLE IF EXISTS `menus`;
CREATE TABLE `menus` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`position` int(11) DEFAULT NULL,
`menu_type` int(11) NOT NULL DEFAULT '1',
`icon` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`parent_id` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `menus_name_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `menus` */
insert into `menus`(`id`,`position`,`menu_type`,`icon`,`name`,`title`,`parent_id`,`created_at`,`updated_at`) values (1,NULL,0,NULL,'User','User',NULL,NULL,NULL),(2,NULL,0,NULL,'Role','Role',NULL,NULL,NULL),(3,0,2,'fa-database','BasicInformation','اطلاعات پایه',NULL,NULL,'2016-07-29 21:56:55'),(4,0,1,'fa-database','MaritalStatus','وضعیت تاهل',3,NULL,'2016-07-29 21:57:08'),(5,0,1,'fa-database','Gender','جنسیت',3,NULL,'2016-07-29 21:57:18'),(6,0,1,'fa-database','Occupation','شغل ها',3,NULL,'2016-07-29 21:57:30'),(7,0,1,'fa-database','KindOfAdm','نوع پذیرش',3,NULL,'2016-07-29 21:58:53'),(8,0,1,'fa-database','DiseaseCode','بیماری ها',3,NULL,'2016-07-29 21:59:08'),(9,0,1,'fa-database','OperationCode','انواع جراحی',3,NULL,'2016-07-29 21:59:25'),(10,0,1,'fa-database','Condition','وضعیت های بیمار',3,NULL,'2016-07-29 21:59:43'),(11,0,1,'fa-database','IntroductionLetter','معرفی نامه ها',3,NULL,'2016-07-29 21:59:55'),(12,0,1,'fa-user','Patient','بیماران',13,'2016-07-28 21:54:43','2016-07-30 19:59:41'),(13,0,2,'fa-user','بیماران','بیماران',NULL,'2016-07-30 19:59:31','2016-07-30 19:59:31'),(17,0,1,'fa-database','Addmission','اطلاعات پذیرش',13,'2016-07-30 20:13:30','2016-07-30 20:13:30'),(18,0,2,'fa-report','گزارشات','گزارشات',NULL,'2016-07-30 23:52:41','2016-07-30 23:52:41'),(19,0,1,'fa-user','Nurse','پرستاران',3,'2016-07-30 23:59:32','2016-07-30 23:59:32'),(20,0,1,'fa-user','Doctor','پزشکان',3,'2016-07-31 00:01:03','2016-07-31 00:01:03'),(23,0,1,'fa-database','NurseAttention','ملاحظات پرستاری',13,'2016-07-31 00:17:53','2016-07-31 00:17:53'),(24,0,1,'fa-database','DoctorOrder','دستورات پزشک',13,'2016-07-31 00:20:13','2016-07-31 00:20:13');
/*Table structure for table `migrations` */
DROP TABLE IF EXISTS `migrations`;
CREATE TABLE `migrations` (
`migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `migrations` */
insert into `migrations`(`migration`,`batch`) values ('2014_10_12_000000_create_users_table',1),('2014_10_12_100000_create_password_resets_table',1),('2015_10_10_000000_create_menus_table',1),('2015_10_10_000000_create_roles_table',1),('2015_10_10_000000_update_users_table',1),('2015_12_11_000000_create_users_logs_table',1),('2016_03_14_000000_update_menus_table',1),('2016_07_19_100943_create_maritalstatus_table',1),('2016_07_20_063356_create_gender_table',1),('2016_07_20_063856_create_occupation_table',1),('2016_07_20_064137_create_kindofadm_table',1),('2016_07_20_064825_create_diseasecode_table',1),('2016_07_20_064900_create_operationcode_table',1),('2016_07_20_064949_create_condition_table',1),('2016_07_20_065219_create_introductionletter_table',1),('2016_07_18_000000_update_menus_table',2),('2016_07_28_215443_create_patient_table',3),('2016_07_30_200119_create_addmission_table',4),('2016_07_30_201330_create_addmission_table',5),('2016_07_30_235933_create_nurse_table',6),('2016_07_31_000104_create_doctor_table',7),('2016_07_31_000318_create_nurseattention_table',8),('2016_07_31_000651_create_doctororders_table',9),('2016_07_31_001753_create_nurseattention_table',10),('2016_07_31_002013_create_doctororder_table',11);
/*Table structure for table `nurse` */
DROP TABLE IF EXISTS `nurse`;
CREATE TABLE `nurse` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`family` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`mobile` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `nurse` */
insert into `nurse`(`id`,`name`,`family`,`mobile`,`phone`,`address`,`created_at`,`updated_at`,`deleted_at`) values (1,'شقایق','جان نثار','09194945900','02122961419','تهران - لویزان - شیان - شیان 3 - پلاک 26 واحد 9','2016-07-31 00:23:26','2016-07-31 00:23:26',NULL),(2,'امین','شریف النسب','09127953485','02122961419','شهرک غرب - گیشا','2016-07-31 00:24:16','2016-07-31 00:24:16',NULL),(3,'مصطفی','طاهری','0921783287','021278878','پارک فناوری پردیس - آریا طب','2016-07-31 00:24:57','2016-07-31 00:24:57',NULL);
/*Table structure for table `nurseattention` */
DROP TABLE IF EXISTS `nurseattention`;
CREATE TABLE `nurseattention` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`patient_id` int(11) NOT NULL,
`dateTimeAtt` datetime NOT NULL,
`nurse_id` int(11) NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `nurseattention` */
/*Table structure for table `occupation` */
DROP TABLE IF EXISTS `occupation`;
CREATE TABLE `occupation` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `occupation` */
insert into `occupation`(`id`,`title`,`created_at`,`updated_at`,`deleted_at`) values (1,'مهندس','2016-07-28 21:56:23','2016-07-28 21:56:23',NULL),(2,'مدیر','2016-07-28 21:56:29','2016-07-28 21:56:29',NULL),(3,'کارمند','2016-07-28 21:56:35','2016-07-28 21:56:35',NULL),(4,'خانه دار','2016-07-28 21:56:43','2016-07-28 21:56:43',NULL),(5,'نگهبان','2016-07-28 21:56:50','2016-07-28 21:56:50',NULL);
/*Table structure for table `operationcode` */
DROP TABLE IF EXISTS `operationcode`;
CREATE TABLE `operationcode` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `operationcode` */
/*Table structure for table `password_resets` */
DROP TABLE IF EXISTS `password_resets`;
CREATE TABLE `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,
KEY `password_resets_email_index` (`email`),
KEY `password_resets_token_index` (`token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `password_resets` */
/*Table structure for table `patient` */
DROP TABLE IF EXISTS `patient`;
CREATE TABLE `patient` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`unitNumber` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`family` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`fatherName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`gender_id` int(11) NOT NULL,
`maritalstatus_id` int(11) NOT NULL,
`idNo` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`recordHosp` tinyint(4) DEFAULT '0',
`numOfHosp` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`dateOfBirth` date DEFAULT NULL,
`placeOfBirth` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`placeOfId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`religion` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`occupation_id` int(11) DEFAULT NULL,
`placeOfWork` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`phoneNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`reffered` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`addressOfReffered` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`phoneOfReffered` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `patient` */
insert into `patient`(`id`,`unitNumber`,`family`,`name`,`fatherName`,`gender_id`,`maritalstatus_id`,`idNo`,`recordHosp`,`numOfHosp`,`dateOfBirth`,`placeOfBirth`,`placeOfId`,`religion`,`occupation_id`,`placeOfWork`,`address`,`phoneNumber`,`reffered`,`addressOfReffered`,`phoneOfReffered`,`created_at`,`updated_at`,`deleted_at`) values (1,'123','رزاقی طاهری','محمدرضا','محمدعلی',1,2,'229',1,'1','1395-05-09','تهران','12','شیعه',1,'آریا طب','تهران - لویزان - شیان - شیان 3 - پلاک 26 واحد 9','9127953485','','','','2016-07-28 22:19:16','2016-07-30 14:53:12',NULL);
/*Table structure for table `roles` */
DROP TABLE IF EXISTS `roles`;
CREATE TABLE `roles` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `roles` */
insert into `roles`(`id`,`title`,`created_at`,`updated_at`) values (1,'Administrator','2016-07-28 20:59:12','2016-07-28 20:59:12'),(2,'User','2016-07-28 20:59:13','2016-07-28 20:59:13');
/*Table structure for table `users` */
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`role_id` int(11) DEFAULT 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,
PRIMARY KEY (`id`),
UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `users` */
insert into `users`(`id`,`role_id`,`name`,`email`,`password`,`remember_token`,`created_at`,`updated_at`) values (1,1,'محمدرضا <NAME> <PASSWORD>ی','<EMAIL>','<PASSWORD>','<PASSWORD>','2016-07-28 20:59:36','2016-07-30 10:35:35');
/*Table structure for table `users_logs` */
DROP TABLE IF EXISTS `users_logs`;
CREATE TABLE `users_logs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`action` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`action_model` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`action_id` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `users_logs` */
insert into `users_logs`(`id`,`user_id`,`action`,`action_model`,`action_id`,`created_at`,`updated_at`) values (1,1,'updated','users',1,'2016-07-28 21:03:30','2016-07-28 21:03:30'),(2,1,'updated','users',1,'2016-07-28 21:22:45','2016-07-28 21:22:45'),(3,1,'created','gender',1,'2016-07-28 21:55:04','2016-07-28 21:55:04'),(4,1,'created','gender',2,'2016-07-28 21:55:09','2016-07-28 21:55:09'),(5,1,'created','maritalstatus',1,'2016-07-28 21:55:27','2016-07-28 21:55:27'),(6,1,'created','maritalstatus',2,'2016-07-28 21:55:32','2016-07-28 21:55:32'),(7,1,'created','maritalstatus',3,'2016-07-28 21:55:40','2016-07-28 21:55:40'),(8,1,'created','maritalstatus',4,'2016-07-28 21:55:51','2016-07-28 21:55:51'),(9,1,'created','occupation',1,'2016-07-28 21:56:23','2016-07-28 21:56:23'),(10,1,'created','occupation',2,'2016-07-28 21:56:29','2016-07-28 21:56:29'),(11,1,'created','occupation',3,'2016-07-28 21:56:35','2016-07-28 21:56:35'),(12,1,'created','occupation',4,'2016-07-28 21:56:43','2016-07-28 21:56:43'),(13,1,'created','occupation',5,'2016-07-28 21:56:50','2016-07-28 21:56:50'),(14,1,'created','patient',1,'2016-07-28 22:19:16','2016-07-28 22:19:16'),(15,1,'updated','users',1,'2016-07-30 00:15:34','2016-07-30 00:15:34'),(16,1,'updated','users',1,'2016-07-30 00:51:01','2016-07-30 00:51:01'),(17,1,'updated','users',1,'2016-07-30 10:35:35','2016-07-30 10:35:35'),(18,1,'updated','patient',1,'2016-07-30 14:24:41','2016-07-30 14:24:41'),(19,1,'updated','patient',1,'2016-07-30 14:53:12','2016-07-30 14:53:12'),(20,1,'updated','maritalstatus',1,'2016-07-30 21:18:13','2016-07-30 21:18:13'),(21,1,'deleted','maritalstatus',4,'2016-07-30 21:28:55','2016-07-30 21:28:55'),(22,1,'created','maritalstatus',5,'2016-07-30 21:29:03','2016-07-30 21:29:03'),(23,1,'created','introductionletter',1,'2016-07-30 21:29:16','2016-07-30 21:29:16'),(24,1,'deleted','introductionletter',1,'2016-07-30 21:29:21','2016-07-30 21:29:21'),(25,1,'created','introductionletter',2,'2016-07-30 21:34:32','2016-07-30 21:34:32'),(26,1,'created','nurse',1,'2016-07-31 00:23:26','2016-07-31 00:23:26'),(27,1,'created','nurse',2,'2016-07-31 00:24:16','2016-07-31 00:24:16'),(28,1,'created','nurse',3,'2016-07-31 00:24:57','2016-07-31 00:24:57'),(29,1,'created','doctor',1,'2016-07-31 00:25:20','2016-07-31 00:25:20'),(30,1,'created','doctor',2,'2016-07-31 00:25:53','2016-07-31 00:25:53'),(31,1,'created','doctor',3,'2016-07-31 00:26:14','2016-07-31 00:26:14');
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
<filename>assets/database/layboard_db.sql
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 18, 2020 at 05:06 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `layboard_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`category_id` bigint(20) NOT NULL,
`category_name` varchar(255) NOT NULL,
`category_description` text NOT NULL,
`category_status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`category_id`, `category_name`, `category_description`, `category_status`) VALUES
(1, 'Design and Creatives', 'Design and Creatives category focuses on the originality, imaginative, inventive, inspired development of something with artistic elements.', 1),
(2, 'IT and Networking', '', 1),
(3, 'Data Science', '', 1),
(4, 'Software Development', '', 1);
-- --------------------------------------------------------
--
-- Table structure for table `cities`
--
CREATE TABLE `cities` (
`city_id` int(11) NOT NULL,
`province_id` int(11) NOT NULL,
`city_name` varchar(255) NOT NULL,
`city_status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `countries`
--
CREATE TABLE `countries` (
`country_id` bigint(20) NOT NULL,
`country_name` varchar(255) NOT NULL,
`country_status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `employers`
--
CREATE TABLE `employers` (
`employer_id` bigint(20) NOT NULL,
`email_address` varchar(255) NOT NULL,
`employer_pass` varchar(255) NOT NULL,
`employer_slug` varchar(20) NOT NULL,
`employer_code` varchar(8) NOT NULL,
`date_created` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `employers`
--
INSERT INTO `employers` (`employer_id`, `email_address`, `employer_pass`, `employer_slug`, `employer_code`, `date_created`) VALUES
(1, '<EMAIL>', '<PASSWORD>', '4np8gh3hjqkxoyprluy9', 'tcas6cie', '2020-02-09'),
(2, '<EMAIL>', '<PASSWORD>', 'qio2tj3t9e6zef16vbfu', 'lg2704dt', '2020-12-10'),
(3, '<EMAIL>', '<PASSWORD>', 'q3bdiy6uih1hla4jsftl', 'pxxmdzgo', '2020-12-10');
-- --------------------------------------------------------
--
-- Table structure for table `employers_images`
--
CREATE TABLE `employers_images` (
`employer_image_id` bigint(20) NOT NULL,
`employer_id` bigint(20) NOT NULL,
`file_name` varchar(255) NOT NULL,
`file_slug` varchar(24) NOT NULL,
`image_status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `employers_images`
--
INSERT INTO `employers_images` (`employer_image_id`, `employer_id`, `file_name`, `file_slug`, `image_status`) VALUES
(1, 1, '1581419559.png', 'c3cz9ulirbpzgn5p76yp4zbb', 1),
(2, 2, 'default.png', '2nvg4xh29b00et96adxxw45d', 1),
(3, 3, 'default.png', 'n7bjyr5gpf1mntlpiqniwey1', 1);
-- --------------------------------------------------------
--
-- Table structure for table `employers_info`
--
CREATE TABLE `employers_info` (
`employers_info_id` bigint(20) NOT NULL,
`employer_id` bigint(20) NOT NULL,
`firstname` varchar(255) NOT NULL,
`lastname` varchar(255) NOT NULL,
`contact_no` varchar(30) NOT NULL,
`gender` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `employers_info`
--
INSERT INTO `employers_info` (`employers_info_id`, `employer_id`, `firstname`, `lastname`, `contact_no`, `gender`) VALUES
(1, 1, '<NAME>', 'Tubo', '', ''),
(2, 2, '<NAME>', 'Sacapaño', '', ''),
(3, 3, 'Richard', 'Galvez', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `employers_status`
--
CREATE TABLE `employers_status` (
`employer_status_id` bigint(20) NOT NULL,
`employer_id` bigint(20) NOT NULL,
`verification_status` int(1) NOT NULL,
`activation_status` int(1) NOT NULL,
`online_status` int(1) NOT NULL,
`profile_status` int(1) NOT NULL,
`payment_status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `employers_status`
--
INSERT INTO `employers_status` (`employer_status_id`, `employer_id`, `verification_status`, `activation_status`, `online_status`, `profile_status`, `payment_status`) VALUES
(1, 1, 0, 1, 0, 1, 0),
(2, 2, 0, 1, 0, 0, 0),
(3, 3, 0, 1, 0, 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `freelancers`
--
CREATE TABLE `freelancers` (
`freelancer_id` bigint(20) NOT NULL,
`email_address` varchar(255) NOT NULL,
`freelancer_pass` varchar(255) NOT NULL,
`freelancer_slug` varchar(20) NOT NULL,
`freelancer_code` varchar(8) NOT NULL,
`date_created` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `freelancers`
--
INSERT INTO `freelancers` (`freelancer_id`, `email_address`, `freelancer_pass`, `freelancer_slug`, `freelancer_code`, `date_created`) VALUES
(1, '<EMAIL>', '<PASSWORD>4fdee0ef91b903f77', '29lcuhfr4pbtowi8km1e', 'bhx1wdqq', '2020-02-08'),
(2, '<EMAIL>', 'ddc<PASSWORD>', 'duu01une1u96j9sopx1v', 'h6re71zn', '2020-12-10'),
(4, '<EMAIL>', '3007b76bf01dc6c5c69808<PASSWORD>', 'a5i7yw6e5iy4w1yqnapd', 'gv14zz5b', '2020-12-10'),
(5, '<EMAIL>', 'db<PASSWORD>', 'f8wusz860qtjhtvg6kco', 'wlqr7zyo', '2020-12-10'),
(6, 'asd', '7815696ecbf1c96e6894b779456d330e', 'wc0grro0v77fbantvt1o', 'fu522wme', '2020-12-10'),
(7, '<EMAIL>', '<PASSWORD>d', '0f18k2mcih937jot06du', '0m3fw9d8', '2020-12-10');
-- --------------------------------------------------------
--
-- Table structure for table `freelancers_address`
--
CREATE TABLE `freelancers_address` (
`freelancer_address_id` bigint(20) NOT NULL,
`freelancer_id` bigint(20) NOT NULL,
`city` varchar(255) NOT NULL,
`province` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `freelancers_education`
--
CREATE TABLE `freelancers_education` (
`freelancer_education_id` bigint(20) NOT NULL,
`freelancer_id` bigint(20) NOT NULL,
`school_name` varchar(255) NOT NULL,
`area_of_study` varchar(255) NOT NULL,
`degree` varchar(255) NOT NULL,
`date_attended_from` date NOT NULL,
`date_attended_to` date NOT NULL,
`description` text NOT NULL,
`status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `freelancers_employment`
--
CREATE TABLE `freelancers_employment` (
`freelancer_employment_id` bigint(20) NOT NULL,
`freelancer_id` bigint(20) NOT NULL,
`company` varchar(255) NOT NULL,
`location_city` varchar(255) NOT NULL,
`location_country` varchar(255) NOT NULL,
`title` varchar(255) NOT NULL,
`role` varchar(255) NOT NULL,
`period` date NOT NULL,
`through` date NOT NULL,
`employment_status` int(11) NOT NULL,
`description` varchar(255) NOT NULL,
`freelancer_employment_status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `freelancers_images`
--
CREATE TABLE `freelancers_images` (
`freelancer_image_id` bigint(20) NOT NULL,
`freelancer_id` bigint(20) NOT NULL,
`file_name` varchar(255) NOT NULL,
`file_slug` varchar(24) NOT NULL,
`image_status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `freelancers_images`
--
INSERT INTO `freelancers_images` (`freelancer_image_id`, `freelancer_id`, `file_name`, `file_slug`, `image_status`) VALUES
(1, 1, '1581419559.png', 'c3cz9ulirbpzgn5p76yp4zbb', 1),
(2, 2, 'default.png', 'hku9m9i2q4q5oamw73u5w4ex', 1),
(3, 4, 'default.png', 'vbwkusswm5ybnxjmy0e44en9', 1),
(4, 5, 'default.png', '2uetb7yrk83qbkbyny10bfno', 1),
(5, 6, 'default.png', 'c6etmrhmpv5ia9vc4jgr0hxe', 1),
(6, 7, 'default.png', '2awru3s276z24y5z9o102ebm', 1);
-- --------------------------------------------------------
--
-- Table structure for table `freelancers_info`
--
CREATE TABLE `freelancers_info` (
`freelancers_info_id` bigint(20) NOT NULL,
`freelancer_id` bigint(20) NOT NULL,
`firstname` varchar(255) NOT NULL,
`lastname` varchar(255) NOT NULL,
`contact_no` varchar(30) NOT NULL,
`gender` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `freelancers_info`
--
INSERT INTO `freelancers_info` (`freelancers_info_id`, `freelancer_id`, `firstname`, `lastname`, `contact_no`, `gender`) VALUES
(1, 1, '<NAME>', 'Tubo', '', ''),
(2, 2, '<NAME>', 'Molina', '', ''),
(3, 4, '<NAME>', 'Parro', '', ''),
(4, 5, '<NAME>', 'Maines', '', ''),
(5, 6, 'asd', 'asd', '', ''),
(6, 7, 'Victor', 'Judan', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `freelancers_rating`
--
CREATE TABLE `freelancers_rating` (
`freelancer_rating_id` bigint(20) NOT NULL,
`freelancer_id` bigint(20) NOT NULL,
`rating` int(1) NOT NULL,
`rating_status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `freelancers_rating`
--
INSERT INTO `freelancers_rating` (`freelancer_rating_id`, `freelancer_id`, `rating`, `rating_status`) VALUES
(1, 1, 5, 1),
(2, 1, 3, 1),
(3, 1, 3, 1);
-- --------------------------------------------------------
--
-- Table structure for table `freelancers_skills`
--
CREATE TABLE `freelancers_skills` (
`freelancer_skill_id` bigint(20) NOT NULL,
`freelancer_id` bigint(20) NOT NULL,
`skill_id` bigint(20) NOT NULL,
`freelancer_skill_status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `freelancers_skills`
--
INSERT INTO `freelancers_skills` (`freelancer_skill_id`, `freelancer_id`, `skill_id`, `freelancer_skill_status`) VALUES
(1, 1, 4, 1),
(2, 1, 3, 1),
(3, 1, 7, 1),
(4, 1, 6, 1),
(5, 1, 5, 1),
(6, 1, 8, 1),
(7, 1, 2, 1),
(8, 7, 1, 1),
(9, 7, 7, 1),
(10, 7, 6, 1),
(11, 7, 5, 1),
(12, 7, 4, 0),
(13, 7, 3, 0);
-- --------------------------------------------------------
--
-- Table structure for table `freelancers_status`
--
CREATE TABLE `freelancers_status` (
`freelancer_status_id` bigint(20) NOT NULL,
`freelancer_id` bigint(20) NOT NULL,
`verification_status` int(1) NOT NULL,
`activation_status` int(1) NOT NULL,
`online_status` int(1) NOT NULL,
`profile_status` int(1) NOT NULL,
`payment_status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `freelancers_status`
--
INSERT INTO `freelancers_status` (`freelancer_status_id`, `freelancer_id`, `verification_status`, `activation_status`, `online_status`, `profile_status`, `payment_status`) VALUES
(1, 1, 0, 1, 0, 0, 0),
(2, 2, 0, 1, 0, 0, 0),
(3, 4, 0, 1, 0, 0, 0),
(4, 5, 0, 1, 0, 0, 0),
(5, 6, 0, 1, 0, 0, 0),
(6, 7, 0, 1, 0, 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `jobs`
--
CREATE TABLE `jobs` (
`job_id` bigint(20) NOT NULL,
`employer_id` bigint(20) NOT NULL,
`category_id` bigint(20) NOT NULL,
`specialty_id` bigint(20) NOT NULL,
`job_slug` varchar(20) NOT NULL,
`job_code` varchar(8) NOT NULL,
`date_created` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `jobs`
--
INSERT INTO `jobs` (`job_id`, `employer_id`, `category_id`, `specialty_id`, `job_slug`, `job_code`, `date_created`) VALUES
(1, 1, 4, 2, '6xhietrcxilmzzae513b', 'zi8t12oe', '2020-12-16 04:30:00'),
(2, 1, 1, 1, 'dyizgy2bmrftt9d0gsho', 'i2xenurm', '2020-12-16 14:43:59'),
(3, 1, 1, 1, 'odhpmewbjrymb2xgscst', 'bvrrs5vf', '2020-12-17 04:51:55'),
(4, 1, 4, 2, 'iacrq691gud2teraccvi', 'ffzin9mg', '2020-12-17 04:53:26'),
(5, 1, 4, 2, 'j6r8l6j4mq81gzsfvqbn', 'cdtpn6ha', '2020-12-17 14:23:46'),
(6, 1, 4, 2, 'tzhkndqytht63204of56', '18zsmc6c', '2020-12-18 23:39:28');
-- --------------------------------------------------------
--
-- Table structure for table `jobs_application`
--
CREATE TABLE `jobs_application` (
`job_application_id` bigint(20) NOT NULL,
`job_id` bigint(20) NOT NULL,
`freelancer_id` bigint(20) NOT NULL,
`job_application-status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `jobs_info`
--
CREATE TABLE `jobs_info` (
`jobs_info_id` bigint(20) NOT NULL,
`job_id` bigint(20) NOT NULL,
`job_title` varchar(255) NOT NULL,
`job_description` text NOT NULL,
`job_price` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `jobs_info`
--
INSERT INTO `jobs_info` (`jobs_info_id`, `job_id`, `job_title`, `job_description`, `job_price`) VALUES
(1, 1, 'Web Design for Static Pages', '', 0),
(2, 2, 'aaa', '', 0),
(3, 3, 'try', '', 0),
(4, 4, 'try1', '', 0),
(5, 5, 'try2', '', 0),
(6, 6, 'a', '', 0);
-- --------------------------------------------------------
--
-- Table structure for table `jobs_status`
--
CREATE TABLE `jobs_status` (
`job_status_id` bigint(20) NOT NULL,
`job_id` bigint(20) NOT NULL,
`employer_id` bigint(20) NOT NULL,
`freelancer_id` bigint(20) NOT NULL,
`job_status` int(1) NOT NULL,
`activation_status` int(1) NOT NULL,
`payment_status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `jobs_status`
--
INSERT INTO `jobs_status` (`job_status_id`, `job_id`, `employer_id`, `freelancer_id`, `job_status`, `activation_status`, `payment_status`) VALUES
(1, 1, 1, 0, 2, 0, 0),
(2, 2, 1, 0, 2, 0, 0),
(3, 3, 1, 0, 2, 0, 0),
(4, 4, 1, 0, 2, 0, 0),
(5, 5, 1, 0, 2, 0, 0),
(6, 6, 1, 0, 0, 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `provinces`
--
CREATE TABLE `provinces` (
`province_id` int(11) NOT NULL,
`province_name` varchar(255) NOT NULL,
`province_status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `provinces`
--
INSERT INTO `provinces` (`province_id`, `province_name`, `province_status`) VALUES
(1, 'Abra', 1),
(2, 'Agusan del Norte', 1),
(3, 'Agusan del Sur', 1),
(4, 'Aklan', 1),
(5, 'Albay', 1),
(6, 'Antique', 1),
(7, 'Apayao', 1),
(8, 'Aurora', 1),
(9, 'Balisan', 1),
(10, 'Bataan', 1),
(11, 'Batanes', 1),
(12, 'Batangas', 1),
(13, 'Benguet', 1),
(14, 'Biliran', 1),
(15, 'Bohol', 1),
(16, 'Bukidnon', 1),
(17, 'Bulacan', 1),
(18, 'Cagayan', 1),
(19, '<NAME>', 1),
(20, '<NAME>', 1),
(21, 'Camiguin', 1),
(22, 'Capiz', 1),
(23, 'Catanduanes', 1),
(24, 'Cavite', 1),
(25, 'Cebu', 1),
(26, 'Cotobato', 1),
(27, '<NAME>', 1),
(28, 'Davao del Norte', 1),
(29, 'Davao del Sur', 1),
(30, 'Davao Occidental', 1),
(31, 'Davao Oriental', 1),
(32, 'Dinagat Islands', 1),
(33, 'Eastern Samar', 1),
(34, 'Guimaras', 1),
(35, 'Ifugao', 1),
(36, '<NAME>', 1),
(37, '<NAME>', 1),
(38, 'Iloilo', 1),
(39, 'Isabela', 1),
(40, 'Kalinga', 1),
(41, 'La Union', 1),
(42, 'Laguna', 1),
(43, '<NAME>', 1),
(44, '<NAME>', 1),
(45, 'Leyte', 1),
(46, 'Maguindanao', 1),
(47, 'Marinduque', 1),
(48, 'Masbate', 1),
(49, 'Misamis Occidental', 1),
(50, 'Misamis Oriental', 1),
(51, 'Mountain Province', 1);
-- --------------------------------------------------------
--
-- Table structure for table `skills`
--
CREATE TABLE `skills` (
`skill_id` bigint(20) NOT NULL,
`skill_name` varchar(255) NOT NULL,
`skill_status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `skills`
--
INSERT INTO `skills` (`skill_id`, `skill_name`, `skill_status`) VALUES
(1, 'Java', 1),
(2, 'Kotlin', 1),
(3, 'JavaScript', 1),
(4, 'PHP', 1),
(5, 'C#', 1),
(6, 'C++', 1),
(7, 'jQuery', 1),
(8, 'ASP.Net', 1);
-- --------------------------------------------------------
--
-- Table structure for table `specialties`
--
CREATE TABLE `specialties` (
`specialty_id` bigint(20) NOT NULL,
`category_id` bigint(20) NOT NULL,
`specialty_name` varchar(255) NOT NULL,
`specialty_description` text NOT NULL,
`specialty_status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `specialties`
--
INSERT INTO `specialties` (`specialty_id`, `category_id`, `specialty_name`, `specialty_description`, `specialty_status`) VALUES
(1, 1, 'Photography', 'Photography is the art, application, and practice of creating durable images by recording light, either electronically by means of an image sensor, or chemically by means of a light-sensitive material such as photographic film.', 1),
(2, 4, 'Web Design', 'Designing of websites that are displayed on the internet. It usually refers to the user experience aspects of website development rather than software development.', 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`category_id`);
--
-- Indexes for table `cities`
--
ALTER TABLE `cities`
ADD PRIMARY KEY (`city_id`);
--
-- Indexes for table `employers`
--
ALTER TABLE `employers`
ADD PRIMARY KEY (`employer_id`);
--
-- Indexes for table `employers_images`
--
ALTER TABLE `employers_images`
ADD PRIMARY KEY (`employer_image_id`);
--
-- Indexes for table `employers_info`
--
ALTER TABLE `employers_info`
ADD PRIMARY KEY (`employers_info_id`);
--
-- Indexes for table `employers_status`
--
ALTER TABLE `employers_status`
ADD PRIMARY KEY (`employer_status_id`);
--
-- Indexes for table `freelancers`
--
ALTER TABLE `freelancers`
ADD PRIMARY KEY (`freelancer_id`);
--
-- Indexes for table `freelancers_address`
--
ALTER TABLE `freelancers_address`
ADD PRIMARY KEY (`freelancer_address_id`);
--
-- Indexes for table `freelancers_education`
--
ALTER TABLE `freelancers_education`
ADD PRIMARY KEY (`freelancer_education_id`);
--
-- Indexes for table `freelancers_employment`
--
ALTER TABLE `freelancers_employment`
ADD PRIMARY KEY (`freelancer_employment_id`);
--
-- Indexes for table `freelancers_images`
--
ALTER TABLE `freelancers_images`
ADD PRIMARY KEY (`freelancer_image_id`);
--
-- Indexes for table `freelancers_info`
--
ALTER TABLE `freelancers_info`
ADD PRIMARY KEY (`freelancers_info_id`);
--
-- Indexes for table `freelancers_rating`
--
ALTER TABLE `freelancers_rating`
ADD PRIMARY KEY (`freelancer_rating_id`);
--
-- Indexes for table `freelancers_skills`
--
ALTER TABLE `freelancers_skills`
ADD PRIMARY KEY (`freelancer_skill_id`);
--
-- Indexes for table `freelancers_status`
--
ALTER TABLE `freelancers_status`
ADD PRIMARY KEY (`freelancer_status_id`);
--
-- Indexes for table `jobs`
--
ALTER TABLE `jobs`
ADD PRIMARY KEY (`job_id`);
--
-- Indexes for table `jobs_application`
--
ALTER TABLE `jobs_application`
ADD PRIMARY KEY (`job_application_id`);
--
-- Indexes for table `jobs_info`
--
ALTER TABLE `jobs_info`
ADD PRIMARY KEY (`jobs_info_id`);
--
-- Indexes for table `jobs_status`
--
ALTER TABLE `jobs_status`
ADD PRIMARY KEY (`job_status_id`);
--
-- Indexes for table `provinces`
--
ALTER TABLE `provinces`
ADD PRIMARY KEY (`province_id`);
--
-- Indexes for table `skills`
--
ALTER TABLE `skills`
ADD PRIMARY KEY (`skill_id`);
--
-- Indexes for table `specialties`
--
ALTER TABLE `specialties`
ADD PRIMARY KEY (`specialty_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `category_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `cities`
--
ALTER TABLE `cities`
MODIFY `city_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `employers`
--
ALTER TABLE `employers`
MODIFY `employer_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `employers_images`
--
ALTER TABLE `employers_images`
MODIFY `employer_image_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `employers_info`
--
ALTER TABLE `employers_info`
MODIFY `employers_info_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `employers_status`
--
ALTER TABLE `employers_status`
MODIFY `employer_status_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `freelancers`
--
ALTER TABLE `freelancers`
MODIFY `freelancer_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `freelancers_address`
--
ALTER TABLE `freelancers_address`
MODIFY `freelancer_address_id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `freelancers_education`
--
ALTER TABLE `freelancers_education`
MODIFY `freelancer_education_id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `freelancers_employment`
--
ALTER TABLE `freelancers_employment`
MODIFY `freelancer_employment_id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `freelancers_images`
--
ALTER TABLE `freelancers_images`
MODIFY `freelancer_image_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `freelancers_info`
--
ALTER TABLE `freelancers_info`
MODIFY `freelancers_info_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `freelancers_rating`
--
ALTER TABLE `freelancers_rating`
MODIFY `freelancer_rating_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `freelancers_skills`
--
ALTER TABLE `freelancers_skills`
MODIFY `freelancer_skill_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `freelancers_status`
--
ALTER TABLE `freelancers_status`
MODIFY `freelancer_status_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `jobs`
--
ALTER TABLE `jobs`
MODIFY `job_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `jobs_application`
--
ALTER TABLE `jobs_application`
MODIFY `job_application_id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `jobs_info`
--
ALTER TABLE `jobs_info`
MODIFY `jobs_info_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `jobs_status`
--
ALTER TABLE `jobs_status`
MODIFY `job_status_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `provinces`
--
ALTER TABLE `provinces`
MODIFY `province_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=52;
--
-- AUTO_INCREMENT for table `skills`
--
ALTER TABLE `skills`
MODIFY `skill_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `specialties`
--
ALTER TABLE `specialties`
MODIFY `specialty_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>DesmoonCM/DesmoonCM_11194018.github.io<filename>penggajian.sql
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 18, 2021 at 02:00 PM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 7.3.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `penggajian`
--
-- --------------------------------------------------------
--
-- Table structure for table `data_jabatan`
--
CREATE TABLE `data_jabatan` (
`id_jabatan` int(11) NOT NULL,
`nama_jabatan` varchar(120) NOT NULL,
`gaji_pokok` varchar(50) NOT NULL,
`tj_transport` varchar(50) NOT NULL,
`uang_makan` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `data_jabatan`
--
INSERT INTO `data_jabatan` (`id_jabatan`, `nama_jabatan`, `gaji_pokok`, `tj_transport`, `uang_makan`) VALUES
(1, 'Staff Marketing', '4000000', '800000', '500000'),
(3, 'Staff Administrasi', '4500000', '440006', '499989'),
(10, 'Staff Makan bareng', '30000000', '300000', '50000'),
(11, 'Staff Apapun', '1000000', '600000', '300000'),
(12, 'Admin', '4700000', '500000', '500000');
-- --------------------------------------------------------
--
-- Table structure for table `data_kehadiran`
--
CREATE TABLE `data_kehadiran` (
`id_kehadiran` int(11) NOT NULL,
`bulan` varchar(15) NOT NULL,
`nik` varchar(50) NOT NULL,
`nama_pegawai` varchar(225) NOT NULL,
`jenis_kelamin` varchar(50) NOT NULL,
`nama_jabatan` varchar(50) NOT NULL,
`hadir` int(11) NOT NULL,
`sakit` int(11) NOT NULL,
`alpha` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `data_kehadiran`
--
INSERT INTO `data_kehadiran` (`id_kehadiran`, `bulan`, `nik`, `nama_pegawai`, `jenis_kelamin`, `nama_jabatan`, `hadir`, `sakit`, `alpha`) VALUES
(25, '122021', '1234567890', 'Arya Berelaku', 'Laki-Laki', 'Staff Marketing', 21, 1, 2),
(26, '122021', '12345', 'Desmoon', 'Laki-laki', 'Staff Marketing', 20, 2, 4),
(27, '122021', '2424', 'Siapapun', 'Perempuan', 'Staff Administrasi', 24, 0, 1),
(28, '112021', '1234567890', 'Arya Berelaku', 'Laki-Laki', 'Staff Marketing', 23, 1, 3),
(29, '112021', '12345', 'Desmoon', 'Laki-laki', 'Staff Marketing', 25, 2, 1),
(30, '112021', '2424', 'Siapapun', 'Perempuan', 'Staff Administrasi', 24, 3, 2),
(31, '012021', '1234567890', '<NAME>', 'Laki-Laki', 'Staff Marketing', 22, 1, 7),
(32, '012021', '12345', 'Desmoon', 'Laki-laki', 'Staff Marketing', 25, 2, 1),
(33, '012021', '2424', 'Siapapun', 'Perempuan', 'Staff Administrasi', 24, 1, 2);
-- --------------------------------------------------------
--
-- Table structure for table `data_pegawai`
--
CREATE TABLE `data_pegawai` (
`id_pegawai` int(11) NOT NULL,
`nik` varchar(50) NOT NULL,
`nama_pegawai` varchar(225) NOT NULL,
`username` varchar(120) NOT NULL,
`password` varchar(120) NOT NULL,
`jenis_kelamin` varchar(20) NOT NULL,
`jabatan` varchar(50) NOT NULL,
`tanggal_masuk` date NOT NULL,
`status` varchar(100) NOT NULL,
`photo` varchar(225) NOT NULL,
`hak_akses` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `data_pegawai`
--
INSERT INTO `data_pegawai` (`id_pegawai`, `nik`, `nama_pegawai`, `username`, `password`, `jenis_kelamin`, `jabatan`, `tanggal_masuk`, `status`, `photo`, `hak_akses`) VALUES
(1, '1234567890', '<NAME>', 'arya', '12345', 'Laki-Laki', 'Staff Marketing', '2020-08-01', 'Pegawai Tidak Tetap', 'Photo.jpg', 2),
(4, '2424', 'Siapapun', 'sppn', '81dc9bdb52d04dc20036dbd8313ed055', 'Perempuan', 'Staff Administrasi', '2021-10-04', 'Pegawai Tetap', 'images1.jpg', 2),
(9, '12345', 'Desmoon', 'desmon', '81dc9bdb52d04dc20036dbd8313ed055', 'Laki-laki', 'Staff Marketing', '2021-11-23', 'Pegawai Tidak Tetap', 'k1.jpg', 2),
(12, '1289302', 'Stella', 'stella', '827ccb0eea8a706c4c34a16891f84e7b', 'Perempuan', 'Admin', '2021-12-08', 'Pegawai Tetap', 'gambar.jpg', 1);
-- --------------------------------------------------------
--
-- Table structure for table `hak_akses`
--
CREATE TABLE `hak_akses` (
`id` int(11) NOT NULL,
`keterangan` varchar(50) NOT NULL,
`hak_akses` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `hak_akses`
--
INSERT INTO `hak_akses` (`id`, `keterangan`, `hak_akses`) VALUES
(1, 'admin', 1),
(2, 'pegawai', 2);
-- --------------------------------------------------------
--
-- Table structure for table `potongan_gaji`
--
CREATE TABLE `potongan_gaji` (
`id` int(11) NOT NULL,
`potongan` varchar(120) NOT NULL,
`jml_potongan` int(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `potongan_gaji`
--
INSERT INTO `potongan_gaji` (`id`, `potongan`, `jml_potongan`) VALUES
(1, 'Alpha', 150000);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `data_jabatan`
--
ALTER TABLE `data_jabatan`
ADD PRIMARY KEY (`id_jabatan`);
--
-- Indexes for table `data_kehadiran`
--
ALTER TABLE `data_kehadiran`
ADD PRIMARY KEY (`id_kehadiran`);
--
-- Indexes for table `data_pegawai`
--
ALTER TABLE `data_pegawai`
ADD PRIMARY KEY (`id_pegawai`);
--
-- Indexes for table `hak_akses`
--
ALTER TABLE `hak_akses`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `potongan_gaji`
--
ALTER TABLE `potongan_gaji`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `data_jabatan`
--
ALTER TABLE `data_jabatan`
MODIFY `id_jabatan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `data_kehadiran`
--
ALTER TABLE `data_kehadiran`
MODIFY `id_kehadiran` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34;
--
-- AUTO_INCREMENT for table `data_pegawai`
--
ALTER TABLE `data_pegawai`
MODIFY `id_pegawai` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `hak_akses`
--
ALTER TABLE `hak_akses`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `potongan_gaji`
--
ALTER TABLE `potongan_gaji`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Anamakine: 127.0.0.1
-- Üretim Zamanı: 30 Eyl 2020, 11:13:44
-- Sunucu sürümü: 10.4.14-MariaDB
-- PHP Sürümü: 7.4.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Veritabanı: `simple_blog`
--
-- --------------------------------------------------------
--
-- Tablo için tablo yapısı `categories`
--
CREATE TABLE `categories` (
`id` int(11) NOT NULL,
`title` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
`updated_at` datetime NOT NULL DEFAULT current_timestamp(),
`is_active` tinyint(4) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci;
-- --------------------------------------------------------
--
-- Tablo için tablo yapısı `email_settings`
--
CREATE TABLE `email_settings` (
`id` int(11) NOT NULL,
`protocol` varchar(10) COLLATE utf8_turkish_ci NOT NULL,
`host` varchar(100) COLLATE utf8_turkish_ci NOT NULL,
`port` varchar(10) COLLATE utf8_turkish_ci NOT NULL,
`user` varchar(100) COLLATE utf8_turkish_ci NOT NULL,
`password` varchar(100) COLLATE utf8_turkish_ci NOT NULL,
`_from` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`_to` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`user_name` varchar(100) COLLATE utf8_turkish_ci NOT NULL,
`is_active` tinyint(4) NOT NULL DEFAULT 1,
`created_at` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci;
-- --------------------------------------------------------
--
-- Tablo için tablo yapısı `posts`
--
CREATE TABLE `posts` (
`id` int(11) NOT NULL,
`category_id` int(11) NOT NULL,
`title` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`url` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`sub_title` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`body` text COLLATE utf8_turkish_ci NOT NULL,
`img` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
`updated_at` datetime NOT NULL DEFAULT current_timestamp(),
`is_active` tinyint(4) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci;
-- --------------------------------------------------------
--
-- Tablo için tablo yapısı `settings`
--
CREATE TABLE `settings` (
`id` int(11) NOT NULL,
`site_name` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`slogan` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`about` text COLLATE utf8_turkish_ci NOT NULL,
`phone` varchar(20) COLLATE utf8_turkish_ci NOT NULL,
`facebook` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`twitter` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`instagram` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`logo` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`home_banner` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`about_banner` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`contact_banner` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`address` varchar(255) COLLATE utf8_turkish_ci NOT NULL,
`is_active` tinyint(4) NOT NULL DEFAULT 1,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
`updated_at` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci;
-- --------------------------------------------------------
--
-- Tablo için tablo yapısı `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`fullname` varchar(100) COLLATE utf8_turkish_ci NOT NULL,
`email` varchar(100) COLLATE utf8_turkish_ci NOT NULL,
`password` varchar(100) COLLATE utf8_turkish_ci NOT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
`updated_at` datetime NOT NULL DEFAULT current_timestamp(),
`is_active` tinyint(4) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci;
--
-- Dökümü yapılmış tablolar için indeksler
--
--
-- Tablo için indeksler `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Tablo için indeksler `email_settings`
--
ALTER TABLE `email_settings`
ADD PRIMARY KEY (`id`);
--
-- Tablo için indeksler `posts`
--
ALTER TABLE `posts`
ADD PRIMARY KEY (`id`);
--
-- Tablo için indeksler `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- Dökümü yapılmış tablolar için AUTO_INCREMENT değeri
--
--
-- Tablo için AUTO_INCREMENT değeri `categories`
--
ALTER TABLE `categories`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- Tablo için AUTO_INCREMENT değeri `email_settings`
--
ALTER TABLE `email_settings`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- Tablo için AUTO_INCREMENT değeri `posts`
--
ALTER TABLE `posts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- Tablo için AUTO_INCREMENT değeri `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<filename>f105814/application/shared_components/user_interface/theme_style.sql
prompt --application/shared_components/user_interface/theme_style
begin
-- Manifest
-- THEME STYLE: 105814
-- Manifest End
wwv_flow_api.component_begin (
p_version_yyyy_mm_dd=>'2021.04.15'
,p_release=>'21.1.2'
,p_default_workspace_id=>32532315908301997117
,p_default_application_id=>105814
,p_default_id_offset=>0
,p_default_owner=>'WKSP_PERSONALWEBSITE'
);
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(32836060525055656448)
,p_theme_id=>42
,p_name=>'Redwood Light'
,p_css_file_urls=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#IMAGE_PREFIX#libraries/oracle-fonts/oraclesans-apex#MIN#.css?v=#APEX_VERSION#',
'#THEME_IMAGES#css/Redwood#MIN#.css?v=#APEX_VERSION#'))
,p_is_current=>false
,p_is_public=>true
,p_is_accessible=>false
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Redwood-Theme.less'
,p_theme_roller_output_file_url=>'#THEME_IMAGES#css/Redwood-Theme#MIN#.css?v=#APEX_VERSION#'
,p_theme_roller_read_only=>true
,p_reference_id=>2596426436825065489
);
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(32836060738344656448)
,p_theme_id=>42
,p_name=>'Vita'
,p_is_current=>false
,p_is_public=>true
,p_is_accessible=>true
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Vita.less'
,p_theme_roller_output_file_url=>'#THEME_IMAGES#css/Vita#MIN#.css?v=#APEX_VERSION#'
,p_theme_roller_read_only=>true
,p_reference_id=>2719875314571594493
);
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(32836060959194656448)
,p_theme_id=>42
,p_name=>'Vita - Dark'
,p_is_current=>false
,p_is_public=>true
,p_is_accessible=>false
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Vita-Dark.less'
,p_theme_roller_output_file_url=>'#THEME_IMAGES#css/Vita-Dark#MIN#.css?v=#APEX_VERSION#'
,p_theme_roller_read_only=>true
,p_reference_id=>3543348412015319650
);
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(32836061110348656448)
,p_theme_id=>42
,p_name=>'Vita - Red'
,p_is_current=>false
,p_is_public=>true
,p_is_accessible=>false
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Vita-Red.less'
,p_theme_roller_output_file_url=>'#THEME_IMAGES#css/Vita-Red#MIN#.css?v=#APEX_VERSION#'
,p_theme_roller_read_only=>true
,p_reference_id=>1938457712423918173
);
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(32836061303730656448)
,p_theme_id=>42
,p_name=>'Vita - Slate'
,p_is_current=>false
,p_is_public=>true
,p_is_accessible=>false
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Vita-Slate.less'
,p_theme_roller_output_file_url=>'#THEME_IMAGES#css/Vita-Slate#MIN#.css?v=#APEX_VERSION#'
,p_theme_roller_read_only=>true
,p_reference_id=>3291983347983194966
);
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(33624144664418078818)
,p_theme_id=>42
,p_name=>'Personal_Website_Theme'
,p_is_current=>false
,p_is_public=>true
,p_is_accessible=>false
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Vita-Dark.less'
,p_theme_roller_config=>'{"classes":[],"vars":{"@g_Accent-BG":"#040404","@g_Accent-OG":"#0a4969","@g_Link-Base":"#ffffff","@g_Focus":"#fefefe","@g_Nav-Icon":"#e80000","@g_Nav-Icon-Active":"#ffffff","@g_Region-Header-BG":"#002e5b","@g_Region-Header-FG":"#218ffe","@g_Region-BG'
||'":"#021a29","@g_Region-FG":"#218ffe","@g_Form-BorderRadius":"0px","@Side-Exp":"160px","@Actions-Exp":"160px","@Nav-Exp":"200px","@g_Nav_Style":"dark","@g_Nav-BG":"#7797d3","@g_Nav-FG":"#ffffff"},"customCSS":"\nbody, input {\nfont-family: ''Audiowide'','
||' cursive;\n}","useCustomLess":"N"}'
,p_theme_roller_output_file_url=>'#THEME_DB_IMAGES#33624144664418078818.css'
,p_theme_roller_read_only=>false
);
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(34972025001295703398)
,p_theme_id=>42
,p_name=>'Dva Color Scheme'
,p_is_current=>false
,p_is_public=>true
,p_is_accessible=>false
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Vita-Dark.less'
,p_theme_roller_config=>'{"classes":[],"vars":{"@g_Accent-BG":"#f8c5ae","@g_Accent-OG":"#f8c5ae","@g_Link-Base":"#f8c5ae","@g_Focus":"#f8c5ae","@g_Nav-Icon":"#ffffff","@g_Nav-Icon-Active":"#000000","@g_Region-Header-BG":"#633633","@g_Region-Header-FG":"#f8c5ae","@g_Region-BG'
||'":"#633633","@g_Region-FG":"#dcb89c","@g_Form-BorderRadius":"30px","@Side-Exp":"160px","@Actions-Exp":"160px","@Nav-Exp":"230px","@g_Nav_Style":"dark","@g_Nav-BG":"#dcb89c","@g_Nav-FG":"#000000","@g_Body-BG":"#2d1c3a","@g_Body-Text":"#dcb89c","@g_Act'
||'ions-Col-BG":"#f8c5ae","@g_Actions-Col-Text":"#000000","@g_Body-Title-BG":"#2d1c3a","@g_Body-Title-FG":"#dcb89c","@g_Header-BG":"#2d1c3a","@g_Header-FG":"#dcb89c","@g_Container-BorderRadius":"30px","@g_Nav-Active-BG":"#92baf4","@g_Nav-Active-FG":"#00'
||'0000","@g_Nav-Accent-BG":"#92baf4","@g_Nav-Accent-FG":"#000000","@g_Nav-Badge-BG":"#92baf4","@g_Nav-Badge-FG":"#000000","@g_NavBarMenu-BG":"#ffffff","@g_NavBarMenu-FG":"#000000","@l_Left-Col-BG":"#fad6c5","@l_Left-Col-Text":"#000000","@g_Button-Borde'
||'rRadius":"24px","@g_Button-BG":"#29150d","@g_Button-Text":"#dcb89c","@g_Color-Palette-4":"#3caf85","@g_Color-Palette-4-FG":"#f0faf6","@Head-Height":"48px","@g_Body-Content-Max-Width":"100%"},"customCSS":"\nbody, input {\nfont-family: ''Audiowide'', cur'
||'sive;\n}","useCustomLess":"N"}'
,p_theme_roller_output_file_url=>'#THEME_DB_IMAGES#34972025001295703398.css'
,p_theme_roller_read_only=>false
);
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(34974698311765781331)
,p_theme_id=>42
,p_name=>'Genji Color Scheme'
,p_is_current=>false
,p_is_public=>true
,p_is_accessible=>false
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Vita-Dark.less'
,p_theme_roller_config=>'{"classes":[],"vars":{"@g_Accent-BG":"#f8c5ae","@g_Accent-OG":"#f8c5ae","@g_Link-Base":"#949fa5","@g_Focus":"#f8c5ae","@g_Nav-Icon":"#ffffff","@g_Nav-Icon-Active":"#000000","@g_Region-Header-BG":"#949fa5","@g_Region-Header-FG":"#000000","@g_Region-BG'
||'":"#949fa5","@g_Region-FG":"#000000","@g_Form-BorderRadius":"0px","@Side-Exp":"160px","@Actions-Exp":"160px","@Nav-Exp":"200px","@g_Nav_Style":"dark","@g_Nav-BG":"#8cff00","@g_Nav-FG":"#000000","@g_Body-BG":"#3f4042","@g_Body-Text":"#ffffff","@g_Acti'
||'ons-Col-BG":"#6f767f","@g_Actions-Col-Text":"#000000","@g_Body-Title-BG":"#3f4042","@g_Body-Title-FG":"#ffffff","@g_Header-BG":"#8cff00","@g_Header-FG":"#000000","@g_Container-BorderRadius":"0px","@g_Nav-Active-BG":"#766159","@g_Nav-Active-FG":"#ffff'
||'ff","@g_Nav-Accent-BG":"#766159","@g_Nav-Accent-FG":"#ffffff","@g_Nav-Badge-BG":"#766159","@g_Nav-Badge-FG":"#fefefe","@g_NavBarMenu-BG":"#766159","@g_NavBarMenu-FG":"#ffffff","@l_Left-Col-BG":"#6f767f","@l_Left-Col-Text":"#000000","@g_NavBarMenu-Act'
||'ive-BG":"#6f767f","@g_NavBarMenu-Active-FG":"#ffffff","@g_Button-BorderRadius":"24px"},"customCSS":"body, input {\nfont-family: ''Audiowide'', cursive;\n}","useCustomLess":"N"}'
,p_theme_roller_output_file_url=>'#THEME_DB_IMAGES#34974698311765781331.css'
,p_theme_roller_read_only=>false
);
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(34975486513878937567)
,p_theme_id=>42
,p_name=>'Reinhardt Color Scheme '
,p_is_current=>false
,p_is_public=>true
,p_is_accessible=>false
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Vita-Dark.less'
,p_theme_roller_config=>'{"classes":[],"vars":{"@g_Accent-BG":"#f8c5ae","@g_Accent-OG":"#f8c5ae","@g_Link-Base":"#ffff00","@g_Focus":"#f8c5ae","@g_Nav-Icon":"#ffffff","@g_Nav-Icon-Active":"#000000","@g_Region-Header-BG":"#f8f8f8","@g_Region-Header-FG":"#000000","@g_Region-BG'
||'":"#5d5956","@g_Region-FG":"#ffffff","@g_Form-BorderRadius":"0px","@Side-Exp":"160px","@Actions-Exp":"160px","@Nav-Exp":"200px","@g_Nav_Style":"dark","@g_Nav-BG":"#ffff00","@g_Nav-FG":"#000000","@g_Body-BG":"#2f3bb2","@g_Body-Text":"#ffffff","@g_Acti'
||'ons-Col-BG":"#2f3bb2","@g_Actions-Col-Text":"#ffffff","@g_Body-Title-BG":"#2f3bb2","@g_Body-Title-FG":"#ffffff","@g_Header-BG":"#ffff00","@g_Header-FG":"#000000","@g_Container-BorderRadius":"0px","@g_Nav-Active-BG":"#b9b5ad","@g_Nav-Active-FG":"#0000'
||'00","@g_Nav-Accent-BG":"#b9b5ad","@g_Nav-Accent-FG":"#000000","@g_Nav-Badge-BG":"#766159","@g_Nav-Badge-FG":"#fefefe","@g_NavBarMenu-BG":"#766159","@g_NavBarMenu-FG":"#ffffff","@l_Left-Col-BG":"#5d5956","@l_Left-Col-Text":"#ffffff","@g_NavBarMenu-Act'
||'ive-BG":"#b9b5ad","@g_NavBarMenu-Active-FG":"#000000","@g_Button-BorderRadius":"24px"},"customCSS":"\nbody, input {\nfont-family: ''Audiowide'', cursive;\n}","useCustomLess":"N"}'
,p_theme_roller_output_file_url=>'#THEME_DB_IMAGES#34975486513878937567.css'
,p_theme_roller_read_only=>false
);
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(37277696495081962630)
,p_theme_id=>42
,p_name=>'<NAME> Theme'
,p_is_current=>true
,p_is_public=>true
,p_is_accessible=>false
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Vita-Dark.less'
,p_theme_roller_config=>'{"classes":[],"vars":{"@g_Accent-BG":"#2d1c3a","@g_Accent-OG":"#2d1c3a","@g_Link-Base":"#b6d0d1","@g_Focus":"#b6d0d1","@g_Nav-Icon":"#ffffff","@g_Nav-Icon-Active":"#000000","@g_Region-Header-BG":"#633633","@g_Region-Header-FG":"#f8c5ae","@g_Region-BG'
||'":"#633633","@g_Region-FG":"#dcb89c","@g_Form-BorderRadius":"30px","@Side-Exp":"160px","@Actions-Exp":"160px","@Nav-Exp":"230px","@g_Nav_Style":"dark","@g_Nav-BG":"#dcb89c","@g_Nav-FG":"#000000","@g_Body-BG":"#2d1c3a","@g_Body-Text":"#f8c5ae","@g_Act'
||'ions-Col-BG":"#f8c5ae","@g_Actions-Col-Text":"#000000","@g_Body-Title-BG":"#2d1c3a","@g_Body-Title-FG":"#b6d0d1","@g_Header-BG":"#2d1c3a","@g_Header-FG":"#dcb89c","@g_Container-BorderRadius":"30px","@g_Nav-Active-BG":"#92baf4","@g_Nav-Active-FG":"#00'
||'0000","@g_Nav-Accent-BG":"#92baf4","@g_Nav-Accent-FG":"#000000","@g_Nav-Badge-BG":"#92baf4","@g_Nav-Badge-FG":"#000000","@g_NavBarMenu-BG":"#ffffff","@g_NavBarMenu-FG":"#000000","@l_Left-Col-BG":"#fad6c5","@l_Left-Col-Text":"#000000","@g_Button-Borde'
||'rRadius":"24px","@g_Button-BG":"#2d1c3a","@g_Button-Text":"#b6d0d1","@g_Color-Palette-4":"#3caf85","@g_Color-Palette-4-FG":"#f0faf6","@Head-Height":"48px","@g_Body-Content-Max-Width":"100%"},"customCSS":"body {\nfont-family: ''Major Mono Display'', mon'
||'ospace;\n }","useCustomLess":"N"}'
,p_theme_roller_output_file_url=>'#THEME_DB_IMAGES#37277696495081962630.css'
,p_theme_roller_read_only=>false
);
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(37291882721689333185)
,p_theme_id=>42
,p_name=>'Nico Robin 1 Theme'
,p_is_current=>false
,p_is_public=>true
,p_is_accessible=>false
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Vita-Dark.less'
,p_theme_roller_config=>'{"classes":[],"vars":{"@g_Accent-BG":"#f8c5ae","@g_Accent-OG":"#f8c5ae","@g_Link-Base":"#f8c5ae","@g_Focus":"#f8c5ae","@g_Nav-Icon":"#ffffff","@g_Nav-Icon-Active":"#000000","@g_Region-Header-BG":"#633633","@g_Region-Header-FG":"#f8c5ae","@g_Region-BG'
||'":"#633633","@g_Region-FG":"#dcb89c","@g_Form-BorderRadius":"30px","@Side-Exp":"160px","@Actions-Exp":"160px","@Nav-Exp":"230px","@g_Nav_Style":"dark","@g_Nav-BG":"#dcb89c","@g_Nav-FG":"#000000","@g_Body-BG":"#2d1c3a","@g_Body-Text":"#dcb89c","@g_Act'
||'ions-Col-BG":"#f8c5ae","@g_Actions-Col-Text":"#000000","@g_Body-Title-BG":"#2d1c3a","@g_Body-Title-FG":"#dcb89c","@g_Header-BG":"#2d1c3a","@g_Header-FG":"#dcb89c","@g_Container-BorderRadius":"30px","@g_Nav-Active-BG":"#92baf4","@g_Nav-Active-FG":"#00'
||'0000","@g_Nav-Accent-BG":"#92baf4","@g_Nav-Accent-FG":"#000000","@g_Nav-Badge-BG":"#92baf4","@g_Nav-Badge-FG":"#000000","@g_NavBarMenu-BG":"#ffffff","@g_NavBarMenu-FG":"#000000","@l_Left-Col-BG":"#fad6c5","@l_Left-Col-Text":"#000000","@g_Button-Borde'
||'rRadius":"24px","@g_Button-BG":"#29150d","@g_Button-Text":"#dcb89c","@g_Color-Palette-4":"#3caf85","@g_Color-Palette-4-FG":"#f0faf6","@Head-Height":"48px","@g_Body-Content-Max-Width":"100%"},"customCSS":"\nbody, input {\nfont-family: ''Audiowide'', cur'
||'sive;\n}","useCustomLess":"N"}'
,p_theme_roller_output_file_url=>'#THEME_DB_IMAGES#37291882721689333185.css'
,p_theme_roller_read_only=>false
);
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(37298094964031583398)
,p_theme_id=>42
,p_name=>'Dva Color Theme'
,p_is_current=>false
,p_is_public=>true
,p_is_accessible=>false
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Vita-Dark.less'
,p_theme_roller_config=>'{"classes":[],"vars":{"@g_Accent-BG":"#feabe6","@g_Accent-OG":"#feabe6","@g_Link-Base":"#ee4bb5","@g_Focus":"#ee4bb5","@g_Nav-Icon":"#ffffff","@g_Nav-Icon-Active":"#000000","@g_Region-Header-BG":"#633633","@g_Region-Header-FG":"#f8c5ae","@g_Region-BG'
||'":"#633633","@g_Region-FG":"#dcb89c","@g_Form-BorderRadius":"30px","@Side-Exp":"160px","@Actions-Exp":"160px","@Nav-Exp":"230px","@g_Nav_Style":"dark","@g_Nav-BG":"#dcb89c","@g_Nav-FG":"#000000","@g_Body-BG":"#633633","@g_Body-Text":"#92baf4","@g_Act'
||'ions-Col-BG":"#633633","@g_Actions-Col-Text":"#92baf4","@g_Body-Title-BG":"#633633","@g_Body-Title-FG":"#92baf4","@g_Header-BG":"#633633","@g_Header-FG":"#92baf4","@g_Container-BorderRadius":"30px","@g_Nav-Active-BG":"#92baf4","@g_Nav-Active-FG":"#00'
||'0000","@g_Nav-Accent-BG":"#92baf4","@g_Nav-Accent-FG":"#000000","@g_Nav-Badge-BG":"#92baf4","@g_Nav-Badge-FG":"#000000","@g_NavBarMenu-BG":"#ffffff","@g_NavBarMenu-FG":"#000000","@l_Left-Col-BG":"#633633","@l_Left-Col-Text":"#92baf4","@g_Button-Borde'
||'rRadius":"24px","@g_Button-BG":"#633633","@g_Button-Text":"#feabe6","@g_Color-Palette-4":"#3caf85","@g_Color-Palette-4-FG":"#f0faf6","@Head-Height":"48px","@g_Body-Content-Max-Width":"100%","@g_Primary-BG":"#da039c","@g_Primary-FG":"#ffffff","@g_Succ'
||'ess-BG":"#388729","@g_Success-FG":"#ffffff","@g_Info-BG":"#006bd8","@g_Info-FG":"#ffffff","@g_Danger-BG":"#ee0701","@g_Danger-FG":"#ffffff","@g_Color-Palette-1":"#309fdb","@g_Color-Palette-1-FG":"#ffffff","@l_Button-Primary-BG":"#da039c","@l_Button-P'
||'rimary-Text":"#ffffff","@l_Button-Simple-BG":"#ffffff","@l_Button-Simple-Text":"#404040"},"customCSS":"","useCustomLess":"N"}'
,p_theme_roller_output_file_url=>'#THEME_DB_IMAGES#37298094964031583398.css'
,p_theme_roller_read_only=>false
);
wwv_flow_api.component_end;
end;
/
|
<filename>pgtap/sql/pgtap--0.98.0--0.99.0.sql
CREATE OR REPLACE FUNCTION pgtap_version()
RETURNS NUMERIC AS 'SELECT 0.99;'
LANGUAGE SQL IMMUTABLE;
CREATE OR REPLACE FUNCTION pg_version_num()
RETURNS integer AS $$
SELECT current_setting('server_version_num')::integer;
$$ LANGUAGE SQL IMMUTABLE;
CREATE OR REPLACE FUNCTION _ident_array_to_sorted_string( name[], text )
RETURNS text AS $$
SELECT array_to_string(ARRAY(
SELECT quote_ident($1[i])
FROM generate_series(1, array_upper($1, 1)) s(i)
ORDER BY $1[i]
), $2);
$$ LANGUAGE SQL immutable;
CREATE OR REPLACE FUNCTION _array_to_sorted_string( name[], text )
RETURNS text AS $$
SELECT array_to_string(ARRAY(
SELECT $1[i]
FROM generate_series(1, array_upper($1, 1)) s(i)
ORDER BY $1[i]
), $2);
$$ LANGUAGE SQL immutable;
CREATE OR REPLACE FUNCTION _are ( text, name[], name[], TEXT )
RETURNS TEXT AS $$
DECLARE
what ALIAS FOR $1;
extras ALIAS FOR $2;
missing ALIAS FOR $3;
descr ALIAS FOR $4;
msg TEXT := '';
res BOOLEAN := TRUE;
BEGIN
IF extras[1] IS NOT NULL THEN
res = FALSE;
msg := E'\n' || diag(
' Extra ' || what || E':\n '
|| _ident_array_to_sorted_string( extras, E'\n ' )
);
END IF;
IF missing[1] IS NOT NULL THEN
res = FALSE;
msg := msg || E'\n' || diag(
' Missing ' || what || E':\n '
|| _ident_array_to_sorted_string( missing, E'\n ' )
);
END IF;
RETURN ok(res, descr) || msg;
END;
$$ LANGUAGE plpgsql;
CREATE OR REPLACE FUNCTION _areni ( text, text[], text[], TEXT )
RETURNS TEXT AS $$
DECLARE
what ALIAS FOR $1;
extras ALIAS FOR $2;
missing ALIAS FOR $3;
descr ALIAS FOR $4;
msg TEXT := '';
res BOOLEAN := TRUE;
BEGIN
IF extras[1] IS NOT NULL THEN
res = FALSE;
msg := E'\n' || diag(
' Extra ' || what || E':\n '
|| _array_to_sorted_string( extras, E'\n ' )
);
END IF;
IF missing[1] IS NOT NULL THEN
res = FALSE;
msg := msg || E'\n' || diag(
' Missing ' || what || E':\n '
|| _array_to_sorted_string( missing, E'\n ' )
);
END IF;
RETURN ok(res, descr) || msg;
END;
$$ LANGUAGE plpgsql;
-- _hasc( schema, table, constraint_type )
CREATE OR REPLACE FUNCTION _hasc ( NAME, NAME, CHAR )
RETURNS BOOLEAN AS $$
SELECT EXISTS(
SELECT true
FROM pg_catalog.pg_namespace n
JOIN pg_catalog.pg_class c ON c.relnamespace = n.oid
JOIN pg_catalog.pg_constraint x ON c.oid = x.conrelid
JOIN pg_catalog.pg_index i ON c.oid = i.indrelid
WHERE i.indisprimary = true
AND n.nspname = $1
AND c.relname = $2
AND x.contype = $3
);
$$ LANGUAGE sql;
-- _hasc( table, constraint_type )
CREATE OR REPLACE FUNCTION _hasc ( NAME, CHAR )
RETURNS BOOLEAN AS $$
SELECT EXISTS(
SELECT true
FROM pg_catalog.pg_class c
JOIN pg_catalog.pg_constraint x ON c.oid = x.conrelid
JOIN pg_catalog.pg_index i ON c.oid = i.indrelid
WHERE i.indisprimary = true
AND pg_table_is_visible(c.oid)
AND c.relname = $1
AND x.contype = $2
);
$$ LANGUAGE sql;
CREATE OR REPLACE VIEW tap_funky
AS SELECT p.oid AS oid,
n.nspname AS schema,
p.proname AS name,
pg_catalog.pg_get_userbyid(p.proowner) AS owner,
array_to_string(p.proargtypes::regtype[], ',') AS args,
CASE p.proretset WHEN TRUE THEN 'setof ' ELSE '' END
|| p.prorettype::regtype AS returns,
p.prolang AS langoid,
p.proisstrict AS is_strict,
p.prokind AS kind,
p.prosecdef AS is_definer,
p.proretset AS returns_set,
p.provolatile::char AS volatility,
pg_catalog.pg_function_is_visible(p.oid) AS is_visible
FROM pg_catalog.pg_proc p
JOIN pg_catalog.pg_namespace n ON p.pronamespace = n.oid
;
CREATE OR REPLACE FUNCTION _agg ( NAME, NAME, NAME[] )
RETURNS BOOLEAN AS $$
SELECT kind = 'a'
FROM tap_funky
WHERE schema = $1
AND name = $2
AND args = array_to_string($3, ',')
$$ LANGUAGE SQL;
CREATE OR REPLACE FUNCTION _agg ( NAME, NAME )
RETURNS BOOLEAN AS $$
SELECT kind = 'a' FROM tap_funky WHERE schema = $1 AND name = $2
$$ LANGUAGE SQL;
CREATE OR REPLACE FUNCTION _agg ( NAME, NAME[] )
RETURNS BOOLEAN AS $$
SELECT kind = 'a'
FROM tap_funky
WHERE name = $1
AND args = array_to_string($2, ',')
AND is_visible;
$$ LANGUAGE SQL;
CREATE OR REPLACE FUNCTION _agg ( NAME )
RETURNS BOOLEAN AS $$
SELECT kind = 'a' FROM tap_funky WHERE name = $1 AND is_visible;
$$ LANGUAGE SQL;
|
create sequence yatzy_seq
/ |
<reponame>morten-egan/testdata_ninja
create or replace package testdata_set_generator
authid current_user
as
/** Package to create full sets of generators to build complete data sets.
* @author <NAME>
* @version 1.0.0
* @project TESTDATA_NINJA
*/
npg_version varchar2(250) := '1.0.0';
/** Procedure to create a set of generator expanded from one table.
* @author <NAME>
* @param set_name The name of the generator set.
* @param generator_format The format of the generator.
*/
procedure generator_set_create (
set_name in varchar2
, set_center_table in varchar2 default null
, backward_branching in boolean default true
);
end testdata_set_generator;
/ |
-- 05.01.2016 12:19
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog,IsDeleteable,IsHighVolume,IsSecurityEnabled,IsView,LoadSeq,Name,ReplicationType,TableName,Updated,UpdatedBy) VALUES ('3',0,0,0,540695,'N',TO_TIMESTAMP('2016-01-05 12:19:43','YYYY-MM-DD HH24:MI:SS'),100,'D','N','Y','N','N','Y','Y','N','N',0,'Fact Acct change log table','L','Fact_Acct_Log',TO_TIMESTAMP('2016-01-05 12:19:43','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 05.01.2016 12:19
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=540695 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID)
;
-- 05.01.2016 12:19
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
CREATE SEQUENCE FACT_ACCT_LOG_SEQ INCREMENT 1 MINVALUE 0 MAXVALUE 2147483647 START 1000000
;
-- 05.01.2016 12:19
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,554265,TO_TIMESTAMP('2016-01-05 12:19:45','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'Table Fact_Acct_Log',1,'Y','N','Y','Y','Fact_Acct_Log','N',1000000,TO_TIMESTAMP('2016-01-05 12:19:45','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 05.01.2016 12:19
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Table SET IsDeleteable='N',Updated=TO_TIMESTAMP('2016-01-05 12:19:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540695
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552947,885,0,19,540695,'Fact_Acct_ID',TO_TIMESTAMP('2016-01-05 12:20:02','YYYY-MM-DD HH24:MI:SS'),100,'D',131089,'Y','N','N','N','N','Y','N','N','N','Y','Accounting Fact',TO_TIMESTAMP('2016-01-05 12:20:02','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552947 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552948,152,0,20,540695,'Action',TO_TIMESTAMP('2016-01-05 12:20:03','YYYY-MM-DD HH24:MI:SS'),100,'Zeigt die durchzuführende Aktion an','D',1,'"Aktion" ist ein Auswahlfeld, das die für diesen Vorgang durchzuführende Aktion anzeigt.','Y','N','N','N','N','N','N','N','N','Y','Aktion',TO_TIMESTAMP('2016-01-05 12:20:03','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552948 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,542935,0,'processingtag',TO_TIMESTAMP('2016-01-05 12:20:04','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','processingtag','processingtag',TO_TIMESTAMP('2016-01-05 12:20:04','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=542935 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552949,542935,0,10,540695,'processingtag',TO_TIMESTAMP('2016-01-05 12:20:04','YYYY-MM-DD HH24:MI:SS'),100,'D',60,'Y','N','N','N','N','N','N','N','N','Y','processingtag',TO_TIMESTAMP('2016-01-05 12:20:04','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552949 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552950,198,0,19,540695,'C_ElementValue_ID',TO_TIMESTAMP('2016-01-05 12:20:05','YYYY-MM-DD HH24:MI:SS'),100,'Kontenart','D',131089,'Account Elements can be natural accounts or user defined values.','Y','N','N','N','N','Y','N','N','N','Y','Kontenart',TO_TIMESTAMP('2016-01-05 12:20:05','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552950 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552951,181,0,19,540695,'C_AcctSchema_ID',TO_TIMESTAMP('2016-01-05 12:20:06','YYYY-MM-DD HH24:MI:SS'),100,'Stammdaten für Buchhaltung','D',131089,'Ein Kontenschema definiert eine Ausprägung von Stammdaten für die Buchhaltung wie verwendete Art der Kostenrechnung, Währung und Buchungsperiode.','Y','N','N','N','N','Y','N','N','N','Y','Buchführungs-Schema',TO_TIMESTAMP('2016-01-05 12:20:06','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552951 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552952,206,0,19,540695,'C_Period_ID',TO_TIMESTAMP('2016-01-05 12:20:06','YYYY-MM-DD HH24:MI:SS'),100,'Periode des Kalenders','D',131089,'"Periode" bezeichnet einen eklusiven Datumsbereich eines Kalenders.','Y','N','N','N','N','Y','N','N','N','Y','Periode',TO_TIMESTAMP('2016-01-05 12:20:06','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552952 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552953,514,0,20,540695,'PostingType',TO_TIMESTAMP('2016-01-05 12:20:07','YYYY-MM-DD HH24:MI:SS'),100,'Die Art des gebuchten Betrages dieser Transaktion','D',1,'Die "Buchungsart" zeigt die Art des Betrages (Ist, Budget, Reservierung, Statistitisch) der Transaktion an.','Y','N','N','N','N','N','N','N','N','Y','Buchungsart',TO_TIMESTAMP('2016-01-05 12:20:07','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552953 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552954,162,0,12,540695,'AmtAcctDr',TO_TIMESTAMP('2016-01-05 12:20:08','YYYY-MM-DD HH24:MI:SS'),100,'Ausgewiesener Verbindlichkeitsbetrag','D',131089,'"Ausgewiesene Verbindlichkeit" zeigt den in die Buchführungswährung dieser Organisation umgerechneten Betrag der Transaktion an.','Y','N','N','N','N','N','N','N','N','Y','Soll',TO_TIMESTAMP('2016-01-05 12:20:08','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552954 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552955,161,0,12,540695,'AmtAcctCr',TO_TIMESTAMP('2016-01-05 12:20:08','YYYY-MM-DD HH24:MI:SS'),100,'Ausgewiesener Forderungsbetrag','D',131089,'"Ausgewiesene Forderung" zeigt den in die Buchführungswährung dieser Organisation umgerechneten Betrag der Transaktion an.','Y','N','N','N','N','N','N','N','N','Y','Haben',TO_TIMESTAMP('2016-01-05 12:20:08','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552955 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552956,102,0,19,540695,'AD_Client_ID',TO_TIMESTAMP('2016-01-05 12:20:09','YYYY-MM-DD HH24:MI:SS'),100,'Mandant für diese Installation.','D',10,'Ein Mandant ist eine Firma oder eine juristische Person. Sie können keine Daten über Mandanten hinweg verwenden. .','Y','N','N','N','N','Y','N','N','N','N','Mandant',TO_TIMESTAMP('2016-01-05 12:20:09','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552956 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552957,113,0,19,540695,'AD_Org_ID',TO_TIMESTAMP('2016-01-05 12:20:10','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten','D',10,'Eine Organisation ist ein Bereich ihres Mandanten - z.B. Laden oder Abteilung. Sie können Daten über Organisationen hinweg gemeinsam verwenden.','Y','N','N','N','N','Y','N','N','N','N','Sektion',TO_TIMESTAMP('2016-01-05 12:20:10','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552957 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552958,348,0,20,540695,'IsActive',TO_TIMESTAMP('2016-01-05 12:20:11','YYYY-MM-DD HH24:MI:SS'),100,'Der Eintrag ist im System aktiv','D',1,'Es gibt zwei Möglichkeiten, einen Datensatz nicht mehr verfügbar zu machen: einer ist, ihn zu löschen; der andere, ihn zu deaktivieren. Ein deaktivierter Eintrag ist nicht mehr für eine Auswahl verfügbar, aber verfügbar für die Verwendung in Berichten. Es gibt zwei Gründe, Datensätze zu deaktivieren und nicht zu löschen: (1) Das System braucht den Datensatz für Revisionszwecke. (2) Der Datensatz wird von anderen Datensätzen referenziert. Z.B. können Sie keinen Geschäftspartner löschen, wenn es Rechnungen für diesen Geschäftspartner gibt. Sie deaktivieren den Geschäftspartner und verhindern, dass dieser Eintrag in zukünftigen Vorgängen verwendet wird.','Y','N','N','N','N','Y','N','N','N','Y','Aktiv',TO_TIMESTAMP('2016-01-05 12:20:11','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552958 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552959,245,0,16,540695,'Created',TO_TIMESTAMP('2016-01-05 12:20:12','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem dieser Eintrag erstellt wurde','D',35,'Das Feld Erstellt zeigt an, zu welchem Datum dieser Eintrag erstellt wurde.','Y','N','N','N','N','Y','N','N','N','N','Erstellt',TO_TIMESTAMP('2016-01-05 12:20:12','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552959 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552960,246,0,18,110,540695,'CreatedBy',TO_TIMESTAMP('2016-01-05 12:20:13','YYYY-MM-DD HH24:MI:SS'),100,'Nutzer, der diesen Eintrag erstellt hat','D',10,'Das Feld Erstellt durch zeigt an, welcher Nutzer diesen Eintrag erstellt hat.','Y','N','N','N','N','Y','N','N','N','N','Erstellt durch',TO_TIMESTAMP('2016-01-05 12:20:13','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552960 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552961,607,0,16,540695,'Updated',TO_TIMESTAMP('2016-01-05 12:20:14','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem dieser Eintrag aktualisiert wurde','D',35,'Aktualisiert zeigt an, wann dieser Eintrag aktualisiert wurde.','Y','N','N','N','N','Y','N','N','N','N','Aktualisiert',TO_TIMESTAMP('2016-01-05 12:20:14','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552961 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552962,608,0,18,110,540695,'UpdatedBy',TO_TIMESTAMP('2016-01-05 12:20:14','YYYY-MM-DD HH24:MI:SS'),100,'Nutzer, der diesen Eintrag aktualisiert hat','D',10,'Aktualisiert durch zeigt an, welcher Nutzer diesen Eintrag aktualisiert hat.','Y','N','N','N','N','Y','N','N','N','N','Aktualisiert durch',TO_TIMESTAMP('2016-01-05 12:20:14','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 12:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552962 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 12:21
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element SET ColumnName='ProcessingTag', Name='Processing Tag', PrintName='Processing Tag',Updated=TO_TIMESTAMP('2016-01-05 12:21:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=542935
;
-- 05.01.2016 12:21
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=542935
;
-- 05.01.2016 12:21
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='ProcessingTag', Name='Processing Tag', Description=NULL, Help=NULL WHERE AD_Element_ID=542935
;
-- 05.01.2016 12:21
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='ProcessingTag', Name='Processing Tag', Description=NULL, Help=NULL, AD_Element_ID=542935 WHERE UPPER(ColumnName)='PROCESSINGTAG' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 05.01.2016 12:21
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='ProcessingTag', Name='Processing Tag', Description=NULL, Help=NULL WHERE AD_Element_ID=542935 AND IsCentrallyMaintained='Y'
;
-- 05.01.2016 12:21
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Processing Tag', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=542935) AND IsCentrallyMaintained='Y'
;
-- 05.01.2016 12:21
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Processing Tag', Name='Processing Tag' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=542935)
;
-- 05.01.2016 12:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=17, AD_Reference_Value_ID=53238, IsMandatory='Y',Updated=TO_TIMESTAMP('2016-01-05 12:28:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=552948
;
-- 05.01.2016 12:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET FieldLength=10, IsMandatory='Y',Updated=TO_TIMESTAMP('2016-01-05 12:28:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=552955
;
-- 05.01.2016 12:29
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET FieldLength=10, IsMandatory='Y',Updated=TO_TIMESTAMP('2016-01-05 12:29:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=552954
;
-- 05.01.2016 12:29
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2016-01-05 12:29:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=552951
;
-- 05.01.2016 12:29
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, FieldLength=10,Updated=TO_TIMESTAMP('2016-01-05 12:29:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=552950
;
-- 05.01.2016 12:29
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, FieldLength=10,Updated=TO_TIMESTAMP('2016-01-05 12:29:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=552952
;
-- 05.01.2016 12:29
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET FieldLength=7,Updated=TO_TIMESTAMP('2016-01-05 12:29:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=552959
;
-- 05.01.2016 12:29
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, FieldLength=10,Updated=TO_TIMESTAMP('2016-01-05 12:29:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=552947
;
-- 05.01.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=17, AD_Reference_Value_ID=125, IsMandatory='Y',Updated=TO_TIMESTAMP('2016-01-05 12:30:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=552953
;
-- 05.01.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET FieldLength=7,Updated=TO_TIMESTAMP('2016-01-05 12:30:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=552961
;
-- 05.01.2016 14:55
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,552963,526,0,29,540695,'Qty',TO_TIMESTAMP('2016-01-05 14:55:30','YYYY-MM-DD HH24:MI:SS'),100,'Menge','D',131089,'Menge bezeichnet die Anzahl eines bestimmten Produktes oder Artikels für dieses Dokument.','Y','N','N','N','N','Y','N','N','N','Y','Menge',TO_TIMESTAMP('2016-01-05 14:55:30','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 05.01.2016 14:55
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552963 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 05.01.2016 15:05
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2016-01-05 15:05:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=552963
;
-- 07.01.2016 09:43
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET DDL_NoForeignKey='Y',Updated=TO_TIMESTAMP('2016-01-07 09:43:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=552947
;
-- 07.01.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,552964,263,0,15,540695,'N','DateAcct',TO_TIMESTAMP('2016-01-07 12:30:00','YYYY-MM-DD HH24:MI:SS'),100,'N','Accounting Date','de.metas.acct',7,'The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.','Y','N','Y','N','N','N','N','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','Buchungsdatum',0,TO_TIMESTAMP('2016-01-07 12:30:00','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 07.01.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552964 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
|
<filename>evo-X-Scriptdev2/sql/Updates/0.0.3/r1386_mangos.sql
UPDATE creature_template SET ScriptName='npc_morokk' WHERE entry=4500;
|
<filename>schemainspect/pg/sql/sequence-privileges.sql
SELECT r.rolname AS user,
t.relnamespace::regnamespace::name AS schema,
t.relname::text AS name,
p.perm AS permission
FROM pg_catalog.pg_class AS t
CROSS JOIN pg_catalog.pg_roles AS r
CROSS JOIN (VALUES ('SELECT'), ('USAGE'), ('UPDATE')) AS p(perm)
WHERE t.relnamespace::regnamespace::name <> 'information_schema'
AND t.relnamespace::regnamespace::name NOT LIKE 'pg_%'
AND r.rolname NOT LIKE 'pg_%'
AND t.relkind = 'S'
AND has_sequence_privilege(r.oid, t.oid, p.perm) = true
AND NOT r.rolsuper;
|
CREATE TABLE [Lookup].[ImportNotificationStatus](
[Id] INT NOT NULL,
[Description] NVARCHAR(64) NOT NULL,
CONSTRAINT [PK_ImportNotificationStatus] PRIMARY KEY CLUSTERED ([Id] ASC)
);
GO
INSERT INTO [Lookup].[ImportNotificationStatus]([Id], [Description])
VALUES (1, 'New');
GO
CREATE TABLE [ImportNotification].[NotificationAssessment] (
[Id] UNIQUEIDENTIFIER NOT NULL,
[NotificationApplicationId] UNIQUEIDENTIFIER NOT NULL,
[Status] INT NOT NULL,
[RowVersion] ROWVERSION NOT NULL,
CONSTRAINT [PK_ImportNotificationAssessment] PRIMARY KEY CLUSTERED ([Id] ASC),
CONSTRAINT [FK_ImportNotificationAssessment_Status] FOREIGN KEY ([Status]) REFERENCES [Lookup].[ImportNotificationStatus]([Id])
);
GO
CREATE TABLE [ImportNotification].[NotificationDates] (
[Id] UNIQUEIDENTIFIER NOT NULL CONSTRAINT [PK_ImportNotificationDates] PRIMARY KEY,
[NotificationAssessmentId] UNIQUEIDENTIFIER NOT NULL CONSTRAINT [FK_ImportNotificationDates_ImportNotificationAssessment] FOREIGN KEY REFERENCES [ImportNotification].[NotificationAssessment] ([Id]),
[RowVersion] ROWVERSION NOT NULL,
[NotificationReceivedDate] DATETIMEOFFSET NULL,
[PaymentReceivedDate] DATETIMEOFFSET NULL,
[WithdrawnDate] DATETIMEOFFSET NULL
);
GO
CREATE TABLE [ImportNotification].[NotificationStatusChange]
(
[Id] UNIQUEIDENTIFIER NOT NULL CONSTRAINT PK_ImportNotificationStatusChange PRIMARY KEY,
[NotificationAssessmentId] UNIQUEIDENTIFIER NOT NULL CONSTRAINT FK_ImportNotificationStatusChange_NotificationAssessment FOREIGN KEY REFERENCES [ImportNotification].[NotificationAssessment]([Id]),
[PreviousStatus] INT NOT NULL,
[NewStatus] INT NOT NULL,
[UserId] NVARCHAR(128) NOT NULL CONSTRAINT FK_ImportNotificationStatusChange_User FOREIGN KEY REFERENCES [Identity].[AspNetUsers]([Id]),
[ChangeDate] DATETIMEOFFSET NOT NULL
CONSTRAINT DF_ImportNotificationStatusChange_ChangeDate DEFAULT GETDATE(),
[RowVersion] ROWVERSION NOT NULL
);
GO
INSERT INTO [ImportNotification].[NotificationAssessment]([Id], [NotificationApplicationId], [Status])
SELECT (SELECT Cast(Cast(Newid() AS BINARY(10))
+ Cast(Getdate() AS BINARY(6)) AS UNIQUEIDENTIFIER)), Id, 1
FROM [ImportNotification].[Notification]
WHERE Id NOT IN (SELECT NotificationApplicationId FROM [ImportNotification].[NotificationAssessment]);
GO
INSERT INTO [ImportNotification].[NotificationDates]([Id], [NotificationAssessmentId])
SELECT (SELECT Cast(Cast(Newid() AS BINARY(10))
+ Cast(Getdate() AS BINARY(6)) AS UNIQUEIDENTIFIER)),
Id
FROM [ImportNotification].[NotificationAssessment]
WHERE Id NOT IN (SELECT NotificationAssessmentId FROM [ImportNotification].[NotificationDates]);
GO |
--------------------------------------------------------------------------------
-- MySql migration from <= 1.3 to next release
--------------------------------------------------------------------------------
-- Drop constraints
ALTER TABLE EXECUTION DROP FOREIGN KEY FK65111AF8FCEAA1D7;
ALTER TABLE REFERENCE DROP FOREIGN KEY FK6EF34F2BFCEAA1D7;
ALTER TABLE RUNNER_classpaths DROP FOREIGN KEY FKDEF546E52522970F;
ALTER TABLE SYSTEM_UNDER_TEST DROP FOREIGN KEY FK60BA29C9FE6FA665;
ALTER TABLE SYSTEM_UNDER_TEST DROP FOREIGN KEY FK60BA29C92522970F;
ALTER TABLE SYSTEM_UNDER_TEST_sutClasspaths DROP FOREIGN KEY FK9CEBA672FCEAA1D7;
ALTER TABLE SYSTEM_UNDER_TEST_fixtureClasspaths DROP FOREIGN KEY FKD04AD469FCEAA1D7;
ALTER TABLE SUT_SPECIFICATION DROP FOREIGN KEY FK6176AD96FCEAA1D7;
-- Drop indexes
ALTER TABLE EXECUTION DROP INDEX FK65111AF8FCEAA1D7;
ALTER TABLE REFERENCE DROP INDEX FK6EF34F2BFCEAA1D7;
ALTER TABLE RUNNER_classpaths DROP INDEX FKDEF546E52522970F;
ALTER TABLE SYSTEM_UNDER_TEST DROP INDEX FK60BA29C92522970F;
ALTER TABLE SYSTEM_UNDER_TEST DROP INDEX FK60BA29C9FE6FA665;
ALTER TABLE SYSTEM_UNDER_TEST_sutClasspaths DROP INDEX FK9CEBA672FCEAA1D7;
ALTER TABLE SYSTEM_UNDER_TEST_fixtureClasspaths DROP INDEX FKD04AD469FCEAA1D7;
ALTER TABLE SUT_SPECIFICATION DROP INDEX FK6176AD96FCEAA1D7;
-- Changing not nullable columns to nullable
-- Changing TEXT to LONGTEXT (for Execution table)
ALTER TABLE EXECUTION MODIFY SECTIONS VARCHAR(50);
ALTER TABLE EXECUTION MODIFY RESULTS LONGTEXT;
ALTER TABLE EXECUTION MODIFY ERRORID LONGTEXT;
ALTER TABLE REFERENCE MODIFY SECTIONS VARCHAR(50);
ALTER TABLE REPOSITORY MODIFY USERNAME VARCHAR(15);
ALTER TABLE REPOSITORY MODIFY PASSWORD VARCHAR(15);
ALTER TABLE REPOSITORY_TYPE MODIFY DOCUMENT_URL_FORMAT VARCHAR(255);
ALTER TABLE REPOSITORY_TYPE MODIFY TEST_URL_FORMAT VARCHAR(255);
ALTER TABLE REPOSITORY_TYPE MODIFY REPOSITORY_CLASS VARCHAR(255);
ALTER TABLE RUNNER MODIFY SERVER_NAME VARCHAR(255);
ALTER TABLE RUNNER MODIFY SERVER_PORT VARCHAR(8);
ALTER TABLE RUNNER MODIFY CMD_LINE_TEMPLATE TEXT;
ALTER TABLE RUNNER MODIFY MAIN_CLASS VARCHAR(255);
-- Renaming column UID to UIDENT
ALTER TABLE REPOSITORY CHANGE UID UIDENT VARCHAR(255) NOT NULL;
ALTER TABLE EXECUTION CHANGE SYSTEM_UNDER_TEST_ID SUT_ID bigint(20) NOT NULL;
ALTER TABLE REFERENCE CHANGE SYSTEM_UNDER_TEST_ID SUT_ID bigint(20) NOT NULL;
ALTER TABLE SUT_SPECIFICATION CHANGE SYSTEM_UNDER_TEST_ID SUT_ID bigint(20) NOT NULL;
ALTER TABLE SYSTEM_UNDER_TEST_fixtureClasspaths CHANGE SYSTEM_UNDER_TEST_ID SUT_ID bigint(20) NOT NULL;
ALTER TABLE SYSTEM_UNDER_TEST_sutClasspaths CHANGE SYSTEM_UNDER_TEST_ID SUT_ID bigint(20) NOT NULL;
-- Renaming tables SYSTEM_UNDER_TEST* to SUT*
ALTER TABLE RUNNER_classpaths RENAME TO RUNNER_CLASSPATHS;
ALTER TABLE SYSTEM_UNDER_TEST RENAME TO SUT;
ALTER TABLE SYSTEM_UNDER_TEST_fixtureClasspaths RENAME TO SUT_FIXTURE_CLASSPATHS;
ALTER TABLE SYSTEM_UNDER_TEST_sutClasspaths RENAME TO SUT_CLASSPATHS;
-- Reset empty string to null
UPDATE EXECUTION SET SECTIONS = NULL WHERE SECTIONS = '';
UPDATE EXECUTION SET RESULTS = NULL WHERE RESULTS = '';
UPDATE EXECUTION SET ERRORID = NULL WHERE ERRORID = '';
UPDATE REFERENCE SET SECTIONS = NULL WHERE SECTIONS = '';
UPDATE REPOSITORY SET USERNAME = NULL WHERE USERNAME = '';
UPDATE REPOSITORY SET PASSWORD = NULL WHERE PASSWORD = '';
UPDATE REPOSITORY_TYPE SET DOCUMENT_URL_FORMAT = NULL WHERE DOCUMENT_URL_FORMAT = '';
UPDATE REPOSITORY_TYPE SET TEST_URL_FORMAT = NULL WHERE TEST_URL_FORMAT = '';
UPDATE REPOSITORY_TYPE SET REPOSITORY_CLASS = NULL WHERE REPOSITORY_CLASS = '';
UPDATE RUNNER SET SERVER_NAME = NULL WHERE SERVER_NAME = '';
UPDATE RUNNER SET SERVER_PORT = NULL WHERE SERVER_PORT = '';
UPDATE RUNNER SET CMD_LINE_TEMPLATE = NULL WHERE CMD_LINE_TEMPLATE = '';
UPDATE RUNNER SET MAIN_CLASS = NULL WHERE MAIN_CLASS = '';
UPDATE SUT SET FIXTURE_FACTORY = NULL WHERE FIXTURE_FACTORY = '';
UPDATE SUT SET FIXTURE_FACTORY_ARGS = NULL WHERE FIXTURE_FACTORY_ARGS = '';
|
<gh_stars>0
insert into karma(id, number, missing, situation, improve) values (null, 1,'En vidas pasadas tuvo dificultad para tomar decisiones, no pudo aprender el valor de la independencia, tuvo miedo de ser líder', 'Debe confiar más en su propio juicio y en sus habilidades. Algunos problemas lo obligaran a improvisar soluciones. Habrá una constante solicitud para que usted ayude a otros', 'Debe aprender a estimular su osadía, tomar decisiones, afirmar su individualidad y tener confianza en sus propias opiniones');
insert into karma(id, number, missing, situation, improve) values (null, 2,'Tuvo dificultad en ser tolerante y diplomático o al contrario fue una persona demasiado paciente y termino por volverse sumiso. No le preocuparon los detalles e ignoró los sentimientos de otros', 'Se le exige paciencia y comprensión para entender las reacciones, sentimientos, gustos, deseos e ideas ajenas', 'Debe aprender a perdonar, trabajar, obedecer, y lidiar con las cosas con las que generalmente no está de acuerdo');
insert into karma(id, number, missing, situation, improve) values (null, 3,'Se reusó a mostrar sus talentos por timidez inhibición, miedo a la crítica o falta de aplausos. Permitió que otros reprimieran o sofocaran sus ideas y su creatividad', 'Se hace necesario mostrar optimismo y capacidad para exponer las ideas. Usted debe decir lo que piensa, lidiar con el público, dejar su concha protectora y actuar', 'Debe aprender a expresar sus sentimientos, derrochar entusiasmo, poner en práctica sus dones, actuar con mucha seguridad y enfrentar los obstáculos con madurez');
insert into karma(id, number, missing, situation, improve) values (null, 4,'Usted no supo ser metódico y organizado. Hizo todo apresuradamente, buscando atajos que le permitieran llegar más rápido a la meta deseada', 'Deberá pagar por los trabajos de rutina. Tendrá que acompañar de cerca todas las situaciones. Todo lo que haga le exigirá esfuerzo y dedicación', 'Debe aprender a adoptar un modo de vida ordenado sin olvidad jamás que la calidad es mucho mejor que la cantidad');
insert into karma(id, number, missing, situation, improve) values (null, 5,'No tuvo libertad o no supo hacer buen uso de ella. fue común el miedo a los cambios repentinos, a lo desconocido y a las cosas o situaciones extrañas de las que pudo haber aprendido', 'Cambio, nuevas personas e ideas, dificultad en reprimir y reprimirse, problemas en las relaciones domésticas, familiares y laborales', 'Debe aprender a ajustarse a los cambios y a relacionarse con los demás diversos tipos de personas y situaciones');
insert into karma(id, number, missing, situation, improve) values (null, 6,'No se adaptó al ambiente en el que vivía. Estaba tan preocupado consigo mismo que evito cualquier tipo de responsabilidad. Pudo haber sido un gran problema para su familia', 'Frustraciones y la posibilidad de vivir una pasión problemática con una persona mucho más vieja o más joven que usted', 'Debe aprender a comprender las necesidades de otros, reforzar los lazos familiares y comunitarios, asumir responsabilidades domésticas y sociales');
insert into karma(id, number, missing, situation, improve) values (null, 7,'Aprendió mucho en vidas anteriores pero no compartió su aprendizaje. Perteneció a un grupo místico o científico e hizo mal uso de las lecciones recibidas', 'Sensación de no ser amado, miedo al rechazo, búsqueda espiritual solitaria, necesidad de hacer las cosas bien', 'Debe aprender a desarrollar su mente y su lado intuitivo, a meditar, a aprender con los otros y enseñar a los demás a mirar de cerca las cosas y buscar la verdad');
insert into karma(id, number, missing, situation, improve) values (null, 8,'En su vida pasada usted hizo mal uso del poder. Por descuido o egoísmo, manejo equivocadamente asuntos financieros', 'Su lado emocional es contantemente probado. Tiene dificultad para delegar y establecer algún control financiero. Teme que lo traicionen', 'Debe aprender a dirigir los negocios, manejar el dinero, controlarse emocionalmente y desarrollar su liderazgo');
insert into karma(id, number, missing, situation, improve) values (null, 9,'Indica que fue muy racional y que no supo expresar sus emociones. No demostró amor y no permitió que lo amaran sinceramente', 'Sus sentimientos podrán ser heridos y tendrá que dejar escapar algunos proyectos personales', 'Debe aprender a ser cálido, a preocuparse por el prójimo y a compartir pensamientos y vivencias espirituales con otras personas');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '190','Z','0','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '190','Y','1','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '190','X','2','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '190','W','3','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '190','O','4','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '190','T','5','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '190','Z','6','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '190','Y','7','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '190','Q','8','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '190','V','9','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '191','U','0','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '191','T','1','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '191','S','2','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '191','X','3','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '191','W','4','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '191','V','5','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '191','N','6','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '191','Z','7','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '191','Y','8','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '191','X','9','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '192','P','0','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '192','U','1','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '192','T','2','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '192','Z','3','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '192','R','4','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '192','W','5','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '192','V','6','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '192','U','7','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '192','M','8','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '192','Y','9','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '193','X','0','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '193','W','1','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '193','O','2','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '193','T','3','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '193','Z','4','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '193','Y','5','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '193','Q','6','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '193','V','7','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '193','U','8','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '193','T','9','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '194','S','0','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '194','X','1','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '194','W','2','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '194','V','3','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '194','N','4','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '194','Z','5','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '194','Y','6','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '194','X','7','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '194','P','8','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '194','U','9','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '195','T','0','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '195','Z','1','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '195','R','2','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '195','W','3','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '195','V','4','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '195','U','5','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '195','M','6','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '195','Y','7','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '195','X','8','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '195','W','9','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '196','O','0','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '196','T','1','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '196','Z','2','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '196','Y','3','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '196','Q','4','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '196','V','5','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '196','U','6','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '196','T','7','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '196','S','8','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '196','X','9','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '197','W','0','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '197','V','1','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '197','N','2','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '197','Z','3','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '197','Y','4','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '197','X','5','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '197','P','6','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '197','U','7','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '197','T','8','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '197','Z','9','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '198','R','0','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '198','W','1','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '198','V','2','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '198','U','3','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '198','M','4','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '198','Y','5','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '198','X','6','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '198','W','7','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '198','O','8','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '198','T','9','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '199','X','0','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '199','W','1','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '199','O','2','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '199','T','3','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '199','Z','4','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '199','Y','5','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '199','Q','6','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '199','V','7','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '199','U','8','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null, '199','T','9','F');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'190','DD','0','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'190','GG','1','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'190','NN','2','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'190','BB','3','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'190','JJ','4','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'190','CC','5','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'190','DD','6','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'190','GG','7','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'190','KK','8','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'190','FF','9','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'191','AA','0','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'191','CC','1','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'191','EE','2','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'191','NN','3','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'191','BB','4','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'191','FF','5','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'191','PP','6','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'191','DD','7','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'191','GG','8','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'191','NN','9','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'192','LL','0','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'192','AA','1','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'192','CC','2','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'192','DD','3','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'192','MM','4','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'192','BB','5','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'192','FF','6','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'192','AA','7','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'192','HH','8','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'192','GG','9','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'193','NN','0','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'193','BB','1','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'193','JJ','2','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'193','CC','3','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'193','DD','4','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'193','GG','5','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'193','KK','6','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'193','FF','7','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'193','AA','8','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'193','CC','9','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'194','EE','0','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'194','NN','1','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'194','BB','2','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'194','FF','3','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'194','PP','4','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'194','DD','5','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'194','GG','6','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'194','NN','7','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'194','LL','8','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'194','AA','9','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'195','CC','0','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'195','DD','1','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'195','MM','2','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'195','BB','3','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'195','FF','4','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'195','AA','5','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'195','HH','6','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'195','GG','7','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'195','NN','8','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'195','BB','9','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'196','JJ','0','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'196','CC','1','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'196','DD','2','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'196','GG','3','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'196','KK','4','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'196','FF','5','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'196','AA','6','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'196','CC','7','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'196','EE','8','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'196','NN','9','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'197','BB','0','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'197','FF','1','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'197','PP','2','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'197','DD','3','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'197','GG','4','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'197','NN','5','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'197','LL','6','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'197','AA','7','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'197','CC','8','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'197','DD','9','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'198','MM','0','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'198','BB','1','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'198','FF','2','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'198','AA','3','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'198','HH','4','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'198','GG','5','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'198','NN','6','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'198','BB','7','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'198','JJ','8','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'198','CC','9','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'199','NN','0','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'199','BB','1','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'199','JJ','2','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'199','CC','3','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'199','DD','4','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'199','GG','5','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'199','KK','6','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'199','FF','7','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'199','AA','8','M');
insert into birthyear(id, year_preffix, letter_code, year_suffix,current_sex) values (null,'199','CC','9','M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO','3-1','AAAA','AAA','V','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO','3-2','BBBB','AAA','T','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO','3-3','CCCC','AAA','W','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO','3-4','DDDD','AAA','Z','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO','3-5','EEEE','AAA','X','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO','3-6','FFFF','AAA','Y','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO','3-7','GGGG','AAA','U','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO','4-1','AAAA','BBB','R','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO','4-2','BBBB','BBB','P','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO','4-3','CCCC','BBB','S','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO','4-4','DDDD','BBB','O','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO','4-5','EEEE','BBB','M','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO','4-6','FFFF','BBB','N','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO','4-7','GGGG','BBB','Q','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO','2-1','AAAA','CCC','Y','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO','2-2','BBBB','CCC','W','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO','2-3','CCCC','CCC','Z','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO','2-4','DDDD','CCC','V','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO','2-5','EEEE','CCC','T','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO','2-6','FFFF','CCC','U','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO','2-7','GGGG','CCC','X','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL','1-1','AAAA','DDD','O','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL','1-2','BBBB','DDD','M','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL','1-3','CCCC','DDD','P','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL','1-4','DDDD','DDD','S','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL','1-5','EEEE','DDD','Q','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL','1-6','FFFF','DDD','R','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL','1-7','GGGG','DDD','N','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO','4-1','AAAA','EEE','W','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO','4-2','BBBB','EEE','U','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO','4-3','CCCC','EEE','X','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO','4-4','DDDD','EEE','T','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO','4-5','EEEE','EEE','X','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO','4-6','FFFF','EEE','Z','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO','4-7','GGGG','EEE','V','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO','3-1','AAAA','FFF','M','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO','3-2','BBBB','FFF','R','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO','3-3','CCCC','FFF','N','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO','3-4','DDDD','FFF','Q','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO','3-5','EEEE','FFF','O','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO','3-6','FFFF','FFF','P','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO','3-7','GGGG','FFF','S','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO','1-1','AAAA','GGG','U','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO','1-2','BBBB','GGG','Z','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO','1-3','CCCC','GGG','V','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO','1-4','DDDD','GGG','Y','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO','1-5','EEEE','GGG','W','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO','1-6','FFFF','GGG','X','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO','1-7','GGGG','GGG','T','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO','2-1','AAAA','HHH','R','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO','2-2','BBBB','HHH','P','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO','2-3','CCCC','HHH','S','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO','2-4','DDDD','HHH','O','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO','2-5','EEEE','HHH','M','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO','2-6','FFFF','HHH','N','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO','2-7','GGGG','HHH','Q','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE','2-1','AAAA','III','T','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE','2-2','BBBB','III','Y','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE','2-3','CCCC','III','U','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE','2-4','DDDD','III','X','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE','2-5','EEEE','III','V','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE','2-6','FFFF','III','W','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE','2-7','GGGG','III','Z','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE','1-1','AAAA','JJJ','P','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE','1-2','BBBB','JJJ','N','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE','1-3','CCCC','JJJ','Q','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE','1-4','DDDD','JJJ','M','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE','1-5','EEEE','JJJ','R','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE','1-6','FFFF','JJJ','S','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE','1-7','GGGG','JJJ','O','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE','3-1','AAAA','KKK','Y','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE','3-2','BBBB','KKK','W','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE','3-3','CCCC','KKK','Z','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE','3-4','DDDD','KKK','V','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE','3-5','EEEE','KKK','T','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE','3-6','FFFF','KKK','U','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE','3-7','GGGG','KKK','X','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE','4-1','AAAA','LLL','N','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE','4-2','BBBB','LLL','S','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE','4-3','CCCC','LLL','O','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE','4-4','DDDD','LLL','R','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE','4-5','EEEE','LLL','P','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE','4-6','FFFF','LLL','Q','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE','4-7','GGGG','LLL','M','M','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO','1-1','AAAA','AAA','O','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO','1-2','BBBB','AAA','M','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO','1-3','CCCC','AAA','P','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO','1-4','DDDD','AAA','S','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO','1-5','EEEE','AAA','Q','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO','1-6','FFFF','AAA','R','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO','1-7','GGGG','AAA','N','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO','3-1','AAAA','BBB','Y','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO','3-2','BBBB','BBB','W','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO','3-3','CCCC','BBB','Z','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO','3-4','DDDD','BBB','V','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO','3-5','EEEE','BBB','T','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO','3-6','FFFF','BBB','U','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO','3-7','GGGG','BBB','X','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO','4-1','AAAA','CCC','S','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO','4-2','BBBB','CCC','Q','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO','4-3','CCCC','CCC','M','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO','4-4','DDDD','CCC','P','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO','4-5','EEEE','CCC','N','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO','4-6','FFFF','CCC','O','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO','4-7','GGGG','CCC','R','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL','2-1','AAAA','DDD','U','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL','2-2','BBBB','DDD','Z','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL','2-3','CCCC','DDD','V','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL','2-4','DDDD','DDD','Y','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL','2-5','EEEE','DDD','W','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL','2-6','FFFF','DDD','X','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL','2-7','GGGG','DDD','T','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO','3-1','AAAA','EEE','Q','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO','3-2','BBBB','EEE','O','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO','3-3','CCCC','EEE','R','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO','3-4','DDDD','EEE','N','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO','3-5','EEEE','EEE','S','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO','3-6','FFFF','EEE','M','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO','3-7','GGGG','EEE','P','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO','1-1','AAAA','FFF','Z','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO','1-2','BBBB','FFF','X','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO','1-3','CCCC','FFF','T','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO','1-4','DDDD','FFF','W','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO','1-5','EEEE','FFF','U','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO','1-6','FFFF','FFF','V','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO','1-7','GGGG','FFF','Y','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO','2-1','AAAA','GGG','O','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO','2-2','BBBB','GGG','M','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO','2-3','CCCC','GGG','P','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO','2-4','DDDD','GGG','S','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO','2-5','EEEE','GGG','Q','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO','2-6','FFFF','GGG','R','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO','2-7','GGGG','GGG','N','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO','4-1','AAAA','HHH','X','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO','4-2','BBBB','HHH','V','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO','4-3','CCCC','HHH','Y','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO','4-4','DDDD','HHH','U','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO','4-5','EEEE','HHH','Z','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO','4-6','FFFF','HHH','T','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO','4-7','GGGG','HHH','W','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE','4-1','AAAA','III','N','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE','4-2','BBBB','III','S','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE','4-3','CCCC','III','O','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE','4-4','DDDD','III','R','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE','4-5','EEEE','III','P','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE','4-6','FFFF','III','Q','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE','4-7','GGGG','III','M','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE','2-1','AAAA','JJJ','V','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE','2-2','BBBB','JJJ','T','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE','2-3','CCCC','JJJ','W','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE','2-4','DDDD','JJJ','Z','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE','2-5','EEEE','JJJ','X','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE','2-6','FFFF','JJJ','Y','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE','2-7','GGGG','JJJ','U','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE','3-1','AAAA','KKK','S','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE','3-2','BBBB','KKK','Q','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE','3-3','CCCC','KKK','M','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE','3-4','DDDD','KKK','P','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE','3-5','EEEE','KKK','N','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE','3-6','FFFF','KKK','O','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE','3-7','GGGG','KKK','R','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE','1-1','AAAA','LLL','T','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE','1-2','BBBB','LLL','Y','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE','1-3','CCCC','LLL','U','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE','1-4','DDDD','LLL','X','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE','1-5','EEEE','LLL','V','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE','1-6','FFFF','LLL','W','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE','1-7','GGGG','LLL','Z','F','F');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO', '2-1', 'AAAA', 'MMM', 'MM', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO', '2-2', 'BBBB', 'MMM', 'KK', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO', '2-3', 'CCCC', 'MMM', 'PP', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO', '2-4', 'DDDD', 'MMM', 'HH', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO', '2-5', 'EEEE', 'MMM', 'EE', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO', '2-6', 'FFFF', 'MMM', 'JJ', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO', '2-7', 'GGGG', 'MMM', 'LL', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO', '1-1', 'AAAA', 'NNN', 'AA', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO', '1-2', 'BBBB', 'NNN', 'HH', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO', '1-3', 'CCCC', 'NNN', 'NN', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO', '1-4', 'DDDD', 'NNN', 'BB', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO', '1-5', 'EEEE', 'NNN', 'FF', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO', '1-6', 'FFFF', 'NNN', 'GG', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO', '1-7', 'GGGG', 'NNN', 'DD', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO', '3-1', 'AAAA', 'OOO', 'JJ', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO', '3-2', 'BBBB', 'OOO', 'CC', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO', '3-3', 'CCCC', 'OOO', 'MM', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO', '3-4', 'DDDD', 'OOO', 'KK', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO', '3-5', 'EEEE', 'OOO', 'LL', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO', '3-6', 'FFFF', 'OOO', 'EE', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO', '3-7', 'GGGG', 'OOO', 'HH', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL', '3-1', 'AAAA', 'PPP', 'NN', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL', '3-2', 'BBBB', 'PPP', 'BB', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL', '3-3', 'CCCC', 'PPP', 'CC', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL', '3-4', 'DDDD', 'PPP', 'DD', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL', '3-5', 'EEEE', 'PPP', 'GG', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL', '3-6', 'FFFF', 'PPP', 'AA', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL', '3-7', 'GGGG', 'PPP', 'FF', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO', '2-1', 'AAAA', 'QQQ', 'HH', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO', '2-2', 'BBBB', 'QQQ', 'EE', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO', '2-3', 'CCCC', 'QQQ', 'LL', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO', '2-4', 'DDDD', 'QQQ', 'JJ', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO', '2-5', 'EEEE', 'QQQ', 'PP', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO', '2-6', 'FFFF', 'QQQ', 'KK', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO', '2-7', 'GGGG', 'QQQ', 'MM', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO', '2-1', 'AAAA', 'RRR', 'FF', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO', '2-2', 'BBBB', 'RRR', 'AA', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO', '2-3', 'CCCC', 'RRR', 'GG', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO', '2-4', 'DDDD', 'RRR', 'NN', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO', '2-5', 'EEEE', 'RRR', 'BB', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO', '2-6', 'FFFF', 'RRR', 'DD', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO', '2-7', 'GGGG', 'RRR', 'CC', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO', '3-1', 'AAAA', 'SSS', 'MM', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO', '3-2', 'BBBB', 'SSS', 'KK', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO', '3-3', 'CCCC', 'SSS', 'PP', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO', '3-4', 'DDDD', 'SSS', 'HH', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO', '3-5', 'EEEE', 'SSS', 'EE', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO', '3-6', 'FFFF', 'SSS', 'JJ', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO', '3-7', 'GGGG', 'SSS', 'LL', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO', '1-1', 'AAAA', 'TTT', 'CC', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO', '1-2', 'BBBB', 'TTT', 'DD', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO', '1-3', 'CCCC', 'TTT', 'BB', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO', '1-4', 'DDDD', 'TTT', 'FF', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO', '1-5', 'EEEE', 'TTT', 'AA', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO', '1-6', 'FFFF', 'TTT', 'NN', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO', '1-7', 'GGGG', 'TTT', 'GG', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE', '3-1', 'AAAA', 'UUU', 'KK', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE', '3-2', 'BBBB', 'UUU', 'LL', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE', '3-3', 'CCCC', 'UUU', 'HH', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE', '3-4', 'DDDD', 'UUU', 'EE', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE', '3-5', 'EEEE', 'UUU', 'MM', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE', '3-6', 'FFFF', 'UUU', 'PP', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE', '3-7', 'GGGG', 'UUU', 'JJ', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE', '3-1', 'AAAA', 'VVV', 'GG', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE', '3-2', 'BBBB', 'VVV', 'NN', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE', '3-3', 'CCCC', 'VVV', 'AA', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE', '3-4', 'DDDD', 'VVV', 'CC', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE', '3-5', 'EEEE', 'VVV', 'DD', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE', '3-6', 'FFFF', 'VVV', 'FF', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE', '3-7', 'GGGG', 'VVV', 'BB', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE', '4-1', 'AAAA', 'WWW', 'JJ', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE', '4-2', 'BBBB', 'WWW', 'PP', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE', '4-3', 'CCCC', 'WWW', 'MM', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE', '4-4', 'DDDD', 'WWW', 'KK', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE', '4-5', 'EEEE', 'WWW', 'LL', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE', '4-6', 'FFFF', 'WWW', 'EE', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE', '4-7', 'GGGG', 'WWW', 'HH', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE', '2-1', 'AAAA', 'XXX', 'BB', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE', '2-2', 'BBBB', 'XXX', 'FF', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE', '2-3', 'CCCC', 'XXX', 'DD', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE', '2-4', 'DDDD', 'XXX', 'GG', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE', '2-5', 'EEEE', 'XXX', 'NN', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE', '2-6', 'FFFF', 'XXX', 'CC', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE', '2-7', 'GGGG', 'XXX', 'AA', 'M', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO', '2-1', 'AAAA', 'MMM', 'GG', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO', '2-2', 'BBBB', 'MMM', 'NN', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO', '2-3', 'CCCC', 'MMM', 'AA', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO', '2-4', 'DDDD', 'MMM', 'CC', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO', '2-5', 'EEEE', 'MMM', 'DD', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO', '2-6', 'FFFF', 'MMM', 'FF', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ENERO', '2-7', 'GGGG', 'MMM', 'BB', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO', '1-1', 'AAAA', 'NNN', 'PP', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO', '1-2', 'BBBB', 'NNN', 'CC', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO', '1-3', 'CCCC', 'NNN', 'KK', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO', '1-4', 'DDDD', 'NNN', 'LL', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO', '1-5', 'EEEE', 'NNN', 'JJ', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO', '1-6', 'FFFF', 'NNN', 'MM', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'FEBRERO', '1-7', 'GGGG', 'NNN', 'EE', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO', '3-1', 'AAAA', 'OOO', 'AA', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO', '3-2', 'BBBB', 'OOO', 'PP', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO', '3-3', 'CCCC', 'OOO', 'NN', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO', '3-4', 'DDDD', 'OOO', 'BB', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO', '3-5', 'EEEE', 'OOO', 'FF', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO', '3-6', 'FFFF', 'OOO', 'GG', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MARZO', '3-7', 'GGGG', 'OOO', 'DD', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL', '4-1', 'AAAA', 'PPP', 'MM', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL', '4-2', 'BBBB', 'PPP', 'KK', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL', '4-3', 'CCCC', 'PPP', 'PP', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL', '4-4', 'DDDD', 'PPP', 'HH', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL', '4-5', 'EEEE', 'PPP', 'EE', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL', '4-6', 'FFFF', 'PPP', 'JJ', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'ABRIL', '4-7', 'GGGG', 'PPP', 'LL', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO', '1-1', 'AAAA', 'QQQ', 'DD', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO', '1-2', 'BBBB', 'QQQ', 'GG', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO', '1-3', 'CCCC', 'QQQ', 'FF', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO', '1-4', 'DDDD', 'QQQ', 'AA', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO', '1-5', 'EEEE', 'QQQ', 'CC', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO', '1-6', 'FFFF', 'QQQ', 'BB', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'MAYO', '1-7', 'GGGG', 'QQQ', 'NN', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO', '2-1', 'AAAA', 'RRR', 'LL', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO', '2-2', 'BBBB', 'RRR', 'JJ', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO', '2-3', 'CCCC', 'RRR', 'EE', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO', '2-4', 'DDDD', 'RRR', 'MM', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO', '2-5', 'EEEE', 'RRR', 'KK', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO', '2-6', 'FFFF', 'RRR', 'HH', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JUNIO', '2-7', 'GGGG', 'RRR', 'PP', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO', '4-1', 'AAAA', 'SSS', 'NN', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO', '4-2', 'BBBB', 'SSS', 'BB', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO', '4-3', 'CCCC', 'SSS', 'CC', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO', '4-4', 'DDDD', 'SSS', 'DD', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO', '4-5', 'EEEE', 'SSS', 'GG', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO', '4-6', 'FFFF', 'SSS', 'AA', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'JULIO', '4-7', 'GGGG', 'SSS', 'FF', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO', '3-1', 'AAAA', 'TTT', 'PP', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO', '3-2', 'BBBB', 'TTT', 'HH', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO', '3-3', 'CCCC', 'TTT', 'KK', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO', '3-4', 'DDDD', 'TTT', 'LL', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO', '3-5', 'EEEE', 'TTT', 'JJ', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO', '3-6', 'FFFF', 'TTT', 'MM', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'AGOSTO', '3-7', 'GGGG', 'TTT', 'EE', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE', '2-1', 'AAAA', 'UUU', 'BB', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE', '2-2', 'BBBB', 'UUU', 'FF', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE', '2-3', 'CCCC', 'UUU', 'DD', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE', '2-4', 'DDDD', 'UUU', 'GG', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE', '2-5', 'EEEE', 'UUU', 'NN', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE', '2-6', 'FFFF', 'UUU', 'CC', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'SEPTIEMBRE', '2-7', 'GGGG', 'UUU', 'AA', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE', '1-1', 'AAAA', 'VVV', 'EE', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE', '1-2', 'BBBB', 'VVV', 'MM', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE', '1-3', 'CCCC', 'VVV', 'JJ', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE', '1-4', 'DDDD', 'VVV', 'PP', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE', '1-5', 'EEEE', 'VVV', 'HH', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE', '1-6', 'FFFF', 'VVV', 'LL', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'OCTUBRE', '1-7', 'GGGG', 'VVV', 'KK', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE', '1-1', 'AAAA', 'WWW', 'AA', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE', '1-2', 'BBBB', 'WWW', 'CC', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE', '1-3', 'CCCC', 'WWW', 'NN', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE', '1-4', 'DDDD', 'WWW', 'BB', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE', '1-5', 'EEEE', 'WWW', 'FF', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE', '1-6', 'FFFF', 'WWW', 'GG', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'NOVIEMBRE', '1-7', 'GGGG', 'WWW', 'DD', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE', '2-1', 'AAAA', 'XXX', 'KK', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE', '2-2', 'BBBB', 'XXX', 'LL', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE', '2-3', 'CCCC', 'XXX', 'HH', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE', '2-4', 'DDDD', 'XXX', 'EE', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE', '2-5', 'EEEE', 'XXX', 'MM', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE', '2-6', 'FFFF', 'XXX', 'PP', 'F', 'M');
insert into birthmounth(id, mounth, profesion, simbol_type, orientation_type, letter_code, sex_in_past, current_sex) values (null, 'DICIEMBRE', '2-7', 'GGGG', 'XXX', 'JJ', 'F', 'M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','1','M','5','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','2','M','5','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','3','M','46','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','4','M','46','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','5','M','46','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','6','M','46','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','7','M','46','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','8','M','46','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','9','M','46','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','10','M','37','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','11','M','37','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','12','M','37','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','13','M','37','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','14','M','37','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','15','M','37','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','16','M','37','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','17','M','48','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','18','M','48','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','19','M','48','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','20','M','48','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','21','M','48','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','22','M','48','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','23','M','48','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','24','M','65','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','25','M','65','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','26','M','65','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','27','M','65','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','28','M','65','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','29','M','65','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','30','M','65','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','31','M','6','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','1','F','22','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','2','F','22','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','3','F','17','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','4','F','17','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','5','F','17','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','6','F','17','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','7','F','17','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','8','F','17','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','9','F','17','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','10','F','36','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','11','F','36','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','12','F','36','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','13','F','36','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','14','F','36','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','15','F','36','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','16','F','36','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','17','F','59','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','18','F','59','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','19','F','59','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','20','F','59','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','21','F','59','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','22','F','59','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','23','F','59','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','24','F','51','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','25','F','51','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','26','F','51','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','27','F','51','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','28','F','51','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','29','F','51','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','30','F','51','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','31','F','9','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','1','M','28','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','2','M','28','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','3','M','28','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','4','M','28','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','5','M','28','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','6','M','28','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','7','M','28','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','8','M','58','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','9','M','58','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','10','M','58','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','11','M','58','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','12','M','58','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','13','M','58','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','14','M','58','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','15','M','10','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','16','M','10','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','17','M','10','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','18','M','10','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','19','M','10','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','20','M','10','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','21','M','10','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','22','M','38','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','23','M','38','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','24','M','38','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','25','M','38','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','26','M','38','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','27','M','38','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','28','M','38','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','29','M','11','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','30','M','11','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','31','M','11','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','1','F','40','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','2','F','40','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','3','F','40','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','4','F','40','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','5','F','40','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','6','F','40','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','7','F','40','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','8','F','2','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','9','F','2','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','10','F','2','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','11','F','2','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','12','F','2','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','13','F','2','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','14','F','2','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','15','F','64','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','16','F','64','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','17','F','64','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','18','F','64','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','19','F','64','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','20','F','64','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','21','F','64','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','22','F','56','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','23','F','56','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','24','F','56','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','25','F','56','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','26','F','56','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','27','F','56','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','28','F','56','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','29','F','35','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','30','F','35','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','31','F','35','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','1','M','29','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','2','M','29','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','3','M','29','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','4','M','53','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','5','M','53','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','6','M','53','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','7','M','53','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','8','M','53','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','9','M','53','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','10','M','53','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','11','M','30','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','12','M','30','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','13','M','30','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','14','M','30','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','15','M','30','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','16','M','30','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','17','M','30','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','18','M','69','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','19','M','69','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','20','M','69','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','21','M','69','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','22','M','69','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','23','M','69','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','24','M','69','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','25','M','1','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','26','M','1','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','27','M','1','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','28','M','1','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','29','M','1','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','30','M','1','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','31','M','1','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','1','F','19','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','2','F','19','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','3','F','19','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','4','F','67','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','5','F','67','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','6','F','67','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','7','F','67','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','8','F','67','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','9','F','67','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','10','F','67','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','11','F','13','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','12','F','13','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','13','F','13','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','14','F','13','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','15','F','13','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','16','F','13','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','17','F','13','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','18','F','32','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','19','F','32','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','20','F','32','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','21','F','32','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','22','F','32','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','23','F','32','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','24','F','32','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','25','F','31','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','26','F','31','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','27','F','31','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','28','F','31','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','29','F','31','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','30','F','31','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','31','F','31','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','1','M','74','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','2','M','74','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','3','M','74','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','4','M','74','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','5','M','74','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','6','M','74','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','7','M','4','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','8','M','4','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','9','M','4','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','10','M','4','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','11','M','4','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','12','M','4','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','13','M','4','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','14','M','47','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','15','M','47','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','16','M','47','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','17','M','47','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','18','M','47','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','19','M','47','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','20','M','47','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','21','M','20','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','22','M','20','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','23','M','20','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','24','M','20','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','25','M','20','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','26','M','20','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','27','M','20','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','28','M','26','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','29','M','26','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','30','M','26','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','31','M','26','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','1','F','15','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','2','F','15','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','3','F','15','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','4','F','15','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','5','F','15','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','6','F','15','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','7','F','49','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','8','F','49','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','9','F','49','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','10','F','49','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','11','F','49','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','12','F','49','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','13','F','49','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','14','F','12','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','15','F','12','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','16','F','12','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','17','F','12','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','18','F','12','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','19','F','12','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','20','F','12','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','21','F','39','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','22','F','39','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','23','F','39','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','24','F','39','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','25','F','39','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','26','F','39','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','27','F','39','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','28','F','33','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','29','F','33','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','30','F','33','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','31','F','33','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','1','M','23','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','2','M','23','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','3','M','23','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','4','M','23','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','5','M','21','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','6','M','21','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','7','M','21','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','8','M','21','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','9','M','21','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','10','M','21','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','11','M','21','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','12','M','44','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','13','M','44','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','14','M','44','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','15','M','44','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','16','M','44','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','17','M','44','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','18','M','44','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','19','M','16','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','20','M','16','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','21','M','16','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','22','M','16','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','23','M','16','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','24','M','16','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','25','M','16','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','26','M','43','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','27','M','43','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','28','M','43','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','29','M','43','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','30','M','43','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','31','M','43','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','1','F','42','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','2','F','42','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','3','F','42','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','4','F','42','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','5','F','60','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','6','F','60','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','7','F','60','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','8','F','60','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','9','F','60','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','10','F','60','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','11','F','60','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','12','F','24','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','13','F','24','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','14','F','24','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','15','F','24','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','16','F','24','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','17','F','24','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','18','F','24','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','19','F','3','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','20','F','3','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','21','F','3','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','22','F','3','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','23','F','3','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','24','F','3','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','25','F','3','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','26','F','52','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','27','F','52','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','28','F','52','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','29','F','52','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','30','F','52','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','31','F','52','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','1','M','34','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','2','M','34','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','3','M','34','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','4','M','34','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','5','M','34','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','6','M','27','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','7','M','27','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','8','M','27','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','9','M','27','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','10','M','27','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','11','M','27','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','12','M','27','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','13','M','14','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','14','M','14','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','15','M','14','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','16','M','14','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','17','M','14','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','18','M','14','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','19','M','14','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','20','M','41','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','21','M','41','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','22','M','41','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','23','M','41','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','24','M','41','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','25','M','41','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','26','M','41','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','27','M','50','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','28','M','50','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','29','M','50','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','30','M','50','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','31','M','50','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','1','F','18','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','2','F','18','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','3','F','18','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','4','F','18','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','5','F','18','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','6','F','25','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','7','F','25','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','8','F','25','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','9','F','25','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','10','F','25','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','11','F','25','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','12','F','25','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','13','F','57','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','14','F','57','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','15','F','57','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','16','F','57','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','17','F','57','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','18','F','57','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','19','F','57','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','20','F','45','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','21','F','45','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','22','F','45','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','23','F','45','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','24','F','45','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','25','F','45','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','26','F','45','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','27','F','62','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','28','F','62','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','29','F','62','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','30','F','62','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','31','F','62','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','1','M','73','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','2','M','63','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','3','M','63','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','4','M','63','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','5','M','63','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','6','M','63','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','7','M','63','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','8','M','63','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','9','M','66','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','10','M','66','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','11','M','66','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','12','M','66','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','13','M','66','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','14','M','66','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','15','M','66','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','16','M','54','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','17','M','54','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','18','M','54','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','19','M','54','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','20','M','54','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','21','M','54','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','22','M','54','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','23','M','61','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','24','M','61','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','25','M','61','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','26','M','61','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','27','M','61','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','28','M','61','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','29','M','61','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','30','M','72','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','31','M','72','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','1','F','8','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','2','F','55','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','3','F','55','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','4','F','55','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','5','F','55','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','6','F','55','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','7','F','55','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','8','F','55','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','9','F','70','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','10','F','70','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','11','F','70','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','12','F','70','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','13','F','70','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','14','F','70','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','15','F','70','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','16','F','68','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','17','F','68','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','18','F','68','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','19','F','68','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','20','F','68','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','21','F','68','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','22','F','68','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','23','F','71','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','24','F','71','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','25','F','71','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','26','F','71','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','27','F','71','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','28','F','71','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','29','F','71','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','30','F','30','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','31','F','31','F');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','1','M','51','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','2','M','51','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','3','M','12','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','4','M','12','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','5','M','12','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','6','M','12','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','7','M','12','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','8','M','12','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','9','M','12','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','10','M','48','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','11','M','48','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','12','M','48','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','13','M','48','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','14','M','48','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','15','M','48','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','16','M','48','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','17','M','37','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','18','M','37','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','19','M','37','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','20','M','37','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','21','M','37','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','22','M','37','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','23','M','37','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','24','M','9','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','25','M','9','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','26','M','9','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','27','M','9','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','28','M','9','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','29','M','9','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','30','M','9','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','31','M','14','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','1','F','3','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','2','F','3','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','3','F','21','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','4','F','21','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','5','F','21','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','6','F','21','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','7','F','21','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','8','F','21','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','9','F','21','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','10','F','56','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','11','F','56','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','12','F','56','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','13','F','56','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','14','F','56','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','15','F','56','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','16','F','56','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','17','F','28','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','18','F','28','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','19','F','28','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','20','F','28','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','21','F','28','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','22','F','28','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','23','F','28','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','24','F','50','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','25','F','50','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','26','F','50','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','27','F','50','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','28','F','50','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','29','F','50','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','30','F','50','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'AAAA','31','F','72','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','1','M','15','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','2','M','15','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','3','M','15','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','4','M','15','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','5','M','15','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','6','M','15','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','7','M','15','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','8','M','68','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','9','M','68','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','10','M','68','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','11','M','68','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','12','M','68','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','13','M','68','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','14','M','68','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','15','M','53','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','16','M','53','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','17','M','53','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','18','M','53','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','19','M','53','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','20','M','53','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','21','M','53','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','22','M','42','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','23','M','42','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','24','M','42','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','25','M','42','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','26','M','42','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','27','M','42','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','28','M','42','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','29','M','73','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','30','M','73','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','31','M','73','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','1','F','4','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','2','F','4','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','3','F','4','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','4','F','4','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','5','F','4','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','6','F','4','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','7','F','4','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','8','F','41','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','9','F','41','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','10','F','41','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','11','F','41','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','12','F','41','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','13','F','41','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','14','F','41','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','15','F','53','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','16','F','53','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','17','F','53','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','18','F','53','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','19','F','53','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','20','F','53','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','21','F','53','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','22','F','63','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','23','F','63','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','24','F','63','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','25','F','63','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','26','F','63','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','27','F','63','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','28','F','63','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','29','F','46','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','30','F','46','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'BBBB','31','F','46','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','1','M','5','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','2','M','5','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','3','M','5','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','4','M','70','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','5','M','70','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','6','M','70','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','7','M','70','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','8','M','70','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','9','M','70','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','10','M','70','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','11','M','61','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','12','M','61','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','13','M','61','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','14','M','61','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','15','M','61','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','16','M','61','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','17','M','61','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','18','M','19','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','19','M','19','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','20','M','19','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','21','M','19','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','22','M','19','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','23','M','19','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','24','M','19','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','25','M','59','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','26','M','59','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','27','M','59','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','28','M','59','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','29','M','59','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','30','M','59','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','31','M','59','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','1','F','64','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','2','F','64','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','3','F','64','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','4','F','13','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','5','F','13','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','6','F','13','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','7','F','13','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','8','F','13','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','9','F','13','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','10','F','13','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','11','F','35','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','12','F','35','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','13','F','35','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','14','F','35','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','15','F','35','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','16','F','35','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','17','F','35','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','18','F','47','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','19','F','47','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','20','F','47','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','21','F','47','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','22','F','47','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','23','F','47','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','24','F','47','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','25','F','66','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','26','F','66','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','27','F','66','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','28','F','66','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','29','F','66','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','30','F','66','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'CCCC','31','F','66','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','1','M','33','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','2','M','33','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','3','M','33','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','4','M','33','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','5','M','33','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','6','M','33','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','7','M','49','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','8','M','49','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','9','M','49','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','10','M','49','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','11','M','49','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','12','M','49','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','13','M','49','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','14','M','31','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','15','M','31','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','16','M','31','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','17','M','31','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','18','M','31','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','19','M','31','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','20','M','31','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','21','M','10','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','22','M','10','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','23','M','10','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','24','M','10','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','25','M','10','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','26','M','10','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','27','M','10','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','28','M','69','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','29','M','69','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','30','M','69','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','31','M','69','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','1','F','26','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','2','F','26','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','3','F','26','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','4','F','26','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','5','F','26','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','6','F','26','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','7','F','7','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','8','F','7','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','9','F','7','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','10','F','7','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','11','F','7','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','12','F','7','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','13','F','7','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','14','F','43','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','15','F','43','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','16','F','43','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','17','F','43','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','18','F','43','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','19','F','43','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','20','F','43','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','21','F','62','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','22','F','62','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','23','F','62','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','24','F','62','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','25','F','62','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','26','F','62','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','27','F','62','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','28','F','60','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','29','F','60','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','30','F','60','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'DDDD','31','F','60','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','1','M','23','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','2','M','23','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','3','M','23','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','4','M','23','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','5','M','52','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','6','M','52','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','7','M','52','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','8','M','52','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','9','M','52','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','10','M','52','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','11','M','52','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','12','M','65','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','13','M','65','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','14','M','65','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','15','M','65','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','16','M','65','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','17','M','65','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','18','M','65','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','19','M','32','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','20','M','32','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','21','M','32','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','22','M','32','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','23','M','32','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','24','M','32','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','25','M','32','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','26','M','1','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','27','M','1','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','28','M','1','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','29','M','1','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','30','M','1','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','31','M','1','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','1','F','18','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','2','F','18','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','3','F','18','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','4','F','18','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','5','F','44','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','6','F','44','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','7','F','44','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','8','F','44','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','9','F','44','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','10','F','44','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','11','F','44','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','12','F','27','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','13','F','27','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','14','F','27','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','15','F','27','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','16','F','27','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','17','F','27','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','18','F','27','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','19','F','25','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','20','F','25','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','21','F','25','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','22','F','25','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','23','F','25','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','24','F','25','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','25','F','25','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','26','F','55','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','27','F','55','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','28','F','55','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','29','F','55','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','30','F','55','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'EEEE','31','F','55','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','1','M','11','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','2','M','11','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','3','M','11','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','4','M','11','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','5','M','11','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','6','M','40','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','7','M','40','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','8','M','40','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','9','M','40','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','10','M','40','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','11','M','40','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','12','M','40','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','13','M','71','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','14','M','71','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','15','M','71','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','16','M','71','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','17','M','71','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','18','M','71','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','19','M','71','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','20','M','57','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','21','M','57','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','22','M','57','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','23','M','57','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','24','M','57','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','25','M','57','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','26','M','57','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','27','M','30','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','28','M','30','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','29','M','30','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','30','M','30','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','31','M','30','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','1','F','36','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','2','F','36','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','3','F','36','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','4','F','36','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','5','F','36','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','6','F','29','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','7','F','29','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','8','F','29','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','9','F','29','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','10','F','29','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','11','F','29','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','12','F','29','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','13','F','8','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','14','F','8','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','15','F','8','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','16','F','8','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','17','F','8','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','18','F','8','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','19','F','8','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','20','F','20','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','21','F','20','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','22','F','20','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','23','F','20','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','24','F','20','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','25','F','20','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','26','F','20','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','27','F','74','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','28','F','74','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','29','F','74','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','30','F','74','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'FFFF','31','F','74','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','1','M','67','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','2','M','2','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','3','M','2','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','4','M','2','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','5','M','2','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','6','M','2','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','7','M','2','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','8','M','2','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','9','M','38','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','10','M','38','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','11','M','38','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','12','M','38','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','13','M','38','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','14','M','38','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','15','M','38','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','16','M','58','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','17','M','58','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','18','M','58','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','19','M','58','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','20','M','58','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','21','M','58','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','22','M','58','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','23','M','17','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','24','M','17','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','25','M','17','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','26','M','17','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','27','M','17','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','28','M','17','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','29','M','17','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','30','M','45','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','31','M','45','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','1','F','16','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','2','F','39','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','3','F','39','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','4','F','39','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','5','F','39','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','6','F','39','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','7','F','39','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','8','F','39','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','9','F','22','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','10','F','22','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','11','F','22','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','12','F','22','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','13','F','22','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','14','F','22','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','15','F','22','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','16','F','6','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','17','F','6','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','18','F','6','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','19','F','6','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','20','F','6','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','21','F','6','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','22','F','6','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','23','F','54','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','24','F','54','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','25','F','54','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','26','F','54','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','27','F','54','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','28','F','54','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','29','F','54','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','30','F','30','M');
insert into birthday (id, simbol_type, day, sex_in_past, location, current_sex) values (null,'GGGG','31','F','31','M');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','M','1850');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','JJ','1850');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','N','925');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','AA','925');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','O','1725');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','KK','1725');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','P','1450');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','NN','1450');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','Q','1000');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','BB','1000');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','R','975');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','DD','975');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','S','1225');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','EE','1225');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','T','1175');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','PP','1175');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','U','900');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','FF','900');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','V','1225');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','LL','1225');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','W','575');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','MM','575');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','X','1800');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','GG','1800');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','Y','1075');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','HH','1075');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','Z','975');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'AAA','CC','975');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','M','00');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','JJ','00');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','N','1750');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','AA','1750');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','O','1325');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','KK','1325');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','P','850');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','NN','850');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','Q','1700');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','BB','1700');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','R','450');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','DD','450');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','S','925');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','EE','925');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','T','1750');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','PP','1750');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','U','1375');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','FF','1375');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','V','1150');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','LL','1150');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','W','1700');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','MM','1700');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','X','1550');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','GG','1550');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','Y','950');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','HH','950');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','Z','1575');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'BBB','CC','1575');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','M','1200');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','JJ','1200');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','N','1825');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','AA','1825');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','O','1650');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','KK','1650');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','P','725');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','NN','725');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','Q','1225');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','BB','1225');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','R','925');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','DD','925');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','S','1525');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','EE','1525');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','T','1875');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','PP','1875');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','U','725');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','FF','725');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','V','1600');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','LL','1600');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','W','1025');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','MM','1025');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','X','375');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','GG','375');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','Y','1750');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','HH','1750');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','Z','650');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'CCC','CC','650');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','M','1100');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','JJ','1100');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','N','875');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','AA','875');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','O','1625');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','KK','1625');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','P','1550');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','NN','1550');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','Q','1025');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','BB','1025');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','R','725');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','DD','725');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','S','1125');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','EE','1125');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','T','1850');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','PP','1850');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','U','1500');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','FF','1500');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','V','1200');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','LL','1200');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','W','400');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','MM','400');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','X','1250');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','GG','1250');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','Y','875');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','HH','875');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','Z','1050');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'DDD','CC','1050');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','M','1400');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','JJ','1400');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','N','1375');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','AA','1375');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','O','1675');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','KK','1675');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','P','500');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','NN','500');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','Q','1450');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','BB','1450');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','R','1375');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','DD','1375');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','S','625');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','EE','625');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','T','1400');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','PP','1400');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','U','900');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','FF','900');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','V','750');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','LL','750');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','W','1675');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','MM','1675');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','X','1575');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','GG','1575');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','Y','1250');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','HH','1250');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','Z','525');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'EEE','CC','525');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','M','1800');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','JJ','1800');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','N','825');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','AA','825');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','O','1175');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','KK','1175');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','P','1325');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','NN','1325');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','Q','1625');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','BB','1625');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','R','700');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','DD','700');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','S','1300');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','EE','1300');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','T','1600');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','PP','1600');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','U','825');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','FF','825');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','V','1475');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','LL','1475');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','W','1775');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','MM','1775');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','X','1300');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','GG','1300');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','Y','800');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','HH','800');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','Z','700');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'FFF','CC','700');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','M','1125');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','JJ','1125');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','N','425');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','AA','425');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','O','875');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','KK','875');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','P','1800');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','NN','1800');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','Q','950');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','BB','950');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','R','1200');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','DD','1200');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','S','1250');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','EE','1250');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','T','1825');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','PP','1825');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','U','775');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','FF','775');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','V','1825');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','LL','1825');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','W','775');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','MM','775');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','X','1425');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','GG','1425');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','Y','1000');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','HH','1000');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','Z','1175');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'GGG','CC','1175');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','M','1475');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','JJ','1475');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','N','675');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','AA','675');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','O','800');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','KK','800');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','P','1700');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','NN','1700');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','Q','1100');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','BB','1100');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','R','1350');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','DD','1350');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','S','750');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','EE','750');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','T','1150');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','PP','1150');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','U','1500');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','FF','1500');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','V','1275');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','LL','1275');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','W','1725');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','MM','1725');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','X','1200');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','GG','1200');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','Y','1425');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','HH','1425');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','Z','1350');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'HHH','CC','1350');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','M','1025');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','JJ','1025');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','N','1850');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','AA','1850');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','O','700');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','KK','700');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','P','1000');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','NN','1000');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','Q','425');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','BB','425');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','R','1275');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','DD','1275');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','S','1425');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','EE','1425');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','T','1275');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','PP','1275');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','U','1050');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','FF','1050');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','V','1400');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','LL','1400');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','W','475');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','MM','475');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','X','1575');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','GG','1575');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','Y','1650');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','HH','1650');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','Z','850');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'III','CC','850');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','M','1175');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','JJ','1175');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','N','1525');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','AA','1525');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','O','900');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','KK','900');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','P','1100');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','NN','1100');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','Q','1725');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','BB','1725');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','R','925');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','DD','925');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','S','600');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','EE','600');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','T','1525');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','PP','1525');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','U','1025');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','FF','1025');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','V','950');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','LL','950');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','W','1775');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','MM','1775');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','X','775');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','GG','775');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','Y','1075');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','HH','1075');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','Z','1350');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'JJJ','CC','1350');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','M','1500');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','JJ','1500');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','N','800');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','AA','800');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','O','1775');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','KK','1775');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','P','1650');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','NN','1650');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','Q','1350');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','BB','1350');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','R','1375');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','DD','1375');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','S','1475');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','EE','1475');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','T','1850');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','PP','1850');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','U','1075');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','FF','1075');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','V','1675');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','LL','1675');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','W','890');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','MM','890');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','X','1600');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','GG','1600');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','Y','1550');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','HH','1550');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','Z','1775');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'KKK','CC','1775');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','M','700');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','JJ','700');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','N','1350');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','AA','1350');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','O','1825');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','KK','1825');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','P','550');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','NN','550');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','Q','1525');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','BB','1525');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','R','825');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','DD','825');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','S','1150');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','EE','1150');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','T','975');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','PP','975');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','U','1675');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','FF','1675');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','V','1325');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','LL','1325');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','W','1450');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','MM','1450');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','X','1200');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','GG','1200');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','Y','1825');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','HH','1825');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','Z','1125');
insert into encarnationdate(id, orientation_type, letter_code, year_encarnation) values (null,'LLL','CC','1125');
|
<gh_stars>0
-包括创建的表,实始化的数据
begin
P_DEL_GNMK('xtgl_bhgzzd');
P_DEL_GNMK('xtgl_bhgzck');
P_DEL_GNMK('xtgl_bhdcz');
P_DEL_GNMK('xtgl_bhdck');
--P_DEL_ML('系统管理','编号管理');
P_ADD_ML('系统管理','编号管理');
P_ADD_GNMK('系统管理~编号管理','xtgl_bhgzzd','编号规则制定','../numberPages/jsp/numRuleInput.jsp','090000');
P_ADD_GNMK('系统管理~编号管理','xtgl_bhgzck','编号规则查看','../numberPages/jsp/numRuleList.jsp','090000');
P_ADD_GNMK('系统管理~编号管理','xtgl_bhdcz','编号段注册','../numberPages/jsp/numSegmentInput.jsp','090000');
P_ADD_GNMK('系统管理~编号管理','xtgl_bhdck','编号段查看','../numberPages/jsp/numSegmentList.jsp','090000');
END;
/
|
DROP TABLE IF EXISTS USER_CREDENTIALS;
DROP TABLE IF EXISTS USER_PROFILE;
CREATE TABLE USER_PROFILE
(
user_id VARCHAR(255) NOT NULL,
full_name VARCHAR(255) NOT NULL,
email_id VARCHAR(255),
date_of_birth DATE,
status VARCHAR(255),
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
PRIMARY KEY (user_id)
);
CREATE TABLE USER_CREDENTIAL
(
user_id VARCHAR(255) NOT NULL,
user_name VARCHAR(255) NOT NULL,
password VARCHAR(255),
password_expiry_date DATE,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
PRIMARY KEY (user_name),
CONSTRAINT fk_user
FOREIGN KEY (user_id)
REFERENCES USER_PROFILE (user_id)
); |
<reponame>AntoineLange/quarkus-quickstarts
INSERT INTO fruit(id, name) VALUES (nextval('hibernate_sequence'), 'Cherry')
INSERT INTO fruit(id, name) VALUES (nextval('hibernate_sequence'), 'Apple')
INSERT INTO fruit(id, name) VALUES (nextval('hibernate_sequence'), 'Banana')
|
drop procedure if exists refresh_report_churn_total_and_pct;
DELIMITER //
CREATE PROCEDURE refresh_report_churn_total_and_pct()
BEGIN
-- Refresh Churn Dollars and Churn Percent for MONTHLY subscriptions
create temporary table report_temp_churn_monthly_paid_bundles (index (bundle_id)) as
select distinct
tenant_record_id
, bundle_id
from
analytics_invoice_items
where 1=1
and invoice_original_amount_charged >0
and invoice_balance = 0
;
create temporary table report_temp_churn_monthly_paid_bundles2 (index (bundle_id)) as
select distinct
tenant_record_id
, bundle_id
from
analytics_invoice_items
where 1=1
and invoice_original_amount_charged >0
and invoice_balance = 0
;
create temporary table report_temp_churn_monthly_dollars_pct_monthly as
select
active_sub_dollar.tenant_record_id
, active_sub_dollar.month
, round(churn_dollar.amount) churn_dollars_monthly
, round(churn_dollar.amount / active_sub_dollar.amount,4) churn_pct_monthly
from (
select
ast.tenant_record_id
, date_format(next_start_date, '%Y-%m-01') month
, prev_billing_period
, sum(converted_prev_price) amount
from
analytics_subscription_transitions ast
join report_temp_churn_monthly_paid_bundles paid_bundles on ast.bundle_id = paid_bundles.bundle_id and ast.tenant_record_id = paid_bundles.tenant_record_id
where 1=1
and report_group='default'
and next_service='entitlement-service'
and event like 'STOP_ENTITLEMENT%'
and prev_billing_period in ('MONTHLY')
group by 1,2,3
) churn_dollar join (
select
ast.tenant_record_id
, cal.d month
, next_billing_period
, sum(converted_next_price) amount
from
analytics_subscription_transitions ast
join calendar cal on next_start_date < cal.d and (next_end_date > cal.d or next_end_date is null ) and (cal.d = date_format(cal.d, '%Y-%m-01')) and cal.d>='2013-01-01' and cal.d < sysdate()
join report_temp_churn_monthly_paid_bundles2 paid_bundles on ast.bundle_id = paid_bundles.bundle_id and ast.tenant_record_id = paid_bundles.tenant_record_id
where 1=1
and report_group='default'
and next_service='entitlement-service'
and event not like 'STOP_ENTITLEMENT%'
and next_billing_period in ('MONTHLY')
group by 1,2,3
) active_sub_dollar on churn_dollar.month=active_sub_dollar.month and churn_dollar.prev_billing_period=active_sub_dollar.next_billing_period and churn_dollar.tenant_record_id=active_sub_dollar.tenant_record_id
;
DELETE FROM report_churn_total_usd_monthly;
DELETE FROM report_churn_percent_monthly;
insert into report_churn_total_usd_monthly
select
tenant_record_id
, month day
, 'MONTHLY'
, churn_dollars_monthly count
from
report_temp_churn_monthly_dollars_pct_monthly
;
insert into report_churn_percent_monthly
select
tenant_record_id
, month day
, 'MONTHLY'
, churn_pct_monthly count
from
report_temp_churn_monthly_dollars_pct_monthly
;
-- Refresh Churn Dollars and Churn Percent for ANNUAL subscriptions
create temporary table report_temp_churn_annual_paid_bundles (index (bundle_id)) as
select distinct
tenant_record_id
, bundle_id
from (
select
tenant_record_id
, bundle_id
from
analytics_invoice_items
where 1=1
and invoice_original_amount_charged >0
and invoice_balance = 0
union
select
s.tenant_record_id
, s.bundle_id
from
subscription_events se
join subscriptions s on se.subscription_id = s.id and se.tenant_record_id = s.tenant_record_id
where 1=1
and user_type in ('MIGRATE_ENTITLEMENT')
) bundles
;
create temporary table report_temp_churn_annual_paid_bundles2 (index (bundle_id)) as
select distinct
tenant_record_id
, bundle_id
, charged_through_date
from (
select
tenant_record_id
, bundle_id
, end_date charged_through_date
from
analytics_invoice_items
where 1=1
and invoice_original_amount_charged >0
and invoice_balance = 0
union
select
s.tenant_record_id
, s.bundle_id
, effective_date charged_through_date
from
subscription_events se
join subscriptions s on se.subscription_id = s.id and se.tenant_record_id = s.tenant_record_id
where 1=1
and user_type in ('MIGRATE_ENTITLEMENT')
) bundles
;
create temporary table report_temp_churn_annual_dollars_pct_monthly as
select
churn_dollar.tenant_record_id
, churn_dollar.month
, churn_dollar.amount churn_dollars_annual
, round(churn_dollar.amount /active_sub_dollar.amount,4) churn_pct_annual
from (
select
ast.tenant_record_id
, date_format(next_start_date, '%Y-%m-01') month
, prev_billing_period
, round(sum(converted_prev_price)) amount
from
analytics_subscription_transitions ast
join report_temp_churn_annual_paid_bundles paid_bundles on ast.bundle_id = paid_bundles.bundle_id and ast.tenant_record_id = paid_bundles.tenant_record_id
where 1=1
and report_group='default'
and next_service='entitlement-service'
and event like 'STOP_ENTITLEMENT%'
and prev_billing_period in ('ANNUAL')
group by 1,2,3
) churn_dollar join (
select
ast.tenant_record_id
, cal.d month
, next_billing_period
, round(sum(converted_next_price)) amount
from
analytics_subscription_transitions ast
join calendar cal on next_start_date < cal.d and (next_end_date > cal.d or next_end_date is null ) and (cal.d = date_format(cal.d, '%Y-%m-01')) and cal.d>='2013-01-01' and cal.d < sysdate()
join report_temp_churn_annual_paid_bundles2 paid_bundles on ast.bundle_id = paid_bundles.bundle_id and ast.tenant_record_id = paid_bundles.tenant_record_id
where 1=1
and report_group='default'
and next_service='entitlement-service'
and event not like 'STOP_ENTITLEMENT%'
and next_billing_period in ('ANNUAL')
and extract(month from date_add(charged_through_date,interval 1 day)) = extract(month from cal.d)
group by 1,2,3
) active_sub_dollar on churn_dollar.month=active_sub_dollar.month and churn_dollar.prev_billing_period=active_sub_dollar.next_billing_period and churn_dollar.tenant_record_id=active_sub_dollar.tenant_record_id
;
insert into report_churn_total_usd_monthly
select
tenant_record_id
, month day
, 'ANNUAL'
, churn_dollars_annual count
from
report_temp_churn_annual_dollars_pct_monthly
;
insert into report_churn_percent_monthly
select
tenant_record_id
, month day
, 'ANNUAL'
, churn_pct_annual count
from
report_temp_churn_annual_dollars_pct_monthly
;
END;
//
DELIMITER ;
|
DELETE FROM @Centers;
INSERT INTO @Centers([Index],[ParentIndex],
[Name], [Name2], [Code],[CenterType]) VALUES
(0,NULL,N'Banan', N'بنان', N'0', N'Abstract'),
(1,0, N'Headquarters', N'الرئاسة', N'1', N'BusinessUnit'),
(11,1, N'Exec. Office', N'المكتب التنفيذي', N'11', N'Administration'),-- only expense by nature
(12,1, N'Sales Unit', N'التسويق والمبيعات', N'12', N'Administration'),-- only expense by nature
(13,1, N'Project Mgmt', N'إدارة المشاريع', N'13', N'Administration'), -- like comp. dep. of Abu Bakr to be absorbed by DL
(19,1, N'Services Unit', N'وحدة الخدمات', N'19', N'Service'), -- Rent, Power, and IT support
(2,0, N'IT Solutions', N'حلول تقنية', N'2', N'BusinessUnit'),
(21,2,N'B10/HCM', N'بابل', N'21', N'Sales'),
(22,2,N'BSmart', N'بيسمارت', N'22', N'Sales'),
(23,2,N'Campus', N'كامبوس', N'23', N'Sales'),
(24,2,N'Tellma', N'تلما', N'24', N'Sales'),
(29,2,N'Misc. IT', N'حلول تقنية أخرى', N'29', N'Sales'),
(3,0,N'Other Business', N'أعمال أخرى', N'3', N'BusinessUnit'),
(31,3,N'Subletting', N'تأجير', N'31', N'Sales');
INSERT INTO @ValidationErrors
EXEC [api].[Centers__Save]
@Entities = @Centers,
@UserId = @AdminUserId;
IF EXISTS (SELECT [Key] FROM @ValidationErrors)
BEGIN
Print 'Centers: Error Inserting'
GOTO Err_Label;
END;
DECLARE @101C1 INT = (SELECT [Id] FROM dbo.Centers WHERE [Name] = N'Headquarters');
DECLARE @101C11 INT = (SELECT [Id] FROM dbo.Centers WHERE [Name] = N'Exec. Office');
DECLARE @101C12 INT = (SELECT [Id] FROM dbo.Centers WHERE [Name] = N'Sales Unit');
DECLARE @101C19 INT = (SELECT [Id] FROM dbo.Centers WHERE [Name] = N'Services Unit');
DECLARE @101CB10 INT = (SELECT [Id] FROM dbo.Centers WHERE [Name] = N'B10/HCM');
DECLARE @101CBSmart INT = (SELECT [Id] FROM dbo.Centers WHERE [Name] = N'BSmart');
DECLARE @101CCampus INT = (SELECT [Id] FROM dbo.Centers WHERE [Name] = N'Campus');
DECLARE @101CTellma INT = (SELECT [Id] FROM dbo.Centers WHERE [Name] = N'Tellma');
DECLARE @101MiscIT INT = (SELECT [Id] FROM dbo.Centers WHERE [Name] = N'Misc. IT'); |
<gh_stars>1000+
DROP TABLE IF EXISTS empty;
DROP TABLE IF EXISTS data;
CREATE TABLE empty (value Int8) ENGINE = TinyLog;
CREATE TABLE data (value Int8) ENGINE = TinyLog;
INSERT INTO data SELECT * FROM empty;
SELECT * FROM data;
INSERT INTO data SELECT 1;
SELECT * FROM data;
DROP TABLE empty;
DROP TABLE data;
|
<gh_stars>10-100
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 11, 2020 at 06:36 AM
-- Server version: 8.0.18
-- PHP Version: 7.3.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `codeigniterauth`
--
-- --------------------------------------------------------
--
-- Table structure for table `emailconfig`
--
CREATE TABLE `emailconfig` (
`id` int(11) NOT NULL,
`fromemail` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`fromname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`protocol` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`host` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`username` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`security` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`port` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`updated_at` varchar(255) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `emailconfig`
--
INSERT INTO `emailconfig` (`id`, `fromemail`, `fromname`, `protocol`, `host`, `username`, `security`, `port`, `password`, `created_at`, `updated_at`) VALUES
(1, '<EMAIL>', '<PASSWORD>igniter Auth', 'smtp', 'gmail.google.com', '<EMAIL>', 'tls', '22', '$2y$10$PK65kpF6SflIk/iAJql6R.PRXX9GEaoRrJHHORqReU2I0E/60pVtC', '2020-08-21 17:43:51', '2020-09-11 14:34:52');
-- --------------------------------------------------------
--
-- Table structure for table `logs`
--
CREATE TABLE `logs` (
`id` int(255) NOT NULL,
`date` date NOT NULL,
`time` time NOT NULL,
`reference` int(255) NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`ip` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`location` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`browser` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`updated_at` varchar(255) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `settings`
--
CREATE TABLE `settings` (
`id` int(11) NOT NULL,
`language` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`timezone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`dateformat` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`timeformat` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`iprestriction` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`updated_at` varchar(255) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `settings`
--
INSERT INTO `settings` (`id`, `language`, `timezone`, `dateformat`, `timeformat`, `iprestriction`, `created_at`, `updated_at`) VALUES
(1, 'en', 'Asia/Manila', 'yyyy-mm-dd', '24', '', '2020-08-21 17:43:51', '2020-09-11 14:34:44');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) UNSIGNED NOT NULL,
`email` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
`new_email` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
`password_hash` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
`firstname` varchar(191) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`lastname` varchar(191) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`activate_hash` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
`reset_hash` varchar(191) COLLATE utf8_unicode_ci DEFAULT NULL,
`reset_expires` bigint(20) DEFAULT NULL,
`active` tinyint(1) NOT NULL DEFAULT '0',
`created_at` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`updated_at` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `email`, `new_email`, `password_hash`, `name`, `firstname`, `lastname`, `activate_hash`, `reset_hash`, `reset_expires`, `active`, `created_at`, `updated_at`) VALUES
(1, '<EMAIL>', NULL, '$2y$10$/clmNLUUxGnREFHqraU7P.aVfJ5Mk0iEKRgKVz8.ZKOZIUGJGXlya', 'Admin', 'Admin', 'User', 'ZEWv2TUIY5oDqgw9FkjnmAS78zJNKfpL', NULL, NULL, 1, '2020-08-04 16:07:50', '2020-09-11 14:32:51');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `emailconfig`
--
ALTER TABLE `emailconfig`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `logs`
--
ALTER TABLE `logs`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `settings`
--
ALTER TABLE `settings`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `emailconfig`
--
ALTER TABLE `emailconfig`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `logs`
--
ALTER TABLE `logs`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `settings`
--
ALTER TABLE `settings`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
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 */;
|
-- Projects
INSERT INTO owner_layouts (owner_id, owner_type, layout_id, is_default)
VALUES (1, 'g', 4, 1);
-- First column
INSERT INTO layouts_contents (owner_id, owner_type, layout_id, column_id, name, rank)
VALUES ('1','g', 4, 8, 'projectdescription', 0);
INSERT INTO layouts_contents (owner_id, owner_type, layout_id, column_id, name, rank)
VALUES ('1','g', 4, 8, 'projectinfo', 1);
INSERT INTO layouts_contents (owner_id, owner_type, layout_id, column_id, name, rank)
VALUES ('1','g', 4, 8, 'projectlatestfilereleases', 2);
INSERT INTO layouts_contents (owner_id, owner_type, layout_id, column_id, name, rank)
VALUES ('1','g', 4, 8, 'projectpublicareas', 3);
-- Second column
INSERT INTO layouts_contents (owner_id, owner_type, layout_id, column_id, name, rank)
VALUES ('1','g', 4, 9, 'projectmembers', 0);
INSERT INTO layouts_contents (owner_id, owner_type, layout_id, column_id, name, rank)
VALUES ('1','g', 4, 9, 'projectlatestnews', 1);
|
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Dec 11, 2018 at 01:21 PM
-- Server version: 5.7.21
-- PHP Version: 7.2.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `zend_comics`
--
-- --------------------------------------------------------
--
-- Table structure for table `sktd_characters`
--
DROP TABLE IF EXISTS `sktd_characters`;
CREATE TABLE IF NOT EXISTS `sktd_characters` (
`character_id` int(11) NOT NULL AUTO_INCREMENT,
`character_name` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`character_real_name` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`character_gender` tinyint(1) DEFAULT NULL,
`character_short_description` mediumtext COLLATE utf8mb4_unicode_520_ci,
`character_main_description` longtext COLLATE utf8mb4_unicode_520_ci,
`character_publisher_id` int(11) DEFAULT NULL,
`character_picture_media_id` int(11) DEFAULT NULL,
`character_created` datetime DEFAULT CURRENT_TIMESTAMP,
`character_modified` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`character_id`),
KEY `fk_sktd_characters_sktd_publishers1_idx` (`character_publisher_id`),
KEY `fk_sktd_characters_sktd_media1_idx` (`character_picture_media_id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
--
-- Dumping data for table `sktd_characters`
--
INSERT INTO `sktd_characters` (`character_id`, `character_name`, `character_real_name`, `character_gender`, `character_short_description`, `character_main_description`, `character_publisher_id`, `character_picture_media_id`, `character_created`, `character_modified`) VALUES
(1, 'Supermane', 'Supermane', NULL, NULL, NULL, 1, NULL, '2018-09-06 21:52:53', '2018-09-08 08:23:31'),
(2, 'Name of the character', 'Real name of the character', NULL, NULL, NULL, NULL, NULL, '2018-09-07 08:13:13', '2018-09-07 08:13:13'),
(3, 'Name of the character', 'Real name of the character', NULL, NULL, NULL, NULL, NULL, '2018-09-07 08:14:00', '2018-09-07 08:14:00'),
(4, 'Name of the character', 'Real name of the character', NULL, NULL, NULL, NULL, NULL, '2018-09-07 08:15:41', '2018-09-07 08:15:41'),
(5, 'N@ame of the character', 'Real name of the character', NULL, NULL, NULL, NULL, NULL, '2018-09-07 08:16:21', '2018-09-07 08:16:21'),
(6, 'Name of the character', 'Real name of the character', NULL, NULL, NULL, NULL, NULL, '2018-09-07 08:16:28', '2018-09-07 08:16:28'),
(7, 'Name of the character', 'Real name of the character', NULL, NULL, NULL, NULL, NULL, '2018-09-07 21:44:40', '2018-09-07 21:44:40'),
(8, 'Name of the character', 'Real name of the character', NULL, NULL, NULL, NULL, NULL, '2018-09-07 21:46:00', '2018-09-07 21:46:00'),
(9, 'Name of the character', 'Real name of the character', NULL, NULL, NULL, NULL, NULL, '2018-09-07 21:47:37', '2018-09-07 21:47:37'),
(10, 'Name of the character', 'Real name of the character', NULL, NULL, NULL, NULL, NULL, '2018-09-07 21:49:02', '2018-09-07 21:49:02'),
(11, 'Name of the character', 'Real name of the character', NULL, NULL, NULL, NULL, NULL, '2018-09-07 21:59:06', '2018-09-07 21:59:06'),
(12, '<NAME>', 'SK', NULL, NULL, NULL, NULL, NULL, '2018-09-07 22:08:27', '2018-09-07 22:08:27'),
(13, '<NAME>', 'SK', NULL, NULL, NULL, NULL, NULL, '2018-09-07 22:08:53', '2018-09-07 22:08:53'),
(14, '<NAME>', 'SK', NULL, NULL, NULL, NULL, NULL, '2018-09-08 07:10:11', '2018-09-08 07:10:11'),
(15, '<NAME>', 'SK', NULL, NULL, NULL, NULL, NULL, '2018-09-08 07:11:52', '2018-09-08 07:11:52'),
(16, '<NAME>', 'SK', NULL, NULL, NULL, NULL, NULL, '2018-09-08 07:12:45', '2018-09-08 07:12:45'),
(17, '<NAME>', 'SK', NULL, NULL, NULL, NULL, NULL, '2018-09-08 07:13:14', '2018-09-08 07:13:14'),
(18, '<NAME>', 'SK', NULL, NULL, NULL, NULL, NULL, '2018-09-08 07:13:25', '2018-09-08 07:13:25'),
(19, '<NAME>', 'Hd', NULL, NULL, NULL, NULL, NULL, '2018-09-08 10:34:36', '2018-09-08 10:34:36'),
(20, '<NAME>', 'Hd', NULL, NULL, NULL, NULL, NULL, '2018-09-08 12:02:15', '2018-09-08 12:02:15');
-- --------------------------------------------------------
--
-- Table structure for table `sktd_character_gallery`
--
DROP TABLE IF EXISTS `sktd_character_gallery`;
CREATE TABLE IF NOT EXISTS `sktd_character_gallery` (
`character_gallery_id` int(11) NOT NULL AUTO_INCREMENT,
`character_gallery_character_id` int(11) NOT NULL,
`character_gallery_media_id` int(11) NOT NULL,
`character_gallery_created` datetime DEFAULT CURRENT_TIMESTAMP,
`character_gallery_modified` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`character_gallery_id`),
KEY `fk_sktd_character_gallery_sktd_media1_idx` (`character_gallery_media_id`),
KEY `fk_sktd_character_gallery_sktd_characters1_idx` (`character_gallery_character_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
-- --------------------------------------------------------
--
-- Table structure for table `sktd_log`
--
DROP TABLE IF EXISTS `sktd_log`;
CREATE TABLE IF NOT EXISTS `sktd_log` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`type` int(11) NOT NULL,
`event` text COLLATE utf8mb4_unicode_520_ci NOT NULL,
`url` varchar(2000) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`file` varchar(2000) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`line` int(11) NOT NULL,
`error_type` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`trace` text COLLATE utf8mb4_unicode_520_ci,
`request_data` text COLLATE utf8mb4_unicode_520_ci,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
--
-- Dumping data for table `sktd_log`
--
INSERT INTO `sktd_log` (`id`, `date`, `type`, `event`, `url`, `file`, `line`, `error_type`, `trace`, `request_data`) VALUES
(1, '2018-09-09 08:54:14', 3, 'a sample exception preview', 'http://apigility.demo.application.local/error-preview', 'C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\samsonasik\\error-hero-module\\src\\Controller\\ErrorPreviewController.php', 13, 'Exception', '#0 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-mvc\\src\\Controller\\AbstractActionController.php(78): ErrorHeroModule\\Controller\\ErrorPreviewController->exceptionAction()\n#1 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-eventmanager\\src\\EventManager.php(322): Zend\\Mvc\\Controller\\AbstractActionController->onDispatch(Object(Zend\\Mvc\\MvcEvent))\n#2 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-eventmanager\\src\\EventManager.php(179): Zend\\EventManager\\EventManager->triggerListeners(Object(Zend\\Mvc\\MvcEvent), Object(Closure))\n#3 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-mvc\\src\\Controller\\AbstractController.php(106): Zend\\EventManager\\EventManager->triggerEventUntil(Object(Closure), Object(Zend\\Mvc\\MvcEvent))\n#4 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-mvc\\src\\DispatchListener.php(138): Zend\\Mvc\\Controller\\AbstractController->dispatch(Object(ZF\\ContentNegotiation\\Request), Object(Zend\\Http\\PhpEnvironment\\Response))\n#5 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-eventmanager\\src\\EventManager.php(322): Zend\\Mvc\\DispatchListener->onDispatch(Object(Zend\\Mvc\\MvcEvent))\n#6 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-eventmanager\\src\\EventManager.php(179): Zend\\EventManager\\EventManager->triggerListeners(Object(Zend\\Mvc\\MvcEvent), Object(Closure))\n#7 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-mvc\\src\\Application.php(332): Zend\\EventManager\\EventManager->triggerEventUntil(Object(Closure), Object(Zend\\Mvc\\MvcEvent))\n#8 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\public\\index.php(59): Zend\\Mvc\\Application->run()\n#9 {main}', 'array (\n \'request_method\' => \'GET\',\n \'query_data\' => \n array (\n ),\n \'body_data\' => \n array (\n ),\n \'raw_data\' => \'\',\n \'files_data\' => \n array (\n ),\n \'cookie_data\' => \n array (\n ),\n)'),
(2, '2018-09-09 08:54:14', 3, 'Zend\\View\\Renderer\\PhpRenderer::render: Unable to render template \"404\"; resolver could not resolve to a file', 'http://apigility.demo.application.local/favicon.ico', 'C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-view\\src\\Renderer\\PhpRenderer.php', 498, 'Zend\\View\\Exception\\RuntimeException', '#0 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-view\\src\\View.php(207): Zend\\View\\Renderer\\PhpRenderer->render(NULL)\n#1 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-view\\src\\View.php(236): Zend\\View\\View->render(Object(Zend\\View\\Model\\ViewModel))\n#2 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-view\\src\\View.php(200): Zend\\View\\View->renderChildren(Object(Zend\\View\\Model\\ViewModel))\n#3 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-mvc\\src\\View\\Http\\DefaultRenderingStrategy.php(105): Zend\\View\\View->render(Object(Zend\\View\\Model\\ViewModel))\n#4 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-eventmanager\\src\\EventManager.php(322): Zend\\Mvc\\View\\Http\\DefaultRenderingStrategy->render(Object(Zend\\Mvc\\MvcEvent))\n#5 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-eventmanager\\src\\EventManager.php(171): Zend\\EventManager\\EventManager->triggerListeners(Object(Zend\\Mvc\\MvcEvent))\n#6 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-mvc\\src\\Application.php(367): Zend\\EventManager\\EventManager->triggerEvent(Object(Zend\\Mvc\\MvcEvent))\n#7 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-mvc\\src\\Application.php(326): Zend\\Mvc\\Application->completeRequest(Object(Zend\\Mvc\\MvcEvent))\n#8 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\public\\index.php(59): Zend\\Mvc\\Application->run()\n#9 {main}', 'array (\n \'request_method\' => \'GET\',\n \'query_data\' => \n array (\n ),\n \'body_data\' => \n array (\n ),\n \'raw_data\' => \'\',\n \'files_data\' => \n array (\n ),\n \'cookie_data\' => \n array (\n ),\n)'),
(3, '2018-09-09 13:18:29', 3, 'Argument 2 passed to MediaManager\\Service\\MediaService::__construct() must be an instance of MediaManager\\Model\\MediaTable, string given, called in C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\module\\MediaManager\\src\\Module.php on line 30', 'http://apigility.demo.application.local/characters', 'C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\module\\MediaManager\\src\\Service\\MediaService.php', 14, 'TypeError', '#0 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\module\\MediaManager\\src\\Module.php(30): MediaManager\\Service\\MediaService->__construct(Array, \'MediaManager\\\\Mo...\')\n#1 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-servicemanager\\src\\ServiceManager.php(764): MediaManager\\Module->MediaManager\\{closure}(Object(Zend\\ServiceManager\\ServiceManager), \'MediaManager\\\\Se...\', NULL)\n#2 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-servicemanager\\src\\ServiceManager.php(200): Zend\\ServiceManager\\ServiceManager->doCreate(\'MediaManager\\\\Se...\')\n#3 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\module\\ComicsApi\\Module.php(33): Zend\\ServiceManager\\ServiceManager->get(\'MediaManager\\\\Se...\')\n#4 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-servicemanager\\src\\ServiceManager.php(764): ComicsApi\\Module->ComicsApi\\{closure}(Object(Zend\\ServiceManager\\ServiceManager), \'ComicsApi\\\\V1\\\\Re...\', NULL)\n#5 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-servicemanager\\src\\ServiceManager.php(200): Zend\\ServiceManager\\ServiceManager->doCreate(\'ComicsApi\\\\V1\\\\Re...\')\n#6 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\module\\ComicsApi\\src\\V1\\Rest\\Characters\\CharactersResourceFactory.php(10): Zend\\ServiceManager\\ServiceManager->get(\'ComicsApi\\\\V1\\\\Re...\')\n#7 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-servicemanager\\src\\ServiceManager.php(764): ComicsApi\\V1\\Rest\\Characters\\CharactersResourceFactory->__invoke(Object(Zend\\ServiceManager\\ServiceManager), \'ComicsApi\\\\V1\\\\Re...\', NULL)\n#8 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-servicemanager\\src\\ServiceManager.php(200): Zend\\ServiceManager\\ServiceManager->doCreate(\'ComicsApi\\\\V1\\\\Re...\')\n#9 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zfcampus\\zf-rest\\src\\Factory\\RestControllerFactory.php(118): Zend\\ServiceManager\\ServiceManager->get(\'ComicsApi\\\\V1\\\\Re...\')\n#10 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-servicemanager\\src\\ServiceManager.php(764): ZF\\Rest\\Factory\\RestControllerFactory->__invoke(Object(Zend\\ServiceManager\\ServiceManager), \'ComicsApi\\\\V1\\\\Re...\', NULL)\n#11 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-servicemanager\\src\\ServiceManager.php(200): Zend\\ServiceManager\\ServiceManager->doCreate(\'ComicsApi\\\\V1\\\\Re...\')\n#12 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-servicemanager\\src\\AbstractPluginManager.php(141): Zend\\ServiceManager\\ServiceManager->get(\'ComicsApi\\\\V1\\\\Re...\')\n#13 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-mvc\\src\\DispatchListener.php(102): Zend\\ServiceManager\\AbstractPluginManager->get(\'ComicsApi\\\\V1\\\\Re...\')\n#14 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-eventmanager\\src\\EventManager.php(322): Zend\\Mvc\\DispatchListener->onDispatch(Object(Zend\\Mvc\\MvcEvent))\n#15 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-eventmanager\\src\\EventManager.php(179): Zend\\EventManager\\EventManager->triggerListeners(Object(Zend\\Mvc\\MvcEvent), Object(Closure))\n#16 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\vendor\\zendframework\\zend-mvc\\src\\Application.php(332): Zend\\EventManager\\EventManager->triggerEventUntil(Object(Closure), Object(Zend\\Mvc\\MvcEvent))\n#17 C:\\wamp\\www\\projects\\zend\\apigility-demo-application\\public\\index.php(59): Zend\\Mvc\\Application->run()\n#18 {main}', 'array (\n \'request_method\' => \'POST\',\n \'query_data\' => \n array (\n ),\n \'body_data\' => \n array (\n \'character_name\' => \'Hell Boy\',\n \'character_real_name\' => \'Hd\',\n \'ddffff\' => \'dddd\',\n ),\n \'raw_data\' => \'\',\n \'files_data\' => \n array (\n \'character_picture\' => \n array (\n \'name\' => \'WIN_20180322_22_18_37_Pro.jpg\',\n \'type\' => \'image/jpeg\',\n \'tmp_name\' => \'C:\\\\wamp\\\\tmp\\\\phpF684.tmp\',\n \'error\' => 0,\n \'size\' => 181111,\n ),\n ),\n \'cookie_data\' => \n array (\n ),\n)');
-- --------------------------------------------------------
--
-- Table structure for table `sktd_media`
--
DROP TABLE IF EXISTS `sktd_media`;
CREATE TABLE IF NOT EXISTS `sktd_media` (
`sktd_media_id` int(11) NOT NULL AUTO_INCREMENT,
`sktd_media_name` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`sktd_media_path` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`sktd_media_type` varchar(45) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`sktd_media_created` datetime DEFAULT CURRENT_TIMESTAMP,
`sktd_media_modified` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`sktd_media_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
-- --------------------------------------------------------
--
-- Table structure for table `sktd_oauth_access_tokens`
--
DROP TABLE IF EXISTS `sktd_oauth_access_tokens`;
CREATE TABLE IF NOT EXISTS `sktd_oauth_access_tokens` (
`access_token` varchar(40) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`client_id` varchar(80) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`user_id` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`expires` timestamp NOT NULL,
`scope` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
PRIMARY KEY (`access_token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
--
-- Dumping data for table `sktd_oauth_access_tokens`
--
INSERT INTO `sktd_oauth_access_tokens` (`access_token`, `client_id`, `user_id`, `expires`, `scope`) VALUES
('80b6cf8a4ccdefaf8f540f0c61fe1b23d568a428', 'testclient', NULL, '2018-09-09 22:39:45', NULL),
('b5f5688e9b4419f80448617beeabbbe92aa18c84', 'testclient', NULL, '2018-09-12 22:52:39', NULL),
('dd4498212178095adc3118a6c30830e4cd0510f3', 'testclient', NULL, '2018-09-12 22:13:50', NULL),
('e7075845c5fb6d9cc8d4223885f30db3aa35a644', 'testclient', NULL, '2018-09-09 22:36:29', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `sktd_oauth_authorization_codes`
--
DROP TABLE IF EXISTS `sktd_oauth_authorization_codes`;
CREATE TABLE IF NOT EXISTS `sktd_oauth_authorization_codes` (
`authorization_code` varchar(40) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`client_id` varchar(80) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`user_id` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`redirect_uri` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`expires` timestamp NOT NULL,
`scope` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`id_token` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
PRIMARY KEY (`authorization_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
--
-- Dumping data for table `sktd_oauth_authorization_codes`
--
INSERT INTO `sktd_oauth_authorization_codes` (`authorization_code`, `client_id`, `user_id`, `redirect_uri`, `expires`, `scope`, `id_token`) VALUES
('<KEY>', 'testclient', NULL, '/oauth/receivecode', '2018-09-09 12:53:06', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `sktd_oauth_clients`
--
DROP TABLE IF EXISTS `sktd_oauth_clients`;
CREATE TABLE IF NOT EXISTS `sktd_oauth_clients` (
`client_id` varchar(80) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`client_secret` varchar(80) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`redirect_uri` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`grant_types` varchar(80) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`scope` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`user_id` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
PRIMARY KEY (`client_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
--
-- Dumping data for table `sktd_oauth_clients`
--
INSERT INTO `sktd_oauth_clients` (`client_id`, `client_secret`, `redirect_uri`, `grant_types`, `scope`, `user_id`) VALUES
('testclient', <PASSWORD>', '/oauth/receivecode', NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `sktd_oauth_jwt`
--
DROP TABLE IF EXISTS `sktd_oauth_jwt`;
CREATE TABLE IF NOT EXISTS `sktd_oauth_jwt` (
`client_id` varchar(80) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`subject` varchar(80) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`public_key` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
PRIMARY KEY (`client_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
-- --------------------------------------------------------
--
-- Table structure for table `sktd_oauth_public_keys`
--
DROP TABLE IF EXISTS `sktd_oauth_public_keys`;
CREATE TABLE IF NOT EXISTS `sktd_oauth_public_keys` (
`client_id` varchar(80) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`public_key` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`private_key` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`encryption_algorithm` varchar(80) COLLATE utf8mb4_unicode_520_ci DEFAULT 'RS256'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
--
-- Dumping data for table `sktd_oauth_public_keys`
--
INSERT INTO `sktd_oauth_public_keys` (`client_id`, `public_key`, `private_key`, `encryption_algorithm`) VALUES
(NULL, '...', '...', 'RS256'),
('ClientID_One', '...', '...', 'RS256'),
('ClientID_Two', '...', '...', 'RS256'),
('testclient', 'qqq', 'aaa', 'RS256'),
('sandeep', 'sandeep', 'sandeep', 'HS256');
-- --------------------------------------------------------
--
-- Table structure for table `sktd_oauth_refresh_tokens`
--
DROP TABLE IF EXISTS `sktd_oauth_refresh_tokens`;
CREATE TABLE IF NOT EXISTS `sktd_oauth_refresh_tokens` (
`refresh_token` varchar(40) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`client_id` varchar(80) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`user_id` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`expires` timestamp NOT NULL,
`scope` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
PRIMARY KEY (`refresh_token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
-- --------------------------------------------------------
--
-- Table structure for table `sktd_oauth_scopes`
--
DROP TABLE IF EXISTS `sktd_oauth_scopes`;
CREATE TABLE IF NOT EXISTS `sktd_oauth_scopes` (
`type` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT 'supported',
`scope` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`client_id` varchar(80) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`is_default` smallint(6) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
-- --------------------------------------------------------
--
-- Table structure for table `sktd_oauth_users`
--
DROP TABLE IF EXISTS `sktd_oauth_users`;
CREATE TABLE IF NOT EXISTS `sktd_oauth_users` (
`username` varchar(254) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`password` varchar(254) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`first_name` varchar(254) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`last_name` varchar(254) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
--
-- Dumping data for table `sktd_oauth_users`
--
INSERT INTO `sktd_oauth_users` (`username`, `password`, `first_name`, `last_name`) VALUES
('testuser', '$2y$14$f3qml4G2hG6sxM26VMq.geDYbsS089IBtVJ7DlD05BoViS9PFykE2', 'Test', 'User');
-- --------------------------------------------------------
--
-- Table structure for table `sktd_publishers`
--
DROP TABLE IF EXISTS `sktd_publishers`;
CREATE TABLE IF NOT EXISTS `sktd_publishers` (
`publisher_id` int(11) NOT NULL AUTO_INCREMENT,
`publisher_name` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
`publisher_picture_media_id` int(11) DEFAULT NULL,
`publisher_created` datetime DEFAULT CURRENT_TIMESTAMP,
`publisher_modified` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`publisher_id`),
KEY `fk_sktd_publishers_sktd_media1_idx` (`publisher_picture_media_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
--
-- Dumping data for table `sktd_publishers`
--
INSERT INTO `sktd_publishers` (`publisher_id`, `publisher_name`, `publisher_picture_media_id`, `publisher_created`, `publisher_modified`) VALUES
(1, 'Marvel Comics', NULL, '2018-09-08 08:23:05', '2018-09-08 08:23:05');
--
-- Constraints for dumped tables
--
--
-- Constraints for table `sktd_characters`
--
ALTER TABLE `sktd_characters`
ADD CONSTRAINT `fk_sktd_characters_sktd_media1` FOREIGN KEY (`character_picture_media_id`) REFERENCES `sktd_media` (`sktd_media_id`) ON DELETE SET NULL ON UPDATE CASCADE,
ADD CONSTRAINT `fk_sktd_characters_sktd_publishers1` FOREIGN KEY (`character_publisher_id`) REFERENCES `sktd_publishers` (`publisher_id`) ON DELETE SET NULL;
--
-- Constraints for table `sktd_character_gallery`
--
ALTER TABLE `sktd_character_gallery`
ADD CONSTRAINT `fk_sktd_character_gallery_sktd_characters1` FOREIGN KEY (`character_gallery_character_id`) REFERENCES `sktd_characters` (`character_id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `fk_sktd_character_gallery_sktd_media1` FOREIGN KEY (`character_gallery_media_id`) REFERENCES `sktd_media` (`sktd_media_id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `sktd_publishers`
--
ALTER TABLE `sktd_publishers`
ADD CONSTRAINT `fk_sktd_publishers_sktd_media1` FOREIGN KEY (`publisher_picture_media_id`) REFERENCES `sktd_media` (`sktd_media_id`) ON DELETE SET NULL ON UPDATE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<filename>src/test/suite/agg.sql
---------------------------------------------------------------------------
--
-- agg.sql-
-- test aggregates
--
--
-- Copyright (c) 1994-5, Regents of the University of California
--
-- $Id: agg.sql,v 1.1.1.1 1996/07/09 06:22:30 scrappy Exp $
--
---------------------------------------------------------------------------
create table agga (a integer);
create table aggb (b smallint);
create table aggc (c float);
create table aggd (d float8);
insert into agga values (1);
insert into agga values (1);
insert into agga values (4);
insert into agga values (3);
select * from agga;
insert into aggb values (10);
insert into aggb values (45);
insert into aggb values (10);
insert into aggb values (30);
select * from aggb;
insert into aggc values (210.3);
insert into aggc values (4.45);
insert into aggc values (310);
insert into aggc values (310);
select * from aggc;
insert into aggd values ('-210.3'::float8);
insert into aggd values ('210.3'::float8);
insert into aggd values ('4.45'::float8);
insert into aggd values ('10310.33336'::float8);
insert into aggd values ('10310.33335'::float8);
select * from aggd;
select count(*) from agga;
select count(*), avg(a) from agga;
select avg(a), max(a) from agga;
select sum(a), max(a) from agga;
select avg(c) from aggc;
select sum(c) from aggc;
select max(c) from aggc;
select min(c) from aggc;
select count(*), avg(a), sum(a), max(a), min(a) from agga;
select count(*), avg(b), sum(b), max(b), min(b) from aggb;
select count(*), avg(c), sum(c), max(c), min(c) from aggc;
select count(*), avg(d), sum(d), max(d), min(d) from aggd;
create table agge (e integer);
-- aggregates on an empty table
select count(*) from agge;
select avg(e) from agge;
select sum(e) from agge;
select sum(e) from agge;
select min(e) from agge;
create table aggf (x int, y int);
insert into aggf (x) values (1);
insert into aggf (y) values (2);
insert into aggf values (10, 20);
select * from aggf;
select count(*) from aggf;
select count(x), count(y) from aggf;
select avg(x), avg(y) from aggf;
drop table agga;
drop table aggb;
drop table aggc;
drop table aggd;
drop table agge;
drop table aggf;
|
<gh_stars>0
/****** Object: Table [dbo].[Bols] Script Date: 9/6/2020 3:53:16 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Bols](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Po] [nvarchar](max) NULL,
[SpecialInstruction] [nvarchar](max) NULL,
[ItemsDesciptions] [nvarchar](max) NULL,
[PackaginTypeId] [int] NULL,
[ReceiverId] [int] NULL,
[ShipmentId] [int] NULL,
CONSTRAINT [PK_Bols] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object: Table [dbo].[Carriers] Script Date: 9/6/2020 3:53:16 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Carriers](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Name] [nvarchar](max) NULL,
[Scac] [nvarchar](max) NULL,
[Mc] [bigint] NOT NULL,
[Dot] [bigint] NOT NULL,
[Fein] [bigint] NOT NULL,
CONSTRAINT [PK_Carriers] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object: Table [dbo].[Customers] Script Date: 9/6/2020 3:53:16 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Customers](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Name] [nvarchar](max) NULL,
CONSTRAINT [PK_Customers] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object: Table [dbo].[Orders] Script Date: 9/6/2020 3:53:16 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Orders](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Number] [nvarchar](max) NULL,
[Packages] [int] NOT NULL,
[Weight] [decimal](18, 2) NOT NULL,
[Pallet] [bit] NOT NULL,
[Slip] [bit] NOT NULL,
[ShippperInfo] [nvarchar](max) NULL,
[CustomerId] [int] NULL,
[BolsId] [int] NULL,
CONSTRAINT [PK_Orders] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object: Table [dbo].[PackaginTypes] Script Date: 9/6/2020 3:53:16 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PackaginTypes](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Name] [nvarchar](max) NULL,
[Heigth] [decimal](18, 2) NOT NULL,
[Width] [decimal](18, 2) NOT NULL,
[Length] [decimal](18, 2) NOT NULL,
[Description] [nvarchar](max) NULL,
CONSTRAINT [PK_PackaginTypes] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object: Table [dbo].[Receivers] Script Date: 9/6/2020 3:53:16 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Receivers](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Name] [nvarchar](max) NULL,
CONSTRAINT [PK_Receivers] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object: Table [dbo].[Shipments] Script Date: 9/6/2020 3:53:16 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Shipments](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Date] [datetime2](7) NULL,
[OriginCountry] [nvarchar](max) NULL,
[OriginState] [nvarchar](max) NULL,
[OriginCity] [nvarchar](max) NULL,
[DestinationCountry] [nvarchar](max) NULL,
[DestinationState] [nvarchar](max) NULL,
[DestinationCity] [nvarchar](max) NULL,
[PickupDate] [datetime2](7) NULL,
[DeliveryDate] [datetime2](7) NULL,
[Status] [nvarchar](max) NULL,
[Rate] [decimal](18, 2) NOT NULL,
[CarrierId] [int] NULL,
CONSTRAINT [PK_Shipments] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[Bols] WITH CHECK ADD CONSTRAINT [FK_Bols_PackaginTypes_PackaginTypeId] FOREIGN KEY([PackaginTypeId])
REFERENCES [dbo].[PackaginTypes] ([Id])
GO
ALTER TABLE [dbo].[Bols] CHECK CONSTRAINT [FK_Bols_PackaginTypes_PackaginTypeId]
GO
ALTER TABLE [dbo].[Bols] WITH CHECK ADD CONSTRAINT [FK_Bols_Receivers_ReceiverId] FOREIGN KEY([ReceiverId])
REFERENCES [dbo].[Receivers] ([Id])
GO
ALTER TABLE [dbo].[Bols] CHECK CONSTRAINT [FK_Bols_Receivers_ReceiverId]
GO
ALTER TABLE [dbo].[Bols] WITH CHECK ADD CONSTRAINT [FK_Bols_Shipments_ShipmentId] FOREIGN KEY([ShipmentId])
REFERENCES [dbo].[Shipments] ([Id])
GO
ALTER TABLE [dbo].[Bols] CHECK CONSTRAINT [FK_Bols_Shipments_ShipmentId]
GO
ALTER TABLE [dbo].[Orders] WITH CHECK ADD CONSTRAINT [FK_Orders_Bols_BolsId] FOREIGN KEY([BolsId])
REFERENCES [dbo].[Bols] ([Id])
GO
ALTER TABLE [dbo].[Orders] CHECK CONSTRAINT [FK_Orders_Bols_BolsId]
GO
ALTER TABLE [dbo].[Orders] WITH CHECK ADD CONSTRAINT [FK_Orders_Customers_CustomerId] FOREIGN KEY([CustomerId])
REFERENCES [dbo].[Customers] ([Id])
GO
ALTER TABLE [dbo].[Orders] CHECK CONSTRAINT [FK_Orders_Customers_CustomerId]
GO
ALTER TABLE [dbo].[Shipments] WITH CHECK ADD CONSTRAINT [FK_Shipments_Carriers_CarrierId] FOREIGN KEY([CarrierId])
REFERENCES [dbo].[Carriers] ([Id])
GO
ALTER TABLE [dbo].[Shipments] CHECK CONSTRAINT [FK_Shipments_Carriers_CarrierId]
GO
|
ALTER TABLE "public"."hospital_users" DROP COLUMN "region";
|
CREATE DATABASE IF NOT EXISTS nest;
USE nest; |
CREATE TABLE dbo.BudgetGroups
(
BudgetGroupID int IDENTITY(1, 1) NOT NULL,
BudgetGroupName varchar(50) NOT NULL,
BudgetGroupDesc varchar(255) NOT NULL,
CONSTRAINT PK_BudgetGroups PRIMARY KEY CLUSTERED(BudgetGroupID)
);
|
<filename>DB/DB-sisesgepen.sql
-- MySQL Script generated by MySQL Workbench
-- Mon Jan 27 14:05:54 2020
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema sisesgepento
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema sisesgepento
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `sisesgepento` DEFAULT CHARACTER SET utf8 ;
USE `sisesgepento` ;
-- -----------------------------------------------------
-- Table `sisesgepento`.`usuario`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `sisesgepento`.`usuario` (
`idusuario` INT NOT NULL AUTO_INCREMENT,
`nome` VARCHAR(45) NULL,
`tipo` VARCHAR(50) NULL,
`senha` VARCHAR(45) NULL,
`email` VARCHAR(45) NULL,
PRIMARY KEY (`idusuario`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `sisesgepento`.`aluno`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `sisesgepento`.`aluno` (
`cpf` VARCHAR(50) NOT NULL,
`nome` VARCHAR(100) NULL,
`email` VARCHAR(45) NULL,
`telefone` VARCHAR(45) NULL,
PRIMARY KEY (`cpf`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `sisesgepento`.`curso`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `sisesgepento`.`curso` (
`idcurso` INT NOT NULL AUTO_INCREMENT,
`ativo` TINYINT NULL,
`data` VARCHAR(45) NULL,
`nome` VARCHAR(45) NULL,
PRIMARY KEY (`idcurso`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `sisesgepento`.`disciplina`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `sisesgepento`.`disciplina` (
`iddisciplina` INT NOT NULL AUTO_INCREMENT,
`nome` VARCHAR(45) NULL,
`ch` INT NULL,
PRIMARY KEY (`iddisciplina`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `sisesgepento`.`professor`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `sisesgepento`.`professor` (
`cpf` INT NOT NULL,
`nome` VARCHAR(45) NULL,
`disciplina_iddisciplina` INT NOT NULL,
PRIMARY KEY (`cpf`, `disciplina_iddisciplina`),
INDEX `fk_professor_disciplina1_idx` (`disciplina_iddisciplina` ASC),
CONSTRAINT `fk_professor_disciplina1`
FOREIGN KEY (`disciplina_iddisciplina`)
REFERENCES `sisesgepento`.`disciplina` (`iddisciplina`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `sisesgepento`.`aluno_has_curso`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `sisesgepento`.`aluno_has_curso` (
`aluno_cpf` VARCHAR(50) NOT NULL,
`curso_idcurso` INT NOT NULL,
PRIMARY KEY (`aluno_cpf`, `curso_idcurso`),
INDEX `fk_aluno_has_curso_curso1_idx` (`curso_idcurso` ASC),
INDEX `fk_aluno_has_curso_aluno_idx` (`aluno_cpf` ASC),
CONSTRAINT `fk_aluno_has_curso_aluno`
FOREIGN KEY (`aluno_cpf`)
REFERENCES `sisesgepento`.`aluno` (`cpf`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_aluno_has_curso_curso1`
FOREIGN KEY (`curso_idcurso`)
REFERENCES `sisesgepento`.`curso` (`idcurso`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `sisesgepento`.`curso_has_disciplina`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `sisesgepento`.`curso_has_disciplina` (
`curso_idcurso` INT NOT NULL,
`disciplina_iddisciplina` INT NOT NULL,
PRIMARY KEY (`curso_idcurso`, `disciplina_iddisciplina`),
INDEX `fk_curso_has_disciplina_disciplina1_idx` (`disciplina_iddisciplina` ASC),
INDEX `fk_curso_has_disciplina_curso1_idx` (`curso_idcurso` ASC),
CONSTRAINT `fk_curso_has_disciplina_curso1`
FOREIGN KEY (`curso_idcurso`)
REFERENCES `sisesgepento`.`curso` (`idcurso`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_curso_has_disciplina_disciplina1`
FOREIGN KEY (`disciplina_iddisciplina`)
REFERENCES `sisesgepento`.`disciplina` (`iddisciplina`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `sisesgepento`.`curso_has_professor`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `sisesgepento`.`curso_has_professor` (
`curso_idcurso` INT NOT NULL,
`professor_cpf` INT NOT NULL,
PRIMARY KEY (`curso_idcurso`, `professor_cpf`),
INDEX `fk_curso_has_professor_professor1_idx` (`professor_cpf` ASC),
INDEX `fk_curso_has_professor_curso1_idx` (`curso_idcurso` ASC),
CONSTRAINT `fk_curso_has_professor_curso1`
FOREIGN KEY (`curso_idcurso`)
REFERENCES `sisesgepento`.`curso` (`idcurso`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_curso_has_professor_professor1`
FOREIGN KEY (`professor_cpf`)
REFERENCES `sisesgepento`.`professor` (`cpf`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
DECLARE @ROWS_TO_INSERT INT = 331
-- CREATE TABLE [dbo].[ImpactValue]
CREATE TABLE [dbo].[ImpactValue](
[ImpactId] [uniqueidentifier] NOT NULL,
[ImpactValueTypeId] [int] NOT NULL,
[ImpactPeriodId] [int] NOT NULL,
[Date] [date] NOT NULL,
[ValidFrom] [datetime2](7) GENERATED ALWAYS AS ROW START NOT NULL,
[ValidTo] [datetime2](7) GENERATED ALWAYS AS ROW END NOT NULL,
CONSTRAINT [PK_ImpactValue] PRIMARY KEY NONCLUSTERED
(
[ImpactId] ASC,
[ImpactValueTypeId] ASC,
[Date] ASC,
[ImpactPeriodId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
PERIOD FOR SYSTEM_TIME ([ValidFrom], [ValidTo])
) ON [PRIMARY]
ALTER TABLE [dbo].[ImpactValue] ADD CONSTRAINT [DF_ImpactValue_ValidFrom] DEFAULT (CONVERT([datetime2],'0001-01-01')) FOR [ValidFrom]
ALTER TABLE [dbo].[ImpactValue] ADD CONSTRAINT [DF_ImpactValue_ValidTo] DEFAULT (CONVERT([datetime2],'9999-12-31 23:59:59.9999999')) FOR [ValidTo]
-- CREATE TABLE [dbo].[ImpactValueHistory]
CREATE TABLE [dbo].[ImpactValueHistory](
[ImpactId] [uniqueidentifier] NOT NULL,
[ImpactValueTypeId] [int] NOT NULL,
[ImpactPeriodId] [int] NOT NULL,
[Date] [date] NOT NULL,
[ValidFrom] [datetime2](7) NOT NULL,
[ValidTo] [datetime2](7) NOT NULL,
) ON [PRIMARY]
ALTER TABLE [dbo].[ImpactValueHistory] ADD CONSTRAINT [DF_ImpactValueHistory_ValidFrom] DEFAULT (CONVERT([datetime2],'0001-01-01')) FOR [ValidFrom]
ALTER TABLE [dbo].[ImpactValueHistory] ADD CONSTRAINT [DF_ImpactValueHistory_ValidTo] DEFAULT (CONVERT([datetime2],'9999-12-31 23:59:59.9999999')) FOR [ValidTo]
-- CREATE INDEX ON TABLE [dbo].[ImpactValueHistory]
CREATE NONCLUSTERED INDEX [IX_ImpactValueHistory] ON [dbo].[ImpactValueHistory]
(
[ValidFrom] ASC,
[ValidTo] ASC,
[ImpactId] ASC,
[ImpactValueTypeId] ASC,
[Date] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
-- ENABLE SYSTEM_VERSIONING
ALTER TABLE [dbo].[ImpactValue]
SET
(SYSTEM_VERSIONING = ON (HISTORY_TABLE = [dbo].[ImpactValueHistory] , DATA_CONSISTENCY_CHECK = ON ))
-- CREATE SOME RANDOM DATA
DROP TABLE IF EXISTS [#RandomData]
;WITH [Number]
AS
(
SELECT
TOP(@ROWS_TO_INSERT) -- if you decrease by 1 everything is working
ROW_NUMBER() OVER(ORDER BY [name]) AS [Number]
FROM [sys].[all_columns]
)
SELECT
NEWID() AS [ImpactId],
1 AS [ImpactValueTypeId],
2 AS [ImpactPeriodId],
DATEADD(DAY, [Number].[Number], GETDATE()) AS [Date]
INTO [#RandomData]
FROM [Number]
SELECT * FROM [#RandomData]
-- TRY TO INSERT RANDOM DATA TO TABLE
-- MERGE INTO IS NOT WORKING
MERGE [dbo].[ImpactValue] AS target
USING (SELECT * FROM [#RandomData]) AS source ([ImpactId], [ImpactValueTypeId], [ImpactPeriodId], [Date])
ON 1=0 -- the used pattern here is from EF Core 3
WHEN NOT MATCHED THEN
INSERT ([ImpactId], [ImpactValueTypeId], [ImpactPeriodId], [Date])
VALUES ([ImpactId], [ImpactValueTypeId], [ImpactPeriodId], [Date])
;
---- INSERT INTO IS WORKING
--INSERT INTO [dbo].[ImpactValue]([ImpactId], [ImpactValueTypeId], [ImpactPeriodId], [Date])
-- SELECT [ImpactId], [ImpactValueTypeId], [ImpactPeriodId], [Date] FROM [#RandomData]
|
CREATE TABLE awd.admin
(
id INT(11) PRIMARY KEY NOT NULL AUTO_INCREMENT,
first_name VARCHAR(50) NOT NULL,
last_name VARCHAR(50) NOT NULL,
telnumber INT(11) NOT NULL
);
CREATE TABLE awd.candidacy
(
id INT(11) PRIMARY KEY NOT NULL AUTO_INCREMENT,
internship_fk INT(11) NOT NULL,
student_fk INT(11) NOT NULL,
status INT(11) DEFAULT '0'
COMMENT '0 = pending, 1 = rejected, 2 = accepted',
n_cfu INT(11) NOT NULL,
first_name_referent VARCHAR(50) NOT NULL,
last_name_referent VARCHAR(50) NOT NULL,
email_referent VARCHAR(50) NOT NULL,
start_date DATE,
end_date DATE
);
INSERT INTO awd.candidacy (id, internship_fk, student_fk, status, n_cfu, first_name_referent, last_name_referent, email_referent, start_date, end_date)
VALUES (1, 1, 4, 2, 5, 'Giuseppe ', '<NAME>', '<EMAIL>', '2018-07-01', '2018-08-31');
INSERT INTO awd.candidacy (id, internship_fk, student_fk, status, n_cfu, first_name_referent, last_name_referent, email_referent, start_date, end_date)
VALUES (2, 2, 6, 0, 6, 'Claudio ', 'Arbib', '<EMAIL>', '2018-07-01', '2018-07-31');
CREATE TABLE awd.company
(
id INT(11) PRIMARY KEY NOT NULL,
social_region VARCHAR(50) NOT NULL,
legal_address VARCHAR(50) NOT NULL,
piva VARCHAR(50) NOT NULL,
lawyer_first_name VARCHAR(50) NOT NULL,
lawyer_last_name VARCHAR(50) NOT NULL,
person_first_name VARCHAR(50) NOT NULL,
person_last_name VARCHAR(50) NOT NULL,
person_telnumber INT(11) NOT NULL,
legal_forum VARCHAR(50) NOT NULL,
active TINYINT(1) DEFAULT '0' NOT NULL,
visible TINYINT(1) DEFAULT '0' NOT NULL
);
INSERT INTO awd.company (id, social_region, legal_address, piva, lawyer_first_name, lawyer_last_name, person_first_name, person_last_name, person_telnumber, legal_forum, active, visible)
VALUES
(5, 'Programmign4u', 'Avezzano', 'fjedfkjh857654thvfbu', 'Franco', 'Verdi', 'Luigi', 'Cerone', 345679954, 'Avezzano',
1, 1);
INSERT INTO awd.company (id, social_region, legal_address, piva, lawyer_first_name, lawyer_last_name, person_first_name, person_last_name, person_telnumber, legal_forum, active, visible)
VALUES (7, 'BoringCompany', 'L''aquila', 'fhrihgfirgf366576546', 'Giuseppe', 'Rossi', 'Danilo', 'Rosati', 347567895,
'L''Aquila', 1, 1);
CREATE TABLE awd.credential
(
id INT(11) PRIMARY KEY NOT NULL AUTO_INCREMENT,
email VARCHAR(50) NOT NULL,
salt VARBINARY(128) NOT NULL,
hashed_psw VARCHAR(256) NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
last_seen TIMESTAMP DEFAULT '0000-00-00 00:00:00' NOT NULL,
token VARCHAR(50),
expiry TIMESTAMP,
user_type INT(11) NOT NULL
);
CREATE UNIQUE INDEX `credential;_email_uindex`
ON awd.credential (email);
INSERT INTO awd.credential (id, email, salt, hashed_psw, created_at, last_seen, token, expiry, user_type) VALUES
(4, '<EMAIL>', 0x878B4AAC25AC56ED86FEE69B805F454A, '1933748E1E6AED2DEEFE31D6C9685BAA49828BFF',
'2018-06-14 18:00:07', '2018-06-14 18:12:57', '7fef5f032c8e4b4eb4eab448a6e21a56', '2018-06-14 18:42:57', 0);
INSERT INTO awd.credential (id, email, salt, hashed_psw, created_at, last_seen, token, expiry, user_type) VALUES
(5, '<EMAIL>', 0x878B4AAC25AC56ED86FEE69B805F454A, '1933748E1E6AED2DEEFE31D6C9685BAA49828BFF',
'2018-06-14 18:00:07', '2018-06-14 18:03:07', NULL, NULL, 1);
INSERT INTO awd.credential (id, email, salt, hashed_psw, created_at, last_seen, token, expiry, user_type) VALUES
(6, '<EMAIL>', 0x878B4AAC25AC56ED86FEE69B805F454A, '1933748E1E6AED2DEEFE31D6C9685BAA49828BFF',
'2018-06-14 18:00:07', '2018-06-14 18:00:07', NULL, NULL, 0);
INSERT INTO awd.credential (id, email, salt, hashed_psw, created_at, last_seen, token, expiry, user_type) VALUES
(7, '<EMAIL>', 0x878B4AAC25AC56ED86FEE69B805F454A, '1933748E1E6AED2DEEFE31D6C9685BAA49828BFF',
'2018-06-14 18:00:07', '2018-06-14 18:00:07', NULL, NULL, 1);
INSERT INTO awd.credential (id, email, salt, hashed_psw, created_at, last_seen, token, expiry, user_type) VALUES
(8, '<EMAIL>', 0xC230ACFD65CDB7FBE377208AFFA9B09C, '723161FBA797DBE939DA52DB231D7269599945C6',
'2018-06-14 18:02:37', '2018-06-14 18:02:37', NULL, NULL, 0);
CREATE TABLE awd.internship
(
id INT(11) PRIMARY KEY NOT NULL AUTO_INCREMENT,
place VARCHAR(50) NOT NULL,
remote TINYINT(1) DEFAULT '0' NOT NULL,
start_time TIME,
end_time TIME,
num_hours INT(11) NOT NULL,
goals VARCHAR(256),
work_type VARCHAR(256),
refund FLOAT DEFAULT '0',
facilitations VARCHAR(256),
company_fk INT(11) NOT NULL,
start_date DATE NOT NULL,
end_date DATE NOT NULL
);
INSERT INTO awd.internship (id, place, remote, start_time, end_time, num_hours, goals, work_type, refund, facilitations, company_fk, start_date, end_date)
VALUES
(1, 'L''Aquila', 0, '09:00:00', '18:00:00', 120, 'Imparare Djando, Implementare backend python', 'Programmazione',
450, 'Mensa', 5, '2018-07-01', '2018-09-30');
INSERT INTO awd.internship (id, place, remote, start_time, end_time, num_hours, goals, work_type, refund, facilitations, company_fk, start_date, end_date)
VALUES (2, 'Avezzano', 0, '09:00:00', '18:00:00', 60,
'Sviluppare mobile app ibrida con ReactJS, Implementare backend con NodeJS', 'Programmazione', 600, '', 5,
'2018-07-01', '2018-07-31');
INSERT INTO awd.internship (id, place, remote, start_time, end_time, num_hours, goals, work_type, refund, facilitations, company_fk, start_date, end_date)
VALUES (3, 'L''Aquila', 0, '09:00:00', '18:00:00', 100, 'Imparare Spring, Implementare gestionale stipendi',
'Programmazione', 450, 'Mensa', 5, '2018-06-01', '2018-07-12');
CREATE TABLE awd.student
(
id INT(11) PRIMARY KEY NOT NULL,
first_name VARCHAR(50) NOT NULL,
last_name VARCHAR(50) NOT NULL,
birth_date DATE NOT NULL,
birth_place VARCHAR(50) NOT NULL,
birth_place_province VARCHAR(2) NOT NULL,
residence_place VARCHAR(50) NOT NULL,
residence_place_province VARCHAR(2) NOT NULL,
cf VARCHAR(30) NOT NULL,
telnumber INT(20) NOT NULL,
university_level VARCHAR(30) NOT NULL,
university_course VARCHAR(50) NOT NULL,
handicap TINYINT(1) DEFAULT '0' NOT NULL
);
INSERT INTO awd.student (id, first_name, last_name, birth_date, birth_place, birth_place_province, residence_place, residence_place_province, cf, telnumber, university_level, university_course, handicap)
VALUES (4, 'Andrea', 'Paris', '1996-05-17', 'Avezzano', 'AQ', 'Avezzano', 'AQ', 'AVOFGOFGIUFGRFORPFGB', 123456789,
'Laurea Base', 'Informatica', 0);
INSERT INTO awd.student (id, first_name, last_name, birth_date, birth_place, birth_place_province, residence_place, residence_place_province, cf, telnumber, university_level, university_course, handicap)
VALUES
(6, 'Alessandro', 'Taglieri', '1996-04-19', 'Avezzano', 'AQ', 'Avezzano', 'AQ', 'AVOFGOFGIUFGRFORPFGB', 123456789,
'Laurea Base', 'Informatica', 0); |
CONNECT 'jdbc:derby://10.11.1.111:1527/product-db;create=true;user=APP;password=<PASSWORD>';
DROP TABLE PRODUCT; |
-- Schema db_cookify
CREATE SCHEMA IF NOT EXISTS `db_cookify` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
USE `db_cookify`;
-- Table `db_cookify`.`images`
CREATE TABLE IF NOT EXISTS `db_cookify`.`images` (
`id` INT NOT NULL AUTO_INCREMENT,
`file_path` TEXT NOT NULL,
`file_name` TEXT NOT NULL,
`file_extension` TEXT NOT NULL,
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE = InnoDB;
-- Table `db_cookify`.`users`
CREATE TABLE IF NOT EXISTS `db_cookify`.`users` (
`id` INT NOT NULL AUTO_INCREMENT,
`is_admin` TINYINT(1) NOT NULL DEFAULT 0,
`first_name` VARCHAR(25) NOT NULL,
`last_name` VARCHAR(25) NOT NULL,
`full_name` VARCHAR(51) NOT NULL,
`photo_id` INT NOT NULL,
`phone_number` VARCHAR(10) NOT NULL,
`email` VARCHAR(255) NOT NULL,
`password` TEXT NOT NULL,
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
INDEX `fk_users_images_idx` (`photo_id` ASC),
CONSTRAINT `fk_users_images`
FOREIGN KEY (`photo_id`)
REFERENCES `db_cookify`.`images` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION
) ENGINE = InnoDB;
-- Table `db_cookify`.`categories`
CREATE TABLE IF NOT EXISTS `db_cookify`.`categories` (
`id` INT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(45) NOT NULL,
`slug` VARCHAR(60) NOT NULL,
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE = InnoDB;
-- Table `db_cookify`.`plates`
CREATE TABLE IF NOT EXISTS `db_cookify`.`plates` (
`id` INT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(45) NULL,
`slug` VARCHAR(60) NULL,
`description` TEXT NULL,
`price` DECIMAL(6,2) NULL,
`category_id` INT NOT NULL,
`image_id` INT NOT NULL,
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
INDEX `fk_plates_categories_idx` (`category_id` ASC),
INDEX `fk_plates_images_idx` (`image_id` ASC),
CONSTRAINT `fk_plates_categories`
FOREIGN KEY (`category_id`)
REFERENCES `db_cookify`.`categories` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_plates_images`
FOREIGN KEY (`image_id`)
REFERENCES `db_cookify`.`images` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- Table `db_cookify`.`orders`
CREATE TABLE IF NOT EXISTS `db_cookify`.`orders` (
`id` INT NOT NULL AUTO_INCREMENT,
`address` TEXT NOT NULL,
`comment` TEXT NULL,
`user_id` INT NOT NULL,
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
INDEX `fk_orders_users_idx` (`user_id` ASC),
CONSTRAINT `fk_orders_users`
FOREIGN KEY (`user_id`)
REFERENCES `db_cookify`.`users` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- Table `db_cookify`.`orders_has_plates`
CREATE TABLE IF NOT EXISTS `db_cookify`.`orders_has_plates` (
`order_id` INT NOT NULL,
`plate_id` INT NOT NULL,
`amount` INT NOT NULL,
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
INDEX `fk_orders_has_plates_plates_idx` (`plate_id` ASC),
INDEX `fk_orders_has_plates_orders_idx` (`order_id` ASC),
CONSTRAINT `fk_orders_has_plates_orders`
FOREIGN KEY (`order_id`)
REFERENCES `db_cookify`.`orders` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_orders_has_plates_plates`
FOREIGN KEY (`plate_id`)
REFERENCES `db_cookify`.`plates` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- Table `db_cookify`.`invoices`
CREATE TABLE IF NOT EXISTS `db_cookify`.`invoices` (
`id` INT NOT NULL AUTO_INCREMENT,
`subtotal` DECIMAL(8,2) NOT NULL,
`iva` DECIMAL(5,2) NOT NULL,
`total` DECIMAL(8,2) NOT NULL,
`order_id` INT NOT NULL,
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
INDEX `fk_invoices_orders_idx` (`order_id` ASC),
CONSTRAINT `fk_invoices_orders`
FOREIGN KEY (`order_id`)
REFERENCES `db_cookify`.`orders` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- ***** INITIAL VALUES *****
-- Seeding "User Photo" by default:
INSERT INTO `db_cookify`.`images` (`file_path`, `file_name`, `file_extension`)
VALUES ('/public/users/img_profile', 'img_default', 'png');
-- Seeding "Plate Image" by default:
INSERT INTO `db_cookify`.`images` (`file_path`, `file_name`, `file_extension`)
VALUES('/public/plates/img', 'img_default', 'png');
-- Seeding "Plate images":
INSERT INTO `db_cookify`.`images` (`file_path`, `file_name`, `file_extension`)
VALUES('/public/plates/img', 'img-20180607-131313-hamburguesa-de-res', 'jpg');
INSERT INTO `db_cookify`.`images` (`file_path`, `file_name`, `file_extension`)
VALUES('/public/plates/img', 'img-20180607-131829-pizza-con-extra-queso', 'jpg');
INSERT INTO `db_cookify`.`images` (`file_path`, `file_name`, `file_extension`)
VALUES('/public/plates/img', 'img-20180607-ensalada', 'jpg');
INSERT INTO `db_cookify`.`images` (`file_path`, `file_name`, `file_extension`)
VALUES('/public/plates/img', 'img-20180607-papas-a-la-francesa', 'jpg');
INSERT INTO `db_cookify`.`images` (`file_path`, `file_name`, `file_extension`)
VALUES('/public/plates/img', 'img-20180607-ensalada-frutal', 'jpg');
INSERT INTO `db_cookify`.`images` (`file_path`, `file_name`, `file_extension`)
VALUES('/public/plates/img', 'img-20180607-nuggets-de-pollo', 'jpg');
INSERT INTO `db_cookify`.`images` (`file_path`, `file_name`, `file_extension`)
VALUES('/public/plates/img', 'img-20180607-pasta-marisco', 'jpg');
-- Seeding "Categories":
INSERT INTO `db_cookify`.`categories` (`name`, `slug`)
VALUES('comida rápida', 'comida-rapida');
INSERT INTO `db_cookify`.`categories` (`name`, `slug`)
VALUES('ensaladas', 'ensaladas');
INSERT INTO `db_cookify`.`categories` (`name`, `slug`)
VALUES('pastas', 'pastas');
-- Seeding "Plates":
INSERT INTO `db_cookify`.`plates` (`name`, `slug`, `description`, `price`, `category_id`, `image_id`)
VALUES('hamburguesa de res', 'hamburguesa-de-res',
'Rica hamburguesa de res, con lechuga, jitomate, queso amarillo y pepinillos.',
49.90, 1, 3);
INSERT INTO `db_cookify`.`plates` (`name`, `slug`, `description`, `price`, `category_id`, `image_id`)
VALUES('Pizza con extra queso', 'pizza-con-extra-queso',
'Deliciosa Pizza con Extra Queso, acompañada de Peperoni y Orilla Gruesa.',
99, 1, 4);
INSERT INTO `db_cookify`.`plates` (`name`, `slug`, `description`, `price`, `category_id`, `image_id`)
VALUES('Papas a la francesa', 'papas-a-la-francesa',
'Porción de papas fritas, crujientes y doradas a la perfección.',
25.90, 1, 6);
INSERT INTO `db_cookify`.`plates` (`name`, `slug`, `description`, `price`, `category_id`, `image_id`)
VALUES('Nuggets de pollo', 'nuggets-de-pollo',
'Ricos trocitos de pollo empanizados.',
35.50, 1, 8);
INSERT INTO `db_cookify`.`plates` (`name`, `slug`, `description`, `price`, `category_id`, `image_id`)
VALUES('Ensalada', 'ensalada',
'Ensalada con lechuga, tomates y pequeños trozos de pollo',
89.99, 2, 5);
INSERT INTO `db_cookify`.`plates` (`name`, `slug`, `description`, `price`, `category_id`, `image_id`)
VALUES('Ensalada frutal', 'ensalada-frutal',
'Ensalada de diversas frutas como fresa, platano, kiwi, frambuesas y uvas.',
80.00, 2, 7);
INSERT INTO `db_cookify`.`plates` (`name`, `slug`, `description`, `price`, `category_id`, `image_id`)
VALUES('Pasta con mariscos', 'pasta-marisco',
'Exquisita pasta con camarón',
110.00, 3, 9);
-- Seeding "Admin Users":
INSERT INTO `db_cookify`.`users`
(`is_admin`,`first_name`, `last_name`, `full_name`, `photo_id`, `phone_number`, `email`, `password`)
VALUES (1, '<NAME>', '<NAME>', '<NAME>', 1, '4422332139', '<EMAIL>', SHA2('hola123', 256));
INSERT INTO `db_cookify`.`users`
(`is_admin`,`first_name`, `last_name`, `full_name`, `photo_id`, `phone_number`, `email`, `password`)
VALUES (1, '<NAME>', '<NAME>', '<NAME>', 1, '4422334455', '<EMAIL>', SHA2('hola123', 256));
|
-- Prepare common serach patterns at session init
PREPARE searchShoe (text, text, int) AS
SELECT *
FROM Shoe
WHERE colour=$1 AND style=$2 AND size=$3;
-- Execute prepared statements
EXECUTE searchShoe('Black', 'mens-athletic-shoes', 8);
-- Compares features of shoes with the same price
SELECT s1.name, s1.brand, s1.colour, s1.description, s2.name, s2.brand, s2.colour, s2.description
FROM Shoe s1, Shoe s2
WHERE s1.price = s2.price AND s1.sid < s2.sid
ORDER BY s1.name;
-- Group by style of shoe by Servus By Honeywell Shoe Studs Zsr101blmlg and get numbers of shoes in those groups
SELECT COUNT(*) ,style, brand
FROM Shoe
WHERE brand = 'Nike'
GROUP BY style, brand;
-- User Creation
INSERT INTO Customer(username, password)
VALUES ('bob123', '<PASSWORD>');
-- User Login/Authentication
SELECT password
FROM Customer
WHERE username = 'bob123';
-- Adding to cart
INSERT INTO Transaction
(uid, sid, datetime, quantity, address, cardNumber)
VALUES
(1, 3, null, 1, null, null);
INSERT INTO Transaction
(uid, sid, datetime, quantity, address, cardNumber)
VALUES
(1, 5, null, 1, null, null);
INSERT INTO Transaction
(uid, sid, datetime, quantity, address, cardNumber)
VALUES
(1, 4, null, 2, null, null);
-- Transaction of someone purchasing two of shoe 4 and 1 of shoe 3 and 5
BEGIN;
UPDATE shoe
SET stock = stock - 1
WHERE sid = 5 OR sid = 3;
UPDATE shoe
SET stock = stock - 2
WHERE sid = 4;
UPDATE Transaction
SET datetime=transaction_timestamp(), cardNumber='1234567890', address='123 Sesame St'
WHERE tid=1 AND uid=1 AND (sid=3 OR sid=3 OR sid=4);
COMMIT;
-- List all shoes (limit 10 for brevity)
SELECT *
FROM Shoe
LIMIT 10;
-- User leaves a review for a shoe
INSERT INTO Review
(uid, sid, rating, comment)
VALUES
(1, 3, 4, 'good shoe');
-- Get all reviews for a shoe
SELECT *
FROM Review
WHERE sid=3;
|
<gh_stars>1-10
CREATE UNIQUE INDEX dm_study_ig_item_identifiers_unique
ON dm.study_ig_item_identifiers
USING BTREE (item_group_id, item_ordinal_per_ig_over_crfv, item_multi_order_over_rsi);
CREATE INDEX dm_study_ig_item_identifiers_item_id
ON dm.study_ig_item_identifiers
USING BTREE (item_id);
CREATE INDEX IF NOT EXISTS dm_study_ig_item_identifiers_imoor
ON dm.study_ig_item_identifiers
USING BTREE (item_multi_order_over_rsi);
CREATE INDEX IF NOT EXISTS dm_study_ig_item_identifiers_study_id
ON dm.study_ig_item_identifiers
USING BTREE (study_id);
CREATE INDEX IF NOT EXISTS dm_study_ig_item_identifiers_item_oid
ON dm.study_ig_item_identifiers
USING BTREE (item_oid); |
--for all customers, find out the preferred channel wrt money spent.
create or replace function preferredChannel_wrtExpenditure(cust_key int)
returns varchar(50)
language plpgsql
as
$$
declare
numWeb decimal;
numStore decimal;
numCat decimal;
begin
numWeb:=0; numStore:=0; numCat:=0;
if exists (select * from web_sales_history where ws_bill_customer_sk=cust_key) then
numWeb := (select sum(ws_net_paid_inc_ship_tax) from web_sales_history where ws_bill_customer_sk=cust_key);
end if;
if exists (select * from store_sales_history where ss_customer_sk=cust_key) then
numStore := (select sum(ss_net_paid_inc_tax) from store_sales_history where ss_customer_sk=cust_key);
end if;
if exists (select * from catalog_sales_history where cs_bill_customer_sk=cust_key) then
numCat := (select sum(cs_net_paid_inc_ship_tax) from catalog_sales_history where cs_bill_customer_sk=cust_key);
end if;
if(numWeb>=numStore and numWeb>=numCat) then
return 'web';
end if;
if(numStore>=numWeb and numStore>=numCat) then
return 'store';
end if;
if(numCat>=numStore and numCat>=numWeb) then
return 'Catalog';
end if;
return 'Logical error';
end; $$
--invocation Query
select c_customer_sk, preferredChannel_wrtExpenditure(c_customer_sk) from customer;
|
<reponame>Kahiko/Growthware<gh_stars>1-10
/*
Usage:
DECLARE
@P_Function_SeqID INT = 1
@P_Debug INT = 1
exec ZGWSecurity.Get_Function
@P_Function_SeqID
@P_Debug
*/
-- =============================================
-- Author: <NAME>
-- Create date: 08/12/2011
-- Description: Selects function given
-- the Function_SeqID. When Function_SeqID = -1
-- all rows in the table are retruned.
-- =============================================
CREATE PROCEDURE [ZGWSecurity].[Get_Function]
@P_Function_SeqID int,
@P_Debug INT = 0
AS
SET NOCOUNT ON
IF @P_Debug = 1 PRINT 'Starting ZGWSecurity.Get_Function'
IF @P_Function_SeqID <> -1
BEGIN -- SELECT an existing row from the table.
IF @P_Debug = 1 PRINT 'Selecting single record'
SELECT
Function_SeqID AS FUNCTION_SEQ_ID
, [Name]
, [Description]
, Function_Type_SeqID AS FUNCTION_TYPE_SEQ_ID
, [Source]
, [Controller]
, [Resolve]
, Enable_View_State
, Enable_Notifications
, Redirect_On_Timeout
, Is_Nav
, Link_Behavior
, No_UI
, Navigation_Types_NVP_Detail_SeqID AS NAVIGATION_NVP_SEQ_DET_ID
, Meta_Key_Words
, [Action]
, Parent_SeqID AS PARENT_FUNCTION_SEQ_ID
, Notes
, Sort_Order
, Added_By
, Added_Date
, Updated_By
, Updated_Date
FROM
ZGWSecurity.Functions WITH(NOLOCK)
WHERE
Function_SeqID = @P_Function_SeqID
ORDER BY
[Name] ASC
END
ELSE
BEGIN
IF @P_Debug = 1 PRINT 'Selecting all records'
SELECT
Function_SeqID AS FUNCTION_SEQ_ID
, [Name]
, [Description]
, Function_Type_SeqID AS FUNCTION_TYPE_SEQ_ID
, [Source]
, [Controller]
, [Resolve]
, Enable_View_State
, Enable_Notifications
, Redirect_On_Timeout
, Is_Nav
, Link_Behavior
, No_UI
, Navigation_Types_NVP_Detail_SeqID AS NAVIGATION_NVP_SEQ_DET_ID
, Meta_Key_Words
, [Action]
, Parent_SeqID AS PARENT_FUNCTION_SEQ_ID
, Notes
, Sort_Order
, Added_By
, Added_Date
, Updated_By
, Updated_Date
FROM
ZGWSecurity.Functions WITH(NOLOCK)
ORDER BY
[Name] ASC
END
-- END IF
IF @P_Debug = 1 PRINT 'Ending ZGWSecurity.Get_Function'
RETURN 0 |
<reponame>rrpawar96/ezbank-rahul-francis
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you may not use this file except in compliance
-- with the License. You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing,
-- software distributed under the License is distributed on an
-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-- KIND, either express or implied. See the License for the
-- specific language governing permissions and limitations
-- under the License.
--
-- midifications to savings account and savings transaction
ALTER TABLE `m_savings_account`
ADD COLUMN `is_retail` TINYINT(1) NOT NULL DEFAULT '0' AFTER `product_id`;
ALTER TABLE `m_savings_account_transaction`
ADD COLUMN `external_id` VARCHAR(50) NULL DEFAULT NULL AFTER `payment_detail_id`;
ALTER TABLE `m_savings_account`
ADD COLUMN `autogenerate_transaction_id` TINYINT(1) NOT NULL DEFAULT '0' AFTER `is_retail`;
ALTER TABLE `m_savings_account_transaction`
ADD CONSTRAINT `unique_retail_transaction` UNIQUE(`savings_account_id`,`external_id`);
-- permissions
INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'CREATE_RETAILACCOUNTENTRIES', 'RETAILACCOUNTENTRIES', 'CREATE', 0);
INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'UPDATE_RETAILACCOUNTENTRIES', 'RETAILACCOUNTENTRIES', 'UPDATE', 0);
-- new retail transaction table (no longer being used) should we add a script to drop this table?
-- CREATE TABLE `idt_retail_transaction_range` (
-- `id` bigint(20) NOT NULL AUTO_INCREMENT,
-- `retail_savings_id` bigint(20) NOT NULL,
-- `transaction_upper_limit` bigint(20) NOT NULL,
-- `transaction_lower_limit` bigint(20) NOT NULL,
-- `current_transaction_id_used` bigint(20) NOT NULL,
-- PRIMARY KEY (`id`),
-- KEY `FK_retail_savings_id` (`retail_savings_id`),
-- CONSTRAINT `FK_retail_savings_id` FOREIGN KEY (`retail_savings_id`) REFERENCES `m_savings_account` (`id`)
-- ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-- new retail account type entry table
CREATE TABLE `retail_account_entry_types` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`data_type` varchar(30) NOT NULL,
`retail_account_id` bigint(20) NOT NULL,
`is_constant` tinyint(1) NOT NULL DEFAULT '0',
`constant_value` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK_retail_account_id` (`retail_account_id`),
CONSTRAINT `FK_retail_account_id` FOREIGN KEY (`retail_account_id`) REFERENCES `m_savings_account` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- new retail account entry data table
CREATE TABLE `retail_account_entry_data` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`retail_account_entry_type_id` bigint(20) NOT NULL,
`retail_account_entry_value` varchar(100) NOT NULL,
`retail_account_transaction_id` bigint(20) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQUE_retail_entry` (`retail_account_entry_type_id`,`retail_account_transaction_id`),
KEY `FK_retail_transactions` (`retail_account_transaction_id`),
CONSTRAINT `FK_retail_entries` FOREIGN KEY (`retail_account_entry_type_id`) REFERENCES `retail_account_entry_types` (`id`),
CONSTRAINT `FK_retail_transactions` FOREIGN KEY (`retail_account_transaction_id`) REFERENCES `m_savings_account_transaction` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
|
<reponame>yd4u2c/fmc-physio<gh_stars>0
--
-- Database: `fmcphy_fitness`
--
CREATE DATABASE IF NOT EXISTS `fmcphy_fitness` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `fmcphy_fitness`;
-- --------------------------------------------------------
--
-- Table structure for table `assessment`
--
CREATE TABLE `assessment` (
`id` int(11) NOT NULL,
`rollnum` varchar(12) NOT NULL,
`name` varchar(70) NOT NULL,
`age` int(3) NOT NULL,
`dob` varchar(12) NOT NULL,
`complaint` varchar(255) NOT NULL,
`date_access` varchar(12) NOT NULL,
`history_source` varchar(255) NOT NULL,
`history` text NOT NULL,
`present_treat` varchar(255) NOT NULL,
`major_ills` varchar(255) NOT NULL,
`drug_history` varchar(255) NOT NULL,
`surgical_history` varchar(255) NOT NULL,
`family_history` varchar(255) NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`rec` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `assessment`
--
INSERT INTO `assessment` (`id`, `rollnum`, `name`, `age`, `dob`, `complaint`, `date_access`, `history_source`, `history`, `present_treat`, `major_ills`, `drug_history`, `surgical_history`, `family_history`, `time`, `rec`) VALUES
(1, '', 'yakubu', 12, '2018-11-07', '', '2018-11-08', '', '', 'others', 'aaaa', 'aaa', 'aaa', 'aaa', '2018-11-29 14:36:10', ''),
(2, 'roll-201fit', 'yakubu', 12, '2018-11-07', '', '2018-11-08', '', '', 'others', 'aaaa', 'aaa', 'aaa', 'aaa', '2018-11-29 14:38:07', ''),
(3, 'roll-202fit', 'yakubu', 12, '2018-11-02', 'ssss', '2018-11-09', 'sss', 'sssss', 'others', 'ssssssss', 'sss', 'sss', 'ssssss', '2018-11-29 14:39:52', ''),
(4, 'PRED_16', '<NAME>', 3, '1212-12-12', 'present complaint', '2018-12-07', 'Present bruise', 'klmk', 'Heart disease', 'knmjk', 'drug history', 'surgical history', 'social history', '2018-12-05 21:27:27', ''),
(5, 'PRED_16', '<NAME>', 3, '1212-12-12', 'present complaint', '2018-12-09', 'Present bruise', 'aslmdfsa', 'Asthma', 'kjnubjhub', 'drug history', 'surgical history', 'social history', '2018-12-06 04:34:08', '100000003'),
(6, 'pred_16', '<NAME>', 2, '1212-12-12', 'ds', '2018-12-13', 'asa', 'sd', 'Asthma', 'sd', 'sd', 'sd', 'sd', '2018-12-06 04:44:38', '100000004');
-- --------------------------------------------------------
--
-- Table structure for table `assessment2`
--
CREATE TABLE `assessment2` (
`id` int(11) NOT NULL,
`rollnum` varchar(30) NOT NULL,
`part_fit` varchar(70) NOT NULL,
`duration` varchar(70) NOT NULL,
`r4stop` varchar(255) NOT NULL,
`r4fit` varchar(255) NOT NULL,
`others` varchar(255) NOT NULL,
`signature` varchar(100) NOT NULL,
`ddate` varchar(12) NOT NULL,
`height` varchar(12) NOT NULL,
`weight` varchar(12) NOT NULL,
`bmi` varchar(70) NOT NULL,
`vitals` varchar(70) NOT NULL,
`bp` varchar(70) NOT NULL,
`pr` varchar(70) NOT NULL,
`waist` varchar(70) NOT NULL,
`hip` varchar(70) NOT NULL,
`ratio` varchar(70) NOT NULL,
`heartrate` varchar(70) NOT NULL,
`plan` varchar(70) NOT NULL,
`means` varchar(70) NOT NULL,
`rec` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `assessment2`
--
INSERT INTO `assessment2` (`id`, `rollnum`, `part_fit`, `duration`, `r4stop`, `r4fit`, `others`, `signature`, `ddate`, `height`, `weight`, `bmi`, `vitals`, `bp`, `pr`, `waist`, `hip`, `ratio`, `heartrate`, `plan`, `means`, `rec`) VALUES
(1, 'roll-202fit', 'no', ' 2 days', 'ss', 'want to improve my shape', '', ' ', 'fdsgs', '12', '12', ' 12', '12', '12', '12', '', '12', '12', '12', 'sdgdgfdfdfd', 'sfdfdgg', ''),
(2, 'roll-202fit', 'no', ' 2 days', 'ss', 'want to improve my shape', '', ' ', 'fdsgs', '12', '12', ' 12', '12', '12', '12', '', '12', '12', '12', 'sdgdgfdfdfd', 'sfdfdgg', ''),
(3, 'roll-202fit', 'no', ' 2 days', 'ss', 'to regain my previous shape after child birth', 'sss', ' ', 'sss', '12', '12', ' 12', '12', '12', '12', '12', '12', '12', '12', 'asssssss', 'asssssss', ''),
(7, 'PRED_16', 'no', ' pain duration', 'fsffd', 'want to improve my shape', 'lkmk', ' ooo', 'sddsad', 'sad', '3kg', ' sd', 'sd', 'sad', 'sd', 'ds', 'sd', 'sad', 'sd', 'dfsfd', 'dfse', '100000002'),
(8, 'PRED_16', 'no', ' pain duration', 'fsffd', 'want to improve my shape', 'lkmk', ' ooo', 'sddsad', 'sad', '3kg', ' sd', 'sd', 'sad', 'sd', 'ds', 'sd', 'sad', 'sd', 'dfsfd', 'dfse', '100000002'),
(9, 'PRED_16', 'yes', ' pain duration', 'fsffd', 'to regain my previous shape after child birth', 'lm klmkl', ' ooo', 'sddsad', 'sad', '3kg', ' sd', 'sd', 'sad', 'sd', 'ds', 'sd', 'sad', 'sd', 'kjnjknj', 'nm n nj', '100000003');
-- --------------------------------------------------------
--
-- Table structure for table `exerate`
--
CREATE TABLE `exerate` (
`id` int(255) NOT NULL,
`num` varchar(1000) NOT NULL,
`rec` varchar(1000) NOT NULL,
`exerate` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `exerate`
--
INSERT INTO `exerate` (`id`, `num`, `rec`, `exerate`) VALUES
(1, '1243', '0001', 'AGE 15-20 rate = 2'),
(2, '1243', '0001', 'AGE 21-30 rate = 2'),
(3, '1243', '0001', 'AGE 31-40 rate = 4'),
(4, '1243', '0001', 'AGE 41-50 rate = 3'),
(5, '1243', '0001', 'AGE 50 + rate = 5'),
(6, '1243', '0001', 'AGE 15-20 rate = 4'),
(7, '1243', '0001', 'AGE 21-30 rate = 3'),
(8, '1243', '0001', 'AGE 31-40 rate = 2'),
(9, '1243', '0001', 'AGE 41-50 rate = 4'),
(10, '1243', '0001', 'AGE 50 + rate = 5'),
(11, 'PRED_16', '100000008', 'AGE 15-20 rate = 3'),
(12, 'PRED_16', '100000008', 'AGE 21-30 rate = 4'),
(13, 'PRED_16', '100000008', 'AGE 31-40 rate = 4'),
(14, 'PRED_16', '100000008', 'AGE 41-50 rate = 2'),
(15, 'PRED_16', '100000008', 'AGE 50 + rate = 5');
-- --------------------------------------------------------
--
-- Table structure for table `questionnaire`
--
CREATE TABLE `questionnaire` (
`id` int(11) NOT NULL,
`rollnum` varchar(100) NOT NULL,
`ddate` varchar(12) NOT NULL,
`firstname` varchar(70) NOT NULL,
`lastname` varchar(70) NOT NULL,
`address` varchar(150) NOT NULL,
`city` varchar(70) NOT NULL,
`state` varchar(70) NOT NULL,
`zip` varchar(20) NOT NULL,
`homephone` varchar(15) NOT NULL,
`bussinessphone` varchar(15) NOT NULL,
`age` varchar(300) NOT NULL,
`height` varchar(7) NOT NULL,
`weight` varchar(7) NOT NULL,
`pain` varchar(255) NOT NULL,
`shortness` varchar(255) NOT NULL,
`dizziness` varchar(255) NOT NULL,
`orthopnea` varchar(225) NOT NULL,
`edema` varchar(255) NOT NULL,
`palpitations` varchar(255) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`rec` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `questionnaire`
--
INSERT INTO `questionnaire` (`id`, `rollnum`, `ddate`, `firstname`, `lastname`, `address`, `city`, `state`, `zip`, `homephone`, `bussinessphone`, `age`, `height`, `weight`, `pain`, `shortness`, `dizziness`, `orthopnea`, `edema`, `palpitations`, `date`, `rec`) VALUES
(1, 'roll-202fit', '10/04/2018', 'oguns tolu', 'OPEYEMI', '6 goshen street afobaje estate ota', 'abbeokuta', 'ogun', '110253', '08083004959', '394544699868346', 'aa', '12', '12', 'no', 'yes', 'yes', 'no', 'unsure', 'unsure', '2018-11-29 16:48:57', ''),
(2, 'PRED_16', '2018-12-16', '<NAME>', '', 'abeokuta', 'adfda', 'Ogun', 'sa', 'sdasd', 'sdds', '1212-12-12', 'sad', '3kg', 'yes', 'unsure', 'unsure', 'yes', 'unsure', 'unsure', '2018-12-06 05:54:27', '100000008');
-- --------------------------------------------------------
--
-- Table structure for table `questionnaire2`
--
CREATE TABLE `questionnaire2` (
`id` int(11) NOT NULL,
`rollnum` varchar(30) NOT NULL,
`intermittent` varchar(25) NOT NULL,
`heart` varchar(25) NOT NULL,
`breath` varchar(25) NOT NULL,
`smoke` varchar(25) NOT NULL,
`drink` varchar(25) NOT NULL,
`health` varchar(25) NOT NULL,
`exercise` varchar(25) NOT NULL,
`regular` varchar(25) NOT NULL,
`type` varchar(255) NOT NULL,
`day` varchar(150) NOT NULL,
`eat` varchar(255) NOT NULL,
`like` varchar(150) NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`rec` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `questionnaire2`
--
INSERT INTO `questionnaire2` (`id`, `rollnum`, `intermittent`, `heart`, `breath`, `smoke`, `drink`, `health`, `exercise`, `regular`, `type`, `day`, `eat`, `like`, `time`, `rec`) VALUES
(1, 'roll-202fit', 'yes', 'no', 'yes', 'no', 'yes', 'no', 'no', 'yes', '12333', '40000', '4', 'Feel better', '2018-11-29 17:46:26', ''),
(2, 'roll-202fit', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes', '12333', '40000', '4', ' Look better', '2018-11-29 17:51:01', ''),
(3, 'roll-202fit', 'yes', 'no', 'yes', 'no', 'no', 'yes', 'no', 'yes', '12333', '40000', '4', ' Look better', '2018-11-29 17:54:45', ''),
(4, 'roll-202fit', '', '', '', '', '', '', '', '', '12333', '40000', '4', 'Gain weight', '2018-11-29 19:42:43', ''),
(5, 'roll-202fit', '', '', '', '', '', '', '', 'yes', '12333', '40000', '4', 'Feel better', '2018-11-29 19:50:21', ''),
(6, 'roll-202fit', 'yes', 'no', 'yes', 'no', 'no', 'no', 'yes', 'yes', '3333', '40000', '4', ' Look better', '2018-11-29 20:02:41', ''),
(7, 'PRED_16', 'yes', 'unsure', 'unsure', 'no', 'no', 'no', 'yes', 'no', 'sd', 'sd', 'sd', 'Gain weight', '2018-12-06 06:03:13', '100000008');
-- --------------------------------------------------------
--
-- Table structure for table `questionnaire3`
--
CREATE TABLE `questionnaire3` (
`id` int(11) NOT NULL,
`rollnum` varchar(30) NOT NULL,
`name` varchar(70) NOT NULL,
`clinicnum` varchar(12) NOT NULL,
`age` varchar(400) NOT NULL,
`gender` varchar(2) NOT NULL,
`occupation` varchar(100) NOT NULL,
`address` varchar(100) NOT NULL,
`phone` varchar(100) NOT NULL,
`lying` varchar(30) NOT NULL,
`walking` varchar(30) NOT NULL,
`driving` varchar(30) NOT NULL,
`standing` varchar(30) NOT NULL,
`kneeling` varchar(30) NOT NULL,
`bending` varchar(30) NOT NULL,
`walkinghrs` varchar(30) NOT NULL,
`sleepinghrs` varchar(30) NOT NULL,
`leisure` varchar(30) NOT NULL,
`rec` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `questionnaire3`
--
INSERT INTO `questionnaire3` (`id`, `rollnum`, `name`, `clinicnum`, `age`, `gender`, `occupation`, `address`, `phone`, `lying`, `walking`, `driving`, `standing`, `kneeling`, `bending`, `walkinghrs`, `sleepinghrs`, `leisure`, `rec`) VALUES
(1, '0', 'yakubu', '30495', '12', 'm', 'work', '6 goshen street afobaje estate ota', '08030960928', '2', '23', '2 ', '2', '2', '2', '2', '2', '2', ''),
(2, 'PRED_16', '<NAME>', '9', '1212-12-12', 'm', 'Trader', 'abeokuta', '08134193440', '7', '3', '2 ', '4', '6', '6', '6', '3', 'xddvg', '100000008');
-- --------------------------------------------------------
--
-- Table structure for table `questionnaire4`
--
CREATE TABLE `questionnaire4` (
`id` int(11) NOT NULL,
`rollnum` varchar(30) NOT NULL,
`alcohol` varchar(25) NOT NULL,
`quantity` varchar(200) NOT NULL,
`measurement` varchar(200) NOT NULL,
`nonalcohol` varchar(200) NOT NULL,
`amount` varchar(100) NOT NULL,
`nonalcmear` varchar(100) NOT NULL,
`smoking` varchar(70) NOT NULL,
`packets` varchar(70) NOT NULL,
`stimulants` varchar(70) NOT NULL,
`cups_nuts` varchar(70) NOT NULL,
`eating` varchar(70) NOT NULL,
`freq` varchar(70) NOT NULL,
`typeofsnack` varchar(70) NOT NULL,
`rec` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `questionnaire4`
--
INSERT INTO `questionnaire4` (`id`, `rollnum`, `alcohol`, `quantity`, `measurement`, `nonalcohol`, `amount`, `nonalcmear`, `smoking`, `packets`, `stimulants`, `cups_nuts`, `eating`, `freq`, `typeofsnack`, `rec`) VALUES
(1, 'roll-202fit', 'Palm wine', '123', 'Short', '', '33', '', 'None', '33', 'Coffee', '', '3333', '3333', '12333', ''),
(2, 'roll-202fit', 'Palm wine', '123', 'Glass', 'Fruit juice', '33', 'Bottles', 'Cigar', '33', 'kolanut', '33', '3333', '3333', '12333', ''),
(7, 'PRED_16', 'Hot drink', '1', 'Short', 'Soft drinks', '9', 'Glass', '', '9', 'none', '2', '6', '6', 'Sale', '100000008');
-- --------------------------------------------------------
--
-- Table structure for table `receipt`
--
CREATE TABLE `receipt` (
`id` int(11) NOT NULL,
`num` int(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `receipt`
--
INSERT INTO `receipt` (`id`, `num`) VALUES
(0, 100000009);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `assessment`
--
ALTER TABLE `assessment`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `assessment2`
--
ALTER TABLE `assessment2`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `exerate`
--
ALTER TABLE `exerate`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `questionnaire`
--
ALTER TABLE `questionnaire`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `questionnaire2`
--
ALTER TABLE `questionnaire2`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `questionnaire3`
--
ALTER TABLE `questionnaire3`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `questionnaire4`
--
ALTER TABLE `questionnaire4`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `assessment`
--
ALTER TABLE `assessment`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `assessment2`
--
ALTER TABLE `assessment2`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `exerate`
--
ALTER TABLE `exerate`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `questionnaire`
--
ALTER TABLE `questionnaire`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `questionnaire2`
--
ALTER TABLE `questionnaire2`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `questionnaire3`
--
ALTER TABLE `questionnaire3`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `questionnaire4`
--
ALTER TABLE `questionnaire4`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- Database: `fmcphy_gen`
--
CREATE DATABASE IF NOT EXISTS `fmcphy_gen` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `fmcphy_gen`;
-- --------------------------------------------------------
--
-- Table structure for table `login`
--
CREATE TABLE `login` (
`id` int(255) NOT NULL,
`user` varchar(2000) NOT NULL,
`pass` varchar(2000) NOT NULL,
`type` varchar(2000) NOT NULL,
`name` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `login`
--
INSERT INTO `login` (`id`, `user`, `pass`, `type`, `name`) VALUES
(1, 'admin', 'admin', 'front desk', ''),
(2, 'root', 'admin2', 'phy', 'John Adewale'),
(3, 'adesina', '111', 'ped', 'Dr <NAME>'),
(4, 'adesina', '111', 'ped', 'Dr <NAME>'),
(5, 'yd', '11111111', 'Neurology', '<NAME> opeyemi'),
(6, 'bola', 'damilola', 'Front Desk', '<NAME>'),
(7, 'ade', '11111111', 'Occupation', 'ade');
-- --------------------------------------------------------
--
-- Table structure for table `patient_num`
--
CREATE TABLE `patient_num` (
`id` int(255) NOT NULL,
`num` int(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `patient_num`
--
INSERT INTO `patient_num` (`id`, `num`) VALUES
(1, 16);
-- --------------------------------------------------------
--
-- Table structure for table `reg`
--
CREATE TABLE `reg` (
`id` int(200) NOT NULL,
`name` varchar(200) NOT NULL,
`p_id` varchar(10) NOT NULL,
`DOB` varchar(10) NOT NULL,
`eval_date` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `reg`
--
INSERT INTO `reg` (`id`, `name`, `p_id`, `DOB`, `eval_date`) VALUES
(3, '<NAME>', 'PRED_10', '2018-10-14', '2018-10-13'),
(4, '<NAME>', 'PRED_11', '1998-03-12', '2018-10-21'),
(6, '<NAME>', 'PRED_14', '2018-11-09', '2018-11-10'),
(7, '<NAME>', 'PRED_15', '1989-10-12', ''),
(8, '<NAME>', 'PRED_16', '1212-12-12', '');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `login`
--
ALTER TABLE `login`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `patient_num`
--
ALTER TABLE `patient_num`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `reg`
--
ALTER TABLE `reg`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `login`
--
ALTER TABLE `login`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `patient_num`
--
ALTER TABLE `patient_num`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `reg`
--
ALTER TABLE `reg`
MODIFY `id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- Database: `fmcphy_neu`
--
CREATE DATABASE IF NOT EXISTS `fmcphy_neu` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `fmcphy_neu`;
-- --------------------------------------------------------
--
-- Table structure for table `ans`
--
CREATE TABLE `ans` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`findings` varchar(2000) NOT NULL,
`impression` varchar(2000) NOT NULL,
`treatment` varchar(2000) NOT NULL,
`means` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `ans`
--
INSERT INTO `ans` (`id`, `num`, `rec`, `findings`, `impression`, `treatment`, `means`) VALUES
(1, 'pred_10', '100024', 'JHB', 'DXFRDF', 'YGUYH', 'FGCF');
-- --------------------------------------------------------
--
-- Table structure for table `asp`
--
CREATE TABLE `asp` (
`id` int(11) NOT NULL,
`idtwo` varchar(70) NOT NULL,
`alert` varchar(30) NOT NULL,
`respiratory` varchar(50) NOT NULL,
`cognition` varchar(30) NOT NULL,
`neglect` varchar(30) NOT NULL,
`communication` varchar(30) NOT NULL,
`swallow` varchar(30) NOT NULL,
`pain` varchar(100) NOT NULL,
`bedmobility` varchar(2000) NOT NULL,
`nhis` varchar(100) NOT NULL,
`rec` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `asp`
--
INSERT INTO `asp` (`id`, `idtwo`, `alert`, `respiratory`, `cognition`, `neglect`, `communication`, `swallow`, `pain`, `bedmobility`, `nhis`, `rec`) VALUES
(1, 'pred_10', 'voice', 'rr', 'no', 'present', 'no', 'no', '4', ' fsbgs', '009', '100020');
-- --------------------------------------------------------
--
-- Table structure for table `asp1`
--
CREATE TABLE `asp1` (
`id` int(11) NOT NULL,
`idtwo` varchar(50) NOT NULL,
`patientname` varchar(100) NOT NULL,
`address` varchar(100) NOT NULL,
`nhs_no` varchar(30) NOT NULL,
`hosp_no` varchar(30) NOT NULL,
`dob` varchar(12) NOT NULL,
`gender` varchar(8) NOT NULL,
`phone` varchar(14) NOT NULL,
`addmision_date` varchar(12) NOT NULL,
`condition_type` varchar(70) NOT NULL,
`signature` varchar(40) NOT NULL,
`en_date` varchar(12) NOT NULL,
`en_time` varchar(12) NOT NULL,
`staffname` varchar(100) NOT NULL,
`designation` varchar(40) NOT NULL,
`rec` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `asp1`
--
INSERT INTO `asp1` (`id`, `idtwo`, `patientname`, `address`, `nhs_no`, `hosp_no`, `dob`, `gender`, `phone`, `addmision_date`, `condition_type`, `signature`, `en_date`, `en_time`, `staffname`, `designation`, `rec`) VALUES
(1, 'phy-215', '<NAME>', 'abeokuta', 'NHIS-100', '898', '2018-10-04', 'female', '09090909090', '2018-10-11', 'consent to exam obtained', 'ooo', '24/10/2018', '09:53:16am', 'Adio', 'fmc', ''),
(2, 'phy-201', '<NAME>', 'abeokuta', 'NHIS-100', '898', '2018-10-04', 'male', '09090909090', '2018-10-25', 'consent to exam obtained', 'ooo', '24/10/2018', '11:08:15am', 'Adio', 'fmc', ''),
(3, 'phy-202', '<NAME>', 'abeokuta', 'NHIS-100', 'KK', '2018-10-04', 'male', '9090909090909', '2018-10-04', 'consent to exam obtained', 'MMM', '24/10/2018', '12:02:30pm', 'NNN', 'OLO', ''),
(4, 'phy-203', '<NAME>', 'abeokuta', 'NHIS-100', '898', '2018-10-04', 'male', '09090909090', '2018-10-18', 'unable to consent', 'ooo', '24/10/2018', '02:31:13pm', 'Adio', 'fmc', ''),
(5, 'phy-204', '<NAME>', 'abeokuta', 'NHIS-100', '898', '2018-10-04', 'female', '09090909090', '2018-10-04', 'consent to exam obtained', 'ooo', '24/10/2018', '02:42:55pm', 'Adio', 'fmc', ''),
(6, 'phy-205', '', '', '', '898', '', 'male', '09090909090', '2018-11-23', 'consent to exam obtained', 'hgv', '16/11/2018', '12:38:18pm', 'Adio', 'fmc', ''),
(7, 'pred_10', '<NAME>', 'abeokuta', '009', '898', '2018-10-14', 'male', '09090909090', '2018-11-16', 'unable to consent', 'ooo', '16/11/2018', '01:25:35pm', 'Adio', 'fmc', ''),
(8, 'pred_10', '<NAME>', 'abeokuta', '009', '898', '2018-10-14', 'male', '09090909090', '2018-11-23', 'unable to consent', 'ooo', '16/11/2018', '01:42:21pm', 'Adio', 'fmc', '100017'),
(10, 'pred_10', '<NAME>', 'abeokuta', '009', '898', '2018-10-14', 'male', '09090909090', '2018-11-23', 'unable to consent', 'ooo', '16/11/2018', '01:47:03pm', 'Adio', 'fmc', '100017'),
(11, 'pred_10', '<NAME>', 'abeokuta', '009', '898', '2018-10-14', 'male', '09090909090', '2018-11-23', 'unable to consent', 'ooo', '16/11/2018', '01:47:52pm', 'Adio', 'fmc', '100017'),
(12, 'pred_10', '<NAME>', 'abeokuta', '009', '898', '2018-10-14', 'male', '09090909090', '2018-11-02', 'consent to exam obtained', 'ooo', '16/11/2018', '01:49:59pm', 'Adio', 'fmc', '100017'),
(13, 'pred_10', '<NAME>', 'abeokuta', '009', '898', '2018-10-14', 'male', '09090909090', '2018-11-02', 'consent to exam obtained', 'ooo', '16/11/2018', '01:49:59pm', 'Adio', 'fmc', '100017'),
(14, 'pred_10', '<NAME>', 'abeokuta', '009', '898', '2018-10-14', 'male', '09090909090', '2018-11-02', 'consent to exam obtained', 'ooo', '16/11/2018', '01:49:59pm', 'Adio', 'fmc', '100017'),
(15, 'pred_10', '<NAME>', 'abeokuta', '009', '898', '2018-10-14', 'male', '09090909090', '2018-11-17', 'unable to consent', 'ooo', '17/11/2018', '02:06:58am', 'Adio', 'fmc', '100018'),
(16, 'pred_10', '<NAME>', 'abeokuta', '009', '898', '2018-10-14', 'male', '09090909090', '2018-11-17', 'unable to consent', 'ooo', '17/11/2018', '02:07:36am', 'Adio', 'fmc', '100019'),
(17, 'pred_10', '<NAME>', 'abeokuta', '009', '898', '2018-10-14', 'male', '09090909090', '2018-11-16', 'unable to consent', 'ooo', '17/11/2018', '02:59:16am', 'Adio', 'fmc', '100020'),
(18, 'pred_10', '<NAME>', 'abeokuta', '009', '898', '2018-10-14', 'male', '09090909090', '2018-12-28', 'consent to exam obtained', 'ooo', '05/12/2018', '12:22:12pm', 'Adio', 'fmc', '100022'),
(19, 'pred_10', '<NAME>', 'abeokuta', '009', '898', '2018-10-14', 'male', '09090909090', '2018-12-13', 'unable to consent', 'ooo', '05/12/2018', '12:24:15pm', 'Adio', 'fmc', '100024');
-- --------------------------------------------------------
--
-- Table structure for table `asp2`
--
CREATE TABLE `asp2` (
`id` int(11) NOT NULL,
`idtwo` varchar(30) NOT NULL,
`hcp` varchar(100) NOT NULL,
`pmh` varchar(100) NOT NULL,
`dh` varchar(100) NOT NULL,
`sh` varchar(100) NOT NULL,
`habit` varchar(50) NOT NULL,
`accomodation` varchar(50) NOT NULL,
`stairs` varchar(12) NOT NULL,
`handrails` int(4) NOT NULL,
`wc` varchar(15) NOT NULL,
`no_of_child` int(5) NOT NULL,
`no_of_pregnancy` int(5) NOT NULL,
`wives` int(5) NOT NULL,
`mobility` varchar(50) NOT NULL,
`aids` varchar(30) NOT NULL,
`rel_info` longtext NOT NULL,
`nhis` varchar(200) NOT NULL,
`rec` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `asp2`
--
INSERT INTO `asp2` (`id`, `idtwo`, `hcp`, `pmh`, `dh`, `sh`, `habit`, `accomodation`, `stairs`, `handrails`, `wc`, `no_of_child`, `no_of_pregnancy`, `wives`, `mobility`, `aids`, `rel_info`, `nhis`, `rec`) VALUES
(1, 'phy-215', 'hcp', 'pmh', 'dh', 'lives with spouse', 'drinking', 'bungalow', 'no', 0, 'Downstiars', 6, 2, 3, 'normal', 'none', ' other relevant information', 'NHIS-100', ''),
(2, 'phy-215', 'hcp', 'pmh', 'dh', 'lives with spouse', 'drinking', 'bungalow', 'no', 0, 'Downstiars', 6, 2, 3, 'normal', 'none', ' other relevant information', 'NHIS-100', ''),
(3, 'phy-201', 'hcp', 'pmh', 'dh', 'lives with spouse', 'smoking', 'flat', 'no', 2, 'Downstiars', 6, 2, 3, 'independent', 'sticks 1/2', 'sss ', 'NHIS-100', ''),
(4, 'phy-202', 'hh', 'bb', 'ol', 'lives with relatives', 'smoking', 'flat', 'no', 2, 'Downstiars', 2, 9, 2, 'independent', 'none', ' hhh', 'NHIS-100', ''),
(5, 'phy-203', 'hcp', 'pmh', 'dh', 'lives with spouse', 'smoking', 'bungalow', 'no', 2, 'Downstiars', 6, 2, 3, 'normal', 'sticks 1/2', ' other information goes here', 'NHIS-100', ''),
(6, 'phy-204', 'hcp', 'pmh', 'dh', 'lives with relatives', 'smoking', 'flat', 'no', 2, 'Downstiars', 6, 2, 3, 'independent', 'frame', ' 666', 'NHIS-100', ''),
(7, 'pred_10', 'hcp', 'pmh', 'dh', 'lives with spouse', 'drinking', 'bungalow', 'no', 2, 'Downstiars', 6, 2, 3, 'independent', 'none', ' efr', '009', ''),
(8, 'pred_10', 'hcp', 'pmh', 'dh', 'lives with spouse', 'smoking', 'flat', 'no', 2, 'Downstiars', 6, 2, 3, 'independent', 'frame with wheel', ' fdscs', '009', '100017'),
(9, 'pred_10', 'hcp', 'pmh', 'dh', 'lives with spouse', 'smoking', 'flat', 'no', 2, 'Downstiars', 6, 2, 3, 'independent', 'frame with wheel', ' fdscs', '009', '100017'),
(10, 'pred_10', 'hcp', 'pmh', 'dh', 'lives with spouse', 'CHOOSE HABIT', 'CHOOSE TYPE OF HOUSE', 'no', 2, 'Downstiars', 6, 2, 3, 'assistance of 1/2', 'frame', 'bn m ', '009', '100019'),
(11, 'pred_10', 'hcp', 'pmh', 'dh', 'lives with spouse', 'smoking', 'bungalow', 'no', 2, 'Downstiars', 6, 2, 3, 'independent', 'sticks 1/2', ' jjkn', '009', '100020'),
(12, 'pred_10', 'hcp', 'pmh', 'dh', 'lives with spouse', 'smoking', 'flat', 'no', 2, 'Downstiars', 6, 2, 3, 'independent', 'sticks 1/2', 'jhvbj ', '009', '100024');
-- --------------------------------------------------------
--
-- Table structure for table `asp4`
--
CREATE TABLE `asp4` (
`id` int(11) NOT NULL,
`idtwo` varchar(30) NOT NULL,
`complications` varchar(12) NOT NULL,
`contractures` varchar(12) NOT NULL,
`shoulderpain` varchar(12) NOT NULL,
`sittingbal` varchar(12) NOT NULL,
`independent` varchar(12) NOT NULL,
`indexscore` varchar(1200) NOT NULL,
`actiontaken` text NOT NULL,
`nhis` varchar(100) NOT NULL,
`rec` varchar(2300) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `asp4`
--
INSERT INTO `asp4` (`id`, `idtwo`, `complications`, `contractures`, `shoulderpain`, `sittingbal`, `independent`, `indexscore`, `actiontaken`, `nhis`, `rec`) VALUES
(1, 'phy-201', 'no', 'no', 'no', 'Downstiars', 'no', 'assistance of 1/2', ' action taken', 'NHIS-100', ''),
(2, 'phy-204', 'no', 'no', 'no', 'Downstiars', 'no', 'CHOOSE A SCORE', ' ', 'NHIS-100', ''),
(3, 'phy-204', 'no', 'no', 'no', 'Downstiars', 'no', 'CHOOSE A SCORE', ' ', '', ''),
(4, 'phy-204', 'no', 'no', 'no', 'Downstiars', 'no', 'CHOOSE A SCORE', ' ', '', ''),
(5, 'pred_10', 'no', 'no', 'no', 'Downstiars', 'no', 'CHOOSE A SCORE', 'fg ', '009', ''),
(7, 'pred_10', 'no', 'no', 'yes', 'Downstiars', 'no', '', ' vghbjknml', '009', '100020'),
(8, 'pred_10', 'Yes', 'no', 'yes', 'Upstiars', 'yes', '', ' jhb bjn', '009', '100024');
-- --------------------------------------------------------
--
-- Table structure for table `aspques`
--
CREATE TABLE `aspques` (
`id` int(255) NOT NULL,
`question` varchar(500) NOT NULL,
`answer` varchar(500) NOT NULL,
`nhis` varchar(100) NOT NULL,
`num` varchar(100) NOT NULL,
`rec` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `aspques`
--
INSERT INTO `aspques` (`id`, `question`, `answer`, `nhis`, `num`, `rec`) VALUES
(1, 'BP', '99', '009', 'pred_10', '100020'),
(2, 'HR', '99', '009', 'pred_10', '100020'),
(3, 'Oxygen Saturation', '90', '009', 'pred_10', '100020'),
(4, 'Level of connsiousness', '99', '009', 'pred_10', '100020'),
(5, 'BP DIASTOTIC 80-99', '', '009', 'pred_10', '100024'),
(6, 'BP SYSTOTIC 100-180', '', '009', 'pred_10', '100024'),
(7, 'HR 50-100', '', '009', 'pred_10', '100024'),
(8, 'Oxygen Saturation', '', '009', 'pred_10', '100024');
-- --------------------------------------------------------
--
-- Table structure for table `aspques2`
--
CREATE TABLE `aspques2` (
`id` int(255) NOT NULL,
`tp` varchar(200) NOT NULL,
`issue` varchar(200) NOT NULL,
`ans` varchar(20000) NOT NULL,
`nhis` varchar(100) NOT NULL,
`num` varchar(100) NOT NULL,
`rec` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `aspques2`
--
INSERT INTO `aspques2` (`id`, `tp`, `issue`, `ans`, `nhis`, `num`, `rec`) VALUES
(1, 'LEFT UPPER LIMB', 'Range of Motion', 'aa', '009', 'pred_10', '100020'),
(2, 'LEFT UPPER LIMB', 'Muscle tone', 'val', '009', 'pred_10', '100020'),
(3, 'LEFT UPPER LIMB', 'Power of Muscle', 'fgch', '009', 'pred_10', '100020'),
(4, 'LEFT UPPER LIMB', 'sensation', 'val', '009', 'pred_10', '100020'),
(5, 'RIGHT UPPER LIMB', 'Range of Motion', 'val', '009', 'pred_10', '100020'),
(6, 'RIGHT UPPER LIMB', 'Muscle tone', 'y6', '009', 'pred_10', '100020'),
(7, 'RIGHT UPPER LIMB', 'Power of Muscle', 'val', '009', 'pred_10', '100020'),
(8, 'RIGHT UPPER LIMB', 'sensation', 'fgch', '009', 'pred_10', '100020'),
(9, 'LEFT LOWER LIMB', 'Range of Motion', 'y6', '009', 'pred_10', '100020'),
(10, 'LEFT LOWER LIMB', 'Muscle tone', 'val', '009', 'pred_10', '100020'),
(11, 'LEFT LOWER LIMB', 'Power of Muscle', 'val', '009', 'pred_10', '100020'),
(12, 'LEFT LOWER LIMB', 'sensation', 'y6', '009', 'pred_10', '100020'),
(13, 'RIGHT LOWER LIMB', 'Range of Motion', 'val', '009', 'pred_10', '100020'),
(14, 'RIGHT LOWER LIMB', 'Muscle tone', 'te', '009', 'pred_10', '100020'),
(15, 'RIGHT LOWER LIMB', 'Power of Muscle', 'cc', '009', 'pred_10', '100020'),
(16, 'RIGHT LOWER LIMB', 'sensation', 'y6', '009', 'pred_10', '100020'),
(17, 'LEFT UPPER LIMB', 'Range of Motion', '', '009', 'pred_10', '100024'),
(18, 'LEFT UPPER LIMB', 'Muscle tone', '', '009', 'pred_10', '100024'),
(19, 'LEFT UPPER LIMB', 'Power of Muscle', '', '009', 'pred_10', '100024'),
(20, 'LEFT UPPER LIMB', 'sensation', '', '009', 'pred_10', '100024'),
(21, 'LEFT UPPER LIMB', 'reflexes', '', '009', 'pred_10', '100024'),
(22, 'LEFT UPPER LIMB', 'proprioception', '', '009', 'pred_10', '100024'),
(23, 'LEFT UPPER LIMB', '', '', '009', 'pred_10', '100024'),
(24, 'RIGHT UPPER LIMB', 'Range of Motion', '', '009', 'pred_10', '100024'),
(25, 'RIGHT UPPER LIMB', 'Muscle tone', '', '009', 'pred_10', '100024'),
(26, 'RIGHT UPPER LIMB', 'Power of Muscle', '', '009', 'pred_10', '100024'),
(27, 'RIGHT UPPER LIMB', 'sensation', '', '009', 'pred_10', '100024'),
(28, 'RIGHT UPPER LIMB', 'reflexes', '', '009', 'pred_10', '100024'),
(29, 'RIGHT UPPER LIMB', 'proprioception', '', '009', 'pred_10', '100024'),
(30, 'RIGHT UPPER LIMB', '', '', '009', 'pred_10', '100024'),
(31, 'LEFT LOWER LIMB', 'Range of Motion', '', '009', 'pred_10', '100024'),
(32, 'LEFT LOWER LIMB', 'Muscle tone', '', '009', 'pred_10', '100024');
-- --------------------------------------------------------
--
-- Table structure for table `lower`
--
CREATE TABLE `lower` (
`id` int(11) NOT NULL,
`tp` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `lower`
--
INSERT INTO `lower` (`id`, `tp`) VALUES
(1, 'Extensor Diagitrum Longus'),
(2, 'Extensor Hollucis Longus '),
(3, 'Flexor Digitorum Longus '),
(4, 'Flexor Hallucis Longus '),
(5, 'Tibialis Anterior'),
(6, 'Gastorcnemius'),
(7, 'Peroneals'),
(8, 'Quadriceps'),
(9, 'Hamstrings'),
(10, 'Hip Flexors'),
(11, 'Hip Extensors '),
(12, 'Hip Internal Rotators'),
(13, 'Hip External Rotators ');
-- --------------------------------------------------------
--
-- Table structure for table `lowerlimb`
--
CREATE TABLE `lowerlimb` (
`id` int(11) NOT NULL,
`Extensor Diagitrum Longus` varchar(255) NOT NULL,
`Extensor Hollucis Longus` varchar(255) NOT NULL,
`Flexor Digitorum Longus` varchar(255) NOT NULL,
`Flexor Hallucis Longus` varchar(255) NOT NULL,
`Tibialis Anterior` varchar(255) NOT NULL,
`Gastorcnemius` varchar(255) NOT NULL,
`Peroneals` varchar(255) NOT NULL,
`Quadriceps` varchar(255) NOT NULL,
`Hamstrings` varchar(255) NOT NULL,
`Hip Flexors` varchar(255) NOT NULL,
`Hip Extensors` varchar(255) NOT NULL,
`Hip Internal Rotators` varchar(255) NOT NULL,
`Hip External Rotators` varchar(255) NOT NULL,
`date` varchar(12) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `object`
--
CREATE TABLE `object` (
`id` int(255) NOT NULL,
`question` varchar(200) NOT NULL,
`answer` varchar(1000) NOT NULL,
`nhis` varchar(100) NOT NULL,
`num` varchar(100) NOT NULL,
`rec` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `object`
--
INSERT INTO `object` (`id`, `question`, `answer`, `nhis`, `num`, `rec`) VALUES
(1, 'turning over', '2', 'NHIS-100', 'phy-201', ''),
(2, 'lying or sitting', '3', 'NHIS-100', 'phy-201', ''),
(3, 'sitting balance', '3', 'NHIS-100', 'phy-201', ''),
(4, 'sitting to standing', '4', 'NHIS-100', 'phy-201', ''),
(5, 'standing', '2', 'NHIS-100', 'phy-201', ''),
(6, 'transfer', '4', 'NHIS-100', 'phy-201', ''),
(7, 'Walking indoor', '3', 'NHIS-100', 'phy-201', ''),
(8, 'stairs', '1', 'NHIS-100', 'phy-201', ''),
(9, 'turning over', '1', 'NHIS-100', 'phy-204', ''),
(10, 'lying or sitting', '2', 'NHIS-100', 'phy-204', ''),
(11, 'sitting balance', '3', 'NHIS-100', 'phy-204', ''),
(12, 'sitting to standing', '3', 'NHIS-100', 'phy-204', ''),
(13, 'standing', '3', 'NHIS-100', 'phy-204', ''),
(14, 'transfer', '4', 'NHIS-100', 'phy-204', ''),
(15, 'Walking indoor', '4', 'NHIS-100', 'phy-204', ''),
(16, 'stairs', '2', 'NHIS-100', 'phy-204', ''),
(17, 'turning over', '0', '', 'phy-204', ''),
(18, 'lying or sitting', '0', '', 'phy-204', ''),
(19, 'sitting balance', '0', '', 'phy-204', ''),
(20, 'sitting to standing', '0', '', 'phy-204', ''),
(21, 'standing', '0', '', 'phy-204', ''),
(22, 'transfer', '0', '', 'phy-204', ''),
(23, 'Walking indoor', '0', '', 'phy-204', ''),
(24, 'stairs', '0', '', 'phy-204', ''),
(25, 'turning over', '1', '009', 'pred_10', ''),
(26, 'lying or sitting', '3', '009', 'pred_10', ''),
(27, 'sitting balance', '3', '009', 'pred_10', ''),
(28, 'sitting to standing', '0', '009', 'pred_10', ''),
(29, 'standing', '4', '009', 'pred_10', ''),
(30, 'transfer', '0', '009', 'pred_10', ''),
(31, 'Walking indoor', '0', '009', 'pred_10', ''),
(32, 'stairs', '3', '009', 'pred_10', ''),
(33, 'turning over', 'assistance of one people', '009', 'pred_10', '100020'),
(34, 'lying or sitting', 'requires supervision or verbal instruction', '009', 'pred_10', '100020'),
(35, 'sitting balance', 'requires an aid or an appliance', '009', 'pred_10', '100020'),
(36, 'sitting to standing', 'Unable to perform', '009', 'pred_10', '100020'),
(37, 'standing', 'Unable to perform', '009', 'pred_10', '100020'),
(38, 'transfer', 'assistance of one people', '009', 'pred_10', '100020'),
(39, 'Walking indoor', 'requires supervision or verbal instruction', '009', 'pred_10', '100020'),
(40, 'stairs', 'assistance of one people', '009', 'pred_10', '100020'),
(41, 'turning over', 'assistance of one people', '009', 'pred_10', '100020'),
(42, 'lying or sitting', 'requires supervision or verbal instruction', '009', 'pred_10', '100020'),
(43, 'sitting balance', 'requires an aid or an appliance', '009', 'pred_10', '100020'),
(44, 'sitting to standing', 'Unable to perform', '009', 'pred_10', '100020'),
(45, 'standing', 'Unable to perform', '009', 'pred_10', '100020'),
(46, 'transfer', 'assistance of one people', '009', 'pred_10', '100020'),
(47, 'Walking indoor', 'requires supervision or verbal instruction', '009', 'pred_10', '100020'),
(48, 'stairs', 'assistance of one people', '009', 'pred_10', '100020'),
(49, 'turning over', 'Unable to perform', '009', 'pred_10', '100024'),
(50, 'lying or siting', 'Unable to perform', '009', 'pred_10', '100024'),
(51, 'sitting balance', 'Unable to perform', '009', 'pred_10', '100024'),
(52, 'sitting to standing', 'Unable to perform', '009', 'pred_10', '100024'),
(53, 'standing', 'Unable to perform', '009', 'pred_10', '100024'),
(54, 'transfer', 'Unable to perform', '009', 'pred_10', '100024'),
(55, 'Walking indoor', 'Unable to perform', '009', 'pred_10', '100024'),
(56, 'stairs', 'Unable to perform', '009', 'pred_10', '100024'),
(57, 'turning over', 'Unable to perform', '009', 'pred_10', '100024'),
(58, 'lying or siting', 'Unable to perform', '009', 'pred_10', '100024'),
(59, 'sitting balance', 'Unable to perform', '009', 'pred_10', '100024'),
(60, 'sitting to standing', 'Unable to perform', '009', 'pred_10', '100024'),
(61, 'standing', 'Unable to perform', '009', 'pred_10', '100024'),
(62, 'transfer', 'Unable to perform', '009', 'pred_10', '100024'),
(63, 'Walking indoor', 'Unable to perform', '009', 'pred_10', '100024'),
(64, 'stairs', 'Unable to perform', '009', 'pred_10', '100024'),
(65, 'turning over', 'Unable to perform', '009', 'pred_10', '100024'),
(66, 'lying or siting', 'Unable to perform', '009', 'pred_10', '100024'),
(67, 'sitting balance', 'Unable to perform', '009', 'pred_10', '100024'),
(68, 'sitting to standing', 'Unable to perform', '009', 'pred_10', '100024'),
(69, 'standing', 'Unable to perform', '009', 'pred_10', '100024'),
(70, 'transfer', 'Unable to perform', '009', 'pred_10', '100024'),
(71, 'Walking indoor', 'Unable to perform', '009', 'pred_10', '100024'),
(72, 'stairs', 'Unable to perform', '009', 'pred_10', '100024'),
(73, 'turning over', 'Unable to perform', '009', 'pred_10', '100024'),
(74, 'lying or siting', 'Unable to perform', '009', 'pred_10', '100024'),
(75, 'sitting balance', 'Unable to perform', '009', 'pred_10', '100024'),
(76, 'sitting to standing', 'Unable to perform', '009', 'pred_10', '100024'),
(77, 'standing', 'Unable to perform', '009', 'pred_10', '100024'),
(78, 'transfer', 'Unable to perform', '009', 'pred_10', '100024'),
(79, 'Walking indoor', 'Unable to perform', '009', 'pred_10', '100024'),
(80, 'stairs', 'Unable to perform', '009', 'pred_10', '100024'),
(81, 'turning over', 'Unable to perform', '009', 'pred_10', '100024'),
(82, 'lying or siting', 'Unable to perform', '009', 'pred_10', '100024'),
(83, 'sitting balance', 'Unable to perform', '009', 'pred_10', '100024'),
(84, 'sitting to standing', 'Unable to perform', '009', 'pred_10', '100024'),
(85, 'standing', 'Unable to perform', '009', 'pred_10', '100024'),
(86, 'transfer', 'Unable to perform', '009', 'pred_10', '100024'),
(87, 'Walking indoor', 'Unable to perform', '009', 'pred_10', '100024'),
(88, 'stairs', 'Unable to perform', '009', 'pred_10', '100024'),
(89, 'turning over', 'Unable to perform', '009', 'pred_10', '100024'),
(90, 'lying or siting', 'Unable to perform', '009', 'pred_10', '100024'),
(91, 'sitting balance', 'Unable to perform', '009', 'pred_10', '100024'),
(92, 'sitting to standing', 'Unable to perform', '009', 'pred_10', '100024'),
(93, 'standing', 'Unable to perform', '009', 'pred_10', '100024'),
(94, 'transfer', 'Unable to perform', '009', 'pred_10', '100024'),
(95, 'Walking indoor', 'Unable to perform', '009', 'pred_10', '100024'),
(96, 'stairs', 'Unable to perform', '009', 'pred_10', '100024'),
(97, 'turning over', 'Unable to perform', '009', 'pred_10', '100024'),
(98, 'lying or siting', 'Unable to perform', '009', 'pred_10', '100024'),
(99, 'sitting balance', 'Unable to perform', '009', 'pred_10', '100024'),
(100, 'sitting to standing', 'Unable to perform', '009', 'pred_10', '100024'),
(101, 'standing', 'Unable to perform', '009', 'pred_10', '100024'),
(102, 'transfer', 'Unable to perform', '009', 'pred_10', '100024'),
(103, 'Walking indoor', 'Unable to perform', '009', 'pred_10', '100024'),
(104, 'stairs', 'Unable to perform', '009', 'pred_10', '100024');
-- --------------------------------------------------------
--
-- Table structure for table `patient`
--
CREATE TABLE `patient` (
`id` int(11) NOT NULL,
`patientnum` varchar(100) NOT NULL,
`name` varchar(100) NOT NULL,
`DOB` varchar(300) NOT NULL,
`address` varchar(100) NOT NULL,
`sex` varchar(7) NOT NULL,
`physician` varchar(100) NOT NULL,
`ward` varchar(50) NOT NULL,
`ref` varchar(250) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `patient`
--
INSERT INTO `patient` (`id`, `patientnum`, `name`, `DOB`, `address`, `sex`, `physician`, `ward`, `ref`, `date`) VALUES
(1, '12', 'young', '27', '6 goshen street afobaje estate ota', 'female', 'adebowale', '5b', 'FMC (12001020)', '2018-08-25 19:48:40'),
(5, '556', 'olutayo', '45', '6 goshen street afobaje estate ota ', 'male', 'dr. jinaid', '46', 'fever', '2018-08-14 10:15:47'),
(6, '234', 'yakubu', '27', 'abeokuta', 'male', 'sdfasag', '5b', 'fever', '2018-08-10 07:36:43'),
(7, '303', 'adebowale', '27', '6 t afobaje estate ota', 'male', '0558504933', '5b', 'fever', '2018-09-24 15:40:43'),
(8, '670', 'adewal', '48', '6 goshen street afobaje estate ota', 'male', '45679', '5b', 'uth', '2018-10-05 10:48:36'),
(9, '0', '', '0', 'hhhngfb', 'male', '', 'dggv', '', '2018-10-09 15:52:13'),
(10, 'NHIS-100', '<NAME>', '2018-10-04', 'abeokuta', 'male', '001', '2', 'Gen Hospital Ijaye', '2018-10-24 07:53:54');
-- --------------------------------------------------------
--
-- Table structure for table `physio`
--
CREATE TABLE `physio` (
`id` int(250) NOT NULL,
`user` varchar(200) NOT NULL,
`pass` varchar(200) NOT NULL,
`dt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`name` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `physio`
--
INSERT INTO `physio` (`id`, `user`, `pass`, `dt`, `name`) VALUES
(1, 'fff', '', '2018-08-31 19:28:09', ''),
(3, 'gan', 'damilola92', '2018-08-31 19:33:44', '<NAME>'),
(4, 'hhh', 'damilola92', '2018-08-31 19:34:53', '<NAME>'),
(5, 'zzz', 'damilola92', '2018-08-31 19:36:03', 'zinedine zideane');
-- --------------------------------------------------------
--
-- Table structure for table `receipt`
--
CREATE TABLE `receipt` (
`id` int(200) NOT NULL,
`receipt_no` int(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `receipt`
--
INSERT INTO `receipt` (`id`, `receipt_no`) VALUES
(1, 100024);
-- --------------------------------------------------------
--
-- Table structure for table `receipt_num`
--
CREATE TABLE `receipt_num` (
`id` int(200) NOT NULL,
`num` int(123) NOT NULL,
`rec` int(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `receipt_num`
--
INSERT INTO `receipt_num` (`id`, `num`, `rec`) VALUES
(1, 234, 0),
(2, 100008, 0),
(3, 234, 100008),
(4, 234, 100009),
(5, 234, 100010),
(6, 234, 100011),
(7, 234, 100013),
(8, 234, 100013),
(9, 234, 100013),
(10, 234, 100013);
-- --------------------------------------------------------
--
-- Table structure for table `report`
--
CREATE TABLE `report` (
`id` int(200) NOT NULL,
`issue` varchar(200) NOT NULL,
`plain` varchar(200) NOT NULL,
`limb` varchar(200) NOT NULL,
`dt` varchar(10) NOT NULL,
`num` varchar(200) NOT NULL,
`tp` varchar(100) NOT NULL,
`analysis` text NOT NULL,
`receipt` int(100) NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`diagnosis` varchar(50000) NOT NULL,
`physio` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `report`
--
INSERT INTO `report` (`id`, `issue`, `plain`, `limb`, `dt`, `num`, `tp`, `analysis`, `receipt`, `time`, `diagnosis`, `physio`) VALUES
(1, ' Hamstrings ', 'aaaaaaaaaaaaaa', 'Right', '2018/08/14', '12', 'LOWER', 'Will need physiotheraphy every three days.', 100001, '2018-08-25 19:46:00', 'left lower limb fracture', ''),
(2, ' Gastorcnemius ', 'gggggggggggggggg', 'Right', '2018/08/14', '12', 'LOWER', 'Will need physiotheraphy every three days.', 100001, '2018-08-25 19:46:00', 'left lower limb fracture', ''),
(3, ' <NAME> ', 'tttttttttttttttttt', 'Right', '2018/08/14', '12', 'LOWER', 'Will need physiotheraphy every three days.', 100001, '2018-08-25 19:46:00', 'left lower limb fracture', ''),
(4, ' Hamstrings ', 'lolo', 'Right', '2018/08/14', '12', 'LOWER', 'Will need physiotheraphy every three days.', 100002, '2018-08-25 19:46:00', 'left lower limb fracture', ''),
(5, ' Hip Flexors ', 'kmjk', 'Right', '2018/08/14', '12', 'LOWER', 'Will need physiotheraphy every three days.', 100002, '2018-08-25 19:46:00', 'left lower limb fracture', ''),
(6, ' Flexor Digitorum Longus ', 'aaaaaaaaaaaaa', 'Right', '2018/08/18', '12', 'LOWER', 'Will need physiotheraphy every three days.', 100003, '2018-08-25 19:46:00', 'left lower limb fracture', ''),
(7, ' Flexor Hallucis Longus ', 'eeeeeeeeeeeeee', 'Right', '2018/08/18', '12', 'LOWER', 'Will need physiotheraphy every three days.', 100003, '2018-08-25 19:46:00', 'left lower limb fracture', ''),
(8, ' Gastorcnemius ', 'tttttttttttttttt', 'Right', '2018/08/18', '12', 'LOWER', 'Will need physiotheraphy every three days.', 100003, '2018-08-25 19:46:00', 'left lower limb fracture', ''),
(9, ' Elevator Of Shoulder Girdle ', 'eeeeeeeeeeeeee', 'Right', '2018/08/18', '234', 'UPPER', 'Will need physiotheraphy every three days...', 100004, '2018-08-18 16:48:15', '', ''),
(10, ' Pronators Of Forearm ', 'tttttttttttttttt', 'Left', '2018/08/18', '234', 'UPPER', 'Will need physiotheraphy every three days...', 100004, '2018-08-18 16:48:15', '', ''),
(11, ' Finger Flexors ', 'eeeeeeeeeeeeee', 'Right', '2018/08/18', '234', 'UPPER', 'Will need physiotheraphy every three days...', 100004, '2018-08-18 16:48:15', '', ''),
(12, ' Elbow Flexors ', 'tttttttttttttttt', 'Left', '2018/08/18', '234', 'UPPER', 'Will need physiotheraphy every three days...', 100004, '2018-08-18 16:48:15', '', ''),
(13, ' Shoulder Extensors ', 'tttttttttttttttt', 'Left', '2018/08/18', '234', 'UPPER', 'Will need physiotheraphy every three days...', 100004, '2018-08-18 16:48:15', '', ''),
(14, ' Shoulder Flexors ', 'tttttttttttttttt', 'Left', '2018/08/18', '234', 'UPPER', 'Will need physiotheraphy every three days...', 100004, '2018-08-18 16:48:15', '', ''),
(15, ' Finger Extensor ', 'tttttttttttttttt', 'Right', '2018/08/18', '234', 'UPPER', 'Will need physiotheraphy every three days...', 100004, '2018-08-18 16:48:15', '', ''),
(16, ' Shoulder Abductors ', 'ggggggggggggg', 'Left', '2018/08/19', '12', 'UPPER', 'Will need physiotheraphy every three days.', 100005, '2018-08-25 19:46:00', 'left lower limb fracture', ''),
(17, ' Shoulder External Rotators ', 'eeeeeeeeeeeeee', 'Right', '2018/08/19', '12', 'UPPER', 'Will need physiotheraphy every three days.', 100005, '2018-08-25 19:46:00', 'left lower limb fracture', ''),
(18, ' Hip Flexors ', 'aaaaaaaaaaaaa', 'Right', '2018/08/25', '12', 'LOWER', 'ddddddddddddddddddddddddddddddddddddd', 100006, '2018-08-25 20:00:18', 'right lower limb fracture', ''),
(19, ' Flexor Digitorum Longus ', 'ggggggggggggg', 'Right', '2018/08/25', '12', 'LOWER', 'ddddddddddddddddddddddddddddddddddddd', 100006, '2018-08-25 20:00:18', 'right lower limb fracture', ''),
(20, ' Flexor Hallucis Longus ', 'tttttttttttttttt', 'Right', '2018/08/25', '12', 'LOWER', 'ddddddddddddddddddddddddddddddddddddd', 100006, '2018-08-25 20:00:18', 'right lower limb fracture', ''),
(21, ' Extensor Hollucis Longus ', 'eeeeeeeeeeeeee', 'Left', '2018/08/25', '12', 'LOWER', 'ddddddddddddddddddddddddddddddddddddd', 100007, '2018-08-25 20:00:18', 'right lower limb fracture', ''),
(22, ' Gastorcnemius ', 'ggggggggggggg', 'Left', '2018/08/25', '12', 'LOWER', 'ddddddddddddddddddddddddddddddddddddd', 100007, '2018-08-25 20:00:18', 'right lower limb fracture', ''),
(23, ' Hip Extensors ', 'tttttttttttttttt', 'Right', '2018/08/25', '12', 'LOWER', 'ddddddddddddddddddddddddddddddddddddd', 100007, '2018-08-25 20:00:18', 'right lower limb fracture', ''),
(24, ' Shoulder Extensors ', 'ggggggggggggg', 'Left', '2018/08/25', '234', 'UPPER', 'aaaaaaaaaaaaaaa', 100008, '2018-08-25 22:10:52', 'right lower limb fracture', ''),
(25, ' Pronators Of Forearm ', 'aaaaaaaaaaaaa', 'Right', '2018/08/25', '234', 'UPPER', 'aaaaaaaaaaaaaaa', 100008, '2018-08-25 22:10:52', 'right lower limb fracture', ''),
(26, ' Shoulder Flexors ', 'tttttttttttttttt', 'Left', '2018/08/25', '234', 'UPPER', 'aaaaaaaaaaaaaaa', 100008, '2018-08-25 22:10:52', 'right lower limb fracture', ''),
(27, ' Pronators Of Forearm ', 'aaaaaaaaaaaaa', 'Left', '2018/08/25', '234', 'UPPER', 'aaaaaaaaaaaaaaa', 100009, '2018-08-25 22:10:52', 'right lower limb fracture', ''),
(28, ' Finger Flexors ', 'ggggggggggggg', 'Right', '2018/08/25', '234', 'UPPER', 'aaaaaaaaaaaaaaa', 100009, '2018-08-25 22:10:52', 'right lower limb fracture', ''),
(29, ' Flexor Hallucis Longus ', 'eeeeeeeeeeeeee', 'Right', '2018/08/25', '234', 'LOWER', 'aaaaaaaaaaaaaaa', 100010, '2018-08-25 22:10:52', 'right lower limb fracture', ''),
(30, ' Gastorcnemius ', 'ggggggggggggg', 'Right', '2018/08/25', '234', 'LOWER', 'aaaaaaaaaaaaaaa', 100010, '2018-08-25 22:10:52', 'right lower limb fracture', ''),
(31, ' Flexor Digitorum Longus ', 'ggggggggggggg', 'Right', '2018/08/25', '234', 'LOWER', 'aaaaaaaaaaaaaaa', 100010, '2018-08-25 22:10:52', 'right lower limb fracture', ''),
(32, ' Hip Extensors ', 'ggggggggggggg', 'Right', '2018/08/25', '234', 'LOWER', 'aaaaaaaaaaaaaaa', 100010, '2018-08-25 22:10:52', 'right lower limb fracture', ''),
(33, ' Flexor Hallucis Longus ', 'eeeeeeeeeeeeee', 'Right', '2018/08/31', '234', 'LOWER', 'jjjjj', 100011, '2018-08-31 23:39:45', 'left lower limb fracture', 'Ganiyu Adisa'),
(34, ' Hip Extensors ', 'ggggggggggggg', 'Right', '2018/08/31', '234', 'LOWER', 'jjjjj', 100011, '2018-08-31 23:39:45', 'left lower limb fracture', 'Ganiyu Adisa'),
(35, ' Hamstrings ', 'ggggggggggggg', 'Right', '2018/08/31', '234', 'LOWER', 'jjjjj', 100011, '2018-08-31 23:39:45', 'left lower limb fracture', 'Ganiyu Adisa'),
(36, ' Hip Internal Rotators ', 'ggggggggggggg', 'Right', '2018/08/31', '234', 'LOWER', 'jjjjj', 100011, '2018-08-31 23:39:45', 'left lower limb fracture', 'Ganiyu Adisa'),
(37, ' Hip External Rotators ', 'ggggggggggggg', 'Right', '2018/08/31', '234', 'LOWER', 'jjjjj', 100011, '2018-08-31 23:39:45', 'left lower limb fracture', 'Ganiyu Adisa'),
(38, ' Hip Flexors ', 'aaaaaaaaaaaaaa', 'Right', '2018/08/31', '12', 'LOWER', '', 100012, '2018-08-31 19:48:56', '', ''),
(39, ' Hip External Rotators ', 'ggggggggggggggg', 'Right', '2018/08/31', '12', 'LOWER', '', 100012, '2018-08-31 19:48:56', '', ''),
(40, ' Hip Extensors ', 'nn', 'Right', '2018/08/31', '12', 'LOWER', '', 100012, '2018-08-31 19:48:56', '', ''),
(41, ' Hip Internal Rotators ', 'aaaaaaaaaaaaa', 'Right', '2018/08/31', '234', 'LOWER', 'jjjjj', 100013, '2018-08-31 23:39:45', 'left lower limb fracture', 'Ganiyu Adisa'),
(42, ' Hip External Rotators ', 'ggggggggggggg', 'Right', '2018/08/31', '234', 'LOWER', 'jjjjj', 100013, '2018-08-31 23:39:45', 'left lower limb fracture', 'Ganiyu Adisa'),
(43, ' Flexor Digitorum Longus ', 'eeeeeeeeeeeeee', 'Right', '2018/08/31', '234', 'LOWER', 'jjjjj', 100013, '2018-08-31 23:39:45', 'left lower limb fracture', 'Ganiyu Adisa'),
(44, ' Extensor Hollucis Longus ', 'vd', 'Right', '2018/11/13', 'pred_10', 'LOWER', 'njk', 100014, '2018-11-13 10:17:14', 'dfsfs', '<NAME>'),
(45, ' Flexor Hallucis Longus ', 'sdf', 'Right', '2018/11/13', 'pred_10', 'LOWER', 'njk', 100014, '2018-11-13 10:17:14', 'dfsfs', '<NAME>'),
(46, ' Hamstrings ', 'vd', 'Right', '2018/11/13', 'pred_10', 'LOWER', 'njk', 100014, '2018-11-13 10:17:14', 'dfsfs', '<NAME>'),
(47, ' Flexor Digitorum Longus ', 'ada', 'Right', '2018/11/13', 'pred_10', 'LOWER', 'njk', 100015, '2018-11-13 10:17:14', 'dfsfs', '<NAME>'),
(48, ' Gastorcnemius ', 'rwfr', 'Right', '2018/11/13', 'pred_10', 'LOWER', 'njk', 100015, '2018-11-13 10:17:14', 'dfsfs', '<NAME>'),
(49, ' Hip External Rotators ', 'jthygf', 'Right', '2018/11/13', 'pred_10', 'LOWER', 'njk', 100015, '2018-11-13 10:17:14', 'dfsfs', '<NAME>'),
(50, ' Hip Extensors ', 'yjhgtf', 'Right', '2018/11/13', 'pred_10', 'LOWER', 'njk', 100015, '2018-11-13 10:17:14', 'dfsfs', '<NAME>');
-- --------------------------------------------------------
--
-- Table structure for table `upper`
--
CREATE TABLE `upper` (
`id` int(11) NOT NULL,
`tp` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `upper`
--
INSERT INTO `upper` (`id`, `tp`) VALUES
(1, 'Finger Extensor'),
(2, 'Finger Flexors'),
(3, 'Wrist Extensors'),
(4, 'Wrist Flexors'),
(5, 'Supinators Of Forearm'),
(6, 'Pronators Of Forearm'),
(7, 'Elbow Extensors'),
(8, 'Elbow Flexors'),
(9, 'Shoulder Extensors'),
(10, 'Shoulder Flexors'),
(11, 'Shoulder Abductors'),
(12, 'Shoulder Internal Rotators'),
(13, 'Shoulder External Rotators'),
(14, 'Elevator Of Shoulder Girdle'),
(15, 'Back Extensors');
-- --------------------------------------------------------
--
-- Table structure for table `upperlimb`
--
CREATE TABLE `upperlimb` (
`id` int(11) NOT NULL,
`Finger Extensor` varchar(255) NOT NULL,
`Finger Flexors` varchar(255) NOT NULL,
`Wrist Extensors` varchar(255) NOT NULL,
`Wrist Flexors` varchar(255) NOT NULL,
`Supinators Of Forearm` varchar(255) NOT NULL,
`Pronators Of Forearm` varchar(255) NOT NULL,
`Elbow Extensors` varchar(255) NOT NULL,
`Elbow Flexors` varchar(255) NOT NULL,
`Shoulder Extensors` varchar(255) NOT NULL,
`Shoulder Flexors` varchar(255) NOT NULL,
`Shoulder Abductors` varchar(255) NOT NULL,
`Shoulder Internal Rotators` varchar(255) NOT NULL,
`Shoulder External Rotators` varchar(255) NOT NULL,
`Elevator Of Shoulder Girdle` varchar(255) NOT NULL,
`Back Extensors` varchar(255) NOT NULL,
`date` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL,
`username` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `username`, `email`, `password`, `date`) VALUES
(1, 'Admin', '<EMAIL>', '<PASSWORD>', '2018-08-05 21:43:12');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `ans`
--
ALTER TABLE `ans`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `asp`
--
ALTER TABLE `asp`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `idtwo` (`idtwo`);
--
-- Indexes for table `asp1`
--
ALTER TABLE `asp1`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `asp2`
--
ALTER TABLE `asp2`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `asp4`
--
ALTER TABLE `asp4`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `aspques`
--
ALTER TABLE `aspques`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `aspques2`
--
ALTER TABLE `aspques2`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `lower`
--
ALTER TABLE `lower`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `lowerlimb`
--
ALTER TABLE `lowerlimb`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `object`
--
ALTER TABLE `object`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `patient`
--
ALTER TABLE `patient`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `phynum` (`patientnum`);
--
-- Indexes for table `physio`
--
ALTER TABLE `physio`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `receipt`
--
ALTER TABLE `receipt`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `receipt_num`
--
ALTER TABLE `receipt_num`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `report`
--
ALTER TABLE `report`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `upper`
--
ALTER TABLE `upper`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `upperlimb`
--
ALTER TABLE `upperlimb`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `ans`
--
ALTER TABLE `ans`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `asp`
--
ALTER TABLE `asp`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `asp1`
--
ALTER TABLE `asp1`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `asp2`
--
ALTER TABLE `asp2`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `asp4`
--
ALTER TABLE `asp4`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `aspques`
--
ALTER TABLE `aspques`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `aspques2`
--
ALTER TABLE `aspques2`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;
--
-- AUTO_INCREMENT for table `lower`
--
ALTER TABLE `lower`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `lowerlimb`
--
ALTER TABLE `lowerlimb`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `object`
--
ALTER TABLE `object`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=105;
--
-- AUTO_INCREMENT for table `patient`
--
ALTER TABLE `patient`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `physio`
--
ALTER TABLE `physio`
MODIFY `id` int(250) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `receipt`
--
ALTER TABLE `receipt`
MODIFY `id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `receipt_num`
--
ALTER TABLE `receipt_num`
MODIFY `id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `report`
--
ALTER TABLE `report`
MODIFY `id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51;
--
-- AUTO_INCREMENT for table `upper`
--
ALTER TABLE `upper`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `upperlimb`
--
ALTER TABLE `upperlimb`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- Database: `fmcphy_occp`
--
CREATE DATABASE IF NOT EXISTS `fmcphy_occp` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `fmcphy_occp`;
-- --------------------------------------------------------
--
-- Table structure for table `activity`
--
CREATE TABLE `activity` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`issue` varchar(2000) NOT NULL,
`answer` varchar(2000) NOT NULL,
`comment` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `activity`
--
INSERT INTO `activity` (`id`, `num`, `rec`, `issue`, `answer`, `comment`) VALUES
(1, 'PRED_10', '1000005', 'Self-feeding', 'Min Asst', ''),
(2, 'PRED_10', '1000005', 'Hygiene/grooming', 'DeMax Asst', ''),
(3, 'PRED_10', '1000005', 'Upper body(UB) bathing', 'Supervision', ''),
(4, 'PRED_10', '1000005', 'Upper Body dressing', 'Min Asst', ''),
(5, 'PRED_10', '1000005', 'Bathing/shower', 'Supervision', ''),
(6, 'PRED_10', '1000005', 'Toilet transfer', 'Mod Asst', ''),
(7, 'PRED_10', '1000005', 'Toileting skills', 'Supervision', ''),
(8, 'PRED_10', '1000005', 'Functional mobility', 'Mod Asst', ''),
(9, 'PRED_10', '1000005', 'Personal device Care', 'Dependent', ''),
(10, 'PRED_10', '1000005', 'Other', 'other here', ''),
(11, 'PRED_10', '1000006', 'Self-feeding', 'Min Asst', 'comment'),
(12, 'PRED_10', '1000006', 'Hygiene/grooming', 'DeMax Asst', 'aasxdc'),
(13, 'PRED_10', '1000006', 'Upper body(UB) bathing', 'Mod Asst', 'ghjbn'),
(14, 'PRED_10', '1000006', 'Upper Body dressing', 'DeMax Asst', 'yuj'),
(15, 'PRED_10', '1000006', 'Bathing/shower', 'Mod Asst', 'ijh'),
(16, 'PRED_10', '1000006', 'Toilet transfer', 'Mod Asst', 'asxc'),
(17, 'PRED_10', '1000006', 'Toileting skills', 'Dependent', 'qwed'),
(18, 'PRED_10', '1000006', 'Functional mobility', 'Dependent', 'azxsmnjh'),
(19, 'PRED_10', '1000006', 'Personal device Care', 'Min Asst', 'vbgtyh'),
(20, 'PRED_10', '1000006', 'Other', '', 'oplk'),
(21, 'PRED_10', '1000007', 'Self-feeding', 'Mod Asst', 'ooo'),
(22, 'PRED_10', '1000007', 'Hygiene/grooming', 'Min Asst', 'sajnds'),
(23, 'PRED_10', '1000007', 'Upper body(UB) bathing', 'independent', 'sdaeqd'),
(24, 'PRED_10', '1000007', 'Upper Body dressing', 'Supervision', 'sad dasa'),
(25, 'PRED_10', '1000007', 'Bathing/shower', 'DeMax Asst', 'sadas'),
(26, 'PRED_10', '1000007', 'Toilet transfer', 'Mod Asst', 'asd'),
(27, 'PRED_10', '1000007', 'Toileting skills', 'Dependent', 'scas'),
(28, 'PRED_10', '1000007', 'Functional mobility', 'Dependent', 'sdc'),
(29, 'PRED_10', '1000007', 'Personal device Care', 'DeMax Asst', ''),
(30, 'PRED_10', '1000007', 'Other', '', ''),
(31, 'PRED_11', '1000008', 'Self-feeding', 'DeMax Asst', 'gvyuhvjb'),
(32, 'PRED_11', '1000008', 'Hygiene/grooming', 'independent', 'dxfgxhh'),
(33, 'PRED_11', '1000008', 'Upper body(UB) bathing', 'DeMax Asst', 'jhbuhbuhy'),
(34, 'PRED_11', '1000008', 'Upper Body dressing', 'Mod Asst', 'weszrdfx'),
(35, 'PRED_11', '1000008', 'Bathing/shower', 'Supervision', 'hgvjbm hgj'),
(36, 'PRED_11', '1000008', 'Toilet transfer', 'DeMax Asst', 'szdfx'),
(37, 'PRED_11', '1000008', 'Toileting skills', 'Dependent', 'ytgh'),
(38, 'PRED_11', '1000008', 'Functional mobility', 'Dependent', 'ujmyhn'),
(39, 'PRED_11', '1000008', 'Personal device Care', 'Dependent', 'oiujkmnh'),
(40, 'PRED_11', '1000008', 'Other', 'vghgh', 'ecftghv'),
(41, 'PRED_11', '1000011', 'Self-feeding', 'Min Asst', ''),
(42, 'PRED_11', '1000011', 'Hygiene/grooming', 'Dependent', ''),
(43, 'PRED_11', '1000011', 'Upper body(UB) bathing', 'Dependent', ''),
(44, 'PRED_11', '1000011', 'Upper Body dressing', 'Dependent', ''),
(45, 'PRED_11', '1000011', 'Bathing/shower', 'Dependent', ''),
(46, 'PRED_11', '1000011', 'Toilet transfer', 'Dependent', ''),
(47, 'PRED_11', '1000011', 'Toileting skills', 'Dependent', ''),
(48, 'PRED_11', '1000011', 'Functional mobility', 'Dependent', ''),
(49, 'PRED_11', '1000011', 'Personal device Care', 'Dependent', ''),
(50, 'PRED_11', '1000011', 'Other', '', ''),
(51, 'PRED_10', '1000012', 'Self-feeding', 'Mod Asst', ''),
(52, 'PRED_10', '1000012', 'Hygiene/grooming', 'Min Asst', 'bnh'),
(53, 'PRED_10', '1000012', 'Upper body(UB) bathing', 'Min Asst', 'jjjb'),
(54, 'PRED_10', '1000012', 'Upper Body dressing', 'Mod Asst', ''),
(55, 'PRED_10', '1000012', 'Bathing/shower', 'Min Asst', 'hvbj'),
(56, 'PRED_10', '1000012', 'Toilet transfer', 'Min Asst', ''),
(57, 'PRED_10', '1000012', 'Toileting skills', 'Mod Asst', ''),
(58, 'PRED_10', '1000012', 'Functional mobility', 'Dependent', ''),
(59, 'PRED_10', '1000012', 'Personal device Care', 'Dependent', ''),
(60, 'PRED_10', '1000012', 'Other', '', ''),
(61, 'PRED_16', '1000015', 'Self-feeding', 'Dependent', ''),
(62, 'PRED_16', '1000015', 'Hygiene/grooming', 'Dependent', ''),
(63, 'PRED_16', '1000015', 'Upper body(UB) bathing', 'Dependent', ''),
(64, 'PRED_16', '1000015', 'Upper Body dressing', 'Dependent', ''),
(65, 'PRED_16', '1000015', 'Bathing/shower', 'Dependent', ''),
(66, 'PRED_16', '1000015', 'Toilet transfer', 'Dependent', ''),
(67, 'PRED_16', '1000015', 'Toileting skills', 'Dependent', ''),
(68, 'PRED_16', '1000015', 'Functional mobility', 'Dependent', ''),
(69, 'PRED_16', '1000015', 'Personal device Care', 'Dependent', ''),
(70, 'PRED_16', '1000015', 'Other', '', ''),
(71, 'PRED_16', '1000016', 'Self-feeding', 'Dependent', ''),
(72, 'PRED_16', '1000016', 'Hygiene/grooming', 'Dependent', ''),
(73, 'PRED_16', '1000016', 'Upper body(UB) bathing', 'Dependent', ''),
(74, 'PRED_16', '1000016', 'Upper Body dressing', 'Dependent', ''),
(75, 'PRED_16', '1000016', 'Bathing/shower', 'Dependent', ''),
(76, 'PRED_16', '1000016', 'Toilet transfer', 'Dependent', ''),
(77, 'PRED_16', '1000016', 'Toileting skills', 'Dependent', ''),
(78, 'PRED_16', '1000016', 'Functional mobility', 'Dependent', ''),
(79, 'PRED_16', '1000016', 'Personal device Care', 'Dependent', ''),
(80, 'PRED_16', '1000016', 'Other', '', ''),
(81, 'PRED_16', '1000020', 'Self-feeding', 'Dependent', ''),
(82, 'PRED_16', '1000020', 'Hygiene/grooming', 'Dependent', ''),
(83, 'PRED_16', '1000020', 'Upper body(UB) bathing', 'Mod Asst', ''),
(84, 'PRED_16', '1000020', 'Upper Body dressing', 'Supervision', ''),
(85, 'PRED_16', '1000020', 'Bathing/shower', 'Modified independent', ''),
(86, 'PRED_16', '1000020', 'Toilet transfer', 'Dependent', ''),
(87, 'PRED_16', '1000020', 'Toileting skills', 'Dependent', ''),
(88, 'PRED_16', '1000020', 'Functional mobility', 'Dependent', ''),
(89, 'PRED_16', '1000020', 'Personal device Care', 'Supervision', ''),
(90, 'PRED_16', '1000020', 'Lower body dressing', 'Dependent', ''),
(91, 'PRED_16', '1000020', 'Other', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `ADL`
--
CREATE TABLE `ADL` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`issue` varchar(2000) NOT NULL,
`answer` varchar(2000) NOT NULL,
`comment` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `ADL`
--
INSERT INTO `ADL` (`id`, `num`, `rec`, `issue`, `answer`, `comment`) VALUES
(1, 'PRED_10', '1000005', 'Kitchen survival skills', 'DeMax Asst', 'kitchen survival skills'),
(2, 'PRED_10', '1000005', 'Meal preparation', 'Supervision', 'sss'),
(3, 'PRED_10', '1000005', 'Shopping', 'DeMax Asst', ''),
(4, 'PRED_10', '1000005', 'Laundry', 'Min Asst', ''),
(5, 'PRED_10', '1000005', 'Light housekeeping', 'Dependent', 'Adfrgtgtg'),
(6, 'PRED_10', '1000005', 'Community mobility', 'DeMax Asst', 'Post'),
(7, 'PRED_10', '1000005', 'Financial mgmt', 'Mod Asst', ''),
(8, 'PRED_10', '1000005', 'Care of others', 'Supervision', ''),
(9, 'PRED_10', '1000005', 'Religious observance', 'Dependent', ''),
(10, 'PRED_10', '1000005', 'Other', 'other here', ''),
(11, 'PRED_10', '1000005', 'Kitchen survival skills', 'DeMax Asst', 'kitchen survival skills'),
(12, 'PRED_10', '1000005', 'Meal preparation', 'Supervision', 'sss'),
(13, 'PRED_10', '1000005', 'Shopping', 'DeMax Asst', ''),
(14, 'PRED_10', '1000005', 'Laundry', 'Min Asst', ''),
(15, 'PRED_10', '1000005', 'Light housekeeping', 'Dependent', 'Adfrgtgtg'),
(16, 'PRED_10', '1000005', 'Community mobility', 'DeMax Asst', 'Post'),
(17, 'PRED_10', '1000005', 'Financial mgmt', 'Mod Asst', ''),
(18, 'PRED_10', '1000005', 'Care of others', 'Supervision', ''),
(19, 'PRED_10', '1000005', 'Religious observance', 'Dependent', ''),
(20, 'PRED_10', '1000005', 'Other', 'other here', ''),
(21, 'PRED_10', '1000006', 'Kitchen survival skills', 'Mod Asst', 'kmnhj'),
(22, 'PRED_10', '1000006', 'Meal preparation', 'Mod Asst', 'erfd'),
(23, 'PRED_10', '1000006', 'Shopping', 'Mod Asst', 'ujxsafvgb'),
(24, 'PRED_10', '1000006', 'Laundry', 'Min Asst', ''),
(25, 'PRED_10', '1000006', 'Light housekeeping', 'independent', ''),
(26, 'PRED_10', '1000006', 'Community mobility', 'Dependent', 'gajsjk'),
(27, 'PRED_10', '1000006', 'Financial mgmt', 'Supervision', 'olki'),
(28, 'PRED_10', '1000006', 'Care of others', 'Min Asst', 'tyhfr'),
(29, 'PRED_10', '1000006', 'Religious observance', 'Dependent', 'refd'),
(30, 'PRED_10', '1000006', 'Other', '', ''),
(31, 'PRED_10', '1000007', 'Kitchen survival skills', 'DeMax Asst', 'comment'),
(32, 'PRED_10', '1000007', 'Meal preparation', 'Mod Asst', 'vbgn'),
(33, 'PRED_10', '1000007', 'Shopping', 'Dependent', ''),
(34, 'PRED_10', '1000007', 'Laundry', 'Min Asst', 'uijuj'),
(35, 'PRED_10', '1000007', 'Light housekeeping', 'independent', ''),
(36, 'PRED_10', '1000007', 'Community mobility', 'Supervision', 'comment'),
(37, 'PRED_10', '1000007', 'Financial mgmt', 'Dependent', 'yuwqsdsa'),
(38, 'PRED_10', '1000007', 'Care of others', 'Dependent', 'ased'),
(39, 'PRED_10', '1000007', 'Religious observance', 'Min Asst', 'mkl'),
(40, 'PRED_10', '1000007', 'Other', '', ''),
(41, 'PRED_11', '1000008', 'Kitchen survival skills', 'Mod Asst', ''),
(42, 'PRED_11', '1000008', 'Meal preparation', 'Min Asst', ''),
(43, 'PRED_11', '1000008', 'Shopping', 'Dependent', ''),
(44, 'PRED_11', '1000008', 'Laundry', 'Dependent', ''),
(45, 'PRED_11', '1000008', 'Light housekeeping', 'Dependent', ''),
(46, 'PRED_11', '1000008', 'Community mobility', 'Dependent', ''),
(47, 'PRED_11', '1000008', 'Financial mgmt', 'Dependent', ''),
(48, 'PRED_11', '1000008', 'Care of others', 'Dependent', ''),
(49, 'PRED_11', '1000008', 'Religious observance', 'Dependent', ''),
(50, 'PRED_11', '1000008', 'Other', '', ''),
(51, 'PRED_11', '1000011', 'Kitchen survival skills', 'Dependent', ''),
(52, 'PRED_11', '1000011', 'Meal preparation', 'Dependent', ''),
(53, 'PRED_11', '1000011', 'Shopping', 'Dependent', ''),
(54, 'PRED_11', '1000011', 'Laundry', 'Dependent', ''),
(55, 'PRED_11', '1000011', 'Light housekeeping', 'Dependent', ''),
(56, 'PRED_11', '1000011', 'Community mobility', 'Dependent', ''),
(57, 'PRED_11', '1000011', 'Financial mgmt', 'Dependent', ''),
(58, 'PRED_11', '1000011', 'Care of others', 'Dependent', ''),
(59, 'PRED_11', '1000011', 'Religious observance', 'Dependent', ''),
(60, 'PRED_11', '1000011', 'Other', '', ''),
(61, 'PRED_10', '1000012', 'Kitchen survival skills', 'Mod Asst', ''),
(62, 'PRED_10', '1000012', 'Meal preparation', 'Mod Asst', ''),
(63, 'PRED_10', '1000012', 'Shopping', 'Dependent', ''),
(64, 'PRED_10', '1000012', 'Laundry', 'Dependent', ''),
(65, 'PRED_10', '1000012', 'Light housekeeping', 'Dependent', ''),
(66, 'PRED_10', '1000012', 'Community mobility', 'Dependent', ''),
(67, 'PRED_10', '1000012', 'Financial mgmt', 'Dependent', ''),
(68, 'PRED_10', '1000012', 'Care of others', 'Dependent', 'ewad'),
(69, 'PRED_10', '1000012', 'Religious observance', 'Mod Asst', 'eff'),
(70, 'PRED_10', '1000012', 'Other', '', 'wrgf'),
(71, 'PRED_16', '1000015', 'Kitchen survival skills', 'Dependent', ''),
(72, 'PRED_16', '1000015', 'Meal preparation', 'Dependent', ''),
(73, 'PRED_16', '1000015', 'Shopping', 'Dependent', ''),
(74, 'PRED_16', '1000015', 'Laundry', 'Dependent', ''),
(75, 'PRED_16', '1000015', 'Light housekeeping', 'Dependent', ''),
(76, 'PRED_16', '1000015', 'Community mobility', 'Dependent', ''),
(77, 'PRED_16', '1000015', 'Financial mgmt', 'Dependent', ''),
(78, 'PRED_16', '1000015', 'Care of others', 'Dependent', ''),
(79, 'PRED_16', '1000015', 'Religious observance', 'Dependent', ''),
(80, 'PRED_16', '1000015', 'Other', '', ''),
(81, 'PRED_16', '1000016', 'Kitchen survival skills', 'Dependent', ''),
(82, 'PRED_16', '1000016', 'Meal preparation', 'Dependent', ''),
(83, 'PRED_16', '1000016', 'Shopping', 'Dependent', ''),
(84, 'PRED_16', '1000016', 'Laundry', 'Dependent', ''),
(85, 'PRED_16', '1000016', 'Light housekeeping', 'Dependent', ''),
(86, 'PRED_16', '1000016', 'Community mobility', 'Dependent', ''),
(87, 'PRED_16', '1000016', 'Financial mgmt', 'Dependent', ''),
(88, 'PRED_16', '1000016', 'Care of others', 'Dependent', ''),
(89, 'PRED_16', '1000016', 'Religious observance', 'Dependent', ''),
(90, 'PRED_16', '1000016', 'Other', '', ''),
(91, 'PRED_16', '1000020', 'Kitchen survival skills', 'Dependent', ''),
(92, 'PRED_16', '1000020', 'Meal preparation', 'Dependent', ''),
(93, 'PRED_16', '1000020', 'Shopping', 'Dependent', ''),
(94, 'PRED_16', '1000020', 'Laundry', 'Dependent', ''),
(95, 'PRED_16', '1000020', 'Light housekeeping', 'Dependent', ''),
(96, 'PRED_16', '1000020', 'Community mobility', 'Dependent', ''),
(97, 'PRED_16', '1000020', 'Financial mgmt', 'Dependent', ''),
(98, 'PRED_16', '1000020', 'Care of others', 'Dependent', ''),
(99, 'PRED_16', '1000020', 'Religious observance', 'Dependent', ''),
(100, 'PRED_16', '1000020', 'Other', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `assesment`
--
CREATE TABLE `assesment` (
`id` int(255) NOT NULL,
`name` varchar(2000) NOT NULL,
`DOB` varchar(2000) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`treatment` varchar(2000) NOT NULL,
`history` varchar(2000) NOT NULL,
`medication` varchar(2000) NOT NULL,
`dt` varchar(10) NOT NULL,
`occupational` varchar(2000) NOT NULL,
`diagnosis` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `assesment`
--
INSERT INTO `assesment` (`id`, `name`, `DOB`, `num`, `rec`, `treatment`, `history`, `medication`, `dt`, `occupational`, `diagnosis`) VALUES
(1, '<NAME>', '2018-10-14', 'PRED_10', '1000005', '2018-11-03', 'Past medical ', 'medications goes here', '2018-11-17', 'occupational profile goes', ''),
(2, '<NAME>', '2018-10-14', 'PRED_10', '1000006', '2018-11-10', 'medical history', 'medications goes here', '2018-11-08', 'occupational profile', ''),
(3, '<NAME>', '2018-10-14', 'PRED_10', '1000007', '2018-11-11', 'Past medical surgical hx', 'medications goes here', '2018-11-03', 'occupational profile', ''),
(4, '<NAME>', '2018-10-06', 'PRED_11', '1000008', '2018-11-08', 'lkiolk', 'asder', '2018-11-22', 'mkiol', ''),
(5, '<NAME>', '2018-10-06', 'PRED_11', '1000011', '2018-11-09', 'jknj', 'jjj', '2018-11-16', 'njk', ''),
(6, '<NAME>', '2018-10-14', 'PRED_10', '1000012', '2018-11-09', 'wdas', 'medications goes here', '2018-11-15', 'occupational profile', ''),
(7, '<NAME>', '1212-12-12', 'PRED_16', '1000015', '2018-11-09', 'gh', 'medications goes here', '2018-11-10', 'gfeg', ''),
(8, '<NAME>', '1212-12-12', 'PRED_16', '1000016', '2018-11-09', 'fds', 'efd', '2018-11-08', 'sda', ''),
(9, '<NAME>', '1212-12-12', 'PRED_16', '1000020', '2018-12-08', 'past medical history here', 'medications goes here', '2018-12-22', 'occupational profile here', 'diagnosis here');
-- --------------------------------------------------------
--
-- Table structure for table `functional`
--
CREATE TABLE `functional` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`issue` varchar(2000) NOT NULL,
`answer` varchar(2000) NOT NULL,
`comment` varchar(2000) NOT NULL,
`tp` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `functional`
--
INSERT INTO `functional` (`id`, `num`, `rec`, `issue`, `answer`, `comment`, `tp`) VALUES
(1, 'PRED_10', '1000006', '(b) Emotional regulation (behavior, coping, etc)', 'not impared', '', 'Functional Cognition'),
(2, 'PRED_10', '1000006', 'Short term Memory', 'impared', 'iuhjiu', 'Functional Cognition'),
(3, 'PRED_10', '1000006', 'Long term Memory', 'impared', 'ijio42', 'Visual motor/perception'),
(4, 'PRED_10', '1000006', 'Attention', 'not impared', 'w;lqkreowq', 'Memory'),
(5, 'PRED_10', '1000006', 'Problem Solving', 'not impared', '', 'Memory'),
(6, 'PRED_10', '1000006', 'Safety awareness', 'impared', '', 'Memory'),
(7, 'PRED_10', '1000006', 'Vision/hearing', 'impared', 'sadfe', 'Memory'),
(8, 'PRED_10', '1000006', 'Speech', 'not impared', '', 'Memory'),
(9, 'PRED_10', '1000006', 'Speech', '4', '', 'Memory'),
(10, 'PRED_10', '1000006', 'RUE', 'limited', '', 'Memory'),
(11, 'PRED_10', '1000006', 'LUE', 'impared', 'csfe', 'Range of motion'),
(12, 'PRED_10', '1000006', 'RUE', '1', 'kmwamdwq', 'Range of motion'),
(13, 'PRED_10', '1000006', 'LUE', '2+', '', 'Strength'),
(14, 'PRED_10', '1000006', 'RUE', 'intact', '', 'Strength'),
(15, 'PRED_10', '1000006', 'LUE', 'impared', '', 'Sensation'),
(16, 'PRED_10', '1000006', 'RUE', 'increased', '', 'Sensation'),
(17, 'PRED_10', '1000006', 'LUE', 'reduced', 'kmlok', 'Muscle Tone'),
(18, 'PRED_10', '1000006', 'RUE', 'Poor', '', 'Muscle Tone'),
(19, 'PRED_10', '1000006', 'LUE', 'Fair', '', 'Fine coordination'),
(20, 'PRED_10', '1000006', 'RUE', 'Good', 'adw', 'Fine coordination'),
(21, 'PRED_10', '1000006', 'LUE', 'Poor', 'sad', 'Selective muscle movement and control'),
(22, 'PRED_10', '1000006', 'Coordination/bilateral integration', 'Poor', '', 'Selective muscle movement and control'),
(23, 'PRED_10', '1000006', 'LE Function', 'Fair', '', 'Selective muscle movement and control'),
(24, 'PRED_10', '1000007', '(b) Emotional regulation (behavior, coping, etc)', 'not impared', 'emotional regulation', 'Functional Cognition'),
(25, 'PRED_10', '1000007', 'Short term Memory', 'not impared', 'short memory', 'Functional Cognition'),
(26, 'PRED_10', '1000007', 'Long term Memory', 'not impared', 'long term memory', 'Visual motor/perception'),
(27, 'PRED_10', '1000007', 'Attention', 'impared', 'attention here', 'Memory'),
(28, 'PRED_10', '1000007', 'Problem Solving', 'impared', 'problem solving', 'Memory'),
(29, 'PRED_10', '1000007', 'Safety awareness', 'not impared', 'awareness ', 'Memory'),
(30, 'PRED_10', '1000007', 'Vision/hearing', 'impared', 'vision comment', 'Memory'),
(31, 'PRED_10', '1000007', 'Speech', 'not impared', 'speech comment', 'Memory'),
(32, 'PRED_10', '1000007', 'Speech', '5', 'verbal rating', 'Memory'),
(33, 'PRED_10', '1000007', 'RUE', 'limited', '', 'Memory'),
(34, 'PRED_10', '1000007', 'LUE', 'impared', '', 'Range of motion'),
(35, 'PRED_10', '1000007', 'RUE', '3', 'rue', 'Range of motion'),
(36, 'PRED_10', '1000007', 'LUE', '2+', '', 'Strength'),
(37, 'PRED_10', '1000007', 'RUE', 'impared', '', 'Strength'),
(38, 'PRED_10', '1000007', 'LUE', 'intact', '', 'Sensation'),
(39, 'PRED_10', '1000007', 'RUE', 'normal', 'hh', 'Sensation'),
(40, 'PRED_10', '1000007', 'LUE', 'increased', '', 'Muscle Tone'),
(41, 'PRED_10', '1000007', 'RUE', 'Poor', '', 'Muscle Tone'),
(42, 'PRED_10', '1000007', 'LUE', 'Good', 'dsljnfds', 'Fine coordination'),
(43, 'PRED_10', '1000007', 'RUE', 'Poor', 'sadfsv', 'Fine coordination'),
(44, 'PRED_10', '1000007', 'LUE', 'Fair', '', 'Selective muscle movement and control'),
(45, 'PRED_10', '1000007', 'Coordination/bilateral integration', 'Poor', 'ascvb sdf', 'Selective muscle movement and control'),
(46, 'PRED_10', '1000007', 'LE Function', 'Good', '', 'Selective muscle movement and control'),
(47, 'PRED_11', '1000008', '(b) Emotional regulation (behavior, coping, etc)', 'not impared', '', 'Functional Cognition'),
(48, 'PRED_11', '1000008', 'Short term Memory', 'impared', '', 'Functional Cognition'),
(49, 'PRED_11', '1000008', 'Long term Memory', 'impared', '', 'Visual motor/perception'),
(50, 'PRED_11', '1000008', 'Attention', 'impared', '', 'Memory'),
(51, 'PRED_11', '1000008', 'Problem Solving', 'impared', '', 'Memory'),
(52, 'PRED_11', '1000008', 'Safety awareness', 'impared', '', 'Memory'),
(53, 'PRED_11', '1000008', 'Vision/hearing', 'not impared', '', 'Memory'),
(54, 'PRED_11', '1000008', 'Speech', 'impared', '', 'Memory'),
(55, 'PRED_11', '1000008', 'Speech', '7', '', 'Memory'),
(56, 'PRED_11', '1000008', 'RUE', 'full', '', 'Memory'),
(57, 'PRED_11', '1000008', 'LUE', 'impared', '', 'Range of motion'),
(58, 'PRED_11', '1000008', 'RUE', '3+', '', 'Range of motion'),
(59, 'PRED_11', '1000008', 'LUE', '1', '', 'Strength'),
(60, 'PRED_11', '1000008', 'RUE', 'impared', '', 'Strength'),
(61, 'PRED_11', '1000008', 'LUE', 'intact', '', 'Sensation'),
(62, 'PRED_11', '1000008', 'RUE', 'normal', '', 'Sensation'),
(63, 'PRED_11', '1000008', 'LUE', 'normal', '', 'Muscle Tone'),
(64, 'PRED_11', '1000008', 'RUE', 'Poor', '', 'Muscle Tone'),
(65, 'PRED_11', '1000008', 'LUE', 'Poor', '', 'Fine coordination'),
(66, 'PRED_11', '1000008', 'RUE', 'Poor', '', 'Fine coordination'),
(67, 'PRED_11', '1000008', 'LUE', 'Poor', '', 'Selective muscle movement and control'),
(68, 'PRED_11', '1000008', 'Coordination/bilateral integration', 'Fair', '', 'Selective muscle movement and control'),
(69, 'PRED_11', '1000008', 'LE Function', 'Good', '', 'Selective muscle movement and control'),
(70, 'PRED_11', '1000011', '(b) Emotional regulation (behavior, coping, etc)', 'impared', '', 'Functional Cognition'),
(71, 'PRED_11', '1000011', 'Short term Memory', 'impared', '', 'Functional Cognition'),
(72, 'PRED_11', '1000011', 'Long term Memory', 'impared', '', 'Visual motor/perception'),
(73, 'PRED_11', '1000011', 'Attention', 'impared', '', 'Memory'),
(74, 'PRED_11', '1000011', 'Problem Solving', 'impared', '', 'Memory'),
(75, 'PRED_11', '1000011', 'Safety awareness', 'impared', '', 'Memory'),
(76, 'PRED_11', '1000011', 'Vision/hearing', 'impared', '', 'Memory'),
(77, 'PRED_11', '1000011', 'Speech', 'impared', '', 'Memory'),
(78, 'PRED_11', '1000011', 'Speech', '0', '', 'Memory'),
(79, 'PRED_11', '1000011', 'RUE', 'full', '', 'Memory'),
(80, 'PRED_11', '1000011', 'LUE', 'impared', '', 'Range of motion'),
(81, 'PRED_11', '1000011', 'RUE', '1', '', 'Range of motion'),
(82, 'PRED_11', '1000011', 'LUE', '1', '', 'Strength'),
(83, 'PRED_11', '1000011', 'RUE', 'intact', '', 'Strength'),
(84, 'PRED_11', '1000011', 'LUE', 'intact', '', 'Sensation'),
(85, 'PRED_11', '1000011', 'RUE', 'normal', '', 'Sensation'),
(86, 'PRED_11', '1000011', 'LUE', 'normal', '', 'Muscle Tone'),
(87, 'PRED_11', '1000011', 'RUE', 'Poor', '', 'Muscle Tone'),
(88, 'PRED_11', '1000011', 'LUE', 'Poor', '', 'Fine coordination'),
(89, 'PRED_11', '1000011', 'RUE', 'Poor', '', 'Fine coordination'),
(90, 'PRED_11', '1000011', 'LUE', 'Poor', '', 'Selective muscle movement and control'),
(91, 'PRED_11', '1000011', 'Coordination/bilateral integration', 'Poor', '', 'Selective muscle movement and control'),
(92, 'PRED_11', '1000011', 'LE Function', 'Poor', '', 'Selective muscle movement and control'),
(93, 'PRED_10', '1000012', '(b) Emotional regulation (behavior, coping, etc)', 'not impared', '', 'Functional Cognition'),
(94, 'PRED_10', '1000012', 'Short term Memory', 'impared', '', 'Functional Cognition'),
(95, 'PRED_10', '1000012', 'Long term Memory', 'impared', '', 'Visual motor/perception'),
(96, 'PRED_10', '1000012', 'Attention', 'impared', '', 'Memory'),
(97, 'PRED_10', '1000012', 'Problem Solving', 'impared', '', 'Memory'),
(98, 'PRED_10', '1000012', 'Safety awareness', 'not impared', '', 'Memory'),
(99, 'PRED_10', '1000012', 'Vision/hearing', 'impared', '', 'Memory'),
(100, 'PRED_10', '1000012', 'Speech', 'impared', '', 'Memory'),
(101, 'PRED_10', '1000012', 'Speech', '4', 'ere', 'Memory'),
(102, 'PRED_10', '1000012', 'RUE', 'full', '', 'Memory'),
(103, 'PRED_10', '1000012', 'LUE', 'impared', '', 'Range of motion'),
(104, 'PRED_10', '1000012', 'RUE', '2+', '', 'Range of motion'),
(105, 'PRED_10', '1000012', 'LUE', '2+', '', 'Strength'),
(106, 'PRED_10', '1000012', 'RUE', 'impared', '', 'Strength'),
(107, 'PRED_10', '1000012', 'LUE', 'intact', '', 'Sensation'),
(108, 'PRED_10', '1000012', 'RUE', 'increased', '', 'Sensation'),
(109, 'PRED_10', '1000012', 'LUE', 'normal', '', 'Muscle Tone'),
(110, 'PRED_10', '1000012', 'RUE', 'Fair', '', 'Muscle Tone'),
(111, 'PRED_10', '1000012', 'LUE', 'Poor', '', 'Fine coordination'),
(112, 'PRED_10', '1000012', 'RUE', 'Poor', '', 'Fine coordination'),
(113, 'PRED_10', '1000012', 'LUE', 'Fair', '', 'Selective muscle movement and control'),
(114, 'PRED_10', '1000012', 'Coordination/bilateral integration', 'Poor', '', 'Selective muscle movement and control'),
(115, 'PRED_10', '1000012', 'LE Function', 'Poor', '', 'Selective muscle movement and control'),
(116, 'PRED_16', '1000015', '(b) Emotional regulation (behavior, coping, etc)', 'impared', '', 'Functional Cognition'),
(117, 'PRED_16', '1000015', 'Short term Memory', 'impared', '', 'Functional Cognition'),
(118, 'PRED_16', '1000015', 'Long term Memory', 'impared', '', 'Visual motor/perception'),
(119, 'PRED_16', '1000015', 'Attention', 'impared', '', 'Memory'),
(120, 'PRED_16', '1000015', 'Problem Solving', 'impared', '', 'Memory'),
(121, 'PRED_16', '1000015', 'Safety awareness', 'impared', '', 'Memory'),
(122, 'PRED_16', '1000015', 'Vision/hearing', 'impared', '', 'Memory'),
(123, 'PRED_16', '1000015', 'Speech', 'impared', '', 'Memory'),
(124, 'PRED_16', '1000015', 'Speech', '0', '', 'Memory'),
(125, 'PRED_16', '1000015', 'RUE', 'full', '', 'Memory'),
(126, 'PRED_16', '1000015', 'LUE', 'impared', '', 'Range of motion'),
(127, 'PRED_16', '1000015', 'RUE', '1', '', 'Range of motion'),
(128, 'PRED_16', '1000015', 'LUE', '1', '', 'Strength'),
(129, 'PRED_16', '1000015', 'RUE', 'intact', '', 'Strength'),
(130, 'PRED_16', '1000015', 'LUE', 'intact', '', 'Sensation'),
(131, 'PRED_16', '1000015', 'RUE', 'normal', '', 'Sensation'),
(132, 'PRED_16', '1000015', 'LUE', 'normal', '', 'Muscle Tone'),
(133, 'PRED_16', '1000015', 'RUE', 'Poor', '', 'Muscle Tone'),
(134, 'PRED_16', '1000015', 'LUE', 'Poor', '', 'Fine coordination'),
(135, 'PRED_16', '1000015', 'RUE', 'Poor', '', 'Fine coordination'),
(136, 'PRED_16', '1000015', 'LUE', 'Poor', '', 'Selective muscle movement and control'),
(137, 'PRED_16', '1000015', 'Coordination/bilateral integration', 'Poor', '', 'Selective muscle movement and control'),
(138, 'PRED_16', '1000015', 'LE Function', 'Poor', '', 'Selective muscle movement and control'),
(139, 'PRED_16', '1000016', '(b) Emotional regulation (behavior, coping, etc)', 'impared', '', 'Functional Cognition'),
(140, 'PRED_16', '1000016', 'Short term Memory', 'impared', '', 'Functional Cognition'),
(141, 'PRED_16', '1000016', 'Long term Memory', 'impared', '', 'Visual motor/perception'),
(142, 'PRED_16', '1000016', 'Attention', 'impared', '', 'Memory'),
(143, 'PRED_16', '1000016', 'Problem Solving', 'impared', '', 'Memory'),
(144, 'PRED_16', '1000016', 'Safety awareness', 'impared', '', 'Memory'),
(145, 'PRED_16', '1000016', 'Vision/hearing', 'impared', '', 'Memory'),
(146, 'PRED_16', '1000016', 'Speech', 'impared', '', 'Memory'),
(147, 'PRED_16', '1000016', 'Speech', '0', '', 'Memory'),
(148, 'PRED_16', '1000016', 'RUE', 'full', '', 'Memory'),
(149, 'PRED_16', '1000016', 'LUE', 'impared', '', 'Range of motion'),
(150, 'PRED_16', '1000016', 'RUE', '1', '', 'Range of motion'),
(151, 'PRED_16', '1000016', 'LUE', '1', '', 'Strength'),
(152, 'PRED_16', '1000016', 'RUE', 'intact', '', 'Strength'),
(153, 'PRED_16', '1000016', 'LUE', 'intact', '', 'Sensation'),
(154, 'PRED_16', '1000016', 'RUE', 'normal', '', 'Sensation'),
(155, 'PRED_16', '1000016', 'LUE', 'normal', '', 'Muscle Tone'),
(156, 'PRED_16', '1000016', 'RUE', 'Poor', '', 'Muscle Tone'),
(157, 'PRED_16', '1000016', 'LUE', 'Poor', '', 'Fine coordination'),
(158, 'PRED_16', '1000016', 'RUE', 'Poor', '', 'Fine coordination'),
(159, 'PRED_16', '1000016', 'LUE', 'Poor', '', 'Selective muscle movement and control'),
(160, 'PRED_16', '1000016', 'Coordination/bilateral integration', 'Poor', '', 'Selective muscle movement and control'),
(161, 'PRED_16', '1000016', 'LE Function', 'Poor', '', 'Selective muscle movement and control'),
(162, 'PRED_16', '1000020', '(b) Emotional regulation (behavior, coping, etc)', 'impared', '', 'Functional Cognition'),
(163, 'PRED_16', '1000020', 'Visual motor/perception', 'impared', '', 'Functional Cognition'),
(164, 'PRED_16', '1000020', 'Short term Memory', 'impared', '', 'Visual motor/perception'),
(165, 'PRED_16', '1000020', 'Long term Memory', 'impared', '', 'Memory'),
(166, 'PRED_16', '1000020', 'Attention', 'impared', '', 'Visual motor/perception'),
(167, 'PRED_16', '1000020', 'Problem Solving', 'impared', '', 'Memory'),
(168, 'PRED_16', '1000020', 'Safety awareness', 'impared', '', 'Memory'),
(169, 'PRED_16', '1000020', 'Vision/hearing', 'impared', '', 'Memory'),
(170, 'PRED_16', '1000020', 'Speech', 'impared', '', 'Memory'),
(171, 'PRED_16', '1000020', 'Pain 1', '0', '', 'Memory'),
(172, 'PRED_16', '1000020', 'Pain 2', '0', '', 'Memory'),
(173, 'PRED_16', '1000020', 'Pain 3', '0', '', 'Memory'),
(174, 'PRED_16', '1000020', 'Pain 4', '0', '', 'Memory'),
(175, 'PRED_16', '1000020', 'PAIN 5', '0', '', 'Memory'),
(176, 'PRED_16', '1000020', 'RUE', 'full', '', 'Memory'),
(177, 'PRED_16', '1000020', 'LUE', 'impared', '', 'Memory'),
(178, 'PRED_16', '1000020', 'RUE', '0', '', 'Range of motion'),
(179, 'PRED_16', '1000020', 'LUE', '0', '', 'Range of motion'),
(180, 'PRED_16', '1000020', 'RUE', 'intact', '', 'Strength'),
(181, 'PRED_16', '1000020', 'LUE', 'intact', '', 'Strength'),
(182, 'PRED_16', '1000020', 'RUE', 'normal', '', 'Sensation'),
(183, 'PRED_16', '1000020', 'LUE', 'normal', '', 'Sensation'),
(184, 'PRED_16', '1000020', 'RUE', 'Poor', '', 'Muscle Tone'),
(185, 'PRED_16', '1000020', 'LUE', 'Poor', '', 'Muscle Tone'),
(186, 'PRED_16', '1000020', 'RUE', 'Poor', '', 'Fine coordination'),
(187, 'PRED_16', '1000020', 'LUE', 'Poor', '', 'Fine coordination'),
(188, 'PRED_16', '1000020', 'Coordination/bilateral integration', 'Poor', '', 'Selective muscle movement and control'),
(189, 'PRED_16', '1000020', 'LE Function', 'Poor', '', 'Selective muscle movement and control');
-- --------------------------------------------------------
--
-- Table structure for table `leisure`
--
CREATE TABLE `leisure` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`issue` varchar(2000) NOT NULL,
`answer` varchar(2000) NOT NULL,
`comment` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `leisure`
--
INSERT INTO `leisure` (`id`, `num`, `rec`, `issue`, `answer`, `comment`) VALUES
(1, 'PRED_10', '1000006', 'Education (formal and informal)', 'not impared', ''),
(2, 'PRED_10', '1000006', 'Work Employment/Volunteer', 'not impared', ''),
(3, 'PRED_10', '1000006', 'Leisure participation', 'impared', ''),
(4, 'PRED_10', '1000006', 'Social participation', 'not impared', ''),
(5, 'PRED_10', '1000006', 'Education (formal and informal)', 'impared', 'education impaired comment'),
(6, 'PRED_10', '1000006', 'Work Employment/Volunteer', 'not impared', 'work comment'),
(7, 'PRED_10', '1000006', 'Leisure participation', 'impared', 'leisure comment'),
(8, 'PRED_10', '1000006', 'Social participation', 'not impared', 'social comment'),
(9, 'PRED_10', '1000007', 'Education (formal and informal)', 'not impared', 'education comment ghere'),
(10, 'PRED_10', '1000007', 'Work Employment/Volunteer', 'not impared', 'work comment here'),
(11, 'PRED_10', '1000007', 'Leisure participation', 'impared', 'leisure participation'),
(12, 'PRED_10', '1000007', 'Social participation', 'not impared', 'bbnh'),
(13, 'PRED_11', '1000008', 'Education (formal and informal)', 'impared', ''),
(14, 'PRED_11', '1000008', 'Work Employment/Volunteer', 'impared', ''),
(15, 'PRED_11', '1000008', 'Leisure participation', 'impared', ''),
(16, 'PRED_11', '1000008', 'Social participation', 'impared', ''),
(17, 'PRED_11', '1000011', 'Education (formal and informal)', 'impared', ''),
(18, 'PRED_11', '1000011', 'Work Employment/Volunteer', 'impared', ''),
(19, 'PRED_11', '1000011', 'Leisure participation', 'impared', ''),
(20, 'PRED_11', '1000011', 'Social participation', 'impared', ''),
(21, 'PRED_10', '1000012', 'Education (formal and informal)', 'not impared', ''),
(22, 'PRED_10', '1000012', 'Work Employment/Volunteer', 'not impared', 'rgfr'),
(23, 'PRED_10', '1000012', 'Leisure participation', 'impared', 'rgfw'),
(24, 'PRED_10', '1000012', 'Social participation', 'not impared', ''),
(25, 'PRED_16', '1000015', 'Education (formal and informal)', 'impared', ''),
(26, 'PRED_16', '1000015', 'Work Employment/Volunteer', 'impared', ''),
(27, 'PRED_16', '1000015', 'Leisure participation', 'impared', ''),
(28, 'PRED_16', '1000015', 'Social participation', 'impared', ''),
(29, 'PRED_16', '1000016', 'Education (formal and informal)', 'impared', ''),
(30, 'PRED_16', '1000016', 'Work Employment/Volunteer', 'impared', ''),
(31, 'PRED_16', '1000016', 'Leisure participation', 'impared', ''),
(32, 'PRED_16', '1000016', 'Social participation', 'impared', ''),
(33, 'PRED_16', '1000020', 'Education (formal and informal)', 'Not applicable', ''),
(34, 'PRED_16', '1000020', 'Work Employment/Volunteer', 'impaired', 'fvgh'),
(35, 'PRED_16', '1000020', 'Leisure participation', 'Not applicable', ''),
(36, 'PRED_16', '1000020', 'Social participation', 'not impaired', 'kjnjh');
-- --------------------------------------------------------
--
-- Table structure for table `mental`
--
CREATE TABLE `mental` (
`id` int(255) NOT NULL,
`name` varchar(2000) NOT NULL,
`DOB` varchar(10) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`Gender` varchar(12) NOT NULL,
`Code` varchar(2000) NOT NULL,
`Ethnicity` varchar(2000) NOT NULL,
`Health` varchar(2000) NOT NULL,
`Asseccor` varchar(2000) NOT NULL,
`Designation` varchar(2000) NOT NULL,
`first` varchar(2000) NOT NULL,
`dt` varchar(2000) NOT NULL,
`setting` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `mental`
--
INSERT INTO `mental` (`id`, `name`, `DOB`, `num`, `rec`, `Gender`, `Code`, `Ethnicity`, `Health`, `Asseccor`, `Designation`, `first`, `dt`, `setting`) VALUES
(1, '<NAME>', '2018-10-06', 'PRED_11', '1000009', 'Male', '009', 'Isoko', 'Migrane', 'Ade Wale', 'Occupational Therapist', '2018-11-24', '2018-11-11', 'treatment setting'),
(2, '', '', '', '', '', 'ewjnkf', '', 'rfg', 'fwce', 'Occupational Therapist', '2018-11-30', '2018-11-16', 'uhgij'),
(3, '<NAME>', '2018-10-14', 'PRED_10', '1000010', 'Male', '009', '', 'Migrane', 'Ade Wale', 'Occupational Therapist', '2018-11-17', '2018-11-18', 'dss'),
(4, '<NAME>', '2018-10-14', 'PRED_10', '1000013', 'Male', '009', '', 'Migrane', 'Ade Wale', 'OOT Support staff', '2018-11-03', '2018-11-11', 'setting'),
(5, '<NAME>', '2018-10-14', 'PRED_10', '1000014', 'Male', '009', 'Isoko', 'Migrane', 'Ade Wale', 'Occupational Therapist', '2018-11-18', '2018-11-10', 'setting'),
(6, '<NAME>', '1212-12-12', 'PRED_16', '1000017', 'Male', '009', 'Isoko', 'Migrane', 'Ade Wale', 'Occupational Therapist', '2018-11-23', '2018-11-10', 'fvrs'),
(7, '<NAME>', '2018-11-09', 'PRED_14', '1000018', '', '009', 'Isoko', 'Migrane', '<NAME>', 'Occupational Therapist', '2018-11-17', '2018-11-11', 'das'),
(8, '<NAME>', '1212-12-12', 'PRED_16', '1000019', 'Male', '009', '', 'Migrane', '<NAME>', '', '2018-11-24', '2018-11-10', 'das');
-- --------------------------------------------------------
--
-- Table structure for table `motivation`
--
CREATE TABLE `motivation` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`question` varchar(2000) NOT NULL,
`answer` varchar(2000) NOT NULL,
`tp` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `motivation`
--
INSERT INTO `motivation` (`id`, `num`, `rec`, `question`, `answer`, `tp`) VALUES
(1, 'PRED_11', '1000009', 'Shows awareness of strengths & limitations', 'Facilitates occupational participation', 'motivation'),
(2, 'PRED_11', '1000009', 'Shows pride/seeks challenges', 'Not seen', 'motivation'),
(3, 'PRED_11', '1000009', 'Shows curiosity and demonstrates interest', 'Allows occupational participation', 'motivation'),
(4, 'PRED_11', '1000009', 'Identiï¬es preferences/is goal-oriented', 'Inhibits occupational participation', 'motivation'),
(5, 'PRED_11', '1000009', 'Shows awareness of strengths & limitations', 'Facilitates occupational participation', 'Pattern'),
(6, 'PRED_11', '1000009', 'Shows pride/seeks challenges', 'Not seen', 'Pattern'),
(7, 'PRED_11', '1000009', 'Shows curiosity and demonstrates interest', 'Allows occupational participation', 'Pattern'),
(8, 'PRED_11', '1000009', 'Identiï¬es preferences/is goal-oriented', 'Inhibits occupational participation', 'Pattern'),
(9, 'PRED_11', '1000009', 'Uses appropriate non-verbal expression', 'Restricts occupational participation', 'Comm'),
(10, 'PRED_11', '1000009', 'Initiates and sustains appropriate conversation', 'Facilitates occupational participation', 'Comm'),
(11, 'PRED_11', '1000009', 'Uses appropriate vocal expression', 'Allows occupational participation', 'Comm'),
(12, 'PRED_11', '1000009', 'Relates to and co-operates with others', 'Facilitates occupational participation', 'Comm'),
(13, 'PRED_11', '1000009', 'Chooses/uses equipment appropriately', 'Facilitates occupational participation', 'Process'),
(14, 'PRED_11', '1000009', 'Maintains focus throughout task/sequence', 'Allows occupational participation', 'Process'),
(15, 'PRED_11', '1000009', 'Works in an orderly fashion', 'Inhibits occupational participation', 'Process'),
(16, 'PRED_11', '1000009', 'Modiï¬es actions to overcome problems', 'Not seen', 'Process'),
(17, 'PRED_11', '1000009', 'Mobilises independently', 'Facilitates occupational participation', 'Motor'),
(18, 'PRED_11', '1000009', 'Manipulates tools and materials easily', 'Not seen', 'Motor'),
(19, 'PRED_11', '1000009', 'Uses appropriate strength and effort', 'Allows occupational participation', 'Motor'),
(20, 'PRED_11', '1000009', 'Maintains energy and appropriate pace', 'Inhibits occupational participation', 'Motor'),
(21, 'PRED_11', '1000009', 'Space offers stimulus and comfort', 'Facilitates occupational participation', 'Entertainment'),
(22, 'PRED_11', '1000009', 'Resources allow safety and independence', 'Restricts occupational participation', 'Entertainment'),
(23, 'PRED_11', '1000009', 'Social interaction provides support', 'Allows occupational participation', 'Entertainment'),
(24, 'PRED_11', '1000009', 'Demands of activity match abilities/interests', 'Inhibits occupational participation', 'Entertainment'),
(25, '', '', 'Shows awareness of strengths & limitations', 'Not seen', 'motivation'),
(26, '', '', 'Shows pride/seeks challenges', 'Not seen', 'motivation'),
(27, '', '', 'Shows curiosity and demonstrates interest', 'Not seen', 'motivation'),
(28, '', '', 'Identiï¬es preferences/is goal-oriented', 'Not seen', 'motivation'),
(29, '', '', 'Maintains routine habits (ADL)', 'Not seen', 'Pattern'),
(30, '', '', 'Remains settled/copes with disruption/change', 'Not seen', 'Pattern'),
(31, '', '', 'Becomes actively involved with task/group', 'Not seen', 'Pattern'),
(32, '', '', 'Fulfills responsibilities in the session', 'Not seen', 'Pattern'),
(33, '', '', 'Uses appropriate non-verbal expression', 'Not seen', 'Comm'),
(34, '', '', 'Initiates and sustains appropriate conversation', 'Not seen', 'Comm'),
(35, '', '', 'Uses appropriate vocal expression', 'Not seen', 'Comm'),
(36, '', '', 'Relates to and co-operates with others', 'Not seen', 'Comm'),
(37, '', '', 'Chooses/uses equipment appropriately', 'Not seen', 'Process'),
(38, '', '', 'Maintains focus throughout task/sequence', 'Not seen', 'Process'),
(39, '', '', 'Works in an orderly fashion', 'Not seen', 'Process'),
(40, '', '', 'Modiï¬es actions to overcome problems', 'Not seen', 'Process'),
(41, '', '', 'Mobilises independently', 'Not seen', 'Motor'),
(42, '', '', 'Manipulates tools and materials easily', 'Not seen', 'Motor'),
(43, '', '', 'Uses appropriate strength and effort', 'Not seen', 'Motor'),
(44, '', '', 'Maintains energy and appropriate pace', 'Not seen', 'Motor'),
(45, '', '', 'Space offers stimulus and comfort', 'Not seen', 'Entertainment'),
(46, '', '', 'Resources allow safety and independence', 'Not seen', 'Entertainment'),
(47, '', '', 'Social interaction provides support', 'Not seen', 'Entertainment'),
(48, '', '', 'Demands of activity match abilities/interests', 'Not seen', 'Entertainment'),
(49, 'PRED_10', '1000010', 'SApprisal of ability', 'Inhibits occupational participation', 'motivation'),
(50, 'PRED_10', '1000010', 'SExpectation of success', 'Restricts occupational participation', 'motivation'),
(51, 'PRED_10', '1000010', 'interest', 'Facilitates occupational participation', 'motivation'),
(52, 'PRED_10', '1000010', 'Choices', 'Allows occupational participation', 'motivation'),
(53, 'PRED_10', '1000010', 'Routine', 'Allows occupational participation', 'Pattern'),
(54, 'PRED_10', '1000010', 'Adaptability', 'Facilitates occupational participation', 'Pattern'),
(55, 'PRED_10', '1000010', 'Roles', 'Inhibits occupational participation', 'Pattern'),
(56, 'PRED_10', '1000010', 'Responsibility', 'Restricts occupational participation', 'Pattern'),
(57, 'PRED_10', '1000010', 'Non verbal skills', 'Facilitates occupational participation', 'Comm'),
(58, 'PRED_10', '1000010', 'conversation', 'Allows occupational participation', 'Comm'),
(59, 'PRED_10', '1000010', 'vocal expression', 'Inhibits occupational participation', 'Comm'),
(60, 'PRED_10', '1000010', 'Relationships', 'Restricts occupational participation', 'Comm'),
(61, 'PRED_10', '1000010', 'Knowledge', 'Facilitates occupational participation', 'Process'),
(62, 'PRED_10', '1000010', 'Timing', 'Allows occupational participation', 'Process'),
(63, 'PRED_10', '1000010', 'Organization', 'Restricts occupational participation', 'Process'),
(64, 'PRED_10', '1000010', 'Problem solving', 'Inhibits occupational participation', 'Process'),
(65, 'PRED_10', '1000010', 'Posture and Mobilty', 'Allows occupational participation', 'Motor'),
(66, 'PRED_10', '1000010', 'Cordination', 'Facilitates occupational participation', 'Motor'),
(67, 'PRED_10', '1000010', 'strength and effort', 'Inhibits occupational participation', 'Motor'),
(68, 'PRED_10', '1000010', 'Energy', 'Restricts occupational participation', 'Motor'),
(69, 'PRED_10', '1000010', 'Physical space', 'Facilitates occupational participation', 'Entertainment'),
(70, 'PRED_10', '1000010', 'Physical Resources', 'Allows occupational participation', 'Entertainment'),
(71, 'PRED_10', '1000010', 'Social groups', 'Facilitates occupational participation', 'Entertainment'),
(72, 'PRED_10', '1000010', 'Operational Demands', 'Restricts occupational participation', 'Entertainment'),
(73, 'PRED_10', '1000013', 'Shows awareness of strengths & limitations', 'Facilitates occupational participation', 'motivation'),
(74, 'PRED_10', '1000013', 'Shows pride/seeks challenges', 'Allows occupational participation', 'motivation'),
(75, 'PRED_10', '1000013', 'Shows curiosity and demonstrates interest', 'Allows occupational participation', 'motivation'),
(76, 'PRED_10', '1000013', 'Identiï¬es preferences/is goal-oriented', 'Allows occupational participation', 'motivation'),
(77, 'PRED_10', '1000013', 'Maintains routine habits (ADL)', 'Not seen', 'Pattern'),
(78, 'PRED_10', '1000013', 'Remains settled/copes with disruption/change', 'Allows occupational participation', 'Pattern'),
(79, 'PRED_10', '1000013', 'Becomes actively involved with task/group', 'Allows occupational participation', 'Pattern'),
(80, 'PRED_10', '1000013', 'Fulfills responsibilities in the session', 'Inhibits occupational participation', 'Pattern'),
(81, 'PRED_10', '1000013', 'Uses appropriate non-verbal expression', 'Facilitates occupational participation', 'Comm'),
(82, 'PRED_10', '1000013', 'Initiates and sustains appropriate conversation', 'Allows occupational participation', 'Comm'),
(83, 'PRED_10', '1000013', 'Uses appropriate vocal expression', 'Allows occupational participation', 'Comm'),
(84, 'PRED_10', '1000013', 'Relates to and co-operates with others', 'Allows occupational participation', 'Comm'),
(85, 'PRED_10', '1000013', 'Chooses/uses equipment appropriately', 'Facilitates occupational participation', 'Process'),
(86, 'PRED_10', '1000013', 'Maintains focus throughout task/sequence', 'Inhibits occupational participation', 'Process'),
(87, 'PRED_10', '1000013', 'Works in an orderly fashion', 'Allows occupational participation', 'Process'),
(88, 'PRED_10', '1000013', 'Modiï¬es actions to overcome problems', 'Inhibits occupational participation', 'Process'),
(89, 'PRED_10', '1000013', 'Mobilises independently', 'Allows occupational participation', 'Motor'),
(90, 'PRED_10', '1000013', 'Manipulates tools and materials easily', 'Facilitates occupational participation', 'Motor'),
(91, 'PRED_10', '1000013', 'Uses appropriate strength and effort', 'Allows occupational participation', 'Motor'),
(92, 'PRED_10', '1000013', 'Maintains energy and appropriate pace', 'Allows occupational participation', 'Motor'),
(93, 'PRED_10', '1000013', 'Space offers stimulus and comfort', 'Facilitates occupational participation', 'Entertainment'),
(94, 'PRED_10', '1000013', 'Resources allow safety and independence', 'Inhibits occupational participation', 'Entertainment'),
(95, 'PRED_10', '1000013', 'Social interaction provides support', 'Allows occupational participation', 'Entertainment'),
(96, 'PRED_10', '1000013', 'Demands of activity match abilities/interests', 'Not seen', 'Entertainment'),
(97, 'PRED_10', '1000014', 'Apprisal of ability', 'Allows occupational participation', 'motivation'),
(98, 'PRED_10', '1000014', 'Expectation of success', 'Facilitates occupational participation', 'motivation'),
(99, 'PRED_10', '1000014', 'interest', 'Inhibits occupational participation', 'motivation'),
(100, 'PRED_10', '1000014', 'Choices', 'Allows occupational participation', 'motivation'),
(101, 'PRED_10', '1000014', 'Routine', 'Allows occupational participation', 'Pattern'),
(102, 'PRED_10', '1000014', 'Adaptability', 'Inhibits occupational participation', 'Pattern'),
(103, 'PRED_10', '1000014', 'Roles', 'Facilitates occupational participation', 'Pattern'),
(104, 'PRED_10', '1000014', 'Responsibility', 'Inhibits occupational participation', 'Pattern'),
(105, 'PRED_10', '1000014', 'Non verbal skills', 'Allows occupational participation', 'Comm'),
(106, 'PRED_10', '1000014', 'conversation', 'Inhibits occupational participation', 'Comm'),
(107, 'PRED_10', '1000014', 'vocal expression', 'Facilitates occupational participation', 'Comm'),
(108, 'PRED_10', '1000014', 'Relationships', 'Allows occupational participation', 'Comm'),
(109, 'PRED_10', '1000014', 'Knowledge', 'Allows occupational participation', 'Process'),
(110, 'PRED_10', '1000014', 'Timing', 'Inhibits occupational participation', 'Process'),
(111, 'PRED_10', '1000014', 'Organization', 'Allows occupational participation', 'Process'),
(112, 'PRED_10', '1000014', 'Problem solving', 'Facilitates occupational participation', 'Process'),
(113, 'PRED_10', '1000014', 'Posture and Mobilty', 'Allows occupational participation', 'Motor'),
(114, 'PRED_10', '1000014', 'Cordination', 'Inhibits occupational participation', 'Motor'),
(115, 'PRED_10', '1000014', 'strength and effort', 'Inhibits occupational participation', 'Motor'),
(116, 'PRED_10', '1000014', 'Energy', 'Allows occupational participation', 'Motor'),
(117, 'PRED_10', '1000014', 'Physical space', 'Inhibits occupational participation', 'Entertainment'),
(118, 'PRED_10', '1000014', 'Physical Resources', 'Allows occupational participation', 'Entertainment'),
(119, 'PRED_10', '1000014', 'Social groups', 'Inhibits occupational participation', 'Entertainment'),
(120, 'PRED_10', '1000014', 'Operational Demands', 'Inhibits occupational participation', 'Entertainment'),
(121, 'PRED_16', '1000017', 'Shows awareness of strengths & limitations', 'Not seen', 'motivation'),
(122, 'PRED_16', '1000017', 'Shows pride/seeks challenges', 'Not seen', 'motivation'),
(123, 'PRED_16', '1000017', 'Shows curiosity and demonstrates interest', 'Not seen', 'motivation'),
(124, 'PRED_16', '1000017', 'Identiï¬es preferences/is goal-oriented', 'Not seen', 'motivation'),
(125, 'PRED_16', '1000017', 'Maintains routine habits (ADL)', 'Not seen', 'Pattern'),
(126, 'PRED_16', '1000017', 'Remains settled/copes with disruption/change', 'Not seen', 'Pattern'),
(127, 'PRED_16', '1000017', 'Becomes actively involved with task/group', 'Not seen', 'Pattern'),
(128, 'PRED_16', '1000017', 'Fulfills responsibilities in the session', 'Not seen', 'Pattern'),
(129, 'PRED_16', '1000017', 'Uses appropriate non-verbal expression', 'Not seen', 'Comm'),
(130, 'PRED_16', '1000017', 'Initiates and sustains appropriate conversation', 'Not seen', 'Comm'),
(131, 'PRED_16', '1000017', 'Uses appropriate vocal expression', 'Not seen', 'Comm'),
(132, 'PRED_16', '1000017', 'Relates to and co-operates with others', 'Not seen', 'Comm'),
(133, 'PRED_16', '1000017', 'Chooses/uses equipment appropriately', 'Not seen', 'Process'),
(134, 'PRED_16', '1000017', 'Maintains focus throughout task/sequence', 'Not seen', 'Process'),
(135, 'PRED_16', '1000017', 'Works in an orderly fashion', 'Not seen', 'Process'),
(136, 'PRED_16', '1000017', 'Modiï¬es actions to overcome problems', 'Not seen', 'Process'),
(137, 'PRED_16', '1000017', 'Mobilises independently', 'Not seen', 'Motor'),
(138, 'PRED_16', '1000017', 'Manipulates tools and materials easily', 'Not seen', 'Motor'),
(139, 'PRED_16', '1000017', 'Uses appropriate strength and effort', 'Not seen', 'Motor'),
(140, 'PRED_16', '1000017', 'Maintains energy and appropriate pace', 'Not seen', 'Motor'),
(141, 'PRED_16', '1000017', 'Space offers stimulus and comfort', 'Not seen', 'Entertainment'),
(142, 'PRED_16', '1000017', 'Resources allow safety and independence', 'Not seen', 'Entertainment'),
(143, 'PRED_16', '1000017', 'Social interaction provides support', 'Not seen', 'Entertainment'),
(144, 'PRED_16', '1000017', 'Demands of activity match abilities/interests', 'Not seen', 'Entertainment'),
(145, 'PRED_14', '1000018', 'Shows awareness of strengths & limitations', 'Not seen', 'motivation'),
(146, 'PRED_14', '1000018', 'Shows pride/seeks challenges', 'Not seen', 'motivation'),
(147, 'PRED_14', '1000018', 'Shows curiosity and demonstrates interest', 'Not seen', 'motivation'),
(148, 'PRED_14', '1000018', 'Identiï¬es preferences/is goal-oriented', 'Not seen', 'motivation'),
(149, 'PRED_14', '1000018', 'Maintains routine habits (ADL)', 'Not seen', 'Pattern'),
(150, 'PRED_14', '1000018', 'Remains settled/copes with disruption/change', 'Not seen', 'Pattern'),
(151, 'PRED_14', '1000018', 'Becomes actively involved with task/group', 'Not seen', 'Pattern'),
(152, 'PRED_14', '1000018', 'Fulfills responsibilities in the session', 'Not seen', 'Pattern'),
(153, 'PRED_14', '1000018', 'Uses appropriate non-verbal expression', 'Not seen', 'Comm'),
(154, 'PRED_14', '1000018', 'Initiates and sustains appropriate conversation', 'Not seen', 'Comm'),
(155, 'PRED_14', '1000018', 'Uses appropriate vocal expression', 'Not seen', 'Comm'),
(156, 'PRED_14', '1000018', 'Relates to and co-operates with others', 'Not seen', 'Comm'),
(157, 'PRED_14', '1000018', 'Chooses/uses equipment appropriately', 'Not seen', 'Process'),
(158, 'PRED_14', '1000018', 'Maintains focus throughout task/sequence', 'Not seen', 'Process'),
(159, 'PRED_14', '1000018', 'Works in an orderly fashion', 'Not seen', 'Process'),
(160, 'PRED_14', '1000018', 'Modiï¬es actions to overcome problems', 'Not seen', 'Process'),
(161, 'PRED_14', '1000018', 'Mobilises independently', 'Not seen', 'Motor'),
(162, 'PRED_14', '1000018', 'Manipulates tools and materials easily', 'Not seen', 'Motor'),
(163, 'PRED_14', '1000018', 'Uses appropriate strength and effort', 'Not seen', 'Motor'),
(164, 'PRED_14', '1000018', 'Maintains energy and appropriate pace', 'Not seen', 'Motor'),
(165, 'PRED_14', '1000018', 'Space offers stimulus and comfort', 'Not seen', 'Entertainment'),
(166, 'PRED_14', '1000018', 'Resources allow safety and independence', 'Not seen', 'Entertainment'),
(167, 'PRED_14', '1000018', 'Social interaction provides support', 'Not seen', 'Entertainment'),
(168, 'PRED_14', '1000018', 'Demands of activity match abilities/interests', 'Not seen', 'Entertainment'),
(169, 'PRED_16', '1000019', 'Apprisal of ability', 'Facilitates occupational participation', 'motivation'),
(170, 'PRED_16', '1000019', 'Expectation of success', 'Facilitates occupational participation', 'motivation'),
(171, 'PRED_16', '1000019', 'interest', 'Facilitates occupational participation', 'motivation'),
(172, 'PRED_16', '1000019', 'Choices', 'Facilitates occupational participation', 'motivation'),
(173, 'PRED_16', '1000019', 'Routine', 'Facilitates occupational participation', 'Pattern'),
(174, 'PRED_16', '1000019', 'Adaptability', 'Facilitates occupational participation', 'Pattern'),
(175, 'PRED_16', '1000019', 'Roles', 'Facilitates occupational participation', 'Pattern'),
(176, 'PRED_16', '1000019', 'Responsibility', 'Facilitates occupational participation', 'Pattern'),
(177, 'PRED_16', '1000019', 'Non verbal skills', 'Facilitates occupational participation', 'Comm'),
(178, 'PRED_16', '1000019', 'conversation', 'Facilitates occupational participation', 'Comm'),
(179, 'PRED_16', '1000019', 'vocal expression', 'Facilitates occupational participation', 'Comm'),
(180, 'PRED_16', '1000019', 'Relationships', 'Facilitates occupational participation', 'Comm'),
(181, 'PRED_16', '1000019', 'Knowledge', 'Facilitates occupational participation', 'Process'),
(182, 'PRED_16', '1000019', 'Timing', 'Facilitates occupational participation', 'Process'),
(183, 'PRED_16', '1000019', 'Organization', 'Facilitates occupational participation', 'Process'),
(184, 'PRED_16', '1000019', 'Problem solving', 'Facilitates occupational participation', 'Process'),
(185, 'PRED_16', '1000019', 'Posture and Mobilty', 'Facilitates occupational participation', 'Motor'),
(186, 'PRED_16', '1000019', 'Cordination', 'Facilitates occupational participation', 'Motor'),
(187, 'PRED_16', '1000019', 'strength and effort', 'Facilitates occupational participation', 'Motor'),
(188, 'PRED_16', '1000019', 'Energy', 'Facilitates occupational participation', 'Motor'),
(189, 'PRED_16', '1000019', 'Physical space', 'Facilitates occupational participation', 'Entertainment'),
(190, 'PRED_16', '1000019', 'Physical Resources', 'Facilitates occupational participation', 'Entertainment'),
(191, 'PRED_16', '1000019', 'Social groups', 'Facilitates occupational participation', 'Entertainment'),
(192, 'PRED_16', '1000019', 'Operational Demands', 'Facilitates occupational participation', 'Entertainment');
-- --------------------------------------------------------
--
-- Table structure for table `nxt`
--
CREATE TABLE `nxt` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`assessment` varchar(2000) NOT NULL,
`occupation` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `nxt`
--
INSERT INTO `nxt` (`id`, `num`, `rec`, `assessment`, `occupation`) VALUES
(1, 'PRED_10', '1000009', 'Environment analysis', 'Occupation being assessed'),
(4, 'PRED_10', '1000010', 'Environment analysis', 'Occupation being assessed'),
(5, 'PRED_10', '1000013', 'Environment analysis', 'Occupation being assessed'),
(6, 'PRED_10', '1000014', 'Environment analysis', 'Occupation being assessed'),
(7, 'PRED_16', '1000017', 'Environment analysis', 'Occupation being assessed'),
(8, 'PRED_14', '1000018', 'Environment analysis', 'Occupation being assessed'),
(9, 'PRED_16', '1000019', 'Environment analysis', 'Occupation being assessed');
-- --------------------------------------------------------
--
-- Table structure for table `patient`
--
CREATE TABLE `patient` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`patient` varchar(2000) NOT NULL,
`comment` varchar(2000) NOT NULL,
`analysis` varchar(2000) NOT NULL,
`short_goal` varchar(2000) NOT NULL,
`long_goals` varchar(2000) NOT NULL,
`OT` varchar(2000) NOT NULL,
`frequency` varchar(2000) NOT NULL,
`theraphist` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `patient`
--
INSERT INTO `patient` (`id`, `num`, `rec`, `patient`, `comment`, `analysis`, `short_goal`, `long_goals`, `OT`, `frequency`, `theraphist`) VALUES
(1, 'PRED_10', '1000006', 'family goals', 'analysis', '', 'short goals', 'long goals', 'OT', 'duration', ''),
(2, 'PRED_10', '1000006', 'family goals', 'the comment', 'jjj', 'short goals', 'long goals', 'OT', 'duration', ''),
(3, 'PRED_10', '1000007', 'family goals', 'comment goes here', 'analysis of occupational performance', 'shorth term goals', 'long term goals', 'OT intervention', 'frequency of duration ', '<NAME>'),
(4, 'PRED_11', '1000008', 'remjv', 'fadvea', 'erevwe', 'eferqomo', 'kjn jkef', 'jiadu', 'sdkj', '<NAME>'),
(5, 'PRED_10', '1000012', 'family goals', 'comments', 'analysis of occupational performance', 'short term goals', 'long term goals', 'rr', 'ee', 'Damilola'),
(6, 'PRED_16', '1000015', 'family goals', 'dsv e', 'bgbfd', 'fgfds ', 'sdfsd', 'sdfsd', 'sfgs', '<NAME>'),
(7, 'PRED_16', '1000016', 'family goals', 'gfsd', 'sdf', 'sdf', 'sfc', 'sdf', 'sdf', '<NAME>'),
(8, 'PRED_16', '1000020', 'family goals', '', 'DLZMFKDAFN', 'LKSDMFAS', 'LAKSDMFK', 'KJNASDKJ', 'LKMSADA', 'ade');
-- --------------------------------------------------------
--
-- Table structure for table `pattern`
--
CREATE TABLE `pattern` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`question` varchar(2000) NOT NULL,
`answer` varchar(2000) NOT NULL,
`comment` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `performance`
--
CREATE TABLE `performance` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`issue` varchar(2000) NOT NULL,
`answer` varchar(2000) NOT NULL,
`comment` varchar(2000) NOT NULL,
`tp` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `performance`
--
INSERT INTO `performance` (`id`, `num`, `rec`, `issue`, `answer`, `comment`, `tp`) VALUES
(1, 'PRED_10', '1000006', 'Sit', 'impared', 'bnm', 'Posture'),
(2, 'PRED_10', '1000006', 'Sit', 'impared', '', 'Balance static'),
(3, 'PRED_10', '1000006', 'Sit', 'impared', '', 'Balance static'),
(4, 'PRED_10', '1000006', 'Sit', 'impared', 'opopo', 'Balance dynamic'),
(5, 'PRED_10', '1000006', 'Sit', 'not impared', 'lll', 'Balance dynamic'),
(6, 'PRED_10', '1000006', 'Endurance/activity tolerance', 'Reduced', '', ''),
(7, 'PRED_10', '1000007', 'Sit', 'impared', 'stand kjkkl', 'Posture'),
(8, 'PRED_10', '1000007', 'Sit', 'impared', 'balance sdtatic', 'Balance static'),
(9, 'PRED_10', '1000007', 'Sit', 'impared', '', 'Balance static'),
(10, 'PRED_10', '1000007', 'Sit', 'impared', 'afeq', 'Balance dynamic'),
(11, 'PRED_10', '1000007', 'Sit', 'not impared', 'cadfea', 'Balance dynamic'),
(12, 'PRED_10', '1000007', 'Endurance/activity tolerance', 'normal', 'efce', ''),
(13, 'PRED_11', '1000008', 'Sit', 'impared', '', 'Posture'),
(14, 'PRED_11', '1000008', 'Sit', 'impared', '', 'Balance static'),
(15, 'PRED_11', '1000008', 'Sit', 'impared', '', 'Balance static'),
(16, 'PRED_11', '1000008', 'Sit', 'impared', '', 'Balance dynamic'),
(17, 'PRED_11', '1000008', 'Sit', 'impared', '', 'Balance dynamic'),
(18, 'PRED_11', '1000008', 'Endurance/activity tolerance', 'Reduced', '', ''),
(19, 'PRED_11', '1000011', 'Sit', 'impared', '', 'Posture'),
(20, 'PRED_11', '1000011', 'Sit', 'impared', '', 'Balance static'),
(21, 'PRED_11', '1000011', 'Sit', 'impared', '', 'Balance static'),
(22, 'PRED_11', '1000011', 'Sit', 'impared', '', 'Balance dynamic'),
(23, 'PRED_11', '1000011', 'Sit', 'impared', '', 'Balance dynamic'),
(24, 'PRED_11', '1000011', 'Endurance/activity tolerance', 'Reduced', '', ''),
(25, 'PRED_10', '1000012', 'Sit', 'not impared', '', 'Posture'),
(26, 'PRED_10', '1000012', 'Sit', 'impared', '', 'Balance static'),
(27, 'PRED_10', '1000012', 'Sit', 'impared', '', 'Balance static'),
(28, 'PRED_10', '1000012', 'Sit', 'impared', '', 'Balance dynamic'),
(29, 'PRED_10', '1000012', 'Sit', 'impared', '', 'Balance dynamic'),
(30, 'PRED_10', '1000012', 'Endurance/activity tolerance', 'normal', 'hjbj', ''),
(31, 'PRED_16', '1000015', 'Sit', 'impared', '', 'Posture'),
(32, 'PRED_16', '1000015', 'Sit', 'impared', '', 'Balance static'),
(33, 'PRED_16', '1000015', 'Sit', 'impared', '', 'Balance static'),
(34, 'PRED_16', '1000015', 'Sit', 'impared', '', 'Balance dynamic'),
(35, 'PRED_16', '1000015', 'Sit', 'impared', '', 'Balance dynamic'),
(36, 'PRED_16', '1000015', 'Endurance/activity tolerance', 'Reduced', '', ''),
(37, 'PRED_16', '1000016', 'Sit', 'impared', '', 'Posture'),
(38, 'PRED_16', '1000016', 'Sit', 'impared', '', 'Balance static'),
(39, 'PRED_16', '1000016', 'Sit', 'impared', '', 'Balance static'),
(40, 'PRED_16', '1000016', 'Sit', 'impared', '', 'Balance dynamic'),
(41, 'PRED_16', '1000016', 'Sit', 'impared', '', 'Balance dynamic'),
(42, 'PRED_16', '1000016', 'Endurance/activity tolerance', 'Reduced', '', ''),
(43, 'PRED_16', '1000020', 'Sit', 'impaired', '', 'Posture'),
(44, 'PRED_16', '1000020', 'Sit', 'impaired', '', 'Balance static'),
(45, 'PRED_16', '1000020', 'Sit', 'impaired', '', 'Balance static'),
(46, 'PRED_16', '1000020', 'Sit', 'impaired', '', 'Balance dynamic'),
(47, 'PRED_16', '1000020', 'Sit', 'impaired', '', 'Balance dynamic'),
(48, 'PRED_16', '1000020', 'Endurance/activity tolerance', 'Reduced', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `receipt`
--
CREATE TABLE `receipt` (
`id` int(255) NOT NULL,
`rec_num` int(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `receipt`
--
INSERT INTO `receipt` (`id`, `rec_num`) VALUES
(1, 1000020);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `activity`
--
ALTER TABLE `activity`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `ADL`
--
ALTER TABLE `ADL`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `assesment`
--
ALTER TABLE `assesment`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `functional`
--
ALTER TABLE `functional`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `leisure`
--
ALTER TABLE `leisure`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mental`
--
ALTER TABLE `mental`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `motivation`
--
ALTER TABLE `motivation`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `nxt`
--
ALTER TABLE `nxt`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `patient`
--
ALTER TABLE `patient`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pattern`
--
ALTER TABLE `pattern`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `performance`
--
ALTER TABLE `performance`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `receipt`
--
ALTER TABLE `receipt`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `activity`
--
ALTER TABLE `activity`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=92;
--
-- AUTO_INCREMENT for table `ADL`
--
ALTER TABLE `ADL`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=101;
--
-- AUTO_INCREMENT for table `assesment`
--
ALTER TABLE `assesment`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `functional`
--
ALTER TABLE `functional`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=190;
--
-- AUTO_INCREMENT for table `leisure`
--
ALTER TABLE `leisure`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;
--
-- AUTO_INCREMENT for table `mental`
--
ALTER TABLE `mental`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `motivation`
--
ALTER TABLE `motivation`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=193;
--
-- AUTO_INCREMENT for table `nxt`
--
ALTER TABLE `nxt`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `patient`
--
ALTER TABLE `patient`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `pattern`
--
ALTER TABLE `pattern`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `performance`
--
ALTER TABLE `performance`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49;
--
-- AUTO_INCREMENT for table `receipt`
--
ALTER TABLE `receipt`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- Database: `fmcphy_OG`
--
CREATE DATABASE IF NOT EXISTS `fmcphy_OG` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `fmcphy_OG`;
-- --------------------------------------------------------
--
-- Table structure for table `chest`
--
CREATE TABLE `chest` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(200) NOT NULL,
`moverment` varchar(2000) NOT NULL,
`list` varchar(2000) NOT NULL,
`breathing` varchar(2000) NOT NULL,
`cough` varchar(2000) NOT NULL,
`sputum` varchar(2000) NOT NULL,
`describe` varchar(2000) NOT NULL,
`physio` varchar(2000) NOT NULL,
`information` varchar(2000) NOT NULL,
`medication` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `chest`
--
INSERT INTO `chest` (`id`, `num`, `rec`, `moverment`, `list`, `breathing`, `cough`, `sputum`, `describe`, `physio`, `information`, `medication`) VALUES
(1, 'PRED_16', '100005', 'yes', 'the list is here', 'No', 'yes', 'No', 'the sputum color', 'Yakubu Damilola', 'related information is here', 'the route is here');
-- --------------------------------------------------------
--
-- Table structure for table `comm`
--
CREATE TABLE `comm` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`describe` varchar(2000) NOT NULL,
`physio` varchar(2000) NOT NULL,
`related` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `comm`
--
INSERT INTO `comm` (`id`, `num`, `rec`, `describe`, `physio`, `related`) VALUES
(1, 'PRED_16', '100005', 'the communication difficulties', 'Yakubu Damilola', 'The other related information is here'),
(2, 'PRED_16', '100005', '', 'Yakubu Damilola', 'related information is here');
-- --------------------------------------------------------
--
-- Table structure for table `complaint`
--
CREATE TABLE `complaint` (
`id` int(255) NOT NULL,
`num` varchar(200) NOT NULL,
`rec` varchar(200) NOT NULL,
`concerns` varchar(2000) NOT NULL,
`physio` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `complaint`
--
INSERT INTO `complaint` (`id`, `num`, `rec`, `concerns`, `physio`) VALUES
(1, '100005', '', 'issue regarding condition', 'Yakubu Damilola'),
(2, 'PRED_16', '100005', 'issue regarding condition', 'Yakubu Damilola'),
(3, 'pred_16', '100006', 'mnj ', 'Yakubu Damilola'),
(4, 'PRED_11', '100007', 'nb ', 'Yakubu Damilola');
-- --------------------------------------------------------
--
-- Table structure for table `goals`
--
CREATE TABLE `goals` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`goals` varchar(2000) NOT NULL,
`physio` varchar(2000) NOT NULL,
`plan` varchar(2000) NOT NULL,
`means` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `goals`
--
INSERT INTO `goals` (`id`, `num`, `rec`, `goals`, `physio`, `plan`, `means`) VALUES
(2, 'PRED_16', '100005', 'goals of therapy', 'Yakubu Damilola', 'Plan of treatment goes here', 'means of treatment goes here');
-- --------------------------------------------------------
--
-- Table structure for table `history`
--
CREATE TABLE `history` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`parity` varchar(1000) NOT NULL,
`boys` varchar(10) NOT NULL,
`girls` varchar(10) NOT NULL,
`twins` varchar(10) NOT NULL,
`pregnancies` varchar(10) NOT NULL,
`duration` varchar(1000) NOT NULL,
`complications` varchar(1000) NOT NULL,
`comment` varchar(1000) NOT NULL,
`term` varchar(1000) NOT NULL,
`term_coment` varchar(1000) NOT NULL,
`labour` varchar(2000) NOT NULL,
`labour_comment` varchar(2000) NOT NULL,
`physio` varchar(1000) NOT NULL,
`related` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `history`
--
INSERT INTO `history` (`id`, `num`, `rec`, `parity`, `boys`, `girls`, `twins`, `pregnancies`, `duration`, `complications`, `comment`, `term`, `term_coment`, `labour`, `labour_comment`, `physio`, `related`) VALUES
(1, 'PRED_16', '100005', '', 'parity', '2', '3', '0', 'no', '2 years', 'no', 'nil', 'Yes', 'full term pregnancy', 'Yes', 'normal', 'Yakubu Damilola');
-- --------------------------------------------------------
--
-- Table structure for table `limb`
--
CREATE TABLE `limb` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`limb` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `limb`
--
INSERT INTO `limb` (`id`, `num`, `rec`, `limb`) VALUES
(1, 'PRED_16', '100005', ''),
(2, 'PRED_16', '100005', ''),
(3, 'PRED_16', '100005', ''),
(4, 'PRED_16', '100005', 'upper limb Left'),
(5, 'PRED_16', '100005', 'Lower limb Right'),
(6, 'PRED_16', '100005', 'Lower limb Left');
-- --------------------------------------------------------
--
-- Table structure for table `muscles`
--
CREATE TABLE `muscles` (
`id` int(255) NOT NULL,
`frequency` varchar(2000) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`muscles` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `muscles`
--
INSERT INTO `muscles` (`id`, `frequency`, `num`, `rec`, `muscles`) VALUES
(1, 'vvds', 'PRED_16', '100005', ''),
(2, 'vvds', 'PRED_16', '100005', ''),
(3, 'vvds', 'PRED_16', '100005', ''),
(4, 'vvds', 'PRED_16', '100005', ''),
(5, 'jhn k', 'PRED_16', '100005', 'Lower limb right'),
(6, 'jhn k', 'PRED_16', '100005', 'upper limb Right'),
(7, 'jhn k', 'PRED_16', '100005', 'Lower limb Left'),
(8, 'jhn k', 'PRED_16', '100005', 'upper limb left'),
(9, 'jhn k', 'PRED_16', '100005', 'Headache');
-- --------------------------------------------------------
--
-- Table structure for table `previous`
--
CREATE TABLE `previous` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`health` varchar(2000) NOT NULL,
`apply` varchar(2000) NOT NULL,
`information` varchar(2000) NOT NULL,
`durable` varchar(2000) NOT NULL,
`explain` varchar(2000) NOT NULL,
`physio` varchar(2000) NOT NULL,
`history` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `previous`
--
INSERT INTO `previous` (`id`, `num`, `rec`, `health`, `apply`, `information`, `durable`, `explain`, `physio`, `history`) VALUES
(1, 'PRED_16', '100005', 'Good', 'Allergies', 'other information regarding health', 'Yes', 'explanation on equipment', 'Yakubu Damilola', 'medical history'),
(2, 'PRED_16', '100005', 'Good', 'Asthma /Breathing Difficulties', 'other information regarding health', 'Yes', 'explanation on equipment', 'Yakubu Damilola', 'medical history'),
(3, 'PRED_16', '100005', 'Good', 'Bronchitis', 'other information regarding health', 'Yes', 'explanation on equipment', 'Yakubu Damilola', 'medical history'),
(4, 'PRED_16', '100005', 'Good', 'Fever', 'other information regarding health', 'Yes', 'explanation on equipment', 'Yakubu Damilola', 'medical history'),
(5, 'PRED_16', '100005', 'Good', 'Night Pain', 'other information regarding health', 'Yes', 'explanation on equipment', 'Yakubu Damilola', 'medical history'),
(6, 'PRED_16', '100005', 'Good', 'Osteoarthritis', 'other information regarding health', 'Yes', 'explanation on equipment', 'Yakubu Damilola', 'medical history'),
(7, 'PRED_16', '100005', 'Good', 'Heart Disease', 'other information regarding health', 'Yes', 'explanation on equipment', 'Yakubu Damilola', 'medical history'),
(8, 'PRED_16', '100005', 'Good', 'Parkinson’s Disease', 'other information regarding health', 'Yes', 'explanation on equipment', 'Yakubu Damilola', 'medical history');
-- --------------------------------------------------------
--
-- Table structure for table `receipt`
--
CREATE TABLE `receipt` (
`id` int(200) NOT NULL,
`rec_num` int(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `receipt`
--
INSERT INTO `receipt` (`id`, `rec_num`) VALUES
(1, 100007);
-- --------------------------------------------------------
--
-- Table structure for table `social`
--
CREATE TABLE `social` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`spouse` varchar(2000) NOT NULL,
`age` varchar(2000) NOT NULL,
`occupation` varchar(2000) NOT NULL,
`P_occupation` varchar(2000) NOT NULL,
`apartment` varchar(2000) NOT NULL,
`smoke` varchar(200) NOT NULL,
`drink` varchar(2000) NOT NULL,
`physio` varchar(2000) NOT NULL,
`related` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `social`
--
INSERT INTO `social` (`id`, `num`, `rec`, `spouse`, `age`, `occupation`, `P_occupation`, `apartment`, `smoke`, `drink`, `physio`, `related`) VALUES
(2, 'PRED_16', '100005', 'Adewale Adeola', '22', 'Trader', 'Farmer', 'Bungalow', 'Yes', 'No', 'Yakub<NAME>', 'related informatoon is here');
-- --------------------------------------------------------
--
-- Table structure for table `table_1`
--
CREATE TABLE `table_1` (
`id` int(255) NOT NULL,
`name` varchar(200) NOT NULL,
`rec` varchar(200) NOT NULL,
`num` varchar(200) NOT NULL,
`DOB` varchar(200) NOT NULL,
`eval` varchar(10) NOT NULL,
`marital` varchar(200) NOT NULL,
`duration` varchar(200) NOT NULL,
`address` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `table_1`
--
INSERT INTO `table_1` (`id`, `name`, `rec`, `num`, `DOB`, `eval`, `marital`, `duration`, `address`) VALUES
(1, ' <NAME> ', '100002', 'PRED_11', '1998-03-12', '2018-12-21', 'single', '', 'Abeokuta'),
(2, ' <NAME> ', '100003', 'PRED_16', '1212-12-12', '2018-12-16', 'single', '2 years', 'Abeokuta'),
(3, ' <NAME> ', '100004', 'PRED_10', '2018-10-14', '2018-12-14', 'single', '2 years', 'Abeokuta'),
(4, ' <NAME> ', '100005', 'PRED_16', '1212-12-12', '2018-12-14', 'single', '2 years', 'Abeokuta'),
(5, ' <NAME> ', '100006', 'pred_16', '1212-12-12', '2018-12-13', 'kjn', 'jn', 'nm'),
(6, ' <NAME> ', '100007', 'PRED_11', '1998-03-12', '2018-12-06', 'jnj', 'n hj', 'hj');
-- --------------------------------------------------------
--
-- Table structure for table `table_2`
--
CREATE TABLE `table_2` (
`id` int(255) NOT NULL,
`reason` varchar(2000) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`conditions` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `table_2`
--
INSERT INTO `table_2` (`id`, `reason`, `num`, `rec`, `conditions`) VALUES
(3, 'bruise', 'PRED_16', '100005', ''),
(4, 'bruise', 'PRED_16', '100005', 'Nausea and vomiting'),
(5, 'bruise', 'PRED_16', '100005', 'Musculoskeletal problems'),
(6, 'bruise', 'PRED_16', '100005', 'Cramps');
-- --------------------------------------------------------
--
-- Table structure for table `treatment`
--
CREATE TABLE `treatment` (
`id` int(255) NOT NULL,
`prior` varchar(2000) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`treatment` varchar(2000) NOT NULL,
`explain` varchar(2000) NOT NULL,
`dt` varchar(2000) NOT NULL,
`physio` varchar(2000) NOT NULL,
`history` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `treatment`
--
INSERT INTO `treatment` (`id`, `prior`, `num`, `rec`, `treatment`, `explain`, `dt`, `physio`, `history`) VALUES
(1, 'yes', 'PRED_16', '100005', '', 'explanation on diagnostic', '2018-12-15', 'Yakubu Damilola', 'the subjective history'),
(2, 'yes', 'PRED_16', '100005', '', 'explanation on diagnostic', '2018-12-15', 'Yakubu Damilola', 'the subjective history'),
(3, 'yes', 'PRED_16', '100005', '', 'explanation on diagnostic', '2018-12-15', 'Yakubu Damilola', 'the subjective history'),
(4, 'yes', 'PRED_16', '100005', '', 'explanation on diagnostic', '2018-12-15', 'Yakubu Damilola', 'the subjective history'),
(5, 'yes', 'PRED_16', '100005', 'MRI', 'explanation on diagnostics', '2018-12-08', 'Yakubu Damilola', 'subjective history'),
(6, 'yes', 'PRED_16', '100005', 'EMG/Nerve conduction test', 'explanation on diagnostics', '2018-12-08', 'Yakubu Damilola', 'subjective history'),
(7, 'yes', 'PRED_16', '100005', '', 'explanation on diagnostics', '2018-12-08', 'Yakubu Damilola', 'subjective history'),
(8, '', 'pred_16', '100006', '', '', '', 'Yakubu Damilola', ''),
(9, '', 'PRED_11', '100007', '', '', '', '<NAME>', '');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `chest`
--
ALTER TABLE `chest`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `comm`
--
ALTER TABLE `comm`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `complaint`
--
ALTER TABLE `complaint`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `goals`
--
ALTER TABLE `goals`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `history`
--
ALTER TABLE `history`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `limb`
--
ALTER TABLE `limb`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `muscles`
--
ALTER TABLE `muscles`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `previous`
--
ALTER TABLE `previous`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `receipt`
--
ALTER TABLE `receipt`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `social`
--
ALTER TABLE `social`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `table_1`
--
ALTER TABLE `table_1`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `table_2`
--
ALTER TABLE `table_2`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `treatment`
--
ALTER TABLE `treatment`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `chest`
--
ALTER TABLE `chest`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `comm`
--
ALTER TABLE `comm`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `complaint`
--
ALTER TABLE `complaint`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `goals`
--
ALTER TABLE `goals`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `history`
--
ALTER TABLE `history`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `limb`
--
ALTER TABLE `limb`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `muscles`
--
ALTER TABLE `muscles`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `previous`
--
ALTER TABLE `previous`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `receipt`
--
ALTER TABLE `receipt`
MODIFY `id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `social`
--
ALTER TABLE `social`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `table_1`
--
ALTER TABLE `table_1`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `table_2`
--
ALTER TABLE `table_2`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `treatment`
--
ALTER TABLE `treatment`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- Database: `fmcphy_ortho`
--
CREATE DATABASE IF NOT EXISTS `fmcphy_ortho` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `fmcphy_ortho`;
-- --------------------------------------------------------
--
-- Table structure for table `additional`
--
CREATE TABLE `additional` (
`id` int(255) NOT NULL,
`num` varchar(200) NOT NULL,
`rec` varchar(100) NOT NULL,
`additional` varchar(400) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `additional`
--
INSERT INTO `additional` (`id`, `num`, `rec`, `additional`) VALUES
(1, 'PRED_10', '100009', 'Headache'),
(2, 'PRED_10', '100009', 'loss of balance'),
(3, 'PRED_10', '100009', 'nausea'),
(4, 'PRED_10', '100009', 'Additional symptoms entered here'),
(5, 'PRED_10', '100009', 'Headache'),
(6, 'PRED_10', '100009', 'Radiating pain to UEs'),
(7, 'PRED_10', '100009', 'numbness'),
(8, 'PRED_10', '100009', 'nausea'),
(9, 'PRED_10', '100009', ''),
(10, 'PRED_10', '100009', 'numbness'),
(11, 'PRED_10', '100009', 'nausea'),
(12, 'PRED_10', '100009', ''),
(13, 'PRED_10', '100009', 'Radiating pain to UEs'),
(14, 'PRED_10', '100009', 'nausea'),
(15, 'PRED_10', '100009', ''),
(16, 'PRED_10', '100009', 'Headache'),
(17, 'PRED_10', '100009', 'nausea'),
(18, 'PRED_10', '100009', ''),
(19, 'PRED_10', '100013', 'numbness'),
(20, 'PRED_10', '100013', ''),
(21, 'PRED_11', '100014', 'Radiating pain to UEs'),
(22, 'PRED_11', '100014', ''),
(23, 'PRED_11', '100015', 'Headache'),
(24, 'PRED_11', '100015', 'Radiating pain to UEs'),
(25, 'PRED_11', '100015', 'loss of balance'),
(26, 'PRED_11', '100015', 'nausea'),
(27, 'PRED_11', '100015', 'Additional symptoms entered here'),
(28, 'PRED_16', '100016', 'numbness'),
(29, 'PRED_16', '100016', ''),
(30, 'PRED_16', '100016', 'Radiating pain to UEs'),
(31, 'PRED_16', '100016', 'nausea'),
(32, 'PRED_16', '100016', '');
-- --------------------------------------------------------
--
-- Table structure for table `doc`
--
CREATE TABLE `doc` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`name` varchar(2000) NOT NULL,
`dt` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `doc`
--
INSERT INTO `doc` (`id`, `num`, `rec`, `name`, `dt`) VALUES
(2, 'PRED_10', '100013', '<NAME>', '2018-11-09'),
(3, 'PRED_11', '100015', '<NAME>', '2018-11-10'),
(4, 'PRED_16', '100016', 'ade', '2018-12-07');
-- --------------------------------------------------------
--
-- Table structure for table `endurance`
--
CREATE TABLE `endurance` (
`id` int(255) NOT NULL,
`num` varchar(200) NOT NULL,
`rec` varchar(200) NOT NULL,
`test` varchar(2000) NOT NULL,
`answer` varchar(2000) NOT NULL,
`endurance` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `endurance`
--
INSERT INTO `endurance` (`id`, `num`, `rec`, `test`, `answer`, `endurance`) VALUES
(1, 'PRED_10', '100009', 'Slump Test', '+ve', 'end'),
(2, 'PRED_10', '100009', 'Straight Leg Raise Test', '-ve', 'end'),
(3, 'PRED_10', '100009', 'Cram Test', '+ve', 'end'),
(4, 'PRED_10', '100009', 'Sign of the Buttock Test', '-ve', 'end'),
(5, 'PRED_10', '100009', 'Prone Knee Bending Test', '+ve', 'end'),
(6, 'PRED_10', '100009', 'Valsalva’s Maneuver Test', '-ve', 'end'),
(7, 'PRED_10', '100009', 'Segmental Instability Test', '-ve', 'end'),
(8, 'PRED_10', '100009', 'Anterior Lumbar Instability Test', '-ve', 'end'),
(9, 'PRED_10', '100009', 'One-legged Standing Lumbar Extension Test', '+ve', 'end'),
(10, 'PRED_10', '100009', 'Quadrant Test', '+ve', 'end'),
(11, 'PRED_10', '100009', 'Trendelenberg Test', '+ve', 'end'),
(12, 'PRED_10', '100009', 'Compression / Distraction', '-ve', 'end'),
(13, 'PRED_10', '100009', 'Other special test', 'others goes here', 'end'),
(14, 'PRED_10', '100009', 'Slump Test', '-ve', '90'),
(15, 'PRED_10', '100009', 'Straight Leg Raise Test', '-ve', '90'),
(16, 'PRED_10', '100009', 'Cram Test', '+ve', '90'),
(17, 'PRED_10', '100009', 'Sign of the Buttock Test', '+ve', '90'),
(18, 'PRED_10', '100009', 'Prone Knee Bending Test', '+ve', '90'),
(19, 'PRED_10', '100009', 'Valsalva’s Maneuver Test', '+ve', '90'),
(20, 'PRED_10', '100009', 'Segmental Instability Test', '+ve', '90'),
(21, 'PRED_10', '100009', 'Anterior Lumbar Instability Test', '-ve', '90'),
(22, 'PRED_10', '100009', 'One-legged Standing Lumbar Extension Test', '+ve', '90'),
(23, 'PRED_10', '100009', 'Quadrant Test', '+ve', '90'),
(24, 'PRED_10', '100009', 'Trendelenberg Test', '-ve', '90'),
(25, 'PRED_10', '100009', 'Compression / Distraction', '+ve', '90'),
(26, 'PRED_10', '100009', 'Other special test', '', '90'),
(27, 'PRED_10', '100013', 'Slump Test', '+ve', '90'),
(28, 'PRED_10', '100013', 'Straight Leg Raise Test', '+ve', '90'),
(29, 'PRED_10', '100013', 'Cram Test', '+ve', '90'),
(30, 'PRED_10', '100013', 'Sign of the Buttock Test', '+ve', '90'),
(31, 'PRED_10', '100013', 'Prone Knee Bending Test', '+ve', '90'),
(32, 'PRED_10', '100013', 'Valsalva’s Maneuver Test', '+ve', '90'),
(33, 'PRED_10', '100013', 'Segmental Instability Test', '+ve', '90'),
(34, 'PRED_10', '100013', 'Anterior Lumbar Instability Test', '+ve', '90'),
(35, 'PRED_10', '100013', 'One-legged Standing Lumbar Extension Test', '+ve', '90'),
(36, 'PRED_10', '100013', 'Quadrant Test', '+ve', '90'),
(37, 'PRED_10', '100013', 'Trendelenberg Test', '+ve', '90'),
(38, 'PRED_10', '100013', 'Compression / Distraction', '+ve', '90'),
(39, 'PRED_10', '100013', 'Other special test', '', '90'),
(40, 'PRED_11', '100014', 'Slump Test', '+ve', 'ss'),
(41, 'PRED_11', '100014', 'Straight Leg Raise Test', '+ve', 'ss'),
(42, 'PRED_11', '100014', 'Cram Test', '+ve', 'ss'),
(43, 'PRED_11', '100014', 'Sign of the Buttock Test', '+ve', 'ss'),
(44, 'PRED_11', '100014', 'Prone Knee Bending Test', '+ve', 'ss'),
(45, 'PRED_11', '100014', 'Valsalva’s Maneuver Test', '+ve', 'ss'),
(46, 'PRED_11', '100014', 'Segmental Instability Test', '+ve', 'ss'),
(47, 'PRED_11', '100014', 'Anterior Lumbar Instability Test', '+ve', 'ss'),
(48, 'PRED_11', '100014', 'One-legged Standing Lumbar Extension Test', '+ve', 'ss'),
(49, 'PRED_11', '100014', 'Quadrant Test', '+ve', 'ss'),
(50, 'PRED_11', '100014', 'Trendelenberg Test', '+ve', 'ss'),
(51, 'PRED_11', '100014', 'Compression / Distraction', '+ve', 'ss'),
(52, 'PRED_11', '100014', 'Other special test', '', 'ss'),
(53, 'PRED_11', '100015', 'Slump Test', '-ve', 'end'),
(54, 'PRED_11', '100015', 'Straight Leg Raise Test', '+ve', 'end'),
(55, 'PRED_11', '100015', 'Cram Test', '+ve', 'end'),
(56, 'PRED_11', '100015', 'Sign of the Buttock Test', '+ve', 'end'),
(57, 'PRED_11', '100015', 'Prone Knee Bending Test', '+ve', 'end'),
(58, 'PRED_11', '100015', 'Valsalva’s Maneuver Test', '-ve', 'end'),
(59, 'PRED_11', '100015', 'Segmental Instability Test', '-ve', 'end'),
(60, 'PRED_11', '100015', 'Anterior Lumbar Instability Test', '+ve', 'end'),
(61, 'PRED_11', '100015', 'One-legged Standing Lumbar Extension Test', '+ve', 'end'),
(62, 'PRED_11', '100015', 'Quadrant Test', '+ve', 'end'),
(63, 'PRED_11', '100015', 'Trendelenberg Test', '+ve', 'end'),
(64, 'PRED_11', '100015', 'Compression / Distraction', '+ve', 'end'),
(65, 'PRED_11', '100015', 'Other special test', '', 'end'),
(66, 'PRED_16', '100016', 'Slump Test', '+ve', '90'),
(67, 'PRED_16', '100016', 'Straight Leg Raise Test', '+ve', '90'),
(68, 'PRED_16', '100016', 'Cram Test', '+ve', '90'),
(69, 'PRED_16', '100016', 'Sign of the Buttock Test', '+ve', '90'),
(70, 'PRED_16', '100016', 'Prone Knee Bending Test', '+ve', '90'),
(71, 'PRED_16', '100016', 'Valsalva’s Maneuver Test', '+ve', '90'),
(72, 'PRED_16', '100016', 'Segmental Instability Test', '+ve', '90'),
(73, 'PRED_16', '100016', 'Anterior Lumbar Instability Test', '+ve', '90'),
(74, 'PRED_16', '100016', 'One-legged Standing Lumbar Extension Test', '+ve', '90'),
(75, 'PRED_16', '100016', 'Quadrant Test', '+ve', '90'),
(76, 'PRED_16', '100016', 'Trendelenberg Test', '+ve', '90'),
(77, 'PRED_16', '100016', 'Compression / Distraction', '+ve', '90'),
(78, 'PRED_16', '100016', 'Other special test', '', '90'),
(79, 'PRED_16', '100016', 'Slump Test', '+ve', '90'),
(80, 'PRED_16', '100016', 'Straight Leg Raise Test', '+ve', '90'),
(81, 'PRED_16', '100016', 'Cram Test', '+ve', '90'),
(82, 'PRED_16', '100016', 'Sign of the Buttock Test', '+ve', '90'),
(83, 'PRED_16', '100016', 'Prone Knee Bending Test', '+ve', '90'),
(84, 'PRED_16', '100016', 'Valsalva’s Maneuver Test', '+ve', '90'),
(85, 'PRED_16', '100016', 'Segmental Instability Test', '+ve', '90'),
(86, 'PRED_16', '100016', 'Anterior Lumbar Instability Test', '+ve', '90'),
(87, 'PRED_16', '100016', 'One-legged Standing Lumbar Extension Test', '+ve', '90'),
(88, 'PRED_16', '100016', 'Quadrant Test', '+ve', '90'),
(89, 'PRED_16', '100016', 'Trendelenberg Test', '+ve', '90'),
(90, 'PRED_16', '100016', 'Compression / Distraction', '+ve', '90'),
(91, 'PRED_16', '100016', 'Other special test', '', '90');
-- --------------------------------------------------------
--
-- Table structure for table `gait`
--
CREATE TABLE `gait` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`weight` varchar(2000) NOT NULL,
`assistive` varchar(20005) NOT NULL,
`assistance` varchar(2000) NOT NULL,
`distance` varchar(2000) NOT NULL,
`pro` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `gait`
--
INSERT INTO `gait` (`id`, `num`, `rec`, `weight`, `assistive`, `assistance`, `distance`, `pro`) VALUES
(1, 'PRED_10', '100009', '', '', 'assis', 'prooo', ''),
(2, 'PRED_10', '100009', '', 'jjj', 'iol', 'prooo', 'www'),
(3, 'PRED_10', '100009', '', 'jjj', 'assis', 'prooo', 'www'),
(4, 'PRED_10', '100013', '', 'jjj', 'assis', 'prooo', 'www'),
(5, 'PRED_11', '100014', 'partial', 'efd', 'sef', 'ef', 'ef'),
(6, 'PRED_11', '100015', 'full', 'jjj', 'assis', 'prooo', 'www'),
(7, 'PRED_16', '100016', 'full', 'klmkl', 'assis', 'prooo', 'www'),
(8, 'PRED_16', '100016', '', '', '', '', ''),
(9, 'PRED_16', '100016', '', '', '', '', ''),
(10, 'PRED_16', '100016', '', '', '', '', ''),
(11, 'PRED_16', '100016', '', '', '', '', ''),
(12, 'PRED_16', '100016', '', '', '', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `gait_2`
--
CREATE TABLE `gait_2` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`posture` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `gait_2`
--
INSERT INTO `gait_2` (`id`, `num`, `rec`, `posture`) VALUES
(1, 'PRED_10', '100009', 'Decrease heel toe gait'),
(2, 'PRED_10', '100009', 'Decrease base of support'),
(3, 'PRED_10', '100009', 'Shuffling gait'),
(4, 'PRED_10', '100009', 'Waddling Cadence (Fast/Slow)'),
(5, 'PRED_10', '100009', 'Festinating'),
(6, 'PRED_10', '100009', ''),
(7, 'PRED_10', '100009', 'Decrease reciprocal arm swing'),
(8, 'PRED_10', '100009', 'Decrease base of support'),
(9, 'PRED_10', '100009', 'Waddling Cadence (Fast/Slow)'),
(10, 'PRED_10', '100009', 'Festinating'),
(11, 'PRED_10', '100009', ''),
(12, 'PRED_10', '100013', 'Decrease reciprocal arm swing'),
(13, 'PRED_10', '100013', 'Festinating'),
(14, 'PRED_10', '100013', ''),
(15, 'PRED_11', '100014', ''),
(16, 'PRED_11', '100015', 'Decrease heel toe gait'),
(17, 'PRED_11', '100015', 'Antalgic gait'),
(18, 'PRED_11', '100015', 'Shuffling gait'),
(19, 'PRED_11', '100015', ''),
(20, 'PRED_16', '100016', ''),
(21, 'PRED_16', '100016', ''),
(22, 'PRED_16', '100016', ''),
(23, 'PRED_16', '100016', ''),
(24, 'PRED_16', '100016', '');
-- --------------------------------------------------------
--
-- Table structure for table `home`
--
CREATE TABLE `home` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`home` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `home`
--
INSERT INTO `home` (`id`, `num`, `rec`, `home`) VALUES
(1, '', '', 'Cane'),
(2, '', '', 'Wheelchair'),
(3, '', '', 'Bath/Shower Seat'),
(4, '', '', ''),
(5, 'PRED_10', '100009', 'Walker'),
(6, 'PRED_10', '100009', 'Cane'),
(7, 'PRED_10', '100009', 'Wheelchair'),
(8, 'PRED_10', '100009', ''),
(9, 'PRED_10', '100009', 'Walker'),
(10, 'PRED_10', '100009', 'Cane'),
(11, 'PRED_10', '100009', 'Wheelchair'),
(12, 'PRED_10', '100009', ''),
(13, 'PRED_10', '100009', 'Walker'),
(14, 'PRED_10', '100009', 'Cane'),
(15, 'PRED_10', '100009', ''),
(16, 'PRED_10', '100009', 'Walker'),
(17, 'PRED_10', '100009', 'Cane'),
(18, 'PRED_10', '100009', 'Wheelchair'),
(19, 'PRED_10', '100009', ''),
(20, 'PRED_10', '100013', 'Cane'),
(21, 'PRED_10', '100013', 'Wheelchair'),
(22, 'PRED_10', '100013', ''),
(23, 'PRED_11', '100014', ''),
(24, 'PRED_11', '100014', 'Cane'),
(25, 'PRED_11', '100014', ''),
(26, 'PRED_11', '100015', 'Walker'),
(27, 'PRED_11', '100015', 'Cane'),
(28, 'PRED_11', '100015', 'Wheelchair'),
(29, 'PRED_11', '100015', ''),
(30, 'PRED_16', '100016', 'Walker'),
(31, 'PRED_16', '100016', '');
-- --------------------------------------------------------
--
-- Table structure for table `last`
--
CREATE TABLE `last` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(200) NOT NULL,
`mobility` varchar(2000) NOT NULL,
`Palpation` varchar(2000) NOT NULL,
`Functional` varchar(2000) NOT NULL,
`Sensation` varchar(2000) NOT NULL,
`Treatment` varchar(2000) NOT NULL,
`Response` varchar(2000) NOT NULL,
`Asseesment` varchar(2000) NOT NULL,
`Rehab` varchar(2000) NOT NULL,
`Short_goal` varchar(2000) NOT NULL,
`Long_goal` varchar(2000) NOT NULL,
`frequency` varchar(2000) NOT NULL,
`Duration` varchar(2000) NOT NULL,
`Modalities` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `last`
--
INSERT INTO `last` (`id`, `num`, `rec`, `mobility`, `Palpation`, `Functional`, `Sensation`, `Treatment`, `Response`, `Asseesment`, `Rehab`, `Short_goal`, `Long_goal`, `frequency`, `Duration`, `Modalities`) VALUES
(1, 'PRED_10', '100009', 'scapular mobility', 'fff', 'action', '', 'cdsf ', 'not tolerated', 'assesment', 'sds', 'goals', 'goals2', 'vvds', 'ee', 'dfds'),
(2, 'PRED_10', '100009', 'scapular mobility', 'fff', 'aa', '', 'qw', 'complain', 'aaa', 'sds', 'goals', 'goals2', 'vvds', 'eegggggggggyyhjhjiokp;.mmjj', 'dfds'),
(3, 'PRED_10', '100013', 'scapular mobility', 'fff', 'hvbjm', '', 'jkn', 'complain', 'ihujkn', 'sds', 'goals', 'goals2', 'jm ', 'ee', 'dfds'),
(4, 'PRED_10', '100013', '', '2018-11-10', '', '', '', '', '', '', '', '', '', '', ''),
(5, 'PRED_11', '100014', 'sd', 'sdf', '', '', 'sdf', 'well tolerated', '', 'aSD', 'aDFw', 'ad', 'AD', 'aD', 'ADF'),
(6, 'PRED_11', '100015', 'scapular mobility', 'fff', 'rg', '', 'cdsf ', 'not tolerated', 'ef', 'sds', 'goals', 'goals2', 'vvds', 'ee', 'dfds');
-- --------------------------------------------------------
--
-- Table structure for table `living`
--
CREATE TABLE `living` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`living` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `living`
--
INSERT INTO `living` (`id`, `num`, `rec`, `living`) VALUES
(1, '', '', 'Independent'),
(2, '', '', 'Unwilling to assist with program'),
(3, 'PRED_10', '100009', 'Independent'),
(4, 'PRED_10', '100009', 'Caregiver'),
(5, 'PRED_10', '100009', 'Able to assist with program'),
(6, 'PRED_10', '100009', 'Unwilling to assist with program'),
(7, 'PRED_10', '100009', 'Independent'),
(8, 'PRED_10', '100009', 'Unwilling to assist with program'),
(9, 'PRED_10', '100009', 'Independent'),
(10, 'PRED_10', '100009', 'Unwilling to assist with program'),
(11, 'PRED_10', '100009', 'Independent'),
(12, 'PRED_10', '100009', 'Unwilling to assist with program'),
(13, 'PRED_10', '100013', 'Able to assist with program'),
(14, 'PRED_10', '100013', 'Unwilling to assist with program'),
(15, 'PRED_11', '100014', 'Caregiver'),
(16, 'PRED_11', '100015', 'Independent'),
(17, 'PRED_11', '100015', 'Caregiver'),
(18, 'PRED_11', '100015', 'Able to assist with program'),
(19, 'PRED_11', '100015', 'Unwilling to assist with program'),
(20, 'PRED_16', '100016', 'Caregiver'),
(21, 'PRED_16', '100016', 'Unable to assist with program');
-- --------------------------------------------------------
--
-- Table structure for table `medical`
--
CREATE TABLE `medical` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`medical` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `medical`
--
INSERT INTO `medical` (`id`, `num`, `rec`, `medical`) VALUES
(1, '', '', 'Cardiac'),
(2, '', '', 'Fractures'),
(3, '', '', 'Falls'),
(4, '', '', 'Other past medical history'),
(5, 'PRED_10', '100009', 'CVA'),
(6, 'PRED_10', '100009', 'Hypertension'),
(7, 'PRED_10', '100009', 'Cancer'),
(8, 'PRED_10', '100009', 'Osteoporosis'),
(9, 'PRED_10', '100009', ''),
(10, 'PRED_10', '100009', 'Cardiac'),
(11, 'PRED_10', '100009', 'NIDDM/IDDM'),
(12, 'PRED_10', '100009', 'Falls'),
(13, 'PRED_10', '100009', ''),
(14, 'PRED_10', '100009', 'CVA'),
(15, 'PRED_10', '100009', 'Hypertension'),
(16, 'PRED_10', '100009', ''),
(17, 'PRED_10', '100009', 'CVA'),
(18, 'PRED_10', '100009', 'Hypertension'),
(19, 'PRED_10', '100009', 'Falls'),
(20, 'PRED_10', '100009', 'Other past medical history'),
(21, 'PRED_10', '100013', 'CVA'),
(22, 'PRED_10', '100013', 'Hypertension'),
(23, 'PRED_10', '100013', ''),
(24, 'PRED_11', '100014', ''),
(25, 'PRED_11', '100014', 'NIDDM/IDDM'),
(26, 'PRED_11', '100014', ''),
(27, 'PRED_11', '100015', 'NIDDM/IDDM'),
(28, 'PRED_11', '100015', 'CVA'),
(29, 'PRED_11', '100015', 'Hypertension'),
(30, 'PRED_11', '100015', ''),
(31, 'PRED_16', '100016', 'CVA'),
(32, 'PRED_16', '100016', 'Hypertension'),
(33, 'PRED_16', '100016', 'Cancer'),
(34, 'PRED_16', '100016', '');
-- --------------------------------------------------------
--
-- Table structure for table `mobility`
--
CREATE TABLE `mobility` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(200) NOT NULL,
`mobility` varchar(2000) NOT NULL,
`Palpation` varchar(2000) NOT NULL,
`Functional` varchar(2000) NOT NULL,
`Sensation` varchar(2000) NOT NULL,
`Treatment` varchar(2000) NOT NULL,
`Response` varchar(2000) NOT NULL,
`Asseesment` varchar(2000) NOT NULL,
`Rehab` varchar(2000) NOT NULL,
`Short_goal` varchar(2000) NOT NULL,
`Long_goal` varchar(2000) NOT NULL,
`frequency` varchar(2000) NOT NULL,
`Duration` varchar(2000) NOT NULL,
`Modalities` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `mobility`
--
INSERT INTO `mobility` (`id`, `num`, `rec`, `mobility`, `Palpation`, `Functional`, `Sensation`, `Treatment`, `Response`, `Asseesment`, `Rehab`, `Short_goal`, `Long_goal`, `frequency`, `Duration`, `Modalities`) VALUES
(1, '', '', 'scapular mobility', 'fff', 'jkglfsnlifgn', '', 'cdsf ', 'not tolerated', 'fdsd', 'sds', 'goals', 'goals2', 'vvds', 'ee', 'dfds'),
(2, 'PRED_10', '100009', 'scapular mobility', 'fff', 'jknjjk', '', 'cdsf ', 'not tolerated', 'svvdfea', 'sds', 'goals', 'goals2', 'vvds', 'ee', 'dfds'),
(3, 'PRED_10', '100009', 'scapular mobility', 'fff', 'fff', '', 'hh', 'complain', 'aaa', 'sds', 'goals', 'goals2', 'vvds', 'eegggggggggyyhjhjiokp;.mmjj', 'dfds'),
(4, 'PRED_10', '100013', 'scapular mobility', 'fff', 'ijnk', '', 'cdsf ', 'not tolerated', 'iuhjkn', 'sds', 'goals', 'goals2', 'vvds', 'ee', 'dfds'),
(5, 'PRED_11', '100014', 'sfdsf', 'fs', '', '', 'sdf', 'well tolerated', '', 'wf', 'fsev', 'rvf', 'vra', 'avr', 'vwa'),
(6, 'PRED_11', '100015', 'scapular mobility', 'fff', 'et', '', 'cdsf ', 'not tolerated', 'sfd', 'sds', 'goals', 'goals2', 'vvds', 'ee', 'dfds'),
(7, 'PRED_16', '100016', 'scapular mobility', 'fff', 'fsv', '', 'cdsf ', 'not tolerated', 'fz', 'sdz', 'sd', 'sdz', 'sd', 'sd', 'sd'),
(8, 'PRED_16', '100016', 'scapular mobility', 'fff', 'hjbjh', '', 'cdsf ', 'complain', 'sdvsa', 'sds', 'goals', 'goals2', 'vvds', 'ee', 'dfds');
-- --------------------------------------------------------
--
-- Table structure for table `mobility_2`
--
CREATE TABLE `mobility_2` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`test` varchar(2000) NOT NULL,
`answer` varchar(2000) NOT NULL,
`comments` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `mobility_2`
--
INSERT INTO `mobility_2` (`id`, `num`, `rec`, `test`, `answer`, `comments`) VALUES
(1, 'PRED_10', '100009', 'Rolling', 'Minimal assistance', 'comments goes here'),
(2, 'PRED_10', '100009', 'Scooting', 'independent', 'comments goes here'),
(3, 'PRED_10', '100009', 'Supine to Sit', 'contact guard assist', 'comments goes here'),
(4, 'PRED_10', '100009', 'Sit to Stand', 'moderate assistance', 'comments goes here'),
(5, 'PRED_10', '100009', 'Wheel Chair use', 'contact guard assist', 'comments goes here'),
(6, 'PRED_10', '100009', 'Other Deviations', 'other here', 'comments goes here'),
(7, 'PRED_10', '100009', 'Static standing', 'BAD', 'comments goes here'),
(8, 'PRED_10', '100009', 'Static sitting', 'FAIR', 'comments goes here'),
(9, 'PRED_10', '100009', 'Dynamic standing', 'GOOD', 'comments goes here'),
(10, 'PRED_10', '100009', 'Dynamic sitting', 'GOOD', 'comments goes here'),
(11, 'PRED_10', '100009', 'Functional Reach', 'FAIR', 'comments goes here'),
(12, 'PRED_10', '100009', 'Single leg balance', 'FAIR', 'comments goes here'),
(13, 'PRED_10', '100009', 'Romberg test', 'GOOD', 'comments goes here'),
(14, 'PRED_10', '100009', 'other', '3', 'comments goes here'),
(15, 'PRED_10', '100009', 'Rolling', 'Minimal assistance', 'aaa'),
(16, 'PRED_10', '100009', 'Scooting', 'contact guard assist', 'aaa'),
(17, 'PRED_10', '100009', 'Supine to Sit', 'standby assist', 'aaa'),
(18, 'PRED_10', '100009', 'Sit to Stand', 'contact guard assist', 'aaa'),
(19, 'PRED_10', '100009', 'Wheel Chair use', 'Minimal assistance', 'aaa'),
(20, 'PRED_10', '100009', 'Other Deviations', 'other here', 'aaa'),
(21, 'PRED_10', '100009', 'Static standing', 'GOOD', 'aaa'),
(22, 'PRED_10', '100009', 'Static sitting', 'GOOD', 'aaa'),
(23, 'PRED_10', '100009', 'Dynamic standing', 'GOOD', 'aaa'),
(24, 'PRED_10', '100009', 'Dynamic sitting', 'BAD', 'aaa'),
(25, 'PRED_10', '100009', 'Functional Reach', 'BAD', 'aaa'),
(26, 'PRED_10', '100009', 'Single leg balance', 'GOOD', 'aaa'),
(27, 'PRED_10', '100009', 'Romberg test', 'GOOD', 'aaa'),
(28, 'PRED_10', '100009', 'other', '', 'aaa'),
(29, 'PRED_10', '100013', 'Rolling', 'standby assist', ''),
(30, 'PRED_10', '100013', 'Scooting', 'contact guard assist', ''),
(31, 'PRED_10', '100013', 'Supine to Sit', 'independent', ''),
(32, 'PRED_10', '100013', 'Sit to Stand', 'Minimal assistance', ''),
(33, 'PRED_10', '100013', 'Wheel Chair use', 'independent', ''),
(34, 'PRED_10', '100013', 'Other Deviations', 'other here', ''),
(35, 'PRED_10', '100013', 'Static standing', 'FAIR', ''),
(36, 'PRED_10', '100013', 'Static sitting', 'GOOD', ''),
(37, 'PRED_10', '100013', 'Dynamic standing', 'BAD', ''),
(38, 'PRED_10', '100013', 'Dynamic sitting', 'GOOD', ''),
(39, 'PRED_10', '100013', 'Functional Reach', 'FAIR', ''),
(40, 'PRED_10', '100013', 'Single leg balance', 'GOOD', ''),
(41, 'PRED_10', '100013', 'Romberg test', 'FAIR', ''),
(42, 'PRED_10', '100013', 'other', 'other here', ''),
(43, 'PRED_11', '100014', 'Rolling', 'independent', 'sfd'),
(44, 'PRED_11', '100014', 'Scooting', 'independent', 'sfd'),
(45, 'PRED_11', '100014', 'Supine to Sit', 'independent', 'sfd'),
(46, 'PRED_11', '100014', 'Sit to Stand', 'independent', 'sfd'),
(47, 'PRED_11', '100014', 'Wheel Chair use', 'independent', 'sfd'),
(48, 'PRED_11', '100014', 'Other Deviations', '', 'sfd'),
(49, 'PRED_11', '100014', 'Static standing', 'GOOD', 'sfd'),
(50, 'PRED_11', '100014', 'Static sitting', 'GOOD', 'sfd'),
(51, 'PRED_11', '100014', 'Dynamic standing', 'GOOD', 'sfd'),
(52, 'PRED_11', '100014', 'Dynamic sitting', 'GOOD', 'sfd'),
(53, 'PRED_11', '100014', 'Functional Reach', 'GOOD', 'sfd'),
(54, 'PRED_11', '100014', 'Single leg balance', 'GOOD', 'sfd'),
(55, 'PRED_11', '100014', 'Romberg test', 'GOOD', 'sfd'),
(56, 'PRED_11', '100014', 'other', '', 'sfd'),
(57, 'PRED_11', '100015', 'Rolling', 'standby assist', 'jhgb'),
(58, 'PRED_11', '100015', 'Scooting', 'contact guard assist', 'jhgb'),
(59, 'PRED_11', '100015', 'Supine to Sit', 'contact guard assist', 'jhgb'),
(60, 'PRED_11', '100015', 'Sit to Stand', 'moderate assistance', 'jhgb'),
(61, 'PRED_11', '100015', 'Wheel Chair use', 'maximum assistance', 'jhgb'),
(62, 'PRED_11', '100015', 'Other Deviations', 'other here', 'jhgb'),
(63, 'PRED_11', '100015', 'Static standing', 'FAIR', 'jhgb'),
(64, 'PRED_11', '100015', 'Static sitting', 'GOOD', 'jhgb'),
(65, 'PRED_11', '100015', 'Dynamic standing', 'GOOD', 'jhgb'),
(66, 'PRED_11', '100015', 'Dynamic sitting', 'GOOD', 'jhgb'),
(67, 'PRED_11', '100015', 'Functional Reach', 'FAIR', 'jhgb'),
(68, 'PRED_11', '100015', 'Single leg balance', 'BAD', 'jhgb'),
(69, 'PRED_11', '100015', 'Romberg test', 'GOOD', 'jhgb'),
(70, 'PRED_11', '100015', 'other', 'other here', 'jhgb'),
(71, 'PRED_16', '100016', 'Rolling', 'independent', ''),
(72, 'PRED_16', '100016', 'Scooting', 'independent', ''),
(73, 'PRED_16', '100016', 'Supine to Sit', 'independent', ''),
(74, 'PRED_16', '100016', 'Sit to Stand', 'independent', ''),
(75, 'PRED_16', '100016', 'Wheel Chair use', 'independent', ''),
(76, 'PRED_16', '100016', 'Other Deviations', '', ''),
(77, 'PRED_16', '100016', 'Static standing', 'GOOD', ''),
(78, 'PRED_16', '100016', 'Static sitting', 'GOOD', ''),
(79, 'PRED_16', '100016', 'Dynamic standing', 'GOOD', ''),
(80, 'PRED_16', '100016', 'Dynamic sitting', 'GOOD', ''),
(81, 'PRED_16', '100016', 'Functional Reach', 'GOOD', ''),
(82, 'PRED_16', '100016', 'Single leg balance', 'GOOD', ''),
(83, 'PRED_16', '100016', 'Romberg test', 'GOOD', ''),
(84, 'PRED_16', '100016', 'other', '', ''),
(85, 'PRED_16', '100016', 'Rolling', 'independent', ''),
(86, 'PRED_16', '100016', 'Scooting', 'independent', ''),
(87, 'PRED_16', '100016', 'Supine to Sit', 'independent', ''),
(88, 'PRED_16', '100016', 'Sit to Stand', 'independent', ''),
(89, 'PRED_16', '100016', 'Wheel Chair use', 'independent', ''),
(90, 'PRED_16', '100016', 'Other Deviations', '', ''),
(91, 'PRED_16', '100016', 'Static standing', 'GOOD', ''),
(92, 'PRED_16', '100016', 'Static sitting', 'GOOD', ''),
(93, 'PRED_16', '100016', 'Dynamic standing', 'GOOD', ''),
(94, 'PRED_16', '100016', 'Dynamic sitting', 'GOOD', ''),
(95, 'PRED_16', '100016', 'Functional Reach', 'GOOD', ''),
(96, 'PRED_16', '100016', 'Single leg balance', 'GOOD', ''),
(97, 'PRED_16', '100016', 'Romberg test', 'GOOD', ''),
(98, 'PRED_16', '100016', 'other', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `posture`
--
CREATE TABLE `posture` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`mobility` varchar(2000) NOT NULL,
`Neurological` varchar(2000) NOT NULL,
`Paresthesias` varchar(2000) NOT NULL,
`Sensation` varchar(2000) NOT NULL,
`Proprioception` varchar(2000) NOT NULL,
`tone` varchar(2000) NOT NULL,
`Reflexes` varchar(2000) NOT NULL,
`other` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `posture`
--
INSERT INTO `posture` (`id`, `num`, `rec`, `mobility`, `Neurological`, `Paresthesias`, `Sensation`, `Proprioception`, `tone`, `Reflexes`, `other`) VALUES
(1, 'PRED_10', '100009', 'scapular mobility', 'neurological', 'parenthesis', 'sensation', 'proprioception', 'hypotonic', 'reflex', 'other'),
(2, 'PRED_10', '100009', 'scapular mobility', 'neurological', 'parenthesis', 'sensation', 'proprioception', 'hypotonic', 'reflex', 'other'),
(3, 'PRED_10', '100009', 'scapular mobility', 'neurological', 'parenthesis', 'sensation', 'proprioception', 'hypotonic', 'reflex', 'other'),
(4, 'PRED_10', '100013', 'scapular mobility', 'neurological', 'parenthesis', 'sensation', 'proprioception', 'normal tonic', 'reflex', 'other'),
(5, 'PRED_11', '100014', 'sdf', 'sd', 'sd', 'sda', 'sd', 'hypertonic', 'asd', 'ads'),
(6, 'PRED_11', '100015', 'scapular mobility', 'neurological', 'parenthesis', 'sensation', 'proprioception', 'normal tonic', 'reflex', 'other'),
(7, 'PRED_16', '100016', 'scapular mobility', 'neurological', 'parenthesis', 'sensation', 'proprioception', 'normal tonic', 'reflex', 'other');
-- --------------------------------------------------------
--
-- Table structure for table `posture_2`
--
CREATE TABLE `posture_2` (
`id` int(255) NOT NULL,
`num` varchar(200) NOT NULL,
`rec` varchar(200) NOT NULL,
`posture` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `posture_2`
--
INSERT INTO `posture_2` (`id`, `num`, `rec`, `posture`) VALUES
(1, 'PRED_10', '100009', 'No Abnormality'),
(2, 'PRED_10', '100009', 'Scoliosis'),
(3, 'PRED_10', '100009', 'Discrepancy'),
(4, 'PRED_10', '100009', ''),
(5, 'PRED_10', '100009', 'Genu Valgum/Varus/Recurvatum'),
(6, 'PRED_10', '100009', 'Leg Length'),
(7, 'PRED_10', '100009', 'Discrepancy'),
(8, 'PRED_10', '100009', 'Lordosis'),
(9, 'PRED_10', '100009', ''),
(10, 'PRED_10', '100009', 'Forward Head'),
(11, 'PRED_10', '100009', 'Scoliosis'),
(12, 'PRED_10', '100009', 'Leg Length'),
(13, 'PRED_10', '100009', 'Discrepancy'),
(14, 'PRED_10', '100009', ''),
(15, 'PRED_10', '100013', 'Genu Valgum/Varus/Recurvatum'),
(16, 'PRED_10', '100013', 'Discrepancy'),
(17, 'PRED_10', '100013', ''),
(18, 'PRED_11', '100014', 'Genu Valgum/Varus/Recurvatum'),
(19, 'PRED_11', '100014', ''),
(20, 'PRED_11', '100015', 'Genu Valgum/Varus/Recurvatum'),
(21, 'PRED_11', '100015', 'Leg Length'),
(22, 'PRED_11', '100015', 'Discrepancy'),
(23, 'PRED_11', '100015', ''),
(24, 'PRED_16', '100016', 'Genu Valgum/Varus/Recurvatum'),
(25, 'PRED_16', '100016', 'Leg Length'),
(26, 'PRED_16', '100016', '');
-- --------------------------------------------------------
--
-- Table structure for table `posture_3`
--
CREATE TABLE `posture_3` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`posture` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `posture_3`
--
INSERT INTO `posture_3` (`id`, `num`, `rec`, `posture`) VALUES
(1, '', '', 'Genu Valgum/Varus/Recurvatum'),
(2, '', '', 'Discrepancy'),
(3, '', '', ''),
(4, 'PRED_10', '100009', 'Forward Head'),
(5, 'PRED_10', '100009', 'Genu Valgum/Varus/Recurvatum'),
(6, 'PRED_10', '100009', 'Leg Length'),
(7, 'PRED_10', '100009', 'Discrepancy'),
(8, 'PRED_10', '100009', ''),
(9, 'PRED_10', '100009', 'Genu Valgum/Varus/Recurvatum'),
(10, 'PRED_10', '100009', 'Discrepancy'),
(11, 'PRED_10', '100009', ''),
(12, 'PRED_10', '100013', 'Genu Valgum/Varus/Recurvatum'),
(13, 'PRED_10', '100013', 'Discrepancy'),
(14, 'PRED_10', '100013', ''),
(15, 'PRED_11', '100014', 'Genu Valgum/Varus/Recurvatum'),
(16, 'PRED_11', '100014', ''),
(17, 'PRED_11', '100015', 'Forward Head'),
(18, 'PRED_11', '100015', 'Scoliosis'),
(19, 'PRED_11', '100015', 'Leg Length'),
(20, 'PRED_11', '100015', 'Discrepancy'),
(21, 'PRED_11', '100015', ''),
(22, 'PRED_16', '100016', 'Genu Valgum/Varus/Recurvatum'),
(23, 'PRED_16', '100016', 'Leg Length'),
(24, 'PRED_16', '100016', 'Discrepancy'),
(25, 'PRED_16', '100016', ''),
(26, 'PRED_16', '100016', 'Genu Valgum/Varus/Recurvatum'),
(27, 'PRED_16', '100016', 'Leg Length'),
(28, 'PRED_16', '100016', 'Discrepancy'),
(29, 'PRED_16', '100016', '');
-- --------------------------------------------------------
--
-- Table structure for table `precautions`
--
CREATE TABLE `precautions` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`precautions` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `precautions`
--
INSERT INTO `precautions` (`id`, `num`, `rec`, `precautions`) VALUES
(1, '', '', 'Use Gait Belt'),
(2, '', '', 'Contracture'),
(3, '', '', 'Bowel/Bladder'),
(4, '', '', 'Endurance'),
(5, '', '', ''),
(6, 'PRED_10', '100009', 'Use Gait Belt'),
(7, 'PRED_10', '100009', 'Fall Precautions'),
(8, 'PRED_10', '100009', 'THR Precautions'),
(9, 'PRED_10', '100009', 'Other Functional Limitations'),
(10, 'PRED_10', '100009', 'Amputation'),
(11, 'PRED_10', '100009', 'Hearing'),
(12, 'PRED_10', '100009', 'Contracture'),
(13, 'PRED_10', '100009', 'Bowel/Bladder'),
(14, 'PRED_10', '100009', 'Endurance'),
(15, 'PRED_10', '100009', ''),
(16, 'PRED_10', '100009', 'Use Gait Belt'),
(17, 'PRED_10', '100009', 'Other Functional Limitations'),
(18, 'PRED_10', '100009', ''),
(19, 'PRED_10', '100009', 'THR Precautions'),
(20, 'PRED_10', '100009', 'Amputation'),
(21, 'PRED_10', '100009', 'Hearing'),
(22, 'PRED_10', '100009', 'Endurance'),
(23, 'PRED_10', '100009', ''),
(24, 'PRED_10', '100009', 'Other Functional Limitations'),
(25, 'PRED_10', '100009', 'Amputation'),
(26, 'PRED_10', '100009', 'Contracture'),
(27, 'PRED_10', '100009', 'Bowel/Bladder'),
(28, 'PRED_10', '100009', 'Endurance'),
(29, 'PRED_10', '100009', ''),
(30, 'PRED_10', '100013', 'Hearing'),
(31, 'PRED_10', '100013', 'Ambulation'),
(32, 'PRED_10', '100013', ''),
(33, 'PRED_11', '100014', ''),
(34, 'PRED_11', '100014', 'Fall Precautions'),
(35, 'PRED_11', '100014', ''),
(36, 'PRED_11', '100015', 'THR Precautions'),
(37, 'PRED_11', '100015', 'Amputation'),
(38, 'PRED_11', '100015', 'Hearing'),
(39, 'PRED_11', '100015', 'Bowel/Bladder'),
(40, 'PRED_11', '100015', 'Endurance'),
(41, 'PRED_11', '100015', ''),
(42, 'PRED_16', '100016', '');
-- --------------------------------------------------------
--
-- Table structure for table `range_1`
--
CREATE TABLE `range_1` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`issue` varchar(10000) NOT NULL,
`carom` varchar(1000) NOT NULL,
`cprom` varchar(10000) NOT NULL,
`cend` varchar(1000) NOT NULL,
`tarom` varchar(1000) NOT NULL,
`tprom` varchar(1000) NOT NULL,
`tend` varchar(2000) NOT NULL,
`comments` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `range_1`
--
INSERT INTO `range_1` (`id`, `num`, `rec`, `issue`, `carom`, `cprom`, `cend`, `tarom`, `tprom`, `tend`, `comments`) VALUES
(1, 'PRED_10', '100009', 'Flexion', 'aa', 'cc', 'ss', 'ww', 'dd', 'vv', 'hhhh'),
(2, 'PRED_10', '100009', 'Extension', 'cc', 'vv', 'bb', 'xx', 'aa', 'dd', 'hhhh'),
(3, 'PRED_10', '100009', 'L Side Bend', 'we', 'dc', 'ee', 're', 'qq', 'as', 'hhhh'),
(4, 'PRED_10', '100009', 'R Side Bend', 'xx', 'cd', 'vv', 'mn', 'vv', 'xs', 'hhhh'),
(5, 'PRED_10', '100009', 'L Rotation', 'aa', 'ww', 'qw', 'fv', 'gg', 'ee', 'hhhh'),
(6, 'PRED_10', '100009', 'R Rotation', 'aw', 'ed', 'er', 'ee', 'dd', 'dd', 'hhhh'),
(7, 'PRED_10', '100009', 'Flexion', 'aa', 'cc', 'ghn', 'ed', 'vfg', 'km', 'gggg'),
(8, 'PRED_10', '100009', 'Extension', 'aa', 'ghjg', 'ss', 'ed', 'ws', 'km', 'gggg'),
(9, 'PRED_10', '100009', 'L Side Bend', 'aa', 'cc', 'ghn', 'ed', 'dd', 'km', 'gggg'),
(10, 'PRED_10', '100009', 'R Side Bend', 'aa', 'cc', 'ghn', 'ed', 'ws', 'gg', 'gggg'),
(11, 'PRED_10', '100009', 'L Rotation', 'aa', 'ghjg', 'ghn', 'ww', 'vfg', 'vv', 'gggg'),
(12, 'PRED_10', '100009', 'R Rotation', 'aa', 'rr', 'ss', 'edsw', 'ws', 'vv', 'gggg'),
(13, 'PRED_10', '100009', 'Flexion', 'aa', 'cc', 'ss', 'ed', 'dd', 'km', ''),
(14, 'PRED_10', '100009', 'Extension', '', '', '', 'ww', 'vfg', 'km', ''),
(15, 'PRED_10', '100009', 'L Side Bend', '', '', 'ss', '', '', '', ''),
(16, 'PRED_10', '100009', 'R Side Bend', '', 'cc', '', '', '', '', ''),
(17, 'PRED_10', '100009', 'L Rotation', '', '', 'ss', '', '', '', ''),
(18, 'PRED_10', '100009', 'R Rotation', '', '', '', '', '', '', ''),
(19, 'PRED_10', '100013', 'Flexion', '', 'cc', '', '', '', '', ''),
(20, 'PRED_10', '100013', 'Extension', '', '', 'ss', '', '', '', ''),
(21, 'PRED_10', '100013', 'L Side Bend', '', '', '', '', '', '', ''),
(22, 'PRED_10', '100013', 'R Side Bend', '', '', '', '', '', '', ''),
(23, 'PRED_10', '100013', 'L Rotation', '', '', '', 'ed', '', '', ''),
(24, 'PRED_10', '100013', 'R Rotation', '', '', '', '', '', '', ''),
(25, 'PRED_11', '100014', 'Flexion', '', '', '', '', '', '', ''),
(26, 'PRED_11', '100014', 'Extension', '', '', '', '', '', '', ''),
(27, 'PRED_11', '100014', 'L Side Bend', '', '', '', '', '', '', ''),
(28, 'PRED_11', '100014', 'R Side Bend', '', '', '', '', '', '', ''),
(29, 'PRED_11', '100014', 'L Rotation', '', '', '', '', '', '', ''),
(30, 'PRED_11', '100014', 'R Rotation', '', '', '', '', '', '', ''),
(31, 'PRED_11', '100015', 'Flexion', 'aa', '', '', '', '', '', ''),
(32, 'PRED_11', '100015', 'Extension', '', 'cc', '', '', '', '', ''),
(33, 'PRED_11', '100015', 'L Side Bend', '', '', '', '', '', '', ''),
(34, 'PRED_11', '100015', 'R Side Bend', '', '', '', 'ed', '', '', ''),
(35, 'PRED_11', '100015', 'L Rotation', '', '', '', '', 'dd', '', ''),
(36, 'PRED_11', '100015', 'R Rotation', '', '', 'ss', '', '', '', ''),
(37, 'PRED_16', '100016', 'Flexion', '', '', '', '', '', '', ''),
(38, 'PRED_16', '100016', 'Extension', '', '', '', '', '', '', ''),
(39, 'PRED_16', '100016', 'L Side Bend', '', '', '', '', '', '', ''),
(40, 'PRED_16', '100016', 'R Side Bend', '', '', '', '', '', '', ''),
(41, 'PRED_16', '100016', 'L Rotation', '', '', '', '', '', '', ''),
(42, 'PRED_16', '100016', 'R Rotation', '', '', '', '', '', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `range_2`
--
CREATE TABLE `range_2` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`issue` varchar(10000) NOT NULL,
`carom` varchar(1000) NOT NULL,
`cprom` varchar(10000) NOT NULL,
`cend` varchar(1000) NOT NULL,
`tarom` varchar(1000) NOT NULL,
`tprom` varchar(1000) NOT NULL,
`tend` varchar(2000) NOT NULL,
`comments` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `range_2`
--
INSERT INTO `range_2` (`id`, `num`, `rec`, `issue`, `carom`, `cprom`, `cend`, `tarom`, `tprom`, `tend`, `comments`) VALUES
(1, 'PRED_10', '100009', 'Flexion', 'aa', 'rr', 'ghn', 'ed', 'ws', 'km', 'Other comments here'),
(2, 'PRED_10', '100009', 'Extension', 'we', 'vb', 'dc', 'er', 'dc', 'se', 'Other comments here'),
(3, 'PRED_10', '100009', 'Abduction', 'we', 'aw', 'er', 'km', 'hj', 'fr', 'Other comments here'),
(4, 'PRED_10', '100009', 'Adduction', 'sed', 'cf', 'vfg', 'dse', 'lok', 'drf', 'Other comments here'),
(5, 'PRED_10', '100009', 'IR', 'dcf', ' vrs', 'esd', 'wes', 'sdx', 'dc', 'Other comments here'),
(6, 'PRED_10', '100009', 'ER', 'swd', 'cdf', 'vb', 'bg', 'de', 'vf', 'Other comments here'),
(7, 'PRED_10', '100009', 'Elbow Flexion', 'swe', 'cdf', 'vfgb', 'erf', 'dsc', 'cvfd', 'Other comments here'),
(8, 'PRED_10', '100009', 'Elbow Extension', 'wsed', 'asx', 'xcd', 'vfc', 'vbg', 'nhm', 'Other comments here'),
(9, 'PRED_10', '100009', 'Wrist Flexion', 'sed', 'cdx', 'asz', 'cdf', 'ed', 'sd', 'Other comments here'),
(10, 'PRED_10', '100009', 'Wrist Extension', 'bg', 'lo', 'km', 'frd', 'hj', 'fv', 'Other comments here'),
(11, 'PRED_10', '100009', 'Flexion', 'aa', 'rr', 'ghn', 'ed', 'vfg', 'km', 'nmlkl.'),
(12, 'PRED_10', '100009', 'Extension', 'aa', 'rr', 'ghn', 'ed', 'vfg', 'km', 'nmlkl.'),
(13, 'PRED_10', '100009', 'Abduction', 'aa', 'rr', 'ghn', 'ed', 'dd', 'km', 'nmlkl.'),
(14, 'PRED_10', '100009', 'Adduction', 'aa', 'rr', 'erf', 'ww', 'vfg', 'km', 'nmlkl.'),
(15, 'PRED_10', '100009', 'IR', 'aa', 'cc', 'ghn', 'ed', 'dd', 'vv', 'nmlkl.'),
(16, 'PRED_10', '100009', 'ER', 'aa', 'rr', 'ghn', 'ww', 'vfg', 'km', 'nmlkl.'),
(17, 'PRED_10', '100009', 'Elbow Flexion', 'aa', 'rr', 'ss', 'ed', 'vfg', 'vv', 'nmlkl.'),
(18, 'PRED_10', '100009', 'Elbow Extension', 'aa', 'cc', 'ghn', 'ww', 'vfg', 'km', 'nmlkl.'),
(19, 'PRED_10', '100009', 'Wrist Flexion', 'aa', 'rr', 'ghn', 'ww', 'dd', 'vv', 'nmlkl.'),
(20, 'PRED_10', '100009', 'Wrist Extension', 'aa', 'cc', 'ghn', 'ed', 'dd', 'vv', 'nmlkl.'),
(21, 'PRED_10', '100009', 'Flexion', '', '', '', '', '', '', ''),
(22, 'PRED_10', '100009', 'Extension', '', '', '', '', '', '', ''),
(23, 'PRED_10', '100009', 'Abduction', '', '', '', 'ed', '', '', ''),
(24, 'PRED_10', '100009', 'Adduction', 'aa', '', '', '', 'vfg', '', ''),
(25, 'PRED_10', '100009', 'IR', '', 'rr', '', '', '', '', ''),
(26, 'PRED_10', '100009', 'ER', '', '', '', '', '', 'vv', ''),
(27, 'PRED_10', '100009', 'Elbow Flexion', '', '', '', '', '', 'vv', ''),
(28, 'PRED_10', '100009', 'Elbow Extension', '', '', '', '', 'vfg', '', ''),
(29, 'PRED_10', '100009', 'Wrist Flexion', '', '', '', '', '', '', ''),
(30, 'PRED_10', '100009', 'Wrist Extension', '', '', '', 'ww', '', '', ''),
(31, 'PRED_10', '100013', 'Flexion', '', 'rr', '', '', '', '', ''),
(32, 'PRED_10', '100013', 'Extension', '', '', '', '', '', '', ''),
(33, 'PRED_10', '100013', 'Abduction', 'aa', '', '', '', '', '', ''),
(34, 'PRED_10', '100013', 'Adduction', '', '', '', '', '', '', ''),
(35, 'PRED_10', '100013', 'IR', 'aa', '', '', '', '', '', ''),
(36, 'PRED_10', '100013', 'ER', '', '', '', '', '', '', ''),
(37, 'PRED_10', '100013', 'Elbow Flexion', '', '', '', '', '', '', ''),
(38, 'PRED_10', '100013', 'Elbow Extension', '', '', '', '', '', '', ''),
(39, 'PRED_10', '100013', 'Wrist Flexion', '', '', '', '', '', '', ''),
(40, 'PRED_10', '100013', 'Wrist Extension', '', '', '', '', '', '', ''),
(41, 'PRED_11', '100014', 'Flexion', '', '', '', '', '', '', ''),
(42, 'PRED_11', '100014', 'Extension', '', '', '', '', '', '', ''),
(43, 'PRED_11', '100014', 'Abduction', '', '', '', '', '', '', ''),
(44, 'PRED_11', '100014', 'Adduction', '', '', '', '', '', '', ''),
(45, 'PRED_11', '100014', 'IR', '', '', '', '', '', '', ''),
(46, 'PRED_11', '100014', 'ER', '', '', '', '', '', '', ''),
(47, 'PRED_11', '100014', 'Elbow Flexion', '', '', '', '', '', '', ''),
(48, 'PRED_11', '100014', 'Elbow Extension', '', '', '', '', '', '', ''),
(49, 'PRED_11', '100014', 'Wrist Flexion', '', '', '', '', '', '', ''),
(50, 'PRED_11', '100014', 'Wrist Extension', '', '', '', '', '', '', ''),
(51, 'PRED_11', '100015', 'Flexion', 'aa', '', '', '', '', '', 'comments for ROM here'),
(52, 'PRED_11', '100015', 'Extension', '', '', '', '', '', '', 'comments for ROM here'),
(53, 'PRED_11', '100015', 'Abduction', '', '', 'ss', '', '', '', 'comments for ROM here'),
(54, 'PRED_11', '100015', 'Adduction', '', '', '', '', '', '', 'comments for ROM here'),
(55, 'PRED_11', '100015', 'IR', '', '', '', 'ww', '', '', 'comments for ROM here'),
(56, 'PRED_11', '100015', 'ER', '', 'rr', 'ghn', '', '', '', 'comments for ROM here'),
(57, 'PRED_11', '100015', 'Elbow Flexion', 'aa', '', '', '', '', '', 'comments for ROM here'),
(58, 'PRED_11', '100015', 'Elbow Extension', '', 'cc', '', 'ed', '', '', 'comments for ROM here'),
(59, 'PRED_11', '100015', 'Wrist Flexion', '', '', 'ss', '', '', '', 'comments for ROM here'),
(60, 'PRED_11', '100015', 'Wrist Extension', '', 'cc', 'ss', '', '', '', 'comments for ROM here'),
(61, 'PRED_16', '100016', 'Flexion', '', '', '', '', '', '', ''),
(62, 'PRED_16', '100016', 'Extension', '', '', '', '', '', '', ''),
(63, 'PRED_16', '100016', 'Abduction', '', '', '', '', '', '', ''),
(64, 'PRED_16', '100016', 'Adduction', '', '', '', '', '', '', ''),
(65, 'PRED_16', '100016', 'IR', '', '', '', '', '', '', ''),
(66, 'PRED_16', '100016', 'ER', '', '', '', '', '', '', ''),
(67, 'PRED_16', '100016', 'Elbow Flexion', '', '', '', '', '', '', ''),
(68, 'PRED_16', '100016', 'Elbow Extension', '', '', '', '', '', '', ''),
(69, 'PRED_16', '100016', 'Wrist Flexion', '', '', '', '', '', '', ''),
(70, 'PRED_16', '100016', 'Wrist Extension', '', '', '', '', '', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `range_3`
--
CREATE TABLE `range_3` (
`id` int(255) NOT NULL,
`num` varchar(2000) NOT NULL,
`rec` varchar(2000) NOT NULL,
`issue` varchar(10000) NOT NULL,
`carom` varchar(1000) NOT NULL,
`cprom` varchar(10000) NOT NULL,
`cend` varchar(1000) NOT NULL,
`tarom` varchar(1000) NOT NULL,
`tprom` varchar(1000) NOT NULL,
`tend` varchar(2000) NOT NULL,
`comments` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `range_3`
--
INSERT INTO `range_3` (`id`, `num`, `rec`, `issue`, `carom`, `cprom`, `cend`, `tarom`, `tprom`, `tend`, `comments`) VALUES
(1, 'PRED_10', '100009', 'Flexion', 'aa', 'ghjg', 'erf', 'edsw', 'vfg', 'gg', 'The place for other comments'),
(2, 'PRED_10', '100009', 'Extension', 'sc', 'vf', 'dc', 'fv', 'lo', 'mm', 'The place for other comments'),
(3, 'PRED_10', '100009', 'Abduction', 'we', 'cf', 'vf', 'vb', 'de', 'cd', 'The place for other comments'),
(4, 'PRED_10', '100009', 'Adduction', 'awq', 'aa', 'dc', 'es', 'fd', 'de', 'The place for other comments'),
(5, 'PRED_10', '100009', 'IR', 'xz', 'xc', 'cc', 'nj', 'vf', 'ss', 'The place for other comments'),
(6, 'PRED_10', '100009', 'ER', 'as', 'ws', 'cc', 'xc', 'xz', 'cv', 'The place for other comments'),
(7, 'PRED_10', '100009', 'Knee Flexion', 'cc', 'mn', 'vb', 'cx', 'aa', 'nm', 'The place for other comments'),
(8, 'PRED_10', '100009', 'Knee Extension', 'dx', 'ss', 'az', 'xc', 'aw', 'cd', 'The place for other comments'),
(9, 'PRED_10', '100009', 'Ankle Flexion', 'xc', 'cv', 'vb', 'bg', 'ee', 'bb', 'The place for other comments'),
(10, 'PRED_10', '100009', 'Ankle Extension', 'cd', 'vv', 'vc', 'mn', 'vb', 'vf', 'The place for other comments'),
(11, 'PRED_10', '100009', 'Ankle Inversion', 'ed', 'we', 'dd', 'cv', 'sx', 'cc', 'The place for other comments'),
(12, 'PRED_10', '100009', 'Ankle Eversion', 'vf', 'nn', 'lo', 'er', 'ng', 'fv', 'The place for other comments'),
(13, 'PRED_10', '100009', 'Flexion', 'aa', 'cc', 'ss', 'ed', 'dd', 'km', 'kkmkm'),
(14, 'PRED_10', '100009', 'Extension', 'aa', 'cc', 'ss', 'ww', 'vfg', 'km', 'kkmkm'),
(15, 'PRED_10', '100009', 'Abduction', 'aa', 'cc', 'ghn', 'ed', 'vfg', 'km', 'kkmkm'),
(16, 'PRED_10', '100009', 'Adduction', 'aa', 'ghjg', 'ss', 'ww', 'vfg', 'km', 'kkmkm'),
(17, 'PRED_10', '100009', 'IR', 'aa', 'rr', 'ghn', 'ed', 'vfg', 'km', 'kkmkm'),
(18, 'PRED_10', '100009', 'ER', 'aa', 'cc', 'ss', 'ed', 'vfg', 'vv', 'kkmkm'),
(19, 'PRED_10', '100009', 'Knee Flexion', 'aa', 'cc', 'ghn', 'ed', 'vfg', 'km', 'kkmkm'),
(20, 'PRED_10', '100009', 'Knee Extension', 'aa', 'cc', 'ghn', 'ww', 'dd', 'vv', 'kkmkm'),
(21, 'PRED_10', '100009', 'Ankle Flexion', 'aa', 'rr', 'ghn', 'ed', 'vfg', 'km', 'kkmkm'),
(22, 'PRED_10', '100009', 'Ankle Extension', 'aa', 'cc', 'ss', 'ed', 'dd', 'vv', 'kkmkm'),
(23, 'PRED_10', '100009', 'Ankle Inversion', 'aa', 'cc', 'ghn', 'ed', 'vfg', 'vv', 'kkmkm'),
(24, 'PRED_10', '100009', 'Ankle Eversion', 'aa', 'rr', 'ghn', 'ww', 'dd', 'km', 'kkmkm'),
(25, 'PRED_10', '100009', 'Flexion', '', 'cc', '', '', '', '', ''),
(26, 'PRED_10', '100009', 'Extension', 'aa', '', '', '', '', '', ''),
(27, 'PRED_10', '100009', 'Abduction', '', 'cc', '', 'ed', 'vfg', '', ''),
(28, 'PRED_10', '100009', 'Adduction', '', '', '', '', 'vfg', '', ''),
(29, 'PRED_10', '100009', 'IR', '', '', '', '', '', '', ''),
(30, 'PRED_10', '100009', 'ER', '', '', '', '', '', '', ''),
(31, 'PRED_10', '100009', 'Knee Flexion', '', '', '', 'edsw', 'vfg', '', ''),
(32, 'PRED_10', '100009', 'Knee Extension', '', '', '', '', '', '', ''),
(33, 'PRED_10', '100009', 'Ankle Flexion', '', '', '', '', '', '', ''),
(34, 'PRED_10', '100009', 'Ankle Extension', '', '', '', '', '', '', ''),
(35, 'PRED_10', '100009', 'Ankle Inversion', 'aa', '', '', '', '', '', ''),
(36, 'PRED_10', '100009', 'Ankle Eversion', '', 'cc', '', '', '', '', ''),
(37, 'PRED_10', '100013', 'Flexion', '', '', '', '', '', '', ''),
(38, 'PRED_10', '100013', 'Extension', '', 'cc', '', '', '', '', ''),
(39, 'PRED_10', '100013', 'Abduction', '', '', '', 'ed', '', '', ''),
(40, 'PRED_10', '100013', 'Adduction', '', '', '', '', '', '', ''),
(41, 'PRED_10', '100013', 'IR', '', '', '', '', 'vfg', '', ''),
(42, 'PRED_10', '100013', 'ER', '', '', '', '', '', '', ''),
(43, 'PRED_10', '100013', 'Knee Flexion', '', '', '', '', '', '', ''),
(44, 'PRED_10', '100013', 'Knee Extension', '', '', '', '', '', '', ''),
(45, 'PRED_10', '100013', 'Ankle Flexion', '', '', '', '', 'ws', '', ''),
(46, 'PRED_10', '100013', 'Ankle Extension', '', '', '', '', '', '', ''),
(47, 'PRED_10', '100013', 'Ankle Inversion', '', '', '', '', '', '', ''),
(48, 'PRED_10', '100013', 'Ankle Eversion', '', '', '', '', '', '', ''),
(49, 'PRED_11', '100014', 'Flexion', '', '', '', '', '', '', ''),
(50, 'PRED_11', '100014', 'Extension', '', '', '', '', '', '', ''),
(51, 'PRED_11', '100014', 'Abduction', '', '', '', '', '', '', ''),
(52, 'PRED_11', '100014', 'Adduction', '', '', '', '', '', '', ''),
(53, 'PRED_11', '100014', 'IR', '', '', '', '', '', '', ''),
(54, 'PRED_11', '100014', 'ER', '', '', '', '', '', '', ''),
(55, 'PRED_11', '100014', 'Knee Flexion', '', '', '', '', '', '', ''),
(56, 'PRED_11', '100014', 'Knee Extension', '', '', '', '', '', '', ''),
(57, 'PRED_11', '100014', 'Ankle Flexion', '', '', '', '', '', '', ''),
(58, 'PRED_11', '100014', 'Ankle Extension', '', '', '', '', '', '', ''),
(59, 'PRED_11', '100014', 'Ankle Inversion', '', '', '', '', '', '', ''),
(60, 'PRED_11', '100014', 'Ankle Eversion', '', '', '', '', '', '', ''),
(61, 'PRED_11', '100015', 'Flexion', 'aa', '', '', '', '', '', ''),
(62, 'PRED_11', '100015', 'Extension', '', '', '', '', '', '', ''),
(63, 'PRED_11', '100015', 'Abduction', '', '', '', '', '', '', ''),
(64, 'PRED_11', '100015', 'Adduction', 'aa', 'cc', '', '', '', '', ''),
(65, 'PRED_11', '100015', 'IR', '', '', 'ss', '', '', '', ''),
(66, 'PRED_11', '100015', 'ER', '', '', '', '', '', '', ''),
(67, 'PRED_11', '100015', 'Knee Flexion', '', '', '', '', '', '', ''),
(68, 'PRED_11', '100015', 'Knee Extension', '', '', 'ss', '', '', '', ''),
(69, 'PRED_11', '100015', 'Ankle Flexion', '', '', '', 'ed', '', '', ''),
(70, 'PRED_11', '100015', 'Ankle Extension', '', '', 'ghn', '', '', '', ''),
(71, 'PRED_11', '100015', 'Ankle Inversion', '', '', '', '', '', '', ''),
(72, 'PRED_11', '100015', 'Ankle Eversion', '', '', '', '', '', '', ''),
(73, 'PRED_16', '100016', 'Flexion', '', '', '', '', '', '', ''),
(74, 'PRED_16', '100016', 'Extension', '', '', '', '', '', '', ''),
(75, 'PRED_16', '100016', 'Abduction', '', '', '', '', '', '', ''),
(76, 'PRED_16', '100016', 'Adduction', '', '', '', '', '', '', ''),
(77, 'PRED_16', '100016', 'IR', '', '', '', '', '', '', ''),
(78, 'PRED_16', '100016', 'ER', '', '', '', '', '', '', ''),
(79, 'PRED_16', '100016', 'Knee Flexion', '', '', '', '', '', '', ''),
(80, 'PRED_16', '100016', 'Knee Extension', '', '', '', '', '', '', ''),
(81, 'PRED_16', '100016', 'Ankle Flexion', '', '', '', '', '', '', ''),
(82, 'PRED_16', '100016', 'Ankle Extension', '', '', '', '', '', '', ''),
(83, 'PRED_16', '100016', 'Ankle Inversion', '', '', '', '', '', '', ''),
(84, 'PRED_16', '100016', 'Ankle Eversion', '', '', '', '', '', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `receipt`
--
CREATE TABLE `receipt` (
`id` int(200) NOT NULL,
`rec_num` int(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `receipt`
--
INSERT INTO `receipt` (`id`, `rec_num`) VALUES
(1, 100016);
-- --------------------------------------------------------
--
-- Table structure for table `special`
--
CREATE TABLE `special` (
`id` int(255) NOT NULL,
`num` varchar(200) NOT NULL,
`rec` varchar(200) NOT NULL,
`Circumference` varchar(2000) NOT NULL,
`Endurance` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `special`
--
INSERT INTO `special` (`id`, `num`, `rec`, `Circumference`, `Endurance`) VALUES
(1, 'PRED_10', '100009', '3.14m', '90'),
(2, 'PRED_10', '100009', '3.14m', '90'),
(3, 'PRED_10', '100009', '3.14m', '90'),
(4, 'PRED_10', '100013', '3.14m', '90'),
(5, 'PRED_11', '100014', 'dsf', 'sdv'),
(6, 'PRED_11', '100015', '3.14m', '90'),
(7, 'PRED_16', '100016', '3.14m', '90');
-- --------------------------------------------------------
--
-- Table structure for table `special_2`
--
CREATE TABLE `special_2` (
`id` int(255) NOT NULL,
`num` varchar(200) NOT NULL,
`rec` varchar(200) NOT NULL,
`test` varchar(2000) NOT NULL,
`answer` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `special_2`
--
INSERT INTO `special_2` (`id`, `num`, `rec`, `test`, `answer`) VALUES
(1, 'PRED_10', '100009', 'Distraction Test', '-ve'),
(2, 'PRED_10', '100009', 'Compression Test', '-ve'),
(3, 'PRED_10', '100009', 'Spurling Test', '+ve'),
(4, 'PRED_10', '100009', 'Movement Test', '-ve'),
(5, 'PRED_10', '100009', 'Empty Can Test', '+ve'),
(6, 'PRED_10', '100009', 'Sulcus Test', '-ve'),
(7, 'PRED_10', '100009', 'Drop Arm Test', '+ve'),
(8, 'PRED_10', '100009', 'Valgus Test', '-ve'),
(9, 'PRED_10', '100009', 'Varus Test', '+ve'),
(10, 'PRED_10', '100009', 'Tinel Test', '+ve'),
(11, 'PRED_10', '100009', 'Tinel’s Test', '-ve'),
(12, 'PRED_10', '100009', 'Reverse Phalen’s Test', '+ve'),
(13, 'PRED_10', '100009', 'Compression Test', '-ve'),
(14, 'PRED_10', '100009', 'Faber’s Test', '+ve'),
(15, 'PRED_10', '100009', 'Ely’s Test', '-ve'),
(16, 'PRED_10', '100009', 'Gaeslen Test', '-ve'),
(17, 'PRED_10', '100009', 'Valgus Test', '-ve'),
(18, 'PRED_10', '100009', 'Varus Test', '+ve'),
(19, 'PRED_10', '100009', 'Anterior Drawal Test', '-ve'),
(20, 'PRED_10', '100009', 'Posterior Drawal Test', '-ve'),
(21, 'PRED_10', '100009', 'Patella Grind Test', '+ve'),
(22, 'PRED_10', '100009', 'Talar Tilt Test', '-ve'),
(23, 'PRED_10', '100009', 'Anterior Drawal Test', '-ve'),
(24, 'PRED_10', '100009', 'External Rotator Test', '-ve'),
(25, 'PRED_10', '100009', 'Distraction Test', '+ve'),
(26, 'PRED_10', '100009', 'Compression Test', '+ve'),
(27, 'PRED_10', '100009', 'Spurling Test', '+ve'),
(28, 'PRED_10', '100009', 'Movement Test', '+ve'),
(29, 'PRED_10', '100009', 'Empty Can Test', '+ve'),
(30, 'PRED_10', '100009', 'Sulcus Test', '+ve'),
(31, 'PRED_10', '100009', 'Drop Arm Test', '+ve'),
(32, 'PRED_10', '100009', 'Valgus Test', '+ve'),
(33, 'PRED_10', '100009', 'Varus Test', '+ve'),
(34, 'PRED_10', '100009', 'Tinel Test', '+ve'),
(35, 'PRED_10', '100009', 'Tinel’s Test', '+ve'),
(36, 'PRED_10', '100009', 'Reverse Phalen’s Test', '+ve'),
(37, 'PRED_10', '100009', 'Compression Test', '+ve'),
(38, 'PRED_10', '100009', 'Faber’s Test', '+ve'),
(39, 'PRED_10', '100009', 'Ely’s Test', '+ve'),
(40, 'PRED_10', '100009', 'Gaeslen Test', '+ve'),
(41, 'PRED_10', '100009', 'Valgus Test', '+ve'),
(42, 'PRED_10', '100009', 'Varus Test', '+ve'),
(43, 'PRED_10', '100009', 'Anterior Drawal Test', '+ve'),
(44, 'PRED_10', '100009', 'Posterior Drawal Test', '+ve'),
(45, 'PRED_10', '100009', 'Patella Grind Test', '+ve'),
(46, 'PRED_10', '100009', 'Talar Tilt Test', '+ve'),
(47, 'PRED_10', '100009', 'Anterior Drawal Test', '+ve'),
(48, 'PRED_10', '100009', 'External Rotator Test', '+ve'),
(49, 'PRED_10', '100009', 'Distraction Test', '+ve'),
(50, 'PRED_10', '100009', 'Compression Test', '+ve'),
(51, 'PRED_10', '100009', 'Spurling Test', '+ve'),
(52, 'PRED_10', '100009', 'Movement Test', '+ve'),
(53, 'PRED_10', '100009', 'Empty Can Test', '+ve'),
(54, 'PRED_10', '100009', 'Sulcus Test', '+ve'),
(55, 'PRED_10', '100009', 'Drop Arm Test', '+ve'),
(56, 'PRED_10', '100009', 'Valgus Test', '+ve'),
(57, 'PRED_10', '100009', 'Varus Test', '+ve'),
(58, 'PRED_10', '100009', 'Tinel Test', '+ve'),
(59, 'PRED_10', '100009', 'Tinel’s Test', '-ve'),
(60, 'PRED_10', '100009', 'Reverse Phalen’s Test', '-ve'),
(61, 'PRED_10', '100009', 'Compression Test', '+ve'),
(62, 'PRED_10', '100009', 'Faber’s Test', '+ve'),
(63, 'PRED_10', '100009', 'Ely’s Test', '+ve'),
(64, 'PRED_10', '100009', 'Gaeslen Test', '+ve'),
(65, 'PRED_10', '100009', 'Valgus Test', '-ve'),
(66, 'PRED_10', '100009', 'Varus Test', '-ve'),
(67, 'PRED_10', '100009', 'Anterior Drawal Test', '+ve'),
(68, 'PRED_10', '100009', 'Posterior Drawal Test', '+ve'),
(69, 'PRED_10', '100009', 'Patella Grind Test', '+ve'),
(70, 'PRED_10', '100009', 'Talar Tilt Test', '+ve'),
(71, 'PRED_10', '100009', 'Anterior Drawal Test', '+ve'),
(72, 'PRED_10', '100009', 'External Rotator Test', '+ve'),
(73, 'PRED_10', '100013', 'Distraction Test', '-ve'),
(74, 'PRED_10', '100013', 'Compression Test', '+ve'),
(75, 'PRED_10', '100013', 'Spurling Test', '+ve'),
(76, 'PRED_10', '100013', 'Movement Test', '+ve'),
(77, 'PRED_10', '100013', 'Empty Can Test', '+ve'),
(78, 'PRED_10', '100013', 'Sulcus Test', '+ve'),
(79, 'PRED_10', '100013', 'Drop Arm Test', '+ve'),
(80, 'PRED_10', '100013', 'Valgus Test', '+ve'),
(81, 'PRED_10', '100013', 'Varus Test', '+ve'),
(82, 'PRED_10', '100013', 'Tinel Test', '+ve'),
(83, 'PRED_10', '100013', 'Tinel’s Test', '+ve'),
(84, 'PRED_10', '100013', 'Reverse Phalen’s Test', '+ve'),
(85, 'PRED_10', '100013', 'Compression Test', '+ve'),
(86, 'PRED_10', '100013', 'Faber’s Test', '+ve'),
(87, 'PRED_10', '100013', 'Ely’s Test', '+ve'),
(88, 'PRED_10', '100013', 'Gaeslen Test', '+ve'),
(89, 'PRED_10', '100013', 'Valgus Test', '+ve'),
(90, 'PRED_10', '100013', 'Varus Test', '+ve'),
(91, 'PRED_10', '100013', 'Anterior Drawal Test', '+ve'),
(92, 'PRED_10', '100013', 'Posterior Drawal Test', '+ve'),
(93, 'PRED_10', '100013', 'Patella Grind Test', '+ve'),
(94, 'PRED_10', '100013', 'Talar Tilt Test', '+ve'),
(95, 'PRED_10', '100013', 'Anterior Drawal Test', '+ve'),
(96, 'PRED_10', '100013', 'External Rotator Test', '+ve'),
(97, 'PRED_11', '100014', 'Distraction Test', '+ve'),
(98, 'PRED_11', '100014', 'Compression Test', '+ve'),
(99, 'PRED_11', '100014', 'Spurling Test', '+ve'),
(100, 'PRED_11', '100014', 'Movement Test', '+ve'),
(101, 'PRED_11', '100014', 'Empty Can Test', '+ve'),
(102, 'PRED_11', '100014', 'Sulcus Test', '+ve'),
(103, 'PRED_11', '100014', 'Drop Arm Test', '+ve'),
(104, 'PRED_11', '100014', 'Valgus Test', '+ve'),
(105, 'PRED_11', '100014', 'Varus Test', '+ve'),
(106, 'PRED_11', '100014', 'Tinel Test', '+ve'),
(107, 'PRED_11', '100014', 'Tinel’s Test', '+ve'),
(108, 'PRED_11', '100014', 'Reverse Phalen’s Test', '+ve'),
(109, 'PRED_11', '100014', 'Compression Test', '+ve'),
(110, 'PRED_11', '100014', 'Faber’s Test', '+ve'),
(111, 'PRED_11', '100014', 'Ely’s Test', '+ve'),
(112, 'PRED_11', '100014', 'Gaeslen Test', '+ve'),
(113, 'PRED_11', '100014', 'Valgus Test', '+ve'),
(114, 'PRED_11', '100014', 'Varus Test', '+ve'),
(115, 'PRED_11', '100014', 'Anterior Drawal Test', '+ve'),
(116, 'PRED_11', '100014', 'Posterior Drawal Test', '+ve'),
(117, 'PRED_11', '100014', 'Patella Grind Test', '+ve'),
(118, 'PRED_11', '100014', 'Talar Tilt Test', '+ve'),
(119, 'PRED_11', '100014', 'Anterior Drawal Test', '+ve'),
(120, 'PRED_11', '100014', 'External Rotator Test', '+ve'),
(121, 'PRED_11', '100015', 'Distraction Test', '-ve'),
(122, 'PRED_11', '100015', 'Compression Test', '-ve'),
(123, 'PRED_11', '100015', 'Spurling Test', '+ve'),
(124, 'PRED_11', '100015', 'Movement Test', '+ve'),
(125, 'PRED_11', '100015', 'Empty Can Test', '+ve'),
(126, 'PRED_11', '100015', 'Sulcus Test', '+ve'),
(127, 'PRED_11', '100015', 'Drop Arm Test', '+ve'),
(128, 'PRED_11', '100015', 'Valgus Test', '-ve'),
(129, 'PRED_11', '100015', 'Varus Test', '+ve'),
(130, 'PRED_11', '100015', 'Tinel Test', '+ve'),
(131, 'PRED_11', '100015', 'Tinel’s Test', '-ve'),
(132, 'PRED_11', '100015', 'Reverse Phalen’s Test', '+ve'),
(133, 'PRED_11', '100015', 'Compression Test', '+ve'),
(134, 'PRED_11', '100015', 'Faber’s Test', '-ve'),
(135, 'PRED_11', '100015', 'Ely’s Test', '+ve'),
(136, 'PRED_11', '100015', 'Gaeslen Test', '+ve'),
(137, 'PRED_11', '100015', 'Valgus Test', '+ve'),
(138, 'PRED_11', '100015', 'Varus Test', '+ve'),
(139, 'PRED_11', '100015', 'Anterior Drawal Test', '+ve'),
(140, 'PRED_11', '100015', 'Posterior Drawal Test', '+ve'),
(141, 'PRED_11', '100015', 'Patella Grind Test', '+ve'),
(142, 'PRED_11', '100015', 'Talar Tilt Test', '+ve'),
(143, 'PRED_11', '100015', 'Anterior Drawal Test', '+ve'),
(144, 'PRED_11', '100015', 'External Rotator Test', '+ve'),
(145, 'PRED_16', '100016', 'Distraction Test', '+ve'),
(146, 'PRED_16', '100016', 'Compression Test', '+ve'),
(147, 'PRED_16', '100016', 'Spurling Test', '+ve'),
(148, 'PRED_16', '100016', 'Movement Test', '+ve'),
(149, 'PRED_16', '100016', 'Empty Can Test', '+ve'),
(150, 'PRED_16', '100016', 'Sulcus Test', '+ve'),
(151, 'PRED_16', '100016', 'Drop Arm Test', '+ve'),
(152, 'PRED_16', '100016', 'Valgus Test', '+ve'),
(153, 'PRED_16', '100016', 'Varus Test', '+ve'),
(154, 'PRED_16', '100016', 'Tinel Test', '+ve'),
(155, 'PRED_16', '100016', 'Tinel’s Test', '+ve'),
(156, 'PRED_16', '100016', 'Reverse Phalen’s Test', '+ve'),
(157, 'PRED_16', '100016', 'Compression Test', '+ve'),
(158, 'PRED_16', '100016', 'Faber’s Test', '+ve'),
(159, 'PRED_16', '100016', 'Ely’s Test', '+ve'),
(160, 'PRED_16', '100016', 'Gaeslen Test', '+ve'),
(161, 'PRED_16', '100016', 'Valgus Test', '+ve'),
(162, 'PRED_16', '100016', 'Varus Test', '+ve'),
(163, 'PRED_16', '100016', 'Anterior Drawal Test', '+ve'),
(164, 'PRED_16', '100016', 'Posterior Drawal Test', '+ve'),
(165, 'PRED_16', '100016', 'Patella Grind Test', '+ve'),
(166, 'PRED_16', '100016', 'Talar Tilt Test', '+ve'),
(167, 'PRED_16', '100016', 'Anterior Drawal Test', '+ve'),
(168, 'PRED_16', '100016', 'External Rotator Test', '+ve');
-- --------------------------------------------------------
--
-- Table structure for table `table_1`
--
CREATE TABLE `table_1` (
`id` int(255) NOT NULL,
`name` varchar(200) NOT NULL,
`DOB` varchar(200) NOT NULL,
`num` varchar(200) NOT NULL,
`rec` varchar(200) NOT NULL,
`dt` varchar(10) NOT NULL,
`diagnosis` varchar(100) NOT NULL,
`onset` varchar(100) NOT NULL,
`occupation` varchar(100) NOT NULL,
`goals` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `table_1`
--
INSERT INTO `table_1` (`id`, `name`, `DOB`, `num`, `rec`, `dt`, `diagnosis`, `onset`, `occupation`, `goals`) VALUES
(1, 'Y<NAME>', '2018-10-14', 'PRED_10', '100009', '2018-10-05', 'heavy bruise', '2018-10-12', 'Trader', 'Bruise to heal'),
(2, 'Y<NAME>', '2018-10-14', 'PRED_10', '100009', '2018-10-19', 'heavy bruise', '2018-11-03', 'Trader', 'Bruise to heal'),
(3, 'Y<NAME>', '2018-10-14', 'PRED_10', '100009', '2018-10-21', 'heavy bruise', '2018-10-13', 'Trader', 'Bruise to heal'),
(4, 'Yakubu Damilola', '2018-10-14', 'PRED_10', '100009', '2018-10-14', 'heavy bruise', '2018-10-13', 'Trader', 'Bruise to heal'),
(5, 'Yakubu Damilola', '2018-10-14', 'PRED_10', '100009', '2018-10-12', 'heavy bruise', '2018-10-12', 'Trader', 'Bruise to heal'),
(6, '<NAME>', '2018-10-14', 'PRED_10', '100011', '2018-11-17', 'heavy bruise', '2018-11-11', 'Trader', 'Bruise to heal'),
(7, '<NAME>', '2018-10-14', 'PRED_10', '100012', '2018-11-10', 'heavy bruise', '2018-11-04', 'Trader', 'Bruise to heal'),
(8, '<NAME>', '2018-10-14', 'PRED_10', '100013', '2018-11-09', 'heavy bruise', '2018-11-24', 'Trader', 'Bruise to heal'),
(9, '<NAME>', '2018-10-06', 'PRED_11', '100014', '2018-11-08', 'cdas', '2018-11-08', 'sdf', 'fvdsz'),
(10, '<NAME>', '2018-10-06', 'PRED_11', '100015', '2018-11-09', 'heavy bruise', '2018-11-09', 'Trader', 'Bruise to heal'),
(11, '<NAME>', '1212-12-12', 'PRED_16', '100016', '2018-12-13', 'heavy bruise', '', 'Trader', 'Bruise to heal');
-- --------------------------------------------------------
--
-- Table structure for table `table_2`
--
CREATE TABLE `table_2` (
`id` int(255) NOT NULL,
`num` varchar(1000) NOT NULL,
`rec` varchar(1000) NOT NULL,
`BP` varchar(1000) NOT NULL,
`heart` varchar(1000) NOT NULL,
`respiration` varchar(1000) NOT NULL,
`complaint` varchar(1000) NOT NULL,
`history` varchar(1000) NOT NULL,
`symptoms` varchar(1000) NOT NULL,
`onset` varchar(2000) NOT NULL,
`pain` varchar(2000) NOT NULL,
`des` varchar(10000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `table_2`
--
INSERT INTO `table_2` (`id`, `num`, `rec`, `BP`, `heart`, `respiration`, `complaint`, `history`, `symptoms`, `onset`, `pain`, `des`) VALUES
(1, 'PRED_10', '100009', '90', '80', '99', 'Chief complaint', 'Present bruise', 'The current symptoms', 'the onset', 'the pain', 'Intermittent'),
(2, 'PRED_10', '100009', '90', '80', '99', 'Chief complaint', 'Present bruise', 'The current symptoms', 'the onset', 'the pain', 'Intermittent'),
(3, 'PRED_10', '100009', '90', '80', '99', 'Chief complaint', 'Present bruise', 'The current symptoms', 'the onset', 'the pain', 'Constant'),
(4, 'PRED_10', '100009', '90', '80', '99', 'Chief complaint', 'Present bruise', 'The current symptoms', 'the onset', 'the pain', 'Constant'),
(5, 'PRED_10', '100009', '90', '80', '99', 'Chief complaint', 'Present bruise', 'The current symptoms', 'the onset', 'the pain', 'Dull'),
(6, 'PRED_10', '100013', '90', '80', '99', 'Chief complaint', 'Present bruise', 'The current symptoms', 'the onset', 'the pain', 'Constant'),
(7, 'PRED_11', '100014', 'hfds', 'rg', 'gr', 'rfv', 'fevw', 'vfr', 'ver', 'vfe', 'Constant'),
(8, 'PRED_11', '100015', '90', '80', '44', 'Chief complaint', 'Present bruise', 'The current symptoms', 'the onset', 'the pain', 'Constant'),
(9, 'PRED_16', '100016', '90', '80', '99', 'Chief complaint', 'Present bruise', 'The current symptoms', 'the onset', 'the pain', 'Dull'),
(10, 'PRED_16', '100016', '90', '80', '99', 'Chief complaint', 'Present bruise', 'The current symptoms', 'the onset', 'the pain', 'Intermittent');
-- --------------------------------------------------------
--
-- Table structure for table `table_3`
--
CREATE TABLE `table_3` (
`id` int(255) NOT NULL,
`num` varchar(100) NOT NULL,
`rec` varchar(100) NOT NULL,
`worse` varchar(200) NOT NULL,
`best` varchar(200) NOT NULL,
`current` varchar(200) NOT NULL,
`duration` varchar(2000) NOT NULL,
`aggrevating` varchar(2000) NOT NULL,
`allevating` varchar(2000) NOT NULL,
`behaviour` varchar(2000) NOT NULL,
`medication` varchar(2000) NOT NULL,
`home` varchar(2000) NOT NULL,
`measures` varchar(2000) NOT NULL,
`joint` varchar(2000) NOT NULL,
`flexibility` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `table_3`
--
INSERT INTO `table_3` (`id`, `num`, `rec`, `worse`, `best`, `current`, `duration`, `aggrevating`, `allevating`, `behaviour`, `medication`, `home`, `measures`, `joint`, `flexibility`) VALUES
(1, '', '', '4', '6', '6', 'pain duration', 'aggreviating factor', 'alleviating factor', 'symptom', 'allergies', 'Array', 'measures', 'clearing', 'flexibility'),
(2, 'PRED_10', '100009', '5', '4', '3', 'pain duration', 'aggreviating factor', 'alleviating factor', 'symptom', 'allergies', 'Array', 'measures', 'clearing', 'flexibility'),
(3, 'PRED_10', '100009', '4', '4', '4', 'pain duration', 'aggravating factor', 'alleviating factor', 'symptom 24H', 'allergies', 'Array', 'measures', 'clearing', 'flexibility'),
(4, 'PRED_10', '100009', '3', '3', '4', 'pain duration', 'aggreviating factor', 'alleviating factor', 'symptom', 'allergies', 'Array', 'measures', 'clearing', 'flexibility'),
(5, 'PRED_10', '100009', '5', '3', '3', 'pain duration', 'aggreviating factor', 'alleviating factor', 'symptom 24H', 'allergies', 'Array', 'measures', 'clearing', 'flexibility'),
(6, 'PRED_10', '100013', '3', '0', '7', 'pain duration', 'aggravating factor', 'alleviating factor', 'symptom', 'allergies', 'Array', 'measures', 'clearing', 'flexibility'),
(7, 'PRED_11', '100014', '0', '0', '0', 'FS', 'SFD', 'FSCV', 'VA', 'WAV', 'Array', 'VASF', 'SVD', 'VSD'),
(8, 'PRED_11', '100014', '4', '4', '0', 'BUHJ', 'SDF', 'DF', 'FSE', 'FSA', 'Array', 'SFD', 'SD', 'SDV'),
(9, 'PRED_11', '100015', '5', '4', '4', 'pain duration', 'aggreviating factor', 'alleviating factor', 'symptom', 'allergies', 'Array', 'measures', 'clearing', 'flexibility'),
(10, 'PRED_16', '100016', '0', '0', '0', 'pain duration', 'aggreviating factor', 'alleviating factor', 'symptom', 'allergies', 'Array', 'measures', 'clearing', 'flexibility');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `additional`
--
ALTER TABLE `additional`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `doc`
--
ALTER TABLE `doc`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `endurance`
--
ALTER TABLE `endurance`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `gait`
--
ALTER TABLE `gait`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `gait_2`
--
ALTER TABLE `gait_2`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `home`
--
ALTER TABLE `home`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `last`
--
ALTER TABLE `last`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `living`
--
ALTER TABLE `living`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `medical`
--
ALTER TABLE `medical`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mobility`
--
ALTER TABLE `mobility`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mobility_2`
--
ALTER TABLE `mobility_2`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `posture`
--
ALTER TABLE `posture`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `posture_2`
--
ALTER TABLE `posture_2`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `posture_3`
--
ALTER TABLE `posture_3`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `precautions`
--
ALTER TABLE `precautions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `range_1`
--
ALTER TABLE `range_1`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `range_2`
--
ALTER TABLE `range_2`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `range_3`
--
ALTER TABLE `range_3`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `receipt`
--
ALTER TABLE `receipt`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `special`
--
ALTER TABLE `special`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `special_2`
--
ALTER TABLE `special_2`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `table_1`
--
ALTER TABLE `table_1`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `table_2`
--
ALTER TABLE `table_2`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `table_3`
--
ALTER TABLE `table_3`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `additional`
--
ALTER TABLE `additional`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;
--
-- AUTO_INCREMENT for table `doc`
--
ALTER TABLE `doc`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `endurance`
--
ALTER TABLE `endurance`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=92;
--
-- AUTO_INCREMENT for table `gait`
--
ALTER TABLE `gait`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `gait_2`
--
ALTER TABLE `gait_2`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
--
-- AUTO_INCREMENT for table `home`
--
ALTER TABLE `home`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;
--
-- AUTO_INCREMENT for table `last`
--
ALTER TABLE `last`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `living`
--
ALTER TABLE `living`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
--
-- AUTO_INCREMENT for table `medical`
--
ALTER TABLE `medical`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;
--
-- AUTO_INCREMENT for table `mobility`
--
ALTER TABLE `mobility`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `mobility_2`
--
ALTER TABLE `mobility_2`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=99;
--
-- AUTO_INCREMENT for table `posture`
--
ALTER TABLE `posture`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `posture_2`
--
ALTER TABLE `posture_2`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;
--
-- AUTO_INCREMENT for table `posture_3`
--
ALTER TABLE `posture_3`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;
--
-- AUTO_INCREMENT for table `precautions`
--
ALTER TABLE `precautions`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43;
--
-- AUTO_INCREMENT for table `range_1`
--
ALTER TABLE `range_1`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43;
--
-- AUTO_INCREMENT for table `range_2`
--
ALTER TABLE `range_2`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=71;
--
-- AUTO_INCREMENT for table `range_3`
--
ALTER TABLE `range_3`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=85;
--
-- AUTO_INCREMENT for table `receipt`
--
ALTER TABLE `receipt`
MODIFY `id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `special`
--
ALTER TABLE `special`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `special_2`
--
ALTER TABLE `special_2`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=169;
--
-- AUTO_INCREMENT for table `table_1`
--
ALTER TABLE `table_1`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `table_2`
--
ALTER TABLE `table_2`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `table_3`
--
ALTER TABLE `table_3`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- Database: `fmcphy_ped`
--
CREATE DATABASE IF NOT EXISTS `fmcphy_ped` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `fmcphy_ped`;
-- --------------------------------------------------------
--
-- Table structure for table `complain`
--
CREATE TABLE `complain` (
`id` int(200) NOT NULL,
`num` varchar(100) NOT NULL,
`complain` varchar(100) NOT NULL,
`physio` varchar(100) NOT NULL,
`info` text NOT NULL,
`rec` int(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `complain`
--
INSERT INTO `complain` (`id`, `num`, `complain`, `physio`, `info`, `rec`) VALUES
(1, 'PRED_10', 'Fine Motor (handwriting, buttoning)', 'Yakubu opeyemi', 'Other information Here', 0),
(2, 'PRED_10', 'mobility', 'Yakubu opeyemi', 'Other information Here', 0),
(3, 'PRED_10', 'feeding', 'Yakubu opeyemi', 'Other information Here', 0),
(4, 'PRED_10', 'Behaviour', 'Yakubu opeyemi', 'Other information Here', 0),
(5, 'PRED_10', 'Gross Motor', 'Yakubu opeyemi', 'Other information Here', 0),
(6, 'PRED_10', 'bone', 'Yakubu opeyemi', 'Other information Here', 0),
(7, 'PRED_10', 'Fine Motor (handwriting, buttoning)', 'Yakubu opeyemi', 'kkkk', 100001),
(8, 'PRED_10', 'mobility', 'Yakubu opeyemi', 'kkkk', 100001),
(9, 'PRED_10', 'feeding', 'Yakubu opeyemi', 'kkkk', 100001),
(10, 'PRED_10', 'speech', 'Yakubu opeyemi', 'kkkk', 100001),
(11, 'PRED_10', 'Language', 'Yakubu opeyemi', 'kkkk', 100001),
(12, 'PRED_10', '', 'Yakubu opeyemi', 'kkkk', 100001),
(13, 'PRED_10', 'Fine Motor (handwriting, buttoning)', 'Ogbeni Opeyemi', 'Related informations', 100002),
(14, 'PRED_10', 'speech', 'Ogbeni Opeyemi', 'Related informations', 100002),
(15, 'PRED_10', 'Language', 'Ogbeni Opeyemi', 'Related informations', 100002),
(16, 'PRED_10', '', 'Ogbeni Opeyemi', 'Related informations', 100002),
(17, 'PRED_10', 'Fine Motor (handwriting, buttoning)', 'Yakubu opeyemi', '', 100003),
(18, 'PRED_10', 'Language', 'Yakubu opeyemi', '', 100003),
(19, 'PRED_10', '', 'Yakubu opeyemi', '', 100003),
(20, 'PRED_10', 'Fine Motor (handwriting, buttoning)', 'Yakubu opeyemi', 'ada', 100004),
(21, 'PRED_10', 'Language', 'Yakubu opeyemi', 'ada', 100004),
(22, 'PRED_10', '', 'Yakubu opeyemi', 'ada', 100004),
(23, 'PRED_10', 'Fine Motor (handwriting, buttoning)', 'Yakubu opeyemi', 'lkdfmleia', 100005),
(24, 'PRED_10', 'mobility', 'Yakubu opeyemi', 'lkdfmleia', 100005),
(25, 'PRED_10', 'Language', 'Yakubu opeyemi', 'lkdfmleia', 100005),
(26, 'PRED_10', '', 'Yakubu opeyemi', 'lkdfmleia', 100005),
(27, 'PRED_10', 'Fine Motor (handwriting, buttoning)', 'Yakubu opeyemi', 'aaa', 100006),
(28, 'PRED_10', 'Language', 'Yakubu opeyemi', 'aaa', 100006),
(29, 'PRED_10', '', 'Yakubu opeyemi', 'aaa', 100006),
(30, 'PRED_10', 'mobility', 'Yakubu opeyemi', 'nnn', 100007),
(31, 'PRED_10', 'Language', 'Yakubu opeyemi', 'nnn', 100007),
(32, 'PRED_10', '', 'Yakubu opeyemi', 'nnn', 100007),
(33, 'PRED_10', 'Fine Motor (handwriting, buttoning)', '<NAME>', 'iuedni', 100013),
(34, 'PRED_10', 'speech', '<NAME>', 'iuedni', 100013),
(35, 'PRED_10', '', '<NAME>', 'iuedni', 100013),
(36, 'PRED_10', '', 'ade', '', 100014);
-- --------------------------------------------------------
--
-- Table structure for table `education`
--
CREATE TABLE `education` (
`id` int(255) NOT NULL,
`num` varchar(200) NOT NULL,
`rec` varchar(200) NOT NULL,
`issue` varchar(200) NOT NULL,
`answer` varchar(200) NOT NULL,
`comment` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `education`
--
INSERT INTO `education` (`id`, `num`, `rec`, `issue`, `answer`, `comment`) VALUES
(1, 'PRED_10', '100005', 'Does your child attend school?', 'yes', 'abeokuta'),
(2, 'PRED_10', '100005', 'has your child ever repeat a grade?', 'no', ''),
(3, 'PRED_10', '100005', 'Does your child have special education or theraohy services in school?', 'no', ''),
(4, 'PRED_10', '100005', 'Has your child receive theraphy anywhere else?', '', ''),
(5, 'PRED_10', '100006', 'Does your child attend school?', 'yes', 'abeokuta'),
(6, 'PRED_10', '100006', 'has your child ever repeat a grade?', 'no', ''),
(7, 'PRED_10', '100006', 'Does your child have special education or theraohy services in school?', 'no', ''),
(8, 'PRED_10', '100006', 'Has your child receive theraphy anywhere else?', 'no', ''),
(9, 'PRED_11', '100007', 'Does your child attend school?', 'yes', 'idi aba'),
(10, 'PRED_11', '100007', 'has your child ever repeat a grade?', 'no', ''),
(11, 'PRED_11', '100007', 'Does your child have special education or theraohy services in school?', 'no', ''),
(12, 'PRED_11', '100007', 'Has your child receive theraphy anywhere else?', 'no', ''),
(13, 'PRED_10', '100013', 'Does your child attend school?', 'yes', 'habhanh'),
(14, 'PRED_10', '100013', 'has your child ever repeat a grade?', 'no', ''),
(15, 'PRED_10', '100013', 'Does your child have special education or theraohy services in school?', 'no', ''),
(16, 'PRED_10', '100013', 'Has your child receive theraphy anywhere else?', 'yes', ''),
(17, 'PRED_10', '100014', 'Does your child attend school?', '', ''),
(18, 'PRED_10', '100014', 'has your child ever repeat a grade?', '', ''),
(19, 'PRED_10', '100014', 'Does your child have special education or theraohy services in school?', '', ''),
(20, 'PRED_10', '100014', 'Has your child receive theraphy anywhere else?', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `education2`
--
CREATE TABLE `education2` (
`id` int(255) NOT NULL,
`num` varchar(200) NOT NULL,
`grade` varchar(100) NOT NULL,
`often` varchar(100) NOT NULL,
`lg` varchar(100) NOT NULL,
`grp` varchar(100) NOT NULL,
`sp_comment` varchar(200) NOT NULL,
`tp_service` varchar(200) NOT NULL,
`whom` varchar(200) NOT NULL,
`tp_comment` varchar(200) NOT NULL,
`religious` varchar(200) NOT NULL,
`goal` varchar(200) NOT NULL,
`physio` varchar(200) NOT NULL,
`related` varchar(200) NOT NULL,
`rec` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `education2`
--
INSERT INTO `education2` (`id`, `num`, `grade`, `often`, `lg`, `grp`, `sp_comment`, `tp_service`, `whom`, `tp_comment`, `religious`, `goal`, `physio`, `related`, `rec`) VALUES
(1, 'PRED_10', 'nursery', 'not at all', 'not applicable', 'pre-nursery', 'nil', 'General Hospital, Ijaye', 'doctor', 'Additional info on theraphy service', 'no', 'To be able to walk again', 'Yakubu opeyemi', 'Additional information on theraphy', ''),
(5, 'PRED_10', 'nursery', 'not at all', 'not applicable', 'pre-nursery', 'nil', 'General Hospital, Ijaye', 'doctor', 'Additional info on theraphy service', 'no', 'To be able to walk again', 'Yakubu opeyemi', 'aaa', ''),
(6, 'PRED_10', 'nursery', 'not at all', 'not applicable', 'pre-nursery', 'nil', 'General Hospital, Ijaye', 'doctor', 'Additional info on theraphy service', 'no', 'To be able to walk again', 'Yakubu opeyemi', 'aaa', '100007'),
(7, 'PRED_10', 'nursery', 'not at all', 'not applicable', 'pre-nursery', 'nil', 'General Hospital, Ijaye', 'doctor', 'Additional info on theraphy service', 'no', 'To be able to walk again', '<NAME>', 'nm kj', '100013'),
(8, 'PRED_10', '', '', '', '', '', '', '', '', '', '', 'ade', '', '100014');
-- --------------------------------------------------------
--
-- Table structure for table `growth_1`
--
CREATE TABLE `growth_1` (
`id` int(255) NOT NULL,
`num` varchar(200) NOT NULL,
`des` varchar(400) NOT NULL,
`physio` varchar(200) NOT NULL,
`info` text NOT NULL,
`rec` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `growth_1`
--
INSERT INTO `growth_1` (`id`, `num`, `des`, `physio`, `info`, `rec`) VALUES
(1, 'PRED_10', 'Mostly quite', 'Yakubu opeyemi', 'Other information', '100002'),
(2, 'PRED_10', 'Tires easily', 'Yakubu opeyemi', 'Other information', '100002'),
(3, 'PRED_10', 'Talks constantly', 'Yakubu opeyemi', 'Other information', '100002'),
(4, 'PRED_10', 'clumsy', 'Yakubu opeyemi', 'Other information', '100002'),
(5, 'PRED_10', 'happy', 'Yakubu opeyemi', 'Other information', '100002'),
(6, 'PRED_10', 'impulsive', 'Yakubu opeyemi', 'Other information', '100002'),
(7, 'PRED_10', 'overly active', 'Yakubu opeyemi', 'Other information', '100002'),
(8, 'PRED_10', 'overreacts frequently', 'Yakubu opeyemi', 'Other information', '100002'),
(9, 'PRED_10', 'shy', 'Yakubu opeyemi', 'Other information', '100002'),
(10, 'PRED_10', 'Restless', 'Yakubu opeyemi', 'Other information', '100002'),
(11, 'PRED_10', 'Craves touch', 'Yakubu opeyemi', 'Other information', '100002'),
(12, 'PRED_10', 'Get frustrated easily', 'Yakubu opeyemi', 'Other information', '100002'),
(13, 'PRED_10', 'stubborn', 'Yakubu opeyemi', 'Other information', '100002'),
(14, 'PRED_10', 'Has temper tantrums', 'Yakubu opeyemi', 'Other information', '100002'),
(15, 'PRED_10', 'Difficulty speaking', 'Yakubu opeyemi', 'Other information', '100002'),
(16, 'PRED_10', 'Has nervours habits', 'Yakubu opeyemi', 'Other information', '100002'),
(17, 'PRED_10', 'Has unusual fears', 'Yakubu opeyemi', 'Other information', '100002'),
(18, 'PRED_10', 'Avoids touch', 'Yakubu opeyemi', 'Other information', '100002'),
(19, 'PRED_10', 'Has poor attention span', 'Yakubu opeyemi', 'Other information', '100002'),
(20, 'PRED_10', 'Difficulty learning new task', 'Yakubu opeyemi', 'Other information', '100002'),
(21, 'PRED_10', 'Other information', 'Yakubu opeyemi', 'Other information', '100002'),
(22, 'PRED_10', 'Restless', 'Ogbeni Opeyemi', '', '100003'),
(23, 'PRED_10', 'Craves touch', 'Ogbeni Opeyemi', '', '100003'),
(24, 'PRED_10', 'Has nervours habits', 'Ogbeni Opeyemi', '', '100003'),
(25, 'PRED_10', 'Difficulty learning new task', 'Ogbeni Opeyemi', '', '100003'),
(26, 'PRED_10', '', 'Ogbeni Opeyemi', '', '100003'),
(27, 'PRED_10', 'happy', 'Yakubu opeyemi', 'efef', '100004'),
(28, 'PRED_10', 'Get frustrated easily', 'Yakubu opeyemi', 'efef', '100004'),
(29, 'PRED_10', 'Has unusual fears', 'Yakubu opeyemi', 'efef', '100004'),
(30, 'PRED_10', '', 'Yakubu opeyemi', 'efef', '100004'),
(31, 'PRED_10', 'Mostly quite', 'Yakubu opeyemi', 'kjwencwn', '100005'),
(32, 'PRED_10', 'Difficulty speaking', 'Yakubu opeyemi', 'kjwencwn', '100005'),
(33, 'PRED_10', 'Difficulty learning new task', 'Yakubu opeyemi', 'kjwencwn', '100005'),
(34, 'PRED_10', '', 'Yakubu opeyemi', 'kjwencwn', '100005'),
(35, 'PRED_10', 'shy', 'Yakubu opeyemi', 'fff', '100006'),
(36, 'PRED_10', 'Difficulty speaking', 'Yakubu opeyemi', 'fff', '100006'),
(37, 'PRED_10', 'Has nervours habits', 'Yakubu opeyemi', 'fff', '100006'),
(38, 'PRED_10', 'Difficulty learning new task', 'Yakubu opeyemi', 'fff', '100006'),
(39, 'PRED_10', 'Other information', 'Yakubu opeyemi', 'fff', '100006'),
(40, 'PRED_10', 'clumsy', 'Yakubu opeyemi', 'lll', '100007'),
(41, 'PRED_10', 'Has nervours habits', 'Yakubu opeyemi', 'lll', '100007'),
(42, 'PRED_10', 'Difficulty learning new task', 'Yakubu opeyemi', 'lll', '100007'),
(43, 'PRED_10', '', 'Yakubu opeyemi', 'lll', '100007'),
(44, 'PRED_10', 'clumsy', 'df vf', 'f ', '100013'),
(45, 'PRED_10', 'Has nervours habits', 'df vf', 'f ', '100013'),
(46, 'PRED_10', '', 'df vf', 'f ', '100013'),
(47, 'PRED_10', 'happy', 'ade', '', '100014'),
(48, 'PRED_10', 'Get frustrated easily', 'ade', '', '100014'),
(49, 'PRED_10', '', 'ade', '', '100014');
-- --------------------------------------------------------
--
-- Table structure for table `growth_2`
--
CREATE TABLE `growth_2` (
`id` int(255) NOT NULL,
`num` varchar(200) NOT NULL,
`question` varchar(200) NOT NULL,
`answer` varchar(200) NOT NULL,
`physio` varchar(200) NOT NULL,
`info` text NOT NULL,
`rec` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `growth_2`
--
INSERT INTO `growth_2` (`id`, `num`, `question`, `answer`, `physio`, `info`, `rec`) VALUES
(1, 'PRED_10', 'Roll over from stomach to back', '3', 'Yakubu opeyemi', 'Other information', '100002'),
(2, 'PRED_10', 'Roll over from back to stomach', '2', 'Yakubu opeyemi', 'Other information', '100002'),
(3, 'PRED_10', 'sit independently', '1', 'Yakubu opeyemi', 'Other information', '100002'),
(4, 'PRED_10', 'crawl', '6 months', 'Yakubu opeyemi', 'Other information', '100002'),
(5, 'PRED_10', 'walk holding unto furniture', '2', 'Yakubu opeyemi', 'Other information', '100002'),
(6, 'PRED_10', 'walk independently', '1', 'Yakubu opeyemi', 'Other information', '100002'),
(7, 'PRED_10', 'speak first word', '2', 'Yakubu opeyemi', 'Other information', '100002'),
(8, 'PRED_10', 'speak in two words sentence', '1.4months', 'Yakubu opeyemi', 'Other information', '100002'),
(9, 'PRED_10', 'Drink from cup', '2', 'Yakubu opeyemi', 'Other information', '100002'),
(10, 'PRED_10', 'use a spoon', '1', 'Yakubu opeyemi', 'Other information', '100002'),
(11, 'PRED_10', 'Dress independently', '2', 'Yakubu opeyemi', 'Other information', '100002'),
(12, 'PRED_10', 'Toilet train', '1', 'Yakubu opeyemi', 'Other information', '100002'),
(13, 'PRED_10', 'Roll over from stomach to back', '3', 'Ogbeni Opeyemi', '', '100003'),
(14, 'PRED_10', 'Roll over from back to stomach', '3', 'Ogbeni Opeyemi', '', '100003'),
(15, 'PRED_10', 'sit independently', '3', 'Ogbeni Opeyemi', '', '100003'),
(16, 'PRED_10', 'crawl', '3', 'Ogbeni Opeyemi', '', '100003'),
(17, 'PRED_10', 'walk holding unto furniture', '3', 'Ogbeni Opeyemi', '', '100003'),
(18, 'PRED_10', 'walk independently', '3', 'Ogbeni Opeyemi', '', '100003'),
(19, 'PRED_10', 'speak first word', '3', 'Ogbeni Opeyemi', '', '100003'),
(20, 'PRED_10', 'speak in two words sentence', '0', 'Ogbeni Opeyemi', '', '100003'),
(21, 'PRED_10', 'Drink from cup', '3', 'Ogbeni Opeyemi', '', '100003'),
(22, 'PRED_10', 'use a spoon', '3', 'Ogbeni Opeyemi', '', '100003'),
(23, 'PRED_10', 'Dress independently', '0', 'Ogbeni Opeyemi', '', '100003'),
(24, 'PRED_10', 'Toilet train', '0', 'Ogbeni Opeyemi', '', '100003'),
(25, 'PRED_10', 'Roll over from stomach to back', '3', 'Yakubu opeyemi', 'efef', '100004'),
(26, 'PRED_10', 'Roll over from back to stomach', '3', 'Yakubu opeyemi', 'efef', '100004'),
(27, 'PRED_10', 'sit independently', '3', 'Yakubu opeyemi', 'efef', '100004'),
(28, 'PRED_10', 'crawl', '3', 'Yakubu opeyemi', 'efef', '100004'),
(29, 'PRED_10', 'walk holding unto furniture', '3', 'Yakubu opeyemi', 'efef', '100004'),
(30, 'PRED_10', 'walk independently', '2', 'Yakubu opeyemi', 'efef', '100004'),
(31, 'PRED_10', 'speak first word', '3', 'Yakubu opeyemi', 'efef', '100004'),
(32, 'PRED_10', 'speak in two words sentence', '3', 'Yakubu opeyemi', 'efef', '100004'),
(33, 'PRED_10', 'Drink from cup', '3', 'Yakubu opeyemi', 'efef', '100004'),
(34, 'PRED_10', 'use a spoon', '3', 'Yakubu opeyemi', 'efef', '100004'),
(35, 'PRED_10', 'Dress independently', '3', 'Yakubu opeyemi', 'efef', '100004'),
(36, 'PRED_10', 'Toilet train', '3', 'Yakubu opeyemi', 'efef', '100004'),
(37, 'PRED_10', 'Roll over from stomach to back', '3', 'Yakubu opeyemi', 'kjwencwn', '100005'),
(38, 'PRED_10', 'Roll over from back to stomach', '3', 'Yakubu opeyemi', 'kjwencwn', '100005'),
(39, 'PRED_10', 'sit independently', '3', 'Yakubu opeyemi', 'kjwencwn', '100005'),
(40, 'PRED_10', 'crawl', '3', 'Yakubu opeyemi', 'kjwencwn', '100005'),
(41, 'PRED_10', 'walk holding unto furniture', '3', 'Yakubu opeyemi', 'kjwencwn', '100005'),
(42, 'PRED_10', 'walk independently', '3', 'Yakubu opeyemi', 'kjwencwn', '100005'),
(43, 'PRED_10', 'speak first word', '2', 'Yakubu opeyemi', 'kjwencwn', '100005'),
(44, 'PRED_10', 'speak in two words sentence', '1.2', 'Yakubu opeyemi', 'kjwencwn', '100005'),
(45, 'PRED_10', 'Drink from cup', '4', 'Yakubu opeyemi', 'kjwencwn', '100005'),
(46, 'PRED_10', 'use a spoon', '2', 'Yakubu opeyemi', 'kjwencwn', '100005'),
(47, 'PRED_10', 'Dress independently', '4', 'Yakubu opeyemi', 'kjwencwn', '100005'),
(48, 'PRED_10', 'Toilet train', '2', 'Yakubu opeyemi', 'kjwencwn', '100005'),
(49, 'PRED_10', 'Roll over from stomach to back', '3', 'Yakubu opeyemi', 'fff', '100006'),
(50, 'PRED_10', 'Roll over from back to stomach', '2', 'Yakubu opeyemi', 'fff', '100006'),
(51, 'PRED_10', 'sit independently', '2', 'Yakubu opeyemi', 'fff', '100006'),
(52, 'PRED_10', 'crawl', '1', 'Yakubu opeyemi', 'fff', '100006'),
(53, 'PRED_10', 'walk holding unto furniture', '5', 'Yakubu opeyemi', 'fff', '100006'),
(54, 'PRED_10', 'walk independently', '1', 'Yakubu opeyemi', 'fff', '100006'),
(55, 'PRED_10', 'speak first word', '3', 'Yakubu opeyemi', 'fff', '100006'),
(56, 'PRED_10', 'speak in two words sentence', '3', 'Yakubu opeyemi', 'fff', '100006'),
(57, 'PRED_10', 'Drink from cup', '4', 'Yakubu opeyemi', 'fff', '100006'),
(58, 'PRED_10', 'use a spoon', '2', 'Yakubu opeyemi', 'fff', '100006'),
(59, 'PRED_10', 'Dress independently', '3', 'Yakubu opeyemi', 'fff', '100006'),
(60, 'PRED_10', 'Toilet train', '4', 'Yakubu opeyemi', 'fff', '100006'),
(61, 'PRED_10', 'Roll over from stomach to back', '3', 'Yakubu opeyemi', 'lll', '100007'),
(62, 'PRED_10', 'Roll over from back to stomach', '2', 'Yakubu opeyemi', 'lll', '100007'),
(63, 'PRED_10', 'sit independently', '1', 'Yakubu opeyemi', 'lll', '100007'),
(64, 'PRED_10', 'crawl', '4', 'Yakubu opeyemi', 'lll', '100007'),
(65, 'PRED_10', 'walk holding unto furniture', '2', 'Yakubu opeyemi', 'lll', '100007'),
(66, 'PRED_10', 'walk independently', '2', 'Yakubu opeyemi', 'lll', '100007'),
(67, 'PRED_10', 'speak first word', '3', 'Yakubu opeyemi', 'lll', '100007'),
(68, 'PRED_10', 'speak in two words sentence', '3', 'Yakubu opeyemi', 'lll', '100007'),
(69, 'PRED_10', 'Drink from cup', '1', 'Yakubu opeyemi', 'lll', '100007'),
(70, 'PRED_10', 'use a spoon', '3', 'Yakubu opeyemi', 'lll', '100007'),
(71, 'PRED_10', 'Dress independently', '3', 'Yakubu opeyemi', 'lll', '100007'),
(72, 'PRED_10', 'Toilet train', '3', 'Yakubu opeyemi', 'lll', '100007'),
(73, 'PRED_10', 'Roll over from stomach to back', 'other here', '<NAME>', 'grbrbs', '100013'),
(74, 'PRED_10', 'Roll over from back to stomach', '3', '<NAME>', 'grbrbs', '100013'),
(75, 'PRED_10', 'sit independently', 'others goes here', '<NAME>', 'grbrbs', '100013'),
(76, 'PRED_10', 'crawl', 'other here', '<NAME>', 'grbrbs', '100013'),
(77, 'PRED_10', 'walk holding unto furniture', '3', '<NAME>', 'grbrbs', '100013'),
(78, 'PRED_10', 'walk independently', 'others goes here', '<NAME>', 'grbrbs', '100013'),
(79, 'PRED_10', 'speak first word', 'fdg', '<NAME>', 'grbrbs', '100013'),
(80, 'PRED_10', 'speak in two words sentence', 'other here', '<NAME>', 'grbrbs', '100013'),
(81, 'PRED_10', 'Drink from cup', 'tbgyby', '<NAME>', 'grbrbs', '100013'),
(82, 'PRED_10', 'use a spoon', 'tge er', '<NAME>', 'grbrbs', '100013'),
(83, 'PRED_10', 'Dress independently', 'sfsd', '<NAME>', 'grbrbs', '100013'),
(84, 'PRED_10', 'Toilet train', 'sfvdfs', '<NAME>', 'grbrbs', '100013'),
(85, 'PRED_10', 'Roll over from stomach to back', 'other here', '<NAME>', 'grbrbs', '100013'),
(86, 'PRED_10', 'Roll over from back to stomach', '3', '<NAME>', 'grbrbs', '100013'),
(87, 'PRED_10', 'sit independently', 'others goes here', '<NAME>', 'grbrbs', '100013'),
(88, 'PRED_10', 'crawl', 'other here', '<NAME>', 'grbrbs', '100013'),
(89, 'PRED_10', 'walk holding unto furniture', '3', '<NAME>', 'grbrbs', '100013'),
(90, 'PRED_10', 'walk independently', 'others goes here', '<NAME>', 'grbrbs', '100013'),
(91, 'PRED_10', 'speak first word', 'fdg', '<NAME>', 'grbrbs', '100013'),
(92, 'PRED_10', 'speak in two words sentence', 'other here', '<NAME>', 'grbrbs', '100013'),
(93, 'PRED_10', 'Drink from cup', 'tbgyby', '<NAME>', 'grbrbs', '100013'),
(94, 'PRED_10', 'use a spoon', 'tge er', '<NAME>', 'grbrbs', '100013'),
(95, 'PRED_10', 'Dress independently', 'sfsd', '<NAME>', 'grbrbs', '100013'),
(96, 'PRED_10', 'Toilet train', 'sfvdfs', '<NAME>', 'grbrbs', '100013'),
(97, 'PRED_10', 'Roll over from stomach to back', 'other here', '<NAME>', 'grbrbs', '100013'),
(98, 'PRED_10', 'Roll over from back to stomach', '3', '<NAME>', 'grbrbs', '100013'),
(99, 'PRED_10', 'sit independently', 'others goes here', '<NAME>', 'grbrbs', '100013'),
(100, 'PRED_10', 'crawl', 'other here', '<NAME>', 'grbrbs', '100013'),
(101, 'PRED_10', 'walk holding unto furniture', '3', '<NAME>', 'grbrbs', '100013'),
(102, 'PRED_10', 'walk independently', 'others goes here', '<NAME>', 'grbrbs', '100013'),
(103, 'PRED_10', 'speak first word', 'fdg', '<NAME>', 'grbrbs', '100013'),
(104, 'PRED_10', 'speak in two words sentence', 'other here', '<NAME>', 'grbrbs', '100013'),
(105, 'PRED_10', 'Drink from cup', 'tbgyby', '<NAME>', 'grbrbs', '100013'),
(106, 'PRED_10', 'use a spoon', 'tge er', '<NAME>', 'grbrbs', '100013'),
(107, 'PRED_10', 'Dress independently', 'sfsd', '<NAME>', 'grbrbs', '100013'),
(108, 'PRED_10', 'Toilet train', 'sfvdfs', '<NAME>', 'grbrbs', '100013'),
(109, 'PRED_10', 'Roll over from stomach to back', 'other here', '<NAME>', 'grbrbs', '100013'),
(110, 'PRED_10', 'Roll over from back to stomach', '3', '<NAME>', 'grbrbs', '100013'),
(111, 'PRED_10', 'sit independently', 'others goes here', '<NAME>', 'grbrbs', '100013'),
(112, 'PRED_10', 'crawl', 'other here', '<NAME>', 'grbrbs', '100013'),
(113, 'PRED_10', 'walk holding unto furniture', '3', '<NAME>', 'grbrbs', '100013'),
(114, 'PRED_10', 'walk independently', 'others goes here', '<NAME>', 'grbrbs', '100013'),
(115, 'PRED_10', 'speak first word', 'fdg', '<NAME>', 'grbrbs', '100013'),
(116, 'PRED_10', 'speak in two words sentence', 'other here', '<NAME>', 'grbrbs', '100013'),
(117, 'PRED_10', 'Drink from cup', 'tbgyby', '<NAME>', 'grbrbs', '100013'),
(118, 'PRED_10', 'use a spoon', 'tge er', '<NAME>', 'grbrbs', '100013'),
(119, 'PRED_10', 'Dress independently', 'sfsd', '<NAME>', 'grbrbs', '100013'),
(120, 'PRED_10', 'Toilet train', 'sfvdfs', '<NAME>', 'grbrbs', '100013'),
(121, 'PRED_10', 'Roll over from stomach to back', 'other here', '<NAME>', 'grbrbs', '100013'),
(122, 'PRED_10', 'Roll over from back to stomach', '3', '<NAME>', 'grbrbs', '100013'),
(123, 'PRED_10', 'sit independently', 'others goes here', '<NAME>', 'grbrbs', '100013'),
(124, 'PRED_10', 'crawl', 'other here', '<NAME>', 'grbrbs', '100013'),
(125, 'PRED_10', 'walk holding unto furniture', '3', '<NAME>', 'grbrbs', '100013'),
(126, 'PRED_10', 'walk independently', 'others goes here', '<NAME>', 'grbrbs', '100013'),
(127, 'PRED_10', 'speak first word', 'fdg', '<NAME>', 'grbrbs', '100013'),
(128, 'PRED_10', 'speak in two words sentence', 'other here', '<NAME>', 'grbrbs', '100013'),
(129, 'PRED_10', 'Drink from cup', 'tbgyby', '<NAME>', 'grbrbs', '100013'),
(130, 'PRED_10', 'use a spoon', 'tge er', '<NAME>', 'grbrbs', '100013'),
(131, 'PRED_10', 'Dress independently', 'sfsd', '<NAME>', 'grbrbs', '100013'),
(132, 'PRED_10', 'Toilet train', 'sfvdfs', '<NAME>', 'grbrbs', '100013'),
(133, 'PRED_10', 'Roll over from stomach to back', 'rwfteq', 'df vf', 'f ', '100013'),
(134, 'PRED_10', 'Roll over from back to stomach', 'rgverw', 'df vf', 'f ', '100013'),
(135, 'PRED_10', 'sit independently', 'sada', 'df vf', 'f ', '100013'),
(136, 'PRED_10', 'crawl', 'jyny', 'df vf', 'f ', '100013'),
(137, 'PRED_10', 'walk holding unto furniture', 'edewar', 'df vf', 'f ', '100013'),
(138, 'PRED_10', 'walk independently', 'erfterw', 'df vf', 'f ', '100013'),
(139, 'PRED_10', 'speak first word', 'grwtv', 'df vf', 'f ', '100013'),
(140, 'PRED_10', 'speak in two words sentence', 'erqewq', 'df vf', 'f ', '100013'),
(141, 'PRED_10', 'Drink from cup', 'rtvtrw', 'df vf', 'f ', '100013'),
(142, 'PRED_10', 'use a spoon', 'erwcre', 'df vf', 'f ', '100013'),
(143, 'PRED_10', 'Dress independently', 'wqecwq', 'df vf', 'f ', '100013'),
(144, 'PRED_10', 'Toilet train', 'wqefqwfer', 'df vf', 'f ', '100013'),
(145, 'PRED_10', 'Roll over from stomach to back', 'rwfteq', 'df vf', 'f ', '100013'),
(146, 'PRED_10', 'Roll over from back to stomach', 'rgverw', 'df vf', 'f ', '100013'),
(147, 'PRED_10', 'sit independently', 'sada', 'df vf', 'f ', '100013'),
(148, 'PRED_10', 'crawl', 'jyny', 'df vf', 'f ', '100013'),
(149, 'PRED_10', 'walk holding unto furniture', 'edewar', 'df vf', 'f ', '100013'),
(150, 'PRED_10', 'walk independently', 'erfterw', 'df vf', 'f ', '100013'),
(151, 'PRED_10', 'speak first word', 'grwtv', 'df vf', 'f ', '100013'),
(152, 'PRED_10', 'speak in two words sentence', 'erqewq', 'df vf', 'f ', '100013'),
(153, 'PRED_10', 'Drink from cup', 'rtvtrw', 'df vf', 'f ', '100013'),
(154, 'PRED_10', 'use a spoon', 'erwcre', 'df vf', 'f ', '100013'),
(155, 'PRED_10', 'Dress independently', 'wqecwq', 'df vf', 'f ', '100013'),
(156, 'PRED_10', 'Toilet train', 'wqefqwfer', 'df vf', 'f ', '100013'),
(157, 'PRED_10', 'Roll over from stomach to back', 'other here', 'ade', '', '100014'),
(158, 'PRED_10', 'Roll over from back to stomach', '3', 'ade', '', '100014'),
(159, 'PRED_10', 'sit independently', 'other here', 'ade', '', '100014'),
(160, 'PRED_10', 'crawl', 'other here', 'ade', '', '100014'),
(161, 'PRED_10', 'walk holding unto furniture', 'others goes here', 'ade', '', '100014'),
(162, 'PRED_10', 'walk independently', 'other here', 'ade', '', '100014'),
(163, 'PRED_10', 'speak first word', 'other here', 'ade', '', '100014'),
(164, 'PRED_10', 'speak in two words sentence', 'other here', 'ade', '', '100014'),
(165, 'PRED_10', 'Drink from cup', 'other here', 'ade', '', '100014'),
(166, 'PRED_10', 'use a spoon', 'others goes here', 'ade', '', '100014'),
(167, 'PRED_10', 'Dress independently', 'other here', 'ade', '', '100014'),
(168, 'PRED_10', 'Toilet train', 'other here', 'ade', '', '100014');
-- --------------------------------------------------------
--
-- Table structure for table `lower`
--
CREATE TABLE `lower` (
`id` int(11) NOT NULL,
`tp` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `lower`
--
INSERT INTO `lower` (`id`, `tp`) VALUES
(1, 'Extensor Diagitrum Longus'),
(2, 'Extensor Hollucis Longus '),
(3, 'Flexor Digitorum Longus '),
(4, 'Flexor Hallucis Longus '),
(5, 'Tibialis Anterior'),
(6, 'Gastorcnemius'),
(7, 'Peroneals'),
(8, 'Quadriceps'),
(9, 'Hamstrings'),
(10, 'Hip Flexors'),
(11, 'Hip Extensors '),
(12, 'Hip Internal Rotators'),
(13, 'Hip External Rotators ');
-- --------------------------------------------------------
--
-- Table structure for table `lowerlimb`
--
CREATE TABLE `lowerlimb` (
`id` int(11) NOT NULL,
`Extensor Diagitrum Longus` varchar(255) NOT NULL,
`Extensor Hollucis Longus` varchar(255) NOT NULL,
`Flexor Digitorum Longus` varchar(255) NOT NULL,
`Flexor Hallucis Longus` varchar(255) NOT NULL,
`Tibialis Anterior` varchar(255) NOT NULL,
`Gastorcnemius` varchar(255) NOT NULL,
`Peroneals` varchar(255) NOT NULL,
`Quadriceps` varchar(255) NOT NULL,
`Hamstrings` varchar(255) NOT NULL,
`Hip Flexors` varchar(255) NOT NULL,
`Hip Extensors` varchar(255) NOT NULL,
`Hip Internal Rotators` varchar(255) NOT NULL,
`Hip External Rotators` varchar(255) NOT NULL,
`date` varchar(12) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `medication`
--
CREATE TABLE `medication` (
`id` int(255) NOT NULL,
`num` varchar(200) NOT NULL,
`physio` varchar(200) NOT NULL,
`related` varchar(200) NOT NULL,
`medication` varchar(2000) NOT NULL,
`communication` varchar(2000) NOT NULL,
`date_notices` varchar(10) NOT NULL,
`language` varchar(20) NOT NULL,
`rec` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `medication`
--
INSERT INTO `medication` (`id`, `num`, `physio`, `related`, `medication`, `communication`, `date_notices`, `language`, `rec`) VALUES
(1, 'PRED_10', 'Yakubu opeyemi', 'Related information here', 'The mediactions being used is here', 'No communication difficulty', '2018-10-13', 'Yoruba', ''),
(2, 'PRED_10', 'Yakubu opeyemi', 'Other related informations here', 'Medications go here', 'No communication difficulty', '2018-10-26', 'Yoruba', '100002'),
(3, 'PRED_10', 'Ogbeni Opeyemi', '', '', '', '', '', '100003'),
(4, 'PRED_10', 'Yakubu opeyemi', 'fe', 'ddd', 'terg', '2018-10-20', 'Yoruba', '100004'),
(5, 'PRED_10', 'Yakubu opeyemi', 'related information on communication history', 'medications', 'communication difficuty', '2018-10-21', 'Yoruba', '100005'),
(6, 'PRED_10', 'Yakubu opeyemi', 'dd', 'medications', 'description', '2018-10-21', 'Yoruba', '100006'),
(7, 'PRED_10', 'Yakubu opeyemi', 'aided', 'other medications', 'no communication difficulty', '2018-10-20', 'Yoruba', '100007'),
(8, 'PRED_10', '<NAME>', 'dcdsf', 'fdasf', 'dfasf', '2018-11-16', 'Yoruba', '100013'),
(9, 'PRED_10', 'ade', '', '', '', '', '', '100014');
-- --------------------------------------------------------
--
-- Table structure for table `patient`
--
CREATE TABLE `patient` (
`id` int(11) NOT NULL,
`patientnum` int(100) NOT NULL,
`name` varchar(100) NOT NULL,
`age` int(3) NOT NULL,
`address` varchar(100) NOT NULL,
`sex` varchar(7) NOT NULL,
`physician` varchar(100) NOT NULL,
`ward` varchar(50) NOT NULL,
`ref` varchar(250) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `patient`
--
INSERT INTO `patient` (`id`, `patientnum`, `name`, `age`, `address`, `sex`, `physician`, `ward`, `ref`, `date`) VALUES
(1, 12, 'young', 27, '6 goshen street afobaje estate ota', 'female', 'adebowale', '5b', 'FMC (12001020)', '2018-08-25 19:48:40'),
(5, 556, 'olutayo', 45, '6 goshen street afobaje estate ota ', 'male', 'dr. jinaid', '46', 'fever', '2018-08-14 10:15:47'),
(6, 234, 'yakubu', 27, 'abeokuta', 'male', 'sdfasag', '5b', 'fever', '2018-08-10 07:36:43');
-- --------------------------------------------------------
--
-- Table structure for table `patient_num`
--
CREATE TABLE `patient_num` (
`id` int(200) NOT NULL,
`num` int(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `patient_num`
--
INSERT INTO `patient_num` (`id`, `num`) VALUES
(1, 12);
-- --------------------------------------------------------
--
-- Table structure for table `precaution`
--
CREATE TABLE `precaution` (
`id` int(255) NOT NULL,
`num` varchar(200) NOT NULL,
`rec` varchar(200) NOT NULL,
`physio` varchar(200) NOT NULL,
`related` text NOT NULL,
`issue` varchar(200) NOT NULL,
`answer` varchar(200) NOT NULL,
`comment` varchar(10000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `precaution`
--
INSERT INTO `precaution` (`id`, `num`, `rec`, `physio`, `related`, `issue`, `answer`, `comment`) VALUES
(1, 'PRED_10', '100002', 'Yakubu opeyemi', 'related information', 'are there any factors that may complicate your childs ability to participate in the theraphy?\" readonly class=\"form-control\" id=\"exampleInputEmail1', 'yes', 'factors here'),
(2, 'PRED_10', '100002', 'Yakubu opeyemi', 'related information', 'Does your child have food allergies?', 'yes', 'allegieries'),
(3, 'PRED_10', '100002', 'Yakubu opeyemi', 'related information', 'Does your child have any moverment restrictions?', 'yes', 'restrict'),
(4, 'PRED_10', '100003', 'O<NAME>emi', '', 'are there any factors that may complicate your childs ability to participate in the theraphy?\" readonly class=\"form-control\" id=\"exampleInputEmail1', 'yes', ''),
(5, 'PRED_10', '100003', 'Ogbeni Opeyemi', '', 'Does your child have food allergies?', 'no', ''),
(6, 'PRED_10', '100003', 'Ogbeni Opeyemi', '', 'Does your child have any moverment restrictions?', 'no', ''),
(7, 'PRED_10', '100004', 'Yakubu opeyemi', 'fewrf', 'are there any factors that may complicate your childs ability to participate in the theraphy?\" readonly class=\"form-control\" id=\"exampleInputEmail1', 'yes', ''),
(8, 'PRED_10', '100004', 'Yakubu opeyemi', 'fewrf', 'Does your child have food allergies?', 'no', ''),
(9, 'PRED_10', '100004', 'Yakubu opeyemi', 'fewrf', 'Does your child have any moverment restrictions?', 'no', ''),
(10, 'PRED_10', '100005', 'Yakubu opeyemi', 'reated information on contradictions', 'are there any factors that may complicate your childs ability to participate in the theraphy?\" readonly ', 'no', ''),
(11, 'PRED_10', '100005', 'Yakubu opeyemi', 'reated information on contradictions', 'Does your child have food allergies?', 'yes', 'the allegeries'),
(12, 'PRED_10', '100005', 'Yakubu opeyemi', 'reated information on contradictions', 'Does your child have any moverment restrictions?', 'no', ''),
(13, 'PRED_10', '100006', 'Yakubu opeyemi', 'ccc', 'are there any factors that may complicate your childs ability to participate in the theraphy?\" ', 'yes', 'habhanh'),
(14, 'PRED_10', '100006', 'Yakubu opeyemi', 'ccc', 'Does your child have food allergies?', 'no', ''),
(15, 'PRED_10', '100006', 'Yakubu opeyemi', 'ccc', 'Does your child have any moverment restrictions?', 'no', 'habhanh'),
(16, 'PRED_10', '100007', 'Yakubu opeyemi', 'aaa', 'are there any factors that may complicate your childs ability to participate in the theraphy?\" ', 'no', ''),
(17, 'PRED_10', '100007', 'Yakubu opeyemi', 'aaa', 'Does your child have food allergies?', 'no', ''),
(18, 'PRED_10', '100007', 'Yakubu opeyemi', 'aaa', 'Does your child have any moverment restrictions?', 'no', ''),
(19, 'PRED_10', '100013', '<NAME>', 'rsgv r', 'are there any factors that may complicate your childs ability to participate in the theraphy?\" ', 'yes', ''),
(20, 'PRED_10', '100013', '<NAME>', 'rsgv r', 'Does your child have food allergies?', 'no', ''),
(21, 'PRED_10', '100013', '<NAME>', 'rsgv r', 'Does your child have any moverment restrictions?', 'yes', ''),
(22, 'PRED_10', '100014', 'ade', '', 'are there any factors that may complicate your childs ability to participate in the theraphy?\" ', '', ''),
(23, 'PRED_10', '100014', 'ade', '', 'Does your child have food allergies?', '', ''),
(24, 'PRED_10', '100014', 'ade', '', 'Does your child have any moverment restrictions?', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `preg`
--
CREATE TABLE `preg` (
`id` int(200) NOT NULL,
`num` varchar(200) NOT NULL,
`lenght` varchar(100) NOT NULL,
`weight` varchar(200) NOT NULL,
`rec` varchar(100) NOT NULL,
`physio` varchar(1000) NOT NULL,
`related` text NOT NULL,
`issue` varchar(100) NOT NULL,
`answer` varchar(100) NOT NULL,
`comment` varchar(10000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `preg`
--
INSERT INTO `preg` (`id`, `num`, `lenght`, `weight`, `rec`, `physio`, `related`, `issue`, `answer`, `comment`) VALUES
(1, 'PRED_10', '1.2m', '3kg', '100002', 'Yakubu opeyemi', 'Other information on marriage', '', '', ''),
(2, 'PRED_10', '1.2m', '3kg', '100002', 'Yakubu opeyemi', 'Other information on marriage', '', '', ''),
(3, 'PRED_10', '1.2m', '3kg', '100002', 'Yakubu opeyemi', 'Other information on marriage', '', '', ''),
(4, 'PRED_10', '1.2m', '3kg', '100002', 'Ogbeni Opeyemi', 'other information about pregnancy', 'Were there any complication during pregnancy', 'yes', 'kkkk'),
(5, 'PRED_10', '1.2m', '3kg', '100002', '<NAME>', 'other information about pregnancy', 'was the pregnancy full term', 'no', 'complication'),
(6, 'PRED_10', '1.2m', '3kg', '100002', '<NAME>', 'other information about pregnancy', 'was labour and delivery normal', 'no', 'complication'),
(7, 'PRED_10', '1.2m', '3kg', '100003', '<NAME>', '', 'Were there any complication during pregnancy', 'yes', ''),
(8, 'PRED_10', '1.2m', '3kg', '100003', '<NAME>', '', 'was the pregnancy full term', 'no', ''),
(9, 'PRED_10', '1.2m', '3kg', '100003', '<NAME>', '', 'was labour and delivery normal', 'no', ''),
(10, 'PRED_10', '1.2m', '3kg', '100004', 'Yakubu opeyemi', 'faesve', 'Were there any complication during pregnancy', 'no', ''),
(11, 'PRED_10', '1.2m', '3kg', '100004', 'Yakubu opeyemi', 'faesve', 'was the pregnancy full term', 'yes', ''),
(12, 'PRED_10', '1.2m', '3kg', '100004', 'Yakubu opeyemi', 'faesve', 'was labour and delivery normal', 'no', 'awqwew'),
(13, 'PRED_10', '1.2m', '3kg', '100005', 'Yakubu opeyemi', 'related information', 'Were there any complication during pregnancy', 'no', ''),
(14, 'PRED_10', '1.2m', '3kg', '100005', 'Yakubu opeyemi', 'related information', 'was the pregnancy full term', 'yes', ''),
(15, 'PRED_10', '1.2m', '3kg', '100005', 'Yakubu opeyemi', 'related information', 'was labour and delivery normal', 'no', 'habhanh'),
(16, 'PRED_10', '1.2m', '3kg', '100006', 'Yakubu opeyemi', 'aaa', 'Were there any complication during pregnancy', 'yes', 'habhanh'),
(17, 'PRED_10', '1.2m', '3kg', '100006', 'Yakubu opeyemi', 'aaa', 'was the pregnancy full term', 'yes', ''),
(18, 'PRED_10', '1.2m', '3kg', '100006', 'Yakubu opeyemi', 'aaa', 'was labour and delivery normal', 'no', ''),
(19, 'PRED_10', '1.2m', '3kg', '100007', 'Yakubu opeyemi', 'mmm', 'Were there any complication during pregnancy', 'yes', ''),
(20, 'PRED_10', '1.2m', '3kg', '100007', 'Yakubu opeyemi', 'mmm', 'was the pregnancy full term', 'no', ''),
(21, 'PRED_10', '1.2m', '3kg', '100007', 'Yakubu opeyemi', 'mmm', 'was labour and delivery normal', 'no', ''),
(22, 'PRED_10', '1.2m', '3kg', '100013', '<NAME>', 'fsgsr', 'Were there any complication during pregnancy', 'yes', 'habhanh'),
(23, 'PRED_10', '1.2m', '3kg', '100013', '<NAME>', 'fsgsr', 'was the pregnancy full term', 'no', 'habhanh'),
(24, 'PRED_10', '1.2m', '3kg', '100013', '<NAME>', 'fsgsr', 'was labour and delivery normal', 'yes', 'habhanh'),
(25, 'PRED_10', 'Not Applicable', '3kg', '100014', 'ade', '', 'Were there any complication during pregnancy', '', ''),
(26, 'PRED_10', 'Not Applicable', '3kg', '100014', 'ade', '', 'was the pregnancy full term', '', ''),
(27, 'PRED_10', 'Not Applicable', '3kg', '100014', 'ade', '', 'was labour and delivery normal', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `prev_1`
--
CREATE TABLE `prev_1` (
`id` int(255) NOT NULL,
`num` varchar(100) NOT NULL,
`health` varchar(100) NOT NULL,
`des` varchar(100) NOT NULL,
`physio` varchar(200) NOT NULL,
`info` text NOT NULL,
`rec` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `prev_1`
--
INSERT INTO `prev_1` (`id`, `num`, `health`, `des`, `physio`, `info`, `rec`) VALUES
(1, 'PRED_10', 'Good', 'allergies', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(2, 'PRED_10', 'Good', 'encephalitis', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(3, 'PRED_10', 'Good', 'multiple scierosis', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(4, 'PRED_10', 'Good', 'Rheumatic fever', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(5, 'PRED_10', 'Good', 'Asthma / breathing difficulties', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(6, 'PRED_10', 'Good', 'Enlarged Glands', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(7, 'PRED_10', 'Good', 'Nausea/vomiting', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(8, 'PRED_10', 'Good', 'Ringing of the ear', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(9, 'PRED_10', 'Good', 'Bronchitis', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(10, 'PRED_10', 'Good', 'Fever', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(11, 'PRED_10', 'Good', 'Night pain', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(12, 'PRED_10', 'Good', 'Seizures/Epilepsy', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(13, 'PRED_10', 'Good', 'cancer', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(14, 'PRED_10', 'Good', 'Head injury', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(15, 'PRED_10', 'Good', 'Osteoarthritis', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(16, 'PRED_10', 'Good', 'Smoking history', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(17, 'PRED_10', 'Good', 'Chicken pox', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(18, 'PRED_10', 'Good', 'heart Disease', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(19, 'PRED_10', 'Good', 'Peacemaker', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(20, 'PRED_10', 'Good', 'Stroke/TIA', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(21, 'PRED_10', 'Good', 'Chronic colds', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(22, 'PRED_10', 'Good', 'High blood Pressure', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(23, 'PRED_10', 'Good', 'Parkinson Disease', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(24, 'PRED_10', 'Good', 'surgeries', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(25, 'PRED_10', 'Good', 'chronic laryngitis', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(26, 'PRED_10', 'Good', 'hypoglycemia', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(27, 'PRED_10', 'Good', 'physical abnormalities', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(28, 'PRED_10', 'Good', 'thyroid disease', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(29, 'PRED_10', 'Good', 'cogenital defects', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(30, 'PRED_10', 'Good', 'measeles', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(31, 'PRED_10', 'Good', 'pnemonia', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(32, 'PRED_10', 'Good', 'tonsilitis', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(33, 'PRED_10', 'Good', 'depresion', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(34, 'PRED_10', 'Good', 'meningitis', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(35, 'PRED_10', 'Good', 'polio', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(36, 'PRED_10', 'Good', 'tuberculosis', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(37, 'PRED_10', 'Good', 'diabetis type I and II', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(38, 'PRED_10', 'Good', 'metal implant', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(39, 'PRED_10', 'Good', 'pregnancy', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(40, 'PRED_10', 'Good', 'whopping cough', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(41, 'PRED_10', 'Good', 'dizziness/fainting', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(42, 'PRED_10', 'Good', 'mumps', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(43, 'PRED_10', 'Good', 'rheumatoid Arthritis', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(44, 'PRED_10', 'Good', 'Other information', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(45, 'PRED_10', 'Good', 'Rheumatic fever', 'Yakubu opeyemi', '', '100003'),
(46, 'PRED_10', 'Good', 'Osteoarthritis', 'Yakubu opeyemi', '', '100003'),
(47, 'PRED_10', 'Good', 'physical abnormalities', 'Yakubu opeyemi', '', '100003'),
(48, 'PRED_10', 'Good', '', 'Yakubu opeyemi', '', '100003'),
(49, 'PRED_10', 'Good', 'multiple scierosis', 'Yakubu opeyemi', 'kjlkjkl.', '100004'),
(50, 'PRED_10', 'Good', 'Head injury', 'Yakubu opeyemi', 'kjlkjkl.', '100004'),
(51, 'PRED_10', 'Good', 'Stroke/TIA', 'Yakubu opeyemi', 'kjlkjkl.', '100004'),
(52, 'PRED_10', 'Good', 'hypoglycemia', 'Yakubu opeyemi', 'kjlkjkl.', '100004'),
(53, 'PRED_10', 'Good', 'depresion', 'Yakubu opeyemi', 'kjlkjkl.', '100004'),
(54, 'PRED_10', 'Good', 'whopping cough', 'Yakubu opeyemi', 'kjlkjkl.', '100004'),
(55, 'PRED_10', 'Good', '', 'Yakubu opeyemi', 'kjlkjkl.', '100004'),
(56, 'PRED_10', 'Good', 'multiple scierosis', 'Yakubu opeyemi', 'jefrv', '100005'),
(57, 'PRED_10', 'Good', 'Nausea/vomiting', 'Yakubu opeyemi', 'jefrv', '100005'),
(58, 'PRED_10', 'Good', 'hypoglycemia', 'Yakubu opeyemi', 'jefrv', '100005'),
(59, 'PRED_10', 'Good', 'Other information', 'Yakubu opeyemi', 'jefrv', '100005'),
(60, 'PRED_10', 'Good', 'multiple scierosis', 'Yakubu opeyemi', 'aaa', '100006'),
(61, 'PRED_10', 'Good', 'Nausea/vomiting', 'Yakubu opeyemi', 'aaa', '100006'),
(62, 'PRED_10', 'Good', 'Peacemaker', 'Yakubu opeyemi', 'aaa', '100006'),
(63, 'PRED_10', 'Good', '', 'Yakubu opeyemi', 'aaa', '100006'),
(64, 'PRED_10', 'Good', 'allergies', 'Yakubu opeyemi', 'aaa', '100007'),
(65, 'PRED_10', 'Good', 'Enlarged Glands', 'Yakubu opeyemi', 'aaa', '100007'),
(66, 'PRED_10', 'Good', 'chronic laryngitis', 'Yakubu opeyemi', 'aaa', '100007'),
(67, 'PRED_10', 'Good', 'pnemonia', 'Yakubu opeyemi', 'aaa', '100007'),
(68, 'PRED_10', 'Good', 'diabetis type I and II', 'Yakubu opeyemi', 'aaa', '100007'),
(69, 'PRED_10', 'Good', 'mumps', 'Yakubu opeyemi', 'aaa', '100007'),
(70, 'PRED_10', 'Good', '', 'Yakubu opeyemi', 'aaa', '100007'),
(71, 'PRED_10', 'Good', 'Ringing of the ear', '<NAME>', 'fv ef', '100013'),
(72, 'PRED_10', 'Good', 'Head injury', '<NAME>', 'fv ef', '100013'),
(73, 'PRED_10', 'Good', 'Stroke/TIA', '<NAME>', 'fv ef', '100013'),
(74, 'PRED_10', 'Good', 'hypoglycemia', '<NAME>', 'fv ef', '100013'),
(75, 'PRED_10', 'Good', 'depresion', '<NAME>', 'fv ef', '100013'),
(76, 'PRED_10', 'Good', '', '<NAME>', 'fv ef', '100013'),
(77, 'PRED_10', 'Good', '', 'ade', '', '100014');
-- --------------------------------------------------------
--
-- Table structure for table `prev_2`
--
CREATE TABLE `prev_2` (
`id` int(255) NOT NULL,
`num` varchar(100) NOT NULL,
`other` varchar(100) NOT NULL,
`comment` text NOT NULL,
`physio` varchar(200) NOT NULL,
`info` text NOT NULL,
`rec` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `prev_2`
--
INSERT INTO `prev_2` (`id`, `num`, `other`, `comment`, `physio`, `info`, `rec`) VALUES
(1, 'PRED_10', 'Earache/Ear defection', 'Ear defects', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(2, 'PRED_10', 'Earing difficulties', 'Aided', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(3, 'PRED_10', 'PE ear tubes inserted', 'Eye drop', 'Yakubu opeyemi', 'Medical history goes here', '100002'),
(4, 'PRED_10', 'Earache/Ear defection', '', 'Yakubu opeyemi', '', '100003'),
(5, 'PRED_10', 'PE ear tubes inserted', '', 'Yakubu opeyemi', '', '100003'),
(6, 'PRED_10', '', 'habhanh', 'Yakubu opeyemi', '', '100003'),
(7, 'PRED_10', 'Earache/Ear defection', '', 'Yakubu opeyemi', 'kjlkjkl.', '100004'),
(8, 'PRED_10', 'PE ear tubes inserted', '', 'Yakubu opeyemi', 'kjlkjkl.', '100004'),
(9, 'PRED_10', '', '', 'Yakubu opeyemi', 'kjlkjkl.', '100004'),
(10, 'PRED_10', 'Earache/Ear defection', 'habhanh', 'Yakubu opeyemi', 'jefrv', '100005'),
(11, 'PRED_10', 'Earing difficulties', 'aided', 'Yakubu opeyemi', 'jefrv', '100005'),
(12, 'PRED_10', 'Vision problems', '', 'Yakubu opeyemi', 'jefrv', '100005'),
(13, 'PRED_10', 'Earache/Ear defection', 'habhanh', 'Yakubu opeyemi', 'aaa', '100006'),
(14, 'PRED_10', 'have you ever purchased or rented durable Medical Equipment, orthortics, prosthetics or supplies?', '', 'Yakubu opeyemi', 'aaa', '100006'),
(15, 'PRED_10', '', '', 'Yakubu opeyemi', 'aaa', '100006'),
(16, 'PRED_10', 'Earache/Ear defection', '', 'Yakubu opeyemi', 'aaa', '100007'),
(17, 'PRED_10', 'Earing difficulties', 'aided', 'Yakubu opeyemi', 'aaa', '100007'),
(18, 'PRED_10', 'PE ear tubes inserted', '', 'Yakubu opeyemi', 'aaa', '100007'),
(19, 'PRED_10', 'Earache/Ear defection', 'habhanh', '<NAME>', 'fv ef', '100013'),
(20, 'PRED_10', 'Earing difficulties', 'factors here', '<NAME>', 'fv ef', '100013'),
(21, 'PRED_10', 'have you ever purchased or rented durable Medical Equipment, orthortics, prosthetics or supplies?', '', '<NAME>', 'fv ef', '100013'),
(22, 'PRED_10', 'have you ever purchased or rented durable Medical Equipment, orthortics, prosthetics or supplies?', '', 'ade', '', '100014'),
(23, 'PRED_10', '', '', 'ade', '', '100014'),
(24, 'PRED_10', '', '', 'ade', '', '100014');
-- --------------------------------------------------------
--
-- Table structure for table `receipt`
--
CREATE TABLE `receipt` (
`id` int(200) NOT NULL,
`rec_num` int(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `receipt`
--
INSERT INTO `receipt` (`id`, `rec_num`) VALUES
(1, 100014);
-- --------------------------------------------------------
--
-- Table structure for table `social`
--
CREATE TABLE `social` (
`id` int(255) NOT NULL,
`num` varchar(200) NOT NULL,
`fnamw` varchar(200) NOT NULL,
`fage` int(10) NOT NULL,
`focc` varchar(200) NOT NULL,
`mname` varchar(200) NOT NULL,
`mage` int(10) NOT NULL,
`mocc` varchar(200) NOT NULL,
`adopt` varchar(100) NOT NULL,
`age` varchar(10) NOT NULL,
`marry` varchar(20) NOT NULL,
`live` varchar(20) NOT NULL,
`rec` varchar(10) NOT NULL,
`physio` varchar(20) NOT NULL,
`related` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `social`
--
INSERT INTO `social` (`id`, `num`, `fnamw`, `fage`, `focc`, `mname`, `mage`, `mocc`, `adopt`, `age`, `marry`, `live`, `rec`, `physio`, `related`) VALUES
(1, 'PRED_10', '<NAME>', 37, 'Lawyer', '<NAME>', 20, 'Trader', 'yes', '3', 'Remarried', 'Father and Mother', '100002', 'Yakubu opeyemi', 'Other social related information'),
(2, 'PRED_10', '<NAME>', 12, 'Lawyer', '<NAME>', 4, 'Trader', 'yes', '3', 'living together', 'Father and Mother', '100003', 'Yakubu opeyemi', ''),
(3, 'PRED_10', '<NAME>', 20, 'Lawyer', '<NAME>', 33, 'Trader', 'yes', '3', 'married', 'Father and Mother', '100004', 'Yakub<NAME>peyemi', 'ewr'),
(4, 'PRED_10', '<NAME>', 30, 'Lawyer', '<NAME>', 14, 'Trader', 'yes', '2', 'married', 'Father and Mother', '100005', '<NAME>', 'Social hostory related information'),
(5, 'PRED_10', '<NAME>', 22, 'Lawyer', '<NAME>', 11, 'Trader', 'yes', '3', 'living together', 'Father and Mother', '100006', 'Yakubu opeyemi', 'other information'),
(6, 'PRED_10', '<NAME>', 23, 'Lawyer', '<NAME>', 12, 'Trader', 'yes', '4', 'married', 'Father and Mother', '100007', 'Yakubu opeyemi', 'other relaterd information'),
(7, 'PRED_10', '<NAME>', 12, 'Lawyer', '<NAME>', 23, 'Trader', 'no', '', 'married', 'Father and Mother', '100013', '<NAME>', 'fda'),
(8, 'PRED_10', '<NAME>', 2, 'Lawyer', '<NAME>', 1, 'Trader', 'yes', '', '', '', '100014', 'ade', '');
-- --------------------------------------------------------
--
-- Table structure for table `subjective`
--
CREATE TABLE `subjective` (
`id` int(100) NOT NULL,
`num` varchar(200) NOT NULL,
`reason` varchar(1000) NOT NULL,
`prior` varchar(1000) NOT NULL,
`specify` varchar(1000) NOT NULL,
`exp` varchar(10000) NOT NULL,
`appointment` varchar(10000) NOT NULL,
`physio` varchar(200) NOT NULL,
`subject` varchar(10000) NOT NULL,
`rec` int(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `subjective`
--
INSERT INTO `subjective` (`id`, `num`, `reason`, `prior`, `specify`, `exp`, `appointment`, `physio`, `subject`, `rec`) VALUES
(1, 'PRED_10', 'malaria', 'yes', 'lala', 'jujujuju', '2018-10-11', 'Yakubu opeyemi', 'dadadadadadadadad', 0),
(2, 'PRED_10', 'ddd', 'yes', 'ggg', 'ww', '2018-10-12', 'qq', 'ee', 0),
(3, 'PRED_10', 'klklk', 'yes', 'lala', 'asase', '2018-10-13', 'Yakubu opeyemi', 'Additional Information here', 100001),
(4, 'PRED_10', 'bruise', 'no', '', '', '2018-10-14', 'Ogbeni Opeyemi', 'Additional subjective Info goes here', 100002),
(5, 'PRED_10', 'bruise', 'yes', 'bruise', 'explanation', '2018-10-10', 'Ogbeni Opeyemi', 'other informations', 100003),
(6, 'PRED_10', 'bruise', 'no', '', '', '2018-10-19', 'Yakubu opeyemi', 'werfvreq', 100004),
(7, 'PRED_10', 'bruise', 'no', '', '', '2018-10-20', 'Yakubu opeyemi', 'jedfil', 100005),
(8, 'PRED_10', 'bruise', 'no', '', '', '2018-10-06', 'Yakubu opeyemi', 'jbhb', 100006),
(9, 'PRED_10', 'bruise', 'no', '', '', '2018-10-13', 'Yakubu opeyemi', 'lll', 100007),
(10, 'PRED_10', 'bruise', 'no', '', '', '2018-11-10', '<NAME>', 'gh', 100013),
(11, 'PRED_10', 'bruise', 'no', '', '', '2018-11-10', '<NAME>', 'gh', 100013),
(12, 'PRED_10', 'bruise', 'no', '', '', '2018-11-18', '<NAME>', 'sd', 100013),
(13, 'PRED_10', 'bruise', 'no', '', '', '2018-12-23', 'ade', 'uhibkihnjku', 100014);
-- --------------------------------------------------------
--
-- Table structure for table `table_1`
--
CREATE TABLE `table_1` (
`id` int(200) NOT NULL,
`num` varchar(20) NOT NULL,
`name` varchar(200) NOT NULL,
`DOB` varchar(10) NOT NULL,
`rec` int(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `table_1`
--
INSERT INTO `table_1` (`id`, `num`, `name`, `DOB`, `rec`) VALUES
(1, 'PRED_10', 'Yakubu Damilola', 'PRED_10', 0),
(2, 'PRED_10', 'Yakubu Damilola', 'PRED_10', 0),
(3, 'PRED_10', '<NAME>', 'PRED_10', 0),
(4, 'PRED_10', '<NAME>la', 'PRED_10', 100001),
(5, 'PRED_10', '<NAME>', 'PRED_10', 100001),
(6, 'PRED_10', '<NAME>la', 'PRED_10', 100001),
(7, 'PRED_10', 'Y<NAME>la', 'PRED_10', 100001),
(8, 'PRED_10', 'Y<NAME>la', 'PRED_10', 100001),
(9, 'PRED_10', '<NAME>', 'PRED_10', 100002),
(10, 'PRED_10', '<NAME>', 'PRED_10', 100003),
(11, 'PRED_10', 'Y<NAME>la', 'PRED_10', 100004),
(12, 'PRED_10', '<NAME>', 'PRED_10', 100005),
(13, 'PRED_10', '<NAME>', 'PRED_10', 100006),
(14, 'PRED_10', '<NAME>la', 'PRED_10', 100007),
(15, 'PRED_10', 'Y<NAME>la', 'PRED_10', 100008),
(16, 'PRED_10', '<NAME>la', 'PRED_10', 100009),
(17, 'PRED_10', '<NAME>', 'PRED_10', 100010),
(18, 'PRED_10', '<NAME>', 'PRED_10', 100011),
(19, 'PRED_10', '<NAME>', 'PRED_10', 100012),
(20, 'PRED_10', '<NAME>', 'PRED_10', 100013),
(21, 'PRED_10', '<NAME>', 'PRED_10', 100014);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `complain`
--
ALTER TABLE `complain`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `education`
--
ALTER TABLE `education`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `education2`
--
ALTER TABLE `education2`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `growth_1`
--
ALTER TABLE `growth_1`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `growth_2`
--
ALTER TABLE `growth_2`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `medication`
--
ALTER TABLE `medication`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `patient_num`
--
ALTER TABLE `patient_num`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `precaution`
--
ALTER TABLE `precaution`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `preg`
--
ALTER TABLE `preg`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `prev_1`
--
ALTER TABLE `prev_1`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `prev_2`
--
ALTER TABLE `prev_2`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `receipt`
--
ALTER TABLE `receipt`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `social`
--
ALTER TABLE `social`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `subjective`
--
ALTER TABLE `subjective`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `table_1`
--
ALTER TABLE `table_1`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `complain`
--
ALTER TABLE `complain`
MODIFY `id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;
--
-- AUTO_INCREMENT for table `education`
--
ALTER TABLE `education`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `education2`
--
ALTER TABLE `education2`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `growth_1`
--
ALTER TABLE `growth_1`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50;
--
-- AUTO_INCREMENT for table `growth_2`
--
ALTER TABLE `growth_2`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=169;
--
-- AUTO_INCREMENT for table `medication`
--
ALTER TABLE `medication`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `patient_num`
--
ALTER TABLE `patient_num`
MODIFY `id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `precaution`
--
ALTER TABLE `precaution`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
--
-- AUTO_INCREMENT for table `preg`
--
ALTER TABLE `preg`
MODIFY `id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;
--
-- AUTO_INCREMENT for table `prev_1`
--
ALTER TABLE `prev_1`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=78;
--
-- AUTO_INCREMENT for table `prev_2`
--
ALTER TABLE `prev_2`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
--
-- AUTO_INCREMENT for table `receipt`
--
ALTER TABLE `receipt`
MODIFY `id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `social`
--
ALTER TABLE `social`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `subjective`
--
ALTER TABLE `subjective`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `table_1`
--
ALTER TABLE `table_1`
MODIFY `id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- Your database schema. Use the Schema Designer at http://localhost:8001/ to add some tables.
CREATE TABLE bands (
id UUID DEFAULT uuid_generate_v4() PRIMARY KEY NOT NULL,
collection TEXT NOT NULL UNIQUE,
name TEXT NOT NULL UNIQUE,
updated_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL,
url TEXT DEFAULT '' NOT NULL,
logo_url TEXT DEFAULT NULL
);
CREATE TABLE performances (
id UUID DEFAULT uuid_generate_v4() PRIMARY KEY NOT NULL,
band_id UUID NOT NULL,
date TEXT NOT NULL,
venue TEXT NOT NULL,
city TEXT NOT NULL,
state TEXT NOT NULL
);
CREATE TABLE recordings (
id UUID DEFAULT uuid_generate_v4() PRIMARY KEY NOT NULL,
performance_id UUID NOT NULL,
transferer TEXT NOT NULL,
source TEXT NOT NULL,
lineage TEXT NOT NULL,
archive_downloads INT DEFAULT 0 NOT NULL,
avg_rating DOUBLE PRECISION DEFAULT 0 NOT NULL,
num_reviews INT DEFAULT 0 NOT NULL,
attics_downloads INT DEFAULT 0 NOT NULL,
identifier TEXT NOT NULL UNIQUE
);
CREATE TABLE songs (
id UUID DEFAULT uuid_generate_v4() PRIMARY KEY NOT NULL,
file_name TEXT NOT NULL,
title TEXT NOT NULL,
track INT NOT NULL,
creator TEXT NOT NULL,
length TEXT NOT NULL,
album TEXT NOT NULL,
recording_id UUID NOT NULL
);
CREATE TABLE nightly_scrape_jobs (
id UUID DEFAULT uuid_generate_v4() PRIMARY KEY NOT NULL,
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL,
updated_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL,
status JOB_STATUS DEFAULT 'job_status_not_started' NOT NULL,
last_error TEXT DEFAULT NULL,
attempts_count INT DEFAULT 0 NOT NULL,
locked_at TIMESTAMP WITH TIME ZONE DEFAULT NULL,
locked_by UUID DEFAULT NULL,
band_id UUID NOT NULL,
run_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL
);
CREATE TABLE fix_song_jobs (
id UUID DEFAULT uuid_generate_v4() PRIMARY KEY NOT NULL,
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL,
updated_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL,
status JOB_STATUS DEFAULT 'job_status_not_started' NOT NULL,
last_error TEXT DEFAULT NULL,
attempts_count INT DEFAULT 0 NOT NULL,
locked_at TIMESTAMP WITH TIME ZONE DEFAULT NULL,
locked_by UUID DEFAULT NULL,
band_id UUID NOT NULL,
run_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL
);
CREATE TABLE initial_scrape_jobs (
id UUID DEFAULT uuid_generate_v4() PRIMARY KEY NOT NULL,
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL,
updated_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL,
status JOB_STATUS DEFAULT 'job_status_not_started' NOT NULL,
last_error TEXT DEFAULT NULL,
attempts_count INT DEFAULT 0 NOT NULL,
locked_at TIMESTAMP WITH TIME ZONE DEFAULT NULL,
locked_by UUID DEFAULT NULL,
band_id UUID NOT NULL,
run_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL
);
ALTER TABLE fix_song_jobs ADD CONSTRAINT fix_song_jobs_ref_band_id FOREIGN KEY (band_id) REFERENCES bands (id) ON DELETE CASCADE;
ALTER TABLE initial_scrape_jobs ADD CONSTRAINT initial_scrape_jobs_ref_band_id FOREIGN KEY (band_id) REFERENCES bands (id) ON DELETE CASCADE;
ALTER TABLE nightly_scrape_jobs ADD CONSTRAINT nightly_scrape_jobs_ref_band_id FOREIGN KEY (band_id) REFERENCES bands (id) ON DELETE CASCADE;
ALTER TABLE performances ADD CONSTRAINT performances_ref_band_id FOREIGN KEY (band_id) REFERENCES bands (id) ON DELETE CASCADE;
ALTER TABLE recordings ADD CONSTRAINT recordings_ref_performance_id FOREIGN KEY (performance_id) REFERENCES performances (id) ON DELETE CASCADE;
ALTER TABLE songs ADD CONSTRAINT songs_ref_recording_id FOREIGN KEY (recording_id) REFERENCES recordings (id) ON DELETE CASCADE;
|
<filename>migrations/20200615132006_uspSaveFortedSurebet.up.sql
create or alter proc dbo.uspSaveFortedSurebet @CreatedAt datetimeoffset,
@Starts datetimeoffset,
@FortedHome varchar(1000),
@FortedAway varchar(1000),
@FortedProfit varchar(1000),
@FortedSport varchar(1000),
@FortedLeague varchar(1000),
@FilterName varchar(1000),
@FortedSurebetId bigint
as
begin
set nocount on
declare @Id bigint
select @Id = FortedSurebetId from dbo.FortedSurebet where FortedSurebetId = @FortedSurebetId
if @@rowcount = 0
insert into dbo.FortedSurebet(CreatedAt, Starts, FortedHome, FortedAway, FortedProfit, FortedSport,
FortedLeague, FilterName, FortedSurebetId)
output inserted.FortedSurebetId
values (@CreatedAt, @Starts, @FortedHome, @FortedAway, @FortedProfit, @FortedSport, @FortedLeague, @FilterName,
@FortedSurebetId)
else
select @Id
end
|
ALTER TABLE Booking
ADD CONSTRAINT CK_Booking_room_no CHECK (room_type_requested in ('single','twin','family','double'));
ALTER TABLE room_type
ADD CONSTRAINT CK_room_type_id CHECK (id in ('single','twin','family','double'));
|
DROP TABLE IF EXISTS x;
DROP TABLE IF EXISTS y;
CREATE TABLE x AS system.numbers ENGINE = MergeTree ORDER BY number;
CREATE TABLE y AS system.numbers ENGINE = MergeTree ORDER BY number;
-- Just one shard, sharding key isn't necessary
INSERT INTO FUNCTION cluster('test_shard_localhost', currentDatabase(), x) SELECT * FROM numbers(10);
INSERT INTO FUNCTION cluster('test_shard_localhost', currentDatabase(), x, rand()) SELECT * FROM numbers(10);
-- More than one shard, sharding key is necessary
INSERT INTO FUNCTION cluster('test_cluster_two_shards_localhost', currentDatabase(), x) SELECT * FROM numbers(10); --{ serverError 55 }
INSERT INTO FUNCTION cluster('test_cluster_two_shards_localhost', currentDatabase(), x, rand()) SELECT * FROM numbers(10);
INSERT INTO FUNCTION remote('127.0.0.{1,2}', currentDatabase(), y, 'default') SELECT * FROM numbers(10); -- { serverError 55 }
INSERT INTO FUNCTION remote('127.0.0.{1,2}', currentDatabase(), y, 'default', rand()) SELECT * FROM numbers(10);
SELECT * FROM x ORDER BY number;
SELECT * FROM remote('127.0.0.{1,2}', currentDatabase(), y) ORDER BY number;
DROP TABLE x;
DROP TABLE y;
|
-- Bug fix: When repulling data from source for specific time periods in refresh_inserter() or refresh_updater(), it was recording the last_value of the batch instead of the real last value of the destination table. This bug was introduced in v0.10.0 with the new remote cursor data fetching method. If you've used this repull method, please check for data duplication on the destination. Repulling for that time period again should fix things.
-- Note in docs that the only type of indexes from the source tables that are currently supported properly when recreating them on the destination are B-tree.
/*
* Refresh insert only table based on timestamp control field
*/
CREATE OR REPLACE FUNCTION refresh_inserter(p_destination text, p_limit integer DEFAULT NULL, p_repull boolean DEFAULT false, p_repull_start text DEFAULT NULL, p_repull_end text DEFAULT NULL, p_debug boolean DEFAULT false) RETURNS void
LANGUAGE plpgsql SECURITY DEFINER
AS $$
DECLARE
v_adv_lock boolean;
v_batch_limit_reached int := 0;
v_boundary timestamptz;
v_cols_n_types text;
v_cols text;
v_condition text;
v_control text;
v_create_sql text;
v_dblink int;
v_dblink_name text;
v_dblink_schema text;
v_delete_sql text;
v_dest_table text;
v_dst_active boolean;
v_dst_check boolean;
v_dst_start int;
v_dst_end int;
v_fetch_sql text;
v_filter text[];
v_full_refresh boolean := false;
v_insert_sql text;
v_job_id int;
v_jobmon_schema text;
v_job_name text;
v_last_fetched timestamptz;
v_last_value timestamptz;
--v_last_value_new timestamptz;
v_limit int;
v_now timestamptz := now();
v_old_search_path text;
v_remote_sql text;
v_rowcount bigint := 0;
v_source_table text;
v_step_id int;
v_tmp_table text;
v_total bigint := 0;
BEGIN
IF p_debug IS DISTINCT FROM true THEN
PERFORM set_config( 'client_min_messages', 'warning', true );
END IF;
v_job_name := 'Refresh Inserter: '||p_destination;
v_dblink_name := 'mimeo_inserter_refresh_'||p_destination;
SELECT nspname INTO v_dblink_schema FROM pg_namespace n, pg_extension e WHERE e.extname = 'dblink' AND e.extnamespace = n.oid;
SELECT nspname INTO v_jobmon_schema FROM pg_namespace n, pg_extension e WHERE e.extname = 'pg_jobmon' AND e.extnamespace = n.oid;
-- Set custom search path to allow easier calls to other functions, especially job logging
SELECT current_setting('search_path') INTO v_old_search_path;
EXECUTE 'SELECT set_config(''search_path'',''@extschema@,'||v_jobmon_schema||','||v_dblink_schema||',public'',''false'')';
v_job_id := add_job(v_job_name);
PERFORM gdb(p_debug,'Job ID: '||v_job_id::text);
-- Take advisory lock to prevent multiple calls to function overlapping
v_adv_lock := pg_try_advisory_lock(hashtext('refresh_inserter'), hashtext(v_job_name));
IF v_adv_lock = 'false' THEN
v_step_id := add_step(v_job_id,'Obtaining advisory lock for job: '||v_job_name);
PERFORM gdb(p_debug,'Obtaining advisory lock FAILED for job: '||v_job_name);
PERFORM update_step(v_step_id, 'WARNING','Found concurrent job. Exiting gracefully');
PERFORM fail_job(v_job_id, 2);
EXECUTE 'SELECT set_config(''search_path'','''||v_old_search_path||''',''false'')';
RETURN;
END IF;
SELECT source_table
, dest_table
, 'tmp_'||replace(dest_table,'.','_')
, dblink
, control
, last_value
, now() - boundary::interval
, filter
, condition
, dst_active
, dst_start
, dst_end
, batch_limit
FROM refresh_config_inserter WHERE dest_table = p_destination
INTO v_source_table
, v_dest_table
, v_tmp_table
, v_dblink
, v_control
, v_last_value
, v_boundary
, v_filter
, v_condition
, v_dst_active
, v_dst_start
, v_dst_end
, v_limit;
IF NOT FOUND THEN
RAISE EXCEPTION 'ERROR: no configuration found for %',v_job_name;
END IF;
-- Do not allow this function to run during DST time change if config option is true. Otherwise will miss data from source
IF v_dst_active THEN
v_dst_check := @extschema@.dst_change(v_now);
IF v_dst_check THEN
IF to_number(to_char(v_now, 'HH24MM'), '0000') > v_dst_start AND to_number(to_char(v_now, 'HH24MM'), '0000') < v_dst_end THEN
v_step_id := add_step( v_job_id, 'DST Check');
PERFORM update_step(v_step_id, 'OK', 'Job CANCELLED - Does not run during DST time change');
PERFORM close_job(v_job_id);
PERFORM gdb(p_debug, 'Cannot run during DST time change');
UPDATE refresh_config_inserter SET last_run = CURRENT_TIMESTAMP WHERE dest_table = p_destination;
EXECUTE 'SELECT set_config(''search_path'','''||v_old_search_path||''',''false'')';
PERFORM pg_advisory_unlock(hashtext('refresh_inserter'), hashtext(v_job_name));
RETURN;
END IF;
END IF;
END IF;
v_step_id := add_step(v_job_id,'Building SQL');
IF v_filter IS NULL THEN
SELECT array_to_string(array_agg(attname),','), array_to_string(array_agg(attname||' '||format_type(atttypid, atttypmod)::text),',')
INTO v_cols, v_cols_n_types
FROM pg_attribute WHERE attrelid = p_destination::regclass AND attnum > 0 AND attisdropped is false;
ELSE
SELECT array_to_string(array_agg(attname),','), array_to_string(array_agg(attname||' '||format_type(atttypid, atttypmod)::text),',')
INTO v_cols, v_cols_n_types
FROM pg_attribute WHERE attrelid = p_destination::regclass AND ARRAY[attname::text] <@ v_filter AND attnum > 0 AND attisdropped is false;
END IF;
PERFORM dblink_connect(v_dblink_name, auth(v_dblink));
IF p_limit IS NOT NULL THEN
v_limit := p_limit;
END IF;
IF p_repull THEN
-- Repull ALL data if no start and end values set
IF p_repull_start IS NULL AND p_repull_end IS NULL THEN
PERFORM update_step(v_step_id, 'OK','Request to repull ALL data from source. This could take a while...');
EXECUTE 'TRUNCATE '||v_dest_table;
v_remote_sql := 'SELECT '||v_cols||' FROM '||v_source_table;
IF v_condition IS NOT NULL THEN
v_remote_sql := v_remote_sql || ' ' || v_condition;
END IF;
ELSE
PERFORM update_step(v_step_id, 'OK','Request to repull data from '||COALESCE(p_repull_start, '-infinity')||' to '||COALESCE(p_repull_end, 'infinity'));
PERFORM gdb(p_debug,'Request to repull data from '||COALESCE(p_repull_start, '-infinity')||' to '||COALESCE(p_repull_end, 'infinity'));
v_remote_sql := 'SELECT '||v_cols||' FROM '||v_source_table;
IF v_condition IS NOT NULL THEN
v_remote_sql := v_remote_sql || ' ' || v_condition || ' AND ';
ELSE
v_remote_sql := v_remote_sql || ' WHERE ';
END IF;
v_remote_sql := v_remote_sql ||v_control||' > '||quote_literal(COALESCE(p_repull_start, '-infinity'))||' AND '
||v_control||' < '||quote_literal(COALESCE(p_repull_end, 'infinity'));
-- Delete the old local data
v_delete_sql := 'DELETE FROM '||v_dest_table||' WHERE '||v_control||' > '||quote_literal(COALESCE(p_repull_start, '-infinity'))||' AND '
||v_control||' < '||quote_literal(COALESCE(p_repull_end, 'infinity'));
v_step_id := add_step(v_job_id, 'Deleting current, local data');
PERFORM gdb(p_debug,'Deleting current, local data: '||v_delete_sql);
EXECUTE v_delete_sql;
GET DIAGNOSTICS v_rowcount = ROW_COUNT;
PERFORM update_step(v_step_id, 'OK', v_rowcount || 'rows removed');
END IF;
ELSE
-- does < for upper boundary to keep missing data from happening on rare edge case where a newly inserted row outside the transaction batch
-- has the exact same timestamp as the previous batch's max timestamp
v_remote_sql := 'SELECT '||v_cols||' FROM '||v_source_table;
IF v_condition IS NOT NULL THEN
v_remote_sql := v_remote_sql || ' ' || v_condition || ' AND ';
ELSE
v_remote_sql := v_remote_sql || ' WHERE ';
END IF;
v_remote_sql := v_remote_sql ||v_control||' > '||quote_literal(v_last_value)||' AND '||v_control||' < '||quote_literal(v_boundary)||' ORDER BY '||v_control||' ASC LIMIT '|| COALESCE(v_limit::text, 'ALL');
PERFORM update_step(v_step_id, 'OK','Grabbing rows from '||v_last_value::text||' to '||v_boundary::text);
PERFORM gdb(p_debug,'Grabbing rows from '||v_last_value::text||' to '||v_boundary::text);
END IF;
EXECUTE 'CREATE TEMP TABLE '||v_tmp_table||' ('||v_cols_n_types||')';
PERFORM gdb(p_debug,v_remote_sql);
PERFORM dblink_open(v_dblink_name, 'mimeo_cursor', v_remote_sql);
v_step_id := add_step(v_job_id, 'Inserting new records into local table');
v_rowcount := 0;
v_total := 0;
LOOP
v_fetch_sql := 'INSERT INTO '||v_tmp_table||'('||v_cols||')
SELECT '||v_cols||' FROM dblink_fetch('||quote_literal(v_dblink_name)||', ''mimeo_cursor'', 50000) AS ('||v_cols_n_types||')';
EXECUTE v_fetch_sql;
GET DIAGNOSTICS v_rowcount = ROW_COUNT;
v_total := v_total + coalesce(v_rowcount, 0);
EXECUTE 'SELECT max('||v_control||') FROM '||v_tmp_table INTO v_last_fetched;
IF v_limit IS NULL THEN -- insert into the real table in batches if no limit to avoid excessively large temp tables
EXECUTE 'INSERT INTO '||v_dest_table||' ('||v_cols||') SELECT '||v_cols||' FROM '||v_tmp_table;
EXECUTE 'TRUNCATE '||v_tmp_table;
END IF;
EXIT WHEN v_rowcount = 0;
PERFORM gdb(p_debug,'Fetching rows in batches: '||v_total||' done so far. Last fetched: '||v_last_fetched);
PERFORM update_step(v_step_id, 'PENDING', 'Fetching rows in batches: '||v_total||' done so far. Last fetched: '||v_last_fetched);
END LOOP;
PERFORM dblink_close(v_dblink_name, 'mimeo_cursor');
PERFORM update_step(v_step_id, 'OK','Rows fetched: '||v_total);
IF v_limit IS NULL THEN
-- nothing else to do
ELSE
-- When using batch limits, entire batch must be pulled to temp table before inserting to real table to catch edge cases
v_step_id := add_step(v_job_id,'Checking for batch limit issues');
PERFORM gdb(p_debug, 'Checking for batch limit issues');
-- Not recommended that the batch actually equal the limit set if possible. Handle all edge cases to keep data consistent
IF v_total >= v_limit THEN
PERFORM update_step(v_step_id, 'WARNING','Row count fetched equal to or greater than limit set: '||v_limit||'. Recommend increasing batch limit if possible.');
PERFORM gdb(p_debug, 'Row count fetched equal to or greater than limit set: '||v_limit||'. Recommend increasing batch limit if possible.');
EXECUTE 'SELECT max('||v_control||') FROM '||v_tmp_table INTO v_last_value;
v_step_id := add_step(v_job_id, 'Removing high boundary rows from this batch to avoid missing data');
EXECUTE 'DELETE FROM '||v_tmp_table||' WHERE '||v_control||' = '||quote_literal(v_last_value);
GET DIAGNOSTICS v_rowcount = ROW_COUNT;
PERFORM update_step(v_step_id, 'OK', 'Removed '||v_rowcount||' rows. Batch now contains '||v_limit - v_rowcount||' records');
PERFORM gdb(p_debug, 'Removed '||v_rowcount||' rows from batch. Batch table now contains '||v_limit - v_rowcount||' records');
v_batch_limit_reached = 2;
v_total := v_total - v_rowcount;
IF (v_limit - v_rowcount) < 1 THEN
v_step_id := add_step(v_job_id, 'Reached inconsistent state');
PERFORM update_step(v_step_id, 'CRITICAL', 'Batch contained max rows ('||v_limit||') or greater and all contained the same timestamp value. Unable to guarentee rows will ever be replicated consistently. Increase row limit parameter to allow a consistent batch.');
PERFORM gdb(p_debug, 'Batch contained max rows desired ('||v_limit||') or greaer and all contained the same timestamp value. Unable to guarentee rows will be replicated consistently. Increase row limit parameter to allow a consistent batch.');
v_batch_limit_reached = 3;
END IF;
ELSE
PERFORM update_step(v_step_id, 'OK','No issues found');
PERFORM gdb(p_debug, 'No issues found');
END IF;
IF v_batch_limit_reached <> 3 THEN
v_step_id := add_step(v_job_id,'Inserting new records into local table');
EXECUTE 'INSERT INTO '||v_dest_table||' ('||v_cols||') SELECT '||v_cols||' FROM '||v_tmp_table;
PERFORM update_step(v_step_id, 'OK','Inserted '||v_total||' records');
PERFORM gdb(p_debug, 'Inserted '||v_total||' records');
END IF;
END IF; -- end v_limit IF
IF v_batch_limit_reached <> 3 THEN
v_step_id := add_step(v_job_id, 'Setting next lower boundary');
EXECUTE 'SELECT max('||v_control||') FROM '|| v_dest_table INTO v_last_value;
UPDATE refresh_config_inserter set last_value = coalesce(v_last_value, CURRENT_TIMESTAMP), last_run = CURRENT_TIMESTAMP WHERE dest_table = p_destination;
PERFORM update_step(v_step_id, 'OK','Lower boundary value is: '|| coalesce(v_last_value, CURRENT_TIMESTAMP));
PERFORM gdb(p_debug, 'Lower boundary value is: '||coalesce(v_last_value, CURRENT_TIMESTAMP));
END IF;
EXECUTE 'DROP TABLE IF EXISTS ' || v_tmp_table;
PERFORM dblink_disconnect(v_dblink_name);
IF v_batch_limit_reached = 0 THEN
PERFORM close_job(v_job_id);
ELSIF v_batch_limit_reached = 2 THEN
-- Set final job status to level 2 (WARNING) to bring notice that the batch limit was reached and may need adjusting.
-- Preventive warning to keep replication from falling behind.
PERFORM fail_job(v_job_id, 2);
ELSIF v_batch_limit_reached = 3 THEN
-- Really bad. Critical alert!
PERFORM fail_job(v_job_id);
END IF;
-- Ensure old search path is reset for the current session
EXECUTE 'SELECT set_config(''search_path'','''||v_old_search_path||''',''false'')';
PERFORM pg_advisory_unlock(hashtext('refresh_inserter'), hashtext(v_job_name));
EXCEPTION
WHEN QUERY_CANCELED THEN
PERFORM pg_advisory_unlock(hashtext('refresh_inserter'), hashtext(v_job_name));
EXECUTE 'SELECT set_config(''search_path'',''@extschema@,'||v_jobmon_schema||','||v_dblink_schema||''',''false'')';
IF dblink_get_connections() @> ARRAY[v_dblink_name] THEN
PERFORM dblink_disconnect(v_dblink_name);
END IF;
EXECUTE 'SELECT set_config(''search_path'','''||v_old_search_path||''',''false'')';
RAISE EXCEPTION '%', SQLERRM;
WHEN OTHERS THEN
EXECUTE 'SELECT set_config(''search_path'',''@extschema@,'||v_jobmon_schema||','||v_dblink_schema||''',''false'')';
IF v_job_id IS NULL THEN
v_job_id := add_job('Refresh Inserter: '||p_destination);
v_step_id := add_step(v_job_id, 'EXCEPTION before job logging started');
END IF;
IF v_step_id IS NULL THEN
v_step_id := add_step(v_job_id, 'EXCEPTION before first step logged');
END IF;
IF dblink_get_connections() @> ARRAY[v_dblink_name] THEN
PERFORM dblink_disconnect(v_dblink_name);
END IF;
PERFORM update_step(v_step_id, 'CRITICAL', 'ERROR: '||coalesce(SQLERRM,'unknown'));
PERFORM fail_job(v_job_id);
EXECUTE 'SELECT set_config(''search_path'','''||v_old_search_path||''',''false'')';
PERFORM pg_advisory_unlock(hashtext('refresh_inserter'), hashtext(v_job_name));
RAISE EXCEPTION '%', SQLERRM;
END
$$;
/*
* Refresh insert/update only table based on timestamp control field
*/
CREATE OR REPLACE FUNCTION refresh_updater(p_destination text, p_limit integer DEFAULT NULL, p_repull boolean DEFAULT false, p_repull_start text DEFAULT NULL, p_repull_end text DEFAULT NULL, p_debug boolean DEFAULT false) RETURNS void
LANGUAGE plpgsql SECURITY DEFINER
AS $$
DECLARE
v_adv_lock boolean;
v_batch_limit_reached int := 0;
v_boundary_sql text;
v_boundary timestamptz;
v_cols_n_types text;
v_cols text;
v_condition text;
v_control text;
v_create_sql text;
v_dblink int;
v_dblink_name text;
v_dblink_schema text;
v_delete_sql text;
v_dest_table text;
v_dst_active boolean;
v_dst_check boolean;
v_dst_start int;
v_dst_end int;
v_fetch_sql text;
v_field text;
v_filter text[];
v_full_refresh boolean := false;
v_insert_sql text;
v_job_id int;
v_jobmon_schema text;
v_job_name text;
v_last_fetched timestamptz;
v_last_value timestamptz;
v_limit int;
v_now timestamptz := now();
v_old_search_path text;
v_pk_counter int := 1;
v_pk_name text[];
v_remote_boundry_sql text;
v_remote_boundry timestamptz;
v_remote_sql text;
v_rowcount bigint := 0;
v_source_table text;
v_step_id int;
v_tmp_table text;
v_total bigint := 0;
BEGIN
IF p_debug IS DISTINCT FROM true THEN
PERFORM set_config( 'client_min_messages', 'warning', true );
END IF;
v_job_name := 'Refresh Updater: '||p_destination;
v_dblink_name := 'mimeo_updater_refresh_'||p_destination;
SELECT nspname INTO v_dblink_schema FROM pg_namespace n, pg_extension e WHERE e.extname = 'dblink' AND e.extnamespace = n.oid;
SELECT nspname INTO v_jobmon_schema FROM pg_namespace n, pg_extension e WHERE e.extname = 'pg_jobmon' AND e.extnamespace = n.oid;
-- Set custom search path to allow easier calls to other functions, especially job logging
SELECT current_setting('search_path') INTO v_old_search_path;
EXECUTE 'SELECT set_config(''search_path'',''@extschema@,'||v_jobmon_schema||','||v_dblink_schema||',public'',''false'')';
v_job_id := add_job(v_job_name);
PERFORM gdb(p_debug,'Job ID: '||v_job_id::text);
-- Take advisory lock to prevent multiple calls to function overlapping
v_adv_lock := pg_try_advisory_lock(hashtext('refresh_updater'), hashtext(v_job_name));
IF v_adv_lock = 'false' THEN
v_step_id := add_step(v_job_id,'Obtaining advisory lock for job: '||v_job_name);
PERFORM gdb(p_debug,'Obtaining advisory lock FAILED for job: '||v_job_name);
PERFORM update_step(v_step_id, 'WARNING','Found concurrent job. Exiting gracefully');
PERFORM fail_job(v_job_id, 2);
EXECUTE 'SELECT set_config(''search_path'','''||v_old_search_path||''',''false'')';
RETURN;
END IF;
SELECT source_table
, dest_table
, 'tmp_'||replace(dest_table,'.','_')
, dblink
, control
, last_value
, now() - boundary::interval
, pk_name
, filter
, condition
, dst_active
, dst_start
, dst_end
, batch_limit
FROM refresh_config_updater
WHERE dest_table = p_destination INTO
v_source_table
, v_dest_table
, v_tmp_table
, v_dblink
, v_control
, v_last_value
, v_boundary
, v_pk_name
, v_filter
, v_condition
, v_dst_active
, v_dst_start
, v_dst_end
, v_limit;
IF NOT FOUND THEN
RAISE EXCEPTION 'ERROR: no configuration found for %',v_job_name;
END IF;
-- Do not allow this function to run during DST time change if config option is true. Otherwise will miss data from source
IF v_dst_active THEN
v_dst_check := @extschema@.dst_change(v_now);
IF v_dst_check THEN
IF to_number(to_char(v_now, 'HH24MM'), '0000') > v_dst_start AND to_number(to_char(v_now, 'HH24MM'), '0000') < v_dst_end THEN
v_step_id := add_step( v_job_id, 'DST Check');
PERFORM update_step(v_step_id, 'OK', 'Job CANCELLED - Does not run during DST time change');
UPDATE refresh_config_updater SET last_run = CURRENT_TIMESTAMP WHERE dest_table = p_destination;
PERFORM close_job(v_job_id);
PERFORM gdb(p_debug, 'Cannot run during DST time change');
EXECUTE 'SELECT set_config(''search_path'','''||v_old_search_path||''',''false'')';
PERFORM pg_advisory_unlock(hashtext('refresh_updater'), hashtext(v_job_name));
RETURN;
END IF;
END IF;
END IF;
v_step_id := add_step(v_job_id,'Building SQL');
-- determine column list, column type list
IF v_filter IS NULL THEN
SELECT array_to_string(array_agg(attname),','), array_to_string(array_agg(attname||' '||format_type(atttypid, atttypmod)::text),',')
INTO v_cols, v_cols_n_types
FROM pg_attribute WHERE attrelid = p_destination::regclass AND attnum > 0 AND attisdropped is false;
ELSE
-- ensure all primary key columns are included in any column filters
FOREACH v_field IN ARRAY v_pk_name LOOP
IF v_field = ANY(v_filter) THEN
CONTINUE;
ELSE
RAISE EXCEPTION 'ERROR: filter list did not contain all columns that compose primary/unique key for %',v_job_name;
END IF;
END LOOP;
SELECT array_to_string(array_agg(attname),','), array_to_string(array_agg(attname||' '||format_type(atttypid, atttypmod)::text),',')
INTO v_cols, v_cols_n_types
FROM pg_attribute WHERE attrelid = p_destination::regclass AND ARRAY[attname::text] <@ v_filter AND attnum > 0 AND attisdropped is false;
END IF;
PERFORM dblink_connect(v_dblink_name, auth(v_dblink));
IF p_limit IS NOT NULL THEN
v_limit := p_limit;
END IF;
-- Repull old data instead of normal new data pull
IF p_repull THEN
-- Repull ALL data if no start and end values set
IF p_repull_start IS NULL AND p_repull_end IS NULL THEN
PERFORM update_step(v_step_id, 'OK','Request to repull ALL data from source. This could take a while...');
EXECUTE 'TRUNCATE '||v_dest_table;
v_remote_sql := 'SELECT '||v_cols||' FROM '||v_source_table;
IF v_condition IS NOT NULL THEN
v_remote_sql := v_remote_sql || ' ' || v_condition;
END IF;
ELSE
PERFORM update_step(v_step_id, 'OK','Request to repull data from '||p_repull_start||' to '||p_repull_end);
PERFORM gdb(p_debug,'Request to repull data from '||p_repull_start||' to '||p_repull_end);
v_remote_sql := 'SELECT '||v_cols||' FROM '||v_source_table;
IF v_condition IS NOT NULL THEN
v_remote_sql := v_remote_sql || ' ' || v_condition || ' AND ';
ELSE
v_remote_sql := v_remote_sql || ' WHERE ';
END IF;
v_remote_sql := v_remote_sql ||v_control||' > '||quote_literal(COALESCE(p_repull_start, '-infinity'))||' AND '
||v_control||' < '||quote_literal(COALESCE(p_repull_end, 'infinity'));
EXECUTE 'DELETE FROM '||v_dest_table||' WHERE '||v_control||' > '||quote_literal(COALESCE(p_repull_start, '-infinity'))||' AND '
||v_control||' < '||quote_literal(COALESCE(p_repull_end, 'infinity'));
END IF;
ELSE
-- does < for upper boundary to keep missing data from happening on rare edge case where a newly inserted row outside the transaction batch
-- has the exact same timestamp as the previous batch's max timestamp
v_remote_sql := 'SELECT '||v_cols||' FROM '||v_source_table;
IF v_condition IS NOT NULL THEN
v_remote_sql := v_remote_sql || ' ' || v_condition || ' AND ';
ELSE
v_remote_sql := v_remote_sql || ' WHERE ';
END IF;
v_remote_sql := v_remote_sql ||v_control||' > '||quote_literal(v_last_value)||' AND '||v_control||' < '||quote_literal(v_boundary)||' ORDER BY '||v_control||' ASC LIMIT '|| COALESCE(v_limit::text, 'ALL');
v_delete_sql := 'DELETE FROM '||v_dest_table||' USING '||v_tmp_table||' t WHERE ';
WHILE v_pk_counter <= array_length(v_pk_name,1) LOOP
IF v_pk_counter > 1 THEN
v_delete_sql := v_delete_sql ||' AND ';
END IF;
v_delete_sql := v_delete_sql ||v_dest_table||'.'||v_pk_name[v_pk_counter]||' = t.'||v_pk_name[v_pk_counter];
v_pk_counter := v_pk_counter + 1;
END LOOP;
PERFORM update_step(v_step_id, 'OK','Grabbing rows from '||v_last_value::text||' to '||v_boundary::text);
PERFORM gdb(p_debug,'Grabbing rows from '||v_last_value::text||' to '||v_boundary::text);
END IF;
v_insert_sql := 'INSERT INTO '||v_dest_table||' ('||v_cols||') SELECT '||v_cols||' FROM '||v_tmp_table;
PERFORM gdb(p_debug,v_remote_sql);
PERFORM dblink_open(v_dblink_name, 'mimeo_cursor', v_remote_sql);
v_step_id := add_step(v_job_id, 'Inserting new/updated records into local table');
v_rowcount := 0;
EXECUTE 'CREATE TEMP TABLE '||v_tmp_table||' ('||v_cols_n_types||')';
LOOP
v_fetch_sql := 'INSERT INTO '||v_tmp_table||'('||v_cols||')
SELECT '||v_cols||' FROM dblink_fetch('||quote_literal(v_dblink_name)||', ''mimeo_cursor'', 50000) AS ('||v_cols_n_types||')';
EXECUTE v_fetch_sql;
GET DIAGNOSTICS v_rowcount = ROW_COUNT;
v_total := v_total + coalesce(v_rowcount, 0);
EXECUTE 'SELECT max('||v_control||') FROM '||v_tmp_table INTO v_last_fetched;
IF v_limit IS NULL THEN -- insert into the real table in batches if no limit to avoid excessively large temp tables
IF p_repull IS FALSE THEN -- Delete any rows that exist in the current temp table batch. repull delete is done above.
EXECUTE v_delete_sql;
END IF;
EXECUTE v_insert_sql;
EXECUTE 'TRUNCATE '||v_tmp_table;
END IF;
EXIT WHEN v_rowcount = 0;
PERFORM gdb(p_debug,'Fetching rows in batches: '||v_total||' done so far. Last fetched: '||v_last_fetched);
PERFORM update_step(v_step_id, 'PENDING', 'Fetching rows in batches: '||v_total||' done so far. Last fetched: '||v_last_fetched);
END LOOP;
PERFORM dblink_close(v_dblink_name, 'mimeo_cursor');
PERFORM update_step(v_step_id, 'OK','Rows fetched: '||v_total);
IF v_limit IS NULL THEN
-- nothing else to do
ELSE
-- When using batch limits, entire batch must be pulled to temp table before inserting to real table to catch edge cases
v_step_id := add_step(v_job_id,'Checking for batch limit issues');
-- Not recommended that the batch actually equal the limit set if possible.
IF v_total >= v_limit THEN
PERFORM update_step(v_step_id, 'WARNING','Row count fetched equal to or greater than limit set: '||v_limit||'. Recommend increasing batch limit if possible.');
PERFORM gdb(p_debug, 'Row count fetched equal to or greater than limit set: '||v_limit||'. Recommend increasing batch limit if possible.');
EXECUTE 'SELECT max('||v_control||') FROM '||v_tmp_table INTO v_last_value;
v_step_id := add_step(v_job_id, 'Removing high boundary rows from this batch to avoid missing data');
EXECUTE 'DELETE FROM '||v_tmp_table||' WHERE '||v_control||' = '||quote_literal(v_last_value);
GET DIAGNOSTICS v_rowcount = ROW_COUNT;
PERFORM update_step(v_step_id, 'OK', 'Removed '||v_rowcount||' rows. Batch now contains '||v_limit - v_rowcount||' records');
PERFORM gdb(p_debug, 'Removed '||v_rowcount||' rows from batch. Batch table now contains '||v_limit - v_rowcount||' records');
v_batch_limit_reached := 2;
IF (v_limit - v_rowcount) < 1 THEN
v_step_id := add_step(v_job_id, 'Reached inconsistent state');
PERFORM update_step(v_step_id, 'CRITICAL', 'Batch contained max rows ('||v_limit||') or greater and all contained the same timestamp value. Unable to guarentee rows will ever be replicated consistently. Increase row limit parameter to allow a consistent batch.');
PERFORM gdb(p_debug, 'Batch contained max rows ('||v_limit||') or greater and all contained the same timestamp value. Unable to guarentee rows will be replicated consistently. Increase row limit parameter to allow a consistent batch.');
v_batch_limit_reached := 3;
END IF;
ELSE
PERFORM update_step(v_step_id, 'OK','No issues found');
PERFORM gdb(p_debug, 'No issues found');
END IF;
IF v_batch_limit_reached <> 3 THEN
EXECUTE 'CREATE INDEX ON '||v_tmp_table||' ('||array_to_string(v_pk_name, ',')||')'; -- incase of large batch limit
EXECUTE 'ANALYZE '||v_tmp_table;
v_step_id := add_step(v_job_id,'Deleting records marked for update in local table');
perform gdb(p_debug,v_delete_sql);
execute v_delete_sql;
GET DIAGNOSTICS v_rowcount = ROW_COUNT;
PERFORM update_step(v_step_id, 'OK','Deleted '||v_rowcount||' records');
v_step_id := add_step(v_job_id,'Inserting new records into local table');
perform gdb(p_debug,v_insert_sql);
EXECUTE v_insert_sql;
GET DIAGNOSTICS v_rowcount = ROW_COUNT;
PERFORM update_step(v_step_id, 'OK','Inserted '||v_rowcount||' records');
END IF;
END IF; -- end v_limit IF
IF v_batch_limit_reached <> 3 THEN
v_step_id := add_step(v_job_id, 'Setting next lower boundary');
EXECUTE 'SELECT max('||v_control||') FROM '|| v_dest_table INTO v_last_value;
UPDATE refresh_config_updater set last_value = coalesce(v_last_value, CURRENT_TIMESTAMP), last_run = CURRENT_TIMESTAMP WHERE dest_table = p_destination;
PERFORM update_step(v_step_id, 'OK','Lower boundary value is: '||coalesce(v_last_value, CURRENT_TIMESTAMP));
PERFORM gdb(p_debug, 'Lower boundary value is: '||coalesce(v_last_value, CURRENT_TIMESTAMP));
END IF;
EXECUTE 'DROP TABLE IF EXISTS '||v_tmp_table;
PERFORM dblink_disconnect(v_dblink_name);
IF v_batch_limit_reached = 0 THEN
PERFORM close_job(v_job_id);
ELSIF v_batch_limit_reached = 2 THEN
-- Set final job status to level 2 (WARNING) to bring notice that the batch limit was reached and may need adjusting.
-- Preventive warning to keep replication from falling behind.
PERFORM fail_job(v_job_id, 2);
ELSIF v_batch_limit_reached = 3 THEN
-- Really bad. Critical alert!
PERFORM fail_job(v_job_id);
END IF;
-- Ensure old search path is reset for the current session
EXECUTE 'SELECT set_config(''search_path'','''||v_old_search_path||''',''false'')';
PERFORM pg_advisory_unlock(hashtext('refresh_updater'), hashtext(v_job_name));
EXCEPTION
WHEN QUERY_CANCELED THEN
PERFORM pg_advisory_unlock(hashtext('refresh_updater'), hashtext(v_job_name));
EXECUTE 'SELECT set_config(''search_path'',''@extschema@,'||v_jobmon_schema||','||v_dblink_schema||''',''false'')';
IF dblink_get_connections() @> ARRAY[v_dblink_name] THEN
PERFORM dblink_disconnect(v_dblink_name);
END IF;
EXECUTE 'SELECT set_config(''search_path'','''||v_old_search_path||''',''false'')';
RAISE EXCEPTION '%', SQLERRM;
WHEN OTHERS THEN
EXECUTE 'SELECT set_config(''search_path'',''@extschema@,'||v_jobmon_schema||','||v_dblink_schema||''',''false'')';
IF v_job_id IS NULL THEN
v_job_id := add_job('Refresh Updater: '||p_destination);
v_step_id := add_step(v_job_id, 'EXCEPTION before job logging started');
END IF;
IF v_step_id IS NULL THEN
v_step_id := add_step(v_job_id, 'EXCEPTION before first step logged');
END IF;
IF dblink_get_connections() @> ARRAY[v_dblink_name] THEN
PERFORM dblink_disconnect(v_dblink_name);
END IF;
PERFORM update_step(v_step_id, 'CRITICAL', 'ERROR: '||coalesce(SQLERRM,'unknown'));
PERFORM fail_job(v_job_id);
EXECUTE 'SELECT set_config(''search_path'','''||v_old_search_path||''',''false'')';
PERFORM pg_advisory_unlock(hashtext('refresh_updater'), hashtext(v_job_name));
RAISE EXCEPTION '%', SQLERRM;
END
$$;
|
<reponame>Zhaojia2019/cubrid-testcases
autocommit off;
insert into employees_v (ssn, name, dept_no)
values (1000000, select salary from employee_c, 1000);
rollback;
|
CREATE INDEX TAG_IDX ON DRONES (TAG);
CREATE INDEX CREATED_IDX ON DRONES (CREATED);
CREATE INDEX UPDATED_IDX ON DRONES (UPDATED);
CREATE INDEX OWNER_IDX ON DRONES (OWNER); |
CREATE TABLE `sap_profit_center_text_data`
(
`Language` varchar(2) NOT NULL,
`ProfitCenterName` varchar(20) NOT NULL,
`ControllingArea` varchar(4) DEFAULT NULL,
`ProfitCenter` varchar(10) DEFAULT NULL,
`ValidityEndDate` varchar(80) DEFAULT NULL,
`ValidityStartDate` varchar(80) DEFAULT NULL,
`ProfitCenterName` varchar(20) DEFAULT NULL,
`ProfitCenterLongName` varchar(40) DEFAULT NULL,
PRIMARY KEY (`Language`, `ProfitCenterName`)
CONSTRAINT `SAPProfitCenterTextData_fk` FOREIGN KEY (`ProfitCenter`) REFERENCES `sap_profit_center_header_data` (`ProfitCenter`)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4;
|
ALTER TABLE node MODIFY (
password_entid NOT NULL
);
ALTER TABLE resource_secrets MODIFY (
secrets_entid NOT NULL
);
ALTER TABLE node DROP COLUMN deployuser_entid;
ALTER TABLE resource_secrets DROP COLUMN iv;
ALTER TABLE resource_secrets DROP COLUMN keyid;
ALTER TABLE resource_secrets DROP COLUMN secret;
ALTER TABLE secret DROP COLUMN tmplogin_entid;
ALTER TABLE secret DROP COLUMN tmpresource_endid;
ALTER TABLE secret DROP COLUMN tmpresourcekey;
DROP TABLE resource_logins;
DROP TABLE login_application;
DROP TABLE login;
|
<gh_stars>0
CREATE TABLE [dbo].[Transaction]
(
[Id] BIGINT NOT NULL PRIMARY KEY IDENTITY,
[CreatedAt] DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
[UpdatedAt] DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
[CompletedAt] DATETIME DEFAULT NULL,
[DesiredCompletionDate] DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
[ReferenceId] VARCHAR(100) NOT NULL,
[Amount] DECIMAL(19,2) NOT NULL,
[IsIncome] BIT NOT NULL,
[IsCompleted] BIT NOT NULL DEFAULT 0,
[IsActive] BIT NOT NULL DEFAULT 1,
[ActionId] INT NOT NULL,
[FromAccountId] BIGINT DEFAULT NULL,
[ToAccountId] BIGINT DEFAULT NULL,
CONSTRAINT [FK_Transaction_TransactionsAction] FOREIGN KEY ([ActionId]) REFERENCES [TransactionAction]([Id]),
CONSTRAINT [FK_Transaction_Account_From] FOREIGN KEY ([FromAccountId]) REFERENCES [Account]([Id]),
CONSTRAINT [FK_Transaction_Account_To] FOREIGN KEY ([ToAccountId]) REFERENCES [Account]([Id]),
CONSTRAINT UQ_Transaction_ReferenceId UNIQUE ([ReferenceId]),
)
GO
|
<gh_stars>0
-- the following query is the same as:
-- If t2 is empty, every row in t1, with nulls
-- Else (t1 cross t2) left t3 on t1.c1 = t2.c1 and t1.c2 = t3.c2
select * from t1 left join t2 on true left join t3 on t1.c1 = t2.c1 and t1.c2 = t3.c2
|
<reponame>SherryLyu/462-footballticketingsystem
TRUNCATE TABLE Game;
INSERT INTO Game (GId,Home,Away,Date,Time,Stadium,Picture) VALUES (1,'Clemson','Kent State',2017-09-02,12:00:00,'Memorial Stadium, Clemson','01-kvsc'),(2,'Clemson','Auburn',2017-09-09,19:00:00,'Memorial Stadium, Clemson','02-avsc'),(3,'Louisville','Clemson',2017-09-16,20:00:00,'Papa John\'s Cardinal Stadium, Louisville','03-lvsc'),(4,'Clemson','Boston College',2017-09-23,15:30:00,'Memorial Stadium, Clemson','04-bvsc'),(5,'Virginia Tech','Clemson',2017-09-30,20:00:00,'Lane Stadium, Blacksburg','05-vvsc'),(6,'Clemson','Wake Forest',2017-10-07,12:00:00,'Memorial Stadium, Clemson','06-wvsc'),(7,'Syracuse','Clemson',2017-10-13,19:00:00,'Carrier Dome, Syracuse','07-svsc'),(8,'Clemson','Georgia Tech',2017-10-28,20:00:00,'Memorial Stadium, Clemson','08-gvsc'),(9,'NC State','Clemson',2017-11-04,15:30:00,'Carter-Finley, Raleigh','09-nvsc'),(10,'Clemson','Florida State',2017-11-11,15:30:00,'Memorial Stadium, Clemson','10-fvsc'),(11,'Clemson','Citadel',2017-11-18,12:20:00,'Memorial Stadium, Clemson','11-cvsc'),(12,'South Carolina','Clemson',2017-11-25,19:30:00,'Williams-Brice Stadium, Columbia','12-scvsc'); |
<filename>databasenana/smatrikc_itscupang2021_ (1).sql
-- phpMyAdmin SQL Dump
-- version 4.9.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Apr 02, 2021 at 01:01 PM
-- Server version: 10.3.28-MariaDB
-- PHP Version: 7.3.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `smatrikc_itscupang2021!`
--
-- --------------------------------------------------------
--
-- Table structure for table `m_city`
--
CREATE TABLE `m_city` (
`idcity` int(11) NOT NULL,
`city` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
--
-- Dumping data for table `m_city`
--
INSERT INTO `m_city` (`idcity`, `city`) VALUES
(10, 'ACEH BARAT'),
(15, 'KABUPATEN ACEH BARAT DAYA'),
(11, 'KABUPATEN ACEH BESAR'),
(19, 'KABUPATEN ACEH JAYA'),
(6, 'KABUPATEN ACEH SELATAN'),
(5, 'KABUPATEN ACEH SINGKIL'),
(17, 'KABUPATEN ACEH TAMIANG'),
(9, 'KABUPATEN ACEH TENGAH'),
(7, 'KABUPATEN ACEH TENGGARA'),
(8, 'KABUPATEN ACEH TIMUR'),
(14, 'KABUPATEN ACEH UTARA'),
(66, 'KABUPATEN AGAM'),
(302, 'KABUPATEN ALOR'),
(34, 'KABUPATEN ASAHAN'),
(500, 'KABUPATEN ASMAT'),
(279, 'KABUPAT<NAME>UNG'),
(356, 'KABUPATEN BALANGAN'),
(167, 'KABUPATEN BANDUNG'),
(180, 'KABUPATEN BANDUNG BARAT'),
(390, 'KABUPATEN BANGGAI'),
(389, 'KABUPATEN BANGGAI KEPULAUAN'),
(399, 'KABUPATEN BANGGAI LAUT'),
(144, 'KABUPATEN BANGKA'),
(146, 'KABUPATEN BANGKA BARAT'),
(148, 'KABUPATEN BANGKA SELATAN'),
(147, 'KABUPATEN BANGKA TENGAH'),
(256, 'KABUPATEN BANGKALAN'),
(282, 'KABUPATEN BANGLI'),
(348, 'KABUPATEN BANJAR'),
(194, 'KABUPATEN BANJARNEGARA'),
(404, 'KABUPATEN BANTAENG'),
(227, '<NAME>'),
(108, 'KABUPATEN BANYU ASIN'),
(192, 'KABUPATEN BANYUMAS'),
(240, 'KABUPATEN BANYUWANGI'),
(349, 'KABUPATEN BARITO KUALA'),
(335, 'KABUPATEN BARITO SELATAN'),
(343, 'KABUPATEN BARITO TIMUR'),
(336, 'KABUPATEN BARITO UTARA'),
(411, 'KABUPATEN BARRU'),
(215, '<NAME>'),
(94, 'KABUPATEN BATANG HARI'),
(45, 'KABUPATEN BATU BARA'),
(179, '<NAME>'),
(145, '<NAME>'),
(149, '<NAME>'),
(301, '<NAME>U'),
(20, 'KABUPATEN BENER MERIAH'),
(86, 'KABUPATEN BENGKALIS'),
(319, 'KABUPATEN BENGKAYANG'),
(119, 'KABUPATEN BENGKULU SELATAN'),
(127, 'KABUPATEN BENGKULU TENGAH'),
(121, 'KABUPATEN BENGKULU UTARA'),
(363, '<NAME>'),
(494, 'KABUPATEN BI<NAME>FOR'),
(291, '<NAME>'),
(152, '<NAME>'),
(13, '<NAME>'),
(235, '<NAME>'),
(206, '<NAME>'),
(443, '<NAME>'),
(164, '<NAME>'),
(252, '<NAME>'),
(374, 'KABUPATEN BOLAANG MONGONDOW'),
(383, 'KABUPATEN BOLAANG MONGONDOW SELATAN'),
(384, 'KABUPATEN BOLAANG MONGONDOW TIMUR'),
(380, 'KABUPATEN BOLAANG MONGONDOW UTARA'),
(431, 'KABUPATEN BOMBANA'),
(241, 'KABUPATEN BONDOWOSO'),
(412, '<NAME>'),
(446, '<NAME>'),
(498, '<NAME>'),
(199, '<NAME>'),
(219, '<NAME>'),
(284, '<NAME>'),
(403, '<NAME>'),
(370, '<NAME>'),
(99, '<NAME>'),
(395, '<NAME>'),
(458, '<NAME>'),
(463, 'KABUPATEN BURU SELATAN'),
(426, 'KABUPATEN BUTON'),
(440, 'KABUPATEN BUTON SELATAN'),
(439, 'KABUPATEN BUTON TENGAH'),
(434, 'KABUPATEN BUTON UTARA'),
(170, '<NAME>'),
(166, '<NAME>'),
(191, '<NAME>'),
(172, '<NAME>'),
(36, '<NAME>'),
(516, '<NAME>'),
(38, '<NAME>'),
(211, '<NAME>'),
(70, '<NAME>'),
(514, '<NAME>'),
(290, '<NAME>'),
(393, '<NAME>'),
(112, 'KABUPATEN EMP<NAME>'),
(306, 'KABUPATEN ENDE'),
(417, '<NAME>'),
(476, '<NAME>'),
(304, '<NAME>'),
(168, '<NAME>'),
(16, '<NAME>'),
(280, '<NAME>'),
(444, '<NAME>'),
(447, '<NAME>'),
(407, '<NAME>'),
(255, '<NAME>'),
(205, '<NAME>'),
(228, '<NAME>'),
(342, '<NAME>'),
(466, '<NAME>'),
(469, '<NAME>'),
(467, '<NAME>'),
(471, '<NAME>'),
(470, '<NAME>'),
(351, '<NAME>'),
(352, '<NAME>'),
(353, '<NAME>'),
(41, '<NAME>'),
(81, '<NAME>'),
(80, '<NAME>'),
(175, '<NAME>'),
(515, 'KABUPATEN INTAN JAYA'),
(491, '<NAME>'),
(490, 'KABUPATEN JAYAWIJAYA'),
(239, '<NAME>'),
(277, '<NAME>'),
(405, '<NAME>'),
(210, '<NAME>'),
(247, '<NAME>'),
(477, '<NAME>'),
(84, '<NAME>'),
(334, '<NAME>'),
(325, '<NAME>'),
(283, '<NAME>'),
(203, '<NAME>'),
(178, '<NAME>'),
(151, '<NAME>'),
(37, '<NAME>'),
(340, '<NAME>'),
(122, '<NAME>'),
(328, '<NAME>'),
(195, '<NAME>'),
(236, '<NAME>'),
(505, '<NAME>'),
(214, '<NAME>'),
(126, '<NAME>'),
(155, 'KABUPATEN KEPULAUAN ANAMBAS'),
(459, 'KABUPATEN KEPULAU<NAME>'),
(60, 'KABUPATEN KEPULAUAN MENTAWAI'),
(88, 'KABUPATEN KEPULAUAN MERANTI'),
(376, 'KABUPATEN KEPULAUAN SANGIHE'),
(402, 'KABUPATEN KEPULAUAN SELAYAR'),
(158, 'KABUPATEN KEPULAUAN SERIBU'),
(468, 'KABUPATEN KEPULAUAN SULA'),
(377, 'KABUPATEN KEPULAUAN TALAUD'),
(493, 'KABUPATEN KEPULAUAN YAPEN'),
(91, 'KABUPATEN KERINCI'),
(323, 'KABUPATEN KETAPANG'),
(200, 'KABUPATEN KLATEN'),
(281, 'KABUPATEN KLUNGKUNG'),
(429, 'KABUPATEN KOLAKA'),
(436, 'KABUPATEN KOLAKA TIMUR'),
(433, 'KABUPATEN KOLAKA UTARA'),
(428, 'KABUPATEN KONAWE'),
(437, 'KABUPATEN KONAWE KEPULAUAN'),
(430, 'KABUPATEN KONAWE SELATAN'),
(435, 'KABUPATEN KONAWE UTARA'),
(347, 'KABUPATEN KOTA BARU'),
(332, 'KABUPATEN KOTAWARINGIN BARAT'),
(333, 'KABUPATEN KOTAWARINGIN TIMUR'),
(79, 'KABUPATEN KUANTAN SINGINGI'),
(329, 'KABUPATEN KUBU RAYA'),
(209, 'KABUPATEN KUDUS'),
(226, 'KABUPATEN KULON PROGO'),
(171, 'KABUPATEN KUNINGAN'),
(298, 'KABUPATEN KUPANG'),
(360, 'KABUPATEN KUTAI BARAT'),
(361, 'KABUPATEN KUTAI KARTANEGARA'),
(362, 'KABUPATEN KUTAI TIMUR'),
(33, 'KABUPATEN LABUHAN BATU'),
(48, 'KABUPATEN LABUHAN BATU SELATAN'),
(49, 'KABUPATEN LABUHAN BATU UTARA'),
(105, '<NAME>'),
(338, '<NAME>'),
(254, '<NAME>'),
(129, 'KABUPATEN LAMPUNG BARAT'),
(131, 'KABUPATEN LAMPUNG SELATAN'),
(133, 'KABUPATEN LAMPUNG TENGAH'),
(132, 'KABUPATEN LAMPUNG TIMUR'),
(134, 'KABUPATEN LAMPUNG UTARA'),
(320, 'KABUPATEN LANDAK'),
(39, 'KABUPATEN LANGKAT'),
(510, '<NAME> JAYA'),
(270, '<NAME>K'),
(125, '<NAME>ONG'),
(303, 'KABUPATEN LEMBATA'),
(67, 'KABUPATEN LIMA PULUH KOTA'),
(154, 'KABUPATEN LINGGA'),
(286, 'KABUPATEN LOMBOK BARAT'),
(287, 'KABUPATEN LOMBOK TENGAH'),
(288, 'KABUPATEN LOMBOK TIMUR'),
(293, 'KABUPATEN LOMBOK UTARA'),
(238, 'KABUPATEN LUMAJANG'),
(418, 'KABUPATEN LUWU'),
(421, 'KABUPATEN LUWU TIMUR'),
(420, 'KABUPATEN LUWU UTARA'),
(249, '<NAME>UN'),
(198, 'KABUPATEN MAGELANG'),
(250, 'KABUPATEN MAGETAN'),
(365, '<NAME>'),
(173, '<NAME>'),
(449, '<NAME>'),
(316, '<NAME>'),
(237, '<NAME>'),
(369, '<NAME>'),
(462, '<NAME>A'),
(457, '<NAME>'),
(456, '<NAME>'),
(455, '<NAME>AT'),
(451, '<NAME>'),
(508, '<NAME>'),
(511, '<NAME>'),
(452, '<NAME>'),
(454, '<NAME>'),
(453, '<NAME>'),
(28, '<NAME>'),
(308, '<NAME>'),
(310, '<NAME>'),
(314, '<NAME>'),
(480, '<NAME>'),
(486, '<NAME>'),
(499, '<NAME>'),
(409, '<NAME>'),
(485, '<NAME>'),
(327, '<NAME>'),
(321, '<NAME>'),
(92, '<NAME>'),
(489, '<NAME>'),
(139, '<NAME>'),
(497, '<NAME>'),
(375, '<NAME>'),
(378, '<NAME>'),
(382, '<NAME>'),
(379, 'KABUPATEN MIN<NAME>ARA'),
(246, '<NAME>'),
(391, '<NAME>'),
(400, '<NAME>ARA'),
(104, '<NAME>'),
(95, '<NAME>'),
(124, '<NAME>'),
(427, '<NAME>'),
(438, '<NAME>'),
(344, '<NAME>'),
(107, '<NAME>'),
(106, '<NAME>'),
(114, '<NAME>ARA'),
(492, '<NAME>'),
(18, '<NAME>'),
(313, '<NAME>'),
(153, '<NAME>'),
(509, '<NAME>'),
(307, '<NAME>'),
(248, '<NAME>'),
(251, '<NAME>'),
(27, '<NAME>'),
(51, '<NAME>'),
(40, 'KABUPATEN NIAS SELATAN'),
(50, 'KABUPATEN NIAS UTARA'),
(372, '<NAME>'),
(111, '<NAME>'),
(103, 'KABUPATEN O<NAME>'),
(102, 'KABUPATEN OGAN KOMERING ULU'),
(109, 'KABUPATEN OGAN KOMERING ULU SELATAN'),
(110, 'KABUPATEN OGAN KOMERING ULU TIMUR'),
(231, '<NAME>'),
(47, 'KABUPATEN PADANG LAWAS'),
(46, 'KABUPATEN PADANG LAWAS UTARA'),
(65, 'KABUPATEN PADANG PARIAMAN'),
(42, '<NAME>'),
(258, '<NAME>'),
(269, 'KABUPATEN PANDEGLANG'),
(181, '<NAME>ANGANDARAN'),
(410, 'KABUPATEN PANGKAJENE DAN KEPULAUAN'),
(495, '<NAME>AI'),
(396, '<NAME>'),
(68, '<NAME>'),
(71, 'KABUPATEN PASAMAN BARAT'),
(359, '<NAME>'),
(244, '<NAME>'),
(208, '<NAME>'),
(487, 'KABUPATEN PEGUNUNGAN ARFAK'),
(502, 'KABUPATEN PEGUNUNGAN BINTANG'),
(216, 'KABUPATEN PEKALONGAN'),
(82, 'KABUPATEN PELALAWAN'),
(217, 'KABUP<NAME>'),
(364, '<NAME>'),
(113, '<NAME>'),
(137, '<NAME>'),
(141, '<NAME>'),
(61, '<NAME>'),
(12, '<NAME>'),
(21, '<NAME>'),
(416, '<NAME>'),
(445, '<NAME>'),
(450, '<NAME>'),
(232, '<NAME>'),
(392, '<NAME>'),
(138, '<NAME>'),
(243, '<NAME>'),
(341, '<NAME>'),
(472, '<NAME>'),
(473, '<NAME>'),
(513, '<NAME>'),
(496, '<NAME>'),
(193, '<NAME>'),
(177, '<NAME>'),
(196, '<NAME>'),
(483, '<NAME>'),
(120, '<NAME>'),
(207, '<NAME>'),
(87, '<NAME>'),
(85, '<NAME>'),
(309, '<NAME>'),
(83, '<NAME>'),
(315, '<NAME>'),
(318, '<NAME>'),
(43, '<NAME>'),
(257, '<NAME>'),
(322, '<NAME>'),
(504, '<NAME>'),
(93, '<NAME>'),
(326, '<NAME>'),
(123, '<NAME>'),
(212, '<NAME>'),
(460, '<NAME>'),
(461, '<NAME>'),
(272, '<NAME>'),
(44, '<NAME>'),
(339, '<NAME>'),
(381, '<NAME>'),
(415, '<NAME>'),
(245, '<NAME>'),
(398, '<NAME>'),
(63, '<NAME>'),
(305, '<NAME>'),
(35, '<NAME>'),
(4, '<NAME>'),
(408, '<NAME>'),
(324, '<NAME>'),
(242, '<NAME>'),
(229, '<NAME>'),
(62, '<NAME>'),
(69, '<NAME> SELATAN'),
(413, 'KABUPATEN SOPPENG'),
(482, 'KABUPATEN SORONG'),
(481, 'KABUPATEN SORONG SELATAN'),
(204, 'KABUPATEN SRAGEN'),
(176, 'KABUPATEN SUBANG'),
(165, 'KABUPATEN SUKABUMI'),
(337, 'KABUPATEN SUKAMARA'),
(201, 'KABUPATEN SUKOHARJO'),
(296, 'KABUPATEN SUMBA BARAT'),
(312, 'KABUPATEN SUMBA BARAT DAYA'),
(311, 'KABUPATEN SUMBA TENGAH'),
(297, 'KABUPATEN SUMBA TIMUR'),
(289, 'KABUPATEN SUMBAWA'),
(292, 'KABUPATEN SUMBAWA BARAT'),
(174, 'KABUPATEN SUMEDANG'),
(259, 'KABUPATEN SUMENEP'),
(507, 'KABUPATEN SUPIORI'),
(354, 'KABUPATEN TABALONG'),
(278, 'KABUPATEN TABANAN'),
(406, 'KABUPATEN TAKALAR'),
(484, 'KABUPATEN TAMBRAUW'),
(371, 'KABUPATEN TANA TIDUNG'),
(419, 'KABUPATEN TANA TORAJA'),
(355, 'KABUPATEN TANAH BUMBU'),
(64, 'KABUPATEN TANAH DATAR'),
(346, 'KABUPATEN TANAH LAUT'),
(271, 'KABUPATEN TANGERANG'),
(130, 'KABUPATEN TANGGAMUS'),
(97, 'KABUPATEN TANJUNG JABUNG BARAT'),
(96, 'KABUPATEN TANJUNG JABUNG TIMUR'),
(29, 'KABUPATEN TAPANULI SELATAN'),
(30, 'KABUPATEN TAPANULI TENGAH'),
(31, 'KABUPATEN TAPANULI UTARA'),
(350, 'KABUPATEN TAPIN'),
(169, 'KABUPATEN TASIKMALAYA'),
(98, 'KABUPATEN TEBO'),
(218, 'KABUPATEN TEGAL'),
(479, 'KABUPATEN TELUK BINTUNI'),
(478, 'KABUPATEN TELUK WONDAMA'),
(213, 'KABUPATEN TEMANGGUNG'),
(299, 'KABUPATEN TIMOR TENGAH SELATAN'),
(300, 'KABUPATEN TIMOR TENGAH UTARA'),
(32, 'KABUPATEN TOBA SAMOSIR'),
(397, 'KABUPATEN TOJO UNA-UNA'),
(394, 'KABUPATEN TOLI-TOLI'),
(503, 'KABUPATEN TOLIKARA'),
(422, 'KABUPATEN TORAJA UTARA'),
(233, 'KABUPATEN TRENGGALEK'),
(253, 'KABUPATEN TUBAN'),
(140, 'KABUPATEN TULANG BAWANG BARAT'),
(136, 'KABUPATEN TULANGBAWANG'),
(234, 'KABUPATEN TULUNGAGUNG'),
(414, 'KABUPATEN WAJO'),
(432, 'KABUPATEN WAKATOBI'),
(506, 'KABUPATEN WAROPEN'),
(135, 'KABUPATEN WAY KANAN'),
(202, 'KABUPATEN WONOGIRI'),
(197, '<NAME>'),
(501, 'K<NAME>'),
(512, 'KABUPAT<NAME>'),
(464, 'KOTA AMBON'),
(156, 'KOTA B A T A M'),
(366, 'KOTA BALIKPAPAN'),
(22, 'KOTA BANDA ACEH'),
(142, 'KOTA BANDAR LAMPUNG'),
(184, 'KOTA BANDUNG'),
(190, 'KOTA BANJAR'),
(358, 'KOTA BANJAR BARU'),
(357, 'KOTA BANJARMASIN'),
(268, 'KOTA BATU'),
(442, 'KOTA BAUBAU'),
(186, 'KOTA BEKASI'),
(128, 'KOTA BENGKULU'),
(295, 'KOTA BIMA'),
(57, 'KOTA BINJAI'),
(386, 'KOTA BITUNG'),
(261, 'KOTA BLITAR'),
(182, 'KOTA BOGOR'),
(368, 'KOTA BONTANG'),
(76, 'KOTA BUKITTINGGI'),
(274, 'KOTA CILEGON'),
(188, 'KOTA CIMAHI'),
(185, 'KOTA CIREBON'),
(90, 'KOTA D U M A I'),
(285, 'KOTA DENPASAR'),
(187, 'KOTA DEPOK'),
(448, 'KOTA GORONTALO'),
(59, 'KOTA GUNUNGSITOLI'),
(162, 'KOTA JAKARTA BARAT'),
(161, 'KOTA JAKARTA PUSAT'),
(159, 'KOTA JAKARTA SELATAN'),
(160, 'KOTA JAKARTA TIMUR'),
(163, 'KOTA JAKARTA UTARA'),
(100, 'KOTA JAMBI'),
(517, 'KOTA JAYAPURA'),
(260, 'KOTA KEDIRI'),
(441, 'KOTA KENDARI'),
(388, 'KOTA KOTAMOBAGU'),
(317, 'KOTA KUPANG'),
(24, 'KOTA LANGSA'),
(25, 'KOTA LHOKSEUMAWE'),
(118, 'KOTA LUBUKLINGGAU'),
(266, 'KOTA MADIUN'),
(220, 'KOTA MAGELANG'),
(423, 'KOTA MAKASSAR'),
(262, 'KOTA MALANG'),
(385, 'KOTA MANADO'),
(294, 'KOTA MATARAM'),
(56, 'KOTA MEDAN'),
(143, 'KOTA METRO'),
(265, 'KOTA MOJOKERTO'),
(72, 'KOTA PADANG'),
(75, 'KOTA PADANG PANJANG'),
(58, 'KOTA PADANGSIDIMPUAN'),
(117, 'KOTA PAGAR ALAM'),
(345, 'KOTA PALANGKA RAYA'),
(115, 'KOTA PALEMBANG'),
(425, 'KOTA PALOPO'),
(401, 'KOTA PALU'),
(150, 'KOTA PANGKAL PINANG'),
(424, 'KOTA PAREPARE'),
(78, 'KOTA PARIAMAN'),
(264, 'KOTA PASURUAN'),
(77, 'KOTA PAYAKUMBUH'),
(224, 'KOTA PEKALONGAN'),
(89, 'KOTA PEKANBARU'),
(54, 'KOTA PEMATANG SIANTAR'),
(330, 'KOTA PONTIANAK'),
(116, 'KOTA PRABUMULIH'),
(263, 'KOTA PROBOLINGGO'),
(23, 'KOTA SABANG'),
(222, 'KOTA SALATIGA'),
(367, 'KOTA SAMARINDA'),
(74, 'KOTA SAWAH LUNTO'),
(223, 'KOTA SEMARANG'),
(275, 'KOTA SERANG'),
(52, 'KOTA SIBOLGA'),
(331, 'KOTA SINGKAWANG'),
(73, 'KOTA SOLOK'),
(488, 'KOTA SORONG'),
(26, 'KOTA SUBULUSSALAM'),
(183, 'KOTA SUKABUMI'),
(101, 'KOTA SUNGAI PENUH'),
(267, 'KOTA SURABAYA'),
(221, 'KOTA SURAKARTA'),
(273, 'KOTA TANGERANG'),
(276, 'KOTA TANGERANG SELATAN'),
(53, 'KOTA TANJUNG BALAI'),
(157, 'KOTA TANJUNG PINANG'),
(373, 'KOTA TARAKAN'),
(189, 'KOTA TASIKMALAYA'),
(55, 'KOTA TEBING TINGGI'),
(225, 'KOTA TEGAL'),
(474, 'KOTA TERNATE'),
(475, 'KOTA TIDORE KEPULAUAN'),
(387, 'KOTA TOMOHON'),
(465, 'KOTA TUAL'),
(230, 'KOTA YOGYAKARTA');
-- --------------------------------------------------------
--
-- Table structure for table `m_detailtransaksi`
--
CREATE TABLE `m_detailtransaksi` (
`id` int(12) NOT NULL,
`codecupang` varchar(100) NOT NULL,
`cupang_name` varchar(100) NOT NULL,
`harga` decimal(12,0) DEFAULT NULL,
`qty` int(11) DEFAULT NULL,
`total` int(100) NOT NULL,
`idtransaksi` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `m_detailtransaksi`
--
INSERT INTO `m_detailtransaksi` (`id`, `codecupang`, `cupang_name`, `harga`, `qty`, `total`, `idtransaksi`) VALUES
(73, 'A1M0001', 'HM SR', 10000, 2, 20000, 29),
(74, 'A3M0003', 'HM BH', 10000, 1, 10000, 30),
(75, 'A3M0003', 'HM BH', 80000, 2, 160000, 31),
(76, 'A3F0004', 'HM BH', 25000, 2, 50000, 48),
(77, 'A3F0006', 'HM BH', 30000, 2, 1, 49),
(1, 'A1M0001', 'HM SR', 10000, 2, 20000, 1),
(78, 'A1M0001', 'HM SR', 10000, 1, 10000, 50),
(79, 'A1F0002', 'HM SR', 10000, 1, 10000, 46),
(80, 'A1M0002', 'HM SR', 30000, 2, 60000, 46),
(81, 'A1F0002', 'HM SR', 30000, 2, 60000, 52),
(82, 'A1M0002', 'HM SR', 20000, 2, 40000, 53),
(96, 'A11M0004', 'HM MCF', 100000, 1, 100000, 63),
(95, 'D8M0002', 'PK GZ', 100000, 1, 100000, 63),
(94, 'D10M0004', 'PK SG', 100000, 1, 100000, 63),
(91, 'A1M0002', 'HM SR', 130000, 1, 130000, 61),
(92, 'A1M0002', 'HM SR', 110000, 1, 110000, 62),
(93, 'A4M0004', 'HM Orange', 100000, 1, 100000, 63),
(97, 'D11M0004', 'PK MCF', 100000, 1, 100000, 63);
-- --------------------------------------------------------
--
-- Table structure for table `m_gambar`
--
CREATE TABLE `m_gambar` (
`id_gambar` int(15) NOT NULL,
`gambar1` varchar(255) NOT NULL,
`gambar2` varchar(255) NOT NULL,
`gambar3` varchar(255) NOT NULL,
`gambar4` varchar(255) NOT NULL,
`gambar5` varchar(255) NOT NULL,
`gambar6` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `m_gambarspk`
--
CREATE TABLE `m_gambarspk` (
`id_gambarspk` int(12) NOT NULL,
`idspk` int(12) NOT NULL,
`gambarspk1` varchar(500) NOT NULL,
`gambarspk2` varchar(500) NOT NULL,
`gambarspk3` varchar(500) NOT NULL,
`gambarspk4` varchar(500) NOT NULL,
`gambarspk5` varchar(500) NOT NULL,
`gambarspk6` varchar(500) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `m_invoice`
--
CREATE TABLE `m_invoice` (
`idinvoice` int(15) NOT NULL,
`nama` varchar(255) NOT NULL,
`tema` varchar(255) NOT NULL,
`noinvoice` varchar(255) NOT NULL,
`dateinvoice` date NOT NULL,
`jasa` varchar(255) NOT NULL,
`ppn` decimal(12,0) NOT NULL,
`pph` decimal(12,0) NOT NULL,
`nominal` decimal(12,0) NOT NULL,
`nofaktur` varchar(255) NOT NULL,
`tglpengiriman` date NOT NULL,
`pengirimanvia` varchar(255) NOT NULL,
`rencanapembayaran` varchar(255) NOT NULL,
`bayartanggal` date NOT NULL,
`bayarnominal` varchar(255) NOT NULL,
`pembayaran` varchar(255) NOT NULL,
`keterangan` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `m_negara`
--
CREATE TABLE `m_negara` (
`idcountry` int(10) NOT NULL,
`country` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `m_negara`
--
INSERT INTO `m_negara` (`idcountry`, `country`) VALUES
(1, 'Indonesia'),
(2, 'Malasia');
-- --------------------------------------------------------
--
-- Table structure for table `m_nonkontrak`
--
CREATE TABLE `m_nonkontrak` (
`id_nonkontrak` int(11) NOT NULL,
`media` varchar(255) NOT NULL,
`brand` varchar(255) NOT NULL,
`kota_kab` varchar(255) NOT NULL,
`tema` text NOT NULL,
`total` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `m_penawaran`
--
CREATE TABLE `m_penawaran` (
`id_penawaran` int(15) NOT NULL,
`namaperusahaan` varchar(255) NOT NULL,
`namadirektur` varchar(255) NOT NULL,
`nomor` varchar(255) NOT NULL,
`masakontrak_awal` date NOT NULL,
`masakontrak_akhir` date NOT NULL,
`kota` varchar(255) NOT NULL,
`nominal` varchar(255) NOT NULL,
`tanggalpengajuan` date NOT NULL,
`status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `m_penawaran`
--
INSERT INTO `m_penawaran` (`id_penawaran`, `namaperusahaan`, `namadirektur`, `nomor`, `masakontrak_awal`, `masakontrak_akhir`, `kota`, `nominal`, `tanggalpengajuan`, `status`) VALUES
(1, 'PT. Nojorono Tobacco Internanational', 'Sugianto R', '155/PT-RCM/PNW/IV/2018', '2020-03-16', '2020-03-27', 'Jakarta', '150.000.000', '2018-04-20', 1);
-- --------------------------------------------------------
--
-- Table structure for table `m_po`
--
CREATE TABLE `m_po` (
`id_po` int(15) NOT NULL,
`nopo` varchar(255) NOT NULL,
`startdate` date NOT NULL,
`enddate` date NOT NULL,
`invoicedate` date NOT NULL,
`nominal` varchar(50) NOT NULL,
`paydate` date NOT NULL,
`statusbayar` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `m_po`
--
INSERT INTO `m_po` (`id_po`, `nopo`, `startdate`, `enddate`, `invoicedate`, `nominal`, `paydate`, `statusbayar`) VALUES
(2, 'dd', '2021-03-16', '2021-03-19', '2021-04-02', '2', '2020-12-11', 'Kredit Dongs'),
(3, 'test1', '2021-03-04', '2021-03-04', '2021-03-04', '0.000.000.000.001', '2021-03-04', 'Kemaren sih minjem temen'),
(4, '222', '2021-03-04', '2021-03-04', '2021-03-04', '000.011.001', '2021-03-04', 'Nyolong');
-- --------------------------------------------------------
--
-- Table structure for table `m_source`
--
CREATE TABLE `m_source` (
`id` int(12) NOT NULL,
`name` varchar(200) NOT NULL,
`note` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `m_source`
--
INSERT INTO `m_source` (`id`, `name`, `note`) VALUES
(1, ' ', ' '),
(2, 'instagram', 'pembelian melalui instagram'),
(3, 'Twitter', 'pembelian ikan cupang via twitter'),
(4, 'Youtube', '#'),
(5, ' ', ' '),
(6, 'Walk In Farm', 'Walk in Farm'),
(7, 'Walk In Showroom', 'Walk in Showroom'),
(8, 'Telegram Lelang', 'Telegram Lelang'),
(9, 'Telegram', 'Telegram'),
(10, 'Instagram Lelang', 'Instagram Lelang'),
(11, ' ', ''),
(12, 'Whatsapp', '');
-- --------------------------------------------------------
--
-- Table structure for table `m_spk`
--
CREATE TABLE `m_spk` (
`idmasterspk` int(10) NOT NULL,
`spktitle` varchar(250) NOT NULL,
`spkdate` date NOT NULL,
`spknumber` varchar(50) NOT NULL,
`total` decimal(15,0) NOT NULL DEFAULT 0,
`spkto` varchar(250) NOT NULL,
`status` int(1) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `m_transaksi`
--
CREATE TABLE `m_transaksi` (
`id` int(11) NOT NULL,
`nomor` varchar(55) DEFAULT NULL,
`idcustomer` int(11) DEFAULT NULL,
`idfarm` int(11) DEFAULT NULL,
`idsales` int(11) DEFAULT NULL,
`idsource` int(11) NOT NULL,
`status` varchar(20) DEFAULT 'Lunas',
`carabayar` varchar(100) DEFAULT NULL,
`ongkir` int(11) NOT NULL,
`packing` int(11) NOT NULL,
`catatan` text DEFAULT NULL,
`dateadd` datetime DEFAULT NULL,
`tanggallunas` date DEFAULT NULL,
`tanggalpengajuan` date DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `m_transaksi`
--
INSERT INTO `m_transaksi` (`id`, `nomor`, `idcustomer`, `idfarm`, `idsales`, `idsource`, `status`, `carabayar`, `ongkir`, `packing`, `catatan`, `dateadd`, `tanggallunas`, `tanggalpengajuan`) VALUES
(61, '202102240001', 300, 1, 9, 8, 'Lunas', 'Transfer', 40000, 0, NULL, '2021-02-24 06:59:27', '2021-02-01', '2021-01-18'),
(62, '202102240002', 324, 1, 9, 8, 'Lunas', 'Transfer', 18000, 10000, NULL, '2021-02-24 07:02:59', '2021-02-07', '2021-01-22'),
(63, '202102240003', 325, 1, 9, 8, 'Lunas', 'Transfer', 461532, 0, NULL, '2021-02-24 07:14:22', '2021-02-03', '2021-01-23');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_bapp`
--
CREATE TABLE `tbl_bapp` (
`id_bapp` int(11) NOT NULL,
`namaperusahaan` varchar(255) NOT NULL,
`no_kontrak` varchar(255) NOT NULL,
`deskripsi` varchar(255) NOT NULL,
`nomor` varchar(255) NOT NULL,
`tanggal` date NOT NULL,
`status_bapp` int(1) NOT NULL,
`tanggal_kembali` date NOT NULL,
`keterangan` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tbl_cupang`
--
CREATE TABLE `tbl_cupang` (
`idcupang` int(12) NOT NULL,
`cupangno` varchar(12) NOT NULL,
`codecupang` varchar(10) NOT NULL,
`cupangname` varchar(250) NOT NULL,
`type` varchar(250) NOT NULL,
`warna` varchar(250) NOT NULL,
`price` double NOT NULL,
`size` varchar(200) NOT NULL,
`jeniskelamin` varchar(50) NOT NULL,
`status` varchar(250) NOT NULL,
`note` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tbl_cupang`
--
INSERT INTO `tbl_cupang` (`idcupang`, `cupangno`, `codecupang`, `cupangname`, `type`, `warna`, `price`, `size`, `jeniskelamin`, `status`, `note`) VALUES
(461, 'IC000001', 'A1M0001', 'HM SR', 'Halfmoon', 'Super Red', 0, 'Regular', 'Male', '1', 'ciri khas ikan cupang yang satu ini memiliki sirip...'),
(462, 'IC000002', 'A1F0001', 'HM SR', 'Halfmoon', 'Super Red', 0, 'Regular', 'Female', '1', 'Cupang Paradise banyak ditemukan di daerah persung?'),
(463, 'IC000003', 'A1M0002', 'HM SR', 'Halfmoon', 'Super Red', 0, 'Junior', 'Male', '1', ''),
(464, 'IC000004', 'A1F0002', 'HM SR', 'Halfmoon', 'Super Red', 0, 'Junior', 'Female', '1', ''),
(465, 'IC000005', 'A2M0001', 'HM SB', 'Halfmoon', 'Super Black', 0, 'Regular', 'Male', '1', ''),
(466, 'IC000006', 'A2F0001', 'HM SB', 'Halfmoon', 'Super Black', 0, 'Regular', 'Female', '1', ''),
(467, 'IC000007', 'A2M0002', 'HM SB', 'Halfmoon', 'Super Black', 0, 'Junior', 'Male', '1', ''),
(468, 'IC000008', 'A2F0002', 'HM SB', 'Halfmoon', 'Super Black', 0, 'Junior', 'Female', '1', ''),
(469, 'IC000009', 'A3M0001', 'HM BH', 'Halfmoon', 'Black Head Steel Blue', 0, 'Regular', 'Male', '1', ''),
(470, 'IC000010', 'A3F0001', 'HM BH', 'Halfmoon', 'Black Head Steel Blue', 0, 'Regular', 'Female', '1', ''),
(471, 'IC000011', 'A3M0002', 'HM BH', 'Halfmoon', 'Black Head Steel Blue', 0, 'Junior', 'Male', '1', ''),
(472, 'IC000012', 'A3F0002', 'HM BH', 'Halfmoon', 'Black Head Steel Blue', 0, 'Junior', 'Female', '1', ''),
(473, 'IC000013', 'A3M0003', 'HM BH', 'Halfmoon', 'Black Head Royal Blue', 0, 'Regular', 'Male', '1', ''),
(474, 'IC000014', 'A3F0003', 'HM BH', 'Halfmoon', 'Black Head Royal Blue', 0, 'Regular', 'Female', '1', ''),
(475, 'IC000015', 'A3M004', 'HM BH', 'Halfmoon', 'Black Head Royal Blue', 0, 'Junior', 'Male', '1', ''),
(476, 'IC000016', 'A3F0004', 'HM BH', 'Halfmoon', 'Black Head Royal Blue', 0, 'Junior', 'Female', '1', ''),
(477, 'IC000017', 'A3M0005', 'HM BH', 'Halfmoon', 'Black Head Green Turqoise', 0, 'Regular', 'Male', '1', ''),
(478, 'IC000018', 'A3F0005', 'HM BH', 'Halfmoon', 'Black Head Green Turqoise', 0, 'Regular', 'Female', '1', ''),
(479, 'IC000019', 'A3M0006', 'HM BH', 'Halfmoon', 'Black Head Green Turqoise', 0, 'Junior', 'Male', '1', ''),
(480, 'IC000020', 'A3F0006', 'HM BH', 'Halfmoon', 'Black Head Green Turqoise', 0, 'Junior', 'Female', '1', ''),
(481, 'IC000021', 'A4M0001', 'HM SY', 'Halfmoon', 'Super Yellow', 0, 'Regular', 'Male', '1', ''),
(482, 'IC000022', 'A4F0001', 'HM SY', 'Halfmoon', 'Super Yellow', 0, 'Regular', 'Female', '1', ''),
(483, 'IC000023', 'A4M0002', 'HM SY', 'Halfmoon', 'Super Yellow', 0, 'Junior', 'Male', '1', ''),
(484, 'IC000024', 'A4F0002', 'HM SY', 'Halfmoon', 'Super Yellow', 0, 'Junior', 'Female', '1', ''),
(485, 'IC000025', 'A4M0003', 'HM Orange', 'Halfmoon', 'Orange', 0, 'Regular', 'Male', '1', ''),
(486, 'IC000026', 'A4F0003', 'HM Orange', 'Halfmoon', 'Orange', 0, 'Regular', 'Female', '1', ''),
(487, 'IC000027', 'A4M0004', 'HM Orange', 'Halfmoon', 'Orange', 0, 'Junior', 'Male', '1', ''),
(488, 'IC000028', 'A4F0004', 'HM Orange', 'Halfmoon', 'Orange', 0, 'Junior', 'Female', '1', ''),
(489, 'IC000029', 'A4M0005', 'HM Cello', 'Halfmoon', 'Cellophane', 0, 'Regular', 'Male', '1', ''),
(490, 'IC000030', 'A4F0005', 'HM Cello', 'Halfmoon', 'Cellophane', 0, 'Regular', 'Female', '1', ''),
(491, 'IC000031', 'A4M0006', 'HM Cello', 'Halfmoon', 'Cellophane', 0, 'Junior', 'Male', '1', ''),
(492, 'IC000032', 'A4F0006', 'HM Cello', 'Halfmoon', 'Cellophane', 0, 'Junior', 'Female', '1', ''),
(493, 'IC000033', 'A5M0001', 'HM YD', 'Halfmoon', 'Yellow Dragon', 0, 'Regular', 'Male', '1', ''),
(494, 'IC000034', 'A5F0001', 'HM YD', 'Halfmoon', 'Yellow Dragon', 0, 'Regular', 'Female', '1', ''),
(495, 'IC000035', 'A5M0002', 'HM YD', 'Halfmoon', 'Yellow Dragon', 0, 'Junior', 'Male', '1', ''),
(496, 'IC000036', 'A5F0002', 'HM YD', 'Halfmoon', 'Yellow Dragon', 0, 'Junior', 'Female', '1', ''),
(497, 'IC000037', 'A5M0003', 'HM RD', 'Halfmoon', 'Red Dragon', 0, 'Regular', 'Male', '1', ''),
(498, 'IC000038', 'A5F0003', 'HM RD', 'Halfmoon', 'Red Dragon', 0, 'Regular', 'Female', '1', ''),
(499, 'IC000039', 'A5M0004', 'HM RD', 'Halfmoon', 'Red Dragon', 0, 'Junior', 'Male', '1', ''),
(500, 'IC000040', 'A5F0004', 'HM RD', 'Halfmoon', 'Red Dragon', 0, 'Junior', 'Female', '1', ''),
(501, 'IC000041', 'A5M0005', 'HM BD', 'Halfmoon', 'Black Dragon', 0, 'Regular', 'Male', '1', ''),
(502, 'IC000042', 'A5F0005', 'HM BD', 'Halfmoon', 'Black Dragon', 0, 'Regular', 'Female', '1', ''),
(503, 'IC000043', 'A5M0006', 'HM BD', 'Halfmoon', 'Black Dragon', 0, 'Junior', 'Male', '1', ''),
(504, 'IC000044', 'A5F0006', 'HM BD', 'Halfmoon', 'Black Dragon', 0, 'Junior', 'Female', '1', ''),
(505, 'IC000045', 'A5M0007', 'HM MG', 'Halfmoon', 'Mustard Gas', 0, 'Regular', 'Male', '1', ''),
(506, 'IC000046', 'A5F0007', 'HM MG', 'Halfmoon', 'Mustard Gas', 0, 'Regular', 'Female', '1', ''),
(507, 'IC000047', 'A5M0008', 'HM MG', 'Halfmoon', 'Mustard Gas', 0, 'Junior', 'Male', '1', ''),
(508, 'IC000048', 'A5F0008', 'HM MG', 'Halfmoon', 'Mustard Gas', 0, 'Junior', 'Female', '1', ''),
(509, 'IC000049', 'A6M0001', 'HM MS', 'Halfmoon', 'Mascot', 0, 'Regular', 'Male', '1', ''),
(510, 'IC000050', 'A6F0001', 'HM MS', 'Halfmoon', 'Mascot', 0, 'Regular', 'Female', '1', ''),
(511, 'IC000051', 'A6M0002', 'HM MS', 'Halfmoon', 'Mascot', 0, 'Junior', 'Male', '1', ''),
(512, 'IC000052', 'A6F0002', 'HM MS', 'Halfmoon', 'Mascot', 0, 'Junior', 'Female', '1', ''),
(513, 'IC000053', 'A6M0003', 'HM LV', 'Halfmoon', 'Lavender', 0, 'Regular', 'Male', '1', ''),
(514, 'IC000054', 'A6F0003', 'HM LV', 'Halfmoon', 'Lavender', 0, 'Regular', 'Female', '1', ''),
(515, 'IC000055', 'A6M0004', 'HM LV', 'Halfmoon', 'Lavender', 0, 'Junior', 'Male', '1', ''),
(516, 'IC000056', 'A6F0004', 'HM LV', 'Halfmoon', 'Lavender', 0, 'Junior', 'Female', '1', ''),
(517, 'IC000057', 'A7M0001', 'HM NM', 'Halfmoon', 'Nemo', 0, 'Regular', 'Male', '1', ''),
(518, 'IC000058', 'A7F0001', 'HM NM', 'Halfmoon', 'Nemo', 0, 'Regular', 'Female', '1', ''),
(519, 'IC000059', 'A7M0002', 'HM NM', 'Halfmoon', 'Nemo', 0, 'Junior', 'Male', '1', ''),
(520, 'IC000060', 'A7F0002', 'HM NM', 'Halfmoon', 'Nemo', 0, 'Junior', 'Female', '1', ''),
(521, 'IC000061', 'A7M0003', 'HM DOT', 'Halfmoon', 'Dot Dot', 0, 'Regular', 'Male', '1', ''),
(522, 'IC000062', 'A7F0003', 'HM DOT', 'Halfmoon', 'Dot Dot', 0, 'Regular', 'Female', '1', ''),
(523, 'IC000063', 'A7M0004', 'HM DOT', 'Halfmoon', 'Dot Dot', 0, 'Junior', 'Male', '1', ''),
(524, 'IC000064', 'A7F0004', 'HM DOT', 'Halfmoon', 'Dot Dot', 0, 'Junior', 'Female', '1', ''),
(525, 'IC000065', 'A8M0001', 'HM GZ', 'Halfmoon', 'Grizzled', 0, 'Regular', 'Male', '1', ''),
(526, 'IC000066', 'A8F0001', 'HM GZ', 'Halfmoon', 'Grizzled', 0, 'Regular', 'Female', '1', ''),
(527, 'IC000067', 'A8M0002', 'HM GZ', 'Halfmoon', 'Grizzled', 0, 'Junior', 'Male', '1', ''),
(528, 'IC000068', 'A8F0002', 'HM GZ', 'Halfmoon', 'Grizzled', 0, 'Junior', 'Female', '1', ''),
(529, 'IC000069', 'A9M0001', 'HM CP', 'Halfmoon', 'Cooper', 0, 'Regular', 'Male', '1', ''),
(530, 'IC000070', 'A9F0001', 'HM CP', 'Halfmoon', 'Cooper', 0, 'Regular', 'Female', '1', ''),
(531, 'IC000071', 'A9M0002', 'HM CP', 'Halfmoon', 'Cooper', 0, 'Junior', 'Male', '1', ''),
(532, 'IC000072', 'A9F0002', 'HM CP', 'Halfmoon', 'Cooper', 0, 'Junior', 'Female', '1', ''),
(533, 'IC000073', 'A9M0003', 'HM GT', 'Halfmoon', 'Green Turqoise', 0, 'Regular', 'Male', '1', ''),
(534, 'IC000074', 'A9F0003', 'HM GT', 'Halfmoon', 'Green Turqoise', 0, 'Regular', 'Female', '1', ''),
(535, 'IC000075', 'A9M0004', 'HM GT', 'Halfmoon', 'Green Turqoise', 0, 'Junior', 'Male', '1', ''),
(536, 'IC000076', 'A9F0004', 'HM GT', 'Halfmoon', 'Green Turqoise', 0, 'Junior', 'Female', '1', ''),
(537, 'IC000077', 'A10M0001', 'HM WP', 'Halfmoon', 'White Platinum', 0, 'Regular', 'Male', '1', ''),
(538, 'IC000078', '', 'HM WP', 'Halfmoon', 'White Platinum', 0, 'Regular', 'Female', '1', ''),
(539, 'IC000079', 'A10M0002', 'HM WP', 'Halfmoon', 'White Platinum', 0, 'Junior', 'Male', '1', ''),
(540, 'IC000080', 'A10F0002', 'HM WP', 'Halfmoon', 'White Platinum', 0, 'Junior', 'Female', '1', ''),
(541, 'IC000081', 'A11M0001', 'HM MC', 'Halfmoon', 'Multicolor', 0, 'Regular', 'Male', '1', ''),
(542, 'IC000082', 'A11F0001', 'HM MC', 'Halfmoon', 'Multicolor', 0, 'Regular', 'Female', '1', ''),
(543, 'IC000083', 'A11M0002', 'HM MC', 'Halfmoon', 'Multicolor', 0, 'Junior', 'Male', '1', ''),
(544, 'IC000084', 'A11F0002', 'HM MC', 'Halfmoon', 'Multicolor', 0, 'Junior', 'Female', '1', ''),
(545, 'IC000085', 'A11M0003', 'HM MCF', 'Halfmoon', 'Multicolor Fancy', 0, 'Regular', 'Male', '1', ''),
(546, 'IC000086', 'A11F0003', 'HM MCF', 'Halfmoon', 'Multicolor Fancy', 0, 'Regular', 'Female', '1', ''),
(547, 'IC000087', 'A11M0004', 'HM MCF', 'Halfmoon', 'Multicolor Fancy', 0, 'Junior', 'Male', '1', ''),
(548, 'IC000088', 'A11F0004', 'HM MCF', 'Halfmoon', 'Multicolor Fancy', 0, 'Junior', 'Female', '1', ''),
(549, 'IC000089', 'A11M0005', 'HM MCG', 'Halfmoon', 'Multicolor Galaxy', 0, 'Regular', 'Male', '1', ''),
(550, 'IC000090', 'A11F0005', 'HM MCG', 'Halfmoon', 'Multicolor Galaxy', 0, 'Regular', 'Female', '1', ''),
(551, 'IC000091', 'A11M0006', 'HM MCG', 'Halfmoon', 'Multicolor Galaxy', 0, 'Junior', 'Male', '1', ''),
(552, 'IC000092', 'A11F0006', 'HM MCG', 'Halfmoon', 'Multicolor Galaxy', 0, 'Junior', 'Female', '1', ''),
(553, 'IC000093', 'B1M0001', 'DTHM SR', 'DoubleTail Halfmoon', 'Super Red', 0, 'Regular', 'Male', '1', ''),
(554, 'IC000094', 'B1F0001', 'DTHM SR', 'DoubleTail Halfmoon', 'Super Red', 0, 'Regular', 'Female', '1', ''),
(555, 'IC000095', 'B1M0002', 'DTHM SR', 'DoubleTail Halfmoon', 'Super Red', 0, 'Junior', 'Male', '1', ''),
(556, 'IC000096', 'B1F0002', 'DTHM SR', 'DoubleTail Halfmoon', 'Super Red', 0, 'Junior', 'Female', '1', ''),
(557, 'IC000097', 'B1M0003', 'DTHM SB', 'DoubleTail Halfmoon', 'Super Black', 0, 'Regular', 'Male', '1', ''),
(558, 'IC000098', 'B1F0003', 'DTHM SB', 'DoubleTail Halfmoon', 'Super Black', 0, 'Regular', 'Female', '1', ''),
(559, 'IC000099', 'B1M0004', 'DTHM SB', 'DoubleTail Halfmoon', 'Super Black', 0, 'Junior', 'Male', '1', ''),
(560, 'IC000100', 'B1F0004', 'DTHM SB', 'DoubleTail Halfmoon', 'Super Black', 0, 'Junior', 'Female', '1', ''),
(561, 'IC000101', 'B2M0001', 'DTHM SY', 'DoubleTail Halfmoon', 'Super Yellow', 0, 'Regular', 'Male', '1', ''),
(562, 'IC000102', 'B2F0001', 'DTHM SY', 'DoubleTail Halfmoon', 'Super Yellow', 0, 'Regular', 'Female', '1', ''),
(563, 'IC000103', 'B2M0002', 'DTHM SY', 'DoubleTail Halfmoon', 'Super Yellow', 0, 'Junior', 'Male', '1', ''),
(564, 'IC000104', 'B2F0002', 'DTHM SY', 'DoubleTail Halfmoon', 'Super Yellow', 0, 'Junior', 'Female', '1', ''),
(565, 'IC000105', 'B2M0003', 'DTHM Orange', 'DoubleTail Halfmoon', 'Orange', 0, 'Regular', 'Male', '1', ''),
(566, 'IC000106', 'B2F0003', 'DTHM Orange', 'DoubleTail Halfmoon', 'Orange', 0, 'Regular', 'Female', '1', ''),
(567, 'IC000107', 'B2M0004', 'DTHM Orange', 'DoubleTail Halfmoon', 'Orange', 0, 'Junior', 'Male', '1', ''),
(568, 'IC000108', 'B2F0004', 'DTHM Orange', 'DoubleTail Halfmoon', 'Orange', 0, 'Junior', 'Female', '1', ''),
(569, 'IC000109', 'B2M0005', 'DTHM Cello', 'DoubleTail Halfmoon', 'Cellophane', 0, 'Regular', 'Male', '1', ''),
(570, 'IC000110', 'B2F0005', 'DTHM Cello', 'DoubleTail Halfmoon', 'Cellophane', 0, 'Regular', 'Female', '1', ''),
(571, 'IC000111', 'B2M0006', 'DTHM Cello', 'DoubleTail Halfmoon', 'Cellophane', 0, 'Junior', 'Male', '1', ''),
(572, 'IC000112', 'B2F0006', 'DTHM Cello', 'DoubleTail Halfmoon', 'Cellophane', 0, 'Junior', 'Female', '1', ''),
(573, 'IC000113', 'B3M0001', 'DTHM MS', 'DoubleTail Halfmoon', 'Mascot', 0, 'Regular', 'Male', '1', ''),
(574, 'IC000114', 'B3F0001', 'DTHM MS', 'DoubleTail Halfmoon', 'Mascot', 0, 'Regular', 'Female', '1', ''),
(575, 'IC000115', 'B3M0002', 'DTHM MS', 'DoubleTail Halfmoon', 'Mascot', 0, 'Junior', 'Male', '1', ''),
(576, 'IC000116', 'B3F0002', 'DTHM MS', 'DoubleTail Halfmoon', 'Mascot', 0, 'Junior', 'Female', '1', ''),
(577, 'IC000117', 'B3M0003', 'DTHM MG', 'DoubleTail Halfmoon', 'Mustard Gas', 0, 'Regular', 'Male', '1', ''),
(578, 'IC000118', 'B3F0003', 'DTHM MG', 'DoubleTail Halfmoon', 'Mustard Gas', 0, 'Regular', 'Female', '1', ''),
(579, 'IC000119', 'B3M0004', 'DTHM MG', 'DoubleTail Halfmoon', 'Mustard Gas', 0, 'Junior', 'Male', '1', ''),
(580, 'IC000120', 'B3F0004', 'DTHM MG', 'DoubleTail Halfmoon', 'Mustard Gas', 0, 'Junior', 'Female', '1', ''),
(581, 'IC000121', 'B3M0005', 'DTHM GZ', 'DoubleTail Halfmoon', 'Grizzled', 0, 'Regular', 'Male', '1', ''),
(582, 'IC000122', 'B3F0005', 'DTHM GZ', 'DoubleTail Halfmoon', 'Grizzled', 0, 'Regular', 'Female', '1', ''),
(583, 'IC000123', 'B3M0006', 'DTHM GZ', 'DoubleTail Halfmoon', 'Grizzled', 0, 'Junior', 'Male', '1', ''),
(584, 'IC000124', 'B3F0006', 'DTHM GZ', 'DoubleTail Halfmoon', 'Grizzled', 0, 'Junior', 'Female', '1', ''),
(585, 'IC000125', 'B3M0007', 'DTHM NM', 'DoubleTail Halfmoon', 'Nemo', 0, 'Regular', 'Male', '1', ''),
(586, 'IC000126', 'B3F0007', 'DTHM NM', 'DoubleTail Halfmoon', 'Nemo', 0, 'Regular', 'Female', '1', ''),
(587, 'IC000127', 'B3M0008', 'DTHM NM', 'DoubleTail Halfmoon', 'Nemo', 0, 'Junior', 'Male', '1', ''),
(588, 'IC000128', 'B3F0008', 'DTHM NM', 'DoubleTail Halfmoon', 'Nemo', 0, 'Junior', 'Female', '1', ''),
(589, 'IC000129', 'B4M0001', 'DTHM CP', 'DoubleTail Halfmoon', 'Cooper', 0, 'Regular', 'Male', '1', ''),
(590, 'IC000130', 'B4F0001', 'DTHM CP', 'DoubleTail Halfmoon', 'Cooper', 0, 'Regular', 'Female', '1', ''),
(591, 'IC000131', 'B4M0002', 'DTHM CP', 'DoubleTail Halfmoon', 'Cooper', 0, 'Junior', 'Male', '1', ''),
(592, 'IC000132', 'B4F0002', 'DTHM CP', 'DoubleTail Halfmoon', 'Cooper', 0, 'Junior', 'Female', '1', ''),
(593, 'IC000133', 'B4M0003', 'DTHM WP', 'DoubleTail Halfmoon', 'White Platinum', 0, 'Regular', 'Male', '1', ''),
(594, 'IC000134', 'B4F0003', 'DTHM WP', 'DoubleTail Halfmoon', 'White Platinum', 0, 'Regular', 'Female', '1', ''),
(595, 'IC000135', 'B4M0004', 'DTHM WP', 'DoubleTail Halfmoon', 'White Platinum', 0, 'Junior', 'Male', '1', ''),
(596, 'IC000136', 'B4F0004', 'DTHM WP', 'DoubleTail Halfmoon', 'White Platinum', 0, 'Junior', 'Female', '1', ''),
(597, 'IC000137', 'B5M0001', 'DTHM MC', 'DoubleTail Halfmoon', 'Multicolor', 0, 'Regular', 'Male', '1', ''),
(598, 'IC000138', 'B5F0001', 'DTHM MC', 'DoubleTail Halfmoon', 'Multicolor', 0, 'Regular', 'Female', '1', ''),
(599, 'IC000139', 'B5M0002', 'DTHM MC', 'DoubleTail Halfmoon', 'Multicolor', 0, 'Junior', 'Male', '1', ''),
(600, 'IC000140', 'B5F0002', 'DTHM MC', 'DoubleTail Halfmoon', 'Multicolor', 0, 'Junior', 'Female', '1', ''),
(601, 'IC000141', 'C1M0001', 'CT SR', 'Crowntail', 'Super Red', 0, 'Regular', 'Male', '1', ''),
(602, 'IC000142', 'C1F0001', 'CT SR', 'Crowntail', 'Super Red', 0, 'Regular', 'Female', '1', ''),
(603, 'IC000143', 'C1M0002', 'CT SR', 'Crowntail', 'Super Red', 0, 'Junior', 'Male', '1', ''),
(604, 'IC000144', 'C1F0002', 'CT SR', 'Crowntail', 'Super Red', 0, 'Junior', 'Female', '1', ''),
(605, 'IC000145', 'C2M0001', 'CT BH', 'Crowntail', 'Black Head Steel Blue', 0, 'Regular', 'Male', '1', ''),
(606, 'IC000146', 'C2F0001', 'CT BH', 'Crowntail', 'Black Head Steel Blue', 0, 'Regular', 'Female', '1', ''),
(607, 'IC000147', 'C2M0002', 'CT BH', 'Crowntail', 'Black Head Steel Blue', 0, 'Junior', 'Male', '1', ''),
(608, 'IC000148', 'C2F0002', 'CT BH', 'Crowntail', 'Black Head Steel Blue', 0, 'Junior', 'Female', '1', ''),
(609, 'IC000149', 'C2M0003', 'CT BH', 'Crowntail', 'Black Head Royal Blue', 0, 'Regular', 'Male', '1', ''),
(610, 'IC000150', 'C2F0003', 'CT BH', 'Crowntail', 'Black Head Royal Blue', 0, 'Regular', 'Female', '1', ''),
(611, 'IC000151', 'C2M0004', 'CT BH', 'Crowntail', 'Black Head Royal Blue', 0, 'Junior', 'Male', '1', ''),
(612, 'IC000152', 'C2F0004', 'CT BH', 'Crowntail', 'Black Head Royal Blue', 0, 'Junior', 'Female', '1', ''),
(613, 'IC000153', 'C2M0005', 'CT BH', 'Crowntail', 'Black Head Green Turqoise', 0, 'Regular', 'Male', '1', ''),
(614, 'IC000154', 'C2F0005', 'CT BH', 'Crowntail', 'Black Head Green Turqoise', 0, 'Regular', 'Female', '1', ''),
(615, 'IC000155', 'C2M0006', 'CT BH', 'Crowntail', 'Black Head Green Turqoise', 0, 'Junior', 'Male', '1', ''),
(616, 'IC000156', 'C2F0006', 'CT BH', 'Crowntail', 'Black Head Green Turqoise', 0, 'Junior', 'Female', '1', ''),
(617, 'IC000157', 'C3M0001', 'CT SY', 'Crowntail', 'Super Yellow', 0, 'Regular', 'Male', '1', ''),
(618, 'IC000158', 'C3F0001', 'CT SY', 'Crowntail', 'Super Yellow', 0, 'Regular', 'Female', '1', ''),
(619, 'IC000159', 'C3M0002', 'CT SY', 'Crowntail', 'Super Yellow', 0, 'Junior', 'Male', '1', ''),
(620, 'IC000160', 'C3F0002', 'CT SY', 'Crowntail', 'Super Yellow', 0, 'Junior', 'Female', '1', ''),
(621, 'IC000161', 'C3M0003', 'CT Orange', 'Crowntail', 'Orange', 0, 'Regular', 'Male', '1', ''),
(622, 'IC000162', 'C3F0003', 'CT Orange', 'Crowntail', 'Orange', 0, 'Regular', 'Female', '1', ''),
(623, 'IC000163', 'C3M0004', 'CT Orange', 'Crowntail', 'Orange', 0, 'Junior', 'Male', '1', ''),
(624, 'IC000164', 'C3F0004', 'CT Orange', 'Crowntail', 'Orange', 0, 'Junior', 'Female', '1', ''),
(625, 'IC000165', 'C4M0001', 'CT RD', 'Crowntail', 'Red Dragon', 0, 'Regular', 'Male', '1', ''),
(626, 'IC000166', 'C4F0001', 'CT RD', 'Crowntail', 'Red Dragon', 0, 'Regular', 'Female', '1', ''),
(627, 'IC000167', 'C4M0002', 'CT RD', 'Crowntail', 'Red Dragon', 0, 'Junior', 'Male', '1', ''),
(628, 'IC000168', 'C4F0002', 'CT RD', 'Crowntail', 'Red Dragon', 0, 'Junior', 'Female', '1', ''),
(629, 'IC000169', 'C4M0003', 'CT MG', 'Crowntail', 'Mustard Gas', 0, 'Regular', 'Male', '1', ''),
(630, 'IC000170', 'C4F0003', 'CT MG', 'Crowntail', 'Mustard Gas', 0, 'Regular', 'Female', '1', ''),
(631, 'IC000171', 'C4M0004', 'CT MG', 'Crowntail', 'Mustard Gas', 0, 'Junior', 'Male', '1', ''),
(632, 'IC000172', 'C4F0004', 'CT MG', 'Crowntail', 'Mustard Gas', 0, 'Junior', 'Female', '1', ''),
(633, 'IC000173', 'C5M0001', 'CT MS', 'Crowntail', 'Mascot', 0, 'Regular', 'Male', '1', ''),
(634, 'IC000174', 'C5F0001', 'CT MS', 'Crowntail', 'Mascot', 0, 'Regular', 'Female', '1', ''),
(635, 'IC000175', 'C5M0002', 'CT MS', 'Crowntail', 'Mascot', 0, 'Junior', 'Male', '1', ''),
(636, 'IC000176', 'C5F0002', 'CT MS', 'Crowntail', 'Mascot', 0, 'Junior', 'Female', '1', ''),
(637, 'IC000177', 'C6M0001', 'CT MB', 'Crowntail', 'Marble', 0, 'Regular', 'Male', '1', ''),
(638, 'IC000178', 'C6F0001', 'CT MB', 'Crowntail', 'Marble', 0, 'Regular', 'Female', '1', ''),
(639, 'IC000179', 'C6M0002', 'CT MB', 'Crowntail', 'Marble', 0, 'Junior', 'Male', '1', ''),
(640, 'IC000180', 'C6F0002', 'CT MB', 'Crowntail', 'Marble', 0, 'Junior', 'Female', '1', ''),
(641, 'IC000181', 'C7M0001', 'CT GZ', 'Crowntail', 'Grizzled', 0, 'Regular', 'Male', '1', ''),
(642, 'IC000182', 'C7F0001', 'CT GZ', 'Crowntail', 'Grizzled', 0, 'Regular', 'Female', '1', ''),
(643, 'IC000183', 'C7M0002', 'CT GZ', 'Crowntail', 'Grizzled', 0, 'Junior', 'Male', '1', ''),
(644, 'IC000184', 'C7F0002', 'CT GZ', 'Crowntail', 'Grizzled', 0, 'Junior', 'Female', '1', ''),
(645, 'IC000185', 'C8M0001', 'CT BL', 'Crowntail', 'Black Orchid', 0, 'Regular', 'Male', '1', ''),
(646, 'IC000186', 'C8F0001', 'CT BL', 'Crowntail', 'Black Orchid', 0, 'Regular', 'Female', '1', ''),
(647, 'IC000187', 'C8M0002', 'CT BL', 'Crowntail', 'Black Orchid', 0, 'Junior', 'Male', '1', ''),
(648, 'IC000188', 'C8F0002', 'CT BL', 'Crowntail', 'Black Orchid', 0, 'Junior', 'Female', '1', ''),
(649, 'IC000189', 'C9M0001', 'CT CP', 'Crowntail', 'Cooper', 0, 'Regular', 'Male', '1', ''),
(650, 'IC000190', 'C9F0001', 'CT CP', 'Crowntail', 'Cooper', 0, 'Regular', 'Female', '1', ''),
(651, 'IC000191', 'C9M0002', 'CT CP', 'Crowntail', 'Cooper', 0, 'Junior', 'Male', '1', ''),
(652, 'IC000192', 'C9F0002', 'CT CP', 'Crowntail', 'Cooper', 0, 'Junior', 'Female', '1', ''),
(653, 'IC000193', 'C9M0003', 'CT GT', 'Crowntail', 'Green Turqoise', 0, 'Regular', 'Male', '1', ''),
(654, 'IC000194', 'C9F0003', 'CT GT', 'Crowntail', 'Green Turqoise', 0, 'Regular', 'Female', '1', ''),
(655, 'IC000195', 'C9M0004', 'CT GT', 'Crowntail', 'Green Turqoise', 0, 'Junior', 'Male', '1', ''),
(656, 'IC000196', 'C9F0004', 'CT GT', 'Crowntail', 'Green Turqoise', 0, 'Junior', 'Female', '1', ''),
(657, 'IC000197', 'C10M0001', 'CT WP', 'Crowntail', 'White Platinum', 0, 'Regular', 'Male', '1', ''),
(658, 'IC000198', 'C10F0001', 'CT WP', 'Crowntail', 'White Platinum', 0, 'Regular', 'Female', '1', ''),
(659, 'IC000199', 'C10M0002', 'CT WP', 'Crowntail', 'White Platinum', 0, 'Junior', 'Male', '1', ''),
(660, 'IC000200', 'C10F0002', 'CT WP', 'Crowntail', 'White Platinum', 0, 'Junior', 'Female', '1', ''),
(661, 'IC000201', 'C11M0001', 'CT MC', 'Crowntail', 'Multicolor', 0, 'Regular', 'Male', '1', ''),
(662, 'IC000202', 'C11F0001', 'CT MC', 'Crowntail', 'Multicolor', 0, 'Regular', 'Female', '1', ''),
(663, 'IC000203', 'C11M0002', 'CT MC', 'Crowntail', 'Multicolor', 0, 'Junior', 'Male', '1', ''),
(664, 'IC000204', 'C11F0002', 'CT MC', 'Crowntail', 'Multicolor', 0, 'Junior', 'Female', '1', ''),
(665, 'IC000205', 'D1M0001', 'PK SR', 'Plakad', 'Super Red', 0, 'Regular', 'Male', '1', ''),
(666, 'IC000206', 'D1F0001', 'PK SR', 'Plakad', 'Super Red', 0, 'Regular', 'Female', '1', ''),
(667, 'IC000207', 'D1M0002', 'PK SR', 'Plakad', 'Super Red', 0, 'Junior', 'Male', '1', ''),
(668, 'IC000208', 'D1F0002', 'PK SR', 'Plakad', 'Super Red', 0, 'Junior', 'Female', '1', ''),
(669, 'IC000209', 'D2M0001', 'PK SB', 'Plakad', 'Super Black', 0, 'Regular', 'Male', '1', ''),
(670, 'IC000210', 'D2F0001', 'PK SB', 'Plakad', 'Super Black', 0, 'Regular', 'Female', '1', ''),
(671, 'IC000211', 'D2M0002', 'PK SB', 'Plakad', 'Super Black', 0, 'Junior', 'Male', '1', ''),
(672, 'IC000212', 'D2F0002', 'PK SB', 'Plakad', 'Super Black', 0, 'Junior', 'Female', '1', ''),
(673, 'IC000213', 'D3M0001', 'PK BH', 'Plakad', 'Black Head Steel Blue', 0, 'Regular', 'Male', '1', ''),
(674, 'IC000214', 'D3F0001', 'PK BH', 'Plakad', 'Black Head Steel Blue', 0, 'Regular', 'Female', '1', ''),
(675, 'IC000215', 'D3M0002', 'PK BH', 'Plakad', 'Black Head Steel Blue', 0, 'Junior', 'Male', '1', ''),
(676, 'IC000216', 'D3F0002', 'PK BH', 'Plakad', 'Black Head Steel Blue', 0, 'Junior', 'Female', '1', ''),
(677, 'IC000217', 'D3M0003', 'PK BH', 'Plakad', 'Black Head Royal Blue', 0, 'Regular', 'Male', '1', ''),
(678, 'IC000218', 'D3F0003', 'PK BH', 'Plakad', 'Black Head Royal Blue', 0, 'Regular', 'Female', '1', ''),
(679, 'IC000219', 'D3M0004', 'PK BH', 'Plakad', 'Black Head Royal Blue', 0, 'Junior', 'Male', '1', ''),
(680, 'IC000220', 'D3F0004', 'PK BH', 'Plakad', 'Black Head Royal Blue', 0, 'Junior', 'Female', '1', ''),
(681, 'IC000221', 'D3M0005', 'PK BH', 'Plakad', 'Black Head Green Turqoise', 0, 'Regular', 'Male', '1', ''),
(682, 'IC000222', 'D3F0005', 'PK BH', 'Plakad', 'Black Head Green Turqoise', 0, 'Regular', 'Female', '1', ''),
(683, 'IC000223', 'D3M0006', 'PK BH', 'Plakad', 'Black Head Green Turqoise', 0, 'Junior', 'Male', '1', ''),
(684, 'IC000224', 'D3F0006', 'PK BH', 'Plakad', 'Black Head Green Turqoise', 0, 'Junior', 'Female', '1', ''),
(685, 'IC000225', 'D4M0001', 'PK SY', 'Plakad', 'Super Yellow', 0, 'Regular', 'Male', '1', ''),
(686, 'IC000226', 'D4F0001', 'PK SY', 'Plakad', 'Super Yellow', 0, 'Regular', 'Female', '1', ''),
(687, 'IC000227', 'D4M0002', 'PK SY', 'Plakad', 'Super Yellow', 0, 'Junior', 'Male', '1', ''),
(688, 'IC000228', 'D4F0002', 'PK SY', 'Plakad', 'Super Yellow', 0, 'Junior', 'Female', '1', ''),
(689, 'IC000229', 'D4M0003', 'PK Orange', 'Plakad', 'Orange', 0, 'Regular', 'Male', '1', ''),
(690, 'IC000230', 'D4F0003', 'PK Orange', 'Plakad', 'Orange', 0, 'Regular', 'Female', '1', ''),
(691, 'IC000231', 'D4M0004', 'PK Orange', 'Plakad', 'Orange', 0, 'Junior', 'Male', '1', ''),
(692, 'IC000232', 'D4F0004', 'PK Orange', 'Plakad', 'Orange', 0, 'Junior', 'Female', '1', ''),
(693, 'IC000233', 'D4M0005', 'PK Cello', 'Plakad', 'Cellophane', 0, 'Regular', 'Male', '1', ''),
(694, 'IC000234', 'D4F0005', 'PK Cello', 'Plakad', 'Cellophane', 0, 'Regular', 'Female', '1', ''),
(695, 'IC000235', 'D4M0006', 'PK Cello', 'Plakad', 'Cellophane', 0, 'Junior', 'Male', '1', ''),
(696, 'IC000236', 'D4F0006', 'PK Cello', 'Plakad', 'Cellophane', 0, 'Junior', 'Female', '1', ''),
(697, 'IC000237', 'D5M0001', 'PK YD', 'Plakad', 'Yellow Dragon', 0, 'Regular', 'Male', '1', ''),
(698, 'IC000238', 'D5F0001', 'PK YD', 'Plakad', 'Yellow Dragon', 0, 'Regular', 'Female', '1', ''),
(699, 'IC000239', 'D5M0002', 'PK YD', 'Plakad', 'Yellow Dragon', 0, 'Junior', 'Male', '1', ''),
(700, 'IC000240', 'D5F0002', 'PK YD', 'Plakad', 'Yellow Dragon', 0, 'Junior', 'Female', '1', ''),
(701, 'IC000241', 'D5M0003', 'PK RD', 'Plakad', 'Red Dragon', 0, 'Regular', 'Male', '1', ''),
(702, 'IC000242', 'D5F0003', 'PK RD', 'Plakad', 'Red Dragon', 0, 'Regular', 'Female', '1', ''),
(703, 'IC000243', 'D5M0004', 'PK RD', 'Plakad', 'Red Dragon', 0, 'Junior', 'Male', '1', ''),
(704, 'IC000244', 'D5F0004', 'PK RD', 'Plakad', 'Red Dragon', 0, 'Junior', 'Female', '1', ''),
(705, 'IC000245', 'D5M0005', 'PK BD', 'Plakad', 'Black Dragon', 0, 'Regular', 'Male', '1', ''),
(706, 'IC000246', 'D5F0005', 'PK BD', 'Plakad', 'Black Dragon', 0, 'Regular', 'Female', '1', ''),
(707, 'IC000247', 'D5M0006', 'PK BD', 'Plakad', 'Black Dragon', 0, 'Junior', 'Male', '1', ''),
(708, 'IC000248', 'D5F0006', 'PK BD', 'Plakad', 'Black Dragon', 0, 'Junior', 'Female', '1', ''),
(709, 'IC000249', 'D5M0007', 'PK MG', 'Plakad', 'Mustard Gas', 0, 'Regular', 'Male', '1', ''),
(710, 'IC000250', 'D5F0007', 'PK MG', 'Plakad', 'Mustard Gas', 0, 'Regular', 'Female', '1', ''),
(711, 'IC000251', 'D5M0008', 'PK MG', 'Plakad', 'Mustard Gas', 0, 'Junior', 'Male', '1', ''),
(712, 'IC000252', 'D5F0008', 'PK MG', 'Plakad', 'Mustard Gas', 0, 'Junior', 'Female', '1', ''),
(713, 'IC000253', 'D6M0001', 'PK MS', 'Plakad', 'Mascot', 0, 'Regular', 'Male', '1', ''),
(714, 'IC000254', 'D6F0001', 'PK MS', 'Plakad', 'Mascot', 0, 'Regular', 'Female', '1', ''),
(715, 'IC000255', 'D6M0002', 'PK MS', 'Plakad', 'Mascot', 0, 'Junior', 'Male', '1', ''),
(716, 'IC000256', 'D6F0002', 'PK MS', 'Plakad', 'Mascot', 0, 'Junior', 'Female', '1', ''),
(717, 'IC000257', 'D6M0003', 'PK LV', 'Plakad', 'Lavender', 0, 'Regular', 'Male', '1', ''),
(718, 'IC000258', 'D6F0003', 'PK LV', 'Plakad', 'Lavender', 0, 'Regular', 'Female', '1', ''),
(719, 'IC000259', 'D6M0004', 'PK LV', 'Plakad', 'Lavender', 0, 'Junior', 'Male', '1', ''),
(720, 'IC000260', 'D6F0004', 'PK LV', 'Plakad', 'Lavender', 0, 'Junior', 'Female', '1', ''),
(721, 'IC000261', 'D6M0005', 'PK BR', 'Plakad', 'Blue Rim', 0, 'Regular', 'Male', '1', ''),
(722, 'IC000262', 'D6F0005', 'PK BR', 'Plakad', 'Blue Rim', 0, 'Regular', 'Female', '1', ''),
(723, 'IC000263', 'D6M0006', 'PK BR', 'Plakad', 'Blue Rim', 0, 'Junior', 'Male', '1', ''),
(724, 'IC000264', 'D6F0006', 'PK BR', 'Plakad', 'Blue Rim', 0, 'Junior', 'Female', '1', ''),
(725, 'IC000265', 'D7M0001', 'PK NM', 'Plakad', 'Nemo', 0, 'Regular', 'Male', '1', ''),
(726, 'IC000266', 'D7F0001', 'PK NM', 'Plakad', 'Nemo', 0, 'Regular', 'Female', '1', ''),
(727, 'IC000267', 'D7M0002', 'PK NM', 'Plakad', 'Nemo', 0, 'Junior', 'Male', '1', ''),
(728, 'IC000268', 'D7F0002', 'PK NM', 'Plakad', 'Nemo', 0, 'Junior', 'Female', '1', ''),
(729, 'IC000269', 'D7M0003', 'PK DOT', 'Plakad', 'Dot Dot', 0, 'Regular', 'Male', '1', ''),
(730, 'IC000270', 'D7F0003', 'PK DOT', 'Plakad', 'Dot Dot', 0, 'Regular', 'Female', '1', ''),
(731, 'IC000271', 'D7M0004', 'PK DOT', 'Plakad', 'Dot Dot', 0, 'Junior', 'Male', '1', ''),
(732, 'IC000272', 'D7F0004', 'PK DOT', 'Plakad', 'Dot Dot', 0, 'Junior', 'Female', '1', ''),
(733, 'IC000273', 'D8M0001', 'PK GZ', 'Plakad', 'Grizzled', 0, 'Regular', 'Male', '1', ''),
(734, 'IC000274', 'D8F0001', 'PK GZ', 'Plakad', 'Grizzled', 0, 'Regular', 'Female', '1', ''),
(735, 'IC000275', 'D8M0002', 'PK GZ', 'Plakad', 'Grizzled', 0, 'Junior', 'Male', '1', ''),
(736, 'IC000276', 'D8F0002', 'PK GZ', 'Plakad', 'Grizzled', 0, 'Junior', 'Female', '1', ''),
(737, 'IC000277', 'D9M0001', 'PK CP', 'Plakad', 'Cooper', 0, 'Regular', 'Male', '1', ''),
(738, 'IC000278', 'D9F0001', 'PK CP', 'Plakad', 'Cooper', 0, 'Regular', 'Female', '1', ''),
(739, 'IC000279', 'D9M0002', 'PK CP', 'Plakad', 'Cooper', 0, 'Junior', 'Male', '1', ''),
(740, 'IC000280', 'D9F0002', 'PK CP', 'Plakad', 'Cooper', 0, 'Junior', 'Female', '1', ''),
(741, 'IC000281', 'D9M0003', 'PK GT', 'Plakad', 'Green Turqoise', 0, 'Regular', 'Male', '1', ''),
(742, 'IC000282', 'D9F0003', 'PK GT', 'Plakad', 'Green Turqoise', 0, 'Regular', 'Female', '1', ''),
(743, 'IC000283', 'D9M0004', 'PK GT', 'Plakad', 'Green Turqoise', 0, 'Junior', 'Male', '1', ''),
(744, 'IC000284', 'D9F0004', 'PK GT', 'Plakad', 'Green Turqoise', 0, 'Junior', 'Female', '1', ''),
(745, 'IC000285', 'D10M0001', 'PK WP', 'Plakad', 'White Platinum', 0, 'Regular', 'Male', '1', ''),
(746, 'IC000286', 'D10F0001', 'PK WP', 'Plakad', 'White Platinum', 0, 'Regular', 'Female', '1', ''),
(747, 'IC000287', 'D10M0002', 'PK WP', 'Plakad', 'White Platinum', 0, 'Junior', 'Male', '1', ''),
(748, 'IC000288', 'D10F0002', 'PK WP', 'Plakad', 'White Platinum', 0, 'Junior', 'Female', '1', ''),
(749, 'IC000289', 'D10M0003', 'PK SG', 'Plakad', 'Super Gold', 0, 'Regular', 'Male', '1', ''),
(750, 'IC000290', 'D10F0003', 'PK SG', 'Plakad', 'Super Gold', 0, 'Regular', 'Female', '1', ''),
(751, 'IC000291', 'D10M0004', 'PK SG', 'Plakad', 'Super Gold', 0, 'Junior', 'Male', '1', ''),
(752, 'IC000292', 'D10F0004', 'PK SG', 'Plakad', 'Super Gold', 0, 'Junior', 'Female', '1', ''),
(753, 'IC000293', 'D11M0001', 'PK MC', 'Plakad', 'Multicolor', 0, 'Regular', 'Male', '1', ''),
(754, 'IC000294', 'D11F0001', 'PK MC', 'Plakad', 'Multicolor', 0, 'Regular', 'Female', '1', ''),
(755, 'IC000295', 'D11M0002', 'PK MC', 'Plakad', 'Multicolor', 0, 'Junior', 'Male', '1', ''),
(756, 'IC000296', 'D11F0002', 'PK MC', 'Plakad', 'Multicolor', 0, 'Junior', 'Female', '1', ''),
(757, 'IC000297', 'D11M0003', 'PK MCF', 'Plakad', 'Multicolor Fancy', 0, 'Regular', 'Male', '1', ''),
(758, 'IC000298', 'D11F0003', 'PK MCF', 'Plakad', 'Multicolor Fancy', 0, 'Regular', 'Female', '1', ''),
(759, 'IC000299', 'D11M0004', 'PK MCF', 'Plakad', 'Multicolor Fancy', 0, 'Junior', 'Male', '1', ''),
(760, 'IC000300', 'D11F0004', 'PK MCF', 'Plakad', 'Multicolor Fancy', 0, 'Junior', 'Female', '1', ''),
(761, 'IC000301', 'D11M0005', 'PK MCG', 'Plakad', 'Multicolor Galaxy', 0, 'Regular', 'Male', '1', ''),
(762, 'IC000302', 'D11F0005', 'PK MCG', 'Plakad', 'Multicolor Galaxy', 0, 'Regular', 'Female', '1', ''),
(763, 'IC000303', 'D11M0006', 'PK MCG', 'Plakad', 'Multicolor Galaxy', 0, 'Junior', 'Male', '1', ''),
(764, 'IC000304', 'D11F0006', 'PK MCG', 'Plakad', 'Multicolor Galaxy', 0, 'Junior', 'Female', '1', ''),
(765, 'IC000305', 'D12M0001', 'PK DE SG', 'Plakad', 'Dumbo Ear Super Gold', 0, 'Regular', 'Male', '1', ''),
(766, 'IC000306', 'D12F0001', 'PK DE SG', 'Plakad', 'Dumbo Ear Super Gold', 0, 'Regular', 'Female', '1', ''),
(767, 'IC000307', 'D12M0002', 'PK DE SG', 'Plakad', 'Dumbo Ear Super Gold', 0, 'Junior', 'Male', '1', ''),
(768, 'IC000308', 'D12F0002', 'PK DE SG', 'Plakad', 'Dumbo Ear Super Gold', 0, 'Junior', 'Female', '1', ''),
(769, 'IC000309', 'D12M0003', 'PK DE CP', 'Plakad', 'Dumbo Ear Cooper', 0, 'Regular', 'Male', '1', ''),
(770, 'IC000310', 'D12F0003', 'PK DE CP', 'Plakad', 'Dumbo Ear Cooper', 0, 'Regular', 'Female', '1', ''),
(771, 'IC000311', 'D12M0004', 'PK DE CP', 'Plakad', 'Dumbo Ear Cooper', 0, 'Junior', 'Male', '1', ''),
(772, 'IC000312', 'D12F0004', 'PK DE CP', 'Plakad', 'Dumbo Ear Cooper', 0, 'Junior', 'Female', '1', ''),
(773, 'IC000313', 'D12M0005', 'PK DE MC', 'Plakad', 'Dumbo Ear Multicolor', 0, 'Regular', 'Male', '1', ''),
(774, 'IC000314', 'D12F0005', 'PK DE MC', 'Plakad', 'Dumbo Ear Multicolor', 0, 'Regular', 'Female', '1', ''),
(775, 'IC000315', 'D12M0006', 'PK DE MC', 'Plakad', 'Dumbo Ear Multicolor', 0, 'Junior', 'Male', '1', ''),
(776, 'IC000316', 'D12F0006', 'PK DE MC', 'Plakad', 'Dumbo Ear Multicolor', 0, 'Junior', 'Female', '1', ''),
(777, 'IC000317', 'E1M0001', 'GT SR', 'Giant', 'Super Red', 0, 'Regular', 'Male', '1', ''),
(778, 'IC000318', 'E1F0001', 'GT SR', 'Giant', 'Super Red', 0, 'Regular', 'Female', '1', ''),
(779, 'IC000319', 'E1M0002', 'GT SR', 'Giant', 'Super Red', 0, 'Junior', 'Male', '1', ''),
(780, 'IC000320', 'E1F0002', 'GT SR', 'Giant', 'Super Red', 0, 'Junior', 'Female', '1', ''),
(781, 'IC000321', 'E2M0001', 'GT SB', 'Giant', 'Super Black', 0, 'Regular', 'Male', '1', ''),
(782, 'IC000322', 'E2F0001', 'GT SB', 'Giant', 'Super Black', 0, 'Regular', 'Female', '1', ''),
(783, 'IC000323', 'E2M0002', 'GT SB', 'Giant', 'Super Black', 0, 'Junior', 'Male', '1', ''),
(784, 'IC000324', 'E2F0002', 'GT SB', 'Giant', 'Super Black', 0, 'Junior', 'Female', '1', ''),
(785, 'IC000325', 'E3M0001', 'GT NM', 'Giant', 'Nemo', 0, 'Regular', 'Male', '1', ''),
(786, 'IC000326', 'E3F0001', 'GT NM', 'Giant', 'Nemo', 0, 'Regular', 'Female', '1', ''),
(787, 'IC000327', 'E3M0002', 'GT NM', 'Giant', 'Nemo', 0, 'Junior', 'Male', '1', ''),
(788, 'IC000328', 'E3F0002', 'GT NM', 'Giant', 'Nemo', 0, 'Junior', 'Female', '1', ''),
(789, 'IC000329', 'E3M0003', 'GT GZ', 'Giant', 'Grizzled', 0, 'Regular', 'Male', '1', ''),
(790, 'IC000330', 'E3F0003', 'GT GZ', 'Giant', 'Grizzled', 0, 'Regular', 'Female', '1', ''),
(791, 'IC000331', 'E3M0004', 'GT GZ', 'Giant', 'Grizzled', 0, 'Junior', 'Male', '1', ''),
(792, 'IC000332', 'E3F0004', 'GT GZ', 'Giant', 'Grizzled', 0, 'Junior', 'Female', '1', ''),
(793, 'IC000333', 'E4M0001', 'GT CP', 'Giant', 'Cooper', 0, 'Regular', 'Male', '1', ''),
(794, 'IC000334', 'E4F0001', 'GT CP', 'Giant', 'Cooper', 0, 'Regular', 'Female', '1', ''),
(795, 'IC000335', 'E4M0002', 'GT CP', 'Giant', 'Cooper', 0, 'Junior', 'Male', '1', ''),
(796, 'IC000336', 'E4F0002', 'GT CP', 'Giant', 'Cooper', 0, 'Junior', 'Female', '1', ''),
(797, 'IC000337', 'E4M0003', 'GT WP', 'Giant', 'White Platinum', 0, 'Regular', 'Male', '1', ''),
(798, 'IC000338', 'E4F0003', 'GT WP', 'Giant', 'White Platinum', 0, 'Regular', 'Female', '1', ''),
(799, 'IC000339', 'E4M0004', 'GT WP', 'Giant', 'White Platinum', 0, 'Junior', 'Male', '1', ''),
(800, 'IC000340', 'E4F0004', 'GT WP', 'Giant', 'White Platinum', 0, 'Junior', 'Female', '1', ''),
(801, 'IC000341', 'E5M0001', 'GT MC', 'Giant', 'Multicolor', 0, 'Regular', 'Male', '1', ''),
(802, 'IC000342', 'E5F0001', 'GT MC', 'Giant', 'Multicolor', 0, 'Regular', 'Female', '1', ''),
(803, 'IC000343', 'E5M0002', 'GT MC', 'Giant', 'Multicolor', 0, 'Junior', 'Male', '1', ''),
(804, 'IC000344', 'E5F0002', 'GT MC', 'Giant', 'Multicolor', 0, 'Junior', 'Female', '1', ''),
(805, 'IC000345', 'F1M0001', 'DTPK MC', 'DoubleTail Plakad', 'Multicolor', 0, 'Regular', 'Male', '1', ''),
(806, 'IC000346', 'F1F0001', 'DTPK MC', 'DoubleTail Plakad', 'Multicolor', 0, 'Regular', 'Female', '1', ''),
(807, 'IC000347', 'F1M0002', 'DTPK MC 01', 'DoubleTail Plakad', 'Multicolor', 0, 'Junior', 'Male', '1', ''),
(808, 'IC000348', 'F1F0002', 'DTPK MC', 'DoubleTail Plakad', 'Multicolor', 0, 'Junior', 'Female', '1', ''),
(810, 'CPNG1M0003', '', 'I<NAME> 2', 'Halfmoon', 'Super Red', 0, '-', 'Female', '1', ''),
(811, 'CPNG1M0003', '', 'xxxxx', 'zzzzzzz', 'zzzzzzz', 0, 'zzzzzzz', 'Male', '1', 'zzzzzzz'),
(812, 'CPNG1M0003', 'contoh', 'contoh', 'contoh', 'cotntoh', 0, 'toms', 'Male', '1', ''),
(813, 'CPNG1M0003', 'Botolan', 'Botolan', 'Botolan', 'Botolan', 0, 'Baby', 'Male', '1', ''),
(814, 'CPNG1M0003', 'Toples 2L', 'Toples 2L', 'Toples 2L', 'Toples 2L', 0, 'Junior', 'Male', '1', ''),
(815, 'CPNGoples ', 'Toples 2L', 'Toples 2L', 'Toples 2L', 'Toples 2L', 0, 'Regular', 'Male', '1', ''),
(816, 'CPNGoples ', 'Toples 3L', 'Toples 3L', 'Toples 3L', 'Toples 3L', 0, 'Junior', 'Male', '1', ''),
(817, 'CPNGoples ', 'Toples 3L', 'Toples 3L', 'Toples 3L', 'Toples 3L', 0, 'Regular', 'Male', '1', ''),
(818, 'CPNGoples ', 'Toples 4L', 'Toples 4L', 'Toples 4L', 'Toples 4L', 0, 'Regular', 'Male', '1', ''),
(819, 'CPNGoples ', 'Toples 4L', 'Toples 4L', 'Toples 4L', 'Toples 4L', 0, 'Junior', 'Male', '1', '');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_customer`
--
CREATE TABLE `tbl_customer` (
`idcustomer` int(10) NOT NULL,
`codecustomer` varchar(10) NOT NULL,
`companyname` varchar(250) NOT NULL,
`address01` text NOT NULL,
`city01` varchar(250) NOT NULL,
`name01` varchar(250) NOT NULL,
`jabatan01` varchar(250) NOT NULL,
`phone` varchar(50) NOT NULL,
`email` varchar(250) NOT NULL,
`country` varchar(250) NOT NULL,
`status` varchar(250) NOT NULL,
`note` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tbl_customer`
--
INSERT INTO `tbl_customer` (`idcustomer`, `codecustomer`, `companyname`, `address01`, `city01`, `name01`, `jabatan01`, `phone`, `email`, `country`, `status`, `note`) VALUES
(137, 'C000001', 'Atep Nurbana', 'Jalan Siliwangi III RT 004/ RW 010 No. 20, Medan Satria, Bekasi, Jawa Barat', 'KOTA BEKASI', 'Atep Nurbana', '', '82112121150', '', 'Indonesia', '', ''),
(139, 'C000003', '<NAME>', 'Jl. Ciputat baru gg. Harapan 1 RT 02/ RW 05, keluarahan Sawah, Kecamatam Ciputat', 'KOTA TANGERANG SELATAN', '<NAME>', '', '89601132568', '<EMAIL>', 'Indonesia', '', ''),
(140, 'C000004', 'Adi', 'Jl. Pantai indah Utara 3 Kav. 18-19, Pantai Indah Kapuk, Keluarahan Kapuk Muara, kecamatan Penjaringan, Jakarta Utara 14460', 'KOTA JAKARTA UTARA', 'Adi', '', '81219983333', '', 'Indonesia', '', ''),
(141, 'C000005', '<NAME>', 'Jl. Got<NAME>ong, jati asri residence D/4 RT01/RW18, Kelurahan Jati Rahayu, Kecamatan Pondok Melati, Pondok Gede, Bekasi 17414', 'KOTA BEKASI', '<NAME>', '', '97878212221', '', 'Indonesia', '', ''),
(142, 'C000006', '<NAME>', 'Jakarta Selatan, Cilandak, Jl. Cilandak Dalam, Perumahan Casmora No. C29 12430', 'KOTA JAKARTA SELATAN', 'Dylan Caesar', '', '818994797', '', 'Indonesia', '', ''),
(143, 'C000007', 'Vandy', 'Jl. Verdi Timur 1 no. 001 Cluster Verdi Symphonia, gading Serpong, 15334', 'KOTA TANGERANG', 'Vandy', '', '81299003939', '', 'Indonesia', '', ''),
(144, 'C000008', '<NAME>', 'Jl. Walet raya blok FA 23 Perumahan Graha kembangan, Keluarahan Kembangan, Kecamatan Kebomas', 'KOTA GRESIK', '<NAME>', '', '81330404451', '', 'Indonesia', '', ''),
(145, 'C000009', 'Arlen', 'Apratemen Aeropolis, Jl. Marsekal surya darma, Blok A no. 1, Pajang, benda, Tower ACR 3.7.20', 'KOTA TANGERANG', 'Arlen', '', '81299069991', '', 'Indonesia', '', ''),
(146, 'C000010', 'Kelvin', 'Bogor Nirwana Residence Panorama 1 no. 7, Bogor Selatan 16135', 'KOTA BOGOR', 'Kelvin', '', '81310168524', '', 'Indonesia', '', ''),
(147, 'C000011', '<NAME>', 'Jl. Pertanian selatan no. 21 RT007/RW03, Kelurahan Klender, Kecamatan Duren Sawit, Jakarta Timur', 'KOTA JAKARTA TIMUR', '<NAME>', '', '85718849035', '<EMAIL>', 'Indonesia', '', ''),
(148, 'C000012', '<NAME>', 'Jl. Paseban Raya gg. Kramat Sawah 3 no. E7 RT001/RW02, Kelurahan Paseban, kecamatan Senen', 'KOTA JAKARTA PUSAT', '<NAME>', '', '81230114035', '<EMAIL>', 'Indonesia', '', ''),
(149, 'C000013', '<NAME>', 'Jl. Palem no. 06, Kelurahan Suci, Kecamatan Manyar, Kota Gresik, Jawa Timur', 'KOTA GRESIK', '<NAME>', '', '87836150964', '', 'Indonesia', '', ''),
(150, 'C000014', '<NAME>', 'Jl. Palangkaraya No. 33 Perum GKB, Keluarahan Sukomulyo, Kecamatan Manyar, kabupaten Gresik', 'KABUPATEN GRESIK', '<NAME>', '', '812322837988', '', 'Indonesia', '', ''),
(151, 'C000015', '<NAME>', 'Jl. H. Pekir 1 RT007/006 no.26c, Kebayoran Lama, Grogol Utara', 'KOTA JAKARTA SELATAN', '<NAME>', '', '81280912717', '<EMAIL>', 'Indonesia', '', ''),
(152, 'C000016', '<NAME>', 'Grha Sentra Jl. Agung Perkasa IX Blok K1 no. 26-27, Sunter, Jakarta Utara', 'KOTA JAKARTA UTARA', '<NAME>', '', '81998448854', '', 'Indonesia', '', ''),
(153, 'C000017', 'Wisnu', 'Komp. Jatiasih indah Jl. Bintan 2 no 111, RT02/RW06, keluarahan Jatirasa, kecamatan Jatiasih', 'KOTA BEKASI', 'Wisnu', '', '8111896009', '', 'Indonesia', '', ''),
(154, 'C000018', 'Zaki Mubaraq', 'Graha gardenia 1 blok XG 29/52, Citra Raya, keluarahan mekar Bakti, kecamatan Panongan, Kabupaten Tangerang, banten 15710', 'KOTA TANGERANG', 'Zaki Mubaraq', '', '81386088284', '', 'Indonesia', '', ''),
(155, 'C000019', 'Rizky Waka', 'Ampel lembang No. 40, Keluarahan Ampel, kecamatan Semampir, Surabaya Jawa Timur', 'KOTA SURABAYA', 'Rizky Waka', '', '85736932991', '', 'Indonesia', '', ''),
(156, 'C000020', '<NAME>', 'Jl. Dahlia II no.20 A, Komp. PJMI Bintaro, RT07/RW08, keluarahan Jurangmangu Timur, kecamatan Pondok Aren', 'KOTA TANGERANG SELATAN', '<NAME>', '', '85893238306', '<EMAIL>', 'Indonesia', '', ''),
(157, 'C000021', 'Albert', 'Jalan Raya Kelapa Nias blok GN 9, Kelapa Gading, Jakarta Utara \"Lazyboss Caf?\"\"', 'KOTA JAKARTA', 'Albert', '', '818732626', '', 'Indonesia', '', ''),
(158, 'C000022', 'Handoko', 'Damar Golf 1 no. 12, bukit glof mediterania, Pantai Indah Kapuk, RT007/RW005', 'KOTA JAKARTA UTARA', 'Handoko', '', '81383693999', '', 'Indonesia', '', ''),
(159, 'C000023', 'Billie', 'Harapan Indah 2 Cluster Taman Sari blok HN 3 no. 9b, bekasi Barat, medan Satria, 17133', 'KOTA BEKASI', 'Blille', '', '81380080440', '', 'Indonesia', '', ''),
(160, 'C000024', '<NAME>', 'Jl. Sabilillah no. 58 (Toko Mulia Makmur), Kecamatan Citereup', 'K<NAME>', '<NAME>', '', '81314914224', '', 'Indonesia', '', ''),
(161, 'C000025', 'Josphine', 'Grisea Timur 1 no. 6, The Spring, gading Serpong, Cihuni', 'KOTA TANGERANG', 'Josephine', '', '81212199550', '', 'Indonesia', '', ''),
(162, 'C000026', 'Bowo', 'Green Poca Residence Jl. Kayumanis Raya no. 179 Pondok Cabe, Kelurahan Pondok Cabe Udik, kecamatan Pamulang', 'KOTA TANGERANG SELATAN', 'Bowo', '', '81219546689', '<EMAIL>', 'Indonesia', '', ''),
(163, 'C000027', '<NAME>', 'Jl. <NAME> 28, Bangunsari, Ponorogo', 'KOTA PONOROGO', 'Debby Eko', '', '82142991188', '', 'Indonesia', '', ''),
(164, 'C000028', 'Sultan', 'Jl. <NAME> Gg. 19 no.44, RT02/RW04, KedungKandang, Malang', 'KOTA MALANG', 'Sultan', '', '81298428363', '<EMAIL>', 'Indonesia', '', ''),
(165, 'C000029', 'Pandu', 'Bukit Cinere Indah, Jl. Puncak Pesanggrahan 8 no.12, Cinere Limo, Kota Depok', 'KOTA DEPOK', 'Pandu', '', '81288588530', '<EMAIL>', 'Indonesia', '', ''),
(166, 'C000030', 'Adi', 'Apratemen Aeropolis,Tower ACR 3.7.19', 'KOTA TANGERANG', 'Adi', '', '987878094853', '', 'Indonesia', '', ''),
(167, 'C000031', '<NAME>', 'Jl. Kartika no. 76, RT1/RW3, Keluarahan Kebonsari, kecamatan Temanggung, Kota temanggung', 'KOTA TEMANGGUNG', '<NAME>', '', '82129994979', '<EMAIL>', 'Indonesia', '', ''),
(168, 'C000032', 'Hendra', 'Jl. Guru Mugni gang Andil no. 228, Karet, Semanggi', 'KOTA JAKARTA SELATAN', 'hendra', '', '87877044833', '', 'Indonesia', '', ''),
(169, 'C000033', 'Ugi Cahyo Setiono', 'Pesona Cilebut 1 Blok i-2 no. 28 Cilebut Barat, RT02/RW13', 'KABUPATEN BOGOR', 'Ugi Cahyo Setiono', '', '81289659134', '', 'Indonesia', '', ''),
(170, 'C000034', 'Bhrata Sena', 'Taman Aries Blok E 3 no.11, jakarta Barat 11620', 'KOTA JAKARTA BARAT', 'Bhrata Sena', '', '87780804595', '', 'Indonesia', '', ''),
(171, 'C000035', '<NAME>', 'Jl. <NAME>, Rawalumbu, gg. Ondam Markum RT001/RW002 no.68 17116', 'KOTA BEKASI', 'Haryo Bagus', '', '816102252', '', 'Indonesia', '', ''),
(172, 'C000036', '<NAME>', '\"<NAME>\" Jl. Kaliurang KM 14 RT 09/ RW 17 Desa Nglanjaran Sardonoharjo, Ngagklik, Sleman', 'KOTA YOGYAKARTA', '<NAME>', '', '81275564154', '', 'Indonesia', '', ''),
(173, 'C000037', '<NAME>', 'Cilebut Residence 1 Cluster Anthorium Blok J-3, Kecamatan Sukaraja 16710', 'KABUPATEN BOGOR', '<NAME>', '', '82169009339', 'nabilsuharsanapribadi<EMAIL>', 'Indonesia', '', ''),
(174, 'C000038', 'Chandra', 'Jl. H. tabri RT004/RW03 no. 174 Keluarahan Batu Ampar, Kecamatan Kramat Jati, Jakarta 13510', 'KOTA JAKARTA TIMUR', 'Chandra', '', '85966392777', '<EMAIL>', 'Indonesia', '', ''),
(175, 'C000039', '<NAME>', 'Jl. Perjuangan Majasem gang SDN majasem 2, RT04/RW08, Kelurahan Karyamulya, Kecamatan Kesambi', 'KOTA CIREBON', 'R<NAME>', '', '895360942000', '<EMAIL>', 'Indonesia', '', ''),
(176, 'C000040', 'A<NAME>', 'Pamu;ang Permai baru, Jl. Rajawali Blok I 19ab RT004/RW022, Kecamatan Pamulang 15417', 'KOTA PAMULANG', 'Adi Putra', '', '87876214926', '', 'Indonesia', '', ''),
(177, 'C000041', 'Marwan', 'Komp. Ranau Estate Tahap 1 Blok C no. 02, keluarahan Panggung Jati, kecamatan Taktakan, kota Serang, banten', 'KOTA SERANG', 'Marwan', '', '89525326332', '', 'Indonesia', '', ''),
(178, 'C000042', '<NAME>', 'Jl. Sawah Lio 4 gang Kiara 1 RT 003/RW 05 no.26, keluarahan jembatan Lima, Kecamatan Tambora', 'KOTA JAKARTA BARAT', '<NAME>', '', '85777893132', '', 'Indonesia', '', ''),
(179, 'C000043', '<NAME>', 'Jl. Komplek Taman Asri Blok A6 no.12, RT003/RW002, keluarahan Cipadu Jaya, kecamatan Larangan', 'KOTA TANGERANG', '<NAME>', '', '81224161106', '', 'Indonesia', '', ''),
(180, 'C000044', 'Suendra', 'Jl. <NAME> No. 4, RT 004/RW 011, Penjaringan, jakarta Utara', 'KOTA JAKARTA UTARA', 'Suendra', '', '8179993711', '', 'Indonesia', '', ''),
(181, 'C000045', '<NAME>', 'Jl. Kp. Rawa Barat no. 18 RT004/RW005, Kecamatan Pondok Pucung, kelurahan pondok Aren', 'KOTA TANGERANG SELATAN', '<NAME>', '', '81293309855', '', 'Indonesia', '', ''),
(182, 'C000046', 'Kevin', 'Jl. Baja 4 (Jl. Semang Raya no. 58 RT8/RW4) Kotabumi, Kec. Purwakarta, Kota Cilegon, Banten 42434', 'KOTA CILEGON', 'Kevin', '', '8128080897', '<EMAIL>', 'Indonesia', '', ''),
(183, 'C000047', '<NAME>', 'Sleman Lor Blok Telaga, RT004/RW001', 'OTA INDRAMAYU', '<NAME>', '', '895801018961', '', 'Indonesia', '', ''),
(184, 'C000048', '<NAME>', 'Jl. Kp Baru no.78, Klender, RT 12 / RW 01, Keluarahan Jatinegaram Kecamatan Cakung', 'KOTA JAKARTA TIMUR', '<NAME>', '', '88212791138', '', 'Indonesia', '', ''),
(185, 'C000049', '<NAME>', 'Peneleh 6 no. 52 RT006/RT003, Kelurahan Peneleh, Kecamatan Genteng, Surabaya', 'KOTA SURABAYA', '<NAME>', '', '81222558582', '', 'Indonesia', '', ''),
(186, 'C000050', '<NAME>', 'Graha Sevilla Blok T19 no.85, Perumahan Citra Raya, Cikupa, Kabupaten Tangerang', 'KABUPATEN TANGERANG', '<NAME>', '', '811121673', '', 'Indonesia', '', ''),
(187, 'C000051', 'Xander', 'Apartemen Mediterania Garden Residences 2 Tower Kenanga unit 19ka Jl. Tanjung Duren 11470, Grogol Petamburan', 'KOTA JAKARTA BARAT', 'Xander', '', '87882207776', '', 'Indonesia', '', ''),
(188, 'C000052', '<NAME>', 'Jl. RH Umar no. 30 RT005/RW018, Keluarahan Jaka Setia, Kecamatan Bekasi Selatan', 'KOTA BEKASI', '<NAME>', '', '82111350705', '', 'Indonesia', '', ''),
(189, 'C000053', '<NAME>', 'Jl. Raya Kelapa Nias Blok GN9, Kelurahan Kelapa Gading Timur', 'KOTA JAKARTA', '<NAME>', '', '8787828787', '', 'Indonesia', '', ''),
(190, 'C000054', '<NAME>', 'Kota Harapan Indah 2 Cluster Aralia HY 27 no. 8, keluarahan Pusaka Rakyat, kecamatan Tarumajaya 17240', 'KABUPATEN BEKASI UTARA', '<NAME>', '', '81224287733', '', 'Indonesia', '', ''),
(191, 'C000055', 'H<NAME>zal', 'Perum. Kemuning Permai Blok D8 no. 27 Desa jeungjing, kecamatan Cisoka', 'KABUPATEN TANGERANG', 'Haris Aprizal', '', '8131795779', '', 'Indonesia', '', ''),
(192, 'C000056', 'Bhayu Purnomo Artasukma', 'Perum. Bukit Cirendeu, Blok B1/17, RT02/RW016, Kelurahan Pisangan, Kecamatan Ciputat Timur', 'KOTA TANGERANG SELATAN', 'Bhayu Purnomo Artasukma', '', '82112712655', '', 'Indonesia', '', ''),
(193, 'C000057', '<NAME>', 'Jl. Cilandak KKO gg. Marga no. 008. RT010/RW008, Kelurahan Ragunan, Kedamatan Pasar Minggu', 'KOTA JAKARTA SELATAN', '<NAME>', '', '8119416700', '', 'Indonesia', '', ''),
(194, 'C000058', 'Cahya', 'Jl. Nusa Indah 2 no.4, RT02/RW09', 'KOTA BOGOR', 'Cahya', '', '8119510046', '', 'Indonesia', '', ''),
(195, 'C000059', 'Ang<NAME>', 'Jl. B<NAME>oom, desa karang asem timur RT02/RW01, Citereup', 'KOTA BOGOR', 'Angga Kusuma', '', '81211267374', '', 'Indonesia', '', ''),
(196, 'C000060', '<NAME>', 'Metropolitan Mall Cileungsi lantai 1, Citra Arloji 16820', 'KOTA BOGOR', '<NAME>', '', '82111828830', '', 'Indonesia', '', ''),
(197, 'C000061', '<NAME>', 'Jl. MerakNgibing no.1B Sukaluyu, RT01/RW11, bandung 40123', 'KOTA BANDUNG', '<NAME>', '', '82240832582', '', 'Indonesia', '', ''),
(198, 'C000062', '<NAME>', 'Perumahan Aneka Elok Blok A5 no.13, penggilingan, Cakung', 'KOTA JAKARTA TIMUR', 'Tri Utami Soetanto', '', '82300149795', '', 'Indonesia', '', ''),
(199, 'C000063', '<NAME>', 'Jl. Rambutan B18 Perum. Pepabri Keniten Ponorogo', 'KOTA PONOROGO', 'Sum<NAME>', '', '83119986969', '', 'Indonesia', '', ''),
(200, 'C000064', 'Topan Dwi P', 'Jl. Biliton no.3 (Depan Pos Kamling) RT1/RW5, kecamatan Magetan', 'KOTA MAGETAN', 'Topan Dwi P', '', '81946483974', '', 'Indonesia', '', ''),
(201, 'C000065', 'Ersa Anugerah Putra', 'Ciledug indah 2 jalan mawar 3 blok e 12 no.6 RT02/ RW 03, Keluarahan Pedurenan Kecamatan Karang tengah 15159', 'KOTA TANGERANG', 'Ersa Anugerah Putra', '', '85718299210', '', 'Indonesia', '', ''),
(202, 'C000066', '<NAME>', 'Jalan Monjali, Nandan gang plongko RT 7 RW 39 no. 80 sariharjo, Ngaglik, Sleman', 'SLEMAN', '<NAME>', '', '85742000668', '', 'Indonesia', '', ''),
(203, 'C000067', 'Dias Pratama', 'Komplek Mega Endah Blok J no.18, RT 04/RW 04, kelurahan Karyamulya, Kecamatan Kesambi', 'KOTA CIREBON', 'Dias Pratama', '', '85224693065', '', 'Indonesia', '', ''),
(204, 'C000068', '<NAME>', 'Wisata Bukit Mas Blok E3/09, Cluster Luxembourg, Keluarahan Lidah Kulon, Kecamatan Lakarsantri', 'KOTA SURABAYA', '<NAME>', '', '87852250302', '', 'Indonesia', '', ''),
(205, 'C000069', '<NAME>', 'Limus Pratama Regency Blok I 1 no. 19 Rt01/RW07, Kelurahan Limus Nunggal, Kecamatan Cileungsi', 'BOGOR', '<NAME>', '', '85280546973', '', 'Indonesia', '', ''),
(206, 'C000070', 'Edo', 'Jl. <NAME>, RT01/RW02. Toko 8 Abadi, sebelah bengkel MJ Sport, depan Toko Bangunan Fokus, kecamatan Purwantoro, Kabupaten Wonogiri 57695', 'KABUPATEN WONOGIRI', 'Edo', '', '81217909390', '', 'Indonesia', '', ''),
(207, 'C000071', 'Shega', 'Jl. Dara Raya dg9/2 Vila Pamulang, Pondok Petir, Bojongsari, Depok 16517', 'KOTA DEPOK', 'Shega', '', '8562159297', '', 'Indonesia', '', ''),
(208, 'C000072', '<NAME>', 'Jl. B<NAME>ata Pulo RT02/RW05 no. 69, Jaksel, DKI Jakarta', 'KOTA JAKARTA SELATAN', '<NAME>', '', '81211121291', '', 'Indonesia', '', ''),
(209, 'C000073', 'Mat<NAME>do', 'Tukangan DN 2/272, RT16/RW04. kelurahan tegal Panggung, Kecamatan Danurejan. Yogyakarta', 'KOTA YOGYAKARTA', 'Matheus Edo', '', '85729298483', '', 'Indonesia', '', ''),
(210, 'C000074', '<NAME>', 'Jl. Sukun XV no.6 Perumnas Kamal, RT03/RW08. Kelurahan Banyuajuh, Kecamatan Kamal, Kota bangkalan', 'KOTA BANGKALAN', 'Bayu Suranatha', '', '82146340009', '', 'Indonesia', '', ''),
(211, 'C000075', 'Enrico', 'Jl. Tebet Timur Dalam V D no.10, RT006/RW005, keluarahan Tebet Timur, Kecamatan Tebet. Jaksel', 'KOTA JAKARTA SELATAN', 'Enrico', '', '8111742333', '', 'Indonesia', '', ''),
(212, 'C000076', 'Will', 'Jl. Dara 1 Dg 2 No. 8 Vila Pamulang, RT001/RW011. Kelurahan Pondok Petir, Kecamatan Bojongsari. Kota Depok', 'KOTA DEPOK', 'Will', '', '85782602688', '', 'Indonesia', '', ''),
(213, 'C000077', 'Deno', 'Jl. Gemak Blok B no.150, Jakasetia, Bekasi Selatan, 17147', 'BEKASI SELATAN', 'Deno', '', '87877377385', '', 'Indonesia', '', ''),
(214, 'C000078', '<NAME>', 'Jl. <NAME>, <NAME>, Kabupaten Bogor, Jawa barat 16770', 'KABUPAT<NAME>', '<NAME>', '', '', '', 'Indonesia', '0', ''),
(215, 'C000079', 'Stefanus Santoso', 'Royal Park 1 TL-2/30, Citraland, keluarahan LidahKulon, Kecamatan Lakarsantri, Surabaya, Jaw Timur', 'KOTA SURABAYA', 'Stefanus Santoso', '', '87859996397', '', 'Indonesia', '', ''),
(216, 'C000080', '<NAME>', 'green Harapan Housing no. 1B, jl. Harapan rempoa, Jakarta Selatan 12330', 'KOTA JAKARTA SELATAN', 'H<NAME>', '', '811824451', '', 'Indonesia', '', ''),
(217, 'C000081', '<NAME>', 'Jl. Duta Niaga 2 TN 16, Jakarta Selatan', 'KOTA JAKARTA SELATAN', '<NAME>', '', '', '', 'Indonesia', '', ''),
(218, 'C000082', 'Dani', 'Jl. Bima No.10 Kav. Agraria, RT02/RW08. Kelurahan Nusajaya, Kecamatan Karawaci, Tangerang', 'KOTA TANGERANG', 'Dani', '', '81218279696', '', 'Indonesia', '', ''),
(219, 'C000083', 'R<NAME>jaitan', 'Jl. Indigo Utama Mess Lion Air Blok L9 no.26-27, Desa Wanakerta talaga bestari, Balaraja', 'TANGERANG', 'Rendy Panjaitan', '', '81282597708', '', 'Indonesia', '', ''),
(220, 'C000084', 'Nikita Rosalini', 'Jl. BNI Raya no. 15b, Cilandak, Jakarta Selatan', 'KOTA JAKARTA SELATAN', 'Nikita Rosalini', '', '82136358570', '', 'Indonesia', '', ''),
(221, 'C000085', 'Aldo', 'The Mansion jasmine Tower Bellavista JB!)D, Jakarta Utara', 'JAKARTA UTARA', 'Aldo', '', '82135675746', '', 'Indonesia', '', ''),
(222, 'C000086', 'Kalam Hada Pratama', 'Jl. Gagak No. 89, RT01/RW18, keluarahan Sadang Serang, Kecamatan Coblong, Kota bandung, Jawa Barat', 'KOTA BANDUNG', 'Kalam Hada Pratama', '', '81573808793', '', 'Indonesia', '', ''),
(223, 'C000087', '<NAME>', 'Jl. Kampung Jawa Malang gang 5 No. 10B, RT009/RW007, Kelurahan Keagungan, Kecamatan Tamansari', 'KOTA JAKARTA BARAT', 'Dwi Cahyo', '', '8998169099', '', 'Indonesia', '', ''),
(224, 'C000088', 'Feliks', 'Jl. Mandala Barat 5 no.11 Tomang, Grogol Petamburan. RT06/RW04', 'KOTA JAKARTA BARAT', 'Feliks', '', '8122232174', '', 'Indonesia', '', ''),
(225, 'C000089', 'Anggara Pratama Putra', 'Jl. Saluyu B12 No.235. RT09/RW07. Kelurahan Cipamokolan, Kecamatan Rancasari. Kota Bandung', 'KOTA BANDUNG', 'Anggara Pratama Putra', '', '82123435141', '', 'Indonesia', '', ''),
(226, 'C000090', '<NAME>', 'Jl. Kalpataru no. 57 c RT03/RW03. Kelurahan Tawanganom, Kecamatan Magetan. Jawa Timur', 'MAGETAN', '<NAME>', '', '85330643642', '', 'Indonesia', '', ''),
(227, 'C000091', '<NAME>', 'Pulo Wonokromo 49A RT004/RW006. Kelurahan Wonokromo, Kecamatan Wonokromo. Surabaya', 'KOTA SURABAYA', '<NAME>', '<EMAIL>', '813358859155', '', 'Indonesia', '', ''),
(228, 'C000092', '<NAME>', 'PT MULTI KREASI SEJAHTERA Glass Distributor. Kawasan Industri Dwiapura Abadi Kav. C-15. Jl. Taya Rancaekek KM 24,5. RT03/RW07. Cimanggung, Bandung', 'KOTA BANDUNG', '<NAME>', '', '87887933576', '', 'Indonesia', '', ''),
(229, 'C000093', 'Fiska Perdana', 'Jl. Mungur 67 Wahana Logistik. RT11/RW04/ kelurahan Demangan, Kecamatan Gondokusuman. Kota Yogyakarta', 'KOTA YOGYAKARTA', 'Fiska Perdana', '', '87838506380', '', 'Indonesia', '', ''),
(230, 'C000094', '<NAME>', 'Jl. Pemuda, Kec. Jepara, Kabupaten Jepara, Jawa Tengah 59412 (Sebrang Salon Wira)', 'KABUPATEN JEPARA', '<NAME>', '', '82136259797', '', 'Indonesia', '', ''),
(231, 'C000095', '<NAME>', 'Serpong Garden Cluster Green Valley E25 no.11. Kelurahan Cibogo, Kecamatan Cisauk. Tangerang', 'KOTA TANGERANG', '<NAME>', '', '82111072121', '', 'Indonesia', '', ''),
(232, 'C000096', 'Rio', 'Komplek Kementerian Koperasi C130. RT06/RW09. Kelurahan Curug, Kecamatan Cimanggis. Depok', 'KOTA DEPOK', 'Rio', '', '811146882', '', 'Indonesia', '', ''),
(233, 'C000097', 'Vicky', 'Citra Garden 1 E3 no.27. RT006/RW009. Kalideres. Jakarta Barat', 'KOTA JAKARTA BARAT', 'Vicky', '', '89652112230', '', 'Indonesia', '', ''),
(234, 'C000098', 'Egar Maulana', 'Jl. <NAME>ita VII/JJ-28, Bumi Bintaro Permai, Pesanggrahan-Jakarta Selatan, 12320', 'KOTA JAKARTA SELATAN', 'Egar Maulana', '', '82122555006', '', 'Indonesia', '', ''),
(235, 'C000099', 'Fuad', 'Jl. <NAME>aya No.5 RT05/RW02. Kelurahan Pancoran Mas, Kecamatan Pancoran Mas Kota Depok (Karisa Salon)', 'KOTA DEPOK', 'Fuad', '', '82125249455', '', 'Indonesia', '', ''),
(236, 'C000100', '<NAME>', 'Jl. Alhuda 1 no.35 RT02/RW09, Kelurahan Jatimulya, Kecamatan Tambun Selatan (Rumah Samping Warung Pulsa, Pasar Tinggi Hitam)', 'KABUOATEN BEKASI', 'Agung Dwi Saputro', '', '81285827109', '', 'Indonesia', '', ''),
(237, 'C000101', '<NAME>', 'Jl. <NAME> no.14, Kelurahan Batu Ampar, Kecamatan Kramat Jati, Jakarta Timur 13520. (Depan TK Al Falah, Kontrakan Tengah)', 'KOTA JAKARTA TIMUR', '<NAME>', '', '85218131905', '', 'Indonesia', '', ''),
(238, 'C000102', '<NAME>', 'Komplek BPLK no. 26. Jl. Andara Pangkalan Jati Baru. RT01/RW02. Kelurahan Pangkalan Jati Baru, Kecamatan Cinere. DEPOK', 'KOTA DEPOK', 'Gigih Wicaksono', '', '8124884347', '', 'Indonesia', '', ''),
(239, 'C000103', 'Naufal', 'Jl. Pisangan Baru Utara no.3A. RT10/RW12. Kelurahan Pisangan Baru, Kecamatan Matraman, Jakarta Timur', 'KOTA JAKARTA TIMUR', 'Naufal', '', '85715848161', '', 'Indonesia', '', ''),
(240, 'C000104', 'Gatot Sujatmiko', 'Ngabean Kulon no.49 RT005/RW035. Ngaglik, Sleman. Daerah Istimewa Yogyakarta', 'KABUPATEN SLEMAN', 'Gatot Sujatmiko', '', '85228074016', '', 'Indonesia', '', ''),
(241, 'C000105', 'Felix', 'Jl. Telaga Raya no.14 RT17/RW1. Keluarahan Sunter Jaya, Kecamatan Tanjung Priok. Jakarta Utara', 'KOTA JAKARTA UTARA', 'Felix', '', '', '', 'Indonesia', '', ''),
(242, 'C000106', '<NAME>', 'Plasa Telkom, Jl. Teuku Umar No.6, Dauh Puri Klod, Denpasar Barat 80113', 'KOTA DENPASAR', '<NAME>', '<EMAIL>', '82144442587', '', 'Indonesia', '', ''),
(243, 'C000107', '<NAME>', 'Kost Sandang no. 68-69, palmerah. Jakarta Barat', 'KOTA JAKARTA BARAT', 'Reynal<NAME>avend', '', '81272992766', '', 'Indonesia', '', ''),
(244, 'C000108', '<NAME>', 'Ruko Puri Gardena Blok A2 No.1. Kelurahan Kalideres, kecamatan Kalideres. Jakarta Barat 11830', 'KOTA JAKARTA BARAT', 'Johan Hendriawan', '', '87882623080', '', 'Indonesia', '', ''),
(245, 'C000109', 'Ebi Gustiwo', 'Perumahan Binong Permai Blok F4 no. 17 RT02/RW07. Kelurahan Binong, Kecamatan Curug 15810. Tangerang', 'KOTA TANGERANG', 'Ebi Gustiwo', '', '82111016200', '', 'Indonesia', '', ''),
(246, 'C000110', '<NAME>', 'Jl. Jatisari II, Du 5 No.10 RTR006/RW014, Jakasampurna, Bekasi Selatan', 'KOTA BEKASI', '<NAME>', '<EMAIL>', '82185124564', '', 'Indonesia', '', ''),
(247, 'C000111', 'Agnes', 'Kost Andreas 1, Jl. E no. 1E RT011 RW03, Kelurahan Slipi, Kecamatan Palmerah, Jakarta Barat 11410', 'KOTA JAKARTA BARAT', 'Agnes', '', '81288066786', '', 'Indonesia', '', ''),
(248, 'C000112', '<NAME>', 'Jl. Dr. Cipto Gg. VII Blok F.11 (Depan SLB Dharma Wanita Sumenep) RT01 RW06', 'KOTA SUMENEP', 'Riezqi Alifanggi', '', '82333382083', '', 'Indonesia', '', ''),
(249, 'C000113', 'Irene', 'Villa Tomang Mas Blok A no.4 RT005 RW011. kelurahan Duri, Kecamatan Kebon Jeruk. Jakarta Barat', 'KOTA JAKARTA BARAT', 'Irene', '', '89611829933', '', 'Indonesia', '', ''),
(250, 'C000114', '<NAME>', 'Jl. Kebagusan II Gg Usin RT002 RW07 no. 20. Kelurahan Kebagusan, Kecamatan Pasar Minggu. Jakarta Selatan 12520', 'KOTA JAKARTA SELATAN', 'R<NAME>', '', '85212222215', '', 'Indonesia', '', ''),
(251, 'C000115', 'Dicky', 'Jl. <NAME>ah no. 27b/10. Gg Cipedes II (Sebelah Bidan Maria) RT01 RW05. Kelurahan Sukagalih, Kecamatan Sukajadi 40163, bandung', 'KOTA BANDUNG', 'Dicky', '', '82119011985', '', 'Indonesia', '', ''),
(252, 'C000116', '<NAME>', 'Jl. Bukit Beringin Elok 5/B382 RT03 RW16. Kelurahan Wonosari, Kecamatan Ngaliyan. Semarang', 'KOTA SEMARANG', '<NAME>', '', '82241826431', '', 'Indonesia', '', ''),
(253, 'C000117', '<NAME>', 'Komp. Simprug di Poris, blok F4/37 RT04 RW04. Kelurahan Poris Gaga, Kecamatan batuceper. Tangerang 15122', 'KOTA TANGERANG', '<NAME>', '', '81213679997', '', 'Indonesia', '', ''),
(254, 'C000118', 'I Gede Santika Putra', 'Plasa Telkom, Jl. Teuku Umar No.6, Dauh Puri Klod, Denpasar Barat 80113', 'KOTA DENPASAR', 'I Gede Santika Putra', '', '85792435965', '', 'Indonesia', '', ''),
(255, 'C000119', '<NAME>', 'Jl. Ebony IV Blok AC no. 14. Perum. Grand Orchard, kelapa gading 14140. Jakarta Utara', 'KOTA JAKARTA UTARA', '<NAME>', '', '87878797814', '', 'Indonesia', '', ''),
(256, 'C000120', 'R<NAME>', 'Lab. Diagnostik Caruban (Depan RSUD Caruban). Kelurahan Ngampel, Kecamatan Mejayan. Kabupaten Madiun', 'KABUPATEN MADIUN', 'Ridho Pradeja', '', '82336773322', '', 'Indonesia', '', ''),
(257, 'C000121', 'Jordan', 'Jl. Jembatan 3 Gang Lontar No. 29 RT014 RW003, Kelurahan Pejagalan, Kecamatan Penjaringan. Jakarta Utara', 'JKOTA JAKARTA UTARA', 'Jordan', '', '81296061001', '', 'Indonesia', '', ''),
(258, 'C000122', 'Aji Pamungkas', 'Depot jamu Ayu Kp. Sirnagalih Ds. Tanggeung RT02 RW03, Kota Cianjur', 'KOTA CIANJUR', 'Aji Pamungkas', '', '85711147264', '', 'Indonesia', '', ''),
(259, 'C000123', 'Tommy', 'Perumahan Sukaseuri, Jl. Sawo K4, RT26 RW10, Cikampek, Karawang', 'KARAWANG', 'Tommy', '', '81322967311', '', 'Indonesia', '', ''),
(260, 'C000124', '<NAME>', 'Perumahan The Pasadena Blok B-36 RT10 RW14, Cengkareng Timur. Jakarta Barat', 'KOTA JAKARTA BARAT', '<NAME>', '', '89601346344', '', 'Indonesia', '', ''),
(261, 'C000125', 'Nawawi Sanin', 'KA Nangka Jl. KH Muchtar Thabrani Gg Al-Mukhlisin II RT01 RW03. Kelurahan Perwira, Kecamatan Bekasi Utara. Kota Bekasi', 'KOTA BEKASI', 'Nawawi Sanin', '', '82110960607', '', 'Indonesia', '', ''),
(262, 'C000126', 'Tenaya', 'Jl. Werkudara no. 20, link br Tampak gangsul/Dangin Puri Kauh, Denpasar Utara', 'KOTA DENPASAR', 'Tenaya', '', '82147609808', '', 'Indonesia', '', ''),
(263, 'C000127', '<NAME>', 'Komp. Pondok Duta 1, Jl. Duta 5 No.4 RT003 RW 014. kelurahan Tugu, Kecamatan Ciamnggis. Kota Depok', 'KOTA DEPOK', '<NAME>', '<EMAIL>', '8111171984', '', 'Indonesia', '', ''),
(264, 'C000128', 'Darwin', 'Jl. Manggis Raya no.34 RT01 RW08. Kelurahan Rawa Buaya, Kecamatan Cengkareng. Jakarta Barat', 'KOTA JAKARTA BARAT', 'Darwin', '', '81293211239', '', 'Indonesia', '', ''),
(265, 'C000129', 'Aryo Rio', 'Pamedan TimurRT 03/RW06 Mangkunegaraan. Kecamatan Banjarsari. Surakarta, Jawa Tengah', 'KOTA SURAKARTA', 'Aryo Rio', '', '8562520430', '', 'Indonesia', '', ''),
(266, 'C000130', 'Noval', ' Jalan tanah 100 RT 05 RW 09 no 3 keluranahan Sudimara Jaya, Kecamatan Ciledug, Kota Tangerang, provinsi Banten kode pos 15151', 'KOTA TANGERANG', 'Noval', '', '81295320871', '', 'Indonesia', '', ''),
(267, 'C000131', '<NAME>', ' Jl. Cahaya Titis, Komplek Kavling UI Timur Blok F8 No.5, Tanah Baru, Beji, Depok, Jawa Barat 16426', 'KOTA DEPOK', '<NAME>', '', '87801002737', '', 'Indonesia', '', ''),
(268, 'C000132', '<NAME>', 'Jl. Pramuka Sari III no.53 RT02 RW08. Kelurahan Rawasari, Kecamatan Cempaka Putih. Jakarta Pusat', 'KOTA JAKARTA PUSAT', 'Dimas Fadillah', '<EMAIL>', '81296754631', '', 'Indonesia', '', ''),
(269, 'C000133', 'Nashrul', 'Jl. Cihanjuang-Cibaligo no. 29 (Sanggar) RT01 RW02, Parongpong. Kab. Bandung Barat', 'KABUPATEN BANDUNG BARAT', 'Nashrul', '', '82127347461', '', 'Indonesia', '', ''),
(270, 'C000134', 'Marwan', 'Jln imogiri timur km. 12 Bendogorok dk karangsemut. Kelurahan Trimulyo, Kecamatan Jetis. Bantul', 'KOTA BANTUL', 'Marwan', '<EMAIL>', '87839503789', '', 'Indonesia', '', ''),
(271, 'C000135', 'W<NAME>ana', 'Taman Cimanggu Jl. Tanjung IV Blok O7 no. 17 RT04 RW12. Kelurahan Kedungwaringin, Kecamatan Sereal. Bogor', 'KOTA BOGOR', 'Wahyudi Setyawan', '<EMAIL>', '818917988', '', 'Indonesia', '', ''),
(272, 'C000136', 'Gatra Putratama M', 'cluster pesona jatimulya No F3 , Kel Jatimulya, kec tambun selatan , kab bekasi 17510', 'KABUPATEN BEKASI', 'Gatra Putratama', '', '87885207035', '', 'Indonesia', '', ''),
(273, 'C000137', 'Fahrul Rizal', 'KGR mampang residance no.a4 Jl. Remaja RT 04 RW 06. Kelurahan Mampang, Kecamatan Pancoran Mas. Depok', 'KOTA DEPOK', 'Fahrul Rizal', '', '82110400085', '', 'Indonesia', '', ''),
(274, 'C000138', '<NAME>', ' Perumahan Limas Agung P5/7, Purwokerto Utara - Jawa Tengah (53121)', 'PURWOKERTO', '<NAME>', '<EMAIL>', '82220112220', '', 'Indonesia', '', ''),
(275, 'C000139', '<NAME>', 'Jl. H. Sidup No. 57 A RT04 RW03. Kelurahan Rempoa, Kecamatan Ciputat Timur. Tangerang Selatan', 'TANGERANG SELATAN', 'J<NAME>', '<EMAIL>', '81295888900', '', 'Indonesia', '', ''),
(276, 'C000140', 'Herman', 'Perumahan The River. Coloradi Blok D6 n0. 45 Parung Panjang RT04 RW013. Kabupaten Bogor', 'KABUPATEN BOGOR', 'Herman', '', '8119999514', '', 'Indonesia', '', ''),
(277, 'C000141', '<NAME>', 'Jl. Pajajaran no.21 (Lemongrass Resto) Bantarjati, Bogor Utara', 'KOTA BOGOR', '<NAME>anto', '', '8568940079', '', 'Indonesia', '', ''),
(278, 'C000142', '<NAME>', 'Jagakarsa Exclusive Townhouse Jl. Jagakarsa No 12 Kav 9 RT001 RW002. Kelurahan Ciganjur, Kecamatan Jagakarsa. Jakarta Selatan', 'KOTA JAKARTA SELATAN', '<NAME>', '', '81806538205', '', 'Indonesia', '', ''),
(279, 'C000143', 'Rizano Pramana', 'Jl.Telaga raya no. 14 RT17 RW01. Jakarta Utara', 'KOTA JAKARTA UTARA', 'Rizano Pramana', '', '82297619197', '', 'Indonesia', '', ''),
(280, 'C000144', 'Indra Gunawan', 'RT 03 RW10 no. 120 Kelurahan Cijujung, Kecamatan Sukaraja. Kabupaten Bogor', 'KABUPATEN BOGOR', 'Indra Gunawan', '<EMAIL>', '87770069452', '', 'Indonesia', '', ''),
(281, 'C000145', 'I<NAME>', 'Taman Laguna Cibubur Blok O3 No. 1, Jatikarya, Kec. Jatisampurna. Bekasi', 'KOTA BEKASI', 'Irfan Karunia Osa', '<EMAIL>', '81264732202', '', 'Indonesia', '', ''),
(282, 'C000146', 'Josh', 'Griya Bukit Jaya, Blok G14/3 RT06 RW26. Kelurahan Tlajung Udik, Kecamatan Gunung Putri. Bogor 16962', 'BOGOR', 'Josh', '', '82210098080', '', 'Indonesia', '', ''),
(283, 'C000147', 'Genta Hariangbanga', 'Vila Bogor Indah 6 Vluster Carissa Blok C4 no.9 RT001 RW014. Kelurahan Pasir Jambu, Kecamatan Sukaraja. Bogor', 'BOGOR', '<NAME>', '<EMAIL>', '8111102227', '', 'Indonesia', '', ''),
(284, 'C000148', '<NAME>', 'Jl. Kembang Agung 5 Blok F2 /45, komplek perumahan puri indah, Jakarta Barat', 'KOTA JAKARTA BARAT', '<NAME>', '<EMAIL>', '8558000882', '', 'Indonesia', '', ''),
(285, 'C000149', '<NAME>', 'Jl. Bareng tenes 4B no. 29 (rumah bawah) RT02 RW07. kelurahan Bareng, Kecamatan klojen. Malang, Jawa Timur', 'KOTA MALANG', '<NAME>', '', '8123308722', '', 'Indonesia', '', ''),
(286, 'C000150', 'Ferry', 'Cluster Nuansa Bumi Citalang No. A9, Purawakarta, Jawa Barat', 'PURWAKARTA', 'Ferry', '', '81288668920', '', 'Indonesia', '', ''),
(287, 'C000151', '<NAME>', 'Jl. Cendrawasih IX no. 161 RT09 RW 007. Kelurahan Jaticempaka, Kecamatan Pondok Gede. Bekasi', 'KOTA BEKASI', 'Esfiandiary Akbar', '', '87882000737', '', 'Indonesia', '', ''),
(288, 'C000152', '<NAME>', 'Perum Foresta, Cluster Placido K3/1, BSD city, kab. Tangerang, Pagedangan, Banten', 'KABUPATEN TANGERANG', '<NAME>', '', '81383798727', '', 'Indonesia', '', ''),
(289, 'C000153', '<NAME>', ' jl. Alam pesanggrahan VIII blok OD 43 no.4, Cinere, Depok', 'KOTA DEPOK', '<NAME>', '<EMAIL>', '8119192884', '', 'Indonesia', '', ''),
(290, 'C000154', 'Bramanda Heriantama', 'mess lion air blok L9 No 26/27 telaga bestari, balaraja, tangerang, banten', 'KOTA TANGERANG', 'Bramanada Heriantama', '<EMAIL>', '85726998569', '', 'Indonesia', '', ''),
(291, 'C000155', 'R<NAME> Sitorus', 'Anggrek cendrawasih 8A No 22. Kamar Q2, Kemanggisan, Kecamatan Palmerah. Jakarta Barat', 'KOTA JAKARTA BARAT', 'Ridho F Sitorus', '', '85270048833', '', 'Indonesia', '', ''),
(292, 'C000156', '<NAME>', 'Jl. Puskesmas 1 no. 24 RT5 RW07. Kelurahan Durikosambi, Kecamatan Cengkareng. Jakarta Barat', 'KOTA JAKARTA BARAT', 'Chaerul Rozikin', '', '85697777368', '', 'Indonesia', '', ''),
(293, 'C000157', 'Adit Eko Prasetyo', 'Puri Permai Blok H 04/15 RT 04/05 Ds.Pematang Kec.Tigaraksa, kabupaten Tangerang, Banten', 'KABUPATEN TANGERANG', 'Ad<NAME>', '', '81319620863', '', 'Indonesia', '', ''),
(294, 'C000158', '<NAME>', 'Taman Kedaung Jl. Kemuning IX F4/1. Tangerang Selatan', 'TANGERANG SELATAN', '<NAME>', '', '', '', 'Indonesia', '', ''),
(295, 'C000159', 'Hardy', 'Babatan Pratama 28, Bok VV-92, Wiyung, Surabaya, Jawa Timur', 'KOTA SURABAYA', 'Hardy', '', '87852250302', '', 'Indonesia', '', ''),
(296, 'C000160', 'Sat<NAME> W', 'Jl Plumpang Semper 10A (KPP Pratama Jakarta Koja), Rawa Badak Selatan. Jakarta Utara', 'KOTA JAKARTA UTARA', 'Satrio Gati W', '', '85743683414', '', 'Indonesia', '', ''),
(297, 'C000161', '<NAME>', ' Jl. Sumbawa V. Blok M5 No. 2. Perumahan Reni Jaya Tangerang Selatan (patokannya mushalla Al Kautsar, tembok rumah berwarna kuning), Kel. Pondok benda / Kec. Pamulang', 'TANGERANG SELATAN', 'M<NAME>', '', '87878731085', '', 'Indonesia', '', ''),
(298, 'C000162', '<NAME>', 'Jl. Makmur No.A-11, Kav. satria, Kepuh, Betro, Sedati, Sidoarjo Regency, East Java 61253, Indonesia 61253. Sidoarjo, Jawa Timur', 'SIDOARJO', '<NAME>', '', '82245222816', '', 'Indonesia', '', ''),
(299, 'C000163', 'Bhisma', 'Blossom Residence unit 2, Jl. KH Ramli No. 6 RT002 RW003, Kelurahan Menteng Dalam, Kecamatan tebet, jakarta Selatan', 'KOTA JAKARTA SELATAN', 'Bhisma', '<EMAIL>', '87881551966', '', 'Indonesia', '', ''),
(300, 'C000164', '<NAME>', 'Jl menur no 25-27 depan pasar kota pemalang. Kab Pemalang, Jawa Tengah 52313', 'KABUPATEN PEMALANG', '<NAME>', '<EMAIL>', '87898479856', '', 'Indonesia', '', ''),
(301, 'C000165', 'Semaya Adi', 'Jl. Puntodewo Kragilan (Rumah Pak Rudy) RT02 RW08. Kelurahan Sinduadi, Kecamatan Mlati. Sleman, Yogyakarta', 'SLEMAN', 'Semaya Adi', '', '81393613763', '', 'Indonesia', '', ''),
(302, 'C000166', 'Dion Pratama', 'Jl. Agung Perkasa 13 Blok J9B No. 19, Sunter, Tanjung Priok. Jakarta Utara', 'KOTA JAKARTA UTARA', 'Dion Pratama', '', '81380978599', '', 'Indonesia', '', ''),
(303, 'C000167', 'Yanto', 'Jl. Ruby Utara 1 no.15, Kelapa Dua Sangereng. Gading Serpong, tangerang, Banten', 'TANGERANG', 'Yanto', '', '8118772892', '', 'Indonesia', '', ''),
(304, 'C000168', 'Noprian', 'Jl. Inpres VI Gg. Melati no. 52 RT001 RW013. Kelurahan Larangan. Tangerang', 'TANGERANG', 'Noprian', '<EMAIL>', '82310903547', '', 'Indonesia', '', ''),
(305, 'C000169', '<NAME>', 'Kanara Green Vilage Blok E 3.7. Desa Sukamantri, Kecamatan Tamansari. Kabupaten Bogor', 'KABUPATEN BOGOR', '<NAME>', '', '85716572659', '', 'Indonesia', '', ''),
(306, 'C000170', '<NAME>', 'Jl. Cempaka Putih barat 25 no. 11 RT05 RW 07. Jakarta Pusat', 'KOTA JAKARTA PUSAT', '<NAME>', '<EMAIL>', '87764515777', '', 'Indonesia', '', ''),
(307, 'C000171', 'Wisnu Aditya', 'komp. Sudirman agung, JL.PB Sudirman blok B no.31 ( Kantor DDENGINE ) denpasar ,bali 80225', 'KOTA DENPASAR SELATAN', 'Wisnu Aditya', '<EMAIL>', '89505066688', '', 'Indonesia', '', ''),
(308, 'C000172', 'Alwen', 'Cluster Faraday, Faraday Selatan 1 no. 38. Gading Serpong, Pagedangan. Tangerang, Banten', 'TANGERANG', 'Alwen', '', '81806820255', '', 'Indonesia', '', ''),
(309, 'C000173', '<NAME>', 'Jalan Scientia Garden, Cluster Dalton. Dalton selatan 2 no 15. Gading Serpong. Tangerang', 'TANGERANG', '<NAME>', '', '81381797287', '', 'Indonesia', '', ''),
(310, 'C000174', '<NAME>', 'Jl meranti raya no 19 eramas 2000 jakarta timur 13950', 'KOTA JAKARTA TIMUR', '<NAME>', '', '81905026494', '', 'Indonesia', '', ''),
(311, 'C000175', '<NAME>', 'Jl. S. <NAME>. 8 Gedung Telkom Lt7. Jakarta Barat', 'KOTA JAKARTA BARAT', '<NAME>', '', '82173048346', '', 'Indonesia', '', ''),
(312, 'C000176', 'Bambang', 'Rumah Kos Bpk. H. Ismail. Jl. Manggis 16b RT06/RW02, Lumpang Bolong, Kelurahan Dermo,Bangil Kab.Pasuruan, Jawa Timur, 67153', 'KABUPATEN PASURUAN', 'Bambang', '', '82131564032', '', 'Indonesia', '', ''),
(313, 'C000177', 'sitta', 'bogor', 'KABUPATEN BOGOR', 'sitta', 'guru', '123456', '<EMAIL>', 'Indonesia', '1', 'note'),
(314, 'C000178', 'PT MDR', 'Depok', 'KOTA DEPOK', 'Rahandika Athaya', '-', '-', '-', 'Indonesia', '1', '-'),
(315, 'C000179', '<NAME>', 'PT Samudera Indonesia', 'KOTA JAKARTA SELATAN', 'Bhrata Sena', '-', '82112121150', '<EMAIL>', 'Indonesia', '1', '-'),
(316, 'C000180', '<NAME>', 'PT Samudera Indonesia', 'KOTA JAKARTA SELATAN', 'Bhrata Sena', '-', '82112121150', '<EMAIL>', 'Indonesia', '1', '-'),
(317, 'C000181', 'sisa sasi', 'depok jaya', 'KOTA DEPOK', 'Adi Kurnia', '', '', '', 'Indonesia', '1', ''),
(319, 'C000183', '<NAME>', '', 'KABUPATEN BANDUNG', 'Atep Nurbana 1', '', '', '', 'Indonesia', '1', ''),
(320, 'C000184', '-', '', 'KOTA BOGOR', 'No Name', '', '', '', 'zimbabwe', '0', ''),
(321, 'C000185', 'NN', '', 'KOTA BOGOR', 'NN', '', '', '', 'Indonesia', '1', ''),
(322, 'C000186', 'Andi', '', 'KOTA BOGOR', 'Andi', '', '', '', 'Indonesia', '1', ''),
(323, 'C000187', 'Alfonsus', '', 'KOTA BOGOR', 'Alfonsus', '', '', '', 'Indonesia', '1', 'Tg Username : Alfonsus'),
(324, 'C000188', '<NAME>', '', 'KOTA JAKARTA TIMUR', 'MyNamePianika', '', '', '', 'Indonesia', '1', ''),
(325, 'C000189', '<NAME>', '', 'ACEH BARAT', '<NAME>', '', '', '', 'Malasia', '1', ''),
(326, 'C000190', '<NAME>', '', 'KOTA MEDAN', '<NAME>', '', '', '', 'Indonesia', '1', '');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_fakturpajak`
--
CREATE TABLE `tbl_fakturpajak` (
`id_fakturpajak` int(12) NOT NULL,
`noinvoice` varchar(255) NOT NULL,
`nama` varchar(255) NOT NULL,
`alamat` text NOT NULL,
`npwp` varchar(255) NOT NULL,
`no_seri` varchar(255) NOT NULL,
`jumlah_fakturpajak` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tbl_farm`
--
CREATE TABLE `tbl_farm` (
`idfarm` int(10) NOT NULL,
`codefarm` varchar(10) NOT NULL,
`farmname` varchar(250) NOT NULL,
`address01` text NOT NULL,
`city01` varchar(250) NOT NULL,
`name01` varchar(250) NOT NULL,
`jabatan01` varchar(250) NOT NULL,
`phone` varchar(50) NOT NULL,
`email` varchar(250) NOT NULL,
`country` varchar(250) NOT NULL,
`status` varchar(250) NOT NULL,
`note` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tbl_farm`
--
INSERT INTO `tbl_farm` (`idfarm`, `codefarm`, `farmname`, `address01`, `city01`, `name01`, `jabatan01`, `phone`, `email`, `country`, `status`, `note`) VALUES
(1, 'F000000', 'Boston Premium Farm', 'Blk. C-D No.D16, RT.06/RW.07, Sukaresmi, Kec. Tanah Sereal, Kota Bogor, Jawa Barat 16165', 'KOTA BOGOR', '-', 'Direktur', '0878-2535-0085', '-', 'Indonesia', '1', 'https://goo.gl/maps/adPxQ45jY3hBG4no8');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_invoice`
--
CREATE TABLE `tbl_invoice` (
`idmasterinvoice` int(15) NOT NULL,
`idinvoice` varchar(255) DEFAULT NULL,
`dateinvoice` date DEFAULT NULL,
`jasa` varchar(255) DEFAULT NULL,
`ppn` decimal(10,0) DEFAULT NULL,
`pph` decimal(10,0) DEFAULT NULL,
`nominal` decimal(10,0) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tbl_mediarcm`
--
CREATE TABLE `tbl_mediarcm` (
`id_mediarcm` int(11) NOT NULL,
`jenis_media` varchar(255) NOT NULL,
`brand` varchar(255) NOT NULL,
`alamat` text NOT NULL,
`kota_kab` varchar(255) NOT NULL,
`periode_kontrak` varchar(255) NOT NULL,
`total` int(11) NOT NULL,
`januari` int(11) NOT NULL,
`febuari` int(11) NOT NULL,
`maret` int(11) NOT NULL,
`april` int(11) NOT NULL,
`mei` int(11) NOT NULL,
`juni` int(11) NOT NULL,
`juli` int(11) NOT NULL,
`agustus` int(11) NOT NULL,
`september` int(11) NOT NULL,
`oktober` int(11) NOT NULL,
`november` int(11) NOT NULL,
`desember` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tbl_monitoringharian`
--
CREATE TABLE `tbl_monitoringharian` (
`id_monitoringharian` int(11) NOT NULL,
`jenis_media` varchar(255) NOT NULL,
`brand` varchar(255) NOT NULL,
`alamat` text NOT NULL,
`kota_kab` varchar(255) NOT NULL,
`tempory` varchar(255) NOT NULL,
`jan` decimal(10,0) NOT NULL,
`feb` decimal(10,0) NOT NULL,
`mar` decimal(10,0) NOT NULL,
`apr` decimal(10,0) NOT NULL,
`mei` decimal(10,0) NOT NULL,
`jun` decimal(10,0) NOT NULL,
`jul` decimal(10,0) NOT NULL,
`agust` decimal(10,0) NOT NULL,
`sept` decimal(10,0) NOT NULL,
`oktob` decimal(10,0) NOT NULL,
`novem` decimal(10,0) NOT NULL,
`desem` decimal(10,0) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_monitoringharian`
--
INSERT INTO `tbl_monitoringharian` (`id_monitoringharian`, `jenis_media`, `brand`, `alamat`, `kota_kab`, `tempory`, `jan`, `feb`, `mar`, `apr`, `mei`, `jun`, `jul`, `agust`, `sept`, `oktob`, `novem`, `desem`) VALUES
(1, '-', '<NAME>', 'Jl Pajajaran X', 'Bogor', '12000', 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_monitoringhutang`
--
CREATE TABLE `tbl_monitoringhutang` (
`id_monitoringhutang` int(11) NOT NULL,
`tanggal` date NOT NULL,
`brand` varchar(255) NOT NULL,
`nomor` varchar(255) NOT NULL,
`nama_media` varchar(255) NOT NULL,
`deskripsi` text NOT NULL,
`unit` int(11) NOT NULL,
`ukuran` varchar(255) NOT NULL,
`harga_per_unit` int(11) NOT NULL,
`total` int(11) NOT NULL,
`persentasi_pekerjaan` int(11) NOT NULL,
`totalpengambilan_tanggal` int(11) NOT NULL,
`totalpengambilan_total` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_monitoringhutang`
--
INSERT INTO `tbl_monitoringhutang` (`id_monitoringhutang`, `tanggal`, `brand`, `nomor`, `nama_media`, `deskripsi`, `unit`, `ukuran`, `harga_per_unit`, `total`, `persentasi_pekerjaan`, `totalpengambilan_tanggal`, `totalpengambilan_total`) VALUES
(1, '0000-00-00', 'NIKKI SUPER', '001/PT.RCM/SPK/I/2020', 'BALIHO', 'PENGGALIAN TIANG, TANAM TIANG BARU, PERAKITAN LAMPU, PENGECETAN, COR DALAM TIANG, BALIHO MEBALI, TANA TORAJA', 1, '6X4', 0, 0, 0, 0, 0),
(2, '0000-00-00', 'NIKKI SUPER - 15.000 ISI 16 BATANG', '001/PT.RCM/SPK/I/2020', 'BALIHO', 'PASANG COVER BALIHO MEBALI', 1, '6X4', 0, 0, 0, 0, 0),
(3, '0000-00-00', 'CLASMILD', '002/PT.RCM/SPK/I/2020', 'NEON BOX', 'BONGKAR NEON BOX TOKO WULAN DAN PASANG ACP, NEON BOX, PENGECETAN TOKO MAUDIA SENGKANG WAJO', 1, '6X4', 0, 0, 0, 0, 0),
(4, '0000-00-00', 'CLASMILD SILVER - MAKIN HALUS MAKIN MANTAP', '003/PT.RCM/SPK/I/2020', 'BALIHO', 'REVISUAL BALIHO JL. JEND. SUDIRMAN, SIDRAP (TUGU ADIPURA) SOBEK KARENA ANGIN PUTTING BELIUNG', 1, '8X4', 0, 0, 0, 0, 0),
(5, '0000-00-00', '', '003/PT.RCM/SPK/I/2020', '', 'TRANSPORTASI', 0, '', 0, 0, 0, 0, 0),
(6, '0000-00-00', 'CLASMILD', '004/PT.RCM/SPK/II/2020', 'RSS', 'REVISUAL RSS 1 SISI PARE PARE', 345, '2X1', 0, 0, 0, 0, 0),
(7, '0000-00-00', '', '', '', '', 0, '', 0, 0, 0, 0, 0),
(8, '0000-00-00', '', '', '', '', 0, '', 0, 0, 0, 0, 0),
(9, '0000-00-00', '', '', '', '', 0, '', 0, 0, 0, 0, 0),
(10, '0000-00-00', '', '', '', '', 0, '', 0, 0, 0, 0, 0),
(11, '0000-00-00', '', '', '', '', 0, '', 0, 0, 0, 0, 0),
(12, '0000-00-00', '', '', '', '', 0, '', 0, 0, 0, 0, 0),
(13, '0000-00-00', '', '', '', '', 0, '', 0, 0, 0, 0, 0),
(14, '0000-00-00', '', '', '', '', 0, '', 0, 0, 0, 0, 0),
(15, '0000-00-00', '', '', '', '', 0, '', 0, 0, 0, 0, 0),
(16, '0000-00-00', '', '', '', '', 0, '', 0, 0, 0, 0, 0),
(17, '0000-00-00', '', '', '', '', 0, '', 0, 0, 0, 0, 0),
(18, '0000-00-00', '', '', '', '', 0, '', 0, 0, 0, 0, 0),
(19, '0000-00-00', '', '', '', '', 0, '', 0, 0, 0, 0, 0),
(20, '0000-00-00', '', '', '', '', 0, '', 0, 0, 0, 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_nonkontrak`
--
CREATE TABLE `tbl_nonkontrak` (
`id_nonkontrak` int(11) NOT NULL,
`media` varchar(255) NOT NULL,
`brand` varchar(255) NOT NULL,
`kota_kab` varchar(255) NOT NULL,
`tema` text NOT NULL,
`total` decimal(10,0) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tbl_penerimaankas`
--
CREATE TABLE `tbl_penerimaankas` (
`id_penerimaankas` int(10) NOT NULL,
`tanggal` date NOT NULL,
`keterangan` varchar(255) NOT NULL,
`ref` varchar(255) NOT NULL,
`debet_kas` varchar(255) NOT NULL,
`kredit_piutang` varchar(255) NOT NULL,
`kredit_pendapatan` varchar(255) NOT NULL,
`kredit_serbaserbi_ref` varchar(255) NOT NULL,
`kredit_serbaserbi_akun` varchar(255) NOT NULL,
`kredit_serbaserbi_jumlah` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tbl_sales`
--
CREATE TABLE `tbl_sales` (
`idsales` int(10) NOT NULL,
`codesales` varchar(10) NOT NULL,
`salesname` varchar(250) NOT NULL,
`address01` text NOT NULL,
`city01` varchar(250) NOT NULL,
`name01` varchar(250) NOT NULL,
`jabatan01` varchar(250) NOT NULL,
`phone` varchar(50) NOT NULL,
`email` varchar(250) NOT NULL,
`country` varchar(250) NOT NULL,
`status` varchar(250) NOT NULL,
`note` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tbl_sales`
--
INSERT INTO `tbl_sales` (`idsales`, `codesales`, `salesname`, `address01`, `city01`, `name01`, `jabatan01`, `phone`, `email`, `country`, `status`, `note`) VALUES
(1, '001', 'Dodik', 'Depok', 'Depok', 'Dodik', 'Sales', '02123737042', '<EMAIL>', 'indonesua', '1', '');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_spkdetail`
--
CREATE TABLE `tbl_spkdetail` (
`idspkdetail` int(12) NOT NULL,
`idspk` int(12) NOT NULL,
`lokasi` varchar(250) NOT NULL,
`tema` text NOT NULL,
`ukuran` varchar(100) NOT NULL,
`jumlah` decimal(10,0) NOT NULL,
`spesifikasi` varchar(250) NOT NULL,
`periode_tayang` date NOT NULL,
`harga` text NOT NULL,
`pembayaranvia` varchar(250) NOT NULL,
`biaya` decimal(10,0) NOT NULL,
`gambar1` varchar(500) NOT NULL,
`gambar2` varchar(500) NOT NULL,
`gambar3` varchar(500) NOT NULL,
`gambar4` varchar(500) NOT NULL,
`gambar5` varchar(500) NOT NULL,
`gambar6` varchar(500) NOT NULL,
`direktur` varchar(100) NOT NULL DEFAULT 'AND<NAME>',
`disetujui` varchar(100) NOT NULL DEFAULT 'SLES',
`dibuatoleh` varchar(100) NOT NULL DEFAULT 'Iin',
`diperiksa` varchar(100) NOT NULL DEFAULT 'Hikmah',
`tanggalapproval` date NOT NULL,
`status` int(1) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `tbl_spkto`
--
CREATE TABLE `tbl_spkto` (
`id_spkto` int(11) NOT NULL,
`nomoraddto` int(11) NOT NULL,
`nama` varchar(255) NOT NULL,
`alamat` text NOT NULL,
`nohp` varchar(255) NOT NULL,
`datejoin` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_spkto`
--
INSERT INTO `tbl_spkto` (`id_spkto`, `nomoraddto`, `nama`, `alamat`, `nohp`, `datejoin`) VALUES
(6, 0, '<NAME>', 'Depok', '0822-2046-8952', '2021-01-25'),
(7, 0, 'Watik', 'Jakarta Barat', '0822-2046-8952', '2021-02-20'),
(8, 0, 'dodik10', 'd0d1k', '9879-8798-9789', '2021-02-22'),
(9, 0, 'Reynaldi', 'Bogor', '1231-2312-3123', '2020-08-01');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_suratperjanjian`
--
CREATE TABLE `tbl_suratperjanjian` (
`id_suratperjanjian` int(11) NOT NULL,
`no_invoice` int(11) NOT NULL,
`namaperusahaan` varchar(255) NOT NULL,
`no_perjanjian` varchar(255) NOT NULL,
`title` text NOT NULL,
`tahap_perjanjian` varchar(255) NOT NULL,
`tanggal` date NOT NULL,
`pic1` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tbl_transaksi`
--
CREATE TABLE `tbl_transaksi` (
`idtransaksi` int(12) NOT NULL,
`tanggal` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`codecupang` varchar(30) NOT NULL,
`nomorinvoice` varchar(12) NOT NULL,
`idcupang` varchar(12) NOT NULL,
`qty` varchar(5) NOT NULL,
`price` double NOT NULL,
`sales` varchar(250) NOT NULL,
`status` int(11) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `tbl_user`
--
CREATE TABLE `tbl_user` (
`iduser` int(10) NOT NULL,
`fname` varchar(255) NOT NULL,
`lname` varchar(255) NOT NULL,
`email` varchar(150) NOT NULL,
`password` varchar(50) NOT NULL,
`position` varchar(150) NOT NULL,
`status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tbl_user`
--
INSERT INTO `tbl_user` (`iduser`, `fname`, `lname`, `email`, `password`, `position`, `status`) VALUES
(1, 'dodik', 'romadhon', '<EMAIL>', '<PASSWORD>57f20f883e', 'admin', 1),
(38, 'yyyy', 'yyyy', '<EMAIL>', '71ca9079d08bfa85e1e803427d25205a', 'admin', 1),
(39, 'Gswheh', 'H<PASSWORD>wj', '<EMAIL>', 'e10adc3949ba59abbe56e057f20f883e', 'admin', 1),
(40, 'Ari', 'Lesmana', '<EMAIL>', '<PASSWORD>', 'admin', 1),
(41, 'Suseno', 'Seno', '<EMAIL>', '<PASSWORD>', 'admin', 1),
(42, 'Asd', 'Asd', '<EMAIL>', '7815696ecbf1c96e6894b779456d<PASSWORD>', 'admin', 1),
(43, 'oke', 'oce', '<EMAIL>', '<PASSWORD>', 'admin', 1),
(44, 'Kiki', 'Isa', '<EMAIL>', 'ce3c1b0fc6488705b66268b84dc3cf19', 'admin', 1),
(45, 'Muhammad', 'Yusuf', '<EMAIL>', 'e10adc3949ba59abbe56e057f20f883e', 'operasional', 1),
(46, 'Karyo', 'Sutopo', 'kary<EMAIL>', 'c7afd<PASSWORD>', 'admin', 1),
(47, 'Coba', 'Coba', '<EMAIL>', 'c3ec<PASSWORD>e<PASSWORD>', 'admin', 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `m_city`
--
ALTER TABLE `m_city`
ADD PRIMARY KEY (`idcity`),
ADD KEY `kode_propinsi` (`city`);
--
-- Indexes for table `m_detailtransaksi`
--
ALTER TABLE `m_detailtransaksi`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `m_gambar`
--
ALTER TABLE `m_gambar`
ADD PRIMARY KEY (`id_gambar`);
--
-- Indexes for table `m_gambarspk`
--
ALTER TABLE `m_gambarspk`
ADD PRIMARY KEY (`id_gambarspk`);
--
-- Indexes for table `m_invoice`
--
ALTER TABLE `m_invoice`
ADD PRIMARY KEY (`idinvoice`);
--
-- Indexes for table `m_negara`
--
ALTER TABLE `m_negara`
ADD PRIMARY KEY (`idcountry`);
--
-- Indexes for table `m_nonkontrak`
--
ALTER TABLE `m_nonkontrak`
ADD PRIMARY KEY (`id_nonkontrak`);
--
-- Indexes for table `m_penawaran`
--
ALTER TABLE `m_penawaran`
ADD PRIMARY KEY (`id_penawaran`);
--
-- Indexes for table `m_po`
--
ALTER TABLE `m_po`
ADD PRIMARY KEY (`id_po`);
--
-- Indexes for table `m_source`
--
ALTER TABLE `m_source`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `m_spk`
--
ALTER TABLE `m_spk`
ADD PRIMARY KEY (`idmasterspk`);
--
-- Indexes for table `m_transaksi`
--
ALTER TABLE `m_transaksi`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tbl_bapp`
--
ALTER TABLE `tbl_bapp`
ADD PRIMARY KEY (`id_bapp`);
--
-- Indexes for table `tbl_cupang`
--
ALTER TABLE `tbl_cupang`
ADD PRIMARY KEY (`idcupang`);
--
-- Indexes for table `tbl_customer`
--
ALTER TABLE `tbl_customer`
ADD PRIMARY KEY (`idcustomer`);
--
-- Indexes for table `tbl_fakturpajak`
--
ALTER TABLE `tbl_fakturpajak`
ADD PRIMARY KEY (`id_fakturpajak`);
--
-- Indexes for table `tbl_farm`
--
ALTER TABLE `tbl_farm`
ADD PRIMARY KEY (`idfarm`);
--
-- Indexes for table `tbl_invoice`
--
ALTER TABLE `tbl_invoice`
ADD PRIMARY KEY (`idmasterinvoice`);
--
-- Indexes for table `tbl_mediarcm`
--
ALTER TABLE `tbl_mediarcm`
ADD PRIMARY KEY (`id_mediarcm`);
--
-- Indexes for table `tbl_monitoringharian`
--
ALTER TABLE `tbl_monitoringharian`
ADD PRIMARY KEY (`id_monitoringharian`);
--
-- Indexes for table `tbl_monitoringhutang`
--
ALTER TABLE `tbl_monitoringhutang`
ADD PRIMARY KEY (`id_monitoringhutang`);
--
-- Indexes for table `tbl_nonkontrak`
--
ALTER TABLE `tbl_nonkontrak`
ADD PRIMARY KEY (`id_nonkontrak`);
--
-- Indexes for table `tbl_penerimaankas`
--
ALTER TABLE `tbl_penerimaankas`
ADD PRIMARY KEY (`id_penerimaankas`);
--
-- Indexes for table `tbl_sales`
--
ALTER TABLE `tbl_sales`
ADD PRIMARY KEY (`idsales`);
--
-- Indexes for table `tbl_spkdetail`
--
ALTER TABLE `tbl_spkdetail`
ADD PRIMARY KEY (`idspkdetail`);
--
-- Indexes for table `tbl_spkto`
--
ALTER TABLE `tbl_spkto`
ADD PRIMARY KEY (`id_spkto`);
--
-- Indexes for table `tbl_suratperjanjian`
--
ALTER TABLE `tbl_suratperjanjian`
ADD PRIMARY KEY (`id_suratperjanjian`);
--
-- Indexes for table `tbl_transaksi`
--
ALTER TABLE `tbl_transaksi`
ADD PRIMARY KEY (`idtransaksi`);
--
-- Indexes for table `tbl_user`
--
ALTER TABLE `tbl_user`
ADD PRIMARY KEY (`iduser`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `m_city`
--
ALTER TABLE `m_city`
MODIFY `idcity` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=518;
--
-- AUTO_INCREMENT for table `m_detailtransaksi`
--
ALTER TABLE `m_detailtransaksi`
MODIFY `id` int(12) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=106;
--
-- AUTO_INCREMENT for table `m_gambar`
--
ALTER TABLE `m_gambar`
MODIFY `id_gambar` int(15) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `m_gambarspk`
--
ALTER TABLE `m_gambarspk`
MODIFY `id_gambarspk` int(12) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `m_invoice`
--
ALTER TABLE `m_invoice`
MODIFY `idinvoice` int(15) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=58;
--
-- AUTO_INCREMENT for table `m_negara`
--
ALTER TABLE `m_negara`
MODIFY `idcountry` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `m_nonkontrak`
--
ALTER TABLE `m_nonkontrak`
MODIFY `id_nonkontrak` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `m_penawaran`
--
ALTER TABLE `m_penawaran`
MODIFY `id_penawaran` int(15) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `m_po`
--
ALTER TABLE `m_po`
MODIFY `id_po` int(15) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `m_source`
--
ALTER TABLE `m_source`
MODIFY `id` int(12) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `m_spk`
--
ALTER TABLE `m_spk`
MODIFY `idmasterspk` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `m_transaksi`
--
ALTER TABLE `m_transaksi`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=68;
--
-- AUTO_INCREMENT for table `tbl_bapp`
--
ALTER TABLE `tbl_bapp`
MODIFY `id_bapp` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tbl_cupang`
--
ALTER TABLE `tbl_cupang`
MODIFY `idcupang` int(12) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=820;
--
-- AUTO_INCREMENT for table `tbl_customer`
--
ALTER TABLE `tbl_customer`
MODIFY `idcustomer` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=327;
--
-- AUTO_INCREMENT for table `tbl_fakturpajak`
--
ALTER TABLE `tbl_fakturpajak`
MODIFY `id_fakturpajak` int(12) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tbl_farm`
--
ALTER TABLE `tbl_farm`
MODIFY `idfarm` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tbl_invoice`
--
ALTER TABLE `tbl_invoice`
MODIFY `idmasterinvoice` int(15) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tbl_mediarcm`
--
ALTER TABLE `tbl_mediarcm`
MODIFY `id_mediarcm` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tbl_monitoringharian`
--
ALTER TABLE `tbl_monitoringharian`
MODIFY `id_monitoringharian` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tbl_monitoringhutang`
--
ALTER TABLE `tbl_monitoringhutang`
MODIFY `id_monitoringhutang` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `tbl_nonkontrak`
--
ALTER TABLE `tbl_nonkontrak`
MODIFY `id_nonkontrak` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tbl_penerimaankas`
--
ALTER TABLE `tbl_penerimaankas`
MODIFY `id_penerimaankas` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;
--
-- AUTO_INCREMENT for table `tbl_sales`
--
ALTER TABLE `tbl_sales`
MODIFY `idsales` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tbl_spkdetail`
--
ALTER TABLE `tbl_spkdetail`
MODIFY `idspkdetail` int(12) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `tbl_spkto`
--
ALTER TABLE `tbl_spkto`
MODIFY `id_spkto` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `tbl_suratperjanjian`
--
ALTER TABLE `tbl_suratperjanjian`
MODIFY `id_suratperjanjian` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tbl_transaksi`
--
ALTER TABLE `tbl_transaksi`
MODIFY `idtransaksi` int(12) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tbl_user`
--
ALTER TABLE `tbl_user`
MODIFY `iduser` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=48;
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 PROCEDURE [dbo].[CourseNotification]
@Today DATETIME = NULL
AS
DECLARE
--@Today DATETIME,
@organizaciaID INT
,@emailBody NVARCHAR(MAX)
,@email NVARCHAR(MAX)
,@emailTmp NVARCHAR(MAX)
,@newLine NVARCHAR(10) = N'<br/>'
,@mailBodyContentSeparator NVARCHAR(511)
,@subjectTemplate NVARCHAR(255) = 'Notifikácia nasledujúcich školení, organizáca: '
,@subject NVARCHAR(255)
SET @mailBodyContentSeparator =
@newLine + N'------------===========--------------------=====================--------------------===========------------' +
@newLine + N'------------===========--------------------=====================--------------------===========------------' +
@newLine + @newLine
SET @Today = FLOOR(CAST(ISNULL(@Today, GETDATE()) AS FLOAT))
DECLARE @skolenia TABLE (OrganizaciaID INT, SkolenieID INT, Email NVARCHAR(255));
INSERT @skolenia(OrganizaciaID, SkolenieID, Email)
SELECT [OrganizationId], SkolenieID, Email
FROM dbo.[CourseToNotificate](@Today);
DECLARE organizacie CURSOR FOR
SELECT OrganizaciaID FROM @skolenia GROUP BY OrganizaciaID;
OPEN organizacie;
FETCH NEXT FROM organizacie INTO @organizaciaID;
WHILE @@FETCH_STATUS = 0
BEGIN
SET @emailBody = NULL
SET @emailTmp = NULL
SET @email = NULL
SELECT
@emailBody = ISNULL(@emailBody + @mailBodyContentSeparator, dbo.GetHtmlBodyOpenTag()) + dbo.[GetCourseBodyContent](SkolenieID, @Today)
,@emailTmp = ISNULL(@emailTmp + ';', '') + Email
FROM @skolenia
WHERE OrganizaciaID = @organizaciaID
SET @emailBody = @emailBody + dbo.GetHtmlBodyCloseTag();
/*odstranenie duplicit v zozname emailov*/
SELECT
@email = ISNULL(@email + ';', '') + Item
FROM
report.TableFromList(';', @emailTmp)
GROUP BY
Item
--PRINT @emailBody
--PRINT @email
--print '********************************************************************'
SET @subject = @subjectTemplate + dbo.GetOrganizationName(@organizaciaID)
EXEC msdb.dbo.sp_send_dbmail
@recipients = @email,
@copy_recipients = '<EMAIL>;<EMAIL>',
--@blind_copy_recipients = '<EMAIL>',
@subject = @subject,
@body = @emailBody,
@body_format = 'HTML'
FETCH NEXT FROM organizacie INTO @organizaciaID;
END
CLOSE organizacie;
DEALLOCATE organizacie;
|
<reponame>da99/megauni
CREATE OR REPLACE FUNCTION message_folder_insert(
IN raw_owner_id message_folder.id%TYPE,
IN raw_name VARCHAR
)
RETURNS TABLE(
"id" message_folder.id%TYPE,
"name" message_folder.name%TYPE,
"display_name" message_folder.display_name%TYPE
) AS $$
DECLARE
canonical_name VARCHAR;
BEGIN
canonical_name := message_folder_canonical(raw_name);
RETURN QUERY
SELECT mf.id, mf.name, mf.display_name
FROM message_folder AS mf
WHERE mf.owner_id = raw_owner_id AND mf.name = canonical_name;
IF NOT FOUND THEN
RETURN QUERY
INSERT INTO
"message_folder" AS mf ( "id", "owner_id", "name", "display_name" )
VALUES (DEFAULT, raw_owner_id, UPPER(canonical_name), canonical_name)
RETURNING mf.id, mf.name, mf.display_name;
END IF;
END
$$
LANGUAGE plpgsql;
|
<filename>data/open-source/extracted_sql/google_grr.sql
CREATE TABLE IF NOT EXISTS `aff4` ( id BIGINT UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT, subject_hash BINARY(16) NOT NULL, attribute_hash BINARY(16) NOT NULL, timestamp BIGINT UNSIGNED DEFAULT NULL, value MEDIUMBLOB NULL, KEY `master` (`subject_hash`,`attribute_hash`,`timestamp`), KEY `attribute` (`attribute_hash`) )
SELECT * FROM ActiveScriptEventConsumer
SELECT value FROM statistics WHERE name = 'vacuum_time'
CREATE TABLE moz_bookmarks_roots ( root_name VARCHAR(16) UNIQUE, folder_id INTEGER)
UPDATE locks SET lock_expiration=0, lock_owner=0 WHERE lock_expiration=%s
CREATE INDEX keyword_search_terms_index2 ON keyword_search_terms (url_id)X/windexvisits_time_indexvisits*
CREATE TABLE IF NOT EXISTS lock ( subject %(subject)s PRIMARY KEY NOT NULL, expires BIG INTEGER NOT NULL, token BIG INTEGER NOT NULL)
CREATE INDEX moz_bookmarks_itemlastmodifiedindex ON moz_bookmarks (fk, lastModified)}?'!indexmoz_bookmarks_parentindexmoz_bookmarks
CREATE TABLE moz_items_annos ( id INTEGER PRIMARY KEY, item_id INTEGER NOT NULL, anno_attribute_id INTEGER, mime_type VARCHAR(32) DEFAULT NULL, content LONGVARCHAR, flags INTEGER DEFAULT 0, expiration INTEGER DEFAULT 0, type INTEGER DEFAULT 0, dateAdded INTEGER DEFAULT 0, lastModified INTEGER DEFAULT 0)
CREATE INDEX moz_bookmarks_itemindex ON moz_bookmarks (fk,
SELECT id FROM moz_bookmarks WHERE keyword_id = OLD.keyword_id AND id <> OLD.id LIMIT 1 );
CREATE TABLE moz_places ( id INTEGER PRIMARY KEY, url LONGVARCHAR, title LONGVARCHAR, rev_host LONGVARCHAR, visit_count INTEGER DEFAULT 0, hidden INTEGER DEFAULT 0 NOT NULL, typed INTEGER DEFAULT 0 NOT NULL, favicon_id INTEGER, frecency INTEGER DEFAULT -1 NOT NULL, last_visit_date INTEGER , guid TEXT)
CREATE INDEX moz_places_faviconindex ON moz_places (favicon_id)sA!indexmoz_places_url_uniqueindexmoz_places
SELECT subject, predicate, timestamp, value FROM tbl
CREATE INDEX keyword_search_terms_index3 ON keyword_search_terms (term)C5indexkeyword_search_terms_index2keyword_search_terms
CREATE TABLE IF NOT EXISTS statistics ( name TEXT PRIMARY KEY NOT NULL, value BLOB)
SELECT * FROM Win32_ShadowCopy
SELECT * FROM Win32_LogicalDisk
CREATE TABLE moz_places ( id INTEGER PRIMARY KEY, url LONGVARCHAR, title LONGVARCHAR, rev_host LONGVARCHAR, visit_count INTEGER DEFAULT 0, hidden INTEGER DEFAULT 0 NOT NULL, typed INTEGER DEFAULT 0 NOT NULL, favicon_id INTEGER, frecency INTEGER DEFAULT -1 NOT NULL, last_visit_date INTEGER , guid TEXT)
CREATE INDEX moz_historyvisits_dateindex ON moz_historyvisits (visit_date)C/!indexmoz_historyvisits_fromindexmoz_historyvisits
CREATE TABLE moz_favicons ( id INTEGER PRIMARY KEY, url LONGVARCHAR UNIQUE, data BLOB, mime_type VARCHAR(32), expiration LONG)
CREATE INDEX segment_usage_time_slot_segment_id ON segment_usage(time_slot, segment_id)8''/tablesegment_usagesegment_usage
CREATE TABLE IF NOT EXISTS `attributes` ( hash BINARY(16) PRIMARY KEY NOT NULL, attribute VARCHAR(2048) CHARACTER SET utf8 DEFAULT NULL, KEY `attribute` (`attribute`(32)) )
CREATE TABLE moz_keywords ( id INTEGER PRIMARY KEY AUTOINCREMENT, keyword TEXT UNIQUE)
INSERT INTO tbl VALUES (?, ?, ?, ?)
CREATE INDEX segment_usage_time_slot_segment_id ON segment_usage(time_slot, segment_id)8''/tablesegment_usagesegment_usage
CREATE TABLE segment_usage (id INTEGER PRIMARY KEY,segment_id INTEGER NOT NULL,time_slot INTEGER NOT NULL,visit_count INTEGER DEFAULT 0 NOT NULL)
SELECT * FROM Win32_UserProfile
SELECT * from Win32_SystemDriver\"\n },\n \"conditions\": [],\n \"returned_types\": [],\n \"type\": \"WMI\"\n }\n ],\n \"supported_os\": [ \"Windows\" ],\n \"urls\": [ \"http://www.example.com\" ]\n}
CREATE INDEX moz_places_faviconindex ON moz_places (favicon_id)sA!indexmoz_places_url_uniqueindexmoz_places
CREATE TABLE segment_usage (id INTEGER PRIMARY KEY,segment_id INTEGER NOT NULL,time_slot INTEGER NOT NULL,visit_count INTEGER DEFAULT 0 NOT NULL)
SELECT * from Win32_SystemDriver
SELECT expires, token FROM lock WHERE subject = ?
CREATE INDEX visits_url_index ON visits (url)X/windexvisits_from_indexvisits)
CREATE TABLE IF NOT EXISTS `locks` ( subject_hash BINARY(16) PRIMARY KEY NOT NULL, lock_owner BIGINT UNSIGNED DEFAULT NULL, lock_expiration BIGINT UNSIGNED DEFAULT NULL )
CREATE TABLE meta(key LONGVARCHAR NOT NULL UNIQUE PRIMARY KEY,value LONGVARCHAR)
CREATE INDEX segment_usage_time_slot_segment_id ON segment_usage(time_slot, segment_id)n7'indexsegments_usage_seg_idsegment_usage1CREATE
SELECT * FROM moz_places;
CREATE TABLE IF NOT EXISTS tbl ( subject %(subject)s NOT NULL, predicate TEXT NOT NULL, timestamp BIG INTEGER NOT NULL, value BLOB)
CREATE TABLE moz_historyvisits ( id INTEGER PRIMARY KEY, from_visit INTEGER, place_id INTEGER, visit_date INTEGER, visit_type INTEGER, session INTEGER)
CREATE TABLE sqlite_stat1(tbl,idx,stat)
CREATE TABLE moz_bookmarks ( id INTEGER PRIMARY KEY, type INTEGER, fk INTEGER DEFAULT NULL, parent INTEGER, position INTEGER, title LONGVARCHAR, keyword_id INTEGER, folder_type TEXT, dateAdded INTEGER, lastModified INTEGER)
CREATE TABLE urls(id INTEGER PRIMARY KEY,url LONGVARCHAR,title LONGVARCHAR,visit_count INTEGER DEFAULT 0 NOT NULL,typed_count INTEGER DEFAULT 0 NOT NULL,last_visit_time INTEGER NOT NULL,hidden INTEGER DEFAULT 0 NOT NULL,favicon_id INTEGER DEFAULT 0 NOT NULL)
CREATE TABLE IF NOT EXISTS `subjects` ( hash BINARY(16) PRIMARY KEY NOT NULL, subject TEXT CHARACTER SET utf8 NULL, KEY `subject` (`subject`(96)) )
SELECT table_name FROM information_schema.tables
CREATE TABLE downloads (id INTEGER PRIMARY KEY,full_path LONGVARCHAR NOT NULL,url LONGVARCHAR NOT NULL,start_time INTEGER NOT NULL,received_bytes INTEGER NOT NULL,total_bytes INTEGER NOT NULL,state INTEGER NOT NULL)
CREATE TABLE moz_bookmarks ( id INTEGER PRIMARY KEY, type INTEGER, fk INTEGER DEFAULT NULL, parent INTEGER, position INTEGER, title LONGVARCHAR, keyword_id INTEGER, folder_type TEXT, dateAdded INTEGER, lastModified INTEGER, guid TEXT)
CREATE INDEX moz_places_faviconindex ON moz_places (favicon_id)e5!indexmoz_places_hostindexmoz_places
UPDATE locks SET lock_expiration=%s, lock_owner=%s WHERE subject_hash=unhex
CREATE TABLE moz_keywords ( id INTEGER PRIMARY KEY AUTOINCREMENT, keyword TEXT UNIQUE)
CREATE INDEX moz_bookmarks_itemindex ON moz_bookmarks (fk,
|
Insert into egw_status (ID,MODULETYPE,DESCRIPTION,LASTMODIFIEDDATE,CODE,ORDER_ID) values (nextval('SEQ_EGW_STATUS'),'COUNCILAGENDA','AGENDA_STATUS_APPROVED',now(),'APPROVED',3);
|
CREATE PROCEDURE [dbo].[GetEventsFrom]
@SequenceNumber BIGINT
AS
SELECT [Event].[SequenceNumber], [Type].[Name] AS [PayloadTypeName], [Event].[Payload]
FROM [dbo].[Events] [Event] WITH (NOLOCK)INNER JOIN [dbo].[Types] [Type] ON [Event].[TypeId] = [Type].[Id]
WHERE [Event].[SequenceNumber] > @SequenceNumber
ORDER BY [Event].[SequenceNumber];
GO |
<gh_stars>1-10
USE AdventureWorks2012;
GO
IF OBJECT_ID('Sales.SurveyResults') IS NOT NULL
DROP TABLE Sales.SurveyResults;
CREATE TABLE Sales.SurveyResults
(ResponseId int NOT NULL IDENTITY(1,1) PRIMARY KEY CLUSTERED,
ResponseDate datetime NOT NULL DEFAULT (GETDATE()),
SurveyId int NOT NULL,
SalesPersonID int SPARSE NULL,
ProductNumber nvarchar(25) SPARSE NULL,
PurchaseDate date SPARSE NULL,
Q1 int SPARSE NULL,
Q2 int SPARSE NULL,
Q3 int SPARSE NULL,
Q4 int SPARSE NULL,
Q5 int SPARSE NULL,
OtherComments varchar(500) SPARSE NULL,
AllAnswers xml COLUMN_SET FOR ALL_SPARSE_COLUMNS);
GO
-- Insert some fielded data
INSERT INTO Sales.SurveyResults (SurveyId, SalesPersonID, Q1, Q2, Q3, Q4, OtherComments)
VALUES (1, 274, 4, 5, 5, 3, NULL),
(1, 274, 5, 4, 5, 5, 'Exceptional service!'),
(1, 301, 4, 5, 5, 5, NULL);
GO
INSERT INTO Sales.SurveyResults (SurveyId, ProductNumber, PurchaseDate, Q1, Q2, OtherComments)
VALUES (2, 775, '12/24/2013', 2, 2, 'Why can''t I ride my new bike in the winter?'),
(2, 754, '4/7/2014', 9, 7, 'Great value'),
(2, 800, '4/19/2014', 7, 8, NULL);
GO
-- Select the fielded data
SELECT ResponseId, ResponseDate, SurveyId, SalesPersonID, Q1, Q2, Q3, Q4, OtherComments
FROM Sales.SurveyResults
WHERE SurveyId = 1
ORDER BY ResponseId;
GO
SELECT ResponseId, ResponseDate, SurveyId, ProductNumber, PurchaseDate, Q1, Q2, OtherComments
FROM Sales.SurveyResults
WHERE SurveyId = 2
ORDER BY ResponseId;
GO
-- Select everything
SELECT ResponseId, ResponseDate, SurveyId, SalesPersonID, ProductNumber, PurchaseDate, Q1, Q2, Q3, Q4, OtherComments
FROM Sales.SurveyResults
ORDER BY ResponseId;
GO
SELECT *
FROM Sales.SurveyResults
ORDER BY ResponseId;
GO
-- Insert answers as XML
INSERT INTO Sales.SurveyResults (SurveyId, AllAnswers)
VALUES (1, '<SalesPersonID>274</SalesPersonID><Q1>5</Q1><Q2>2</Q2><Q3>3</Q3><Q4>5</Q4><OtherComments>Responding again</OtherComments>');
GO
SELECT ResponseId, ResponseDate, SurveyId, SalesPersonID, Q1, Q2, Q3, Q4, OtherComments
FROM Sales.SurveyResults
WHERE SurveyId = 1
ORDER BY ResponseId;
GO
-- All fields work as expected!
UPDATE Sales.SurveyResults
SET Q2 = NULL
WHERE ResponseId = 7;
GO
SELECT ResponseId, ResponseDate, SurveyId, SalesPersonID, Q1, Q2, Q3, Q4, OtherComments
FROM Sales.SurveyResults
WHERE ResponseId = 7;
GO
SELECT *
FROM Sales.SurveyResults
WHERE ResponseId = 7;
GO
|
/*
Insert initial data for TlPathwaySpecialismCombination
*/
SET IDENTITY_INSERT [dbo].[TlPathwaySpecialismCombination] ON
MERGE INTO [dbo].[TlPathwaySpecialismCombination] AS Target
USING (VALUES
(1, 3, 11, 1, 1),
(2, 3, 16, 1, 1),
(3, 3, 13, 2, 1),
(4, 3, 11, 2, 1),
(5, 3, 14, 3, 1),
(6, 3, 15, 3, 1)
)
AS Source ([Id], [TlPathwayId], [TlSpecialismId], [GroupId], [IsActive])
ON Target.[Id] = Source.[Id]
-- Update from Source when Id is Matched
WHEN MATCHED
AND ((Target.[TlPathwayId] <> Source.[TlPathwayId])
OR (Target.[TlSpecialismId] <> Source.[TlSpecialismId])
OR (Target.[GroupId] <> Source.[GroupId])
OR (Target.[IsActive] <> Source.[IsActive]))
THEN
UPDATE SET
[TlPathwayId] = Source.[TlPathwayId],
[TlSpecialismId] = Source.[TlSpecialismId],
[GroupId] = Source.[GroupId],
[IsActive] = Source.[IsActive],
[ModifiedOn] = GETDATE(),
[ModifiedBy] = 'System'
WHEN NOT MATCHED BY TARGET THEN
INSERT ([Id], [TlPathwayId], [TlSpecialismId], [GroupId], [IsActive], [CreatedBy])
VALUES ([Id], [TlPathwayId], [TlSpecialismId], [GroupId], [IsActive], 'System')
WHEN NOT MATCHED BY SOURCE THEN
DELETE;
SET IDENTITY_INSERT [dbo].[TlPathwaySpecialismCombination] OFF
|
<reponame>rafaline/kaga<filename>kas_rr.sql
-- --------------------------------------------------------
-- Host: localhost
-- Server version: 10.4.18-MariaDB - mariadb.org binary distribution
-- Server OS: Win64
-- HeidiSQL Version: 9.5.0.5196
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Dumping structure for table kas_rr.jenis_pengeluaran
CREATE TABLE IF NOT EXISTS `jenis_pengeluaran` (
`idJenisPengeluaran` int(11) NOT NULL AUTO_INCREMENT,
`nama_pengeluaran` varchar(50) NOT NULL,
PRIMARY KEY (`idJenisPengeluaran`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;
-- Dumping data for table kas_rr.jenis_pengeluaran: ~6 rows (approximately)
DELETE FROM `jenis_pengeluaran`;
/*!40000 ALTER TABLE `jenis_pengeluaran` DISABLE KEYS */;
INSERT INTO `jenis_pengeluaran` (`idJenisPengeluaran`, `nama_pengeluaran`) VALUES
(1, 'Gaji Security'),
(2, 'Listrik'),
(3, 'Aqua, Kopi'),
(4, 'Jasa Taman'),
(5, 'Sampah'),
(6, 'Lain-lain');
/*!40000 ALTER TABLE `jenis_pengeluaran` ENABLE KEYS */;
-- Dumping structure for table kas_rr.kas_keluar
CREATE TABLE IF NOT EXISTS `kas_keluar` (
`idKasKeluar` int(11) NOT NULL AUTO_INCREMENT,
`bulan` varchar(50) NOT NULL,
`tahun` varchar(4) NOT NULL,
`jenis_pengeluaran` int(4) NOT NULL DEFAULT 0,
`deskripsi_pengeluaran` varchar(50) NOT NULL,
`nominal` int(11) NOT NULL DEFAULT 0,
`tgl_pengeluaran` date NOT NULL,
`modtime` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`idKasKeluar`)
) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb4;
-- Dumping data for table kas_rr.kas_keluar: ~65 rows (approximately)
DELETE FROM `kas_keluar`;
/*!40000 ALTER TABLE `kas_keluar` DISABLE KEYS */;
INSERT INTO `kas_keluar` (`idKasKeluar`, `bulan`, `tahun`, `jenis_pengeluaran`, `deskripsi_pengeluaran`, `nominal`, `tgl_pengeluaran`, `modtime`) VALUES
(1, 'JANUARI', '2019', 1, 'Gaji keamanan bulan januari', 100000, '2019-01-31', '2020-03-15 19:43:44'),
(2, 'JANUARI', '2019', 2, 'Listik PJU dan Taman bulan januari', 50000, '2019-01-31', '2020-03-15 19:44:34'),
(3, 'JANUARI', '2019', 3, 'Konsumsi security bulan januari', 30000, '2019-01-31', '2020-03-15 19:45:27'),
(4, 'JANUARI', '2019', 4, 'Semprot taman', 30000, '2019-01-31', '2020-03-15 19:46:04'),
(5, 'JANUARI', '2019', 5, 'Sampah warga bulan januari', 60000, '2019-01-31', '2020-03-15 19:46:54'),
(6, 'JANUARI', '2019', 6, 'Atk', 50000, '2019-01-31', '2020-03-15 19:49:08'),
(7, 'FEBRUARI', '2019', 1, 'Gaji keamanan bulan februari', 100000, '2019-02-28', '2020-03-15 19:53:19'),
(8, 'FEBRUARI', '2019', 2, 'Listik PJU dan Taman bulan februari', 50000, '2019-02-28', '2020-03-15 19:54:07'),
(9, 'FEBRUARI', '2019', 3, 'Konsumsi security bulan februari', 30000, '2019-02-28', '2020-03-15 19:54:46'),
(10, 'FEBRUARI', '2019', 4, 'Semprot taman', 30000, '2020-03-15', '2020-03-15 19:55:19'),
(11, 'MARET', '2019', 1, 'Gaji keamanan bulan maret', 100000, '2019-03-31', '2020-03-15 19:56:06'),
(12, 'MARET', '2019', 2, 'Listik PJU dan Taman bulan maret', 50000, '2019-03-31', '2020-03-15 19:56:53'),
(13, 'MARET', '2019', 3, 'Konsumsi security bulan maret', 30000, '2019-03-31', '2020-03-15 19:57:35'),
(14, 'MARET', '2019', 4, 'Semprot taman', 30000, '2019-03-31', '2020-03-15 19:58:18'),
(15, 'FEBRUARI', '2019', 5, 'Sampah warga bulan februari', 60000, '2019-02-28', '2020-03-15 20:00:45'),
(16, 'MARET', '2019', 5, 'Sampah warga bulan maret', 60000, '2019-03-31', '2020-03-15 20:01:19'),
(17, 'MARET', '2019', 6, 'Sumbangan untuk mushola', 75000, '2019-03-31', '2020-03-15 20:02:02'),
(18, 'APRIL', '2019', 1, 'Gaji keamanan bulan april', 100000, '2019-04-30', '2020-03-15 20:05:29'),
(19, 'MEI', '2019', 1, 'Gaji keamanan bulan mei', 100000, '2019-05-30', '2020-03-15 20:11:50'),
(20, 'JUNI', '2019', 1, 'Gaji keamanan bulan juni', 100000, '2019-06-30', '2020-03-15 20:11:50'),
(21, 'JULI', '2019', 1, 'Gaji keamanan bulan juli', 200000, '2019-07-30', '2020-03-15 20:11:50'),
(22, 'AGUSTUS', '2019', 1, 'Gaji keamanan bulan agustus', 250000, '2019-08-30', '2020-03-15 20:11:51'),
(23, 'SEPTEMBER', '2019', 1, 'Gaji keamanan bulan september', 300000, '2019-09-30', '2020-03-15 20:11:51'),
(24, 'OKTOBER', '2019', 1, 'Gaji keamanan bulan oktober', 450000, '2019-10-30', '2020-03-15 20:11:51'),
(25, 'NOVEMBER', '2019', 1, 'Gaji keamanan bulan november', 500000, '2019-11-30', '2020-03-15 20:11:51'),
(26, 'DESEMBER', '2019', 1, 'Gaji keamanan bulan desember', 500000, '2019-12-30', '2020-03-15 20:11:51'),
(27, 'APRIL', '2019', 5, 'Sampah warga bulan april', 60000, '2019-04-30', '2020-03-15 20:17:22'),
(28, 'MEI', '2019', 5, 'Sampah warga bulan mei', 60000, '2019-05-30', '2020-03-15 20:17:22'),
(29, 'JUNI', '2019', 5, 'Sampah warga bulan juni', 60000, '2019-06-30', '2020-03-15 20:17:22'),
(30, 'JULI', '2019', 5, 'Sampah warga bulan juli', 120000, '2019-07-30', '2020-03-15 20:17:22'),
(31, 'AGUSTUS', '2019', 5, 'Sampah warga bulan agustus', 150000, '2019-08-30', '2020-03-15 20:17:22'),
(32, 'SEPTEMBER', '2019', 5, 'Sampah warga bulan september', 180000, '2019-09-30', '2020-03-15 20:17:22'),
(33, 'OKTOBER', '2019', 5, 'Sampah warga bulan oktober', 270000, '2019-10-30', '2020-03-15 20:17:23'),
(34, 'NOVEMBER', '2019', 5, 'Sampah warga bulan november', 300000, '2019-11-30', '2020-03-15 20:17:23'),
(35, 'DESEMBER', '2019', 5, 'Sampah warga bulan desember', 300000, '2019-12-30', '2020-03-15 20:17:23'),
(36, 'APRIL', '2019', 2, 'Listrik PJU dan taman bulan april', 50000, '2019-04-30', '2020-03-15 20:26:41'),
(37, 'MEI', '2019', 2, 'Listrik PJU dan taman bulan mei', 30000, '2019-05-30', '2020-03-15 20:26:41'),
(38, 'JUNI', '2019', 2, 'Listrik PJU dan taman bulan juni', 50000, '2019-06-30', '2020-03-15 20:26:41'),
(39, 'JULI', '2019', 2, 'Listrik PJU dan taman bulan juli', 60000, '2019-07-30', '2020-03-15 20:26:41'),
(40, 'AGUSTUS', '2019', 2, 'Listrik PJU dan taman bulan agustus', 60000, '2019-08-30', '2020-03-15 20:26:41'),
(41, 'SEPTEMBER', '2019', 2, 'Listrik PJU dan taman bulan september', 60000, '2019-09-30', '2020-03-15 20:26:41'),
(42, 'OKTOBER', '2019', 2, 'Listrik PJU dan taman bulan oktober', 75000, '2019-10-30', '2020-03-15 20:26:41'),
(43, 'NOVEMBER', '2019', 2, 'Listrik PJU dan taman bulan november', 75000, '2019-11-30', '2020-03-15 20:26:41'),
(44, 'DESEMBER', '2019', 2, 'Listrik PJU dan taman bulan desember', 75000, '2019-12-30', '2020-03-15 20:26:41'),
(45, 'MEI', '2019', 6, 'Bukber di mushola', 100000, '2019-05-04', '2020-03-15 20:27:53'),
(46, 'APRIL', '2019', 3, 'Konsumsi security bulan april', 30000, '2019-04-30', '2020-03-15 20:31:27'),
(47, 'MEI', '2019', 3, 'Konsumsi security bulan mei', 30000, '2019-05-30', '2020-03-15 20:31:27'),
(48, 'JUNI', '2019', 3, 'Konsumsi security bulan juni', 30000, '2019-06-30', '2020-03-15 20:31:27'),
(49, 'JULI', '2019', 3, 'Konsumsi security bulan juli', 50000, '2019-07-30', '2020-03-15 20:31:27'),
(50, 'AGUSTUS', '2019', 3, 'Konsumsi security bulan agustus', 50000, '2019-08-30', '2020-03-15 20:31:27'),
(51, 'SEPTEMBER', '2019', 3, 'Konsumsi security bulan september', 50000, '2019-09-30', '2020-03-15 20:31:27'),
(52, 'OKTOBER', '2019', 3, 'Konsumsi security bulan oktober', 75000, '2019-10-30', '2020-03-15 20:31:27'),
(53, 'NOVEMBER', '2019', 3, 'Konsumsi security bulan november', 75000, '2019-11-30', '2020-03-15 20:31:27'),
(54, 'DESEMBER', '2019', 3, 'Konsumsi security bulan desember', 75000, '2019-12-30', '2020-03-15 20:31:27'),
(55, 'APRIL', '2019', 4, 'Jasa taman bulan april', 30000, '2019-04-30', '2020-03-15 20:34:38'),
(56, 'MEI', '2019', 4, 'Jasa taman bulan mei', 30000, '2019-05-30', '2020-03-15 20:34:39'),
(57, 'JUNI', '2019', 4, 'Jasa taman bulan juni', 30000, '2019-06-30', '2020-03-15 20:34:39'),
(58, 'JULI', '2019', 4, 'Jasa taman bulan juli', 30000, '2019-07-30', '2020-03-15 20:34:39'),
(59, 'AGUSTUS', '2019', 4, 'Jasa taman bulan agustus', 30000, '2019-08-30', '2020-03-15 20:34:39'),
(60, 'SEPTEMBER', '2019', 4, 'Jasa taman bulan september', 30000, '2019-09-30', '2020-03-15 20:34:39'),
(61, 'OKTOBER', '2019', 4, 'Jasa taman bulan oktober', 30000, '2019-10-30', '2020-03-15 20:34:39'),
(62, 'NOVEMBER', '2019', 4, 'Jasa taman bulan november', 30000, '2019-11-30', '2020-03-15 20:34:39'),
(63, 'DESEMBER', '2019', 4, 'Jasa taman bulan desember', 30000, '2019-12-30', '2020-03-15 20:34:39'),
(64, 'AGUSTUS', '2019', 6, 'Acara 17an', 1150000, '2019-08-17', '2020-03-15 20:35:38'),
(65, 'DESEMBER', '2019', 6, 'Acara tahun baru, bakar ayam', 500000, '2019-12-31', '2020-03-15 20:37:09');
/*!40000 ALTER TABLE `kas_keluar` ENABLE KEYS */;
-- Dumping structure for table kas_rr.kas_masuk
CREATE TABLE IF NOT EXISTS `kas_masuk` (
`idKas` int(11) NOT NULL AUTO_INCREMENT,
`no_rumah` char(3) NOT NULL,
`januari` varchar(50) NOT NULL,
`februari` varchar(50) NOT NULL,
`maret` varchar(50) NOT NULL,
`april` varchar(50) NOT NULL,
`mei` varchar(50) NOT NULL,
`juni` varchar(50) NOT NULL,
`juli` varchar(50) NOT NULL,
`agustus` varchar(50) NOT NULL,
`september` varchar(50) NOT NULL,
`oktober` varchar(50) NOT NULL,
`november` varchar(50) NOT NULL,
`desember` varchar(50) NOT NULL,
`tahun` varchar(4) NOT NULL,
`total` int(11) NOT NULL DEFAULT 0,
`bayarJan` int(11) NOT NULL DEFAULT 0,
`bayarFeb` int(11) NOT NULL DEFAULT 0,
`bayarMar` int(11) NOT NULL DEFAULT 0,
`bayarApr` int(11) NOT NULL DEFAULT 0,
`bayarMei` int(11) NOT NULL DEFAULT 0,
`bayarJun` int(11) NOT NULL DEFAULT 0,
`bayarJul` int(11) NOT NULL DEFAULT 0,
`bayarAgu` int(11) NOT NULL DEFAULT 0,
`bayarSep` int(11) NOT NULL DEFAULT 0,
`bayarOkt` int(11) NOT NULL DEFAULT 0,
`bayarNov` int(11) NOT NULL DEFAULT 0,
`bayarDes` int(11) NOT NULL DEFAULT 0,
`modtime` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`idKas`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4;
-- Dumping data for table kas_rr.kas_masuk: ~23 rows (approximately)
DELETE FROM `kas_masuk`;
/*!40000 ALTER TABLE `kas_masuk` DISABLE KEYS */;
INSERT INTO `kas_masuk` (`idKas`, `no_rumah`, `januari`, `februari`, `maret`, `april`, `mei`, `juni`, `juli`, `agustus`, `september`, `oktober`, `november`, `desember`, `tahun`, `total`, `bayarJan`, `bayarFeb`, `bayarMar`, `bayarApr`, `bayarMei`, `bayarJun`, `bayarJul`, `bayarAgu`, `bayarSep`, `bayarOkt`, `bayarNov`, `bayarDes`, `modtime`) VALUES
(1, 'A1', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019', 2160000, 180000, 180000, 180000, 180000, 180000, 180000, 180000, 180000, 180000, 180000, 180000, 180000, '2020-03-15 11:18:46'),
(2, 'A2', '', '', '', '', '', '', '2019-12-31', '2019-12-31', '2019-12-31', '2019-12-31', '2019-12-31', '2019-12-31', '2019', 1080000, 0, 0, 0, 0, 0, 0, 180000, 180000, 180000, 180000, 180000, 180000, '2020-03-15 11:18:46'),
(3, 'A3', '', '', '', '', '', '', '2019-12-31', '2019-12-31', '2019-12-31', '2019-12-31', '2019-12-31', '2019-12-31', '2019', 1080000, 0, 0, 0, 0, 0, 0, 180000, 180000, 180000, 180000, 180000, 180000, '2020-03-15 11:18:46'),
(4, 'A3', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019-12-01', '2019', 2160000, 180000, 180000, 180000, 180000, 180000, 180000, 180000, 180000, 180000, 180000, 180000, 180000, '2020-03-15 11:18:46'),
(5, 'A5', '', '', '', '', '', '', '', '', '', '2020-03-15', '2020-03-15', '2020-03-15', '2019', 540000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180000, 180000, 180000, '2020-03-15 11:18:46'),
(6, 'B1', '', '', '', '', '', '', '', '', '', '', '2019-12-31', '2019-12-31', '2019', 360000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180000, 180000, '2020-03-15 11:18:46'),
(7, 'B2', '', '', '', '', '', '', '', '2020-03-15', '2020-03-15', '2020-03-15', '2020-03-15', '2020-03-15', '2019', 900000, 0, 0, 0, 0, 0, 0, 0, 180000, 180000, 180000, 180000, 180000, '2020-03-15 11:18:46'),
(8, 'B3', '', '', '', '', '', '', '', '', '', '2020-03-15', '2020-03-15', '2020-03-15', '2019', 540000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180000, 180000, 180000, '2020-03-15 11:18:47'),
(9, 'B4', '', '', '', '', '', '', '', '', '2020-03-15', '2020-03-15', '2020-03-15', '2020-03-15', '2019', 720000, 0, 0, 0, 0, 0, 0, 0, 0, 180000, 180000, 180000, 180000, '2020-03-15 11:18:47'),
(10, 'B5', '', '', '', '', '', '', '', '', '', '2020-03-15', '2020-03-15', '2020-03-15', '2019', 540000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180000, 180000, 180000, '2020-03-15 11:18:47'),
(18, 'B6', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '2021-08-14 13:50:12'),
(19, 'B7', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '2021-08-14 13:50:18'),
(20, 'B8', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '2021-08-14 13:50:24'),
(21, 'A1', '2021-08-14', '2021-08-14', '', '', '', '', '', '', '', '', '', '', '2021', 360000, 180000, 180000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '2021-08-14 13:50:35'),
(22, 'A2', '', '', '', '', '', '', '', '', '', '', '', '', '2021', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '2021-08-14 13:50:35'),
(23, 'A3', '', '', '', '', '', '', '', '', '', '', '', '', '2021', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '2021-08-14 13:50:35'),
(24, 'A3', '', '', '', '', '', '', '', '', '', '', '', '', '2021', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '2021-08-14 13:50:35'),
(25, 'A5', '', '', '', '', '', '', '', '', '', '', '', '', '2021', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '2021-08-14 13:50:35'),
(26, 'B1', '', '', '', '', '', '', '', '', '', '', '', '', '2021', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '2021-08-14 13:50:36'),
(27, 'B2', '', '', '', '', '', '', '', '', '', '', '', '', '2021', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '2021-08-14 13:50:36'),
(28, 'B3', '', '', '', '', '', '', '', '', '', '', '', '', '2021', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '2021-08-14 13:50:36'),
(29, 'B4', '', '', '', '', '', '', '', '', '', '', '', '', '2021', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '2021-08-14 13:50:36'),
(30, 'B5', '', '', '', '', '', '', '', '', '', '', '', '', '2021', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '2021-08-14 13:50:36');
/*!40000 ALTER TABLE `kas_masuk` ENABLE KEYS */;
-- Dumping structure for table kas_rr.kas_masuk_lain
CREATE TABLE IF NOT EXISTS `kas_masuk_lain` (
`idKasMasukLain` int(11) NOT NULL AUTO_INCREMENT,
`bulan` varchar(50) NOT NULL,
`tahun` varchar(4) NOT NULL,
`deskripsi_pemasukan` varchar(50) NOT NULL,
`nominal` int(11) NOT NULL DEFAULT 0,
`tgl_pemasukan` date NOT NULL,
`modtime` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`idKasMasukLain`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
-- Dumping data for table kas_rr.kas_masuk_lain: ~1 rows (approximately)
DELETE FROM `kas_masuk_lain`;
/*!40000 ALTER TABLE `kas_masuk_lain` DISABLE KEYS */;
INSERT INTO `kas_masuk_lain` (`idKasMasukLain`, `bulan`, `tahun`, `deskripsi_pemasukan`, `nominal`, `tgl_pemasukan`, `modtime`) VALUES
(1, 'AGUSTUS', '2019', 'Sumbangan RW untuk 17an', 1000000, '2019-08-11', '2020-03-15 19:40:50');
/*!40000 ALTER TABLE `kas_masuk_lain` ENABLE KEYS */;
-- Dumping structure for table kas_rr.menu
CREATE TABLE IF NOT EXISTS `menu` (
`id_menu` int(11) NOT NULL AUTO_INCREMENT,
`nama_menu` varchar(50) NOT NULL,
`posisi` int(11) NOT NULL,
PRIMARY KEY (`id_menu`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
-- Dumping data for table kas_rr.menu: ~3 rows (approximately)
DELETE FROM `menu`;
/*!40000 ALTER TABLE `menu` DISABLE KEYS */;
INSERT INTO `menu` (`id_menu`, `nama_menu`, `posisi`) VALUES
(1, 'Kas', 1),
(2, 'Laporan', 2),
(3, 'Tools', 3);
/*!40000 ALTER TABLE `menu` ENABLE KEYS */;
-- Dumping structure for table kas_rr.modul
CREATE TABLE IF NOT EXISTS `modul` (
`id_modul` int(11) NOT NULL AUTO_INCREMENT,
`id_menu` int(11) NOT NULL,
`nama_modul` varchar(150) NOT NULL,
`link_menu` text NOT NULL,
`link_folder` text NOT NULL,
`posisi` int(11) NOT NULL,
`icon_menu` varchar(150) NOT NULL,
PRIMARY KEY (`id_modul`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
-- Dumping data for table kas_rr.modul: ~6 rows (approximately)
DELETE FROM `modul`;
/*!40000 ALTER TABLE `modul` DISABLE KEYS */;
INSERT INTO `modul` (`id_modul`, `id_menu`, `nama_modul`, `link_menu`, `link_folder`, `posisi`, `icon_menu`) VALUES
(1, 1, 'Iuran Warga', 'index.php?page=kas_masuk', 'pages/kas_masuk/kas_masuk.php', 1, 'fa fa-book'),
(2, 1, 'Pengeluaran', 'index.php?page=kas_keluar', 'pages/kas_keluar/kas_keluar.php', 3, 'fa fa-money'),
(3, 2, 'Kas Warga', 'index.php?page=report', 'pages/report/report.php', 1, 'fa fa-book'),
(4, 1, 'Pemasukan Lain', 'index.php?page=kas_masuk_lain', 'pages/kas_masuk_lain/kas_masuk_lain.php', 2, 'fa fa-plus-square'),
(5, 3, 'Rumah Warga', 'index.php?page=rumah_warga', 'pages/rumah_warga/rumah_warga.php', 1, 'fa fa-bank'),
(6, 3, 'Nominal Kas', 'index.php?page=nominal_bulanan', 'pages/nominal_bulanan/nominal_bulanan.php', 2, 'fa fa-money');
/*!40000 ALTER TABLE `modul` ENABLE KEYS */;
-- Dumping structure for table kas_rr.nominal_bulanan
CREATE TABLE IF NOT EXISTS `nominal_bulanan` (
`idNominal` int(11) NOT NULL AUTO_INCREMENT,
`nominal` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`idNominal`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
-- Dumping data for table kas_rr.nominal_bulanan: ~1 rows (approximately)
DELETE FROM `nominal_bulanan`;
/*!40000 ALTER TABLE `nominal_bulanan` DISABLE KEYS */;
INSERT INTO `nominal_bulanan` (`idNominal`, `nominal`) VALUES
(1, 100000);
/*!40000 ALTER TABLE `nominal_bulanan` ENABLE KEYS */;
-- Dumping structure for table kas_rr.user
CREATE TABLE IF NOT EXISTS `user` (
`id_user` int(11) NOT NULL AUTO_INCREMENT,
`nama_lengkap` varchar(45) NOT NULL,
`usernm` varchar(20) NOT NULL,
`passwd` varchar(50) NOT NULL,
`level` varchar(20) NOT NULL,
`last_login` datetime NOT NULL,
PRIMARY KEY (`id_user`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- Dumping data for table kas_rr.user: ~1 rows (approximately)
DELETE FROM `user`;
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
INSERT INTO `user` (`id_user`, `nama_lengkap`, `usernm`, `passwd`, `level`, `last_login`) VALUES
(1, 'Administrator', 'admin', '<PASSWORD>', 'admin', '2021-08-14 13:16:15');
/*!40000 ALTER TABLE `user` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
-- randexpr1.test
--
-- db eval {SELECT b-b+case when d+e between 17 and case when exists(select 1 from t1 where coalesce((select max(coalesce((select 11 from t1 where t1.e not between 13 and case when t1.e<>c then c & 19+t1.a else 17 end),t1.a)) from t1 where t1.d<=17 or a not in (b,11,a)),(t1.b))+b>=t1.a) then 11 else a end then d else a end+11*f FROM t1 WHERE NOT ((t1.b*19<=17))}
SELECT b-b+case when d+e between 17 and case when exists(select 1 from t1 where coalesce((select max(coalesce((select 11 from t1 where t1.e not between 13 and case when t1.e<>c then c & 19+t1.a else 17 end),t1.a)) from t1 where t1.d<=17 or a not in (b,11,a)),(t1.b))+b>=t1.a) then 11 else a end then d else a end+11*f FROM t1 WHERE NOT ((t1.b*19<=17)) |
<filename>src/test/resources/sql/select/dec049cb.sql
-- file:jsonb.sql ln:125 expect:true
SELECT test_json -> 'x' FROM test_jsonb WHERE json_type = 'object'
|
-- file:join.sql ln:1971 expect:true
create unique index on j3(unique1, tenthous)
|
CREATE TABLE orders (
ID BIGSERIAL PRIMARY KEY,
TRACKING_NUMBER VARCHAR(255) UNIQUE NOT NULL,
ITEMS JSONB
);
|
<reponame>dram/metasfresh
-- 2017-10-11T14:24:41.347
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO WEBUI_Board (AD_Client_ID,AD_Org_ID,AD_Table_ID,Created,CreatedBy,IsActive,Name,Updated,UpdatedBy,WEBUI_Board_ID) VALUES (0,0,417,TO_TIMESTAMP('2017-10-11 14:24:41','YYYY-MM-DD HH24:MI:SS'),100,'Y','Project Opportunities',TO_TIMESTAMP('2017-10-11 14:24:41','YYYY-MM-DD HH24:MI:SS'),100,540001)
;
-- 2017-10-11T14:26:59.173
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO WEBUI_Board_Lane (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy,WEBUI_Board_ID,WEBUI_Board_Lane_ID) VALUES (0,0,TO_TIMESTAMP('2017-10-11 14:26:59','YYYY-MM-DD HH24:MI:SS'),100,'Y','Backlog',10,TO_TIMESTAMP('2017-10-11 14:26:59','YYYY-MM-DD HH24:MI:SS'),100,540001,540006)
;
-- 2017-10-11T14:27:23.559
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO WEBUI_Board_Lane (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy,WEBUI_Board_ID,WEBUI_Board_Lane_ID) VALUES (0,0,TO_TIMESTAMP('2017-10-11 14:27:23','YYYY-MM-DD HH24:MI:SS'),100,'Y','ToDo',20,TO_TIMESTAMP('2017-10-11 14:27:23','YYYY-MM-DD HH24:MI:SS'),100,540001,540007)
;
-- 2017-10-11T14:27:32.570
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO WEBUI_Board_Lane (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy,WEBUI_Board_ID,WEBUI_Board_Lane_ID) VALUES (0,0,TO_TIMESTAMP('2017-10-11 14:27:31','YYYY-MM-DD HH24:MI:SS'),100,'Y','InProgress',30,TO_TIMESTAMP('2017-10-11 14:27:31','YYYY-MM-DD HH24:MI:SS'),100,540001,540008)
;
-- 2017-10-11T14:27:45.036
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO WEBUI_Board_Lane (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy,WEBUI_Board_ID,WEBUI_Board_Lane_ID) VALUES (0,0,TO_TIMESTAMP('2017-10-11 14:27:45','YYYY-MM-DD HH24:MI:SS'),100,'Y','Invoiceable',40,TO_TIMESTAMP('2017-10-11 14:27:45','YYYY-MM-DD HH24:MI:SS'),100,540001,540009)
;
-- 2017-10-11T14:29:46.739
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO WEBUI_Board_CardField (AD_Client_ID,AD_Column_ID,AD_Org_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy,WEBUI_Board_CardField_ID,WEBUI_Board_ID) VALUES (0,5433,0,TO_TIMESTAMP('2017-10-11 14:29:46','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-10-11 14:29:46','YYYY-MM-DD HH24:MI:SS'),100,540009,540001)
;
-- 2017-10-11T14:31:41.924
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM WEBUI_Board_CardField WHERE WEBUI_Board_CardField_ID=540009
;
-- 2017-10-11T14:31:52.530
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM WEBUI_Board_Lane WHERE WEBUI_Board_Lane_ID=540006
;
-- 2017-10-11T14:31:52.540
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM WEBUI_Board_Lane WHERE WEBUI_Board_Lane_ID=540007
;
-- 2017-10-11T14:31:52.546
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM WEBUI_Board_Lane WHERE WEBUI_Board_Lane_ID=540008
;
-- 2017-10-11T14:31:52.552
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM WEBUI_Board_Lane WHERE WEBUI_Board_Lane_ID=540009
;
-- 2017-10-11T14:31:56.250
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM WEBUI_Board WHERE WEBUI_Board_ID=540001
;
-- 2017-10-11T14:32:49.594
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO WEBUI_Board_CardField (AD_Client_ID,AD_Column_ID,AD_Org_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy,WEBUI_Board_CardField_ID,WEBUI_Board_ID) VALUES (0,2762,0,TO_TIMESTAMP('2017-10-11 14:32:49','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-10-11 14:32:49','YYYY-MM-DD HH24:MI:SS'),100,540010,540000)
;
-- 2017-10-11T14:32:58.056
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE WEBUI_Board_CardField SET SeqNo=20,Updated=TO_TIMESTAMP('2017-10-11 14:32:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE WEBUI_Board_CardField_ID=540003
;
-- 2017-10-11T14:33:01.012
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE WEBUI_Board_CardField SET SeqNo=30,Updated=TO_TIMESTAMP('2017-10-11 14:33:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE WEBUI_Board_CardField_ID=540004
;
-- 2017-10-11T14:33:04.652
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE WEBUI_Board_CardField SET SeqNo=40,Updated=TO_TIMESTAMP('2017-10-11 14:33:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE WEBUI_Board_CardField_ID=540005
;
-- 2017-10-11T15:24:03.067
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process SET Description='Aktualisiert die Mahnkarenzen in Rechnungen', Name='Mahnkarenz in Rechnungen aktualisieren',Updated=TO_TIMESTAMP('2017-10-11 15:24:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=540322
;
-- 2017-10-11T15:24:38.899
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-11 15:24:38','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Update Dunning Grace on open Invoices' WHERE AD_Process_ID=540322 AND AD_Language='en_US'
;
-- 2017-10-11T15:26:05.196
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Reference_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-11 15:26:05','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Dunning Trigger' WHERE AD_Reference_ID=540382 AND AD_Language='en_US'
;
-- 2017-10-11T15:26:10.363
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Reference_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-11 15:26:10','YYYY-MM-DD HH24:MI:SS'),Description='Dunning Trigger' WHERE AD_Reference_ID=540382 AND AD_Language='en_US'
;
-- 2017-10-11T15:26:25.371
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List SET Name='<NAME>',Updated=TO_TIMESTAMP('2017-10-11 15:26:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=540527
;
-- 2017-10-11T15:26:44.759
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-11 15:26:44','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Automatic Dunning Grace' WHERE AD_Ref_List_ID=540527 AND AD_Language='en_US'
;
-- 2017-10-11T15:27:05.989
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-11 15:27:05','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Default Paymentterm' WHERE AD_Ref_List_ID=540526 AND AD_Language='en_US'
;
|
<gh_stars>0
--
-- packages/acs-kernel/sql/site-node-selection.sql
--
-- @author <EMAIL>
-- @creation-date 2004-11-23
-- @cvs-id site-node-selection.sql
--
drop table site_nodes_selection;
--show errors |
<reponame>szlapanski/intshop<filename>db/db.sql
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 */;
--
-- Baza danych: `intshopbase`
--
CREATE DATABASE IF NOT EXISTS `intshopbase` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `intshopbase`;
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `Admins`
--
DROP TABLE IF EXISTS `Admins`;
CREATE TABLE IF NOT EXISTS `Admins` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(50) NOT NULL,
`password` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `Items`
--
DROP TABLE IF EXISTS `Items`;
CREATE TABLE IF NOT EXISTS `Items` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`price` decimal(7,2) NOT NULL DEFAULT '0.00',
`description` text NOT NULL,
`quantity` smallint(5) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Zrzut danych tabeli `Items`
--
INSERT INTO `Items` (`id`, `name`, `price`, `description`, `quantity`) VALUES
(1, 'test product', 12.40, 'This is just a test product''s description', 12);
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `ItemsPics`
--
DROP TABLE IF EXISTS `ItemsPics`;
CREATE TABLE IF NOT EXISTS `ItemsPics` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`itemId` int(10) NOT NULL,
`path` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
FOREIGN KEY (`itemId`) REFERENCES Items(`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `Users`
--
DROP TABLE IF EXISTS `Users`;
CREATE TABLE IF NOT EXISTS `Users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) NOT NULL,
`surname` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL,
`password` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Zrzut danych tabeli `Users`
--
INSERT INTO `Users` (`id`, `name`, `surname`, `email`, `password`) VALUES
(1, 'testname', 'testsurname', '<EMAIL>', '<PASSWORD>');
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `Orders`
--
DROP TABLE IF EXISTS `Orders`;
CREATE TABLE IF NOT EXISTS `Orders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`status` varchar(50) NOT NULL DEFAULT 'pending',
`itemId` int(11) NOT NULL,
`itemAmount` int(11) NOT NULL,
PRIMARY KEY (`id`),
FOREIGN KEY (itemId) REFERENCES Items(id) ON DELETE CASCADE,
FOREIGN KEY (userId) REFERENCES Users(id) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 04, 2018 at 06:21 PM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.2.12
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: `vehiclebooking`
--
-- --------------------------------------------------------
--
-- Table structure for table `booking`
--
CREATE TABLE `booking` (
`booking_id` int(11) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`phone` varchar(11) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`destination` varchar(255) DEFAULT NULL,
`departure_date` date DEFAULT NULL,
`vehicle_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `booking`
--
INSERT INTO `booking` (`booking_id`, `name`, `phone`, `email`, `destination`, `departure_date`, `vehicle_id`) VALUES
(1, '<NAME>', '01532645642', '<EMAIL>', 'karwan bazar', '2018-12-01', 2),
(2, '<NAME>', '01754698524', '<EMAIL>', 'Uttora', '2018-11-17', 2),
(3, '<NAME>', '01754698521', '<EMAIL>', 'Adabor ', '2018-11-21', 4),
(4, '<NAME>', '01523698745', '<EMAIL>', 'Gazipur', '2018-12-21', 3),
(5, '<NAME>', '0156987458', '<EMAIL>', 'kakrail', '2018-11-27', 2),
(7, '<NAME>', '01534953967', '<EMAIL> ', ' Jhigatola ', '2018-12-01', 3),
(8, '<NAME>', '01536987456', '<EMAIL> ', ' Dhanmondi', '2018-12-03', 6),
(9, '<NAME>', '01532645897', '<EMAIL> ', ' Jatrabari', '2018-12-12', 2),
(10, '<NAME>', '01754698545', '<EMAIL> ', ' Rampura', '2018-12-05', 1),
(12, '<NAME> ', '01754698542', '<EMAIL> ', ' Rampura', '2018-12-05', 3),
(13, '<NAME>', '01546987458', '<EMAIL> ', ' Mohakhali, dhaka', '2018-12-30', 3),
(14, '<NAME>', '01942042015', '<EMAIL> ', ' Lalbag', '2018-12-30', 3);
-- --------------------------------------------------------
--
-- Table structure for table `garage`
--
CREATE TABLE `garage` (
`garage_id` int(11) NOT NULL,
`gname` varchar(255) DEFAULT NULL,
`gphone` varchar(11) DEFAULT NULL,
`gaddress` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `garage`
--
INSERT INTO `garage` (`garage_id`, `gname`, `gphone`, `gaddress`) VALUES
(1, 'Trivedi-Tripathi Garage', '01956482347', 'Malibag, Dhaka.'),
(2, 'Kaleen Vaia Garages', '01725648579', 'Khilgaon, Dhaka'),
(3, 'Patwary Garages and Co.', '01812564857', 'Purana Paltan, Dhaka'),
(4, 'Jowardar Garage and Foundation', '01534569875', 'Badda, Dhaka'),
(5, 'Mark Brothers Garage', '01754985642', 'Farmgate, Dhaka'),
(6, 'Karim Garage', '01748945871', 'Demra, Dhaka'),
(7, 'Mridha Garage ltd.', '01754698547', 'Kakrail, Dhaka');
-- --------------------------------------------------------
--
-- Table structure for table `service`
--
CREATE TABLE `service` (
`employee_id` int(11) NOT NULL,
`ename` varchar(255) NOT NULL,
`rate` int(11) DEFAULT NULL,
`labor_time` int(11) DEFAULT NULL,
`garage_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `service`
--
INSERT INTO `service` (`employee_id`, `ename`, `rate`, `labor_time`, `garage_id`) VALUES
(1, '<NAME>', 250, 8, 2),
(2, '<NAME>', 200, 10, 2),
(3, '<NAME>', 225, 15, 3),
(4, '<NAME>', 180, 17, 4),
(5, '<NAME>', 185, 16, 2);
-- --------------------------------------------------------
--
-- Table structure for table `vehicle`
--
CREATE TABLE `vehicle` (
`vehicle_id` int(11) NOT NULL,
`model` varchar(255) DEFAULT NULL,
`ppday` int(11) DEFAULT NULL,
`garage_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `vehicle`
--
INSERT INTO `vehicle` (`vehicle_id`, `model`, `ppday`, `garage_id`) VALUES
(1, 'Toyota Corolla Axio', 1500, 2),
(2, 'Toyota Probox', 1200, 1),
(3, 'Toyota Land Cruiser Prado', 3500, 2),
(4, 'Toyota Premio ', 1800, 3),
(5, 'Toyota Allion', 1700, 4),
(6, 'Tata Nano', 1000, 3),
(7, 'Hundai sonata', 1800, 2);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `booking`
--
ALTER TABLE `booking`
ADD PRIMARY KEY (`booking_id`),
ADD KEY `vehicle_id` (`vehicle_id`);
--
-- Indexes for table `garage`
--
ALTER TABLE `garage`
ADD PRIMARY KEY (`garage_id`);
--
-- Indexes for table `service`
--
ALTER TABLE `service`
ADD PRIMARY KEY (`employee_id`),
ADD KEY `garage_id` (`garage_id`);
--
-- Indexes for table `vehicle`
--
ALTER TABLE `vehicle`
ADD PRIMARY KEY (`vehicle_id`),
ADD KEY `garage_id` (`garage_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `booking`
--
ALTER TABLE `booking`
MODIFY `booking_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `garage`
--
ALTER TABLE `garage`
MODIFY `garage_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `service`
--
ALTER TABLE `service`
MODIFY `employee_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `vehicle`
--
ALTER TABLE `vehicle`
MODIFY `vehicle_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `booking`
--
ALTER TABLE `booking`
ADD CONSTRAINT `booking_ibfk_1` FOREIGN KEY (`vehicle_id`) REFERENCES `vehicle` (`vehicle_id`);
--
-- Constraints for table `service`
--
ALTER TABLE `service`
ADD CONSTRAINT `service_ibfk_1` FOREIGN KEY (`garage_id`) REFERENCES `garage` (`garage_id`);
--
-- Constraints for table `vehicle`
--
ALTER TABLE `vehicle`
ADD CONSTRAINT `vehicle_ibfk_1` FOREIGN KEY (`garage_id`) REFERENCES `garage` (`garage_id`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<gh_stars>0
CREATE TABLE users (
username VARCHAR(45) NOT NULL ,
password VARCHAR(45) NOT NULL ,
enabled TINYINT NOT NULL DEFAULT 1 ,
PRIMARY KEY (username)); |
library Parent version '1.0.0'
using "CohortTest" version '0.0.1'
context A
define EntryPoint:
[B] b
with [C] c
such that b.decimal < c.big_decimal
|
<filename>models/sla_policy/reply_time/int_zendesk__reply_time_calendar_hours.sql
--REPLY TIME SLA
-- step 2, figure out when the sla will breach for sla's in calendar hours. The calculation is relatively straightforward.
with sla_policy_applied as (
select *
from {{ ref('int_zendesk__sla_policy_applied') }}
), final as (
select
*,
{{ fivetran_utils.timestamp_add(
"minute",
"cast(target as " ~ dbt_utils.type_int() ~ " )",
"sla_applied_at" ) }} as sla_breach_at
from sla_policy_applied
where not in_business_hours
and metric in ('next_reply_time', 'first_reply_time')
)
select *
from final
|
DROP VIEW IF EXISTS view_daftar_penerimaan_bpmpd;
CREATE VIEW view_daftar_penerimaan_bpmpd AS
SELECT
*
FROM
view_daftar_penerimaan_kabupaten
WHERE
1 = 1 AND
id_skpd = 10;
GRANT ALL PRIVILEGES ON view_daftar_penerimaan_bpmpd, sub_skpd TO lap_bpmpd;
REVOKE INSERT, UPDATE, DELETE ON view_daftar_penerimaan_bpmpd, sub_skpd FROM lap_bpmpd;
|
/* r225 PFS file name conversion */
INSERT INTO `sed_config` (`config_owner` ,`config_cat` ,`config_order` ,`config_name` ,`config_type` ,`config_value`) VALUES ('core', 'pfs', '03', 'pfstimename', '3', '0'); |
<filename>Lesson5Sql/Database1/Database1/Script-221.sql
use "Northwind"
select ord.OrderDate as Year2, Count(OrderID) as Total from Orders as ord group by OrderDate |
<gh_stars>0
--Patient Population
CREATE VIEW qwu6617.Charles3379Control AS
SELECT
fp.Patient_DW_Id
,fp.Company_Code
,fp.Coid
,fp.Admission_Date
FROM EDWCDM_Views.Fact_Patient fp
INNER JOIN EDWCL_Views.Person_CL p
ON fp.Patient_Person_DW_Id = p.Person_DW_Id
INNER JOIN EDW_Pub_Views.Fact_Facility ff
ON fp.Coid = ff.Coid
AND ff.Division_Code in('00018','00023','00026') --Code for division
AND ff.LOB_Code = 'HOS' --Code for hospital
AND ff.COID_Status_Code = 'F' --Code for active facilities (i.e. not sold/closed)
INNER JOIN EDWCDM_PC_Views.Patient_Procedure PP
ON PP.Patient_DW_Id = FP.Patient_DW_Id
AND PP.COID=FP.COID
AND PP.Procedure_Mapped_Code <> 'Y'
AND PP.Procedure_Code IN(
'02100AF',
'021009F',
'02100ZF',
'02104AW',
'021049W',
'02104KW',
'02100AW',
'021009W',
'02100KW',
'02100JW',
'021008W',
'02104A3',
'0210493',
'02104K3',
'02100A3',
'0210093',
'02100K3',
'02100J3',
'02100Z3',
'02104Z3',
'0210083',
'02103D4',
'02104D4',
'02100A9',
'02104A9',
'0210099',
'0210499',
'02100K9',
'02104K9',
'02100J9',
'0210089',
'0210489',
'02100Z9',
'02104Z9',
'02100A8',
'02104A8',
'0210098',
'0210498',
'02100K8',
'0210488',
'02100Z8',
'02104Z8',
'021049C',
'02100KC',
'02104KC',
'021008C',
'02100AC',
'021009C',
'02100ZC',
'02104ZC',
'02114AF',
'02110AF',
'021109F',
'02114AW',
'021149W',
'02110AW',
'021109W',
'02110KW',
'021108W',
'02114A3',
'0211493',
'0211483',
'02110A3',
'0211093',
'02110K3',
'0211083',
'02110Z3',
'02114Z3',
'02113D4',
'02114D4',
'02110A9',
'02114A9',
'0211099',
'0211499',
'02110K9',
'0211489',
'02110Z9',
'02114Z9',
'02110A8',
'0211098',
'0211498',
'02110K8',
'0211088',
'02110Z8',
'02114Z8',
'021149C',
'02110AC',
'021109C',
'02110ZC',
'02114ZC',
'02120AF',
'021209F',
'02120KF',
'02124AW',
'021249W',
'02120AW',
'021209W',
'02120KW',
'021208W',
'02124A3',
'0212493',
'02120A3',
'0212093',
'02120K3',
'02120J3',
'0212083',
'02120Z3',
'02124Z3',
'02123D4',
'02120A9',
'0212099',
'0212499',
'02120K9',
'0212089',
'02120Z9',
'02124Z9',
'02120A8',
'0212098',
'02120K8',
'02120Z8',
'02120AC',
'021209C',
'02120ZC',
'02130AF',
'021309F',
'02134AW',
'021349W',
'02134KW',
'02130AW',
'021309W',
'02130KW',
'02134A3',
'0213493',
'02130K3',
'0213483',
'02130A3',
'0213093',
'02130J3',
'02130Z3',
'02134Z3',
'02130A9',
'02134A9',
'0213099',
'0213499',
'02130K9',
'0213089',
'02130Z9',
'02134Z9',
'0213098',
'02130Z8',
'02134Z8',
'02130AC',
'02130KC',
'021309C'
,'033510'
,'033511'
,'033512'
,'033513'
,'033514'
,'033517'
,'033518'
,'033519'
,'033521'
,'033522'
,'033530'
,'033533'
,'033534'
,'033535'
,'033536'
)
WHERE fp.Admission_Date BETWEEN '2020-01-01' AND '2021-01-01' --update date
AND fp.Discharge_Date BETWEEN '2020-01-01' AND '2021-01-01' --update date
AND ((Cast((Cast((fp.Admission_Date(Format'YYYY-MM')) AS CHAR(7)) || '-01') AS DATE) - Cast((Cast((p.Person_Birth_Date(Format'YYYY-MM')) AS CHAR(7)) || '-01') AS DATE))/365) >44
AND fp.Company_Code='H'
AND fp.final_bill_date <> '0001-01-01'
AND fp.final_bill_date IS NOT NULL
/*AND fp.Patient_Type_Code_Pos1 = 'I' */
GROUP BY 1,2,3,4 |
<gh_stars>0
--
-- PostgreSQL database dump
--
-- Dumped from database version 12.4
-- Dumped by pg_dump version 12.4
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
SET default_tablespace = '';
SET default_table_access_method = heap;
--
-- Name: cities; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.cities (
city character varying(64) NOT NULL
);
ALTER TABLE public.cities OWNER TO postgres;
--
-- Name: flights; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.flights (
src character varying(64),
dst character varying(64),
price numeric(6,2)
);
ALTER TABLE public.flights OWNER TO postgres;
--
-- Data for Name: cities; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.cities (city) FROM stdin;
Moscow
New-York
Frankfurt
Washington
Nashville
London
Portland
San-Francisco
Paris
Tokyo
Tashkent
Chicago
Istanbul
Helsinki
Honolulu
Rome
Managua
Miami
Zurick
\.
--
-- Data for Name: flights; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.flights (src, dst, price) FROM stdin;
Moscow New-York 1815.00
Moscow Frankfurt 535.00
Moscow Washington 1577.00
Moscow London 136.00
Moscow Paris 387.00
Moscow Tokyo 1980.00
Moscow Tashkent 150.00
Moscow Istanbul 141.00
Moscow Helsinki 114.00
Moscow Rome 133.00
Moscow Miami 1091.00
Moscow Zurick 270.00
New-York Moscow 1815.00
New-York Frankfurt 935.00
New-York Washington 95.00
New-York Nashville 109.00
New-York London 765.00
New-York Portland 171.00
New-York San-Francisco 139.00
New-York Paris 330.00
New-York Tokyo 873.00
New-York Chicago 40.00
New-York Istanbul 1085.00
New-York Helsinki 1297.00
New-York Honolulu 312.00
New-York Rome 422.00
New-York Miami 77.00
New-York Zurick 899.00
Frankfurt Moscow 535.00
Frankfurt New-York 935.00
Frankfurt Washington 1467.00
Frankfurt London 79.00
Frankfurt Portland 685.00
Frankfurt San-Francisco 658.00
Frankfurt Paris 108.00
Frankfurt Tokyo 1282.00
Frankfurt Chicago 582.00
Frankfurt Istanbul 140.00
Frankfurt Helsinki 237.00
Frankfurt Rome 166.00
Frankfurt Miami 619.00
Frankfurt Zurick 136.00
Washington Moscow 1577.00
Washington New-York 95.00
Washington Frankfurt 1467.00
Washington Nashville 59.00
Washington London 939.00
Washington Portland 75.00
Washington San-Francisco 75.00
Washington Paris 890.00
Washington Tokyo 1930.00
Washington Chicago 41.00
Washington Istanbul 1099.00
Washington Helsinki 1501.00
Washington Honolulu 311.00
Washington Rome 899.00
Washington Miami 50.00
Washington Zurick 1467.00
Nashville New-York 109.00
Nashville Washington 59.00
Nashville London 1180.00
Nashville Portland 174.00
Nashville San-Francisco 131.00
Nashville Tokyo 692.00
Nashville Chicago 49.00
Nashville Miami 73.00
London Moscow 136.00
London New-York 765.00
London Frankfurt 79.00
London Washington 939.00
London Nashville 1180.00
London Portland 717.00
London San-Francisco 441.00
London Paris 68.00
London Tokyo 1564.00
London Chicago 411.00
London Istanbul 69.00
London Helsinki 348.00
London Rome 70.00
London Miami 418.00
London Zurick 54.00
Portland New-York 151.00
Portland Frankfurt 685.00
Portland Washington 75.00
Portland San-Francisco 89.00
Portland Chicago 89.00
Portland Honolulu 224.00
Portland Miami 124.00
San-Francisco New-York 139.00
San-Francisco Frankfurt 658.00
San-Francisco Washington 75.00
San-Francisco Nashville 131.00
San-Francisco London 441.00
San-Francisco Portland 89.00
San-Francisco Paris 1284.00
San-Francisco Tokyo 1026.00
San-Francisco Chicago 89.00
San-Francisco Istanbul 1184.00
San-Francisco Helsinki 1280.00
San-Francisco Honolulu 180.00
San-Francisco Rome 1073.00
San-Francisco Miami 169.00
San-Francisco Zurick 1584.00
Paris Moscow 387.00
Paris New-York 330.00
Paris Frankfurt 108.00
Paris Washington 890.00
Paris London 68.00
Paris San-Francisco 1284.00
Paris Tokyo 1440.00
Paris Chicago 562.00
Paris Istanbul 88.00
Paris Helsinki 428.00
Paris Rome 41.00
Paris Miami 651.00
Paris Zurick 154.00
Tokyo Moscow 1980.00
Tokyo New-York 873.00
Tokyo Frankfurt 1282.00
Tokyo Washington 1930.00
Tokyo London 1564.00
Tokyo Portland 1862.00
Tokyo San-Francisco 1026.00
Tokyo Paris 1440.00
Tokyo Chicago 1649.00
Tokyo Istanbul 647.00
Tokyo Helsinki 1754.00
Tokyo Rome 1801.00
Tokyo Miami 1662.00
Tokyo Zurick 1689.00
Tashkent Moscow 160.00
Tashkent Istanbul 758.00
Chicago New-York 40.00
Chicago Frankfurt 582.00
Chicago Washington 41.00
Chicago Nashville 49.00
Chicago London 411.00
Chicago Portland 89.00
Chicago San-Francisco 89.00
Chicago Paris 562.00
Chicago Tokyo 1649.00
Chicago Istanbul 1065.00
Chicago Helsinki 1411.00
Chicago Honolulu 292.00
Chicago Rome 643.00
Chicago Miami 36.00
Chicago Zurick 1527.00
Istanbul Moscow 141.00
Istanbul New-York 1085.00
Istanbul Frankfurt 140.00
Istanbul Washington 1099.00
Istanbul London 69.00
Istanbul San-Francisco 1184.00
Istanbul Paris 88.00
Istanbul Tokyo 647.00
Istanbul Tashkent 758.00
Istanbul Chicago 1065.00
Istanbul Helsinki 331.00
Istanbul Rome 130.00
Istanbul Miami 678.00
Istanbul Zurick 170.00
Helsinki Moscow 114.00
Helsinki New-York 1297.00
Helsinki Frankfurt 237.00
Helsinki Washington 1501.00
Helsinki London 348.00
Helsinki San-Francisco 1280.00
Helsinki Paris 428.00
Helsinki Tokyo 1754.00
Helsinki Chicago 1411.00
Helsinki Istanbul 331.00
Helsinki Rome 324.00
Helsinki Miami 760.00
Helsinki Zurick 333.00
Honolulu New-York 312.00
Honolulu Washington 311.00
Honolulu Portland 224.00
Honolulu San-Francisco 180.00
Honolulu Chicago 292.00
Honolulu Miami 460.00
Rome Moscow 133.00
Rome New-York 422.00
Rome Frankfurt 166.00
Rome Washington 899.00
Rome London 70.00
Rome San-Francisco 1073.00
Rome Paris 41.00
Rome Tokyo 1801.00
Rome Chicago 643.00
Rome Istanbul 130.00
Rome Helsinki 324.00
Rome Miami 629.00
Rome Zurick 122.00
Managua Miami 135.00
Miami Moscow 1091.00
Miami New-York 77.00
Miami Frankfurt 619.00
Miami Washington 50.00
Miami Nashville 73.00
Miami London 418.00
Miami Portland 124.00
Miami San-Francisco 169.00
Miami Paris 651.00
Miami Tokyo 1662.00
Miami Chicago 36.00
Miami Istanbul 678.00
Miami Helsinki 760.00
Miami Rome 629.00
Miami Managua 135.00
Miami Zurick 760.00
Zurick Moscow 270.00
Zurick New-York 899.00
Zurick Frankfurt 136.00
Zurick Washington 1467.00
Zurick London 54.00
Zurick San-Francisco 1584.00
Zurick Paris 154.00
Zurick Tokyo 1689.00
Zurick Chicago 1527.00
Zurick Istanbul 170.00
Zurick Helsinki 333.00
Zurick Rome 122.00
Zurick Miami 760.00
\.
--
-- Name: cities cities_city_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.cities
ADD CONSTRAINT cities_city_key UNIQUE (city);
--
-- Name: cities cities_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.cities
ADD CONSTRAINT cities_pkey PRIMARY KEY (city);
--
-- Name: flights flights_dst_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.flights
ADD CONSTRAINT flights_dst_fkey FOREIGN KEY (dst) REFERENCES public.cities(city) ON DELETE CASCADE;
--
-- Name: flights flights_src_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.flights
ADD CONSTRAINT flights_src_fkey FOREIGN KEY (src) REFERENCES public.cities(city) ON DELETE CASCADE;
--
-- PostgreSQL database dump complete
--
|
CREATE TABLE "Euro2016_1"(
"col_00" smallint NOT NULL,
"col_01" integer NOT NULL,
"col_02" varchar(3) NOT NULL,
"col_03" varchar(12),
"col_04" varchar(13),
"col_05" varchar(8),
"col_06" decimal(16, 15),
"col_07" varchar(10),
"col_08" decimal(16, 15),
"col_09" varchar(402) NOT NULL,
"col_10" timestamp
);
|
<filename>ReadMe/covid_tracker .sql
-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 20, 2020 at 05:50 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.3.23
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `covid_tracker`
--
-- --------------------------------------------------------
--
-- Table structure for table `cache`
--
CREATE TABLE `cache` (
`key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`value` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
`expiration` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `city`
--
CREATE TABLE `city` (
`id` int(11) NOT NULL,
`name` varchar(1000) DEFAULT NULL,
`publish_status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `city`
--
INSERT INTO `city` (`id`, `name`, `publish_status`) VALUES
(1, 'Colombo', 1),
(2, 'Minuwangoda', 1),
(3, 'Katunayaka', 1);
-- --------------------------------------------------------
--
-- Table structure for table `daily_cases`
--
CREATE TABLE `daily_cases` (
`id` int(11) NOT NULL,
`reported_date` date DEFAULT NULL,
`detected_province_id` int(11) DEFAULT NULL,
`detected_district_id` int(11) DEFAULT NULL,
`detected_city_id` int(11) DEFAULT NULL,
`patient_name` varchar(2000) DEFAULT NULL,
`gender` varchar(20) DEFAULT NULL,
`dob` date DEFAULT NULL,
`nationality` varchar(1000) DEFAULT NULL,
`status` varchar(1000) DEFAULT NULL,
`place_of_death` varchar(3000) DEFAULT NULL,
`date_of_death` date DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`created_by` int(11) DEFAULT NULL,
`updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `daily_cases`
--
INSERT INTO `daily_cases` (`id`, `reported_date`, `detected_province_id`, `detected_district_id`, `detected_city_id`, `patient_name`, `gender`, `dob`, `nationality`, `status`, `place_of_death`, `date_of_death`, `deleted_at`, `created_at`, `created_by`, `updated_at`) VALUES
(1, '2020-10-15', 1, 1, 1, NULL, 'M', '2020-10-18', NULL, 'CONFIRMED_CASE', NULL, '2020-10-18', NULL, '2020-10-18 00:09:57', NULL, NULL),
(2, '2020-10-15', 1, 2, 1, NULL, 'M', '2020-10-18', NULL, 'DIED', NULL, '2020-10-18', NULL, '2020-10-18 00:09:57', NULL, NULL),
(3, '2020-10-16', 1, 1, 1, NULL, 'F', '2020-10-18', NULL, 'RECOVERED_DISCHARGED', NULL, '2020-10-18', NULL, '2020-10-18 00:09:57', NULL, NULL),
(4, '2020-10-17', 1, 3, 1, NULL, 'M', '2020-10-18', NULL, 'SUSPECTED_HOSPITALIZED', NULL, '2020-10-18', NULL, '2020-10-18 00:09:57', NULL, NULL),
(5, '2020-10-17', 1, 1, 1, NULL, 'M', '0000-00-00', NULL, 'CONFIRMED_CASE', NULL, '0000-00-00', NULL, '2020-10-20 19:28:10', NULL, NULL),
(6, '2020-10-17', 1, 1, 1, NULL, 'M', '2020-10-20', NULL, 'CONFIRMED_CASE', NULL, '2020-10-20', NULL, '2020-10-20 19:28:30', NULL, NULL),
(7, '2020-10-18', 1, 2, 1, NULL, 'M', '2001-10-20', NULL, 'CONFIRMED_CASE', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(8, '2020-10-18', 1, 3, 1, NULL, 'M', '2001-10-20', NULL, 'DIED', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(9, '2020-10-18', 1, 2, 1, NULL, 'M', '2001-10-20', NULL, 'CONFIRMED_CASE', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(10, '2020-10-18', 1, 3, 1, NULL, 'F', '2001-10-20', NULL, 'CONFIRMED_CASE', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(11, '2020-10-19', 1, 2, 1, NULL, 'F', '2001-10-20', NULL, 'RECOVERED_DISCHARGED', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(12, '2020-10-19', 1, 1, 1, NULL, 'F', '2001-10-20', NULL, 'DIED', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(13, '2020-10-19', 1, 3, 1, NULL, 'F', '2001-10-20', NULL, 'CONFIRMED_CASE', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(14, '2020-10-19', 1, 3, 1, NULL, 'F', '2001-10-20', NULL, 'RECOVERED_DISCHARGED', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(15, '2020-10-20', 1, 1, 1, NULL, 'F', '2001-10-20', NULL, 'SUSPECTED_HOSPITALIZED', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(16, '2020-10-20', 1, 2, 1, NULL, 'F', '2001-10-20', NULL, 'DIED', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(17, '2020-10-18', 1, 2, 1, NULL, 'F', '2001-10-20', NULL, 'CONFIRMED_CASE', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(18, '2020-10-15', 1, 2, 1, NULL, 'F', '2001-10-20', NULL, 'SUSPECTED_HOSPITALIZED', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(20, '2020-10-18', 1, 1, 1, NULL, 'M', '2001-10-20', NULL, 'RECOVERED_DISCHARGED', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(21, '2020-10-19', 1, 1, 1, NULL, 'M', '2001-10-20', NULL, 'SUSPECTED_HOSPITALIZED', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(22, '2020-10-15', 1, 1, 1, NULL, 'M', '2001-10-20', NULL, 'SUSPECTED_HOSPITALIZED', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(23, '2020-10-16', 1, 2, 1, NULL, 'M', '2001-10-20', NULL, 'RECOVERED_DISCHARGED', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(24, '2020-10-17', 1, 3, 1, NULL, 'M', '2001-10-20', NULL, 'CONFIRMED_CASE', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(25, '2020-10-14', 1, 1, 1, NULL, 'M', '2001-10-20', NULL, 'RECOVERED_DISCHARGED', NULL, NULL, NULL, '2020-10-20 19:28:30', NULL, NULL),
(33, '2020-10-01', 1, 1, 1, NULL, 'F', '2020-10-21', 'Sri_Lankan', 'CONFIRMED_CASE', NULL, NULL, NULL, '2020-10-20 15:43:50', NULL, '2020-10-20 15:43:50');
-- --------------------------------------------------------
--
-- Table structure for table `districts`
--
CREATE TABLE `districts` (
`id` int(11) NOT NULL,
`name` varchar(4000) NOT NULL,
`publish_status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `districts`
--
INSERT INTO `districts` (`id`, `name`, `publish_status`) VALUES
(1, 'Colombo', 1),
(2, 'Kaluthara', 1),
(3, 'Gampaha', 1);
-- --------------------------------------------------------
--
-- Table structure for table `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_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_10_17_130503_create_cases_table', 1),
(5, '2016_06_01_000001_create_oauth_auth_codes_table', 2),
(6, '2016_06_01_000002_create_oauth_access_tokens_table', 2),
(7, '2016_06_01_000003_create_oauth_refresh_tokens_table', 2),
(8, '2016_06_01_000004_create_oauth_clients_table', 2),
(9, '2016_06_01_000005_create_oauth_personal_access_clients_table', 2),
(10, '2020_10_20_101623_create_cache_table', 3);
-- --------------------------------------------------------
--
-- Table structure for table `oauth_access_tokens`
--
CREATE TABLE `oauth_access_tokens` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) UNSIGNED DEFAULT NULL,
`client_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`scopes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`revoked` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`expires_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `oauth_access_tokens`
--
INSERT INTO `oauth_access_tokens` (`id`, `user_id`, `client_id`, `name`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) VALUES
('0a7bca1e8d1718896dad049d5a7fdf8307fbcc562160133686b0d651dcc73500baaa046511ece333', 2, 2, NULL, '[]', 0, '2020-10-19 12:00:29', '2020-10-19 12:00:29', '2021-10-19 17:30:29'),
('2777f660fb469dc0618495c60d24bb39a5800f59fdeb98376c61ff2eb70c1d5bdac0bd63db82d461', 2, 2, NULL, '[]', 0, '2020-10-20 08:24:02', '2020-10-20 08:24:02', '2021-10-20 13:54:02'),
('5d96bda64cc62a26029c058fea32773a4345323e6982841528cb66c4eac98398ac91a131a9471465', 1, 2, NULL, '[]', 0, '2020-10-20 08:22:41', '2020-10-20 08:22:41', '2021-10-20 13:52:41'),
('7a269bea9681c9e77a66bb96389ed428ffd1272cae7721dbe69b35e96680f4fd0d4dc6b790903a14', 2, 2, NULL, '[]', 0, '2020-10-19 13:02:34', '2020-10-19 13:02:34', '2021-10-19 18:32:34'),
('8ed00d697f76ec5a2920355fed651e27638acd94b8c4e2433481783c12b33b2ce43badf081911909', 2, 2, NULL, '[]', 0, '2020-10-19 13:05:14', '2020-10-19 13:05:14', '2021-10-19 18:35:14'),
('d300cde43c2a04af04cb6ddb6e689cb88c4b89aa13ad5f78c48a679b5563012c0f23167c0cbc9d71', 2, 2, NULL, '[]', 0, '2020-10-20 07:40:25', '2020-10-20 07:40:25', '2021-10-20 13:10:25'),
('d5d29c1d882f573420dafb4b85de7232c57bdbf67e0066d7f3a46f635e0dc8e6fc1946dabb6bf2f1', 2, 2, NULL, '[]', 0, '2020-10-19 13:04:31', '2020-10-19 13:04:31', '2021-10-19 18:34:31'),
('e44960bd4d4c093ae019cac9210dbc0a08c64201f0fccf82cee9c34cf4b92682c18acd71db53e232', 2, 2, NULL, '[]', 0, '2020-10-19 13:28:08', '2020-10-19 13:28:08', '2021-10-19 18:58:08'),
('ec1c9420e897e4000a919001c6f438def99edbdbcc59a9d02a9cd9f6a54e6c4ae121dcfd487d9c16', 2, 2, NULL, '[]', 0, '2020-10-20 06:16:29', '2020-10-20 06:16:29', '2021-10-20 11:46:29'),
('ec9e72d7c64e7e5f26f636ae2e42756b91b63151df07cabe30965d83336a7b51fcc5f0a538367606', 2, 2, NULL, '[]', 0, '2020-10-19 12:11:26', '2020-10-19 12:11:26', '2021-10-19 17:41:26'),
('f1725f91408a09e627712c8eb711e90447a1be48f784ae502be4278bd1ff285af3f03ac6ea3b37c3', 1, 2, NULL, '[]', 0, '2020-10-17 11:48:17', '2020-10-17 11:48:17', '2021-10-17 17:18:17'),
('f7d52c9751bd4dff84c999507c1e304f0c0d83498da74475990411f34779af2ff93c5e7763e31b89', 1, 2, NULL, '[]', 0, '2020-10-20 08:59:40', '2020-10-20 08:59:40', '2021-10-20 14:29:40'),
('f9fb7dc47881a299734ec4f577c31c9adc0b8fcb4e9d22808e068eb2a4035bf8ff6bdc77f075cd69', 1, 2, NULL, '[]', 0, '2020-10-20 09:05:09', '2020-10-20 09:05:09', '2021-10-20 14:35:09');
-- --------------------------------------------------------
--
-- Table structure for table `oauth_auth_codes`
--
CREATE TABLE `oauth_auth_codes` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`client_id` bigint(20) UNSIGNED NOT NULL,
`scopes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`revoked` tinyint(1) NOT NULL,
`expires_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `oauth_clients`
--
CREATE TABLE `oauth_clients` (
`id` bigint(20) UNSIGNED NOT NULL,
`user_id` bigint(20) UNSIGNED DEFAULT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`secret` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`provider` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`redirect` text COLLATE utf8mb4_unicode_ci NOT NULL,
`personal_access_client` tinyint(1) NOT NULL,
`password_client` tinyint(1) NOT NULL,
`revoked` tinyint(1) 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 `oauth_clients`
--
INSERT INTO `oauth_clients` (`id`, `user_id`, `name`, `secret`, `provider`, `redirect`, `personal_access_client`, `password_client`, `revoked`, `created_at`, `updated_at`) VALUES
(1, NULL, 'Laravel Personal Access Client', 'ImxQxNooidxBWfQPqvDp2p0Mw3QnA5ed8nWRsytd', NULL, 'http://localhost', 1, 0, 0, '2020-10-17 08:41:16', '2020-10-17 08:41:16'),
(2, NULL, 'Laravel Password Grant Client', 'dqMgm0vHpiOPiP2LXxhkg00dPXTUl1NBYd6xD96S', 'users', 'http://localhost', 0, 1, 0, '2020-10-17 08:41:16', '2020-10-17 08:41:16');
-- --------------------------------------------------------
--
-- Table structure for table `oauth_personal_access_clients`
--
CREATE TABLE `oauth_personal_access_clients` (
`id` bigint(20) UNSIGNED NOT NULL,
`client_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `oauth_personal_access_clients`
--
INSERT INTO `oauth_personal_access_clients` (`id`, `client_id`, `created_at`, `updated_at`) VALUES
(1, 1, '2020-10-17 08:41:16', '2020-10-17 08:41:16');
-- --------------------------------------------------------
--
-- Table structure for table `oauth_refresh_tokens`
--
CREATE TABLE `oauth_refresh_tokens` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`access_token_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`revoked` tinyint(1) NOT NULL,
`expires_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `oauth_refresh_tokens`
--
INSERT INTO `oauth_refresh_tokens` (`id`, `access_token_id`, `revoked`, `expires_at`) VALUES
('2123c10b06a5df33e6165c1f641156adef2c8f12fc9184831feb41e2a7395e41804153a70aa265d0', 'ec9e72d7c64e7e5f26f636ae2e42756b91b63151df07cabe30965d83336a7b51fcc5f0a538367606', 0, '2021-10-19 17:41:26'),
('<KEY>', '<KEY>', 0, '2021-10-20 13:54:02'),
('<KEY>', 'd5d29c1d882f573420dafb4b85de7232c57bdbf67e0066d7f3a46f635e0dc8e6fc1946dabb6bf2f1', 0, '2021-10-19 18:34:31'),
('<KEY>', 'ec1c9420e897e4000a919001c6f438def99edbdbcc59a9d02a9cd9f6a54e6c4ae121dcfd487d9c16', 0, '2021-10-20 11:46:29'),
('41fe5bb55cc91cacacd30a96713a20e0435e89f7971d8815e67865eb810d90a456ed6a22ac183ad6', '<KEY>', 0, '2021-10-19 17:30:29'),
('47021ef857f86ca6cc97b79a49eff2a5dc41ad71301fd33abbfc03f954d185d8ae03beba9b6348dd', 'f1725f91408a09e627712c8eb711e90447a1be48f784ae502be4278bd1ff285af3f03ac6ea3b37c3', 0, '2021-10-17 17:18:17'),
('495e322fadc462ec18545acc662ca618171390b195ad86cdea1f0272a93a58981f4a7e3fc4a53290', '5d96bda64cc62a26029c058fea32773a4345323e6982841528cb66c4eac98398ac91a131a9471465', 0, '2021-10-20 13:52:41'),
('<KEY>', 'f7d52c9751bd4dff84c999507c1e304f0c0d83498da74475990411f34779af2ff93c5e7763e31b89', 0, '2021-10-20 14:29:40'),
('<KEY>', '7a269bea9681c9e77a66bb96389ed428ffd1272cae7721dbe69b35e96680f4fd0d4dc6b790903a14', 0, '2021-10-19 18:32:34'),
('a49c6efe3a8266ff6c3ba6a40922c8ade84ab8c8a57d373072a2bdadc91582c88dc5b49cfc6e5eab', '8ed00d697f76ec5a2920355fed651e27638acd94b8c4e2433481783c12b33b2ce43badf081911909', 0, '2021-10-19 18:35:14'),
('b205e7e94af95f938c94abe6934b5f5e0a54e0b17527f131b20f688696e3f6639168a6b1ea680864', 'd300cde43c2a04af04cb6ddb6e689cb88c4b89aa13ad5f78c48a679b5563012c0f23167c0cbc9d71', 0, '2021-10-20 13:10:25'),
('d19d173036b5f601424342e97b1db79e64563ffe0e66defa2ec79b61b5ec055096d5085e102e44c9', '<KEY>', 0, '2021-10-20 14:35:09'),
('<KEY>', '<KEY>', 0, '2021-10-19 18:58:08');
-- --------------------------------------------------------
--
-- 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 `province`
--
CREATE TABLE `province` (
`id` int(11) NOT NULL,
`name` varchar(1000) DEFAULT NULL,
`publish_status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `province`
--
INSERT INTO `province` (`id`, `name`, `publish_status`) VALUES
(1, 'Western', 1),
(2, 'Eastern', 1),
(3, 'South', 1);
-- --------------------------------------------------------
--
-- 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,
`role` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`, `role`) VALUES
(1, 'Admin', '<EMAIL>', '2020-10-17 16:17:12', '$2y$10$4TaAOdgzvrHrCDa1X3VDCeM565FtD2Pt1Bu2cAcowB9/5rUFnPU3K', '9qiE7SBOJisDeH03DvCs7dO5A24wNYOQ50wbKyMSmgvuPItEREaFRO9Laz2q', '2020-10-17 16:17:12', NULL, 'admin'),
(2, 'Heshani', '<EMAIL>', NULL, '$2y$10$cxr1J0BfLMMlCHvLgrNQLeioyF/YipKX2djLPjYbMm/EtNaL4N15e', 'hUJzYSMHzG4ARxMjUdsNzilGeIO55cUBg1ec0vX1dE8wkV532J0vKLMwx0ya', '2020-10-19 11:48:57', '2020-10-19 11:48:57', 'user');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `cache`
--
ALTER TABLE `cache`
ADD UNIQUE KEY `cache_key_unique` (`key`);
--
-- Indexes for table `city`
--
ALTER TABLE `city`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `daily_cases`
--
ALTER TABLE `daily_cases`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `oauth_access_tokens`
--
ALTER TABLE `oauth_access_tokens`
ADD PRIMARY KEY (`id`),
ADD KEY `oauth_access_tokens_user_id_index` (`user_id`);
--
-- Indexes for table `oauth_auth_codes`
--
ALTER TABLE `oauth_auth_codes`
ADD PRIMARY KEY (`id`),
ADD KEY `oauth_auth_codes_user_id_index` (`user_id`);
--
-- Indexes for table `oauth_clients`
--
ALTER TABLE `oauth_clients`
ADD PRIMARY KEY (`id`),
ADD KEY `oauth_clients_user_id_index` (`user_id`);
--
-- Indexes for table `oauth_personal_access_clients`
--
ALTER TABLE `oauth_personal_access_clients`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `oauth_refresh_tokens`
--
ALTER TABLE `oauth_refresh_tokens`
ADD PRIMARY KEY (`id`),
ADD KEY `oauth_refresh_tokens_access_token_id_index` (`access_token_id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `province`
--
ALTER TABLE `province`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `city`
--
ALTER TABLE `city`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `daily_cases`
--
ALTER TABLE `daily_cases`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34;
--
-- 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=11;
--
-- AUTO_INCREMENT for table `oauth_clients`
--
ALTER TABLE `oauth_clients`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `oauth_personal_access_clients`
--
ALTER TABLE `oauth_personal_access_clients`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `province`
--
ALTER TABLE `province`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
CREATE TABLE [dbo].[provider] (
[provider_id] INT NOT NULL,
[provider_name] VARCHAR (255) NULL,
[NPI] VARCHAR (20) NULL,
[DEA] VARCHAR (20) NULL,
[specialty_concept_id] INT NULL,
[care_site_id] INT NULL,
[year_of_birth] INT NULL,
[gender_concept_id] INT NULL,
[provider_source_value] VARCHAR (50) NULL,
[specialty_source_value] VARCHAR (50) NULL,
[specialty_source_concept_id] INT NULL,
[gender_source_value] VARCHAR (50) NULL,
[gender_source_concept_id] INT NULL
);
|
SELECT title, author
FROM book
WHERE (price BETWEEN 540.5 AND 800) AND (amount IN (2, 3, 5, 7));
|
/*
Navicat Premium Data Transfer
Source Server : php27
Source Server Type : MySQL
Source Server Version : 100417
Source Host : localhost:3306
Source Schema : projectbanhang
Target Server Type : MySQL
Target Server Version : 100417
File Encoding : 65001
Date: 02/08/2021 11:36:49
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for brands
-- ----------------------------
DROP TABLE IF EXISTS `brands`;
CREATE TABLE `brands` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` int NULL DEFAULT NULL,
`created_at` timestamp(0) NULL DEFAULT NULL,
`updated_at` timestamp(0) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of brands
-- ----------------------------
INSERT INTO `brands` VALUES (1, 'Adidas', 'adidas436', 1, '2021-06-24 15:13:50', '2021-06-24 15:13:50');
INSERT INTO `brands` VALUES (2, 'Zara', 'zara61', 1, '2021-06-26 16:24:46', '2021-06-26 16:24:46');
INSERT INTO `brands` VALUES (3, '<NAME>', 'ralph-lauren629', 1, '2021-06-26 16:25:33', '2021-06-26 16:25:33');
INSERT INTO `brands` VALUES (4, 'Brooks Brothers', 'brooks-brothers983', 1, '2021-06-26 16:26:09', '2021-06-26 16:26:09');
INSERT INTO `brands` VALUES (5, 'J.Crew', 'jcrew664', 1, '2021-06-26 16:26:28', '2021-06-26 16:26:28');
INSERT INTO `brands` VALUES (6, 'Gucci', 'gucci322', 23, '2021-07-10 14:09:10', '2021-07-10 14:09:10');
-- ----------------------------
-- Table structure for cache
-- ----------------------------
DROP TABLE IF EXISTS `cache`;
CREATE TABLE `cache` (
`key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`value` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`expiration` int NOT NULL,
UNIQUE INDEX `cache_key_unique`(`key`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of cache
-- ----------------------------
INSERT INTO `cache` VALUES ('laravel_cachemenus', 'O:39:\"Illuminate\\Database\\Eloquent\\Collection\":1:{s:8:\"\0*\0items\";a:6:{i:0;O:19:\"App\\Models\\Category\":28:{s:13:\"\0*\0connection\";s:5:\"mysql\";s:8:\"\0*\0table\";s:10:\"categories\";s:13:\"\0*\0primaryKey\";s:2:\"id\";s:10:\"\0*\0keyType\";s:3:\"int\";s:12:\"incrementing\";b:1;s:7:\"\0*\0with\";a:0:{}s:12:\"\0*\0withCount\";a:0:{}s:19:\"preventsLazyLoading\";b:0;s:10:\"\0*\0perPage\";i:15;s:6:\"exists\";b:1;s:18:\"wasRecentlyCreated\";b:0;s:13:\"\0*\0attributes\";a:8:{s:2:\"id\";i:1;s:4:\"name\";s:14:\"<NAME>\";s:4:\"slug\";s:11:\"quan-ao-nam\";s:9:\"parent_id\";i:0;s:7:\"user_id\";i:0;s:5:\"depth\";i:0;s:10:\"created_at\";N;s:10:\"updated_at\";s:19:\"2021-06-24 14:29:51\";}s:11:\"\0*\0original\";a:8:{s:2:\"id\";i:1;s:4:\"name\";s:14:\"<NAME>\";s:4:\"slug\";s:11:\"quan-ao-nam\";s:9:\"parent_id\";i:0;s:7:\"user_id\";i:0;s:5:\"depth\";i:0;s:10:\"created_at\";N;s:10:\"updated_at\";s:19:\"2021-06-24 14:29:51\";}s:10:\"\0*\0changes\";a:0:{}s:8:\"\0*\0casts\";a:0:{}s:17:\"\0*\0classCastCache\";a:0:{}s:8:\"\0*\0dates\";a:0:{}s:13:\"\0*\0dateFormat\";N;s:10:\"\0*\0appends\";a:0:{}s:19:\"\0*\0dispatchesEvents\";a:0:{}s:14:\"\0*\0observables\";a:0:{}s:12:\"\0*\0relations\";a:0:{}s:10:\"\0*\0touches\";a:0:{}s:10:\"timestamps\";b:1;s:9:\"\0*\0hidden\";a:0:{}s:10:\"\0*\0visible\";a:0:{}s:11:\"\0*\0fillable\";a:0:{}s:10:\"\0*\0guarded\";a:1:{i:0;s:1:\"*\";}}i:1;O:19:\"App\\Models\\Category\":28:{s:13:\"\0*\0connection\";s:5:\"mysql\";s:8:\"\0*\0table\";s:10:\"categories\";s:13:\"\0*\0primaryKey\";s:2:\"id\";s:10:\"\0*\0keyType\";s:3:\"int\";s:12:\"incrementing\";b:1;s:7:\"\0*\0with\";a:0:{}s:12:\"\0*\0withCount\";a:0:{}s:19:\"preventsLazyLoading\";b:0;s:10:\"\0*\0perPage\";i:15;s:6:\"exists\";b:1;s:18:\"wasRecentlyCreated\";b:0;s:13:\"\0*\0attributes\";a:8:{s:2:\"id\";i:2;s:4:\"name\";s:15:\"Quần áo nữ\";s:4:\"slug\";s:10:\"quan-ao-nu\";s:9:\"parent_id\";i:0;s:7:\"user_id\";i:0;s:5:\"depth\";i:0;s:10:\"created_at\";N;s:10:\"updated_at\";s:19:\"2021-06-24 14:29:51\";}s:11:\"\0*\0original\";a:8:{s:2:\"id\";i:2;s:4:\"name\";s:15:\"Quần áo nữ\";s:4:\"slug\";s:10:\"quan-ao-nu\";s:9:\"parent_id\";i:0;s:7:\"user_id\";i:0;s:5:\"depth\";i:0;s:10:\"created_at\";N;s:10:\"updated_at\";s:19:\"2021-06-24 14:29:51\";}s:10:\"\0*\0changes\";a:0:{}s:8:\"\0*\0casts\";a:0:{}s:17:\"\0*\0classCastCache\";a:0:{}s:8:\"\0*\0dates\";a:0:{}s:13:\"\0*\0dateFormat\";N;s:10:\"\0*\0appends\";a:0:{}s:19:\"\0*\0dispatchesEvents\";a:0:{}s:14:\"\0*\0observables\";a:0:{}s:12:\"\0*\0relations\";a:0:{}s:10:\"\0*\0touches\";a:0:{}s:10:\"timestamps\";b:1;s:9:\"\0*\0hidden\";a:0:{}s:10:\"\0*\0visible\";a:0:{}s:11:\"\0*\0fillable\";a:0:{}s:10:\"\0*\0guarded\";a:1:{i:0;s:1:\"*\";}}i:2;O:19:\"App\\Models\\Category\":28:{s:13:\"\0*\0connection\";s:5:\"mysql\";s:8:\"\0*\0table\";s:10:\"categories\";s:13:\"\0*\0primaryKey\";s:2:\"id\";s:10:\"\0*\0keyType\";s:3:\"int\";s:12:\"incrementing\";b:1;s:7:\"\0*\0with\";a:0:{}s:12:\"\0*\0withCount\";a:0:{}s:19:\"preventsLazyLoading\";b:0;s:10:\"\0*\0perPage\";i:15;s:6:\"exists\";b:1;s:18:\"wasRecentlyCreated\";b:0;s:13:\"\0*\0attributes\";a:8:{s:2:\"id\";i:3;s:4:\"name\";s:21:\"Quần áo thể thao\";s:4:\"slug\";s:16:\"quan-ao-the-thao\";s:9:\"parent_id\";i:0;s:7:\"user_id\";i:0;s:5:\"depth\";i:0;s:10:\"created_at\";N;s:10:\"updated_at\";s:19:\"2021-06-24 14:29:51\";}s:11:\"\0*\0original\";a:8:{s:2:\"id\";i:3;s:4:\"name\";s:21:\"Quần áo thể thao\";s:4:\"slug\";s:16:\"quan-ao-the-thao\";s:9:\"parent_id\";i:0;s:7:\"user_id\";i:0;s:5:\"depth\";i:0;s:10:\"created_at\";N;s:10:\"updated_at\";s:19:\"2021-06-24 14:29:51\";}s:10:\"\0*\0changes\";a:0:{}s:8:\"\0*\0casts\";a:0:{}s:17:\"\0*\0classCastCache\";a:0:{}s:8:\"\0*\0dates\";a:0:{}s:13:\"\0*\0dateFormat\";N;s:10:\"\0*\0appends\";a:0:{}s:19:\"\0*\0dispatchesEvents\";a:0:{}s:14:\"\0*\0observables\";a:0:{}s:12:\"\0*\0relations\";a:0:{}s:10:\"\0*\0touches\";a:0:{}s:10:\"timestamps\";b:1;s:9:\"\0*\0hidden\";a:0:{}s:10:\"\0*\0visible\";a:0:{}s:11:\"\0*\0fillable\";a:0:{}s:10:\"\0*\0guarded\";a:1:{i:0;s:1:\"*\";}}i:3;O:19:\"App\\Models\\Category\":28:{s:13:\"\0*\0connection\";s:5:\"mysql\";s:8:\"\0*\0table\";s:10:\"categories\";s:13:\"\0*\0primaryKey\";s:2:\"id\";s:10:\"\0*\0keyType\";s:3:\"int\";s:12:\"incrementing\";b:1;s:7:\"\0*\0with\";a:0:{}s:12:\"\0*\0withCount\";a:0:{}s:19:\"preventsLazyLoading\";b:0;s:10:\"\0*\0perPage\";i:15;s:6:\"exists\";b:1;s:18:\"wasRecentlyCreated\";b:0;s:13:\"\0*\0attributes\";a:8:{s:2:\"id\";i:5;s:4:\"name\";s:19:\"Quần áo trẻ em\";s:4:\"slug\";s:17:\"quan-ao-tre-em953\";s:9:\"parent_id\";i:0;s:7:\"user_id\";i:0;s:5:\"depth\";i:0;s:10:\"created_at\";s:19:\"2021-06-24 21:24:06\";s:10:\"updated_at\";s:19:\"2021-06-24 21:24:06\";}s:11:\"\0*\0original\";a:8:{s:2:\"id\";i:5;s:4:\"name\";s:19:\"Quần áo trẻ em\";s:4:\"slug\";s:17:\"quan-ao-tre-em953\";s:9:\"parent_id\";i:0;s:7:\"user_id\";i:0;s:5:\"depth\";i:0;s:10:\"created_at\";s:19:\"2021-06-24 21:24:06\";s:10:\"updated_at\";s:19:\"2021-06-24 21:24:06\";}s:10:\"\0*\0changes\";a:0:{}s:8:\"\0*\0casts\";a:0:{}s:17:\"\0*\0classCastCache\";a:0:{}s:8:\"\0*\0dates\";a:0:{}s:13:\"\0*\0dateFormat\";N;s:10:\"\0*\0appends\";a:0:{}s:19:\"\0*\0dispatchesEvents\";a:0:{}s:14:\"\0*\0observables\";a:0:{}s:12:\"\0*\0relations\";a:0:{}s:10:\"\0*\0touches\";a:0:{}s:10:\"timestamps\";b:1;s:9:\"\0*\0hidden\";a:0:{}s:10:\"\0*\0visible\";a:0:{}s:11:\"\0*\0fillable\";a:0:{}s:10:\"\0*\0guarded\";a:1:{i:0;s:1:\"*\";}}i:4;O:19:\"App\\Models\\Category\":28:{s:13:\"\0*\0connection\";s:5:\"mysql\";s:8:\"\0*\0table\";s:10:\"categories\";s:13:\"\0*\0primaryKey\";s:2:\"id\";s:10:\"\0*\0keyType\";s:3:\"int\";s:12:\"incrementing\";b:1;s:7:\"\0*\0with\";a:0:{}s:12:\"\0*\0withCount\";a:0:{}s:19:\"preventsLazyLoading\";b:0;s:10:\"\0*\0perPage\";i:15;s:6:\"exists\";b:1;s:18:\"wasRecentlyCreated\";b:0;s:13:\"\0*\0attributes\";a:8:{s:2:\"id\";i:6;s:4:\"name\";s:21:\"Quần áo bơi lội\";s:4:\"slug\";s:18:\"quan-ao-boi-loi365\";s:9:\"parent_id\";i:0;s:7:\"user_id\";i:0;s:5:\"depth\";i:0;s:10:\"created_at\";s:19:\"2021-06-24 21:26:47\";s:10:\"updated_at\";s:19:\"2021-06-24 21:26:47\";}s:11:\"\0*\0original\";a:8:{s:2:\"id\";i:6;s:4:\"name\";s:21:\"<NAME>i\";s:4:\"slug\";s:18:\"quan-ao-boi-loi365\";s:9:\"parent_id\";i:0;s:7:\"user_id\";i:0;s:5:\"depth\";i:0;s:10:\"created_at\";s:19:\"2021-06-24 21:26:47\";s:10:\"updated_at\";s:19:\"2021-06-24 21:26:47\";}s:10:\"\0*\0changes\";a:0:{}s:8:\"\0*\0casts\";a:0:{}s:17:\"\0*\0classCastCache\";a:0:{}s:8:\"\0*\0dates\";a:0:{}s:13:\"\0*\0dateFormat\";N;s:10:\"\0*\0appends\";a:0:{}s:19:\"\0*\0dispatchesEvents\";a:0:{}s:14:\"\0*\0observables\";a:0:{}s:12:\"\0*\0relations\";a:0:{}s:10:\"\0*\0touches\";a:0:{}s:10:\"timestamps\";b:1;s:9:\"\0*\0hidden\";a:0:{}s:10:\"\0*\0visible\";a:0:{}s:11:\"\0*\0fillable\";a:0:{}s:10:\"\0*\0guarded\";a:1:{i:0;s:1:\"*\";}}i:5;O:19:\"App\\Models\\Category\":28:{s:13:\"\0*\0connection\";s:5:\"mysql\";s:8:\"\0*\0table\";s:10:\"categories\";s:13:\"\0*\0primaryKey\";s:2:\"id\";s:10:\"\0*\0keyType\";s:3:\"int\";s:12:\"incrementing\";b:1;s:7:\"\0*\0with\";a:0:{}s:12:\"\0*\0withCount\";a:0:{}s:19:\"preventsLazyLoading\";b:0;s:10:\"\0*\0perPage\";i:15;s:6:\"exists\";b:1;s:18:\"wasRecentlyCreated\";b:0;s:13:\"\0*\0attributes\";a:8:{s:2:\"id\";i:11;s:4:\"name\";s:22:\"<NAME>\";s:4:\"slug\";s:19:\"quan-ao-mua-dong467\";s:9:\"parent_id\";i:0;s:7:\"user_id\";i:23;s:5:\"depth\";i:0;s:10:\"created_at\";s:19:\"2021-07-10 14:08:52\";s:10:\"updated_at\";s:19:\"2021-07-10 14:08:52\";}s:11:\"\0*\0original\";a:8:{s:2:\"id\";i:11;s:4:\"name\";s:22:\"<NAME>\";s:4:\"slug\";s:19:\"quan-ao-mua-dong467\";s:9:\"parent_id\";i:0;s:7:\"user_id\";i:23;s:5:\"depth\";i:0;s:10:\"created_at\";s:19:\"2021-07-10 14:08:52\";s:10:\"updated_at\";s:19:\"2021-07-10 14:08:52\";}s:10:\"\0*\0changes\";a:0:{}s:8:\"\0*\0casts\";a:0:{}s:17:\"\0*\0classCastCache\";a:0:{}s:8:\"\0*\0dates\";a:0:{}s:13:\"\0*\0dateFormat\";N;s:10:\"\0*\0appends\";a:0:{}s:19:\"\0*\0dispatchesEvents\";a:0:{}s:14:\"\0*\0observables\";a:0:{}s:12:\"\0*\0relations\";a:0:{}s:10:\"\0*\0touches\";a:0:{}s:10:\"timestamps\";b:1;s:9:\"\0*\0hidden\";a:0:{}s:10:\"\0*\0visible\";a:0:{}s:11:\"\0*\0fillable\";a:0:{}s:10:\"\0*\0guarded\";a:1:{i:0;s:1:\"*\";}}}}', 1627881708);
-- ----------------------------
-- Table structure for categories
-- ----------------------------
DROP TABLE IF EXISTS `categories`;
CREATE TABLE `categories` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`parent_id` int NOT NULL DEFAULT 0,
`user_id` int NULL DEFAULT 0,
`depth` int NOT NULL DEFAULT 0,
`created_at` timestamp(0) NULL DEFAULT NULL,
`updated_at` timestamp(0) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of categories
-- ----------------------------
INSERT INTO `categories` VALUES (1, 'Quần áo nam', 'quan-ao-nam', 0, 0, 0, NULL, '2021-06-24 14:29:51');
INSERT INTO `categories` VALUES (2, 'Quần áo nữ', 'quan-ao-nu', 0, 0, 0, NULL, '2021-06-24 14:29:51');
INSERT INTO `categories` VALUES (3, 'Quần áo thể thao', 'quan-ao-the-thao', 0, 0, 0, NULL, '2021-06-24 14:29:51');
INSERT INTO `categories` VALUES (4, 'Áo sơ mi nam', 'ao-so-mi-nam952', 1, 0, 0, '2021-06-24 20:49:16', '2021-06-24 20:49:16');
INSERT INTO `categories` VALUES (5, 'Quần áo trẻ em', 'quan-ao-tre-em953', 0, 0, 0, '2021-06-24 21:24:06', '2021-06-24 21:24:06');
INSERT INTO `categories` VALUES (6, 'Quần áo bơi lội', 'quan-ao-boi-loi365', 0, 0, 0, '2021-06-24 21:26:47', '2021-06-24 21:26:47');
INSERT INTO `categories` VALUES (7, 'Quần bò nam', 'quan-bo-nam990', 1, 0, 0, '2021-06-24 21:28:03', '2021-06-24 21:28:03');
INSERT INTO `categories` VALUES (10, 'Quần áo công sở', 'quan-ao-cong-so393', 1, 23, 0, '2021-07-10 14:08:29', '2021-07-10 14:08:29');
INSERT INTO `categories` VALUES (11, 'Quần áo mùa đông', 'quan-ao-mua-dong467', 0, 23, 0, '2021-07-10 14:08:52', '2021-07-10 14:08:52');
-- ----------------------------
-- Table structure for images
-- ----------------------------
DROP TABLE IF EXISTS `images`;
CREATE TABLE `images` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`disk` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`product_id` int NOT NULL,
`created_at` timestamp(0) NULL DEFAULT NULL,
`updated_at` timestamp(0) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 65 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of images
-- ----------------------------
INSERT INTO `images` VALUES (4, 'Quần áo4', NULL, '', 4, NULL, '2021-06-24 14:29:51');
INSERT INTO `images` VALUES (8, 'Quần áo8', NULL, '', 8, NULL, '2021-06-24 14:29:51');
INSERT INTO `images` VALUES (9, 'Quần áo9', NULL, '', 9, NULL, '2021-06-24 14:29:51');
INSERT INTO `images` VALUES (31, 'aodabiker.jpg601', 'public', 'images/aodabiker.jpg601', 2, '2021-06-25 21:03:18', '2021-06-25 21:03:18');
INSERT INTO `images` VALUES (42, 'quanaonam.jpg335', 'public', 'images/quanaonam.jpg335', 25, '2021-06-26 16:24:35', '2021-06-26 16:24:35');
INSERT INTO `images` VALUES (43, 'quânonam2.jpg923', 'public', 'images/quânonam2.jpg923', 25, '2021-06-26 16:24:35', '2021-06-26 16:24:35');
INSERT INTO `images` VALUES (44, 'aodabiker.jpg861', 'public', 'images/aodabiker.jpg861', 26, '2021-06-26 16:28:05', '2021-06-26 16:28:05');
INSERT INTO `images` VALUES (45, 'vaytim.jpg844', 'public', 'images/vaytim.jpg844', 27, '2021-06-26 16:30:28', '2021-06-26 16:30:28');
INSERT INTO `images` VALUES (46, 'settreem.jpg586', 'public', 'images/settreem.jpg586', 28, '2021-06-26 17:00:57', '2021-06-26 17:00:57');
INSERT INTO `images` VALUES (47, 'leatherjacket.jpg906', 'public', 'images/leatherjacket.jpg906', 26, '2021-06-26 19:46:27', '2021-06-26 19:46:27');
INSERT INTO `images` VALUES (48, 'bo-quan-ao-the-thao-nam-sport-cao-cap.jpg817', 'public', 'images/bo-quan-ao-the-thao-nam-sport-cao-cap.jpg817', 29, '2021-06-27 09:48:51', '2021-06-27 09:48:51');
INSERT INTO `images` VALUES (49, 'quancargo.jpg799', 'public', 'images/quancargo.jpg799', 30, '2021-06-29 20:24:11', '2021-06-29 20:24:11');
INSERT INTO `images` VALUES (55, 'quan-jeans-tron-form-slimfit-qj021-mau-xanh-bien.png731', 'public', 'images/quan-jeans-tron-form-slimfit-qj021-mau-xanh-bien.png731', 38, '2021-07-08 10:03:36', '2021-07-08 10:03:36');
INSERT INTO `images` VALUES (56, 'quan-jeans-tron-form-slimfit-qj021-mau-xanh-bien1.png808', 'public', 'images/quan-jeans-tron-form-slimfit-qj021-mau-xanh-bien1.png808', 38, '2021-07-08 10:03:36', '2021-07-08 10:03:36');
INSERT INTO `images` VALUES (57, 'quan-jeans-tron-form-slimfit-qj021-mau-xanh-bien2.png679', 'public', 'images/quan-jeans-tron-form-slimfit-qj021-mau-xanh-bien2.png679', 38, '2021-07-08 10:03:36', '2021-07-08 10:03:36');
INSERT INTO `images` VALUES (58, 'aosomiden.jpg691', 'public', 'images/aosomiden.jpg691', 39, '2021-07-09 20:44:19', '2021-07-09 20:44:19');
INSERT INTO `images` VALUES (59, 'aosomiden1.jpg823', 'public', 'images/aosomiden1.jpg823', 39, '2021-07-09 20:44:19', '2021-07-09 20:44:19');
INSERT INTO `images` VALUES (60, 'aosomiden2.jpg59', 'public', 'images/aosomiden2.jpg59', 39, '2021-07-09 20:44:19', '2021-07-09 20:44:19');
INSERT INTO `images` VALUES (63, 'đồ-công-sở-1-533x800.jpg183', 'public', 'images/đồ-công-sở-1-533x800.jpg183', 41, '2021-07-18 11:11:09', '2021-07-18 11:11:09');
INSERT INTO `images` VALUES (64, 'setvay.jpg293', 'public', 'images/setvay.jpg293', 42, '2021-07-18 16:13:33', '2021-07-18 16:13:33');
-- ----------------------------
-- Table structure for migrations
-- ----------------------------
DROP TABLE IF EXISTS `migrations`;
CREATE TABLE `migrations` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
`migration` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 125 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of migrations
-- ----------------------------
INSERT INTO `migrations` VALUES (99, '2014_10_12_000000_create_users_table', 1);
INSERT INTO `migrations` VALUES (100, '2014_10_12_100000_create_password_resets_table', 1);
INSERT INTO `migrations` VALUES (101, '2014_10_12_200000_add_two_factor_columns_to_users_table', 1);
INSERT INTO `migrations` VALUES (102, '2019_12_14_000001_create_personal_access_tokens_table', 1);
INSERT INTO `migrations` VALUES (103, '2021_05_30_131620_create_products_table', 1);
INSERT INTO `migrations` VALUES (104, '2021_05_30_134653_create_images_table', 1);
INSERT INTO `migrations` VALUES (105, '2021_05_30_134703_create_categories_table', 1);
INSERT INTO `migrations` VALUES (106, '2021_06_03_131542_create_users_info_table', 1);
INSERT INTO `migrations` VALUES (108, '2021_06_03_150634_create_order_product_table', 1);
INSERT INTO `migrations` VALUES (109, '2021_06_06_131503_create_sessions_table', 1);
INSERT INTO `migrations` VALUES (110, '2021_06_12_025010_add_quantity_column_products_table', 1);
INSERT INTO `migrations` VALUES (111, '2021_06_13_213831_add_disk_column_images_table', 1);
INSERT INTO `migrations` VALUES (112, '2021_06_17_222835_add_disk_column_userinfo', 1);
INSERT INTO `migrations` VALUES (113, '2021_06_17_223014_add_path_column_userinfo', 1);
INSERT INTO `migrations` VALUES (114, '2021_06_18_154258_create_brands_table', 1);
INSERT INTO `migrations` VALUES (115, '2021_06_18_154533_add_brand_id_column_products', 1);
INSERT INTO `migrations` VALUES (116, '2021_06_19_165537_add_user_id_column_categories', 1);
INSERT INTO `migrations` VALUES (117, '2021_06_24_130053_add_user_id_column_brands', 1);
INSERT INTO `migrations` VALUES (118, '2021_06_24_213322_create_cache_table', 2);
INSERT INTO `migrations` VALUES (119, '2021_07_01_125729_create_warehouses_table', 3);
INSERT INTO `migrations` VALUES (120, '2021_07_07_182445_create_orders_table', 4);
INSERT INTO `migrations` VALUES (122, '2021_07_07_184518_create_order_product_table', 5);
INSERT INTO `migrations` VALUES (123, '2021_07_07_191717_add_column_user_id_table', 5);
INSERT INTO `migrations` VALUES (124, '2021_07_10_162942_create_statisticals_table', 6);
-- ----------------------------
-- Table structure for order_product
-- ----------------------------
DROP TABLE IF EXISTS `order_product`;
CREATE TABLE `order_product` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`order_id` int NOT NULL,
`product_id` int NOT NULL,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`price` int NOT NULL,
`quantity` int NOT NULL,
`created_at` timestamp(0) NULL DEFAULT NULL,
`updated_at` timestamp(0) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of order_product
-- ----------------------------
INSERT INTO `order_product` VALUES (2, 2, 30, 'Quần cargo', 10000000, 1, '2021-07-07 22:21:51', '2021-07-07 22:21:51');
INSERT INTO `order_product` VALUES (3, 3, 38, 'QUẦN JEANS TRƠN FORM SLIMFIT QJ021 MÀU XANH BIỂN', 500000, 2, '2021-07-08 10:13:48', '2021-07-08 10:13:48');
INSERT INTO `order_product` VALUES (4, 4, 29, 'Bộ quần áo thể thao', 200000, 1, '2021-07-08 12:28:38', '2021-07-08 12:28:38');
INSERT INTO `order_product` VALUES (5, 5, 38, 'QUẦN JEANS TRƠN', 500000, 1, '2021-07-08 14:30:56', '2021-07-08 14:30:56');
INSERT INTO `order_product` VALUES (6, 6, 30, 'Quần cargo', 10000000, 1, '2021-07-08 16:05:26', '2021-07-08 16:05:26');
INSERT INTO `order_product` VALUES (7, 6, 25, 'Bộ quần áo nam giá hạt dẻ', 3000000, 1, '2021-07-08 16:05:26', '2021-07-08 16:05:26');
INSERT INTO `order_product` VALUES (8, 7, 38, 'QUẦN JEANS TRƠN', 500000, 1, '2021-07-08 17:35:42', '2021-07-08 17:35:42');
INSERT INTO `order_product` VALUES (9, 8, 29, 'Bộ quần áo thể thao', 200000, 1, '2021-07-08 22:43:14', '2021-07-08 22:43:14');
INSERT INTO `order_product` VALUES (10, 9, 27, 'Váy tím', 1200000, 2, '2021-07-09 07:29:25', '2021-07-09 07:29:25');
INSERT INTO `order_product` VALUES (11, 10, 28, 'Bộ quần áo trẻ em', 120000, 1, '2021-07-09 07:33:45', '2021-07-09 07:33:45');
INSERT INTO `order_product` VALUES (12, 11, 39, 'áo mơ mi đen', 1500000, 1, '2021-07-09 21:16:13', '2021-07-09 21:16:13');
INSERT INTO `order_product` VALUES (13, 12, 27, 'Váy tím', 1200000, 1, '2021-07-10 19:26:25', '2021-07-10 19:26:25');
INSERT INTO `order_product` VALUES (14, 13, 26, 'Áo da biker', 1500000, 1, '2021-07-10 19:54:14', '2021-07-10 19:54:14');
INSERT INTO `order_product` VALUES (15, 14, 28, 'Bộ quần áo trẻ em', 120000, 1, '2021-07-10 20:52:31', '2021-07-10 20:52:31');
INSERT INTO `order_product` VALUES (16, 15, 39, 'áo mơ mi đen', 1500000, 2, '2021-07-10 22:21:33', '2021-07-10 22:21:33');
INSERT INTO `order_product` VALUES (17, 15, 28, 'Bộ quần áo trẻ em', 120000, 1, '2021-07-10 22:21:33', '2021-07-10 22:21:33');
INSERT INTO `order_product` VALUES (18, 16, 39, 'áo mơ mi đen', 1500000, 1, '2021-07-14 21:25:28', '2021-07-14 21:25:28');
INSERT INTO `order_product` VALUES (19, 17, 28, 'Bộ quần áo trẻ em', 120000, 1, '2021-07-16 09:03:03', '2021-07-16 09:03:03');
INSERT INTO `order_product` VALUES (20, 18, 29, 'Bộ quần áo thể thao', 200000, 1, '2021-07-18 16:07:40', '2021-07-18 16:07:40');
INSERT INTO `order_product` VALUES (21, 18, 41, 'Set quần áo công sở nữ', 10000000, 2, '2021-07-18 16:07:40', '2021-07-18 16:07:40');
INSERT INTO `order_product` VALUES (23, 20, 39, 'áo mơ mi đen', 1500000, 2, '2021-08-01 20:18:41', '2021-08-01 20:18:41');
-- ----------------------------
-- Table structure for orders
-- ----------------------------
DROP TABLE IF EXISTS `orders`;
CREATE TABLE `orders` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`user_id` int NOT NULL,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`note` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`total` int NOT NULL,
`status` int NOT NULL,
`created_at` timestamp(0) NULL DEFAULT NULL,
`updated_at` timestamp(0) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 21 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of orders
-- ----------------------------
INSERT INTO `orders` VALUES (2, 2, 'Admin 2', '0829834234', 'Ha noi', 'abc', 11000000, 0, '2021-07-07 22:21:51', '2021-07-07 22:21:51');
INSERT INTO `orders` VALUES (3, 22, 'Bui Xuan Xep', '0886832574', 'Hà Nội', 'ship nhanh nhé', 1100000, 3, '2021-07-08 00:00:00', '2021-07-08 00:00:00');
INSERT INTO `orders` VALUES (4, 22, 'Bui Xuan Xep', '0886832574', 'Hà Nội', NULL, 220000, 2, '2021-07-08 00:00:00', '2021-07-17 20:51:03');
INSERT INTO `orders` VALUES (5, 2, 'Admin 2', '0829834234', 'Ha noi', 'abc', 550000, 2, '2021-07-08 00:00:00', '2021-07-09 23:10:15');
INSERT INTO `orders` VALUES (6, 2, 'Admin 2', '0829834234', 'Ha noi', 'hello', 14300000, 2, '2021-07-08 00:00:00', '2021-07-18 11:08:24');
INSERT INTO `orders` VALUES (7, 2, 'Admin 2', '0829834234', 'Ha noi', 'abc', 550000, 3, '2021-07-08 00:00:00', '2021-07-08 18:59:35');
INSERT INTO `orders` VALUES (8, 22, 'Bui Xuan Xep', '0886832574', 'Hà Nội', 'xin chao', 220000, 3, '2021-07-08 00:00:00', '2021-07-08 22:55:42');
INSERT INTO `orders` VALUES (9, 22, 'Bui Xuan Xep', '0886832574', 'Hà Nội', 'vay dep', 2640000, 3, '2021-07-09 00:00:00', '2021-07-09 07:30:23');
INSERT INTO `orders` VALUES (10, 22, 'Bui Xuan Xep', '0886832574', 'Hà Nội', 'ship nhanh nhe', 132000, 3, '2021-07-09 00:00:00', '2021-07-09 07:35:01');
INSERT INTO `orders` VALUES (11, 22, 'Bui Xuan Xep', '0886832574', 'Hà Nội', 'absbdksahdkba', 1650000, 2, '2021-07-09 21:16:13', '2021-07-17 20:41:13');
INSERT INTO `orders` VALUES (12, 22, 'Bui Xuan Xep', '0886832574', 'Hà Nội', 'ship nhanh cai nha', 1320000, 3, '2021-07-10 19:26:25', '2021-07-10 19:28:13');
INSERT INTO `orders` VALUES (13, 22, 'Bui Xuan Xep', '0886832574', 'Hà Nội', 'áo da xịn', 1650000, 3, '2021-07-10 19:54:14', '2021-07-10 19:54:33');
INSERT INTO `orders` VALUES (14, 2, 'Admin 2', '0829834234', 'Ha noi Viet Nam', 'fdfgdfg', 132000, 3, '2021-07-10 20:52:31', '2021-07-10 20:52:55');
INSERT INTO `orders` VALUES (15, 2, 'Admin 2', '0829834234', 'Ha noi', 'nghia sndlandlsjkad', 3432000, 3, '2021-07-10 22:21:33', '2021-07-18 09:48:55');
INSERT INTO `orders` VALUES (16, 22, 'Bui Xuan Xep', '0886832574', 'Hà Nội', 'áo xịn', 1650000, 3, '2021-07-14 21:25:28', '2021-07-14 21:25:48');
INSERT INTO `orders` VALUES (17, 2, 'Admin 2', '0829834234', 'Ha noi', 'giao nhanh nhe', 132000, 3, '2021-07-16 09:03:03', '2021-07-16 09:03:26');
INSERT INTO `orders` VALUES (18, 2, 'Admin 2', '0829834234', 'Ha noi', NULL, 22220000, 1, '2021-07-18 16:07:40', '2021-07-18 16:14:49');
INSERT INTO `orders` VALUES (20, 22, 'Bui Xuan Xep', '0886832574', '<NAME>', 'hê lô', 3300000, 2, '2021-08-01 20:18:41', '2021-08-02 11:28:43');
-- ----------------------------
-- Table structure for password_resets
-- ----------------------------
DROP TABLE IF EXISTS `password_resets`;
CREATE TABLE `password_resets` (
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp(0) NULL DEFAULT NULL,
INDEX `password_resets_email_index`(`email`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of password_resets
-- ----------------------------
-- ----------------------------
-- Table structure for personal_access_tokens
-- ----------------------------
DROP TABLE IF EXISTS `personal_access_tokens`;
CREATE TABLE `personal_access_tokens` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`tokenable_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`tokenable_id` bigint UNSIGNED NOT NULL,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`abilities` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL,
`last_used_at` timestamp(0) NULL DEFAULT NULL,
`created_at` timestamp(0) NULL DEFAULT NULL,
`updated_at` timestamp(0) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `personal_access_tokens_token_unique`(`token`) USING BTREE,
INDEX `personal_access_tokens_tokenable_type_tokenable_id_index`(`tokenable_type`, `tokenable_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of personal_access_tokens
-- ----------------------------
-- ----------------------------
-- Table structure for products
-- ----------------------------
DROP TABLE IF EXISTS `products`;
CREATE TABLE `products` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`origin_price` int NOT NULL DEFAULT 0,
`sale_price` int NOT NULL DEFAULT 0,
`discount_percent` int NOT NULL DEFAULT 0,
`size` int NOT NULL DEFAULT 0,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL,
`user_id` int NULL DEFAULT NULL,
`category_id` int NULL DEFAULT NULL,
`brand_id` int NULL DEFAULT NULL,
`status` int NOT NULL DEFAULT 0,
`created_at` timestamp(0) NULL DEFAULT NULL,
`updated_at` timestamp(0) NULL DEFAULT NULL,
`deleted_at` timestamp(0) NULL DEFAULT NULL,
`quantity` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 43 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of products
-- ----------------------------
INSERT INTO `products` VALUES (25, 'Bộ quần áo nam giá hạt dẻ', 'bo-quan-ao-nam-gia-hat-de', 200000, 3000000, 0, 0, '<p>Bọ quần áo đẹp</p>', 1, 1, NULL, 1, '2021-06-26 16:24:35', '2021-06-26 16:24:35', NULL, 123);
INSERT INTO `products` VALUES (26, 'Áo da biker', 'ao-da-biker-nam', 1200000, 1500000, 0, 0, '<p>Áo da đẹp</p>', 1, 1, 2, 1, '2021-06-26 16:28:05', '2021-07-10 19:54:33', NULL, 9999);
INSERT INTO `products` VALUES (27, 'Váy tím', 'vay-tim', 100000, 1200000, 0, 0, '<p>đẹp</p>', 1, 2, 3, 1, '2021-06-26 16:30:28', '2021-07-10 19:28:13', NULL, 119);
INSERT INTO `products` VALUES (28, 'Bộ quần áo trẻ em', 'quan-short133', 100000, 120000, 0, 0, '<p>sÁá</p>', 1, 5, 3, 1, '2021-06-26 17:00:57', '2021-07-18 09:48:55', NULL, 119);
INSERT INTO `products` VALUES (29, 'Bộ quần áo thể thao', 'bo-quan-ao-the-thao503', 100000, 200000, 0, 0, '<p>áo đẹp</p>', 1, 3, 1, 0, '2021-06-27 09:48:51', '2021-07-08 22:55:42', NULL, 122);
INSERT INTO `products` VALUES (30, 'Quần cargo', 'quan-cargo717', 100000, 10000000, 0, 0, '<p>đâsdad</p>', 1, 1, 4, 1, '2021-06-29 20:24:11', '2021-06-29 20:24:11', NULL, 1000);
INSERT INTO `products` VALUES (38, 'QUẦN JEANS TRƠN', 'quan-jeans-tron-form-slimfit-qj021-mau-xanh-bien357', 100000, 500000, 0, 0, '<p>Quần quá đẹp</p>', 1, 7, 4, 0, '2021-07-08 10:03:36', '2021-07-08 18:59:35', NULL, 979);
INSERT INTO `products` VALUES (39, 'áo mơ mi đen', 'ao-mo-mi-den553', 100000, 1500000, 0, 0, '<p>Chất liệu tốt</p>', 1, 4, NULL, 1, '2021-07-09 20:44:19', '2021-07-18 09:48:55', NULL, 997);
INSERT INTO `products` VALUES (41, 'Set quần áo công sở nữ', 'set-quan-ao-cong-so-nu385', 100000, 10000000, 0, 0, '<p>-Chất liệu : Vải co giãn</p><p>-Bảo hành; 6 tháng</p>', 1, 10, 5, 1, '2021-07-18 11:11:09', '2021-07-18 11:11:09', NULL, 1000);
INSERT INTO `products` VALUES (42, 'set váy', 'set-vay933', 100000, 1000000, 0, 0, '<p>abc</p>', 1, 2, 5, 1, '2021-07-18 16:13:33', '2021-07-18 16:13:33', NULL, 123);
-- ----------------------------
-- Table structure for sessions
-- ----------------------------
DROP TABLE IF EXISTS `sessions`;
CREATE TABLE `sessions` (
`id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint UNSIGNED NULL DEFAULT NULL,
`ip_address` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`user_agent` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL,
`payload` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`last_activity` int NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `sessions_user_id_index`(`user_id`) USING BTREE,
INDEX `sessions_last_activity_index`(`last_activity`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sessions
-- ----------------------------
-- ----------------------------
-- Table structure for statisticals
-- ----------------------------
DROP TABLE IF EXISTS `statisticals`;
CREATE TABLE `statisticals` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`order_date` date NOT NULL,
`sales` int NOT NULL,
`profit` int NOT NULL,
`quantity` int NOT NULL,
`total_order` int NOT NULL,
`created_at` timestamp(0) NULL DEFAULT NULL,
`updated_at` timestamp(0) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of statisticals
-- ----------------------------
INSERT INTO `statisticals` VALUES (1, '2021-07-10', 3102000, 1702000, 3, 3, '2021-07-10 19:28:13', '2021-07-10 20:52:55');
INSERT INTO `statisticals` VALUES (2, '2021-07-14', 1650000, 1550000, 1, 1, '2021-07-14 21:25:48', '2021-07-14 21:25:48');
INSERT INTO `statisticals` VALUES (3, '2021-07-16', 132000, 32000, 1, 1, '2021-07-16 09:03:26', '2021-07-16 09:03:26');
INSERT INTO `statisticals` VALUES (4, '2021-07-18', 3432000, 3332000, 3, 1, '2021-07-18 09:48:55', '2021-07-18 09:48:55');
-- ----------------------------
-- Table structure for tbl_statistical
-- ----------------------------
DROP TABLE IF EXISTS `tbl_statistical`;
CREATE TABLE `tbl_statistical` (
`id_statistical` int NOT NULL AUTO_INCREMENT,
`order_date` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`sales` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`profit` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`quantity` int NOT NULL,
`total_order` int NOT NULL,
PRIMARY KEY (`id_statistical`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 70 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tbl_statistical
-- ----------------------------
INSERT INTO `tbl_statistical` VALUES (1, '2021-06-08', '20000000', '7000000', 90, 10);
INSERT INTO `tbl_statistical` VALUES (2, '2021-06-07', '68000000', '9000000', 60, 8);
INSERT INTO `tbl_statistical` VALUES (3, '2021-06-06', '30000000', '3000000', 45, 7);
INSERT INTO `tbl_statistical` VALUES (4, '2020-11-05', '45000000', '3800000', 30, 9);
INSERT INTO `tbl_statistical` VALUES (5, '2020-11-04', '30000000', '1500000', 15, 12);
INSERT INTO `tbl_statistical` VALUES (6, '2020-11-03', '8000000', '700000', 65, 30);
INSERT INTO `tbl_statistical` VALUES (7, '2020-11-02', '28000000', '23000000', 32, 20);
INSERT INTO `tbl_statistical` VALUES (8, '2020-11-01', '25000000', '20000000', 7, 6);
INSERT INTO `tbl_statistical` VALUES (9, '2020-10-31', '36000000', '28000000', 40, 15);
INSERT INTO `tbl_statistical` VALUES (10, '2020-10-30', '50000000', '13000000', 89, 19);
INSERT INTO `tbl_statistical` VALUES (11, '2020-10-29', '20000000', '15000000', 63, 11);
INSERT INTO `tbl_statistical` VALUES (12, '2020-10-28', '25000000', '16000000', 94, 14);
INSERT INTO `tbl_statistical` VALUES (13, '2020-10-27', '32000000', '17000000', 16, 10);
INSERT INTO `tbl_statistical` VALUES (14, '2020-10-26', '33000000', '19000000', 14, 5);
INSERT INTO `tbl_statistical` VALUES (15, '2020-10-25', '36000000', '18000000', 22, 12);
INSERT INTO `tbl_statistical` VALUES (16, '2020-10-24', '34000000', '20000000', 33, 20);
INSERT INTO `tbl_statistical` VALUES (17, '2020-10-23', '25000000', '16000000', 94, 14);
INSERT INTO `tbl_statistical` VALUES (18, '2020-10-22', '12000000', '7000000', 16, 10);
INSERT INTO `tbl_statistical` VALUES (19, '2020-10-21', '63000000', '19000000', 14, 5);
INSERT INTO `tbl_statistical` VALUES (20, '2020-10-20', '66000000', '18000000', 22, 12);
INSERT INTO `tbl_statistical` VALUES (21, '2020-10-19', '74000000', '20000000', 33, 20);
INSERT INTO `tbl_statistical` VALUES (22, '2020-10-18', '63000000', '19000000', 14, 5);
INSERT INTO `tbl_statistical` VALUES (23, '2020-10-17', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (24, '2020-10-16', '74000000', '20000000', 32, 20);
INSERT INTO `tbl_statistical` VALUES (25, '2020-10-15', '63000000', '19000000', 14, 5);
INSERT INTO `tbl_statistical` VALUES (26, '2020-10-14', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (27, '2020-10-13', '74000000', '20000000', 33, 20);
INSERT INTO `tbl_statistical` VALUES (28, '2020-10-12', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (29, '2020-10-11', '74000000', '20000000', 10, 20);
INSERT INTO `tbl_statistical` VALUES (30, '2020-10-10', '63000000', '19000000', 14, 5);
INSERT INTO `tbl_statistical` VALUES (31, '2020-10-09', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (32, '2020-10-08', '74000000', '20000000', 15, 20);
INSERT INTO `tbl_statistical` VALUES (33, '2020-10-07', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (34, '2020-10-06', '74000000', '20000000', 30, 22);
INSERT INTO `tbl_statistical` VALUES (35, '2020-10-05', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (36, '2020-10-04', '74000000', '20000000', 32, 20);
INSERT INTO `tbl_statistical` VALUES (37, '2020-10-03', '63000000', '19000000', 14, 5);
INSERT INTO `tbl_statistical` VALUES (38, '2020-10-02', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (39, '2020-10-01', '74000000', '20000000', 32, 20);
INSERT INTO `tbl_statistical` VALUES (40, '2020-09-30', '63000000', '19000000', 14, 5);
INSERT INTO `tbl_statistical` VALUES (41, '2020-09-29', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (42, '2020-09-28', '74000000', '20000000', 15, 20);
INSERT INTO `tbl_statistical` VALUES (43, '2020-09-27', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (44, '2020-09-26', '74000000', '20000000', 30, 22);
INSERT INTO `tbl_statistical` VALUES (45, '2020-09-25', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (46, '2020-09-24', '74000000', '20000000', 32, 20);
INSERT INTO `tbl_statistical` VALUES (47, '2020-09-23', '63000000', '19000000', 14, 5);
INSERT INTO `tbl_statistical` VALUES (48, '2020-09-22', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (49, '2020-09-21', '74000000', '20000000', 32, 20);
INSERT INTO `tbl_statistical` VALUES (50, '2020-09-20', '63000000', '19000000', 14, 5);
INSERT INTO `tbl_statistical` VALUES (51, '2020-09-19', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (52, '2020-09-18', '74000000', '20000000', 15, 20);
INSERT INTO `tbl_statistical` VALUES (53, '2020-09-17', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (54, '2020-09-16', '74000000', '20000000', 30, 22);
INSERT INTO `tbl_statistical` VALUES (55, '2020-09-15', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (56, '2020-09-14', '74000000', '20000000', 32, 20);
INSERT INTO `tbl_statistical` VALUES (57, '2020-09-13', '63000000', '19000000', 14, 5);
INSERT INTO `tbl_statistical` VALUES (58, '2020-09-12', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (59, '2020-09-11', '74000000', '20000000', 32, 20);
INSERT INTO `tbl_statistical` VALUES (60, '2020-09-10', '63000000', '19000000', 14, 5);
INSERT INTO `tbl_statistical` VALUES (61, '2020-09-09', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (62, '2020-09-08', '74000000', '20000000', 15, 20);
INSERT INTO `tbl_statistical` VALUES (63, '2020-09-07', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (64, '2020-09-06', '74000000', '20000000', 30, 22);
INSERT INTO `tbl_statistical` VALUES (65, '2020-09-05', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (66, '2020-09-04', '74000000', '20000000', 32, 20);
INSERT INTO `tbl_statistical` VALUES (67, '2020-09-03', '63000000', '19000000', 14, 5);
INSERT INTO `tbl_statistical` VALUES (68, '2020-09-02', '66000000', '18000000', 23, 12);
INSERT INTO `tbl_statistical` VALUES (69, '2020-09-01', '74000000', '20000000', 32, 20);
-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp(0) NULL DEFAULT NULL,
`role` int NOT NULL DEFAULT 0,
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`two_factor_secret` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL,
`two_factor_recovery_codes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL,
`remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`current_team_id` bigint UNSIGNED NULL DEFAULT NULL,
`profile_photo_path` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`created_at` timestamp(0) NULL DEFAULT NULL,
`updated_at` timestamp(0) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `users_email_unique`(`email`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of users
-- ----------------------------
INSERT INTO `users` VALUES (1, 'Admin', '<EMAIL>', NULL, 1, '$2y$10$nsf/gf/WwpTqQQHKEoXXQeO2in3lZ91irTN2Vi4J9nyuQrbQq2LWC', NULL, NULL, NULL, NULL, NULL, NULL, '2021-06-26 08:31:53');
INSERT INTO `users` VALUES (2, '<NAME>', '<EMAIL>', NULL, 0, '$2y$10$HFurJjg195lLShNMUDVK1uMVKHfVZ.Vi/QduSra1xXFemzfI402.G', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (3, '<NAME>', '<EMAIL>', NULL, 0, '$2y$10$3tkabqlIY0.ngDT7Us7gsuNnqVE6/LoEGb4ED1njhnRxmdxq5XHNC', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (4, '<NAME>', '<EMAIL>', NULL, 0, '$2y$10$vXPNIpwtGcoyjKY6t6W0MugmwToXnzOjBuHI2l/odbCFQmkV04y12', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (5, 'Admin 5', '<EMAIL>', NULL, 0, '$2y$10$1dZJWAgLKtWu2Cqobq/Cwe/YmRZpM0t2qvau.VVrVk4URRqAlQdye', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (6, '<NAME>', '<EMAIL>', NULL, 0, '$2y$10$EpuTt3Iksray8RPUJXAJQeyLcGCJdNniKUFqi.hquGS1KVvfaXFF6', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (7, '<NAME>', '<EMAIL>', NULL, 0, '$2y$10$6AqM4f43TViHdtYfWjppZeLIgt2xBPnnRazuJAC0qfEUGzHu/ahm.', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (8, '<NAME>', '<EMAIL>', NULL, 0, '$2y$10$lOsvfDpgDAfR.0FyWJ1vweHQbU8YPOj64gWvseBvOheYqT8.HZ9hK', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (9, '<NAME>', '<EMAIL>', NULL, 0, '$2y$10$lcwGEzK0cULTXeSNrLSBOuIvqZqehM8lrnka9QHlinusAP5z5.pMi', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (10, '<NAME>', '<EMAIL>', NULL, 0, '$2y$10$KcLWHfD9rdEv8OetMKFaxuxCH4zbMpflkkhSBh6icoYIuca1VPAsu', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (11, '<NAME>', '<EMAIL>', NULL, 0, '$2y$10$1P1Rmdv7xPg7Nt74LUi4tOqrlhr911nFLV2WiBRt.y1ZbG7YiT.Gy', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (12, 'Admin 12', '<EMAIL>', NULL, 0, '$2y$10$CpXiXcEOsyzfLL0mGC/QEueqYouLGcQnb7wveJp2QiNAsNLaYdQE6', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (13, 'Admin 13', '<EMAIL>', NULL, 0, '$2y$10$ZCw4OmFJvxAiFi0dIUeR2eUU0Ym3yWoQheZIYFsdme6w3sjooxf3C', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (14, 'Admin 14', '<EMAIL>', NULL, 0, '$2y$10$KK.FPtKHTcva0gP1GpmwbOszDf177BHLuvvAXcl2nUilA.d7cIwEK', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (15, 'Admin 15', '<EMAIL>', NULL, 0, '$2y$10$sNB0/WX1AjJ3KveMhivgtO3BBzFzAHEYb7jJ1pNpha3B8wp4ecPMO', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (16, 'Admin 16', '<EMAIL>', NULL, 0, '$2y$10$QLW.w3ULoFSTD5wCt.syc.8p.v.jPkAfcKxWFy0bMMO0rGX/UJzY6', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (17, 'Admin 17', '<EMAIL>', NULL, 0, '$2y$10$yz/rxvVp4vu/tk3t65yAWeRSUj1J1jeXkQHuOxOrP17TwEtFLDlAO', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (18, 'Admin 18', '<EMAIL>', NULL, 0, '$2y$10$MptzLZPTtUj6tPnhlMCgieJJO3kRK5UpUYiXuiTjQ/isxAUHEN4zm', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (19, 'Admin 19', '<EMAIL>', NULL, 0, '$2y$10$Sm63WfgWorvmLGaDe0MB4u4CdWdtLRLFA4DXl5eTmeetqgQUHxciy', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `users` VALUES (22, '<NAME>', '<EMAIL>', NULL, 0, '$2y$10$2El1P9zXetxyJM5lv9ZKtelpzbxSiYMghzBwqaegLP2YzL6YzlOHS', NULL, NULL, NULL, NULL, NULL, '2021-07-08 10:12:52', '2021-07-08 10:12:52');
INSERT INTO `users` VALUES (23, '<NAME>', '<EMAIL>', NULL, 2, '$2y$10$fFwA2FO6h4z/tk/p5aLGIOpafYX4vQK0kjL0ET2J253EGbbSHyJY6', NULL, NULL, NULL, NULL, NULL, '2021-07-10 13:40:12', '2021-07-10 13:40:12');
-- ----------------------------
-- Table structure for users_info
-- ----------------------------
DROP TABLE IF EXISTS `users_info`;
CREATE TABLE `users_info` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`user_id` int NOT NULL,
`disk` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`created_at` timestamp(0) NULL DEFAULT NULL,
`updated_at` timestamp(0) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of users_info
-- ----------------------------
INSERT INTO `users_info` VALUES (1, '0829834234', 'Ha noi', 1, 'public', 'images/leatherjacket.jpg', NULL, '2021-07-18 16:16:33');
INSERT INTO `users_info` VALUES (2, '0829834234', 'Ha noi', 2, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (3, '0829834234', 'Ha noi', 3, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (4, '0829834234', 'Ha noi', 4, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (5, '0829834234', 'Ha noi', 5, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (6, '0829834234', 'Ha noi', 6, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (7, '0829834234', 'Ha noi', 7, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (8, '0829834234', 'Ha noi', 8, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (9, '0829834234', 'Ha noi', 9, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (10, '0829834234', 'Ha noi', 10, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (11, '0829834234', 'Ha noi', 11, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (12, '0829834234', 'Ha noi', 12, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (13, '0829834234', 'Ha noi', 13, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (14, '0829834234', 'Ha noi', 14, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (15, '0829834234', 'Ha noi', 15, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (16, '0829834234', 'Ha noi', 16, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (17, '0829834234', 'Ha noi', 17, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (18, '0829834234', 'Ha noi', 18, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (19, '0829834234', 'Ha noi', 19, NULL, NULL, NULL, NULL);
INSERT INTO `users_info` VALUES (22, '0886832574', '<NAME>', 22, NULL, NULL, '2021-07-08 10:12:52', '2021-07-08 10:12:52');
INSERT INTO `users_info` VALUES (23, '09384332423', '<NAME>', 23, 'public', 'images/ngiuthoi.jpg', '2021-07-10 13:40:12', '2021-07-10 13:40:12');
-- ----------------------------
-- Table structure for warehouses
-- ----------------------------
DROP TABLE IF EXISTS `warehouses`;
CREATE TABLE `warehouses` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`size` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`color` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`product_id` int NULL DEFAULT NULL,
`quantity` int NULL DEFAULT NULL,
`created_at` timestamp(0) NULL DEFAULT NULL,
`updated_at` timestamp(0) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of warehouses
-- ----------------------------
INSERT INTO `warehouses` VALUES (1, '0', NULL, 31, NULL, '2021-07-02 20:32:25', '2021-07-02 20:32:25');
INSERT INTO `warehouses` VALUES (2, '1', NULL, 32, NULL, '2021-07-02 20:33:50', '2021-07-02 20:33:50');
SET FOREIGN_KEY_CHECKS = 1;
|
--rejestracja uzytkownika
CREATE FUNCTION ride.waliduj_rejestracje()
RETURNS TRIGGER AS
$$
BEGIN
IF (NOT(ride.czy_uzytkownik_istnieje(NEW.adres_email::VARCHAR)) AND LENGTH(NEW.imie::VARCHAR) > 0 AND LENGTH(NEW.imie::VARCHAR) < 20
AND LENGTH(NEW.nazwisko::VARCHAR) > 0 AND LENGTH(NEW.nazwisko::VARCHAR) < 30) THEN
RETURN NEW;
END IF;
RAISE EXCEPTION 'Nieprawidlowe dane podczas rejestracji';
END
$$ LANGUAGE plpgsql;
CREATE TRIGGER waliduj_rejestracje_trigger
BEFORE INSERT ON ride.uzytkownicy
FOR EACH ROW EXECUTE PROCEDURE ride.waliduj_rejestracje();
CREATE FUNCTION ride.czy_uzytkownik_istnieje(adresEmail VARCHAR)
RETURNS BOOLEAN AS
$$
BEGIN
IF (adresEmail ~* '^[a-z0-9._%-]+@[a-z0-9.-]+\.[a-z]{2,4}$') THEN
RETURN EXISTS(SELECT * FROM ride.uzytkownicy WHERE uzytkownicy.adres_email = CAST(adresEmail AS ride.typ_adres_email));
END IF;
RAISE EXCEPTION 'Nieprawidlowy adres email';
END
$$ LANGUAGE plpgsql;
--usuwanie karty kredytowej usunietego uzytkownika
CREATE FUNCTION ride.usun_karte_kredytowa()
RETURNS TRIGGER AS
$$
BEGIN
DELETE FROM ride.karty_kredytowe
WHERE karty_kredytowe.nr_karty_kredytowej = OLD.nr_karty_kredytowej;
-- DELETE FROM ride.karty_kredytowe
-- WHERE ride.PGP_SYM_DECRYPT(karty_kredytowe.nr_karty_kredytowej, 'PROJEKT_BD') = ride.PGP_SYM_DECRYPT(OLD.nr_karty_kredytowej, 'PROJEKT_BD');
RETURN OLD;
END
$$ LANGUAGE plpgsql;
CREATE TRIGGER usun_karte_kredytowa_trigger
AFTER DELETE ON ride.portfele
FOR EACH ROW EXECUTE PROCEDURE ride.usun_karte_kredytowa();
--edycja danych uzytkownika
CREATE FUNCTION ride.waliduj_edycje_uzytkownika()
RETURNS TRIGGER AS
$$
BEGIN
IF (NEW.adres_email ~* '^[a-z0-9._%-]+@[a-z0-9.-]+\.[a-z]{2,4}$' AND LENGTH(NEW.imie) > 0 AND LENGTH(NEW.imie) < 20
AND LENGTH(NEW.nazwisko) > 0 AND LENGTH(NEW.nazwisko) < 30) THEN
RETURN NEW;
END IF;
RAISE EXCEPTION 'Nieprawidlwe dane';
END
$$ LANGUAGE plpgsql;
CREATE TRIGGER waliduj_edycje_uzytkownika_trigger
BEFORE UPDATE ON ride.uzytkownicy
FOR EACH ROW EXECUTE PROCEDURE ride.waliduj_edycje_uzytkownika();
--tworzenie portfelu uzytkownika
CREATE FUNCTION ride.utworz_portfel_uzytkownika()
RETURNS TRIGGER AS
$$
BEGIN
INSERT INTO ride.portfele(id_uzytkownika, saldo) VALUES(NEW.id_uzytkownika, 10::MONEY);
RETURN NEW;
END
$$ LANGUAGE plpgsql;
CREATE TRIGGER utworz_portfel_uzytkownika_trigger
AFTER INSERT ON ride.uzytkownicy
FOR EACH ROW EXECUTE PROCEDURE ride.utworz_portfel_uzytkownika();
--dodawanie karty kredytowej
CREATE FUNCTION ride.waliduj_nr_karty_kredytowej(nr_karty_kredytowej VARCHAR)
RETURNS BOOLEAN AS
$$
BEGIN
IF (nr_karty_kredytowej ~* '^[0-9]*$' AND LENGTH(nr_karty_kredytowej) = 16) THEN
RETURN 1;
END IF;
RAISE EXCEPTION 'Nieprawidlowy numer karty kredytowej';
RETURN false;
END
$$ LANGUAGE plpgsql;
CREATE FUNCTION ride.waliduj_dane_karty_kredytowej()
RETURNS TRIGGER AS
$$
BEGIN
IF (NEW.data_waznosci > CURRENT_DATE
AND LENGTH(NEW.nr_csc) = 3
AND ride.waliduj_nr_karty_kredytowej(NEW.nr_karty_kredytowej)) THEN
-- AND ride.waliduj_nr_karty_kredytowej(ride.PGP_SYM_DECRYPT(NEW.nr_karty_kredytowej, 'PROJEKT_BD')::VARCHAR)) THEN
RETURN NEW;
END IF;
RAISE EXCEPTION 'Nieprawidlowe dane karty kredytowej';
END
$$ LANGUAGE plpgsql;
CREATE FUNCTION ride.dodaj_karte_kredytowa(id_uzytkownika BIGINT, nr_karty_kredytowej VARCHAR, data_waznosci DATE, nr_csc VARCHAR)
RETURNS VOID AS
$$
DECLARE
-- nr_karty BYTEA;
BEGIN
-- nr_karty = ride.PGP_SYM_ENCRYPT($2, 'PROJEKT_BD');
IF NOT EXISTS (SELECT 1 FROM ride.portfele WHERE portfele.id_uzytkownika = $1 AND portfele.nr_karty_kredytowej IS NOT NULL) THEN
INSERT INTO ride.karty_kredytowe(nr_karty_kredytowej, data_waznosci, nr_csc)
VALUES($2, $3, $4);
UPDATE ride.portfele SET nr_karty_kredytowej = $2 WHERE portfele.id_uzytkownika = $1;
ELSE
RAISE EXCEPTION 'Uzytkownik posiada juz dodana karte';
END IF;
END
$$ LANGUAGE plpgsql;
CREATE TRIGGER waliduj_dane_karty_kredytowej_trigger
BEFORE INSERT ON ride.karty_kredytowe
FOR EACH ROW EXECUTE PROCEDURE ride.waliduj_dane_karty_kredytowej();
--usuwanie karty kredytowej
CREATE FUNCTION ride.usun_karte_kredytowa_uzytkownika(id_uzytkownika BIGINT)
RETURNS VOID AS
$$
DECLARE
nr_karty VARCHAR;
BEGIN
SELECT nr_karty_kredytowej INTO nr_karty FROM ride.portfele WHERE portfele.id_uzytkownika = $1;
SELECT nr_karty_kredytowej INTO nr_karty FROM ride.portfele WHERE portfele.id_uzytkownika = $1;
-- SELECT ride.PGP_SYM_DECRYPT(nr_karty_kredytowej, 'PROJEKT_BD') INTO nr_karty FROM ride.portfele WHERE portfele.id_uzytkownika = $1;
IF((nr_karty = '') IS NOT TRUE) THEN
DELETE FROM ride.karty_kredytowe WHERE nr_karty_kredytowej = nr_karty;
-- DELETE FROM ride.karty_kredytowe WHERE ride.PGP_SYM_DECRYPT(nr_karty_kredytowej, 'PROJEKT_BD') = nr_karty;
RAISE NOTICE 'Karta kredytowa zostala usunieta';
END IF;
END
$$ LANGUAGE plpgsql;
--zabezpieczenie usuwania karty
CREATE FUNCTION ride.usun_karte_kredytowa_z_portfela()
RETURNS TRIGGER AS
$$
BEGIN
UPDATE ride.portfele SET nr_karty_kredytowej = NULL
WHERE portfele.nr_karty_kredytowej = OLD.nr_karty_kredytowej;
-- WHERE ride.PGP_SYM_DECRYPT(portfele.nr_karty_kredytowej, 'PROJEKT_BD') = ride.PGP_SYM_DECRYPT(OLD.nr_karty_kredytowej, 'PROJEKT_BD');
RETURN OLD;
END
$$ LANGUAGE plpgsql;
CREATE TRIGGER usun_karte_kredytowa_z_portfela_trigger
BEFORE DELETE ON ride.karty_kredytowe
FOR EACH ROW EXECUTE PROCEDURE ride.usun_karte_kredytowa_z_portfela();
--doladowanie salda
CREATE FUNCTION ride.doladowanie_salda(id_uzytkownika BIGINT, kwota MONEY)
RETURNS VOID AS
$$
BEGIN
IF NOT(kwota > 0::MONEY) THEN
RAISE EXCEPTION 'Kwota jest ujemna';
END IF;
IF(SELECT data_waznosci > CURRENT_DATE
FROM ride.karty_kredytowe AS karty
INNER JOIN
(SELECT nr_karty_kredytowej
FROM ride.portfele
WHERE portfele.id_uzytkownika = $1) portfele
ON karty.nr_karty_kredytowej = portfele.nr_karty_kredytowej) THEN
-- ON ride.PGP_SYM_DECRYPT(karty.nr_karty_kredytowej, 'PROJEKT_BD') = ride.PGP_SYM_DECRYPT(portfele.nr_karty_kredytowej, 'PROJEKT_BD')) THEN
UPDATE ride.portfele SET saldo = saldo + kwota WHERE portfele.id_uzytkownika = $1;
ELSE
RAISE EXCEPTION 'Nie mozna doladowac salda. Karta jest niewazna';
END IF;
RAISE NOTICE 'Doladowano saldo konta';
END
$$ LANGUAGE plpgsql;
--pobranie oplaty
CREATE FUNCTION ride.pobranie_oplaty(id_uzytkownika BIGINT, kwota MONEY)
RETURNS VOID AS
$$
BEGIN
UPDATE ride.portfele SET saldo = (saldo - kwota) WHERE portfele.id_uzytkownika = $1;
RAISE NOTICE 'Pobrano oplate';
END
$$ LANGUAGE plpgsql;
--wynajem hulajnogi
CREATE FUNCTION ride.start_wynajmu_hulajnogi(id_uzytkownika BIGINT, id_hulajnogi BIGINT)
RETURNS VOID AS
$$
BEGIN
IF(SELECT status_wynajmu FROM ride.hulajnogi WHERE hulajnogi.id_hulajnogi = $2) THEN
RAISE EXCEPTION 'Nie mozna wynajac hulajnogi';
END IF;
IF NOT (select (saldo > 0::MONEY) OR (nr_karty_kredytowej IS NOT NULL)
FROM ride.portfele
WHERE portfele.id_uzytkownika = $1) THEN
RAISE EXCEPTION 'Dodaj karte kredytowa';
END IF;
UPDATE ride.hulajnogi SET status_wynajmu = TRUE WHERE hulajnogi.id_hulajnogi = $2;
INSERT INTO ride.przejazdy (id_uzytkownika, id_hulajnogi, data_poczatku_wynajmu) VALUES($1, $2, CURRENT_TIMESTAMP);
END
$$ LANGUAGE plpgsql;
CREATE FUNCTION ride.koniec_wynajmu_hulajnogi(id_uzytkownika BIGINT, id_hulajnogi BIGINT, pozycja JSON)
RETURNS VOID AS
$$
DECLARE
nr_przejazdu BIGINT;
czas_przejazdu INTERVAL;
koszt_przejazdu MONEY;
BEGIN
SELECT p.id_przejazdu INTO nr_przejazdu FROM ride.przejazdy AS p WHERE p.id_uzytkownika = $1 AND p.id_hulajnogi = $2 AND p.koszt IS NULL;
UPDATE ride.hulajnogi SET status_wynajmu = FALSE, polozenie = $3 WHERE hulajnogi.id_hulajnogi = $2;
SELECT (CURRENT_TIMESTAMP - p.data_poczatku_wynajmu) INTO czas_przejazdu FROM ride.przejazdy AS p WHERE p.id_przejazdu = nr_przejazdu;
SELECT ((EXTRACT(EPOCH FROM czas_przejazdu) / 60) * 0.4)::NUMERIC::MONEY INTO koszt_przejazdu;
koszt_przejazdu = koszt_przejazdu + 1.3::MONEY;
PERFORM ride.pobranie_oplaty($1, koszt_przejazdu);
UPDATE ride.przejazdy SET (czas_wypozyczenia, koszt) = (czas_przejazdu, koszt_przejazdu) WHERE id_przejazdu = nr_przejazdu;
END
$$ LANGUAGE plpgsql; |
<gh_stars>10-100
ALTER TABLE pins
ADD COLUMN updated_at timestamptz NOT NULL DEFAULT now();
|
CREATE TABLE [swc].[PlayerIA] (
[AiId] INT NOT NULL,
[PlayerId] INT NOT NULL,
[ActionNumber] INT NULL,
CONSTRAINT [aiId_pk] PRIMARY KEY CLUSTERED ([AiId] ASC),
FOREIGN KEY ([PlayerId]) REFERENCES [swc].[Player] ([Id])
);
|
<reponame>DFE-Digital/login.dfe.services<filename>database_scripts/002_ RPA_script_prod.sql
BEGIN TRAN RPAFORM
DECLARE @roleid uniqueidentifier;
DECLARE @policyid uniqueidentifier;
SET @roleid = newid();
INSERT INTO Role (Id, Name, ApplicationId, Status, CreatedAt, UpdatedAt, Code, NumericId, ParentId)
VALUES (@roleid, 'Risk Protection Arrangement', 'b45616a1-19a7-4a2e-966d-9e28c99bc6c6', 1, getdate(), getdate(), 'RPA_FORM_ACCESS', (SELECT MAX(NumericId) FROM Role) + 1, null);
INSERT INTO serviceParams (serviceId, paramName, paramValue)
VALUES ('b45616a1-19a7-4a2e-966d-9e28c99bc6c6', 'RPA_FORM_ACCESS', 'https://form-sso.education.gov.uk/service/rpa');
-- T Levels LA access
SET @policyid = newid();
INSERT INTO Policy (Id, Name, ApplicationId, Status, CreatedAt, UpdatedAt)
VALUES (@policyid, 'RPA - LA', 'b45616a1-19a7-4a2e-966d-9e28c99bc6c6', 1,
getdate(), getdate());
INSERT INTO PolicyRole (PolicyId, RoleId, CreatedAt, UpdatedAt)
VALUES (@policyid, @roleid, getdate(), getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.status.id', 'is', '1', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.category.id', 'is', '002', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.status.id', 'is', '4', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.status.id', 'is', '3', getdate(),
getdate());
-- T Levels estab access
SET @policyid = newid();
INSERT INTO Policy (Id, Name, ApplicationId, Status, CreatedAt, UpdatedAt)
VALUES (@policyid, 'RPA - Establishment', 'b45616a1-19a7-4a2e-966d-9e28c99bc6c6', 1, getdate(), getdate());
INSERT INTO PolicyRole (PolicyId, RoleId, CreatedAt, UpdatedAt)
VALUES (@policyid, @roleid, getdate(), getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.category.id', 'is', '001', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '01', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '02', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '03', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '05', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '06', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '07', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '12', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '14', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '15', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '28', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '33', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '34', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '35', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '36', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '38', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '39', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '40', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '41', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '42', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '43', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '44', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '45', getdate(),
getdate());
INSERT INTO PolicyCondition (Id, PolicyId, Field, Operator, Value, CreatedAt,
UpdatedAt)
VALUES (newid(), @policyid, 'organisation.type.id', 'is', '46', getdate(),
getdate());
ROLLBACK TRAN RPAFORM
|
<reponame>getwasim/egov-smartcity-suites-test<gh_stars>1-10
DROP MATERIALIZED VIEW if exists egwtr_mv_inst_dem_coll;
|
<gh_stars>1-10
INSERT INTO sys_module (id, module_code, module_name, module_desc, i18n_key, display_order, url, active, created_by, created_when, updated_by, updated_when) VALUES
(1, 'home', 'Home', 'Home', 'module.home', 1, '/dashboard', '1', 'niko', current_timestamp, NULL, current_timestamp),
(2, 'sys', 'System', 'System Management', 'module.sys', 2, '/system', '1', 'niko', current_timestamp, NULL, current_timestamp),
(3, 'cms', 'CMS', 'Content Management', 'module.cms', 3, '/cms', '1', 'niko', current_timestamp, NULL, current_timestamp);
INSERT INTO sys_menu_group (id, module_id, menu_group_name, menu_group_desc, display_order, url, i18n_key, active, created_by, created_when, updated_by, updated_when) VALUES
(1, 1, 'Main', 'Main', 1, '', '', '1', 'niko', current_timestamp, NULL, current_timestamp),
(2, 2, '组织结构管理', '组织结构管理', 1, '', '', '1', 'niko', current_timestamp, NULL, current_timestamp),
(3, 2, '资源权限管理', '资源权限管理', 2, '', '', '1', 'niko', current_timestamp, NULL, current_timestamp);
INSERT INTO sys_menu_item (id, menu_group_id, menu_item_name, display_order, menu_item_desc, url, i18n_key, active, created_by, created_when, updated_by, updated_when) VALUES
(1, 2, 'Dept Mgr', 1, 'Dept', 'system/dept', '', '1', 'niko', current_timestamp, NULL, current_timestamp),
(2, 2, 'Role Mgr', 2, 'Role', 'system/role', '', '1', 'niko', current_timestamp, NULL, current_timestamp),
(3, 2, 'User Mgr', 3, 'User', 'system/user', '', '1', 'niko', current_timestamp, NULL, current_timestamp),
(4, 3, 'Menu Mgr', 1, 'Menu Management', 'system/menu', '', '1', 'niko', current_timestamp, NULL, current_timestamp),
(5, 3, 'Acl Mgr', 2, 'Acl Management', 'system/acl', '', '1', 'niko', current_timestamp, NULL, current_timestamp),
(6, 1, 'Dashboard', 1, 'Dashboard', 'dashboard', '', '1', 'niko', current_timestamp, NULL, current_timestamp);
INSERT INTO sys_user (id, login_name, nice_name, password, email, salt, roles, register_date, status_code, act_key, act_key_gen_date, act_date, created_by, created_when, updated_by, updated_when) VALUES
(1, 'admin', 'Administrator', '<PASSWORD>', '<EMAIL>', '0dda6609345384ea', 'admin', current_timestamp, 1, '88e6fb94c83f72146b61b8aecc0b22c093a0bc3e', current_timestamp, current_timestamp, 'xmfish', current_timestamp, null, current_timestamp);
COMMIT; |
<reponame>tsarvs/DataNDragons<filename>DataNDragons/dbo/Tables/CHARACTER_SPELLBOOK.sql
CREATE TABLE [dbo].[CHARACTER_SPELLBOOK] (
[cs_cid] INT NOT NULL,
[cs_sid] INT NOT NULL,
PRIMARY KEY CLUSTERED ([cs_cid] ASC, [cs_sid] ASC),
CONSTRAINT [FK_CHARACTER_SPELLBOOK_ToCHARACER] FOREIGN KEY ([cs_cid]) REFERENCES [dbo].[CHARACTER] ([c_id]),
CONSTRAINT [FK_CHARACTER_SPELLBOOK_ToSPELLS] FOREIGN KEY ([cs_sid]) REFERENCES [dbo].[SPELLS] ([s_id])
);
|
<reponame>labordata/county-union-density
SELECT
geoid,
GEOMETRY,
COUNT(*) FILTER (WHERE EARNWT > 0.0) AS observations,
SUM(EARNWT) / 60 AS employment,
COALESCE(SUM(EARNWT / 60) FILTER (WHERE "UNION" = 2), 0) AS members,
COALESCE(SUM(EARNWT / 60) FILTER (WHERE "UNION" > 1), 0) AS covered
FROM
cps
INNER JOIN cps_geography USING (METFIPS, STATEFIP, COUNTY, INDIVIDCC)
WHERE
ELIGORG = 1
AND YEAR >= 2016
AND YEAR <= 2020
GROUP BY
METFIPS,
STATEFIP,
COUNTY,
INDIVIDCC;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.