sql
stringlengths
6
1.05M
<reponame>guihome-diaz/travel-history-generator -- Specific Oracle PL/SQL code -- Indexes (performances). Use "UPPER" or "LOWER" for items that must be unique no matter the case CREATE INDEX LABELS_CODE_IDX ON LABELS (UPPER(CODE)); CREATE INDEX LABELS_ACTIVE_CODE_IDX ON LABELS (UPPER(CODE), IS_ACTIVE); -- Modification date event handling CREATE OR REPLACE TRIGGER LABELS_TRIGGER_UPDATE BEFORE UPDATE ON LABELS for each row begin :new.MODIFICATION_DATE := sysdate; :new.VERSION := :old.VERSION + 1; end; /
<reponame>axel80/mobileLaravelTest<filename>mobile-db.sql -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 21-02-2017 a las 21:21:04 -- Versión del servidor: 5.7.16-0ubuntu0.16.04.1 -- Versión de PHP: 7.1.1-1+deb.sury.org~xenial+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 */; -- -- Base de datos: `mobile-db` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `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; -- -- Volcado de datos para la tabla `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (3, '2014_10_12_000000_create_users_table', 1), (4, '2014_10_12_100000_create_password_resets_table', 1); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `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; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `user_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT 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; -- -- Volcado de datos para la tabla `users` -- INSERT INTO `users` (`id`, `user_name`, `name`, `email`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'axelsarce', '<PASSWORD>', '<EMAIL>', <PASSWORD>', NULL, '2017-02-21 15:20:34', '2017-02-21 15:20:34'), (2, 'test', 'TEST_USER', '<EMAIL>', '$2y$10$cOXdDTaDGoVbQ606eY7N2.NED/8SE51Qjobq84mDDb3lFDtrhc7CK', NULL, '2017-02-21 15:20:34', '2017-02-21 15:20:34'), (3, 'wtromp', 'Quinten', '<EMAIL>', '$2y$10$vtnSNXd1scjpVY6LLhEXq.vAZbRiNEedaBFT0PeHHhfohjbne7HG6', 'Gck0G65j9A', '2017-02-21 15:20:35', '2017-02-21 15:20:36'), (4, 'rosalia.stroman', 'Pat', '<EMAIL>', '$2y$10$HaJe7tivdcv1FxytxygWju0YCWJsfwDss8sosoEmS9gorcF.UWVuS', 'uB8StLVjtj', '2017-02-21 15:20:35', '2017-02-21 15:20:36'), (5, 'johanna04', 'Angelita', '<EMAIL>', '$2y$10$zZNBzx6VdWtKpI7ayn/qn.nxpoj6hEM/J3csLZQ6ZuE1686fv0GY.', 'w6B2VaO4Bc', '2017-02-21 15:20:35', '2017-02-21 15:20:36'), (6, 'orville40', 'Erna', '<EMAIL>', '$2y$10$E2cPoIcYjgcMez2PLgDibeU1WAIQi4PYkWxwJ9O7e8zjYh08dE9Ke', 'Mvpw1JdZLC', '2017-02-21 15:20:35', '2017-02-21 15:20:36'), (7, 'garrick40', 'Kaci', '<EMAIL>', '$2y$10$HJzv.oETlAY78aQtuvC5B.StQWsuecExKqCS2kq1F.X9IjefD4bfW', 'CfRCJ5ceUS', '2017-02-21 15:20:35', '2017-02-21 15:20:36'), (8, 'hvolkman', 'Roy', '<EMAIL>', '$2y$10$Y3Q6YeZujxmh3mRjyAbJRupBQy9WnLF2xPqB1fmBtdvxcuesuk5Ce', 'ODLPlju6sB', '2017-02-21 15:20:35', '2017-02-21 15:20:36'), (9, 'roosevelt.gleason', 'Keanu', '<EMAIL>', '$2y$10$SekMomKTbN42rdTzo3dyZO5W3q1XOxqtfGxKK3e37wLd35046bTtS', 'US57uwHmjN', '2017-02-21 15:20:35', '2017-02-21 15:20:36'), (10, 'dallas.emard', 'Bobby', '<EMAIL>', '$2y$10$G.KmZbGb8RYIWrDSUZZ1M.4gzm/sG.wEurNHmoOajZH401I8rO76y', 'gxBtvgUomN', '2017-02-21 15:20:35', '2017-02-21 15:20:36'), (11, 'ignacio45', 'Braulio', '<EMAIL>', '$2y$10$GCjbE0Hr2osEo0qzitOZ5OMkauRnTHc6YXzdMpPx5a6xSSZhcskeO', 'm0T4nFsIPM', '2017-02-21 15:20:35', '2017-02-21 15:20:36'), (12, 'yhermiston', 'Asha', '<EMAIL>', '$2y$10$IBS48.YQbt06gq5ldXmFgOPo9Wrns4XxSa6MfZvNb/nN.p3sEdJ6C', 'TfcJZMue8d', '2017-02-21 15:20:36', '2017-02-21 15:20:36'), (13, 'dcrooks', 'Hertha', '<EMAIL>', '$2y$10$CQs4FsgSFhk0oZYHJVRNjer7hsuhA8AyNfzQ/1jExNFmwNg6kvZVC', 'W6MV2jobBV', '2017-02-21 15:20:36', '2017-02-21 15:20:36'), (14, 'brosenbaum', 'Meda', '<EMAIL>', '$2y$10$OUH/R7XQNpwW0x4EGBsGUejxS1/0Fn5A1QauR3.hpqmGB47iHL5qK', '5tFS8Mahx5', '2017-02-21 15:20:36', '2017-02-21 15:20:36'), (15, 'steve27', 'Lilly', '<EMAIL>', '$2y$10$XrC0oNXZmYTFPxA12K6rHOIb9k8LNIOkYedcPni1wDHypiXYSkUpe', 'YIeFK6dULU', '2017-02-21 15:20:36', '2017-02-21 15:20:36'), (16, 'wintheiser.branson', 'Tyler', '<EMAIL>', '$2y$10$ft7y3kjRoBKlezsMBhcVdOG0/XwK4U0ouf3UVDkUYeeEMe/gmUngu', 'AdT6p7Iv2V', '2017-02-21 15:20:36', '2017-02-21 15:20:36'), (17, 'skye.greenfelder', 'Caden', '<EMAIL>', '$2y$10$QyRF4Gf9OXT.AkNwY0bAGOe8PH3nZAm2DV8xs8ScLTFy.AJPd0d2e', 'WaC3L5vbBa', '2017-02-21 15:20:36', '2017-02-21 15:20:36'), (18, 'oconnell.elbert', 'Lexus', '<EMAIL>', '$2y$10$bnUqHHC.ykg3urhzW33Z.eUxCc4sIFP/Wvu5dKWXXeHDMyLHy6sBO', 'eg1388fzGY', '2017-02-21 15:20:36', '2017-02-21 15:20:36'), (19, 'kub.conner', 'Andres', '<EMAIL>', '$2y$10$Hp5cvNIthiw0FUQRYgJ6BOT5b1RD5SgcNz74pkirbUTgntVce4swu', 'CnlqNmpSt0', '2017-02-21 15:20:36', '2017-02-21 15:20:36'), (20, 'leola.auer', 'Ayla', '<EMAIL>', '$2y$10$qrJaJh7AAH1RAGtg0ARbz.ORDYq2fREbb6PoDjc2P6wPjMykOkZXa', 'epbMsXFACi', '2017-02-21 15:20:36', '2017-02-21 15:20:36'), (21, 'jacquelyn.quigley', 'Annette', '<EMAIL>', '$2y$10$A4wBU3TJFENGW0XbSF/jMeir0BRcKA8oNz.2vjGyX370ZTk2M/bvy', 'C4EGg6462d', '2017-02-21 15:20:36', '2017-02-21 15:20:36'), (22, 'fvonrueden', 'Danyka', '<EMAIL>', '$2y$10$.6t9jAWAeyUWIiKnjoTS7eDBr9dChC6qTg9McLvEUKn2QRLBwwKtC', 'bAX1qDGqxr', '2017-02-21 15:20:36', '2017-02-21 15:20:36'); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`), ADD KEY `password_resets_token_index` (`token`); -- -- Indices de la tabla `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT de la tabla `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; /*!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 */;
-- Schema for eatdaburger db create database if not exists burgers_db; use burgers_db; create table burgers ( id int not null auto_increment, burger_name varchar(100) not null, devoured bool default false, time_stamp timestamp default current_timestamp, primary key (id) );
CREATE TABLE [dbo].[WebsiteDomains] ( [websiteId] INT NOT NULL, [domain] NVARCHAR (50) NOT NULL, [datecreated] DATETIME NOT NULL, [googletoken] VARCHAR (MAX) NULL, [googleprofileId] VARCHAR (20) NULL, [googlewebpropertyId] VARCHAR (20) NULL, CONSTRAINT [PK_WebsiteDomains] PRIMARY KEY ([domain]) ); GO CREATE INDEX [index_websiteDomains] ON [dbo].[WebsiteDomains] (websiteId)
BEGIN; CREATE TABLE IF NOT EXISTS user ( id VARCHAR(150) PRIMARY KEY, full_name TEXT NOT NULL, display_name TEXT NOT NULL, member_since TEXT NOT NULL ); CREATE TABLE IF NOT EXISTS user_token ( user_id VARCHAR(150) PRIMARY KEY, access_token TEXT NOT NULL, token_type TEXT NOT NULL, refresh_token TEXT NOT NULL, expiration DATETIME NOT NULL ); CREATE TABLE IF NOT EXISTS heart_data ( user_id VARCHAR(150) NOT NULL, date DATETIME NOT NULL, value INT NOT NULL, PRIMARY KEY (user_id, date) ); CREATE TABLE IF NOT EXISTS heart_rest ( user_id VARCHAR(150) NOT NULL, date DATETIME NOT NULL, value INT NOT NULL, PRIMARY KEY (user_id, date) ); CREATE TABLE IF NOT EXISTS heart_zone ( user_id VARCHAR(150) NOT NULL, date DATETIME NOT NULL, type VARCHAR(150) NOT NULL, minutes INT NOT NULL, calories INT NOT NULL, PRIMARY KEY (user_id, date, type) ); CREATE INDEX heart_data_value ON heart_data (value); CREATE INDEX heart_rest_value ON heart_rest (value); CREATE INDEX heart_zone_type ON heart_zone (type); COMMIT;
-- phpMyAdmin SQL Dump -- version 5.1.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Apr 18, 2022 at 07:14 AM -- Server version: 5.7.33 -- PHP Version: 7.4.19 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: `app_cbt` -- -- -------------------------------------------------------- -- -- Table structure for table `aauth_departement` -- CREATE TABLE `aauth_departement` ( `id` int(4) NOT NULL, `departement` varchar(255) NOT NULL, `definition` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `aauth_departement` -- INSERT INTO `aauth_departement` (`id`, `departement`, `definition`) VALUES (1, 'DPI', 'Doktor Pendidikan Islam'), (2, 'MPI', 'Magister Pendidikan Islam'), (3, 'MTP', 'Magister Teknologi Pendidikan'), (4, 'MES', 'Magister Ekonomi Syariah'), (5, 'MMN', 'Magister Manajemen'); -- -------------------------------------------------------- -- -- Table structure for table `aauth_groups` -- CREATE TABLE `aauth_groups` ( `id` int(11) UNSIGNED NOT NULL, `name` varchar(100) DEFAULT NULL, `definition` text ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `aauth_groups` -- INSERT INTO `aauth_groups` (`id`, `name`, `definition`) VALUES (1, 'Admin', 'Super Admin Group'), (2, 'Public', 'Public Access Group'), (3, 'Mahasiswa', 'Mahasiswa Access Group'); -- -------------------------------------------------------- -- -- Table structure for table `aauth_group_to_group` -- CREATE TABLE `aauth_group_to_group` ( `group_id` int(11) UNSIGNED NOT NULL, `subgroup_id` int(11) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `aauth_login_attempts` -- CREATE TABLE `aauth_login_attempts` ( `id` int(11) NOT NULL, `ip_address` varchar(39) DEFAULT '0', `timestamp` datetime DEFAULT NULL, `login_attempts` tinyint(2) DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `aauth_login_attempts` -- INSERT INTO `aauth_login_attempts` (`id`, `ip_address`, `timestamp`, `login_attempts`) VALUES (2, '127.0.0.1', '2020-09-27 00:10:54', 4), (3, '127.0.0.1', '2022-03-08 10:46:18', 2); -- -------------------------------------------------------- -- -- Table structure for table `aauth_perms` -- CREATE TABLE `aauth_perms` ( `id` int(11) UNSIGNED NOT NULL, `name` varchar(100) DEFAULT NULL, `definition` text ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `aauth_perms` -- INSERT INTO `aauth_perms` (`id`, `name`, `definition`) VALUES (1, 'group_list', ''), (2, 'group_add', NULL), (3, 'group_update', NULL), (4, 'group_delete', NULL), (5, 'group_view', NULL), (6, 'group_export', NULL), (7, 'dashboard', NULL), (9, 'users_list', NULL), (10, 'users_update', NULL), (11, 'users_delete', NULL), (12, 'users_add', NULL), (13, 'user_benned', NULL), (14, 'master_angkatan_delete', ''), (15, 'master_angkatan_list', ''), (16, 'master_angkatan_add', ''), (17, 'master_angkatan_update', ''), (18, 'master_angkatan_view', ''), (24, 'Dosen_add', ''), (25, 'Dosen_update', ''), (26, 'Dosen_view', ''), (27, 'Dosen_delete', ''), (28, 'Dosen_list', ''), (29, 'Master_dosen_add', ''), (30, 'Master_dosen_update', ''), (31, 'Master_dosen_view', ''), (32, 'Master_dosen_delete', ''), (33, 'Master_dosen_list', ''), (34, 'Karyawan_add', ''), (35, 'Karyawan_update', ''), (36, 'Karyawan_view', ''), (37, 'Karyawan_delete', ''), (38, 'Karyawan_list', ''), (39, 'Karyawans_add', ''), (40, 'Karyawans_update', ''), (41, 'Karyawans_view', ''), (42, 'Karyawans_delete', ''), (43, 'Karyawans_list', ''), (44, 'Student_add', ''), (45, 'Student_update', ''), (46, 'Student_view', ''), (47, 'Student_delete', ''), (48, 'Student_list', ''), (49, 'Pejabats_add', ''), (50, 'Pejabats_update', ''), (51, 'Pejabats_view', ''), (52, 'Pejabats_delete', ''), (53, 'Pejabats_list', ''), (54, 'Pejabat_add', ''), (55, 'Pejabat_update', ''), (56, 'Pejabat_view', ''), (57, 'Pejabat_delete', ''), (58, 'Pejabat_list', ''), (64, 'form_template_add', ''), (65, 'form_template_update', ''), (66, 'form_template_view', ''), (67, 'form_template_delete', ''), (68, 'form_template_list', ''), (69, 'daftar_add', ''), (70, 'daftar_update', ''), (71, 'daftar_view', ''), (72, 'daftar_delete', ''), (73, 'daftar_list', ''); -- -------------------------------------------------------- -- -- Table structure for table `aauth_perm_to_group` -- CREATE TABLE `aauth_perm_to_group` ( `perm_id` int(11) UNSIGNED NOT NULL, `group_id` int(11) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `aauth_perm_to_group` -- INSERT INTO `aauth_perm_to_group` (`perm_id`, `group_id`) VALUES (1, 1), (2, 1), (3, 1), (4, 1), (6, 1), (7, 1), (9, 1), (10, 1), (11, 1), (12, 1), (13, 1), (34, 1), (35, 1), (36, 1), (37, 1), (38, 1), (64, 1), (65, 1), (66, 1), (67, 1), (68, 1), (69, 1), (70, 1), (71, 1), (72, 1), (73, 1), (7, 3), (69, 3); -- -------------------------------------------------------- -- -- Table structure for table `aauth_perm_to_user` -- CREATE TABLE `aauth_perm_to_user` ( `perm_id` int(11) UNSIGNED NOT NULL, `user_id` int(11) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `aauth_pms` -- CREATE TABLE `aauth_pms` ( `id` int(11) UNSIGNED NOT NULL, `sender_id` int(11) UNSIGNED NOT NULL, `receiver_id` int(11) UNSIGNED NOT NULL, `title` varchar(255) NOT NULL, `message` text, `date_sent` datetime DEFAULT NULL, `date_read` datetime DEFAULT NULL, `pm_deleted_sender` int(1) DEFAULT NULL, `pm_deleted_receiver` int(1) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `aauth_users` -- CREATE TABLE `aauth_users` ( `id` int(11) UNSIGNED NOT NULL, `email` varchar(100) DEFAULT NULL, `pass` varchar(64) NOT NULL, `username` varchar(100) DEFAULT NULL, `full_name` varchar(128) NOT NULL, `banned` tinyint(1) DEFAULT '0', `avatar` varchar(128) NOT NULL DEFAULT 'default.png', `last_login` datetime DEFAULT NULL, `last_activity` datetime DEFAULT NULL, `date_created` datetime DEFAULT NULL, `forgot_exp` text, `remember_time` datetime DEFAULT NULL, `remember_exp` text, `verification_code` text, `totp_secret` varchar(16) DEFAULT NULL, `ip_address` text, `id_master_prodi` varchar(50) DEFAULT NULL, `id_mahasiswa` int(11) DEFAULT NULL, `delete_at` text ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `aauth_users` -- INSERT INTO `aauth_users` (`id`, `email`, `pass`, `username`, `full_name`, `banned`, `avatar`, `last_login`, `last_activity`, `date_created`, `forgot_exp`, `remember_time`, `remember_exp`, `verification_code`, `totp_secret`, `ip_address`, `id_master_prodi`, `id_mahasiswa`, `delete_at`) VALUES (1, '<EMAIL>', <PASSWORD>', 'asrul', '<NAME>', 0, '20200729093029-LOGO_UIKA_Terbaru2.png', '2022-04-18 09:31:49', '2022-04-18 09:31:49', '2020-07-29 09:30:29', NULL, NULL, NULL, NULL, NULL, '127.0.0.1', '6', 101, ''), (2, '<EMAIL>', <PASSWORD>', 'user', 'user', 0, 'default.png', '2022-03-10 14:29:03', '2022-03-10 14:29:03', '2022-03-10 14:27:10', NULL, NULL, NULL, NULL, NULL, '192.168.112.59', '6', 100, ''), (4, '<EMAIL>', <PASSWORD>', 'ahmad', 'Ahmad', 0, '20200729093029-LOGO_UIKA_Terbaru2.png', '2022-04-14 14:57:39', '2022-04-14 14:57:39', '2020-07-29 09:30:29', NULL, NULL, NULL, NULL, NULL, '127.0.0.1', '6', 100, NULL), (5, '<EMAIL>', <PASSWORD>', 'student', 'Rusti', 0, '20220416100005-167858841_4384478648233717_7020433269666150664_n.png', '2022-04-16 10:00:37', '2022-04-16 10:00:37', '2022-04-16 10:00:05', NULL, NULL, NULL, NULL, NULL, '127.0.0.1', '6', 100, NULL); -- -------------------------------------------------------- -- -- Table structure for table `aauth_user_to_departement` -- CREATE TABLE `aauth_user_to_departement` ( `id` int(11) NOT NULL, `id_departement` int(11) NOT NULL, `id_users` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `aauth_user_to_departement` -- INSERT INTO `aauth_user_to_departement` (`id`, `id_departement`, `id_users`) VALUES (1, 2, 4), (2, 6, 5), (3, 3, 6), (4, 1, 7), (5, 1, 8), (6, 5, 9), (7, 3, 10), (8, 2, 11), (9, 1, 3), (10, 6, 355), (11, 6, 356), (12, 6, 357), (13, 6, 358), (14, 6, 359), (15, 6, 360), (16, 6, 361), (17, 6, 362), (18, 6, 363), (19, 6, 364), (20, 3, 432), (21, 6, 433), (22, 6, 2), (23, 4, 3), (24, 1, 5); -- -------------------------------------------------------- -- -- Table structure for table `aauth_user_to_group` -- CREATE TABLE `aauth_user_to_group` ( `user_id` int(11) UNSIGNED NOT NULL, `group_id` int(11) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `aauth_user_to_group` -- INSERT INTO `aauth_user_to_group` (`user_id`, `group_id`) VALUES (1, 1), (2, 1), (4, 3), (5, 3); -- -------------------------------------------------------- -- -- Table structure for table `aauth_user_variables` -- CREATE TABLE `aauth_user_variables` ( `id` int(11) UNSIGNED NOT NULL, `user_id` int(11) UNSIGNED NOT NULL, `data_key` varchar(100) NOT NULL, `value` text ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `app_kegiatan` -- CREATE TABLE `app_kegiatan` ( `id` int(11) NOT NULL, `uri` varchar(255) NOT NULL, `jenis_kegiatan` varchar(255) NOT NULL, `prodi_id` int(11) NOT NULL, `nama_kegiatan` varchar(255) NOT NULL, `konten` text NOT NULL, `biaya_registrasi` float NOT NULL, `banner` varchar(255) NOT NULL, `tanggal_kegiatan` datetime NOT NULL, `tanggal_registrasi_awal` datetime NOT NULL, `tanggal_registrasi_akhir` datetime NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_at` tinyint(4) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `app_kegiatan` -- INSERT INTO `app_kegiatan` (`id`, `uri`, `jenis_kegiatan`, `prodi_id`, `nama_kegiatan`, `konten`, `biaya_registrasi`, `banner`, `tanggal_kegiatan`, `tanggal_registrasi_awal`, `tanggal_registrasi_akhir`, `created_at`, `update_at`) VALUES (16, 'workshop-penulisan-jurnal-ilmiah-dan-pencegahan-plagiasi-1639188000', 'Workshop', 4, 'Workshop Penulisan Jurnal Ilmiah dan Pencegahan Plagiasi ', '', 202000, '20211208134734-whatsapp_image_2021-12-07_at_21_58_02.jpeg', '2021-12-11 09:00:00', '2021-12-07 09:00:00', '2021-12-10 23:00:00', '2021-12-07 06:10:25', 0); -- -------------------------------------------------------- -- -- Table structure for table `app_konfirmasi` -- CREATE TABLE `app_konfirmasi` ( `id` int(11) NOT NULL, `registrasi_id` int(11) NOT NULL, `register_uid` varchar(20) NOT NULL, `total_bayar` int(11) NOT NULL, `bukti_pembayaran` varchar(255) NOT NULL, `status` int(11) NOT NULL DEFAULT '2', `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `update_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `app_konfirmasi` -- INSERT INTO `app_konfirmasi` (`id`, `registrasi_id`, `register_uid`, `total_bayar`, `bukti_pembayaran`, `status`, `created_at`, `update_at`) VALUES (4, 43, 'MMN016100', 202100, 'MMN016100-20211207215545-screenshot_20211207-215503_bsi_mobile.jpg', 2, '2021-12-07 14:55:45', NULL); -- -------------------------------------------------------- -- -- Table structure for table `app_menu` -- CREATE TABLE `app_menu` ( `id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `url` varchar(255) NOT NULL, `slug` varchar(255) NOT NULL, `type` enum('menu','label') NOT NULL DEFAULT 'menu', `menu_category` enum('backend','frontend') NOT NULL DEFAULT 'frontend', `menu_parent` int(11) DEFAULT NULL, `menu_icon` varchar(128) NOT NULL DEFAULT 'fa fa-circle-o', `menu_position` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `delete_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `app_menu` -- INSERT INTO `app_menu` (`id`, `name`, `url`, `slug`, `type`, `menu_category`, `menu_parent`, `menu_icon`, `menu_position`, `created_at`, `update_at`, `delete_at`) VALUES (1, 'Dashboard', 'admin/dashboard', 'admin/dashboard', 'menu', 'backend', NULL, 'fa fa-dashboard', 0, '2020-07-26 07:56:56', NULL, NULL), (2, 'Buat Jadwal', 'admin/jadwal', 'admin/jadwal', 'menu', 'frontend', NULL, 'fa fa-calendar-plus-o ', 1, '2020-07-26 07:56:56', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `app_pengajuan` -- CREATE TABLE `app_pengajuan` ( `id` int(11) NOT NULL, `npm` varchar(50) DEFAULT NULL, `ujian` varchar(50) DEFAULT NULL, `angkatan_id` int(11) DEFAULT NULL, `prodi_id` int(11) DEFAULT NULL, `thesis` text, `status` enum('Y','N') DEFAULT 'N' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `app_pengajuan` -- INSERT INTO `app_pengajuan` (`id`, `npm`, `ujian`, `angkatan_id`, `prodi_id`, `thesis`, `status`) VALUES (6, '662651', 'kompre', 2, 1, 'tracer', 'N'), (7, '662660', 'kompre', 1, 2, 'Fery sidang ', 'N'); -- -------------------------------------------------------- -- -- Table structure for table `app_registrasi` -- CREATE TABLE `app_registrasi` ( `id` int(11) NOT NULL, `uid` varchar(11) NOT NULL, `unom` int(11) NOT NULL, `kegiatan_id` int(11) NOT NULL, `nama` varchar(255) NOT NULL, `no_hp` varchar(20) NOT NULL, `instansi` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `status_pembayaran` int(11) NOT NULL DEFAULT '0', `register_date` date NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `app_registrasi` -- INSERT INTO `app_registrasi` (`id`, `uid`, `unom`, `kegiatan_id`, `nama`, `no_hp`, `instansi`, `email`, `status_pembayaran`, `register_date`, `created_at`, `update_at`) VALUES (43, 'MMN016100', 100, 16, '<NAME>', '08121910697', 'Magister Manajemen Sekolah Pascasarjana Universitas Ibnu Khaldun', '<EMAIL>', 2, '2021-12-07', '2021-12-07 14:53:03', '0000-00-00 00:00:00'), (44, 'MMN016101', 101, 16, '<NAME>', '087878767678', 'IPB', '<EMAIL>', 4, '2021-12-07', '2021-12-07 15:13:10', '0000-00-00 00:00:00'), (45, 'MMN016102', 102, 16, '<NAME>', '087872136707', 'MM', '<EMAIL>', 4, '2021-12-08', '2021-12-07 20:52:17', '0000-00-00 00:00:00'), (46, 'MMN016103', 103, 16, '<NAME>', '085893817358', 'IBI Kesatuan', '<EMAIL>', 4, '2021-12-08', '2021-12-07 22:30:18', '0000-00-00 00:00:00'), (47, 'MMN016104', 104, 16, 'Maryani', '082228198055', 'Departemen MSP FPIK IPB', '<EMAIL>', 4, '2021-12-09', '2021-12-09 06:29:29', '0000-00-00 00:00:00'), (48, 'MMN016105', 105, 16, '<NAME>', '081380248795', 'Universitas Ibnu Khaldun', '<EMAIL>', 4, '2021-12-09', '2021-12-09 06:33:04', '0000-00-00 00:00:00'), (49, 'MMN016106', 106, 16, '<NAME>', '087878767668', 'IPB', '<EMAIL>', 4, '2021-12-09', '2021-12-09 08:55:11', '0000-00-00 00:00:00'), (50, 'MMN016107', 107, 16, '<NAME>', '085773832281', 'Pemkab bogor', '<EMAIL>', 4, '2021-12-09', '2021-12-09 08:59:30', '0000-00-00 00:00:00'), (51, 'MMN016108', 108, 16, '<NAME> ', '085772400599', 'RSUD Kota Bogor/Sekolah Pasca Sarjana UIKA', '<EMAIL>', 4, '2021-12-09', '2021-12-09 09:06:26', '0000-00-00 00:00:00'), (52, 'MMN016109', 109, 16, '<NAME> ', '087878767678', 'IPB', '<EMAIL>', 4, '2021-12-09', '2021-12-09 09:09:53', '0000-00-00 00:00:00'), (54, 'MMN016110', 110, 16, 'Benawa', '081315735899', '', '<EMAIL>', 4, '2021-12-09', '2021-12-09 15:16:58', '0000-00-00 00:00:00'), (55, 'MMN016111', 111, 16, '<NAME>', '087711172026', '<NAME>', '<EMAIL>', 4, '2021-12-10', '2021-12-10 03:20:29', '0000-00-00 00:00:00'), (56, 'MMN016112', 112, 16, '<NAME>', '081389734548', 'RSUP Nasional dr Cipto Mangunkusumo', '<EMAIL>', 4, '2021-12-10', '2021-12-10 05:21:46', '0000-00-00 00:00:00'), (57, 'MMN016113', 113, 16, '<NAME>', '082226383379', 'IPB', '<EMAIL>', 4, '2021-12-10', '2021-12-10 05:27:02', '0000-00-00 00:00:00'), (58, 'MMN016114', 114, 16, '<NAME>, S.M.', '08128932078', 'MM UIKA', '<EMAIL>', 4, '2021-12-10', '2021-12-10 05:36:29', '0000-00-00 00:00:00'), (59, 'MMN016115', 115, 16, 'Soejarwati', '082170245392', 'Universitas Ibn Khaldun Bogor', '<EMAIL>', 4, '2021-12-10', '2021-12-10 06:46:36', '0000-00-00 00:00:00'), (60, 'MMN016116', 116, 16, '<NAME>', '08561160780', 'PT.PP (Persero), Tbk', '<EMAIL>', 4, '2021-12-10', '2021-12-10 08:34:56', '0000-00-00 00:00:00'), (61, 'MMN016117', 117, 16, 'Benawa', '081315735899', '', '<EMAIL>', 4, '2021-12-10', '2021-12-10 15:42:19', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `app_settings` -- CREATE TABLE `app_settings` ( `id` int(11) NOT NULL, `app_name` varchar(255) NOT NULL DEFAULT 'SICICMS', `description` text, `institute` varchar(255) DEFAULT NULL, `address` text, `logo` varchar(128) NOT NULL DEFAULT 'default.png', `favicon` varchar(128) NOT NULL DEFAULT 'default.ico', `setting_optional` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `app_settings` -- INSERT INTO `app_settings` (`id`, `app_name`, `description`, `institute`, `address`, `logo`, `favicon`, `setting_optional`) VALUES (1, 'APP - JADWAL', NULL, 'Sekolah Pascasarjana UIKA BOGOR', 'Jl. KH. Sholeh Iskandar Km, 2', 'default.png', 'default.ico', ''); -- -------------------------------------------------------- -- -- Table structure for table `bank_soal` -- CREATE TABLE `bank_soal` ( `id` int(11) NOT NULL, `id_master_prodi` int(11) NOT NULL, `title_soal` varchar(255) DEFAULT NULL, `bobot` int(11) NOT NULL, `type_soal` enum('multiplechoice','essay') NOT NULL, `file` varchar(255) NOT NULL, `tipe_file` varchar(255) NOT NULL, `pertanyaan` longtext NOT NULL, `opsi_a` longtext NOT NULL, `opsi_b` longtext NOT NULL, `opsi_c` longtext NOT NULL, `opsi_d` longtext NOT NULL, `opsi_e` longtext NOT NULL, `file_a` varchar(255) DEFAULT NULL, `file_b` varchar(255) DEFAULT NULL, `file_c` varchar(255) DEFAULT NULL, `file_d` varchar(255) DEFAULT NULL, `file_e` varchar(255) DEFAULT NULL, `jawaban` varchar(255) NOT NULL, `created_at` int(11) DEFAULT NULL, `update_at` int(11) DEFAULT NULL, `created_by` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `bank_soal` -- INSERT INTO `bank_soal` (`id`, `id_master_prodi`, `title_soal`, `bobot`, `type_soal`, `file`, `tipe_file`, `pertanyaan`, `opsi_a`, `opsi_b`, `opsi_c`, `opsi_d`, `opsi_e`, `file_a`, `file_b`, `file_c`, `file_d`, `file_e`, `jawaban`, `created_at`, `update_at`, `created_by`) VALUES (53, 1, '', 1, 'multiplechoice', '', '', 'Lanjutkan irama dari bilangan-bilangan pada tiap nomor soal dengan memilih sepasang bilangan dari lima pasang bilangan yang tersedia sebagai jawaban. \\n 94 88 82 76 70 64 ... …', '60 dan 54', '70 dan 68', '56 dan 50', '52 dan 60', '58 dan 52', NULL, NULL, NULL, NULL, NULL, 'E', 1591517741, 1591517741, 35), (54, 1, '', 1, 'multiplechoice', '', '', 'Lanjutkan irama dari bilangan-bilangan pada tiap nomor soal dengan memilih sepasang bilangan dari lima pasang bilangan yang tersedia sebagai jawaban. \\n 18  20  24  32 ... ...', '34 dan 36', '40 dan 48', '29 dan 45', '46 dan 80 ', '64 dan 128', NULL, NULL, NULL, NULL, NULL, 'D', 1591517741, 1591517741, 35), (55, 1, '', 1, 'multiplechoice', '', '', 'Lanjutkan irama dari bilangan-bilangan pada tiap nomor soal dengan memilih sepasang bilangan dari lima pasang bilangan yang tersedia sebagai jawaban. \\n 6  7  9  13  21 ... ...', '37 dan 69', '37 dan 53', '29 dan 45', '29 dan 37', '23 dan 25', NULL, NULL, NULL, NULL, NULL, 'A', 1591517741, 1591517741, 35), (56, 1, '', 1, 'multiplechoice', '', '', 'Lanjutkan irama dari bilangan-bilangan pada tiap nomor soal dengan memilih sepasang bilangan dari lima pasang bilangan yang tersedia sebagai jawaban. \\n 96  64  48  40 36 ... ...', '35 dan 34', '34 dan 33', '34 dan 32', '33 dan 32', '32 dan 30', NULL, NULL, NULL, NULL, NULL, 'B', 1591517741, 1591517741, 35), (57, 1, '', 1, 'multiplechoice', '', '', 'Lanjutkan irama dari bilangan-bilangan pada tiap nomor soal dengan memilih sepasang bilangan dari lima pasang bilangan yang tersedia sebagai jawaban. \\n 1/9 1/3 1 3 9 27 ... ...', '9 dan 1', '27 dan 89', '81 dan 243', '21 dan 35', '90 dan 210', NULL, NULL, NULL, NULL, NULL, 'C', 1591517741, 1591517741, 35), (58, 1, '', 1, 'multiplechoice', '', '', 'Lanjutkan irama dari bilangan-bilangan pada tiap nomor soal dengan memilih sepasang bilangan dari lima pasang bilangan yang tersedia sebagai jawaban. \\n 12 9 10 9 8 9 ... ...', '10 dan 9', '12 dan 9', '7 dan 9', '9 dan 8', '6 dan 9', NULL, NULL, NULL, NULL, NULL, 'E', 1591517741, 1591517741, 35), (59, 1, '', 1, 'multiplechoice', '', '', 'Lanjutkan irama dari bilangan-bilangan pada tiap nomor soal dengan memilih sepasang bilangan dari lima pasang bilangan yang tersedia sebagai jawaban. \\n 4 4 8 4 16 4 ... ...', '12 dan 44', '32 dan 4', '4 dan 8', '16 dan 20', '4 dan 16', NULL, NULL, NULL, NULL, NULL, 'B', 1591517741, 1591517741, 35), (60, 1, '', 1, 'multiplechoice', '', '', 'Lanjutkan irama dari bilangan-bilangan pada tiap nomor soal dengan memilih sepasang bilangan dari lima pasang bilangan yang tersedia sebagai jawaban. \\n 18 10 20 12 24 16 ... ...', '8 dan 16', '20 dan 28', '32 dan 24', '32 dan 40', '9 dan 3', NULL, NULL, NULL, NULL, NULL, 'C', 1591517741, 1591517741, 35), (61, 1, '', 1, 'multiplechoice', '', '', 'Lanjutkan irama dari bilangan-bilangan pada tiap nomor soal dengan memilih sepasang bilangan dari lima pasang bilangan yang tersedia sebagai jawaban. \\n 5 6 10 12 20 24 ... ...', '28 dan 32', '40 dan 48', '12 dan 40', '28 dan 40', '48 dan 64', NULL, NULL, NULL, NULL, NULL, 'B', 1591517741, 1591517741, 35), (62, 1, '', 1, 'multiplechoice', '', '', 'Lanjutkan irama dari bilangan-bilangan pada tiap nomor soal dengan memilih sepasang bilangan dari lima pasang bilangan yang tersedia sebagai jawaban. \\n 9 9 9 6 9 3 ... ...', '9 dan 9', '3 dan 9', '3 dan 6', '6 dan 3', '9 dan 10', NULL, NULL, NULL, NULL, NULL, 'E', 1591517741, 1591517741, 35), (63, 1, '', 1, 'multiplechoice', '', '', 'Lanjutkan irama dari bilangan-bilangan pada tiap nomor soal dengan memilih sepasang bilangan dari lima pasang bilangan yang tersedia sebagai jawaban. \\n 20 24 12 16 8 12 ... ...', '6 dan 10', '18 dan 9', '22 dan 32', '4 dan 24', '20 dan 32', NULL, NULL, NULL, NULL, NULL, 'A', 1591517741, 1591517741, 35), (64, 1, '', 1, 'multiplechoice', '', '', 'Lanjutkan irama dari bilangan-bilangan pada tiap nomor soal dengan memilih sepasang bilangan dari lima pasang bilangan yang tersedia sebagai jawaban. \\n 5 6 7 8 9 10 11 14 ... ...', '17 dan 58', '16 dan 20', '14 dan 18', '15 dan 19', '16 dan 24', NULL, NULL, NULL, NULL, NULL, 'D', 1591517741, 1591517741, 35), (65, 1, '', 1, 'multiplechoice', '', '', 'Lanjutkan irama dari bilangan-bilangan pada tiap nomor soal dengan memilih sepasang bilangan dari lima pasang bilangan yang tersedia sebagai jawaban. \\n 1 2 4 5 25 26 ... ...', '254 dan 125', '26 dan 30', '12 dan 104', '27 dan 28', '676 dan 677', NULL, NULL, NULL, NULL, NULL, 'E', 1591517741, 1591517741, 35), (66, 1, '', 1, 'multiplechoice', '', '', 'Lanjutkan irama dari bilangan-bilangan pada tiap nomor soal dengan memilih sepasang bilangan dari lima pasang bilangan yang tersedia sebagai jawaban. \\n 3 7 16 35 74 ... ...', '148 dan 296', '148 dan 301', '153 dan 312', '158 dan 328', '158 dan 322', NULL, NULL, NULL, NULL, NULL, 'C', 1591517741, 1591517741, 35), (67, 1, '', 1, 'multiplechoice', '', '', 'Lanjutkan irama dari bilangan-bilangan pada tiap nomor soal dengan memilih sepasang bilangan dari lima pasang bilangan yang tersedia sebagai jawaban. \\n 1 1 2 3 5 8 ... ...', '12 dan 17', '13 dan 21', '17 dan 21', '14 dan 25', '15 dan 28', NULL, NULL, NULL, NULL, NULL, 'B', 1591517741, 1591517741, 35), (68, 1, '', 1, 'multiplechoice', '35618a1f8b4bd8c6cd50e1969945f89d.PNG', 'image/png', '<p><strong>TES VISUALISASI SPASIAL</strong></p>\r\n\r\n<p>Lanjutkan gambar berikut:</p>\r\n', '', '', '', '', '', '08890ede106007cc7b664415c9f774bc.PNG', '095bf740263794118a63094be81a29d3.PNG', 'c1e1980f8a8641147b734fdecb66c813.PNG', 'ea98647695788b7d6283be85b5b8dfda.PNG', 'd52dca1087e97809d6589dfd4830b449.PNG', 'E', 1591519214, 1591519214, 35), (69, 1, '', 1, 'multiplechoice', '7b3ce597e86026b4145e4fe3bc96926f.PNG', 'image/png', '<p><strong>TES VISUALISASI SPASIAL</strong></p>\r\n\r\n<p>Lanjutkan gambar berikut:</p>\r\n', '', '', '', '', '', 'dc2a8bae442defb4a2ab7053182e2f45.PNG', '8e0a2926b09108427f7fe44cd714cfa8.PNG', '48e3c38d547c3d4f03016773c3058490.PNG', '59d0fdfa9cae9b9173ea92dec4252f9e.PNG', '4df2c89fbaab35a48c33bf692ab47f39.PNG', 'C', 1591519295, 1591519295, 35), (70, 1, '', 1, 'multiplechoice', '76cadf1435790cc714bcddbf31fd5675.PNG', 'image/png', '<p><strong>TES VISUALISASI SPASIAL</strong></p>\r\n\r\n<p>Lanjutkan gambar berikut:</p>\r\n', '', '', '', '', '', 'da87a3c6f9d77280ae272ae220a7f50c.PNG', 'a184aab3c82e464ca80986ab82bc1cd5.PNG', '8c0678428502c7270bbac2b3b12bc661.PNG', 'd8050d0bade045ecc27952ca04fd774d.PNG', '40508eb4ff4b75f5368ec4847ca2b0b3.PNG', 'A', 1591519379, 1591519379, 35), (71, 1, '', 1, 'multiplechoice', '82662d7f3a6313730bf849a25952a311.PNG', 'image/png', '<p><strong>TES VISUALISASI SPASIAL</strong></p>\r\n\r\n<p> </p>\r\n\r\n<p>Lanjutkan gambar berikut:</p>\r\n', '', '', '', '', '', '870cef8c6512d43c0a3730ff46eae968.PNG', '8a223cad4a36e6781630ca224b4a8b66.PNG', '172124c202d5df601cd5cd10008713e8.PNG', '7e23ebf3265be7fcbc72d65dc86e3403.PNG', '0c21d78e16b664c866238056e5280b89.PNG', 'D', 1591519465, 1591519465, 35), (72, 1, '', 1, 'multiplechoice', 'e49399ded56f4fbba655262b255ae427.PNG', 'image/png', '<p><strong>TES VISUALISASI SPASIAL</strong></p>\r\n\r\n<p>Lanjutkan gambar berikut:</p>\r\n', '', '', '', '', '', '98782f68c99cc78b9684637af9821bb7.PNG', '8950cc09c4129fe89166f862452e13f6.PNG', 'd464c25963e2e895141247c06194348b.PNG', '989a6f70f7652fa3ef02d01a7586e059.PNG', '074cfb45be8a6a77852e130f691f90bb.PNG', 'C', 1591519558, 1591519558, 35), (73, 1, '', 1, 'multiplechoice', 'b0e09edb5dd3ea77a6405daa2f49a0a2.PNG', 'image/png', '<p><strong>TES VISUALISASI SPASIAL</strong></p>\r\n\r\n<p>Lanjutkan gambar berikut:</p>\r\n', '', '', '', '', '', 'ab3eab610e2664cd729fee10c561b6be.PNG', '6837c32025401bd2515f04eafcc4f314.PNG', '2bf5eec74de7f2ff882a7957eeb01b11.PNG', '0916412994b76a5ca1b7d7741e085691.PNG', 'fe6e72939db9bf31c49264de5e9d3a7e.PNG', 'C', 1591519650, 1591519650, 35), (74, 1, '', 1, 'multiplechoice', 'f5a8257422f876f6e1b1eaddfde4d4ad.PNG', 'image/png', '<p><strong>TES VISUALISASI SPASIAL</strong></p>\r\n\r\n<p>Lanjutkan gambar berikut:</p>\r\n', '', '', '', '', '', '15fc4b843586bd1e31d5cf8aab60e4a1.PNG', '265f31ec384128daafba98eafc6d6ba3.PNG', '6c56c0f26baab53f3fbb72b54d8b0ea6.PNG', '3dbb19288708c09bf6b5af313cd5a6c6.PNG', 'de0748cb7ae2e75669eb6ade7b3270df.PNG', 'A', 1591519710, 1591519710, 35), (75, 1, '', 1, 'multiplechoice', '6cba86a6d820aca862068cddc21e39f4.PNG', 'image/png', '<p><strong>TES VISUALISASI SPASIAL</strong></p>\r\n\r\n<p>Lanjutkan gambar berikut:</p>\r\n', '', '', '', '', '', 'e019727d4b2f1f9331482a27e500c550.PNG', '46cb161adab70d57077b53232d5b39f7.PNG', 'ee130992bb55d69f4e5b3878e9f5fc75.PNG', '2a6cfc30af714b70c3445625bd6e88b1.PNG', '6e27fe1914b28a50f3cc133aa89b3f7f.PNG', 'C', 1591519854, 1591519854, 35), (76, 1, '', 1, 'multiplechoice', 'd5ea22dd9767bf974f4b5ae887bc0cdb.PNG', 'image/png', '<p><strong>TES VISUALISASI SPASIAL</strong></p>\r\n\r\n<p>Lanjutkan gambar berikut:</p>\r\n', '', '', '', '', '', '1fe2974cef377de9eee75a298a6f745d.PNG', '327dc6f8126b45147c4e37fcde7146ac.PNG', 'bcd775a3a16472153c714fdaa22fdae4.PNG', '6637ff792d3a0b36dd66956a67b02de7.PNG', '5a81b83e43ff77b8a9257ebc719a4f02.PNG', 'C', 1591519922, 1591519922, 35), (77, 1, '', 1, 'multiplechoice', 'c71098484a90e1353e2e4496405141dd.PNG', 'image/png', '<p><strong>TES VISUALISASI SPASIAL</strong></p>\r\n\r\n<p>Lanjutkan gambar berikut:</p>\r\n', '', '', '', '', '', '41b0befb623d98f6508accc9acb3a1af.PNG', 'b35bd5207adf2189b3ec817b0ca9a58a.PNG', '88dd8caaa7964aa99f3eb704586e7b25.PNG', 'c651e548694635029b37e396f779fdf8.PNG', 'eef03c28a8222a8e9c565c73aa41fb0e.PNG', 'E', 1591519980, 1591519980, 35), (78, 1, '', 1, 'multiplechoice', '8acff00548887111a4f4300e808a4dcd.PNG', 'image/png', '<p><strong>TES VISUALISASI SPASIAL</strong></p>\r\n\r\n<p>Lanjutkan gambar berikut:</p>\r\n', '', '', '', '', '', 'b291d0d5034835afcdee5e33a322017b.PNG', '8a0d19c6fd236884fda848a57628dfe0.PNG', '39faca9465b316443d24dcad792d8394.PNG', 'f3bed563cb7d6eeacd33388a3e9aaab0.PNG', NULL, 'D', 1591520076, 1591520076, 35), (79, 1, '', 1, 'multiplechoice', '2f4798c2a1f8dc01c55082d48135c50b.PNG', 'image/png', '<p><strong>TES VISUALISASI SPASIAL</strong></p>\r\n\r\n<p>Lanjutkan gambar berikut:</p>\r\n', '', '', '', '', '', 'f17ba1cc28f8d47be8564d760cef47aa.PNG', '24d529fbac85117ffb6245a8952b079c.PNG', '5a40af7e6c94b5c46be5c637caf310ee.PNG', 'c6c527adb7f9a860045c8958cb98c2a5.PNG', NULL, 'A', 1591520174, 1591520174, 35), (80, 1, '', 1, 'multiplechoice', 'b33dac6c09a8e4ac5c439c9d5386ffbf.PNG', 'image/png', '<p><strong>TES VISUALISASI SPASIAL</strong></p>\r\n\r\n<p>Lanjutkan gambar berikut:</p>\r\n', '', '', '', '', '', '38ed558fbcfcda5128821eaa5393149f.PNG', '5ec58496acba3e5eac07730d55c6747b.PNG', 'eea4eab325caa835371f34583ff9f28d.PNG', '03ae24f49871309196378bd9ab293c47.PNG', NULL, 'B', 1591520248, 1591520248, 35), (81, 1, '', 1, 'multiplechoice', 'a4efd2c68b565fa4ce89f3d629df4b3c.PNG', 'image/png', '<p><strong>TES VISUALISASI SPASIAL</strong></p>\r\n\r\n<p>Lanjutkan gambar berikut:</p>\r\n', '', '', '', '', '', 'e34f4af0b4b597b05329e976f3e62bf4.PNG', '5efccc2ac39b75d7bc242aca6d560fab.PNG', 'fc8ca08e09d5caa9d5f1f9180ecbca13.PNG', 'a8110b12c7ce8beb3a8f55dd0063dddf.PNG', NULL, 'A', 1591520309, 1591520309, 35), (82, 1, '', 1, 'multiplechoice', 'a2a91658370f829d0752c4fca2630c48.PNG', 'image/png', '<p><strong>TES VISUALISASI SPASIAL</strong></p>\r\n\r\n<p>Lanjutkan gambar berikut:</p>\r\n', '', '', '', '', '', '4a9071a87094142e005e403cf1b18cfe.PNG', 'e0f35dd291dd531e6e3b390d36b2c8a6.PNG', 'ab7dd772b56c39b57ce59dbef385f99a.PNG', '276ddf6eba221e77b48e5d482406bfe1.PNG', NULL, 'B', 1591520353, 1591520353, 35), (83, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Menurut saya, tokoh Pendidikan terhebat di Indonesia adalah: ', 'Ki Hajar Dewantoro ', '<NAME>', '<NAME> ', 'Kyai Slamet dari Surakarta', '', NULL, NULL, NULL, NULL, NULL, 'C', 1591529995, 1591529995, 35), (84, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Paham yang selamat adalah: ', 'ahlul kitab wal-risalah', 'ahlus sunnah wal-hikmah ', 'ahlus sunnah wal-jamaah ', 'ahlus sunnah wal-syiah', '', NULL, NULL, NULL, NULL, NULL, 'C', 1591529995, 1591529995, 35), (85, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Ilmu yang menjadi dasar untuk menetapkan hukum Islam adalah:', 'Ilmu muamalah ', 'ilmu ushuluddin ', 'ilmu ushul fiqh ', 'ilmu ushulul-ashl', '', NULL, NULL, NULL, NULL, NULL, 'C', 1591529995, 1591529995, 35), (86, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Hadits Nabi saw mulai dicatat di masa:', 'U<NAME> ', 'Umar bin Khathab ', 'Imam Bukhari ', 'Umar Mukhtar', '', NULL, NULL, NULL, NULL, NULL, 'B', 1591529995, 1591529995, 35), (87, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Al-Quran yang kita warisi sekarang ini dikodifikasi di masa: ', '<NAME> ', '<NAME> ', '<NAME> ', '<NAME>', '', NULL, NULL, NULL, NULL, NULL, 'A', 1591529995, 1591529995, 35), (88, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Penulis Tafsir al-Azhar di Indonesia adalah: ', 'Haji Abdul Malik ', 'KH Hasyim Asyari ', 'Prof Dr <NAME> ', 'KH Azhar Zainuddin', '', NULL, NULL, NULL, NULL, NULL, 'A', 1591529995, 1591529995, 35), (89, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Tokoh Islam pendiri pesantren Tebu Ireng di Jombang adalah:', 'KH Wahab Hasbullah ', 'KH Hasyim Asy’ari ', 'KH Hasyim Latif ', 'KH Wahid Hasyim', '', NULL, NULL, NULL, NULL, NULL, 'B', 1591529995, 1591529995, 35), (90, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Kata yang dekat dengan pendidikan dalam Islam adalah:', 'thalabul ilmi ', 'tarjih ', 'thalabul kalam ', 'thalabul jah.', '', NULL, NULL, NULL, NULL, NULL, 'A', 1591529995, 1591529995, 35), (91, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n The aim of education in Islam is to create a good man according to the aspiration of the student. Terhadap pernyataan itu, saya : ', 'setuju ', 'tidak setuju ', 'ragu-ragu ', '', '', NULL, NULL, NULL, NULL, NULL, 'B', 1591529995, 1591529995, 35), (92, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Makna “Innad diina ‘indallaahil-islam” adalah:', 'Islam satu-satunya agama yang diturunkan Allah kepada para nabi-Nya,', 'Agama-agama yang benar bisa disebut Islam,', 'Semua agama yang berserah diri pada Tuhan dapat disebut Islam', 'Orang yang beragama Islam pasti masuk sorga.', '', NULL, NULL, NULL, NULL, NULL, 'A', 1591529995, 1591529995, 35), (93, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Agama yang dibawa oleh Nabi Isa adalah: ', 'Kristen ', 'ad-Dinul Masih ', 'ad-Dinul Yahuud ', 'agama Nasrani', '', NULL, NULL, NULL, NULL, NULL, 'B', 1591529995, 1591529995, 35), (94, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Nabi yang terkenal karena mengajak ayahnya untuk tidak menyembah setan adalah:', '<NAME> ', '<NAME> ', 'Nabi Yahya ', '<NAME>', '', NULL, NULL, NULL, NULL, NULL, 'D', 1591529995, 1591529995, 35), (95, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Nabi yang oleh kaum Kristen sangat diagungkan sebagai Raja yang agung adalah:', '<NAME> ', '<NAME> ', '<NAME> ', '<NAME>', '', NULL, NULL, NULL, NULL, NULL, 'B', 1591529995, 1591529995, 35), (96, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Aliran yang mengajarkan ada Nabi lagi setelah Nabi Muhammad menamakan dirinya:', 'Muhammadiyah', 'Ahmadiyah ', 'Jahiliyyah ', 'Wahabiyyah', '', NULL, NULL, NULL, NULL, NULL, 'B', 1591529995, 1591529995, 35), (97, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Pahlawan Nasional yang dikenal dengan “Mosi Integral” untuk menyatukan kembali NKRI adalah:', 'KH <NAME> ', '<NAME> ', '<NAME> ', '<NAME>', '', NULL, NULL, NULL, NULL, NULL, 'D', 1591529995, 1591529995, 35), (98, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Penulis Kitab Ihya’ Ulumiddin adalah:', 'Syeikh Nawawi al-Bantani ', 'Imam Nawawi ', 'Imam al-Ghazali ', 'Imam Syafii.', '', NULL, NULL, NULL, NULL, NULL, 'C', 1591529995, 1591529995, 35), (99, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Sahabat Rasulullah saw yang menjadi duta Islam pertama berdakwah di Madinah adalah:', 'Ali bin Abi Thalib ', 'Ammar bin Yasir ', 'Mush’ab bin Umair ', 'Utsman bin Affan', '', NULL, NULL, NULL, NULL, NULL, 'C', 1591529995, 1591529995, 35), (100, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Sahabat Nabi saw yang dijuluki sebagai Singa Allah adalah: ', 'Hamzah bin Abi Thalib ', 'Hamzah bin Abdul Muthalib ', 'Hamzah al-Fansury ', 'Hamzah Ya’qub', '', NULL, NULL, NULL, NULL, NULL, 'B', 1591529995, 1591529995, 35), (101, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Ulama penulis Kitab Ushul Fiqih “ar-Risalah” adalah:', 'Im<NAME>', 'Imam al-Ghazali ', 'Imam al-Syafii ', 'Im<NAME>.', '', NULL, NULL, NULL, NULL, NULL, 'C', 1591529995, 1591529995, 35), (102, 1, '', 1, 'multiplechoice', '', '', 'WAWASAN KEISLAMAN \\n Ilmu yang wajib dimiliki oleh setiap muslim disebut:', 'ilmu ushul fiqih ', 'ilmu ladunni ', 'ilmu riyadhiyyat ', 'ilmu fardhu ‘ain.', '', NULL, NULL, NULL, NULL, NULL, 'D', 1591529995, 1591529995, 35); -- -------------------------------------------------------- -- -- Table structure for table `crud` -- CREATE TABLE `crud` ( `id` int(11) UNSIGNED NOT NULL, `title` varchar(200) NOT NULL, `subject` varchar(200) NOT NULL, `table_name` varchar(200) NOT NULL, `primary_key` varchar(200) NOT NULL, `page_read` varchar(20) DEFAULT NULL, `page_create` varchar(20) DEFAULT NULL, `page_update` varchar(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `crud` -- INSERT INTO `crud` (`id`, `title`, `subject`, `table_name`, `primary_key`, `page_read`, `page_create`, `page_update`) VALUES (4, 'Blog Category', 'Blog Category', 'blog_category', 'category_id', 'yes', 'yes', 'yes'), (5, 'Dosen', 'Dosen', 'master_dosen', 'id', 'yes', 'yes', 'yes'), (6, 'Data Karyawan', 'Data Karyawan', 'karyawans', 'id', 'yes', 'yes', 'yes'), (7, 'Data Siswa', 'Data Siswa', 'students', 'id', 'yes', 'yes', 'yes'), (8, 'Pejabats', 'Pejabats', 'pejabats', 'id', 'yes', 'yes', 'yes'), (9, 'Template Form', 'Template Form', 'mdtemplate_form', 'id', 'yes', 'yes', 'yes'), (10, 'Pendaftaran Ujian', 'Pendaftaran Ujian', 'mhs_daftar', 'id', 'yes', 'yes', 'yes'); -- -------------------------------------------------------- -- -- Table structure for table `crud_custom_option` -- CREATE TABLE `crud_custom_option` ( `id` int(11) UNSIGNED NOT NULL, `crud_field_id` int(11) NOT NULL, `crud_id` int(11) NOT NULL, `option_value` text NOT NULL, `option_label` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `crud_custom_option` -- INSERT INTO `crud_custom_option` (`id`, `crud_field_id`, `crud_id`, `option_value`, `option_label`) VALUES (129, 3331, 6, 'KONTRAK', 'KONTRAK'), (130, 3331, 6, 'KONTRAN FAKULTAS', 'KONTRAN FAKULTAS'), (131, 3331, 6, 'TETAP', 'TETAP'); -- -------------------------------------------------------- -- -- Table structure for table `crud_field` -- CREATE TABLE `crud_field` ( `id` int(11) UNSIGNED NOT NULL, `crud_id` int(11) NOT NULL, `field_name` varchar(200) NOT NULL, `field_label` varchar(200) DEFAULT NULL, `input_type` varchar(200) NOT NULL, `show_column` varchar(10) DEFAULT NULL, `show_add_form` varchar(10) DEFAULT NULL, `show_update_form` varchar(10) DEFAULT NULL, `show_detail_page` varchar(10) DEFAULT NULL, `sort` int(11) NOT NULL, `relation_table` varchar(200) DEFAULT NULL, `relation_value` varchar(200) DEFAULT NULL, `relation_label` varchar(200) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `crud_field` -- INSERT INTO `crud_field` (`id`, `crud_id`, `field_name`, `field_label`, `input_type`, `show_column`, `show_add_form`, `show_update_form`, `show_detail_page`, `sort`, `relation_table`, `relation_value`, `relation_label`) VALUES (1, 1, 'category_id', 'category_id', 'number', '', '', '', 'yes', 1, '', '', ''), (2, 1, 'category_name', 'category_name', 'input', 'yes', 'yes', 'yes', 'yes', 2, '', '', ''), (3, 1, 'category_desc', 'category_desc', 'editor_wysiwyg', 'yes', 'yes', 'yes', 'yes', 3, '', '', ''), (7, 2, 'category_id', 'category_id', 'select', '', '', '', 'yes', 1, 'aauth_groups', 'id', 'name'), (8, 2, 'category_name', 'category_name', 'options', 'yes', 'yes', 'yes', 'yes', 2, 'aauth_groups', 'id', 'name'), (9, 2, 'category_desc', 'category_desc', 'textarea', 'yes', 'yes', 'yes', 'yes', 3, '', '', ''), (10, 3, 'category_id', 'category_id', 'number', '', '', '', 'yes', 1, '', '', ''), (11, 3, 'category_name', 'category_name', 'input', 'yes', 'yes', 'yes', 'yes', 2, '', '', ''), (12, 3, 'category_desc', 'category_desc', 'editor_wysiwyg', 'yes', 'yes', 'yes', 'yes', 3, '', '', ''), (13, 4, 'category_id', 'category_id', 'number', '', '', '', 'yes', 1, '', '', ''), (14, 4, 'category_name', 'category_name', 'input', 'yes', 'yes', 'yes', 'yes', 2, '', '', ''), (15, 4, 'category_desc', 'category_desc', 'datetime', 'yes', 'yes', 'yes', 'yes', 3, '', '', ''), (2516, 7, 'id', 'id', 'input', '', '', '', 'yes', 1, '', '', ''), (2517, 7, 'program_studi_id', 'program studi', 'select', 'yes', 'yes', 'yes', 'yes', 2, 'program_studis', 'id', 'nama'), (2518, 7, 'kelas_id', 'kelas_id', 'number', 'yes', 'yes', 'yes', 'yes', 3, '', '', ''), (2519, 7, 'subkelas_id', 'subkelas_id', 'number', 'yes', 'yes', 'yes', 'yes', 4, '', '', ''), (2520, 7, 'total_semester', 'total_semester', 'number', 'yes', 'yes', 'yes', 'yes', 5, '', '', ''), (2521, 7, 'code', 'code', 'input', 'yes', 'yes', 'yes', 'yes', 6, '', '', ''), (2522, 7, 'nik', 'nik', 'input', 'yes', 'yes', 'yes', 'yes', 7, '', '', ''), (2523, 7, 'nama', 'nama', 'input', 'yes', 'yes', 'yes', 'yes', 8, '', '', ''), (2524, 7, 'email', 'email', 'input', 'yes', 'yes', 'yes', 'yes', 9, '', '', ''), (2525, 7, 'status_mahasiswa', 'status_mahasiswa', 'input', 'yes', 'yes', 'yes', 'yes', 10, '', '', ''), (2526, 7, 'status_penerimaan', 'status_penerimaan', 'input', 'yes', 'yes', 'yes', 'yes', 11, '', '', ''), (2527, 7, 'jenis_kelamin', 'jenis_kelamin', 'input', 'yes', 'yes', 'yes', 'yes', 12, '', '', ''), (2528, 7, 'tempat_lahir', 'tempat_lahir', 'input', 'yes', 'yes', 'yes', 'yes', 13, '', '', ''), (2529, 7, 'tanggal_lahir', 'tanggal_lahir', 'date', 'yes', 'yes', 'yes', 'yes', 14, '', '', ''), (2530, 7, 'alamat', 'alamat', 'editor_wysiwyg', 'yes', 'yes', 'yes', 'yes', 15, '', '', ''), (2531, 7, 'kode_pos', 'kode_pos', 'input', 'yes', 'yes', 'yes', 'yes', 16, '', '', ''), (2532, 7, 'no_hp', 'no_hp', 'input', 'yes', 'yes', 'yes', 'yes', 17, '', '', ''), (2533, 7, 'pendidikan_terakhir', 'pendidikan_terakhir', 'input', 'yes', 'yes', 'yes', 'yes', 18, '', '', ''), (2534, 7, 'asal_universitas_s1', 'asal_universitas_s1', 'input', 'yes', 'yes', 'yes', 'yes', 19, '', '', ''), (2535, 7, 'asal_universitas_s2', 'asal_universitas_s2', 'input', 'yes', 'yes', 'yes', 'yes', 20, '', '', ''), (2536, 7, 'asal_universitas_s3', 'asal_universitas_s3', 'input', 'yes', 'yes', 'yes', 'yes', 21, '', '', ''), (2537, 7, 'gelar_terakhir', 'gelar_terakhir', 'input', 'yes', 'yes', 'yes', 'yes', 22, '', '', ''), (2538, 7, 'pekerjaan', 'pekerjaan', 'input', 'yes', 'yes', 'yes', 'yes', 23, '', '', ''), (2539, 7, 'alamat_pekerjaan', 'alamat_pekerjaan', 'input', 'yes', 'yes', 'yes', 'yes', 24, '', '', ''), (2540, 7, 'nama_ibu', 'nama_ibu', 'input', 'yes', 'yes', 'yes', 'yes', 25, '', '', ''), (2541, 7, 'photo', 'photo', 'file', 'yes', 'yes', 'yes', 'yes', 26, '', '', ''), (2542, 7, 'judul_thesis', 'judul_thesis', 'editor_wysiwyg', 'yes', 'yes', 'yes', 'yes', 27, '', '', ''), (2543, 7, 'status_akun', 'status_akun', 'input', 'yes', 'yes', 'yes', 'yes', 28, '', '', ''), (2544, 7, 'daftar_tgl', 'daftar_tgl', 'date', 'yes', 'yes', 'yes', 'yes', 29, '', '', ''), (2545, 7, 'diterima_tgl', 'diterima_tgl', 'date', 'yes', 'yes', 'yes', 'yes', 30, '', '', ''), (2546, 7, 'created_at', 'created_at', 'timestamp', 'yes', 'yes', 'yes', 'yes', 31, '', '', ''), (2547, 7, 'updated_at', 'updated_at', 'timestamp', 'yes', 'yes', 'yes', 'yes', 32, '', '', ''), (3169, 8, 'id', 'id', 'input', 'yes', '', '', 'yes', 1, '', '', ''), (3170, 8, 'karyawan_id', 'Karyawan', 'select', 'yes', 'yes', 'yes', 'yes', 2, 'karyawans', 'id', 'nama'), (3171, 8, 'pengajar_id', 'Pengajar', 'select', 'yes', 'yes', 'yes', 'yes', 3, 'pengajars', 'id', 'nama'), (3172, 8, 'departement_id', 'departemen', 'select', 'yes', 'yes', 'yes', 'yes', 4, 'departements', 'id', 'nama'), (3173, 8, 'jabatan', 'jabatan', 'input', 'yes', 'yes', 'yes', 'yes', 5, '', '', ''), (3174, 8, 'ttd', 'ttd', 'file', 'yes', 'yes', 'yes', 'yes', 6, '', '', ''), (3175, 8, 'status', 'status', 'yes_no', 'yes', 'yes', 'yes', 'yes', 7, '', '', ''), (3176, 8, 'created_at', 'created_at', 'timestamp', '', '', '', 'yes', 8, '', '', ''), (3177, 8, 'updated_at', 'updated_at', 'timestamp', '', '', '', 'yes', 9, '', '', ''), (3238, 5, 'id', 'id', 'number', 'yes', '', '', 'yes', 1, '', '', ''), (3239, 5, 'nik', 'nik', 'input', 'yes', 'yes', 'yes', 'yes', 2, '', '', ''), (3240, 5, 'nama_lengkap', 'nama_lengkap', 'input', 'yes', 'yes', 'yes', 'yes', 3, '', '', ''), (3241, 5, 'jenis_kelamin', 'jenis_kelamin', 'input', 'yes', 'yes', 'yes', 'yes', 4, '', '', ''), (3242, 5, 'no_ktp', 'no_ktp', 'input', 'yes', 'yes', 'yes', 'yes', 5, '', '', ''), (3243, 5, 'gelar_kesarjanaan', 'gelar_kesarjanaan', 'input', 'yes', 'yes', 'yes', 'yes', 6, '', '', ''), (3244, 5, 'tempat_lahir', 'tempat_lahir', 'input', 'yes', 'yes', 'yes', 'yes', 7, '', '', ''), (3245, 5, 'tanggal_lahir', 'tanggal_lahir', 'date', 'yes', 'yes', 'yes', 'yes', 8, '', '', ''), (3246, 5, 'status_kawin', 'status_kawin', 'input', 'yes', 'yes', 'yes', 'yes', 9, '', '', ''), (3247, 5, 'alamat_rumah', 'alamat_rumah', 'editor_wysiwyg', 'yes', 'yes', 'yes', 'yes', 10, '', '', ''), (3248, 5, 'email', 'email', 'input', 'yes', 'yes', 'yes', 'yes', 11, '', '', ''), (3249, 5, 'no_hp', 'no_hp', 'input', 'yes', 'yes', 'yes', 'yes', 12, '', '', ''), (3250, 5, 'id_master_prodi', 'prodi', 'select', 'yes', 'yes', 'yes', 'yes', 13, 'program_studis', 'id', 'nama'), (3251, 5, 'fungsional', 'fungsional', 'input', 'yes', 'yes', 'yes', 'yes', 14, '', '', ''), (3252, 5, 'golongan', 'golongan', 'input', 'yes', 'yes', 'yes', 'yes', 15, '', '', ''), (3253, 5, 'foto', 'foto', 'input', 'yes', 'yes', 'yes', 'yes', 16, '', '', ''), (3254, 5, 'status_dosen', 'status_dosen', 'input', 'yes', 'yes', 'yes', 'yes', 17, '', '', ''), (3255, 5, 'created_at', 'created_at', 'timestamp', '', 'yes', 'yes', 'yes', 18, '', '', ''), (3256, 5, 'update_at', 'update_at', 'timestamp', '', 'yes', 'yes', 'yes', 19, '', '', ''), (3257, 5, 'created_by', 'created_by', 'number', '', 'yes', 'yes', 'yes', 20, '', '', ''), (3322, 9, 'id', 'id', 'number', 'yes', '', '', 'yes', 1, '', '', ''), (3323, 9, 'nama_template', 'Nama Form', 'input', 'yes', 'yes', 'yes', 'yes', 2, '', '', ''), (3324, 9, 'pejabat_id', 'Penaggung jawab', 'select', 'yes', 'yes', 'yes', 'yes', 3, 'pejabats', 'id', 'jabatan'), (3325, 9, 'aktif', 'aktif', 'yes_no', 'yes', 'yes', 'yes', 'yes', 4, '', '', ''), (3326, 6, 'id', 'id', 'input', 'yes', '', '', 'yes', 1, '', '', ''), (3327, 6, 'code', 'code', 'input', 'yes', 'yes', 'yes', 'yes', 2, '', '', ''), (3328, 6, 'nik', 'nik', 'input', 'yes', 'yes', 'yes', 'yes', 3, '', '', ''), (3329, 6, 'nama', 'nama', 'input', 'yes', 'yes', 'yes', 'yes', 4, '', '', ''), (3330, 6, 'email', 'email', 'email', 'yes', 'yes', 'yes', 'yes', 5, '', '', ''), (3331, 6, 'status_karyawan', 'status_karyawan', 'input', 'yes', 'yes', 'yes', 'yes', 6, '', '', ''), (3332, 6, 'jenis_kelamin', 'jenis_kelamin', 'input', 'yes', 'yes', 'yes', 'yes', 7, '', '', ''), (3333, 6, 'tempat_lahir', 'tempat_lahir', 'input', 'yes', 'yes', 'yes', 'yes', 8, '', '', ''), (3334, 6, 'tanggal_lahir', 'tanggal_lahir', 'date', 'yes', 'yes', 'yes', 'yes', 9, '', '', ''), (3335, 6, 'alamat', 'alamat', 'editor_wysiwyg', 'yes', 'yes', 'yes', 'yes', 10, '', '', ''), (3336, 6, 'kode_pos', 'kode_pos', 'input', 'yes', 'yes', 'yes', 'yes', 11, '', '', ''), (3337, 6, 'pendidikan_terakhir', 'pendidikan_terakhir', 'input', 'yes', 'yes', 'yes', 'yes', 12, '', '', ''), (3338, 6, 'asal_pendidikan', 'asal_pendidikan', 'input', 'yes', 'yes', 'yes', 'yes', 13, '', '', ''), (3339, 6, 'no_hp', 'no_hp', 'input', 'yes', 'yes', 'yes', 'yes', 14, '', '', ''), (3340, 6, 'photo', 'photo', 'file', 'yes', 'yes', 'yes', 'yes', 15, '', '', ''), (3341, 6, 'program_studi_id', 'program_studi_id', 'number', 'yes', 'yes', 'yes', 'yes', 16, '', '', ''), (3342, 6, 'departement_id', 'departement_id', 'number', 'yes', 'yes', 'yes', 'yes', 17, '', '', ''), (3343, 6, 'status_akun', 'status_akun', 'input', 'yes', 'yes', 'yes', 'yes', 18, '', '', ''), (3344, 6, 'created_at', 'created_at', 'timestamp', '', '', '', '', 19, '', '', ''), (3345, 6, 'updated_at', 'updated_at', 'timestamp', '', '', '', '', 20, '', '', ''), (3346, 10, 'id', 'id', 'number', 'yes', '', '', 'yes', 1, '', '', ''), (3347, 10, 'kode', 'kode', 'input', 'yes', 'yes', 'yes', 'yes', 2, '', '', ''), (3348, 10, 'npm', 'npm', 'input', 'yes', 'yes', 'yes', 'yes', 3, '', '', ''), (3349, 10, 'ujian_id', 'Ujian', 'input', 'yes', 'yes', 'yes', 'yes', 4, '', '', ''), (3350, 10, 'form_id', 'Form', 'number', 'yes', 'yes', 'yes', 'yes', 5, '', '', ''), (3351, 10, 'tanggal_daftar', 'Tanggal Pendaftaran', 'date', 'yes', 'yes', 'yes', 'yes', 6, '', '', ''), (3352, 10, 'tanggal_ujian', 'Tanggal Ujian', 'date', 'yes', 'yes', 'yes', 'yes', 7, '', '', ''); -- -------------------------------------------------------- -- -- Table structure for table `crud_field_validation` -- CREATE TABLE `crud_field_validation` ( `id` int(11) UNSIGNED NOT NULL, `crud_field_id` int(11) NOT NULL, `crud_id` int(11) NOT NULL, `validation_name` varchar(200) NOT NULL, `validation_value` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `crud_field_validation` -- INSERT INTO `crud_field_validation` (`id`, `crud_field_id`, `crud_id`, `validation_name`, `validation_value`) VALUES (1, 2, 1, 'required', ''), (2, 2, 1, 'max_length', '200'), (3, 3, 1, 'required', ''), (7, 8, 2, 'required', ''), (8, 8, 2, 'max_length', '200'), (9, 9, 2, 'required', ''), (10, 11, 3, 'required', ''), (11, 11, 3, 'max_length', '200'), (12, 12, 3, 'required', ''), (13, 14, 4, 'required', ''), (14, 14, 4, 'max_length', '200'), (15, 15, 4, 'required', ''), (3784, 2517, 7, 'required', ''), (3785, 2517, 7, 'max_length', '11'), (3786, 2518, 7, 'required', ''), (3787, 2518, 7, 'max_length', '11'), (3788, 2519, 7, 'required', ''), (3789, 2519, 7, 'max_length', '11'), (3790, 2520, 7, 'required', ''), (3791, 2520, 7, 'max_length', '11'), (3792, 2521, 7, 'required', ''), (3793, 2521, 7, 'max_length', '10'), (3794, 2522, 7, 'required', ''), (3795, 2522, 7, 'max_length', '75'), (3796, 2523, 7, 'required', ''), (3797, 2523, 7, 'max_length', '75'), (3798, 2524, 7, 'required', ''), (3799, 2524, 7, 'max_length', '255'), (3800, 2525, 7, 'required', ''), (3801, 2526, 7, 'required', ''), (3802, 2527, 7, 'required', ''), (3803, 2528, 7, 'required', ''), (3804, 2528, 7, 'max_length', '255'), (3805, 2529, 7, 'required', ''), (3806, 2530, 7, 'required', ''), (3807, 2531, 7, 'required', ''), (3808, 2531, 7, 'max_length', '255'), (3809, 2532, 7, 'required', ''), (3810, 2532, 7, 'max_length', '255'), (3811, 2533, 7, 'required', ''), (3812, 2534, 7, 'required', ''), (3813, 2534, 7, 'max_length', '255'), (3814, 2535, 7, 'required', ''), (3815, 2535, 7, 'max_length', '255'), (3816, 2536, 7, 'required', ''), (3817, 2536, 7, 'max_length', '255'), (3818, 2537, 7, 'required', ''), (3819, 2537, 7, 'max_length', '255'), (3820, 2538, 7, 'required', ''), (3821, 2538, 7, 'max_length', '255'), (3822, 2539, 7, 'required', ''), (3823, 2539, 7, 'max_length', '255'), (3824, 2540, 7, 'required', ''), (3825, 2540, 7, 'max_length', '255'), (3826, 2541, 7, 'required', ''), (3827, 2541, 7, 'max_length', '255'), (3828, 2542, 7, 'required', ''), (3829, 2543, 7, 'required', ''), (3830, 2544, 7, 'required', ''), (3831, 2545, 7, 'required', ''), (3832, 2546, 7, 'required', ''), (3833, 2547, 7, 'required', ''), (4397, 3172, 8, 'required', ''), (4398, 3172, 8, 'max_length', '255'), (4399, 3173, 8, 'required', ''), (4400, 3173, 8, 'max_length', '255'), (4401, 3174, 8, 'required', ''), (4402, 3174, 8, 'max_length', '255'), (4403, 3175, 8, 'required', ''), (4404, 3176, 8, 'required', ''), (4405, 3177, 8, 'required', ''), (4499, 3239, 5, 'required', ''), (4500, 3239, 5, 'max_length', '11'), (4501, 3240, 5, 'required', ''), (4502, 3240, 5, 'max_length', '128'), (4503, 3241, 5, 'required', ''), (4504, 3242, 5, 'required', ''), (4505, 3242, 5, 'max_length', '128'), (4506, 3243, 5, 'required', ''), (4507, 3243, 5, 'max_length', '128'), (4508, 3244, 5, 'required', ''), (4509, 3244, 5, 'max_length', '128'), (4510, 3245, 5, 'required', ''), (4511, 3246, 5, 'required', ''), (4512, 3247, 5, 'required', ''), (4513, 3248, 5, 'required', ''), (4514, 3248, 5, 'max_length', '128'), (4515, 3249, 5, 'required', ''), (4516, 3249, 5, 'max_length', '13'), (4517, 3250, 5, 'required', ''), (4518, 3250, 5, 'max_length', '128'), (4519, 3251, 5, 'required', ''), (4520, 3251, 5, 'max_length', '50'), (4521, 3252, 5, 'required', ''), (4522, 3252, 5, 'max_length', '50'), (4523, 3253, 5, 'required', ''), (4524, 3253, 5, 'max_length', '128'), (4525, 3254, 5, 'required', ''), (4526, 3255, 5, 'required', ''), (4527, 3256, 5, 'required', ''), (4528, 3257, 5, 'required', ''), (4529, 3257, 5, 'max_length', '11'), (4578, 3323, 9, 'required', ''), (4579, 3324, 9, 'required', ''), (4580, 3325, 9, 'required', ''), (4581, 3327, 6, 'required', ''), (4582, 3327, 6, 'max_length', '10'), (4583, 3328, 6, 'required', ''), (4584, 3328, 6, 'max_length', '255'), (4585, 3329, 6, 'required', ''), (4586, 3329, 6, 'max_length', '255'), (4587, 3330, 6, 'required', ''), (4588, 3330, 6, 'max_length', '255'), (4589, 3331, 6, 'required', ''), (4590, 3332, 6, 'required', ''), (4591, 3333, 6, 'required', ''), (4592, 3333, 6, 'max_length', '255'), (4593, 3334, 6, 'required', ''), (4594, 3335, 6, 'required', ''), (4595, 3336, 6, 'required', ''), (4596, 3336, 6, 'max_length', '255'), (4597, 3337, 6, 'required', ''), (4598, 3338, 6, 'required', ''), (4599, 3338, 6, 'max_length', '255'), (4600, 3339, 6, 'required', ''), (4601, 3339, 6, 'max_length', '255'), (4602, 3340, 6, 'required', ''), (4603, 3340, 6, 'max_length', '255'), (4604, 3341, 6, 'required', ''), (4605, 3341, 6, 'max_length', '11'), (4606, 3342, 6, 'required', ''), (4607, 3342, 6, 'max_length', '11'), (4608, 3343, 6, 'required', ''), (4609, 3344, 6, 'required', ''), (4610, 3345, 6, 'required', ''), (4611, 3347, 10, 'required', ''), (4612, 3347, 10, 'max_length', '50'), (4613, 3348, 10, 'required', ''), (4614, 3348, 10, 'max_length', '50'), (4615, 3349, 10, 'required', ''), (4616, 3349, 10, 'max_length', '11'), (4617, 3350, 10, 'required', ''), (4618, 3350, 10, 'max_length', '11'), (4619, 3351, 10, 'required', ''), (4620, 3352, 10, 'required', ''); -- -------------------------------------------------------- -- -- Table structure for table `crud_input_type` -- CREATE TABLE `crud_input_type` ( `id` int(11) UNSIGNED NOT NULL, `type` varchar(200) NOT NULL, `relation` varchar(20) NOT NULL, `custom_value` int(11) NOT NULL, `validation_group` varchar(200) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `crud_input_type` -- INSERT INTO `crud_input_type` (`id`, `type`, `relation`, `custom_value`, `validation_group`) VALUES (1, 'input', '0', 0, 'input'), (2, 'textarea', '0', 0, 'text'), (3, 'select', '1', 0, 'select'), (4, 'editor_wysiwyg', '0', 0, 'editor'), (5, 'password', '0', 0, 'password'), (6, 'email', '0', 0, 'email'), (7, 'address_map', '0', 0, 'address_map'), (8, 'file', '0', 0, 'file'), (9, 'file_multiple', '0', 0, 'file_multiple'), (10, 'datetime', '0', 0, 'datetime'), (11, 'date', '0', 0, 'date'), (12, 'timestamp', '0', 0, 'timestamp'), (13, 'number', '0', 0, 'number'), (14, 'yes_no', '0', 0, 'yes_no'), (15, 'time', '0', 0, 'time'), (16, 'year', '0', 0, 'year'), (17, 'select_multiple', '1', 0, 'select_multiple'), (18, 'checkboxes', '1', 0, 'checkboxes'), (19, 'options', '1', 0, 'options'), (20, 'true_false', '0', 0, 'true_false'), (21, 'current_user_username', '0', 0, 'user_username'), (22, 'current_user_id', '0', 0, 'current_user_id'), (23, 'custom_option', '0', 1, 'custom_option'), (24, 'custom_checkbox', '0', 1, 'custom_checkbox'), (25, 'custom_select_multiple', '0', 1, 'custom_select_multiple'), (26, 'custom_select', '0', 1, 'custom_select'); -- -------------------------------------------------------- -- -- Table structure for table `crud_input_validation` -- CREATE TABLE `crud_input_validation` ( `id` int(11) UNSIGNED NOT NULL, `validation` varchar(200) NOT NULL, `input_able` varchar(20) NOT NULL, `group_input` text NOT NULL, `input_placeholder` text NOT NULL, `call_back` varchar(10) NOT NULL, `input_validation` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `crud_input_validation` -- INSERT INTO `crud_input_validation` (`id`, `validation`, `input_able`, `group_input`, `input_placeholder`, `call_back`, `input_validation`) VALUES (1, 'required', 'no', 'input, file, number, text, datetime, select, password, email, editor, date, yes_no, time, year, select_multiple, options, checkboxes, true_false, address_map, custom_option, custom_checkbox, custom_select_multiple, custom_select, file_multiple', '', '', ''), (2, 'max_length', 'yes', 'input, number, text, select, password, email, editor, yes_no, time, year, select_multiple, options, checkboxes, address_map', '', '', 'numeric'), (3, 'min_length', 'yes', 'input, number, text, select, password, email, editor, time, year, select_multiple, address_map', '', '', 'numeric'), (4, 'valid_email', 'no', 'input, email', '', '', ''), (5, 'valid_emails', 'no', 'input, email', '', '', ''), (6, 'regex', 'yes', 'input, number, text, datetime, select, password, email, editor, date, yes_no, time, year, select_multiple, options, checkboxes', '', 'yes', 'callback_valid_regex'), (7, 'decimal', 'no', 'input, number, text, select', '', '', ''), (8, 'allowed_extension', 'yes', 'file, file_multiple', 'ex : jpg,png,..', '', 'callback_valid_extension_list'), (9, 'max_width', 'yes', 'file, file_multiple', '', '', 'numeric'), (10, 'max_height', 'yes', 'file, file_multiple', '', '', 'numeric'), (11, 'max_size', 'yes', 'file, file_multiple', '... kb', '', 'numeric'), (12, 'max_item', 'yes', 'file_multiple', '', '', 'numeric'), (13, 'valid_url', 'no', 'input, text', '', '', ''), (14, 'alpha', 'no', 'input, text, select, password, editor, yes_no', '', '', ''), (15, 'alpha_numeric', 'no', 'input, number, text, select, password, editor', '', '', ''), (16, 'alpha_numeric_spaces', 'no', 'input, number, text,select, password, editor', '', '', ''), (17, 'valid_number', 'no', 'input, number, text, password, editor, true_false', '', 'yes', ''), (18, 'valid_datetime', 'no', 'input, datetime, text', '', 'yes', ''), (19, 'valid_date', 'no', 'input, datetime, date, text', '', 'yes', ''), (20, 'valid_max_selected_option', 'yes', 'select_multiple, custom_select_multiple, custom_checkbox, checkboxes', '', 'yes', 'numeric'), (21, 'valid_min_selected_option', 'yes', 'select_multiple, custom_select_multiple, custom_checkbox, checkboxes', '', 'yes', 'numeric'), (22, 'valid_alpha_numeric_spaces_underscores', 'no', 'input, text,select, password, editor', '', 'yes', ''), (23, 'matches', 'yes', 'input, number, text, password, email', 'any field', 'no', 'callback_valid_alpha_numeric_spaces_underscores'), (24, 'valid_json', 'no', 'input, text, editor', '', 'yes', ' '), (25, 'valid_url', 'no', 'input, text, editor', '', 'no', ' '), (26, 'exact_length', 'yes', 'input, text, number', '0 - 99999*', 'no', 'numeric'), (27, 'alpha_dash', 'no', 'input, text', '', 'no', ''), (28, 'integer', 'no', 'input, text, number', '', 'no', ''), (29, 'differs', 'yes', 'input, text, number, email, password, editor, options, select', 'any field', 'no', 'callback_valid_alpha_numeric_spaces_underscores'), (30, 'is_natural', 'no', 'input, text, number', '', 'no', ''), (31, 'is_natural_no_zero', 'no', 'input, text, number', '', 'no', ''), (32, 'less_than', 'yes', 'input, text, number', '', 'no', 'numeric'), (33, 'less_than_equal_to', 'yes', 'input, text, number', '', 'no', 'numeric'), (34, 'greater_than', 'yes', 'input, text, number', '', 'no', 'numeric'), (35, 'greater_than_equal_to', 'yes', 'input, text, number', '', 'no', 'numeric'), (36, 'in_list', 'yes', 'input, text, number, select, options', '', 'no', 'callback_valid_multiple_value'), (37, 'valid_ip', 'no', 'input, text', '', 'no', ''); -- -------------------------------------------------------- -- -- Table structure for table `departements` -- CREATE TABLE `departements` ( `id` bigint(20) UNSIGNED NOT NULL, `code` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, `nama` varchar(75) 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 `departements` -- INSERT INTO `departements` (`id`, `code`, `nama`, `created_at`, `updated_at`) VALUES (1, '001', 'UPTTIK', '2022-03-25 03:32:38', NULL), (2, '002', 'PRODI', '2022-03-25 07:39:34', NULL), (3, '003', 'TATA USAHA', '2022-04-11 02:50:34', NULL), (4, '004', 'KEUANGAN', '2022-04-11 02:50:55', NULL), (5, '005', 'AKADEMIK', '2022-04-11 02:51:04', NULL); -- -------------------------------------------------------- -- -- Table structure for table `enroll` -- CREATE TABLE `enroll` ( `id` int(11) NOT NULL, `prodiID` varchar(4) NOT NULL, `id_group_soal` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `enroll` -- INSERT INTO `enroll` (`id`, `prodiID`, `id_group_soal`, `created_at`) VALUES (1, 'MPI', 1, '2022-03-10 06:47:15'), (2, 'MES', 1, '2022-03-10 06:47:15'), (3, 'MTP', 1, '2022-03-10 06:47:15'), (4, 'MMN', 1, '2022-03-10 06:47:15'), (5, 'DPI', 1, '2022-03-10 06:47:15'), (6, 'ADM', 1, '2022-03-10 06:47:15'); -- -------------------------------------------------------- -- -- Table structure for table `form` -- CREATE TABLE `form` ( `id` int(11) NOT NULL, `uid` int(11) NOT NULL, `prodi_id` int(11) NOT NULL, `nama` varchar(255) NOT NULL, `no_hp` varchar(15) NOT NULL, `asal_instansi` varchar(255) NOT NULL, `email` varchar(80) NOT NULL, `status` int(11) NOT NULL, `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `delete_at` datetime NOT NULL, `soft_delete` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `form` -- INSERT INTO `form` (`id`, `uid`, `prodi_id`, `nama`, `no_hp`, `asal_instansi`, `email`, `status`, `created_at`, `delete_at`, `soft_delete`) VALUES (1, 100, 3, 'Ahmad', '081381100046', 'asd', '<EMAIL>', 0, '2021-12-01 16:03:12', '0000-00-00 00:00:00', NULL); -- -------------------------------------------------------- -- -- Table structure for table `group_soal` -- CREATE TABLE `group_soal` ( `id` int(11) NOT NULL, `id_master_prodi` int(11) DEFAULT NULL, `title_ujian` longtext NOT NULL, `jumlah_soal` varchar(255) NOT NULL, `waktu_pengerjaan` int(11) NOT NULL, `tgl_mulai` datetime NOT NULL, `tgl_berakhir` datetime NOT NULL, `token` varchar(5) DEFAULT NULL, `jenis` enum('acak','urut') NOT NULL DEFAULT 'urut' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `group_soal` -- INSERT INTO `group_soal` (`id`, `id_master_prodi`, `title_ujian`, `jumlah_soal`, `waktu_pengerjaan`, `tgl_mulai`, `tgl_berakhir`, `token`, `jenis`) VALUES (1, NULL, 'asd', '40', 12, '2022-02-24 13:26:00', '2022-02-24 13:26:00', NULL, 'acak'); -- -------------------------------------------------------- -- -- Table structure for table `h_ujian` -- CREATE TABLE `h_ujian` ( `id` int(11) NOT NULL, `id_group_soal` int(11) NOT NULL, `id_master_mahasiswa` int(11) NOT NULL, `list_soal` longtext NOT NULL, `list_jawaban` longtext NOT NULL, `jml_benar` int(11) NOT NULL, `nilai` decimal(10,2) NOT NULL, `nilai_bobot` decimal(10,2) NOT NULL, `tgl_mulai` datetime NOT NULL, `tgl_selesai` datetime NOT NULL, `status` enum('Y','N') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `h_ujian` -- INSERT INTO `h_ujian` (`id`, `id_group_soal`, `id_master_mahasiswa`, `list_soal`, `list_jawaban`, `jml_benar`, `nilai`, `nilai_bobot`, `tgl_mulai`, `tgl_selesai`, `status`) VALUES (174, 32, 298, '54,60,95,74,69,61,85,98,58,64,96,90,91,100,94,99,56,62,65,77,86,67,88,92,63,78,68,93,66,73,72,101,81,75,57,84,59,55,82,71,97,80,87,83,53,76,89,102,70,79', '54:E:N,60:B:N,95:B:N,74:A:N,69:E:N,61:B:N,85:C:N,98:C:N,58:E:N,64:A:N,96:B:N,90:A:N,91:A:N,100:B:N,94:D:N,99:C:N,56:B:N,62::Y,65:E:N,77:E:N,86:C:N,67:B:N,88:A:N,92:A:N,63:A:N,78:B:N,68:D:N,93:D:N,66:C:N,73:C:N,72:C:N,101:C:N,81:A:N,75:D:N,57::N,84::N,59::N,55::N,82::N,71::N,97::N,80::N,87::N,83::N,53::N,76::N,89::N,102::N,70::N,79::N', 23, '46.00', '100.00', '2020-09-30 08:43:34', '2020-09-30 09:13:34', 'N'), (175, 32, 293, '78,65,72,86,100,88,81,91,57,83,89,75,85,66,67,93,69,59,63,101,62,95,96,71,87,102,92,58,79,64,68,70,99,76,82,84,90,56,97,98,77,74,61,94,53,55,54,60,80,73', '78:D:N,65:A:N,72:C:N,86:A:N,100:B:N,88:A:Y,81:A:N,91:A:N,57:B:N,83:A:N,89:B:N,75:C:N,85:C:N,66::N,67:A:N,93:D:N,69:A:Y,59:B:N,63:A:Y,101:C:N,62::N,95:B:N,96:B:N,71:A:N,87:A:N,102:A:N,92:A:N,58::N,79:A:N,64::N,68::N,70::N,99::N,76::N,82::N,84::N,90::N,56::N,97::N,98::N,77::N,74::N,61::N,94::N,53::N,55::N,54::N,60::N,80::N,73::N', 16, '32.00', '100.00', '2020-09-30 08:43:36', '2020-09-30 09:13:36', 'N'), (176, 32, 304, '58,101,64,88,100,80,85,57,63,78,82,95,67,68,84,79,93,98,87,99,76,81,59,94,90,75,61,92,70,60,97,56,55,72,69,66,73,74,86,65,83,91,71,96,102,54,89,77,53,62', '58:E:N,101::Y,64::Y,88::Y,100::Y,80:B:N,85:C:N,57:C:N,63:A:N,78:B:Y,82:B:N,95::Y,67:B:N,68:C:N,84:C:N,79:A:N,93:D:Y,98::Y,87::Y,99::Y,76:A:N,81:A:N,59:B:N,94::Y,90:A:N,75:C:N,61:B:N,92::Y,70:A:N,60:C:N,97::Y,56:B:N,55:A:N,72:C:N,69:E:N,66:C:N,73:C:N,74:A:N,86:B:N,65::Y,83:C:N,91:B:N,71:D:N,96:D:N,102::N,54::N,89::N,77::N,53::N,62::N', 26, '52.00', '100.00', '2020-09-30 08:44:08', '2020-09-30 09:14:08', 'N'), (177, 32, 310, '78,91,89,100,79,75,70,96,56,69,64,74,71,98,68,81,54,80,102,92,67,77,65,55,61,66,59,82,88,97,99,87,93,60,73,90,57,72,84,62,58,53,101,85,86,95,63,83,94,76', '78::N,91:B:N,89:B:N,100:B:N,79:D:N,75:C:N,70:C:N,96:A:N,56:B:N,69::N,64::N,74:A:N,71::N,98:C:N,68::N,81::N,54:A:N,80::N,102:A:N,92:C:N,67:B:N,77:E:N,65::N,55::N,61::N,66::N,59::N,82::N,88:B:N,97:D:N,99:C:N,87:C:N,93:A:N,60::N,73::N,90::N,57:C:N,72:C:N,84::N,62::N,58::N,53::N,101::N,85::N,86::N,95::N,63::N,83::N,94::N,76:C:N', 14, '28.00', '100.00', '2020-09-30 08:44:18', '2020-09-30 09:14:18', 'N'), (178, 32, 281, '58,69,78,54,77,93,55,76,83,60,99,65,61,79,94,59,73,74,101,100,56,89,71,64,92,53,70,102,68,75,98,67,57,84,62,63,72,96,85,91,82,88,90,86,87,66,95,81,80,97', '58:E:N,69:B:N,78:C:N,54:E:N,77:B:N,93:D:N,55:C:N,76:D:N,83:A:N,60:C:N,99:A:N,65:C:N,61:C:N,79:A:N,94:D:N,59:E:N,73:D:N,74:A:N,101:C:N,100:A:N,56:C:N,89:B:N,71:B:N,64:B:N,92:A:N,53:A:N,70:A:N,102:A:N,68:A:N,75:C:N,98:C:N,67:A:N,57:A:N,84:C:N,62:D:N,63:B:N,72:B:N,96:B:N,85:B:N,91::N,82:B:N,88:D:N,90:A:N,86:C:N,87:A:N,66:B:N,95:B:N,81:B:N,80:C:N,97:A:N', 17, '34.00', '100.00', '2020-09-30 08:44:32', '2020-09-30 09:14:32', 'Y'), (180, 32, 294, '69,53,88,72,59,58,60,64,73,79,61,92,78,85,75,70,80,54,83,65,56,71,90,66,57,98,55,95,97,93,74,101,100,68,82,77,76,89,86,63,99,94,87,84,62,91,81,102,67,96', '69:C:N,53:E:N,88:B:N,72:E:N,59:B:N,58:E:N,60:A:N,64:A:N,73:C:N,79:A:N,61:A:N,92:A:N,78:D:N,85:C:N,75:C:N,70:B:N,80:A:N,54:B:N,83:A:N,65:D:N,56:E:N,71:A:N,90:A:N,66:C:N,57:C:N,98:D:N,55:C:N,95:D:N,97:A:N,93:A:N,74:A:N,101:C:N,100:A:N,68:A:N,82:D:N,77:E:N,76:E:N,89:D:N,86:B:N,63:D:N,99:A:N,94:D:N,87:C:N,84:C:N,62:B:N,91:B:N,81:B:N,102:A:N,67:A:N,96:B:N', 21, '42.00', '100.00', '2020-09-30 08:44:50', '2020-09-30 09:14:50', 'Y'), (181, 32, 297, '63,95,99,101,71,86,65,88,72,77,98,61,64,94,55,87,102,54,83,96,56,76,81,70,79,53,74,92,67,84,75,73,100,97,68,90,69,82,60,80,58,93,85,59,78,89,91,62,57,66', '63:A:N,95:D:N,99:C:N,101:C:N,71:A:N,86:A:N,65:A:N,88:B:N,72:C:N,77:E:N,98:A:N,61:D:N,64:D:N,94:D:N,55:C:N,87:A:N,102:A:N,54:A:N,83:A:N,96:C:N,56:C:N,76::N,81::N,70:B:N,79:A:N,53::N,74:B:N,92:A:N,67::N,84:C:N,75:E:N,73:C:N,100:A:N,97:C:N,68:A:N,90:A:N,69:D:N,82:D:N,60:E:N,80:B:N,58:A:N,93:B:N,85:C:N,59::N,78:D:N,89:B:N,91:A:N,62::N,57::N,66::N', 18, '36.00', '100.00', '2020-09-30 08:45:00', '2020-09-30 09:15:00', 'Y'), (182, 32, 287, '68,62,65,53,87,94,56,89,80,98,86,78,66,77,55,96,60,71,99,67,100,79,85,91,76,73,54,74,58,70,59,75,64,88,81,63,83,90,101,61,57,97,92,102,72,69,93,84,95,82', '68::Y,62::N,65::N,53:E:N,87:A:N,94:D:N,56:B:N,89:B:N,80:B:N,98:C:N,86:A:N,78::N,66:C:N,77:E:N,55:A:N,96:B:N,60:C:N,71:D:N,99:C:N,67::N,100:B:N,79:D:N,85:C:N,91::N,76:C:N,73:C:N,54:D:N,74:A:N,58:E:N,70:C:N,59::N,75::N,64::N,88::N,81::N,63::N,83::N,90::N,101::N,61::N,57::N,97::N,92::N,102::N,72::N,69::N,93::N,84::N,95::N,82::N', 21, '42.00', '100.00', '2020-09-30 08:45:03', '2020-09-30 09:15:03', 'Y'), (183, 32, 282, '87,90,68,57,67,69,60,61,66,59,63,72,65,86,79,77,96,70,74,100,62,85,83,93,82,94,97,98,84,88,56,89,75,92,102,80,101,91,76,78,55,53,58,54,95,81,99,64,73,71', '87:A:N,90:A:N,68:A:N,57:A:N,67:C:N,69:A:N,60:B:N,61:A:N,66:D:N,59:D:N,63:C:N,72:C:N,65:B:N,86:B:N,79:D:N,77:E:N,96:B:N,70:A:N,74:A:N,100:B:N,62:D:N,85:C:N,83:A:N,93:D:N,82:B:N,94:D:N,97:B:N,98:C:N,84:C:N,88:C:N,56:D:N,89:B:N,75:C:N,92:A:N,102:D:N,80:B:N,101:C:N,91:A:N,76:B:N,78:D:N,55:B:N,53:E:N,58:B:N,54:B:N,95:D:N,81:C:N,99:C:N,64:C:N,73:C:N,71:D:N', 25, '50.00', '100.00', '2020-09-30 08:45:13', '2020-09-30 09:15:13', 'Y'), (185, 32, 266, '92,75,87,84,56,62,101,59,96,58,74,53,60,57,79,71,93,76,73,63,80,99,64,68,98,69,86,95,89,66,54,91,67,90,97,100,94,78,55,85,77,82,61,102,83,72,88,70,65,81', '92:A:N,75:D:N,87:A:N,84:C:N,56:B:N,62:C:N,101:C:N,59::N,96:B:N,58:E:N,74:A:N,53:E:N,60:A:N,57::N,79::N,71:B:N,93:D:N,76:E:N,73:C:N,63:B:N,80:A:N,99:C:N,64:B:N,68:C:N,98:C:N,69:D:N,86:A:N,95:B:N,89:B:N,66:C:N,54:B:N,91:A:N,67::N,90:A:N,97:D:N,100:B:N,94:D:N,78:C:N,55:A:N,85:C:N,77:A:N,82:B:N,61:A:N,102:D:N,83:C:N,72:B:N,88:A:N,70:D:N,65:C:N,81:A:N', 26, '52.00', '100.00', '2020-09-30 08:45:43', '2020-09-30 09:15:43', 'N'), (186, 32, 289, '72,57,85,79,75,93,82,102,99,68,71,94,88,73,90,78,86,81,91,65,61,56,66,89,100,97,69,59,98,77,80,62,74,96,87,101,70,53,60,76,54,64,92,67,95,58,83,63,84,55', '72:C:N,57:D:N,85:C:N,79:A:N,75:C:N,93:D:N,82:D:N,102:D:N,99:C:N,68:C:N,71:D:N,94:D:N,88:A:N,73:C:N,90:A:N,78:D:N,86:A:N,81:D:N,91:B:N,65:D:N,61:A:N,56:E:N,66:C:N,89:B:N,100:B:N,97:D:N,69:E:N,59:C:N,98:C:N,77:E:N,80:D:N,62:A:N,74:D:N,96:B:N,87:A:N,101:C:N,70:B:N,53:E:N,60:C:N,76:A:N,54:A:N,64:D:N,92::N,67:B:N,95:B:N,58:A:N,83:C:N,63:A:N,84:C:N,55:A:N', 31, '62.00', '100.00', '2020-09-30 08:45:44', '2020-09-30 09:15:44', 'Y'), (187, 32, 276, '54,55,63,98,82,87,56,69,91,78,70,64,101,57,53,93,75,102,65,58,74,88,100,72,97,90,73,60,76,92,85,84,95,96,89,81,67,77,71,68,99,80,61,59,79,94,62,83,66,86', '54:A:N,55:D:N,63:A:N,98:C:N,82::N,87:A:N,56:C:N,69::N,91:A:N,78::N,70::Y,64:B:N,101:A:N,57:A:N,53:B:N,93:D:N,75::Y,102:D:N,65:D:N,58:B:N,74::Y,88:B:N,100:A:N,72::Y,97:D:N,90:A:N,73::Y,60:B:N,76::Y,92:A:N,85:C:N,84:C:N,95:B:N,96:B:N,89:B:N,81::Y,67:A:N,77::Y,71::Y,68::Y,99:C:N,80::Y,61:A:N,59:A:N,79::Y,94:D:N,62:C:N,83:C:N,66:B:N,86:B:N', 16, '32.00', '100.00', '2020-09-30 08:46:03', '2020-09-30 09:16:03', 'Y'), (188, 32, 288, '79,77,54,64,72,102,65,76,81,68,60,75,94,95,85,66,99,98,87,70,86,73,53,96,62,88,100,59,92,93,84,80,71,82,57,89,63,97,69,90,55,91,56,78,74,83,58,101,67,61', '79:D:N,77:E:N,54:B:Y,64:D:N,72:C:N,102:C:Y,65:D:N,76:C:N,81:C:N,68:B:N,60::N,75:E:N,94:E:N,95:E:N,85:D:N,66::N,99::N,98::N,87:A:N,70::N,86::N,73:C:N,53::N,96:B:N,62::N,88::N,100::N,59::N,92:A:N,93:D:N,84:C:N,80::N,71::N,82::N,57::N,89:B:N,63::N,97:D:N,69:D:N,90:A:N,55::N,91::N,56:E:N,78::N,74:A:N,83::N,58::N,101:C:N,67::N,61::N', 14, '28.00', '100.00', '2020-09-30 08:46:20', '2020-09-30 09:16:20', 'Y'), (189, 32, 274, '80,87,74,93,98,57,82,65,56,95,96,69,55,85,81,59,88,67,97,89,99,102,101,63,92,100,70,66,61,78,60,64,73,91,84,90,76,68,83,62,94,53,71,72,58,86,79,54,75,77', '80:A:N,87:A:N,74:A:N,93:B:N,98:C:N,57:C:N,82:A:N,65:D:N,56:B:N,95:B:N,96:B:N,69:B:N,55:E:N,85:C:N,81:C:N,59:B:N,88:B:N,67:A:N,97:D:N,89:D:N,99:D:N,102:D:N,101:C:N,63:B:N,92:A:N,100:B:N,70:D:N,66:A:N,61:A:N,78:A:N,60:B:N,64:B:N,73:C:N,91:A:N,84:C:N,90:A:N,76:C:N,68:D:N,83:C:N,62:D:N,94:D:N,53:B:N,71:C:N,72:C:N,58:C:N,86:B:N,79:B:N,54:E:N,75:B:N,77:E:N', 24, '48.00', '100.00', '2020-09-30 08:46:27', '2020-09-30 09:16:27', 'Y'), (190, 32, 311, '91,57,53,61,88,63,59,102,75,87,95,100,56,74,78,80,69,99,93,81,67,70,94,77,96,60,84,86,83,73,55,58,68,92,82,98,85,90,97,64,62,65,101,72,76,54,89,71,79,66', '91:A:N,57:B:N,53:A:Y,61:A:N,88:C:N,63:A:N,59:E:N,102:A:N,75:E:N,87:A:N,95:A:N,100:B:N,56:E:N,74:A:N,78:A:N,80:B:N,69:B:N,99:C:N,93:D:N,81:A:N,67:C:N,70:B:N,94:D:N,77:A:N,96:B:N,60:B:N,84:C:N,86:A:N,83:A:N,73:D:N,55:C:N,58:C:N,68:C:N,92:A:N,82:B:N,98:B:N,85:C:N,90:A:N,97:D:N,64:D:N,62:A:N,65:D:N,101:C:N,72:E:N,76:B:N,54:B:N,89:D:N,71:B:N,79:A:N,66:E:Y', 18, '36.00', '100.00', '2020-09-30 08:46:32', '2020-09-30 09:16:32', 'Y'), (192, 32, 265, '102,55,71,53,57,63,93,60,98,100,65,88,76,82,68,59,75,69,90,84,94,97,85,89,79,67,80,92,77,58,64,95,78,73,96,66,56,91,62,72,99,70,86,74,61,54,83,81,101,87', '102:D:N,55::N,71:D:N,53::N,57::N,63::N,93:C:N,60::N,98:C:N,100:B:N,65:E:N,88:A:N,76:C:N,82:B:N,68:E:N,59:B:N,75:C:N,69:B:N,90:A:N,84:C:N,94:D:N,97:D:N,85:C:N,89:B:N,79:D:N,67:A:N,80:B:N,92:A:N,77:E:N,58::N,64::N,95:B:N,78::N,73:C:N,96:B:N,66:B:N,56:B:N,91:B:N,62:D:N,72:C:N,99:C:N,70:A:N,86:B:N,74:A:N,61:B:N,54:D:N,83:A:N,81:A:N,101:B:N,87:A:N', 34, '68.00', '100.00', '2020-09-30 08:46:48', '2020-09-30 09:16:48', 'Y'), (193, 32, 279, '73,102,88,80,64,61,89,55,91,74,63,93,53,90,98,97,79,58,54,81,96,83,56,67,71,59,70,101,78,60,99,75,94,72,66,69,92,57,82,87,76,77,84,100,85,86,95,62,68,65', '73:C:N,102:D:N,88:C:N,80:C:N,64:E:N,61:A:N,89:B:N,55:E:N,91:A:N,74:A:N,63:D:N,93:B:N,53:C:N,90:A:N,98:C:N,97:A:N,79:D:N,58:C:N,54:D:N,81:B:N,96:A:N,83:A:N,56:C:N,67:A:N,71:D:N,59:D:N,70:E:N,101:C:N,78:C:N,60:A:N,99:C:N,75:E:N,94:D:N,72:C:N,66:B:N,69:D:N,92:B:N,57:B:N,82:D:N,87:A:N,76:C:N,77:E:N,84:C:N,100:B:N,85:B:N,86:A:N,95:B:N,62:B:N,68:A:N,65:B:N', 19, '38.00', '100.00', '2020-09-30 08:46:52', '2020-09-30 09:16:52', 'Y'), (194, 32, 277, '56,101,87,86,53,88,70,99,65,90,58,83,92,89,80,76,73,75,98,62,68,100,67,74,59,77,81,63,64,93,54,78,79,96,102,85,72,55,82,61,71,60,57,95,84,69,97,94,91,66', '56:E:N,101:C:N,87:A:N,86:B:N,53:E:N,88:A:N,70:C:N,99:C:N,65:D:N,90:A:N,58:A:N,83:C:N,92:E:N,89:B:N,80:B:N,76:E:N,73:D:N,75:C:N,98:C:N,62:C:N,68:A:N,100:B:N,67:A:N,74:E:N,59:B:N,77:E:N,81:C:N,63:E:N,64:A:N,93:E:N,54:E:N,78:D:N,79:D:N,96:B:N,102:D:N,85:C:N,72:E:N,55:A:N,82:E:N,61:E:N,71:D:N,60:C:N,57:E:N,95:E:N,84:C:N,69:A:N,97:D:N,94:D:N,91:A:N,66:A:N', 25, '50.00', '100.00', '2020-09-30 08:46:54', '2020-09-30 09:16:54', 'Y'), (195, 32, 285, '77,90,74,101,84,70,76,96,87,68,83,58,54,95,69,60,89,72,66,80,73,67,55,63,57,71,100,93,59,82,98,92,64,102,79,78,61,94,56,97,85,75,65,53,99,86,91,88,62,81', '77:E:N,90:A:N,74:A:N,101:C:N,84:C:N,70:D:N,76:C:N,96:B:N,87:A:N,68:B:N,83:C:N,58:E:N,54:B:N,95:B:N,69:C:N,60:B:N,89:B:N,72:C:N,66:B:N,80:A:N,73:C:N,67:B:N,55:A:N,63:D:N,57:A:N,71:D:N,100:B:N,93:D:N,59:B:N,82:B:N,98:C:N,92:B:N,64:D:N,102:D:N,79:D:N,78:D:N,61:B:N,94:D:N,56:C:N,97:D:N,85:C:N,75:A:N,65:E:N,53:E:N,99:C:N,86:A:N,91:B:N,88:A:N,62:A:N,81:C:N', 34, '68.00', '100.00', '2020-09-30 08:46:54', '2020-09-30 09:16:54', 'Y'), (197, 32, 264, '56,61,55,72,87,79,85,71,97,70,59,90,91,86,95,63,67,102,69,89,54,77,101,84,93,88,94,80,53,78,100,92,81,65,98,60,83,82,73,76,96,58,74,68,75,62,66,64,99,57', '56:C:N,61:A:N,55:E:N,72:A:N,87:A:N,79:B:N,85:D:N,71:E:N,97:C:N,70:C:N,59:E:N,90:A:N,91:A:N,86:A:N,95:B:N,63:C:N,67:A:N,102:D:N,69:A:N,89:B:N,54:B:N,77:E:N,101:C:N,84:C:N,93:D:N,88:A:N,94:D:N,80:C:N,53:D:N,78:A:N,100:B:N,92:A:N,81:C:N,65:D:N,98:C:N,60:C:N,83:C:N,82:C:N,73:D:N,76:E:N,96:B:N,58:A:N,74:E:N,68:E:N,75:B:N,62:A:N,66:A:N,64:B:N,99::N,57::N', 17, '34.00', '100.00', '2020-09-30 08:47:43', '2020-09-30 09:17:43', 'Y'), (198, 32, 305, '62,82,72,54,66,53,102,63,99,76,97,84,68,55,100,93,83,86,87,89,71,73,58,85,60,92,59,67,74,98,88,81,61,95,77,79,69,65,91,90,80,75,101,57,64,96,94,70,56,78', '62:E:N,82:B:N,72:D:N,54:A:N,66:B:N,53:C:N,102:B:N,63:E:N,99:C:N,76:D:N,97:C:N,84:B:N,68:C:N,55:D:N,100:B:N,93:D:N,83:C:N,86:C:N,87:A:N,89:B:N,71:B:N,73:D:N,58:A:N,85:C:N,60:C:N,92:A:N,59:C:N,67:A:N,74:A:N,98:D:N,88:B:N,81:D:N,61:A:N,95:B:N,77:D:N,79:A:N,69:B:N,65:D:N,91:A:N,90:A:N,80:B:N,75:E:N,101:C:N,57:B:N,64:D:N,96:B:N,94:C:N,70:E:N,56:E:N,78:D:N', 19, '38.00', '100.00', '2020-09-30 08:47:44', '2020-09-30 09:17:44', 'Y'), (199, 32, 316, '61,101,87,77,76,98,72,59,85,89,81,84,63,78,65,96,83,86,82,94,70,90,66,62,69,88,64,53,97,91,67,102,68,73,71,79,92,93,54,55,75,80,99,56,95,60,57,100,74,58', '61:B:N,101:B:N,87:A:N,77:E:N,76:E:N,98:C:N,72:C:N,59:B:N,85:C:N,89:B:N,81:D:N,84:C:N,63:A:N,78:D:N,65:D:N,96:B:N,83:C:N,86:A:N,82:D:N,94:D:N,70:A:N,90:A:N,66:D:N,62:D:N,69:E:N,88:B:N,64:B:N,53:E:N,97:D:N,91:A:N,67:A:N,102:D:N,68:D:N,73:D:N,71:B:N,79:C:N,92:A:N,93:D:N,54:B:N,55:A:N,75:C:N,80:C:N,99:C:N,56:C:N,95:C:N,60:C:N,57:C:N,100:A:N,74:A:N,58:E:N', 27, '54.00', '100.00', '2020-09-30 08:47:54', '2020-09-30 09:17:54', 'N'), (201, 32, 306, '62,100,85,92,97,56,58,71,87,99,59,69,61,76,88,67,60,53,81,90,73,91,86,66,57,79,96,64,63,94,102,55,75,54,101,72,82,74,89,95,78,83,98,77,84,93,70,80,65,68', '62:C:N,100:B:N,85:C:N,92:A:N,97:D:N,56::N,58:E:N,71:D:N,87:A:N,99:C:N,59:B:N,69:B:N,61:B:N,76:E:N,88:D:N,67:B:N,60:C:N,53:E:N,81:B:N,90:A:N,73:C:N,91:A:N,86:B:N,66::N,57:C:N,79:B:N,96:B:N,64:E:N,63:D:N,94:C:N,102:D:N,55:A:N,75:C:N,54:B:N,101:C:N,72:C:N,82:D:N,74:A:N,89:B:N,95:B:N,78::N,83:A:N,98:C:N,77:E:N,84:C:N,93:D:N,70:A:N,80::N,65::N,68::N', 30, '60.00', '100.00', '2020-09-30 08:48:21', '2020-09-30 09:18:21', 'N'), (202, 32, 286, '62,84,97,74,82,68,90,79,75,96,64,63,61,53,54,95,89,70,87,92,83,102,65,56,91,59,72,93,76,78,57,55,58,77,81,86,69,71,85,73,60,98,101,80,94,99,100,66,88,67', '62:D:N,84:C:N,97:A:N,74:A:N,82:B:N,68:A:N,90:A:N,79:D:N,75:E:N,96:B:N,64:D:N,63:A:N,61:B:N,53:E:N,54:A:N,95:D:N,89:B:N,70:A:N,87:A:N,92:A:N,83:A:N,102:D:N,65:D:N,56:E:N,91:A:N,59:B:N,72:C:N,93:D:N,76:C:N,78::N,57::N,55::N,58::N,77::N,81::N,86::N,69::N,71::N,85::N,73::N,60::N,98::N,101::N,80::N,94::N,99::N,100::N,66::N,88::N,67::N', 17, '34.00', '100.00', '2020-09-30 08:48:28', '2020-09-30 09:18:28', 'N'), (203, 32, 278, '57,99,87,67,98,76,54,66,94,88,72,81,80,53,58,83,86,71,82,95,61,101,69,102,84,59,70,85,78,79,75,96,91,74,89,62,90,64,97,93,77,60,73,55,65,100,92,56,63,68', '57:B:N,99:C:N,87:A:N,67:A:N,98:B:N,76:B:N,54:B:N,66:A:N,94:D:N,88:B:N,72:C:N,81:B:N,80:B:N,53:A:N,58:E:N,83:C:N,86:A:N,71:D:N,82:B:N,95:B:N,61:B:N,101:C:N,69:E:N,102:A:N,84:C:N,59:B:N,70:A:N,85:C:N,78:C:N,79:D:N,75:E:N,96:B:N,91:C:N,74:A:N,89:B:N,62:A:N,90:A:N,64:D:N,97:A:N,93:B:N,77:E:N,60:C:N,73:B:N,55:C:Y,65:D:N,100:B:N,92:A:N,56:E:N,63:A:N,68:A:N', 27, '54.00', '100.00', '2020-09-30 08:48:51', '2020-09-30 09:18:51', 'N'), (204, 32, 312, '69,86,68,67,63,101,102,75,78,53,57,56,83,95,80,55,62,72,64,59,77,58,82,91,90,100,61,85,79,65,87,89,71,81,93,60,99,66,98,96,54,73,92,94,84,88,74,70,76,97', '69:C:N,86:B:N,68:B:N,67:B:N,63:B:N,101:C:N,102:A:N,75:C:N,78:C:N,53:E:N,57:C:N,56:B:N,83:C:N,95:C:N,80:B:N,55:A:N,62:E:N,72:C:N,64:A:N,59:B:N,77:D:N,58:E:N,82:B:N,91:A:N,90:A:N,100:B:N,61:B:N,85:B:N,79:D:N,65:E:N,87:C:N,89:B:N,71:D:N,81:C:N,93:D:N,60:B:N,99:A:N,66:B:N,98:B:N,96:B:N,54:D:N,73:B:N,92:A:N,94:D:N,84:C:N,88:B:N,74:A:N,70:A:N,76:D:N,97:D:N', 30, '60.00', '100.00', '2020-09-30 08:49:01', '2020-09-30 09:19:01', 'Y'), (205, 32, 307, '67,78,87,63,93,97,74,100,89,80,58,73,75,79,88,96,68,90,60,95,102,81,56,69,83,57,92,82,77,59,55,70,76,72,71,99,64,62,101,98,65,54,91,84,66,85,53,94,86,61', '67:B:N,78:C:N,87:A:N,63:A:N,93:B:N,97:D:N,74:A:N,100:B:N,89:B:N,80:B:N,58:E:N,73:C:N,75:C:N,79:D:N,88:A:N,96:B:N,68:E:N,90:A:N,60:B:N,95:C:N,102:D:N,81::N,56::N,69::N,83::N,57::N,92::N,82::N,77::N,59::N,55::N,70::N,76::N,72::N,71::N,99::N,64::N,62::N,101::N,98::N,65::N,54::N,91::N,84::N,66::N,85::N,53::N,94::N,86::N,61::N', 17, '34.00', '100.00', '2020-09-30 08:49:08', '2020-09-30 09:19:08', 'Y'), (206, 32, 262, '73,92,100,91,90,89,66,69,99,57,77,76,102,54,78,75,53,59,58,71,95,65,74,55,81,56,61,96,101,84,88,62,70,97,60,64,85,63,67,86,87,72,83,98,82,94,80,68,79,93', '73:D:N,92::N,100:B:N,91:A:N,90::N,89:B:N,66:B:N,69:A:N,99::N,57::N,77:E:N,76:E:N,102::N,54:A:N,78:D:N,75:E:N,53:E:N,59::N,58::N,71:B:N,95:B:N,65:D:N,74:A:N,55::N,81:D:N,56::N,61:A:N,96:B:N,101::N,84:C:N,88:A:N,62:D:N,70:E:N,97:D:N,60:C:N,64:D:N,85:C:N,63:B:N,67:D:N,86:B:N,87::N,72:B:N,83:C:N,98:C:N,82:C:N,94:D:N,80:B:N,68:D:N,79:C:N,93:D:N', 19, '38.00', '100.00', '2020-09-30 08:49:11', '2020-09-30 09:19:11', 'Y'), (207, 32, 299, '92,60,55,88,72,59,66,70,94,54,101,78,67,83,75,71,82,56,63,74,64,99,97,96,86,81,62,76,73,77,84,69,89,95,102,79,61,80,98,91,53,57,85,93,65,68,87,100,58,90', '92:A:N,60:B:N,55:E:N,88:A:N,72:C:N,59:B:N,66::Y,70:C:N,94:D:N,54:E:N,101:C:N,78:B:N,67:B:N,83:A:N,75:E:N,71:D:N,82:B:N,56:E:N,63:B:N,74:A:N,64:A:N,99:C:N,97:D:N,96:B:N,86:A:N,81:D:N,62:B:N,76:D:N,73:A:N,77:A:N,84::Y,69::N,89::N,95::N,102::N,79::N,61::N,80::N,98::N,91::N,53::N,57::N,85::N,93::N,65::N,68::N,87::N,100::N,58::N,90::N', 13, '26.00', '100.00', '2020-09-30 08:49:12', '2020-09-30 09:19:12', 'Y'), (208, 32, 259, '73,67,82,55,92,62,66,84,88,102,64,85,96,54,72,56,98,59,101,58,61,60,90,68,65,71,76,95,89,93,97,100,75,57,81,87,53,83,70,94,80,63,86,69,74,77,99,78,79,91', '73:D:N,67:B:N,82:B:N,55:C:N,92:A:N,62:A:N,66:C:N,84:C:N,88:A:N,102:D:N,64:A:N,85:C:N,96:B:N,54:B:N,72:C:N,56:E:N,98:C:N,59:D:N,101:C:N,58:E:N,61:B:N,60:B:N,90:A:N,68:D:N,65:E:N,71:D:N,76:C:N,95:B:N,89:D:N,93:D:N,97:D:N,100:B:N,75:C:N,57:C:N,81:A:N,87:A:N,53:E:N,83:A:N,70:C:N,94:D:N,80:B:N,63:A:N,86:A:N,69:B:N,74:D:N,77:E:N,99:C:N,78:D:Y,79:D:Y,91:A:N', 32, '64.00', '100.00', '2020-09-30 08:49:16', '2020-09-30 09:19:16', 'Y'), (209, 32, 271, '60,74,81,84,87,97,54,67,58,93,69,70,68,101,64,62,88,98,66,73,102,59,94,76,83,79,82,53,89,78,63,61,86,65,91,72,71,96,57,100,85,99,77,55,95,56,92,90,75,80', '60:C:N,74:A:N,81:A:N,84:C:N,87:A:N,97:D:N,54:D:N,67:A:N,58:E:N,93:B:N,69:D:N,70:D:N,68:C:N,101:C:N,64:B:N,62:B:N,88:A:N,98:C:N,66:C:N,73:C:N,102:D:N,59:C:N,94:D:N,76:B:N,83:A:N,79:D:N,82:B:N,53:E:N,89:D:N,78:D:N,63:B:N,61:A:N,86:A:N,65:D:N,91:B:N,72:C:N,71:D:N,96:B:N,57:C:N,100:B:N,85:C:N,99:C:N,77:E:N,55:D:N,95:B:N,56:E:N,92:A:N,90:A:N,75:C:N,80:B:N', 33, '66.00', '100.00', '2020-09-30 08:49:19', '2020-09-30 09:19:19', 'N'), (210, 32, 295, '71,64,76,77,57,84,70,91,83,95,78,102,63,69,60,68,62,100,56,74,96,67,97,88,61,89,75,58,79,87,82,66,93,54,101,86,53,73,65,94,72,81,55,98,80,90,59,99,92,85', '71:E:N,64:D:N,76:B:N,77:E:N,57:C:N,84:C:N,70:B:N,91:A:N,83:A:N,95:B:N,78:D:N,102:D:N,63:D:N,69:B:N,60:D:N,68:C:N,62:B:N,100:B:N,56:E:N,74:A:N,96:B:N,67:B:Y,97:B:N,88:D:N,61:B:N,89:B:N,75:C:N,58:E:N,79:D:N,87:C:N,82:B:N,66:C:N,93:D:N,54:D:N,101:C:Y,86:C:N,53:E:N,73:C:N,65:D:Y,94:D:N,72:C:N,81:A:N,55:B:N,98:B:Y,80:B:N,90:A:N,59:C:N,99:D:N,92:A:N,85:A:N', 27, '54.00', '100.00', '2020-09-30 08:49:38', '2020-09-30 09:19:38', 'N'), (211, 32, 309, '60,65,77,73,63,69,81,66,68,92,99,70,96,101,57,59,98,56,75,74,102,90,61,93,87,72,97,54,80,58,94,53,89,78,91,82,67,71,76,62,86,84,64,55,83,95,88,85,79,100', '60:B:N,65::Y,77:A:N,73:A:N,63:C:N,69:A:N,81:B:N,66:E:N,68:E:N,92::N,99:C:N,70:A:N,96:B:N,101:C:N,57:C:N,59::N,98:C:N,56:E:N,75:A:N,74::N,102:D:N,90::N,61:A:N,93:A:N,87:A:N,72:B:N,97:D:N,54:A:N,80:A:N,58:A:N,94::N,53:E:N,89:B:N,78:D:N,91:A:N,82:B:N,67:A:N,71:B:N,76:B:N,62:C:N,86:A:N,84:C:N,64:B:N,55::N,83::N,95::N,88::N,85::N,79::N,100::N', 15, '30.00', '100.00', '2020-09-30 08:49:51', '2020-09-30 09:19:51', 'Y'), (212, 32, 300, '65,61,83,100,79,71,53,55,102,90,77,59,63,93,99,95,97,85,73,88,96,91,81,89,82,70,62,92,86,80,64,66,94,56,76,101,58,54,67,75,57,69,68,87,84,72,60,78,74,98', '65:E:N,61:B:N,83:C:N,100:B:N,79::N,71::N,53:E:N,55::N,102:D:N,90::N,77:E:N,59:B:N,63::N,93::N,99:C:N,95::N,97:B:N,85:C:N,73::N,88::N,96:B:N,91::N,81::N,89:B:N,82::N,70:A:N,62:A:N,92:A:N,86:A:N,80:B:N,64::N,66::N,94:D:N,56:B:N,76::N,101::N,58:E:N,54:D:N,67:B:N,75::N,57::N,69::N,68::N,87:A:N,84:C:N,72::N,60::N,78::N,74:A:N,98:C:N', 24, '48.00', '100.00', '2020-09-30 08:49:52', '2020-09-30 09:19:52', 'N'), (213, 32, 313, '89,62,56,53,55,76,70,57,87,101,59,63,80,81,79,97,58,100,92,75,71,90,69,77,82,99,54,72,66,68,83,64,98,78,65,61,73,84,95,102,85,60,88,67,91,96,74,86,94,93', '89:B:N,62:C:Y,56:B:N,53:E:N,55:D:N,76:A:N,70:D:N,57:C:N,87:A:N,101:C:N,59:D:N,63:B:N,80:B:N,81:B:N,79:C:N,97:D:N,58:D:N,100:B:N,92:A:N,75:C:N,71:B:N,90:A:N,69:B:N,77:A:N,82:B:N,99:C:N,54:B:N,72:A:N,66:C:N,68:D:N,83:C:N,64:C:N,98:C:N,78:D:N,65:D:N,61:D:N,73:D:N,84:C:N,95:B:N,102:D:N,85:C:N,60:D:N,88:A:N,67:B:N,91:A:N,96:B:N,74:A:N,86:B:N,94:D:N,93:E:N', 28, '56.00', '100.00', '2020-09-30 08:49:56', '2020-09-30 09:19:56', 'N'), (214, 32, 302, '74,101,87,69,64,70,86,53,83,67,57,100,97,84,72,76,93,90,94,59,96,58,92,61,55,75,102,56,71,73,81,85,82,54,63,79,60,80,68,66,65,88,91,95,78,98,77,89,62,99', '74:A:N,101:C:N,87:A:N,69:C:N,64:B:N,70:B:N,86:A:N,53:E:N,83:C:N,67:B:N,57:A:N,100:B:N,97:A:N,84:A:N,72:C:N,76:A:N,93:B:N,90:A:N,94:D:N,59:C:N,96:D:N,58:A:N,92:A:N,61:D:N,55:D:N,75:D:N,102:D:N,56:E:N,71:D:N,73:B:N,81:B:N,85:C:N,82:B:N,54:B:N,63:A:N,79:D:N,60:B:N,80:A:N,68:B:N,66:C:N,65:E:N,88:B:N,91:A:N,95:D:N,78:B:N,98:C:N,77:C:N,89:A:N,62:D:N,99:C:N', 22, '44.00', '100.00', '2020-09-30 08:50:03', '2020-09-30 09:20:03', 'Y'), (215, 32, 263, '69,89,100,55,98,64,65,78,77,87,93,76,79,68,56,92,90,73,63,66,71,102,82,53,58,81,83,96,60,86,101,75,84,62,57,61,72,85,74,97,99,95,80,70,94,91,59,88,67,54', '69:C:N,89:B:N,100:B:N,55:A:N,98:C:N,64:B:Y,65:D:N,78:D:N,77:E:N,87:A:N,93:D:N,76:E:N,79:D:N,68:D:N,56:C:N,92:A:N,90:A:N,73:A:N,63:A:N,66:A:N,71:D:N,102:D:N,82:B:N,53:E:N,58:D:N,81:D:N,83::N,96::N,60::N,86::N,101::N,75::N,84::N,62::N,57::N,61::N,72::N,85::N,74::N,97::N,99::N,95::N,80::N,70::N,94::N,91::N,59::N,88::N,67::N,54::N', 15, '30.00', '100.00', '2020-09-30 08:50:53', '2020-09-30 09:20:53', 'N'), (216, 32, 296, '101,58,69,95,68,73,70,83,87,78,74,85,88,102,71,61,97,54,80,72,91,84,94,86,81,55,66,60,92,96,63,89,57,77,82,53,67,64,98,65,79,99,76,100,93,56,75,90,59,62', '101:C:N,58:E:N,69:E:N,95:B:Y,68:B:N,73:C:N,70:A:N,83:A:N,87:A:N,78:D:N,74:A:N,85:C:N,88:B:Y,102:D:N,71:D:Y,61:B:N,97:D:Y,54:A:N,80:B:N,72:C:N,91:C:N,84:C:N,94:D:N,86:A:N,81:A:N,55:E:N,66::N,60::N,92:A:N,96:B:N,63::N,89:D:N,57:C:N,77:E:N,82:B:N,53:E:N,67:B:N,64:B:N,98:C:N,65:D:Y,79::N,99:C:Y,76:B:N,100:B:N,93:D:N,56:C:N,75:C:N,90:A:N,59:C:N,62:D:N', 30, '60.00', '100.00', '2020-09-30 08:52:02', '2020-09-30 09:22:02', 'N'), (217, 32, 314, '65,97,73,74,85,60,91,63,67,75,90,87,94,58,54,57,83,96,98,56,59,99,72,102,93,68,66,61,78,86,88,80,79,71,69,76,95,82,53,55,64,81,101,62,70,77,89,92,84,100', '65:E:N,97:D:N,73:C:N,74:A:N,85:C:N,60:C:N,91:A:N,63:A:N,67:A:N,75:C:N,90:A:N,87:A:N,94:D:N,58:E:N,54:D:N,57:C:N,83:A:N,96:B:N,98:C:N,56:B:N,59:B:N,99:D:N,72:C:N,102:A:N,93:D:N,68:E:N,66:C:N,61:B:N,78:D:N,86:C:N,88:A:N,80:B:N,79:D:N,71:D:N,69:E:N,76:C:N,95::N,82:B:N,53:E:N,55:A:N,64::N,81::N,101::N,62::N,70::N,77::N,89::N,92::N,84::N,100::N', 30, '60.00', '100.00', '2020-09-30 08:52:09', '2020-09-30 09:22:09', 'Y'), (219, 32, 261, '68,92,66,60,73,64,72,61,71,89,67,88,81,83,90,98,76,101,69,95,55,62,85,97,77,100,75,65,54,59,94,96,93,57,91,82,58,80,84,70,63,99,86,79,78,102,74,87,53,56', '68::Y,92:B:N,66:B:N,60:B:N,73::N,64:B:N,72::N,61:D:N,71::N,89:B:N,67:B:N,88:A:N,81::N,83:A:N,90:A:N,98:C:N,76::N,101:C:N,69::N,95:B:N,55:A:N,62:C:N,85:C:N,97:D:N,77::N,100:A:N,75::N,65:B:N,54:B:N,59:B:N,94:C:N,96:B:N,93:D:N,57:B:N,91:A:N,82::N,58:B:N,80::N,84::N,70::N,63::N,99::N,86::N,79::N,78::N,102::N,74::N,87::N,53::N,56::N', 12, '24.00', '100.00', '2020-09-30 08:53:37', '2020-09-30 09:23:37', 'Y'), (221, 32, 268, '76,96,80,90,94,61,65,82,77,95,59,97,72,75,67,57,88,53,98,54,84,70,89,93,100,101,58,86,79,69,71,85,64,81,92,62,68,56,87,83,55,78,74,102,99,63,73,66,91,60', '76::N,96:B:N,80::N,90:A:N,94:D:N,61:A:N,65:D:N,82::N,77:E:N,95::N,59:B:N,97:D:N,72:C:N,75:C:N,67:A:N,57:B:N,88::N,53:B:N,98:B:N,54:B:N,84:C:N,70:D:N,89:B:N,93:D:N,100:B:N,101::N,58:C:N,86:B:N,79::N,69:E:N,71:A:N,85:C:N,64:A:N,81::N,92:A:N,62:B:N,68:D:N,56::N,87:A:N,83:A:N,55:A:N,78::N,74:B:N,102:D:N,99:C:N,63:A:N,73:A:N,66:A:N,91:B:N,60:C:N', 21, '42.00', '100.00', '2020-09-30 08:53:50', '2020-09-30 09:23:50', 'N'), (223, 32, 280, '100,80,68,55,94,72,58,76,83,77,75,53,63,101,102,87,82,78,79,67,73,89,70,92,56,57,60,99,84,90,64,96,98,71,66,65,85,62,95,88,81,61,91,74,54,86,69,97,93,59', '100:B:N,80:B:N,68::N,55:A:N,94::N,72:C:N,58:E:N,76:B:N,83:A:N,77:E:N,75:C:N,53:E:N,63::N,101:C:N,102:D:N,87:A:N,82:C:N,78::N,79:C:N,67:B:N,73:C:N,89:B:N,70:C:N,92:E:N,56::N,57::N,60::N,99:C:N,84:C:N,90:A:N,64::N,96:B:N,98:C:N,71::N,66::N,65::N,85:B:N,62::N,95::N,88:E:N,81:D:N,61:B:N,91::N,74:A:N,54::N,86:A:N,69:C:N,97:D:N,93:A:N,59:B:N', 24, '48.00', '100.00', '2020-09-30 08:54:44', '2020-09-30 09:24:44', 'Y'), (224, 32, 267, '100,65,94,70,73,98,59,84,79,57,56,64,86,69,97,66,58,88,76,71,75,68,62,93,85,81,95,91,77,53,87,80,55,60,99,90,54,67,63,83,78,96,92,72,82,61,74,89,102,101', '100:B:N,65:E:N,94:D:N,70:A:N,73:C:N,98:C:N,59:C:N,84:C:N,79:C:N,57:C:N,56:E:N,64:A:N,86:B:N,69:E:N,97:D:N,66:C:N,58::N,88:A:N,76:B:N,71:D:N,75:C:N,68:B:N,62:A:N,93:D:N,85:B:N,81:A:N,95:B:N,91:A:N,77:E:N,53::N,87:A:N,80:C:N,55::N,60::N,99:B:N,90:A:N,54::N,67::N,63::N,83:A:N,78:D:N,96:B:N,92:A:N,72:C:N,82:B:N,61:A:N,74:A:N,89:B:N,102:D:N,101:C:N', 28, '56.00', '100.00', '2020-09-30 08:55:38', '2020-09-30 09:25:38', 'N'), (231, 32, 292, '80,56,84,86,57,60,90,88,85,78,67,62,77,68,96,83,55,53,66,94,93,79,92,73,71,75,63,97,101,59,74,58,72,99,95,87,100,102,76,69,65,82,54,98,64,61,89,70,81,91', '80:B:N,56:B:N,84:C:N,86:A:N,57:C:N,60:C:N,90:A:N,88::Y,85:C:N,78::Y,67::Y,62::N,77:E:N,68:B:N,96:B:N,83:A:N,55::Y,53::Y,66::Y,94:D:N,93:D:N,79:A:N,92:A:N,73:C:N,71:D:N,75:C:N,63:A:N,97:D:N,101:C:N,59:B:N,74:A:N,58:E:N,72:C:N,99:C:N,95:B:N,87:A:N,100:B:N,102:D:N,76:C:N,69:B:N,65:B:Y,82::N,54::N,98::N,64::N,61::N,89::N,70::N,81::N,91::N', 28, '56.00', '100.00', '2020-09-30 09:00:40', '2020-09-30 09:30:40', 'Y'), (234, 32, 275, '90,101,62,58,72,79,74,76,88,94,84,67,96,71,91,102,57,69,80,65,99,77,73,98,70,63,66,89,75,87,64,82,95,97,78,54,60,81,92,83,55,61,68,86,100,93,85,59,53,56', '90:A:N,101:C:N,62:B:N,58:B:N,72:C:N,79:C:N,74:A:N,76:B:N,88:A:N,94:D:N,84:C:N,67:A:N,96:B:N,71:D:N,91:A:N,102:D:N,57:C:N,69:B:N,80:B:N,65:D:N,99:C:N,77:D:N,73:A:N,98:C:N,70:D:N,63:D:N,66:B:N,89:B:N,75:C:N,87:A:N,64:D:N,82:C:N,95:B:N,97:C:N,78:D:N,54:B:N,60:D:N,81:C:N,92:A:N,83:C:N,55:D:N,61:D:N,68:A:N,86:C:N,100:B:N,93:B:N,85:B:N,59:D:N,53:E:N,56:E:N', 25, '50.00', '100.00', '2020-09-30 09:02:34', '2020-09-30 09:32:34', 'Y'), (237, 32, 270, '94,62,78,85,60,93,81,79,101,102,83,55,96,67,56,59,77,91,92,61,58,90,75,99,98,68,82,84,76,86,65,71,66,69,54,97,53,57,70,87,80,73,63,64,88,95,72,100,74,89', '94:D:N,62:A:N,78:C:N,85:B:N,60:D:N,93:B:N,81:D:N,79::N,101:C:N,102::N,83:A:N,55:A:N,96:C:N,67:C:N,56:E:N,59:E:N,77:E:N,91:A:N,92:A:N,61:A:N,58::N,90:A:N,75:E:N,99:B:N,98:C:N,68:D:N,82:B:N,84:C:N,76:C:N,86:B:N,65:D:N,71:A:N,66:A:N,69:A:N,54:A:N,97:B:N,53:E:N,57:A:N,70:A:N,87:D:N,80:B:N,73:E:N,63::N,64:E:N,88:A:N,95::N,72::N,100::N,74::N,89::N', 16, '32.00', '100.00', '2020-09-30 09:08:06', '2020-09-30 09:38:06', 'N'), (238, 32, 308, '76,61,58,94,87,83,91,77,60,88,100,85,96,64,63,98,66,102,86,68,69,97,92,99,62,56,57,71,73,82,72,81,59,65,95,84,90,54,101,80,78,89,93,79,74,67,75,55,70,53', '76:B:N,61:A:N,58:C:N,94:D:N,87:A:N,83:C:N,91:A:N,77:E:N,60:C:N,88:C:N,100:B:N,85:C:N,96:B:N,64:A:N,63:A:N,98:B:N,66:D:Y,102:D:N,86:C:N,68:C:N,69:E:N,97:B:N,92:B:N,99:B:N,62:D:N,56:E:Y,57:D:N,71:B:N,73:C:N,82:B:N,72:C:N,81:B:N,59:B:N,65:E:N,95:B:N,84:C:N,90:A:N,54:A:N,101:C:N,80:B:N,78:B:Y,89:D:N,93:B:N,79:D:N,74:A:N,67:E:Y,75:E:N,55:C:Y,70:A:N,53:C:Y', 23, '46.00', '100.00', '2020-09-30 09:09:14', '2020-09-30 09:39:14', 'Y'), (240, 32, 272, '67,81,69,54,83,89,99,65,76,82,72,53,87,101,100,97,85,80,61,88,77,98,96,90,60,73,66,58,78,55,62,79,59,92,74,102,86,56,57,84,94,91,64,75,70,68,63,95,93,71', '67:C:N,81:A:N,69:A:N,54:A:N,83:C:N,89:B:N,99:C:N,65:D:N,76:E:N,82:D:N,72:E:N,53:E:N,87:A:N,101:C:N,100:B:N,97:D:N,85:C:N,80:C:N,61:A:N,88:A:N,77:C:N,98:C:N,96:B:N,90:A:N,60:A:N,73:D:N,66:C:N,58:B:N,78:D:N,55:D:N,62:D:N,79:D:N,59:C:N,92:A:N,74:A:N,102:D:N,86:A:N,56:B:N,57:C:N,84:C:N,94:D:N,91:A:N,64:D:N,75:C:N,70:A:N,68:C:N,63:D:N,95:B:N,93:D:N,71:B:N', 27, '54.00', '100.00', '2020-09-30 09:13:54', '2020-09-30 09:43:54', 'Y'), (243, 32, 284, '59,96,101,62,53,70,67,56,98,81,61,74,55,92,69,78,60,87,94,99,102,54,68,65,85,73,76,66,97,83,77,72,95,93,58,90,80,79,88,64,89,71,82,75,63,91,86,84,100,57', '59:B:N,96:B:N,101:D:N,62:B:N,53:B:N,70:D:N,67:D:N,56:C:N,98:C:N,81:A:N,61:D:N,74:C:N,55:B:N,92:A:N,69:D:N,78:B:N,60:D:N,87:A:N,94:B:N,99:D:N,102:D:N,54:A:N,68:A:N,65:B:N,85:C:N,73:C:N,76::N,66:A:N,97:A:N,83:A:N,77:D:N,72:B:N,95:B:N,93:D:N,58:B:N,90:A:N,80:A:N,79:B:N,88:C:N,64:E:N,89:B:N,71:B:N,82:A:N,75:C:N,63:C:N,91:A:N,86:A:N,84:C:N,100:B:N,57:A:N', 15, '30.00', '100.00', '2020-09-30 09:22:24', '2020-09-30 09:52:24', 'N'), (248, 32, 283, '67,75,100,65,84,56,95,80,74,62,94,101,87,93,70,89,99,97,61,55,81,79,57,77,91,90,53,64,82,83,73,54,68,58,76,92,86,63,85,69,60,66,98,72,102,78,96,59,71,88', '67:B:N,75:A:N,100:B:N,65:A:N,84:C:N,56:A:N,95:C:N,80:B:N,74:A:N,62:A:N,94:B:N,101:C:N,87:A:N,93:B:N,70:A:N,89:D:N,99:C:N,97:B:N,61:A:N,55:C:N,81:A:N,79:A:N,57:D:N,77:A:N,91:A:N,90:A:N,53:A:N,64:A:N,82:A:N,83:C:N,73:C:N,54:A:N,68:A:N,58:D:N,76:A:N,92:A:N,86:B:N,63:A:N,85:C:N,69:B:N,60:B:N,66:C:N,98:C:N,72:A:N,102:A:N,78:A:N,96:B:N,59:B:N,71:A:N,88:A:N', 24, '48.00', '100.00', '2020-09-30 10:35:44', '2020-09-30 11:05:44', 'Y'), (249, 32, 260, '68,58,84,97,89,81,54,70,83,95,102,60,64,56,72,101,94,92,98,100,91,59,63,79,93,53,80,71,57,76,69,86,61,62,74,75,65,85,77,88,67,82,55,73,96,90,99,87,78,66', '68:D:N,58:A:N,84:C:N,97:D:N,89:B:N,81:B:N,54:A:N,70:B:N,83:C:N,95:D:N,102:D:N,60:B:N,64:A:N,56:C:N,72:C:N,101:C:N,94:D:N,92:A:N,98:C:N,100:B:N,91:A:N,59:A:N,63:D:N,79:A:N,93:B:N,53:D:N,80:A:N,71:D:N,57:A:N,76:C:N,69:B:N,86:A:N,61:A:N,62:D:N,74:A:N,75:E:N,65:B:N,85:B:N,77:C:N,88:A:N,67:D:N,82:A:N,55:C:N,73:A:N,96:B:N,90:A:N,99:C:N,87:A:N,78:B:N,66:D:N', 21, '42.00', '100.00', '2020-09-30 12:25:23', '2020-09-30 12:55:23', 'Y'), (251, 32, 315, '66,70,62,68,77,76,74,87,102,78,97,94,55,90,67,95,98,72,71,100,65,91,56,81,73,79,88,75,85,61,82,96,93,63,101,99,69,83,86,80,53,64,60,54,92,89,84,59,58,57', '66:E:N,70:D:N,62:A:N,68:A:N,77:E:N,76:E:N,74:A:N,87:C:N,102:A:N,78:E:N,97:D:N,94:D:N,55:C:N,90:A:N,67:B:N,95:B:N,98:C:N,72:C:N,71:D:N,100:B:N,65:C:N,91:A:N,56:C:N,81:C:N,73:E:N,79:D:N,88:E:N,75:B:N,85:C:N,61:B:N,82:C:N,96:C:N,93:D:N,63:B:N,101:C:N,99:C:N,69:B:N,83:A:N,86:B:N,80:A:N,53:B:N,64:D:N,60:B:N,54:B:N,92:E:N,89:C:N,84:C:N,59:C:N,58:B:N,57:A:N', 18, '36.00', '100.00', '2020-09-30 19:05:43', '2020-09-30 19:35:43', 'N'), (252, 32, 291, '79,68,82,73,92,80,63,95,72,94,87,96,91,71,69,54,55,84,90,53,61,65,89,77,86,97,81,59,56,75,88,62,66,99,85,78,64,100,102,101,76,98,58,57,93,83,60,74,70,67', '79:A:N,68:E:N,82:B:N,73:C:N,92:E:N,80:B:N,63:A:N,95:D:N,72:C:N,94:D:N,87:E:Y,96:B:N,91:A:N,71:D:N,69:E:N,54::N,55::N,84:C:N,90:A:N,53:E:N,61:B:N,65::N,89::N,77:E:N,86:C:N,97::N,81:A:N,59:B:N,56:B:N,75:C:Y,88:E:N,62::N,66::N,99:C:N,85:C:N,78:E:N,64::N,100:B:N,102:D:N,101::N,76:B:N,98::N,58:E:N,57::N,93:E:N,83:A:N,60:C:N,74:A:N,70:A:N,67:B:N', 28, '56.00', '100.00', '2020-10-03 11:26:13', '2020-10-03 11:56:13', 'Y'), (253, 32, 317, '78,56,77,73,87,86,102,96,94,85,57,60,100,84,88,82,93,74,70,69,61,65,62,98,90,64,80,99,59,92,101,75,97,67,54,72,95,81,76,53,71,91,66,58,89,68,79,63,83,55', '78:D:N,56:C:N,77:E:N,73:C:N,87:C:N,86:C:N,102:A:N,96:B:N,94:B:N,85:C:N,57:A:N,60:B:N,100:B:N,84:C:N,88:B:N,82:A:N,93:D:N,74:A:N,70:D:N,69:E:N,61:D:N,65:D:N,62:D:N,98:A:N,90:A:N,64:B:N,80:B:N,99:A:N,59::N,92:A:N,101:B:N,75:E:N,97:D:N,67:A:N,54:B:N,72:C:N,95:D:N,81:A:N,76:A:N,53:A:N,71:B:N,91:A:N,66:C:N,58:C:N,89:D:N,68:D:N,79:D:N,63:A:N,83::N,55::N', 16, '32.00', '100.00', '2020-10-05 15:58:53', '2020-10-05 16:28:53', 'Y'), (255, 32, 319, '88,100,76,91,98,59,63,65,66,80,82,85,77,83,86,101,58,90,70,62,57,54,94,92,67,74,73,89,64,56,61,81,87,97,96,84,68,69,99,75,53,93,55,95,79,60,71,78,72,102', '88:B:N,100:A:N,76:E:N,91:B:N,98:B:N,59:E:N,63:D:N,65:D:N,66:D:N,80:C:N,82:B:N,85:B:N,77:E:N,83:A:N,86:B:N,101:B:N,58:A:N,90:A:N,70:D:N,62:A:N,57:A:N,54:A:N,94:D:N,92:A:N,67:A:N,74:A:N,73:C:N,89:B:N,64:D:N,56:E:N,61:A:N,81:D:N,87:A:N,97:B:N,96:B:N,84:C:N,68:C:N,69:D:N,99:B:N,75:E:N,53:D:N,93:A:N,55:E:N,95:B:N,79:D:N,60:C:N,71:D:N,78:D:N,72:E:N,102:A:N', 18, '36.00', '100.00', '2020-10-05 21:23:29', '2020-10-05 21:53:29', 'N'), (256, 32, 321, '63,53,71,74,88,69,78,61,98,64,73,92,99,90,72,55,96,89,56,77,87,84,91,79,101,76,58,68,83,60,59,70,62,54,57,65,93,75,97,80,82,100,86,95,81,102,67,85,94,66', '63:A:N,53:E:N,71:D:N,74:A:N,88:A:Y,69:C:N,78:D:N,61:B:N,98:C:N,64:E:Y,73:C:N,92:A:N,99:C:N,90:A:N,72:C:N,55:A:N,96:B:N,89:B:N,56:B:N,77:E:N,87:A:N,84:C:N,91:A:N,79:D:N,101:C:N,76:C:N,58:E:N,68:E:N,83:A:N,60:C:N,59:B:N,70:B:N,62:A:N,54:B:N,57:C:N,65:E:N,93:B:N,75:C:N,97:B:N,80:B:N,82:B:N,100:B:N,86:B:N,95:B:N,81:A:N,102:D:N,67:B:N,85:C:N,94:D:N,66:D:N', 41, '82.00', '100.00', '2020-10-05 21:39:18', '2020-10-05 22:09:18', 'Y'), (257, 32, 318, '62,102,70,60,76,78,94,93,74,101,92,64,61,69,95,88,57,85,98,55,79,71,63,56,53,90,100,97,73,77,65,83,68,66,54,67,80,87,82,81,89,96,84,75,99,91,86,58,72,59', '62:B:N,102:D:N,70:A:N,60:A:N,76:E:N,78:C:N,94:D:N,93:D:N,74:A:N,101:C:N,92:A:N,64:B:N,61:D:N,69:B:N,95:B:N,88:A:N,57:A:N,85:C:N,98:C:N,55:C:N,79:C:N,71:D:N,63:C:N,56:C:Y,53::N,90:B:N,100:B:N,97:D:N,73::N,77::N,65::N,83:A:N,68:A:N,66::N,54::N,67::N,80::N,87:A:N,82::N,81::N,89:B:N,96:B:N,84:C:N,75:C:N,99::N,91::N,86::N,58::N,72::N,59::N', 18, '36.00', '100.00', '2020-10-05 21:45:19', '2020-10-05 22:15:19', 'Y'), (259, 32, 320, '53,71,85,76,73,62,90,87,65,72,94,97,70,98,59,77,82,58,63,75,81,88,101,61,69,64,86,57,78,83,102,96,95,68,91,89,60,55,79,56,66,93,100,80,54,74,67,92,99,84', '53:E:N,71:B:N,85:C:N,76:A:Y,73:B:N,62:E:N,90:A:N,87:C:Y,65:E:N,72:D:N,94:D:N,97:D:N,70:C:N,98:C:N,59:B:N,77:C:N,82:A:N,58:E:N,63:E:N,75:E:Y,81:B:N,88:D:N,101:C:N,61:B:N,69:B:N,64:D:N,86:B:N,57:A:N,78:D:N,83:A:N,102:A:N,96::N,95::N,68::N,91::N,89::N,60::N,55::N,79::N,56::N,66::N,93::N,100::N,80::N,54::N,74::N,67::N,92::N,99::N,84::N', 15, '30.00', '100.00', '2020-10-06 11:13:54', '2020-10-06 11:43:54', 'N'), (260, 32, 323, '100,75,65,64,57,83,66,99,60,59,95,71,91,98,58,87,80,69,79,68,56,70,78,61,96,94,101,89,67,81,85,86,62,55,73,88,53,97,90,63,84,102,74,76,93,72,92,82,54,77', '100:B:N,75:C:N,65:D:N,64:D:N,57:C:N,83:C:N,66:A:N,99:C:N,60:C:N,59:B:N,95:C:N,71:D:N,91:B:N,98:C:N,58:D:N,87:A:N,80:A:N,69:C:N,79:A:N,68:C:N,56:B:N,70:A:N,78:D:N,61:B:N,96:B:N,94:D:N,101:C:N,89:B:N,67:B:N,81::N,85::N,86::N,62::N,55::N,73::N,88::N,53::N,97::N,90::N,63::N,84::N,102::N,74::N,76::N,93::N,72::N,92::N,82::N,54::N,77::N', 23, '46.00', '100.00', '2020-10-08 07:27:27', '2020-10-08 07:57:27', 'Y'), (261, 32, 322, '86,100,67,77,76,85,56,78,62,99,95,53,90,80,60,93,79,83,59,96,63,72,97,61,75,69,84,89,81,64,92,55,57,54,88,74,71,68,65,82,101,94,66,58,91,98,102,87,73,70', '86:B:N,100:A:N,67::N,77:E:N,76:E:N,85:C:N,56:C:N,78:D:N,62:A:N,99:C:N,95:D:N,53:E:N,90:A:N,80:A:N,60:C:N,93:D:N,79:B:N,83:C:N,59:B:N,96:B:N,63:E:N,72:D:N,97:D:N,61:B:N,75:C:N,69:D:N,84:C:N,89:B:N,81:A:N,64:A:Y,92:A:N,55:D:N,57:C:N,54:C:N,88:A:N,74:A:N,71:B:N,68::N,65:A:N,82:A:N,101:C:N,94:D:N,66:D:N,58:E:N,91::N,98::N,102::N,87::N,73::N,70::N', 24, '48.00', '100.00', '2020-10-08 10:40:45', '2020-10-08 11:10:45', 'Y'); -- -------------------------------------------------------- -- -- Table structure for table `karyawans` -- CREATE TABLE `karyawans` ( `id` bigint(20) UNSIGNED NOT NULL, `code` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, `nik` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `status_karyawan` enum('TETAP','KONTRAK','KONTRAK FAKULTAS') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'KONTRAK', `jenis_kelamin` enum('L','p') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'L', `tempat_lahir` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tanggal_lahir` date DEFAULT NULL, `alamat` text COLLATE utf8mb4_unicode_ci, `kode_pos` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `pendidikan_terakhir` enum('-','SD','SMP','SMA/SEDERAJAT','S1','S2','S3') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '-', `asal_pendidikan` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `no_hp` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `photo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'profile.png', `program_studi_id` int(11) DEFAULT NULL, `departement_id` int(11) DEFAULT NULL, `status_akun` enum('Y','N') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'N', `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 `karyawans` -- INSERT INTO `karyawans` (`id`, `code`, `nik`, `nama`, `email`, `status_karyawan`, `jenis_kelamin`, `tempat_lahir`, `tanggal_lahir`, `alamat`, `kode_pos`, `pendidikan_terakhir`, `asal_pendidikan`, `no_hp`, `photo`, `program_studi_id`, `departement_id`, `status_akun`, `created_at`, `updated_at`) VALUES (5, 'PPS024', '3201302410960001', '<NAME>', '<EMAIL>', 'KONTRAK FAKULTAS', '', 'Bogor', '1996-01-24', 'Jl. Cibereum Kalong Rt 07/05', NULL, '-', NULL, NULL, '20220412104313-167858841_4384478648233717_7020433269666150664_n.png', NULL, 1, 'N', '2022-04-12 03:43:13', NULL), (6, 'PPS025', '321321', '<NAME>', '<EMAIL>', 'TETAP', '', 'Bogor', '0000-00-00', '-', NULL, '-', NULL, NULL, '20220412104449-167858841_4384478648233717_7020433269666150664_n.png', NULL, 3, 'N', '2022-04-12 03:44:49', NULL), (7, 'PPS026', '3222122', '<NAME>, SE., MPd', '<EMAIL>', 'TETAP', '', 'Bogor', '0000-00-00', '-', NULL, '-', NULL, NULL, '20220412104544-167858841_4384478648233717_7020433269666150664_n.png', NULL, 4, 'N', '2022-04-12 03:45:44', NULL), (8, 'PPS027', '325251', '<NAME>', '<EMAIL>', 'TETAP', '', '-', '0000-00-00', '-', NULL, '-', NULL, NULL, '20220412104644-167858841_4384478648233717_7020433269666150664_n.png', NULL, 5, 'N', '2022-04-12 03:46:44', NULL), (9, 'PPS001', '232323', 'Prof. Dr. KH. <NAME>, M.S', '<EMAIL>', 'TETAP', '', '-', '0000-00-00', '-', NULL, '-', NULL, NULL, '20220412104737-167858841_4384478648233717_7020433269666150664_n.png', NULL, 5, 'N', '2022-04-12 03:47:37', NULL), (10, 'PPS002', '323235588', '<NAME>, P.Hd', '<EMAIL>', 'TETAP', '', '', '0000-00-00', '', NULL, '-', NULL, NULL, '20220412104824-167858841_4384478648233717_7020433269666150664_n.png', NULL, 5, 'N', '2022-04-12 03:48:24', NULL); -- -------------------------------------------------------- -- -- Table structure for table `kategori_komponen` -- CREATE TABLE `kategori_komponen` ( `id` int(11) NOT NULL, `kategori` varchar(100) DEFAULT NULL, `aktif` enum('Y','N') NOT NULL DEFAULT 'Y', `pejabat_id` int(10) UNSIGNED DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `kategori_komponen` -- INSERT INTO `kategori_komponen` (`id`, `kategori`, `aktif`, `pejabat_id`) VALUES (5, 'Administrasi Keuangan Sidang Tesis', 'Y', NULL), (9, 'Administrasi Seminar Proposal (S2)', 'Y', 8), (11, 'Administrasi Keuangan Seminar Proposal (S2)', 'Y', 7), (12, 'Administrasi Keuangan Seminar Proposal (S3)', 'Y', 7); -- -------------------------------------------------------- -- -- Table structure for table `kelengkapan` -- CREATE TABLE `kelengkapan` ( `id` int(11) NOT NULL, `title` varchar(50) DEFAULT NULL, `komponen_kategori` int(11) DEFAULT NULL, `penanggungjawab` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `komponen` -- CREATE TABLE `komponen` ( `id` int(11) NOT NULL, `id_kategori_komponen` int(11) DEFAULT NULL, `komponen` varchar(255) DEFAULT NULL, `jenis` enum('check','upload','input') NOT NULL DEFAULT 'check' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `komponen` -- INSERT INTO `komponen` (`id`, `id_kategori_komponen`, `komponen`, `jenis`) VALUES (28, 9, 'Mengupload Berkas Proposal seminar', 'upload'), (29, 9, 'Lunas SPP SMT II & III', 'check'), (31, 11, 'Telah Melunasi Biaya semeter II & III', 'check'), (32, 12, 'TELAH MELUNASI KEUANGAN SEMETER II', 'check'), (33, 11, 'Lulus semua mata kuliah (Perlihatkan Transkrip Nilai S2)', 'check'); -- -------------------------------------------------------- -- -- Table structure for table `master_angkatan` -- CREATE TABLE `master_angkatan` ( `id` int(11) NOT NULL, `keterangan` varchar(50) DEFAULT NULL, `aktif` enum('Y','N') DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `master_angkatan` -- INSERT INTO `master_angkatan` (`id`, `keterangan`, `aktif`) VALUES (1, '2020-2021', 'Y'), (2, '2022-2023', 'Y'); -- -------------------------------------------------------- -- -- Table structure for table `master_dosen` -- CREATE TABLE `master_dosen` ( `id` int(11) NOT NULL, `nik` varchar(11) NOT NULL, `nama_lengkap` varchar(128) NOT NULL, `jenis_kelamin` enum('L','P') DEFAULT NULL, `no_ktp` varchar(128) NOT NULL, `gelar_kesarjanaan` varchar(128) DEFAULT NULL, `tempat_lahir` varchar(128) DEFAULT NULL, `tanggal_lahir` date DEFAULT NULL, `status_kawin` enum('menikah','belum menikah') DEFAULT NULL, `alamat_rumah` text, `email` varchar(128) NOT NULL, `no_hp` varchar(13) NOT NULL, `id_master_prodi` int(128) DEFAULT NULL, `fungsional` varchar(50) DEFAULT NULL, `golongan` varchar(50) DEFAULT NULL, `foto` varchar(128) DEFAULT 'default.png', `status_dosen` enum('TETAP','LB') NOT NULL DEFAULT 'TETAP', `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, `created_by` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC; -- -- Dumping data for table `master_dosen` -- INSERT INTO `master_dosen` (`id`, `nik`, `nama_lengkap`, `jenis_kelamin`, `no_ktp`, `gelar_kesarjanaan`, `tempat_lahir`, `tanggal_lahir`, `status_kawin`, `alamat_rumah`, `email`, `no_hp`, `id_master_prodi`, `fungsional`, `golongan`, `foto`, `status_dosen`, `created_at`, `update_at`, `created_by`) VALUES (1, '001', '<NAME>', 'L', '3201302410960001', 'Dr.', 'Bogor', '1996-01-24', 'belum menikah', 'Kp. Cibereum Kalong Rt 07', '<EMAIL>', '081381100046', 1, '1', '1', 'default.png', 'TETAP', '2022-03-23 06:41:16', '2022-03-23 06:42:22', NULL); -- -------------------------------------------------------- -- -- Table structure for table `master_mahasiswa` -- CREATE TABLE `master_mahasiswa` ( `id` int(11) NOT NULL, `npm` varchar(11) NOT NULL, `nama_lengkap` varchar(128) NOT NULL, `jenis_kelamin` enum('L','P') DEFAULT NULL, `no_ktp` varchar(128) NOT NULL, `gelar_kesarjanaan` varchar(128) DEFAULT NULL, `tempat_lahir` varchar(128) DEFAULT NULL, `tanggal_lahir` date DEFAULT NULL, `status_kawin` enum('menikah','belum menikah') DEFAULT NULL, `alamat_rumah` text, `email` varchar(128) NOT NULL, `no_hp` varchar(13) NOT NULL, `nama_ayah` varchar(128) NOT NULL, `nama_ibu` varchar(128) NOT NULL, `id_master_prodi` int(128) NOT NULL, `id_angkatan` int(128) NOT NULL, `konsentrasi` varchar(128) NOT NULL, `foto` varchar(128) DEFAULT 'default.png', `status` int(11) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, `created_by` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `master_mahasiswa` -- INSERT INTO `master_mahasiswa` (`id`, `npm`, `nama_lengkap`, `jenis_kelamin`, `no_ktp`, `gelar_kesarjanaan`, `tempat_lahir`, `tanggal_lahir`, `status_kawin`, `alamat_rumah`, `email`, `no_hp`, `nama_ayah`, `nama_ibu`, `id_master_prodi`, `id_angkatan`, `konsentrasi`, `foto`, `status`, `created_at`, `update_at`, `created_by`) VALUES (100, '662651', 'Ahmad', NULL, '3201302410960001', 'ST', 'Bogor', '2022-04-14', 'belum menikah', 'Jl. Cibereum', '<EMAIL>', '081392110025', 'ahmadi', 'madi', 1, 2, '', 'Untitled-1.jpg', 1, '2022-02-23 07:39:12', '2022-04-16 03:18:53', NULL), (101, '662652', 'Ali', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110026', '', '', 1, 2, '', 'default.png', 0, '2022-02-23 07:39:12', '2022-02-24 03:53:38', NULL), (102, '662653', 'untung', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110027', '', '', 1, 2, '', 'default.png', 0, '2022-02-23 07:39:12', '2022-02-24 03:53:39', NULL), (103, '662654', 'sugeng', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110028', '', '', 1, 2, '', 'default.png', 0, '2022-02-23 07:39:12', '2022-02-24 03:53:40', NULL), (104, '662655', 'yahya', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110029', '', '', 1, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (105, '662656', 'ayas', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110030', '', '', 1, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (106, '662657', 'ilyas', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110031', '', '', 1, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (107, '662658', 'mahmud', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110032', '', '', 1, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (108, '662659', 'randi', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110033', '', '', 1, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (109, '662660', 'fery', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110034', '', '', 2, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (110, '662661', 'rafa', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110035', '', '', 2, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (111, '662662', 'iis', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110036', '', '', 2, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (112, '662663', 'safira', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110037', '', '', 2, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (113, '662664', 'sahara', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110038', '', '', 2, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (114, '662665', 'sri', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110039', '', '', 2, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (115, '662666', 'wanda', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110040', '', '', 2, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (116, '662667', 'wawan', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110041', '', '', 3, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (117, '662668', 'burhan', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110042', '', '', 3, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (118, '662669', 'lana', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110043', '', '', 3, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (119, '662670', 'lini', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110044', '', '', 3, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (120, '662671', 'lunu', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110045', '', '', 3, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (121, '662672', 'lene', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110046', '', '', 4, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (122, '662673', 'lele', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110047', '', '', 4, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (123, '662674', 'ricky', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110048', '', '', 4, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (124, '662675', 'ricko', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110049', '', '', 4, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (125, '662676', 'roy', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110050', '', '', 4, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (126, '662677', 'rahmat', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110051', '', '', 1, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (127, '662678', 'rohmat', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110052', '', '', 1, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (128, '662679', 'raka', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110053', '', '', 3, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (129, '662680', 'rara', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110054', '', '', 3, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (130, '662681', 'riri', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110055', '', '', 2, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (131, '662682', 'rustam', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110056', '', '', 2, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL), (132, '662683', 'rustim', NULL, '', NULL, NULL, NULL, NULL, NULL, '', '081392110057', '', '', 2, 1, '', 'default.png', 0, '2022-02-23 07:39:12', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `master_prodi` -- CREATE TABLE `master_prodi` ( `id` int(11) NOT NULL, `prodiID` varchar(4) NOT NULL, `program_studi` varchar(255) NOT NULL, `jenjang` varchar(3) DEFAULT 'S2' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `master_prodi` -- INSERT INTO `master_prodi` (`id`, `prodiID`, `program_studi`, `jenjang`) VALUES (1, 'MPAI', 'Magister Pendidikan Agama Islam', 'S2'), (2, 'MES', 'Magister Ekonomi Syari\'ah', 'S2'), (3, 'MTP', 'Magister Teknologi Pendidikan', 'S2'), (4, 'MM', 'Magister Manajemen', 'S2'), (5, 'DPAI', 'Doktor Pendidikan Agama Islam', 'S3'), (6, 'ADM', 'Administrator', NULL); -- -------------------------------------------------------- -- -- Table structure for table `mdapp_pengajuan` -- CREATE TABLE `mdapp_pengajuan` ( `id` int(11) NOT NULL, `npm` varchar(50) DEFAULT NULL, `ujian` varchar(50) DEFAULT NULL, `tanggal_pengajuan` date DEFAULT NULL, `angkatan_id` int(11) DEFAULT NULL, `prodi_id` int(11) DEFAULT NULL, `thesis` text, `status` enum('Y','N') DEFAULT 'N', `pengajuan_ke` int(11) DEFAULT NULL, `pengajuan_form` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `mdapp_pengajuan` -- INSERT INTO `mdapp_pengajuan` (`id`, `npm`, `ujian`, `tanggal_pengajuan`, `angkatan_id`, `prodi_id`, `thesis`, `status`, `pengajuan_ke`, `pengajuan_form`) VALUES (8, '662652', 'proposal', '2022-04-18', NULL, 1, NULL, 'N', 1, NULL); -- -------------------------------------------------------- -- -- Table structure for table `mdapp_pengajuan_kelengkapan` -- CREATE TABLE `mdapp_pengajuan_kelengkapan` ( `id_pengajuan` int(11) DEFAULT NULL, `id_kategori_komponen` int(11) DEFAULT NULL, `status` enum('Diperiksa','Menunggu','Diulang') DEFAULT 'Menunggu', `file` text, `catatan` text ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `mdapp_penguji_ujian` -- CREATE TABLE `mdapp_penguji_ujian` ( `id_ujian` int(11) DEFAULT NULL, `id_dosen` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `mdapp_penilaian` -- CREATE TABLE `mdapp_penilaian` ( `npm` int(11) DEFAULT NULL, `id_dosen` int(11) DEFAULT NULL, `id_ujian` int(11) DEFAULT NULL, `id_komponen` int(11) DEFAULT NULL, `nilai` int(11) DEFAULT NULL, `catatan` text ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `mdapp_ujian` -- CREATE TABLE `mdapp_ujian` ( `id` int(11) NOT NULL, `npm` varchar(50) DEFAULT NULL, `judul_thesis` text, `tgl_ujian` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `mdsetup_komponen` -- CREATE TABLE `mdsetup_komponen` ( `id_kategori_komponen` int(11) DEFAULT NULL, `id_komponen` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `mdtemplate_form` -- CREATE TABLE `mdtemplate_form` ( `id` int(11) NOT NULL, `title` varchar(255) DEFAULT NULL, `nama_template` varchar(255) DEFAULT NULL, `pejabat_id` varchar(255) DEFAULT NULL, `aktif` enum('Y','N') NOT NULL DEFAULT 'Y' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `mdtemplate_form` -- INSERT INTO `mdtemplate_form` (`id`, `title`, `nama_template`, `pejabat_id`, `aktif`) VALUES (14, 'Form Pendaftaran Seminar Proposal', 'proposal', '6', 'Y'), (15, NULL, 'SIDANG DISERTASI', '6', 'Y'), (16, NULL, NULL, NULL, 'Y'), (17, NULL, NULL, NULL, 'Y'); -- -------------------------------------------------------- -- -- Table structure for table `mdtemplate_komponen` -- CREATE TABLE `mdtemplate_komponen` ( `id_template` int(11) DEFAULT NULL, `id_kategori_komponen` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `mdtemplate_komponen` -- INSERT INTO `mdtemplate_komponen` (`id_template`, `id_kategori_komponen`) VALUES (14, 11), (14, 9), (15, 12); -- -------------------------------------------------------- -- -- Table structure for table `mhs_daftar` -- CREATE TABLE `mhs_daftar` ( `id` int(11) NOT NULL, `kode` varchar(50) DEFAULT NULL, `npm` varchar(50) DEFAULT NULL, `ujian_id` int(11) DEFAULT NULL, `form_id` int(11) DEFAULT NULL, `tanggal_daftar` date DEFAULT NULL, `tanggal_ujian` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `pejabats` -- CREATE TABLE `pejabats` ( `id` bigint(20) UNSIGNED NOT NULL, `karyawan_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `pengajar_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `departement_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `jabatan` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `ttd` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `status` enum('Y','N') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Y', `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 `pejabats` -- INSERT INTO `pejabats` (`id`, `karyawan_id`, `pengajar_id`, `departement_id`, `jabatan`, `ttd`, `status`, `created_at`, `updated_at`) VALUES (6, '6', '', '3', 'KEPALA TATA USAHA', '20220412105220-ig.png', 'Y', '2022-04-12 03:52:20', NULL), (7, '7', '', '4', 'KASUBAG KEUANGAN', '20220412105235-167858841_4384478648233717_7020433269666150664_n.png', 'Y', '2022-04-12 03:52:35', NULL), (8, '8', '', '5', 'KASUBAG AKADEMIK', '20220412105250-167858841_4384478648233717_7020433269666150664_n.png', 'Y', '2022-04-12 03:52:50', NULL); -- -------------------------------------------------------- -- -- Table structure for table `pengajars` -- CREATE TABLE `pengajars` ( `id` bigint(20) UNSIGNED NOT NULL, `code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `nik` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `status_pengajar` enum('DOSEN TETAP','DOSEN TIDAK TETAP') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'DOSEN TETAP', `jenis_kelamin` enum('L','P') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'L', `tempat_lahir` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tanggal_lahir` date DEFAULT NULL, `alamat` text COLLATE utf8mb4_unicode_ci, `kode_pos` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `pendidikan_terakhir` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `no_hp` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `photo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `jabatan_fungsional` enum('-','ASISTEN AHLI','LEKTOR','LEKTOR KEPALA','GURU BESAR') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `pangkat` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `golongan` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `status_akun` enum('Y','N') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Y', `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 `program_studis` -- CREATE TABLE `program_studis` ( `id` bigint(20) UNSIGNED NOT NULL, `code` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, `nama` text COLLATE utf8mb4_unicode_ci, `jenjang` enum('S2','S3') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'S2', `kaprodi` int(11) DEFAULT NULL, `sekprodi` int(11) DEFAULT NULL, `ttd` 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 `program_studis` -- INSERT INTO `program_studis` (`id`, `code`, `nama`, `jenjang`, `kaprodi`, `sekprodi`, `ttd`, `created_at`, `updated_at`) VALUES (1, '001', 'TEKNOLOGI PENDIDIKAN', 'S2', 1, 1, NULL, '2022-03-25 03:26:04', NULL), (2, '002', 'Manajemen', 'S2', 1, 1, NULL, '2022-03-25 03:26:04', NULL); -- -------------------------------------------------------- -- -- Table structure for table `soal_to_gorupsoal` -- CREATE TABLE `soal_to_gorupsoal` ( `id` int(11) NOT NULL, `id_bank_soal` int(11) NOT NULL, `id_group_soal` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `soal_to_gorupsoal` -- INSERT INTO `soal_to_gorupsoal` (`id`, `id_bank_soal`, `id_group_soal`) VALUES (1, 53, 1), (2, 54, 1), (3, 55, 1), (4, 56, 1), (5, 57, 1), (6, 58, 1), (7, 59, 1), (8, 60, 1), (9, 61, 1), (10, 62, 1), (11, 63, 1), (12, 64, 1), (13, 65, 1), (14, 66, 1), (15, 67, 1), (16, 68, 1), (17, 69, 1), (18, 70, 1), (19, 71, 1), (20, 72, 1), (21, 73, 1), (22, 74, 1), (23, 75, 1), (24, 76, 1), (25, 77, 1), (26, 78, 1), (27, 79, 1), (28, 80, 1), (29, 81, 1), (30, 82, 1), (31, 83, 1), (32, 84, 1), (33, 85, 1), (34, 86, 1), (35, 87, 1), (36, 88, 1), (37, 89, 1), (38, 90, 1), (39, 91, 1), (40, 92, 1); -- -------------------------------------------------------- -- -- Table structure for table `students` -- CREATE TABLE `students` ( `id` bigint(20) UNSIGNED NOT NULL, `program_studi_id` int(11) DEFAULT NULL, `kelas_id` int(11) NOT NULL DEFAULT '0', `subkelas_id` int(11) NOT NULL DEFAULT '0', `total_semester` int(11) NOT NULL DEFAULT '4', `code` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, `nik` varchar(75) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `nama` varchar(75) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `status_mahasiswa` enum('ACTIVE','PERMIT','INACTIVE','QUIT','MOVED','GRADUATED','DROPPED-OUT') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'ACTIVE', `status_penerimaan` enum('MAHASISWA BARU','PINDAHAN') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'MAHASISWA BARU', `jenis_kelamin` enum('L','P') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'L', `tempat_lahir` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tanggal_lahir` date DEFAULT NULL, `alamat` text COLLATE utf8mb4_unicode_ci, `kode_pos` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `no_hp` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `pendidikan_terakhir` enum('S1','S2','S3') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'S1', `asal_universitas_s1` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `asal_universitas_s2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `asal_universitas_s3` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `gelar_terakhir` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `pekerjaan` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `alamat_pekerjaan` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `nama_ibu` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `photo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `judul_thesis` text COLLATE utf8mb4_unicode_ci, `status_akun` enum('Y','N') COLLATE utf8mb4_unicode_ci NOT NULL, `daftar_tgl` date DEFAULT NULL, `diterima_tgl` date 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 `template_to_form` -- CREATE TABLE `template_to_form` ( `id_mdtemplate_komponen` int(11) DEFAULT NULL, `form` varchar(50) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indexes for table `aauth_departement` -- ALTER TABLE `aauth_departement` ADD PRIMARY KEY (`id`); -- -- Indexes for table `aauth_groups` -- ALTER TABLE `aauth_groups` ADD PRIMARY KEY (`id`); -- -- Indexes for table `aauth_group_to_group` -- ALTER TABLE `aauth_group_to_group` ADD PRIMARY KEY (`group_id`,`subgroup_id`); -- -- Indexes for table `aauth_login_attempts` -- ALTER TABLE `aauth_login_attempts` ADD PRIMARY KEY (`id`); -- -- Indexes for table `aauth_perms` -- ALTER TABLE `aauth_perms` ADD PRIMARY KEY (`id`); -- -- Indexes for table `aauth_perm_to_group` -- ALTER TABLE `aauth_perm_to_group` ADD PRIMARY KEY (`perm_id`,`group_id`), ADD KEY `group_id` (`group_id`); -- -- Indexes for table `aauth_perm_to_user` -- ALTER TABLE `aauth_perm_to_user` ADD PRIMARY KEY (`perm_id`,`user_id`); -- -- Indexes for table `aauth_pms` -- ALTER TABLE `aauth_pms` ADD PRIMARY KEY (`id`), ADD KEY `full_index` (`id`,`sender_id`,`receiver_id`,`date_read`); -- -- Indexes for table `aauth_users` -- ALTER TABLE `aauth_users` ADD PRIMARY KEY (`id`); -- -- Indexes for table `aauth_user_to_departement` -- ALTER TABLE `aauth_user_to_departement` ADD PRIMARY KEY (`id`); -- -- Indexes for table `aauth_user_to_group` -- ALTER TABLE `aauth_user_to_group` ADD PRIMARY KEY (`user_id`,`group_id`); -- -- Indexes for table `aauth_user_variables` -- ALTER TABLE `aauth_user_variables` ADD PRIMARY KEY (`id`), ADD KEY `user_id_index` (`user_id`); -- -- Indexes for table `app_kegiatan` -- ALTER TABLE `app_kegiatan` ADD PRIMARY KEY (`id`), ADD KEY `prodi_id` (`prodi_id`); -- -- Indexes for table `app_konfirmasi` -- ALTER TABLE `app_konfirmasi` ADD PRIMARY KEY (`id`), ADD KEY `registrasi_id` (`registrasi_id`), ADD KEY `register_uid` (`register_uid`); -- -- Indexes for table `app_menu` -- ALTER TABLE `app_menu` ADD PRIMARY KEY (`id`); -- -- Indexes for table `app_pengajuan` -- ALTER TABLE `app_pengajuan` ADD PRIMARY KEY (`id`); -- -- Indexes for table `app_registrasi` -- ALTER TABLE `app_registrasi` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `uid` (`uid`), ADD KEY `kegiatan_id` (`kegiatan_id`); -- -- Indexes for table `app_settings` -- ALTER TABLE `app_settings` ADD PRIMARY KEY (`id`); -- -- Indexes for table `bank_soal` -- ALTER TABLE `bank_soal` ADD PRIMARY KEY (`id`); -- -- Indexes for table `crud` -- ALTER TABLE `crud` ADD PRIMARY KEY (`id`); -- -- Indexes for table `crud_custom_option` -- ALTER TABLE `crud_custom_option` ADD PRIMARY KEY (`id`); -- -- Indexes for table `crud_field` -- ALTER TABLE `crud_field` ADD PRIMARY KEY (`id`); -- -- Indexes for table `crud_field_validation` -- ALTER TABLE `crud_field_validation` ADD PRIMARY KEY (`id`); -- -- Indexes for table `crud_input_type` -- ALTER TABLE `crud_input_type` ADD PRIMARY KEY (`id`); -- -- Indexes for table `crud_input_validation` -- ALTER TABLE `crud_input_validation` ADD PRIMARY KEY (`id`); -- -- Indexes for table `departements` -- ALTER TABLE `departements` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `departements_code_unique` (`code`); -- -- Indexes for table `enroll` -- ALTER TABLE `enroll` ADD PRIMARY KEY (`id`), ADD KEY `enroll_ibfk_1` (`id_group_soal`); -- -- Indexes for table `form` -- ALTER TABLE `form` ADD PRIMARY KEY (`id`), ADD KEY `prodi_id` (`prodi_id`); -- -- Indexes for table `group_soal` -- ALTER TABLE `group_soal` ADD PRIMARY KEY (`id`); -- -- Indexes for table `h_ujian` -- ALTER TABLE `h_ujian` ADD PRIMARY KEY (`id`), ADD KEY `id_group_soal` (`id_group_soal`), ADD KEY `id_master_mahasiswa` (`id_master_mahasiswa`); -- -- Indexes for table `karyawans` -- ALTER TABLE `karyawans` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `karyawans_code_unique` (`code`), ADD UNIQUE KEY `karyawans_email_unique` (`email`); -- -- Indexes for table `kategori_komponen` -- ALTER TABLE `kategori_komponen` ADD PRIMARY KEY (`id`); -- -- Indexes for table `kelengkapan` -- ALTER TABLE `kelengkapan` ADD PRIMARY KEY (`id`); -- -- Indexes for table `komponen` -- ALTER TABLE `komponen` ADD PRIMARY KEY (`id`), ADD KEY `id_kategori_komponen` (`id_kategori_komponen`); -- -- Indexes for table `master_angkatan` -- ALTER TABLE `master_angkatan` ADD PRIMARY KEY (`id`); -- -- Indexes for table `master_dosen` -- ALTER TABLE `master_dosen` ADD PRIMARY KEY (`id`); -- -- Indexes for table `master_mahasiswa` -- ALTER TABLE `master_mahasiswa` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `no_registrasi` (`npm`) USING BTREE, ADD KEY `id_master_prodi` (`id_master_prodi`), ADD KEY `no_registrasi_2` (`npm`) USING BTREE; -- -- Indexes for table `master_prodi` -- ALTER TABLE `master_prodi` ADD PRIMARY KEY (`id`); -- -- Indexes for table `mdapp_pengajuan` -- ALTER TABLE `mdapp_pengajuan` ADD PRIMARY KEY (`id`); -- -- Indexes for table `mdapp_ujian` -- ALTER TABLE `mdapp_ujian` ADD PRIMARY KEY (`id`); -- -- Indexes for table `mdtemplate_form` -- ALTER TABLE `mdtemplate_form` ADD PRIMARY KEY (`id`); -- -- Indexes for table `mhs_daftar` -- ALTER TABLE `mhs_daftar` ADD PRIMARY KEY (`id`); -- -- Indexes for table `pejabats` -- ALTER TABLE `pejabats` ADD PRIMARY KEY (`id`); -- -- Indexes for table `pengajars` -- ALTER TABLE `pengajars` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `pengajars_code_unique` (`code`), ADD UNIQUE KEY `pengajars_email_unique` (`email`); -- -- Indexes for table `program_studis` -- ALTER TABLE `program_studis` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `program_studis_code_unique` (`code`); -- -- Indexes for table `soal_to_gorupsoal` -- ALTER TABLE `soal_to_gorupsoal` ADD PRIMARY KEY (`id`), ADD KEY `id_group_soal` (`id_group_soal`); -- -- Indexes for table `students` -- ALTER TABLE `students` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `students_code_unique` (`code`), ADD UNIQUE KEY `students_email_unique` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `aauth_departement` -- ALTER TABLE `aauth_departement` MODIFY `id` int(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `aauth_groups` -- ALTER TABLE `aauth_groups` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `aauth_login_attempts` -- ALTER TABLE `aauth_login_attempts` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `aauth_perms` -- ALTER TABLE `aauth_perms` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=74; -- -- AUTO_INCREMENT for table `aauth_pms` -- ALTER TABLE `aauth_pms` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `aauth_users` -- ALTER TABLE `aauth_users` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `aauth_user_to_departement` -- ALTER TABLE `aauth_user_to_departement` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25; -- -- AUTO_INCREMENT for table `aauth_user_variables` -- ALTER TABLE `aauth_user_variables` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `app_kegiatan` -- ALTER TABLE `app_kegiatan` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `app_konfirmasi` -- ALTER TABLE `app_konfirmasi` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `app_menu` -- ALTER TABLE `app_menu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `app_pengajuan` -- ALTER TABLE `app_pengajuan` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `app_registrasi` -- ALTER TABLE `app_registrasi` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=62; -- -- AUTO_INCREMENT for table `app_settings` -- ALTER TABLE `app_settings` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `bank_soal` -- ALTER TABLE `bank_soal` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=103; -- -- AUTO_INCREMENT for table `crud` -- ALTER TABLE `crud` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `crud_custom_option` -- ALTER TABLE `crud_custom_option` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=132; -- -- AUTO_INCREMENT for table `crud_field` -- ALTER TABLE `crud_field` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3353; -- -- AUTO_INCREMENT for table `crud_field_validation` -- ALTER TABLE `crud_field_validation` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4621; -- -- AUTO_INCREMENT for table `crud_input_type` -- ALTER TABLE `crud_input_type` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27; -- -- AUTO_INCREMENT for table `crud_input_validation` -- ALTER TABLE `crud_input_validation` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38; -- -- AUTO_INCREMENT for table `departements` -- ALTER TABLE `departements` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `enroll` -- ALTER TABLE `enroll` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `form` -- ALTER TABLE `form` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `group_soal` -- ALTER TABLE `group_soal` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `h_ujian` -- ALTER TABLE `h_ujian` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=262; -- -- AUTO_INCREMENT for table `karyawans` -- ALTER TABLE `karyawans` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `kategori_komponen` -- ALTER TABLE `kategori_komponen` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `kelengkapan` -- ALTER TABLE `kelengkapan` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `komponen` -- ALTER TABLE `komponen` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34; -- -- AUTO_INCREMENT for table `master_angkatan` -- ALTER TABLE `master_angkatan` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `master_dosen` -- ALTER TABLE `master_dosen` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `master_mahasiswa` -- ALTER TABLE `master_mahasiswa` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=133; -- -- AUTO_INCREMENT for table `master_prodi` -- ALTER TABLE `master_prodi` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `mdapp_pengajuan` -- ALTER TABLE `mdapp_pengajuan` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `mdtemplate_form` -- ALTER TABLE `mdtemplate_form` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18; -- -- AUTO_INCREMENT for table `mhs_daftar` -- ALTER TABLE `mhs_daftar` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `pejabats` -- ALTER TABLE `pejabats` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `pengajars` -- ALTER TABLE `pengajars` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `program_studis` -- ALTER TABLE `program_studis` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `soal_to_gorupsoal` -- ALTER TABLE `soal_to_gorupsoal` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41; -- -- AUTO_INCREMENT for table `students` -- ALTER TABLE `students` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables -- -- -- Constraints for table `aauth_perm_to_group` -- ALTER TABLE `aauth_perm_to_group` ADD CONSTRAINT `aauth_perm_to_group_ibfk_1` FOREIGN KEY (`group_id`) REFERENCES `aauth_groups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `aauth_perm_to_group_ibfk_2` FOREIGN KEY (`perm_id`) REFERENCES `aauth_perms` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `app_kegiatan` -- ALTER TABLE `app_kegiatan` ADD CONSTRAINT `app_kegiatan_ibfk_1` FOREIGN KEY (`prodi_id`) REFERENCES `master_prodi` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `app_konfirmasi` -- ALTER TABLE `app_konfirmasi` ADD CONSTRAINT `app_konfirmasi_ibfk_1` FOREIGN KEY (`registrasi_id`) REFERENCES `app_registrasi` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `app_konfirmasi_ibfk_2` FOREIGN KEY (`register_uid`) REFERENCES `app_registrasi` (`uid`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `app_registrasi` -- ALTER TABLE `app_registrasi` ADD CONSTRAINT `app_registrasi_ibfk_1` FOREIGN KEY (`kegiatan_id`) REFERENCES `app_kegiatan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `enroll` -- ALTER TABLE `enroll` ADD CONSTRAINT `enroll_ibfk_1` FOREIGN KEY (`id_group_soal`) REFERENCES `group_soal` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `form` -- ALTER TABLE `form` ADD CONSTRAINT `form_ibfk_1` FOREIGN KEY (`prodi_id`) REFERENCES `master_prodi` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `komponen` -- ALTER TABLE `komponen` ADD CONSTRAINT `komponen_ibfk_1` FOREIGN KEY (`id_kategori_komponen`) REFERENCES `kategori_komponen` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `master_mahasiswa` -- ALTER TABLE `master_mahasiswa` ADD CONSTRAINT `master_mahasiswa_ibfk_1` FOREIGN KEY (`id_master_prodi`) REFERENCES `master_prodi` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>JohnPKosh/IODataBlock -- -------------------------------------------------- -- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure -- -------------------------------------------------- -- Date Created: 08/30/2016 09:31:00 -- Generated from EDMX file: C:\Users\jkosh\Source\Repos\IODataBlock\IODataBlock\WebTrakrData\EF\WebTrakrModel.edmx -- -------------------------------------------------- SET QUOTED_IDENTIFIER OFF; GO USE [WebTrakr]; GO IF SCHEMA_ID(N'dbo') IS NULL EXECUTE(N'CREATE SCHEMA [dbo]'); GO -- -------------------------------------------------- -- Dropping existing FOREIGN KEY constraints -- -------------------------------------------------- IF OBJECT_ID(N'[dbo].[FK_AspNetUserClaims_AspNetUsers_UserId]', 'F') IS NOT NULL ALTER TABLE [dbo].[AspNetUserClaims] DROP CONSTRAINT [FK_AspNetUserClaims_AspNetUsers_UserId]; GO IF OBJECT_ID(N'[dbo].[FK_AspNetUserLogins_AspNetUsers_UserId]', 'F') IS NOT NULL ALTER TABLE [dbo].[AspNetUserLogins] DROP CONSTRAINT [FK_AspNetUserLogins_AspNetUsers_UserId]; GO IF OBJECT_ID(N'[dbo].[FK_AspNetUserRoles_AspNetRoles_RoleId]', 'F') IS NOT NULL ALTER TABLE [dbo].[AspNetUserRoles] DROP CONSTRAINT [FK_AspNetUserRoles_AspNetRoles_RoleId]; GO IF OBJECT_ID(N'[dbo].[FK_AspNetUserSalesForceAccount]', 'F') IS NOT NULL ALTER TABLE [dbo].[SalesForceAccount] DROP CONSTRAINT [FK_AspNetUserSalesForceAccount]; GO IF OBJECT_ID(N'[dbo].[FK_dbo_AspNetUserRoles_dbo_AspNetUsers_UserId]', 'F') IS NOT NULL ALTER TABLE [dbo].[AspNetUserRoles] DROP CONSTRAINT [FK_dbo_AspNetUserRoles_dbo_AspNetUsers_UserId]; GO -- -------------------------------------------------- -- Dropping existing tables -- -------------------------------------------------- IF OBJECT_ID(N'[dbo].[AspNetRoles]', 'U') IS NOT NULL DROP TABLE [dbo].[AspNetRoles]; GO IF OBJECT_ID(N'[dbo].[AspNetUserClaims]', 'U') IS NOT NULL DROP TABLE [dbo].[AspNetUserClaims]; GO IF OBJECT_ID(N'[dbo].[AspNetUserLogins]', 'U') IS NOT NULL DROP TABLE [dbo].[AspNetUserLogins]; GO IF OBJECT_ID(N'[dbo].[AspNetUserRoles]', 'U') IS NOT NULL DROP TABLE [dbo].[AspNetUserRoles]; GO IF OBJECT_ID(N'[dbo].[AspNetUsers]', 'U') IS NOT NULL DROP TABLE [dbo].[AspNetUsers]; GO IF OBJECT_ID(N'[dbo].[LinkedInCompany]', 'U') IS NOT NULL DROP TABLE [dbo].[LinkedInCompany]; GO IF OBJECT_ID(N'[dbo].[LinkedInProfile]', 'U') IS NOT NULL DROP TABLE [dbo].[LinkedInProfile]; GO IF OBJECT_ID(N'[dbo].[SalesForceAccount]', 'U') IS NOT NULL DROP TABLE [dbo].[SalesForceAccount]; GO -- -------------------------------------------------- -- Creating all tables -- -------------------------------------------------- -- Creating table 'AspNetRoles' CREATE TABLE [dbo].[AspNetRoles] ( [Id] nvarchar(128) NOT NULL, [Name] nvarchar(256) NOT NULL ); GO -- Creating table 'AspNetUserClaims' CREATE TABLE [dbo].[AspNetUserClaims] ( [Id] int IDENTITY(1,1) NOT NULL, [UserId] nvarchar(128) NOT NULL, [ClaimType] nvarchar(max) NULL, [ClaimValue] nvarchar(max) NULL ); GO -- Creating table 'AspNetUserLogins' CREATE TABLE [dbo].[AspNetUserLogins] ( [LoginProvider] nvarchar(128) NOT NULL, [ProviderKey] nvarchar(128) NOT NULL, [UserId] nvarchar(128) NOT NULL ); GO -- Creating table 'AspNetUsers' CREATE TABLE [dbo].[AspNetUsers] ( [Id] nvarchar(128) NOT NULL, [ApiKey] uniqueidentifier NOT NULL, [AccountNumber] int NOT NULL, [Email] nvarchar(256) NULL, [EmailConfirmed] bit NOT NULL, [PasswordHash] nvarchar(max) NULL, [SecurityStamp] nvarchar(max) NULL, [PhoneNumber] nvarchar(max) NULL, [PhoneNumberConfirmed] bit NOT NULL, [TwoFactorEnabled] bit NOT NULL, [LockoutEndDateUtc] datetime NULL, [LockoutEnabled] bit NOT NULL, [AccessFailedCount] int NOT NULL, [UserName] nvarchar(256) NOT NULL ); GO -- Creating table 'LinkedInCompanies' CREATE TABLE [dbo].[LinkedInCompanies] ( [Id] bigint IDENTITY(1,1) NOT NULL, [LinkedInId] bigint NULL, [LinkedInPage] nvarchar(255) NOT NULL, [LinkedInCompanyName] nvarchar(255) NULL, [DomainName] nvarchar(255) NULL, [specialties] nvarchar(max) NULL, [streetAddress] nvarchar(255) NULL, [locality] nvarchar(50) NULL, [region] nvarchar(50) NULL, [postalCode] nvarchar(20) NULL, [countryName] nvarchar(50) NULL, [website] nvarchar(255) NULL, [industry] nvarchar(100) NULL, [type] nvarchar(50) NULL, [companySize] nvarchar(25) NULL, [founded] nvarchar(25) NULL, [followersCount] int NULL, [photourl] nvarchar(255) NULL, [description] nvarchar(max) NULL, [CreatedDate] datetime NOT NULL, [UpdatedDate] datetime NOT NULL ); GO -- Creating table 'LinkedInProfiles' CREATE TABLE [dbo].[LinkedInProfiles] ( [Id] bigint IDENTITY(1,1) NOT NULL, [LinkedInProfileId] bigint NULL, [LinkedInPage] nvarchar(255) NOT NULL, [LinkedInFullName] nvarchar(100) NULL, [LinkedInConnections] int NULL, [LinkedInTitle] nvarchar(100) NULL, [LinkedInCompanyName] nvarchar(100) NULL, [LinkedInCompanyId] bigint NULL, [Industry] nvarchar(100) NULL, [Location] nvarchar(100) NULL, [Email] nvarchar(255) NULL, [IM] nvarchar(255) NULL, [Twitter] nvarchar(255) NULL, [Address] nvarchar(255) NULL, [Phone] nvarchar(max) NULL, [LinkedInPhotoUrl] nvarchar(255) NOT NULL, [CreatedDate] datetime NOT NULL, [UpdatedDate] datetime NOT NULL ); GO -- Creating table 'SalesForceAccounts' CREATE TABLE [dbo].[SalesForceAccounts] ( [Id] int IDENTITY(1,1) NOT NULL, [SfClientId] nvarchar(128) NULL, [SfClientSecret] nvarchar(50) NULL, [SfUsername] nvarchar(50) NULL, [SfPassword] nvarchar(50) NULL, [AspNetUserId] nvarchar(128) NOT NULL ); GO -- Creating table 'UserLinkedInCompanies' CREATE TABLE [dbo].[UserLinkedInCompanies] ( [Id] bigint IDENTITY(1,1) NOT NULL, [LinkedInCompanyId] bigint NOT NULL, [AspNetUserId] nvarchar(128) NOT NULL ); GO -- Creating table 'UserLinkedInProfiles' CREATE TABLE [dbo].[UserLinkedInProfiles] ( [Id] bigint IDENTITY(1,1) NOT NULL, [LinkedInProfileId] bigint NOT NULL, [AspNetUserId] nvarchar(128) NOT NULL ); GO -- Creating table 'AspNetUserRoles' CREATE TABLE [dbo].[AspNetUserRoles] ( [AspNetRoles_Id] nvarchar(128) NOT NULL, [AspNetUsers_Id] nvarchar(128) NOT NULL ); GO -- -------------------------------------------------- -- Creating all PRIMARY KEY constraints -- -------------------------------------------------- -- Creating primary key on [Id] in table 'AspNetRoles' ALTER TABLE [dbo].[AspNetRoles] ADD CONSTRAINT [PK_AspNetRoles] PRIMARY KEY CLUSTERED ([Id] ASC); GO -- Creating primary key on [Id] in table 'AspNetUserClaims' ALTER TABLE [dbo].[AspNetUserClaims] ADD CONSTRAINT [PK_AspNetUserClaims] PRIMARY KEY CLUSTERED ([Id] ASC); GO -- Creating primary key on [LoginProvider], [ProviderKey], [UserId] in table 'AspNetUserLogins' ALTER TABLE [dbo].[AspNetUserLogins] ADD CONSTRAINT [PK_AspNetUserLogins] PRIMARY KEY CLUSTERED ([LoginProvider], [ProviderKey], [UserId] ASC); GO -- Creating primary key on [Id] in table 'AspNetUsers' ALTER TABLE [dbo].[AspNetUsers] ADD CONSTRAINT [PK_AspNetUsers] PRIMARY KEY CLUSTERED ([Id] ASC); GO -- Creating primary key on [Id] in table 'LinkedInCompanies' ALTER TABLE [dbo].[LinkedInCompanies] ADD CONSTRAINT [PK_LinkedInCompanies] PRIMARY KEY CLUSTERED ([Id] ASC); GO -- Creating primary key on [Id] in table 'LinkedInProfiles' ALTER TABLE [dbo].[LinkedInProfiles] ADD CONSTRAINT [PK_LinkedInProfiles] PRIMARY KEY CLUSTERED ([Id] ASC); GO -- Creating primary key on [Id] in table 'SalesForceAccounts' ALTER TABLE [dbo].[SalesForceAccounts] ADD CONSTRAINT [PK_SalesForceAccounts] PRIMARY KEY CLUSTERED ([Id] ASC); GO -- Creating primary key on [Id] in table 'UserLinkedInCompanies' ALTER TABLE [dbo].[UserLinkedInCompanies] ADD CONSTRAINT [PK_UserLinkedInCompanies] PRIMARY KEY CLUSTERED ([Id] ASC); GO -- Creating primary key on [Id] in table 'UserLinkedInProfiles' ALTER TABLE [dbo].[UserLinkedInProfiles] ADD CONSTRAINT [PK_UserLinkedInProfiles] PRIMARY KEY CLUSTERED ([Id] ASC); GO -- Creating primary key on [AspNetRoles_Id], [AspNetUsers_Id] in table 'AspNetUserRoles' ALTER TABLE [dbo].[AspNetUserRoles] ADD CONSTRAINT [PK_AspNetUserRoles] PRIMARY KEY CLUSTERED ([AspNetRoles_Id], [AspNetUsers_Id] ASC); GO -- -------------------------------------------------- -- Creating all FOREIGN KEY constraints -- -------------------------------------------------- -- Creating foreign key on [UserId] in table 'AspNetUserClaims' ALTER TABLE [dbo].[AspNetUserClaims] ADD CONSTRAINT [FK_AspNetUserClaims_AspNetUsers_UserId] FOREIGN KEY ([UserId]) REFERENCES [dbo].[AspNetUsers] ([Id]) ON DELETE CASCADE ON UPDATE NO ACTION; GO -- Creating non-clustered index for FOREIGN KEY 'FK_AspNetUserClaims_AspNetUsers_UserId' CREATE INDEX [IX_FK_AspNetUserClaims_AspNetUsers_UserId] ON [dbo].[AspNetUserClaims] ([UserId]); GO -- Creating foreign key on [UserId] in table 'AspNetUserLogins' ALTER TABLE [dbo].[AspNetUserLogins] ADD CONSTRAINT [FK_AspNetUserLogins_AspNetUsers_UserId] FOREIGN KEY ([UserId]) REFERENCES [dbo].[AspNetUsers] ([Id]) ON DELETE CASCADE ON UPDATE NO ACTION; GO -- Creating non-clustered index for FOREIGN KEY 'FK_AspNetUserLogins_AspNetUsers_UserId' CREATE INDEX [IX_FK_AspNetUserLogins_AspNetUsers_UserId] ON [dbo].[AspNetUserLogins] ([UserId]); GO -- Creating foreign key on [AspNetUserId] in table 'SalesForceAccounts' ALTER TABLE [dbo].[SalesForceAccounts] ADD CONSTRAINT [FK_AspNetUserSalesForceAccount] FOREIGN KEY ([AspNetUserId]) REFERENCES [dbo].[AspNetUsers] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION; GO -- Creating non-clustered index for FOREIGN KEY 'FK_AspNetUserSalesForceAccount' CREATE INDEX [IX_FK_AspNetUserSalesForceAccount] ON [dbo].[SalesForceAccounts] ([AspNetUserId]); GO -- Creating foreign key on [AspNetRoles_Id] in table 'AspNetUserRoles' ALTER TABLE [dbo].[AspNetUserRoles] ADD CONSTRAINT [FK_AspNetUserRoles_AspNetRole] FOREIGN KEY ([AspNetRoles_Id]) REFERENCES [dbo].[AspNetRoles] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION; GO -- Creating foreign key on [AspNetUsers_Id] in table 'AspNetUserRoles' ALTER TABLE [dbo].[AspNetUserRoles] ADD CONSTRAINT [FK_AspNetUserRoles_AspNetUser] FOREIGN KEY ([AspNetUsers_Id]) REFERENCES [dbo].[AspNetUsers] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION; GO -- Creating non-clustered index for FOREIGN KEY 'FK_AspNetUserRoles_AspNetUser' CREATE INDEX [IX_FK_AspNetUserRoles_AspNetUser] ON [dbo].[AspNetUserRoles] ([AspNetUsers_Id]); GO -- Creating foreign key on [LinkedInCompanyId] in table 'UserLinkedInCompanies' ALTER TABLE [dbo].[UserLinkedInCompanies] ADD CONSTRAINT [FK_LinkedInCompanyUserLinkedInCompany] FOREIGN KEY ([LinkedInCompanyId]) REFERENCES [dbo].[LinkedInCompanies] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION; GO -- Creating non-clustered index for FOREIGN KEY 'FK_LinkedInCompanyUserLinkedInCompany' CREATE INDEX [IX_FK_LinkedInCompanyUserLinkedInCompany] ON [dbo].[UserLinkedInCompanies] ([LinkedInCompanyId]); GO -- Creating foreign key on [AspNetUserId] in table 'UserLinkedInCompanies' ALTER TABLE [dbo].[UserLinkedInCompanies] ADD CONSTRAINT [FK_AspNetUserUserLinkedInCompany] FOREIGN KEY ([AspNetUserId]) REFERENCES [dbo].[AspNetUsers] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION; GO -- Creating non-clustered index for FOREIGN KEY 'FK_AspNetUserUserLinkedInCompany' CREATE INDEX [IX_FK_AspNetUserUserLinkedInCompany] ON [dbo].[UserLinkedInCompanies] ([AspNetUserId]); GO -- Creating foreign key on [LinkedInProfileId] in table 'UserLinkedInProfiles' ALTER TABLE [dbo].[UserLinkedInProfiles] ADD CONSTRAINT [FK_LinkedInProfileUserLinkedInProfile] FOREIGN KEY ([LinkedInProfileId]) REFERENCES [dbo].[LinkedInProfiles] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION; GO -- Creating non-clustered index for FOREIGN KEY 'FK_LinkedInProfileUserLinkedInProfile' CREATE INDEX [IX_FK_LinkedInProfileUserLinkedInProfile] ON [dbo].[UserLinkedInProfiles] ([LinkedInProfileId]); GO -- Creating foreign key on [AspNetUserId] in table 'UserLinkedInProfiles' ALTER TABLE [dbo].[UserLinkedInProfiles] ADD CONSTRAINT [FK_AspNetUserUserLinkedInProfile] FOREIGN KEY ([AspNetUserId]) REFERENCES [dbo].[AspNetUsers] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION; GO -- Creating non-clustered index for FOREIGN KEY 'FK_AspNetUserUserLinkedInProfile' CREATE INDEX [IX_FK_AspNetUserUserLinkedInProfile] ON [dbo].[UserLinkedInProfiles] ([AspNetUserId]); GO -- -------------------------------------------------- -- Script has ended -- --------------------------------------------------
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 21-12-2020 a las 16:03:54 -- Versión del servidor: 10.4.17-MariaDB -- Versión de PHP: 8.0.0 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 */; -- -- Base de datos: `bdagenda` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `tb_contacto` -- CREATE TABLE `tb_contacto` ( `id` int(11) NOT NULL, `nombre` varchar(25) NOT NULL, `telefono` varchar(15) NOT NULL, `direccion` varchar(25) NOT NULL, `correo` varchar(25) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Volcado de datos para la tabla `tb_contacto` -- INSERT INTO `tb_contacto` (`id`, `nombre`, `telefono`, `direccion`, `correo`) VALUES (1, 'Brandon', '5412236', 'asddwqd', '<EMAIL>'), (2, 'Al', '45646', 'asd', '<EMAIL>'), (6, 'matematicas', '5412235', 'naranjo', '<EMAIL>'), (13, 'Alan', '3000', 'zona 2', '<EMAIL>'), (23, 'Pedro', '987654', 'zona 19', '<EMAIL>'), (29, 'Maradonio', '99991010', 'san cristobal', '<EMAIL>'), (36, '<NAME>', '57937785', 'Naranjo', '<EMAIL>'); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `tb_contacto` -- ALTER TABLE `tb_contacto` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `tb_contacto` -- ALTER TABLE `tb_contacto` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
CREATE TABLE [ssas].[TMSCHEMA_EXTENDED_PROPERTIES] ( [databasename] NVARCHAR (128) CONSTRAINT [DF_TMSCHEMA_EXTENDED_PROPERTIES_databasename] DEFAULT (N'mydatabase') NOT NULL, [ID] NUMERIC (20) NOT NULL, [ObjectID] NUMERIC (20) NOT NULL, [ObjectType] INT NOT NULL, [Name] NVARCHAR (MAX) NOT NULL, [Type] BIGINT NOT NULL, [Value] NVARCHAR (MAX) NOT NULL, [ModifiedTime] DATETIME NOT NULL, CONSTRAINT [PK_TMSCHEMA_EXTENDED_PROPERTIES] PRIMARY KEY CLUSTERED ([databasename] ASC, [ID] ASC) ); GO EXECUTE sp_addextendedproperty @name = N'RepoObject_guid', @value = 'fae6a70a-8a06-ec11-8515-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES', @level2type = N'CONSTRAINT', @level2name = N'DF_TMSCHEMA_EXTENDED_PROPERTIES_databasename'; GO EXECUTE sp_addextendedproperty @name = N'RepoObject_guid', @value = 'fbe6a70a-8a06-ec11-8515-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES', @level2type = N'CONSTRAINT', @level2name = N'PK_TMSCHEMA_EXTENDED_PROPERTIES'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '99c70313-8a06-ec11-8515-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES', @level2type = N'COLUMN', @level2name = N'ModifiedTime'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '98c70313-8a06-ec11-8515-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES', @level2type = N'COLUMN', @level2name = N'Value'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '97c70313-8a06-ec11-8515-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES', @level2type = N'COLUMN', @level2name = N'Type'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '96c70313-8a06-ec11-8515-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES', @level2type = N'COLUMN', @level2name = N'Name'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '95c70313-8a06-ec11-8515-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES', @level2type = N'COLUMN', @level2name = N'ObjectType'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '94c70313-8a06-ec11-8515-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES', @level2type = N'COLUMN', @level2name = N'ObjectID'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '93c70313-8a06-ec11-8515-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES', @level2type = N'COLUMN', @level2name = N'ID'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '92c70313-8a06-ec11-8515-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES', @level2type = N'COLUMN', @level2name = N'databasename'; GO EXECUTE sp_addextendedproperty @name = N'RepoObject_guid', @value = 'f9e6a70a-8a06-ec11-8515-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES'; GO EXECUTE sp_addextendedproperty @name = N'is_ssas', @value = N'0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES', @level2type = N'CONSTRAINT', @level2name = N'PK_TMSCHEMA_EXTENDED_PROPERTIES'; GO EXECUTE sp_addextendedproperty @name = N'is_repo_managed', @value = N'0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES', @level2type = N'CONSTRAINT', @level2name = N'PK_TMSCHEMA_EXTENDED_PROPERTIES'; GO EXECUTE sp_addextendedproperty @name = N'is_ssas', @value = N'0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES', @level2type = N'CONSTRAINT', @level2name = N'DF_TMSCHEMA_EXTENDED_PROPERTIES_databasename'; GO EXECUTE sp_addextendedproperty @name = N'is_repo_managed', @value = N'0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES', @level2type = N'CONSTRAINT', @level2name = N'DF_TMSCHEMA_EXTENDED_PROPERTIES_databasename'; GO EXECUTE sp_addextendedproperty @name = N'pk_IndexPatternColumnName', @value = N'databasename,ID', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES'; GO EXECUTE sp_addextendedproperty @name = N'pk_IndexPatternColumnDatatype', @value = N'nvarchar(128),numeric(20, 0)', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES'; GO EXECUTE sp_addextendedproperty @name = N'pk_index_guid', @value = N'FBE6A70A-8A06-EC11-8515-A81E8446D5B0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES'; GO EXECUTE sp_addextendedproperty @name = N'is_ssas', @value = N'0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES'; GO EXECUTE sp_addextendedproperty @name = N'is_repo_managed', @value = N'0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'TABLE', @level1name = N'TMSCHEMA_EXTENDED_PROPERTIES';
CREATE IF NOT EXISTS DATABASE MercadosNL; CREATE TABLE IF NOT EXISTS Nota_Fiscal ( codigo serial NOT NULL, data_nota_fiscal DATE NOT NULL, quantidade INTEGER NOT NULL, nome_supermercado VARCHAR(40) NOT NULL, PRIMARY KEY(codigo) ); CREATE TABLE IF NOT EXISTS Funcionario ( idFuncionario serial NOT NULL, Nome VARCHAR(30) NOT NULL, Cargo VARCHAR(20) NOT NULL, CPF INTEGER NOT NULL, Hora_Entrada TIMESTAMP NOT NULL, Hora_Saida TIMESTAMP NOT NULL, PRIMARY KEY(idFuncionario) ); CREATE TABLE IF NOT EXISTS Categoria ( idCategoria serial NOT NULL, Setor VARCHAR(20) NOT NULL, PRIMARY KEY(idCategoria) ); CREATE TABLE IF NOT EXISTS Usuario ( idUsuario serial NOT NULL, Funcionario_idFuncionario serial NOT NULL, Usuario VARCHAR(20) NOT NULL, Senha VARCHAR(20) NOT NULL, PRIMARY KEY(idUsuario), INDEX Usuario_FKIndex1(Funcionario_idFuncionario), FOREIGN KEY(Funcionario_idFuncionario) REFERENCES Funcionario(idFuncionario) ON DELETE NO ACTION --Exclui somente o pai sem afetar o(s) registro(s) filhos ou relacionados em outras entidades. ON UPDATE NO ACTION ); CREATE TABLE IF NOT EXISTS Produto ( idProduto serial NOT NULL, Categoria_idCategoria serial NOT NULL, Nome VARCHAR(40) NOT NULL, Cod_Barras INTEGER NOT NULL, Preco DOUBLE NOT NULL, Marca VARCHAR(30) NOT NULL, PRIMARY KEY(idProduto), INDEX Produto_FKIndex1(Categoria_idCategoria), FOREIGN KEY(Categoria_idCategoria) REFERENCES Categoria(idCategoria) ON DELETE NO ACTION ON UPDATE NO ACTION ); CREATE TABLE IF NOT EXISTS Endereco ( Funcionario_idFuncionario serial NOT NULL, Rua VARCHAR(40) NOT NULL, Numero_Casa INTEGER NOT NULL, Bairro VARCHAR(20) NOT NULL, CEP VARCHAR(10) NOT NULL, Cidade VARCHAR(30) NOT NULL, Estado VARCHAR(20) NOT NULL, INDEX Endereco_FKIndex1(Funcionario_idFuncionario), FOREIGN KEY(Funcionario_idFuncionario) REFERENCES Funcionario(idFuncionario) ON DELETE NO ACTION ON UPDATE NO ACTION ); CREATE TABLE IF NOT EXISTS Endereco_Supermercado ( Nota_Fiscal_Codigo serial NOT NULL, Rua VARCHAR(40) NOT NULL, Bairro VARCHAR(20) NOT NULL, CEP VARCHAR(10) NOT NULL, Cidade VARCHAR(30) NOT NULL, Estado VARCHAR(20) NOT NULL, INDEX Endereco_Supermercado_FKIndex1(Nota_Fiscal_Codigo), FOREIGN KEY(Nota_Fiscal_Codigo) REFERENCES Nota_Fiscal(Codigo) ON DELETE NO ACTION ON UPDATE NO ACTION ); CREATE TABLE IF NOT EXISTS Detalhe_Venda ( ID_Venda serial NOT NULL, Nota_Fiscal_Codigo serial NOT NULL, Funcionario_idFuncionario serial NOT NULL, Preco_Unitario DOUBLE NOT NULL, Preco_Total DOUBLE NOT NULL, Quantidade_Produto INTEGER NOT NULL, data_detalhe DATE NOT NULL, PRIMARY KEY(ID_Venda), INDEX Detalhe_Venda_FKIndex1(Funcionario_idFuncionario), INDEX Detalhe_Venda_FKIndex2(Nota_Fiscal_Codigo), FOREIGN KEY(Funcionario_idFuncionario) REFERENCES Funcionario(idFuncionario) ON DELETE NO ACTION ON UPDATE NO ACTION, FOREIGN KEY(Nota_Fiscal_Codigo) REFERENCES Nota_Fiscal(Codigo) ON DELETE NO ACTION ON UPDATE NO ACTION ); CREATE TABLE IF NOT EXISTS Detalhe_Venda_has_Produto ( Detalhe_Venda_ID_Venda serial NOT NULL, Produto_idProduto serial NOT NULL, PRIMARY KEY(Detalhe_Venda_ID_Venda, Produto_idProduto), INDEX Detalhe_Venda_has_Produto_FKIndex1(Detalhe_Venda_ID_Venda), INDEX Detalhe_Venda_has_Produto_FKIndex2(Produto_idProduto), FOREIGN KEY(Detalhe_Venda_ID_Venda) REFERENCES Detalhe_Venda(ID_Venda) ON DELETE NO ACTION ON UPDATE NO ACTION, FOREIGN KEY(Produto_idProduto) REFERENCES Produto(idProduto) ON DELETE NO ACTION ON UPDATE NO ACTION );
-- GPI - <NAME> -- Desc: overview over a container database -- Date: 25.October 2018 -- => https://docs.oracle.com/database/121/ADMIN/cdb_mon.htm#ADMIN13939 --============================================================================== set linesize 130 pagesize 300 SHOW CON_NAME -- check if CDB SELECT CDB FROM V$DATABASE; -- get all pugbale databases SELECT NAME, CON_ID, DBID, CON_UID, GUID FROM V$CONTAINERS ORDER BY CON_ID; COLUMN PDB_NAME FORMAT A15 SELECT PDB_ID, PDB_NAME, STATUS FROM DBA_PDBS ORDER BY PDB_ID; -- open MODE COLUMN NAME FORMAT A15 COLUMN RESTRICTED FORMAT A10 COLUMN OPEN_TIME FORMAT A30 SELECT NAME, OPEN_MODE, RESTRICTED, OPEN_TIME FROM V$PDBS; --Showing the Data Files for Each PDB in a CDB COLUMN PDB_ID FORMAT 999 COLUMN PDB_NAME FORMAT A8 COLUMN FILE_ID FORMAT 9999 COLUMN TABLESPACE_NAME FORMAT A10 COLUMN FILE_NAME FORMAT A45 SELECT p.PDB_ID, p.PDB_NAME, d.FILE_ID, d.TABLESPACE_NAME, d.FILE_NAME FROM DBA_PDBS p, CDB_DATA_FILES d WHERE p.PDB_ID = d.CON_ID ORDER BY p.PDB_ID;
/* Replace with your SQL commands */ ALTER TABLE water_import.charge_agreements ALTER COLUMN charge_agreement_id TYPE uuid USING charge_agreement_id::uuid; ALTER TABLE water_import.charge_elements ALTER COLUMN charge_element_id TYPE uuid USING charge_element_id::uuid; ALTER TABLE water_import.charge_versions ALTER COLUMN charge_version_id TYPE uuid USING charge_version_id::uuid;
DROP TABLE IF EXISTS `pages`; CREATE TABLE `pages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `subject_id` int(11) DEFAULT NULL, `menu_name` varchar(255) DEFAULT NULL, `position` int(3) DEFAULT NULL, `visible` tinyint(1) DEFAULT NULL, `content` text, PRIMARY KEY (`id`), KEY `fk_subject_id` (`subject_id`) ); INSERT INTO `pages` VALUES (1,1,'Globe Bank',1,1,NULL),(2,1,'History',2,1,NULL),(3,1,'Leadership',3,1,NULL),(4,1,'Contact Us',4,1,NULL),(5,2,'Banking',1,1,NULL),(6,2,'Credit Cards',2,1,NULL),(7,2,'Mortgages',3,1,NULL),(8,3,'Checking',1,1,NULL),(9,3,'Loans',2,1,NULL),(10,3,'Merchant Services',3,1,NULL); DROP TABLE IF EXISTS `subjects`; CREATE TABLE `subjects` ( `id` int(11) NOT NULL AUTO_INCREMENT, `menu_name` varchar(255) DEFAULT NULL, `position` int(3) DEFAULT NULL, `visible` tinyint(1) DEFAULT NULL, PRIMARY KEY (`id`) ); INSERT INTO `subjects` VALUES (1,'About Globe Bank',1,1),(2,'Consumer',2,1),(3,'Small Business',3,0),(5,'Commercial',4,1);
SET NOCOUNT ON IF NOT EXISTS (SELECT AG.name AS [AvailabilityGroup] FROM master.sys.availability_groups AS AG LEFT OUTER JOIN master.sys.dm_hadr_availability_group_states as agstates ON AG.group_id = agstates.group_id INNER JOIN master.sys.availability_replicas AS AR ON AG.group_id = AR.group_id INNER JOIN master.sys.dm_hadr_availability_replica_states AS arstates ON AR.replica_id = arstates.replica_id AND arstates.is_local = 1 AND arstates.role = 1 INNER JOIN master.sys.dm_hadr_database_replica_cluster_states AS dbcs ON arstates.replica_id = dbcs.replica_id AND dbcs.database_name LIKE '$(databasename)' AND dbcs.is_database_joined = 1) BEGIN ALTER AVAILABILITY GROUP [$(availabilitygroupname)] ADD DATABASE [$(databasename)]; END
ALTER ROLE [db_owner] ADD MEMBER [admin] GO
:CONNECT <server_name, sysname, SQL_Server_Instance> USE Finance GO SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED SELECT name AS index_name, STATS_DATE(OBJECT_ID, index_id) AS StatsUpdated FROM sys.indexes WHERE OBJECT_ID = OBJECT_ID('GL.DailyGLAccruedInterest') GO
<filename>calaccess_processed_filings/sql/load_form496part2itemversion_model.sql INSERT INTO calaccess_processed_filings_form496part2itemversion ( filing_version_id, line_item, expense_date, amount, transaction_id, payment_description, memo_code, memo_reference_number ) SELECT filing_version.id AS filing_version_id, s496_line."LINE_ITEM" AS line_item, s496_line."EXP_DATE" AS expense_date, s496_line."AMOUNT" AS amount, s496_line."TRAN_ID" AS transaction_id, s496_line."EXPN_DSCR" as payment_description, s496_line."MEMO_CODE" as memo_code, s496_line."MEMO_REFNO" AS memo_reference_number FROM "S496_CD" s496_line JOIN calaccess_processed_filings_form496filingversion filing_version ON s496_line."FILING_ID" = filing_version.filing_id AND s496_line."AMEND_ID" = filing_version.amend_id;
<filename>mysql/timesheet-migration.sql INSERT INTO `finance-angular`.`timesheets`( `id`, `timesheetInsertedBy`, `timesheetEmployer`, `timesheetStartDate`, `timesheetEndDate`, `timesheetTimeIn`, `timesheetTimeOut`, `timesheetTimeBreak`, `timesheetHourly`, `timesheetTotal`, `timesheetTotalHours`, `timesheetStatus`, `timesheetFlag`, `created_at` ) SELECT `timesheet_id`, `timesheet_insertedby`, `timesheet_employer`, `timesheet_startdate`, `timesheet_enddate`, `timesheet_timein`, `timesheet_timeou`, `timesheet_tbreak`, `timesheet_hourly`, `timesheet_total`, `timesheet_totalhours`, `timesheet_status`, `timesheet_flag`, `timesheet_startdate` FROM `financephonegap`.`timesheet`
UPDATE Payments SET Taxrate-=0.3 SELECT Taxrate FROM Payments
<reponame>TheHLW/ceshi /* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50553 Source Host : localhost:3306 Source Database : yzncms Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2018-10-08 13:15:14 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `yzn_admin` -- ---------------------------- DROP TABLE IF EXISTS `yzn_admin`; CREATE TABLE `yzn_admin` ( `userid` smallint(3) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID', `username` varchar(20) DEFAULT NULL COMMENT '管理账号', `password` varchar(32) DEFAULT NULL COMMENT '<PASSWORD>', `roleid` tinyint(4) unsigned DEFAULT '0', `encrypt` varchar(6) DEFAULT NULL COMMENT '加密因子', `nickname` char(16) NOT NULL COMMENT '昵称', `last_login_time` int(10) unsigned DEFAULT '0' COMMENT '最后登录时间', `last_login_ip` bigint(20) unsigned DEFAULT '0' COMMENT '最后登录IP', `email` varchar(40) DEFAULT NULL, `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '会员状态', PRIMARY KEY (`userid`), KEY `username` (`username`) ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='管理员表'; -- ---------------------------- -- Records of yzn_admin -- ---------------------------- INSERT INTO `yzn_admin` VALUES ('1', 'admin', '9724b5e6c56b95f5723009ef81961bfe', '1', 'Wo<PASSWORD>', '御宅男', '1538972203', '2130706433', '<EMAIL>', '1'); INSERT INTO `yzn_admin` VALUES ('2', 'ken678', '932e31f030b850a87702a86c0e16db16', '4', 'Sxq6dR', '御宅男', '1538036501', '2130706433', '<EMAIL>', '1'); -- ---------------------------- -- Table structure for `yzn_adminlog` -- ---------------------------- DROP TABLE IF EXISTS `yzn_adminlog`; CREATE TABLE `yzn_adminlog` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '日志ID', `status` tinyint(1) NOT NULL DEFAULT '0', `uid` smallint(3) NOT NULL DEFAULT '0' COMMENT '操作者ID', `info` text COMMENT '说明', `create_time` int(10) unsigned NOT NULL DEFAULT '0', `ip` bigint(20) unsigned NOT NULL DEFAULT '0', `get` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=166 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of yzn_adminlog -- ---------------------------- INSERT INTO `yzn_adminlog` VALUES ('1', '1', '1', '提示语:删除日志成功!', '1537413945', '2130706433', '/admin/adminlog/deletelog.html'); INSERT INTO `yzn_adminlog` VALUES ('2', '1', '1', '提示语:操作成功!', '1537413960', '2130706433', '/admin/auth_manager/writegroup.html'); INSERT INTO `yzn_adminlog` VALUES ('3', '0', '1', '提示语:该页面不存在!', '1537419887', '2130706433', '/admin/menu/edit.html5'); INSERT INTO `yzn_adminlog` VALUES ('4', '0', '1', '提示语:该页面不存在!', '1537419890', '2130706433', '/admin/menu/edit.html5'); INSERT INTO `yzn_adminlog` VALUES ('5', '0', '1', '提示语:该页面不存在!', '1537419891', '2130706433', '/admin/menu/edit.html5'); INSERT INTO `yzn_adminlog` VALUES ('6', '1', '1', '提示语:编辑成功!', '1537419929', '2130706433', '/admin/menu/edit.html'); INSERT INTO `yzn_adminlog` VALUES ('7', '1', '1', '提示语:编辑成功!', '1537419955', '2130706433', '/admin/menu/edit.html'); INSERT INTO `yzn_adminlog` VALUES ('8', '0', '0', '提示语:请先登陆', '1537438192', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('9', '0', '0', '提示语:请先登陆', '1537438665', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('10', '0', '0', '提示语:请先登陆', '1537438878', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('11', '0', '0', '提示语:请先登陆', '1537438901', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('12', '0', '0', '提示语:请先登陆', '1537489380', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('13', '1', '1', '提示语:恭喜您,登陆成功', '1537489386', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('14', '0', '0', '提示语:请先登陆', '1537515198', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('15', '1', '1', '提示语:恭喜您,登陆成功', '1537515202', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('16', '1', '1', '提示语:删除日志成功!', '1537515295', '2130706433', '/admin/adminlog/deletelog.html'); INSERT INTO `yzn_adminlog` VALUES ('17', '0', '0', '提示语:请先登陆', '1537852961', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('18', '1', '1', '提示语:恭喜您,登陆成功', '1537852968', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('19', '0', '0', '提示语:请先登陆', '1537921953', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('20', '1', '1', '提示语:恭喜您,登陆成功', '1537921959', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('21', '0', '0', '提示语:请先登陆', '1537950507', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('22', '1', '1', '提示语:恭喜您,登陆成功', '1537950513', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('23', '1', '1', '提示语:删除日志成功!', '1537950521', '2130706433', '/admin/adminlog/deletelog.html'); INSERT INTO `yzn_adminlog` VALUES ('24', '0', '1', '提示语:该页面不存在!', '1537951249', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('25', '0', '1', '提示语:该页面不存在!', '1537951305', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('26', '0', '1', '提示语:该页面不存在!', '1537951307', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('27', '0', '1', '提示语:该页面不存在!', '1537951313', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('28', '1', '1', '提示语:菜单排序成功!', '1537951638', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('29', '1', '1', '提示语:菜单排序成功!', '1537951661', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('30', '1', '1', '提示语:删除菜单成功!', '1537951666', '2130706433', '/admin/menu/delete.html'); INSERT INTO `yzn_adminlog` VALUES ('31', '1', '1', '提示语:删除菜单成功!', '1537951670', '2130706433', '/admin/menu/delete.html'); INSERT INTO `yzn_adminlog` VALUES ('32', '1', '1', '提示语:菜单排序成功!', '1537951700', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('33', '1', '1', '提示语:菜单排序成功!', '1537951705', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('34', '1', '1', '提示语:菜单排序成功!', '1537951710', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('35', '1', '1', '提示语:菜单排序成功!', '1537951712', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('36', '1', '1', '提示语:菜单排序成功!', '1537951716', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('37', '1', '1', '提示语:菜单排序成功!', '1537951717', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('38', '1', '1', '提示语:菜单排序成功!', '1537951718', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('39', '1', '1', '提示语:菜单排序成功!', '1537951721', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('40', '1', '1', '提示语:菜单排序成功!', '1537951722', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('41', '1', '1', '提示语:菜单排序成功!', '1537951732', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('42', '1', '1', '提示语:菜单排序成功!', '1537951733', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('43', '1', '1', '提示语:菜单排序成功!', '1537951736', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('44', '1', '1', '提示语:菜单排序成功!', '1537951744', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('45', '1', '1', '提示语:菜单排序成功!', '1537951745', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('46', '1', '1', '提示语:菜单排序成功!', '1537951760', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('47', '1', '1', '提示语:菜单排序成功!', '1537951761', '2130706433', '/admin/menu/listorder.html'); INSERT INTO `yzn_adminlog` VALUES ('48', '0', '0', '提示语:请先登陆', '1537953210', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('49', '1', '1', '提示语:恭喜您,登陆成功', '1537953216', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('50', '0', '1', '提示语:更新成功', '1537955757', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('51', '0', '1', '提示语:更新成功', '1537955765', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('52', '0', '1', '提示语:更新成功', '1537955767', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('53', '0', '1', '提示语:更新成功', '1537955772', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('54', '0', '1', '提示语:更新成功', '1537955780', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('55', '0', '1', '提示语:更新成功', '1537955822', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('56', '0', '1', '提示语:更新成功', '1537955823', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('57', '0', '1', '提示语:更新成功', '1537955943', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('58', '0', '1', '提示语:更新成功', '1537955947', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('59', '0', '1', '提示语:更新成功', '1537955947', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('60', '0', '1', '提示语:更新成功', '1537955948', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('61', '0', '1', '提示语:更新成功', '1537955948', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('62', '0', '1', '提示语:更新成功', '1537955949', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('63', '0', '1', '提示语:更新成功', '1537955949', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('64', '0', '1', '提示语:更新成功', '1537955952', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('65', '0', '1', '提示语:更新成功', '1537955952', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('66', '0', '1', '提示语:更新成功', '1537955953', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('67', '0', '1', '提示语:更新成功', '1537955953', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('68', '0', '1', '提示语:更新成功', '1537955954', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('69', '0', '1', '提示语:更新成功', '1537955954', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('70', '0', '1', '提示语:更新成功', '1537955955', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('71', '0', '1', '提示语:配置分组不能为空', '1537956711', '2130706433', '/admin/config/add.html'); INSERT INTO `yzn_adminlog` VALUES ('72', '0', '1', '提示语:配置分组不能为空', '1537956719', '2130706433', '/admin/config/add.html'); INSERT INTO `yzn_adminlog` VALUES ('73', '0', '1', '提示语:配置分组不能为空', '1537956746', '2130706433', '/admin/config/add.html'); INSERT INTO `yzn_adminlog` VALUES ('74', '0', '1', '提示语:配置分组不能为空', '1537956805', '2130706433', '/admin/config/add.html'); INSERT INTO `yzn_adminlog` VALUES ('75', '0', '1', '提示语:更新成功', '1537957024', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('76', '0', '1', '提示语:更新成功', '1537957025', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('77', '1', '1', '提示语:配置更新成功~', '1537957098', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('78', '1', '1', '提示语:配置更新成功~', '1537957099', '2130706433', '/admin/config/setstate.html'); INSERT INTO `yzn_adminlog` VALUES ('79', '0', '1', '提示语:配置分组不能为空', '1537957447', '2130706433', '/admin/config/add.html'); INSERT INTO `yzn_adminlog` VALUES ('80', '1', '1', '提示语:设置更新成功', '1537957478', '2130706433', '/admin/config/setting/group/base.html'); INSERT INTO `yzn_adminlog` VALUES ('81', '1', '1', '提示语:设置更新成功', '1537957484', '2130706433', '/admin/config/setting/group/base.html'); INSERT INTO `yzn_adminlog` VALUES ('82', '1', '1', '提示语:设置更新成功', '1537957492', '2130706433', '/admin/config/setting/group/base.html'); INSERT INTO `yzn_adminlog` VALUES ('83', '1', '1', '提示语:删除日志成功!', '1537957518', '2130706433', '/admin/adminlog/deletelog.html'); INSERT INTO `yzn_adminlog` VALUES ('84', '0', '0', '提示语:请先登陆', '1538015668', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('85', '1', '1', '提示语:恭喜您,登陆成功', '1538015673', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('86', '0', '1', '提示语:超级管理员角色不能被删除!', '1538016227', '2130706433', '/admin/auth_manager/deletegroup.html'); INSERT INTO `yzn_adminlog` VALUES ('87', '1', '1', '提示语:操作成功!', '1538017090', '2130706433', '/admin/auth_manager/writegroup.html'); INSERT INTO `yzn_adminlog` VALUES ('88', '1', '1', '提示语:操作成功!', '1538017097', '2130706433', '/admin/auth_manager/writegroup.html'); INSERT INTO `yzn_adminlog` VALUES ('89', '0', '0', '提示语:请先登陆', '1538036109', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('90', '1', '1', '提示语:恭喜您,登陆成功', '1538036114', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('91', '1', '1', '提示语:删除日志成功!', '1538036126', '2130706433', '/admin/adminlog/deletelog.html'); INSERT INTO `yzn_adminlog` VALUES ('92', '0', '1', '提示语:禁止对超级管理员执行该操作!', '1538036130', '2130706433', '/admin/manager/del/id/1.html'); INSERT INTO `yzn_adminlog` VALUES ('93', '1', '1', '提示语:修改成功!', '1538036136', '2130706433', '/admin/manager/edit.html'); INSERT INTO `yzn_adminlog` VALUES ('94', '0', '0', '提示语:请先登陆', '1538036464', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('95', '1', '1', '提示语:恭喜您,登陆成功', '1538036469', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('96', '1', '0', '提示语:注销成功!', '1538036488', '2130706433', '/admin/index/logout.html'); INSERT INTO `yzn_adminlog` VALUES ('97', '0', '0', '提示语:密码错误!', '1538036495', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('98', '0', '0', '提示语:密码错误!', '1538036498', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('99', '1', '2', '提示语:恭喜您,登陆成功', '1538036501', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('100', '0', '0', '提示语:请先登陆', '1538038549', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('101', '1', '1', '提示语:恭喜您,登陆成功', '1538038554', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('102', '0', '1', '提示语:该信息不存在!', '1538039356', '2130706433', '/admin/manager/edit.html?id=undefined'); INSERT INTO `yzn_adminlog` VALUES ('103', '0', '0', '提示语:请先登陆', '1538041871', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('104', '1', '1', '提示语:恭喜您,登陆成功', '1538041878', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('105', '0', '0', '提示语:请先登陆', '1538100996', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('106', '1', '1', '提示语:恭喜您,登陆成功', '1538101001', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('107', '0', '0', '提示语:请先登陆', '1538112751', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('108', '1', '1', '提示语:恭喜您,登陆成功', '1538112756', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('109', '0', '0', '提示语:请先登陆', '1538123469', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('110', '1', '1', '提示语:恭喜您,登陆成功', '1538123474', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('111', '1', '1', '提示语:设置更新成功', '1538125180', '2130706433', '/admin/config/setting/group/base.html'); INSERT INTO `yzn_adminlog` VALUES ('112', '1', '1', '提示语:设置更新成功', '1538125184', '2130706433', '/admin/config/setting/group/base.html'); INSERT INTO `yzn_adminlog` VALUES ('113', '0', '1', '提示语:该页面不存在!', '1538128163', '2130706433', '/admin/index/clear.html?type=all&_=1538128148020'); INSERT INTO `yzn_adminlog` VALUES ('114', '0', '1', '提示语:该页面不存在!', '1538128182', '2130706433', '/admin/index/clear.html?type=all&_=1538128180930'); INSERT INTO `yzn_adminlog` VALUES ('115', '0', '1', '提示语:该页面不存在!', '1538128199', '2130706433', '/admin/index/clear.html?type=all&_=1538128195578'); INSERT INTO `yzn_adminlog` VALUES ('116', '0', '1', '提示语:该页面不存在!', '1538128506', '2130706433', '/admin/index/clear.html?type=all&_=1538128505339'); INSERT INTO `yzn_adminlog` VALUES ('117', '0', '1', '提示语:该页面不存在!', '1538128509', '2130706433', '/admin/index/clear.html?type=data&_=1538128505340'); INSERT INTO `yzn_adminlog` VALUES ('118', '0', '1', '提示语:该页面不存在!', '1538128515', '2130706433', '/admin/index/clear.html?type=data&_=1538128505341'); INSERT INTO `yzn_adminlog` VALUES ('119', '0', '1', '提示语:该页面不存在!', '1538128531', '2130706433', '/admin/index/clear.html?type=all&_=1538128505342'); INSERT INTO `yzn_adminlog` VALUES ('120', '0', '1', '提示语:该页面不存在!', '1538128843', '2130706433', '/admin/index/clear.html?type=all&_=1538128801004'); INSERT INTO `yzn_adminlog` VALUES ('121', '0', '0', '提示语:请先登陆', '1538179894', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('122', '1', '1', '提示语:恭喜您,登陆成功', '1538179899', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('123', '1', '1', '提示语:', '1538180175', '2130706433', '/admin/index/cache.html?type=all&_=1538179901088'); INSERT INTO `yzn_adminlog` VALUES ('124', '1', '1', '提示语:', '1538180179', '2130706433', '/admin/index/cache.html'); INSERT INTO `yzn_adminlog` VALUES ('125', '1', '1', '提示语:', '1538180191', '2130706433', '/admin/index/cache.html?type=all&_=1538179901089'); INSERT INTO `yzn_adminlog` VALUES ('126', '1', '1', '提示语:', '1538180207', '2130706433', '/admin/index/cache.html?type=template&_=1538179901090'); INSERT INTO `yzn_adminlog` VALUES ('127', '1', '1', '提示语:', '1538181726', '2130706433', '/admin/index/cache.html?type=all&_=1538180211658'); INSERT INTO `yzn_adminlog` VALUES ('128', '1', '1', '提示语:', '1538181753', '2130706433', '/admin/index/cache.html?type=template&_=1538180211659'); INSERT INTO `yzn_adminlog` VALUES ('129', '1', '1', '提示语:', '1538181995', '2130706433', '/admin/index/cache.html?type=all&_=1538180211660'); INSERT INTO `yzn_adminlog` VALUES ('130', '1', '1', '提示语:', '1538182022', '2130706433', '/admin/index/cache.html?type=all&_=1538180211661'); INSERT INTO `yzn_adminlog` VALUES ('131', '1', '1', '提示语:', '1538182053', '2130706433', '/admin/index/cache.html?type=all&_=1538180211662'); INSERT INTO `yzn_adminlog` VALUES ('132', '1', '1', '提示语:', '1538182818', '2130706433', '/admin/index/cache.html?type=all&_=1538182816516'); INSERT INTO `yzn_adminlog` VALUES ('133', '0', '0', '提示语:请先登陆', '1538184845', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('134', '1', '1', '提示语:恭喜您,登陆成功', '1538184851', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('135', '1', '1', '提示语:', '1538184984', '2130706433', '/admin/index/cache.html?type=all&_=1538184853968'); INSERT INTO `yzn_adminlog` VALUES ('136', '0', '0', '提示语:请先登陆', '1538190768', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('137', '1', '1', '提示语:恭喜您,登陆成功', '1538190774', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('138', '1', '1', '提示语:删除日志成功!', '1538191001', '2130706433', '/admin/adminlog/deletelog.html'); INSERT INTO `yzn_adminlog` VALUES ('139', '1', '1', '提示语:删除日志成功!', '1538191009', '2130706433', '/admin/adminlog/deletelog.html'); INSERT INTO `yzn_adminlog` VALUES ('140', '1', '1', '提示语:删除日志成功!', '1538191550', '2130706433', '/admin/adminlog/deletelog.html'); INSERT INTO `yzn_adminlog` VALUES ('141', '1', '1', '提示语:删除日志成功!', '1538191556', '2130706433', '/admin/adminlog/deletelog.html'); INSERT INTO `yzn_adminlog` VALUES ('142', '1', '1', '提示语:设置更新成功', '1538191609', '2130706433', '/admin/config/setting/group/base.html'); INSERT INTO `yzn_adminlog` VALUES ('143', '1', '1', '提示语:设置更新成功', '1538191702', '2130706433', '/admin/config/setting/group/base.html'); INSERT INTO `yzn_adminlog` VALUES ('144', '1', '1', '提示语:设置更新成功', '1538191824', '2130706433', '/admin/config/setting/group/base.html'); INSERT INTO `yzn_adminlog` VALUES ('145', '0', '0', '提示语:请先登陆', '1538212437', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('146', '1', '1', '提示语:恭喜您,登陆成功', '1538212443', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('147', '1', '1', '提示语:配置添加成功~', '1538212563', '2130706433', '/admin/config/add.html'); INSERT INTO `yzn_adminlog` VALUES ('148', '0', '0', '提示语:请先登陆', '1538267823', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('149', '1', '1', '提示语:恭喜您,登陆成功', '1538267829', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('150', '0', '0', '提示语:请先登陆', '1538287398', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('151', '1', '1', '提示语:恭喜您,登陆成功', '1538287403', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('152', '0', '0', '提示语:请先登陆', '1538297790', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('153', '1', '1', '提示语:恭喜您,登陆成功', '1538297831', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('154', '0', '0', '提示语:请先登陆', '1538957873', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('155', '1', '1', '提示语:恭喜您,登陆成功', '1538957879', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('156', '1', '1', '提示语:删除日志成功!', '1538957897', '2130706433', '/admin/adminlog/deletelog.html'); INSERT INTO `yzn_adminlog` VALUES ('157', '1', '1', '提示语:删除日志成功!', '1538957903', '2130706433', '/admin/adminlog/deletelog.html'); INSERT INTO `yzn_adminlog` VALUES ('158', '0', '0', '提示语:请先登陆', '1538972199', '2130706433', '/admin/'); INSERT INTO `yzn_adminlog` VALUES ('159', '1', '1', '提示语:恭喜您,登陆成功', '1538972203', '2130706433', '/admin/index/login.html'); INSERT INTO `yzn_adminlog` VALUES ('160', '1', '1', '提示语:设置更新成功', '1538972337', '2130706433', '/admin/config/setting/group/base.html'); INSERT INTO `yzn_adminlog` VALUES ('161', '1', '1', '提示语:设置更新成功', '1538972446', '2130706433', '/admin/config/setting/group/base.html'); INSERT INTO `yzn_adminlog` VALUES ('162', '1', '1', '提示语:', '1538974055', '2130706433', '/admin/index/cache.html?type=all&_=1538974033013'); INSERT INTO `yzn_adminlog` VALUES ('163', '1', '1', '提示语:设置更新成功', '1538974064', '2130706433', '/admin/config/setting/group/base.html'); INSERT INTO `yzn_adminlog` VALUES ('164', '1', '1', '提示语:', '1538974129', '2130706433', '/admin/index/cache.html?type=all&_=1538974057560'); INSERT INTO `yzn_adminlog` VALUES ('165', '1', '1', '提示语:', '1538975266', '2130706433', '/admin/index/cache.html?type=all&_=1538975263302'); -- ---------------------------- -- Table structure for `yzn_attachment` -- ---------------------------- DROP TABLE IF EXISTS `yzn_attachment`; CREATE TABLE `yzn_attachment` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `uid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '用户id', `name` char(50) NOT NULL DEFAULT '' COMMENT '文件名', `module` char(15) NOT NULL DEFAULT '' COMMENT '模块名,由哪个模块上传的', `path` varchar(255) NOT NULL DEFAULT '' COMMENT '文件路径', `thumb` varchar(255) NOT NULL DEFAULT '' COMMENT '缩略图路径', `url` varchar(255) NOT NULL DEFAULT '' COMMENT '文件链接', `mime` varchar(64) NOT NULL DEFAULT '' COMMENT '文件mime类型', `ext` char(4) NOT NULL DEFAULT '' COMMENT '文件类型', `size` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '文件大小', `md5` char(32) NOT NULL DEFAULT '' COMMENT '文件md5', `sha1` char(40) NOT NULL DEFAULT '' COMMENT 'sha1 散列值', `driver` varchar(16) NOT NULL DEFAULT 'local' COMMENT '上传驱动', `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上传时间', `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', `listorders` int(5) NOT NULL DEFAULT '100' COMMENT '排序', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=52 DEFAULT CHARSET=utf8 COMMENT='附件表'; -- ---------------------------- -- Records of yzn_attachment -- ---------------------------- INSERT INTO `yzn_attachment` VALUES ('50', '1', 'ico07.png', '', 'images/20181008/1844fb19801c94518296cf5b3543b5f1.png', '', '', 'image/png', 'png', '1218', 'f539a23c5b781b6a65c444c5ab12210d', 'dd2c921643a6a5b7bda8fc3955e2dee802054bd4', 'local', '0', '0', '100', '1'); INSERT INTO `yzn_attachment` VALUES ('51', '1', 'logo.jpg', '', 'images/20181008/57784850181fd366b30e19969cf305dd.jpg', '', '', 'image/jpeg', 'jpg', '26199', '34658a4f12fbce0cc7183d108416c934', '99b8eb819c9d1cca902478002dadb361c30cb12d', 'local', '0', '0', '100', '1'); -- ---------------------------- -- Table structure for `yzn_auth_group` -- ---------------------------- DROP TABLE IF EXISTS `yzn_auth_group`; CREATE TABLE `yzn_auth_group` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户组id,自增主键', `module` varchar(20) NOT NULL COMMENT '用户组所属模块', `type` tinyint(4) NOT NULL COMMENT '组类型', `title` char(20) NOT NULL DEFAULT '' COMMENT '用户组中文名称', `description` varchar(80) NOT NULL DEFAULT '' COMMENT '描述信息', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '用户组状态:为1正常,为0禁用,-1为删除', `rules` varchar(500) NOT NULL DEFAULT '' COMMENT '用户组拥有的规则id,多个规则 , 隔开', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='权限组表'; -- ---------------------------- -- Records of yzn_auth_group -- ---------------------------- INSERT INTO `yzn_auth_group` VALUES ('1', 'admin', '1', '超级管理员', '拥有所有权限', '1', '154,155,146,149,149,150,151,152,152,153,156,147,148'); INSERT INTO `yzn_auth_group` VALUES ('4', 'admin', '1', '编辑', '编辑', '1', '154,155,146,149,149,150,151,152,152,153,156,147,148'); -- ---------------------------- -- Table structure for `yzn_auth_rule` -- ---------------------------- DROP TABLE IF EXISTS `yzn_auth_rule`; CREATE TABLE `yzn_auth_rule` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '规则id,自增主键', `module` varchar(20) NOT NULL COMMENT '规则所属module', `type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '1-url;2-主菜单', `name` char(80) NOT NULL DEFAULT '' COMMENT '规则唯一英文标识', `title` char(20) NOT NULL DEFAULT '' COMMENT '规则中文描述', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否有效(0:无效,1:有效)', `condition` varchar(300) NOT NULL DEFAULT '' COMMENT '规则附加条件', PRIMARY KEY (`id`), KEY `module` (`module`,`status`,`type`) ) ENGINE=MyISAM AUTO_INCREMENT=157 DEFAULT CHARSET=utf8 COMMENT='规则表'; -- ---------------------------- -- Records of yzn_auth_rule -- ---------------------------- INSERT INTO `yzn_auth_rule` VALUES ('146', 'admin', '2', 'admin/setting/index', '设置', '1', ''); INSERT INTO `yzn_auth_rule` VALUES ('147', 'admin', '2', 'admin/module/index', '模块', '1', ''); INSERT INTO `yzn_auth_rule` VALUES ('148', 'admin', '2', 'admin/addons/index', '扩展', '1', ''); INSERT INTO `yzn_auth_rule` VALUES ('149', 'admin', '1', 'admin/config/index', '配置管理', '1', ''); INSERT INTO `yzn_auth_rule` VALUES ('150', 'admin', '1', 'admin/config/setting', '网站设置', '1', ''); INSERT INTO `yzn_auth_rule` VALUES ('151', 'admin', '1', 'admin/menu/index', '菜单管理', '1', ''); INSERT INTO `yzn_auth_rule` VALUES ('152', 'admin', '1', 'admin/manager/index', '管理员管理', '1', ''); INSERT INTO `yzn_auth_rule` VALUES ('153', 'admin', '1', 'admin/authManager/index', '角色管理', '1', ''); INSERT INTO `yzn_auth_rule` VALUES ('154', 'admin', '2', 'admin/index/index', '首页', '1', ''); INSERT INTO `yzn_auth_rule` VALUES ('155', 'admin', '2', 'admin/main/index', '控制面板', '1', ''); INSERT INTO `yzn_auth_rule` VALUES ('156', 'admin', '1', 'admin/adminlog/index', '管理日志', '1', ''); -- ---------------------------- -- Table structure for `yzn_cache` -- ---------------------------- DROP TABLE IF EXISTS `yzn_cache`; CREATE TABLE `yzn_cache` ( `id` int(10) NOT NULL AUTO_INCREMENT, `key` char(100) NOT NULL DEFAULT '' COMMENT '缓存KEY值', `name` char(100) NOT NULL DEFAULT '' COMMENT '名称', `module` char(20) NOT NULL DEFAULT '' COMMENT '模块名称', `model` char(30) NOT NULL DEFAULT '' COMMENT '模型名称', `action` char(30) NOT NULL DEFAULT '' COMMENT '方法名', `system` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否系统', PRIMARY KEY (`id`), KEY `ckey` (`key`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='缓存列队表'; -- ---------------------------- -- Records of yzn_cache -- ---------------------------- INSERT INTO `yzn_cache` VALUES ('1', 'Config', '网站配置', 'admin', 'Config', 'config_cache', '1'); INSERT INTO `yzn_cache` VALUES ('2', 'Menu', '后台菜单', 'admin', 'Menu', 'menu_cache', '0'); -- ---------------------------- -- Table structure for `yzn_config` -- ---------------------------- DROP TABLE IF EXISTS `yzn_config`; CREATE TABLE `yzn_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置ID', `name` varchar(30) NOT NULL DEFAULT '' COMMENT '配置名称', `type` varchar(32) NOT NULL DEFAULT '' COMMENT '配置类型', `title` varchar(50) NOT NULL DEFAULT '' COMMENT '配置说明', `group` varchar(32) NOT NULL DEFAULT '' COMMENT '配置分组', `options` varchar(255) NOT NULL DEFAULT '' COMMENT '配置项', `remark` varchar(100) NOT NULL DEFAULT '' COMMENT '配置说明', `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态', `value` text COMMENT '配置值', `listorder` smallint(3) unsigned NOT NULL DEFAULT '0' COMMENT '排序', PRIMARY KEY (`id`), UNIQUE KEY `uk_name` (`name`), KEY `type` (`type`), KEY `group` (`group`) ) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of yzn_config -- ---------------------------- INSERT INTO `yzn_config` VALUES ('1', 'web_site_status', 'switch', '站点开关', 'base', '', '站点关闭后前台将不能访问', '1494408414', '1537178042', '1', '1', '1'); INSERT INTO `yzn_config` VALUES ('2', 'web_site_title', 'text', '站点标题', 'base', '', '', '1494408414', '1494408414', '1', 'YznCMS网站管理系统', '2'); INSERT INTO `yzn_config` VALUES ('3', 'web_site_keywords', 'text', '站点关键词', 'base', '', '', '1494408414', '1494408414', '1', 'YznCMS,网站管理系统', '3'); INSERT INTO `yzn_config` VALUES ('4', 'web_site_description', 'text', '站点描述', 'base', '', '', '1494408414', '1494408414', '1', '', '4'); INSERT INTO `yzn_config` VALUES ('5', 'web_site_logo', 'image', '站点LOGO', 'base', '', '', '1494408414', '1494408414', '1', null, '5'); INSERT INTO `yzn_config` VALUES ('6', 'web_site_icp', 'text', '备案信息', 'base', '', '', '1494408414', '1494408414', '1', '', '6'); INSERT INTO `yzn_config` VALUES ('7', 'web_site_statistics', 'textarea', '站点代码', 'base', '', '', '1494408414', '1494408414', '1', '', '7'); INSERT INTO `yzn_config` VALUES ('8', 'config_group', 'array', '配置分组', 'system', '', '', '1494408414', '1494408414', '1', 'base:基础\nsystem:系统\nupload:上传\ndevelop:开发', '0'); INSERT INTO `yzn_config` VALUES ('9', 'ueditor', 'Ueditor', '第三方代码', 'base', '', '', '1538212563', '1538212563', '1', '&lt;p&gt;1111111&lt;/p&gt;', '100'); -- ---------------------------- -- Table structure for `yzn_field_type` -- ---------------------------- DROP TABLE IF EXISTS `yzn_field_type`; CREATE TABLE `yzn_field_type` ( `name` varchar(32) NOT NULL COMMENT '字段类型', `title` varchar(64) NOT NULL DEFAULT '' COMMENT '中文类型名', `listorder` int(4) NOT NULL DEFAULT '0' COMMENT '排序', `default_define` varchar(128) NOT NULL DEFAULT '' COMMENT '默认定义', `ifoption` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否需要设置选项', `ifstring` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否自由字符', `vrule` varchar(256) NOT NULL DEFAULT '' COMMENT '验证规则', PRIMARY KEY (`name`), UNIQUE KEY `name` (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='字段类型表'; -- ---------------------------- -- Records of yzn_field_type -- ---------------------------- INSERT INTO `yzn_field_type` VALUES ('text', '输入框', '1', 'varchar(128) NOT NULL DEFAULT \'\'', '0', '1', ''); INSERT INTO `yzn_field_type` VALUES ('checkbox', '复选框', '2', 'varchar(32) NOT NULL DEFAULT \'\'', '1', '0', 'isChsAlphaNum'); INSERT INTO `yzn_field_type` VALUES ('textarea', '多行文本', '3', 'varchar(3000) NOT NULL DEFAULT \'\'', '0', '1', ''); INSERT INTO `yzn_field_type` VALUES ('radio', '单选按钮', '4', 'varchar(32) NOT NULL DEFAULT \'\'', '1', '0', 'isChsAlphaNum'); INSERT INTO `yzn_field_type` VALUES ('switch', '开关', '5', 'tinyint(2) UNSIGNED NOT NULL DEFAULT \'0\'', '0', '0', 'isBool'); INSERT INTO `yzn_field_type` VALUES ('array', '数组', '6', 'varchar(512) NOT NULL DEFAULT \'\'', '0', '0', ''); INSERT INTO `yzn_field_type` VALUES ('select', '下拉框', '7', 'varchar(64) NOT NULL DEFAULT \'\'', '1', '0', 'isChsAlphaNum'); INSERT INTO `yzn_field_type` VALUES ('image', '单张图', '8', 'int(5) UNSIGNED NOT NULL DEFAULT \'0\'', '0', '0', 'isNumber'); INSERT INTO `yzn_field_type` VALUES ('tags', '标签', '10', 'varchar(256) NOT NULL DEFAULT \'\'', '0', '1', ''); INSERT INTO `yzn_field_type` VALUES ('number', '数字', '11', 'int(10) UNSIGNED NOT NULL DEFAULT \'0\'', '0', '0', 'isNumber'); INSERT INTO `yzn_field_type` VALUES ('datetime', '日期和时间', '12', 'int(11) UNSIGNED NOT NULL DEFAULT \'0\'', '0', '0', ''); INSERT INTO `yzn_field_type` VALUES ('Ueditor', '百度编辑器', '13', 'text NOT NULL', '0', '1', ''); INSERT INTO `yzn_field_type` VALUES ('images', '多张图', '9', 'varchar(256) NOT NULL DEFAULT \'\'', '0', '0', ''); INSERT INTO `yzn_field_type` VALUES ('color', '颜色值', '16', 'varchar(7) NOT NULL DEFAULT \'\'', '0', '0', ''); INSERT INTO `yzn_field_type` VALUES ('files', '多文件', '15', 'varchar(256) NOT NULL DEFAULT \'\'', '0', '0', ''); INSERT INTO `yzn_field_type` VALUES ('summernote', '简洁编辑器', '14', 'text NOT NULL', '0', '1', ''); -- ---------------------------- -- Table structure for `yzn_menu` -- ---------------------------- DROP TABLE IF EXISTS `yzn_menu`; CREATE TABLE `yzn_menu` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '菜单ID', `title` varchar(50) NOT NULL DEFAULT '' COMMENT '标题', `icon` varchar(64) NOT NULL DEFAULT '' COMMENT '图标', `parentid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '上级分类ID', `app` char(20) NOT NULL DEFAULT '' COMMENT '应用标识', `controller` char(20) NOT NULL DEFAULT '' COMMENT '控制器标识', `action` char(20) NOT NULL DEFAULT '' COMMENT '方法标识', `parameter` char(255) NOT NULL DEFAULT '' COMMENT '附加参数', `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态', `tip` varchar(255) NOT NULL DEFAULT '' COMMENT '提示', `is_dev` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否开发者可见', `listorder` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '排序ID', PRIMARY KEY (`id`), KEY `pid` (`parentid`) ) ENGINE=MyISAM AUTO_INCREMENT=24 DEFAULT CHARSET=utf8 COMMENT='后台菜单表'; -- ---------------------------- -- Records of yzn_menu -- ---------------------------- INSERT INTO `yzn_menu` VALUES ('3', '设置', 'icon-shezhi', '0', 'admin', 'setting', 'index', '', '1', '', '0', '2'); INSERT INTO `yzn_menu` VALUES ('4', '模块', '', '0', 'admin', 'module', 'index', '', '0', '', '0', '3'); INSERT INTO `yzn_menu` VALUES ('5', '扩展', 'icon-yingyong', '0', 'admin', 'addons', 'index', '', '1', '', '0', '4'); INSERT INTO `yzn_menu` VALUES ('10', '系统配置', 'icon-zidongxiufu', '3', 'admin', 'config', 'index', '', '1', '', '0', '0'); INSERT INTO `yzn_menu` VALUES ('11', '配置管理', 'icon-peizhi', '10', 'admin', 'config', 'index', '', '1', '', '0', '0'); INSERT INTO `yzn_menu` VALUES ('13', '网站设置', 'icon-shezhi', '10', 'admin', 'config', 'setting', '', '1', '', '0', '0'); INSERT INTO `yzn_menu` VALUES ('14', '菜单管理', 'icon-liebiao', '10', 'admin', 'menu', 'index', '', '1', '', '0', '0'); INSERT INTO `yzn_menu` VALUES ('15', '权限管理', 'icon-guanliyuan', '3', 'admin', 'manager', 'index', '', '1', '', '0', '0'); INSERT INTO `yzn_menu` VALUES ('20', '管理日志', 'icon-rizhi', '15', 'admin', 'adminlog', 'index', '', '1', '', '0', '0'); INSERT INTO `yzn_menu` VALUES ('16', '管理员管理', 'icon-guanliyuan', '15', 'admin', 'manager', 'index', '', '1', '', '0', '0'); INSERT INTO `yzn_menu` VALUES ('17', '角色管理', 'icon-chengyuan', '15', 'admin', 'authManager', 'index', '', '1', '', '0', '0'); INSERT INTO `yzn_menu` VALUES ('1', '首页', '', '0', 'admin', 'index', 'index', '', '0', '', '0', '0'); INSERT INTO `yzn_menu` VALUES ('2', '控制面板', '', '0', 'admin', 'main', 'index', '', '0', '', '0', '1'); INSERT INTO `yzn_menu` VALUES ('23', '附件管理', 'icon-fujian', '10', 'attachment', 'attachments', 'index', '', '1', '', '0', '1');
CREATE OR REPLACE TRIGGER "CF_PW_CHANGE" BEFORE update OR INSERT ON cf_users FOR EACH ROW BEGIN IF :new.password != :<PASSWORD> THEN :new.pw_change_date := SYSDATE; END IF; END; ALTER TRIGGER "CF_PW_CHANGE" ENABLE
<gh_stars>0 BEGIN; CREATE FUNCTION check_password(uname TEXT, pass TEXT) ... SECURITY DEFINER; REVOKE ALL ON FUNCTION check_password(uname TEXT, pass TEXT) FROM PUBLIC; GRANT EXECUTE ON FUNCTION check_password(uname TEXT, pass TEXT) TO admins; COMMIT;
<filename>test.sql -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3308 -- Généré le : mer. 23 sep. 2020 à 15:34 -- Version du serveur : 5.7.28 -- Version de PHP : 7.3.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 */; -- -- Base de données : `test` -- -- -------------------------------------------------------- -- -- Structure de la table `ossn_annotations` -- DROP TABLE IF EXISTS `ossn_annotations`; CREATE TABLE IF NOT EXISTS `ossn_annotations` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `owner_guid` bigint(20) NOT NULL, `subject_guid` bigint(20) NOT NULL, `type` varchar(30) NOT NULL, `time_created` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `owner_guid` (`owner_guid`), KEY `subject_guid` (`subject_guid`), KEY `time_created` (`time_created`), KEY `type` (`type`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4; -- -- Déchargement des données de la table `ossn_annotations` -- INSERT INTO `ossn_annotations` (`id`, `owner_guid`, `subject_guid`, `type`, `time_created`) VALUES (1, 1, 2, 'messagetypingstatus', 1600517414), (2, 2, 1, 'messagetypingstatus', 1600517456), (3, 2, 6, 'comments:post', 1600517551), (4, 2, 5, 'comments:post', 1600517607), (5, 1, 5, 'comments:post', 1600517686); -- -------------------------------------------------------- -- -- Structure de la table `ossn_components` -- DROP TABLE IF EXISTS `ossn_components`; CREATE TABLE IF NOT EXISTS `ossn_components` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `com_id` varchar(50) NOT NULL, `active` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=36 DEFAULT CHARSET=utf8mb4; -- -- Déchargement des données de la table `ossn_components` -- INSERT INTO `ossn_components` (`id`, `com_id`, `active`) VALUES (1, 'OssnProfile', 1), (2, 'OssnWall', 1), (3, 'OssnComments', 1), (4, 'OssnLikes', 1), (5, 'OssnPhotos', 1), (6, 'OssnNotifications', 1), (7, 'OssnSearch', 1), (8, 'OssnMessages', 1), (9, 'OssnAds', 1), (10, 'OssnGroups', 1), (11, 'OssnSitePages', 1), (12, 'OssnBlock', 1), (13, 'OssnChat', 1), (14, 'OssnPoke', 1), (15, 'OssnInvite', 1), (16, 'OssnEmbed', 1), (17, 'OssnSmilies', 1), (18, 'OssnSounds', 1), (19, 'OssnAutoPagination', 1), (20, 'OssnMessageTyping', 1), (21, 'OssnRealTimeComments', 1), (22, 'OssnPostBackground', 1), (23, 'AdsInserter', 1), (24, 'TextareaSupport', 1), (25, 'WhoIsOnline', 1), (26, 'ReduceImagesSize', 1), (27, 'Hangout', 1), (28, 'GroupInvite', 1), (29, 'Members', 1), (30, 'Blog', 1), (31, 'bio', 1), (32, 'ProfileViews', 1), (33, 'OssnServices', 1), (34, 'MentionUsers', 1), (35, 'MemberAvatars', 1); -- -------------------------------------------------------- -- -- Structure de la table `ossn_entities` -- DROP TABLE IF EXISTS `ossn_entities`; CREATE TABLE IF NOT EXISTS `ossn_entities` ( `guid` bigint(20) NOT NULL AUTO_INCREMENT, `owner_guid` bigint(20) NOT NULL, `type` varchar(20) NOT NULL, `subtype` varchar(50) NOT NULL, `time_created` int(11) NOT NULL, `time_updated` int(11) DEFAULT NULL, `permission` int(11) NOT NULL, `active` int(11) NOT NULL, PRIMARY KEY (`guid`), KEY `owner_guid` (`owner_guid`), KEY `time_created` (`time_created`), KEY `time_updated` (`time_updated`), KEY `active` (`active`), KEY `permission` (`permission`), KEY `type` (`type`), KEY `subtype` (`subtype`), KEY `eky_ts` (`type`,`subtype`), KEY `eky_tso` (`type`,`subtype`,`owner_guid`) ) ENGINE=MyISAM AUTO_INCREMENT=95 DEFAULT CHARSET=utf8mb4; -- -- Déchargement des données de la table `ossn_entities` -- INSERT INTO `ossn_entities` (`guid`, `owner_guid`, `type`, `subtype`, `time_created`, `time_updated`, `permission`, `active`) VALUES (1, 1, 'user', 'birthdate', 1600512696, 0, 2, 1), (2, 1, 'user', 'gender', 1600512696, 0, 2, 1), (3, 1, 'user', 'password_algorithm', 1600512696, 0, 2, 1), (4, 1, 'user', 'cover_time', 1600513945, 1600513988, 2, 1), (5, 1, 'user', 'file:profile:cover', 1600513987, 0, 2, 1), (6, 1, 'user', 'cover_guid', 1600513988, 0, 2, 1), (7, 1, 'object', 'item_type', 1600513988, 0, 2, 1), (8, 1, 'object', 'item_guid', 1600513988, 0, 2, 1), (9, 1, 'object', 'poster_guid', 1600513988, 0, 2, 1), (10, 1, 'object', 'access', 1600513988, 0, 2, 1), (11, 1, 'object', 'time_updated', 1600513988, 0, 2, 1), (12, 1, 'user', 'file:profile:photo', 1600514005, 0, 2, 1), (13, 1, 'user', 'icon_time', 1600514005, 0, 2, 1), (14, 1, 'user', 'icon_guid', 1600514005, 0, 2, 1), (15, 2, 'object', 'item_type', 1600514005, 0, 2, 1), (16, 2, 'object', 'item_guid', 1600514005, 0, 2, 1), (17, 2, 'object', 'poster_guid', 1600514005, 0, 2, 1), (18, 2, 'object', 'access', 1600514005, 0, 2, 1), (19, 2, 'object', 'time_updated', 1600514005, 0, 2, 1), (20, 3, 'object', 'access', 1600514126, 0, 2, 1), (21, 3, 'object', 'file:ossn:aphoto', 1600514205, 0, 2, 1), (22, 3, 'object', 'file:ossn:aphoto', 1600514205, 0, 2, 1), (23, 3, 'object', 'file:ossn:aphoto', 1600514205, 0, 2, 1), (24, 3, 'object', 'file:ossn:aphoto', 1600514205, 0, 2, 1), (25, 4, 'object', 'photos_guids', 1600514205, 0, 2, 1), (26, 4, 'object', 'item_type', 1600514205, 0, 2, 1), (27, 4, 'object', 'item_guid', 1600514205, 0, 2, 1), (28, 4, 'object', 'poster_guid', 1600514205, 0, 2, 1), (29, 4, 'object', 'access', 1600514205, 0, 2, 1), (30, 4, 'object', 'time_updated', 1600514205, 0, 2, 1), (31, 5, 'object', 'item_type', 1600514256, 0, 2, 1), (32, 5, 'object', 'item_guid', 1600514256, 0, 2, 1), (33, 5, 'object', 'poster_guid', 1600514256, 0, 2, 1), (34, 5, 'object', 'access', 1600514256, 0, 2, 1), (35, 5, 'object', 'time_updated', 1600514256, 0, 2, 1), (36, 5, 'object', 'postbackground_type', 1600514256, 0, 2, 1), (37, 6, 'object', 'item_type', 1600514332, 0, 2, 1), (38, 6, 'object', 'item_guid', 1600514332, 0, 2, 1), (39, 6, 'object', 'poster_guid', 1600514332, 0, 2, 1), (40, 6, 'object', 'access', 1600514332, 0, 2, 1), (41, 6, 'object', 'time_updated', 1600514332, 0, 2, 1), (42, 7, 'object', 'membership', 1600514349, 0, 2, 1), (43, 7, 'object', 'file:cover', 1600514381, 0, 2, 1), (44, 8, 'object', 'site_url', 1600514584, 0, 2, 1), (45, 8, 'object', 'file:ossnads', 1600514584, 0, 2, 1), (46, 17, 'component', 'compatibility_mode', 1600514605, 0, 2, 1), (47, 17, 'component', 'close_anywhere', 1600514605, 0, 2, 1), (48, 1, 'user', 'cover_position', 1600514727, 1600521836, 2, 1), (49, 2, 'user', 'birthdate', 1600515286, 0, 2, 1), (50, 2, 'user', 'gender', 1600515286, 0, 2, 1), (51, 2, 'user', 'password_algorithm', 1600515286, 0, 2, 1), (52, 10, 'object', 'item_type', 1600516384, 0, 2, 1), (53, 10, 'object', 'item_guid', 1600516384, 0, 2, 1), (54, 10, 'object', 'poster_guid', 1600516384, 0, 2, 1), (55, 10, 'object', 'access', 1600516384, 0, 2, 1), (56, 10, 'object', 'time_updated', 1600516384, 0, 2, 1), (57, 9, 'object', 'access', 1600516385, 0, 2, 1), (58, 9, 'object', 'poster_guid', 1600516385, 0, 2, 1), (59, 9, 'object', 'blog', 1600516385, 0, 2, 1), (60, 2, 'user', 'cover_time', 1600516506, 0, 2, 1), (61, 1, 'annotation', 'status_time_updated', 1600517414, 1600522133, 2, 1), (62, 1, 'annotation', 'messagetypingstatus', 1600517414, 1600522133, 2, 1), (63, 1, 'message', 'is_deleted_from', 1600517422, 0, 2, 1), (64, 1, 'message', 'is_deleted_to', 1600517422, 0, 2, 1), (65, 2, 'message', 'is_deleted_from', 1600517451, 0, 2, 1), (66, 2, 'message', 'is_deleted_to', 1600517451, 0, 2, 1), (67, 2, 'annotation', 'status_time_updated', 1600517456, 1600522137, 2, 1), (68, 2, 'annotation', 'messagetypingstatus', 1600517456, 1600522137, 2, 1), (69, 3, 'message', 'is_deleted_from', 1600517520, 0, 2, 1), (70, 3, 'message', 'is_deleted_to', 1600517520, 0, 2, 1), (71, 3, 'annotation', 'comments:post', 1600517551, 0, 2, 1), (72, 4, 'annotation', 'comments:post', 1600517607, 0, 2, 1), (73, 5, 'annotation', 'comments:post', 1600517686, 0, 2, 1), (90, 13, 'object', 'item_guid', 1600522241, 0, 2, 1), (89, 13, 'object', 'item_type', 1600522241, 0, 2, 1), (88, 4, 'message', 'is_deleted_to', 1600522088, 0, 2, 1), (87, 4, 'message', 'is_deleted_from', 1600522088, 0, 2, 1), (84, 3, 'user', 'birthdate', 1600519823, 0, 2, 1), (85, 3, 'user', 'gender', 1600519823, 0, 2, 1), (86, 3, 'user', 'password_algorithm', <PASSWORD>9823, 0, 2, 1), (91, 13, 'object', 'poster_guid', 1600522241, 0, 2, 1), (92, 13, 'object', 'access', 1600522241, 0, 2, 1), (93, 13, 'object', 'time_updated', 1600522241, 0, 2, 1), (94, 3, 'user', 'cover_time', 1600523573, 0, 2, 1); -- -------------------------------------------------------- -- -- Structure de la table `ossn_entities_metadata` -- DROP TABLE IF EXISTS `ossn_entities_metadata`; CREATE TABLE IF NOT EXISTS `ossn_entities_metadata` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `guid` bigint(20) NOT NULL, `value` longtext NOT NULL, PRIMARY KEY (`id`), KEY `guid` (`guid`) ) ENGINE=MyISAM AUTO_INCREMENT=95 DEFAULT CHARSET=utf8mb4; -- -- Déchargement des données de la table `ossn_entities_metadata` -- INSERT INTO `ossn_entities_metadata` (`id`, `guid`, `value`) VALUES (1, 1, '04/01/1997'), (2, 2, 'male'), (3, 3, 'bcrypt'), (4, 4, '1600513988'), (5, 5, 'profile/cover/8a7d46b4615d59b04afc280c37636fdc.jpg'), (6, 6, '5'), (7, 7, 'cover:photo'), (8, 8, '5'), (9, 9, '1'), (10, 10, '2'), (11, 11, '0'), (12, 12, 'profile/photo/1c54181fe6bd95011755bf4058ba95cb.jpg'), (13, 13, '1600514005'), (14, 14, '12'), (15, 15, 'profile:photo'), (16, 16, '12'), (17, 17, '1'), (18, 18, '2'), (19, 19, '0'), (20, 20, '2'), (21, 21, 'album/photos/3501def6ca8354edac551bbe100bea80.jpg'), (22, 22, 'album/photos/b22e99b95f6006e3338c513998d0656e.jpg'), (23, 23, 'album/photos/21da1948a05a5d49c11bb4a86826ea38.jpg'), (24, 24, 'album/photos/2fdf4d59587c964fa128399389075edd.jpg'), (25, 25, '21,22,23,24'), (26, 26, 'album:photos:wall'), (27, 27, '3'), (28, 28, '1'), (29, 29, '2'), (30, 30, '0'), (31, 31, ''), (32, 32, ''), (33, 33, '1'), (34, 34, '2'), (35, 35, '0'), (36, 36, 'pbg5'), (37, 37, ''), (38, 38, ''), (39, 39, '1'), (40, 40, '2'), (41, 41, '0'), (42, 42, '2'), (43, 43, 'cover/ca3aaf9ff012002c28c543b1bc730100.jpg'), (44, 44, 'https://www.facebook.com/job_opening/640899326850474/?source=ads'), (45, 45, 'ossnads/images/fb0ac7bb0f8ebfd2e6ab09b1347889a1.jpg'), (46, 46, 'on'), (47, 47, 'on'), (48, 48, '[\"-102px\",\"-37px\"]'), (49, 49, '19/09/2000'), (50, 50, 'female'), (51, 51, 'bcrypt'), (52, 52, 'blog:created'), (53, 53, '9'), (54, 54, '1'), (55, 55, '2'), (56, 56, '0'), (57, 57, '2'), (58, 58, '1'), (59, 59, '9'), (60, 60, '1600516506'), (61, 61, '1600522133'), (62, 62, 'no'), (63, 63, ''), (64, 64, ''), (65, 65, ''), (66, 66, ''), (67, 67, '1600522137'), (68, 68, 'no'), (69, 69, ''), (70, 70, ''), (71, 71, 'excelllent post &#x1f600;'), (72, 72, '&#x1f981;'), (73, 73, 'lol'), (91, 91, '1'), (90, 90, ''), (89, 89, ''), (88, 88, ''), (87, 87, ''), (84, 84, '13/04/1999'), (85, 85, 'male'), (86, 86, 'bcrypt'), (92, 92, '2'), (93, 93, '0'), (94, 94, '1600523573'); -- -------------------------------------------------------- -- -- Structure de la table `ossn_likes` -- DROP TABLE IF EXISTS `ossn_likes`; CREATE TABLE IF NOT EXISTS `ossn_likes` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `subject_id` bigint(20) NOT NULL, `guid` bigint(20) NOT NULL, `type` varchar(30) NOT NULL, `subtype` varchar(10) DEFAULT NULL, PRIMARY KEY (`id`), KEY `subtype` (`subtype`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4; -- -- Déchargement des données de la table `ossn_likes` -- INSERT INTO `ossn_likes` (`id`, `subject_id`, `guid`, `type`, `subtype`) VALUES (1, 6, 2, 'post', 'love'), (2, 5, 2, 'post', 'haha'); -- -------------------------------------------------------- -- -- Structure de la table `ossn_messages` -- DROP TABLE IF EXISTS `ossn_messages`; CREATE TABLE IF NOT EXISTS `ossn_messages` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `message_from` bigint(20) NOT NULL, `message_to` bigint(20) NOT NULL, `message` text NOT NULL, `viewed` varchar(1) DEFAULT NULL, `time` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `message_to` (`message_to`), KEY `message_from` (`message_from`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4; -- -- Déchargement des données de la table `ossn_messages` -- INSERT INTO `ossn_messages` (`id`, `message_from`, `message_to`, `message`, `viewed`, `time`) VALUES (1, 2, 1, '<NAME>', '1', 1600517422), (2, 2, 1, 'comment va tu?', '1', 1600517451), (3, 1, 2, 'moi ca va je te remerci', '1', 1600517520), (4, 1, 2, 'bonjour', '1', 1600522088); -- -------------------------------------------------------- -- -- Structure de la table `ossn_notifications` -- DROP TABLE IF EXISTS `ossn_notifications`; CREATE TABLE IF NOT EXISTS `ossn_notifications` ( `guid` bigint(20) NOT NULL AUTO_INCREMENT, `type` varchar(50) NOT NULL, `poster_guid` bigint(20) NOT NULL, `owner_guid` bigint(20) NOT NULL, `subject_guid` bigint(20) NOT NULL, `viewed` varchar(1) DEFAULT NULL, `time_created` int(11) NOT NULL, `item_guid` bigint(20) NOT NULL, PRIMARY KEY (`guid`), KEY `poster_guid` (`poster_guid`), KEY `owner_guid` (`owner_guid`), KEY `subject_guid` (`subject_guid`), KEY `time_created` (`time_created`), KEY `item_guid` (`item_guid`), KEY `type` (`type`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4; -- -- Déchargement des données de la table `ossn_notifications` -- INSERT INTO `ossn_notifications` (`guid`, `type`, `poster_guid`, `owner_guid`, `subject_guid`, `viewed`, `time_created`, `item_guid`) VALUES (1, 'comments:post', 2, 1, 6, '', 1600517551, 3), (2, 'like:post', 2, 1, 6, '', 1600517586, 6), (3, 'like:post', 2, 1, 5, '', 1600517591, 5), (4, 'comments:post', 2, 1, 5, '', 1600517607, 4); -- -------------------------------------------------------- -- -- Structure de la table `ossn_object` -- DROP TABLE IF EXISTS `ossn_object`; CREATE TABLE IF NOT EXISTS `ossn_object` ( `guid` bigint(20) NOT NULL AUTO_INCREMENT, `owner_guid` bigint(20) NOT NULL, `type` varchar(20) NOT NULL, `time_created` int(11) NOT NULL, `title` text NOT NULL, `description` longtext NOT NULL, `subtype` varchar(30) NOT NULL, PRIMARY KEY (`guid`), KEY `owner_guid` (`owner_guid`), KEY `time_created` (`time_created`), KEY `type` (`type`), KEY `subtype` (`subtype`), KEY `oky_ts` (`type`,`subtype`), KEY `oky_tsg` (`type`,`subtype`,`guid`) ) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4; -- -- Déchargement des données de la table `ossn_object` -- INSERT INTO `ossn_object` (`guid`, `owner_guid`, `type`, `time_created`, `title`, `description`, `subtype`) VALUES (1, 1, 'user', 1600513988, '', '{\"post\":\"null:data\"}', 'wall'), (2, 1, 'user', 1600514005, '', '{\"post\":\"null:data\"}', 'wall'), (3, 1, 'user', 1600514126, 'Voyage', '', 'ossn:album'), (4, 1, 'user', 1600514205, '', '{\"post\":\"null:data\"}', 'wall'), (5, 1, 'user', 1600514256, '', '{\"post\":\"test 2020\"}', 'wall'), (6, 1, 'user', 1600514332, '', '{\"post\":\"Documentaire d&amp;#039;afrique\\r\\nhttps:\\/\\/youtu.be\\/NL3QjGeNKG4\"}', 'wall'), (7, 1, 'user', 1600514349, 'group de test', '', 'ossngroup'), (8, 1, 'site', 1600514584, 'test ads', 'lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum', 'ossnads'), (9, 1, 'user', 1600516470, 'Du Sénégal à l’Ethiopie, des pluies diluviennes ravagent la bande sahélienne', '&amp;lt;p&amp;gt;&amp;lt;span style=&amp;quot;color: #2a303b; font-family: &amp;#039;Marr Sans&amp;#039;, Helvetica, Arial, Roboto, sans-serif; font-size: 18px; letter-spacing: 0.09px; background-color: #ffffff;&amp;quot;&amp;gt;Cette ann&amp;amp;eacute;e, la saison de la mousson est d&amp;amp;rsquo;une rare violence. Les morts et les disparus se comptent par centaines, les d&amp;amp;eacute;plac&amp;amp;eacute;s par centaines de milliers.&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;\r\n&amp;lt;p&amp;gt;&amp;lt;span class=&amp;quot;meta__author&amp;quot; style=&amp;quot;box-sizing: inherit; color: #717b8e; font-family: &amp;#039;Marr Sans&amp;#039;, Helvetica, Arial, Roboto, sans-serif; font-size: 14px; letter-spacing: 0.2px; background-color: #ffffff;&amp;quot;&amp;gt;Par&amp;amp;nbsp;&amp;lt;a class=&amp;quot;article__author-link&amp;quot; style=&amp;quot;box-sizing: inherit; font-family: inherit; text-decoration-line: none; border-bottom: 0px;&amp;quot; href=&amp;quot;https://www.lemonde.fr/signataires/sandrine-berthaud-clair/&amp;quot;&amp;gt;<NAME>&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: #717b8e; font-family: &amp;#039;Marr Sans&amp;#039;, Helvetica, Arial, Roboto, sans-serif; font-size: 14px; letter-spacing: 0.2px; background-color: #ffffff;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;meta__date&amp;quot; style=&amp;quot;box-sizing: inherit; color: #717b8e; font-family: &amp;#039;Marr Sans&amp;#039;, Helvetica, Arial, Roboto, sans-serif; font-size: 14px; letter-spacing: 0.2px; background-color: #ffffff;&amp;quot;&amp;gt;Publi&amp;amp;eacute; hier &amp;amp;agrave; 19h00, mis &amp;amp;agrave; jour &amp;amp;agrave; 05h52&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;\r\n&amp;lt;p&amp;gt;&amp;lt;span style=&amp;quot;color: #383f4e; font-family: &amp;#039;The Antiqua B&amp;#039;, Georgia, Droid-serif, serif; font-size: 18px; background-color: #ffffff;&amp;quot;&amp;gt;Des habitants sur des radeaux de fortune, d&amp;amp;rsquo;autres qui sauvent &amp;amp;agrave; bout de bras quelques affaires ou regardent impuissant les v&amp;amp;eacute;hicules flotter dans les torrents de boue. Dakar, Abidjan, Nouakchott, Ouagadougou, Accra, Cotonou, Niamey, Douala, Khartoum ont les pieds dans l&amp;amp;rsquo;eau. Depuis la fin juin, les images de destruction se succ&amp;amp;egrave;dent au rythme des pluies diluviennes qui ont frapp&amp;amp;eacute; douze pays d&amp;amp;rsquo;Afrique de la bande sah&amp;amp;eacute;lienne. Du S&amp;amp;eacute;n&amp;amp;eacute;gal &amp;amp;agrave; l&amp;amp;rsquo;Ethiopie, la saison de la mousson est, cette ann&amp;amp;eacute;e, d&amp;amp;rsquo;une rare violence. Les morts et les disparus se comptent par centaines.&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;', 'blog'), (13, 1, 'user', 1600522241, '', '{\"post\":\"flguflflufluflufluflufl\\r\\nhttps:\\/\\/youtu.be\\/7uG6E6bVKU0\"}', 'wall'), (10, 1, 'user', 1600516384, '', '{\"post\":\"null:data\"}', 'wall'); -- -------------------------------------------------------- -- -- Structure de la table `ossn_relationships` -- DROP TABLE IF EXISTS `ossn_relationships`; CREATE TABLE IF NOT EXISTS `ossn_relationships` ( `relation_id` bigint(20) NOT NULL AUTO_INCREMENT, `relation_from` bigint(20) NOT NULL, `relation_to` bigint(20) NOT NULL, `type` varchar(30) NOT NULL, `time` int(11) NOT NULL, PRIMARY KEY (`relation_id`), KEY `relation_to` (`relation_to`), KEY `relation_from` (`relation_from`), KEY `time` (`time`), KEY `type` (`type`) ) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4; -- -- Déchargement des données de la table `ossn_relationships` -- INSERT INTO `ossn_relationships` (`relation_id`, `relation_from`, `relation_to`, `type`, `time`) VALUES (1, 1, 7, 'group:join', 1600514349), (2, 7, 1, 'group:join:approve', 1600514349), (3, 1, 1, 'profile:viewed', 1600516481), (4, 1, 2, 'profile:viewed', 1600516506), (5, 1, 2, 'friend:request', 1600516532), (6, 2, 2, 'profile:viewed', 1600517300), (7, 2, 1, 'friend:request', 1600517322), (8, 2, 6, 'rtctypingpost', 1600517549), (9, 2, 5, 'rtctypingpost', 1600517607), (10, 1, 5, 'rtctypingpost', 1600517696), (12, 2, 1, 'profile:viewed', 1600520138), (13, 1, 3, 'profile:viewed', 1600523573); -- -------------------------------------------------------- -- -- Structure de la table `ossn_site_settings` -- DROP TABLE IF EXISTS `ossn_site_settings`; CREATE TABLE IF NOT EXISTS `ossn_site_settings` ( `setting_id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL, `value` text NOT NULL, PRIMARY KEY (`setting_id`) ) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4; -- -- Déchargement des données de la table `ossn_site_settings` -- INSERT INTO `ossn_site_settings` (`setting_id`, `name`, `value`) VALUES (1, 'theme', 'goblue'), (2, 'site_name', 'afrika'), (3, 'language', 'fr'), (4, 'cache', '0'), (5, 'owner_email', '<EMAIL>'), (6, 'notification_email', '<EMAIL>'), (7, 'upgrades', '[\"1410545706.php\",\"1411396351.php\", \"1412353569.php\",\"1415553653.php\",\"1415819862.php\", \"1423419053.php\", \"1423419054.php\", \"1439295894.php\", \"1440716428.php\", \"1440867331.php\", \"1440603377.php\", \"1443202118.php\", \"1443211017.php\", \"1443545762.php\", \"1443617470.php\", \"1446311454.php\", \"1448807613.php\", \"1453676400.php\", \"1459411815.php\", \"1468010638.php\", \"1470127853.php\", \"1480759958.php\", \"1495366993.php\", \"1513524535.php\", \"1513603766.php\", \"1513783390.php\", \"1542223614.php\", \"1564080285.php\", \"1577836800.php\", \"1597058454.php\", \"1597734806.php\", \"1598389337.php\"]'), (9, 'display_errors', 'off'), (10, 'site_key', '<KEY>'), (11, 'last_cache', '0'), (12, 'site_version', '5.5'); -- -------------------------------------------------------- -- -- Structure de la table `ossn_users` -- -- Erreur de lecture de structure pour la table test.ossn_users : #145 - La table '.\test\ossn_users' est marquée 'crashed' et devrait être réparée -- Erreur de lecture des données pour la table test.ossn_users : #1064 - Erreur de syntaxe près de 'FROM `test`.`ossn_users`' à la ligne 1 -- -- Index pour les tables déchargées -- -- -- Index pour la table `ossn_entities_metadata` -- ALTER TABLE `ossn_entities_metadata` ADD FULLTEXT KEY `value` (`value`); 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>konstapascal/noroff-assignment-2 USE [SuperheroesDb]; ALTER TABLE [dbo].[Assistant] ADD [SuperheroId] int CONSTRAINT [SuperheroId] FOREIGN KEY ([SuperheroId]) REFERENCES [dbo].[Superhero] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION;
<filename>DB/Sql_files/stored procedures.sql /*EDIT 1*/ /*extract_details to extract info*/ /*AuthenticateUser2 to authenticate user*/ /*Inscpt to insert captcha for registered user*/ /*Retriving User Details*/ DELIMITER $$ USE health_management_system $$ CREATE PROCEDURE extract_details( IN id varchar(20) , OUT hash_val varchar(20), OUT cptt varchar(4)) BEGIN IF ( select exists (select 1 from Captcha where id=Email_id) ) THEN set hash_val := (select Pass from User_Details where id=Email_id); set cptt := (select Capt from Captcha where id=Email_id ); ELSE set hash_val:='1'; set cptt:='1'; END IF; END$$ DELIMITER ; /*Auth2 */ DELIMITER $$ USE health_management_system $$ CREATE PROCEDURE AuthenticateUser2 ( IN email VARCHAR(20), IN passkey varchar(30), OUT msg int) BEGIN IF ( select exists (select 1 from User_Details where Email_id = email and Pass=passkey ) ) THEN set msg := 0; ELSE set msg:= 1; END IF; END$$ DELIMITER ; /* Inserting new captcha for registered user */ DELIMITER $$ USE health_management_system $$ CREATE PROCEDURE Inscpt( IN id varchar(20), IN cpt varchar(4), INOUT msg int) BEGIN /*DECLARE EXIT HANDLER FOR 1062 set msg:= 1;*/ DECLARE EXIT HANDLER FOR 1452 set msg:= 1; insert into captcha(Email_id,Capt) values (id,cpt); set msg:=0; END$$ DELIMITER ; /* CREATE USER */ DELIMITER $$ USE lighthouse $$ CREATE PROCEDURE Create_User( IN Email varchar(20), IN Passkey varchar(10), OUT msg int) BEGIN DECLARE EXIT HANDLER FOR 3819 set msg := 1; IF ( select exists (select 1 from User_Details where Email_id = Email) ) THEN SET msg :=1; ELSE insert into User_Details (Email_id,Pass) values (Email,Passkey); set msg :=0; END IF; END$$ DELIMITER ; /* AUTHENTICATE USER */ DELIMITER $$ USE lighthouse $$ CREATE PROCEDURE AuthenticateUser ( IN email VARCHAR(20), OUT id int) BEGIN IF ( select exists (select Device_id from User_Details where Email_id = email ) ) THEN set id := (select Device_id from User_Details where Email_id = email); ELSE set id := 0; END IF; END$$ DELIMITER ; /* Generating new captcha for registered user */ DELIMITER $$ USE lighthouse $$ CREATE PROCEDURE Generate_Captcha( IN id int, INOUT cpt varchar(4)) BEGIN DECLARE EXIT HANDLER FOR 1062 set cpt:= '----'; set cpt :=upper(RIGHT(MD5(CURRENT_TIMESTAMP),4)); insert into captcha (Device_id,Capt) values (id,cpt); END$$ DELIMITER ; /* Time Limit Check */ DELIMITER $$ USE lighthouse $$ CREATE PROCEDURE CptCheck( IN id int , IN received_capt varchar(4), OUT msg int) BEGIN IF ( select exists (select 1 from Captcha where id=Device_id and Capt=received_capt) ) THEN set msg :=0; ELSE set msg:=1; END IF; END$$ DELIMITER ;
DROP TABLE IF EXISTS `test_147`;
update drugcode set map = 0 where map not in (select id from sync_drug WHERE Active = 1)//
<reponame>java-scott/PersonalPractice<gh_stars>0 CREATE TABLE `typecho_robots_logs` ( `lid` int(10) unsigned NOT NULL auto_increment, `bot` varchar(16) default NULL, `url` varchar(64) default NULL, `ip` varchar(16) default NULL, `ltime` int(10) unsigned default '0', PRIMARY KEY (`lid`) ) ENGINE=MYISAM DEFAULT CHARSET=%charset%;
create table stock ( id int not null auto_increment primary key, extra_data json ); select * from stock; insert into stock(extra_data) values ('{"name": "Apple", "total_price": 25, "details": {"quantity": 5, "discounted_price": 5}}'), ('{"name": "Orange", "total_price": 10, "details": {"quantity": 2, "old_price": 5}}'), ('{"name": "Nail", "total_price": 4, "details": {"quantity": 3, "order": 2}}'); select extra_data->>'$.name' from stock where extra_data->>'$.details.quantity' > 2;
DROP DATABASE lechuapp; CREATE DATABASE lechuapp; USE lechuapp; CREATE TABLE client; CREATE TABLE client_detail; CREATE TABLE order; CREATE TABLE product; CREATE TABLE category;
<reponame>adamribaudo-velir/dbt-ga4 {%- macro unpack_struct(column_to_unpack, fields) -%} {% for field in fields %} {{column_to_unpack}}.{{field}} as {{column_to_unpack}}_{{field}} {% if not loop.last %},{% endif %} {% endfor %} {%- endmacro -%}
<filename>database/scripts/updates/fase_3/16_NuevoDisenoOrdenVenta/1_altert_tbl_order.sql<gh_stars>0 USE `bitel_ecommerce`; ALTER TABLE tbl_order DROP FOREIGN KEY fk_tbl_order_tbl_district_billing; ALTER TABLE tbl_order DROP INDEX fk_tbl_order_tbl_district01_idx; ALTER TABLE tbl_order MODIFY COLUMN billing_phone VARCHAR(20) NULL;
<filename>amcol.sql -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 24, 2021 at 03:55 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 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: `amcol` -- -- -------------------------------------------------------- -- -- Table structure for table `aksesoris_baju` -- CREATE TABLE `aksesoris_baju` ( `id_aksesoris` int(11) NOT NULL, `nama_aksesoris` varchar(100) NOT NULL, `persediaan` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `aksesoris_baju` -- INSERT INTO `aksesoris_baju` (`id_aksesoris`, `nama_aksesoris`, `persediaan`) VALUES (1, 'topi aceh warna merah', 3), (2, 'topi papua', 2), (3, 'kalung aceh ', 4); -- -------------------------------------------------------- -- -- Table structure for table `alamat` -- CREATE TABLE `alamat` ( `id` int(11) NOT NULL, `nama` int(11) NOT NULL, `tlp` int(11) NOT NULL, `email` int(11) NOT NULL, `alamat` text NOT NULL, `kodepos` varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `atasan_baju` -- CREATE TABLE `atasan_baju` ( `id_atasan` int(11) NOT NULL, `nama_atasan` varchar(100) NOT NULL, `persediaan` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `atasan_baju` -- INSERT INTO `atasan_baju` (`id_atasan`, `nama_atasan`, `persediaan`) VALUES (1, 'baju Merah pria dan wanita', 5), (2, 'baju biru pria wanita', 4); -- -------------------------------------------------------- -- -- Table structure for table `baju` -- CREATE TABLE `baju` ( `id` int(11) NOT NULL, `nama_baju` varchar(100) NOT NULL, `jenis_kelamin` varchar(10) NOT NULL, `jenis_baju` varchar(10) NOT NULL, `id_provinsi` int(11) NOT NULL, `id_atasan` int(11) NOT NULL, `id_bawahan` int(11) NOT NULL, `kode_aksesoris` int(11) NOT NULL, `harga_baju` int(11) NOT NULL, `persediaan` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `baju` -- INSERT INTO `baju` (`id`, `nama_baju`, `jenis_kelamin`, `jenis_baju`, `id_provinsi`, `id_atasan`, `id_bawahan`, `kode_aksesoris`, `harga_baju`, `persediaan`) VALUES (1, 'Baju Raja kuning', 'pria', 'Baju Tari', 1, 1, 1, 1, 200000, 3), (2, '<NAME>', 'wanita', '<NAME>', 2, 1, 2, 1, 300000, 2), (3, '<NAME>u pria', 'wanita', '<NAME>', 1, 2, 2, 1, 400000, 1), (5, '<NAME>', 'pria', '<NAME>ah', 1, 2, 1, 1, 300000, 5), (6, '<NAME>', 'pria', 'Baju Nikah', 2, 2, 1, 1, 300000, 5), (7, '<NAME>', 'wanita', 'Baju Tari', 2, 2, 1, 2, 300000, 4), (8, '<NAME>', 'pria', '<NAME>', 1, 1, 1, 2, 500000, 43); -- -------------------------------------------------------- -- -- Table structure for table `bawahan_baju` -- CREATE TABLE `bawahan_baju` ( `id_bawahan` int(11) NOT NULL, `nama_bawahan` varchar(100) NOT NULL, `persediaan` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `bawahan_baju` -- INSERT INTO `bawahan_baju` (`id_bawahan`, `nama_bawahan`, `persediaan`) VALUES (1, '<NAME>', 5), (2, '<NAME>', 2); -- -------------------------------------------------------- -- -- Table structure for table `chart_atasan` -- CREATE TABLE `chart_atasan` ( `id_atasan` int(11) NOT NULL, `ukuran_atasan` char(5) NOT NULL, `lingkaratasan` varchar(5) NOT NULL, `panjangatasan` varchar(5) NOT NULL, `persediaan` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `chart_atasan` -- INSERT INTO `chart_atasan` (`id_atasan`, `ukuran_atasan`, `lingkaratasan`, `panjangatasan`, `persediaan`) VALUES (1, 'XL', '20', '23', 1), (1, 'M', '20', '25', 3), (1, 'L', '20', '21', 2), (1, 'S', '10', '14', 4), (2, 'S', '10', '12', 4), (2, 'M', '21', '24', 2), (2, 'L', '30', '32', 3), (2, 'XL', '40', '45', 1); -- -------------------------------------------------------- -- -- Table structure for table `chart_bawahan` -- CREATE TABLE `chart_bawahan` ( `id_bawahan` int(11) NOT NULL, `ukuran_bawahan` char(5) NOT NULL, `lingkarbawahan` varchar(5) NOT NULL, `panjangbawahan` varchar(5) NOT NULL, `persediaan` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `chart_bawahan` -- INSERT INTO `chart_bawahan` (`id_bawahan`, `ukuran_bawahan`, `lingkarbawahan`, `panjangbawahan`, `persediaan`) VALUES (1, 'S', '10', '13', 2), (1, 'M', '20', '24', 4), (2, 'S', '13', '15', 5), (2, 'L', '40', '42', 5); -- -------------------------------------------------------- -- -- Table structure for table `customer` -- CREATE TABLE `customer` ( `id` int(11) NOT NULL, `nama` varchar(25) NOT NULL, `tlp` varchar(20) NOT NULL, `email` varchar(30) NOT NULL, `alamat` varchar(100) NOT NULL, `kodepos` varchar(10) NOT NULL, `noktp` varchar(25) DEFAULT NULL, `fotoktp` varchar(255) DEFAULT NULL, `fotobersamaktp` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `customer` -- INSERT INTO `customer` (`id`, `nama`, `tlp`, `email`, `alamat`, `kodepos`, `noktp`, `fotoktp`, `fotobersamaktp`) VALUES (1, 'Ammaridho', '081992545654', 'a', 'asdads', '', NULL, NULL, NULL), (2, 'wwidiii', '0456357', '<EMAIL>', 'fdasfafd', '', NULL, NULL, NULL), (3, 'uculllasdf', '13123', 'ucul', 'ucul', '', NULL, NULL, NULL), (4, 'asdasd', '2313123', 'ab', 'asdasd', '', NULL, NULL, NULL), (5, 'ccacca', '11213123', 'cc', 'asdasd', '', NULL, NULL, NULL), (6, '<NAME>', '081234567565', '<EMAIL>', 'Perum. Bukit sawangan indah Blok D. 19 No.3', '', 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 `gambar_baju` -- CREATE TABLE `gambar_baju` ( `id` int(11) NOT NULL, `gambar` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `gambar_baju` -- INSERT INTO `gambar_baju` (`id`, `gambar`) VALUES (1, '1.png'), (1, '2.png'), (2, '3.png'), (3, '33.png'), (5, 'cobanikah.jpe'); -- -------------------------------------------------------- -- -- Table structure for table `keranjang` -- CREATE TABLE `keranjang` ( `id` int(11) NOT NULL, `customer_id` int(11) NOT NULL, `baju_id` int(11) NOT NULL, `jumlah` int(11) NOT NULL, `tanggal_mulai` date NOT NULL, `tanggal_selesai` date NOT NULL, `total_hari` int(11) NOT NULL, `total_biaya` int(11) NOT NULL, `updated_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `keranjang` -- INSERT INTO `keranjang` (`id`, `customer_id`, `baju_id`, `jumlah`, `tanggal_mulai`, `tanggal_selesai`, `total_hari`, `total_biaya`, `updated_at`, `created_at`) VALUES (33, 4, 3, 22, '2021-10-17', '2021-10-19', 2, 17600000, '2021-10-16 22:53:04', '2021-10-16 22:53:04'), (34, 4, 2, 8, '2021-10-17', '2021-10-19', 2, 4800000, '2021-10-16 22:56:44', '2021-10-16 22:56:44'), (38, 4, 3, 123, '2021-10-22', '2021-10-23', 1, 49200000, '2021-10-22 01:49:26', '2021-10-22 01:49:26'), (39, 6, 3, 5, '2021-10-22', '2021-10-25', 3, 6000000, '2021-10-22 02:00:52', '2021-10-22 02:00:52'), (40, 1, 3, 2, '2021-10-22', '2021-10-29', 7, 5600000, '2021-10-22 02:40:43', '2021-10-22 02:40:43'), (42, 1, 1, 6, '2021-10-24', '2021-10-26', 2, 2400000, '2021-10-23 21:54:04', '2021-10-23 21:54:04'); -- -------------------------------------------------------- -- -- Table structure for table `keranjang_ukuran` -- CREATE TABLE `keranjang_ukuran` ( `keranjang_id` int(11) NOT NULL, `ukuran_atasan` varchar(3) NOT NULL, `ukuran_bawahan` varchar(3) NOT NULL, `jumlah_baju_perukuran` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `keranjang_ukuran` -- INSERT INTO `keranjang_ukuran` (`keranjang_id`, `ukuran_atasan`, `ukuran_bawahan`, `jumlah_baju_perukuran`) VALUES (33, 'S', 'L', 22), (34, 'XL', 'S', 8), (38, 'S', 'S', 123), (39, 'L', 'L', 2), (39, 'S', 'L', 3), (40, 'S', 'S', 2), (42, 'XL', 'M', 3), (42, 'M', 'S', 3); -- -------------------------------------------------------- -- -- Table structure for table `kode_aksesoris` -- CREATE TABLE `kode_aksesoris` ( `kode_aksesoris` int(11) NOT NULL, `id_aksesoris` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `kode_aksesoris` -- INSERT INTO `kode_aksesoris` (`kode_aksesoris`, `id_aksesoris`) VALUES (1, 3), (2, 3), (1, 2), (1, 3); -- -------------------------------------------------------- -- -- 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); -- -------------------------------------------------------- -- -- 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 `provinsi` -- CREATE TABLE `provinsi` ( `id_provinsi` int(11) NOT NULL, `nama_provinsi` char(100) NOT NULL, `namaButton` char(20) NOT NULL, `deskripsi` text NOT NULL, `gambar` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `provinsi` -- INSERT INTO `provinsi` (`id_provinsi`, `nama_provinsi`, `namaButton`, `deskripsi`, `gambar`) VALUES (1, 'Aceh', 'aceh', 'Aceh adalah sebuah provinsi di Indonesia yang ibu kotanya berada di Banda Aceh. Aceh merupakan salah satu provinsi di Indonesia yang diberi status sebagai daerah istimewa dan juga diberi kewenangan otonomi khusus. Aceh terletak di ujung utara pulau Sumatra dan merupakan provinsi paling barat di Indonesia. Menurut hasil sensus Badan Pusat Statistik tahun 2019, jumlah penduduk provinsi ini sekitar 5.281.891Jiwa.[10] Letaknya dekat dengan Kepulauan Andaman dan Nikobar di India dan terpisahkan oleh Laut Andaman. Aceh berbatasan dengan Teluk Benggala di sebelah utara, Samudra Hindia di sebelah barat, Selat Malaka di sebelah timur, dan Sumatra Utara di sebelah tenggara dan selatan.', 'aceh-01.png'), (2, 'Sumatra Utara', 'sumatraUtara', 'Sumatra Utara (disingkat Sumut) adalah sebuah provinsi di Indonesia yang terletak di bagian utara Pulau Sumatra. Provinsi ini beribu kota di Medan, dengan luas wilayah 72.981,23 km2. Sumatra Utara adalah provinsi dengan jumlah penduduk terbesar keempat di Indonesia, setelah Jawa Barat, Jawa Timur, dan Jawa Tengah, dan pada tahun 2019 jumlah penduduknya berjumlah 14.908.036 jiwa.', 'sumut.png'), (3, 'Sumatra Barat', 'sumatraBarat', 'Sumatra Barat (disingkat Sumbar) adalah sebuah provinsi di Indonesia yang terletak di Pulau Sumatra dengan Padang sebagai ibu kotanya. Provinsi Sumatra Barat terletak sepanjang pesisir barat Sumatra bagian tengah, dataran tinggi Bukit Barisan di sebelah timur, dan sejumlah pulau di lepas pantainya seperti Kepulauan Mentawai. Dari utara ke selatan, provinsi dengan wilayah seluas 42.012,89 km² ini berbatasan dengan empat provinsi, yakni Sumatra Utara, Riau, Jambi, dan Bengkulu.', 'sumatraBarat.png'); -- -------------------------------------------------------- -- -- Table structure for table `tari` -- CREATE TABLE `tari` ( `id` int(11) NOT NULL, `nama_tari` varchar(25) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tari` -- INSERT INTO `tari` (`id`, `nama_tari`) VALUES (7, 'Tari Tortor'), (1, 'Tari Piring'), (2, 'Tari Coba'); -- -------------------------------------------------------- -- -- 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, 'a', 'a', NULL, 'a', 'a', NULL, NULL), (3, 'uculllasdf', 'ucul', NULL, 'a', NULL, '2021-10-13 05:51:52', '2021-10-13 05:51:52'), (4, 'asdasd', 'ab', NULL, 'ab', NULL, '2021-10-15 04:35:42', '2021-10-15 04:35:42'), (5, 'ccacca', 'cc', NULL, 'cc', NULL, '2021-10-16 22:58:13', '2021-10-16 22:58:13'), (6, '<NAME>', '<EMAIL>', NULL, 'amanah123', NULL, '2021-10-22 01:58:33', '2021-10-22 01:58:33'); -- -- Indexes for dumped tables -- -- -- Indexes for table `aksesoris_baju` -- ALTER TABLE `aksesoris_baju` ADD PRIMARY KEY (`id_aksesoris`); -- -- Indexes for table `atasan_baju` -- ALTER TABLE `atasan_baju` ADD PRIMARY KEY (`id_atasan`); -- -- Indexes for table `baju` -- ALTER TABLE `baju` ADD PRIMARY KEY (`id`), ADD KEY `fk_provinsi` (`id_provinsi`), ADD KEY `fk_atasan` (`id_atasan`), ADD KEY `fk_bawahan` (`id_bawahan`), ADD KEY `fk_kode_aksesoris` (`kode_aksesoris`); -- -- Indexes for table `bawahan_baju` -- ALTER TABLE `bawahan_baju` ADD PRIMARY KEY (`id_bawahan`); -- -- Indexes for table `chart_atasan` -- ALTER TABLE `chart_atasan` ADD KEY `fk_chartatasan` (`id_atasan`); -- -- Indexes for table `chart_bawahan` -- ALTER TABLE `chart_bawahan` ADD KEY `fk_chartbawahan` (`id_bawahan`); -- -- Indexes for table `customer` -- ALTER TABLE `customer` ADD PRIMARY KEY (`id`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `gambar_baju` -- ALTER TABLE `gambar_baju` ADD KEY `fk_gambar` (`id`); -- -- Indexes for table `keranjang` -- ALTER TABLE `keranjang` ADD PRIMARY KEY (`id`), ADD KEY `fk_baju` (`baju_id`), ADD KEY `fk_customer` (`customer_id`); -- -- Indexes for table `keranjang_ukuran` -- ALTER TABLE `keranjang_ukuran` ADD KEY `fk_keranjang_ukuran` (`keranjang_id`); -- -- Indexes for table `kode_aksesoris` -- ALTER TABLE `kode_aksesoris` ADD KEY `fk_aksesoris` (`id_aksesoris`), ADD KEY `fk_kodeaksesoris` (`kode_aksesoris`); -- -- 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 `provinsi` -- ALTER TABLE `provinsi` ADD PRIMARY KEY (`id_provinsi`); -- -- 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 `aksesoris_baju` -- ALTER TABLE `aksesoris_baju` MODIFY `id_aksesoris` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `atasan_baju` -- ALTER TABLE `atasan_baju` MODIFY `id_atasan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `baju` -- ALTER TABLE `baju` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `bawahan_baju` -- ALTER TABLE `bawahan_baju` MODIFY `id_bawahan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `customer` -- ALTER TABLE `customer` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `keranjang` -- ALTER TABLE `keranjang` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `provinsi` -- ALTER TABLE `provinsi` MODIFY `id_provinsi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- Constraints for dumped tables -- -- -- Constraints for table `baju` -- ALTER TABLE `baju` ADD CONSTRAINT `fk_atasan` FOREIGN KEY (`id_atasan`) REFERENCES `atasan_baju` (`id_atasan`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_bawahan` FOREIGN KEY (`id_bawahan`) REFERENCES `bawahan_baju` (`id_bawahan`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_kode_aksesoris` FOREIGN KEY (`kode_aksesoris`) REFERENCES `kode_aksesoris` (`kode_aksesoris`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_provinsi` FOREIGN KEY (`id_provinsi`) REFERENCES `provinsi` (`id_provinsi`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints for table `chart_atasan` -- ALTER TABLE `chart_atasan` ADD CONSTRAINT `fk_chartatasan` FOREIGN KEY (`id_atasan`) REFERENCES `baju` (`id_atasan`); -- -- Constraints for table `chart_bawahan` -- ALTER TABLE `chart_bawahan` ADD CONSTRAINT `fk_chartbawahan` FOREIGN KEY (`id_bawahan`) REFERENCES `baju` (`id_bawahan`); -- -- Constraints for table `gambar_baju` -- ALTER TABLE `gambar_baju` ADD CONSTRAINT `fk_gambar` FOREIGN KEY (`id`) REFERENCES `baju` (`id`); -- -- Constraints for table `keranjang` -- ALTER TABLE `keranjang` ADD CONSTRAINT `fk_baju` FOREIGN KEY (`baju_id`) REFERENCES `baju` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_customer` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `keranjang_ukuran` -- ALTER TABLE `keranjang_ukuran` ADD CONSTRAINT `fk_keranjang_ukuran` FOREIGN KEY (`keranjang_id`) REFERENCES `keranjang` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `kode_aksesoris` -- ALTER TABLE `kode_aksesoris` ADD CONSTRAINT `fk_aksesoris` FOREIGN KEY (`id_aksesoris`) REFERENCES `aksesoris_baju` (`id_aksesoris`), ADD CONSTRAINT `fk_kodeaksesoris` FOREIGN KEY (`kode_aksesoris`) REFERENCES `baju` (`kode_aksesoris`); -- -- Constraints for table `tari` -- ALTER TABLE `tari` ADD CONSTRAINT `fk_tari` FOREIGN KEY (`id`) REFERENCES `baju` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- file:opr_sanity.sql ln:1009 expect:true SELECT a.aggfnoid, p.proname FROM pg_aggregate as a, pg_proc as p WHERE a.aggserialfn = p.oid AND (p.prorettype != 'bytea'::regtype OR p.pronargs != 1 OR p.proargtypes[0] != 'internal'::regtype OR NOT p.proisstrict)
-- 2017-06-07T16:08:27.672 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-06-07 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542479 ; -- 2017-06-07T16:08:27.674 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2017-06-07 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542480 ; -- 2017-06-07T16:08:27.675 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2017-06-07 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542481 ; -- 2017-06-07T16:08:27.676 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2017-06-07 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545362 ; -- 2017-06-07T16:08:27.677 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2017-06-07 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545360 ; -- 2017-06-07T16:08:27.678 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2017-06-07 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545361 ; -- 2017-06-07T16:08:27.679 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2017-06-07 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542484 ; -- 2017-06-07T16:08:27.680 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2017-06-07 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542482 ; -- 2017-06-07T16:08:27.681 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2017-06-07 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544468 ; -- 2017-06-07T16:08:27.681 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2017-06-07 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544469 ; -- 2017-06-07T16:09:39.564 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2017-06-07 16:09:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545368 ; -- 2017-06-07T16:09:43.116 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2017-06-07 16:09:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545369 ; -- 2017-06-07T16:11:13.084 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-06-07 16:11:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545361 ;
-- Create temp table to reload into the subawards table without dropping the destination table DROP TABLE IF EXISTS public.temporary_restock_subaward; CREATE TABLE public.temporary_restock_subaward AS ( SELECT to_tsvector(CONCAT_WS(' ', broker_subawards.recipient_name, psc.description, broker_subawards.description)) AS keyword_ts_vector, to_tsvector(CONCAT_WS(' ', aw.piid, aw.fain, broker_subawards.subaward_number)) AS award_ts_vector, to_tsvector(COALESCE(broker_subawards.recipient_name, '')) AS recipient_name_ts_vector, 'DBR' AS data_source, cfda.id AS cfda_id, latest_transaction.id AS latest_transaction_id, latest_transaction.last_modified_date, broker_subawards.subaward_number, broker_subawards.subaward_amount AS amount, obligation_to_enum(broker_subawards.subaward_amount) AS total_obl_bin, broker_subawards.description, broker_subawards.action_date, broker_subawards.award_report_fy_month, broker_subawards.award_report_fy_year, broker_subawards.broker_award_id, broker_subawards.internal_id, broker_subawards.award_type, aw.type AS prime_award_type, aw.id AS award_id, aw.piid, aw.fain, broker_subawards.duns AS recipient_unique_id, broker_subawards.recipient_name AS recipient_name, broker_subawards.dba_name AS dba_name, broker_subawards.parent_duns AS parent_recipient_unique_id, COALESCE(broker_subawards.parent_recipient_name, ( SELECT legal_business_name FROM recipient_lookup WHERE duns = broker_subawards.parent_duns )) AS parent_recipient_name, NULL AS business_type_code, broker_subawards.business_type_description AS business_type_description, aw.recipient_id AS prime_recipient_id, COALESCE(prime_le.business_categories, '{}'::TEXT[]) AS business_categories, UPPER(prime_le.recipient_name) AS prime_recipient_name, contract_data.pulled_from, contract_data.type_of_contract_pricing, contract_data.extent_competed, contract_data.type_set_aside, contract_data.product_or_service_code, psc.description AS product_or_service_description, assistance_data.cfda_number, cfda.program_title AS cfda_title, aw.awarding_agency_id, aw.funding_agency_id, taa.name AS awarding_toptier_agency_name, saa.name AS awarding_subtier_agency_name, tfa.name AS funding_toptier_agency_name, sfa.name AS funding_subtier_agency_name, taa.abbreviation AS awarding_toptier_agency_abbreviation, tfa.abbreviation AS funding_toptier_agency_abbreviation, saa.abbreviation AS awarding_subtier_agency_abbreviation, sfa.abbreviation AS funding_subtier_agency_abbreviation, broker_subawards.top_paid_fullname_1 AS officer_1_name, broker_subawards.top_paid_amount_1 AS officer_1_amount, broker_subawards.top_paid_fullname_2 AS officer_2_name, broker_subawards.top_paid_amount_2 AS officer_2_amount, broker_subawards.top_paid_fullname_3 AS officer_3_name, broker_subawards.top_paid_amount_3 AS officer_3_amount, broker_subawards.top_paid_fullname_4 AS officer_4_name, broker_subawards.top_paid_amount_4 AS officer_4_amount, broker_subawards.top_paid_fullname_5 AS officer_5_name, broker_subawards.top_paid_amount_5 AS officer_5_amount, broker_subawards.recipient_location_country_code, ( SELECT country_name FROM ref_country_code WHERE country_code = broker_subawards.recipient_location_country_code ) AS recipient_location_country_name, broker_subawards.recipient_location_state_code, broker_subawards.recipient_location_state_name, ( SELECT county_code FROM ref_city_county_code WHERE state_code = broker_subawards.recipient_location_state_code AND city_name = broker_subawards.recipient_location_city_name LIMIT 1 ) AS recipient_location_county_code, ( SELECT county_name FROM ref_city_county_code WHERE state_code = broker_subawards.recipient_location_state_code AND city_name = broker_subawards.recipient_location_city_name LIMIT 1 ) AS recipient_location_county_name, ( SELECT city_code FROM ref_city_county_code WHERE state_code = broker_subawards.recipient_location_state_code AND city_name = broker_subawards.recipient_location_city_name LIMIT 1 ) AS recipient_location_city_code, broker_subawards.recipient_location_city_name, LEFT(broker_subawards.recipient_location_zip4, 5) AS recipient_location_zip5, broker_subawards.recipient_location_zip4, broker_subawards.recipient_location_street_address, broker_subawards.recipient_location_congressional_code, NULL AS recipient_location_foreign_postal_code, ( SELECT country_name FROM ref_country_code WHERE country_code = broker_subawards.pop_country_code ) AS pop_country_name, broker_subawards.pop_country_code, broker_subawards.pop_state_code, broker_subawards.pop_state_name, ( SELECT county_name FROM ref_city_county_code WHERE state_code = broker_subawards.pop_state_code AND city_name = broker_subawards.pop_city_name LIMIT 1 ) AS pop_county_name, ( SELECT county_code FROM ref_city_county_code WHERE state_code = broker_subawards.pop_state_code AND city_name = broker_subawards.pop_city_name LIMIT 1 ) AS pop_county_code, broker_subawards.pop_city_name, ( SELECT city_code FROM ref_city_county_code WHERE state_code = broker_subawards.pop_state_code AND city_name = broker_subawards.pop_city_name LIMIT 1 ) AS pop_city_code, broker_subawards.pop_zip4, broker_subawards.pop_street_address, broker_subawards.pop_congressional_code, now() AS updated_at FROM dblink('broker_server', ' ( SELECT fp.id AS broker_award_id, UPPER(fp.internal_id) internal_id, UPPER(fp.contract_number) AS piid, UPPER(''CONT_AW_'' || COALESCE(fp.contract_agency_code,''-NONE-'') || ''_'' || COALESCE(fp.contract_idv_agency_code,''-NONE-'') || ''_'' || COALESCE(fp.contract_number,''-NONE-'') || ''_'' || COALESCE(fp.idv_reference_number,''-NONE-'')) AS expected_generated_unique_award_id, NULL AS fain, ''procurement'' AS award_type, fsc.subcontract_date AS action_date, fp.report_period_mon AS award_report_fy_month, fp.report_period_year AS award_report_fy_year, NULL AS cfda_number, UPPER(fsc.naics) AS naics_code, UPPER(fsc.subcontract_num) AS subaward_number, fsc.subcontract_amount AS subaward_amount, UPPER(fsc.overall_description) AS description, fp.contracting_office_aid AS awarding_agency_subtier_code, fsc.funding_agency_id AS funding_agency_code, UPPER(fsc.funding_agency_name) AS funding_agency_name, fsc.top_paid_fullname_1, fsc.top_paid_amount_1, fsc.top_paid_fullname_2, fsc.top_paid_amount_2, fsc.top_paid_fullname_3, fsc.top_paid_amount_3, fsc.top_paid_fullname_4, fsc.top_paid_amount_4, fsc.top_paid_fullname_5, fsc.top_paid_amount_5, UPPER(fsc.principle_place_country) AS pop_country_code, UPPER(fsc.principle_place_state) AS pop_state_code, UPPER(fsc.principle_place_state_name) AS pop_state_name, UPPER(fsc.principle_place_city) AS pop_city_name, UPPER(fsc.principle_place_district) AS pop_congressional_code, UPPER(fsc.principle_place_street) AS pop_street_address, UPPER(fsc.principle_place_zip) AS pop_zip4, UPPER(fsc.duns) AS duns, UPPER(fsc.company_name) AS recipient_name, UPPER(fsc.dba_name) AS dba_name, UPPER(fsc.parent_duns) AS parent_duns, UPPER(fsc.parent_company_name) AS parent_recipient_name, UPPER(fsc.bus_types) AS business_type_description, UPPER(fsc.company_address_country) AS recipient_location_country_code, UPPER(fsc.company_address_state) AS recipient_location_state_code, UPPER(fsc.company_address_state_name) AS recipient_location_state_name, UPPER(fsc.company_address_city) AS recipient_location_city_name, UPPER(fsc.company_address_district) AS recipient_location_congressional_code, UPPER(fsc.company_address_street) AS recipient_location_street_address, UPPER(fsc.company_address_zip) AS recipient_location_zip4 FROM fsrs_subcontract AS fsc JOIN fsrs_procurement AS fp ON fp.id = fsc.parent_id ) UNION ALL ( SELECT fg.id AS broker_award_id, UPPER(fg.internal_id) internal_id, NULL AS piid, NULL AS expected_generated_unique_award_id, UPPER(fg.fain) AS fain, ''grant'' AS award_type, fsg.subaward_date AS action_date, fg.report_period_mon AS award_report_fy_month, fg.report_period_year AS award_report_fy_year, UPPER(fsg.cfda_numbers) AS cfda_number, NULL AS naics_code, UPPER(fsg.subaward_num) AS subaward_number, fsg.subaward_amount AS subaward_amount, UPPER(fsg.project_description) AS description, NULL AS awarding_agency_subtier_code, fsg.funding_agency_id AS funding_agency_code, UPPER(fsg.funding_agency_name) AS funding_agency_name, fsg.top_paid_fullname_1, fsg.top_paid_amount_1, fsg.top_paid_fullname_2, fsg.top_paid_amount_2, fsg.top_paid_fullname_3, fsg.top_paid_amount_3, fsg.top_paid_fullname_4, fsg.top_paid_amount_4, fsg.top_paid_fullname_5, fsg.top_paid_amount_5, UPPER(fsg.principle_place_country) AS pop_country_code, UPPER(fsg.principle_place_state) AS pop_state_code, UPPER(fsg.principle_place_state_name) AS pop_state_name, UPPER(fsg.principle_place_city) AS pop_city_name, UPPER(fsg.principle_place_district) AS pop_congressional_code, UPPER(fsg.principle_place_street) AS pop_street_address, UPPER(fsg.principle_place_zip) AS pop_zip4, UPPER(fsg.duns) AS duns, UPPER(fsg.awardee_name) AS recipient_name, UPPER(fsg.dba_name) AS dba_name, UPPER(fsg.parent_duns) AS parent_duns, NULL AS parent_recipient_name, NULL AS business_type_description, UPPER(fsg.awardee_address_country) AS recipient_location_country_code, UPPER(fsg.awardee_address_state) AS recipient_location_state_code, UPPER(fsg.awardee_address_state_name) AS recipient_location_state_name, UPPER(fsg.awardee_address_city) AS recipient_location_city_name, UPPER(fsg.awardee_address_district) AS recipient_location_congressional_code, UPPER(fsg.awardee_address_street) AS recipient_location_street_address, UPPER(fsg.awardee_address_zip) AS recipient_location_zip4 FROM fsrs_subgrant AS fsg JOIN fsrs_grant AS fg ON fg.id = fsg.parent_id )') AS broker_subawards ( broker_award_id INTEGER, internal_id TEXT, piid TEXT, expected_generated_unique_award_id TEXT, fain TEXT, award_type TEXT, action_date DATE, award_report_fy_month INTEGER, award_report_fy_year INTEGER, cfda_number TEXT, naics_code TEXT, subaward_number TEXT, subaward_amount NUMERIC, description TEXT, awarding_agency_subtier_code TEXT, funding_agency_code TEXT, funding_agency_name TEXT, top_paid_fullname_1 TEXT, top_paid_amount_1 TEXT, top_paid_fullname_2 TEXT, top_paid_amount_2 TEXT, top_paid_fullname_3 TEXT, top_paid_amount_3 TEXT, top_paid_fullname_4 TEXT, top_paid_amount_4 TEXT, top_paid_fullname_5 TEXT, top_paid_amount_5 TEXT, pop_country_code TEXT, pop_state_code TEXT, pop_state_name TEXT, pop_city_name TEXT, pop_congressional_code TEXT, pop_street_address TEXT, pop_zip4 TEXT, duns TEXT, recipient_name TEXT, dba_name TEXT, parent_duns TEXT, parent_recipient_name TEXT, business_type_description TEXT, recipient_location_country_code TEXT, recipient_location_state_code TEXT, recipient_location_state_name TEXT, recipient_location_city_name TEXT, recipient_location_congressional_code TEXT, recipient_location_street_address TEXT, recipient_location_zip4 TEXT ) INNER JOIN awards AS aw ON ( (broker_subawards.award_type = 'procurement' AND aw.is_fpds IS TRUE AND REPLACE(aw.generated_unique_award_id, '-', '') = REPLACE(broker_subawards.expected_generated_unique_award_id, '-', '')) OR (broker_subawards.award_type = 'grant' AND aw.is_fpds IS FALSE AND REPLACE(aw.fain, '-', '') = REPLACE(broker_subawards.fain, '-', '')) ) LEFT OUTER JOIN legal_entity AS prime_le ON aw.recipient_id = prime_le.legal_entity_id LEFT OUTER JOIN agency AS aa ON aw.awarding_agency_id = aa.id LEFT OUTER JOIN toptier_agency AS taa ON aa.toptier_agency_id = taa.toptier_agency_id LEFT OUTER JOIN subtier_agency AS saa ON aa.subtier_agency_id = saa.subtier_agency_id LEFT OUTER JOIN agency AS fa on aw.funding_agency_id = fa.id LEFT OUTER JOIN toptier_agency AS tfa ON fa.toptier_agency_id = tfa.toptier_agency_id LEFT OUTER JOIN subtier_agency AS sfa ON fa.subtier_agency_id = sfa.subtier_agency_id LEFT OUTER JOIN transaction_normalized AS latest_transaction ON aw.latest_transaction_id = latest_transaction.id LEFT OUTER JOIN transaction_fabs AS assistance_data ON latest_transaction.id = assistance_data.transaction_id LEFT OUTER JOIN transaction_fpds AS contract_data ON latest_transaction.id = contract_data.transaction_id LEFT OUTER JOIN psc ON contract_data.product_or_service_code = psc.code LEFT OUTER JOIN references_cfda AS cfda ON assistance_data.cfda_number = cfda.program_number WHERE broker_subawards.subaward_number IS NOT NULL ); BEGIN; TRUNCATE TABLE public.subaward RESTART IDENTITY; INSERT INTO public.subaward (keyword_ts_vector, award_ts_vector, recipient_name_ts_vector, data_source, cfda_id, latest_transaction_id, last_modified_date, subaward_number, amount, total_obl_bin, description, action_date, award_report_fy_month, award_report_fy_year, broker_award_id, internal_id, award_type, prime_award_type, award_id, piid, fain, recipient_unique_id, recipient_name, dba_name, parent_recipient_unique_id, parent_recipient_name, business_type_code, business_type_description, prime_recipient_id, business_categories, prime_recipient_name, pulled_from, type_of_contract_pricing, extent_competed, type_set_aside, product_or_service_code, product_or_service_description, cfda_number, cfda_title, awarding_agency_id, funding_agency_id, awarding_toptier_agency_name, awarding_subtier_agency_name, funding_toptier_agency_name, funding_subtier_agency_name, awarding_toptier_agency_abbreviation, funding_toptier_agency_abbreviation, awarding_subtier_agency_abbreviation, funding_subtier_agency_abbreviation, officer_1_name, officer_1_amount, officer_2_name, officer_2_amount, officer_3_name, officer_3_amount, officer_4_name, officer_4_amount, officer_5_name, officer_5_amount, recipient_location_country_code, recipient_location_country_name, recipient_location_state_code, recipient_location_state_name, recipient_location_county_code, recipient_location_county_name, recipient_location_city_code, recipient_location_city_name, recipient_location_zip5, recipient_location_zip4, recipient_location_street_address, recipient_location_congressional_code, recipient_location_foreign_postal_code, pop_country_name, pop_country_code, pop_state_code, pop_state_name, pop_county_name, pop_county_code, pop_city_name, pop_city_code, pop_zip4, pop_street_address, pop_congressional_code, updated_at) SELECT keyword_ts_vector, award_ts_vector, recipient_name_ts_vector, data_source, cfda_id, latest_transaction_id, last_modified_date, subaward_number, amount, total_obl_bin, description, action_date, award_report_fy_month, award_report_fy_year, broker_award_id, internal_id, award_type, prime_award_type, award_id, piid, fain, recipient_unique_id, recipient_name, dba_name, parent_recipient_unique_id, parent_recipient_name, business_type_code, business_type_description, prime_recipient_id, business_categories, prime_recipient_name, pulled_from, type_of_contract_pricing, extent_competed, type_set_aside, product_or_service_code, product_or_service_description, cfda_number, cfda_title, awarding_agency_id, funding_agency_id, awarding_toptier_agency_name, awarding_subtier_agency_name, funding_toptier_agency_name, funding_subtier_agency_name, awarding_toptier_agency_abbreviation, funding_toptier_agency_abbreviation, awarding_subtier_agency_abbreviation, funding_subtier_agency_abbreviation, officer_1_name, officer_1_amount, officer_2_name, officer_2_amount, officer_3_name, officer_3_amount, officer_4_name, officer_4_amount, officer_5_name, officer_5_amount, recipient_location_country_code, recipient_location_country_name, recipient_location_state_code, recipient_location_state_name, recipient_location_county_code, recipient_location_county_name, recipient_location_city_code, recipient_location_city_name, recipient_location_zip5, recipient_location_zip4, recipient_location_street_address, recipient_location_congressional_code, recipient_location_foreign_postal_code, pop_country_name, pop_country_code, pop_state_code, pop_state_name, pop_county_name, pop_county_code, pop_city_name, pop_city_code, pop_zip4, pop_street_address, pop_congressional_code, updated_at FROM public.temporary_restock_subaward; WITH subaward_totals AS ( SELECT award_id, SUM(amount) AS total_subaward_amount, COUNT(*) AS subaward_count FROM subaward GROUP BY award_id ) UPDATE awards SET total_subaward_amount = subaward_totals.total_subaward_amount, subaward_count = subaward_totals.subaward_count FROM subaward_totals WHERE subaward_totals.award_id = id; DROP TABLE public.temporary_restock_subaward; COMMIT;
-- /packages/intranet-helpdesk/sql/postgresql/intranet-helpdesk-callbacks.sql -- -- Copyright (c) 2003-2008 ]project-open[ -- -- All rights reserved. Please check -- http://www.project-open.com/license/ for details. -- -- @author <EMAIL> -- Set the queue for the given ticket -- create or replace function im_ticket__set_queue (integer,text,text) returns integer as ' declare p_case_id alias for $1; p_transition_key alias for $2; p_custom_arg alias for $3; v_task_id integer; v_case_id integer; v_object_id integer; v_creation_user integer; v_creation_ip varchar; v_journal_id integer; v_transition_key varchar; v_workflow_key varchar; v_queue_id integer; begin -- Select out some frequently used variables of the environment select c.object_id, c.workflow_key, task_id, c.case_id into v_object_id, v_workflow_key, v_task_id, v_case_id from wf_tasks t, wf_cases c where c.case_id = p_case_id and t.case_id = c.case_id and t.workflow_key = c.workflow_key and t.transition_key = p_transition_key; v_journal_id := journal_entry__new( null, v_case_id, v_transition_key || '' set_queue '' || p_custom_arg, v_transition_key || '' set_queue '' || p_custom_arg, now(), v_creation_user, v_creation_ip, ''Setting ticket queue of "'' || acs_object__name(v_object_id) || ''" to "'' || p_custom_arg || ''".'' ); select group_id into v_queue_id from groups where trim(lower(group_name)) = trim(lower(p_custom_arg)); IF v_queue_id is null THEN select group_id into v_queue_id from groups where group_name = ''Helpdesk''; END IF; update im_tickets set ticket_queue_id = v_queue_id where ticket_id = v_object_id; return 0; end;' language 'plpgsql'; -- Called by "Enable" action of "Classify" WF transition. -- Default classification routine. May be customized in order -- to implement customers default ticket behaviour -- -- Called by "Enable" action of "Classify" WF transition. -- Default classification routine. May be customized in order -- to implement customers default ticket behaviour -- create or replace function im_ticket__classify (integer,text,text) returns integer as ' declare p_case_id alias for $1; p_transition_key alias for $2; p_custom_arg alias for $3; v_task_id integer; v_case_id integer; v_object_id integer; v_creation_user integer; v_creation_ip varchar; v_journal_id integer; v_transition_key varchar; v_workflow_key varchar; v_ticket_id integer; v_ticket_status_id integer; v_ticket_type_id integer; v_ticket_prio_id integer; v_ticket_customer_contact_id integer; v_ticket_assignee_id integer; v_ticket_sla_id integer; v_ticket_service_id integer; v_ticket_application_id integer; v_ticket_queue_id integer; v_ticket_queue varchar; v_ticket_alarm_date timestamp with time zone; v_ticket_alarm_action text; v_ticket_note text; v_ticket_conf_item_id integer; begin -- Select out some frequently used variables of the environment select c.object_id, c.workflow_key, task_id, c.case_id into v_object_id, v_workflow_key, v_task_id, v_case_id from wf_tasks t, wf_cases c where c.case_id = p_case_id and t.case_id = c.case_id and t.workflow_key = c.workflow_key and t.transition_key = p_transition_key; -- Select out all interesting variables from a ticket select ticket_id, ticket_status_id, ticket_type_id, ticket_prio_id, ticket_customer_contact_id, ticket_assignee_id, p.parent_id as ticket_sla_id, ticket_service_id, ticket_application_id, ticket_queue_id, ticket_alarm_date, ticket_alarm_action, ticket_note, ticket_conf_item_id into v_ticket_id, v_ticket_status_id, v_ticket_type_id, v_ticket_prio_id, v_ticket_customer_contact_id, v_ticket_assignee_id, v_ticket_sla_id, v_ticket_service_id, v_ticket_application_id, v_ticket_queue_id, v_ticket_alarm_date, v_ticket_alarm_action, v_ticket_note, v_ticket_conf_item_id from im_tickets t, im_projects p where t.ticket_id = p.project_id and t.ticket_id = v_object_id; -- Determine the queue for the ticket -- -- Check if the ticket_queue has already been defined by the user or -- otherwise. Dont overwrite this queue. IF v_ticket_queue_id is null THEN -- Pull out the ticket queue name from ticket_type_id category select group_id, group_name into v_ticket_queue_id, v_ticket_queue from im_categories c, groups g where c.category_id = v_ticket_type_id and trim(c.aux_string2) = trim(g.group_name); -- Check if we have found a valid group name in the im_categories.aux_string2 field: IF v_ticket_queue_id is not null THEN -- Set the que for the ticket update im_tickets set ticket_queue_id = v_ticket_queue_id where ticket_id = v_ticket_id; -- Protocol the decision to assign the ticket to that group. v_journal_id := journal_entry__new( null, v_case_id, v_transition_key || '' set_queue '' || p_custom_arg, v_transition_key || '' set_queue '' || p_custom_arg, now(), v_creation_user, v_creation_ip, ''Ticket classify: Setting ticket queue to '' || v_ticket_queue || '' based on Category '' || im_category_from_id(v_ticket_type_id) || ''".'' ); END IF; END IF; return 0; end;' language 'plpgsql'; -- Unassigned callback that assigns the transition to the group in the custom_arg -- create or replace function im_workflow__assign_to_customer (integer,text) returns integer as ' declare p_task_id alias for $1; p_custom_arg alias for $2; v_transition_key varchar; v_object_type varchar; v_case_id integer; v_object_id integer; v_creation_user integer; v_creation_ip varchar; v_group_id integer; v_group_name varchar; v_journal_id integer; v_str text; row RECORD; begin -- Get information about the transition and the "environment" select tr.transition_key, t.case_id, c.object_id, o.creation_user, o.creation_ip, o.object_type into v_transition_key, v_case_id, v_object_id, v_creation_user, v_creation_ip, v_object_type from wf_tasks t, wf_cases c, wf_transitions tr, acs_objects o where t.task_id = p_task_id and t.case_id = c.case_id and o.object_id = t.case_id and t.workflow_key = tr.workflow_key and t.transition_key = tr.transition_key; select error from im_error; return 0; end;' language 'plpgsql';
CREATE TABLE grp_user ( id integer NOT NULL PRIMARY KEY auto_increment, userid text NOT NULL, password text NOT NULL, password_default text NOT NULL, realname text NOT NULL, authority text NOT NULL, user_group integer, user_groupname text, user_email text, user_code text, user_skype text, user_ruby text, user_postcode text, user_address text, user_addressruby text, user_phone text, user_mobile text, user_birthday DATE NOT NULL, last_login DATETIME NULL, user_joindate DATE NOT NULL, user_hiretype TINYINT NOT NULL, user_openhour MEDIUMTEXT NULL, user_openminute MEDIUMTEXT NULL, user_closehour MEDIUMTEXT NULL, user_closeminute MEDIUMTEXT NULL, user_overtime_flg TINYINT(1) NOT NULL DEFAULT 0, remark LONGTEXT NULL, user_retired DATE NULL, user_order integer, edit_level integer, edit_group text, edit_user text, owner text NOT NULL, editor text, created text NOT NULL, updated text); CREATE UNIQUE INDEX grp_index_userid ON grp_user (userid(255)); CREATE INDEX grp_index_user_group ON grp_user (user_group); CREATE TABLE grp_group ( id integer NOT NULL PRIMARY KEY auto_increment, group_name text NOT NULL, group_leader MEDIUMTEXT NULL, parent_id INT NOT NULL, group_order integer, add_level integer NOT NULL, add_group text, add_user text, edit_level integer, edit_group text, edit_user text, owner text NOT NULL, editor text, created text NOT NULL, updated text); CREATE TABLE grp_folder ( id integer NOT NULL PRIMARY KEY auto_increment, folder_type text NOT NULL, folder_id integer NOT NULL, folder_caption text NOT NULL, folder_name text, folder_date text, folder_order integer, add_level integer, add_group text, add_user text, public_level integer, public_group text, public_user text, edit_level integer, edit_group text, edit_user text, owner text NOT NULL, editor text, created text NOT NULL, updated text); CREATE INDEX grp_index_folder_type ON grp_folder (folder_type(255)); CREATE INDEX grp_index_folder_id ON grp_folder (folder_id); CREATE INDEX grp_index_folder_owner ON grp_folder (owner(255)); CREATE TABLE grp_schedule ( id integer NOT NULL PRIMARY KEY auto_increment, schedule_type integer NOT NULL, schedule_title text, schedule_name text, schedule_comment text, schedule_year integer, schedule_month integer, schedule_day integer, schedule_date text, schedule_time text, schedule_endtime text, schedule_allday text, schedule_repeat text, schedule_everyweek text, schedule_everymonth text, schedule_begin text, schedule_end text, schedule_facility integer, schedule_level integer NOT NULL, schedule_group text, schedule_user text, public_level integer NOT NULL, public_group text, public_user text, edit_level integer, edit_group text, edit_user text, owner text NOT NULL, editor text, created text NOT NULL, updated text); CREATE INDEX grp_index_schedule_type ON grp_schedule (schedule_type); CREATE INDEX grp_index_schedule_date ON grp_schedule (schedule_date(255)); CREATE INDEX grp_index_schedule_repeat ON grp_schedule (schedule_repeat(255)); CREATE INDEX grp_index_schedule_begin ON grp_schedule (schedule_begin(255)); CREATE INDEX grp_index_schedule_end ON grp_schedule (schedule_end(255)); CREATE INDEX grp_index_schedule_level ON grp_schedule (schedule_level); CREATE INDEX grp_index_schedule_owner ON grp_schedule (owner(255)); CREATE TABLE grp_message ( id integer NOT NULL PRIMARY KEY auto_increment, folder_id integer NOT NULL, message_type text NOT NULL, message_to text NOT NULL, message_from text NOT NULL, message_toname text, message_fromname text, message_title text, message_comment text, message_date text, message_file text, owner text NOT NULL, editor text, created text NOT NULL, updated text); CREATE INDEX grp_index_message_folder_id ON grp_message (folder_id); CREATE INDEX grp_index_message_type ON grp_message (message_type(255)); CREATE INDEX grp_index_message_owner ON grp_message (owner(255)); CREATE TABLE grp_forum ( id integer NOT NULL PRIMARY KEY auto_increment, folder_id integer NOT NULL, forum_parent integer NOT NULL, forum_title text, forum_name text, forum_comment text, forum_date text, forum_file text, forum_lastupdate text, forum_node integer, public_level integer NOT NULL, public_group text, public_user text, edit_level integer, edit_group text, edit_user text, owner text NOT NULL, editor text, created text NOT NULL, updated text); CREATE INDEX grp_index_forum_folder_id ON grp_forum (folder_id); CREATE INDEX grp_index_forum_parent ON grp_forum (forum_parent); CREATE TABLE grp_storage ( id integer NOT NULL PRIMARY KEY auto_increment, storage_type text NOT NULL, storage_folder integer NOT NULL, storage_title text, storage_name text, storage_comment text, storage_date text, storage_file text, storage_size text, add_level integer, add_group text, add_user text, public_level integer NOT NULL, public_group text, public_user text, edit_level integer, edit_group text, edit_user text, owner text NOT NULL, editor text, created text NOT NULL, updated text); CREATE INDEX grp_index_storage_type ON grp_storage (storage_type(255)); CREATE INDEX grp_index_storage_folder ON grp_storage (storage_folder); CREATE TABLE grp_bookmark ( id integer NOT NULL PRIMARY KEY auto_increment, folder_id integer NOT NULL, bookmark_title text, bookmark_name text, bookmark_url text, bookmark_date text, bookmark_comment text, bookmark_order integer, public_level integer NOT NULL, public_group text, public_user text, edit_level integer, edit_group text, edit_user text, owner text NOT NULL, editor text, created text NOT NULL, updated text); CREATE INDEX grp_index_bookmark_folder_id ON grp_bookmark (folder_id); CREATE TABLE grp_project ( id integer NOT NULL PRIMARY KEY auto_increment, folder_id integer NOT NULL, project_parent integer NOT NULL, project_title text, project_begin text, project_end text, project_name text, project_progress integer, project_comment text, project_date text, project_file text, public_level integer NOT NULL, public_group text, public_user text, edit_level integer, edit_group text, edit_user text, owner text NOT NULL, editor text, created text NOT NULL, updated text); CREATE INDEX grp_index_project_folder_id ON grp_project (folder_id); CREATE INDEX grp_index_project_parent ON grp_project (project_parent); CREATE TABLE grp_addressbook ( id integer NOT NULL PRIMARY KEY auto_increment, folder_id integer NOT NULL, addressbook_type integer NOT NULL, addressbook_name text, addressbook_ruby text, addressbook_company text, addressbook_companyruby text, addressbook_department text, addressbook_position text, addressbook_postcode text, addressbook_address text, addressbook_addressruby text, addressbook_phone text, addressbook_fax text, addressbook_mobile text, addressbook_email text, addressbook_url text, addressbook_comment text, addressbook_parent integer, public_level integer NOT NULL, public_group text, public_user text, edit_level integer, edit_group text, edit_user text, owner text NOT NULL, editor text, created text NOT NULL, updated text); CREATE INDEX grp_index_addressbook_folder_id ON grp_addressbook (folder_id); CREATE INDEX grp_index_addressbook_type ON grp_addressbook (addressbook_type); CREATE TABLE grp_todo ( id integer NOT NULL PRIMARY KEY auto_increment, folder_id integer NOT NULL, todo_parent integer, todo_title text, todo_name text, todo_term text, todo_noterm text, todo_priority integer, todo_comment text, todo_complete integer, todo_completedate text, todo_user text, owner text NOT NULL, editor text, created text NOT NULL, updated text); CREATE INDEX grp_index_todo_folder_id ON grp_todo (folder_id); CREATE INDEX grp_index_todo_owner ON grp_todo (owner(255)); CREATE TABLE grp_timecard ( id integer NOT NULL PRIMARY KEY auto_increment, timecard_year integer, timecard_month integer, timecard_day integer, timecard_date text, timecard_open text, timecard_close text, timecard_interval text, timecard_originalopen text, timecard_originalclose text, timecard_originalinterval text, timecard_time text, timecard_timeinterval text, timecard_comment text, timecard_work TIME NULL, timecard_overtime TIME NULL, timecard_latenightovertime TIME NULL, timecard_hd_work TIME NULL, timecard_hd_overtime TIME NULL, timecard_hd_latenightovertime TIME NULL, timecard_latecome TIME NULL, timecard_earlyleave TIME NULL, timecard_reason_open INT NULL, timecard_reason_close INT NULL, timecard_admin_comment LONGTEXT NULL, timecard_vacation_from TIME NULL, timecard_vacation_to TIME NULL, timecard_vacation_substitute_id INT NULL, timecard_vacation_type INT NULL, timecard_vacation_comment LONGTEXT NULL, timecard_vacation_requested DATETIME NULL, timecard_vacation_approved DATETIME NULL, timecard_vacation_supervisor_comment LONGTEXT NULL, timecard_vacation_supervisor_userid MEDIUMTEXT NULL, timecard_workday_flg TINYINT NOT NULL DEFAULT 0, owner text NOT NULL, editor text, created text NOT NULL, updated text); CREATE INDEX grp_index_timecard_year ON grp_timecard (timecard_year); CREATE INDEX grp_index_timecard_month ON grp_timecard (timecard_month); CREATE INDEX grp_index_timecard_owner ON grp_timecard (owner(255)); CREATE TABLE grp_config ( id integer NOT NULL PRIMARY KEY auto_increment, config_type text NOT NULL, config_key text NOT NULL, config_value text, owner text NOT NULL, editor text, created text NOT NULL, updated text); CREATE INDEX grp_index_config_type ON grp_config (config_type(255)); CREATE TABLE `grp_reason` ( id INT NOT NULL, reason_desc MEDIUMTEXT NOT NULL, syanai TINYINT(1) NOT NULL, INDEX `id` (`id`) ); INSERT INTO `grp_reason` (`id`, `reason_desc`, `syanai`) VALUES (1,'打刻忘れ', 0), (2,'電車遅延', 1), (3,'直行直帰', 0), (4,'打刻障害', 0), (99,'その他', 0); CREATE TABLE `grp_vacation` ( id INT NOT NULL, vacation_name MEDIUMTEXT NOT NULL, paid TINYINT(1) NOT NULL, allday TINYINT(1) NOT NULL, shortname MEDIUMTEXT NULL, vacation_comment TEXT NULL, INDEX `id` (`id`) ); INSERT INTO `grp_vacation` (`id`, `vacation_name`, `paid`,`allday`,`shortname`,`vacation_comment`) VALUES (1,'有給休暇', 1, 1, '有給', NULL), (5,'時間有給', 1, 0, '時間', NULL), (10,'振替休日', 1, 1, '振替', '振替休日を取得する場合は、必ず振替となる休日出勤の日付をコメント欄に書いてください。'), (15,'時間振休', 1, 0, '時振', '時間振休を取得する場合は、必ず振替となる休日出勤の日付と時間帯をコメント欄に書いてください。'), (20,'特別休暇', 1, 1, '特別', NULL), (25,'欠勤・その他休', 0, 1, '欠他', '欠勤・その他休暇の場合は必ず理由をコメント欄に書いてください。'); CREATE TABLE `grp_timecard_fixed` ( timecard_year integer NOT NULL, timecard_month integer NOT NULL, fixed_from DATE NOT NULL, fixed_to DATE NOT NULL, owner text NOT NULL, fixed_by text NOT NULL, fixed_at DATETIME NOT NULL ); /* ALTER TABLE `grp_timecard_fixed` ADD COLUMN `fixed_from` DATE NOT NULL AFTER `timecard_month`, ADD COLUMN `fixed_to` DATE NOT NULL AFTER `fixed_from`; update grp_timecard_fixed set grp_timecard_fixed.fixed_from = DATE_ADD(STR_TO_DATE(CONCAT(grp_timecard_fixed.timecard_year,'-',grp_timecard_fixed.timecard_month,'-11'),'%Y-%m-%d'),INTERVAL -1 month), grp_timecard_fixed.fixed_to = STR_TO_DATE(CONCAT(grp_timecard_fixed.timecard_year,'-',grp_timecard_fixed.timecard_month,'-10'),'%Y-%m-%d') */ CREATE TABLE `grp_holiday` ( holiday_date DATE NOT NULL, holiday_desc text NULL ); CREATE TABLE `grp_access` ( id integer NOT NULL PRIMARY KEY auto_increment, access_table text NOT NULL, access_id integer NOT NULL, access_userid text NOT NULL, access_at DATETIME NOT NULL ); CREATE TABLE `grp_news` ( id integer NOT NULL PRIMARY KEY auto_increment, news_title text NOT NULL, news_body text NOT NULL, owner text NOT NULL, news_begin DATETIME NOT NULL, news_end DATETIME NOT NULL, news_hide TINYINT(1) NOT NULL DEFAULT 0, recorder_disp TINYINT(1) NOT NULL DEFAULT 0, editor text, created text NOT NULL, updated text ); CREATE TABLE grp_user_group ( id integer NOT NULL PRIMARY KEY auto_increment, group_id INT NOT NULL, userid text NOT NULL); CREATE TABLE grp_overtime ( id integer NOT NULL PRIMARY KEY auto_increment, overtime_date DATE NOT NULL, overtime_time_requested TIME NOT NULL, overtime_time_approved TIME NULL, overtime_approved_at DATETIME NULL, overtime_supervisor_userid MEDIUMTEXT NULL, overtime_fixed_normal_overtime TIME NULL, overtime_fixed_latenightovertime TIME NULL, overtime_fixed_hd_worktime TIME NULL, overtime_fixed_hd_latenightovertime TIME NULL, owner text NOT NULL, editor text, created text NOT NULL, updated text, UNIQUE(overtime_date, owner(255)) ); CREATE INDEX grp_index_overtime_date ON grp_overtime (overtime_date); CREATE INDEX grp_index_overtime_owner ON grp_overtime (owner(255)); CREATE TABLE `grp_overtime_comment` ( id integer NOT NULL PRIMARY KEY auto_increment, timecard_year integer NOT NULL, timecard_month integer NOT NULL, date_from DATE NOT NULL, date_to DATE NOT NULL, comment TEXT NOT NULL, timecard_overtime_approved DATETIME NULL, timecard_overtime_supervisor_comment LONGTEXT NULL, timecard_overtime_supervisor_userid MEDIUMTEXT NULL, owner text NOT NULL, created text NOT NULL, updated text, UNIQUE(timecard_year, timecard_month, owner(255)) ); CREATE INDEX grp_index_overtime_comment_timecard_year ON grp_overtime_comment (timecard_year); CREATE INDEX grp_index_overtime_comment_timecard_month ON grp_overtime_comment (timecard_month); CREATE INDEX grp_index_overtime_comment_owner ON grp_overtime_comment (owner(255)); CREATE TABLE `grp_event` ( id INT NOT NULL, event_name MEDIUMTEXT NOT NULL, bg_color MEDIUMTEXT NULL, INDEX `id` (`id`) ); INSERT INTO `grp_event` (`id`, `event_name`, `bg_color`) VALUES (1,'休暇', '#ff80f7'), (10,'休出', '#700099'), (15,'内会', '#0400ff'), (16,'外出', '#ffae00'), (20,'営業', '#00ffb3'), (25,'講習', '#96ff66'), (30,'中間', '#fcff66'), (35,'完了', '#ffa366'), (40,'取込', '#ff1a1a'), (99,'其他', '#adadad'); ALTER TABLE `grp_schedule` ADD COLUMN `schedule_event` INT(11) NULL AFTER `schedule_user`, ADD COLUMN `event_local` TEXT NULL, ADD COLUMN `event_canceled` TINYINT(1) NOT NULL, ADD COLUMN `event_temp` TINYINT(1) NOT NULL; ALTER TABLE `grp_timecard` ADD COLUMN `timecard_hayade` TIME NULL AFTER `timecard_work`;
<gh_stars>0 -- DB structure CREATE DATABASE IF NOT EXISTS ${artifactId} CHARSET=utf8mb4 COLLATE=utf8mb4_bin; USE ${artifactId}; -- ---------------------------- -- Table structure for sys_t_app_info -- ---------------------------- CREATE TABLE IF NOT EXISTS `sys_t_app_info` ( `APP_ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'APPID', `APP_CODE` varchar(128) COLLATE utf8mb4_bin NOT NULL COMMENT 'APP编码', `APP_NAME` varchar(128) COLLATE utf8mb4_bin NOT NULL COMMENT 'APP名称', `APP_OS` varchar(128) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'APP操作系统描述(安卓/IOS,中文/英文)', `SYSTEM_ID` bigint(20) DEFAULT NULL COMMENT '所属业务系统ID', `REJECT_GUEST_USER` char(1) COLLATE utf8mb4_bin DEFAULT 'N' COMMENT '拒绝游客用户登录【Y:是,N:否】', `REJECT_SHOPPING_USER` char(1) COLLATE utf8mb4_bin DEFAULT 'N' COMMENT '拒绝购物用户登录【Y:是,N:否】', `ALLOW_BACKGROUND_USER` char(1) COLLATE utf8mb4_bin DEFAULT 'Y' COMMENT '允许后台用户登录【Y:是,N:否】', `IS_AVAILABLE` char(1) COLLATE utf8mb4_bin DEFAULT 'Y' COMMENT '是否可用(Y:可用,N:不可用)', `TRACK_ID` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'AppStore的trackId', `SERVER_DOMAIN` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '服务器域名', PRIMARY KEY (`APP_ID`), UNIQUE KEY `UQ_APP_CODE` (`APP_CODE`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='APP信息'; -- ---------------------------- -- Table structure for sys_t_code_info -- ---------------------------- CREATE TABLE IF NOT EXISTS `sys_t_code_info` ( `CODE_ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典ID', `CODE_TYPE` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '字典类型', `CODE_NAME` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '字典名称', `CODE_CODE` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '字典编码', `CODE_ORDER` varchar(8) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '排序', PRIMARY KEY (`CODE_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='数据字典表'; -- ---------------------------- -- Table structure for sys_t_function_info -- ---------------------------- CREATE TABLE IF NOT EXISTS `sys_t_function_info` ( `FUNCTION_ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '功能ID', `FUNCTION_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '功能名称', `FUNCTION_CODE` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '功能编码', `MENU_ID` bigint(20) NOT NULL COMMENT '所属菜单ID', `IS_AVAILABLE` char(1) COLLATE utf8mb4_bin NOT NULL DEFAULT 'Y' COMMENT '是否可用【N:否 Y:是】', PRIMARY KEY (`FUNCTION_ID`), KEY `IDX_MENU` (`MENU_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='功能按钮信息表'; -- ---------------------------- -- Table structure for sys_t_menu_info -- ---------------------------- CREATE TABLE IF NOT EXISTS `sys_t_menu_info` ( `MENU_ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID', `MENU_PID` bigint(20) NOT NULL DEFAULT '0' COMMENT '上级菜单ID', `MENU_NAME` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '菜单名称', `MENU_ACTION_KEY` varchar(128) COLLATE utf8mb4_bin NOT NULL COMMENT '菜单所对应的ActionKey', `MENU_CODE` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '菜单编码', `IS_AVAILABLE` char(1) COLLATE utf8mb4_bin NOT NULL DEFAULT 'Y' COMMENT '菜单是否可用【N:不可用 Y:可用】', `IS_LEAF` char(1) COLLATE utf8mb4_bin NOT NULL DEFAULT 'Y' COMMENT '是否末级【N:不是 Y:是】', `SYSTEM_ID` bigint(20) NOT NULL COMMENT '系统ID', `SORT` int(11) NOT NULL DEFAULT '1' COMMENT '排序', PRIMARY KEY (`MENU_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='菜单信息表'; -- ---------------------------- -- Table structure for sys_t_operation_record -- ---------------------------- CREATE TABLE IF NOT EXISTS `sys_t_operation_record` ( `OPERATION_RECORD_ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '操作记录ID', `NAMESPACE` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Action所在命名空间', `ACTION_NAME` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Action名字', `ACTION_CLASS` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Action对应的Class名', `METHOD_NAME` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '方法名字', `MENU` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '菜单', `FUNCTION` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '功能', `OPT_LEVEL` int(8) DEFAULT NULL COMMENT ' 操作级别(1增,2删,4改,8查)', `OPT_CODE` varchar(8) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '操作识别码(add增,del删,mod改,view查)', `OPT_DESC` varchar(8) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '操作描述(新增,删除,修改,查看)', `IS_SUCCESS` char(1) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否成功【Y:成功 N:失败】', `RESULT` varchar(128) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '返回结果', `ERROR_MESSAGE` varchar(1024) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '错误描述', `IS_DELETE` char(1) COLLATE utf8mb4_bin DEFAULT 'N' COMMENT '是否删除【N:未删除 Y:已删除】', `CREATE_PERSON` bigint(20) DEFAULT NULL COMMENT '创建者', `CREATE_PERSON_NAME` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者姓名', `CREATE_TIME` timestamp NULL DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`OPERATION_RECORD_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='操作记录信息表'; -- ---------------------------- -- Table structure for sys_t_role_info -- ---------------------------- CREATE TABLE IF NOT EXISTS `sys_t_role_info` ( `ROLE_ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '角色ID', `ROLE_NAME` varchar(100) COLLATE utf8mb4_bin NOT NULL COMMENT '角色名称', `ROLE_CODE` varchar(100) COLLATE utf8mb4_bin NOT NULL COMMENT '角色编码', `IS_AVAILABLE` char(1) COLLATE utf8mb4_bin NOT NULL DEFAULT 'Y' COMMENT '是否可用(Y:可用 N:不可用)', `SYSTEM_ID` bigint(20) NOT NULL COMMENT '所属系统ID', PRIMARY KEY (`ROLE_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='角色信息表'; -- ---------------------------- -- Table structure for sys_t_role_r_function -- ---------------------------- CREATE TABLE IF NOT EXISTS `sys_t_role_r_function` ( `ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '唯一主键', `ROLE_ID` bigint(255) NOT NULL COMMENT '角色ID', `FUNCTION_ID` bigint(20) NOT NULL COMMENT '功能按钮ID', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='角色关联功能按钮表'; -- ---------------------------- -- Table structure for sys_t_role_r_menu -- ---------------------------- CREATE TABLE IF NOT EXISTS `sys_t_role_r_menu` ( `ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '唯一主键', `ROLE_ID` bigint(20) NOT NULL COMMENT '角色ID', `MENU_ID` bigint(20) NOT NULL COMMENT '菜单ID', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='角色关联菜单表'; -- ---------------------------- -- Table structure for sys_t_sensitive_info -- ---------------------------- CREATE TABLE IF NOT EXISTS `sys_t_sensitive_info` ( `SENSITIVE_ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '敏感词ID', `SENSITIVE_VALUE` varchar(128) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '敏感词', `REPLACE_VALUE` varchar(128) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '替换值', `CREATE_PERSON` bigint(20) DEFAULT NULL COMMENT '创建者', `CREATE_PERSON_NAME` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者姓名', `CREATE_TIME` timestamp NULL DEFAULT NULL COMMENT '创建时间', `UPDATE_PERSON` bigint(20) DEFAULT NULL COMMENT '更新者', `UPDATE_PERSON_NAME` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者姓名', `UPDATE_TIME` timestamp NULL DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`SENSITIVE_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='敏感词信息表'; -- ---------------------------- -- Table structure for sys_t_system_info -- ---------------------------- CREATE TABLE IF NOT EXISTS `sys_t_system_info` ( `SYSTEM_ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '系统ID', `SYSTEM_CODE` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT '系统编码', `SYSTEM_NAME` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT '系统名称', `IS_AVAILABLE` char(1) COLLATE utf8mb4_bin NOT NULL DEFAULT 'Y' COMMENT '是否可用(Y:可用 N:不可用)', PRIMARY KEY (`SYSTEM_ID`), KEY `IDX_CODE` (`SYSTEM_CODE`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='系统信息表'; -- ---------------------------- -- Table structure for sys_t_user_info -- ---------------------------- CREATE TABLE IF NOT EXISTS `sys_t_user_info` ( `USER_ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户ID', `LOGIN_NAME` varchar(128) COLLATE utf8mb4_bin NOT NULL COMMENT '用户登录名', `USER_NAME` varchar(128) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '用户姓名', `PASSWORD` varchar(255) COLLATE utf8mb4_bin NOT NULL COMMENT ' 登录密码', `EFCT_YMD` date NOT NULL COMMENT '用户起用日', `EXPR_YMD` date NOT NULL DEFAULT '2049-12-31' COMMENT '用户失效日', `INS_TSTMP` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间', `ORIGIN_OS_ID` bigint(20) DEFAULT NULL COMMENT '所属系统ID', `USER_TYPE` varchar(1) COLLATE utf8mb4_bin DEFAULT '0' COMMENT '用户类别(0:框架用户,1:业务系统用户,3:购物用户,9:游客)', `IS_ENABLE` char(1) COLLATE utf8mb4_bin NOT NULL DEFAULT 'Y' COMMENT '是否启用:Y启用,N禁用', `IS_DELETE` char(1) COLLATE utf8mb4_bin NOT NULL DEFAULT 'N' COMMENT '是否删除 N:未删除 Y:删除', `CREATE_PERSON` varchar(128) COLLATE utf8mb4_bin NOT NULL COMMENT '创建人姓名', `UPDATE_PERSON` varchar(128) COLLATE utf8mb4_bin NOT NULL COMMENT '修改人姓名', `UPDATE_TIME` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', PRIMARY KEY (`USER_ID`), UNIQUE KEY `IDX_LOGIN_NAME` (`LOGIN_NAME`) USING BTREE, KEY `IDX_ORIGIN_OS_ID` (`ORIGIN_OS_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='后台用户管理'; -- ---------------------------- -- Table structure for sys_t_user_r_role -- ---------------------------- CREATE TABLE IF NOT EXISTS `sys_t_user_r_role` ( `ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '唯一主键', `USER_ID` bigint(20) NOT NULL COMMENT '用户ID', `ROLE_ID` bigint(20) NOT NULL COMMENT '角色ID', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='用户关联角色表'; -- ---------------------------- -- Table structure for sys_t_user_r_system -- ---------------------------- CREATE TABLE IF NOT EXISTS `sys_t_user_r_system` ( `ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '唯一主键', `USER_ID` bigint(20) NOT NULL COMMENT '用户ID', `SYSTEM_ID` bigint(20) NOT NULL COMMENT '业务系统ID', `IS_AVAILABLE` char(1) COLLATE utf8mb4_bin NOT NULL DEFAULT 'Y' COMMENT '是否可用', PRIMARY KEY (`ID`), KEY `IDX_USER_ID` (`USER_ID`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='用户授权使用的业务系统表';
<reponame>GeorgeKirev/OpenOLAT -- grading alter table o_grad_time_record add g_metadata_time number(20) default 0 not null;
CREATE TABLE customer ( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR NOT NULL, status INTEGER NOT NULL, segment INTEGER NOT NULL, birth_no VARCHAR, reg_no VARCHAR, tax_no VARCHAR, create_date DATETIME, modify_date DATETIME, FOREIGN KEY (status) REFERENCES lov_status(id), FOREIGN KEY (segment) REFERENCES lov_segment(id) ); CREATE TABLE payer ( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR NOT NULL, status INTEGER NOT NULL, billcycle INTEGER NOT NULL, bank_account VARCHAR, customer INTEGER NOT NULL, create_date DATETIME, modify_date DATETIME, FOREIGN KEY (status) REFERENCES lov_status(id), FOREIGN KEY (billcycle) REFERENCES lov_billcycle(id), FOREIGN KEY (customer) REFERENCES customer(id) ); CREATE TABLE subscriber ( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR NOT NULL, msisdn VARCHAR NOT NULL, status INTEGER NOT NULL, market INTEGER NOT NULL, tariff INTEGER NOT NULL, customer INTEGER NOT NULL, payer INTEGER NOT NULL, create_date DATETIME, modify_date DATETIME, FOREIGN KEY (status) REFERENCES lov_status(id), FOREIGN KEY (market) REFERENCES lov_market(id), FOREIGN KEY (tariff) REFERENCES lov_tariff(id), FOREIGN KEY (customer) REFERENCES customer(id), FOREIGN KEY (payer) REFERENCES payer(id) ); CREATE TABLE contact ( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR NOT NULL, phone VARCHAR, email VARCHAR, create_date DATETIME, modify_date DATETIME ); CREATE TABLE contact_role ( id INTEGER PRIMARY KEY AUTOINCREMENT, contact_role INTEGER NOT NULL, contact INTEGER NOT NULL, customer INTEGER, payer INTEGER, subscriber INTEGER, create_date DATETIME, FOREIGN KEY (contact_role) REFERENCES lov_contact_role(id), FOREIGN KEY (contact) REFERENCES contact(id), FOREIGN KEY (customer) REFERENCES customer(id), FOREIGN KEY (payer) REFERENCES payer(id), FOREIGN KEY (subscriber) REFERENCES subscriber(id) ); CREATE TABLE address ( id INTEGER PRIMARY KEY AUTOINCREMENT, street VARCHAR NOT NULL, street_no VARCHAR NOT NULL, city VARCHAR NOT NULL, zip VARCHAR NOT NULL, create_date DATETIME, modify_date DATETIME ); CREATE TABLE address_role ( id INTEGER PRIMARY KEY AUTOINCREMENT, address_role INTEGER NOT NULL, address INTEGER NOT NULL, contact INTEGER, customer INTEGER, payer INTEGER, subscriber INTEGER, create_date DATETIME, FOREIGN KEY (address_role) REFERENCES lov_address_role(id), FOREIGN KEY (address) REFERENCES address(id), FOREIGN KEY (contact) REFERENCES contact(id), FOREIGN KEY (customer) REFERENCES customer(id), FOREIGN KEY (payer) REFERENCES payer(id), FOREIGN KEY (subscriber) REFERENCES subscriber(id) ); CREATE TABLE service ( id INTEGER PRIMARY KEY AUTOINCREMENT, service INTEGER NOT NULL, status INTEGER NOT NULL, customer INTEGER, payer INTEGER, subscriber INTEGER, create_date DATETIME, modify_date DATETIME, FOREIGN KEY (service) REFERENCES lov_service(id), FOREIGN KEY (status) REFERENCES lov_status(id), FOREIGN KEY (customer) REFERENCES customer(id), FOREIGN KEY (payer) REFERENCES payer(id), FOREIGN KEY (subscriber) REFERENCES subscriber(id) ); CREATE TABLE service_params ( id INTEGER PRIMARY KEY AUTOINCREMENT, param INTEGER NOT NULL, value VARCHAR, service INTEGER NOT NULL, create_date DATETIME, modify_date DATETIME, FOREIGN KEY (param) REFERENCES lov_service_param(id), FOREIGN KEY (service) REFERENCES service(id) ); CREATE TABLE history ( id INTEGER PRIMARY KEY AUTOINCREMENT, event_date DATETIME NOT NULL, table_name VARCHAR NOT NULL, table_id INTEGER NOT NULL, event VARCHAR NOT NULL, log CLOB ); CREATE TABLE lov_status ( id INTEGER PRIMARY KEY, title VARCHAR NOT NULL ); CREATE TABLE lov_segment ( id INTEGER PRIMARY KEY, title VARCHAR NOT NULL ); CREATE TABLE lov_billcycle ( id INTEGER PRIMARY KEY, title VARCHAR NOT NULL ); CREATE TABLE lov_market ( id INTEGER PRIMARY KEY, title VARCHAR NOT NULL ); CREATE TABLE lov_tariff ( id INTEGER PRIMARY KEY, title VARCHAR NOT NULL, segment INTEGER, market INTEGER, monthly_fee INTEGER ); CREATE TABLE lov_contact_role ( id INTEGER PRIMARY KEY, title VARCHAR NOT NULL ); CREATE TABLE lov_address_role ( id INTEGER PRIMARY KEY, title VARCHAR NOT NULL ); CREATE TABLE lov_service ( id INTEGER PRIMARY KEY, title VARCHAR NOT NULL, monthly_fee INTEGER, customer INTEGER, payer INTEGER, subscriber INTEGER ); CREATE TABLE lov_service_param ( id INTEGER PRIMARY KEY, title VARCHAR NOT NULL, service INTEGER NOT NULL, default_value VARCHAR, mandatory INTEGER, FOREIGN KEY (service) REFERENCES lov_service(id) ); INSERT INTO lov_status (id, title) VALUES (1, 'active'); INSERT INTO lov_status (id, title) VALUES (2, 'deactive'); INSERT INTO lov_status (id, title) VALUES (3, 'suspend'); INSERT INTO lov_segment (id, title) VALUES (2, 'RES'); INSERT INTO lov_segment (id, title) VALUES (3, 'VSE'); INSERT INTO lov_segment (id, title) VALUES (4, 'SME'); INSERT INTO lov_segment (id, title)VALUES (5, 'LE'); INSERT INTO lov_billcycle (id, title) VALUES (1, '51'); INSERT INTO lov_billcycle (id, title) VALUES (2, '52'); INSERT INTO lov_billcycle (id, title) VALUES (3, '53'); INSERT INTO lov_billcycle (id, title) VALUES (4, '54'); INSERT INTO lov_market (id, title) VALUES (1, 'GSM'); INSERT INTO lov_market (id, title) VALUES (2, 'DSL'); INSERT INTO lov_market (id, title) VALUES (3, 'FIX'); INSERT INTO lov_tariff (id, title, segment, market, monthly_fee) VALUES (433, 'S nami sit nesit', 2, 1, 449); INSERT INTO lov_tariff (id, title, segment, market, monthly_fee) VALUES (459, 'S nami sit nesit bez zavazku', 2, 1, 599); INSERT INTO lov_tariff (id, title, segment, market, monthly_fee) VALUES (434, 'S nami sit nesit v podnikani', 3, 1, 449); INSERT INTO lov_tariff (id, title, segment, market, monthly_fee) VALUES (460, 'S nami sit nesit v podnikani bez zavazku', 3, 1, 599); INSERT INTO lov_contact_role (id, title) VALUES (1, 'contact'); INSERT INTO lov_contact_role (id, title) VALUES (2, 'contract'); INSERT INTO lov_contact_role (id, title) VALUES (3, 'invoicing'); INSERT INTO lov_address_role (id, title) VALUES (1, 'contact'); INSERT INTO lov_address_role (id, title) VALUES (2, 'contract'); INSERT INTO lov_address_role (id, title) VALUES (3, 'invoicing'); INSERT INTO lov_address_role (id, title) VALUES (4, 'delivery'); INSERT INTO lov_service (id, title, monthly_fee, customer, payer, subscriber) VALUES (615, 'Telefonni cislo', null, 0, 0, 1); INSERT INTO lov_service (id, title, monthly_fee, customer, payer, subscriber) VALUES (619, 'SIM karta', null, 0, 0, 1); INSERT INTO lov_service_param (id, title, service, default_value, mandatory) VALUES (121, 'MSISDN', 615, null, 1); INSERT INTO lov_service_param (id, title, service, default_value, mandatory) VALUES (122, 'ICCID', 619, null, 1); INSERT INTO lov_service_param (id, title, service, default_value, mandatory) VALUES (123, 'IMSI', 619, null, 1);
ALTER TABLE user_profile DROP COLUMN account_administered; ALTER TABLE group_profile DROP COLUMN paid_for; DROP TABLE paid_account; DROP TABLE paid_group;
<reponame>Zhaojia2019/cubrid-testcases --test numeric data type by comparing operators like '=','>','<' in where clause and plus(+) symbol in select clause create class func_01 ( a smallint, b int, c numeric(38,10), d float, e monetary, f double ); insert into func_01 values ( 0,0,0,0,0,0); insert into func_01(a) values ( null); insert into func_01 values ( 1,1,1,1,1,1); insert into func_01 values ( 127,10000,987654321.123456789,987654321.123,987654321.987,987654321.123); insert into func_01 values (-127,-10000,-987654321.123456789,-987654321.123, -987654321.987,-987654321.123); select a, b from func_01 where a = b order by 1,2; select a, b from func_01 where a > b order by 1,2; select a, b from func_01 where a < b order by 1,2; select a, b from func_01 where a <> b order by 1,2; select a, b from func_01 where a <= b order by 1,2; select a, b from func_01 where a >= b order by 1,2; select a, c from func_01 where a = c order by 1,2; select a, c from func_01 where a > c order by 1,2; select a, c from func_01 where a < c order by 1,2; select a, c from func_01 where a <> c order by 1,2; select a, c from func_01 where a <= c order by 1,2; select a, c from func_01 where a >= c order by 1,2; select a, d from func_01 where a = d order by 1,2; select a, d from func_01 where a > d order by 1,2; select a, d from func_01 where a < d order by 1,2; select a, d from func_01 where a <> d order by 1,2; select a, d from func_01 where a <= d order by 1,2; select a, d from func_01 where a >= d order by 1,2; select a, e from func_01 where a = e order by 1,2; select a, e from func_01 where a > e order by 1,2; select a, e from func_01 where a < e order by 1,2; select a, e from func_01 where a <> e order by 1,2; select a, e from func_01 where a <= e order by 1,2; select a, e from func_01 where a >= e order by 1,2; select a, f from func_01 where a = f order by 1,2; select a, f from func_01 where a > f order by 1,2; select a, f from func_01 where a < f order by 1,2; select a, f from func_01 where a <> f order by 1,2; select a, f from func_01 where a <= f order by 1,2; select a, f from func_01 where a >= f order by 1,2; select a+b, a+f from func_01 where a = f order by 1,2; select a+b, a+f from func_01 where a > f order by 1,2; select a+b, a+f from func_01 where a < f order by 1,2; select a+b, a+f from func_01 where a <> f order by 1,2; select a+b, a+f from func_01 where a <= f order by 1,2; select a+b, a+f from func_01 where a >= f order by 1,2; drop class func_01;
select restaurants.id,restaurants.name,restaurants.detail,restaurants.img,restaurants.lat,restaurants.ing,locations.name as location,genres.name as genre from restaurants inner join locations on restaurants.location_id = locations.id inner join genres on restaurants.genre_id = genres.id where restaurants.id =
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 28, 2020 at 10:35 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.2.31 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: `nutridock` -- -- -------------------------------------------------------- -- -- Table structure for table `subscription` -- CREATE TABLE `subscription` ( `id` int(11) NOT NULL, `email` varchar(255) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `status` enum('Active','Inactive') NOT NULL, `is_deleted` enum('No','Yes') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `subscription` -- INSERT INTO `subscription` (`id`, `email`, `created_at`, `updated_at`, `status`, `is_deleted`) VALUES (1, '<EMAIL>', '2020-08-28 08:23:19', '2020-08-28 08:23:19', 'Active', 'No'); -- -- Indexes for dumped tables -- -- -- Indexes for table `subscription` -- ALTER TABLE `subscription` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `subscription` -- ALTER TABLE `subscription` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
CREATE TABLE clientes ( client_id serial PRIMARY KEY, best_city_name1 varchar(255) , best_city_name2 varchar(255) , years integer , email varchar(255) , idioma varchar(255) , enviromental_score integer , transport varchar(50) , work_preference varchar(50) , place_score varchar(50) , season varchar(50) , size_preference varchar(50) , entreteiment boolean , salary integer , percentaje_home double precision , interest_variable varchar(50) ); CREATE TABLE datos ( city_id serial PRIMARY KEY, city_name varchar(255) UNIQUE , languages varchar(50) , pollution double precision , best_mobility_option varchar(255) , work_spaces integer , mountain boolean , beach boolean , c_temp double precision, c_rainy_days integer, c_population double precision, density double precision, leisure double precision, housing double precision, cpi double precision, gdp_pc double precision, tax_burden double precision, crime_rate double precision, hdi double precision, doing_business integer, freedom double precision, life_expectancy double precision ); CREATE TABLE weather ( id integer PRIMARY KEY, city_id integer REFERENCES datos(city_id), w_month integer, w_year integer, c_temp double precision, c_rainy_days integer );
-- 12.31 storage engines -- it determines how data is stored, features available to us -- they are used at table levels, same db can have different storage engines -- it's expensive, bcz table need be rebuilt show engines; alter table customers engine = InnoDB;
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 05-04-2019 a las 07:42:01 -- Versión del servidor: 10.1.38-MariaDB -- Versión de PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de datos: `trabajo` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `carritos` -- CREATE TABLE `carritos` ( `id` int(10) UNSIGNED NOT NULL, `id_producto` int(11) NOT NULL, `id_usuario` int(11) NOT NULL, `cantidad` int(11) DEFAULT NULL, `total` int(11) 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; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `direccion` -- CREATE TABLE `direccion` ( `id` int(10) UNSIGNED NOT NULL, `id_usuario` int(11) NOT NULL, `calle` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `numero` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `colonia` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `referencias` varchar(191) 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; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `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; -- -- Volcado de datos para la tabla `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, '2016_06_01_000001_create_oauth_auth_codes_table', 1), (4, '2016_06_01_000002_create_oauth_access_tokens_table', 1), (5, '2016_06_01_000003_create_oauth_refresh_tokens_table', 1), (6, '2016_06_01_000004_create_oauth_clients_table', 1), (7, '2016_06_01_000005_create_oauth_personal_access_clients_table', 1), (8, '2018_12_04_005818_create_personalinformations_table', 1), (9, '2019_03_09_201519_direccion', 1), (10, '2019_03_09_201549_tarjeta', 1), (11, '2019_03_09_201559_pedido', 1), (12, '2019_03_09_201608_carrito', 1), (13, '2019_03_09_201616_producto', 1); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `oauth_access_tokens` -- CREATE TABLE `oauth_access_tokens` ( `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `user_id` int(11) DEFAULT NULL, `client_id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `scopes` text COLLATE utf8mb4_unicode_ci, `revoked` tinyint(1) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `expires_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `oauth_access_tokens` -- INSERT INTO `oauth_access_tokens` (`id`, `user_id`, `client_id`, `name`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) VALUES ('3daf19418d57de0c06c0a0951bc660ad8eca6b69dd3ed09ce12a2aacb57fd143081dd442a7d95e88', 1, 2, NULL, '[]', 0, '2019-04-05 01:42:18', '2019-04-05 01:42:18', '2019-04-19 19:42:18'), ('5b5853525d693b7408a6168b877d131934dd1d001d124d5edcb70175b1e3253d39203b9d1490e11b', 1, 5, NULL, '[]', 0, '2019-04-05 09:15:09', '2019-04-05 09:15:09', '2019-04-20 03:15:09'), ('6c44cd680668c24edf67754da7141f8c0bffe2859e0eb7c2e811daf18bb834f395d6c4230b985121', 1, 5, NULL, '[]', 0, '2019-04-05 01:42:07', '2019-04-05 01:42:07', '2019-04-19 19:42:07'), ('a19d5f2cdc50592ea068132eb39cf98fb1f14c89c03d14415e21c67cf08e3325816386757cd38320', 1, 5, NULL, '[]', 0, '2019-04-05 09:36:40', '2019-04-05 09:36:40', '2019-04-20 03:36:40'), ('b7206471910ed440e1eb4c5cddfd84e8645533168bf0849cb3018f198c8c371d15483186db6f03f5', 1, 5, NULL, '[]', 0, '2019-04-05 11:30:12', '2019-04-05 11:30:12', '2019-04-20 05:30:12'), ('c18f68ba98659fdbf58caf0b4bfcbe68bf416f4368c650e5f49fe85209c8dbf8f05a27487d11ae7d', 1, 5, NULL, '[]', 0, '2019-04-05 09:32:39', '2019-04-05 09:32:39', '2019-04-20 03:32:39'), ('dadba0331a53b2ef1b78caefd6c760af7927b034600bfb1fd7ec596c24fc1f334c28298b4cfcf2c9', 1, 5, NULL, '[]', 0, '2019-04-05 08:34:04', '2019-04-05 08:34:04', '2019-04-20 02:34:04'), ('dcefd12a2e865261f99a5b2c186cf70535d561ca63038fbb638ce2c921a5b9b0c21f3f799ac40d63', 1, 5, NULL, '[]', 0, '2019-04-05 08:32:08', '2019-04-05 08:32:08', '2019-04-20 02:32:08'), ('fc2e134282295143a2fc4a25e0371fd7a7e4539390035e2dfc9b916813f3dfd12e9949379be23d2f', 1, 5, NULL, '[]', 0, '2019-04-05 09:37:41', '2019-04-05 09:37:41', '2019-04-20 03:37:41'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `oauth_auth_codes` -- CREATE TABLE `oauth_auth_codes` ( `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `user_id` int(11) NOT NULL, `client_id` int(10) UNSIGNED NOT NULL, `scopes` text COLLATE utf8mb4_unicode_ci, `revoked` tinyint(1) NOT NULL, `expires_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `oauth_clients` -- CREATE TABLE `oauth_clients` ( `id` int(10) UNSIGNED NOT NULL, `user_id` int(11) DEFAULT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `secret` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `redirect` text COLLATE utf8mb4_unicode_ci NOT NULL, `personal_access_client` tinyint(1) NOT NULL, `password_client` tinyint(1) NOT NULL, `revoked` tinyint(1) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `oauth_clients` -- INSERT INTO `oauth_clients` (`id`, `user_id`, `name`, `secret`, `redirect`, `personal_access_client`, `password_client`, `revoked`, `created_at`, `updated_at`) VALUES (1, NULL, 'Laravel Personal Access Client', 'fKEnm0fYBkQFRVDxFN4JnsbXLQ1T2lonj0aPHEuE', 'http://localhost', 1, 0, 0, '2019-04-04 07:39:45', '2019-04-04 07:39:45'), (2, NULL, 'Laravel Password Grant Client', 'UhpdWqZHCSFe4l3GVrl3VLV5tUzwkUsMwHogYZfS', 'http://localhost', 0, 1, 0, '2019-04-04 07:39:45', '2019-04-04 07:39:45'), (3, 1, 'Yo', 'lHND52GibR3ae08qBnK2irJySRo4IOg0eiB69wEk', 'www.twiter.com/rewriterx_', 0, 0, 0, '2019-04-04 07:55:03', '2019-04-04 07:55:03'), (4, NULL, 'Laravel Personal Access Client', 'bNSpQrRlXiZu9UoIHjOOUIw7yy6ksKMmRSIqu5zv', 'http://localhost', 1, 0, 0, '2019-04-05 01:40:41', '2019-04-05 01:40:41'), (5, NULL, 'Laravel Password Grant Client', 'jP0h1KFbnqBBjPU7093WTlfE08QsRQhrZMSroRKp', 'http://localhost', 0, 1, 0, '2019-04-05 01:40:41', '2019-04-05 01:40:41'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `oauth_personal_access_clients` -- CREATE TABLE `oauth_personal_access_clients` ( `id` int(10) UNSIGNED NOT NULL, `client_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; -- -- Volcado de datos para la tabla `oauth_personal_access_clients` -- INSERT INTO `oauth_personal_access_clients` (`id`, `client_id`, `created_at`, `updated_at`) VALUES (1, 1, '2019-04-04 07:39:45', '2019-04-04 07:39:45'), (2, 4, '2019-04-05 01:40:41', '2019-04-05 01:40:41'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `oauth_refresh_tokens` -- CREATE TABLE `oauth_refresh_tokens` ( `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `access_token_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `revoked` tinyint(1) NOT NULL, `expires_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `oauth_refresh_tokens` -- INSERT INTO `oauth_refresh_tokens` (`id`, `access_token_id`, `revoked`, `expires_at`) VALUES ('1ad60b71e8dd7e6d8a04e21b5423a0df1703c4effbf84fd9181bcf5421c463ab2227adecea502b7c', '<KEY>', 0, '2019-05-05 02:34:04'), ('287f22708b5639f4723b6b8ad032e98e576e744bc539ed3a9b896615efd3def5a4f8a4b3736affe5', '<KEY>', 0, '2019-05-05 03:32:39'), ('3a63ccfe14696af8a3990595df170f09575efcf5969ec9dadae0fe1b18f9c3f3b1be8cf1295271f4', '<KEY>', 0, '2019-05-05 03:36:40'), ('601ba2b708891d30e427232659ff49e3e62b8ccb6c81aadec9dac92822aee00f4f9e8580125fd19a', '<KEY>', 0, '2019-05-05 05:30:12'), ('<KEY>', '<KEY>', 0, '2019-05-05 02:32:08'), ('8fca5cfada855a953ba9ff1ae116eedfd1661b754aeef5f66bc2efc4d6e76332cde61b929c515146', '6c44cd680668c24edf67754da7141f8c0bffe2859e0eb7c2e811daf18bb834f395d6c4230b985121', 0, '2019-05-04 19:42:08'), ('be2f7b0db71bba043a84fa53d9106043273211710c23f29f58314d78611ce6e3c39d7fc3d2c0649c', 'fc2e134282295143a2fc4a25e0371fd7a7e4539390035e2dfc9b916813f3dfd12e9949379be23d2f', 0, '2019-05-05 03:37:41'), ('d2e3e79e1ce6a62be423ef511fbaa7a494e3dee2bd4d55af815f0978824799b31f546d0090fd3d27', '5b5853525d693b7408a6168b877d131934dd1d001d124d5edcb70175b1e3253d39203b9d1490e11b', 0, '2019-05-05 03:15:09'), ('de807ad50535f2215ffbdc4a150f5d882e50f46f10421bb3db0fd69cb1617b0422a735396de788fc', '3daf19418d57de0c06c0a0951bc660ad8eca6b69dd3ed09ce12a2aacb57fd143081dd442a7d95e88', 0, '2019-05-04 19:42:18'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `pedido` -- CREATE TABLE `pedido` ( `id` int(10) UNSIGNED NOT NULL, `id_carrito` int(11) NOT NULL, `id_usuario` int(11) NOT NULL, `id_direccion` int(11) NOT NULL, `fecha` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `id_tarjeta` int(11) 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; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `personalinformations` -- CREATE TABLE `personalinformations` ( `id` int(10) UNSIGNED NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `career` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `birthday` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `telephone` int(11) NOT NULL, `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `matricula` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `productos` -- CREATE TABLE `productos` ( `id` int(10) UNSIGNED NOT NULL, `producto` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `precio` int(11) NOT NULL, `imagen` varchar(191) 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; -- -- Volcado de datos para la tabla `productos` -- INSERT INTO `productos` (`id`, `producto`, `descripcion`, `precio`, `imagen`, `remember_token`, `created_at`, `updated_at`) VALUES (2, 'Funko pop Tracer', 'Funko del personaje de Overwatch', 300, 'C:\\imagenes\\1.jpg', NULL, NULL, NULL), (3, 'Funko pop Mai', 'Funko del personaje de Overwatch', 300, 'C:\\imagenes\\2.jpg', NULL, NULL, NULL), (4, 'Figura Goku', 'Figura de coleccion', 600, 'C:\\imagenes\\3.jpg', NULL, NULL, NULL), (5, 'Figura Capitan America', 'Figura de coleccion', 600, 'C:\\imagenes\\4.jpg', NULL, NULL, NULL), (6, 'Playera Zelda', 'Playera ofical de nintendo', 300, 'C:\\imagenes\\5.jpg', NULL, NULL, NULL), (7, 'Assesins Creed: Odissey', 'Juego fisico', 1200, 'C:\\imagenes\\6.jpg', NULL, NULL, NULL), (8, '<NAME>', 'Funko del personaje de Overwatch', 300, 'C:\\imagenes\\7.jpg', NULL, NULL, NULL), (9, 'Call Of Duty Black ops 4', 'Juego digital', 300, 'C:\\imagenes\\8.jpg', NULL, NULL, NULL), (10, 'Devil May cry 5 Delux edition', 'Edicion especial', 2200, 'C:\\imagenes\\9.jpg', NULL, NULL, NULL), (11, 'Hitman Gold Edition', 'Edición especial del juego Hitman digital', 2200, 'C:\\imagenes\\10.jpg', '', NULL, NULL), (12, 'Just cause 4 gold edition', 'Edicion de coleccionista de Just cause 4', 2200, 'C:\\imagenes\\11.jpg', NULL, NULL, NULL), (13, 'Minecraft', 'Juego fisico', 600, 'C:\\imagenes\\12.jpg', NULL, NULL, NULL), (14, 'Playera <NAME>', 'Prayera oficial de nintendo', 300, 'C:\\imagenes\\13.jpg', NULL, NULL, NULL), (15, 'Narito Strike', 'Juego digital', 800, 'C:\\imagenes\\14.jpg', NULL, NULL, NULL), (16, 'Playera Oficial de Origen', 'Playera oficial del equipo de Esports', 300, 'C:\\imagenes\\15.png', NULL, NULL, NULL), (17, '<NAME>', 'Funko del personaje de overwatch', 300, 'C:\\imagenes\\16.jpg', NULL, NULL, NULL), (18, 'Playera Fnatic', 'Playera oficial del equipo de Esports', 300, 'C:\\imagenes\\17.png', NULL, NULL, NULL), (19, 'Rainbow Six', 'Juego digital', 800, 'C:\\imagenes\\18.png', NULL, NULL, NULL), (20, 'Figura de coleccion Shikamaru', 'Figura de los personajes de Naruto', 600, 'C:\\imagenes\\19.jpg', NULL, NULL, NULL), (21, 'Red Dead Redemption 2', 'Juego fisico', 1300, 'C:\\imagenes\\20.jpg', NULL, NULL, NULL), (22, 'Resident Evil 2 Remake', 'Juego Digital', 1300, 'C:\\imagenes\\21.jpg', NULL, NULL, NULL), (23, 'Shadow of the tomb rider', 'Jugo fisico', 1300, 'C:\\imagenes\\22.jpg', '', NULL, NULL), (24, 'Funko pop Sombra ', 'Funko del personaje de overwatch', 300, 'C:\\imagenes\\23.png', NULL, NULL, NULL), (25, 'South Park: Fractured but hole', 'Juego fisico', 800, 'C:\\imagenes\\24.jpg', '', NULL, NULL), (26, 'Halo: Master chief collection', 'Paquete de halo', 800, 'C:\\imagenes\\25.jpg', '', NULL, NULL), (27, 'Playera TSM', 'Playera oficial del equipo Team SoloMid', 800, 'dffasdasdasdf', NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `tarjetas` -- CREATE TABLE `tarjetas` ( `id` int(10) UNSIGNED NOT NULL, `id_usuario` int(11) NOT NULL, `numero` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `tipo` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `banco` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `cvv` int(11) NOT NULL, `expiracion` varchar(191) 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; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `score` int(11) 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; -- -- Volcado de datos para la tabla `users` -- INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `score`, `remember_token`, `created_at`, `updated_at`) VALUES (1, '<NAME>', '<EMAIL>', '2019-04-05 01:34:31', '$2y$10$HqoP0PnROLu.Vblv5MrZxuMrjm6bJI25LlQ9IIHI9djvb3S1/vZuC', 0, '5SpJyspsbF', '2019-04-05 01:34:31', '2019-04-05 01:34:31'); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `carritos` -- ALTER TABLE `carritos` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `direccion` -- ALTER TABLE `direccion` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `oauth_access_tokens` -- ALTER TABLE `oauth_access_tokens` ADD PRIMARY KEY (`id`), ADD KEY `oauth_access_tokens_user_id_index` (`user_id`); -- -- Indices de la tabla `oauth_auth_codes` -- ALTER TABLE `oauth_auth_codes` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `oauth_clients` -- ALTER TABLE `oauth_clients` ADD PRIMARY KEY (`id`), ADD KEY `oauth_clients_user_id_index` (`user_id`); -- -- Indices de la tabla `oauth_personal_access_clients` -- ALTER TABLE `oauth_personal_access_clients` ADD PRIMARY KEY (`id`), ADD KEY `oauth_personal_access_clients_client_id_index` (`client_id`); -- -- Indices de la tabla `oauth_refresh_tokens` -- ALTER TABLE `oauth_refresh_tokens` ADD PRIMARY KEY (`id`), ADD KEY `oauth_refresh_tokens_access_token_id_index` (`access_token_id`); -- -- Indices de la tabla `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indices de la tabla `pedido` -- ALTER TABLE `pedido` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `personalinformations` -- ALTER TABLE `personalinformations` ADD PRIMARY KEY (`id`), ADD KEY `personalinformations_user_id_foreign` (`user_id`); -- -- Indices de la tabla `productos` -- ALTER TABLE `productos` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `tarjetas` -- ALTER TABLE `tarjetas` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `carritos` -- ALTER TABLE `carritos` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `direccion` -- ALTER TABLE `direccion` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT de la tabla `oauth_clients` -- ALTER TABLE `oauth_clients` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT de la tabla `oauth_personal_access_clients` -- ALTER TABLE `oauth_personal_access_clients` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT de la tabla `pedido` -- ALTER TABLE `pedido` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `personalinformations` -- ALTER TABLE `personalinformations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `productos` -- ALTER TABLE `productos` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28; -- -- AUTO_INCREMENT de la tabla `tarjetas` -- ALTER TABLE `tarjetas` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `personalinformations` -- ALTER TABLE `personalinformations` ADD CONSTRAINT `personalinformations_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>municipal-services/firenoc-calculator/migration/ddl/V20190613105655__firenoc_calc_alter_drop_notnull.sql ALTER TABLE eg_firenoc_billingslab ALTER COLUMN fromuom DROP NOT NULL; ALTER TABLE eg_firenoc_billingslab ALTER COLUMN touom DROP NOT NULL; ALTER TABLE eg_firenoc_billingslab ALTER COLUMN fromdate DROP NOT NULL; ALTER TABLE eg_firenoc_billingslab ALTER COLUMN todate DROP NOT NULL;
<filename>db/schema.sql CREATE TABLE schema_migrations (version text primary key); CREATE TABLE account ( id integer primary key, email text, access_token text not null, created_at integer not null default(strftime('%s', 'now')), updated_at integer , login text not null default ''); CREATE TABLE package ( id integer primary key, name text not null, url text not null, created_at integer not null default(strftime('%s', 'now')), updated_at integer ); CREATE TABLE binding ( id integer primary key, name text not null, docstring text, package_id integer references package(id), created_at integer not null default(strftime('%s', 'now')), updated_at integer ); CREATE TABLE example ( id integer primary key, body text not null, binding_id integer not null references binding(id), account_id integer not null references account(id), created_at integer not null default(strftime('%s', 'now')), updated_at integer ); CREATE TABLE link ( source integer not null references binding(id), target integer not null references binding(id), PRIMARY KEY (source, target) );
<gh_stars>100-1000 IF db_id('soci_test') IS NULL BEGIN CREATE DATABASE [soci_test] END;
<filename>@api/db/migrations/committed/000069.sql --! Previous: sha1:e697823e3c8178ed1aa4095792b331704066e97f --! Hash: sha1:a4794b16db9f0b1c90958487d4867b95950e0f6b --! split: 1-current.sql -- Enter migration here CREATE OR REPLACE VIEW public_check_ins AS SELECT id, rating, review, item_id, author_id, check_in_date, location FROM app_public.check_ins WHERE is_public IS TRUE;
<reponame>afermon/TuBus CREATE TABLE [dbo].[TBL_TRANSACCION]( [TRANSACCION_ID] [int] IDENTITY(1,1) NOT NULL, [MONTO] [int] NOT NULL, [TIPO] [nvarchar](45) NOT NULL, [CONCEPTO] [nvarchar](45) NOT NULL, [ESTADO] [nvarchar](45) NOT NULL, [TARJETA_ID] [nvarchar](50) NULL DEFAULT (NULL), [LINEA_ID] [int] NULL DEFAULT (NULL), [TERMINAL_ID] [int] NULL DEFAULT (NULL), [FECHA] DATETIME NOT NULL, CONSTRAINT [PK_TBL_TRANSACCION_TRANSACCION_ID] PRIMARY KEY CLUSTERED ([TRANSACCION_ID] ASC), CONSTRAINT [TBL_TRANSACCION$FK_TBL_TRANSACCION_TBL_LINEA1] FOREIGN KEY([LINEA_ID]) REFERENCES [dbo].[TBL_LINEA] ([LINEA_ID]), CONSTRAINT [TBL_TRANSACCION$FK_TBL_TRANSACCION_TBL_TARJETA1] FOREIGN KEY([TARJETA_ID]) REFERENCES [dbo].[TBL_TARJETA] ([CODIGO_UNICO]), CONSTRAINT [TBL_TRANSACCION$FK_TBL_TRANSACCION_TBL_TERMINAL1] FOREIGN KEY([TERMINAL_ID]) REFERENCES [dbo].[TBL_TERMINAL] ([TERMINAL_ID]) )
INSERT INTO library_mapping ( id, library_id, ir_location_id, central_server_id) VALUES ('07f97157-9cf9-44f2-b7aa-82e1f649cc83', '7c244444-ae7c-11eb-8529-0242ac130004', '26f7c8c5-f090-4742-b7c7-e08ed1cc4e67', 'edab6baf-c696-42b1-89bb-1bbb8759b0d2'), ('2d57c159-8b05-4c3b-97d9-7ddf0ead17a3', '7f58859e-ae7c-11eb-8529-0242ac130004', 'a1c1472f-67ec-4938-b5a8-f119e51ab79b', 'edab6baf-c696-42b1-89bb-1bbb8759b0d2'), ('b089157b-1c72-43e2-acd6-d6f2b312ba8c', '71fb3252-ae7c-11eb-8529-0242ac130004', '34c6a230-d264-44c5-90b3-6159ed2ebdc1', 'edab6baf-c696-42b1-89bb-1bbb8759b0d2'), ('95b72a44-d37a-4264-b377-7f4acbef87ca', '761451d4-ae7c-11eb-8529-0242ac130004', '34c6a230-d264-44c5-90b3-6159ed2ebdc1', 'edab6baf-c696-42b1-89bb-1bbb8759b0d2');
insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>'); insert into customer(email) values('<EMAIL>');
<gh_stars>0 CREATE DATABASE IF NOT EXISTS `lambda` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `lambda`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: lambda -- ------------------------------------------------------ -- Server version 5.7.21-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 `lambda_rad_institution` -- DROP TABLE IF EXISTS `lambda_rad_institution`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lambda_rad_institution` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(500) NOT NULL, `data_folder` varchar(1024) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lambda_rad_institution` -- LOCK TABLES `lambda_rad_institution` WRITE; /*!40000 ALTER TABLE `lambda_rad_institution` DISABLE KEYS */; INSERT INTO `lambda_rad_institution` VALUES (1,'Training','inst-1/'),(2,'Test','inst-2/'),(4,'Test2','inst-4/'),(5,'HN','inst-5/'),(6,'Abdominal','inst-6/'),(9,'HNSCC','inst-9/'),(10,'HNSCC3DCT','inst-10/'),(11,'Head-Neck-PET-CT','inst-11/'),(12,'HNSC-TCGA','inst-12/'),(13,'Head-Neck-Cetuximab','inst-13/'); /*!40000 ALTER TABLE `lambda_rad_institution` 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-02-07 10:04:42
CREATE INDEX IF NOT EXISTS idx_user_id_state ON shared.propertyproposal (user_id, state)
-- This file and its contents are licensed under the Apache License 2.0. -- Please see the included NOTICE for copyright information and -- LICENSE-APACHE for a copy of the license. -- We drop the telemetry function here since we have a non-telemetry -- build and the function might exist. DROP FUNCTION IF EXISTS @extschema@.get_telemetry_report; -- We delete the telemetry job since this is a non-telemetry build. DELETE FROM _timescaledb_config.bgw_job WHERE id = 1;
<reponame>buzden/jirm SELECT * from test_bean WHERE stringProp like '%Adam%' -- {name} LIMIT 1 -- {limit}
CREATE TABLE {$NAMESPACE}_drydock.drydock_command ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, authorPHID VARBINARY(64) NOT NULL, targetPHID VARBINARY(64) NOT NULL, command VARCHAR(32) NOT NULL COLLATE {$COLLATE_TEXT}, isConsumed BOOL NOT NULL, dateCreated INT UNSIGNED NOT NULL, dateModified INT UNSIGNED NOT NULL, KEY `key_target` (targetPHID, isConsumed) ) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
<reponame>yinyuecheng1/code-org<filename>aws/redshift/functions/miles_from_lat_lng.sql<gh_stars>100-1000 -- takes two pairs of latitude/longitude and returns distance in miles between them. CREATE FUNCTION miles_from_lat_lng (orig_lat float, orig_long float, dest_lat float, dest_long float) RETURNS float STABLE AS $$ import math r = 3963.1676 phi_orig = math.radians(orig_lat) phi_dest = math.radians(dest_lat) delta_lat = math.radians(dest_lat - orig_lat) delta_long = math.radians(dest_long - orig_long) a = math.sin(delta_lat/2) * math.sin(delta_lat/2) + math.cos(phi_orig) \ * math.cos(phi_dest) * math.sin(delta_long/2) * math.sin(delta_long/2) c = 2 * math.atan2(math.sqrt(a), math.sqrt(1 - a)) d = r * c return d $$ LANGUAGE plpythonu ;
-- migrations/1623858428-gateway_mode_rename.sql -- :up alter table gateways drop column mode; alter table gateway_inventory drop column mode; drop type if exists gateway_mode; create type gateway_mode as enum ( 'full', 'light', 'dataonly' ); alter table gateways add column mode gateway_mode; alter table gateway_inventory add column mode gateway_mode; update gateway_inventory SET mode = 'full';
<reponame>Komzpa/postgrespro \set VERBOSITY terse CREATE EXTENSION pg_pathman; CREATE SCHEMA fkeys; /* Check primary keys generation */ CREATE TABLE fkeys.test_ref(comment TEXT UNIQUE); INSERT INTO fkeys.test_ref VALUES('test'); CREATE TABLE fkeys.test_fkey( id INT NOT NULL, comment TEXT, FOREIGN KEY (comment) REFERENCES fkeys.test_ref(comment)); INSERT INTO fkeys.test_fkey SELECT generate_series(1, 1000), 'test'; SELECT create_range_partitions('fkeys.test_fkey', 'id', 1, 100); INSERT INTO fkeys.test_fkey VALUES(1, 'wrong'); INSERT INTO fkeys.test_fkey VALUES(1, 'test'); SELECT drop_partitions('fkeys.test_fkey'); SELECT create_hash_partitions('fkeys.test_fkey', 'id', 10); INSERT INTO fkeys.test_fkey VALUES(1, 'wrong'); INSERT INTO fkeys.test_fkey VALUES(1, 'test'); SELECT drop_partitions('fkeys.test_fkey'); DROP SCHEMA fkeys CASCADE; DROP EXTENSION pg_pathman CASCADE;
<gh_stars>1-10 -- COLUMN: msec -> when_msec CREATE TABLE `{table}` ( `id` integer unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT, `when` timestamp NOT NULL, `when_msec` smallint NOT NULL DEFAULT 0, `events` integer unsigned NULL, `server` integer unsigned NULL, `application` varchar(64) NOT NULL, `context` varchar(62) NULL, `type` varchar(24), `fatal` tinyint unsigned NOT NULL DEFAULT 0, `message` text NOT NULL DEFAULT '', `file` text NULL, `line` integer NULL, `data` blob NULL, `backtrace` blob NULL, INDEX when (`when`) );
<reponame>Nate-Wessel/modal-hierarchy ALTER TABLE oxford_nodes ADD COLUMN geom geometry(POINT,4326); UPDATE oxford_nodes SET geom = ST_SetSRID( ST_MakePoint(lon/10000000.0,lat/10000000.0), 4326 );
<filename>data-raw/sql/relationship.sql CREATE TABLE relationship ( relationship_id VARCHAR(20) NOT NULL, relationship_name VARCHAR(255) NOT NULL, is_hierarchical VARCHAR(1) NOT NULL, defines_ancestry VARCHAR(1) NOT NULL, reverse_relationship_id VARCHAR(20) NOT NULL, relationship_concept_id INTEGER NOT NULL ) ;
CREATE OR REPLACE TRIGGER DELETE_EMRPRESA BEFORE DELETE ON EMPRESA_TRANSPORTES FOR EACH ROW BEGIN INSERT INTO LOG_DELETE(DELETE_VALUES, TYPE, INSERT_AT)VALUES(''|| :old.ID||','|| :old.NOMBRE||','|| :old.TELEFONO||','|| :old.DIRECCION||','|| :old.CREATED_AT||','|| :old.UPDATED_AT, 'Empresa de Tansportes', SYSDATE); END;
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50726 Source Host : localhost:3306 Source Schema : admin_base Target Server Type : MySQL Target Server Version : 50726 File Encoding : 65001 Date: 17/02/2021 20:42:35 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for admin_dept -- ---------------------------- DROP TABLE IF EXISTS `admin_dept`; CREATE TABLE `admin_dept` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门ID', `parent_id` bigint(20) NOT NULL COMMENT '上级部门ID', `dept_name` varchar(100) NOT NULL COMMENT '部门名称', `order_num` bigint(20) DEFAULT NULL COMMENT '排序', `created_at` datetime DEFAULT NULL COMMENT '创建时间', `updated_at` datetime DEFAULT NULL COMMENT '修改时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='部门表'; -- ---------------------------- -- Records of admin_dept -- ---------------------------- BEGIN; INSERT INTO `admin_dept` VALUES (1, 0, '开发部', 1, '2019-06-14 20:56:41', NULL); INSERT INTO `admin_dept` VALUES (2, 1, '开发一部', 1, '2019-06-14 20:58:46', NULL); INSERT INTO `admin_dept` VALUES (3, 1, '开发二部', 2, '2019-06-14 20:58:56', NULL); INSERT INTO `admin_dept` VALUES (4, 0, '采购部', 2, '2019-06-14 20:59:56', NULL); INSERT INTO `admin_dept` VALUES (5, 0, '财务部', 3, '2019-06-14 21:00:08', NULL); INSERT INTO `admin_dept` VALUES (6, 0, '销售部', 4, '2019-06-14 21:00:15', NULL); INSERT INTO `admin_dept` VALUES (7, 0, '工程部', 5, '2019-06-14 21:00:42', NULL); INSERT INTO `admin_dept` VALUES (8, 0, '行政部', 6, '2019-06-14 21:00:49', NULL); INSERT INTO `admin_dept` VALUES (9, 0, '人力资源部', 8, '2019-06-14 21:01:14', '2019-06-14 21:01:34'); INSERT INTO `admin_dept` VALUES (10, 0, '系统部', 7, '2019-06-14 21:01:31', NULL); COMMIT; -- ---------------------------- -- Table structure for admin_eximport -- ---------------------------- DROP TABLE IF EXISTS `admin_eximport`; CREATE TABLE `admin_eximport` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `field1` varchar(20) NOT NULL COMMENT '字段1', `field2` int(11) NOT NULL COMMENT '字段2', `field3` varchar(100) NOT NULL COMMENT '字段3', `created_at` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Excel导入导出测试'; -- ---------------------------- -- Records of admin_eximport -- ---------------------------- BEGIN; INSERT INTO `admin_eximport` VALUES (1, '字段1', 1, '<EMAIL>', '2019-06-13 03:14:06'); INSERT INTO `admin_eximport` VALUES (2, '字段1', 1, '<EMAIL>', '2019-07-12 15:18:18'); INSERT INTO `admin_eximport` VALUES (3, '1122', 333, '<EMAIL>', '2019-07-12 15:18:18'); COMMIT; -- ---------------------------- -- Table structure for admin_generator_config -- ---------------------------- DROP TABLE IF EXISTS `admin_generator_config`; CREATE TABLE `admin_generator_config` ( `id` int(11) NOT NULL COMMENT '主键', `author` varchar(20) NOT NULL COMMENT '作者', `base_package` varchar(50) NOT NULL COMMENT '基础包名', `entity_package` varchar(20) NOT NULL COMMENT 'entity文件存放路径', `mapper_package` varchar(20) NOT NULL COMMENT 'mapper文件存放路径', `mapper_xml_package` varchar(20) NOT NULL COMMENT 'mapper xml文件存放路径', `service_package` varchar(20) NOT NULL COMMENT 'servcie文件存放路径', `service_impl_package` varchar(20) NOT NULL COMMENT 'serviceImpl文件存放路径', `controller_package` varchar(20) NOT NULL COMMENT 'controller文件存放路径', `is_trim` char(1) NOT NULL COMMENT '是否去除前缀 1是 0否', `trim_value` varchar(10) DEFAULT NULL COMMENT '前缀内容', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='代码生成配置表'; -- ---------------------------- -- Records of admin_generator_config -- ---------------------------- BEGIN; INSERT INTO `admin_generator_config` VALUES (1, 'AdminGenerator', 'io.webapp.gen', 'entity', 'mapper', 'mapper', 'service', 'service.impl', 'controller', '1', 't_'); COMMIT; -- ---------------------------- -- Table structure for admin_job -- ---------------------------- DROP TABLE IF EXISTS `admin_job`; CREATE TABLE `admin_job` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务id', `bean_name` varchar(50) NOT NULL COMMENT 'spring bean名称', `method_name` varchar(50) NOT NULL COMMENT '方法名', `params` varchar(50) DEFAULT NULL COMMENT '参数', `cron_expression` varchar(20) NOT NULL COMMENT 'cron表达式', `status` char(2) NOT NULL COMMENT '任务状态 0:正常 1:暂停', `remark` varchar(50) DEFAULT NULL COMMENT '备注', `created_at` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='定时任务表'; -- ---------------------------- -- Records of admin_job -- ---------------------------- BEGIN; INSERT INTO `admin_job` VALUES (1, 'testTask', 'test', 'hello', '0/5 * * * * ?', '1', '有参任务调度测试~~', '2018-02-24 16:26:14'); INSERT INTO `admin_job` VALUES (2, 'testTask', 'test1', NULL, '0/10 * * * * ?', '1', '无参任务调度测试', '2018-02-24 17:06:23'); INSERT INTO `admin_job` VALUES (3, 'testTask', 'test', 'hello world', '0/1 * * * * ?', '1', '有参任务调度测试,每隔一秒触发', '2018-02-26 09:28:26'); INSERT INTO `admin_job` VALUES (11, 'testTask', 'test2', NULL, '0/5 * * * * ?', '1', '测试异常', '2018-02-26 11:15:30'); COMMIT; -- ---------------------------- -- Table structure for admin_job_log -- ---------------------------- DROP TABLE IF EXISTS `admin_job_log`; CREATE TABLE `admin_job_log` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务日志id', `job_id` bigint(20) NOT NULL COMMENT '任务id', `bean_name` varchar(100) NOT NULL COMMENT 'spring bean名称', `method_name` varchar(100) NOT NULL COMMENT '方法名', `params` varchar(200) DEFAULT NULL COMMENT '参数', `status` char(2) NOT NULL COMMENT '任务状态 0:成功 1:失败', `error` text COMMENT '失败信息', `times` decimal(11,0) DEFAULT NULL COMMENT '耗时(单位:毫秒)', `created_at` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='调度日志表'; -- ---------------------------- -- Records of admin_job_log -- ---------------------------- BEGIN; INSERT INTO `admin_job_log` VALUES (1, 11, 'testTask', 'test2', NULL, '1', 'java.lang.NoSuchMethodException: io.webapp.job.task.TestTask.test2()', 2, '2021-02-17 20:39:37'); COMMIT; -- ---------------------------- -- Table structure for admin_log -- ---------------------------- DROP TABLE IF EXISTS `admin_log`; CREATE TABLE `admin_log` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '日志ID', `username` varchar(50) DEFAULT NULL COMMENT '操作用户', `operation` text COMMENT '操作内容', `time` decimal(11,0) DEFAULT NULL COMMENT '耗时', `method` text COMMENT '操作方法', `params` text COMMENT '方法参数', `ip` varchar(64) DEFAULT NULL COMMENT '操作者IP', `created_at` datetime DEFAULT NULL COMMENT '创建时间', `location` varchar(50) DEFAULT NULL COMMENT '操作地点', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='操作日志表'; -- ---------------------------- -- Records of admin_log -- ---------------------------- BEGIN; INSERT INTO `admin_log` VALUES (1, 'admin', '修改用户', 28, 'io.webapp.system.controller.UserController.updateUser()', ' user: \"User(userId=3, username=null, password=<PASSWORD>, deptId=4, email=<EMAIL>, mobile=17711111111, status=0, createdAt=null, updatedAt=Sun May 17 17:32:55 CST 2020, lastLoginTime=null, sex=1, avatar=null, theme=null, isTab=null, description=由于公款私用,已被封禁。, deptName=null, createTimeFrom=null, createTimeTo=null, roleId=2, roleName=null)\"', '127.0.0.1', '2020-05-17 17:32:55', '内网IP|0|0|内网IP|内网IP'); INSERT INTO `admin_log` VALUES (2, 'admin', '修改用户', 58, 'io.webapp.system.controller.UserController.updateUser()', ' user: \"User(userId=3, username=null, password=<PASSWORD>, deptId=4, email=<EMAIL>, mobile=18611619885, status=0, createdAt=null, updatedAt=Mon Feb 15 23:09:00 CST 2021, lastLoginTime=null, sex=1, avatar=null, theme=null, isTab=null, description=由于公款私用,已被封禁。, deptName=null, createTimeFrom=null, createTimeTo=null, roleId=2, roleName=null)\"', '127.0.0.1', '2021-02-15 23:09:01', '内网IP|0|0|内网IP|内网IP'); INSERT INTO `admin_log` VALUES (3, 'admin', '修改用户', 11, 'io.webapp.system.controller.UserController.updateUser()', ' user: \"User(userId=3, username=null, password=<PASSWORD>, deptId=4, email=<EMAIL>, mobile=18611619885, status=0, createdAt=null, updatedAt=Mon Feb 15 23:09:45 CST 2021, lastLoginTime=null, sex=1, avatar=null, theme=null, isTab=null, description=由于公款私用,已被封禁。, deptName=null, createTimeFrom=null, createTimeTo=null, roleId=78, roleName=null)\"', '127.0.0.1', '2021-02-15 23:09:46', '内网IP|0|0|内网IP|内网IP'); INSERT INTO `admin_log` VALUES (4, 'admin', '修改角色', 58, 'io.webapp.system.controller.RoleController.updateRole()', ' role: \"Role(roleId=79, roleName=跑批人员, remark=负责任务调度跑批模块, createdAt=null, updatedAt=Wed Feb 17 00:24:38 CST 2021, menuIds=2,101,102,103,104,105,106,107,108,173,109,110,174)\"', '127.0.0.1', '2021-02-17 00:24:38', '内网IP|0|0|内网IP|内网IP'); INSERT INTO `admin_log` VALUES (5, 'admin', '新增菜单/按钮', 21, 'io.webapp.system.controller.MenuController.addMenu()', ' menu: \"Menu(menuId=176, parentId=115, menuName=数据权限, url=/others/datapermission, perms=others:datapermission, icon=layui-icon-bank, type=0, orderNum=3, createdAt=Wed Feb 17 01:40:46 CST 2021, updatedAt=null)\"', '127.0.0.1', '2021-02-17 01:40:46', '内网IP|0|0|内网IP|内网IP'); INSERT INTO `admin_log` VALUES (6, 'admin', '修改菜单/按钮', 30, 'io.webapp.system.controller.MenuController.updateMenu()', ' menu: \"Menu(menuId=176, parentId=115, menuName=数据权限, url=/others/datapermission, perms=others:datapermission, icon=layui-icon-bank, type=0, orderNum=5, createdAt=null, updatedAt=Wed Feb 17 01:42:38 CST 2021)\"', '127.0.0.1', '2021-02-17 01:42:39', '内网IP|0|0|内网IP|内网IP'); INSERT INTO `admin_log` VALUES (7, 'admin', '修改角色', 55, 'io.webapp.system.controller.RoleController.updateRole()', ' role: \"Role(roleId=1, roleName=系统管理员, remark=系统管理员,拥有所有操作权限 ^_^, createdAt=null, updatedAt=Wed Feb 17 01:42:59 CST 2021, menuIds=1,3,11,12,13,160,161,4,14,15,16,162,5,17,18,19,163,6,20,21,22,164,2,8,23,10,24,170,136,171,172,127,128,129,130,131,101,102,103,104,105,106,107,108,173,109,110,174,137,138,165,139,166,175,115,132,133,135,134,126,159,116,117,119,120,121,122,123,118,125,167,168,169,176)\"', '127.0.0.1', '2021-02-17 01:42:59', '内网IP|0|0|内网IP|内网IP'); INSERT INTO `admin_log` VALUES (8, 'admin', '修改用户', 41, 'io.webapp.system.controller.UserController.updateUser()', NULL, '127.0.0.1', '2021-02-17 02:51:22', '内网IP|0|0|内网IP|内网IP'); INSERT INTO `admin_log` VALUES (9, 'admin', '修改用户', 20, 'io.webapp.system.controller.UserController.updateUser()', NULL, '127.0.0.1', '2021-02-17 02:53:38', '内网IP|0|0|内网IP|内网IP'); INSERT INTO `admin_log` VALUES (10, 'admin', '修改用户', 19, 'io.webapp.system.controller.UserController.updateUser()', NULL, '127.0.0.1', '2021-02-17 02:54:26', '内网IP|0|0|内网IP|内网IP'); INSERT INTO `admin_log` VALUES (11, 'admin', '执行定时任务', 8, 'io.webapp.job.controller.JobController.runJob()', NULL, '127.0.0.1', '2021-02-17 20:39:37', '内网IP|0|0|内网IP|内网IP'); COMMIT; -- ---------------------------- -- Table structure for admin_login_log -- ---------------------------- DROP TABLE IF EXISTS `admin_login_log`; CREATE TABLE `admin_login_log` ( `id` bigint(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `username` varchar(50) NOT NULL COMMENT '用户名', `login_time` datetime NOT NULL COMMENT '登录时间', `location` varchar(50) DEFAULT NULL COMMENT '登录地点', `ip` varchar(50) DEFAULT NULL COMMENT 'IP地址', `system` varchar(50) DEFAULT NULL COMMENT '操作系统', `browser` varchar(50) DEFAULT NULL COMMENT '浏览器', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='登录日志表'; -- ---------------------------- -- Records of admin_login_log -- ---------------------------- BEGIN; INSERT INTO `admin_login_log` VALUES (1, 'admin', '2020-05-17 17:31:40', '内网IP|0|0|内网IP|内网IP', '127.0.0.1', 'Mac OS X 10.15; ', 'Firefox 76'); INSERT INTO `admin_login_log` VALUES (2, 'admin', '2021-02-15 22:31:34', '内网IP|0|0|内网IP|内网IP', '127.0.0.1', 'Mac OS X 10.15; ', 'Firefox 85'); INSERT INTO `admin_login_log` VALUES (3, 'admin', '2021-02-15 22:32:38', '内网IP|0|0|内网IP|内网IP', '127.0.0.1', 'Mac OS X 10.15; ', 'Firefox 85'); INSERT INTO `admin_login_log` VALUES (4, 'admin', '2021-02-16 00:48:20', '内网IP|0|0|内网IP|内网IP', '127.0.0.1', 'Mac OS X 10.15; ', 'Firefox 85'); INSERT INTO `admin_login_log` VALUES (5, 'admin', '2021-02-16 01:02:21', '内网IP|0|0|内网IP|内网IP', '127.0.0.1', 'Mac OS X 10.15; ', 'Firefox 85'); INSERT INTO `admin_login_log` VALUES (6, 'admin', '2021-02-16 01:13:21', '内网IP|0|0|内网IP|内网IP', '127.0.0.1', 'Mac OS X 10.15; ', 'Firefox 85'); INSERT INTO `admin_login_log` VALUES (7, 'admin', '2021-02-16 01:20:13', '内网IP|0|0|内网IP|内网IP', '127.0.0.1', 'Mac OS X 10.15; ', 'Firefox 85'); INSERT INTO `admin_login_log` VALUES (8, 'admin', '2021-02-16 17:59:44', '内网IP|0|0|内网IP|内网IP', '127.0.0.1', 'Mac OS X 10.15; ', 'Firefox 85'); INSERT INTO `admin_login_log` VALUES (9, 'admin', '2021-02-16 20:18:53', '内网IP|0|0|内网IP|内网IP', '127.0.0.1', 'Mac OS X 10.15; ', 'Firefox 85'); INSERT INTO `admin_login_log` VALUES (10, 'admin', '2021-02-16 23:05:01', '内网IP|0|0|内网IP|内网IP', '127.0.0.1', 'Mac OS X 10.15; ', 'Firefox 85'); INSERT INTO `admin_login_log` VALUES (11, 'admin', '2021-02-16 23:07:15', '内网IP|0|0|内网IP|内网IP', '127.0.0.1', 'Mac OS X 10_15_7', 'Chrome 88'); INSERT INTO `admin_login_log` VALUES (12, 'admin', '2021-02-16 23:28:06', '内网IP|0|0|内网IP|内网IP', '127.0.0.1', 'Mac OS X 10.15; ', 'Firefox 85'); INSERT INTO `admin_login_log` VALUES (13, 'admin', '2021-02-17 02:47:50', '内网IP|0|0|内网IP|内网IP', '127.0.0.1', 'Mac OS X 10.15; ', 'Firefox 85'); INSERT INTO `admin_login_log` VALUES (14, 'admin', '2021-02-17 02:55:09', '内网IP|0|0|内网IP|内网IP', '127.0.0.1', 'Mac OS X 10.15; ', 'Firefox 85'); INSERT INTO `admin_login_log` VALUES (15, 'admin', '2021-02-17 18:11:36', '内网IP|0|0|内网IP|内网IP', '127.0.0.1', 'Mac OS X 10.15; ', 'Firefox 85'); INSERT INTO `admin_login_log` VALUES (16, 'admin', '2021-02-17 20:38:26', '内网IP|0|0|内网IP|内网IP', '127.0.0.1', 'Mac OS X 10.15; ', 'Firefox 85'); COMMIT; -- ---------------------------- -- Table structure for admin_menu -- ---------------------------- DROP TABLE IF EXISTS `admin_menu`; CREATE TABLE `admin_menu` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单/按钮ID', `parent_id` bigint(20) NOT NULL COMMENT '上级菜单ID', `menu_name` varchar(50) NOT NULL COMMENT '菜单/按钮名称', `url` varchar(50) DEFAULT NULL COMMENT '菜单URL', `perms` text COMMENT '权限标识', `icon` varchar(50) DEFAULT NULL COMMENT '图标', `type` char(2) NOT NULL COMMENT '类型 0菜单 1按钮', `order_num` bigint(20) DEFAULT NULL COMMENT '排序', `created_at` datetime NOT NULL COMMENT '创建时间', `updated_at` datetime DEFAULT NULL COMMENT '修改时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=177 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='菜单表'; -- ---------------------------- -- Records of admin_menu -- ---------------------------- BEGIN; INSERT INTO `admin_menu` VALUES (1, 0, '系统管理', NULL, NULL, 'layui-icon-setting', '0', 1, '2017-12-27 16:39:07', NULL); INSERT INTO `admin_menu` VALUES (2, 0, '系统监控', '', '', 'layui-icon-alert', '0', 2, '2017-12-27 16:45:51', '2019-06-13 11:20:40'); INSERT INTO `admin_menu` VALUES (3, 1, '用户管理', '/system/user', 'user:view', 'layui-icon-user', '0', 1, '2017-12-27 16:47:13', '2019-07-14 01:00:06'); INSERT INTO `admin_menu` VALUES (4, 1, '角色管理', '/system/role', 'role:view', 'layui-icon-solution', '0', 2, '2017-12-27 16:48:09', '2019-07-14 01:00:30'); INSERT INTO `admin_menu` VALUES (5, 1, '菜单管理', '/system/menu', 'menu:view', 'layui-icon-menu', '0', 3, '2017-12-27 16:48:57', '2019-07-14 01:00:49'); INSERT INTO `admin_menu` VALUES (6, 1, '部门管理', '/system/dept', 'dept:view', 'layui-icon-cluster', '0', 4, '2017-12-27 16:57:33', '2019-07-14 01:01:11'); INSERT INTO `admin_menu` VALUES (8, 2, '在线用户', '/monitor/online', 'online:view', 'layui-icon-team', '0', 1, '2017-12-27 16:59:33', '2019-07-14 01:52:12'); INSERT INTO `admin_menu` VALUES (10, 2, '系统日志', '/monitor/log', 'log:view', 'layui-icon-filedone', '0', 2, '2017-12-27 17:00:50', '2019-07-14 01:51:37'); INSERT INTO `admin_menu` VALUES (11, 3, '新增用户', NULL, 'user:add', NULL, '1', NULL, '2017-12-27 17:02:58', NULL); INSERT INTO `admin_menu` VALUES (12, 3, '修改用户', NULL, 'user:update', NULL, '1', NULL, '2017-12-27 17:04:07', NULL); INSERT INTO `admin_menu` VALUES (13, 3, '删除用户', NULL, 'user:delete', NULL, '1', NULL, '2017-12-27 17:04:58', NULL); INSERT INTO `admin_menu` VALUES (14, 4, '新增角色', NULL, 'role:add', NULL, '1', NULL, '2017-12-27 17:06:38', NULL); INSERT INTO `admin_menu` VALUES (15, 4, '修改角色', NULL, 'role:update', NULL, '1', NULL, '2017-12-27 17:06:38', NULL); INSERT INTO `admin_menu` VALUES (16, 4, '删除角色', NULL, 'role:delete', NULL, '1', NULL, '2017-12-27 17:06:38', NULL); INSERT INTO `admin_menu` VALUES (17, 5, '新增菜单', NULL, 'menu:add', NULL, '1', NULL, '2017-12-27 17:08:02', NULL); INSERT INTO `admin_menu` VALUES (18, 5, '修改菜单', NULL, 'menu:update', NULL, '1', NULL, '2017-12-27 17:08:02', NULL); INSERT INTO `admin_menu` VALUES (19, 5, '删除菜单', NULL, 'menu:delete', NULL, '1', NULL, '2017-12-27 17:08:02', NULL); INSERT INTO `admin_menu` VALUES (20, 6, '新增部门', NULL, 'dept:add', NULL, '1', NULL, '2017-12-27 17:09:24', NULL); INSERT INTO `admin_menu` VALUES (21, 6, '修改部门', NULL, 'dept:update', NULL, '1', NULL, '2017-12-27 17:09:24', NULL); INSERT INTO `admin_menu` VALUES (22, 6, '删除部门', NULL, 'dept:delete', NULL, '1', NULL, '2017-12-27 17:09:24', NULL); INSERT INTO `admin_menu` VALUES (23, 8, '踢出用户', NULL, 'user:kickout', NULL, '1', NULL, '2017-12-27 17:11:13', NULL); INSERT INTO `admin_menu` VALUES (24, 10, '删除日志', NULL, 'log:delete', NULL, '1', NULL, '2017-12-27 17:11:45', '2019-06-06 05:56:40'); INSERT INTO `admin_menu` VALUES (101, 0, '任务调度', NULL, NULL, 'layui-icon-time-circle', '0', 3, '2018-02-24 15:52:57', NULL); INSERT INTO `admin_menu` VALUES (102, 101, '定时任务', '/job/job', 'job:view', 'layui-icon-reloadtime', '0', 1, '2018-02-24 15:53:53', '2018-04-25 09:05:12'); INSERT INTO `admin_menu` VALUES (103, 102, '新增任务', NULL, 'job:add', '', '1', NULL, '2018-02-24 15:55:10', NULL); INSERT INTO `admin_menu` VALUES (104, 102, '修改任务', NULL, 'job:update', NULL, '1', NULL, '2018-02-24 15:55:53', NULL); INSERT INTO `admin_menu` VALUES (105, 102, '删除任务', NULL, 'job:delete', NULL, '1', NULL, '2018-02-24 15:56:18', NULL); INSERT INTO `admin_menu` VALUES (106, 102, '暂停任务', NULL, 'job:pause', NULL, '1', NULL, '2018-02-24 15:57:08', NULL); INSERT INTO `admin_menu` VALUES (107, 102, '恢复任务', NULL, 'job:resume', NULL, '1', NULL, '2018-02-24 15:58:21', NULL); INSERT INTO `admin_menu` VALUES (108, 102, '立即执行任务', NULL, 'job:run', NULL, '1', NULL, '2018-02-24 15:59:45', NULL); INSERT INTO `admin_menu` VALUES (109, 101, '调度日志', '/job/log', 'job:log:view', 'layui-icon-file-text', '0', 2, '2018-02-24 16:00:45', '2019-06-09 02:48:19'); INSERT INTO `admin_menu` VALUES (110, 109, '删除日志', NULL, 'job:log:delete', NULL, '1', NULL, '2018-02-24 16:01:21', NULL); INSERT INTO `admin_menu` VALUES (115, 0, '其他模块', NULL, NULL, 'layui-icon-gift', '0', 5, '2019-05-27 10:18:07', NULL); INSERT INTO `admin_menu` VALUES (116, 115, 'Apex图表', '', '', 'layui-icon-piechart', '0', 2, '2019-05-27 10:21:35', NULL); INSERT INTO `admin_menu` VALUES (117, 116, '线性图表', '/others/apex/line', 'apex:line:view', 'layui-icon-linechart', '0', 1, '2019-05-27 10:24:49', NULL); INSERT INTO `admin_menu` VALUES (118, 115, '高德地图', '/others/map', 'map:view', 'layui-icon-location', '0', 3, '2019-05-27 17:13:12', '2019-06-12 15:33:00'); INSERT INTO `admin_menu` VALUES (119, 116, '面积图表', '/others/apex/area', 'apex:area:view', 'layui-icon-areachart', '0', 2, '2019-05-27 18:49:22', NULL); INSERT INTO `admin_menu` VALUES (120, 116, '柱形图表', '/others/apex/column', 'apex:column:view', 'layui-icon-barchart', '0', 3, '2019-05-27 18:51:33', NULL); INSERT INTO `admin_menu` VALUES (121, 116, '雷达图表', '/others/apex/radar', 'apex:radar:view', 'layui-icon-pointmap', '0', 4, '2019-05-27 18:56:05', NULL); INSERT INTO `admin_menu` VALUES (122, 116, '条形图表', '/others/apex/bar', 'apex:bar:view', 'layui-icon-scan', '0', 5, '2019-05-27 18:57:02', NULL); INSERT INTO `admin_menu` VALUES (123, 116, '混合图表', '/others/apex/mix', 'apex:mix:view', 'layui-icon-sliders', '0', 6, '2019-05-27 18:58:04', '2019-06-06 02:55:23'); INSERT INTO `admin_menu` VALUES (125, 115, '导入导出', '/others/eximport', 'others:eximport:view', 'layui-icon-file-excel', '0', 4, '2019-05-27 19:01:57', '2019-06-13 01:20:14'); INSERT INTO `admin_menu` VALUES (126, 132, '系统图标', '/others/demo/icon', 'demo:icons:view', 'layui-icon-image', '0', 4, '2019-05-27 19:03:18', '2019-06-06 03:05:26'); INSERT INTO `admin_menu` VALUES (127, 2, '请求追踪', '/monitor/httptrace', 'httptrace:view', 'layui-icon-layout', '0', 6, '2019-05-27 19:06:38', '2019-07-14 01:54:06'); INSERT INTO `admin_menu` VALUES (128, 2, '系统信息', '', '', 'layui-icon-file-exception', '0', 7, '2019-05-27 19:08:23', '2019-07-14 01:55:54'); INSERT INTO `admin_menu` VALUES (129, 128, 'JVM信息', '/monitor/jvm', 'jvm:view', 'layui-icon-dashboard', '0', 1, '2019-05-27 19:08:50', '2019-07-14 01:56:12'); INSERT INTO `admin_menu` VALUES (130, 128, 'Tomcat信息', '/monitor/tomcat', 'tomcat:view', 'layui-icon-sever', '0', 2, '2019-05-27 19:09:26', '2019-07-14 01:56:54'); INSERT INTO `admin_menu` VALUES (131, 128, '服务器信息', '/monitor/server', 'server:view', 'layui-icon-database', '0', 3, '2019-05-27 19:10:07', '2019-07-14 01:57:50'); INSERT INTO `admin_menu` VALUES (132, 115, 'Layui组件', '', '', 'layui-icon-appstore', '0', 1, '2019-05-27 19:13:54', NULL); INSERT INTO `admin_menu` VALUES (133, 132, '表单组件', '/others/demo/form', 'demo:form:view', 'layui-icon-table', '0', 1, '2019-05-27 19:14:45', NULL); INSERT INTO `admin_menu` VALUES (134, 132, '常用工具', '/others/demo/tools', 'demo:tools:view', 'layui-icon-eye', '0', 3, '2019-05-29 10:11:22', '2019-06-12 13:21:27'); INSERT INTO `admin_menu` VALUES (135, 132, '表单组合', '/others/demo/form/group', 'demo:formgroup:view', 'layui-icon-build', '0', 2, '2019-05-29 10:16:19', NULL); INSERT INTO `admin_menu` VALUES (136, 2, '登录日志', '/monitor/loginlog', 'loginlog:view', 'layui-icon-login', '0', 3, '2019-05-29 15:56:15', '2019-07-14 01:53:15'); INSERT INTO `admin_menu` VALUES (137, 0, '代码生成', '', NULL, 'layui-icon-verticalright', '0', 4, '2019-06-03 15:35:58', NULL); INSERT INTO `admin_menu` VALUES (138, 137, '生成配置', '/generator/configure', 'generator:configure:view', 'layui-icon-wrench', '0', 1, '2019-06-03 15:38:36', NULL); INSERT INTO `admin_menu` VALUES (139, 137, '代码生成', '/generator/generator', 'generator:view', 'layui-icon-verticalright', '0', 2, '2019-06-03 15:39:15', '2019-06-13 14:31:38'); INSERT INTO `admin_menu` VALUES (159, 132, '其他组件', '/others/demo/others', 'others:demo:others', 'layui-icon-block', '0', 5, '2019-06-12 07:51:08', '2019-07-12 16:12:07'); INSERT INTO `admin_menu` VALUES (160, 3, '密码重置', NULL, 'user:password:reset', NULL, '1', NULL, '2019-06-13 08:40:13', NULL); INSERT INTO `admin_menu` VALUES (161, 3, '导出Excel', NULL, 'user:export', NULL, '1', NULL, '2019-06-13 08:40:34', NULL); INSERT INTO `admin_menu` VALUES (162, 4, '导出Excel', NULL, 'role:export', NULL, '1', NULL, '2019-06-13 14:29:00', '2019-06-13 14:29:11'); INSERT INTO `admin_menu` VALUES (163, 5, '导出Excel', NULL, 'menu:export', NULL, '1', NULL, '2019-06-13 14:29:32', NULL); INSERT INTO `admin_menu` VALUES (164, 6, '导出Excel', NULL, 'dept:export', NULL, '1', NULL, '2019-06-13 14:29:59', NULL); INSERT INTO `admin_menu` VALUES (165, 138, '修改配置', NULL, 'generator:configure:update', NULL, '1', NULL, '2019-06-13 14:32:09', '2019-06-13 14:32:20'); INSERT INTO `admin_menu` VALUES (166, 139, '生成代码', NULL, 'generator:generate', NULL, '1', NULL, '2019-06-13 14:32:51', NULL); INSERT INTO `admin_menu` VALUES (167, 125, '模板下载', NULL, 'eximport:template', NULL, '1', NULL, '2019-06-13 14:33:37', NULL); INSERT INTO `admin_menu` VALUES (168, 125, '导出Excel', NULL, 'eximport:export', NULL, '1', NULL, '2019-06-13 14:33:57', NULL); INSERT INTO `admin_menu` VALUES (169, 125, '导入Excel', NULL, 'eximport:import', NULL, '1', NULL, '2019-06-13 14:34:19', NULL); INSERT INTO `admin_menu` VALUES (170, 10, '导出Excel', NULL, 'log:export', NULL, '1', NULL, '2019-06-13 14:34:55', NULL); INSERT INTO `admin_menu` VALUES (171, 136, '删除日志', NULL, 'loginlog:delete', NULL, '1', NULL, '2019-06-13 14:35:27', '2019-06-13 14:36:08'); INSERT INTO `admin_menu` VALUES (172, 136, '导出Excel', NULL, 'loginlog:export', NULL, '1', NULL, '2019-06-13 14:36:26', NULL); INSERT INTO `admin_menu` VALUES (173, 102, '导出Excel', NULL, 'job:export', NULL, '1', NULL, '2019-06-13 14:37:25', NULL); INSERT INTO `admin_menu` VALUES (174, 109, '导出Excel', NULL, 'job:log:export', NULL, '1', NULL, '2019-06-13 14:37:46', '2019-06-13 14:38:02'); INSERT INTO `admin_menu` VALUES (175, 137, 'Swagger文档', '/generator/swagger', 'generator:swagger', 'layui-icon-bulb-fill', '0', 3, '2019-08-29 18:10:10', '2019-08-29 18:22:25'); INSERT INTO `admin_menu` VALUES (176, 115, '数据权限', '/others/datapermission', 'others:datapermission', 'layui-icon-bank', '0', 5, '2021-02-17 01:40:46', '2021-02-17 01:42:39'); COMMIT; -- ---------------------------- -- Table structure for admin_role -- ---------------------------- DROP TABLE IF EXISTS `admin_role`; CREATE TABLE `admin_role` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '角色ID', `role_name` varchar(100) NOT NULL COMMENT '角色名称', `remark` varchar(100) DEFAULT NULL COMMENT '角色描述', `created_at` datetime NOT NULL COMMENT '创建时间', `updated_at` datetime DEFAULT NULL COMMENT '修改时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=81 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='角色表'; -- ---------------------------- -- Records of admin_role -- ---------------------------- BEGIN; INSERT INTO `admin_role` VALUES (1, '系统管理员', '系统管理员,拥有所有操作权限 ^_^', '2019-06-14 16:23:11', '2021-02-17 01:42:59'); INSERT INTO `admin_role` VALUES (2, '注册账户', '注册账户,拥有查看,新增权限(新增用户除外)和导出Excel权限', '2019-06-14 16:00:15', '2019-06-14 20:47:47'); INSERT INTO `admin_role` VALUES (78, '系统监控员', '负责整个系统监控模块', '2019-06-14 20:50:07', NULL); INSERT INTO `admin_role` VALUES (79, '跑批人员', '负责任务调度跑批模块', '2019-06-14 20:51:02', '2021-02-17 00:24:38'); INSERT INTO `admin_role` VALUES (80, '开发人员', '拥有代码生成模块的权限', '2019-06-14 20:51:26', '2019-08-29 18:26:08'); COMMIT; -- ---------------------------- -- Table structure for admin_role_menu -- ---------------------------- DROP TABLE IF EXISTS `admin_role_menu`; CREATE TABLE `admin_role_menu` ( `role_id` bigint(20) NOT NULL COMMENT '角色ID', `menu_id` bigint(20) NOT NULL COMMENT '菜单/按钮ID' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='角色菜单关联表'; -- ---------------------------- -- Records of admin_role_menu -- ---------------------------- BEGIN; INSERT INTO `admin_role_menu` VALUES (2, 1); INSERT INTO `admin_role_menu` VALUES (2, 3); INSERT INTO `admin_role_menu` VALUES (2, 161); INSERT INTO `admin_role_menu` VALUES (2, 4); INSERT INTO `admin_role_menu` VALUES (2, 14); INSERT INTO `admin_role_menu` VALUES (2, 162); INSERT INTO `admin_role_menu` VALUES (2, 5); INSERT INTO `admin_role_menu` VALUES (2, 17); INSERT INTO `admin_role_menu` VALUES (2, 163); INSERT INTO `admin_role_menu` VALUES (2, 6); INSERT INTO `admin_role_menu` VALUES (2, 20); INSERT INTO `admin_role_menu` VALUES (2, 164); INSERT INTO `admin_role_menu` VALUES (2, 2); INSERT INTO `admin_role_menu` VALUES (2, 8); INSERT INTO `admin_role_menu` VALUES (2, 10); INSERT INTO `admin_role_menu` VALUES (2, 170); INSERT INTO `admin_role_menu` VALUES (2, 136); INSERT INTO `admin_role_menu` VALUES (2, 172); INSERT INTO `admin_role_menu` VALUES (2, 127); INSERT INTO `admin_role_menu` VALUES (2, 128); INSERT INTO `admin_role_menu` VALUES (2, 129); INSERT INTO `admin_role_menu` VALUES (2, 130); INSERT INTO `admin_role_menu` VALUES (2, 131); INSERT INTO `admin_role_menu` VALUES (2, 101); INSERT INTO `admin_role_menu` VALUES (2, 102); INSERT INTO `admin_role_menu` VALUES (2, 173); INSERT INTO `admin_role_menu` VALUES (2, 109); INSERT INTO `admin_role_menu` VALUES (2, 174); INSERT INTO `admin_role_menu` VALUES (2, 137); INSERT INTO `admin_role_menu` VALUES (2, 138); INSERT INTO `admin_role_menu` VALUES (2, 139); INSERT INTO `admin_role_menu` VALUES (2, 115); INSERT INTO `admin_role_menu` VALUES (2, 132); INSERT INTO `admin_role_menu` VALUES (2, 133); INSERT INTO `admin_role_menu` VALUES (2, 135); INSERT INTO `admin_role_menu` VALUES (2, 134); INSERT INTO `admin_role_menu` VALUES (2, 126); INSERT INTO `admin_role_menu` VALUES (2, 159); INSERT INTO `admin_role_menu` VALUES (2, 116); INSERT INTO `admin_role_menu` VALUES (2, 117); INSERT INTO `admin_role_menu` VALUES (2, 119); INSERT INTO `admin_role_menu` VALUES (2, 120); INSERT INTO `admin_role_menu` VALUES (2, 121); INSERT INTO `admin_role_menu` VALUES (2, 122); INSERT INTO `admin_role_menu` VALUES (2, 123); INSERT INTO `admin_role_menu` VALUES (2, 118); INSERT INTO `admin_role_menu` VALUES (2, 125); INSERT INTO `admin_role_menu` VALUES (2, 167); INSERT INTO `admin_role_menu` VALUES (2, 168); INSERT INTO `admin_role_menu` VALUES (2, 169); INSERT INTO `admin_role_menu` VALUES (78, 2); INSERT INTO `admin_role_menu` VALUES (78, 8); INSERT INTO `admin_role_menu` VALUES (78, 23); INSERT INTO `admin_role_menu` VALUES (78, 10); INSERT INTO `admin_role_menu` VALUES (78, 24); INSERT INTO `admin_role_menu` VALUES (78, 170); INSERT INTO `admin_role_menu` VALUES (78, 136); INSERT INTO `admin_role_menu` VALUES (78, 171); INSERT INTO `admin_role_menu` VALUES (78, 172); INSERT INTO `admin_role_menu` VALUES (78, 127); INSERT INTO `admin_role_menu` VALUES (78, 128); INSERT INTO `admin_role_menu` VALUES (78, 129); INSERT INTO `admin_role_menu` VALUES (78, 130); INSERT INTO `admin_role_menu` VALUES (78, 131); INSERT INTO `admin_role_menu` VALUES (80, 137); INSERT INTO `admin_role_menu` VALUES (80, 138); INSERT INTO `admin_role_menu` VALUES (80, 165); INSERT INTO `admin_role_menu` VALUES (80, 139); INSERT INTO `admin_role_menu` VALUES (80, 166); INSERT INTO `admin_role_menu` VALUES (80, 175); INSERT INTO `admin_role_menu` VALUES (79, 2); INSERT INTO `admin_role_menu` VALUES (79, 101); INSERT INTO `admin_role_menu` VALUES (79, 102); INSERT INTO `admin_role_menu` VALUES (79, 103); INSERT INTO `admin_role_menu` VALUES (79, 104); INSERT INTO `admin_role_menu` VALUES (79, 105); INSERT INTO `admin_role_menu` VALUES (79, 106); INSERT INTO `admin_role_menu` VALUES (79, 107); INSERT INTO `admin_role_menu` VALUES (79, 108); INSERT INTO `admin_role_menu` VALUES (79, 173); INSERT INTO `admin_role_menu` VALUES (79, 109); INSERT INTO `admin_role_menu` VALUES (79, 110); INSERT INTO `admin_role_menu` VALUES (79, 174); INSERT INTO `admin_role_menu` VALUES (1, 1); INSERT INTO `admin_role_menu` VALUES (1, 3); INSERT INTO `admin_role_menu` VALUES (1, 11); INSERT INTO `admin_role_menu` VALUES (1, 12); INSERT INTO `admin_role_menu` VALUES (1, 13); INSERT INTO `admin_role_menu` VALUES (1, 160); INSERT INTO `admin_role_menu` VALUES (1, 161); INSERT INTO `admin_role_menu` VALUES (1, 4); INSERT INTO `admin_role_menu` VALUES (1, 14); INSERT INTO `admin_role_menu` VALUES (1, 15); INSERT INTO `admin_role_menu` VALUES (1, 16); INSERT INTO `admin_role_menu` VALUES (1, 162); INSERT INTO `admin_role_menu` VALUES (1, 5); INSERT INTO `admin_role_menu` VALUES (1, 17); INSERT INTO `admin_role_menu` VALUES (1, 18); INSERT INTO `admin_role_menu` VALUES (1, 19); INSERT INTO `admin_role_menu` VALUES (1, 163); INSERT INTO `admin_role_menu` VALUES (1, 6); INSERT INTO `admin_role_menu` VALUES (1, 20); INSERT INTO `admin_role_menu` VALUES (1, 21); INSERT INTO `admin_role_menu` VALUES (1, 22); INSERT INTO `admin_role_menu` VALUES (1, 164); INSERT INTO `admin_role_menu` VALUES (1, 2); INSERT INTO `admin_role_menu` VALUES (1, 8); INSERT INTO `admin_role_menu` VALUES (1, 23); INSERT INTO `admin_role_menu` VALUES (1, 10); INSERT INTO `admin_role_menu` VALUES (1, 24); INSERT INTO `admin_role_menu` VALUES (1, 170); INSERT INTO `admin_role_menu` VALUES (1, 136); INSERT INTO `admin_role_menu` VALUES (1, 171); INSERT INTO `admin_role_menu` VALUES (1, 172); INSERT INTO `admin_role_menu` VALUES (1, 127); INSERT INTO `admin_role_menu` VALUES (1, 128); INSERT INTO `admin_role_menu` VALUES (1, 129); INSERT INTO `admin_role_menu` VALUES (1, 130); INSERT INTO `admin_role_menu` VALUES (1, 131); INSERT INTO `admin_role_menu` VALUES (1, 101); INSERT INTO `admin_role_menu` VALUES (1, 102); INSERT INTO `admin_role_menu` VALUES (1, 103); INSERT INTO `admin_role_menu` VALUES (1, 104); INSERT INTO `admin_role_menu` VALUES (1, 105); INSERT INTO `admin_role_menu` VALUES (1, 106); INSERT INTO `admin_role_menu` VALUES (1, 107); INSERT INTO `admin_role_menu` VALUES (1, 108); INSERT INTO `admin_role_menu` VALUES (1, 173); INSERT INTO `admin_role_menu` VALUES (1, 109); INSERT INTO `admin_role_menu` VALUES (1, 110); INSERT INTO `admin_role_menu` VALUES (1, 174); INSERT INTO `admin_role_menu` VALUES (1, 137); INSERT INTO `admin_role_menu` VALUES (1, 138); INSERT INTO `admin_role_menu` VALUES (1, 165); INSERT INTO `admin_role_menu` VALUES (1, 139); INSERT INTO `admin_role_menu` VALUES (1, 166); INSERT INTO `admin_role_menu` VALUES (1, 175); INSERT INTO `admin_role_menu` VALUES (1, 115); INSERT INTO `admin_role_menu` VALUES (1, 132); INSERT INTO `admin_role_menu` VALUES (1, 133); INSERT INTO `admin_role_menu` VALUES (1, 135); INSERT INTO `admin_role_menu` VALUES (1, 134); INSERT INTO `admin_role_menu` VALUES (1, 126); INSERT INTO `admin_role_menu` VALUES (1, 159); INSERT INTO `admin_role_menu` VALUES (1, 116); INSERT INTO `admin_role_menu` VALUES (1, 117); INSERT INTO `admin_role_menu` VALUES (1, 119); INSERT INTO `admin_role_menu` VALUES (1, 120); INSERT INTO `admin_role_menu` VALUES (1, 121); INSERT INTO `admin_role_menu` VALUES (1, 122); INSERT INTO `admin_role_menu` VALUES (1, 123); INSERT INTO `admin_role_menu` VALUES (1, 118); INSERT INTO `admin_role_menu` VALUES (1, 125); INSERT INTO `admin_role_menu` VALUES (1, 167); INSERT INTO `admin_role_menu` VALUES (1, 168); INSERT INTO `admin_role_menu` VALUES (1, 169); INSERT INTO `admin_role_menu` VALUES (1, 176); COMMIT; -- ---------------------------- -- Table structure for admin_user -- ---------------------------- DROP TABLE IF EXISTS `admin_user`; CREATE TABLE `admin_user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户ID', `username` varchar(50) NOT NULL COMMENT '用户名', `password` varchar(128) NOT NULL COMMENT '密码', `dept_id` bigint(20) DEFAULT NULL COMMENT '部门ID', `email` varchar(128) DEFAULT NULL COMMENT '邮箱', `mobile` varchar(20) DEFAULT NULL COMMENT '联系电话', `status` char(1) NOT NULL COMMENT '状态 0锁定 1有效', `created_at` datetime NOT NULL COMMENT '创建时间', `updated_at` datetime DEFAULT NULL COMMENT '修改时间', `last_login_time` datetime DEFAULT NULL COMMENT '最近访问时间', `sex` char(1) DEFAULT NULL COMMENT '性别 0男 1女 2保密', `is_tab` char(1) DEFAULT NULL COMMENT '是否开启tab,0关闭 1开启', `theme` varchar(10) DEFAULT NULL COMMENT '主题', `avatar` varchar(100) DEFAULT NULL COMMENT '头像', `description` varchar(100) DEFAULT NULL COMMENT '描述', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户表'; -- ---------------------------- -- Records of admin_user -- ---------------------------- BEGIN; INSERT INTO `admin_user` VALUES (1, 'admin', '5993868af946054ce518e4e9ab7ef939', 1, '<EMAIL>', '17788888888', '1', '2019-06-14 20:39:22', '2021-02-17 02:54:26', '2021-02-17 20:38:38', '0', '1', 'white', '87d8194bc9834e9f8f0228e9e530beb1.jpeg', '我是帅比作者。'); INSERT INTO `admin_user` VALUES (3, 'Reina', '1461afff857c02afbfb768aa3771503d', 4, '<EMAIL>', '18611619885', '0', '2019-06-14 21:07:38', '2021-02-15 23:09:46', '2019-06-14 21:08:26', '1', '1', 'black', '5997fedcc7bd4cffbd350b40d1b5b987.jpg', '由于公款私用,已被封禁。'); COMMIT; -- ---------------------------- -- Table structure for admin_user_role -- ---------------------------- DROP TABLE IF EXISTS `admin_user_role`; CREATE TABLE `admin_user_role` ( `user_id` bigint(20) NOT NULL COMMENT '用户ID', `role_id` bigint(20) NOT NULL COMMENT '角色ID' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户角色关联表'; -- ---------------------------- -- Records of admin_user_role -- ---------------------------- BEGIN; INSERT INTO `admin_user_role` VALUES (3, 78); INSERT INTO `admin_user_role` VALUES (1, 1); COMMIT; -- ---------------------------- -- Table structure for t_data_permission_test -- ---------------------------- DROP TABLE IF EXISTS `t_data_permission_test`; CREATE TABLE `t_data_permission_test` ( `FIELD1` varchar(20) NOT NULL, `FIELD2` varchar(20) NOT NULL, `FIELD3` varchar(20) NOT NULL, `FIELD4` varchar(20) NOT NULL, `DEPT_ID` int(11) NOT NULL, `CREATE_TIME` datetime NOT NULL, `ID` int(11) NOT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户权限测试'; -- ---------------------------- -- Records of t_data_permission_test -- ---------------------------- BEGIN; INSERT INTO `t_data_permission_test` VALUES ('小米', '小米10Pro', '4999', '珍珠白', 1, '2020-04-14 15:00:38', 1); INSERT INTO `t_data_permission_test` VALUES ('腾讯', '黑鲨游戏手机3', '3799', '铠甲灰', 2, '2020-04-14 15:01:36', 2); INSERT INTO `t_data_permission_test` VALUES ('华为', '华为P30', '3299', '天空之境', 1, '2020-04-14 15:03:11', 3); INSERT INTO `t_data_permission_test` VALUES ('华为', '华为P40Pro', '6488', '亮黑色', 3, '2020-04-14 15:04:31', 4); INSERT INTO `t_data_permission_test` VALUES ('vivo', 'Vivo iQOO 3', '3998', '拉力橙', 4, '2020-04-14 15:05:55', 5); INSERT INTO `t_data_permission_test` VALUES ('一加', '一加7T', '3199', '冰际蓝', 5, '2020-04-14 15:06:53', 6); INSERT INTO `t_data_permission_test` VALUES ('三星', '三星Galaxy S10', '4098', '浩玉白', 6, '2020-04-14 15:08:25', 7); INSERT INTO `t_data_permission_test` VALUES ('苹果', 'iPhone 11 pro max', '9198', '暗夜绿', 4, '2020-04-14 15:09:20', 8); COMMIT; -- ---------------------------- -- Table structure for t_user_data_permission -- ---------------------------- DROP TABLE IF EXISTS `t_user_data_permission`; CREATE TABLE `t_user_data_permission` ( `user_id` bigint(20) NOT NULL, `dept_id` bigint(20) NOT NULL, PRIMARY KEY (`user_id`,`dept_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户数据权限关联表'; -- ---------------------------- -- Records of t_user_data_permission -- ---------------------------- BEGIN; INSERT INTO `t_user_data_permission` VALUES (1, 1); INSERT INTO `t_user_data_permission` VALUES (1, 2); INSERT INTO `t_user_data_permission` VALUES (1, 3); INSERT INTO `t_user_data_permission` VALUES (2, 1); INSERT INTO `t_user_data_permission` VALUES (2, 2); INSERT INTO `t_user_data_permission` VALUES (3, 4); INSERT INTO `t_user_data_permission` VALUES (4, 5); COMMIT; -- ---------------------------- -- Function structure for findDeptChildren -- ---------------------------- DROP FUNCTION IF EXISTS `findDeptChildren`; delimiter ;; CREATE FUNCTION `findDeptChildren`(rootId INT) RETURNS varchar(4000) CHARSET utf8 BEGIN DECLARE sTemp VARCHAR(4000); DECLARE sTempChd VARCHAR(4000); SET sTemp = '$'; SET sTempChd = CAST(rootId as CHAR); WHILE sTempChd is not null DO SET sTemp = CONCAT(sTemp,',',sTempChd); SELECT GROUP_CONCAT(id) INTO sTempChd FROM admin_dept WHERE FIND_IN_SET(parent_id,sTempChd)>0; END WHILE; RETURN sTemp; END ;; delimiter ; -- ---------------------------- -- Function structure for findMenuChildren -- ---------------------------- DROP FUNCTION IF EXISTS `findMenuChildren`; delimiter ;; CREATE FUNCTION `findMenuChildren`(rootId INT) RETURNS varchar(4000) CHARSET utf8 BEGIN DECLARE sTemp VARCHAR(4000); DECLARE sTempChd VARCHAR(4000); SET sTemp = '$'; SET sTempChd = CAST(rootId as CHAR); WHILE sTempChd is not null DO SET sTemp = CONCAT(sTemp,',',sTempChd); SELECT GROUP_CONCAT(id) INTO sTempChd FROM admin_menu WHERE FIND_IN_SET(parent_id,sTempChd)>0; END WHILE; RETURN sTemp; END ;; delimiter ; SET FOREIGN_KEY_CHECKS = 1;
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 15-Fev-2021 às 08:06 -- Versão do servidor: 10.4.11-MariaDB -- versão do PHP: 7.3.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Banco de dados: `destinocerto` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `pacoteturistico` -- CREATE TABLE `pacoteturistico` ( `IdP` int(11) NOT NULL, `Nome` varchar(90) NOT NULL, `Origem` varchar(90) NOT NULL, `Destino` varchar(90) NOT NULL, `Saida` date NOT NULL, `Retorno` date NOT NULL, `Atrativos` varchar(90) NOT NULL, `usuario` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Extraindo dados da tabela `pacoteturistico` -- INSERT INTO `pacoteturistico` (`IdP`, `Nome`, `Origem`, `Destino`, `Saida`, `Retorno`, `Atrativos`, `usuario`) VALUES (1, 'Cidade do Rio de Janeiro', 'Vitória-ES', 'Rio de Janeiro-RJ', '2021-03-06', '2021-03-10', 'Cristo Redentor,Pão de Açucar e Arcos da Lapa', 1), (2, 'Cidade de Salvador', 'Vitória-ES', 'Salvador-BA', '2021-11-05', '2021-11-10', 'Pelourinho, Elevador Lacerda e Igreja de São Francisco', 2), (3, 'Cidade de Natal', 'Vitória-ES', 'Natal-RN', '2021-05-07', '2021-05-13', 'Dunas de Genipapu, Parrachos de Maracajaú e Praias de Pipa', 1); -- -------------------------------------------------------- -- -- Estrutura da tabela `usuario` -- CREATE TABLE `usuario` ( `Id` int(11) NOT NULL, `Nome` varchar(90) NOT NULL, `DataNascimento` date NOT NULL, `Login` varchar(90) NOT NULL, `Senha` varchar(90) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Extraindo dados da tabela `usuario` -- INSERT INTO `usuario` (`Id`, `Nome`, `DataNascimento`, `Login`, `Senha`) VALUES (1, '<NAME>', '1985-11-11', 'kellykawase', '<PASSWORD>'), (2, '<NAME>', '2021-02-09', 'jesuscristo', '123'); -- -- Índices para tabelas despejadas -- -- -- Índices para tabela `pacoteturistico` -- ALTER TABLE `pacoteturistico` ADD PRIMARY KEY (`IdP`), ADD KEY `usuario` (`usuario`); -- -- Índices para tabela `usuario` -- ALTER TABLE `usuario` ADD PRIMARY KEY (`Id`); -- -- AUTO_INCREMENT de tabelas despejadas -- -- -- AUTO_INCREMENT de tabela `pacoteturistico` -- ALTER TABLE `pacoteturistico` MODIFY `IdP` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT de tabela `usuario` -- ALTER TABLE `usuario` MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- Restrições para despejos de tabelas -- -- -- Limitadores para a tabela `pacoteturistico` -- ALTER TABLE `pacoteturistico` ADD CONSTRAINT `pacoteturistico_ibfk_1` FOREIGN KEY (`usuario`) REFERENCES `usuario` (`Id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>exps/news_seed_popularity/create_tbl.sql -- The sql creates tables used for the analysis in this folder. CREATE TABLE news_source ( site_name varchar(50), url varchar(50), twitter_handle PRIMARY KEY, follower_number integer, leaning varchar(10), sort integer twitter_id varchar(50) ); CREATE TABLE SAMPLED_T_ACCOUNTS2 ( user_id varchar(50) PRIMARY KEY, url_valence float ); -- hold tweets in one week published by users in SAMPLED_T_ACCOUNTS CREATE TABLE TWEET_FOR_REBUTTAL2_2019 ( tweet_id varchar(50) PRIMARY KEY, user_id varchar(50) NOT NULL, tweet_obj JSON NOT NULL, created_at timestamp NOT NULL, url_score numeric, hashtag_score numeric, resolved_urls TEXT [] ); CREATE TABLE CONN_REB22 ( twitter_user_id varchar(50), new_source_twitter_id varchar(50) );
-- Query for: 2. Spaced Used SELECT DB_NAME() AS DbName, name AS FileName, type_desc, size/128.0 AS CurrentSizeMB, size/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS INT)/128.0 AS FreeSpaceMB FROM sys.database_files WHERE type IN (0,1);
<gh_stars>10-100 -- file:btree_index.sql ln:77 expect:true insert into btree_tall_tbl select g, g::text || '_' || (select string_agg(md5(i::text), '_') from generate_series(1, 50) i) from generate_series(1, 100) g
<gh_stars>0 /* Warnings: - You are about to drop the column `workspaceId` on the `Membership` table. All the data in the column will be lost. - A unique constraint covering the columns `[workspaceSlug,userId]` on the table `Membership` will be added. If there are existing duplicate values, this will fail. - Added the required column `workspaceSlug` to the `Membership` table without a default value. This is not possible if the table is not empty. */ -- DropForeignKey ALTER TABLE "Membership" DROP CONSTRAINT "Membership_workspaceId_fkey"; -- DropIndex DROP INDEX "Membership.workspaceId_userId_unique"; -- AlterTable ALTER TABLE "Membership" DROP COLUMN "workspaceId", ADD COLUMN "workspaceSlug" TEXT NOT NULL; -- CreateIndex CREATE UNIQUE INDEX "Membership.workspaceSlug_userId_unique" ON "Membership"("workspaceSlug", "userId"); -- AddForeignKey ALTER TABLE "Membership" ADD FOREIGN KEY ("workspaceSlug") REFERENCES "Workspace"("slug") ON DELETE RESTRICT ON UPDATE CASCADE;
<filename>docs/2014/snippets/tsql/SQL15/replication/howto/tsql/createmergepubdynamic3.sql<gh_stars>1-10 :setvar Login N'REDMOND\glenga' :setvar Password N'<PASSWORD>' --<snippetsp_MergeDynamicPubPartitionManual> -- To avoid storing the login and password in the script file, the value -- is passed into SQLCMD as a scripting variable. For information about -- how to use scripting variables on the command line and in SQL Server -- Management Studio, see the "Executing Replication Scripts" section in -- the topic "Programming Replication Using System Stored Procedures". --Add a new merge publication. DECLARE @publicationdb AS sysname; DECLARE @publication AS sysname; DECLARE @table1 AS sysname; DECLARE @table2 AS sysname; DECLARE @filter AS sysname; DECLARE @schema_hr AS sysname; DECLARE @schema_sales AS sysname; SET @publicationdb = N'AdventureWorks2012'; SET @publication = N'AdvWorksSalesPersonMerge'; SET @table1 = N'Employee'; SET @table2 = N'SalesPerson'; SET @filter = N'SalesPerson_Employee'; SET @schema_hr = N'HumanResources'; SET @schema_sales = N'Sales'; USE [AdventureWorks2012]; -- Enable AdventureWorks2012 for merge replication. EXEC sp_replicationdboption @dbname = @publicationdb, @optname = N'merge publish', @value = N'true'; -- Create new merge publication. EXEC sp_addmergepublication @publication = @publication, @description = N'Merge publication of AdventureWorks2012.', @allow_subscriber_initiated_snapshot = N'false'; -- Create a new snapshot job for the publication, using the -- default schedule. Pass credentials at runtime using -- sqlcmd scripting variables. EXEC sp_addpublication_snapshot @publication = @publication, @job_login = $(Login), @job_password = $(Password); -- Add an article for the Employee table, -- which is horizontally partitioned using -- a parameterized row filter. EXEC sp_addmergearticle @publication = @publication, @article = @table1, @source_owner = @schema_hr, @source_object = @table1, @type = N'table', @description = 'contains employee information', @subset_filterclause = N'[LoginID] = HOST_NAME()'; -- Add an article for the SalesPerson table, -- which is partitioned based on a join filter. EXEC sp_addmergearticle @publication = @publication, @article = @table2, @source_owner = @schema_sales, @source_object = @table2, @type = N'table', @description = 'contains customer information'; -- Add a join filter between the two articles. EXEC sp_addmergefilter @publication = @publication, @article = @table1, @filtername = @filter, @join_articlename = @table2, @join_filterclause = N'[Employee].[BusinessEntityID] = [SalesPerson].[SalesPersonID]', @join_unique_key = 1, @filter_type = 1; GO --</snippetsp_MergeDynamicPubPartitionManual>
select * from person; select * from person where email = '<EMAIL>'; insert into donation(donationid, personid, amount, date) values (1,10,125.00, '10-14-2020') insert into donation(donationid, personid, amount, date) values (2,11,200.00,'10-15-2020'), (3,12,15.00,'10-15-2020'), (4,13,135.00,'10-16-2020'); select * from donation;
-- phpMyAdmin SQL Dump -- version 4.7.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: 2017-12-04 12:17:06 -- 服务器版本: 5.7.18-log -- PHP Version: 7.1.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `bookstore` -- -- -------------------------------------------------------- -- -- 表的结构 `{prefix}_picture` -- CREATE TABLE `{prefix}_picture` ( `id` int(11) NOT NULL, `primary_file_uri` varchar(255) NOT NULL DEFAULT '' COMMENT '本地路径', `ori_name` varchar(128) NOT NULL DEFAULT '' COMMENT '原始文件名', `save_name` varchar(64) NOT NULL DEFAULT '' COMMENT '保存文件名', `size` int(11) NOT NULL DEFAULT '0' COMMENT '文件大小(B)', `url` varchar(255) NOT NULL DEFAULT '' COMMENT '查看链接', `md5` char(32) NOT NULL COMMENT '文件md5', `sha1` char(40) NOT NULL DEFAULT '' COMMENT '文件 sha1编码', `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态', `create_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新时间', `type` char(32) NOT NULL COMMENT '图片', `ext` char(12) NOT NULL COMMENT '后缀' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Indexes for dumped tables -- -- -- Indexes for table `{prefix}_picture` -- ALTER TABLE `{prefix}_picture` ADD PRIMARY KEY (`id`); -- -- 在导出的表使用AUTO_INCREMENT -- -- -- 使用表AUTO_INCREMENT `{prefix}_picture` -- ALTER TABLE `{prefix}_picture` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<gh_stars>0 CREATE TABLE if not exists seller (id BIGINT auto_increment,fullName VARCHAR(500),username VARCHAR(500),password VARCHAR(500),address VARCHAR(500),age INT,email VARCHAR(500),phoneNumber VARCHAR(500) ,constraint seller_pk primary key (id)); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUE('<NAME>','Nicholas','8<EMAIL>','Canning Walk, 6380',26,'<EMAIL>','2-345-230-0176'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUE('<NAME>','Domenic','<PASSWORD>','Cephas Street, 2977',20,'<EMAIL>','0-412-857-6350'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUE('<NAME>','Kate','kv<PASSWORD>','Waite Tunnel, 7070',90,'<EMAIL>','0-878-713-1606'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUE('<NAME>','Julian','gd<PASSWORD>AsivR','Norfolk Avenue, 794',18,'<EMAIL>','7-073-406-0333'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUE('<NAME>','Colleen','OAxclrPOz0','Sundown Avenue, 2155',58,'<EMAIL>','0-300-166-3437'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUE('<NAME>','Charlotte','oVhiDlsmYX','Arbutus Way, 1793',96,'<EMAIL>','7-161-382-8842'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUE('<NAME>','Nancy','4TINM88obt','Lonsdale Grove, 39',72,'<EMAIL>','5-724-451-8260'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUE('<NAME>','Destiny','URpNdGe7uE','Maple Street, 7251',98,'<EMAIL>','8-523-840-4520'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUE('<NAME>','Eileen','7XF3ZQvxLi','Lexington Way, 319',39,'<EMAIL>','8-232-632-1571'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','George','9U9OHnJziS','Wakley Vale, 4750',79,'<EMAIL>','4-783-376-5750'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Brad','GjO9iulxIz','Carpenter Alley, 6712',26,'<EMAIL>','7-572-321-1715'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Julianna','iNj8Mk5dLk','Hampden Rue, 7087',30,'<EMAIL>','1-541-641-8173'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Doris','KQUnR4eq3i','Cobden Route, 3668',36,'<EMAIL>','5-084-887-2600'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Shelby','O3TvaeUE2S','Rail Avenue, 7553',95,'<EMAIL>','1-834-120-5423'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME> ','Liam','y35dUuFlxD','Durnford Hill, 1773',75,'<EMAIL>_Page <EMAIL>','1-763-711-2287'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Monica','DPMld4kRmy','Boldero Hill, 905',48,'<EMAIL>','1-380-043-4356'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Elisabeth','2aUm9IVjNw','Howard Lane, 2567',89,'<EMAIL>','1-715-746-1047'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Wade','L5BN5zOcX9','Beaumont Hill, 1331',30,'<EMAIL>','2-420-484-5536'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Clint','RkVUl41C6U','Lexington Rue, 4091',30,'<EMAIL>','3-488-234-1323'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Harry','GG63ssOxhT','Underwood Tunnel, 5751',96,'<EMAIL>','4-333-811-5281'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Bethany','ffbXN8rgbi','Wake Hill, 25',71,'<EMAIL>','6-415-608-1588'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Martin','kC3KyxyLtB','Enderby Road, 9332',85,'<EMAIL>','1-482-150-2644'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Rocco','BV<PASSWORD>','Wakley Hill, 7836',29,'<EMAIL>','0-161-633-3580'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Claire','RjWb9vIQ0d','Hampden Boulevard, 6697',28,'<EMAIL>','7-870-334-6458'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Leilani','6GVfhkMVIt','Castile Crossroad, 3175',41,'<EMAIL>','6-228-106-4880'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Carter','zlL1hn9Kkg','Coalecroft Avenue, 7616',25,'<EMAIL>','0-120-752-0773'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Meredith','fgZs35nctu','Bocking Way, 6932',75,'<EMAIL>','3-683-883-7512'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Gabriel','SGn9B3FCLh','Queen Hill, 4536',61,'<EMAIL>','8-541-468-0651'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Carl','ohaBcU8rpq','Dyott Boulevard, 4788',54,'<EMAIL>','4-713-165-7251'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Emery','vg4c3VIaES','Central Tunnel, 9382',86,'<EMAIL>','1-453-123-6488'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Mike','HbYP4DYAhL','Clarks Road, 7887',92,'<EMAIL>','6-620-368-8241'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Doug','YinPLx1q4h','West Street, 9066',48,'<EMAIL>','4-354-213-6334'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Aleksandra','3ODlxnWhsV','Enderby Road, 8315',76,'<EMAIL>','7-571-065-3611'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Melanie','U<EMAIL>jf','West Lane, 7192',38,'<EMAIL>','3-541-475-7315'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Noah','acr2AqVSDt','Arlington Hill, 403',42,'<EMAIL>','0-284-754-6347'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Maxwell','2fY6FTN0Ou','Edwin Alley, 5687',76,'<EMAIL>','7-241-125-3778'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Vera','3fHi0lKFNB','Thoresby Vale, 958',38,'<EMAIL>','0-654-542-8357'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Rachael','UKUq0U7A1c','Clissold Pass, 1150',58,'<EMAIL>','2-360-723-0831'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Bristol','tK78quzZYW','West Road, 9029',31,'<EMAIL>','3-763-242-0306'); INSERT INTO seller(fullName, username, password, address, age, email, phoneNumber) VALUES('<NAME>','Mike','J0xisjvJyf','Black Friars Crossroad, 9874',43,'<EMAIL>','2-228-033-7827');
----------------------------------------------------- -- UPLOADS TABLE ----------------------------------------------------- CREATE TABLE upload ( domain_id UUID NOT NULL, event_UUID UUID NOT NULL, event_type VARCHAR(200) NOT NULL, event_time BIGINT NOT NULL, event_body JSON, PRIMARY KEY (domain_id, event_UUID) ); ALTER TABLE upload OWNER TO ${owner}; CREATE INDEX IDX_UPLOAD ON upload (domain_id, event_UUID); ----------------------------------------------------- -- UPLOAD STATUSES TABLE ----------------------------------------------------- CREATE TABLE upload_status ( id UUID NOT NULL, start_date BIGINT NOT NULL, notified BOOLEAN NOT NULL, PRIMARY KEY (id) ); ALTER TABLE upload_status OWNER TO ${owner}; CREATE INDEX IDX_UPL_STAT ON upload_status (id); CREATE TABLE file_upload_status ( id UUID NOT NULL, upload_status_id UUID NOT NULL, filename VARCHAR(100) NOT NULL, error TEXT, PRIMARY KEY (id, upload_status_id) ); ALTER TABLE file_upload_status OWNER TO ${owner}; CREATE INDEX IDX_FILE_UPL_STAT ON file_upload_status (id, upload_status_id);
CREATE OR REPLACE PROCEDURE VER_TRABAJADOR IS CURSOR CUR_TRABAJADOR IS SELECT APELLIDO1, FECHANAC FROM TRABAJADORES ORDER BY APELLIDO1; --No puede ir en el begin porque devuelve mas de una fila REG_TRABAJADOR CUR_TRABAJADOR%ROWTYPE; BEGIN OPEN CUR_TRABAJADOR; LOOP FETCH CUR_TRABAJADOR INTO REG_TRABAJADOR; DBMS_OUTPUT.PUT_LINE('APELLIDO DEL TRABAJADOR' ||CUR_TRABAJADOR.APELLDO1); DBMS_OUTPUT.PUT_LINE('FECHA DE NACIMIENT' || TO_CHAR(REG_TRABAJADOR.FECHANAC)); EXIT WHEN CUR_TRABAJADOR%NOTFOUND; END LOOP; CLOSE CUR_TRABAJADOR; END; EXECUTE VER_TRABAJADOR;
<reponame>michaelcw02/PrograIV<filename>II/Examen II/Sugerencias.sql CREATE DATABASE Sugerencias; USE Sugerencias; create table usuario ( id varchar(20) not null primary key, clave varchar(20) not null, tipo integer ); create table sugerencia( id integer auto_increment not null primary key, usuario varchar(20) not null, texto varchar(50) not null, puntaje integer default 0 ); alter table sugerencia add constraint foreign key (usuario) references usuario (id); insert into Usuario (id,clave,tipo) values ('estud99','estud99', 1); insert into Usuario (id,clave,tipo) values ('visitante','visitante', 1); insert into Usuario (id,clave,tipo) values ('admin','admin', 2); insert into sugerencia (usuario,texto,puntaje) values ('estud99','Poner dispensador de golosinas',1); insert into sugerencia (usuario,texto,puntaje) values ('estud99','Abrir laboratorios en la noche',3); insert into sugerencia (usuario,texto,puntaje) values ('estud99','Ubicar proyectores mas alto en los lab',2); insert into sugerencia (usuario,texto,puntaje) values ('visitante','Hacer pasillo techado a la soda',4);
<filename>mis001pg.session.sql SELECT * FROM doc LIMIT 11;
<filename>src/benchmark/postgres/q13.sql SELECT SUM(lo_revenue) AS revenue FROM lineorder, ddate WHERE lo_orderdate = d_datekey AND d_weeknuminyear = 6 AND d_year = 1994 AND lo_discount BETWEEN 5 AND 7 AND lo_quantity BETWEEN 36 AND 40;
<reponame>Edraak/code-dot-or drop table if exists analysis.csf_plugged_stage_counts; create table analysis.csf_plugged_stage_counts ( script_id int, plugged_stage_counts int ); insert into analysis.csf_plugged_stage_counts values (1,9), (17,11), (18,11), (19,14), (23,12), (236,5), (237,6), (238,9), (239,12), (240,8), (241,10), (258,19), (259,7), (297,7), (301,7), (302,14), (303,27), (307,10), (309,8), (310,8), (341,9), -- 2019 courses (369,7), (370,6), (366,10), (360,12), (361,13), (357,13), (363,27), (371,12); GRANT ALL PRIVILEGES ON analysis.csf_plugged_stage_counts TO GROUP admin; GRANT SELECT ON analysis.csf_plugged_stage_counts TO GROUP reader, GROUP reader_pii;
<gh_stars>0 -- // -- -- Adiciona campo cdd e estante, na tabela acervo. -- @author <NAME> <<EMAIL>> -- @license @@license@@ -- @version $Id$ ALTER TABLE pmieducar.acervo ADD COLUMN cdd character varying(20); ALTER TABLE pmieducar.acervo ADD COLUMN estante character varying(20); -- //@UNDO ALTER TABLE pmieducar.acervo DROP COLUMN cdd; ALTER TABLE pmieducar.acervo DROP COLUMN estante; -- //
517,153,0 539,10,0 562,811,0 575,144,0 628,95,0 638,342,0 650,7,0 664,44,0 681,42,0 475,1020,0 2505,1050,0 750,83,0 825,39,0 937,74,0 927,300,0 5055,32,0 951,46,0 491,540,0 497,260,0 511,1190,0 536,50,0 523,5,0 565,25,0 549,36,0 572,9,0 486,230,0 5060,15,0 499,16,0 525,250,0 535,39,0 584,35,0 560,15,0 5144,16,0 520,67,0 507,988,0 495,71,0 12741,200,0 5140,18,0 5150,4,0 601,70,0 611,769,0 653,7,0 5223,2,0 2588,2,0 2592,259,0 706,2727,0 744,18,0 768,74,0 779,100,0 786,1751,0 799,39,0 846,35,0 537,70,0 548,30,0 567,30,0 557,100,0 599,20,0 603,7,0 614,207,0 582,28,0 2660,22,0 561,8,0 550,260,0 532,462,0 479,87,0 490,130,0 2730,2,0 500,195,0 512,42,0 5179,15,0 528,28,0 534,33,0 558,20,0 2727,100,0 587,1985,0 569,85,0 594,14,0 629,7,0 649,1140,0 660,690,0 665,735,0 477,150,0 513,330,0 531,118,0 553,28,0 576,17,0 564,14,0 589,1252,0 618,394,0 598,4,0 624,80,0 656,89,0 647,129,0 733,186,0 720,1,0 3880,171,0 766,865,0 5157,8,0 2748,15,0 777,32,0 533,340,0 648,5,0 627,90,0 662,141,0 700,150,0 683,94,0 724,485,0 741,10,0 770,16,0 484,90,0 591,770,0 609,49,0 625,134,0 7785,166,0 7786,294,0 652,713,0 686,10,0 696,48,0 735,5,0 742,403,0 793,49,0 885,41,0 890,435,0 5154,39,0 931,24791,0 922,248,0 654,4,0 2761,30,0 2854,34,0 858,390,0 980,990,0 970,35,0 987,20,0 992,350,0 1000,806,0 527,199,0 540,172,0 13505,200,0 547,484,0 566,500,0 580,36,0 615,19,0 623,31,0 839,2,0 847,4,0 688,79,0 698,1065,0 678,2440,0 729,850,0 5151,23,0 501,800,0 579,138,0 13503,95,0 861,4,0 639,1374,0 709,19,0 685,695,0 10447,1680,0 10598,93,0 10460,29,0 917,400,0 921,700,0 923,122,0 930,35,0 928,461,0 933,47,0 924,400,0 2336,3,0 850,8,0 2523,136,0 5019,9,0 877,12,0 888,14,0 7820,21,0 840,1,0 843,3,0 901,32,0 905,1,0 932,84,0 934,49,0 936,70,0 939,27,0 915,152,0 918,88,0 942,3,0 949,22,0 965,11,0 972,25,0 2559,12,0 859,8,0 2502,150,0 976,469,0 2821,11,0 978,9,0 984,7,0 935,106,0 863,53,0 870,177,0 875,130,0 7819,50,0 893,12,0 910,3,0 904,12,0 10672,5,0 787,3,0 896,2,0 757,1,0 714,3,0 792,150,0 903,1,0 881,2,0 7264,20,0 7824,4,0 734,2,0 947,2,0 7825,3,0 802,2,0 774,40,0 690,124,0 7823,32,0 5309,2,0 769,1,0 780,2,0 1213,6,0 831,3,0 996,8,0 781,150,0 10462,100,0 12285,6,0 12282,6,0
DROP TABLE "reporting".symbol; DROP TABLE "reporting".item; DROP TABLE "reporting".item_type; DROP TABLE "reporting".item_subtype; DROP TABLE "reporting".item_child; DROP TABLE "reporting".item_symbol; -- Table: "reporting".item CREATE TABLE "reporting".item ( id bigserial, name character varying(75), tags character varying(25)[], meta_hstore hstore, meta_json json, displayname character varying(75), CONSTRAINT item_has_id_as_pk PRIMARY KEY (id), CONSTRAINT item_has_name_and_displayname_as_unique UNIQUE (name, displayname) ) WITH ( OIDS=FALSE ); ALTER TABLE "reporting".item OWNER TO postgres; -- Table: "reporting".item_type CREATE TABLE "reporting".item_type ( id bigserial, type smallint NOT NULL, item_id bigint NOT NULL, description CHARACTER VARYING (255) NULL , CONSTRAINT item_type_has_id_as_pk PRIMARY KEY (id), CONSTRAINT item_type_has_item_id_as_fk FOREIGN KEY (item_id) REFERENCES "reporting".item (id) MATCH SIMPLE ON UPDATE CASCADE ON DELETE CASCADE, CONSTRAINT item_type_has_item_id_and_type_as_unique UNIQUE (type, item_id) ) WITH ( OIDS=FALSE ); ALTER TABLE "reporting".item_type OWNER TO postgres; -- Table: "reporting".item_subtype CREATE TABLE "reporting".item_subtype ( id bigserial, item_id bigint NOT NULL, name CHARACTER VARYING (25), description CHARACTER VARYING (255) NULL , CONSTRAINT item_subtype_has_id_as_pk PRIMARY KEY (id), CONSTRAINT item_subtype_has_item_id_as_fk FOREIGN KEY (item_id) REFERENCES "reporting".item (id) MATCH SIMPLE ON UPDATE CASCADE ON DELETE CASCADE, CONSTRAINT item_subtype_has_item_id_and_name_as_unique UNIQUE (item_id,name) ) WITH ( OIDS=FALSE ); ALTER TABLE "reporting".item_subtype OWNER TO postgres; -- Table: "reporting".item_child CREATE TABLE "reporting".item_child ( id bigserial, parent_id bigint NOT NULL, child_id bigint NOT NULL, parent_type smallint NOT NULL , child_type smallint NOT NULL , CONSTRAINT item_child_has_id_as_pk PRIMARY KEY (id), CONSTRAINT item_child_has_child_id_as_fk FOREIGN KEY (child_id) REFERENCES "reporting".item (id) MATCH SIMPLE ON UPDATE CASCADE ON DELETE CASCADE, CONSTRAINT item_child_has_parent_id_as_fk FOREIGN KEY (parent_id) REFERENCES "reporting".item (id) MATCH SIMPLE ON UPDATE CASCADE ON DELETE CASCADE, CONSTRAINT item_child_has_child_id_and_child_type_from_item_type_as_fk FOREIGN KEY (child_id, child_type) REFERENCES "reporting".item_type (item_id, type) MATCH SIMPLE ON UPDATE CASCADE ON DELETE CASCADE, CONSTRAINT item_child_has_parent_id_and_parent_type_from_item_type_as_fk FOREIGN KEY (parent_id, parent_type) REFERENCES "reporting".item_type (item_id, type) MATCH SIMPLE ON UPDATE CASCADE ON DELETE CASCADE , CONSTRAINT "item_child_has_child_type_GREATER_THAN_parenttype_as_check" CHECK (child_type > parent_type) ) WITH ( OIDS=FALSE ); ALTER TABLE "reporting".item_child OWNER TO postgres; -- Table: "reporting".symbol CREATE TABLE "reporting".symbol ( id bigserial NOT NULL , type smallint NOT NULL , name character varying(75), format character varying(10), extension character varying(10), path text NOT NULL, url text NOT NULL, size integer, resolution_x integer, resolution_y integer, source text, description text, is_verified boolean, tags character varying(25)[], meta_hstore hstore, meta_json json, CONSTRAINT symbol_has_id_as_pk PRIMARY KEY (id), CONSTRAINT symbol_has_path_and_url_as_unique UNIQUE (path, url) ) WITH ( OIDS=FALSE ); ALTER TABLE "reporting".symbol OWNER TO postgres; -- Table: "reporting".item_symbol CREATE TABLE "reporting".item_symbol ( id bigserial NOT NULL , item_id bigint NOT NULL, symbol_id bigint NOT NULL , is_default boolean DEFAULT FALSE , CONSTRAINT item_symbol_has_id_as_pk PRIMARY KEY (id), CONSTRAINT item_symbol_has_item_id_from_item_as_fk FOREIGN KEY (item_id) REFERENCES "reporting".item (id) MATCH SIMPLE ON UPDATE CASCADE ON DELETE CASCADE, CONSTRAINT item_symbol_has_symbol_id_from_symbol_as_fk FOREIGN KEY (symbol_id) REFERENCES "reporting".symbol (id) MATCH SIMPLE ON UPDATE CASCADE ON DELETE CASCADE, CONSTRAINT item_symbol_has_item_id_and_symbol_id_as_unique UNIQUE (item_id, symbol_id) ) WITH ( OIDS=FALSE ); ALTER TABLE "reporting".item_symbol OWNER TO postgres;
CREATE OR REPLACE procedure NUCLEIC_ACID_SEQUENCE_13_LD as BEGIN INSERT INTO NUCLEIC_ACID_SEQUENCE(ID, ACCESSION_NUMBER, VERSION, SEQUENCE_TYPE, CLONE_ID, VALUE, LENGTH) SELECT SEQUENCE_ID, ACCESSION_NUMBER, VERSION, SEQUENCE_TYPE, CLONE_ID, TO_LOB(ASCII_STRING), LENGTH from sequence WHERE Sequence_ID > 6000000 and Sequence_ID <= 6500000; COMMIT; END; /
bitdata Bar where b1 = 63 : uint 8 -- decimal values have to have a type if it isn't inferrable from the context b2 = 64 bitdata Foo where A = 0x42 -- unless otherwise noted, hex and binary literals have their natural width (i.e. 8 here) B = { 0b11; x : uint 6 } C = { b : Bar } -- other bitdata can be referenced, but currently have to be named. D = { 0b10; _ : uint 6 } -- '_' is a wildcard
<reponame>opengauss-mirror/Yat<gh_stars>0 -- @testpoint: opengauss关键字outer(保留),作为索引名,部分测试点合理报错 --前置条件,创建一个表 drop table if exists outer_test; create table outer_test(id int,name varchar(10)); --关键字不带引号-合理报错 drop index if exists outer; create index outer on outer_test(id); --关键字带双引号-成功 drop index if exists "outer"; create index "outer" on outer_test(id); --清理环境 drop index "outer"; --关键字带单引号-合理报错 drop index if exists 'outer'; create index 'outer' on outer_test(id); --关键字带反引号-合理报错 drop index if exists `outer`; create index `outer` on outer_test(id); --清理环境 drop table if exists outer_test cascade;
<filename>config/scripts/schema/migrations/2013-03-11 meetingrecord.sql -- TAB-358 CREATE TABLE meetingrecord ( ID NVARCHAR2(255) NOT NULL, RELATIONSHIP_ID NVARCHAR2(255) NOT NULL, CREATION_DATE TIMESTAMP NOT NULL, LAST_UPDATED_DATE TIMESTAMP NOT NULL, CREATOR_ID NVARCHAR2(255) NOT NULL, MEETING_DATE TIMESTAMP, TITLE NVARCHAR2(500), DESCRIPTION NCLOB, CONSTRAINT "MEETINGRECORD_PK" PRIMARY KEY ("ID") ); CREATE INDEX IDX_MEETINGS_REL ON MEETINGRECORD ("RELATIONSHIP_ID");
-- 12.10 1NF first normal form -- each cell should have a single value and we can't have repeted columns -- course.tags column vilotes this rule, so we create seperate table for tags
<reponame>GaliFirmansyah/SIGLahanTuban -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 21, 2021 at 02:02 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.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: `data` -- -- -------------------------------------------------------- -- -- 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 `kecamatan` -- CREATE TABLE `kecamatan` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kecamatan` -- INSERT INTO `kecamatan` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Grabagan', '2021-12-21 02:55:35', '2021-12-21 02:55:35'); -- -------------------------------------------------------- -- -- Table structure for table `lahans` -- CREATE TABLE `lahans` ( `id` bigint(20) UNSIGNED NOT NULL, `alamat` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `kecamatan` bigint(20) UNSIGNED NOT NULL, `pemilik` bigint(20) UNSIGNED NOT NULL, `longitude` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `latitude` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Belum bayar', `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 `lahans` -- INSERT INTO `lahans` (`id`, `alamat`, `kecamatan`, `pemilik`, `longitude`, `latitude`, `status`, `created_at`, `updated_at`) VALUES (1, '<NAME>, Ngrejeng, Grabagan, Kabupaten Tuban, Jawa Timur 62372', 1, 1, '111.953410', '-7.028563', 'Belum bayar', '2021-12-21 02:57:31', '2021-12-21 02:57:31'); -- -------------------------------------------------------- -- -- 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_03_04_034348_create_opds_table', 1), (5, '2021_03_16_054753_create_kecamatans_table', 1), (6, '2021_03_16_061606_create_pemiliks_table', 1), (7, '2021_04_04_032448_create_lahans_table', 1), (8, '2021_04_05_022516_create_transactions_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `pemilik` -- CREATE TABLE `pemilik` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `pemilik` -- INSERT INTO `pemilik` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, '<NAME>', '2021-12-21 02:55:48', '2021-12-21 02:55:48'); -- -------------------------------------------------------- -- -- 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, `role` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Admin', `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`, `role`, `remember_token`, `created_at`, `updated_at`) VALUES (1, '<NAME>', '<EMAIL>', NULL, '$2y$10$E<PASSWORD>', 'Super Admin', '<PASSWORD>VpK9JrQ9jePVbxZbTmIi', '2021-03-17 22:04:03', '2021-03-28 19:12:10'), (2, '<NAME>', '<EMAIL>', NULL, '$2y$10$Wdd45.0x0YWhkRIZDXcDUeG6228z1iy/06M2y6OvSds2Ov8l31r.C', 'Admin', NULL, '2021-03-17 22:04:03', '2021-03-29 21:32:21'), (7, 'Gali', '<EMAIL>', NULL, '$2y$10$z5xk2PVLKSBWjV3Hp0BWveBZT2xSYjDm0McnLOjAEEiyQj0B3Yibq', 'Admin', NULL, '2021-03-17 22:04:03', '2021-03-29 21:32:21'); -- -- 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 `kecamatan` -- ALTER TABLE `kecamatan` ADD PRIMARY KEY (`id`); -- -- Indexes for table `lahans` -- ALTER TABLE `lahans` ADD PRIMARY KEY (`id`), ADD KEY `lahans_kecamatan_foreign` (`kecamatan`), ADD KEY `lahans_pemilik_foreign` (`pemilik`); -- -- 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 `pemilik` -- ALTER TABLE `pemilik` 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 `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `kecamatan` -- ALTER TABLE `kecamatan` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `lahans` -- ALTER TABLE `lahans` MODIFY `id` bigint(20) 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=9; -- -- AUTO_INCREMENT for table `pemilik` -- ALTER TABLE `pemilik` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- Constraints for dumped tables -- -- -- Constraints for table `lahans` -- ALTER TABLE `lahans` ADD CONSTRAINT `lahans_ibfk_1` FOREIGN KEY (`pemilik`) REFERENCES `pemilik` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `lahans_ibfk_2` FOREIGN KEY (`kecamatan`) REFERENCES `kecamatan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>statisticspoland/VTL-Processing CREATE SCHEMA [Analytic_invocation]
<reponame>Terria028/SQLICTProg<filename>03-30-2022/scripts/color_script.sql DECLARE color CHAR(1) := 'r'; BEGIN IF (color = 'r' OR color = 'R') THEN DBMS_OUTPUT.PUT_LINE('Color is Red'); ELSIF (color = 'g' OR color = 'G') THEN DBMS_OUTPUT.PUT_LINE('Color is Green'); ELSIF (color = 'b' OR color = 'B') THEN DBMS_OUTPUT.PUT_LINE('Color is Blue'); ELSIF (color = 'a' OR color = 'A') THEN DBMS_OUTPUT.PUT_LINE('Color is Red'); END IF; END;
create table contatos ( id BIGINT NOT NULL AUTO_INCREMENT, nome VARCHAR(255), email VARCHAR(255), endereco VARCHAR(255), dataNascimento DATE, primary key (id) );
<filename>test/app/Config/Schema/schema.sql -- phpMyAdmin SQL Dump -- version 3.4.11.1deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 25, 2013 at 11:51 AM -- Server version: 5.5.31 -- PHP Version: 5.4.6-1ubuntu1.2 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `datatable` -- -- -------------------------------------------------------- -- -- Table structure for table `cities` -- CREATE TABLE IF NOT EXISTS `cities` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(60) NOT NULL DEFAULT '', `state_id` smallint(2) unsigned NOT NULL DEFAULT '0', `population` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `state_id` (`state_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1001 ; -- -- Dumping data for table `cities` -- INSERT INTO `cities` (`id`, `name`, `state_id`, `population`) VALUES (1, 'Dayton', 37, 141527), (2, 'Springfield', 37, 60608), (3, 'Chillicothe', 37, 21901), (4, 'Bainbridge', 37, 0), (5, 'Beaver', 37, 0), (6, 'Bidwell', 37, 0), (7, 'Blue Creek', 37, 0), (8, 'Bourneville', 37, 0), (9, 'Cherry Fork', 37, 0), (10, 'Chesapeake', 37, 0), (11, 'Cheshire', 37, 0), (12, 'Coalton', 37, 0), (13, 'Creola', 37, 0), (14, '<NAME>', 37, 0), (15, 'Cynthiana', 37, 0), (16, 'Frankfort', 37, 0), (17, '<NAME>', 37, 11771), (18, 'Friendship', 37, 0), (19, 'Gallipolis', 37, 0), (20, 'Hallsville', 37, 0), (21, 'Hamden', 37, 0), (22, 'Haverhill', 37, 0), (23, 'Ironton', 37, 11129), (24, 'Jackson', 37, 6397), (25, 'Jasper', 37, 0), (26, 'Kerr', 37, 0), (27, 'Kingston', 37, 0), (28, '<NAME>', 37, 0), (29, 'Latham', 37, 0), (30, 'Londonderry', 37, 9904), (31, 'Lucasville', 37, 0), (32, 'Lynx', 37, 0), (33, '<NAME>', 37, 0), (34, '<NAME>', 37, 0), (35, 'Minford', 37, 0), (36, '<NAME>', 37, 0), (37, '<NAME>', 37, 0), (38, 'Otway', 37, 0), (39, 'Patriot', 37, 0), (40, 'Pedro', 37, 0), (41, 'Peebles', 37, 0), (42, 'Piketon', 37, 0), (43, 'Portsmouth', 37, 20226), (44, 'West Portsmouth', 37, 20226), (45, 'Proctorville', 37, 0), (46, 'Rarden', 37, 0), (47, 'Ray', 37, 0), (48, '<NAME>', 37, 0), (49, '<NAME>', 37, 0), (50, '<NAME>', 37, 0), (51, '<NAME>', 37, 0), (52, 'Scottown', 37, 0), (53, 'Seaman', 37, 0), (54, '<NAME>', 37, 0), (55, '<NAME>', 37, 12303), (56, 'South Webster', 37, 0), (57, 'Stockdale', 37, 0), (58, 'Stout', 37, 0), (59, 'Thurman', 37, 0), (60, 'Vinton', 37, 0), (61, 'Wakefield', 37, 0), (62, 'Waterloo', 37, 0), (63, 'Waverly', 37, 0), (64, 'Wellston', 37, 5663), (65, 'West Union', 37, 24), (66, 'Wheelersburg', 37, 0), (67, 'Wilkesville', 37, 0), (68, '<NAME>', 37, 0), (69, 'Winchester', 37, 0), (70, 'Zaleski', 37, 0), (71, 'Athens', 37, 23832), (72, 'Albany', 37, 0), (73, 'Amesville', 37, 0), (74, 'Barlow', 37, 0), (75, 'Bartlett', 37, 0), (76, 'Belpre', 37, 6441), (77, 'Beverly', 37, 0), (78, 'Buchtel', 37, 0), (79, 'Carbondale', 37, 0), (80, 'Chauncey', 37, 0), (81, 'Chester', 37, 0), (82, '<NAME>', 37, 0), (83, 'Coolville', 37, 0), (84, 'Cutler', 37, 0), (85, '<NAME>', 37, 0), (86, 'Fleming', 37, 0), (87, 'Glouster', 37, 0), (88, 'Graysville', 37, 0), (89, 'Guysville', 37, 0), (90, 'Hockingport', 37, 0), (91, 'Jacksonville', 37, 6397), (92, 'Langsville', 37, 0), (93, '<NAME>', 37, 0), (94, '<NAME>', 37, 0), (95, 'Lowell', 37, 0), (96, '<NAME>', 37, 12303), (97, 'Macksburg', 37, 0), (98, 'Marietta', 37, 14085), (99, 'Middleport', 37, 0), (100, 'Millfield', 37, 0), (101, 'Nelsonville', 37, 5392), (102, '<NAME>', 37, 0), (103, '<NAME>', 37, 0), (104, 'Newport', 37, 0), (105, 'Pomeroy', 37, 0), (106, 'Portland', 37, 0), (107, 'Racine', 37, 0), (108, 'Reedsville', 37, 0), (109, 'Reno', 37, 0), (110, 'Rutland', 37, 0), (111, 'Shade', 37, 0), (112, 'Sharpsburg', 37, 0), (113, 'Stewart', 37, 0), (114, 'Syracuse', 37, 0), (115, '<NAME>', 37, 0), (116, 'Trimble', 37, 0), (117, '<NAME>', 37, 0), (118, 'Vincent', 37, 0), (119, 'Waterford', 37, 0), (120, 'Watertown', 37, 0), (121, 'Whipple', 37, 0), (122, '<NAME>', 37, 0), (123, 'Lima', 37, 38771), (124, 'Beaverdam', 37, 0), (125, 'Gomer', 37, 0), (126, 'Ada', 37, 0), (127, 'Alger', 37, 0), (128, 'Antwerp', 37, 0), (129, 'Arlington', 37, 0), (130, 'Belmore', 37, 0), (131, '<NAME>', 37, 0), (132, 'Bluffton', 37, 0), (133, 'Buckland', 37, 0), (134, 'Cairo', 37, 0), (135, 'Cecil', 37, 0), (136, 'Celina', 37, 10400), (137, 'Chickasaw', 37, 0), (138, 'Cloverdale', 37, 0), (139, 'Coldwater', 37, 0), (140, '<NAME>', 37, 9666), (141, 'Continental', 37, 0), (142, 'Convoy', 37, 0), (143, 'Delphos', 37, 7101), (144, 'Dola', 37, 0), (145, 'Dunkirk', 37, 0), (146, 'Dupont', 37, 0), (147, 'Elgin', 37, 0), (148, 'Findlay', 37, 41202), (149, 'Jenera', 37, 0), (150, 'Forest', 37, 0), (151, '<NAME>', 37, 0), (152, '<NAME>', 37, 0), (153, '<NAME>', 37, 0), (154, 'Glandorf', 37, 0), (155, '<NAME>', 37, 0), (156, 'Harrod', 37, 0), (157, 'Haviland', 37, 0), (158, 'Kalida', 37, 0), (159, 'Lafayette', 37, 0), (160, 'Latty', 37, 0), (161, 'Leipsic', 37, 0), (162, '<NAME>', 37, 0), (163, '<NAME>', 37, 0), (164, '<NAME>', 37, 0), (165, 'Melrose', 37, 0), (166, 'Mendon', 37, 0), (167, 'Middle Point', 37, 0), (168, 'Miller City', 37, 0), (169, 'Minster', 37, 0), (170, 'Montezuma', 37, 0), (171, '<NAME>', 37, 0), (172, '<NAME>', 37, 0), (173, 'New Bremen', 37, 0), (174, 'New Hampshire', 37, 0), (175, '<NAME>ville', 37, 0), (176, 'North Baltimore', 37, 0), (177, 'Oakwood', 37, 9202), (178, 'Ohio City', 37, 0), (179, 'Ottawa', 37, 0), (180, 'Ottoville', 37, 0), (181, 'Pandora', 37, 0), (182, 'Paulding', 37, 0), (183, 'Payne', 37, 0), (184, 'Rawson', 37, 0), (185, 'Rockford', 37, 0), (186, '<NAME>', 37, 0), (187, '<NAME>', 37, 0), (188, '<NAME>', 37, 0), (189, 'Scott', 37, 0), (190, 'Spencerville', 37, 0), (191, 'Uniopolis', 37, 0), (192, '<NAME>', 37, 0), (193, 'Vanlue', 37, 0), (194, '<NAME>', 37, 10846), (195, 'Vaughnsville', 37, 0), (196, 'Venedocia', 37, 0), (197, 'Wapakoneta', 37, 9867), (198, 'Waynesfield', 37, 0), (199, 'Williamstown', 37, 34837), (200, 'Willshire', 37, 0), (201, 'Wren', 37, 0), (202, 'Cincinnati', 37, 296943), (203, 'Alexandria', 17, 5145), (204, 'Anderson', 17, 56129), (205, 'Arcadia', 17, 0), (206, 'Atlanta', 17, 0), (207, 'Carmel', 17, 79191), (208, 'Cicero', 17, 0), (209, 'Colfax', 17, 0), (210, 'Elwood', 17, 8614), (211, 'Fishers', 17, 0), (212, 'Forest', 17, 0), (213, 'Fortville', 17, 0), (214, 'Frankfort', 17, 16422), (215, 'Frankton', 17, 0), (216, 'Goldsmith', 17, 0), (217, 'Hobbs', 17, 0), (218, 'Ingalls', 17, 0), (219, 'Kempton', 17, 0), (220, 'Kirklin', 17, 0), (221, 'Lapel', 17, 0), (222, 'Lebanon', 17, 15792), (223, '<NAME>', 17, 0), (224, 'Markleville', 17, 0), (225, 'Michigantown', 17, 0), (226, 'Mulberry', 17, 0), (227, 'Noblesville', 17, 51969), (228, 'Orestes', 17, 0), (229, 'Pendleton', 17, 0), (230, 'Rossville', 17, 0), (231, 'Sedalia', 17, 0), (232, 'Sharpsville', 17, 0), (233, 'Sheridan', 17, 0), (234, 'Summitville', 17, 0), (235, 'Thorntown', 17, 0), (236, 'Tipton', 17, 5106), (237, 'Westfield', 17, 30068), (238, 'Whitestown', 17, 0), (239, 'Windfall', 17, 0), (240, 'Zionsville', 17, 0), (241, 'Advance', 17, 0), (242, 'Amo', 17, 0), (243, 'Arlington', 17, 0), (244, 'Bainbridge', 17, 0), (245, 'Bargersville', 17, 0), (246, '<NAME>', 17, 14192), (247, 'Boggstown', 17, 0), (248, 'Brooklyn', 17, 0), (249, 'Brownsburg', 17, 0), (250, 'Camby', 17, 0), (251, 'Carthage', 17, 0), (252, 'Charlottesville', 17, 0), (253, 'Clayton', 17, 0), (254, 'Cloverdale', 17, 0), (255, 'Coatesville', 17, 0), (256, 'Danville', 17, 0), (257, 'Avon', 17, 0), (258, 'Edinburgh', 17, 0), (259, 'Eminence', 17, 0), (260, 'Fairland', 17, 0), (261, 'Falmouth', 17, 0), (262, 'Fillmore', 17, 0), (263, 'Finly', 17, 0), (264, 'Fountaintown', 17, 0), (265, 'Franklin', 17, 23712), (266, 'Glenwood', 17, 0), (267, 'Greencastle', 17, 10326), (268, 'Greenfield', 17, 20602), (269, 'Greenwood', 17, 49791), (270, 'Gwynneville', 17, 0), (271, 'Homer', 17, 0), (272, 'Jamestown', 17, 0), (273, 'Knightstown', 17, 0), (274, 'Lizton', 17, 0), (275, 'Manilla', 17, 0), (276, 'Martinsville', 17, 11828), (277, 'Maxwell', 17, 0), (278, 'Mays', 17, 0), (279, 'Milroy', 17, 0), (280, 'Monrovia', 17, 0), (281, 'Mooresville', 17, 0), (282, 'Morgantown', 17, 0), (283, 'Morristown', 17, 0), (284, 'Needham', 17, 0), (285, '<NAME>', 17, 0), (286, 'Nineveh', 17, 0), (287, '<NAME>', 17, 6319), (288, 'Paragon', 17, 0), (289, 'Pittsboro', 17, 0), (290, 'Plainfield', 17, 0), (291, 'Putnamville', 17, 0), (292, 'Reelsville', 17, 0), (293, 'Roachdale', 17, 0), (294, 'Rushville', 17, 6341), (295, 'Russellville', 17, 0), (296, 'Shelbyville', 17, 19191), (297, 'Stilesville', 17, 0), (298, 'Trafalgar', 17, 0), (299, 'Waldron', 17, 0), (300, '<NAME>', 17, 0), (301, 'Whiteland', 17, 0), (302, 'Wilkinson', 17, 0), (303, 'Indianapolis', 17, 829718), (304, 'Speedway', 17, 0), (305, '<NAME>', 17, 0), (306, '<NAME>', 17, 0), (307, '<NAME>', 17, 0), (308, 'Chesterton', 17, 0), (309, '<NAME>', 17, 27317), (310, 'Demotte', 17, 0), (311, 'Dyer', 17, 0), (312, 'East Chicago', 17, 29698), (313, 'Griffith', 17, 0), (314, 'Hammond', 17, 80830), (315, 'Munster', 17, 0), (316, 'Highland', 17, 0), (317, 'Hanna', 17, 0), (318, 'Hebron', 17, 0), (319, 'Hobart', 17, 29059), (320, 'Kingsbury', 17, 0), (321, '<NAME>', 17, 0), (322, 'Kouts', 17, 0), (323, '<NAME>', 17, 0), (324, 'Lake Village', 17, 0), (325, '<NAME>', 17, 22053), (326, 'Leroy', 17, 0), (327, 'Lowell', 17, 0), (328, 'Michigan City', 17, 31479), (329, '<NAME>', 17, 0), (330, '<NAME>', 17, 0), (331, 'Portage', 17, 36828), (332, '<NAME>', 17, 0), (333, 'Roselawn', 17, 0), (334, '<NAME>', 17, 0), (335, '<NAME>', 17, 0), (336, 'Schererville', 17, 0), (337, 'Schneider', 17, 0), (338, 'Shelby', 17, 0), (339, '<NAME>', 17, 0), (340, 'Tefft', 17, 0), (341, 'Thayer', 17, 0), (342, '<NAME>', 17, 0), (343, 'Valparaiso', 17, 31730), (344, 'Wanatah', 17, 0), (345, 'Westville', 17, 0), (346, 'Wheatfield', 17, 0), (347, 'Wheeler', 17, 0), (348, 'Whiting', 17, 4997), (349, 'Gary', 17, 80294), (350, '<NAME>', 17, 12572), (351, 'Merrillville', 17, 0), (352, 'Argos', 17, 0), (353, 'Atwood', 17, 0), (354, 'Bourbon', 17, 0), (355, 'Bremen', 17, 0), (356, 'Bristol', 17, 0), (357, 'Burket', 17, 0), (358, 'Claypool', 17, 0), (359, 'Culver', 17, 0), (360, 'Donaldson', 17, 0), (361, 'Elkhart', 17, 50949), (362, '<NAME>', 17, 0), (363, 'Goshen', 17, 31719), (364, 'Granger', 17, 0), (365, 'Grovertown', 17, 0), (366, 'Hamlet', 17, 0), (367, 'Knox', 17, 3704), (368, 'Lakeville', 17, 0), (369, 'Lapaz', 17, 0), (370, 'Leesburg', 17, 0), (371, 'Mentone', 17, 0), (372, 'Middlebury', 17, 0), (373, 'Milford', 17, 0), (374, 'Millersburg', 17, 0), (375, 'Mishawaka', 17, 48252), (376, 'Nappanee', 17, 6648), (377, '<NAME>', 17, 0), (378, '<NAME>', 17, 0), (379, 'North Liberty', 17, 0), (380, 'North Webster', 17, 0), (381, '<NAME>', 17, 0), (382, 'Osceola', 17, 0), (383, 'Pierceton', 17, 0), (384, 'Plymouth', 17, 10033), (385, 'Shipshewana', 17, 0), (386, 'Syracuse', 17, 0), (387, 'Tippecanoe', 17, 0), (388, 'Topeka', 17, 0), (389, 'Tyner', 17, 0), (390, 'Wakarusa', 17, 0), (391, 'Walkerton', 17, 0), (392, 'Warsaw', 17, 13559), (393, '<NAME>', 17, 0), (394, 'Wyatt', 17, 0), (395, '<NAME>', 17, 101168), (396, 'Albion', 17, 0), (397, 'Andrews', 17, 0), (398, 'Angola', 17, 8612), (399, 'Arcola', 17, 0), (400, 'Ashley', 17, 0), (401, 'Auburn', 17, 12731), (402, 'Avilla', 17, 0), (403, 'Berne', 17, 3999), (404, 'Bippus', 17, 0), (405, 'Bluffton', 17, 9897), (406, 'Butler', 17, 2684), (407, 'Churubusco', 17, 0), (408, 'Columbia City', 17, 8750), (409, 'Corunna', 17, 0), (410, 'Craigville', 17, 0), (411, 'Cromwell', 17, 0), (412, 'Decatur', 17, 9405), (413, 'Fremont', 17, 0), (414, 'Garrett', 17, 6286), (415, 'Geneva', 17, 0), (416, 'Grabill', 17, 0), (417, 'Hamilton', 17, 0), (418, 'Harlan', 17, 0), (419, 'Hoagland', 17, 0), (420, 'Howe', 17, 0), (421, 'Hudson', 17, 0), (422, 'Huntertown', 17, 0), (423, 'Huntington', 17, 17391), (424, 'Kendallville', 17, 9862), (425, 'Keystone', 17, 0), (426, 'Kimmell', 17, 0), (427, 'Lagrange', 17, 0), (428, 'Laotto', 17, 0), (429, 'Larwill', 17, 0), (430, 'Leo', 17, 0), (431, 'Liberty Center', 17, 0), (432, 'Ligonier', 17, 4405), (433, '<NAME>', 17, 0), (434, 'Markle', 17, 0), (435, 'Mongo', 17, 0), (436, 'Monroe', 17, 0), (437, 'Monroeville', 17, 0), (438, '<NAME>', 17, 14794), (439, 'Orland', 17, 0), (440, 'Ossian', 17, 0), (441, 'Petroleum', 17, 0), (442, '<NAME>', 17, 0), (443, '<NAME>', 17, 0), (444, 'Poneto', 17, 0), (445, 'Preble', 17, 0), (446, 'Roanoke', 17, 0), (447, '<NAME>', 17, 0), (448, '<NAME>', 17, 0), (449, '<NAME>', 17, 0), (450, '<NAME>', 17, 0), (451, 'Spencerville', 17, 0), (452, 'Stroh', 17, 0), (453, 'Uniondale', 17, 0), (454, 'Warren', 17, 0), (455, 'Waterloo', 17, 0), (456, 'Wawaka', 17, 0), (457, 'Wolcottville', 17, 0), (458, 'Wolflake', 17, 0), (459, 'Woodburn', 17, 1520), (460, 'Yoder', 17, 0), (461, 'Zanesville', 17, 0), (462, '<NAME>', 17, 253691), (463, 'Kokomo', 17, 45468), (464, 'Akron', 17, 0), (465, 'Amboy', 17, 0), (466, 'Athens', 17, 0), (467, 'Bringhurst', 17, 0), (468, '<NAME>', 17, 0), (469, 'Burlington', 17, 0), (470, 'Burrows', 17, 0), (471, 'Camden', 17, 0), (472, 'Converse', 17, 0), (473, 'Cutler', 17, 0), (474, 'Deedsville', 17, 0), (475, 'Delong', 17, 0), (476, 'Delphi', 17, 2893), (477, 'Denver', 17, 0), (478, 'Fairmount', 17, 0), (479, 'Flora', 17, 0), (480, 'Fowlerton', 17, 0), (481, 'Fulton', 17, 0), (482, 'Galveston', 17, 0), (483, '<NAME>', 17, 5965), (484, '<NAME>', 17, 0), (485, 'Greentown', 17, 0), (486, 'Hemlock', 17, 0), (487, 'Jonesboro', 17, 1756), (488, 'Kewanna', 17, 0), (489, '<NAME>', 17, 0), (490, 'Lagro', 17, 0), (491, '<NAME>', 17, 0), (492, 'Laketon', 17, 0), (493, '<NAME>', 17, 0), (494, '<NAME>', 17, 0), (495, 'Logansport', 17, 18396), (496, 'Lucerne', 17, 0), (497, 'Macy', 17, 0), (498, 'Marion', 17, 29948), (499, 'Matthews', 17, 0), (500, 'Mexico', 17, 0), (501, 'Miami', 17, 0), (502, 'Monterey', 17, 0), (503, '<NAME>', 17, 0), (504, 'North Manchester', 17, 0), (505, 'Oakford', 17, 0), (506, 'Onward', 17, 0), (507, 'Ora', 17, 0), (508, 'Peru', 17, 11417), (509, '<NAME>', 17, 0), (510, 'Roann', 17, 0), (511, 'Rochester', 17, 6218), (512, 'Rockfield', 17, 0), (513, 'Royal Center', 17, 0), (514, 'Russiaville', 17, 0), (515, 'Servia', 17, 0), (516, '<NAME>', 17, 0), (517, 'Somerset', 17, 0), (518, 'Star City', 17, 0), (519, 'Swayzee', 17, 0), (520, 'Sweetser', 17, 0), (521, 'Twel<NAME>', 17, 0), (522, 'Upland', 17, 0), (523, 'Urbana', 17, 0), (524, '<NAME>', 17, 0), (525, 'Wabash', 17, 10666), (526, 'Walton', 17, 0), (527, '<NAME>', 17, 0), (528, 'Winamac', 17, 0), (529, 'Young America', 17, 0), (530, 'Aurora', 17, 3750), (531, 'West College Corner', 17, 0), (532, 'Batesville', 17, 6520), (533, 'Bath', 17, 0), (534, 'Bennington', 17, 0), (535, 'Brookville', 17, 0), (536, '<NAME>', 17, 0), (537, 'Cross Plains', 17, 0), (538, 'Dillsboro', 17, 0), (539, 'East Enterprise', 17, 0), (540, 'Florence', 17, 0), (541, 'Friendship', 17, 0), (542, 'Guilford', 17, 0), (543, 'Holton', 17, 0), (544, 'Laurel', 17, 0), (545, 'Lawrenceburg', 17, 5042), (546, 'Metamora', 17, 0), (547, 'Milan', 17, 0), (548, '<NAME>', 17, 0), (549, 'Morris', 17, 0), (550, 'Napoleon', 17, 0), (551, '<NAME>', 17, 0), (552, 'Oldenburg', 17, 0), (553, 'Osgood', 17, 0), (554, 'Patriot', 17, 0), (555, 'Pierceville', 17, 0), (556, '<NAME>', 17, 2304), (557, 'Sunman', 17, 0), (558, 'Versailles', 17, 0), (559, 'Vevay', 17, 0), (560, '<NAME>', 17, 0), (561, 'Austin', 17, 4295), (562, 'Bethlehem', 17, 0), (563, 'Borden', 17, 0), (564, 'Bradford', 17, 0), (565, 'Campbellsburg', 17, 0), (566, 'Central', 17, 0), (567, 'Charlestown', 17, 7585), (568, 'Corydon', 17, 0), (569, 'Crandall', 17, 0), (570, 'Depauw', 17, 0), (571, 'Eckerty', 17, 0), (572, 'Elizabeth', 17, 0), (573, 'English', 17, 0), (574, '<NAME>', 17, 0), (575, 'Fredericksburg', 17, 0), (576, 'Georgetown', 17, 0), (577, 'Grantsburg', 17, 0), (578, 'Greenville', 17, 0), (579, 'Hardinsburg', 17, 0), (580, 'Henryville', 17, 0), (581, 'Clarksville', 17, 0), (582, 'Jeffersonville', 17, 44953), (583, 'Laconia', 17, 0), (584, 'Lanesville', 17, 0), (585, 'Leavenworth', 17, 0), (586, 'Lexington', 17, 0), (587, '<NAME>', 17, 0), (588, 'Marengo', 17, 0), (589, 'Marysville', 17, 0), (590, 'Mauckport', 17, 0), (591, 'Memphis', 17, 0), (592, 'Milltown', 17, 0), (593, '<NAME>', 17, 0), (594, 'Nabb', 17, 0), (595, 'New Albany', 17, 36372), (596, 'New Middletown', 17, 0), (597, 'New Salisbury', 17, 0), (598, 'New Washington', 17, 11509), (599, 'Otisco', 17, 0), (600, 'Palmyra', 17, 0), (601, 'Pekin', 17, 0), (602, 'Ramsey', 17, 0), (603, 'Salem', 17, 6319), (604, 'Scottsburg', 17, 6747), (605, 'Sellersburg', 17, 0), (606, 'Sulphur', 17, 0), (607, 'Taswell', 17, 0), (608, 'Underwood', 17, 0), (609, 'Columbus', 17, 44061), (610, 'Brownstown', 17, 0), (611, 'Butlerville', 17, 2684), (612, 'Canaan', 17, 0), (613, 'Clarksburg', 17, 0), (614, 'Clifford', 17, 0), (615, 'Commiskey', 17, 0), (616, 'Cortland', 17, 0), (617, 'Crothersville', 17, 0), (618, 'Deputy', 17, 0), (619, 'Dupont', 17, 0), (620, 'Elizabethtown', 17, 0), (621, '<NAME>', 17, 0), (622, 'Freetown', 17, 0), (623, 'Grammer', 17, 0), (624, 'Greensburg', 17, 11492), (625, 'Hanover', 17, 0), (626, 'Hartsville', 17, 0), (627, 'Hayden', 17, 0), (628, 'Hope', 17, 0), (629, 'Jonesville', 17, 0), (630, 'Kurtz', 17, 0), (631, 'Madison', 17, 11967), (632, 'Medora', 17, 0), (633, 'Millhousen', 17, 0), (634, '<NAME>', 17, 0), (635, 'Norman', 17, 0), (636, '<NAME>', 17, 6728), (637, '<NAME>', 17, 0), (638, '<NAME>', 17, 0), (639, 'Scipio', 17, 0), (640, 'Seymour', 17, 17503), (641, 'Taylorsville', 17, 0), (642, 'Vallonia', 17, 0), (643, 'Vernon', 17, 0), (644, 'Westport', 17, 0), (645, 'Muncie', 17, 70085), (646, 'Albany', 17, 0), (647, 'Bentonville', 17, 0), (648, 'Boston', 17, 0), (649, 'Brownsville', 17, 0), (650, 'Bryant', 17, 0), (651, 'Cambridge City', 17, 0), (652, 'Centerville', 17, 0), (653, 'Connersville', 17, 13481), (654, 'Daleville', 17, 0), (655, 'Dublin', 17, 0), (656, 'Dunkirk', 17, 2362), (657, 'Dunreith', 17, 0), (658, 'Eaton', 17, 0), (659, 'Economy', 17, 0), (660, 'Farmland', 17, 0), (661, 'Fountain City', 17, 0), (662, 'Gaston', 17, 0), (663, 'Greensboro', 17, 0), (664, '<NAME>', 17, 0), (665, 'Hagerstown', 17, 0), (666, 'Hartford City', 17, 6220), (667, 'Kennard', 17, 0), (668, 'Lewisville', 17, 0), (669, 'Liberty', 17, 0), (670, 'Losantville', 17, 0), (671, 'Lynn', 17, 0), (672, 'Middletown', 17, 0), (673, 'Milton', 17, 0), (674, 'Modoc', 17, 0), (675, 'Montpelier', 17, 1805), (676, 'Mooreland', 17, 0), (677, 'Mount Summit', 17, 0), (678, '<NAME>', 17, 18114), (679, '<NAME>', 17, 0), (680, 'Oakville', 17, 0), (681, 'Parker City', 17, 0), (682, 'Pennville', 17, 0), (683, 'Pershing', 17, 0), (684, 'Portland', 17, 6223), (685, 'Redkey', 17, 0), (686, 'Richmond', 17, 36812), (687, 'Ridgeville', 17, 0), (688, 'Salamonia', 17, 0), (689, 'Saratoga', 17, 0), (690, 'Selma', 17, 0), (691, 'Shirley', 17, 0), (692, 'Spiceland', 17, 0), (693, 'Springport', 17, 0), (694, 'Straughn', 17, 0), (695, '<NAME>', 17, 0), (696, 'Union City', 17, 3584), (697, 'Webster', 17, 0), (698, 'Williamsburg', 17, 0), (699, 'Winchester', 17, 4935), (700, 'Yorktown', 17, 0), (701, 'Bloomington', 17, 80405), (702, 'Avoca', 17, 0), (703, 'Bedford', 17, 13413), (704, 'Bloomfield', 17, 0), (705, '<NAME>', 17, 0), (706, '<NAME>', 17, 0), (707, 'Ellettsville', 17, 0), (708, '<NAME>', 17, 0), (709, 'Freedom', 17, 0), (710, '<NAME>', 17, 0), (711, 'Gosport', 17, 0), (712, 'Harrodsburg', 17, 0), (713, 'Helmsburg', 17, 0), (714, 'Heltonville', 17, 0), (715, 'Huron', 17, 0), (716, 'Jasonville', 17, 2222), (717, 'Koleen', 17, 0), (718, 'Linton', 17, 5413), (719, 'Lyons', 17, 0), (720, 'Midland', 17, 0), (721, 'Mitchell', 17, 4350), (722, 'Nashville', 17, 0), (723, 'Newberry', 17, 0), (724, 'Oolitic', 17, 0), (725, 'Orleans', 17, 0), (726, 'Owensburg', 17, 0), (727, 'Paoli', 17, 0), (728, 'Patricksburg', 17, 0), (729, 'Quincy', 17, 0), (730, 'Scotland', 17, 0), (731, 'Smithville', 17, 0), (732, 'Solsberry', 17, 0), (733, 'Spencer', 17, 0), (734, 'Springville', 17, 0), (735, 'Stanford', 17, 0), (736, 'Stinesville', 17, 0), (737, '<NAME>', 17, 0), (738, 'Tunnelton', 17, 0), (739, 'Unionville', 17, 0), (740, 'West Baden Springs', 17, 0), (741, 'Williams', 17, 0), (742, 'Worthington', 17, 0), (743, 'Washington', 17, 11509), (744, 'Bicknell', 17, 2915), (745, 'Birdseye', 17, 0), (746, 'Branchville', 17, 0), (747, 'Bristow', 17, 0), (748, 'Bruceville', 17, 0), (749, 'Cannelburg', 17, 0), (750, 'Cannelton', 17, 1563), (751, 'Celestine', 17, 0), (752, 'Crane', 17, 0), (753, 'Dale', 17, 0), (754, 'Decker', 17, 0), (755, 'Derby', 17, 0), (756, 'Dubois', 17, 0), (757, 'Edwardsport', 17, 0), (758, 'Elnora', 17, 0), (759, 'Evanston', 17, 0), (760, 'Ferdinand', 17, 0), (761, 'Freelandville', 17, 0), (762, 'Fulda', 17, 0), (763, 'Gentryville', 17, 0), (764, 'Holland', 17, 0), (765, 'Huntingburg', 17, 6057), (766, 'Ireland', 17, 0), (767, 'Jasper', 17, 15038), (768, 'Lamar', 17, 0), (769, 'Leopold', 17, 0), (770, '<NAME>', 17, 0), (771, 'Loogootee', 17, 2751), (772, '<NAME>', 17, 0), (773, '<NAME>', 17, 0), (774, 'Montgomery', 17, 0), (775, 'Oaktown', 17, 0), (776, 'Odon', 17, 0), (777, 'Otwell', 17, 0), (778, 'Petersburg', 17, 2383), (779, 'Plainville', 17, 0), (780, 'Ragsdale', 17, 0), (781, 'Rome', 17, 0), (782, '<NAME>', 17, 0), (783, '<NAME>', 17, 0), (784, '<NAME>', 17, 0), (785, 'Sandborn', 17, 0), (786, '<NAME>', 17, 0), (787, 'Schnellville', 17, 0), (788, 'Shoals', 17, 0), (789, 'Spurgeon', 17, 0), (790, 'Stendal', 17, 0), (791, 'Tell City', 17, 7272), (792, 'Troy', 17, 0), (793, 'Velpen', 17, 0), (794, 'Vincennes', 17, 18423), (795, 'Westphalia', 17, 0), (796, 'Wheatland', 17, 0), (797, 'Winslow', 17, 0), (798, 'Boonville', 17, 6246), (799, 'Chandler', 17, 0), (800, 'Chrisney', 17, 0), (801, 'Cynthiana', 17, 0), (802, 'Elberfeld', 17, 0), (803, 'Folsomville', 17, 0), (804, 'Grandview', 17, 0), (805, 'Griffin', 17, 0), (806, 'Hatfield', 17, 0), (807, 'Inglefield', 17, 0), (808, 'Lynnville', 17, 0), (809, '<NAME>', 17, 6687), (810, 'Newburgh', 17, 0), (811, '<NAME>', 17, 0), (812, 'Poseyville', 17, 0), (813, 'Richland', 17, 0), (814, 'Rockport', 17, 2270), (815, 'Tennyson', 17, 0), (816, 'Wadesville', 17, 0), (817, 'Haubstadt', 17, 0), (818, 'Hazleton', 17, 0), (819, 'Buckskin', 17, 0), (820, '<NAME>', 17, 0), (821, 'Francisco', 17, 0), (822, 'Mackey', 17, 0), (823, 'Oakland City', 17, 2429), (824, 'Owensville', 17, 0), (825, 'Patoka', 17, 0), (826, 'Princeton', 17, 8644), (827, 'Somerville', 17, 0), (828, 'Evansville', 17, 117429), (829, '<NAME>', 17, 60785), (830, 'Bellmore', 17, 0), (831, 'Blanford', 17, 0), (832, 'Bloomingdale', 17, 0), (833, '<NAME>', 17, 0), (834, 'Brazil', 17, 7912), (835, 'Bridgeton', 17, 0), (836, 'Carbon', 17, 0), (837, 'Carlisle', 17, 0), (838, 'Centerpoint', 17, 0), (839, 'Clay City', 17, 0), (840, 'Clinton', 17, 4893), (841, 'Coalmont', 17, 0), (842, 'Cory', 17, 0), (843, 'Dana', 17, 0), (844, 'Dugger', 17, 0), (845, 'Fairbanks', 17, 0), (846, 'Farmersburg', 17, 0), (847, 'Fontanet', 17, 0), (848, 'Graysville', 17, 0), (849, 'Harmony', 17, 0), (850, 'Hillsdale', 17, 0), (851, 'Hymera', 17, 0), (852, 'Judson', 17, 0), (853, 'Knightsville', 17, 0), (854, 'Lewis', 17, 0), (855, 'Marshall', 17, 0), (856, 'Mecca', 17, 0), (857, 'Merom', 17, 0), (858, 'Montezuma', 17, 0), (859, '<NAME>', 17, 31719), (860, '<NAME>', 17, 15792), (861, 'Paxton', 17, 0), (862, 'Pimento', 17, 0), (863, 'Poland', 17, 0), (864, '<NAME>', 17, 0), (865, 'Prairieton', 17, 0), (866, 'Riley', 17, 0), (867, 'Rockville', 17, 0), (868, 'Rosedale', 17, 0), (869, '<NAME>', 17, 0), (870, '<NAME> Of The Woods', 17, 0), (871, 'Seelyville', 17, 0), (872, 'Shelburn', 17, 0), (873, 'Shepardsville', 17, 0), (874, 'Staunton', 17, 0), (875, 'Sullivan', 17, 4249), (876, 'Universal', 17, 0), (877, 'West Ter<NAME>', 17, 60785), (878, 'Lafayette', 17, 67140), (879, 'West Lafayette', 17, 29596), (880, 'Alamo', 17, 0), (881, 'Ambia', 17, 0), (882, 'Attica', 17, 3245), (883, 'Battle Ground', 17, 0), (884, 'Boswell', 17, 0), (885, 'Brook', 17, 0), (886, 'Brookston', 17, 0), (887, '<NAME>', 17, 0), (888, 'Buffalo', 17, 0), (889, 'Burnettsville', 17, 0), (890, 'Cayuga', 17, 0), (891, 'Chalmers', 17, 0), (892, '<NAME>', 17, 0), (893, 'Covington', 17, 2645), (894, 'Crawfordsville', 17, 15915), (895, 'Darlington', 17, 0), (896, 'Dayton', 17, 0), (897, '<NAME>', 17, 0), (898, '<NAME>', 17, 0), (899, 'Fowler', 17, 0), (900, 'Francesville', 17, 0), (901, 'Goodland', 17, 0), (902, 'Hillsboro', 17, 0), (903, 'Idaville', 17, 0), (904, 'Kentland', 17, 0), (905, 'Kingman', 17, 0), (906, 'Ladoga', 17, 0), (907, 'Linden', 17, 0), (908, 'Medaryville', 17, 0), (909, 'Mellott', 17, 0), (910, 'Monon', 17, 0), (911, 'Monticello', 17, 5378), (912, 'Montmorenci', 17, 0), (913, 'Morocco', 17, 0), (914, '<NAME>', 17, 0), (915, '<NAME>', 17, 0), (916, 'Newport', 17, 0), (917, '<NAME>', 17, 36812), (918, '<NAME>', 17, 0), (919, 'Newtown', 17, 0), (920, 'Otterbein', 17, 0), (921, 'Oxford', 17, 0), (922, 'Perrysville', 17, 0), (923, 'Pine Village', 17, 0), (924, 'Remington', 17, 0), (925, 'Rensselaer', 17, 5859), (926, 'Reynolds', 17, 0), (927, 'Romney', 17, 0), (928, '<NAME>', 17, 0), (929, 'Stockwell', 17, 0), (930, 'Talbot', 17, 0), (931, 'Templeton', 17, 0), (932, 'Veedersburg', 17, 0), (933, 'Wallace', 17, 0), (934, 'Waveland', 17, 0), (935, 'Waynetown', 17, 0), (936, '<NAME>', 17, 15792), (937, 'Westpoint', 17, 0), (938, 'Williamsport', 17, 0), (939, 'Wingate', 17, 0), (940, 'Wolcott', 17, 0), (941, 'Yeoman', 17, 0), (942, 'Algonac', 24, 4110), (943, 'Allenton', 24, 0), (944, 'Almont', 24, 0), (945, 'Anchorville', 24, 0), (946, 'Armada', 24, 0), (947, 'Avoca', 24, 0), (948, 'Troy', 24, 80980), (949, 'Birmingham', 24, 20103), (950, 'Capac', 24, 0), (951, '<NAME>', 24, 8257), (952, 'Clawson', 24, 11825), (953, 'Eastpointe', 24, 32442), (954, 'Emmett', 24, 0), (955, 'Fair Haven', 24, 0), (956, 'Franklin', 24, 0), (957, 'Fraser', 24, 14480), (958, 'Goodells', 24, 0), (959, 'Harsens Island', 24, 0), (960, 'Hazel Park', 24, 16422), (961, 'Jeddo', 24, 0), (962, 'Southfield', 24, 71739), (963, 'Clinton Township', 24, 441), (964, 'Marine City', 24, 4248), (965, 'Marysville', 24, 9959), (966, 'Memphis', 24, 360), (967, 'Macomb', 24, 0), (968, '<NAME>', 24, 16314), (969, 'Harrison Township', 24, 2114), (970, 'New Baltimore', 24, 12084), (971, 'New Haven', 24, 0), (972, 'North Street', 24, 0), (973, 'East China', 24, 0), (974, '<NAME>', 24, 0), (975, '<NAME>', 24, 30184), (976, 'Richmond', 24, 2), (977, 'Columbus', 24, 0), (978, 'Casco', 24, 0), (979, 'Romeo', 24, 0), (980, 'Roseville', 24, 47299), (981, '<NAME>', 24, 57236), (982, '<NAME>', 24, 2526), (983, '<NAME>', 24, 6238), (984, '<NAME>', 24, 29694), (985, 'Berkley', 24, 14970), (986, '<NAME>', 24, 0), (987, '<NAME>', 24, 0), (988, '<NAME>', 24, 0), (989, 'Warren', 24, 134056), (990, 'Washington', 24, 0), (991, 'Ray', 24, 0), (992, 'Yale', 24, 1955), (993, '<NAME>', 24, 28210), (994, '<NAME>', 24, 113934), (995, 'Azalia', 24, 0), (996, 'Belleville', 24, 3991), (997, 'Brighton', 24, 7444), (998, 'Bridgewater', 24, 0), (999, 'Carleton', 24, 0), (1000, 'Chelsea', 24, 4944); CREATE TABLE IF NOT EXISTS `states` ( `id` int(2) NOT NULL, `name` varchar(30) NOT NULL, `abbrev` varchar(2) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=55 ; -- -- Dumping data for table `states` -- INSERT INTO `states` (`id`, `name`, `abbrev`) VALUES (1, 'Alaska', 'AK'), (2, 'Alabama', 'AL'), (3, 'Arkansas', 'AR'), (4, 'Arizona', 'AZ'), (5, 'California', 'CA'), (6, 'Colorado', 'CO'), (7, 'Connecticut', 'CT'), (8, 'District of Columbia', 'DC'), (9, 'Deleware', 'DE'), (10, 'Florida', 'FL'), (11, 'GEORGIA', 'GA'), (12, 'Guam', 'GU'), (13, 'Hawaii', 'HI'), (14, 'Iowa', 'IA'), (15, 'Idaho', 'ID'), (16, 'Illinois', 'IL'), (17, 'Indiana', 'IN'), (18, 'Kansas', 'KS'), (19, 'Kentucky', 'KY'), (20, 'Louisiana', 'LA'), (21, 'Massachusetts', 'MA'), (22, 'Maine', 'ME'), (23, 'Maryland', 'MD'), (24, 'Michigan', 'MI'), (25, 'Minnesota', 'MN'), (26, 'Missouri', 'MO'), (27, 'Mississippi', 'MS'), (28, 'Montana', 'MT'), (29, 'North Carolina', 'NC'), (30, 'North Dakota', 'ND'), (31, 'Nebraska', 'NE'), (32, 'New Hampshire', 'NH'), (33, 'New Jersey', 'NJ'), (34, 'New Mexico', 'NM'), (35, 'Nevada', 'NV'), (36, 'New York', 'NY'), (37, 'Ohio', 'OH'), (38, 'Oklahoma', 'OK'), (39, 'Oregon', 'OR'), (40, 'Pennsylvania', 'PA'), (41, 'Puerto Rico', 'PR'), (42, 'Rhode Island', 'RI'), (43, 'South Carolina', 'SC'), (44, 'South Dakota', 'SD'), (45, 'Tennessee', 'TN'), (46, 'Texas', 'TX'), (47, 'Utah', 'UT'), (48, 'Virginia', 'VA'), (49, 'Virgin Islands', 'VI'), (50, 'Vermont', 'VT'), (51, 'Washington', 'WA'), (52, 'Wisconsin', 'WI'), (53, 'West Virginia', 'WV'), (54, 'Wyoming', 'WY'); -- -- Indexes for dumped tables -- -- -- Indexes for table `states` -- ALTER TABLE `states` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `abbrev` (`abbrev`);
CREATE VIEW [dbo].[SexTypeScores] AS SELECT TOP 100000 T.ZnoYear ,T.SexTypeName ,N ,AvgScore ,MedScore ,Exams ,FailedExams ,PassRate FROM (SELECT ZnoYear, SexTypeName ,COUNT(DISTINCT OutID) AS N ,AVG([Score]) AvgScore ,COUNT([Score]) AS Exams ,SUM(CAST([IsFailed] AS tinyint)) FailedExams , 1 - 1.0 * SUM(CAST([IsFailed] AS tinyint))/ COUNT([Score]) AS PassRate FROM [dbo].[Scores] GROUP BY ZnoYear, SexTypeName) AS T INNER JOIN (SELECT DISTINCT ZnoYear, SexTypeName , PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY [Score]) OVER (PARTITION BY ZnoYear, SexTypeName) AS MedScore FROM [dbo].[Scores] ) AS M ON (T.SexTypeName = M.SexTypeName AND T.ZnoYear = M.ZnoYear) ORDER BY T.ZnoYear, T.SexTypeName
<reponame>chaunceyau/nestjs-relay-demo<gh_stars>1-10 -- CreateTable CREATE TABLE "User" ( "id" SERIAL NOT NULL, "email" TEXT NOT NULL, "company_id" INTEGER NOT NULL, PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "Company" ( "id" SERIAL NOT NULL, "title" TEXT NOT NULL, PRIMARY KEY ("id") ); -- AddForeignKey ALTER TABLE "User" ADD FOREIGN KEY ("company_id") REFERENCES "Company"("id") ON DELETE CASCADE ON UPDATE CASCADE;
<reponame>jermiy/services-core -- test_login_user_01 insert into core.core_settings(name, value) values ('jwt_secret', '<KEY>'), ('subscription_interval', '1 month'); insert into platform_service.users(id, name, email, password) values ('<PASSWORD>', 'test login user 01', '<EMAIL>', crypt('123456', gen_salt('bf'))); insert into platform_service.platforms(id, name, token) values ('<KEY>', 'test_platform_01', 'a28be766-bb36-4821-82ec-768d2634d78b'); insert into platform_service.platform_users(platform_id, user_id) values ('<KEY>', '6d870ed7-65c7-4419-b78b-3946e6f6e695'); insert into platform_service.platform_api_keys(platform_id, token) values('<KEY>', '<KEY>IDE1MDQxMzM0NDB9.30t56HzhKy8IvYRryWSXRePQlo3ClI5_fN3U-d-dV5A'); insert into community_service.users(platform_id, id, email, password, key, data) values ('8187a11e-6fa5-4561-a5e5-83329236fbd6', 'd44378a2-3637-447c-9f57-dc20fff574db', '<EMAIL>', crypt('123456', gen_salt('bf')), 'b58df795-56a1-4d16-9f83-fb33cfbddd6f', json_build_object('name', 'test community user 01')::jsonb), ('8187a11e-6fa5-4561-a5e5-83329236fbd6', 'bb8f4478-df41-411c-8ed7-12c034044c0e', '<EMAIL>', crypt('123456', gen_salt('bf')), 'ef6283de-32b7-4d92-91f7-8925d22a3c63', json_build_object('name', 'test community user 02')::jsonb); insert into project_service.projects(id, platform_id, user_id, name, status, mode, permalink, data) values ('52273d0a-1610-4f48-9239-e96e5861c3d3', '8187a11e-6fa5-4561-a5e5-83329236fbd6', 'bb8f4478-df41-411c-8ed7-12c034044c0e', 'test project 01', 'online', 'sub', 'test_project', json_build_object('name', 'test project 01')); insert into project_service.rewards(id, project_id, data) values ('c73f7f8d-df29-45b1-87ee-cecd9dc2cc7d', '52273d0a-1610-4f48-9239-e96e5861c3d3', json_build_object('current_ip', '127.0.0.1', 'minimum_value', 1200::decimal, 'maximum_contributions', 0, 'shipping_options', 'free'::project_service.shipping_options_enum, 'deliver_at', ('2 months'::interval + now())::timestamp, 'row_order', 1, 'title', 'test title reward', 'description', 'test reward description', 'metadata', '{}'::json )::jsonb); insert into payment_service.credit_cards(id, platform_id, user_id, gateway, gateway_data) values ('a41e44d9-5834-4371-afdd-b36bffa8ef9b', '8187a11e-6fa5-4561-a5e5-83329236fbd6', 'd44378a2-3637-447c-9f57-dc20fff574db', 'pagarme', json_build_object( 'id', 123)); insert into payment_service.subscriptions(id, platform_id, project_id, user_id, credit_card_id, status, created_at, checkout_data) values ('da484d9e-1df2-491f-868b-8aa7ee52680a', '8187a11e-6fa5-4561-a5e5-83329236fbd6', '52273d0a-1610-4f48-9239-e96e5861c3d3', 'd44378a2-3637-447c-9f57-dc20fff574db', 'a41e44d9-5834-4371-afdd-b36bffa8ef9b', 'active', now(), '{"amount": "1500", "customer": {"phone": {"ddd": "21", "ddi": "55", "number": "933448877"}, "address": {"city": "lorem", "state": "MG", "street": "Rua lorem ipsum", "country": "Brasil", "zipcode": "33600000", "neighborhood": "bairro", "complementary": "comple", "street_number": "200"}}, "current_ip": "127.0.0.1", "payment_method": "credit_card", "is_international": false}'::jsonb), ('18124332-701d-4d29-9ab6-6471680edfb5', '8187a11e-6fa5-4561-a5e5-83329236fbd6', '52273d0a-1610-4f48-9239-e96e5861c3d3', 'bb8f4478-df41-411c-8ed7-12c034044c0e', 'a41e44d9-5834-4371-afdd-b36bffa8ef9b', 'active', now(), '{"amount": "1500", "customer": {"phone": {"ddd": "21", "ddi": "55", "number": "933448877"}, "address": {"city": "lorem", "state": "MG", "street": "Rua lorem ipsum", "country": "Brasil", "zipcode": "33600000", "neighborhood": "bairro", "complementary": "comple", "street_number": "200"}}, "current_ip": "127.0.0.1", "payment_method": "credit_card", "is_international": false}'::jsonb); insert into payment_service.catalog_payments(id, subscription_id, project_id, platform_id, user_id, created_at, data, status, gateway) values ('cf5dc490-b5bc-4211-8e08-b49219977938', 'da484d9e-1df2-491f-868b-8aa7ee52680a', '52273d0a-1610-4f48-9239-e96e5861c3d3', '8187a11e-6fa5-4561-a5e5-83329236fbd6', 'd44378a2-3637-447c-9f57-dc20fff574db', now(), '{}'::jsonb, 'pending', 'pagarme'); select payment_service.transition_to(cp, 'paid', '{"test": true}'::json) from payment_service.catalog_payments cp where cp.id = 'cf5dc490-b5bc-4211-8e08-b49219977938'; -- transition payment to paid insert into notification_service.notification_global_templates (label, subject, template) values ( 'paid_subscription_payment', 'subject {{project_name}}', '<p>template {{user_name}}</p>' );
<gh_stars>0 connect SYS/change_on_install as SYSDBA set echo on spool C:\oracle\ora920\assistants\dbca\logs\interMedia.log @C:\oracle\ora920\ord\im\admin\iminst.sql; spool off exit;