sql stringlengths 6 1.05M |
|---|
-- phpMyAdmin SQL Dump
-- version 4.4.12
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jun 14, 2016 at 03:53 PM
-- Server version: 5.6.25
-- PHP Version: 5.6.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `uscdb`
--
-- --------------------------------------------------------
--
-- Table structure for table `audit_trails`
--
CREATE TABLE IF NOT EXISTS `audit_trails` (
`AuditTrailID` int(10) unsigned NOT NULL,
`Action` text COLLATE utf8_unicode_ci NOT NULL,
`UserUnitID` int(11) NOT NULL,
`UnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `chiefs`
--
CREATE TABLE IF NOT EXISTS `chiefs` (
`ChiefID` int(10) unsigned NOT NULL,
`ChiefName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`ChiefAbbreviation` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`PicturePath` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `chiefs`
--
INSERT INTO `chiefs` (`ChiefID`, `ChiefName`, `ChiefAbbreviation`, `PicturePath`, `created_at`, `updated_at`) VALUES
(1, 'Chief, PNP', 'C, PNP', '4gETN9mKU4bOjOPN43rYD1oL5KPYVGkW.png', '2016-04-29 00:53:52', '2016-05-02 06:55:47');
-- --------------------------------------------------------
--
-- Table structure for table `chief_accomplishments`
--
CREATE TABLE IF NOT EXISTS `chief_accomplishments` (
`ChiefAccomplishmentID` int(10) unsigned NOT NULL,
`JanuaryAccomplishment` double(8,2) NOT NULL,
`FebruaryAccomplishment` double(8,2) NOT NULL,
`MarchAccomplishment` double(8,2) NOT NULL,
`AprilAccomplishment` double(8,2) NOT NULL,
`MayAccomplishment` double(8,2) NOT NULL,
`JuneAccomplishment` double(8,2) NOT NULL,
`JulyAccomplishment` double(8,2) NOT NULL,
`AugustAccomplishment` double(8,2) NOT NULL,
`SeptemberAccomplishment` double(8,2) NOT NULL,
`OctoberAccomplishment` double(8,2) NOT NULL,
`NovemberAccomplishment` double(8,2) NOT NULL,
`DecemberAccomplishment` double(8,2) NOT NULL,
`AccomplishmentDate` date NOT NULL,
`ChiefMeasureID` int(11) NOT NULL,
`ChiefID` int(11) NOT NULL,
`UserChiefID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `chief_audit_trails`
--
CREATE TABLE IF NOT EXISTS `chief_audit_trails` (
`ChiefAuditTrailID` int(10) unsigned NOT NULL,
`Action` text COLLATE utf8_unicode_ci NOT NULL,
`UserChiefID` int(11) NOT NULL,
`ChiefID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `chief_fundings`
--
CREATE TABLE IF NOT EXISTS `chief_fundings` (
`ChiefFundingID` int(10) unsigned NOT NULL,
`ChiefFundingEstimate` float NOT NULL,
`ChiefFundingActual` float NOT NULL,
`ChiefFundingDate` date NOT NULL,
`ChiefMeasureID` int(11) NOT NULL,
`ChiefID` int(11) NOT NULL,
`UserChiefID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `chief_initiatives`
--
CREATE TABLE IF NOT EXISTS `chief_initiatives` (
`ChiefInitiativeID` int(10) unsigned NOT NULL,
`ChiefInitiativeContent` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`ChiefInitiativeDate` date NOT NULL,
`ChiefMeasureID` int(11) NOT NULL,
`ChiefID` int(11) NOT NULL,
`UserChiefID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `chief_logs`
--
CREATE TABLE IF NOT EXISTS `chief_logs` (
`ChiefLogID` int(10) unsigned NOT NULL,
`ChiefUserID` int(11) NOT NULL,
`LogDateTime` datetime NOT NULL,
`LogType` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`IPAddress` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `chief_measures`
--
CREATE TABLE IF NOT EXISTS `chief_measures` (
`ChiefMeasureID` int(10) unsigned NOT NULL,
`ChiefMeasureName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`ChiefMeasureType` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`ChiefMeasureFormula` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`ChiefObjectiveID` int(11) NOT NULL,
`ChiefID` int(11) NOT NULL,
`UserChiefID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `chief_objectives`
--
CREATE TABLE IF NOT EXISTS `chief_objectives` (
`ChiefObjectiveID` int(10) unsigned NOT NULL,
`ChiefObjectiveName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`PerspectiveID` int(11) NOT NULL,
`UserChiefID` int(11) NOT NULL,
`ChiefID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `chief_owners`
--
CREATE TABLE IF NOT EXISTS `chief_owners` (
`ChiefOwnerID` int(10) unsigned NOT NULL,
`ChiefOwnerContent` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`ChiefOwnerDate` date NOT NULL,
`ChiefMeasureID` int(11) NOT NULL,
`ChiefID` int(11) NOT NULL,
`UserChiefID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `chief_targets`
--
CREATE TABLE IF NOT EXISTS `chief_targets` (
`ChiefTargetID` int(10) unsigned NOT NULL,
`JanuaryTarget` float NOT NULL,
`FebruaryTarget` float NOT NULL,
`MarchTarget` float NOT NULL,
`AprilTarget` float NOT NULL,
`MayTarget` float NOT NULL,
`JuneTarget` float NOT NULL,
`JulyTarget` float NOT NULL,
`AugustTarget` float NOT NULL,
`SeptemberTarget` float NOT NULL,
`OctoberTarget` float NOT NULL,
`NovemberTarget` float NOT NULL,
`DecemberTarget` float NOT NULL,
`TargetDate` date NOT NULL,
`Termination` date DEFAULT NULL,
`TargetPeriod` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`ChiefMeasureID` int(11) NOT NULL,
`ChiefAccomplishmentID` int(11) NOT NULL,
`ChiefOwnerID` int(11) NOT NULL,
`ChiefInitiativeID` int(11) NOT NULL,
`ChiefFundingID` int(11) NOT NULL,
`ChiefID` int(11) NOT NULL,
`UserChiefID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE IF NOT EXISTS `migrations` (
`migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`migration`, `batch`) VALUES
('2014_10_12_000000_create_users_table', 1),
('2014_10_12_100000_create_password_resets_table', 1),
('2016_03_15_045535_create_perspectives_table', 2),
('2016_03_15_054123_create_regions_table', 3),
('2016_03_15_060501_create_units_table', 4),
('2016_03_15_072510_create_divisions_table', 5),
('2016_03_15_074053_create_ranks_table', 6),
('2016_03_15_080136_create_user_units_table', 7),
('2016_03_15_151524_create_unit_objectives_table', 8),
('2016_04_06_150225_create_unit_measures_table', 9),
('2016_04_07_071302_create_user_logs_table', 10),
('2016_04_07_084303_create_audit_trails_table', 11),
('2016_04_26_043528_create_staff_table', 12),
('2016_04_26_044546_create_chiefs_table', 12),
('2016_04_26_054235_create_chief_objectives_table', 13),
('2016_04_26_055040_create_user_staffs_table', 13),
('2016_04_26_055723_create_staff_objectives_table', 13),
('2016_04_26_071024_create_user_chiefs_table', 13),
('2016_04_28_171855_create_chief_measures_table', 13),
('2016_05_03_012025_create_staff_measures_table', 14),
('2016_05_02_093523_create_staff_logs_table', 15),
('2016_05_02_103736_create_chief_logs_table', 15),
('2016_05_02_133854_create_staff_audit_trails_table', 15),
('2016_05_02_134952_create_chief_audit_trails_table', 15),
('2016_05_03_110248_create_chief_targets_table', 16),
('2016_05_10_113640_create_staff_targets_table', 17),
('2016_05_10_134942_create_unit_targets_table', 17),
('2016_05_10_161002_create_chief_accomplishments_table', 17),
('2016_05_10_161848_create_staff_accomplishments_table', 17),
('2016_05_10_163150_create_unit_accomplishments_table', 17),
('2016_05_10_164336_create_chief_owners_table', 17),
('2016_05_11_090954_create_staff_owners_table', 17),
('2016_05_11_091909_create_unit_owners_table', 17),
('2016_05_11_092840_create_chief_initiatives_table', 17),
('2016_05_11_093745_create_staff_initiatives_table', 17),
('2016_05_11_094029_create_unit_initiatives_table', 17),
('2016_05_11_094322_create_chief_fundings_table', 17),
('2016_05_11_094335_create_staff_fundings_table', 17),
('2016_05_11_094351_create_unit_fundings_table', 17),
('2016_06_02_202936_create_secondary_units_table', 18),
('2016_06_02_204805_create_user_secondary_units_table', 18),
('2016_06_02_205840_create_secondary_unit_measures_table', 18),
('2016_06_02_210842_create_secondary_unit_objectives_table', 18),
('2016_06_02_212212_create_secondary_unit_targets_table', 18),
('2016_06_02_212838_create_secondary_unit_accomplishments_table', 18),
('2016_06_02_220322_create_secondary_unit_fundings_table', 18),
('2016_06_02_222255_create_secondary_unit_initiatives_table', 18),
('2016_06_02_224629_create_secondary_unit_owners_table', 18),
('2016_06_04_093619_create_tertiary_units_table', 18),
('2016_06_04_103309_create_tertiary_unit_objectives_table', 18),
('2016_06_04_103948_create_tertiary_unit_measures_table', 18),
('2016_06_04_104915_create_tertiary_unit_targets_table', 18),
('2016_06_03_140558_create_tertiary_audit_trails_table', 19),
('2016_06_04_093541_create_user_tertiary_units_table', 20),
('2016_06_07_101407_create_tertiary_unit_accomplishments_table', 20),
('2016_06_07_101835_create_tertiary_unit_owners_table', 20),
('2016_06_07_102236_create_tertiary_unit_fundings_table', 20),
('2016_06_07_102658_create_tertiary_unit_initiatives_table', 20),
('2016_06_07_101223_create_secondary_audit_trails_table', 21);
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE IF NOT EXISTS `password_resets` (
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `perspectives`
--
CREATE TABLE IF NOT EXISTS `perspectives` (
`PerspectiveID` int(10) unsigned NOT NULL,
`PerspectiveName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `perspectives`
--
INSERT INTO `perspectives` (`PerspectiveID`, `PerspectiveName`, `created_at`, `updated_at`) VALUES
(1, 'Community', '2016-03-14 21:36:20', '2016-03-14 21:36:35'),
(2, 'Learning and Growth', '2016-03-14 21:38:53', '2016-03-14 21:38:53'),
(3, 'Process Excellence', '2016-04-05 00:49:03', '2016-04-05 00:49:03'),
(4, 'Resource Management', '2016-05-02 06:04:23', '2016-05-10 09:58:13');
-- --------------------------------------------------------
--
-- Table structure for table `ranks`
--
CREATE TABLE IF NOT EXISTS `ranks` (
`RankID` int(10) unsigned NOT NULL,
`RankName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`RankCode` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`Hierarchy` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `ranks`
--
INSERT INTO `ranks` (`RankID`, `RankName`, `RankCode`, `Hierarchy`, `created_at`, `updated_at`) VALUES
(1, 'Police Director General', 'PDG', 1, '2016-03-14 23:53:37', '2016-05-06 07:26:22'),
(2, 'Police Deputy Director General', 'PDDG', 2, '2016-03-14 23:53:58', '2016-03-14 23:53:58'),
(3, 'Police Director', 'PDIR', 3, '2016-03-14 23:54:32', '2016-03-14 23:54:32'),
(4, 'Police Chief Superintendent', 'PCSUPT', 4, '2016-03-14 23:55:08', '2016-03-14 23:55:08'),
(5, 'Police Senior Superintendent', 'PSSUPT', 5, '2016-03-14 23:55:26', '2016-03-14 23:55:26'),
(6, 'Police Superintendent', 'PSUPT', 6, '2016-03-14 23:55:40', '2016-03-14 23:55:40'),
(7, 'Police Chief Inspector', 'PCINSP', 7, '2016-03-14 23:56:01', '2016-03-14 23:56:01'),
(8, 'Police Senior Inspector', 'PSINSP', 8, '2016-03-14 23:56:33', '2016-03-14 23:56:33'),
(9, 'Police Inspector', 'PINSP', 9, '2016-03-14 23:56:45', '2016-03-14 23:56:45'),
(10, 'Non Uniformed Personnel', 'NUP', 17, '2016-03-14 23:57:04', '2016-05-02 06:53:33'),
(11, 'Senior Police Officer 4', 'SPO4', 10, '2016-03-14 23:57:25', '2016-05-02 06:50:55'),
(12, 'Senior Police Officer 3', 'SPO3', 11, '2016-05-02 06:42:33', '2016-05-02 06:51:01'),
(13, 'Senior Police Officer 2', 'SPO2', 12, '2016-05-02 06:43:06', '2016-05-02 06:51:08'),
(14, 'Senior Police Office 1', 'SPO1', 13, '2016-05-02 06:44:42', '2016-05-02 06:51:15'),
(15, 'Police Officer 3', 'PO3', 14, '2016-05-02 06:51:46', '2016-05-02 06:51:46'),
(16, 'Police Officer 2', 'PO2', 15, '2016-05-02 06:53:01', '2016-05-02 06:53:01'),
(17, 'Police Officer 1', 'PO1', 16, '2016-05-02 06:53:20', '2016-05-02 06:53:20'),
(18, 'Civilian', 'CIV', 18, '2016-05-02 06:53:46', '2016-05-02 06:53:46');
-- --------------------------------------------------------
--
-- Table structure for table `secondary_audit_trails`
--
CREATE TABLE IF NOT EXISTS `secondary_audit_trails` (
`SecondaryUnitAuditTrailID` int(10) unsigned NOT NULL,
`Action` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserSecondaryUnitID` int(11) NOT NULL,
`SecondaryUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `secondary_units`
--
CREATE TABLE IF NOT EXISTS `secondary_units` (
`SecondaryUnitID` int(10) unsigned NOT NULL,
`SecondaryUnitName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`SecondaryUnitAbbreviation` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`PicturePath` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `secondary_unit_accomplishments`
--
CREATE TABLE IF NOT EXISTS `secondary_unit_accomplishments` (
`SecondaryUnitAccomplishmentID` int(10) unsigned NOT NULL,
`JanuaryAccomplishment` double(8,2) NOT NULL,
`FebruaryAccomplishment` double(8,2) NOT NULL,
`MarchAccomplishment` double(8,2) NOT NULL,
`AprilAccomplishment` double(8,2) NOT NULL,
`MayAccomplishment` double(8,2) NOT NULL,
`JuneAccomplishment` double(8,2) NOT NULL,
`JulyAccomplishment` double(8,2) NOT NULL,
`AugustAccomplishment` double(8,2) NOT NULL,
`SeptemberAccomplishment` double(8,2) NOT NULL,
`OctoberAccomplishment` double(8,2) NOT NULL,
`NovemberAccomplishment` double(8,2) NOT NULL,
`DecemberAccomplishment` double(8,2) NOT NULL,
`AccomplishmentDate` date NOT NULL,
`SecondaryUnitMeasureID` int(11) NOT NULL,
`SecondaryUnitID` int(11) NOT NULL,
`UserSecondaryUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `secondary_unit_fundings`
--
CREATE TABLE IF NOT EXISTS `secondary_unit_fundings` (
`SecondaryUnitFundingID` int(10) unsigned NOT NULL,
`SecondaryUnitFundingEstimate` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`SecondaryUnitFundingActual` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`SecondaryUnitFundingDate` date NOT NULL,
`SecondaryUnitMeasureID` int(11) NOT NULL,
`SecondaryUnitID` int(11) NOT NULL,
`UserSecondaryUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `secondary_unit_initiatives`
--
CREATE TABLE IF NOT EXISTS `secondary_unit_initiatives` (
`SecondaryUnitInitiativeID` int(10) unsigned NOT NULL,
`SecondaryUnitInitiativeContent` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`SecondaryUnitInitiativeDate` date NOT NULL,
`SecondaryUnitMeasureID` int(11) NOT NULL,
`SecondaryUnitID` int(11) NOT NULL,
`UserSecondaryUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `secondary_unit_measures`
--
CREATE TABLE IF NOT EXISTS `secondary_unit_measures` (
`SecondaryUnitMeasureID` int(10) unsigned NOT NULL,
`SecondaryUnitMeasureName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`SecondaryUnitMeasureType` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`SecondaryUnitMeasureFormula` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`SecondaryUnitObjectiveID` int(11) NOT NULL,
`UnitMeasureID` int(11) NOT NULL,
`SecondaryUnitID` int(11) NOT NULL,
`UserSecondaryUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `secondary_unit_objectives`
--
CREATE TABLE IF NOT EXISTS `secondary_unit_objectives` (
`SecondaryUnitObjectiveID` int(10) unsigned NOT NULL,
`SecondaryUnitObjectiveName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`PerspectiveID` int(11) NOT NULL,
`SecondaryUnitID` int(11) NOT NULL,
`UserSecondaryUnitID` int(11) NOT NULL,
`UnitObjectiveID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `secondary_unit_owners`
--
CREATE TABLE IF NOT EXISTS `secondary_unit_owners` (
`SecondaryUnitOwnerID` int(10) unsigned NOT NULL,
`SecondaryUnitOwnerContent` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`SecondaryUnitOwnerDate` date NOT NULL,
`SecondaryUnitMeasureID` int(11) NOT NULL,
`SecondaryUnitID` int(11) NOT NULL,
`UserSecondaryUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `secondary_unit_targets`
--
CREATE TABLE IF NOT EXISTS `secondary_unit_targets` (
`SecondaryUnitTargetID` int(10) unsigned NOT NULL,
`JanuaryTarget` double(8,2) NOT NULL,
`FebruaryTarget` double(8,2) NOT NULL,
`MarchTarget` double(8,2) NOT NULL,
`AprilTarget` double(8,2) NOT NULL,
`MayTarget` double(8,2) NOT NULL,
`JuneTarget` double(8,2) NOT NULL,
`JulyTarget` double(8,2) NOT NULL,
`AugustTarget` double(8,2) NOT NULL,
`SeptemberTarget` double(8,2) NOT NULL,
`OctoberTarget` double(8,2) NOT NULL,
`NovemberTarget` double(8,2) NOT NULL,
`DecemberTarget` double(8,2) NOT NULL,
`TargetDate` date NOT NULL,
`TargetPeriod` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`Termination` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`SecondaryUnitAccomplishmentID` int(11) NOT NULL,
`SecondaryUnitOwnerID` int(11) NOT NULL,
`SecondaryUnitInitiativeID` int(11) NOT NULL,
`SecondaryUnitFundingID` int(11) NOT NULL,
`SecondaryUnitMeasureID` int(11) NOT NULL,
`SecondaryUnitID` int(11) NOT NULL,
`UserSecondaryUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `staffs`
--
CREATE TABLE IF NOT EXISTS `staffs` (
`StaffID` int(10) unsigned NOT NULL,
`StaffName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`StaffAbbreviation` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`StaffPermission` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserStaffID` int(11) NOT NULL,
`PicturePath` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`ChiefID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `staff_accomplishments`
--
CREATE TABLE IF NOT EXISTS `staff_accomplishments` (
`StaffAccomplishmentID` int(10) unsigned NOT NULL,
`JanuaryAccomplishment` double(8,2) NOT NULL,
`FebruaryAccomplishment` double(8,2) NOT NULL,
`MarchAccomplishment` double(8,2) NOT NULL,
`AprilAccomplishment` double(8,2) NOT NULL,
`MayAccomplishment` double(8,2) NOT NULL,
`JuneAccomplishment` double(8,2) NOT NULL,
`JulyAccomplishment` double(8,2) NOT NULL,
`AugustAccomplishment` double(8,2) NOT NULL,
`SeptemberAccomplishment` double(8,2) NOT NULL,
`OctoberAccomplishment` double(8,2) NOT NULL,
`NovemberAccomplishment` double(8,2) NOT NULL,
`DecemberAccomplishment` double(8,2) NOT NULL,
`AccomplishmentDate` date NOT NULL,
`StaffMeasureID` int(11) NOT NULL,
`StaffID` int(11) NOT NULL,
`UserStaffID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `staff_audit_trails`
--
CREATE TABLE IF NOT EXISTS `staff_audit_trails` (
`StaffAuditTrailID` int(10) unsigned NOT NULL,
`Action` text COLLATE utf8_unicode_ci NOT NULL,
`StaffID` int(11) NOT NULL,
`UserStaffID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `staff_fundings`
--
CREATE TABLE IF NOT EXISTS `staff_fundings` (
`StaffFundingID` int(10) unsigned NOT NULL,
`StaffFundingEstimate` float NOT NULL,
`StaffFundingActual` float NOT NULL,
`StaffFundingDate` date NOT NULL,
`StaffMeasureID` int(11) NOT NULL,
`StaffID` int(11) NOT NULL,
`UserStaffID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `staff_initiatives`
--
CREATE TABLE IF NOT EXISTS `staff_initiatives` (
`StaffInitiativeID` int(10) unsigned NOT NULL,
`StaffInitiativeContent` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`StaffInitiativeDate` date NOT NULL,
`StaffMeasureID` int(11) NOT NULL,
`StaffID` int(11) NOT NULL,
`UserStaffID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `staff_logs`
--
CREATE TABLE IF NOT EXISTS `staff_logs` (
`StaffLogID` int(10) unsigned NOT NULL,
`StaffUserID` int(11) NOT NULL,
`LogDateTime` datetime NOT NULL,
`LogType` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`IPAddress` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `staff_measures`
--
CREATE TABLE IF NOT EXISTS `staff_measures` (
`StaffMeasureID` int(10) unsigned NOT NULL,
`StaffMeasureName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`StaffMeasureType` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`StaffMeasureFormula` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`StaffObjectiveID` int(11) NOT NULL,
`ChiefMeasureID` int(11) NOT NULL,
`StaffID` int(11) NOT NULL,
`UserStaffID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `staff_objectives`
--
CREATE TABLE IF NOT EXISTS `staff_objectives` (
`StaffObjectiveID` int(10) unsigned NOT NULL,
`StaffObjectiveName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`PerspectiveID` int(11) NOT NULL,
`StaffID` int(11) NOT NULL,
`UserStaffID` int(11) NOT NULL,
`ChiefObjectiveID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `staff_owners`
--
CREATE TABLE IF NOT EXISTS `staff_owners` (
`StaffOwnerID` int(10) unsigned NOT NULL,
`StaffOwnerContent` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`StaffOwnerDate` date NOT NULL,
`StaffMeasureID` int(11) NOT NULL,
`StaffID` int(11) NOT NULL,
`UserStaffID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `staff_targets`
--
CREATE TABLE IF NOT EXISTS `staff_targets` (
`StaffTargetID` int(10) unsigned NOT NULL,
`JanuaryTarget` double(8,2) NOT NULL,
`FebruaryTarget` double(8,2) NOT NULL,
`MarchTarget` double(8,2) NOT NULL,
`AprilTarget` double(8,2) NOT NULL,
`MayTarget` double(8,2) NOT NULL,
`JuneTarget` double(8,2) NOT NULL,
`JulyTarget` double(8,2) NOT NULL,
`AugustTarget` double(8,2) NOT NULL,
`SeptemberTarget` double(8,2) NOT NULL,
`OctoberTarget` double(8,2) NOT NULL,
`NovemberTarget` double(8,2) NOT NULL,
`DecemberTarget` double(8,2) NOT NULL,
`TargetDate` date NOT NULL,
`TargetPeriod` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`Termination` date DEFAULT NULL,
`StaffMeasureID` int(11) NOT NULL,
`StaffAccomplishmentID` int(11) NOT NULL,
`StaffOwnerID` int(11) NOT NULL,
`StaffInitiativeID` int(11) NOT NULL,
`StaffFundingID` int(11) NOT NULL,
`StaffID` int(11) NOT NULL,
`UserStaffID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `tertiary_audit_trails`
--
CREATE TABLE IF NOT EXISTS `tertiary_audit_trails` (
`TertiaryUnitAuditTrailID` int(10) unsigned NOT NULL,
`Action` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserTertiaryUnitID` int(11) NOT NULL,
`TertiaryUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `tertiary_units`
--
CREATE TABLE IF NOT EXISTS `tertiary_units` (
`TertiaryUnitID` int(10) unsigned NOT NULL,
`TertiaryUnitName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`TertiaryUnitAbbreviation` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`PicturePath` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`SecondaryUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `tertiary_unit_accomplishments`
--
CREATE TABLE IF NOT EXISTS `tertiary_unit_accomplishments` (
`TertiaryUnitAccomplishmentID` int(10) unsigned NOT NULL,
`JanuaryAccomplishment` double(8,2) NOT NULL,
`FebruaryAccomplishment` double(8,2) NOT NULL,
`MarchAccomplishment` double(8,2) NOT NULL,
`AprilAccomplishment` double(8,2) NOT NULL,
`MayAccomplishment` double(8,2) NOT NULL,
`JuneAccomplishment` double(8,2) NOT NULL,
`JulyAccomplishment` double(8,2) NOT NULL,
`AugustAccomplishment` double(8,2) NOT NULL,
`SeptemberAccomplishment` double(8,2) NOT NULL,
`OctoberAccomplishment` double(8,2) NOT NULL,
`NovemberAccomplishment` double(8,2) NOT NULL,
`DecemberAccomplishment` double(8,2) NOT NULL,
`AccomplishmentDate` date NOT NULL,
`TertiaryUnitMeasureID` int(11) NOT NULL,
`TertiaryUnitID` int(11) NOT NULL,
`UserTertiaryUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `tertiary_unit_fundings`
--
CREATE TABLE IF NOT EXISTS `tertiary_unit_fundings` (
`TertiaryUnitFundingID` int(10) unsigned NOT NULL,
`TertiaryUnitFundingEstimate` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`TertiaryUnitFundingActual` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`TertiaryUnitFundingDate` date NOT NULL,
`TertiaryUnitMeasureID` int(11) NOT NULL,
`TertiaryUnitID` int(11) NOT NULL,
`UserTertiaryUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `tertiary_unit_initiatives`
--
CREATE TABLE IF NOT EXISTS `tertiary_unit_initiatives` (
`TertiaryUnitInitiativeID` int(10) unsigned NOT NULL,
`TertiaryUnitInitiativeContent` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`TertiaryUnitInitiativeDate` date NOT NULL,
`TertiaryUnitMeasureID` int(11) NOT NULL,
`TertiaryUnitID` int(11) NOT NULL,
`UserTertiaryUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `tertiary_unit_measures`
--
CREATE TABLE IF NOT EXISTS `tertiary_unit_measures` (
`TertiaryUnitMeasureID` int(10) unsigned NOT NULL,
`TertiaryUnitMeasureName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`TertiaryUnitMeasureType` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`TertiaryUnitMeasureFormula` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`TertiaryUnitObjectiveID` int(11) NOT NULL,
`SecondaryUnitMeasureID` int(11) NOT NULL,
`TertiaryUnitID` int(11) NOT NULL,
`UserTertiaryUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `tertiary_unit_objectives`
--
CREATE TABLE IF NOT EXISTS `tertiary_unit_objectives` (
`TertiaryUnitObjectiveID` int(10) unsigned NOT NULL,
`TertiaryUnitObjectiveName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`PerspectiveID` int(11) NOT NULL,
`TertiaryUnitID` int(11) NOT NULL,
`UserTertiaryUnitID` int(11) NOT NULL,
`SecondaryUnitObjectiveID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `tertiary_unit_owners`
--
CREATE TABLE IF NOT EXISTS `tertiary_unit_owners` (
`TertiaryUnitOwnerID` int(10) unsigned NOT NULL,
`TertiaryUnitOwnerContent` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`TertiaryUnitOwnerDate` date NOT NULL,
`TertiaryUnitMeasureID` int(11) NOT NULL,
`TertiaryUnitID` int(11) NOT NULL,
`UserTertiaryUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `tertiary_unit_targets`
--
CREATE TABLE IF NOT EXISTS `tertiary_unit_targets` (
`TertiaryUnitTargetID` int(10) unsigned NOT NULL,
`JanuaryTarget` double(8,2) NOT NULL,
`FebruaryTarget` double(8,2) NOT NULL,
`MarchTarget` double(8,2) NOT NULL,
`AprilTarget` double(8,2) NOT NULL,
`MayTarget` double(8,2) NOT NULL,
`JuneTarget` double(8,2) NOT NULL,
`JulyTarget` double(8,2) NOT NULL,
`AugustTarget` double(8,2) NOT NULL,
`SeptemberTarget` double(8,2) NOT NULL,
`OctoberTarget` double(8,2) NOT NULL,
`NovemberTarget` double(8,2) NOT NULL,
`DecemberTarget` double(8,2) NOT NULL,
`TargetDate` date NOT NULL,
`TargetPeriod` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`Termination` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`TertiaryUnitMeasureID` int(11) NOT NULL,
`TertiaryUnitAccomplishmentID` int(11) NOT NULL,
`TertiaryUnitOwnerID` int(11) NOT NULL,
`TertiaryUnitFundingID` int(11) NOT NULL,
`TertiaryUnitInitiativeID` int(11) NOT NULL,
`TertiaryUnitID` int(11) NOT NULL,
`UserTertiaryUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `units`
--
CREATE TABLE IF NOT EXISTS `units` (
`UnitID` int(10) unsigned NOT NULL,
`UnitName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UnitAbbreviation` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`PicturePath` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`StaffID` int(11) DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `unit_accomplishments`
--
CREATE TABLE IF NOT EXISTS `unit_accomplishments` (
`UnitAccomplishmentID` int(10) unsigned NOT NULL,
`JanuaryAccomplishment` double(8,2) NOT NULL,
`FebruaryAccomplishment` double(8,2) NOT NULL,
`MarchAccomplishment` double(8,2) NOT NULL,
`AprilAccomplishment` double(8,2) NOT NULL,
`MayAccomplishment` double(8,2) NOT NULL,
`JuneAccomplishment` double(8,2) NOT NULL,
`JulyAccomplishment` double(8,2) NOT NULL,
`AugustAccomplishment` double(8,2) NOT NULL,
`SeptemberAccomplishment` double(8,2) NOT NULL,
`OctoberAccomplishment` double(8,2) NOT NULL,
`NovemberAccomplishment` double(8,2) NOT NULL,
`DecemberAccomplishment` double(8,2) NOT NULL,
`AccomplishmentDate` date NOT NULL,
`UnitMeasureID` int(11) NOT NULL,
`UnitID` int(11) NOT NULL,
`UserUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `unit_fundings`
--
CREATE TABLE IF NOT EXISTS `unit_fundings` (
`UnitFundingID` int(10) unsigned NOT NULL,
`UnitFundingEstimate` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UnitFundingActual` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UnitFundingDate` date NOT NULL,
`UnitMeasureID` int(11) NOT NULL,
`UnitID` int(11) NOT NULL,
`UserUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `unit_initiatives`
--
CREATE TABLE IF NOT EXISTS `unit_initiatives` (
`UnitInitiativeID` int(10) unsigned NOT NULL,
`UnitInitiativeContent` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UnitInitiativeDate` date NOT NULL,
`UnitMeasureID` int(11) NOT NULL,
`UnitID` int(11) NOT NULL,
`UserUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `unit_measures`
--
CREATE TABLE IF NOT EXISTS `unit_measures` (
`UnitMeasureID` int(10) unsigned NOT NULL,
`UnitMeasureName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UnitMeasureType` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UnitMeasureFormula` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UnitObjectiveID` int(11) NOT NULL,
`StaffMeasureID` int(11) NOT NULL,
`UnitID` int(11) NOT NULL,
`UserUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `unit_objectives`
--
CREATE TABLE IF NOT EXISTS `unit_objectives` (
`UnitObjectiveID` int(10) unsigned NOT NULL,
`UnitObjectiveName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`PerspectiveID` int(11) NOT NULL,
`StaffObjectiveID` int(11) NOT NULL,
`UnitID` int(11) NOT NULL,
`UserUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `unit_owners`
--
CREATE TABLE IF NOT EXISTS `unit_owners` (
`UnitOwnerID` int(10) unsigned NOT NULL,
`UnitOwnerContent` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UnitOwnerDate` date NOT NULL,
`UnitMeasureID` int(11) NOT NULL,
`UnitID` int(11) NOT NULL,
`UserUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `unit_targets`
--
CREATE TABLE IF NOT EXISTS `unit_targets` (
`UnitTargetID` int(10) unsigned NOT NULL,
`JanuaryTarget` double(8,2) NOT NULL,
`FebruaryTarget` double(8,2) NOT NULL,
`MarchTarget` double(8,2) NOT NULL,
`AprilTarget` double(8,2) NOT NULL,
`MayTarget` double(8,2) NOT NULL,
`JuneTarget` double(8,2) NOT NULL,
`JulyTarget` double(8,2) NOT NULL,
`AugustTarget` double(8,2) NOT NULL,
`SeptemberTarget` double(8,2) NOT NULL,
`OctoberTarget` double(8,2) NOT NULL,
`NovemberTarget` double(8,2) NOT NULL,
`DecemberTarget` double(8,2) NOT NULL,
`TargetDate` date NOT NULL,
`TargetPeriod` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`Termination` date DEFAULT NULL,
`UnitAccomplishmentID` int(11) NOT NULL,
`UnitOwnerID` int(11) NOT NULL,
`UnitInitiativeID` int(11) NOT NULL,
`UnitFundingID` int(11) NOT NULL,
`UnitMeasureID` int(11) NOT NULL,
`UnitID` int(11) NOT NULL,
`UserUnitID` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(10) unsigned NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'Super Administrator', '<EMAIL>', <PASSWORD>', '<PASSWORD>', '2016-03-13 05:42:04', '2016-06-07 11:43:21');
-- --------------------------------------------------------
--
-- Table structure for table `user_chiefs`
--
CREATE TABLE IF NOT EXISTS `user_chiefs` (
`UserChiefID` int(10) unsigned NOT NULL,
`UserChiefBadgeNumber` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserChiefFirstName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserChiefMiddleName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserChiefLastName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserChiefQualifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserChiefPicturePath` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserChiefPassword` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`RankID` int(11) NOT NULL,
`ChiefID` int(11) NOT NULL,
`UserChiefIsActive` tinyint(1) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `user_chiefs`
--
INSERT INTO `user_chiefs` (`UserChiefID`, `UserChiefBadgeNumber`, `UserChiefFirstName`, `UserChiefMiddleName`, `UserChiefLastName`, `UserChiefQualifier`, `UserChiefPicturePath`, `UserChiefPassword`, `RankID`, `ChiefID`, `UserChiefIsActive`, `created_at`, `updated_at`) VALUES
(1, 'O-00000', 'Chief', '', 'PNP', '', 'ksNMTC23nA2xIfbPqFPkha4y0uwxq16F.png', 'chiefpnp', 1, 1, 1, '2016-04-29 00:54:46', '2016-05-26 05:03:09');
-- --------------------------------------------------------
--
-- Table structure for table `user_logs`
--
CREATE TABLE IF NOT EXISTS `user_logs` (
`UserLogID` int(10) unsigned NOT NULL,
`UnitUserID` int(11) NOT NULL,
`LogDateTime` datetime NOT NULL,
`LogType` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`IPAddress` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `user_secondary_units`
--
CREATE TABLE IF NOT EXISTS `user_secondary_units` (
`UserSecondaryUnitID` int(10) unsigned NOT NULL,
`UserSecondaryUnitBadgeNumber` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserSecondaryUnitFirstName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserSecondaryUnitMiddleName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserSecondaryUnitLastName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserSecondaryUnitQualifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserSecondaryUnitPicturePath` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserSecondaryUnitPassword` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`RankID` int(11) NOT NULL,
`SecondaryUnitID` int(11) NOT NULL,
`UserSecondaryUnitIsActive` tinyint(1) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `user_staffs`
--
CREATE TABLE IF NOT EXISTS `user_staffs` (
`UserStaffID` int(10) unsigned NOT NULL,
`UserStaffBadgeNumber` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserStaffFirstName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserStaffMiddleName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserStaffLastName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserStaffQualifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserStaffPicturePath` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserStaffPassword` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`RankID` int(11) NOT NULL,
`StaffID` int(11) NOT NULL,
`UserStaffIsActive` tinyint(1) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `user_tertiary_units`
--
CREATE TABLE IF NOT EXISTS `user_tertiary_units` (
`UserTertiaryUnitID` int(10) unsigned NOT NULL,
`UserTertiaryUnitBadgeNumber` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserTertiaryUnitFirstName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserTertiaryUnitMiddleName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserTertiaryUnitLastName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserTertiaryUnitQualifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserTertiaryUnitPicturePath` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserTertiaryUnitPassword` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`RankID` int(11) NOT NULL,
`TertiaryUnitID` int(11) NOT NULL,
`UserTertiaryUnitIsActive` tinyint(1) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `user_units`
--
CREATE TABLE IF NOT EXISTS `user_units` (
`UserUnitID` int(10) unsigned NOT NULL,
`UserUnitBadgeNumber` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserUnitFirstName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserUnitMiddleName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserUnitLastName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserUnitQualifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserUnitPicturePath` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`UserUnitPassword` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`RankID` int(11) NOT NULL,
`UnitID` int(11) NOT NULL,
`UserUnitIsActive` tinyint(1) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `audit_trails`
--
ALTER TABLE `audit_trails`
ADD PRIMARY KEY (`AuditTrailID`);
--
-- Indexes for table `chiefs`
--
ALTER TABLE `chiefs`
ADD PRIMARY KEY (`ChiefID`),
ADD UNIQUE KEY `chiefs_chiefname_unique` (`ChiefName`),
ADD UNIQUE KEY `chiefs_chiefabbreviation_unique` (`ChiefAbbreviation`);
--
-- Indexes for table `chief_accomplishments`
--
ALTER TABLE `chief_accomplishments`
ADD PRIMARY KEY (`ChiefAccomplishmentID`);
--
-- Indexes for table `chief_audit_trails`
--
ALTER TABLE `chief_audit_trails`
ADD PRIMARY KEY (`ChiefAuditTrailID`);
--
-- Indexes for table `chief_fundings`
--
ALTER TABLE `chief_fundings`
ADD PRIMARY KEY (`ChiefFundingID`);
--
-- Indexes for table `chief_initiatives`
--
ALTER TABLE `chief_initiatives`
ADD PRIMARY KEY (`ChiefInitiativeID`);
--
-- Indexes for table `chief_logs`
--
ALTER TABLE `chief_logs`
ADD PRIMARY KEY (`ChiefLogID`);
--
-- Indexes for table `chief_measures`
--
ALTER TABLE `chief_measures`
ADD PRIMARY KEY (`ChiefMeasureID`),
ADD UNIQUE KEY `chief_measures_chiefmeasurename_unique` (`ChiefMeasureName`);
--
-- Indexes for table `chief_objectives`
--
ALTER TABLE `chief_objectives`
ADD PRIMARY KEY (`ChiefObjectiveID`);
--
-- Indexes for table `chief_owners`
--
ALTER TABLE `chief_owners`
ADD PRIMARY KEY (`ChiefOwnerID`);
--
-- Indexes for table `chief_targets`
--
ALTER TABLE `chief_targets`
ADD PRIMARY KEY (`ChiefTargetID`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`),
ADD KEY `password_resets_token_index` (`token`);
--
-- Indexes for table `perspectives`
--
ALTER TABLE `perspectives`
ADD PRIMARY KEY (`PerspectiveID`),
ADD UNIQUE KEY `perspectives_perspectivename_unique` (`PerspectiveName`);
--
-- Indexes for table `ranks`
--
ALTER TABLE `ranks`
ADD PRIMARY KEY (`RankID`),
ADD UNIQUE KEY `ranks_rankname_unique` (`RankName`),
ADD UNIQUE KEY `ranks_rankcode_unique` (`RankCode`);
--
-- Indexes for table `secondary_audit_trails`
--
ALTER TABLE `secondary_audit_trails`
ADD PRIMARY KEY (`SecondaryUnitAuditTrailID`);
--
-- Indexes for table `secondary_units`
--
ALTER TABLE `secondary_units`
ADD PRIMARY KEY (`SecondaryUnitID`),
ADD UNIQUE KEY `secondary_units_secondaryunitname_unique` (`SecondaryUnitName`),
ADD UNIQUE KEY `secondary_units_secondaryunitabbreviation_unique` (`SecondaryUnitAbbreviation`);
--
-- Indexes for table `secondary_unit_accomplishments`
--
ALTER TABLE `secondary_unit_accomplishments`
ADD PRIMARY KEY (`SecondaryUnitAccomplishmentID`);
--
-- Indexes for table `secondary_unit_fundings`
--
ALTER TABLE `secondary_unit_fundings`
ADD PRIMARY KEY (`SecondaryUnitFundingID`);
--
-- Indexes for table `secondary_unit_initiatives`
--
ALTER TABLE `secondary_unit_initiatives`
ADD PRIMARY KEY (`SecondaryUnitInitiativeID`);
--
-- Indexes for table `secondary_unit_measures`
--
ALTER TABLE `secondary_unit_measures`
ADD PRIMARY KEY (`SecondaryUnitMeasureID`);
--
-- Indexes for table `secondary_unit_objectives`
--
ALTER TABLE `secondary_unit_objectives`
ADD PRIMARY KEY (`SecondaryUnitObjectiveID`),
ADD UNIQUE KEY `secondary_unit_objectives_secondaryunitobjectivename_unique` (`SecondaryUnitObjectiveName`);
--
-- Indexes for table `secondary_unit_owners`
--
ALTER TABLE `secondary_unit_owners`
ADD PRIMARY KEY (`SecondaryUnitOwnerID`);
--
-- Indexes for table `secondary_unit_targets`
--
ALTER TABLE `secondary_unit_targets`
ADD PRIMARY KEY (`SecondaryUnitTargetID`);
--
-- Indexes for table `staffs`
--
ALTER TABLE `staffs`
ADD PRIMARY KEY (`StaffID`),
ADD UNIQUE KEY `staffs_staffname_unique` (`StaffName`),
ADD UNIQUE KEY `staffs_staffabbreviation_unique` (`StaffAbbreviation`);
--
-- Indexes for table `staff_accomplishments`
--
ALTER TABLE `staff_accomplishments`
ADD PRIMARY KEY (`StaffAccomplishmentID`);
--
-- Indexes for table `staff_audit_trails`
--
ALTER TABLE `staff_audit_trails`
ADD PRIMARY KEY (`StaffAuditTrailID`);
--
-- Indexes for table `staff_fundings`
--
ALTER TABLE `staff_fundings`
ADD PRIMARY KEY (`StaffFundingID`);
--
-- Indexes for table `staff_initiatives`
--
ALTER TABLE `staff_initiatives`
ADD PRIMARY KEY (`StaffInitiativeID`);
--
-- Indexes for table `staff_logs`
--
ALTER TABLE `staff_logs`
ADD PRIMARY KEY (`StaffLogID`);
--
-- Indexes for table `staff_measures`
--
ALTER TABLE `staff_measures`
ADD PRIMARY KEY (`StaffMeasureID`);
--
-- Indexes for table `staff_objectives`
--
ALTER TABLE `staff_objectives`
ADD PRIMARY KEY (`StaffObjectiveID`);
--
-- Indexes for table `staff_owners`
--
ALTER TABLE `staff_owners`
ADD PRIMARY KEY (`StaffOwnerID`);
--
-- Indexes for table `staff_targets`
--
ALTER TABLE `staff_targets`
ADD PRIMARY KEY (`StaffTargetID`);
--
-- Indexes for table `tertiary_audit_trails`
--
ALTER TABLE `tertiary_audit_trails`
ADD PRIMARY KEY (`TertiaryUnitAuditTrailID`);
--
-- Indexes for table `tertiary_units`
--
ALTER TABLE `tertiary_units`
ADD PRIMARY KEY (`TertiaryUnitID`),
ADD UNIQUE KEY `tertiary_units_tertiaryunitname_unique` (`TertiaryUnitName`),
ADD UNIQUE KEY `tertiary_units_tertiaryunitabbreviation_unique` (`TertiaryUnitAbbreviation`);
--
-- Indexes for table `tertiary_unit_accomplishments`
--
ALTER TABLE `tertiary_unit_accomplishments`
ADD PRIMARY KEY (`TertiaryUnitAccomplishmentID`);
--
-- Indexes for table `tertiary_unit_fundings`
--
ALTER TABLE `tertiary_unit_fundings`
ADD PRIMARY KEY (`TertiaryUnitFundingID`);
--
-- Indexes for table `tertiary_unit_initiatives`
--
ALTER TABLE `tertiary_unit_initiatives`
ADD PRIMARY KEY (`TertiaryUnitInitiativeID`);
--
-- Indexes for table `tertiary_unit_measures`
--
ALTER TABLE `tertiary_unit_measures`
ADD PRIMARY KEY (`TertiaryUnitMeasureID`);
--
-- Indexes for table `tertiary_unit_objectives`
--
ALTER TABLE `tertiary_unit_objectives`
ADD PRIMARY KEY (`TertiaryUnitObjectiveID`),
ADD UNIQUE KEY `tertiary_unit_objectives_tertiaryunitobjectivename_unique` (`TertiaryUnitObjectiveName`);
--
-- Indexes for table `tertiary_unit_owners`
--
ALTER TABLE `tertiary_unit_owners`
ADD PRIMARY KEY (`TertiaryUnitOwnerID`);
--
-- Indexes for table `tertiary_unit_targets`
--
ALTER TABLE `tertiary_unit_targets`
ADD PRIMARY KEY (`TertiaryUnitTargetID`);
--
-- Indexes for table `units`
--
ALTER TABLE `units`
ADD PRIMARY KEY (`UnitID`),
ADD UNIQUE KEY `units_unitname_unique` (`UnitName`),
ADD UNIQUE KEY `units_unitabbreviation_unique` (`UnitAbbreviation`);
--
-- Indexes for table `unit_accomplishments`
--
ALTER TABLE `unit_accomplishments`
ADD PRIMARY KEY (`UnitAccomplishmentID`);
--
-- Indexes for table `unit_fundings`
--
ALTER TABLE `unit_fundings`
ADD PRIMARY KEY (`UnitFundingID`);
--
-- Indexes for table `unit_initiatives`
--
ALTER TABLE `unit_initiatives`
ADD PRIMARY KEY (`UnitInitiativeID`);
--
-- Indexes for table `unit_measures`
--
ALTER TABLE `unit_measures`
ADD PRIMARY KEY (`UnitMeasureID`),
ADD UNIQUE KEY `unit_measures_unitmeasurename_unique` (`UnitMeasureName`);
--
-- Indexes for table `unit_objectives`
--
ALTER TABLE `unit_objectives`
ADD PRIMARY KEY (`UnitObjectiveID`),
ADD UNIQUE KEY `unit_objectives_unitobjectivename_unique` (`UnitObjectiveName`);
--
-- Indexes for table `unit_owners`
--
ALTER TABLE `unit_owners`
ADD PRIMARY KEY (`UnitOwnerID`);
--
-- Indexes for table `unit_targets`
--
ALTER TABLE `unit_targets`
ADD PRIMARY KEY (`UnitTargetID`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- Indexes for table `user_chiefs`
--
ALTER TABLE `user_chiefs`
ADD PRIMARY KEY (`UserChiefID`),
ADD UNIQUE KEY `user_chiefs_userchiefbadgenumber_unique` (`UserChiefBadgeNumber`);
--
-- Indexes for table `user_logs`
--
ALTER TABLE `user_logs`
ADD PRIMARY KEY (`UserLogID`);
--
-- Indexes for table `user_secondary_units`
--
ALTER TABLE `user_secondary_units`
ADD PRIMARY KEY (`UserSecondaryUnitID`),
ADD UNIQUE KEY `user_secondary_units_usersecondaryunitbadgenumber_unique` (`UserSecondaryUnitBadgeNumber`);
--
-- Indexes for table `user_staffs`
--
ALTER TABLE `user_staffs`
ADD PRIMARY KEY (`UserStaffID`),
ADD UNIQUE KEY `user_staffs_userstaffbadgenumber_unique` (`UserStaffBadgeNumber`);
--
-- Indexes for table `user_tertiary_units`
--
ALTER TABLE `user_tertiary_units`
ADD PRIMARY KEY (`UserTertiaryUnitID`),
ADD UNIQUE KEY `user_tertiary_units_usertertiaryunitbadgenumber_unique` (`UserTertiaryUnitBadgeNumber`);
--
-- Indexes for table `user_units`
--
ALTER TABLE `user_units`
ADD PRIMARY KEY (`UserUnitID`),
ADD UNIQUE KEY `user_units_userunitbadgenumber_unique` (`UserUnitBadgeNumber`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `audit_trails`
--
ALTER TABLE `audit_trails`
MODIFY `AuditTrailID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `chiefs`
--
ALTER TABLE `chiefs`
MODIFY `ChiefID` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `chief_accomplishments`
--
ALTER TABLE `chief_accomplishments`
MODIFY `ChiefAccomplishmentID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `chief_audit_trails`
--
ALTER TABLE `chief_audit_trails`
MODIFY `ChiefAuditTrailID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `chief_fundings`
--
ALTER TABLE `chief_fundings`
MODIFY `ChiefFundingID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `chief_initiatives`
--
ALTER TABLE `chief_initiatives`
MODIFY `ChiefInitiativeID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `chief_logs`
--
ALTER TABLE `chief_logs`
MODIFY `ChiefLogID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `chief_measures`
--
ALTER TABLE `chief_measures`
MODIFY `ChiefMeasureID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `chief_objectives`
--
ALTER TABLE `chief_objectives`
MODIFY `ChiefObjectiveID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `chief_owners`
--
ALTER TABLE `chief_owners`
MODIFY `ChiefOwnerID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `chief_targets`
--
ALTER TABLE `chief_targets`
MODIFY `ChiefTargetID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `perspectives`
--
ALTER TABLE `perspectives`
MODIFY `PerspectiveID` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `ranks`
--
ALTER TABLE `ranks`
MODIFY `RankID` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `secondary_audit_trails`
--
ALTER TABLE `secondary_audit_trails`
MODIFY `SecondaryUnitAuditTrailID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `secondary_units`
--
ALTER TABLE `secondary_units`
MODIFY `SecondaryUnitID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `secondary_unit_accomplishments`
--
ALTER TABLE `secondary_unit_accomplishments`
MODIFY `SecondaryUnitAccomplishmentID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `secondary_unit_fundings`
--
ALTER TABLE `secondary_unit_fundings`
MODIFY `SecondaryUnitFundingID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `secondary_unit_initiatives`
--
ALTER TABLE `secondary_unit_initiatives`
MODIFY `SecondaryUnitInitiativeID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `secondary_unit_measures`
--
ALTER TABLE `secondary_unit_measures`
MODIFY `SecondaryUnitMeasureID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `secondary_unit_objectives`
--
ALTER TABLE `secondary_unit_objectives`
MODIFY `SecondaryUnitObjectiveID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `secondary_unit_owners`
--
ALTER TABLE `secondary_unit_owners`
MODIFY `SecondaryUnitOwnerID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `secondary_unit_targets`
--
ALTER TABLE `secondary_unit_targets`
MODIFY `SecondaryUnitTargetID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `staffs`
--
ALTER TABLE `staffs`
MODIFY `StaffID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `staff_accomplishments`
--
ALTER TABLE `staff_accomplishments`
MODIFY `StaffAccomplishmentID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `staff_audit_trails`
--
ALTER TABLE `staff_audit_trails`
MODIFY `StaffAuditTrailID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `staff_fundings`
--
ALTER TABLE `staff_fundings`
MODIFY `StaffFundingID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `staff_initiatives`
--
ALTER TABLE `staff_initiatives`
MODIFY `StaffInitiativeID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `staff_logs`
--
ALTER TABLE `staff_logs`
MODIFY `StaffLogID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `staff_measures`
--
ALTER TABLE `staff_measures`
MODIFY `StaffMeasureID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `staff_objectives`
--
ALTER TABLE `staff_objectives`
MODIFY `StaffObjectiveID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `staff_owners`
--
ALTER TABLE `staff_owners`
MODIFY `StaffOwnerID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `staff_targets`
--
ALTER TABLE `staff_targets`
MODIFY `StaffTargetID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tertiary_audit_trails`
--
ALTER TABLE `tertiary_audit_trails`
MODIFY `TertiaryUnitAuditTrailID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tertiary_units`
--
ALTER TABLE `tertiary_units`
MODIFY `TertiaryUnitID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tertiary_unit_accomplishments`
--
ALTER TABLE `tertiary_unit_accomplishments`
MODIFY `TertiaryUnitAccomplishmentID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tertiary_unit_fundings`
--
ALTER TABLE `tertiary_unit_fundings`
MODIFY `TertiaryUnitFundingID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tertiary_unit_initiatives`
--
ALTER TABLE `tertiary_unit_initiatives`
MODIFY `TertiaryUnitInitiativeID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tertiary_unit_measures`
--
ALTER TABLE `tertiary_unit_measures`
MODIFY `TertiaryUnitMeasureID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tertiary_unit_objectives`
--
ALTER TABLE `tertiary_unit_objectives`
MODIFY `TertiaryUnitObjectiveID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tertiary_unit_owners`
--
ALTER TABLE `tertiary_unit_owners`
MODIFY `TertiaryUnitOwnerID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tertiary_unit_targets`
--
ALTER TABLE `tertiary_unit_targets`
MODIFY `TertiaryUnitTargetID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `units`
--
ALTER TABLE `units`
MODIFY `UnitID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `unit_accomplishments`
--
ALTER TABLE `unit_accomplishments`
MODIFY `UnitAccomplishmentID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `unit_fundings`
--
ALTER TABLE `unit_fundings`
MODIFY `UnitFundingID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `unit_initiatives`
--
ALTER TABLE `unit_initiatives`
MODIFY `UnitInitiativeID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `unit_measures`
--
ALTER TABLE `unit_measures`
MODIFY `UnitMeasureID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `unit_objectives`
--
ALTER TABLE `unit_objectives`
MODIFY `UnitObjectiveID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `unit_owners`
--
ALTER TABLE `unit_owners`
MODIFY `UnitOwnerID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `unit_targets`
--
ALTER TABLE `unit_targets`
MODIFY `UnitTargetID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `user_chiefs`
--
ALTER TABLE `user_chiefs`
MODIFY `UserChiefID` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `user_logs`
--
ALTER TABLE `user_logs`
MODIFY `UserLogID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_secondary_units`
--
ALTER TABLE `user_secondary_units`
MODIFY `UserSecondaryUnitID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_staffs`
--
ALTER TABLE `user_staffs`
MODIFY `UserStaffID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_tertiary_units`
--
ALTER TABLE `user_tertiary_units`
MODIFY `UserTertiaryUnitID` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_units`
--
ALTER TABLE `user_units`
MODIFY `UserUnitID` int(10) unsigned NOT NULL AUTO_INCREMENT;
/*!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 sm_admins (
id INTEGER PRIMARY KEY AUTOINCREMENT,
authtype varchar(16) NOT NULL CHECK(authtype IN ('steam', 'ip', 'name')),
identity varchar(65) NOT NULL,
password varchar(65),
flags varchar(30) NOT NULL,
name varchar(65) NOT NULL,
immunity INTEGER NOT NULL
);
CREATE TABLE sm_groups (
id INTEGER PRIMARY KEY AUTOINCREMENT,
flags varchar(30) NOT NULL,
name varchar(120) NOT NULL,
immunity_level INTEGER NOT NULL
);
CREATE TABLE sm_group_immunity (
group_id INTEGER NOT NULL,
other_id INTEGER NOT NULL,
PRIMARY KEY (group_id, other_id)
);
CREATE TABLE sm_group_overrides (
group_id INTEGER NOT NULL,
type varchar(16) NOT NULL CHECK (type IN ('command', 'group')),
name varchar(32) NOT NULL,
access varchar(16) NOT NULL CHECK (access IN ('allow', 'deny')),
PRIMARY KEY (group_id, type, name)
);
CREATE TABLE sm_overrides (
type varchar(16) NOT NULL CHECK (type IN ('command', 'group')),
name varchar(32) NOT NULL,
flags varchar(30) NOT NULL,
PRIMARY KEY (type,name)
);
CREATE TABLE sm_admins_groups (
admin_id INTEGER NOT NULL,
group_id INTEGER NOT NULL,
inherit_order int(10) NOT NULL,
PRIMARY KEY (admin_id, group_id)
);
CREATE TABLE IF NOT EXISTS sm_config (
cfg_key varchar(32) NOT NULL,
cfg_value varchar(255) NOT NULL,
PRIMARY KEY (cfg_key)
);
REPLACE INTO sm_config (cfg_key, cfg_value) VALUES ('admin_version', '1.0.0.1409');
|
<reponame>jfinzel/pglogical_ticker<filename>sql/99_cleanup.sql
SET client_min_messages TO WARNING;
DROP EXTENSION pglogical_ticker CASCADE;
DROP EXTENSION pglogical;
|
ALTER TABLE users
DROP KEY name,
MODIFY COLUMN name TEXT NOT NULL;
|
SELECT json_build_object('publicationid', pub.publicationid,
'pubtypeid', pub.pubtypeid,
'pubtype', pt.pubtype,
'year' , pub.year,
'citation', pub.citation,
'articletitle', pub.articletitle,
'journal', pub.journal,
'volume' , pub.volume,
'issue' , pub.issue,
'pages' , pub.pages,
'citationnumber', pub.citationnumber,
'doi', pub.doi,
'booktitle' , pub.booktitle,
'numvolumes', pub.numvolumes,
'edition' , pub.edition,
'volumetitle', pub.volumetitle,
'seriestitle', pub.seriestitle,
'seriesvolume', pub.seriesvolume,
'publisher' , pub.publisher,
'url', pub.url,
'city' , pub.city,
'state', pub.state,
'country' , pub.country,
'originallanguage', pub.originallanguage,
'notes' , pub.notes,
'author', json_agg(DISTINCT jsonb_build_object('familyname', ca.familyname,
'givennames', ca.givennames,
'order', pa.authororder)),
'datasets', COALESCE(json_agg(DISTINCT datasetid) FILTER (WHERE datasetid IS NOT NULL), '[]'))
FROM ndb.publications AS pub
INNER JOIN ndb.publicationauthors AS pa ON pub.publicationid = pa.publicationid
INNER JOIN ndb.contacts AS ca ON ca.contactid = pa.contactid
LEFT JOIN ndb.datasetpublications AS dp ON dp.publicationid = pub.publicationid
INNER JOIN ndb.publicationtypes AS pt ON pub.pubtypeid = pt.pubtypeid
WHERE
(${pubid} IS NULL OR pub.publicationid = ${pubid})
GROUP BY pub.publicationid, pt.pubtype
|
select s_login('test01', '123456', '1.1.1.1', 'http://www.2c-why.com/' );
|
<filename>application/querys/[SP_Editar_Formulario_Promotor].sql
USE [AppAu]
GO
/****** Object: StoredProcedure [dbo].[SP_Editar_Formulario_Promotor] Script Date: 17-05-2018 10:55:07 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[SP_Editar_Formulario_Promotor]
@idFormPro bigint,
@idCliente int,
@idPerfil int,
@idPA int,
@maxIntento int
AS
BEGIN
UPDATE FormularioPromotor SET ID_Cliente=@idCliente,ID_Perfil_Formulario=@idPerfil,ID_Punto_Activacion=@idPA,
Max_Intento=@maxIntento WHERE ID_Formulario_Promotor=@idFormPro
END
GO
|
call query_checksum('select distinct n from (select cast(n/10 as unsigned) as n from numbers) s1 order by n');
call query_checksum('select n from (select cast(n/10 as unsigned) as n from numbers) s1 group by n order by n desc');
call query_checksum('select n+1 from numbers where n <= 410');
|
insert into game_state
select game_number
,comb_class_id
,game_hash_top
,game_hash_bottom
,is_goal_state
,optimal_neighbor
,red_car_end_a
,topo_class_hash
,connected_component_id
,degree
,NULL as solution_distance
from states;
|
--
-- Copyright 2004-2014 The Kuali Foundation
--
-- Licensed under the Educational Community License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.opensource.org/licenses/ecl2.php
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
-- *********************************************************************
-- Update Database Script
-- *********************************************************************
-- Change Log: src/main/resources/db.changelog.xml
-- Ran at: 10/5/12 2:07 PM
-- Against: krdev@localhost@jdbc:mysql://localhost:3306/krdev
-- Liquibase version: 2.0.5
-- *********************************************************************
-- Changeset src/main/config/db/1.1.0/db.changelog-201207131332.xml::1::kbtaylor::(Checksum: 3:7fbf2b88e3d83b395ab9795f771f2111)
-- Adding Rice group bootstrap data
INSERT INTO `KRCR_NMSPC_T` (`ACTV_IND`, `APPL_ID`, `NM`, `NMSPC_CD`, `OBJ_ID`) VALUES ('Y', 'KPME', 'KPME Workflow Group', 'KPME-WKFLW', UUID());
-- Changeset src/main/config/db/1.1.0/db.changelog-201207131332.xml::2::kbtaylor::(Checksum: 3:b71833bd45a4fe5b473ca723936a083d)
-- Adding Rice group bootstrap data
INSERT INTO `KRIM_GRP_T` (`ACTV_IND`, `GRP_DESC`, `GRP_ID`, `GRP_NM`, `KIM_TYP_ID`, `LAST_UPDT_DT`, `NMSPC_CD`, `OBJ_ID`) VALUES ('Y', 'KPME TK System Administrator Group', 'KPME0001', 'TK_SYSTEM_ADMIN', (SELECT KIM_TYP_ID FROM KRIM_TYP_T WHERE NMSPC_CD = 'KUALI' AND NM = 'Default'), NOW(), 'KPME-WKFLW', UUID());
-- Changeset src/main/config/db/1.1.0/db.changelog-201207131332.xml::3::kbtaylor::(Checksum: 3:23c6756b69cec13a8928222935c73d49)
-- Adding Rice group bootstrap data
INSERT INTO `KRIM_GRP_MBR_T` (`GRP_ID`, `GRP_MBR_ID`, `LAST_UPDT_DT`, `MBR_ID`, `MBR_TYP_CD`, `OBJ_ID`) VALUES ((SELECT GRP_ID FROM KRIM_GRP_T WHERE NMSPC_CD = 'KPME-WKFLW' AND GRP_NM = 'TK_SYSTEM_ADMIN'), 'KPME0001', NOW(), 'admin', 'P', UUID());
-- Changeset src/main/config/db/1.1.0/db.changelog-201207161146.xml::1::kbtaylor::(Checksum: 3:94e8f7efe14a20aa1d51a26e2758a28f)
-- Adding Rice role bootstrap data
INSERT INTO `KRIM_ROLE_T` (`ACTV_IND`, `DESC_TXT`, `KIM_TYP_ID`, `LAST_UPDT_DT`, `NMSPC_CD`, `OBJ_ID`, `ROLE_ID`, `ROLE_NM`) VALUES ('Y', 'KPME TK System Administrator Role', (SELECT KIM_TYP_ID FROM KRIM_TYP_T WHERE NMSPC_CD = 'KUALI' AND NM = 'Default'), NOW(), 'KPME-WKFLW', UUID(), 'KPME0001', 'TK_SYS_ADMIN');
-- Changeset src/main/config/db/1.1.0/db.changelog-201207161146.xml::2::kbtaylor::(Checksum: 3:a6ad5d0d9b521f69ba3f95f57d42b6ad)
-- Adding Rice role bootstrap data
INSERT INTO `KRIM_ROLE_MBR_T` (`LAST_UPDT_DT`, `MBR_ID`, `MBR_TYP_CD`, `OBJ_ID`, `ROLE_ID`, `ROLE_MBR_ID`) VALUES (NOW(), 'admin', 'P', UUID(), (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE NMSPC_CD = 'KPME-WKFLW' AND ROLE_NM = 'TK_SYS_ADMIN'), 'KPME0001');
-- Changeset src/main/config/db/1.2.0/db.changelog-201207161146.xml::1::kbtaylor::(Checksum: 3:36afce1eeb121be14b1ce450cbc4dd89)
-- Adding Rice role bootstrap data
INSERT INTO `KRIM_TYP_T` (`ACTV_IND`, `KIM_TYP_ID`, `NM`, `NMSPC_CD`, `OBJ_ID`, `SRVC_NM`) VALUES ('Y', 'KPME0001', 'Work Area Role Type', 'KPME-WKFLW', UUID(), 'workAreaQualifierRoleTypeService');
-- Changeset src/main/config/db/1.2.0/db.changelog-201207161146.xml::3::kbtaylor::(Checksum: 3:e9925ff16c79defa83f14c48bd6b01b3)
-- Adding Rice role bootstrap data
INSERT INTO `KRIM_ROLE_T` (`ACTV_IND`, `DESC_TXT`, `KIM_TYP_ID`, `LAST_UPDT_DT`, `NMSPC_CD`, `OBJ_ID`, `ROLE_ID`, `ROLE_NM`) VALUES ('Y', 'KPME TK Organization Administrator Role', (SELECT KIM_TYP_ID FROM KRIM_TYP_T WHERE NMSPC_CD = 'KR-IDM' AND NM = 'Derived Role: Principal'), NOW(), 'KPME-WKFLW', UUID(), 'KPME0002', 'TK_ORG_ADMIN');
-- Changeset src/main/config/db/1.2.0/db.changelog-201207161146.xml::4::kbtaylor::(Checksum: 3:6a11cbb2d31dcb7dfbe4d8ab5b7c5a15)
-- Adding Rice role bootstrap data
INSERT INTO `KRIM_ROLE_MBR_T` (`LAST_UPDT_DT`, `MBR_ID`, `MBR_TYP_CD`, `OBJ_ID`, `ROLE_ID`, `ROLE_MBR_ID`) VALUES (NOW(), 'admin', 'P', UUID(), (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE NMSPC_CD = 'KPME-WKFLW' AND ROLE_NM = 'TK_ORG_ADMIN'), 'KPME0002');
-- Changeset src/main/config/db/1.2.0/db.changelog-201207161146.xml::6::kbtaylor::(Checksum: 3:d39b4d5793b60edc34309715312646ff)
-- Adding Rice role bootstrap data
INSERT INTO `krim_role_t` (`ACTV_IND`, `DESC_TXT`, `KIM_TYP_ID`, `LAST_UPDT_DT`, `NMSPC_CD`, `OBJ_ID`, `ROLE_ID`, `ROLE_NM`) VALUES ('Y', 'KPME Approver Role', (SELECT KIM_TYP_ID FROM KRIM_TYP_T WHERE NMSPC_CD = 'KPME-WKFLW' AND NM = 'Work Area Role Type'), NOW(), 'KPME-WKFLW', UUID(), 'KPME0003', 'TK_APPROVER');
-- Changeset src/main/config/db/1.2.0/db.changelog-201207161146.xml::7::kbtaylor::(Checksum: 3:a5ddb06ccf146bf1305fd0db028b784a)
-- Adding Rice role bootstrap data
INSERT INTO `KRIM_ROLE_MBR_T` (`LAST_UPDT_DT`, `MBR_ID`, `MBR_TYP_CD`, `OBJ_ID`, `ROLE_ID`, `ROLE_MBR_ID`) VALUES (NOW(), 'admin', 'P', UUID(), (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE NMSPC_CD = 'KPME-WKFLW' AND ROLE_NM = 'TK_APPROVER'), 'KPME0003');
-- Changeset src/main/config/db/1.2.0/db.changelog-201207161146.xml::9::kbtaylor::(Checksum: 3:f51af8a9dbdbebfa0d579f8f38f304bc)
-- Adding Rice role bootstrap data
INSERT INTO `KRIM_ROLE_T` (`ACTV_IND`, `DESC_TXT`, `KIM_TYP_ID`, `LAST_UPDT_DT`, `NMSPC_CD`, `OBJ_ID`, `ROLE_ID`, `ROLE_NM`) VALUES ('Y', 'KPME Employee Role', (SELECT KIM_TYP_ID FROM KRIM_TYP_T WHERE NMSPC_CD = 'KUALI' AND NM = 'Default'), NOW(), 'KPME-WKFLW', UUID(), 'KPME0004', 'TK_EMPLOYEE');
-- Changeset src/main/config/db/1.2.0/db.changelog-201207161146.xml::20::kbtaylor::(Checksum: 3:37b615be250cdacef66e576799dc439c)
-- Adding Rice role bootstrap data
INSERT INTO `KRIM_ROLE_MBR_T` (`LAST_UPDT_DT`, `MBR_ID`, `MBR_TYP_CD`, `OBJ_ID`, `ROLE_ID`, `ROLE_MBR_ID`) VALUES (NOW(), 'admin', 'P', UUID(), (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE NMSPC_CD = 'KPME-WKFLW' AND ROLE_NM = 'TK_EMPLOYEE'), 'KPME0004');
-- Changeset src/main/config/db/1.2.0/db.changelog-201209060957.xml::2::kbtaylor::(Checksum: 3:2fc93ded436e73c85f42cfe690b7e556)
-- Removing admin as role members
DELETE FROM `KRIM_ROLE_MBR_T` WHERE ROLE_ID = (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE NMSPC_CD = 'KPME-WKFLW' AND ROLE_NM = 'TK_ORG_ADMIN') AND MBR_ID = 'admin';
DELETE FROM `KRIM_ROLE_MBR_T` WHERE ROLE_ID = (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE NMSPC_CD = 'KPME-WKFLW' AND ROLE_NM = 'TK_APPROVER') AND MBR_ID = 'admin';
DELETE FROM `KRIM_ROLE_MBR_T` WHERE ROLE_ID = (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE NMSPC_CD = 'KPME-WKFLW' AND ROLE_NM = 'TK_EMPLOYEE') AND MBR_ID = 'admin';
|
<gh_stars>0
-- +migrate Up
ALTER TABLE history_transactions ADD ledger_bounds int8range; -- xdr.Uint32s
ALTER TABLE history_transactions ADD min_account_sequence bigint; -- xdr.SequenceNumber -> int64
ALTER TABLE history_transactions ADD min_account_sequence_age varchar(20); -- xdr.TimePoint -> uint64 -> longest uint64 number
ALTER TABLE history_transactions ADD min_account_sequence_ledger_gap bigint; -- xdr.Int32
ALTER TABLE history_transactions ADD extra_signers text[];
ALTER TABLE accounts ADD sequence_ledger integer;
ALTER TABLE accounts ADD sequence_time bigint;
-- CAP-40 signed payload strkeys can be 165 characters long, see
-- strkey/main.go:maxEncodedSize. But we'll use text here, so we don't need to
-- adjust it *ever again*.
ALTER TABLE accounts_signers
ALTER COLUMN signer TYPE text;
-- +migrate Down
ALTER TABLE history_transactions DROP ledger_bounds;
ALTER TABLE history_transactions DROP min_account_sequence;
ALTER TABLE history_transactions DROP min_account_sequence_age;
ALTER TABLE history_transactions DROP min_account_sequence_ledger_gap;
ALTER TABLE history_transactions DROP extra_signers;
ALTER TABLE accounts DROP sequence_ledger;
ALTER TABLE accounts DROP sequence_time;
ALTER TABLE accounts_signers
ALTER COLUMN signer TYPE character varying(64);
|
<reponame>andrewp-as-is/sqlite-examples<gh_stars>0
SELECT date('now','start of month','+1 month','-1 day')
|
<filename>BalsamicSolutions.ReadUnreadSiteColumn/Framework/CreateResourceTableTemplate.sql
CREATE TABLE [dbo].[_TABLENAME_](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Culture] [nvarchar](32) NULL,
[Name] [nvarchar](64) NULL,
[Value] [nvarchar](max) NULL,
CONSTRAINT [PK__TABLENAME_] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [_TABLENAME__Idx] ON [dbo].[_TABLENAME_]
(
[Culture] ASC,
[Name] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO |
<filename>v1.sql
CREATE DATABASE IF NOT EXISTS `datahive_versions` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `datahive_versions`;
DROP TABLE IF EXISTS `db_version`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `db_version` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`version` int(10) unsigned NOT NULL,
`datetime_created` datetime NOT NULL DEFAULT current_timestamp(),
`log` text DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`),
UNIQUE KEY `version_UNIQUE` (`version`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
INSERT INTO `db_version` (`id`, `version`, `datetime_created`, `log`) VALUES
(1, 1, '2018-10-11 05:40:19', 'Initial version.');
DROP TABLE IF EXISTS `file_meta`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `file_meta` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT,
`id_dh_snapshot` int(10) unsigned DEFAULT NULL COMMENT 'This is the ID of the snapshot of the data.',
`datetime_created` datetime NOT NULL DEFAULT current_timestamp(),
`ctime` datetime NOT NULL,
`mtime` datetime NOT NULL,
`size` BIGINT unsigned NOT NULL,
`userflags` int(10) unsigned DEFAULT 0,
`isdir` tinyint(1) NOT NULL,
`isfile` tinyint(1) NOT NULL,
`islink` tinyint(1) NOT NULL,
`examined` tinyint(1) NOT NULL,
`rel_path` mediumblob NOT NULL COMMENT 'The relative path of this file from the root of the datahive.',
`sha256` varchar(64) NOT NULL,
`owner` varchar(48) NOT NULL,
`group` varchar(48) NOT NULL,
`perms` varchar(12) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CHECKSUM=1;
DROP TABLE IF EXISTS `datahive_version`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `datahive_version` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`datetime_created` datetime NOT NULL DEFAULT current_timestamp(),
`tag` varchar(64) NOT NULL,
`count_files` int(12) unsigned NOT NULL,
`count_links` int(12) unsigned NOT NULL,
`count_directories` int(12) unsigned NOT NULL,
`rel_path` mediumblob NOT NULL COMMENT 'The relative path of the root of the datahive.',
`notes` blob NOT NULL COMMENT 'Optional notes surrounding this catalog.',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CHECKSUM=1;
DROP TABLE IF EXISTS `log_table`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `log_table` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`id_dh_snapshot` int(10) unsigned DEFAULT NULL COMMENT 'The ID of the snapshot this log pertains to.',
`datetime_created` datetime NOT NULL DEFAULT current_timestamp(),
`severity` tinyint(1) NOT NULL,
`source` varchar(64) NOT NULL COMMENT 'The class that generated the log.',
`body` TEXT NOT NULL COMMENT 'Log content.',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CHECKSUM=1;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-11-05 15:24:44
|
<filename>framework/resources/Functional/limit0/filters/data/q24.sql<gh_stars>0
select x, y, z from ( select t1.a1, max(t1.b1), avg(t1.a1) from t1_v t1, t2_v t2 where t1.c1 = t2.c2 group by t1.a1, t1.b1) as sq(x, y, z) where y not like '%b%' OR x = 10;
|
UPDATE `entities` set `siteid` = ( SELECT `_id` FROM `site` limit 1 );
UPDATE `reader` set `siteid` = ( SELECT `_id` FROM `site` limit 1 );
UPDATE `config` set `siteid` = ( SELECT `_id` FROM `site` limit 1 );
REPLACE INTO `versions` VALUES('schema', '2020120201');
|
## 查询班级维度统计
#macro($listDoQuestionClassStat(classId,topN,startDate,endDate))
SELECT * FROM do_question_class_rank
WHERE class_id = :classId
AND start_date = :startDate
AND end_date = :endDate
ORDER BY rank ASC
LIMIT :topN
#end
## 查询指定学生统计信息
#macro($findStudentInClassRank(classId,userId,startDate,endDate))
SELECT * FROM do_question_class_rank
WHERE class_id = :classId
AND start_date = :startDate
AND end_date = :endDate
AND user_id = :userId
#end
## 更新点赞数
#macro($updateClassPraiseCount(rankId,userId))
UPDATE do_question_class_rank
SET praise_count = praise_count + 1
WHERE id = :rankId
#end
## 查询classIds
#macro($findClassIds(startDate,endDate,startindex,size))
SELECT DISTINCT class_id FROM do_question_class_rank
WHERE start_date = :startDate
AND end_date = :endDate
LIMIT :startindex, :size
#end
## 查询指定学生统计信息
#macro($findStudentInClassRanks(classIds,startDate,endDate))
SELECT * FROM do_question_class_rank
WHERE class_id IN (:classIds)
AND start_date = :startDate
AND end_date = :endDate
#end
## 游标查询所有数据
#macro($findAllRankPraiseByCursor(startDate,endDate))
SELECT * FROM do_question_class_rank
WHERE start_date = :startDate
AND end_date = :endDate
#if(next)
AND id < :next
#end
ORDER BY id DESC
#end |
CREATE TABLE [dbo].[Sponsor] (
[SponsorId] INT IDENTITY (1, 1) NOT NULL,
[SponsorTypeId] INT NOT NULL,
[Title] NVARCHAR (1000) NOT NULL,
[ShortTitle] NVARCHAR (500) NULL,
[Description] NVARCHAR (4000) NULL,
[ImageUrl] NVARCHAR (1000) NULL,
[WebsiteUrl] NVARCHAR (1000) NULL,
[TwitterUrl] NVARCHAR (1000) NULL,
[BoothLocation] NVARCHAR (1000) NULL,
[Rank] INT CONSTRAINT [DF_Sponsor_Rank] DEFAULT ((100)) NOT NULL,
[DataVersion] INT CONSTRAINT [DF_Sponsor_DataVersion] DEFAULT ((1)) NOT NULL,
[CreatedUtcDate] DATETIME2 (7) CONSTRAINT [DF_Sponsor_CreatedUtcDate] DEFAULT (getutcdate()) NOT NULL,
[CreatedBy] NVARCHAR (200) NOT NULL,
[ModifiedUtcDate] DATETIME2 (7) CONSTRAINT [DF_Sponsor_ModifiedUtcDate] DEFAULT (getutcdate()) NOT NULL,
[ModifiedBy] NVARCHAR (200) NOT NULL,
[IsDeleted] BIT CONSTRAINT [DF_Sponsor_IsDeleted] DEFAULT ((0)) NOT NULL,
CONSTRAINT [PK_Sponsor] PRIMARY KEY CLUSTERED ([SponsorId] ASC),
CONSTRAINT [FK_Sponsor_SponsorType] FOREIGN KEY ([SponsorTypeId]) REFERENCES [dbo].[SponsorType] ([SponsorTypeId])
);
GO
CREATE TRIGGER [dbo].[trg_Sponsor_Update] ON [dbo].[Sponsor]
FOR UPDATE
AS
SET NOCOUNT ON
UPDATE a SET
a.DataVersion = b.DataVersion + 1
FROM Sponsor a
INNER JOIN inserted b
ON a.SponsorId = b.SponsorId
|
/*==============================================================*/
/* Table: admin */
/*==============================================================*/
create table admin
(
id bigint(20) not null auto_increment,
username varchar(64) comment '用户名',
password varchar(64) comment '密码',
email varchar(100) comment '邮箱',
nick_name varchar(200) comment '昵称',
note varchar(500) comment '备注信息',
create_time datetime comment '创建时间',
login_time datetime comment '最后登录时间',
status int comment '帐号启用状态:0->禁用;1->启用',
primary key (id)
);
alter table admin
comment '后台用户表';
/*==============================================================*/
/* Index: uk_admin_username */
/*==============================================================*/
create unique index uk_admin_username on admin
(
username
);
/*==============================================================*/
/* Table: admin_role_relation */
/*==============================================================*/
CREATE TABLE `admin_role_relation`
(
`id` bigint(11) NOT NULL AUTO_INCREMENT,
`admin_id` bigint(11) NOT NULL COMMENT '用户编号',
`role_id` bigint(11) NOT NULL COMMENT '角色编号',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_admin_role_id` (`admin_id`, `role_id`)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_bin COMMENT ='用户角色表';
/*==============================================================*/
/* Table: group_name */
/*==============================================================*/
create table group_name
(
id bigint(11) not null auto_increment,
name varchar(64) comment '组名称',
create_time datetime comment '创建时间',
deleteable int(1) comment '是否可删除 0->可以删除 1->不可以删除',
primary key (id)
);
alter table group_name
comment '组名称';
/*==============================================================*/
/* Table: permission */
/*==============================================================*/
create table permission
(
id bigint(11) not null auto_increment,
pid bigint(11) comment '父级权限id',
name varchar(100) comment '名称',
value varchar(100) comment '权限值',
icon varchar(100) comment '图标',
type int(1) comment '权限类型:0->目录;1->菜单;2->按钮(接口绑定权限)',
uri varchar(200) comment '前段资源路径',
status int(1) comment '启用状态;0->禁用;1->启用',
create_time datetime comment '创建时间',
sort int(11) comment '排序',
primary key (id)
);
alter table permission
comment '权限菜单表';
/*==============================================================*/
/* Table: personal_info */
/*==============================================================*/
create table personal_info
(
id bigint(11) not null auto_increment,
name varchar(32) comment '姓名',
gender int(1) comment '性别 0->男;1->女',
birthday date comment '生日',
group_id bigint(11) comment '组名',
employee_no varchar(64) comment '工号',
title varchar(64) comment '职称',
department varchar(64) comment '部门',
company varchar(64) comment '公司',
icon varchar(500) comment '头像',
note varchar(512) comment '备注',
create_time date comment '创建时间',
deleted int(1) comment '是否删除 0->正常;1->删除',
primary key (id)
);
alter table personal_info
comment '人员信息';
/*==============================================================*/
/* Table: personal_monitor_log */
/*==============================================================*/
create table personal_monitor_log
(
id bigint(20) not null auto_increment,
personal_id bigint(11) comment '人员编号',
action int(1) comment '动作 0->入;1->出',
create_time datetime comment '监控时间',
primary key (id)
);
alter table personal_monitor_log
comment '人员监控信息';
/*==============================================================*/
/* Index: idx_personal_monitor_create_time */
/*==============================================================*/
create index idx_personal_monitor_create_time on personal_monitor_log
(
create_time
);
/*==============================================================*/
/* Table: personal_monitor_statictis */
/*==============================================================*/
create table personal_monitor_statictis
(
id bigint(20) not null auto_increment,
personal_id bigint(11) comment '人员编号',
out_count int(5) comment '出次数',
in_count int(5) comment '入次数',
stand_time bigint(10) comment '停留时间',
earliest_time time comment '最早进入时间',
latest_time time comment '最晚出去时间',
statistics_time date comment '日期',
primary key (id)
);
alter table personal_monitor_statictis
comment '人员监控统计信息';
/*==============================================================*/
/* Table: role */
/*==============================================================*/
create table role
(
id bigint(11) not null auto_increment,
code varchar(100) comment '角色编号',
name varchar(100) comment '角色',
description varchar(500) comment '描述',
create_time datetime comment '创建时间',
status int(1) comment '启用状态:0->禁用;1->启用',
sort int(11) comment '排序',
primary key (id)
);
alter table role
comment '角色';
/*==============================================================*/
/* Index: idx_role_name */
/*==============================================================*/
create index idx_role_name on role
(
name
);
/*==============================================================*/
/* Table: role_permission_relation */
/*==============================================================*/
CREATE TABLE `role_permission_relation`
(
`id` bigint(11) NOT NULL AUTO_INCREMENT,
`role_id` bigint(11) NOT NULL COMMENT '角色编号',
`permission_id` bigint(11) NOT NULL COMMENT '权限编号',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_role_permission_id` (`role_id`, `permission_id`)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_bin COMMENT ='角色权限表';
-- 权限初始化数据
DELETE
FROM admin_role_relation;
DELETE
FROM role;
DELETE
FROM permission;
DELETE
FROM role_permission_relation;
INSERT INTO `admin`
VALUES (1, 'admin', <PASSWORD>', '<EMAIL>', '管理员', '系统管理员',
'2019-07-17 10:56:27', '2019-08-14 15:59:06', 0);
INSERT INTO `admin_role_relation`
VALUES ('1', '1', '1');
INSERT INTO `role`
VALUES ('1', 'super', '超级管理员', '超级管理员', now(), '1', '1');
INSERT INTO `permission`
VALUES (1, NULL, '人员管理', '', 'form', 1, '', 1, '2019-08-05 08:54:28', 1);
INSERT INTO `permission`
VALUES (2, NULL, '监控信息', '', 'area-chart', 1, '', 1, '2019-08-05 08:54:28', 2);
INSERT INTO `permission`
VALUES (3, NULL, '系统管理', '', 'setting', 1, '', 1, '2019-08-05 08:54:28', 3);
INSERT INTO `permission`
VALUES (4, 1, '人员列表', 'personinfo', 'team', 1, '/api/person', 1, '2019-08-05 08:54:28', 1);
INSERT INTO `permission`
VALUES (5, 2, '监控事件', 'monitor', 'eye', 1, '/api/monitor', 1, '2019-08-05 08:54:28', 1);
INSERT INTO `permission`
VALUES (6, 2, '统计分析', 'statistic', 'bar-chat', 1, '/api/statistic', 1, '2019-08-05 08:54:28', 2);
INSERT INTO `permission`
VALUES (7, 3, '账号管理', 'admin', 'user', 1, '/api/admin', 1, '2019-08-05 08:54:28', 1);
INSERT INTO `permission`
VALUES (8, 3, '角色管理', 'role', 'control', 1, '/api/role', 1, '2019-08-05 08:54:28', 2);
INSERT INTO `role_permission_relation`
VALUES ('1', '1', '1');
INSERT INTO `role_permission_relation`
VALUES ('2', '1', '2');
INSERT INTO `role_permission_relation`
VALUES ('3', '1', '3');
INSERT INTO `role_permission_relation`
VALUES ('4', '1', '4');
INSERT INTO `role_permission_relation`
VALUES ('5', '1', '5');
INSERT INTO `role_permission_relation`
VALUES ('6', '1', '6');
INSERT INTO `role_permission_relation`
VALUES ('7', '1', '7');
INSERT INTO `role_permission_relation`
VALUES ('8', '1', '8');
-- 设置权限status默认值 --
alter table permission
alter column status drop default;
alter table permission
alter column status set default 1;
-- 人员监控日志新增来源字段 --
ALTER TABLE personal_monitor_log
ADD COLUMN source INT(1) NOT NULL DEFAULT 0 COMMENT '来源 0:人脸识别,1:mac识别' AFTER action;
-- ----------------------------
-- Table structure for personal_icon
-- ----------------------------
DROP TABLE IF EXISTS `personal_icon`;
CREATE TABLE `personal_icon`
(
`id` bigint(11) NOT NULL AUTO_INCREMENT,
`icon` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '图片名称',
`personal_id` bigint(11) NOT NULL COMMENT '人员id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB
AUTO_INCREMENT = 1
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_bin
ROW_FORMAT = Dynamic;
-- 新增人员mac表 --
DROP TABLE IF EXISTS `personal_mac`;
CREATE TABLE `personal_mac`
(
`id` bigint(11) NOT NULL AUTO_INCREMENT,
`mac` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'mac地址',
`personal_id` bigint(11) NOT NULL COMMENT '人员id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB
AUTO_INCREMENT = 1
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_bin
ROW_FORMAT = Dynamic;
-- 人员图片增加特征值字段 --
alter table personal_icon
add column feature blob COMMENT '特征值'; |
-- Created by <NAME>
-- Last modification date: 2021-05-08 18:55:03.182
-- tables
-- Table: set_score
insert into set_score (match_id, set_number, first_registration_games, second_registration_games) values (1, 1, 1, 2);
insert into set_score (match_id, set_number, first_registration_games, second_registration_games) values (1, 2, 3, 4);
insert into set_score (match_id, set_number, first_registration_games, second_registration_games) values (1, 3, 2, 4);
insert into set_score (match_id, set_number, first_registration_games, second_registration_games) values (1, 4, 1, 4);
-- End of file. |
--
-- Copyright 2015-2016 USEF Foundation
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
INSERT INTO MDC1_USEF_EXAMPLE_COM_MDC.BALANCE_RESPONSIBLE_PARTY(DOMAIN) VALUES
('brp1.usef-example.com'),
('brp2.usef-example.com');
INSERT INTO MDC1_USEF_EXAMPLE_COM_MDC.COMMON_REFERENCE_OPERATOR(DOMAIN) VALUES
('cro1.usef-example.com');
INSERT INTO MDC1_USEF_EXAMPLE_COM_MDC.CONNECTION(ENTITY_ADDRESS) VALUES
('ean.201010100000000001'),
('ean.302010100000000002'),
('ean.001010100000000003'),
('ean.002010100000000004'),
('ean.101020100000000005'),
('ean.201020100000000006'),
('ean.201020100000000007'),
('ean.201020100000000008'),
('ean.201020100000000009'),
('ean.302020100000000010'),
('ean.302020100000000011'),
('ean.001020100000000012'),
('ean.001020100000000013'),
('ean.002020100000000014'),
('ean.101030100000000015'),
('ean.101030100000000016'),
('ean.101030100000000017'),
('ean.101030100000000018'),
('ean.101030100000000019'),
('ean.101030100000000020'),
('ean.101030100000000021'),
('ean.101030100000000022'),
('ean.101030100000000023'),
('ean.101030100000000024'),
('ean.201030100000000025'),
('ean.201030100000000026'),
('ean.201030100000000027'),
('ean.201030100000000028'),
('ean.201030100000000029'),
('ean.201030100000000030'),
('ean.201030100000000031'),
('ean.201030100000000032'),
('ean.201030100000000033'),
('ean.201030100000000034'),
('ean.302030100000000035'),
('ean.302030100000000036'),
('ean.302030100000000037'),
('ean.302030100000000038'),
('ean.302030100000000039'),
('ean.302030100000000040'),
('ean.302030100000000041'),
('ean.302030100000000042'),
('ean.302030100000000043'),
('ean.302030100000000044'),
('ean.001030100000000045'),
('ean.001030100000000046'),
('ean.001030100000000047'),
('ean.001030100000000048'),
('ean.001030100000000049'),
('ean.002030100000000050'),
('ean.002030100000000051'),
('ean.002030100000000052'),
('ean.002030100000000053'),
('ean.002030100000000054'),
('ean.101000000000000055'),
('ean.101000000000000056'),
('ean.101000000000000057'),
('ean.101000000000000058'),
('ean.101000000000000059'),
('ean.201000000000000060'),
('ean.201000000000000061'),
('ean.201000000000000062'),
('ean.201000000000000063'),
('ean.201000000000000064'),
('ean.001040100000000065'),
('ean.001040100000000066');
INSERT INTO MDC1_USEF_EXAMPLE_COM_MDC.DISTRIBUTION_SYSTEM_OPERATOR(DSO_DOMAIN) VALUES
('dso1.usef-example.com');
INSERT INTO BRP2_USEF_EXAMPLE_COM_BRP.COMMON_REFERENCE_OPERATOR(ID, DOMAIN) VALUES
(-1, 'cro1.usef-example.com');
INSERT INTO BRP2_USEF_EXAMPLE_COM_BRP.METER_DATA_COMPANY(DOMAIN) VALUES
('mdc1.usef-example.<EMAIL>');
INSERT INTO BRP2_USEF_EXAMPLE_COM_BRP.SYNCHRONISATION_CONNECTION(ID, ENTITY_ADDRESS, LAST_MODIFICATION_TIME, LAST_SYNCHRONISATION_TIME) VALUES
(-20, 'ean.002030100000000054', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-19, 'ean.002030100000000053', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-18, 'ean.002030100000000052', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-17, 'ean.002030100000000051', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-16, 'ean.002030100000000050', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-15, 'ean.302030100000000044', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-14, 'ean.302030100000000043', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-13, 'ean.302030100000000042', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-12, 'ean.302030100000000041', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-11, 'ean.302030100000000040', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-10, 'ean.302030100000000039', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-9, 'ean.302030100000000038', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-8, 'ean.302030100000000037', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-7, 'ean.302030100000000036', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-6, 'ean.302030100000000035', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-5, 'ean.002020100000000014', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-4, 'ean.302020100000000011', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-3, 'ean.302020100000000010', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-2, 'ean.002010100000000004', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-1, 'ean.302010100000000002', TIMESTAMP '2015-05-21 08:00:43.0', NULL);
INSERT INTO BRP2_USEF_EXAMPLE_COM_BRP.SYNCHRONISATION_CONNECTION_STATUS(ID, SYNCHRONISATION_CONNECTION_STATUS, COMMON_REFERENCE_OPERATOR_ID, SYNCHRONISATION_CONNECTION_ID) VALUES
(-20, 'MODIFIED', -1, -20),
(-19, 'MODIFIED', -1, -19),
(-18, 'MODIFIED', -1, -18),
(-17, 'MODIFIED', -1, -17),
(-16, 'MODIFIED', -1, -16),
(-15, 'MODIFIED', -1, -15),
(-14, 'MODIFIED', -1, -14),
(-13, 'MODIFIED', -1, -13),
(-12, 'MODIFIED', -1, -12),
(-11, 'MODIFIED', -1, -11),
(-10, 'MODIFIED', -1, -10),
(-9, 'MODIFIED', -1, -9),
(-8, 'MODIFIED', -1, -8),
(-7, 'MODIFIED', -1, -7),
(-6, 'MODIFIED', -1, -6),
(-5, 'MODIFIED', -1, -5),
(-4, 'MODIFIED', -1, -4),
(-3, 'MODIFIED', -1, -3),
(-2, 'MODIFIED', -1, -2),
(-1, 'MODIFIED', -1, -1);
INSERT INTO BRP1_USEF_EXAMPLE_COM_BRP.COMMON_REFERENCE_OPERATOR(ID, DOMAIN) VALUES
(-1, 'cro1.usef-example.com');
INSERT INTO BRP1_USEF_EXAMPLE_COM_BRP.METER_DATA_COMPANY(DOMAIN) VALUES
('mdc1.usef-example.com');
INSERT INTO BRP1_USEF_EXAMPLE_COM_BRP.SYNCHRONISATION_CONNECTION(ID, ENTITY_ADDRESS, LAST_MODIFICATION_TIME, LAST_SYNCHRONISATION_TIME) VALUES
(-46, 'ean.001040100000000066', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-45, 'ean.001040100000000065', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-44, 'ean.201000000000000064', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-43, 'ean.201000000000000063', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-42, 'ean.201000000000000062', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-41, 'ean.201000000000000061', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-40, 'ean.201000000000000060', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-39, 'ean.101000000000000059', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-38, 'ean.101000000000000058', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-37, 'ean.101000000000000057', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-36, 'ean.101000000000000056', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-35, 'ean.101000000000000055', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-34, 'ean.001030100000000049', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-33, 'ean.001030100000000048', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-32, 'ean.001030100000000047', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-31, 'ean.001030100000000046', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-30, 'ean.001030100000000045', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-29, 'ean.201030100000000034', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-28, 'ean.201030100000000033', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-27, 'ean.201030100000000032', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-26, 'ean.201030100000000031', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-25, 'ean.201030100000000030', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-24, 'ean.201030100000000029', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-23, 'ean.201030100000000028', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-22, 'ean.201030100000000027', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-21, 'ean.201030100000000026', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-20, 'ean.201030100000000025', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-19, 'ean.101030100000000024', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-18, 'ean.101030100000000023', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-17, 'ean.101030100000000022', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-16, 'ean.101030100000000021', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-15, 'ean.101030100000000020', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-14, 'ean.101030100000000019', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-13, 'ean.101030100000000018', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-12, 'ean.101030100000000017', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-11, 'ean.101030100000000016', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-10, 'ean.101030100000000015', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-9, 'ean.001020100000000013', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-8, 'ean.001020100000000012', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-7, 'ean.201020100000000009', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-6, 'ean.201020100000000008', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-5, 'ean.201020100000000007', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-4, 'ean.201020100000000006', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-3, 'ean.101020100000000005', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-2, 'ean.001010100000000003', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-1, 'ean.201010100000000001', TIMESTAMP '2015-05-21 08:00:43.0', NULL);
INSERT INTO BRP1_USEF_EXAMPLE_COM_BRP.SYNCHRONISATION_CONNECTION_STATUS(ID, SYNCHRONISATION_CONNECTION_STATUS, COMMON_REFERENCE_OPERATOR_ID, SYNCHRONISATION_CONNECTION_ID) VALUES
(-46, 'MODIFIED', -1, -46),
(-45, 'MODIFIED', -1, -45),
(-44, 'MODIFIED', -1, -44),
(-43, 'MODIFIED', -1, -43),
(-42, 'MODIFIED', -1, -42),
(-41, 'MODIFIED', -1, -41),
(-40, 'MODIFIED', -1, -40),
(-39, 'MODIFIED', -1, -39),
(-38, 'MODIFIED', -1, -38),
(-37, 'MODIFIED', -1, -37),
(-36, 'MODIFIED', -1, -36),
(-35, 'MODIFIED', -1, -35),
(-34, 'MODIFIED', -1, -34),
(-33, 'MODIFIED', -1, -33),
(-32, 'MODIFIED', -1, -32),
(-31, 'MODIFIED', -1, -31),
(-30, 'MODIFIED', -1, -30),
(-29, 'MODIFIED', -1, -29),
(-28, 'MODIFIED', -1, -28),
(-27, 'MODIFIED', -1, -27),
(-26, 'MODIFIED', -1, -26),
(-25, 'MODIFIED', -1, -25),
(-24, 'MODIFIED', -1, -24),
(-23, 'MODIFIED', -1, -23),
(-22, 'MODIFIED', -1, -22),
(-21, 'MODIFIED', -1, -21),
(-20, 'MODIFIED', -1, -20),
(-19, 'MODIFIED', -1, -19),
(-18, 'MODIFIED', -1, -18),
(-17, 'MODIFIED', -1, -17),
(-16, 'MODIFIED', -1, -16),
(-15, 'MODIFIED', -1, -15),
(-14, 'MODIFIED', -1, -14),
(-13, 'MODIFIED', -1, -13),
(-12, 'MODIFIED', -1, -12),
(-11, 'MODIFIED', -1, -11),
(-10, 'MODIFIED', -1, -10),
(-9, 'MODIFIED', -1, -9),
(-8, 'MODIFIED', -1, -8),
(-7, 'MODIFIED', -1, -7),
(-6, 'MODIFIED', -1, -6),
(-5, 'MODIFIED', -1, -5),
(-4, 'MODIFIED', -1, -4),
(-3, 'MODIFIED', -1, -3),
(-2, 'MODIFIED', -1, -2),
(-1, 'MODIFIED', -1, -1);
INSERT INTO DSO1_USEF_EXAMPLE_COM_DSO.COMMON_REFERENCE_OPERATOR(ID, DOMAIN) VALUES
(-1, 'cro1.usef-example.com');
INSERT INTO DSO1_USEF_EXAMPLE_COM_DSO.METER_DATA_COMPANY(DOMAIN) VALUES
('mdc1.usef-example.com');
INSERT INTO DSO1_USEF_EXAMPLE_COM_DSO.SYNCHRONISATION_CONGESTION_POINT(ID, ENTITY_ADDRESS, LAST_MODIFICATION_TIME, LAST_SYNCHRONISATION_TIME) VALUES
(-4, 'ea1.2015-02.com.usef-example:gridpoint.00000000-0000-0000-0004', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-3, 'ea1.2015-02.com.usef-example:gridpoint.00000000-0000-0000-0003', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-2, 'ea1.2015-02.com.usef-example:gridpoint.00000000-0000-0000-0002', TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-1, 'ea1.2015-02.com.usef-example:gridpoint.00000000-0000-0000-0001', TIMESTAMP '2015-05-21 08:00:43.0', NULL);
INSERT INTO DSO1_USEF_EXAMPLE_COM_DSO.SYNCHRONISATION_CONGESTION_POINT_STATUS(ID, SYNCHRONISATION_CONGESTION_POINT_STATUS, COMMON_REFERENCE_OPERATOR_ID, SYNCHRONISATION_CONGESTION_POINT_ID) VALUES
(-4, 'MODIFIED', -1, -4),
(-3, 'MODIFIED', -1, -3),
(-2, 'MODIFIED', -1, -2),
(-1, 'MODIFIED', -1, -1);
INSERT INTO DSO1_USEF_EXAMPLE_COM_DSO.SYNCHRONISATION_CONNECTION(ID, ENTITY_ADDRESS, SYNCHRONISATION_CONGESTION_POINT_ID) VALUES
(-56, 'ean.001040100000000066', -4),
(-55, 'ean.001040100000000065', -4),
(-54, 'ean.002030100000000054', -3),
(-53, 'ean.002030100000000053', -3),
(-52, 'ean.002030100000000052', -3),
(-51, 'ean.002030100000000051', -3),
(-50, 'ean.002030100000000050', -3),
(-49, 'ean.001030100000000049', -3),
(-48, 'ean.001030100000000048', -3),
(-47, 'ean.001030100000000047', -3),
(-46, 'ean.001030100000000046', -3),
(-45, 'ean.001030100000000045', -3),
(-44, 'ean.302030100000000044', -3),
(-43, 'ean.302030100000000043', -3),
(-42, 'ean.302030100000000042', -3),
(-41, 'ean.302030100000000041', -3),
(-40, 'ean.302030100000000040', -3),
(-39, 'ean.302030100000000039', -3),
(-38, 'ean.302030100000000038', -3),
(-37, 'ean.302030100000000037', -3),
(-36, 'ean.302030100000000036', -3),
(-35, 'ean.302030100000000035', -3),
(-34, 'ean.201030100000000034', -3),
(-33, 'ean.201030100000000033', -3),
(-32, 'ean.201030100000000032', -3),
(-31, 'ean.201030100000000031', -3),
(-30, 'ean.201030100000000030', -3),
(-29, 'ean.201030100000000029', -3),
(-28, 'ean.201030100000000028', -3),
(-27, 'ean.201030100000000027', -3),
(-26, 'ean.201030100000000026', -3),
(-25, 'ean.201030100000000025', -3),
(-24, 'ean.101030100000000024', -3),
(-23, 'ean.101030100000000023', -3),
(-22, 'ean.101030100000000022', -3),
(-21, 'ean.101030100000000021', -3),
(-20, 'ean.101030100000000020', -3),
(-19, 'ean.101030100000000019', -3),
(-18, 'ean.101030100000000018', -3),
(-17, 'ean.101030100000000017', -3),
(-16, 'ean.101030100000000016', -3),
(-15, 'ean.101030100000000015', -3),
(-14, 'ean.002020100000000014', -2),
(-13, 'ean.001020100000000013', -2),
(-12, 'ean.001020100000000012', -2),
(-11, 'ean.302020100000000011', -2),
(-10, 'ean.302020100000000010', -2),
(-9, 'ean.201020100000000009', -2),
(-8, 'ean.201020100000000008', -2),
(-7, 'ean.201020100000000007', -2),
(-6, 'ean.201020100000000006', -2),
(-5, 'ean.101020100000000005', -2),
(-4, 'ean.002010100000000004', -1),
(-3, 'ean.001010100000000003', -1),
(-2, 'ean.302010100000000002', -1),
(-1, 'ean.201010100000000001', -1);
INSERT INTO AGR1_USEF_EXAMPLE_COM_AGR.COMMON_REFERENCE_OPERATOR(ID, DOMAIN) VALUES
(-1, 'cro1.usef-example.com');
INSERT INTO AGR1_USEF_EXAMPLE_COM_AGR.SYNCHRONISATION_CONNECTION(ID, ENTITY_ADDRESS, IS_CUSTOMER, LAST_MODIFICATION_TIME, LAST_SYNCHRONISATION_TIME) VALUES
(-16, 'ean.101000000000000059', TRUE, TIMESTAMP '2015-05-21 08:00:42.0', NULL),
(-15, 'ean.101000000000000058', TRUE, TIMESTAMP '2015-05-21 08:00:42.0', NULL),
(-14, 'ean.101000000000000057', TRUE, TIMESTAMP '2015-05-21 08:00:42.0', NULL),
(-13, 'ean.101000000000000056', TRUE, TIMESTAMP '2015-05-21 08:00:42.0', NULL),
(-12, 'ean.101000000000000055', TRUE, TIMESTAMP '2015-05-21 08:00:42.0', NULL),
(-11, 'ean.101030100000000024', TRUE, TIMESTAMP '2015-05-21 08:00:42.0', NULL),
(-10, 'ean.101030100000000023', TRUE, TIMESTAMP '2015-05-21 08:00:42.0', NULL),
(-9, 'ean.101030100000000022', TRUE, TIMESTAMP '2015-05-21 08:00:42.0', NULL),
(-8, 'ean.101030100000000021', TRUE, TIMESTAMP '2015-05-21 08:00:42.0', NULL),
(-7, 'ean.101030100000000020', TRUE, TIMESTAMP '2015-05-21 08:00:42.0', NULL),
(-6, 'ean.101030100000000019', TRUE, TIMESTAMP '2015-05-21 08:00:42.0', NULL),
(-5, 'ean.101030100000000018', TRUE, TIMESTAMP '2015-05-21 08:00:42.0', NULL),
(-4, 'ean.101030100000000017', TRUE, TIMESTAMP '2015-05-21 08:00:42.0', NULL),
(-3, 'ean.101030100000000016', TRUE, TIMESTAMP '2015-05-21 08:00:42.0', NULL),
(-2, 'ean.101030100000000015', TRUE, TIMESTAMP '2015-05-21 08:00:42.0', NULL),
(-1, 'ean.101020100000000005', TRUE, TIMESTAMP '2015-05-21 08:00:42.0', NULL);
INSERT INTO AGR1_USEF_EXAMPLE_COM_AGR.SYNCHRONISATION_CONNECTION_STATUS(ID, SYNCHRONISATION_CONNECTION_STATUS, COMMON_REFERENCE_OPERATOR_ID, SYNCHRONISATION_CONNECTION_ID) VALUES
(-16, 'MODIFIED', -1, -16),
(-15, 'MODIFIED', -1, -15),
(-14, 'MODIFIED', -1, -14),
(-13, 'MODIFIED', -1, -13),
(-12, 'MODIFIED', -1, -12),
(-11, 'MODIFIED', -1, -11),
(-10, 'MODIFIED', -1, -10),
(-9, 'MODIFIED', -1, -9),
(-8, 'MODIFIED', -1, -8),
(-7, 'MODIFIED', -1, -7),
(-6, 'MODIFIED', -1, -6),
(-5, 'MODIFIED', -1, -5),
(-4, 'MODIFIED', -1, -4),
(-3, 'MODIFIED', -1, -3),
(-2, 'MODIFIED', -1, -2),
(-1, 'MODIFIED', -1, -1);
INSERT INTO AGR2_USEF_EXAMPLE_COM_AGR.COMMON_REFERENCE_OPERATOR(ID, DOMAIN) VALUES
(-1, 'cro1.usef-example.com');
INSERT INTO AGR2_USEF_EXAMPLE_COM_AGR.SYNCHRONISATION_CONNECTION(ID, ENTITY_ADDRESS, IS_CUSTOMER, LAST_MODIFICATION_TIME, LAST_SYNCHRONISATION_TIME) VALUES
(-20, 'ean.201000000000000064', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-19, 'ean.201000000000000063', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-18, 'ean.201000000000000062', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-17, 'ean.201000000000000061', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-16, 'ean.201000000000000060', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-15, 'ean.201030100000000034', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-14, 'ean.201030100000000033', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-13, 'ean.201030100000000032', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-12, 'ean.201030100000000031', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-11, 'ean.201030100000000030', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-10, 'ean.201030100000000029', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-9, 'ean.201030100000000028', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-8, 'ean.201030100000000027', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-7, 'ean.201030100000000026', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-6, 'ean.201030100000000025', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-5, 'ean.201020100000000009', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-4, 'ean.201020100000000008', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-3, 'ean.201020100000000007', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-2, 'ean.201020100000000006', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-1, 'ean.201010100000000001', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL);
INSERT INTO AGR2_USEF_EXAMPLE_COM_AGR.SYNCHRONISATION_CONNECTION_STATUS(ID, SYNCHRONISATION_CONNECTION_STATUS, COMMON_REFERENCE_OPERATOR_ID, SYNCHRONISATION_CONNECTION_ID) VALUES
(-20, 'MODIFIED', -1, -20),
(-19, 'MODIFIED', -1, -19),
(-18, 'MODIFIED', -1, -18),
(-17, 'MODIFIED', -1, -17),
(-16, 'MODIFIED', -1, -16),
(-15, 'MODIFIED', -1, -15),
(-14, 'MODIFIED', -1, -14),
(-13, 'MODIFIED', -1, -13),
(-12, 'MODIFIED', -1, -12),
(-11, 'MODIFIED', -1, -11),
(-10, 'MODIFIED', -1, -10),
(-9, 'MODIFIED', -1, -9),
(-8, 'MODIFIED', -1, -8),
(-7, 'MODIFIED', -1, -7),
(-6, 'MODIFIED', -1, -6),
(-5, 'MODIFIED', -1, -5),
(-4, 'MODIFIED', -1, -4),
(-3, 'MODIFIED', -1, -3),
(-2, 'MODIFIED', -1, -2),
(-1, 'MODIFIED', -1, -1);
INSERT INTO AGR3_USEF_EXAMPLE_COM_AGR.COMMON_REFERENCE_OPERATOR(ID, DOMAIN) VALUES
(-1, 'cro1.usef-example.com');
INSERT INTO AGR3_USEF_EXAMPLE_COM_AGR.SYNCHRONISATION_CONNECTION(ID, ENTITY_ADDRESS, IS_CUSTOMER, LAST_MODIFICATION_TIME, LAST_SYNCHRONISATION_TIME) VALUES
(-13, 'ean.302030100000000044', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-12, 'ean.302030100000000043', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-11, 'ean.302030100000000042', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-10, 'ean.302030100000000041', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-9, 'ean.302030100000000040', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-8, 'ean.302030100000000039', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-7, 'ean.302030100000000038', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-6, 'ean.302030100000000037', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-5, 'ean.302030100000000036', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-4, 'ean.302030100000000035', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-3, 'ean.302020100000000011', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-2, 'ean.302020100000000010', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL),
(-1, 'ean.302010100000000002', TRUE, TIMESTAMP '2015-05-21 08:00:43.0', NULL);
INSERT INTO AGR3_USEF_EXAMPLE_COM_AGR.SYNCHRONISATION_CONNECTION_STATUS(ID, SYNCHRONISATION_CONNECTION_STATUS, COMMON_REFERENCE_OPERATOR_ID, SYNCHRONISATION_CONNECTION_ID) VALUES
(-13, 'MODIFIED', -1, -13),
(-12, 'MODIFIED', -1, -12),
(-11, 'MODIFIED', -1, -11),
(-10, 'MODIFIED', -1, -10),
(-9, 'MODIFIED', -1, -9),
(-8, 'MODIFIED', -1, -8),
(-7, 'MODIFIED', -1, -7),
(-6, 'MODIFIED', -1, -6),
(-5, 'MODIFIED', -1, -5),
(-4, 'MODIFIED', -1, -4),
(-3, 'MODIFIED', -1, -3),
(-2, 'MODIFIED', -1, -2),
(-1, 'MODIFIED', -1, -1); |
truncate cop_early_response;
truncate cop_workflow_instance;
truncate cop_wfi_id;
|
<gh_stars>10-100
select * from `PROJECT.idc_v5.original_collections_metadata`
|
<filename>console/dumps/regions.sql<gh_stars>1-10
INSERT INTO `geo_regions` (`id`, `country_id`, `iso_code`, `sort`) VALUES
(279, 3, 'UA-05', 0),
(280, 3, 'UA-07', 0),
(281, 3, 'UA-12', 0),
(282, 3, 'UA-14', 0),
(283, 3, 'UA-18', 0),
(284, 3, 'UA-21', 0),
(285, 3, 'UA-23', 0),
(286, 3, 'UA-26', 0),
(287, 3, 'UA-32', 0),
(288, 3, 'UA-35', 0),
(289, 3, 'UA-43', 0),
(290, 3, 'UA-09', 0),
(291, 3, 'UA-46', 0),
(292, 3, 'UA-48', 0),
(293, 3, 'UA-51', 0),
(294, 3, 'UA-53', 0),
(295, 3, 'UA-56', 0),
(296, 3, 'UA-59', 0),
(297, 3, 'UA-61', 0),
(298, 3, 'UA-63', 0),
(299, 3, 'UA-65', 0),
(300, 3, 'UA-68', 0),
(301, 3, 'UA-71', 0),
(302, 3, 'UA-74', 0),
(303, 3, 'UA-77', 0); |
-- MariaDB dump 10.17 Distrib 10.4.3-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: pmacontrol
-- ------------------------------------------------------
-- Server version 10.4.3-MariaDB-1:10.4.3+maria~bionic-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 utf8mb4 */;
/*!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 `menu`
--
DROP TABLE IF EXISTS `menu`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `menu` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`parent_id` tinyint(3) unsigned DEFAULT NULL,
`bg` int(11) NOT NULL,
`bd` int(11) NOT NULL,
`active` int(11) NOT NULL DEFAULT 1,
`icon` text NOT NULL,
`title` varchar(255) NOT NULL DEFAULT '',
`url` varchar(255) NOT NULL DEFAULT '',
`class` varchar(255) NOT NULL DEFAULT '',
`method` varchar(255) NOT NULL DEFAULT '',
`position` tinyint(3) unsigned NOT NULL DEFAULT 0,
`group_id` tinyint(3) unsigned NOT NULL DEFAULT 1,
`level` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
UNIQUE KEY `class` (`class`,`method`,`bg`,`bd`)
) ENGINE=InnoDB AUTO_INCREMENT=172 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `menu`
--
LOCK TABLES `menu` WRITE;
/*!40000 ALTER TABLE `menu` DISABLE KEYS */;
INSERT INTO `menu` VALUES (60,0,175,176,1,'<span class=\"glyphicon glyphicon-off\"></span>','Login','{LINK}user/connection/','user','connection',0,3,''),(61,0,177,178,1,'<span class=\"glyphicon glyphicon-user\"></span>','Register','{LINK}user/register/','user','register',0,3,''),(62,0,179,180,1,'<span class=\"glyphicon glyphicon-envelope\"></span>','Lost password','{LINK}user/lost_password/','user','lost_password',0,3,''),(92,NULL,1,142,1,'<span class=\"glyphicon glyphicon glyphicon-home\"></span>','Home','{LINK}home/index','home','index',0,1,''),(95,92,4,19,1,'<span class=\"glyphicon glyphicon glyphicon-home\"></span>','Dashboard','','dashboard','index',0,1,''),(96,95,5,8,1,'<i class=\"fa fa-server\" aria-hidden=\"true\" style=\"font-size:14px\"></i>','Servers','{LINK}server/main','server','main',0,1,''),(97,95,9,10,1,'<span class=\"glyphicon glyphicon-hdd\" style=\"font-size:12px\"></span>','Hardware','{LINK}server/hardware','server','hardware',0,1,''),(98,95,11,12,1,'<span class=\"glyphicon glyphicon-signal\" style=\"font-size:12px\"></span>','Statistics','{LINK}server/statistics','server','statistics',0,1,''),(99,95,13,14,1,'<span class=\"glyphicon glyphicon-floppy-disk\" style=\"font-size:12px\"></span>','Memory','{LINK}server/memory','server','memory',0,1,''),(100,95,15,16,1,'<span class=\"glyphicon glyphicon-th-list\" style=\"font-size:12px\"></span>','Index','{LINK}server/index','server','index',0,1,''),(101,95,17,18,1,'<i class=\"fa fa-line-chart\" aria-hidden=\"true\"></i>','Graphs','{LINK}server/id','server','id',0,1,''),(102,92,20,29,1,'<i class=\"fa fa-object-group\" style=\"font-size:14px\"></i>','Architecture','','','',0,1,''),(103,92,30,53,1,'<span class=\"glyphicon glyphicon-wrench\" aria-hidden=\"true\"></span>','Tools','','','',0,1,''),(104,103,31,32,1,'<span class=\"glyphicon glyphicon-list-alt\" style=\"font-size:12px\"></span>','Query Analyzer','{LINK}monitoring/query/','monitoring','query',0,1,''),(105,103,33,36,1,'<i class=\"glyphicon glyphicon-erase\"></i>','Cleaner','{LINK}cleaner/index/','cleaner','index',0,1,''),(108,92,56,71,1,'<span class=\"glyphicon glyphicon-floppy-disk\" style=\"font-size:12px\"></span>','Backups','','','',0,1,''),(109,92,72,77,1,'<i style=\"font-size: 16px\" class=\"fa fa-puzzle-piece\"></i>','Plugins','','','',0,1,''),(110,109,73,74,1,'<span class=\"glyphicon glyphicon-th-list\" aria-hidden=\"true\"></span>','sys Schema','{LINK}mysqlsys/index/','mysqlsys','index',0,1,''),(111,109,75,76,1,'<i class=\"fa fa-tachometer\" aria-hidden=\"true\"></i>','BenchMark','{LINK}benchmark/index/','benchmark','index',0,1,''),(112,103,37,38,1,'<i class=\"fa fa-key\" style=\"font-size:16px\" aria-hidden=\"true\"></i>','Deploy RSA key','{LINK}DeployRsaKey/index/','DeployRsaKey','index',0,1,''),(113,92,78,121,1,'<span class=\"glyphicon glyphicon-cog\" style=\"font-size:12px\"></span>','Settings','','','',0,1,''),(114,108,57,62,1,'<span class=\"glyphicon glyphicon-hdd\" style=\"font-size:12px\"></span>','Storage area','{LINK}StorageArea/index/','StorageArea','index',0,1,''),(115,108,63,68,1,'<span class=\"glyphicon glyphicon-book\" style=\"font-size:12px\" aria-hidden=\"true\"></span>','Archives','{LINK}Archives/index/','Archives','index',0,1,''),(116,92,122,131,1,'<i class=\"fa fa-question\" style=\"font-size:16px\" aria-hidden=\"true\"></i>','Help','','','',0,1,''),(117,116,123,124,1,'<i class=\"fa fa-book\" style=\"font-size:16px\"></i>','Online docs and support','https://github.com/Glial/PmaControl/wiki','','',0,1,''),(118,116,125,126,1,'<i class=\"fa fa-refresh\" style=\"font-size:16px\"></i>','Check for update','https://github.com/PmaControl/PmaControl','update','index',0,1,''),(119,116,127,128,1,'<i class=\"fa fa-bug\" style=\"font-size:16px\"></i>','Report issue','https://github.com/PmaControl/PmaControl/issues','','',0,1,''),(120,116,129,130,1,'<i class=\"fa fa-info-circle\" style=\"font-size:16px\"></i>','About','{LINK}About/index','about','index',0,1,''),(121,113,79,80,1,'<span class=\"glyphicon glyphicon-user\" style=\"font-size:12px\"></span>','Users','{LINK}user/index/','user','index',0,1,''),(122,113,81,82,1,'<span class=\"glyphicon glyphicon-user\" style=\"font-size:12px\"></span>','Groups','{LINK}group/index/','group','index',0,1,''),(123,113,83,86,1,'<span class=\"glyphicon glyphicon-user\" style=\"font-size:12px\"></span>','Client','{LINK}client/index/','client','index',0,1,''),(124,113,87,90,1,'<span class=\"glyphicon glyphicon-user\" style=\"font-size:12px\"></span>','Environment','{LINK}environment/index/','environment','index',0,1,''),(125,113,91,92,1,'<span class=\"glyphicon glyphicon-calendar\" style=\"font-size:12px\"></span>','Daemon','{LINK}daemon/index','daemon','index',0,1,''),(126,113,93,98,1,' <i class=\"fa fa-server\" aria-hidden=\"true\" style=\"font-size:14px\"></i>','Servers','{LINK}server/settings','server','settings',0,1,''),(127,103,39,40,1,'<i class=\"glyphicon glyphicon-transfer\" style=\"font-size:12px\"></i>','Compare','{LINK}compare/index/','compare','index',0,1,''),(128,103,41,42,1,'<span class=\"glyphicon glyphicon-search\" aria-hidden=\"true\"></span>','Scan network','{LINK}scan/index/','scan','index',0,1,''),(129,92,2,3,1,'<span class=\"glyphicon glyphicon glyphicon-home\"></span>','Home','{LINK}home/index','home','index',0,1,''),(131,113,99,100,1,'<i class=\"fa fa-address-book\" aria-hidden=\"true\"></i>','LDAP','{LINK}ldap/index/','ldap','index',0,1,''),(132,113,101,102,1,'<i class=\"fa fa-puzzle-piece\" aria-hidden=\"true\"></i>','Plugins','{LInK}plugin/index','plugin','index',0,1,''),(133,113,103,108,1,'<i class=\"fa fa-key\" aria-hidden=\"true\"></i>','SSH keys','{LINK}ssh/index','ssh','index',0,1,''),(136,103,43,44,1,'<i class=\"fa fa-wpforms\" aria-hidden=\"true\"></i>','Format SQL','{LINK}format/index/','format','index',0,1,''),(137,92,132,133,1,'<span class=\"glyphicon glyphicon-off\" aria-hidden=\"true\"></span>','Logout','{LINK}user/logout/','user','logout',0,1,''),(138,113,109,114,1,'<span class=\"glyphicon glyphicon-import\"></span>','Import / Export','{LINK}export/index','Export','index',0,1,''),(139,103,45,46,1,'<i class=\"fa fa-wrench\" aria-hidden=\"true\"></i>','Check Config','{LINK}CheckConfig/index/','CheckConfig','index',0,1,''),(140,108,69,70,1,'<span class=\"glyphicon glyphicon-cog\" style=\"font-size:12px\"></span>','Settings','{LINK}backup/settings/','backup','settings',0,1,''),(141,113,115,116,1,'<span class=\"glyphicon glyphicon-globe\" aria-hidden=\"true\"></span>','Alias DNS','{LINK}alias/index','alias','index',0,1,''),(142,92,134,141,1,'<i class=\"fa fa-id-card-o\" aria-hidden=\"true\"></i>','Developer','','','',0,1,''),(143,142,135,136,1,'<i class=\"fa fa-terminal\" aria-hidden=\"true\"></i>','PHP Live REGEX','{LINK}PhpLiveRegex/index','PhpLiveRegex','index',0,1,''),(144,142,137,140,1,'<span class=\"glyphicon glyphicon-menu-hamburger\" aria-hidden=\"true\"></span>','Manage menu','{LINK}tree/index','tree','index',0,1,''),(145,113,117,120,1,'<span class=\"glyphicon glyphicon-tags\" aria-hidden=\"true\"></span>','Tags','{LINK}tag/index','tag','index',0,1,''),(146,103,47,48,1,'<i class=\"fa fa-address-card\" aria-hidden=\"true\"></i>','MySQL User','{LINK}MysqlUser/index/','MysqlUser','index',0,1,''),(147,102,21,22,1,'<i class=\"glyphicon glyphicon-th\"></i>','Topology','{LINK}architecture/index/','architecture','index',0,1,''),(148,102,23,26,1,'<i class=\"fa fa-sitemap\"></i>','Master / Slave','{LINK}slave/index/','slave','index',0,1,''),(149,102,27,28,1,'<i class=\"glyphicon glyphicon-th-large\"></i>','Galera Cluster','{LINK}GaleraCluster/index/','GaleraCluster','index',0,1,''),(150,103,49,52,1,'<i class=\"fa fa-database fa-lg\"></i>','Database','{LINK}database/index','database','index',0,1,''),(153,144,138,139,0,'<span class=\"glyphicon glyphicon-plus\"></span>','Add menu entry','{LINK}tree/add','tree','add',0,1,''),(154,96,6,7,0,'<i class=\"fa fa-server\" aria-hidden=\"true\" style=\"font-size:14px\"></i>','Servers listing','{LINK}Server/listing','Server','listing',0,1,''),(155,105,34,35,0,'<span class=\"glyphicon glyphicon-plus\"></span>','Add a cleaner','{LINK}cleaner/add/','cleaner','add',0,1,''),(156,114,58,59,0,'<span class=\"glyphicon glyphicon-plus\"></span>','Add a storage area','{LINK}StorageArea/add','StorageArea','add',0,1,''),(157,114,60,61,0,'<span class=\"glyphicon glyphicon-hdd\" style=\"font-size:12px\"></span>','List all storage area','{LINK}StorageArea/listStorage','StorageArea','listStorage',0,1,''),(158,115,64,65,0,'<span class=\"glyphicon glyphicon-book\" style=\"font-size:12px\" aria-hidden=\"true\"></span>','Restoration history','{LINK}Archives/history','Archives','history',0,1,''),(159,115,66,67,0,'<span class=\"glyphicon glyphicon-book\" style=\"font-size:12px\" aria-hidden=\"true\"></span>','Restoration detail','{LINK}Archives/detail/','Archives','detail',0,1,''),(160,150,50,51,0,'<span class=\"glyphicon glyphicon-plus\"></span>','Create database','{LINK}database/create','database','create',0,1,''),(161,126,94,95,0,'<i class=\"fa fa-key\" aria-hidden=\"true\"></i>','Change server password','{LINK}server/password','server','password',0,1,''),(162,126,96,97,0,'<span class=\"glyphicon glyphicon-plus\"></span>','Add a new server','{LINK}mysql/add','mysql','add',0,1,''),(163,123,84,85,0,'<span class=\"glyphicon glyphicon-plus\"></span>','Add a client','{LINK}client/add','client','add',0,1,''),(164,138,110,111,0,'<span class=\"glyphicon glyphicon-floppy-disk\"></span>','Import / Export configuration','{LINK}export/export_conf/','export','export_conf',0,1,''),(165,138,112,113,0,'<span class=\"glyphicon glyphicon-floppy-disk\"></span>','Import / Export configuration','{LINK}export/import_conf/','export','import_conf',0,1,''),(166,92,54,55,1,'<span class=\"glyphicon glyphicon-cog\" aria-hidden=\"true\"></span>','Job','{LINK}job/index','job','index',0,1,''),(167,148,24,25,0,'<i class=\"fa fa-sitemap\"></i>','Slave Show','{LINK}slave/show/','slave','show',0,1,''),(168,145,118,119,0,'<i class=\"fa fa-plus\"></i>','Add a new tag','{LINK}tag/add/','tag','add',0,1,''),(169,124,88,89,1,'<i class=\"fa fa-plus\"></i>','Add an environment','{LINK}environment/add/','environment','add',0,1,''),(170,133,104,105,0,'<i class=\"fa fa-plus\"></i>','Add a ssh key','{LINK}ssh/add/','ssh','add',0,1,''),(171,133,106,107,0,'<i class=\"far fa-edit\"></i>','Edit a ssh key','{LINK}ssh/edit/','ssh','edit',0,1,'');
/*!40000 ALTER TABLE `menu` 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-03-05 19:02:07
|
/* regex replace
find \B
replace ' ' <-- space
*/
DROP TABLE IF EXISTS #Stage_backup
DROP TABLE IF EXISTS #Stage
CREATE TABLE #Stage
(
Bit01 tinyint NOT NULL
, Bit02 tinyint NOT NULL
, Bit03 tinyint NOT NULL
, Bit04 tinyint NOT NULL
, Bit05 tinyint NOT NULL
, Bit06 tinyint NOT NULL
, Bit07 tinyint NOT NULL
, Bit08 tinyint NOT NULL
, Bit09 tinyint NOT NULL
, Bit10 tinyint NOT NULL
, Bit11 tinyint NOT NULL
, Bit12 tinyint NOT NULL
)
DECLARE @rowCount int
BULK INSERT #Stage
FROM 'D:\AdventOfCode2021\Day3\Input.csv'
WITH
(
FIRSTROW = 1,
FIELDTERMINATOR = ' ',
ROWTERMINATOR = '\n',
TABLOCK
)
SET @rowCount = @@ROWCOUNT
SELECT * INTO #stage_backup
FROM #Stage AS s
DECLARE
@oxygen char(12),
@co2 char(12)
/*
###############################################################################
Stupid manual solution first
###############################################################################
*/
/* Loop for Oxygen here */
DELETE s
FROM #Stage AS s
WHERE s.Bit01 = (SELECT IIF(SUM(Bit01) >= @rowCount/2., 1, 0) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit02 = (SELECT IIF(SUM(Bit02) >= @rowCount/2., 1, 0) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit03 = (SELECT IIF(SUM(Bit03) >= @rowCount/2., 1, 0) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit04 = (SELECT IIF(SUM(Bit04) >= @rowCount/2., 1, 0) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit05 = (SELECT IIF(SUM(Bit05) >= @rowCount/2., 1, 0) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit06 = (SELECT IIF(SUM(Bit06) >= @rowCount/2., 1, 0) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit07 = (SELECT IIF(SUM(Bit07) >= @rowCount/2., 1, 0) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit08 = (SELECT IIF(SUM(Bit08) >= @rowCount/2., 1, 0) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit09 = (SELECT IIF(SUM(Bit09) >= @rowCount/2., 1, 0) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
SELECT * FROM #Stage AS s
SELECT @oxygen = CONCAT
(
s.Bit01
, s.Bit02
, s.Bit03
, s.Bit04
, s.Bit05
, s.Bit06
, s.Bit07
, s.Bit08
, s.Bit09
, s.Bit10
, s.Bit11
, s.Bit12
)
FROM #Stage AS s
/* End Oxygen */
/* Restore Stage table */
TRUNCATE TABLE #Stage
INSERT INTO #Stage SELECT * FROM #stage_backup
SET @rowCount = @@ROWCOUNT
/* Loop for CO2 here */
DELETE s
FROM #Stage AS s
WHERE s.Bit01 = (SELECT IIF(SUM(Bit01) >= @rowCount/2., 0, 1) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit02 = (SELECT IIF(SUM(Bit02) >= @rowCount/2., 0, 1) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit03 = (SELECT IIF(SUM(Bit03) >= @rowCount/2., 0, 1) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit04 = (SELECT IIF(SUM(Bit04) >= @rowCount/2., 0, 1) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit05 = (SELECT IIF(SUM(Bit05) >= @rowCount/2., 0, 1) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit06 = (SELECT IIF(SUM(Bit06) >= @rowCount/2., 0, 1) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit07 = (SELECT IIF(SUM(Bit07) >= @rowCount/2., 0, 1) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit08 = (SELECT IIF(SUM(Bit08) >= @rowCount/2., 0, 1) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit09 = (SELECT IIF(SUM(Bit09) >= @rowCount/2., 0, 1) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit10 = (SELECT IIF(SUM(Bit10) >= @rowCount/2., 0, 1) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit11 = (SELECT IIF(SUM(Bit11) >= @rowCount/2., 0, 1) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
DELETE s
FROM #Stage AS s
WHERE s.Bit12 = (SELECT IIF(SUM(Bit12) >= @rowCount/2., 0, 1) FROM #Stage AS s)
SET @rowCount -= @@ROWCOUNT
SELECT * FROM #Stage AS s
SELECT @co2 = CONCAT
(
s.Bit01
, s.Bit02
, s.Bit03
, s.Bit04
, s.Bit05
, s.Bit06
, s.Bit07
, s.Bit08
, s.Bit09
, s.Bit10
, s.Bit11
, s.Bit12
)
FROM #Stage AS s
;WITH
L0 AS(SELECT 1 AS c UNION ALL SELECT 1),
L1 AS(SELECT 1 AS c FROM L0 CROSS JOIN L0 AS B),
L2 AS(SELECT 1 AS c FROM L1 CROSS JOIN L1 AS B),
L3 AS(SELECT 1 AS c FROM L2 CROSS JOIN L2 AS B),
L4 AS(SELECT 1 AS c FROM L3 CROSS JOIN L3 AS B),
L5 AS(SELECT 1 AS c FROM L4 CROSS JOIN L4 AS B),
Nums AS(SELECT ROW_NUMBER() OVER(ORDER BY (SELECT NULL)) AS n FROM L5)
, tally AS (SELECT TOP (LEN(@oxygen)) n FROM Nums ORDER BY n)
, convertBinary
AS
(
SELECT
n
, POWER(2, n-1) AS powerOfTwo
, SUBSTRING(REVERSE(@oxygen),n,1) AS oxygen
, SUBSTRING(REVERSE(@co2),n,1) AS co2
FROM tally
)
SELECT
@oxygen AS oxygenBinary
, @co2 AS co2Binary
, SUM(cb.powerOfTwo * cb.oxygen) AS oxygenDecimal
, SUM(cb.powerOfTwo * cb.co2) AS co2Decimal
, SUM(cb.powerOfTwo * cb.oxygen) * SUM(cb.powerOfTwo * cb.co2) AS result
FROM convertBinary AS cb
|
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
ALTER TABLE `videos`
CHANGE COLUMN `type` `type` ENUM('audio', 'video', 'embed', 'linkVideo', 'linkAudio', 'torrent', 'pdf', 'image', 'gallery', 'article', 'serie') NOT NULL DEFAULT 'video' ,
ADD COLUMN `serie_playlists_id` INT(11) NULL DEFAULT NULL,
ADD INDEX `fk_videos_playlists1_idx` (`serie_playlists_id` ASC);
ALTER TABLE `videos`
ADD CONSTRAINT `fk_videos_playlists1`
FOREIGN KEY (`serie_playlists_id`)
REFERENCES `playlists` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE;
UPDATE configurations SET version = '7.7', modified = now() WHERE id = 1;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
<filename>EMP2012/SQL/Combine20082012Inventory_SAC.sql<gh_stars>0
--This script combines 2008 and 2012 employment inventory by matching company name and address
--Inventory2008:2008 employment inventory; imported from P:\Employment Inventory\Employment 2012\2012\files for review\FinalReview\sacramento.xlsx
--Inventory2012:2012 employment inventory; imported from P:\Employment Inventory\Employment 2012\2012\files for review\FinalReview\sacramento.xlsx
--database name: SacEMP1
--clean duplicates
--4 duplicate records found: two objectid12 but one infousaid12 and one infouseid08
DELETE FROM Inventory2012
WHERE OBJECTID12='85760' OR OBJECTID12='85758' OR OBJECTID12='85759' OR OBJECTID12='85756'
DELETE FROM Inventory2008
WHERE objectid08='17747' or objectid08='42925' or objectid08='33915' or objectid08='37149' or
objectid08='14675' or objectid08='25091' or objectid08='4675' or objectid08='25286' or
objectid08='44436' or objectid08='20041' or objectid08='44428' or objectid08='17008' or
objectid08='39577' or objectid08='44426'
--flag company12 at the same ST_NUM and INFOUSAID as 2008 but different ST_NAME and ADDRESS due to two different
--methods to code the ST_NAME (with # in 2012)
--==
SELECT Inventory2012.*, Inventory2008.OBJECTID08, Inventory2008.INFOUSAID08, Inventory2008.COMMENT08, Inventory2008.ST_NUM08, Inventory2008.ST_NAME08,Inventory2008.ADDRESS08,
Inventory2008.CITY08, Inventory2008.ZIP_COD08, Inventory2008.COMPANY08, Inventory2008.EMP08, Inventory2008.SOURCE08, Inventory2008.NAICS08,Inventory2008.NAICS_D08
INTO Inventory2012And2008a
FROM Inventory2008 RIGHT OUTER JOIN
Inventory2012 ON Inventory2008.INFOUSAID08 = Inventory2012.INFOUSAID12 AND Inventory2008.ST_NUM08 = Inventory2012.ST_NUM12 AND
Inventory2008.COMPANY08 = Inventory2012.COMPANY12
ALTER TABLE Inventory2012And2008a
ADD Note12 nvarchar(20)
UPDATE Inventory2012And2008a
SET Note12='2008 and 2012'
WHERE OBJECTID08 IS NOT NULL
--Inventory2012And2008a includes all 2012 records and those companies (19214) with the same name and address
--checked and no mismatches and duplicates were found.
--==
--flag address12 with company08;company12<>company08 at the same address
SELECT *
INTO Inventory2012And2008a1
FROM Inventory2012And2008a
WHERE Note12 is null
--exclude Note12='2008 and 2012' from Inventory2008
SELECT OBJECTID08, Note12
INTO Flag2008
FROM Inventory2012And2008a
WHERE Note12='2008 and 2012'
SELECT Inventory2008.*, Flag2008.Note12
INTO Inventory2008Flag2008
FROM Flag2008 RIGHT OUTER JOIN
Inventory2008 ON Flag2008.OBJECTID08 = Inventory2008.OBJECTID08
--remove '2008 and 2012' records from Inventory2008
SELECT OBJECTID08, INFOUSAID08, COMMENT08, ST_NUM08, ST_NAME08, ADDRESS08, CITY08, ZIP_COD08, COMPANY08, EMP08, SOURCE08, NAICS08,
NAICS_D08
INTO Inventory2008Flag2008a
FROM Inventory2008Flag2008
WHERE Note12 is null
--due to many-to-one and one-to-many crosswalk between 2008 and 2012, duplicates of objectid12 and objectid08 were created.
--total duplicates=11265
SELECT Inventory2012And2008a1.*, Inventory2008Flag2008a.OBJECTID08 AS Expr1, Inventory2008Flag2008a.INFOUSAID08 AS Expr2,
Inventory2008Flag2008a.COMMENT08 AS Expr3, Inventory2008Flag2008a.ST_NUM08 AS Expr4, Inventory2008Flag2008a.ST_NAME08 AS Expr5,
Inventory2008Flag2008a.ADDRESS08 AS Expr6, Inventory2008Flag2008a.CITY08 AS Expr7, Inventory2008Flag2008a.ZIP_COD08 AS Expr8,
Inventory2008Flag2008a.COMPANY08 AS Expr9, Inventory2008Flag2008a.EMP08 AS Expr10, Inventory2008Flag2008a.SOURCE08 AS Expr11,
Inventory2008Flag2008a.NAICS08 AS Expr12, Inventory2008Flag2008a.NAICS_D08 AS Expr13
INTO Inventory2012And2008a2
FROM Inventory2012And2008a1 LEFT OUTER JOIN
Inventory2008Flag2008a ON Inventory2012And2008a1.ADDRESS12 = Inventory2008Flag2008a.ADDRESS08
UPDATE Inventory2012And2008a2
SET [OBJECTID08]=Expr1,[INFOUSAID08]=Expr2,[ST_NUM08]=Expr4,[ST_NAME08]=Expr5,[ADDRESS08]=Expr6,[CITY08]=Expr7,
[ZIP_COD08]=Expr8,[COMPANY08]=Expr9,[EMP08]=Expr10,[SOURCE08]=Expr11,[NAICS08]=Expr12,[NAICS_D08]=Expr13
ALTER TABLE Inventory2012And2008a2
DROP COLUMN Expr1,Expr2,Expr3,Expr4,Expr5,Expr6,Expr7,Expr8,Expr9,Expr10,Expr11,Expr12,Expr13
--2012A=2012 address; all 2012 records are labelled and some 2008 records are labelled.
UPDATE Inventory2012And2008a2
SET Note12='2012A'
--select Note12='2008 and 2012'
SELECT *
INTO Inventory2012And2008b
FROM Inventory2012And2008a
WHERE Note12='2008 and 2012'
--combine Note12='2008 and 2012' and '2012A'
--this table includes all 2012 recrods but only 31425 2008 records
INSERT INTO Inventory2012And2008b ([OBJECTID12],[INFOUSAID12],[COMMENT12],[ST_NUM12],[ST_NAME12],[ADDRESS12]
,[CITY12],[ZIP_COD12],[COMPANY12],[EMP12],[SOURCE12],[NAICS12],[NAICS_D12],[COUNTY],[OBJECTID08]
,[INFOUSAID08],[COMMENT08],[ST_NUM08],[ST_NAME08],[ADDRESS08],[CITY08],[ZIP_COD08],[COMPANY08],[EMP08]
,[SOURCE08],[NAICS08],[NAICS_D08],[Note12])
SELECT [OBJECTID12],[INFOUSAID12],[COMMENT12],[ST_NUM12],[ST_NAME12],[ADDRESS12]
,[CITY12],[ZIP_COD12],[COMPANY12],[EMP12],[SOURCE12],[NAICS12],[NAICS_D12],[COUNTY],[OBJECTID08]
,[INFOUSAID08],[COMMENT08],[ST_NUM08],[ST_NAME08],[ADDRESS08],[CITY08],[ZIP_COD08],[COMPANY08],[EMP08]
,[SOURCE08],[NAICS08],[NAICS_D08],[Note12]
FROM Inventory2012And2008a2
SELECT OBJECTID08,IN2012=1
INTO OBJECTID08IN2012
FROM Inventory2012And2008b
GROUP BY OBJECTID08
SELECT Inventory2008.*, OBJECTID08IN2012.IN2012
INTO Inventory2008a
FROM Inventory2008 LEFT OUTER JOIN
OBJECTID08IN2012 ON Inventory2008.OBJECTID08 = OBJECTID08IN2012.OBJECTID08
--select those records exist only in 2008;
SELECT *
INTO Inventory2008b
FROM Inventory2008a
WHERE IN2012 IS NULL
--append Inventory2008b to Inventory2012And2008b to create a table including all 2008 and 2012 recrods
SELECT *
INTO Inventory2012And2008c
FROM Inventory2012And2008b
INSERT INTO Inventory2012And2008c ([COUNTY],[OBJECTID08]
,[INFOUSAID08],[COMMENT08],[ST_NUM08],[ST_NAME08],[ADDRESS08],[CITY08],[ZIP_COD08],[COMPANY08],[EMP08]
,[SOURCE08],[NAICS08],[NAICS_D08])
SELECT [COUNTY],[OBJECTID08]
,[INFOUSAID08],[COMMENT08],[ST_NUM08],[ST_NAME08],[ADDRESS08],[CITY08],[ZIP_COD08],[COMPANY08],[EMP08]
,[SOURCE08],[NAICS08],[NAICS_D08]
FROM Inventory2008b
--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--to validate the script of this database
--make 2012 records only table
SELECT DISTINCT [OBJECTID12],[INFOUSAID12],[COMMENT12],[ST_NUM12],[ST_NAME12],[ADDRESS12]
,[CITY12],[ZIP_COD12],[COMPANY12],[EMP12],[SOURCE12],[NAICS12],[NAICS_D12],[COUNTY]
INTO Inventory2012only
FROM Inventory2012And2008c
WHERE Note12='2012A' or Note12='2008 and 2012'
--make 2008 records only table
SELECT DISTINCT [OBJECTID08],[INFOUSAID08],[COMMENT08],[ST_NUM08],[ST_NAME08],[ADDRESS08]
,[CITY08],[ZIP_COD08],[COMPANY08],[EMP08],[SOURCE08],[NAICS08],[NAICS_D08],[COUNTY]
INTO Inventory2008only
FROM Inventory2012And2008c
SELECT sum(emp08)
FROM Inventory2008only
SELECT sum(emp08)
FROM Inventory2008
SELECT sum(emp12)
FROM Inventory2012only
SELECT sum(emp12)
FROM Inventory2012
--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
SELECT *
FROM Inventory2012And2008c
--WHERE NOTE12 IS NULL AND ADDRESS08 LIKE '6855 Fair Oaks Blvd%'
WHERE COMPANY08='Software Automation Tech Group' OR COMPANY12='Software Automation Tech Group'
SELECT *
FROM Inventory2012And2008c
WHERE ADDRESS12 LIKE '6855 Fair Oaks Blvd%' --FAIR OAKS BLVD
ORDER BY ST_NUM12
|
-----------------------------------------------------------------------------------------------------------------------
-- 020 - CreateAutoTracker_2_Database.sql
-- Version 1.0.6
-- Look for the most recent version of this script at www.tf3604.com/temporal.
-- MIT License. See the bottom of this file for details.
-----------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
-- Cleanup old database
----------------------------------------------------------------------------------------------------
use master;
go
if exists (select * from sys.databases where name = 'AutoTracker2')
begin
alter database AutoTracker2 set offline with rollback immediate;
alter database AutoTracker2 set online with rollback immediate;
drop database AutoTracker2;
end
go
----------------------------------------------------------------------------------------------------
-- Create database. Adjust paths as needed.
-- Nothing special here. It's just a database, no features need to be enabled.
----------------------------------------------------------------------------------------------------
/*
create database AutoTracker2
on (name = N'AutoTracker2', filename = N'c:\data\sql2016\data\AutoTracker2.mdf' , size = 10240kb , filegrowth = 10240kb )
log on (name = N'AutoTracker2_log', filename = N'c:\data\sql2016\log\AutoTracker2_log.ldf' , size = 10240kb , filegrowth = 10240kb )
go
*/
create database AutoTracker2
on (name = N'AutoTracker2', filename = N'C:\data\Express2016SP1\data\AutoTracker2.mdf' , size = 10240kb , filegrowth = 10240kb )
log on (name = N'AutoTracker2_log', filename = N'C:\data\Express2016SP1\log\AutoTracker2_log.ldf' , size = 10240kb , filegrowth = 10240kb )
go
use AutoTracker2;
go
----------------------------------------------------------------------------------------------------
-- Drop existing tables
----------------------------------------------------------------------------------------------------
if exists
(
select t.name
from sys.tables t
inner join sys.schemas s on s.schema_id = t.schema_id
where s.name = 'dbo'
and t.name = 'Ownership'
and t.temporal_type_desc = 'SYSTEM_VERSIONED_TEMPORAL_TABLE'
)
begin
alter table dbo.Ownership set (system_versioning = off);
end
drop table if exists history.OwnershipHistory;
drop table if exists dbo.Ownership;
go
if exists
(
select t.name
from sys.tables t
inner join sys.schemas s on s.schema_id = t.schema_id
where s.name = 'dbo'
and t.name = 'Dealer'
and t.temporal_type_desc = 'SYSTEM_VERSIONED_TEMPORAL_TABLE'
)
begin
alter table dbo.Dealer set (system_versioning = off);
end
drop table if exists history.DealerHistory;
drop table if exists dbo.Dealer;
go
if exists
(
select t.name
from sys.tables t
inner join sys.schemas s on s.schema_id = t.schema_id
where s.name = 'dbo'
and t.name = 'Customer'
and t.temporal_type_desc = 'SYSTEM_VERSIONED_TEMPORAL_TABLE'
)
begin
alter table dbo.Customer set (system_versioning = off);
end
drop table if exists history.CustomerHistory;
drop table if exists dbo.Customer;
go
if exists
(
select t.name
from sys.tables t
inner join sys.schemas s on s.schema_id = t.schema_id
where s.name = 'dbo'
and t.name = 'Automobile'
and t.temporal_type_desc = 'SYSTEM_VERSIONED_TEMPORAL_TABLE'
)
begin
alter table dbo.Automobile set (system_versioning = off);
end
drop table if exists history.AutomobileHistory;
drop table if exists dbo.Automobile;
go
if exists
(
select t.name
from sys.tables t
inner join sys.schemas s on s.schema_id = t.schema_id
where s.name = 'dbo'
and t.name = 'AutoModel'
and t.temporal_type_desc = 'SYSTEM_VERSIONED_TEMPORAL_TABLE'
)
begin
alter table dbo.AutoModel set (system_versioning = off);
end
drop table if exists history.AutoModelHistory;
drop table if exists dbo.AutoModel;
go
declare @dropSql nvarchar(max);
select @dropSql = 'alter table ' + quotename(s.name) + '.' + quotename(t.name) + ' set (system_versioning = off); ' + 'drop table ' + quotename(hs.name) + '.' + quotename(ht.name)
from sys.tables t
inner join sys.schemas s on t.schema_id = s.schema_id
inner join sys.tables ht on t.history_table_id = ht.object_id
inner join sys.schemas hs on ht.schema_id = hs.schema_id
where t.name = 'Manufacturer'
and s.name = 'dbo';
exec(@dropSql);
drop table if exists dbo.Manufacturer;
drop table if exists history.CustomerArchive;
drop table if exists history.OwnershipArchive;
----------------------------------------------------------------------------------------------------
-- Create history schema
----------------------------------------------------------------------------------------------------
drop schema if exists history;
go
create schema history authorization dbo;
go
----------------------------------------------------------------------------------------------------
-- Create tables.
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
-- TABLE: Manufacturer (let SQL create & name the history table)
----------------------------------------------------------------------------------------------------
-- Create table without specifying the history table name.
-- SQL Server will create a history table with system-generated
-- name with the same schema as the base table.
create table dbo.Manufacturer
(
ManufacturerId int not null identity(1,1),
ManufacturerName nvarchar(50) not null,
ValidFrom datetime2 generated always as row start not null,
ValidTo datetime2 generated always as row end not null,
period for system_time (ValidFrom, ValidTo),
constraint pk_Manufacturer primary key clustered (ManufacturerId)
)
with (system_versioning = on);
-- The table appears in Management Studio.
-- Note the new temporal icon for the table.
-- Note that the history table is a subnode under the base table.
-- Query to find the name of the history table
select t.object_id,
s.name source_table_schema,
t.name source_table_name,
t.temporal_type_desc,
hs.name history_table_schema,
ht.name history_table_name
from sys.tables t
inner join sys.schemas s on t.schema_id = s.schema_id
inner join sys.tables ht on t.history_table_id = ht.object_id
inner join sys.schemas hs on ht.schema_id = hs.schema_id
where t.name = 'Manufacturer'
and s.name = 'dbo';
set identity_insert dbo.Manufacturer on;
insert dbo.Manufacturer (ManufacturerId, ManufacturerName)
values (1, 'FordoyotaBenz');
set identity_insert dbo.Manufacturer off;
go
----------------------------------------------------------------------------------------------------
-- TABLE: AutoModel (let SQL create the history table with a name we supply)
----------------------------------------------------------------------------------------------------
-- Create table and specify the name of the history table.
-- The history table will automatically be created with the same schema.
-- Note the "hidden" keyword on the datetime2 columns.
-- Note that we MUST specifiy the schema name of the history table (even if it is "dbo")
create table dbo.AutoModel
(
ModelId int not null identity(1,1),
ManufacturerId int not null,
ModelName nvarchar(50) not null,
Description nvarchar(100) null,
ValidFrom datetime2 generated always as row start hidden not null,
ValidTo datetime2 generated always as row end hidden not null,
period for system_time (ValidFrom, ValidTo),
constraint pk_Model primary key clustered (ModelId),
constraint fk_Model__ManufacturerId foreign key (ManufacturerId) references Manufacturer (ManufacturerId)
)
with (system_versioning = on (history_table = history.AutoModelHistory));
go
-- Same query to find the name of the history table (should match create statement)
select t.object_id,
s.name source_table_schema,
t.name source_table_name,
t.temporal_type_desc,
hs.name history_table_schema,
ht.name history_table_name
from sys.tables t
inner join sys.schemas s on t.schema_id = s.schema_id
inner join sys.tables ht on t.history_table_id = ht.object_id
inner join sys.schemas hs on ht.schema_id = hs.schema_id
where t.name = 'AutoModel'
and s.name = 'dbo';
go
-- Load some data into dbo.AutoModel
insert dbo.AutoModel (ManufacturerId, ModelName, Description)
values (1, 'Squeeze', 'Mini'),
(1, 'Sipper', 'Compact'),
(1, 'Treaty', 'MidSize'),
(1, 'Pretention', 'FullSize'),
(1, 'Beast', 'Pickup'),
(1, 'KidTaxi', 'Small SUV'),
(1, 'Guzzler', 'Large SUV');
go
----------------------------------------------------------------------------------------------------
-- TABLE: Automobile (we'll create the history table ourself)
----------------------------------------------------------------------------------------------------
-- This time we'll create the history table manually.
-- Note that we are using page compression (this is automatic when SQL creates the table)
-- Why would we manually create it?
create table history.AutomobileHistory
(
AutomobileId int not null,
ModelId int not null,
VIN nvarchar(50) not null,
Color nvarchar(20) null,
ValidFrom datetime2 not null,
ValidTo datetime2 not null
) with (data_compression = page);
go
-- This is the same index that SQL would put on the table if it created the history table.
create clustered index idx1_AutomobileHistory on history.AutomobileHistory (ValidTo, ValidFrom);
go
create table dbo.Automobile
(
AutomobileId int not null identity(1,1),
ModelId int not null,
VIN nvarchar(50) not null,
Color nvarchar(20) null,
ValidFrom datetime2 generated always as row start not null,
ValidTo datetime2 generated always as row end not null,
period for system_time (ValidFrom, ValidTo),
constraint pk_Automobile primary key clustered (AutomobileId),
constraint fk_Automobile__ModelId foreign key (ModelId) references AutoModel (ModelId)
)
with (system_versioning = on (history_table = history.AutomobileHistory));
go
----------------------------------------------------------------------------------------------------
-- TABLE: Customer (plus a archive table)
----------------------------------------------------------------------------------------------------
drop table if exists history.CustomerHistory;
go
-- Once again create the history table manually.
-- Let's outsmart SQL and add a column to capture the name of
-- the user who caused the history record to be added.
create table history.CustomerHistory
(
CustomerId int not null,
FirstName varchar(20) not null,
LastName varchar(20) not null,
Address varchar(80) not null,
City varchar(50) not null,
State char(2) not null,
ValidFrom datetime2 not null,
ValidTo datetime2 not null,
WhoChanged sysname not null default (suser_sname())
) with (data_compression = page);
go
create clustered index ix1_CustomerHistory on history.CustomerHistory (ValidTo, ValidFrom);
go
create table dbo.Customer
(
CustomerId int not null identity(1,1),
FirstName varchar(20) not null,
LastName varchar(20) not null,
Address varchar(80) not null,
City varchar(50) not null,
State char(2) not null,
ValidFrom datetime2 generated always as row start not null,
ValidTo datetime2 generated always as row end not null,
period for system_time (ValidFrom, ValidTo),
constraint pk_CustomerId primary key clustered (CustomerId)
)
with (system_versioning = on (history_table = history.CustomerHistory));
go
-- Create an archive table. We'll return to this later.
create table history.CustomerArchive
(
CustomerId int not null,
FirstName varchar(20) not null,
LastName varchar(20) not null,
Address varchar(80) not null,
City varchar(50) not null,
State char(2) not null,
ValidFrom datetime2 not null,
ValidTo datetime2 not null,
);
go
create clustered index ix1_CustomerArchive on history.CustomerArchive (ValidTo, ValidFrom);
go
----------------------------------------------------------------------------------------------------
-- TABLE: Dealer
----------------------------------------------------------------------------------------------------
-- Nothing special here.
create table dbo.Dealer
(
DealerId int not null identity(1,1),
Name nvarchar(50) not null,
Address varchar(80) not null,
City varchar(50) not null,
State char(2) not null,
ValidFrom datetime2 generated always as row start not null,
ValidTo datetime2 generated always as row end not null,
period for system_time (ValidFrom, ValidTo),
constraint pk_DealerId primary key clustered (DealerId)
)
with (system_versioning = on (history_table = history.DealerHistory));
go
----------------------------------------------------------------------------------------------------
-- TABLE: Ownership (with an archive table, and with partitioning on history and archive)
----------------------------------------------------------------------------------------------------
-- Create a history table and an archive table with partitioning.
-- We'll come back to this.
if exists (select * from sys.partition_schemes ps where ps.name = 'schemeOwnershipHistoryByEndTime')
drop partition scheme schemeOwnershipHistoryByEndTime;
go
if exists (select * from sys.partition_schemes ps where ps.name = 'schemeOwnershipArchiveByEndTime')
drop partition scheme schemeOwnershipArchiveByEndTime;
go
if exists (select * from sys.partition_functions pf where pf.name = 'fnOwnershipHistoryPartitionByEndTime')
drop partition function fnOwnershipHistoryPartitionByEndTime;
go
if exists (select * from sys.partition_functions pf where pf.name = 'fnOwnershipArchivePartitionByEndTime')
drop partition function fnOwnershipArchivePartitionByEndTime;
go
declare @now datetime2 = sysutcdatetime();
declare @nowPlus5 datetime2 = dateadd(minute, 5, @now);
declare @nowPlus10 datetime2 = dateadd(minute, 10, @now);
declare @nowPlus15 datetime2 = dateadd(minute, 15, @now);
declare @nowPlus20 datetime2 = dateadd(minute, 20, @now);
declare @nowPlus25 datetime2 = dateadd(minute, 25, @now);
declare @nowPlus30 datetime2 = dateadd(minute, 30, @now);
declare @nowPlus35 datetime2 = dateadd(minute, 35, @now);
declare @nowPlus40 datetime2 = dateadd(minute, 40, @now);
declare @nowPlus45 datetime2 = dateadd(minute, 45, @now);
declare @nowPlus50 datetime2 = dateadd(minute, 50, @now);
declare @nowPlus55 datetime2 = dateadd(minute, 55, @now);
declare @nowPlus60 datetime2 = dateadd(minute, 60, @now);
declare @nowPlus65 datetime2 = dateadd(minute, 65, @now);
declare @nowPlus70 datetime2 = dateadd(minute, 70, @now);
declare @nowPlus75 datetime2 = dateadd(minute, 75, @now);
create partition function fnOwnershipHistoryPartitionByEndTime (datetime2)
as range left for values (@now, @nowPlus5, @nowPlus10, @nowPlus15, @nowPlus20, @nowPlus25, @nowPlus30, @nowPlus35, @nowPlus40, @nowPlus45, @nowPlus50, @nowPlus55, @nowPlus60, @nowPlus65, @nowPlus70, @nowPlus75);
create partition function fnOwnershipArchivePartitionByEndTime (datetime2)
as range left for values (@now, @nowPlus5, @nowPlus10, @nowPlus15, @nowPlus20, @nowPlus25, @nowPlus30, @nowPlus35, @nowPlus40, @nowPlus45, @nowPlus50, @nowPlus55, @nowPlus60, @nowPlus65, @nowPlus70, @nowPlus75);
go
create partition scheme schemeOwnershipHistoryByEndTime
as partition fnOwnershipHistoryPartitionByEndTime
to ([primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary]);
go
create partition scheme schemeOwnershipArchiveByEndTime
as partition fnOwnershipArchivePartitionByEndTime
to ([primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary], [primary]);
go
create table history.OwnershipHistory
(
OwnershipId int not null,
AutomobileId int not null,
DealerId int null,
CustomerId int null,
EffectiveDate date not null,
ValidFrom datetime2 not null,
ValidTo datetime2 not null
) with (data_compression = page);
go
create clustered index idx_OwnershipHistory on history.OwnershipHistory (ValidTo, ValidFrom)
on schemeOwnershipHistoryByEndTime (ValidTo);
go
create table history.OwnershipArchive
(
OwnershipId int not null,
AutomobileId int not null,
DealerId int null,
CustomerId int null,
EffectiveDate date not null,
ValidFrom datetime2 not null,
ValidTo datetime2 not null
);
go
create clustered index idx_OwnershipArchive on history.OwnershipArchive (ValidTo, ValidFrom)
on schemeOwnershipArchiveByEndTime (ValidTo);
go
create table dbo.Ownership
(
OwnershipId int not null identity(1,1),
AutomobileId int not null,
DealerId int null,
CustomerId int null,
EffectiveDate date not null,
ValidFrom datetime2 generated always as row start not null,
ValidTo datetime2 generated always as row end not null,
period for system_time (ValidFrom, ValidTo),
constraint pk_Ownership primary key clustered (OwnershipId),
constraint fk_Ownership__AutomobileId foreign key (AutomobileId) references Automobile (AutomobileId),
constraint fk_Ownership__DealerId foreign key (DealerId) references Dealer (DealerId),
constraint fk_Ownership__CustomerId foreign key (CustomerId) references Customer (CustomerId),
constraint ck_Ownership__Target check
((DealerId is null and CustomerId is not null) or
(DealerId is not null and CustomerId is null))
)
with (system_versioning = on (history_table = history.OwnershipHistory));
create unique nonclustered index ix1_Ownership__AutomobileId on dbo.Ownership (AutomobileId);
-----------------------------------------------------------------------------------------------------------------------
-- Copyright 2017-2019, <NAME> (brian at tf3604.com).
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in all
-- copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-- SOFTWARE.
-----------------------------------------------------------------------------------------------------------------------
|
select id, concat(repeat ('-', (select count(parent.id)-1 from chapter_73 as parent where node.lft between parent.lft and parent.rght)), node.hts_code) as hts_code, title, lft, rght, depth from chapter_73 as node order by node.lft;
|
<gh_stars>0
DELIMITER ENDROUTINE
CREATE PROCEDURE party_create_database_user
(
IN arg_party_name $PARTY_NAME_TYPE
, IN arg_party_password_hash $PARTY_PASSWORD_HASH_TYPE
)
LANGUAGE SQL
NOT DETERMINISTIC
MODIFIES SQL DATA
SQL SECURITY DEFINER
BEGIN
START TRANSACTION
;
SET @var_username = get_name_of_database_user(arg_party_name)
;
SET @var_party_password_hash = arg_party_password_hash
;
/*SELECT variable_value INTO @var_local_hostname
FROM information_schema.global_variables
WHERE variable_name = 'hostname'
;*/
SET @create_user_dynamically_sql = CONCAT('CREATE USER ', '\'', @var_username, '\'@\'', '$HOST', '\'', ' IDENTIFIED BY PASSWORD ', '\'', @var_party_password_hash, '\'')
;
PREPARE create_user_dynamically
FROM @create_user_dynamically_sql
;
EXECUTE create_user_dynamically
;
DEALLOCATE PREPARE create_user_dynamically
;
SET @grant_privilege_on_executing_procedures_dynamically_sql = CONCAT('GRANT SELECT ON mysql.proc TO ', '\'', @var_username, '\'@\'', '$HOST', '\'')
;
PREPARE grant_privilege_on_executing_procedures_dynamically
FROM @grant_privilege_on_executing_procedures_dynamically_sql
;
EXECUTE grant_privilege_on_executing_procedures_dynamically
;
DEALLOCATE PREPARE grant_privilege_on_executing_procedures_dynamically
;
FLUSH PRIVILEGES
;
COMMIT
;
END
ENDROUTINE
DELIMITER ;
|
<filename>about/WorldName.sql
/*!40101 SET NAMES utf8mb4 */;
INSERT INTO `df_worldname` (`enname`, `krname`, `cnname`) VALUES
('USA', '미국', '美国'),
('Brazil', '브라질', '巴西'),
('India', '인도', '印度'),
('Russia', '러시아', '俄罗斯'),
('Peru', '페루', '秘鲁'),
('Chile', '칠레', '智利'),
('Mexico', '멕시코', '墨西哥'),
('South Africa', '남아프리카공화국', '南非'),
('Spain', '스페인', '西班牙'),
('UK', '영국', '英国'),
('Iran', '이란', '伊朗'),
('Pakistan', '파키스탄', '巴基斯坦'),
('Italy', '이탈리아', '意大利'),
('Saudi Arabia', '사우디아라비아', '沙特阿拉伯'),
('Turkey', '터키', '土耳其'),
('Germany', '독일', '德国'),
('Bangladesh', '방글라데시', '孟加拉国'),
('France', '프랑스', '法国'),
('Colombia', '콜롬비아', '哥伦比亚'),
('Argentina', '아르헨티나', '阿根廷'),
('Canada', '캐나다', '加拿大'),
('Qatar', '카타르', '卡塔尔'),
('Egypt', '이집트', '埃及'),
('Iraq', '이라크', '伊拉克'),
('China', '중국', '中国'),
('Indonesia', '인도네시아', '印度尼西亚'),
('Sweden', '스웨덴', '瑞典'),
('Ecuador', '에콰도르', '厄瓜多尔'),
('Belarus', '벨라루스', '白俄罗斯'),
('Kazakhstan', '카자흐스탄', '哈萨克斯坦'),
('Belgium', '벨기에', '比利时'),
('Oman', '오만', '阿曼'),
('Philippines', '필리핀', '菲律宾'),
('Kuwait', '쿠웨이트', '科威特'),
('Ukraine', '우크라이나', '乌克兰'),
('UAE', '아랍에미리트', '阿拉伯联合酋长国'),
('Bolivia', '볼리비아', '玻利维亚'),
('Netherlands', '네덜란드', '荷兰'),
('Panama', '파나마', '巴拿马'),
('Dominican Republic', '도미니카공화국', '多米尼加共和国'),
('Portugal', '포르투갈', '葡萄牙'),
('Singapore', '싱가포르', '新加坡'),
('Israel', '이스라엘', '以色列'),
('Poland', '폴란드', '波兰'),
('Afghanistan', '아프가니스탄', '阿富汗'),
('Bahrain', '바레인', '巴林'),
('Nigeria', '나이지리아', '尼日利亚'),
('Romania', '루마니아', '罗马尼亚'),
('Armenia', '아르메니아', '亚美尼亚'),
('Switzerland', '스위스', '瑞士'),
('Guatemala', '과테말라', '危地马拉'),
('Honduras', '온두라스', '洪都拉斯'),
('Ireland', '아일랜드', '爱尔兰'),
('Azerbaijan', '아제르바이잔', '阿塞拜疆'),
('Ghana', '가나', '加纳'),
('Japan', '일본.', '日本'),
('Algeria', '알제리', '阿尔及利亚'),
('Moldova', '몰도바', '摩尔多瓦'),
('Serbia', '세르비아', '塞尔维亚'),
('Austria', '오스트리아', '奥地利'),
('Nepal', '네팔', '尼泊尔'),
('Morocco', '모로코', '摩洛哥'),
('Cameroon', '카메룬', '喀麦隆'),
('Uzbekistan', '우즈베키스탄', '乌兹别克斯坦'),
('S. Korea', '한국', '韩国'),
('Czechia', '체코', '捷克'),
('Ivory Coast', '코트디부아르', '科特迪瓦'),
('Denmark', '덴마크', '丹麦'),
('Kyrgyzstan', '키르기스스탄', '吉尔吉斯斯坦'),
('Kenya', '케냐', '肯尼亚'),
('El Salvador', '엘살바도르', '萨尔瓦多'),
('Australia', '호주', '澳大利亚'),
('Sudan', '수단', '苏丹'),
('Venezuela', '베네수엘라', '委内瑞拉'),
('Norway', '노르웨이', '挪威'),
('Costa Rica', '코스타리카', '哥斯达黎加'),
('Malaysia', '말레이시아', '马来西亚'),
('North Macedonia', '북마케도니아', '北马其顿'),
('Senegal', '세네갈', '塞内加尔'),
('Ethiopia', '에티오피아', '埃塞俄比亚'),
('DRC', '콩고민주공화국', '刚果金'),
('Bulgaria', '불가리아', '保加利亚'),
('Bosnia and Herzegovina', '보스니아 헤르체고비나', '波黑'),
('Finland', '핀란드', '芬兰'),
('Palestine', '팔레스타인', '巴勒斯坦'),
('Haiti', '아이티', '海地'),
('Tajikistan', '타지키스탄', '塔吉克斯坦'),
('French Guiana', '프랑스령 기아나', '法属圭亚那'),
('Guinea', '기니', '几内亚'),
('Gabon', '가봉', '加蓬'),
('Madagascar', '마다가스카르', '马达加斯加'),
('Mauritania', '모리타니', '毛里塔尼亚'),
('Luxembourg', '룩셈부르크', '卢森堡'),
('Djibouti', '지부티', '吉布提'),
('CAR', '중앙아프리카공화국', '中非'),
('Hungary', '헝가리', '匈牙利'),
('Croatia', '크로아티아', '克罗地亚'),
('Greece', '그리스', '希腊'),
('Albania', '알바니아', '阿尔巴尼亚'),
('Thailand', '타이', '泰国'),
('Paraguay', '파라과이', '巴拉圭'),
('Nicaragua', '니카라과', '尼加拉瓜'),
('Somalia', '소말리아', '索马里'),
('Equatorial Guinea', '적도기니', '赤道几内亚'),
('Maldives', '몰디브', '马尔代夫'),
('Mayotte', '마요트섬', '马约特'),
('Sri Lanka', '스리랑카', '斯里兰卡'),
('Malawi', '말라위', '马拉维'),
('Lebanon', '레바논', '黎巴嫩'),
('Cuba', '쿠바', '古巴'),
('Mali', '말리', '马里'),
('Congo', '콩고', '刚果布'),
('South Sudan', '남수단', '南苏丹'),
('Estonia', '에스토니아', '爱沙尼亚'),
('Slovakia', '슬로바키아', '斯洛伐克'),
('Iceland', '아이슬란드', '冰岛'),
('Zambia', '잠비아', '赞比亚'),
('Lithuania', '리투아니아', '立陶宛'),
('Slovenia', '슬로베니아', '斯洛文尼亚'),
('Guinea-Bissau', '기니비사우', '几内亚比绍'),
('Cabo Verde', '카보베르데', '佛得角'),
('Sierra Leone', '시에라리온', '塞拉利昂'),
('Libya', '리비아', '利比亚'),
('Hong Kong', '홍콩', '香港'),
('New Zealand', '뉴질랜드', '新西兰'),
('Yemen', '예멘', '也门'),
('Eswatini', '에스와티니', '埃斯瓦蒂尼'),
('Rwanda', '르완다', '卢旺达'),
('Benin', '베냉', '贝宁'),
('Mozambique', '모잠비크', '莫桑比克'),
('Tunisia', '튀니지', '突尼斯'),
('Montenegro', '몬테네그로', '黑山'),
('Jordan', '요르단', '约旦'),
('Latvia', '라트비아', '拉脱维亚'),
('Niger', '니제르', '尼日尔'),
('Zimbabwe', '짐바브웨', '津巴布韦'),
('Liberia', '라이베리아', '利比里亚'),
('Uganda', '우간다', '乌干达'),
('Burkina Faso', '부르키나파소', '布基纳法索'),
('Cyprus', '키프로스', '塞浦路斯'),
('Uruguay', '우루과이', '乌拉圭'),
('Georgia', '조지아', '佐治亚州'),
('Namibia', '나미비아', '纳米比亚'),
('Chad', '차드', '乍得'),
('Andorra', '안도라', '安道尔'),
('Suriname', '수리남', '苏里南'),
('Jamaica', '자메이카', '牙买加'),
('Togo', '토고', '多哥'),
('Sao Tome and Principe', '상투메프린시페', '圣多美和普林西比'),
('San Marino', '산마리노', '圣马力诺'),
('Malta', '몰타', '马耳他'),
('Réunion', '레위니옹', '留尼汪'),
('Channel Islands', '채널제도', '海峡群岛'),
('Angola', '앙골라', '安哥拉'),
('Tanzania', '탄자니아', '坦桑尼亚'),
('Syria', '시리아', '叙利亚'),
('Taiwan', '대만', '台湾'),
('Botswana', '보츠와나', '博茨瓦纳'),
('Vietnam', '베트남', '越南'),
('Mauritius', '모리셔스', '毛里求斯'),
('Myanmar', '미얀마', '乌兰巴托'),
('Isle of Man', '맨섬', '马恩岛'),
('Comoros', '코모로', '科摩罗'),
('Guyana', '가이아나', '圭亚那'),
('Burundi', '부룬디', '布隆迪'),
('Mongolia', '몽골', '蒙古'),
('Lesotho', '레소토', '莱索托'),
('Martinique', '마르티니크섬', '马提尼克'),
('Eritrea', '에리트레아', '厄立特里亚'),
('Cayman Islands', '케이맨제도', '开曼群岛'),
('Guadeloupe', '과들루프섬', '瓜德罗普岛'),
('Faeroe Islands', '페로스제도', '法罗群岛'),
('Gibraltar', '지브롤터', '直布罗陀'),
('Cambodia', '캄보디아', '柬埔寨'),
('Bermuda', '버뮤다제도', '百慕大群岛'),
('Brunei ', '브루나이', '文莱'),
('Trinidad and Tobago', '트리니다드토바고', '特立尼达和多巴哥'),
('Bahamas', '바하마', '巴哈马'),
('Monaco', '모나코', '摩纳哥'),
('Aruba', '아루바', '阿鲁巴'),
('Barbados', '바베이도스', '巴巴多斯'),
('Seychelles', '세이셸', '塞舌尔'),
('Liechtenstein', '리히텐슈타인', '列支敦士登'),
('Bhutan', '부탄', '不丹'),
('Sint Maarten', '신트마르턴', '荷属圣马丁'),
('Antigua and Barbuda', '앤티가바부다', '安提瓜和巴布达'),
('Turks and Caicos', '터크스케이커스 제도', '特克斯和凯科斯群岛'),
('Gambia', '감비아', '冈比亚'),
('French Polynesia', '프랑스령폴리네시아', '法属波利尼西亚'),
('Macao', '마카오', '澳门'),
('Saint Martin', '세인트마틴섬', '圣马丁岛'),
('Belize', '벨리즈', '伯利兹'),
('St. V<NAME>', '세인트빈센트그레나딘', '圣文森特和格林纳丁斯'),
('Curaçao', '퀴라소', '库拉索岛'),
('Fiji', '피지', '斐济'),
('Timor-Leste', '동티모르', '东帝汶'),
('Grenada', '그레나다', '格林纳达'),
('New Caledonia', '누벨칼레도니섬', '新喀里多尼亚'),
('Saint Lucia', '세인트루시아', '圣卢西亚'),
('Laos', '라오스', '老挝'),
('Dominica', '도미니카', '多米尼加'),
('Saint Kitts and Nevis', '세인트키츠네비스', '圣基茨和尼维斯'),
('Falkland Islands', '포클랜드제도', '福克兰群岛'),
('Greenland', '그린란드', '格陵兰岛'),
('Montserrat', '몬트세랫', '蒙特塞拉特'),
('Vatican City', '바티칸', '梵蒂冈城'),
('Papua New Guinea', '파푸아뉴기니', '巴布亚新几内亚'),
('Western Sahara', '서사하라', '西撒哈拉'),
('Caribbean Netherlands', '카리브 네덜란드', '荷兰加勒比区'),
('British Virgin Islands', '영국령 버진아일랜드', '英属维尔京群岛'),
('St. Barth', '생바르텔레미', '圣巴特'),
('Anguilla', '앵귈라', '安圭拉'),
('Saint Pierre Miquelon', '생피에르미클롱', '圣皮埃尔密克隆')
|
<reponame>ynothan/code_test
DROP DATABASE IF EXISTS `code_test`;
-- on supprime, si refresh, dans la table user de la base mysql l'utilisateur créé
DELETE FROM mysql.user WHERE user='admin' and host='admin';
CREATE DATABASE `code_test`
DEFAULT CHARACTER SET utf8
COLLATE utf8_unicode_ci;
-- création d'un utilisateur spécifique qui n'aura que des droits sur une base de données déterminée
GRANT ALL PRIVILEGES ON `code_test`.* to 'admin'@'localhost' IDENTIFIED BY 'admin' WITH GRANT OPTION;
|
<gh_stars>0
CREATE DATABASE IF NOT EXISTS `cl_judge` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `cl_judge`;
-- MySQL dump 10.13 Distrib 8.0.22, for Linux (x86_64)
--
-- Host: localhost Database: cl_judge
-- ------------------------------------------------------
-- Server version 8.0.22
/*!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 */;
/*!50503 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 `contests`
--
DROP TABLE IF EXISTS `contests`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `contests` (
`id` int NOT NULL AUTO_INCREMENT,
`show_leaderboard` tinyint NOT NULL DEFAULT '0',
`public` tinyint NOT NULL DEFAULT '1',
`creator` varchar(45) NOT NULL,
`name` text NOT NULL,
`start_time` timestamp NOT NULL,
`end_time` timestamp NOT NULL,
`about` text,
`rules` text,
`prizes` text,
`confidential_questions` tinyint NOT NULL DEFAULT '0',
`participants_count` int DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`),
KEY `fk_contests_users_idx` (`creator`),
CONSTRAINT `fk_contests_users` FOREIGN KEY (`creator`) REFERENCES `users` (`username`) ON DELETE RESTRICT ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `contests_groups`
--
DROP TABLE IF EXISTS `contests_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `contests_groups` (
`id` int NOT NULL AUTO_INCREMENT,
`contest_id` int NOT NULL,
`group_id` int NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_contests_groups` (`contest_id`,`group_id`),
KEY `fk_contests_groups1_idx` (`contest_id`),
KEY `fk_contests_groups_2_idx` (`group_id`),
CONSTRAINT `fk_contests_groups_1` FOREIGN KEY (`contest_id`) REFERENCES `contests` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_contests_groups_2` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `contests_moderators`
--
DROP TABLE IF EXISTS `contests_moderators`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `contests_moderators` (
`id` int NOT NULL AUTO_INCREMENT,
`contest_id` int NOT NULL,
`moderator` varchar(45) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_contests_moderators` (`contest_id`,`moderator`),
KEY `fk_contests_moderators_1_idx` (`contest_id`),
KEY `fk_contests_moderators_2_idx` (`moderator`),
CONSTRAINT `fk_contests_moderators_1` FOREIGN KEY (`contest_id`) REFERENCES `contests` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_contests_moderators_2` FOREIGN KEY (`moderator`) REFERENCES `users` (`username`) ON DELETE RESTRICT ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `contests_participants`
--
DROP TABLE IF EXISTS `contests_participants`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `contests_participants` (
`id` int NOT NULL AUTO_INCREMENT,
`contest_id` int NOT NULL,
`participant` varchar(45) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_contests_participants` (`contest_id`,`participant`),
KEY `fk_contests_participants_1_idx` (`contest_id`),
KEY `fk_contests_participants_2_idx` (`participant`),
CONSTRAINT `fk_contests_participants_1` FOREIGN KEY (`contest_id`) REFERENCES `contests` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_contests_participants_2` FOREIGN KEY (`participant`) REFERENCES `users` (`username`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `contests_questions`
--
DROP TABLE IF EXISTS `contests_questions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `contests_questions` (
`id` int NOT NULL AUTO_INCREMENT,
`question_id` int NOT NULL,
`contest_id` int NOT NULL,
`max_score` int NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_contests_questions` (`contest_id`,`question_id`),
KEY `fk_contests_questions_1_idx` (`contest_id`),
KEY `fk_contests_questions_2_idx` (`question_id`),
CONSTRAINT `fk_contests_questions_1` FOREIGN KEY (`contest_id`) REFERENCES `contests` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_contests_questions_2` FOREIGN KEY (`question_id`) REFERENCES `questions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `groups`
--
DROP TABLE IF EXISTS `groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `groups` (
`id` int NOT NULL AUTO_INCREMENT,
`group_name` varchar(45) NOT NULL,
`confidential` tinyint NOT NULL,
`creator` varchar(45) NOT NULL,
`member_count` int NOT NULL,
PRIMARY KEY (`id`),
KEY `groups_fk_creator` (`creator`),
CONSTRAINT `groups_fk_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`username`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `leaderboard`
--
DROP TABLE IF EXISTS `leaderboard`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `leaderboard` (
`id` int NOT NULL AUTO_INCREMENT,
`username` varchar(45) NOT NULL,
`contest_id` int NOT NULL,
`total_score` int NOT NULL,
`total_time` time NOT NULL,
`attempted_count` int NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_contests_users` (`username`,`contest_id`),
KEY `fk_leaderboard_users_idx` (`username`),
KEY `fk_leaderboard_contests_idx` (`contest_id`),
CONSTRAINT `fk_leaderboard_contests` FOREIGN KEY (`contest_id`) REFERENCES `contests` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_leaderboard_users` FOREIGN KEY (`username`) REFERENCES `users` (`username`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `notifications`
--
DROP TABLE IF EXISTS `notifications`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `notifications` (
`id` int NOT NULL AUTO_INCREMENT,
`heading` varchar(110) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`created_at` datetime DEFAULT CURRENT_TIMESTAMP,
`creator` varchar(45) NOT NULL,
PRIMARY KEY (`id`),
KEY `notifications_fk_creator` (`creator`),
CONSTRAINT `notifications_fk_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`username`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `questions`
--
DROP TABLE IF EXISTS `questions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `questions` (
`id` int NOT NULL AUTO_INCREMENT,
`creator` varchar(45) NOT NULL,
`type` enum('mcq','subjective') DEFAULT NULL,
`name` varchar(100) NOT NULL,
`problem_statement` text NOT NULL,
`input_format` text,
`output_format` text,
`constraints` text,
`options` text,
`correct` int DEFAULT NULL,
`difficulty` enum('easy','medium','hard') DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`),
KEY `fk_questions_creator_idx` (`creator`),
CONSTRAINT `fk_questions_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`username`) ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `questions_editors`
--
DROP TABLE IF EXISTS `questions_editors`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `questions_editors` (
`id` int NOT NULL AUTO_INCREMENT,
`question_id` int NOT NULL,
`editor` varchar(45) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_questions_editors` (`question_id`,`editor`),
KEY `fk_questions_editors_1_idx` (`question_id`),
KEY `fk_questions_editors_2_idx` (`editor`),
CONSTRAINT `fk_questions_editors_1` FOREIGN KEY (`question_id`) REFERENCES `questions` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `fk_questions_editors_2` FOREIGN KEY (`editor`) REFERENCES `users` (`username`) ON DELETE RESTRICT ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `questions_tags`
--
DROP TABLE IF EXISTS `questions_tags`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `questions_tags` (
`id` int NOT NULL AUTO_INCREMENT,
`question_id` int NOT NULL,
`tag_id` int NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_questions_tags` (`question_id`,`tag_id`),
KEY `fk_questions_tags_1_idx` (`question_id`),
KEY `fk_questions_tags_2_idx` (`tag_id`),
CONSTRAINT `fk_questions_tags_1` FOREIGN KEY (`question_id`) REFERENCES `questions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_questions_tags_2` FOREIGN KEY (`tag_id`) REFERENCES `tags` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table 'mcq_submissions'
--
DROP TABLE IF EXISTS `mcq_submissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `mcq_submissions` (
`id` int NOT NULL AUTO_INCREMENT,
`question_id` int NOT NULL,
`contest_id` int NOT NULL,
`username` varchar(45) NOT NULL,
`response` int NOT NULL,
`submission_time` timestamp NOT NULL,
`score` int DEFAULT '0',
`judged` tinyint DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`),
UNIQUE KEY `unique_user_mcq_submission` (`username`,`contest_id`,`question_id`),
KEY `fk_mcq_submissions_questions_idx` (`question_id`),
KEY `fk_mcq_submissions_contests_idx` (`contest_id`),
KEY `fk_mcq_submissions_users_idx` (`username`),
CONSTRAINT `fk_mcq_submissions_contests` FOREIGN KEY (`contest_id`) REFERENCES `contests` (`id`) ON UPDATE CASCADE,
CONSTRAINT `fk_mcq_submissions_questions` FOREIGN KEY (`question_id`) REFERENCES `questions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_mcq_submissions_users` FOREIGN KEY (`username`) REFERENCES `users` (`username`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table 'subjective_submissions'
--
DROP TABLE IF EXISTS `subjective_submissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `subjective_submissions` (
`id` int NOT NULL AUTO_INCREMENT,
`question_id` int NOT NULL,
`contest_id` int NOT NULL,
`username` varchar(45) NOT NULL,
`response` text NOT NULL,
`submission_time` timestamp NOT NULL,
`score` int DEFAULT '0',
`judged` tinyint DEFAULT '0',
`feedback` varchar(110) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`),
UNIQUE KEY `unique_user_subjective_submission` (`username`,`contest_id`,`question_id`),
KEY `fk_subjective_submissions_questions_idx` (`question_id`),
KEY `fk_subjective_submissions_contests_idx` (`contest_id`),
KEY `fk_subjective_submissions_users_idx` (`username`),
CONSTRAINT `fk_subjective_submissions_contests` FOREIGN KEY (`contest_id`) REFERENCES `contests` (`id`) ON UPDATE CASCADE,
CONSTRAINT `fk_subjective_submissions_questions` FOREIGN KEY (`question_id`) REFERENCES `questions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_subjective_submissions_users` FOREIGN KEY (`username`) REFERENCES `users` (`username`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `tags`
--
DROP TABLE IF EXISTS `tags`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tags` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(45) NOT NULL,
`description` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`),
UNIQUE KEY `name_UNIQUE` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `user_groups`
--
DROP TABLE IF EXISTS `user_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_groups` (
`id` int NOT NULL AUTO_INCREMENT,
`username` varchar(45) NOT NULL,
`group_id` int NOT NULL,
`is_group_moderator` tinyint NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_member` (`username`,`group_id`),
KEY `user_groups_fk_username_idx` (`username`),
KEY `user_groups_fk_group_id_idx` (`group_id`),
CONSTRAINT `user_groups_fk_group_id` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `user_groups_fk_username` FOREIGN KEY (`username`) REFERENCES `users` (`username`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `user_notifications`
--
DROP TABLE IF EXISTS `user_notifications`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_notifications` (
`id` int NOT NULL AUTO_INCREMENT,
`username` varchar(45) NOT NULL,
`notification_id` int NOT NULL,
`read` tinyint DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `unique_notification_map` (`username`,`notification_id`),
KEY `user_notifications_fk_username_idx` (`username`),
KEY `user_notifications_fk_notification_id_idx` (`notification_id`),
CONSTRAINT `user_notifications_fk_notification_id` FOREIGN KEY (`notification_id`) REFERENCES `notifications` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `user_notifications_fk_username` FOREIGN KEY (`username`) REFERENCES `users` (`username`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `users` (
`username` varchar(45) NOT NULL,
`secret` longtext NOT NULL,
`full_name` varchar(45) NOT NULL,
`admission_number` varchar(45) NOT NULL,
`email` varchar(45) NOT NULL,
`mobile` varchar(45) DEFAULT NULL,
`is_admin` tinyint DEFAULT NULL,
`otp` varchar(45) DEFAULT NULL,
`otp_valid_upto` varchar(45) DEFAULT NULL,
`verified` tinyint DEFAULT NULL,
`department` int NOT NULL,
`course` int NOT NULL,
`bio` varchar(110) DEFAULT NULL,
`profile_img` varchar(110) DEFAULT NULL,
`admission_year` int NOT NULL,
PRIMARY KEY (`username`),
UNIQUE KEY `username_UNIQUE` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2020-12-12 14:56:20
|
ALTER TABLE addays MODIFY COLUMN Day enum('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday') NOT NULL;||
UPDATE addays SET Day = 'Sun' WHERE Day = 'Sunday';||
UPDATE addays SET Day = 'Mon' WHERE Day = 'Monday';||
UPDATE addays SET Day = 'Tue' WHERE Day = 'Tuesday';||
UPDATE addays SET Day = 'Wed' WHERE Day = 'Wednesday';||
UPDATE addays SET Day = 'Thu' WHERE Day = 'Thursday';||
UPDATE addays SET Day = 'Fri' WHERE Day = 'Friday';||
UPDATE addays SET Day = 'Sat' WHERE Day = 'Saturday';||
UPDATE addays SET Day = 'Sun' WHERE Day = 'Sunday';||
ALTER TABLE addays MODIFY COLUMN Day enum('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat') NOT NULL;
|
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE OR ALTER PROCEDURE dbo.prc_Config_SQLAgentProperties
AS
BEGIN
SET NOCOUNT ON
/*IF(OBJECT_ID('temp..#temp_SQLAgentProperties') IS NOT NULL)
DROP TABLE #temp_SQLAgentProperties
CREATE TABLE #temp_SQLAgentProperties(
[auto_start] [int] NOT NULL,
[msx_server_name] [nvarchar](128) NULL,
[sqlagent_type] [int] NULL,
[startup_account] [nvarchar](100) NULL,
[sqlserver_restart] [int] NOT NULL,
[jobhistory_max_rows] [int] NULL,
[jobhistory_max_rows_per_job] [int] NULL,
[errorlog_file] [nvarchar](255) NULL,
[errorlogging_level] [int] NOT NULL,
[error_recipient] [nvarchar](30) NULL,
[monitor_autostart] [int] NOT NULL,
[local_host_server] [nvarchar](128) NULL,
[job_shutdown_timeout] [int] NOT NULL,
[cmdexec_account] [varbinary](64) NULL,
[regular_connections] [int] NOT NULL,
[host_login_name] [nvarchar](128) NULL,
[host_login_password] [varbinary](512) NULL,
[login_timeout] [int] NOT NULL,
[idle_cpu_percent] [int] NOT NULL,
[idle_cpu_duration] [int] NOT NULL,
[oem_errorlog] [int] NOT NULL,
[sysadmin_only] [int] NULL,
[email_profile] [nvarchar](64) NULL,
[email_save_in_sent_folder] [int] NOT NULL,
[cpu_poller_enabled] [int] NOT NULL,
[alert_replace_runtime_tokens] [int] NOT NULL
)
INSERT INTO #temp_SQLAgentProperties
EXEC msdb.dbo.sp_get_sqlagent_properties
SELECT auto_Start
, startup_Account
, SQLServer_restart
, jobhistory_max_rows
, jobHistory_max_rows_per_Job
, errorLog_file
, errorLogging_level
, login_timeout
, email_save_in_sent_folder
FROM #temp_SQLAgentProperties
DROP TABLE #temp_SQLAgentProperties*/
DECLARE @auto_start INT
, @startup_account NVARCHAR(100)
, @msx_server_name sysname
, @sqlserver_restart INT
, @jobhistory_max_rows INT
, @jobhistory_max_rows_per_job INT
, @errorlog_file NVARCHAR(255)
, @errorlogging_level INT
, @error_recipient NVARCHAR(30)
, @monitor_autostart INT
, @local_host_server sysname
, @job_shutdown_timeout INT
, @cmdexec_account VARBINARY(64)
, @regular_connections INT
, @host_login_name sysname
, @host_login_password <PASSWORD>(<PASSWORD>)
, @login_timeout INT
, @idle_cpu_percent INT
, @idle_cpu_duration INT
, @oem_errorlog INT
, @email_profile NVARCHAR(64)
, @email_save_in_sent_folder INT
, @cpu_poller_enabled INT
, @alert_replace_runtime_tokens INT
-- NOTE: We return all SQLServerAgent properties at one go for performance reasons
-- Read the values from the registry
IF ((PLATFORM() & 0x1) = 0x1) -- NT
BEGIN
DECLARE @key NVARCHAR(200)
SELECT @key = N'SYSTEM\CurrentControlSet\Services\'
IF (SERVERPROPERTY('INSTANCENAME') IS NOT NULL)
SELECT @key = @key + N'SQLAgent$' + CONVERT (sysname, SERVERPROPERTY('INSTANCENAME'))
ELSE
SELECT @key = @key + N'SQLServerAgent'
EXECUTE master.dbo.xp_regread N'HKEY_LOCAL_MACHINE',
@key,
N'Start',
@auto_start OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_regread N'HKEY_LOCAL_MACHINE',
@key,
N'ObjectName',
@startup_account OUTPUT,
N'no_output'
END
ELSE
BEGIN
SELECT @auto_start = 3 -- Manual start
SELECT @startup_account = NULL
END
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'MSXServerName',
@msx_server_name OUTPUT,
N'no_output'
-- Non-SQLDMO exposed properties
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'RestartSQLServer',
@sqlserver_restart OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'JobHistoryMaxRows',
@jobhistory_max_rows OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'JobHistoryMaxRowsPerJob',
@jobhistory_max_rows_per_job OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'ErrorLogFile',
@errorlog_file OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'ErrorLoggingLevel',
@errorlogging_level OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'ErrorMonitor',
@error_recipient OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'MonitorAutoStart',
@monitor_autostart OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'ServerHost',
@local_host_server OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'JobShutdownTimeout',
@job_shutdown_timeout OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'CmdExecAccount',
@cmdexec_account OUTPUT,
N'no_output'
SET @regular_connections = 0
SET @host_login_name = NULL
SET @host_login_password = <PASSWORD>
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'LoginTimeout',
@login_timeout OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'IdleCPUPercent',
@idle_cpu_percent OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'IdleCPUDuration',
@idle_cpu_duration OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'OemErrorLog',
@oem_errorlog OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'EmailProfile',
@email_profile OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'EmailSaveSent',
@email_save_in_sent_folder OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'AlertReplaceRuntimeTokens',
@alert_replace_runtime_tokens OUTPUT,
N'no_output'
EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',
N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent',
N'CoreEngineMask',
@cpu_poller_enabled OUTPUT,
N'no_output'
IF (@cpu_poller_enabled IS NOT NULL)
SELECT @cpu_poller_enabled = CASE WHEN (@cpu_poller_enabled & 32) = 32 THEN 0 ELSE 1 END
-- Return the values to the client
SELECT auto_start = CASE @auto_start
WHEN 2 THEN 1 -- 2 means auto-start
WHEN 3 THEN 0 -- 3 means don't auto-start
ELSE 0 -- Safety net
END,
msx_server_name = @msx_server_name,
sqlagent_type = (SELECT CASE
WHEN (COUNT(*) = 0) AND (ISNULL(DATALENGTH(@msx_server_name), 0) = 0) THEN 1 -- Standalone
WHEN (COUNT(*) = 0) AND (ISNULL(DATALENGTH(@msx_server_name), 0) > 0) THEN 2 -- TSX
WHEN (COUNT(*) > 0) AND (ISNULL(DATALENGTH(@msx_server_name), 0) = 0) THEN 3 -- MSX
WHEN (COUNT(*) > 0) AND (ISNULL(DATALENGTH(@msx_server_name), 0) > 0) THEN 0 -- Multi-Level MSX (currently invalid)
ELSE 0 -- Invalid
END
FROM msdb.dbo.systargetservers),
startup_account = @startup_account,
sqlserver_restart = ISNULL(@sqlserver_restart, 1),
jobhistory_max_rows = @jobhistory_max_rows,
jobhistory_max_rows_per_job = @jobhistory_max_rows_per_job,
errorlog_file = @errorlog_file,
errorlogging_level = ISNULL(@errorlogging_level, 7),
error_recipient = @error_recipient,
monitor_autostart = ISNULL(@monitor_autostart, 0),
local_host_server = @local_host_server,
job_shutdown_timeout = ISNULL(@job_shutdown_timeout, 15),
cmdexec_account = CONVERT(NVARCHAR(MAX), @cmdexec_account),
regular_connections = ISNULL(@regular_connections, 0),
host_login_name = @host_login_name,
--host_login_password = <PASSWORD>,
login_timeout = ISNULL(@login_timeout, 30),
idle_cpu_percent = ISNULL(@idle_cpu_percent, 10),
idle_cpu_duration = ISNULL(@idle_cpu_duration, 600),
oem_errorlog = ISNULL(@oem_errorlog, 0),
sysadmin_only = NULL,
email_profile = @email_profile,
email_save_in_sent_folder = ISNULL(@email_save_in_sent_folder, 0),
cpu_poller_enabled = ISNULL(@cpu_poller_enabled, 0),
alert_replace_runtime_tokens = ISNULL(@alert_replace_runtime_tokens, 0)
END;
;
GO
|
-- --------------------------------------------------
-- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure
-- --------------------------------------------------
-- Date Created: 03/14/2021 20:51:48
-- Generated from EDMX file: E:\MMMMMMM\MyGenshinDemo\MyGenshin\Server\GameServer\GameServer\Entities.edmx
-- --------------------------------------------------
SET QUOTED_IDENTIFIER OFF;
GO
USE [ExtremeWorld];
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_UserPlayer]', 'F') IS NOT NULL
ALTER TABLE [dbo].[Users] DROP CONSTRAINT [FK_UserPlayer];
GO
IF OBJECT_ID(N'[dbo].[FK_PlayerCharacter]', 'F') IS NOT NULL
ALTER TABLE [dbo].[Characters] DROP CONSTRAINT [FK_PlayerCharacter];
GO
IF OBJECT_ID(N'[dbo].[FK_CharacterItem]', 'F') IS NOT NULL
ALTER TABLE [dbo].[CharacterItems] DROP CONSTRAINT [FK_CharacterItem];
GO
IF OBJECT_ID(N'[dbo].[FK_TGoodsLimitTCharacter]', 'F') IS NOT NULL
ALTER TABLE [dbo].[GoodsLimits] DROP CONSTRAINT [FK_TGoodsLimitTCharacter];
GO
IF OBJECT_ID(N'[dbo].[FK_TCharacterTCharacterEquips]', 'F') IS NOT NULL
ALTER TABLE [dbo].[CharacterEquip] DROP CONSTRAINT [FK_TCharacterTCharacterEquips];
GO
IF OBJECT_ID(N'[dbo].[FK_TCharacterTQuest]', 'F') IS NOT NULL
ALTER TABLE [dbo].[Quests] DROP CONSTRAINT [FK_TCharacterTQuest];
GO
IF OBJECT_ID(N'[dbo].[FK_TCharacterTFriend]', 'F') IS NOT NULL
ALTER TABLE [dbo].[Friends] DROP CONSTRAINT [FK_TCharacterTFriend];
GO
IF OBJECT_ID(N'[dbo].[FK_TCharacterTMessage]', 'F') IS NOT NULL
ALTER TABLE [dbo].[Messages] DROP CONSTRAINT [FK_TCharacterTMessage];
GO
IF OBJECT_ID(N'[dbo].[FK_TCharacterTCharacterGlobalStatus]', 'F') IS NOT NULL
ALTER TABLE [dbo].[CharacterGlobalStatus] DROP CONSTRAINT [FK_TCharacterTCharacterGlobalStatus];
GO
-- --------------------------------------------------
-- Dropping existing tables
-- --------------------------------------------------
IF OBJECT_ID(N'[dbo].[Users]', 'U') IS NOT NULL
DROP TABLE [dbo].[Users];
GO
IF OBJECT_ID(N'[dbo].[Players]', 'U') IS NOT NULL
DROP TABLE [dbo].[Players];
GO
IF OBJECT_ID(N'[dbo].[Characters]', 'U') IS NOT NULL
DROP TABLE [dbo].[Characters];
GO
IF OBJECT_ID(N'[dbo].[CharacterItems]', 'U') IS NOT NULL
DROP TABLE [dbo].[CharacterItems];
GO
IF OBJECT_ID(N'[dbo].[GoodsLimits]', 'U') IS NOT NULL
DROP TABLE [dbo].[GoodsLimits];
GO
IF OBJECT_ID(N'[dbo].[CharacterEquip]', 'U') IS NOT NULL
DROP TABLE [dbo].[CharacterEquip];
GO
IF OBJECT_ID(N'[dbo].[Quests]', 'U') IS NOT NULL
DROP TABLE [dbo].[Quests];
GO
IF OBJECT_ID(N'[dbo].[Friends]', 'U') IS NOT NULL
DROP TABLE [dbo].[Friends];
GO
IF OBJECT_ID(N'[dbo].[Messages]', 'U') IS NOT NULL
DROP TABLE [dbo].[Messages];
GO
IF OBJECT_ID(N'[dbo].[GlobalMessages]', 'U') IS NOT NULL
DROP TABLE [dbo].[GlobalMessages];
GO
IF OBJECT_ID(N'[dbo].[CharacterGlobalStatus]', 'U') IS NOT NULL
DROP TABLE [dbo].[CharacterGlobalStatus];
GO
-- --------------------------------------------------
-- Creating all tables
-- --------------------------------------------------
-- Creating table 'Users'
CREATE TABLE [dbo].[Users] (
[ID] bigint IDENTITY(1,1) NOT NULL,
[Username] nvarchar(50) NOT NULL,
[Password] nvarchar(50) NOT NULL,
[RegisterDate] datetime NULL,
[Player_ID] int NOT NULL
);
GO
-- Creating table 'Players'
CREATE TABLE [dbo].[Players] (
[ID] int IDENTITY(1,1) NOT NULL
);
GO
-- Creating table 'Characters'
CREATE TABLE [dbo].[Characters] (
[ID] int IDENTITY(1,1) NOT NULL,
[TID] int NOT NULL,
[Name] nvarchar(max) NOT NULL,
[Class] int NOT NULL,
[MapID] int NOT NULL,
[MapPosX] int NOT NULL,
[MapPosY] int NOT NULL,
[MapPosZ] int NOT NULL,
[MapDirection] int NOT NULL,
[Gold] bigint NOT NULL,
[Equiped] varbinary(max) NOT NULL,
[Level] int NOT NULL,
[Exp] bigint NOT NULL,
[CGMsgID] int NOT NULL,
[Player_ID] int NOT NULL
);
GO
-- Creating table 'CharacterItems'
CREATE TABLE [dbo].[CharacterItems] (
[Id] int IDENTITY(1,1) NOT NULL,
[ItemID] int NOT NULL,
[Count] int NOT NULL,
[CharacterID] int NOT NULL,
[Expiration] time NULL
);
GO
-- Creating table 'GoodsLimits'
CREATE TABLE [dbo].[GoodsLimits] (
[Id] int IDENTITY(1,1) NOT NULL,
[GoodsID] int NOT NULL,
[Purchased] smallint NOT NULL,
[TCharacter_ID] int NOT NULL
);
GO
-- Creating table 'CharacterEquip'
CREATE TABLE [dbo].[CharacterEquip] (
[Id] int IDENTITY(1,1) NOT NULL,
[TCharacterID] int NOT NULL,
[Property] varbinary(max) NOT NULL,
[IsDelete] bit NOT NULL,
[TemplateID] int NOT NULL
);
GO
-- Creating table 'Quests'
CREATE TABLE [dbo].[Quests] (
[Id] int IDENTITY(1,1) NOT NULL,
[TCharacterID] int NOT NULL,
[QuestID] int NOT NULL,
[Target1] int NOT NULL,
[Target2] int NOT NULL,
[Target3] int NOT NULL,
[Status] int NOT NULL
);
GO
-- Creating table 'Friends'
CREATE TABLE [dbo].[Friends] (
[Id] int IDENTITY(1,1) NOT NULL,
[FriendID] int NOT NULL,
[FriendName] nvarchar(max) NOT NULL,
[FriendClass] int NOT NULL,
[FriendLevel] int NOT NULL,
[TCharacterID] int NOT NULL,
[IsDelete] bit NOT NULL
);
GO
-- Creating table 'Messages'
CREATE TABLE [dbo].[Messages] (
[Id] int IDENTITY(1,1) NOT NULL,
[Type] int NOT NULL,
[TCharacterID] int NOT NULL,
[FromID] int NOT NULL,
[Status] int NOT NULL,
[Title] nvarchar(max) NULL,
[Message] nvarchar(max) NULL,
[Items] varbinary(max) NULL,
[Equips] varbinary(max) NULL,
[Gold] int NULL,
[Exp] int NULL,
[Time] bigint NOT NULL
);
GO
-- Creating table 'GlobalMessages'
CREATE TABLE [dbo].[GlobalMessages] (
[Id] int IDENTITY(1,1) NOT NULL,
[Title] nvarchar(max) NULL,
[Message] nvarchar(max) NULL,
[Items] varbinary(max) NULL,
[Equips] varbinary(max) NULL,
[Gold] int NULL,
[Exp] int NULL,
[FromID] int NOT NULL,
[Time] bigint NOT NULL
);
GO
-- Creating table 'CharacterGlobalStatus'
CREATE TABLE [dbo].[CharacterGlobalStatus] (
[Id] int IDENTITY(1,1) NOT NULL,
[TCharacterID] int NOT NULL,
[MessageID] int NOT NULL,
[Status] int NOT NULL
);
GO
-- --------------------------------------------------
-- Creating all PRIMARY KEY constraints
-- --------------------------------------------------
-- Creating primary key on [ID] in table 'Users'
ALTER TABLE [dbo].[Users]
ADD CONSTRAINT [PK_Users]
PRIMARY KEY CLUSTERED ([ID] ASC);
GO
-- Creating primary key on [ID] in table 'Players'
ALTER TABLE [dbo].[Players]
ADD CONSTRAINT [PK_Players]
PRIMARY KEY CLUSTERED ([ID] ASC);
GO
-- Creating primary key on [ID] in table 'Characters'
ALTER TABLE [dbo].[Characters]
ADD CONSTRAINT [PK_Characters]
PRIMARY KEY CLUSTERED ([ID] ASC);
GO
-- Creating primary key on [Id] in table 'CharacterItems'
ALTER TABLE [dbo].[CharacterItems]
ADD CONSTRAINT [PK_CharacterItems]
PRIMARY KEY CLUSTERED ([Id] ASC);
GO
-- Creating primary key on [Id] in table 'GoodsLimits'
ALTER TABLE [dbo].[GoodsLimits]
ADD CONSTRAINT [PK_GoodsLimits]
PRIMARY KEY CLUSTERED ([Id] ASC);
GO
-- Creating primary key on [Id] in table 'CharacterEquip'
ALTER TABLE [dbo].[CharacterEquip]
ADD CONSTRAINT [PK_CharacterEquip]
PRIMARY KEY CLUSTERED ([Id] ASC);
GO
-- Creating primary key on [Id] in table 'Quests'
ALTER TABLE [dbo].[Quests]
ADD CONSTRAINT [PK_Quests]
PRIMARY KEY CLUSTERED ([Id] ASC);
GO
-- Creating primary key on [Id] in table 'Friends'
ALTER TABLE [dbo].[Friends]
ADD CONSTRAINT [PK_Friends]
PRIMARY KEY CLUSTERED ([Id] ASC);
GO
-- Creating primary key on [Id] in table 'Messages'
ALTER TABLE [dbo].[Messages]
ADD CONSTRAINT [PK_Messages]
PRIMARY KEY CLUSTERED ([Id] ASC);
GO
-- Creating primary key on [Id] in table 'GlobalMessages'
ALTER TABLE [dbo].[GlobalMessages]
ADD CONSTRAINT [PK_GlobalMessages]
PRIMARY KEY CLUSTERED ([Id] ASC);
GO
-- Creating primary key on [Id] in table 'CharacterGlobalStatus'
ALTER TABLE [dbo].[CharacterGlobalStatus]
ADD CONSTRAINT [PK_CharacterGlobalStatus]
PRIMARY KEY CLUSTERED ([Id] ASC);
GO
-- --------------------------------------------------
-- Creating all FOREIGN KEY constraints
-- --------------------------------------------------
-- Creating foreign key on [Player_ID] in table 'Users'
ALTER TABLE [dbo].[Users]
ADD CONSTRAINT [FK_UserPlayer]
FOREIGN KEY ([Player_ID])
REFERENCES [dbo].[Players]
([ID])
ON DELETE NO ACTION ON UPDATE NO ACTION;
GO
-- Creating non-clustered index for FOREIGN KEY 'FK_UserPlayer'
CREATE INDEX [IX_FK_UserPlayer]
ON [dbo].[Users]
([Player_ID]);
GO
-- Creating foreign key on [Player_ID] in table 'Characters'
ALTER TABLE [dbo].[Characters]
ADD CONSTRAINT [FK_PlayerCharacter]
FOREIGN KEY ([Player_ID])
REFERENCES [dbo].[Players]
([ID])
ON DELETE NO ACTION ON UPDATE NO ACTION;
GO
-- Creating non-clustered index for FOREIGN KEY 'FK_PlayerCharacter'
CREATE INDEX [IX_FK_PlayerCharacter]
ON [dbo].[Characters]
([Player_ID]);
GO
-- Creating foreign key on [CharacterID] in table 'CharacterItems'
ALTER TABLE [dbo].[CharacterItems]
ADD CONSTRAINT [FK_CharacterItem]
FOREIGN KEY ([CharacterID])
REFERENCES [dbo].[Characters]
([ID])
ON DELETE NO ACTION ON UPDATE NO ACTION;
GO
-- Creating non-clustered index for FOREIGN KEY 'FK_CharacterItem'
CREATE INDEX [IX_FK_CharacterItem]
ON [dbo].[CharacterItems]
([CharacterID]);
GO
-- Creating foreign key on [TCharacter_ID] in table 'GoodsLimits'
ALTER TABLE [dbo].[GoodsLimits]
ADD CONSTRAINT [FK_TGoodsLimitTCharacter]
FOREIGN KEY ([TCharacter_ID])
REFERENCES [dbo].[Characters]
([ID])
ON DELETE NO ACTION ON UPDATE NO ACTION;
GO
-- Creating non-clustered index for FOREIGN KEY 'FK_TGoodsLimitTCharacter'
CREATE INDEX [IX_FK_TGoodsLimitTCharacter]
ON [dbo].[GoodsLimits]
([TCharacter_ID]);
GO
-- Creating foreign key on [TCharacterID] in table 'CharacterEquip'
ALTER TABLE [dbo].[CharacterEquip]
ADD CONSTRAINT [FK_TCharacterTCharacterEquips]
FOREIGN KEY ([TCharacterID])
REFERENCES [dbo].[Characters]
([ID])
ON DELETE NO ACTION ON UPDATE NO ACTION;
GO
-- Creating non-clustered index for FOREIGN KEY 'FK_TCharacterTCharacterEquips'
CREATE INDEX [IX_FK_TCharacterTCharacterEquips]
ON [dbo].[CharacterEquip]
([TCharacterID]);
GO
-- Creating foreign key on [TCharacterID] in table 'Quests'
ALTER TABLE [dbo].[Quests]
ADD CONSTRAINT [FK_TCharacterTQuest]
FOREIGN KEY ([TCharacterID])
REFERENCES [dbo].[Characters]
([ID])
ON DELETE NO ACTION ON UPDATE NO ACTION;
GO
-- Creating non-clustered index for FOREIGN KEY 'FK_TCharacterTQuest'
CREATE INDEX [IX_FK_TCharacterTQuest]
ON [dbo].[Quests]
([TCharacterID]);
GO
-- Creating foreign key on [TCharacterID] in table 'Friends'
ALTER TABLE [dbo].[Friends]
ADD CONSTRAINT [FK_TCharacterTFriend]
FOREIGN KEY ([TCharacterID])
REFERENCES [dbo].[Characters]
([ID])
ON DELETE NO ACTION ON UPDATE NO ACTION;
GO
-- Creating non-clustered index for FOREIGN KEY 'FK_TCharacterTFriend'
CREATE INDEX [IX_FK_TCharacterTFriend]
ON [dbo].[Friends]
([TCharacterID]);
GO
-- Creating foreign key on [TCharacterID] in table 'Messages'
ALTER TABLE [dbo].[Messages]
ADD CONSTRAINT [FK_TCharacterTMessage]
FOREIGN KEY ([TCharacterID])
REFERENCES [dbo].[Characters]
([ID])
ON DELETE NO ACTION ON UPDATE NO ACTION;
GO
-- Creating non-clustered index for FOREIGN KEY 'FK_TCharacterTMessage'
CREATE INDEX [IX_FK_TCharacterTMessage]
ON [dbo].[Messages]
([TCharacterID]);
GO
-- Creating foreign key on [TCharacterID] in table 'CharacterGlobalStatus'
ALTER TABLE [dbo].[CharacterGlobalStatus]
ADD CONSTRAINT [FK_TCharacterTCharacterGlobalStatus]
FOREIGN KEY ([TCharacterID])
REFERENCES [dbo].[Characters]
([ID])
ON DELETE NO ACTION ON UPDATE NO ACTION;
GO
-- Creating non-clustered index for FOREIGN KEY 'FK_TCharacterTCharacterGlobalStatus'
CREATE INDEX [IX_FK_TCharacterTCharacterGlobalStatus]
ON [dbo].[CharacterGlobalStatus]
([TCharacterID]);
GO
-- --------------------------------------------------
-- Script has ended
-- -------------------------------------------------- |
--Creating manual table with concept_code_1 representing attribute (Brand Name,Supplier, Dose Form) that you want to replace by another already existing one (concept_code_2)
INSERT INTO concept_relationship_stage (
concept_code_1,
concept_code_2,
vocabulary_id_1,
vocabulary_id_2,
relationship_id,
valid_start_date,
valid_end_date
)
SELECT DISTINCT cr1.concept_code_2,
cr2.concept_code_2,
cr1.vocabulary_id_2,
cr2.vocabulary_id_2,
'Concept replaced by',
cr1.valid_start_date,
cr1.valid_end_date
FROM suppliers_to_repl s
JOIN concept_relationship_stage cr1 ON s.concept_code_1 = cr1.concept_code_1
AND cr1.relationship_id = 'Source - RxNorm eq'
JOIN concept_relationship_stage cr2 ON s.concept_code_2 = cr2.concept_code_1
AND cr2.relationship_id = 'Source - RxNorm eq';
UPDATE concept_stage
SET invalid_reason = 'U',
valid_end_date = CURRENT_DATE
WHERE concept_code IN (
SELECT cr1.concept_code_2
FROM suppliers_to_repl s
JOIN concept_relationship_stage cr1 ON s.concept_code_1 = cr1.concept_code_1
AND cr1.relationship_id = 'Source - RxNorm eq'
);
--brand
INSERT INTO concept_relationship_stage (
concept_code_1,
concept_code_2,
vocabulary_id_1,
vocabulary_id_2,
relationship_id,
valid_start_date,
valid_end_date
)
SELECT DISTINCT cr1.concept_code_2,
cr2.concept_code_2,
cr1.vocabulary_id_2,
cr2.vocabulary_id_2,
'Concept replaced by',
cr1.valid_start_date,
cr1.valid_end_date
FROM bn_to_repl s
JOIN concept_relationship_stage cr1 ON s.concept_code_1 = cr1.concept_code_1
AND cr1.relationship_id = 'Source - RxNorm eq'
JOIN concept_relationship_stage cr2 ON s.concept_code_2 = cr2.concept_code_1
AND cr2.relationship_id = 'Source - RxNorm eq';
UPDATE concept_stage
SET invalid_reason = 'U',
valid_end_date = CURRENT_DATE
WHERE concept_code IN (
SELECT cr1.concept_code_2
FROM bn_to_repl s
JOIN concept_relationship_stage cr1 ON s.concept_code_1 = cr1.concept_code_1
AND cr1.relationship_id = 'Source - RxNorm eq'
);
--ingredient
INSERT INTO concept_relationship_stage (
concept_code_1,
concept_code_2,
vocabulary_id_1,
vocabulary_id_2,
relationship_id,
valid_start_date,
valid_end_date
)
SELECT DISTINCT cr1.concept_code,
cr2.concept_code,
'RxNorm Extension',
cr2.vocabulary_id,
'Concept replaced by',
cr1.valid_start_date,
to_date('20991231','YYYYMMDD')
FROM ingredient_to_replace s -- different way, as there are no Source - RxNorm eq
JOIN devv5.concept cr1 ON s.concept_code_1 = cr1.concept_code and cr1.vocabulary_id like 'Rx%'
JOIN devv5.concept cr2 ON s.concept_code_2 = cr2.concept_code and cr2.vocabulary_id like 'Rx%'
;
UPDATE concept_stage
SET invalid_reason = 'U',
valid_end_date = CURRENT_DATE
WHERE concept_code IN (
SELECT concept_code_1
FROM ingredient_to_replace s
);
-- dose form
INSERT INTO concept_relationship_stage (
concept_code_1,
concept_code_2,
vocabulary_id_1,
vocabulary_id_2,
relationship_id,
valid_start_date,
valid_end_date
)
SELECT DISTINCT cr1.concept_code_2,
cr2.concept_code_2,
cr1.vocabulary_id_2,
cr2.vocabulary_id_2,
'Concept replaced by',
cr1.valid_start_date,
cr1.valid_end_date
FROM dose_form_to_replace s
JOIN concept_relationship_stage cr1 ON s.concept_code_1 = cr1.concept_code_1
AND cr1.relationship_id = 'Source - RxNorm eq'
JOIN concept_relationship_stage cr2 ON s.concept_code_2 = cr2.concept_code_1
AND cr2.relationship_id = 'Source - RxNorm eq';
UPDATE concept_stage
SET invalid_reason = 'U',
valid_end_date = CURRENT_DATE
WHERE concept_code IN (
SELECT cr1.concept_code_2
FROM dose_form_to_replace s
JOIN concept_relationship_stage cr1 ON s.concept_code_1 = cr1.concept_code_1
AND cr1.relationship_id = 'Source - RxNorm eq'
);
--create temporary table with old mappings and fresh concepts (after all 'Concept replaced by')
DROP TABLE IF EXISTS rxe_tmp_replaces;
CREATE TABLE rxe_tmp_replaces AS
WITH src_codes AS (
--get concepts and all their links, which targets to 'U'
SELECT crs.concept_code_2 AS src_code,
crs.vocabulary_id_2 AS src_vocab,
cs.concept_code upd_code,
cs.vocabulary_id upd_vocab,
cs.concept_class_id upd_class_id,
crs.relationship_id src_rel
FROM concept_stage cs,
concept_relationship_stage crs
WHERE cs.concept_code = crs.concept_code_1
AND cs.vocabulary_id = crs.vocabulary_id_2
AND cs.invalid_reason = 'U'
AND cs.vocabulary_id = 'RxNorm Extension'
AND crs.invalid_reason IS NULL
AND crs.relationship_id NOT IN (
'Concept replaced by',
'Concept replaces'
)
),
fresh_codes AS (
--get all fresh concepts (with recursion until the last fresh)
WITH RECURSIVE hierarchy_concepts(ancestor_concept_code, ancestor_vocabulary_id, descendant_concept_code, descendant_vocabulary_id, root_ancestor_concept_code, root_ancestor_vocabulary_id, full_path) AS (
SELECT ancestor_concept_code,
ancestor_vocabulary_id,
descendant_concept_code,
descendant_vocabulary_id,
ancestor_concept_code AS root_ancestor_concept_code,
ancestor_vocabulary_id AS root_ancestor_vocabulary_id,
ARRAY [ROW (descendant_concept_code, descendant_vocabulary_id)] AS full_path
FROM concepts
UNION ALL
SELECT c.ancestor_concept_code,
c.ancestor_vocabulary_id,
c.descendant_concept_code,
c.descendant_vocabulary_id,
root_ancestor_concept_code,
root_ancestor_vocabulary_id,
hc.full_path || ROW(c.descendant_concept_code, c.descendant_vocabulary_id) AS full_path
FROM concepts c
JOIN hierarchy_concepts hc ON hc.descendant_concept_code = c.ancestor_concept_code
AND hc.descendant_vocabulary_id = c.ancestor_vocabulary_id
WHERE ROW(c.descendant_concept_code, c.descendant_vocabulary_id) <> ALL (full_path)
),
concepts AS (
SELECT concept_code_1 AS ancestor_concept_code,
vocabulary_id_1 AS ancestor_vocabulary_id,
concept_code_2 AS descendant_concept_code,
vocabulary_id_2 AS descendant_vocabulary_id
FROM concept_relationship_stage crs
WHERE crs.relationship_id = 'Concept replaced by'
AND crs.invalid_reason IS NULL
)
SELECT DISTINCT hc.root_ancestor_concept_code AS upd_code,
hc.root_ancestor_vocabulary_id AS upd_vocab,
hc.descendant_concept_code AS new_code,
hc.descendant_vocabulary_id AS new_vocab
FROM hierarchy_concepts hc
WHERE NOT EXISTS (
/*same as oracle's CONNECT_BY_ISLEAF*/
SELECT 1
FROM hierarchy_concepts hc_int
WHERE hc_int.ancestor_concept_code = hc.descendant_concept_code
AND hc_int.ancestor_vocabulary_id = hc.descendant_vocabulary_id
)
)
SELECT src.src_code,
src.src_vocab,
src.upd_code,
src.upd_vocab,
src.upd_class_id,
src.src_rel,
fr.new_code,
fr.new_vocab
FROM src_codes src,
fresh_codes fr
WHERE src.upd_code = fr.upd_code
AND src.upd_vocab = fr.upd_vocab
AND NOT (
src.src_vocab = 'RxNorm'
AND fr.new_vocab = 'RxNorm'
);
--deprecate old relationships
UPDATE concept_relationship_stage crs
SET invalid_reason = 'D',
valid_end_date = (
SELECT latest_update - 1
FROM vocabulary
WHERE vocabulary_id = 'RxNorm Extension'
)
WHERE (
crs.concept_code_2,
crs.vocabulary_id_2,
crs.concept_code_1,
crs.vocabulary_id_1,
crs.relationship_id
) IN (
SELECT r.src_code,
r.src_vocab,
r.upd_code,
r.upd_vocab,
r.src_rel
FROM rxe_tmp_replaces r
WHERE r.upd_class_id IN (
'Brand Name',
'Ingredient',
'Supplier',
'Dose Form'
)
);
--build new ones relationships or update existing
UPDATE concept_relationship_stage crs
SET invalid_reason = NULL,
valid_end_date = to_date('20991231', 'YYYYMMDD')
FROM (
SELECT *
FROM rxe_tmp_replaces r
WHERE r.upd_class_id IN (
'Brand Name',
'Ingredient',
'Supplier',
'Dose Form'
)
) i
WHERE i.src_code = crs.concept_code_2
AND i.src_vocab = crs.vocabulary_id_2
AND i.new_code = crs.concept_code_1
AND i.new_vocab = crs.vocabulary_id_1
AND i.src_rel = crs.relationship_id
AND crs.invalid_reason IS NOT NULL;
INSERT INTO concept_relationship_stage (
concept_code_2,
vocabulary_id_2,
concept_code_1,
vocabulary_id_1,
relationship_id,
valid_start_date,
valid_end_date,
invalid_reason
)
SELECT i.src_code,
i.src_vocab,
i.new_code,
i.new_vocab,
i.src_rel,
(
SELECT latest_update
FROM vocabulary
WHERE vocabulary_id = 'RxNorm Extension'
),
to_date('20991231', 'YYYYMMDD'),
NULL
FROM (
SELECT *
FROM rxe_tmp_replaces r
WHERE r.upd_class_id IN (
'Brand Name',
'Ingredient',
'Supplier',
'Dose Form'
)
) i
WHERE NOT EXISTS (
SELECT 1
FROM concept_relationship_stage crs_int
WHERE i.src_code = crs_int.concept_code_2
AND i.src_vocab = crs_int.vocabulary_id_2
AND i.new_code = crs_int.concept_code_1
AND i.new_vocab = crs_int.vocabulary_id_1
AND i.src_rel = crs_int.relationship_id
);
--get duplicates for some reason
DELETE
FROM concept_relationship_stage i
WHERE EXISTS (
SELECT 1
FROM concept_relationship_stage i_int
WHERE i_int.concept_code_1 = i.concept_code_1
AND i_int.concept_code_2 = i.concept_code_2
AND i_int.vocabulary_id_1 = i.vocabulary_id_1
AND i_int.vocabulary_id_2 = i.vocabulary_id_2
AND i_int.relationship_id = i.relationship_id
AND i_int.ctid > i.ctid
);
DROP TABLE rxe_tmp_replaces;
-- Working with replacement mappings
DO $_$
BEGIN
PERFORM VOCABULARY_PACK.CheckReplacementMappings();
END $_$;
-- Deprecate 'Maps to' mappings to deprecated and upgraded concepts
DO $_$
BEGIN
PERFORM VOCABULARY_PACK.DeprecateWrongMAPSTO();
END $_$;
-- Add mapping from deprecated to fresh concepts, and also from non-standard to standard concepts
DO $_$
BEGIN
PERFORM VOCABULARY_PACK.AddFreshMAPSTO();
END $_$;
|
SELECT tab0.v1 AS v1 , tab1.v0 AS v0 , tab4.v5 AS v5 , tab7.v7 AS v7 , tab5.v6 AS v6 , tab6.v4 AS v4 , tab9.v9 AS v9 , tab3.v3 AS v3 , tab8.v8 AS v8 , tab2.v2 AS v2
FROM (SELECT sub AS v2
FROM sorg__eligibleRegion$$3$$
WHERE obj = 'wsdbm:Country5'
) tab2
JOIN (SELECT sub AS v0 , obj AS v2
FROM gr__offers$$2$$
) tab1
ON(tab2.v2=tab1.v2)
JOIN (SELECT obj AS v1 , sub AS v0
FROM sorg__legalName$$1$$
) tab0
ON(tab1.v0=tab0.v0)
JOIN (SELECT obj AS v3 , sub AS v2
FROM gr__includes$$4$$
) tab3
ON(tab1.v2=tab3.v2)
JOIN (SELECT sub AS v3 , obj AS v8
FROM rev__hasReview$$9$$
) tab8
ON(tab3.v3=tab8.v3)
JOIN (SELECT obj AS v9 , sub AS v8
FROM rev__totalVotes$$10$$
) tab9
ON(tab8.v8=tab9.v8)
JOIN (SELECT sub AS v7 , obj AS v3
FROM wsdbm__purchaseFor$$8$$
) tab7
ON(tab8.v3=tab7.v3)
JOIN (SELECT obj AS v7 , sub AS v4
FROM wsdbm__makesPurchase$$7$$
) tab6
ON(tab7.v7=tab6.v7)
JOIN (SELECT obj AS v5 , sub AS v4
FROM sorg__jobTitle$$5$$
) tab4
ON(tab6.v4=tab4.v4)
JOIN (SELECT obj AS v6 , sub AS v4
FROM foaf__homepage$$6$$
) tab5
ON(tab4.v4=tab5.v4)
++++++Tables Statistic
gr__includes$$4$$ 3 OS gr__includes/rev__hasReview
VP <gr__includes> 90000
SO <gr__includes><gr__offers> 44841 0.5
SS <gr__includes><sorg__eligibleRegion> 44935 0.5
OS <gr__includes><rev__hasReview> 18580 0.21
------
foaf__homepage$$6$$ 1 SS foaf__homepage/sorg__jobTitle
VP <foaf__homepage> 11204
SS <foaf__homepage><sorg__jobTitle> 245 0.02
SS <foaf__homepage><wsdbm__makesPurchase> 766 0.07
------
rev__hasReview$$9$$ 3 OS rev__hasReview/rev__totalVotes
VP <rev__hasReview> 149634
SO <rev__hasReview><gr__includes> 145435 0.97
SO <rev__hasReview><wsdbm__purchaseFor> 107006 0.72
OS <rev__hasReview><rev__totalVotes> 7545 0.05
------
gr__offers$$2$$ 1 SS gr__offers/sorg__legalName
VP <gr__offers> 119316
SS <gr__offers><sorg__legalName> 10533 0.09
OS <gr__offers><sorg__eligibleRegion> 58569 0.49
OS <gr__offers><gr__includes> 119316 1.0
------
sorg__legalName$$1$$ 0 VP sorg__legalName/
VP <sorg__legalName> 108
SS <sorg__legalName><gr__offers> 108 1.0
------
wsdbm__purchaseFor$$8$$ 2 OS wsdbm__purchaseFor/rev__hasReview
VP <wsdbm__purchaseFor> 150000
SO <wsdbm__purchaseFor><wsdbm__makesPurchase> 149998 1.0
OS <wsdbm__purchaseFor><rev__hasReview> 33884 0.23
------
sorg__jobTitle$$5$$ 1 SS sorg__jobTitle/foaf__homepage
VP <sorg__jobTitle> 5008
SS <sorg__jobTitle><foaf__homepage> 245 0.05
SS <sorg__jobTitle><wsdbm__makesPurchase> 763 0.15
------
wsdbm__makesPurchase$$7$$ 1 SS wsdbm__makesPurchase/sorg__jobTitle
VP <wsdbm__makesPurchase> 149998
SS <wsdbm__makesPurchase><sorg__jobTitle> 7225 0.05
SS <wsdbm__makesPurchase><foaf__homepage> 7230 0.05
OS <wsdbm__makesPurchase><wsdbm__purchaseFor> 149998 1.0
------
rev__totalVotes$$10$$ 1 SO rev__totalVotes/rev__hasReview
VP <rev__totalVotes> 7554
SO <rev__totalVotes><rev__hasReview> 7545 1.0
------
sorg__eligibleRegion$$3$$ 1 SO sorg__eligibleRegion/gr__offers
VP <sorg__eligibleRegion> 183550
SO <sorg__eligibleRegion><gr__offers> 91392 0.5
SS <sorg__eligibleRegion><gr__includes> 183550 1.0
------
|
# Note: There are two sections in this file. You can only override the section two using generated Sql from domain.
# Section one: The following section is NOT generated
# DO NOT override
create table users(
username varchar(200) not null primary key,
password varchar(256) not null,
enabled boolean not null,
failed_attempts tinyint not null,
lockout_time varchar(30)
);
create table authorities (
username varchar(200) not null,
authority varchar(50) not null,
constraint fk_authorities_users
foreign key(username) references users(username)
);
create unique index ix_auth_username on authorities
(username,authority);
# Section two: The following is generated from domain using JPA mapping and JSR303 validation annotations
create table address_use_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table administrative_gender_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table adverse_event_type_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table allergy (
id bigint not null auto_increment,
code varchar(255),
code_system varchar(255),
code_system_name varchar(255),
display_name varchar(255),
original_text varchar(255),
allergy_end_date datetime,
allergy_start_date datetime not null,
version integer,
adverse_event_type_code bigint,
allergy_reaction bigint,
allergy_severity_code bigint,
allergy_status_code bigint,
patient bigint,
primary key (id)
) ENGINE=InnoDB
;
create table allergy_reaction_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table allergy_severity_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table allergy_status_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table body_site_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table clinical_concept_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table clinical_document (
id bigint not null auto_increment,
content longblob not null,
content_type varchar(255) not null,
description varchar(500),
document_size bigint not null,
document_url varchar(100),
filename varchar(255) not null,
name varchar(100) not null,
version integer,
clinical_document_type_code bigint,
patient bigint,
primary key (id)
) ENGINE=InnoDB
;
create table clinical_document_audit (
id bigint not null,
rev bigint not null,
revtype tinyint,
content longblob,
content_type varchar(255),
description varchar(500),
document_size bigint,
document_url varchar(100),
filename varchar(255),
name varchar(100),
clinical_document_type_code bigint,
patient bigint,
primary key (id, rev)
) ENGINE=InnoDB
;
create table clinical_document_section_type_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table clinical_document_type_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table code_system (
code_system_id bigint not null auto_increment unique,
creation_time datetime,
modification_time datetime,
user_name varchar(255) not null,
code varchar(255) not null,
name varchar(255) not null,
code_system_oid varchar(255) not null unique,
display_name varchar(255),
primary key (code_system_id)
) ENGINE=InnoDB
;
create table code_system_aud (
code_system_id bigint not null,
rev bigint not null,
revtype tinyint,
code_system_oid varchar(255),
display_name varchar(255),
primary key (code_system_id, rev)
) ENGINE=InnoDB
;
create table code_system_version (
code_system_version_id bigint not null auto_increment unique,
creation_time datetime,
modification_time datetime,
user_name varchar(255) not null,
description varchar(255),
version_name varchar(255) not null,
fk_code_system_id bigint,
primary key (code_system_version_id)
) ENGINE=InnoDB
;
create table code_system_version_aud (
code_system_version_id bigint not null,
rev bigint not null,
revtype tinyint,
description varchar(255),
version_name varchar(255),
fk_code_system_id bigint,
primary key (code_system_version_id, rev)
) ENGINE=InnoDB
;
create table concept_code (
concept_code_id bigint not null auto_increment unique,
creation_time datetime,
modification_time datetime,
user_name varchar(255) not null,
code varchar(255) not null,
name varchar(255) not null,
description varchar(255),
fk_code_system_version_id bigint,
primary key (concept_code_id),
unique (code, fk_code_system_version_id)
) ENGINE=InnoDB
;
create table concept_code_aud (
concept_code_id bigint not null,
rev bigint not null,
revtype tinyint,
description varchar(255),
fk_code_system_version_id bigint,
primary key (concept_code_id, rev)
) ENGINE=InnoDB
;
create table conceptcode_valueset (
fk_concept_code_id bigint,
fk_valueset_id bigint,
primary key (fk_concept_code_id, fk_valueset_id)
) ENGINE=InnoDB
;
create table confidentiality_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table consent (
id bigint not null auto_increment,
consent_reference_id varchar(255),
consent_revokation_type varchar(255),
consent_revoked boolean,
description varchar(250) not null,
end_date datetime,
exportedcdar2consent longblob,
exportedxacmlconsent longblob,
name varchar(30) not null,
revocation_date datetime,
signed_date datetime,
start_date datetime,
unsigned_pdf_consent longblob not null,
unsigned_pdf_consent_revoke longblob,
version integer,
xacml_ccd longblob,
xacml_pdf_consent_from longblob,
xacml_pdf_consent_to longblob,
legal_representative bigint,
patient bigint,
signed_pdf_consent bigint,
signed_pdf_consent_revoke bigint,
primary key (id)
) ENGINE=InnoDB
;
create table consent_aud (
id bigint not null,
rev bigint not null,
revtype tinyint,
consent_reference_id varchar(255),
consent_reference_id_mod boolean,
consent_revokation_type varchar(255),
consent_revokation_type_mod boolean,
consent_revoked boolean,
consent_revoked_mod boolean,
description varchar(250),
description_mod boolean,
end_date datetime,
end_date_mod boolean,
name varchar(30),
name_mod boolean,
revocation_date datetime,
revocation_date_mod boolean,
signed_date datetime,
signed_date_mod boolean,
start_date datetime,
start_date_mod boolean,
legal_representative bigint,
legal_representative_mod boolean,
patient bigint,
patient_mod boolean,
signed_pdf_consent bigint,
signed_pdf_consent_mod boolean,
signed_pdf_consent_revoke bigint,
signed_pdf_consent_revoke_mod boolean,
primary key (id, rev)
) ENGINE=InnoDB
;
create table consent_directive_type_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table consent_do_not_share_clinical_concept_codes (
consent_id bigint not null,
do_not_share_clinical_concept_codes bigint not null,
primary key (consent_id, do_not_share_clinical_concept_codes),
unique (do_not_share_clinical_concept_codes)
) ENGINE=InnoDB
;
create table consent_do_not_share_clinical_document_section_type_code (
consent_id bigint not null,
medical_section bigint
) ENGINE=InnoDB
;
create table consent_do_not_share_clinical_document_type_code (
consent_id bigint not null,
clinical_document_type_code bigint
) ENGINE=InnoDB
;
create table consent_do_not_share_sensitivity_policy_code (
consent_id bigint not null,
value_set_category bigint
) ENGINE=InnoDB
;
create table consent_individual_provider_disclosure_is_made_to (
consent_id bigint not null,
individual_provider bigint
) ENGINE=InnoDB
;
create table consent_individual_provider_permitted_to_disclose (
consent_id bigint not null,
individual_provider bigint
) ENGINE=InnoDB
;
create table consent_organizational_provider_disclosure_is_made_to (
consent_id bigint not null,
organizational_provider bigint
) ENGINE=InnoDB
;
create table consent_organizational_provider_permitted_to_disclose (
consent_id bigint not null,
organizational_provider bigint
) ENGINE=InnoDB
;
create table consent_share_for_purpose_of_use_code (
consent_id bigint not null,
purpose_of_use_code bigint
) ENGINE=InnoDB
;
create table country_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table education_material (
id bigint not null auto_increment,
content varchar(250) not null,
content_type varchar(255) not null,
description varchar(500),
document_size bigint not null,
document_url varchar(250),
filename varchar(255) not null,
name varchar(30) not null,
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table email_token (
id bigint not null auto_increment,
expire_in_hours integer not null,
is_token_used boolean,
patient_id bigint not null,
request_date_time datetime not null,
token varchar(100) not null,
token_type integer not null,
username varchar(30),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table ethnic_group_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table facility_type_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table individual_provider (
id bigint not null auto_increment,
entity_type integer,
enumeration_date varchar(30) not null,
first_line_mailing_address varchar(255) not null,
first_line_practice_location_address varchar(255) not null,
last_update_date varchar(30) not null,
mailing_address_city_name varchar(40) not null,
mailing_address_country_code varchar(30) not null,
mailing_address_fax_number varchar(30) not null,
mailing_address_postal_code varchar(30) not null,
mailing_address_state_name varchar(30) not null,
mailing_address_telephone_number varchar(30) not null,
npi varchar(30),
practice_location_address_city_name varchar(40) not null,
practice_location_address_country_code varchar(30) not null,
practice_location_address_fax_number varchar(30) not null,
practice_location_address_postal_code varchar(30) not null,
practice_location_address_state_name varchar(30) not null,
practice_location_address_telephone_number varchar(30) not null,
provider_taxonomy_code varchar(30) not null,
provider_taxonomy_description varchar(255) not null,
second_line_mailing_address varchar(255) not null,
second_line_practice_location_address varchar(255) not null,
version integer,
credential varchar(30) not null,
first_name varchar(30) not null,
last_name varchar(35) not null,
middle_name varchar(30) not null,
name_prefix varchar(30) not null,
name_suffix varchar(30) not null,
primary key (id)
) ENGINE=InnoDB
;
create table individual_provider_audit (
id bigint not null,
rev bigint not null,
revtype tinyint,
entity_type integer,
enumeration_date varchar(30),
first_line_mailing_address varchar(255),
first_line_practice_location_address varchar(255),
last_update_date varchar(30),
mailing_address_city_name varchar(40),
mailing_address_country_code varchar(30),
mailing_address_fax_number varchar(30),
mailing_address_postal_code varchar(30),
mailing_address_state_name varchar(30),
mailing_address_telephone_number varchar(30),
npi varchar(30),
practice_location_address_city_name varchar(40),
practice_location_address_country_code varchar(30),
practice_location_address_fax_number varchar(30),
practice_location_address_postal_code varchar(30),
practice_location_address_state_name varchar(30),
practice_location_address_telephone_number varchar(30),
provider_taxonomy_code varchar(30),
provider_taxonomy_description varchar(255),
second_line_mailing_address varchar(255),
second_line_practice_location_address varchar(255),
credential varchar(30),
first_name varchar(30),
last_name varchar(35),
middle_name varchar(30),
name_prefix varchar(30),
name_suffix varchar(30),
primary key (id, rev)
) ENGINE=InnoDB
;
create table language_ability_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table language_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table language_proficiency_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table legal_representative_type_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table marital_status_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table medical_section (
medical_sec_id bigint not null auto_increment,
creation_time datetime,
modification_time datetime,
user_name varchar(255) not null,
code varchar(255) not null unique,
name varchar(255) not null,
description varchar(5000),
primary key (medical_sec_id)
) ENGINE=InnoDB
;
create table medical_section_aud (
medical_sec_id bigint not null,
rev bigint not null,
revtype tinyint,
description varchar(5000),
primary key (medical_sec_id, rev)
) ENGINE=InnoDB
;
create table medication (
id bigint not null auto_increment,
measured_value double precision,
free_text_sig varchar(250) not null,
medication_end_date datetime,
code varchar(255),
code_system varchar(255),
code_system_name varchar(255),
display_name varchar(255),
original_text varchar(255),
medication_start_date datetime not null,
version integer,
body_site_code bigint,
unit_of_measure_code bigint,
medication_status_code bigint,
patient bigint,
product_form_code bigint,
route_code bigint,
primary key (id)
) ENGINE=InnoDB
;
create table medication_status_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table modified_entity_type_entity (
id bigint not null auto_increment,
entity_class_name varchar(255),
revision_type tinyint,
revision bigint,
primary key (id)
) ENGINE=InnoDB
;
create table obligation_policy_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table organizational_provider (
id bigint not null auto_increment,
entity_type integer,
enumeration_date varchar(30) not null,
first_line_mailing_address varchar(255) not null,
first_line_practice_location_address varchar(255) not null,
last_update_date varchar(30) not null,
mailing_address_city_name varchar(40) not null,
mailing_address_country_code varchar(30) not null,
mailing_address_fax_number varchar(30) not null,
mailing_address_postal_code varchar(30) not null,
mailing_address_state_name varchar(30) not null,
mailing_address_telephone_number varchar(30) not null,
npi varchar(30),
practice_location_address_city_name varchar(40) not null,
practice_location_address_country_code varchar(30) not null,
practice_location_address_fax_number varchar(30) not null,
practice_location_address_postal_code varchar(30) not null,
practice_location_address_state_name varchar(30) not null,
practice_location_address_telephone_number varchar(30) not null,
provider_taxonomy_code varchar(30) not null,
provider_taxonomy_description varchar(255) not null,
second_line_mailing_address varchar(255) not null,
second_line_practice_location_address varchar(255) not null,
version integer,
authorized_official_first_name varchar(30) not null,
authorized_official_last_name varchar(35) not null,
authorized_official_name_prefix varchar(200) not null,
authorized_official_telephone_number varchar(30) not null,
authorized_official_title varchar(35) not null,
org_name varchar(255) not null,
other_org_name varchar(70),
primary key (id)
) ENGINE=InnoDB
;
create table organizational_provider_audit (
id bigint not null,
rev bigint not null,
revtype tinyint,
entity_type integer,
enumeration_date varchar(30),
first_line_mailing_address varchar(255),
first_line_practice_location_address varchar(255),
last_update_date varchar(30),
mailing_address_city_name varchar(40),
mailing_address_country_code varchar(30),
mailing_address_fax_number varchar(30),
mailing_address_postal_code varchar(30),
mailing_address_state_name varchar(30),
mailing_address_telephone_number varchar(30),
npi varchar(30),
practice_location_address_city_name varchar(40),
practice_location_address_country_code varchar(30),
practice_location_address_fax_number varchar(30),
practice_location_address_postal_code varchar(30),
practice_location_address_state_name varchar(30),
practice_location_address_telephone_number varchar(30),
provider_taxonomy_code varchar(30),
provider_taxonomy_description varchar(255),
second_line_mailing_address varchar(255),
second_line_practice_location_address varchar(255),
authorized_official_first_name varchar(30),
authorized_official_last_name varchar(35),
authorized_official_name_prefix varchar(200),
authorized_official_telephone_number varchar(30),
authorized_official_title varchar(35),
org_name varchar(255),
other_org_name varchar(70),
primary key (id, rev)
) ENGINE=InnoDB
;
create table patient (
id bigint not null auto_increment,
city varchar(255),
postal_code varchar(255),
street_address_line varchar(255),
birth_day datetime,
email varchar(255),
enterprise_identifier varchar(255),
first_name varchar(30) not null,
last_name varchar(30) not null,
medical_record_number varchar(30),
prefix varchar(30),
social_security_number varchar(255),
telephone varchar(255),
username varchar(30),
verification_code varchar(255),
version integer,
address_use_code bigint,
country_code bigint,
state_code bigint,
administrative_gender_code bigint,
ethnic_group_code bigint,
language_code bigint,
marital_status_code bigint,
race_code bigint,
religious_affiliation_code bigint,
telecom_use_code bigint,
primary key (id)
) ENGINE=InnoDB
;
create table patient_audit (
id bigint not null,
rev bigint not null,
revtype tinyint,
city varchar(255),
postal_code varchar(255),
street_address_line varchar(255),
birth_day datetime,
email varchar(255),
enterprise_identifier varchar(255),
first_name varchar(30),
last_name varchar(30),
medical_record_number varchar(30),
prefix varchar(30),
social_security_number varchar(255),
telephone varchar(255),
username varchar(30),
verification_code varchar(255),
address_use_code bigint,
country_code bigint,
state_code bigint,
administrative_gender_code bigint,
ethnic_group_code bigint,
language_code bigint,
marital_status_code bigint,
race_code bigint,
religious_affiliation_code bigint,
telecom_use_code bigint,
primary key (id, rev)
) ENGINE=InnoDB
;
create table patient_individual_providers (
patient bigint not null,
individual_providers bigint not null,
primary key (patient, individual_providers),
unique (individual_providers)
) ENGINE=InnoDB
;
create table patient_individual_providers_aud (
rev bigint not null,
patient bigint not null,
individual_providers bigint not null,
revtype tinyint,
primary key (rev, patient, individual_providers)
) ENGINE=InnoDB
;
create table patient_legal_representative_association (
id bigint not null auto_increment,
relationship_end_date datetime,
relationship_start_date datetime,
version integer,
legal_representative_type_code bigint,
legal_representative bigint,
patient bigint,
primary key (id)
) ENGINE=InnoDB
;
create table patient_legal_representative_association_aud (
id bigint not null,
rev bigint not null,
revtype tinyint,
relationship_end_date datetime,
relationship_start_date datetime,
legal_representative_type_code bigint,
legal_representative bigint,
patient bigint,
primary key (id, rev)
) ENGINE=InnoDB
;
create table patient_organizational_providers (
patient bigint not null,
organizational_providers bigint not null,
primary key (patient, organizational_providers),
unique (organizational_providers)
) ENGINE=InnoDB
;
create table patient_organizational_providers_aud (
rev bigint not null,
patient bigint not null,
organizational_providers bigint not null,
revtype tinyint,
primary key (rev, patient, organizational_providers)
) ENGINE=InnoDB
;
create table patient_patient_legal_representative_associations (
patient bigint not null,
patient_legal_representative_associations bigint not null,
primary key (patient, patient_legal_representative_associations),
unique (patient_legal_representative_associations)
) ENGINE=InnoDB
;
create table patient_patient_legal_representative_associations_aud (
rev bigint not null,
patient bigint not null,
patient_legal_representative_associations bigint not null,
revtype tinyint,
primary key (rev, patient, patient_legal_representative_associations)
) ENGINE=InnoDB
;
create table privacy_law_policy_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table problem (
id bigint not null auto_increment,
age_at_on_set integer,
code varchar(255),
code_system varchar(255),
code_system_name varchar(255),
display_name varchar(255),
original_text varchar(255),
problem_end_date datetime,
problem_start_date datetime not null,
version integer,
patient bigint,
problem_status_code bigint,
primary key (id)
) ENGINE=InnoDB
;
create table problem_status_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table procedure_observation (
id bigint not null auto_increment,
procedure_end_date datetime,
procedure_start_date datetime not null,
code varchar(255),
code_system varchar(255),
code_system_name varchar(255),
display_name varchar(255),
original_text varchar(255),
version integer,
patient bigint,
procedure_status_code bigint,
target_site_code bigint,
primary key (id)
) ENGINE=InnoDB
;
create table procedure_observation_procedure_performer (
procedure_observation bigint not null,
procedure_performer bigint not null,
primary key (procedure_observation, procedure_performer)
) ENGINE=InnoDB
;
create table procedure_status_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table product_form_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table provider_taxononomy_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table purpose_of_use_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table race_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table refrain_policy_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table religious_affiliation_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table result_interpretation_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table result_observation (
id bigint not null auto_increment,
result_date_time datetime not null,
result_reference_range varchar(255),
code varchar(255),
code_system varchar(255),
code_system_name varchar(255),
display_name varchar(255),
original_text varchar(255),
measured_value double precision,
version integer,
result_status_code bigint,
patient bigint,
result_interpretation_code bigint,
unit_of_measure_code bigint,
primary key (id)
) ENGINE=InnoDB
;
create table result_status_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table revinfo (
rev bigint not null auto_increment,
revtstmp bigint,
username varchar(255),
primary key (rev)
) ENGINE=InnoDB
;
create table route_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table sensitivity_policy_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table signedpdfconsent (
id bigint not null auto_increment,
document_created_by varchar(255),
document_created_version_key varchar(255),
document_creation_date_time datetime,
document_esigned_by varchar(255),
document_esigned_date_time datetime,
document_esigned_version_key varchar(255),
document_id varchar(255) not null,
document_locale varchar(255),
document_message_by_sender varchar(255) not null,
document_name_by_sender varchar(255) not null,
document_sent_out_for_signature_date_time datetime,
document_signed_status varchar(255) not null,
document_viewed_by varchar(255),
document_viewed_date_time datetime,
documentlast_version_key varchar(255),
signer_email varchar(255) not null,
version integer,
signed_pdf_consent_content longblob,
primary key (id)
) ENGINE=InnoDB
;
create table signedpdfconsent_aud (
id bigint not null,
rev bigint not null,
revtype tinyint,
signed_pdf_consent_content longblob,
primary key (id, rev)
) ENGINE=InnoDB
;
create table signedpdfconsent_revocation (
id bigint not null auto_increment,
document_created_by varchar(255),
document_created_version_key varchar(255),
document_creation_date_time datetime,
document_esigned_by varchar(255),
document_esigned_date_time datetime,
document_esigned_version_key varchar(255),
document_id varchar(255) not null,
document_locale varchar(255),
document_message_by_sender varchar(255) not null,
document_name_by_sender varchar(255) not null,
document_sent_out_for_signature_date_time datetime,
document_signed_status varchar(255) not null,
document_viewed_by varchar(255),
document_viewed_date_time datetime,
documentlast_version_key varchar(255),
signer_email varchar(255) not null,
version integer,
signed_pdf_consent_revocation_content longblob,
primary key (id)
) ENGINE=InnoDB
;
create table signedpdfconsent_revocation_aud (
id bigint not null,
rev bigint not null,
revtype tinyint,
signed_pdf_consent_revocation_content longblob,
primary key (id, rev)
) ENGINE=InnoDB
;
create table social_history (
id bigint not null auto_increment,
social_history_end_date datetime,
social_history_free_text varchar(255),
social_history_start_date datetime not null,
version integer,
patient bigint,
social_history_status_code bigint,
social_history_type_code bigint,
primary key (id)
) ENGINE=InnoDB
;
create table social_history_status_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table social_history_type_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table staff (
id bigint not null auto_increment,
email varchar(255),
employeeid varchar(255),
first_name varchar(30) not null,
last_name varchar(30) not null,
username varchar(30),
version integer,
administrative_gender_code bigint,
primary key (id)
) ENGINE=InnoDB
;
create table staff_aud (
id bigint not null,
rev bigint not null,
revtype tinyint,
email varchar(255),
employeeid varchar(255),
first_name varchar(30),
last_name varchar(30),
username varchar(30),
administrative_gender_code bigint,
primary key (id, rev)
) ENGINE=InnoDB
;
create table state_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table system_notification (
id bigint not null auto_increment,
consent_id bigint not null,
dismissed boolean not null,
notification_message varchar(255),
notification_type varchar(255),
patient_id bigint not null,
send_date datetime,
primary key (id)
) ENGINE=InnoDB
;
create table target_site_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table telecom_use_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table unit_of_measure_code (
id bigint not null auto_increment,
code varchar(250) not null,
code_system varchar(250),
code_system_name varchar(250) not null,
display_name varchar(250) not null,
original_text varchar(250),
version integer,
primary key (id)
) ENGINE=InnoDB
;
create table value_set (
valueset_id bigint not null auto_increment,
creation_time datetime,
modification_time datetime,
user_name varchar(255) not null,
code varchar(255) not null unique,
name varchar(255) not null,
description varchar(255),
fk_valueset_cat_id bigint,
primary key (valueset_id)
) ENGINE=InnoDB
;
create table value_set_aud (
valueset_id bigint not null,
rev bigint not null,
revtype tinyint,
description varchar(255),
fk_valueset_cat_id bigint,
primary key (valueset_id, rev)
) ENGINE=InnoDB
;
create table value_set_category (
valueset_cat_id bigint not null auto_increment,
creation_time datetime,
modification_time datetime,
user_name varchar(255) not null,
code varchar(255) not null unique,
name varchar(255) not null,
description varchar(5000),
primary key (valueset_cat_id)
) ENGINE=InnoDB
;
create table value_set_category_aud (
valueset_cat_id bigint not null,
rev bigint not null,
revtype tinyint,
description varchar(5000),
primary key (valueset_cat_id, rev)
) ENGINE=InnoDB
;
alter table allergy
add index FKC9A96380B2036D5 (patient),
add constraint FKC9A96380B2036D5
foreign key (patient)
references patient (id)
;
alter table allergy
add index FKC9A963803FD715DE (adverse_event_type_code),
add constraint FKC9A963803FD715DE
foreign key (adverse_event_type_code)
references adverse_event_type_code (id)
;
alter table allergy
add index FKC9A96380563ABE2B (allergy_severity_code),
add constraint FKC9A96380563ABE2B
foreign key (allergy_severity_code)
references allergy_severity_code (id)
;
alter table allergy
add index FKC9A96380DED2E7EF (allergy_reaction),
add constraint FKC9A96380DED2E7EF
foreign key (allergy_reaction)
references allergy_reaction_code (id)
;
alter table allergy
add index FKC9A963806CD3D14B (allergy_status_code),
add constraint FKC9A963806CD3D14B
foreign key (allergy_status_code)
references allergy_status_code (id)
;
alter table clinical_document
add index FKC35BC0C7B2036D5 (patient),
add constraint FKC35BC0C7B2036D5
foreign key (patient)
references patient (id)
;
alter table clinical_document
add index FKC35BC0C7C03F481E (clinical_document_type_code),
add constraint FKC35BC0C7C03F481E
foreign key (clinical_document_type_code)
references clinical_document_type_code (id)
;
alter table clinical_document_audit
add index FK62DCE63CDA971CE (rev),
add constraint FK62DCE63CDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table code_system_aud
add index FK4A7E0E32CDA971CE (rev),
add constraint FK4A7E0E32CDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table code_system_version
add index FKE0181F5A7AE9A440 (fk_code_system_id),
add constraint FKE0181F5A7AE9A440
foreign key (fk_code_system_id)
references code_system (code_system_id)
;
alter table code_system_version_aud
add index FKCE118C4BCDA971CE (rev),
add constraint FKCE118C4BCDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table concept_code
add index FKC2CE2D64243834C5 (fk_code_system_version_id),
add constraint FKC2CE2D64243834C5
foreign key (fk_code_system_version_id)
references code_system_version (code_system_version_id)
;
alter table concept_code_aud
add index FK2B9D8555CDA971CE (rev),
add constraint FK2B9D8555CDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table conceptcode_valueset
add index FKDE3A75FBF298D340 (fk_concept_code_id),
add constraint FKDE3A75FBF298D340
foreign key (fk_concept_code_id)
references concept_code (concept_code_id)
;
alter table conceptcode_valueset
add index FKDE3A75FB19232D71 (fk_valueset_id),
add constraint FKDE3A75FB19232D71
foreign key (fk_valueset_id)
references value_set (valueset_id)
;
alter table consent
add index FK38B6C01AB2036D5 (patient),
add constraint FK38B6C01AB2036D5
foreign key (patient)
references patient (id)
;
alter table consent
add index FK38B6C01AD5FBA41D (signed_pdf_consent_revoke),
add constraint FK38B6C01AD5FBA41D
foreign key (signed_pdf_consent_revoke)
references signedpdfconsent_revocation (id)
;
alter table consent
add index FK38B6C01A17D0C7B3 (legal_representative),
add constraint FK38B6C01A17D0C7B3
foreign key (legal_representative)
references patient (id)
;
alter table consent
add index FK38B6C01A5FD7634E (signed_pdf_consent),
add constraint FK38B6C01A5FD7634E
foreign key (signed_pdf_consent)
references signedpdfconsent (id)
;
alter table consent_aud
add index FK80F1CD0BCDA971CE (rev),
add constraint FK80F1CD0BCDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table consent_do_not_share_clinical_concept_codes
add index FK7E12513EF48C72D6 (do_not_share_clinical_concept_codes),
add constraint FK7E12513EF48C72D6
foreign key (do_not_share_clinical_concept_codes)
references clinical_concept_code (id)
;
alter table consent_do_not_share_clinical_concept_codes
add index FK7E12513EFCE8945A (consent_id),
add constraint FK7E12513EFCE8945A
foreign key (consent_id)
references consent (id)
;
alter table consent_do_not_share_clinical_document_section_type_code
add index FKFA0F9785E0A6E37C (medical_section),
add constraint FKFA0F9785E0A6E37C
foreign key (medical_section)
references medical_section (medical_sec_id)
;
alter table consent_do_not_share_clinical_document_section_type_code
add index FKFA0F9785FCE8945A (consent_id),
add constraint FKFA0F9785FCE8945A
foreign key (consent_id)
references consent (id)
;
alter table consent_do_not_share_clinical_document_type_code
add index FK2938955FC03F481E (clinical_document_type_code),
add constraint FK2938955FC03F481E
foreign key (clinical_document_type_code)
references clinical_document_type_code (id)
;
alter table consent_do_not_share_clinical_document_type_code
add index FK2938955FFCE8945A (consent_id),
add constraint FK2938955FFCE8945A
foreign key (consent_id)
references consent (id)
;
alter table consent_do_not_share_sensitivity_policy_code
add index FKC819CBFA1765E89 (value_set_category),
add constraint FKC819CBFA1765E89
foreign key (value_set_category)
references value_set_category (valueset_cat_id)
;
alter table consent_do_not_share_sensitivity_policy_code
add index FKC819CBFFCE8945A (consent_id),
add constraint FKC819CBFFCE8945A
foreign key (consent_id)
references consent (id)
;
alter table consent_individual_provider_disclosure_is_made_to
add index FK769946155967D092 (individual_provider),
add constraint FK769946155967D092
foreign key (individual_provider)
references individual_provider (id)
;
alter table consent_individual_provider_disclosure_is_made_to
add index FK76994615FCE8945A (consent_id),
add constraint FK76994615FCE8945A
foreign key (consent_id)
references consent (id)
;
alter table consent_individual_provider_permitted_to_disclose
add index FK7568587A5967D092 (individual_provider),
add constraint FK7568587A5967D092
foreign key (individual_provider)
references individual_provider (id)
;
alter table consent_individual_provider_permitted_to_disclose
add index FK7568587AFCE8945A (consent_id),
add constraint FK7568587AFCE8945A
foreign key (consent_id)
references consent (id)
;
alter table consent_organizational_provider_disclosure_is_made_to
add index FKF2A069F01D9980B2 (organizational_provider),
add constraint FKF2A069F01D9980B2
foreign key (organizational_provider)
references organizational_provider (id)
;
alter table consent_organizational_provider_disclosure_is_made_to
add index FKF2A069F0FCE8945A (consent_id),
add constraint FKF2A069F0FCE8945A
foreign key (consent_id)
references consent (id)
;
alter table consent_organizational_provider_permitted_to_disclose
add index FKF16F7C551D9980B2 (organizational_provider),
add constraint FKF16F7C551D9980B2
foreign key (organizational_provider)
references organizational_provider (id)
;
alter table consent_organizational_provider_permitted_to_disclose
add index FKF16F7C55FCE8945A (consent_id),
add constraint FKF16F7C55FCE8945A
foreign key (consent_id)
references consent (id)
;
alter table consent_share_for_purpose_of_use_code
add index FK41F36B31BC15E53A (purpose_of_use_code),
add constraint FK41F36B31BC15E53A
foreign key (purpose_of_use_code)
references purpose_of_use_code (id)
;
alter table consent_share_for_purpose_of_use_code
add index FK41F36B31FCE8945A (consent_id),
add constraint FK41F36B31FCE8945A
foreign key (consent_id)
references consent (id)
;
alter table individual_provider_audit
add index FK5D83273CDA971CE (rev),
add constraint FK5D83273CDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table medical_section_aud
add index FK17A755A8CDA971CE (rev),
add constraint FK17A755A8CDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table medication
add index FK7725CACF5AC0E7AD (body_site_code),
add constraint FK7725CACF5AC0E7AD
foreign key (body_site_code)
references body_site_code (id)
;
alter table medication
add index FK7725CACFB2036D5 (patient),
add constraint FK7725CACFB2036D5
foreign key (patient)
references patient (id)
;
alter table medication
add index FK7725CACF71897B67 (medication_status_code),
add constraint FK7725CACF71897B67
foreign key (medication_status_code)
references medication_status_code (id)
;
alter table medication
add index FK7725CACF9758ABCA (route_code),
add constraint FK7725CACF9758ABCA
foreign key (route_code)
references route_code (id)
;
alter table medication
add index FK7725CACF7196209C (unit_of_measure_code),
add constraint FK7725CACF7196209C
foreign key (unit_of_measure_code)
references unit_of_measure_code (id)
;
alter table medication
add index FK7725CACFC5136529 (product_form_code),
add constraint FK7725CACFC5136529
foreign key (product_form_code)
references product_form_code (id)
;
alter table modified_entity_type_entity
add index FK9D17762BE1C7106 (revision),
add constraint FK9D17762BE1C7106
foreign key (revision)
references revinfo (rev)
;
alter table organizational_provider_audit
add index FK21A9F1CECDA971CE (rev),
add constraint FK21A9F1CECDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table patient
add index FKD0D3EB05185F3145 (administrative_gender_code),
add constraint FKD0D3EB05185F3145
foreign key (administrative_gender_code)
references administrative_gender_code (id)
;
alter table patient
add index FKD0D3EB05A04C552A (country_code),
add constraint FKD0D3EB05A04C552A
foreign key (country_code)
references country_code (id)
;
alter table patient
add index FKD0D3EB05FBB203DF (address_use_code),
add constraint FKD0D3EB05FBB203DF
foreign key (address_use_code)
references address_use_code (id)
;
alter table patient
add index FKD0D3EB05BE1326B1 (religious_affiliation_code),
add constraint FKD0D3EB05BE1326B1
foreign key (religious_affiliation_code)
references religious_affiliation_code (id)
;
alter table patient
add index FKD0D3EB05CD0E74CA (state_code),
add constraint FKD0D3EB05CD0E74CA
foreign key (state_code)
references state_code (id)
;
alter table patient
add index FKD0D3EB05C6E57D2B (ethnic_group_code),
add constraint FKD0D3EB05C6E57D2B
foreign key (ethnic_group_code)
references ethnic_group_code (id)
;
alter table patient
add index FKD0D3EB052D37BD33 (marital_status_code),
add constraint FKD0D3EB052D37BD33
foreign key (marital_status_code)
references marital_status_code (id)
;
alter table patient
add index FKD0D3EB0590C96B08 (race_code),
add constraint FKD0D3EB0590C96B08
foreign key (race_code)
references race_code (id)
;
alter table patient
add index FKD0D3EB059FF68A99 (telecom_use_code),
add constraint FKD0D3EB059FF68A99
foreign key (telecom_use_code)
references telecom_use_code (id)
;
alter table patient
add index FKD0D3EB05CC866C68 (language_code),
add constraint FKD0D3EB05CC866C68
foreign key (language_code)
references language_code (id)
;
alter table patient_audit
add index FKAF20D221CDA971CE (rev),
add constraint FKAF20D221CDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table patient_individual_providers
add index FKA2245F76B2036D5 (patient),
add constraint FKA2245F76B2036D5
foreign key (patient)
references patient (id)
;
alter table patient_individual_providers
add index FKA2245F76F690A37 (individual_providers),
add constraint FKA2245F76F690A37
foreign key (individual_providers)
references individual_provider (id)
;
alter table patient_individual_providers_aud
add index FK31885E67CDA971CE (rev),
add constraint FK31885E67CDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table patient_legal_representative_association
add index FKE2CB081FB2036D5 (patient),
add constraint FKE2CB081FB2036D5
foreign key (patient)
references patient (id)
;
alter table patient_legal_representative_association
add index FKE2CB081F17D0C7B3 (legal_representative),
add constraint FKE2CB081F17D0C7B3
foreign key (legal_representative)
references patient (id)
;
alter table patient_legal_representative_association
add index FKE2CB081F19521D24 (legal_representative_type_code),
add constraint FKE2CB081F19521D24
foreign key (legal_representative_type_code)
references legal_representative_type_code (id)
;
alter table patient_legal_representative_association_aud
add index FKF7E88A90CDA971CE (rev),
add constraint FKF7E88A90CDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table patient_organizational_providers
add index FK5BD2263BB2036D5 (patient),
add constraint FK5BD2263BB2036D5
foreign key (patient)
references patient (id)
;
alter table patient_organizational_providers
add index FK5BD2263B6806E81 (organizational_providers),
add constraint FK5BD2263B6806E81
foreign key (organizational_providers)
references organizational_provider (id)
;
alter table patient_organizational_providers_aud
add index FK3DBB3AACCDA971CE (rev),
add constraint FK3DBB3AACCDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table patient_patient_legal_representative_associations
add index FKD92A077A31918E0F (patient_legal_representative_associations),
add constraint FKD92A077A31918E0F
foreign key (patient_legal_representative_associations)
references patient_legal_representative_association (id)
;
alter table patient_patient_legal_representative_associations
add index FKD92A077AB2036D5 (patient),
add constraint FKD92A077AB2036D5
foreign key (patient)
references patient (id)
;
alter table patient_patient_legal_representative_associations_aud
add index FK9DB2646BCDA971CE (rev),
add constraint FK9DB2646BCDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table problem
add index FKED8CC29FB2036D5 (patient),
add constraint FKED8CC29FB2036D5
foreign key (patient)
references patient (id)
;
alter table problem
add index FKED8CC29F1FA8BE49 (problem_status_code),
add constraint FKED8CC29F1FA8BE49
foreign key (problem_status_code)
references problem_status_code (id)
;
alter table procedure_observation
add index FK6C3B14C0B2036D5 (patient),
add constraint FK6C3B14C0B2036D5
foreign key (patient)
references patient (id)
;
alter table procedure_observation
add index FK6C3B14C0EAEC320B (target_site_code),
add constraint FK6C3B14C0EAEC320B
foreign key (target_site_code)
references target_site_code (id)
;
alter table procedure_observation
add index FK6C3B14C0A1E2EF71 (procedure_status_code),
add constraint FK6C3B14C0A1E2EF71
foreign key (procedure_status_code)
references procedure_status_code (id)
;
alter table procedure_observation_procedure_performer
add index FKB39BB363D5ED511D (procedure_performer),
add constraint FKB39BB363D5ED511D
foreign key (procedure_performer)
references individual_provider (id)
;
alter table procedure_observation_procedure_performer
add index FKB39BB363561D6A1E (procedure_observation),
add constraint FKB39BB363561D6A1E
foreign key (procedure_observation)
references procedure_observation (id)
;
alter table result_observation
add index FKF0BB0AB2036D5 (patient),
add constraint FKF0BB0AB2036D5
foreign key (patient)
references patient (id)
;
alter table result_observation
add index FKF0BB0A6F829FC3 (result_interpretation_code),
add constraint FKF0BB0A6F829FC3
foreign key (result_interpretation_code)
references result_interpretation_code (id)
;
alter table result_observation
add index FKF0BB0AACA94703 (result_status_code),
add constraint FKF0BB0AACA94703
foreign key (result_status_code)
references result_status_code (id)
;
alter table result_observation
add index FKF0BB0A7196209C (unit_of_measure_code),
add constraint FKF0BB0A7196209C
foreign key (unit_of_measure_code)
references unit_of_measure_code (id)
;
alter table signedpdfconsent_aud
add index FKCE773EF5CDA971CE (rev),
add constraint FKCE773EF5CDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table signedpdfconsent_revocation_aud
add index FK13DA852ACDA971CE (rev),
add constraint FK13DA852ACDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table social_history
add index FKCD73E5C2B2036D5 (patient),
add constraint FKCD73E5C2B2036D5
foreign key (patient)
references patient (id)
;
alter table social_history
add index FKCD73E5C23100CBB4 (social_history_type_code),
add constraint FKCD73E5C23100CBB4
foreign key (social_history_type_code)
references social_history_type_code (id)
;
alter table social_history
add index FKCD73E5C22534E7F4 (social_history_status_code),
add constraint FKCD73E5C22534E7F4
foreign key (social_history_status_code)
references social_history_status_code (id)
;
alter table staff
add index FK68AC2E0185F3145 (administrative_gender_code),
add constraint FK68AC2E0185F3145
foreign key (administrative_gender_code)
references administrative_gender_code (id)
;
alter table staff_aud
add index FK6BDAFCD1CDA971CE (rev),
add constraint FK6BDAFCD1CDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table value_set
add index FKD2615C94ED451F98 (fk_valueset_cat_id),
add constraint FKD2615C94ED451F98
foreign key (fk_valueset_cat_id)
references value_set_category (valueset_cat_id)
;
alter table value_set_aud
add index FKD2A59C85CDA971CE (rev),
add constraint FKD2A59C85CDA971CE
foreign key (rev)
references revinfo (rev)
;
alter table value_set_category_aud
add index FKB7F8D5BACDA971CE (rev),
add constraint FKB7F8D5BACDA971CE
foreign key (rev)
references revinfo (rev)
;
|
<filename>data/lacarreta.sql
-- phpMyAdmin SQL Dump
-- version 4.3.11
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 06-12-2017 a las 18:48:44
-- Versión del servidor: 5.6.24
-- Versión de PHP: 5.6.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Base de datos: `lacarreta`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `producto`
--
CREATE TABLE IF NOT EXISTS `producto` (
`ID` int(11) NOT NULL,
`Nombre` varchar(60) NOT NULL,
`Descripcion` text NOT NULL,
`Cantidad` int(11) NOT NULL,
`Valor` int(11) NOT NULL,
`Tipo_ID` int(11) NOT NULL,
`destacado` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
--
-- Volcado de datos para la tabla `producto`
--
INSERT INTO `producto` (`ID`, `Nombre`, `Descripcion`, `Cantidad`, `Valor`, `Tipo_ID`, `destacado`) VALUES
(4, 'Logo', 'Probando el logo', 1, 1000, 1, 0),
(5, 'Cupcake', 'Que ricos', 50, 500, 1, 0);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tipo`
--
CREATE TABLE IF NOT EXISTS `tipo` (
`ID` int(11) NOT NULL,
`Nombre` varchar(45) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
--
-- Volcado de datos para la tabla `tipo`
--
INSERT INTO `tipo` (`ID`, `Nombre`) VALUES
(1, 'PRODUCTOS'),
(2, 'SERVICIOS');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `usuario`
--
CREATE TABLE IF NOT EXISTS `usuario` (
`id` int(11) NOT NULL,
`username` varchar(100) NOT NULL,
`password` varchar(60) NOT NULL,
`authkey` char(50) NOT NULL,
`access_token` varchar(100) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
--
-- Volcado de datos para la tabla `usuario`
--
INSERT INTO `usuario` (`id`, `username`, `password`, `authkey`, `access_token`) VALUES
(3, 'administrador', <PASSWORD>', '001', NULL);
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `producto`
--
ALTER TABLE `producto`
ADD PRIMARY KEY (`ID`), ADD UNIQUE KEY `Nombre_UNIQUE` (`Nombre`), ADD KEY `fk_Producto_Tipo_idx` (`Tipo_ID`);
--
-- Indices de la tabla `tipo`
--
ALTER TABLE `tipo`
ADD PRIMARY KEY (`ID`), ADD UNIQUE KEY `Nombre_UNIQUE` (`Nombre`);
--
-- Indices de la tabla `usuario`
--
ALTER TABLE `usuario`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `producto`
--
ALTER TABLE `producto`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT de la tabla `tipo`
--
ALTER TABLE `tipo`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT de la tabla `usuario`
--
ALTER TABLE `usuario`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- Restricciones para tablas volcadas
--
--
-- Filtros para la tabla `producto`
--
ALTER TABLE `producto`
ADD CONSTRAINT `fk_Producto_Tipo` FOREIGN KEY (`Tipo_ID`) REFERENCES `tipo` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
CREATE TABLE keyvalTable (
k VARCHAR(240) NOT NULL,
v VARCHAR(240),
PRIMARY KEY(k)
);
INSERT INTO schemaVersionTable (schemaVersion, scriptName) VALUES
(40, '00040_create_keyval_table.sql');
|
<reponame>2ndQuadrant/array_textsort
SELECT array_distinct('{"four","six","five","four","eleven"}');
SELECT array_distinct('{"four","six",NULL,"four","eleven"}');
|
/*
SQLyog Enterprise - MySQL GUI v6.5
MySQL - 5.0.45-community-nt : Database - bisloandatabase
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
create database if not exists `bisloandatabase`;
USE `bisloandatabase`;
/*Table structure for table `account` */
DROP TABLE IF EXISTS `account`;
CREATE TABLE `account` (
`AccountId` int(6) NOT NULL auto_increment,
`FirstName` varchar(50) default NULL,
`LastName` varchar(50) default NULL,
`Email` varchar(200) default NULL,
`Password` varchar(200) default NULL,
`PhotoPath` varchar(500) default NULL,
`AccountType` varchar(50) NOT NULL default 'User' COMMENT 'Admin, Employee,Student, Depositor ',
`IsActive` tinyint(1) default NULL,
`RegisterDate` datetime default NULL,
`WithdrawMethod` varchar(50) default NULL COMMENT 'Bank, Gryp, Other',
`WithdrawMethodName` varchar(500) default NULL COMMENT 'Bank Name, Gryp Note, Other Note',
`PhoneNumber` varchar(50) default NULL,
`UserName` varchar(50) NOT NULL,
`AllowDelete` tinyint(1) NOT NULL default '1',
PRIMARY KEY (`AccountId`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
/*Data for the table `account` */
insert into `account`(`AccountId`,`FirstName`,`LastName`,`Email`,`Password`,`PhotoPath`,`AccountType`,`IsActive`,`RegisterDate`,`WithdrawMethod`,`WithdrawMethodName`,`PhoneNumber`,`UserName`,`AllowDelete`) values (1,'admin','admin',NULL,'<PASSWORD>fa00',NULL,'User',1,NULL,NULL,NULL,NULL,'admin',0),(4,'Bora','Lim','<EMAIL>','<PASSWORD>','BoraLim.png','User',0,NULL,NULL,NULL,NULL,'BoraLim',1),(5,'St','St','<EMAIL>','f1329987e2b826e662dec43b32b12ca9','St.ico','Student',0,NULL,NULL,NULL,NULL,'St',1),(6,'dsf','dsf','<EMAIL>','<PASSWORD>','sdf.ico','Depositor',0,NULL,NULL,NULL,NULL,'sdf',1);
/*Table structure for table `category` */
DROP TABLE IF EXISTS `category`;
CREATE TABLE `category` (
`CategoryId` int(11) NOT NULL auto_increment,
`CategoryName` varchar(200) default NULL,
`CategoryType` varchar(50) NOT NULL COMMENT 'Activity/Event, News, Lesson, ',
PRIMARY KEY (`CategoryId`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*Data for the table `category` */
insert into `category`(`CategoryId`,`CategoryName`,`CategoryType`) values (1,'Page','Page');
/*Table structure for table `deposit` */
DROP TABLE IF EXISTS `deposit`;
CREATE TABLE `deposit` (
`DepositId` int(11) NOT NULL auto_increment,
`DepositNumber` varchar(5) NOT NULL COMMENT '00001',
`DepositAmount` double default NULL,
`InterestRate` double default '12',
`DepositDate` datetime default NULL,
`Duration` double default NULL,
`DurationMode` varchar(1) NOT NULL default 'M' COMMENT 'M=Month, Y=Year',
`Description` text,
`AccountId` int(11) NOT NULL,
PRIMARY KEY (`DepositId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `deposit` */
/*Table structure for table `media` */
DROP TABLE IF EXISTS `media`;
CREATE TABLE `media` (
`MediaId` int(11) NOT NULL auto_increment,
`FilePath` varchar(1500) NOT NULL,
`MediaType` varchar(50) NOT NULL COMMENT 'Video, MP3, Image',
`FileName` varchar(500) NOT NULL default '',
`Url` varchar(1500) NOT NULL default '',
`Title` varchar(500) NOT NULL default '',
PRIMARY KEY (`MediaId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `media` */
/*Table structure for table `post` */
DROP TABLE IF EXISTS `post`;
CREATE TABLE `post` (
`PostId` int(11) NOT NULL auto_increment,
`PostTitle` varchar(500) default NULL,
`Post` text,
`Author` varchar(200) default NULL,
`PostType` varchar(50) default NULL COMMENT 'Page, Lesson, News, Event, Media',
`CreatedBy` int(11) default NULL,
`CategoryId` int(11) default NULL,
PRIMARY KEY (`PostId`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*Data for the table `post` */
insert into `post`(`PostId`,`PostTitle`,`Post`,`Author`,`PostType`,`CreatedBy`,`CategoryId`) values (1,'About Us','Page description go here',NULL,'Page',1,1),(2,'Contact Us','Page description go here',NULL,'Page',1,1);
/*Table structure for table `post_comment` */
DROP TABLE IF EXISTS `post_comment`;
CREATE TABLE `post_comment` (
`CommentId` int(11) NOT NULL auto_increment,
`AccountId` int(11) default NULL,
`Comment` text,
`PostedDate` datetime default NULL,
`PostId` int(11) default NULL COMMENT 'PageId, LessonId, EventId, NewsId',
PRIMARY KEY (`CommentId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `post_comment` */
/*Table structure for table `post_media` */
DROP TABLE IF EXISTS `post_media`;
CREATE TABLE `post_media` (
`PostMediaId` int(11) NOT NULL auto_increment,
`PostId` int(11) NOT NULL,
`MediaId` int(11) NOT NULL,
PRIMARY KEY (`PostMediaId`),
KEY `FK_postmedia_post` (`PostId`),
KEY `FK_postmedia_media` (`MediaId`),
CONSTRAINT `FK_postmedia_media` FOREIGN KEY (`MediaId`) REFERENCES `media` (`MediaId`) ON DELETE CASCADE,
CONSTRAINT `FK_postmedia_post` FOREIGN KEY (`PostId`) REFERENCES `post` (`PostId`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `post_media` */
/*Table structure for table `user_sessions` */
DROP TABLE IF EXISTS `user_sessions`;
CREATE TABLE `user_sessions` (
`session_id` varchar(40) NOT NULL default '0',
`ip_address` varchar(45) NOT NULL default '0',
`user_agent` varchar(120) NOT NULL,
`last_activity` int(10) unsigned NOT NULL default '0',
`user_data` text NOT NULL,
PRIMARY KEY (`session_id`),
KEY `last_activity_idx` (`last_activity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `user_sessions` */
/*Table structure for table `withdraw` */
DROP TABLE IF EXISTS `withdraw`;
CREATE TABLE `withdraw` (
`WithdrawId` int(11) NOT NULL auto_increment,
`WithdrawNumber` varchar(8) default NULL COMMENT 'yymmxxx',
`Principle` double default NULL,
`Interest` double default NULL,
`WithdrawDate` datetime NOT NULL COMMENT 'Date to calculate interest',
`DepositId` int(11) default NULL,
`RepaymentFeeRate` double default '11' COMMENT '11% of Interest',
`RepaymentFee` double default NULL,
`CreatedBy` int(11) default NULL,
`CreatedDate` datetime NOT NULL,
PRIMARY KEY (`WithdrawId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `withdraw` */
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
<filename>SQL_ukazi/koncna.sql<gh_stars>0
--
-- File generated with SQLiteStudio v3.2.1 on pon. maj 11 18:39:45 2020
--
-- Text encoding used: UTF-8
--
-- Table: SEKTOR
CREATE TABLE SEKTOR (ID TEXT PRIMARY KEY, IME_SEKTORJA TEXT NOT NULL, CENA_MRD INTEGER);
INSERT INTO SEKTOR (ID, IME_SEKTORJA, CENA_MRD) VALUES ('XLE', 'Energy', 29);
INSERT INTO SEKTOR (ID, IME_SEKTORJA, CENA_MRD) VALUES ('IYR', 'Real Estate', 32);
INSERT INTO SEKTOR (ID, IME_SEKTORJA, CENA_MRD) VALUES ('XLP', 'Consumer Staples', 4);
INSERT INTO SEKTOR (ID, IME_SEKTORJA, CENA_MRD) VALUES ('XLY', 'Consumer Discretionary', 5);
INSERT INTO SEKTOR (ID, IME_SEKTORJA, CENA_MRD) VALUES ('XLI', 'Industrials', 18);
INSERT INTO SEKTOR (ID, IME_SEKTORJA, CENA_MRD) VALUES ('XLU', 'Utilities', 9);
INSERT INTO SEKTOR (ID, IME_SEKTORJA, CENA_MRD) VALUES ('SMH', 'Infromation Technology', 12);
INSERT INTO SEKTOR (ID, IME_SEKTORJA, CENA_MRD) VALUES ('XLT', 'Telecommunication Services', 19);
INSERT INTO SEKTOR (ID, IME_SEKTORJA, CENA_MRD) VALUES ('XLF', 'Financials', 40);
INSERT INTO SEKTOR (ID, IME_SEKTORJA, CENA_MRD) VALUES ('XLV', 'Healthcare', 30);
INSERT INTO SEKTOR (ID, IME_SEKTORJA, CENA_MRD) VALUES ('XLB', 'Materials', 15);
-- Table: BORZE
CREATE TABLE BORZE (OZNAKA TEXT PRIMARY KEY, IME TEXT NOT NULL, REGIJA TEXT NOT NULL);
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('NYSE', 'New York Stock Exchange', 'USA');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('NASDAQ', 'Nasdaq', 'USA');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('JPX', 'Japan Exchange Group', 'Japan');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('LSE', 'London Stock Exchange', 'UK');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('SSE', 'Shanghai Stock Exchange', 'China');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('SEHK', 'Hong Kong Stock Exchange', 'Hong Kong');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('EEA', 'Euronext', 'European Union');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('SZSE', 'Shenzen Stock Exchange', 'China');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('TSX', 'TMX Group', 'Canada');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('BSE', 'Bombay Stock Exchange', 'India');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('ASX', 'Australian Securities Exchange', 'Australia');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('KRX', 'Korea Exchange', 'South Korea');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('VSE', 'Vilnius Stock Exchange', 'Lithuania');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('ICEX', 'Iceland Stock Exchange', 'Iceland');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('AMX', 'Armenia Securities Exchange', 'Armenia');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('TWSE', 'Taiwan Stock Exchange', 'Taiwan');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('MISX', 'Moscow Exchange', 'Russia');
INSERT INTO BORZE (OZNAKA, IME, REGIJA) VALUES ('BME', 'Bolsas y Mercados Espanoles', 'Spain');
-- Table: DELNICE
CREATE TABLE DELNICE (Oznaka TEXT UNIQUE NOT NULL PRIMARY KEY, Ime TEXT UNIQUE NOT NULL, Cena NUMERIC NOT NULL, Borza TEXT REFERENCES BORZE (OZNAKA), Sektor TEXT REFERENCES SEKTOR (ID), KOLICINA INTEGER);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('SRCE', '1ST SOURCE CORP', 50.71, 'KRX', 'XLV', 200);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('AIR', 'AAR CORP', 46.78, 'VSE', 'XLU', 876);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('AXAS', 'ABRAXAS PETE CORP', 0.35, 'SEHK', 'XLB', 954);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('ARAY', 'ACCURAY INC', 2.61, 'NASDAQ', 'XLF', 388);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('ACOR', 'ACORDA THERAPEUTICS INC', 2.28, 'SSE', 'XLV', 903);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('MITT', 'AG MORTGAGE INVT TR INC', 15.62, 'LSE', 'SMH', 1000);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('ADC', 'AGREE REALTY CORP', 69.6, 'JPX', 'XLY', 874);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('AKS', 'AK STEEL HOLDING CORP', 3.05, 'ASX', 'XLI', 983);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('AIN', 'ALBANY INTERNATIONAL', 76.7, 'LSE', 'XLY', 605);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('ALEX', 'ALEXANDER & BALDWIN INC', 21.7, 'SSE', 'XLT', 708);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('ATEC', 'ALPHATEC HOLDINGS', 6.65, 'SZSE', 'XLF', 902);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('RESI', 'ALTISOURCE RESIDENTIAL', 12.3, 'SEHK', 'IYR', 794);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CRMT', 'AMERICAS CAR-MART INC', 106.81, 'AMX', 'XLF', 304);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('ATLO', 'AMES NATL CORP', 27.4, 'KRX', 'XLE', 402);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('AMKR', 'AMKOR TECHNOLOGY INC', 12.93, 'JPX', 'XLY', 298);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('ARI', 'APOLLO COMMERCIAL RE', 18.13, 'SZSE', 'XLU', 307);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('AINV', 'APOLLO INVESTMENT CORP', 17.49, 'AMX', 'XLF', 518);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('ARNA', 'ARENA PHARMACEUTICALS', 46.27, 'MISX', 'SMH', 832);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('BKR', 'BAKER MICHAEL CORP', 25.04, 'SSE', 'XLT', 456);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('BLX', 'BANCO LATINOAMERICANO', 22.17, 'BME', 'XLV', 500);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('BFIN', 'BANKFINANCIAL CORP', 12.9, 'TSX', 'XLY', 740);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('BBX', 'BBX CAPITAL CORPORATION', 4.26, 'SEHK', 'XLE', 820);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('BGFV', 'BIG 5 SPORTING GOODS', 3.16, 'VSE', 'XLU', 530);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('BDSI', 'BIODELIVERY SCIENCES', 5.89, 'SEHK', 'SMH', 310);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('BIOS', 'BIOSCRIP INC', 4.13, 'VSE', 'XLE', 903);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('BJRI', 'BJS RESTAURANTS INC', 39.99, 'AMX', 'SMH', 604);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('BLKB', 'BLACKBAUD INC', 79.34, 'BSE', 'XLB', 402);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('BCOR', 'BLUCORA INC', 25.24, 'BSE', 'XLP', 403);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('SAM', 'BOSTON BEER INC', 369.48, 'VSE', 'XLT', 600);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('BRC', 'BRADY CORP', 57.02, 'AMX', 'IYR', 703);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('BKE', 'BUCKLE INC', 25.21, 'ASX', 'SMH', 830);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CFFI', 'C & F FINANCIAL CORP', 52.81, 'VSE', 'XLF', 520);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CALM', 'CAL MAINE FOODS INC', 38, 'SSE', 'XLY', 530);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('ELY', 'CALLAWAY GOLF CO', 21.98, 'MISX', 'XLY', 721);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CSU', 'CAPITAL SENIOR LIVING', 3.16, 'NASDAQ', 'XLU', 833);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CPST', 'CAPSTONE TURBINE CORP', 3.05, 'VSE', 'SMH', 910);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CASS', 'CASS INFORMATION SYSTEM', 56.48, 'VSE', 'XLF', 504);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CVCO', 'CAVCO INDUSTRIES INC', 197.93, 'MISX', 'XLE', 603);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CTIC', 'CELL THERAPEUTICS INC', 1.44, 'AMX', 'XLT', 720);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CSFL', 'CENTERSTATE BANKS INC', 24.13, 'LSE', 'XLV', 933);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CETV', 'CENTRAL EUROPEAN MEDIA', 4.47, 'LSE', 'XLB', 822);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CLDT', 'CHATHAM LODGING TR', 17.58, 'SEHK', 'XLE', 704);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CHMG', 'CHEMUNG FINL CORP', 42.35, 'TWSE', 'XLU', 607);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CIA', 'CITIZENS INC', 6.77, 'BME', 'XLU', 508);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CLNY', 'COLONY FINANCIAL INC', 4.84, 'VSE', 'XLF', 705);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('FIX', 'COMFORT SYSTEMS USA INC', 48.37, 'SSE', 'XLB', 773);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CMC', 'COMMERCIAL METALS CO', 22.8, 'MISX', 'XLF', 832);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CBU', 'COMMUNITY BANK SYSTEMS', 71.21, 'TSX', 'XLF', 654);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CIX', 'COMPX INTERNATIONAL', 15.2, 'AMX', 'SMH', 540);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CONN', 'CONNS INC', 10.62, 'NYSE', 'XLY', 340);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CORE', 'CORE MARK HOLDING CO IN', 25.09, 'BSE', 'XLB', 720);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CSOD', 'CORNERSTONE ONDEMAND IN', 59.3, 'AMX', 'XLF', 345);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CSGP', 'COSTAR GROUP INC', 629.69, 'BME', 'XLI', 485);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('COWN', 'COWEN GROUP INC', 16.55, 'SEHK', 'XLT', 991);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CRAI', 'CRA INTERNATIONAL INC', 54.49, 'KRX', 'XLB', 932);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('CMLS', 'CUMULUS MEDIA INC', 16.42, 'NASDAQ', 'XLU', 254);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('DAR', 'DARLING INTERNATIONAL', 28.49, 'LSE', 'XLT', 324);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('DHIL', 'DIAMOND HILL INVESTMENT', 141.7, 'SZSE', 'XLE', 403);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('DMRC', 'DIGIMARC CORPORATION', 35.94, 'TSX', 'IYR', 524);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('DCOM', 'DIME CMNTY BANCSHARES', 19.99, 'SZSE', 'XLE', 623);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('PLOW', 'DOUGLAS DYNAMICS INC', 56.04, 'KRX', 'XLP', 734);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('DXPE', 'DXP ENTERPRISES INC NEW', 39.4, 'SSE', 'XLF', 320);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('BOOM', 'DYNAMIC MATERIALS CORP', 44.85, 'AMX', 'IYR', 540);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('EGP', 'EASTGROUP PROPERTIES IN', 130.8, 'SEHK', 'IYR', 450);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('EBS', 'EMERGENT BIOSOLUTIONS', 56.68, 'ASX', 'XLU', 643);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('ENTA', 'ENANTA PHARMACEUTICALS', 60.33, 'AMX', 'XLF', 812);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('WIRE', 'ENCORE WIRE CORP', 56.83, 'TWSE', 'XLV', 842);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('ELGX', 'ENDOLOGIX INC', 1.91, 'TWSE', 'XLP', 329);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('EBF', 'ENNIS INC', 21.26, 'LSE', 'XLE', 984);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('EBTC', 'ENTERPRISE BANCORP INC', 33.5, 'EEA', 'XLV', 349);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('EFSC', 'ENTERPRISE FINL SERVICE', 48.18, 'ASX', 'SMH', 834);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('ENV', 'ENVESTNET INC', 73.63, 'AMX', 'XLI', 434);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('EPR', 'EPR PROPERTIES', 70.15, 'ASX', 'SMH', 934);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('EPM', 'EVOLUTION PETROLEUM COR', 5.3, 'VSE', 'IYR', 530);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('EXTR', 'EXTREME NETWORKS INC', 7.37, 'EEA', 'XLF', 400);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('FBP', 'FIRST BANCORP PR', 10.57, 'AMX', 'IYR', 723);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('FBC', 'FLAGSTAR BANCORP INC', 38.48, 'NASDAQ', 'XLB', 727);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('FLXS', 'FLEXSTEEL INDUSTRIES IN', 20.65, 'NASDAQ', 'XLV', 488);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('FNB', 'FNB CORP', 12.45, 'SSE', 'XLY', 299);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('FDP', 'FRESH DEL MONTE PRODUCE', 34.08, 'BSE', 'XLU', 438);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('FUL', 'FULLER H B CO', 48.44, 'ICEX', 'XLP', 432);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('GNE', 'GENIE ENERGY LTD', 7.49, 'VSE', 'XLP', 503);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('GEOS', 'GEOSPACE TECHNOLOGIES', 15.31, 'SEHK', 'IYR', 830);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('GBCI', 'GLACIER BANCORP INC', 44.63, 'TSX', 'XLY', 730);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('GOOD', 'GLADSTONE COMMERCIAL', 21.02, 'SSE', 'XLB', 430);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('ENT', 'GLOBAL EAGLE ENTMT INC', 0.46, 'MISX', 'XLF', 723);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('GLUU', 'GLU MOBILE INC', 5.75, 'TWSE', 'XLY', 892);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('GBDC', 'GOLUB CAP BDC INC', 18.22, 'EEA', 'XLP', 248);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('GDP', 'GOODRICH PETROLEUM CORP', 8.95, 'SSE', 'XLE', 464);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('GPK', 'GRAPHIC PACKAGING HLDG', 16.1, 'EEA', 'XLE', 565);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('GSIT', 'GSI TECHNOLOGY', 7.13, 'EEA', 'XLF', 645);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('HLIT', 'HARMONIC INC', 7.88, 'TWSE', 'XLF', 546);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('HWKN', 'HAWKINS INC', 42.89, 'NYSE', 'XLP', 767);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('HCI', 'HCI GROUP INC', 43.85, 'TSX', 'XLT', 234);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('HIIQ', 'HEALTH INS INNOVATIONS', 18.76, 'LSE', 'IYR', 436);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('HTLD', 'HEARTLAND EXPRESS INC', 20.52, 'VSE', 'XLI', 764);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('HTLF', 'HEARTLAND FINANCIAL USA', 49.58, 'LSE', 'XLE', 834);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('HELE', 'HELEN OF TROY LTD', 189.35, 'SEHK', 'XLU', 834);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('HTGC', 'HERCULES TECHNOLOGY GR', 14.01, 'MISX', 'XLV', 745);
INSERT INTO DELNICE (Oznaka, Ime, Cena, Borza, Sektor, KOLICINA) VALUES ('HTBK', 'HERITAGE COMMERCE CORP', 12.59, 'ASX', 'XLV', 917);
-- Table: UPORABNIK
CREATE TABLE UPORABNIK (ID INTEGER PRIMARY KEY, IME TEXT NOT NULL, PRIIMEK TEXT NOT NULL, DRZAVA TEXT NOT NULL, RACUN TEXT UNIQUE NOT NULL, SKRBINK BOOLEAN NOT NULL);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (12, 'McCue', 'McCue', 'Russia', 'FR89 2219 2579 36XE CT6F XPUW A96', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (17, 'Stiller', 'Abelson', 'Japan', 'IE04 TPMN 8097 9070 1814 21', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (30, 'Schwieso', 'Twelftree', 'Bosnia and Herzegovina', 'TR79 7871 22WJ SIC5 X5P1 RVXF TG', 1);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (37, 'Crufts', 'Highway', 'Mexico', 'DE34 7955 4728 1120 7523 03', 1);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (60, 'Tripony', 'Killelea', 'Brazil', 'GT80 WB7L GAT2 GQOH P8QZ 4LCC G0YD', 1);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (76, 'Beardon', 'Aistrop', 'Indonesia', 'DK34 5691 8029 3751 30', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (84, 'Hawlgarth', 'Horsell', 'Russia', 'BG42 BOMA 3301 68CK WRJX VK', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (90, 'Chopy', 'Harriskine', 'South Korea', 'PT10 1910 6413 6662 9336 1756 5', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (110, 'Roller', 'Jeeks', 'China', 'AL69 5175 9608 NFXD MEOW WCCA E1AY', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (112, 'Cotta', 'Crosi', 'Greece', 'FR43 0303 5721 2419 X6IF IZA2 580', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (134, 'Capnerhurst', 'Late', 'Indonesia', 'KW65 ULNG QHG5 BF5R L2GN D4AK 0SZC JQ', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (142, 'Edelman', 'Bull', 'Indonesia', 'LI30 6249 6TR3 1NCG YLJP S', 1);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (154, 'Blood', 'Smerdon', 'Ukraine', 'FR81 4338 6938 33ZB KKSN 7AV6 K58', 1);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (163, 'Jellico', 'Novak', 'Yemen', 'GL36 1774 9144 5756 67', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (165, 'Simcox', 'Sabathe', 'Indonesia', 'GR72 6415 966P KEJ1 KSU9 EEAP CUQ', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (168, 'Magwood', 'Gresswell', 'Russia', 'HR59 9419 0381 7302 5040 8', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (176, 'Ubsdell', 'Atley', 'Mali', 'MR90 6728 2983 4547 0269 6460 643', 1);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (177, 'Sewley', 'Collins', 'Portugal', 'ME18 3657 5386 5782 5241 85', 1);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (181, 'Harbard', 'Maddyson', 'China', 'ME92 2178 0939 2836 3617 90', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (193, 'Ide', 'Vamplus', 'Saudi Arabia', 'RO81 TWIH TSVZ H2IR VEWT WDD1', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (202, 'Roscoe', 'Loggie', 'Peru', 'IE87 QFQC 8541 8093 9002 05', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (208, 'Collins', 'Kertess', 'Norway', 'LI63 5593 6BY0 SOHU VSPE Y', 1);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (217, 'Learmonth', 'Greenside', 'China', 'VG94 MYHF 4151 7424 9707 6485', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (220, 'Twiggins', 'Polino', 'Argentina', 'AZ77 HPSR MMMG K8HF TGKO N0ND BZSF', 1);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (228, 'Daniell', 'Adrien', 'Indonesia', 'ES45 1641 7432 1571 4752 1288', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (234, 'Tithacott', 'Giovannacci', 'Philippines', 'BE83 5343 3959 7819', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (241, 'Fuggles', 'Tyhurst', 'China', 'BE88 7175 5911 5214', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (243, 'Livingstone', 'Mila', 'Ireland', 'BG10 LSJM 2536 43SE IP9P DT', 1);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (304, 'Kenninghan', 'Keohane', 'China', 'PT57 2123 2747 9316 0741 5677 4', 1);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (313, 'Rigney', 'Markwell', 'Nigeria', 'BE28 0639 7765 8125', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (323, 'Collman', 'MacTerlagh', 'Albania', 'BE19 3928 4373 1520', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (344, 'Akehurst', 'Acreman', 'Colombia', 'HU84 0768 6071 4181 6667 5012 4522', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (350, 'Cheetham', 'Kirkup', 'Indonesia', 'FR64 0182 8068 96JV 3V3X HAKB Q55', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (374, 'Hadley', 'Luna', 'United States', 'LB38 3188 TGTS KLKD 0I3L 8VQV XGVT', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (387, 'Yoskowitz', 'Twining', 'Greece', 'NO89 9117 8590 774', 1);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (390, 'Challinor', 'Moorerud', 'Mongolia', 'CH46 4679 1FXL VHN2 JTIR N', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (404, 'Cuxson', 'Lashley', 'China', 'FR06 6184 9982 65G8 OYJA 6KLB H01', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (409, 'Maceur', 'Hails', 'China', 'GR75 5513 675Q F2QG XPC8 OA0J GRG', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (421, 'Palke', 'Bedle', 'Greece', 'RS11 9966 0249 8908 5013 73', 1);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (429, 'McComiskey', 'Romaynes', 'Indonesia', 'DO27 UMNQ 7332 6123 0787 4224 6527', 1);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (432, 'Daffey', 'Burdge', 'China', 'RS52 0828 6358 7409 5410 05', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (441, 'Antusch', 'Kleinmann', 'Indonesia', 'NO60 4510 8873 334', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (442, 'Morais', 'SINTOn', 'China', 'EE15 9639 2166 7700 4803', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (448, 'McGilvary', 'Pardal', 'Japan', 'FR04 0452 9093 65XV MTZ2 34RV M18', 1);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (449, 'Linford', 'Grigorescu', 'China', 'HR68 2897 0662 4907 9188 1', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (453, 'Buist', 'Novak', 'China', 'HU74 6697 9223 0424 8276 9920 1395', 1);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (464, 'Braine', 'Worts', 'Guatemala', 'RS95 0552 3433 9335 0365 37', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (465, 'Jewster', 'Mottini', 'South Africa', 'AZ11 TAIG AZH6 VPOL XKLA OTD7 KISQ', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (467, 'Hulland', 'Abelson', 'China', 'NO20 6659 4779 708', 0);
INSERT INTO UPORABNIK (ID, IME, PRIIMEK, DRZAVA, RACUN, SKRBINK) VALUES (469, 'Pappin', 'Chessil', 'China', 'HR18 7489 4117 5446 6860 5', 0);
-- Table: TRANSAKCIJE
CREATE TABLE TRANSAKCIJE (ID INTEGER PRIMARY KEY, ZNESEK INTEGER NOT NULL, UPORABNIK TEXT REFERENCES UPORABNIK (RACUN) NOT NULL, OZNAKA TEXT REFERENCES DELNICE (Oznaka), TIP BOOLEAN NOT NULL, KOLICINA INTEGER);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (1, -4892.17, 'TR79 7871 22WJ SIC5 X5P1 RVXF TG', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (2, -7250.9, 'BE88 7175 5911 5214', 'BKR', 1, 68);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (3, -2806.29, 'BE19 3928 4373 1520', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (4, 5037.3, 'AZ11 TAIG AZH6 VPOL XKLA OTD7 KISQ', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (5, -4635.58, 'PT57 2123 2747 9316 0741 5677 4', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (6, 626.41, 'IE04 TPMN 8097 9070 1814 21', 'ELY', 1, 67);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (7, -4895, 'DO27 UMNQ 7332 6123 0787 4224 6527', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (8, 8161.94, 'RO81 TWIH TSVZ H2IR VEWT WDD1', 'BJRI', 1, -67);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (9, -4769.24, 'ME18 3657 5386 5782 5241 85', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (10, 3938.99, 'FR43 0303 5721 2419 X6IF IZA2 580', 'WIRE', 1, -68);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (11, -953.8, 'NO60 4510 8873 334', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (12, -9734.88, 'DO27 UMNQ 7332 6123 0787 4224 6527', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (13, 3888.03, 'HU84 0768 6071 4181 6667 5012 4522', 'CSOD', 1, 64);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (14, -9803.48, 'HR18 7489 4117 5446 6860 5', 'FIX', 1, -12);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (15, 3105.86, 'BG10 LSJM 2536 43SE IP9P DT', 'HTGC', 1, 23);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (16, 632.64, 'VG94 MYHF 4151 7424 9707 6485', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (17, -927.26, 'FR43 0303 5721 2419 X6IF IZA2 580', 'CRAI', 1, 78);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (18, -6856.62, 'BE28 0639 7765 8125', 'BKR', 1, 26);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (19, 459.83, 'BG10 LSJM 2536 43SE IP9P DT', 'CORE', 1, -17);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (20, -2684.11, 'NO60 4510 8873 334', 'CSGP', 1, 36);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (21, -9413.66, 'HU84 0768 6071 4181 6667 5012 4522', 'COWN', 1, -2);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (22, 3999.64, 'GT80 WB7L GAT2 GQOH P8QZ 4LCC G0YD', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (23, 4029.32, 'PT57 2123 2747 9316 0741 5677 4', 'COWN', 1, -75);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (24, -6122.55, 'HU74 6697 9223 0424 8276 9920 1395', 'ELGX', 1, -31);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (25, -4102.55, 'GR72 6415 966P KEJ1 KSU9 EEAP CUQ', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (26, -983.62, 'PT10 1910 6413 6662 9336 1756 5', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (27, 9026.04, 'GT80 WB7L GAT2 GQOH P8QZ 4LCC G0YD', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (28, 3684.03, 'BE28 0639 7765 8125', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (29, -8944.54, 'BE28 0639 7765 8125', 'GNE', 1, -15);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (30, 6868.49, 'IE04 TPMN 8097 9070 1814 21', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (31, 2514.49, 'GR72 6415 966P KEJ1 KSU9 EEAP CUQ', 'HTLF', 1, -86);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (32, -2519.69, 'FR81 4338 6938 33ZB KKSN 7AV6 K58', 'DCOM', 1, -94);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (33, 2037.98, 'TR79 7871 22WJ SIC5 X5P1 RVXF TG', 'ELGX', 1, 35);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (34, 9942.7, 'NO20 6659 4779 708', 'BDSI', 1, 2);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (35, -525.48, 'RO81 TWIH TSVZ H2IR VEWT WDD1', 'ELY', 1, -44);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (36, 981.45, 'FR64 0182 8068 96JV 3V3X HAKB Q55', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (37, -5920.01, 'RS52 0828 6358 7409 5410 05', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (38, 4216.47, 'RO81 TWIH TSVZ H2IR VEWT WDD1', 'CONN', 1, -93);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (39, 5266.48, 'HU84 0768 6071 4181 6667 5012 4522', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (40, 6951.07, 'DO27 UMNQ 7332 6123 0787 4224 6527', 'BKE', 1, -89);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (41, -3571.45, 'KW65 ULNG QHG5 BF5R L2GN D4AK 0SZC JQ', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (42, -2694.15, 'NO89 9117 8590 774', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (43, 4759.03, 'PT10 1910 6413 6662 9336 1756 5', 'CFFI', 1, -82);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (44, -9584.71, 'FR81 4338 6938 33ZB KKSN 7AV6 K58', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (45, -2351.06, 'GL36 1774 9144 5756 67', 'HIIQ', 1, -1);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (46, 1190.16, 'AZ11 TAIG AZH6 VPOL XKLA OTD7 KISQ', 'DAR', 1, 73);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (47, 4757.44, 'PT10 1910 6413 6662 9336 1756 5', 'DXPE', 1, -40);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (48, -686.31, 'AL69 5175 9608 NFXD MEOW WCCA E1AY', 'BFIN', 1, 39);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (49, -4877.04, 'BE88 7175 5911 5214', 'ELGX', 1, -5);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (50, 9385.99, 'FR04 0452 9093 65XV MTZ2 34RV M18', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (51, -9348.43, 'GR72 6415 966P KEJ1 KSU9 EEAP CUQ', 'BBX', 1, -19);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (52, -7455.22, 'NO60 4510 8873 334', 'GSIT', 1, 22);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (53, -1748, 'LI30 6249 6TR3 1NCG YLJP S', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (54, 1604.34, 'PT57 2123 2747 9316 0741 5677 4', 'BKR', 1, 84);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (55, -8213.73, 'FR06 6184 9982 65G8 OYJA 6KLB H01', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (56, 8174.16, 'KW65 ULNG QHG5 BF5R L2GN D4AK 0SZC JQ', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (57, 6137.04, 'GR72 6415 966P KEJ1 KSU9 EEAP CUQ', 'CMC', 1, -95);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (58, -1930.25, 'LB38 3188 TGTS KLKD 0I3L 8VQV XGVT', 'DAR', 1, -60);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (59, 720.9, 'FR64 0182 8068 96JV 3V3X HAKB Q55', 'FUL', 1, 8);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (60, -4292.34, 'KW65 ULNG QHG5 BF5R L2GN D4AK 0SZC JQ', 'BOOM', 1, 91);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (61, -801.36, 'PT57 2123 2747 9316 0741 5677 4', 'HIIQ', 1, 13);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (62, -9807.01, 'PT10 1910 6413 6662 9336 1756 5', 'CBU', 1, -43);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (63, 3676.22, 'IE87 QFQC 8541 8093 9002 05', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (64, -2991.94, 'BG42 BOMA 3301 68CK WRJX VK', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (65, -7966.65, 'ES45 1641 7432 1571 4752 1288', 'EBS', 1, 53);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (66, 8953.8, 'RS52 0828 6358 7409 5410 05', 'ARI', 1, -21);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (67, -2711.88, 'FR64 0182 8068 96JV 3V3X HAKB Q55', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (68, 1261.06, 'HR68 2897 0662 4907 9188 1', 'AMKR', 1, -93);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (69, 9812.4, 'LB38 3188 TGTS KLKD 0I3L 8VQV XGVT', 'HCI', 1, -70);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (70, -8641.14, 'GT80 WB7L GAT2 GQOH P8QZ 4LCC G0YD', 'CLDT', 1, -15);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (71, -4149.64, 'AZ11 TAIG AZH6 VPOL XKLA OTD7 KISQ', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (72, -4927.7, 'HR59 9419 0381 7302 5040 8', 'BDSI', 1, -38);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (73, 5380.37, 'DE34 7955 4728 1120 7523 03', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (74, 8286.13, 'FR81 4338 6938 33ZB KKSN 7AV6 K58', 'ADC', 1, -89);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (75, -6990.06, 'GL36 1774 9144 5756 67', 'AKS', 1, 83);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (76, 6214.72, 'HU74 6697 9223 0424 8276 9920 1395', 'EPR', 1, -57);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (77, -7378.86, 'PT10 1910 6413 6662 9336 1756 5', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (78, 8686.95, 'HR18 7489 4117 5446 6860 5', 'BIOS', 1, 35);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (79, 3960.34, 'RS52 0828 6358 7409 5410 05', 'CRAI', 1, 8);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (80, -1521.28, 'AZ11 TAIG AZH6 VPOL XKLA OTD7 KISQ', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (81, -7565.73, 'RS95 0552 3433 9335 0365 37', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (82, -9586.78, 'FR81 4338 6938 33ZB KKSN 7AV6 K58', 'BOOM', 1, 49);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (83, 2394.21, 'BE83 5343 3959 7819', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (84, 7835.48, 'EE15 9639 2166 7700 4803', 'CORE', 1, -85);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (85, 1387.98, 'FR04 0452 9093 65XV MTZ2 34RV M18', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (86, 3145.13, 'HR59 9419 0381 7302 5040 8', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (87, 5809.66, 'AZ77 HPSR MMMG K8HF TGKO N0ND BZSF', 'ENTA', 1, -49);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (88, -6593.87, 'FR81 4338 6938 33ZB KKSN 7AV6 K58', 'PLOW', 1, -98);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (89, -3247.79, 'CH46 4679 1FXL VHN2 JTIR N', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (90, 16.29, 'DK34 5691 8029 3751 30', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (91, -2014.91, 'RS52 0828 6358 7409 5410 05', 'EFSC', 1, -70);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (92, 9953.67, 'HR68 2897 0662 4907 9188 1', 'ARAY', 1, -99);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (93, 3796.08, 'AZ77 HPSR MMMG K8HF TGKO N0ND BZSF', NULL, 0, NULL);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (94, 8872.08, 'GT80 WB7L GAT2 GQOH P8QZ 4LCC G0YD', 'ENTA', 1, -2);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (95, -4119.41, 'VG94 MYHF 4151 7424 9707 6485', 'CSU', 1, -51);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (96, 6303.41, 'LI30 6249 6TR3 1NCG YLJP S', 'CORE', 1, 95);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (97, 7332.62, 'MR90 6728 2983 4547 0269 6460 643', 'AIR', 1, 5);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (98, -8448.64, 'BE88 7175 5911 5214', 'ARI', 1, 84);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (99, 2038.13, 'BE28 0639 7765 8125', 'BFIN', 1, -98);
INSERT INTO TRANSAKCIJE (ID, ZNESEK, UPORABNIK, OZNAKA, TIP, KOLICINA) VALUES (100, 3220.12, 'NO20 6659 4779 708', 'EFSC', 1, -28);
COMMIT TRANSACTION;
PRAGMA foreign_keys = on;
|
-- Creator: MySQL Workbench 8.0.12/ExportSQLite Plugin 0.1.0
-- Author: macpoule
-- Caption: New Model
-- Project: Name of the project
-- Changed: 2018-10-16 22:28
-- Created: 2018-10-16 00:43
PRAGMA foreign_keys = OFF;
-- Schema: mydb
-- ATTACH "db.sdb" AS "mydb";
BEGIN;
CREATE TABLE "genes"(
"gene_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL CHECK("gene_id">=0),-- This is the id which is used inside the C++ program in mirna_target_prediction
"ensembl_id" VARCHAR(20) NOT NULL,
-- An example of ENSEMBL id is ENSG00000139618, usually it is also specified a version, like ENSG00000139618.10.
-- This variable only contains the id, so in this case it would be ENSG00000139618
"ensembl_version" VARCHAR(45),
-- An example of ENSEMBL id is ENSG00000139618, usually it is also specified a version, like in ENSG00000139618.10.
-- This variable only contains the version number, so in this case it would be 10
"transcript_id" VARCHAR(45) NOT NULL,
-- The same gene can be spliced and in different ways so it can give rise to different RNAs.
-- For this reason usually there are different transcripts associated to a gene.
-- An example of transcript id ENST00000380152. Usually it is also specified a version, like in ENST00000380152.7.
-- This variable only contains the id, so in this case it would be ENST00000380152.
"transcript_version" INTEGER CHECK("transcript_version">=0),
-- The same gene can be spliced and in different ways so it can give rise to different RNAs.
-- For this reason usually there are different transcripts associated to a gene.
-- An example of transcript id ENST00000380152. Usually it is also specified a version, like in ENST00000380152.7.
-- This variable only contains the version number, so in this case it would be 7.
"name" VARCHAR(20) NOT NULL,
-- The human readable name used for the gene.
-- Warning: I found cases in which the same human readable name was the same for different ensebl_id or the same transcript_id.
"utr_sequence" VARCHAR(15000) NOT NULL,-- A sequence of ACGU letters.
CONSTRAINT "rowid_UNIQUE"
UNIQUE("gene_id"),
CONSTRAINT "ensembl_id_UNIQUE"
UNIQUE("ensembl_id"),
CONSTRAINT "transcript_id_UNIQUE"
UNIQUE("transcript_id")
);
CREATE TABLE "mirnas"(
"mirna_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL CHECK("mirna_id">=0),-- mirna_Id is used in the C++ code
"family" VARCHAR(20) NOT NULL,-- human readable name
"sequence" VARCHAR(40),-- Sequence of ACGU characters.
CONSTRAINT "rowid_UNIQUE"
UNIQUE("mirna_id")
);
CREATE TABLE "seed_match_types"(
"id" INTEGER PRIMARY KEY NOT NULL,
"type" VARCHAR(10) NOT NULL
-- This value can
-- “8mer”
-- “7mer_m8”
-- “7mer_a1”
--
-- In the C++ code the above values corresponds to an enum with value 0, 1, 2
);
CREATE TABLE "clusters"(
"cluster_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL-- This value is not used in the C++ code since a pointer to the object is enough to specify it.
);
CREATE TABLE "scored_interactions"(
"mirna_id" INTEGER NOT NULL CHECK("mirna_id">=0),
"gene_id" INTEGER NOT NULL CHECK("gene_id">=0),
"utr_start" INTEGER NOT NULL CHECK("utr_start">=0),
"seed_match_type" INTEGER NOT NULL CHECK("seed_match_type">=0),
"context_score" INTEGER NOT NULL,
"weighted_context_score" INTEGER NOT NULL,
"conserved" INTEGER NOT NULL,
PRIMARY KEY("mirna_id","gene_id","utr_start"),
CONSTRAINT "mirna_id"
FOREIGN KEY("mirna_id")
REFERENCES "mirnas"("mirna_id"),
CONSTRAINT "gene_id"
FOREIGN KEY("gene_id")
REFERENCES "genes"("gene_id")
);
CREATE INDEX "scored_interactions.gene_id_idx" ON "scored_interactions" ("gene_id");
CREATE TABLE "sites"(
"gene_id" INTEGER NOT NULL CHECK("gene_id">=0),
"utr_start" INTEGER NOT NULL CHECK("utr_start">=0),
"seed_match_type" INTEGER NOT NULL CHECK("seed_match_type">=0),
"clusters_cluster_id" INTEGER NOT NULL,
PRIMARY KEY("gene_id","utr_start","seed_match_type","clusters_cluster_id"),
CONSTRAINT "gene_id"
FOREIGN KEY("gene_id")
REFERENCES "genes"("gene_id"),
CONSTRAINT "seed_match_type"
FOREIGN KEY("seed_match_type")
REFERENCES "seed_match_types"("id"),
CONSTRAINT "fk_sites_clusters1"
FOREIGN KEY("clusters_cluster_id")
REFERENCES "clusters"("cluster_id")
);
CREATE INDEX "sites.seed_match_type_idx" ON "sites" ("seed_match_type");
CREATE INDEX "sites.fk_sites_clusters1_idx" ON "sites" ("clusters_cluster_id");
COMMIT;
|
-- MySQL Script generated by MySQL Workbench
-- sáb 07 nov 2020 16:04:09
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
-- -----------------------------------------------------
-- Schema shootings_star
-- -----------------------------------------------------
DROP SCHEMA IF EXISTS `shootings_star` ;
-- -----------------------------------------------------
-- Schema shootings_star
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `shootings_star` ;
USE `shootings_star` ;
-- -----------------------------------------------------
-- Table `shootings_star`.`dim_address`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shootings_star`.`dim_address` ;
CREATE TABLE IF NOT EXISTS `shootings_star`.`dim_address` (
`id` INT NOT NULL AUTO_INCREMENT,
`city` VARCHAR(100) NOT NULL,
`state` VARCHAR(10) NOT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `shootings_star`.`dim_age`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shootings_star`.`dim_age` ;
CREATE TABLE IF NOT EXISTS `shootings_star`.`dim_age` (
`id` INT NOT NULL AUTO_INCREMENT,
`age` VARCHAR(10) NOT NULL,
`age_range` VARCHAR(10) NOT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `shootings_star`.`dim_body_camera`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shootings_star`.`dim_body_camera` ;
CREATE TABLE IF NOT EXISTS `shootings_star`.`dim_body_camera` (
`id` INT NOT NULL AUTO_INCREMENT,
`body_camera` VARCHAR(5) NOT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `shootings_star`.`dim_date`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shootings_star`.`dim_date` ;
CREATE TABLE IF NOT EXISTS `shootings_star`.`dim_date` (
`id` DATETIME NOT NULL,
`year` INT NOT NULL,
`month` INT NOT NULL,
`day` INT NOT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `shootings_star`.`dim_death_cause`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shootings_star`.`dim_death_cause` ;
CREATE TABLE IF NOT EXISTS `shootings_star`.`dim_death_cause` (
`id` INT NOT NULL AUTO_INCREMENT,
`manner_of_death` VARCHAR(45) NOT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `shootings_star`.`dim_gender`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shootings_star`.`dim_gender` ;
CREATE TABLE IF NOT EXISTS `shootings_star`.`dim_gender` (
`id` INT NOT NULL AUTO_INCREMENT,
`gender` VARCHAR(3) NOT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `shootings_star`.`dim_mental_illness`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shootings_star`.`dim_mental_illness` ;
CREATE TABLE IF NOT EXISTS `shootings_star`.`dim_mental_illness` (
`id` INT NOT NULL AUTO_INCREMENT,
`mental_illness` VARCHAR(45) NOT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `shootings_star`.`dim_race`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shootings_star`.`dim_race` ;
CREATE TABLE IF NOT EXISTS `shootings_star`.`dim_race` (
`id` INT NOT NULL AUTO_INCREMENT,
`race` VARCHAR(5) NOT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `shootings_star`.`dim_risk`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shootings_star`.`dim_risk` ;
CREATE TABLE IF NOT EXISTS `shootings_star`.`dim_risk` (
`id` INT NOT NULL AUTO_INCREMENT,
`armed` VARCHAR(45) NOT NULL,
`flee` VARCHAR(45) NOT NULL,
`threat_level` VARCHAR(45) NOT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `shootings_star`.`facts_fatal_police_shooting`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shootings_star`.`facts_fatal_police_shooting` ;
CREATE TABLE IF NOT EXISTS `shootings_star`.`facts_fatal_police_shooting` (
`victim_id` INT NOT NULL AUTO_INCREMENT,
`id_dim_age` INT NOT NULL,
`id_dim_race` INT NOT NULL,
`id_dim_gender` INT NOT NULL,
`id_dim_body_camera` INT NOT NULL,
`id_dim_address` INT NOT NULL,
`id_dim_date` DATETIME NOT NULL,
`id_dim_risk` INT NOT NULL,
`id_dim_death_cause` INT NOT NULL,
`id_dim_mental_illness` INT NOT NULL,
PRIMARY KEY (`victim_id`),
INDEX `fk_id_dim_age_idx` (`id_dim_age` ASC) VISIBLE,
INDEX `fk_id_dim_race_idx` (`id_dim_race` ASC) VISIBLE,
INDEX `fk_id_dim_gender_idx` (`id_dim_gender` ASC) VISIBLE,
INDEX `fk_body_camera_idx` (`id_dim_body_camera` ASC) VISIBLE,
INDEX `fk_id_dim_address_idx` (`id_dim_address` ASC) VISIBLE,
INDEX `fk_id_dim_date_idx` (`id_dim_date` ASC) VISIBLE,
INDEX `fk_id_dim_risk_idx` (`id_dim_risk` ASC) VISIBLE,
INDEX `fk_id_dim_death_cause_idx` (`id_dim_death_cause` ASC) VISIBLE,
INDEX `fk_id_dim_mental_illness_idx` (`id_dim_mental_illness` ASC) VISIBLE,
CONSTRAINT `fk_id_dim_address`
FOREIGN KEY (`id_dim_address`)
REFERENCES `shootings_star`.`dim_address` (`id`),
CONSTRAINT `fk_id_dim_age`
FOREIGN KEY (`id_dim_age`)
REFERENCES `shootings_star`.`dim_age` (`id`),
CONSTRAINT `fk_id_dim_body_camera`
FOREIGN KEY (`id_dim_body_camera`)
REFERENCES `shootings_star`.`dim_body_camera` (`id`),
CONSTRAINT `fk_id_dim_date`
FOREIGN KEY (`id_dim_date`)
REFERENCES `shootings_star`.`dim_date` (`id`),
CONSTRAINT `fk_id_dim_death_cause`
FOREIGN KEY (`id_dim_death_cause`)
REFERENCES `shootings_star`.`dim_death_cause` (`id`),
CONSTRAINT `fk_id_dim_gender`
FOREIGN KEY (`id_dim_gender`)
REFERENCES `shootings_star`.`dim_gender` (`id`),
CONSTRAINT `fk_id_dim_mental_illness`
FOREIGN KEY (`id_dim_mental_illness`)
REFERENCES `shootings_star`.`dim_mental_illness` (`id`),
CONSTRAINT `fk_id_dim_race`
FOREIGN KEY (`id_dim_race`)
REFERENCES `shootings_star`.`dim_race` (`id`),
CONSTRAINT `fk_id_dim_risk`
FOREIGN KEY (`id_dim_risk`)
REFERENCES `shootings_star`.`dim_risk` (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `shootings_star`.`temp_dataset`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shootings_star`.`temp_dataset` ;
CREATE TABLE IF NOT EXISTS `shootings_star`.`temp_dataset` (
`id` INT NULL DEFAULT NULL,
`name` TEXT NULL DEFAULT NULL,
`date` DATETIME NULL DEFAULT NULL,
`manner_of_death` TEXT NULL DEFAULT NULL,
`armed` TEXT NULL DEFAULT NULL,
`age` INT NULL DEFAULT NULL,
`gender` TEXT NULL DEFAULT NULL,
`race` TEXT NULL DEFAULT NULL,
`city` TEXT NULL DEFAULT NULL,
`state` TEXT NULL DEFAULT NULL,
`signs_of_mental_illness` TEXT NULL DEFAULT NULL,
`threat_level` TEXT NULL DEFAULT NULL,
`flee` TEXT NULL DEFAULT NULL,
`body_camera` TEXT NULL DEFAULT NULL)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
<gh_stars>0
INSERT INTO public.deutschkurs_kosten(
"Kosten_Lehrmaterial", "Kosten_Gesamtkurs", "Kosten_Einzelkurs", "Kosten_Einstufungstest", "Kosten_subventioniert")
VALUES ('Kosten_Lehrmaterial', 'Kosten_Gesamtkurs', 'Kosten_Einzelkurs', 'Kosten_Einstufungstest', 'Kosten_subventioniert');
INSERT INTO public.deutschkurs_durchfuerungsort(
"Durchfuehrungsort_Strasse", "Durchfuehrungsort_PLZ", "Durchfuehrungsort_Ortschaft", "Durchfuehrungsort_Raum")
VALUES ('Durchfuehrungsort_Strasse', 'Durchfuehrungsort_PLZ', 'Durchfuehrungsort_Ortschaft', 'Durchfuehrungsort_Raum');
INSERT INTO public.deutschkurs_anbieter(
"Anbieter_Name", "Anbieter_Beschreibung", "Anbieter_Webseite", "Anbieter_EMail", "Anbieter_Tel", "Anbieter_Strasse", "Anbieter_PLZ", "Anbieter_Ort", "Anbieter_Kontakt", "Kontakt_Tel")
VALUES ('Anbieter_Name', 'Anbieter_Beschreibung', 'Anbieter_Webseite', 'Anbieter_EMail', 'Anbieter_Tel', 'Anbieter_Strasse', 'Anbieter_PLZ', 'Anbieter_Ort', 'Anbieter_Kontakt', 'Kontakt_Tel');
INSERT INTO public.deutschkurs(
"Gesamtkurs_Start", "Gesamtkurs_Ende", "Gesamtkurs_Dauer_Tage", "Gesamtkurs_Dauer_Stunden", "Einzelkurs_Start", "Einzelkurs_Ende", "Einzelkurs_Dauer_Minuten", id_durchfuehrungsort, id_anbieter, id_kosten)
VALUES ('Gesamtkurs_Start', 'Gesamtkurs_Ende', 'Gesamtkurs_Dauer_Tage', 'Gesamtkurs_Dauer_Stunden', 'Einzelkurs_Start', 'Einzelkurs_Ende', 'Einzelkurs_Dauer_Minuten', 1,1,1);
INSERT INTO public.deutschkurs(
"Gesamtkurs_Start", "Gesamtkurs_Ende", "Gesamtkurs_Dauer_Tage", "Gesamtkurs_Dauer_Stunden", "Einzelkurs_Start", "Einzelkurs_Ende", "Einzelkurs_Dauer_Minuten", id_durchfuehrungsort, id_anbieter, id_kosten)
VALUES ('Gesamtkurs_Start 2', 'Gesamtkurs_Ende 2', 'Gesamtkurs_Dauer_Tage 2', 'Gesamtkurs_Dauer_Stunden 2', 'Einzelkurs_Start 2', 'Einzelkurs_Ende 2', 'Einzelkurs_Dauer_Minuten 2', 1,1,1);
INSERT INTO public.deutschkurs(
"Gesamtkurs_Start", "Gesamtkurs_Ende", "Gesamtkurs_Dauer_Tage", "Gesamtkurs_Dauer_Stunden", "Einzelkurs_Start", "Einzelkurs_Ende", "Einzelkurs_Dauer_Minuten", id_durchfuehrungsort, id_anbieter, id_kosten)
VALUES ('Gesamtkurs_Start 3', 'Gesamtkurs_Ende 3', 'Gesamtkurs_Dauer_Tage 3', 'Gesamtkurs_Dauer_Stunden 3', 'Einzelkurs_Start 3', 'Einzelkurs_Ende 3', 'Einzelkurs_Dauer_Minuten 3', 1,1,1);
INSERT INTO public.deutschkurs(
"Gesamtkurs_Start", "Gesamtkurs_Ende", "Gesamtkurs_Dauer_Tage", "Gesamtkurs_Dauer_Stunden", "Einzelkurs_Start", "Einzelkurs_Ende", "Einzelkurs_Dauer_Minuten", id_durchfuehrungsort, id_anbieter, id_kosten)
VALUES ('Gesamtkurs_Start 4', 'Gesamtkurs_Ende 4', 'Gesamtkurs_Dauer_Tage 4', 'Gesamtkurs_Dauer_Stunden 4', 'Einzelkurs_Start 4', 'Einzelkurs_Ende 4', 'Einzelkurs_Dauer_Minuten 4', 1,1,1);
|
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 04 Jun 2019 pada 01.08
-- Versi server: 10.1.36-MariaDB
-- Versi PHP: 7.2.10
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: `spkkost`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `criterias`
--
CREATE TABLE `criterias` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`category` enum('benefit','cost') 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 untuk tabel `criterias`
--
INSERT INTO `criterias` (`id`, `name`, `category`, `created_at`, `updated_at`) VALUES
(1, 'harga', 'cost', '2019-05-12 11:58:28', '2019-05-12 11:58:28'),
(2, 'fasilitas', 'benefit', '2019-05-12 11:58:43', '2019-05-12 11:58:43'),
(3, 'ukuran', 'benefit', '2019-05-12 11:58:54', '2019-05-15 12:57:35'),
(4, 'jarak', 'cost', '2019-05-12 11:59:32', '2019-05-12 11:59:32');
-- --------------------------------------------------------
--
-- Struktur dari tabel `criteria_kost`
--
CREATE TABLE `criteria_kost` (
`id` bigint(20) UNSIGNED NOT NULL,
`kost_id` bigint(20) UNSIGNED NOT NULL,
`criteria_id` bigint(20) UNSIGNED NOT NULL,
`value` bigint(20) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data untuk tabel `criteria_kost`
--
INSERT INTO `criteria_kost` (`id`, `kost_id`, `criteria_id`, `value`, `created_at`, `updated_at`) VALUES
(13, 11, 1, 500000, '2019-05-16 08:49:45', '2019-06-01 18:09:11'),
(14, 11, 2, 2, '2019-05-16 08:49:45', '2019-06-01 18:09:11'),
(15, 11, 3, 6, '2019-05-16 08:49:45', '2019-06-01 18:09:11'),
(16, 11, 4, 550, '2019-05-16 08:49:45', '2019-06-01 18:09:11'),
(17, 12, 1, 700000, '2019-05-17 18:17:38', '2019-05-17 18:17:38'),
(18, 12, 2, 3, '2019-05-17 18:17:38', '2019-05-17 18:17:38'),
(19, 12, 3, 9, '2019-05-17 18:17:38', '2019-05-17 18:17:38'),
(20, 12, 4, 400, '2019-05-17 18:17:38', '2019-05-17 18:17:38'),
(21, 13, 1, 400000, '2019-05-17 18:18:40', '2019-05-17 18:18:40'),
(22, 13, 2, 2, '2019-05-17 18:18:40', '2019-05-17 18:18:40'),
(23, 13, 3, 6, '2019-05-17 18:18:40', '2019-05-17 18:18:40'),
(24, 13, 4, 550, '2019-05-17 18:18:40', '2019-05-17 18:18:40'),
(29, 15, 1, 500000, '2019-05-17 18:21:20', '2019-05-17 18:21:20'),
(30, 15, 2, 2, '2019-05-17 18:21:20', '2019-05-17 18:21:20'),
(31, 15, 3, 6, '2019-05-17 18:21:20', '2019-05-17 18:21:20'),
(32, 15, 4, 1200, '2019-05-17 18:21:20', '2019-05-17 18:21:20'),
(33, 16, 1, 800000, '2019-05-17 18:23:31', '2019-05-17 18:23:31'),
(34, 16, 2, 5, '2019-05-17 18:23:31', '2019-05-17 18:23:31'),
(35, 16, 3, 9, '2019-05-17 18:23:31', '2019-05-17 18:23:31'),
(36, 16, 4, 650, '2019-05-17 18:23:31', '2019-05-17 18:23:31'),
(37, 17, 1, 500000, '2019-05-17 18:24:44', '2019-05-17 18:24:44'),
(38, 17, 2, 2, '2019-05-17 18:24:44', '2019-05-17 18:24:44'),
(39, 17, 3, 6, '2019-05-17 18:24:44', '2019-05-17 18:24:44'),
(40, 17, 4, 450, '2019-05-17 18:24:44', '2019-05-17 18:24:44'),
(41, 18, 1, 1000000, '2019-05-17 18:25:52', '2019-05-17 18:25:52'),
(42, 18, 2, 5, '2019-05-17 18:25:52', '2019-05-17 18:25:52'),
(43, 18, 3, 16, '2019-05-17 18:25:52', '2019-05-17 18:25:52'),
(44, 18, 4, 3500, '2019-05-17 18:25:52', '2019-05-17 18:25:52'),
(45, 19, 1, 800000, '2019-05-17 18:27:35', '2019-05-17 18:27:35'),
(46, 19, 2, 5, '2019-05-17 18:27:35', '2019-05-17 18:27:35'),
(47, 19, 3, 12, '2019-05-17 18:27:35', '2019-05-17 18:27:35'),
(48, 19, 4, 3700, '2019-05-17 18:27:35', '2019-05-17 18:27:35'),
(49, 20, 1, 900000, '2019-05-17 18:28:39', '2019-05-17 18:28:39'),
(50, 20, 2, 5, '2019-05-17 18:28:39', '2019-05-17 18:28:39'),
(51, 20, 3, 9, '2019-05-17 18:28:39', '2019-05-17 18:28:39'),
(52, 20, 4, 2000, '2019-05-17 18:28:39', '2019-05-17 18:28:39'),
(53, 21, 1, 600000, '2019-05-17 18:29:45', '2019-05-17 18:29:45'),
(54, 21, 2, 3, '2019-05-17 18:29:45', '2019-05-17 18:29:45'),
(55, 21, 3, 6, '2019-05-17 18:29:45', '2019-05-17 18:29:45'),
(56, 21, 4, 400, '2019-05-17 18:29:45', '2019-05-17 18:29:45'),
(57, 22, 1, 700000, '2019-05-17 18:30:59', '2019-05-17 18:30:59'),
(58, 22, 2, 5, '2019-05-17 18:30:59', '2019-05-17 18:30:59'),
(59, 22, 3, 9, '2019-05-17 18:30:59', '2019-05-17 18:30:59'),
(60, 22, 4, 800, '2019-05-17 18:30:59', '2019-05-17 18:30:59'),
(61, 23, 1, 1000000, '2019-05-17 18:34:31', '2019-05-17 18:34:31'),
(62, 23, 2, 5, '2019-05-17 18:34:31', '2019-05-17 18:34:31'),
(63, 23, 3, 9, '2019-05-17 18:34:31', '2019-05-17 18:34:31'),
(64, 23, 4, 950, '2019-05-17 18:34:31', '2019-05-17 18:34:31'),
(65, 24, 1, 700000, '2019-05-17 18:36:11', '2019-05-17 18:36:11'),
(66, 24, 2, 5, '2019-05-17 18:36:11', '2019-05-17 18:36:11'),
(67, 24, 3, 12, '2019-05-17 18:36:11', '2019-05-17 18:36:11'),
(68, 24, 4, 650, '2019-05-17 18:36:11', '2019-05-17 18:36:11'),
(69, 25, 1, 1000000, '2019-05-17 18:38:53', '2019-05-17 18:38:53'),
(70, 25, 2, 5, '2019-05-17 18:38:53', '2019-05-17 18:38:53'),
(71, 25, 3, 14, '2019-05-17 18:38:53', '2019-05-17 18:38:53'),
(72, 25, 4, 650, '2019-05-17 18:38:53', '2019-05-17 18:38:53'),
(73, 26, 1, 750000, '2019-05-17 18:39:44', '2019-05-17 18:39:44'),
(74, 26, 2, 3, '2019-05-17 18:39:44', '2019-05-17 18:39:44'),
(75, 26, 3, 12, '2019-05-17 18:39:44', '2019-05-17 18:39:44'),
(76, 26, 4, 650, '2019-05-17 18:39:44', '2019-05-17 18:39:44'),
(77, 27, 1, 850000, '2019-05-17 18:40:46', '2019-05-17 18:40:46'),
(78, 27, 2, 5, '2019-05-17 18:40:46', '2019-05-17 18:40:46'),
(79, 27, 3, 12, '2019-05-17 18:40:46', '2019-05-17 18:40:46'),
(80, 27, 4, 300, '2019-05-17 18:40:46', '2019-05-17 18:40:46'),
(81, 28, 1, 800000, '2019-05-17 18:42:16', '2019-05-17 18:42:16'),
(82, 28, 2, 5, '2019-05-17 18:42:16', '2019-05-17 18:42:16'),
(83, 28, 3, 9, '2019-05-17 18:42:16', '2019-05-17 18:42:16'),
(84, 28, 4, 850, '2019-05-17 18:42:16', '2019-05-17 18:42:16'),
(85, 29, 1, 1200000, '2019-05-17 18:43:13', '2019-05-17 18:43:13'),
(86, 29, 2, 5, '2019-05-17 18:43:13', '2019-05-17 18:43:13'),
(87, 29, 3, 12, '2019-05-17 18:43:13', '2019-05-17 18:43:13'),
(88, 29, 4, 200, '2019-05-17 18:43:13', '2019-05-17 18:43:13'),
(89, 30, 1, 1000000, '2019-05-17 18:43:47', '2019-05-17 18:43:47'),
(90, 30, 2, 5, '2019-05-17 18:43:47', '2019-05-17 18:43:47'),
(91, 30, 3, 12, '2019-05-17 18:43:47', '2019-05-17 18:43:47'),
(92, 30, 4, 950, '2019-05-17 18:43:47', '2019-05-17 18:43:47');
-- --------------------------------------------------------
--
-- Struktur dari tabel `kosts`
--
CREATE TABLE `kosts` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` text COLLATE utf8mb4_unicode_ci NOT NULL,
`type` enum('l','p') COLLATE utf8mb4_unicode_ci NOT NULL,
`phone_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`gmap` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`foto` 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 untuk tabel `kosts`
--
INSERT INTO `kosts` (`id`, `name`, `address`, `type`, `phone_number`, `gmap`, `foto`, `created_at`, `updated_at`) VALUES
(11, 'Rei Home', 'Jl Perjuangan 1', 'l', '085705075132', NULL, 'fotos/GmRYyKxIjaXUFo8Q6lDm7S60LqXqcG9csYZBcrxm.png', '2019-05-16 08:49:45', '2019-06-01 18:09:11'),
(12, 'Ridho', 'Jl Alam Segar 3', 'l', '081349416332', NULL, 'fotos/tZgNpj7A0aJAsWpCgb3RZfzJNp57pc0MBDjNi8H4.png', '2019-05-17 18:17:38', '2019-05-17 18:17:38'),
(13, 'Farhan', 'Jl Pramuka 10', 'l', '082159719707', NULL, 'fotos/oqzsXTTt8kn4zsPB28BAjRlSYIi6rygY68oaUoBP.png', '2019-05-17 18:18:40', '2019-05-17 18:18:40'),
(15, 'Firdaus', 'Jl Perjuangan', 'l', '081350934533', NULL, 'fotos/yAG9k2Gbu5aGxVlySfOhnsm3n3QpcBqjtG1UGGaz.png', '2019-05-17 18:21:20', '2019-05-17 18:21:20'),
(16, '<NAME>', 'jl H.Suwandi', 'l', '082255373992', NULL, 'fotos/acfh1hLvAssFW5RcENsGN5ZXmJrSi8sF61iWWbYE.png', '2019-05-17 18:23:31', '2019-05-17 18:23:31'),
(17, 'Kost Putra Jawsika', 'Jl Pramuka 5A', 'l', '082110822735', NULL, 'fotos/2toKEurwoLzYc6teEooKWBLz4setQyIEtoxqSzIR.png', '2019-05-17 18:24:44', '2019-05-17 18:24:44'),
(18, 'Kost Putra Alam P', 'Jl. Juanda', 'l', '082144443000', NULL, 'fotos/qWvzdYja4hZzYZOKMaylhQHSKxVbUQqTQJ6Aml6y.png', '2019-05-17 18:25:52', '2019-05-17 18:25:52'),
(19, 'Kost Putra Pak Tohir', 'Jl drs An<NAME>', 'l', '085845677784', NULL, 'fotos/uw02MkiybtzfiDlBSR8RNfB92MVXCi5JlaQqmpRN.png', '2019-05-17 18:27:35', '2019-05-17 18:27:35'),
(20, 'Filemon', 'Jl Pemuda VI', 'l', '08176662374', NULL, 'fotos/YZLf9vHNd9UwoP7uPJA4F0w99SFzNwjhVbIlVo2f.png', '2019-05-17 18:28:39', '2019-05-17 18:28:39'),
(21, 'Fun', 'Jl Perjuangan 1', 'p', '082153254675', NULL, 'fotos/JmUk42r1DZWTiY8xg50lsjim8daKLJde2qm2VZc3.png', '2019-05-17 18:29:45', '2019-05-17 18:29:45'),
(22, 'Kost Orange', 'Jl Perjuangan 3', 'p', '081219171992', NULL, 'fotos/oQpVwnllAiDp0R31eUXzafcQQdkG1tGXQqA5e9Ad.png', '2019-05-17 18:30:59', '2019-05-17 18:30:59'),
(23, 'Melody', 'Jl Pramuka Komp. PK', 'p', '081350345677', NULL, 'fotos/A7b0ynBYxpTyWxCsCSx68ixhl5xt7z6BsB44j2H6.png', '2019-05-17 18:34:31', '2019-05-17 18:34:31'),
(24, 'Ginanda', 'Jl Pramuka No 81', 'p', '082253252528', NULL, 'fotos/v0p9yA58J180Qvql1wHklcDeU9EOh3KMwhnMTbWg.png', '2019-05-17 18:36:11', '2019-05-17 18:36:11'),
(25, 'Fat<NAME>', 'Jl Perjuangan 4', 'p', '081347677220', NULL, 'fotos/HWcwCpVVlUhGGhNrZhXVXFybj2pd6o4Ird5xrYbu.png', '2019-05-17 18:38:53', '2019-05-17 18:38:53'),
(26, 'Kasturi', 'Jl Pramuka 6', 'p', '081347710312', NULL, 'fotos/A30D4KlJ0iR3LJKsKQXD7xyCjiJFNlE6G2FzlUpz.png', '2019-05-17 18:39:44', '2019-05-17 18:39:44'),
(27, 'Naren', 'Jl Pramuka 15', 'p', '081347968679', NULL, 'fotos/BUAPLsOARAweegzrKSl9YUukFRhUYWU1OJ3EJJgc.png', '2019-05-17 18:40:46', '2019-05-17 18:40:46'),
(28, 'Diana', 'Jl <NAME>', 'p', '08125550483', NULL, 'fotos/DZJcwxGaUdq1avq6p7fJuKorrm1ELZFAqCjZ1uE5.png', '2019-05-17 18:42:16', '2019-05-17 18:42:16'),
(29, '<NAME>', 'Jl gelatik', 'p', '082365652828', NULL, 'fotos/BgHL7DJsWcjgArZdT6fOg0hoTJSo7fLplJs8majH.png', '2019-05-17 18:43:13', '2019-05-17 18:43:13'),
(30, 'Rafa', '<NAME>', 'p', '081244323111', NULL, 'fotos/55awjD6zPvx1OH4VivIwEiqAffSgq0GmLva4jw9w.png', '2019-05-17 18:43:47', '2019-05-17 18:43:47');
-- --------------------------------------------------------
--
-- Struktur dari tabel `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data untuk tabel `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(8, '2014_10_12_000000_create_users_table', 1),
(9, '2014_10_12_100000_create_password_resets_table', 1),
(10, '2019_05_05_134116_create_criterias_table', 1),
(11, '2019_05_05_134915_create_randomindexs_table', 1),
(12, '2019_05_07_085138_create_perbandingankriterias_table', 1),
(13, '2019_05_07_130830_create_pvector_ctriterias_table', 1),
(14, '2019_05_11_205636_create_social_accounts_table', 1),
(15, '2019_05_13_031741_create_kosts_table', 2),
(17, '2019_05_13_032419_create_criteria_kost_table', 3),
(18, '2019_05_18_044615_create_preferensialternatif_table', 4);
-- --------------------------------------------------------
--
-- Struktur dari tabel `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;
-- --------------------------------------------------------
--
-- Struktur dari tabel `perbandingankriterias`
--
CREATE TABLE `perbandingankriterias` (
`id` bigint(20) UNSIGNED NOT NULL,
`criteria1_id` bigint(20) UNSIGNED NOT NULL,
`criteria2_id` bigint(20) UNSIGNED NOT NULL,
`nilai` double NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data untuk tabel `perbandingankriterias`
--
INSERT INTO `perbandingankriterias` (`id`, `criteria1_id`, `criteria2_id`, `nilai`, `user_id`, `created_at`, `updated_at`) VALUES
(8, 1, 2, 2, 1, '2019-05-15 13:27:22', '2019-05-15 13:27:54'),
(9, 1, 3, 1, 1, '2019-05-15 13:27:22', '2019-05-15 13:27:22'),
(10, 1, 4, 0.5, 1, '2019-05-15 13:27:22', '2019-05-15 13:27:22'),
(11, 2, 3, 1.5, 1, '2019-05-15 13:27:22', '2019-05-15 13:27:22'),
(12, 2, 4, 0.5, 1, '2019-05-15 13:27:22', '2019-05-15 13:27:22'),
(13, 3, 4, 0.3333333333333333, 1, '2019-05-15 13:27:22', '2019-05-15 13:27:22'),
(14, 1, 2, 2, 2, '2019-05-29 19:23:29', '2019-06-01 16:28:17'),
(15, 1, 3, 3, 2, '2019-05-29 19:23:29', '2019-06-01 16:28:17'),
(16, 1, 4, 0.5, 2, '2019-05-29 19:23:29', '2019-06-01 16:28:17'),
(17, 2, 3, 1.5, 2, '2019-05-29 19:23:29', '2019-06-01 16:28:17'),
(18, 2, 4, 0.5, 2, '2019-05-29 19:23:29', '2019-06-01 16:28:17'),
(19, 3, 4, 3, 2, '2019-05-29 19:23:29', '2019-06-01 16:28:17'),
(20, 1, 2, 2, 4, '2019-06-01 18:27:03', '2019-06-01 19:50:37'),
(21, 1, 3, 1, 4, '2019-06-01 18:27:03', '2019-06-01 19:50:37'),
(22, 1, 4, 0.5, 4, '2019-06-01 18:27:03', '2019-06-01 19:50:37'),
(23, 2, 3, 1, 4, '2019-06-01 18:27:03', '2019-06-01 19:50:37'),
(24, 2, 4, 1, 4, '2019-06-01 18:27:03', '2019-06-01 19:50:37'),
(25, 3, 4, 2, 4, '2019-06-01 18:27:03', '2019-06-01 19:50:37');
-- --------------------------------------------------------
--
-- Struktur dari tabel `preferensialternatif`
--
CREATE TABLE `preferensialternatif` (
`id` bigint(20) UNSIGNED NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`kost_id` bigint(20) UNSIGNED NOT NULL,
`preferensi` double 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 untuk tabel `preferensialternatif`
--
INSERT INTO `preferensialternatif` (`id`, `user_id`, `kost_id`, `preferensi`, `created_at`, `updated_at`) VALUES
(1, 1, 11, 0.4750100797894916, '2019-05-17 20:55:42', '2019-05-17 20:55:42'),
(2, 1, 12, 0.5451069209735177, '2019-05-17 20:55:42', '2019-05-17 20:55:42'),
(3, 1, 13, 0.5221748431307255, '2019-05-17 20:55:42', '2019-05-17 20:55:42'),
(5, 1, 15, 0.39191370992841584, '2019-05-17 20:55:42', '2019-05-17 20:55:42'),
(6, 1, 16, 0.5203964352012995, '2019-05-17 20:55:42', '2019-05-17 20:55:42'),
(7, 1, 17, 0.5091008981940355, '2019-05-17 20:55:42', '2019-05-17 20:55:42'),
(8, 1, 18, 0.460738910948995, '2019-05-17 20:55:42', '2019-05-17 20:55:42'),
(9, 1, 19, 0.4432324211735976, '2019-05-17 20:55:42', '2019-05-17 20:55:42'),
(10, 1, 20, 0.4196751528246626, '2019-05-17 20:55:42', '2019-05-17 20:55:42'),
(11, 1, 21, 0.5377269925064042, '2019-05-17 20:55:43', '2019-05-17 20:55:43'),
(12, 1, 22, 0.512902115974595, '2019-05-17 20:55:43', '2019-05-17 20:55:43'),
(13, 1, 23, 0.4558222597406034, '2019-05-17 20:55:43', '2019-05-17 20:55:43'),
(14, 1, 24, 0.5670803331194412, '2019-05-17 20:55:43', '2019-05-17 20:55:43'),
(15, 1, 25, 0.5465462861673269, '2019-05-17 20:55:43', '2019-05-17 20:55:43'),
(16, 1, 26, 0.48483290423335673, '2019-05-17 20:55:43', '2019-05-17 20:55:43'),
(17, 1, 27, 0.6947416850098511, '2019-05-17 20:55:43', '2019-05-17 20:55:43'),
(18, 1, 28, 0.48985353002437776, '2019-05-17 20:55:43', '2019-05-17 20:55:43'),
(19, 1, 29, 0.8029983360865713, '2019-05-17 20:55:43', '2019-05-17 20:55:43'),
(20, 1, 30, 0.48566159932259007, '2019-05-17 20:55:43', '2019-05-17 20:55:43'),
(21, 2, 11, 0.4750100797894916, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(22, 2, 12, 0.5451069209735177, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(23, 2, 13, 0.5221748431307255, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(25, 2, 15, 0.39191370992841584, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(26, 2, 16, 0.5203964352012995, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(27, 2, 17, 0.5091008981940355, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(28, 2, 18, 0.460738910948995, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(29, 2, 19, 0.4432324211735976, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(30, 2, 20, 0.4196751528246626, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(31, 2, 21, 0.5377269925064042, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(32, 2, 22, 0.512902115974595, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(33, 2, 23, 0.4558222597406034, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(34, 2, 24, 0.5670803331194412, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(35, 2, 25, 0.5465462861673269, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(36, 2, 26, 0.48483290423335673, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(37, 2, 27, 0.6947416850098511, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(38, 2, 28, 0.48985353002437776, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(39, 2, 29, 0.8029983360865713, '2019-05-29 21:15:46', '2019-05-29 21:15:46'),
(40, 2, 30, 0.48566159932259007, '2019-05-29 21:15:46', '2019-05-29 21:15:46');
-- --------------------------------------------------------
--
-- Struktur dari tabel `pvector_ctriterias`
--
CREATE TABLE `pvector_ctriterias` (
`id` bigint(20) UNSIGNED NOT NULL,
`criteria_id` bigint(20) UNSIGNED NOT NULL,
`nilai` double NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data untuk tabel `pvector_ctriterias`
--
INSERT INTO `pvector_ctriterias` (`id`, `criteria_id`, `nilai`, `user_id`, `created_at`, `updated_at`) VALUES
(5, 1, 0.23582381670616964, 1, '2019-05-15 13:23:33', '2019-05-15 13:27:54'),
(6, 2, 0.18315916110033756, 1, '2019-05-15 13:23:33', '2019-05-15 13:27:54'),
(7, 3, 0.1591431444372621, 1, '2019-05-15 13:23:33', '2019-05-15 13:27:54'),
(8, 4, 0.4218738777562307, 1, '2019-05-15 13:23:33', '2019-05-15 13:27:54'),
(9, 1, 0.3070241139934235, 2, '2019-05-29 19:23:29', '2019-06-01 16:28:17'),
(10, 2, 0.16601205699671173, 2, '2019-05-29 19:23:29', '2019-06-01 16:28:17'),
(11, 3, 0.24400803799780782, 2, '2019-05-29 19:23:29', '2019-06-01 16:28:17'),
(12, 4, 0.282955791012057, 2, '2019-05-29 19:23:30', '2019-06-01 16:28:17'),
(13, 1, 0.25476190476190474, 4, '2019-06-01 18:27:03', '2019-06-01 19:50:37'),
(14, 2, 0.20476190476190476, 4, '2019-06-01 18:27:03', '2019-06-01 19:50:37'),
(15, 3, 0.28809523809523807, 4, '2019-06-01 18:27:03', '2019-06-01 19:50:37'),
(16, 4, 0.2523809523809524, 4, '2019-06-01 18:27:03', '2019-06-01 19:50:37');
-- --------------------------------------------------------
--
-- Struktur dari tabel `randomindexs`
--
CREATE TABLE `randomindexs` (
`id` bigint(20) UNSIGNED NOT NULL,
`amount` int(11) NOT NULL,
`value` double(8,2) 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 untuk tabel `randomindexs`
--
INSERT INTO `randomindexs` (`id`, `amount`, `value`, `created_at`, `updated_at`) VALUES
(1, 1, 0.00, NULL, NULL),
(2, 2, 0.00, NULL, NULL),
(3, 3, 0.58, NULL, NULL),
(4, 4, 0.90, NULL, NULL),
(5, 5, 1.12, NULL, NULL),
(6, 6, 1.24, NULL, NULL),
(7, 7, 1.32, NULL, NULL),
(8, 8, 1.41, NULL, NULL),
(9, 9, 1.45, NULL, NULL),
(10, 10, 1.49, NULL, NULL),
(11, 11, 1.51, NULL, NULL),
(12, 12, 1.15, NULL, NULL),
(13, 13, 1.56, NULL, NULL),
(14, 14, 1.57, NULL, NULL),
(15, 15, 1.59, NULL, NULL);
-- --------------------------------------------------------
--
-- Struktur dari tabel `social_accounts`
--
CREATE TABLE `social_accounts` (
`id` bigint(20) UNSIGNED NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`provider_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`provider_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data untuk tabel `social_accounts`
--
INSERT INTO `social_accounts` (`id`, `user_id`, `provider_id`, `provider_name`, `created_at`, `updated_at`) VALUES
(1, 2, '117639808300532729235', 'google', '2019-05-15 13:47:25', '2019-05-15 13:47:25');
-- --------------------------------------------------------
--
-- Struktur dari tabel `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`role` enum('member','admin') COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`avatar` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'avatars/1.png',
`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 untuk tabel `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `role`, `email_verified_at`, `password`, `avatar`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'administrator A', '<EMAIL>', 'admin', NULL, '$2y$10$Wfh.jjs84iqoHulOE0aZQe4N8HCzqNppjeaG6EsgnjBdFjWc5mhEC', 'avatars/RNBj6JmPHEoDLUQ1GzuZ5rxIlM1KNLsaBtFhFmq4.png', NULL, '2019-05-12 11:49:42', '2019-05-30 07:07:19'),
(2, '<NAME>', '<EMAIL>', 'member', NULL, NULL, 'avatars/1.png', 'a8BfZlFG3CMXl36h5Dh3zxXr0wG5kPOHPq5xZTmWr782zkCwKUz46nOqNplw', '2019-05-15 13:47:25', '2019-05-15 13:47:25'),
(3, 'gui', '<EMAIL>', 'member', NULL, '$2y$10$Ta1HLcFZJ9RDLv9/UX8hsuXTCqprxFCO45j.o/b8ucb0JDTO/w32.', 'avatars/1.png', NULL, '2019-05-27 18:19:24', '2019-05-27 18:19:24'),
(4, 'fiul', '<EMAIL>', 'member', NULL, '$2y$10$H3tZQpRU9q9RgQi3fxKkI.d13tDY5XIAGZmbGPh9nxHwAaeAHZuHO', 'avatars/1.png', NULL, '2019-06-01 18:25:16', '2019-06-01 18:25:16'),
(5, 'aliffia', '<EMAIL>', 'member', NULL, '$2y$10$Qt4YqskgMZP9NrfZrtFDweOU7R28NwS4e.MmQ5zxMCl8EGiWJf/hm', 'avatars/1.png', NULL, '2019-06-01 22:13:51', '2019-06-01 22:13:51');
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `criterias`
--
ALTER TABLE `criterias`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `criteria_kost`
--
ALTER TABLE `criteria_kost`
ADD PRIMARY KEY (`id`),
ADD KEY `criteria_kost_kost_id_foreign` (`kost_id`),
ADD KEY `criteria_kost_criteria_id_foreign` (`criteria_id`);
--
-- Indeks untuk tabel `kosts`
--
ALTER TABLE `kosts`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indeks untuk tabel `perbandingankriterias`
--
ALTER TABLE `perbandingankriterias`
ADD PRIMARY KEY (`id`),
ADD KEY `perbandingankriterias_criteria1_id_foreign` (`criteria1_id`),
ADD KEY `perbandingankriterias_criteria2_id_foreign` (`criteria2_id`),
ADD KEY `perbandingankriterias_user_id_foreign` (`user_id`);
--
-- Indeks untuk tabel `preferensialternatif`
--
ALTER TABLE `preferensialternatif`
ADD PRIMARY KEY (`id`),
ADD KEY `preferensialternatif_user_id_foreign` (`user_id`),
ADD KEY `preferensialternatif_kost_id_foreign` (`kost_id`);
--
-- Indeks untuk tabel `pvector_ctriterias`
--
ALTER TABLE `pvector_ctriterias`
ADD PRIMARY KEY (`id`),
ADD KEY `pvector_ctriterias_criteria_id_foreign` (`criteria_id`),
ADD KEY `pvector_ctriterias_user_id_foreign` (`user_id`);
--
-- Indeks untuk tabel `randomindexs`
--
ALTER TABLE `randomindexs`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `social_accounts`
--
ALTER TABLE `social_accounts`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `social_accounts_provider_id_unique` (`provider_id`),
ADD KEY `social_accounts_user_id_foreign` (`user_id`);
--
-- Indeks untuk tabel `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `criterias`
--
ALTER TABLE `criterias`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT untuk tabel `criteria_kost`
--
ALTER TABLE `criteria_kost`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=93;
--
-- AUTO_INCREMENT untuk tabel `kosts`
--
ALTER TABLE `kosts`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
--
-- AUTO_INCREMENT untuk tabel `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT untuk tabel `perbandingankriterias`
--
ALTER TABLE `perbandingankriterias`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT untuk tabel `preferensialternatif`
--
ALTER TABLE `preferensialternatif`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;
--
-- AUTO_INCREMENT untuk tabel `pvector_ctriterias`
--
ALTER TABLE `pvector_ctriterias`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT untuk tabel `randomindexs`
--
ALTER TABLE `randomindexs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT untuk tabel `social_accounts`
--
ALTER TABLE `social_accounts`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT untuk tabel `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
--
--
-- Ketidakleluasaan untuk tabel `criteria_kost`
--
ALTER TABLE `criteria_kost`
ADD CONSTRAINT `criteria_kost_criteria_id_foreign` FOREIGN KEY (`criteria_id`) REFERENCES `criterias` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `criteria_kost_kost_id_foreign` FOREIGN KEY (`kost_id`) REFERENCES `kosts` (`id`) ON DELETE CASCADE;
--
-- Ketidakleluasaan untuk tabel `perbandingankriterias`
--
ALTER TABLE `perbandingankriterias`
ADD CONSTRAINT `perbandingankriterias_criteria1_id_foreign` FOREIGN KEY (`criteria1_id`) REFERENCES `criterias` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `perbandingankriterias_criteria2_id_foreign` FOREIGN KEY (`criteria2_id`) REFERENCES `criterias` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `perbandingankriterias_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
--
-- Ketidakleluasaan untuk tabel `preferensialternatif`
--
ALTER TABLE `preferensialternatif`
ADD CONSTRAINT `preferensialternatif_kost_id_foreign` FOREIGN KEY (`kost_id`) REFERENCES `kosts` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `preferensialternatif_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
--
-- Ketidakleluasaan untuk tabel `pvector_ctriterias`
--
ALTER TABLE `pvector_ctriterias`
ADD CONSTRAINT `pvector_ctriterias_criteria_id_foreign` FOREIGN KEY (`criteria_id`) REFERENCES `criterias` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `pvector_ctriterias_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
--
-- Ketidakleluasaan untuk tabel `social_accounts`
--
ALTER TABLE `social_accounts`
ADD CONSTRAINT `social_accounts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
SELECT
CONCAT
(name, '(', SUBSTRING(Occupation, 1,1),')')
FROM Occupations
ORDER BY name;
SELECT
CONCAT
('There are a total of ', COUNT(occupation), ' ', LOWER(Occupation), 's.')
FROM Occupations GROUP BY Occupation ORDER BY COUNT(Occupation), Occupation;
|
<filename>src/main/resources/sql/schema.sql
drop table if exists files;
create table files
(
path varchar(1500) primary key,
name varchar(100),
hints bigint default 1
);
create index idx_path on files(path); |
<gh_stars>1-10
--- This script generated features that use the speed and flow data by aggregating from 15 min to 1 hour.
--- The resulting table will be called by the Python pipeline script to use for prediction
--- Schema: features_speedflow_agg
--- Tables
--- onehour_aggfrom15min_ten_km_v1: Uses the fifteenmin_ten_km_v1 table to aggregate features over time
--- onehour_aggfrom15min_five_km_v1: aggregates for one hour from fifteenmin_five_km_v1
--- onehour_aggfrom15min_one_km_v1: aggregates for one hour from fifteenmin_one_km_v1
-- generate the flow features table using the data in speedflow
-- first do a group by on hecto
-------------------- 10 km aggregation --------------------
drop TABLE IF exists features_speedflow_agg.onehour_aggfrom15min_ten_km_v1;
create table features_speedflow_agg.onehour_aggfrom15min_ten_km_v1(
end_datetime timestamp without time zone,
hectokey_merged varchar,
speed_diffxlanes_maxhecto_avgseg_avg15min decimal,
speed_diffxlanes_maxhecto_maxseg_avg15min decimal,
speed_avgxlanes_diff_from_loop_ahead_avgseg decimal,
speed_avgxlanes_diff_from_loop_behind_avgseg decimal,
speed_avgxlanes_diff_from_loop_ahead_maxseg decimal,
speed_avgxlanes_diff_from_loop_behind_maxseg decimal,
speed_avgxlanes_diff_from_prev_rec_avgseg decimal,
speed_avgxlanes_diff_from_prev_rec_maxseg decimal,
flow_avgxlanes_avgseg decimal,
flow_avgxlanes_maxseg decimal,
flow_avgxlanes_minseg decimal,
speed_avgxlanes_avgseg decimal,
speed_avgxlanes_maxseg decimal,
speed_avgxlanes_minseg decimal,
speed_std_avgxlanes_maxseg decimal
);
insert into features_speedflow_agg.onehour_aggfrom15min_ten_km_v1
select
date_trunc('hour', end_datetime + interval '1 hour') AS end_datetime,
hectokey_merged,
max(speed_diffxlanes_maxhecto_avgseg) AS speed_diffxlanes_maxhecto_avgseg,
max(speed_diffxlanes_maxhecto_maxseg) AS speed_diffxlanes_maxhecto_maxseg,
max(speed_avgxlanes_diff_from_loop_ahead_avgseg) AS speed_avgxlanes_diff_from_loop_ahead_avgseg,
max(speed_avgxlanes_diff_from_loop_behind_avgseg) AS speed_avgxlanes_diff_from_loop_behind_avgseg,
max(speed_avgxlanes_diff_from_loop_ahead_maxseg) AS speed_avgxlanes_diff_from_loop_ahead_maxseg,
max(speed_avgxlanes_diff_from_loop_behind_maxseg) AS speed_avgxlanes_diff_from_loop_behind_maxseg,
max(speed_avgxlanes_diff_from_prev_rec_avgseg) AS speed_avgxlanes_diff_from_prev_rec_avgseg,
max(speed_avgxlanes_diff_from_prev_rec_maxseg) AS speed_avgxlanes_diff_from_prev_rec_maxseg,
max(flow_avgxlanes_avgseg) AS flow_avgxlanes_avgseg,
max(flow_avgxlanes_maxseg) AS flow_avgxlanes_maxseg,
min(flow_avgxlanes_minseg) AS flow_avgxlanes_minseg,
max(speed_avgxlanes_avgseg) AS speed_avgxlanes_avgseg,
max(speed_avgxlanes_maxseg) AS speed_avgxlanes_maxseg,
min(speed_avgxlanes_minseg) AS speed_avgxlanes_minseg,
max(speed_std_avgxlanes_maxseg) AS speed_std_avgxlanes_maxseg
from features_speedflow_agg.fifteenmin_ten_km_v1
GROUP BY end_datetime, hectokey_merged;
-------------------- 5 km aggregation --------------------
drop TABLE IF exists features_speedflow_agg.onehour_aggfrom15min_five_km_v1;
create table features_speedflow_agg.onehour_aggfrom15min_five_km_v1(
end_datetime timestamp without time zone,
hectokey_merged varchar,
speed_diffxlanes_maxhecto_avgseg_avg15min decimal,
speed_diffxlanes_maxhecto_maxseg_avg15min decimal,
speed_avgxlanes_diff_from_loop_ahead_avgseg decimal,
speed_avgxlanes_diff_from_loop_behind_avgseg decimal,
speed_avgxlanes_diff_from_loop_ahead_maxseg decimal,
speed_avgxlanes_diff_from_loop_behind_maxseg decimal,
speed_avgxlanes_diff_from_prev_rec_avgseg decimal,
speed_avgxlanes_diff_from_prev_rec_maxseg decimal,
flow_avgxlanes_avgseg decimal,
flow_avgxlanes_maxseg decimal,
flow_avgxlanes_minseg decimal,
speed_avgxlanes_avgseg decimal,
speed_avgxlanes_maxseg decimal,
speed_avgxlanes_minseg decimal,
speed_std_avgxlanes_maxseg decimal
);
insert into features_speedflow_agg.onehour_aggfrom15min_five_km_v1
select
date_trunc('hour', end_datetime + interval '1 hour') AS end_datetime,
hectokey_merged,
max(speed_diffxlanes_maxhecto_avgseg) AS speed_diffxlanes_maxhecto_avgseg,
max(speed_diffxlanes_maxhecto_maxseg) AS speed_diffxlanes_maxhecto_maxseg,
max(speed_avgxlanes_diff_from_loop_ahead_avgseg) AS speed_avgxlanes_diff_from_loop_ahead_avgseg,
max(speed_avgxlanes_diff_from_loop_behind_avgseg) AS speed_avgxlanes_diff_from_loop_behind_avgseg,
max(speed_avgxlanes_diff_from_loop_ahead_maxseg) AS speed_avgxlanes_diff_from_loop_ahead_maxseg,
max(speed_avgxlanes_diff_from_loop_behind_maxseg) AS speed_avgxlanes_diff_from_loop_behind_maxseg,
max(speed_avgxlanes_diff_from_prev_rec_avgseg) AS speed_avgxlanes_diff_from_prev_rec_avgseg,
max(speed_avgxlanes_diff_from_prev_rec_maxseg) AS speed_avgxlanes_diff_from_prev_rec_maxseg,
max(flow_avgxlanes_avgseg) AS flow_avgxlanes_avgseg,
max(flow_avgxlanes_maxseg) AS flow_avgxlanes_maxseg,
min(flow_avgxlanes_minseg) AS flow_avgxlanes_minseg,
max(speed_avgxlanes_avgseg) AS speed_avgxlanes_avgseg,
max(speed_avgxlanes_maxseg) AS speed_avgxlanes_maxseg,
min(speed_avgxlanes_minseg) AS speed_avgxlanes_minseg,
max(speed_std_avgxlanes_maxseg) AS speed_std_avgxlanes_maxseg
from features_speedflow_agg.fifteenmin_five_km_v1
GROUP BY end_datetime, hectokey_merged;
-------------------- 1 km aggregation --------------------
drop TABLE IF exists features_speedflow_agg.onehour_aggfrom15min_one_km_v1;
create table features_speedflow_agg.onehour_aggfrom15min_one_km_v1(
end_datetime timestamp without time zone,
hectokey_merged varchar,
speed_diffxlanes_maxhecto_avgseg_avg15min decimal,
speed_diffxlanes_maxhecto_maxseg_avg15min decimal,
speed_avgxlanes_diff_from_loop_ahead_avgseg decimal,
speed_avgxlanes_diff_from_loop_behind_avgseg decimal,
speed_avgxlanes_diff_from_loop_ahead_maxseg decimal,
speed_avgxlanes_diff_from_loop_behind_maxseg decimal,
speed_avgxlanes_diff_from_prev_rec_avgseg decimal,
speed_avgxlanes_diff_from_prev_rec_maxseg decimal,
flow_avgxlanes_avgseg decimal,
flow_avgxlanes_maxseg decimal,
flow_avgxlanes_minseg decimal,
speed_avgxlanes_avgseg decimal,
speed_avgxlanes_maxseg decimal,
speed_avgxlanes_minseg decimal,
speed_std_avgxlanes_maxseg decimal
);
insert into features_speedflow_agg.onehour_aggfrom15min_one_km_v1
select
date_trunc('hour', end_datetime + interval '1 hour') AS end_datetime,
hectokey_merged,
max(speed_diffxlanes_maxhecto_avgseg) AS speed_diffxlanes_maxhecto_avgseg,
max(speed_diffxlanes_maxhecto_maxseg) AS speed_diffxlanes_maxhecto_maxseg,
max(speed_avgxlanes_diff_from_loop_ahead_avgseg) AS speed_avgxlanes_diff_from_loop_ahead_avgseg,
max(speed_avgxlanes_diff_from_loop_behind_avgseg) AS speed_avgxlanes_diff_from_loop_behind_avgseg,
max(speed_avgxlanes_diff_from_loop_ahead_maxseg) AS speed_avgxlanes_diff_from_loop_ahead_maxseg,
max(speed_avgxlanes_diff_from_loop_behind_maxseg) AS speed_avgxlanes_diff_from_loop_behind_maxseg,
max(speed_avgxlanes_diff_from_prev_rec_avgseg) AS speed_avgxlanes_diff_from_prev_rec_avgseg,
max(speed_avgxlanes_diff_from_prev_rec_maxseg) AS speed_avgxlanes_diff_from_prev_rec_maxseg,
max(flow_avgxlanes_avgseg) AS flow_avgxlanes_avgseg,
max(flow_avgxlanes_maxseg) AS flow_avgxlanes_maxseg,
min(flow_avgxlanes_minseg) AS flow_avgxlanes_minseg,
max(speed_avgxlanes_avgseg) AS speed_avgxlanes_avgseg,
max(speed_avgxlanes_maxseg) AS speed_avgxlanes_maxseg,
min(speed_avgxlanes_minseg) AS speed_avgxlanes_minseg,
max(speed_std_avgxlanes_maxseg) AS speed_std_avgxlanes_maxseg
from features_speedflow_agg.fifteenmin_one_km_v1
GROUP BY end_datetime, hectokey_merged;
|
CREATE DATABASE dataStorage;
USE dataStorage;
CREATE TABLE macros (
calories INTEGER(11) AUTO_INCREMENT NOT NULL,
protiens INTEGER(11) AUTO_INCREMENT NOT NULL,
carbs INTEGER(11) AUTO_INCREMENT NOT NULL,
fats INTEGER(11) AUTO_INCREMENT NOT NULL,
);
-- INSERT INTO products (calories, protiens, carbs, fats)
-- VALUES ('2000', '30', 40, 20);
|
/*
Create Missing Foreign Key Indexes
----------------------------------
Missing indices are created with the following naming convention:
<table_name>_<column_list>_FK_IX
Each column in the column list is constructed by concatenating the character `C`
with the column position in the table. The column list is ordered by the column
position in the index.
Example index names:
OEHR_EMPLOYEES_C7_FK_IX
OEHR_EMPLOYEES_C10_FK_IX
OEHR_EMPLOYEES_C11_FK_IX
OPTIONS
The first parameter of the script can contain two options:
- table_prefix:
- Given value will be uppercased, a right underscore be trimmed because we need to inject a backslash
- Example: `table_prefix=hr` will result in a filter expression `table_name like 'HR\_%' escape '\'`
- If omitted, it will default to NULL and match then all tables
- dry_run:
- `dry_run=true` will only report the intended work and do nothing
- `dry_run=false` will do the intended work
- If omitted, it will default to true
EXAMPLES
@create_missing_foreign_key_indexes.sql "dry_run=true"
@create_missing_foreign_key_indexes.sql "table_prefix=co dry_run=false"
META
- Author: [<NAME>](https://ogobrecht.github.io)
- Script: [create_missing_foreign_key_indexes.sql …](https://github.com/ogobrecht/oracle-sql-scripts/)
- Last Update: 2020-12-31
*/
prompt CREATE MISSING FOREIGN KEY INDEXES
set define on serveroutput on verify off feedback off linesize 120
declare
v_table_prefix varchar2(100);
v_table_filter varchar2(100);
v_dry_run varchar2(100);
v_count pls_integer := 0;
begin
v_table_prefix := rtrim(upper(regexp_substr('&1','table_prefix=([^ ]*)',1,1,'i',1)),'_');
v_dry_run := nvl(lower(regexp_substr('&1','dry_run=(true|false)',1,1,'i',1)), 'true');
if v_table_prefix is null then
dbms_output.put_line('- for all tables');
v_table_filter := '%';
else
dbms_output.put_line('- for tables prefixed with ''' || v_table_prefix || '''');
v_table_filter := v_table_prefix || '\_%';
end if;
if v_dry_run = 'true' then
dbms_output.put_line('- dry run entered');
end if;
for i in (
--------------------------------------------------------------------------------
with needed_indexes as (
select
uc.table_name,
listagg(ucc.column_name, ',') within group(order by ucc.position) as column_list,
listagg('C' || utc.column_id, '_') within group(order by ucc.position) as column_ids
from
sys.user_constraints uc
join sys.user_cons_columns ucc on uc.constraint_name = ucc.constraint_name
join sys.user_tab_columns utc on uc.table_name = utc.table_name and ucc.column_name = utc.column_name
where
constraint_type = 'R'
and uc.table_name not like 'BIN$%'
and uc.table_name like v_table_filter escape '\'
group by
uc.table_name,
uc.constraint_name
) --select * from needed_indexes order by table_name, column_list;
,
existing_indexes as (
select
table_name,
listagg(column_name, ',') within group(order by column_position) column_list
from
user_ind_columns
where
table_name not like 'BIN$%'
and table_name like v_table_filter escape '\'
group by
table_name,
index_name
) --select * from existing_indexes order by table_name, column_list;
select
n.table_name,
n.column_list as needed_index_column,
e.column_list as existing_index_column,
case when e.column_list is null then
'create index ' || n.table_name || '_' || n.column_ids || '_FK_IX'
|| ' on ' || n.table_name || ' (' || n.column_list || ')'
end as ddl
from
needed_indexes n
left join existing_indexes e on n.table_name = e.table_name
and instr(e.column_list, n.column_list) = 1
where e.column_list is null
--------------------------------------------------------------------------------
) loop
dbms_output.put_line('- ' || i.ddl);
if v_dry_run = 'false' then
execute immediate i.ddl;
end if;
v_count := v_count + 1;
end loop;
dbms_output.put_line('- ' || v_count || ' index'
|| case when v_count != 1 then 'es' end || ' '
|| case when v_dry_run = 'false' then 'created' else 'reported' end);
end;
/
|
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The ASF licenses this file to You under the Apache License, Version 2.0
-- (the "License"); you may not use this file except in compliance with
-- the License. You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
-- tests for drop table
--
autocommit off;
--
-- test simple table - all should work
--
create table t1 ( a int);
drop table t1;
-- t1 shouldn't be found
select * from t1;
create table t1 (a int);
drop table t1;
-- t1 shouldn't be found
select * from t1;
create table t1 (a int);
drop table t1;
-- t1 shouldn't be found
select * from t1;
--
-- test table with unique constraint - all should work
--
create table t1 (a int not null unique);
drop table t1;
-- t1 shouldn't be found
select * from t1;
create table t1 (a int not null unique);
drop table t1;
-- t1 shouldn't be found
select * from t1;
create table t1 (a int not null unique);
drop table t1;
-- t1 shouldn't be found
select * from t1;
--
-- test table with primary constraint - all should work
--
create table t1 ( a int not null primary key);
drop table t1;
-- t1 shouldn't be found
select * from t1;
create table t1 ( a int not null primary key);
drop table t1;
-- t1 shouldn't be found
select * from t1;
create table t1 ( a int not null primary key);
drop table t1;
-- t1 shouldn't be found
select * from t1;
--
-- test table with check constraint - all should work
--
create table t1 ( a int check(a > 0));
drop table t1;
-- t1 shouldn't be found
select * from t1;
create table t1 ( a int check(a > 0));
drop table t1;
-- t1 shouldn't be found
select * from t1;
create table t1 ( a int check(a > 0));
drop table t1;
-- t1 shouldn't be found
select * from t1;
--
-- test table with index - all should work
--
create table t1 ( a int);
create index t1index on t1(a);
drop table t1;
-- t1 shouldn't be found
select * from t1;
create table t1 (a int);
create index t1index on t1(a);
drop table t1;
-- t1 shouldn't be found
select * from t1;
create table t1 (a int);
create index t1index on t1(a);
drop table t1;
-- t1 shouldn't be found
select * from t1;
--
-- test table with foreign key references;
--
create table t1(a int not null primary key);
create table t2(a int constraint reft1a references t1(a));
-- this should fail with a dependent constraint error
drop table t1;
-- this should fail with a dependent constraint error
drop table t1;
-- dropping dependent constraint
alter table t2 drop constraint reft1a;
-- this should work since dependent constraint was dropped
drop table t1;
-- t1 shouldn't be found
select * from t1;
-- the following should work since no referential constraint is left
insert into t2 values(1);
drop table t2;
--
-- test table with view
--
create table t1(a int, b int);
create table t2(c int, d int);
create view vt1a as select a from t1;
create view vt1b as select b from t1;
create view vt1t2 as select * from t1, t2;
create view vvt1a as select * from vt1a;
create view vvvt1a as select * from vvt1a;
-- this should fail with view being a dependent object
drop table t1;
-- this should fail with view being a dependent object
drop table t1;
-- dropping dependent views
drop view vvvt1a;
drop view vvt1a;
drop view vt1t2;
drop view vt1b;
drop view vt1a;
-- this should work after dependent views were dropped
drop table t1;
-- this shouldn't find the view
select * from vt1a;
select * from vt1b;
select * from vt1t2;
select * from vvt1a;
select * from vvvt1a;
drop table t2;
--
-- test table with prepared statement
--
create table t1(a int);
prepare t1stmt as 'select * from t1';
-- this should work, statement will be invalidated and will fail when recompiled
drop table t1;
execute t1stmt;
remove t1stmt;
create table t1(a int);
prepare t1stmt as 'select * from t1';
-- this should work, statement will be invalidated and will fail when recompiled
drop table t1;
execute t1stmt;
remove t1stmt;
create table t1(a int);
prepare t1stmt as 'select * from t1';
-- this should work, statement will be invalidated and will fail when recompiled
drop table t1;
execute t1stmt;
remove t1stmt;
--
-- test table with triggers
--
create table t1(a int);
create table t2(a int);
create trigger t1trig after insert on t1 for each row insert into t2 values(1);
-- this should work - trigger should be deleted
drop table t1;
-- t1 shouldn't be found
select * from t1;
create table t1(a int);
create trigger t1trig after insert on t1 for each row insert into t2 values(1);
-- this should work - trigger should be deleted
drop table t1;
-- t1 shouldn't be found
select * from t1;
create table t1(a int);
create trigger t1trig after insert on t1 for each row insert into t2 values(1);
-- this should work - trigger should be deleted
drop table t1;
-- t1 shouldn't be found
select * from t1;
drop table t2;
--
-- test table within the body of a trigger on another table
--
create table t1(a int);
create table t2(a int);
create trigger t2trig after insert on t2 for each row insert into t1 values(1);
-- this should work
drop table t1;
-- the following should get an error when trying to recompile the trigger action
insert into t2 values(1);
drop table t2;
create table t1(a int);
create table t2(a int);
create trigger t2trig after insert on t2 for each row insert into t1 values(1);
-- this should work
drop table t1;
-- the following should get an error when trying to recompile the trigger action
insert into t2 values(1);
drop table t2;
create table t1(a int);
create table t2(a int);
create trigger t2trig after insert on t2 for each row insert into t1 values(1);
-- this should work
drop table t1;
-- the following should get an error when trying to recompile the trigger action
insert into t2 values(1);
drop table t2;
--
-- test drop view
--
create table t1(a int);
create view vt1 as select * from t1;
create view vvt1 as select * from vt1;
-- these should fail
drop view vt1;
drop view vt1 restrict;
drop view vt1 cascade;
--
-- make sure that indexes are dropped for drop table
--
create table t2(a int not null primary key);
create table reft2(a int constraint ref1 references t2);
-- count should be 2
select count(*)
from sys.sysconglomerates c, sys.systables t
where t.tableid = c.tableid and
t.tablename = 'REFT2';
-- drop dependent referential constraint
alter table reft2 drop constraint ref1;
-- should work since dependent constraint was previously dropped
drop table t2;
-- count should be 1
select count(*)
from sys.sysconglomerates c, sys.systables t
where t.tableid = c.tableid and
t.tablename = 'REFT2';
-- unsuccessful drop table should not affect open cursor
-- beetle 4393
rollback;
create table T1 (i int, c varchar(255), d varchar(255));
insert into T1(i) values(1);
insert into T1(i) values(2);
get cursor X1 as 'select i from t1 for update of c';
prepare U as 'update t1 set c = CHAR(i) where current of X1';
next X1;
drop table T1;
execute U;
select * from T1;
-- pretend all of the above didn't happen
autocommit on;
|
<reponame>TechLauncher-its-personal/almond-cloud<filename>model/migrations/7254ac6-user_conversation.sql
DROP TABLE IF EXISTS `user_conversation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_conversation` (
`userId` int(11) not NULL,
`uniqueId` varchar(255) COLLATE utf8mb4_bin NOT NULL,
`conversationId` varchar(255) COLLATE utf8mb4_bin NOT NULL,
`previousId` varchar(255) COLLATE utf8mb4_bin NULL,
`dialogueId` varchar(255) COLLATE utf8mb4_bin NOT NULL,
`context` text COLLATE utf8mb4_bin NULL,
`agent` varchar(255) COLLATE utf8mb4_bin NULL,
-- iso 8601 string (for sqlite compatibility)
`agentTimestamp` char(24) COLLATE utf8mb4_bin NULL,
`agentTarget` text COLLATE utf8mb4_bin NULL,
`intermediateContext` text COLLATE utf8mb4_bin NULL,
`user` varchar(255) COLLATE utf8mb4_bin NOT NULL,
-- iso 8601 string (for sqlite compatibility)
`userTimestamp` char(24) COLLATE utf8mb4_bin NOT NULL,
`userTarget` text COLLATE utf8mb4_bin NOT NULL,
`vote` ENUM('up', 'down') COLLATE utf8mb4_bin NULL,
`comment` text COLLATE utf8mb4_bin NULL,
PRIMARY KEY (`userId`, `uniqueId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
|
<filename>backend/migrations/000006_add_staked_token_strategy.up.sql
ALTER TYPE strategies ADD VALUE 'staked-token-weighted-default';
COMMIT;
INSERT INTO voting_strategies (key, name, description)
VALUES ('staked-token-weighted-default', 'Staked Token Weighted', 'Vote weight is proportional to the number tokens staked.'); |
<filename>database/dexdevs_db.sql
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 09, 2018 at 03:18 PM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.2.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `dexdevs_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `batches`
--
CREATE TABLE `batches` (
`batch_id` int(11) NOT NULL,
`batch_course_id` int(11) NOT NULL,
`batch_name` varchar(32) NOT NULL,
`batch_status` enum('Active','Inactive') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `batches`
--
INSERT INTO `batches` (`batch_id`, `batch_course_id`, `batch_name`, `batch_status`) VALUES
(2, 3, 'Web - 01', 'Active'),
(3, 4, 'GD - 01', 'Active'),
(4, 4, 'Android-Evening', 'Active'),
(5, 3, 'Web - Evening', 'Inactive');
-- --------------------------------------------------------
--
-- Table structure for table `courses`
--
CREATE TABLE `courses` (
`course_id` int(11) NOT NULL,
`course_name` enum('Web Development','Graphic Designing','MS Office','Android Development') NOT NULL,
`course_starting_date` date NOT NULL,
`course_ending_date` date NOT NULL,
`course_duration` enum('2 Months','3 Months','4 Months','5 Months') NOT NULL,
`course_status` enum('Active','Inactive') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `courses`
--
INSERT INTO `courses` (`course_id`, `course_name`, `course_starting_date`, `course_ending_date`, `course_duration`, `course_status`) VALUES
(3, 'Web Development', '2018-06-05', '2018-09-05', '3 Months', 'Active'),
(4, 'Graphic Designing', '2018-06-05', '2018-07-05', '2 Months', 'Active'),
(5, 'Android Development', '2018-06-05', '2018-08-25', '3 Months', 'Active'),
(6, 'Graphic Designing', '0000-00-00', '0000-00-00', '2 Months', 'Inactive');
-- --------------------------------------------------------
--
-- Table structure for table `fee`
--
CREATE TABLE `fee` (
`fee_id` int(11) NOT NULL,
`fee_std_id` int(11) NOT NULL,
`fee_amount_received` int(11) NOT NULL,
`fee_description` enum('Registration','1st Installment','2nd Installment','3rd Installment') NOT NULL,
`fee_receiving_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `fee`
--
INSERT INTO `fee` (`fee_id`, `fee_std_id`, `fee_amount_received`, `fee_description`, `fee_receiving_date`) VALUES
(1, 2, 1000, 'Registration', '2018-06-01');
-- --------------------------------------------------------
--
-- Table structure for table `migration`
--
CREATE TABLE `migration` (
`version` varchar(180) NOT NULL,
`apply_time` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `migration`
--
INSERT INTO `migration` (`version`, `apply_time`) VALUES
('m000000_000000_base', 1527362709),
('m130524_201442_init', 1527362713);
-- --------------------------------------------------------
--
-- Table structure for table `sections`
--
CREATE TABLE `sections` (
`section_id` int(11) NOT NULL,
`section_course_id` int(11) NOT NULL,
`section_batch_id` int(11) NOT NULL,
`section_name` enum('Morning','Evening') NOT NULL,
`section_status` enum('Active','Inactive') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sections`
--
INSERT INTO `sections` (`section_id`, `section_course_id`, `section_batch_id`, `section_name`, `section_status`) VALUES
(2, 3, 3, 'Morning', 'Active'),
(3, 4, 2, 'Evening', 'Active'),
(4, 4, 4, 'Evening', 'Active');
-- --------------------------------------------------------
--
-- Table structure for table `students`
--
CREATE TABLE `students` (
`std_id` int(11) NOT NULL,
`std_course_id` int(11) NOT NULL,
`std_batch_id` int(11) NOT NULL,
`std_section_id` int(11) NOT NULL,
`std_name` varchar(32) NOT NULL,
`std_gaurdian_name` varchar(32) NOT NULL,
`std_email` varchar(60) NOT NULL,
`std_cnic` varchar(15) NOT NULL,
`std_phone` varchar(15) NOT NULL,
`std_gaurdian_phone` varchar(15) NOT NULL,
`std_address` varchar(256) NOT NULL,
`std_gender` enum('Male','Female') NOT NULL,
`std_qualification` varchar(128) NOT NULL,
`std_status` enum('Active','Inactive') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `students`
--
INSERT INTO `students` (`std_id`, `std_course_id`, `std_batch_id`, `std_section_id`, `std_name`, `std_gaurdian_name`, `std_email`, `std_cnic`, `std_phone`, `std_gaurdian_phone`, `std_address`, `std_gender`, `std_qualification`, `std_status`) VALUES
(1, 3, 2, 2, '<NAME>', 'kinza', '<EMAIL>', '30313-3789478-3', '+03-007-8699546', '+03-336-7855472', 'khanpur adda', 'Female', 'BSCS', 'Active'),
(2, 4, 3, 2, '<NAME>', 'vhsdj;sdk', '<EMAIL>', '45102-755822-5', '03347986453', '03368945676', 'ryk', 'Male', 'BSCS', 'Active');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL,
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password_reset_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` smallint(6) NOT NULL DEFAULT '10',
`created_at` int(11) NOT NULL,
`updated_at` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `username`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `status`, `created_at`, `updated_at`) VALUES
(1, 'admin', '<PASSWORD>PQfxPz37tNybMpHIanGA2Qe', <PASSWORD>', NULL, '<EMAIL>', 10, 1527362903, 1527362903),
(2, 'dexdevs', 'tZQvLUr0XWj8yaf9RcyMwACId6zQowdT', <PASSWORD>', NULL, '<EMAIL>', 10, 1527362933, 1527362933);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `batches`
--
ALTER TABLE `batches`
ADD PRIMARY KEY (`batch_id`),
ADD KEY `batch_course_id` (`batch_course_id`);
--
-- Indexes for table `courses`
--
ALTER TABLE `courses`
ADD PRIMARY KEY (`course_id`);
--
-- Indexes for table `fee`
--
ALTER TABLE `fee`
ADD PRIMARY KEY (`fee_id`),
ADD KEY `fee_std_id` (`fee_std_id`);
--
-- Indexes for table `migration`
--
ALTER TABLE `migration`
ADD PRIMARY KEY (`version`);
--
-- Indexes for table `sections`
--
ALTER TABLE `sections`
ADD PRIMARY KEY (`section_id`),
ADD KEY `section_batch_id` (`section_batch_id`),
ADD KEY `section_course_id` (`section_course_id`);
--
-- Indexes for table `students`
--
ALTER TABLE `students`
ADD PRIMARY KEY (`std_id`),
ADD KEY `std_section_id` (`std_section_id`),
ADD KEY `std_course_id` (`std_course_id`),
ADD KEY `std_batch_id` (`std_batch_id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `username` (`username`),
ADD UNIQUE KEY `email` (`email`),
ADD UNIQUE KEY `password_reset_token` (`password_reset_token`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `batches`
--
ALTER TABLE `batches`
MODIFY `batch_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `courses`
--
ALTER TABLE `courses`
MODIFY `course_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `fee`
--
ALTER TABLE `fee`
MODIFY `fee_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `sections`
--
ALTER TABLE `sections`
MODIFY `section_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `students`
--
ALTER TABLE `students`
MODIFY `std_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `batches`
--
ALTER TABLE `batches`
ADD CONSTRAINT `batches_ibfk_1` FOREIGN KEY (`batch_course_id`) REFERENCES `courses` (`course_id`);
--
-- Constraints for table `fee`
--
ALTER TABLE `fee`
ADD CONSTRAINT `fee_ibfk_1` FOREIGN KEY (`fee_std_id`) REFERENCES `students` (`std_id`);
--
-- Constraints for table `sections`
--
ALTER TABLE `sections`
ADD CONSTRAINT `sections_ibfk_1` FOREIGN KEY (`section_batch_id`) REFERENCES `batches` (`batch_id`),
ADD CONSTRAINT `sections_ibfk_2` FOREIGN KEY (`section_course_id`) REFERENCES `courses` (`course_id`);
--
-- Constraints for table `students`
--
ALTER TABLE `students`
ADD CONSTRAINT `students_ibfk_1` FOREIGN KEY (`std_section_id`) REFERENCES `sections` (`section_id`),
ADD CONSTRAINT `students_ibfk_2` FOREIGN KEY (`std_course_id`) REFERENCES `courses` (`course_id`),
ADD CONSTRAINT `students_ibfk_3` FOREIGN KEY (`std_batch_id`) REFERENCES `batches` (`batch_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 */;
|
-- @testpoint: 插入数据为拼接字符串超出设定长度测试,合理报错
DECLARE
V_C varchar(8000);
BEGIN
drop table if exists test_varchar_09;
create table test_varchar_09 (name varchar(8000));
FOR I IN 1 .. 8000 LOOP
V_C := V_C || 'q';
END LOOP;
insert into test_varchar_09 values (V_C);
END;
/
insert into test_varchar_09 select substr(name,1,7999)||'xxxxxxxxx' from test_varchar_09;
drop table test_varchar_09; |
CREATE TABLE "TableroSistemaPenal_6"(
"col_00" varchar(52) NOT NULL,
"col_01" smallint NOT NULL,
"col_02" smallint NOT NULL,
"col_03" smallint NOT NULL,
"col_04" varchar(24) NOT NULL,
"col_05" varchar(64),
"col_06" timestamp NOT NULL,
"col_07" smallint NOT NULL,
"col_08" varchar(5) NOT NULL,
"col_09" smallint NOT NULL,
"col_10" varchar(9) NOT NULL,
"col_11" smallint NOT NULL,
"col_12" varchar(51) NOT NULL
);
|
-- MySQL Script generated by MySQL Workbench
-- Mon Apr 26 19:52:03 2021
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
-- -----------------------------------------------------
-- Schema carlos-13990
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema carlos-13990
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `carlos-13990` DEFAULT CHARACTER SET utf8 ;
USE `carlos-13990` ;
-- -----------------------------------------------------
-- Table `carlos-13990`.`categoria`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `carlos-13990`.`categoria` (
`id_categoria` INT NOT NULL AUTO_INCREMENT,
`nombre` VARCHAR(45) NOT NULL,
`descripion` VARCHAR(75) NOT NULL,
PRIMARY KEY (`id_categoria`),
UNIQUE INDEX `id_categoria_UNIQUE` (`id_categoria` ASC) VISIBLE)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `carlos-13990`.`genero`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `carlos-13990`.`genero` (
`id_genero` INT NOT NULL AUTO_INCREMENT,
`descripcion` VARCHAR(45) NOT NULL,
PRIMARY KEY (`id_genero`),
UNIQUE INDEX `id_genero_UNIQUE` (`id_genero` ASC) VISIBLE)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `carlos-13990`.`departamento`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `carlos-13990`.`departamento` (
`id_departamento` INT NOT NULL AUTO_INCREMENT,
`nombre` VARCHAR(45) NOT NULL,
`descripcion` VARCHAR(75) NOT NULL,
PRIMARY KEY (`id_departamento`),
UNIQUE INDEX `id_departamento_UNIQUE` (`id_departamento` ASC) VISIBLE)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `carlos-13990`.`cliente`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `carlos-13990`.`cliente` (
`id_cliente` INT NOT NULL AUTO_INCREMENT,
`nit` VARCHAR(15) NOT NULL,
`nombre` VARCHAR(75) NOT NULL,
`fecha_nacimiento` DATE NOT NULL,
`edad` INT NOT NULL,
`correo` VARCHAR(45) NOT NULL,
`telefono` INT NULL,
`id_categoria` INT NOT NULL,
`id_genero` INT NOT NULL,
`id_departamento` INT NOT NULL,
PRIMARY KEY (`id_cliente`),
INDEX `fk_cliente_categoria_idx` (`id_categoria` ASC) VISIBLE,
INDEX `fk_cliente_genero1_idx` (`id_genero` ASC) VISIBLE,
INDEX `fk_cliente_departamento1_idx` (`id_departamento` ASC) VISIBLE,
CONSTRAINT `fk_cliente_categoria`
FOREIGN KEY (`id_categoria`)
REFERENCES `carlos-13990`.`categoria` (`id_categoria`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_cliente_genero1`
FOREIGN KEY (`id_genero`)
REFERENCES `carlos-13990`.`genero` (`id_genero`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_cliente_departamento1`
FOREIGN KEY (`id_departamento`)
REFERENCES `carlos-13990`.`departamento` (`id_departamento`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
create or alter procedure Role.[test that primary key constraint exists]
as
begin
declare @SchemaName nvarchar(max) = N'auth';
declare @TableName nvarchar(max) = N'Role';
declare @ConstraintType nvarchar(20) = N'PRIMARY KEY'
declare @ConstraintName nvarchar(max) = N'PK_Role';
declare @ColumnName nvarchar(10) = N'Id';
declare @Exists bit = 0;
declare @Message nvarchar(max) = 'PK_Role does not exist on table auth.Role.';
if exists
(
select
tc.table_name
,tc.TABLE_SCHEMA
,ccu.column_name
,ccu.CONSTRAINT_NAME
from
INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc
inner join INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE ccu
on ccu.CONSTRAINT_NAME = tc.CONSTRAINT_NAME
and ccu.table_name = tc.table_name
where
ccu.TABLE_SCHEMA = @SchemaName
and ccu.table_name = @TableName
and tc.CONSTRAINT_TYPE = @ConstraintType
and ccu.CONSTRAINT_NAME = @ConstraintName
and ccu.column_name = @ColumnName
)
begin
set @Exists = 1;
end
exec tSQLt.AssertEquals @Expected = 1
,@Actual = @Exists
,@Message = @Message;
end;
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 31, 2018 at 10:14 AM
-- Server version: 10.1.19-MariaDB
-- PHP Version: 5.5.38
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `projek_lembur`
--
-- --------------------------------------------------------
--
-- Table structure for table `biodata_karyawan`
--
CREATE TABLE `biodata_karyawan` (
`nik` varchar(50) NOT NULL,
`nama` varchar(50) NOT NULL,
`divisi` varchar(50) NOT NULL,
`lokasi` varchar(50) NOT NULL,
`inisial` varchar(20) DEFAULT NULL,
`password` varchar(50) NOT NULL,
`level` enum('user','admin') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `biodata_karyawan`
--
INSERT INTO `biodata_karyawan` (`nik`, `nama`, `divisi`, `lokasi`, `inisial`, `password`, `level`) VALUES
('1001', '<NAME>', 'IT Application', '<PASSWORD>', 'AFD', '<PASSWORD>', 'user'),
('1002', '<NAME>', 'IT Infra', 'Lintas', 'AMY', 'b5a5589d370ae4b742c859541c921c0a', 'user'),
('1003', '<NAME>', 'IT Application', 'Lintas', 'ARP', '4bbd3774d13db2c36fba588bf4d3344c', 'user'),
('1004', 'Damanhuri', 'IT Application', 'Thamrin', 'DMH', '2e0aca891f2a8aedf265edf533a6d9a8', 'user'),
('1005', '<NAME>', 'IT Application', 'Thamrin', 'MYQ', '4297f44b13955235245b2497399d7a93', 'user'),
('1006', '<NAME>', 'IT Infra', 'Cimahi', 'MHF', '4297f44b13955235245b2497399d7a93', 'user'),
('1007', '<NAME>', 'IT Application', 'Lintas', 'MBD', '4297f44b13955235245b2497399d7a93', 'admin'),
('1008', '<NAME>', 'IT Infra', 'Thamrin', 'RAS', '4297f44b13955235245b2497399d7a93', 'admin'),
('1009', 'Ramdan', 'IT Application', 'Thamrin', 'RMD', '2e0aca891f2a8aedf265edf533a6d9a8', 'user'),
('1010', '<NAME>', 'IT Application', 'Thamrin', 'SKS', '2e0aca891f2a8aedf265edf533a6d9a8', 'user');
-- --------------------------------------------------------
--
-- Table structure for table `datakaryawan`
--
CREATE TABLE `datakaryawan` (
`id` int(255) NOT NULL,
`nama` varchar(50) NOT NULL,
`nik` varchar(50) NOT NULL,
`divisi` varchar(50) NOT NULL,
`lokasi` varchar(50) NOT NULL,
`tgl` date NOT NULL,
`dari_jam` time NOT NULL,
`sampai_jam` time NOT NULL,
`agenda_lembur` text NOT NULL,
`pemberi_tugas` varchar(50) NOT NULL,
`status` int(5) NOT NULL,
`jam` time NOT NULL,
`date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `datakaryawan`
--
INSERT INTO `datakaryawan` (`id`, `nama`, `nik`, `divisi`, `lokasi`, `tgl`, `dari_jam`, `sampai_jam`, `agenda_lembur`, `pemberi_tugas`, `status`, `jam`, `date`) VALUES
(1, '<NAME>', '1001', 'IT Application', 'Thamrin', '2018-12-31', '20:00:00', '23:00:00', 'Testing blablablabla', 'M Akmal Asykar', 7, '03:00:00', '2018-12-31'),
(2, '<NAME>', '1002', 'IT Infra', 'Lintas', '2018-12-31', '21:30:00', '23:30:00', 'Cetak ulang pengajuan lembur', 'Mahfiatun Hasanah', 9, '02:00:00', '2018-12-31'),
(3, '<NAME>', '1002', 'IT Infra', 'Lintas', '2018-12-31', '21:35:00', '23:35:00', 'Coba lagi', 'Mahfiatun Hasanah', 7, '02:00:00', '2018-12-31');
-- --------------------------------------------------------
--
-- Table structure for table `monitoring`
--
CREATE TABLE `monitoring` (
`id` int(255) NOT NULL,
`nama` varchar(255) NOT NULL,
`ket` varchar(255) NOT NULL,
`awalp` datetime NOT NULL,
`akhirp` datetime NOT NULL,
`status` int(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `monitoring`
--
INSERT INTO `monitoring` (`id`, `nama`, `ket`, `awalp`, `akhirp`, `status`) VALUES
(1, '<NAME>', 'iyeay', '2018-12-31 03:30:41', '2018-12-31 03:30:52', 1),
(1, '<NAME>', '11', '2018-12-31 03:30:52', '2018-12-31 03:31:12', 6),
(1, '<NAME>', '22', '2018-12-31 03:31:12', '2018-12-31 09:31:29', 11),
(2, '<NAME>', 'acc', '2018-12-31 03:32:59', '2018-12-31 03:35:34', 13),
(3, '<NAME>', 'aa', '2018-12-31 03:35:59', '2018-12-31 03:36:07', 1),
(3, '<NAME>', 'lanjut', '2018-12-31 03:36:07', '2018-12-31 03:36:33', 6),
(3, '<NAME>', 'oke siap', '2018-12-31 03:36:33', '2018-12-31 09:37:12', 11);
-- --------------------------------------------------------
--
-- Table structure for table `tb_inbox`
--
CREATE TABLE `tb_inbox` (
`id` int(50) NOT NULL,
`nama` varchar(255) NOT NULL,
`waktu` datetime NOT NULL,
`status` int(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tb_inbox`
--
INSERT INTO `tb_inbox` (`id`, `nama`, `waktu`, `status`) VALUES
(1, '<NAME>', '2018-12-31 03:30:41', 1),
(2, '<NAME>', '2018-12-31 03:32:59', 1),
(3, '<NAME>', '2018-12-31 03:35:59', 1);
-- --------------------------------------------------------
--
-- Table structure for table `tb_outbox`
--
CREATE TABLE `tb_outbox` (
`id` int(50) NOT NULL,
`nama` varchar(255) NOT NULL,
`ket` varchar(255) NOT NULL,
`waktu` datetime NOT NULL,
`status` int(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tb_outbox`
--
INSERT INTO `tb_outbox` (`id`, `nama`, `ket`, `waktu`, `status`) VALUES
(1, '<NAME>', '22', '2018-12-31 09:31:29', 2),
(2, '<NAME>', 'acc', '2018-12-31 03:35:34', 3),
(3, '<NAME>', 'oke siap', '2018-12-31 09:37:12', 2);
-- --------------------------------------------------------
--
-- Table structure for table `tb_uang`
--
CREATE TABLE `tb_uang` (
`inisial` varchar(50) NOT NULL,
`nama` varchar(255) NOT NULL,
`nik` varchar(50) NOT NULL,
`Divisi` varchar(50) NOT NULL,
`Lokasi` varchar(50) NOT NULL,
`jam` int(255) NOT NULL,
`uang` int(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tb_uang`
--
INSERT INTO `tb_uang` (`inisial`, `nama`, `nik`, `Divisi`, `Lokasi`, `jam`, `uang`) VALUES
('AFD', '<NAME>', '1001', 'IT Application', 'Thamrin', 3, 0),
('AMY', '<NAME>', '1002', 'IT Infra', 'Lintas', 2, 0),
('ARP', 'Arip Pratama', '1003', 'IT Application', 'Lintas', 0, 0),
('DMH', 'Damanhuri', '1004', 'IT Application', 'Thamrin', 0, 0),
('MYQ', '<NAME>', '1005', 'IT Application', 'Thamrin', 0, 0),
('MHF', '<NAME>', '1006', 'IT Infra', 'Cimahi', 0, 0),
('RMD', 'Ramdan', '1009', 'IT Application', 'Thamrin', 0, 0),
('SKS', 'Si Kasep', '1010', 'IT Application', 'Thamrin', 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `tb_uang_date`
--
CREATE TABLE `tb_uang_date` (
`id` int(255) NOT NULL,
`nama` varchar(255) NOT NULL,
`divisi` varchar(255) NOT NULL,
`jam` int(255) NOT NULL,
`date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tb_uang_date`
--
INSERT INTO `tb_uang_date` (`id`, `nama`, `divisi`, `jam`, `date`) VALUES
(1, '<NAME>', 'IT Application', 3, '2018-12-31'),
(3, '<NAME>', 'IT Infra', 2, '2018-12-31');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `biodata_karyawan`
--
ALTER TABLE `biodata_karyawan`
ADD PRIMARY KEY (`nik`);
--
-- Indexes for table `datakaryawan`
--
ALTER TABLE `datakaryawan`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tb_inbox`
--
ALTER TABLE `tb_inbox`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tb_outbox`
--
ALTER TABLE `tb_outbox`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tb_uang`
--
ALTER TABLE `tb_uang`
ADD PRIMARY KEY (`nik`);
--
-- Indexes for table `tb_uang_date`
--
ALTER TABLE `tb_uang_date`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `datakaryawan`
--
ALTER TABLE `datakaryawan`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
/*!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
ALTER TABLE `hb_student_tracker`.`student`
ADD COLUMN `date_of_birth` DATETIME NULL AFTER `last_name`; |
-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 13, 2020 at 01:18 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.11
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: `elearning`
--
-- --------------------------------------------------------
--
-- Table structure for table `permissions`
--
CREATE TABLE `permissions` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`controller` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`method` 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 `permissions`
--
INSERT INTO `permissions` (`id`, `name`, `key`, `controller`, `method`, `created_at`, `updated_at`) VALUES
(1, NULL, NULL, 'Facade\\Ignition\\Http\\Controllers\\HealthCheckController', 'Facade\\Ignition\\Http\\Controllers\\HealthCheckController', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(2, NULL, NULL, 'Facade\\Ignition\\Http\\Controllers\\ExecuteSolutionController', 'Facade\\Ignition\\Http\\Controllers\\ExecuteSolutionController', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(3, NULL, NULL, 'Facade\\Ignition\\Http\\Controllers\\ShareReportController', 'Facade\\Ignition\\Http\\Controllers\\ShareReportController', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(4, NULL, NULL, 'Facade\\Ignition\\Http\\Controllers\\ScriptController', 'Facade\\Ignition\\Http\\Controllers\\ScriptController', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(5, NULL, NULL, 'Facade\\Ignition\\Http\\Controllers\\StyleController', 'Facade\\Ignition\\Http\\Controllers\\StyleController', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(6, NULL, NULL, 'Closure', 'Closure', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(7, NULL, NULL, 'App\\Http\\Controllers\\Auth\\LoginController', 'showLoginForm', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(8, NULL, NULL, 'App\\Http\\Controllers\\Auth\\LoginController', 'login', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(9, NULL, NULL, 'App\\Http\\Controllers\\Auth\\LoginController', 'logout', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(10, NULL, NULL, 'App\\Http\\Controllers\\Auth\\RegisterController', 'showRegistrationForm', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(11, NULL, NULL, 'App\\Http\\Controllers\\Auth\\RegisterController', 'register', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(12, NULL, NULL, 'App\\Http\\Controllers\\Auth\\ForgotPasswordController', 'showLinkRequestForm', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(13, NULL, NULL, 'App\\Http\\Controllers\\Auth\\ForgotPasswordController', 'sendResetLinkEmail', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(14, NULL, NULL, 'App\\Http\\Controllers\\Auth\\ResetPasswordController', 'showResetForm', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(15, NULL, NULL, 'App\\Http\\Controllers\\Auth\\ResetPasswordController', 'reset', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(16, NULL, NULL, 'App\\Http\\Controllers\\Auth\\ConfirmPasswordController', 'showConfirmForm', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(17, NULL, NULL, 'App\\Http\\Controllers\\Auth\\ConfirmPasswordController', 'confirm', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(18, NULL, NULL, 'App\\Http\\Controllers\\Auth\\LoginController', 'showAdminLoginForm', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(19, NULL, NULL, 'App\\Http\\Controllers\\Auth\\RegisterController', 'showAdminRegisterForm', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(20, NULL, NULL, 'App\\Http\\Controllers\\Auth\\LoginController', 'adminLogin', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(21, NULL, NULL, 'App\\Http\\Controllers\\Auth\\RegisterController', 'createAdmin', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(22, 'View', NULL, 'App\\Http\\Controllers\\HomeController', 'index', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(23, 'Show all Role', NULL, 'App\\Http\\Controllers\\RoleController', 'index', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(24, 'Create new role', NULL, 'App\\Http\\Controllers\\RoleController', 'create', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(25, 'Store new role', NULL, 'App\\Http\\Controllers\\RoleController', 'store', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(26, 'Show single role', NULL, 'App\\Http\\Controllers\\RoleController', 'show', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(27, 'edit role', NULL, 'App\\Http\\Controllers\\RoleController', 'edit', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(28, 'update role', NULL, 'App\\Http\\Controllers\\RoleController', 'update', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(29, 'destroy role', NULL, 'App\\Http\\Controllers\\RoleController', 'destroy', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(30, NULL, NULL, '\\Illuminate\\Routing\\ViewController', '\\Illuminate\\Routing\\ViewController', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(31, 'Show all subject', NULL, 'App\\Http\\Controllers\\SubjectController', 'index', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(32, 'Create new subject', NULL, 'App\\Http\\Controllers\\SubjectController', 'create', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(33, 'Store New subject', NULL, 'App\\Http\\Controllers\\SubjectController', 'store', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(34, 'Show single subject', NULL, 'App\\Http\\Controllers\\SubjectController', 'show', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(35, 'Edit subject', NULL, 'App\\Http\\Controllers\\SubjectController', 'edit', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(36, 'Update subject', NULL, 'App\\Http\\Controllers\\SubjectController', 'update', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(37, 'Delete subject', NULL, 'App\\Http\\Controllers\\SubjectController', 'destroy', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(38, 'Show all topic', NULL, 'App\\Http\\Controllers\\TopicController', 'index', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(39, 'Create new topic', NULL, 'App\\Http\\Controllers\\TopicController', 'create', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(40, 'store new topic', NULL, 'App\\Http\\Controllers\\TopicController', 'store', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(41, 'show single topic', NULL, 'App\\Http\\Controllers\\TopicController', 'show', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(42, 'Edit topic', NULL, 'App\\Http\\Controllers\\TopicController', 'edit', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(43, 'Update topic', NULL, 'App\\Http\\Controllers\\TopicController', 'update', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(44, 'Destroy topic', NULL, 'App\\Http\\Controllers\\TopicController', 'destroy', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(45, 'Show subject wise topics', NULL, 'App\\Http\\Controllers\\SubjectController', 'topics', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(46, 'Show all learn materials', NULL, 'App\\Http\\Controllers\\LearnController', 'index', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(47, 'Create learn materials', NULL, 'App\\Http\\Controllers\\LearnController', 'create', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(48, 'Store learn materials', NULL, 'App\\Http\\Controllers\\LearnController', 'store', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(49, 'Show single learn materials', NULL, 'App\\Http\\Controllers\\LearnController', 'show', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(50, 'Edit learn materials', NULL, 'App\\Http\\Controllers\\LearnController', 'edit', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(51, 'Update learn materials', NULL, 'App\\Http\\Controllers\\LearnController', 'update', '2020-11-13 06:10:57', '2020-11-13 06:10:57'),
(52, 'Destroy learn materials', NULL, 'App\\Http\\Controllers\\LearnController', 'destroy', '2020-11-13 06:10:57', '2020-11-13 06:10:57');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;
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>5.2.3/Database/Constraints/AFW_37_GADGT_CATGR_FK2.sql
SET DEFINE OFF;
ALTER TABLE AFW_37_GADGT_CATGR ADD (
CONSTRAINT AFW_37_GADGT_CATGR_FK2
FOREIGN KEY (REF_GADGT_CATGR)
REFERENCES AFW_37_GADGT_CATGR (SEQNC)
ON DELETE CASCADE
ENABLE VALIDATE)
/
|
<gh_stars>1-10
SELECT
bucket AS "time",
metric,
rate_time(value, lag(value) OVER w, '${__interval}') AS "value"
FROM (
SELECT
labels->>'pod' AS "metric",
$__timeGroup(time, ${__interval}) AS "bucket",
MAX(value) AS "value"
FROM metrics
WHERE
$__timeFilter("time") and
name = 'prometheus_remote_storage_succeeded_samples_total'
GROUP BY metric, bucket
ORDER BY metric, bucket
) AS m
WHERE value > 0
WINDOW w AS (PARTITION BY metric ORDER BY bucket)
ORDER BY time;
SELECT
bucket AS "time",
metric,
rate_time(value, lag(value) OVER w, '${__interval}') AS "value"
FROM (
SELECT
labels->>'pod' AS "metric",
$__timeGroup(time, ${__interval}) AS "bucket",
MAX(value) AS "value"
FROM metrics
WHERE
$__timeFilter("time") and
name = 'adapter_samples_sent_total'
GROUP BY metric, bucket
ORDER BY metric, bucket
) AS m
WHERE value > 0
WINDOW w AS (PARTITION BY metric ORDER BY bucket)
ORDER BY time; |
<reponame>none-word/Automatic-Time-Table-Creation
-- +goose Up
-- +goose StatementBegin
CREATE OR REPLACE FUNCTION updated_at_refresh()
RETURNS TRIGGER AS $$
BEGIN NEW.updated_at = NOW();
RETURN NEW;
END;
$$ LANGUAGE 'plpgsql';
CREATE TABLE "users" (
"id" UUID NOT NULL,
"email" text NOT NULL,
"password" text NOT NULL,
"privileges" jsonb DEFAULT '{}'::jsonb,
"created_at" timestamptz DEFAULT NOW(),
"updated_at" timestamptz DEFAULT NOW(),
CONSTRAINT "users_email_key" UNIQUE ("email"),
CONSTRAINT "users_pkey" PRIMARY KEY ("id")
) WITH (oids = false);
CREATE TRIGGER users_updated_at
BEFORE UPDATE ON users
FOR EACH ROW EXECUTE PROCEDURE updated_at_refresh();
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP FUNCTION updated_at_refresh();
DROP TABLE IF EXISTS "users" CASCADE;
-- +goose StatementEnd |
WITH base AS (
SELECT *
FROM {{ source('salesforce', 'opportunity_field_history') }}
), renamed AS (
SELECT
opportunityid AS opportunity_id,
id AS field_history_id,
createddate AS field_modified_at,
LOWER(field) AS opportunity_field,
newvalue__fl AS new_value_float,
newvalue__st AS new_value_string,
newvalue__bo AS new_value_boolean,
newvalue__de AS new_value_decimal,
oldvalue__fl AS old_value_float,
oldvalue__st AS old_value_string,
oldvalue__bo AS old_value_boolean,
oldvalue__de AS old_value_decimal,
COALESCE(
newvalue__fl::VARCHAR,
newvalue__st::VARCHAR,
newvalue__bo::VARCHAR,
newvalue__de::VARCHAR
) AS new_value,
COALESCE(
oldvalue__fl::VARCHAR,
oldvalue__st::VARCHAR,
oldvalue__bo::VARCHAR,
oldvalue__de::VARCHAR
) AS old_value,
isdeleted AS is_deleted,
createdbyid AS created_by_id
FROM base
)
SELECT *
FROM renamed |
<reponame>omegazip/dba_scripts
--
-- Perfsheet4's query to extract data in csv format
-- Perfsheet4_query_AWR_iostat_detail.sql -> Extracts data from dba_hist_iostat_detail, computes delta values between snapshots and rates (i.e. delta values divided over delta time)
-- output is in csv format
-- <NAME>, APR 2014
--
-- Usage:
-- Run the script from sql*plus connected as a priviledged user (need to be able to read AWR tables)
-- Can run it over sql*net from client machine or locally on db server
-- Customize the file perfsheet4_definitions.sql before running this, in particular define there the interval of analysis
@@Perfsheet4_definitions.sql
set termout on
prompt
prompt Dumping AWR data to file Perfsheet4_AWR_iostat_detail_&myfilesuffix..csv, please wait
prompt
set termout off
spool Perfsheet4_AWR_iostat_detail_&myfilesuffix..csv
select cast(min(sn.begin_interval_time) over (partition by sn.dbid,sn.snap_id) as date) snap_time, --workaround to uniform snap_time over all instances in RAC
--ss.dbid, --uncomment if you have multiple dbid in your AWR
sn.instance_number,
io.function_name,
io.filetype_name,
round((io.small_read_reqs - lag(io.small_read_reqs) over (partition by io.dbid,io.instance_number,io.function_name,io.filetype_name order by sn.snap_id nulls first)) /
(extract(hour from END_INTERVAL_TIME-begin_interval_time)*3600
-extract(hour from sn.snap_timezone - lag(sn.snap_timezone) over (partition by io.dbid,io.instance_number,io.function_name,io.filetype_name order by sn.snap_id nulls first) )*3600
--deals with daylight savings time change
+ extract(minute from END_INTERVAL_TIME-begin_interval_time)* 60
+ extract(second from END_INTERVAL_TIME-begin_interval_time)),2 ) Rate_small_read_reqs,
round((io.large_read_megabytes - lag(io.large_read_megabytes) over (partition by io.dbid,io.instance_number,io.function_name,io.filetype_name order by sn.snap_id nulls first)) /
(extract(hour from END_INTERVAL_TIME-begin_interval_time)*3600
-extract(hour from sn.snap_timezone - lag(sn.snap_timezone) over (partition by io.dbid,io.instance_number,io.function_name,io.filetype_name order by sn.snap_id nulls first) )*3600
--deals with daylight savings time change
+ extract(minute from END_INTERVAL_TIME-begin_interval_time)* 60
+ extract(second from END_INTERVAL_TIME-begin_interval_time)),2 ) Rate_large_read_megabytes,
round((io.small_write_reqs - lag(io.small_write_reqs) over (partition by io.dbid,io.instance_number,io.function_name,io.filetype_name order by sn.snap_id nulls first)) /
(extract(hour from END_INTERVAL_TIME-begin_interval_time)*3600
-extract(hour from sn.snap_timezone - lag(sn.snap_timezone) over (partition by io.dbid,io.instance_number,io.function_name,io.filetype_name order by sn.snap_id nulls first) )*3600
--deals with daylight savings time change
+ extract(minute from END_INTERVAL_TIME-begin_interval_time)* 60
+ extract(second from END_INTERVAL_TIME-begin_interval_time)),2 ) Rate_small_write_reqs,
round((io.large_write_megabytes - lag(io.large_write_megabytes) over (partition by io.dbid,io.instance_number,io.function_name,io.filetype_name order by sn.snap_id nulls first)) /
(extract(hour from END_INTERVAL_TIME-begin_interval_time)*3600
-extract(hour from sn.snap_timezone - lag(sn.snap_timezone) over (partition by io.dbid,io.instance_number,io.function_name,io.filetype_name order by sn.snap_id nulls first) )*3600
--deals with daylight savings time change
+ extract(minute from END_INTERVAL_TIME-begin_interval_time)* 60
+ extract(second from END_INTERVAL_TIME-begin_interval_time)),2 ) Rate_large_write_megabytes,
round((io.wait_time - lag(io.wait_time) over (partition by io.dbid,io.instance_number,io.function_name,io.filetype_name order by sn.snap_id nulls first)) /
(extract(hour from END_INTERVAL_TIME-begin_interval_time)*3600
-extract(hour from sn.snap_timezone - lag(sn.snap_timezone) over (partition by io.dbid,io.instance_number,io.function_name,io.filetype_name order by sn.snap_id nulls first) )*3600
--deals with daylight savings time change
+ extract(minute from END_INTERVAL_TIME-begin_interval_time)* 60
+ extract(second from END_INTERVAL_TIME-begin_interval_time)),2 ) Rate_wait_time
from dba_hist_iostat_detail io,
dba_hist_snapshot sn
where
sn.snap_id = io.snap_id
and sn.dbid = io.dbid
and sn.instance_number = io.instance_number
and sn.begin_interval_time &delta_time_where_clause
order by sn.snap_id;
spool off
|
<gh_stars>1000+
-- 2020-11-17T07:57:58.314Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,578551,0,TO_TIMESTAMP('2020-11-16 09:57:58','YYYY-MM-DD HH24:MI:SS'),100,'U','Y','PRINTER_OPTS_IsPrintLogo','Print Logo',TO_TIMESTAMP('2020-11-16 09:57:58','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2020-11-16T07:57:58.337Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, CommitWarning,Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Element_ID, t.CommitWarning,t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' OR l.IsBaseLanguage='Y') AND t.AD_Element_ID=578551 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- 2020-11-16T07:58:07.571Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', PrintName='Logo drucken',Updated=TO_TIMESTAMP('2020-11-16 09:58:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578551 AND AD_Language='de_CH'
;
-- 2020-11-16T07:58:07.716Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578551,'de_CH')
;
-- 2020-11-16T07:58:12.839Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', PrintName='Logo drucken',Updated=TO_TIMESTAMP('2020-11-16 09:58:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578551 AND AD_Language='de_DE'
;
-- 2020-11-16T07:58:12.841Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578551,'de_DE')
;
-- 2020-11-16T07:58:12.849Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(578551,'de_DE')
;
-- 2020-11-16T07:58:12.853Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Logo drucken', Name='PRINTER_OPTS_IsPrintLogo' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578551)
;
-- 2020-11-16T07:58:36.374Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,578552,0,TO_TIMESTAMP('2020-11-16 09:58:36','YYYY-MM-DD HH24:MI:SS'),100,'U','Y','PRINTER_OPTS_IsPrintTotals','Print Totals',TO_TIMESTAMP('2020-11-16 09:58:36','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2020-11-16T07:58:36.378Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, CommitWarning,Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Element_ID, t.CommitWarning,t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' OR l.IsBaseLanguage='Y') AND t.AD_Element_ID=578552 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- 2020-11-16T07:58:41.419Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element SET EntityType='D',Updated=TO_TIMESTAMP('2020-11-16 09:58:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578552
;
-- 2020-11-16T07:58:50.731Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', PrintName='Gesamtsummen drucken',Updated=TO_TIMESTAMP('2020-11-16 09:58:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578552 AND AD_Language='de_DE'
;
-- 2020-11-16T07:58:50.732Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578552,'de_DE')
;
-- 2020-11-16T07:58:50.740Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(578552,'de_DE')
;
-- 2020-11-16T07:58:50.741Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Gesamtsummen drucken', Name='PRINTER_OPTS_IsPrintTotals' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578552)
;
-- 2020-11-16T07:59:04.581Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', PrintName='Gesamtsummen drucken',Updated=TO_TIMESTAMP('2020-11-16 09:59:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578552 AND AD_Language='de_CH'
;
-- 2020-11-16T07:59:04.582Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578552,'de_CH')
;
-- 2020-11-16T07:59:10.024Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element SET EntityType='D',Updated=TO_TIMESTAMP('2020-11-16 09:59:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578551
;
-- 2020-11-16T07:59:26.219Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element SET ColumnName='PRINTER_OPTS_IsPrintLogo',Updated=TO_TIMESTAMP('2020-11-16 09:59:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578551
;
-- 2020-11-16T07:59:26.225Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='PRINTER_OPTS_IsPrintLogo', Name='PRINTER_OPTS_IsPrintLogo', Description=NULL, Help=NULL WHERE AD_Element_ID=578551
;
-- 2020-11-16T07:59:26.225Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='PRINTER_OPTS_IsPrintLogo', Name='PRINTER_OPTS_IsPrintLogo', Description=NULL, Help=NULL, AD_Element_ID=578551 WHERE UPPER(ColumnName)='PRINTER_OPTS_ISPRINTLOGO' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2020-11-16T07:59:26.230Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='PRINTER_OPTS_IsPrintLogo', Name='PRINTER_OPTS_IsPrintLogo', Description=NULL, Help=NULL WHERE AD_Element_ID=578551 AND IsCentrallyMaintained='Y'
;
-- 2020-11-16T08:00:16.638Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,578551,0,110,541881,20,'PRINTER_OPTS_IsPrintLogo',TO_TIMESTAMP('2020-11-16 10:00:16','YYYY-MM-DD HH24:MI:SS'),100,'Y','U',0,'Y','N','Y','N','Y','N','PRINTER_OPTS_IsPrintLogo',10,TO_TIMESTAMP('2020-11-16 10:00:16','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2020-11-16T08:00:16.642Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Process_Para_ID=541881 AND NOT EXISTS (SELECT 1 FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 2020-11-16T08:00:33.213Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element SET ColumnName='PRINTER_OPTS_IsPrintTotals',Updated=TO_TIMESTAMP('2020-11-16 10:00:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578552
;
-- 2020-11-16T08:00:33.215Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='PRINTER_OPTS_IsPrintTotals', Name='PRINTER_OPTS_IsPrintTotals', Description=NULL, Help=NULL WHERE AD_Element_ID=578552
;
-- 2020-11-16T08:00:33.216Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='PRINTER_OPTS_IsPrintTotals', Name='PRINTER_OPTS_IsPrintTotals', Description=NULL, Help=NULL, AD_Element_ID=578552 WHERE UPPER(ColumnName)='PRINTER_OPTS_ISPRINTTOTALS' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2020-11-16T08:00:33.217Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='PRINTER_OPTS_IsPrintTotals', Name='PRINTER_OPTS_IsPrintTotals', Description=NULL, Help=NULL WHERE AD_Element_ID=578552 AND IsCentrallyMaintained='Y'
;
-- 2020-11-16T08:01:00.913Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,110,541882,20,'PRINTER_OPTS_IsPrintTotals',TO_TIMESTAMP('2020-11-16 10:01:00','YYYY-MM-DD HH24:MI:SS'),100,'Y','U',1,'Y','N','Y','N','Y','N','PRINTER_OPTS_IsPrintTotals',20,TO_TIMESTAMP('2020-11-16 10:01:00','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2020-11-16T08:01:00.915Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Process_Para_ID=541882 AND NOT EXISTS (SELECT 1 FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 2020-11-16T08:01:06.934Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET FieldLength=1,Updated=TO_TIMESTAMP('2020-11-16 10:01:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541881
;
-- 2020-11-16T08:01:10.409Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET EntityType='D',Updated=TO_TIMESTAMP('2020-11-16 10:01:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541881
;
-- 2020-11-16T08:01:14.418Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET EntityType='D',Updated=TO_TIMESTAMP('2020-11-16 10:01:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541882
;
-- 2020-11-16T08:01:57.226Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET AD_Element_ID=578552,Updated=TO_TIMESTAMP('2020-11-16 10:01:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541882
;
-- 2020-11-16T08:02:11.606Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET PrintName='Gesamtbeträge drucken',Updated=TO_TIMESTAMP('2020-11-16 10:02:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578552 AND AD_Language='de_CH'
;
-- 2020-11-16T08:02:11.607Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578552,'de_CH')
;
-- 2020-11-16T08:02:16.784Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET PrintName='Gesamtbeträge drucken',Updated=TO_TIMESTAMP('2020-11-16 10:02:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578552 AND AD_Language='de_DE'
;
-- 2020-11-16T08:02:16.785Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578552,'de_DE')
;
-- 2020-11-16T08:02:16.792Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(578552,'de_DE')
;
-- 2020-11-16T08:02:16.793Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Gesamtbeträge drucken', Name='PRINTER_OPTS_IsPrintTotals' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578552)
;
-- 2020-11-16T08:02:28.299Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2020-11-16 10:02:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578552 AND AD_Language='en_US'
;
-- 2020-11-16T08:02:28.300Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578552,'en_US')
;
-- 2020-11-16T08:02:40.166Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2020-11-16 10:02:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578551 AND AD_Language='en_US'
;
-- 2020-11-16T08:02:40.168Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578551,'en_US')
;
|
--
--
--
-- @author <NAME> (<EMAIL>)
-- @creation-date 2004-12-18
-- @arch-tag: 46a0ecc0-b123-44dd-9e91-4a565f742071
-- @cvs-id $Id: upgrade-0.4d1-0.4d2.sql,v 1.1.1.1 2010/10/21 12:47:26 po34demo Exp $
--
alter table txt drop constraint txt_object_id_fk;
alter table txt add constraint txt_object_id_fk foreign key (object_id) references acs_objects (object_id) on delete cascade; |
<gh_stars>0
-- start query 1 in stream 0 using template query92.tpl
select
sum(ws_ext_discount_amt) as "Excess_Discount_Amount"
from
web_sales
,item
,date_dim
where
i_manufact_id = 269
and i_item_sk = ws_item_sk
and cast(d_date as timestamp) between cast('1998-03-18' as timestamp) and
date_add(cast('1998-03-18' as timestamp), 90)
and d_date_sk = ws_sold_date_sk
and ws_ext_discount_amt
> (
SELECT
1.3 * avg(ws_ext_discount_amt)
FROM
web_sales
,date_dim
WHERE
ws_item_sk = i_item_sk
and cast(d_date as timestamp) between cast('1998-03-18' as timestamp) and
date_add(cast('1998-03-18' as timestamp),90)
and d_date_sk = ws_sold_date_sk
)
order by sum(ws_ext_discount_amt)
limit 100;
-- end query 1 in stream 0 using template query92.tpl
|
INSERT INTO `@prefix@api_tab_menu` (`Description`, `Description_courte`, `id_categorie`, `Lien`) VALUES ('activity-list.title', 'activity-list.title', '4', 'activity-list');
INSERT INTO `@prefix@api_tab_menu` (`Description`, `Description_courte`, `id_categorie`, `Lien`) VALUES ('activity-rapport-client.title', 'activity-rapport-client.title', '4', 'activity-rapport-client');
UPDATE `@prefix@api_tab_menu_rangs_droit` a
INNER JOIN `@prefix@api_tab_menu` b
ON b.`Lien` = 'activity-list'
INNER JOIN `@prefix@api_tab_rangs` c
ON c.`id` = a.`id_rang`
AND c.`indice` in (1,10,20,30)
SET `id_menu` = concat(`id_menu`,b.`id`,';');
UPDATE `@prefix@api_tab_menu_rangs_droit` a
INNER JOIN `@prefix@api_tab_menu` b
ON b.`Lien` = 'activity-rapport-client'
INNER JOIN `@prefix@api_tab_rangs` c
ON c.`id` = a.`id_rang`
AND c.`indice` in (1,10,20,30)
SET `id_menu` = concat(`id_menu`,b.`id`,';'); |
<reponame>andreylipattsev/almanac.httparchive.org
#standardSQL
# frequency of the number of element types used on a page
# returns all the data we need from _element_count
CREATE TEMPORARY FUNCTION get_element_type_COUNT(element_count_string STRING)
RETURNS INT64 LANGUAGE js AS '''
try {
if (!element_count_string) return null;
var element_count = JSON.parse(element_count_string);
if (Array.isArray(element_count) || typeof element_count != 'object') return null;
return Object.keys(element_count).length;
} catch (e) {}
return null;
''';
SELECT
_TABLE_SUFFIX AS client,
get_element_type_COUNT(JSON_EXTRACT_SCALAR(payload, '$._element_count')) AS element_types,
COUNT(0) AS freq
FROM
`httparchive.pages.2020_08_01_*`
GROUP BY
element_types,
client
ORDER BY
element_types,
client
|
create function f()
begin
print 'no return';
end; |
# Run this script to create the MYSQL DB for the shaopping cart sample and populate the DB
# Run this script as follows => mysql -u root -proot < ./Init_Sample_Query.sql
drop database if exists shopping_cart_db;
create database shopping_cart_db;
use shopping_cart_db;
source ./CreateDB.sql;
|
ALTER TABLE PERSON_OPPFOLGINGSTILFELLE ADD COLUMN virksomhetsnavn VARCHAR DEFAULT NULL; |
<reponame>Cedric-Jefferson/projet_parfumerie
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1:3306
-- Généré le : mar. 04 fév. 2020 à 04:25
-- Version du serveur : 5.7.19
-- Version de PHP : 5.6.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de données : `parfurmerie`
--
-- --------------------------------------------------------
--
-- Structure de la table `client`
--
DROP TABLE IF EXISTS `client`;
CREATE TABLE IF NOT EXISTS `client` (
`id_client` int(10) NOT NULL AUTO_INCREMENT,
`num_client` varchar(20) NOT NULL,
`adresse` varchar(20) NOT NULL,
`telephone` varchar(20) NOT NULL,
`nom_client` varchar(20) NOT NULL,
PRIMARY KEY (`id_client`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `commande`
--
DROP TABLE IF EXISTS `commande`;
CREATE TABLE IF NOT EXISTS `commande` (
`id_comm` int(10) NOT NULL AUTO_INCREMENT,
`num_commande` int(10) NOT NULL,
`date` date NOT NULL,
`montant` float NOT NULL,
`id_produit` int(11) NOT NULL,
PRIMARY KEY (`id_comm`),
KEY `id_prod_fkey` (`id_produit`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `complementprix`
--
DROP TABLE IF EXISTS `complementprix`;
CREATE TABLE IF NOT EXISTS `complementprix` (
`id_comPrix` int(11) NOT NULL AUTO_INCREMENT,
`fraisService` float NOT NULL,
`fraisLivraison` float NOT NULL,
`promo` float NOT NULL,
`accompte` float NOT NULL,
`num_commande` int(11) NOT NULL,
PRIMARY KEY (`id_comPrix`),
KEY `num_comm_fkey` (`num_commande`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `devise`
--
DROP TABLE IF EXISTS `devise`;
CREATE TABLE IF NOT EXISTS `devise` (
`id_devise` int(10) NOT NULL AUTO_INCREMENT,
`devise1` varchar(20) NOT NULL,
`devise2` varchar(20) NOT NULL,
`conversion1vers2` float NOT NULL,
`conversion2vers1` float NOT NULL,
PRIMARY KEY (`id_devise`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `facture`
--
DROP TABLE IF EXISTS `facture`;
CREATE TABLE IF NOT EXISTS `facture` (
`id_facture` int(11) NOT NULL AUTO_INCREMENT,
`num_facture` int(11) NOT NULL,
`date` date NOT NULL,
`montant` float NOT NULL,
PRIMARY KEY (`id_facture`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `fournisseur`
--
DROP TABLE IF EXISTS `fournisseur`;
CREATE TABLE IF NOT EXISTS `fournisseur` (
`id_fournisseur` int(11) NOT NULL AUTO_INCREMENT,
`nom_fournisseur` varchar(20) NOT NULL,
`url` varchar(20) NOT NULL,
`supplier` varchar(20) NOT NULL,
PRIMARY KEY (`id_fournisseur`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `prix`
--
DROP TABLE IF EXISTS `prix`;
CREATE TABLE IF NOT EXISTS `prix` (
`id_prix` int(10) NOT NULL AUTO_INCREMENT,
`prixAchat` float NOT NULL,
`prixVente` float NOT NULL,
`saving` float NOT NULL,
`num_produit` int(10) NOT NULL,
PRIMARY KEY (`id_prix`),
KEY `num_prod_fkey` (`num_produit`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `produit`
--
DROP TABLE IF EXISTS `produit`;
CREATE TABLE IF NOT EXISTS `produit` (
`id_produit` int(10) NOT NULL AUTO_INCREMENT,
`nom_produit` varchar(20) NOT NULL,
`type` varchar(20) NOT NULL,
`volume` int(10) NOT NULL,
`id_fournisseur` int(10) NOT NULL,
`description` text NOT NULL,
`qtestock` int(10) NOT NULL,
`image` varchar(50) NOT NULL,
`genre` varchar(50) NOT NULL,
PRIMARY KEY (`id_produit`),
KEY `id_fournisseur_fkey` (`id_fournisseur`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `type`
--
DROP TABLE IF EXISTS `type`;
CREATE TABLE IF NOT EXISTS `type` (
`id_type` int(11) NOT NULL AUTO_INCREMENT,
`nom_type` varchar(20) NOT NULL,
PRIMARY KEY (`id_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`id_usr` int(11) NOT NULL AUTO_INCREMENT,
`nom_usr` varchar(50) NOT NULL,
`prenom_usr` varchar(50) NOT NULL,
`num_adherent` int(50) NOT NULL,
`password` varchar(50) NOT NULL,
`date_de_naissance` date NOT NULL,
`email` varchar(50) NOT NULL,
`id_usr_forum` int(11) NOT NULL,
`id_session` int(11) NOT NULL,
PRIMARY KEY (`id_usr`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
--
-- Déchargement des données de la table `users`
--
INSERT INTO `users` (`id_usr`, `nom_usr`, `prenom_usr`, `num_adherent`, `password`, `date_de_naissance`, `email`, `id_usr_forum`, `id_session`) VALUES
(17, 'Lagrange', 'Fréderic', 678171, '', '2019-06-18', '<EMAIL>', 183091, 561984),
(7, 'testeur', 'azer', 456789, 'azer', '2019-06-28', '<EMAIL>', 456789, 456789),
(12, 'eric', 'chris', 114336, 'chris', '2019-06-07', '<EMAIL>', 158984, 33329);
--
-- Contraintes pour les tables déchargées
--
--
-- Contraintes pour la table `commande`
--
ALTER TABLE `commande`
ADD CONSTRAINT `id_prod_fkey` FOREIGN KEY (`id_produit`) REFERENCES `produit` (`id_produit`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Contraintes pour la table `complementprix`
--
ALTER TABLE `complementprix`
ADD CONSTRAINT `num_comm_fkey` FOREIGN KEY (`num_commande`) REFERENCES `commande` (`id_comm`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Contraintes pour la table `prix`
--
ALTER TABLE `prix`
ADD CONSTRAINT `num_prod_fkey` FOREIGN KEY (`num_produit`) REFERENCES `produit` (`id_produit`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Contraintes pour la table `produit`
--
ALTER TABLE `produit`
ADD CONSTRAINT `id_fournisseur_fkey` FOREIGN KEY (`id_fournisseur`) REFERENCES `fournisseur` (`id_fournisseur`) 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 */;
|
--creates a view for today's cases on a district level for austria to use as a WFS
create or replace view austria_cases_today as
select
ag.name,
ag.geom,
ca.*
from
(select distinct on (ca."GKZ")
ca."GKZ" as gkz,
ca."Time",
ca."AnzahlFaelle",
ca."AnzahlFaelle7Tage",
replace(ca."SiebenTageInzidenzFaelle", ',', '.')::numeric as "SiebenTageInzidenzFaelle",
ca."AnzahlTotSum",
ca."AnzahlGeheiltSum",
ca.insertion_date
from
covid19_austria as ca
order by ca."GKZ", to_date(ca."Time", 'dd.mm.YYYY') desc nulls last) as ca
join
austria_geoms as ag on ca.gkz = ag.id::integer |
<filename>Eve.ESI.Database/Tables/AccountLink.sql
CREATE TABLE [dbo].[AccountLink]
(
[Id] INT IDENTITY(1,1) PRIMARY KEY,
[TypeID] TINYINT NOT NULL,
[AccountGuid] UNIQUEIDENTIFIER NOT NULL,
[Link] VARCHAR(MAX) NOT NULL
)
|
<reponame>dmc0/db-scripts<gh_stars>0
/* MIT License
Copyright (c) 2020 <NAME>
DESCRIPTION: This script is based on the disk and table reports available in SSMS for
a SQL Server database. I captured the SQL Profiler activity while running those reports
and modified them to suit most peoples' needs. I also modified the code so that it will
not fail no matter how many tables are locked up and not allowing row counts.
This means that this code will succeed even in cases where the SSMS reports will fail due to
extreme and prolonged locking.
PURPOSE: The motivation for the script was to obtain the row counts of as many tables as
possible even if some are locked and their rows cannot be counted.
If it fails to get the row_count for a table, it will display an error message and the
get_count_failed value will remain set to 1 and it's row_count will be -1.
If an error like this occurs, the results will show the get_count_failed tables at the top
to make you more aware that some row counts could not be determined.
REQUIREMENT: You need to enter the database names you want the row counts for in the
VALUES list for INSERT #database_names([database_name])
*/
IF OBJECT_ID('tempdb..#database_names') IS NOT NULL DROP TABLE #database_names
CREATE TABLE #database_names([database_name] NVARCHAR(128))
-- !!!!! Enter the names of the databases you want to get the row counts for !!!!!
INSERT #database_names([database_name])
VALUES ('DWConfiguration') --DWConfiguration
, ('DWDiagnostics') --DWDiagnostics
, ('')
-- This is in milliseconds. IF you need to increase it, you need to break the connection
-- before a new value will take effect.
SET LOCK_TIMEOUT 1800;
DECLARE @debug BIT = 0
SET NOCOUNT ON
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
BEGIN TRY
IF OBJECT_ID('tempdb..#table_row_counts') IS NOT NULL
DROP TABLE #table_row_counts
IF OBJECT_ID('tempdb..#table_names') IS NOT NULL
DROP TABLE #table_names
DECLARE @table_count INT = 0
DECLARE @table_pos INT = 0
DECLARE @table_name NVARCHAR(128)
DECLARE @object_id INT = 0
DECLARE @table_row_count INT = 0
DECLARE @database_count INT = 0
DECLARE @database_pos INT = 0
DECLARE @database_name NVARCHAR(128)
DECLARE @schema_name NVARCHAR(128)
DECLARE @table_create_date datetime
DECLARE @user_msg NVARCHAR(2000)
DECLARE @sql NVARCHAR(4000)
CREATE TABLE #table_row_counts(row_id INT identity(1, 1)
, [database_name] NVARCHAR(128)
, [schema_name] nvarchar(128)
, [table_name] nvarchar(128)
, row_count BIGINT DEFAULT(-1)
, table_create_date datetime
, get_count_failed BIT DEFAULT(1))
CREATE TABLE #table_names(row_id INT
, [database_name] NVARCHAR(128)
, [schema_name] NVARCHAR(128)
, [table_name] nvarchar(128)
, [object_id] INT
, table_create_date datetime)
SELECT @database_count = COUNT(DISTINCT [database_name])
FROM #database_names
WHERE LEN(ISNULL([database_name], '')) > 0
SET @user_msg = '@database_count = ' + CAST(@database_count AS NVARCHAR(24))
RAISERROR(@user_msg, 10, 1) WITH NOWAIT
UPDATE #database_names
SET [database_name] = REPLACE(REPLACE([database_name], '[', ''), ']', '')
WHERE [database_name] Like '%![%' ESCAPE '!' OR [database_name] Like '%!]%' ESCAPE '!'
SET @database_pos = 0
WHILE @database_pos < @database_count
BEGIN
SET @database_pos += 1
;WITH cte as (SELECT DISTINCT [database_name]
FROM #database_names
WHERE LEN(ISNULL([database_name], '')) > 0)
SELECT @database_name = [database_name]
FROM (SELECT [database_name], row_id = RANK() OVER (ORDER BY [database_name])
FROM cte) d
WHERE d.row_id = @database_pos
IF db_id(@database_name) is null
BEGIN
SET @user_msg = '@database_name = ' + @database_name + ' does not exist'
RAISERROR(@user_msg, 16, 1) WITH NOWAIT
END
SET @user_msg = '@database_name = ' + @database_name
RAISERROR(@user_msg, 10, 1) WITH NOWAIT
TRUNCATE TABLE #table_names
SET @sql = 'INSERT #table_names(row_id, [database_name], [schema_name], [table_name], [object_id], [table_create_date])
SELECT row_id = ROW_NUMBER() OVER (ORDER BY s.name, t.[name]), ''' + @database_name + ''', [schema_name] = s.name, t.[name], t.[object_id], t.create_date
FROM [' + @database_name + '].sys.tables t
INNER JOIN [' + @database_name + '].sys.schemas s
ON t.schema_id = s.schema_id'
EXEC sp_executesql @sql
SET @table_count = @@ROWCOUNT
SET @table_pos = 0
WHILE @table_pos < @table_count
BEGIN
BEGIN TRY
SET @table_pos += 1
SELECT @schema_name = [schema_name]
, @table_name = [table_name]
, @object_id = [object_id]
, @table_create_date = [table_create_date]
FROM #table_names
WHERE row_id = @table_pos
SET @user_msg = '@table_name = ' + @table_name
RAISERROR(@user_msg, 10, 1) WITH NOWAIT
INSERT #table_row_counts([database_name], [schema_name], [table_name], [table_create_date])
VALUES(@database_name, @schema_name, @table_name, @table_create_date)
SET @sql = 'SELECT @table_row_count = SUM(st.row_count)
FROM (SELECT [object_id], index_id
FROM [' + @database_name + '].sys.indexes i
WHERE [object_id] = @object_id) i
INNER JOIN [' + @database_name + '].sys.dm_db_partition_stats st WITH (READCOMMITTED, READPAST)
ON st.[object_id] = @object_id and i.index_id = st.index_id
WHERE i.index_id < 2'
IF @debug = 1
BEGIN
SET @user_msg = '@sql = ' + @sql
RAISERROR(@user_msg, 10, 1) WITH NOWAIT
END
EXEC sp_executesql @sql, N'@object_id INT, @table_row_count INT OUTPUT', @object_id = @object_id, @table_row_count = @table_row_count OUTPUT
UPDATE #table_row_counts
SET row_count = @table_row_count
, get_count_failed = 0
WHERE [database_name] = @database_name
AND [schema_name] = @schema_name
AND table_name = @table_name
SET @user_msg = '@table_name = ' + @table_name + ', @table_row_count = ' + CAST(@table_row_count AS NVARCHAR(24))
RAISERROR(@user_msg, 10, 1) WITH NOWAIT
END TRY
BEGIN CATCH
SET @user_msg = '@table_name = ' + ISNULL(@table_name, '') + ': ' + ERROR_MESSAGE()
SELECT [!!! ERROR !!!] = @user_msg
RAISERROR(@user_msg, 16, 1) WITH NOWAIT
END CATCH
END
END
SELECT 'Sorted by row count' AS [report_name], [database_name], [schema_name], table_name, [row_count_disp] = FORMAT([row_count], '#,##0'), [get_count_failed], [table_create_date]
FROM #table_row_counts
order by [get_count_failed] desc, [row_count] desc, [database_name], table_name
SELECT 'Sorted by database, table' AS [report_name], [database_name], [schema_name], table_name, [row_count_disp] = FORMAT([row_count], '#,##0'), [get_count_failed], [table_create_date]
FROM #table_row_counts
order by [get_count_failed] desc, [database_name], table_name
END TRY
BEGIN CATCH
THROW;
END CATCH
|
<gh_stars>1-10
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 08, 2016 at 05:33 PM
-- Server version: 10.1.9-MariaDB
-- PHP Version: 5.6.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `dtdd`
--
-- --------------------------------------------------------
--
-- Table structure for table `cthoadon`
--
CREATE TABLE `cthoadon` (
`cthd_maso` int(11) NOT NULL,
`cthd_hoadon` varchar(64) NOT NULL,
`cthd_dienthoai` int(11) NOT NULL,
`cthd_soluong` int(11) NOT NULL,
`cthd_gia` int(11) NOT NULL,
`cthd_tinhtrang` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `cthoadon`
--
INSERT INTO `cthoadon` (`cthd_maso`, `cthd_hoadon`, `cthd_dienthoai`, `cthd_soluong`, `cthd_gia`, `cthd_tinhtrang`) VALUES
(6, '20161125052350000000', 9, 1, 3190000, 0),
(7, '20161125052350000000', 1, 1, 7990000, 0),
(8, '20161125165417000000', 6, 1, 5990000, 0),
(9, '20161126022203000000', 2, 2, 9980000, 2),
(10, '20161207091320000000', 17, 1, 27990000, 0),
(11, '20161207091447000000', 15, 1, 4490000, 2),
(12, '20161207091447000000', 12, 1, 4900000, 2),
(13, '20161207121256000000', 29, 1, 3790000, 0),
(14, '20161207121256000000', 15, 1, 4490000, 0),
(15, '20161207121856000000', 12, 1, 4900000, 2),
(16, '20161207125343000000', 41, 1, 2190000, 0),
(17, '20161207125343000000', 31, 1, 4890000, 0),
(18, '20161207154327000000', 38, 1, 990000, 0),
(19, '20161207154327000000', 17, 1, 27990000, 2),
(20, '20161207154540000000', 30, 1, 4520000, 0),
(21, '20161207161948000000', 21, 1, 1000000, 2),
(22, '20161207163026000000', 15, 1, 4490000, 0),
(23, '20161208132735000000', 50, 1, 1390000, 2);
-- --------------------------------------------------------
--
-- Table structure for table `danhgia`
--
CREATE TABLE `danhgia` (
`dg_maso` int(11) NOT NULL,
`dg_hoadon` varchar(64) NOT NULL,
`dg_tgian` date NOT NULL,
`dg_nguoimua` varchar(64) NOT NULL,
`dg_nguoiban` varchar(64) NOT NULL,
`dg_diem` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `danhgia`
--
INSERT INTO `danhgia` (`dg_maso`, `dg_hoadon`, `dg_tgian`, `dg_nguoimua`, `dg_nguoiban`, `dg_diem`) VALUES
(6, '20161125052350000000', '2016-11-25', 'customerZ', 'merchantA', 5),
(7, '20161207121856000000', '2016-12-07', 'customerC', 'merchantF', 4);
-- --------------------------------------------------------
--
-- Table structure for table `dienthoai`
--
CREATE TABLE `dienthoai` (
`dt_maso` int(11) NOT NULL,
`dt_ten` varchar(256) NOT NULL,
`dt_hdn` varchar(64) NOT NULL,
`dt_sluong` int(11) NOT NULL,
`dt_thuonghieu` varchar(64) NOT NULL,
`dt_gia` int(11) NOT NULL,
`dt_hinh` varchar(256) NOT NULL,
`dt_loai` varchar(256) NOT NULL,
`dt_kco` varchar(256) NOT NULL,
`dt_pgiai` varchar(256) NOT NULL,
`dt_pin` varchar(256) NOT NULL,
`dt_hdh` varchar(256) NOT NULL,
`dt_ram` varchar(256) NOT NULL,
`dt_bnho` varchar(256) NOT NULL,
`dt_cam` varchar(256) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `dienthoai`
--
INSERT INTO `dienthoai` (`dt_maso`, `dt_ten`, `dt_hdn`, `dt_sluong`, `dt_thuonghieu`, `dt_gia`, `dt_hinh`, `dt_loai`, `dt_kco`, `dt_pgiai`, `dt_pin`, `dt_hdh`, `dt_ram`, `dt_bnho`, `dt_cam`) VALUES
(1, 'NOKIA LUMIA 830', '1', 17, '3', 7990000, 'NO830.JPG', 'CẢM ỨNG', '5.0 INCH', '720X1280 PX', '2200 mAh', 'WINDOWS PHONE 8.1', '1 GB', '32 GB', '10 MP'),
(2, 'HTC DESIRE 620G\r\n', '2', 18, '7', 4990000, 'HT620.JPG', 'CẢM ỨNG', '5.0 INCH', '720X1280 PX', '2100 mAh\r\n', 'ANDROID 4.4\r\n', '1 GB\r\n', '8 GB\r\n', '8 MP\r\n'),
(3, 'HTC DESIRE 816\r\n', '3', 20, '7', 6990000, 'HT816.JPG', 'CẢM ỨNG', '5.5 INCH', '720X1280 PX', '2100 mAh\r\n', 'ANDROID 4.4\r\n', '1 GB\r\n', '8 GB\r\n', '13 MP\r\n'),
(4, 'LG L80 D380', '4', 20, '2', 3790000, 'LG80.JPG', 'CẢM ỨNG', '5.0 INCH', '720X1280 PX', '2540 mAh\r\n', 'ANDROID 4.4\r\n', '1 GB\r\n', '4 GB\r\n', '5 MP\r\n'),
(5, 'LG L FINO', '5', 20, '2', 3790000, 'LG80.JPG', 'CẢM ỨNG', '4.5 INCH', '480X800 PX', '1900 mAh', 'ANDROID 4.4', '1 GB\r\n', '4 GB', '8 MP'),
(6, 'IPHONE 4S 8 GB', '6', 8, '5', 5990000, 'IP4S.JPG', 'CẢM ỨNG', '3.5 INCH', '640X960 PX', '1420 mAh', 'ANDROID 4.4', '512 MB\r\n', '8 GB', '8 MP'),
(9, 'SAMSUNG GALAXY CORE PRIME', '20161121085245000000', 9, '1', 3190000, '20161121085245000000.jpeg', 'CẢM ỨNG', '4.5 INCH', '480X800 PX', '2000 mAh', 'ANDROID 4.4', '1 GB', '8 GB', '8 GB'),
(10, 'OPPO F1 PLUS', '20161207082521000000', 7, '6', 5990000, '20161207082521000000.png', 'CẢM ỨNG', '5.5 INCH', '720X1280 PX', '2850 mAh', 'Android 5.1', '4 GB', '64 GB', '13 MP'),
(11, 'OPPO F1S HERO', '20161207082811000000', 10, '6', 5990000, '20161207082811000000.png', 'CẢM ỨNG', '5.5 INCH', '720X1280 PX', '3075 mAh', 'Android 5.1', '3 GB', '128 GB', '13 MP'),
(12, 'OPPO A39 HERO', '20161207083115000000', 8, '6', 4900000, '20161207083115000000.png', 'CẢM ỨNG', '5.2 INCH', '720X1280 PX', '2900 mAh', 'Android 5.1', '3 GB', '32 GB', '13 MP'),
(13, 'OPPO NEO7 HERO', '20161207083348000000', 10, '6', 3290000, '20161207083348000000.png', 'CẢM ỨNG', '5.0 INCH', '720X1280 PX', '2800 mAh', 'Android 5.0', '1 GB', '16 GB', '8 MP'),
(14, 'LG K10', '20161207084704000000', 20, '2', 2990000, '20161207084704000000.png', 'CẢM ỨNG', '5.3 INCH', '720X1280 PX', '2300 mAh', 'Android 5.0', '1.5 GB', '8 GB', '8 MP'),
(15, 'IG X POWER', '20161207084920000000', 12, '2', 4490000, '20161207084920000000.png', 'CẢM ỨNG', '5.3 INCH', '720X1280 PX', '4100 mAh', 'Android 6.0', '2 GB', '16 GB', '13 MP'),
(16, 'IPHONE 6S PLUS 32GB', '20161207085410000000', 14, '5', 18890000, '20161207085410000000.png', 'CẢM ỨNG', '5.5 INCH', '1080X1920 PX', '2750 mAh', 'IOS 9', '2 GB', '32 GB', '12 MP'),
(17, 'IPHONE 7 PLUS 256GB', '20161207085631000000', 8, '5', 27990000, '20161207085631000000.png', 'CẢM ỨNG', '5.5 INCH', '1080X1920 PX', '2900 mAh', 'IOS 10', '3 GB', '256 GB', '13 MP'),
(18, 'IPHONE SE 16GB', '20161207085912000000', 20, '5', 7990000, '20161207085912000000.png', 'CẢM ỨNG', '4.0 INCH', '640X1136 PX', '1642 mAh', 'IOS 9', '2 GB', '16 GB', '12 MP'),
(19, 'IPHONE 6S 128GB', '20161207090420000000', 15, '5', 15990000, '20161207090420000000.png', 'CẢM ỨNG', '4.7 INCH', '750X1334 PX', '1715 mAh', 'IOS 9', '2 GB', '128 GB', '12 MP'),
(20, 'PHILIPS E170', '20161207092352000000', 50, '9', 890000, '20161207092352000000.png', 'BÀN PHÍM', '2.4 INCH', '320 x 240 Pixels', '2070 mAh', 'KHÔNG', 'KHÔNG', 'KHÔNG', 'KHÔNG'),
(21, 'PHILIPS S307', '20161207102923000000', 9, '9', 1000000, '20161207102923000000.png', 'CẢM ỨNG', '4.0 INCH', '480X800 PX', '1630 mAh', 'Android 4.4', '512 MB', '4 GB', '2 MP'),
(22, 'PHILIPS S337', '20161207103453000000', 10, '9', 1590000, '20161207103453000000.png', 'CẢM ỨNG', '5.0 INCH', '480X854 PX', '2000 mAh', 'Android 5.1', '1 GB', '8 GB', '5 MP'),
(23, 'PHILIPS E310', '20161207103729000000', 10, '9', 1290000, '20161207103729000000.png', 'BÀN PHÍM', '2.4 INCH', '320X240 PX', '1630 mAh', 'KHÔNG', 'KHÔNG', 'KHÔNG', 'VGA (480 x 640 pixels)'),
(24, 'PHILIPS S358', '20161207104002000000', 15, '9', 1990000, '20161207104002000000.png', 'CẢM ỨNG', '5.0 INCH', '720X1280 PX', '2300 mAh', 'Android 5.1', '1 GB', '8 GB', '8 MP'),
(25, 'PHILIPS E105', '20161207104207000000', 20, '9', 320000, '20161207104207000000.png', 'BÀN PHÍM', '1.77 INCH', '128X160 PX', '800 mAh', 'KHÔNG', 'KHÔNG', 'KHÔNG', 'VGA (480 x 640 pixels)'),
(26, 'SAMSUNG GALAXY J1 MINI', '20161207104655000000', 14, '1', 1790000, '20161207104655000000.png', 'CẢM ỨNG', '4.0 INCH', '480X800 PX', '1500 mAh', 'Android 5.1', '768 MB', '8 GB', '5 MP'),
(27, 'SAMSUNG GALAXY J2', '20161207104904000000', 15, '1', 2690000, '20161207104904000000.png', 'CẢM ỨNG', '4.7 INCH', '540X960 PX', '2000 mAh', 'Android 5.1', '1 GB', '8 GB', '5 MP'),
(28, 'SAMSUNG GALAXY J3 LTE', '20161207105035000000', 20, '1', 3290000, '20161207105035000000.png', 'CẢM ỨNG', '5.0 INCH', '720X1280 PX', '2600 mAh', 'Android 5.1', '1.5 GB', '8 GB', '8 MP'),
(29, 'SAMSUNG GALAXY J5', '20161207105204000000', 9, '1', 3790000, 'SAMSUNGGALAXYJ5.png', 'CẢM ỨNG', '5.0 INCH', '720X1280 PX', '2600 mAh', 'Android 5.1', '1.5 GB', '8 GB', '13 MP'),
(30, 'SAMSUNG GALAXY J7', '20161207105341000000', 9, '1', 4520000, '20161207105341000000.png', 'CẢM ỨNG', '5.5 INCH', '720X1280 PX', '3000 mAh', 'Android 5.1', '1.5 GB', '16 GB', '13 MP'),
(31, 'SONY XPERIA XA', '20161207113419000000', 4, '4', 4890000, '20161207113419000000.png', 'CẢM ỨNG', '5.0 INCH', '720X1280 PX', '2300 mAh', 'Android 6.0', '2 GB', '16 GB', '13 MP'),
(32, 'SONY XPERIA M5 SINGLE SIM', '20161207113620000000', 5, '4', 6990000, '20161207113620000000.png', 'CẢM ỨNG', '5.0 INCH', '1080X1920 PX', '2600 mAh', 'Android 5.0', '3 GB', '16 GB', '21.5 MP'),
(33, 'SONY XPERIA XA ULTRA', '20161207113855000000', 10, '4', 7490000, '20161207113855000000.png', 'CẢM ỨNG', '6.0 INCH', '1080X1920 PX', '2700 mAh', 'Android 6.0', '3 GB', '16 GB', '21.5 MP'),
(34, 'SONY XPERIA X', '20161207114047000000', 5, '4', 9990000, '20161207114047000000.png', 'CẢM ỨNG', '5.0 INCH', '1080X1920 PX', '2620 mAh', 'Android 6.0', '3 GB', '64 GB', '23 MP'),
(35, 'SONY XPERIA Z5 DUAL', '20161207114232000000', 15, '4', 10990000, '20161207114232000000.png', 'CẢM ỨNG', '5.2 INCH', '1080X1920 PX', '2900 mAh', 'Android 6.0', '3 GB', '32 GB', '23 MP'),
(36, 'NOKIA 105 SINGLE SIM', '20161207114458000000', 200, '3', 420000, '20161207114458000000.png', 'BÀN PHÍM', '1.4 INCH', '128X128 PX', '800 mAh', 'KHÔNG', 'KHÔNG', 'KHÔNG', 'KHÔNG'),
(37, 'NOKIA 105 DUAL SIM', '20161207114618000000', 100, '3', 430000, '20161207114618000000.png', 'BÀN PHÍM', '1.4 INCH', '128X128 PX', '800 mAh', 'KHÔNG', 'KHÔNG', 'KHÔNG', 'KHÔNG'),
(38, 'NOKIA LUMIA 630', '20161207114856000000', 19, '3', 990000, '20161207114856000000.png', 'CẢM ỨNG', '4.5 INCH', '480X854 PX', '1830 mAh', 'Windows Phone 8.1', '512 MB', '8 GB', '5 MP'),
(39, 'NOKIA LUMIA 550', '20161207115041000000', 20, '3', 1390000, '20161207115041000000.png', 'CẢM ỨNG', '4.7 INCH', '720X1280 PX', '2100 mAh', 'Windows 10', '1 GB', '8 GB', '5 MP'),
(40, 'MICROSOFT LUMIA 535', '20161207115248000000', 20, '3', 1590000, '20161207115248000000.png', 'CẢM ỨNG', '5.0 INCH', '540X960 PX', '1905 mAh', 'Windows 10', '1 GB', '8 GB', '5 MP'),
(41, 'NOKIA LUMIA 730 DUAL SIM', '20161207115434000000', 19, '3', 2190000, '20161207115434000000.png', 'CẢM ỨNG', '4.7 INCH', '720X1280 PX', '2220 mAh', 'Windows Phone 8.1', '1 GB', '8 GB', '6.7 MP'),
(42, 'HTC DESIRE 526G', '20161207131628000000', 15, '7', 1990000, '20161207131628000000.png', 'CẢM ỨNG', '4.7 INCH', '540X960 PX', '2000 mAh', 'Android 4.4', '1 GB', '8 GB', '8 MP'),
(43, 'HTC DESIRE 620G', '20161207133842000000', 12, '7', 2290000, '20161207133842000000.png', 'CẢM ỨNG', '5.0 INCH', '720X1280 PX', '2100 mAh', 'Android 4.4', '1 GB', '8 GB', '8 MP'),
(44, 'HTC DESIRE 626G', '20161207134641000000', 21, '7', 2790000, '20161207134641000000.png', 'CẢM ỨNG', '5.0 INCH', '720X1280 PX', '2000 mAh', 'Android 4.4', '1 GB', '8 GB', '13 MP'),
(45, 'HUAWEI P9', '20161207163936000000', 10, '8', 10990000, '20161207163936000000.jpeg', 'CẢM ỨNG', '5.2 INCH', '1080X1920 PX', '3000 mAh', 'Android 6.0', '3 GB', '32 GB', '12 MP'),
(46, 'ZTE BLADE WAVE 3', '20161208125156000000', 12, '10', 3990000, '20161208125156000000.png', 'CẢM ỨNG', '5.5 INCH', '1080X1920 PX', '3000 mAh', 'Android 5.1', '2 GB', '16 GB', '13 MP'),
(47, 'NOKIA 130', '20161208130553000000', 50, '3', 630000, '20161208130553000000.png', 'BÀN PHÍM', '1.8 INCH', '120X160 PX', '1020 mAh', 'KHÔNG', 'KHÔNG', 'KHÔNG', 'KHÔNG'),
(48, 'NOKIA 215 DUAL SIM', '20161208130905000000', 50, '3', 850000, '20161208130905000000.png', 'BÀN PHÍM', '2.4 INCH', '320 x 240 Pixels', '1100 mAh', 'KHÔNG', 'KHÔNG', 'KHÔNG', 'VGA (480 x 640 pixels)'),
(49, 'NOKIA 222 DUAL SIM', '20161208131226000000', 40, '3', 950000, '20161208131226000000.png', 'BÀN PHÍM', '2.4 INCH', '320 x 240 Pixels', '1100 mAh', 'KHÔNG', 'KHÔNG', 'KHÔNG', '2 MP'),
(50, 'NOKIA 230 DUAL SIM', '20161208131546000000', 29, '3', 1390000, '20161208131546000000.png', 'BÀN PHÍM', '2.8 INCH', '320X240 PX', '1200 mAh', 'KHÔNG', 'KHÔNG', 'KHÔNG', '2 MP'),
(51, 'HUAWEI GR5 2017', '20161208134448000000', 5, '8', 5990000, '20161208134448000000.png', 'CẢM ỨNG', '5.5 INCH', '1080X1920 PX', '3340 mAh', 'Android 6.0 (Marshmallow)', '3 GB', '32 GB', '12 MP'),
(52, 'HUAWEI Y5 II', '20161208134919000000', 12, '8', 2190000, '20161208134919000000.png', 'CẢM ỨNG', '5.0 INCH', '720X1280 PX', '2200 mAh', 'Android 5.1', '1 GB', '8 GB', '8 MP');
-- --------------------------------------------------------
--
-- Table structure for table `hoadon`
--
CREATE TABLE `hoadon` (
`hd_maso` varchar(64) NOT NULL,
`hd_nguoimua` varchar(64) NOT NULL,
`hd_nguoinhan` varchar(256) NOT NULL,
`hd_soluong` int(11) NOT NULL,
`hd_xuly` int(11) NOT NULL,
`hd_hoantat` int(11) NOT NULL,
`hd_huy` int(11) NOT NULL,
`hd_gia` int(11) NOT NULL,
`hd_tgian` date NOT NULL,
`hd_dchi` varchar(256) NOT NULL,
`hd_sdt` varchar(256) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `hoadon`
--
INSERT INTO `hoadon` (`hd_maso`, `hd_nguoimua`, `hd_nguoinhan`, `hd_soluong`, `hd_xuly`, `hd_hoantat`, `hd_huy`, `hd_gia`, `hd_tgian`, `hd_dchi`, `hd_sdt`) VALUES
('20161125052350000000', 'customerZ', 'customer Z', 2, 0, 0, 0, 11180000, '2016-11-25', '270 An Dương Vương', '0946607797'),
('20161125165417000000', 'customerZ', 'customer Z', 1, 0, 0, 0, 5990000, '2016-11-25', '270 An Dương Vương', '0946607797'),
('20161126022203000000', 'customerZ', 'customer Z', 1, 0, 1, 0, 9980000, '2016-11-26', '270 An Dương Vương', '0946607797'),
('20161207091320000000', 'customerF', '<NAME>', 1, 0, 0, 0, 27990000, '2016-12-07', '135 Đinh Tiên Hoàng, q.Bình Thạnh', '0905413306'),
('20161207091447000000', 'customerA', 'nguyễn đặng thành long', 2, 0, 2, 0, 9390000, '2016-12-07', '87/22/67 Bành Văn Trân, P7, Q.Tân Bình, tp.HCM', '01626772342'),
('20161207121256000000', 'customerB', 'Đ<NAME>', 2, 0, 0, 0, 8280000, '2016-12-07', '02 Quang Trung, q.Gò Vấp', '0966234234'),
('20161207121856000000', 'customerC', '<NAME>', 1, 0, 1, 0, 4900000, '2016-12-07', '17 Phan Đăng Lưu, q.Bình Thạnh', '0944900944'),
('20161207125343000000', 'customerD', '<NAME>', 2, 0, 0, 0, 7080000, '2016-12-07', '69 Nguyễn Trung Trực, q.Bình Thạnh', '01288449448'),
('20161207154327000000', 'customerG', '<NAME>', 2, 0, 1, 0, 28980000, '2016-12-07', '10 Nguyễn Đình Chiểu', '0919426426'),
('20161207154540000000', 'customerH', '<NAME>', 1, 0, 0, 0, 4520000, '2016-12-07', '88 Lê Lai', '0973973973'),
('20161207161948000000', 'customerJ', '<NAME>', 1, 0, 1, 0, 1000000, '2016-12-07', '33/42/12/23 Cách Mạng Tháng 8', '0962988348'),
('20161207163026000000', 'yen_nhi', '<NAME>', 1, 0, 0, 0, 4490000, '2016-12-07', '1086/127/2/6/15/41 khu phố 6, thị trấn Nhà Bè, huyện Nhà Bè, TP.HCM', '0944546754'),
('20161208132735000000', 'yen_nhi', '<NAME>', 1, 0, 1, 0, 1390000, '2016-12-08', '32/43 Cộng Hòa, Q.Tân Bình, TP.Hồ Chí Minh', '0935764872');
-- --------------------------------------------------------
--
-- Table structure for table `hoadonnhap`
--
CREATE TABLE `hoadonnhap` (
`hdn_maso` varchar(64) NOT NULL,
`hdn_nguoidung` varchar(64) NOT NULL,
`hdn_tgian` date NOT NULL,
`hdn_gia` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `hoadonnhap`
--
INSERT INTO `hoadonnhap` (`hdn_maso`, `hdn_nguoidung`, `hdn_tgian`, `hdn_gia`) VALUES
('1', 'merchantA', '2016-11-10', 10000),
('2', 'merchantA', '2016-11-14', 10000),
('20161121085245000000', 'merchantA', '2016-11-21', 10000),
('20161207082521000000', 'merchantF', '2016-12-07', 10000),
('20161207082811000000', 'merchantF', '2016-12-07', 10000),
('20161207083115000000', 'merchantF', '2016-12-07', 10000),
('20161207083348000000', 'merchantF', '2016-12-07', 10000),
('20161207084704000000', 'merchantD', '2016-12-07', 10000),
('20161207084920000000', 'merchantD', '2016-12-07', 10000),
('20161207085410000000', 'merchantC', '2016-12-07', 10000),
('20161207085631000000', 'merchantC', '2016-12-07', 10000),
('20161207085912000000', 'merchantC', '2016-12-07', 10000),
('20161207090420000000', 'merchantC', '2016-12-07', 10000),
('20161207092352000000', 'merchantE', '2016-12-07', 10000),
('20161207102923000000', 'merchantE', '2016-12-07', 10000),
('20161207103453000000', 'merchantE', '2016-12-07', 10000),
('20161207103729000000', 'merchantE', '2016-12-07', 10000),
('20161207104002000000', 'merchantE', '2016-12-07', 10000),
('20161207104207000000', 'merchantE', '2016-12-07', 10000),
('20161207104655000000', 'merchantG', '2016-12-07', 10000),
('20161207104904000000', 'merchantG', '2016-12-07', 10000),
('20161207105035000000', 'merchantG', '2016-12-07', 10000),
('20161207105204000000', 'merchantG', '2016-12-07', 10000),
('20161207105341000000', 'merchantG', '2016-12-07', 10000),
('20161207113419000000', 'merchantH', '2016-12-07', 10000),
('20161207113620000000', 'merchantH', '2016-12-07', 10000),
('20161207113855000000', 'merchantH', '2016-12-07', 10000),
('20161207114047000000', 'merchantH', '2016-12-07', 10000),
('20161207114232000000', 'merchantH', '2016-12-07', 10000),
('20161207114458000000', 'merchantJ', '2016-12-07', 10000),
('20161207114618000000', 'merchantJ', '2016-12-07', 10000),
('20161207114856000000', 'merchantJ', '2016-12-07', 10000),
('20161207115041000000', 'merchantJ', '2016-12-07', 10000),
('20161207115248000000', 'merchantJ', '2016-12-07', 10000),
('20161207115434000000', 'merchantJ', '2016-12-07', 10000),
('20161207131628000000', 'merchantE', '2016-12-07', 10000),
('20161207133842000000', 'merchantB', '2016-12-07', 10000),
('20161207134641000000', 'merchantB', '2016-12-07', 10000),
('20161207163936000000', 'thanh_tam', '2016-12-07', 10000),
('20161208125156000000', 'ngoc_thao', '2016-12-08', 10000),
('20161208130553000000', 'ngoc_thao', '2016-12-08', 10000),
('20161208130905000000', 'ngoc_thao', '2016-12-08', 10000),
('20161208131226000000', 'thanh_tam', '2016-12-08', 10000),
('20161208131546000000', 'thanh_tam', '2016-12-08', 10000),
('20161208134448000000', 'merchantB', '2016-12-08', 10000),
('20161208134919000000', 'merchantB', '2016-12-08', 10000),
('3', 'merchantA', '2016-11-12', 10000),
('4', 'merchantB', '2016-11-14', 10000),
('5', 'merchantB', '2016-11-13', 10000),
('6', 'merchantA', '2016-11-13', 10000);
-- --------------------------------------------------------
--
-- Table structure for table `hoadontk`
--
CREATE TABLE `hoadontk` (
`hdtk_maso` int(11) NOT NULL,
`hdtk_nguoidung` varchar(64) NOT NULL,
`hdtk_tgian` date NOT NULL,
`hdtk_gia` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `hoadontk`
--
INSERT INTO `hoadontk` (`hdtk_maso`, `hdtk_nguoidung`, `hdtk_tgian`, `hdtk_gia`) VALUES
(1, 'merchantA', '2016-11-09', 100000),
(2, 'merchantB', '2016-11-08', 200000),
(3, 'merchantdemo', '2016-11-27', 200000),
(4, 'merchantdemo', '2016-11-27', 100000),
(5, 'merchantF', '2016-11-08', 300000),
(6, 'merchantC', '2016-10-06', 100000),
(7, 'merchantD', '2016-10-03', 200000),
(8, 'merchantE', '2016-09-05', 500000),
(9, 'merchantG', '2016-09-21', 300000),
(10, 'merchantH', '2016-09-13', 300000),
(11, 'merchantJ', '2016-12-06', 200000),
(12, 'merchantJ', '2016-12-07', 100000),
(13, 'merchantE', '2016-12-07', 100000),
(14, 'merchantB', '2016-12-07', 100000),
(15, 'merchantF', '2016-12-07', 100000),
(16, 'thanh_tam', '2016-12-07', 500000),
(17, 'ngoc_thao', '2016-12-08', 500000);
-- --------------------------------------------------------
--
-- Table structure for table `nguoidung`
--
CREATE TABLE `nguoidung` (
`nd_maso` varchar(64) NOT NULL,
`nd_email` varchar(64) NOT NULL,
`nd_matkhau` varchar(256) NOT NULL,
`nd_hoten` varchar(256) NOT NULL,
`nd_sdt` varchar(256) NOT NULL,
`nd_dchi` varchar(256) NOT NULL,
`nd_loai` int(11) NOT NULL,
`nd_taikhoan` int(11) NOT NULL,
`nd_tinhtrang` int(11) NOT NULL,
`nd_danhgia` float NOT NULL,
`nd_luotdanhgia` int(11) NOT NULL DEFAULT '0',
`nd_kichhoat` varchar(256) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `nguoidung`
--
INSERT INTO `nguoidung` (`nd_maso`, `nd_email`, `nd_matkhau`, `nd_hoten`, `nd_sdt`, `nd_dchi`, `nd_loai`, `nd_taikhoan`, `nd_tinhtrang`, `nd_danhgia`, `nd_luotdanhgia`, `nd_kichhoat`) VALUES
('customerA', '<EMAIL>', '24f73f60c8d336177403899116008c9f', 'nguyễn đặng thành long', '01626772342', '87/22/67 Bành Văn Trân, P7, Q.Tân Bình, tp.HCM', 2, 0, 1, 0, 0, '0'),
('customerB', '<EMAIL>', '3ad69428e83370456155079c1c4d8a16', 'Đ<NAME>', '0966234234', '02 Quang Trung, q.Gò Vấp', 2, 0, 1, 0, 0, 'ZT1Pbqc7zsw6afHZ'),
('customerC', '<EMAIL>', '<PASSWORD>34015c55f4e6d96f', 'Võ Minh Vương', '0944900944', '17 Phan Đăng Lưu, q.Bình Thạnh', 2, 0, 1, 0, 0, '2u6fl7N46ZJBpR8O'),
('customerD', '<EMAIL>', '<PASSWORD>', '<NAME>', '01288449448', '69 Nguyễn <NAME>, q.Bình Thạnh', 2, 0, 1, 0, 0, 'SMol6NpeCenS616G'),
('customerF', '<EMAIL>', '<PASSWORD>', '<NAME>', '0905413306', '135 <NAME>, q.Bình Thạnh', 2, 0, 1, 0, 0, 'eUHJ27z5uYEWczSi'),
('customerG', '<EMAIL>', '<PASSWORD>', '<NAME>', '0919426426', '10 Nguyễ<NAME>', 2, 0, 1, 0, 0, 'KNEXPTzvpvJMEKJm'),
('customerH', '<EMAIL>', '<PASSWORD>', '<NAME>', '0973973973', '88 Lê Lai', 2, 0, 1, 0, 0, 'tshAPRmHggUTwxwB'),
('customerJ', '<EMAIL>', '<PASSWORD>', '<NAME>', '0945445445', '33/42/12/23 Cách Mạng Tháng 8', 2, 0, 1, 0, 0, '0'),
('customerX', '<EMAIL>', '<PASSWORD>', 'Customer X', '0946607797', '273 An Dương Vương', 2, 0, 1, 0, 0, '0'),
('customerY', '<EMAIL>', '<PASSWORD>', 'Customer Y', '0946607797', '273 An Dương Vương', 2, 0, 1, 0, 0, '0'),
('customerZ', '<EMAIL>', '033f7f6121501ae98285ad77f216d5e7', 'customer Z', '0946607797', '270 An Dương Vương', 2, 0, 1, 0, 0, 'ldtEayowPzRwzDC8'),
('merchantA', '<EMAIL>', '<PASSWORD>', 'Merchant A', '0946607798', '273 An Dương Vương', 1, 10000, 1, 3.8, 4, 'a1b2c4b68g9t5t90'),
('merchantB', '<EMAIL>', '8b550a0ca911a53b1c6fc398c7828f40', 'Merchant b', '0946607797', '273 An Dương Vương', 1, 100000, 1, 0, 0, '0'),
('merchantC', '<EMAIL>', '5efa8a48d025ffea7421b90a334fbfad', 'nguyễn long', '01626772342', '87/22/67 Bành Văn Trân, P7, Q.Tân Bình, tp.HCM', 1, 60000, 1, 0, 0, 'QReGza402m8ueFQU'),
('merchantD', '<EMAIL>', '53182c29af344ee3e40ed77aba69898e', 'quốc linh', '0939394959', '124 Cách Mạng Tháng 8', 1, 180000, 1, 0, 0, 'IlAUraSxqSUAcrCg'),
('merchantdemo', '<EMAIL>', '4b5cd34c845417c6ab55a6e781eac410', 'Merchant Demo', '0946607777', '270 <NAME>', 1, 300000, 1, 0, 0, 'I3j7Hju3R6j0bCXr'),
('merchantE', '<EMAIL>', '7803d041f4d413b93775a1d80f6e309e', 'bùi duy', '0939394959', '22/67 Cách Mạng Tháng 8', 1, 530000, 1, 0, 0, 'SviDYqsSeq0QmFqS'),
('merchantF', '<EMAIL>', '<PASSWORD>0750e508d8ff66c6cd779cab777', 'trần linh', '01224537341', '22/67 Cách Mạng Tháng 8', 1, 360000, 1, 0, 0, 'XltmcVnv2irqr1b1'),
('merchantG', '<EMAIL>', '<PASSWORD>', 'phan sỹ', '0932451215', '222 Võ Văn Tần', 1, 250000, 1, 0, 0, 'yfIfb4ooU8eznCQG'),
('merchantH', '<EMAIL>', '<PASSWORD>', 'nguyễn văn sinh', '01668793452', '41/13 Nguyễn Du', 1, 250000, 1, 0, 0, 'QSgafdQ8sAQCLTjB'),
('merchantJ', '<EMAIL>', '<PASSWORD>', 'N<NAME>', '0941941941', '143 Đồng Đen', 1, 240000, 1, 0, 0, 'bzCzJ62c78k60EFd'),
('ngoc_thao', '<EMAIL>', '<PASSWORD>', 'Phạm Ngọc Thảo', '01223234234', '58/43 Lý Tự Trọng, Q.1, TP HCM', 1, 470000, 1, 0, 0, 'Ac11bEk1bayfAjz6'),
('thanh_tam', '<EMAIL>', 'c896275c27000126a288cfe6a66b9480', 'nguyễn Thị Thanh Tâm', '0973973973', '1086/127/2/6/15/41 khu phố 6, thị trấn Nhà Bè, huyện Nhà Bè, TP. HCM', 1, 470000, 1, 0, 0, 'xXJsAJiUVmPjh3sj'),
('yen_nhi', '<EMAIL>', 'd993cdd8eb658dd70fb7fa285adb8d03', 'Nguyễn Yến Nhi', '0935764872', '1086/127/2/6/15/41 khu phố 6, thị trấn Nhà Bè, huyện Nhà Bè, TP.HCM', 2, 0, 1, 0, 0, '0');
-- --------------------------------------------------------
--
-- Table structure for table `quantri`
--
CREATE TABLE `quantri` (
`qt_maso` varchar(64) NOT NULL,
`qt_email` varchar(64) NOT NULL,
`qt_matkhau` varchar(256) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `quantri`
--
INSERT INTO `quantri` (`qt_maso`, `qt_email`, `qt_matkhau`) VALUES
('admin', '<EMAIL>', '0192023a7bbd73250516f069df18b500');
-- --------------------------------------------------------
--
-- Table structure for table `taikhoan`
--
CREATE TABLE `taikhoan` (
`tk_maso` int(11) NOT NULL,
`tk_nguoidung` varchar(64) NOT NULL,
`tk_noidung` int(11) NOT NULL,
`tk_ghichu` varchar(256) NOT NULL,
`tk_tgian` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `taikhoan`
--
INSERT INTO `taikhoan` (`tk_maso`, `tk_nguoidung`, `tk_noidung`, `tk_ghichu`, `tk_tgian`) VALUES
(1, 'customerX', -1, 'Tài khoản spam', '2016-11-26'),
(2, 'customerX', 1, 'Đã liên hệ admin ', '2016-11-26');
-- --------------------------------------------------------
--
-- Table structure for table `thuonghieu`
--
CREATE TABLE `thuonghieu` (
`th_maso` int(11) NOT NULL,
`th_ten` varchar(256) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `thuonghieu`
--
INSERT INTO `thuonghieu` (`th_maso`, `th_ten`) VALUES
(1, 'SAMSUNG'),
(2, 'LG'),
(3, 'NOKIA'),
(4, 'SONY'),
(5, 'APPLE'),
(6, 'OPPO'),
(7, 'HTC'),
(8, 'HUAWEI'),
(9, 'PHILIPS'),
(10, 'ZTE');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `cthoadon`
--
ALTER TABLE `cthoadon`
ADD PRIMARY KEY (`cthd_maso`);
--
-- Indexes for table `danhgia`
--
ALTER TABLE `danhgia`
ADD PRIMARY KEY (`dg_maso`);
--
-- Indexes for table `dienthoai`
--
ALTER TABLE `dienthoai`
ADD PRIMARY KEY (`dt_maso`);
--
-- Indexes for table `hoadon`
--
ALTER TABLE `hoadon`
ADD PRIMARY KEY (`hd_maso`);
--
-- Indexes for table `hoadonnhap`
--
ALTER TABLE `hoadonnhap`
ADD PRIMARY KEY (`hdn_maso`);
--
-- Indexes for table `hoadontk`
--
ALTER TABLE `hoadontk`
ADD PRIMARY KEY (`hdtk_maso`);
--
-- Indexes for table `nguoidung`
--
ALTER TABLE `nguoidung`
ADD PRIMARY KEY (`nd_maso`),
ADD UNIQUE KEY `nd_email` (`nd_email`);
--
-- Indexes for table `quantri`
--
ALTER TABLE `quantri`
ADD PRIMARY KEY (`qt_maso`),
ADD UNIQUE KEY `qt_email` (`qt_email`);
--
-- Indexes for table `taikhoan`
--
ALTER TABLE `taikhoan`
ADD PRIMARY KEY (`tk_maso`);
--
-- Indexes for table `thuonghieu`
--
ALTER TABLE `thuonghieu`
ADD PRIMARY KEY (`th_maso`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `cthoadon`
--
ALTER TABLE `cthoadon`
MODIFY `cthd_maso` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;
--
-- AUTO_INCREMENT for table `danhgia`
--
ALTER TABLE `danhgia`
MODIFY `dg_maso` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `dienthoai`
--
ALTER TABLE `dienthoai`
MODIFY `dt_maso` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;
--
-- AUTO_INCREMENT for table `hoadontk`
--
ALTER TABLE `hoadontk`
MODIFY `hdtk_maso` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `taikhoan`
--
ALTER TABLE `taikhoan`
MODIFY `tk_maso` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `thuonghieu`
--
ALTER TABLE `thuonghieu`
MODIFY `th_maso` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
DROP TABLE beer;
CREATE TABLE IF not exists beer (
id SERIAL PRIMARY KEY,
brewId VARCHAR(255)
);
|
<filename>sql/prototypical_general.sql
CREATE TABLE prototypical_general AS
SELECT
prediction,
actualSource,
title,
predictionScore
FROM
predictions_top_score
WHERE
prediction = "BBC"
AND prediction = actualSource
ORDER BY predictionScore DESC, length(title) DESC
LIMIT 1;
INSERT INTO prototypical_general (prediction, actualSource, title, predictionScore)
SELECT
prediction,
actualSource,
title,
predictionScore
FROM
predictions_top_score
WHERE
prediction = "Breitbart"
AND prediction = actualSource
ORDER BY predictionScore DESC, length(title) DESC
LIMIT 1;
INSERT INTO prototypical_general (prediction, actualSource, title, predictionScore)
SELECT
prediction,
actualSource,
title,
predictionScore
FROM
predictions_top_score
WHERE
prediction = "CNN"
AND prediction = actualSource
ORDER BY predictionScore DESC, length(title) DESC
LIMIT 1;
INSERT INTO prototypical_general (prediction, actualSource, title, predictionScore)
SELECT
prediction,
actualSource,
title,
predictionScore
FROM
predictions_top_score
WHERE
prediction = "Daily Mail"
AND prediction = actualSource
ORDER BY predictionScore DESC, length(title) DESC
LIMIT 1;
INSERT INTO prototypical_general (prediction, actualSource, title, predictionScore)
SELECT
prediction,
actualSource,
title,
predictionScore
FROM
predictions_top_score
WHERE
prediction = "Drudge Report"
AND prediction = actualSource
ORDER BY predictionScore DESC, length(title) DESC
LIMIT 1;
INSERT INTO prototypical_general (prediction, actualSource, title, predictionScore)
SELECT
prediction,
actualSource,
title,
predictionScore
FROM
predictions_top_score
WHERE
prediction = "NPR"
AND prediction = actualSource
ORDER BY predictionScore DESC, length(title) DESC
LIMIT 1;
INSERT INTO prototypical_general (prediction, actualSource, title, predictionScore)
SELECT
prediction,
actualSource,
title,
predictionScore
FROM
predictions_top_score
WHERE
prediction = "New York Times"
AND prediction = actualSource
ORDER BY predictionScore DESC, length(title) DESC
LIMIT 1;
INSERT INTO prototypical_general (prediction, actualSource, title, predictionScore)
SELECT
prediction,
actualSource,
title,
predictionScore
FROM
predictions_top_score
WHERE
prediction = "Vox"
AND prediction = actualSource
ORDER BY predictionScore DESC, length(title) DESC
LIMIT 1;
INSERT INTO prototypical_general (prediction, actualSource, title, predictionScore)
SELECT
prediction,
actualSource,
title,
predictionScore
FROM
predictions_top_score
WHERE
prediction = "Wall Street Journal"
AND prediction = actualSource
ORDER BY predictionScore DESC, length(title) DESC
LIMIT 1;
INSERT INTO prototypical_general (prediction, actualSource, title, predictionScore)
SELECT
prediction,
actualSource,
title,
predictionScore
FROM
predictions_top_score
WHERE
prediction = "Fox"
AND prediction = actualSource
ORDER BY predictionScore DESC, length(title) DESC
LIMIT 1;
|
/*
VerseBot for reddit
By <NAME>
create_user_translations_table.sql
Copyright (c) 2015 <NAME> (MIT License)
*/
CREATE TABLE user_translations (
id INTEGER PRIMARY KEY,
username TEXT,
ot_default TEXT,
nt_default TEXT,
deut_default TEXT,
last_used DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
); |
<reponame>pradeepkumarcm-egov/DIGIT-Dev
ALTER TABLE EDCR_PDF_DETAIL RENAME COLUMN failedLayers TO failurereasons; |
<filename>SistemaClinica.BackEnd.BD/Stored Procedures/SP_Diagnosticos_Actualizar.sql
CREATE PROCEDURE SP_Diagnosticos_Actualizar
@IdDiagnostico INT,
@Diagnostico VARCHAR(50),
@Activo BIT,
@ModificadoPor VARCHAR(60)
AS
BEGIN
UPDATE Diagnosticos
SET
Diagnostico = @Diagnostico,
Activo = @Activo,
ModificadoPor = @ModificadoPor,
FechaModificacion = GETDATE()
WHERE
IdDiagnostico = @IdDiagnostico
END |
<filename>src/test/resources/randexpr1.test_2051.sql
-- randexpr1.test
--
-- db eval {SELECT case when not c<b and case when not (11 not in (c+b+t1.d- -13+e,(select -min((case (abs(t1.a)/abs(a)) when 13 then b else -19 end+11)) from t1),d)) and 13 in (19,t1.c,t1.e) then t1.b else 17 end<=~t1.e then +b*t1.c else t1.b end FROM t1 WHERE NOT ((abs(a)/abs(coalesce((select (e) from t1 where case when not d<=c then b else (19) end in (select ~( -(~(((count(*)))) | (count(distinct t1.e)))+min(t1.b)-(cast(avg(d) AS integer))-count(distinct b))-min(e)*max(t1.a) from t1 union select count(distinct f) from t1)),19 | t1.b)*t1.c+13)) in (select ~ -count(distinct e)*max((b)) | min(a) from t1 union select count(*) from t1))}
SELECT case when not c<b and case when not (11 not in (c+b+t1.d- -13+e,(select -min((case (abs(t1.a)/abs(a)) when 13 then b else -19 end+11)) from t1),d)) and 13 in (19,t1.c,t1.e) then t1.b else 17 end<=~t1.e then +b*t1.c else t1.b end FROM t1 WHERE NOT ((abs(a)/abs(coalesce((select (e) from t1 where case when not d<=c then b else (19) end in (select ~( -(~(((count(*)))) | (count(distinct t1.e)))+min(t1.b)-(cast(avg(d) AS integer))-count(distinct b))-min(e)*max(t1.a) from t1 union select count(distinct f) from t1)),19 | t1.b)*t1.c+13)) in (select ~ -count(distinct e)*max((b)) | min(a) from t1 union select count(*) from t1)) |
<filename>hasura/migrations/1597577665522_alter_table_public_cards_alter_column_position/up.sql
ALTER TABLE "public"."cards" ADD CONSTRAINT "cards_position_key" UNIQUE ("position");
|
-- file:numeric_big.sql ln:215 expect:true
INSERT INTO num_exp_div VALUES (4,4,'1.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000')
|
<filename>benchmark/MLB/queries/58.sql<gh_stars>1-10
SELECT CAST("MLB_15"."year" AS SIGNED) AS "year" FROM "MLB_15" GROUP BY "MLB_15"."year", "MLB_15"."year";
|
# hgdpGeo.sql was originally generated by the autoSql program, which also
# generated hgdpGeo.c and hgdpGeo.h. This creates the database representation of
# an object which can be loaded and saved from RAM in a fairly
# automatic way.
#Human Genome Diversity Project population allele frequencies (bed 4+)
CREATE TABLE hgdpGeo (
bin smallint not null, # Bin number for browser speedup
chrom varchar(255) not null, # Reference sequence chromosome or scaffold
chromStart int unsigned not null, # Start position in chromosome
chromEnd int unsigned not null, # End position in chromosome
name varchar(255) not null, # SNP ID (dbSNP reference SNP rsNNNNN ID)
ancestralAllele char(1) not null, # Ancestral allele on forward strand of reference genome assembly
derivedAllele char(1) not null, # Derived allele on forward strand of reference genome assembly
popFreqs longblob not null, # For each population in alphabetical order, the proportion of the population carrying the ancestral allele.
#Indices
INDEX(chrom,bin),
INDEX(name)
);
|
<gh_stars>1000+
-- 2018-04-28T09:35:51.570
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,Description,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy,WEBUI_NameBrowse) VALUES ('W',0,541080,0,247,TO_TIMESTAMP('2018-04-28 09:35:51','YYYY-MM-DD HH24:MI:SS'),100,'Produkte importieren','EE05','_Import_Produkt','Y','N','N','N','N','Import Produkt',TO_TIMESTAMP('2018-04-28 09:35:51','YYYY-MM-DD HH24:MI:SS'),100,'Import Produkt')
;
-- 2018-04-28T09:35:51.574
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.Name,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=541080 AND NOT EXISTS (SELECT 1 FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID)
;
-- 2018-04-28T09:35:51.576
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', now(), 100, now(), 100,t.AD_Tree_ID, 541080, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.AD_Table_ID=116 AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=541080)
;
-- 2018-04-28T09:35:52.145
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540969 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.146
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540892 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.147
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540914 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.148
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540915 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.149
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=150 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.149
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=147 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.150
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=145 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.155
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=144 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.156
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540743 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.157
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540784 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.158
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=540826 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.159
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=540898 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.160
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=540895 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.161
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=540827 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.161
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=540828 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.162
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=540849 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.163
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=540911 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.163
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=540912 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.164
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=540913 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.164
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=540894 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.165
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=20, Updated=now(), UpdatedBy=100 WHERE Node_ID=540917 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.166
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=21, Updated=now(), UpdatedBy=100 WHERE Node_ID=540982 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.166
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=22, Updated=now(), UpdatedBy=100 WHERE Node_ID=540919 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.167
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=23, Updated=now(), UpdatedBy=100 WHERE Node_ID=540983 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.168
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=24, Updated=now(), UpdatedBy=100 WHERE Node_ID=363 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.169
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=25, Updated=now(), UpdatedBy=100 WHERE Node_ID=541079 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.169
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=26, Updated=now(), UpdatedBy=100 WHERE Node_ID=541053 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.170
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=27, Updated=now(), UpdatedBy=100 WHERE Node_ID=541052 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.171
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=28, Updated=now(), UpdatedBy=100 WHERE Node_ID=541041 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.171
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=29, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000099 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.172
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=30, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000100 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.173
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=31, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000101 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.173
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=32, Updated=now(), UpdatedBy=100 WHERE Node_ID=540901 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:52.174
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=33, Updated=now(), UpdatedBy=100 WHERE Node_ID=541080 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.381
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540969 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.382
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540892 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.383
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540914 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.384
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540915 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.385
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=150 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.386
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=147 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.387
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=145 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.388
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=144 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.389
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540743 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.390
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540784 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.391
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=540826 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.391
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=540898 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.392
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=540895 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.392
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=540827 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.393
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=540828 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.394
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=540849 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.402
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=540911 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.403
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=540912 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.404
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=540913 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.404
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=540894 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.405
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=20, Updated=now(), UpdatedBy=100 WHERE Node_ID=540917 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.406
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=21, Updated=now(), UpdatedBy=100 WHERE Node_ID=540982 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.406
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=22, Updated=now(), UpdatedBy=100 WHERE Node_ID=540919 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.407
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=23, Updated=now(), UpdatedBy=100 WHERE Node_ID=540983 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.408
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=24, Updated=now(), UpdatedBy=100 WHERE Node_ID=541080 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.408
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=25, Updated=now(), UpdatedBy=100 WHERE Node_ID=363 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.409
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=26, Updated=now(), UpdatedBy=100 WHERE Node_ID=541079 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.409
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=27, Updated=now(), UpdatedBy=100 WHERE Node_ID=541053 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.410
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=28, Updated=now(), UpdatedBy=100 WHERE Node_ID=541052 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.411
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=29, Updated=now(), UpdatedBy=100 WHERE Node_ID=541041 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.412
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=30, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000099 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.412
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=31, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000100 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.417
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=32, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000101 AND AD_Tree_ID=10
;
-- 2018-04-28T09:35:56.419
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=33, Updated=now(), UpdatedBy=100 WHERE Node_ID=540901 AND AD_Tree_ID=10
;
-- 2018-04-28T09:36:20.870
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-04-28 09:36:20','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Import Product',Description='',WEBUI_NameBrowse='Import Product' WHERE AD_Menu_ID=541080 AND AD_Language='en_US'
;
-- 2018-04-28T09:40:07.658
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy,Value) VALUES (0,0,442,540712,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100,'main')
;
-- 2018-04-28T09:40:07.659
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Section_Trl (AD_Language,AD_UI_Section_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_UI_Section_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_UI_Section t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_UI_Section_ID=540712 AND NOT EXISTS (SELECT 1 FROM AD_UI_Section_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_UI_Section_ID=t.AD_UI_Section_ID)
;
-- 2018-04-28T09:40:07.705
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Column (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,0,540942,540712,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:07.745
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Column (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,0,540943,540712,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:07.777
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,UIStyle,Updated,UpdatedBy) VALUES (0,0,540942,541556,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100,'Y','default',10,'primary',TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:07.824
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5962,0,442,541556,551616,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100,'Import von Artikeln oder Leistungen','Y','N','Y','Y','N','Import - Produkt',10,10,0,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:07.852
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5983,0,442,541556,551617,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100,'Ist dieser Import verarbeitet worden?','DasSelektionsfeld "Importiert" zeigt an, ob dieser Import verarbeitet worden ist.','Y','N','Y','Y','N','Importiert',20,20,0,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:07.880
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5980,0,442,541556,551618,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100,'Produkt, Leistung, Artikel','Bezeichnet eine Einheit, die in dieser Organisation gekauft oder verkauft wird.','Y','N','Y','Y','N','Produkt',30,30,0,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:07.910
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5967,0,442,541556,551619,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100,'Meldungen, die durch den Importprozess generiert wurden','"Import-Fehlermeldung" zeigt alle Fehlermeldungen an, die durch den Importprozess generiert wurden.','Y','N','Y','Y','N','Import-Fehlermeldung',40,40,0,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:07.942
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5957,0,442,541556,551620,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100,'Mandant für diese Installation.','Ein Mandant ist eine Firma oder eine juristische Person. Sie können keine Daten über Mandanten hinweg verwenden. .','Y','N','Y','Y','N','Mandant',50,50,0,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:07.975
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5979,0,442,541556,551621,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten','Eine Organisation ist ein Bereich ihres Mandanten - z.B. Laden oder Abteilung. Sie können Daten über Organisationen hinweg gemeinsam verwenden.','Y','N','Y','Y','N','Sektion',60,60,0,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.019
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,6003,0,442,541556,551622,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100,'Suchschlüssel für den Eintrag im erforderlichen Format - muss eindeutig sein','A search key allows you a fast method of finding a particular record.
If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table (e.g. C_Order).','Y','N','Y','Y','N','Suchschlüssel',70,70,0,TO_TIMESTAMP('2018-04-28 09:40:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.051
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5961,0,442,541556,551623,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Y','N','Y','Y','N','Name',80,80,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.077
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5981,0,442,541556,551624,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Beschreibung',90,90,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.105
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5959,0,442,541556,551625,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Zusätzliche Information für den Kunden','"Notiz" wird für zusätzliche Informationen zu diesem Produkt verwendet.','Y','N','Y','Y','N','Notiz / Zeilentext',100,100,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.132
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,6000,0,442,541556,551626,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Comment or Hint','The Help field contains a hint, comment or help about the use of this item.','Y','N','Y','Y','N','Kommentar/Hilfe',110,110,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.159
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5997,0,442,541556,551627,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Produktidentifikation (Barcode) durch Universal Product Code oder European Article Number)','Tragen Sie hier den Barcode für das Produkt in einer der Barcode-Codierungen (Codabar, Code 25, Code 39, Code 93, Code 128, UPC (A), UPC (E), EAN-13, EAN-8, ITF, ITF-14, ISBN, ISSN, JAN-13, JAN-8, POSTNET und FIM, MSI/Plessey, Pharmacode) ein.','Y','N','Y','Y','N','UPC/EAN',120,120,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.185
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5974,0,442,541556,551628,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Stock Keeping Unit','"SKU" bezeichnet eine Einheit, die zur Identifizierung eines bestimmten Produktes in der Logistikkette dient, meist in Form einer Buchstaben-Nummern-Kombination. Das Feld kann z.B. für einen zusätzlichen Barcode oder Ihr eigenes System verwendet werden.','Y','N','Y','Y','N','SKU',130,130,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.216
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,6001,0,442,541556,551629,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Kodierung gemäß UOM EDI X12','"Kodierung" gibt die Kodierung gemäß EDI X12 Code Data Element 355 (Unit or Basis for Measurement) an.','Y','N','Y','Y','N','Kodierung der Mengeneinheit',140,140,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.243
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,6002,0,442,541556,551630,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Maßeinheit','Eine eindeutige (nicht monetäre) Maßeinheit','Y','N','Y','Y','N','Maßeinheit',150,150,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.270
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5966,0,442,541556,551631,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Produktkategorie-Schlüssel',160,160,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.297
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5995,0,442,541556,551632,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Kategorie eines Produktes','Identifiziert die Kategorie zu der ein Produkt gehört. Produktkategorien werden für Preisfindung und Auswahl verwendet.','Y','N','Y','Y','N','Produkt Kategorie',170,170,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.324
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5984,0,442,541556,551633,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Art von Produkt','Aus der Produktart ergeben auch sich Vorgaben für die Buchhaltung.','Y','N','Y','Y','N','Produktart',180,180,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.351
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5969,0,442,541556,551634,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Klassifizierung für die Gruppierung','Die "Klassifizierung" kann für die optionale Gruppierung von Produkten verwendet werden.','Y','N','Y','Y','N','Klassifizierung',190,190,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.378
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5978,0,442,541556,551635,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Volumen eines Produktes','Gibt das Volumen eines Produktes in der Volumen-Mengeneinheit des Mandanten an.','Y','N','Y','Y','N','Volumen',200,200,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.404
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5972,0,442,541556,551636,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Gewicht eines Produktes','The Weight indicates the weight of the product in the Weight UOM of the Client','Y','N','Y','Y','N','Gewicht',210,210,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.432
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5992,0,442,541556,551637,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Benötigte Regalbreite','"Regaltiefe" gibt die Abmessung in der Breite an, die in einem Regal für dieses Produkt benötigt wird.','Y','N','Y','Y','N','Regalbreite',220,220,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.461
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5987,0,442,541556,551638,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Benötigte Regalhöhe','"Regaltiefe" gibt die Abmessung in der Höhe an, die in einem Regal für dieses Produkt benötigt wird.','Y','N','Y','Y','N','Regalhöhe',230,230,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.489
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5989,0,442,541556,551639,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Benötigte Regaltiefe','The Shelf Depth indicates the depth dimension required on a shelf for a product ','Y','N','Y','Y','N','Regaltiefe',240,240,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.519
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5991,0,442,541556,551640,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Einheiten pro Palette','"Einheiten pro Palette" gibt an, wieviele Einheiten dieses Produktes auf eine Palette passen.','Y','N','Y','Y','N','Einheiten pro Palette',250,250,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.546
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5976,0,442,541556,551641,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Dieses Produkt ist nicht mehr verfügbar','Das Selektionsfeld "Eingestellt" zeigt ein Produkt an, das nicht länger verfügbar ist.','Y','N','Y','Y','N','Eingestellt',260,260,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.573
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5990,0,442,541556,551642,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Eingestellt durch','"Eingestellt durch" zeigt an, welche Person dieses Produkt eingestellt hat.','Y','N','Y','Y','N','Eingestellt durch',270,270,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.600
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5994,0,442,541556,551643,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'URL of image','URL of image; The image is not stored in the database, but retrieved at runtime. The image can be a gif, jpeg or png.','Y','N','Y','Y','N','Bild-URL',280,280,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.626
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5998,0,442,541556,551644,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'URL für die Beschreibung','Y','N','Y','Y','N','Beschreibungs-URL',290,290,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.660
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5986,0,442,541556,551645,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Suchschlüssel für den Geschäftspartner','Y','N','Y','Y','N','Geschäftspartner-Schlüssel',300,300,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.689
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5985,0,442,541556,551646,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Bezeichnet einen Geschäftspartner','Ein Geschäftspartner ist jemand, mit dem Sie interagieren. Dies kann Lieferanten, Kunden, Mitarbeiter oder Handelsvertreter umfassen.','Y','N','Y','Y','N','Geschäftspartner',310,310,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.717
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5958,0,442,541556,551647,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Dreibuchstabiger ISO 4217 Code für die Währung','Für Details - http://www.unece.org/cefact/recommendations/rec09/rec09_ecetrd203.pdf','Y','N','Y','Y','N','ISO Währungscode',320,320,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.744
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5977,0,442,541556,551648,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Die Währung für diesen Eintrag','Bezeichnet die auf Dokumenten oder Berichten verwendete Währung','Y','N','Y','Y','N','Währung',330,330,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.772
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5982,0,442,541556,551649,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Auszeichnungspreis','"Listenpreis" ist der offizielle Listenpreis in der Dokumentenwährung.','Y','N','Y','Y','N','Auszeichnungspreis',340,340,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.800
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5999,0,442,541556,551650,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Preis, basierend auf Bestellung','"Einkaufspreis" gibt den Preis für das Produkt bei einer Bestellung an.','Y','N','Y','Y','N','Einkaufspreis',350,350,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.827
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,12420,0,442,541556,551651,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Standardpreis','Preis mit Standardrabattierung gegenber Listenpreis.','Y','N','Y','Y','N','Standardpreis',360,360,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.854
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,12419,0,442,541556,551652,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Unterster Preis für Kostendeckung','Dieser Preis ist der unterste Preis, um Kostendeckung zu erzielen.','Y','N','Y','Y','N','Mindestpreis',370,370,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.882
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5975,0,442,541556,551653,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'(Enthaltener) Betrag für Copyright, usw.','Y','N','Y','Y','N','Lizenzbetrag',380,380,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.910
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5963,0,442,541556,551654,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Datum zu dem dieser Preis gültig wird','The Price Effective indicates the date this price is for. This allows you to enter future prices for products which will become effective when appropriate.','Y','N','Y','Y','N','Preis gültig',390,390,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.936
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5960,0,442,541556,551655,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Produkt-Nr. beim Geschäftspartner','The Business Partner Product Key identifies the number used by the Business Partner for this product. It can be printed on orders and invoices when you include the Product Key in the print format.','Y','N','Y','Y','N','Produkt-Nr. Geschäftspartner',400,400,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:08.975
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5973,0,442,541556,551656,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Produkt-Kategorie des Geschäftspartner','"Produkt-Kategorie Geschäftspartner" gibt die Produktkategorie an, die der Geschäftspartner für dieses Produkt verwendet.','Y','N','Y','Y','N','Produkt-Kategorie Geschäftspartner',410,410,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.003
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5988,0,442,541556,551657,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100,'Hersteller des Produktes','Der Hersteller des Produktes (genutzt, wenn abweichend von Geschäftspartner / Lieferant).','Y','N','Y','Y','N','Hersteller',420,420,0,TO_TIMESTAMP('2018-04-28 09:40:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.028
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5996,0,442,541556,551658,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Mindestbestellmenge in Mengeneinheit','"Mindestbestellmenge" gibt die kleinste Menge für dieses Produkt an, die bestellt werden kann.','Y','N','Y','Y','N','Mindestbestellmenge',430,430,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.056
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5968,0,442,541556,551659,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Größe einer Bestellpackung in Mengeneinheit (z.B. Satz von 5 Einheiten)','"Packungsgröße" gibt die Anzahl von Einheiten dieses Produktes an, die sich in einer bestellbaren Packung befinden.','Y','N','Y','Y','N','Packungsgröße',440,440,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.083
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5971,0,442,541556,551660,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Fixkosten pro Bestellung','"Bestellkosten" zeigt die fixen Kosten an, die bei einer Bestellung dieses Produktes anfallen.','Y','N','Y','Y','N','Bestellkosten',450,450,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.111
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5970,0,442,541556,551661,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Zugesicherte Anzahl Tage zwischen Bestellung und Lieferung','"Zugesicherte Lieferzeit" gibt die Anzahl Tage an, die zwischen der Bestellung und dem zugesicherten Liefertermin des Produktes liegen.','Y','N','Y','Y','N','Zugesicherte Lieferzeit',460,460,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.137
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,556298,0,442,541556,551662,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','MwSt-Kategorie',470,470,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.162
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,556297,0,442,541556,551663,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Steuerkategorie','Die Steuerkategorie hilft, ähnliche Steuern zu gruppieren. Z.B. Verkaufssteuer oder Mehrwertsteuer.
','Y','N','Y','Y','N','Steuerkategorie',480,480,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.188
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,556300,0,442,541556,551664,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Bezeichnet eine einzelne Version der Preisliste','Jede Preisliste kann verschiedene Versionen haben. Die übliche Verwendung ist zur Anzeige eines zeitlichen Gültigkeitsbereiches einer Preisliste. ','Y','N','Y','Y','N','Version Preisliste',490,490,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.216
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,556299,0,442,541556,551665,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Bezeichnet eine einzelne Version der Preisliste','Jede Preisliste kann verschiedene Versionen haben. Die übliche Verwendung ist zur Anzeige eines zeitlichen Gültigkeitsbereiches einer Preisliste. ','Y','N','Y','Y','N','Version Preisliste',500,500,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.244
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5993,0,442,541556,551666,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Produkte aus einer Datei importieren','"Produkte importieren" wird Produktdaten aus einer Datei mit einem vordefinierten Format in das System laden.<p> Die Werte sind Standardwerte bei Import mit Nullwerten, sie überschreiben keine Daten.<p> Wenn Sie eine bestehende Preisliste selektieren und Sie haben Listen-, Standard- und Mindestpreis werden diese direkt erstellt/aktualisiert.','Y','N','Y','Y','N','Produkte importieren',510,510,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.270
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,5965,0,442,541556,551667,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Checkbox sagt aus, ob der Beleg verarbeitet wurde. ','Verarbeitete Belege dürfen in der Regel nich mehr geändert werden.','Y','N','Y','Y','N','Verarbeitet',520,520,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.298
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560698,0,442,541556,551668,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Package UOM Name',530,530,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.325
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560699,0,442,541556,551669,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'UOM of the package','','Y','N','Y','Y','N','Package UOM',540,540,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.351
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560700,0,442,541556,551670,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Size of a package','The size indicated how many items ar ein a package','Y','N','Y','Y','N','Package Size',550,550,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.376
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560702,0,442,541556,551671,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'','','Y','N','Y','Y','N','Product Manufacturer',560,560,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.402
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,561985,0,442,541556,551672,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','M_ProductPlanningSchema_Selector',570,570,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.427
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,563100,0,442,541556,551673,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Pharma Product Category Name',580,580,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.453
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,563101,0,442,541556,551674,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Pharma Product Category',590,590,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.479
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560703,0,442,541556,551675,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Dosage Form Name',600,600,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.509
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560704,0,442,541556,551676,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Dosage Form',610,610,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.535
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560705,0,442,541556,551677,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Is checked if the product needs prescription','Y','N','Y','Y','N','Prescription',620,620,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.560
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560706,0,442,541556,551678,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Narcotic',630,630,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.586
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560707,0,442,541556,551679,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Is checked if the product needs be stored in refrigirator','Y','N','Y','Y','N','Cold Chain',640,640,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.613
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560708,0,442,541556,551680,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','TFG',650,650,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.639
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560709,0,442,541556,551681,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Indication Name',660,660,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.666
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560710,0,442,541556,551682,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Indication',670,670,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.693
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560711,0,442,541556,551683,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','FAM/ZUB',680,680,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.727
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,563102,0,442,541556,551684,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','APO-EK(A01AEP)',690,690,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.764
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,563104,0,442,541556,551685,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Price List AEP',700,700,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.795
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,563103,0,442,541556,551686,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Grosso(A01APU)',710,710,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.825
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,563105,0,442,541556,551687,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Price List APU',720,720,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.853
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560712,0,442,541556,551688,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Die Organisation verkauft dieses Produkt','Das Selektionsfeld "Verkauft" zeigt an, ob dieses Produkt von dieser Organisation verkauft wird.','Y','N','Y','Y','N','Verkauft',730,730,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.880
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560713,0,442,541556,551689,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Die Organisation hat dieses Produkt auf Lager','"Lagerhaltig" zeigt an, ob die Organisation dieses Produkt auf Lager hält.','Y','N','Y','Y','N','Lagerhaltig',740,740,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:40:09.909
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,563037,0,442,541556,551690,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Data import',750,750,0,TO_TIMESTAMP('2018-04-28 09:40:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-28T09:46:30.402
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551684
;
-- 2018-04-28T09:46:30.404
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551649
;
-- 2018-04-28T09:46:30.408
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551624
;
-- 2018-04-28T09:46:30.424
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551644
;
-- 2018-04-28T09:46:30.426
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551660
;
-- 2018-04-28T09:46:30.431
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551643
;
-- 2018-04-28T09:46:30.433
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551679
;
-- 2018-04-28T09:46:30.435
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551690
;
-- 2018-04-28T09:46:30.436
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551676
;
-- 2018-04-28T09:46:30.438
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551675
;
-- 2018-04-28T09:46:30.439
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551641
;
-- 2018-04-28T09:46:30.441
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551642
;
-- 2018-04-28T09:46:30.442
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551640
;
-- 2018-04-28T09:46:30.443
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551650
;
-- 2018-04-28T09:46:30.445
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551683
;
-- 2018-04-28T09:46:30.446
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551646
;
-- 2018-04-28T09:46:30.447
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551645
;
-- 2018-04-28T09:46:30.448
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551636
;
-- 2018-04-28T09:46:30.449
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551686
;
-- 2018-04-28T09:46:30.450
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551657
;
-- 2018-04-28T09:46:30.451
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551647
;
-- 2018-04-28T09:46:30.453
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551616
;
-- 2018-04-28T09:46:30.454
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551619
;
-- 2018-04-28T09:46:30.455
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551682
;
-- 2018-04-28T09:46:30.456
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551681
;
-- 2018-04-28T09:46:30.457
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551634
;
-- 2018-04-28T09:46:30.458
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551629
;
-- 2018-04-28T09:46:30.459
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551626
;
-- 2018-04-28T09:46:30.460
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551653
;
-- 2018-04-28T09:46:30.462
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551672
;
-- 2018-04-28T09:46:30.463
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551620
;
-- 2018-04-28T09:46:30.463
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551658
;
-- 2018-04-28T09:46:30.464
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551652
;
-- 2018-04-28T09:46:30.465
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551662
;
-- 2018-04-28T09:46:30.466
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551678
;
-- 2018-04-28T09:46:30.467
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551625
;
-- 2018-04-28T09:46:30.468
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551670
;
-- 2018-04-28T09:46:30.469
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551669
;
-- 2018-04-28T09:46:30.470
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551668
;
-- 2018-04-28T09:46:30.470
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551659
;
-- 2018-04-28T09:46:30.471
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551674
;
-- 2018-04-28T09:46:30.472
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551673
;
-- 2018-04-28T09:46:30.473
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551654
;
-- 2018-04-28T09:46:30.474
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551677
;
-- 2018-04-28T09:46:30.475
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551685
;
-- 2018-04-28T09:46:30.476
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551687
;
-- 2018-04-28T09:46:30.477
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551671
;
-- 2018-04-28T09:46:30.478
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551618
;
-- 2018-04-28T09:46:30.479
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551656
;
-- 2018-04-28T09:46:30.480
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551655
;
-- 2018-04-28T09:46:30.481
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551666
;
-- 2018-04-28T09:46:30.482
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551631
;
-- 2018-04-28T09:46:30.483
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551637
;
-- 2018-04-28T09:46:30.484
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551638
;
-- 2018-04-28T09:46:30.485
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551639
;
-- 2018-04-28T09:46:30.486
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551628
;
-- 2018-04-28T09:46:30.486
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551651
;
-- 2018-04-28T09:46:30.487
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551663
;
-- 2018-04-28T09:46:30.488
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551680
;
-- 2018-04-28T09:46:30.489
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551627
;
-- 2018-04-28T09:46:30.489
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551665
;
-- 2018-04-28T09:46:30.490
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551664
;
-- 2018-04-28T09:46:30.491
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551635
;
-- 2018-04-28T09:46:30.492
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551648
;
-- 2018-04-28T09:46:30.493
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551661
;
-- 2018-04-28T09:46:30.493
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551622
;
-- 2018-04-28T09:46:30.494
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551623
;
-- 2018-04-28T09:46:30.495
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551633
;
-- 2018-04-28T09:46:30.496
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551632
;
-- 2018-04-28T09:46:30.497
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551630
;
-- 2018-04-28T09:46:30.497
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551617
;
-- 2018-04-28T09:46:30.498
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551621
;
-- 2018-04-28T09:46:30.499
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551688
;
-- 2018-04-28T09:46:30.500
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551667
;
-- 2018-04-28T09:46:30.501
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2018-04-28 09:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551689
;
-- 2018-04-28T09:48:52.786
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2018-04-28 09:48:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551624
;
-- 2018-04-28T09:48:52.792
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2018-04-28 09:48:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551633
;
-- 2018-04-28T09:48:52.797
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2018-04-28 09:48:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551632
;
-- 2018-04-28T09:48:52.801
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2018-04-28 09:48:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551630
;
-- 2018-04-28T09:48:52.807
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2018-04-28 09:48:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551617
;
-- 2018-04-28T09:48:52.812
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2018-04-28 09:48:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551621
;
-- 2018-04-28T09:48:52.817
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2018-04-28 09:48:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551688
;
-- 2018-04-28T09:48:52.822
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2018-04-28 09:48:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551667
;
-- 2018-04-28T09:48:52.826
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2018-04-28 09:48:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551689
;
-- 2018-04-28T09:48:52.831
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2018-04-28 09:48:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551636
;
-- 2018-04-28T09:48:57.383
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2018-04-28 09:48:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551688
;
-- 2018-04-28T09:48:57.388
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2018-04-28 09:48:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551667
;
-- 2018-04-28T09:48:57.391
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2018-04-28 09:48:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551689
;
-- 2018-04-28T09:48:57.393
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2018-04-28 09:48:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551636
;
-- 2018-04-28T09:48:57.394
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2018-04-28 09:48:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551621
;
-- 2018-04-28T09:51:02.008
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2018-04-28 09:51:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551619
;
-- 2018-04-28T09:51:02.010
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2018-04-28 09:51:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551688
;
-- 2018-04-28T09:51:02.011
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2018-04-28 09:51:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551667
;
-- 2018-04-28T09:51:02.012
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2018-04-28 09:51:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551689
;
-- 2018-04-28T09:51:02.013
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2018-04-28 09:51:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551636
;
-- 2018-04-28T09:51:02.014
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=130,Updated=TO_TIMESTAMP('2018-04-28 09:51:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551621
;
-- 2018-04-28T09:52:31.783
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2018-04-28 09:52:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551622
;
-- 2018-04-28T09:52:33.741
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2018-04-28 09:52:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551623
;
-- 2018-04-28T09:52:35.272
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2018-04-28 09:52:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551624
;
-- 2018-04-28T09:52:36.901
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2018-04-28 09:52:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551633
;
-- 2018-04-28T09:52:38.585
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2018-04-28 09:52:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551632
;
-- 2018-04-28T09:52:40.071
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2018-04-28 09:52:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551630
;
-- 2018-04-28T09:52:41.439
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=70,Updated=TO_TIMESTAMP('2018-04-28 09:52:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551617
;
-- 2018-04-28T09:52:42.760
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=80,Updated=TO_TIMESTAMP('2018-04-28 09:52:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551619
;
-- 2018-04-28T09:52:44.215
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=90,Updated=TO_TIMESTAMP('2018-04-28 09:52:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551688
;
-- 2018-04-28T09:52:45.848
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=100,Updated=TO_TIMESTAMP('2018-04-28 09:52:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551667
;
-- 2018-04-28T09:52:47.628
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=110,Updated=TO_TIMESTAMP('2018-04-28 09:52:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551689
;
-- 2018-04-28T09:52:49.745
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=120,Updated=TO_TIMESTAMP('2018-04-28 09:52:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551636
;
-- 2018-04-28T09:53:03.873
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=0,Updated=TO_TIMESTAMP('2018-04-28 09:53:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551621
;
-- 2018-04-28T09:53:06.758
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=130,Updated=TO_TIMESTAMP('2018-04-28 09:53:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551618
;
-- 2018-04-28T09:53:09.891
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=140,Updated=TO_TIMESTAMP('2018-04-28 09:53:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551616
;
-- 2018-04-28T09:53:11.479
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=0,Updated=TO_TIMESTAMP('2018-04-28 09:53:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551620
;
-- 2018-04-28T09:53:13.111
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=150,Updated=TO_TIMESTAMP('2018-04-28 09:53:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551634
;
-- 2018-04-28T09:53:16.250
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=170,Updated=TO_TIMESTAMP('2018-04-28 09:53:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551647
;
-- 2018-04-28T09:53:18.080
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=180,Updated=TO_TIMESTAMP('2018-04-28 09:53:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551657
;
-- 2018-04-28T09:53:19.884
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=190,Updated=TO_TIMESTAMP('2018-04-28 09:53:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551655
;
-- 2018-04-28T09:53:21.429
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=200,Updated=TO_TIMESTAMP('2018-04-28 09:53:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551645
;
-- 2018-04-28T09:53:23.077
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=210,Updated=TO_TIMESTAMP('2018-04-28 09:53:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551646
;
-- 2018-04-28T09:53:24.646
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=220,Updated=TO_TIMESTAMP('2018-04-28 09:53:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551656
;
-- 2018-04-28T09:53:26.515
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=230,Updated=TO_TIMESTAMP('2018-04-28 09:53:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551650
;
-- 2018-04-28T09:53:28.687
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=240,Updated=TO_TIMESTAMP('2018-04-28 09:53:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551640
;
-- 2018-04-28T09:53:30.540
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=250,Updated=TO_TIMESTAMP('2018-04-28 09:53:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551642
;
-- 2018-04-28T09:53:33.484
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=270,Updated=TO_TIMESTAMP('2018-04-28 09:53:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551648
;
-- 2018-04-28T09:53:36.274
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=290,Updated=TO_TIMESTAMP('2018-04-28 09:53:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551635
;
-- 2018-04-28T09:53:37.849
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=300,Updated=TO_TIMESTAMP('2018-04-28 09:53:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551644
;
-- 2018-04-28T09:53:40.189
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=310,Updated=TO_TIMESTAMP('2018-04-28 09:53:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551649
;
-- 2018-04-28T09:53:41.946
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=320,Updated=TO_TIMESTAMP('2018-04-28 09:53:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551654
;
-- 2018-04-28T09:53:43.907
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=330,Updated=TO_TIMESTAMP('2018-04-28 09:53:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551627
;
-- 2018-04-28T09:53:46.443
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=340,Updated=TO_TIMESTAMP('2018-04-28 09:53:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551651
;
-- 2018-04-28T09:53:49.114
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=350,Updated=TO_TIMESTAMP('2018-04-28 09:53:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551625
;
-- 2018-04-28T09:53:50.954
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=360,Updated=TO_TIMESTAMP('2018-04-28 09:53:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551639
;
-- 2018-04-28T09:53:52.681
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=370,Updated=TO_TIMESTAMP('2018-04-28 09:53:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551628
;
-- 2018-04-28T09:53:54.407
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=380,Updated=TO_TIMESTAMP('2018-04-28 09:53:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551652
;
-- 2018-04-28T09:53:56.306
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=390,Updated=TO_TIMESTAMP('2018-04-28 09:53:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551638
;
-- 2018-04-28T09:53:58.296
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=400,Updated=TO_TIMESTAMP('2018-04-28 09:53:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551637
;
-- 2018-04-28T09:54:00.719
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=410,Updated=TO_TIMESTAMP('2018-04-28 09:54:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551653
;
-- 2018-04-28T09:54:03.014
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=420,Updated=TO_TIMESTAMP('2018-04-28 09:54:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551626
;
-- 2018-04-28T09:54:05.248
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=430,Updated=TO_TIMESTAMP('2018-04-28 09:54:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551629
;
-- 2018-04-28T09:54:07.072
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=440,Updated=TO_TIMESTAMP('2018-04-28 09:54:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551684
;
-- 2018-04-28T09:54:08.883
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=450,Updated=TO_TIMESTAMP('2018-04-28 09:54:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551661
;
-- 2018-04-28T09:54:10.608
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=460,Updated=TO_TIMESTAMP('2018-04-28 09:54:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551664
;
-- 2018-04-28T09:54:12.531
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=470,Updated=TO_TIMESTAMP('2018-04-28 09:54:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551665
;
-- 2018-04-28T09:54:14.367
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=480,Updated=TO_TIMESTAMP('2018-04-28 09:54:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551680
;
-- 2018-04-28T09:54:16.170
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=490,Updated=TO_TIMESTAMP('2018-04-28 09:54:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551663
;
-- 2018-04-28T09:54:17.885
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=500,Updated=TO_TIMESTAMP('2018-04-28 09:54:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551666
;
-- 2018-04-28T09:54:29.366
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=510,Updated=TO_TIMESTAMP('2018-04-28 09:54:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551671
;
-- 2018-04-28T09:54:31.885
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=520,Updated=TO_TIMESTAMP('2018-04-28 09:54:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551687
;
-- 2018-04-28T09:54:33.685
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=530,Updated=TO_TIMESTAMP('2018-04-28 09:54:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551685
;
-- 2018-04-28T09:54:36.550
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=540,Updated=TO_TIMESTAMP('2018-04-28 09:54:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551677
;
-- 2018-04-28T09:54:38.143
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=550,Updated=TO_TIMESTAMP('2018-04-28 09:54:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551673
;
-- 2018-04-28T09:54:39.694
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=560,Updated=TO_TIMESTAMP('2018-04-28 09:54:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551674
;
-- 2018-04-28T09:54:43.265
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=570,Updated=TO_TIMESTAMP('2018-04-28 09:54:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551659
;
-- 2018-04-28T09:54:44.763
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=580,Updated=TO_TIMESTAMP('2018-04-28 09:54:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551668
;
-- 2018-04-28T09:54:46.468
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=590,Updated=TO_TIMESTAMP('2018-04-28 09:54:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551669
;
-- 2018-04-28T09:54:48.071
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=600,Updated=TO_TIMESTAMP('2018-04-28 09:54:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551670
;
-- 2018-04-28T09:54:51.702
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=610,Updated=TO_TIMESTAMP('2018-04-28 09:54:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551678
;
-- 2018-04-28T09:54:54.008
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=620,Updated=TO_TIMESTAMP('2018-04-28 09:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551662
;
-- 2018-04-28T09:54:56.117
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=630,Updated=TO_TIMESTAMP('2018-04-28 09:54:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551658
;
-- 2018-04-28T09:54:58.584
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=640,Updated=TO_TIMESTAMP('2018-04-28 09:54:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551672
;
-- 2018-04-28T09:55:00.459
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=650,Updated=TO_TIMESTAMP('2018-04-28 09:55:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551681
;
-- 2018-04-28T09:55:02.577
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=660,Updated=TO_TIMESTAMP('2018-04-28 09:55:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551682
;
-- 2018-04-28T09:55:04.332
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=670,Updated=TO_TIMESTAMP('2018-04-28 09:55:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551686
;
-- 2018-04-28T09:55:07.772
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=690,Updated=TO_TIMESTAMP('2018-04-28 09:55:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551675
;
-- 2018-04-28T09:55:09.875
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=700,Updated=TO_TIMESTAMP('2018-04-28 09:55:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551676
;
-- 2018-04-28T09:55:11.688
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=710,Updated=TO_TIMESTAMP('2018-04-28 09:55:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551690
;
-- 2018-04-28T09:55:13.887
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=720,Updated=TO_TIMESTAMP('2018-04-28 09:55:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551679
;
-- 2018-04-28T09:55:24.488
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=730,Updated=TO_TIMESTAMP('2018-04-28 09:55:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551660
;
-- 2018-04-28T09:55:30.027
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=740,Updated=TO_TIMESTAMP('2018-04-28 09:55:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551621
;
-- 2018-04-28T09:55:34.434
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=750,Updated=TO_TIMESTAMP('2018-04-28 09:55:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551620
;
-- 2018-04-28T09:57:54.088
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2018-04-28 09:57:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551622
;
-- 2018-04-28T09:58:00.973
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='L',Updated=TO_TIMESTAMP('2018-04-28 09:58:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551623
;
-- 2018-04-28T09:58:11.023
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2018-04-28 09:58:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551621
;
-- 2018-04-28T09:58:46.432
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='L',Updated=TO_TIMESTAMP('2018-04-28 09:58:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551619
;
-- 2018-04-28T09:59:32.547
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2018-04-28 09:59:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551630
;
-- 2018-04-28T10:00:04.665
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2018-04-28 10:00:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551633
;
-- 2018-04-28T10:01:52.693
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=10,Updated=TO_TIMESTAMP('2018-04-28 10:01:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551622
;
-- 2018-04-28T10:01:52.697
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=20,Updated=TO_TIMESTAMP('2018-04-28 10:01:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551623
;
-- 2018-04-28T10:01:52.706
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=30,Updated=TO_TIMESTAMP('2018-04-28 10:01:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551617
;
-- 2018-04-28T10:01:52.710
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=40,Updated=TO_TIMESTAMP('2018-04-28 10:01:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=551621
;
-- 2018-04-28T10:03:33.741
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Import Fehlermeldung',Updated=TO_TIMESTAMP('2018-04-28 10:03:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5967
;
-- 2018-04-28T10:03:56.395
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Produktkategorie Schlüssel',Updated=TO_TIMESTAMP('2018-04-28 10:03:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5966
;
-- 2018-04-28T10:04:12.508
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Produkt Kategorie Geschäftspartner',Updated=TO_TIMESTAMP('2018-04-28 10:04:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5973
;
-- 2018-04-28T10:04:19.971
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Produkt Kategorie Schlüssel',Updated=TO_TIMESTAMP('2018-04-28 10:04:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5966
;
-- 2018-04-28T10:04:45.290
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Beschreibungs URL',Updated=TO_TIMESTAMP('2018-04-28 10:04:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5998
;
-- 2018-04-28T10:04:51.536
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Bild URL',Updated=TO_TIMESTAMP('2018-04-28 10:04:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5994
;
-- 2018-04-28T10:05:27.492
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Hersteller',Updated=TO_TIMESTAMP('2018-04-28 10:05:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=560702
;
-- 2018-04-28T10:05:42.955
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Pharma Product Kategorie',Updated=TO_TIMESTAMP('2018-04-28 10:05:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=563101
;
-- 2018-04-28T10:05:52.900
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Pharma Product Kategorie Name',Updated=TO_TIMESTAMP('2018-04-28 10:05:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=563100
;
-- 2018-04-28T10:06:07.577
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Verpackungsgröße',Updated=TO_TIMESTAMP('2018-04-28 10:06:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=560700
;
-- 2018-04-28T10:06:19.069
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Verpackung Maßeinheit',Updated=TO_TIMESTAMP('2018-04-28 10:06:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=560699
;
-- 2018-04-28T10:06:28.673
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Verpackung Maßeinheit Name',Updated=TO_TIMESTAMP('2018-04-28 10:06:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=560698
;
-- 2018-04-28T10:06:31.711
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Pharma Produkt Kategorie',Updated=TO_TIMESTAMP('2018-04-28 10:06:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=563101
;
-- 2018-04-28T10:06:36.161
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Pharma Produkt Kategorie Name',Updated=TO_TIMESTAMP('2018-04-28 10:06:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=563100
;
-- 2018-04-28T10:06:43.356
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Preisliste AEP',Updated=TO_TIMESTAMP('2018-04-28 10:06:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=563104
;
-- 2018-04-28T10:06:50.875
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Preisliste APU',Updated=TO_TIMESTAMP('2018-04-28 10:06:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=563105
;
-- 2018-04-28T10:07:03.822
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Produkt Nr. Geschäftspartner',Updated=TO_TIMESTAMP('2018-04-28 10:07:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5960
;
-- 2018-04-28T10:07:19.650
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Betäubungsmittel',Updated=TO_TIMESTAMP('2018-04-28 10:07:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=560706
;
-- 2018-04-28T10:07:32.737
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Verschreibungspflichtig',Updated=TO_TIMESTAMP('2018-04-28 10:07:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=560705
;
-- 2018-04-28T10:08:08.868
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Geschäftspartner Nr.',Updated=TO_TIMESTAMP('2018-04-28 10:08:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5986
;
-- 2018-04-28T10:08:51.297
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Indikation',Updated=TO_TIMESTAMP('2018-04-28 10:08:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=560710
;
-- 2018-04-28T10:08:56.309
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Indikation Name',Updated=TO_TIMESTAMP('2018-04-28 10:08:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=560709
;
-- 2018-04-28T10:09:31.461
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Produkt Plandaten Schema',Updated=TO_TIMESTAMP('2018-04-28 10:09:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561985
;
-- 2018-04-28T10:09:35.159
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='MwSt Kategorie',Updated=TO_TIMESTAMP('2018-04-28 10:09:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556298
;
-- 2018-04-28T10:10:03.240
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Kühlkette',Updated=TO_TIMESTAMP('2018-04-28 10:10:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=560707
;
-- 2018-04-28T10:10:17.830
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Darreichungsform',Updated=TO_TIMESTAMP('2018-04-28 10:10:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=560704
;
-- 2018-04-28T10:10:23.321
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Darreichungsform Name',Updated=TO_TIMESTAMP('2018-04-28 10:10:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=560703
;
-- 2018-04-28T10:12:43.532
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-04-28 10:12:43','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Tax Category' WHERE AD_Field_ID=556298 AND AD_Language='en_US'
;
-- 2018-04-28T10:13:32.736
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-04-28 10:13:32','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Product Planning Schema' WHERE AD_Field_ID=561985 AND AD_Language='en_US'
;
|
<reponame>workcartersmith/smart-anc
library ANCDT16
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1'
include ANCConfig called Config
include ANCConcepts called Cx
include ANCDataElements called PatientData
include ANCContactDataElements called ContactData
context Patient
/*
("Population prevalence of undernourishment" ≥ 20%)
AND ("Weight category" = "Underweight")
*/
define "Should Conduct counselling on dietary interventions":
Config."Population prevalence of undernourishment" >= 20 '%'
and ContactData."Weight category" in Cx."Weight category - Underweight Choices"
/*
("Population prevalence of undernourishment" ≥ 20%)
AND ("Weight category" = "Underweight")
*/
define "Should Conduct counselling on dietary interventions 2":
Config."Population prevalence of undernourishment" >= 20 '%'
and ContactData."Weight category" in Cx."Weight category - Underweight Choices"
|
/*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/******************************************/
/* 数据库全名 = nacos_config */
/* 表名称 = config_info */
/******************************************/
create table `config_info` (
`id` bigint(20) not null auto_increment comment 'id',
`data_id` varchar(255) not null comment 'data_id',
`group_id` varchar(255) default null,
`content` longtext not null comment 'content',
`md5` varchar(32) default null comment 'md5',
`gmt_create` datetime not null default current_timestamp comment '创建时间',
`gmt_modified` datetime not null default current_timestamp comment '修改时间',
`src_user` text comment 'source user',
`src_ip` varchar(50) default null comment 'source ip',
`app_name` varchar(128) default null,
`tenant_id` varchar(128) default '' comment '租户字段',
`c_desc` varchar(256) default null,
`c_use` varchar(64) default null,
`effect` varchar(64) default null,
`type` varchar(64) default null,
`c_schema` text,
primary key (`id`),
unique key `uk_configinfo_datagrouptenant`(`data_id`, `group_id`, `tenant_id`)
)
engine = InnoDB
default charset = utf8
collate = utf8_bin comment ='config_info';
/******************************************/
/* 数据库全名 = nacos_config */
/* 表名称 = config_info_aggr */
/******************************************/
create table `config_info_aggr` (
`id` bigint(20) not null auto_increment comment 'id',
`data_id` varchar(255) not null comment 'data_id',
`group_id` varchar(255) not null comment 'group_id',
`datum_id` varchar(255) not null comment 'datum_id',
`content` longtext not null comment '内容',
`gmt_modified` datetime not null comment '修改时间',
`app_name` varchar(128) default null,
`tenant_id` varchar(128) default '' comment '租户字段',
primary key (`id`),
unique key `uk_configinfoaggr_datagrouptenantdatum`(`data_id`, `group_id`, `tenant_id`, `datum_id`)
)
engine = InnoDB
default charset = utf8
collate = utf8_bin comment ='增加租户字段';
/******************************************/
/* 数据库全名 = nacos_config */
/* 表名称 = config_info_beta */
/******************************************/
create table `config_info_beta` (
`id` bigint(20) not null auto_increment comment 'id',
`data_id` varchar(255) not null comment 'data_id',
`group_id` varchar(128) not null comment 'group_id',
`app_name` varchar(128) default null comment 'app_name',
`content` longtext not null comment 'content',
`beta_ips` varchar(1024) default null comment 'betaIps',
`md5` varchar(32) default null comment 'md5',
`gmt_create` datetime not null default current_timestamp comment '创建时间',
`gmt_modified` datetime not null default current_timestamp comment '修改时间',
`src_user` text comment 'source user',
`src_ip` varchar(50) default null comment 'source ip',
`tenant_id` varchar(128) default '' comment '租户字段',
primary key (`id`),
unique key `uk_configinfobeta_datagrouptenant`(`data_id`, `group_id`, `tenant_id`)
)
engine = InnoDB
default charset = utf8
collate = utf8_bin comment ='config_info_beta';
/******************************************/
/* 数据库全名 = nacos_config */
/* 表名称 = config_info_tag */
/******************************************/
create table `config_info_tag` (
`id` bigint(20) not null auto_increment comment 'id',
`data_id` varchar(255) not null comment 'data_id',
`group_id` varchar(128) not null comment 'group_id',
`tenant_id` varchar(128) default '' comment 'tenant_id',
`tag_id` varchar(128) not null comment 'tag_id',
`app_name` varchar(128) default null comment 'app_name',
`content` longtext not null comment 'content',
`md5` varchar(32) default null comment 'md5',
`gmt_create` datetime not null default current_timestamp comment '创建时间',
`gmt_modified` datetime not null default current_timestamp comment '修改时间',
`src_user` text comment 'source user',
`src_ip` varchar(50) default null comment 'source ip',
primary key (`id`),
unique key `uk_configinfotag_datagrouptenanttag`(`data_id`, `group_id`, `tenant_id`, `tag_id`)
)
engine = InnoDB
default charset = utf8
collate = utf8_bin comment ='config_info_tag';
/******************************************/
/* 数据库全名 = nacos_config */
/* 表名称 = config_tags_relation */
/******************************************/
create table `config_tags_relation` (
`id` bigint(20) not null comment 'id',
`tag_name` varchar(128) not null comment 'tag_name',
`tag_type` varchar(64) default null comment 'tag_type',
`data_id` varchar(255) not null comment 'data_id',
`group_id` varchar(128) not null comment 'group_id',
`tenant_id` varchar(128) default '' comment 'tenant_id',
`nid` bigint(20) not null auto_increment,
primary key (`nid`),
unique key `uk_configtagrelation_configidtag`(`id`, `tag_name`, `tag_type`),
key `idx_tenant_id`(`tenant_id`)
)
engine = InnoDB
default charset = utf8
collate = utf8_bin comment ='config_tag_relation';
/******************************************/
/* 数据库全名 = nacos_config */
/* 表名称 = group_capacity */
/******************************************/
create table `group_capacity` (
`id` bigint(20) unsigned not null auto_increment comment '主键ID',
`group_id` varchar(128) not null default '' comment 'Group ID,空字符表示整个集群',
`quota` int(10) unsigned not null default '0' comment '配额,0表示使用默认值',
`usage` int(10) unsigned not null default '0' comment '使用量',
`max_size` int(10) unsigned not null default '0' comment '单个配置大小上限,单位为字节,0表示使用默认值',
`max_aggr_count` int(10) unsigned not null default '0' comment '聚合子配置最大个数,,0表示使用默认值',
`max_aggr_size` int(10) unsigned not null default '0' comment '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
`max_history_count` int(10) unsigned not null default '0' comment '最大变更历史数量',
`gmt_create` datetime not null default current_timestamp comment '创建时间',
`gmt_modified` datetime not null default current_timestamp comment '修改时间',
primary key (`id`),
unique key `uk_group_id`(`group_id`)
)
engine = InnoDB
default charset = utf8
collate = utf8_bin comment ='集群、各Group容量信息表';
/******************************************/
/* 数据库全名 = nacos_config */
/* 表名称 = his_config_info */
/******************************************/
create table `his_config_info` (
`id` bigint(64) unsigned not null,
`nid` bigint(20) unsigned not null auto_increment,
`data_id` varchar(255) not null,
`group_id` varchar(128) not null,
`app_name` varchar(128) default null comment 'app_name',
`content` longtext not null,
`md5` varchar(32) default null,
`gmt_create` datetime not null default current_timestamp,
`gmt_modified` datetime not null default current_timestamp,
`src_user` text,
`src_ip` varchar(50) default null,
`op_type` char(10) default null,
`tenant_id` varchar(128) default '' comment '租户字段',
primary key (`nid`),
key `idx_gmt_create`(`gmt_create`),
key `idx_gmt_modified`(`gmt_modified`),
key `idx_did`(`data_id`)
)
engine = InnoDB
default charset = utf8
collate = utf8_bin comment ='多租户改造';
/******************************************/
/* 数据库全名 = nacos_config */
/* 表名称 = tenant_capacity */
/******************************************/
create table `tenant_capacity` (
`id` bigint(20) unsigned not null auto_increment comment '主键ID',
`tenant_id` varchar(128) not null default '' comment 'Tenant ID',
`quota` int(10) unsigned not null default '0' comment '配额,0表示使用默认值',
`usage` int(10) unsigned not null default '0' comment '使用量',
`max_size` int(10) unsigned not null default '0' comment '单个配置大小上限,单位为字节,0表示使用默认值',
`max_aggr_count` int(10) unsigned not null default '0' comment '聚合子配置最大个数',
`max_aggr_size` int(10) unsigned not null default '0' comment '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
`max_history_count` int(10) unsigned not null default '0' comment '最大变更历史数量',
`gmt_create` datetime not null default current_timestamp comment '创建时间',
`gmt_modified` datetime not null default current_timestamp comment '修改时间',
primary key (`id`),
unique key `uk_tenant_id`(`tenant_id`)
)
engine = InnoDB
default charset = utf8
collate = utf8_bin comment ='租户容量信息表';
create table `tenant_info` (
`id` bigint(20) not null auto_increment comment 'id',
`kp` varchar(128) not null comment 'kp',
`tenant_id` varchar(128) default '' comment 'tenant_id',
`tenant_name` varchar(128) default '' comment 'tenant_name',
`tenant_desc` varchar(256) default null comment 'tenant_desc',
`create_source` varchar(32) default null comment 'create_source',
`gmt_create` bigint(20) not null comment '创建时间',
`gmt_modified` bigint(20) not null comment '修改时间',
primary key (`id`),
unique key `uk_tenant_info_kptenantid`(`kp`, `tenant_id`),
key `idx_tenant_id`(`tenant_id`)
)
engine = InnoDB
default charset = utf8
collate = utf8_bin comment ='tenant_info';
create table `users` (
`username` varchar(50) not null primary key,
`password` varchar(500) not null,
`enabled` boolean not null
);
create table `roles` (
`username` varchar(50) not null,
`role` varchar(50) not null,
unique index `idx_user_role`(`username` asc, `role` asc) using btree
);
create table `permissions` (
`role` varchar(50) not null,
`resource` varchar(255) not null,
`action` varchar(8) not null,
unique index `uk_role_permission`(`role`, `resource`, `action`) using btree
);
insert into users (username, password, enabled)
values ('nacos', '$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu', true);
insert into roles (username, role)
values ('nacos', 'ROLE_ADMIN'); |
select title, tags, akas
from aws.aws_ec2_application_load_balancer
where arn = '{{ output.resource_aka.value }}'
|
<reponame>mitring/cuba
-- Description:
alter table SYS_APP_FOLDER add column APPLY_DEFAULT boolean;
alter table SEC_SEARCH_FOLDER add column APPLY_DEFAULT boolean;
|
/*
Navicat MySQL Data Transfer
Source Server : ActivitOrder
Source Server Version : 50505
Source Host : localhost:3306
Source Database : activitorder
Target Server Type : MYSQL
Target Server Version : 50505
File Encoding : 65001
Date: 2017-03-10 16:57:12
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for activitylist
-- ----------------------------
DROP TABLE IF EXISTS `activitylist`;
CREATE TABLE `activitylist` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`Name` varchar(255) NOT NULL,
`Category` varchar(255) DEFAULT NULL,
`Cost` varchar(255) DEFAULT NULL,
`Status` enum('YES','NO') NOT NULL DEFAULT 'NO',
`StartTime` datetime NOT NULL,
`EndTime` datetime NOT NULL,
`Tag` text,
`Logo` varchar(255) NOT NULL,
`Desc` text,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of activitylist
-- ----------------------------
INSERT INTO `activitylist` VALUES ('1', '2017拓景崇明定向123', '1', '1', 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('2', '2017拓景崇明定向123', '1', '2', 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('3', '2017拓景崇明定向aaas', '1', '3', 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('4', '2017拓景崇明定向asdf', '1', '4', 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('5', '2017拓景崇明定向asfa', '1', '4', 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('6', '2017拓景崇明定向adsf', '1', '234', 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('7', '2017拓景崇明定向asdf', '1', '234', 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('8', '2017拓景崇明定向adf', '1', '234', 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('9', '2017拓景崇明定向', '1', '123', 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('10', '2017拓景崇明定向', '1', '23', 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('11', '2017拓景崇明定向', '1', '342', 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('12', '2017拓景崇明定向', '1', '2', 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('13', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('14', '2017拓景崇明定向', '1', '2', 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('15', '2017拓景崇明定向', '1', '3', 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('16', '2017拓景崇明定向', '1', '2', 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('17', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('18', '2017拓景崇明定向', '1', '2', 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('19', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('20', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('21', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('22', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('23', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('24', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('25', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('26', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('27', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('28', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('29', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('30', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('31', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('32', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('33', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('34', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('35', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('36', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('37', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('38', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('39', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('40', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('41', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('42', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
INSERT INTO `activitylist` VALUES ('43', '2017拓景崇明定向', '1', null, 'NO', '2017-03-01 15:50:36', '2017-03-01 23:59:59', null, '', '');
|
drop table if exists t_par;
CREATE TABLE t_par (c_short smallint, c_bigint bigint,c_date DATE,
c_timestamp TIMESTAMP,c_datetime DATETIME,
c_timestampltz TIMESTAMPLTZ, c_timestamptz TIMESTAMPTZ,
c_datetimeltz DATETIMELTZ, c_datetimetz DATETIMETZ);
insert into t_par values(1,1000,date'2020-12-12', timestamp'1999-04-23 14:35:56', datetime'1999-04-23 00:00:00',
timestampltz'2013-10-01 12:13:14 -12:00', timestamptz'2012-10-01 12:13:14 Europe/Riga',
datetimeltz'1983-12-31 23:59:59 +14:00', datetimetz'2009-11-23 12:00:00 AM Australia/Eucla');
insert into t_par values(2,1001,date'2010-11-12', timestamp'1986-04-23 14:35:56', datetime'1996-04-23 12:35:56.789',
timestampltz'2015-10-01 12:13:14 -12:00', timestamptz'2002-10-01 12:13:14 Europe/Riga',
datetimeltz'1989-12-31 23:59:59 +14:00', datetimetz'2014-11-23 12:00:00 AM Australia/Eucla');
insert into t_par values(3,1002,date'2000-02-12', timestamp'1972-04-23 14:35:56', datetime'2009-04-23 13:35:56.789',
timestampltz'2013-11-01 12:13:14 -12:00', timestamptz'1999-10-01 12:13:14 Europe/Riga',
datetimeltz'1996-12-31 23:59:59 +14:00', datetimetz'1999-11-23 12:00:00 AM Australia/Eucla');
insert into t_par values(4,1003,date'1960-12-12', timestamp'1997-04-23 14:35:56', datetime'2003-04-23 14:35:56.789',
timestampltz'2013-10-11 12:13:14 -11:00', timestamptz'2022-10-01 12:13:14 Asia/Seoul',
datetimeltz'2012-12-31 23:59:59 +14:00', datetimetz'2015-11-20 00:00:00 AM Australia/Eucla');
insert into t_par values(5,1004,date'1980-11-12', timestamp'2000-04-23 14:35:56', datetime'1996-04-23 15:35:56.789',
timestampltz'2001-10-01 12:13:14 -12:00', timestamptz'2012-10-01 12:13:14 Asia/Seoul',
datetimeltz'1911-12-31 23:59:59 +14:00', datetimetz'2017-11-23 12:00:00 AM Australia/Eucla');
--test case datetime
alter table t_par PARTITION BY RANGE (c_datetime) (PARTITION before_2000 VALUES LESS THAN (datetime '12:00:00.001 AM 01/01/2000'), PARTITION last_one VALUES LESS THAN MAXVALUE);
create unique index inx on t_par(c_datetime) with online;
select * from t_par where c_datetime > datetime '12:00:00.001 AM 01/01/2000' order by c_short;
select * from t_par where c_datetime > datetime '00:00:00 AM 01/01/2000' order by c_short;
drop t_par;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.