sql
stringlengths
6
1.05M
------------------------------------------------------------------------------- -- -- PLEASE NOTE -- -- No warranty, no liability, no support. -- -- This script is 100% at your own risk to use. -- ------------------------------------------------------------------------------- set pages 999 select 'alter index '||index_owner||'.'||index_name||' rebuild partition '|| partition_name||';' from dba_ind_partitions where status = 'UNUSABLE' union all select 'alter index '||index_owner||'.'||index_name||' rebuild subpartition '|| subpartition_name||';' from dba_ind_subpartitions where status = 'UNUSABLE' union all select'alter index '||owner||'.'||index_name||' rebuild ;' from dba_indexes where status = 'UNUSABLE' order by 1 /
ALTER TABLE `country` ADD `eu` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'BE'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'BG'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'DK'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'DE'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'EE'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'FI'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'FR'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'GR'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'IE'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'IT'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'HR'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'LV'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'LT'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'LU'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'MT'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'NL'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'AT'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'PL'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'PT'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'RO'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'SE'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'SK'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'SI'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'ES'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'CZ'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'HU'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'GB'; UPDATE `country` SET `eu` = 'y' WHERE `iso` = 'CY';
<reponame>HDYA/net-quiz-sample CREATE TABLE [dbo].[Users] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY, [Username] NCHAR(10) NOT NULL, [Identifier] NVARCHAR(50) NOT NULL )
<filename>desafio5.sql SELECT * FROM northwind.products LIMIT 10 OFFSET 3;
CREATE TABLE products ( id bigserial PRIMARY KEY, brand VARCHAR(100), product_name VARCHAR(100), product_price VARCHAR(100), product_rating DECIMAL(10, 1), product_loves INTEGER, product_img VARCHAR(250) );
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Anamakine: 127.0.0.1:3306 -- Üretim Zamanı: 24 Şub 2021, 09:01:24 -- Sunucu sürümü: 5.7.24 -- PHP Sürümü: 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Veritabanı: `translation` -- -- -------------------------------------------------------- -- -- Tablo için tablo yapısı `language` -- DROP TABLE IF EXISTS `language`; CREATE TABLE IF NOT EXISTS `language` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) COLLATE utf8_turkish_ci NOT NULL, `text` text COLLATE utf8_turkish_ci NOT NULL, `file` text COLLATE utf8_turkish_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci; -- -- Tablo döküm verisi `language` -- INSERT INTO `language` (`id`, `name`, `text`, `file`) VALUES (1, 'Deneme', 'Açıklama', ''), (2, '11', 'Açıklama', ''); -- -------------------------------------------------------- -- -- Tablo için tablo yapısı `request` -- DROP TABLE IF EXISTS `request`; CREATE TABLE IF NOT EXISTS `request` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) COLLATE utf8_turkish_ci NOT NULL, `email` varchar(200) COLLATE utf8_turkish_ci NOT NULL, `annotation` text COLLATE utf8_turkish_ci NOT NULL, `file` text COLLATE utf8_turkish_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci; -- -- Tablo döküm verisi `request` -- INSERT INTO `request` (`id`, `name`, `email`, `annotation`, `file`) VALUES (1, '<NAME>', '<EMAIL>', 'deneme', 'game.html'), (2, 'Deneme', '<EMAIL>', 'dd', 'README.md'); -- -------------------------------------------------------- -- -- Tablo için tablo yapısı `user` -- DROP TABLE IF EXISTS `user`; CREATE TABLE IF NOT EXISTS `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `mail` varchar(200) COLLATE utf8_turkish_ci NOT NULL, `password` text COLLATE utf8_turkish_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci; -- -- Tablo döküm verisi `user` -- INSERT INTO `user` (`id`, `mail`, `password`) VALUES (1, '<EMAIL>', '<PASSWORD>'); 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>JcarlosJocsp/ProjetosPLSQL /*PROCEDURE DE CADASTRO DE CLIENTES*/ CREATE OR REPLACE PROCEDURE SP_CAD_CLI (P_CPF_CLI IN CAD_CLI_02.CPF_CLI %TYPE, P_NOME_CLI IN CAD_CLI_02.NOME_CLI %TYPE) IS BEGIN INSERT INTO CAD_CLI_02 VALUES (SEQ_CLI.NEXTVAL,P_CPF_CLI,INITCAP(P_NOME_CLI)); COMMIT; DBMS_OUTPUT.PUT_LINE(' CLIENTE CADASTRADO COM SUCESSO !!!'); END; BEGIN SP_CAD_CLI (P_CPF_CLI => &DIGITE_CPF_CLI, P_NOME_CLI => '&DIGITE_NOME_CLI'); END; /*PROCEDURE DE CADASTRO DE PRODUTOS*/ CREATE OR REPLACE PROCEDURE SP_COD_PRO (P_NOME_PRODUTO IN PRODUTO.NOME_PRODUTO %TYPE, P_PRECO_PRO IN PRODUTO.PRECO_PRO %TYPE) IS BEGIN INSERT INTO PRODUTO VALUES (SEQ_PRO.NEXTVAL,INITCAP(P_NOME_PRODUTO), P_PRECO_PRO); COMMIT; DBMS_OUTPUT.PUT_LINE(' PRODUTO CADASTRADO COM SUCESSO !!!'); END; BEGIN SP_COD_PRO (P_NOME_PRODUTO => '&DIGITE_NOME_PRO', P_PRECO_PRO => &DIGITE_PRECO_PRO); END; /*PROCEDURE DE CADASTRO DE LOJISTA*/ CREATE OR REPLACE PROCEDURE SP_LOJISTA (P_NOME_LOJI IN LOJISTA.NOME_LOJISTA %TYPE) IS BEGIN INSERT INTO LOJISTA VALUES (SEQ_LOJI.NEXTVAL,INITCAP(P_NOME_LOJI)); COMMIT; DBMS_OUTPUT.PUT_LINE(' LOJISTA CADASTRADO COM SUCESSO !!!'); END; BEGIN SP_LOJISTA (P_NOME_LOJI => '&DIGITE_NOME_LOJISTAO'); END;
show databases; use sqlpract; create table tree(col1 varchar(30),col2 varchar(30),col3 varchar(30),col4 varchar(30),col5 varchar(30),col6 varchar(30),col7 varchar(30)); truncate table tree; select * from tree; insert into tree values ('Bussiness Group','Information System','Info Sec Group','Authentication Group','Datacenter Group','Certificate Group','Tokens Group'); insert into tree values ('Bussiness Group','Information System','Info Sec Group','Authentication Group','DatawareHouse Group','Certificate Group','Tokens Group'); insert into tree values ('Bussiness Group','Information System','Info Sec Admin','Authentication Group','Facilities Group','Certificate Group','Tokens Group'); insert into tree values ('Wealth Management','Midsider System','Infrastructure Team','Store Team','Network Team','Finance Team','Records Team'); insert into tree values ('Wealth Management','Parallel System','SSL Support Team','Device Support','Helpdesk Team','24x7 Support Team','Routing Support'); 1025882 nanosecs
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 27, 2021 at 08:40 AM -- Server version: 10.4.19-MariaDB -- PHP Version: 8.0.7 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: `intern_test_pr` -- -- -------------------------------------------------------- -- -- 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, '2021_06_26_041710_add_username_to_users_table', 2), (5, '2021_06_26_044600_create_products_table', 3), (6, '2021_06_26_045223_create_product_categories_table', 4); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `products` -- CREATE TABLE `products` ( `id` bigint(20) UNSIGNED NOT NULL, `product` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `products` -- INSERT INTO `products` (`id`, `product`, `created_at`, `updated_at`) VALUES (27, '<NAME>', '2021-06-26 13:40:42', '2021-06-26 13:40:42'), (28, '<NAME>', '2021-06-26 13:40:55', '2021-06-26 13:40:55'), (29, '<NAME>', '2021-06-26 14:33:56', '2021-06-26 14:33:56'), (30, '<NAME>', '2021-06-26 14:35:00', '2021-06-26 14:35:00'), (31, '<NAME>', '2021-06-26 14:36:46', '2021-06-26 14:36:46'); -- -------------------------------------------------------- -- -- Table structure for table `product_categories` -- CREATE TABLE `product_categories` ( `id` bigint(20) UNSIGNED NOT NULL, `product_id` bigint(20) UNSIGNED NOT NULL, `product_code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `color` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `size` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `quantity` bigint(20) NOT NULL, `price` bigint(20) 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 `product_categories` -- INSERT INTO `product_categories` (`id`, `product_id`, `product_code`, `color`, `size`, `quantity`, `price`, `created_at`, `updated_at`) VALUES (1, 27, 'Product-00001', 'Possimus numquam el', 'Pariatur Eos et es', 65, 478, '2021-06-26 13:40:43', '2021-06-26 13:40:43'), (2, 28, 'Product-00002', 'Fuga Quo est volupt', 'Nostrum facilis dign', 873, 782, '2021-06-26 13:40:55', '2021-06-26 13:40:55'), (3, 28, 'Product-00003', 'Fuga Quo est volupt', 'Nostrum facilis dign', 873, 782, '2021-06-26 14:33:56', '2021-06-26 14:33:56'), (4, 30, 'Product-00004', 'Voluptates corrupti', 'Dicta facere distinc', 963, 258, '2021-06-26 14:35:00', '2021-06-26 14:35:00'), (5, 31, 'Product-00005', 'Lorem ad iste blandi', 'Velit distinctio Vo', 30, 529, '2021-06-26 14:36:47', '2021-06-26 14:36:47'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `username` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `username`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (2, 'Super Admin', 'superadmin', '<EMAIL>', NULL, '$2y$10$YBjARbPd.gsH3d3EymW3nOvpfw/78wHqYMUJgVDDxBzo45wLk7zWO', 'ZCGcobJByfTYbE65MZjPEsE78MPcr6plccWT7Hu4Hi4JwW2Afl42kDHrLunQ', '2021-06-25 22:27:40', '2021-06-25 22:27:40'); -- -- Indexes for dumped tables -- -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `products` -- ALTER TABLE `products` ADD PRIMARY KEY (`id`); -- -- Indexes for table `product_categories` -- ALTER TABLE `product_categories` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `product_categories_product_code_unique` (`product_code`), ADD KEY `product_categories_product_id_foreign` (`product_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`), ADD UNIQUE KEY `users_username_unique` (`username`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `products` -- ALTER TABLE `products` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32; -- -- AUTO_INCREMENT for table `product_categories` -- ALTER TABLE `product_categories` MODIFY `id` bigint(20) UNSIGNED 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=3; -- -- Constraints for dumped tables -- -- -- Constraints for table `product_categories` -- ALTER TABLE `product_categories` ADD CONSTRAINT `product_categories_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>philosophicles/CamdramDataWarehouse delimiter @ drop procedure if exists run_extract@ create procedure run_extract() begin call extract_dimensions(); call extract_facts(); end @ drop procedure if exists run_load_dims@ create procedure run_load_dims() begin call load_dim_society(); call load_dim_story(); call load_dim_venue(); end @ drop procedure if exists run_load_fcts@ create procedure run_load_fcts() begin call load_fct_performances(); end @ drop procedure if exists run_all@ create procedure run_all() begin call run_extract(); call run_load_dims(); call run_load_fcts(); end @ delimiter ;
<gh_stars>0 INSERT INTO `localidades` (`id`, `municipio_id`, `clave`, `nombre`, `mapa`, `ambito`, `latitud`, `longitud`, `lat`, `lng`, `altitud`, `carta`, `poblacion`, `masculino`, `femenino`, `viviendas`, `activo`) VALUES (139716, 665, '0001', '<NAME>', 150010001, 'U', '19°57´22.423N\"', '099°50´38.515W\"', '19.9562290', '-99.8440320', '2564', 'E14A17', 4077, 1913, 2164, 1018, 1), (139717, 665, '0002', 'Agostadero (San José Agostadero)', 150010002, 'R', '20°02´25.109N\"', '100°00´09.008W\"', '20.0403080', '-100.0025020', '2684', 'F14C86', 645, 303, 342, 205, 1), (139718, 665, '0003', '<NAME>', 150010003, 'R', '19°54´44.665N\"', '099°49´12.331W\"', '19.9124070', '-99.8200920', '2726', 'E14A17', 202, 108, 94, 43, 1), (139719, 665, '0004', '<NAME> (San Agustín)', 150010004, 'R', '19°59´17.820N\"', '099°43´43.634W\"', '19.9882830', '-99.7287870', '2629', 'E14A17', 767, 386, 381, 169, 1), (139720, 665, '0006', '<NAME>', 150010006, 'R', '19°55´37.000N\"', '099°49´02.000W\"', '19.9269440', '-99.8172220', '2644', 'E14A17', 361, 186, 175, 81, 1), (139721, 665, '0007', '<NAME>', 150010007, 'R', '19°57´16.901N\"', '099°48´42.236W\"', '19.9546950', '-99.8117320', '2690', 'E14A17', 177, 83, 94, 42, 1), (139722, 665, '0008', 'Botidi', 150010008, 'R', '19°57´59.708N\"', '099°50´31.779W\"', '19.9665860', '-99.8421610', '2681', 'E14A17', 615, 288, 327, 131, 1), (139723, 665, '0009', 'Bovini', 150010009, 'R', '20°00´16.179N\"', '099°48´35.024W\"', '20.0044940', '-99.8097290', '2721', 'F14C87', 382, 195, 187, 96, 1), (139724, 665, '0010', 'Boshindo', 150010010, 'R', '19°55´10.872N\"', '099°50´32.620W\"', '19.9196870', '-99.8423940', '2532', 'E14A17', 1153, 529, 624, 276, 1), (139725, 665, '0011', 'La Caridad', 150010011, 'R', '19°56´52.000N\"', '099°50´13.000W\"', '19.9477780', '-99.8369440', '2582', 'E14A17', 1340, 654, 686, 315, 1), (139726, 665, '0012', 'Conejeras', 150010012, 'R', '20°00´46.538N\"', '099°57´42.321W\"', '20.0129270', '-99.9617560', '2953', 'F14C87', 1028, 504, 524, 238, 1), (139727, 665, '0013', 'Chanteje', 150010013, 'R', '19°53´19.278N\"', '099°49´32.172W\"', '19.8886880', '-99.8256030', '2791', 'E14A17', 92, 42, 50, 19, 1), (139728, 665, '0014', '<NAME>', 150010014, 'R', '20°01´53.456N\"', '100°01´15.039W\"', '20.0315160', '-100.0208440', '2604', 'F14C86', 182, 81, 101, 60, 1), (139729, 665, '0015', 'Dateje', 150010015, 'R', '19°59´41.005N\"', '099°49´59.806W\"', '19.9947240', '-99.8332790', '2814', 'E14A17', 346, 181, 165, 73, 1), (139730, 665, '0016', 'Detiña (San Antonio Detiña)', 150010016, 'R', '19°58´15.251N\"', '099°53´05.920W\"', '19.9709030', '-99.8849780', '2545', 'E14A17', 2453, 1185, 1268, 505, 1), (139731, 665, '0017', 'Dongu (Dongu Centro)', 150010017, 'R', '19°58´18.098N\"', '099°52´05.477W\"', '19.9716940', '-99.8681880', '2690', 'E14A17', 588, 276, 312, 129, 1), (139732, 665, '0019', 'Endeje', 150010019, 'R', '19°57´38.710N\"', '099°50´11.131W\"', '19.9607530', '-99.8364250', '2615', 'E14A17', 984, 455, 529, 241, 1), (139733, 665, '0020', 'El Ermitaño', 150010020, 'R', '20°00´57.463N\"', '099°53´47.077W\"', '20.0159620', '-99.8964100', '2730', 'F14C87', 480, 247, 233, 97, 1), (139734, 665, '0021', 'Esdoca (Esdoca Centro)', 150010021, 'R', '19°57´47.188N\"', '099°50´56.185W\"', '19.9631080', '-99.8489400', '2585', 'E14A17', 322, 139, 183, 74, 1), (139735, 665, '0022', 'La Estancia Sector I', 150010022, 'R', '19°52´14.000N\"', '099°47´30.000W\"', '19.8705560', '-99.7916670', '2748', 'E14A17', 1075, 521, 554, 233, 1), (139736, 665, '0023', 'Gando', 150010023, 'R', '20°01´51.060N\"', '100°02´59.085W\"', '20.0308500', '-100.0497460', '2550', 'F14C86', 155, 71, 84, 44, 1), (139737, 665, '0024', 'Ganzda', 150010024, 'R', '19°59´20.806N\"', '099°50´48.934W\"', '19.9891130', '-99.8469260', '2786', 'E14A17', 2433, 1186, 1247, 479, 1), (139738, 665, '0025', '<NAME>', 150010025, 'R', '19°56´40.684N\"', '099°56´10.033W\"', '19.9446340', '-99.9361200', '2692', 'E14A17', 279, 146, 133, 61, 1), (139739, 665, '0026', 'Hondiga', 150010026, 'R', '19°53´43.543N\"', '099°51´09.425W\"', '19.8954290', '-99.8526180', '2558', 'E14A17', 305, 151, 154, 68, 1), (139740, 665, '0027', '<NAME>', 150010027, 'R', '19°59´31.851N\"', '099°47´53.882W\"', '19.9921810', '-99.7983010', '2735', 'E14A17', 430, 226, 204, 111, 1), (139741, 665, '0028', 'Juando', 150010028, 'R', '20°01´51.726N\"', '099°59´51.807W\"', '20.0310350', '-99.9977240', '2728', 'F14C87', 726, 351, 375, 183, 1), (139742, 665, '0029', 'La Laguna', 150010029, 'R', '19°54´44.557N\"', '099°53´27.350W\"', '19.9123770', '-99.8909310', '2579', 'E14A17', 170, 73, 97, 40, 1), (139743, 665, '0031', 'La Loma (Santa María la Loma)', 150010031, 'R', '20°01´13.544N\"', '100°00´41.833W\"', '20.0204290', '-100.0116200', '2697', 'F14C86', 1274, 627, 647, 364, 1), (139744, 665, '0033', 'La Manga', 150010033, 'R', '19°57´27.216N\"', '099°46´25.299W\"', '19.9575600', '-99.7736940', '2682', 'E14A17', 244, 127, 117, 47, 1), (139745, 665, '0034', 'Muyteje', 150010034, 'R', '20°01´15.399N\"', '099°55´57.154W\"', '20.0209440', '-99.9325430', '2879', 'F14C87', 249, 129, 120, 81, 1), (139746, 665, '0035', 'Pathé', 150010035, 'R', '19°55´41.000N\"', '099°50´21.000W\"', '19.9280560', '-99.8391670', '2533', 'E14A17', 1114, 526, 588, 274, 1), (139747, 665, '0036', 'Los Pilares', 150010036, 'R', '20°00´19.842N\"', '099°43´08.798W\"', '20.0055120', '-99.7191110', '2631', 'F14C87', 965, 500, 465, 221, 1), (139748, 665, '0037', '<NAME>', 150010037, 'U', '19°56´14.107N\"', '099°54´55.216W\"', '19.9372520', '-99.9153380', '2537', 'E14A17', 4422, 2151, 2271, 967, 1), (139749, 665, '0038', 'Puentecillas', 150010038, 'R', '20°01´27.506N\"', '099°57´48.539W\"', '20.0243070', '-99.9634830', '2879', 'F14C87', 1851, 923, 928, 446, 1), (139750, 665, '0039', 'San Antonio las Palmas', 150010039, 'R', '19°58´31.325N\"', '099°47´02.766W\"', '19.9753680', '-99.7841020', '2752', 'E14A17', 91, 40, 51, 22, 1), (139751, 665, '0040', '<NAME>', 150010040, 'R', '20°03´05.771N\"', '099°59´46.214W\"', '20.0516030', '-99.9961710', '2716', 'F14C87', 2211, 1047, 1164, 481, 1), (139752, 665, '0041', 'San Ildefonso (San Ildefonso Yolotepec)', 150010041, 'R', '19°56´13.982N\"', '099°50´15.614W\"', '19.9372170', '-99.8376710', '2539', 'E14A17', 771, 364, 407, 191, 1), (139753, 665, '0042', 'San José Boctó', 150010042, 'R', '19°55´12.776N\"', '099°54´22.635W\"', '19.9202160', '-99.9062880', '2582', 'E14A17', 424, 211, 213, 110, 1), (139754, 665, '0043', 'San Juanico Sector Uno', 150010043, 'R', '19°56´12.808N\"', '099°46´08.249W\"', '19.9368910', '-99.7689580', '2638', 'E14A17', 1080, 518, 562, 261, 1), (139755, 665, '0044', 'San Juanico Sector Dos', 150010044, 'R', '19°56´19.598N\"', '099°47´07.448W\"', '19.9387770', '-99.7854020', '2630', 'E14A17', 542, 275, 267, 127, 1), (139756, 665, '0045', 'San Nicolás Acambay', 150010045, 'R', '19°54´48.138N\"', '099°47´03.726W\"', '19.9133720', '-99.7843680', '2636', 'E14A17', 359, 160, 199, 81, 1), (139757, 665, '0046', '<NAME>', 150010046, 'R', '19°53´49.878N\"', '099°51´32.008W\"', '19.8971880', '-99.8588910', '2560', 'E14A17', 2048, 975, 1073, 501, 1), (139758, 665, '0047', 'La Soledad', 150010047, 'R', '19°55´21.603N\"', '099°54´20.850W\"', '19.9226680', '-99.9057920', '2581', 'E14A17', 569, 259, 310, 150, 1), (139759, 665, '0048', '<NAME> (Tixmadejé Grande)', 150010048, 'R', '19°58´00.115N\"', '099°56´19.786W\"', '19.9666990', '-99.9388290', '2578', 'E14A17', 1152, 544, 608, 299, 1), (139760, 665, '0049', '<NAME>', 150010049, 'R', '19°57´59.630N\"', '099°54´58.894W\"', '19.9665640', '-99.9163590', '2606', 'E14A17', 1377, 686, 691, 293, 1), (139761, 665, '0052', 'La Teresa (Santa Teresa)', 150010052, 'R', '19°59´22.082N\"', '099°58´23.792W\"', '19.9894670', '-99.9732760', '3001', 'E14A17', 267, 124, 143, 61, 1), (139762, 665, '0053', 'Los Sauces', 150010053, 'R', '19°59´29.000N\"', '100°00´33.000W\"', '19.9913890', '-100.0091670', '2536', 'E14A16', 143, 69, 74, 33, 1), (139763, 665, '0054', '<NAME>', 150010054, 'R', '19°58´55.552N\"', '099°52´21.778W\"', '19.9820980', '-99.8727160', '2752', 'E14A17', 754, 379, 375, 158, 1), (139764, 665, '0057', 'Loma de San Ángel', 150010057, 'R', '19°54´58.573N\"', '099°53´56.263W\"', '19.9162700', '-99.8989620', '2570', 'E14A17', 410, 195, 215, 98, 1), (139765, 665, '0058', 'Loma Linda', 150010058, 'R', '20°00´42.846N\"', '099°49´19.149W\"', '20.0119020', '-99.8219860', '2722', 'F14C87', 518, 243, 275, 119, 1), (139766, 665, '0059', '<NAME>', 150010059, 'R', '20°00´00.668N\"', '099°54´10.431W\"', '20.0001860', '-99.9028980', '2746', 'F14C87', 217, 91, 126, 52, 1), (139767, 665, '0060', 'La Florida', 150010060, 'R', '20°00´13.845N\"', '099°52´57.071W\"', '20.0038460', '-99.8825200', '2671', 'F14C87', 265, 132, 133, 54, 1), (139768, 665, '0062', 'La Palma', 150010062, 'R', '20°00´41.000N\"', '099°54´38.000W\"', '20.0113890', '-99.9105560', '2790', 'F14C87', 730, 355, 375, 180, 1), (139769, 665, '0063', '<NAME>', 150010063, 'R', '20°01´43.363N\"', '099°57´16.560W\"', '20.0287120', '-99.9546000', '2899', 'F14C87', 325, 170, 155, 79, 1), (139770, 665, '0064', '<NAME>', 150010064, 'R', '19°58´20.727N\"', '099°57´06.547W\"', '19.9724240', '-99.9518190', '2611', 'E14A17', 1121, 571, 550, 263, 1), (139771, 665, '0065', '<NAME>', 150010065, 'R', '20°04´17.114N\"', '099°59´43.687W\"', '20.0714210', '-99.9954690', '2605', 'F14C87', 799, 370, 429, 176, 1), (139772, 665, '0066', 'Loma de Enmedio', 150010066, 'R', '20°02´00.163N\"', '099°58´48.952W\"', '20.0333790', '-99.9802640', '2811', 'F14C87', 399, 194, 205, 94, 1), (139773, 665, '0068', 'Los Toriles', 150010068, 'R', '20°01´09.145N\"', '100°03´45.570W\"', '20.0192070', '-100.0626580', '2481', 'F14C86', 441, 225, 216, 120, 1), (139774, 665, '0070', 'Loma del Fresno', 150010070, 'R', '20°01´39.682N\"', '100°00´22.039W\"', '20.0276890', '-100.0061220', '2667', 'F14C86', 285, 134, 151, 88, 1), (139775, 665, '0071', 'Buenavista', 150010071, 'R', '20°00´32.625N\"', '099°47´57.827W\"', '20.0090630', '-99.7993960', '2687', 'F14C87', 544, 259, 285, 108, 1), (139776, 665, '0072', 'Mado Sector Dos', 150010072, 'R', '19°57´42.955N\"', '099°44´34.720W\"', '19.9619320', '-99.7429780', '2637', 'E14A17', 339, 161, 178, 87, 1), (139777, 665, '0073', 'La Venta (Barrio la Venta)', 150010073, 'R', '19°55´32.452N\"', '099°46´34.214W\"', '19.9256810', '-99.7761710', '2654', 'E14A17', 637, 311, 326, 120, 1), (139778, 665, '0075', 'La Estancia Sector II', 150010075, 'R', '19°51´36.094N\"', '099°47´01.328W\"', '19.8600260', '-99.7837020', '2731', 'E14A17', 419, 201, 218, 108, 1), (139779, 665, '0076', 'Deshpe', 150010076, 'R', '19°54´21.371N\"', '099°50´41.305W\"', '19.9059360', '-99.8448070', '2541', 'E14A17', 121, 56, 65, 24, 1), (139780, 665, '0078', '<NAME>', 150010078, 'R', '20°01´43.902N\"', '099°59´04.186W\"', '20.0288620', '-99.9844960', '2825', 'F14C87', 271, 139, 132, 60, 1), (139781, 665, '0079', 'Barrancas', 150010079, 'R', '20°02´38.463N\"', '099°47´09.842W\"', '20.0440180', '-99.7860670', '2559', 'F14C87', 97, 55, 42, 24, 1), (139782, 665, '0080', 'Botí (Botí Agostadero)', 150010080, 'R', '19°59´11.886N\"', '099°58´58.574W\"', '19.9866350', '-99.9829370', '2772', 'E14A17', 263, 116, 147, 56, 1), (139783, 665, '0081', '<NAME>', 150010081, 'R', '19°57´09.383N\"', '099°56´07.759W\"', '19.9526060', '-99.9354890', '2589', 'E14A17', 442, 202, 240, 94, 1), (139784, 665, '0082', '<NAME>', 150010082, 'R', '19°57´34.682N\"', '099°57´31.401W\"', '19.9596340', '-99.9587230', '2592', 'E14A17', 1020, 493, 527, 214, 1), (139785, 665, '0083', 'Rancho la Esperanza', 150010083, 'R', '19°55´40.573N\"', '099°53´24.044W\"', '19.9279370', '-99.8900120', '2507', 'E14A17', 1, 0, 0, 1, 1), (139786, 665, '0084', '<NAME>', 150010084, 'R', '20°00´38.789N\"', '099°46´01.493W\"', '20.0107750', '-99.7670810', '2669', 'F14C87', 99, 48, 51, 30, 1), (139787, 665, '0086', 'Mado Sector Uno', 150010086, 'R', '19°59´32.529N\"', '099°46´02.250W\"', '19.9923690', '-99.7672920', '2645', 'E14A17', 490, 247, 243, 142, 1), (139788, 665, '0087', 'Las Mangas', 150010087, 'R', '20°00´39.742N\"', '100°02´50.416W\"', '20.0110390', '-100.0473380', '2542', 'F14C86', 447, 208, 239, 123, 1), (139789, 665, '0091', 'Santa María las Arenas', 150010091, 'R', '19°59´59.346N\"', '099°45´03.899W\"', '19.9998180', '-99.7510830', '2641', 'E14A17', 233, 116, 117, 60, 1), (139790, 665, '0092', '<NAME>', 150010092, 'R', '20°00´57.780N\"', '099°49´00.213W\"', '20.0160500', '-99.8167260', '2651', 'F14C87', 4, 0, 0, 1, 1), (139791, 665, '0093', '<NAME> (El Cerro)', 150010093, 'R', '19°50´53.610N\"', '099°47´36.642W\"', '19.8482250', '-99.7935120', '2725', 'E14A17', 59, 31, 28, 14, 1), (139792, 665, '0094', '<NAME>', 150010094, 'R', '20°01´37.272N\"', '099°47´04.421W\"', '20.0270200', '-99.7845610', '2701', 'F14C87', 180, 95, 85, 41, 1), (139793, 665, '0095', 'El Medrano', 150010095, 'R', '19°56´12.218N\"', '099°52´10.188W\"', '19.9367270', '-99.8694970', '2508', 'E14A17', 115, 62, 53, 28, 1), (139794, 665, '0096', 'La Nopalera', 150010096, 'R', '19°58´27.301N\"', '099°58´27.874W\"', '19.9742500', '-99.9744090', '2545', 'E14A17', 130, 60, 70, 32, 1), (139795, 665, '0099', 'La Terquedad', 150010099, 'R', '20°02´21.022N\"', '099°48´56.222W\"', '20.0391730', '-99.8156170', '2657', 'F14C87', 11, 0, 0, 1, 1), (139796, 665, '0100', 'El Fresadero', 150010100, 'R', '19°51´48.592N\"', '099°49´50.140W\"', '19.8634980', '-99.8305940', '2698', 'E14A17', 9, 6, 3, 3, 1), (139797, 665, '0101', 'La Cumbre', 150010101, 'R', '19°58´22.721N\"', '099°50´41.795W\"', '19.9729780', '-99.8449430', '2899', 'E14A17', 68, 32, 36, 17, 1), (139798, 665, '0102', 'La Providencia', 150010102, 'R', '19°58´00.513N\"', '099°58´26.406W\"', '19.9668090', '-99.9740020', '2462', 'E14A17', 41, 21, 20, 11, 1), (139799, 665, '0103', 'San Agustín la Loma', 150010103, 'R', '20°00´06.513N\"', '100°00´52.657W\"', '20.0018090', '-100.0146270', '2755', 'F14C86', 100, 51, 49, 29, 1), (139800, 665, '0104', 'El Capulín (Barrio el Capulín la Loma)', 150010104, 'R', '20°00´48.900N\"', '100°01´06.483W\"', '20.0135830', '-100.0184680', '2680', 'F14C86', 483, 248, 235, 135, 1), (139801, 665, '0105', 'Ej<NAME>', 150010105, 'R', '20°00´12.557N\"', '099°55´18.980W\"', '20.0034880', '-99.9219390', '2806', 'F14C87', 120, 65, 55, 31, 1), (139802, 665, '0106', '<NAME>', 150010106, 'R', '19°57´00.047N\"', '099°56´43.995W\"', '19.9500130', '-99.9455540', '2614', 'E14A17', 245, 129, 116, 58, 1), (139803, 665, '0107', '<NAME>', 150010107, 'R', '19°58´09.817N\"', '099°43´49.234W\"', '19.9693940', '-99.7303430', '2640', 'E14A17', 290, 134, 156, 69, 1), (139804, 665, '0108', '<NAME>', 150010108, 'R', '19°58´16.634N\"', '099°52´35.775W\"', '19.9712870', '-99.8766040', '2576', 'E14A17', 650, 281, 369, 136, 1), (139805, 665, '0109', '<NAME>', 150010109, 'R', '19°57´59.036N\"', '099°51´01.528W\"', '19.9663990', '-99.8504240', '2650', 'E14A17', 406, 185, 221, 81, 1), (139806, 665, '0110', '<NAME>', 150010110, 'R', '19°58´45.446N\"', '099°57´27.396W\"', '19.9792910', '-99.9576100', '2782', 'E14A17', 502, 246, 256, 118, 1), (139807, 665, '0111', '<NAME>', 150010111, 'R', '19°58´19.000N\"', '099°44´29.000W\"', '19.9719440', '-99.7413890', '2638', 'E14A17', 122, 57, 65, 26, 1), (139808, 665, '0112', '<NAME>', 150010112, 'R', '19°58´13.735N\"', '099°55´30.415W\"', '19.9704820', '-99.9251150', '2610', 'E14A17', 830, 394, 436, 187, 1), (139809, 665, '0117', '<NAME>', 150010117, 'R', '19°57´50.373N\"', '099°55´36.805W\"', '19.9639930', '-99.9268900', '2543', 'E14A17', 303, 143, 160, 73, 1), (139810, 665, '0118', '<NAME>', 150010118, 'R', '20°02´24.073N\"', '099°57´37.333W\"', '20.0400200', '-99.9603700', '2940', 'F14C87', 130, 65, 65, 30, 1), (139811, 665, '0119', '<NAME>', 150010119, 'R', '19°57´49.431N\"', '099°54´10.089W\"', '19.9637310', '-99.9028030', '2540', 'E14A17', 0, 0, 0, 0, 1), (139812, 665, '0120', '<NAME>', 150010120, 'R', '20°01´32.574N\"', '100°00´14.473W\"', '20.0257150', '-100.0040200', '2703', 'F14C86', 101, 46, 55, 28, 1), (139813, 665, '0122', '<NAME>', 150010122, 'R', '19°57´34.950N\"', '099°51´17.140W\"', '19.9597080', '-99.8547610', '2529', 'E14A17', 200, 94, 106, 43, 1), (139814, 665, '0123', 'Huamango (La Mesa de San Miguel Huamango)', 150010123, 'R', '19°58´43.289N\"', '099°52´06.897W\"', '19.9786910', '-99.8685830', '2847', 'E14A17', 121, 56, 65, 26, 1), (139815, 665, '0124', '<NAME> (Ejido de San Mateo el Viejo)', 150010124, 'R', '19°53´49.142N\"', '099°54´39.728W\"', '19.8969840', '-99.9110360', '2587', 'E14A17', 595, 280, 315, 117, 1), (139816, 665, '0125', '<NAME>', 150010125, 'R', '19°54´34.011N\"', '099°46´39.885W\"', '19.9094480', '-99.7777460', '2630', 'E14A17', 487, 252, 235, 97, 1);
<reponame>shinyay/spring-jpa-kotlin<gh_stars>0 INSERT INTO book (name, isbn, category, price) VALUES ('Spring Tutorial', 12345, 'Technology', 1000)
<filename>database/tgmt.sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: May 15, 2019 at 02:45 AM -- Server version: 5.7.19 -- PHP Version: 5.6.31 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: `tgmt` -- -- -------------------------------------------------------- -- -- Table structure for table `pc` -- DROP TABLE IF EXISTS `pc`; CREATE TABLE IF NOT EXISTS `pc` ( `id` int(10) NOT NULL, `hangsx` varchar(10) NOT NULL, `sohieu` varchar(10) NOT NULL, `namsx` int(10) NOT NULL, `gia` int(20) NOT NULL, `mota` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Dumping data for table `pc` -- INSERT INTO `pc` (`id`, `hangsx`, `sohieu`, `namsx`, `gia`, `mota`) VALUES (11, 'Dell', 'XPS 13 753', 2018, 20000000, ''), (12, 'Dell', 'XPS 15 762', 2019, 25000000, ''), (13, 'Asus', 'ROF 564', 2018, 30000000, ''), (14, 'Asus', 'ROF 981', 2017, 35000000, ''); -- -------------------------------------------------------- -- -- Table structure for table `phukien` -- DROP TABLE IF EXISTS `phukien`; CREATE TABLE IF NOT EXISTS `phukien` ( `idPK` int(10) NOT NULL, `tenPK` varchar(20) NOT NULL, `hangPK` varchar(30) NOT NULL, `sohieu` varchar(20) NOT NULL, `giaPK` int(20) NOT NULL, `mota` varchar(100) NOT NULL, PRIMARY KEY (`idPK`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Dumping data for table `phukien` -- INSERT INTO `phukien` (`idPK`, `tenPK`, `hangPK`, `sohieu`, `giaPK`, `mota`) VALUES (1, 'Đế tản nhiệt laptop', 'Deepcool', 'r567', 190000, ''), (2, 'Sạc laptop', 'Acer', '19V-3.42A', 467000, ''), (14, 'Túi đựng laptop', 'Tomtoc', 'H13', 999000, ''), (15, 'Balo laptop', 'Rivacase', '7860', 2390000, ''); 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 -- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 06, 2020 at 01:28 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: `inventory_pos` -- -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE `categories` ( `id` bigint(20) UNSIGNED NOT NULL, `category_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `categories` -- INSERT INTO `categories` (`id`, `category_name`, `created_at`, `updated_at`) VALUES (2, 'Bags', '2020-08-12 12:21:34', '2020-08-12 12:21:34'), (3, 'Watch', '2020-08-16 14:24:09', '2020-08-16 14:24:09'), (4, 'T-Shirts', '2020-08-16 14:24:21', '2020-08-16 14:24:21'); -- -------------------------------------------------------- -- -- Table structure for table `customers` -- CREATE TABLE `customers` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `address` text COLLATE utf8mb4_unicode_ci NOT NULL, `image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `customers` -- INSERT INTO `customers` (`id`, `name`, `phone`, `email`, `address`, `image`, `created_at`, `updated_at`) VALUES (2, '<NAME>', '6202017915', '<EMAIL>', 'N/1 Sah<NAME>', 'backend/customer/1597597350.jpeg', '2020-08-15 23:57:15', '2020-08-15 23:57:15'), (3, '<NAME>', '7566486828', '<EMAIL>', 'K.Bagh', 'backend/customer/1597985798.png', '2020-08-20 12:26:39', '2020-08-20 12:26:39'); -- -------------------------------------------------------- -- -- Table structure for table `employees` -- CREATE TABLE `employees` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `address` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `salary` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `photo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `nid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `joining_date` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `employees` -- INSERT INTO `employees` (`id`, `name`, `email`, `address`, `salary`, `photo`, `phone`, `nid`, `joining_date`, `created_at`, `updated_at`) VALUES (2, 'Ankit', '<EMAIL>', 'sahyogpuri', '40000', 'backend/employee/1597135197.jpeg', '6202017915', '89756', '2020-08-07', '2020-08-07 00:48:00', '2020-08-07 00:48:00'), (3, 'Raj', '<EMAIL>', 'test', '15000', 'backend/employee/1596820778.png', '78951231', '95421', '2020-08-15', '2020-08-07 00:49:38', '2020-08-07 00:49:38'), (5, 'Pratik', '<EMAIL>', 'K.Bagh', '15000', 'backend/employee/1596956831.jpeg', '7892168321', '213123', '2020-08-09', '2020-08-08 14:37:11', '2020-08-08 14:37:11'), (6, 'Anand', '<EMAIL>', 'kbagh', '15000', 'backend/employee/1596957367.png', '456231832', '213123', '2020-08-10', '2020-08-08 14:46:07', '2020-08-08 14:46:07'), (7, 'Sushant', '<EMAIL>', 'transport nagar', '15000', 'backend/employee/1596957565.png', '2313123123', '231312', '2020-08-10', '2020-08-08 14:49:25', '2020-08-08 14:49:25'), (8, 'Sumit', '<EMAIL>', 'kbagh', '15000', 'backend/employee/1596958313.jpeg', '213123123', '12312312', '2020-08-16', '2020-08-08 15:01:53', '2020-08-08 15:01:53'), (9, 'Amit', '<EMAIL>', 'bhatiyara nagar', '15000', 'backend/employee/1596958539.jpeg', '213123213', '231132', '2020-08-22', '2020-08-08 15:05:39', '2020-08-08 15:05:39'); -- -------------------------------------------------------- -- -- Table structure for table `expenses` -- CREATE TABLE `expenses` ( `id` bigint(20) UNSIGNED NOT NULL, `details` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `amount` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `expense_date` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `expenses` -- INSERT INTO `expenses` (`id`, `details`, `amount`, `expense_date`, `created_at`, `updated_at`) VALUES (2, 'Diesel', '1200', '14/08/20', '2020-08-13 23:06:58', '2020-08-13 23:06:58'); -- -------------------------------------------------------- -- -- Table structure for table `extra` -- CREATE TABLE `extra` ( `id` bigint(20) UNSIGNED NOT NULL, `vat` int(11) DEFAULT 0, `logo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `favicon` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `address` text COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `extra` -- INSERT INTO `extra` (`id`, `vat`, `logo`, `favicon`, `phone`, `email`, `address`, `created_at`, `updated_at`) VALUES (1, 5, '', NULL, '', '', '', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2020_08_07_063501_create_employee_table', 2), (5, '2020_08_11_163426_create_suppliers_table', 3), (6, '2020_08_13_040757_create_categories_table', 4), (7, '2020_08_13_052628_create_products_table', 5), (8, '2020_08_14_145535_create_expenses_table', 6), (9, '2020_08_14_162013_create_salaries_table', 7), (10, '2020_08_16_152401_create_customers_table', 8), (11, '2020_08_18_045724_create_pos_table', 9), (12, '2020_08_19_054723_create_extra_table', 10), (13, '2020_08_19_145109_create_orders_table', 11), (14, '2020_08_19_145154_create_orders_details_table', 11); -- -------------------------------------------------------- -- -- Table structure for table `orders` -- CREATE TABLE `orders` ( `id` bigint(20) UNSIGNED NOT NULL, `customer_id` int(11) NOT NULL, `qty` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `sub_total` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `vat` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `total` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `pay` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `due` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `payby` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `order_date` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `order_month` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `order_year` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `orders` -- INSERT INTO `orders` (`id`, `customer_id`, `qty`, `sub_total`, `vat`, `total`, `pay`, `due`, `payby`, `order_date`, `order_month`, `order_year`, `created_at`, `updated_at`) VALUES (1, 2, '4', '4708', '5', '4943.4', '4000', '943', 'HandCash', '20/08/2020', 'August', '2020', NULL, NULL), (2, 3, '4', '5508', '5', '5783.4', '5500', '383', 'HandCash', '21/08/2020', 'August', '2020', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `order_details` -- CREATE TABLE `order_details` ( `id` bigint(20) UNSIGNED NOT NULL, `order_id` int(11) DEFAULT NULL, `product_id` int(11) DEFAULT NULL, `pro_quantity` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `product_price` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `sub_total` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `order_details` -- INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `pro_quantity`, `product_price`, `sub_total`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2', '2055', '4110', NULL, NULL), (2, 1, 3, '2', '299', '598', NULL, NULL), (3, 2, 2, '2', '2055', '4110', NULL, NULL), (4, 2, 4, '2', '699', '1398', NULL, NULL); -- -------------------------------------------------------- -- -- 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 `pos` -- CREATE TABLE `pos` ( `id` bigint(20) UNSIGNED NOT NULL, `pro_id` int(11) NOT NULL, `pro_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `pro_quantity` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `product_price` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `sub_total` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `products` -- CREATE TABLE `products` ( `id` bigint(20) UNSIGNED NOT NULL, `category_id` int(11) NOT NULL, `product_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `product_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `root` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `buying_price` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `selling_price` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `supplier_id` int(11) DEFAULT NULL, `buying_date` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `product_quantity` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `products` -- INSERT INTO `products` (`id`, `category_id`, `product_name`, `product_code`, `root`, `buying_price`, `selling_price`, `supplier_id`, `buying_date`, `image`, `product_quantity`, `created_at`, `updated_at`) VALUES (2, 2, 'Watches', 'wqesd232', '23qwe', '1500', '2055', 2, '2020-08-13', 'backend/product/1597302281.jpeg', '4', '2020-08-12 14:26:04', '2020-08-12 14:26:04'), (3, 2, 'T-shirts', '43123asd', 'D', '199', '299', 2, '2020-08-17', 'backend/product/1597639385.jpeg', '0', '2020-08-16 12:13:06', '2020-08-16 12:13:06'), (4, 4, 'Women\'s T-Shirts', '8721qweqw', 'A', '599', '699', 2, '2020-08-17', 'backend/product/1597647364.jpeg', '11', '2020-08-16 14:26:04', '2020-08-16 14:26:04'); -- -------------------------------------------------------- -- -- Table structure for table `salaries` -- CREATE TABLE `salaries` ( `id` bigint(20) UNSIGNED NOT NULL, `employee_id` int(11) NOT NULL, `amount` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `salary_date` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `salary_month` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `salary_year` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `salaries` -- INSERT INTO `salaries` (`id`, `employee_id`, `amount`, `salary_date`, `salary_month`, `salary_year`, `created_at`, `updated_at`) VALUES (1, 2, '60000', '15/08/2020', 'January', '2020', NULL, NULL), (2, 2, '50000', '15/08/2020', 'October', '2020', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `suppliers` -- CREATE TABLE `suppliers` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `address` text COLLATE utf8mb4_unicode_ci NOT NULL, `photo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `shopname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `suppliers` -- INSERT INTO `suppliers` (`id`, `name`, `email`, `phone`, `address`, `photo`, `shopname`, `created_at`, `updated_at`) VALUES (2, '<NAME>', '<EMAIL>', '6202017915', 'k.bagh', 'backend/supplier/1597249318.jpeg', 'Sinha Pharmacy', '2020-08-11 23:29:35', '2020-08-11 23:29:35'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'admin', '<EMAIL>', NULL, '$2y$12$x/Q199M00Rvktz2fqmzXDuUu1RxmZLdwaHs9Sca2U1iP69OziVoPe', NULL, NULL, NULL), (2, 'Ankit', '<EMAIL>', NULL, '$2y$12$p4eK9eMIhGBJvM3/.QzwsuBZxXRE//R28bS90gWo8BOZK8.TezMYy', NULL, NULL, NULL), (3, 'test', '<EMAIL>', NULL, '$2y$10$yB8HudLGdN4bdy7LuFfAs.dZbAOXyNAAheuVE1SwZcvq.Gv35eU1C', NULL, NULL, NULL); -- -- Indexes for dumped tables -- -- -- Indexes for table `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`); -- -- Indexes for table `customers` -- ALTER TABLE `customers` ADD PRIMARY KEY (`id`); -- -- Indexes for table `employees` -- ALTER TABLE `employees` ADD PRIMARY KEY (`id`); -- -- Indexes for table `expenses` -- ALTER TABLE `expenses` ADD PRIMARY KEY (`id`); -- -- Indexes for table `extra` -- ALTER TABLE `extra` ADD PRIMARY KEY (`id`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `orders` -- ALTER TABLE `orders` ADD PRIMARY KEY (`id`); -- -- Indexes for table `order_details` -- ALTER TABLE `order_details` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `pos` -- ALTER TABLE `pos` ADD PRIMARY KEY (`id`); -- -- Indexes for table `products` -- ALTER TABLE `products` ADD PRIMARY KEY (`id`); -- -- Indexes for table `salaries` -- ALTER TABLE `salaries` ADD PRIMARY KEY (`id`); -- -- Indexes for table `suppliers` -- ALTER TABLE `suppliers` 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 `categories` -- ALTER TABLE `categories` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `customers` -- ALTER TABLE `customers` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `employees` -- ALTER TABLE `employees` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `expenses` -- ALTER TABLE `expenses` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `extra` -- ALTER TABLE `extra` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `orders` -- ALTER TABLE `orders` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `order_details` -- ALTER TABLE `order_details` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `pos` -- ALTER TABLE `pos` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `products` -- ALTER TABLE `products` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `salaries` -- ALTER TABLE `salaries` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `suppliers` -- ALTER TABLE `suppliers` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
DROP TABLE addresses;
-- INSERT INTO `apps` (`url`, `added`, `alias`, `name`) VALUES ('https://github.com/StalkerApps/vk.video', NOW(), 'vk.video', 'vk.video'); --//@UNDO DELETE FROM `apps` WHERE `name`='vk.video'; --
create table Artists ( ArtistID INTEGER PRIMARY KEY, ArtistName TEXT); create table CDs ( CDID INTEGER PRIMARY KEY, ArtistID INTEGER NOT NULL, Title TEXT NOT NULL, Date TEXT); insert into Artists (ArtistID,ArtistName) values (NULL,'<NAME>'); insert into Artists (ArtistID,ArtistName) values (NULL,'<NAME>'); insert into Artists (ArtistID,ArtistName) values (NULL,'<NAME>'); insert into Artists (ArtistID,ArtistName) values (NULL,'Beach Boys'); insert into CDs (CDID,ArtistID,Title,Date) values (NULL,1,'So','1984'); insert into CDs (CDID,ArtistID,Title,Date) values (NULL,1,'Us','1992'); insert into CDs (CDID,ArtistID,Title,Date) values (NULL,2,'The Way It Is','1986'); insert into CDs (CDID,ArtistID,Title,Date) values (NULL,2,'Scenes from the Southside','1990'); insert into CDs (CDID,ArtistID,Title,Date) values (NULL,1,'Security','1990'); insert into CDs (CDID,ArtistID,Title,Date) values (NULL,3,'<NAME>','1992'); insert into CDs (CDID,ArtistID,Title,Date) values (NULL,4,'Pet Sounds','1966');
-- MySQL dump 10.13 Distrib 5.7.36, for Linux (x86_64) -- -- Host: localhost Database: oms -- ------------------------------------------------------ -- Server version 5.7.36-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `Admin` -- DROP TABLE IF EXISTS `Admin`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `Admin` ( `CNIC` varchar(13) NOT NULL, `Password` varchar(30) DEFAULT NULL, `Name` varchar(150) NOT NULL, `Email` varchar(150) NOT NULL, `JoinDate` datetime NOT NULL, PRIMARY KEY (`CNIC`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Admin` -- LOCK TABLES `Admin` WRITE; /*!40000 ALTER TABLE `Admin` DISABLE KEYS */; INSERT INTO `Admin` VALUES ('1','42395619','deebee','<EMAIL>','2021-11-18 12:24:45'); /*!40000 ALTER TABLE `Admin` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `AdoptionRequest` -- DROP TABLE IF EXISTS `AdoptionRequest`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `AdoptionRequest` ( `ApplicationID` varchar(13) NOT NULL, `OrphanCNIC` varchar(13) DEFAULT NULL, `ParentCNIC` varchar(13) DEFAULT NULL, `Status` varchar(20) DEFAULT NULL, PRIMARY KEY (`ApplicationID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `AdoptionRequest` -- LOCK TABLES `AdoptionRequest` WRITE; /*!40000 ALTER TABLE `AdoptionRequest` DISABLE KEYS */; /*!40000 ALTER TABLE `AdoptionRequest` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `ApplicantParent` -- DROP TABLE IF EXISTS `ApplicantParent`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ApplicantParent` ( `CNIC` varchar(13) NOT NULL, `Name` varchar(45) NOT NULL, `DateOfBirth` datetime DEFAULT NULL, `MaritalStatus` varchar(150) NOT NULL, `Profession` varchar(150) NOT NULL, `MonthlyEarning` int(7) NOT NULL, `NoOfPreviousChildren` int(3) NOT NULL, `Address` varchar(150) NOT NULL, `Phone` int(45) DEFAULT NULL, `Email` varchar(150) NOT NULL, PRIMARY KEY (`CNIC`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `ApplicantParent` -- LOCK TABLES `ApplicantParent` WRITE; /*!40000 ALTER TABLE `ApplicantParent` DISABLE KEYS */; /*!40000 ALTER TABLE `ApplicantParent` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `Appointment` -- DROP TABLE IF EXISTS `Appointment`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `Appointment` ( `AppointmentID` varchar(10) NOT NULL, `ParentCNIC` varchar(13) NOT NULL, `AdminCNIC` varchar(13) NOT NULL, `AppointmentTime` datetime NOT NULL, PRIMARY KEY (`AppointmentID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Appointment` -- LOCK TABLES `Appointment` WRITE; /*!40000 ALTER TABLE `Appointment` DISABLE KEYS */; /*!40000 ALTER TABLE `Appointment` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `Department` -- DROP TABLE IF EXISTS `Department`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `Department` ( `DeptID` varchar(10) NOT NULL, `DeptName` varchar(45) NOT NULL, `NumberOfEmployees` int(11) DEFAULT NULL, `Budget` int(11) DEFAULT NULL, `Location` varchar(150) DEFAULT NULL, PRIMARY KEY (`DeptID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Department` -- LOCK TABLES `Department` WRITE; /*!40000 ALTER TABLE `Department` DISABLE KEYS */; /*!40000 ALTER TABLE `Department` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `Employees` -- DROP TABLE IF EXISTS `Employees`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `Employees` ( `CNIC` varchar(13) NOT NULL, `DeptID` varchar(10) NOT NULL, `Name` varchar(45) NOT NULL, `DateOfBirth` datetime DEFAULT NULL, `JoinDate` datetime NOT NULL, `ContractEndDate` datetime DEFAULT NULL, `Email` varchar(150) NOT NULL, `Phone` int(11) DEFAULT NULL, `Salary` int(7) NOT NULL, PRIMARY KEY (`CNIC`), KEY `DeptID_idx` (`DeptID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Employees` -- LOCK TABLES `Employees` WRITE; /*!40000 ALTER TABLE `Employees` DISABLE KEYS */; /*!40000 ALTER TABLE `Employees` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `Hobbies` -- DROP TABLE IF EXISTS `Hobbies`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `Hobbies` ( `CNIC` varchar(13) NOT NULL, `OrphanHobbies` varchar(250) DEFAULT NULL, KEY `fk_cnic_idx` (`CNIC`), CONSTRAINT `CNIC` FOREIGN KEY (`CNIC`) REFERENCES `Orphan` (`CNIC`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Hobbies` -- LOCK TABLES `Hobbies` WRITE; /*!40000 ALTER TABLE `Hobbies` DISABLE KEYS */; /*!40000 ALTER TABLE `Hobbies` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `Orphan` -- DROP TABLE IF EXISTS `Orphan`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `Orphan` ( `CNIC` varchar(13) NOT NULL, `Name` varchar(150) NOT NULL, `DateOfBirth` varchar(30) DEFAULT NULL, `Education` varchar(45) DEFAULT NULL, `Sex` varchar(1) NOT NULL, `SpecialNeeds` varchar(150) DEFAULT NULL, PRIMARY KEY (`CNIC`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Orphan` -- LOCK TABLES `Orphan` WRITE; /*!40000 ALTER TABLE `Orphan` DISABLE KEYS */; INSERT INTO `Orphan` VALUES ('12345','Long Tailed Skua','2021-08-10T01:51','Grade 7','M','We'),('1234567890123','Aliii','2020-11-12T01:51','Grade 3','M',''),('1234567890124','Bilal','2021-11-12T01:55','Grade 8','F',''),('1234567890128','Supposed Name','2021-11-04T23:12','O-Levels','M',''),('1234567890188','awdawd','2021-11-04T23:12','Grade 8','F','awdawd'),('1234567890192','Bill','2021-11-14T23:23','Grade 8','F',''),('1234567890333','NewOrph','2021-11-01T03:39','Grade 2','M',''),('2323','me','2021-11-15T16:50','Grade 6','F','many'),('8989898989','me','2021-11-12T01:56','Grade 6','X','yes'); /*!40000 ALTER TABLE `Orphan` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `Users` -- DROP TABLE IF EXISTS `Users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `Users` ( `Email` varchar(30) NOT NULL, `Password` varchar(45) NOT NULL, `Usertype` varchar(45) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Users` -- LOCK TABLES `Users` WRITE; /*!40000 ALTER TABLE `Users` DISABLE KEYS */; INSERT INTO `Users` VALUES ('admin@deebee','42395619','admin'),('<EMAIL>','63768523','parent'),('<EMAIL>','42395619','parent'),('lol@lol','76585909','parent'); /*!40000 ALTER TABLE `Users` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `Volunteers` -- DROP TABLE IF EXISTS `Volunteers`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `Volunteers` ( `CNIC` varchar(13) NOT NULL, `DeptID` varchar(10) NOT NULL, `Name` varchar(150) NOT NULL, `Age` int(5) DEFAULT NULL, `Sex` varchar(10) NOT NULL, `JoinDate` datetime NOT NULL, `ContractEndDate` datetime DEFAULT NULL, `Phone` int(11) DEFAULT NULL, `Email` varchar(150) NOT NULL, `Organization` varchar(150) DEFAULT NULL, PRIMARY KEY (`CNIC`), KEY `DeptID_idx` (`DeptID`), CONSTRAINT `DeptID` FOREIGN KEY (`DeptID`) REFERENCES `Department` (`DeptID`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Volunteers` -- LOCK TABLES `Volunteers` WRITE; /*!40000 ALTER TABLE `Volunteers` DISABLE KEYS */; /*!40000 ALTER TABLE `Volunteers` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `auth_group` -- DROP TABLE IF EXISTS `auth_group`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `auth_group` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(150) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `auth_group` -- LOCK TABLES `auth_group` WRITE; /*!40000 ALTER TABLE `auth_group` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_group` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `auth_group_permissions` -- DROP TABLE IF EXISTS `auth_group_permissions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `auth_group_permissions` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `group_id` int(11) NOT NULL, `permission_id` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`), KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`), CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`), CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `auth_group_permissions` -- LOCK TABLES `auth_group_permissions` WRITE; /*!40000 ALTER TABLE `auth_group_permissions` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `auth_permission` -- DROP TABLE IF EXISTS `auth_permission`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `auth_permission` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `content_type_id` int(11) NOT NULL, `codename` varchar(100) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`), CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `auth_permission` -- LOCK TABLES `auth_permission` WRITE; /*!40000 ALTER TABLE `auth_permission` DISABLE KEYS */; INSERT INTO `auth_permission` VALUES (1,'Can add log entry',1,'add_logentry'),(2,'Can change log entry',1,'change_logentry'),(3,'Can delete log entry',1,'delete_logentry'),(4,'Can view log entry',1,'view_logentry'),(5,'Can add permission',2,'add_permission'),(6,'Can change permission',2,'change_permission'),(7,'Can delete permission',2,'delete_permission'),(8,'Can view permission',2,'view_permission'),(9,'Can add group',3,'add_group'),(10,'Can change group',3,'change_group'),(11,'Can delete group',3,'delete_group'),(12,'Can view group',3,'view_group'),(13,'Can add user',4,'add_user'),(14,'Can change user',4,'change_user'),(15,'Can delete user',4,'delete_user'),(16,'Can view user',4,'view_user'),(17,'Can add content type',5,'add_contenttype'),(18,'Can change content type',5,'change_contenttype'),(19,'Can delete content type',5,'delete_contenttype'),(20,'Can view content type',5,'view_contenttype'),(21,'Can add session',6,'add_session'),(22,'Can change session',6,'change_session'),(23,'Can delete session',6,'delete_session'),(24,'Can view session',6,'view_session'); /*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `auth_user` -- DROP TABLE IF EXISTS `auth_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `auth_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `password` varchar(128) NOT NULL, `last_login` datetime(6) DEFAULT NULL, `is_superuser` tinyint(1) NOT NULL, `username` varchar(150) NOT NULL, `first_name` varchar(150) NOT NULL, `last_name` varchar(150) NOT NULL, `email` varchar(254) NOT NULL, `is_staff` tinyint(1) NOT NULL, `is_active` tinyint(1) NOT NULL, `date_joined` datetime(6) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `auth_user` -- LOCK TABLES `auth_user` WRITE; /*!40000 ALTER TABLE `auth_user` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_user` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `auth_user_groups` -- DROP TABLE IF EXISTS `auth_user_groups`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `auth_user_groups` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `group_id` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`), KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`), CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`), CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `auth_user_groups` -- LOCK TABLES `auth_user_groups` WRITE; /*!40000 ALTER TABLE `auth_user_groups` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `auth_user_user_permissions` -- DROP TABLE IF EXISTS `auth_user_user_permissions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `auth_user_user_permissions` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `permission_id` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`), KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`), CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`), CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `auth_user_user_permissions` -- LOCK TABLES `auth_user_user_permissions` WRITE; /*!40000 ALTER TABLE `auth_user_user_permissions` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_user_user_permissions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `django_admin_log` -- DROP TABLE IF EXISTS `django_admin_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `django_admin_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `action_time` datetime(6) NOT NULL, `object_id` longtext, `object_repr` varchar(200) NOT NULL, `action_flag` smallint(5) unsigned NOT NULL, `change_message` longtext NOT NULL, `content_type_id` int(11) DEFAULT NULL, `user_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`), KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`), CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`), CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `django_admin_log` -- LOCK TABLES `django_admin_log` WRITE; /*!40000 ALTER TABLE `django_admin_log` DISABLE KEYS */; /*!40000 ALTER TABLE `django_admin_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `django_content_type` -- DROP TABLE IF EXISTS `django_content_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `django_content_type` ( `id` int(11) NOT NULL AUTO_INCREMENT, `app_label` varchar(100) NOT NULL, `model` varchar(100) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `django_content_type` -- LOCK TABLES `django_content_type` WRITE; /*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */; INSERT INTO `django_content_type` VALUES (1,'admin','logentry'),(3,'auth','group'),(2,'auth','permission'),(4,'auth','user'),(5,'contenttypes','contenttype'),(6,'sessions','session'); /*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `django_migrations` -- DROP TABLE IF EXISTS `django_migrations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `django_migrations` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `app` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `applied` datetime(6) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `django_migrations` -- LOCK TABLES `django_migrations` WRITE; /*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */; INSERT INTO `django_migrations` VALUES (1,'contenttypes','0001_initial','2021-11-11 08:13:19.276202'),(2,'auth','0001_initial','2021-11-11 08:13:20.794898'),(3,'admin','0001_initial','2021-11-11 08:13:21.207923'),(4,'admin','0002_logentry_remove_auto_add','2021-11-11 08:13:21.286339'),(5,'admin','0003_logentry_add_action_flag_choices','2021-11-11 08:13:21.359199'),(6,'contenttypes','0002_remove_content_type_name','2021-11-11 08:13:21.646087'),(7,'auth','0002_alter_permission_name_max_length','2021-11-11 08:13:21.749452'),(8,'auth','0003_alter_user_email_max_length','2021-11-11 08:13:21.848113'),(9,'auth','0004_alter_user_username_opts','2021-11-11 08:13:21.922383'),(10,'auth','0005_alter_user_last_login_null','2021-11-11 08:13:22.043495'),(11,'auth','0006_require_contenttypes_0002','2021-11-11 08:13:22.097647'),(12,'auth','0007_alter_validators_add_error_messages','2021-11-11 08:13:22.169559'),(13,'auth','0008_alter_user_username_max_length','2021-11-11 08:13:22.272057'),(14,'auth','0009_alter_user_last_name_max_length','2021-11-11 08:13:22.374521'),(15,'auth','0010_alter_group_name_max_length','2021-11-11 08:13:22.480785'),(16,'auth','0011_update_proxy_permissions','2021-11-11 08:13:22.618374'),(17,'auth','0012_alter_user_first_name_max_length','2021-11-11 08:13:22.718888'),(18,'sessions','0001_initial','2021-11-11 08:13:22.925420'); /*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `django_session` -- DROP TABLE IF EXISTS `django_session`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `django_session` ( `session_key` varchar(40) NOT NULL, `session_data` longtext NOT NULL, `expire_date` datetime(6) NOT NULL, PRIMARY KEY (`session_key`), KEY `django_session_expire_date_a5c62663` (`expire_date`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `django_session` -- LOCK TABLES `django_session` WRITE; /*!40000 ALTER TABLE `django_session` DISABLE KEYS */; /*!40000 ALTER TABLE `django_session` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2021-11-18 15:53:09
EXECUTE sp_rename N'[$schemaname$].ApiClaims', N'ApiResourceClaims', 'OBJECT' GO ALTER TABLE [$schemaname$].ApiResourceClaims SET (LOCK_ESCALATION = TABLE) GO EXECUTE sp_rename N'[$schemaname$].ApiProperties', N'ApiResourceProperties', 'OBJECT' GO ALTER TABLE [$schemaname$].ApiResourceProperties SET (LOCK_ESCALATION = TABLE) GO EXECUTE sp_rename N'[$schemaname$].ApiSecrets', N'ApiResourceSecrets', 'OBJECT' GO ALTER TABLE [$schemaname$].ApiResourceSecrets SET (LOCK_ESCALATION = TABLE) GO CREATE TABLE [$schemaname$].ApiResourceScopes ( Id int NOT NULL IDENTITY (1, 1), ApiResourceId int NOT NULL, Scope nvarchar(200) NOT NULL ) ON [PRIMARY] GO ALTER TABLE [$schemaname$].ApiResourceScopes ADD CONSTRAINT PK_ApiResourceScopes PRIMARY KEY CLUSTERED ( Id ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX IX_ApiResourceScopes ON [$schemaname$].ApiResourceScopes ( ApiResourceId ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO ALTER TABLE [$schemaname$].ApiResourceScopes SET (LOCK_ESCALATION = TABLE) GO insert into [$schemaname$].[ApiResourceScopes] (ApiResourceId, Scope) select [ApiResourceId], [Name] from [$schemaname$].ApiScopes ALTER TABLE [$schemaname$].ApiScopes DROP CONSTRAINT FK_ApiScopes_ApiResources_ApiResourceId GO ALTER TABLE [$schemaname$].ApiResources SET (LOCK_ESCALATION = TABLE) GO ALTER TABLE [$schemaname$].ApiScopes ADD Enabled bit NOT NULL CONSTRAINT DF_ApiScopes_Enabled DEFAULT 1 GO DROP INDEX IX_ApiScopes_ApiResourceId ON [$schemaname$].ApiScopes GO ALTER TABLE [$schemaname$].ApiScopes DROP COLUMN ApiResourceId GO ALTER TABLE [$schemaname$].ApiScopes SET (LOCK_ESCALATION = TABLE) GO CREATE TABLE [$schemaname$].ApiScopeProperties ( Id int NOT NULL IDENTITY (1, 1), [Key] nvarchar(250) NOT NULL, Value nvarchar(2000) NOT NULL, ScopeId int NOT NULL ) ON [PRIMARY] GO ALTER TABLE [$schemaname$].ApiScopeProperties ADD CONSTRAINT PK_ApiScopeProperties PRIMARY KEY CLUSTERED ( Id ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX IX_ApiScopeProperties ON [$schemaname$].ApiScopeProperties ( ScopeId ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO ALTER TABLE [$schemaname$].ApiScopeProperties SET (LOCK_ESCALATION = TABLE) GO EXECUTE sp_rename N'[$schemaname$].IdentityClaims', N'IdentityResourceClaims', 'OBJECT' GO ALTER TABLE [$schemaname$].IdentityResourceClaims SET (LOCK_ESCALATION = TABLE) GO EXECUTE sp_rename N'[$schemaname$].IdentityProperties', N'IdentityResourceProperties', 'OBJECT' GO ALTER TABLE [$schemaname$].IdentityResourceProperties SET (LOCK_ESCALATION = TABLE) GO ALTER TABLE [$schemaname$].ApiResources ADD AllowedAccessTokenSigningAlgorithms nvarchar(100) NULL, ShowInDiscoveryDocument bit NOT NULL CONSTRAINT DF_ApiResources_ShowInDiscoveryDocument DEFAULT 1 GO ALTER TABLE [$schemaname$].Clients ADD AllowedIdentityTokenSigningAlgorithms nvarchar(100) NULL, RequireRequestObject bit NOT NULL CONSTRAINT DF_Clients_RequireRequestObject DEFAULT 0 GO INSERT INTO [$schemaname$].ApiScopes (Name,DisplayName,Description,Required,Emphasize,ShowInDiscoveryDocument,Enabled) VALUES ('openid','openid',NULL,0,0,1,1) ,('profile','profile',NULL,0,0,1,1); delete from [$schemaname$].IdentityResources;
<reponame>Shuttl-Tech/antlr_psql<gh_stars>10-100 -- file:subselect.sql ln:170 expect:true SELECT * FROM foo WHERE id IN (SELECT id2 FROM (SELECT id2 FROM bar UNION SELECT id2 FROM bar) AS s)
<reponame>z3z1ma/dbt-re-data {% macro bool_to_string(column) %} ( case when {{ column }} = true then 'true' when {{ column }} = false then 'false' end ) as {{ column }} {% endmacro %}
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: ekinerja -- ------------------------------------------------------ -- Server version 5.5.5-10.1.16-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `instansi` -- DROP TABLE IF EXISTS `instansi`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `instansi` ( `id_instansi` varchar(5) CHARACTER SET utf8 NOT NULL, `nama_instansi` varchar(100) CHARACTER SET utf8 DEFAULT NULL, PRIMARY KEY (`id_instansi`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `instansi` -- LOCK TABLES `instansi` WRITE; /*!40000 ALTER TABLE `instansi` DISABLE KEYS */; INSERT INTO `instansi` VALUES ('1010','Kementerian Koordinator Bidang Politik, Hukum dan Keamanan'),('1020','Kementerian Koordinator Bidang Perekonomian'),('1030','Kementerian Koordinator Bidang Pembangunan Manusia dan Kebudayaan'),('1040','Kementerian Koordinator Bidang Kemaritiman'),('2000','Kementerian Riset, Teknologi, dan Pendidikan Tinggi'),('2010','Kementerian Koperasi dan Usaha Kecil dan Menengah'),('2020','Kementerian Lingkungan Hidup'),('2040','Kementerian Badan Usaha Milik Negara'),('2050','Kementerian Pemberdayaan Perempuan dan Perlindungan Anak'),('2060','Kementerian Pendayagunaan Aparatur Negara dan Reformasi Birokrasi'),('2100','Kementerian Pemuda dan Olahraga'),('2110','Kementerian Perumahan Rakyat'),('2120','Kementerian Desa, Pembangunan Daerah Tertinggal dan Transmigrasi'),('3001','Kementerian Dalam Negeri'),('3002','Kementerian Luar Negeri'),('3003','Kementerian Pertahanan'),('3004','Kementerian Hukum dan Hak Asasi Manusia'),('3005','Kementerian Keuangan'),('3006','Kementerian Pertanian'),('3008','Kementerian Energi dan Sumber Daya Mineral'),('3009','Kementerian Perhubungan'),('3010','Kementerian Pendidikan dan Kebudayaan'),('3011','Kementerian Kesehatan'),('3012','Kementerian Agama'),('3013','Kementerian Ketenagakerjaan'),('3014','Kementerian Sosial'),('3015','Kementerian Lingkungan Hidup dan Kehutanan'),('3016','Kementerian Kelautan dan Perikanan'),('3018','Kementerian Komunikasi dan Informatika'),('3019','Kementerian Perdagangan'),('3020','Kementerian Perindustrian'),('3021','Kementerian Pekerjaan Umum dan Perumahan Rakyat'),('3022','Kementerian Pariwisata'),('4001','Kementerian Sekretariat Negara'),('4002','Kejaksaan Agung'),('4003','Badan Intelijen Negara'),('4004','Sekretariat Jenderal MPR'),('4005','Setjen DPA'),('4006','Sekretariat Jenderal DPR RI'),('4007','Mahkamah Agung RI'),('4008','Badan Pemeriksa Keuangan '),('4009','Setjen WANTANNAS'),('4010','Lembaga Sandi Negara'),('4011','Badan Kepegawaian Negara'),('4012','Lembaga Administrasi Negara '),('4013','Lembaga Penerbangan dan Antariksa Nasional'),('4014','Lembaga Ilmu Pengetahuan Indonesia'),('4015','Badan Tenaga Nuklir Nasional '),('4016','Badan Pusat Statistik '),('4017','Kementerian Perencanaan Pembangunan Nasional/Bappenas'),('4018','Arsip Nasional Republik Indonesia '),('4019','Badan Informasi Geospasial'),('4020','Badan Kependudukan dan Keluarga Berencana Nasional'),('4021','Badan Koordinasi Penanaman Modal'),('4022','Badan Pengkajian dan Penerapan Teknologi'),('4023','Badan Pengawasan Keuangan dan Pembangunan'),('4024','Kementerian Agraria dan Tata Ruang/Badan Pertanahan Nasional'),('4025','Perpustakaan Nasional RI'),('4027','Badan Standardisasi Nasional '),('4028','Badan Pengawas Tenaga Nuklir '),('4031','Badan Pengawas Obat dan Makanan '),('4032','Lembaga Ketahanan Nasional RI'),('4033','Kepolisian Negara'),('4034','MABES TNI'),('4035','Badan Meteorologi, Klimatologi dan Geofisika'),('4036','Sekretariat Kabinet '),('4037','Sekretariat Presiden'),('4038','Sekretariat Wakil Presiden'),('4039','Sekretariat Militer'),('4040','Badan Narkotika Nasional'),('4041','Setjen Komisi Pemilihan Umum'),('4043','Badan Nasional Penanggulangan Bencana'),('4044','Setjen KOMNAS HAM'),('4045','Badan Pengusahaan Kawasan Perdagangan Bebas dan Pelabuhan Bebas Batam'),('4046','Kepaniteraan dan Sekretariat Jenderal Mahkamah Konstitusi RI'),('4047','Setjen Komisi Pemberantasan Korupsi'),('4048','Setjen KORPRI'),('4049','Sekretariat Jenderal Komisi Yudisial'),('4050','Setjen Dewan Perwakilan Daerah'),('4051','Badan Nasional Penempatan Perlindungan TKI'),('4052','Badan Keamanan Laut RI'),('4053','Badan SAR Nasional'),('4054','Lembaga Kebijakan Pengadaan Barang/Jasa Pemerintah'),('4055','Pusat Pelaporan dan Analisis Transaksi Keuangan'),('4056','Ombudsman Republik Indonesia'),('4057','TELEVISI REPUBLIK INDONESIA'),('4058','RADIO REPUBLIK INDONESIA'),('4059','Badan Nasional Pengelola Perbatasan'),('4060','Badan Nasional Penanggulangan Terorisme'),('4061','Setjen Komisi Pengawas Persaingan Usaha'),('4062','Badan Pengawas Pemilihan Umum'),('4063','Komisi Aparatur Sipil Negara'),('4064','Badan Ekonomi Kreatif'),('5100','Pemerintah Aceh'),('5101','Pemerintah Kab. Aceh Besar'),('5102','Pemerintah Kab. Pidie'),('5103','Pemerintah Kab. Aceh Utara'),('5104','Pemerintah Kab. Aceh Timur'),('5105','Pemerintah Kab. Aceh Selatan'),('5106','Pemerintah Kab. Aceh Barat'),('5107','Pemerintah Kab. Aceh Tengah'),('5108','Pemerintah Kab. Aceh Tenggara'),('5109','Pemerintah Kab. Simeulue'),('5110','Pemerintah Kab. Bireuen'),('5111','Pemerintah Kab. Aceh Singkil'),('5112','Pemerintah Kab. Aceh Barat Daya'),('5113','Pemerintah Kab. Gayo Lues'),('5114','Pemerintah Kab. Aceh Tamiang'),('5115','Pemerintah Kab. Nagan Raya'),('5116','Pemerintah Kab. Aceh Jaya'),('5117','Pemerintah Kab. <NAME>'),('5118','Pemerintah Kab. Pidie Jaya'),('5171','Pemerintah Kota Sabang'),('5172','Pemerintah Kota Banda Aceh'),('5173','Pemerintah Kota Langsa'),('5174','Pemerintah Kota Lhokseumawe'),('5175','Pemerintah Kota Subulussalam'),('5200','Pemerintah Provinsi Sumatera Utara'),('5201','Pemerintah Kab. Deli Serdang'),('5202','Pemerintah Kab. Karo'),('5203','Pemerintah Kab. Langkat'),('5204','Pemerintah Kab. Tapanuli Tengah'),('5205','Pemerintah Kab. Simalungun'),('5206','Pemerintah Kab. Labuhanbatu'),('5207','Pemerintah Kab. Dairi'),('5208','Pemerintah Kab. Tapanuli Utara'),('5209','Pemerintah Kab. Tapanuli Selatan'),('5210','Pemerintah Kab. Asahan'),('5211','Pemerintah Kab. Nias'),('5212','Pemerintah Kab. Toba Samosir'),('5213','Pemerintah Kab. Mandailing Natal'),('5214','Pemerintah Kab. Nias Selatan'),('5215','Pemerintah Kab. Humbang Hasundutan'),('5216','Pemerintah Kab. Pakpak Bharat'),('5217','Pemerintah Kab. Samosir'),('5218','Pemerintah Kab. Serdang Bedagai'),('5219','Pemerintah Kab. Padang Lawas'),('5220','Pemerintah Kab. Padang Lawas Utara'),('5221','Pemerintah Kab. Batubara'),('5222','Pemerintah Kab. Labuhanbatu Selatan'),('5223','Pemerintah Kab. Labuhanbatu Utara'),('5224','Pemerintah Kab. Nias Barat'),('5225','Pemerintah Kab. Nias Utara'),('5271','Pemerintah Kota Medan'),('5272','Pemerintah Kota Tebing Tinggi'),('5273','Pemerintah Kota Binjai'),('5274','Pemerintah Kota Pematangsiantar'),('5275','Pemerintah Kota Tanjungbalai'),('5276','Pemerintah Kota Sibolga'),('5277','Pemerintah Kota Padangsidimpuan'),('5278','Pemerintah Kota Gunung Sitoli'),('5300','Pemerintah Provinsi Riau'),('5301','Pemerintah Kab. Kampar'),('5302','Pemerintah Kab. Bengkalis'),('5304','Pemerintah Kab. Indragiri Hulu'),('5305','Pemerintah Kab. Indragiri Hilir'),('5306','Pemerintah Kab. Pelalawan'),('5307','Pemerintah Kab. Rokan Hulu'),('5308','Pemerintah Kab. Rokan Hilir'),('5309','Pemerintah Kab. Siak'),('5312','Pemerintah Kab. Kuantan Singingi'),('5313','Pemerintah Kab. Kepulauan Meranti'),('5371','Pemerintah Kota Pekanbaru'),('5373','Pemerintah Kota Dumai'),('5400','Pemerintah Provinsi Sumatera Barat'),('5401','Pemerintah Kab. Agam'),('5402','Pemerintah Kab. Pasaman'),('5403','Pemerintah Kab. Limapuluh Kota'),('5404','Pemerintah Kab. Solok'),('5405','Pemerintah Kab. Padang Pariaman'),('5406','Pemerintah Kab. Pesisir Selatan'),('5407','Pemerintah Kab. Tanah Datar'),('5408','Pemerintah Kab. Sijunjung'),('5409','Pemerintah Kab. Kep. Mentawai'),('5410','Pemerintah Kab. Solok Selatan'),('5411','Pemerintah Kab. Dharmasraya'),('5412','Pemerintah Kab. Pasaman Barat'),('5471','Pemerintah Kota Bukittinggi'),('5472','Pemerintah Kota Padang Panjang'),('5473','Pemerintah Kota Sawahlunto'),('5474','Pemerintah Kota Solok'),('5475','Pemerintah Kota Padang'),('5476','Pemerintah Kota Payakumbuh'),('5477','Pemerintah Kota Pariaman'),('5500','Pemerintah Provinsi Jambi'),('5501','Pemerintah Kab. Batang Hari'),('5502','Pemerintah Kab. Tanjung Jabung Barat'),('5503','Pemerintah Kab. Bungo'),('5504','Pemerintah Kab. Merangin'),('5505','Pemerintah Kab. Kerinci'),('5506','Pemerintah Kab. Sarolangun'),('5507','Pemerintah Kab. Tebo'),('5508','Pemerintah Kab. Muaro Jambi'),('5509','Pemerintah Kab. Tanjung Jabung Timur'),('5571','Pemerintah Kota Jambi'),('5572','Pemerintah Kota Sungai Penuh'),('5600','Pemerintah Provinsi Sumatera Selatan'),('5601','Pemerintah Kab. Musi Banyuasin'),('5602','Pemerintah Kab. Ogan Komering Ulu'),('5603','Pemerintah Kab. Muara Enim'),('5604','Pemerintah Kab. Lahat'),('5605','Pemerintah Kab. Musi Rawas'),('5606','Pemerintah Kab. Ogan Komering Ilir'),('5607','Pemerintah Kab. Banyuasin'),('5608','Pemerintah Kab. Ogan Komering Ulu Timur'),('5609','Pemerintah Kab. Ogan Komering Ulu Sel.'),('5610','Pemerintah Kab. Ogan Ilir'),('5611','Pemerintah Kab. Empat Lawang'),('5612','Pemerintah Kab. Musi Rawas Utara'),('5671','Pemerintah Kota Palembang'),('5672','Pemerintah Kota Pagar Alam'),('5673','Pemerintah Kota Lubuk Linggau'),('5674','Pemerintah Kota Prabumulih'),('5675','Pemerintah Kab. Penukal Abab Lematang Ilir'),('5700','Pemerintah Provinsi Kep. Bangka Belitung'),('5701','Pemerintah Kab. Bangka'),('5702','Pemerintah Kab. Belitung'),('5703','Pemerintah Kab. Bangka Barat'),('5704','Pemerintah Kab. Bangka Tengah'),('5705','Pemerintah Kab. Bangka Selatan'),('5706','Pemerintah Kab. Belitung Timur'),('5771','Pemerintah Kota Pangkal Pinang'),('5800','Pemerintah Provinsi Bengkulu'),('5801','Pemerintah Kab. Bengkulu Utara'),('5802','Pemerintah Kab. Bengkulu Selatan'),('5803','Pemerintah Kab. Rejang Lebong'),('5804','Pemerintah Kab. Kaur'),('5805','Pemerintah Kab. Seluma'),('5806','Pemerintah Kab. Mukomuko'),('5807','Pemerintah Kab. Kepahiang'),('5808','Pemerintah Kab. Lebong'),('5809','Pemerintah Kab. Bengkulu Tengah'),('5871','Pemerintah Kota Bengkulu'),('5900','Pemerintah Provinsi Lampung'),('5901','Pemerintah Kab. Lampung Selatan'),('5902','Pemerintah Kab. Lampung Tengah'),('5903','Pemerintah Kab. Lampung Utara'),('5904','Pemerintah Kab. Lampung Barat'),('5905','Pemerintah Kab. Tulang Bawang'),('5906','Pemerintah Kab. Tanggamus'),('5907','Pemerintah Kab. Way Kanan'),('5908','Pemerintah Kab. Lampung Timur'),('5909','Pemerintah Kab. Pesawaran'),('5910','Pemerintah Kab. Tulang Bawang Barat'),('5911','Pemerintah Kab. Pringsewu'),('5912','Pemerintah Kab. Mesuji'),('5913','Pemerintah Kab. Pesisir Barat'),('5971','Pemerintah Kota Metro'),('5972','Pemerintah Kota Bandar Lampung'),('6000','Pemerintah Provinsi Daerah Khusus Ibukota Jakarta'),('6001','Kab. Kepulauan Seribu'),('6100','Pemerintah Provinsi Jawa Barat'),('6101','Pemerintah Kab. Bogor'),('6102','Pemerintah Kab. Sukabumi'),('6103','Pemerintah Kab. Cianjur'),('6104','Pemerintah Kab. Bekasi'),('6105','Pemerintah Kab. Karawang'),('6106','Pemerintah Kab. Purwakarta'),('6107','Pemerintah Kab. Subang'),('6108','Pemerintah Kab. Bandung'),('6109','Pemerintah Kab. Sumedang'),('6110','Pemerintah Kab. Garut'),('6111','Pemerintah Kab. Tasikmalaya'),('6112','Pemerintah Kab. Ciamis'),('6113','Pemerintah Kab. Cirebon'),('6114','Pemerintah Kab. Kuningan'),('6115','Pemerintah Kab. Indramayu'),('6116','Pemerintah Kab. Majalengka'),('6117','Pemerintah Kab. Bandung Barat'),('6118','Pemerintah Kab. Pangandaran'),('6171','Pemerintah Kota Bandung'),('6172','Pemerintah Kota Bogor'),('6173','Pemerintah Kota Sukabumi'),('6174','Pemerintah Kota Cirebon'),('6175','Pemerintah Kota Bekasi'),('6176','Pemerintah Kota Depok'),('6177','Pemerintah Kota Cimahi'),('6178','Pemerintah Kota Tasikmalaya'),('6179','Pemerintah Kota Banjar'),('6200','Pemerintah Provinsi Banten'),('6201','Pemerintah Kab. Serang'),('6202','Pemerintah Kab. Pandeglang'),('6203','Pemerintah Kab. Lebak'),('6204','Pemerintah Kab. Tangerang'),('6271','Pemerintah Kota Tangerang'),('6272','Pemerintah Kota Cilegon'),('6273','Pemerintah Kota Serang'),('6274','Pemerintah Kota Tangerang Selatan'),('6300','Pemerintah Daerah D I Yogyakarta'),('6301','Pemerintah Kab. Bantul'),('6302','Pemerintah Kab. Sleman'),('6303','Pemerintah Kab. Gunung Kidul'),('6304','Pemerintah Kab. Kulon Progo'),('6371','Pemerintah Kota Yogyakarta'),('6400','Pemerintah Provinsi Jawa Tengah'),('6401','Pemerintah Kab. Semarang'),('6402','Pemerintah Kab. Kendal'),('6403','Pemerintah Kab. Demak'),('6404','Pemerintah Kab. Grobogan'),('6405','Pemerintah Kab. Pekalongan'),('6406','Pemerintah Kab. Batang'),('6407','Pemerintah Kab. Tegal'),('6408','Pemerintah Kab. Brebes'),('6409','Pemerintah Kab. Pati'),('6410','Pemerintah Kab. Kudus'),('6411','Pemerintah Kab. Pemalang'),('6412','Pemerintah Kab. Jepara'),('6413','Pemerintah Kab. Rembang'),('6414','Pemerintah Kab. Blora'),('6415','Pemerintah Kab. Banyumas'),('6416','Pemerintah Kab. Cilacap'),('6417','Pemerintah Kab. Purbalingga'),('6418','Pemerintah Kab. Banjarnegara'),('6419','Pemerintah Kab. Magelang'),('6420','Pemerintah Kab. Temanggung'),('6421','Pemerintah Kab. Wonosobo'),('6422','Pemerintah Kab. Purworejo'),('6423','Pemerintah Kab. Kebumen'),('6424','Pemerintah Kab. Klaten'),('6425','Pemerintah Kab. Boyolali'),('6426','Pemerintah Kab. Sragen'),('6427','Pemerintah Kab. Sukoharjo'),('6428','Pemerintah Kab. Karanganyar'),('6429','Pemerintah Kab. Wonogiri'),('6471','Pemerintah Kota Semarang'),('6472','Pemerintah Kota Salatiga'),('6473','Pemerintah Kota Pekalongan'),('6474','Pemerintah Kota Tegal'),('6475','Pemerintah Kota Magelang'),('6476','Pemerintah Kota Surakarta'),('6500','Pemerintah Provinsi Jawa Timur'),('6501','Pemerintah Kab. Gresik'),('6502','Pemerintah Kab. Mojokerto'),('6503','Pemerintah Kab. Sidoarjo'),('6504','Pemerintah Kab. Jombang'),('6505','Pemerintah Kab. Sampang'),('6506','Pemerintah Kab. Pamekasan'),('6507','Pemerintah Kab. Sumenep'),('6508','Pemerintah Kab. Bangkalan'),('6509','Pemerintah Kab. Bondowoso'),('6510','Pemerintah Kab. Situbondo'),('6511','Pemerintah Kab. Banyuwangi'),('6512','Pemerintah Kab. Jember'),('6513','Pemerintah Kab. Malang'),('6514','Pemerintah Kab. Pasuruan'),('6515','Pemerintah Kab. Probolinggo'),('6516','Pemerintah Kab. Lumajang'),('6517','Pemerintah Kab. Kediri'),('6518','Pemerintah Kab. Tulungagung'),('6519','Pemerintah Kab. Nganjuk'),('6520','Pemerintah Kab. Trenggalek'),('6521','Pemerintah Kab. Blitar'),('6522','Pemerintah Kab. Madiun'),('6523','Pemerintah Kab. Ngawi'),('6524','Pemerintah Kab. Magetan'),('6525','Pemerintah Kab. Ponorogo'),('6526','Pemerintah Kab. Pacitan'),('6527','Pemerintah Kab. Bojonegoro'),('6528','Pemerintah Kab. Tuban'),('6529','Pemerintah Kab. Lamongan'),('6571','Pemerintah Kota Surabaya'),('6572','Pemerintah Kota Mojokerto'),('6573','Pemerintah Kota Malang'),('6574','Pemerintah Kota Pasuruan'),('6575','Pemerintah Kota Probolinggo'),('6576','Pemerintah Kota Blitar'),('6577','Pemerintah Kota Kediri'),('6578','Pemerintah Kota Madiun'),('6579','Pemerintah Kota Batu'),('6600','Pemerintah Provinsi Kalimantan Barat'),('6601','Pemerintah Kab. Sambas'),('6602','Pemerintah Kab. Sanggau'),('6603','Pemerintah Kab. Sintang'),('6604','Pemerintah Kab. Mempawah'),('6605','Pemerintah Kab. Kapuas Hulu'),('6606','Pemerintah Kab. Ketapang'),('6607','Pemerintah Kab. Bengkayang'),('6608','Pemerintah Kab. Landak'),('6609','Pemerintah Kab. Melawi'),('6610','Pemerintah Kab. Sekadau'),('6611','Pemerintah Kab. Kubu Raya'),('6612','Pemerintah Kab. Kayong Utara'),('6671','Pemerintah Kota Pontianak'),('6672','Pemerintah Kota Singkawang'),('6700','Pemerintah Provinsi Kalimantan Tengah'),('6701','Pemerintah Kab. Kapuas'),('6702','Pemerintah Kab. Barito Utara'),('6703','Pemerintah Kab. Barito Selatan'),('6704','Pemerintah Kab. Kotawaringin Timur'),('6705','Pemerintah Kab. Kotawaringin Barat'),('6706','Pemerintah Kab. Pulang Pisau'),('6707','Pemerintah Kab. Gunung Mas'),('6708','Pemerintah Kab. Lamandau'),('6709','Pemerintah Kab. Sukamara'),('6710','Pemerintah Kab. Murung Raya'),('6711','Pemerintah Kab. Katingan'),('6712','Pemerintah Kab. Seruyan'),('6713','Pemerintah Kab. Barito Timur'),('6771','Pemerintah Kota Palangka Raya'),('6800','Pemerintah Provinsi Kalimantan Selatan'),('6801','Pemerintah Kab. Banjar'),('6802','Pemerintah Kab. Tanah Laut'),('6803','Pemerintah Kab. Tapin'),('6804','Pemerintah Kab. Hulu Sungai Selatan'),('6805','Pemerintah Kab. Hulu Sungai Tengah'),('6806','Pemerintah Kab. Barito Kuala'),('6807','Pemerintah Kab. Tabalong'),('6808','Pemerintah Kab. Kotabaru'),('6809','Pemerintah Kab. Hulu Sungai Utara'),('6810','Pemerintah Kab. Tanah Bumbu'),('6811','Pemerintah Kab. Balangan'),('6871','Pemerintah Kota Banjarmasin'),('6872','Pemerintah Kota Banjarbaru'),('6900','Pemerintah Provinsi Kalimantan Timur'),('6901','Pemerintah Kab. Kutai Kartanegara'),('6902','Pemerintah Kab. Paser'),('6904','Pemerintah Kab. Berau'),('6907','Pemerintah Kab. Kutai Barat'),('6908','Pemerintah Kab. Kutai Timur'),('6910','Pemerintah Kab. Penajam Paser Utara'),('6912','Pemerintah Kab. Mahakam Ulu'),('6971','Pemerintah Kota Samarinda'),('6972','Pemerintah Kota Balikpapan'),('6973','Pemerintah Kota Bontang'),('7000','Pemerintah Provinsi Sulawesi Utara'),('7001','Pemerintah Kab. Minahasa'),('7002','Pemerintah Kab. Bolaang Mongondow'),('7003','Pemerintah Kab. Kepulauan Sangihe'),('7004','Pemerintah Kab. Minahasa Selatan'),('7005','Pemerintah Kab. Kepulauan Talaud'),('7006','Pemerintah Kab. Minahasa Utara'),('7007','Pemerintah Kab. Bolaang Mongondow Utara'),('7008','Pemerintah Kab. Siau Tagulandang Biaro'),('7009','Pemerintah Kab. Minahasa Tenggara'),('7012','Pemerintah Kab. Bolaang Mongondow Selatan'),('7013','Pemerintah Kab. Bolaang Mongondow Timur'),('7071','Pemerintah Kota Manado'),('7072','Pemerintah Kota Bitung'),('7073','Pemerintah Kota Tomohon'),('7074','Pemerintah Kota KotaMobagu'),('7100','Pemerintah Provinsi Gorontalo'),('7101','Pemerintah Kab. Gorontalo'),('7102','Pemerintah Kab. Boalemo'),('7103','Pemerintah Kab. Pohuwato'),('7104','Pemerintah Kab. Bone Bolango'),('7105','Pemerintah Kab. Gorontalo Utara'),('7171','Pemerintah Kota Gorontalo'),('7200','Pemerintah Provinsi Sulawesi Tengah'),('7201','Pemerintah Kab. Poso'),('7202','Pemerintah Kab. Donggala'),('7203','Pemerintah Kab. Tolitoli'),('7204','Pemerintah Kab. Banggai'),('7205','Pemerintah Kab. Buol'),('7206','Pemerintah Kab. Morowali'),('7207','Pemerintah Kab. Banggai Kepulauan'),('7208','Pemerintah Kab. Parigi Moutong'),('7209','Pemerintah Kab. Tojo Una Una'),('7210','Pemerintah Kab. Sigi'),('7211','Pemerintah Kab. Banggai Laut'),('7212','Pemerintah Kab. Morowali Utara'),('7271','Pemerintah Kota Palu'),('7300','Pemerintah Provinsi Sulawesi Selatan'),('7301','Pemerintah Kab. Pinrang'),('7302','Pemerintah Kab. Gowa'),('7303','Pemerintah Kab. Wajo'),('7305','Pemerintah Kab. Bone'),('7306','Pemerintah Kab. Tana Toraja'),('7307','Pemerintah Kab. Maros'),('7309','Pemerintah Kab. Luwu'),('7310','Pemerintah Kab. Sinjai'),('7311','Pemerintah Kab. Bulukumba'),('7312','Pemerintah Kab. Bantaeng'),('7313','Pemerintah Kab. Jeneponto'),('7314','Pemerintah Kab. Kepulauan Selayar'),('7315','Pemerintah Kab. Takalar'),('7316','Pemerintah Kab. Barru'),('7317','Pemerintah Kab. Sidenreng Rappang'),('7318','Pemerintah Kab. Pangkajene dan Kepulauan'),('7319','Pemerintah Kab. Soppeng'),('7321','Pemerintah Kab. Enrekang'),('7322','Pemerintah Kab. Luwu Utara'),('7325','Pemerintah Kab. Luwu Timur'),('7326','Pemerintah Kab. Toraja Utara'),('7371','Pemerintah Kota Makassar'),('7372','Pemerintah Kota Parepare'),('7373','Pemerintah Kota Palopo'),('7400','Pemerintah Provinsi Sulawesi Tenggara'),('7401','Pemerintah Kab. Konawe'),('7402','Pemerintah Kab. Buton'),('7403','Pemerintah Kab. Muna'),('7404','Pemerintah Kab. Kolaka'),('7405','Pemerintah Kab. Konawe Selatan'),('7406','Pemerintah Kab. Kolaka Utara'),('7407','Pemerintah Kab. Bombana'),('7408','Pemerintah Kab. Wakatobi'),('7410','Pemerintah Kab. Buton Utara'),('7411','Pemerintah Kab. Konawe Utara'),('7412','Pemerintah Kab. Kolaka Timur'),('7413','Pemerintah Kab. Konawe Kepulauan'),('7414','Pemerintah Kab. Buton Selatan'),('7415','Pemerintah Kab. Buton Tengah'),('7416','Pemerintah Kab. Muna Barat'),('7471','Pemerintah Kota Kendari'),('7472','Pemerintah Kota Baubau'),('7500','Pemerintah Provinsi Bali'),('7501','Pemerintah Kab. Buleleng'),('7502','Pemerintah Kab. Jembrana'),('7503','Pemerintah Kab. Klungkung'),('7504','Pemerintah Kab. Gianyar'),('7505','Pemerintah Kab. Karangasem'),('7506','Pemerintah Kab. Bangli'),('7507','Pemerintah Kab. Badung'),('7508','Pemerintah Kab. Tabanan'),('7571','Pemerintah Kota Denpasar'),('7600','Pemerintah Provinsi NTB'),('7601','Pemerintah Kab. Lombok Barat'),('7602','Pemerintah Kab. Lombok Tengah'),('7603','Pemerintah Kab. Lombok Timur'),('7604','Pemerintah Kab. Bima'),('7605','Pemerintah Kab. Sumbawa'),('7606','Pemerintah Kab. Dompu'),('7607','Pemerintah Kab. Sumbawa Barat'),('7608','Pemerintah Kab. Lombok Utara'),('7671','Pemerintah Kota Mataram'),('7672','Pemerintah Kota Bima'),('7700','Pemerintah Provinsi NTT'),('7701','Pemerintah Kab. Kupang'),('7702','Pemerintah Kab. Belu'),('7703','Pemerintah Kab. Timor Tengah Utara'),('7704','Pemerintah Kab. Timor Tengah Selatan'),('7705','Pemerintah Kab. Alor'),('7706','Pemerintah Kab. Sikka'),('7707','Pemerintah Kab. Flores Timur'),('7708','Pemerintah Kab. Ende'),('7709','Pemerintah Kab. Ngada'),('7710','Pemerintah Kab. Manggarai'),('7711','Pemerintah Kab. Sumba Timur'),('7712','Pemerintah Kab. Sumba Barat'),('7713','Pemerintah Kab. Lembata'),('7714','Pemerintah Kab. Rote Ndao'),('7715','Pemerintah Kab. Manggarai Barat'),('7716','Pemerintah Kab. Manggarai Timur'),('7717','Pemerintah Kab. Sumba Barat Daya'),('7718','Pemerintah Kab. Nagekeo'),('7719','Pemerintah Kab. Sumba Tengah'),('7720','Pemerintah Kab. Sabu Raijua'),('7721','Pemerintah Kab. Malaka'),('7771','Pemerintah Kota Kupang'),('7800','Pemerintah Provinsi Maluku'),('7801','Pemerintah Kab. Maluku Tengah'),('7802','Pemerintah Kab. Maluku Tenggara'),('7803','Pemerintah Kab. Buru'),('7804','Pemerintah Kab. Maluku Tenggara Barat'),('7805','Pemerintah Kab. Kepulauan Aru'),('7806','Pemerintah Kab. Seram Bagian Barat'),('7807','Pemerintah Kab. Seram Bagian Timur'),('7808','Pemerintah Kab. Buru Selatan'),('7809','Pemerintah Kab. Maluku Barat Daya'),('7871','Pemerintah Kota Ambon'),('7872','Pemerintah Kota Tual'),('7900','Pemerintah Provinsi Maluku Utara'),('7901','Pemerintah Kab. Halmahera Barat'),('7902','Pemerintah Kab. Halmahera Tengah'),('7903','Pemerintah Kab. Kepulauan Sula'),('7904','Pemerintah Kab. Halmahera Selatan'),('7905','Pemerintah Kab. Halmahera Utara'),('7906','Pemerintah Kab. Halmahera Timur'),('7907','Pemerintah Kab. Pulau Morotai'),('7908','Pemerintah Kab. Pulau Taliabu'),('7971','Pemerintah Kota Ternate'),('7972','Pemerintah Kota Tidore Kepulauan'),('8000','Pemerintah Provinsi Papua'),('8001','Pemerintah Kab. Jayapura'),('8002','Pemerintah Kab. Biak Numfor'),('8004','Pemerintah Kab. Kepulauan Yapen '),('8007','Pemerintah Kab. Merauke'),('8008','Pemerintah Kab. Jayawijaya'),('8009','Pemerintah Kab. Nabire'),('8010','Pemerintah Kab. Puncak Jaya'),('8011','Pemerintah Kab. Paniai'),('8012','Pemerintah Kab. Mimika'),('8013','Pemerintah Kab. Boven Digoel'),('8014','Pemerintah Kab. Mappi'),('8015','Pemerintah Kab. Asmat'),('8016','Pemerintah Kab. Yahukimo'),('8017','Pemerintah Kab. Pegunungan Bintang'),('8018','Pemerintah Kab. Tolikara'),('8019','Pemerintah Kab. Sarmi'),('8020','Pemerintah Kab. Keerom'),('8026','Pemerintah Kab. Waropen'),('8027','Pemerintah Kab. Supiori'),('8028','Pemerintah Kab. Mamberamo Raya'),('8029','Pemerintah Kab. Mamberamo Tengah'),('8030','Pemerintah Kab. Lanny Jaya'),('8031','Pemerintah Kab. Yalimo'),('8032','Pemerintah Kab. Nduga'),('8033','Pemerintah Kab. Dogiyai'),('8035','Pemerintah Kab. Puncak'),('8036','Pemerintah Kab. Deiyai'),('8037','Pemerintah Kab. Intan Jaya'),('8072','Pemerintah Kota Jayapura'),('8100','Pemerintah Provinsi Kepulauan Riau'),('8101','Pemerintah Kab. Bintan'),('8102','Pemerintah Kab. Karimun'),('8103','Pemerintah Kab. Natuna'),('8104','Pemerintah Kab. Lingga'),('8105','Pemerintah Kab. Kepulauan Anambas'),('8171','Pemerintah Kota Batam'),('8172','Pemerintah Kota Tanjungpinang'),('8200','Pemerintah Provinsi Papua Barat'),('8201','Pemerintah Kab. Sorong'),('8202','Pemerintah Kab. Sorong Selatan'),('8203','Pemerintah Kab. Raja Ampat'),('8204','Pemerintah Kab. Manokwari'),('8205','Pemerintah Kab. Teluk Bintuni'),('8206','Pemerintah Kab. Teluk Wondama'),('8207','Pemerintah Kab. Fak-Fak'),('8208','Pemerintah Kab. Kaimana'),('8210','Pemerintah Kab. Tambrauw'),('8211','Pemerintah Kab. Maybrat'),('8212','Pemerintah Kab. Pegunungan Arfak'),('8213','Pemerintah Kab. Manokwari Selatan'),('8271','Pemerintah Kota Sorong'),('8300','Pemerintah Provinsi Sulawesi Barat'),('8301','Pemerintah Kab. Mamuju Utara'),('8302','Pemerintah Kab. Mamuju'),('8303','Pemerintah Kab. Mamasa'),('8304','Pemerintah Kab. Polewali Mandar'),('8305','Pemerintah Kab. Majene'),('8306','Pemerintah Kab. Mamuju Tengah'),('8400','Pemerintah Provinsi Kalimantan Utara'),('8401','Pemerintah Kab. Bulungan'),('8402','Pemerintah Kab. Malinau'),('8403','Pemerintah Kab. Nunukan'),('8404','Pemerintah Kab. Tana Tidung'),('8471','Pemerintah Kota Tarakan'),('8810','BUMN'),('8820','BUMD'),('8830','SWASTA'),('9910','Luar Negeri'),('9999','Lain-Lain'); /*!40000 ALTER TABLE `instansi` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2019-07-18 13:00:01
DELETE FROM nrd.aggr_claimt_sessn; INSERT INTO nrd.aggr_claimt_sessn (claimt_id, claimt_sessn_tmstmp, bus_perd_end_dt, sessn_enty_type_cd, orig_ip_addr, orig_ip_net_val, ip_city_name, ip_st_cd, ip_cntry_cd, ip_anon_proxy_flag, ip_conn_type_cd, ip_subscr_type_cd, ip_lat_val, ip_long_val, ip_outsd_local_st_flag, ip_outsd_claimt_st_flag, ip_outsd_cntry_flag, claimt_st_cd_array, claimt_addr_chg_flag, crt_tmstmp) SELECT sessn.claimt_id, sessn.claimt_sessn_tmstmp, DATE_TRUNC('week', sessn.claimt_sessn_tmstmp) - INTERVAL '1 day', sessn.sessn_enty_type_cd, sessn.orig_ip_addr, NETWORK(SET_MASKLEN(sessn.orig_ip_addr, 24)), sessn.ip_city_name, sessn.ip_st_cd, sessn.ip_cntry_cd, sessn.ip_anon_proxy_flag, sessn.ip_conn_type_cd, sessn.ip_subscr_type_cd, sessn.ip_lat_val, sessn.ip_long_val, CASE WHEN sessn.ip_st_cd IS NULL OR sessn.ip_st_cd IN ( SELECT lkup_cd FROM ref.parnt_lkup_cd lk JOIN ref.sys_parm sp ON lk.parnt_lkup_cd = sp.sys_parm_val WHERE sp.sys_parm_cd = 'CLIENT_DOL_ST_CD' AND lk.lkup_tabl_id = 5 ) THEN false ELSE true END, CASE WHEN sessn.ip_st_cd IS NULL OR sessn.ip_st_cd = ANY(y.st_cd_array) THEN false ELSE true END, CASE WHEN sessn.ip_cntry_cd IS NULL OR sessn.ip_cntry_cd = 'US' THEN false ELSE true END, y.st_cd_array, CASE WHEN z.prev_addr_cnt IS NULL OR z.prev_addr_cnt = 0 THEN false ELSE true END, CURRENT_TIMESTAMP FROM nrd.claimt_sessn sessn JOIN ref.parm ON sessn.claimt_sessn_tmstmp BETWEEN '${APM_CYCL_DT}'::DATE - INTERVAL '1 month' * parm.parm_val::int AND '${APM_CYCL_DT}'::DATE + INTERVAL '1 day' AND parm.parm_cd = 'AGGR_CLAIMT_SESSN_MON_CNT' LEFT JOIN ( SELECT addr_idfr.enty_id, ARRAY_AGG(DISTINCT addr.st_cd) AS st_cd_array FROM nrd.addr_idfr JOIN nrd.addr ON addr_idfr.addr_id = addr.addr_id AND addr.exp_dt IS NULL WHERE addr_idfr.enty_type_cd = 'CLAIMT' AND addr.st_cd IS NOT NULL GROUP BY addr_idfr.enty_id ) y ON sessn.claimt_id = y.enty_id LEFT JOIN ( SELECT addr_idfr.enty_id, COUNT(*) AS prev_addr_cnt FROM nrd.addr_idfr JOIN nrd.addr ON addr_idfr.addr_id = addr.addr_id AND addr.exp_dt IS NOT NULL WHERE addr_idfr.enty_type_cd = 'CLAIMT' GROUP BY addr_idfr.enty_id ) z ON sessn.claimt_id = z.enty_id; -- remove details for MaxMind center of US coordinates UPDATE nrd.aggr_claimt_sessn SET ip_city_name = NULL, ip_st_cd = NULL, ip_lat_val = NULL, ip_long_val = NULL WHERE (ip_lat_val = 38 and ip_long_val = -97) OR (ip_lat_val = 37.751 and ip_long_val = -97.822);
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/current/5.1.1/tables/KC_TBL_COI_DISPOSITION_STATUS.sql alter table COI_DISPOSITION_STATUS add DISPLAY_TO_REPORTER CHAR(1) DEFAULT 'N' NOT NULL /
<reponame>StanfordBioinformatics/VA_AAA_BigQuery<filename>sql/indel-length-distribution.sql # Count the number of indels by length SELECT length_alt, length_ref, COUNT(length_alt) AS count, FROM( SELECT mutation, COUNT(mutation) AS num_variants, start, end, genotype, length_alt, length_ref, FROM ( SELECT call.call_set_name, CONCAT(reference_bases, CONCAT(STRING('->'), alternate_bases)) AS mutation, COUNT(alternate_bases) WITHIN RECORD AS num_alts, LENGTH(alternate_bases) AS length_alt, LENGTH(reference_bases) AS length_ref, reference_name, start, end, GROUP_CONCAT(STRING(call.genotype)) WITHIN RECORD AS genotype, FROM FLATTEN([_THE_TABLE_], call.call_set_name) OMIT RECORD IF EVERY (call.genotype <= 0) HAVING num_alts = 1 AND LENGTH(reference_bases) > 1 OR LENGTH(alternate_bases) > 1 ) WHERE genotype != '-1,-1' #_AND_ GROUP EACH BY mutation, start, end, genotype, length_ref, length_alt) GROUP EACH BY length_alt, length_ref, ORDER BY length_ref, length_alt DESC
<filename>database/logging/createTables.sql<gh_stars>0 create table if not exists LogType( typeID tinyint unsigned auto_increment primary key, `name` varchar(64) unique not null ); create table if not exists LogLevel( levelID tinyint unsigned auto_increment primary key, `type` tinyint unsigned not null, `name` varchar(64) unique not null ); create table if not exists LogRecord( logID bigint unsigned auto_increment primary key, eventName varchar(64) not null, `level` tinyint unsigned not null, levelText varchar(64) not null, app int unsigned not null, appVersion varchar(16) not null, `system` int unsigned, systemVersion varchar(16), `timestamp` datetime not null default current_timestamp on update current_timestamp, traceID bigint unsigned ); create table if not exists LogAttribute( log bigint unsigned, `key` varchar(64), `value` varchar(1024) not null, primary key(log, `key`) ); create table if not exists LogBody( bodyID bigint unsigned auto_increment primary key, log bigint unsigned not null, `key` varchar(64), `value` varchar(1024), parent bigint unsigned );
<filename>modules/core/db/update/hsql/19/190601-2-createProducer.sql<gh_stars>0 alter table CEOTOCF_PRODUCER add constraint FK_CEOTOCF_PRODUCER_ON_ADDRESS foreign key (ADDRESS_ID) references CEOTOCF_ADDRESS(ID); create index IDX_CEOTOCF_PRODUCER_ON_ADDRESS on CEOTOCF_PRODUCER (ADDRESS_ID);
DROP TABLE IF EXISTS `t_account_two`; CREATE TABLE `t_account_two` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `amount` decimal(19, 2) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB;
<gh_stars>10-100 ------------------------------------------------------ ---NAACCR_DATA_POINTS -------------------------------------------------------------------------- --This is DDL for the NAACCR ETL SQL input format. --The NAACCR ETL SQL assumes you have converted your NAACCR data into this structure. -------------------------------------------------------------------------- CREATE TABLE naaccr_data_points( person_id number(19), record_id varchar(255) NULL, naaccr_item_number varchar(255) NULL, naaccr_item_value varchar(255) NULL, histology varchar(255) NULL, site varchar(255) NULL, histology_site varchar(255) NULL );
<filename>t/test-files/ex54.sql SELECT CASE WHEN 1 = 1 THEN 2 ELSE 3 end::text AS col1, col2, col3 FROM tb1; SELECT ( CASE WHEN 1 = 1 THEN 2 ELSE 3 END)::text AS col1, col2, col3 FROM tb1; UPDATE point_tbl SET f1[0] = NULL WHERE f1::text = '(10,10)'::point::text RETURNING *; SELECT 'TrUe'::text::boolean AS true, 'fAlse'::text::boolean AS false; SELECT true::boolean::text AS true, false::boolean::text AS false; CREATE PROCEDURE testns.bar() AS 'select 1' LANGUAGE sql; ALTER TABLE test9b ALTER COLUMN b TYPE priv_testdomain1; CREATE TYPE test7b AS ( a int, b priv_testdomain1 ); CREATE TYPE test8b AS ( a int, b int ); ALTER TYPE test8b ADD ATTRIBUTE c priv_testdomain1; CREATE OR REPLACE PROCEDURE foo ( ) AS $BODY$ DECLARE BEGIN INSERT INTO bar (COLUMN) VALUES (1); COMMIT; BEGIN INSERT INTO bar (COLUMN) VALUES (2); COMMIT; BEGIN INSERT INTO bar (COLUMN) VALUES (3); COMMIT; END; END; END; $BODY$ LANGUAGE plpgsql; CREATE TEXT SEARCH PARSER addr_ts_prs ( START = prsd_start, gettoken = prsd_nexttoken, END = prsd_end, lextypes = prsd_lextype ); CREATE FUNCTION fonction_reference(refcursor) RETURNS refcursor AS $$ BEGIN OPEN $1 FOR SELECT col FROM test; RETURN $1; END; $$ LANGUAGE plpgsql; CREATE OR REPLACE FUNCTION foo () RETURNS TRIGGER AS $$ BEGIN IF NEW.role NOT IN ( SELECT rolname FROM pg_authid) THEN RAISE EXCEPTION 'role % does not exist.', NEW.role; END IF; END; $$ LANGUAGE 'plpgsql'; DO $$ DECLARE xml_declaration text := '<?xml version="1.0" encoding="ISO-8859-1"?>'; degree_symbol text; res xml[]; BEGIN -- Per the documentation, except when the server encoding is UTF8, xpath() -- may not work on non-ASCII data. The untranslatable_character and -- undefined_function traps below, currently dead code, will become relevant -- if we remove this limitation. IF current_setting('server_encoding') <> 'UTF8' THEN RAISE LOG 'skip: encoding % unsupported for xpath', current_setting('server_encoding'); RETURN; END IF; degree_symbol := convert_from('\xc2b0', 'UTF8'); res := xpath('text()', (xml_declaration || '<x>' || degree_symbol || '</x>')::xml); IF degree_symbol <> res[1]::text THEN RAISE 'expected % (%), got % (%)', degree_symbol, convert_to(degree_symbol, 'UTF8'), res[1], convert_to(res[1]::text, 'UTF8'); END IF; EXCEPTION -- character with byte sequence 0xc2 0xb0 in encoding "UTF8" has no equivalent in encoding "LATIN8" WHEN untranslatable_character -- default conversion function for encoding "UTF8" to "MULE_INTERNAL" does not exist OR undefined_function -- unsupported XML feature OR feature_not_supported THEN RAISE LOG 'skip: %', SQLERRM; END $$; CREATE FUNCTION wait_for_stats () RETURNS void AS $$ DECLARE start_time timestamptz := clock_timestamp(); updated1 bool; updated2 bool; updated3 bool; updated4 bool; BEGIN -- we don't want to wait forever; loop will exit after 30 seconds FOR i IN 1..300 LOOP -- With parallel query, the seqscan and indexscan on tenk2 might be done -- in parallel worker processes, which will send their stats counters -- asynchronously to what our own session does. So we must check for -- those counts to be registered separately from the update counts. -- check to see if seqscan has been sensed SELECT (st.seq_scan >= pr.seq_scan + 1) INTO updated1 FROM pg_stat_user_tables AS st, pg_class AS cl, prevstats AS pr WHERE st.relname = 'tenk2' AND cl.relname = 'tenk2'; -- check to see if indexscan has been sensed SELECT (st.idx_scan >= pr.idx_scan + 1) INTO updated2 FROM pg_stat_user_tables AS st, pg_class AS cl, prevstats AS pr WHERE st.relname = 'tenk2' AND cl.relname = 'tenk2'; -- check to see if all updates have been sensed SELECT (n_tup_ins > 0) INTO updated3 FROM pg_stat_user_tables WHERE relname = 'trunc_stats_test4'; -- We must also check explicitly that pg_stat_get_snapshot_timestamp has -- advanced, because that comes from the global stats file which might -- be older than the per-DB stats file we got the other values from. SELECT (pr.snap_ts < pg_stat_get_snapshot_timestamp ()) INTO updated4 FROM prevstats AS pr; exit WHEN updated1 AND updated2 AND updated3 AND updated4; -- wait a little PERFORM pg_sleep_for ('100 milliseconds'); -- reset stats snapshot so we can test again PERFORM pg_stat_clear_snapshot(); END LOOP; -- report time waited in postmaster log (where it won't change test output) raise log 'wait_for_stats delayed % seconds', extract(epoch FROM clock_timestamp() - start_time); END $$ LANGUAGE plpgsql; DO $$ DECLARE objtype text; names text[]; args text[]; BEGIN FOR objtype IN VALUES ('table'), ('publication relation') LOOP FOR names IN VALUES ('{eins}'), ('{eins, zwei, drei}') LOOP FOR args IN VALUES ('{}'), ('{integer}') LOOP BEGIN PERFORM pg_get_object_address(objtype, names, args); EXCEPTION WHEN OTHERS THEN RAISE WARNING 'error for %,%,%: %', objtype, names, args, sqlerrm; END; END LOOP; END LOOP; END LOOP; END; $$; -- test successful cases WITH objects ( TYPE, name, args ) AS ( VALUES ('table', '{addr_nsp, gentable}'::text[], '{}'::text[]), ('index', '{addr_nsp, parttable_pkey}', '{}'), ('sequence', '{addr_nsp, gentable_a_seq}', '{}'), -- toast table ('view', '{addr_nsp, genview}', '{}'), -- large object ('operator', '{+}', '{int4, int4}'), -- database -- tablespace ('foreign-data wrapper', '{addr_fdw}', '{}'), -- extension -- event trigger ('policy', '{addr_nsp, gentable, genpol}', '{}'), ('statistics object', '{addr_nsp, gentable_stat}', '{}')) SELECT (pg_identify_object (addr1.classid, addr1.objid, addr1.objsubid)).*, -- test roundtrip through pg_identify_object_as_address ROW (pg_identify_object (addr1.classid, addr1.objid, addr1.objsubid)) = ROW (pg_identify_object (addr2.classid, addr 2.objid, addr2.objsubid)) FROM objects, pg_get_object_address(TYPE, name, args) addr1, pg_identify_object_as_address(classid, objid, objsubid) ioa (typ, nms, args), pg_get_object_address(typ, nms, ioa.args) AS addr2 ORDER BY addr1.classid, addr1.objid, addr1.objsubid; --- --- Cleanup resources --- DROP FOREIGN DATA WRAPPER addr_fdw CASCADE; DROP PUBLICATION addr_pub; DROP SUBSCRIPTION addr_sub; DROP SCHEMA addr_nsp CASCADE; DROP OWNED BY regress_addr_user; DROP USER regress_addr_user; CREATE PROCEDURE insert_data (a integer, b integer) LANGUAGE SQL AS $$ INSERT INTO tbl VALUES (a); INSERT INTO tbl VALUES (b); $$;
CREATE SEQUENCE CASE_SEQ; CREATE TABLE CASE ( "ID" NUMBER NOT NULL , CASE_REF VARCHAR2(50 CHAR) NOT NULL , CASE_TYPE VARCHAR2(5 CHAR) NOT NULL , CASE_VERSION NUMBER NULL , CASE_XML CLOB NULL , INTAKE_ID NUMBER NOT NULL , INTAKE_DATE TIMESTAMP NOT NULL , HAS_DOCS VARCHAR2(1 CHAR) DEFAULT 'N' NOT NULL , CONSTRAINT CASE_PK PRIMARY KEY ( ID ) ENABLE ); COMMENT ON COLUMN CASE.ID IS 'Case Id'; COMMENT ON COLUMN CASE.CASE_REF IS 'Case Reference (GUID)'; COMMENT ON COLUMN CASE.CASE_TYPE IS 'Case Type Reference'; COMMENT ON COLUMN CASE.CASE_VERSION IS 'Version of used Case Type'; COMMENT ON COLUMN CASE.CASE_XML IS 'Case Data'; COMMENT ON COLUMN CASE.INTAKE_ID IS 'Intake Id'; COMMENT ON COLUMN CASE.INTAKE_DATE IS 'Intake Creation Date'; COMMENT ON COLUMN CASE.HAS_DOCS IS 'Check if case has documents'; ALTER TABLE CASE ADD CONSTRAINT CASE_CHK_DOCS CHECK (HAS_DOCS IN ('Y', 'N')); CREATE TRIGGER CASE_TRG BEFORE INSERT ON CASE FOR EACH ROW BEGIN <<COLUMN_SEQUENCES>> BEGIN IF INSERTING AND :NEW.ID IS NULL THEN SELECT CASE_SEQ.NEXTVAL INTO :NEW.ID FROM SYS.DUAL; END IF; END COLUMN_SEQUENCES; END; /
DROP VIEW IF EXISTS view_daftar_barang_halong; CREATE VIEW view_daftar_barang_halong AS SELECT * FROM view_daftar_barang_kabupaten WHERE 1 = 1; GRANT ALL PRIVILEGES ON view_daftar_barang_halong TO lap_halong; REVOKE INSERT, UPDATE, DELETE ON view_daftar_barang_halong FROM lap_halong;
<gh_stars>0 create table if not exists admins ( id uuid primary key default gen_random_uuid(), user_handle uuid references users(user_handle) ); grant select, insert, update, delete on table admins to project_app; grant select on table admins to project_read;
Create table motorista( Nome VARCHAR(30), NCartaCond VARCHAR(10), DataNasc DATE, Nbi INTEGER, PRIMARY KEY (Nbi, NCartaCond), UNIQUE (Nbi) ); Create table telefone( Nbi INTEGER, Telefone VARCHAR(50), foreign key (Nbi) references motorista(Nbi) on delete cascade ); Create table modelo( Marca VARCHAR(20), Modelo VARCHAR(20) PRIMARY KEY, NLugares INTEGER, Consumo FLOAT, UNIQUE (Modelo) ); Create table taxi( Modelo VARCHAR(20), Ano INTEGER, Kms INTEGER, Matricula CHAR(8), PRIMARY KEY (Modelo,Matricula), foreign key (Modelo) references modelo(Modelo) on delete cascade, UNIQUE(Matricula) ); Create table servico( DataInicio TIMESTAMP, DataFim TIMESTAMP, Kms INTEGER, Valor FLOAT, Matricula CHAR(8), CoordGPSInic CHAR(4), CoordGPSFin CHAR(4), foreign key (Matricula) references taxi(Matricula) on delete cascade ); Create table turno( DataInicio TIMESTAMP, DataFim TIMESTAMP, KmInicio INTEGER, KmFim INTEGER, Matricula CHAR(8), Nbi INTEGER, foreign key (Matricula) references taxi(Matricula) on delete cascade, foreign key (Nbi) references motorista(Nbi) on delete cascade ); Create table cliente( Nome VARCHAR(30), Morada VARCHAR(40), CodigoPostal VARCHAR(20), Nif BIGINT, UNIQUE(Nif) ); Create table pedido( Nif BIGINT, MoradaInicio VARCHAR(50), CodigoPostalInicio VARCHAR(20), DataPedido TIMESTAMP, Matricula CHAR(8), DataInicio TIMESTAMP, foreign key (Nif) references cliente(Nif) on delete cascade, foreign key (Matricula) references taxi(Matricula) on delete cascade );
--- BRANCHES WITH DIFFERENCES IN BATCH --- SELECT Ac_Branch, SUM(Decode(Category,'5',0,'6',0,'7',0,'8',0,'9',0,Decode(Drcr_Ind, 'D', Lcy_Amount, 0))) - SUM(Decode(Category,'5',0,'6',0,'7',0,'8',0,'9',0,Decode(Drcr_Ind, 'C', Lcy_Amount, 0))) Real_DIFF, SUM(Decode(Category,'1',0,'2',0,'3',0,'4',0,'7',0,'8',0,'9',0,Decode(Drcr_Ind, 'D', Lcy_Amount, 0))) - SUM(Decode(Category,'1',0,'2',0,'3',0,'4',0,'7',0,'8',0,'9',0,Decode(Drcr_Ind, 'C', Lcy_Amount, 0))) Cont_DIFF, SUM(Decode(Category,'1',0,'2',0,'3',0,'4',0,'5',0,'6',0,'8',0,'9',0,Decode(Drcr_Ind, 'D', Lcy_Amount, 0))) - SUM(Decode(Category,'1',0,'2',0,'3',0,'4',0,'5',0,'6',0,'8',0,'9',0,Decode(Drcr_Ind, 'C', Lcy_Amount, 0))) Memo_DIFF, SUM(Decode(Category,'1',0,'2',0,'3',0,'4',0,'5',0,'6',0,'7',0,Decode(Drcr_Ind, 'D', Lcy_Amount, 0))) - SUM(Decode(Category,'1',0,'2',0,'3',0,'4',0,'5',0,'6',0,'7',0,Decode(Drcr_Ind, 'C', Lcy_Amount, 0))) Pos_DIFF, Financial_Cycle, Period_Code FROM xafnfc.Actbs_Daily_Log WHERE /*Balance_Upd = 'U' AND*/ Nvl(Delete_Stat, 'X') <> 'D' GROUP BY Financial_Cycle, Period_Code, Ac_Branch; select * from xafnfc.Actb_Daily_Log --- BATCHES THAT ARE NOT BALANCED --- select ac_branch, batch_no, USER_ID, sum(decode(drcr_ind, 'D', -lcy_amount, lcy_amount)) "BAL" from XAFNFC.actb_daily_log where Nvl(Delete_Stat, 'X') <> 'D' and batch_no is not null group by ac_branch, batch_no, USER_ID ORDER BY ac_branch, batch_no --- CHECKING UNAUTHORIZED BATCHES AND DELETE THEM --- SELECT * FROM xafnfc.detb_batch_master where auth_stat='U' for update; SELECT count(*) from sttb_record_log where auth_stat = 'U'; SELECT * from xafnfc.sttb_record_log where auth_stat <> 'A' for update; ---
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.2.10 -- http://www.phpmyadmin.net -- -- Host: localhost -- Erstellungszeit: 14. Nov 2014 um 15:34 -- Server Version: 5.5.39-MariaDB-0ubuntu0.14.04.1 -- PHP-Version: 5.5.9-1ubuntu4.5 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 */; -- -- Datenbank: `WebShop_development` -- -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `articles` -- CREATE TABLE IF NOT EXISTS `articles` ( `id` int(11) NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `description` text COLLATE utf8_unicode_ci, `price` float DEFAULT NULL, `deleted_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `photo_file_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `photo_content_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `photo_file_size` int(11) DEFAULT NULL, `photo_updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `articles` -- INSERT INTO `articles` (`id`, `name`, `description`, `price`, `deleted_at`, `created_at`, `updated_at`, `photo_file_name`, `photo_content_type`, `photo_file_size`, `photo_updated_at`) VALUES (1, '[SET] DELL PowerEdge T20 Xeon E3-1225v3 Mini-Tower Server with Samsung S22D300H 54,61 cm (22 Zoll) LED-Monitor', 'Der PowerEdge T20 Server überzeugt mit umfangreicher interner Massenspeicherkapazität und starker Leistung. Sein Minitower-Gehäuse ist für einen leisen, effizienten und unterbrechungsfreien Betrieb ausgelegt. Mit dem T20 können Sie die Daten und Anwendungen mehrerer Desktop-PCs und Workstations auf einem einzigen Server konsolidieren und so nicht nur die Zusammenarbeit optimieren, sondern auch Ihre Produktivität steigern.', 379, NULL, '2014-11-08 19:00:13', '2014-11-08 19:00:13', 'Bild0-4990341517-024_250.JPG', 'image/jpeg', 5889, '2014-11-08 19:00:45'), (2, 'DELL PowerEdge T20 Xeon E3-1225v3 Mini-Tower Server', 'Der PowerEdge T20 Server überzeugt mit umfangreicher interner Massenspeicherkapazität und starker Leistung. Sein Minitower-Gehäuse ist für einen leisen, effizienten und unterbrechungsfreien Betrieb ausgelegt. Mit dem T20 können Sie die Daten und Anwendungen mehrerer Desktop-PCs und Workstations auf einem einzigen Server konsolidieren und so nicht nur die Zusammenarbeit optimieren, sondern auch Ihre Produktivität steigern.', 299, NULL, '2014-11-08 19:00:13', '2014-11-08 19:00:13', 'Bild0-4990341517-024_250.JPG', 'image/jpeg', 5889, '2014-11-08 19:01:05'), (3, 'Samsung S22D300H 54,61 cm (22 Zoll) LED-Monitor', 'Der neuen Samsung Monitore S22D300H überzeugen durch sein schlichtes, klassisches Design in schwarz-glänzender Klavierlack-Optik. Darüber hinaus verfügt er über einen HDMI- und VGA-Anschluss, sowie praktische Features: MagicUpscale ermöglicht durch einen intelligenten Algorithmus qualitativ hochwertiges Upscaling von Bildinhalten. Ist die Funktion aktiviert, sehen auch Bildinhalte in geringerer Auflösung nahezu so perfekt aus als würden sie in nativer Full-HD-Qualität zur Verfügung stehen. Die Eco Saving-Funktion ermöglicht Energiesparen auf Knopfdruck durch Anpassung der Bildhelligkeit. Selbstredend sind alle Modelle Windows 8 kompatibel.', 99, NULL, '2014-11-08 19:00:13', '2014-11-08 19:00:13', '51bN-tSYpKL.jpg', 'image/jpeg', 34770, '2014-11-08 19:01:46'), (4, 'Acer Aspire XC-605 DT.STEEG.084 PC i7-4790 8GB 1TB SSHD', 'Aufgaben erledigen, Programme ansehen, gelegentlich ein Spiel spielen und mit Freunden in Kontakt bleiben: All dies lässt sich ganz einfach mit einem Intel® Core™-Prozessor bis zur dritten Generation oder einem neuen AMD-Prozessor und Grafikprozessoren bewerkstelligen, die von integrierten Intel® HD-Grafikkarten bis hin zu diskreten NVIDIA® GeForce®- oder AMD Radeon™-Karten reichen.', 499, NULL, '2014-11-08 19:00:14', '2014-11-08 19:00:14', 'Bild0-5368541137-09N_250.JPG', 'image/jpeg', 4850, '2014-11-08 19:02:48'), (5, 'Lenovo IdeaCentre H500s 57324437 PC J1750 4GB 500GB', 'Der platzsparende und zuverlässige Lenovo H500s verbindet neueste Prozessortechnologie mit erstklassiger Multimedialeistung und großer Speicherkapazität – und ist so ideal für Heimcomputer-Anwendungen.', 159, NULL, '2014-11-08 19:00:14', '2014-11-08 19:00:14', 'middleH520s_right.jpg', 'image/jpeg', 6322, '2014-11-08 19:03:19'), (6, 'Asus P9D WS Intel® C226', 'Das Asus P9D WS-Mainboard ist mit dem neuen Intel C226-Chipsatz ausgestattet und unterstützt Intel Xeon E3-1200 v3- sowie Core-Prozessoren der vierten Generation. Das Asus P9D WS ist voll ISV-zertifiziert (Independent Software Vendor) und wurde speziell für Workstations sowie High-End-Desktop-PC-Systeme entwickelt und verfügt über eine breite Speicherkompatibilität. Es ist mit dem Asus Dr. Power-Dienstprogramm ausgestattet, welches den Status von Netzteilen überwacht, um plötzlichen Systemausfällen vorzubeugen. Außerdem verfügt es über eine Vielzahl an Schnittstellen inklusive mehrerer Schnittstellen für Monitore.', 0, NULL, '2014-11-08 19:00:14', '2014-11-08 19:00:14', 'P_500.jpg.png', 'image/png', 177454, '2014-11-08 19:04:02'), (7, 'Intel Xeon E3-1225 v3', 'Die Intel Xeon Prozessoren zeichnen sich durch neue, innovative Technologien wie die Hyper-Threading-Technologie und die Intel NetBurst Mikroarchitektur aus. Sie bieten hervorragende Leistungs- und Funktionseigenschaften mit genügend Spielraum für aktuelle und kommende Server- und Workstation-Plattformen. Bedeutende Weiterentwicklungen der Plattform, die besonderen Leistungseigenschaften und ein außergewöhnliches Preis-Leistungs-Verhältnis machen es gerade jetzt sinnvoll, von älteren Systemen auf die aktuelle Technologie aufzurüsten und damit Vorteile im Wettbewerb zu erzielen.', 0, NULL, '2014-11-08 19:00:14', '2014-11-08 19:00:14', '954066.jpg', 'image/jpeg', 30900, '2014-11-08 19:04:46'), (8, 'Crucial CT2KIT51264BA160B 8GB 4GB 240-pin DDR3 1600mhz non-ECC', 'Crucial 8GB KIT (4GBX2) DDR3 1600 MT/S, 4GB, 240-pin DIMM, DDR3 PC3-12800, 1600MHz, Non-ECC, CL11, 1.5V ', 0, NULL, '2014-11-08 19:00:14', '2014-11-08 19:00:14', '692374.jpg', 'image/jpeg', 42604, '2014-11-08 19:05:33'), (9, '[BUNDLE] Asus P9D WS Intel® C226 with Intel Xeon E3-1225 v3', 'Mainboard / CPU Bundles sind ideal als Grundgerüst für ein individuell gestaltetes PC-System geeignet. Darüber hinaus stellen Sie eine erstklassige Möglichkeit dar, um einem bestehenden PC-System ein Upgrade mit neuer, leistungsstarker Technik zu verschaffen. Unsere Mainboard / CPU Bundles werden mit den Komponenten CPU, passendem Kühler und Mainboard sowie dem notwendigen Zubehör wie Schrauben, Kabel und Bedienungsanleitung ausgeliefert!', 0, NULL, '2014-11-08 19:00:14', '2014-11-08 19:00:14', 'P_500.jpg.png', 'image/png', 177454, '2014-11-08 19:05:48'); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `article_structures` -- CREATE TABLE IF NOT EXISTS `article_structures` ( `amount` int(11) DEFAULT NULL, `deleted_at` datetime DEFAULT NULL, `upper_part_id` int(11) NOT NULL DEFAULT '0', `lower_part_id` int(11) NOT NULL DEFAULT '0', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `article_structures` -- INSERT INTO `article_structures` (`amount`, `deleted_at`, `upper_part_id`, `lower_part_id`, `created_at`, `updated_at`) VALUES (1, NULL, 1, 2, '2014-11-08 19:00:15', '2014-11-08 19:00:15'), (1, NULL, 1, 3, '2014-11-08 19:00:15', '2014-11-08 19:00:15'), (1, NULL, 2, 9, '2014-11-08 19:00:15', '2014-11-08 19:00:15'), (1, NULL, 9, 6, '2014-11-08 19:00:16', '2014-11-08 19:00:16'), (1, NULL, 9, 7, '2014-11-08 19:00:15', '2014-11-08 19:00:15'), (2, NULL, 9, 8, '2014-11-08 19:00:16', '2014-11-08 19:00:16'); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `article_to_tags` -- CREATE TABLE IF NOT EXISTS `article_to_tags` ( `id` int(11) NOT NULL, `article_id` int(11) DEFAULT NULL, `tag_id` int(11) DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `article_to_tags` -- INSERT INTO `article_to_tags` (`id`, `article_id`, `tag_id`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2014-11-08 19:00:13', '2014-11-08 19:00:13'), (3, 3, 3, '2014-11-08 19:00:13', '2014-11-08 19:00:13'), (4, 4, 2, '2014-11-08 19:00:14', '2014-11-08 19:00:14'), (5, 5, 2, '2014-11-08 19:00:14', '2014-11-08 19:00:14'), (6, 6, 5, '2014-11-08 19:00:14', '2014-11-08 19:00:14'), (7, 7, 6, '2014-11-08 19:00:14', '2014-11-08 19:00:14'), (8, 8, 7, '2014-11-08 19:00:15', '2014-11-08 19:00:15'), (9, 9, 4, '2014-11-08 19:00:15', '2014-11-08 19:00:15'), (15, 9, 9, '2014-11-13 08:59:23', '2014-11-13 08:59:23'), (16, 6, 9, '2014-11-13 08:59:53', '2014-11-13 08:59:53'), (17, 7, 9, '2014-11-13 09:00:12', '2014-11-13 09:00:12'), (18, 8, 9, '2014-11-13 09:00:19', '2014-11-13 09:00:19'), (19, 2, 10, '2014-11-13 09:01:05', '2014-11-13 09:01:05'), (20, 4, 10, '2014-11-13 09:01:44', '2014-11-13 09:01:44'), (21, 2, 8, '2014-11-13 09:01:58', '2014-11-13 09:01:58'), (22, 5, 10, '2014-11-13 09:02:10', '2014-11-13 09:02:10'); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `bills` -- CREATE TABLE IF NOT EXISTS `bills` ( `id` int(11) NOT NULL, `user_id` int(11) DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `bills` -- INSERT INTO `bills` (`id`, `user_id`, `created_at`, `updated_at`) VALUES (1, 1, '2014-09-12 03:32:18', '2014-09-12 03:40:46'), (2, 1, '2014-09-12 03:32:18', '2014-09-12 03:40:46'); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `bill_entries` -- CREATE TABLE IF NOT EXISTS `bill_entries` ( `amount` int(11) DEFAULT NULL, `bill_id` int(11) NOT NULL DEFAULT '0', `article_id` int(11) NOT NULL DEFAULT '0', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `bill_entries` -- INSERT INTO `bill_entries` (`amount`, `bill_id`, `article_id`, `created_at`, `updated_at`) VALUES (2, 1, 1, '2014-09-12 03:32:18', '2014-09-12 03:40:46'), (3, 1, 2, '2014-09-12 03:32:18', '2014-09-12 03:40:46'), (3, 1, 3, '2014-09-12 03:32:18', '2014-09-12 03:40:46'), (5, 2, 3, '2014-09-12 03:32:18', '2014-09-12 03:40:46'); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `menus` -- CREATE TABLE IF NOT EXISTS `menus` ( `id` int(11) NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `super_menu_id` int(11) DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `menus` -- INSERT INTO `menus` (`id`, `name`, `super_menu_id`, `created_at`, `updated_at`) VALUES (1, ' Komplettpakete', NULL, '2014-11-08 19:00:10', '2014-11-12 18:40:54'), (2, 'Desktop-PCs', 10, '2014-11-08 19:00:11', '2014-11-13 08:44:16'), (3, 'Monitore', NULL, '2014-11-08 19:00:11', '2014-11-08 19:00:11'), (4, 'Mainboard-Bundles', 12, '2014-11-08 19:00:11', '2014-11-13 08:47:13'), (5, 'Mainboards', 12, '2014-11-08 19:00:12', '2014-11-13 08:46:56'), (6, 'CPUs', 12, '2014-11-08 19:00:12', '2014-11-13 08:45:56'), (7, 'Arbeitsspeicher', 12, '2014-11-08 19:00:12', '2014-11-13 08:46:20'), (10, 'PC-Systeme', NULL, '2014-11-13 08:41:51', '2014-11-13 08:58:10'), (11, 'Server', 10, '2014-11-13 08:42:40', '2014-11-13 08:44:56'), (12, 'PC-Zubehör', NULL, '2014-11-13 08:45:34', '2014-11-13 08:57:51'); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `menu_to_tags` -- CREATE TABLE IF NOT EXISTS `menu_to_tags` ( `id` int(11) NOT NULL, `menu_id` int(11) DEFAULT NULL, `tag_id` int(11) DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `menu_to_tags` -- INSERT INTO `menu_to_tags` (`id`, `menu_id`, `tag_id`, `created_at`, `updated_at`) VALUES (2, 2, 2, '2014-11-08 19:00:11', '2014-11-08 19:00:11'), (3, 3, 3, '2014-11-08 19:00:11', '2014-11-08 19:00:11'), (4, 4, 4, '2014-11-08 19:00:12', '2014-11-08 19:00:12'), (5, 5, 5, '2014-11-08 19:00:12', '2014-11-08 19:00:12'), (6, 6, 6, '2014-11-08 19:00:12', '2014-11-08 19:00:12'), (7, 7, 7, '2014-11-08 19:00:13', '2014-11-08 19:00:13'), (8, 1, 1, '2014-11-12 17:46:59', '2014-11-12 17:46:59'), (15, 9, 4, '2014-11-13 07:26:40', '2014-11-13 07:26:40'), (16, 11, 8, '2014-11-13 08:44:55', '2014-11-13 08:44:55'), (17, 12, 9, '2014-11-13 08:57:51', '2014-11-13 08:57:51'), (18, 10, 10, '2014-11-13 08:58:10', '2014-11-13 08:58:10'), (19, 13, 1, '2014-11-13 18:13:49', '2014-11-13 18:13:49'), (20, 13, 2, '2014-11-13 18:13:49', '2014-11-13 18:13:49'), (21, 13, 4, '2014-11-13 18:13:49', '2014-11-13 18:13:49'), (22, 17, 1, '2014-11-13 18:45:23', '2014-11-13 18:45:23'); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `news` -- CREATE TABLE IF NOT EXISTS `news` ( `id` int(11) NOT NULL, `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `content` text COLLATE utf8_unicode_ci, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `news` -- INSERT INTO `news` (`id`, `title`, `content`, `created_at`, `updated_at`) VALUES (2, 'NVIDIA Game 24', 'Am 19.09. startet NVIDIA ein Event der Extraklasse: Game 24 - Die erste globale PC-Gaming Party\r\n\r\nEvents und Aktionen rund um die Welt, DOTA 2 Turniere mit professionellen Teams, Developer Interviews und Chats (z.B. mit Epic Ubisoft, Blizzard, Warner etc.), Riesen-Gewinnspiele und vieles mehr - 24 Stunden lang, nonstop!\r\n\r\nSeid im interaktiven Live-Stream dabei: <a href="http://game24.nvidia.com/">http://game24.nvidia.com/</a>', '2014-09-12 03:32:18', '2014-09-12 03:40:46'), (3, 'Game 24 - Die erste globale PC-Gaming Party', 'Kommende Nacht geht es los - der interaktive 24-Stunden-Live-Stream startet um 3 Uhr nachts (MEZ) mit einem Live-Event in Los Angeles. In Europa feiern die Spieler vor Ort in Stockholm (21 Uhr MEZ) und London (20:30 Uhr MEZ) am Abend des 19ten.\r\n\r\nHier seid Ihr dabei: <a href="http://game24.nvidia.com/">http://game24.nvidia.com/</a>', '2014-09-18 03:32:46', '2014-09-18 03:41:24'), (4, 'Windows 10', 'Die Gerüchteküche brodelt ja schon eine Weile, jetzt hat Microsoft die Katze aus dem Sack gelassen und präsentierte gestern die Zukunft von Windows.\r\n\r\nWindows 10 wird die nächste Version heißen und das erste universale Windows für alle Arten von Geräten sein.\r\n\r\nDie wichtigsten Highlights der neuen Version: Massiv erweiterte Sicherheitsfeatures, ein App-Store für alle Geräte, das Startmenü kehrt mit erweitertem Funktionsumfang zurück, Windows-Apps laufen in Fenstern und es wird multiple virtuelle Desktops geben.\r\n\r\nWindows 10 erscheint voraussichtlich Mitte 2015. Zuerst einmal zeigen wir anhand der Technical Preview, auf welche Neuerungen Ihr euch bei Windows 10 freuen könnt: <a href="https://www.youtube.com/watch?v=psyTHNiv8zE">https://www.youtube.com/watch?v=psyTHNiv8zE</a>', '2014-11-03 03:33:18', '2014-11-03 03:39:43'), (5, 'AMD Radeon™ Rewards', 'Bei Kauf eines PCs mit AMD Radeon R9 290, R9 290X oder R9 295X2 könnt Ihr jetzt richtig abräumen!\r\n\r\nWeiterhin bekommt Ihr einen AMD Radeon Ruby Reward, mit dem Ihr euch 4 Spiele aus der Never Settle Space Aktion kostenlos aussuchen dürft und zusätzlich bekommt Ihr ab sofort Sid Meier''s Civilization: Beyond Earth kostenlos dazu.\r\n\r\nMehr Infos findet Ihr hier: <a href="https://www.amd4u.com/civilizationpromo/">https://www.amd4u.com/civilizationpromo/</a>', '2014-11-06 03:36:58', '2014-11-06 03:42:08'); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `schema_migrations` -- CREATE TABLE IF NOT EXISTS `schema_migrations` ( `version` varchar(255) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `schema_migrations` -- INSERT INTO `schema_migrations` (`version`) VALUES ('20141107163839'), ('20141107163900'), ('20141107163911'), ('20141107163922'), ('20141107163932'), ('20141107170135'), ('20141107193902'), ('20141107195915'), ('20141107235123'), ('20141108130337'), ('20141108160358'), ('20141108173858'), ('20141108202351'); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `shopping_cart_entries` -- CREATE TABLE IF NOT EXISTS `shopping_cart_entries` ( `amount` int(11) DEFAULT NULL, `user_id` int(11) NOT NULL DEFAULT '0', `article_id` int(11) NOT NULL DEFAULT '0', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `tags` -- CREATE TABLE IF NOT EXISTS `tags` ( `id` int(11) NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `tags` -- INSERT INTO `tags` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Komplettpakete', '2014-11-08 19:00:10', '2014-11-08 19:00:10'), (2, 'Desktop-PCs', '2014-11-08 19:00:11', '2014-11-08 19:00:11'), (3, 'Monitore', '2014-11-08 19:00:11', '2014-11-08 19:00:11'), (4, 'Mainboard-Bundles', '2014-11-08 19:00:11', '2014-11-08 19:00:11'), (5, 'Mainboards', '2014-11-08 19:00:12', '2014-11-08 19:00:12'), (6, 'CPUs', '2014-11-08 19:00:12', '2014-11-08 19:00:12'), (7, 'Arbeitsspeicher', '2014-11-08 19:00:12', '2014-11-08 19:00:12'), (8, 'Server', '2014-11-13 08:39:59', '2014-11-13 08:39:59'), (9, 'PC-Zubehör', '2014-11-13 08:57:03', '2014-11-13 08:57:03'), (10, 'PC-Systeme', '2014-11-13 08:57:22', '2014-11-13 08:57:22'); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL, `firstname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `lastname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `password_digest` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `remember_digest` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `role` int(11) DEFAULT NULL, `deleted_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `users` -- INSERT INTO `users` (`id`, `firstname`, `lastname`, `email`, `password_digest`, `remember_digest`, `role`, `deleted_at`, `created_at`, `updated_at`) VALUES (1, 'Ad', 'min', '<EMAIL>', '$2a$10$fi89k1seSk6RZnkXva.FcOGTIXpQ8ggkKCdgEHjw/u8cizp2BjBfW', NULL, 0, NULL, '2014-11-08 19:00:16', '2014-11-12 02:04:05'), (4, 'Torben', 'Haug', '<EMAIL>', '$2a$10$ffcHO.Xxv8MPIt2MOYzM7OR4NZDlZuusZVZHTkziWCbYB6LPEPDyy', NULL, 100, NULL, '2014-11-12 11:53:47', '2014-11-12 11:55:07'), (5, 'Torben', 'Haug', '<EMAIL>', '$2a$10$WG9MFpEj8hZIt1eiIg1MT.QQlUUP6XHyGr0/Nxn3FIaOSTbGDiim.', NULL, 100, NULL, '2014-11-12 11:56:20', '2014-11-12 11:56:20'), (6, 'Andreas', 'Berks', '<EMAIL>', '$2a$10$IgCZPanvP6fSpp.75YcWZ.ouOReox/y47BEmpHQuEBUnFRx94.ZF.', NULL, 100, NULL, '2014-11-13 22:54:03', '2014-11-13 22:54:03'); -- -- Indizes der exportierten Tabellen -- -- -- Indizes für die Tabelle `articles` -- ALTER TABLE `articles` ADD PRIMARY KEY (`id`); -- -- Indizes für die Tabelle `article_structures` -- ALTER TABLE `article_structures` ADD PRIMARY KEY (`upper_part_id`,`lower_part_id`); -- -- Indizes für die Tabelle `article_to_tags` -- ALTER TABLE `article_to_tags` ADD PRIMARY KEY (`id`); -- -- Indizes für die Tabelle `bills` -- ALTER TABLE `bills` ADD PRIMARY KEY (`id`); -- -- Indizes für die Tabelle `bill_entries` -- ALTER TABLE `bill_entries` ADD PRIMARY KEY (`bill_id`,`article_id`); -- -- Indizes für die Tabelle `menus` -- ALTER TABLE `menus` ADD PRIMARY KEY (`id`); -- -- Indizes für die Tabelle `menu_to_tags` -- ALTER TABLE `menu_to_tags` ADD PRIMARY KEY (`id`); -- -- Indizes für die Tabelle `news` -- ALTER TABLE `news` ADD PRIMARY KEY (`id`); -- -- Indizes für die Tabelle `schema_migrations` -- ALTER TABLE `schema_migrations` ADD UNIQUE KEY `unique_schema_migrations` (`version`); -- -- Indizes für die Tabelle `shopping_cart_entries` -- ALTER TABLE `shopping_cart_entries` ADD PRIMARY KEY (`user_id`,`article_id`); -- -- Indizes für die Tabelle `tags` -- ALTER TABLE `tags` ADD PRIMARY KEY (`id`); -- -- Indizes für die Tabelle `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT für exportierte Tabellen -- -- -- AUTO_INCREMENT für Tabelle `articles` -- ALTER TABLE `articles` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=11; -- -- AUTO_INCREMENT für Tabelle `article_to_tags` -- ALTER TABLE `article_to_tags` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=24; -- -- AUTO_INCREMENT für Tabelle `bills` -- ALTER TABLE `bills` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3; -- -- AUTO_INCREMENT für Tabelle `menus` -- ALTER TABLE `menus` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=13; -- -- AUTO_INCREMENT für Tabelle `menu_to_tags` -- ALTER TABLE `menu_to_tags` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=23; -- -- AUTO_INCREMENT für Tabelle `news` -- ALTER TABLE `news` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6; -- -- AUTO_INCREMENT für Tabelle `tags` -- ALTER TABLE `tags` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=11; -- -- AUTO_INCREMENT für Tabelle `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7; /*!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>net50/module2/before/Polygons/Polygons and Logins/02.2 - CREATE FUNCTION polygon.getCreatedSessionID.sql USE maguiss GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: magui -- Create date: 07/10/2021 -- Description: creates new user session -- ============================================= IF (SELECT type from sys.objects where name = 'fn_getCreatedSession' and schema_id = schema_id('polygon')) = 'FN' BEGIN DROP FUNCTION polygon.fn_getCreatedSession END GO CREATE FUNCTION polygon.fn_getCreatedSession ( @username nvarchar(50) = null ) RETURNS uniqueidentifier AS BEGIN DECLARE @sessionID uniqueidentifier = (select sessionID from maguiss.polygon.sessionID where id = (select max(id) from maguiss.polygon.sessionID where username = @username ) ); RETURN @sessionID; END GO
CREATE TABLE [dbo].[Organization]( [OrganizationID] [uniqueidentifier] NOT NULL, [OrganizationName] [Nvarchar](150) NOT NULL, [OrganizationTypeID] [int] NOT NULL, [Deleted] [bit] NOT NULL, [DeletedBy] [uniqueidentifier] NULL, [DeletedOn] [datetime] NULL, CONSTRAINT [PK_Organization] PRIMARY KEY CLUSTERED ( [OrganizationID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO ALTER TABLE [dbo].[Organization] WITH CHECK ADD CONSTRAINT [FK_Organization_OrganizationType] FOREIGN KEY([OrganizationTypeID]) REFERENCES [dbo].[OrganizationType] ([OrganizationTypeID]) GO ALTER TABLE [dbo].[Organization] CHECK CONSTRAINT [FK_Organization_OrganizationType] GO
CREATE FUNCTION [dbo].[JSONDifference] ( @SourceJSON NVARCHAR(MAX), @TargetJSON NVARCHAR(MAX) ) /** Summary: > Adapted from https://www.red-gate.com/simple-talk/blogs/sql-server-json-diff-checking-for-differences-between-json-documents/ to cope with different ordering in arrays e.g. where items are added/deleted from an alphabetic list. This function 'diffs' a source JSON document with a target JSON document and produces an analysis of which properties are missing in either the source or target, or the values of these properties that are different. It reports on the properties and values for both source and target as well as the path that references that scalar value. The path reference to the object's parent is exposed in the result to enable a query to reference the value of any other object in the parent that is needed. Author: <NAME> Date: 22/12/2020 Returns: > SideIndicator: ( == equal, <- not in target, -> not in source, <> not equal, >< matched item in a different but related position PairPath: the JSON path used by the SQL JSON functions MatchPath: the JSON path where a match is found (can be different where SideIndicator is >< MatchMethod: One of Object Parent, Object Parent Diff, Pair Reorder or Pair Match depending on which of the PairKey: the key field without the path SourceValue: the value IN the SOURCE JSON document TargetValue: the value IN the TARGET JSON document **/ RETURNS @returntable TABLE --DECLARE @returntable TABLE ( SideIndicator CHAR(2), -- == means equal, <- means not in target, -> means not in source, <> means not equal ParentPath NVARCHAR(2000), --the parent object PairPath NVARCHAR(2000), -- the JSON path used by the SQL JSON functions MatchPath NVARCHAR(2000), -- the JSON path used by the SQL JSON functions MatchMethod VARCHAR(20), -- The part of the routine that matched the key/value PairKey NVARCHAR(200), --the key field/index in the array without the path SourceValue NVARCHAR(200), -- the value IN the SOURCE JSON document TargetValue NVARCHAR(200) -- the value IN the TARGET JSON document ) AS BEGIN DECLARE @map TABLE --these contain all properties or array elements with scalar values ( [MapID] [int] IDENTITY(1,1) NOT NULL, Iteration INT, --the number of times that more arrays or objects were found SourceOrTarget CHAR(1), --is this the source 's' OR the target 't' ParentPath NVARCHAR(80), --the parent object PairPath NVARCHAR(80), -- the JSON path to the key/value pair or array element PairKey NVARCHAR(2000), --the key to the property PairValue NVARCHAR(MAX),-- the value ValueType INT, --the type of value it is MatchPath NVARCHAR(80), ObjectID INT, MatchMap INT, MatchMethod VARCHAR(20) ); DECLARE @objects TABLE --this contains all the properties with arrays and objects ( ObjectID [int] IDENTITY(1,1) NOT NULL, Iteration INT, SourceOrTarget CHAR(1), ParentPath NVARCHAR(80), PairPath NVARCHAR(80), PairKey NVARCHAR(2000), PathValue NVARCHAR(MAX), ValueType INT, PairDepth INT, MatchObject INT, ParentObject INT, ParentMatch BIT ); --Start expanding from the top of nesting DECLARE @Depth INT = 1; DECLARE @HowManyObjectsNext INT = 1, @SourceType INT, @TargetType INT, @ObjectID INT, @MatchObjectID INT, @MapID INT, @TempCounter INT, @StopTarget BIT, @ObjectIDSource int,@ObjectIDTarget int, @FetchMapGroupSource int, @FetchMapGroupTarget int;; --Firstly, we try to work out if the source is an array or object SELECT @SourceType = CASE IsNumeric((SELECT TOP 1 [key] FROM OpenJson(@SourceJSON))) WHEN 1 THEN 4 ELSE 5 END, @TargetType= --and if the target is an array or object CASE IsNumeric((SELECT TOP 1 [key] FROM OpenJson(@TargetJSON))) WHEN 1 THEN 4 ELSE 5 END --Insert the base objects or arrays into the object table INSERT INTO @objects (Iteration, SourceOrTarget, ParentPath, PairPath, PairKey, PathValue, ValueType, MatchObject, ParentMatch) SELECT 0, 's' AS SourceOrTarget,'' AS parent, '$' AS path, '', @SourceJSON, @SourceType, CASE WHEN @SourceJSON=@TargetJSON THEN 2 ELSE Null END, CASE WHEN @SourceJSON=@TargetJSON THEN 1 ELSE 0 END; INSERT INTO @objects (Iteration, SourceOrTarget,ParentPath, PairPath, PairKey, PathValue, ValueType, MatchObject, ParentMatch) SELECT 0, 't' AS SourceOrTarget, '' AS parent, '$' AS path, '', @TargetJSON, @TargetType, CASE WHEN @SourceJSON=@TargetJSON THEN 1 ELSE Null END, CASE WHEN @SourceJSON=@TargetJSON THEN 1 ELSE 0 END; --These setting ensure the iteration is run once SELECT @Depth = 0, @HowManyObjectsNext = 2; WHILE @HowManyObjectsNext > 0 BEGIN --Get the scalar values into the @map table INSERT INTO @map (Iteration, SourceOrTarget, ParentPath, PairPath, PairKey, PairValue, ValueType, ObjectID) SELECT -- o.Iteration + 1, SourceOrTarget, PairPath, PairPath+CASE ValueType WHEN 4 THEN '['+[Key]+']' ELSE '.'+[key] END, [key],[value],[type], ObjectID FROM @objects AS o CROSS APPLY OpenJson(PathValue) WHERE Type IN (1, 2, 3) AND o.Iteration = @Depth; --Expand nested objects and arrays INSERT INTO @objects (Iteration, SourceOrTarget, ParentPath, PairPath, PairKey, PathValue, ValueType, PairDepth, ParentObject, ParentMatch) SELECT o.Iteration + 1, SourceOrTarget,PairPath, PairPath + CASE ValueType WHEN 4 THEN '['+[Key]+']' ELSE '.'+[Key] END, [key],[value],[type],@Depth ,ObjectID, CASE WHEN MatchObject Is Null THEN 0 ELSE 1 END FROM @objects o CROSS APPLY OpenJson(PathValue) WHERE type IN (4,5) AND o.Iteration=@Depth --Update how many objects or arrays in the next level in nesting SELECT @HowManyObjectsNext=@@RowCount --Cascade matching where parent objects match UPDATE o SET MatchObject=mo.ObjectID FROM @objects o INNER JOIN @objects mo ON (o.PathValue=mo.PathValue) INNER JOIN @objects op ON (o.ParentObject=op.ObjectID) INNER JOIN @objects mp ON (mo.ParentObject=mp.ObjectID) WHERE op.MatchObject=mp.ObjectID --Where the parent objects are not matched, but paths do match, use cursor to only update 1st match DECLARE ObjectCursorNotParent CURSOR FOR SELECT ObjectID FROM @objects WHERE SourceOrTarget='s' AND PairDepth=@Depth AND MatchObject Is Null AND ParentMatch=0 ORDER BY ObjectID OPEN ObjectCursorNotParent; -- Perform the first fetch. FETCH NEXT FROM ObjectCursorNotParent INTO @ObjectID; -- Check @@FETCH_STATUS to see if there are any more rows to fetch. WHILE @@FETCH_STATUS = 0 BEGIN -- --PICK and update the first matching ID where PathValue is the same and SourceOrTarget=t, mark up successful match SELECT @MatchObjectID=MIN(o.ObjectID) FROM @objects o LEFT JOIN @objects op on o.ParentObject=op.ObjectID WHERE o.MatchObject Is Null AND o.PairDepth=@Depth And o.SourceOrTarget='t' AND o.PathValue=(SELECT PathValue FROM @objects WHERE ObjectID=@ObjectID) AND o.ParentPath=(SELECT ParentPath FROM @objects WHERE ObjectID=@ObjectID) UPDATE @objects SET MatchObject=@ObjectID WHERE ObjectID=@MatchObjectID IF (@@ROWCOUNT=1) BEGIN UPDATE @objects SET MatchObject=(SELECT ObjectID FROM @objects WHERE MatchObject=@ObjectID) WHERE ObjectID=@ObjectID END FETCH NEXT FROM ObjectCursorNotParent INTO @ObjectID; END CLOSE ObjectCursorNotParent; DEALLOCATE ObjectCursorNotParent; --Move down a level update/match @Map objects at this level SELECT @Depth=@Depth+1 --Update MatchMap/MatchPath for matched Objects UPDATE m SET m.MatchMap=mp.MapID, m.MatchPath=mp.PairPath, m.MatchMethod=CASE o.ParentMatch WHEN 1 THEN 'Object Parent' ELSE 'Object Parent Diff' END FROM @map m INNER JOIN @objects o ON m.ObjectID=o.ObjectID INNER JOIN @map mp ON mp.ObjectID=o.MatchObject WHERE m.Iteration=@Depth and m.PairValue=mp.PairValue --Now look for sets by ObjectID where all @Map items match DECLARE MapGroupSource CURSOR FOR SELECT DISTINCT ObjectID FROM @map m WHERE m.SourceOrTarget='s' AND m.Iteration=@Depth AND m.MatchPath Is Null AND (SELECT COUNT(*) FROM @map WHERE Not MatchPath Is Null AND ParentPath=m.ParentPath)=0 OPEN MapGroupSource; FETCH NEXT FROM MapGroupSource INTO @ObjectIDSource; SET @FetchMapGroupSource=@@FETCH_STATUS WHILE @FetchMapGroupSource = 0 BEGIN SET @StopTarget=0; DECLARE MapGroupTarget CURSOR FOR SELECT DISTINCT ObjectID FROM @map m WHERE m.SourceOrTarget='t' AND m.Iteration=@Depth AND m.MatchPath Is Null AND (SELECT COUNT(*) FROM @map WHERE Not MatchPath Is Null AND ParentPath=m.ParentPath)=0 OPEN MapGroupTarget; FETCH NEXT FROM MapGroupTarget INTO @ObjectIDTarget; SET @FetchMapGroupTarget=@@FETCH_STATUS WHILE @FetchMapGroupTarget = 0 AND @StopTarget = 0 BEGIN --Count mismatches both ways (don't need to check intersection as if no intersection there will be mismatches) SELECT @TempCounter=COUNT(*) FROM --Source not in target ((SELECT PairValue FROM @map WHERE ObjectID=@ObjectIDSource AND Iteration=@Depth EXCEPT SELECT PairValue FROM @map WHERE ObjectID=@ObjectIDTarget AND Iteration=@Depth) UNION --Target not in source (SELECT PairValue FROM @map WHERE ObjectID=@ObjectIDTarget AND Iteration=@Depth EXCEPT SELECT PairValue FROM @map WHERE ObjectID=@ObjectIDSource AND Iteration=@Depth)) AS UNI --No mismatches implies a match IF @TempCounter=0 BEGIN --Update source and target with the match UPDATE m SET m.MatchPath=mp.PairPath, MatchMap=mp.MapID, MatchMethod = 'Pair Reorder' FROM @map m INNER JOIN @map mp ON m.PairValue=mp.PairValue WHERE m.ObjectID=@ObjectIDSource AND mp.ObjectID=@ObjectIDTarget AND m.SourceOrTarget='s' AND mp.SourceOrTarget='t' AND m.Iteration=@Depth AND mp.Iteration=@Depth UPDATE m SET m.MatchPath=mp.PairPath, MatchMap=mp.MapID, MatchMethod = 'Pair Reorder' FROM @map m INNER JOIN @map mp ON m.PairValue=mp.PairValue WHERE m.ObjectID=@ObjectIDTarget AND mp.ObjectID=@ObjectIDSource AND m.SourceOrTarget='t' AND mp.SourceOrTarget='s' AND m.Iteration=@Depth AND mp.Iteration=@Depth --Exit the cursor to stop source being used more than once SET @StopTarget=1; END FETCH NEXT FROM MapGroupTarget INTO @ObjectIDTarget; SET @FetchMapGroupTarget=@@FETCH_STATUS END CLOSE MapGroupTarget; DEALLOCATE MapGroupTarget; FETCH NEXT FROM MapGroupSource INTO @ObjectIDSource; SET @FetchMapGroupSource=@@FETCH_STATUS END CLOSE MapGroupSource; DEALLOCATE MapGroupSource; --Now try to match strings not matched by containing object DECLARE MapCursor CURSOR FOR SELECT MapID FROM @map m WHERE m.SourceOrTarget='s' AND m.Iteration=@Depth AND m.MatchMap Is Null ORDER BY MapID OPEN MapCursor; -- Perform the first fetch. FETCH NEXT FROM MapCursor INTO @MapID; -- Check @@FETCH_STATUS to see if there are any more rows to fetch. WHILE @@FETCH_STATUS = 0 BEGIN -- --PICK and update the first matching ID where PathValue is the same and SourceOrTarget=t, mark up successful match UPDATE @map SET MatchPath=(SELECT PairPath FROM @map WHERE MapID=@MapID), MatchMethod = 'Pair Match' WHERE MapID=(SELECT MIN(MapID) FROM @map WHERE MatchPath Is Null AND Iteration=@Depth And SourceOrTarget='t' AND PairValue=(SELECT PairValue FROM @map WHERE MapID=@MapID) AND ParentPath=(SELECT ParentPath FROM @map WHERE MapID=@MapID)) IF (@@ROWCOUNT=1) BEGIN UPDATE @map SET MatchPath=(SELECT PairPath FROM @map WHERE MatchPath=(SELECT PairPath FROM @map WHERE MapID=@MapID) AND Iteration=@Depth AND SourceOrTarget='t'), MatchMethod = 'Pair Match' WHERE MapID=@MapID END --SELECT * FROM @objects WHERE ObjectID=@ObjectID FETCH NEXT FROM MapCursor INTO @MapID; END CLOSE MapCursor; DEALLOCATE MapCursor; END --Full outer join on the unmatched items INSERT INTO @returntable (SideIndicator, ParentPath, PairPath, PairKey, SourceValue, TargetValue) SELECT --Side indicator that summarises the comparison CASE WHEN SourceJSON.PairValue=TargetJSON.PairValue THEN '==' ELSE CASE WHEN SourceJSON.PairPath IS NULL THEN '-' ELSE '<' end + CASE WHEN TargetJSON.PairPath IS NULL THEN '-' ELSE '>' END END AS Sideindicator, --The attribute fields could be in either table Coalesce(SourceJSON.ParentPath, TargetJSON.ParentPath) AS ParentPath, Coalesce(SourceJSON.PairPath, TargetJSON.PairPath) AS PairPath, Coalesce(SourceJSON.PairKey, TargetJSON.PairKey) AS PairKey, --Return the values SourceJSON.PairValue, TargetJSON.PairValue FROM (SELECT MapID, ParentPath, PairPath, PairKey, PairValue, MatchPath FROM @map WHERE SourceOrTarget = 's' AND MatchPath Is Null) AS SourceJSON -- Source scalar literals FULL OUTER JOIN (SELECT MapID, ParentPath, PairPath, PairKey, PairValue, MatchPath FROM @map WHERE SourceOrTarget = 't' AND MatchPath Is Null) AS TargetJSON --Target scalar literals ON SourceJSON.PairPath = TargetJSON.PairPath; --Matched items we have all the detail we need on source records INSERT INTO @returntable (SideIndicator, ParentPath, PairPath, MatchPath, MatchMethod, PairKey, SourceValue, TargetValue) SELECT CASE WHEN PairPath=MatchPath THEN '==' ELSE '><' END AS SideIndicator, ParentPath, PairPath, MatchPath, MatchMethod, PairKey, PairValue, PairValue FROM @map WHERE SourceOrTarget='s' AND NOT MatchPath Is Null; RETURN; END
-- http://www.phpmyadmin.net -- -- Host: localhost SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- create database CREATE DATABASE IF NOT EXISTS `task_list` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `task_list`; -- create table structure CREATE TABLE IF NOT EXISTS `tasks` ( `id` int(11) NOT NULL AUTO_INCREMENT, `task` varchar(255) NOT NULL, `dueDate` date NOT NULL, `urgency` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=48 ;
/*==============================================================*/ /* DBMS name: Sybase SQL Anywhere 12 */ /* Created on: 30/05/2017 11:52:18 PM */ /*==============================================================*/ /*==============================================================*/ /* Table: ADMIN */ /*==============================================================*/ create table ADMIN ( ID_ADMIN integer not null AUTO_INCREMENT, FULLNAME varchar(128) null, USERNAME varchar(128) null, PASSWORD long varchar null, LAST_LOGIN varchar(40) null, ROLE varchar(8) null, PHOTO long varchar null, constraint PK_ADMIN primary key (ID_ADMIN) ); /*==============================================================*/ /* Index: ADMIN_PK */ /*==============================================================*/ create unique index ADMIN_PK on ADMIN ( ID_ADMIN ASC ); /*==============================================================*/ /* Table: ANGGOTA */ /*==============================================================*/ create table ANGGOTA ( ID_ANGGOTA integer not null AUTO_INCREMENT, ID_ADMIN integer null, FULL_NAME varchar(128) null, TMP_LAHIR varchar(90) null, TGL_LAHIR date null, ADDRESS long varchar null, GENDER char(1) null, TELP varchar(20) null, FOTO long varchar null, constraint PK_ANGGOTA primary key (ID_ANGGOTA) ); /*==============================================================*/ /* Index: ANGGOTA_PK */ /*==============================================================*/ create unique index ANGGOTA_PK on ANGGOTA ( ID_ANGGOTA ASC ); /*==============================================================*/ /* Index: MAKE_FK */ /*==============================================================*/ create index MAKE_FK on ANGGOTA ( ID_ADMIN ASC ); /*==============================================================*/ /* Table: BUKU */ /*==============================================================*/ create table BUKU ( ID_BUKU integer not null AUTO_INCREMENT, ID_ADMIN integer null, TITLE varchar(150) null, AUTHOR varchar(128) null, PUBLISHER varchar(128) null, YEAR char(4) null, QTY integer null, DIPINJAM integer null, constraint PK_BUKU primary key (ID_BUKU) ); /*==============================================================*/ /* Index: BUKU_PK */ /*==============================================================*/ create unique index BUKU_PK on BUKU ( ID_BUKU ASC ); /*==============================================================*/ /* Index: CREATE_FK */ /*==============================================================*/ create index CREATE_FK on BUKU ( ID_ADMIN ASC ); /*==============================================================*/ /* Table: DETAIL_PINJAM */ /*==============================================================*/ create table DETAIL_PINJAM ( ID_DIPINJAM integer not null AUTO_INCREMENT, ID_PINJAM integer null, ID_BUKU integer null, TGL_KEMBALI date null, DENDA integer null, STATUS varchar(20) null, constraint PK_DETAIL_PINJAM primary key (ID_DIPINJAM) ); /*==============================================================*/ /* Index: DETAIL_PINJAM_PK */ /*==============================================================*/ create unique index DETAIL_PINJAM_PK on DETAIL_PINJAM ( ID_DIPINJAM ASC ); /*==============================================================*/ /* Index: MEMILIKI_FK */ /*==============================================================*/ create index MEMILIKI_FK on DETAIL_PINJAM ( ID_PINJAM ASC ); /*==============================================================*/ /* Index: MENGAMBIL_FK */ /*==============================================================*/ create index MENGAMBIL_FK on DETAIL_PINJAM ( ID_BUKU ASC ); /*==============================================================*/ /* Table: PEMINJAMAN */ /*==============================================================*/ create table PEMINJAMAN ( ID_PINJAM integer not null AUTO_INCREMENT, ID_ANGGOTA integer null, ID_ADMIN integer null, TGL_PINJAM date null, constraint PK_PEMINJAMAN primary key (ID_PINJAM) ); /*==============================================================*/ /* Index: PEMINJAMAN_PK */ /*==============================================================*/ create unique index PEMINJAMAN_PK on PEMINJAMAN ( ID_PINJAM ASC ); /*==============================================================*/ /* Index: MELAKUKAN_FK */ /*==============================================================*/ create index MELAKUKAN_FK on PEMINJAMAN ( ID_ANGGOTA ASC ); /*==============================================================*/ /* Index: MELAYANI_FK */ /*==============================================================*/ create index MELAYANI_FK on PEMINJAMAN ( ID_ADMIN ASC ); /*==============================================================*/ /* Table: PERPUS */ /*==============================================================*/ create table PERPUS ( ID_PERPUS integer not null AUTO_INCREMENT, NAMA_P varchar(128) null, ALAMAT_P long varchar null, ABOUT long varchar null, constraint PK_PERPUS primary key (ID_PERPUS) ); /*==============================================================*/ /* Index: PERPUS_PK */ /*==============================================================*/ create unique index PERPUS_PK on PERPUS ( ID_PERPUS ASC ); alter table ANGGOTA add constraint FK_ANGGOTA_MAKE_ADMIN foreign key (ID_ADMIN) references ADMIN (ID_ADMIN) on update restrict on delete restrict; alter table BUKU add constraint FK_BUKU_CREATE_ADMIN foreign key (ID_ADMIN) references ADMIN (ID_ADMIN) on update restrict on delete restrict; alter table DETAIL_PINJAM add constraint FK_DETAIL_P_MEMILIKI_PEMINJAM foreign key (ID_PINJAM) references PEMINJAMAN (ID_PINJAM) on update restrict on delete restrict; alter table DETAIL_PINJAM add constraint FK_DETAIL_P_MENGAMBIL_BUKU foreign key (ID_BUKU) references BUKU (ID_BUKU) on update restrict on delete restrict; alter table PEMINJAMAN add constraint FK_PEMINJAM_MELAKUKAN_ANGGOTA foreign key (ID_ANGGOTA) references ANGGOTA (ID_ANGGOTA) on update restrict on delete restrict; alter table PEMINJAMAN add constraint FK_PEMINJAM_MELAYANI_ADMIN foreign key (ID_ADMIN) references ADMIN (ID_ADMIN) on update restrict on delete restrict;
-- Importing data from csv files locally. FUll path for reference. COPY employees FROM 'C:\Users\<NAME>\Desktop\homework\sql-challenge\data\employees.csv' DELIMITER ',' CSV HEADER; COPY departments FROM 'C:\Users\<NAME>\Desktop\homework\sql-challenge\data\departments.csv' DELIMITER ',' CSV HEADER; COPY dept_emp FROM 'C:\Users\<NAME>\Desktop\homework\sql-challenge\data\dept_emp.csv' DELIMITER ',' CSV HEADER; COPY dept_manager FROM 'C:\Users\<NAME>\Desktop\homework\sql-challenge\data\dept_manager.csv' DELIMITER ',' CSV HEADER; COPY salaries FROM 'C:\Users\<NAME>\Desktop\homework\sql-challenge\data\salaries.csv' DELIMITER ',' CSV HEADER; COPY titles FROM 'C:\Users\<NAME>\Desktop\homework\sql-challenge\data\titles.csv' DELIMITER ',' CSV HEADER;
create virtual table map using rtree_i32(id,minX,maxX,minY,maxY); insert into map values(1,0,1,0,1); insert into map values(2,3,5,3,5); select id from map where 2<minX and maxX<4 and 2<minY and maxY<4;
<filename>postgresql/data_validation/demo_data/demo_hr_02_create_tables.sql -- demo_hr.jobs definition CREATE TABLE demo_hr.jobs (job_id VARCHAR(10), job_title VARCHAR(35) CONSTRAINT job_title_nn NOT NULL, min_salary INTEGER, max_salary INTEGER, CONSTRAINT job_id_pk PRIMARY KEY (job_id) ); -- demo_hr.jobs_snapshot definition CREATE TABLE demo_hr.jobs_snapshot (job_id VARCHAR(10), job_title VARCHAR(35) NOT NULL, min_salary INTEGER, max_salary INTEGER ); -- demo_hr.regions definition CREATE TABLE demo_hr.regions (region_id INTEGER CONSTRAINT region_id_nn NOT NULL, region_name VARCHAR(25), CONSTRAINT reg_id_pk PRIMARY KEY (region_id) ); -- demo_hr.countries definition CREATE TABLE demo_hr.countries (country_id CHAR(2) CONSTRAINT country_id_nn NOT NULL, country_name VARCHAR(40), region_id INTEGER, date_last_updated DATE DEFAULT CURRENT_DATE, CONSTRAINT country_c_id_pk PRIMARY KEY (country_id), CONSTRAINT countr_reg_fk FOREIGN KEY (region_id) REFERENCES demo_hr.regions (region_id) ); -- demo_hr.locations definition CREATE TABLE demo_hr.locations (location_id INTEGER, street_address VARCHAR(40), postal_code VARCHAR(12), city VARCHAR(30) CONSTRAINT loc_city_nn NOT NULL, state_province VARCHAR(25), country_id CHAR(2), CONSTRAINT loc_id_pk PRIMARY KEY (location_id), CONSTRAINT loc_c_id_fk FOREIGN KEY (country_id) REFERENCES demo_hr.countries (country_id) ); CREATE INDEX loc_city_ix ON demo_hr.locations (city); CREATE INDEX loc_state_province_ix ON demo_hr.locations (state_province); CREATE INDEX loc_country_ix ON demo_hr.locations (country_id); -- demo_hr.departments dEFinition CREATE TABLE demo_hr.departments (department_id INTEGER, department_name VARCHAR(30) CONSTRAINT dept_name_nn NOT NULL, manager_id INTEGER, location_id INTEGER, url VARCHAR(255), CONSTRAINT dept_id_pk PRIMARY KEY (department_id), CONSTRAINT dept_loc_fk FOREIGN KEY (location_id) REFERENCES demo_hr.locations (location_id) ) ; CREATE INDEX dept_location_ix ON demo_hr.departments (location_id); -- demo_hr.job_history definition CREATE TABLE demo_hr.job_history (employee_id INTEGER CONSTRAINT jhist_employee_nn NOT NULL, start_date DATE CONSTRAINT jhist_start_date_nn NOT NULL, end_date DATE CONSTRAINT jhist_end_date_nn NOT NULL, job_id VARCHAR(10) CONSTRAINT jhist_job_nn NOT NULL, department_id INTEGER, CONSTRAINT jhist_date_interval CHECK (end_date > start_date), CONSTRAINT jhist_emp_id_st_date_pk PRIMARY KEY (employee_id, start_date), CONSTRAINT jhist_job_fk FOREIGN KEY (job_id) REFERENCES demo_hr.jobs (job_id), CONSTRAINT jhist_dept_fk FOREIGN KEY (department_id) REFERENCES demo_hr.departments (department_id) ) ; CREATE INDEX jhist_job_ix ON demo_hr.job_history (job_id); CREATE INDEX jhist_employee_ix ON demo_hr.job_history (employee_id); CREATE INDEX jhist_department_ix ON demo_hr.job_history (department_id); -- demo_hr.employees definition CREATE TABLE demo_hr.employees (employee_id INTEGER, first_name VARCHAR(20), last_name VARCHAR(25) CONSTRAINT emp_last_name_nn NOT NULL, email VARCHAR(25) CONSTRAINT emp_email_nn NOT NULL, phone_number VARCHAR(20), hire_date DATE CONSTRAINT emp_hire_date_nn NOT NULL, job_id VARCHAR(10) CONSTRAINT emp_job_nn NOT NULL, salary INTEGER, commission_pct NUMERIC(2,2), manager_id INTEGER, department_id INTEGER, some_date_fmt1 VARCHAR(50), some_date_fmt2 VARCHAR(50), some_date_fmt3 VARCHAR(50), some_date_fmt4 VARCHAR(50), fake_ssn VARCHAR(11), zip5 VARCHAR(5), zip5or9 VARCHAR(10), zip9 VARCHAR(10), email_address VARCHAR(100), CONSTRAINT emp_salary_min CHECK (salary > 0), CONSTRAINT emp_email_uk UNIQUE (email), CONSTRAINT emp_emp_id_pk PRIMARY KEY (employee_id), CONSTRAINT emp_dept_fk FOREIGN KEY (department_id) REFERENCES demo_hr.departments (department_id), CONSTRAINT emp_job_fk FOREIGN KEY (job_id) REFERENCES demo_hr.jobs (job_id), CONSTRAINT emp_manager_fk FOREIGN KEY (manager_id) REFERENCES demo_hr.employees (employee_id) ) ; CREATE INDEX emp_department_ix ON demo_hr.employees (department_id); CREATE INDEX emp_job_ix ON demo_hr.employees (job_id); CREATE INDEX emp_manager_ix ON demo_hr.employees (manager_id); CREATE INDEX emp_name_ix ON demo_hr.employees (last_name, first_name);
grant connect to stm; grant dba to stm; create Domain WEIGHT as decimal(12,3); create Domain PRICE4 as decimal(12,4); util.setUserOption 'asamium.default.domain', 'stm'; -- Types meta.defineType 'name:STRING'; meta.defineType 'code:MEDIUM'; meta.defineType 'length:INT'; meta.defineType 'src:STRING'; meta.defineType 'date:DATE'; meta.defineType 'count:INT'; meta.defineType 'comment:STRING,,nullable'; meta.defineType 'processing:CODE'; meta.defineType 'isDeleted:BOOL'; meta.defineType 'isValid:BOOL'; -- Entities meta.defineEntity 'User', 'name;isDeleted' ; meta.createTable 'User', @forceDrop = 0 ;
INSERT INTO `article` VALUES (1, 'SUPHX', 1, 'Science', '2000-1-12', 'hash');
-- Name: RollbackPosda -- Schema: posda_files -- Columns: [] -- Args: [] -- Tags: ['NotInteractive', 'Backlog', 'Transaction'] -- Description: Abort a transaction in Posda files rollback
CREATE OR REPLACE FUNCTION drape_native(line geometry) RETURNS geometry AS $$ DECLARE line3d geometry; BEGIN RAISE NOTICE 'draping'; WITH points2d AS -- Extract its points (SELECT (ST_DumpPoints(line)).geom AS geom), cells AS -- Get DEM elevation for each (SELECT p.geom AS geom, ST_Value(ned.rast, 1, p.geom) AS val FROM ned, points2d p WHERE ST_Intersects(ned.rast, p.geom)), -- Instantiate 3D points points3d AS (SELECT ST_SetSRID(ST_MakePoint(ST_X(line), ST_Y(line), val), ST_SRID(line)) AS geom FROM cells) SELECT ST_MakeLine(geom) INTO line3d FROM points3d; RETURN line3d; END; $$ LANGUAGE plpgsql;
\set ON_ERROR_STOP 1 BEGIN; SET search_path = 'event_art_archive'; CREATE OR REPLACE VIEW index_listing AS SELECT event_art.*, (edit.close_time IS NOT NULL) AS approved, coalesce(event_art.id = (SELECT id FROM event_art_archive.event_art_type JOIN event_art_archive.event_art ea_front USING (id) WHERE ea_front.event = event_art.event AND type_id = 1 AND mime_type != 'application/pdf' ORDER BY ea_front.ordering LIMIT 1), FALSE) AS is_front, array(SELECT art_type.name FROM event_art_archive.event_art_type JOIN event_art_archive.art_type ON event_art_type.type_id = art_type.id WHERE event_art_type.id = event_art.id) AS types FROM event_art_archive.event_art LEFT JOIN musicbrainz.edit ON edit.id = event_art.edit; COMMIT;
CREATE TABLE ticket_types ( id uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, event_id uuid NOT NULL REFERENCES events(id) ON DELETE CASCADE, name TEXT NOT NULL, description TEXT NULL, status TEXT NOT NULL, start_date TIMESTAMP NOT NULL CHECK (start_date < end_date), end_date TIMESTAMP NOT NULL, increment INT NOT NULL DEFAULT 1, limit_per_person INT NOT NULL DEFAULT 0, created_at TIMESTAMP NOT NULL DEFAULT now(), updated_at TIMESTAMP NOT NULL DEFAULT now() ); -- Indices CREATE INDEX index_ticket_types_event_id ON ticket_types (event_id); CREATE UNIQUE INDEX index_ticket_types_event_id_name on ticket_types (event_id, name);
<reponame>acidburn0zzz/whois-1 -- MySQL dump 10.13 Distrib 5.1.61, for redhat-linux-gnu (x86_64) -- -- Host: localhost Database: WHOIS_UPDATE_RIPE -- ------------------------------------------------------ -- Server version 5.1.61-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `abuse_c` -- DROP TABLE IF EXISTS `abuse_c`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `abuse_c` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `pe_ro_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`pe_ro_id`,`object_id`), KEY `object_type` (`object_type`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `abuse_mailbox` -- DROP TABLE IF EXISTS `abuse_mailbox`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `abuse_mailbox` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `abuse_mailbox` varchar(80) NOT NULL DEFAULT '', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`abuse_mailbox`,`object_id`), KEY `abuse_mailbox_object_id_index` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `admin_c` -- DROP TABLE IF EXISTS `admin_c`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `admin_c` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `pe_ro_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`pe_ro_id`,`object_id`), KEY `object_type` (`object_type`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `as_block` -- DROP TABLE IF EXISTS `as_block`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `as_block` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `begin_as` int(10) unsigned NOT NULL DEFAULT '0', `end_as` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`object_id`), KEY `begin_as` (`begin_as`), KEY `end_as` (`end_as`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `as_set` -- DROP TABLE IF EXISTS `as_set`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `as_set` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `as_set` varchar(80) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`), KEY `as_set` (`as_set`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `aut_num` -- DROP TABLE IF EXISTS `aut_num`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `aut_num` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `aut_num` char(13) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`), KEY `aut_num` (`aut_num`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `auth` -- DROP TABLE IF EXISTS `auth`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `auth` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `auth` varchar(90) NOT NULL DEFAULT '', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`auth`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `author` -- DROP TABLE IF EXISTS `author`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `author` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `pe_ro_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`pe_ro_id`,`object_id`), KEY `object_id` (`object_id`), KEY `object_type` (`object_type`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `domain` -- DROP TABLE IF EXISTS `domain`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `domain` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `domain` varchar(254) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`), KEY `domain` (`domain`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ds_rdata` -- DROP TABLE IF EXISTS `ds_rdata`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ds_rdata` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `ds_rdata` varchar(128) NOT NULL DEFAULT '', PRIMARY KEY (`ds_rdata`,`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `e_mail` -- DROP TABLE IF EXISTS `e_mail`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `e_mail` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `e_mail` varchar(80) NOT NULL DEFAULT '', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`e_mail`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `filter_set` -- DROP TABLE IF EXISTS `filter_set`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `filter_set` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `filter_set` varchar(80) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`), KEY `filter_set` (`filter_set`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `fingerpr` -- DROP TABLE IF EXISTS `fingerpr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `fingerpr` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `fingerpr` varchar(80) NOT NULL DEFAULT '', PRIMARY KEY (`fingerpr`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `form` -- DROP TABLE IF EXISTS `form`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `form` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `form_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`form_id`,`object_id`), KEY `object_id` (`object_id`), KEY `object_type` (`object_type`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `history` -- DROP TABLE IF EXISTS `history`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `history` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `sequence_id` int(10) unsigned NOT NULL DEFAULT '0', `timestamp` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', `object` longblob NOT NULL, `pkey` varchar(254) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`,`sequence_id`), KEY `history_pkey` (`pkey`), KEY `history_timestamp` (`timestamp`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ifaddr` -- DROP TABLE IF EXISTS `ifaddr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ifaddr` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `ifaddr` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`ifaddr`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inaddr_arpa` -- DROP TABLE IF EXISTS `inaddr_arpa`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inaddr_arpa` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `begin_in` int(10) unsigned NOT NULL DEFAULT '0', `end_in` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inet6num` -- DROP TABLE IF EXISTS `inet6num`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inet6num` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `i6_msb` varchar(20) NOT NULL DEFAULT '', `i6_lsb` varchar(20) NOT NULL DEFAULT '', `prefix_length` tinyint(3) unsigned NOT NULL DEFAULT '0', `netname` varchar(80) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`), KEY `netname` (`netname`), KEY `i6_msb` (`i6_msb`), KEY `i6_lsb` (`i6_lsb`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inet_rtr` -- DROP TABLE IF EXISTS `inet_rtr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inet_rtr` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `inet_rtr` varchar(254) NOT NULL DEFAULT '', `local_as` varchar(13) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`), KEY `inet_rtr` (`inet_rtr`), KEY `local_as` (`local_as`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inetnum` -- DROP TABLE IF EXISTS `inetnum`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inetnum` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `begin_in` int(10) unsigned NOT NULL DEFAULT '0', `end_in` int(10) unsigned NOT NULL DEFAULT '0', `netname` varchar(80) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`), KEY `netname` (`netname`), KEY `begin_in` (`begin_in`), KEY `end_in` (`end_in`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `interface` -- DROP TABLE IF EXISTS `interface`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `interface` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `interface_v6_msp` varchar(20) NOT NULL DEFAULT '', `interface_v6_lsp` varchar(20) NOT NULL DEFAULT '', `interface_v4` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`interface_v6_msp`,`interface_v6_lsp`,`interface_v4`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `irt` -- DROP TABLE IF EXISTS `irt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `irt` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `irt` varchar(80) NOT NULL DEFAULT '0', PRIMARY KEY (`object_id`), KEY `irt` (`irt`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `irt_nfy` -- DROP TABLE IF EXISTS `irt_nfy`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `irt_nfy` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `irt_nfy` varchar(80) NOT NULL DEFAULT '', PRIMARY KEY (`irt_nfy`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `key_cert` -- DROP TABLE IF EXISTS `key_cert`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `key_cert` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `key_cert` varchar(32) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`), KEY `key_cert` (`key_cert`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `last` -- DROP TABLE IF EXISTS `last`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `last` ( `object_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `sequence_id` int(10) unsigned NOT NULL DEFAULT '1', `timestamp` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', `object` longblob NOT NULL, `pkey` varchar(254) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`,`sequence_id`), KEY `last_pkey` (`pkey`), KEY `object_type_index` (`object_type`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mbrs_by_ref` -- DROP TABLE IF EXISTS `mbrs_by_ref`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mbrs_by_ref` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `mnt_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`mnt_id`,`object_id`), KEY `object_id` (`object_id`), KEY `object_type` (`object_type`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `member_of` -- DROP TABLE IF EXISTS `member_of`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `member_of` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `set_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`set_id`,`object_id`), KEY `object_id` (`object_id`), KEY `object_type` (`object_type`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mnt_by` -- DROP TABLE IF EXISTS `mnt_by`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mnt_by` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `mnt_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`mnt_id`,`object_id`), KEY `object_id` (`object_id`), KEY `object_type` (`object_type`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mnt_domains` -- DROP TABLE IF EXISTS `mnt_domains`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mnt_domains` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `mnt_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`mnt_id`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mnt_irt` -- DROP TABLE IF EXISTS `mnt_irt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mnt_irt` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `irt_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`irt_id`,`object_id`), KEY `object_id` (`object_id`), KEY `object_type` (`object_type`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mnt_lower` -- DROP TABLE IF EXISTS `mnt_lower`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mnt_lower` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `mnt_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`mnt_id`,`object_id`), KEY `object_id` (`object_id`), KEY `object_type` (`object_type`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mnt_nfy` -- DROP TABLE IF EXISTS `mnt_nfy`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mnt_nfy` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `mnt_nfy` varchar(80) NOT NULL DEFAULT '', PRIMARY KEY (`mnt_nfy`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mnt_ref` -- DROP TABLE IF EXISTS `mnt_ref`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mnt_ref` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `mnt_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`mnt_id`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mnt_routes` -- DROP TABLE IF EXISTS `mnt_routes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mnt_routes` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `mnt_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`mnt_id`,`object_id`), KEY `object_id` (`object_id`), KEY `object_type` (`object_type`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mntner` -- DROP TABLE IF EXISTS `mntner`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mntner` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `mntner` varchar(80) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`), KEY `mntner` (`mntner`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `names` -- DROP TABLE IF EXISTS `names`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `names` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `name` varchar(64) NOT NULL DEFAULT '', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`name`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `nic_hdl` -- DROP TABLE IF EXISTS `nic_hdl`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `nic_hdl` ( `range_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `range_start` int(10) unsigned NOT NULL DEFAULT '0', `range_end` int(10) unsigned NOT NULL DEFAULT '0', `space` char(4) NOT NULL DEFAULT '', `source` char(10) NOT NULL DEFAULT '', PRIMARY KEY (`range_id`,`range_start`,`range_end`), KEY `range_start` (`range_start`), KEY `range_end` (`range_end`), KEY `space` (`space`,`source`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `notify` -- DROP TABLE IF EXISTS `notify`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `notify` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `notify` varchar(80) NOT NULL DEFAULT '', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`notify`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `nserver` -- DROP TABLE IF EXISTS `nserver`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `nserver` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `host` varchar(254) NOT NULL DEFAULT '', PRIMARY KEY (`host`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `org` -- DROP TABLE IF EXISTS `org`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `org` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `org_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`org_id`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `org_name` -- DROP TABLE IF EXISTS `org_name`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `org_name` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `name` varchar(64) NOT NULL DEFAULT '', PRIMARY KEY (`name`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `organisation` -- DROP TABLE IF EXISTS `organisation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `organisation` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `organisation` varchar(80) NOT NULL DEFAULT '', PRIMARY KEY (`organisation`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `organisation_id` -- DROP TABLE IF EXISTS `organisation_id`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `organisation_id` ( `range_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `range_end` int(10) unsigned NOT NULL DEFAULT '0', `space` char(4) NOT NULL DEFAULT '', `source` char(10) NOT NULL DEFAULT '', PRIMARY KEY (`range_id`), UNIQUE KEY `space` (`space`,`source`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `peering_set` -- DROP TABLE IF EXISTS `peering_set`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `peering_set` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `peering_set` varchar(80) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`), KEY `peering_set` (`peering_set`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `person_role` -- DROP TABLE IF EXISTS `person_role`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `person_role` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `nic_hdl` varchar(30) NOT NULL DEFAULT '', `object_type` tinyint(4) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`object_id`), KEY `nic_hdl` (`nic_hdl`), KEY `object_type` (`object_type`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ping_hdl` -- DROP TABLE IF EXISTS `ping_hdl`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ping_hdl` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `pe_ro_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`pe_ro_id`,`object_id`), KEY `object_type` (`object_type`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `poem` -- DROP TABLE IF EXISTS `poem`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `poem` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `poem` varchar(80) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`), KEY `poem` (`poem`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `poetic_form` -- DROP TABLE IF EXISTS `poetic_form`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `poetic_form` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `poetic_form` varchar(80) NOT NULL DEFAULT '', PRIMARY KEY (`poetic_form`), KEY `poetic_form` (`poetic_form`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ref_nfy` -- DROP TABLE IF EXISTS `ref_nfy`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ref_nfy` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `ref_nfy` varchar(80) NOT NULL DEFAULT '', PRIMARY KEY (`ref_nfy`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `route` -- DROP TABLE IF EXISTS `route`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `route` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `prefix` int(10) unsigned NOT NULL DEFAULT '0', `prefix_length` tinyint(3) unsigned NOT NULL DEFAULT '0', `origin` varchar(13) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`), KEY `origin` (`origin`,`prefix`,`prefix_length`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `route6` -- DROP TABLE IF EXISTS `route6`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `route6` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `r6_msb` varchar(20) NOT NULL DEFAULT '', `r6_lsb` varchar(20) NOT NULL DEFAULT '', `prefix_length` tinyint(3) unsigned NOT NULL DEFAULT '0', `origin` varchar(13) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`), KEY `origin` (`origin`,`r6_msb`,`r6_lsb`,`prefix_length`), KEY `r6_msb` (`r6_msb`), KEY `r6_lsb` (`r6_lsb`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `route_set` -- DROP TABLE IF EXISTS `route_set`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `route_set` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `route_set` varchar(80) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`), KEY `route_set` (`route_set`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `rtr_set` -- DROP TABLE IF EXISTS `rtr_set`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `rtr_set` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `rtr_set` varchar(80) NOT NULL DEFAULT '', PRIMARY KEY (`object_id`), KEY `rtr_set` (`rtr_set`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `serials` -- DROP TABLE IF EXISTS `serials`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `serials` ( `serial_id` int(11) NOT NULL AUTO_INCREMENT, `object_id` int(10) unsigned NOT NULL DEFAULT '0', `sequence_id` int(10) unsigned NOT NULL DEFAULT '0', `atlast` tinyint(4) unsigned NOT NULL DEFAULT '0', `operation` tinyint(4) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`serial_id`), KEY `object` (`object_id`,`sequence_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `sponsoring_org` -- DROP TABLE IF EXISTS `sponsoring_org`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `sponsoring_org` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `org_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`org_id`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tags` -- DROP TABLE IF EXISTS `tags`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tags` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `tag_id` varchar(50) NOT NULL DEFAULT '', `data` varchar(255) DEFAULT NULL, PRIMARY KEY (`object_id`,`tag_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tech_c` -- DROP TABLE IF EXISTS `tech_c`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tech_c` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `pe_ro_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`pe_ro_id`,`object_id`), KEY `object_type` (`object_type`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `upd_to` -- DROP TABLE IF EXISTS `upd_to`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `upd_to` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `upd_to` varchar(80) NOT NULL DEFAULT '', PRIMARY KEY (`upd_to`,`object_id`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `update_lock` -- DROP TABLE IF EXISTS `update_lock`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `update_lock` ( `global_lock` int(11) NOT NULL, PRIMARY KEY (`global_lock`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `version` -- DROP TABLE IF EXISTS `version`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `version` ( `version` varchar(80) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `x509` -- DROP TABLE IF EXISTS `x509`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `x509` ( `keycert_id` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`keycert_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `zone_c` -- DROP TABLE IF EXISTS `zone_c`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `zone_c` ( `object_id` int(10) unsigned NOT NULL DEFAULT '0', `pe_ro_id` int(10) unsigned NOT NULL DEFAULT '0', `object_type` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`pe_ro_id`,`object_id`), KEY `object_type` (`object_type`), KEY `object_id` (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2013-09-27 12:13:22
<filename>internal/relui/migrations/20211005180646_update_workflows_add_finished.up.sql -- Copyright 2021 The Go Authors. All rights reserved. -- Use of this source code is governed by a BSD-style -- license that can be found in the LICENSE file. BEGIN; ALTER TABLE workflows ADD COLUMN finished bool NOT NULL DEFAULT false; CREATE INDEX workflows_finished_ix ON workflows (finished) WHERE finished = false; ALTER TABLE workflows ADD COLUMN output jsonb NOT NULL DEFAULT jsonb_build_object(); ALTER TABLE workflows ADD COLUMN error text NOT NULL DEFAULT ''; UPDATE workflows SET finished = true WHERE workflows.id NOT IN ( SELECT DISTINCT tasks.workflow_id FROM tasks WHERE finished = false ); COMMIT;
-- @testpoint: opengauss关键字without(非保留),作为游标名,部分测试点合理报错 --前置条件 drop table if exists explain_test cascade; create table explain_test(cid int,fid int); --关键字不带引号-成功 start transaction; cursor without for select * from explain_test order by 1; close without; end; --关键字带双引号-成功 start transaction; cursor "without" for select * from explain_test order by 1; close "without"; end; --关键字带单引号-合理报错 start transaction; cursor 'without' for select * from explain_test order by 1; close 'without'; end; --关键字带反引号-合理报错 start transaction; cursor `without` for select * from explain_test order by 1; close `without`; end; drop table if exists explain_test cascade;
<filename>bai_mutabaah.sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 25 Sep 2018 pada 02.45 -- Versi Server: 10.1.29-MariaDB -- PHP Version: 7.1.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: `bai_mutabaah` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `kelompok` -- CREATE TABLE `kelompok` ( `idkelompok` int(11) NOT NULL, `kode_kelompok` varchar(45) DEFAULT NULL, `hari_kelompok` varchar(45) DEFAULT NULL, `jam_kelompok` varchar(45) DEFAULT NULL, `status_kelompok` enum('enabled','disabled') DEFAULT 'enabled' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `kelompok` -- INSERT INTO `kelompok` (`idkelompok`, `kode_kelompok`, `hari_kelompok`, `jam_kelompok`, `status_kelompok`) VALUES (1, 'test', 'senin', '14:00', 'enabled'), (2, 'Aa', 'selasa', '07:00', 'enabled'); -- -------------------------------------------------------- -- -- Struktur dari tabel `mentoring` -- CREATE TABLE `mentoring` ( `idmentoring` int(11) NOT NULL, `role_mentoring` enum('murobi','mutarobi') DEFAULT NULL, `Kelompok_idkelompok` int(11) NOT NULL, `User_iduser` int(11) NOT NULL, `status_mentoring` enum('enabled','disabled') DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `mentoring` -- INSERT INTO `mentoring` (`idmentoring`, `role_mentoring`, `Kelompok_idkelompok`, `User_iduser`, `status_mentoring`) VALUES (1, 'mutarobi', 1, 1, 'enabled'), (2, 'mutarobi', 1, 2, 'enabled'); -- -------------------------------------------------------- -- -- Struktur dari tabel `mutabaah` -- CREATE TABLE `mutabaah` ( `idmutabaah` int(11) NOT NULL, `terlambat` int(45) DEFAULT '0', `tilawah` int(45) DEFAULT '0', `hafalan` int(45) DEFAULT '0', `puasa` int(45) DEFAULT '0', `qiamulail` int(45) DEFAULT '0', `baca_buku` int(45) DEFAULT '0', `memberi_hadiah` int(45) DEFAULT '0', `sodaqoh` int(45) DEFAULT '0', `update_berita_islam` int(45) DEFAULT '0', `update_berita_nasional` int(45) DEFAULT '0', `update_berita_internasional` int(45) DEFAULT '0', `olahraga` int(45) DEFAULT '0', `pertemuan_idpertemuan` int(11) NOT NULL, `user_iduser` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `mutabaah` -- INSERT INTO `mutabaah` (`idmutabaah`, `terlambat`, `tilawah`, `hafalan`, `puasa`, `qiamulail`, `baca_buku`, `memberi_hadiah`, `sodaqoh`, `update_berita_islam`, `update_berita_nasional`, `update_berita_internasional`, `olahraga`, `pertemuan_idpertemuan`, `user_iduser`) VALUES (1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 2, 2), (2, 0, 0, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1); -- -------------------------------------------------------- -- -- Struktur dari tabel `pertemuan` -- CREATE TABLE `pertemuan` ( `idpertemuan` int(11) NOT NULL, `waktu_pertemuan` date DEFAULT NULL, `mentoring_idmentoring` int(11) NOT NULL, `materi_pertemuan` varchar(45) DEFAULT NULL, `tilawah_pertemuan` varchar(45) DEFAULT NULL, `mc_pertemuan` varchar(45) DEFAULT NULL, `kultum_pertemuan` varchar(45) DEFAULT NULL, `infaq_pertemuan` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `pertemuan` -- INSERT INTO `pertemuan` (`idpertemuan`, `waktu_pertemuan`, `mentoring_idmentoring`, `materi_pertemuan`, `tilawah_pertemuan`, `mc_pertemuan`, `kultum_pertemuan`, `infaq_pertemuan`) VALUES (2, '2018-05-20', 1, 'o', 'o', NULL, 'o', 1); -- -------------------------------------------------------- -- -- Struktur dari tabel `user` -- CREATE TABLE `user` ( `iduser` int(11) NOT NULL, `nama_user` varchar(255) NOT NULL, `nim_user` varchar(255) NOT NULL DEFAULT 'XXX.20XX.XXXXX', `email_user` varchar(45) DEFAULT NULL, `password_user` varchar(45) DEFAULT NULL, `role_user` enum('admin','user') NOT NULL DEFAULT 'user', `status_user` enum('enabled','disabled') DEFAULT 'enabled' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `user` -- INSERT INTO `user` (`iduser`, `nama_user`, `nim_user`, `email_user`, `password_user`, `role_user`, `status_user`) VALUES (1, 'admin', 'XXX.20XX.XXXXX', 'admin', '<PASSWORD>', 'admin', 'enabled'), (2, 'Kharis', 'XXX.20XX.XXXXX', '<EMAIL>', '<PASSWORD>', 'user', 'enabled'), (3, 'Bayu', 'XXX.20XX.XXXXX', 'bay_u', '<PASSWORD>', 'user', 'enabled'); -- -- Indexes for dumped tables -- -- -- Indexes for table `kelompok` -- ALTER TABLE `kelompok` ADD PRIMARY KEY (`idkelompok`); -- -- Indexes for table `mentoring` -- ALTER TABLE `mentoring` ADD PRIMARY KEY (`idmentoring`,`Kelompok_idkelompok`,`User_iduser`), ADD KEY `fk_mentoring_Kelompok_idx` (`Kelompok_idkelompok`), ADD KEY `fk_mentoring_User1_idx` (`User_iduser`); -- -- Indexes for table `mutabaah` -- ALTER TABLE `mutabaah` ADD PRIMARY KEY (`idmutabaah`,`pertemuan_idpertemuan`), ADD KEY `fk_mutabaah_pertemuan1_idx` (`pertemuan_idpertemuan`); -- -- Indexes for table `pertemuan` -- ALTER TABLE `pertemuan` ADD PRIMARY KEY (`idpertemuan`,`mentoring_idmentoring`), ADD KEY `fk_Absensi_mentoring1_idx` (`mentoring_idmentoring`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`iduser`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `kelompok` -- ALTER TABLE `kelompok` MODIFY `idkelompok` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `mentoring` -- ALTER TABLE `mentoring` MODIFY `idmentoring` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `mutabaah` -- ALTER TABLE `mutabaah` MODIFY `idmutabaah` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `pertemuan` -- ALTER TABLE `pertemuan` MODIFY `idpertemuan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `iduser` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables) -- -- -- Ketidakleluasaan untuk tabel `mentoring` -- ALTER TABLE `mentoring` ADD CONSTRAINT `fk_mentoring_Kelompok` FOREIGN KEY (`Kelompok_idkelompok`) REFERENCES `kelompok` (`idkelompok`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_mentoring_User1` FOREIGN KEY (`User_iduser`) REFERENCES `user` (`iduser`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Ketidakleluasaan untuk tabel `mutabaah` -- ALTER TABLE `mutabaah` ADD CONSTRAINT `fk_mutabaah_pertemuan1` FOREIGN KEY (`pertemuan_idpertemuan`) REFERENCES `pertemuan` (`idpertemuan`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Ketidakleluasaan untuk tabel `pertemuan` -- ALTER TABLE `pertemuan` ADD CONSTRAINT `fk_Absensi_mentoring1` FOREIGN KEY (`mentoring_idmentoring`) REFERENCES `mentoring` (`idmentoring`) ON DELETE NO ACTION ON UPDATE NO ACTION; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 15, 2021 at 07:00 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 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: `loan_app` -- -- -------------------------------------------------------- -- -- Table structure for table `borrower_account` -- CREATE TABLE `borrower_account` ( `id` int(11) NOT NULL, `email` varchar(100) NOT NULL, `password` varchar(100) NOT NULL, `role` varchar(100) NOT NULL, `login_status` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `borrower_account` -- INSERT INTO `borrower_account` (`id`, `email`, `password`, `role`, `login_status`) VALUES (3, '<PASSWORD>', '<PASSWORD>', 'borrower', 0); -- -------------------------------------------------------- -- -- Table structure for table `borrower_tbl` -- CREATE TABLE `borrower_tbl` ( `id` int(11) NOT NULL, `ref_id` varchar(100) NOT NULL, `fname` varchar(25) NOT NULL, `mname` varchar(25) NOT NULL, `lname` varchar(25) NOT NULL, `suffix` varchar(25) NOT NULL, `dob` varchar(55) NOT NULL, `gender` varchar(25) NOT NULL, `status` varchar(25) NOT NULL, `nationality` varchar(25) NOT NULL, `contact` varchar(25) NOT NULL, `occupation` varchar(55) NOT NULL, `address` varchar(55) NOT NULL, `image` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `borrower_tbl` -- INSERT INTO `borrower_tbl` (`id`, `ref_id`, `fname`, `mname`, `lname`, `suffix`, `dob`, `gender`, `status`, `nationality`, `contact`, `occupation`, `address`, `image`) VALUES (9, '21-04-00001', 'niel', 'cruta', 'credo', '', '2021-03-10', 'male', 'single', 'filipino', '09107583827', 'tambay', 'address', '135384077.png'); -- -------------------------------------------------------- -- -- Table structure for table `deduction_tbl` -- CREATE TABLE `deduction_tbl` ( `id` int(11) NOT NULL, `borrower_id` varchar(55) NOT NULL, `loan_id` varchar(55) NOT NULL, `deduction_name` varchar(255) NOT NULL, `reference` varchar(255) NOT NULL, `amount` double NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `deduction_tbl` -- INSERT INTO `deduction_tbl` (`id`, `borrower_id`, `loan_id`, `deduction_name`, `reference`, `amount`) VALUES (59, '9', '2104-150480', 'Notarial', 'xxxxxx', 100); -- -------------------------------------------------------- -- -- Table structure for table `is_current_loan` -- CREATE TABLE `is_current_loan` ( `id` int(11) NOT NULL, `borrower_id` varchar(100) NOT NULL, `loan_id` varchar(100) NOT NULL, `is_current` varchar(55) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `is_current_loan` -- INSERT INTO `is_current_loan` (`id`, `borrower_id`, `loan_id`, `is_current`) VALUES (25, '9', '2104-150480', 'paid-up'); -- -------------------------------------------------------- -- -- Table structure for table `loans_tbl` -- CREATE TABLE `loans_tbl` ( `id` int(11) NOT NULL, `borrower_id` varchar(100) NOT NULL, `loan_id` varchar(100) NOT NULL, `loan_type` varchar(255) NOT NULL, `description` varchar(255) NOT NULL, `purpose` varchar(255) NOT NULL, `amount` double NOT NULL, `plan` varchar(255) NOT NULL, `interest_rate` double NOT NULL, `penalty_rate` double NOT NULL, `collateral` text NOT NULL, `image` varchar(255) NOT NULL, `approve_status` varchar(100) NOT NULL, `date_approved` varchar(100) NOT NULL, `date_released` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `loans_tbl` -- INSERT INTO `loans_tbl` (`id`, `borrower_id`, `loan_id`, `loan_type`, `description`, `purpose`, `amount`, `plan`, `interest_rate`, `penalty_rate`, `collateral`, `image`, `approve_status`, `date_approved`, `date_released`) VALUES (28, '9', '2104-150480', 'Agricultural Loans', 'Hog fattening', 'Allowance', 10000, '3', 3, 5, 'Land Title', '1602577679.png', 'released', '2021-04-15', '2021-04-15'); -- -------------------------------------------------------- -- -- Table structure for table `loan_deductions` -- CREATE TABLE `loan_deductions` ( `id` int(11) NOT NULL, `deductions_name` varchar(100) NOT NULL, `amount` double NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `loan_deductions` -- INSERT INTO `loan_deductions` (`id`, `deductions_name`, `amount`) VALUES (6, 'Notarial', 100), (7, 'Service Fee', 160); -- -------------------------------------------------------- -- -- Table structure for table `loan_plan` -- CREATE TABLE `loan_plan` ( `id` int(11) NOT NULL, `term` int(11) NOT NULL, `interest` double NOT NULL, `penalty_rate` double NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `loan_plan` -- INSERT INTO `loan_plan` (`id`, `term`, `interest`, `penalty_rate`) VALUES (7, 1, 1, 1), (8, 2, 2, 2), (9, 3, 3, 3), (10, 4, 4, 4), (11, 5, 5, 5), (12, 6, 6, 6), (13, 7, 7, 7), (14, 8, 8, 8), (15, 9, 9, 9), (16, 10, 10, 10), (17, 12, 7, 3); -- -------------------------------------------------------- -- -- Table structure for table `loan_type` -- CREATE TABLE `loan_type` ( `id` int(11) NOT NULL, `type` text NOT NULL, `description` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `loan_type` -- INSERT INTO `loan_type` (`id`, `type`, `description`) VALUES (32, 'Personal Loans', 'Allowance'), (40, 'Business Loans', 'Small business'), (41, 'Personal Loans', 'personal'), (42, 'Agricultural Loans', 'Hog fattening'); -- -------------------------------------------------------- -- -- Table structure for table `next_payment` -- CREATE TABLE `next_payment` ( `id` int(11) NOT NULL, `borrower_id` varchar(100) NOT NULL, `loan_id` varchar(100) NOT NULL, `next_payment` varchar(100) NOT NULL, `total_balance` double NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `next_payment` -- INSERT INTO `next_payment` (`id`, `borrower_id`, `loan_id`, `next_payment`, `total_balance`) VALUES (21, '9', '2104-150480', 'N/A', 0.010000000000218); -- -------------------------------------------------------- -- -- Table structure for table `payments_tbl` -- CREATE TABLE `payments_tbl` ( `id` int(11) NOT NULL, `loan_id` varchar(100) NOT NULL, `principal` double NOT NULL, `interest` double NOT NULL, `penalties` double NOT NULL, `total_payment` double NOT NULL, `balance` double NOT NULL, `date_created` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `payments_tbl` -- INSERT INTO `payments_tbl` (`id`, `loan_id`, `principal`, `interest`, `penalties`, `total_payment`, `balance`, `date_created`) VALUES (64, '2104-150480', 3333.33, 300, 0, 3633.33, 7266.67, '2021-04-15'), (65, '2104-150480', 3333.33, 300, 0, 3500, 3633.34, '2021-04-15'), (66, '2104-150480', 3333.33, 300, 0, 15000, 0.010000000000218, '2021-04-15'); -- -------------------------------------------------------- -- -- Table structure for table `reference_tbl` -- CREATE TABLE `reference_tbl` ( `id` int(11) NOT NULL, `borrower_id` varchar(255) NOT NULL, `loan_id` varchar(255) NOT NULL, `co_maker` varchar(255) NOT NULL, `contact` varchar(25) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `reference_tbl` -- INSERT INTO `reference_tbl` (`id`, `borrower_id`, `loan_id`, `co_maker`, `contact`) VALUES (47, '9', '2104-136332', '<NAME> ', '12212121212'), (48, '9', '2104-136332', '<NAME> ', '11111111111'), (49, '9', '2104-132981', '<NAME> ', '11111111111'), (50, '9', '2104-132981', '<NAME> ', '12212121212'), (51, '9', '2104-144559', '<NAME> ', '11111111111'), (52, '9', '2104-144559', '<NAME> ', '12212121212'), (53, '9', '2104-150480', '<NAME> ', '11111111111'), (54, '9', '2104-150480', '<NAME> ', '12212121212'); -- -------------------------------------------------------- -- -- Table structure for table `user_tbl` -- CREATE TABLE `user_tbl` ( `id` int(11) NOT NULL, `firstname` varchar(25) NOT NULL, `middlename` varchar(25) NOT NULL, `lastname` varchar(25) NOT NULL, `contact` varchar(25) NOT NULL, `address` varchar(55) NOT NULL, `email` varchar(55) NOT NULL, `password` varchar(25) NOT NULL, `role` varchar(55) NOT NULL, `registered_on` varchar(25) NOT NULL, `image` varchar(100) NOT NULL, `login_status` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `user_tbl` -- INSERT INTO `user_tbl` (`id`, `firstname`, `middlename`, `lastname`, `contact`, `address`, `email`, `password`, `role`, `registered_on`, `image`, `login_status`) VALUES (33, 'Nhel', 'cruta', '<PASSWORD>', '32344444444', 'talibon, bohol', '<EMAIL>', '123', 'Staff', '04-11-2021', '1532422500.png', 1), (34, 'lhenz', 'cruta', 'credo', '23222222222', '<NAME>', '<EMAIL>', 'admin', 'Admin', '04-11-2021', '857688981.png', 1); -- -- Indexes for dumped tables -- -- -- Indexes for table `borrower_account` -- ALTER TABLE `borrower_account` ADD PRIMARY KEY (`id`); -- -- Indexes for table `borrower_tbl` -- ALTER TABLE `borrower_tbl` ADD PRIMARY KEY (`id`); -- -- Indexes for table `deduction_tbl` -- ALTER TABLE `deduction_tbl` ADD PRIMARY KEY (`id`); -- -- Indexes for table `is_current_loan` -- ALTER TABLE `is_current_loan` ADD PRIMARY KEY (`id`); -- -- Indexes for table `loans_tbl` -- ALTER TABLE `loans_tbl` ADD PRIMARY KEY (`id`); -- -- Indexes for table `loan_deductions` -- ALTER TABLE `loan_deductions` ADD PRIMARY KEY (`id`); -- -- Indexes for table `loan_plan` -- ALTER TABLE `loan_plan` ADD PRIMARY KEY (`id`); -- -- Indexes for table `loan_type` -- ALTER TABLE `loan_type` ADD PRIMARY KEY (`id`); -- -- Indexes for table `next_payment` -- ALTER TABLE `next_payment` ADD PRIMARY KEY (`id`); -- -- Indexes for table `payments_tbl` -- ALTER TABLE `payments_tbl` ADD PRIMARY KEY (`id`); -- -- Indexes for table `reference_tbl` -- ALTER TABLE `reference_tbl` ADD PRIMARY KEY (`id`); -- -- Indexes for table `user_tbl` -- ALTER TABLE `user_tbl` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `borrower_account` -- ALTER TABLE `borrower_account` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `borrower_tbl` -- ALTER TABLE `borrower_tbl` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `deduction_tbl` -- ALTER TABLE `deduction_tbl` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=60; -- -- AUTO_INCREMENT for table `is_current_loan` -- ALTER TABLE `is_current_loan` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- -- AUTO_INCREMENT for table `loans_tbl` -- ALTER TABLE `loans_tbl` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29; -- -- AUTO_INCREMENT for table `loan_deductions` -- ALTER TABLE `loan_deductions` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `loan_plan` -- ALTER TABLE `loan_plan` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18; -- -- AUTO_INCREMENT for table `loan_type` -- ALTER TABLE `loan_type` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43; -- -- AUTO_INCREMENT for table `next_payment` -- ALTER TABLE `next_payment` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; -- -- AUTO_INCREMENT for table `payments_tbl` -- ALTER TABLE `payments_tbl` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=67; -- -- AUTO_INCREMENT for table `reference_tbl` -- ALTER TABLE `reference_tbl` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55; -- -- AUTO_INCREMENT for table `user_tbl` -- ALTER TABLE `user_tbl` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35; 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 -- -- PostgreSQL database dump -- -- Dumped from database version REPLACED -- Dumped by pg_dump version REPLACED SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; -- -- Name: praefect_database_schema; Type: DATABASE; Schema: -; Owner: - -- CREATE DATABASE praefect_database_schema WITH TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'en_US.utf8' LC_CTYPE = 'en_US.utf8'; \connect praefect_database_schema SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; -- -- Name: replication_job_state; Type: TYPE; Schema: public; Owner: - -- CREATE TYPE public.replication_job_state AS ENUM ( 'ready', 'in_progress', 'completed', 'cancelled', 'failed', 'dead' ); -- -- Name: notify_on_change(); Type: FUNCTION; Schema: public; Owner: - -- CREATE FUNCTION public.notify_on_change() RETURNS trigger LANGUAGE plpgsql AS $$ DECLARE msg JSONB; BEGIN CASE TG_OP WHEN 'INSERT' THEN SELECT JSON_AGG(obj) INTO msg FROM ( SELECT JSONB_BUILD_OBJECT('virtual_storage', virtual_storage, 'relative_paths', ARRAY_AGG(DISTINCT relative_path)) AS obj FROM NEW GROUP BY virtual_storage ) t; WHEN 'UPDATE' THEN SELECT JSON_AGG(obj) INTO msg FROM ( SELECT JSONB_BUILD_OBJECT('virtual_storage', virtual_storage, 'relative_paths', ARRAY_AGG(DISTINCT relative_path)) AS obj FROM NEW FULL JOIN OLD USING (virtual_storage, relative_path) GROUP BY virtual_storage ) t; WHEN 'DELETE' THEN SELECT JSON_AGG(obj) INTO msg FROM ( SELECT JSONB_BUILD_OBJECT('virtual_storage', virtual_storage, 'relative_paths', ARRAY_AGG(DISTINCT relative_path)) AS obj FROM OLD GROUP BY virtual_storage ) t; END CASE; CASE WHEN JSONB_ARRAY_LENGTH(msg) > 0 THEN PERFORM PG_NOTIFY(TG_ARGV[TG_NARGS-1], msg::TEXT); ELSE END CASE; RETURN NULL; END; $$; SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: node_status; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.node_status ( id bigint NOT NULL, praefect_name character varying(511) NOT NULL, shard_name character varying(255) NOT NULL, node_name character varying(255) NOT NULL, last_contact_attempt_at timestamp with time zone, last_seen_active_at timestamp with time zone ); -- -- Name: healthy_storages; Type: VIEW; Schema: public; Owner: - -- CREATE VIEW public.healthy_storages AS SELECT ns.shard_name AS virtual_storage, ns.node_name AS storage FROM public.node_status ns WHERE (ns.last_seen_active_at >= (now() - '00:00:10'::interval)) GROUP BY ns.shard_name, ns.node_name HAVING ((count(ns.praefect_name))::numeric >= ( SELECT ceil(((count(DISTINCT node_status.praefect_name))::numeric / 2.0)) AS quorum_count FROM public.node_status WHERE (((node_status.shard_name)::text = (ns.shard_name)::text) AND (node_status.last_contact_attempt_at >= (now() - '00:01:00'::interval))))) ORDER BY ns.shard_name, ns.node_name; -- -- Name: hello_world; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.hello_world ( id integer ); -- -- Name: node_status_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.node_status_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: node_status_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.node_status_id_seq OWNED BY public.node_status.id; -- -- Name: replication_queue; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.replication_queue ( id bigint NOT NULL, state public.replication_job_state DEFAULT 'ready'::public.replication_job_state NOT NULL, created_at timestamp without time zone DEFAULT timezone('UTC'::text, now()) NOT NULL, updated_at timestamp without time zone, attempt integer DEFAULT 3 NOT NULL, lock_id text, job jsonb, meta jsonb ); -- -- Name: replication_queue_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.replication_queue_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: replication_queue_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.replication_queue_id_seq OWNED BY public.replication_queue.id; -- -- Name: replication_queue_job_lock; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.replication_queue_job_lock ( job_id bigint NOT NULL, lock_id text NOT NULL, triggered_at timestamp without time zone DEFAULT timezone('UTC'::text, now()) NOT NULL ); -- -- Name: replication_queue_lock; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.replication_queue_lock ( id text NOT NULL, acquired boolean DEFAULT false NOT NULL ); -- -- Name: repositories; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.repositories ( virtual_storage text NOT NULL, relative_path text NOT NULL, generation bigint, "primary" text, repository_id bigint NOT NULL, replica_path text ); -- -- Name: repositories_repository_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.repositories_repository_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: repositories_repository_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.repositories_repository_id_seq OWNED BY public.repositories.repository_id; -- -- Name: repository_assignments; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.repository_assignments ( virtual_storage text NOT NULL, relative_path text NOT NULL, storage text NOT NULL, repository_id bigint NOT NULL ); -- -- Name: storage_repositories; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.storage_repositories ( virtual_storage text NOT NULL, relative_path text NOT NULL, storage text NOT NULL, generation bigint NOT NULL, repository_id bigint NOT NULL ); -- -- Name: repository_generations; Type: VIEW; Schema: public; Owner: - -- CREATE VIEW public.repository_generations AS SELECT storage_repositories.virtual_storage, storage_repositories.relative_path, max(storage_repositories.generation) AS generation FROM public.storage_repositories GROUP BY storage_repositories.virtual_storage, storage_repositories.relative_path; -- -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.schema_migrations ( id text NOT NULL, applied_at timestamp with time zone ); -- -- Name: shard_primaries; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.shard_primaries ( id bigint NOT NULL, shard_name character varying(255) NOT NULL, node_name character varying(255) NOT NULL, elected_by_praefect character varying(255) NOT NULL, elected_at timestamp with time zone NOT NULL, read_only boolean DEFAULT false NOT NULL, demoted boolean DEFAULT false NOT NULL, previous_writable_primary text ); -- -- Name: shard_primaries_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.shard_primaries_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: shard_primaries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.shard_primaries_id_seq OWNED BY public.shard_primaries.id; -- -- Name: storage_cleanups; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.storage_cleanups ( virtual_storage text NOT NULL, storage text NOT NULL, last_run timestamp without time zone, triggered_at timestamp without time zone ); -- -- Name: valid_primaries; Type: VIEW; Schema: public; Owner: - -- CREATE VIEW public.valid_primaries AS SELECT candidates.repository_id, candidates.virtual_storage, candidates.relative_path, candidates.storage FROM ( SELECT repositories.repository_id, repositories.virtual_storage, repositories.relative_path, storage_repositories.storage, ((repository_assignments.storage IS NOT NULL) OR bool_and((repository_assignments.storage IS NULL)) OVER (PARTITION BY repositories.repository_id)) AS eligible FROM (((public.repositories JOIN ( SELECT storage_repositories_1.repository_id, storage_repositories_1.storage, storage_repositories_1.generation FROM public.storage_repositories storage_repositories_1) storage_repositories USING (repository_id, generation)) JOIN public.healthy_storages USING (virtual_storage, storage)) LEFT JOIN public.repository_assignments USING (repository_id, storage)) WHERE (NOT (EXISTS ( SELECT FROM public.replication_queue WHERE ((replication_queue.state <> ALL (ARRAY['completed'::public.replication_job_state, 'dead'::public.replication_job_state, 'cancelled'::public.replication_job_state])) AND ((replication_queue.job ->> 'change'::text) = 'delete_replica'::text) AND (((replication_queue.job ->> 'repository_id'::text))::bigint = repositories.repository_id) AND ((replication_queue.job ->> 'target_node_storage'::text) = storage_repositories.storage)))))) candidates WHERE candidates.eligible; -- -- Name: virtual_storages; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.virtual_storages ( virtual_storage text NOT NULL, repositories_imported boolean DEFAULT false NOT NULL ); -- -- Name: node_status id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public.node_status ALTER COLUMN id SET DEFAULT nextval('public.node_status_id_seq'::regclass); -- -- Name: replication_queue id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public.replication_queue ALTER COLUMN id SET DEFAULT nextval('public.replication_queue_id_seq'::regclass); -- -- Name: repositories repository_id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public.repositories ALTER COLUMN repository_id SET DEFAULT nextval('public.repositories_repository_id_seq'::regclass); -- -- Name: shard_primaries id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public.shard_primaries ALTER COLUMN id SET DEFAULT nextval('public.shard_primaries_id_seq'::regclass); -- -- Name: node_status node_status_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.node_status ADD CONSTRAINT node_status_pkey PRIMARY KEY (id); -- -- Name: replication_queue_job_lock replication_queue_job_lock_pk; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.replication_queue_job_lock ADD CONSTRAINT replication_queue_job_lock_pk PRIMARY KEY (job_id, lock_id); -- -- Name: replication_queue_lock replication_queue_lock_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.replication_queue_lock ADD CONSTRAINT replication_queue_lock_pkey PRIMARY KEY (id); -- -- Name: replication_queue replication_queue_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.replication_queue ADD CONSTRAINT replication_queue_pkey PRIMARY KEY (id); -- -- Name: repositories repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.repositories ADD CONSTRAINT repositories_pkey PRIMARY KEY (repository_id); -- -- Name: repository_assignments repository_assignments_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.repository_assignments ADD CONSTRAINT repository_assignments_pkey PRIMARY KEY (virtual_storage, relative_path, storage); -- -- Name: schema_migrations schema_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.schema_migrations ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (id); -- -- Name: shard_primaries shard_primaries_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.shard_primaries ADD CONSTRAINT shard_primaries_pkey PRIMARY KEY (id); -- -- Name: storage_cleanups storage_cleanups_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.storage_cleanups ADD CONSTRAINT storage_cleanups_pkey PRIMARY KEY (virtual_storage, storage); -- -- Name: storage_repositories storage_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.storage_repositories ADD CONSTRAINT storage_repositories_pkey PRIMARY KEY (virtual_storage, relative_path, storage); -- -- Name: virtual_storages virtual_storages_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.virtual_storages ADD CONSTRAINT virtual_storages_pkey PRIMARY KEY (virtual_storage); -- -- Name: delete_replica_unique_index; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX delete_replica_unique_index ON public.replication_queue USING btree (((job ->> 'virtual_storage'::text)), ((job ->> 'relative_path'::text))) WHERE ((state <> ALL (ARRAY['completed'::public.replication_job_state, 'cancelled'::public.replication_job_state, 'dead'::public.replication_job_state])) AND ((job ->> 'change'::text) = 'delete_replica'::text)); -- -- Name: replication_queue_target_index; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX replication_queue_target_index ON public.replication_queue USING btree (((job ->> 'virtual_storage'::text)), ((job ->> 'relative_path'::text)), ((job ->> 'target_node_storage'::text)), ((job ->> 'change'::text))) WHERE (state <> ALL (ARRAY['completed'::public.replication_job_state, 'cancelled'::public.replication_job_state, 'dead'::public.replication_job_state])); -- -- Name: repository_assignments_new_pkey; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX repository_assignments_new_pkey ON public.repository_assignments USING btree (repository_id, storage); -- -- Name: repository_lookup_index; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX repository_lookup_index ON public.repositories USING btree (virtual_storage, relative_path); -- -- Name: repository_replica_path_index; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX repository_replica_path_index ON public.repositories USING btree (replica_path, virtual_storage); -- -- Name: shard_name_on_node_status_idx; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX shard_name_on_node_status_idx ON public.node_status USING btree (shard_name, node_name); -- -- Name: shard_name_on_shard_primaries_idx; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX shard_name_on_shard_primaries_idx ON public.shard_primaries USING btree (shard_name); -- -- Name: shard_node_names_on_node_status_idx; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX shard_node_names_on_node_status_idx ON public.node_status USING btree (praefect_name, shard_name, node_name); -- -- Name: storage_repositories_new_pkey; Type: INDEX; Schema: public; Owner: - -- CREATE UNIQUE INDEX storage_repositories_new_pkey ON public.storage_repositories USING btree (repository_id, storage); -- -- Name: virtual_target_on_replication_queue_idx; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX virtual_target_on_replication_queue_idx ON public.replication_queue USING btree (((job ->> 'virtual_storage'::text)), ((job ->> 'target_node_storage'::text))); -- -- Name: repositories notify_on_delete; Type: TRIGGER; Schema: public; Owner: - -- CREATE TRIGGER notify_on_delete AFTER DELETE ON public.repositories REFERENCING OLD TABLE AS old FOR EACH STATEMENT EXECUTE PROCEDURE public.notify_on_change('repositories_updates'); -- -- Name: storage_repositories notify_on_delete; Type: TRIGGER; Schema: public; Owner: - -- CREATE TRIGGER notify_on_delete AFTER DELETE ON public.storage_repositories REFERENCING OLD TABLE AS old FOR EACH STATEMENT EXECUTE PROCEDURE public.notify_on_change('storage_repositories_updates'); -- -- Name: storage_repositories notify_on_insert; Type: TRIGGER; Schema: public; Owner: - -- CREATE TRIGGER notify_on_insert AFTER INSERT ON public.storage_repositories REFERENCING NEW TABLE AS new FOR EACH STATEMENT EXECUTE PROCEDURE public.notify_on_change('storage_repositories_updates'); -- -- Name: storage_repositories notify_on_update; Type: TRIGGER; Schema: public; Owner: - -- CREATE TRIGGER notify_on_update AFTER UPDATE ON public.storage_repositories REFERENCING OLD TABLE AS old NEW TABLE AS new FOR EACH STATEMENT EXECUTE PROCEDURE public.notify_on_change('storage_repositories_updates'); -- -- Name: replication_queue_job_lock replication_queue_job_lock_job_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.replication_queue_job_lock ADD CONSTRAINT replication_queue_job_lock_job_id_fkey FOREIGN KEY (job_id) REFERENCES public.replication_queue(id); -- -- Name: replication_queue_job_lock replication_queue_job_lock_lock_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.replication_queue_job_lock ADD CONSTRAINT replication_queue_job_lock_lock_id_fkey FOREIGN KEY (lock_id) REFERENCES public.replication_queue_lock(id); -- -- Name: repository_assignments repository_assignments_repository_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.repository_assignments ADD CONSTRAINT repository_assignments_repository_id_fkey FOREIGN KEY (repository_id) REFERENCES public.repositories(repository_id) ON DELETE CASCADE; -- -- Name: repository_assignments repository_assignments_virtual_storage_relative_path_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.repository_assignments ADD CONSTRAINT repository_assignments_virtual_storage_relative_path_fkey FOREIGN KEY (virtual_storage, relative_path) REFERENCES public.repositories(virtual_storage, relative_path) ON UPDATE CASCADE ON DELETE CASCADE; -- -- Name: storage_repositories storage_repositories_repository_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.storage_repositories ADD CONSTRAINT storage_repositories_repository_id_fkey FOREIGN KEY (repository_id) REFERENCES public.repositories(repository_id) ON DELETE CASCADE; -- -- PostgreSQL database dump complete --
-- 36 MD TECELAGEM UPDATE BASI_020 tt SET tt.LOTE_FABR_PECAS=36 WHERE tt.BASI030_NIVEL030 = 1 AND tt.LOTE_FABR_PECAS <> 36 AND EXISTS ( SELECT t.LOTE_FABR_PECAS , r.CONTA_ESTOQUE , r.LINHA_PRODUTO , t.* FROM BASI_020 t JOIN BASI_030 r ON r.NIVEL_ESTRUTURA = t.BASI030_NIVEL030 AND r.REFERENCIA = t.BASI030_REFERENC WHERE r.CONTA_ESTOQUE IN (10, 12, 14) -- MD AND r.LINHA_PRODUTO = 11 -- TECELAGEM AND t.BASI030_NIVEL030 = tt.BASI030_NIVEL030 AND t.BASI030_REFERENC = tt.BASI030_REFERENC ) ; -- 40 MD COSTURADO UPDATE BASI_020 tt SET tt.LOTE_FABR_PECAS=40 WHERE tt.BASI030_NIVEL030 = 1 AND tt.LOTE_FABR_PECAS <> 40 AND EXISTS ( SELECT t.LOTE_FABR_PECAS , r.CONTA_ESTOQUE , r.LINHA_PRODUTO , t.* FROM BASI_020 t JOIN BASI_030 r ON r.NIVEL_ESTRUTURA = t.BASI030_NIVEL030 AND r.REFERENCIA = t.BASI030_REFERENC WHERE r.CONTA_ESTOQUE IN (10, 12, 14) -- MD AND r.LINHA_PRODUTO = 12 -- COSTURA AND t.BASI030_NIVEL030 = tt.BASI030_NIVEL030 AND t.BASI030_REFERENC = tt.BASI030_REFERENC ) ; -- 100 PA - INDIVIDUAL EMBALADO & PA - INDIVIDUAL ENCABIDADO UPDATE BASI_020 tt SET tt.LOTE_FABR_PECAS=100 WHERE tt.BASI030_NIVEL030 = 1 AND tt.LOTE_FABR_PECAS <> 100 AND EXISTS ( SELECT t.LOTE_FABR_PECAS , r.CONTA_ESTOQUE , r.LINHA_PRODUTO , t.* FROM BASI_020 t JOIN BASI_030 r ON r.NIVEL_ESTRUTURA = t.BASI030_NIVEL030 AND r.REFERENCIA = t.BASI030_REFERENC WHERE r.CONTA_ESTOQUE IN (4, 6) -- PA - INDIVIDUAL EMBALADO & PA - INDIVIDUAL ENCABIDADO AND t.BASI030_NIVEL030 = tt.BASI030_NIVEL030 AND t.BASI030_REFERENC = tt.BASI030_REFERENC ) ; -- 80 PA KIT UPDATE BASI_020 tt SET tt.LOTE_FABR_PECAS=80 WHERE tt.BASI030_NIVEL030 = 1 AND tt.LOTE_FABR_PECAS <> 80 AND EXISTS ( SELECT t.LOTE_FABR_PECAS , r.CONTA_ESTOQUE , r.LINHA_PRODUTO , t.* FROM BASI_020 t JOIN BASI_030 r ON r.NIVEL_ESTRUTURA = t.BASI030_NIVEL030 AND r.REFERENCIA = t.BASI030_REFERENC WHERE r.CONTA_ESTOQUE = 2 -- PA - KIT AND t.BASI030_NIVEL030 = tt.BASI030_NIVEL030 AND t.BASI030_REFERENC = tt.BASI030_REFERENC ) ; -- 50 PA %5156% E %2156% UPDATE BASI_020 tt SET tt.LOTE_FABR_PECAS=50 WHERE tt.BASI030_NIVEL030 = 1 AND tt.LOTE_FABR_PECAS <> 50 AND EXISTS ( SELECT t.LOTE_FABR_PECAS , r.CONTA_ESTOQUE , r.LINHA_PRODUTO , t.* FROM BASI_020 t JOIN BASI_030 r ON r.NIVEL_ESTRUTURA = t.BASI030_NIVEL030 AND r.REFERENCIA = t.BASI030_REFERENC WHERE r.CONTA_ESTOQUE IN (2, 4, 6) -- PA AND ( r.REFERENCIA LIKE '%5156%' OR r.REFERENCIA LIKE '%2156%' ) AND t.BASI030_NIVEL030 = tt.BASI030_NIVEL030 AND t.BASI030_REFERENC = tt.BASI030_REFERENC ) ; -- 50 PA RENNER UPDATE BASI_020 tt SET tt.LOTE_FABR_PECAS=50 WHERE tt.BASI030_NIVEL030 = 1 AND tt.LOTE_FABR_PECAS <> 50 AND EXISTS ( SELECT t.LOTE_FABR_PECAS , r.CONTA_ESTOQUE , r.LINHA_PRODUTO , t.* FROM BASI_020 t JOIN BASI_030 r ON r.NIVEL_ESTRUTURA = t.BASI030_NIVEL030 AND r.REFERENCIA = t.BASI030_REFERENC WHERE r.CONTA_ESTOQUE IN (2, 4, 6) -- PA AND r.CGC_CLIENTE_9 = 092754738 AND t.BASI030_NIVEL030 = tt.BASI030_NIVEL030 AND t.BASI030_REFERENC = tt.BASI030_REFERENC ) ;
<reponame>scandio/lmvc-patat # ************************************************************ # Sequel Pro SQL dump # Version 4096 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 127.0.0.1 (MySQL 5.6.12) # Database: lmvc_patat # Generation Time: 2013-07-23 12:48:01 +0000 # ************************************************************ /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; # Dump of table Dishes # ------------------------------------------------------------ DROP TABLE IF EXISTS `Dishes`; CREATE TABLE `Dishes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `description` mediumtext NOT NULL, `price` varchar(255) NOT NULL, `img` varchar(255) DEFAULT '', `advertised` int(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `Dishes` WRITE; /*!40000 ALTER TABLE `Dishes` DISABLE KEYS */; INSERT INTO `Dishes` (`id`, `user_id`, `name`, `description`, `price`, `img`, `advertised`) VALUES (1,1,'Haxe','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','8,20','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',0), (2,2,'Pommes','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','7,00','d9e0ada312237ed75f5c7d57eb054037d4cb4c8d.png',0), (3,3,'Döner','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','1,00','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (4,4,'Yogurt','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','15,00','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (5,5,'<NAME>','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','1000000','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (6,6,'<NAME>','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','12,99','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (7,7,'Dörum','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','2,99','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (8,8,'Ein ganzes Schwein','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','3,33','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (9,9,'Zeugs','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','6,66','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (10,10,'Bratwurst','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','8,50','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (11,11,'Gyros','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','2,11','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (12,12,'Schnitzel','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','5,10','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (13,13,'Pizza','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','7,12','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (14,14,'Pita','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','11,11','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (15,15,'<NAME>','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','3,50','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (16,16,'Suppe','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','3,50','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (17,17,'Kroketten','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','3,50','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (18,18,'Dicke lange Fritten','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','5,55','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (19,19,'Bouletten','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','4,44','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (20,10,'Salat','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','7,11','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (21,21,'Spaghetti','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','11,11','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (22,22,'Nudelauflauf','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','9,99','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (23,23,'Nudeln','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','9,99','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (24,24,'Döner','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','10,00','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (25,25,'Döner','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','5,00','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (26,26,'Yogurt','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','5,00','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (27,27,'<NAME>','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','4,00','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (28,28,'<NAME>','Ein langes, dickes Stück Haxe mit lecker Kartoffeln min Jung!','5,00','093fe6588c61ad8dcf22b93931cb80798ccb5630.jpg',1), (29,29,'<NAME>','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','2,22','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (30,30,'Knochen','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','3,33','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (31,31,'Eisbein','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','7,77','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (32,32,'Patat','Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.','4,00','ea2efc6d7c9e7480ced6098cc006b7d61629cb0e.png',1), (35,2,'Aal','Lange geräucherter Aal!','2,99','beee441151efccd47d3eb2758b4648054fae7c26.jpg',1), (36,2,'Haxe','... auch bei uns endlich Haxe!','3,99','39f6f89ebf36f2682dab16bd0147e009dc63cbae.jpg',1), (37,40,'Nudeln','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa','3,00','94bd4c52608def1edee92a8a336b67dfa07a7e24.jpg',1), (38,47,'Zigarette','Tja schnorren ist aus der Mode\r\n','1','02bc4627fc6c69f6558ca88ee0df3c5442ad5e88.jpg',1), (39,47,'Venn','Na ja ganz schön teuer ;:- /\\','3','b8546556f73c5b536643d1acb64862fa0f03c91b.jpg',1), (40,48,'Ein Konzert?','Geht\'er ab?....','3',NULL,1); /*!40000 ALTER TABLE `Dishes` ENABLE KEYS */; UNLOCK TABLES; # Dump of table Groups # ------------------------------------------------------------ DROP TABLE IF EXISTS `Groups`; CREATE TABLE `Groups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `group_name` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `Groups` WRITE; /*!40000 ALTER TABLE `Groups` DISABLE KEYS */; INSERT INTO `Groups` (`id`, `group_name`) VALUES (1,'Admin'), (2,'User'); /*!40000 ALTER TABLE `Groups` ENABLE KEYS */; UNLOCK TABLES; # Dump of table Locations # ------------------------------------------------------------ DROP TABLE IF EXISTS `Locations`; CREATE TABLE `Locations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `longitude` varchar(255) NOT NULL DEFAULT '', `latitude` varchar(255) NOT NULL, `accuracy` varchar(255) DEFAULT '', `restaurant` varchar(255) DEFAULT NULL, `handle` varchar(255) NOT NULL, `city` varchar(255) NOT NULL, `zip` int(15) NOT NULL, `street` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `Locations` WRITE; /*!40000 ALTER TABLE `Locations` DISABLE KEYS */; INSERT INTO `Locations` (`id`, `user_id`, `longitude`, `latitude`, `accuracy`, `restaurant`, `handle`, `city`, `zip`, `street`) VALUES (1,1,'11.6597945','48.1316607','24','Administrator','administrator','München',81829,'In der Rosenau 6'), (2,2,'11.6597945','48.1316607','24','Franks Imbiss','franks-imbiss','München',81829,'In der Rosenau 6'), (3,3,'11.6597945','48.1316607','24','Klaus Imbiss','klausimbiss','München',81829,'In der Rosenau 6'), (4,4,'11.6597945','48.1316607','24','Dudes Imbiss','dudes-imbiss','München',81829,'In der Rosenau 6'), (5,5,'11.6597945','48.1316607','24','Freds Imbiss','freds-imbiss','München',81829,'In der Rosenau 6'), (6,6,'11.6597945','48.1316607','24','Bennys Imbiss','bennys-imbiss','München',81829,'In der Rosenau 6'), (7,7,'11.6597945','48.1316607','24','Gerds Imbiss','gerds-imbiss','München',81829,'In der Rosenau 6'), (8,8,'11.6597945','48.1316607','24','Friddenbude','friddenbude','München',81829,'In der Rosenau 6'), (9,9,'11.6597945','48.1316607','24','Burgerhaus','burgerhaus','München',81829,'In der Rosenau 6'), (10,10,'11.6597945','48.1316607','24','Dönerladen','doenerladen','München',81829,'In der Rosenau 6'), (11,11,'11.6597945','48.1316607','24','<NAME>','thomas-ecke','München',81829,'In der Rosenau 6'), (12,12,'11.6597945','48.1316607','24','<NAME>','stephans-traenke','München',81829,'In der Rosenau 6'), (13,13,'11.6597945','48.1316607','24','<NAME>','xenas-schwert','München',81829,'In der Rosenau 6'), (14,14,'11.6597945','48.1316607','24','Gammelfleisch','gammelfleisch','München',81829,'In der Rosenau 6'), (15,15,'11.6597945','48.1316607','24','Mit allem','mit-allem','München',81829,'In der Rosenau 6'), (16,16,'11.6597945','48.1316607','24','Gregisk Food','gregisk-food','München',81829,'In der Rosenau 6'), (17,17,'11.6597945','48.1316607','24','Olis Hackepeter Heaven','olis-hackepeter-heaven','München',81829,'In der Rosenau 6'), (18,18,'11.6597945','48.1316607','24','Zum rasenden Schnitzel','zum-rasenden-schnitzel','München',81829,'In der Rosenau 6'), (19,19,'11.6597945','48.1316607','24','Pornöse Pommes','pornoese-pommes','München',81829,'In der Rosenau 6'), (20,10,'11.6597945','48.1316607','24','Zum lachenden Leberkäse','zum-lachenden-leberkaese','München',81829,'In der Rosenau 6'), (21,21,'11.6597945','48.1316607','24','<NAME>','koenigreich-knackwurst','München',81829,'In der Rosenau 6'), (22,22,'11.6597945','48.1316607','24','Le B<NAME> la Currwurst','le-bistro-de-la-currywurst','München',81829,'In der Rosenau 6'), (23,23,'11.6597945','48.1316607','24','Curry Chaos','curry-chaos','München',81829,'In der Rosenau 6'), (24,24,'11.6597945','48.1316607','24','Zum überfahrenen Reh','zum-ueberfahrenen-reh','München',81829,'In der Rosenau 6'), (25,25,'11.6597945','48.1316607','24','Zum gestiefelten Kater','zum-gestiefelten-kater','München',81829,'In der Rosenau 6'), (26,26,'11.6597945','48.1316607','24','Futterbar','futterbar','München',81829,'In der Rosenau 6'), (27,27,'11.6597945','48.1316607','24','<NAME>','iss-lecker','München',81829,'In der Rosenau 6'), (28,28,'11.6597945','48.1316607','24','Anti Bio','anti-bio','München',81829,'In der Rosenau 6'), (29,29,'11.6597945','48.1316607','24','Stopf Rein','stopf-rein','München',81829,'In der Rosenau 6'), (30,30,'11.6597945','48.1316607','24','Schnitzelkönig','schnitzelkoenig','München',81829,'In der Rosenau 6'), (31,31,'11.6597945','48.1316607','24','Hot-Chilli-Station','hot-chilli-station','München',81829,'In der Rosenau 6'), (32,32,'11.6597945','48.1316607','24','Mac-Scharf','mac-scharf','München',81829,'In der Rosenau 6'); /*!40000 ALTER TABLE `Locations` ENABLE KEYS */; UNLOCK TABLES; # Dump of table Roles # ------------------------------------------------------------ DROP TABLE IF EXISTS `Roles`; CREATE TABLE `Roles` ( `id` int(11) NOT NULL AUTO_INCREMENT, `role_name` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `Roles` WRITE; /*!40000 ALTER TABLE `Roles` DISABLE KEYS */; INSERT INTO `Roles` (`id`, `role_name`) VALUES (1,'Read'), (2,'Edit'), (3,'Delete'); /*!40000 ALTER TABLE `Roles` ENABLE KEYS */; UNLOCK TABLES; # Dump of table User_to_Groups # ------------------------------------------------------------ DROP TABLE IF EXISTS `User_to_Groups`; CREATE TABLE `User_to_Groups` ( `user_id` int(11) NOT NULL, `group_id` int(11) NOT NULL, PRIMARY KEY (`user_id`,`group_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `User_to_Groups` WRITE; /*!40000 ALTER TABLE `User_to_Groups` DISABLE KEYS */; INSERT INTO `User_to_Groups` (`user_id`, `group_id`) VALUES (1,1), (1,2); /*!40000 ALTER TABLE `User_to_Groups` ENABLE KEYS */; UNLOCK TABLES; # Dump of table User_to_Roles # ------------------------------------------------------------ DROP TABLE IF EXISTS `User_to_Roles`; CREATE TABLE `User_to_Roles` ( `user_id` int(11) NOT NULL, `role_id` int(11) NOT NULL, PRIMARY KEY (`user_id`,`role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `User_to_Roles` WRITE; /*!40000 ALTER TABLE `User_to_Roles` DISABLE KEYS */; INSERT INTO `User_to_Roles` (`user_id`, `role_id`) VALUES (1,1), (1,2), (1,3); /*!40000 ALTER TABLE `User_to_Roles` ENABLE KEYS */; UNLOCK TABLES; # Dump of table Users # ------------------------------------------------------------ DROP TABLE IF EXISTS `Users`; CREATE TABLE `Users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) DEFAULT 'NOT NULL', `fullname` varchar(255) DEFAULT NULL, `email` varchar(100) DEFAULT NULL, `phone` varchar(100) DEFAULT NULL, `mobile` varchar(100) DEFAULT NULL, `password` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `Users` WRITE; /*!40000 ALTER TABLE `Users` DISABLE KEYS */; INSERT INTO `Users` (`id`, `username`, `fullname`, `email`, `phone`, `mobile`, `password`) VALUES (1,'tobisbuergerinsel','<NAME>','<EMAIL>','+49 89 244 124-0','','51eac<PASSWORD>28<PASSWORD>'), (2,'franksimbiss','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (3,'klausimbiss','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c<PASSWORD>'), (4,'duesimbiss','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (5,'fredsimbiss','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (6,'bennysimbiss','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (7,'gerdsimbiss','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (8,'frittenbude','Friddenbude','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (9,'buergerhaus','Burgerhaus','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (10,'doenerladen','Dönerladen','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (11,'thoamsecke','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (12,'stephanstraenke','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (13,'xenasschwert','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (14,'gammelfleisch','Gammelfleisch','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (15,'mitallem','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (16,'grekiskfood','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (17,'olis','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (18,'zumrasendenschnitzel','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (19,'pornoesepommes','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (20,'zumlachendenleberkaese','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (21,'koenigreichknackwurst','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (22,'lebistro','Le <NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (23,'currychaos','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (24,'zumueberfahrenenreh','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (25,'zumgestiefeltenkater','Zum gestiefelten Kater','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (26,'futterbar','Futterbar','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (27,'isslecker','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (28,'antibio','Anti Bio','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (29,'stopfrein','<NAME>','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (30,'snitzelkoenig','Schnitzelkönig','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (31,'hotchillistation','Hot-Chilli-Station','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (32,'macscharf','Mac-Scharf','<EMAIL>','+49 89 244 124-0',NULL,'40bd001563085fc35165329ea1ff5c5ecbdbbeef'), (47,'dolce04','<NAME>','<EMAIL>','09892441240','09892441240','262c0d769dfb82c09b39845bf62e951003748251'), (48,'tdeekens','<NAME>','<EMAIL>','','','40bd001563085fc35165329ea1ff5c5ecbdbbeef'); /*!40000 ALTER TABLE `Users` ENABLE KEYS */; UNLOCK TABLES; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 22, 2019 at 03:04 AM -- Server version: 5.7.21-0ubuntu0.16.04.1 -- PHP Version: 7.0.22-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `actualise` -- -- -------------------------------------------------------- -- -- Table structure for table `behaviour` -- CREATE TABLE `behaviour` ( `id` int(10) UNSIGNED NOT NULL, `behaviour` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `question_type_id` tinyint(4) NOT NULL COMMENT 'Foreign Key of Question type table', `is_behaviour` tinyint(1) NOT NULL DEFAULT '1', `status` tinyint(1) NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `behaviour` -- INSERT INTO `behaviour` (`id`, `behaviour`, `question_type_id`, `is_behaviour`, `status`) VALUES (1, 'Emotional Problems', 3, 1, 1), (2, 'Conduct Problems', 3, 1, 1), (3, 'Hyperactivity', 3, 1, 1), (4, 'Peer Problems', 3, 1, 1), (5, 'Strengths/ Prosocial', 3, 1, 1), (6, 'Total Difficulties', 3, 0, 1), (7, 'Panic Disorder or Significant Somatic Symptoms', 4, 1, 1), (8, 'Generalised Anxiety Disorder', 4, 1, 1), (9, 'Separation Anxiety', 4, 1, 1), (10, 'Social Anxiety Disorder', 4, 1, 1), (11, 'Significant School Avoidance', 4, 1, 1), (12, 'Total Scale', 4, 0, 1), (13, 'Well Being', 2, 1, 1), (14, 'Problems or Symptoms', 2, 1, 1), (15, 'Functioning', 2, 1, 1), (16, 'Risk', 2, 1, 1), (17, 'Total', 2, 0, 1), (18, 'Total Minus Risk', 2, 2, 1); -- -------------------------------------------------------- -- -- Table structure for table `behaviour_scale` -- CREATE TABLE `behaviour_scale` ( `id` int(10) UNSIGNED NOT NULL, `scale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `behaviour_id` int(10) UNSIGNED NOT NULL COMMENT 'Foreign Key of Behaviour table', `scale_from` tinyint(4) NOT NULL, `scale_to` tinyint(4) NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `behaviour_scale` -- INSERT INTO `behaviour_scale` (`id`, `scale`, `behaviour_id`, `scale_from`, `scale_to`, `status`) VALUES (1, 'Close to average', 1, 0, 4, 1), (2, 'Slightly raised', 1, 5, 5, 1), (3, 'High', 1, 6, 6, 1), (4, 'Very high', 1, 7, 10, 1), (5, 'Close to average', 2, 0, 3, 1), (6, 'Slightly raised', 2, 4, 4, 1), (7, 'High', 2, 5, 5, 1), (8, 'Very high', 2, 6, 10, 1), (9, 'Close to average', 3, 0, 5, 1), (10, 'Slightly raised', 3, 6, 6, 1), (11, 'High', 3, 7, 7, 1), (12, 'Very high', 3, 8, 10, 1), (13, 'Close to average', 4, 0, 2, 1), (14, 'Slightly raised', 4, 3, 3, 1), (15, 'High', 4, 4, 4, 1), (16, 'Very high', 4, 5, 10, 1), (17, 'Close to average', 5, 7, 10, 1), (18, 'Slightly raised', 5, 6, 6, 1), (19, 'Low', 5, 5, 5, 1), (20, 'Very low', 5, 0, 4, 1), (21, 'Close to average', 6, 0, 14, 1), (22, 'Slightly raised', 6, 15, 17, 1), (23, 'High', 6, 18, 19, 1), (24, 'Very high', 6, 20, 40, 1), (25, 'Normal Range', 7, 0, 6, 1), (26, 'Clinical Range', 7, 7, 50, 1), (27, 'Normal Range', 8, 0, 8, 1), (28, 'Clinical Range', 8, 9, 50, 1), (29, 'Normal Range', 9, 0, 4, 1), (30, 'Clinical Range', 9, 5, 50, 1), (31, 'Normal Range', 10, 0, 7, 1), (32, 'Clinical Range', 10, 8, 50, 1), (33, 'Normal Range', 11, 0, 2, 1), (34, 'Clinical Range', 11, 3, 50, 1), (35, 'Normal Range', 12, 0, 24, 1), (36, 'Clinical Range', 12, 25, 100, 1), (37, 'Normal Range', 13, 0, 1, 1), (38, 'Clinical Range', 13, 1, 10, 1), (39, 'Normal Range', 14, 0, 1, 1), (40, 'Clinical Range', 14, 1, 10, 1), (41, 'Normal Range', 15, 0, 1, 1), (42, 'Clinical Range', 15, 1, 10, 1), (43, 'Normal Range', 16, 0, 0, 1), (44, 'Clinical Range', 16, 0, 10, 1), (45, 'Normal Range', 17, 0, 1, 1), (46, 'Clinical Range', 17, 1, 10, 1), (47, 'Normal Range', 18, 0, 1, 1), (48, 'Clinical Range', 18, 1, 10, 1); -- -------------------------------------------------------- -- -- Table structure for table `blogs` -- CREATE TABLE `blogs` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `publish_datetime` datetime NOT NULL, `featured_image` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `content` text COLLATE utf8mb4_unicode_ci NOT NULL, `meta_title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `cannonical_link` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `slug` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `meta_description` text COLLATE utf8mb4_unicode_ci, `meta_keywords` text COLLATE utf8mb4_unicode_ci, `status` enum('Published','Draft','InActive','Scheduled') COLLATE utf8mb4_unicode_ci NOT NULL, `created_by` int(10) UNSIGNED NOT NULL, `updated_by` int(10) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `blog_categories` -- CREATE TABLE `blog_categories` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '1', `created_by` int(10) UNSIGNED NOT NULL, `updated_by` int(10) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `blog_map_categories` -- CREATE TABLE `blog_map_categories` ( `id` int(10) UNSIGNED NOT NULL, `blog_id` int(10) UNSIGNED NOT NULL, `category_id` int(10) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `blog_map_tags` -- CREATE TABLE `blog_map_tags` ( `id` int(10) UNSIGNED NOT NULL, `blog_id` int(10) UNSIGNED NOT NULL, `tag_id` int(10) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `blog_tags` -- CREATE TABLE `blog_tags` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '1', `created_by` int(10) UNSIGNED NOT NULL, `updated_by` int(10) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `clients` -- CREATE TABLE `clients` ( `id` int(10) UNSIGNED NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `client_code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `psycological_types_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'psychological_id', `dob` date DEFAULT NULL COMMENT 'client date of birth', `age` tinyint(127) DEFAULT NULL COMMENT 'client age', `parent` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'client name of parent or guardian', `contact_address` text COLLATE utf8mb4_unicode_ci COMMENT 'client contact address', `telephone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'client telephone number', `ok_to_contact` tinyint(4) DEFAULT NULL COMMENT 'client ok to contact', `ok_to_write` tinyint(4) DEFAULT NULL COMMENT 'client write to', `about_actualise` varchar(199) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'about about actualise', `referred_by` varchar(199) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'referred by of client', `referred_by_description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Refered_by_other_descripion', `contact_tel_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'client contact tel no', `gp` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'name and address of emergency contact pearson', `medication_choise` varchar(199) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'medication of client', `medication_description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Medication YES the description', `termes_condition` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Terms and Condition', `disclaimer` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Disclaimer', `information` tinyint(4) DEFAULT NULL COMMENT 'Schedule Date of Assessment', `gdpr` tinyint(4) DEFAULT NULL COMMENT 'Schedule Date of Assessment', `research` tinyint(4) DEFAULT NULL COMMENT 'Schedule Date of Assessment', `consent_data_collection` tinyint(4) DEFAULT NULL COMMENT 'Schedule Date of Assessment', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'client status for 1:Active,0:Inactive', `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `created_by` int(10) UNSIGNED DEFAULT NULL COMMENT 'Record created by user', `updated_by` int(10) UNSIGNED DEFAULT NULL COMMENT 'Record updated by user' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `clients` -- INSERT INTO `clients` (`id`, `user_id`, `client_code`, `psycological_types_id`, `dob`, `age`, `parent`, `contact_address`, `telephone`, `ok_to_contact`, `ok_to_write`, `about_actualise`, `referred_by`, `referred_by_description`, `contact_tel_no`, `gp`, `medication_choise`, `medication_description`, `termes_condition`, `disclaimer`, `information`, `gdpr`, `research`, `consent_data_collection`, `status`, `deleted_at`, `created_at`, `updated_at`, `created_by`, `updated_by`) VALUES (1, 4, 'JANE01', '1,3', '2016-08-14', 2, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, 1, NULL, '2018-09-05 08:05:23', '2018-10-17 02:50:30', 1, 1), (2, 5, 'SARMAL', '5', '2015-09-18', 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, 1, '2018-09-19 03:38:12', '2018-09-19 03:31:08', '2018-09-19 03:38:12', 2, NULL), (3, 7, 'MICH01', '3,6', '1987-07-18', 31, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, 1, '2018-10-09 07:50:03', '2018-09-28 09:15:57', '2018-10-09 07:50:03', 2, 2), (4, 8, 'NFT1000', '1,2', '1987-07-18', 31, NULL, NULL, NULL, 0, 0, NULL, '1', NULL, '5848930003', 'Dr. Margaret', '1', NULL, 1, 1, NULL, NULL, NULL, NULL, 1, NULL, '2018-10-09 07:58:24', '2018-11-14 12:18:19', 2, 2), (5, 10, 'MICHAEL', '1,5', '1979-06-13', 39, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, 1, '2018-11-02 06:30:56', '2018-10-15 04:12:31', '2018-11-02 06:30:56', 2, NULL), (6, 13, 'NF1000', '1', '1979-06-13', 39, '<NAME>', '19D Richmond Gardens etc', '0874113742', 1, 1, 'Friend recommended it', '3,6', NULL, NULL, NULL, '2', NULL, 1, 1, NULL, NULL, NULL, NULL, 1, NULL, '2018-11-02 06:36:06', '2018-11-02 06:36:06', 2, NULL), (7, 16, 'MIKE0001', NULL, '2018-09-05', 0, NULL, NULL, '23232323', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, 1, 1, 1, 1, NULL, '2018-11-19 05:31:44', '2018-12-04 05:13:59', 1, 1), (8, 17, 'NF1002', NULL, '2017-07-31', 1, '<NAME>', 'The Moon', '0009998888', 0, 1, 'Online', '5,8', NULL, NULL, NULL, '1', NULL, 1, 1, NULL, NULL, NULL, NULL, 1, NULL, '2018-11-19 07:45:05', '2018-11-20 10:27:53', 2, 2), (9, 18, 'MARK01', NULL, '2018-11-19', 1, NULL, NULL, NULL, 0, 0, NULL, '9', 'ghghgh', NULL, NULL, '1', 'ghghghgh', 0, 0, 1, 1, 1, 0, 1, NULL, '2018-11-27 03:19:21', '2018-12-04 08:31:26', 2, 1), (10, 19, 'NFT022', '2', '2016-03-23', 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, 1, NULL, '2018-12-04 03:43:03', '2018-12-04 03:43:03', 1, NULL), (11, 20, 'CLI00001', '1,2', '1990-12-12', 27, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, 1, '2018-12-14 00:26:54', '2018-12-14 00:23:21', '2018-12-14 00:26:54', 1, 1), (12, 22, '12098', '1,2,3,4', '2002-06-26', 17, NULL, NULL, NULL, 0, 0, '@', NULL, NULL, 'asdfasdfasdfasdfasdfasdfasdfasdfasdf1321321321321321312sdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfa', NULL, NULL, NULL, 0, 0, 1, 1, 1, 1, 1, NULL, '2019-01-17 02:29:39', '2019-01-21 04:32:03', 1, 1); -- -------------------------------------------------------- -- -- Table structure for table `client_intervention` -- CREATE TABLE `client_intervention` ( `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary key of table', `client_id` int(10) UNSIGNED NOT NULL COMMENT 'Foreign Key of Client table', `intervention_type` int(10) UNSIGNED NOT NULL COMMENT 'Foreign Key of Intervention table', `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0-Pending, 1-Completed', `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 `client_intervention` -- INSERT INTO `client_intervention` (`id`, `client_id`, `intervention_type`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 1, 1, NULL, NULL), (2, 1, 3, 1, NULL, NULL), (3, 2, 7, 0, NULL, NULL), (4, 3, 1, 0, NULL, NULL), (5, 4, 1, 1, NULL, NULL), (6, 5, 1, 0, NULL, NULL), (7, 6, 1, 0, NULL, NULL), (8, 7, 2, 0, NULL, NULL), (9, 7, 6, 0, NULL, NULL), (10, 7, 7, 1, NULL, NULL), (11, 8, 1, 1, NULL, NULL), (12, 9, 2, 0, NULL, NULL), (13, 9, 3, 1, NULL, NULL), (14, 10, 4, 0, NULL, NULL), (15, 10, 6, 0, NULL, NULL), (16, 11, 1, 0, NULL, NULL), (17, 11, 2, 0, NULL, NULL), (18, 11, 3, 0, NULL, NULL), (19, 12, 1, 1, NULL, NULL), (20, 12, 3, 1, NULL, NULL), (21, 12, 4, 1, NULL, NULL), (22, 12, 5, 1, NULL, NULL), (23, 12, 6, 1, NULL, NULL), (24, 12, 8, 1, NULL, NULL), (25, 12, 10, 1, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `client_knowledge` -- CREATE TABLE `client_knowledge` ( `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key of Table', `client_id` int(10) UNSIGNED NOT NULL COMMENT 'Foreign key of Client Table', `knowledge_bases_id` int(10) UNSIGNED NOT NULL COMMENT 'Foreign key of knowledge Base Table', `ratings` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'ratings of knowledge', `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 `client_knowledge` -- INSERT INTO `client_knowledge` (`id`, `client_id`, `knowledge_bases_id`, `ratings`, `created_at`, `updated_at`) VALUES (1, 1, 1, '5', NULL, '2018-09-19 03:40:21'), (2, 1, 2, '4.5', NULL, '2018-09-14 04:45:04'), (3, 1, 3, '3.5', NULL, '2018-10-05 04:34:35'), (4, 3, 3, '3.5', NULL, '2018-09-28 10:00:12'), (5, 1, 3, NULL, NULL, NULL), (6, 3, 3, NULL, NULL, NULL), (7, 4, 4, '5', NULL, '2018-10-09 08:11:39'), (8, 4, 5, NULL, NULL, NULL), (9, 4, 6, NULL, NULL, NULL), (10, 4, 6, NULL, NULL, NULL), (11, 1, 6, NULL, NULL, NULL), (12, 1, 6, NULL, NULL, NULL), (13, 1, 6, NULL, NULL, NULL), (14, 8, 6, NULL, NULL, NULL), (15, 9, 6, '4', NULL, '2018-11-27 07:54:43'), (16, 9, 5, '3', NULL, '2018-12-14 04:01:05'), (17, 12, 10, NULL, NULL, NULL), (18, 12, 9, '3.5', NULL, '2019-03-26 09:20:12'), (19, 12, 8, NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `clinicalservices_details` -- CREATE TABLE `clinicalservices_details` ( `id` int(10) UNSIGNED NOT NULL, `client_id` int(10) UNSIGNED NOT NULL, `clinical_service_id` smallint(5) UNSIGNED NOT NULL, `created_by` int(10) UNSIGNED DEFAULT NULL COMMENT 'Record created by user', `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 `clinicalservices_details` -- INSERT INTO `clinicalservices_details` (`id`, `client_id`, `clinical_service_id`, `created_by`, `created_at`, `updated_at`) VALUES (31, 1, 1, 1, NULL, NULL), (32, 1, 2, 1, NULL, NULL), (33, 6, 1, 2, NULL, NULL), (35, 4, 1, 2, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `custom_question` -- CREATE TABLE `custom_question` ( `id` int(10) UNSIGNED NOT NULL, `client_id` int(10) UNSIGNED NOT NULL COMMENT 'Foreign key of Client Table', `question_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Question Name', `is_submited_by` int(11) DEFAULT NULL COMMENT '1:Client submit the goals,0:Admin Submit the goals', `created_by` int(10) UNSIGNED NOT NULL COMMENT 'Record created by user', `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 `custom_question` -- INSERT INTO `custom_question` (`id`, `client_id`, `question_name`, `is_submited_by`, `created_by`, `created_at`, `updated_at`) VALUES (9, 1, 'Anxiety (Cleaning, hate being late, panic attacks)', NULL, 2, NULL, NULL), (10, 1, 'Short-term memory', NULL, 2, NULL, NULL), (11, 1, 'Focus (Difficulty switching focus)', NULL, 2, NULL, NULL), (12, 1, 'Busy brain (Walk fast, racing thoughts, talk fast, can’t switch off)', NULL, 2, NULL, NULL), (13, 1, 'Need to please (Taking on too much at work)', NULL, 2, NULL, NULL), (14, 1, 'Details focussed (Need for order and structure)', NULL, 2, NULL, NULL), (19, 3, 'Better mood at work', NULL, 2, NULL, NULL), (20, 3, 'Happier with family', NULL, 2, NULL, NULL), (21, 3, 'Anxiety with Dixie', NULL, 2, NULL, NULL), (22, 3, 'Stop biting my nails', NULL, 2, NULL, NULL), (23, 7, 'Anxiety', NULL, 1, NULL, NULL), (24, 7, 'Thinking too much', NULL, 1, NULL, NULL), (30, 8, 'Better attention in classroom', NULL, 2, NULL, NULL), (31, 8, 'I need to be able to sit still', NULL, 2, NULL, NULL), (32, 8, 'Low mood is a big issue', NULL, 2, NULL, NULL), (33, 8, 'Get homework done quicker', NULL, 2, NULL, NULL), (34, 8, 'Stop fighting with sister', NULL, 2, NULL, NULL), (35, 8, 'Clean up in his bedroom', NULL, 2, NULL, NULL), (36, 9, 'sdsd', NULL, 1, NULL, NULL), (37, 9, 'sdssdsd', NULL, 1, NULL, NULL), (38, 9, 'gfg', 1, 18, NULL, NULL), (39, 12, 'subjective goal -1', 1, 22, NULL, NULL), (40, 12, 'subjective goal -6', 1, 22, NULL, NULL), (41, 12, 'subjective goal -2', 1, 22, NULL, NULL), (42, 12, 'subjective goal -3', 1, 22, NULL, NULL), (43, 12, 'subjective goal -4', 1, 22, NULL, NULL), (44, 12, 'subjective goal -5', 1, 22, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `email_templates` -- CREATE TABLE `email_templates` ( `id` int(10) UNSIGNED NOT NULL, `type_id` int(10) UNSIGNED NOT NULL, `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `subject` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `body` text COLLATE utf8mb4_unicode_ci NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '1', `created_by` int(10) UNSIGNED NOT NULL, `updated_by` int(10) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `email_templates` -- INSERT INTO `email_templates` (`id`, `type_id`, `title`, `subject`, `body`, `status`, `created_by`, `updated_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 1, 'User Registration', 'Actualise: User Registration', '<center>\n<table id="bodyTable" border="0" width="100%" cellspacing="0" cellpadding="0" align="center">\n<tbody>\n<tr>\n<td id="bodyCell" align="center" valign="top">\n<table id="templateContainer" border="0" width="600" cellspacing="0" cellpadding="0" align="center">\n<tbody>\n<tr>\n<td align="left" valign="top">\n<table id="templateBody" border="0" width="600" cellspacing="0" cellpadding="0">\n<tbody>\n<tr>\n<td class="bodyContainer" style="padding-top: 9px; padding-bottom: 9px;" valign="top">\n<table class="mcnBoxedTextBlock" border="0" width="100%" cellspacing="0" cellpadding="0">\n<tbody class="mcnBoxedTextBlockOuter">\n<tr>\n<td class="mcnBoxedTextBlockInner" valign="top">\n<table class="mcnBoxedTextContentContainer" border="0" width="600" cellspacing="0" cellpadding="0" align="left">\n<tbody>\n<tr>\n<td style="padding: 9px 18px 9px 18px;">\n<table class="mcnTextContentContainer" style="background-color: #ffffff;" border="0" width="100%" cellspacing="0" cellpadding="18">\n<tbody>\n<tr>\n<td class="mcnTextContent" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; text-align: left; padding: 36px; word-break: break-word;" valign="top">\n<div style="text-align: left; word-wrap: break-word;">Thank you for joining [app_name]! To finish signing up, you just need to confirm your account. <br /> <br />To confirm your email, please click this link:&nbsp;\n[confirmation_link] <br /> <br />Thanks! <br />The [app_name] Team\n<div class="footer" style="font-size: 0.7em; padding: 0px; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; text-align: right; color: #777777; line-height: 14px; margin-top: 36px;">&copy;\n [app_name]</div>\n</div>\n</td>\n</tr>\n</tbody>\n</table>\n</td>\n</tr>\n</tbody>\n</table>\n</td>\n</tr>\n</tbody>\n</table>\n</td>\n</tr>\n</tbody>\n</table>\n<!-- // END BODY --></td>\n</tr>\n</tbody>\n</table>\n<!-- // END TEMPLATE --></td>\n</tr>\n</tbody>\n</table>\n</center>', 0, 1, NULL, '2018-12-14 03:16:47', '2018-12-14 03:16:47', NULL), (2, 2, 'Create User', 'Actualise: New Account', '<!DOCTYPE html>\n<html>\n\n<head>\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\n <style type="text/css" rel="stylesheet" media="all">\n /* Layout ------------------------------ */\n .body{ margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;}\n .email-wrapper {width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;}\n /* Masthead ----------------------- */\n .email-masthead{padding: 25px 0; text-align: center;}\n .email-masthead_name{font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;}\n .email-body{width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;}\n .email-body_inner{width: auto; max-width: 570px; margin: 0 auto; padding: 0;}\n .email-body_cell{padding: 35px;}\n .email-footer{width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;}\n .email-footer_cell{color: #AEAEAE; padding: 35px; text-align: center;}\n /* Body ------------------------------ */\n .body_action{width: 100%; margin: 30px auto; padding: 0; text-align: center;}\n .body_sub{margin-top: 25px; padding-top: 25px; border-top: 1px solid #EDEFF2;}\n /* Type ------------------------------ */\n\n anchor => color: #3869D4;,\n .header-1{ margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;}\n .paragraph { margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;}\n .paragraph-sub{ margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;}\n .paragraph-center{text-align: center;}\n /* Buttons ------------------------------ */\n .button{display: block; display: inline-block; width: 200px; min-height: 20px; padding: 10px;\n background-color: #3869D4;\n border-radius: 3px;\n color: #ffffff;\n font-size: 15px;\n line-height: 25px;\n text-align: center;\n text-decoration: none;\n -webkit-text-size-adjust: none;\n}\n\n .button--green {background-color: #22BC66;}\n .button--red {background-color: #dc4d2f;}\n .button--blue {background-color: #3869D4;}\n .textfont {\n font-family: Arial, Helvetica Neue, Helvetica, sans-serif;\n }\n /* Media Queries */\n @media only screen and (max-width: 500px) {\n .button {\n width: 100% !important;\n }\n }\n </style>\n</head>\n<body style="margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;">\n <table width="100%" cellpadding="0" cellspacing="0">\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;" align="center">\n <table width="100%" cellpadding="0" cellspacing="0">\n <!-- Logo -->\n <tr>\n <td style="padding: 25px 0; text-align: center;">\n <div style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;">\n [app_name]\n </div>\n </td>\n </tr>\n <!-- Email Body -->\n\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;" width="100%">\n <table style="width: 100%; max-width: 570px; margin: 0 auto; padding: 0;" align="center" width="100" cellpadding="0" cellspacing="0">\n <tr>\n <td style="padding: 35px;font-family: Arial,Helvetica Neue, Helvetica, sans-serif;">\n <!-- Greeting -->\n <h1 style="margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;line-height: 1.5em;">\n Hello [user],\n </h1>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n </p>\n <!-- Intro -->\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Congratulations, you have been registered as backend user for Actualise Online Platform. Please keep this email for your records.\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Your login details are:\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Email Address: [email]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Password: <PASSWORD> </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Please click on the link below to log in.\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n [login_link]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Thanks! <br /> The [app_name] Team\n </p>\n </td>\n </tr>\n <!-- Footer -->\n <tr>\n <td>\n <table style="width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;" align="center" width="570" cellpadding="0" cellspacing="0">\n <tr>\n <td style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;color: #AEAEAE; padding: 35px; text-align: center;">\n <p style="margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;">\n &copy;2018\n <a style="color:#3869D4;">[app_name]</a>.\n All Rights Reserved.\n </p>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </body>\n </html>', 1, 1, NULL, '2018-12-14 03:16:47', '2018-12-14 03:16:47', NULL), (3, 3, 'Activate / Deactivate User', 'Actualise: Account [status]', '<center>\n<table id="bodyTable" border="0" width="100%" cellspacing="0" cellpadding="0" align="center">\n<tbody>\n<tr>\n<td id="bodyCell" align="center" valign="top">\n<table id="templateContainer" border="0" width="600" cellspacing="0" cellpadding="0" align="center">\n<tbody>\n<tr>\n<td align="left" valign="top">\n<table id="templateBody" border="0" width="600" cellspacing="0" cellpadding="0">\n<tbody>\n<tr>\n<td class="bodyContainer" style="padding-top: 9px; padding-bottom: 9px;" valign="top">\n<table class="mcnBoxedTextBlock" border="0" width="100%" cellspacing="0" cellpadding="0">\n<tbody class="mcnBoxedTextBlockOuter">\n<tr>\n<td class="mcnBoxedTextBlockInner" valign="top">\n<table class="mcnBoxedTextContentContainer" border="0" width="600" cellspacing="0" cellpadding="0" align="left">\n<tbody>\n<tr>\n<td style="padding: 9px 18px 9px 18px;">\n<table class="mcnTextContentContainer" style="background-color: #ffffff;" border="0" width="100%" cellspacing="0" cellpadding="18">\n<tbody>\n<tr>\n<td class="mcnTextContent" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; text-align: left; padding: 36px; word-break: break-word;" valign="top">\n<div style="text-align: left; word-wrap: break-word;">Your account has been [status].<br /> <br />Thanks! <br />The [app_name] Team\n<div class="footer" style="font-size: 0.7em; padding: 0px; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; text-align: right; color: #777777; line-height: 14px; margin-top: 36px;">&copy;\n [app_name]</div>\n</div>\n</td>\n</tr>\n</tbody>\n</table>\n</td>\n</tr>\n</tbody>\n</table>\n</td>\n</tr>\n</tbody>\n</table>\n</td>\n</tr>\n</tbody>\n</table>\n<!-- // END BODY --></td>\n</tr>\n</tbody>\n</table>\n<!-- // END TEMPLATE --></td>\n</tr>\n</tbody>\n</table>\n</center>', 0, 1, NULL, '2018-12-14 03:16:47', '2018-12-14 03:16:47', NULL), (4, 4, 'Change Password', 'Actualise: Password Changed', '<!DOCTYPE html>\n<html>\n\n<head>\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\n <style type="text/css" rel="stylesheet" media="all">\n /* Layout ------------------------------ */\n .body{ margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;}\n .email-wrapper {width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;}\n /* Masthead ----------------------- */\n .email-masthead{padding: 25px 0; text-align: center;}\n .email-masthead_name{font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;}\n .email-body{width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;}\n .email-body_inner{width: auto; max-width: 570px; margin: 0 auto; padding: 0;}\n .email-body_cell{padding: 35px;}\n .email-footer{width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;}\n .email-footer_cell{color: #AEAEAE; padding: 35px; text-align: center;}\n /* Body ------------------------------ */\n .body_action{width: 100%; margin: 30px auto; padding: 0; text-align: center;}\n .body_sub{margin-top: 25px; padding-top: 25px; border-top: 1px solid #EDEFF2;}\n /* Type ------------------------------ */\n\n anchor => color: #3869D4;,\n .header-1{ margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;}\n .paragraph { margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;}\n .paragraph-sub{ margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;}\n .paragraph-center{text-align: center;}\n /* Buttons ------------------------------ */\n .button{display: block; display: inline-block; width: 200px; min-height: 20px; padding: 10px;\n background-color: #3869D4;\n border-radius: 3px;\n color: #ffffff;\n font-size: 15px;\n line-height: 25px;\n text-align: center;\n text-decoration: none;\n -webkit-text-size-adjust: none;\n}\n\n .button--green {background-color: #22BC66;}\n .button--red {background-color: #dc4d2f;}\n .button--blue {background-color: #3869D4;}\n .textfont {\n font-family: Arial, Helvetica Neue, Helvetica, sans-serif;\n }\n /* Media Queries */\n @media only screen and (max-width: 500px) {\n .button {\n width: 100% !important;\n }\n }\n </style>\n</head>\n<body style="margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;">\n <table width="100%" cellpadding="0" cellspacing="0">\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;" align="center">\n <table width="100%" cellpadding="0" cellspacing="0">\n <!-- Logo -->\n <tr>\n <td style="padding: 25px 0; text-align: center;">\n <div style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;">\n [app_name]\n </div>\n </td>\n </tr>\n <!-- Email Body -->\n\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;" width="100%">\n <table style="width: 100%; max-width: 570px; margin: 0 auto; padding: 0;" align="center" width="100" cellpadding="0" cellspacing="0">\n <tr>\n <td style="padding: 35px;font-family: Arial,Helvetica Neue, Helvetica, sans-serif;">\n <!-- Greeting -->\n <h1 style="margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;line-height: 1.5em;">\n Hello [client],\n </h1>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n </p>\n <!-- Intro -->\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Your password has been changed successfully.\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n New password: [password]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Please click on the link below to log in with your new password.\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n [login_link]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Thanks! <br /> The [app_name] Team\n </p>\n </td>\n </tr>\n <!-- Footer -->\n <tr>\n <td>\n <table style="width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;" align="center" width="570" cellpadding="0" cellspacing="0">\n <tr>\n <td style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;color: #AEAEAE; padding: 35px; text-align: center;">\n <p style="margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;">\n &copy;2018\n <a style="color:#3869D4;">[app_name]</a>.\n All Rights Reserved.\n </p>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </body>\n </html>', 1, 1, NULL, '2018-12-14 03:16:47', '2018-12-14 03:16:47', NULL), (5, 5, 'Create Client', 'Actualise: New Account', '<!DOCTYPE html>\n<html>\n\n<head>\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\n <style type="text/css" rel="stylesheet" media="all">\n /* Layout ------------------------------ */\n .body{ margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;}\n .email-wrapper {width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;}\n /* Masthead ----------------------- */\n .email-masthead{padding: 25px 0; text-align: center;}\n .email-masthead_name{font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;}\n .email-body{width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;}\n .email-body_inner{width: auto; max-width: 570px; margin: 0 auto; padding: 0;}\n .email-body_cell{padding: 35px;}\n .email-footer{width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;}\n .email-footer_cell{color: #AEAEAE; padding: 35px; text-align: center;}\n /* Body ------------------------------ */\n .body_action{width: 100%; margin: 30px auto; padding: 0; text-align: center;}\n .body_sub{margin-top: 25px; padding-top: 25px; border-top: 1px solid #EDEFF2;}\n /* Type ------------------------------ */\n\n anchor => color: #3869D4;,\n .header-1{ margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;}\n .paragraph { margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;}\n .paragraph-sub{ margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;}\n .paragraph-center{text-align: center;}\n /* Buttons ------------------------------ */\n .button{display: block; display: inline-block; width: 200px; min-height: 20px; padding: 10px;\n background-color: #3869D4;\n border-radius: 3px;\n color: #ffffff;\n font-size: 15px;\n line-height: 25px;\n text-align: center;\n text-decoration: none;\n -webkit-text-size-adjust: none;\n}\n\n .button--green {background-color: #22BC66;}\n .button--red {background-color: #dc4d2f;}\n .button--blue {background-color: #3869D4;}\n .textfont {\n font-family: Arial, Helvetica Neue, Helvetica, sans-serif;\n }\n /* Media Queries */\n @media only screen and (max-width: 500px) {\n .button {\n width: 100% !important;\n }\n }\n </style>\n</head>\n<body style="margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;">\n <table width="100%" cellpadding="0" cellspacing="0">\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;" align="center">\n <table width="100%" cellpadding="0" cellspacing="0">\n <!-- Logo -->\n <tr>\n <td style="padding: 25px 0; text-align: center;">\n <div style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;">\n [app_name]\n </div>\n </td>\n </tr>\n <!-- Email Body -->\n\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;" width="100%">\n <table style="width: 100%; max-width: 570px; margin: 0 auto; padding: 0;" align="center" width="100" cellpadding="0" cellspacing="0">\n <tr>\n <td style="padding: 35px;font-family: Arial,Helvetica Neue, Helvetica, sans-serif;">\n <!-- Greeting -->\n <h1 style="margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;line-height: 1.5em;">\n Hello [client],\n </h1>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n </p>\n <!-- Intro -->\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Congratulations, your account has been created with Actualise Online Platform successfully. Please keep this email for your records.\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Your login details are:\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Email Address: [email]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Password: <PASSWORD> </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Please click on the link below to log in.\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n [login_link]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Thanks! <br /> The [app_name] Team\n </p>\n </td>\n </tr>\n <!-- Footer -->\n <tr>\n <td>\n <table style="width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;" align="center" width="570" cellpadding="0" cellspacing="0">\n <tr>\n <td style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;color: #AEAEAE; padding: 35px; text-align: center;">\n <p style="margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;">\n &copy;2018\n <a style="color:#3869D4;">[app_name]</a>.\n All Rights Reserved.\n </p>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </body>\n </html>', 1, 1, NULL, '2018-12-14 03:16:47', '2018-12-14 03:16:47', NULL), (6, 6, 'Questionnaires', 'Actualise: New Action For You', '<!DOCTYPE html>\n<html>\n\n<head>\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\n <style type="text/css" rel="stylesheet" media="all">\n /* Layout ------------------------------ */\n .body{ margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;}\n .email-wrapper {width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;}\n /* Masthead ----------------------- */\n .email-masthead{padding: 25px 0; text-align: center;}\n .email-masthead_name{font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;}\n .email-body{width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;}\n .email-body_inner{width: auto; max-width: 570px; margin: 0 auto; padding: 0;}\n .email-body_cell{padding: 35px;}\n .email-footer{width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;}\n .email-footer_cell{color: #AEAEAE; padding: 35px; text-align: center;}\n /* Body ------------------------------ */\n .body_action{width: 100%; margin: 30px auto; padding: 0; text-align: center;}\n .body_sub{margin-top: 25px; padding-top: 25px; border-top: 1px solid #EDEFF2;}\n /* Type ------------------------------ */\n\n anchor => color: #3869D4;,\n .header-1{ margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;}\n .paragraph { margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;}\n .paragraph-sub{ margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;}\n .paragraph-center{text-align: center;}\n /* Buttons ------------------------------ */\n .button{display: block; display: inline-block; width: 200px; min-height: 20px; padding: 10px;\n background-color: #3869D4;\n border-radius: 3px;\n color: #ffffff;\n font-size: 15px;\n line-height: 25px;\n text-align: center;\n text-decoration: none;\n -webkit-text-size-adjust: none;\n}\n\n .button--green {background-color: #22BC66;}\n .button--red {background-color: #dc4d2f;}\n .button--blue {background-color: #3869D4;}\n .textfont {\n font-family: Arial, Helvetica Neue, Helvetica, sans-serif;\n }\n /* Media Queries */\n @media only screen and (max-width: 500px) {\n .button {\n width: 100% !important;\n }\n }\n </style>\n</head>\n<body style="margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;">\n <table width="100%" cellpadding="0" cellspacing="0">\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;" align="center">\n <table width="100%" cellpadding="0" cellspacing="0">\n <!-- Logo -->\n <tr>\n <td style="padding: 25px 0; text-align: center;">\n <div style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;">\n [app_name]\n </div>\n </td>\n </tr>\n <!-- Email Body -->\n\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;" width="100%">\n <table style="width: 100%; max-width: 570px; margin: 0 auto; padding: 0;" align="center" width="100" cellpadding="0" cellspacing="0">\n <tr>\n <td style="padding: 35px;font-family: Arial,Helvetica Neue, Helvetica, sans-serif;">\n <!-- Greeting -->\n <h1 style="margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;line-height: 1.5em;">\n Hello [client],\n </h1>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n </p>\n <!-- Intro -->\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n A new action has been created for you by the Actualise Team. Please click on the link below to respond to this action.\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Assessment Title: [title]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Action Link: [session_link]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Thanks! <br />The [app_name] Team\n </p>\n </td>\n </tr>\n <!-- Footer -->\n <tr>\n <td>\n <table style="width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;" align="center" width="570" cellpadding="0" cellspacing="0">\n <tr>\n <td style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;color: #AEAEAE; padding: 35px; text-align: center;">\n <p style="margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;">\n &copy;2018\n <a style="color:#3869D4;">[app_name]</a>.\n All Rights Reserved.\n </p>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </body>\n </html>\n', 1, 1, NULL, '2018-12-14 03:16:47', '2018-12-14 03:16:47', NULL), (7, 7, 'New Resource', 'Actualise: New Resource', '<!DOCTYPE html>\n<html>\n\n<head>\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\n <style type="text/css" rel="stylesheet" media="all">\n /* Layout ------------------------------ */\n .body{ margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;}\n .email-wrapper {width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;}\n /* Masthead ----------------------- */\n .email-masthead{padding: 25px 0; text-align: center;}\n .email-masthead_name{font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;}\n .email-body{width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;}\n .email-body_inner{width: auto; max-width: 570px; margin: 0 auto; padding: 0;}\n .email-body_cell{padding: 35px;}\n .email-footer{width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;}\n .email-footer_cell{color: #AEAEAE; padding: 35px; text-align: center;}\n /* Body ------------------------------ */\n .body_action{width: 100%; margin: 30px auto; padding: 0; text-align: center;}\n .body_sub{margin-top: 25px; padding-top: 25px; border-top: 1px solid #EDEFF2;}\n /* Type ------------------------------ */\n\n anchor => color: #3869D4;,\n .header-1{ margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;}\n .paragraph { margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;}\n .paragraph-sub{ margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;}\n .paragraph-center{text-align: center;}\n /* Buttons ------------------------------ */\n .button{display: block; display: inline-block; width: 200px; min-height: 20px; padding: 10px;\n background-color: #3869D4;\n border-radius: 3px;\n color: #ffffff;\n font-size: 15px;\n line-height: 25px;\n text-align: center;\n text-decoration: none;\n -webkit-text-size-adjust: none;\n}\n\n .button--green {background-color: #22BC66;}\n .button--red {background-color: #dc4d2f;}\n .button--blue {background-color: #3869D4;}\n .textfont {\n font-family: Arial, Helvetica Neue, Helvetica, sans-serif;\n }\n /* Media Queries */\n @media only screen and (max-width: 500px) {\n .button {\n width: 100% !important;\n }\n }\n </style>\n</head>\n<body style="margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;">\n <table width="100%" cellpadding="0" cellspacing="0">\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;" align="center">\n <table width="100%" cellpadding="0" cellspacing="0">\n <!-- Logo -->\n <tr>\n <td style="padding: 25px 0; text-align: center;">\n <div style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;">\n [app_name]\n </div>\n </td>\n </tr>\n <!-- Email Body -->\n\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;" width="100%">\n <table style="width: 100%; max-width: 570px; margin: 0 auto; padding: 0;" align="center" width="100" cellpadding="0" cellspacing="0">\n <tr>\n <td style="padding: 35px;font-family: Arial,Helvetica Neue, Helvetica, sans-serif;">\n <!-- Greeting -->\n <h1 style="margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;line-height: 1.5em;">\n Hello [client],\n </h1>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n </p>\n <!-- Intro -->\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n We are sending you a resource for your reveiw. Please login and check for more details.\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Resource Title: [title]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Resource Link: [link]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Thanks! <br />The [app_name] Team\n </p>\n </td>\n </tr>\n <!-- Footer -->\n <tr>\n <td>\n <table style="width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;" align="center" width="570" cellpadding="0" cellspacing="0">\n <tr>\n <td style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;color: #AEAEAE; padding: 35px; text-align: center;">\n <p style="margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;">\n &copy;2018\n <a style="color:#3869D4;">[app_name]</a>.\n All Rights Reserved.\n </p>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </body>\n </html>\n', 1, 1, NULL, '2018-12-14 03:16:47', '2018-12-14 03:16:47', NULL), (8, 8, 'Answers Submitted by Client', 'Actualise: Answers Submitted by Client', '<!DOCTYPE html>\n<html>\n\n<head>\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\n <style type="text/css" rel="stylesheet" media="all">\n /* Layout ------------------------------ */\n .body{ margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;}\n .email-wrapper {width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;}\n /* Masthead ----------------------- */\n .email-masthead{padding: 25px 0; text-align: center;}\n .email-masthead_name{font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;}\n .email-body{width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;}\n .email-body_inner{width: auto; max-width: 570px; margin: 0 auto; padding: 0;}\n .email-body_cell{padding: 35px;}\n .email-footer{width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;}\n .email-footer_cell{color: #AEAEAE; padding: 35px; text-align: center;}\n /* Body ------------------------------ */\n .body_action{width: 100%; margin: 30px auto; padding: 0; text-align: center;}\n .body_sub{margin-top: 25px; padding-top: 25px; border-top: 1px solid #EDEFF2;}\n /* Type ------------------------------ */\n\n anchor => color: #3869D4;,\n .header-1{ margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;}\n .paragraph { margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;}\n .paragraph-sub{ margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;}\n .paragraph-center{text-align: center;}\n /* Buttons ------------------------------ */\n .button{display: block; display: inline-block; width: 200px; min-height: 20px; padding: 10px;\n background-color: #3869D4;\n border-radius: 3px;\n color: #ffffff;\n font-size: 15px;\n line-height: 25px;\n text-align: center;\n text-decoration: none;\n -webkit-text-size-adjust: none;\n}\n\n .button--green {background-color: #22BC66;}\n .button--red {background-color: #dc4d2f;}\n .button--blue {background-color: #3869D4;}\n .textfont {\n font-family: Arial, Helvetica Neue, Helvetica, sans-serif;\n }\n /* Media Queries */\n @media only screen and (max-width: 500px) {\n .button {\n width: 100% !important;\n }\n }\n </style>\n</head>\n<body style="margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;">\n <table width="100%" cellpadding="0" cellspacing="0">\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;" align="center">\n <table width="100%" cellpadding="0" cellspacing="0">\n <!-- Logo -->\n <tr>\n <td style="padding: 25px 0; text-align: center;">\n <div style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;">\n [app_name]\n </div>\n </td>\n </tr>\n <!-- Email Body -->\n\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;" width="100%">\n <table style="width: 100%; max-width: 570px; margin: 0 auto; padding: 0;" align="center" width="100" cellpadding="0" cellspacing="0">\n <tr>\n <td style="padding: 35px;font-family: Arial,Helvetica Neue, Helvetica, sans-serif;">\n <!-- Greeting -->\n <h1 style="margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;line-height: 1.5em;">\n Hello [users],\n </h1>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n </p>\n <!-- Intro -->\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Your client has submitted answers to the questions. [session_link] to review.\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Assessment Title: [title]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Assessment Date : [session_date]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Clinic Service : [intervention]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Question Pattern: [question_type]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Submitted On : [submited_date]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Thanks! <br />The [app_name] Team\n </p>\n </td>\n </tr>\n <!-- Footer -->\n <tr>\n <td>\n <table style="width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;" align="center" width="570" cellpadding="0" cellspacing="0">\n <tr>\n <td style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;color: #AEAEAE; padding: 35px; text-align: center;">\n <p style="margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;">\n &copy;2018\n <a style="color:#3869D4;">[app_name]</a>.\n All Rights Reserved.\n </p>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </body>\n </html>\n', 1, 1, NULL, '2018-12-14 03:16:47', '2018-12-14 03:16:47', NULL); INSERT INTO `email_templates` (`id`, `type_id`, `title`, `subject`, `body`, `status`, `created_by`, `updated_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (9, 9, 'Cinic Service - Completed', 'Actualise: Cinic Service Completed', '<!DOCTYPE html>\n<html>\n\n<head>\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\n <style type="text/css" rel="stylesheet" media="all">\n /* Layout ------------------------------ */\n .body{ margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;}\n .email-wrapper {width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;}\n /* Masthead ----------------------- */\n .email-masthead{padding: 25px 0; text-align: center;}\n .email-masthead_name{font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;}\n .email-body{width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;}\n .email-body_inner{width: auto; max-width: 570px; margin: 0 auto; padding: 0;}\n .email-body_cell{padding: 35px;}\n .email-footer{width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;}\n .email-footer_cell{color: #AEAEAE; padding: 35px; text-align: center;}\n /* Body ------------------------------ */\n .body_action{width: 100%; margin: 30px auto; padding: 0; text-align: center;}\n .body_sub{margin-top: 25px; padding-top: 25px; border-top: 1px solid #EDEFF2;}\n /* Type ------------------------------ */\n\n anchor => color: #3869D4;,\n .header-1{ margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;}\n .paragraph { margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;}\n .paragraph-sub{ margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;}\n .paragraph-center{text-align: center;}\n /* Buttons ------------------------------ */\n .button{display: block; display: inline-block; width: 200px; min-height: 20px; padding: 10px;\n background-color: #3869D4;\n border-radius: 3px;\n color: #ffffff;\n font-size: 15px;\n line-height: 25px;\n text-align: center;\n text-decoration: none;\n -webkit-text-size-adjust: none;\n}\n\n .button--green {background-color: #22BC66;}\n .button--red {background-color: #dc4d2f;}\n .button--blue {background-color: #3869D4;}\n .textfont {\n font-family: Arial, Helvetica Neue, Helvetica, sans-serif;\n }\n /* Media Queries */\n @media only screen and (max-width: 500px) {\n .button {\n width: 100% !important;\n }\n }\n </style>\n</head>\n<body style="margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;">\n <table width="100%" cellpadding="0" cellspacing="0">\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;" align="center">\n <table width="100%" cellpadding="0" cellspacing="0">\n <!-- Logo -->\n <tr>\n <td style="padding: 25px 0; text-align: center;">\n <div style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;">\n [app_name]\n </div>\n </td>\n </tr>\n <!-- Email Body -->\n\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;" width="100%">\n <table style="width: 100%; max-width: 570px; margin: 0 auto; padding: 0;" align="center" width="100" cellpadding="0" cellspacing="0">\n <tr>\n <td style="padding: 35px;font-family: Arial,Helvetica Neue, Helvetica, sans-serif;">\n <!-- Greeting -->\n <h1 style="margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;line-height: 1.5em;">\n Hello [client],\n </h1>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n </p>\n <!-- Intro -->\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n It looks like your time with us at Actualise has hit a big milestone! Clinic service - [intervention_service] is completed now. Could you spare a few moments to give us some feedback; your comments are very valuable to us.\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Feedback: [feedback_link]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Testimonial: [testimonial_link]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Thanks! <br /> The [app_name] Team\n </p>\n </td>\n </tr>\n <!-- Footer -->\n <tr>\n <td>\n <table style="width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;" align="center" width="570" cellpadding="0" cellspacing="0">\n <tr>\n <td style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;color: #AEAEAE; padding: 35px; text-align: center;">\n <p style="margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;">\n &copy;2018\n <a style="color:#3869D4;">[app_name]</a>.\n All Rights Reserved.\n </p>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </body>\n </html>', 1, 1, NULL, '2018-12-14 03:16:47', '2018-12-14 03:16:47', NULL), (10, 10, 'Resend Resource', 'Actualise: Resend Resource', '<!DOCTYPE html>\n<html>\n\n<head>\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\n <style type="text/css" rel="stylesheet" media="all">\n /* Layout ------------------------------ */\n .body{ margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;}\n .email-wrapper {width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;}\n /* Masthead ----------------------- */\n .email-masthead{padding: 25px 0; text-align: center;}\n .email-masthead_name{font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;}\n .email-body{width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;}\n .email-body_inner{width: auto; max-width: 570px; margin: 0 auto; padding: 0;}\n .email-body_cell{padding: 35px;}\n .email-footer{width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;}\n .email-footer_cell{color: #AEAEAE; padding: 35px; text-align: center;}\n /* Body ------------------------------ */\n .body_action{width: 100%; margin: 30px auto; padding: 0; text-align: center;}\n .body_sub{margin-top: 25px; padding-top: 25px; border-top: 1px solid #EDEFF2;}\n /* Type ------------------------------ */\n\n anchor => color: #3869D4;,\n .header-1{ margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;}\n .paragraph { margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;}\n .paragraph-sub{ margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;}\n .paragraph-center{text-align: center;}\n /* Buttons ------------------------------ */\n .button{display: block; display: inline-block; width: 200px; min-height: 20px; padding: 10px;\n background-color: #3869D4;\n border-radius: 3px;\n color: #ffffff;\n font-size: 15px;\n line-height: 25px;\n text-align: center;\n text-decoration: none;\n -webkit-text-size-adjust: none;\n}\n\n .button--green {background-color: #22BC66;}\n .button--red {background-color: #dc4d2f;}\n .button--blue {background-color: #3869D4;}\n .textfont {\n font-family: Arial, Helvetica Neue, Helvetica, sans-serif;\n }\n /* Media Queries */\n @media only screen and (max-width: 500px) {\n .button {\n width: 100% !important;\n }\n }\n </style>\n</head>\n<body style="margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;">\n <table width="100%" cellpadding="0" cellspacing="0">\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;" align="center">\n <table width="100%" cellpadding="0" cellspacing="0">\n <!-- Logo -->\n <tr>\n <td style="padding: 25px 0; text-align: center;">\n <div style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;">\n [app_name]\n </div>\n </td>\n </tr>\n <!-- Email Body -->\n\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;" width="100%">\n <table style="width: 100%; max-width: 570px; margin: 0 auto; padding: 0;" align="center" width="100" cellpadding="0" cellspacing="0">\n <tr>\n <td style="padding: 35px;font-family: Arial,Helvetica Neue, Helvetica, sans-serif;">\n <!-- Greeting -->\n <h1 style="margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;line-height: 1.5em;">\n Hello [client],\n </h1>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n </p>\n <!-- Intro -->\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n We are re-sending you a resource. Please login and check for more details.\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Resource Title: [title]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Resource Link: [link]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Thanks! <br />The [app_name] Team\n </p>\n </td>\n </tr>\n <!-- Footer -->\n <tr>\n <td>\n <table style="width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;" align="center" width="570" cellpadding="0" cellspacing="0">\n <tr>\n <td style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;color: #AEAEAE; padding: 35px; text-align: center;">\n <p style="margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;">\n &copy;2018\n <a style="color:#3869D4;">[app_name]</a>.\n All Rights Reserved.\n </p>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </body>\n </html>', 1, 1, NULL, '2018-12-14 03:16:47', '2018-12-14 03:16:47', NULL), (11, 11, 'Subjective Goals Submitted by Client', 'Actualise: Subjective Goals Submitted by Client', '<!DOCTYPE html>\n<html>\n\n<head>\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\n <style type="text/css" rel="stylesheet" media="all">\n /* Layout ------------------------------ */\n .body{ margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;}\n .email-wrapper {width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;}\n /* Masthead ----------------------- */\n .email-masthead{padding: 25px 0; text-align: center;}\n .email-masthead_name{font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;}\n .email-body{width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;}\n .email-body_inner{width: auto; max-width: 570px; margin: 0 auto; padding: 0;}\n .email-body_cell{padding: 35px;}\n .email-footer{width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;}\n .email-footer_cell{color: #AEAEAE; padding: 35px; text-align: center;}\n /* Body ------------------------------ */\n .body_action{width: 100%; margin: 30px auto; padding: 0; text-align: center;}\n .body_sub{margin-top: 25px; padding-top: 25px; border-top: 1px solid #EDEFF2;}\n /* Type ------------------------------ */\n\n anchor => color: #3869D4;,\n .header-1{ margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;}\n .paragraph { margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;}\n .paragraph-sub{ margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;}\n .paragraph-center{text-align: center;}\n /* Buttons ------------------------------ */\n .button{display: block; display: inline-block; width: 200px; min-height: 20px; padding: 10px;\n background-color: #3869D4;\n border-radius: 3px;\n color: #ffffff;\n font-size: 15px;\n line-height: 25px;\n text-align: center;\n text-decoration: none;\n -webkit-text-size-adjust: none;\n}\n\n .button--green {background-color: #22BC66;}\n .button--red {background-color: #dc4d2f;}\n .button--blue {background-color: #3869D4;}\n .textfont {\n font-family: Arial, Helvetica Neue, Helvetica, sans-serif;\n }\n /* Media Queries */\n @media only screen and (max-width: 500px) {\n .button {\n width: 100% !important;\n }\n }\n </style>\n</head>\n<body style="margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;">\n <table width="100%" cellpadding="0" cellspacing="0">\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;" align="center">\n <table width="100%" cellpadding="0" cellspacing="0">\n <!-- Logo -->\n <tr>\n <td style="padding: 25px 0; text-align: center;">\n <div style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;">\n [app_name]\n </div>\n </td>\n </tr>\n <!-- Email Body -->\n\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;" width="100%">\n <table style="width: 100%; max-width: 570px; margin: 0 auto; padding: 0;" align="center" width="100" cellpadding="0" cellspacing="0">\n <tr>\n <td style="padding: 35px;font-family: Arial,Helvetica Neue, Helvetica, sans-serif;">\n <!-- Greeting -->\n <h1 style="margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;line-height: 1.5em;">\n Hello [users],\n </h1>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n </p>\n <!-- Intro -->\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Your client has submitted subjective goals. Please click on the link below to review.\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Client ID: [client_id]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Subjective Goals: [link]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Thanks! <br />The [app_name] Team\n </p>\n </td>\n </tr>\n <!-- Footer -->\n <tr>\n <td>\n <table style="width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;" align="center" width="570" cellpadding="0" cellspacing="0">\n <tr>\n <td style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;color: #AEAEAE; padding: 35px; text-align: center;">\n <p style="margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;">\n &copy;2018\n <a style="color:#3869D4;">[app_name]</a>.\n All Rights Reserved.\n </p>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </body>\n </html>', 1, 1, NULL, '2018-12-14 03:16:47', '2018-12-14 03:16:47', NULL), (12, 12, 'Emergency protocol required', 'Actualise: Emergency Protocol Required', '<!DOCTYPE html>\n<html>\n\n<head>\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\n <style type="text/css" rel="stylesheet" media="all">\n /* Layout ------------------------------ */\n .body{ margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;}\n .email-wrapper {width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;}\n /* Masthead ----------------------- */\n .email-masthead{padding: 25px 0; text-align: center;}\n .email-masthead_name{font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;}\n .email-body{width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;}\n .email-body_inner{width: auto; max-width: 570px; margin: 0 auto; padding: 0;}\n .email-body_cell{padding: 35px;}\n .email-footer{width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;}\n .email-footer_cell{color: #AEAEAE; padding: 35px; text-align: center;}\n /* Body ------------------------------ */\n .body_action{width: 100%; margin: 30px auto; padding: 0; text-align: center;}\n .body_sub{margin-top: 25px; padding-top: 25px; border-top: 1px solid #EDEFF2;}\n /* Type ------------------------------ */\n\n anchor => color: #3869D4;,\n .header-1{ margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;}\n .paragraph { margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;}\n .paragraph-sub{ margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;}\n .paragraph-center{text-align: center;}\n /* Buttons ------------------------------ */\n .button{display: block; display: inline-block; width: 200px; min-height: 20px; padding: 10px;\n background-color: #3869D4;\n border-radius: 3px;\n color: #ffffff;\n font-size: 15px;\n line-height: 25px;\n text-align: center;\n text-decoration: none;\n -webkit-text-size-adjust: none;\n}\n\n .button--green {background-color: #22BC66;}\n .button--red {background-color: #dc4d2f;}\n .button--blue {background-color: #3869D4;}\n .textfont {\n font-family: Arial, Helvetica Neue, Helvetica, sans-serif;\n }\n /* Media Queries */\n @media only screen and (max-width: 500px) {\n .button {\n width: 100% !important;\n }\n }\n </style>\n</head>\n<body style="margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;">\n <table width="100%" cellpadding="0" cellspacing="0">\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;" align="center">\n <table width="100%" cellpadding="0" cellspacing="0">\n <!-- Logo -->\n <tr>\n <td style="padding: 25px 0; text-align: center;">\n <div style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;">\n [app_name]\n </div>\n </td>\n </tr>\n <!-- Email Body -->\n\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;" width="100%">\n <table style="width: 100%; max-width: 570px; margin: 0 auto; padding: 0;" align="center" width="100" cellpadding="0" cellspacing="0">\n <tr>\n <td style="padding: 35px;font-family: Arial,Helvetica Neue, Helvetica, sans-serif;">\n <!-- Greeting -->\n <h1 style="margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;line-height: 1.5em;">\n Hello [users],\n </h1>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n </p>\n <!-- Intro -->\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Client Id - [client_id] has selected answer as [answer] in the BDI. Enact the <b>emergency protocol</b> immediately and contact your supervisor.\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Client Information - [link]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n <b>Emergency Protocol</b> - [emergency_protocol]\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Thanks! <br />The [app_name] Team\n </p>\n </td>\n </tr>\n <!-- Footer -->\n <tr>\n <td>\n <table style="width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;" align="center" width="570" cellpadding="0" cellspacing="0">\n <tr>\n <td style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;color: #AEAEAE; padding: 35px; text-align: center;">\n <p style="margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;">\n &copy;2018\n <a style="color:#3869D4;">[app_name]</a>.\n All Rights Reserved.\n </p>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </body>\n </html>', 1, 1, NULL, '2018-12-14 03:16:47', '2018-12-14 03:16:47', NULL), (13, 13, 'Threshold Plateaued', 'Actualise: Threshold Plateaued', '<!DOCTYPE html>\n<html>\n\n<head>\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\n <style type="text/css" rel="stylesheet" media="all">\n /* Layout ------------------------------ */\n .body{ margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;}\n .email-wrapper {width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;}\n /* Masthead ----------------------- */\n .email-masthead{padding: 25px 0; text-align: center;}\n .email-masthead_name{font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;}\n .email-body{width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;}\n .email-body_inner{width: auto; max-width: 570px; margin: 0 auto; padding: 0;}\n .email-body_cell{padding: 35px;}\n .email-footer{width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;}\n .email-footer_cell{color: #AEAEAE; padding: 35px; text-align: center;}\n /* Body ------------------------------ */\n .body_action{width: 100%; margin: 30px auto; padding: 0; text-align: center;}\n .body_sub{margin-top: 25px; padding-top: 25px; border-top: 1px solid #EDEFF2;}\n /* Type ------------------------------ */\n\n anchor => color: #3869D4;,\n .header-1{ margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;}\n .paragraph { margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;}\n .paragraph-sub{ margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;}\n .paragraph-center{text-align: center;}\n /* Buttons ------------------------------ */\n .button{display: block; display: inline-block; width: 200px; min-height: 20px; padding: 10px;\n background-color: #3869D4;\n border-radius: 3px;\n color: #ffffff;\n font-size: 15px;\n line-height: 25px;\n text-align: center;\n text-decoration: none;\n -webkit-text-size-adjust: none;\n}\n\n .button--green {background-color: #22BC66;}\n .button--red {background-color: #dc4d2f;}\n .button--blue {background-color: #3869D4;}\n .textfont {\n font-family: Arial, Helvetica Neue, Helvetica, sans-serif;\n }\n /* Media Queries */\n @media only screen and (max-width: 500px) {\n .button {\n width: 100% !important;\n }\n }\n </style>\n</head>\n<body style="margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;">\n <table width="100%" cellpadding="0" cellspacing="0">\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;" align="center">\n <table width="100%" cellpadding="0" cellspacing="0">\n <!-- Logo -->\n <tr>\n <td style="padding: 25px 0; text-align: center;">\n <div style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;">\n [app_name]\n </div>\n </td>\n </tr>\n <!-- Email Body -->\n\n <tr>\n <td style="width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;" width="100%">\n <table style="width: 100%; max-width: 570px; margin: 0 auto; padding: 0;" align="center" width="100" cellpadding="0" cellspacing="0">\n <tr>\n <td style="padding: 35px;font-family: Arial,Helvetica Neue, Helvetica, sans-serif;">\n <!-- Greeting -->\n <h1 style="margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;line-height: 1.5em;">\n Hello [users],\n </h1>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n </p>\n <!-- Intro -->\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Threshold have plateaued for Client Id - [client_id]. Please take appropriate actions or contact your supervisor to discuss.\n </p>\n <p style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;">\n Thanks! <br />The [app_name] Team\n </p>\n </td>\n </tr>\n <!-- Footer -->\n <tr>\n <td>\n <table style="width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;" align="center" width="570" cellpadding="0" cellspacing="0">\n <tr>\n <td style="font-family: Arial,Helvetica Neue, Helvetica, sans-serif;color: #AEAEAE; padding: 35px; text-align: center;">\n <p style="margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;">\n &copy;2018\n <a style="color:#3869D4;">[app_name]</a>.\n All Rights Reserved.\n </p>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </body>\n </html>', 1, 1, NULL, '2018-12-14 03:16:47', '2018-12-14 03:16:47', NULL); -- -------------------------------------------------------- -- -- Table structure for table `email_template_placeholders` -- CREATE TABLE `email_template_placeholders` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `email_template_placeholders` -- INSERT INTO `email_template_placeholders` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'app_name', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (2, 'name', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (3, 'email', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (4, 'password', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (5, 'contact-details', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (6, 'confirmation_link', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (7, 'password_reset_link', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (8, 'header_logo', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (9, 'footer_logo', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (10, 'unscribe_link', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (11, 'status', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (12, 'feedback_link', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (13, 'testimonial_link', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (14, 'intervention_service', '2018-10-25 01:30:42', '2018-10-25 01:30:42'); -- -------------------------------------------------------- -- -- Table structure for table `email_template_types` -- CREATE TABLE `email_template_types` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `email_template_types` -- INSERT INTO `email_template_types` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Registration', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (2, 'Create User', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (3, 'Acivate / Deactivate User', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (4, 'Change Password', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (5, 'Send to Client', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (6, 'Session Management', '2018-10-25 01:30:42', '2018-10-25 01:30:42'); -- -------------------------------------------------------- -- -- Table structure for table `faqs` -- CREATE TABLE `faqs` ( `id` int(10) UNSIGNED NOT NULL, `question` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `answer` text COLLATE utf8mb4_unicode_ci NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `feedbacks` -- CREATE TABLE `feedbacks` ( `id` int(10) UNSIGNED NOT NULL, `client_id` int(10) UNSIGNED NOT NULL COMMENT 'Foreign key of Client Table', `comment` text COLLATE utf8mb4_unicode_ci NOT NULL, `ratings` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'ratings of feedbacks', `intervention_type` int(10) UNSIGNED NOT NULL COMMENT 'Foreign key of Intervention Type Table', `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 `feedbacks` -- INSERT INTO `feedbacks` (`id`, `client_id`, `comment`, `ratings`, `intervention_type`, `created_at`, `updated_at`) VALUES (1, 1, 'Please add morning sessions too.', '4.5', 1, NULL, NULL), (2, 1, 'my comments', '5', 3, NULL, NULL), (3, 8, 'I found the sessions to be ABC - and there was also this other thing that happened.', '5', 1, NULL, NULL), (4, 12, 'test', '3', 1, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `history` -- CREATE TABLE `history` ( `id` int(10) UNSIGNED NOT NULL, `type_id` int(10) UNSIGNED NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `entity_id` int(10) UNSIGNED DEFAULT NULL, `icon` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `class` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `text` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `assets` text COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `history` -- INSERT INTO `history` (`id`, `type_id`, `user_id`, `entity_id`, `icon`, `class`, `text`, `assets`, `created_at`, `updated_at`) VALUES (1, 1, 1, 2, 'save', 'bg-aqua', 'trans("history.backend.users.updated") <strong>{user}</strong>', '{"user_link":["admin.access.user.show","Admin Actualise",2]}', '2018-10-29 04:13:58', '2018-10-29 04:13:58'), (2, 1, 22, 22, 'lock', 'bg-blue', 'trans("history.backend.users.changed_password") <strong>{user}</strong>', '{"user_link":["admin.access.user.show","<NAME>",22]}', '2019-01-17 02:46:35', '2019-01-17 02:46:35'); -- -------------------------------------------------------- -- -- Table structure for table `history_types` -- CREATE TABLE `history_types` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `history_types` -- INSERT INTO `history_types` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'User', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (2, 'Role', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (3, 'Permission', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (4, 'CMSPage', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (5, 'EmailTemplate', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (6, 'BlogTag', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (7, 'BlogCategory', '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (8, 'Blog', '2018-10-25 01:30:42', '2018-10-25 01:30:42'); -- -------------------------------------------------------- -- -- Table structure for table `interventions_type` -- CREATE TABLE `interventions_type` ( `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary key of table', `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Name of Interventions', `status` tinyint(4) DEFAULT NULL COMMENT '1-Active,0-Inactive', `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 `interventions_type` -- INSERT INTO `interventions_type` (`id`, `name`, `status`, `created_at`, `updated_at`) VALUES (1, 'Neurofeedback Training', 1, '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (2, 'Clinical Assessment (child ADHD)', 1, '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (3, 'Clinical Assessment (adolescent ADHD)', 1, '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (4, 'Clinical Assessment (adult ADHD)', 1, '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (5, 'Clinical Assessment (other)', 1, '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (6, 'Educational Assessment', 1, '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (7, 'Autism Spectrum Disorder Assessment', 1, '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (8, 'QEEG assessment only', 1, '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (9, 'Clinical Psychology (therapy)', 1, '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (10, 'Clinical Psychology (other)', 1, '2018-10-25 01:30:42', '2018-10-25 01:30:42'), (11, 'Positive Behavior Support', 1, '2018-10-25 01:30:42', '2018-10-25 01:30:42'); -- -------------------------------------------------------- -- -- Table structure for table `knowledge_bases` -- CREATE TABLE `knowledge_bases` ( `id` int(10) UNSIGNED NOT NULL, `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `description` text COLLATE utf8mb4_unicode_ci NOT NULL, `file` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `rating` double(8,2) NOT NULL, `average_rating` decimal(7,2) NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'knowledge base status for 1:Active,0:Inactive', `created_by` int(10) UNSIGNED NOT NULL COMMENT 'Record created by user', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `knowledge_bases` -- INSERT INTO `knowledge_bases` (`id`, `title`, `description`, `file`, `rating`, `average_rating`, `status`, `created_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'Base study 1', 'Base study 1 is meant for anxiety disorder.', '["professional.jpg"]', 0.00, '5.00', 1, 1, '2018-09-05 08:06:32', '2018-10-09 08:12:46', '2018-10-09 08:12:46'), (2, 'Record 1', 'Record 1 with description', '["logo-p.png","book1.jpg"]', 0.00, '4.50', 1, 2, '2018-09-14 04:41:23', '2018-10-09 08:12:40', '2018-10-09 08:12:40'), (3, 'Pesky gNATs', 'Descriptions in here', '["000ad126-642.jpg"]', 0.00, '3.50', 1, 2, '2018-09-28 09:33:36', '2018-10-09 08:12:36', '2018-10-09 08:12:36'), (4, 'Pre-consultation Pack', 'Dear Actualise Client,\r\n\r\nWe are looking forward to seeing you at the clinic. Before you come, here are some useful documents which you should look at, including:\r\n- A map of the campus, with information on parking\r\n- Our policies \r\n- Informed consent\r\n\r\nSee you soon!\r\nThe Actualise Team', '["DCU Alpha Campus Information.pdf","Goal Sheets - Adult.pdf","Informed consent form.docx","Policies 2018.pdf"]', 0.00, '5.00', 1, 2, '2018-10-09 08:08:10', '2018-10-09 08:21:45', '2018-10-09 08:21:45'), (5, 'Map and Policies (A)', 'Dear Actualise Client,\r\n\r\nWe are looking forward to welcoming you to the Actualise Clinic. In advance of that, please find attached:\r\n\r\n- A map of the DCU Alpha campus. Please note, we are NOT in the DCU Main Campus, but in the DCU Alpha campus. This link will get you close to our clinic: https://goo.gl/maps/ms9kThQcAxB2. From here, just use the attached map to find parking\r\n\r\n- Our policies. Please read our policies ahead of your visit.\r\n\r\n- A goal sheet. This is a sample sheet which we will discuss with you at your consultation. It helps us think about goals you have in mind for your time with us.\r\n\r\nWe look forward to welcoming you to our clinic.\r\nThe Actualise Team', '{"3":"DCU Alpha Campus Information.pdf","4":"Goal Sheets - Adult.pdf","5":"Policies 2018.pdf"}', 0.00, '3.00', 1, 2, '2018-10-09 08:34:21', '2018-12-14 04:01:05', NULL), (6, 'Map and Policies (C)', 'Dear Actualise Client,\r\n\r\nWe are looking forward to welcoming you to the Actualise Clinic. In advance of that, please find attached:\r\n\r\n- A map of the DCU Alpha campus. Please note, we are NOT in the DCU Main Campus, but in the DCU Alpha campus. This link will get you close to our clinic: https://goo.gl/maps/ms9kThQcAxB2. From here, just use the attached map to find parking\r\n\r\n- Our policies. Please read our policies ahead of your visit.\r\n\r\n- A goal sheet. This is a sample sheet which we will discuss with you at your consultation. It helps us think about goals you have in mind for your time with us.\r\n\r\nWe look forward to welcoming you to our clinic.\r\nThe Actualise Team', '["DCU Alpha Campus Information.pdf","Goal Sheets - Child.pdf","Policies 2018.pdf"]', 0.00, '4.00', 1, 2, '2018-10-09 08:35:12', '2018-11-27 07:54:43', NULL), (7, 'Teachers Resources 1', 'r', '["Ikigai.jpeg"]', 0.00, '0.00', 1, 2, '2018-11-02 07:31:01', '2018-11-02 07:31:11', '2018-11-02 07:31:11'), (8, 'Teachers Resources 3', 'Max Size File', '["Canada-17MB.jpg","Airbus_Pleiades_41MB.jpg","Actualise Academy Resources #3.pdf"]', 0.00, '0.00', 1, 1, '2018-12-03 02:07:12', '2018-12-10 03:57:56', NULL), (9, 'NFT presentation', 'arg', '["NFT info presentation.pptx"]', 0.00, '3.50', 1, 2, '2018-12-10 04:01:41', '2019-03-26 09:20:12', NULL), (10, 'User Manual', 'desc', '["download.jpg"]', 0.00, '0.00', 1, 1, '2019-01-17 02:47:54', '2019-01-17 02:48:14', NULL), (11, 'ooo', 'ooooo', '["Shayona Shikhar.pdf"]', 0.00, '0.00', 1, 1, '2019-01-21 08:25:34', '2019-01-21 08:25:35', NULL); -- -------------------------------------------------------- -- -- Table structure for table `managesessions` -- CREATE TABLE `managesessions` ( `id` int(10) UNSIGNED NOT NULL, `client_id` int(10) UNSIGNED NOT NULL COMMENT 'Foreign key of Client Table', `question_type_id` int(10) UNSIGNED NOT NULL COMMENT 'Foreign key of Question Type Table', `custom_question_id` int(11) DEFAULT NULL COMMENT '1:Subjective_question,2:No_question,0:Objective_question', `intervention_type` int(11) NOT NULL COMMENT 'Foreign Key of Intervention Type table', `title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Session Title', `description` text COLLATE utf8mb4_unicode_ci COMMENT 'description of session', `threshold_start` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0' COMMENT 'Session Threshold value', `threshold_end` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0' COMMENT 'threshold_end', `insert_note` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0' COMMENT 'insert_note', `session_date` date DEFAULT NULL COMMENT 'Session Date', `session_visit` tinyint(4) DEFAULT NULL COMMENT 'Session visit 1:Yes,0:No', `schedule_date` date DEFAULT NULL COMMENT 'Schedule Date of Assessment', `schedule_flag` tinyint(4) DEFAULT NULL COMMENT '1:For Shedule Assessment today,NULL:Shedule for other day', `show_tile_card` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0:Not Show,1:Show Tile Card Client Side', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Session status for 1:Submited,0:Pending', `created_by` int(10) UNSIGNED NOT NULL COMMENT 'Record created by user', `updated_by` int(10) UNSIGNED DEFAULT NULL COMMENT 'Record updated by user', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `managesessions` -- INSERT INTO `managesessions` (`id`, `client_id`, `question_type_id`, `custom_question_id`, `intervention_type`, `title`, `description`, `threshold_start`, `threshold_end`, `insert_note`, `session_date`, `session_visit`, `schedule_date`, `schedule_flag`, `show_tile_card`, `status`, `created_by`, `updated_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 1, 0, 1, 0, 'ABC', NULL, '0', '0', '0', NULL, 0, NULL, NULL, 0, 1, 1, NULL, '2018-08-10 05:57:28', '2018-09-06 07:49:37', '2018-09-06 07:49:37'), (2, 1, 0, 1, 1, 'Session 1', 'Session 1 taken for learning', '0', '0', '0', '2018-08-07', 0, NULL, NULL, 0, 1, 2, NULL, '2018-09-06 07:50:11', '2018-10-05 04:37:47', NULL), (3, 1, 1, 0, 1, 'Session 2', 'Session 2 with objective set of questions', '0', '0', '0', '2018-08-14', 0, NULL, NULL, 0, 1, 2, NULL, '2018-09-06 07:53:15', '2018-10-05 04:35:16', NULL), (4, 1, 1, 0, 1, 'Session 5', 'some details for this session', '8', '0', '0', '2018-08-30', 0, NULL, NULL, 0, 1, 2, NULL, '2018-09-14 04:26:13', '2018-10-05 04:37:41', NULL), (5, 1, 0, 1, 1, 'Session 6', NULL, '7.5', '0', '0', '2018-09-01', 0, NULL, NULL, 0, 1, 2, NULL, '2018-09-14 04:34:06', '2018-10-05 04:42:34', NULL), (6, 1, 3, 0, 3, 'SDQ 1', 'SDQ 1 session with full details', '6.9', '0', '0', '2018-09-18', 0, NULL, NULL, 0, 1, 2, NULL, '2018-09-19 03:43:49', '2018-10-05 04:46:19', NULL), (7, 1, 2, 0, 1, 'SDQ 2', 'SDQ 2', '7', '0', '0', '2018-09-11', 0, NULL, NULL, 0, 1, 2, 1, '2018-09-28 06:23:31', '2018-10-05 06:31:06', NULL), (8, 3, 0, 1, 1, 'Not sure', 'This is the description box', '0', '0', '0', '2018-10-03', 0, NULL, NULL, 0, 0, 2, NULL, '2018-09-28 09:25:51', '2018-09-28 09:25:51', NULL), (9, 3, 0, 0, 1, 'Session 10', 'Objective q description box', '0', '0', '0', '2018-10-02', 0, NULL, NULL, 0, 0, 2, 1, '2018-09-28 09:30:54', '2018-10-05 06:16:45', NULL), (10, 1, 0, 2, 3, 'xxxx 1', 'xxxx 1', '0', '0', '0', '2018-10-11', 0, NULL, NULL, 0, 0, 1, NULL, '2018-10-05 04:39:44', '2018-10-05 04:39:44', NULL), (11, 1, 0, 2, 1, 'first', 'first session with no questions', '0', '0', '0', '2018-10-25', 0, NULL, NULL, 0, 2, 1, NULL, '2018-10-05 04:49:27', '2018-10-05 04:49:27', NULL), (12, 1, 2, 0, 1, 'core 1', 'core 1', '0', '0', '0', '2018-10-11', 0, NULL, NULL, 0, 1, 1, NULL, '2018-10-05 04:59:34', '2018-10-05 05:00:42', NULL), (13, 1, 4, 0, 1, 'Scared 1', 'Scared 1', '0', '0', '0', '2018-10-25', 1, NULL, NULL, 0, 0, 1, 1, '2018-10-05 05:01:58', '2018-10-29 04:14:42', NULL), (14, 1, 0, 2, 1, 'subjective', 'subjective 1', '4', '1', '0', '2018-10-08', 1, NULL, NULL, 0, 0, 1, 1, '2018-10-05 05:07:49', '2019-01-21 00:25:49', NULL), (15, 4, 1, 0, 1, 'Questionnaire (BDI)', 'Please complete this questionnaire before your consultation.\r\nThanks,\r\nThe Actualise Team', '0', '0', '0', '2018-10-11', 0, NULL, NULL, 0, 1, 2, NULL, '2018-10-09 08:54:02', '2018-10-09 09:15:49', NULL), (16, 4, 1, 0, 1, 'bdi', NULL, '4', '0', '0', '2018-10-10', 0, NULL, NULL, 0, 1, 2, NULL, '2018-10-09 09:20:21', '2018-10-16 07:36:37', NULL), (17, 4, 3, 0, 1, 'sdq', 'ddd', '0', '0', '0', '2018-10-10', 0, NULL, NULL, 0, 1, 2, NULL, '2018-10-09 09:23:15', '2018-11-23 07:08:33', NULL), (18, 5, 0, 2, 1, 'NFT visit', NULL, '0', '0', '0', '2018-10-15', 0, NULL, NULL, 0, 2, 2, NULL, '2018-10-15 04:55:26', '2018-10-15 04:55:26', NULL), (19, 4, 0, 2, 1, 'NF12', 'Oceans Feedbackdfbwerbsb\r\nsdvowehf\r\nousdgfoiwhf\r\nufoiehfpoe', '0', '0', '0', '2018-10-16', 0, NULL, NULL, 0, 0, 2, 2, '2018-10-16 07:44:40', '2018-10-16 08:00:41', NULL), (20, 4, 0, 2, 1, 'NF10', 'Oceans Feedback 2', '0', '0', '0', '2018-10-19', 0, NULL, NULL, 0, 2, 2, NULL, '2018-10-16 08:01:36', '2018-10-16 08:01:36', NULL), (21, 4, 1, 0, 1, '`sdb', NULL, '0', '0', '0', '2018-10-16', 0, NULL, NULL, 0, 0, 2, NULL, '2018-10-16 08:03:23', '2018-10-16 08:03:23', NULL), (22, 4, 1, 0, 1, '`sdb', NULL, '0', '0', '0', '2018-10-16', 0, NULL, NULL, 0, 0, 2, NULL, '2018-10-16 08:03:28', '2018-10-16 09:03:28', '2018-10-16 09:03:28'), (23, 4, 2, 0, 1, 'NF12', NULL, '0', '0', '0', '2018-10-23', 0, NULL, NULL, 0, 0, 2, NULL, '2018-10-23 09:13:27', '2018-10-23 09:13:27', NULL), (24, 4, 0, 2, 1, 'NFT3', 'Michelle forgot her diary today\nFilled out SDQs\nWatched Zootopia P1', '1', '1', '0', '2018-11-02', 1, NULL, NULL, 0, 0, 2, 2, '2018-11-02 06:47:51', '2018-12-14 03:26:08', NULL), (25, 4, 0, 2, 1, 'NFT4', '3Michelle did ABC today', '1', '1', '0', '2018-11-01', 1, NULL, NULL, 0, 2, 2, NULL, '2018-11-02 06:54:37', '2018-12-14 03:26:08', NULL), (26, 4, 0, 2, 1, 'NF3', NULL, '0', '0', '0', '2018-11-16', 1, NULL, NULL, 0, 2, 2, NULL, '2018-11-14 12:01:50', '2018-11-14 12:02:33', '2018-11-14 12:02:33'), (27, 4, 0, 1, 1, 'NF3', 'qojpqf', '0', '0', '0', '2018-11-16', 0, NULL, NULL, 0, 0, 2, NULL, '2018-11-14 12:02:56', '2018-11-14 12:02:56', NULL), (28, 4, 5, 0, 1, 'Please complete', NULL, '0', '0', '0', '2018-11-16', 0, NULL, NULL, 0, 1, 2, NULL, '2018-11-14 12:09:36', '2018-11-14 12:12:13', NULL), (29, 4, 1, 0, 1, 'For session 10', NULL, '0', '0', '0', '2018-11-15', 0, NULL, NULL, 0, 0, 2, NULL, '2018-11-14 12:15:37', '2018-11-14 12:15:37', NULL), (30, 7, 0, 2, 7, 'session with no ques', 'session with no questuionsss', '0', '0', '0', '2018-11-01', 0, NULL, NULL, 0, 2, 1, NULL, '2018-11-19 05:35:33', '2018-11-19 05:35:33', NULL), (31, 7, 0, 1, 7, 'subjective session', 'subjective session', '0', '0', '0', '2018-11-13', 1, NULL, NULL, 0, 1, 1, NULL, '2018-11-19 05:36:35', '2018-11-19 05:38:53', NULL), (32, 7, 3, 0, 2, 'Objective 1', 'Objective 1', '0', '0', '0', '2018-11-06', 0, NULL, NULL, 0, 1, 1, NULL, '2018-11-19 05:40:10', '2018-11-19 05:52:43', NULL), (33, 8, 0, 1, 1, 'NFT1 - Goals', 'Goals for Tom\'s first visit', '0', '0', '0', '2018-11-20', 0, NULL, NULL, 0, 1, 2, NULL, '2018-11-20 08:40:44', '2018-11-20 08:54:46', NULL), (34, 8, 1, 0, 1, 'BDI - Time 1', 'This is Tom\'s first BDI to score', '0', '0', '0', '2018-11-20', 0, NULL, NULL, 0, 1, 2, NULL, '2018-11-20 08:55:57', '2018-11-20 08:59:26', NULL), (35, 8, 0, 1, 1, 'NFT1 - updated goals', 'These are Tom\'s updated goals since he was here for consultation.', '0', '0', '0', '2018-11-21', 0, NULL, NULL, 0, 1, 2, NULL, '2018-11-20 09:19:22', '2018-11-20 09:20:31', NULL), (36, 8, 0, 1, 1, 'NFT1 - updated goals', 'Dear Tom, these are some new instructions for you.\r\nThanks,\r\nThe Actualise Team', '0', '0', '0', '2018-11-20', 0, NULL, NULL, 0, 1, 2, NULL, '2018-11-20 09:34:15', '2018-11-20 09:36:25', NULL), (37, 8, 0, 2, 1, 'NFT Session 1', 'Session 1 notes\r\n\r\nPut in more notes from Tom\'s session here. During and after the sessions notes\r\n1\r\n2\r\n3\r\n4\r\n5', '10', '9', '0', '2018-11-21', 1, NULL, NULL, 0, 0, 2, 2, '2018-11-20 09:49:34', '2018-11-20 09:55:41', NULL), (38, 8, 0, 2, 1, 'NFT Session 2', 'Session 2 notes\r\n\r\nMore notes here\r\n\r\nSeparated by lines', '8', '7', '0', '2018-11-23', 1, NULL, NULL, 0, 0, 2, 2, '2018-11-20 09:56:12', '2018-11-20 09:56:55', NULL), (39, 8, 0, 1, 1, 'Goals - Week 2', 'Goals for week two should be detailed in here', '0', '0', '0', '2018-11-23', 0, NULL, NULL, 0, 1, 2, NULL, '2018-11-20 09:59:09', '2018-11-20 10:04:07', NULL), (40, 8, 0, 2, 1, 'NFT Session 3', 'Session 3 notes written in this text box. What movie, etc he watched.', '9', '8', '0', '2018-11-22', 1, NULL, NULL, 0, 2, 2, NULL, '2018-11-20 10:10:56', '2018-11-20 10:17:37', NULL), (41, 8, 0, 2, 1, 'NFT Session 4', 'Session 4 notes etc', '7', '4', '0', '2018-11-24', 1, NULL, NULL, 0, 0, 2, 2, '2018-11-20 10:15:28', '2018-11-20 10:22:15', NULL), (42, 9, 0, 2, 2, 'xxxx', 'xxxx', '0', '0', '0', '2018-12-03', 1, NULL, NULL, 1, 2, 1, NULL, '2018-12-04 02:56:09', '2018-12-04 02:56:09', NULL), (43, 7, 0, 2, 2, 'no', 'no', '0', '0', '0', '2018-12-19', 1, NULL, NULL, 0, 2, 1, NULL, '2018-12-04 02:57:18', '2018-12-04 02:57:18', NULL), (44, 7, 0, 2, 2, 'simple1', 'simple1', '0', '0', '0', '2018-12-06', 0, NULL, NULL, 1, 0, 1, 1, '2018-12-04 02:58:03', '2018-12-04 03:00:34', NULL), (45, 9, 0, 1, 2, 'sdsd', 'sdsdsd', '0', '0', '0', '2018-12-19', 0, NULL, NULL, 1, 1, 1, NULL, '2018-12-04 03:39:19', '2018-12-04 03:47:43', NULL), (46, 9, 3, 0, 2, 'mp', 'mp', '0', '0', '0', '2018-12-02', 0, NULL, NULL, 1, 1, 1, NULL, '2018-12-04 05:08:06', '2018-12-04 05:08:30', NULL), (47, 9, 0, 1, 2, 'uuuuu', 'uuu', '0', '0', '0', '2018-12-28', 0, NULL, NULL, 1, 1, 1, NULL, '2018-12-04 05:09:32', '2018-12-04 05:09:48', NULL), (48, 9, 5, 0, 3, 'sdsdsd', 'sdsdsd', '0', '0', '0', '2018-12-11', 1, NULL, NULL, 0, 0, 1, NULL, '2018-12-04 05:18:47', '2018-12-04 05:18:47', NULL), (49, 9, 0, 2, 2, 'xp', NULL, '0', '0', '0', '2018-12-26', 1, NULL, NULL, 1, 0, 1, 1, '2018-12-04 08:27:53', '2018-12-04 08:28:11', NULL), (50, 9, 0, 1, 3, 'ffff', 'ddd', '0', '0', '0', '2018-12-25', 1, '2018-12-14', 1, 1, 0, 1, 1, '2018-12-04 08:29:57', '2018-12-14 04:01:46', NULL), (51, 9, 1, 0, 2, 'This is BDI question', 'notes about it', '0', '0', '0', '2019-01-25', 0, '2019-01-17', 1, 1, 0, 1, NULL, '2019-01-17 02:19:30', '2019-01-17 02:19:30', NULL), (52, 9, 0, 2, 3, 'Session 1', 'notes goes here', '0', '0', '0', '2019-01-17', 1, '2019-01-17', 1, 0, 0, 1, 1, '2019-01-17 02:21:35', '2019-01-17 02:23:42', NULL), (53, 12, 3, 2, 1, 'NoQuestion Assessmen', 'Notes', '0', '0', '0', '2019-01-25', 1, '2019-01-17', 1, 1, 2, 1, NULL, '2019-01-17 02:33:55', '2019-01-17 02:33:55', NULL), (54, 12, 3, 2, 1, 'Subjection Assessmen', 'Notes goes here', '0', '0', '0', '2019-01-18', 1, '2019-01-17', 1, 1, 1, 1, NULL, '2019-01-17 02:34:40', '2019-01-17 04:15:38', NULL), (55, 12, 4, 2, 1, 'BDI type questions', 'Please answer all questions', '0', '0', '0', '2019-01-18', 1, '2019-01-17', 1, 1, 1, 1, NULL, '2019-01-17 02:36:00', '2019-01-17 02:39:48', NULL), (56, 12, 4, 2, 1, 'CORE questions', NULL, '0', '0', '0', '2019-01-25', 1, '2019-01-21', 1, 1, 1, 1, 1, '2019-01-17 02:37:04', '2019-01-21 04:36:29', NULL), (57, 12, 4, 2, 1, 'test', 'desc', '0', '0', '0', '2019-01-18', 1, '2019-01-21', 1, 1, 1, 1, 1, '2019-01-18 05:04:57', '2019-01-21 04:36:38', NULL), (58, 12, 0, 2, 1, 'dddd', 'ddd', '0', '0', '0', '2019-01-18', 1, '2019-01-18', 1, 1, 0, 1, NULL, '2019-01-18 05:08:04', '2019-01-18 05:08:04', NULL), (59, 12, 3, 2, 1, 'SCARED SESSION', 'asa', '0', '0', '0', '2019-01-21', 1, '2019-01-21', 1, 0, 0, 1, 1, '2019-01-21 04:27:36', '2019-01-21 04:48:46', NULL), (60, 12, 3, 2, 1, 'SDQ SESSION', 'sads', '0', '0', '0', '2019-01-21', 1, '2019-01-21', 1, 1, 1, 1, NULL, '2019-01-21 04:28:07', '2019-01-21 04:36:07', NULL), (61, 12, 3, 2, 1, 'SDQ SESSION', 'asasa', '0', '0', '0', '2019-01-21', 1, '2019-01-21', 1, 1, 0, 1, NULL, '2019-01-21 04:47:29', '2019-01-21 04:47:29', NULL), (62, 12, 1, 0, 1, 'Demo title', 'Demo notes', '0', '0', '0', '2019-01-21', 1, '2019-01-21', 1, 1, 0, 1, NULL, '2019-01-21 08:22:04', '2019-01-21 08:22:52', NULL); -- -------------------------------------------------------- -- -- Table structure for table `menus` -- CREATE TABLE `menus` ( `id` int(10) UNSIGNED NOT NULL, `type` enum('backend','frontend') COLLATE utf8mb4_unicode_ci NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `items` text COLLATE utf8mb4_unicode_ci, `created_by` int(10) UNSIGNED NOT NULL, `updated_by` int(10) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `menus` -- INSERT INTO `menus` (`id`, `type`, `name`, `items`, `created_by`, `updated_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'backend', 'Backend Sidebar Menu', '[\r\n {\r\n "view_permission_id": "view-access-management",\r\n "icon": "fa-users",\r\n "open_in_new_tab": 0,\r\n "url_type": "route",\r\n "url": "",\r\n "name": "User Access",\r\n "id": 11,\r\n "content": "User Access",\r\n "children": [\r\n {\r\n "view_permission_id": "view-user-management",\r\n "open_in_new_tab": 0,\r\n "url_type": "route",\r\n "url": "admin.access.user.index",\r\n "name": "User Management",\r\n "id": 12,\r\n "content": "User Management"\r\n },\r\n {\r\n "view_permission_id": "view-role-management",\r\n "open_in_new_tab": 0,\r\n "url_type": "route",\r\n "url": "admin.access.role.index",\r\n "name": "Role Management",\r\n "id": 13,\r\n "content": "Role Management"\r\n },\r\n {\r\n "view_permission_id": "view-permission-management",\r\n "open_in_new_tab": 0,\r\n "url_type": "route",\r\n "url": "admin.access.permission.index",\r\n "name": "Permission Management",\r\n "id": 14,\r\n "content": "Permission Management"\r\n }\r\n ]\r\n },\r\n {\r\n "view_permission_id": "view-module",\r\n "icon": "fa-wrench",\r\n "open_in_new_tab": 0,\r\n "url_type": "route",\r\n "url": "admin.modules.index",\r\n "name": "Module",\r\n "id": 1,\r\n "content": "Module"\r\n },\r\n {\r\n "view_permission_id": "manage-client",\r\n "icon": "fa-users",\r\n "open_in_new_tab": 0,\r\n "url_type": "route",\r\n "url": "admin.clients.index",\r\n "name": "Clients",\r\n "id": 20,\r\n "content": "Clients"\r\n },\r\n\r\n {\r\n "view_permission_id": "manage-managesession",\r\n "icon": "fa fa-user-md ",\r\n "open_in_new_tab": 0,\r\n "url_type": "route",\r\n "url": "admin.managesessions.index",\r\n "name": "Assessments",\r\n "id": 24,\r\n "content": "Sessions"\r\n },\r\n {\r\n "id": 25,\r\n "name": "Resources",\r\n "url": "admin.knowledgebases.index",\r\n "url_type": "route",\r\n "open_in_new_tab": 0,\r\n "icon": "fa-book ",\r\n "view_permission_id": "manage-knowledgebase",\r\n "content": "Knowledge Bases"\r\n },\r\n\r\n {\r\n "view_permission_id": "view-report-permission",\r\n "icon": "fa-bar-chart",\r\n "open_in_new_tab": 0,\r\n "url_type": "static",\r\n "url": "",\r\n "name": "Reports",\r\n "id": 27,\r\n "content": "Reports",\r\n "children": [\r\n {\r\n "view_permission_id": "intervention-report",\r\n "icon": "",\r\n "open_in_new_tab": 0,\r\n "url_type": "route",\r\n "url": "admin.reports.charts",\r\n "name": "Client Session Progress",\r\n "id": 26,\r\n "content": "Intervention"\r\n },\r\n {\r\n "view_permission_id": "threshold-report",\r\n "icon": "",\r\n "open_in_new_tab": 0,\r\n "url_type": "route",\r\n "url": "admin.reports.staff.threshold",\r\n "name": "Client Threshold",\r\n "id": 1,\r\n "content": "Staff Threshold"\r\n },\r\n {\r\n "view_permission_id": "progress-report",\r\n "icon": "",\r\n "open_in_new_tab": 0,\r\n "url_type": "route",\r\n "url": "admin.reports.progress",\r\n "name": "Goal Progress",\r\n "id": 26,\r\n "content": "Goal Progress"\r\n },\r\n {\r\n "view_permission_id": "sdq-report",\r\n "icon": "",\r\n "open_in_new_tab": 0,\r\n "url_type": "route",\r\n "url": "admin.reports.sdq",\r\n "name": "SDQ Status ",\r\n "id": 26,\r\n "content": "SDQ Status"\r\n },\r\n {\r\n "view_permission_id": "scared-report",\r\n "icon": "",\r\n "open_in_new_tab": 0,\r\n "url_type": "route",\r\n "url": "admin.reports.scared",\r\n "name": "SCARED Status ",\r\n "id": 26,\r\n "content": "SCARED Status"\r\n },\r\n {\r\n "view_permission_id": "core-report",\r\n "icon": "",\r\n "open_in_new_tab": 0,\r\n "url_type": "route",\r\n "url": "admin.reports.core",\r\n "name": "CORE Status ",\r\n "id": 26,\r\n "content": "CORE Status"\r\n }\r\n ]\r\n }\r\n ,\r\n {\r\n "view_permission_id": "manage-feedback",\r\n "icon": "fa fa-commenting ",\r\n "open_in_new_tab": 0,\r\n "url_type": "route",\r\n "url": "admin.feedback.index",\r\n "name": "Feedback",\r\n "id": 26,\r\n "content": "Feedbacks"\r\n },\r\n {\r\n "view_permission_id": "manage-testimonial",\r\n "icon": "fa fa-quote-left",\r\n "open_in_new_tab": 0,\r\n "url_type": "route",\r\n "url": "admin.testimonials.index",\r\n "name": "Testimonials",\r\n "id": 28,\r\n "content": "Testimonials"\r\n },\r\n\r\n {\r\n "view_permission_id": "view-masters",\r\n "icon": "fa fa-cogs",\r\n "open_in_new_tab": 0,\r\n "url_type": "static",\r\n "url": "",\r\n "name": "Master Management",\r\n "id": 28,\r\n "content": "Master",\r\n "children": [\r\n {\r\n "id": 21,\r\n "name": "Clinic Services",\r\n "url": "admin.clinicalservices.index",\r\n "url_type": "route",\r\n "open_in_new_tab": 0,\r\n "view_permission_id": "manage-clinicalservice",\r\n "content": "Clinic Services"\r\n },\r\n {\r\n "id": 23,\r\n "name": "Psychological Conditions",\r\n "url": "admin.psycologicalconditiontypes.index",\r\n "url_type": "route",\r\n "open_in_new_tab": 0,\r\n "view_permission_id": "manage-psycologicalconditiontype",\r\n "content": "Psychological Conditions"\r\n },\r\n {\r\n "view_permission_id":"manage-questiontype",\r\n "open_in_new_tab":0,\r\n "url_type":"route",\r\n "url":"admin.questiontypes.index",\r\n "name":"Questionnaires",\r\n "id":1,\r\n "content":"Questionnaires"\r\n },\r\n {\r\n "id": 22,\r\n "name": "Questions",\r\n "url": "admin.questionbanks.index",\r\n "url_type": "route",\r\n "open_in_new_tab": 0,\r\n "view_permission_id": "manage-questionbank",\r\n "content": "Question Banks"\r\n },\r\n {\r\n "view_permission_id": "edit-settings",\r\n "open_in_new_tab": 0,\r\n "url_type": "route",\r\n "url": "admin.settings.edit?id=1",\r\n "name": "Settings",\r\n "id": 9,\r\n "content": "Settings"\r\n }\r\n ]\r\n }\r\n]', 1, NULL, '2018-10-25 01:30:42', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2017_11_02_060149_create_blog_categories_table', 1), (2, '2017_11_02_060149_create_blog_map_categories_table', 1), (3, '2017_11_02_060149_create_blog_map_tags_table', 1), (4, '2017_11_02_060149_create_blog_tags_table', 1), (5, '2017_11_02_060149_create_blogs_table', 1), (6, '2017_11_02_060149_create_email_template_placeholders_table', 1), (7, '2017_11_02_060149_create_email_template_types_table', 1), (8, '2017_11_02_060149_create_email_templates_table', 1), (9, '2017_11_02_060149_create_faqs_table', 1), (10, '2017_11_02_060149_create_history_table', 1), (11, '2017_11_02_060149_create_history_types_table', 1), (12, '2017_11_02_060149_create_modules_table', 1), (13, '2017_11_02_060149_create_notifications_table', 1), (14, '2017_11_02_060149_create_pages_table', 1), (15, '2017_11_02_060149_create_password_resets_table', 1), (16, '2017_11_02_060149_create_permission_role_table', 1), (17, '2017_11_02_060149_create_permission_user_table', 1), (18, '2017_11_02_060149_create_permissions_table', 1), (19, '2017_11_02_060149_create_role_user_table', 1), (20, '2017_11_02_060149_create_roles_table', 1), (21, '2017_11_02_060149_create_sessions_table', 1), (22, '2017_11_02_060149_create_settings_table', 1), (23, '2017_11_02_060149_create_social_logins_table', 1), (24, '2017_11_02_060149_create_users_table', 1), (25, '2017_11_02_060152_add_foreign_keys_to_history_table', 1), (26, '2017_11_02_060152_add_foreign_keys_to_notifications_table', 1), (27, '2017_11_02_060152_add_foreign_keys_to_permission_role_table', 1), (28, '2017_11_02_060152_add_foreign_keys_to_permission_user_table', 1), (29, '2017_11_02_060152_add_foreign_keys_to_role_user_table', 1), (30, '2017_11_02_060152_add_foreign_keys_to_social_logins_table', 1), (31, '2017_12_10_122555_create_menus_table', 1), (32, '2017_12_24_042039_add_null_constraint_on_created_by_on_user_table', 1), (33, '2017_12_28_005822_add_null_constraint_on_created_by_on_role_table', 1), (34, '2017_12_28_010952_add_null_constraint_on_created_by_on_permission_table', 1), (35, '2018_07_30_121806_create_psycologicalconditiontypes_table', 1), (36, '2018_07_31_083726_create_clinicalservices_table', 1), (37, '2018_07_31_111627_create_clients_table', 1), (38, '2018_07_31_120211_add_foreign_keys_client_table', 1), (39, '2018_08_02_053025_create_questions_table', 1), (40, '2018_08_03_090425_create_question_type_table', 1), (41, '2018_08_03_095700_create_clinicalservicesdetails_table', 1), (42, '2018_08_03_101425_update_clients_table', 1), (43, '2018_08_07_055856_create_managesessions_table', 1), (44, '2018_08_07_061120_add_foreign_key_managesessions_table', 1), (45, '2018_08_07_124637_create_custom_question_table', 1), (46, '2018_08_07_124858_create_addkey_custom_question_table', 1), (47, '2018_08_08_092535_rename_clinicalservices_table', 1), (48, '2018_08_08_105106_rename_psycologicalconditiontypes_table', 1), (49, '2018_08_10_060436_rename_column_clients_table', 2), (50, '2018_08_10_063152_update_managesession_table', 2), (51, '2018_08_10_065619_alter_age_clients_table', 2), (52, '2018_08_10_104639_add_foregin_key_psychological_table', 2), (53, '2018_08_10_104852_add_foreign_key_services_table', 2), (54, '2018_08_10_112341_create_question_option_table', 2), (55, '2018_08_10_112950_add_foreign_key_question_option_table', 2), (56, '2018_08_14_062001_create_knowledge_bases_table', 2), (57, '2018_08_17_085931_add_foreign_key_knowledge_bases_table', 2), (58, '2018_08_17_091408_create_client_knowledge_table', 2), (59, '2018_08_17_092032_add_foreign_key_to_client_knowledge_table', 2), (60, '2018_08_17_092609_create_question_submit_table', 2), (61, '2018_08_17_093409_create_subjective_question_save_table', 2), (62, '2018_08_17_093620_add_foreign_key_to_question_submit_table', 2), (63, '2018_08_17_093711_add_foreign_key_to_subjective_question_save_table', 2), (64, '2018_08_24_140153_add_columns_managesession_table', 2), (65, '2018_08_27_062759_create_interventions_type_table', 2), (66, '2018_08_27_094428_change_managesessions_table', 2), (67, '2018_08_28_081614_create_client_intervention_table', 2), (68, '2018_08_28_142425_create_reports_table', 2), (69, '2018_08_29_110351_create_feedbacks_table', 2), (70, '2018_09_03_061311_add_foregin_key_feedbacks_table', 2), (71, '2018_09_03_065647_add_status_client_intervention', 2), (72, '2018_09_03_072718_change_question_type_table_id', 2), (73, '2018_09_05_060405_remove_filed_to_managesessions_table', 3), (74, '2018_09_05_061144_create_testimonials_table', 4), (75, '2018_09_05_121510_add_foregin_key_testimonial_table', 4), (76, '2018_09_06_130451_change_knowledge_bases_table', 4), (77, '2018_09_07_090402_add_status_to_question_type_table', 5), (78, '2018_09_10_074649_remove_field_to_custom_question_table', 6), (79, '2018_09_10_134817_remove_field_subjective_question_save_table', 6), (80, '2018_09_11_113041_update_session_table_to_managesessions_table', 6), (81, '2018_09_11_125711_create_behaviour_table', 6), (82, '2018_09_11_131957_create_scales_table', 6), (83, '2018_09_12_053158_add_forgin_key_scales_table', 6), (84, '2018_09_12_101147_add_forgin_key_behaviour_table', 6), (85, '2018_09_13_070514_add_behaviour_id_to_question_table', 6), (86, '2018_09_13_070955_add_foregin_key_behaviour_to_questions_table', 6), (87, '2018_10_01_074140_create_questiontypes_table', 7), (88, '2018_10_03_060605_add_soft_delete_to_question_type_table', 7), (89, '2018_10_16_140108_update_session_table_add_visit_field', 8), (90, '2018_10_17_054437_add_client_code_to_clients_table', 8), (91, '2018_10_17_095619_rename_column_session_threshold_value', 8), (92, '2018_10_17_095907_add_column_session_threshold_value_end', 8), (93, '2018_10_22_130410_add_new_filed_clients_table', 8), (94, '2018_10_25_074244_update_session_visit_to_managesession_table', 9), (95, '2018_11_30_071730_update_session_table', 10), (96, '2018_12_04_072947_remove_is_send_filed_client_knowledge_base', 11), (97, '2018_12_11_151916_update_custom_question_table', 12), (98, '2018_12_11_151944_update_manage_session_table', 12), (99, '2018_12_12_111001_add_client_table_field', 12), (100, '2018_12_13_073615_add_client_new_fiel', 12), (101, '2018_12_13_115935_change_comment_schedule_flag_session_table', 12); -- -------------------------------------------------------- -- -- Table structure for table `modules` -- CREATE TABLE `modules` ( `id` int(10) UNSIGNED NOT NULL, `view_permission_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'view_route', `created_by` int(10) UNSIGNED NOT NULL, `updated_by` int(10) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `modules` -- INSERT INTO `modules` (`id`, `view_permission_id`, `name`, `url`, `created_by`, `updated_by`, `created_at`, `updated_at`) VALUES (1, 'view-access-management', 'Access Management', NULL, 1, NULL, '2018-10-25 01:30:42', NULL), (2, 'view-user-management', 'User Management', 'admin.access.user.index', 1, NULL, '2018-10-25 01:30:42', NULL), (3, 'view-role-management', 'Role Management', 'admin.access.role.index', 1, NULL, '2018-10-25 01:30:42', NULL), (4, 'view-permission-management', 'Permission Management', 'admin.access.permission.index', 1, NULL, '2018-10-25 01:30:42', NULL), (5, 'view-menu', 'Menus', 'admin.menus.index', 1, NULL, '2018-10-25 01:30:42', NULL), (6, 'view-module', 'Module', 'admin.modules.index', 1, NULL, '2018-10-25 01:30:42', NULL), (7, 'view-page', 'Pages', 'admin.pages.index', 1, NULL, '2018-10-25 01:30:42', NULL), (8, 'view-email-template', 'Email Templates', 'admin.emailtemplates.index', 1, NULL, '2018-10-25 01:30:42', NULL), (9, 'edit-settings', 'Settings', 'admin.settings.edit', 1, NULL, '2018-10-25 01:30:42', NULL), (10, 'view-blog', 'Blog Management', NULL, 1, NULL, '2018-10-25 01:30:42', NULL), (11, 'view-blog-category', 'Blog Category Management', 'admin.blogcategories.index', 1, NULL, '2018-10-25 01:30:42', NULL), (12, 'view-blog-tag', 'Blog Tag Management', 'admin.blogtags.index', 1, NULL, '2018-10-25 01:30:42', NULL), (13, 'view-blog', 'Blog Management', 'admin.blogs.index', 1, NULL, '2018-10-25 01:30:42', NULL), (14, 'view-faq', 'Faq Management', 'admin.faqs.index', 1, NULL, '2018-10-25 01:30:42', NULL); -- -------------------------------------------------------- -- -- Table structure for table `notifications` -- CREATE TABLE `notifications` ( `id` int(10) UNSIGNED NOT NULL, `message` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 - Dashboard , 2 - Email , 3 - Both', `is_read` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `notifications` -- INSERT INTO `notifications` (`id`, `message`, `user_id`, `type`, `is_read`, `created_at`, `updated_at`) VALUES (1, 'User Logged In: Admin', 1, 1, 0, '2018-08-09 08:41:22', NULL), (2, 'User Logged In: Admin', 1, 1, 0, '2018-08-09 09:03:31', NULL), (3, 'User Logged In: Superadmin', 1, 1, 0, '2018-08-10 05:20:53', NULL), (4, 'User Logged In: Admin', 1, 1, 0, '2018-08-10 10:12:24', NULL), (5, 'User Logged In: Admin', 1, 1, 0, '2018-08-14 03:46:37', NULL), (6, 'User Logged In: Superadmin', 1, 1, 0, '2018-08-16 04:11:50', NULL), (7, 'User Logged In: Admin', 1, 1, 0, '2018-08-16 04:19:57', NULL), (8, 'User Logged In: Superadmin', 1, 1, 0, '2018-08-16 07:16:33', NULL), (9, 'User Logged In: Superadmin', 1, 1, 0, '2018-08-20 00:57:54', NULL), (10, 'User Logged In: Superadmin', 1, 1, 0, '2018-08-23 00:20:52', NULL), (11, 'User Logged In: Superadmin', 1, 1, 0, '2018-09-05 02:02:44', NULL), (12, 'User Logged In: Admin', 1, 1, 0, '2018-09-05 02:03:38', NULL), (13, 'User Logged In: Admin', 1, 1, 0, '2018-09-05 03:10:20', NULL), (14, 'User Logged In: Admin', 1, 1, 0, '2018-09-05 06:19:13', NULL), (15, 'User Logged In: Superadmin', 1, 1, 0, '2018-09-05 07:30:40', NULL), (16, 'User Logged In: Superadmin', 1, 1, 0, '2018-09-05 08:07:27', NULL), (17, 'User Logged In: Admin', 1, 1, 0, '2018-09-06 05:43:01', NULL), (18, 'User Logged In: Jane', 1, 1, 0, '2018-09-06 05:45:57', NULL), (19, 'User Logged In: Admin', 1, 1, 0, '2018-09-06 07:49:05', NULL), (20, 'User Logged In: Jane', 1, 1, 0, '2018-09-06 07:52:13', NULL), (21, 'User Logged In: Admin', 1, 1, 0, '2018-09-06 08:02:40', NULL), (22, 'User Logged In: Jane', 1, 1, 0, '2018-09-07 00:56:46', NULL), (23, 'User Logged In: Superadmin', 1, 1, 0, '2018-09-07 01:00:31', NULL), (24, 'User Logged In: Superadmin', 1, 1, 0, '2018-09-07 03:24:13', NULL), (25, 'User Logged In: Admin', 1, 1, 0, '2018-09-07 03:24:22', NULL), (26, 'User Logged In: Admin', 1, 1, 0, '2018-09-07 03:57:01', NULL), (27, 'User Logged In: Jane', 1, 1, 0, '2018-09-07 03:57:10', NULL), (28, 'User Logged In: Admin', 1, 1, 0, '2018-09-12 09:30:56', NULL), (29, 'User Logged In: Jane', 1, 1, 0, '2018-09-12 09:32:03', NULL), (30, 'User Logged In: Admin', 1, 1, 0, '2018-09-14 03:55:46', NULL), (31, 'User Logged In: Admin', 1, 1, 0, '2018-09-14 04:09:32', NULL), (32, 'User Logged In: Jane', 1, 1, 0, '2018-09-14 04:27:03', NULL), (33, 'User Logged In: Superadmin', 1, 1, 0, '2018-09-14 05:14:03', NULL), (34, 'User Logged In: Superadmin', 1, 1, 0, '2018-09-19 03:20:27', NULL), (35, 'User Logged In: Admin', 1, 1, 0, '2018-09-19 03:24:08', NULL), (36, 'User Logged In: Jane', 1, 1, 0, '2018-09-19 03:29:12', NULL), (37, 'User Logged In: Sarah', 1, 1, 0, '2018-09-19 03:31:37', NULL), (38, 'User Logged In: Jane', 1, 1, 0, '2018-09-19 03:40:06', NULL), (39, 'User Logged In: Jane', 1, 1, 0, '2018-09-21 02:00:50', NULL), (40, 'User Logged In: Admin', 1, 1, 0, '2018-09-21 02:01:06', NULL), (41, 'User Logged In: Admin', 1, 1, 0, '2018-09-21 04:31:35', NULL), (42, 'User Logged In: Admin', 1, 1, 0, '2018-09-21 04:50:11', NULL), (43, 'User Logged In: Admin', 1, 1, 0, '2018-09-28 05:54:05', NULL), (44, 'User Logged In: Superadmin', 1, 1, 0, '2018-09-28 05:55:02', NULL), (45, 'User Logged In: Admin', 1, 1, 0, '2018-09-28 06:01:46', NULL), (46, 'User Logged In: Admin', 1, 1, 0, '2018-09-28 06:09:02', NULL), (47, 'User Logged In: Jane', 1, 1, 0, '2018-09-28 06:09:30', NULL), (48, 'User Logged In: Jane', 1, 1, 0, '2018-09-28 09:07:24', NULL), (49, 'User Logged In: Admin', 1, 1, 0, '2018-09-28 09:08:22', NULL), (50, 'User Logged In: Franca', 1, 1, 0, '2018-09-28 09:59:33', NULL), (51, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-05 04:22:26', NULL), (52, 'User Logged In: Jane', 1, 1, 0, '2018-10-05 04:34:06', NULL), (53, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-05 04:35:20', NULL), (54, 'User Logged In: Admin', 1, 1, 0, '2018-10-05 07:05:28', NULL), (55, 'User Logged In: Jane', 1, 1, 0, '2018-10-05 07:07:26', NULL), (56, 'User Logged In: Admin', 1, 1, 0, '2018-10-09 07:49:37', NULL), (57, 'User Logged In: Franca', 1, 1, 0, '2018-10-09 08:01:36', NULL), (58, 'User Logged In: Franca', 1, 1, 0, '2018-10-09 08:09:29', NULL), (59, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-10 07:51:20', NULL), (60, 'User Logged In: Jane', 1, 1, 0, '2018-10-10 08:10:37', NULL), (61, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-10 08:32:41', NULL), (62, 'User Logged In: Jane', 1, 1, 0, '2018-10-10 08:33:03', NULL), (63, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-10 08:33:27', NULL), (64, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-11 01:03:23', NULL), (65, 'User Logged In: Admin', 1, 1, 0, '2018-10-11 01:03:34', NULL), (66, 'User Logged In: Admin', 1, 1, 0, '2018-10-15 02:41:43', NULL), (67, 'User Logged In: Admin', 1, 1, 0, '2018-10-15 08:54:41', NULL), (68, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-16 04:11:14', NULL), (69, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-16 06:35:08', NULL), (70, 'User Logged In: Admin', 1, 1, 0, '2018-10-16 07:26:23', NULL), (71, 'User Logged In: Franca', 1, 1, 0, '2018-10-17 02:08:34', NULL), (72, 'User Logged In: Franca', 1, 1, 0, '2018-10-17 02:29:46', NULL), (73, 'User Logged In: Admin', 1, 1, 0, '2018-10-17 02:30:42', NULL), (74, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-17 02:49:43', NULL), (75, 'User Logged In: Admin', 1, 1, 0, '2018-10-17 04:00:46', NULL), (76, 'User Logged In: Admin', 1, 1, 0, '2018-10-17 04:09:25', NULL), (77, 'User Logged In: Franca', 1, 1, 0, '2018-10-17 04:10:27', NULL), (78, 'User Logged In: Admin', 1, 1, 0, '2018-10-17 04:39:45', NULL), (79, 'User Logged In: Admin', 1, 1, 0, '2018-10-18 11:46:00', NULL), (80, 'User Logged In: Franca', 1, 1, 0, '2018-10-19 05:36:27', NULL), (81, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-22 00:15:36', NULL), (82, 'User Logged In: Admin', 1, 1, 0, '2018-10-22 08:16:41', NULL), (83, 'User Logged In: Admin', 1, 1, 0, '2018-10-23 02:50:42', NULL), (84, 'User Logged In: Admin', 1, 1, 0, '2018-10-23 08:08:11', NULL), (85, 'User Logged In: Franca', 1, 1, 0, '2018-10-23 09:03:38', NULL), (86, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-25 01:30:52', NULL), (87, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-25 07:54:20', NULL), (88, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-29 04:10:13', NULL), (89, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-29 04:47:22', NULL), (90, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-29 04:48:57', NULL), (91, 'User Logged In: Admin', 1, 1, 0, '2018-10-29 04:51:40', NULL), (92, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-29 07:44:09', NULL), (93, 'User Logged In: Superadmin', 1, 1, 0, '2018-10-30 23:04:46', NULL), (94, 'User Logged In: Admin', 1, 1, 0, '2018-11-01 08:10:56', NULL), (95, 'User Logged In: Admin', 1, 1, 0, '2018-11-02 06:30:28', NULL), (96, 'User Logged In: Michael', 1, 1, 0, '2018-11-02 07:12:01', NULL), (97, 'User Logged In: Admin', 1, 1, 0, '2018-11-12 06:30:23', NULL), (98, 'User Logged In: Admin', 1, 1, 0, '2018-11-14 11:57:34', NULL), (99, 'User Logged In: Franca', 1, 1, 0, '2018-11-14 12:10:41', NULL), (100, 'User Logged In: Admin', 1, 1, 0, '2018-11-17 07:34:45', NULL), (101, 'User Logged In: Superadmin', 1, 1, 0, '2018-11-19 05:15:38', NULL), (102, 'User Logged In: Mike', 1, 1, 0, '2018-11-19 05:33:08', NULL), (103, 'User Logged In: Admin', 1, 1, 0, '2018-11-19 07:40:06', NULL), (104, 'User Logged In: Admin', 1, 1, 0, '2018-11-20 04:13:07', NULL), (105, 'User Logged In: Tom', 1, 1, 0, '2018-11-20 05:01:36', NULL), (106, 'User Logged In: Admin', 1, 1, 0, '2018-11-20 08:32:13', NULL), (107, 'User Logged In: Franca', 1, 1, 0, '2018-11-23 04:52:41', NULL), (108, 'User Logged In: Admin', 1, 1, 0, '2018-11-27 02:50:50', NULL), (109, 'User Logged In: Admin', 1, 1, 0, '2018-11-27 03:00:22', NULL), (110, 'User Logged In: Mark', 1, 1, 0, '2018-11-27 03:19:38', NULL), (111, 'User Logged In: Admin', 1, 1, 0, '2018-11-27 07:41:00', NULL), (112, 'User Logged In: Mark', 1, 1, 0, '2018-11-27 07:47:31', NULL), (113, 'User Logged In: Admin', 1, 1, 0, '2018-11-27 08:11:18', NULL), (114, 'User Logged In: Admin', 1, 1, 0, '2018-11-29 05:12:30', NULL), (115, 'User Logged In: Admin', 1, 1, 0, '2018-11-29 05:12:49', NULL), (116, 'User Logged In: Superadmin', 1, 1, 0, '2018-12-03 01:46:28', NULL), (117, 'User Logged In: Superadmin', 1, 1, 0, '2018-12-04 02:03:29', NULL), (118, 'User Logged In: Mark', 1, 1, 0, '2018-12-04 02:49:39', NULL), (119, 'User Logged In: Superadmin', 1, 1, 0, '2018-12-04 08:24:32', NULL), (120, 'User Logged In: Mark', 1, 1, 0, '2018-12-04 08:27:05', NULL), (121, 'User Logged In: Franca', 1, 1, 0, '2018-12-05 08:59:37', NULL), (122, 'User Logged In: Superadmin', 1, 1, 0, '2018-12-10 01:40:47', NULL), (123, 'User Logged In: Admin', 1, 1, 0, '2018-12-10 03:56:57', NULL), (124, 'User Logged In: Superadmin', 1, 1, 0, '2018-12-12 08:08:37', NULL), (125, 'User Logged In: Superadmin', 1, 1, 0, '2018-12-14 00:09:59', NULL), (126, 'User Logged In: Admin', 1, 1, 0, '2018-12-14 00:11:53', NULL), (127, 'User Logged In: Superadmin', 1, 1, 0, '2018-12-14 00:18:57', NULL), (128, 'User Logged In: Superadmin', 1, 1, 0, '2018-12-14 03:17:59', NULL), (129, 'User Logged In: Mark', 1, 1, 0, '2018-12-14 03:23:14', NULL), (130, 'User Logged In: Superadmin', 1, 1, 0, '2018-12-14 03:32:35', NULL), (131, 'User Logged In: Superadmin', 1, 1, 0, '2018-12-14 03:57:05', NULL), (132, 'User Logged In: Mark', 1, 1, 0, '2018-12-14 03:59:16', NULL), (133, 'User Logged In: Superadmin', 1, 1, 0, '2019-01-15 02:29:18', NULL), (134, 'User Logged In: Superadmin', 1, 1, 0, '2019-01-15 05:44:41', NULL), (135, 'User Logged In: Superadmin', 1, 1, 0, '2019-01-17 01:28:27', NULL), (136, 'User Logged In: Sahil', 1, 1, 0, '2019-01-17 01:32:19', NULL), (137, 'User Logged In: Tom', 1, 1, 0, '2019-01-17 02:13:31', NULL), (138, 'User Logged In: Mark', 1, 1, 0, '2019-01-17 02:17:11', NULL), (139, 'User Logged In: john', 1, 1, 0, '2019-01-17 02:32:33', NULL), (140, 'User Logged In: john', 1, 1, 0, '2019-01-17 02:47:05', NULL), (141, 'User Logged In: john', 1, 1, 0, '2019-01-17 03:46:08', NULL), (142, 'User Logged In: Superadmin', 1, 1, 0, '2019-01-17 04:28:03', NULL), (143, 'User Logged In: john', 1, 1, 0, '2019-01-17 04:28:37', NULL), (144, 'User Logged In: Superadmin', 1, 1, 0, '2019-01-18 04:30:49', NULL), (145, 'User Logged In: john', 1, 1, 0, '2019-01-18 04:31:25', NULL), (146, 'User Logged In: Superadmin', 1, 1, 0, '2019-01-18 04:42:53', NULL), (147, 'User Logged In: john', 1, 1, 0, '2019-01-18 04:43:26', NULL), (148, 'User Logged In: john', 1, 1, 0, '2019-01-18 04:46:58', NULL), (149, 'User Logged In: Superadmin', 1, 1, 0, '2019-01-21 00:18:57', NULL), (150, 'User Logged In: Mark', 1, 1, 0, '2019-01-21 00:21:35', NULL), (151, 'User Logged In: Superadmin', 1, 1, 0, '2019-01-21 00:27:09', NULL), (152, 'User Logged In: john', 1, 1, 0, '2019-01-21 00:28:09', NULL), (153, 'User Logged In: john', 1, 1, 0, '2019-01-21 00:31:38', NULL), (154, 'User Logged In: Superadmin', 1, 1, 0, '2019-01-21 01:15:44', NULL), (155, 'User Logged In: Superadmin', 1, 1, 0, '2019-01-21 03:29:53', NULL), (156, 'User Logged In: Superadmin', 1, 1, 0, '2019-01-21 04:17:13', NULL), (157, 'User Logged In: john', 1, 1, 0, '2019-01-21 04:29:00', NULL), (158, 'User Logged In: Superadmin', 1, 1, 0, '2019-01-21 08:17:33', NULL), (159, 'User Logged In: Superadmin', 1, 1, 0, '2019-01-21 08:20:01', NULL), (160, 'User Logged In: john', 1, 1, 0, '2019-01-21 08:20:32', NULL), (161, 'User Logged In: john', 1, 1, 0, '2019-01-22 01:39:30', NULL), (162, 'User Logged In: john', 1, 1, 0, '2019-01-22 01:41:33', NULL), (163, 'User Logged In: john', 1, 1, 0, '2019-01-22 09:09:17', NULL), (164, 'User Logged In: john', 1, 1, 0, '2019-01-30 04:31:48', NULL), (165, 'User Logged In: john', 1, 1, 0, '2019-01-30 04:39:51', NULL), (166, 'User Logged In: Superadmin', 1, 1, 0, '2019-03-14 00:59:13', NULL), (167, 'User Logged In: john', 1, 1, 0, '2019-03-22 03:04:51', NULL), (168, 'User Logged In: john', 1, 1, 0, '2019-03-26 09:18:36', NULL), (169, 'User Logged In: Superadmin', 1, 1, 0, '2019-03-28 09:23:31', NULL), (170, 'User Logged In: john', 1, 1, 0, '2019-03-28 09:25:05', NULL), (171, 'User Logged In: john', 1, 1, 0, '2019-03-28 09:37:22', NULL), (172, 'User Logged In: john', 1, 1, 0, '2019-04-01 08:24:44', NULL), (173, 'User Logged In: Superadmin', 1, 1, 0, '2019-04-04 01:55:55', NULL), (174, 'User Logged In: Superadmin', 1, 1, 0, '2019-04-04 02:00:19', NULL), (175, 'User Logged In: Superadmin', 1, 1, 0, '2019-04-08 02:47:42', NULL), (176, 'User Logged In: Superadmin', 1, 1, 0, '2019-04-08 03:17:25', NULL), (177, 'User Logged In: Superadmin', 1, 1, 0, '2019-04-08 04:07:57', NULL); -- -------------------------------------------------------- -- -- Table structure for table `pages` -- CREATE TABLE `pages` ( `id` int(10) UNSIGNED NOT NULL, `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `page_slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `description` text COLLATE utf8mb4_unicode_ci, `cannonical_link` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `seo_title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `seo_keyword` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `seo_description` text COLLATE utf8mb4_unicode_ci, `status` tinyint(1) NOT NULL DEFAULT '1', `created_by` int(10) UNSIGNED NOT NULL, `updated_by` int(10) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `pages` -- INSERT INTO `pages` (`id`, `title`, `page_slug`, `description`, `cannonical_link`, `seo_title`, `seo_keyword`, `seo_description`, `status`, `created_by`, `updated_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'Terms and conditions', 'terms-and-conditions', '<div class="col-12 col-md-9 content">\n\n <p>The following terms and conditions were put together to help users better understand how their use of this website associated with the domain name bootstrapbay.com (the “Website”) will be governed.</p>\n\n <p>The Website is owned and operated by <NAME> PFA, an entity registered and functioning according to Romanian laws, with its headquarters in Cândești Village, Cândești commune, Buzău county, Romania, registered with the Trade Registry under no. F10/617/2017, fiscal identification code 38568939 (“Bootstrapbay”).</p><p>\n\n </p><p>Your use and access of this Website indicates you understand and accept these Terms and Conditions. If you are unsure about the meaning and/or effects of any clause containted in these Terms and Conditions, please <a href="/contact-support" target="_blank">reach out to us</a>.</p>\n\n <h4> 1. Ownership and Property Rights</h4>\n\n <p>Using this Website does not grant you any ownership or interest in any content, visual interfaces, graphics, design, compilation, information, computer code, products, software, services and all other elements you may access from the Website.</p>\n\n <p>You are authorized to download a single copy of purchased content contained on the website for your personal, non-commercial uses, provided that you maintain the copyright and other notices contained in that content. This excludes products available with premium licenses. Please consult our&nbsp;\nlicenses&nbsp;\npage for more information.</p>\n\n <h4>2. Personal data about you</h4>\n\n <p>In the course of your use of the Website, you may be asked for personally identifiable information (“Personal Data”) or such data may be collected from you indirectly, while you are using the Website. Our&nbsp;<a href="/privacy" target="_blank">Privacy Policy</a> provides the type of data we collect and process, for what purpose and for how long, as well as who can access such data (including third-parties) and how you can exercise your rights, according to provisions of European personal data laws in force. You are solely responsible for the accuracy and content of this user information. There are different types of personal data that is collected about you, based on your use of the Website as a visitor or a registered user.</p>\n\n <h4>3. Third Party websites</h4>\n <p>In the course of your use of the Website, you may be re-directed to third party websites. We have no responsibility for the content or information provided by or through third party websites even if they are affiliates of ours.</p>\n\n <p>Linking to third party websites does not imply our endorsement of that web website. We disclaim any liability for links to another website.</p>\n\n <h4>4. Creators’ liability</h4>\n\n <p>The Website may contain content created by third-party designers, contracted by Bootstrapbay for this purpose. If you are such a third-party designer, you are liable to abide by, apart from these Terms and Conditions, the Data Processing Addendum made available by Bootstrapbay to you whenever you have signed an agreement for design creation with Bootstrapbay.</p>\n\n <h4>5. Limitation of Liability</h4>\n\n <p>\n You agree to indemnify and hold harmless BootstrapBay and its parent, subsidiaries, affiliates or any related companies, licensors and suppliers, and their respective directors, officers, employees, agents, representatives, and contractors, from all damages, injuries, liabilities, costs, fees and expenses (including, but not limited to, legal and accounting fees) arising from or in any way related to:\n </p><ul class="list-unstyled">\n <li>(i) your use or misuse of the website (including your use or misuse of Third Party Content); </li>\n <li>(ii) your breach or other violation of these Terms including any representations, warranties and covenants herein; </li>\n <li>(iii) your violation of the rights of any other person or entity, including, but not limited to claims that any User Content infringes or violates any third party intellectual property rights.</li>\n </ul>\n <p></p>\n\n <h4>6. Exclusion of Warranties</h4>\n\n <p>The BootstrapBay content, or any other product, service or information provided by BootstrapBay, user content, third-party content, and any other software, services or applications made available in conjunction with or through the website, are provided on an "as is", "as available", "with all faults" basis without representations or warranties of any kind, either express, implied, or statutory, including, but not limited to, in terms of correctness, accuracy, reliability, or otherwise.</p>\n\n <p>To the fullest extent permissible by applicable law, BootstrapBay hereby disclaims all warranties of any kind, either express or implied, including, any warranty of merchantability, fitness for a particular purpose, non-infringement, or arising from a course of dealing, with respect to the products or services provided by BootstrapBay.</p>\n\n <h4>7. Notices</h4>\n\n <p>BootstrapBay may provide you with notices by e-mail related to your activity and/or your account. Additionally, you may opt-in to receive a newsletter with updates about new products available in the Website. You can opt-out of our newsletter at any time, by following the steps described in the footer of any e-mail you receive from us as a result of you subscribing to the newsletter.</p>\n\n <h4>8. Refunds</h4>\n\n <p>Refunds will only be administered if products are deemed to be faulty or not as described on the product page. To request a refund, please&nbsp;\ncontact support&nbsp;\nand specify exactly what the issue is with the product. The support team will then investigate to determine whether or not the product was faulty and not as described.</p>\n\n <p>Unfortunately, due to the nature of digital goods, refunds cannot be processed until it has been determined that the product is faulty.</p>\n\n <h4>9. Governing Law</h4>\n\n <p>This agreement, and any dispute, controversy, proceedings or claim of whatever nature arising out of or in any way relating to these Terms &amp; Conditions or its formation shall be governed by and construed in accordance with Romanian law.</p>\n\n <h4>10. Modification of the Terms</h4>\n\n <p>BootstrapBay reserves the right to update or modify the Terms &amp; Conditions at any time without prior notice, and such changes will be effective immediately upon being posted on the website. These Terms will identify the date of the last update. In the case of material changes to the Terms, BootstrapBay will make reasonable efforts to notify you of the change, such as through sending an email to any address you may have used to register for an account, through a pop-up window on the website, or other similar mechanism.</p>\n\n <p>These terms were last updated on July 30, 2018.</p>\n\n </div>', NULL, NULL, NULL, NULL, 1, 1, NULL, '2018-12-14 03:16:35', '2018-12-14 03:16:35', NULL), (2, 'Disclaimer', 'disclaimer', '<p>Disclaimer</p><ol type="a">\n <li>The materials on Bootstrapious website are provided on an as is basis. Bootstrapious makes no warranties, expressed or implied, and hereby disclaims and negates all other warranties including, without limitation, implied warranties or conditions of merchantability, fitness for a particular purpose, or non-infringement of intellectual property or other violation of rights.</li>\n <li>Further, Bootstrapious does not warrant or make any representations concerning the accuracy, likely results, or reliability of the use of the materials on its website or otherwise relating to such materials or on any sites linked to this site.</li>\n</ol>', NULL, NULL, NULL, NULL, 1, 1, NULL, '2018-12-14 03:16:35', '2018-12-14 03:16:35', NULL), (3, 'Terms of service', 'terms_of_service', '<p align="justify">Neurofeedback Training (NFT), sometimes referred to as EEG biofeedback, is being offered to me (or my child) as a form of treatment that offers potential benefits in the area of difficulty for which I/we are seeking help.</p>\n<p align="justify"><strong>WHAT IS NEUROFEEDBACK TRAINING (NFT)?</strong></p>\n<p align="justify">NFT is a non-medical, general training that takes advantage of the brain&rsquo;\ns ability to self-regulate. Non-invasive sensors called &lsquo;\nelectrodes&rsquo;\n are placed on specific sites on the surface of the head using an EEG cap. The sensors enable brain activity patterns to be picked up and displayed on a computer screen. The techniques used to attach the electrodes have been used at clinics and research institutions all over the world for many years and no deleterious side effects have been reported. It is a universally used procedure for the recording of EEG, and a necessary tool for the evaluation of brain function in various parts of the brain. The computer produces feedback about whether brain activity is desirable or not. The feedback allows the brain to learn to produce more efficient patterns more frequently.</p>\n<p align="justify">I understand that NFT requires the placement of surface electrodes on my scalp and conductive gel used for the purpose of recording my EEG and uses this signal to provide feedback in the form of video display or games. While there are few risks associated with this procedure, there is a remote possibility of skin irritation from the electrode gel that is used to attach electrodes. I understand that I can ask to have the electrodes removed at any time if I so desire. There is no risk of electric shock from this procedure.</p>\n<p align="justify">I have been informed that, although there is a growing research evidence base for the efficacy of NFT, it is still considered an experimental treatment in some contexts. The extent to which any benefits will be obtained or will be long-lasting is not fully proven. NFT often produces very beneficial and lasting changes; however, sometimes this may not be the case. We generally expect a positive response within the first 12 sessions, if there is to be one. If no improvement is achieved in that time, we can then discuss suspending treatment.</p>\n<p align="justify">In the majority of cases where there is improvement in function, it then becomes the client&rsquo;s own responsibility to monitor progress and to continue training as long as it is perceived to be of benefit. <strong>While there are often improvements in the first few sessions, NFT usually requires at least 15-20 sessions with a small number of follow-up reinforcement sessions for lasting change to take place.</strong></p>\n<p align="justify"><strong>LIMITATIONS OF TRAINING AND POTENTIAL RISKS</strong></p>\n<p align="justify">It is important to understand that a NFT assessment is NOT the same as a &ldquo;\nclinical EEG&rdquo;\n. NFT is not designed, and we do not try, to use it to diagnose medical conditions.</p>\n<p align="justify">In terms of the NFT itself, only rarely have significant side effects been reported. Occasionally someone may feel tired, spacey, anxious, experience a headache, have difficulty falling asleep, or feel agitated or irritable. <strong>In some instances, it has been reported that symptoms have gotten worse before they get better. This is to be expected in some cases, and we appreciate your patience as you work through these issues. </strong>Many of these feelings are transient and pass within a short time following the training session. If they do not, you should report this at your next session.</p>\n<p align="justify">You may feel an increased need to sleep during the first few weeks of training. This can be due to a variety of factors, but in general is considered to be normal and a sign that the brain is renormalising between sessions. Please make allowances for the increased need to sleep.</p>\n<p align="justify"><strong>MEDICATIONS AND CONSULTATION WITH YOUR PHYSICIAN</strong></p>\n<p align="justify">NFT may affect medications and/or change the dosage requirements for some medications. Therefore, it is very important that the physician monitoring your medication be made aware that you are using NFT. <strong>Do not stop or alter your medications without consulting with your physician</strong>. I accept that it is my responsibility to inform my GP/other health care provider and Dr. <NAME> regarding changes in symptoms or development of new symptoms. NFT is not a substitute for effective standard medical treatment.</p>\n<p align="justify">NFT can substantially affect your glucose level as your brain works very hard when you train. Please have a meal or snack before coming to appointments, and let us know if you are diabetic or hypoglycaemic. You may find that you are hungry after sessions, so please allow time to have a snack if required. In addition <u><strong>it is very important for us to know if you have or have ever had epileptic seizures</strong></u><strong>.</strong></p>\n<p align="justify"><strong>CONFIDENTIALITY</strong></p>\n<p align="justify">Information shared in sessions is kept confidential and will not be disclosed without your written permission, except in cases of:</p>\n<p align="justify">1) Situations in which you are deemed to be a danger to yourself or others (i.e. threats of homicide or suicide) and</p>\n<p align="justify">2) Situations in which children are endangered or have been abused.</p>\n<p align="justify"><strong>FEES AND MISSED APPOINTMENTS</strong></p>\n<p align="justify">Sessions are typically scheduled for at least once a week, but generally twice a week where possible, and are billed at &euro;\n120 per session. Payment is due at time of service. Clients will be charged &euro;\n40 for cancellations not made more than 24 hours in advance. Exceptions to this policy will be considered on a case by case basis.</p>\n<p align="justify"><strong>VOLUNTARY PARTICIPATION AND CONSENT TO EEG NEUROFEEDBACK</strong></p>\n<p align="justify">I voluntarily, knowingly, and willingly give my consent to the use of NFT. I understand the principles set forth here with regard to benefits and risks of NFT, medication effects, expectations as to length of training, policies regarding payment and missed appointments. Furthermore, by signing this form I waive any claim of damages due to NFT, including claimed side effects, or the failure to see changes during training.</p>', NULL, NULL, NULL, NULL, 1, 1, NULL, '2018-12-14 03:16:35', '2018-12-14 03:16:35', NULL), (4, 'Research Activity', 'research', '<p align="justify">At the Actualise Neurofeedback Training Clinic, we may store data for potential future research projects. All data entered into this store is anonymised, so that it cannot be linked to the client from whom the data came. As such, data will never be identifiable &ndash; identity is protected at all times.</p>\n<p align="justify">Furthermore, any research projects which we will carry out will be subject to full ethical approval from the Dublin City University Research Ethics Committee.</p>\n<p align="justify">If you are happy to have your data included in this data store, please tick the box below and print and sign your name. <strong>Remember, you are under no obligation to do so. Your decision in no way affects the services provided to you at the clinic.</strong></p>\n<p align="justify"><br /><br /></p>', NULL, NULL, NULL, NULL, 1, 1, NULL, '2018-12-14 03:16:35', '2018-12-14 03:16:35', NULL), (5, 'GDPR', 'gdpr', '<p><span style="color: #000000;"><span style="font-family: Calibri, serif;">Actualise Psychological Services collects and processes sensitive, healthcare related personal data on the basis of your explicit consent, and in order to form an opinion about, and/or to diagnose your presenting condition. Your personal data will not be used for any other purpose. </span></span></p>\n<p><span style="color: #000000;"><span style="font-family: Calibri, serif;">Your data will be processed in a fair manner and retained by Actualise Psychological Services for a period of 7 years after your last attendance. &nbsp;\nYour data will be stored securely and protected during this time as set out in our Data Protection Policy which is available to you if you wish to have it.</span></span></p>\n<p><span style="color: #000000;"><span style="font-family: Calibri, serif;">Your personal data may be shared with the person who referred you to us, with your family doctor (GP), with a medical consultant or other specialist practitioners. &nbsp;\nOther examples of people with whom your data may be shared, subject to your prior agreement, include your Legal Advisors, employers, Insurers, team/club medical staff and management in order to facilitate your return to normal activities. Your data will not be shared with any other third party outside of the Clinic without getting your permission to do so. </span></span></p>\n<p><span style="color: #000000;"><span style="font-family: Calibri, serif;">Your data will not be subjected to automated processing by this clinic. &nbsp;\n</span></span></p>\n<p><span style="color: #000000;"><span style="font-family: Calibri, serif;">You have a number of rights in relation to your personal data held at this clinic. These include</span></span></p>\n<ol type="a">\n<ul type="a">\n<li>the right to request from us<span style="font-family: Calibri, serif;"> access to and rectification or erasure of your personal data,</span></li>\n</ul>\n</ol>\n<ol type="a">\n<ul type="a">\n<li>the right to restrict processing, object to processing as well as in certain circumstances the right to data portability</li>\n</ul>\n</ol>\n<ol type="a">\n<ul type="a">\n<li>the right to withdraw your consent for the processing of your data (in certain circumstances) at any time which will not affect the lawfulness of the processing before your consent was withdrawn.</li>\n</ul>\n</ol>\n<ol type="a">\n<ul type="a">\n<li>the right to lodge a complaint to the Data Commissioner&rsquo;\ns Office if you believe that we have not complied with the requirements of the GDPR or DPA&nbsp;\nwith regard to your personal data.</li>\n</ul>\n</ol>\n<p><span style="color: #000000;"><span style="font-family: Calibri, serif;">The Data Controller and the Data Protection Officer is the Clinic Manager, Dr. <NAME></span></span></p>', NULL, NULL, NULL, NULL, 1, 1, NULL, '2018-12-14 03:16:35', '2018-12-14 03:16:35', NULL), (6, 'Privacy Policy', 'privacy-policy', '<h1><strong>Privacy Policy</strong></h1>\r\n<p>Your use and access of this Website indicates you understand and accept these Terms and Conditions. If you are unsure about the meaning and/or effects of any clause containted in these Terms and Conditions,&nbsp;</p>\r\n<h4>1. Ownership and Property Rights</h4>\r\n<p>Using this Website does not grant you any ownership or interest in any content, visual interfaces, graphics, design, compilation, information, computer code, products, software, services and all other elements you may access from the Website.</p>\r\n<p>You are authorized to download a single copy of purchased content contained on the website for your personal, non-commercial uses, provided that you maintain the copyright and other notices contained in that content. This excludes products available with premium licenses. Please consult our&nbsp;<br />licenses&nbsp;<br />page for more information.</p>\r\n<h4>2. Personal data about you</h4>\r\n<p>In the course of your use of the Website, you may be asked for personally identifiable information (&ldquo;Personal Data&rdquo;) or such data may be collected from you indirectly, while you are using the Website. provides the type of data we collect and process, for what purpose and for how long, as well as who can access such data (including third-parties) and how you can exercise your rights, according to provisions of European personal data laws in force. You are solely responsible for the accuracy and content of this user information. There are different types of personal data that is collected about you, based on your use of the Website as a visitor or a registered user.</p>\r\n<h4>3. Third Party websites</h4>\r\n<p>&nbsp;</p>\r\n<p>In the course of your use of the Website, you may be re-directed to third party websites. We have no responsibility for the content or information provided by or through third party websites even if they are affiliates of ours.</p>\r\n<p>Linking to third party websites does not imply our endorsement of that web website. We disclaim any liability for links to another website.</p>\r\n<h4>4. Creators&rsquo; liability</h4>\r\n<p>The Website may contain content created by third-party designers, contracted by Bootstrapbay for this purpose. If you are such a third-party designer, you are liable to abide by, apart from these Terms and Conditions, the Data Processing Addendum made available by Bootstrapbay to you whenever you have signed an agreement for design creation with Bootstrapbay.</p>\r\n<h4>5. Limitation of Liability</h4>\r\n<p><br />You agree to indemnify and hold harmless BootstrapBay and its parent, subsidiaries, affiliates or any related companies, licensors and suppliers, and their respective directors, officers, employees, agents, representatives, and contractors, from all damages, injuries, liabilities, costs, fees and expenses (including, but not limited to, legal and accounting fees) arising from or in any way related to:</p>\r\n<p>&nbsp;</p>\r\n<ul class="list-unstyled">\r\n<ul class="list-unstyled">\r\n<li>(i) your use or misuse of the website (including your use or misuse of Third Party Content);</li>\r\n</ul>\r\n</ul>\r\n<p>&nbsp;</p>\r\n<ul class="list-unstyled">\r\n<ul class="list-unstyled">\r\n<li>(ii) your breach or other violation of these Terms including any representations, warranties and covenants herein;</li>\r\n</ul>\r\n</ul>\r\n<p>&nbsp;</p>\r\n<ul class="list-unstyled">\r\n<ul class="list-unstyled">\r\n<li>(iii) your violation of the rights of any other person or entity, including, but not limited to claims that any User Content infringes or violates any third party intellectual property rights.</li>\r\n</ul>\r\n</ul>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<h4>6. Exclusion of Warranties</h4>\r\n<p>The BootstrapBay content, or any other product, service or information provided by BootstrapBay, user content, third-party content, and any other software, services or applications made available in conjunction with or through the website, are provided on an "as is", "as available", "with all faults" basis without representations or warranties of any kind, either express, implied, or statutory, including, but not limited to, in terms of correctness, accuracy, reliability, or otherwise.</p>\r\n<p>To the fullest extent permissible by applicable law, BootstrapBay hereby disclaims all warranties of any kind, either express or implied, including, any warranty of merchantability, fitness for a particular purpose, non-infringement, or arising from a course of dealing, with respect to the products or services provided by BootstrapBay.</p>\r\n<h4>7. Notices</h4>\r\n<p>BootstrapBay may provide you with notices by e-mail related to your activity and/or your account. Additionally, you may opt-in to receive a newsletter with updates about new products available in the Website. You can opt-out of our newsletter at any time, by following the steps described in the footer of any e-mail you receive from us as a result of you subscribing to the newsletter.</p>\r\n<h4>8. Refunds</h4>\r\n<p>Refunds will only be administered if products are deemed to be faulty or not as described on the product page. To request a refund, please&nbsp;<br />contact support&nbsp;<br />and specify exactly what the issue is with the product. The support team will then investigate to determine whether or not the product was faulty and not as described.</p>\r\n<p>Unfortunately, due to the nature of digital goods, refunds cannot be processed until it has been determined that the product is faulty.</p>\r\n<h4>9. Governing Law</h4>\r\n<p>This agreement, and any dispute, controversy, proceedings or claim of whatever nature arising out of or in any way relating to these Terms &amp; Conditions or its formation shall be governed by and construed in accordance with Romanian law.</p>\r\n<h4>10. Modification of the Terms</h4>\r\n<p>BootstrapBay reserves the right to update or modify the Terms &amp; Conditions at any time without prior notice, and such changes will be effective immediately upon being posted on the website. These Terms will identify the date of the last update. In the case of material changes to the Terms, BootstrapBay will make reasonable efforts to notify you of the change, such as through sending an email to any address you may have used to register for an account, through a pop-up window on the website, or other similar mechanism.</p>\r\n<p>These terms were last updated on July 30, 2018.</p>\r\n<p>&nbsp;</p>', NULL, NULL, NULL, NULL, 1, 1, 1, '2019-04-08 02:49:09', '2019-04-08 04:25:16', NULL); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `permissions` -- CREATE TABLE `permissions` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `display_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `sort` smallint(5) UNSIGNED NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '1', `created_by` int(11) DEFAULT NULL, `updated_by` int(10) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `permissions` -- INSERT INTO `permissions` (`id`, `name`, `display_name`, `sort`, `status`, `created_by`, `updated_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'view-backend', 'View Backend', 1, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', NULL), (2, 'view-frontend', 'View Frontend', 2, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', '2018-10-25 01:30:40'), (3, 'view-access-management', 'View Access Management', 3, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', NULL), (4, 'view-user-management', 'View User Management', 4, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', NULL), (5, 'view-active-user', 'View Active User', 5, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', NULL), (6, 'view-deactive-user', 'View Deactive User', 6, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', NULL), (7, 'view-deleted-user', 'View Deleted User', 7, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', NULL), (8, 'show-user', 'Show User Details', 8, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', NULL), (9, 'create-user', 'Create User', 9, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', NULL), (10, 'edit-user', 'Edit User', 9, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', NULL), (11, 'delete-user', 'Delete User', 10, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', NULL), (12, 'activate-user', 'Activate User', 11, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', NULL), (13, 'deactivate-user', 'Deactivate User', 12, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', NULL), (14, 'login-as-user', 'Login As User', 13, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', '2018-10-25 01:30:40'), (15, 'clear-user-session', 'Clear User Session', 14, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', '2018-10-25 01:30:40'), (16, 'view-role-management', 'View Role Management', 15, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', '2018-10-25 01:30:40'), (17, 'create-role', 'Create Role', 16, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (18, 'edit-role', 'Edit Role', 17, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (19, 'delete-role', 'Delete Role', 18, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (20, 'view-permission-management', 'View Permission Management', 19, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (21, 'create-permission', 'Create Permission', 20, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (22, 'edit-permission', 'Edit Permission', 21, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (23, 'delete-permission', 'Delete Permission', 22, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (24, 'view-page', 'View Page', 23, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (25, 'create-page', 'Create Page', 24, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (26, 'edit-page', 'Edit Page', 25, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (27, 'delete-page', 'Delete Page', 26, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (28, 'view-email-template', 'View Email Templates', 27, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (29, 'create-email-template', 'Create Email Templates', 28, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (30, 'edit-email-template', 'Edit Email Templates', 29, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (31, 'delete-email-template', 'Delete Email Templates', 30, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (32, 'edit-settings', 'Edit Settings', 31, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (33, 'view-blog-category', 'View Blog Categories Management', 32, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (34, 'create-blog-category', 'Create Blog Category', 33, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (35, 'edit-blog-category', 'Edit Blog Category', 34, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (36, 'delete-blog-category', 'Delete Blog Category', 35, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (37, 'view-blog-tag', 'View Blog Tags Management', 36, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (38, 'create-blog-tag', 'Create Blog Tag', 37, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (39, 'edit-blog-tag', 'Edit Blog Tag', 38, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (40, 'delete-blog-tag', 'Delete Blog Tag', 39, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (41, 'view-blog', 'View Blogs Management', 40, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (42, 'create-blog', 'Create Blog', 41, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (43, 'edit-blog', 'Edit Blog', 42, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (44, 'delete-blog', 'Delete Blog', 43, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (45, 'view-faq', 'View FAQ Management', 44, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (46, 'create-faq', 'Create FAQ', 45, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (47, 'edit-faq', 'Edit FAQ', 46, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (48, 'delete-faq', 'Delete FAQ', 47, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', '2018-10-25 01:30:41'), (49, 'manage-client', 'Clients', 48, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (50, 'create-client', 'Create Client', 49, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (51, 'edit-client', 'Edit Client', 50, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (52, 'delete-client', 'Delete Client', 53, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (53, 'manage-managesession', 'Sessions', 54, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (54, 'create-managesession', 'Create Session', 55, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (55, 'edit-managesession', 'Edit Session', 57, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (56, 'delete-managesession', 'Delete Session', 59, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (57, 'manage-clinicalservice', 'Clinic Services', 60, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (58, 'create-clinicalservice', 'Create Clinic Service', 61, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (59, 'edit-clinicalservice', 'Edit Clinic Service', 62, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (60, 'manage-psycologicalconditiontype', 'Psychological Conditions', 63, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (61, 'create-psycologicalconditiontype', 'Create Psychological Condition', 64, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (62, 'edit-psycologicalconditiontype', 'Edit Psychological Condition', 65, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (63, 'create-knowledgebase', 'Create Knowledge Base', 66, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (64, 'edit-knowledgebase', 'Edit Knowledge Base', 68, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (65, 'delete-knowledgebase', 'Delete Knowledge Base', 70, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (66, 'manage-knowledgebase', 'Knowledge Bases', 71, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (67, 'change-password', 'Change Password', 72, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (68, 'manage-feedback', 'Feedbacks', 73, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (69, 'manage-questionbank', 'Question Bank', 60, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (70, 'create-questionbank', 'Create Question', 61, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (71, 'edit-questionbank', 'Edit Question', 62, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (72, 'delete-questionbank', 'Delete Question', 63, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (73, 'manage-testimonial', 'Testimonials', 75, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (74, 'view-report-permission', 'Reports', 76, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (75, 'intervention-report', 'Intervention', 77, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (76, 'progress-report', 'Goal Progress', 78, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (77, 'threshold-report', 'Threshold Progress', 78, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (78, 'sdq-report', 'SDQ Status', 78, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (79, 'scared-report', 'SCARED Status', 78, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (80, 'core-report', 'CORE Status', 78, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (81, 'view-masters', 'Master Management', 4, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (82, 'manage-questiontype', 'Manage Question Type', 79, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (83, 'create-questiontype', 'Create Question Type', 80, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL), (84, 'edit-questiontype', 'Edit Question Type', 81, 1, 1, NULL, '2018-10-25 01:30:41', '2018-10-25 01:30:41', NULL); -- -------------------------------------------------------- -- -- Table structure for table `permission_role` -- CREATE TABLE `permission_role` ( `id` int(10) UNSIGNED NOT NULL, `permission_id` int(10) UNSIGNED NOT NULL, `role_id` int(10) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `permission_role` -- INSERT INTO `permission_role` (`id`, `permission_id`, `role_id`) VALUES (1, 1, 2), (2, 3, 2), (3, 4, 2), (4, 5, 2), (5, 6, 2), (6, 7, 2), (7, 8, 2), (8, 9, 2), (9, 10, 2), (10, 11, 2), (11, 12, 2), (12, 13, 2), (13, 14, 2), (14, 67, 2), (15, 49, 2), (16, 50, 2), (17, 51, 2), (18, 52, 2), (19, 53, 2), (20, 54, 2), (21, 55, 2), (22, 56, 2), (23, 57, 2), (24, 58, 2), (25, 59, 2), (26, 60, 2), (27, 61, 2), (28, 62, 2), (29, 63, 2), (30, 64, 2), (31, 65, 2), (32, 66, 2), (33, 68, 2), (34, 69, 2), (35, 70, 2), (36, 71, 2), (37, 72, 2), (38, 73, 2), (39, 74, 2), (40, 75, 2), (41, 76, 2), (42, 77, 2), (43, 78, 2), (44, 79, 2), (45, 80, 2), (46, 81, 2), (47, 82, 2), (48, 83, 2), (49, 84, 2), (50, 2, 3), (51, 70, 3), (52, 1, 4), (53, 67, 4), (54, 53, 4), (55, 66, 4), (56, 68, 4), (57, 73, 4); -- -------------------------------------------------------- -- -- Table structure for table `permission_user` -- CREATE TABLE `permission_user` ( `id` int(10) UNSIGNED NOT NULL, `permission_id` int(10) UNSIGNED NOT NULL, `user_id` int(10) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `permission_user` -- INSERT INTO `permission_user` (`id`, `permission_id`, `user_id`) VALUES (46, 2, 3), (47, 70, 3), (48, 1, 4), (49, 67, 4), (50, 53, 4), (51, 66, 4), (52, 68, 4), (53, 73, 4), (54, 1, 7), (55, 67, 7), (56, 53, 7), (57, 66, 7), (58, 68, 7), (59, 73, 7), (60, 1, 8), (61, 67, 8), (62, 53, 8), (63, 66, 8), (64, 68, 8), (65, 73, 8), (78, 14, 2), (115, 1, 9), (116, 3, 9), (117, 4, 9), (118, 5, 9), (119, 6, 9), (120, 7, 9), (121, 8, 9), (122, 9, 9), (123, 10, 9), (124, 11, 9), (125, 12, 9), (126, 13, 9), (127, 14, 9), (128, 15, 9), (129, 16, 9), (130, 17, 9), (131, 18, 9), (132, 19, 9), (133, 20, 9), (134, 21, 9), (135, 22, 9), (136, 23, 9), (137, 24, 9), (138, 25, 9), (139, 26, 9), (140, 27, 9), (141, 28, 9), (142, 29, 9), (143, 30, 9), (144, 31, 9), (145, 32, 9), (146, 33, 9), (147, 34, 9), (148, 35, 9), (149, 36, 9), (150, 37, 9), (151, 38, 9), (152, 39, 9), (153, 40, 9), (154, 41, 9), (155, 42, 9), (156, 43, 9), (157, 44, 9), (158, 45, 9), (159, 46, 9), (160, 47, 9), (161, 48, 9), (162, 49, 9), (163, 50, 9), (164, 51, 9), (165, 52, 9), (166, 53, 9), (167, 54, 9), (168, 55, 9), (169, 56, 9), (170, 57, 9), (171, 58, 9), (172, 59, 9), (173, 60, 9), (174, 61, 9), (175, 62, 9), (176, 63, 9), (177, 64, 9), (178, 65, 9), (179, 66, 9), (180, 67, 9), (181, 68, 9), (182, 69, 9), (183, 70, 9), (184, 71, 9), (185, 72, 9), (186, 73, 9), (187, 74, 9), (188, 75, 9), (189, 76, 9), (190, 77, 9), (191, 78, 9), (192, 79, 9), (193, 80, 9), (194, 81, 9), (195, 82, 9), (196, 83, 9), (197, 84, 9), (198, 1, 10), (199, 67, 10), (200, 53, 10), (201, 66, 10), (202, 68, 10), (203, 73, 10), (204, 1, 2), (205, 3, 2), (206, 4, 2), (207, 5, 2), (208, 6, 2), (209, 7, 2), (210, 8, 2), (211, 9, 2), (212, 10, 2), (213, 11, 2), (214, 12, 2), (215, 13, 2), (216, 49, 2), (217, 50, 2), (218, 51, 2), (219, 52, 2), (220, 53, 2), (221, 54, 2), (222, 55, 2), (223, 56, 2), (224, 57, 2), (225, 58, 2), (226, 59, 2), (227, 60, 2), (228, 61, 2), (229, 62, 2), (230, 63, 2), (231, 64, 2), (232, 65, 2), (233, 66, 2), (234, 67, 2), (235, 68, 2), (236, 69, 2), (237, 70, 2), (238, 71, 2), (239, 72, 2), (240, 73, 2), (241, 74, 2), (242, 75, 2), (243, 76, 2), (244, 77, 2), (245, 78, 2), (246, 79, 2), (247, 80, 2), (248, 81, 2), (249, 82, 2), (250, 83, 2), (251, 84, 2), (252, 1, 13), (253, 67, 13), (254, 53, 13), (255, 66, 13), (256, 68, 13), (257, 73, 13), (258, 1, 16), (259, 67, 16), (260, 53, 16), (261, 66, 16), (262, 68, 16), (263, 73, 16), (264, 1, 17), (265, 67, 17), (266, 53, 17), (267, 66, 17), (268, 68, 17), (269, 73, 17), (270, 1, 18), (271, 67, 18), (272, 53, 18), (273, 66, 18), (274, 68, 18), (275, 73, 18), (276, 1, 19), (277, 67, 19), (278, 53, 19), (279, 66, 19), (280, 68, 19), (281, 73, 19), (282, 1, 20), (283, 67, 20), (284, 53, 20), (285, 66, 20), (286, 68, 20), (287, 73, 20), (288, 1, 22), (289, 67, 22), (290, 53, 22), (291, 66, 22), (292, 68, 22), (293, 73, 22); -- -------------------------------------------------------- -- -- Table structure for table `psycological_types` -- CREATE TABLE `psycological_types` ( `id` smallint(5) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '1', `created_by` int(10) UNSIGNED NOT NULL, `updated_by` int(10) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `psycological_types` -- INSERT INTO `psycological_types` (`id`, `name`, `status`, `created_by`, `updated_by`, `created_at`, `updated_at`) VALUES (1, 'Anxiety', 1, 0, NULL, NULL, NULL), (2, 'Panic Disorder', 1, 0, NULL, NULL, NULL), (3, 'Depression', 1, 0, NULL, NULL, NULL), (4, 'Learning Issues', 1, 0, NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `questions` -- CREATE TABLE `questions` ( `id` int(10) UNSIGNED NOT NULL, `type_id` tinyint(4) NOT NULL, `behaviour_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'Foreign Key of Behaviour table', `question` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '1', `created_by` int(10) UNSIGNED NOT NULL, `updated_by` int(10) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `questions` -- INSERT INTO `questions` (`id`, `type_id`, `behaviour_id`, `question`, `status`, `created_by`, `updated_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 1, 0, 'Sadness', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (2, 1, 0, 'Pessimism', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (3, 1, 0, 'Past Failure', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (4, 1, 0, 'Loss of Pleasure', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (5, 1, 0, 'Guilty Feelings', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (6, 1, 0, 'Punishmnet Feelings', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (7, 1, 0, 'Self-Dislike', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (8, 1, 0, 'Self-Criticalness', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (9, 1, 0, 'Suicidal Thoughts or Wishes', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (10, 1, 0, 'Crying', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (11, 1, 0, 'Agitation', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (12, 1, 0, 'Loss of Intrest', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (13, 1, 0, 'Indecisiveness', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (14, 1, 0, 'Worthlessness', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (15, 1, 0, 'Loss of Energy', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (16, 1, 0, 'Change in Sleeping Pattern', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (17, 1, 0, 'Irritability', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (18, 1, 0, 'Change in Appetite', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (19, 1, 0, 'Concentartion Difficulty', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (20, 1, 0, 'Tiredness of Fatigue', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (21, 1, 0, 'Loss of Intrest in Sex', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (22, 2, 15, 'I have felt terribly alone and isolated', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (23, 2, 14, 'I have felt tense, anxious or nervous', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (24, 2, 15, 'I have felt I have someone to turn to for support when needed', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (25, 2, 13, 'I have felt OK about myself', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (26, 2, 14, 'I have felt totally lacking in energy and enthusiasm', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (27, 2, 16, 'I have been physically violent to others', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (28, 2, 15, 'I have felt able to cope when things go wrong', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (29, 2, 14, 'I have been troubled by aches, pains or other physical problems', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (30, 2, 16, 'I have thought of hurting myself', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (31, 2, 15, 'Talking to people has felt too much for me', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (32, 2, 14, 'Tension and anxiety have prevented me doing important things', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (33, 2, 15, 'I have been happy with the things I have done', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (34, 2, 14, 'I have been disturbed by unwanted thoughts and feelings', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (35, 2, 13, 'I have felt like crying', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (36, 2, 14, 'I have felt panic or terror', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (37, 2, 16, 'I made plans to end my life', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (38, 2, 13, 'I have felt overwhelmed by my problems', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (39, 2, 14, 'I have had difficulty getting to sleep or staying asleep', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (40, 2, 15, 'I have felt warmth or affection for someone', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (41, 2, 14, 'My problems have been impossible to put to one side', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (42, 2, 15, 'I have been able to do most things I needed to', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (43, 2, 16, 'I have threatened or intimidated another person', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (44, 2, 14, 'I have felt despairing or hopeless', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (45, 2, 16, 'I have thought it would be better if I were dead', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (46, 2, 15, 'I have felt criticised by other people', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (47, 2, 15, 'I have thought I have no friends', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (48, 2, 14, 'I have felt unhappy', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (49, 2, 14, 'Unwanted images or memories have been distressing me', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (50, 2, 15, 'I have been irritable when with other people', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (51, 2, 14, 'I have thought I am to blame for my problems and difficulties', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (52, 2, 13, 'I have felt optimistic about my future', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (53, 2, 15, 'I have achieved the things I wanted to', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (54, 2, 15, 'I have felt humiliated or shamed by other people', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (55, 2, 16, 'I have hurt myself physically or taken dangerous risks with my health', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (56, 3, 5, 'I try to be nice to other people, I care about their feelings', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (57, 3, 3, 'I am restless, I cannot stay still for long', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (58, 3, 1, 'I ususally do as I am told', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (59, 3, 5, 'I get lot of headaches,stomach-aches,or sickness', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (60, 3, 2, 'I ususally share with others,for example CDs,games,food', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (61, 3, 4, 'I get very angry and often lose my temper', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (62, 3, 4, 'I would rather be alone than with people of my age', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (63, 3, 2, 'I ususally do as i am told', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (64, 3, 1, 'I worry a lot', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (65, 3, 5, 'I am helpful if someone is hurt, apset or feeling ill', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (66, 3, 3, 'I am constantly fidgeting or squirming', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (67, 3, 4, 'I have one good friend or more', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (68, 3, 2, 'I fight a lot. I can make other people do what I want', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (69, 3, 1, 'I am often unhappy,depressed or tearful', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (70, 3, 4, 'Other people my age generally like me ', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (71, 3, 3, 'I am esaily distracted, I find difficult to concentrate ', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (72, 3, 1, 'I am nervous in new situations. I easily lose confidence ', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (73, 3, 5, 'I am kind to younger children ', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (74, 3, 2, 'I am often accused of lying and cheating ', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (75, 3, 4, 'Other children or younger people pick on me or bully me ', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (76, 3, 5, 'I often volunteer to help othera (parents,teachers,children) ', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (77, 3, 3, 'I think before I do things ', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (78, 3, 2, 'I take things that are not mine frome home, school or elsewhere ', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (79, 3, 4, 'I get along better with adults than with people of my own age ', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (80, 3, 1, 'I have many fears , I am easily scared ', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (81, 3, 3, 'I finish the work I\'m doing. My attension is good', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (82, 4, 7, 'When I feel frightened, it is hard to breathe', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (83, 4, 11, 'I get headaches when I am at school', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (84, 4, 10, 'I don’t like to be with people I don’t know well', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (85, 4, 9, 'I get scared if I sleep away from home', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (86, 4, 8, 'I worry about other people liking me', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (87, 4, 7, 'When I get frightened, I feel like passing out', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (88, 4, 8, 'I am nervous', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (89, 4, 9, 'I follow my mother or father wherever they go', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (90, 4, 7, 'People tell me that I look nervous', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (91, 4, 10, 'I feel nervous with people I don’t know well', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (92, 4, 11, 'I get stomachaches at school', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (93, 4, 7, 'When I get frightened, I feel like I am going crazy', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (94, 4, 9, 'I worry about sleeping alone', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (95, 4, 8, 'I worry about being as good as other kids', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (96, 4, 7, 'When I get frightened, I feel like things are not real', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (97, 4, 9, 'I have nightmares about something bad happening to my parents', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (98, 4, 11, 'I worry about going to school', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (99, 4, 7, 'When I get frightened, my heart beats fast', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (100, 4, 7, 'I get shaky', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (101, 4, 9, 'I have nightmares about something bad happening to me', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (102, 4, 8, 'I worry about things working out for me', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (103, 4, 7, 'When I get frightened, I sweat a lot', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (104, 4, 8, 'I am a worrier', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (105, 4, 7, 'I get really frightened for no reason at all', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (106, 4, 9, 'I am afraid to be alone in the house', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (107, 4, 10, 'It is hard for me to talk with people I don’t know well', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (108, 4, 7, 'When I get frightened, I feel like I am choking', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (109, 4, 8, 'People tell me that I worry too much', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (110, 4, 9, 'I don’t like to be away from my family', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (111, 4, 7, 'I am afraid of having anxiety (or panic) attacks', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (112, 4, 9, 'I worry that something bad might happen to my parents', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (113, 4, 10, 'I feel shy with people I don’t know well', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (114, 4, 8, 'I worry about what is going to happen in the future', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (115, 4, 7, 'When I get frightened, I feel like throwing up', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (116, 4, 8, 'I worry about how well I do things', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (117, 4, 11, 'I am scared to go to school', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (118, 4, 8, 'I worry about things that have already happened', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (119, 4, 7, 'When I get frightened, I feel dizzy', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (120, 4, 10, 'I feel nervous when I am with other children or adults and I have to do\n something while they watch me (for example: read aloud, speak, play a\n game, play a sport)', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (121, 4, 10, 'I feel nervous when I am going to parties, dances, or any place where there\n will be people that I don’t know well', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (122, 4, 10, 'I am shy', 1, 0, NULL, '2018-10-25 01:30:42', '2018-10-25 01:30:42', NULL), (123, 5, NULL, 'Questions 1', 1, 0, NULL, '2018-11-14 12:08:09', '2018-11-14 12:08:09', NULL), (124, 5, NULL, 'Question 2', 1, 0, NULL, '2018-11-14 12:08:33', '2018-11-14 12:08:33', NULL), (125, 2, 15, 'this is q', 1, 0, NULL, '2019-01-18 05:00:24', '2019-01-18 05:00:24', NULL); -- -------------------------------------------------------- -- -- Table structure for table `questiontypes` -- CREATE TABLE `questiontypes` ( `id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `question_option` -- CREATE TABLE `question_option` ( `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary key of table', `question_id` int(10) UNSIGNED NOT NULL COMMENT 'Foreign key of Question Table', `option` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Question Option', `marks` tinyint(4) DEFAULT NULL COMMENT 'Question Marks', `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `question_option` -- INSERT INTO `question_option` (`id`, `question_id`, `option`, `marks`, `deleted_at`, `created_at`, `updated_at`) VALUES (1, 1, 'I do not feel sad.', 0, NULL, NULL, NULL), (2, 1, 'I feel sad much of the time.', 1, NULL, NULL, NULL), (3, 1, 'I am sad all the time.', 2, NULL, NULL, NULL), (4, 1, 'I am so sad or unhappy that i can\'t stand it.', 3, NULL, NULL, NULL), (5, 2, 'I am not discouraged about my future.', 0, NULL, NULL, NULL), (6, 2, 'I feel more discouraged about my future that I used to be.', 1, NULL, NULL, NULL), (7, 2, 'I do not expect things to work out for me.', 2, NULL, NULL, NULL), (8, 2, 'I feel my future is hopeless and will only get worse.', 3, NULL, NULL, NULL), (9, 3, 'I do not feel like a failure', 0, NULL, NULL, NULL), (10, 3, 'I have failed more than I should have', 1, NULL, NULL, NULL), (11, 3, 'As I look back, I see a lot of failures', 2, NULL, NULL, NULL), (12, 3, 'I feel I am a total failure as a person', 3, NULL, NULL, NULL), (13, 4, 'I get as much Pleasure as I ever did from the things I enjoy', 0, NULL, NULL, NULL), (14, 4, 'I don’t enjoy things as much as I used to', 1, NULL, NULL, NULL), (15, 4, 'I get very little pleasure from the things I used to enjoy', 2, NULL, NULL, NULL), (16, 4, 'I can\'t get any pleasure from the things I used to enjoy', 3, NULL, NULL, NULL), (17, 5, 'Not at all', 0, NULL, NULL, NULL), (18, 5, 'Only Occasionally', 1, NULL, NULL, NULL), (19, 5, 'Sometimes', 2, NULL, NULL, NULL), (20, 5, 'Often', 3, NULL, NULL, NULL), (21, 6, 'I don’t feel I am being punished', 0, NULL, NULL, NULL), (22, 6, 'I feel I may be punished', 1, NULL, NULL, NULL), (23, 6, 'I expect to be punished', 2, NULL, NULL, NULL), (24, 6, 'I feel I am being punished', 3, NULL, NULL, NULL), (25, 7, 'I feel the same about myself as ever', 0, NULL, NULL, NULL), (26, 7, 'I have lost confidence in myself', 1, NULL, NULL, NULL), (27, 7, 'I am disappointed in myself', 2, NULL, NULL, NULL), (28, 7, 'I dislike myself', 3, NULL, NULL, NULL), (29, 8, 'I don’t criticize or blame myself more than usual', 0, NULL, NULL, NULL), (30, 8, 'I am more critical of myself than I used to be', 1, NULL, NULL, NULL), (31, 8, 'I criticize myself for all my faults', 2, NULL, NULL, NULL), (32, 8, 'I blame myself for everything bad that happens', 3, NULL, NULL, NULL), (33, 9, 'I don’t have any thoughts of killing myself', 0, NULL, NULL, NULL), (34, 9, 'I have thoughts of killing myself, but I would not carry them out', 1, NULL, NULL, NULL), (35, 9, 'I would like to kill myself', 2, NULL, NULL, NULL), (36, 9, 'I would kill myself if I had the chance', 3, NULL, NULL, NULL), (37, 10, 'I don’t cry anymore than I used to', 0, NULL, NULL, NULL), (38, 10, 'I cry more than I used to', 1, NULL, NULL, NULL), (39, 10, 'I cry over very little things', 2, NULL, NULL, NULL), (40, 10, 'I feel like crying,but i can\'t', 3, NULL, NULL, NULL), (41, 11, 'I am no more restless or wound up than usual', 0, NULL, NULL, NULL), (42, 11, 'I am so restless or aginated that it\'s hard to stay still ', 1, NULL, NULL, NULL), (43, 11, 'I am so restless or aginated that I have to keep moving or doing something', 2, NULL, NULL, NULL), (44, 12, 'I have not lost interest in other people or activities', 0, NULL, NULL, NULL), (45, 12, 'I am less interested in other people or things than before', 1, NULL, NULL, NULL), (46, 12, 'I have lost most of my interest in other people or things', 2, NULL, NULL, NULL), (47, 12, 'It\'s hard to get interested in anything.', 3, NULL, NULL, NULL), (48, 13, 'I make decisions about as well as ever', 0, NULL, NULL, NULL), (49, 13, 'I fint it more difficult to make decision than usual', 1, NULL, NULL, NULL), (50, 13, 'I have much grater difficulty in making decisions than I used to', 2, NULL, NULL, NULL), (51, 13, 'I have trouble making any decisions', 3, NULL, NULL, NULL), (52, 14, 'I do not feel I am worthless', 0, NULL, NULL, NULL), (53, 14, 'I don\'t consider myself as worthwhile ans useful as I used to', 1, NULL, NULL, NULL), (54, 14, 'I feel more worthless as comapred to other people', 2, NULL, NULL, NULL), (55, 14, 'I feel utterly worthless', 3, NULL, NULL, NULL), (56, 15, 'I have as much enery as ever', 0, NULL, NULL, NULL), (57, 15, 'I have less enery than I used to have', 1, NULL, NULL, NULL), (58, 15, 'I don\'t have enough enery to do very much ', 2, NULL, NULL, NULL), (59, 15, 'I don\'t have enough eneryto do anything', 3, NULL, NULL, NULL), (60, 16, 'I have not experienced anu change in my sleeping pattern', 0, NULL, NULL, NULL), (61, 16, 'I sleep somwhat more than usual ', 1, NULL, NULL, NULL), (62, 16, 'I sleep somwhat less than usual ', 1, NULL, NULL, NULL), (63, 16, 'I sleep a lot more than usual ', 2, NULL, NULL, NULL), (64, 16, 'I sleep a lot less than usual ', 2, NULL, NULL, NULL), (65, 16, 'I sleep most of the day ', 3, NULL, NULL, NULL), (66, 16, 'I wake up 1-2 hours early and can\'t get back to sleep ', 1, NULL, NULL, NULL), (67, 17, 'I am no more irritable than usual ', 0, NULL, NULL, NULL), (68, 17, 'I am more irritable than usual', 1, NULL, NULL, NULL), (69, 17, 'I am much more irritable than usual ', 2, NULL, NULL, NULL), (70, 17, 'I am irritable all the time', 3, NULL, NULL, NULL), (71, 18, 'I have not experienced anu change in my appetite', 0, NULL, NULL, NULL), (72, 18, 'My appetite is somwhat less than usual ', 1, NULL, NULL, NULL), (73, 18, 'My appetite is somwhat grater than usual ', 1, NULL, NULL, NULL), (74, 18, 'My appetite is much less than before ', 2, NULL, NULL, NULL), (75, 18, 'My appetite is much grater than usual ', 2, NULL, NULL, NULL), (76, 18, 'I have no appetite at all ', 3, NULL, NULL, NULL), (77, 18, 'I crave food all the time ', 1, NULL, NULL, NULL), (78, 19, 'I can concentrate as well as ever ', 0, NULL, NULL, NULL), (79, 19, 'I can\'t concentrate as well as usual ', 1, NULL, NULL, NULL), (80, 19, 'It\'s hard to keep my ming on anything for very long ', 2, NULL, NULL, NULL), (81, 19, 'I find i can\'t concentrate on anything', 3, NULL, NULL, NULL), (82, 20, 'I am no more tired or fatigued than usual ', 0, NULL, NULL, NULL), (83, 20, 'I get more tired or fatigued more easily than usual ', 1, NULL, NULL, NULL), (84, 20, 'I am too tired or fatigued to do a lot of things I used to do', 2, NULL, NULL, NULL), (85, 20, 'I am too tired or fatigued to do most of the things I used to do', 3, NULL, NULL, NULL), (86, 21, 'I have not noticed ay recent changes in my interest in sex ', 0, NULL, NULL, NULL), (87, 21, 'I am less interest in sex than I used to be', 1, NULL, NULL, NULL), (88, 21, 'I am much less interest in sex now', 2, NULL, NULL, NULL), (89, 21, 'I have lost interest in sex completely', 3, NULL, NULL, NULL), (90, 22, 'Not at all', 0, NULL, NULL, NULL), (91, 22, 'Only Occasionally', 1, NULL, NULL, NULL), (92, 22, 'Sometimes', 2, NULL, NULL, NULL), (93, 22, 'Often', 3, NULL, NULL, NULL), (94, 22, 'Most or all the time', 4, NULL, NULL, NULL), (95, 23, 'Not at all', 0, NULL, NULL, NULL), (96, 23, 'Only Occasionally', 1, NULL, NULL, NULL), (97, 23, 'Sometimes', 2, NULL, NULL, NULL), (98, 23, 'Often', 3, NULL, NULL, NULL), (99, 23, 'Most or all the time', 4, NULL, NULL, NULL), (100, 24, 'Not at all', 4, NULL, NULL, NULL), (101, 24, 'Only Occasionally', 3, NULL, NULL, NULL), (102, 24, 'Sometimes', 2, NULL, NULL, NULL), (103, 24, 'Often', 1, NULL, NULL, NULL), (104, 24, 'Most or all the time', 0, NULL, NULL, NULL), (105, 25, 'Not at all', 4, NULL, NULL, NULL), (106, 25, 'Only Occasionally', 3, NULL, NULL, NULL), (107, 25, 'Sometimes', 2, NULL, NULL, NULL), (108, 25, 'Often', 1, NULL, NULL, NULL), (109, 25, 'Most or all the time', 0, NULL, NULL, NULL), (110, 26, 'Not at all', 0, NULL, NULL, NULL), (111, 26, 'Only Occasionally', 1, NULL, NULL, NULL), (112, 26, 'Sometimes', 2, NULL, NULL, NULL), (113, 26, 'Often', 3, NULL, NULL, NULL), (114, 26, 'Most or all the time', 4, NULL, NULL, NULL), (115, 26, 'Not at all', 0, NULL, NULL, NULL), (116, 27, 'Only Occasionally', 1, NULL, NULL, NULL), (117, 27, 'Sometimes', 2, NULL, NULL, NULL), (118, 27, 'Often', 3, NULL, NULL, NULL), (119, 27, 'Most or all the time', 4, NULL, NULL, NULL), (120, 28, 'Not at all', 4, NULL, NULL, NULL), (121, 28, 'Only Occasionally', 3, NULL, NULL, NULL), (122, 28, 'Sometimes', 2, NULL, NULL, NULL), (123, 28, 'Often', 1, NULL, NULL, NULL), (124, 28, 'Most or all the time', 0, NULL, NULL, NULL), (125, 29, 'Not at all', 0, NULL, NULL, NULL), (126, 29, 'Only Occasionally', 1, NULL, NULL, NULL), (127, 29, 'Sometimes', 2, NULL, NULL, NULL), (128, 29, 'Often', 3, NULL, NULL, NULL), (129, 29, 'Most or all the time', 4, NULL, NULL, NULL), (130, 30, 'Not at all', 0, NULL, NULL, NULL), (131, 30, 'Only Occasionally', 1, NULL, NULL, NULL), (132, 30, 'Sometimes', 2, NULL, NULL, NULL), (133, 30, 'Often', 3, NULL, NULL, NULL), (134, 30, 'Most or all the time', 4, NULL, NULL, NULL), (135, 31, 'Not at all', 0, NULL, NULL, NULL), (136, 31, 'Only Occasionally', 1, NULL, NULL, NULL), (137, 31, 'Sometimes', 2, NULL, NULL, NULL), (138, 31, 'Often', 3, NULL, NULL, NULL), (139, 31, 'Most or all the time', 4, NULL, NULL, NULL), (140, 32, 'Not at all', 0, NULL, NULL, NULL), (141, 32, 'Only Occasionally', 1, NULL, NULL, NULL), (142, 32, 'Sometimes', 2, NULL, NULL, NULL), (143, 32, 'Often', 3, NULL, NULL, NULL), (144, 32, 'Most or all the time', 4, NULL, NULL, NULL), (145, 33, 'Not at all', 4, NULL, NULL, NULL), (146, 33, 'Only Occasionally', 3, NULL, NULL, NULL), (147, 33, 'Sometimes', 2, NULL, NULL, NULL), (148, 33, 'Often', 1, NULL, NULL, NULL), (149, 33, 'Most or all the time', 0, NULL, NULL, NULL), (150, 34, 'Not at all', 0, NULL, NULL, NULL), (151, 34, 'Only Occasionally', 1, NULL, NULL, NULL), (152, 34, 'Sometimes', 2, NULL, NULL, NULL), (153, 34, 'Often', 3, NULL, NULL, NULL), (154, 34, 'Most or all the time', 4, NULL, NULL, NULL), (155, 35, 'Not at all', 0, NULL, NULL, NULL), (156, 35, 'Only Occasionally', 1, NULL, NULL, NULL), (157, 35, 'Sometimes', 2, NULL, NULL, NULL), (158, 35, 'Often', 3, NULL, NULL, NULL), (159, 35, 'Most or all the time', 4, NULL, NULL, NULL), (160, 36, 'Not at all', 0, NULL, NULL, NULL), (161, 36, 'Only Occasionally', 1, NULL, NULL, NULL), (162, 36, 'Sometimes', 2, NULL, NULL, NULL), (163, 36, 'Often', 3, NULL, NULL, NULL), (164, 36, 'Most or all the time', 4, NULL, NULL, NULL), (165, 37, 'Not at all', 0, NULL, NULL, NULL), (166, 37, 'Only Occasionally', 1, NULL, NULL, NULL), (167, 37, 'Sometimes', 2, NULL, NULL, NULL), (168, 37, 'Often', 3, NULL, NULL, NULL), (169, 37, 'Most or all the time', 4, NULL, NULL, NULL), (170, 38, 'Not at all', 0, NULL, NULL, NULL), (171, 38, 'Only Occasionally', 1, NULL, NULL, NULL), (172, 38, 'Sometimes', 2, NULL, NULL, NULL), (173, 38, 'Often', 3, NULL, NULL, NULL), (174, 38, 'Most or all the time', 4, NULL, NULL, NULL), (175, 39, 'Not at all', 0, NULL, NULL, NULL), (176, 39, 'Only Occasionally', 1, NULL, NULL, NULL), (177, 39, 'Sometimes', 2, NULL, NULL, NULL), (178, 39, 'Often', 3, NULL, NULL, NULL), (179, 39, 'Most or all the time', 4, NULL, NULL, NULL), (180, 40, 'Not at all', 4, NULL, NULL, NULL), (181, 40, 'Only Occasionally', 3, NULL, NULL, NULL), (182, 40, 'Sometimes', 2, NULL, NULL, NULL), (183, 40, 'Often', 1, NULL, NULL, NULL), (184, 40, 'Most or all the time', 0, NULL, NULL, NULL), (185, 41, 'Not at all', 0, NULL, NULL, NULL), (186, 41, 'Only Occasionally', 1, NULL, NULL, NULL), (187, 41, 'Sometimes', 2, NULL, NULL, NULL), (188, 41, 'Often', 3, NULL, NULL, NULL), (189, 41, 'Most or all the time', 4, NULL, NULL, NULL), (190, 42, 'Not at all', 4, NULL, NULL, NULL), (191, 42, 'Only Occasionally', 3, NULL, NULL, NULL), (192, 42, 'Sometimes', 2, NULL, NULL, NULL), (193, 42, 'Often', 1, NULL, NULL, NULL), (194, 42, 'Most or all the time', 0, NULL, NULL, NULL), (195, 43, 'Not at all', 0, NULL, NULL, NULL), (196, 43, 'Only Occasionally', 1, NULL, NULL, NULL), (197, 43, 'Sometimes', 2, NULL, NULL, NULL), (198, 43, 'Often', 3, NULL, NULL, NULL), (199, 43, 'Most or all the time', 4, NULL, NULL, NULL), (200, 44, 'Not at all', 0, NULL, NULL, NULL), (201, 44, 'Only Occasionally', 1, NULL, NULL, NULL), (202, 44, 'Sometimes', 2, NULL, NULL, NULL), (203, 44, 'Often', 3, NULL, NULL, NULL), (204, 44, 'Most or all the time', 4, NULL, NULL, NULL), (205, 45, 'Not at all', 0, NULL, NULL, NULL), (206, 45, 'Only Occasionally', 1, NULL, NULL, NULL), (207, 45, 'Sometimes', 2, NULL, NULL, NULL), (208, 45, 'Often', 3, NULL, NULL, NULL), (209, 45, 'Most or all the time', 4, NULL, NULL, NULL), (210, 46, 'Not at all', 0, NULL, NULL, NULL), (211, 46, 'Only Occasionally', 1, NULL, NULL, NULL), (212, 46, 'Sometimes', 2, NULL, NULL, NULL), (213, 46, 'Often', 3, NULL, NULL, NULL), (214, 46, 'Most or all the time', 4, NULL, NULL, NULL), (215, 47, 'Not at all', 0, NULL, NULL, NULL), (216, 47, 'Only Occasionally', 1, NULL, NULL, NULL), (217, 47, 'Sometimes', 2, NULL, NULL, NULL), (218, 47, 'Often', 3, NULL, NULL, NULL), (219, 47, 'Most or all the time', 4, NULL, NULL, NULL), (220, 48, 'Not at all', 0, NULL, NULL, NULL), (221, 48, 'Only Occasionally', 1, NULL, NULL, NULL), (222, 48, 'Sometimes', 2, NULL, NULL, NULL), (223, 48, 'Often', 3, NULL, NULL, NULL), (224, 48, 'Most or all the time', 4, NULL, NULL, NULL), (225, 49, 'Not at all', 0, NULL, NULL, NULL), (226, 49, 'Only Occasionally', 1, NULL, NULL, NULL), (227, 49, 'Sometimes', 2, NULL, NULL, NULL), (228, 49, 'Often', 3, NULL, NULL, NULL), (229, 49, 'Most or all the time', 4, NULL, NULL, NULL), (230, 50, 'Not at all', 0, NULL, NULL, NULL), (231, 50, 'Only Occasionally', 1, NULL, NULL, NULL), (232, 50, 'Sometimes', 2, NULL, NULL, NULL), (233, 50, 'Often', 3, NULL, NULL, NULL), (234, 50, 'Most or all the time', 4, NULL, NULL, NULL), (235, 51, 'Not at all', 0, NULL, NULL, NULL), (236, 51, 'Only Occasionally', 1, NULL, NULL, NULL), (237, 51, 'Sometimes', 2, NULL, NULL, NULL), (238, 51, 'Often', 3, NULL, NULL, NULL), (239, 51, 'Most or all the time', 4, NULL, NULL, NULL), (240, 52, 'Not at all', 4, NULL, NULL, NULL), (241, 52, 'Only Occasionally', 3, NULL, NULL, NULL), (242, 52, 'Sometimes', 2, NULL, NULL, NULL), (243, 52, 'Often', 1, NULL, NULL, NULL), (244, 52, 'Most or all the time', 0, NULL, NULL, NULL), (245, 53, 'Not at all', 4, NULL, NULL, NULL), (246, 53, 'Only Occasionally', 3, NULL, NULL, NULL), (247, 53, 'Sometimes', 2, NULL, NULL, NULL), (248, 53, 'Often', 1, NULL, NULL, NULL), (249, 53, 'Most or all the time', 0, NULL, NULL, NULL), (250, 54, 'Not at all', 0, NULL, NULL, NULL), (251, 54, 'Only Occasionally', 1, NULL, NULL, NULL), (252, 54, 'Sometimes', 2, NULL, NULL, NULL), (253, 54, 'Often', 3, NULL, NULL, NULL), (254, 54, 'Most or all the time', 4, NULL, NULL, NULL), (255, 55, 'Not at all', 0, NULL, NULL, NULL), (256, 55, 'Only Occasionally', 1, NULL, NULL, NULL), (257, 55, 'Sometimes', 2, NULL, NULL, NULL), (258, 55, 'Often', 3, NULL, NULL, NULL), (259, 55, 'Most or all the time', 4, NULL, NULL, NULL), (260, 56, 'Not True', 0, NULL, NULL, NULL), (261, 56, 'Somewhat True', 1, NULL, NULL, NULL), (262, 56, 'Certainly True', 2, NULL, NULL, NULL), (263, 57, 'Not True', 0, NULL, NULL, NULL), (264, 57, 'Somewhat True', 1, NULL, NULL, NULL), (265, 57, 'Certainly True', 2, NULL, NULL, NULL), (266, 58, 'Not True', 0, NULL, NULL, NULL), (267, 58, 'Somewhat True', 1, NULL, NULL, NULL), (268, 58, 'Certainly True', 2, NULL, NULL, NULL), (269, 59, 'Not True', 0, NULL, NULL, NULL), (270, 59, 'Somewhat True', 1, NULL, NULL, NULL), (271, 59, 'Certainly True', 2, NULL, NULL, NULL), (272, 60, 'Not True', 0, NULL, NULL, NULL), (273, 60, 'Somewhat True', 1, NULL, NULL, NULL), (274, 60, 'Certainly True', 2, NULL, NULL, NULL), (275, 61, 'Not True', 0, NULL, NULL, NULL), (276, 61, 'Somewhat True', 1, NULL, NULL, NULL), (277, 61, 'Certainly True', 2, NULL, NULL, NULL), (278, 62, 'Not True', 0, NULL, NULL, NULL), (279, 62, 'Somewhat True', 1, NULL, NULL, NULL), (280, 62, 'Certainly True', 2, NULL, NULL, NULL), (281, 63, 'Not True', 0, NULL, NULL, NULL), (282, 63, 'Somewhat True', 1, NULL, NULL, NULL), (283, 63, 'Certainly True', 2, NULL, NULL, NULL), (284, 64, 'Not True', 0, NULL, NULL, NULL), (285, 64, 'Somewhat True', 1, NULL, NULL, NULL), (286, 64, 'Certainly True', 2, NULL, NULL, NULL), (287, 65, 'Not True', 0, NULL, NULL, NULL), (288, 65, 'Somewhat True', 1, NULL, NULL, NULL), (289, 65, 'Certainly True', 2, NULL, NULL, NULL), (290, 66, 'Not True', 0, NULL, NULL, NULL), (291, 66, 'Somewhat True', 1, NULL, NULL, NULL), (292, 66, 'Certainly True', 2, NULL, NULL, NULL), (293, 67, 'Not True', 0, NULL, NULL, NULL), (294, 67, 'Somewhat True', 1, NULL, NULL, NULL), (295, 67, 'Certainly True', 2, NULL, NULL, NULL), (296, 68, 'Not True', 0, NULL, NULL, NULL), (297, 68, 'Somewhat True', 1, NULL, NULL, NULL), (298, 68, 'Certainly True', 2, NULL, NULL, NULL), (299, 69, 'Not True', 0, NULL, NULL, NULL), (300, 69, 'Somewhat True', 1, NULL, NULL, NULL), (301, 69, 'Certainly True', 2, NULL, NULL, NULL), (302, 70, 'Not True', 0, NULL, NULL, NULL), (303, 70, 'Somewhat True', 1, NULL, NULL, NULL), (304, 70, 'Certainly True', 2, NULL, NULL, NULL), (305, 71, 'Not True', 0, NULL, NULL, NULL), (306, 71, 'Somewhat True', 1, NULL, NULL, NULL), (307, 71, 'Certainly True', 2, NULL, NULL, NULL), (308, 72, 'Not True', 0, NULL, NULL, NULL), (309, 72, 'Somewhat True', 1, NULL, NULL, NULL), (310, 72, 'Certainly True', 2, NULL, NULL, NULL), (311, 73, 'Not True', 0, NULL, NULL, NULL), (312, 73, 'Somewhat True', 1, NULL, NULL, NULL), (313, 73, 'Certainly True', 2, NULL, NULL, NULL), (314, 74, 'Not True', 0, NULL, NULL, NULL), (315, 74, 'Somewhat True', 1, NULL, NULL, NULL), (316, 74, 'Certainly True', 2, NULL, NULL, NULL), (317, 75, 'Not True', 0, NULL, NULL, NULL), (318, 75, 'Somewhat True', 1, NULL, NULL, NULL), (319, 75, 'Certainly True', 2, NULL, NULL, NULL), (320, 76, 'Not True', 0, NULL, NULL, NULL), (321, 76, 'Somewhat True', 1, NULL, NULL, NULL), (322, 76, 'Certainly True', 2, NULL, NULL, NULL), (323, 77, 'Not True', 0, NULL, NULL, NULL), (324, 77, 'Somewhat True', 1, NULL, NULL, NULL), (325, 77, 'Certainly True', 2, NULL, NULL, NULL), (326, 78, 'Not True', 0, NULL, NULL, NULL), (327, 78, 'Somewhat True', 1, NULL, NULL, NULL), (328, 78, 'Certainly True', 2, NULL, NULL, NULL), (329, 79, 'Not True', 0, NULL, NULL, NULL), (330, 79, 'Somewhat True', 1, NULL, NULL, NULL), (331, 79, 'Certainly True', 2, NULL, NULL, NULL), (332, 80, 'Not True', 0, NULL, NULL, NULL), (333, 80, 'Somewhat True', 1, NULL, NULL, NULL), (334, 80, 'Certainly True', 2, NULL, NULL, NULL), (335, 81, 'Not True', 0, NULL, NULL, NULL), (336, 81, 'Somewhat True', 1, NULL, NULL, NULL), (337, 81, 'Certainly True', 2, NULL, NULL, NULL), (338, 82, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (339, 82, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (340, 82, 'Very True of Often True', 2, NULL, NULL, NULL), (341, 83, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (342, 83, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (343, 83, 'Very True of Often True', 2, NULL, NULL, NULL), (344, 84, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (345, 84, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (346, 84, 'Very True of Often True', 2, NULL, NULL, NULL), (347, 85, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (348, 85, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (349, 85, 'Very True of Often True', 2, NULL, NULL, NULL), (350, 86, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (351, 86, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (352, 86, 'Very True of Often True', 2, NULL, NULL, NULL), (353, 87, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (354, 87, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (355, 87, 'Very True of Often True', 2, NULL, NULL, NULL), (356, 88, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (357, 88, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (358, 88, 'Very True of Often True', 2, NULL, NULL, NULL), (359, 89, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (360, 89, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (361, 89, 'Very True of Often True', 2, NULL, NULL, NULL), (362, 90, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (363, 90, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (364, 90, 'Very True of Often True', 2, NULL, NULL, NULL), (365, 91, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (366, 91, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (367, 91, 'Very True of Often True', 2, NULL, NULL, NULL), (368, 92, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (369, 92, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (370, 92, 'Very True of Often True', 2, NULL, NULL, NULL), (371, 93, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (372, 93, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (373, 93, 'Very True of Often True', 2, NULL, NULL, NULL), (374, 94, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (375, 94, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (376, 94, 'Very True of Often True', 2, NULL, NULL, NULL), (377, 95, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (378, 95, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (379, 95, 'Very True of Often True', 2, NULL, NULL, NULL), (380, 96, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (381, 96, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (382, 96, 'Very True of Often True', 2, NULL, NULL, NULL), (383, 97, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (384, 97, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (385, 97, 'Very True of Often True', 2, NULL, NULL, NULL), (386, 98, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (387, 98, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (388, 98, 'Very True of Often True', 2, NULL, NULL, NULL), (389, 99, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (390, 99, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (391, 99, 'Very True of Often True', 2, NULL, NULL, NULL), (392, 100, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (393, 100, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (394, 100, 'Very True of Often True', 2, NULL, NULL, NULL), (395, 101, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (396, 101, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (397, 101, 'Very True of Often True', 2, NULL, NULL, NULL), (398, 102, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (399, 102, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (400, 102, 'Very True of Often True', 2, NULL, NULL, NULL), (401, 103, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (402, 103, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (403, 103, 'Very True of Often True', 2, NULL, NULL, NULL), (404, 104, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (405, 104, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (406, 104, 'Very True of Often True', 2, NULL, NULL, NULL), (407, 105, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (408, 105, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (409, 105, 'Very True of Often True', 2, NULL, NULL, NULL), (410, 106, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (411, 106, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (412, 106, 'Very True of Often True', 2, NULL, NULL, NULL), (413, 107, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (414, 107, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (415, 107, 'Very True of Often True', 2, NULL, NULL, NULL), (416, 108, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (417, 108, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (418, 108, 'Very True of Often True', 2, NULL, NULL, NULL), (419, 109, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (420, 109, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (421, 109, 'Very True of Often True', 2, NULL, NULL, NULL), (422, 110, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (423, 110, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (424, 110, 'Very True of Often True', 2, NULL, NULL, NULL), (425, 111, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (426, 111, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (427, 111, 'Very True of Often True', 2, NULL, NULL, NULL), (428, 112, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (429, 112, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (430, 112, 'Very True of Often True', 2, NULL, NULL, NULL), (431, 113, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (432, 113, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (433, 113, 'Very True of Often True', 2, NULL, NULL, NULL), (434, 114, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (435, 114, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (436, 114, 'Very True of Often True', 2, NULL, NULL, NULL), (437, 115, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (438, 115, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (439, 115, 'Very True of Often True', 2, NULL, NULL, NULL), (440, 116, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (441, 116, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (442, 116, 'Very True of Often True', 2, NULL, NULL, NULL), (443, 117, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (444, 117, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (445, 117, 'Very True of Often True', 2, NULL, NULL, NULL), (446, 118, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (447, 118, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (448, 118, 'Very True of Often True', 2, NULL, NULL, NULL), (449, 119, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (450, 119, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (451, 119, 'Very True of Often True', 2, NULL, NULL, NULL), (452, 120, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (453, 120, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (454, 120, 'Very True of Often True', 2, NULL, NULL, NULL), (455, 121, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (456, 121, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (457, 121, 'Very True of Often True', 2, NULL, NULL, NULL), (458, 122, 'Not True or Hardly Ever True', 0, NULL, NULL, NULL), (459, 122, 'Somewhat True or Sometimes True', 1, NULL, NULL, NULL), (460, 122, 'Very True of Often True', 2, NULL, NULL, NULL), (461, 123, 'psojdfop', 3, NULL, NULL, NULL), (462, 123, 'asdf', 2, NULL, NULL, NULL), (463, 124, 'ddd', 2, NULL, NULL, NULL), (464, 124, '000', 1, NULL, NULL, NULL), (465, 125, 'opt1', 2, NULL, NULL, NULL), (466, 125, 'opy', 2, NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `question_submit` -- CREATE TABLE `question_submit` ( `id` int(10) UNSIGNED NOT NULL, `manage_session_id` int(10) UNSIGNED NOT NULL COMMENT 'Foreign Key of Manage Session Table', `question_id` int(10) UNSIGNED NOT NULL COMMENT 'Foreign Key of Question table', `option_id` int(10) UNSIGNED NOT NULL COMMENT 'Foreign Key of Option Table', `created_by` int(10) UNSIGNED NOT NULL COMMENT 'Record created by user', `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 `question_submit` -- INSERT INTO `question_submit` (`id`, `manage_session_id`, `question_id`, `option_id`, `created_by`, `created_at`, `updated_at`) VALUES (1, 3, 1, 4, 4, NULL, NULL), (2, 3, 2, 8, 4, NULL, NULL), (3, 3, 3, 12, 4, NULL, NULL), (4, 3, 4, 16, 4, NULL, NULL), (5, 3, 5, 20, 4, NULL, NULL), (6, 3, 6, 24, 4, NULL, NULL), (7, 3, 7, 28, 4, NULL, NULL), (8, 3, 8, 32, 4, NULL, NULL), (9, 3, 9, 36, 4, NULL, NULL), (10, 3, 10, 40, 4, NULL, NULL), (11, 3, 11, 43, 4, NULL, NULL), (12, 3, 12, 47, 4, NULL, NULL), (13, 3, 13, 51, 4, NULL, NULL), (14, 3, 14, 55, 4, NULL, NULL), (15, 3, 15, 59, 4, NULL, NULL), (16, 3, 16, 64, 4, NULL, NULL), (17, 3, 17, 67, 4, NULL, NULL), (18, 3, 18, 71, 4, NULL, NULL), (19, 3, 19, 79, 4, NULL, NULL), (20, 3, 20, 83, 4, NULL, NULL), (21, 3, 21, 88, 4, NULL, NULL), (22, 4, 1, 1, 4, NULL, NULL), (23, 4, 2, 8, 4, NULL, NULL), (24, 4, 3, 9, 4, NULL, NULL), (25, 4, 4, 13, 4, NULL, NULL), (26, 4, 5, 18, 4, NULL, NULL), (27, 4, 6, 24, 4, NULL, NULL), (28, 4, 7, 28, 4, NULL, NULL), (29, 4, 8, 30, 4, NULL, NULL), (30, 4, 9, 34, 4, NULL, NULL), (31, 4, 10, 38, 4, NULL, NULL), (32, 4, 11, 42, 4, NULL, NULL), (33, 4, 12, 45, 4, NULL, NULL), (34, 4, 13, 51, 4, NULL, NULL), (35, 4, 14, 53, 4, NULL, NULL), (36, 4, 15, 59, 4, NULL, NULL), (37, 4, 16, 61, 4, NULL, NULL), (38, 4, 17, 68, 4, NULL, NULL), (39, 4, 18, 77, 4, NULL, NULL), (40, 4, 19, 79, 4, NULL, NULL), (41, 4, 20, 85, 4, NULL, NULL), (42, 4, 21, 87, 4, NULL, NULL), (43, 7, 56, 262, 4, NULL, NULL), (44, 7, 57, 265, 4, NULL, NULL), (45, 7, 58, 268, 4, NULL, NULL), (46, 7, 59, 270, 4, NULL, NULL), (47, 7, 60, 274, 4, NULL, NULL), (48, 7, 61, 275, 4, NULL, NULL), (49, 7, 62, 280, 4, NULL, NULL), (50, 7, 63, 283, 4, NULL, NULL), (51, 7, 64, 285, 4, NULL, NULL), (52, 7, 65, 288, 4, NULL, NULL), (53, 7, 66, 292, 4, NULL, NULL), (54, 7, 67, 293, 4, NULL, NULL), (55, 7, 68, 296, 4, NULL, NULL), (56, 7, 69, 299, 4, NULL, NULL), (57, 7, 70, 304, 4, NULL, NULL), (58, 7, 71, 306, 4, NULL, NULL), (59, 7, 72, 309, 4, NULL, NULL), (60, 7, 73, 313, 4, NULL, NULL), (61, 7, 74, 315, 4, NULL, NULL), (62, 7, 75, 318, 4, NULL, NULL), (63, 7, 76, 322, 4, NULL, NULL), (64, 7, 77, 325, 4, NULL, NULL), (65, 7, 78, 326, 4, NULL, NULL), (66, 7, 79, 330, 4, NULL, NULL), (67, 7, 80, 334, 4, NULL, NULL), (68, 7, 81, 337, 4, NULL, NULL), (69, 6, 56, 262, 4, NULL, NULL), (70, 6, 57, 263, 4, NULL, NULL), (71, 6, 58, 268, 4, NULL, NULL), (72, 6, 59, 271, 4, NULL, NULL), (73, 6, 60, 272, 4, NULL, NULL), (74, 6, 61, 276, 4, NULL, NULL), (75, 6, 62, 280, 4, NULL, NULL), (76, 6, 63, 283, 4, NULL, NULL), (77, 6, 64, 285, 4, NULL, NULL), (78, 6, 65, 288, 4, NULL, NULL), (79, 6, 66, 292, 4, NULL, NULL), (80, 6, 67, 295, 4, NULL, NULL), (81, 6, 68, 298, 4, NULL, NULL), (82, 6, 69, 301, 4, NULL, NULL), (83, 6, 70, 304, 4, NULL, NULL), (84, 6, 71, 307, 4, NULL, NULL), (85, 6, 72, 310, 4, NULL, NULL), (86, 6, 73, 313, 4, NULL, NULL), (87, 6, 74, 316, 4, NULL, NULL), (88, 6, 75, 318, 4, NULL, NULL), (89, 6, 76, 321, 4, NULL, NULL), (90, 6, 77, 325, 4, NULL, NULL), (91, 6, 78, 328, 4, NULL, NULL), (92, 6, 79, 331, 4, NULL, NULL), (93, 6, 80, 333, 4, NULL, NULL), (94, 6, 81, 336, 4, NULL, NULL), (95, 12, 22, 94, 4, NULL, NULL), (96, 12, 23, 99, 4, NULL, NULL), (97, 12, 24, 104, 4, NULL, NULL), (98, 12, 25, 109, 4, NULL, NULL), (99, 12, 26, 115, 4, NULL, NULL), (100, 12, 27, 119, 4, NULL, NULL), (101, 12, 28, 124, 4, NULL, NULL), (102, 12, 29, 129, 4, NULL, NULL), (103, 12, 30, 134, 4, NULL, NULL), (104, 12, 31, 139, 4, NULL, NULL), (105, 12, 32, 144, 4, NULL, NULL), (106, 12, 33, 149, 4, NULL, NULL), (107, 12, 34, 154, 4, NULL, NULL), (108, 12, 35, 159, 4, NULL, NULL), (109, 12, 36, 164, 4, NULL, NULL), (110, 12, 37, 169, 4, NULL, NULL), (111, 12, 38, 174, 4, NULL, NULL), (112, 12, 39, 179, 4, NULL, NULL), (113, 12, 40, 184, 4, NULL, NULL), (114, 12, 41, 189, 4, NULL, NULL), (115, 12, 42, 194, 4, NULL, NULL), (116, 12, 43, 199, 4, NULL, NULL), (117, 12, 44, 204, 4, NULL, NULL), (118, 12, 45, 209, 4, NULL, NULL), (119, 12, 46, 214, 4, NULL, NULL), (120, 12, 47, 219, 4, NULL, NULL), (121, 12, 48, 224, 4, NULL, NULL), (122, 12, 49, 229, 4, NULL, NULL), (123, 12, 50, 234, 4, NULL, NULL), (124, 12, 51, 239, 4, NULL, NULL), (125, 12, 52, 240, 4, NULL, NULL), (126, 12, 53, 249, 4, NULL, NULL), (127, 12, 54, 254, 4, NULL, NULL), (128, 12, 55, 259, 4, NULL, NULL), (129, 13, 82, 338, 4, NULL, NULL), (130, 13, 83, 343, 4, NULL, NULL), (131, 13, 84, 346, 4, NULL, NULL), (132, 13, 85, 349, 4, NULL, NULL), (133, 13, 86, 352, 4, NULL, NULL), (134, 13, 87, 354, 4, NULL, NULL), (135, 13, 88, 358, 4, NULL, NULL), (136, 13, 89, 361, 4, NULL, NULL), (137, 13, 90, 364, 4, NULL, NULL), (138, 13, 91, 367, 4, NULL, NULL), (139, 13, 92, 370, 4, NULL, NULL), (140, 13, 93, 373, 4, NULL, NULL), (141, 13, 94, 376, 4, NULL, NULL), (142, 13, 95, 379, 4, NULL, NULL), (143, 13, 96, 382, 4, NULL, NULL), (144, 13, 97, 385, 4, NULL, NULL), (145, 13, 98, 388, 4, NULL, NULL), (146, 13, 99, 391, 4, NULL, NULL), (147, 13, 100, 394, 4, NULL, NULL), (148, 13, 101, 397, 4, NULL, NULL), (149, 13, 102, 400, 4, NULL, NULL), (150, 13, 103, 403, 4, NULL, NULL), (151, 13, 104, 406, 4, NULL, NULL), (152, 13, 105, 409, 4, NULL, NULL), (153, 13, 106, 412, 4, NULL, NULL), (154, 13, 107, 415, 4, NULL, NULL), (155, 13, 108, 418, 4, NULL, NULL), (156, 13, 109, 421, 4, NULL, NULL), (157, 13, 110, 424, 4, NULL, NULL), (158, 13, 111, 427, 4, NULL, NULL), (159, 13, 112, 430, 4, NULL, NULL), (160, 13, 113, 433, 4, NULL, NULL), (161, 13, 114, 436, 4, NULL, NULL), (162, 13, 115, 439, 4, NULL, NULL), (163, 13, 116, 442, 4, NULL, NULL), (164, 13, 117, 445, 4, NULL, NULL), (165, 13, 118, 448, 4, NULL, NULL), (166, 13, 119, 451, 4, NULL, NULL), (167, 13, 120, 454, 4, NULL, NULL), (168, 13, 121, 457, 4, NULL, NULL), (169, 13, 122, 460, 4, NULL, NULL), (191, 15, 1, 2, 8, NULL, NULL), (192, 15, 2, 6, 8, NULL, NULL), (193, 15, 3, 10, 8, NULL, NULL), (194, 15, 4, 13, 8, NULL, NULL), (195, 15, 5, 19, 8, NULL, NULL), (196, 15, 6, 22, 8, NULL, NULL), (197, 15, 7, 25, 8, NULL, NULL), (198, 15, 8, 29, 8, NULL, NULL), (199, 15, 9, 34, 8, NULL, NULL), (200, 15, 10, 38, 8, NULL, NULL), (201, 15, 11, 42, 8, NULL, NULL), (202, 15, 12, 44, 8, NULL, NULL), (203, 15, 13, 50, 8, NULL, NULL), (204, 15, 14, 52, 8, NULL, NULL), (205, 15, 15, 58, 8, NULL, NULL), (206, 15, 16, 65, 8, NULL, NULL), (207, 15, 17, 69, 8, NULL, NULL), (208, 15, 18, 72, 8, NULL, NULL), (209, 15, 19, 80, 8, NULL, NULL), (210, 15, 20, 82, 8, NULL, NULL), (211, 15, 21, 87, 8, NULL, NULL), (212, 16, 1, 1, 8, NULL, NULL), (213, 16, 2, 8, 8, NULL, NULL), (214, 16, 3, 10, 8, NULL, NULL), (215, 16, 4, 14, 8, NULL, NULL), (216, 16, 5, 19, 8, NULL, NULL), (217, 16, 6, 24, 8, NULL, NULL), (218, 16, 7, 28, 8, NULL, NULL), (219, 16, 8, 32, 8, NULL, NULL), (220, 16, 9, 36, 8, NULL, NULL), (221, 16, 10, 40, 8, NULL, NULL), (222, 16, 11, 43, 8, NULL, NULL), (223, 16, 12, 47, 8, NULL, NULL), (224, 16, 13, 51, 8, NULL, NULL), (225, 16, 14, 55, 8, NULL, NULL), (226, 16, 15, 59, 8, NULL, NULL), (227, 16, 16, 66, 8, NULL, NULL), (228, 16, 17, 70, 8, NULL, NULL), (229, 16, 18, 77, 8, NULL, NULL), (230, 16, 19, 81, 8, NULL, NULL), (231, 16, 20, 85, 8, NULL, NULL), (232, 16, 21, 89, 8, NULL, NULL), (233, 28, 123, 461, 8, NULL, NULL), (234, 28, 124, 463, 8, NULL, NULL), (235, 32, 56, 260, 16, NULL, NULL), (236, 32, 57, 265, 16, NULL, NULL), (237, 32, 58, 267, 16, NULL, NULL), (238, 32, 59, 271, 16, NULL, NULL), (239, 32, 60, 274, 16, NULL, NULL), (240, 32, 61, 277, 16, NULL, NULL), (241, 32, 62, 280, 16, NULL, NULL), (242, 32, 63, 283, 16, NULL, NULL), (243, 32, 64, 286, 16, NULL, NULL), (244, 32, 65, 289, 16, NULL, NULL), (245, 32, 66, 292, 16, NULL, NULL), (246, 32, 67, 295, 16, NULL, NULL), (247, 32, 68, 298, 16, NULL, NULL), (248, 32, 69, 301, 16, NULL, NULL), (249, 32, 70, 304, 16, NULL, NULL), (250, 32, 71, 307, 16, NULL, NULL), (251, 32, 72, 310, 16, NULL, NULL), (252, 32, 73, 313, 16, NULL, NULL), (253, 32, 74, 316, 16, NULL, NULL), (254, 32, 75, 319, 16, NULL, NULL), (255, 32, 76, 322, 16, NULL, NULL), (256, 32, 77, 325, 16, NULL, NULL), (257, 32, 78, 328, 16, NULL, NULL), (258, 32, 79, 331, 16, NULL, NULL), (259, 32, 80, 333, 16, NULL, NULL), (260, 32, 81, 336, 16, NULL, NULL), (261, 34, 1, 2, 17, NULL, NULL), (262, 34, 2, 7, 17, NULL, NULL), (263, 34, 3, 11, 17, NULL, NULL), (264, 34, 4, 15, 17, NULL, NULL), (265, 34, 5, 20, 17, NULL, NULL), (266, 34, 6, 22, 17, NULL, NULL), (267, 34, 7, 28, 17, NULL, NULL), (268, 34, 8, 32, 17, NULL, NULL), (269, 34, 9, 35, 17, NULL, NULL), (270, 34, 10, 40, 17, NULL, NULL), (271, 34, 11, 43, 17, NULL, NULL), (272, 34, 12, 47, 17, NULL, NULL), (273, 34, 13, 50, 17, NULL, NULL), (274, 34, 14, 55, 17, NULL, NULL), (275, 34, 15, 59, 17, NULL, NULL), (276, 34, 16, 66, 17, NULL, NULL), (277, 34, 17, 70, 17, NULL, NULL), (278, 34, 18, 73, 17, NULL, NULL), (279, 34, 19, 80, 17, NULL, NULL), (280, 34, 20, 85, 17, NULL, NULL), (281, 34, 21, 89, 17, NULL, NULL), (282, 17, 56, 262, 8, NULL, NULL), (283, 17, 57, 265, 8, NULL, NULL), (284, 17, 58, 268, 8, NULL, NULL), (285, 17, 59, 271, 8, NULL, NULL), (286, 17, 60, 274, 8, NULL, NULL), (287, 17, 61, 277, 8, NULL, NULL), (288, 17, 62, 280, 8, NULL, NULL), (289, 17, 63, 283, 8, NULL, NULL), (290, 17, 64, 286, 8, NULL, NULL), (291, 17, 65, 289, 8, NULL, NULL), (292, 17, 66, 292, 8, NULL, NULL), (293, 17, 67, 295, 8, NULL, NULL), (294, 17, 68, 298, 8, NULL, NULL), (295, 17, 69, 301, 8, NULL, NULL), (296, 17, 70, 304, 8, NULL, NULL), (297, 17, 71, 307, 8, NULL, NULL), (298, 17, 72, 310, 8, NULL, NULL), (299, 17, 73, 313, 8, NULL, NULL), (300, 17, 74, 316, 8, NULL, NULL), (301, 17, 75, 319, 8, NULL, NULL), (302, 17, 76, 322, 8, NULL, NULL), (303, 17, 77, 325, 8, NULL, NULL), (304, 17, 78, 328, 8, NULL, NULL), (305, 17, 79, 331, 8, NULL, NULL), (306, 17, 80, 334, 8, NULL, NULL), (307, 17, 81, 337, 8, NULL, NULL), (308, 46, 56, 261, 18, NULL, NULL), (309, 46, 57, 265, 18, NULL, NULL), (310, 46, 58, 268, 18, NULL, NULL), (311, 46, 59, 271, 18, NULL, NULL), (312, 46, 60, 274, 18, NULL, NULL), (313, 46, 61, 277, 18, NULL, NULL), (314, 46, 62, 280, 18, NULL, NULL), (315, 46, 63, 283, 18, NULL, NULL), (316, 46, 64, 286, 18, NULL, NULL), (317, 46, 65, 289, 18, NULL, NULL), (318, 46, 66, 292, 18, NULL, NULL), (319, 46, 67, 295, 18, NULL, NULL), (320, 46, 68, 298, 18, NULL, NULL), (321, 46, 69, 301, 18, NULL, NULL), (322, 46, 70, 304, 18, NULL, NULL), (323, 46, 71, 307, 18, NULL, NULL), (324, 46, 72, 310, 18, NULL, NULL), (325, 46, 73, 313, 18, NULL, NULL), (326, 46, 74, 316, 18, NULL, NULL), (327, 46, 75, 319, 18, NULL, NULL), (328, 46, 76, 322, 18, NULL, NULL), (329, 46, 77, 325, 18, NULL, NULL), (330, 46, 78, 328, 18, NULL, NULL), (331, 46, 79, 331, 18, NULL, NULL), (332, 46, 80, 334, 18, NULL, NULL), (333, 46, 81, 337, 18, NULL, NULL), (334, 55, 1, 2, 22, NULL, NULL), (335, 55, 2, 7, 22, NULL, NULL), (336, 55, 3, 11, 22, NULL, NULL), (337, 55, 4, 16, 22, NULL, NULL), (338, 55, 5, 20, 22, NULL, NULL), (339, 55, 6, 24, 22, NULL, NULL), (340, 55, 7, 28, 22, NULL, NULL), (341, 55, 8, 32, 22, NULL, NULL), (342, 55, 9, 36, 22, NULL, NULL), (343, 55, 10, 40, 22, NULL, NULL), (344, 55, 11, 43, 22, NULL, NULL), (345, 55, 12, 47, 22, NULL, NULL), (346, 55, 13, 51, 22, NULL, NULL), (347, 55, 14, 55, 22, NULL, NULL), (348, 55, 15, 59, 22, NULL, NULL), (349, 55, 16, 66, 22, NULL, NULL), (350, 55, 17, 70, 22, NULL, NULL), (351, 55, 18, 77, 22, NULL, NULL), (352, 55, 19, 81, 22, NULL, NULL), (353, 55, 20, 85, 22, NULL, NULL), (354, 55, 21, 89, 22, NULL, NULL), (389, 59, 82, 338, 22, NULL, NULL), (390, 59, 83, 341, 22, NULL, NULL), (391, 59, 84, 346, 22, NULL, NULL), (392, 59, 85, 349, 22, NULL, NULL), (393, 59, 86, 352, 22, NULL, NULL), (394, 59, 87, 355, 22, NULL, NULL), (395, 59, 88, 358, 22, NULL, NULL), (396, 59, 89, 361, 22, NULL, NULL), (397, 59, 90, 364, 22, NULL, NULL), (398, 59, 91, 367, 22, NULL, NULL), (399, 59, 92, 370, 22, NULL, NULL), (400, 59, 93, 373, 22, NULL, NULL), (401, 59, 94, 376, 22, NULL, NULL), (402, 59, 95, 379, 22, NULL, NULL), (403, 59, 96, 382, 22, NULL, NULL), (404, 59, 97, 385, 22, NULL, NULL), (405, 59, 98, 388, 22, NULL, NULL), (406, 59, 99, 391, 22, NULL, NULL), (407, 59, 100, 394, 22, NULL, NULL), (408, 59, 101, 397, 22, NULL, NULL), (409, 59, 102, 400, 22, NULL, NULL), (410, 59, 103, 403, 22, NULL, NULL), (411, 59, 104, 406, 22, NULL, NULL), (412, 59, 105, 409, 22, NULL, NULL), (413, 59, 106, 412, 22, NULL, NULL), (414, 59, 107, 415, 22, NULL, NULL), (415, 59, 108, 418, 22, NULL, NULL), (416, 59, 109, 421, 22, NULL, NULL), (417, 59, 110, 424, 22, NULL, NULL), (418, 59, 111, 427, 22, NULL, NULL), (419, 59, 112, 430, 22, NULL, NULL), (420, 59, 113, 433, 22, NULL, NULL), (421, 59, 114, 436, 22, NULL, NULL), (422, 59, 115, 439, 22, NULL, NULL), (423, 59, 116, 442, 22, NULL, NULL), (424, 59, 117, 445, 22, NULL, NULL), (425, 59, 118, 448, 22, NULL, NULL), (426, 59, 119, 451, 22, NULL, NULL), (427, 59, 120, 454, 22, NULL, NULL), (428, 59, 121, 457, 22, NULL, NULL), (429, 59, 122, 460, 22, NULL, NULL), (430, 60, 56, 261, 22, NULL, NULL), (431, 60, 57, 263, 22, NULL, NULL), (432, 60, 58, 266, 22, NULL, NULL), (433, 60, 59, 271, 22, NULL, NULL), (434, 60, 60, 274, 22, NULL, NULL), (435, 60, 61, 277, 22, NULL, NULL), (436, 60, 62, 280, 22, NULL, NULL), (437, 60, 63, 283, 22, NULL, NULL), (438, 60, 64, 286, 22, NULL, NULL), (439, 60, 65, 287, 22, NULL, NULL), (440, 60, 66, 292, 22, NULL, NULL), (441, 60, 67, 295, 22, NULL, NULL), (442, 60, 68, 298, 22, NULL, NULL), (443, 60, 69, 301, 22, NULL, NULL), (444, 60, 70, 304, 22, NULL, NULL), (445, 60, 71, 307, 22, NULL, NULL), (446, 60, 72, 310, 22, NULL, NULL), (447, 60, 73, 313, 22, NULL, NULL), (448, 60, 74, 316, 22, NULL, NULL), (449, 60, 75, 319, 22, NULL, NULL), (450, 60, 76, 322, 22, NULL, NULL), (451, 60, 77, 325, 22, NULL, NULL), (452, 60, 78, 328, 22, NULL, NULL), (453, 60, 79, 331, 22, NULL, NULL), (454, 60, 80, 334, 22, NULL, NULL), (455, 60, 81, 337, 22, NULL, NULL), (456, 56, 82, 338, 22, NULL, NULL), (457, 56, 83, 341, 22, NULL, NULL), (458, 57, 82, 340, 22, NULL, NULL), (459, 57, 83, 343, 22, NULL, NULL), (460, 57, 84, 346, 22, NULL, NULL), (461, 57, 85, 349, 22, NULL, NULL), (462, 57, 86, 352, 22, NULL, NULL), (463, 57, 87, 355, 22, NULL, NULL), (464, 57, 88, 358, 22, NULL, NULL), (465, 57, 89, 361, 22, NULL, NULL), (466, 57, 90, 364, 22, NULL, NULL), (467, 57, 91, 367, 22, NULL, NULL), (468, 57, 92, 370, 22, NULL, NULL), (469, 57, 93, 373, 22, NULL, NULL), (470, 57, 94, 376, 22, NULL, NULL), (471, 57, 95, 379, 22, NULL, NULL), (472, 57, 96, 382, 22, NULL, NULL), (473, 57, 97, 385, 22, NULL, NULL), (474, 57, 98, 388, 22, NULL, NULL), (475, 57, 99, 391, 22, NULL, NULL), (476, 57, 100, 394, 22, NULL, NULL), (477, 57, 101, 397, 22, NULL, NULL), (478, 57, 102, 400, 22, NULL, NULL), (479, 57, 103, 403, 22, NULL, NULL), (480, 57, 104, 406, 22, NULL, NULL), (481, 57, 105, 409, 22, NULL, NULL), (482, 57, 106, 412, 22, NULL, NULL), (483, 57, 107, 415, 22, NULL, NULL), (484, 57, 108, 418, 22, NULL, NULL), (485, 57, 109, 421, 22, NULL, NULL), (486, 57, 110, 424, 22, NULL, NULL), (487, 57, 111, 427, 22, NULL, NULL), (488, 57, 112, 430, 22, NULL, NULL), (489, 57, 113, 433, 22, NULL, NULL), (490, 57, 114, 436, 22, NULL, NULL), (491, 57, 115, 439, 22, NULL, NULL), (492, 57, 116, 442, 22, NULL, NULL), (493, 57, 117, 445, 22, NULL, NULL), (494, 57, 118, 448, 22, NULL, NULL), (495, 57, 119, 451, 22, NULL, NULL), (496, 57, 120, 454, 22, NULL, NULL), (497, 57, 121, 457, 22, NULL, NULL), (498, 57, 122, 460, 22, NULL, NULL), (499, 62, 1, 1, 22, NULL, NULL), (500, 62, 2, 7, 22, NULL, NULL), (501, 62, 3, 12, 22, NULL, NULL), (502, 62, 4, 13, 22, NULL, NULL), (503, 62, 5, 19, 22, NULL, NULL), (504, 62, 6, 22, 22, NULL, NULL), (505, 62, 7, 26, 22, NULL, NULL), (506, 62, 8, 30, 22, NULL, NULL), (507, 62, 9, 34, 22, NULL, NULL), (508, 62, 10, 38, 22, NULL, NULL), (509, 62, 11, 42, 22, NULL, NULL), (510, 62, 12, 45, 22, NULL, NULL), (511, 62, 13, 49, 22, NULL, NULL), (512, 62, 14, 53, 22, NULL, NULL), (513, 62, 15, 57, 22, NULL, NULL), (514, 62, 16, 61, 22, NULL, NULL), (515, 62, 17, 70, 22, NULL, NULL), (516, 62, 18, 77, 22, NULL, NULL), (517, 62, 19, 81, 22, NULL, NULL), (518, 62, 20, 85, 22, NULL, NULL), (519, 62, 21, 89, 22, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `question_type` -- CREATE TABLE `question_type` ( `id` tinyint(4) NOT NULL, `question_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '0-Inactive, 1-Active', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `question_type` -- INSERT INTO `question_type` (`id`, `question_type`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'Beck Depression Inventory (BDI)', 1, NULL, NULL, NULL), (2, 'Clinical Outcomes in Routine Evaluation (CORE)', 1, NULL, NULL, NULL), (3, 'Strengths and Difficulties Questionnaire (SDQ)', 1, NULL, NULL, NULL), (4, 'Screen for Child Anxiety Related Disorders (SCARED)', 1, NULL, NULL, NULL), (5, 'MK questionnaire', 1, '2018-11-14 12:07:40', '2018-11-14 12:07:40', NULL), (6, 'first', 1, '2019-01-17 04:07:17', '2019-01-17 04:07:17', NULL), (7, 'test1', 1, '2019-01-18 05:01:07', '2019-01-18 05:01:07', NULL); -- -------------------------------------------------------- -- -- Table structure for table `reports` -- CREATE TABLE `reports` ( `id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `roles` -- CREATE TABLE `roles` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `all` tinyint(1) NOT NULL DEFAULT '0', `sort` smallint(5) UNSIGNED NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '1', `created_by` int(11) DEFAULT NULL, `updated_by` int(10) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `roles` -- INSERT INTO `roles` (`id`, `name`, `all`, `sort`, `status`, `created_by`, `updated_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'Developer', 1, 1, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', NULL), (2, 'Admin', 0, 2, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', NULL), (3, 'Sub-Admin', 0, 3, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', NULL), (4, 'Client', 0, 4, 1, 1, NULL, '2018-10-25 01:30:40', '2018-10-25 01:30:40', NULL); -- -------------------------------------------------------- -- -- Table structure for table `role_user` -- CREATE TABLE `role_user` ( `id` int(10) UNSIGNED NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `role_id` int(10) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `role_user` -- INSERT INTO `role_user` (`id`, `user_id`, `role_id`) VALUES (1, 1, 1), (3, 3, 3), (4, 4, 4), (8, 5, 4), (9, 7, 4), (10, 8, 4), (12, 9, 1), (13, 10, 4), (14, 2, 2), (15, 13, 4), (16, 16, 4), (17, 17, 4), (18, 18, 4), (19, 19, 4), (20, 20, 4), (21, 22, 4); -- -------------------------------------------------------- -- -- Table structure for table `services` -- CREATE TABLE `services` ( `id` smallint(5) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '1', `created_by` int(10) UNSIGNED NOT NULL, `updated_by` int(10) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `services` -- INSERT INTO `services` (`id`, `name`, `status`, `created_by`, `updated_by`, `created_at`, `updated_at`) VALUES (1, 'Clinical Psychology', 1, 0, NULL, NULL, NULL), (2, 'Positive Behaviour', 1, 0, NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `sessions` -- CREATE TABLE `sessions` ( `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `user_id` int(10) UNSIGNED DEFAULT NULL, `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `user_agent` text COLLATE utf8mb4_unicode_ci, `payload` text COLLATE utf8mb4_unicode_ci NOT NULL, `last_activity` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `settings` -- CREATE TABLE `settings` ( `id` int(10) UNSIGNED NOT NULL, `logo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `favicon` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `seo_title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `seo_keyword` text COLLATE utf8mb4_unicode_ci, `seo_description` text COLLATE utf8mb4_unicode_ci, `company_contact` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `company_address` text COLLATE utf8mb4_unicode_ci, `from_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `from_email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `facebook` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `linkedin` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `twitter` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `google` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `copyright_text` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `footer_text` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `terms` text COLLATE utf8mb4_unicode_ci, `disclaimer` text COLLATE utf8mb4_unicode_ci, `google_analytics` text COLLATE utf8mb4_unicode_ci, `home_video1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `home_video2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `home_video3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `home_video4` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `explanation1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `explanation2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `explanation3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `explanation4` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `settings` -- INSERT INTO `settings` (`id`, `logo`, `favicon`, `seo_title`, `seo_keyword`, `seo_description`, `company_contact`, `company_address`, `from_name`, `from_email`, `facebook`, `linkedin`, `twitter`, `google`, `copyright_text`, `footer_text`, `terms`, `disclaimer`, `google_analytics`, `home_video1`, `home_video2`, `home_video3`, `home_video4`, `explanation1`, `explanation2`, `explanation3`, `explanation4`, `created_at`, `updated_at`) VALUES (1, NULL, NULL, 'Actualise', NULL, NULL, NULL, NULL, 'Super Admin', '<EMAIL>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2018-12-14 00:20:03'); -- -------------------------------------------------------- -- -- Table structure for table `social_logins` -- CREATE TABLE `social_logins` ( `id` int(10) UNSIGNED NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `provider` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL, `provider_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `avatar` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `subjective_question_save` -- CREATE TABLE `subjective_question_save` ( `id` int(10) UNSIGNED NOT NULL, `manage_session_id` int(10) UNSIGNED NOT NULL COMMENT 'Foreign Key of Manage Session Table', `question_id` int(10) UNSIGNED NOT NULL COMMENT 'Foreign Key of Custom Question table', `options` tinyint(4) NOT NULL COMMENT 'Option of Subjective Questions', `created_by` int(10) UNSIGNED NOT NULL COMMENT 'Record created by user', `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 `subjective_question_save` -- INSERT INTO `subjective_question_save` (`id`, `manage_session_id`, `question_id`, `options`, `created_by`, `created_at`, `updated_at`) VALUES (1, 2, 9, 3, 4, NULL, NULL), (2, 2, 10, 0, 4, NULL, NULL), (3, 2, 11, 6, 4, NULL, NULL), (4, 2, 12, 0, 4, NULL, NULL), (5, 2, 13, -4, 4, NULL, NULL), (6, 2, 14, 6, 4, NULL, NULL), (7, 5, 9, 6, 4, NULL, NULL), (8, 5, 10, 0, 4, NULL, NULL), (9, 5, 11, -7, 4, NULL, NULL), (10, 5, 12, 2, 4, NULL, NULL), (11, 5, 13, -5, 4, NULL, NULL), (12, 5, 14, 6, 4, NULL, NULL), (13, 31, 23, 6, 16, NULL, NULL), (14, 31, 24, -8, 16, NULL, NULL), (20, 35, 30, 9, 17, NULL, NULL), (21, 35, 31, 5, 17, NULL, NULL), (22, 35, 32, -5, 17, NULL, NULL), (23, 35, 33, -6, 17, NULL, NULL), (24, 35, 34, -6, 17, NULL, NULL), (25, 35, 35, 5, 17, NULL, NULL), (26, 36, 30, 9, 17, NULL, NULL), (27, 36, 31, 9, 17, NULL, NULL), (28, 36, 32, -9, 17, NULL, NULL), (29, 36, 33, -8, 17, NULL, NULL), (30, 36, 34, -8, 17, NULL, NULL), (31, 36, 35, -8, 17, NULL, NULL), (32, 39, 30, 10, 17, NULL, NULL), (33, 39, 31, 10, 17, NULL, NULL), (34, 39, 32, -10, 17, NULL, NULL), (35, 39, 33, -10, 17, NULL, NULL), (36, 39, 34, 10, 17, NULL, NULL), (37, 39, 35, 10, 17, NULL, NULL), (38, 45, 36, 10, 18, NULL, NULL), (39, 45, 37, -6, 18, NULL, NULL), (40, 47, 36, 4, 18, NULL, NULL), (41, 47, 37, -4, 18, NULL, NULL), (42, 50, 36, 7, 1, NULL, NULL), (43, 50, 37, -6, 1, NULL, NULL), (44, 54, 39, 0, 22, NULL, NULL), (45, 54, 40, 0, 22, NULL, NULL), (46, 54, 41, 0, 22, NULL, NULL), (47, 54, 42, 0, 22, NULL, NULL), (48, 54, 43, 0, 22, NULL, NULL), (49, 54, 44, 0, 22, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `testimonials` -- CREATE TABLE `testimonials` ( `id` int(10) UNSIGNED NOT NULL, `client_id` int(10) UNSIGNED NOT NULL COMMENT 'Foreign key of Client Table', `comment` text COLLATE utf8mb4_unicode_ci NOT NULL, `intervention_type` int(10) UNSIGNED NOT NULL COMMENT 'Foreign key of Intervention Type Table', `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 `testimonials` -- INSERT INTO `testimonials` (`id`, `client_id`, `comment`, `intervention_type`, `created_at`, `updated_at`) VALUES (1, 1, 'I am doing better now, thanks.', 1, NULL, NULL), (2, 1, 'good experience', 3, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `first_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `last_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `status` tinyint(1) NOT NULL DEFAULT '1', `confirmation_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `confirmed` tinyint(1) NOT NULL DEFAULT '0', `is_term_accept` tinyint(1) NOT NULL DEFAULT '0' COMMENT ' 0 = not accepted,1 = accepted', `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_by` int(11) DEFAULT NULL, `updated_by` int(10) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `first_name`, `last_name`, `email`, `password`, `status`, `confirmation_code`, `confirmed`, `is_term_accept`, `remember_token`, `created_by`, `updated_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'Superadmin', '<PASSWORD>', '<EMAIL>', <PASSWORD>', 1, '<PASSWORD>', 1, 0, 'QPigYTXHp1HmqgC2LEq8tWbtKMR3ZrvWZrMIwMtz50hsAAqQ7ZsEyLvkfmUw', 1, NULL, '2018-09-05 03:10:44', '2018-09-05 03:10:44', NULL), (2, 'Admin', 'Actualise', '<EMAIL>', '$2y$10$1H8RDjuD9kd6/eJ0HroBu.Nktr4fCMB0ZcBpSmLnFMszNMsU75Om.', 1, '56e2d40e371fc7ddcc5491c8e166810e', 1, 0, 'lTagSscWGYU4iAWwuiRBG268C8hbYdZURPRLkeXBxFLo6BvopRAPdT8FSCVA', 1, NULL, '2018-09-05 03:10:44', '2018-09-05 03:10:44', NULL), (3, 'Subadmin', 'Actualise', '<EMAIL>', <PASSWORD>$10$wCNQOQK86TS0buTLOBRmHeBdilNbZJ3FEG6EwQol7WttrY5VTVhKa', 1, '5ccc6cae0af816dc99c34c9e1376f56f', 1, 0, NULL, 1, NULL, '2018-09-05 03:10:44', '2018-10-11 01:09:42', NULL), (4, 'Jane', 'Doe', '<EMAIL>', '$2y$10$/ISkt7gMxbfJe7LgMlf0Vei40I55PgBgpL9ugCuLgjFaXPf835.gq', 0, NULL, 1, 0, 'ktSZHxUiq947TCjdWrRloy6eh8kd0pjICjT9aFhbNP6ypN4IDvLx2rdBu9Ih', 1, NULL, '2018-09-05 08:05:23', '2018-10-17 02:50:30', NULL), (5, 'Sarah', 'Malley', '<EMAIL>', '$2y$10$DMGNubClD5KeaGPPGNTN/OxpotjPX0.4Ru.XU3Z4GPPhnkfpVIzcq', 1, NULL, 1, 0, NULL, 2, NULL, '2018-09-19 03:31:08', '2018-09-19 03:38:12', '2018-09-19 03:38:12'), (7, 'Franca', 'Michelle', '<EMAIL>', '$2y$10$4G7x9vdUIT/f1FXuTOrYX.sR/aJwE5PYonInTshmkkv07ybww2eCG', 1, NULL, 1, 0, NULL, 2, NULL, '2018-09-28 09:15:57', '2018-10-09 07:50:02', '2018-10-09 07:50:02'), (8, 'Franca', 'Michelle', '<EMAIL>', '$2y$10$32jPmVjVzlZX3bmxYcynm.dO3qVoXYsv33c.CMBd4pJoV24t88KZ2', 1, NULL, 1, 0, 'JZQUAQEm0UnsiLhdUkr1GcEbUfF9T1MUNEAoNPZadhZWsIKxo9vSGHguhnoS', 2, NULL, '2018-10-09 07:58:24', '2018-11-14 12:18:19', NULL), (9, 'Rosemary', 'Keane', '<EMAIL>', <PASSWORD>', 1, 'b91888b61cb05aa118ba6080f2d9f1fd', 1, 0, NULL, 2, NULL, '2018-10-15 04:00:09', '2018-10-15 04:00:09', NULL), (10, 'Michael', 'Keane', '<EMAIL>', <PASSWORD>', 1, NULL, 1, 0, NULL, 2, NULL, '2018-10-15 04:12:31', '2018-11-02 06:30:56', '2018-11-02 06:30:56'), (13, 'Michael', 'Keane', '<EMAIL>', <PASSWORD>', 1, NULL, 1, 0, 'iAETqUG9xHLFfHJUqs7X6tvcAeeZIp6I3fLs5w6cxS80jp94ad7vrrPSU9gF', 2, NULL, '2018-11-02 06:36:06', '2018-11-02 06:36:06', NULL), (16, 'Mike', 'Tyson', 'mike0001<EMAIL>', <PASSWORD>', 1, NULL, 1, 0, 'Cwa45CNeG5E1RF2Yib8r2muxQslOUe4SNjr0osjOPNBgdY2t5MUeuFGKtDoE', 1, NULL, '2018-11-19 05:31:44', '2018-12-14 00:24:41', NULL), (17, 'Tom', 'Keane', '<EMAIL>', <PASSWORD>', 1, NULL, 1, 0, '5gBFbEFQxGgSeb8rBcroR2FJiXL1zLpW5fNpSbGQgmBQh13PrpWHbSqu4qxA', 2, NULL, '2018-11-19 07:45:05', '2018-11-20 10:27:53', NULL), (18, 'Mark', 'Set', '<EMAIL>', <PASSWORD>', 1, NULL, 1, 0, 'EDe9cN8WdG2e9gX1lQYsQOf0CykRr3e5KHzhjsuf9eVyXMxHcJOOiRVXoEFv', 2, NULL, '2018-11-27 03:19:21', '2018-12-04 08:31:26', NULL), (19, 'Sahil', 'Dutt', 'sahil.<EMAIL>', '$2y$10$iQRk4W8HYx95ryOpW39hFegtB32esfZEjpyJkwxvKvjFO5zWbCJp2', 1, NULL, 1, 0, '0Uw0Z4UHl9yUmLKsIAhtCWypvaz785rTNO3fcysqo4DU0EqXCxabit8wT0Zt', 1, NULL, '2018-12-04 03:43:03', '2018-12-04 03:43:03', NULL), (20, 'test_client', 'test_client', '<EMAIL>', '$2y$10$iQRk4W8HYx95ryOpW39hFegtB32esfZEjpyJkwxvKvjFO5zWbCJp2', 1, NULL, 1, 0, NULL, 1, NULL, '2018-12-14 00:23:21', '2018-12-14 00:26:54', '2018-12-14 00:26:54'), (22, 'john', 'carter', '<EMAIL>', '$2y$10$iQRk4W8HYx95ryOpW39hFegtB32esfZEjpyJkwxvKvjFO5zWbCJp2', 1, NULL, 1, 0, 'as5Wz28mXIPtrlTnqI0AITsj6gJj6xH41pgceBwDuIQqwjoyqYJtMbPC6Ekv', 1, NULL, '2019-01-17 02:29:39', '2019-01-21 04:32:03', NULL); -- -- Indexes for dumped tables -- -- -- Indexes for table `behaviour` -- ALTER TABLE `behaviour` ADD PRIMARY KEY (`id`), ADD KEY `question_type_id_foreing` (`question_type_id`); -- -- Indexes for table `behaviour_scale` -- ALTER TABLE `behaviour_scale` ADD PRIMARY KEY (`id`), ADD KEY `behaviour_id_foreing` (`behaviour_id`); -- -- Indexes for table `blogs` -- ALTER TABLE `blogs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `blog_categories` -- ALTER TABLE `blog_categories` ADD PRIMARY KEY (`id`); -- -- Indexes for table `blog_map_categories` -- ALTER TABLE `blog_map_categories` ADD PRIMARY KEY (`id`), ADD KEY `blog_map_categories_blog_id_index` (`blog_id`), ADD KEY `blog_map_categories_category_id_index` (`category_id`); -- -- Indexes for table `blog_map_tags` -- ALTER TABLE `blog_map_tags` ADD PRIMARY KEY (`id`), ADD KEY `blog_map_tags_blog_id_index` (`blog_id`), ADD KEY `blog_map_tags_tag_id_index` (`tag_id`); -- -- Indexes for table `blog_tags` -- ALTER TABLE `blog_tags` ADD PRIMARY KEY (`id`); -- -- Indexes for table `clients` -- ALTER TABLE `clients` ADD PRIMARY KEY (`id`), ADD KEY `clients_user_id_foreign` (`user_id`); -- -- Indexes for table `client_intervention` -- ALTER TABLE `client_intervention` ADD PRIMARY KEY (`id`), ADD KEY `client_id_foreing` (`client_id`), ADD KEY `intervention_type_foreing` (`intervention_type`); -- -- Indexes for table `client_knowledge` -- ALTER TABLE `client_knowledge` ADD PRIMARY KEY (`id`), ADD KEY `clients_id_foreign` (`client_id`), ADD KEY `knowledge_bases_id_foreign` (`knowledge_bases_id`); -- -- Indexes for table `clinicalservices_details` -- ALTER TABLE `clinicalservices_details` ADD PRIMARY KEY (`id`), ADD KEY `clients_id_foreign` (`client_id`), ADD KEY `clinical_service_id_foreign` (`clinical_service_id`); -- -- Indexes for table `custom_question` -- ALTER TABLE `custom_question` ADD PRIMARY KEY (`id`), ADD KEY `clients_id_foreign` (`client_id`), ADD KEY `users_id_foreign` (`created_by`); -- -- Indexes for table `email_templates` -- ALTER TABLE `email_templates` ADD PRIMARY KEY (`id`), ADD KEY `email_templates_type_id_index` (`type_id`); -- -- Indexes for table `email_template_placeholders` -- ALTER TABLE `email_template_placeholders` ADD PRIMARY KEY (`id`); -- -- Indexes for table `email_template_types` -- ALTER TABLE `email_template_types` ADD PRIMARY KEY (`id`); -- -- Indexes for table `faqs` -- ALTER TABLE `faqs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `feedbacks` -- ALTER TABLE `feedbacks` ADD PRIMARY KEY (`id`), ADD KEY `clients_id_foreign` (`client_id`), ADD KEY `intervention_type_id_foreing` (`intervention_type`); -- -- Indexes for table `history` -- ALTER TABLE `history` ADD PRIMARY KEY (`id`), ADD KEY `history_type_id_foreign` (`type_id`), ADD KEY `history_user_id_foreign` (`user_id`); -- -- Indexes for table `history_types` -- ALTER TABLE `history_types` ADD PRIMARY KEY (`id`); -- -- Indexes for table `interventions_type` -- ALTER TABLE `interventions_type` ADD PRIMARY KEY (`id`); -- -- Indexes for table `knowledge_bases` -- ALTER TABLE `knowledge_bases` ADD PRIMARY KEY (`id`), ADD KEY `knowledge_bases_created_by_index` (`created_by`); -- -- Indexes for table `managesessions` -- ALTER TABLE `managesessions` ADD PRIMARY KEY (`id`), ADD KEY `clients_id_foreign` (`client_id`), ADD KEY `question_type_id_foreign` (`question_type_id`), ADD KEY `users_id_foreign` (`created_by`), ADD KEY `update_users_id_foreign` (`updated_by`), ADD KEY `intervention_type_id_foreing` (`intervention_type`); -- -- Indexes for table `menus` -- ALTER TABLE `menus` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `modules` -- ALTER TABLE `modules` ADD PRIMARY KEY (`id`); -- -- Indexes for table `notifications` -- ALTER TABLE `notifications` ADD PRIMARY KEY (`id`), ADD KEY `notifications_user_id_foreign` (`user_id`); -- -- Indexes for table `pages` -- ALTER TABLE `pages` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `pages_page_slug_unique` (`page_slug`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `permissions` -- ALTER TABLE `permissions` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `permissions_name_unique` (`name`); -- -- Indexes for table `permission_role` -- ALTER TABLE `permission_role` ADD PRIMARY KEY (`id`), ADD KEY `permission_role_permission_id_foreign` (`permission_id`), ADD KEY `permission_role_role_id_foreign` (`role_id`); -- -- Indexes for table `permission_user` -- ALTER TABLE `permission_user` ADD PRIMARY KEY (`id`), ADD KEY `permission_user_permission_id_foreign` (`permission_id`), ADD KEY `permission_user_user_id_foreign` (`user_id`); -- -- Indexes for table `psycological_types` -- ALTER TABLE `psycological_types` ADD PRIMARY KEY (`id`), ADD KEY `psycological_types_created_by_foreign` (`created_by`), ADD KEY `psycological_types_updated_by_foreign` (`updated_by`); -- -- Indexes for table `questions` -- ALTER TABLE `questions` ADD PRIMARY KEY (`id`), ADD KEY `behaviour_id_foreing` (`behaviour_id`); -- -- Indexes for table `questiontypes` -- ALTER TABLE `questiontypes` ADD PRIMARY KEY (`id`); -- -- Indexes for table `question_option` -- ALTER TABLE `question_option` ADD PRIMARY KEY (`id`), ADD KEY `question_id_foreign` (`question_id`); -- -- Indexes for table `question_submit` -- ALTER TABLE `question_submit` ADD PRIMARY KEY (`id`), ADD KEY `manage_session_id_foreign` (`manage_session_id`), ADD KEY `question_id_foreing` (`question_id`), ADD KEY `option_id_foreign` (`option_id`), ADD KEY `question_submit_created_by_index` (`created_by`); -- -- Indexes for table `question_type` -- ALTER TABLE `question_type` ADD PRIMARY KEY (`id`); -- -- Indexes for table `reports` -- ALTER TABLE `reports` ADD PRIMARY KEY (`id`); -- -- Indexes for table `roles` -- ALTER TABLE `roles` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `roles_name_unique` (`name`); -- -- Indexes for table `role_user` -- ALTER TABLE `role_user` ADD PRIMARY KEY (`id`), ADD KEY `role_user_user_id_foreign` (`user_id`), ADD KEY `role_user_role_id_foreign` (`role_id`); -- -- Indexes for table `services` -- ALTER TABLE `services` ADD PRIMARY KEY (`id`), ADD KEY `services_created_by_foreign` (`created_by`), ADD KEY `services_updated_by_foreign` (`updated_by`); -- -- Indexes for table `sessions` -- ALTER TABLE `sessions` ADD UNIQUE KEY `sessions_id_unique` (`id`); -- -- Indexes for table `settings` -- ALTER TABLE `settings` ADD PRIMARY KEY (`id`); -- -- Indexes for table `social_logins` -- ALTER TABLE `social_logins` ADD PRIMARY KEY (`id`), ADD KEY `social_logins_user_id_foreign` (`user_id`); -- -- Indexes for table `subjective_question_save` -- ALTER TABLE `subjective_question_save` ADD PRIMARY KEY (`id`), ADD KEY `manage_session_id_foreign` (`manage_session_id`), ADD KEY `question_id_foreing` (`question_id`), ADD KEY `subjective_question_save_created_by_index` (`created_by`); -- -- Indexes for table `testimonials` -- ALTER TABLE `testimonials` ADD PRIMARY KEY (`id`), ADD KEY `clients_id_foreign` (`client_id`), ADD KEY `intervention_type_id_foreing` (`intervention_type`); -- -- 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 `behaviour` -- ALTER TABLE `behaviour` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19; -- -- AUTO_INCREMENT for table `behaviour_scale` -- ALTER TABLE `behaviour_scale` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49; -- -- AUTO_INCREMENT for table `blogs` -- ALTER TABLE `blogs` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `blog_categories` -- ALTER TABLE `blog_categories` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `blog_map_categories` -- ALTER TABLE `blog_map_categories` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `blog_map_tags` -- ALTER TABLE `blog_map_tags` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `blog_tags` -- ALTER TABLE `blog_tags` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `clients` -- ALTER TABLE `clients` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `client_intervention` -- ALTER TABLE `client_intervention` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary key of table', AUTO_INCREMENT=26; -- -- AUTO_INCREMENT for table `client_knowledge` -- ALTER TABLE `client_knowledge` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key of Table', AUTO_INCREMENT=20; -- -- AUTO_INCREMENT for table `clinicalservices_details` -- ALTER TABLE `clinicalservices_details` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36; -- -- AUTO_INCREMENT for table `custom_question` -- ALTER TABLE `custom_question` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45; -- -- AUTO_INCREMENT for table `email_templates` -- ALTER TABLE `email_templates` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `email_template_placeholders` -- ALTER TABLE `email_template_placeholders` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `email_template_types` -- ALTER TABLE `email_template_types` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `faqs` -- ALTER TABLE `faqs` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `feedbacks` -- ALTER TABLE `feedbacks` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `history` -- ALTER TABLE `history` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `history_types` -- ALTER TABLE `history_types` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `interventions_type` -- ALTER TABLE `interventions_type` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary key of table', AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `knowledge_bases` -- ALTER TABLE `knowledge_bases` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `managesessions` -- ALTER TABLE `managesessions` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=63; -- -- AUTO_INCREMENT for table `menus` -- ALTER TABLE `menus` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=102; -- -- AUTO_INCREMENT for table `modules` -- ALTER TABLE `modules` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `notifications` -- ALTER TABLE `notifications` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=178; -- -- AUTO_INCREMENT for table `pages` -- ALTER TABLE `pages` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `permissions` -- ALTER TABLE `permissions` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=85; -- -- AUTO_INCREMENT for table `permission_role` -- ALTER TABLE `permission_role` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=58; -- -- AUTO_INCREMENT for table `permission_user` -- ALTER TABLE `permission_user` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=294; -- -- AUTO_INCREMENT for table `psycological_types` -- ALTER TABLE `psycological_types` MODIFY `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `questions` -- ALTER TABLE `questions` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=126; -- -- AUTO_INCREMENT for table `questiontypes` -- ALTER TABLE `questiontypes` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `question_option` -- ALTER TABLE `question_option` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary key of table', AUTO_INCREMENT=467; -- -- AUTO_INCREMENT for table `question_submit` -- ALTER TABLE `question_submit` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=520; -- -- AUTO_INCREMENT for table `question_type` -- ALTER TABLE `question_type` MODIFY `id` tinyint(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `reports` -- ALTER TABLE `reports` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `roles` -- ALTER TABLE `roles` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `role_user` -- ALTER TABLE `role_user` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; -- -- AUTO_INCREMENT for table `services` -- ALTER TABLE `services` MODIFY `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `settings` -- ALTER TABLE `settings` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `social_logins` -- ALTER TABLE `social_logins` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `subjective_question_save` -- ALTER TABLE `subjective_question_save` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50; -- -- AUTO_INCREMENT for table `testimonials` -- ALTER TABLE `testimonials` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28; -- -- Constraints for dumped tables -- -- -- Constraints for table `behaviour` -- ALTER TABLE `behaviour` ADD CONSTRAINT `behaviour_question_type_id_foreign` FOREIGN KEY (`question_type_id`) REFERENCES `question_type` (`id`) ON DELETE CASCADE; -- -- Constraints for table `behaviour_scale` -- ALTER TABLE `behaviour_scale` ADD CONSTRAINT `behaviour_scale_behaviour_id_foreign` FOREIGN KEY (`behaviour_id`) REFERENCES `behaviour` (`id`) ON DELETE CASCADE; -- -- Constraints for table `clients` -- ALTER TABLE `clients` ADD CONSTRAINT `clients_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `client_intervention` -- ALTER TABLE `client_intervention` ADD CONSTRAINT `client_intervention_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`), ADD CONSTRAINT `client_intervention_intervention_type_foreign` FOREIGN KEY (`intervention_type`) REFERENCES `interventions_type` (`id`); -- -- Constraints for table `client_knowledge` -- ALTER TABLE `client_knowledge` ADD CONSTRAINT `client_knowledge_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `client_knowledge_knowledge_bases_id_foreign` FOREIGN KEY (`knowledge_bases_id`) REFERENCES `knowledge_bases` (`id`) ON DELETE CASCADE; -- -- Constraints for table `clinicalservices_details` -- ALTER TABLE `clinicalservices_details` ADD CONSTRAINT `clinicalservices_details_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `clinicalservices_details_clinical_service_id_foreign` FOREIGN KEY (`clinical_service_id`) REFERENCES `services` (`id`) ON DELETE CASCADE; -- -- Constraints for table `custom_question` -- ALTER TABLE `custom_question` ADD CONSTRAINT `custom_question_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `custom_question_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `feedbacks` -- ALTER TABLE `feedbacks` ADD CONSTRAINT `feedbacks_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `feedbacks_intervention_type_foreign` FOREIGN KEY (`intervention_type`) REFERENCES `interventions_type` (`id`) ON DELETE CASCADE; -- -- Constraints for table `history` -- ALTER TABLE `history` ADD CONSTRAINT `history_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `history_types` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `history_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `knowledge_bases` -- ALTER TABLE `knowledge_bases` ADD CONSTRAINT `knowledge_bases_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `managesessions` -- ALTER TABLE `managesessions` ADD CONSTRAINT `managesessions_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `managesessions_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `managesessions_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `notifications` -- ALTER TABLE `notifications` ADD CONSTRAINT `notifications_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `permission_role` -- ALTER TABLE `permission_role` ADD CONSTRAINT `permission_role_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `permission_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE; -- -- Constraints for table `permission_user` -- ALTER TABLE `permission_user` ADD CONSTRAINT `permission_user_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `permission_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `psycological_types` -- ALTER TABLE `psycological_types` ADD CONSTRAINT `psycological_types_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `psycological_types_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `questions` -- ALTER TABLE `questions` ADD CONSTRAINT `questions_behaviour_id_foreign` FOREIGN KEY (`behaviour_id`) REFERENCES `behaviour` (`id`) ON DELETE CASCADE; -- -- Constraints for table `question_option` -- ALTER TABLE `question_option` ADD CONSTRAINT `question_option_question_id_foreign` FOREIGN KEY (`question_id`) REFERENCES `questions` (`id`) ON DELETE CASCADE; -- -- Constraints for table `question_submit` -- ALTER TABLE `question_submit` ADD CONSTRAINT `question_submit_manage_session_id_foreign` FOREIGN KEY (`manage_session_id`) REFERENCES `managesessions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `question_submit_option_id_foreign` FOREIGN KEY (`option_id`) REFERENCES `question_option` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `question_submit_question_id_foreign` FOREIGN KEY (`question_id`) REFERENCES `questions` (`id`) ON DELETE CASCADE; -- -- Constraints for table `role_user` -- ALTER TABLE `role_user` ADD CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `role_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `services` -- ALTER TABLE `services` ADD CONSTRAINT `services_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `services_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `social_logins` -- ALTER TABLE `social_logins` ADD CONSTRAINT `social_logins_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `subjective_question_save` -- ALTER TABLE `subjective_question_save` ADD CONSTRAINT `subjective_question_save_manage_session_id_foreign` FOREIGN KEY (`manage_session_id`) REFERENCES `managesessions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subjective_question_save_question_id_foreign` FOREIGN KEY (`question_id`) REFERENCES `custom_question` (`id`) ON DELETE CASCADE; -- -- Constraints for table `testimonials` -- ALTER TABLE `testimonials` ADD CONSTRAINT `testimonials_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `testimonials_intervention_type_foreign` FOREIGN KEY (`intervention_type`) REFERENCES `interventions_type` (`id`) ON DELETE CASCADE; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 20, 2017 at 07:20 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.21 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: `ems_db` -- -- -------------------------------------------------------- -- -- Table structure for table `ems_employee` -- CREATE TABLE `ems_employee` ( `id` int(11) NOT NULL, `emp_id` varchar(100) NOT NULL, `emp_name` varchar(255) NOT NULL, `emp_bday` date NOT NULL, `emp_address` varchar(255) NOT NULL, `emp_salary` int(11) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `ems_employee` -- INSERT INTO `ems_employee` (`id`, `emp_id`, `emp_name`, `emp_bday`, `emp_address`, `emp_salary`) VALUES (1, 'EMS2017001', '<NAME>', '1994-03-20', 'Sta. Cruz', 12000), (2, 'EMS2017002', '<NAME>', '1992-07-04', 'San Fernando', 15000), (7, 'EMS2017003', '<NAME>', '2017-07-20', 'San Luis', 10000), (8, 'EMS2017004', '<NAME>', '1992-08-12', 'Magalang, Pampanga', 20000), (11, 'EMS2017005', '<NAME>', '1993-05-05', 'San Simon, Pampanga', 20000), (12, 'EMS2017006', '<NAME>', '1991-07-04', 'Angeles City, Pampanga', 25000), (13, 'EMS2017007', '<NAME>', '1989-09-21', 'asdasdda', 12000), (14, 'EMS2017008', '<NAME>', '1990-01-19', 'zxcxzcxzc', 15000), (15, 'EMS2017009', '<NAME>', '1994-03-24', 'qwewqewq', 16000), (16, 'EMS2017010', '<NAME>', '1991-07-19', 'kjjlkjlskjldkfj', 20000), (17, 'EMS2017011', '<NAME>', '1992-09-21', 'Pampanga', 25000); -- -------------------------------------------------------- -- -- Table structure for table `ems_users` -- CREATE TABLE `ems_users` ( `id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `ems_users` -- INSERT INTO `ems_users` (`id`, `name`, `username`, `password`) VALUES (1, 'Admin', 'admin', <PASSWORD>'); -- -- Indexes for dumped tables -- -- -- Indexes for table `ems_employee` -- ALTER TABLE `ems_employee` ADD PRIMARY KEY (`id`); -- -- Indexes for table `ems_users` -- ALTER TABLE `ems_users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `ems_employee` -- ALTER TABLE `ems_employee` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19; -- -- AUTO_INCREMENT for table `ems_users` -- ALTER TABLE `ems_users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
INSERT INTO public."user"(name, lastname, email, password) VALUES ('Roy', 'Gonzalez', '<EMAIL>', <PASSWORD>')
-- file:alter_table.sql ln:1614 expect:true create text search template alter1.tmpl(init = dsimple_init, lexize = dsimple_lexize)
<filename>src/test/resources/sql/drop_trigger/6cf7797f.sql<gh_stars>10-100 -- file:triggers.sql ln:787 expect:true DROP TRIGGER instead_of_insert_trig ON main_view
<reponame>Kcjohnson/SCGP<filename>sql/timing/timing_tp53_idh1_atrx.sql WITH selected_tumor_pairs AS ( SELECT * FROM analysis.silver_set ), selected_aliquots AS ( SELECT tumor_barcode_a AS aliquot_barcode, case_barcode, 'P' AS sample_type FROM selected_tumor_pairs UNION SELECT tumor_barcode_b AS aliquot_barcode, case_barcode, 'R' AS sample_type FROM selected_tumor_pairs ), selected_genes AS ( SELECT DISTINCT sn.gene_symbol, ensembl_gene_id, variant_id, chrom, pos, alt, sn.variant_classification, variant_classification_priority, protein_change FROM variants.passanno sn INNER JOIN ref.driver_genes ds ON ds.gene_symbol = sn.gene_symbol INNER JOIN ref.ensembl_gene_mapping gm ON gm.gene_symbol = sn.gene_symbol LEFT JOIN variants.variant_classifications vc ON sn.variant_classification = vc.variant_classification WHERE has_mut IS TRUE AND sn.gene_symbol IN ('IDH1','ATRX','TP53') AND ((sn.gene_symbol NOT IN ('TERT','IDH1') AND variant_classification_priority IS NOT NULL) OR (sn.gene_symbol = 'TERT' AND sn.variant_classification = 'FIVE_PRIME_FLANK' AND lower(sn.pos) IN (1295228,1295250)) OR (sn.gene_symbol = 'IDH1' AND sn.protein_change IN ('p.R132C','p.R132G','p.R132H','p.R132S'))) ), t1 AS ( SELECT pl.aliquot_barcode, sq.case_barcode, sg.variant_id, idh_codel_subtype,sample_type,gene_symbol, --protein_change, titan_ccf,pyclone_ccf, row_number() OVER (PARTITION BY pl.aliquot_barcode,gene_symbol ORDER BY pyclone_ccf DESC) AS optimal_variant --COUNT(DISTINCT gene_symbol) OVER (PARTITION BY aliquot_barcode ORDER BY gene_symbol) = 3 AS has_three_mut, --array_agg(DISTINCT(gene_symbol) OVER (PARTITION BY aliquot_barcode ORDER BY gene_symbol)) = '{"ATRX","IDH1","TP53"}' AS all_three, --rank() OVER (PARTITION BY pl.aliquot_barcode ORDER BY cellular_prevalence DESC) AS mut_order, --COUNT(*) OVER (PARTITION BY gene_symbol,idh_codel_subtype,sample_type) AS n_mut_group FROM variants.pyclone_loci pl INNER JOIN selected_genes sg ON sg.variant_id = pl.variant_id INNER JOIN selected_aliquots sq ON sq.aliquot_barcode = pl.aliquot_barcode INNER JOIN variants.passgeno pg ON pg.variant_id = pl.variant_id AND pg.aliquot_barcode = pl.aliquot_barcode INNER JOIN clinical.subtypes st ON st.case_barcode = pg.case_barcode --WHERE ssm2_pass_call ), t2 AS ( SELECT * FROM t1 WHERE optimal_variant = 1 ), t3 AS ( SELECT *, COUNT(*) OVER (PARTITION BY aliquot_barcode) AS num_genes FROM t2 ), t4 AS ( -- You can edit the number of decimals to round by to change how ties are ranked -- By rounding to two decimals, a CCF of 0.977 and 0.983 are considered identical -- And two mutations with these CCFs would be given the same rank -- If one instead rounds to three decimals, these would not be considered identical SELECT *, (RANK() OVER (PARTITION BY aliquot_barcode ORDER BY round(pyclone_ccf::decimal,2) DESC))::integer AS vrank, COUNT(*) OVER (PARTITION BY gene_symbol,sample_type) AS num_samples FROM t3 WHERE num_genes = 3 ), t5 AS ( SELECT sample_type,gene_symbol,vrank,num_samples,COUNT(*),COUNT(*)::decimal/num_samples FROM t4 GROUP BY 1,2,3,4 ORDER BY 1,2,3,4 ) --SELECT gene_symbol,idh_codel_subtype,sample_type,SUM(mut_order)/COUNT(mut_order),COUNT(mut_order) --FROM timing_snv GROUP BY 1,2,3 ORDER BY 2,3,4 --SELECT gene_symbol,idh_codel_subtype,sample_type,mut_order,n_mut_group,COUNT(mut_order)::decimal/n_mut_group --FROM timing_snv --GROUP BY 1,2,3,4,5 --ORDER BY 2,3,4 SELECT * FROM t4
SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO /* ========================================================================================================= Author: Higginbotham, Joshua Create date: 05/01/2019 Description: Removes all records from staging tables prior to Asset Scan Changes: Date Developer Notes ========================================================================================================= ========================================================================================================= ========================================================================================================= */ CREATE PROCEDURE [dbo].[Cleanup_Staging_Tables] AS BEGIN TRUNCATE TABLE stage.Server_Updates TRUNCATE TABLE stage.SQL_Database_Info TRUNCATE TABLE stage.SQL_Instance_Info TRUNCATE TABLE stage.SQL_Job_Info TRUNCATE TABLE stage.SQL_Resource_Info TRUNCATE TABLE stage.SQL_Error_Logs TRUNCATE TABLE stage.Server_Drive_Space END; GO
<filename>_src/05/com_folio_v1.1.0/admin/sql/install.mysql.utf8.sql CREATE TABLE IF NOT EXISTS `#__folio` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(250) NOT NULL DEFAULT '', `alias` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
create view cotistas as
create table professors ( prof_id int primary key, first_name varchar(100) NOT NULL, last_name varchar(100) NOT NULL, nickname varchar(100) ); insert into professors (prof_id, first_name, last_name, nickname) values (1, 'Roger', 'Smith', 'Rog'); insert into professors (prof_id, first_name, last_name, nickname) values (2, 'Frank', 'Pitt', 'Frankie'); insert into professors (prof_id, first_name, last_name, nickname) values (3, 'John', 'Depp', 'Johnny'); insert into professors (prof_id, first_name, last_name, nickname) values (4, 'Michael', 'Jackson', 'King of Pop'); insert into professors (prof_id, first_name, last_name) values (5, 'Diego', 'Gamper'); insert into professors (prof_id, first_name, last_name) values (6, 'Johann', 'Helmer'); insert into professors (prof_id, first_name, last_name) values (7, 'Barbara', 'Dodero'); insert into professors (prof_id, first_name, last_name) values (8, 'Mary', 'Poppins'); create table teaching ( course_id varchar(100) NOT NULL, prof_id int NOT NULL, foreign key (prof_id) REFERENCES professors(prof_id) ); insert into teaching (course_id, prof_id) values ('LinearAlgebra', 1); insert into teaching (course_id, prof_id) values ('DiscreteMathematics', 1); insert into teaching (course_id, prof_id) values ('AdvancedDatabases', 3); insert into teaching (course_id, prof_id) values ('ScientificWriting', 8);
<reponame>jeanfbs/cpr<gh_stars>0 -- Inserções para Funcionários INSERT INTO `funcionarios`(`cod`, `nome`, `nivel`, `login`, `senha`, `foto_url`) VALUES (null,'<NAME>',1,'jeanfbs','40bd001563085fc35165329ea1ff5c5ecbdbbeef',null); INSERT INTO `funcionarios`(`cod`, `nome`, `nivel`, `login`, `senha`, `foto_url`) VALUES (null,'<NAME>',1,'juli','40bd001563085fc35165329ea1ff5c5ecbdbbeef',null); INSERT INTO `funcionarios`(`cod`, `nome`, `nivel`, `login`, `senha`, `foto_url`) VALUES (null,'<NAME>',1,'leo123','40bd001563085fc35165329ea1ff5c5ecbdbbeef',null); INSERT INTO `funcionarios`(`cod`, `nome`, `nivel`, `login`, `senha`, `foto_url`) VALUES (null,'<NAME>',1,'bia33','40bd001563085fc35165329ea1ff5c5ecbdbbeef',null); INSERT INTO `funcionarios`(`cod`, `nome`, `nivel`, `login`, `senha`, `foto_url`) VALUES (null,'<NAME>',1,'guilherme','40bd001563085fc35165329ea1ff5c5ecbdbbeef',null); INSERT INTO `funcionarios`(`cod`, `nome`, `nivel`, `login`, `senha`, `foto_url`) VALUES (null,'<NAME>',2,'fabin','40bd001563085fc35165329ea1ff5c5ecbdbbeef',null); INSERT INTO `funcionarios`(`cod`, `nome`, `nivel`, `login`, `senha`, `foto_url`) VALUES (null,'<NAME>',2,'biel12','40bd001563085fc35165329ea1ff5c5ecbdbbeef',null); INSERT INTO `funcionarios`(`cod`, `nome`, `nivel`, `login`, `senha`, `foto_url`) VALUES (null,'<NAME>',2,'Gisele','40bd001563085fc35165329ea1ff5c5ecbdbbeef',null); INSERT INTO `funcionarios`(`cod`, `nome`, `nivel`, `login`, `senha`, `foto_url`) VALUES (null,'<NAME>',2,'briene','40bd001563085fc35165329ea1ff5c5ecbdbbeef',null); INSERT INTO `funcionarios`(`cod`, `nome`, `nivel`, `login`, `senha`, `foto_url`) VALUES (null,'<NAME>',2,'gaio','40bd001563085fc35165329ea1ff5c5ecbdbbeef',null); INSERT INTO `funcionarios`(`cod`, `nome`, `nivel`, `login`, `senha`, `foto_url`) VALUES (null,'<NAME>',3,'jeanfbs','40bd001563085fc35165329ea1ff5c5ecbdbbeef',null); INSERT INTO `funcionarios`(`cod`, `nome`, `nivel`, `login`, `senha`, `foto_url`) VALUES (null,'<NAME>',3,'Garcia','40bd001563085fc35165329ea1ff5c5ecbdbbeef',null); INSERT INTO `funcionarios`(`cod`, `nome`, `nivel`, `login`, `senha`, `foto_url`) VALUES (null,'<NAME>',3,'garnier','40bd001563085fc35165329ea1ff5c5ecbdbbeef',null); INSERT INTO `funcionarios`(`cod`, `nome`, `nivel`, `login`, `senha`, `foto_url`) VALUES (null,'<NAME>',3,'jeanfbs','40bd001563085fc35165329ea1ff5c5ecbdbbeef',null); INSERT INTO `funcionarios`(`cod`, `nome`, `nivel`, `login`, `senha`, `foto_url`) VALUES (null,'<NAME>',3,'jon','40bd001563085fc35165329ea1ff5c5ecbdbbeef',null); INSERT INTO `funcionarios`(`cod`, `nome`, `nivel`, `login`, `senha`, `foto_url`) VALUES (null,'<NAME>',3,'Harry','40bd001563085fc35165329ea1ff5c5ecbdbbeef',null); -- Iserções de Bebidas INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Guaraná Mineiro 2L',3.50,null,0); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'AquaFresh 800 ml',1.20,null,0); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Coca Cola 300 ml',2.25,null,0); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Charrua 1L',2.00,null,0); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Fanta 2L',3.00,null,0); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Fruki 800ml',3.50,null,0); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Gatorade 800 ml',1.20,null,0); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Coca Cola Zero 300 ml',2.25,null,0); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Pepsi 1L',2.00,null,0); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Sukita 2L',3.00,null,0); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Atomic 800ml',3.50,null,0); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Agua Mineral 800ml',3.50,null,0); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Mineiro 300 ml',2.25,null,0); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Coca Cola 1L',2.00,null,0); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Kuat 2L',3.00,null,0); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Sprite 800 ml',1.20,null,1); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Agua com Gás 800 ml',3.20,null,1); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Tônico 300 ml',3.25,null,1); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'H2O 600 ml',2.00,null,1); INSERT INTO `bebidas`(`cod`, `nome`, `valor`, `foto_url`, `deletada`) VALUES (null,'Burn Energético 800 ml',3.00,null,1); -- Inserções Clientes INSERT INTO `clientes` (`cod`, `login`, `senha`, `nome`, `endereco`, `telefone`, `email`, `latitude`, `longitude`, `data`, `cidade`) VALUES (1, 'jcavalcante', '40bd001563085fc35165329ea1ff5c5ecbdbbeef', '<NAME>', 'Rua das Camomilas Nº 210', '(034) 32112-8978', '<EMAIL>', 18, 11, NULL, 'Uberlandia'), (2, 'joliveira', '40bd001563085fc35165329ea1ff5c5ecbdbbeef', '<NAME>', 'Rua Doutor Freire Nº 360', '(11) 555-1165', '<EMAIL>', 13, 16, NULL, 'Uberlandia'), (3, 'coliveira', '40bd001563085fc35165329ea1ff5c5ecbdbbeef', '<NAME>', 'Rua Profº Maria Antonia Castilho Nº 2110', '(11) 12555-2531', '<EMAIL>', -28, -11, NULL, 'Uberlandia'), (4, 'msantos', '40bd001563085fc35165329ea1ff5c5ecbdbbeef', '<NAME>', 'Rua Bahia Nº 89', '(11) 12555-2531', '<EMAIL>', -15, 56, NULL, 'Uberlandia'), (5, 'asilva', '40bd001563085fc35165329ea1ff5c5ecbdbbeef', '<NAME>', 'Rua Tamoios Nº 1213', '(11) 555-2023', '<EMAIL>', 24, 27, NULL, 'Uberlandia'), (6, 'tsilva', '40bd001563085fc35165329ea1ff5c5ecbdbbeef', '<NAME>', 'Rua Eduardo Marques Nº 1212', '(11) 12555-2531', '<EMAIL>', -28, -15, NULL, 'Uberlandia'), (7, 'rcavalcante', '40bd001563085fc35165329ea1ff5c5ecbdbbeef', '<NAME>', 'Rua dos Eucaliptos Nº 1212', '(11) 12555-2531', '<EMAIL>', 0, 0, NULL, 'Uberlandia'), (8, 'rsilva', '40bd001563085fc35165329ea1ff5c5ecbdbbeef', '<NAME>', 'Rua dos Eucaliptos Nº 1212', '(11) 12555-2531', '<EMAIL>', -12, 6.45, '2016-01-03', 'Uberlandia'), (9, 'mpereira', '40bd001563085fc35165329ea1ff5c5ecbdbbeef', '<NAME>', 'Rua dos Eucaliptos Nº 1212', '(11) 12555-2531', '<EMAIL>', -18, 29.44, '2016-01-24', 'Uberlandia'), (10, 'asouza', '40bd001563085fc35165329ea1ff5c5ecbdbbeef', '<NAME>', 'Rua dos Eucaliptos Nº 1212', '(11) 12555-2531', '<EMAIL>', 12.56, 10.7654, '2016-01-11', 'Uberlandia'), (11, NULL, NULL, '<NAME>', '<NAME>ques Nº 1212', '(11) 12555-2531', NULL, 0, 0, '2016-01-21', 'Uberlandia'), (12, NULL, NULL, '<NAME>', 'Rua Eduardo Marques Nº 1212', '(11) 12555-2531', NULL, 0, 0, '2016-02-19', 'Uberlandia'), (13, NULL, NULL, '<NAME>', 'Rua Eduardo Marques Nº 1212', '(11) 12555-2531', NULL, 0, 0, '2016-02-27', 'Uberlandia'), (14, NULL, NULL, '<NAME>', 'Rua Eduardo Marques Nº 1212', '(11) 12555-2531', NULL, 0, 0, '2016-02-24', 'Uberlandia'), (15, NULL, NULL, '<NAME>', 'Rua Eduardo Marques Nº 1212', '(11) 12555-2531', NULL, 0, 0, '2015-07-08', 'Uberlandia'); -- Inserções de Produtos INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Arroz Branco',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Espaguete',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Gravatinha',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Penne',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'nhoque',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'raviolli',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'panqueca',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'frango',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'carne de vaca',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'carne de porco',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Feijão',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Tomate',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Alface',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Cebola',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Bacon',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Calabresa',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Alho',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Presunto',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Azeitona Verde',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Ervilha',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Milho',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Brócolis',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Tomate Seco',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Alcaparra',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Uva Passa',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Salsa',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Orégano',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Pimenta Calabresa',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Manjericão',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Óleo 1L',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Queijo',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Leite',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Ovos',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Batata Palha',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Molho Bolonhesa',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Molho ao Sugo',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Molho Branco',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Molho 4 Queijos',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Molho Alho e Óleo',0); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Ketchup',1); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Batata',1); INSERT INTO `produtos`(`cod`, `nome`, `deletada`) VALUES (null,'Estrato de Tomate',1); -- Inserções de Categorias de Adicionais INSERT INTO `categorias`(`cod`, `nome`, `deletada`) VALUES (null,'Molho',0); INSERT INTO `categorias`(`cod`, `nome`, `deletada`) VALUES (null,'Guarnições',0); INSERT INTO `categorias`(`cod`, `nome`, `deletada`) VALUES (null,'Temperos Secos',0); INSERT INTO `categorias`(`cod`, `nome`, `deletada`) VALUES (null,'temperos Picantes',0); INSERT INTO `categorias`(`cod`, `nome`, `deletada`) VALUES (null,'Categoria 1',0); INSERT INTO `categorias`(`cod`, `nome`, `deletada`) VALUES (null,'Categoria 2',0); INSERT INTO `categorias`(`cod`, `nome`, `deletada`) VALUES (null,'Categoria 3',0); INSERT INTO `categorias`(`cod`, `nome`, `deletada`) VALUES (null,'Categoria 4',0); INSERT INTO `categorias`(`cod`, `nome`, `deletada`) VALUES (null,'Categoria 5',0); INSERT INTO `categorias`(`cod`, `nome`, `deletada`) VALUES (null,'Categoria 6',0); INSERT INTO `categorias`(`cod`, `nome`, `deletada`) VALUES (null,'Categoria 7',0); INSERT INTO `categorias`(`cod`, `nome`, `deletada`) VALUES (null,'Árabe',1); INSERT INTO `categorias`(`cod`, `nome`, `deletada`) VALUES (null,'italiano',1); -- Inserções de Adicionais INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,35,1); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,36,1); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,37,1); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,38,1); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,39,1); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,11,2); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,12,2); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,13,2); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,14,2); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,15,2); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,16,2); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,17,2); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,18,2); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,19,2); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,20,2); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,21,3); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,22,3); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,23,3); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,24,3); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,27,4); INSERT INTO `adicionais`(`cod`, `cod_produto`, `cod_categoria`) VALUES (null,28,4); -- Inserções de Tipo Prato INSERT INTO `tipo_prato`(`cod`, `nome`, `foto_url`, `deletada`) VALUES (null,'Massa Comum',null,0); INSERT INTO `tipo_prato`(`cod`, `nome`, `foto_url`, `deletada`) VALUES (null,'Massa Fresca',null,0); INSERT INTO `tipo_prato`(`cod`, `nome`, `foto_url`, `deletada`) VALUES (null,'Mexidão',null,0); INSERT INTO `tipo_prato`(`cod`, `nome`, `foto_url`, `deletada`) VALUES (null,'Panqueca',null,0); INSERT INTO `tipo_prato`(`cod`, `nome`, `foto_url`, `deletada`) VALUES (null,'Bife à Parmegiana',null,0); INSERT INTO `tipo_prato`(`cod`, `nome`, `foto_url`, `deletada`) VALUES (null,'Strogonoff',null,0); INSERT INTO `tipo_prato`(`cod`, `nome`, `foto_url`, `deletada`) VALUES (null,'Pizza',null,0); INSERT INTO `tipo_prato`(`cod`, `nome`, `foto_url`, `deletada`) VALUES (null,'Massa Doce',null,0); INSERT INTO `tipo_prato`(`cod`, `nome`, `foto_url`, `deletada`) VALUES (null,'Jantinha',null,0); INSERT INTO `tipo_prato`(`cod`, `nome`, `foto_url`, `deletada`) VALUES (null,'Churrasco',null,0); -- Inserções de Variedades INSERT INTO `variedades`(`cod`, `nome`, `deletada`) VALUES (null,'Espaguete',0); INSERT INTO `variedades`(`cod`, `nome`, `deletada`) VALUES (null,'Gravatinha',0); INSERT INTO `variedades`(`cod`, `nome`, `deletada`) VALUES (null,'Penne',0); INSERT INTO `variedades`(`cod`, `nome`, `deletada`) VALUES (null,'nhoque',0); INSERT INTO `variedades`(`cod`, `nome`, `deletada`) VALUES (null,'raviolli',0); INSERT INTO `variedades`(`cod`, `nome`, `deletada`) VALUES (null,'panqueca',0); -- Inserções de Pratos INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '1', 'Prato Comum 1 Grande', '15', 'teste aksldjf askfj aslk fjas klfjalskj flkasj fkjasdfk jaskj flkajsl fjalskjf lkasj fklajsd kfljaskl fjasklj fklasj fkljas ', '0', NULL); INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '1', 'Prato Comum 2', '16', 'teste aksldjf askfj aslk fjas klfjalskj flkasj fkjasdfk jaskj flkajsl fjalskjf lkasj fklajsd kfljaskl fjasklj fklasj fkljas ', '0', NULL); INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '1', 'Prato Comum 3 Grande', '17', 'teste aksldjf askfj aslk fjas klfjalskj flkasj fkjasdfk jaskj flkajsl fjalskjf lkasj fklajsd kfljaskl fjasklj fklasj fkljas ', '0', NULL); INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '1', 'Prato Comum 4', '18', 'teste aksldjf askfj aslk fjas klfjalskj flkasj fkjasdfk jaskj flkajsl fjalskjf lkasj fklajsd kfljaskl fjasklj fklasj fkljas ', '0', NULL); INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '1', 'Prato Comum 5 Grande', '15', 'teste aksldjf askfj aslk fjas klfjalskj flkasj fkjasdfk jaskj flkajsl fjalskjf lkasj fklajsd kfljaskl fjasklj fklasj fkljas ', '0', NULL); INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '1', 'Prato Comum 6', '6', 'teste aksldjf askfj aslk fjas klfjalskj flkasj fkjasdfk jaskj flkajsl fjalskjf lkasj fklajsd kfljaskl fjasklj fklasj fkljas ', '1', NULL); INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '2', 'Prato Fresco 1 Pequeno', '12.55', 'aksldjf asdklfj jfdsakl lksajdf jsald', '0', NULL); INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '2', 'Prato Fresco 2 Grande', '11.55', 'aksldjf asdklfj jfdsakl lksajdf jsald', '0', NULL); INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '2', 'Prato Fresco 3', '10.55', 'aksldjf asdklfj jfdsakl lksajdf jsald', '0', NULL); INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '2', 'Prato Fresco 4 Grande', '9.55', 'aksldjf asdklfj jfdsakl lksajdf jsald', '0', NULL); INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '2', 'Prato Fresco 5 Pequeno', '8.55', 'aksldjf asdklfj jfdsakl lksajdf jsald', '0', NULL); INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '2', 'Prato Fresco 6 Grande', '15.55', 'aksldjf asdklfj jfdsakl lksajdf jsald', '1', NULL); INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '2', 'Prato Fresco 7 Pequeno', '5.55', 'aksldjf asdklfj jfdsakl lksajdf jsald', '1', NULL); INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '3', 'Big Mexidão ', '20.50', 'Muito gostoso esse mexidão', '0', NULL); INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '4', 'Panqueca de Carne', '12', NULL, '0', NULL); INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '4', 'Panqueca de Frango', '12', NULL, '0', NULL); INSERT INTO `cprdb`.`pratos` (`cod`, `cod_tipo_prato`, `nome`, `valor`, `descricao`, `deletada`, `foto_url`) VALUES (NULL, '4', 'Panqueca de Peixe', '12', NULL, '0', NULL); -- Inserções de Prato Categorias INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('1', '2', '-1'); INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('3', '2', '1'); INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('5', '2', '2'); INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('7', '2', '3'); INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('9', '2', '-1'); INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('11', '2', '1'); INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('13', '2', '2'); INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('15', '2', '3'); INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('17', '2', '-1'); INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('2', '1', '1'); INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('4', '1', '1'); INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('6', '1', '2'); INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('8', '1', '1'); INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('10', '1', '1'); INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('12', '1', '2'); INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('14', '1', '1'); INSERT INTO `cprdb`.`prato_categoria` (`cod_prato`, `cod_categoria`, `limite`) VALUES ('16', '1', '1'); -- Inserções para Prato Variedades INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('1', '1'); INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('1', '2'); INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('1', '3'); INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('2', '1'); INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('2', '2'); INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('3', '3'); INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('4', '1'); INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('4', '2'); INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('4', '3'); INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('5', '1'); INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('5', '2'); INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('6', '4'); INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('6', '5'); INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('6', '6'); INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('7', '4'); INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('7', '5'); INSERT INTO `cprdb`.`prato_variedade` (`cod_prato`, `cod_variedade`) VALUES ('8', '6'); INSERT INTO `cprdb`.`comentarios` (`cod`, `cod_cliente`, `tipo`, `horario`, `data`, `mensagem`, `status`) VALUES (NULL, '1', '1', '09:30:31', '2016-02-04', 'lsdjf asklfj askdfj lkasdjf akslfj lkasfj lkasdjf aks jflaskdfj alsk fjsalk fjaslk fjasldkfj lkasjd flkjasdlkf jaslkdjf ', '1'); INSERT INTO `cprdb`.`comentarios` (`cod`, `cod_cliente`, `tipo`, `horario`, `data`, `mensagem`, `status`) VALUES (NULL, '1', '1', '09:30:31', '2016-02-04', 'lsdjf asklfj askdfj lkasdjf akslfj lkasfj lkasdjf aks jflaskdfj alsk fjsalk fjaslk fjasldkfj lkasjd flkjasdlkf jaslkdjf ', '2'); INSERT INTO `cprdb`.`comentarios` (`cod`, `cod_cliente`, `tipo`, `horario`, `data`, `mensagem`, `status`) VALUES (NULL, '1', '1', '09:30:31', '2016-02-04', 'lsdjf asklfj askdfj lkasdjf akslfj lkasfj lkasdjf aks jflaskdfj alsk fjsalk fjaslk fjasldkfj lkasjd flkjasdlkf jaslkdjf ', '1'); INSERT INTO `cprdb`.`comentarios` (`cod`, `cod_cliente`, `tipo`, `horario`, `data`, `mensagem`, `status`) VALUES (NULL, '1', '2', '09:30:31', '2016-02-04', 'lsdjf asklfj askdfj lkasdjf akslfj lkasfj lkasdjf aks jflaskdfj alsk fjsalk fjaslk fjasldkfj lkasjd flkjasdlkf jaslkdjf ', '2'); INSERT INTO `cprdb`.`comentarios` (`cod`, `cod_cliente`, `tipo`, `horario`, `data`, `mensagem`, `status`) VALUES (NULL, '1', '3', '09:30:31', '2016-02-04', 'lsdjf asklfj askdfj lkasdjf akslfj lkasfj lkasdjf aks jflaskdfj alsk fjsalk fjaslk fjasldkfj lkasjd flkjasdlkf jaslkdjf ', '1'); INSERT INTO `cprdb`.`comentarios` (`cod`, `cod_cliente`, `tipo`, `horario`, `data`, `mensagem`, `status`) VALUES (NULL, '1', '2', '09:30:31', '2016-02-04', 'lsdjf asklfj askdfj lkasdjf akslfj lkasfj lkasdjf aks jflaskdfj alsk fjsalk fjaslk fjasldkfj lkasjd flkjasdlkf jaslkdjf ', '2'); INSERT INTO `cprdb`.`comentarios` (`cod`, `cod_cliente`, `tipo`, `horario`, `data`, `mensagem`, `status`) VALUES (NULL, '1', '2', '09:30:31', '2016-02-04', 'lsdjf asklfj askdfj lkasdjf akslfj lkasfj lkasdjf aks jflaskdfj alsk fjsalk fjaslk fjasldkfj lkasjd flkjasdlkf jaslkdjf ', '1'); INSERT INTO `cprdb`.`comentarios` (`cod`, `cod_cliente`, `tipo`, `horario`, `data`, `mensagem`, `status`) VALUES (NULL, '2', '2', '09:30:31', '2016-02-04', 'lsdjf asklfj askdfj lkasdjf akslfj lkasfj lkasdjf aks jflaskdfj alsk fjsalk fjaslk fjasldkfj lkasjd flkjasdlkf jaslkdjf ', '2'); INSERT INTO `cprdb`.`comentarios` (`cod`, `cod_cliente`, `tipo`, `horario`, `data`, `mensagem`, `status`) VALUES (NULL, '2', '1', '09:30:31', '2016-02-04', 'lsdjf asklfj askdfj lkasdjf akslfj lkasfj lkasdjf aks jflaskdfj alsk fjsalk fjaslk fjasldkfj lkasjd flkjasdlkf jaslkdjf ', '1'); INSERT INTO `cprdb`.`comentarios` (`cod`, `cod_cliente`, `tipo`, `horario`, `data`, `mensagem`, `status`) VALUES (NULL, '2', '3', '09:30:31', '2016-02-04', 'lsdjf asklfj askdfj lkasdjf akslfj lkasfj lkasdjf aks jflaskdfj alsk fjsalk fjaslk fjasldkfj lkasjd flkjasdlkf jaslkdjf ', '1'); INSERT INTO `cprdb`.`comentarios` (`cod`, `cod_cliente`, `tipo`, `horario`, `data`, `mensagem`, `status`) VALUES (NULL, '2', '3', '09:30:31', '2016-02-04', 'lsdjf asklfj askdfj lkasdjf akslfj lkasfj lkasdjf aks jflaskdfj alsk fjsalk fjaslk fjasldkfj lkasjd flkjasdlkf jaslkdjf ', '2'); INSERT INTO `cprdb`.`comentarios` (`cod`, `cod_cliente`, `tipo`, `horario`, `data`, `mensagem`, `status`) VALUES (NULL, '2', '2', '09:30:31', '2016-02-04', 'lsdjf asklfj askdfj lkasdjf akslfj lkasfj lkasdjf aks jflaskdfj alsk fjsalk fjaslk fjasldkfj lkasjd flkjasdlkf jaslkdjf ', '2');
<filename>migrations/migrations/2018-10-21-083517_create_token/up.sql -- Your SQL goes here CREATE TABLE `token` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `plain_text` varchar(64) NOT NULL DEFAULT '', `hash_data` varchar(128) NOT NULL DEFAULT '', `trusty` tinyint(4) unsigned NOT NULL DEFAULT '0', `trusty_at` timestamp NOT NULL DEFAULT '1970-01-01 00:00:01', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `is_deleted` tinyint(4) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `uk_plain_text` (`plain_text`), KEY `idx_updated_at` (`updated_at`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
<reponame>tillkuhn/kotlin-angular INSERT INTO public.link (link_url, name, media_type) VALUES ('https://www.youtube.com/watch?v=123455','some video','VIDEO'); INSERT INTO public.link (link_url, name, media_type) VALUES ('https://hasen.com/hase.pdf','hase PDF Info','PDF');
-- store procedure delimiter $$ drop procedure IF EXISTS create_programme$$ -- TODO create procedure create_programme ( _name varchar(100), _web_path varchar(100), _year int, _edition_number int, _number_of_days int, _place_web_path varchar(100), _place_name varchar(100), _is_active tinyint ) begin set @location_id = null; select id into @location_id from gs_location where PLACE_WEB_PATH = _place_web_path; IF(@location_id is null) THEN SIGNAL SQLSTATE '50000' SET MESSAGE_TEXT = 'Location not found '; END IF; INSERT INTO `GS_PROGRAM` (`EDITION_NUMBER`, `YEAR`, `NAME`, `WEB_PATH`, `GS_TIME_UNIT_TYPE_ID`, `TOTAL_TIME_LENGTH`, `GS_LOCATION_ID`, `IS_ACTIVE`) VALUES (_edition_number, _year, _name, _web_path, 1, _number_of_days, @location_id, _is_active); end$$ delimiter ;
--INFO: Entity is in persisted state INSERT INTO Person (name, id) VALUES ('<NAME>', 1)
<reponame>andreylipattsev/almanac.httparchive.org #standardSQL # Pages that request DNT status (based on Blink features) SELECT DISTINCT client, feature, num_urls, total_urls, pct_urls FROM `httparchive.blink_features.usage` WHERE yyyymmdd = '20210701' AND feature = 'NavigatorDoNotTrack' ORDER BY feature, client # relevant Blink features: # DNT: NavigatorDoNotTrack
<filename>src/main/sql/upgrades/0.7.1-postgresql.sql delete from extra_prop_entry where name_space = 'http://www.uio.no/vrtx/__vrtx/ns/structured-resources' and name = 'employees'; delete from extra_prop_entry where name_space = 'http://www.uio.no/scientific' and name = 'disciplines';
TRUNCATE `category`;
EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2017-09-30',@EPS = N'0.13',@EPSDeduct = N'0',@Revenue = N'9.61亿',@RevenueYoy = N'7.45',@RevenueQoq = N'0.58',@Profit = N'1.23亿',@ProfitYoy = N'70.63',@ProfiltQoq = N'27.62',@NAVPerUnit = N'1.9290',@ROE = N'6.81',@CashPerUnit = N'0.2319',@GrossProfitRate = N'22.21',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-21' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2017-06-30',@EPS = N'0.07',@EPSDeduct = N'0.07',@Revenue = N'6.09亿',@RevenueYoy = N'14.33',@RevenueQoq = N'35.10',@Profit = N'6681.90万',@ProfitYoy = N'120.25',@ProfiltQoq = N'98.12',@NAVPerUnit = N'1.8698',@ROE = N'3.72',@CashPerUnit = N'0.0944',@GrossProfitRate = N'21.57',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-08-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2017-03-31',@EPS = N'0.05',@EPSDeduct = N'0',@Revenue = N'2.59亿',@RevenueYoy = N'18.59',@RevenueQoq = N'-26.92',@Profit = N'2241.34万',@ProfitYoy = N'652.06',@ProfiltQoq = N'37.23',@NAVPerUnit = N'3.7471',@ROE = N'1.26',@CashPerUnit = N'-0.0663',@GrossProfitRate = N'19.47',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-29' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2016-12-31',@EPS = N'0.19',@EPSDeduct = N'0.15',@Revenue = N'12.49亿',@RevenueYoy = N'8.03',@RevenueQoq = N'-1.99',@Profit = N'8870.36万',@ProfitYoy = N'64.42',@ProfiltQoq = N'-61.14',@NAVPerUnit = N'3.7807',@ROE = N'5.10',@CashPerUnit = N'0.5102',@GrossProfitRate = N'21.19',@Distribution = N'10转10派1',@DividenRate = N'1.84',@AnnounceDate = N'2017-03-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2016-06-30',@EPS = N'0.03',@EPSDeduct = N'0.03',@Revenue = N'5.33亿',@RevenueYoy = N'5.49',@RevenueQoq = N'43.86',@Profit = N'3033.80万',@ProfitYoy = N'-21.83',@ProfiltQoq = N'817.97',@NAVPerUnit = N'3.6558',@ROE = N'1.76',@CashPerUnit = N'0.2360',@GrossProfitRate = N'19.02',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-08-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2016-03-31',@EPS = N'0.0064',@EPSDeduct = N'0',@Revenue = N'2.18亿',@RevenueYoy = N'27.94',@RevenueQoq = N'-34.56',@Profit = N'298.02万',@ProfitYoy = N'-24.10',@ProfiltQoq = N'-27.11',@NAVPerUnit = N'3.6698',@ROE = N'0.17',@CashPerUnit = N'-0.0065',@GrossProfitRate = N'15.98',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-29' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2016-09-30',@EPS = N'0.08',@EPSDeduct = N'0',@Revenue = N'8.95亿',@RevenueYoy = N'8.77',@RevenueQoq = N'15.10',@Profit = N'7237.15万',@ProfitYoy = N'45.14',@ProfiltQoq = N'53.64',@NAVPerUnit = N'3.7455',@ROE = N'4.16',@CashPerUnit = N'0.3829',@GrossProfitRate = N'20.77',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-21' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2015-06-30',@EPS = N'0.08',@EPSDeduct = N'0.07',@Revenue = N'5.05亿',@RevenueYoy = N'-8.29',@RevenueQoq = N'95.75',@Profit = N'3880.97万',@ProfitYoy = N'-31.34',@ProfiltQoq = N'788.37',@NAVPerUnit = N'3.6310',@ROE = N'2.27',@CashPerUnit = N'0.1303',@GrossProfitRate = N'20.55',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2016-08-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2015-03-31',@EPS = N'0.01',@EPSDeduct = N'0',@Revenue = N'1.71亿',@RevenueYoy = N'-10.99',@RevenueQoq = N'-47.62',@Profit = N'392.67万',@ProfitYoy = N'-70.83',@ProfiltQoq = N'-70.21',@NAVPerUnit = N'2.0790',@ROE = N'0.23',@CashPerUnit = N'-0.1497',@GrossProfitRate = N'19.00',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-04-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2014-12-31',@EPS = N'0.18',@EPSDeduct = N'0.18',@Revenue = N'11.99亿',@RevenueYoy = N'32.81',@RevenueQoq = N'0.99',@Profit = N'8344.39万',@ProfitYoy = N'-7.99',@ProfiltQoq = N'-4.01',@NAVPerUnit = N'3.6083',@ROE = N'5.02',@CashPerUnit = N'0.2341',@GrossProfitRate = N'16.44',@Distribution = N'10派0.6',@DividenRate = N'0.57',@AnnounceDate = N'2016-03-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2014-06-30',@EPS = N'0.12',@EPSDeduct = N'0.12',@Revenue = N'5.51亿',@RevenueYoy = N'43.70',@RevenueQoq = N'87.02',@Profit = N'5652.68万',@ProfitYoy = N'24.10',@ProfiltQoq = N'219.91',@NAVPerUnit = N'3.5599',@ROE = N'3.40',@CashPerUnit = N'0.1193',@GrossProfitRate = N'18.80',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2015-08-26' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2014-03-31',@EPS = N'0.03',@EPSDeduct = N'0',@Revenue = N'1.92亿',@RevenueYoy = N'20.99',@RevenueQoq = N'-33.00',@Profit = N'1346.18万',@ProfitYoy = N'197.38',@ProfiltQoq = N'-45.47',@NAVPerUnit = N'3.5281',@ROE = N'0.82',@CashPerUnit = N'-0.1931',@GrossProfitRate = N'18.37',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-04-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2013-12-31',@EPS = N'0.19',@EPSDeduct = N'0.17',@Revenue = N'9.03亿',@RevenueYoy = N'5.34',@RevenueQoq = N'22.59',@Profit = N'9069.23万',@ProfitYoy = N'29.06',@ProfiltQoq = N'20.70',@NAVPerUnit = N'3.4903',@ROE = N'5.66',@CashPerUnit = N'0.1412',@GrossProfitRate = N'16.72',@Distribution = N'10派0.6',@DividenRate = N'0.89',@AnnounceDate = N'2015-03-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2013-09-30',@EPS = N'0.14',@EPSDeduct = N'0',@Revenue = N'6.17亿',@RevenueYoy = N'-0.69',@RevenueQoq = N'3.99',@Profit = N'6600.39万',@ProfitYoy = N'14.78',@ProfiltQoq = N'-50.14',@NAVPerUnit = N'3.4377',@ROE = N'4.15',@CashPerUnit = N'0.0938',@GrossProfitRate = N'17.38',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-10-24' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2013-06-30',@EPS = N'0.1',@EPSDeduct = N'0.1',@Revenue = N'3.83亿',@RevenueYoy = N'-7.07',@RevenueQoq = N'41.66',@Profit = N'4554.94万',@ProfitYoy = N'29.11',@ProfiltQoq = N'806.21',@NAVPerUnit = N'3.3941',@ROE = N'2.87',@CashPerUnit = N'0.1084',@GrossProfitRate = N'17.60',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2014-08-29' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2013-03-31',@EPS = N'0.01',@EPSDeduct = N'0.01',@Revenue = N'1.59亿',@RevenueYoy = N'-1.36',@RevenueQoq = N'-32.88',@Profit = N'452.68万',@ProfitYoy = N'159.77',@ProfiltQoq = N'-64.53',@NAVPerUnit = N'3.3566',@ROE = N'0.29',@CashPerUnit = N'-0.1426',@GrossProfitRate = N'14.53',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-04-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2012-12-31',@EPS = N'0.15',@EPSDeduct = N'0.15',@Revenue = N'8.57亿',@RevenueYoy = N'-3.28',@RevenueQoq = N'13.21',@Profit = N'7026.97万',@ProfitYoy = N'-15.46',@ProfiltQoq = N'-42.58',@NAVPerUnit = N'3.3469',@ROE = N'4.55',@CashPerUnit = N'0.2160',@GrossProfitRate = N'16.15',@Distribution = N'10派0.5',@DividenRate = N'0.62',@AnnounceDate = N'2014-03-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2012-09-30',@EPS = N'0.12',@EPSDeduct = N'0.12',@Revenue = N'6.21亿',@RevenueYoy = N'-5.94',@RevenueQoq = N'-17.06',@Profit = N'5750.68万',@ProfitYoy = N'-28.62',@ProfiltQoq = N'-48.13',@NAVPerUnit = N'3.3197',@ROE = N'3.71',@CashPerUnit = N'0.0435',@GrossProfitRate = N'15.46',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2013-10-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2012-06-30',@EPS = N'0.08',@EPSDeduct = N'0.07',@Revenue = N'4.12亿',@RevenueYoy = N'-5.42',@RevenueQoq = N'56.52',@Profit = N'3527.99万',@ProfitYoy = N'-45.63',@ProfiltQoq = N'665.83',@NAVPerUnit = N'3.2723',@ROE = N'2.29',@CashPerUnit = N'0.0396',@GrossProfitRate = N'16.64',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2013-08-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2015-12-31',@EPS = N'0.12',@EPSDeduct = N'0.08',@Revenue = N'11.56亿',@RevenueYoy = N'-3.61',@RevenueQoq = N'5.19',@Profit = N'5395.00万',@ProfitYoy = N'-35.35',@ProfiltQoq = N'-63.01',@NAVPerUnit = N'3.6634',@ROE = N'3.17',@CashPerUnit = N'0.3075',@GrossProfitRate = N'17.62',@Distribution = N'10派0.6',@DividenRate = N'0.74',@AnnounceDate = N'2017-03-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2011-12-31',@EPS = N'0.22',@EPSDeduct = N'0.22',@Revenue = N'8.86亿',@RevenueYoy = N'6.65',@RevenueQoq = N'0.82',@Profit = N'8312.07万',@ProfitYoy = N'-26.38',@ProfiltQoq = N'-83.67',@NAVPerUnit = N'6.4941',@ROE = N'8.67',@CashPerUnit = N'0.1244',@GrossProfitRate = N'17.21',@Distribution = N'10转10派1',@DividenRate = N'2.00',@AnnounceDate = N'2013-04-10' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2015-09-30',@EPS = N'0.11',@EPSDeduct = N'0',@Revenue = N'8.22亿',@RevenueYoy = N'-5.85',@RevenueQoq = N'-5.06',@Profit = N'4986.16万',@ProfitYoy = N'-29.03',@ProfiltQoq = N'-68.32',@NAVPerUnit = N'3.6546',@ROE = N'2.93',@CashPerUnit = N'0.2550',@GrossProfitRate = N'18.65',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-10-29' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2011-09-30',@EPS = N'0.23',@EPSDeduct = N'0.46',@Revenue = N'6.60亿',@RevenueYoy = N'8.52',@RevenueQoq = N'-15.53',@Profit = N'8056.16万',@ProfitYoy = N'-14.65',@ProfiltQoq = N'-70.24',@NAVPerUnit = N'6.4800',@ROE = N'10.52',@CashPerUnit = N'0.0498',@GrossProfitRate = N'18.53',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2012-10-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2011-06-30',@EPS = N'0.37',@EPSDeduct = N'0.36',@Revenue = N'4.36亿',@RevenueYoy = N'8.83',@RevenueQoq = N'55.77',@Profit = N'6488.73万',@ProfitYoy = N'-17.24',@ProfiltQoq = N'331.12',@NAVPerUnit = N'4.1900',@ROE = N'8.56',@CashPerUnit = N'0.4275',@GrossProfitRate = N'20.49',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2012-08-18' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2011-03-31',@EPS = N'0.07',@EPSDeduct = N'0',@Revenue = N'1.70亿',@RevenueYoy = N'-',@RevenueQoq = N'-23.45',@Profit = N'1221.70万',@ProfitYoy = N'-',@ProfiltQoq = N'-34.01',@NAVPerUnit = N'0.0000',@ROE = N'-',@CashPerUnit = N'0.0000',@GrossProfitRate = N'20.14',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2012-04-21' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2010-12-31',@EPS = N'0.64',@EPSDeduct = N'0.32',@Revenue = N'8.31亿',@RevenueYoy = N'11.41',@RevenueQoq = N'7.14',@Profit = N'1.13亿',@ProfitYoy = N'59.52',@ProfiltQoq = N'15.83',@NAVPerUnit = N'4.1249',@ROE = N'16.88',@CashPerUnit = N'0.8535',@GrossProfitRate = N'19.79',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2012-03-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2010-09-30',@EPS = N'0.54',@EPSDeduct = N'0',@Revenue = N'6.08亿',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'9438.64万',@ProfitYoy = N'-',@ProfiltQoq = N'-',@NAVPerUnit = N'0.0000',@ROE = N'-',@CashPerUnit = N'0.0000',@GrossProfitRate = N'20.00',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2011-10-24' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2010-06-30',@EPS = N'0.45',@EPSDeduct = N'0',@Revenue = N'4.01亿',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'7840.18万',@ProfitYoy = N'-',@ProfiltQoq = N'-',@NAVPerUnit = N'3.9287',@ROE = N'-',@CashPerUnit = N'0.4728',@GrossProfitRate = N'21.61',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2010-08-26' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2009-12-31',@EPS = N'0.4',@EPSDeduct = N'0.4',@Revenue = N'7.46亿',@RevenueYoy = N'6.77',@RevenueQoq = N'-',@Profit = N'7077.51万',@ProfitYoy = N'17.86',@ProfiltQoq = N'-',@NAVPerUnit = N'3.4828',@ROE = N'12.23',@CashPerUnit = N'0.6846',@GrossProfitRate = N'22.11',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2011-09-08' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2008-12-31',@EPS = N'0.38',@EPSDeduct = N'0.39',@Revenue = N'6.99亿',@RevenueYoy = N'-5.27',@RevenueQoq = N'-',@Profit = N'6004.94万',@ProfitYoy = N'-31.05',@ProfiltQoq = N'-',@NAVPerUnit = N'3.0901',@ROE = N'15.54',@CashPerUnit = N'0.3380',@GrossProfitRate = N'20.45',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2011-09-08' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2007-12-31',@EPS = N'0.58',@EPSDeduct = N'0',@Revenue = N'7.38亿',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'8709.05万',@ProfitYoy = N'-',@ProfiltQoq = N'-',@NAVPerUnit = N'2.0940',@ROE = N'-',@CashPerUnit = N'0.7558',@GrossProfitRate = N'22.26',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2010-08-26' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2012-03-31',@EPS = N'-0.02',@EPSDeduct = N'-0.03',@Revenue = N'1.61亿',@RevenueYoy = N'-5.69',@RevenueQoq = N'-28.91',@Profit = N'-757.36万',@ProfitYoy = N'-161.99',@ProfiltQoq = N'-395.95',@NAVPerUnit = N'6.4618',@ROE = N'-0.50',@CashPerUnit = N'-0.4883',@GrossProfitRate = N'13.10',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2013-04-27' EXEC [EST].[Proc_yjbb_Ins] @Code = N'601996',@CutoffDate = N'2014-09-30',@EPS = N'0.15',@EPSDeduct = N'0',@Revenue = N'8.73亿',@RevenueYoy = N'41.62',@RevenueQoq = N'-10.04',@Profit = N'7026.09万',@ProfitYoy = N'6.45',@ProfiltQoq = N'-68.11',@NAVPerUnit = N'3.5892',@ROE = N'4.23',@CashPerUnit = N'0.0538',@GrossProfitRate = N'17.84',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-10-30'
--CREATE TABLES CREATE TABLE FullProductList ( ProductID INT NOT NULL PRIMARY KEY IDENTITY(1,1), ProductName nvarchar(50) NOT NULL, ProductPrice decimal NOT NULL, ProductDescription nvarchar(75) NOT NULL, ProductSection nvarchar(15) NOT NULL, ProductCount INT); CREATE TABLE Customer ( CustomerID INT NOT NULL PRIMARY KEY IDENTITY(1,1), CustName nvarchar(30) NOT NULL, CustEmail nvarchar(45) NOT NULL, CustPass nvarchar(45) NOT NULL); --figure out how to add multiple values from one table into another --try creating a price table? CREATE TABLE Orders( ProductID INT NOT NULL FOREIGN KEY REFERENCES FullProductList(ProductID), ProductPrice decimal NOT NULL FOREIGN KEY REFERENCES FullProductList(ProductPrice)) INSERT INTO FullProductList Values ('Lego Desk', 129.99, 'DIY office space, instructions not included', 'Kiddie World', 3) INSERT INTO FullProductList Values ('Metal Desk', 129.99, 'More like a mortician''s table', 'Scary City', 4) INSERT INTO FullProductList Values ('Raising Desk', 129.99, 'If only it could raise your salary', 'Rich Penthouse', 10) INSERT INTO FullProductList Values ('Wooden Desk', 129.99, 'An heirloom that may or may not have woodmites', 'Rural Cabin', 1) INSERT INTO FullProductList Values ('Lego Chair', 49.99, 'If it hurts to step on, it might hurt to sit on', 'Kiddie World', 3) INSERT INTO FullProductList Values ('Metal Chair', 49.99, 'It might leave marks on your floor', 'Scary City', 4) INSERT INTO FullProductList Values ('Rolling Chair', 49.99, 'Not for playing Go-Carts', 'Rich Penthouse', 10) INSERT INTO FullProductList Values ('Wooden Chair', 49.99, 'It doesn''t look all that sturdy', 'Rural Cabin', 1) INSERT INTO FullProductList Values ('Lego Lamp', 29.99, 'How many legos does it take to screw in a light bulb?', 'Kiddie World', 3) INSERT INTO FullProductList Values ('Metal Lamp', 29.99, 'DON''T GO INTO THE LIGHT', 'Scary City', 4) INSERT INTO FullProductList Values ('Smart Lamp', 29.99, 'Clap on, clap off', 'Rich Penthouse', 10) INSERT INTO FullProductList Values ('Antique Lamp', 29.99, 'Make a wish, maybe a genie lives in there', 'Rural Cabin', 1) SELECT*FROM FullProductList
<gh_stars>0 SELECT FirstName, LastName, Salary, DepartmentID FROM Employees e WHERE Salary = (SELECT MIN(Salary) FROM Employees d WHERE d.DepartmentID = e.DepartmentID)
CREATE DATABASE employeeListManager_db; use employeeListManager_db CREATE TABLE employees( id INTEGER auto_increment NOT NULL, fist_name varchar(40) NOT NULL, last_name VARCHAR(40) NOT NULL, title varchar(50) not null, department varchar(50) not null, salary integer not null, manager varchar(40) not null, primary key (id) ); CREATE TABLE department( id INTEGER auto_increment NOT NULL, job varchar(60) NOT NULL, salary integer not null, PRIMARY KEY (id) ); CREATE TABLE roles( id INT AUTO_INCREMENT NOT NULL, title VARCHAR(30) NOT NULL,department salary DECIMAL(10,2) NOT NULL, department_name_id INT NOT NULL, PRIMARY KEY (id) );
INSERT INTO twitter_accounts (id, screen_name, status, created, modified) VALUES (416896022, 'mina_rio', 1, NOW(), NOW()); INSERT INTO twitter_accounts (id, screen_name, status, created, modified) VALUES (1057531494, 'rukaKANAE', 1, NOW(), NOW()); INSERT INTO twitter_accounts (id, screen_name, status, created, modified) VALUES (856036586, 'shinomiyayuri', 1, NOW(), NOW()); INSERT INTO reply_chances (twitter_account_id, term, count, status, created, modified) VALUES (416896022, 2, 3, 1, NOW(), NOW()); INSERT INTO reply_chances (twitter_account_id, term, count, status, created, modified) VALUES (1057531494, 2, 3, 1, NOW(), NOW()); INSERT INTO reply_chances (twitter_account_id, term, count, status, created, modified) VALUES (856036586, 2, 3, 1, NOW(), NOW());
<filename>apilaptop.sql -- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Inang: 127.0.0.1 -- Waktu pembuatan: 07 Jan 2016 pada 16.53 -- Versi Server: 5.5.27 -- Versi PHP: 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 */; -- -- Basis data: `apilaptop` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `laptops` -- CREATE TABLE IF NOT EXISTS `laptops` ( `id_laptop` int(4) NOT NULL AUTO_INCREMENT, `brand` varchar(100) NOT NULL, `model` varchar(200) NOT NULL, `release` varchar(5) NOT NULL, PRIMARY KEY (`id_laptop`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Dumping data untuk tabel `laptops` -- INSERT INTO `laptops` (`id_laptop`, `brand`, `model`, `release`) VALUES (1, 'asus', 'x44c', '2011'); -- -------------------------------------------------------- -- -- Struktur dari tabel `parts` -- CREATE TABLE IF NOT EXISTS `parts` ( `id_part` int(4) NOT NULL AUTO_INCREMENT, `id_laptop` int(4) NOT NULL, `id_cat` int(4) NOT NULL, `part_number` varchar(200) NOT NULL, `description` text NOT NULL, PRIMARY KEY (`id_part`), KEY `idx_laptop` (`id_laptop`), KEY `idx_cat` (`id_cat`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Struktur dari tabel `part_cat` -- CREATE TABLE IF NOT EXISTS `part_cat` ( `id_cat` int(4) NOT NULL DEFAULT '0', `cat_name` varchar(100) NOT NULL, PRIMARY KEY (`id_cat`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables) -- -- -- Ketidakleluasaan untuk tabel `parts` -- ALTER TABLE `parts` ADD CONSTRAINT `parts_ibfk_2` FOREIGN KEY (`id_cat`) REFERENCES `part_cat` (`id_cat`), ADD CONSTRAINT `parts_ibfk_1` FOREIGN KEY (`id_laptop`) REFERENCES `laptops` (`id_laptop`); /*!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>basedatos.sql -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Jan 29, 2019 at 01:52 AM -- Server version: 5.7.23 -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `mascotas` -- -- -------------------------------------------------------- -- -- Table structure for table `especies` -- CREATE TABLE `especies` ( `id` int(11) NOT NULL, `nombre` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `especies` -- INSERT INTO `especies` (`id`, `nombre`) VALUES (1, 'gato'), (2, 'perro'), (3, 'hamster'), (4, 'perico'), (5, 'pez'); -- -------------------------------------------------------- -- -- Table structure for table `mascotas` -- CREATE TABLE `mascotas` ( `id` int(11) NOT NULL, `id_especie` int(11) NOT NULL, `nombre` varchar(255) NOT NULL, `precio` int(11) NOT NULL, `nacimiento` date NOT NULL, `foto` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `mascotas` -- INSERT INTO `mascotas` (`id`, `id_especie`, `nombre`, `precio`, `nacimiento`, `foto`) VALUES (1, 2, 'Toby', 59, '2017-12-02', NULL); -- -- Indexes for dumped tables -- -- -- Indexes for table `especies` -- ALTER TABLE `especies` ADD PRIMARY KEY (`id`); -- -- Indexes for table `mascotas` -- ALTER TABLE `mascotas` ADD PRIMARY KEY (`id`), ADD KEY `id_especie` (`id_especie`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `especies` -- ALTER TABLE `especies` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `mascotas` -- ALTER TABLE `mascotas` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- Constraints for dumped tables -- -- -- Constraints for table `mascotas` -- ALTER TABLE `mascotas` ADD CONSTRAINT `mascotas_ibfk_1` FOREIGN KEY (`id_especie`) REFERENCES `especies` (`id`);
<reponame>none-word/Automatic-Time-Table-Creation -- +goose Up -- +goose StatementBegin INSERT INTO time_slots (id, weekday, start, duration) VALUES ('965659df-c12a-4fa2-9047-48e8ce5077b7', 1, '09:00:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('e7f005f2-4ead-4742-9ad4-a5075baad991', 2, '09:00:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('2597e441-a5f0-4841-8125-e8e8e77fb28f', 3, '09:00:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('9aedbeb5-74a2-447f-a8f0-a4f360635cee', 4, '09:00:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('ee4d54f6-fa48-4368-b57c-883912a19322', 5, '09:00:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('7404e7f5-7ea1-408c-9b64-42ddf4b0ab89', 1, '10:40:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('ade47473-305e-495c-8d6d-da2e15703a43', 2, '10:40:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('657d9890-1e4b-433b-a376-8b277f89ffb2', 3, '10:40:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('02e8715c-4e13-4446-84bb-3b44ad100c47', 4, '10:40:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('1d2e8052-443f-4893-8688-7694146a40e5', 5, '10:40:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('d8569610-5a9e-455d-b9a6-e52dd3675379', 1, '12:40:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('53d363a8-a922-4819-9968-98e323f8f82c', 2, '12:40:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('0128408f-9eec-4a52-b71d-743c84537948', 3, '12:40:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('73376e94-2ec4-4d5b-9ed4-7690c0285c5b', 4, '12:40:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('9fe9847f-e92c-42ea-a712-23fc3fa18c9e', 5, '12:40:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('dfd97bfd-ff2a-4d41-b3d2-3b53e14c77fd', 1, '14:20:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('ae3d9d48-b956-4f22-9046-d7475a222c65', 2, '14:20:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('167911f7-2b27-413c-8547-5fbb77dce7f2', 3, '14:20:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('c76e99fa-e5d5-454d-86e8-c9155e8136c6', 4, '14:20:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('c6bb43b6-f275-417a-b408-1b1f9e85191a', 5, '14:20:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('d62582dd-58e3-4318-a2b5-5d986bac60d5', 1, '16:00:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('7a1e50c3-1ea6-4291-bfc4-ef1dd4928e4a', 2, '16:00:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('78a6333a-839c-4176-aa45-f1729811f512', 3, '16:00:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('278f4ad5-eb84-400b-b5f8-84b6fc40ec5d', 4, '16:00:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('cdd63f23-7f52-4b12-9658-c022c0e74cc4', 5, '16:00:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('945dbfaf-05f3-4dc2-ae1b-448a363359d1', 1, '17:40:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('7d0eea4e-0a32-480a-80a0-e54591733a7f', 2, '17:40:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('dc5c6dfc-f126-4ec7-b764-cd0c701d7f7f', 3, '17:40:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('29407914-edc5-4f05-a0bf-0e536c2b0057', 4, '17:40:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('5c9612d5-eb05-4b81-a24a-e42f4678ca11', 5, '17:40:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('7c985990-8095-4846-a228-8e3a3939545a', 1, '19:20:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('bc7199e7-550e-479a-9879-96e9eaad0120', 2, '19:20:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('1f4e8c50-5356-42d1-a865-4d58adadd319', 3, '19:20:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('376b1643-86f3-4185-989b-524f1a095877', 4, '19:20:00', 5400000000000); INSERT INTO time_slots (id, weekday, start, duration) VALUES ('70329d0b-803a-4de7-a875-923604c980f6', 5, '19:20:00', 5400000000000); -- +goose StatementEnd -- +goose Down -- +goose StatementBegin DELETE FROM time_slots WHERE id='965659df-c12a-4fa2-9047-48e8ce5077b7'; DELETE FROM time_slots WHERE id='e7f005f2-4ead-4742-9ad4-a5075baad991'; DELETE FROM time_slots WHERE id='2597e441-a5f0-4841-8125-e8e8e77fb28f'; DELETE FROM time_slots WHERE id='9aedbeb5-74a2-447f-a8f0-a4f360635cee'; DELETE FROM time_slots WHERE id='ee4d54f6-fa48-4368-b57c-883912a19322'; DELETE FROM time_slots WHERE id='7404e7f5-7ea1-408c-9b64-42ddf4b0ab89'; DELETE FROM time_slots WHERE id='ade47473-305e-495c-8d6d-da2e15703a43'; DELETE FROM time_slots WHERE id='657d9890-1e4b-433b-a376-8b277f89ffb2'; DELETE FROM time_slots WHERE id='02e8715c-4e13-4446-84bb-3b44ad100c47'; DELETE FROM time_slots WHERE id='1d2e8052-443f-4893-8688-7694146a40e5'; DELETE FROM time_slots WHERE id='d8569610-5a9e-455d-b9a6-e52dd3675379'; DELETE FROM time_slots WHERE id='53d363a8-a922-4819-9968-98e323f8f82c'; DELETE FROM time_slots WHERE id='0128408f-9eec-4a52-b71d-743c84537948'; DELETE FROM time_slots WHERE id='73376e94-2ec4-4d5b-9ed4-7690c0285c5b'; DELETE FROM time_slots WHERE id='9fe9847f-e92c-42ea-a712-23fc3fa18c9e'; DELETE FROM time_slots WHERE id='dfd97bfd-ff2a-4d41-b3d2-3b53e14c77fd'; DELETE FROM time_slots WHERE id='ae3d9d48-b956-4f22-9046-d7475a222c65'; DELETE FROM time_slots WHERE id='167911f7-2b27-413c-8547-5fbb77dce7f2'; DELETE FROM time_slots WHERE id='c76e99fa-e5d5-454d-86e8-c9155e8136c6'; DELETE FROM time_slots WHERE id='c6bb43b6-f275-417a-b408-1b1f9e85191a'; DELETE FROM time_slots WHERE id='d62582dd-58e3-4318-a2b5-5d986bac60d5'; DELETE FROM time_slots WHERE id='7a1e50c3-1ea6-4291-bfc4-ef1dd4928e4a'; DELETE FROM time_slots WHERE id='78a6333a-839c-4176-aa45-f1729811f512'; DELETE FROM time_slots WHERE id='278f4ad5-eb84-400b-b5f8-84b6fc40ec5d'; DELETE FROM time_slots WHERE id='cdd63f23-7f52-4b12-9658-c022c0e74cc4'; DELETE FROM time_slots WHERE id='945dbfaf-05f3-4dc2-ae1b-448a363359d1'; DELETE FROM time_slots WHERE id='7d0eea4e-0a32-480a-80a0-e54591733a7f'; DELETE FROM time_slots WHERE id='dc5c6dfc-f126-4ec7-b764-cd0c701d7f7f'; DELETE FROM time_slots WHERE id='29407914-edc5-4f05-a0bf-0e536c2b0057'; DELETE FROM time_slots WHERE id='5c9612d5-eb05-4b81-a24a-e42f4678ca11'; DELETE FROM time_slots WHERE id='7c985990-8095-4846-a228-8e3a3939545a'; DELETE FROM time_slots WHERE id='bc7199e7-550e-479a-9879-96e9eaad0120'; DELETE FROM time_slots WHERE id='1f4e8c50-5356-42d1-a865-4d58adadd319'; DELETE FROM time_slots WHERE id='376b1643-86f3-4185-989b-524f1a095877'; DELETE FROM time_slots WHERE id='70329d0b-803a-4de7-a875-923604c980f6'; -- +goose StatementEnd
<reponame>ikozinov/pggen -- name: FindOrdersByPrice :many SELECT * FROM orders WHERE order_total > pggen.arg('MinTotal'); -- name: FindOrdersMRR :many SELECT date_trunc('month', order_date) AS month, sum(order_total) AS order_mrr FROM orders GROUP BY date_trunc('month', order_date);
<gh_stars>1-10 CREATE MASTER KEY GO CREATE DATABASE SCOPED CREDENTIAL AW2014_Credential WITH IDENTITY = 'extROUser' , SECRET = '<KEY>' ; GO CREATE EXTERNAL DATA SOURCE MyElasticDBQueryDataSrc WITH ( TYPE = RDBMS , LOCATION = 'sqlplayer.database.windows.net' , DATABASE_NAME = 'AdventureWorks2014' , CREDENTIAL = AW2014_Credential ) ; CREATE EXTERNAL TABLE [Person].[AddressType] ( [AddressTypeID] [int] NOT NULL, [Name] nvarchar(50) NOT NULL, [rowguid] [uniqueidentifier] NOT NULL, [ModifiedDate] [datetime] NOT NULL ) WITH ( DATA_SOURCE = MyElasticDBQueryDataSrc) SELECT TOP 100 * from [Person].[AddressType] DROP EXTERNAL DATA SOURCE MyElasticDBQueryDataSrc DROP DATABASE SCOPED CREDENTIAL AW2014_Credential
<gh_stars>10-100 --Historical Disk Usage --Last tested on Tableau Server 10.3 SELECT "a"."id" AS "id", "a"."worker_id" AS "worker_id", "a"."resource_type" AS "resource_type", "a"."path" AS "path", "a"."total_space_bytes" AS "total_space_bytes", "a"."used_space_bytes" AS "space_bytes", "a"."state" AS "state", "a"."record_timestamp" AS "record_timestamp", 1 AS "space_type" FROM "public"."historical_disk_usage" "a" UNION ALL SELECT "b"."id" AS "id", "b"."worker_id" AS "worker_id", "b"."resource_type" AS "resource_type", "b"."path" AS "path", "b"."total_space_bytes" AS "total_space_bytes", ("b"."total_space_bytes"-"b"."used_space_bytes") AS "space_bytes", "b"."state" AS "state", "b"."record_timestamp" AS "record_timestamp", 0 AS "space_type" FROM "public"."historical_disk_usage" "b"
create server multicorn_gooddata foreign data wrapper multicorn options ( wrapper 'gooddata_fdw.GoodDataForeignDataWrapper', host 'http://gooddata-cn-ce:3000', -- host equal to name of container with GoodData.CN.CE token '<KEY>', -- default gooddata-cn-ce token, documented in public DOC as well headers_host 'localhost' ); create schema "covid_cz"; call import_gooddata('covid_cz', 'all'); drop foreign table if exists infections_by_county; create foreign table infections_by_county ( date_quarter varchar options (id 'label/date.month'), county_name varchar options (id 'label/county_name'), infections NUMERIC(18,0) options (id 'metric/infections'), deaths NUMERIC(18,0) options (id 'metric/deaths') ) SERVER multicorn_gooddata OPTIONS ( workspace 'covid_cz'); select * from infections_by_county; select date_month, county_name, infections from covid_cz.compute;
<reponame>azkaainurridho514/real_project<filename>real_project.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 30, 2021 at 06:00 AM -- 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: `real_project` -- -- -------------------------------------------------------- -- -- Table structure for table `kondisi` -- CREATE TABLE `kondisi` ( `id_kondisi` int(11) NOT NULL, `id_barang` int(11) NOT NULL, `jumlah_baik` varchar(155) NOT NULL, `jumlah_buruk` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `kondisi` -- INSERT INTO `kondisi` (`id_kondisi`, `id_barang`, `jumlah_baik`, `jumlah_buruk`) VALUES (1, 1, '50', 50), (2, 2, '50', 33); -- -------------------------------------------------------- -- -- Table structure for table `master_barang` -- CREATE TABLE `master_barang` ( `id_barang` int(11) NOT NULL, `id_pengadaan` int(11) NOT NULL, `id_kondisi` int(11) NOT NULL, `id_ruangan` varchar(50) NOT NULL, `nama_barang` varchar(255) DEFAULT NULL, `satuan` varchar(50) DEFAULT NULL, `keterangan` text NOT NULL, `gambar` varchar(50) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `master_barang` -- INSERT INTO `master_barang` (`id_barang`, `id_pengadaan`, `id_kondisi`, `id_ruangan`, `nama_barang`, `satuan`, `keterangan`, `gambar`) VALUES (1, 1, 1, '2', 'komputer', '1 pcs', 'perlengkapan lengkap', 'gambar'), (2, 2, 2, '1', 'meja', '1 pcs', 'datang tahun 2200', 'gambar'); -- -------------------------------------------------------- -- -- Table structure for table `pengadaan` -- CREATE TABLE `pengadaan` ( `id_pengadaan` int(11) NOT NULL, `jumlah_pengadaan` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `pengadaan` -- INSERT INTO `pengadaan` (`id_pengadaan`, `jumlah_pengadaan`) VALUES (1, '100'), (2, '100'); -- -------------------------------------------------------- -- -- Table structure for table `ruangan` -- CREATE TABLE `ruangan` ( `id_ruangan` int(11) NOT NULL, `ruang` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `ruangan` -- INSERT INTO `ruangan` (`id_ruangan`, `ruang`) VALUES (1, 'satu'), (2, 'dua'); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id_user` int(11) NOT NULL, `username` varchar(100) NOT NULL, `email` varchar(50) NOT NULL, `password` varchar(255) NOT NULL, `role_id` int(11) NOT NULL, `is_active` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user` -- INSERT INTO `user` (`id_user`, `username`, `email`, `password`, `role_id`, `is_active`) VALUES (8, 'User satu', '<EMAIL>', <PASSWORD>', 2, 1), (9, 'admin satu', '<EMAIL>', <PASSWORD>', 1, 1), (10, '<NAME>', '<EMAIL>', <PASSWORD>', 2, 1), (12, 'asdasdasd', '<EMAIL>', <PASSWORD>', 2, 1); -- -------------------------------------------------------- -- -- Table structure for table `user_access_menu` -- CREATE TABLE `user_access_menu` ( `id` int(11) NOT NULL, `role_id` int(11) NOT NULL, `menu_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user_access_menu` -- INSERT INTO `user_access_menu` (`id`, `role_id`, `menu_id`) VALUES (1, 1, 1), (2, 1, 2), (3, 2, 2); -- -------------------------------------------------------- -- -- Table structure for table `user_menu` -- CREATE TABLE `user_menu` ( `id` int(11) NOT NULL, `menu` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user_menu` -- INSERT INTO `user_menu` (`id`, `menu`) VALUES (1, 'admin'), (2, 'user'); -- -------------------------------------------------------- -- -- Table structure for table `user_role` -- CREATE TABLE `user_role` ( `id` int(11) NOT NULL, `role` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user_role` -- INSERT INTO `user_role` (`id`, `role`) VALUES (1, 'Administrator'), (2, 'User'); -- -------------------------------------------------------- -- -- Table structure for table `user_sub_menu` -- CREATE TABLE `user_sub_menu` ( `id` int(11) NOT NULL, `menu_id` int(11) NOT NULL, `title` varchar(255) NOT NULL, `url` varchar(50) NOT NULL, `icon` varchar(50) NOT NULL, `is_active` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user_sub_menu` -- INSERT INTO `user_sub_menu` (`id`, `menu_id`, `title`, `url`, `icon`, `is_active`) VALUES (1, 1, 'Dashboard <small style=\"font-size: 10px;\">admin</small>', 'admin', 'user-shield', 1), (2, 2, 'Dashboard ', 'user', 'user', 1); -- -- Indexes for dumped tables -- -- -- Indexes for table `kondisi` -- ALTER TABLE `kondisi` ADD PRIMARY KEY (`id_kondisi`); -- -- Indexes for table `master_barang` -- ALTER TABLE `master_barang` ADD PRIMARY KEY (`id_barang`); -- -- Indexes for table `pengadaan` -- ALTER TABLE `pengadaan` ADD PRIMARY KEY (`id_pengadaan`); -- -- Indexes for table `ruangan` -- ALTER TABLE `ruangan` ADD PRIMARY KEY (`id_ruangan`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id_user`); -- -- Indexes for table `user_access_menu` -- ALTER TABLE `user_access_menu` ADD PRIMARY KEY (`id`); -- -- Indexes for table `user_menu` -- ALTER TABLE `user_menu` ADD PRIMARY KEY (`id`); -- -- Indexes for table `user_role` -- ALTER TABLE `user_role` ADD PRIMARY KEY (`id`); -- -- Indexes for table `user_sub_menu` -- ALTER TABLE `user_sub_menu` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `ruangan` -- ALTER TABLE `ruangan` MODIFY `id_ruangan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `user_access_menu` -- ALTER TABLE `user_access_menu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `user_menu` -- ALTER TABLE `user_menu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `user_role` -- ALTER TABLE `user_role` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `user_sub_menu` -- ALTER TABLE `user_sub_menu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>joellabes/dbt_hubspot_source {{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_company_enabled'])) }} with base as ( select * from {{ ref('stg_hubspot__company_tmp') }} where not coalesce(is_deleted, false) ), macro as ( select {{ fivetran_utils.fill_staging_columns( source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__company_tmp')), staging_columns=get_company_columns() ) }} from base ), fields as ( select id as company_id, _fivetran_synced, property_name as company_name, property_description as description, property_createdate as created_at, property_industry as industry, property_address as street_address, property_address_2 as street_address_2, property_city as city, property_state as state, property_country as country, property_annualrevenue as company_annual_revenue --The below macro adds the fields defined within your hubspot__ticket_pass_through_columns variable into the staging model {{ fivetran_utils.fill_pass_through_columns('hubspot__company_pass_through_columns') }} from macro ) select * from fields
<reponame>jesperancinha/jeorg-java-ee-7-test-drives<gh_stars>1-10 CREATE TABLE IF NOT EXISTS USERS_PRIDE ( login VARCHAR(64) PRIMARY KEY, passwd VARCHAR(64) ); CREATE TABLE IF NOT EXISTS USER_ROLES_PRIDE ( login VARCHAR(64), role VARCHAR(32) ); DELETE from USER_ROLES_PRIDE; DELETE from USERS_PRIDE; INSERT into USERS_PRIDE values ('admin', 'admin'); INSERT into USERS_PRIDE values ('admin2', 'admin'); INSERT into USER_ROLES_PRIDE values ('admin', 'Manager'); INSERT into USER_ROLES_PRIDE values ('admin2', 'Organizer');
<reponame>yusha2016/spring-cloud-plus<filename>flyway-plus-starter/src/main/resources/db/V1.1__V0.1.0_RBAC_INIT.sql -- ---------------------------- -- Table structure for rbac_group_role -- ---------------------------- CREATE TABLE IF NOT EXISTS `rbac_group_role` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id', `tenant_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '承租人id', `group_id` bigint(20) UNSIGNED NOT NULL COMMENT '用户组id', `role_id` bigint(20) UNSIGNED NOT NULL COMMENT '角色id', `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否已删除', `attribute` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '冗余属性', `version` bigint(20) UNSIGNED NULL DEFAULT 1 COMMENT '版本号', `created_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `created_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '创建人', `updated_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', `updated_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '更新人', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_group_role_id`(`group_id`, `role_id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户组角色关系表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of rbac_group_role -- ---------------------------- INSERT INTO `rbac_group_role` VALUES (1, 1, 1, 3, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_group_role` VALUES (2, 1, 2, 1, 0, NULL, 1, NULL, NULL, NULL, NULL); -- ---------------------------- -- Table structure for rbac_group_user -- ---------------------------- CREATE TABLE IF NOT EXISTS `rbac_group_user` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id', `tenant_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '承租人id', `group_id` bigint(20) UNSIGNED NOT NULL COMMENT '用户组id', `user_id` bigint(20) UNSIGNED NOT NULL COMMENT '用户id', `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否已删除', `attribute` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '冗余属性', `version` bigint(20) UNSIGNED NULL DEFAULT 1 COMMENT '版本号', `created_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `created_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '创建人', `updated_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', `updated_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '更新人', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_group_user_id`(`user_id`, `group_id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户组用户关系表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of rbac_group_user -- ---------------------------- INSERT INTO `rbac_group_user` VALUES (1, 1, 1, 2, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_group_user` VALUES (2, 1, 2, 1, 0, NULL, 1, NULL, NULL, NULL, NULL); -- ---------------------------- -- Table structure for rbac_org -- ---------------------------- CREATE TABLE IF NOT EXISTS `rbac_org` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id', `tenant_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '承租人id', `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '组织名', `code` char(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '组织代码', `path` char(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '组织级联路径(格式:父path_当前path)', `parent_id` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '父id', `description` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注', `attribute` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '冗余属性', `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否已删除', `version` bigint(20) UNSIGNED NULL DEFAULT 1 COMMENT '版本号', `created_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `created_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '创建人', `updated_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', `updated_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '更新人', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_parent_id`(`parent_id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '组织表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of rbac_org -- ---------------------------- INSERT INTO `rbac_org` VALUES (1, 1, '葫芦科技', 'hlkj', '01', 0, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_org` VALUES (2, 1, '技术部', 'jsb', '01_01', 1, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_org` VALUES (3, 1, '产品部', 'cpb', '01_02', 1, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_org` VALUES (4, 1, '研发部', 'dev', '01_01_01', 2, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_org` VALUES (5, 1, '测试部', 'test', '01_01_02', 2, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL); -- ---------------------------- -- Table structure for rbac_org_role -- ---------------------------- CREATE TABLE IF NOT EXISTS `rbac_org_role` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id', `tenant_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '承租人id', `org_id` bigint(20) UNSIGNED NOT NULL COMMENT '组织id', `role_id` bigint(20) UNSIGNED NOT NULL COMMENT '角色id', `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否已删除', `attribute` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '冗余属性', `version` bigint(20) UNSIGNED NULL DEFAULT 1 COMMENT '版本号', `created_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `created_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '创建人', `updated_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', `updated_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '更新人', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_org_role_id`(`org_id`, `role_id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '组织角色关系表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of rbac_org_role -- ---------------------------- INSERT INTO `rbac_org_role` VALUES (1, 1, 2, 3, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_org_role` VALUES (2, 1, 2, 4, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_org_role` VALUES (3, 1, 4, 4, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_org_role` VALUES (4, 1, 5, 5, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_org_role` VALUES (5, 1, 1, 4, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_org_role` VALUES (6, 1, 1, 5, 0, NULL, 1, NULL, NULL, NULL, NULL); -- ---------------------------- -- Table structure for rbac_org_user -- ---------------------------- CREATE TABLE IF NOT EXISTS `rbac_org_user` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id', `tenant_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '承租人id', `org_id` bigint(20) UNSIGNED NOT NULL COMMENT '组织id', `user_id` bigint(20) UNSIGNED NOT NULL COMMENT '用户id', `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否已删除', `attribute` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '冗余属性', `version` bigint(20) UNSIGNED NULL DEFAULT 1 COMMENT '版本号', `created_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `created_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '创建人', `updated_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', `updated_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '更新人', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_user_org_id`(`user_id`, `org_id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户组织关系表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of rbac_org_user -- ---------------------------- INSERT INTO `rbac_org_user` VALUES (1, 1, 4, 2, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_org_user` VALUES (2, 1, 1, 1, 0, NULL, 1, NULL, NULL, NULL, NULL); -- ---------------------------- -- Table structure for rbac_permission -- ---------------------------- CREATE TABLE IF NOT EXISTS `rbac_permission` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `tenant_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '承租人id', `code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '代码', `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '名称', `description` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '描述', `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否已删除', `attribute` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '冗余属性', `version` bigint(20) UNSIGNED NULL DEFAULT 1 COMMENT '版本号', `created_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `created_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '创建人', `updated_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', `updated_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '更新人', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '权限表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of rbac_permission -- ---------------------------- INSERT INTO `rbac_permission` VALUES (1, 1, 'READ', '阅读权限', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_permission` VALUES (2, 1, 'WRITE', '写权限', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_permission` VALUES (3, 1, 'DEV', '开发权限', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_permission` VALUES (4, 1, 'TEST', '测试权限', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL); -- ---------------------------- -- Table structure for rbac_role -- ---------------------------- CREATE TABLE IF NOT EXISTS `rbac_role` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `tenant_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '承租人id', `code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '代码', `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '名称', `description` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '描述', `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否已删除', `attribute` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '冗余属性', `version` bigint(20) UNSIGNED NULL DEFAULT 1 COMMENT '版本号', `created_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `created_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '创建人', `updated_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', `updated_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '更新人', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of rbac_role -- ---------------------------- INSERT INTO `rbac_role` VALUES (1, 1, 'ADMIN', '管理员角色', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_role` VALUES (2, 1, 'EMPLOYEE', '员工角色', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_role` VALUES (3, 1, 'USER', '用户角色', '注册的普通用户', 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_role` VALUES (4, 1, 'DEV', '开发角色', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_role` VALUES (5, 1, 'TEST', '测试角色', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL); -- ---------------------------- -- Table structure for rbac_role_permission -- ---------------------------- CREATE TABLE IF NOT EXISTS `rbac_role_permission` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `tenant_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '承租人id', `role_id` bigint(20) UNSIGNED NOT NULL COMMENT '角色id', `permission_id` bigint(20) UNSIGNED NOT NULL COMMENT '权限id', `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否已删除', `attribute` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '冗余属性', `version` bigint(20) UNSIGNED NULL DEFAULT 1 COMMENT '版本号', `created_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `created_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '创建人', `updated_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', `updated_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '更新人', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_role_per_id`(`role_id`, `permission_id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色权限关系表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of rbac_role_permission -- ---------------------------- INSERT INTO `rbac_role_permission` VALUES (1, 1, 1, 1, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_role_permission` VALUES (2, 1, 1, 2, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_role_permission` VALUES (3, 1, 2, 1, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_role_permission` VALUES (4, 1, 3, 1, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_role_permission` VALUES (5, 1, 1, 3, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_role_permission` VALUES (6, 1, 4, 3, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_role_permission` VALUES (7, 1, 5, 4, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_role_permission` VALUES (8, 1, 1, 4, 0, NULL, 1, NULL, NULL, NULL, NULL); -- ---------------------------- -- Table structure for rbac_user -- ---------------------------- CREATE TABLE IF NOT EXISTS `rbac_user` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id', `tenant_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '承租人id', `age` int(5) UNSIGNED NULL DEFAULT NULL COMMENT '年龄', `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '姓名', `pin_yin` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '拼音', `sex` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '性别(M-男,F-女,X-未知)', `birth` datetime(0) NULL DEFAULT NULL COMMENT '生日', `account` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '账号', `password` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '密码', `nick_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '昵称', `email` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '邮箱', `mobile_phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '手机', `photo_url` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '头像地址', `is_deleted` tinyint(1) NULL DEFAULT 0 COMMENT '是否已删除', `attribute` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '冗余属性', `version` bigint(20) UNSIGNED NULL DEFAULT 1 COMMENT '版本号', `created_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `created_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '创建人', `updated_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', `updated_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '更新人', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of rbac_user -- ---------------------------- INSERT INTO `rbac_user` VALUES (1, 1, 100, '管理员', 'GuanLiYuan', 'M', '2020-01-01 01:01:01', 'admin', '66bafb9fb704934fd46fdd25d1d38326', 'admin', NULL, '110110', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_user` VALUES (2, 1, 28, '葫芦胡', 'HuLuHu', 'M', '2020-01-01 01:01:01', 'gourd', '8739597c7a09b9f5bff69760fd0b571b', 'gourd', NULL, '13584278267', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL); -- ---------------------------- -- Table structure for rbac_user_group -- ---------------------------- CREATE TABLE IF NOT EXISTS `rbac_user_group` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id', `tenant_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '承租人id', `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户组名', `code` char(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户组代码', `parent_id` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '父id', `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否已删除', `attribute` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '冗余属性', `version` bigint(20) UNSIGNED NULL DEFAULT 1 COMMENT '版本号', `created_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `created_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '创建人', `updated_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', `updated_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '更新人', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户组表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of rbac_user_group -- ---------------------------- INSERT INTO `rbac_user_group` VALUES (1, 1, '普通用户', 'common_user', 0, 0, NULL, 1, NULL, NULL, NULL, NULL); INSERT INTO `rbac_user_group` VALUES (2, 1, 'VIP用户', 'vip_user', 0, 0, NULL, 1, NULL, NULL, NULL, NULL); -- ---------------------------- -- Table structure for rbac_user_role -- ---------------------------- CREATE TABLE IF NOT EXISTS `rbac_user_role` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `tenant_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '承租人id', `user_id` bigint(20) UNSIGNED NOT NULL COMMENT '用户id', `role_id` bigint(20) UNSIGNED NOT NULL COMMENT '角色id', `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否已删除', `attribute` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '冗余属性', `version` bigint(20) UNSIGNED NULL DEFAULT 1 COMMENT '版本号', `created_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `created_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '创建人', `updated_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', `updated_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '更新人', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_user_role_id`(`user_id`, `role_id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户角色关系表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of rbac_user_role -- ---------------------------- INSERT INTO `rbac_user_role` VALUES (1, 1, 1, 1, 0, NULL, 0, NULL, NULL, NULL, NULL); INSERT INTO `rbac_user_role` VALUES (2, 1, 2, 3, 0, NULL, 0, NULL, NULL, NULL, NULL); -- ---------------------------- -- Table structure for sys_tenant -- ---------------------------- CREATE TABLE IF NOT EXISTS `sys_tenant` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `number` varchar(4) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '号码', `code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '代码', `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '名称', `description` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '描述', `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否已删除', `attribute` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '冗余属性', `version` bigint(20) UNSIGNED NULL DEFAULT 1 COMMENT '版本号', `created_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `created_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '创建人', `updated_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', `updated_by` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '更新人', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '承租人表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_tenant -- ---------------------------- INSERT INTO `sys_tenant` VALUES (1, '1001', 'gourd', '葫芦胡', '葫芦胡', 0, NULL, 1, '2020-01-01 13:31:09', 1, '2020-01-01 13:31:33', 1);
-- create users INSERT into users(first_name, middle_initial, last_name, email, type) VALUES ('Bob', 'A', 'Roberts', '<EMAIL>', 'engineer'), ('James', 'J', 'Jameson', '<EMAIL>', 'analyst'), ('Stephanie', 'S', 'Stphens', '<EMAIL>', 'designer'), ('Mike', '', 'Michaels', '<EMAIL>', 'lead'); -- create products INSERT into products(name, sku, version, blueprint) VALUES ('reactive web stuff', 'bc8e38gvg98c77ggscdy8g', 10, 'DOM-92348'), ('sassy app builder', '100000199112', 17, 'COM-12349'), ('monolithixc db creator', '102-1-12233-0', 30, 'COM-2348'), ('linux maker online', 'ncw24 w9g97 ce79r', 22, 'DOM-98848'); -- create orders INSERT into orders(product_id, license, quantity) VALUES (1, 'nwce08hf3r08h0he3f0h', 1), (2,'0000f0fg0gf3r08he3f0', 1), (3,'7wdeffghfer8h0he3f0h', 5); -- create subscriptions INSERT into subscriptions(product_id, subscription, quantity) VALUES (4,'999908hfdr08hwhe3f07', 6);
<reponame>jumadilabdulrahmanselian/ldap-api ALTER ROLE inalum SET SEARCH_PATH to pegawai; -- SET search_path TO 'schema',public; SET search_path TO pegawai,public;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 04, 2017 at 05:31 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.5.37 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: `project_marks_ms` -- -- -------------------------------------------------------- -- -- Table structure for table `faculty` -- CREATE TABLE `faculty` ( `f_id` int(11) NOT NULL, `f_name` varchar(100) NOT NULL, `f_email` varchar(255) NOT NULL, `f_user_name` varchar(255) NOT NULL, `f_password` varchar(255) NOT NULL, `admin` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `faculty` -- INSERT INTO `faculty` (`f_id`, `f_name`, `f_email`, `f_user_name`, `f_password`, `admin`) VALUES (1, 'Dr. <NAME>', '<EMAIL>', 'damodar', 'damu', 1), (2, 'Dr. <NAME>', '<EMAIL>', 'purushothama', 'puru', 0), (3, 'Dr. <NAME>', '<EMAIL>', 'veena', 'veenu', 0), (5, 'Dr. <NAME>', '<EMAIL>', 'mini', 'minu', 0), (6, 'Dr. <NAME>', '<EMAIL>', 'pravati', 'pravu', 0), (7, 'Dr. <NAME>', '<EMAIL>', 'venkat', 'venku', 0), (8, 'Dr. <NAME>', '<EMAIL>', 'modi', 'modu', 0), (10, 'Dr. <NAME>.', '<EMAIL>', 'kesha', 'keshu', 0), (11, 'Mrs. <NAME>', '<EMAIL>', 'aruna', '123', 0); -- -------------------------------------------------------- -- -- Table structure for table `marks` -- CREATE TABLE `marks` ( `m_id` int(11) NOT NULL, `m_f_id` int(11) NOT NULL, `m_s_id` int(11) NOT NULL, `m_marked` int(1) DEFAULT NULL, `m_is_sup` int(1) DEFAULT NULL, `m_marks` float NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `marks` -- INSERT INTO `marks` (`m_id`, `m_f_id`, `m_s_id`, `m_marked`, `m_is_sup`, `m_marks`) VALUES (32, 1, 10, 1, 1, 33), (33, 2, 10, 1, 0, 23), (34, 3, 10, 0, 0, 0), (35, 5, 10, 0, 0, 0), (36, 2, 11, 0, 1, 0), (37, 3, 11, 0, 0, 0), (38, 5, 11, 0, 0, 0), (39, 6, 11, 0, 0, 0), (40, 3, 12, 1, 1, 30), (41, 5, 12, 0, 0, 0), (42, 6, 12, 0, 0, 0), (43, 7, 12, 0, 0, 0), (44, 5, 13, 0, 1, 0), (45, 6, 13, 0, 0, 0), (46, 7, 13, 0, 0, 0), (47, 8, 13, 0, 0, 0), (48, 6, 14, 0, 1, 0), (49, 7, 14, 0, 0, 0), (50, 8, 14, 0, 0, 0), (51, 10, 14, 0, 0, 0), (56, 8, 16, 0, 1, 0), (57, 10, 16, 0, 0, 0), (58, 11, 16, 0, 0, 0), (59, 1, 16, 0, 0, 0), (60, 10, 17, 0, 1, 0), (61, 11, 17, 0, 0, 0), (62, 1, 17, 0, 0, 0), (63, 2, 17, 1, 0, 40), (64, 11, 18, 0, 1, 0), (65, 1, 18, 1, 0, 26), (66, 2, 18, 1, 0, 2), (67, 3, 18, 0, 0, 0), (160, 10, 42, 0, 1, 0), (161, 2, 42, 0, 0, 0), (162, 7, 42, 0, 0, 0), (163, 6, 42, 0, 0, 0), (164, 10, 43, 0, 1, 0), (165, 1, 43, 0, 0, 0), (166, 5, 43, 0, 0, 0), (167, 2, 43, 0, 0, 0), (168, 2, 44, 0, 1, 0), (169, 5, 44, 0, 0, 0), (170, 1, 44, 0, 0, 0), (171, 11, 44, 0, 0, 0), (172, 1, 45, 0, 1, 0), (173, 6, 45, 0, 0, 0), (174, 2, 45, 0, 0, 0), (175, 5, 45, 0, 0, 0), (176, 11, 46, 0, 1, 0), (177, 6, 46, 0, 0, 0), (178, 3, 46, 0, 0, 0), (179, 7, 46, 0, 0, 0), (180, 8, 47, 0, 1, 0), (181, 1, 47, 0, 0, 0), (182, 6, 47, 0, 0, 0), (183, 11, 47, 0, 0, 0), (184, 1, 48, 0, 1, 0), (185, 7, 48, 0, 0, 0), (186, 10, 48, 0, 0, 0), (187, 5, 48, 0, 0, 0), (188, 5, 49, 0, 1, 0), (189, 3, 49, 0, 0, 0), (190, 11, 49, 0, 0, 0), (191, 7, 49, 0, 0, 0), (192, 1, 50, 0, 1, 0), (193, 5, 50, 0, 0, 0), (194, 2, 50, 0, 0, 0), (195, 6, 50, 0, 0, 0), (196, 8, 51, 0, 1, 0), (197, 5, 51, 0, 0, 0), (198, 7, 51, 0, 0, 0), (199, 11, 51, 0, 0, 0), (200, 8, 52, 0, 1, 0), (201, 6, 52, 0, 0, 0), (202, 11, 52, 0, 0, 0), (203, 5, 52, 0, 0, 0), (204, 2, 53, 0, 1, 0), (205, 6, 53, 0, 0, 0), (206, 8, 53, 0, 0, 0), (207, 11, 53, 0, 0, 0), (208, 5, 54, 0, 1, 0), (209, 6, 54, 0, 0, 0), (210, 1, 54, 0, 0, 0), (211, 7, 54, 0, 0, 0), (212, 3, 55, 0, 1, 0), (213, 7, 55, 0, 0, 0), (214, 1, 55, 0, 0, 0), (215, 8, 55, 0, 0, 0), (216, 2, 56, 0, 1, 0), (217, 8, 56, 0, 0, 0), (218, 5, 56, 0, 0, 0), (219, 6, 56, 0, 0, 0), (220, 6, 57, 0, 1, 0), (221, 10, 57, 0, 0, 0), (222, 7, 57, 0, 0, 0), (223, 11, 57, 0, 0, 0), (224, 6, 58, 0, 1, 0), (225, 1, 58, 0, 0, 0), (226, 3, 58, 0, 0, 0), (227, 11, 58, 0, 0, 0), (228, 11, 59, 0, 1, 0), (229, 5, 59, 0, 0, 0), (230, 7, 59, 0, 0, 0), (231, 10, 59, 0, 0, 0), (232, 6, 60, 0, 1, 0), (233, 10, 60, 0, 0, 0), (234, 7, 60, 0, 0, 0), (235, 8, 60, 0, 0, 0), (236, 5, 61, 0, 1, 0), (237, 7, 61, 0, 0, 0), (238, 6, 61, 0, 0, 0), (239, 1, 61, 0, 0, 0), (240, 7, 62, 0, 1, 0), (241, 1, 62, 0, 0, 0), (242, 6, 62, 0, 0, 0), (243, 11, 62, 0, 0, 0), (244, 7, 63, 0, 1, 0), (245, 1, 63, 1, 0, 30), (246, 6, 63, 0, 0, 0), (247, 8, 63, 0, 0, 0); -- -------------------------------------------------------- -- -- Table structure for table `students` -- CREATE TABLE `students` ( `s_id` int(11) NOT NULL, `s_name` varchar(100) NOT NULL, `s_roll` varchar(255) NOT NULL, `s_email` varchar(255) NOT NULL, `s_sup_id` int(11) NOT NULL, `s_ex1_id` int(11) NOT NULL, `s_ex2_id` int(11) NOT NULL, `s_ex3_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `students` -- INSERT INTO `students` (`s_id`, `s_name`, `s_roll`, `s_email`, `s_sup_id`, `s_ex1_id`, `s_ex2_id`, `s_ex3_id`) VALUES (10, '<NAME>', '14CSE1001', '<EMAIL>', 1, 2, 3, 5), (11, '<NAME>', '14CSE1002', '<EMAIL>', 2, 3, 5, 6), (12, '<NAME>', '14CSE1003', '<EMAIL>', 3, 5, 6, 7), (13, '<NAME>', '14CSE1004', '<EMAIL>', 5, 6, 7, 8), (14, '<NAME>', '14CSE1005', '<EMAIL>', 6, 7, 8, 10), (16, '<NAME>', '14CSE1007', '<EMAIL>', 8, 10, 11, 1), (17, '<NAME>', '14CSE1008', '<EMAIL>', 10, 11, 1, 2), (18, '<NAME>', '14CSE1009', '<EMAIL>', 11, 1, 2, 3), (42, '<NAME>', '14CSE1010', '<EMAIL>', 10, 2, 7, 6), (43, '<NAME>', '14CSE1011', '<EMAIL>', 10, 1, 5, 2), (44, '<NAME>', '14CSE1012', '<EMAIL>', 2, 5, 1, 11), (45, '<NAME>', '14CSE1013', '<EMAIL>', 1, 6, 2, 5), (46, '<NAME>', '14CSE1014', '<EMAIL>', 11, 6, 3, 7), (47, '<NAME>', '14CSE1015', '<EMAIL>', 8, 1, 6, 11), (48, '<NAME>', '14CSE1016', '<EMAIL>', 1, 7, 10, 5), (49, '<NAME>', '14CSE1017', '<EMAIL>', 5, 3, 11, 7), (50, '<NAME>', '14CSE1018', '<EMAIL>', 1, 5, 2, 6), (51, '<NAME>', '14CSE1019', '<EMAIL>', 8, 5, 7, 11), (52, '<NAME>', '14CSE1021', '<EMAIL>', 8, 6, 11, 5), (53, '<NAME>', '14CSE1022', '<EMAIL>', 2, 6, 8, 11), (54, '<NAME>', '14CSE1023', '<EMAIL>', 5, 6, 1, 7), (55, '<NAME>', '14CSE1024', '<EMAIL>', 3, 7, 1, 8), (56, '<NAME>', '14CSE1025', '<EMAIL>', 2, 8, 5, 6), (57, '<NAME>', '14CSE1026', '<EMAIL>', 6, 10, 7, 11), (58, '<NAME>', '14CSE1027', '<EMAIL>', 6, 1, 3, 11), (59, '<NAME>', '14CSE1028', '<EMAIL>', 11, 5, 7, 10), (60, '<NAME>', '14CSE1029', '<EMAIL>', 6, 10, 7, 8), (61, '<NAME>', '14CSE1030', '<EMAIL>', 5, 7, 6, 1), (62, '<NAME>', '14CSE1031', '<EMAIL>', 7, 1, 6, 11), (63, '<NAME>', '13CSE007', '<EMAIL>', 7, 1, 6, 8); -- -- Indexes for dumped tables -- -- -- Indexes for table `faculty` -- ALTER TABLE `faculty` ADD PRIMARY KEY (`f_id`), ADD UNIQUE KEY `f_user_name` (`f_user_name`); -- -- Indexes for table `marks` -- ALTER TABLE `marks` ADD PRIMARY KEY (`m_id`), ADD KEY `m_f_id` (`m_f_id`), ADD KEY `m_s_id` (`m_s_id`); -- -- Indexes for table `students` -- ALTER TABLE `students` ADD PRIMARY KEY (`s_id`), ADD UNIQUE KEY `s_name` (`s_name`), ADD UNIQUE KEY `s_roll` (`s_roll`), ADD KEY `s_sup_id` (`s_sup_id`), ADD KEY `s_ex1_id` (`s_ex1_id`), ADD KEY `s_ex2_id` (`s_ex2_id`), ADD KEY `s_ex3_id` (`s_ex3_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `faculty` -- ALTER TABLE `faculty` MODIFY `f_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `marks` -- ALTER TABLE `marks` MODIFY `m_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=248; -- -- AUTO_INCREMENT for table `students` -- ALTER TABLE `students` MODIFY `s_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=64; -- -- Constraints for dumped tables -- -- -- Constraints for table `marks` -- ALTER TABLE `marks` ADD CONSTRAINT `marks_ibfk_1` FOREIGN KEY (`m_f_id`) REFERENCES `faculty` (`f_id`), ADD CONSTRAINT `marks_ibfk_2` FOREIGN KEY (`m_s_id`) REFERENCES `students` (`s_id`); -- -- Constraints for table `students` -- ALTER TABLE `students` ADD CONSTRAINT `students_ibfk_1` FOREIGN KEY (`s_sup_id`) REFERENCES `faculty` (`f_id`), ADD CONSTRAINT `students_ibfk_2` FOREIGN KEY (`s_ex1_id`) REFERENCES `faculty` (`f_id`), ADD CONSTRAINT `students_ibfk_3` FOREIGN KEY (`s_ex2_id`) REFERENCES `faculty` (`f_id`), ADD CONSTRAINT `students_ibfk_4` FOREIGN KEY (`s_ex3_id`) REFERENCES `faculty` (`f_id`); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
UPDATE public.game_item_chances SET chance = 20 WHERE item_uuid = 'e79bc08f-0052-4ee3-ac79-51edcc454a48'; UPDATE public.versions SET value = 22 WHERE name = 'schema';
DROP TABLE IF EXISTS `ts_announce`; CREATE TABLE `ts_announce` ( `id` int(10) unsigned NOT NULL auto_increment, `uid` int(11) unsigned NOT NULL COMMENT '发布人', `title` varchar(255) NOT NULL DEFAULT '', `content` text, `sid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '学校', `sid1` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '院系', `cid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分类', `isDel` tinyint(1) NOT NULL default '0', `readCount` int(11) unsigned NOT NULL default '0', `cTime` int(11) unsigned default NULL, `uTime` int(11) unsigned default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `ts_announce_category`; CREATE TABLE `ts_announce_category` ( `id` mediumint(5) NOT NULL auto_increment, `title` varchar(255) NOT NULL, `pid` mediumint(5) NOT NULL default '0', `display_order` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT INTO `ts_announce_category` (`id`,`title`) VALUES (1,'校内通知1'), (2,'校内通知2'), (3,'校内通知3'); REPLACE INTO `ts_system_data` (`uid`,`list`,`key`,`value`,`mtime`) VALUES (0,'announce','version_number','s:1:"1";','2012-11-08 00:00:00'); DROP TABLE IF EXISTS `ts_notice`; CREATE TABLE `ts_notice` ( `id` int(10) unsigned NOT NULL auto_increment, `uid` int(11) unsigned NOT NULL COMMENT '发布人', `front` varchar(255) NOT NULL DEFAULT '' COMMENT '副标题', `title` varchar(255) NOT NULL DEFAULT '', `content` text, `cid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分类', `isDel` tinyint(1) NOT NULL default '0', `cTime` int(11) unsigned default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; ALTER TABLE `ts_notice` CHANGE `cTime` `cTime` DATE NOT NULL;
prompt --application/shared_components/logic/application_items/g_blogger_id begin -- Manifest -- APPLICATION ITEM: G_BLOGGER_ID -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2021.10.15' ,p_release=>'21.2.6' ,p_default_workspace_id=>18303204396897713 ,p_default_application_id=>402 ,p_default_id_offset=>0 ,p_default_owner=>'BLOG_040000' ); wwv_flow_api.create_flow_item( p_id=>wwv_flow_api.id(8905163685110392) ,p_name=>'G_BLOGGER_ID' ,p_protection_level=>'I' ,p_item_comment=>'User ID' ); wwv_flow_api.component_end; end; /
<reponame>yangzhaofeng/docker-freeradius GRANT SELECT ON {{MYSQL_DATEBASE}}.* TO '{{MYSQL_USERNAME}}'@'%' IDENTIFIED BY '{{MYSQL_PASSWORD}}'; GRANT ALL on {{MYSQL_DATEBASE}}.radacct TO '{{MYSQL_USERNAME}}'@'%'; GRANT ALL on {{MYSQL_DATEBASE}}.radpostauth TO '{{MYSQL_USERNAME}}'@'%';
<reponame>DewiMamluatul/Tugas-CI<filename>mahasiswa.sql -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 27 Nov 2019 pada 01.44 -- Versi server: 10.1.36-MariaDB -- Versi PHP: 5.6.38 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: `phpmvc` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `mahasiswa` -- CREATE TABLE `mahasiswa` ( `id` int(11) NOT NULL, `nama` varchar(100) NOT NULL, `nrp` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `jurusan` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `mahasiswa` -- INSERT INTO `mahasiswa` (`id`, `nama`, `nrp`, `email`, `jurusan`) VALUES (2, '<NAME>', '0823300842', '<EMAIL>', 'Rekayasa Perangkat Lunak'), (3, '<NAME>', '0823300843', '<EMAIL>', 'Teknik Komputer dan Jaringan'), (5, 'Arvino Xavier', '0823300845', '<EMAIL>', 'Teknik Sepeda Motor'), (6, '<NAME>', '0823300841', '<EMAIL>', 'Rekayasa Perangkat Lunak'), (12, '<NAME>', '0823300846', '<EMAIL>', 'Multimedia'), (13, '<NAME>', '0812345', '<EMAIL>', 'Rekayasa Perangkat Lunak'); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `mahasiswa` -- ALTER TABLE `mahasiswa` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `mahasiswa` -- ALTER TABLE `mahasiswa` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; 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 */;