sql
stringlengths 6
1.05M
|
---|
-- file:enum.sql ln:77 expect:true
create type insenum as enum ('L1', 'L2')
|
-- 2020-10-09T10:11:42.177Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Element_ID,AD_Menu_ID,AD_Org_ID,AD_Process_ID,Created,CreatedBy,Description,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES ('P',0,575043,541542,0,233,TO_TIMESTAMP('2020-10-09 13:11:41','YYYY-MM-DD HH24:MI:SS'),100,'Belegarten und Periodenkontrolle verifizieren ','de.metas.fresh','C_DocumentType Verify','Y','N','N','N','N','Belegarten verifizieren',TO_TIMESTAMP('2020-10-09 13:11:41','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2020-10-09T10:11:42.183Z
-- 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=541542 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)
;
-- 2020-10-09T10:11:42.189Z
-- 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, 541542, 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=541542)
;
-- 2020-10-09T10:11:42.212Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_menu_translation_from_ad_element(575043)
;
-- 2020-10-09T10:11:46.307Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540862, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=541542 AND AD_Tree_ID=10
;
-- 2020-10-09T10:11:51.532Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000099, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=541542 AND AD_Tree_ID=10
;
-- 2020-10-09T10:11:51.535Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000099, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540809 AND AD_Tree_ID=10
;
|
-- Nodes
CREATE INDEX IF NOT EXISTS osm_nodes_spgist ON osm_nodes USING SPGIST (geom);
-- Ways
CREATE INDEX IF NOT EXISTS osm_ways_spgist ON osm_ways USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_ways_z0_spgist ON osm_ways_z0 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_ways_z1_spgist ON osm_ways_z1 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_ways_z2_spgist ON osm_ways_z2 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_ways_z3_spgist ON osm_ways_z3 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_ways_z4_spgist ON osm_ways_z4 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_ways_z5_spgist ON osm_ways_z5 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_ways_z6_spgist ON osm_ways_z6 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_ways_z7_spgist ON osm_ways_z7 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_ways_z8_spgist ON osm_ways_z8 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_ways_z9_spgist ON osm_ways_z9 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_ways_z10_spgist ON osm_ways_z10 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_ways_z11_spgist ON osm_ways_z11 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_ways_z12_spgist ON osm_ways_z12 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_ways_z13_spgist ON osm_ways_z13 USING SPGIST (geom);
-- Relations
CREATE INDEX IF NOT EXISTS osm_relations_spgist ON osm_relations USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_relations_z0_spgist ON osm_relations_z0 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_relations_z1_spgist ON osm_relations_z1 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_relations_z2_spgist ON osm_relations_z2 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_relations_z3_spgist ON osm_relations_z3 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_relations_z4_spgist ON osm_relations_z4 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_relations_z5_spgist ON osm_relations_z5 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_relations_z6_spgist ON osm_relations_z6 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_relations_z7_spgist ON osm_relations_z7 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_relations_z8_spgist ON osm_relations_z8 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_relations_z9_spgist ON osm_relations_z9 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_relations_z10_spgist ON osm_relations_z10 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_relations_z11_spgist ON osm_relations_z11 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_relations_z12_spgist ON osm_relations_z12 USING SPGIST (geom);
CREATE INDEX IF NOT EXISTS osm_relations_z13_spgist ON osm_relations_z13 USING SPGIST (geom);
|
<gh_stars>0
SELECT
objectid,
date_time
FROM cnprcSrc_srl_aud.ASRL_TESTS
WHERE ST_AUD_CODE = 'D'; |
<gh_stars>0
CREATE TABLE `tb_ferias` (
`Id_ferias` int(11) NOT NULL AUTO_INCREMENT,
`matricula` int(11) DEFAULT NULL,
`periodo` date DEFAULT NULL,
`qtd_dias` int(2) DEFAULT NULL,
PRIMARY KEY (`Id_ferias`),
KEY `fk_matricula` (`matricula`),
CONSTRAINT `fk_matricula` FOREIGN KEY (`matricula`) REFERENCES `tb_cliente` (`matricula`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
|
<reponame>liangdefeng/cuba<filename>modules/core/db/update/postgres/19/190624-insertPredefinedRolesForAdminAndAnonymous.sql
insert into SEC_USER_ROLE (ID, CREATE_TS, VERSION, USER_ID, ROLE_NAME)
values ('cbdddc70-1ee2-0fe4-b63a-2d92ef0b15a2', now(), 0, '60885987-1b61-4247-94c7-dff348347f93', 'Administrators')^
insert into SEC_USER_ROLE (ID, CREATE_TS, VERSION, USER_ID, ROLE_NAME)
values ('a848101b-7d8a-508a-0e9c-b53af9fad211', now(), 0, 'a405db59-e674-4f63-8afe-269dda788fe8', 'Anonymous')^ |
<filename>schema/test/unit/tables/application_revision_test.sql
set client_min_messages to warning;
create extension if not exists pgtap;
reset client_min_messages;
begin;
select plan(18);
-- Table exists
select has_table(
'ggircs_portal', 'application_revision',
'ggircs_portal.application_revision should exist, and be a table'
);
-- Row level security tests --
create role test_superuser superuser;
-- Test setup
set jwt.claims.sub to '11111111-1111-1111-1111-111111111111';
alter table ggircs_portal.ciip_user_organisation
disable trigger _set_user_id;
alter table ggircs_portal.ciip_user disable trigger _welcome_email;
alter table ggircs_portal.ciip_user_organisation
disable trigger _send_request_for_access_email;
alter table ggircs_portal.ciip_user_organisation
disable trigger _send_access_approved_email;
-- User 999 has access to application_revision 999, but not application_revision 1000
insert into ggircs_portal.ciip_user(id, uuid) overriding system value
values (999, '11111111-1111-1111-1111-111111111111'), (1000, '22222222-2222-2222-2222-222222222222');
insert into ggircs_portal.organisation(id) overriding system value values(999), (1000);
insert into ggircs_portal.facility(id, organisation_id) overriding system value values(999, 999), (1000, 1000);
insert into ggircs_portal.application(id, facility_id) overriding system value values(999, 999), (1000, 1000);
insert into ggircs_portal.ciip_user_organisation(id, user_id, organisation_id, status) overriding system value values(999, 999, 999, 'approved'), (1000, 1000, 1000, 'approved');
insert into ggircs_portal.application_revision(application_id, version_number) overriding system value values(999, 1), (1000, 1);
insert into ggircs_portal.ciip_user(id, uuid, email_address) overriding system value values (1001, '33333333-3333-3333-3333-333333333333', '<EMAIL>');
insert into ggircs_portal.certification_url(id, application_id, version_number, certifier_email) overriding system value values('999', 999, 1, '<EMAIL>');
-- CIIP_ADMINISTRATOR
set role ciip_administrator;
select concat('current user is: ', (select current_user));
select results_eq(
$$
select count(*) from ggircs_portal.application_revision where application_id = 999 or application_id=1000
$$,
ARRAY[2::bigint],
'ciip_administrator can view all data in application_revision table'
);
select lives_ok(
$$
insert into ggircs_portal.application_revision (application_id, version_number) overriding system value
values (1000, 2);
$$,
'ciip_administrator can insert data in application_revision table'
);
select lives_ok(
$$
update ggircs_portal.application_revision set legal_disclaimer_accepted=true where application_id=1000 and version_number=2;
$$,
'ciip_administrator can change data in application_revision table'
);
select results_eq(
$$
select count(application_id) from ggircs_portal.application_revision where version_number = 2 and application_id=1000 and legal_disclaimer_accepted=true;
$$,
ARRAY[1::bigint],
'Data was changed by ciip_administrator'
);
select throws_like(
$$
delete from ggircs_portal.application_revision where application_id=1
$$,
'permission denied%',
'Administrator cannot delete rows from table_application_revision'
);
-- CIIP_INDUSTRY_USER
set role ciip_industry_user;
select concat('current user is: ', (select current_user));
select results_eq(
$$
select application_id from ggircs_portal.application_revision
$$,
ARRAY[999::integer],
'Industry user can view data from application_revision where the connection application_revision -> application -> facility -> ciip_user_organisation -> user exists on user.uuid = session.sub'
);
select lives_ok(
$$
insert into ggircs_portal.application_revision(application_id, version_number) values (999, 2);
$$,
'Industry user can create an application_revision if the facility id is in the connection application_revision -> application -> facility -> ciip_user_organisation -> user '
);
select lives_ok(
$$
update ggircs_portal.application_revision set legal_disclaimer_accepted=true where application_id=999 and version_number=2;
$$,
'Industry user can update an application_revision if the facility id is in the connection application_revision -> application -> facility -> ciip_user_organisation -> user '
);
select throws_like(
$$
insert into ggircs_portal.application_revision(application_id, version_number) values (1000, 2);
$$,
'new row violates%',
'Industry User cannot create a row in ggircs_portal.application_revision when not connected by application_revision -> application -> facility -> ciip_user_organisation -> user -> user.uuid = session.sub'
);
select is_empty(
$$
select application_id from ggircs_portal.application_revision where application_id = 1000;
$$,
'Industry user view application_revisions that are not connected by application_revision -> application -> facility -> ciip_user_organisation -> user -> user.uuid = session.sub'
);
select throws_like(
$$
delete from ggircs_portal.application_revision where application_id=999
$$,
'permission denied%',
'Industry User cannot delete rows from table_application_revision'
);
-- Attempt to update a row that doesn't belong to the current user
update ggircs_portal.application_revision set legal_disclaimer_accepted = true where application_id=1000 and version_number=1;
set role test_superuser;
select is_empty(
$$
select * from ggircs_portal.application_revision where application_id=1000 and version_number = 1 and legal_disclaimer_accepted=true;
$$,
'Industry User cannot update rows in table_application_revision that are not connected by application_revision -> application -> facility -> ciip_user_organisation -> user -> user.uuid = session.sub'
);
set role ciip_administrator;
update ggircs_portal.ciip_user_organisation set status='pending' where id=999;
set role ciip_industry_user;
select is_empty(
$$
select * from ggircs_portal.application_revision where application_id= 999;
$$,
'Industry User application_revision where org access has not been approved'
);
-- CIIP_ANALYST
set role ciip_analyst;
select concat('current user is: ', (select current_user));
select results_eq(
$$
select count(*) from ggircs_portal.application_revision where application_id = 999 and version_number=1 or application_id=1000 and version_number=1;
$$,
ARRAY[2::bigint],
'Analyst can select all from table application_revision'
);
select throws_like(
$$
update ggircs_portal.application_revision set legal_disclaimer_accepted=true where application_id=1000 and version_number=1;
$$,
'permission denied%',
'Analyst cannot update table application_revision'
);
select throws_like(
$$
insert into ggircs_portal.application_revision(application_id, version_number) values (1000,3);
$$,
'permission denied%',
'Analyst cannot insert into table application_revision'
);
select throws_like(
$$
delete from ggircs_portal.application_revision where application_id = 999;
$$,
'permission denied%',
'Analyst cannot delete rows from table application_revision'
);
select finish();
rollback;
|
<filename>internal/post/sql/insert.sql<gh_stars>1-10
INSERT INTO Posts (userId, created, published, content)
VALUES (?, ?, ?, ?) |
<reponame>ynsingh/brihCI
CREATE TABLE `user_role_type` (
`id` INT(11) PRIMARY KEY AUTO_INCREMENT,
`userid` int(11) NOT NULL,
`roleid` int(11) NOT NULL,
`scid` int(10) DEFAULT NULL,
`deptid` int(10) DEFAULT NULL,
`usertype` varchar(255) NOT NULL,
`ext1` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
insert into user_role_type values (1,1,1,1,NULL,'Administrator','');
insert into user_role_type values (2,6,11,NULL,NULL,'PICOAdministrator','');
CREATE TABLE `user_role_type_archive` (
`urta_id` INT(11) NOT NULL,
`urta_urtid` INT(11) NOT NULL,
`urta_userid` int(11) NOT NULL,
`urta_roleida` int(11) NOT NULL,
`urta_scida` int(10) DEFAULT NULL,
`urta_deptida` int(10) DEFAULT NULL,
`urta_usertypea` varchar(255) NOT NULL,
`creatorid` varchar(255) NOT NULL,
`creatordate` date NOT NULL,
`ext1` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `user_role_type_archive`
ADD PRIMARY KEY (`urta_id`);
ALTER TABLE `user_role_type_archive`
MODIFY `urta_id` int(11) NOT NULL AUTO_INCREMENT;
|
create OR REPLACE table article(
id int auto_increment,
title varchar(1024) not null,
slug varchar(1024) not null,
body LONGTEXT not null,
created_at int,
updated_at int,
created_by int,
updated_by int,
PRIMARY KEY (id)
);
alter table article
add constraint article_user_created_by_fk
foreign key (created_by) references user (id);
alter table article
add constraint article_user_updated_by_fk
foreign key (updated_by) references user (id); |
DROP TABLE IF EXISTS `admin_user`;
CREATE TABLE IF NOT EXISTS `admin_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(15) COLLATE utf8_czech_ci NOT NULL,
`password` varchar(255) COLLATE utf8_czech_ci NOT NULL,
`email` varchar(100) COLLATE utf8_czech_ci NOT NULL DEFAULT '@',
`role` varchar(10) COLLATE utf8_czech_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
|
set system parameters 'dont_reuse_heap_file=yes';
drop if exists t;
create table t (i int not null, j int, k int, l int, s string);
INSERT INTO t values (2,3,3876,1770,'H'), (0,9,982,1919,'J'), (2,3,4282,1453,'I'), (0,7,197,1679,'B'), (0,9,134,1909,'E'), (1,1,908,1293,'A'), (2,2,3772,1586,'F'), (1,6,111,1862,'D'), (0,6,2694,1908,'F'), (2,4,1238,1457,'G');
insert into t (i,j,k,l,s) select i,j,k,l+10000,s from t;
insert into t (i,j,k,l,s) select i,j,k,l+100000,s from t;
create index idx on t(i,j,k,l);
update statistics on all classes;
WITH cte_E6H4opTTz AS
(
select /*+ recompile INDEX_SS */ i,j,k,l from t where j = 10 and k > 1000 order by i desc, j desc
)
,cte_ZMXRwH3sE AS
(
select /*+ recompile INDEX_SS */ i,j,k,l from t where j = 10 and k > 1000 order by i desc, j desc
)
,
cte_RyHstqnFm AS
(
select /*+ recompile INDEX_SS */ i,j,k,l from t where j = 10 and k > 1000 order by i desc, j desc
)
select * from cte_E6H4opTTz,cte_ZMXRwH3sE,cte_RyHstqnFm order by 1 limit 10;
-- iss, but no skip order by
select /*+ recompile INDEX_SS */ i,j,k,l from t where j = 10 and k > 1000 order by i desc, j asc, k asc;
WITH cte_rZJ9v6Ljh AS
(
select /*+ recompile INDEX_SS */ i,j,k,l from t where j = 10 and k > 1000 order by i desc, k asc
)
,cte_xdAvJG39f AS
(
select /*+ recompile INDEX_SS */ i,j,k,l from t where j = 10 and k > 1000 order by i desc, k asc
)
,
cte_EIZ7LzaTY AS
(
select /*+ recompile INDEX_SS */ i,j,k,l from t where j = 10 and k > 1000 order by i desc, k asc
)
select * from cte_rZJ9v6Ljh,cte_xdAvJG39f,cte_EIZ7LzaTY order by 1 limit 10;
-- skip order by again:
select /*+ recompile INDEX_SS */ i,j,k,l from t where j = 10 and k > 1000 order by i desc, k desc;
drop index idx on t;
create index idx on t(i asc,j desc,k desc,l asc);
update statistics on all classes;
select * from t;
drop table t;
commit;
drop if exists t;
set system parameters 'dont_reuse_heap_file=no';
|
<filename>openGaussBase/testcase/KEYWORDS/message_length/Opengauss_Function_Keyword_Message_length_Case0033.sql<gh_stars>0
-- @testpoint:opengauss关键字message_length(非保留),作为视图名
--关键字explain作为视图名,不带引号,创建成功
CREATE or replace VIEW message_length AS
SELECT * FROM pg_tablespace WHERE spcname = 'pg_default';
drop view message_length;
--关键字explain作为视图名,加双引号,创建成功
CREATE or replace VIEW "message_length" AS
SELECT * FROM pg_tablespace WHERE spcname = 'pg_default';
drop VIEW "message_length";
--关键字explain作为视图名,加单引号,合理报错
CREATE or replace VIEW 'message_length' AS
SELECT * FROM pg_tablespace WHERE spcname = 'pg_default';
--关键字explain作为视图名,加反引号,合理报错
CREATE or replace VIEW `message_length` AS
SELECT * FROM pg_tablespace WHERE spcname = 'pg_default';
|
<filename>database/db_schema/rest-api-laravel-6.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Feb 24, 2021 at 06:07 PM
-- Server version: 5.7.24
-- PHP Version: 7.2.19
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: `rest-api-laravel-6`
--
-- --------------------------------------------------------
--
-- Table structure for table `accounts`
--
CREATE TABLE `accounts` (
`id` bigint(20) UNSIGNED NOT NULL,
`employee_id` bigint(20) UNSIGNED NOT NULL,
`fixed_pay` int(10) UNSIGNED NOT NULL,
`incentive` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `departments`
--
CREATE TABLE `departments` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` 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 `departments`
--
INSERT INTO `departments` (`id`, `title`, `description`, `created_at`, `updated_at`) VALUES
(1, 'R and D', 'None', NULL, NULL),
(2, 'Web Development', 'None', NULL, NULL),
(3, 'Game Development', '', NULL, NULL),
(4, '', 'Desktop ', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `employees`
--
CREATE TABLE `employees` (
`id` bigint(20) UNSIGNED NOT NULL,
`employee_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`contact` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`cnic` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`dept_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `employees`
--
INSERT INTO `employees` (`id`, `employee_id`, `name`, `email`, `contact`, `cnic`, `address`, `dept_id`, `created_at`, `updated_at`) VALUES
(2, '771-12-3100', 'Prof. <NAME>', '<EMAIL>', '(646) 318-1758', '869-24-6104', '3811 Kuhlman Plain Suite 120\nSheridanstad, IL 17641', 1, '2021-02-03 05:57:09', '2021-02-03 05:57:09'),
(3, '083-21-9892', 'Prof. <NAME>', '<EMAIL>', '1-483-433-6161', '805-95-8355', '6525 Johns Via Apt. 066\nJakubowskishire, MI 68749', 1, '2021-02-03 05:57:09', '2021-02-03 05:57:09'),
(4, '128-30-5730', '<NAME> DVM', '<EMAIL>', '1-658-994-1617', '692-54-6226', '78390 Wisoky Extension Apt. 124\nMitchelfort, NV 01647-5130', 1, '2021-02-03 05:57:09', '2021-02-03 05:57:09'),
(5, '768-78-4310', '<NAME>', '<EMAIL>', '1-582-350-5373', '868-53-3420', '151 Stroman Course Suite 267\nSouth Lawrencefort, VA 23506', 1, '2021-02-03 05:57:09', '2021-02-03 05:57:09'),
(6, '834-63-8317', '<NAME>', '<EMAIL>', '(204) 619-7830', '548-56-4788', '57392 Ayana Burg Suite 376\nPort Bryce, NV 54604', 1, '2021-02-03 05:57:09', '2021-02-03 05:57:09'),
(7, '848-50-7605', '<NAME>', '<EMAIL>', '(591) 782-0064', '113-36-7795', '808 Jenkins Motorway\nNapoleonhaven, AK 72027-7172', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(8, '051-87-6795', 'Prof. <NAME> Sr.', '<EMAIL>', '(423) 730-0058', '500-36-5257', '357 Katarina Land Suite 610\nMoenfort, WI 17511', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(9, '762-56-6547', 'Prof. <NAME>', '<EMAIL>', '349.953.6715', '493-57-3078', '608 Bethel Points Suite 794\nVonborough, DE 73285-4511', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(10, '350-59-5614', '<NAME>', '<EMAIL>', '+1 (909) 849-2493', '723-76-0039', '2351 Runolfsson Square\nLake Kylee, VT 62332-8542', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(11, '757-92-8808', 'Prof. <NAME>', '<EMAIL>', '+1-691-849-2993', '008-68-4509', '56489 Shields Inlet Suite 847\nGibsonton, AK 92057', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(12, '163-15-6559', 'Mrs. <NAME>', '<EMAIL>', '+1-348-978-8598', '055-31-3566', '6326 Kellie Square Suite 518\nLeschshire, TX 64741', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(13, '195-61-9407', '<NAME>', '<EMAIL>', '470.457.2916', '334-93-6463', '7231 Leopold Cove Apt. 067\nNorth Chloe, KS 93727', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(14, '804-99-5345', '<NAME> DVM', '<EMAIL>', '+1.594.678.5667', '683-15-6073', '95964 Windler Crescent Apt. 648\nEast Lorenzoside, MT 61955-3277', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(15, '522-77-8057', '<NAME> DVM', '<EMAIL>', '+12465773941', '817-40-0011', '6808 Harris Islands Suite 890\nPort Raymundoberg, DC 85178-9982', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(16, '109-72-6163', '<NAME>', '<EMAIL>', '1-827-720-1744', '061-83-6672', '31753 Dudley Oval\nSouth Lexi, WY 78423-1710', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(17, '077-48-0073', 'Mr. <NAME> PhD', '<EMAIL>', '1-797-873-5759', '460-01-0234', '41337 Seamus Mountain\nMosesland, AZ 84466-4016', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(18, '670-34-0309', 'Mr. <NAME>', '<EMAIL>', '+19455618780', '851-78-1348', '5057 Esta Lane Apt. 311\nHomenickfurt, GA 97509-0123', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(19, '808-61-5583', 'Prof. <NAME>', '<EMAIL>', '256.640.9408', '361-60-5153', '823 Ron Rest Apt. 216\nEviebury, NV 40531-5538', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(20, '811-03-5781', '<NAME>', '<EMAIL>', '918-952-4219', '747-64-3744', '391 Mabel Ports Suite 890\nJoshuabury, VA 87050', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(21, '001-89-2721', '<NAME>', '<EMAIL>', '836.524.7400', '705-63-7602', '47996 Mills Estate\nWatersfort, KS 76104', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(22, '594-81-7911', 'Dr. <NAME> Sr.', '<EMAIL>', '1-957-696-0835', '835-62-9402', '3362 Jacklyn Garden Apt. 083\nNew Jamilburgh, FL 23008-1577', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(23, '789-64-1831', 'Mr. <NAME> V', '<EMAIL>', '350-471-7416', '546-73-1721', '97743 Gwen Flat\nPort Johnson, LA 40438', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(24, '418-77-9922', '<NAME> Jr.', '<EMAIL>', '+1-772-826-1021', '241-18-0945', '9144 Murray Fork\nHowellfurt, AK 32450-2136', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(25, '895-90-1468', '<NAME>', '<EMAIL>', '203.844.8300', '789-27-8175', '874 Heaney Pass Suite 616\nSouth Brennan, MA 67685-3646', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(26, '405-29-8191', '<NAME>', '<EMAIL>', '+18918227988', '719-10-0511', '8382 Chanel Fort\nLake Judah, OK 71845-7546', 1, '2021-02-03 05:57:10', '2021-02-03 05:57:10'),
(27, '719-51-1657', '<NAME>', '<EMAIL>', '286.680.1212', '755-78-1297', '61391 Schneider Glen Suite 687\nLake Ophelia, WV 43396', 1, '2021-02-03 05:57:11', '2021-02-03 05:57:11'),
(28, '715-61-3320', '<NAME>', '<EMAIL>', '+16745547514', '680-64-6062', '79916 Macejkovic Road\nEast Zora, NV 96475', 1, '2021-02-03 05:57:11', '2021-02-03 05:57:11'),
(29, '831-83-2822', 'Mr. <NAME>', '<EMAIL>', '+1-508-831-5319', '536-99-1525', '103 Corkery Meadow Suite 754\nSchowalterberg, ID 15012-5490', 1, '2021-02-03 05:57:11', '2021-02-03 05:57:11'),
(30, '212-21-0406', '<NAME>', '<EMAIL>', '+1-526-542-8185', '766-29-6588', '934 Reilly Well\nQuentinbury, IL 78696', 1, '2021-02-03 05:57:11', '2021-02-03 05:57:11'),
(31, '619-71-5949', '<NAME>', '<EMAIL>', '+1 (592) 563-3777', '235-75-2317', '333 Grant Estate\nLake Coybury, MO 48202', 1, '2021-02-03 05:57:11', '2021-02-03 05:57:11'),
(32, '371-42-2197', '<NAME>', '<EMAIL>', '+1-829-296-6080', '668-61-6892', '864 Eloisa Crest\nNorth Maudie, TN 45893-0304', 1, '2021-02-03 05:57:11', '2021-02-03 05:57:11'),
(33, '460-89-3497', '<NAME>', '<EMAIL>', '+1-236-531-1946', '772-34-5630', '6854 Witting Springs\nNew Kieran, NV 29478', 1, '2021-02-03 05:57:11', '2021-02-03 05:57:11'),
(34, '802-89-6281', '<NAME>', '<EMAIL>', '+1-786-393-6647', '732-21-9231', '413 Schaefer Port Apt. 335\nNew Alanberg, IA 59527', 1, '2021-02-03 05:57:11', '2021-02-03 05:57:11'),
(35, '595-25-4951', '<NAME>', '<EMAIL>', '735-214-3317', '749-73-2852', '11003 Hand Skyway Suite 587\nNorth Rozella, WY 38466', 1, '2021-02-03 05:57:11', '2021-02-03 05:57:11'),
(36, '668-59-9998', '<NAME> PhD', '<EMAIL>', '+1-590-700-9291', '110-27-3634', '155 Little Turnpike Apt. 433\nEast Mortimer, UT 22178-9837', 1, '2021-02-03 05:57:11', '2021-02-03 05:57:11'),
(37, '798-34-6754', '<NAME>', '<EMAIL>', '521.796.7328', '629-06-0951', '9463 Alfreda Orchard\nMarvinport, ID 50459', 1, '2021-02-03 05:57:11', '2021-02-03 05:57:11'),
(38, '122-80-1864', '<NAME>', '<EMAIL>', '912.701.0387', '595-91-1936', '80793 Haley Avenue\nGeorgianaburgh, WA 96958', 1, '2021-02-03 05:57:11', '2021-02-03 05:57:11'),
(39, '851-63-7202', '<NAME>', '<EMAIL>', '+1-239-510-3846', '779-72-5989', '214 Denis Plaza\nHansenshire, MS 03586', 1, '2021-02-03 05:57:12', '2021-02-03 05:57:12'),
(40, '341-11-6092', '<NAME>', '<EMAIL>', '+1 (307) 448-1768', '089-77-0317', '16421 McDermott Stravenue\nVicentamouth, VA 20246-5733', 1, '2021-02-03 05:57:12', '2021-02-03 05:57:12'),
(41, '561-08-0920', '<NAME>r.', '<EMAIL>', '+19323220323', '159-56-6771', '5996 Euna Throughway\nHailiebury, FL 58248', 1, '2021-02-03 05:57:12', '2021-02-03 05:57:12'),
(42, '033-11-1652', '<NAME>', '<EMAIL>', '+18898333006', '885-49-7141', '1362 Terry Isle Apt. 907\nNorth Tevinchester, MS 27883-6779', 1, '2021-02-03 05:57:12', '2021-02-03 05:57:12'),
(43, '849-84-3260', 'T<NAME>', '<EMAIL>', '+1-432-816-6236', '196-49-2112', '19741 Hilpert Springs\nRathville, TX 18843-2804', 1, '2021-02-03 05:57:12', '2021-02-03 05:57:12'),
(44, '337-40-9849', 'Mr. <NAME>', '<EMAIL>', '745.843.5840', '820-73-9499', '96589 Smitham Crossing\nLake Laurettashire, WA 97772', 1, '2021-02-03 05:57:12', '2021-02-03 05:57:12'),
(45, '350-86-7240', '<NAME>', '<EMAIL>', '510-327-8470', '688-28-9577', '4455 Jast Forge\nNorth Geovanny, TX 96694', 1, '2021-02-03 05:57:12', '2021-02-03 05:57:12'),
(46, '580-15-5949', '<NAME>', '<EMAIL>', '+1.878.442.8701', '786-71-5525', '81885 Jenkins Forges Apt. 834\nLake Ellie, SC 99430-8417', 1, '2021-02-03 05:57:12', '2021-02-03 05:57:12'),
(47, '895-99-1847', '<NAME>', '<EMAIL>', '+1.371.405.7364', '588-12-6998', '632 Goodwin Squares Apt. 846\nArnulfoton, AL 49521-6835', 1, '2021-02-03 05:57:12', '2021-02-03 05:57:12'),
(48, '878-13-8396', '<NAME>', '<EMAIL>', '869-253-0341', '343-96-5347', '9597 Dax Rapids Apt. 684\nLake Deja, IA 89990-2050', 1, '2021-02-03 05:57:12', '2021-02-03 05:57:12'),
(49, '669-86-8434', '<NAME>', '<EMAIL>', '632.482.7451', '687-56-4522', '529 Zelda Squares Suite 059\nNorth Louvenia, MN 36991-9141', 1, '2021-02-03 05:57:12', '2021-02-03 05:57:12'),
(50, '703-58-8690', '<NAME>', '<EMAIL>', '780-495-2283', '194-56-5132', '369 Maribel Expressway\nKatherinebury, MI 03214', 1, '2021-02-03 05:57:12', '2021-02-03 05:57:12'),
(51, '776-82-3934', '<NAME>', '<EMAIL>', '+1 (498) 315-1926', '247-49-3090', '88347 Bryce Station\nHudsonville, MN 98415', 1, '2021-02-03 05:57:12', '2021-02-03 05:57:12'),
(52, '122-222-1002', '<NAME>', '<EMAIL>', '0999999222', '111-222-111-22', 'Abbottabad', 2, '2021-02-03 06:33:13', '2021-02-03 06:33:13'),
(54, '122-222-1003', '<NAME>', '<EMAIL>', '00000000000', '111-222-111-24', 'Abbottabad Pk', 2, '2021-02-03 07:38:37', '2021-02-03 07:38:37'),
(55, '122-222-1013', '<NAME>', '<EMAIL>', '00000000001', '111-222-111-25', 'Abbottabad Pk', 3, '2021-02-03 12:36:53', '2021-02-03 12:36:53');
-- --------------------------------------------------------
--
-- Table structure for table `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `leaves`
--
CREATE TABLE `leaves` (
`id` bigint(20) UNSIGNED NOT NULL,
`date` date NOT NULL,
`time` time NOT NULL,
`employee_id` bigint(20) UNSIGNED NOT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2021_01_03_095732_create_department_table', 1),
(5, '2021_02_03_092540_create_employee_table', 1),
(6, '2021_02_03_095754_create_leaves_table', 1),
(7, '2021_02_03_095809_create_accounts_table', 1),
(8, '2016_06_01_000001_create_oauth_auth_codes_table', 2),
(9, '2016_06_01_000002_create_oauth_access_tokens_table', 2),
(10, '2016_06_01_000003_create_oauth_refresh_tokens_table', 2),
(11, '2016_06_01_000004_create_oauth_clients_table', 2),
(12, '2016_06_01_000005_create_oauth_personal_access_clients_table', 2);
-- --------------------------------------------------------
--
-- Table structure for table `oauth_access_tokens`
--
CREATE TABLE `oauth_access_tokens` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) DEFAULT NULL,
`client_id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`scopes` text COLLATE utf8mb4_unicode_ci,
`revoked` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`expires_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `oauth_auth_codes`
--
CREATE TABLE `oauth_auth_codes` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) NOT NULL,
`client_id` int(10) UNSIGNED NOT NULL,
`scopes` text COLLATE utf8mb4_unicode_ci,
`revoked` tinyint(1) NOT NULL,
`expires_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `oauth_clients`
--
CREATE TABLE `oauth_clients` (
`id` int(10) UNSIGNED NOT NULL,
`user_id` bigint(20) DEFAULT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`secret` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`redirect` text COLLATE utf8mb4_unicode_ci NOT NULL,
`personal_access_client` tinyint(1) NOT NULL,
`password_client` tinyint(1) NOT NULL,
`revoked` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `oauth_clients`
--
INSERT INTO `oauth_clients` (`id`, `user_id`, `name`, `secret`, `redirect`, `personal_access_client`, `password_client`, `revoked`, `created_at`, `updated_at`) VALUES
(1, NULL, 'Laravel Personal Access Client', '<KEY>', 'http://localhost', 1, 0, 0, '2021-02-03 14:59:21', '2021-02-03 14:59:21'),
(2, NULL, 'Laravel Password Grant Client', 'ywaGBDP0NLYKAkiGqOVsmpPCFyi6MNvvXyTrW0UT', 'http://localhost', 0, 1, 0, '2021-02-03 14:59:22', '2021-02-03 14:59:22');
-- --------------------------------------------------------
--
-- Table structure for table `oauth_personal_access_clients`
--
CREATE TABLE `oauth_personal_access_clients` (
`id` int(10) UNSIGNED NOT NULL,
`client_id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `oauth_personal_access_clients`
--
INSERT INTO `oauth_personal_access_clients` (`id`, `client_id`, `created_at`, `updated_at`) VALUES
(1, 1, '2021-02-03 14:59:22', '2021-02-03 14:59:22');
-- --------------------------------------------------------
--
-- Table structure for table `oauth_refresh_tokens`
--
CREATE TABLE `oauth_refresh_tokens` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`access_token_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`revoked` tinyint(1) NOT NULL,
`expires_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `accounts`
--
ALTER TABLE `accounts`
ADD PRIMARY KEY (`id`),
ADD KEY `accounts_employee_id_foreign` (`employee_id`);
--
-- Indexes for table `departments`
--
ALTER TABLE `departments`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `employees`
--
ALTER TABLE `employees`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `employees_email_unique` (`email`),
ADD UNIQUE KEY `employees_contact_unique` (`contact`),
ADD UNIQUE KEY `employees_cnic_unique` (`cnic`),
ADD KEY `employees_dept_id_foreign` (`dept_id`);
--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `leaves`
--
ALTER TABLE `leaves`
ADD PRIMARY KEY (`id`),
ADD KEY `leaves_employee_id_foreign` (`employee_id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `oauth_access_tokens`
--
ALTER TABLE `oauth_access_tokens`
ADD PRIMARY KEY (`id`),
ADD KEY `oauth_access_tokens_user_id_index` (`user_id`);
--
-- Indexes for table `oauth_auth_codes`
--
ALTER TABLE `oauth_auth_codes`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `oauth_clients`
--
ALTER TABLE `oauth_clients`
ADD PRIMARY KEY (`id`),
ADD KEY `oauth_clients_user_id_index` (`user_id`);
--
-- Indexes for table `oauth_personal_access_clients`
--
ALTER TABLE `oauth_personal_access_clients`
ADD PRIMARY KEY (`id`),
ADD KEY `oauth_personal_access_clients_client_id_index` (`client_id`);
--
-- Indexes for table `oauth_refresh_tokens`
--
ALTER TABLE `oauth_refresh_tokens`
ADD PRIMARY KEY (`id`),
ADD KEY `oauth_refresh_tokens_access_token_id_index` (`access_token_id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `accounts`
--
ALTER TABLE `accounts`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `departments`
--
ALTER TABLE `departments`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `employees`
--
ALTER TABLE `employees`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=56;
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `leaves`
--
ALTER TABLE `leaves`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `oauth_clients`
--
ALTER TABLE `oauth_clients`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `oauth_personal_access_clients`
--
ALTER TABLE `oauth_personal_access_clients`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `accounts`
--
ALTER TABLE `accounts`
ADD CONSTRAINT `accounts_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`);
--
-- Constraints for table `employees`
--
ALTER TABLE `employees`
ADD CONSTRAINT `employees_dept_id_foreign` FOREIGN KEY (`dept_id`) REFERENCES `departments` (`id`);
--
-- Constraints for table `leaves`
--
ALTER TABLE `leaves`
ADD CONSTRAINT `leaves_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>svetlimladenov/Databases-Basics---MS-SQL-Server
GO
CREATE PROC usp_AssignEmployeeToReport (@employeeId INT , @reportId INT)
AS
BEGIN
BEGIN TRANSACTION
UPDATE Reports
SET EmployeeId = @employeeId
WHERE @reportId = @reportId
DECLARE @DeparmentEmployee INT = (SELECT DepartmentId FROM Employees WHERE Id = @employeeId)
DECLARE @DepartmentReport INT = (SELECT DepartmentId FROM Reports AS r JOIN Categories AS c ON c.Id = r.CategoryId WHERE r.Id = @reportId)
IF(@DeparmentEmployee <> @DepartmentReport)
BEGIN
RAISERROR('Employee doesn''t belong to the appropriate department!',17,1)
ROLLBACK
RETURN
END
COMMIT
END
SELECT * FROM Employees WHERE Id = 2
EXEC usp_AssignEmployeeToReport 17, 2;
SELECT EmployeeId FROM Reports WHERE id = 2
|
/*
SQLyog Ultimate v11.11 (64 bit)
MySQL - 5.5.5-10.4.20-MariaDB : Database - laravel
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_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 `categories` */
CREATE TABLE `categories` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`parent_id` int(11) NOT NULL DEFAULT 0,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `categories` */
insert into `categories`(`id`,`name`,`parent_id`,`slug`,`created_at`,`updated_at`,`deleted_at`) values (1,'Laptop MSI GF Series',0,'Laptop MSI GF Series','2021-08-30 21:12:00','2021-08-30 21:12:00',NULL);
insert into `categories`(`id`,`name`,`parent_id`,`slug`,`created_at`,`updated_at`,`deleted_at`) values (2,'Laptop Asus TUF Gaming FX506KT',0,'Laptop Asus TUF Gaming FX506KT','2021-08-30 21:12:55','2021-08-30 21:12:55',NULL);
insert into `categories`(`id`,`name`,`parent_id`,`slug`,`created_at`,`updated_at`,`deleted_at`) values (3,'Laptop MSI GP Series',0,'Laptop MSI GP Series','2021-08-30 21:14:09','2021-08-30 21:14:09',NULL);
insert into `categories`(`id`,`name`,`parent_id`,`slug`,`created_at`,`updated_at`,`deleted_at`) values (4,'dev12',0,'dev12','2021-08-30 21:14:27','2021-08-30 21:34:29','2021-08-30 21:34:29');
insert into `categories`(`id`,`name`,`parent_id`,`slug`,`created_at`,`updated_at`,`deleted_at`) values (5,'Admin',0,'Admin','2021-08-30 21:29:17','2021-08-30 21:47:21',NULL);
insert into `categories`(`id`,`name`,`parent_id`,`slug`,`created_at`,`updated_at`,`deleted_at`) values (6,'dev',0,'dev','2021-08-30 21:47:48','2021-08-30 21:47:48',NULL);
/*Table structure for table `failed_jobs` */
CREATE TABLE `failed_jobs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `failed_jobs` */
/*Table structure for table `menus` */
CREATE TABLE `menus` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`parent_id` int(11) NOT NULL DEFAULT 0,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `menus` */
/*Table structure for table `migrations` */
CREATE TABLE `migrations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `migrations` */
insert into `migrations`(`id`,`migration`,`batch`) values (1,'2014_10_12_000000_create_users_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (2,'2014_10_12_100000_create_password_resets_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (3,'2019_08_19_000000_create_failed_jobs_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (4,'2021_07_18_153305_create_categories_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (5,'2021_07_23_174835_add_columm_deleted_at_table_category',1);
insert into `migrations`(`id`,`migration`,`batch`) values (6,'2021_07_23_213425_create_menus_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (7,'2021_07_24_161002_add_columm_slug_to_menus_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (8,'2021_07_24_175353_add_soft_slug_to_menus_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (9,'2021_07_25_163716_create_products_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (10,'2021_07_25_163958_create_product_images_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (11,'2021_07_25_164118_create_tags_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (12,'2021_07_25_164156_create_product_tags_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (13,'2021_07_26_203635_add_column_fueature_image_name',1);
insert into `migrations`(`id`,`migration`,`batch`) values (14,'2021_07_27_120551_add_column_image_name_to_table_product_image',1);
insert into `migrations`(`id`,`migration`,`batch`) values (15,'2021_07_28_085743_add_column_deletet_at_to_product_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (16,'2021_07_29_205144_create_sliders_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (17,'2021_07_30_182052_add_column_deletet_at_to_slider_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (18,'2021_07_30_184257_create_settings_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (19,'2021_07_30_231445_add_column_type_settings_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (20,'2021_07_30_233236_add_column_deletet_at_to_setting_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (21,'2021_08_14_165142_create_roles_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (22,'2021_08_14_165244_create_permissions_table',1);
insert into `migrations`(`id`,`migration`,`batch`) values (23,'2021_08_14_165427_create_table_user_role',1);
insert into `migrations`(`id`,`migration`,`batch`) values (24,'2021_08_14_165534_create_table_permission_role',1);
insert into `migrations`(`id`,`migration`,`batch`) values (25,'2021_08_15_102713_add_column_deteted_at_table_users',1);
insert into `migrations`(`id`,`migration`,`batch`) values (26,'2021_08_15_155014_add_column_parent_id_permission',1);
insert into `migrations`(`id`,`migration`,`batch`) values (27,'2021_08_15_170901_add_column_key_permission',1);
insert into `migrations`(`id`,`migration`,`batch`) values (28,'2021_08_15_175522_add_column_deteted_at_table_permissions',1);
insert into `migrations`(`id`,`migration`,`batch`) values (29,'2021_08_15_213851_add_column_deteted_at_table_roles',1);
/*Table structure for table `password_resets` */
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
KEY `password_resets_email_index` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `password_resets` */
/*Table structure for table `permission_role` */
CREATE TABLE `permission_role` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`role_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `permission_role` */
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (1,1,2,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (2,1,3,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (3,1,4,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (4,1,5,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (5,1,7,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (6,1,8,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (7,1,9,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (8,1,10,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (9,1,12,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (10,1,13,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (11,1,14,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (12,1,15,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (13,1,17,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (14,1,18,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (15,1,19,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (16,1,20,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (17,1,22,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (18,1,23,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (19,1,24,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (20,1,25,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (21,1,27,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (22,1,28,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (23,1,29,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (24,1,30,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (25,1,32,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (26,1,33,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (27,1,34,NULL,NULL);
insert into `permission_role`(`id`,`role_id`,`permission_id`,`created_at`,`updated_at`) values (28,1,35,NULL,NULL);
/*Table structure for table `permissions` */
CREATE TABLE `permissions` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`display_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`parent_id` int(11) NOT NULL DEFAULT 0,
`key_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `permissions` */
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (1,'Category','Category','2021-08-30 20:54:28','2021-08-30 20:54:28',0,NULL,NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (2,'List','List','2021-08-30 20:54:28','2021-08-30 20:54:28',1,'Category_List',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (3,'Add','Add','2021-08-30 20:54:28','2021-08-30 20:54:28',1,'Category_Add',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (4,'Edit','Edit','2021-08-30 20:54:28','2021-08-30 20:54:28',1,'Category_Edit',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (5,'Delete','Delete','2021-08-30 20:54:28','2021-08-30 20:54:28',1,'Category_Delete',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (6,'Slider','Slider','2021-08-30 21:02:24','2021-08-30 21:02:24',0,NULL,NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (7,'List','List','2021-08-30 21:02:24','2021-08-30 21:02:24',6,'Slider_List',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (8,'Add','Add','2021-08-30 21:02:24','2021-08-30 21:02:24',6,'Slider_Add',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (9,'Edit','Edit','2021-08-30 21:02:24','2021-08-30 21:02:24',6,'Slider_Edit',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (10,'Delete','Delete','2021-08-30 21:02:24','2021-08-30 21:02:24',6,'Slider_Delete',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (11,'Menu','Menu','2021-08-30 21:02:29','2021-08-30 21:02:29',0,NULL,NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (12,'List','List','2021-08-30 21:02:29','2021-08-30 21:02:29',11,'Menu_List',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (13,'Add','Add','2021-08-30 21:02:29','2021-08-30 21:02:29',11,'Menu_Add',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (14,'Edit','Edit','2021-08-30 21:02:29','2021-08-30 21:02:29',11,'Menu_Edit',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (15,'Delete','Delete','2021-08-30 21:02:29','2021-08-30 21:02:29',11,'Menu_Delete',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (16,'Product','Product','2021-08-30 21:02:35','2021-08-30 21:02:35',0,NULL,NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (17,'List','List','2021-08-30 21:02:35','2021-08-30 21:02:35',16,'Product_List',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (18,'Add','Add','2021-08-30 21:02:35','2021-08-30 21:02:35',16,'Product_Add',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (19,'Edit','Edit','2021-08-30 21:02:35','2021-08-30 21:02:35',16,'Product_Edit',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (20,'Delete','Delete','2021-08-30 21:02:35','2021-08-30 21:02:35',16,'Product_Delete',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (21,'Setting','Setting','2021-08-30 21:02:40','2021-08-30 21:02:40',0,NULL,NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (22,'List','List','2021-08-30 21:02:40','2021-08-30 21:02:40',21,'Setting_List',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (23,'Add','Add','2021-08-30 21:02:40','2021-08-30 21:02:40',21,'Setting_Add',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (24,'Edit','Edit','2021-08-30 21:02:40','2021-08-30 21:02:40',21,'Setting_Edit',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (25,'Delete','Delete','2021-08-30 21:02:40','2021-08-30 21:02:40',21,'Setting_Delete',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (26,'User','User','2021-08-30 21:02:45','2021-08-30 21:02:45',0,NULL,NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (27,'List','List','2021-08-30 21:02:45','2021-08-30 21:02:45',26,'User_List',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (28,'Add','Add','2021-08-30 21:02:45','2021-08-30 21:02:45',26,'User_Add',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (29,'Edit','Edit','2021-08-30 21:02:45','2021-08-30 21:02:45',26,'User_Edit',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (30,'Delete','Delete','2021-08-30 21:02:45','2021-08-30 21:02:45',26,'User_Delete',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (31,'Role','Role','2021-08-30 21:02:51','2021-08-30 21:02:51',0,NULL,NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (32,'List','List','2021-08-30 21:02:51','2021-08-30 21:02:51',31,'Role_List',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (33,'Add','Add','2021-08-30 21:02:51','2021-08-30 21:02:51',31,'Role_Add',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (34,'Edit','Edit','2021-08-30 21:02:51','2021-08-30 21:02:51',31,'Role_Edit',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (35,'Delete','Delete','2021-08-30 21:02:51','2021-08-30 21:02:51',31,'Role_Delete',NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (36,'Test','Test','2021-08-30 21:37:27','2021-08-30 21:37:27',0,NULL,NULL);
insert into `permissions`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`parent_id`,`key_code`,`deleted_at`) values (37,'Add','Add','2021-08-30 21:37:27','2021-08-30 21:37:27',36,'Test_Add',NULL);
/*Table structure for table `product_images` */
CREATE TABLE `product_images` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`image_path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`product_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`image_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `product_images` */
insert into `product_images`(`id`,`image_path`,`product_id`,`created_at`,`updated_at`,`image_name`) values (1,'/storage/product/1/4.jpg',1,'2021-08-30 21:36:39','2021-08-30 21:36:39','xiga-logo.jpg');
insert into `product_images`(`id`,`image_path`,`product_id`,`created_at`,`updated_at`,`image_name`) values (2,'/storage/product/1/20.png',2,'2021-08-30 22:41:53','2021-08-30 22:41:53','jordan-ma2-shoe-qw1Z6m (2).png');
/*Table structure for table `product_tags` */
CREATE TABLE `product_tags` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`product_id` int(11) NOT NULL,
`tag_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `product_tags` */
insert into `product_tags`(`id`,`product_id`,`tag_id`,`created_at`,`updated_at`) values (1,1,1,'2021-08-30 21:36:39','2021-08-30 21:36:39');
insert into `product_tags`(`id`,`product_id`,`tag_id`,`created_at`,`updated_at`) values (2,2,2,'2021-08-30 22:41:53','2021-08-30 22:41:53');
/*Table structure for table `products` */
CREATE TABLE `products` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`price` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`feature_image_path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`content` text COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` int(11) NOT NULL,
`category_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`feature_image_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `products` */
insert into `products`(`id`,`name`,`price`,`feature_image_path`,`content`,`user_id`,`category_id`,`created_at`,`updated_at`,`feature_image_name`,`deleted_at`) values (1,'Laptop MSI GF Series','23499000','/storage/product/1/3.jpg','<p>sdasd</p>',1,2,'2021-08-30 21:36:39','2021-08-30 21:47:37','xiga-logo.jpg','2021-08-30 21:47:37');
insert into `products`(`id`,`name`,`price`,`feature_image_path`,`content`,`user_id`,`category_id`,`created_at`,`updated_at`,`feature_image_name`,`deleted_at`) values (2,'Laptop Asus TUF Gaming FX506KT','23499000','/storage/product/1/15.jpg','<p>ádasd</p>',1,5,'2021-08-30 22:41:53','2021-08-30 22:41:53','avatar.jpg',NULL);
/*Table structure for table `role_user` */
CREATE TABLE `role_user` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`role_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `role_user` */
insert into `role_user`(`id`,`user_id`,`role_id`,`created_at`,`updated_at`) values (1,1,1,NULL,NULL);
insert into `role_user`(`id`,`user_id`,`role_id`,`created_at`,`updated_at`) values (2,2,2,NULL,NULL);
/*Table structure for table `roles` */
CREATE TABLE `roles` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`display_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `roles` */
insert into `roles`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`deleted_at`) values (1,'admin','Quản trị hệ thống',NULL,NULL,NULL);
insert into `roles`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`deleted_at`) values (2,'guest','Khách hàng',NULL,NULL,NULL);
insert into `roles`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`deleted_at`) values (3,'developer','Phát triển hệ thống',NULL,NULL,NULL);
insert into `roles`(`id`,`name`,`display_name`,`created_at`,`updated_at`,`deleted_at`) values (4,'content','Chỉnh sửa nội dung',NULL,NULL,NULL);
/*Table structure for table `settings` */
CREATE TABLE `settings` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`config_key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`config_value` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `settings` */
/*Table structure for table `sliders` */
CREATE TABLE `sliders` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`image_path` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`image_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `sliders` */
/*Table structure for table `tags` */
CREATE TABLE `tags` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `tags` */
insert into `tags`(`id`,`name`,`created_at`,`updated_at`) values (1,'đâs','2021-08-30 21:36:39','2021-08-30 21:36:39');
insert into `tags`(`id`,`name`,`created_at`,`updated_at`) values (2,'ádasd','2021-08-30 22:41:53','2021-08-30 22:41:53');
/*Table structure for table `users` */
CREATE TABLE `users` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*Data for the table `users` */
insert into `users`(`id`,`name`,`email`,`email_verified_at`,`password`,`remember_token`,`created_at`,`updated_at`,`deleted_at`) values (1,'Admin','<EMAIL>',NULL,'<PASSWORD>',NULL,'2021-08-30 20:46:59','2021-08-30 21:09:42',NULL);
insert into `users`(`id`,`name`,`email`,`email_verified_at`,`password`,`remember_token`,`created_at`,`updated_at`,`deleted_at`) values (2,'<NAME>','<EMAIL>',NULL,'$2y$10$MyRUQ/YEb.nV/uEdIt.TS.v4yjX0LKG3TexDe4iV8d07xFIAF4OMi',NULL,'2021-08-30 22:06:32','2021-08-30 22:06:32',NULL);
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
<reponame>sohammanjrekar/HackerRank
/*
Author: <NAME>
Query the list of CITY names from STATION which have vowels (i.e., a, e, i, o, and u) as both their first and last characters. Your result cannot contain duplicates.
*/
SELECT DISTINCT CITY
FROM STATION
WHERE REGEXP_LIKE(CITY,'^[aeiouAEIOU].*[aeiouAEIOU]$');
/*
Upperco
Aguanga
East China
East Irvine
Amo
Eleele
Oconee
Amazonia
Aliso Viejo
Andersonville
Arkadelphia
Eriline
Eastlake
Arispe
Ermine
Eufaula
Osborne
Elm Grove
Atlantic Mine
Oshtemo
Archie
Alpine
Ojai
Urbana
Alba
Eskridge
Ozona
Acme
*/ |
<gh_stars>0
EXEC xp_instance_regread N'HKEY_LOCAL_MACHINE', N'HARDWARE\DESCRIPTION\System\CentralProcessor\0', N'ProcessorNameString';
|
<gh_stars>0
DROP TABLE IF EXISTS digimon;
CREATE TABLE digimon(
id SERIAL PRIMARY KEY,
name VARCHAR(255),
img VARCHAR(255),
level VARCHAR(255)
);
INSERT INTO digimon(name,img,level)VALUES('Yokomon','https://digimon.shadowsmith.com/img/yokomon.jpg','In Training'); |
BEGIN;
CREATE TEMPORARY TABLE audit_reports_upsert
(
demarcation_code TEXT,
financial_year integer,
url TEXT
) ;
\copy audit_reports_upsert (demarcation_code, financial_year, url) FROM '/home/jdb/proj/code4sa/municipalmoney/django-project/audit_reports.csv' DELIMITER ',' CSV HEADER;
UPDATE audit_opinion_facts f
SET report_url = i.url
FROM audit_reports_upsert i
WHERE f.demarcation_code = i.demarcation_code
AND f.financial_year = i.financial_year
and (f.report_url <> i.url OR f.report_url is null);
COMMIT;
|
<filename>SQL/Dashboard/Users.sql<gh_stars>1-10
select * From UserSettings
order by LastLogin desc |
<gh_stars>1-10
USE omop_synpuf;
GO
IF(OBJECT_ID('cdm_synpuf.concept') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.concept;
BULK INSERT cdm_synpuf.concept
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\concept.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\concept.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.drug_strength') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.drug_strength;
BULK INSERT cdm_synpuf.drug_strength
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\drug_strength.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\drug_strength.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.concept_relationship') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.concept_relationship;
BULK INSERT cdm_synpuf.concept_relationship
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\concept_relationship.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\concept_relationship.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.concept_ancestor') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.concept_ancestor;
BULK INSERT cdm_synpuf.concept_ancestor
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\concept_ancestor.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\concept_ancestor.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.concept_synonym') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.concept_synonym;
BULK INSERT cdm_synpuf.concept_synonym
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\concept_synonym.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\concept_synonym.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.vocabulary') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.vocabulary;
BULK INSERT cdm_synpuf.vocabulary
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\vocabulary.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\vocabulary.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.relationship') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.relationship;
BULK INSERT cdm_synpuf.relationship
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\relationship.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\relationship.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.concept_class') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.concept_class;
BULK INSERT cdm_synpuf.concept_class
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\concept_class.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\concept_class.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.domain') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.domain;
BULK INSERT cdm_synpuf.domain
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\domain.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\domain.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.cdm_source') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.cdm_source;
BULK INSERT cdm_synpuf.cdm_source
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\cdm_source.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\cdm_source.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.person') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.person;
BULK INSERT cdm_synpuf.person
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\person.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\person.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.observation_period') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.observation_period;
BULK INSERT cdm_synpuf.observation_period
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\observation_period.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\observation_period.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.visit_occurrence') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.visit_occurrence;
BULK INSERT cdm_synpuf.visit_occurrence
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\visit_occurrence.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\visit_occurrence.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.procedure_occurrence') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.procedure_occurrence;
BULK INSERT cdm_synpuf.procedure_occurrence
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\procedure_occurrence.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\procedure_occurrence.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.drug_exposure') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.drug_exposure;
BULK INSERT cdm_synpuf.drug_exposure
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\drug_exposure.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\drug_exposure.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.device_exposure') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.device_exposure;
BULK INSERT cdm_synpuf.device_exposure
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\device_exposure.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\device_exposure.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.condition_occurrence') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.condition_occurrence;
BULK INSERT cdm_synpuf.condition_occurrence
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\condition_occurrence.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\condition_occurrence.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.measurement') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.measurement;
BULK INSERT cdm_synpuf.measurement
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\measurement.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\measurement.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.observation') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.observation;
BULK INSERT cdm_synpuf.observation
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\observation.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\observation.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.location') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.location;
BULK INSERT cdm_synpuf.location
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\location.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\location.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.care_site') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.care_site;
BULK INSERT cdm_synpuf.care_site
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\care_site.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\care_site.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.provider') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.provider;
BULK INSERT cdm_synpuf.provider
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\provider.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\provider.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.payer_plan_period') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.payer_plan_period;
BULK INSERT cdm_synpuf.payer_plan_period
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\payer_plan_period.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\payer_plan_period.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.cost') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.cost;
BULK INSERT cdm_synpuf.cost
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\cost.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\cost.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.drug_era') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.drug_era;
BULK INSERT cdm_synpuf.drug_era
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\drug_era.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\drug_era.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.condition_era') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.condition_era;
BULK INSERT cdm_synpuf.condition_era
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\condition_era.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\condition_era.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.concept_hierarchy') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.concept_hierarchy;
BULK INSERT cdm_synpuf.concept_hierarchy
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\concept_hierarchy.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\concept_hierarchy.bad',
TABLOCK
);
END
;
GO
IF(OBJECT_ID('cdm_synpuf.death') IS NOT NULL)
BEGIN
TRUNCATE TABLE cdm_synpuf.death;
BULK INSERT cdm_synpuf.death
FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\death.csv'
WITH (
FIRSTROW = 1,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '0x0a',
ERRORFILE = 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\errors\death.bad',
TABLOCK
);
END
;
GO |
<reponame>llitfkitfk/bk-job
SET NAMES utf8mb4;
USE job_file_gateway;
alter table file_source add unique uniq_code(`code`); |
<gh_stars>1-10
COPY imdb.name_basics
FROM 's3://colibri-digital-source-data/name.basics.tsv.gz'
IGNOREHEADER 1
ACCEPTINVCHARS
DELIMITER '\t'
GZIP
iam_role 'arn:aws:iam::997661567820:role/redshift-spectrum-AccessS3BucketsRole-ZY449P7KMG0D';
COPY imdb.title
FROM 's3://colibri-digital-source-data/title.akas.tsv'
IGNOREHEADER 1
ACCEPTINVCHARS
DELIMITER '\t'
GZIP
iam_role 'arn:aws:iam::997661567820:role/redshift-spectrum-AccessS3BucketsRole-ZY449P7KMG0D';
COPY imdb.title_basics
FROM 's3://colibri-digital-source-data/title.basics.tsv.gz'
IGNOREHEADER 1
ACCEPTINVCHARS
DELIMITER '\t'
GZIP
iam_role 'arn:aws:iam::997661567820:role/redshift-spectrum-AccessS3BucketsRole-ZY449P7KMG0D';
|
<gh_stars>10-100
-- MYSQL TestDB
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=1;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=1;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL';
-- create users table
DROP TABLE IF EXISTS TestDB.Users;
CREATE TABLE IF NOT EXISTS TestDB.Users (
uid VARCHAR(50) NOT NULL,
fname VARCHAR(50) NOT NULL,
lname VARCHAR(50) NOT NULL,
age INT(3) NOT NULL,
pass VARCHAR(50) NOT NULL,
perms VARCHAR(50) NOT NULL,
PRIMARY KEY (uid)
) ENGINE=InnoDB;
-- populate users data (in real world, consider storing encrypted passwords)
LOCK TABLES TestDB.Users WRITE;
INSERT INTO TestDB.Users VALUES
('admin', 'Admin', 'User', 40, 'admin', 'CREATE|READ|UPDATE|DELETE|PERMS'),
('super', 'Super', 'User', 30, 'super', 'CREATE|READ|PERMS'),
('john', 'John', 'Doe', 20, 'john', 'READ|UPDATE'),
('jane', 'Jane', 'Doe', 10, 'jane', 'READ|UPDATE');
UNLOCK TABLES;
|
SELECT MIN(k.keyword) AS movie_keyword,
MIN(n.name) AS actor_name,
MIN(t.title) AS marvel_movie
FROM title AS t JOIN (movie_keyword AS mk JOIN keyword AS k ON k.id = mk.keyword_id) ON t.id = mk.movie_id
JOIN (cast_info AS ci JOIN name AS n ON n.id = ci.person_id) ON t.id = ci.movie_id
WHERE k.keyword = 'marvel-cinematic-universe'
AND n.name LIKE '%Downey%Robert%'
AND t.production_year > 2010;
|
-- file:matview.sql ln:144 expect:true
DROP TABLE mvtest_foo CASCADE
|
-- 2019-11-12T13:08:57.694Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='N', SelectionColumnSeqNo=0,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=545315
;
-- 2019-11-12T13:08:57.714Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=20,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=551469
;
-- 2019-11-12T13:08:57.727Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=30,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=569216
;
-- 2019-11-12T13:08:57.741Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=40,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=551072
;
-- 2019-11-12T13:08:57.747Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=50,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=551286
;
-- 2019-11-12T13:08:57.764Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=60,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=546203
;
-- 2019-11-12T13:08:57.770Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=70,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=546600
;
-- 2019-11-12T13:08:57.782Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=80,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=551953
;
-- 2019-11-12T13:08:57.800Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=90,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=544913
;
-- 2019-11-12T13:08:57.813Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=100,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=551761
;
-- 2019-11-12T13:08:57.824Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=110,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=551293
;
-- 2019-11-12T13:08:57.839Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=120,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=552564
;
-- 2019-11-12T13:08:57.856Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=130,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=546227
;
-- 2019-11-12T13:08:57.865Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=140,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=551796
;
-- 2019-11-12T13:08:57.878Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=150,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=545771
;
-- 2019-11-12T13:08:57.890Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=160,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=549847
;
-- 2019-11-12T13:08:57.896Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=170,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=550515
;
-- 2019-11-12T13:08:57.908Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=180,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=551762
;
-- 2019-11-12T13:08:57.922Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=190,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=551290
;
-- 2019-11-12T13:08:57.930Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=200,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=545852
;
-- 2019-11-12T13:08:57.955Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=210,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=552289
;
-- 2019-11-12T13:08:57.966Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=220,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=544923
;
-- 2019-11-12T13:08:57.982Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=230,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=545314
;
-- 2019-11-12T13:08:57.991Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=240,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=545316
;
|
<gh_stars>0
CREATE TABLE PERSON_MASS_CHANGE_DOCUMENT (
DOCUMENT_NUMBER VARCHAR2(40 BYTE) NOT NULL,
UPDATE_USER VARCHAR2(60) NOT NULL,
UPDATE_TIMESTAMP DATE NOT NULL,
OBJ_ID VARCHAR2(36) NOT NULL,
VER_NBR NUMBER(8,0) DEFAULT 1 NOT NULL
)
/
ALTER TABLE PERSON_MASS_CHANGE_DOCUMENT ADD CONSTRAINT PK_PMC_DOCUMENT
PRIMARY KEY (DOCUMENT_NUMBER)
/
|
SELECT ogc_fid, reason(ST_IsValidDetail(wkb_geometry)) FROM fmp.main_rivers_10k WHERE ST_IsValid(wkb_geometry) = false;
|
<gh_stars>0
--------------------------------------------------------
-- File created - Friday-April-03-2015
--------------------------------------------------------
REM INSERTING into PERSONS
SET DEFINE OFF;
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (9,'Jessamine','Yuli','P.O. Box 521, 1431 Leo St.','<EMAIL>','337-5067 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (10,'Stacy','Yetta','913-7633 Orci, Rd.','<EMAIL>','143-0310 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (11,'Gray','Pearl','682-2288 A Street','<EMAIL>','139-0351 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (12,'Jada','Ryder','P.O. Box 923, 8952 Elit, Rd.','<EMAIL>','931-0895 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (13,'Dakota','Brennan','Ap #813-3092 Iaculis St.','<EMAIL>','773-4659 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (14,'Robin','Ingrid','P.O. Box 217, 3061 Nullam Ave','<EMAIL>','231-5073 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (15,'Ethan','Cadman','P.O. Box 615, 137 Amet Avenue','<EMAIL>','489-6895 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (16,'Wang','Lawrence','650-456 Et Rd.','<EMAIL>','714-2235 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (17,'Laurel','Basil','P.O. Box 625, 4399 Facilisis Ave','<EMAIL>','588-2351 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (18,'Riley','Wyatt','9798 Risus. Avenue','<EMAIL>','628-6856 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (19,'Benedict','Grace','822-6170 Sagittis St.','<EMAIL>','913-3234 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (20,'Imani','Micah','5813 Augue, Street','<EMAIL>','303-2613 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (1,'Leonardo','Turtle','123 Sewer Street','<EMAIL>','555-1234 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (2,'Donatello','Turtle','123 Sewer Street','<EMAIL>','555-1234 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (3,'Raphael','Turtle','123 Sewer Street','<EMAIL>','555-1234 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (4,'Michelangelo','Turtle','123 Sewer Street','<EMAIL>','555-1234 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (5,'Peter','Venkman','123 Manhattan Avenue','<EMAIL>','555-5678 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (6,'Egon','Spengler','123 Manhattan Avenue','<EMAIL>','555-5678 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (7,'Raymond','Stantz','123 Manhattan Avenue','<EMAIL>','555-5678 ');
Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (8,'Winston','Zeddmore','123 Manhattan Avenue','<EMAIL>','555-5678 ');
|
SET client_min_messages = warning;
\set ECHO none
\set ECHO all
\set max_parallel_workers_per_gather 8
\set max_parallel_maintenance_workers 8
RESET client_min_messages;
CREATE TABLE IF NOT EXISTS sm_pkt_32000(pkt text, id SERIAL);
CREATE OR REPLACE FUNCTION copy_if_not_exists_pkt_32000 ()
RETURNS void AS
$_$
BEGIN
IF NOT EXISTS (select * from sm_pkt_32000) THEN
COPY sm_pkt_32000 (pkt) FROM '/home/pengfei/capi/db/snap/actions/hdl_stringmatch/tests/packets/packet.1024.32000.txt' DELIMITER ' ' ;
END IF;
END;
$_$ LANGUAGE plpgsql;
SELECT copy_if_not_exists_pkt_32000();
explain analyze SELECT psql_regex_capi('sm_pkt_32000', 'abc.*xyz', 0);
explain analyze SELECT psql_regex_capi('sm_pkt_32000', 'abc.*xyz', 0);
explain analyze SELECT psql_regex_capi('sm_pkt_32000', 'abc.*xyz', 0);
explain analyze SELECT psql_regex_capi('sm_pkt_32000', 'abc.*xyz', 0);
explain analyze SELECT pkt, (regexp_matches(pkt, 'abc.*xyz'))[0] from sm_pkt_32000;
explain analyze SELECT * FROM sm_pkt_32000 WHERE pkt ~ 'abc.*xyz';
|
<reponame>springbootbuch/embedded_h2
CREATE TABLE spring_data_modules (
id INT NOT NULL AUTO_INCREMENT,
name VARCHAR(50) NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY (name)
); |
<filename>framework/resources/Functional/semijoin/multiColumnJoin10.sql
set `planner.enable_semijoin` = true;
select orders.o_totalprice from orders where (orders.o_custkey,orders.o_totalprice) in (select customer.c_custkey,customer.c_acctbal from customer) order by orders.o_totalprice limit 10;
reset `planner.enable_semijoin`;
|
<gh_stars>1-10
DROP DATABASE BookingService;
CREATE DATABASE BookingService;
USE BookingService;
drop table if exists CustOrder;
create table CustOrder(
OrderID int,
Date date,
CarID varchar(50),
CustID varchar(50),
primary key (OrderID)
);
drop table if exists Accounts;
create table Accounts (
acc_no int,
first_name varchar(50),
surname varchar(50),
primary key(acc_no)
);
drop table if exists Cars;
create table Cars (
OrderID int,
car_make varchar(50),
car_model varchar(50),
primary key (OrderID)
);
drop table if exists Booking;
create table Booking (
booking_id int NOT NULL AUTO_INCREMENT,
OrderID int,
acc_no int,
rental_date Date,
return_date Date,
primary key(booking_id),
foreign key(acc_no) references Accounts(acc_no),
foreign key(OrderID) references CustOrder(OrderID)
);
insert into CustOrder (Date, CustID, CarID) values (curdate(),1,1),(curdate(),2,2),(curdate(),3,3);
insert into Accounts values(3000, 'John', 'Murphy');
insert into Accounts values(4000, 'Mark', 'Stuart');
insert into Accounts values(5000, 'Mark', 'Stuart');
insert into Cars values(2017,'Honda', 'Civic');
insert into Cars values(2018,'Lexus', 'IS200');
insert into Cars values(2019,'Toyota', 'Corolla');
insert into Booking values(300, 400, 3000, '2018-12-01','2019-01-10');
insert into Booking values(400, 500, 4000, '2018-11-01','2019-01-15');
insert into Booking values(600, 700, 5000, '2018-10-01','2019-01-20'); |
--======================================================
--
-- Author: <NAME>
-- Usage: This script runs the single_II_test procedure with different indexes.
-- Database system supported/tested: SQL Server 2016
-- URL of the project: https://github.com/RadimBaca/QueryOptimizerBenchmark
-- License: This code is published under a MIT license
-- Change history:
--
--======================================================
/***********************************************************/
/********************** Queries (HEAP) *********************/
/***********************************************************/
SET STATISTICS TIME off
exec single_II_test
go
SET STATISTICS TIME on
PRINT '**** HEAP ****'
exec single_II_test
go
/***********************************************************/
/***************** Queries (NON-CLUSTERED) *****************/
/***********************************************************/
SET STATISTICS TIME off
--create nonclustered index
CREATE NONCLUSTERED INDEX ix_TestTable_groupby_localsearch
ON TestTable (groupby,local_search)
GO
exec single_II_test
go
print '**** NON-CLUSTERED I ****'
SET STATISTICS TIME on
exec single_II_test
go
SET STATISTICS TIME off
-- drop the index
drop index TestTable.ix_TestTable_groupby_localsearch
go
/***********************************************************/
/***************** Queries (NON-CLUSTERED) *****************/
/***********************************************************/
SET STATISTICS TIME off
--nonclustered index
CREATE NONCLUSTERED INDEX ix_TestTable_localsearch
ON TestTable (local_search,groupby)
GO
exec single_II_test
go
print '**** NON-CLUSTERED II ****'
SET STATISTICS TIME on
exec single_II_test
go
SET STATISTICS TIME off
-- drop the index
drop index TestTable.ix_TestTable_localsearch
go
/***********************************************************/
/******************** Queries (CLUSTERED) ******************/
/***********************************************************/
CREATE CLUSTERED INDEX ix_TestTable_groupby_localsearch
ON TestTable (groupby, local_search)
GO
exec single_II_test
go
print '**** CLUSTERED I ****'
SET STATISTICS TIME on
exec single_II_test
go
SET STATISTICS TIME off
-- drop the index
drop index TestTable.ix_TestTable_groupby_localsearch
go
/***********************************************************/
/******************** Queries (CLUSTERED) ******************/
/***********************************************************/
CREATE CLUSTERED INDEX ix_TestTable_localsearch_groupby
ON TestTable (local_search, groupby)
GO
exec single_II_test
go
print '**** CLUSTERED II ****'
SET STATISTICS TIME on
exec single_II_test
go
SET STATISTICS TIME off
-- drop the index
drop index TestTable.ix_TestTable_localsearch_groupby
go
|
CREATE TABLE organization_team(
organization_id INT NOT NULL REFERENCES organizations(id),
team_id INT NOT NULL REFERENCES teams(id) ON DELETE CASCADE,
PRIMARY KEY(organization_id, team_id)
);
CREATE INDEX organization_team_organization_id_idx ON organization_team(organization_id);
CREATE INDEX organization_team_team_id_idx ON organization_team(team_id);
|
<gh_stars>1-10
CREATE TABLE IF NOT EXISTS `hiredmerchitems` (
`inventoryitemid` bigint(20) UNSIGNED NOT NULL,
`characterid` int(11) DEFAULT NULL,
`accountid` int(11) DEFAULT NULL,
`packageid` int(11) DEFAULT NULL,
`itemid` int(11) NOT NULL DEFAULT 0,
`inventorytype` int(11) NOT NULL DEFAULT 0,
`position` int(11) NOT NULL DEFAULT 0,
`quantity` int(11) NOT NULL DEFAULT 0,
`owner` tinytext DEFAULT NULL,
`GM_Log` tinytext DEFAULT NULL,
`uniqueid` int(11) NOT NULL DEFAULT -1,
`flag` int(11) NOT NULL DEFAULT 0,
`expiredate` bigint(20) NOT NULL DEFAULT -1,
`type` tinyint(1) NOT NULL DEFAULT 0,
`sender` varchar(13) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
ALTER TABLE `hiredmerchitems`
ADD PRIMARY KEY (`inventoryitemid`),
ADD KEY `inventoryitems_ibfk_1` (`characterid`),
ADD KEY `characterid` (`characterid`),
ADD KEY `inventorytype` (`inventorytype`),
ADD KEY `accountid` (`accountid`),
ADD KEY `packageid` (`packageid`),
ADD KEY `characterid_2` (`characterid`,`inventorytype`);
|
<filename>metacat-metadata-mysql/src/test/resources/sql/prepare-test.sql
CREATE SCHEMA if not exists metacat;
-- Create syntax for TABLE 'data_metadata'
CREATE TABLE metacat.data_metadata (
id bigint(20) NOT NULL AUTO_INCREMENT,
version bigint(20) NOT NULL,
created_by varchar(255) NOT NULL,
data longtext NOT NULL,
date_created datetime NOT NULL,
last_updated datetime NOT NULL,
last_updated_by varchar(255) NOT NULL,
uri varchar(4000) NOT NULL DEFAULT '',
PRIMARY KEY (id),
KEY uri (uri(767))
) DEFAULT CHARSET=latin1;
-- Create schema for TABLE 'data_metadata_delete'
CREATE TABLE metacat.data_metadata_delete (
id bigint(20) NOT NULL,
created_by varchar(255) NOT NULL,
date_created datetime NOT NULL,
PRIMARY KEY (id),
KEY date_created (date_created)
) DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'definition_metadata'
CREATE TABLE metacat.definition_metadata (
id bigint(20) NOT NULL AUTO_INCREMENT,
version bigint(20) NOT NULL,
created_by varchar(255) NOT NULL,
data longtext NOT NULL,
date_created datetime NOT NULL,
last_updated datetime NOT NULL,
last_updated_by varchar(255) NOT NULL,
name varchar(255) NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY name (name)
) DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'definition_metadata'
CREATE TABLE metacat.partition_definition_metadata (
id bigint(20) NOT NULL AUTO_INCREMENT,
version bigint(20) NOT NULL,
created_by varchar(255) NOT NULL,
data longtext NOT NULL,
date_created datetime NOT NULL,
last_updated datetime NOT NULL,
last_updated_by varchar(255) NOT NULL,
name varchar(255) NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY name (name)
) DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'lookup'
CREATE TABLE metacat.lookup (
id bigint(20) NOT NULL AUTO_INCREMENT,
version bigint(20) NOT NULL,
created_by varchar(255) NOT NULL,
date_created datetime NOT NULL,
last_updated datetime NOT NULL,
last_updated_by varchar(255) NOT NULL,
name varchar(255) NOT NULL,
type varchar(255) NOT NULL,
value varchar(4000) NOT NULL DEFAULT '',
PRIMARY KEY (id),
UNIQUE KEY name (name)
) DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'lookup_values'
CREATE TABLE metacat.lookup_values (
lookup_id bigint(20) DEFAULT NULL,
values_string varchar(255) DEFAULT NULL,
KEY lookup_values_fk_looup_id (lookup_id),
CONSTRAINT lookup_values_fk_looup_id FOREIGN KEY (lookup_id) REFERENCES lookup (id)
) DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'tag_item'
CREATE TABLE metacat.tag_item (
id bigint(20) NOT NULL AUTO_INCREMENT,
version bigint(20) NOT NULL,
created_by varchar(255) NOT NULL,
date_created datetime NOT NULL,
last_updated datetime NOT NULL,
last_updated_by varchar(255) NOT NULL,
name varchar(255) NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY name (name)
) DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'tag_item_tags'
CREATE TABLE metacat.tag_item_tags (
tag_item_id bigint(20) DEFAULT NULL,
tags_string varchar(255) NOT NULL DEFAULT '',
KEY tag_item_tags_fk (tag_item_id),
KEY tags_string (tags_string),
CONSTRAINT tag_item_tags_fk FOREIGN KEY (tag_item_id) REFERENCES tag_item (id)
) DEFAULT CHARSET=latin1;
|
<reponame>gusdyd98/py_datapreprocessingwar
SELECT
*,
-- sex와 연령을 10살 단위로 구분한 카테고리값을 문자열로 하여, 사이에 '_'를 더해서 결합
sex || '_' || CAST(FLOOR(age / 10) * 10 AS TEXT) AS sex_and_age
FROM work.customer_tb
|
--
-- Drop tables structure if already exists
--
DROP TABLE IF EXISTS `evaluationmarker`;
DROP TABLE IF EXISTS `evaluationimage`;
DROP TABLE IF EXISTS `evaluation`;
--
-- Table structure for table `evaluation`
--
CREATE TABLE `evaluation` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`adddate` datetime DEFAULT NULL, -- data dodania
`startdate` datetime DEFAULT NULL, -- data rozpoczecia przetwarzania
`enddate` datetime DEFAULT NULL, -- data zakonczenia przetwarzania
`status` int(11) NOT NULL, -- status przetwarzania
`result` int(11) DEFAULT NULL, -- wynik przetwarzania
`manualresult` int(11) DEFAULT NULL, -- reczny wynik (nie interesuje Cie)
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Table structure for table `evaluationimage`
--
CREATE TABLE `evaluationimage` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`evaluation_id` int(11) DEFAULT NULL,
`processedpath` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, -- sciezka do przetworzonego obrazu
`path` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, -- sciezka obrazu do przetworzenia
PRIMARY KEY (`id`),
KEY `IDX_D55E3BFC456C5646` (`evaluation_id`),
CONSTRAINT `FK_D55E3BFC456C5646` FOREIGN KEY (`evaluation_id`) REFERENCES `evaluation` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Table structure for table `evaluationmarker`
--
CREATE TABLE `evaluationmarker` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`evaluation_id` int(11) DEFAULT NULL,
`tobefound` int(11) DEFAULT NULL, -- ile markerow powinno zostac znalezionych
`found` int(11) DEFAULT NULL, -- ile markerow znaleziono
`color` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, -- kolor (hex) na jaki zaznaczac wystapienia markera
`path` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, -- sciezka do pliku z markerem
PRIMARY KEY (`id`),
KEY `IDX_CD00B193456C5646` (`evaluation_id`),
CONSTRAINT `FK_CD00B193456C5646` FOREIGN KEY (`evaluation_id`) REFERENCES `evaluation` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
<reponame>HSSC/ProfilesRNS
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE procedure [Profile.Data].[Publication.PubMed.GetPersonInfoForDisambiguation]
AS
BEGIN
SET nocount ON;
DECLARE @search XML,
@batchID UNIQUEIDENTIFIER,
@batchcount INT,
@threshold FLOAT
--SET Custom Threshold based on internal Institutional Logic, default is .98
SELECT @threshold = .98
SELECT @batchID=NEWID()
SELECT personid,
(SELECT ISNULL(RTRIM(firstname),'') "Name/First",
ISNULL(RTRIM(middlename),'') "Name/Middle",
ISNULL(RTRIM(p.lastname),'') "Name/Last",
ISNULL(RTRIM(suffix),'') "Name/Suffix",
CASE
WHEN a.n is not null or b.n is not null
/* Below is example of a custom piece of logic to alter the disambiguation by telling the disambiguation service
to Require First Name usage in the algorithm for faculty who are lower in rank */
or facultyranksort > 4
THEN 'true'
ELSE 'false'
END "RequireFirstName",
d.cnt "LocalDuplicateNames",
@threshold "MatchThreshold",
(SELECT DISTINCT ISNULL(LTRIM(ISNULL(emailaddress,p.emailaddr)),'') Email
FROM [Profile.Data].[Person.Affiliation] pa
WHERE pa.personid = p.personid
FOR XML PATH(''),TYPE) AS "EmailList",
(SELECT Affiliation
FROM [Profile.Data].[Publication.PubMed.DisambiguationAffiliation]
FOR XML PATH(''),TYPE) AS "AffiliationList",
(SELECT PMID
FROM [Profile.Data].[Publication.Person.Add]
WHERE personid =p2.personid
FOR XML PATH(''),ROOT('PMIDAddList'),TYPE),
(SELECT PMID
FROM [Profile.Data].[Publication.Person.Exclude]
WHERE personid =p2.personid
FOR XML PATH(''),ROOT('PMIDExcludeList'),TYPE)
FROM [Profile.Data].Person p
LEFT JOIN (
--case 1
SELECT LEFT(firstname,1) f,
LEFT(middlename,1) m,
lastname,
COUNT(* ) n
FROM [Profile.Data].Person
GROUP BY LEFT(firstname,1),
LEFT(middlename,1),
lastname
HAVING COUNT(* ) > 1
)A ON a.lastname = p.lastname
and a.f=left(firstname,1)
and a.m = left(middlename,1)
LEFT JOIN (
--case 2
SELECT LEFT(firstname,1) f,
lastname,
COUNT(* ) n
FROM [Profile.Data].Person
GROUP BY LEFT(firstname,1),
lastname
HAVING COUNT(* ) > 1
AND SUM(CASE
WHEN middlename = '' THEN 1
ELSE 0
END) > 0
)B on b.f = left(firstname,1)
and b.lastname = p.lastname
LEFT JOIN ( SELECT [Utility.NLP].[fnNamePart1](firstname)F,
lastname,
COUNT(*)cnt
from [Profile.Data].Person
GROUP BY [Utility.NLP].[fnNamePart1](firstname),
lastname
)d on d.f = [Utility.NLP].[fnNamePart1](p2.firstname)
and d.lastname = p2.lastname
WHERE p.personid = p2.personid
FOR XML PATH(''),ROOT('FindPMIDs')) XML--as xml)
INTO #batch
FROM [Profile.Data].vwperson p2
SELECT @batchcount=@@ROWCOUNT
SELECT @BatchID,@batchcount,*
FROM #batch
END
GO
|
<filename>blog.sql
--
-- PostgreSQL database dump
--
-- Started on 2009-02-25 21:20:13 GMT
SET client_encoding = 'UTF8';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
--
-- TOC entry 1749 (class 1262 OID 16644)
-- Name: blog; Type: DATABASE; Schema: -; Owner: -
--
CREATE DATABASE blog WITH TEMPLATE = template0 ENCODING = 'UTF8';
\connect blog
SET client_encoding = 'UTF8';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
--
-- TOC entry 297 (class 2612 OID 16386)
-- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: -
--
CREATE PROCEDURAL LANGUAGE plpgsql;
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- TOC entry 1469 (class 1259 OID 16645)
-- Dependencies: 6
-- Name: comments; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE comments (
comment_id integer NOT NULL,
post_id integer NOT NULL,
author character(255) NOT NULL,
body text NOT NULL
);
--
-- TOC entry 1470 (class 1259 OID 16651)
-- Dependencies: 6
-- Name: posts; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE posts (
title character(255) NOT NULL,
body text NOT NULL,
_id integer NOT NULL,
created_at timestamp with time zone
);
--
-- TOC entry 1471 (class 1259 OID 16657)
-- Dependencies: 1469 6
-- Name: comments_comment_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE comments_comment_id_seq
START WITH 1
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
--
-- TOC entry 1752 (class 0 OID 0)
-- Dependencies: 1471
-- Name: comments_comment_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE comments_comment_id_seq OWNED BY comments.comment_id;
--
-- TOC entry 1472 (class 1259 OID 16659)
-- Dependencies: 1470 6
-- Name: posts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE posts_id_seq
START WITH 1
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
--
-- TOC entry 1753 (class 0 OID 0)
-- Dependencies: 1472
-- Name: posts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE posts_id_seq OWNED BY posts._id;
--
-- TOC entry 1739 (class 2604 OID 16661)
-- Dependencies: 1471 1469
-- Name: comment_id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE comments ALTER COLUMN comment_id SET DEFAULT nextval('comments_comment_id_seq'::regclass);
--
-- TOC entry 1740 (class 2604 OID 16662)
-- Dependencies: 1472 1470
-- Name: _id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE posts ALTER COLUMN _id SET DEFAULT nextval('posts_id_seq'::regclass);
--
-- TOC entry 1742 (class 2606 OID 16664)
-- Dependencies: 1469 1469
-- Name: comment_id; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY comments
ADD CONSTRAINT comment_id PRIMARY KEY (comment_id);
--
-- TOC entry 1745 (class 2606 OID 16666)
-- Dependencies: 1470 1470
-- Name: id; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY posts
ADD CONSTRAINT id PRIMARY KEY (_id);
--
-- TOC entry 1743 (class 1259 OID 16667)
-- Dependencies: 1469
-- Name: fki_post_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX fki_post_id ON comments USING btree (post_id);
--
-- TOC entry 1746 (class 2606 OID 16668)
-- Dependencies: 1469 1744 1470
-- Name: post_id; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY comments
ADD CONSTRAINT post_id FOREIGN KEY (post_id) REFERENCES posts(_id) ON UPDATE CASCADE ON DELETE CASCADE;
--
-- TOC entry 1751 (class 0 OID 0)
-- Dependencies: 6
-- Name: public; Type: ACL; Schema: -; Owner: -
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM postgres;
GRANT ALL ON SCHEMA public TO postgres;
GRANT ALL ON SCHEMA public TO PUBLIC;
-- Completed on 2009-02-25 21:20:13 GMT
--
-- PostgreSQL database dump complete
--
|
drop table if exists TC;
create table TC (
A VARCHAR(6) NOT NULL ,
B INT NOT NULL );
insert into TC values ('200605',1);
insert into TC values ('200302',0);
SELECT DISTINCT A FROM TC START WITH B = 1 CONNECT BY B = 0 order by 1;
drop table if exists TC; |
<filename>openGaussBase/testcase/KEYWORDS/within/Opengauss_Function_Keyword_Within_Case0024.sql
-- @testpoint: opengauss关键字within(非保留),作为存储过程名,部分测试点合理报错
--关键字不带引号-成功
drop procedure if exists within;
create procedure within(
section number(6),
salary_sum out number(8,2),
staffs_count out integer)
is
begin
select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section;
end;
/
drop procedure within(section number(6),salary_sum out number(8,2), staffs_count out integer);
--关键字带双引号-成功
drop procedure if exists "within";
create procedure "within"(
section number(6),
salary_sum out number(8,2),
staffs_count out integer)
is
begin
select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section;
end;
/
drop procedure "within"(section number(6),salary_sum out number(8,2), staffs_count out integer);
--关键字带单引号-合理报错
drop procedure if exists 'within';
create procedure 'within'(
section number(6),
salary_sum out number(8,2),
staffs_count out integer)
is
begin
select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section;
end;
/
--关键字带反引号-合理报错
drop procedure if exists `within`;
create procedure `within`(
section number(6),
salary_sum out number(8,2),
staffs_count out integer)
is
begin
select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section;
end;
/
|
<gh_stars>0
--GenerisiStanjeZalNaDan (nOrgDeo Number, dDatum
DECLARE
nRbr NUMBER;
BEGIN
nRbr := 0;
FOR MAG IN(SELECT DISTINCT ORG_DEO, datum_dok FROM DOKUMENT
WHERE VRSTA_dOK = 21
AND GODINA = 2012
AND STATUS=1
ORDER BY ORG_DEO
)
LOOP
nRbr := nRbr + 1;
DBMS_OUTPUT.PUT_LINE(rpad(nRbr,3)||' '||rpad(MAG.ORG_DEO,5)||' '||to_char(mag.datum_dok,'dd.mm.yy'));
GenerisiStanjeZalNaDan (MAG.ORG_DEO, mag.datum_dok);
commit;
END LOOP;
END;
|
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 05-03-2018 a las 17:05:54
-- Versión del servidor: 10.1.30-MariaDB
-- Versión de PHP: 7.2.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de datos: `sicem`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2018_01_11_123609_creartablacementerio', 1),
(4, '2018_01_11_123706_creartablapabellon', 1),
(5, '2018_01_11_123735_creartablanicho', 1),
(6, '2018_01_11_123803_creartabladifunto', 1),
(7, '2018_01_11_123821_creartablasolicitante', 1),
(8, '2018_01_11_123944_creartablaservicioextra', 1),
(9, '2018_01_11_124003_creartablaboleta', 1),
(10, '2018_01_11_124004_creartablaboletadetalle', 1),
(11, '2018_01_11_124007_creartablacontrato', 1),
(12, '2018_01_11_124008_creartablatraslado', 1),
(13, '2018_01_11_124026_creartablaconvenio', 1),
(14, '2018_01_11_124101_creartablaplanpago', 1),
(15, '2018_01_11_124118_creartabladbppago', 1),
(16, '2018_01_11_124119_creartablacsextra', 1);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `t_boleta`
--
CREATE TABLE `t_boleta` (
`bol_id` int(10) UNSIGNED NOT NULL,
`bol_nro` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`bol_dni` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`bol_nom` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`bol_fecha` date NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `t_boletadetalle`
--
CREATE TABLE `t_boletadetalle` (
`bolde_id` int(10) UNSIGNED NOT NULL,
`bolde_concepto` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`bolde_monto` decimal(8,2) NOT NULL,
`bol_id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `t_cementerio`
--
CREATE TABLE `t_cementerio` (
`cement_id` int(10) UNSIGNED NOT NULL,
`cement_nom` 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;
--
-- Volcado de datos para la tabla `t_cementerio`
--
INSERT INTO `t_cementerio` (`cement_id`, `cement_nom`, `created_at`, `updated_at`) VALUES
(1, 'Sachaca', '2018-02-09 04:14:01', '2018-02-22 02:56:15'),
(2, 'Cementerio 2', '2018-02-28 01:00:27', '2018-02-28 01:00:27'),
(3, 'Arequipa', '2018-03-03 00:46:24', '2018-03-03 00:46:24');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `t_contrato`
--
CREATE TABLE `t_contrato` (
`cont_id` int(10) UNSIGNED NOT NULL,
`cont_fecha` date NOT NULL,
`cont_tipopago` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`cont_concepto` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`cont_tipouso` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`cont_tiempo` int(11) NOT NULL,
`cont_monto` decimal(8,2) NOT NULL,
`cont_diffechsep` date NOT NULL,
`sol_id` int(10) UNSIGNED NOT NULL,
`dif_id` int(10) UNSIGNED NOT NULL,
`nicho_id` int(10) UNSIGNED NOT NULL,
`usu_id_reg` int(10) UNSIGNED NOT NULL,
`usu_id_auto` int(10) UNSIGNED NOT NULL,
`bolde_id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `t_convenio`
--
CREATE TABLE `t_convenio` (
`conv_id` int(10) UNSIGNED NOT NULL,
`conv_fecha` date NOT NULL,
`conv_cuotaini` decimal(8,2) NOT NULL,
`conv_nrocuota` int(11) NOT NULL,
`cont_id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `t_csextra`
--
CREATE TABLE `t_csextra` (
`csextra_id` int(10) UNSIGNED NOT NULL,
`cont_id` int(10) UNSIGNED NOT NULL,
`sextra_id` int(10) UNSIGNED NOT NULL,
`bolde_id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `t_dbppago`
--
CREATE TABLE `t_dbppago` (
`dbpp_id` int(10) UNSIGNED NOT NULL,
`ppago_id` int(10) UNSIGNED NOT NULL,
`bolde_id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `t_difunto`
--
CREATE TABLE `t_difunto` (
`dif_id` int(10) UNSIGNED NOT NULL,
`dif_nom` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`dif_ape` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`dif_ape2` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`dif_dni` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`dif_fechadef` date NOT NULL,
`dif_obser` 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;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `t_nicho`
--
CREATE TABLE `t_nicho` (
`nicho_id` int(10) UNSIGNED NOT NULL,
`nicho_nro` int(11) NOT NULL,
`nicho_fila` int(11) NOT NULL,
`nicho_col` int(11) NOT NULL,
`nicho_precio` decimal(8,2) NOT NULL,
`nicho_est` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`nicho_pathimag` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`pab_id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `t_nicho`
--
INSERT INTO `t_nicho` (`nicho_id`, `nicho_nro`, `nicho_fila`, `nicho_col`, `nicho_precio`, `nicho_est`, `nicho_pathimag`, `pab_id`, `created_at`, `updated_at`) VALUES
(1, 60, 1, 1, '876.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-24 05:59:23'),
(2, 59, 1, 2, '876.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-24 05:59:23'),
(3, 58, 1, 3, '876.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-24 05:59:23'),
(4, 57, 1, 4, '876.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-24 05:59:23'),
(5, 56, 1, 5, '876.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-24 05:59:23'),
(6, 55, 1, 6, '876.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-24 05:59:23'),
(7, 54, 1, 7, '876.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-24 05:59:23'),
(8, 53, 1, 8, '876.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-24 05:59:23'),
(9, 52, 1, 9, '876.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-24 05:59:23'),
(10, 51, 1, 10, '876.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-24 05:59:23'),
(11, 50, 2, 1, '90.80', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-25 08:19:45'),
(12, 49, 2, 2, '90.80', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-25 08:19:45'),
(13, 48, 2, 3, '90.80', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-25 08:19:45'),
(14, 47, 2, 4, '90.80', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-25 08:19:45'),
(15, 46, 2, 5, '90.80', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-25 08:19:45'),
(16, 45, 2, 6, '90.80', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-25 08:19:45'),
(17, 44, 2, 7, '90.80', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-25 08:19:45'),
(18, 43, 2, 8, '90.80', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-25 08:19:45'),
(19, 42, 2, 9, '90.80', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-25 08:19:45'),
(20, 41, 2, 10, '90.80', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-25 08:19:45'),
(21, 40, 3, 1, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(22, 39, 3, 2, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(23, 38, 3, 3, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(24, 37, 3, 4, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(25, 36, 3, 5, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(26, 35, 3, 6, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(27, 34, 3, 7, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(28, 33, 3, 8, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(29, 32, 3, 9, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(30, 31, 3, 10, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(31, 30, 4, 1, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(32, 29, 4, 2, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(33, 28, 4, 3, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(34, 27, 4, 4, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(35, 26, 4, 5, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(36, 25, 4, 6, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(37, 24, 4, 7, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(38, 23, 4, 8, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(39, 22, 4, 9, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(40, 21, 4, 10, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(41, 20, 5, 1, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(42, 19, 5, 2, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(43, 18, 5, 3, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(44, 17, 5, 4, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(45, 16, 5, 5, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(46, 15, 5, 6, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(47, 14, 5, 7, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(48, 13, 5, 8, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(49, 12, 5, 9, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(50, 11, 5, 10, '0.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(51, 10, 6, 1, '1500.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-03-03 00:51:03'),
(52, 9, 6, 2, '1500.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-03-03 00:51:03'),
(53, 8, 6, 3, '1500.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-03-03 00:51:03'),
(54, 7, 6, 4, '1500.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-03-03 00:51:03'),
(55, 6, 6, 5, '1500.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-03-03 00:51:03'),
(56, 5, 6, 6, '1500.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-03-03 00:51:03'),
(57, 4, 6, 7, '1500.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-03-03 00:51:03'),
(58, 3, 6, 8, '1500.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-03-03 00:51:03'),
(59, 2, 6, 9, '1500.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-03-03 00:51:03'),
(60, 1, 6, 10, '1500.00', 'libre', 'pathima', 1, '2018-02-09 04:14:30', '2018-03-03 00:51:03'),
(61, 1, 1, 1, '0.00', 'ocupado', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(62, 2, 1, 2, '0.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(63, 3, 1, 3, '0.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(64, 4, 1, 4, '0.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(65, 5, 1, 5, '0.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(66, 6, 1, 6, '0.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(67, 7, 2, 1, '0.00', 'ocupado', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(68, 8, 2, 2, '0.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(69, 9, 2, 3, '0.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(70, 10, 2, 4, '0.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(71, 11, 2, 5, '0.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(72, 12, 2, 6, '0.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(73, 13, 3, 1, '0.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(74, 14, 3, 2, '0.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(75, 15, 3, 3, '0.00', 'ocupado', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(76, 16, 3, 4, '0.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(77, 17, 3, 5, '0.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(78, 18, 3, 6, '0.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(79, 19, 4, 1, '90.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-24 05:18:25'),
(80, 20, 4, 2, '90.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-24 05:18:25'),
(81, 21, 4, 3, '90.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-24 05:18:25'),
(82, 22, 4, 4, '90.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-24 05:18:25'),
(83, 23, 4, 5, '90.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-24 05:18:25'),
(84, 24, 4, 6, '90.00', 'libre', 'pathima', 2, '2018-02-23 01:31:32', '2018-02-24 05:18:26'),
(85, 12, 1, 1, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(86, 24, 1, 2, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(87, 36, 1, 3, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(88, 48, 1, 4, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(89, 11, 2, 1, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(90, 23, 2, 2, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(91, 35, 2, 3, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(92, 47, 2, 4, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(93, 10, 3, 1, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(94, 22, 3, 2, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(95, 34, 3, 3, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(96, 46, 3, 4, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(97, 9, 4, 1, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(98, 21, 4, 2, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(99, 33, 4, 3, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(100, 45, 4, 4, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(101, 8, 5, 1, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(102, 20, 5, 2, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(103, 32, 5, 3, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(104, 44, 5, 4, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(105, 7, 6, 1, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(106, 19, 6, 2, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(107, 31, 6, 3, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(108, 43, 6, 4, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(109, 6, 7, 1, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(110, 18, 7, 2, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(111, 30, 7, 3, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(112, 42, 7, 4, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(113, 5, 8, 1, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(114, 17, 8, 2, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(115, 29, 8, 3, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(116, 41, 8, 4, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(117, 4, 9, 1, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(118, 16, 9, 2, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(119, 28, 9, 3, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(120, 40, 9, 4, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(121, 3, 10, 1, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(122, 15, 10, 2, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(123, 27, 10, 3, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(124, 39, 10, 4, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(125, 2, 11, 1, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(126, 14, 11, 2, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(127, 26, 11, 3, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(128, 38, 11, 4, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(129, 1, 12, 1, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(130, 13, 12, 2, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(131, 25, 12, 3, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54'),
(132, 37, 12, 4, '0.00', 'libre', 'pathima', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `t_pabellon`
--
CREATE TABLE `t_pabellon` (
`pab_id` int(10) UNSIGNED NOT NULL,
`pab_nom` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`pab_nrofil` int(11) NOT NULL,
`pab_nrocol` int(11) NOT NULL,
`pab_cantnicho` int(11) NOT NULL,
`pab_pathimag` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`pab_tiponum` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`cement_id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `t_pabellon`
--
INSERT INTO `t_pabellon` (`pab_id`, `pab_nom`, `pab_nrofil`, `pab_nrocol`, `pab_cantnicho`, `pab_pathimag`, `pab_tiponum`, `cement_id`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', 6, 10, -1, '1.jpeg', 'F', 1, '2018-02-09 04:14:30', '2018-02-09 04:14:30'),
(2, 'San Judas', 4, 6, -1, '2.jpeg', 'A', 1, '2018-02-23 01:31:32', '2018-02-23 01:31:32'),
(3, 'Binario', 12, 4, -1, '3.png', 'C', 3, '2018-03-03 04:21:54', '2018-03-03 04:21:54');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `t_planpago`
--
CREATE TABLE `t_planpago` (
`ppago_id` int(10) UNSIGNED NOT NULL,
`ppago_fechaven` date NOT NULL,
`ppago_nrocuota` int(11) NOT NULL,
`ppago_montocuota` decimal(8,2) NOT NULL,
`ppago_saldocuota` decimal(8,2) NOT NULL,
`conv_id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `t_servicioextra`
--
CREATE TABLE `t_servicioextra` (
`sextra_id` int(10) UNSIGNED NOT NULL,
`sextra_desc` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`sextra_costo` 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;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `t_solicitante`
--
CREATE TABLE `t_solicitante` (
`sol_id` int(10) UNSIGNED NOT NULL,
`sol_nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`sol_telefono` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`sol_dir` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`sol_dni` 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;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `t_traslado`
--
CREATE TABLE `t_traslado` (
`tras_id` int(10) UNSIGNED NOT NULL,
`tras_fecha` date NOT NULL,
`tras_est` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`cont_id_ant` int(10) UNSIGNED NOT NULL,
`cont_id_nue` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `users`
--
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`dni` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`tipo` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`estado` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `password`, `dni`, `tipo`, `estado`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', '<EMAIL>', <PASSWORD>', '<PASSWORD>', 'administrador', 'activo', '7m1eevnzCuIxx7mFBGYgVGjCTj5T1nbC5Ahy9qxn3bNTwuFii8y7Dg8JcBsb', '2018-02-09 04:13:48', '2018-02-09 04:13:48'),
(2, '<NAME>', '<EMAIL>', <PASSWORD>$MGneXWDmq.hgxAl78pp2U.EApmV6kF<PASSWORD>nSdZSCrMyO', '<PASSWORD>', 'gerencia', 'activo', 'OaeCKmXEHhqf8lNBAm1G2s8OnJlCL4JDpqvOYZaO4hrDZKMDQLVjaxxVWBRm', '2018-02-27 01:20:11', '2018-02-27 01:20:11');
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indices de la tabla `t_boleta`
--
ALTER TABLE `t_boleta`
ADD PRIMARY KEY (`bol_id`);
--
-- Indices de la tabla `t_boletadetalle`
--
ALTER TABLE `t_boletadetalle`
ADD PRIMARY KEY (`bolde_id`),
ADD KEY `t_boletadetalle_bol_id_foreign` (`bol_id`);
--
-- Indices de la tabla `t_cementerio`
--
ALTER TABLE `t_cementerio`
ADD PRIMARY KEY (`cement_id`);
--
-- Indices de la tabla `t_contrato`
--
ALTER TABLE `t_contrato`
ADD PRIMARY KEY (`cont_id`),
ADD KEY `t_contrato_sol_id_foreign` (`sol_id`),
ADD KEY `t_contrato_dif_id_foreign` (`dif_id`),
ADD KEY `t_contrato_nicho_id_foreign` (`nicho_id`),
ADD KEY `t_contrato_usu_id_reg_foreign` (`usu_id_reg`),
ADD KEY `t_contrato_usu_id_auto_foreign` (`usu_id_auto`),
ADD KEY `t_contrato_bolde_id_foreign` (`bolde_id`);
--
-- Indices de la tabla `t_convenio`
--
ALTER TABLE `t_convenio`
ADD PRIMARY KEY (`conv_id`),
ADD KEY `t_convenio_cont_id_foreign` (`cont_id`);
--
-- Indices de la tabla `t_csextra`
--
ALTER TABLE `t_csextra`
ADD PRIMARY KEY (`csextra_id`),
ADD KEY `t_csextra_cont_id_foreign` (`cont_id`),
ADD KEY `t_csextra_sextra_id_foreign` (`sextra_id`),
ADD KEY `t_csextra_bolde_id_foreign` (`bolde_id`);
--
-- Indices de la tabla `t_dbppago`
--
ALTER TABLE `t_dbppago`
ADD PRIMARY KEY (`dbpp_id`),
ADD KEY `t_dbppago_ppago_id_foreign` (`ppago_id`),
ADD KEY `t_dbppago_bolde_id_foreign` (`bolde_id`);
--
-- Indices de la tabla `t_difunto`
--
ALTER TABLE `t_difunto`
ADD PRIMARY KEY (`dif_id`);
--
-- Indices de la tabla `t_nicho`
--
ALTER TABLE `t_nicho`
ADD PRIMARY KEY (`nicho_id`),
ADD KEY `t_nicho_pab_id_foreign` (`pab_id`);
--
-- Indices de la tabla `t_pabellon`
--
ALTER TABLE `t_pabellon`
ADD PRIMARY KEY (`pab_id`),
ADD KEY `t_pabellon_cement_id_foreign` (`cement_id`);
--
-- Indices de la tabla `t_planpago`
--
ALTER TABLE `t_planpago`
ADD PRIMARY KEY (`ppago_id`),
ADD KEY `t_planpago_conv_id_foreign` (`conv_id`);
--
-- Indices de la tabla `t_servicioextra`
--
ALTER TABLE `t_servicioextra`
ADD PRIMARY KEY (`sextra_id`);
--
-- Indices de la tabla `t_solicitante`
--
ALTER TABLE `t_solicitante`
ADD PRIMARY KEY (`sol_id`);
--
-- Indices de la tabla `t_traslado`
--
ALTER TABLE `t_traslado`
ADD PRIMARY KEY (`tras_id`),
ADD KEY `t_traslado_cont_id_ant_foreign` (`cont_id_ant`),
ADD KEY `t_traslado_cont_id_nue_foreign` (`cont_id_nue`);
--
-- Indices de la tabla `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT de la tabla `t_boleta`
--
ALTER TABLE `t_boleta`
MODIFY `bol_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `t_boletadetalle`
--
ALTER TABLE `t_boletadetalle`
MODIFY `bolde_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `t_cementerio`
--
ALTER TABLE `t_cementerio`
MODIFY `cement_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT de la tabla `t_contrato`
--
ALTER TABLE `t_contrato`
MODIFY `cont_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `t_convenio`
--
ALTER TABLE `t_convenio`
MODIFY `conv_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `t_csextra`
--
ALTER TABLE `t_csextra`
MODIFY `csextra_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `t_dbppago`
--
ALTER TABLE `t_dbppago`
MODIFY `dbpp_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `t_difunto`
--
ALTER TABLE `t_difunto`
MODIFY `dif_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `t_nicho`
--
ALTER TABLE `t_nicho`
MODIFY `nicho_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=133;
--
-- AUTO_INCREMENT de la tabla `t_pabellon`
--
ALTER TABLE `t_pabellon`
MODIFY `pab_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT de la tabla `t_planpago`
--
ALTER TABLE `t_planpago`
MODIFY `ppago_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `t_servicioextra`
--
ALTER TABLE `t_servicioextra`
MODIFY `sextra_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `t_solicitante`
--
ALTER TABLE `t_solicitante`
MODIFY `sol_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `t_traslado`
--
ALTER TABLE `t_traslado`
MODIFY `tras_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- Restricciones para tablas volcadas
--
--
-- Filtros para la tabla `t_boletadetalle`
--
ALTER TABLE `t_boletadetalle`
ADD CONSTRAINT `t_boletadetalle_bol_id_foreign` FOREIGN KEY (`bol_id`) REFERENCES `t_boleta` (`bol_id`);
--
-- Filtros para la tabla `t_contrato`
--
ALTER TABLE `t_contrato`
ADD CONSTRAINT `t_contrato_bolde_id_foreign` FOREIGN KEY (`bolde_id`) REFERENCES `t_boletadetalle` (`bolde_id`),
ADD CONSTRAINT `t_contrato_dif_id_foreign` FOREIGN KEY (`dif_id`) REFERENCES `t_difunto` (`dif_id`),
ADD CONSTRAINT `t_contrato_nicho_id_foreign` FOREIGN KEY (`nicho_id`) REFERENCES `t_nicho` (`nicho_id`),
ADD CONSTRAINT `t_contrato_sol_id_foreign` FOREIGN KEY (`sol_id`) REFERENCES `t_solicitante` (`sol_id`),
ADD CONSTRAINT `t_contrato_usu_id_auto_foreign` FOREIGN KEY (`usu_id_auto`) REFERENCES `users` (`id`),
ADD CONSTRAINT `t_contrato_usu_id_reg_foreign` FOREIGN KEY (`usu_id_reg`) REFERENCES `users` (`id`);
--
-- Filtros para la tabla `t_convenio`
--
ALTER TABLE `t_convenio`
ADD CONSTRAINT `t_convenio_cont_id_foreign` FOREIGN KEY (`cont_id`) REFERENCES `t_contrato` (`cont_id`);
--
-- Filtros para la tabla `t_csextra`
--
ALTER TABLE `t_csextra`
ADD CONSTRAINT `t_csextra_bolde_id_foreign` FOREIGN KEY (`bolde_id`) REFERENCES `t_boletadetalle` (`bolde_id`),
ADD CONSTRAINT `t_csextra_cont_id_foreign` FOREIGN KEY (`cont_id`) REFERENCES `t_contrato` (`cont_id`),
ADD CONSTRAINT `t_csextra_sextra_id_foreign` FOREIGN KEY (`sextra_id`) REFERENCES `t_servicioextra` (`sextra_id`);
--
-- Filtros para la tabla `t_dbppago`
--
ALTER TABLE `t_dbppago`
ADD CONSTRAINT `t_dbppago_bolde_id_foreign` FOREIGN KEY (`bolde_id`) REFERENCES `t_boletadetalle` (`bolde_id`),
ADD CONSTRAINT `t_dbppago_ppago_id_foreign` FOREIGN KEY (`ppago_id`) REFERENCES `t_planpago` (`ppago_id`);
--
-- Filtros para la tabla `t_nicho`
--
ALTER TABLE `t_nicho`
ADD CONSTRAINT `t_nicho_pab_id_foreign` FOREIGN KEY (`pab_id`) REFERENCES `t_pabellon` (`pab_id`);
--
-- Filtros para la tabla `t_pabellon`
--
ALTER TABLE `t_pabellon`
ADD CONSTRAINT `t_pabellon_cement_id_foreign` FOREIGN KEY (`cement_id`) REFERENCES `t_cementerio` (`cement_id`);
--
-- Filtros para la tabla `t_planpago`
--
ALTER TABLE `t_planpago`
ADD CONSTRAINT `t_planpago_conv_id_foreign` FOREIGN KEY (`conv_id`) REFERENCES `t_convenio` (`conv_id`);
--
-- Filtros para la tabla `t_traslado`
--
ALTER TABLE `t_traslado`
ADD CONSTRAINT `t_traslado_cont_id_ant_foreign` FOREIGN KEY (`cont_id_ant`) REFERENCES `t_contrato` (`cont_id`),
ADD CONSTRAINT `t_traslado_cont_id_nue_foreign` FOREIGN KEY (`cont_id_nue`) REFERENCES `t_contrato` (`cont_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 */;
|
create table if not exists BusLine (
line varchar(20) not null,
description varchar(255),
primary key (line)
);
create table if not exists BusStop (
id varchar(20) not null,
name varchar(255) not null,
lat double precision,
lng double precision,
primary key (id)
);
create table if not exists BusLineStop (
stopId varchar(20) not null,
lineId varchar(20) not null,
sequenceNumber smallint not null,
primary key(stopId, lineId, sequenceNumber),
foreign key (stopId) references BusStop(id),
foreign key (lineId) references BusLine(line)
); |
truncate table egbpa_sub_usage cascade;
ALTER TABLE egbpa_sub_usage RENAME TO egbpa_builing_usage;
alter table egbpa_builing_usage drop constraint fk_egbpa_sub_usage;
alter table egbpa_builing_usage rename suboccupancy to usage;
alter table egbpa_builing_usage add FOREIGN KEY (usage) REFERENCES egbpa_usage(id); |
<filename>INFO/Books Codes/Oracle Database 10g PLSQL/Code/Chapter7/DupValOnIndex.sql
/*
* Chapter 7, Oracle10g PL/SQL Programming
* by <NAME>, <NAME>, and <NAME>
*
* This block will raise the DUP_VAL_ON_INDEX exception.
*/
BEGIN
INSERT INTO authors (id, first_name, last_name)
VALUES (20000, 'John', 'Smith');
INSERT INTO authors (id, first_name, last_name)
VALUES (20000, 'Susan', 'Ryan');
END;
/
|
<reponame>ingscarrero/dotNet
CREATE PROCEDURE [dbo].[spFAMGetAvailabilityForecastItem]
@token_id NVARCHAR(50),
@filter_avlfrcitm_id_Pk BIGINT = NULL,
@filter_avlfrcitm_fixed_asset_Fk BIGINT = NULL,
@filter_avlfrcitm_stock INT = NULL,
@filter_avlfrcitm_status NVARCHAR(100) = NULL,
@filter_avlfrcitm_from DATETIME = NULL,
@filter_avlfrcitm_to DATETIME = NULL,
@filter_avlfrcitm_availability_forecast_Fk BIGINT = NULL
AS
DECLARE @v_token_user nvarchar(20);
DECLARE @v_token_employee_id int;
BEGIN
SELECT
@v_token_employee_id = [TBL_SRA_EMPLOYEE].[id],
@v_token_user = [TBL_SCMS_TOKEN].[token_user_id]
FROM [TBL_SRA_EMPLOYEE]
INNER JOIN [TBL_SCMS_USER] ON [TBL_SCMS_USER].[user_id] = [TBL_SRA_EMPLOYEE].[user]
INNER JOIN [TBL_SCMS_TOKEN] ON [TBL_SCMS_TOKEN].[token_user_id] = [TBL_SCMS_USER].[user_id]
AND [TBL_SCMS_TOKEN].[token_id] = @token_id
AND [TBL_SCMS_TOKEN].[token_expires_at] > GETDATE();
IF @v_token_employee_id IS NULL
RAISERROR ('Invalid token', 16, 1);
ELSE
SELECT
[TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_id_Pk],
[TBL_FAM_FIXEDASSET].[fxdast_id_Pk],
[TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_stock],
[TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_status],
[TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_from],
[TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_to],
[TBL_FAM_AVAILABILITY_FORECAST].[avlfrc_id_Pk]
FROM [TBL_FAM_AVAILABILITY_FORECAST_ITEM]
INNER JOIN [TBL_FAM_FIXEDASSET] ON [TBL_FAM_FIXEDASSET].[fxdast_id_Pk] = [TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_fixed_asset_Fk]
INNER JOIN [TBL_FAM_AVAILABILITY_FORECAST] ON [TBL_FAM_AVAILABILITY_FORECAST].[avlfrc_id_Pk] = [TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_availability_forecast_Fk]
WHERE
[TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_id_Pk] = ISNULL(@filter_avlfrcitm_id_Pk, [TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_id_Pk])
AND [TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_fixed_asset_Fk] = ISNULL(@filter_avlfrcitm_fixed_asset_Fk, [TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_fixed_asset_Fk])
AND [TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_stock] = ISNULL(@filter_avlfrcitm_stock, [TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_stock])
AND [TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_status] = ISNULL(@filter_avlfrcitm_status, [TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_status])
AND [TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_from] = ISNULL(@filter_avlfrcitm_from, [TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_from])
AND [TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_to] = ISNULL(@filter_avlfrcitm_to, [TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_to])
AND [TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_availability_forecast_Fk] = ISNULL(@filter_avlfrcitm_availability_forecast_Fk, [TBL_FAM_AVAILABILITY_FORECAST_ITEM].[avlfrcitm_availability_forecast_Fk]);
END
RETURN 0
|
<filename>bumdes.sql
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 18, 2020 at 07:56 AM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `bumdes`
--
-- --------------------------------------------------------
--
-- Table structure for table `anggota`
--
CREATE TABLE `anggota` (
`id_anggota` int(11) NOT NULL,
`nik` varchar(50) NOT NULL,
`nama` varchar(25) NOT NULL,
`jk` varchar(1) NOT NULL,
`agama` varchar(20) NOT NULL,
`status` varchar(11) NOT NULL,
`pekerjaan` varchar(20) NOT NULL,
`alamat` tinytext NOT NULL,
`no_hp` varchar(13) NOT NULL,
`tempat` varchar(20) NOT NULL,
`lahir` date NOT NULL,
`gambar` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `anggota`
--
INSERT INTO `anggota` (`id_anggota`, `nik`, `nama`, `jk`, `agama`, `status`, `pekerjaan`, `alamat`, `no_hp`, `tempat`, `lahir`, `gambar`) VALUES
(2, '520207163133', 'm rodik artawan', 'L', 'islam', 'Kawin', 'Swasta', 'pendem', '08786427038', 'puyung', '1997-09-26', '8.PNG');
-- --------------------------------------------------------
--
-- Table structure for table `angsuran`
--
CREATE TABLE `angsuran` (
`id_angsuran` int(11) NOT NULL,
`petugas` varchar(20) NOT NULL,
`besar_angsuran` int(11) NOT NULL,
`id_pinjaman` int(11) NOT NULL,
`tgl_setor` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`angsuran_ke` varchar(10) NOT NULL,
`ket` tinytext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `angsuran`
--
INSERT INTO `angsuran` (`id_angsuran`, `petugas`, `besar_angsuran`, `id_pinjaman`, `tgl_setor`, `angsuran_ke`, `ket`) VALUES
(1, 'Maman', 101500, 5, '2020-02-18 00:45:51', '1', '-'),
(2, 'Maman', 203000, 5, '2020-02-18 01:00:30', '2-3', '-');
-- --------------------------------------------------------
--
-- Table structure for table `level`
--
CREATE TABLE `level` (
`id_level` int(11) NOT NULL,
`level` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `level`
--
INSERT INTO `level` (`id_level`, `level`) VALUES
(1, 'Admin'),
(2, 'Ketua'),
(3, 'Member'),
(4, 'Petugas');
-- --------------------------------------------------------
--
-- Table structure for table `penarikan`
--
CREATE TABLE `penarikan` (
`id_penarikan` int(11) NOT NULL,
`id_anggota` int(11) NOT NULL,
`petugas` varchar(20) NOT NULL,
`besar_penarikan` int(11) NOT NULL,
`tanggal_penarikan` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`ket` tinytext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `penarikan`
--
INSERT INTO `penarikan` (`id_penarikan`, `id_anggota`, `petugas`, `besar_penarikan`, `tanggal_penarikan`, `ket`) VALUES
(1, 2, 'Maman', 100000, '2020-02-18 04:45:52', '-'),
(2, 2, 'Maman', 50000, '2020-02-18 05:33:23', '');
-- --------------------------------------------------------
--
-- Table structure for table `pinjaman`
--
CREATE TABLE `pinjaman` (
`id_pinjaman` int(11) NOT NULL,
`id_anggota` int(11) NOT NULL,
`petugas` varchar(20) NOT NULL,
`besar_pinjaman` int(11) NOT NULL,
`tgl_pinjaman` date NOT NULL,
`tgl_pelunasan` date NOT NULL,
`total_pinjaman` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `pinjaman`
--
INSERT INTO `pinjaman` (`id_pinjaman`, `id_anggota`, `petugas`, `besar_pinjaman`, `tgl_pinjaman`, `tgl_pelunasan`, `total_pinjaman`) VALUES
(5, 2, 'Maman', 1000000, '2020-02-17', '2020-12-17', 1015000);
-- --------------------------------------------------------
--
-- Table structure for table `simpanan`
--
CREATE TABLE `simpanan` (
`id_simpanan` int(11) NOT NULL,
`id_anggota` int(11) NOT NULL,
`petugas` varchar(20) NOT NULL,
`tanggal_simpanan` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`besar_simpanan` int(11) NOT NULL,
`ket` tinytext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `simpanan`
--
INSERT INTO `simpanan` (`id_simpanan`, `id_anggota`, `petugas`, `tanggal_simpanan`, `besar_simpanan`, `ket`) VALUES
(1, 2, 'Maman', '2020-02-17 11:20:03', 100000, '-'),
(2, 2, 'Maman', '2020-02-17 11:52:05', 500000, '-'),
(3, 2, 'Maman', '2020-02-17 12:51:32', 50000, '-');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id_user` int(11) NOT NULL,
`username` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL,
`id_level` int(11) NOT NULL,
`id_login` int(11) NOT NULL,
`status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id_user`, `username`, `password`, `id_level`, `id_login`, `status`) VALUES
(2, 'admin', 'admin', 1, 0, 1),
(3, 'rodi', 'rodi', 2, 0, 1),
(4, 'odik', 'odik', 3, 2, 1),
(7, 'Maman', 'maman', 4, 0, 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `anggota`
--
ALTER TABLE `anggota`
ADD PRIMARY KEY (`id_anggota`);
--
-- Indexes for table `angsuran`
--
ALTER TABLE `angsuran`
ADD PRIMARY KEY (`id_angsuran`);
--
-- Indexes for table `level`
--
ALTER TABLE `level`
ADD PRIMARY KEY (`id_level`);
--
-- Indexes for table `penarikan`
--
ALTER TABLE `penarikan`
ADD PRIMARY KEY (`id_penarikan`);
--
-- Indexes for table `pinjaman`
--
ALTER TABLE `pinjaman`
ADD PRIMARY KEY (`id_pinjaman`);
--
-- Indexes for table `simpanan`
--
ALTER TABLE `simpanan`
ADD PRIMARY KEY (`id_simpanan`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id_user`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `anggota`
--
ALTER TABLE `anggota`
MODIFY `id_anggota` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `angsuran`
--
ALTER TABLE `angsuran`
MODIFY `id_angsuran` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `level`
--
ALTER TABLE `level`
MODIFY `id_level` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `penarikan`
--
ALTER TABLE `penarikan`
MODIFY `id_penarikan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `pinjaman`
--
ALTER TABLE `pinjaman`
MODIFY `id_pinjaman` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `simpanan`
--
ALTER TABLE `simpanan`
MODIFY `id_simpanan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
CREATE PROC [dbo].[uspIssueSelectForUser]
@UserID uniqueidentifier,
@ListOfOrganizations Nvarchar(2000)
AS
/*----------------------------------------------------
- Getting My Sets for the Current User
----------------------------------------------------*/
SELECT Issue.IssueID ,
Issue.IssueName ,
Issue.PreferenceSetID,
Issue.IssueTypeID ,
Issue.IssueWeight ,
Issue.Deleted ,
Issue.DeletedBy ,
Issue.DeletedOn
FROM Issue
INNER JOIN PreferenceSet
ON Issue.PreferenceSetID = PreferenceSet.PreferenceSetID
WHERE MainPreferenceSetID ='72F5566E-3BF5-46E6-9406-B13E80F83BCC' /*My sets*/
AND PreferenceSet.Deleted=0
AND Issue.DeletedBy =@UserID
AND Issue.Deleted =0
/*---------------------------------------------------
- Getting Organization Sets for joined organizations
----------------------------------------------------*/
UNION
SELECT Issue.IssueID ,
Issue.IssueName ,
Issue.PreferenceSetID,
Issue.IssueTypeID ,
Issue.IssueWeight ,
Issue.Deleted ,
Issue.DeletedBy ,
Issue.DeletedOn
FROM Issue
INNER JOIN PreferenceSet
ON Issue.PreferenceSetID = PreferenceSet.PreferenceSetID
INNER JOIN PreferenceSetOrganization
ON PreferenceSet.PreferenceSetID = PreferenceSetOrganization.PreferenceSetID
WHERE MainPreferenceSetID ='78AC5CF7-A5AB-4377-B9F9-D105F462C26E' /*Organization Sets*/
AND PreferenceSet.Deleted =0
AND PreferenceSetOrganization.Deleted=0
AND Issue.Deleted =0
AND @ListOfOrganizations IS NOT NULL
AND @ListOfOrganizations LIKE '%|' + CAST( PreferenceSetOrganization.OrganizationID AS Nvarchar(50)) + '|%'
UNION
/*---------------------------------------------------
- Getting All set stores
----------------------------------------------------*/
SELECT Issue.IssueID ,
Issue.IssueName ,
Issue.PreferenceSetID,
Issue.IssueTypeID ,
Issue.IssueWeight ,
Issue.Deleted ,
Issue.DeletedBy ,
Issue.DeletedOn
FROM Issue
INNER JOIN PreferenceSet
ON Issue.PreferenceSetID = PreferenceSet.PreferenceSetID
WHERE MainPreferenceSetID ='DC0981BD-0164-4042-A313-5D79CFF5211C' /*Set Store*/
AND PreferenceSet.Deleted=0
AND Issue.Deleted =0 |
<filename>ilut_tools/ILUT/sql_bcp/create_tour_table.sql
CREATE TABLE {} (
[id] [int] NULL,
[person_id] [int] NULL,
[person_day_id] [int] NULL,
[hhno] [int] NULL,
[pno] [smallint] NULL,
[day] [smallint] NULL,
[tour] [smallint] NULL,
[jtindex] [smallint] NULL,
[parent] [smallint] NULL,
[subtrs] [smallint] NULL,
[pdpurp] [smallint] NULL,
[tlvorig] [smallint] NULL,
[tardest] [smallint] NULL,
[tlvdest] [smallint] NULL,
[tarorig] [smallint] NULL,
[toadtyp] [smallint] NULL,
[tdadtyp] [smallint] NULL,
[topcl] [int] NULL,
[totaz] [smallint] NULL,
[tdpcl] [int] NULL,
[tdtaz] [smallint] NULL,
[tmodetp] [smallint] NULL,
[tpathtp] [smallint] NULL,
[tautotime] [real] NULL,
[tautocost] [real] NULL,
[tautodist] [real] NULL,
[tripsh1] [smallint] NULL,
[tripsh2] [smallint] NULL,
[phtindx1] [smallint] NULL,
[phtindx2] [smallint] NULL,
[fhtindx1] [smallint] NULL,
[fhtindx2] [smallint] NULL,
[toexpfac] [smallint] NULL
)
|
-- phpMyAdmin SQL Dump
-- version 4.2.10
-- http://www.phpmyadmin.net
--
-- Host: localhost:8889
-- Generation Time: 2014 年 11 月 07 日 09:49
-- サーバのバージョン: 5.5.38
-- PHP Version: 5.6.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `cebu_app`
--
-- --------------------------------------------------------
--
-- テーブルの構造 `migrations`
--
CREATE TABLE `migrations` (
`migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- テーブルのデータのダンプ `migrations`
--
INSERT INTO `migrations` (`migration`, `batch`) VALUES
('2014_11_01_075837_create_users_table', 1),
('2014_11_01_101141_create_posts_table', 2);
-- --------------------------------------------------------
--
-- テーブルの構造 `posts`
--
CREATE TABLE `posts` (
`id` int(10) unsigned NOT NULL,
`author_id` int(10) unsigned NOT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`read_more` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`content` text COLLATE utf8_unicode_ci NOT NULL,
`image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`price` int(255) NOT NULL,
`category` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`area` 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=MyISAM AUTO_INCREMENT=53 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- テーブルのデータのダンプ `posts`
--
INSERT INTO `posts` (`id`, `author_id`, `title`, `read_more`, `content`, `image`, `price`, `category`, `area`, `created_at`, `updated_at`) VALUES
(27, 1, '22 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, 'セブ島', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(6, 6, '1 番目の投稿!', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', 'images/sample.jpg', 2980, 'ネット機器', 'セブ島', '2014-11-02 00:41:25', '2014-11-03 04:33:28'),
(7, 1, '2 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(8, 1, '3 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(9, 1, '4 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(10, 1, '5 番目の投稿', '検索用', '検索用', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(26, 1, '21 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(11, 1, '6 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(12, 1, '7 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(13, 1, '8 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(14, 1, '9 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(15, 1, '10 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(16, 1, '11 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(17, 1, '12 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(18, 1, '13 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(19, 1, '14 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(20, 1, '15 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(21, 1, '16 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(22, 1, '17 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(23, 1, '18 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(24, 1, '19 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(25, 1, '20 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-02 00:41:25', '2014-11-02 00:41:25'),
(28, 1, '23 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(29, 1, '24 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(30, 1, '25 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(31, 1, '26 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(32, 1, '27 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(33, 1, '28 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(34, 1, '29 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(35, 1, '30 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(36, 1, '31 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(37, 1, '32 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(38, 1, '33 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(39, 1, '34 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(40, 1, '35 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(41, 1, '36 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(42, 1, '37 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(43, 1, '38 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(44, 1, '39 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(45, 1, '40 番目の投稿', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, '1', '1', '2014-11-03 00:56:23', '2014-11-03 00:56:23'),
(46, 0, '1 番目の投稿', '', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, 'セブ島', '1', '2014-11-03 04:27:30', '2014-11-03 04:27:30'),
(47, 0, '1 番目の投稿', '', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, 'セブ島', '1', '2014-11-03 04:27:56', '2014-11-03 04:27:56');
INSERT INTO `posts` (`id`, `author_id`, `title`, `read_more`, `content`, `image`, `price`, `category`, `area`, `created_at`, `updated_at`) VALUES
(48, 0, '1 番目の投稿', '', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, 'セブ島', '1', '2014-11-03 04:28:34', '2014-11-03 04:28:34'),
(49, 0, '1 番目の投稿', '', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, 'セブ島', '1', '2014-11-03 04:29:09', '2014-11-03 04:29:09'),
(50, 0, '1 番目の投稿', '', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, 'セブ島', '1', '2014-11-03 04:29:50', '2014-11-03 04:29:50'),
(51, 0, '1 番目の投稿です!', '', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, 'セブ島', '1', '2014-11-03 04:30:28', '2014-11-03 04:30:28'),
(52, 0, '1 番目の投稿!', '', 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', '', 1200, 'セブ島', '1', '2014-11-03 04:31:53', '2014-11-03 04:31:53');
-- --------------------------------------------------------
--
-- テーブルの構造 `users`
--
CREATE TABLE `users` (
`id` int(10) unsigned NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`phone` 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',
`remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- テーブルのデータのダンプ `users`
--
INSERT INTO `users` (`id`, `email`, `password`, `phone`, `created_at`, `updated_at`, `remember_token`) VALUES
(1, '<EMAIL>', <PASSWORD>', '12345', '2014-11-01 00:08:49', '2014-11-01 00:08:49', NULL),
(2, '<EMAIL>', '$2y$10$NwTGvUGChx.xtJdnUnicwO3fz6EvAXQ1PWMVp4D/Cy49WcR8E9LgK', '1234', '2014-11-01 00:58:50', '2014-11-01 00:58:50', NULL),
(3, '<EMAIL>', '$2y$10$D.daE87DwWbwfHpFtwoK7elt25xhVzUBOiYN54zrlpXDOd1nJOphu', '123', '2014-11-01 01:25:01', '2014-11-01 01:25:01', NULL),
(4, '<EMAIL>', '$2y$10$hduQVQDRi3gqK/lC.5KvfOOtV193mhp45rlJEOl6JBdXr/Hvedg66', '1', '2014-11-01 01:26:29', '2014-11-01 01:26:29', NULL),
(5, '<EMAIL>', '$2y$10$/pZxrh8UMimjabdgG.aSm.toYlnaekMbqcoD5KhL58slhjZu08Tpm', '1', '2014-11-01 01:29:45', '2014-11-01 01:29:45', NULL),
(6, '<EMAIL>', '$2y$10$UWsfgGLJMAlrnpjo.5Hsau7Eg9q2QTivHfXqdB6eVRX4Wwx6fx/r6', '111', '2014-11-01 04:11:43', '2014-11-01 04:33:49', 'ZBW6IjeV5PY9P1WJAHdESafHuAagYWscCO8E8cJkI9DqIoD2dlMJT8myILyp');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `posts`
--
ALTER TABLE `posts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `posts`
--
ALTER TABLE `posts`
MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=53;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7; |
<gh_stars>1-10
SELECT day_of_week(from_unixtime(starttime)) AS
day,
interfaceid,
sourceaddress,
action,
protocol
FROM ${flow_log_athena_table}
WHERE action = 'REJECT' AND protocol = 6 AND ingestdatetime > '2017-01-01-01'
LIMIT 100; |
<filename>src/Script/1. Usuario.sql
CREATE USER BD_SGP IDENTIFIED BY s_gestion
DEFAULT TABLESPACE "USERS"
TEMPORARY TABLESPACE "TEMP";
GRANT "RESOURCE" TO BD_SGP;
GRANT "CONNECT" TO BD_SGP;
|
CREATE OR REPLACE FUNCTION ti.gettablerecordcountbymonth(_tablename character varying)
RETURNS TABLE(year integer, month integer, count integer, runningcount integer)
LANGUAGE plpgsql
AS $function$
BEGIN
RETURN QUERY
EXECUTE format(
'select distinct
year
, month
, count(*)::integer as count
,(SUM(COUNT(*)) OVER (ORDER BY year, month))::integer AS runningcount
from
(select
Extract(Year From recdatecreated)::integer AS year
, Extract(Month From recdatecreated)::integer as month from ndb.' || '%s' || ') as _createdates
group by year, month
order by year, month', _tablename);
END;
$function$
|
SELECT asm.p_id_iris_frmtd,
grid.id AS grid_2000m_id
INTO detroit.lookup_summary_area_by_property_id
FROM detroit.assessments asm,
detroit.grid_2000m grid
WHERE ST_Intersects(grid.geom,
ST_Transform(
ST_SetSRID(
ST_Point(asm.property_level_longitude, asm.property_level_latitude),
4326),
32617)); |
<gh_stars>10-100
/*
Navicat MySQL Data Transfer
Source Server : 5.59
Source Server Version : 50721
Source Host : 192.168.5.59:3306
Source Database : fullstack
Target Server Type : MYSQL
Target Server Version : 50721
File Encoding : 65001
Date: 2018-03-22 10:33:23
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for fs_account
-- ----------------------------
DROP TABLE IF EXISTS `fs_account`;
CREATE TABLE `fs_account` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_name` varchar(255) DEFAULT NULL COMMENT '用户名',
`user_age` int(3) DEFAULT NULL COMMENT '年龄',
`user_password` varchar(32) NOT NULL DEFAULT '' COMMENT '密码<PASSWORD>',
`user_photo` varchar(255) DEFAULT NULL COMMENT '头像',
`user_email` varchar(255) DEFAULT NULL COMMENT '邮箱',
`create_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '更新时间',
`role_id` int(11) NOT NULL DEFAULT '2' COMMENT '角色id',
`user_score` int(11) NOT NULL DEFAULT '0' COMMENT '用户积分',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='账户';
-- ----------------------------
-- Records of fs_account
-- ----------------------------
INSERT INTO `fs_account` VALUES ('8', 'admin', '20', '<PASSWORD>32f29<PASSWORD>8<PASSWORD>', null, '222222', '2018-03-21 18:45:00', '2018-03-21 18:45:00', '1', '0');
-- ----------------------------
-- Table structure for fs_article
-- ----------------------------
DROP TABLE IF EXISTS `fs_article`;
CREATE TABLE `fs_article` (
`article_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '文章ID',
`article_title` varchar(255) DEFAULT NULL COMMENT '标题',
`article_desc` varchar(255) NOT NULL COMMENT '描述/简要',
`article_content` longtext COMMENT '文章内容',
`pub_user` int(11) NOT NULL DEFAULT '0' COMMENT '发布人',
`create_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '发布时间',
`update_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '文章更新时间',
`classify_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属分类',
`type_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属类型1文章2问题',
`views` int(11) DEFAULT NULL COMMENT '浏览量',
PRIMARY KEY (`article_id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 COMMENT='文章';
-- ----------------------------
-- Records of fs_article
-- ----------------------------
INSERT INTO `fs_article` VALUES ('1', '一道面试题就能测出你的javascript水平', '\n 这是一道非常好的面试题, 考察以下知识点:1,this的指向 2,原型(prototype)以及原型链 3,继承 4,引用 要解出这道题,要理解以下几句话就可以了: 1,每一...\n ', '\n <div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 475px; max-height: 648px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 136.42000000000002%;\"/>\n<div class=\"image-view\" data-width=\"475\" data-height=\"648\"><img src=\"//upload-images.jianshu.io/upload_images/4809664-1cc56e17e177e1c2\" data-original-width=\"475\" data-original-height=\"648\" data-original-format=\"image/jpeg\" data-original-filesize=\"32454\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">web前端学习群,189394454,每天都会有干货分享</div>\n</div><br/>\n<p>这是一道非常好的面试题, 考察以下知识点:<br/>\n1,this的指向</p>\n\n<p>2,原型(prototype)以及原型链</p>\n<p>3,继承</p>\n<p>4,引用</p>\n<p>要解出这道题,要理解以下几句话就可以了:</p>\n<p>1,每一个构造函数,都有一个原型[[prototype]]属性 指向构造函数的原型对象</p>\n<p>2,每一个实例生成的时候,都会在内存中产生一块新的堆内存</p>\n<p>3,每一实例都有一个隐式原型<strong>proto</strong> 指向构造函数的原型对象</p>\n<p>4,this的指向 取决于this调用时的位置, 在这道题中, 也可以简单理解为, 谁调用方法, this就指向哪个对象</p>\n<p>5,数组和字面量对象 都是 引用</p>\n<p>6,原型链的查找规则: 就近原则</p>\n<ol>\n<li><p>当实例上存在属性时, 用实例上的</p></li>\n<li><p>如果实例不存在,顺在原型链,往上查找,如果存在,就使用原型链的</p></li>\n<li><p>如果原型链都不存在,就用Object原型对象上的</p></li>\n<li><p>如果Object原型对象都不存在, 就是undefined</p></li>\n</ol>\n<p>为了帮助大家, 我贴出课堂上的示意图, 如果有不理解的,欢迎互动,交流</p>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 640px; max-height: 384px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 60.0%;\"/>\n<div class=\"image-view\" data-width=\"640\" data-height=\"384\"><img src=\"//upload-images.jianshu.io/upload_images/4809664-47d0144ff1b7b299\" data-original-width=\"640\" data-original-height=\"384\" data-original-format=\"image/jpeg\" data-original-filesize=\"25710\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\"/>\n</div><br/>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 640px; max-height: 441px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 68.91000000000001%;\"/>\n<div class=\"image-view\" data-width=\"640\" data-height=\"441\"><img src=\"//upload-images.jianshu.io/upload_images/4809664-ce5002a22c10610e\" data-original-width=\"640\" data-original-height=\"441\" data-original-format=\"image/jpeg\" data-original-filesize=\"31649\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\"/>\n</div>\n\n ', '0', '2018-03-15 10:48:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('2', '使用GitHub(一):添加SSHkey', '\n 使用GitHub(一):添加SSHkey 本文简单介绍使用GitHub对代码进行版本控制,包括添加SSHkey、配置Git、使用Git创建版本库并在GitHub上进行管理,主...\n ', '\n <h1>使用GitHub(一):添加SSHkey</h1>\n<blockquote>\n<ul>\n<li>本文简单介绍使用GitHub对代码进行版本控制,包括<strong>添加SSHkey</strong>、<strong>配置Git</strong>、<strong>使用Git创建版本库</strong>并在GitHub上进行管理,主要目的是对学习内容进行总结以及方便日后查阅。</li>\n<li>详细教程和原理可以参考<a href=\"https://link.jianshu.com?t=https%3A%2F%2Fwww.liaoxuefeng.com%2Fwiki%2F0013739516305929606dd18361248578c67b8067c8c017b000\" target=\"_blank\" rel=\"nofollow\">廖雪峰的Git教程</a>或<a href=\"https://link.jianshu.com?t=https%3A%2F%2Fwww.liaoxuefeng.com%2Fwiki%2F0013739516305929606dd18361248578c67b8067c8c017b000\" target=\"_blank\" rel=\"nofollow\">猴子都能看懂的Git教程</a>。</li>\n<li>本文版权归马涛涛所有。</li>\n<li>本文所引用的图片和文字版权归原作者所有,侵权删。</li>\n<li>如有错误请在下方评论区指出,欢迎积极讨论。</li>\n</ul>\n</blockquote>\n<hr/>\n<h2>添加SSHkey</h2>\n<blockquote>\n<ul>\n<li>简单说,SSH是一种<strong>网络协议</strong>,用于计算机之间的<strong>加密登录</strong>。</li>\n<li>如果一个用户从本地计算机,<strong>使用SSH</strong>协议登录另一台远程计算机,我们就可以认为,这种登录是<strong>安全</strong>的,即使被中途截获,密码也不会泄露。</li>\n<li>最早的时候,互联网通信都是明文通信,一旦被截获,内容就暴露无疑。1995年,芬兰学者TatuYlonen设计了SSH协议,将<strong>登录信息全部加密</strong>,成为互联网安全的一个基本解决方案,迅速在全世界获得推广,目前已经成为Linux系统的标准配置。</li>\n<li>在这里你只需要知道使用GitHub之前需要添加SSHkey,用来验证GitHub远程仓库就可以了,如果想深入了解原理,参考<a href=\"https://link.jianshu.com?t=%25EF%25BC%2588https%3A%2F%2Fhelp.github.com%2Farticles%2Fgenerating-a-new-ssh-key-and-adding-it-to-the-ssh-agent%2F%25EF%25BC%2589\" target=\"_blank\" rel=\"nofollow\">阮一峰SSH原理</a>。</li>\n</ul>\n</blockquote>\n<p>步骤:</p>\n<ol>\n<li>进入 <a href=\"https://link.jianshu.com?t=https%3A%2F%2Fgithub.com%2Fsettings%2Fkeys\" target=\"_blank\" rel=\"nofollow\">https://github.com/settings/keys</a>\n</li>\n<li>\n<p>如果页面里已经有一些 key,就点「delete」按钮把这些 key 全删掉。如果没有,就往下看</p>\n<br/>\n<div class=\"image-package\">\n<img src=\"https://s1.ax1x.com/2018/03/15/94Niz8.png\" src=\"https://s1.ax1x.com/2018/03/15/94Niz8.png\" alt=\"参考示例\" style=\"cursor: zoom-in;\"/><div class=\"image-caption\">参考示例</div>\n</div>\n</li>\n<li>点击 New SSH key,你需要输入 Title 和 Key,但是你现在没有 key,往下看</li>\n</ol>\n<blockquote>\n<p>添加步骤参考<a href=\"https://link.jianshu.com?t=https%3A%2F%2Fhelp.github.com%2Farticles%2Fgenerating-a-new-ssh-key-and-adding-it-to-the-ssh-agent%2F\" target=\"_blank\" rel=\"nofollow\">这里</a></p>\n</blockquote>\n<ol start=\"4\">\n<li><p>打开 Git Bash</p></li>\n<li><p>复制并运行 <code>rm -rf ~/.ssh/*</code> 把现有的 ssh key都删掉,这句命令行如果你多打一个空格,可能就要重装系统了,建议复制运行。</p></li>\n<li><p>运行 <code>ssh-keygen -t rsa -b 4096 -C \"你的邮箱\"</code>,注意填写你的真实邮箱。</p></li>\n<li>\n<p>按回车三次<br/>\n</p>\n<p/>\n参考示例:<div class=\"image-package\">\n<img src=\"https://s1.ax1x.com/2018/03/15/94NAsg.png\" src=\"https://s1.ax1x.com/2018/03/15/94NAsg.png\" alt=\"参考示例\" style=\"cursor: zoom-in;\"/><div class=\"image-caption\">参考示例</div>\n</div>\n<br/>\n这时会在~目录下生成一个.ssh的隐藏文件 <div class=\"image-package\">\n<img src=\"https://s1.ax1x.com/2018/03/15/94NELQ.png\" src=\"https://s1.ax1x.com/2018/03/15/94NELQ.png\" alt=\"参考示例2\" style=\"cursor: zoom-in;\"/><div class=\"image-caption\">参考示例2</div>\n</div>\n</li>\n<li><p>运行 <code>cat ~/.ssh/id_rsa.pub</code>,得到一串东西,完整的复制这串东西</p></li>\n<li><p>回到上面第 3 步的页面,在 Title 输入「我的第一个 key」</p></li>\n<li>\n<p>在 Key 里粘贴刚刚你你复制的那串东西</p>\n<br/>\n<div class=\"image-package\">\n<img src=\"https://s1.ax1x.com/2018/03/15/94NZZj.png\" src=\"https://s1.ax1x.com/2018/03/15/94NZZj.png\" alt=\"复制key\" style=\"cursor: zoom-in;\"/><div class=\"image-caption\">复制key</div>\n</div>\n</li>\n<li><p>点击 Add SSH key</p></li>\n<li><p>回到 Git Bash</p></li>\n<li>\n<p>运行 <code>ssh -T [email protected]</code>,你可能会看到这样的提示:<br/>\n</p>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 120px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 13.819999999999999%;\"/>\n<div class=\"image-view\" data-width=\"868\" data-height=\"120\"><img src=\"//upload-images.jianshu.io/upload_images/11017215-930bc23329e6f29e..png\" data-original-width=\"868\" data-original-height=\"120\" data-original-format=\"image/png\" data-original-filesize=\"27338\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">提示</div>\n</div>\n<p/>\n</li>\n<li><p>输入 <code>yes</code> 回车</p></li>\n<li><p>然后如果你看到 <code>Permission denied (publickey).</code> 就说明你失败了,请回到第 1 步重来,是的,回到第 1步重来;如果你看到 <code>Hi FrankFang! You\'ve successfully authenticated, but GitHub does not provide shell access.</code></p></li>\n</ol>\n<div class=\"image-package\">\n<img src=\"https://s1.ax1x.com/2018/03/15/94Nuiq.png\" src=\"https://s1.ax1x.com/2018/03/15/94Nuiq.png\" alt=\"成功示例\" style=\"cursor: zoom-in;\"/><div class=\"image-caption\">成功示例</div>\n</div>\n<p>就说明你成功了!</p>\n<ol start=\"16\">\n<li>好了, 添加了一SSH key,接下来就会用到它。</li>\n</ol>\n<blockquote>\n<ul>\n<li>一台电脑只需要一个 SSH key</li>\n<li>一个 SSH key 可以访问你的所有仓库,即使你有 1000000 个仓库,都没问题</li>\n<li>如果你新买了电脑,就在新电脑上重新生成一个 SSH key,把这个 key 也上传到 GitHub,它可以和之前的 key 共存在 GitHub 上</li>\n<li>如果你把 key 从电脑上删除了,重新生成一个 key 即可,替换之前的 key</li>\n</ul>\n</blockquote>\n\n ', '0', '2018-03-15 12:20:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('3', 'p5.js作品集(6):斐波那契螺旋', '\n 作品链接 https://codepen.io/SampleTape/full/jzPxNW/ 主要方法 translate() rotate() arc() 斐波那契螺旋 ...\n ', '\n <div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 375px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 50.0%;\"/>\n<div class=\"image-view\" data-width=\"750\" data-height=\"375\"><img src=\"//upload-images.jianshu.io/upload_images/9469540-b33941fa01ac41c7.gif\" data-original-width=\"750\" data-original-height=\"375\" data-original-format=\"image/gif\" data-original-filesize=\"592043\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">Fibonacci Spiral.gif</div>\n</div>\n<h3>作品链接</h3>\n<p><a href=\"https://link.jianshu.com?t=https%3A%2F%2Fcodepen.io%2FSampleTape%2Ffull%2FjzPxNW%2F\" target=\"_blank\" rel=\"nofollow\">https://codepen.io/SampleTape/full/jzPxNW/</a></p>\n<h3>主要方法</h3>\n<ul>\n<li>translate()</li>\n<li>rotate()</li>\n<li>arc()</li>\n</ul>\n<h3>斐波那契螺旋</h3>\n<p>斐波那契螺旋线也称“黄金螺旋”,是根据斐波那契数列画出来的螺旋曲线,以斐波那契数为边的正方形中画一个90度的扇形,连起来的弧线就是斐波那契螺旋。</p>\n<h3>草图</h3>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 686px; max-height: 564px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 82.22%;\"/>\n<div class=\"image-view\" data-width=\"686\" data-height=\"564\"><img src=\"//upload-images.jianshu.io/upload_images/9469540-073687b62c59629f.png\" data-original-width=\"686\" data-original-height=\"564\" data-original-format=\"image/png\" data-original-filesize=\"46576\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">Fibonacci Spiral草图.png</div>\n</div>\n<h3>过程分解</h3>\n<h4>一、定义一个空的斐波那契数组:</h4>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">var</span> Fibonacci = [];\n</code></pre>\n<h4>二、初始化</h4>\n<p>默认情况下draw()函数会无限重复绘图, frameRate()函数可以设置每秒重复绘图的次数,就像电影每秒播放的帧数。</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">setup</span>(<span class=\"hljs-params\"/>)</span>{\n createCanvas(windowWidth, windowHeight);<span class=\"hljs-comment\">//创建一块画板,画板的宽高与浏览器宽高相同</span>\n background(<span class=\"hljs-number\">255</span>);<span class=\"hljs-comment\">//设置背景颜色为白色</span>\n frameRate(<span class=\"hljs-number\">10</span>);<span class=\"hljs-comment\">//设置每秒10帧</span>\n}\n</code></pre>\n<h4>三、设置斐波那契螺旋的样式</h4>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">draw</span>(<span class=\"hljs-params\"/>)</span>{\n ...\n stroke(<span class=\"hljs-number\">0</span>);<span class=\"hljs-comment\">//线条颜色为黑色</span>\n noFill();<span class=\"hljs-comment\">//无填充色</span>\n strokeWeight(<span class=\"hljs-number\">5</span>);<span class=\"hljs-comment\">//线条宽度为5</span>\n translate(windowWidth/<span class=\"hljs-number\">2</span>, windowHeight/<span class=\"hljs-number\">2</span>);<span class=\"hljs-comment\">//将坐标系移动到页面中央</span>\n ...\n}\n</code></pre>\n<h4>四、开始绘制斐波那契螺旋</h4>\n<pre class=\"hljs php\"><code class=\"php\"><span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">draw</span><span class=\"hljs-params\">()</span></span>{\n ...\n stroke(<span class=\"hljs-number\">0</span>);\n noFill();\n strokeWeight(<span class=\"hljs-number\">5</span>);\n translate(windowWidth/<span class=\"hljs-number\">2</span>, windowHeight/<span class=\"hljs-number\">2</span>);\n ...\n <span class=\"hljs-keyword\">for</span>( <span class=\"hljs-keyword\">var</span> i = <span class=\"hljs-number\">0</span>; i < <span class=\"hljs-number\">20</span>; i ++){<span class=\"hljs-comment\">//绘制20段90度弧线</span>\n <span class=\"hljs-keyword\">var</span> a = i <= <span class=\"hljs-number\">1</span> ? <span class=\"hljs-number\">1</span> : Fibonacci[i<span class=\"hljs-number\">-1</span>] + Fibonacci[i<span class=\"hljs-number\">-2</span>];\n<span class=\"hljs-comment\">//这是条件表达式,如果i等于0或1,那么a等于1;否则等于斐波那契数列前两项的和</span>\n Fibonacci.push(a);<span class=\"hljs-comment\">//将新得到的a加入斐波那契数列中</span>\n arc(<span class=\"hljs-number\">0</span>,<span class=\"hljs-number\">0</span>,a * <span class=\"hljs-number\">2</span>,a * <span class=\"hljs-number\">2</span>,<span class=\"hljs-number\">0</span>,PI / <span class=\"hljs-number\">2</span>);<span class=\"hljs-comment\">//绘制圆心在(0,0)直径为2*a度数为90度的弧形</span>\n\n <span class=\"hljs-comment\">/**********以下是为下一段弧线做准备************/</span>\n rotate(PI / <span class=\"hljs-number\">2</span>);<span class=\"hljs-comment\">//将坐标系按顺时针旋转90度</span>\n translate(-Fibonacci[i<span class=\"hljs-number\">-1</span>],<span class=\"hljs-number\">0</span>); <span class=\"hljs-comment\">//将坐标系沿着X轴反向移动上一项的长度</span>\n } \n}\n</code></pre>\n<h4>五、让斐波那契螺旋动起来</h4>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">draw</span>(<span class=\"hljs-params\"/>)</span>{\n background(<span class=\"hljs-number\">255</span>);<span class=\"hljs-comment\">//将背景设置成白色,“遮盖”之前的绘图</span>\n stroke(<span class=\"hljs-number\">0</span>);\n noFill();\n strokeWeight(<span class=\"hljs-number\">5</span>);\n translate(windowWidth/<span class=\"hljs-number\">2</span>, windowHeight/<span class=\"hljs-number\">2</span>);\n rotate(-PI / <span class=\"hljs-number\">6</span> * frameCount);<span class=\"hljs-comment\">//每帧旋转30度,frameCount表示当前已播放帧数</span>\n <span class=\"hljs-keyword\">for</span>( <span class=\"hljs-keyword\">var</span> i = <span class=\"hljs-number\">0</span>; i < <span class=\"hljs-number\">20</span>; i ++){\n <span class=\"hljs-keyword\">var</span> a = i <= <span class=\"hljs-number\">1</span> ? <span class=\"hljs-number\">1</span> : Fibonacci[i<span class=\"hljs-number\">-1</span>] + Fibonacci[i<span class=\"hljs-number\">-2</span>];\n Fibonacci.push(a);\n arc(<span class=\"hljs-number\">0</span>,<span class=\"hljs-number\">0</span>,a * <span class=\"hljs-number\">2</span>,a * <span class=\"hljs-number\">2</span>,<span class=\"hljs-number\">0</span>,PI / <span class=\"hljs-number\">2</span>);\n rotate(PI / <span class=\"hljs-number\">2</span>);\n translate(-Fibonacci[i<span class=\"hljs-number\">-1</span>],<span class=\"hljs-number\">0</span>); \n } \n}\n</code></pre>\n<h3>完整代码</h3>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">var</span> Fibonacci = [];\n\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">setup</span>(<span class=\"hljs-params\"/>)</span>{\n createCanvas(windowWidth, windowHeight);\n background(<span class=\"hljs-number\">255</span>);\n frameRate(<span class=\"hljs-number\">10</span>);\n}\n\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">draw</span>(<span class=\"hljs-params\"/>)</span>{\n background(<span class=\"hljs-number\">255</span>);\n stroke(<span class=\"hljs-number\">0</span>);\n noFill();\n strokeWeight(<span class=\"hljs-number\">5</span>);\n translate(windowWidth/<span class=\"hljs-number\">2</span>, windowHeight/<span class=\"hljs-number\">2</span>);\n rotate(-PI / <span class=\"hljs-number\">6</span> * frameCount);\n <span class=\"hljs-keyword\">for</span>( <span class=\"hljs-keyword\">var</span> i = <span class=\"hljs-number\">0</span>; i < <span class=\"hljs-number\">20</span>; i ++){\n <span class=\"hljs-keyword\">var</span> a = i <= <span class=\"hljs-number\">1</span> ? <span class=\"hljs-number\">1</span> : Fibonacci[i<span class=\"hljs-number\">-1</span>] + Fibonacci[i<span class=\"hljs-number\">-2</span>];\n Fibonacci.push(a);\n arc(<span class=\"hljs-number\">0</span>,<span class=\"hljs-number\">0</span>,a * <span class=\"hljs-number\">2</span>,a * <span class=\"hljs-number\">2</span>,<span class=\"hljs-number\">0</span>,PI / <span class=\"hljs-number\">2</span>);\n rotate(PI / <span class=\"hljs-number\">2</span>);\n translate(-Fibonacci[i<span class=\"hljs-number\">-1</span>],<span class=\"hljs-number\">0</span>); \n } \n}\n\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">windowResized</span>(<span class=\"hljs-params\"/>)</span>{\n resizeCanvas(windowWidth, windowHeight);\n}\n</code></pre>\n\n ', '0', '2018-03-12 21:40:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('4', 'JS之匿名函数和闭包', '\n 函数表达式 有两种方式:1、函数声明2、函数表达式函数声明会提升,函数表达式不会。函数声明,在执行函数之前会先读取函数声明。 函数表达式 函数表达式和函数声明中没有函数名的函...\n ', '\n <h1>函数表达式</h1>\n<p>有两种方式:1、函数声明2、函数表达式<br/>\n<strong>函数声明会提升</strong>,函数表达式不会。<br/>\n函数声明,在执行函数之前会先读取函数声明。</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\">sayhi()<span class=\"hljs-comment\">//‘hi’</span>\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">sayhi</span>(<span class=\"hljs-params\"/>)</span>{\n <span class=\"hljs-built_in\">console</span>.log(<span class=\"hljs-string\">\'hi\'</span>);\n}\n<span class=\"hljs-comment\">//不会出错</span>\n</code></pre>\n<p>函数表达式</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\">sayhi()<span class=\"hljs-comment\">//‘hi’</span>\n<span class=\"hljs-keyword\">var</span> sayhi=<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\"/>)</span>{\n <span class=\"hljs-built_in\">console</span>.log(<span class=\"hljs-string\">\'hi\'</span>);\n}\n<span class=\"hljs-comment\">//会出错</span>\n</code></pre>\n<p><strong>函数表达式和函数声明中没有函数名的函数,都是匿名函数</strong></p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-comment\">//不要这样做!,有的浏览器用第一个声明,有的用第二个</span>\n<span class=\"hljs-keyword\">if</span>(condition){\n <span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">sayHi</span>(<span class=\"hljs-params\"/>)</span>{\n alert(<span class=\"hljs-string\">\"Hi!\"</span>);\n }\n} <span class=\"hljs-keyword\">else</span> {\n <span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">sayHi</span>(<span class=\"hljs-params\"/>)</span>{\n alert(<span class=\"hljs-string\">\"Yo!\"</span>);\n }\n}\n<span class=\"hljs-comment\">//可以这样做</span>\n<span class=\"hljs-keyword\">var</span> sayHi;\n <span class=\"hljs-keyword\">if</span>(condition){\n sayHi = <span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\"/>)</span>{\n alert(<span class=\"hljs-string\">\"Hi!\"</span>);\n };\n} <span class=\"hljs-keyword\">else</span> {\n sayHi = <span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\"/>)</span>{\n alert(<span class=\"hljs-string\">\"Yo!\"</span>);\n };\n}\n</code></pre>\n<h2>闭包</h2>\n<p>闭包是指有权访问另一个函数作用域中的变量的函数,创建闭包的常见方式,是在一个函数内部创建另一个函数,通过另一个函数访问这个函数的局部变量。</p>\n<ul>\n<li>\n<strong>闭包可以让外侧函数的局部变量驻留内存,实现局部变量的累加</strong>,过度使用闭包导致性能下降,内存泄漏</li>\n</ul>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">a</span>(<span class=\"hljs-params\"/>)</span>{\n <span class=\"hljs-keyword\">var</span> age=<span class=\"hljs-number\">1</span>;\n <span class=\"hljs-keyword\">return</span> <span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\"/>)</span>{\n age++;\n <span class=\"hljs-keyword\">return</span> age;\n } \n}\n<span class=\"hljs-keyword\">var</span> x=a();\n<span class=\"hljs-built_in\">console</span>.log(x())<span class=\"hljs-comment\">//2</span>\n<span class=\"hljs-built_in\">console</span>.log(x())<span class=\"hljs-comment\">//3</span>\n</code></pre>\n<ul>\n<li>由于作用域链的机制导致一个问题,循环里的<strong>匿名函数取得的任何变量都是最后一个值。</strong>闭包所保存的是整个变量对象,而不是某个特殊的变量。</li>\n</ul>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">box</span>(<span class=\"hljs-params\"/>) </span>{\n <span class=\"hljs-keyword\">var</span> arr = [];\n <span class=\"hljs-keyword\">for</span> (<span class=\"hljs-keyword\">var</span> i = <span class=\"hljs-number\">0</span>; i < <span class=\"hljs-number\">5</span>; i++) {\n arr[i] = <span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\"/>) </span>{\n <span class=\"hljs-keyword\">return</span> i;\n };\n }\n <span class=\"hljs-keyword\">return</span> arr;\n}\n<span class=\"hljs-keyword\">var</span> b = box(); <span class=\"hljs-comment\">//得到函数数组</span>\nalert(b.length); <span class=\"hljs-comment\">//得到函数集合长度</span>\n<span class=\"hljs-keyword\">for</span> (<span class=\"hljs-keyword\">var</span> i = <span class=\"hljs-number\">0</span>; i < b.length; i++) {\n <span class=\"hljs-built_in\">console</span>.log(b[i]()); <span class=\"hljs-comment\">//输出每个函数的值,都是最后一个值55555</span>\n}\n</code></pre>\n<p>因为b中存的是匿名函数对象,当b<a href=\"\" target=\"_blank\">i</a>执行匿名函数时,box()中的for循环早已执行完毕,i早已变成5.<br/>\n解决方法1:让匿名函数自我执行</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">box</span>(<span class=\"hljs-params\"/>) </span>{\n <span class=\"hljs-keyword\">var</span> arr = [];\n <span class=\"hljs-keyword\">for</span> (<span class=\"hljs-keyword\">var</span> i = <span class=\"hljs-number\">0</span>; i < <span class=\"hljs-number\">5</span>; i++) {\n arr[i] = (<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\">i</span>) </span>{\n <span class=\"hljs-keyword\">return</span> i;\n })(i);\n }\n <span class=\"hljs-keyword\">return</span> arr;\n}\n<span class=\"hljs-keyword\">var</span> b = box(); <span class=\"hljs-comment\">//得到函数数组</span>\nalert(b.length); <span class=\"hljs-comment\">//得到函数集合长度</span>\n<span class=\"hljs-keyword\">for</span> (<span class=\"hljs-keyword\">var</span> i = <span class=\"hljs-number\">0</span>; i < b.length; i++) {\n <span class=\"hljs-built_in\">console</span>.log(b[i]); <span class=\"hljs-comment\">//输出0,12,3,4</span>\n}\n</code></pre>\n<p>解决方法2:匿名函数下在创建一个匿名函数,外侧匿名函数自执行</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">box</span>(<span class=\"hljs-params\"/>) </span>{\n <span class=\"hljs-keyword\">var</span> arr = [];\n <span class=\"hljs-keyword\">for</span> (<span class=\"hljs-keyword\">var</span> i = <span class=\"hljs-number\">0</span>; i < <span class=\"hljs-number\">5</span>; i++) {\n arr[i] = (<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\">num</span>) </span>{\n <span class=\"hljs-keyword\">return</span> <span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\"/>) </span>{\n <span class=\"hljs-keyword\">return</span> num;<span class=\"hljs-comment\">//具体数字</span>\n };\n })(i)\n }\n <span class=\"hljs-keyword\">return</span> arr;\n}\n<span class=\"hljs-keyword\">var</span> b = box(); <span class=\"hljs-comment\">//得到函数数组</span>\nalert(b.length); <span class=\"hljs-comment\">//得到函数集合长度</span>\n<span class=\"hljs-keyword\">for</span> (<span class=\"hljs-keyword\">var</span> i = <span class=\"hljs-number\">0</span>; i < b.length; i++) {\n <span class=\"hljs-built_in\">console</span>.log(b[i]()); <span class=\"hljs-comment\">//输出 01234</span>\n}\n</code></pre>\n<h4>this对象</h4>\n<p>this对象是在运行时基于函数的执行环境绑定的,如果this在全局范围就是window,如果在对象内部就指向这个对象。而闭包却在运行时指向window,因为闭包并不属于这个对象的属性或方法。</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">var</span> user=<span class=\"hljs-string\">\'window\'</span>;\n<span class=\"hljs-keyword\">var</span> obj={\n <span class=\"hljs-attr\">user</span>:<span class=\"hljs-string\">\'obj\'</span>,\n <span class=\"hljs-attr\">getUserName</span>:<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\"/>)</span>{\n <span class=\"hljs-keyword\">return</span> <span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\"/>)</span>{\n <span class=\"hljs-keyword\">return</span> <span class=\"hljs-keyword\">this</span>.user;\n }\n }\n}\n<span class=\"hljs-built_in\">console</span>.log(obj.getUserName()());<span class=\"hljs-comment\">//window</span>\n</code></pre>\n<p>解决1:强制指向特定对象</p>\n<pre class=\"hljs cpp\"><code class=\"cpp\">console.<span class=\"hljs-built_in\">log</span>(obj.getUserName().call(obj));<span class=\"hljs-comment\">//obj</span>\nconsole.<span class=\"hljs-built_in\">log</span>(obj.getUserName().apply(obj));<span class=\"hljs-comment\">//obj</span>\n</code></pre>\n<p>解决2:复制this,得到上一个作用域的this对象</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">var</span> user=<span class=\"hljs-string\">\'window\'</span>;\n<span class=\"hljs-keyword\">var</span> obj={\n <span class=\"hljs-attr\">user</span>:<span class=\"hljs-string\">\'obj\'</span>,\n <span class=\"hljs-attr\">getUserName</span>:<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\"/>)</span>{\n <span class=\"hljs-keyword\">var</span> that=<span class=\"hljs-keyword\">this</span>;\n <span class=\"hljs-keyword\">return</span> <span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\"/>)</span>{\n <span class=\"hljs-keyword\">return</span> that.user;\n }\n }\n}\n<span class=\"hljs-built_in\">console</span>.log(obj.getUserName()());<span class=\"hljs-comment\">//obj</span>\n</code></pre>\n<h3>匿名函数仿块级作用域</h3>\n<p>for循环中的<code>var i</code>在外部也能访问</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">box</span>(<span class=\"hljs-params\">count</span>) </span>{\n<span class=\"hljs-keyword\">for</span> (<span class=\"hljs-keyword\">var</span> i=<span class=\"hljs-number\">0</span>; i<count; i++) {}\n<span class=\"hljs-keyword\">var</span> i; <span class=\"hljs-comment\">//就算重新声明,也不会覆盖前面的值,除非重新初始化</span>\nalert(i);\n}\nbox(<span class=\"hljs-number\">2</span>);<span class=\"hljs-comment\">//2</span>\n</code></pre>\n<p>解决1:<br/>\n//模仿块级作用域(私有作用域)<br/>\n(function () {<br/>\n//这里是块级作用域<br/>\n})();</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-comment\">//使用块级作用域(私有作用域)改写</span>\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">box</span>(<span class=\"hljs-params\">count</span>) </span>{\n(<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> (<span class=\"hljs-params\"/>) </span>{\n<span class=\"hljs-keyword\">for</span> (<span class=\"hljs-keyword\">var</span> i = <span class=\"hljs-number\">0</span>; i<count; i++) {}\n})();\nalert(i); <span class=\"hljs-comment\">//报错,无法访问</span>\n\n}\nbox(<span class=\"hljs-number\">2</span>);\n</code></pre>\n<p>解决2:ES6中使用let</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">box</span>(<span class=\"hljs-params\">count</span>) </span>{\n<span class=\"hljs-keyword\">for</span> (<span class=\"hljs-keyword\">let</span> i=<span class=\"hljs-number\">0</span>; i<count; i++) {}\nalert(i); <span class=\"hljs-comment\">//i报错</span>\n\n}\nbox(<span class=\"hljs-number\">2</span>);\n</code></pre>\n<p>参考资料:JavaScript高级程序设计(第3版)</p>\n\n ', '0', '2018-03-14 12:00:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('5', 'Javascript:数组常用方法整理', '\n 下面以var arr = [\'x\', \'u\', \'e\', \'y\', \'i\', \'n\', \'g\']为例 修改器方法: 1. arr.pop() && arr.push() 会改...\n ', '\n <p>下面以<code>var arr = [\'x\', \'u\', \'e\', \'y\', \'i\', \'n\', \'g\']</code>为例</p>\n<h2>修改器方法:</h2>\n<h4>1. arr.pop() && arr.push()</h4>\n<p>会改变原数组</p>\n<p><code>arr.pop()</code>删除数组最后一个元素,并返回这个元素</p>\n<pre class=\"hljs bash\"><code class=\"bash\">arr.pop() // <span class=\"hljs-string\">\"g\"</span>\n</code></pre>\n<p><code>arr.push()</code>在数组末尾增加一个元素,返回数组的新长度</p>\n<pre class=\"hljs bash\"><code class=\"bash\">arr.push(<span class=\"hljs-string\">\'l\'</span>) // 8\narr // [<span class=\"hljs-string\">\"x\"</span>, <span class=\"hljs-string\">\"u\"</span>, <span class=\"hljs-string\">\"e\"</span>, <span class=\"hljs-string\">\"y\"</span>, <span class=\"hljs-string\">\"i\"</span>, <span class=\"hljs-string\">\"n\"</span>, <span class=\"hljs-string\">\"g\"</span>, <span class=\"hljs-string\">\"l\"</span>]\n</code></pre>\n<h4>2. arr.shift() && arr.unshift()</h4>\n<p>arr.shift() 删除数组开头第一个元素,并返回这个元素</p>\n<pre class=\"hljs bash\"><code class=\"bash\">arr.shift() // <span class=\"hljs-string\">\"x\"</span>\n</code></pre>\n<p>arr.unshift() 在数组开头增加一个元素,返回数组新长度。</p>\n<pre class=\"hljs bash\"><code class=\"bash\">arr.unshift(<span class=\"hljs-string\">\'l\'</span>) // 8 \narr // [<span class=\"hljs-string\">\"l\"</span>, <span class=\"hljs-string\">\"x\"</span>, <span class=\"hljs-string\">\"u\"</span>, <span class=\"hljs-string\">\"e\"</span>, <span class=\"hljs-string\">\"y\"</span>, <span class=\"hljs-string\">\"i\"</span>, <span class=\"hljs-string\">\"n\"</span>, <span class=\"hljs-string\">\"g\"</span>]\n</code></pre>\n<h4>3. arr.reverse()</h4>\n<p>会改变原数组</p>\n<p>数组倒序,返回倒序后的数组</p>\n<pre class=\"hljs bash\"><code class=\"bash\">arr.reverse() // [<span class=\"hljs-string\">\"g\"</span>, <span class=\"hljs-string\">\"n\"</span>, <span class=\"hljs-string\">\"i\"</span>, <span class=\"hljs-string\">\"y\"</span>, <span class=\"hljs-string\">\"e\"</span>, <span class=\"hljs-string\">\"u\"</span>, <span class=\"hljs-string\">\"x\"</span>]\n</code></pre>\n<h4>4. arr.sort() || arr.sort(compareFunction)</h4>\n<p>对数组进行排序,并返回当前?数组.<br/>\n<code>.sort()</code>使用的是<strong>就地排序</strong>算法,且<strong>不一定稳定</strong>。</p>\n<p>默认排序顺序是根据字符串Unicode码点。<br/>\n这意味着:</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">var</span> scores = [<span class=\"hljs-number\">1</span>, <span class=\"hljs-number\">10</span>, <span class=\"hljs-number\">21</span>, <span class=\"hljs-number\">2</span>]; \nscores.sort(); <span class=\"hljs-comment\">// [1, 10, 2, 21]</span>\n<span class=\"hljs-comment\">// 10在2之前,因为在 Unicode 指针顺序中\"10\"在\"2\"之前</span>\n</code></pre>\n<p>不过<code>.sort()</code>可以接受一个函数作为参数,自己指定排序规则:</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">var</span> scores = [<span class=\"hljs-number\">1</span>, <span class=\"hljs-number\">10</span>, <span class=\"hljs-number\">21</span>, <span class=\"hljs-number\">2</span>]; \nscores.sort(<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> (<span class=\"hljs-params\">a, b</span>) </span>{ <span class=\"hljs-comment\">// 从小到大排序</span>\n <span class=\"hljs-keyword\">return</span> a - b\n}) <span class=\"hljs-comment\">// [ 1, 2, 10, 21 ]</span>\n</code></pre>\n<p>函数compareFunction 的规则如下:</p>\n<ul>\n<li>如果 compareFunction(a, b) 小于 0 ,那么 a 会被排列到 b 之前;</li>\n<li>如果 compareFunction(a, b) 等于 0 , a 和 b 的相对位置不变。<br/>\n备注: ECMAScript 标准并不保证这一行为,而且也不是所有浏览器都会遵守(例如 Mozilla 在 2003 年之前的版本);</li>\n<li>如果 compareFunction(a, b) 大于 0 , b 会被排列到 a 之前。</li>\n<li>compareFunction(a, b) 必须总是对相同的输入返回相同的比较结果,否则排序的结果将是不确定的。</li>\n</ul>\n<h4>5. arr.splice(start, deleteCount, item1, item2, ...)</h4>\n<p>修改数组,从<code>start</code>开始,删除<code>deleteCount</code>个元素,再插入后面的<code>item1, item2, ...</code></p>\n<pre class=\"hljs cpp\"><code class=\"cpp\"><span class=\"hljs-comment\">// 从下标0开始,删除一个元素,并插入‘X\'</span>\narr.splice(<span class=\"hljs-number\">0</span>, <span class=\"hljs-number\">1</span>, <span class=\"hljs-string\">\'X\'</span>) <span class=\"hljs-comment\">// [\"x\"]</span>\narr <span class=\"hljs-comment\">// [\"X\", \"u\", \"e\", \"y\", \"i\", \"n\", \"g\"]</span>\n</code></pre>\n<h2>访问方法:</h2>\n<h4>1. arr1.concat(arr2)</h4>\n<p>合并<code>arr1</code>和<code>arr2</code></p>\n<pre class=\"hljs bash\"><code class=\"bash\">var arr1 = [<span class=\"hljs-string\">\"x\"</span>, <span class=\"hljs-string\">\"u\"</span>, <span class=\"hljs-string\">\"e\"</span>]\nvar arr2 = [<span class=\"hljs-string\">\"y\"</span>, <span class=\"hljs-string\">\"i\"</span>, <span class=\"hljs-string\">\"n\"</span>, <span class=\"hljs-string\">\"g\"</span>]\narr1.concat(arr2) // [<span class=\"hljs-string\">\"x\"</span>, <span class=\"hljs-string\">\"u\"</span>, <span class=\"hljs-string\">\"e\"</span>, <span class=\"hljs-string\">\"y\"</span>, <span class=\"hljs-string\">\"i\"</span>, <span class=\"hljs-string\">\"n\"</span>, <span class=\"hljs-string\">\"g\"</span>]\n</code></pre>\n<h4>2. arr.includes(searchElement, fromIndex)</h4>\n<p>从<code>fromIndex</code>开始查找<code>searchElement</code>,找到了返回<code>true</code>,找不到返回<code>false</code><br/>\n<code>fromIndex</code>可省略,默认从下标0开始找。</p>\n<pre class=\"hljs bash\"><code class=\"bash\">arr.includes(<span class=\"hljs-string\">\'u\'</span>) // <span class=\"hljs-literal\">true</span>\narr.includes(<span class=\"hljs-string\">\'u\'</span>, 2) // <span class=\"hljs-literal\">false</span>\n</code></pre>\n<h4>3. arr.join(separator)</h4>\n<p>数组合并成一个字符串,每一个元素用<code>separator</code>隔开。<br/>\n<code>separator</code>可省略,默认为<code>,</code></p>\n<pre class=\"hljs bash\"><code class=\"bash\">arr.join() // <span class=\"hljs-string\">\"x,u,e,y,i,n,g\"</span>\narr.join(<span class=\"hljs-string\">\'\'</span>) // <span class=\"hljs-string\">\"xueying\"</span>\n</code></pre>\n<h4>4. arr.slice(begin, end)</h4>\n<p>抽取数组在[<code>begin</code>,<code>end</code>)区间内的元素,返回一个新数组。</p>\n<pre class=\"hljs bash\"><code class=\"bash\">arr.slice(0, 3) // [<span class=\"hljs-string\">\"x\"</span>, <span class=\"hljs-string\">\"u\"</span>, <span class=\"hljs-string\">\"e\"</span>]\n</code></pre>\n<h4>5. arr.toString()</h4>\n<pre class=\"hljs bash\"><code class=\"bash\">arr.toString() // <span class=\"hljs-string\">\"x,u,e,y,i,n,g\"</span>\n</code></pre>\n<h4>6. arr.indexOf(searchElement[, fromIndex = 0])</h4>\n<p>返回<code>searchElement</code>的下标,没有则返回 -1<br/>\n可以指定<code>fromIndex</code>表示从哪个下标开始查找,默认为下标0</p>\n<pre class=\"hljs cpp\"><code class=\"cpp\">arr.indexOf(<span class=\"hljs-string\">\'u\'</span>) <span class=\"hljs-comment\">// 1</span>\narr.indexOf(<span class=\"hljs-string\">\'u\'</span>, <span class=\"hljs-number\">2</span>) <span class=\"hljs-comment\">// -1</span>\n</code></pre>\n<h4>7. arr.lastIndexOf(searchElement[, fromIndex = arr.length - 1])</h4>\n<p>找到数组中最后一个和<code>searchElement</code>相等的元素的下标。<br/>\n可以指定<code>fromIndex</code>表示从哪个下标开始查找,默认从数组最后一个元素开始。</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">var</span> arr = [<span class=\"hljs-string\">\"x\"</span>, <span class=\"hljs-string\">\"u\"</span>, <span class=\"hljs-string\">\"l\"</span>, <span class=\"hljs-string\">\"e\"</span>, <span class=\"hljs-string\">\"y\"</span>, <span class=\"hljs-string\">\"i\"</span>, <span class=\"hljs-string\">\"n\"</span>, <span class=\"hljs-string\">\"g\"</span>, <span class=\"hljs-string\">\"l\"</span>]\narr.lastIndexOf(<span class=\"hljs-string\">\'l\'</span>) <span class=\"hljs-comment\">// 8</span>\n</code></pre>\n<h2>迭代方法</h2>\n<h4>1. arr.forEach()</h4>\n<p>语法:</p>\n<pre class=\"hljs php\"><code class=\"php\"><span class=\"hljs-keyword\">array</span>.<span class=\"hljs-keyword\">forEach</span>(callback(currentValue, index, <span class=\"hljs-keyword\">array</span>){\n <span class=\"hljs-comment\">//do something</span>\n}, thisArg)\n</code></pre>\n<p>对数组每一个元素执行<code>callback</code>函数。</p>\n<p><code>callback</code>函数接收3个参数:</p>\n<ol>\n<li>\n<code>currentValue</code>:当前元素的值</li>\n<li>\n<code>index</code>: 当前元素的下标</li>\n<li>\n<code>array</code>:原数组</li>\n</ol>\n<p><code>thisArg</code>:可选,用作<code>callback</code>函数的this值。</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">var</span> arr = [<span class=\"hljs-string\">\'x\'</span>, <span class=\"hljs-string\">\'u\'</span>, <span class=\"hljs-string\">\'e\'</span>, <span class=\"hljs-string\">\'y\'</span>, <span class=\"hljs-string\">\'i\'</span>, <span class=\"hljs-string\">\'n\'</span>, <span class=\"hljs-string\">\'g\'</span>]\narr.forEach(<span class=\"hljs-function\">(<span class=\"hljs-params\">element, index, array</span>) =></span> <span class=\"hljs-built_in\">console</span>.log(<span class=\"hljs-string\">\'arr[\'</span> + index + <span class=\"hljs-string\">\'] = \'</span> + element))\n<span class=\"hljs-comment\">/* \narr[0] = x\narr[1] = u\narr[2] = e\narr[3] = y\narr[4] = i\narr[5] = n\narr[6] = g\n*/</span>\n</code></pre>\n<h4>2. arr.every(callback[, thisArg]) && arr.some(callback[, thisArg])</h4>\n<p><strong>arr.every(callback[, thisArg])</strong><br/>\n测试数组的 <strong>所有</strong> 元素是否都通过了<code>callback</code>函数的测试。<br/>\n全部通过返回<code>true</code> ,否则返回<code>false</code><br/>\n<code>thisArg</code>指定<code>this</code>值。</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-comment\">// 格式和forEach方法没区别</span>\n<span class=\"hljs-keyword\">var</span> arr = [<span class=\"hljs-string\">\'x\'</span>, <span class=\"hljs-string\">\'u\'</span>, <span class=\"hljs-string\">\'e\'</span>, <span class=\"hljs-string\">\'y\'</span>, <span class=\"hljs-string\">\'i\'</span>, <span class=\"hljs-string\">\'n\'</span>, <span class=\"hljs-string\">\'g\'</span>]\n<span class=\"hljs-built_in\">console</span>.log(arr.every(<span class=\"hljs-function\">(<span class=\"hljs-params\">element, index, array</span>) =></span> element === element.toLowerCase())) <span class=\"hljs-comment\">// 数组中的元素是否都为小写</span>\n<span class=\"hljs-comment\">// true</span>\n</code></pre>\n<p><strong>arr.some(callback[, thisArg])</strong><br/>\n测试数组的 <strong>某些</strong> 元素是否<strong>全部</strong>通过了<code>callback</code>函数的测试。</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-comment\">// 语法和forEach方法没区别</span>\n<span class=\"hljs-keyword\">var</span> arr = [<span class=\"hljs-string\">\'X\'</span>, <span class=\"hljs-string\">\'u\'</span>, <span class=\"hljs-string\">\'e\'</span>, <span class=\"hljs-string\">\'y\'</span>, <span class=\"hljs-string\">\'i\'</span>, <span class=\"hljs-string\">\'n\'</span>, <span class=\"hljs-string\">\'g\'</span>] <span class=\"hljs-comment\">// 第一个元素大写</span>\n<span class=\"hljs-built_in\">console</span>.log(arr.some(<span class=\"hljs-function\">(<span class=\"hljs-params\">element, index, array</span>) =></span> element === element.toLowerCase())) <span class=\"hljs-comment\">// 数组中是否有小写的元素</span>\n<span class=\"hljs-comment\">// true</span>\n</code></pre>\n<h4>3. arr.filter(callback[, thisArg])</h4>\n<p>过滤器,创建一个新数组, 其包含通过所提供函数实现的测试的所有元素<br/>\n语法还是跟<code>forEach</code>方法没区别。</p>\n<pre class=\"hljs bash\"><code class=\"bash\">var arr = [<span class=\"hljs-string\">\'X\'</span>, <span class=\"hljs-string\">\'u\'</span>, <span class=\"hljs-string\">\'e\'</span>, <span class=\"hljs-string\">\'y\'</span>, <span class=\"hljs-string\">\'i\'</span>, <span class=\"hljs-string\">\'n\'</span>, <span class=\"hljs-string\">\'g\'</span>] // 第一个元素大写\nconsole.log(arr.filter((element, index, array) => element === element.toLowerCase())) \n// [ <span class=\"hljs-string\">\'u\'</span>, <span class=\"hljs-string\">\'e\'</span>, <span class=\"hljs-string\">\'y\'</span>, <span class=\"hljs-string\">\'i\'</span>, <span class=\"hljs-string\">\'n\'</span>, <span class=\"hljs-string\">\'g\'</span> ]\n</code></pre>\n<h4>4. arr.find(callback[, thisArg]) && arr.findIndex(callback[, thisArg])</h4>\n<p><strong>arr.find(callback[, thisArg])</strong><br/>\n语法同上。<br/>\n返回数组中第一个满足<code>callback</code>函数的元素的值。否则返回 <code>undefined</code>。</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">var</span> arr = [<span class=\"hljs-string\">\'X\'</span>, <span class=\"hljs-string\">\'u\'</span>, <span class=\"hljs-string\">\'e\'</span>, <span class=\"hljs-string\">\'y\'</span>, <span class=\"hljs-string\">\'i\'</span>, <span class=\"hljs-string\">\'n\'</span>, <span class=\"hljs-string\">\'g\'</span>] <span class=\"hljs-comment\">// 第一个元素大写</span>\n<span class=\"hljs-built_in\">console</span>.log(arr.find(<span class=\"hljs-function\">(<span class=\"hljs-params\">element, index, array</span>) =></span> element === element.toLowerCase()))\n<span class=\"hljs-comment\">// \"u\"</span>\n</code></pre>\n<p><strong>arr.findIndex(callback[, thisArg])</strong><br/>\n语法同上。<br/>\n返回数组中第一个满足<code>callback</code>函数的元素的索引。否则返回-1。</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">var</span> arr = [<span class=\"hljs-string\">\'X\'</span>, <span class=\"hljs-string\">\'u\'</span>, <span class=\"hljs-string\">\'e\'</span>, <span class=\"hljs-string\">\'y\'</span>, <span class=\"hljs-string\">\'i\'</span>, <span class=\"hljs-string\">\'n\'</span>, <span class=\"hljs-string\">\'g\'</span>] <span class=\"hljs-comment\">// 第一个元素大写</span>\n<span class=\"hljs-built_in\">console</span>.log(arr.findIndex(<span class=\"hljs-function\">(<span class=\"hljs-params\">element, index, array</span>) =></span> element === element.toLowerCase()))\n<span class=\"hljs-comment\">// 1</span>\n</code></pre>\n<h4>5. arr.entries()</h4>\n<p>(迭代器)返回一个新的Array Iterator对象,该对象包含数组中每个索引的键/值对。<br/>\n跟Python中迭代器一样,用<code>.next()</code>访问下一键值对。</p>\n<pre class=\"hljs bash\"><code class=\"bash\">var iterator = arr.entries();\niterator.next().value // {value: Array(2), <span class=\"hljs-keyword\">done</span>: <span class=\"hljs-literal\">false</span>} <span class=\"hljs-keyword\">done</span>表示迭代是否已经完成\niterator.next().value // [1, <span class=\"hljs-string\">\"u\"</span>]\n</code></pre>\n<h4>6. arr.keys() && arr.values()</h4>\n<p><strong>arr.keys()</strong><br/>\n返回一个新的Array迭代器,它包含数组中每个索引的键。</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">var</span> iterator = arr.keys();\niterator.next() <span class=\"hljs-comment\">// {value: 0, done: false}</span>\niterator.next().value <span class=\"hljs-comment\">// 1</span>\n<span class=\"hljs-comment\">// 不断next直到最后一个</span>\n<span class=\"hljs-built_in\">console</span>.log(iterator.next()) <span class=\"hljs-comment\">// {value: undefined, done: true}</span>\n</code></pre>\n<p><strong>arr.values()</strong><br/>\n返回一个新的 Array Iterator 对象,它包含数组每个索引的值。</p>\n<blockquote>\n<p>PS: Chrome 未实现,Firefox未实现,Edge已实现。<br/>\nChrome 及Firefox可以用\"arr<a href=\"\" target=\"_blank\">Symbol.iterator</a>\"方法来代替values()方法。</p>\n</blockquote>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">var</span> arr = [<span class=\"hljs-number\">1</span>,<span class=\"hljs-number\">2</span>,<span class=\"hljs-number\">3</span>,<span class=\"hljs-number\">4</span>,<span class=\"hljs-number\">5</span>]\n<span class=\"hljs-keyword\">var</span> i = arr[<span class=\"hljs-built_in\">Symbol</span>.iterator]()\ni.next() <span class=\"hljs-comment\">// {value: 1, done: false}</span>\ni.next() <span class=\"hljs-comment\">// {value: 2, done: false}</span>\n</code></pre>\n<h4>7. arr.map(callback)</h4>\n<p>创建一个新数组,其结果是该数组中的每个元素都调用<code>callback</code>函数后返回的结果。<br/>\n语法:</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\">arr.map(<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">callback</span>(<span class=\"hljs-params\">currentValue, index, array</span>) </span>{ \n <span class=\"hljs-comment\">// Return element for new_array </span>\n}[, thisArg])\n</code></pre>\n<p>例子:</p>\n<pre class=\"hljs bash\"><code class=\"bash\">arr.map((element, index, array) => element.toUpperCase()) // [<span class=\"hljs-string\">\"X\"</span>, <span class=\"hljs-string\">\"U\"</span>, <span class=\"hljs-string\">\"E\"</span>, <span class=\"hljs-string\">\"Y\"</span>, <span class=\"hljs-string\">\"I\"</span>, <span class=\"hljs-string\">\"N\"</span>, <span class=\"hljs-string\">\"G\"</span>]\n\n</code></pre>\n<h4>8. arr.reduce(callback[, initialValue])</h4>\n<p>累加器, 数组中的每个元素(从左到右)应用一个函数,将其减少为单个值。</p>\n<p><code>callback</code>函数接收4个参数:</p>\n<ol>\n<li>\n<code>accumulator</code>:累加器累加回调的返回值; 它是上一次调用回调时返回的累积值,或initialValue</li>\n<li>\n<code>currentValue</code>:数组中正在处理的元素</li>\n<li>\n<code>currentIndex</code>:数组中正在处理的当前元素的索引。</li>\n<li>\n<code>array</code>:原数组</li>\n</ol>\n<p><code>initialValue</code>:用作第一个调用 callback的第一个参数的值。 如果没有提供初始值,则将使用数组中的第一个元素。 在没有初始值的空数组上调用 reduce 将报错。</p>\n<p>回调函数第一次执行时,accumulator 和currentValue的取值有两种情况:</p>\n<ol>\n<li>调用reduce时提供initialValue,accumulator取值为initialValue,currentValue取数组中的第一个值。</li>\n<li>没有提供 initialValue,accumulator取数组中的第一个值,currentValue取数组中的第二个值。</li>\n</ol>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-comment\">// 取最大值</span>\n<span class=\"hljs-keyword\">var</span> arr = [<span class=\"hljs-number\">1</span>, <span class=\"hljs-number\">2</span>, <span class=\"hljs-number\">3</span>, <span class=\"hljs-number\">4</span>, <span class=\"hljs-number\">5</span>, <span class=\"hljs-number\">6</span>]\n<span class=\"hljs-built_in\">console</span>.log(arr.reduce(<span class=\"hljs-function\">(<span class=\"hljs-params\">accumulator, currentValue</span>) =></span> <span class=\"hljs-built_in\">Math</span>.max(accumulator, currentValue)))\n<span class=\"hljs-comment\">// 6</span>\n\n<span class=\"hljs-comment\">// 连接数组的元素</span>\n<span class=\"hljs-keyword\">var</span> arr = [<span class=\"hljs-string\">\'x\'</span>, <span class=\"hljs-string\">\'u\'</span>, <span class=\"hljs-string\">\'e\'</span>, <span class=\"hljs-string\">\'y\'</span>, <span class=\"hljs-string\">\'i\'</span>, <span class=\"hljs-string\">\'n\'</span>, <span class=\"hljs-string\">\'g\'</span>]\n<span class=\"hljs-built_in\">console</span>.log(arr.reduce(<span class=\"hljs-function\">(<span class=\"hljs-params\">accumulator, currentValue</span>) =></span> accumulator.concat(currentValue)))\n<span class=\"hljs-comment\">// xueying</span>\n</code></pre>\n\n ', '0', '2018-03-14 13:09:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('6', 'p5.js作品集(5):毕达哥拉斯树', '\n 作品链接 https://codepen.io/SampleTape/full/MrKrxG/ 主要方法 translate() rotate() rect() push()...\n ', '\n <div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 659px; max-height: 450px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 68.28999999999999%;\"/>\n<div class=\"image-view\" data-width=\"659\" data-height=\"450\"><img src=\"//upload-images.jianshu.io/upload_images/9469540-24ccd21d962d37b5.png\" data-original-width=\"659\" data-original-height=\"450\" data-original-format=\"image/png\" data-original-filesize=\"178116\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">Pythagorian Tree.png</div>\n</div>\n<h2>作品链接</h2>\n<p><a href=\"https://link.jianshu.com?t=https://codepen.io/SampleTape/full/MrKrxG/\" target=\"_blank\" rel=\"nofollow\">https://codepen.io/SampleTape/full/MrKrxG/</a></p>\n<h2>主要方法</h2>\n<ul>\n<li>translate()</li>\n<li>rotate()</li>\n<li>rect()</li>\n<li>push()</li>\n<li>pop()</li>\n<li>map()</li>\n</ul>\n<h2>主要思想</h2>\n<ul>\n<li>递归</li>\n</ul>\n<h2>草图</h2>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 425px; max-height: 548px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 128.94%;\"/>\n<div class=\"image-view\" data-width=\"425\" data-height=\"548\"><img src=\"//upload-images.jianshu.io/upload_images/9469540-35e60a6baa754686.png\" data-original-width=\"425\" data-original-height=\"548\" data-original-format=\"image/png\" data-original-filesize=\"39476\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">草图.png</div>\n</div>\n<h2>过程分解</h2>\n<h4>一、毕达哥拉斯树的递归函数</h4>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">Pythagorian</span>(<span class=\"hljs-params\">x</span>)</span>{\n noStroke();\n fill(<span class=\"hljs-number\">107</span>, <span class=\"hljs-number\">142</span>, <span class=\"hljs-number\">35</span>,map(x, <span class=\"hljs-number\">0</span>, a, <span class=\"hljs-number\">150</span>, <span class=\"hljs-number\">255</span>));<span class=\"hljs-comment\">//根据正方形边长设置填充色</span>\n rect(<span class=\"hljs-number\">0</span>,<span class=\"hljs-number\">0</span>,x,x);<span class=\"hljs-comment\">//绘制当前的正方形</span>\n \n <span class=\"hljs-keyword\">if</span>(x <= <span class=\"hljs-number\">3</span>) <span class=\"hljs-keyword\">return</span> <span class=\"hljs-number\">0</span>;<span class=\"hljs-comment\">//当正方形边长小于3时,结束递归</span>\n\n <span class=\"hljs-comment\">/* 绘制右上角的正方形 */</span> \n push();\n rotate(PI / <span class=\"hljs-number\">2</span> - t);<span class=\"hljs-comment\">//坐标轴顺时针旋转约37deg</span>\n translate(<span class=\"hljs-number\">0</span>,-x/<span class=\"hljs-number\">5</span> * <span class=\"hljs-number\">3</span> - x/<span class=\"hljs-number\">5</span>*<span class=\"hljs-number\">4</span>);<span class=\"hljs-comment\">//坐标轴向上平移3边+4边的长度</span>\n Pythagorian(x/<span class=\"hljs-number\">5</span>*<span class=\"hljs-number\">4</span>);<span class=\"hljs-comment\">//递归调用毕达哥拉斯函数</span>\n pop();\n \n <span class=\"hljs-comment\">/* 绘制左上角的正方形 */</span>\n push();\n rotate( - t);<span class=\"hljs-comment\">//坐标轴逆时针旋转约53deg</span>\n translate(<span class=\"hljs-number\">0</span>,-x/<span class=\"hljs-number\">5</span> * <span class=\"hljs-number\">3</span>);<span class=\"hljs-comment\">//坐标轴向上平移3边的长度</span>\n Pythagorian(x/<span class=\"hljs-number\">5</span>*<span class=\"hljs-number\">3</span>);<span class=\"hljs-comment\">//递归调用毕达哥拉斯函数</span>\n pop(); \n \n}\n</code></pre>\n<h4>二、声明变量、创建画布</h4>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">var</span> a = <span class=\"hljs-number\">100</span>; <span class=\"hljs-comment\">//最大正方形边长</span>\n<span class=\"hljs-keyword\">var</span> t;<span class=\"hljs-comment\">//4边所对应的角度</span>\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">setup</span>(<span class=\"hljs-params\"/>)</span>{\n t = <span class=\"hljs-number\">53.1301024</span> / <span class=\"hljs-number\">360</span> * <span class=\"hljs-number\">2</span> * PI;<span class=\"hljs-comment\">//约为53deg</span>\n createCanvas(windowWidth, windowHeight);<span class=\"hljs-comment\">//创建画布</span>\n background(<span class=\"hljs-number\">255</span>);\n noLoop();<span class=\"hljs-comment\">//draw()函数只执行一次</span>\n}\n</code></pre>\n<h4>三、开始绘制毕达哥拉斯树</h4>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">draw</span>(<span class=\"hljs-params\"/>)</span>{\n translate(windowWidth/<span class=\"hljs-number\">2</span>, windowHeight - a * <span class=\"hljs-number\">2</span>);<span class=\"hljs-comment\">//将坐标系平移至画布中间底部</span>\n Pythagorian(a);<span class=\"hljs-comment\">//调用毕达哥拉斯递归函数</span>\n}\n</code></pre>\n<h4>绘制毕达哥拉斯树完整代码</h4>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">var</span> a = <span class=\"hljs-number\">100</span>;\n<span class=\"hljs-keyword\">var</span> t;\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">setup</span>(<span class=\"hljs-params\"/>)</span>{\n t = <span class=\"hljs-number\">53.1301024</span> / <span class=\"hljs-number\">360</span> * <span class=\"hljs-number\">2</span> * PI;\n createCanvas(windowWidth, windowHeight);\n background(<span class=\"hljs-number\">255</span>);\n noLoop();\n}\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">draw</span>(<span class=\"hljs-params\"/>)</span>{\n translate(windowWidth/<span class=\"hljs-number\">2</span>, windowHeight - a * <span class=\"hljs-number\">2</span>);\n Pythagorian(a);\n \n}\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">Pythagorian</span>(<span class=\"hljs-params\">x</span>)</span>{\n noStroke();\n fill(<span class=\"hljs-number\">107</span>, <span class=\"hljs-number\">142</span>, <span class=\"hljs-number\">35</span>,map(x, <span class=\"hljs-number\">0</span>, a, <span class=\"hljs-number\">150</span>, <span class=\"hljs-number\">255</span>));\n rect(<span class=\"hljs-number\">0</span>,<span class=\"hljs-number\">0</span>,x,x);\n \n <span class=\"hljs-keyword\">if</span>(x <= <span class=\"hljs-number\">3</span>) <span class=\"hljs-keyword\">return</span> <span class=\"hljs-number\">0</span>;\n \n push();\n rotate(PI / <span class=\"hljs-number\">2</span> - t);\n translate(<span class=\"hljs-number\">0</span>,-x/<span class=\"hljs-number\">5</span> * <span class=\"hljs-number\">3</span> - x/<span class=\"hljs-number\">5</span>*<span class=\"hljs-number\">4</span>);\n Pythagorian(x/<span class=\"hljs-number\">5</span>*<span class=\"hljs-number\">4</span>);\n pop();\n \n push();\n rotate( - t);\n translate(<span class=\"hljs-number\">0</span>,-x/<span class=\"hljs-number\">5</span> * <span class=\"hljs-number\">3</span>);\n Pythagorian(x/<span class=\"hljs-number\">5</span>*<span class=\"hljs-number\">3</span>);\n pop(); \n \n}\n</code></pre>\n\n ', '0', '2017-12-19 09:37:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('7', '使用h5新特性,轻松监听任何App自带返回键', '\n 1、前言 如今h5新特性、新标签、新规范等有很多,而且正在不断完善中,各大浏览器商对它们的支持,也是相当给力。作为前端程序员,我觉得我们还是有必要积极关注并勇敢地加以实践。接...\n ', '\n <h3><b>1、前言</b></h3><p>如今h5新特性、新标签、新规范等有很多,而且正在不断完善中,各大浏览器商对它们的支持,也是相当给力。作为前端程序员,我觉得我们还是有必要积极关注并勇敢地加以实践。接下来我将和各位分享一个特别好用的h5新特性(目前也不是特别新),轻松监听任何App自带的返回键,包括安卓机里的物理返回键,从而实现项目开发中进一步的需求。</p><hr/><h3>2、起因</h3><p>大概半年前接到pm一需求,用纯h5实现多audio的播放、暂停、续播,页面放至驾考宝典App中,与客户端没有任何的交互,所以与客户端相关的js不需要引用。看上去这需求挺简单的嘛,虽然之前也没做过类似的需求。不管三七二十一,撸起袖子就是干。开始了学习之旅。</p><hr/><h3>3、我这里着重介绍下我具体是怎么监听任何App自带的返回键,以及安卓机里的物理返回键。</h3><hr/><p>那为什么我要去监听呢,这里我有必要强调强调再强调。苹果手机不管是微信、QQ、App,还是浏览器里,涉及到audio、video,返回上一页系统会自动暂停当前的播放的,但不是所有安卓机都可以。所以我们自己必须自定义监听。很多朋友可能第一想法就是百度,然后出来的答案无非是这样</p><p><br/></p><div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 508px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 38.78%;\"/>\n<div class=\"image-view\" data-width=\"1310\" data-height=\"508\"><img src=\"//upload-images.jianshu.io/upload_images/5126207-f09f65b76419bceb.png\" data-original-width=\"1310\" data-original-height=\"508\" data-original-format=\"image/png\" data-original-filesize=\"91505\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\"/>\n</div><p>是不是很眼熟?然而关键需求不能完美实现,要这段代码有何用,当时我也是绞尽脑汁。直到经过大神好友指导,复制了这段代码</p><p><br/></p><div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 598px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 45.72%;\"/>\n<div class=\"image-view\" data-width=\"1308\" data-height=\"598\"><img src=\"//upload-images.jianshu.io/upload_images/5126207-fbd41002c3fe0621.png\" data-original-width=\"1308\" data-original-height=\"598\" data-original-format=\"image/png\" data-original-filesize=\"124619\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\"/>\n</div><p>所有问题迎刃而解。</p><p>这段代码的原理我个人理解就是通过判断用户浏览的是否为当前页,从而进行相关操作。</p><p>这是 MDN相关链接:<a href=\"https://link.jianshu.com?t=https%3A%2F%2Fdeveloper.mozilla.org%2Fzh-CN%2Fdocs%2FWeb%2FAPI%2FDocument%2Fhidden\" target=\"_blank\" rel=\"nofollow\">https://developer.mozilla.org/zh-CN/docs/Web/API/Document/hidden</a>。</p><p>并不是说现在真的可以通过JS监听到App里的自带返回键,甚至安卓的物理返回键,而是通过转变思路,快速实现需求。希望这个特性能帮到各位。</p>\n ', '0', '2018-03-13 09:44:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('8', '《小白HTML5成长之路52》javascript的匿名函数无处不在', '\n 自从了解js通过canvas压缩图片上传功能以后,小白对javascript的敬畏之心又提升了一大截,这两天在练习的时候发现自己平时熟悉的代码变得陌生起来,比如为什么定义函数...\n ', '\n <div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 566px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 79.16%;\"/>\n<div class=\"image-view\" data-width=\"715\" data-height=\"566\"><img src=\"//upload-images.jianshu.io/upload_images/8746995-fb1493414bbfe723.png\" data-original-width=\"715\" data-original-height=\"566\" data-original-format=\"image/png\" data-original-filesize=\"48035\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\"/>\n</div><p>自从了解js通过canvas压缩图片上传功能以后,小白对javascript的敬畏之心又提升了一大截,这两天在练习的时候发现自己平时熟悉的代码变得陌生起来,比如为什么定义函数时这两个方式都可以用。</p><div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 300px; max-height: 127px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 42.33%;\"/>\n<div class=\"image-view\" data-width=\"300\" data-height=\"127\"><img src=\"//upload-images.jianshu.io/upload_images/8746995-7b63c64313f61546.png\" data-original-width=\"300\" data-original-height=\"127\" data-original-format=\"image/png\" data-original-filesize=\"8024\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\"/>\n</div><p>带着这个疑问,小白找到了老朱。“朱哥,为啥在js里面要用两种定义函数的方式呢?”</p><p>老朱:“严格意义上来说上面那个不是定义一个函数,而是将一个变量指向了一个匿名函数,这里是引用的关系。你可以控制台输出一下两个函数名看看。”</p><div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 207px; max-height: 41px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 19.81%;\"/>\n<div class=\"image-view\" data-width=\"207\" data-height=\"41\"><img src=\"//upload-images.jianshu.io/upload_images/8746995-c9971f8791fe239b.png\" data-original-width=\"207\" data-original-height=\"41\" data-original-format=\"image/png\" data-original-filesize=\"2755\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\"/>\n</div><div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 308px; max-height: 98px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 31.819999999999997%;\"/>\n<div class=\"image-view\" data-width=\"308\" data-height=\"98\"><img src=\"//upload-images.jianshu.io/upload_images/8746995-2739c6ce79cc74c2.png\" data-original-width=\"308\" data-original-height=\"98\" data-original-format=\"image/png\" data-original-filesize=\"4958\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\"/>\n</div><p>小白执行了一下输出以后惊讶的说道:“果然不一样啊,一个有函数名,一个没有函数名。”</p><p>老朱:“在js中匿名函数用处非常大,这几天我们写的代码里面有很多的匿名函数,你可以找找。”</p><div class=\"image-package \">\n<div class=\"image-container\" style=\"max-width: 395px; max-height: 263px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 66.58%;\"/>\n<div class=\"image-view\" data-width=\"395\" data-height=\"263\"><img src=\"//upload-images.jianshu.io/upload_images/8746995-a65cd0ebf961cc79.png\" data-original-width=\"395\" data-original-height=\"263\" data-original-format=\"image/png\" data-original-filesize=\"18504\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\"/>\n</div><p>小白:“哇,随便翻了一下昨天的代码里面就有匿名函数啊。这段点击按钮上传图片的代码中就有两个。”</p><p>老朱:“匿名函数非常有个特点,匿名函数如果没有被引用,用完后会被销毁,也就是垃圾回收释放内存。如果被引用,而引用它的那个变量一直在内存中,它指向的匿名函数就会一直存在,不会被销毁。比如上面的代码中click里面的匿名函数没有被引用,用完后会被销毁,匿名函数中的success指向的匿名函数被引用,只有success被销毁时,这个匿名函数才会被回收。垃圾回收这块说起来会比较复杂,我们有时间详细聊聊。”</p><p>老朱顿了一下接着说道:“之前我们用到的匿名函数基本都用在了参数传递和引用上,在js中匿名函数还有一个非常重要的用法就是在页面加载以后执行一个匿名函数。”</p><div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 312px; max-height: 107px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 34.29%;\"/>\n<div class=\"image-view\" data-width=\"312\" data-height=\"107\"><img src=\"//upload-images.jianshu.io/upload_images/8746995-80279f82a2d38394.png\" data-original-width=\"312\" data-original-height=\"107\" data-original-format=\"image/png\" data-original-filesize=\"7244\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\"/>\n</div><p>“这个函数在页面加载后会立即执行,如果函数有参数,可以通过最后面的小括号进行传参。如果这个页面被其他页面加载调用,这里的匿名函数被加载以后就会立即执行,由于匿名函数中我们使用了var进行变量定义,因此匿名函数中的变量不会与主页面中的变量冲突,匿名函数执行结束以后内部的变量也会被销毁,不会占用内存。”</p><p>“另外如果你的页面中引入很多其他js文件,为了避免变量冲突,也需要在页面中使用上面的匿名函数来规避风险。”</p><hr/><p><i><b>想学H5的朋友可以关注老炉,您的关注是我持续更新《小白HTML5成长之路》的动力!</b></i></p>\n ', '0', '2018-03-13 17:35:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('9', '《小白HTML5成长之路53》入门级设计模式简单工厂模式', '\n “小白,元旦假期过的还好吧!” “还行吧!睡了三天,冥想了三天,脑子里把最近看到javascript知识重新整理了一遍,对js的认识比以前清晰多了。” 小白继续说:“只不过,...\n ', '\n <div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 566px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 79.16%;\"/>\n<div class=\"image-view\" data-width=\"715\" data-height=\"566\"><img src=\"//upload-images.jianshu.io/upload_images/8746995-2ad922ca9055b3e2.png\" data-original-width=\"715\" data-original-height=\"566\" data-original-format=\"image/png\" data-original-filesize=\"49959\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\"/>\n</div><p>“小白,元旦假期过的还好吧!”</p><p>“还行吧!睡了三天,冥想了三天,脑子里把最近看到javascript知识重新整理了一遍,对js的认识比以前清晰多了。”</p><p>小白继续说:“只不过,我有个事情不太明白,一个站点或者一个游戏那么多功能,肯定会写很多代码的。他们肯定不会像我现在这样在页面里面一行一行的往下写代码吧?”</p><p>老朱:“不错,小白,能提出这个问题说明你对js做了很深刻的思考。我在很早之前做开发的时候碰到过一个问题,你可以听听。有一次我们要实现一个手机预约购物的站点,这个站点有一个用户中心,在用户中心里面包含了获取用户信息、修改用户信息、用户邀请、积分推广等等功能。你猜我是怎么实现的?”</p><p>小白:“获取用户信息是一个类、修改用户信息是一个类、用户邀请是一个类、积分推广是一个类这么实现的吧!”</p><p>老朱:“恩,没错,刚开始确实是这么做的,可是随着站点功能的增多,我发现自己写的类就越来越多,经常都忘记自己是不是写过某个类。最痛苦的是测试修改bug的时候,那叫一个乱啊。从那之后我吸取教训,做项目的时候就开始刻意的使用一些特定的设计模式来实现功能,效率一下提高了好几倍。”</p><p>小白:“设计模式?上学的时候在c++课上听说过,不过我没好好学,基本忘光了。”</p><p>老朱:“没关系,设计模式就是一些编程的技巧。我个人感觉直接去学设计模式只能做到对某个模式有印象,只有做开发的时候碰到问题再拿对应的设计模式来解决之后,才能做到真正理解。所以我们讨论的设计模式你如果理解不了,也不必非要硬套。”</p><p>老朱继续说道:“今天我们先说一个入门级的模式:简单工厂模式。比如一个购物网站不同种类的商品处理的方法不同,那么我们可能会根据商品的种类不同,创建不同的商品处理类。这些类的结构基本都一样,只不过实现的方式不一样。”</p><div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 358px; max-height: 263px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 73.46000000000001%;\"/>\n<div class=\"image-view\" data-width=\"358\" data-height=\"263\"><img src=\"//upload-images.jianshu.io/upload_images/8746995-b64daa1ffedf8238.png\" data-original-width=\"358\" data-original-height=\"263\" data-original-format=\"image/png\" data-original-filesize=\"19123\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\"/>\n</div><p>“你看看上面的Itmes类,通过传入name参数,根据参数不同返回不同的实例。这样站点无论多少种商品,我们只需要实例化Items对象就可以了。”</p><p>小白说:“哦!这样确实能减轻不少工作量,传入clothes参数实例化的Items对象其实就是一个itemsClothes对象,原来js还能这么写啊。”</p><p>老朱:“恩,简单工厂模式虽然简单,却非常有用,你去练习练习吧!明天我们继续了解一些其他的设计模式。”</p><hr/><p><i><b>想学H5的朋友可以关注老炉,您的关注是我持续更新《小白HTML5成长之路》的动力!</b></i></p>\n ', '0', '2018-03-13 17:35:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('10', '全球程序员大调查:2017年最受欢迎的编程语言是什么?', '\n 这个世界有多少种编程语言你们知道么?我想没人说得清楚,GitHub 给出了答案。GitHub 上所有的开源项目包含了 316 种编程语言。不说不知道,一说吓一跳,要知道这世界...\n ', '\n <div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 640px; max-height: 355px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 55.47%;\"/>\n<div class=\"image-view\" data-width=\"640\" data-height=\"355\"><img src=\"//upload-images.jianshu.io/upload_images/10902189-d997679cc68948c1\" data-original-width=\"640\" data-original-height=\"355\" data-original-format=\"image/jpeg\" data-original-filesize=\"16313\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\"/>\n</div><p>这个世界有多少种编程语言你们知道么?我想没人说得清楚,GitHub</p><p> 给出了答案。GitHub 上所有的开源项目包含了 316 种编程语言。不说不知道,一说吓一跳,要知道这世界上只有 226</p><p>个国家和地区,编程语言的数量超出了世界上国家的数量,有时候就在想,那么多不为人知的编程语言都是什么人在用?</p><blockquote><p>分享之前我还是要推荐下我自己的前端学习群:437813258,不管你是小白还是大牛,小编我都挺欢迎,不定期分享干货,包括我自己整理的一份2017最新的前端资料和零基础入门教程,欢迎初学和进阶中的小伙伴。</p></blockquote><p>要问 2017年最受欢迎的编程语言是什么?同样 GitHub 也给出了答案。以下是 GitHub 根据过去提交的 PR 数量来排名的,虽然不完全准确,但是 PR 起码代表了项目的热度与欢迎度,还是值得可信的:</p><div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 600px; max-height: 641px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 106.83%;\"/>\n<div class=\"image-view\" data-width=\"600\" data-height=\"641\"><img src=\"//upload-images.jianshu.io/upload_images/10902189-75e901c2469b035b\" data-original-width=\"600\" data-original-height=\"641\" data-original-format=\"image/jpeg\" data-original-filesize=\"19670\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\"/>\n</div><p>可以看到排名第一的是 JavaScript 。我想有几方面的原因吧</p><div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 580px; max-height: 342px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 58.97%;\"/>\n<div class=\"image-view\" data-width=\"580\" data-height=\"342\"><img src=\"//upload-images.jianshu.io/upload_images/10902189-f545f4155b41cd67\" data-original-width=\"580\" data-original-height=\"342\" data-original-format=\"image/jpeg\" data-original-filesize=\"18447\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\"/>\n</div><p>一是本来 GitHub 上早期的一些开源项目都是 web 前端相关的,</p><p>二是随着移动端各种跨平台框架的需求,js 被予以重任,如 React Native、weex 等</p><p>三是</p><p> js 领域各种框架层出不穷,如 vue.js、angular.js、react.js 等,所以 JavaScript</p><p>排名第一并不是很意外。所以有对 web 前端感兴趣的同学,js 是必备技能,想往这方面发展依然热度不减,而事实上国内需求目前对有经验的 web</p><p>前端工程师确实很缺乏,很多时候钱多活少离家近都招不到人。</p><p>另外老牌语言 Java 依然能排名第二蛮意外的,我想这其中很大部分是因为 Android 的发展让 Java 焕发了第二春。</p><p>紧接着是</p><p> Python、Ruby、PHP,这三种都是属于动态语言,对于我们 Android 开发所用的 Java</p><p>静态语言是不一样的,之前有人问过我想学习一门除了 Java 之外的语言,如果实在感兴趣的话我就建议学习下 Ruby 或者 Python</p><p>,能从中了解到很多 Java 层面没接触过的知识。另外都说 PHP 是世界上最好的编程语言,这排名名不副实啊!</p><p>另外这份排名很有意思,元老级编程语言 C++、C 几乎每年都上榜,所以根本不用担心自己用的编程语言会过时,如果真那样的话 C++、C 那些程序员早都丢饭碗了。</p><p>最后在对各位刚刚入门的程序员提点建议。</p><p>一般来说前端工程师和后端工程师的比例是3:1,所以市场上需求量还是比较大的,是个不错的切入口。</p><p>前端工程师的职业目标应该是前端架构师和产品经理,由于前端跟交互打交道特别多,所以对产品的理解会比较深,但CTO一般来说都是由服务端工程师出生,因为服务端技术、架构可以说更为复杂。</p>\n ', '0', '2018-03-13 19:48:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('11', 'vue.js配合axios发送Ajax请求', '\n vue.js与ajax vue本身是不支持发送ajax请求,需要通过其他库来实现的(比如vue1.0版本官方推荐的vue-resource、vue2.0版本官方推荐的axio...\n ', '\n <div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 400px; max-height: 400px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 100.0%;\"/>\n<div class=\"image-view\" data-width=\"400\" data-height=\"400\"><img src=\"//upload-images.jianshu.io/upload_images/4858603-928fe259a32733f4.jpg\" data-original-width=\"400\" data-original-height=\"400\" data-original-format=\"image/jpeg\" data-original-filesize=\"8729\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">vue</div>\n</div>\n<h4>vue.js与ajax</h4>\n<blockquote>\n<p>vue本身是不支持发送ajax请求,需要通过其他库来实现的(比如vue1.0版本官方推荐的vue-resource、vue2.0版本官方推荐的axios),或者也可以使用jquery来发送ajax请求</p>\n</blockquote>\n<p>本文仅做一个自己的参考...使用axios发送ajax请求</p>\n<blockquote>\n<p>vue2.0版本已经不推荐vue-resurce了,官方推荐axios来发送,首先要先了解的是axios是一个基于Promise的HTTP请求客户端,用来发送请求。</p>\n</blockquote>\n<h6>关于Promise的知识,这里不再详细讲解啦。推荐可以去看下阮一峰老师的书《ECMAScript 6 入门》去进行了解。</h6>\n<h4>步骤</h4>\n<h6>1.安装axios,我们先去github,搜索axios</h6>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 610px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 87.27000000000001%;\"/>\n<div class=\"image-view\" data-width=\"1029\" data-height=\"898\"><img src=\"//upload-images.jianshu.io/upload_images/4858603-9882cf2228038546.png\" data-original-width=\"1029\" data-original-height=\"898\" data-original-format=\"image/png\" data-original-filesize=\"119115\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">image.png</div>\n</div>\n<p>官方文档下有非常详细的API,这里我们就通过直接引入的方式来使用。</p>\n<h3>通过get方法请求</h3>\n<p>get.html</p>\n<pre class=\"hljs xml\"><code class=\"xml\"><span class=\"hljs-meta\"><!DOCTYPE html></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">html</span> <span class=\"hljs-attr\">lang</span>=<span class=\"hljs-string\">\"en\"</span>></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">head</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">meta</span> <span class=\"hljs-attr\">charset</span>=<span class=\"hljs-string\">\"UTF-8\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"js/vue.min.js\"</span>></span><span class=\"undefined\"/><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"js/axios.min.js\"</span>></span><span class=\"undefined\"/><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">title</span>></span>发送get请求<span class=\"hljs-tag\"></<span class=\"hljs-name\">title</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span>></span><span class=\"javascript\">\n <span class=\"hljs-built_in\">window</span>.onload=<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\"/>)</span>{\n <span class=\"hljs-keyword\">new</span> Vue({\n <span class=\"hljs-attr\">el</span>:<span class=\"hljs-string\">\'#app\'</span>,\n <span class=\"hljs-attr\">data</span>:{\n <span class=\"hljs-attr\">users</span>:{\n <span class=\"hljs-attr\">name</span>:<span class=\"hljs-string\">\'\'</span>,\n <span class=\"hljs-attr\">age</span>:<span class=\"hljs-string\">\'\'</span>\n }\n },\n <span class=\"hljs-attr\">methods</span>:{\n <span class=\"hljs-comment\">//axios.get的发送参数有两种,两个ajax请求函数都可实现</span>\n sendGetByStr(){\n <span class=\"hljs-comment\">//1.get通过直接发字符串拼接</span>\n axios.get(<span class=\"hljs-string\">`get.php?name=<span class=\"hljs-subst\">${<span class=\"hljs-keyword\">this</span>.users.name}</span>&age=<span class=\"hljs-subst\">${<span class=\"hljs-keyword\">this</span>.users.name}</span>`</span>)\n .then(<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> (<span class=\"hljs-params\">response</span>) </span>{\n <span class=\"hljs-built_in\">console</span>.log(response.data);\n })\n .catch(<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> (<span class=\"hljs-params\">error</span>) </span>{\n <span class=\"hljs-built_in\">console</span>.log(error);\n });\n\n },\n sendGetByObj(){\n <span class=\"hljs-comment\">//2.get通过params选项</span>\n axios.get(<span class=\"hljs-string\">`get.php?`</span>,{\n <span class=\"hljs-attr\">params</span>:{\n <span class=\"hljs-attr\">name</span>:<span class=\"hljs-keyword\">this</span>.users.name,\n <span class=\"hljs-attr\">age</span>:<span class=\"hljs-keyword\">this</span>.users.age\n }\n })\n .then(<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> (<span class=\"hljs-params\">response</span>) </span>{\n <span class=\"hljs-built_in\">console</span>.log(response.data);\n })\n .catch(<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> (<span class=\"hljs-params\">error</span>) </span>{\n <span class=\"hljs-built_in\">console</span>.log(error);\n });\n\n }\n }\n });\n }\n\n \n </span><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">head</span>></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">body</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">id</span>=<span class=\"hljs-string\">\"app\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">input</span> <span class=\"hljs-attr\">type</span>=<span class=\"hljs-string\">\"text\"</span> <span class=\"hljs-attr\">:name</span>=<span class=\"hljs-string\">\"users.name\"</span> <span class=\"hljs-attr\">v-model</span>=<span class=\"hljs-string\">\"users.name\"</span> <span class=\"hljs-attr\">placeholder</span>=<span class=\"hljs-string\">\"姓名\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">input</span> <span class=\"hljs-attr\">type</span>=<span class=\"hljs-string\">\"text\"</span> <span class=\"hljs-attr\">:age</span>=<span class=\"hljs-string\">\"users.age\"</span> <span class=\"hljs-attr\">v-model</span>=<span class=\"hljs-string\">\"users.age\"</span> <span class=\"hljs-attr\">placeholder</span>=<span class=\"hljs-string\">\"年龄\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">button</span> @<span class=\"hljs-attr\">click</span>=<span class=\"hljs-string\">\"sendGetByStr\"</span>></span>发送get请求<span class=\"hljs-tag\"></<span class=\"hljs-name\">button</span>></span>\n <span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n \n<span class=\"hljs-tag\"></<span class=\"hljs-name\">body</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">html</span>></span>\n\n\n\n</code></pre>\n<p>界面效果如图,我就偷懒不写样式了...</p>\n<br/>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 466px; max-height: 139px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 29.830000000000002%;\"/>\n<div class=\"image-view\" data-width=\"466\" data-height=\"139\"><img src=\"//upload-images.jianshu.io/upload_images/4858603-14d43b06a6cb21ae.png\" data-original-width=\"466\" data-original-height=\"139\" data-original-format=\"image/png\" data-original-filesize=\"12091\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">image.png</div>\n</div>\n<p>写个最简单的php响应后输出 get.php</p>\n<pre class=\"hljs xml\"><code class=\"xml\"><span class=\"php\"><span class=\"hljs-meta\"><?php</span>\n $name=$_GET[<span class=\"hljs-string\">\"name\"</span>];\n $age=$_GET[<span class=\"hljs-string\">\"age\"</span>];\n <span class=\"hljs-keyword\">echo</span> <span class=\"hljs-string\">\"姓名:\"</span>.$name.<span class=\"hljs-string\">\",\"</span>.<span class=\"hljs-string\">\"年龄:\"</span>.$age;\n<span class=\"hljs-meta\">?></span></span>\n</code></pre>\n<h6>输入名字和年龄,就直接请求并输入数据了</h6>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 164px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 21.22%;\"/>\n<div class=\"image-view\" data-width=\"773\" data-height=\"164\"><img src=\"//upload-images.jianshu.io/upload_images/4858603-e116a4252171c829.png\" data-original-width=\"773\" data-original-height=\"164\" data-original-format=\"image/png\" data-original-filesize=\"23063\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">image.png</div>\n</div>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 378px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 36.38%;\"/>\n<div class=\"image-view\" data-width=\"1039\" data-height=\"378\"><img src=\"//upload-images.jianshu.io/upload_images/4858603-885b1703987f2104.png\" data-original-width=\"1039\" data-original-height=\"378\" data-original-format=\"image/png\" data-original-filesize=\"50294\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">image.png</div>\n</div>\n<h3>通过post请求</h3>\n<p>同样post.html</p>\n<pre class=\"hljs xml\"><code class=\"xml\"><span class=\"hljs-meta\"><!DOCTYPE html></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">html</span> <span class=\"hljs-attr\">lang</span>=<span class=\"hljs-string\">\"en\"</span>></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">head</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">meta</span> <span class=\"hljs-attr\">charset</span>=<span class=\"hljs-string\">\"UTF-8\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"js/vue.min.js\"</span>></span><span class=\"undefined\"/><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"js/axios.min.js\"</span>></span><span class=\"undefined\"/><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">title</span>></span>发送post请求<span class=\"hljs-tag\"></<span class=\"hljs-name\">title</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span>></span><span class=\"javascript\">\n <span class=\"hljs-built_in\">window</span>.onload=<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\"/>)</span>{\n <span class=\"hljs-keyword\">new</span> Vue({\n <span class=\"hljs-attr\">el</span>:<span class=\"hljs-string\">\'#app\'</span>,\n <span class=\"hljs-attr\">data</span>:{\n <span class=\"hljs-attr\">users</span>:{\n <span class=\"hljs-attr\">name</span>:<span class=\"hljs-string\">\'\'</span>,\n <span class=\"hljs-attr\">age</span>:<span class=\"hljs-string\">\'\'</span>\n }\n },\n <span class=\"hljs-attr\">methods</span>:{\n sendPsot(){\n axios.post(<span class=\"hljs-string\">\'post.php\'</span>, {\n <span class=\"hljs-attr\">name</span>: <span class=\"hljs-keyword\">this</span>.users.name,\n <span class=\"hljs-attr\">age</span>: <span class=\"hljs-keyword\">this</span>.users.age,\n })\n .then(<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> (<span class=\"hljs-params\">response</span>) </span>{\n <span class=\"hljs-built_in\">console</span>.log(response);\n })\n .catch(<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> (<span class=\"hljs-params\">error</span>) </span>{\n <span class=\"hljs-built_in\">console</span>.log(error);\n });\n }\n \n }\n });\n }\n\n \n </span><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">head</span>></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">body</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">id</span>=<span class=\"hljs-string\">\"app\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">input</span> <span class=\"hljs-attr\">type</span>=<span class=\"hljs-string\">\"text\"</span> <span class=\"hljs-attr\">:name</span>=<span class=\"hljs-string\">\"users.name\"</span> <span class=\"hljs-attr\">v-model</span>=<span class=\"hljs-string\">\"users.name\"</span> <span class=\"hljs-attr\">placeholder</span>=<span class=\"hljs-string\">\"姓名\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">input</span> <span class=\"hljs-attr\">type</span>=<span class=\"hljs-string\">\"text\"</span> <span class=\"hljs-attr\">:age</span>=<span class=\"hljs-string\">\"users.age\"</span> <span class=\"hljs-attr\">v-model</span>=<span class=\"hljs-string\">\"users.age\"</span> <span class=\"hljs-attr\">placeholder</span>=<span class=\"hljs-string\">\"年龄\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">button</span> @<span class=\"hljs-attr\">click</span>=<span class=\"hljs-string\">\"sendPsot\"</span>></span>发送get请求<span class=\"hljs-tag\"></<span class=\"hljs-name\">button</span>></span>\n <span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n \n<span class=\"hljs-tag\"></<span class=\"hljs-name\">body</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">html</span>></span>\n\n</code></pre>\n<p>同样post.php</p>\n<pre class=\"hljs xml\"><code class=\"xml\"><span class=\"php\"><span class=\"hljs-meta\"><?php</span>\n $name=$_POST[<span class=\"hljs-string\">\"name\"</span>];\n $age=$_POST[<span class=\"hljs-string\">\"age\"</span>];\n\n <span class=\"hljs-keyword\">echo</span> <span class=\"hljs-string\">\"姓名:\"</span>.$name.<span class=\"hljs-string\">\",\"</span>.<span class=\"hljs-string\">\"年龄:\"</span>.$age\n<span class=\"hljs-meta\">?></span></span>\n</code></pre>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 453px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 42.66%;\"/>\n<div class=\"image-view\" data-width=\"1062\" data-height=\"453\"><img src=\"//upload-images.jianshu.io/upload_images/4858603-f388328af1143a3d.png\" data-original-width=\"1062\" data-original-height=\"453\" data-original-format=\"image/png\" data-original-filesize=\"81171\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">image.png</div>\n</div>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 476px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 51.849999999999994%;\"/>\n<div class=\"image-view\" data-width=\"918\" data-height=\"476\"><img src=\"//upload-images.jianshu.io/upload_images/4858603-ff9b0def6c18cd70.png\" data-original-width=\"918\" data-original-height=\"476\" data-original-format=\"image/png\" data-original-filesize=\"60038\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">image.png</div>\n</div>\n<blockquote>\n<p>但是确实很怪异的行为就是,我明明按照官网的api写的,居然没有获取到name和age,通过查找资料得知,这种方式传递的数据是Request Payload。所以需要做些小处理,当然啦,个人观点,这也是官方文档还没更新解决的一些小问题吧</p>\n</blockquote>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 458px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 65.49000000000001%;\"/>\n<div class=\"image-view\" data-width=\"1220\" data-height=\"799\"><img src=\"//upload-images.jianshu.io/upload_images/4858603-682ecf83669c2861.png\" data-original-width=\"1220\" data-original-height=\"799\" data-original-format=\"image/png\" data-original-filesize=\"114001\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">image.png</div>\n</div>\n<p>还好,官方文档提供了一个参数可以对传递参数进行转换,具体如下<br/>\npost.html改</p>\n<pre class=\"hljs xml\"><code class=\"xml\"><span class=\"hljs-meta\"><!DOCTYPE html></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">html</span> <span class=\"hljs-attr\">lang</span>=<span class=\"hljs-string\">\"en\"</span>></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">head</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">meta</span> <span class=\"hljs-attr\">charset</span>=<span class=\"hljs-string\">\"UTF-8\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"js/vue.min.js\"</span>></span><span class=\"undefined\"/><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"js/axios.min.js\"</span>></span><span class=\"undefined\"/><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">title</span>></span>发送post请求<span class=\"hljs-tag\"></<span class=\"hljs-name\">title</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span>></span><span class=\"javascript\">\n <span class=\"hljs-built_in\">window</span>.onload=<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\"/>)</span>{\n <span class=\"hljs-keyword\">new</span> Vue({\n <span class=\"hljs-attr\">el</span>:<span class=\"hljs-string\">\'#app\'</span>,\n <span class=\"hljs-attr\">data</span>:{\n <span class=\"hljs-attr\">users</span>:{\n <span class=\"hljs-attr\">name</span>:<span class=\"hljs-string\">\'\'</span>,\n <span class=\"hljs-attr\">age</span>:<span class=\"hljs-string\">\'\'</span>\n }\n },\n <span class=\"hljs-attr\">methods</span>:{\n sendPsot(){\n axios.post(<span class=\"hljs-string\">\'post.php\'</span>,<span class=\"hljs-keyword\">this</span>.users,{\n <span class=\"hljs-comment\">//transformRequest就是用来处理转换的</span>\n transformRequest:[\n <span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\">data</span>)=></span>{\n <span class=\"hljs-keyword\">let</span> transObj=<span class=\"hljs-string\">\'\'</span>;\n <span class=\"hljs-keyword\">for</span>(<span class=\"hljs-keyword\">let</span> i <span class=\"hljs-keyword\">in</span> data){\n transObj+=i+<span class=\"hljs-string\">\'=\'</span>+data[i]+<span class=\"hljs-string\">\'&\'</span>;\n }\n <span class=\"hljs-keyword\">return</span> transObj;\n }\n ]\n })\n .then(<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> (<span class=\"hljs-params\">response</span>) </span>{\n <span class=\"hljs-built_in\">console</span>.log(response.data);\n })\n .catch(<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> (<span class=\"hljs-params\">error</span>) </span>{\n <span class=\"hljs-built_in\">console</span>.log(error);\n });\n }\n \n }\n });\n }\n\n \n </span><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">head</span>></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">body</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">id</span>=<span class=\"hljs-string\">\"app\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">input</span> <span class=\"hljs-attr\">type</span>=<span class=\"hljs-string\">\"text\"</span> <span class=\"hljs-attr\">:name</span>=<span class=\"hljs-string\">\"users.name\"</span> <span class=\"hljs-attr\">v-model</span>=<span class=\"hljs-string\">\"users.name\"</span> <span class=\"hljs-attr\">placeholder</span>=<span class=\"hljs-string\">\"姓名\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">input</span> <span class=\"hljs-attr\">type</span>=<span class=\"hljs-string\">\"text\"</span> <span class=\"hljs-attr\">:age</span>=<span class=\"hljs-string\">\"users.age\"</span> <span class=\"hljs-attr\">v-model</span>=<span class=\"hljs-string\">\"users.age\"</span> <span class=\"hljs-attr\">placeholder</span>=<span class=\"hljs-string\">\"年龄\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">button</span> @<span class=\"hljs-attr\">click</span>=<span class=\"hljs-string\">\"sendPsot\"</span>></span>发送get请求<span class=\"hljs-tag\"></<span class=\"hljs-name\">button</span>></span>\n <span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n \n<span class=\"hljs-tag\"></<span class=\"hljs-name\">body</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">html</span>></span>\n\n\n</code></pre>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 230px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 26.650000000000002%;\"/>\n<div class=\"image-view\" data-width=\"863\" data-height=\"230\"><img src=\"//upload-images.jianshu.io/upload_images/4858603-45f45f5b3438ac8a.png\" data-original-width=\"863\" data-original-height=\"230\" data-original-format=\"image/png\" data-original-filesize=\"26604\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">image.png</div>\n</div>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 370px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 52.92%;\"/>\n<div class=\"image-view\" data-width=\"1387\" data-height=\"734\"><img src=\"//upload-images.jianshu.io/upload_images/4858603-c45ab394f1b2dda5.png\" data-original-width=\"1387\" data-original-height=\"734\" data-original-format=\"image/png\" data-original-filesize=\"100381\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">image.png</div>\n</div>\n<p>上面都是在没有跨域的情况下进行ajax请求的,如果我们要跨域请求呢?<br/>\n跨域请求的话axios还没有解决方案,当时,可以通过vue-resource的jonsp来实现,vue-resource虽然在vue2.0版本官方不推荐,但是也是可以用的,具体看项目需求了</p>\n<p>使用vue-resource跨域请求的一个例子</p>\n<pre class=\"hljs xml\"><code class=\"xml\"><span class=\"hljs-meta\"><!DOCTYPE html></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">html</span> <span class=\"hljs-attr\">lang</span>=<span class=\"hljs-string\">\"en\"</span>></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">head</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">meta</span> <span class=\"hljs-attr\">charset</span>=<span class=\"hljs-string\">\"UTF-8\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"js/vue.min.js\"</span>></span><span class=\"undefined\"/><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"js/vue-resource.min.js\"</span>></span><span class=\"undefined\"/><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">title</span>></span>输入用户名获取github上的账户信息<span class=\"hljs-tag\"></<span class=\"hljs-name\">title</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span>></span><span class=\"javascript\">\n <span class=\"hljs-built_in\">window</span>.onload=<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\"/>)</span>{\n <span class=\"hljs-keyword\">new</span> Vue({\n <span class=\"hljs-attr\">el</span>:<span class=\"hljs-string\">\'#app\'</span>,\n <span class=\"hljs-attr\">data</span>:{\n <span class=\"hljs-attr\">id</span>:<span class=\"hljs-string\">\'\'</span>,\n <span class=\"hljs-attr\">userData</span>:<span class=\"hljs-string\">\'\'</span>\n },\n <span class=\"hljs-attr\">methods</span>:{\n getData(){\n <span class=\"hljs-keyword\">this</span>.$http.jsonp(<span class=\"hljs-string\">`https://api.github.com/users/<span class=\"hljs-subst\">${<span class=\"hljs-keyword\">this</span>.id}</span>`</span>).then(<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\">resp</span>)</span>{\n <span class=\"hljs-keyword\">this</span>.userData=resp.data.data;\n });\n }\n \n }\n });\n }\n\n \n </span><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">head</span>></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">body</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">id</span>=<span class=\"hljs-string\">\"app\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">input</span> <span class=\"hljs-attr\">type</span>=<span class=\"hljs-string\">\"text\"</span> <span class=\"hljs-attr\">v-model</span>=<span class=\"hljs-string\">\"id\"</span> <span class=\"hljs-attr\">placeholder</span>=<span class=\"hljs-string\">\"姓名\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">button</span> @<span class=\"hljs-attr\">click</span>=<span class=\"hljs-string\">\"getData\"</span>></span>获取github的账户信息<span class=\"hljs-tag\"></<span class=\"hljs-name\">button</span>></span>\n \n <span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">v-for</span>=<span class=\"hljs-string\">\"(v,k) in userData\"</span>></span>{{k}}:{{v}}<span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n <span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">body</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">html</span>></span>\n</code></pre>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 183px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 21.23%;\"/>\n<div class=\"image-view\" data-width=\"862\" data-height=\"183\"><img src=\"//upload-images.jianshu.io/upload_images/4858603-4232800d51c7c0a2.png\" data-original-width=\"862\" data-original-height=\"183\" data-original-format=\"image/png\" data-original-filesize=\"20415\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">image.png</div>\n</div>\n<p>典型的跨域请求例子输入姓名即可查询在github上面的信息。<br/>\n有需要的可以去<a href=\"https://link.jianshu.com?t=http%3A%2F%2Fzhengyepan.com%2F%3Fp%3D360%26preview%3Dtrue\" target=\"_blank\" rel=\"nofollow\">下载源码</a><br/>\n欢迎访问我的个人网站<a href=\"https://link.jianshu.com/?t=http%3A%2F%2Fwww.zhengyepan.com\" target=\"_blank\">zhengyepan.com</a><br/>\n欢迎讨论交流~</p>\n\n ', '0', '2018-03-13 22:42:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('12', '程序员用javascript实力打造流星雨特效', '\n 知识点:canvas高级绘图标签API运用,数组方法,js逻辑思维,代码性能优化等。', '\n <div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 538px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 57.42%;\"/>\n<div class=\"image-view\" data-width=\"937\" data-height=\"538\"><img src=\"//upload-images.jianshu.io/upload_images/4809664-dc69816d9029e6e5\" data-original-width=\"937\" data-original-height=\"538\" data-original-format=\"image/gif\" data-original-filesize=\"596522\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">web前端学习群,189394454,有视频、源码、学习方法等大量干货分享</div>\n</div><br/>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 640px; max-height: 512px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 80.0%;\"/>\n<div class=\"image-view\" data-width=\"640\" data-height=\"512\"><img src=\"//upload-images.jianshu.io/upload_images/4809664-597b41420286e371\" data-original-width=\"640\" data-original-height=\"512\" data-original-format=\"image/jpeg\" data-original-filesize=\"46594\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">关注公众号→‘学习web前端’开启你的web前端学习之路</div>\n</div><br/>\n<p>知识点:canvas高级绘图标签API运用,数组方法,js逻辑思维,代码性能优化等。<br/>\n', '0', '2018-03-08 14:50:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('13', 'Webpack入门教程', '\n 转自Kindem的博客 什么是Webpack Webpack是一个模块打包器,它的主要目标是将JavaScript文件打包在一起,打包后的文件用于在浏览器中使用。 ----W...\n ', '\n <blockquote>\n<p>转自<a href=\"https://link.jianshu.com?t=http%3A%2F%2Fwww.kindemh.cn\" target=\"_blank\" rel=\"nofollow\">Kindem的博客</a></p>\n</blockquote>\n<h1>什么是Webpack</h1>\n<blockquote>\n<p>Webpack是一个模块打包器,它的主要目标是将JavaScript文件打包在一起,打包后的文件用于在浏览器中使用。 ----Webpack中文文档</p>\n</blockquote>\n<p>说白了,它最大的用处就是分析一个网页的各种依赖,并且自动化地将这些依赖打包在一起并且压缩,供网页使用。当然它的功能不止如此,比如依赖loader,它还可以将JavaScript ES6(很多老浏览器不一定支持)转换成支持更加多浏览器的老版本JavaScript。</p>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 649px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 40.11%;\"/>\n<div class=\"image-view\" data-width=\"1618\" data-height=\"649\"><img src=\"//upload-images.jianshu.io/upload_images/6840624-27c78d75f2cd8a40..jpg\" data-original-width=\"1618\" data-original-height=\"649\" data-original-format=\"image/jpeg\" data-original-filesize=\"39111\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">Webpack示意图</div>\n</div>\n<p>总之,它在前端的模块化开发中占有重要的作用,如果想让自己的项目变得更加整洁,开发更加有效率,Webpack有必要一学。</p>\n<h1>在开始之前</h1>\n<p>在介绍Webpack之前,很有必要先介绍一下Node.js和npm,如果你已经对着两者有着深刻的了解,可以直接跳过,看下一节,如果你之前从未听说过Node.js,可以仔细看看这一节对这两者的介绍,Webpack的使用一定程度上依赖着这两者。</p>\n<blockquote>\n<p>Node.js是一个基于Chrome V8引擎驱动的JavaScript运行时。Node.js使用高效、轻量级的事件驱动、非阻塞I/O模型。它的包生态系统,npm,是目前世界上最大的开源库生态系统。 ----Node.js官网</p>\n</blockquote>\n<p>看了是不是感觉Node.js官网的介绍,感觉这玩意十分高深莫测,说实话我第一次看到的时候也没有太看懂。接下来用人话给大家翻译一下,众所周知,JavaScript是Web开发中不可或缺的语言,它可以为网页添加许多动态效果,也能为网页添加更多可能性,如果连JavaScript都不知道,请先学习一下Web开发御三家(html, css, js),但是JavaScript的硬伤是只能在浏览器上运行,脱离浏览器,就无法运行。而Node.js就解决了这么一个问题,它将Chrome V8的JavaScript引擎提取出来,使得JavaScript能够脱离浏览器而运行,这样就为JavaScript提供了无限的可能性。至于它的更多,现在先不用了解那么深,对于Node.js,你现在只需要了解到这里就行了。</p>\n<p>而npm,则是Node.js自带的包管理系统,npm的作用跟python的pip很像,你只需要敲一行命令,就能获取到世界上任何一个角落的人发布在其上的源码并且使用。显然,JavaScript开发模块化,npm也在其中做出了很大贡献。</p>\n<p>接下来,先安装Node.js吧,打开Node.js的官网<a href=\"https://link.jianshu.com?t=https%3A%2F%2Fnodejs.org%2Fen%2F\" target=\"_blank\" rel=\"nofollow\">Node.js</a><br/>\n</p><div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 493px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 70.54%;\"/>\n<div class=\"image-view\" data-width=\"1188\" data-height=\"838\"><img src=\"//upload-images.jianshu.io/upload_images/6840624-9ea36c2812bfdd1c..jpg\" data-original-width=\"1188\" data-original-height=\"838\" data-original-format=\"image/jpeg\" data-original-filesize=\"76879\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">Node.js官网</div>\n</div><p/>\n<p>简单粗暴的页面,你可以选择稳定版LTS和最新版Current下载,自行安装即可。当安装完成后,你可以在命令行输入</p>\n<pre class=\"hljs undefined\"><code>node -v\n</code></pre>\n<p>如果正确显示了Node.js的版本号,就说明你的Node.js成功安装了,当然,npm是Node.js的一部分,Node.js安装成功的同时,npm也就可以使用了。</p>\n<h1>开始学习Webpack</h1>\n<p>如果你还没有安装Node.js,请移步上一节并认真安装好Node.js,如果你已经安装了Node.js,就可以开始学习Webpack了。</p>\n<p>首先,先建立一个文件夹,用来作为学习Webpack的项目文件夹,文件夹名随意,接着在项目使用命令行中初始化npm</p>\n<pre class=\"hljs undefined\"><code>npm init\n</code></pre>\n<p>运行该命令会询问你你这一个项目的基本信息,比如项目名、作者、描述、Git仓库等等,这是因为init指令实际上是将项目文件夹变成一个npm包,你甚至在日后可以将这个npm包发布给他人使用,当然,我们现在只是学习,一路回车就行,如果你实在比较较真,也没关系,这些东西日后可以在配置文件中修改。如果你不想敲回车,也可以直接使用</p>\n<pre class=\"hljs undefined\"><code>npm init -y\n</code></pre>\n<p>当npm初始化完成之后,项目下会自动生成一个package.json文件,上面详细说明了你这一个npm包中的信息,我们暂时可以不用关注这些内容。接下来在项目中安装Webpack。</p>\n<pre class=\"hljs undefined\"><code>npm install --save-dev webpack\nnpm install --save-dev webpack-cli\n</code></pre>\n<p>这两行命令会为你的项目安装webpack和webpack-cli包,前者是webpack的核心库,后者是分离出来的webpack命令行功能,我们需要使用webpack-cli来进行项目的打包等操作。</p>\n<h1>不使用Webpack时,项目的问题</h1>\n<p>我们先看一下不使用webpack进行构建时,项目的缺陷。</p>\n<p>先在项目文件夹中创建几个目录和文件,项目结构如下图所示,前面带加号的是需要你自己创建的文件和目录:</p>\n<pre class=\"hljs ruby\"><code class=\"ruby\"> webpack-learning\n <span class=\"hljs-params\">|- package.json\n+ |</span>- index.html\n+ <span class=\"hljs-params\">|- /src\n+ |</span>- index.js\n</code></pre>\n<p>src/index.js</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">component</span>(<span class=\"hljs-params\"/>) </span>{\n <span class=\"hljs-keyword\">var</span> element = <span class=\"hljs-built_in\">document</span>.createElement(<span class=\"hljs-string\">\'div\'</span>);\n\n <span class=\"hljs-comment\">// Lodash(目前通过一个 script 脚本引入)对于执行这一行是必需的</span>\n element.innerHTML = _.join([<span class=\"hljs-string\">\'Hello\'</span>, <span class=\"hljs-string\">\'webpack\'</span>], <span class=\"hljs-string\">\' \'</span>);\n\n <span class=\"hljs-keyword\">return</span> element;\n}\n\n<span class=\"hljs-built_in\">document</span>.body.appendChild(component());\n</code></pre>\n<p>index.html</p>\n<pre class=\"hljs xml\"><code class=\"xml\"><span class=\"hljs-meta\"><!doctype html></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">html</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">head</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">title</span>></span>Getting Started<span class=\"hljs-tag\"></<span class=\"hljs-name\">title</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"https://unpkg.com/[email protected]\"</span>></span><span class=\"undefined\"/><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n <span class=\"hljs-tag\"></<span class=\"hljs-name\">head</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">body</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"./src/index.js\"</span>></span><span class=\"undefined\"/><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n <span class=\"hljs-tag\"></<span class=\"hljs-name\">body</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">html</span>></span>\n</code></pre>\n<p>这里的Lodash是一个JavaScript库,这里引用的意味就是给大家展示一下我们平时使用第三方JavaScript库的做法,这样的做法会产生很多问题,因为通过index.html的联系,很明显,index.js对第三方库lodash产生了隐形依赖,之所以说是隐形依赖,是因为在lodash被引用之前,index.js中的双下划线变量(lodash提供的一个变量)还是未知的,只有在lodash被引用之后,这个变量才能发挥作用,显而易见,这样做的很危险的,这样会产生很多问题:</p>\n<ul>\n<li>无法立即体现,脚本的执行依赖于外部扩展库(external library)。</li>\n<li>如果依赖不存在,或者引入顺序错误,应用程序将无法正常运行。</li>\n<li>如果依赖被引入但是并没有使用,浏览器将被迫下载无用代码。</li>\n</ul>\n<p>Webpack的价值就这样体现出来了,当你的项目中引用的JavaScript文件,html页面越来越多,就会出现一些不可避免的依赖问题,而我们通过Webpack可以解决这一问题,对于一个html页面,我们可以该页面依赖的所有JavaScript文件打包在一起,构成一个JavaScript文件,这样,html页面只需要引用这一个JavaScript文件即可,上面说的问题,就可以完全被避免。当然自己打包也是可以的,不过通过Webpack这一神器,就没那么麻烦了,你只要告诉它,你需要把哪些文件打包,输出到哪里,它就可以自动分析所有JavaScript的依赖关系,然后帮你打包成一个文件。</p>\n<p>接下来,我们就来打包一次试试。</p>\n<h1>使用Webpack打包</h1>\n<p>在打包之前,我们还需要做一点小小的调整----将开发环境和生产环境分开:</p>\n<pre class=\"hljs java\"><code class=\"java\"> webpack-learning\n |- <span class=\"hljs-keyword\">package</span>.json\n+ |- /dist\n+ |- index.html\n- |- index.html\n |- /src\n |- index.js\n</code></pre>\n<p>这样一来,src文件夹里面,放的就是我们开发的环境,所有的代码编写都在这里进行,而相对稳定的html文件就直接放入dist文件夹中,作为生产环境的文件,这样有一个好处,每一次更新src之后,只需要把src中的东西重新打包,然后供生产环境中的html文件使用,就行了,而html文件本身,几乎不用被更改。</p>\n<p>因为我们用到了lodash包,所以需要在npm中安装lodash依赖:</p>\n<pre class=\"hljs undefined\"><code>npm install --save lodash\n</code></pre>\n<p>细心的朋友可能注意到,这里使用的是--save而不是--save-dev,两者的区别是,--save是生产环境的依赖,也就是供给用户使用的依赖,而--save-dev是开发环境的依赖,比如Webpack,在代码完成并且打包之后,就不需要再使用到它了,显然用户是无需接触到Webpack的,所以这里Webpack属于开发环境的依赖。</p>\n<p>添加lodash依赖之后,我们就可以在js文件中导入并且使用了:</p>\n<p>src/index.js</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\">+ <span class=\"hljs-keyword\">import</span> _ <span class=\"hljs-keyword\">from</span> <span class=\"hljs-string\">\'lodash\'</span>;\n+\n <span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span> <span class=\"hljs-title\">component</span>(<span class=\"hljs-params\"/>) </span>{\n <span class=\"hljs-keyword\">var</span> element = <span class=\"hljs-built_in\">document</span>.createElement(<span class=\"hljs-string\">\'div\'</span>);\n\n- <span class=\"hljs-comment\">// Lodash, currently included via a script, is required for this line to work</span>\n+ <span class=\"hljs-comment\">// Lodash, now imported by this script</span>\n element.innerHTML = _.join([<span class=\"hljs-string\">\'Hello\'</span>, <span class=\"hljs-string\">\'webpack\'</span>], <span class=\"hljs-string\">\' \'</span>);\n\n <span class=\"hljs-keyword\">return</span> element;\n }\n\n <span class=\"hljs-built_in\">document</span>.body.appendChild(component());\n</code></pre>\n<p>因为接下来我们要使用Webpack打包所有的js,这样的话,我们就不需要再自己在html引入JavaScript库了,而只需要引入打包之后的文件就行了,我们先约定以后打包的文件名叫做bundle.js,那么接下来,修改html文件:</p>\n<p>dist/index.html</p>\n<pre class=\"hljs xml\"><code class=\"xml\"> <span class=\"hljs-meta\"><!doctype html></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">html</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">head</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">title</span>></span>Getting Started<span class=\"hljs-tag\"></<span class=\"hljs-name\">title</span>></span>\n- <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"https://unpkg.com/[email protected]\"</span>></span><span class=\"undefined\"/><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n <span class=\"hljs-tag\"></<span class=\"hljs-name\">head</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">body</span>></span>\n- <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"./src/index.js\"</span>></span><span class=\"undefined\"/><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n+ <span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"bundle.js\"</span>></span><span class=\"undefined\"/><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span>\n <span class=\"hljs-tag\"></<span class=\"hljs-name\">body</span>></span>\n <span class=\"hljs-tag\"></<span class=\"hljs-name\">html</span>></span>\n</code></pre>\n<p>这样的话,我们就可以开始打包了。</p>\n<p>在命令行输入</p>\n<pre class=\"hljs undefined\"><code>webpack-cli src/index.js --output dist/bundle.js\n</code></pre>\n<p>如果不行的话,尝试</p>\n<pre class=\"hljs cpp\"><code class=\"cpp\"><span class=\"hljs-comment\">// linux</span>\nnode_modules/.bin/webpack-cli src/index.js --output dist/bundle.js\n<span class=\"hljs-comment\">// windows</span>\nnode_modules\\.bin\\webpack-cli src/index.js --output dist/bundle.js\n</code></pre>\n<p>这一行的意思是执行Webpack命令行程序,将src/index.js作为入口文件,自动分析index.js的依赖,并且将所有依赖和index.js本身一起打包成一个文件,输出到dist/bundle.js,执行这一行,可以看到Webpack打包成功的输出信息:</p>\n<pre class=\"hljs ruby\"><code class=\"ruby\"><span class=\"hljs-symbol\">Hash:</span> <span class=\"hljs-number\">61</span>bf2519e9ef5fa0eb5e\n<span class=\"hljs-symbol\">Version:</span> webpack <span class=\"hljs-number\">4.1</span>.<span class=\"hljs-number\">0</span>\n<span class=\"hljs-symbol\">Time:</span> <span class=\"hljs-number\">4080</span>ms\nBuilt <span class=\"hljs-symbol\">at:</span> <span class=\"hljs-number\">2018</span>-<span class=\"hljs-number\">3</span>-<span class=\"hljs-number\">7</span> <span class=\"hljs-number\">16</span><span class=\"hljs-symbol\">:</span><span class=\"hljs-number\">58</span><span class=\"hljs-symbol\">:</span><span class=\"hljs-number\">36</span>\n Asset Size Chunks Chunk Names\nbundle.js <span class=\"hljs-number\">69.6</span> KiB <span class=\"hljs-number\">0</span> [emitted] main\nEntrypoint main = bundle.js\n [<span class=\"hljs-number\">1</span>] (webpack)/buildin/<span class=\"hljs-class\"><span class=\"hljs-keyword\">module</span>.<span class=\"hljs-title\">js</span> 519 <span class=\"hljs-title\">bytes</span> {0} [<span class=\"hljs-title\">built</span>]</span>\n [<span class=\"hljs-number\">2</span>] (webpack)/buildin/global.js <span class=\"hljs-number\">509</span> bytes {<span class=\"hljs-number\">0</span>} [built]\n [<span class=\"hljs-number\">3</span>] ./src/index.js <span class=\"hljs-number\">231</span> bytes {<span class=\"hljs-number\">0</span>} [built]\n + <span class=\"hljs-number\">1</span> hidden <span class=\"hljs-class\"><span class=\"hljs-keyword\">module</span></span>\n</code></pre>\n<p>打包成功并且输出之后,你就可以打开html文件看看结果了:</p>\n<br/>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 458px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 57.9%;\"/>\n<div class=\"image-view\" data-width=\"791\" data-height=\"458\"><img src=\"//upload-images.jianshu.io/upload_images/6840624-ef3b3fc16169ed6f..jpg\" data-original-width=\"791\" data-original-height=\"458\" data-original-format=\"image/jpeg\" data-original-filesize=\"14361\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">html运行结果</div>\n</div>\n<p>可见打包之后的JavaScript能够成功运行,并且解决了之前说的几个问题,这就是Webpack的主要功能。</p>\n<p>但是你可能会问,每次都要自己输入巴拉巴拉一大串命令,那也太麻烦了吧,Webpack显然想到了这一点,它是支持配置文件的,你只需要在项目根目录下新建一个配置文件webpack.config.js,并且按照<a href=\"https://link.jianshu.com?t=https%3A%2F%2Fdoc.webpack-china.org%2Fconcepts%2F\" target=\"_blank\" rel=\"nofollow\">Webpack中文文档</a>给出的语法进行编写就行了。下面给出一个配置文件的例子:</p>\n<p>webpack.config.js</p>\n<pre class=\"hljs java\"><code class=\"java\"><span class=\"hljs-keyword\">const</span> path = require(<span class=\"hljs-string\">\'path\'</span>);\n\n<span class=\"hljs-keyword\">module</span>.<span class=\"hljs-keyword\">exports</span> = {\n entry: <span class=\"hljs-string\">\'./src/index.js\'</span>,\n output: {\n filename: <span class=\"hljs-string\">\'bundle.js\'</span>,\n path: path.resolve(__dirname, <span class=\"hljs-string\">\'dist\'</span>)\n }\n};\n</code></pre>\n<p>完成配置文件之后,你需要打包时,就不需要再自己输入入口和输出了,直接这样就行了</p>\n<pre class=\"hljs cpp\"><code class=\"cpp\">webpack-cli\n<span class=\"hljs-comment\">// 如果不行尝试</span>\n<span class=\"hljs-comment\">// linux</span>\nnode_modules/.bin/webpack-cli\n<span class=\"hljs-comment\">// windows</span>\nnode_modules\\.bin\\webpack-cli\n</code></pre>\n<h1>NPM脚本</h1>\n<p>有了配置文件你可以还不满足,我既然有npm,为什么不能直接让npm帮我运行呢,答案是可以的,npm支持用户自定义脚本,用户可以在npm的配置文件中添加自己的脚本内容,然后使用下面给出的指令来运行用户的脚本</p>\n<pre class=\"hljs undefined\"><code>npm run 脚本名\n</code></pre>\n<p>这样的话,我们不是可以自己定义一个build脚本,让它完成Webpack打包的任务呢。</p>\n<p>package.json</p>\n<pre class=\"hljs bash\"><code class=\"bash\">{\n ...\n <span class=\"hljs-string\">\"scripts\"</span>: {\n <span class=\"hljs-string\">\"build\"</span>: <span class=\"hljs-string\">\"webpack-cli\"</span>\n },\n ...\n}\n</code></pre>\n<p>这样一来,只要</p>\n<pre class=\"hljs undefined\"><code>npm run build\n</code></pre>\n<p>世界我有,打包全自动!</p>\n<h1>关于Webpack的更多</h1>\n<p>Webpack的功能当然还不止这些,这里只介绍Webpack的基本功能打包,当你阅读完这篇文章,对Webpack是什么,怎么用也知道个ABCD了,如果想了解更多,可以关注我,我会给大家继续更新一下Web前端的知识,当然也可以直接上<a href=\"https://link.jianshu.com?t=https%3A%2F%2Fdoc.webpack-china.org%2Fconcepts%2F\" target=\"_blank\" rel=\"nofollow\">Webpack中文文档</a>上查更多的东西,把自己的项目变得更加自动化,让开发更加有效率。</p>\n\n ', '0', '2018-03-07 19:04:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('14', 'Canvas制作旋转的太极', '\n 前言 好久没动canvas了,今下午突然想回顾一下,就写了个旋转的太极,哈哈,蛮好玩的,在这里就将自己写的过程展示出来,旋转使用的css实现的,没有用canvas自己的,...\n ', '\n <blockquote>\n<p>前言</p>\n</blockquote>\n<p> 好久没动canvas了,今下午突然想回顾一下,就写了个旋转的太极,哈哈,蛮好玩的,在这里就将自己写的过程展示出来,旋转使用的css实现的,没有用canvas自己的,希望大佬们不要吐槽。</p>\n<p><code>css</code></p>\n<pre class=\"hljs css\"><code class=\"css\"><span class=\"hljs-selector-tag\">body</span>{\n <span class=\"hljs-attribute\">background</span>: <span class=\"hljs-number\">#ddd</span>;\n}\n<span class=\"hljs-selector-id\">#canvas</span>{\n <span class=\"hljs-attribute\">position</span>: absolute;\n <span class=\"hljs-attribute\">left</span>: <span class=\"hljs-number\">40%</span>;\n <span class=\"hljs-attribute\">top</span>: <span class=\"hljs-number\">30%</span>;\n <span class=\"hljs-attribute\">-webkit-transform</span>: <span class=\"hljs-built_in\">translate</span>(-50%,-50%);\n <span class=\"hljs-attribute\">-moz-transform</span>: <span class=\"hljs-built_in\">translate</span>(-50%,-50%);\n <span class=\"hljs-attribute\">-ms-transform</span>: <span class=\"hljs-built_in\">translate</span>(-50%,-50%);\n <span class=\"hljs-attribute\">-o-transform</span>: <span class=\"hljs-built_in\">translate</span>(-50%,-50%);\n <span class=\"hljs-attribute\">transform</span>: <span class=\"hljs-built_in\">translate</span>(-50%,-50%);\n <span class=\"hljs-attribute\">-webkit-animation</span>: testAnimate <span class=\"hljs-number\">3s</span> linear infinite;\n <span class=\"hljs-attribute\">-o-animation</span>: testAnimate <span class=\"hljs-number\">3s</span> linear infinite;\n <span class=\"hljs-attribute\">animation</span>: testAnimate <span class=\"hljs-number\">3s</span> linear infinite;\n}\n@<span class=\"hljs-keyword\">keyframes</span> testAnimate {\n <span class=\"hljs-selector-tag\">from</span> {\n <span class=\"hljs-attribute\">-webkit-transform</span>: <span class=\"hljs-built_in\">rotate</span>(0);\n <span class=\"hljs-attribute\">-moz-transform</span>: <span class=\"hljs-built_in\">rotate</span>(0);\n <span class=\"hljs-attribute\">-ms-transform</span>: <span class=\"hljs-built_in\">rotate</span>(0);\n <span class=\"hljs-attribute\">-o-transform</span>: <span class=\"hljs-built_in\">rotate</span>(0);\n <span class=\"hljs-attribute\">transform</span>: <span class=\"hljs-built_in\">rotate</span>(0);\n }\n <span class=\"hljs-selector-tag\">to</span> {\n <span class=\"hljs-attribute\">-webkit-transform</span>: <span class=\"hljs-built_in\">rotate</span>(360deg);\n <span class=\"hljs-attribute\">-moz-transform</span>: <span class=\"hljs-built_in\">rotate</span>(360deg);\n <span class=\"hljs-attribute\">-ms-transform</span>: <span class=\"hljs-built_in\">rotate</span>(360deg);\n <span class=\"hljs-attribute\">-o-transform</span>: <span class=\"hljs-built_in\">rotate</span>(360deg);\n <span class=\"hljs-attribute\">transform</span>: <span class=\"hljs-built_in\">rotate</span>(360deg);\n }\n}\n</code></pre>\n<p><code>html</code></p>\n<pre class=\"hljs xml\"><code class=\"xml\"><span class=\"hljs-tag\"><<span class=\"hljs-name\">body</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">canvas</span> <span class=\"hljs-attr\">id</span>=<span class=\"hljs-string\">\"canvas\"</span> <span class=\"hljs-attr\">width</span>=<span class=\"hljs-string\">\"500\"</span> <span class=\"hljs-attr\">height</span>=<span class=\"hljs-string\">\"500\"</span>></span><span class=\"hljs-tag\"></<span class=\"hljs-name\">canvas</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">body</span>></span>\n</code></pre>\n<p><code>js</code></p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">let</span> ctx = <span class=\"hljs-built_in\">document</span>\n .getElementById(<span class=\"hljs-string\">\"canvas\"</span>)\n .getContext(<span class=\"hljs-string\">\"2d\"</span>);\n<span class=\"hljs-comment\">// left-black-big</span>\nctx.beginPath();\nctx.fillStyle = <span class=\"hljs-string\">\"#000\"</span>;\nctx.arc(<span class=\"hljs-number\">250</span>,<span class=\"hljs-number\">250</span>,<span class=\"hljs-number\">200</span>,<span class=\"hljs-built_in\">Math</span>.PI/<span class=\"hljs-number\">2</span>,<span class=\"hljs-built_in\">Math</span>.PI*<span class=\"hljs-number\">1.5</span>,<span class=\"hljs-literal\">false</span>);\nctx.closePath();\nctx.fill();\n<span class=\"hljs-comment\">// right-white-big</span>\nctx.beginPath();\nctx.fillStyle = <span class=\"hljs-string\">\"#fff\"</span>;\nctx.arc(<span class=\"hljs-number\">250</span>,<span class=\"hljs-number\">250</span>,<span class=\"hljs-number\">200</span>,<span class=\"hljs-built_in\">Math</span>.PI/<span class=\"hljs-number\">2</span>,<span class=\"hljs-built_in\">Math</span>.PI*<span class=\"hljs-number\">1.5</span>,<span class=\"hljs-literal\">true</span>);\nctx.closePath();\nctx.fill();\n<span class=\"hljs-comment\">// top-black-middle</span>\nctx.beginPath();\nctx.fillStyle = <span class=\"hljs-string\">\"#000\"</span>;\nctx.arc(<span class=\"hljs-number\">250</span>,<span class=\"hljs-number\">150</span>,<span class=\"hljs-number\">100</span>,<span class=\"hljs-built_in\">Math</span>.PI/<span class=\"hljs-number\">2</span>,<span class=\"hljs-built_in\">Math</span>.PI*<span class=\"hljs-number\">1.5</span>,<span class=\"hljs-literal\">true</span>);\nctx.closePath();\nctx.fill();\n<span class=\"hljs-comment\">// bottom-white-middle</span>\nctx.beginPath();\nctx.fillStyle = <span class=\"hljs-string\">\"#fff\"</span>;\nctx.arc(<span class=\"hljs-number\">250</span>,<span class=\"hljs-number\">350</span>,<span class=\"hljs-number\">100</span>,<span class=\"hljs-built_in\">Math</span>.PI/<span class=\"hljs-number\">2</span>,<span class=\"hljs-built_in\">Math</span>.PI*<span class=\"hljs-number\">1.5</span>,<span class=\"hljs-literal\">false</span>);\nctx.closePath();\nctx.fill();\n<span class=\"hljs-comment\">// top-white-small</span>\nctx.beginPath();\nctx.fillStyle = <span class=\"hljs-string\">\"#fff\"</span>;\nctx.arc(<span class=\"hljs-number\">250</span>,<span class=\"hljs-number\">150</span>,<span class=\"hljs-number\">25</span>,<span class=\"hljs-number\">0</span>,<span class=\"hljs-built_in\">Math</span>.PI*<span class=\"hljs-number\">2</span>);\nctx.closePath();\nctx.fill();\n<span class=\"hljs-comment\">// bottom-black-small</span>\nctx.beginPath();\nctx.fillStyle = <span class=\"hljs-string\">\"#000\"</span>;\nctx.arc(<span class=\"hljs-number\">250</span>,<span class=\"hljs-number\">350</span>,<span class=\"hljs-number\">25</span>,<span class=\"hljs-number\">0</span>,<span class=\"hljs-built_in\">Math</span>.PI*<span class=\"hljs-number\">2</span>);\nctx.closePath();\nctx.fill();\n</code></pre>\n<p><code>效果</code><br/>\n</p><div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 397px; max-height: 390px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 98.24000000000001%;\"/>\n<div class=\"image-view\" data-width=\"397\" data-height=\"390\"><img src=\"//upload-images.jianshu.io/upload_images/8919399-0cd5ecae042c8885.gif\" data-original-width=\"397\" data-original-height=\"390\" data-original-format=\"image/gif\" data-original-filesize=\"790546\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">效果图</div>\n</div><p/>\n<blockquote>\n<p>后序</p>\n</blockquote>\n<p>如果大家希望后续可以出一些canvas教程的话,可以评论区告诉我,我会找时间写的。谢谢大家~</p>\n\n ', '0', '2018-03-09 08:01:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('15', '有趣的 setTimeout', '\n 看到这三行代码,也许你会不耐烦道:又要讲闭包?要吐了好么?别急,让我们先来思考一下,这段代码在浏览器中的执行结果是什么? 甲:顺序打印0到9? 乙:这题我见过,打印...\n ', '\n <pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">for</span>(<span class=\"hljs-keyword\">var</span> j=<span class=\"hljs-number\">0</span>;j<<span class=\"hljs-number\">10</span>;j++){\n setTimeout(<span class=\"hljs-function\"><span class=\"hljs-keyword\">function</span>(<span class=\"hljs-params\"/>)</span>{\n <span class=\"hljs-built_in\">console</span>.log(j)\n },<span class=\"hljs-number\">5000</span>)\n}\n</code></pre>\n<p> 看到这三行代码,也许你会不耐烦道:又要讲闭包?要吐了好么?别急,让我们先来思考一下,这段代码在浏览器中的执行结果是什么?</p>\n<p> 甲:顺序打印0到9?<br/>\n 乙:这题我见过,打印十个10!</p>\n<p> 执行结果显示,浏览器打印出了十个10,按下回车到打印之前其实间隔了5秒左右,貌似乙胜出了。但如果你足够细心,你会发现几个问题:</p>\n<p> 为什么会循环打印十个10而不是0到9?</p>\n<p>从结果来看,for循环执行完跳出之后,才开始执行setTimeout(所以j才等于10),为什么不是每次迭代都执行一次setTimeout呢?</p>\n<p> 如果上述三个问题你都能回答上来,恭喜你,你已经开始掌握了JavaScript深层次的知识,如果不能,那就乖乖往下看吧!</p>\n<p> 为什么会循环打印十个10</p>\n<p> 许多人习惯用第二个问题中的执行结果来回答这个问题:“for循环执行完跳出之后,才开始执行setTimeout,所以才打印了十个10”。这样的答案,只能说是既应付了自己,又应付了别人。其实,要解答第一个问题,首先要解答的,就是第二个问题。</p>\n<h5>为什么不是每次迭代都执行一次setTimeout</h5>\n<p> 大家都知道,JavaScript在ES6出现以前,是没有块状作用域的,这就意味着, 在for循环中用var定义的变量j,其实是属于全局的,即在全局范围内都可以被访问到,既然如此,那其实整个全局作用域中就只有一个j,每次for循环都是在更新这个j。那么现在关键的问题在于,为什么整个for循环会先于setTimeout执行,而不是我们正常理解的,一次迭代执行一次。<br/>\n 这就涉及到了JavaScript的核心特性:<strong><em>单线程</em></strong>。<br/>\n JavaScript设计的初衷,是浏览器用来与用户进行交互和DOM操作的。这就决定了它必须是单线程的,设想JavaScript同事有两个线程,一个线程在DOM节点添加内容,一个线程删除该节点,浏览器就会出现混乱。所以,为了避免复杂性,从一诞生,JavaScript就是单线程,这已经成了这门语言的核心特征,将来也不会改变。<br/>\n 单线程就意味着,所有任务需要排队,前一个任务结束,才会执行后一个任务。如果前一个任务耗时很长,后一个任务就不得不一直等着。<br/>\n 为了优化单线程的性能,JavaScript将任务分成两种,一种是同步任务(synchronous),另一种是异步任务(asynchronous)。同步任务指的是,在主线程上排队执行的任务,只有前一个任务执行完毕,才能执行后一个任务;异步任务指的是,不进入主线程、而进入\"任务队列\"(task queue)的任务,只有主线程中的同步任务执行完毕,异步任务才会进入执行队列执行。只要主线程空了,就会去读取\"任务队列\",这就是JavaScript的运行机制。这个过程会不断重复。<br/>\n 而setTimeout,就被JavaScript定义为异步任务。每次for循环的迭代,都将setTimeout中的回调函数加入任务队列等待执行。也就是说,只有同步任务中的for循环完全结束,主线程中才会去任务队列中找到尚未执行的十个setTimeout(十次迭代)回调函数并顺序执行(先进先出)。而此时,i已经经过循环结束变成了10,所以,此时主线程执行的,是十个一摸一样的打印i的回调函数,即打印十个10。至此就完美回答了第一和第二个问题,文章开头的代码与下面的代码其实是等价的:</p>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><span class=\"hljs-keyword\">for</span>(<span class=\"hljs-keyword\">var</span> i=<span class=\"hljs-number\">0</span>;i<<span class=\"hljs-number\">10</span>;i++){}\nsetTimeout(<span class=\"hljs-built_in\">console</span>.log(i),<span class=\"hljs-number\">5000</span>)\nsetTimeout(<span class=\"hljs-built_in\">console</span>.log(i),<span class=\"hljs-number\">5000</span>)\nsetTimeout(<span class=\"hljs-built_in\">console</span>.log(i),<span class=\"hljs-number\">5000</span>)\nsetTimeout(<span class=\"hljs-built_in\">console</span>.log(i),<span class=\"hljs-number\">5000</span>)\nsetTimeout(<span class=\"hljs-built_in\">console</span>.log(i),<span class=\"hljs-number\">5000</span>)\nsetTimeout(<span class=\"hljs-built_in\">console</span>.log(i),<span class=\"hljs-number\">5000</span>)\nsetTimeout(<span class=\"hljs-built_in\">console</span>.log(i),<span class=\"hljs-number\">5000</span>)\nsetTimeout(<span class=\"hljs-built_in\">console</span>.log(i),<span class=\"hljs-number\">5000</span>)\nsetTimeout(<span class=\"hljs-built_in\">console</span>.log(i),<span class=\"hljs-number\">5000</span>)\nsetTimeout(<span class=\"hljs-built_in\">console</span>.log(i),<span class=\"hljs-number\">5000</span>)\n</code></pre>\n\n ', '0', '2018-02-26 14:27:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('16', 'bootstrap栅格系统分析', '\n bootstrap栅格系统 bootstrap栅格系统是bootstrap的核心以及精髓所在 一、容器 1.流体容器流体容器宽度为100%(即占当前视口的宽度) 2.固定容器...\n ', '\n <h1>bootstrap栅格系统</h1>\n<blockquote>\n<p>bootstrap栅格系统是bootstrap的核心以及精髓所在</p>\n</blockquote>\n<h2>一、容器</h2>\n<ul>\n<li>1.流体容器\n<ul>\n<li>流体容器宽度为100%(即占当前视口的宽度)</li>\n</ul>\n</li>\n<li>2.固定容器<br/>\n大于等于1200(lg 大屏pc) : 1170(1140+槽宽)<br/>\n大于等于992(md 中屏pc) : 小于1200:970(940+槽宽)<br/>\n大于等于768(sm 平板 ): 小于992:750(720+槽宽)<br/>\n小于768(xs 移动手机) : auto</li>\n</ul>\n<hr/>\n<h2>二、栅格系统的应用</h2>\n<h3>1. 栅格参数</h3>\n<table>\n<thead>\n<tr>\n<th style=\"text-align:center\">类别</th>\n<th style=\"text-align:center\">超小屏幕 手机 (<768px)</th>\n<th style=\"text-align:center\">小屏幕 平板 (≥768px)</th>\n<th style=\"text-align:center\">中等屏幕 桌面显示器 (≥992px)</th>\n<th style=\"text-align:center\">大屏幕 大桌面显示器 (≥1200px)</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td style=\"text-align:center\">栅格系统行</td>\n<td style=\"text-align:center\">总是水平排列</td>\n<td style=\"text-align:center\">开始是堆叠在一起的,当大于这些阈值时将变为水平排列</td>\n<td style=\"text-align:center\">开始是堆叠在一起的,当大于这些阈值时将变为水平排列</td>\n<td style=\"text-align:center\">开始是堆叠在一起的,当大于这些阈值时将变为水平排列</td>\n</tr>\n<tr>\n<td style=\"text-align:center\">.container 最大宽度</td>\n<td style=\"text-align:center\">None</td>\n<td style=\"text-align:center\">750px</td>\n<td style=\"text-align:center\">970px</td>\n<td style=\"text-align:center\">1170px</td>\n</tr>\n<tr>\n<td style=\"text-align:center\">类前缀</td>\n<td style=\"text-align:center\">.col-xs-</td>\n<td style=\"text-align:center\">.col-sm-</td>\n<td style=\"text-align:center\">.col-md-</td>\n<td style=\"text-align:center\">.col-lg-</td>\n</tr>\n<tr>\n<td style=\"text-align:center\">列数(column)</td>\n<td style=\"text-align:center\">12</td>\n<td style=\"text-align:center\">12</td>\n<td style=\"text-align:center\">12</td>\n<td style=\"text-align:center\">12</td>\n</tr>\n<tr>\n<td style=\"text-align:center\">最大列宽</td>\n<td style=\"text-align:center\">自动</td>\n<td style=\"text-align:center\">~62px</td>\n<td style=\"text-align:center\">~81px</td>\n<td style=\"text-align:center\">~97px</td>\n</tr>\n<tr>\n<td style=\"text-align:center\">槽(gutter)宽</td>\n<td style=\"text-align:center\">30px (每列左右均有 15px)</td>\n<td style=\"text-align:center\">30px</td>\n<td style=\"text-align:center\">30px</td>\n<td style=\"text-align:center\">30px</td>\n</tr>\n<tr>\n<td style=\"text-align:center\">可嵌套</td>\n<td style=\"text-align:center\">是</td>\n<td style=\"text-align:center\">是</td>\n<td style=\"text-align:center\">是</td>\n<td style=\"text-align:center\">是</td>\n</tr>\n<tr>\n<td style=\"text-align:center\">偏移(Offsets)</td>\n<td style=\"text-align:center\">是</td>\n<td style=\"text-align:center\">是</td>\n<td style=\"text-align:center\">是</td>\n<td style=\"text-align:center\">是</td>\n</tr>\n<tr>\n<td style=\"text-align:center\">列排序</td>\n<td style=\"text-align:center\">是</td>\n<td style=\"text-align:center\">是</td>\n<td style=\"text-align:center\">是</td>\n<td style=\"text-align:center\">是</td>\n</tr>\n</tbody>\n</table>\n<h3>2. 栅格组合</h3>\n<blockquote>\n<p>利用栅格系统在不同设备状态下页面布局有不同的提现</p>\n</blockquote>\n<p><strong>例如</strong></p>\n<pre class=\"hljs xml\"><code class=\"xml\"><span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"col-lg-10 col-md-6\"</span>></span>col-lg-10<span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"col-lg-2 col-md-6\"</span>></span>col-lg-2<span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n</code></pre>\n<h3>3. 列偏移和列排序</h3>\n<p><strong>列排序</strong></p>\n<blockquote>\n<p>通过使用 .col-xx-push-y和 .col-xx-pull-y类就可以很容易的改变列(column)的顺序。</p>\n</blockquote>\n<p>实际上在控制元素left值</p>\n<p><strong>例如</strong></p>\n<pre class=\"hljs xml\"><code class=\"xml\"><span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"row\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"col-md-9 col-md-push-3\"</span>></span>.col-md-9 .col-md-push-3<span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"col-md-3 col-md-pull-9\"</span>></span>.col-md-3 .col-md-pull-9<span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n</code></pre>\n<p><strong>列偏移</strong></p>\n<blockquote>\n<p>.col-xx-offset-y 类可以将列向右侧偏移<br/>\n实际上在控制元素margin-left的值</p>\n</blockquote>\n<p><strong>例如</strong></p>\n<pre class=\"hljs xml\"><code class=\"xml\"><span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"row\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"col-md-9 col-md-push-3\"</span>></span>.col-md-9 .col-md-push-3<span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"col-md-3 col-md-pull-9\"</span>></span>.col-md-3 .col-md-pull-9<span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n</code></pre>\n<h3>4. 响应式工具的使用</h3>\n<blockquote>\n<p>利用.visible-xx 和 .hidden-xx 控制元素在该xx设备上的显示与隐藏</p>\n</blockquote>\n<pre class=\"hljs xml\"><code class=\"xml\"><span class=\"hljs-comment\"><!--该元素在视口小于768px的情况下隐藏--></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"jumbotron hidden-xs\"</span>></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">h1</span>></span>Hello, world!<span class=\"hljs-tag\"></<span class=\"hljs-name\">h1</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n<span class=\"hljs-comment\"><!--该元素在视口小于768px的情况下显示--></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"jumbotron visible-xs\"</span>></span>\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">h1</span>></span>Hello, world!<span class=\"hljs-tag\"></<span class=\"hljs-name\">h1</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n</code></pre>\n<h3>5. 栅格盒模型设计的精妙之处</h3>\n<p><strong>容器两边具有15px的padding</strong></p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align:center\">目标</th>\n<th style=\"text-align:center\">规则</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td style=\"text-align:center\">列</td>\n<td style=\"text-align:center\">两边具有15px的padding</td>\n</tr>\n<tr>\n<td style=\"text-align:center\">行</td>\n<td style=\"text-align:center\">两边具有-15px的margin</td>\n</tr>\n</tbody>\n</table>\n<ul>\n<li>为了维护槽宽的规则,\n<ul>\n<li>列两边必须得要15px的padding</li>\n</ul>\n</li>\n<li>为了能使列嵌套行\n<ul>\n<li>行两边必须要有-15px的margin</li>\n</ul>\n</li>\n<li>为了让容器可以包裹住行\n<ul>\n<li>容器两边必须要有15px的padding</li>\n</ul>\n</li>\n</ul>\n<hr/>\n<h2>三、栅格系统源码解析</h2>\n<h3>1.基本实现的流程</h3>\n<ul>\n<li><strong>固定和流体容器的公共样式在less混合中的代码</strong></li>\n</ul>\n<p><strong>注:@grid-gutter-widt:槽宽</strong></p>\n<pre class=\"hljs less\"><code class=\"less\"><span class=\"hljs-comment\">/*@gutter在bootstrap里默认为30px*/</span>\n<span class=\"hljs-selector-class\">.container-fixed</span>(<span class=\"hljs-variable\">@gutter</span>: <span class=\"hljs-variable\">@grid-gutter-width</span>) {\n <span class=\"hljs-attribute\">margin-right</span>: auto;\n <span class=\"hljs-attribute\">margin-left</span>: auto;\n <span class=\"hljs-attribute\">padding-left</span>: floor((<span class=\"hljs-variable\">@gutter</span> / <span class=\"hljs-number\">2</span>)); <span class=\"hljs-comment\">//向下取整 (此时默认值为15px)</span>\n <span class=\"hljs-attribute\">padding-right</span>: ceil((<span class=\"hljs-variable\">@gutter</span> / <span class=\"hljs-number\">2</span>)); <span class=\"hljs-comment\">//向上取整 (此时默认值为15px)</span>\n <span class=\"hljs-selector-tag\">&</span><span class=\"hljs-selector-pseudo\">:extend(.clearfix</span> <span class=\"hljs-keyword\">all</span>); <span class=\"hljs-comment\">//继承清除浮动的样式</span>\n}\n<span class=\"hljs-comment\">/*.clearfix的样式*/</span>\n<span class=\"hljs-selector-class\">.clearfix</span>() {\n <span class=\"hljs-selector-tag\">&</span><span class=\"hljs-selector-pseudo\">:before</span>,\n <span class=\"hljs-selector-tag\">&</span><span class=\"hljs-selector-pseudo\">:after</span> {\n <span class=\"hljs-attribute\">content</span>: <span class=\"hljs-string\">\" \"</span>; <span class=\"hljs-comment\">// 1</span>\n <span class=\"hljs-attribute\">display</span>: table; <span class=\"hljs-comment\">// 2</span>\n }\n <span class=\"hljs-selector-tag\">&</span><span class=\"hljs-selector-pseudo\">:after</span> {\n <span class=\"hljs-attribute\">clear</span>: both;\n }\n}\n</code></pre>\n<ul>\n<li><strong>固定容器和流体容器的样式在less实际中的代码</strong></li>\n</ul>\n<pre class=\"hljs less\"><code class=\"less\"><span class=\"hljs-selector-class\">.container</span> {\n <span class=\"hljs-selector-class\">.container-fixed</span>();<span class=\"hljs-comment\">//继承默认样式</span>\n <span class=\"hljs-comment\">//利用媒体查询判断当前应当采用的宽度</span>\n <span class=\"hljs-comment\">//移动优先!</span>\n <span class=\"hljs-keyword\">@media</span> (<span class=\"hljs-attribute\">min-width</span>: <span class=\"hljs-variable\">@screen-sm-min</span>) {\n <span class=\"hljs-attribute\">width</span>: <span class=\"hljs-variable\">@container-sm</span>;\n }\n <span class=\"hljs-keyword\">@media</span> (<span class=\"hljs-attribute\">min-width</span>: <span class=\"hljs-variable\">@screen-md-min</span>) {\n <span class=\"hljs-attribute\">width</span>: <span class=\"hljs-variable\">@container-md</span>;\n }\n <span class=\"hljs-keyword\">@media</span> (<span class=\"hljs-attribute\">min-width</span>: <span class=\"hljs-variable\">@screen-lg-min</span>) {\n <span class=\"hljs-attribute\">width</span>: <span class=\"hljs-variable\">@container-lg</span>;\n }\n}\n<span class=\"hljs-comment\">//流体容器</span>\n<span class=\"hljs-selector-class\">.container-fluid</span> {\n <span class=\"hljs-selector-class\">.container-fixed</span>();\n}\n</code></pre>\n<ul>\n<li><strong>行元素默认样式在less混合中的代码</strong></li>\n</ul>\n<pre class=\"hljs less\"><code class=\"less\"><span class=\"hljs-selector-class\">.make-row</span>(<span class=\"hljs-variable\">@gutter</span>: <span class=\"hljs-variable\">@grid-gutter-width</span>) {\n <span class=\"hljs-attribute\">margin-left</span>: ceil((<span class=\"hljs-variable\">@gutter</span> / -<span class=\"hljs-number\">2</span>));\n <span class=\"hljs-attribute\">margin-right</span>: floor((<span class=\"hljs-variable\">@gutter</span> / -<span class=\"hljs-number\">2</span>));\n <span class=\"hljs-selector-tag\">&</span><span class=\"hljs-selector-pseudo\">:extend(.clearfix</span> <span class=\"hljs-keyword\">all</span>);\n}\n</code></pre>\n<ul>\n<li><strong>行元素样式在less中的代码</strong></li>\n</ul>\n<pre class=\"hljs css\"><code class=\"css\"><span class=\"hljs-selector-class\">.row</span> {\n .make-row();\n}\n</code></pre>\n<ul>\n<li><strong>列元素样式在less中实际的代码</strong></li>\n</ul>\n<pre class=\"hljs less\"><code class=\"less\"><span class=\"hljs-comment\">// 列的默认样式</span>\n<span class=\"hljs-selector-class\">.make-grid-columns</span>();\n<span class=\"hljs-comment\">// 判断当前视口的大小采用不同的样式</span>\n<span class=\"hljs-comment\">//移动优先!</span>\n<span class=\"hljs-selector-class\">.make-grid</span>(xs);\n<span class=\"hljs-keyword\">@media</span> (<span class=\"hljs-attribute\">min-width</span>: <span class=\"hljs-variable\">@screen-sm-min</span>) {\n <span class=\"hljs-selector-class\">.make-grid</span>(sm);\n}\n<span class=\"hljs-keyword\">@media</span> (<span class=\"hljs-attribute\">min-width</span>: <span class=\"hljs-variable\">@screen-md-min</span>) {\n <span class=\"hljs-selector-class\">.make-grid</span>(md);\n}\n<span class=\"hljs-keyword\">@media</span> (<span class=\"hljs-attribute\">min-width</span>: <span class=\"hljs-variable\">@screen-lg-min</span>) {\n <span class=\"hljs-selector-class\">.make-grid</span>(lg);\n}\n</code></pre>\n<h3>2.核心代码</h3>\n<ul>\n<li><strong>列元素样式的初步实现</strong></li>\n</ul>\n<pre class=\"hljs less\"><code class=\"less\"><span class=\"hljs-comment\">//列元素的默认样式实现</span>\n<span class=\"hljs-selector-class\">.make-grid-columns</span>() {\n <span class=\"hljs-comment\">//此时@index为1</span>\n <span class=\"hljs-selector-class\">.col</span>(<span class=\"hljs-variable\">@index</span>) { \n <span class=\"hljs-variable\">@item:</span> <span class=\"hljs-string\">~\".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}\"</span>;\n <span class=\"hljs-comment\">// @item: ~\".col-xs-1, .col-sm-1, .col-md-1, .col-lg-1\";//不编译</span>\n <span class=\"hljs-selector-class\">.col</span>((<span class=\"hljs-variable\">@index</span> + <span class=\"hljs-number\">1</span>), <span class=\"hljs-variable\">@item</span>);\n <span class=\"hljs-comment\">// .col(2, ~\".col-xs-1, .col-sm-1, .col-md-1, .col-lg-1\");</span>\n }\n<span class=\"hljs-comment\">//利用递归循环创建所有列元素的样式</span>\n<span class=\"hljs-comment\">//@grid-columns默认为12 @list为@item的集合</span>\n<span class=\"hljs-selector-class\">.col</span>(<span class=\"hljs-variable\">@index</span>, <span class=\"hljs-variable\">@list</span>) <span class=\"hljs-keyword\">when</span> (<span class=\"hljs-variable\">@index</span> =< <span class=\"hljs-variable\">@grid-columns</span>) {\n<span class=\"hljs-comment\">//当@index=<12时执行以下代码</span>\n <span class=\"hljs-variable\">@item:</span> <span class=\"hljs-string\">~\".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}\"</span>;\n <span class=\"hljs-comment\">//此时index为2则</span>\n <span class=\"hljs-comment\">//@item: ~\".col-xs-2, .col-sm-2, .col-md-2, .col-lg-2\";</span>\n <span class=\"hljs-selector-class\">.col</span>(<span class=\"hljs-number\">3</span>, ~\".col-xs-<span class=\"hljs-number\">1</span>, .col-sm-<span class=\"hljs-number\">1</span>, .col-md-<span class=\"hljs-number\">1</span>, \n .col-lg-<span class=\"hljs-number\">1</span>, .col-xs-<span class=\"hljs-number\">2</span>, .col-sm-<span class=\"hljs-number\">2</span>, .col-md-<span class=\"hljs-number\">2</span>, .col-lg-<span class=\"hljs-number\">2</span>\");\n <span class=\"hljs-comment\">//因为3<=12则继续执行递归</span>\n <span class=\"hljs-comment\">//由此可以当递归完成时</span>\n <span class=\"hljs-variable\">@list:</span>.col-xs-<span class=\"hljs-number\">1</span>, .col-sm-<span class=\"hljs-number\">1</span>, .col-md-<span class=\"hljs-number\">1</span>, .col-lg-<span class=\"hljs-number\">1</span>,\n .col-xs-<span class=\"hljs-number\">2</span>, .col-sm-<span class=\"hljs-number\">2</span>, .col-md-<span class=\"hljs-number\">2</span>, .col-lg-<span class=\"hljs-number\">2</span>,\n ...\n .col-xs-<span class=\"hljs-number\">12</span>, .col-sm-<span class=\"hljs-number\">12</span>, .col-md-<span class=\"hljs-number\">12</span>, .col-lg-<span class=\"hljs-number\">12</span>\n}\n<span class=\"hljs-comment\">//当@index>12时执行下面的代码</span>\n<span class=\"hljs-comment\">//以上代码完成时递归完成时index>13</span>\n<span class=\"hljs-comment\">//执行以下代码</span>\n <span class=\"hljs-selector-class\">.col</span>(<span class=\"hljs-variable\">@index</span>, <span class=\"hljs-variable\">@list</span>) <span class=\"hljs-keyword\">when</span> (<span class=\"hljs-variable\">@index</span> > <span class=\"hljs-variable\">@grid-columns</span>) { \n <span class=\"hljs-variable\">@{list}</span> {\n <span class=\"hljs-attribute\">position</span>: relative;\n <span class=\"hljs-attribute\">min-height</span>: <span class=\"hljs-number\">1px</span>;\n <span class=\"hljs-attribute\">padding-left</span>: ceil((<span class=\"hljs-variable\">@grid-gutter-width</span> / <span class=\"hljs-number\">2</span>));\n <span class=\"hljs-attribute\">padding-right</span>: floor((<span class=\"hljs-variable\">@grid-gutter-width</span> / <span class=\"hljs-number\">2</span>));\n }\n <span class=\"hljs-comment\">//由于此时@list状态已经完成则以下代码为</span>\n <span class=\"hljs-comment\">//.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1,</span>\n <span class=\"hljs-comment\">//.col-xs-2, .col-sm-2, .col-md-2, .col-lg-2,</span>\n <span class=\"hljs-comment\">//...</span>\n <span class=\"hljs-comment\">//.col-xs-12, .col-sm-12, .col-md-12, .col-lg-12{</span>\n <span class=\"hljs-comment\">// position: relative;</span>\n <span class=\"hljs-comment\">//min-height: 1px;</span>\n <span class=\"hljs-comment\">//padding-left: ceil((@grid-gutter-width / 2));</span>\n <span class=\"hljs-comment\">//padding-right: floor((@grid-gutter-width / 2));</span>\n <span class=\"hljs-comment\">//}</span>\n <span class=\"hljs-comment\">//完成所有列的状态的默认值</span>\n <span class=\"hljs-comment\">//及.make-grid-columns()完成所有列的状态的默认样式 </span>\n }\n <span class=\"hljs-comment\">//传入默认值1</span>\n <span class=\"hljs-selector-class\">.col</span>(<span class=\"hljs-number\">1</span>); \n}\n</code></pre>\n<ul>\n<li><strong>列元素具体样式的实现</strong></li>\n</ul>\n<pre class=\"hljs less\"><code class=\"less\"><span class=\"hljs-selector-class\">.make-grid</span>(<span class=\"hljs-variable\">@class</span>) {\n <span class=\"hljs-comment\">//1.写入所有列的默认值</span>\n <span class=\"hljs-selector-class\">.float-grid-columns</span>(<span class=\"hljs-variable\">@class</span>);\n <span class=\"hljs-comment\">//2.规定个个列的宽度</span>\n <span class=\"hljs-selector-class\">.loop-grid-columns</span>(<span class=\"hljs-variable\">@grid-columns</span>, <span class=\"hljs-variable\">@class</span>, width);\n <span class=\"hljs-comment\">//3.列排列控制的是目标元素的left或right的值由于值不能为0所以分开操作</span>\n <span class=\"hljs-comment\">//3.1列向右排列</span>\n <span class=\"hljs-selector-class\">.loop-grid-columns</span>(<span class=\"hljs-variable\">@grid-columns</span>, <span class=\"hljs-variable\">@class</span>, pull);\n <span class=\"hljs-comment\">//3.2列向右排列</span>\n <span class=\"hljs-selector-class\">.loop-grid-columns</span>(<span class=\"hljs-variable\">@grid-columns</span>, <span class=\"hljs-variable\">@class</span>, push);\n <span class=\"hljs-comment\">//4.设置列偏移 控制的是margin-left;</span>\n <span class=\"hljs-selector-class\">.loop-grid-columns</span>(<span class=\"hljs-variable\">@grid-columns</span>, <span class=\"hljs-variable\">@class</span>, offset);\n}\n</code></pre>\n<ul>\n<li><strong>写入所有列的默认值</strong></li>\n</ul>\n<pre class=\"hljs less\"><code class=\"less\"><span class=\"hljs-comment\">//@class 为 xs,sm,md,lg</span>\n<span class=\"hljs-comment\">//下面的代码里@class的值设为xs</span>\n<span class=\"hljs-selector-class\">.float-grid-columns</span>(<span class=\"hljs-variable\">@class</span>) {\n <span class=\"hljs-selector-class\">.col</span>(<span class=\"hljs-variable\">@index</span>) { \n <span class=\"hljs-variable\">@item:</span> <span class=\"hljs-string\">~\".col-@{class}-@{index}\"</span>;\n <span class=\"hljs-comment\">//@item:~\".col-xs-1\";</span>\n <span class=\"hljs-selector-class\">.col</span>((<span class=\"hljs-variable\">@index</span> + <span class=\"hljs-number\">1</span>), <span class=\"hljs-variable\">@item</span>);\n <span class=\"hljs-comment\">//.col(2, ~\".col-xs-1\");</span>\n }\n <span class=\"hljs-comment\">//同样利用递归循环index至12完成对每个@class列的属性</span>\n <span class=\"hljs-selector-class\">.col</span>(<span class=\"hljs-variable\">@index</span>, <span class=\"hljs-variable\">@list</span>) <span class=\"hljs-keyword\">when</span> (<span class=\"hljs-variable\">@index</span> =< <span class=\"hljs-variable\">@grid-columns</span>) { \n <span class=\"hljs-variable\">@item:</span> <span class=\"hljs-string\">~\".col-@{class}-@{index}\"</span>;\n <span class=\"hljs-comment\">//@item: ~\".col-xs-2\";</span>\n <span class=\"hljs-selector-class\">.col</span>((<span class=\"hljs-variable\">@index</span> + <span class=\"hljs-number\">1</span>), <span class=\"hljs-string\">~\"@{list}, @{item}\"</span>);\n <span class=\"hljs-comment\">//.col(3, ~\".col-xs-1, .col-xs-2\");</span>\n <span class=\"hljs-comment\">//递归完成时@list为:</span>\n <span class=\"hljs-comment\">//.col-xs-1, .col-xs-2,...,.col-xs-12</span>\n }\n <span class=\"hljs-comment\">//当递归完成时执行下面的代码</span>\n <span class=\"hljs-selector-class\">.col</span>(<span class=\"hljs-variable\">@index</span>, <span class=\"hljs-variable\">@list</span>) <span class=\"hljs-keyword\">when</span> (<span class=\"hljs-variable\">@index</span> > <span class=\"hljs-variable\">@grid-columns</span>) { \n <span class=\"hljs-variable\">@{list}</span> {\n <span class=\"hljs-attribute\">float</span>: left;\n }\n <span class=\"hljs-comment\">//以上代码及为</span>\n <span class=\"hljs-comment\">//.col-xs-1, .col-xs-2,...,.col-xs-12{</span>\n <span class=\"hljs-comment\">//float: left;</span>\n <span class=\"hljs-comment\">//}</span>\n <span class=\"hljs-comment\">//}</span>\n <span class=\"hljs-comment\">//填入@index的默认值1</span>\n <span class=\"hljs-selector-class\">.col</span>(<span class=\"hljs-number\">1</span>); \n}\n</code></pre>\n<ul>\n<li><strong>设置宽度列排列和列偏移的入口代码</strong></li>\n</ul>\n<pre class=\"hljs less\"><code class=\"less\"><span class=\"hljs-comment\">//由于当前状态下index为12则从12开始递归至0</span>\n<span class=\"hljs-comment\">//@index索引 @class栅格类 @type 要进行操作的属性</span>\n<span class=\"hljs-selector-class\">.loop-grid-columns</span>(<span class=\"hljs-variable\">@index</span>, <span class=\"hljs-variable\">@class</span>, <span class=\"hljs-variable\">@type</span>) <span class=\"hljs-keyword\">when</span> (<span class=\"hljs-variable\">@index</span> >= <span class=\"hljs-number\">0</span>) {\n <span class=\"hljs-selector-class\">.calc-grid-column</span>(<span class=\"hljs-variable\">@index</span>, <span class=\"hljs-variable\">@class</span>, <span class=\"hljs-variable\">@type</span>);\n <span class=\"hljs-selector-class\">.loop-grid-columns</span>((<span class=\"hljs-variable\">@index</span> - <span class=\"hljs-number\">1</span>), <span class=\"hljs-variable\">@class</span>, <span class=\"hljs-variable\">@type</span>);\n}\n</code></pre>\n<ul>\n<li><strong>规定个个列的宽度</strong></li>\n</ul>\n<pre class=\"hljs less\"><code class=\"less\"><span class=\"hljs-comment\">//当@type = width时执行的代码</span>\n<span class=\"hljs-selector-class\">.calc-grid-column</span>(<span class=\"hljs-variable\">@index</span>, <span class=\"hljs-variable\">@class</span>, <span class=\"hljs-variable\">@type</span>) <span class=\"hljs-keyword\">when</span> (<span class=\"hljs-variable\">@type</span> = width) <span class=\"hljs-keyword\">and</span> (<span class=\"hljs-variable\">@index</span> > <span class=\"hljs-number\">0</span>) {\n <span class=\"hljs-selector-class\">.col-</span><span class=\"hljs-variable\">@{class}</span><span class=\"hljs-selector-tag\">-</span><span class=\"hljs-variable\">@{index}</span> {\n <span class=\"hljs-attribute\">width</span>: percentage((<span class=\"hljs-variable\">@index</span> / <span class=\"hljs-variable\">@grid-columns</span>));\n }\n}\n<span class=\"hljs-comment\">//以上代码可以表示为</span>\n<span class=\"hljs-selector-class\">.loop-grid-columns</span>(<span class=\"hljs-variable\">@index</span>, <span class=\"hljs-variable\">@class</span>, <span class=\"hljs-variable\">@type</span>) <span class=\"hljs-keyword\">when</span> (<span class=\"hljs-variable\">@index</span> >= <span class=\"hljs-number\">0</span>) {\n <span class=\"hljs-selector-class\">.calc-grid-column</span>(<span class=\"hljs-variable\">@index</span>, <span class=\"hljs-variable\">@class</span>, <span class=\"hljs-variable\">@type</span>) <span class=\"hljs-keyword\">when</span> (<span class=\"hljs-variable\">@type</span> = width) <span class=\"hljs-keyword\">and</span> (<span class=\"hljs-variable\">@index</span> > <span class=\"hljs-number\">0</span>) {\n <span class=\"hljs-selector-class\">.col-</span><span class=\"hljs-variable\">@{class}</span><span class=\"hljs-selector-tag\">-</span><span class=\"hljs-variable\">@{index}</span> {\n <span class=\"hljs-attribute\">width</span>: percentage((<span class=\"hljs-variable\">@index</span> / <span class=\"hljs-variable\">@grid-columns</span>));\n }\n <span class=\"hljs-comment\">//.col-xs-12 {</span>\n <span class=\"hljs-comment\">// width: percentage(12/12));//将数值转换为百分比</span>\n <span class=\"hljs-comment\">//}</span>\n \n}\n <span class=\"hljs-selector-class\">.loop-grid-columns</span>((<span class=\"hljs-variable\">@index</span> - <span class=\"hljs-number\">1</span>), <span class=\"hljs-variable\">@class</span>, <span class=\"hljs-variable\">@type</span>);\n <span class=\"hljs-comment\">//再次执行</span>\n <span class=\"hljs-comment\">//.col-xs-11 {</span>\n <span class=\"hljs-comment\">//width: percentage(11/12));//将数值转换为百分比</span>\n <span class=\"hljs-comment\">//}</span>\n}\n<span class=\"hljs-comment\">//递归完成后得到的是</span>\n<span class=\"hljs-comment\">//.col-xs-12 {</span>\n<span class=\"hljs-comment\">// width: percentage(12/12));//将数值转换为百分比</span>\n<span class=\"hljs-comment\">//}</span>\n<span class=\"hljs-comment\">//.col-xs-11 {</span>\n<span class=\"hljs-comment\">// width: percentage(11/12));//将数值转换为百分比</span>\n<span class=\"hljs-comment\">//}....</span>\n<span class=\"hljs-comment\">//.col-xs-1 {</span>\n<span class=\"hljs-comment\">// width: percentage(1/12));//将数值转换为百分比</span>\n<span class=\"hljs-comment\">//}</span>\n</code></pre>\n<ul>\n<li><strong>列排列控制</strong></li>\n</ul>\n<pre class=\"hljs less\"><code class=\"less\"><span class=\"hljs-comment\">//当@type = push执行如下代码</span>\n<span class=\"hljs-comment\">//@index的递减在.loop-grid-columns(@index, @class, @type) when (@index >= 0) 环境下已经实现</span>\n<span class=\"hljs-selector-class\">.calc-grid-column</span>(<span class=\"hljs-variable\">@index</span>, <span class=\"hljs-variable\">@class</span>, <span class=\"hljs-variable\">@type</span>) <span class=\"hljs-keyword\">when</span> (<span class=\"hljs-variable\">@type</span> = push) <span class=\"hljs-keyword\">and</span> (<span class=\"hljs-variable\">@index</span> > <span class=\"hljs-number\">0</span>) {\n <span class=\"hljs-selector-class\">.col-</span><span class=\"hljs-variable\">@{class}</span><span class=\"hljs-selector-tag\">-push-</span><span class=\"hljs-variable\">@{index}</span> {\n <span class=\"hljs-attribute\">left</span>: percentage((<span class=\"hljs-variable\">@index</span> / <span class=\"hljs-variable\">@grid-columns</span>));\n }\n <span class=\"hljs-comment\">//以上代码生成的值为</span>\n <span class=\"hljs-comment\">//.col-xs-push-12 {</span>\n <span class=\"hljs-comment\">//left: percentage(12/12);</span>\n <span class=\"hljs-comment\">//}</span>\n <span class=\"hljs-comment\">//.col-xs-push-11 {</span>\n <span class=\"hljs-comment\">//left: percentage(11/12);</span>\n <span class=\"hljs-comment\">//}....</span>\n <span class=\"hljs-comment\">//.col-xs-push-1 {</span>\n <span class=\"hljs-comment\">//left: percentage(1/12);</span>\n <span class=\"hljs-comment\">//}</span>\n}\n<span class=\"hljs-comment\">//当index为0时执行下面的代码</span>\n<span class=\"hljs-selector-class\">.calc-grid-column</span>(<span class=\"hljs-variable\">@index</span>, <span class=\"hljs-variable\">@class</span>, <span class=\"hljs-variable\">@type</span>) <span class=\"hljs-keyword\">when</span> (<span class=\"hljs-variable\">@type</span> = push) <span class=\"hljs-keyword\">and</span> (<span class=\"hljs-variable\">@index</span> = <span class=\"hljs-number\">0</span>) {\n <span class=\"hljs-selector-class\">.col-</span><span class=\"hljs-variable\">@{class}</span><span class=\"hljs-selector-tag\">-push-0</span> {\n <span class=\"hljs-attribute\">left</span>: auto;\n }\n <span class=\"hljs-comment\">//.col-xs-push-0 {</span>\n <span class=\"hljs-comment\">//left: auto;</span>\n <span class=\"hljs-comment\">//}</span>\n}\n\n<span class=\"hljs-comment\">//向左偏移生成模式与向右相同</span>\n<span class=\"hljs-selector-class\">.calc-grid-column</span>(<span class=\"hljs-variable\">@index</span>, <span class=\"hljs-variable\">@class</span>, <span class=\"hljs-variable\">@type</span>) <span class=\"hljs-keyword\">when</span> (<span class=\"hljs-variable\">@type</span> = pull) <span class=\"hljs-keyword\">and</span> (<span class=\"hljs-variable\">@index</span> > <span class=\"hljs-number\">0</span>) {\n <span class=\"hljs-selector-class\">.col-</span><span class=\"hljs-variable\">@{class}</span><span class=\"hljs-selector-tag\">-pull-</span><span class=\"hljs-variable\">@{index}</span> {\n <span class=\"hljs-attribute\">right</span>: percentage((<span class=\"hljs-variable\">@index</span> / <span class=\"hljs-variable\">@grid-columns</span>));\n }\n}\n<span class=\"hljs-selector-class\">.calc-grid-column</span>(<span class=\"hljs-variable\">@index</span>, <span class=\"hljs-variable\">@class</span>, <span class=\"hljs-variable\">@type</span>) <span class=\"hljs-keyword\">when</span> (<span class=\"hljs-variable\">@type</span> = pull) <span class=\"hljs-keyword\">and</span> (<span class=\"hljs-variable\">@index</span> = <span class=\"hljs-number\">0</span>) {\n <span class=\"hljs-selector-class\">.col-</span><span class=\"hljs-variable\">@{class}</span><span class=\"hljs-selector-tag\">-pull-0</span> {\n <span class=\"hljs-attribute\">right</span>: auto;\n }\n}\n</code></pre>\n<ul>\n<li><strong>列偏移控制</strong></li>\n</ul>\n<pre class=\"hljs less\"><code class=\"less\"><span class=\"hljs-comment\">//当@type = offset时执行如下代码</span>\n<span class=\"hljs-selector-class\">.calc-grid-column</span>(<span class=\"hljs-variable\">@index</span>, <span class=\"hljs-variable\">@class</span>, <span class=\"hljs-variable\">@type</span>) <span class=\"hljs-keyword\">when</span> (<span class=\"hljs-variable\">@type</span> = offset) {\n <span class=\"hljs-selector-class\">.col-</span><span class=\"hljs-variable\">@{class}</span><span class=\"hljs-selector-tag\">-offset-</span><span class=\"hljs-variable\">@{index}</span> {\n <span class=\"hljs-attribute\">margin-left</span>: percentage((<span class=\"hljs-variable\">@index</span> / <span class=\"hljs-variable\">@grid-columns</span>));<span class=\"hljs-comment\">//值转换为百分比</span>\n }\n <span class=\"hljs-comment\">//运行结果</span>\n <span class=\"hljs-comment\">//.col-xs-offset-12 {</span>\n <span class=\"hljs-comment\">//margin-left: percentage(12/12);</span>\n <span class=\"hljs-comment\">//}...</span>\n <span class=\"hljs-comment\">//.col-xs-offset-1 {</span>\n <span class=\"hljs-comment\">//margin-left: perc/entage(1/12);</span>\n <span class=\"hljs-comment\">//}</span>\n}\n</code></pre>\n<p><a href=\"https://link.jianshu.com?t=http%3A%2F%2Fblog.fushily.cn%2F2018%2F03%2F01%2F%25E7%25A7%25BB%25E5%258A%25A8%25E7%25AB%25AF%25E5%2588%259D%25E6%258E%25A2%2F\" target=\"_blank\" rel=\"nofollow\">原文链接</a>.</p>\n\n ', '0', '2018-03-07 18:38:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('17', 'ajax的同源策略', '\n 问题 之前帮忙做的广告机器人数据提交的部分,利用ajax的XMLHTTPRequest提交到服务器的时候总是报错,错误类型是不同源。想到浏览器中的同源策略,明白了问题的原因。...\n ', '\n <h2>问题</h2>\n<p>之前帮忙做的广告机器人数据提交的部分,利用ajax的XMLHTTPRequest提交到服务器的时候总是报错,错误类型是不同源。想到浏览器中的同源策略,明白了问题的原因。</p>\n<h2>同源策略</h2>\n<p>简单的说,就是浏览器不允许两个不同源的域名之间交换信息,那么这里就有两个问题。一是,什么信息不允许交换;二是,怎样算不同源。</p>\n<p>阮一峰的这篇博客<a href=\"https://link.jianshu.com?t=http%3A%2F%2Fwww.ruanyifeng.com%2Fblog%2F2016%2F04%2Fsame-origin-policy.html\" target=\"_blank\" rel=\"nofollow\">浏览器同源政策及其规避方法</a>其实已经介绍得比较清楚。引用一下,第一个问题:</p>\n<blockquote>\n<p>目前,如果非同源,共有三种行为受到限制。<br/>\n(1) Cookie、LocalStorage 和 IndexDB 无法读取。<br/>\n(2) DOM 无法获得。<br/>\n(3) AJAX 请求不能发送。</p>\n</blockquote>\n<p>第二个问题:</p>\n<blockquote>\n<p>所谓\"同源\"指的是\"三个相同\":<br/>\n协议相同<br/>\n域名相同<br/>\n端口相同</p>\n</blockquote>\n<p>同源策略的目的就是为了浏览器的安全,防止恶意脚本的肆意破坏。但是值得注意的是,<script>,<img>,<iframe>等,像类似这种带“src”属性的标签是可以跨域加载资源的,只不过限制了其读写返回的内容。</p>\n<h2>解决办法</h2>\n<p>可以看到的是,同源策略限制了ajax的不同源请求,那么有时候我们还是需要跨域的,如何解决这个问题呢?阮一峰老师在这篇文章中也给出了三种方法。</p>\n<ol>\n<li>利用JSONP</li>\n<li>websocket</li>\n<li>CORS</li>\n</ol>\n<p>第一种方法是利用了像<script>这样的标签可以加载跨域资源,客户端向服务端请求JSON数据,服务端通过将数据放在回调函数中传回来。</p>\n<p>第二种方法本质原理是websocket请求头中本身就有origin信息,服务器可以通过这个源信息判断要不要给它传数据,所以websocket不受同源策略的影响。</p>\n<p>第三种方法原理和第二种方法类似,就是在请求中多出一个origin头信息,然后服务端收到信息后,判断要不要给它传数据,并且在返回的信息中多加入几个头信息来传达接收或不接受的信息,从而浏览器做出反应。具体的可以参考阮一峰的文章<a href=\"https://link.jianshu.com?t=http%3A%2F%2Fwww.ruanyifeng.com%2Fblog%2F2016%2F04%2Fcors.html\" target=\"_blank\" rel=\"nofollow\">跨域资源共享 CORS 详解</a></p>\n<h2>总结</h2>\n<p>我在实际的项目过程中,使用了第三种方法,在后台对php和apache进行了跨域的设置。具体可以参考<a href=\"https://link.jianshu.com?t=https%3A%2F%2Fwww.cnblogs.com%2Flxwphp%2Fp%2F8080188.html\" target=\"_blank\" rel=\"nofollow\"># </a><a href=\"https://link.jianshu.com?t=http%3A%2F%2Fwww.cnblogs.com%2Flxwphp%2Fp%2F8080188.html\" target=\"_blank\" rel=\"nofollow\">Ajax 跨域,这应该是最全的解决方案了</a><br/>\n。</p>\n<p>但是奇怪的是,客户端放到移动端之后,就好像没有跨域的问题了,同样的服务端,在电脑上显示跨域问题,在手机上操作就可以提交了,这是我没想明白的地方。</p>\n\n ', '0', '2018-03-07 21:57:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('18', '前端利器之less入门', '\n less 是什么? Less 是一门 CSS 预处理语言,它扩展了 CSS 语言,增加了变量、Mixin、函数等特性,使 CSS 更易维护和扩展。less,是方便我们快速编写...\n ', '\n <h3>less 是什么?</h3>\n<p>Less 是一门 CSS 预处理语言,它扩展了 CSS 语言,增加了变量、Mixin、函数等特性,使 CSS 更易维护和扩展。<br/>\nless,是方便我们快速编写CSS的工具,它增强了CSS代码的扩展性和复用性。<br/>\nLess 可以运行在 Node 或浏览器端。</p>\n<h3>less能为我们做什么?</h3>\n<p>下边让我们来看一段我们经常写的代码</p>\n<pre class=\"hljs css\"><code class=\"css\"><span class=\"hljs-comment\">/**\n我们经常写浏览器的兼容,假设我们写icon\n**/</span>\n<span class=\"hljs-selector-tag\">nav</span> <span class=\"hljs-selector-tag\">a</span><span class=\"hljs-selector-class\">.home</span><span class=\"hljs-selector-class\">.active</span> <span class=\"hljs-selector-tag\">i</span> {\n <span class=\"hljs-attribute\">background</span>: <span class=\"hljs-built_in\">url</span>(<span class=\"hljs-string\">\'images/nav-home-on.png\'</span>) no-repeat center;\n <span class=\"hljs-attribute\">background-size</span>: contain;\n <span class=\"hljs-attribute\">-webkit-background-size</span>: contain;\n <span class=\"hljs-attribute\">-moz-background-size</span>: contain;\n <span class=\"hljs-attribute\">-o-background-size</span>: contain;\n}\n<span class=\"hljs-selector-tag\">nav</span> <span class=\"hljs-selector-tag\">a</span><span class=\"hljs-selector-class\">.home</span> <span class=\"hljs-selector-tag\">i</span> {\n <span class=\"hljs-attribute\">background</span>: <span class=\"hljs-built_in\">url</span>(<span class=\"hljs-string\">\'images/nav-home-off.png\'</span>) no-repeat center;\n <span class=\"hljs-attribute\">background-size</span>: contain;\n <span class=\"hljs-attribute\">-webkit-background-size</span>: contain;\n <span class=\"hljs-attribute\">-moz-background-size</span>: contain;\n <span class=\"hljs-attribute\">-o-background-size</span>: contain;\n}\n<span class=\"hljs-selector-tag\">nav</span> <span class=\"hljs-selector-tag\">a</span><span class=\"hljs-selector-class\">.topics</span><span class=\"hljs-selector-class\">.active</span> <span class=\"hljs-selector-tag\">i</span> {\n <span class=\"hljs-attribute\">background</span>: <span class=\"hljs-built_in\">url</span>(<span class=\"hljs-string\">\'images/nav-circle-on.png\'</span>) no-repeat center;\n <span class=\"hljs-attribute\">background-size</span>: contain;\n <span class=\"hljs-attribute\">-webkit-background-size</span>: contain;\n <span class=\"hljs-attribute\">-moz-background-size</span>: contain;\n <span class=\"hljs-attribute\">-o-background-size</span>: contain;\n}\n<span class=\"hljs-selector-tag\">nav</span> <span class=\"hljs-selector-tag\">a</span><span class=\"hljs-selector-class\">.topics</span> <span class=\"hljs-selector-tag\">i</span> {\n <span class=\"hljs-attribute\">background</span>: <span class=\"hljs-built_in\">url</span>(<span class=\"hljs-string\">\'images/nav-circle-off.png\'</span>) no-repeat center;\n <span class=\"hljs-attribute\">background-size</span>: contain;\n <span class=\"hljs-attribute\">-webkit-background-size</span>: contain;\n <span class=\"hljs-attribute\">-moz-background-size</span>: contain;\n <span class=\"hljs-attribute\">-o-background-size</span>: contain;\n}\n\n</code></pre>\n<ul>\n<li>一遍一遍写一大段一大段一样的代码,有木有很乏味,如果要换一个contain为cover呢?<br/>\n改疯了有木有</li>\n</ul>\n<blockquote>\n<p>让我们看看less会怎么做</p>\n</blockquote>\n<pre class=\"hljs bash\"><code class=\"bash\">\n//相当于新建一个函数 Mixins(混入)\n.border-radius(@radius:10px){\nborder-radius:@radius;\n -webkit-border-radius:@radius;\n -moz-border-radius:@radius;\n -o-border-radius:@radius;\n}\n.background-size(@<span class=\"hljs-built_in\">type</span>){\n background-size: @<span class=\"hljs-built_in\">type</span>;\n -webkit-background-size: @<span class=\"hljs-built_in\">type</span>;\n -moz-background-size: @<span class=\"hljs-built_in\">type</span>;\n -o-background-size: @<span class=\"hljs-built_in\">type</span>;\n}\n\n//用法\n.orderList{\n background-color:<span class=\"hljs-comment\">#E36264;</span>\n width:100px;\n height:200px;\n .border-radius(15px);//利用函数可以省去很多的重复兼容代码\n .border-radius;//利用函数可以省去很多的重复兼容代码\n .background-size(contain);\n}\n\n\n//这么写整个世界都美好了\nnav a.topics i {\n background: url(<span class=\"hljs-string\">\'images/nav-circle-off.png\'</span>) no-repeat center;\n .background-size(contain);\n}\n</code></pre>\n<ul>\n<li>\n<strong>说明</strong> 像 JavaScript 中 arguments一样,Mixins 也有这样一个变量:@arguments。<br/>\n@arguments 在 Mixins 中具是一个很特别的参数,当 Mixins 引用这个参数时,<br/>\n该参数表示所有的变量,很多情况下,这个参数可以省去你很多代码。</li>\n</ul>\n<pre class=\"hljs ruby\"><code class=\"ruby\">.boxShadow(@x<span class=\"hljs-symbol\">:</span><span class=\"hljs-number\">0</span>,@y<span class=\"hljs-symbol\">:</span><span class=\"hljs-number\">0</span>,@blur<span class=\"hljs-symbol\">:</span><span class=\"hljs-number\">1</span>px,@color<span class=\"hljs-symbol\">:</span><span class=\"hljs-comment\">#000){</span>\n -moz-box-<span class=\"hljs-symbol\">shadow:</span> @arguments;\n -webkit-box-<span class=\"hljs-symbol\">shadow:</span> @arguments;\n box-<span class=\"hljs-symbol\">shadow:</span> @arguments;\n }\n <span class=\"hljs-comment\">#header {</span>\n .boxShadow(<span class=\"hljs-number\">2</span>px,<span class=\"hljs-number\">2</span>px,<span class=\"hljs-number\">3</span>px,<span class=\"hljs-comment\">#f36);</span>\n }\n</code></pre>\n<h4>变量写法</h4>\n<blockquote>\n<p>less代码</p>\n</blockquote>\n<pre class=\"hljs cpp\"><code class=\"cpp\"><span class=\"hljs-comment\">/**\n 大家都遇到过这样的问题\n 我们做换肤功能的时候都有一个主色调,\n 我们写完了代码设计师说我想更换个主色调,\n 这时候你就会发现,我有100个地方用了主色调,\n 然后只能苦逼的改100次\n 太难受了!!有木有??有一个变量直接提出来多好?\n\n**/</span>\n<span class=\"hljs-comment\">//定义一个变量</span>\n@colorFff:<span class=\"hljs-meta\">#fff;</span>\n\n<span class=\"hljs-comment\">//用法</span>\nfooter{\n background-color: @colorFff\n}\nnav{\n color: @colorFff;\n}\nheader{\n border-right:<span class=\"hljs-number\">1</span>px solid @colorFff;\n}\n\n</code></pre>\n<blockquote>\n<p>最终生成的代码</p>\n</blockquote>\n<pre class=\"hljs css\"><code class=\"css\"><span class=\"hljs-selector-tag\">footer</span> {\n <span class=\"hljs-attribute\">background-color</span>: <span class=\"hljs-number\">#ffffff</span>;\n}\n<span class=\"hljs-selector-tag\">nav</span> {\n <span class=\"hljs-attribute\">color</span>: <span class=\"hljs-number\">#ffffff</span>;\n}\n<span class=\"hljs-selector-tag\">header</span> {\n <span class=\"hljs-attribute\">border-right</span>: <span class=\"hljs-number\">1px</span> solid <span class=\"hljs-number\">#ffffff</span>;\n}\n</code></pre>\n<h4>代码片段写法</h4>\n<blockquote>\n<p>less代码</p>\n</blockquote>\n<pre class=\"hljs java\"><code class=\"java\"><span class=\"hljs-comment\">//又是重复代码,less告诉你可以这么写 有没有觉得自己很会过日子,原来可以这么省</span>\n\n<span class=\"hljs-comment\">//定义一个公共样式</span>\n.icon20{\n width: <span class=\"hljs-number\">20</span>px;\n height: <span class=\"hljs-number\">20</span>px;\n display: inline-block;\n}\n\n<span class=\"hljs-comment\">//用起来</span>\n.icon-my{\n .icon20;\n background: url(<span class=\"hljs-string\">\'images/nav-my-off.png\'</span>) no-repeat center;\n .background-size(contain);\n}\n.icon-car{\n .icon20;\n background: url(<span class=\"hljs-string\">\'images/nav-car-off.png\'</span>) no-repeat center;\n .background-size(contain);\n}\n</code></pre>\n<blockquote>\n<p>对应生成的css<br/>\n又是重复代码,less告诉你可以这么写 有没有觉得自己很会过日子,原来可以这么省</p>\n</blockquote>\n<pre class=\"hljs css\"><code class=\"css\"><span class=\"hljs-selector-class\">.icon-my</span>{\n <span class=\"hljs-attribute\">width</span>: <span class=\"hljs-number\">20px</span>;\n <span class=\"hljs-attribute\">height</span>: <span class=\"hljs-number\">20px</span>;\n <span class=\"hljs-attribute\">display</span>: inline-block;\n <span class=\"hljs-attribute\">background</span>: <span class=\"hljs-built_in\">url</span>(<span class=\"hljs-string\">\'images/nav-my-off.png\'</span>) no-repeat center;\n}\n\n<span class=\"hljs-selector-class\">.icon-car</span>{\n <span class=\"hljs-attribute\">width</span>: <span class=\"hljs-number\">20px</span>;\n <span class=\"hljs-attribute\">height</span>: <span class=\"hljs-number\">20px</span>;\n <span class=\"hljs-attribute\">display</span>: inline-block;\n <span class=\"hljs-attribute\">background</span>: <span class=\"hljs-built_in\">url</span>(<span class=\"hljs-string\">\'images/nav-car-off.png\'</span>) no-repeat center;\n}\n\n</code></pre>\n<h4>有时候我们需要引用一段less文件</h4>\n<blockquote>\n<p>写法</p>\n</blockquote>\n<pre class=\"hljs cpp\"><code class=\"cpp\"><span class=\"hljs-comment\">/* LESS Document */</span>\n<span class=\"hljs-comment\">//引入一个公共的less文件</span>\n@<span class=\"hljs-keyword\">import</span> <span class=\"hljs-string\">\"base.less\"</span>;\n\n</code></pre>\n<h4>嵌套写法</h4>\n<pre class=\"hljs objectivec\"><code class=\"objectivec\"><span class=\"hljs-comment\">//这样的css代码你该不陌生</span>\n.shopcar-item {\n font-size: <span class=\"hljs-number\">1.5</span>rem;\n background-color: <span class=\"hljs-meta\">#ffffff;</span>\n position: relative;\n padding: <span class=\"hljs-number\">10</span>px <span class=\"hljs-number\">10</span>px <span class=\"hljs-number\">10</span>px <span class=\"hljs-number\">70</span>px;\n border-bottom: <span class=\"hljs-number\">1</span>px solid <span class=\"hljs-meta\">#ededed;</span>\n}\n.shopcar-item img {\n width: <span class=\"hljs-number\">100</span>%;\n}\n<span class=\"hljs-comment\">//我要选img必须加上前边的那个,好吧 这样还可以接受,那么这样呢?</span>\n.shopcar-item .item-con .add-btn,\n.shopcar-item .item-con .mul-btn {\n display: <span class=\"hljs-keyword\">inline</span>-block;\n padding: <span class=\"hljs-number\">5</span>px <span class=\"hljs-number\">10</span>px;\n background-color: <span class=\"hljs-meta\">#ff4354;</span>\n color: <span class=\"hljs-meta\">#ffffff;</span>\n border-radius: <span class=\"hljs-number\">5</span>px;\n margin: <span class=\"hljs-number\">0</span> <span class=\"hljs-number\">5</span>px;\n}\n\n\n</code></pre>\n<blockquote>\n<p>我们来看看less怎么写</p>\n</blockquote>\n<pre class=\"hljs objectivec\"><code class=\"objectivec\">\n<span class=\"hljs-comment\">//看看 嵌套关系清晰明了 告别冗长的选择器</span>\n.shopcar-item {\n font-size: <span class=\"hljs-number\">1.5</span>rem;\n background-color: <span class=\"hljs-meta\">#ffffff;</span>\n position: relative;\n padding: <span class=\"hljs-number\">10</span>px <span class=\"hljs-number\">10</span>px <span class=\"hljs-number\">10</span>px <span class=\"hljs-number\">70</span>px;\n border-bottom: <span class=\"hljs-number\">1</span>px solid <span class=\"hljs-meta\">#ededed;</span>\n\n img {\n width: <span class=\"hljs-number\">100</span>%;\n }\n\n .item-con{\n position: relative;\n\n .add-btn,.mul-btn{\n display: <span class=\"hljs-keyword\">inline</span>-block;\n padding: <span class=\"hljs-number\">5</span>px <span class=\"hljs-number\">10</span>px;\n background-color: <span class=\"hljs-meta\">#ff4354;</span>\n color: <span class=\"hljs-meta\">#ffffff;</span>\n border-radius: <span class=\"hljs-number\">5</span>px;\n margin: <span class=\"hljs-number\">0</span> <span class=\"hljs-number\">5</span>px;\n }\n }\n}\n\n</code></pre>\n<h4>并且写法</h4>\n<blockquote>\n<p>用less之前我们这么写</p>\n</blockquote>\n<pre class=\"hljs css\"><code class=\"css\"><span class=\"hljs-selector-class\">.nav</span> {\n <span class=\"hljs-attribute\">background-color</span>: <span class=\"hljs-number\">#ededed</span>;\n}\n<span class=\"hljs-selector-class\">.nav</span><span class=\"hljs-selector-class\">.focus</span> {\n <span class=\"hljs-attribute\">background-color</span>: <span class=\"hljs-number\">#cccccc</span>;\n}\n<span class=\"hljs-selector-class\">.nav</span><span class=\"hljs-selector-pseudo\">:after</span> {\n <span class=\"hljs-attribute\">content</span>: <span class=\"hljs-string\">\"\"</span>;\n <span class=\"hljs-attribute\">display</span>: block;\n <span class=\"hljs-attribute\">width</span>: <span class=\"hljs-number\">100px</span>;\n <span class=\"hljs-attribute\">height</span>: <span class=\"hljs-number\">100px</span>;\n}\n</code></pre>\n<blockquote>\n<p>less告诉你,我们可以这么写,一个元素的各种状态一目了然</p>\n</blockquote>\n<pre class=\"hljs ruby\"><code class=\"ruby\">.nav{\n background-<span class=\"hljs-symbol\">color:</span> <span class=\"hljs-comment\">#ededed;</span>\n\n &.focus{\n background-<span class=\"hljs-symbol\">color:</span> <span class=\"hljs-comment\">#cccccc;</span>\n }\n\n &<span class=\"hljs-symbol\">:after</span>{\n <span class=\"hljs-symbol\">content:</span> <span class=\"hljs-string\">\"\"</span>;\n <span class=\"hljs-symbol\">display:</span> block;\n <span class=\"hljs-symbol\">width:</span> <span class=\"hljs-number\">100</span>px;\n <span class=\"hljs-symbol\">height:</span> <span class=\"hljs-number\">100</span>px;\n }\n\n}\n\n</code></pre>\n<h4>运算及函数</h4>\n<pre class=\"hljs objectivec\"><code class=\"objectivec\"><span class=\"hljs-comment\">//运算及函数</span>\n@init: <span class=\"hljs-meta\">#111111;</span>\n@transition: @init*<span class=\"hljs-number\">2</span>;\n.switchColor {\n color: @transition;\n}\n\n</code></pre>\n<blockquote>\n<p>最终生成的样式</p>\n</blockquote>\n<pre class=\"hljs css\"><code class=\"css\"><span class=\"hljs-selector-class\">.switchColor</span> {\n <span class=\"hljs-attribute\">color</span>: <span class=\"hljs-number\">#222222</span>;\n}\n</code></pre>\n<ul>\n<li>上面的例子中使用 LESS 的 operation 是 特性,<br/>\n其实简单的讲,就是对数值型的 value(数字、颜色、变量等)<br/>\n进行加减乘除四则运算</li>\n</ul>\n<h4>我们做响应式布局适配的时候经常要计算rem,</h4>\n<p>用less告别手动计算</p>\n<pre class=\"hljs objectivec\"><code class=\"objectivec\">.px2rem(@name, @px){\n @{name}: @px / <span class=\"hljs-number\">75</span> * <span class=\"hljs-number\">1</span>rem;\n}\n\n.orderList{\n .px2rem(font-size,<span class=\"hljs-number\">32</span>);\n background-color:<span class=\"hljs-meta\">#E36264;</span>\n width:<span class=\"hljs-number\">100</span>px;\n height:<span class=\"hljs-number\">200</span>px;\n}\n\n\n<span class=\"hljs-comment\">//最终生成的css</span>\n.orderList {\n font-size: <span class=\"hljs-number\">0.42666667</span>rem;\n background-color: <span class=\"hljs-meta\">#E36264;</span>\n width: <span class=\"hljs-number\">100</span>px;\n height: <span class=\"hljs-number\">200</span>px;\n}\n</code></pre>\n<h4>less这么好用怎么用??</h4>\n<ul>\n<li>在浏览器端用</li>\n</ul>\n<pre class=\"hljs javascript\"><code class=\"javascript\"><link rel=<span class=\"hljs-string\">\"stylesheet/less\"</span> type=<span class=\"hljs-string\">\"text/css\"</span> href=<span class=\"hljs-string\">\"index.less\"</span> />\n<span class=\"xml\"><span class=\"hljs-tag\"><<span class=\"hljs-name\">script</span> <span class=\"hljs-attr\">type</span>=<span class=\"hljs-string\">\"text/javascript\"</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"js/less.2.5.3.js\"</span>></span><span class=\"undefined\"/><span class=\"hljs-tag\"></<span class=\"hljs-name\">script</span>></span></span>\n<span class=\"hljs-comment\">//注:</span>\n<span class=\"hljs-number\">1</span>、顺序不能错\n<span class=\"hljs-number\">2</span>、设置属性 rel=<span class=\"hljs-string\">\"stylesheet/less\"</span> \n<span class=\"hljs-number\">3</span>、代码需要服务器环境运行\n</code></pre>\n<ul>\n<li>编译之后引用css文件<br/>\n我推荐使用Koala.exe <a href=\"https://link.jianshu.com?t=http://koala-app.com/\" target=\"_blank\" rel=\"nofollow\">下载地址</a><br/>\n<strong>多语言支持</strong> 支持Less、Sass、CoffeeScript 和 Compass Framework。<br/>\n<strong>实时编译</strong> 监听文件,当文件改变时自动执行编译,这一切都在后台运行,无需人工操作。<br/>\n<strong>编译选项</strong> 可以设置各个语言的编译选项。<br/>\n<strong>项目配置</strong> 支持为项目创建一个全局配置,为文件设置统一编译选项。<br/>\n<strong>错误提示</strong> 在编译时如果遇到语法的错误,koala将在右下角弹出错误信息,方便开发者定位代码错误位置。<br/>\n<strong>跨平台</strong> Windows、Linux、Mac都能完美运行。</li>\n</ul>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 558px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 61.92999999999999%;\"/>\n<div class=\"image-view\" data-width=\"901\" data-height=\"558\"><img src=\"//upload-images.jianshu.io/upload_images/2180072-196d50bd310ada62.png\" data-original-width=\"901\" data-original-height=\"558\" data-original-format=\"image/png\" data-original-filesize=\"50345\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">koala.png</div>\n</div>\n<ul>\n<li>设置语言</li>\n</ul>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 556px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 61.78%;\"/>\n<div class=\"image-view\" data-width=\"900\" data-height=\"556\"><img src=\"//upload-images.jianshu.io/upload_images/2180072-c445ab66895dc9dd.png\" data-original-width=\"900\" data-original-height=\"556\" data-original-format=\"image/png\" data-original-filesize=\"38977\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">lang.png</div>\n</div>\n<ul>\n<li>添加项目</li>\n</ul>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 553px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 61.72%;\"/>\n<div class=\"image-view\" data-width=\"896\" data-height=\"553\"><img src=\"//upload-images.jianshu.io/upload_images/2180072-93173ab3e9f68b8f.png\" data-original-width=\"896\" data-original-height=\"553\" data-original-format=\"image/png\" data-original-filesize=\"56021\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">Paste_Image.png</div>\n</div>\n<ul>\n<li>编译less文件<br/>\n手动运行 【执行编译】或者点击文件勾选自动编译,它会自动检测文件更改并重新编译</li>\n</ul>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 556px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 61.919999999999995%;\"/>\n<div class=\"image-view\" data-width=\"898\" data-height=\"556\"><img src=\"//upload-images.jianshu.io/upload_images/2180072-cfb7bfbeb616a607.png\" data-original-width=\"898\" data-original-height=\"556\" data-original-format=\"image/png\" data-original-filesize=\"82836\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">Paste_Image.png</div>\n</div>\n<h3>其他用法参见 <a href=\"https://link.jianshu.com?t=http://lesscss.cn/\" target=\"_blank\" rel=\"nofollow\">LESS官网</a>\n</h3>\n\n ', '0', '2016-09-27 18:23:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('19', '好玩的CSS动效~', '\n Loading动画-01 Loading动画-02 蚀刻文本 渐变字 悬停下划线动画 鼠标光标梯度跟踪 溢出滚动渐变 漂亮的文字下划线 简单的导航栏特效 后序 本文中所有的动...\n ', '\n <blockquote>\n<p>Loading动画-01</p>\n</blockquote>\n<pre class=\"hljs xml\"><code class=\"xml\">@keyframes bouncing-loader {\n from {\n opacity: 1;\n transform: translateY(0);\n }\n to {\n opacity: 0.1;\n transform: translateY(-1rem);\n }\n}\n.bouncing-loader {\n display: flex;\n justify-content: center;\n}\n.bouncing-loader > div {\n width: 1rem;\n height: 1rem;\n margin: 3rem 0.2rem;\n background: #8385aa;\n border-radius: 50%;\n animation: bouncing-loader 0.6s infinite alternate;\n}\n.bouncing-loader > div:nth-of-type(2) {\n animation-delay: 0.2s;\n}\n.bouncing-loader > div:nth-of-type(3) {\n animation-delay: 0.4s;\n}\n\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"bouncing-loader\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span>></span><span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span>></span><span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span>></span><span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n</code></pre>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 294px; max-height: 238px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 80.95%;\"/>\n<div class=\"image-view\" data-width=\"294\" data-height=\"238\"><img src=\"//upload-images.jianshu.io/upload_images/8919399-0f59d4df29bf9fee.gif\" data-original-width=\"294\" data-original-height=\"238\" data-original-format=\"image/gif\" data-original-filesize=\"10334\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">loading效果图1</div>\n</div>\n<blockquote>\n<p>Loading动画-02</p>\n</blockquote>\n<pre class=\"hljs cpp\"><code class=\"cpp\">@keyframes donut-spin {\n <span class=\"hljs-number\">0</span>% {\n transform: rotate(<span class=\"hljs-number\">0</span>deg);\n }\n <span class=\"hljs-number\">100</span>% {\n transform: rotate(<span class=\"hljs-number\">360</span>deg);\n }\n}\n.donut {\n display: <span class=\"hljs-keyword\">inline</span>-block;\n border: <span class=\"hljs-number\">4</span><span class=\"hljs-function\">px solid <span class=\"hljs-title\">rgba</span><span class=\"hljs-params\">(<span class=\"hljs-number\">0</span>, <span class=\"hljs-number\">0</span>, <span class=\"hljs-number\">0</span>, <span class=\"hljs-number\">0.1</span>)</span></span>;\n border-left-color: #<span class=\"hljs-number\">7983f</span>f;\n border-radius: <span class=\"hljs-number\">50</span>%;\n width: <span class=\"hljs-number\">30</span>px;\n height: <span class=\"hljs-number\">30</span>px;\n animation: donut-spin <span class=\"hljs-number\">1.2</span>s linear infinite;\n}\n\n<div <span class=\"hljs-class\"><span class=\"hljs-keyword\">class</span>=\"<span class=\"hljs-title\">donut</span>\"></div>\n</span></code></pre>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 294px; max-height: 238px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 80.95%;\"/>\n<div class=\"image-view\" data-width=\"294\" data-height=\"238\"><img src=\"//upload-images.jianshu.io/upload_images/8919399-0b784dcb6ed3027f.gif\" data-original-width=\"294\" data-original-height=\"238\" data-original-format=\"image/gif\" data-original-filesize=\"8078\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">loading效果图2</div>\n</div>\n<blockquote>\n<p>蚀刻文本</p>\n</blockquote>\n<pre class=\"hljs xml\"><code class=\"xml\">.etched-text {\n text-shadow: 0 2px white;\n font-size: 1.5rem;\n font-weight: bold;\n color: #b8bec5;\n}\n\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">p</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"etched-text\"</span>></span>I appear etched into the background.<span class=\"hljs-tag\"></<span class=\"hljs-name\">p</span>></span>\n</code></pre>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 462px; max-height: 102px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 22.08%;\"/>\n<div class=\"image-view\" data-width=\"462\" data-height=\"102\"><img src=\"//upload-images.jianshu.io/upload_images/8919399-9c8722c4f4f83b24.png\" data-original-width=\"462\" data-original-height=\"102\" data-original-format=\"image/png\" data-original-filesize=\"5308\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">蚀刻文本效果图</div>\n</div>\n<blockquote>\n<p>渐变字</p>\n</blockquote>\n<pre class=\"hljs xml\"><code class=\"xml\">.gradient-text {\n background: -webkit-linear-gradient(skyblue, cornflowerblue);\n -webkit-text-fill-color: transparent;\n -webkit-background-clip: text;\n}\n\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">p</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"gradient-text\"</span>></span>Gradient text<span class=\"hljs-tag\"></<span class=\"hljs-name\">p</span>></span>\n</code></pre>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 322px; max-height: 75px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 23.29%;\"/>\n<div class=\"image-view\" data-width=\"322\" data-height=\"75\"><img src=\"//upload-images.jianshu.io/upload_images/8919399-4a82b022ec639e33.png\" data-original-width=\"322\" data-original-height=\"75\" data-original-format=\"image/png\" data-original-filesize=\"9619\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">image.png</div>\n</div>\n<blockquote>\n<p>悬停下划线动画</p>\n</blockquote>\n<pre class=\"hljs bash\"><code class=\"bash\">.hover-underline-animation {\n display: inline-block;\n position: relative;\n color: <span class=\"hljs-comment\">#0087ca;</span>\n}\n.hover-underline-animation::after {\n content: <span class=\"hljs-string\">\'\'</span>;\n position: absolute;\n width: 100%;\n transform: scaleX(0);\n height: 2px;\n bottom: 0;\n left: 0;\n background-color: <span class=\"hljs-comment\">#0087ca;</span>\n transform-origin: bottom right;\n transition: transform 0.25s ease-out;\n}\n.hover-underline-animation:hover::after {\n transform: scaleX(1);\n transform-origin: bottom left;\n}\n\n<p class=<span class=\"hljs-string\">\"hover-underline-animation\"</span>>Hover this text to see the effect!</p>\n</code></pre>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 495px; max-height: 233px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 47.07%;\"/>\n<div class=\"image-view\" data-width=\"495\" data-height=\"233\"><img src=\"//upload-images.jianshu.io/upload_images/8919399-d2329b41ee915313.gif\" data-original-width=\"495\" data-original-height=\"233\" data-original-format=\"image/gif\" data-original-filesize=\"5103\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">效果图</div>\n</div>\n<blockquote>\n<p>鼠标光标梯度跟踪</p>\n</blockquote>\n<pre class=\"hljs bash\"><code class=\"bash\">.mouse-cursor-gradient-tracking {\n position: relative;\n background: <span class=\"hljs-comment\">#7983ff;</span>\n padding: 0.5rem 1rem;\n font-size: 1.2rem;\n border: none;\n color: white;\n cursor: pointer;\n outline: none;\n overflow: hidden;\n}\n.mouse-cursor-gradient-tracking span {\n position: relative;\n}\n.mouse-cursor-gradient-tracking::before {\n --size: 0;\n content: <span class=\"hljs-string\">\'\'</span>;\n position: absolute;\n left: var(--x);\n top: var(--y);\n width: var(--size);\n height: var(--size);\n background: radial-gradient(circle closest-side, pink, transparent);\n transform: translate(-50%, -50%);\n transition: width 0.2s ease, height 0.2s ease;\n}\n.mouse-cursor-gradient-tracking:hover::before {\n --size: 200px;\n}\n\n<button class=<span class=\"hljs-string\">\"mouse-cursor-gradient-tracking\"</span>>\n <span>Hover me</span>\n</button>\n\nvar btn = document.querySelector(<span class=\"hljs-string\">\'.mouse-cursor-gradient-tracking\'</span>)\nbtn.onmousemove = <span class=\"hljs-keyword\">function</span>(e) {\n var x = e.pageX - btn.offsetLeft\n var y = e.pageY - btn.offsetTop\n btn.style.setProperty(<span class=\"hljs-string\">\'--x\'</span>, x + <span class=\"hljs-string\">\'px\'</span>)\n btn.style.setProperty(<span class=\"hljs-string\">\'--y\'</span>, y + <span class=\"hljs-string\">\'px\'</span>)\n}\n</code></pre>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 313px; max-height: 233px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 74.44%;\"/>\n<div class=\"image-view\" data-width=\"313\" data-height=\"233\"><img src=\"//upload-images.jianshu.io/upload_images/8919399-e0f8eb42b8f7fe6c.gif\" data-original-width=\"313\" data-original-height=\"233\" data-original-format=\"image/gif\" data-original-filesize=\"208400\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">鼠标跟随动画</div>\n</div>\n<blockquote>\n<p>溢出滚动渐变</p>\n</blockquote>\n<pre class=\"hljs xml\"><code class=\"xml\">.overflow-scroll-gradient {\n position: relative;\n}\n.overflow-scroll-gradient::after {\n content: \'\';\n position: absolute;\n bottom: 0;\n width: 240px;\n height: 25px;\n background: linear-gradient(\n rgba(255, 255, 255, 0.001),\n white\n ); /* transparent keyword is broken in Safari */\n pointer-events: none;\n}\n.overflow-scroll-gradient__scroller {\n overflow-y: scroll;\n background: white;\n width: 240px;\n height: 200px;\n padding: 15px 0;\n line-height: 1.2;\n text-align: center;\n}\n\n<span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"overflow-scroll-gradient\"</span>></span>\n <span class=\"hljs-tag\"><<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"overflow-scroll-gradient__scroller\"</span>></span>\n Content to be scrolled\n <span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n<span class=\"hljs-tag\"></<span class=\"hljs-name\">div</span>></span>\n</code></pre>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 253px; max-height: 215px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 84.98%;\"/>\n<div class=\"image-view\" data-width=\"253\" data-height=\"215\"><img src=\"//upload-images.jianshu.io/upload_images/8919399-f6969ad5f22a2223.png\" data-original-width=\"253\" data-original-height=\"215\" data-original-format=\"image/png\" data-original-filesize=\"6362\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">溢出滚动渐变</div>\n</div>\n<blockquote>\n<p>漂亮的文字下划线</p>\n</blockquote>\n<pre class=\"hljs cpp\"><code class=\"cpp\">.pretty-text-underline {\n font-family: Arial, sans-serif;\n display: <span class=\"hljs-keyword\">inline</span>;\n font-size: <span class=\"hljs-number\">18</span>px;\n text-shadow: <span class=\"hljs-number\">1</span>px <span class=\"hljs-number\">1</span>px <span class=\"hljs-number\">0</span> #f5f6f9, <span class=\"hljs-number\">-1</span>px <span class=\"hljs-number\">1</span>px <span class=\"hljs-number\">0</span> #f5f6f9, <span class=\"hljs-number\">-1</span>px <span class=\"hljs-number\">-1</span>px <span class=\"hljs-number\">0</span> #f5f6f9, <span class=\"hljs-number\">1</span>px <span class=\"hljs-number\">-1</span>px <span class=\"hljs-number\">0</span> #f5f6f9;\n background-image: linear-gradient(<span class=\"hljs-number\">90</span>deg, currentColor <span class=\"hljs-number\">100</span>%, transparent <span class=\"hljs-number\">100</span>%);\n background-position: <span class=\"hljs-number\">0</span> <span class=\"hljs-number\">0.98</span>em;\n background-repeat: repeat-x;\n background-size: <span class=\"hljs-number\">1</span>px <span class=\"hljs-number\">1</span>px;\n}\n.pretty-text-underline::-moz-selection {\n background-color: rgba(<span class=\"hljs-number\">0</span>, <span class=\"hljs-number\">150</span>, <span class=\"hljs-number\">255</span>, <span class=\"hljs-number\">0.3</span>);\n text-shadow: none;\n}\n.pretty-text-underline::selection {\n background-color: rgba(<span class=\"hljs-number\">0</span>, <span class=\"hljs-number\">150</span>, <span class=\"hljs-number\">255</span>, <span class=\"hljs-number\">0.3</span>);\n text-shadow: none;\n}\n\n<p <span class=\"hljs-class\"><span class=\"hljs-keyword\">class</span>=\"<span class=\"hljs-title\">pretty</span>-<span class=\"hljs-title\">text</span>-<span class=\"hljs-title\">underline</span>\"><span class=\"hljs-title\">Pretty</span> <span class=\"hljs-title\">text</span> <span class=\"hljs-title\">underline</span> <span class=\"hljs-title\">without</span> <span class=\"hljs-title\">clipping</span> <span class=\"hljs-title\">descending</span> <span class=\"hljs-title\">letters</span>.</p>\n</span></code></pre>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 478px; max-height: 52px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 10.879999999999999%;\"/>\n<div class=\"image-view\" data-width=\"478\" data-height=\"52\"><img src=\"//upload-images.jianshu.io/upload_images/8919399-c2e461128a2f53c9.png\" data-original-width=\"478\" data-original-height=\"52\" data-original-format=\"image/png\" data-original-filesize=\"4934\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">文字下划线效果图</div>\n</div>\n<blockquote>\n<p>简单的导航栏特效</p>\n</blockquote>\n<pre class=\"hljs cpp\"><code class=\"cpp\">span {\n padding: <span class=\"hljs-number\">0</span> <span class=\"hljs-number\">1</span>rem;\n transition: opacity <span class=\"hljs-number\">0.2</span>s;\n}\n.sibling-fade:hover span:<span class=\"hljs-keyword\">not</span>(:hover) {\n opacity: <span class=\"hljs-number\">0.5</span>;\n}\n\n<div <span class=\"hljs-class\"><span class=\"hljs-keyword\">class</span>=\"<span class=\"hljs-title\">sibling</span>-<span class=\"hljs-title\">fade</span>\">\n <span><span class=\"hljs-title\">Item</span> 1</span>\n <span><span class=\"hljs-title\">Item</span> 2</span>\n <span><span class=\"hljs-title\">Item</span> 3</span>\n <span><span class=\"hljs-title\">Item</span> 4</span>\n <span><span class=\"hljs-title\">Item</span> 5</span>\n <span><span class=\"hljs-title\">Item</span> 6</span>\n</div>\n</span></code></pre>\n<div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 558px; max-height: 46px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 8.24%;\"/>\n<div class=\"image-view\" data-width=\"558\" data-height=\"46\"><img src=\"//upload-images.jianshu.io/upload_images/8919399-5bdf23a16529d8f0.gif\" data-original-width=\"558\" data-original-height=\"46\" data-original-format=\"image/gif\" data-original-filesize=\"41338\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">简单的导航栏特效</div>\n</div>\n<blockquote>\n<p>后序</p>\n</blockquote>\n<p>本文中所有的动态图都是自己制作的,整理出来供大家学习和参考,喜欢的朋友麻烦给个星~谢谢。<br/>\n参考文献:<a href=\"https://link.jianshu.com?t=https%3A%2F%2Fatomiks.github.io%2F30-seconds-of-css%2F\" target=\"_blank\" rel=\"nofollow\">30 Seconds of CSS</a></p>\n\n ', '0', '2018-03-06 16:10:00', '0000-00-00 00:00:00', '1', '0', '0');
INSERT INTO `fs_article` VALUES ('20', '超简单效果,css制作毛毛虫爬行', '\n 今天突然想起来了小时候在自家池塘边的小树上看到的毛毛虫了,我也不知道为什么,那么想起来了就写一下它爬行的动作。', '\n <div class=\"image-package\">\n<div class=\"image-container\" style=\"max-width: 700px; max-height: 462px;\">\n<div class=\"image-container-fill\" style=\"padding-bottom: 57.11000000000001%;\"/>\n<div class=\"image-view\" data-width=\"809\" data-height=\"462\"><img src=\"//upload-images.jianshu.io/upload_images/4809664-5d0b56663906b852\" data-original-width=\"809\" data-original-height=\"462\" data-original-format=\"image/gif\" data-original-filesize=\"83766\" class=\"image-loading\" style=\"cursor: zoom-in;\"/></div>\n</div>\n<div class=\"image-caption\">web前端学习群,189394454,有视频、源码、学习方法等大量干货分享</div>\n</div><br/>\n<p>今天突然想起来了小时候在自家池塘边的小树上看到的毛毛虫了,我也不知道为什么,那么想起来了就写一下它爬行的动作。<br/>\n', '0', '2018-03-07 10:55:00', '0000-00-00 00:00:00', '1', '0', '0');
-- ----------------------------
-- Table structure for fs_article__account
-- ----------------------------
DROP TABLE IF EXISTS `fs_article__account`;
CREATE TABLE `fs_article__account` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`article_id` int(11) NOT NULL DEFAULT '0' COMMENT '文章ID',
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文章收藏关系表';
-- ----------------------------
-- Records of fs_article__account
-- ----------------------------
-- ----------------------------
-- Table structure for fs_article__tags
-- ----------------------------
DROP TABLE IF EXISTS `fs_article__tags`;
CREATE TABLE `fs_article__tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`article_id` int(11) NOT NULL DEFAULT '0' COMMENT '文章',
`tag_id` int(11) NOT NULL DEFAULT '0' COMMENT '标签ID',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文章标签关系表';
-- ----------------------------
-- Records of fs_article__tags
-- ----------------------------
-- ----------------------------
-- Table structure for fs_classify
-- ----------------------------
DROP TABLE IF EXISTS `fs_classify`;
CREATE TABLE `fs_classify` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`classify_name` varchar(255) DEFAULT NULL COMMENT '分类名',
`pid` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='分类';
-- ----------------------------
-- Records of fs_classify
-- ----------------------------
INSERT INTO `fs_classify` VALUES ('1', '前端', '0');
INSERT INTO `fs_classify` VALUES ('2', 'iOS', '0');
INSERT INTO `fs_classify` VALUES ('3', 'Android', '0');
INSERT INTO `fs_classify` VALUES ('4', '后端', '0');
INSERT INTO `fs_classify` VALUES ('5', '人工智能', '0');
-- ----------------------------
-- Table structure for fs_operation_logs
-- ----------------------------
DROP TABLE IF EXISTS `fs_operation_logs`;
CREATE TABLE `fs_operation_logs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
`user_name` varchar(255) DEFAULT NULL COMMENT '用户名称',
`operation_ip` varchar(255) DEFAULT NULL COMMENT '用户ip地址',
`operation_url` varchar(255) DEFAULT NULL COMMENT '操作链接',
`operation_method` varchar(255) DEFAULT NULL COMMENT '请求方法',
`operation_desc` varchar(255) DEFAULT NULL COMMENT '操作详情',
`operation_time` datetime DEFAULT NULL COMMENT '操作时间',
`operation_state` int(11) NOT NULL DEFAULT '2' COMMENT '日志状态(1登录 /注册 2用户操作)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=144 DEFAULT CHARSET=utf8 COMMENT='用户操作日志';
-- ----------------------------
-- Records of fs_operation_logs
-- ----------------------------
INSERT INTO `fs_operation_logs` VALUES ('1', '1', 'admin', '::1', 'insertLog', 'POST', '登录', '2018-03-20 19:00:49', '1');
INSERT INTO `fs_operation_logs` VALUES ('2', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-20 19:15:13', '1');
INSERT INTO `fs_operation_logs` VALUES ('3', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-20 19:18:35', '1');
INSERT INTO `fs_operation_logs` VALUES ('4', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-20 19:25:47', '1');
INSERT INTO `fs_operation_logs` VALUES ('5', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-20 19:37:02', '1');
INSERT INTO `fs_operation_logs` VALUES ('6', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-20 19:37:27', '1');
INSERT INTO `fs_operation_logs` VALUES ('7', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 11:13:35', '1');
INSERT INTO `fs_operation_logs` VALUES ('8', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 11:14:41', '1');
INSERT INTO `fs_operation_logs` VALUES ('9', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 11:24:51', '1');
INSERT INTO `fs_operation_logs` VALUES ('10', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 11:35:04', '1');
INSERT INTO `fs_operation_logs` VALUES ('11', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 11:40:03', '1');
INSERT INTO `fs_operation_logs` VALUES ('12', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 13:09:41', '1');
INSERT INTO `fs_operation_logs` VALUES ('13', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:10:39', '1');
INSERT INTO `fs_operation_logs` VALUES ('14', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:12:56', '1');
INSERT INTO `fs_operation_logs` VALUES ('15', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:13:54', '1');
INSERT INTO `fs_operation_logs` VALUES ('16', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:14:23', '1');
INSERT INTO `fs_operation_logs` VALUES ('17', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:15:04', '1');
INSERT INTO `fs_operation_logs` VALUES ('18', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:17:13', '1');
INSERT INTO `fs_operation_logs` VALUES ('19', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:23:03', '1');
INSERT INTO `fs_operation_logs` VALUES ('20', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:23:29', '1');
INSERT INTO `fs_operation_logs` VALUES ('21', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:24:15', '1');
INSERT INTO `fs_operation_logs` VALUES ('22', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:24:49', '1');
INSERT INTO `fs_operation_logs` VALUES ('23', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:25:46', '1');
INSERT INTO `fs_operation_logs` VALUES ('24', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:25:45', '1');
INSERT INTO `fs_operation_logs` VALUES ('25', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:27:12', '1');
INSERT INTO `fs_operation_logs` VALUES ('26', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:30:58', '1');
INSERT INTO `fs_operation_logs` VALUES ('27', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:34:59', '1');
INSERT INTO `fs_operation_logs` VALUES ('28', '1', 'admin', null, '/common/sigin', 'POST', '登录', '2018-03-21 14:39:17', '1');
INSERT INTO `fs_operation_logs` VALUES ('29', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:39:28', '1');
INSERT INTO `fs_operation_logs` VALUES ('30', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:44:02', '1');
INSERT INTO `fs_operation_logs` VALUES ('31', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:47:03', '1');
INSERT INTO `fs_operation_logs` VALUES ('32', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:47:14', '1');
INSERT INTO `fs_operation_logs` VALUES ('33', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 14:49:17', '1');
INSERT INTO `fs_operation_logs` VALUES ('34', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 15:00:35', '1');
INSERT INTO `fs_operation_logs` VALUES ('35', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 15:00:54', '1');
INSERT INTO `fs_operation_logs` VALUES ('36', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 15:02:34', '1');
INSERT INTO `fs_operation_logs` VALUES ('37', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 15:08:18', '1');
INSERT INTO `fs_operation_logs` VALUES ('38', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 15:17:43', '1');
INSERT INTO `fs_operation_logs` VALUES ('39', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 15:18:59', '1');
INSERT INTO `fs_operation_logs` VALUES ('40', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 15:23:45', '1');
INSERT INTO `fs_operation_logs` VALUES ('41', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 15:25:11', '1');
INSERT INTO `fs_operation_logs` VALUES ('42', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 15:27:10', '1');
INSERT INTO `fs_operation_logs` VALUES ('43', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 15:37:22', '1');
INSERT INTO `fs_operation_logs` VALUES ('44', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 15:40:19', '1');
INSERT INTO `fs_operation_logs` VALUES ('45', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 15:42:34', '1');
INSERT INTO `fs_operation_logs` VALUES ('46', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 15:43:16', '1');
INSERT INTO `fs_operation_logs` VALUES ('47', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 15:54:38', '1');
INSERT INTO `fs_operation_logs` VALUES ('48', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 15:59:06', '1');
INSERT INTO `fs_operation_logs` VALUES ('49', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 16:02:49', '1');
INSERT INTO `fs_operation_logs` VALUES ('50', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 16:10:45', '1');
INSERT INTO `fs_operation_logs` VALUES ('51', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 16:12:35', '1');
INSERT INTO `fs_operation_logs` VALUES ('52', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 16:13:02', '1');
INSERT INTO `fs_operation_logs` VALUES ('53', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 16:16:42', '1');
INSERT INTO `fs_operation_logs` VALUES ('54', '1', 'admin', '::1', '/common/exit', 'POST', '退出登录', '2018-03-21 16:16:47', '1');
INSERT INTO `fs_operation_logs` VALUES ('55', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 16:17:01', '1');
INSERT INTO `fs_operation_logs` VALUES ('56', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 16:20:44', '1');
INSERT INTO `fs_operation_logs` VALUES ('57', '1', 'admin', '::1', '/common/exit', 'POST', '退出登录', '2018-03-21 16:24:55', '1');
INSERT INTO `fs_operation_logs` VALUES ('58', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 16:25:03', '1');
INSERT INTO `fs_operation_logs` VALUES ('60', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 16:50:05', '1');
INSERT INTO `fs_operation_logs` VALUES ('61', '1', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 17:08:36', '1');
INSERT INTO `fs_operation_logs` VALUES ('63', '8', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 17:20:54', '1');
INSERT INTO `fs_operation_logs` VALUES ('64', '1', 'admin', '::1', '/deleteuser', 'POST', '删除用户', '2018-03-21 17:34:17', '2');
INSERT INTO `fs_operation_logs` VALUES ('65', '1', 'admin', '::1', '/deleteuser', 'POST', '删除用户', '2018-03-21 17:36:11', '2');
INSERT INTO `fs_operation_logs` VALUES ('66', '1', 'admin', '::1', '/deleteuser', 'POST', '删除用户', '2018-03-21 17:38:16', '2');
INSERT INTO `fs_operation_logs` VALUES ('67', '8', 'admin', '::1', '/common/exit', 'POST', '退出登录', '2018-03-21 17:50:56', '1');
INSERT INTO `fs_operation_logs` VALUES ('68', '8', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 17:52:23', '1');
INSERT INTO `fs_operation_logs` VALUES ('69', '8', 'admin', '::1', '/common/exit', 'POST', '退出登录', '2018-03-21 17:53:04', '1');
INSERT INTO `fs_operation_logs` VALUES ('70', '8', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 17:53:11', '1');
INSERT INTO `fs_operation_logs` VALUES ('71', '8', 'admin', '::1', '/common/exit', 'POST', '退出登录', '2018-03-21 18:08:43', '1');
INSERT INTO `fs_operation_logs` VALUES ('72', '8', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 18:09:14', '1');
INSERT INTO `fs_operation_logs` VALUES ('73', '1', 'admin', '::1', '/updateuser', 'POST', '修改用户资料', '2018-03-21 18:10:04', '2');
INSERT INTO `fs_operation_logs` VALUES ('74', '1', 'admin', '::1', '/updateuser', 'POST', '修改用户资料', '2018-03-21 18:10:33', '2');
INSERT INTO `fs_operation_logs` VALUES ('75', '1', 'admin', '::1', '/updateuser', 'POST', '修改用户资料', '2018-03-21 18:10:58', '2');
INSERT INTO `fs_operation_logs` VALUES ('76', '1', 'admin', '::1', '/updateuser', 'POST', '修改用户资料', '2018-03-21 18:12:03', '2');
INSERT INTO `fs_operation_logs` VALUES ('77', '1', 'admin', '::1', '/deleteuser', 'POST', '删除用户', '2018-03-21 18:14:16', '2');
INSERT INTO `fs_operation_logs` VALUES ('78', '8', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 18:25:59', '1');
INSERT INTO `fs_operation_logs` VALUES ('79', '8', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 18:46:05', '1');
INSERT INTO `fs_operation_logs` VALUES ('80', '8', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 18:50:01', '1');
INSERT INTO `fs_operation_logs` VALUES ('81', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 18:57:10', '1');
INSERT INTO `fs_operation_logs` VALUES ('82', '8', 'admin', '::1', '/common/sigin', 'POST', '登录', '2018-03-21 19:01:17', '1');
INSERT INTO `fs_operation_logs` VALUES ('83', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 19:07:06', '1');
INSERT INTO `fs_operation_logs` VALUES ('84', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 19:13:50', '1');
INSERT INTO `fs_operation_logs` VALUES ('85', '8', 'admin', '::1', '/deleteuser', 'POST', '删除用户', '2018-03-21 19:14:37', '2');
INSERT INTO `fs_operation_logs` VALUES ('86', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 19:16:37', '1');
INSERT INTO `fs_operation_logs` VALUES ('87', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 19:25:06', '1');
INSERT INTO `fs_operation_logs` VALUES ('88', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 19:27:50', '1');
INSERT INTO `fs_operation_logs` VALUES ('89', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 19:31:23', '1');
INSERT INTO `fs_operation_logs` VALUES ('90', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 19:32:41', '1');
INSERT INTO `fs_operation_logs` VALUES ('91', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 19:34:53', '1');
INSERT INTO `fs_operation_logs` VALUES ('92', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 19:35:59', '1');
INSERT INTO `fs_operation_logs` VALUES ('93', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 19:38:49', '1');
INSERT INTO `fs_operation_logs` VALUES ('94', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 19:47:43', '1');
INSERT INTO `fs_operation_logs` VALUES ('95', '8', 'admin', '::1', '/api/exit', 'GET', '退出登录', '2018-03-21 19:54:21', '1');
INSERT INTO `fs_operation_logs` VALUES ('96', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 19:56:17', '1');
INSERT INTO `fs_operation_logs` VALUES ('97', '8', 'admin', '::1', '/api/exit', 'GET', '退出登录', '2018-03-21 19:56:19', '1');
INSERT INTO `fs_operation_logs` VALUES ('98', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 19:59:10', '1');
INSERT INTO `fs_operation_logs` VALUES ('99', '8', 'admin', '::1', '/api/exit', 'POST', '退出登录', '2018-03-21 19:59:12', '1');
INSERT INTO `fs_operation_logs` VALUES ('100', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:01:29', '1');
INSERT INTO `fs_operation_logs` VALUES ('101', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:02:29', '1');
INSERT INTO `fs_operation_logs` VALUES ('102', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:02:41', '1');
INSERT INTO `fs_operation_logs` VALUES ('103', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:04:44', '1');
INSERT INTO `fs_operation_logs` VALUES ('104', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:06:24', '1');
INSERT INTO `fs_operation_logs` VALUES ('105', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:06:59', '1');
INSERT INTO `fs_operation_logs` VALUES ('106', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:08:03', '1');
INSERT INTO `fs_operation_logs` VALUES ('107', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:09:01', '1');
INSERT INTO `fs_operation_logs` VALUES ('108', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:11:07', '1');
INSERT INTO `fs_operation_logs` VALUES ('109', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:12:50', '1');
INSERT INTO `fs_operation_logs` VALUES ('110', '8', 'admin', '::1', '/api/user/exit', 'POST', '退出登录', '2018-03-21 20:12:53', '1');
INSERT INTO `fs_operation_logs` VALUES ('111', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:13:02', '1');
INSERT INTO `fs_operation_logs` VALUES ('112', '8', 'admin', '::1', '/api/user/exit', 'POST', '退出登录', '2018-03-21 20:13:04', '1');
INSERT INTO `fs_operation_logs` VALUES ('113', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:14:02', '1');
INSERT INTO `fs_operation_logs` VALUES ('114', '8', 'admin', '::1', '/api/user/exit', 'POST', '退出登录', '2018-03-21 20:14:05', '1');
INSERT INTO `fs_operation_logs` VALUES ('115', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:14:33', '1');
INSERT INTO `fs_operation_logs` VALUES ('116', '8', 'admin', '::1', '/api/user/exit', 'POST', '退出登录', '2018-03-21 20:14:35', '1');
INSERT INTO `fs_operation_logs` VALUES ('117', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:16:13', '1');
INSERT INTO `fs_operation_logs` VALUES ('118', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:16:27', '1');
INSERT INTO `fs_operation_logs` VALUES ('119', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:16:37', '1');
INSERT INTO `fs_operation_logs` VALUES ('120', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-21 20:25:21', '1');
INSERT INTO `fs_operation_logs` VALUES ('121', '8', 'admin', '::1', '/api/user/exit', 'POST', '退出登录', '2018-03-21 20:25:24', '1');
INSERT INTO `fs_operation_logs` VALUES ('122', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-22 09:00:50', '1');
INSERT INTO `fs_operation_logs` VALUES ('123', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-22 09:17:14', '1');
INSERT INTO `fs_operation_logs` VALUES ('124', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-22 09:21:13', '1');
INSERT INTO `fs_operation_logs` VALUES ('125', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-22 09:23:34', '1');
INSERT INTO `fs_operation_logs` VALUES ('126', '8', 'admin', '::1', '/api/user/exit', 'POST', '退出登录', '2018-03-22 09:34:55', '1');
INSERT INTO `fs_operation_logs` VALUES ('127', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-22 09:35:06', '1');
INSERT INTO `fs_operation_logs` VALUES ('128', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-22 09:51:59', '1');
INSERT INTO `fs_operation_logs` VALUES ('129', '8', 'admin', '::1', '/updateuser', 'POST', '修改用户资料', '2018-03-22 09:52:17', '2');
INSERT INTO `fs_operation_logs` VALUES ('130', '8', 'admin', '::1', '/api/user/exit', 'POST', '退出登录', '2018-03-22 09:53:01', '1');
INSERT INTO `fs_operation_logs` VALUES ('131', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-22 09:53:05', '1');
INSERT INTO `fs_operation_logs` VALUES ('132', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-22 09:53:27', '1');
INSERT INTO `fs_operation_logs` VALUES ('133', '8', 'admin', '::1', '/updateuser', 'POST', '修改用户资料', '2018-03-22 09:58:34', '2');
INSERT INTO `fs_operation_logs` VALUES ('134', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-22 10:18:26', '1');
INSERT INTO `fs_operation_logs` VALUES ('135', '8', 'admin', '::1', '/api/auth/update', 'PUT', '修改用户资料', '2018-03-22 10:18:50', '2');
INSERT INTO `fs_operation_logs` VALUES ('136', '8', 'admin', '::1', '/api/auth/update', 'PUT', '修改用户资料', '2018-03-22 10:19:06', '2');
INSERT INTO `fs_operation_logs` VALUES ('137', '8', 'admin', '::1', '/api/auth/update', 'PUT', '修改用户资料', '2018-03-22 10:19:54', '2');
INSERT INTO `fs_operation_logs` VALUES ('138', '8', 'admin', '::1', '/api/user/exit', 'POST', '退出登录', '2018-03-22 10:20:47', '1');
INSERT INTO `fs_operation_logs` VALUES ('139', '8', 'admin', '::1', '/api/user/exit', 'POST', '退出登录', '2018-03-22 10:23:27', '1');
INSERT INTO `fs_operation_logs` VALUES ('140', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-22 10:23:30', '1');
INSERT INTO `fs_operation_logs` VALUES ('141', '8', 'admin', '::1', '/api/user/exit', 'POST', '退出登录', '2018-03-22 10:26:50', '1');
INSERT INTO `fs_operation_logs` VALUES ('142', '8', 'admin', '::1', '/api/sigin', 'POST', '登录', '2018-03-22 10:26:51', '1');
INSERT INTO `fs_operation_logs` VALUES ('143', '8', 'admin', '::1', '/api/auth/update', 'PUT', '修改用户资料', '2018-03-22 10:26:59', '2');
-- ----------------------------
-- Table structure for fs_resources
-- ----------------------------
DROP TABLE IF EXISTS `fs_resources`;
CREATE TABLE `fs_resources` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL COMMENT '资源名称',
`url` varchar(255) DEFAULT NULL COMMENT '路由地址',
`icon` varchar(255) DEFAULT NULL COMMENT '图标',
`pid` int(11) DEFAULT NULL COMMENT '父级ID',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='资源表';
-- ----------------------------
-- Records of fs_resources
-- ----------------------------
INSERT INTO `fs_resources` VALUES ('1', '用户', '/user', null, '0');
INSERT INTO `fs_resources` VALUES ('2', '日志', '/logs', null, '0');
INSERT INTO `fs_resources` VALUES ('3', '创建用户', null, null, '1');
-- ----------------------------
-- Table structure for fs_role
-- ----------------------------
DROP TABLE IF EXISTS `fs_role`;
CREATE TABLE `fs_role` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`role_name` varchar(255) NOT NULL DEFAULT '' COMMENT '角色名称',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='角色';
-- ----------------------------
-- Records of fs_role
-- ----------------------------
INSERT INTO `fs_role` VALUES ('1', '超级管理员');
INSERT INTO `fs_role` VALUES ('2', '普通用户');
-- ----------------------------
-- Table structure for fs_role__resources
-- ----------------------------
DROP TABLE IF EXISTS `fs_role__resources`;
CREATE TABLE `fs_role__resources` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`role_id` int(11) DEFAULT NULL COMMENT '角色ID',
`resource_id` int(11) DEFAULT NULL COMMENT '资源ID',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='角色资源关系表';
-- ----------------------------
-- Records of fs_role__resources
-- ----------------------------
INSERT INTO `fs_role__resources` VALUES ('1', '1', '1');
INSERT INTO `fs_role__resources` VALUES ('2', '1', '3');
INSERT INTO `fs_role__resources` VALUES ('3', '1', '2');
-- ----------------------------
-- Table structure for fs_tags
-- ----------------------------
DROP TABLE IF EXISTS `fs_tags`;
CREATE TABLE `fs_tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tag_name` varchar(255) DEFAULT NULL COMMENT '标签名',
`tag_icon` varchar(255) DEFAULT NULL COMMENT '标签图标',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='标签';
-- ----------------------------
-- Records of fs_tags
-- ----------------------------
|
--- URI Online Judge SQL
--- Copyright URI Online Judge
--- www.urionlinejudge.com.br
--- Problem 2613
CREATE TABLE prices (
id numeric PRIMARY KEY,
categorie varchar(50),
value numeric
);
CREATE TABLE movies (
id numeric PRIMARY KEY,
name varchar(50),
id_prices numeric REFERENCES prices (id)
);
INSERT INTO prices (id , categorie, value)
VALUES
(1, 'Releases', 3.50),
(2, 'Bronze Seal', 2.00),
(3, 'Silver Seal', 2.50),
(4, 'Gold Seal', 3.00),
(5, 'Promotion', 1.50);
INSERT INTO movies (id, name, id_prices)
VALUES
(1, 'Batman', 3),
(2, 'The Battle of the Dark River', 3),
(3, 'White Duck', 5),
(4, 'Breaking Barriers', 4),
(5, 'The Two Hours', 2);
/* Execute this query to drop the tables */
-- DROP TABLE movies, prices; --
|
<reponame>chitratsr/AzureSynapseScriptsAndAccelerators<gh_stars>10-100
select * from admin._v_system_info;
|
<reponame>RyanAFinney/sakai
-- Emergency fix to enable course site creation in 2.4.x demo systems.
update CM_ACADEMIC_SESSION_T set START_DATE='01-JAN-2008', END_DATE='01-APR-2008' where START_DATE='01-JAN-2007';
update CM_ACADEMIC_SESSION_T set START_DATE='01-APR-2008', END_DATE='01-JUN-2008' where START_DATE='01-APR-2007';
update CM_ACADEMIC_SESSION_T set START_DATE='01-JUN-2008', END_DATE='01-SEP-2008' where START_DATE='01-JUN-2007';
update CM_ACADEMIC_SESSION_T set START_DATE='01-SEP-2008', END_DATE='01-JAN-2009' where START_DATE='01-SEP-2007';
update CM_MEMBER_CONTAINER_T set START_DATE='01-JAN-2008', END_DATE='01-APR-2008' where START_DATE='01-JAN-2007';
update CM_MEMBER_CONTAINER_T set START_DATE='01-APR-2008', END_DATE='01-JUN-2008' where START_DATE='01-APR-2007';
update CM_MEMBER_CONTAINER_T set START_DATE='01-JUN-2008', END_DATE='01-SEP-2008' where START_DATE='01-JUN-2007';
update CM_MEMBER_CONTAINER_T set START_DATE='01-SEP-2008', END_DATE='01-JAN-2009' where START_DATE='01-SEP-2007';
|
<gh_stars>0
-- MySQL dump 10.13 Distrib 8.0.13, for Linux (x86_64)
--
-- Host: localhost Database: tackpion
-- ------------------------------------------------------
-- Server version 8.0.13
/*!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 */;
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 */;
--
-- Current Database: `tackpion`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `tackpion` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */;
USE `tackpion`;
--
-- Table structure for table `ADMIN`
--
DROP TABLE IF EXISTS `ADMIN`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `ADMIN` (
`id` varchar(40) CHARACTER SET utf16 NOT NULL,
`password` varchar(64) CHARACTER SET utf16 DEFAULT NULL,
`classid` int(11) NOT NULL AUTO_INCREMENT,
`privileges` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`classid`),
UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ADMIN`
--
LOCK TABLES `ADMIN` WRITE;
/*!40000 ALTER TABLE `ADMIN` DISABLE KEYS */;
INSERT INTO `ADMIN` VALUES ('hamoney9409','admin',1,1),('fjvbn2003','admin',2,1);
/*!40000 ALTER TABLE `ADMIN` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `GAME`
--
DROP TABLE IF EXISTS `GAME`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `GAME` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`player1` int(11) NOT NULL,
`player2` int(11) NOT NULL,
`start_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`end_date` datetime DEFAULT NULL COMMENT 'null if game is still playing',
`score1_p1` int(2) NOT NULL DEFAULT '0',
`score1_p2` int(2) NOT NULL DEFAULT '0',
`score2_p1` int(2) NOT NULL DEFAULT '0',
`score2_p2` int(2) NOT NULL DEFAULT '0',
`score3_p1` int(2) NOT NULL DEFAULT '0',
`score3_p2` int(2) NOT NULL DEFAULT '0',
`score4_p1` int(2) NOT NULL DEFAULT '0',
`score4_p2` int(2) NOT NULL DEFAULT '0',
`rank_increment_p1` int(11) DEFAULT NULL,
`rank_increment_p2` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `is_playing_idx` (`player1`,`player2`),
KEY `is_playing2_idx` (`player2`),
CONSTRAINT `is_playing1` FOREIGN KEY (`player1`) REFERENCES `PLAYER` (`id`) ON UPDATE CASCADE,
CONSTRAINT `is_playing2` FOREIGN KEY (`player2`) REFERENCES `PLAYER` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `GAME`
--
LOCK TABLES `GAME` WRITE;
/*!40000 ALTER TABLE `GAME` DISABLE KEYS */;
INSERT INTO `GAME` VALUES (1,1,2,'2018-12-25 13:11:22','2018-12-26 09:11:22',3,8,3,8,4,7,3,8,NULL,NULL),(4,1,4,'2018-12-26 16:33:40','2018-12-26 17:07:26',4,7,4,7,8,3,8,3,NULL,NULL),(5,1,2,'2018-12-26 17:22:50',NULL,3,8,7,4,10,1,4,7,NULL,NULL),(7,1,2,'2018-12-26 18:23:34',NULL,0,0,0,0,0,0,0,0,NULL,NULL);
/*!40000 ALTER TABLE `GAME` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `PLAYER`
--
DROP TABLE IF EXISTS `PLAYER`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `PLAYER` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(40) CHARACTER SET utf16 DEFAULT NULL,
`teamid` int(11) DEFAULT NULL,
`rank` int(11) NOT NULL DEFAULT '1000',
`registration_date` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `belong_to_idx` (`teamid`),
CONSTRAINT `belong_to` FOREIGN KEY (`teamid`) REFERENCES `TEAM` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `PLAYER`
--
LOCK TABLES `PLAYER` WRITE;
/*!40000 ALTER TABLE `PLAYER` DISABLE KEYS */;
INSERT INTO `PLAYER` VALUES (1,'하상범',1,1000,'2018-12-26 09:08:43'),(2,'김영주',1,1000,'2018-12-26 09:08:43'),(4,'김영주',2,1000,'2018-12-26 09:14:12');
/*!40000 ALTER TABLE `PLAYER` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `SCORE_LOG`
--
DROP TABLE IF EXISTS `SCORE_LOG`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `SCORE_LOG` (
`set` int(2) NOT NULL,
`number` int(2) NOT NULL,
`score1` int(2) NOT NULL,
`score2` int(2) NOT NULL,
`date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`recorder_admin` int(11) DEFAULT NULL,
`game_id` int(11) DEFAULT NULL,
KEY `is_scorelog_of_idx` (`game_id`),
KEY `is_recording` (`recorder_admin`),
CONSTRAINT `is_recording` FOREIGN KEY (`recorder_admin`) REFERENCES `ADMIN` (`classid`) ON DELETE RESTRICT ON UPDATE CASCADE,
CONSTRAINT `is_scorelog_of` FOREIGN KEY (`game_id`) REFERENCES `GAME` (`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 */;
--
-- Dumping data for table `SCORE_LOG`
--
LOCK TABLES `SCORE_LOG` WRITE;
/*!40000 ALTER TABLE `SCORE_LOG` DISABLE KEYS */;
INSERT INTO `SCORE_LOG` VALUES (1,1,1,0,'2018-12-26 15:24:08',1,1),(1,2,2,0,'2018-12-26 15:47:07',1,1),(1,3,2,1,'2018-12-26 15:59:12',1,1),(1,4,2,2,'2018-12-26 16:04:10',1,1),(1,5,2,3,'2018-12-26 16:04:43',1,1),(1,6,3,3,'2018-12-26 16:04:55',1,1),(1,7,3,4,'2018-12-26 16:06:10',1,1),(1,8,3,5,'2018-12-26 16:09:18',1,1),(1,9,3,6,'2018-12-26 16:10:23',1,1),(1,10,3,7,'2018-12-26 16:10:54',1,1),(1,11,3,8,'2018-12-26 16:12:33',1,1),(2,1,1,0,'2018-12-26 16:13:07',1,1),(2,2,1,1,'2018-12-26 16:13:21',1,1),(2,3,1,2,'2018-12-26 16:17:32',1,1),(2,4,1,3,'2018-12-26 16:17:49',1,1),(2,5,1,4,'2018-12-26 16:18:31',1,1),(2,6,2,4,'2018-12-26 16:19:26',1,1),(2,7,2,5,'2018-12-26 16:20:41',1,1),(2,8,2,6,'2018-12-26 16:21:30',1,1),(2,9,2,7,'2018-12-26 16:22:30',1,1),(2,10,2,8,'2018-12-26 16:22:45',1,1),(2,11,3,8,'2018-12-26 16:22:46',1,1),(3,1,0,1,'2018-12-26 16:23:38',1,1),(3,2,0,2,'2018-12-26 16:23:44',1,1),(3,3,0,3,'2018-12-26 16:23:46',1,1),(3,4,0,4,'2018-12-26 16:23:46',1,1),(3,5,0,5,'2018-12-26 16:23:47',1,1),(3,6,1,5,'2018-12-26 16:24:33',1,1),(3,7,2,5,'2018-12-26 16:24:37',1,1),(3,8,3,5,'2018-12-26 16:24:53',1,1),(3,9,4,5,'2018-12-26 16:24:58',1,1),(3,10,4,6,'2018-12-26 16:25:24',1,1),(3,11,4,7,'2018-12-26 16:25:39',1,1),(4,1,0,1,'2018-12-26 16:27:06',1,1),(4,2,1,1,'2018-12-26 16:27:37',1,1),(4,3,2,1,'2018-12-26 16:27:38',1,1),(4,4,2,2,'2018-12-26 16:27:39',1,1),(4,5,3,2,'2018-12-26 16:27:40',1,1),(4,6,3,3,'2018-12-26 16:27:41',1,1),(4,7,3,4,'2018-12-26 16:27:52',1,1),(4,8,3,5,'2018-12-26 16:28:16',1,1),(4,9,3,6,'2018-12-26 16:28:16',1,1),(4,10,3,7,'2018-12-26 16:28:17',1,1),(4,11,3,8,'2018-12-26 16:28:18',1,1),(1,1,0,1,'2018-12-26 16:33:47',1,4),(1,2,1,1,'2018-12-26 16:50:28',1,4),(1,3,1,2,'2018-12-26 16:50:29',1,4),(1,4,2,2,'2018-12-26 16:50:31',1,4),(1,5,3,2,'2018-12-26 16:50:58',1,4),(1,6,4,2,'2018-12-26 16:50:59',1,4),(1,7,4,3,'2018-12-26 16:51:00',1,4),(1,8,4,4,'2018-12-26 16:51:00',1,4),(1,9,4,5,'2018-12-26 16:51:01',1,4),(1,10,4,6,'2018-12-26 16:51:01',1,4),(1,11,4,7,'2018-12-26 16:51:02',1,4),(2,1,0,1,'2018-12-26 16:51:03',1,4),(2,2,1,1,'2018-12-26 17:07:01',1,4),(2,3,2,1,'2018-12-26 17:07:01',1,4),(2,4,3,1,'2018-12-26 17:07:02',1,4),(2,5,4,1,'2018-12-26 17:07:03',1,4),(2,6,4,2,'2018-12-26 17:07:04',1,4),(2,7,4,3,'2018-12-26 17:07:05',1,4),(2,8,4,4,'2018-12-26 17:07:05',1,4),(2,9,4,5,'2018-12-26 17:07:07',1,4),(2,10,4,6,'2018-12-26 17:07:08',1,4),(2,11,4,7,'2018-12-26 17:07:08',1,4),(3,1,0,1,'2018-12-26 17:07:09',1,4),(3,2,0,2,'2018-12-26 17:07:10',1,4),(3,3,1,2,'2018-12-26 17:07:11',1,4),(3,4,1,3,'2018-12-26 17:07:12',1,4),(3,5,2,3,'2018-12-26 17:07:12',1,4),(3,6,3,3,'2018-12-26 17:07:12',1,4),(3,7,4,3,'2018-12-26 17:07:13',1,4),(3,8,5,3,'2018-12-26 17:07:13',1,4),(3,9,6,3,'2018-12-26 17:07:13',1,4),(3,10,7,3,'2018-12-26 17:07:14',1,4),(3,11,8,3,'2018-12-26 17:07:14',1,4),(4,1,1,0,'2018-12-26 17:07:15',1,4),(4,2,1,1,'2018-12-26 17:07:16',1,4),(4,3,1,2,'2018-12-26 17:07:16',1,4),(4,4,2,2,'2018-12-26 17:07:22',1,4),(4,5,3,2,'2018-12-26 17:07:23',1,4),(4,6,4,2,'2018-12-26 17:07:23',1,4),(4,7,5,2,'2018-12-26 17:07:23',1,4),(4,8,5,3,'2018-12-26 17:07:24',1,4),(4,9,6,3,'2018-12-26 17:07:24',1,4),(4,10,7,3,'2018-12-26 17:07:25',1,4),(4,11,8,3,'2018-12-26 17:07:26',1,4),(1,1,0,1,'2018-12-26 17:23:00',1,5),(1,2,1,1,'2018-12-26 17:23:02',1,5),(1,3,1,2,'2018-12-26 17:23:03',1,5),(1,4,1,3,'2018-12-26 17:57:27',1,5),(1,5,2,3,'2018-12-26 17:57:43',1,5),(1,6,2,4,'2018-12-26 17:57:50',1,5),(1,7,2,5,'2018-12-26 17:57:50',1,5),(1,8,2,6,'2018-12-26 17:59:01',1,5),(1,9,2,7,'2018-12-26 17:59:02',1,5),(1,10,3,7,'2018-12-26 17:59:03',1,5),(1,11,3,8,'2018-12-26 17:59:03',1,5),(2,1,0,1,'2018-12-26 17:59:04',1,5),(2,2,1,1,'2018-12-26 18:04:53',1,5),(2,3,2,1,'2018-12-26 18:04:59',1,5),(2,4,3,1,'2018-12-26 18:04:59',1,5),(2,5,4,1,'2018-12-26 18:05:00',1,5),(2,6,4,2,'2018-12-26 18:05:01',1,5),(2,7,4,3,'2018-12-26 18:05:01',1,5),(2,8,5,3,'2018-12-26 18:05:02',1,5),(2,9,5,4,'2018-12-26 18:05:04',1,5),(2,10,6,4,'2018-12-26 18:05:08',1,5),(2,11,7,4,'2018-12-26 18:05:09',1,5),(3,1,1,0,'2018-12-26 18:05:11',1,5),(3,2,2,0,'2018-12-26 18:22:26',1,5),(3,3,2,1,'2018-12-26 18:22:28',1,5),(3,4,3,1,'2018-12-26 18:22:29',1,5),(3,5,4,1,'2018-12-26 18:22:31',1,5),(3,6,5,1,'2018-12-26 18:22:31',1,5),(3,7,6,1,'2018-12-26 18:22:31',1,5),(3,8,7,1,'2018-12-26 18:22:32',1,5),(3,9,8,1,'2018-12-26 18:22:32',1,5),(3,10,9,1,'2018-12-26 18:22:32',1,5),(3,11,10,1,'2018-12-26 18:22:32',1,5),(4,1,1,0,'2018-12-26 18:22:33',1,5),(4,2,2,0,'2018-12-26 18:22:33',1,5),(4,3,3,0,'2018-12-26 18:22:33',1,5),(4,4,4,0,'2018-12-26 18:22:34',1,5),(4,5,4,1,'2018-12-26 18:22:34',1,5),(4,6,4,2,'2018-12-26 18:22:35',1,5),(4,7,4,3,'2018-12-26 18:22:35',1,5),(4,8,4,4,'2018-12-26 18:22:35',1,5),(4,9,4,5,'2018-12-26 18:22:35',1,5),(4,10,4,6,'2018-12-26 18:22:35',1,5),(4,11,4,7,'2018-12-26 18:22:35',1,5);
/*!40000 ALTER TABLE `SCORE_LOG` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `TEAM`
--
DROP TABLE IF EXISTS `TEAM`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `TEAM` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(40) CHARACTER SET utf16 DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `TEAM`
--
LOCK TABLES `TEAM` WRITE;
/*!40000 ALTER TABLE `TEAM` DISABLE KEYS */;
INSERT INTO `TEAM` VALUES (1,'항공대'),(2,'무슨무슨대');
/*!40000 ALTER TABLE `TEAM` 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 2018-12-27 11:29:35
|
<filename>modules/core/db/init/postgres/10.create-db.sql<gh_stars>0
-- begin LIS_FA_FILE
create table lis_fa_file (
fa_per_id varchar(10),
--
fa_action_code varchar(1),
fa_do_nbr integer,
fa_end_date date,
fa_fac_nbr integer,
fa_fac_type integer,
fa_last_upd_date date,
fa_personnel_type varchar(1),
fa_start_date date,
isn_lis_fa_file integer not null,
--
primary key (fa_per_id)
)^
-- end LIS_FA_FILE
-- begin LIS_FAC_FILE
create table lis_fac_file (
fac_nbr integer,
--
fac_accreditation_code integer,
fac_accreditation_date date,
fac_accreditation_expire_date date,
fac_action_code varchar(1),
fac_addr_key varchar(19),
fac_admin varchar(26),
fac_agg_status varchar(1),
fac_amb_1_17_nbr integer,
fac_amb_18_64_nbr integer,
fac_amb_65_plus_nbr integer,
fac_annual_10_mo_defer_date date,
fac_annual_10_mo_visit_appr varchar(3),
fac_annual_10_mo_visit_date date,
fac_annual_22_mo_defer_date date,
fac_annual_22_mo_visit_appr varchar(3),
fac_annual_22_mo_visit_date date,
fac_annual_visit_year integer,
fac_bilingual integer,
fac_billing_date date,
fac_cap_inc_closed_date date,
fac_cap_inc_rec_date date,
fac_capacity integer,
fac_cfirs_id_nbr integer,
fac_client_served integer,
fac_client_served_appr_date date,
fac_closed_date date,
fac_closed_process_date date,
fac_co_nbr integer,
fac_complaint varchar(1),
fac_deficiency varchar(1),
fac_do_eval_code varchar(4),
fac_do_nbr integer,
fac_dual_id varchar(1),
fac_dual_nbr varchar(9),
fac_email_address varchar(40),
fac_fcrb_prgm_nbr varchar(8),
fac_fm_region_nbr integer,
fac_gh_indicator varchar(1),
fac_gh_lic_eff_date date,
fac_inactive_notice_date date,
fac_inactive_start_date date,
fac_inc_cap_eff_date date,
fac_last_defer_visit_date date,
fac_last_defer_visit_reason integer,
fac_last_fire_clear_date date,
fac_last_upd_date date,
fac_last_visit_date date,
fac_last_visit_reason integer,
fac_legal_action_indicator varchar(1),
fac_lic_comments varchar(210),
fac_lic_comments_2 varchar(210),
fac_lic_eff_date date,
fac_lic_expir_date date,
fac_lic_first_date date,
fac_lic_last_change_date date,
fac_lic_mail_city varchar(20),
fac_lic_mail_state varchar(2),
fac_lic_mail_street_addr varchar(30),
fac_lic_mail_zip_code varchar(9),
fac_licensee_name varchar(50),
fac_licensee_type varchar(1),
fac_loc_indicator varchar(1),
fac_mail_city varchar(20),
fac_mail_state varchar(2),
fac_mail_street_addr varchar(30),
fac_mail_zip_code varchar(9),
fac_mental_health_date date,
fac_mental_health_expire_date date,
fac_mid_yr_defer_date date,
fac_mid_yr_visit_appr varchar(3),
fac_mid_yr_visit_date date,
fac_name varchar(50),
fac_nbr_new integer,
fac_nonamb_1_17_nbr integer,
fac_nonamb_18_64_nbr integer,
fac_nonamb_65_plus_nbr integer,
fac_old_ffa_nbr integer,
fac_orig_appl_rec_date date,
fac_phone_nbr varchar(10),
fac_pin integer,
fac_placement_date date,
fac_placement_ready varchar(1),
fac_plan_of_op_approval_date date,
fac_plan_of_op_recv_date date,
fac_post_lic_defer_date date,
fac_post_lic_visit_appr varchar(3),
fac_post_lic_visit_date date,
fac_pre_lic_visit_date date,
fac_primary_nbr integer,
fac_region_co integer,
fac_region_do integer,
fac_region_nbr integer,
fac_renewal_defer_date date,
fac_renewal_visit_appr varchar(3),
fac_renewal_visit_date date,
fac_required_visit varchar(1),
fac_res_city varchar(20),
fac_res_state varchar(2),
fac_res_street_addr varchar(30),
fac_res_zip_code varchar(9),
fac_rfh_convert_date date,
fac_sfm_id_nbr varchar(17),
fac_sod_match_date date,
fac_status integer,
fac_street_search varchar(20),
fac_strtp_app_denied_date date,
fac_strtp_app_recv_date date,
fac_type integer,
fac_type999_caci_indicator varchar(1),
fac_unlic_orig_input_date date,
isn_lis_fac_file integer not null,
system_datetime_1 decimal(14),
system_datetime_count integer,
system_secuid_1 varchar(8),
system_secuid_count integer,
--
primary key (fac_nbr)
)^
-- end LIS_FAC_FILE
|
<reponame>Ed-Fi-Alliance-OSS/Ed-Fi-MigrationUtility<gh_stars>0
-- SPDX-License-Identifier: Apache-2.0
-- Licensed to the Ed-Fi Alliance under one or more agreements.
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
-- See the LICENSE and NOTICES files in the project root for more information.
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The URL for the course catalog that defines the course identification code.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseIdentificationCode', @level2type=N'COLUMN', @level2name=N'CourseCatalogURL'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The organization code or name assigning the course identification code.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscript', @level2type=N'COLUMN', @level2name=N'AssigningOrganizationIdentificationCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The URL for the course catalog that defines the course identification code.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscript', @level2type=N'COLUMN', @level2name=N'CourseCatalogURL'
GO
-- Extended Properties [edfi].[CourseTranscriptAcademicSubject] --
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The subject area for the course transcript credits awarded in the course transcript.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAcademicSubject'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The subject area for the course transcript credits awarded in the course transcript.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAcademicSubject', @level2type=N'COLUMN', @level2name=N'AcademicSubjectDescriptorId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The result from the student''s attempt to take the course, for example:
Pass
Fail
Incomplete
Withdrawn.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAcademicSubject', @level2type=N'COLUMN', @level2name=N'CourseAttemptResultDescriptorId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A unique alphanumeric code assigned to a course.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAcademicSubject', @level2type=N'COLUMN', @level2name=N'CourseCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The identifier assigned to an education organization.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAcademicSubject', @level2type=N'COLUMN', @level2name=N'CourseEducationOrganizationId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The identifier assigned to an education organization.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAcademicSubject', @level2type=N'COLUMN', @level2name=N'EducationOrganizationId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The identifier for the school year.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAcademicSubject', @level2type=N'COLUMN', @level2name=N'SchoolYear'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A unique alphanumeric code assigned to a student.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAcademicSubject', @level2type=N'COLUMN', @level2name=N'StudentUSI'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The term for the session during the school year.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAcademicSubject', @level2type=N'COLUMN', @level2name=N'TermDescriptorId'
GO
-- Extended Properties [edfi].[CourseTranscriptAlternativeCourseIdentificationCode] --
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The code that identifies the course, course offering, the code from an external educational organization, or other alternate course code.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAlternativeCourseIdentificationCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The result from the student''s attempt to take the course, for example:
Pass
Fail
Incomplete
Withdrawn.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAlternativeCourseIdentificationCode', @level2type=N'COLUMN', @level2name=N'CourseAttemptResultDescriptorId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A unique alphanumeric code assigned to a course.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAlternativeCourseIdentificationCode', @level2type=N'COLUMN', @level2name=N'CourseCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The identifier assigned to an education organization.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAlternativeCourseIdentificationCode', @level2type=N'COLUMN', @level2name=N'CourseEducationOrganizationId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A system that is used to identify the organization of subject matter and related learning experiences provided for the instruction of students.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAlternativeCourseIdentificationCode', @level2type=N'COLUMN', @level2name=N'CourseIdentificationSystemDescriptorId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The identifier assigned to an education organization.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAlternativeCourseIdentificationCode', @level2type=N'COLUMN', @level2name=N'EducationOrganizationId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The identifier for the school year.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAlternativeCourseIdentificationCode', @level2type=N'COLUMN', @level2name=N'SchoolYear'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A unique alphanumeric code assigned to a student.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAlternativeCourseIdentificationCode', @level2type=N'COLUMN', @level2name=N'StudentUSI'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The term for the session during the school year.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAlternativeCourseIdentificationCode', @level2type=N'COLUMN', @level2name=N'TermDescriptorId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A unique number or alphanumeric code assigned to a course by a school, school system, state, or other agency or entity. For multi-part course codes, concatenate the parts separated by a "/". For example, consider the following SCED code- subject = 20 Math course = 272 Geometry level = G General credits = 1.00 course sequence 1 of 1- would be entered as 20/272/G/1.00/1 of 1.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAlternativeCourseIdentificationCode', @level2type=N'COLUMN', @level2name=N'IdentificationCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The organization code or name assigning the Identification Code.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAlternativeCourseIdentificationCode', @level2type=N'COLUMN', @level2name=N'AssigningOrganizationIdentificationCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The URL for the course catalog that defines the course identification code.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptAlternativeCourseIdentificationCode', @level2type=N'COLUMN', @level2name=N'CourseCatalogURL'
GO
-- Extended Properties [edfi].[CourseTranscriptCreditCategory] --
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A categorization for the course transcript credits awarded in the course transcript.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptCreditCategory'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The result from the student''s attempt to take the course, for example:
Pass
Fail
Incomplete
Withdrawn.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptCreditCategory', @level2type=N'COLUMN', @level2name=N'CourseAttemptResultDescriptorId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A unique alphanumeric code assigned to a course.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptCreditCategory', @level2type=N'COLUMN', @level2name=N'CourseCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The identifier assigned to an education organization.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptCreditCategory', @level2type=N'COLUMN', @level2name=N'CourseEducationOrganizationId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A categorization for the course transcript credits awarded in the course transcript.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptCreditCategory', @level2type=N'COLUMN', @level2name=N'CreditCategoryDescriptorId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The identifier assigned to an education organization.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptCreditCategory', @level2type=N'COLUMN', @level2name=N'EducationOrganizationId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The identifier for the school year.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptCreditCategory', @level2type=N'COLUMN', @level2name=N'SchoolYear'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A unique alphanumeric code assigned to a student.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptCreditCategory', @level2type=N'COLUMN', @level2name=N'StudentUSI'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The term for the session during the school year.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CourseTranscriptCreditCategory', @level2type=N'COLUMN', @level2name=N'TermDescriptorId'
GO
-- Extended Properties [edfi].[CreditCategoryDescriptor] --
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A categorization for the course transcript credits.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CreditCategoryDescriptor'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'CreditCategoryDescriptor', @level2type=N'COLUMN', @level2name=N'CreditCategoryDescriptorId'
GO
-- Extended Properties [edfi].[GradePointAverageTypeDescriptor] --
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The system used for calculating the grade point average for an individual.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'GradePointAverageTypeDescriptor'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'GradePointAverageTypeDescriptor', @level2type=N'COLUMN', @level2name=N'GradePointAverageTypeDescriptorId'
GO
-- Extended Properties [edfi].[GraduationPlanCreditsByCreditCategory] --
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The total credits required for graduation based on the credit category.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'GraduationPlanCreditsByCreditCategory'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A categorization for the course transcript credits awarded in the course transcript.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'GraduationPlanCreditsByCreditCategory', @level2type=N'COLUMN', @level2name=N'CreditCategoryDescriptorId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The identifier assigned to an education organization.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'GraduationPlanCreditsByCreditCategory', @level2type=N'COLUMN', @level2name=N'EducationOrganizationId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The type of academic plan the student is following for graduation: for example, Minimum, Recommended, Distinguished, or Standard.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'GraduationPlanCreditsByCreditCategory', @level2type=N'COLUMN', @level2name=N'GraduationPlanTypeDescriptorId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The school year the student is expected to graduate.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'GraduationPlanCreditsByCreditCategory', @level2type=N'COLUMN', @level2name=N'GraduationSchoolYear'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The value of credits or units of value awarded for the completion of a course.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'GraduationPlanCreditsByCreditCategory', @level2type=N'COLUMN', @level2name=N'Credits'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The type of credits or units of value awarded for the completion of a course.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'GraduationPlanCreditsByCreditCategory', @level2type=N'COLUMN', @level2name=N'CreditTypeDescriptorId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'GraduationPlanCreditsByCreditCategory', @level2type=N'COLUMN', @level2name=N'CreditConversion'
GO
-- Extended Properties [edfi].[ReportCardGradePointAverage] --
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The maximum value for the grade point average.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'ReportCardGradePointAverage', @level2type=N'COLUMN', @level2name=N'MaxGradePointAverageValue'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A locally-defined name for the section, generally created to make the section more recognizable in informal contexts and generally distinct from the SectionIdentifier.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'Section', @level2type=N'COLUMN', @level2name=N'SectionName'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The maximum value for the grade point average.', @level0type=N'SCHEMA', @level0name=N'edfi', @level1type=N'TABLE', @level1name=N'StudentAcademicRecordGradePointAverage', @level2type=N'COLUMN', @level2name=N'MaxGradePointAverageValue'
GO
|
INSERT INTO `demo`.`md_tables` (`md_tables_id`, `tenant_id`, `database_id`, `schema_code`, `md_tables_name`, `md_tables_desc`, `public_flag`, `text_column1`, `text_column2`, `text_column3`, `text_column4`, `text_column5`, `int_column1`, `int_column2`, `int_column3`, `num_column1`, `num_column2`, `num_column3`, `date_column1`, `date_column2`, `date_column3`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901188431872', '100', 'mysql', 'test', 'messages', '国际化/FAQ信息', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Y', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535680', '100', 'message_id', 'bigint', '19', '0', 'N', '消息ID', 'Y', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535681', '100', 'message_key', 'varchar', '200', NULL, 'N', '消息key', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535682', '100', 'tenant_id', 'bigint', '19', '0', 'N', '租户ID', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535683', '100', 'message_type', 'varchar', '200', NULL, 'N', '信息类型,如:问答FAQ,国际化I18N等', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535684', '100', 'message_title', 'varchar', '300', NULL, 'N', '消息名称', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535685', '100', 'message_title_en', 'varchar', '300', NULL, 'N', '消息英文名称', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535686', '100', 'messages', 'varchar', '4000', NULL, 'Y', '消息内容', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535687', '100', 'messages_en', 'varchar', '4000', NULL, 'Y', '消息英文内容', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535688', '100', 'text_column1', 'varchar', '2000', NULL, 'Y', '预留文本字段1', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535689', '100', 'text_column2', 'varchar', '2000', NULL, 'Y', '预留文本字段2', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535690', '100', 'text_column3', 'varchar', '2000', NULL, 'Y', '预留文本字段3', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535691', '100', 'int_column1', 'bigint', '19', '0', 'Y', '预留整数字段1', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535692', '100', 'int_column2', 'bigint', '19', '0', 'Y', '预留整数字段2', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535693', '100', 'num_column1', 'decimal', '30', '8', 'Y', '预留数值字段1', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535694', '100', 'num_column2', 'decimal', '30', '8', 'Y', '预留数值字段2', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535695', '100', 'date_column1', 'datetime', NULL, NULL, 'Y', '预留日期字段1', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535696', '100', 'date_column2', 'datetime', NULL, NULL, 'Y', '预留日期字段2', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535697', '100', 'public_flag', 'char', '1', NULL, 'N', '跨租户共享标识,Y是,N否', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535698', '100', 'active_flag', 'char', '1', NULL, 'N', '有效标识,Y有效,N无效', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535699', '100', 'create_date', 'timestamp', NULL, NULL, 'N', '创建时间', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535700', '100', 'create_by', 'bigint', '19', '0', 'N', '创建人ID,对用用户ID', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535701', '100', 'last_update_date', 'timestamp', NULL, NULL, 'N', '最后更新时间', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_columns` (`md_columns_id`, `tenant_id`, `md_columns_name`, `md_columns_type`, `md_columns_length`, `md_dec_length`, `is_cols_null`, `md_columns_desc`, `is_key`, `public_flag`, `active_flag`, `md_tables_id`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390936901406535702', '100', 'last_update_by', 'bigint', '19', '0', 'N', '最后更新人ID,对用用户ID', 'N', 'Y', 'Y', '1390936901188431872', '1003', '2021-05-08 15:49:34', '1003', '2021-05-08 15:49:34');
INSERT INTO `demo`.`md_entities` (`md_entity_id`, `tenant_id`, `md_entity_name`, `md_entity_code`, `md_entity_name_en`, `md_entity_desc`, `md_tables_id`, `sys_flag`, `public_flag`, `text_column1`, `text_column2`, `text_column3`, `text_column4`, `text_column5`, `int_column1`, `int_column2`, `int_column3`, `num_column1`, `num_column2`, `num_column3`, `date_column1`, `date_column2`, `date_column3`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390937384875569152', '100', '国际化/FAQ信息', 'messages', 'messages', '国际化/FAQ信息', '1390936901188431872', 'Y', 'Y', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Y', '1003', '2021-05-08 15:51:29', '1003', '2021-05-08 15:51:29');
INSERT INTO `demo`.`md_fields` (`md_fields_id`, `tenant_id`, `md_entity_id`, `md_fields_name`, `md_fields_name_en`, `md_fields_type`, `md_fields_length`, `md_decimals_length`, `is_null`, `is_indexed`, `is_unique`, `md_fields_desc`, `md_columns_id`, `lookup_flag`, `lookup_entity`, `lookup_type`, `public_flag`, `default_value`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`, `is_key`, `md_fields_name_cn`) VALUES ('1390937385588600832', '100', '1390937384875569152', 'message_id', 'message_id', 'bigint', '19', '0', 'N', 'N', 'N', '消息ID', '1390936901406535680', 'N', NULL, NULL, 'N', NULL, 'Y', '1003', '2021-05-08 15:51:29', '1003', '2021-05-08 15:51:29', 'Y', NULL);
INSERT INTO `demo`.`md_fields` (`md_fields_id`, `tenant_id`, `md_entity_id`, `md_fields_name`, `md_fields_name_en`, `md_fields_type`, `md_fields_length`, `md_decimals_length`, `is_null`, `is_indexed`, `is_unique`, `md_fields_desc`, `md_columns_id`, `lookup_flag`, `lookup_entity`, `lookup_type`, `public_flag`, `default_value`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`, `is_key`, `md_fields_name_cn`) VALUES ('1390937385588600833', '100', '1390937384875569152', 'message_key', 'message_key', 'varchar', '200', NULL, 'N', 'N', 'N', '消息key', '1390936901406535681', 'N', NULL, NULL, 'N', NULL, 'Y', '1003', '2021-05-08 15:51:29', '1003', '2021-05-08 15:51:29', 'N', NULL);
INSERT INTO `demo`.`md_fields` (`md_fields_id`, `tenant_id`, `md_entity_id`, `md_fields_name`, `md_fields_name_en`, `md_fields_type`, `md_fields_length`, `md_decimals_length`, `is_null`, `is_indexed`, `is_unique`, `md_fields_desc`, `md_columns_id`, `lookup_flag`, `lookup_entity`, `lookup_type`, `public_flag`, `default_value`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`, `is_key`, `md_fields_name_cn`) VALUES ('1390937385588600834', '100', '1390937384875569152', 'tenant_id', 'tenant_id', 'bigint', '19', '0', 'N', 'N', 'N', '租户ID', '1390936901406535682', 'N', NULL, NULL, 'N', NULL, 'Y', '1003', '2021-05-08 15:51:29', '1003', '2021-05-08 15:51:29', 'N', NULL);
INSERT INTO `demo`.`md_fields` (`md_fields_id`, `tenant_id`, `md_entity_id`, `md_fields_name`, `md_fields_name_en`, `md_fields_type`, `md_fields_length`, `md_decimals_length`, `is_null`, `is_indexed`, `is_unique`, `md_fields_desc`, `md_columns_id`, `lookup_flag`, `lookup_entity`, `lookup_type`, `public_flag`, `default_value`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`, `is_key`, `md_fields_name_cn`) VALUES ('1390937385588600835', '100', '1390937384875569152', 'message_type', 'message_type', 'varchar', '200', NULL, 'N', 'N', 'N', '信息类型,如:问答FAQ,国际化I18N等', '1390936901406535683', 'N', NULL, NULL, 'N', NULL, 'Y', '1003', '2021-05-08 15:51:29', '1003', '2021-05-08 15:51:29', 'N', NULL);
INSERT INTO `demo`.`md_fields` (`md_fields_id`, `tenant_id`, `md_entity_id`, `md_fields_name`, `md_fields_name_en`, `md_fields_type`, `md_fields_length`, `md_decimals_length`, `is_null`, `is_indexed`, `is_unique`, `md_fields_desc`, `md_columns_id`, `lookup_flag`, `lookup_entity`, `lookup_type`, `public_flag`, `default_value`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`, `is_key`, `md_fields_name_cn`) VALUES ('1390937385588600836', '100', '1390937384875569152', 'message_title', 'message_title', 'varchar', '300', NULL, 'N', 'N', 'N', '消息名称', '1390936901406535684', 'N', NULL, NULL, 'N', NULL, 'Y', '1003', '2021-05-08 15:51:29', '1003', '2021-05-08 15:51:29', 'N', NULL);
INSERT INTO `demo`.`md_fields` (`md_fields_id`, `tenant_id`, `md_entity_id`, `md_fields_name`, `md_fields_name_en`, `md_fields_type`, `md_fields_length`, `md_decimals_length`, `is_null`, `is_indexed`, `is_unique`, `md_fields_desc`, `md_columns_id`, `lookup_flag`, `lookup_entity`, `lookup_type`, `public_flag`, `default_value`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`, `is_key`, `md_fields_name_cn`) VALUES ('1390937385588600837', '100', '1390937384875569152', 'message_title_en', 'message_title_en', 'varchar', '300', NULL, 'N', 'N', 'N', '消息英文名称', '1390936901406535685', 'N', NULL, NULL, 'N', NULL, 'Y', '1003', '2021-05-08 15:51:29', '1003', '2021-05-08 15:51:29', 'N', NULL);
INSERT INTO `demo`.`md_fields` (`md_fields_id`, `tenant_id`, `md_entity_id`, `md_fields_name`, `md_fields_name_en`, `md_fields_type`, `md_fields_length`, `md_decimals_length`, `is_null`, `is_indexed`, `is_unique`, `md_fields_desc`, `md_columns_id`, `lookup_flag`, `lookup_entity`, `lookup_type`, `public_flag`, `default_value`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`, `is_key`, `md_fields_name_cn`) VALUES ('1390937385588600838', '100', '1390937384875569152', 'public_flag', 'public_flag', 'char', '1', NULL, 'N', 'N', 'N', '跨租户共享标识,Y是,N否', '1390936901406535697', 'N', NULL, NULL, 'N', NULL, 'Y', '1003', '2021-05-08 15:51:29', '1003', '2021-05-08 15:51:29', 'N', NULL);
INSERT INTO `demo`.`md_fields` (`md_fields_id`, `tenant_id`, `md_entity_id`, `md_fields_name`, `md_fields_name_en`, `md_fields_type`, `md_fields_length`, `md_decimals_length`, `is_null`, `is_indexed`, `is_unique`, `md_fields_desc`, `md_columns_id`, `lookup_flag`, `lookup_entity`, `lookup_type`, `public_flag`, `default_value`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`, `is_key`, `md_fields_name_cn`) VALUES ('1390937385588600839', '100', '1390937384875569152', 'active_flag', 'active_flag', 'char', '1', NULL, 'N', 'N', 'N', '有效标识,Y有效,N无效', '1390936901406535698', 'N', NULL, NULL, 'N', NULL, 'Y', '1003', '2021-05-08 15:51:29', '1003', '2021-05-08 15:51:29', 'N', NULL);
INSERT INTO `demo`.`md_fields` (`md_fields_id`, `tenant_id`, `md_entity_id`, `md_fields_name`, `md_fields_name_en`, `md_fields_type`, `md_fields_length`, `md_decimals_length`, `is_null`, `is_indexed`, `is_unique`, `md_fields_desc`, `md_columns_id`, `lookup_flag`, `lookup_entity`, `lookup_type`, `public_flag`, `default_value`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`, `is_key`, `md_fields_name_cn`) VALUES ('1390937385588600840', '100', '1390937384875569152', 'create_date', 'create_date', 'timestamp', NULL, NULL, 'N', 'N', 'N', '创建时间', '1390936901406535699', 'N', NULL, NULL, 'N', NULL, 'Y', '1003', '2021-05-08 15:51:29', '1003', '2021-05-08 15:51:29', 'N', NULL);
INSERT INTO `demo`.`md_fields` (`md_fields_id`, `tenant_id`, `md_entity_id`, `md_fields_name`, `md_fields_name_en`, `md_fields_type`, `md_fields_length`, `md_decimals_length`, `is_null`, `is_indexed`, `is_unique`, `md_fields_desc`, `md_columns_id`, `lookup_flag`, `lookup_entity`, `lookup_type`, `public_flag`, `default_value`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`, `is_key`, `md_fields_name_cn`) VALUES ('1390937385588600841', '100', '1390937384875569152', 'create_by', 'create_by', 'bigint', '19', '0', 'N', 'N', 'N', '创建人ID,对用用户ID', '1390936901406535700', 'N', NULL, NULL, 'N', NULL, 'Y', '1003', '2021-05-08 15:51:29', '1003', '2021-05-08 15:51:29', 'N', NULL);
INSERT INTO `demo`.`md_fields` (`md_fields_id`, `tenant_id`, `md_entity_id`, `md_fields_name`, `md_fields_name_en`, `md_fields_type`, `md_fields_length`, `md_decimals_length`, `is_null`, `is_indexed`, `is_unique`, `md_fields_desc`, `md_columns_id`, `lookup_flag`, `lookup_entity`, `lookup_type`, `public_flag`, `default_value`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`, `is_key`, `md_fields_name_cn`) VALUES ('1390937385588600842', '100', '1390937384875569152', 'last_update_date', 'last_update_date', 'timestamp', NULL, NULL, 'N', 'N', 'N', '最后更新时间', '1390936901406535701', 'N', NULL, NULL, 'N', NULL, 'Y', '1003', '2021-05-08 15:51:29', '1003', '2021-05-08 15:51:29', 'N', NULL);
INSERT INTO `demo`.`md_fields` (`md_fields_id`, `tenant_id`, `md_entity_id`, `md_fields_name`, `md_fields_name_en`, `md_fields_type`, `md_fields_length`, `md_decimals_length`, `is_null`, `is_indexed`, `is_unique`, `md_fields_desc`, `md_columns_id`, `lookup_flag`, `lookup_entity`, `lookup_type`, `public_flag`, `default_value`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`, `is_key`, `md_fields_name_cn`) VALUES ('1390937385588600843', '100', '1390937384875569152', 'last_update_by', 'last_update_by', 'bigint', '19', '0', 'N', 'N', 'N', '最后更新人ID,对用用户ID', '1390936901406535702', 'N', NULL, NULL, 'N', NULL, 'Y', '1003', '2021-05-08 15:51:29', '1003', '2021-05-08 15:51:29', 'N', NULL);
INSERT INTO `demo`.`md_fields` (`md_fields_id`, `tenant_id`, `md_entity_id`, `md_fields_name`, `md_fields_name_en`, `md_fields_type`, `md_fields_length`, `md_decimals_length`, `is_null`, `is_indexed`, `is_unique`, `md_fields_desc`, `md_columns_id`, `lookup_flag`, `lookup_entity`, `lookup_type`, `public_flag`, `default_value`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`, `is_key`, `md_fields_name_cn`) VALUES ('1390937385940922368', '100', '1390937384875569152', 'messages', 'messages', 'varchar', '4000', NULL, 'Y', 'N', 'N', '消息内容', '1390936901406535686', 'N', NULL, NULL, 'N', NULL, 'Y', '1003', '2021-05-08 15:51:29', '1003', '2021-05-08 15:51:29', 'N', NULL);
INSERT INTO `demo`.`md_fields` (`md_fields_id`, `tenant_id`, `md_entity_id`, `md_fields_name`, `md_fields_name_en`, `md_fields_type`, `md_fields_length`, `md_decimals_length`, `is_null`, `is_indexed`, `is_unique`, `md_fields_desc`, `md_columns_id`, `lookup_flag`, `lookup_entity`, `lookup_type`, `public_flag`, `default_value`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`, `is_key`, `md_fields_name_cn`) VALUES ('1390937385940922369', '100', '1390937384875569152', 'messages_en', 'messages_en', 'varchar', '4000', NULL, 'Y', 'N', 'N', '消息英文内容', '1390936901406535687', 'N', NULL, NULL, 'N', NULL, 'Y', '1003', '2021-05-08 15:51:29', '1003', '2021-05-08 15:51:29', 'N', NULL);
INSERT INTO `demo`.`md_entities_rel` (`md_entity_rel_id`, `tenant_id`, `md_entity_rel_desc`, `rel_type`, `from_entity_id`, `to_entity_id`, `to_field_id`, `from_field_id`, `md_tables_id`, `from_columns_id`, `to_columns_id`, `text_column1`, `text_column2`, `text_column3`, `text_column4`, `text_column5`, `int_column1`, `int_column2`, `int_column3`, `num_column1`, `num_column2`, `num_column3`, `date_column1`, `date_column2`, `date_column3`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`) VALUES ('1390938574908665856', '100', '国际化/FAQ信息 AND 租户 RELATION', '1:N', '30021', '1390937384875569152', '1390937385588600834', '400243', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Y', '1003', '2021-05-08 15:56:13', '1003', '2021-05-08 15:56:13');
INSERT INTO `demo`.`md_fields` (`md_fields_id`, `tenant_id`, `md_entity_id`, `md_fields_name`, `md_fields_name_en`, `md_fields_type`, `md_fields_length`, `md_decimals_length`, `is_null`, `is_indexed`, `is_unique`, `md_fields_desc`, `md_columns_id`, `lookup_flag`, `lookup_entity`, `lookup_type`, `public_flag`, `default_value`, `active_flag`, `create_by`, `create_date`, `last_update_by`, `last_update_date`, `is_key`, `md_fields_name_cn`) VALUES ('1390946110986629120', '100', '1384718861767360512', 'i18n_key', 'i18n key', 'varchar', '200', NULL, 'Y', 'N', 'N', '国际化Key', '1384718124983336971', 'N', 'messages', NULL, 'N', NULL, 'Y', '1003', '2021-05-08 16:26:10', '1003', '2021-05-08 16:26:10', 'N', '国际化消息key');
commit;
|
<gh_stars>10-100
DROP TABLE IF EXISTS t_delay_task;
CREATE TABLE t_delay_task (
TASK_ID varchar(20) NOT NULL COMMENT '任务ID',
RELATIVE_ID varchar(100) NULL COMMENT '关联ID,比如订单ID\会员卡ID\排期ID等',
CLASSIFIER varchar(20) NOT NULL COMMENT '任务分类',
TASK_NAME varchar(100) NOT NULL COMMENT '任务名称',
TASK_SERVICE varchar(100) NOT NULL COMMENT '任务服务名称,需要实现Taskable接口',
STATE varchar(3) NOT NULL COMMENT '待运行/运行中/已成功/已失败/已取消',
RUN_AT datetime NOT NULL COMMENT '何时运行,此参数可以设置延时',
TIMEOUT tinyint NOT NULL DEFAULT 0 COMMENT '超时时间(秒)',
START_TIME datetime NULL COMMENT '开始运行时间',
END_TIME datetime NULL COMMENT '结束运行时间',
RESULT_STATE varchar(300) NULL COMMENT '任务执行状态',
RESULT_STORE varchar(100) NOT NULL COMMENT '结果存储方式',
RESULT TEXT NULL COMMENT '任务执行详细结果',
VAR1 varchar(100) NULL COMMENT '参数1',
VAR2 varchar(100) NULL COMMENT '参数2',
VAR3 varchar(100) NULL COMMENT '参数3',
SCHEDULED varchar(50) NULL COMMENT '排期',
HOSTNAME varchar(100) NULL COMMENT '客户端机器名',
CLIENT_IP varchar(100) NULL COMMENT '客户端IP',
ATTACHMENT TEXT NULL COMMENT '附件',
CREATE_TIME datetime NOT NULL COMMENT '创建时间',
VERSION_NUMBER BIGINT(20) NOT NULL DEFAULT 0 COMMENT '任务创建时的程序版本号',
PRIMARY KEY (TASK_ID)
) COMMENT = '任务表';
CREATE INDEX IDX1_T_DELAY_TASK ON t_delay_task(RELATIVE_ID);
CREATE INDEX IDX2_T_DELAY_TASK ON t_delay_task(CLASSIFIER);
|
<reponame>hayeb/teiid-spring-boot<gh_stars>10-100
/*
###########################################
# START DATABASE customer
###########################################
*/
CREATE DATABASE customer VERSION '1' OPTIONS (ANNOTATION 'Customer VDB');
USE DATABASE customer VERSION '1';
--############ Translators ############
CREATE FOREIGN DATA WRAPPER mypostgresql TYPE postgresql OPTIONS (supportsOrderBy 'true');
--############ Servers ############
CREATE SERVER cacheStore FOREIGN DATA WRAPPER "infinispan-hotrod";
CREATE SERVER ispn TYPE 'NONE' FOREIGN DATA WRAPPER "infinispan-hotrod";
CREATE SERVER oldsoapy FOREIGN DATA WRAPPER ws;
CREATE SERVER s3 FOREIGN DATA WRAPPER s3;
CREATE SERVER sampleansi FOREIGN DATA WRAPPER "jdbc-ansi";
CREATE SERVER samplecassandra FOREIGN DATA WRAPPER cassandra;
CREATE SERVER sampledb FOREIGN DATA WRAPPER sqlserver;
CREATE SERVER samplefile FOREIGN DATA WRAPPER file;
CREATE SERVER sampleftp FOREIGN DATA WRAPPER ftp;
CREATE SERVER samplegoogle FOREIGN DATA WRAPPER "google-spreadsheet";
CREATE SERVER samplehive FOREIGN DATA WRAPPER hive;
CREATE SERVER samplemango FOREIGN DATA WRAPPER mongodb;
CREATE SERVER sampleodata FOREIGN DATA WRAPPER odata4;
CREATE SERVER sampleoracle FOREIGN DATA WRAPPER mypostgresql;
CREATE SERVER samplesf FOREIGN DATA WRAPPER salesforce;
CREATE SERVER soapyCountry FOREIGN DATA WRAPPER soap;
--############ Schemas ############
CREATE SCHEMA accounts SERVER sampledb;
CREATE VIRTUAL SCHEMA portfolio;
CREATE SCHEMA materialized_1 SERVER cacheStore OPTIONS (VISIBLE 'false');
--############ Schema:accounts ############
SET SCHEMA accounts;
CREATE FOREIGN TABLE G1 (
e1 string,
e2 integer
);
CREATE FOREIGN TABLE G2 (
e1 string,
e2 integer
);
--############ Schema:portfolio ############
SET SCHEMA portfolio;
CREATE VIEW CustomerZip (
id long,
name string,
ssn string,
zip string,
PRIMARY KEY(id)
) OPTIONS (MATERIALIZED TRUE, MATERIALIZED_TABLE 'materialized_1.customer_portfolio_CustomerZip', "teiid_rel:ALLOW_MATVIEW_MANAGEMENT" 'true', "teiid_rel:MATVIEW_LOADNUMBER_COLUMN" 'LoadNumber', "teiid_rel:MATVIEW_STATUS_TABLE" 'materialized_1.customer_materialized_1_status', "teiid_rel:MATVIEW_TTL" '300000')
AS
SELECT c.ID AS id, c.NAME AS name, c.SSN AS ssn, a.ZIP AS zip FROM accounts.CUSTOMER AS c LEFT OUTER JOIN accounts.ADDRESS AS a ON c.ID = a.CUSTOMER_ID;
CREATE VIRTUAL PROCEDURE g1Table(IN p1 integer, IN p2 string) RETURNS TABLE (xml_out xml)
OPTIONS (UPDATECOUNT 0, "REST:METHOD" 'GET', "REST:URI" 'g1/{p1}')
AS
BEGIN
SELECT XMLELEMENT(NAME g1Table.p1, XMLATTRIBUTES(g1Table.p1 AS p1), XMLAGG(XMLELEMENT(NAME "row", XMLFOREST(e1, e2)))) AS xml_out FROM accounts.G1;
END;
CREATE VIRTUAL PROCEDURE g2Table() RETURNS TABLE (xml_out string)
OPTIONS (UPDATECOUNT 0, "REST:METHOD" 'GET', "REST:URI" 'g2')
AS
BEGIN
SELECT '{ "age":100, "name":test,messages:["msg1","msg2","msg3"]}' AS xml_out;
END;
CREATE VIRTUAL PROCEDURE g3Table(IN p1 integer, IN p2 json) RETURNS TABLE (xml_out json)
OPTIONS (UPDATECOUNT 0, "REST:METHOD" 'POST', "REST:URI" 'g3')
AS
BEGIN
SELECT '{ "age":100, "name":test,messages:["msg1","msg2","msg3"]}' AS xml_out;
END;
--############ Schema:materialized_1 ############
SET SCHEMA materialized_1;
CREATE FOREIGN TABLE customer_materialized_1_status (
VDBName string(50) NOT NULL,
VDBVersion string(50) NOT NULL,
SchemaName string(50) NOT NULL,
Name string(256) NOT NULL,
TargetSchemaName string(50) NOT NULL,
TargetName string(256) NOT NULL,
Valid boolean NOT NULL,
LoadState string(25) NOT NULL,
Cardinality long,
Updated timestamp NOT NULL,
LoadNumber long NOT NULL,
NodeName string(25) NOT NULL,
StaleCount long,
PRIMARY KEY(VDBName, VDBVersion, SchemaName, Name)
) OPTIONS (UPDATABLE TRUE, "teiid_ispn:cache" 'customer_materialized_1_status');
CREATE FOREIGN TABLE customer_portfolio_CustomerZip (
id long,
name string,
ssn string,
zip string,
LoadNumber long,
PRIMARY KEY(id)
) OPTIONS (UPDATABLE TRUE, "teiid_ispn:cache" 'customer_portfolio_CustomerZip');IMPORT FROM SERVER cacheStore INTO materialized_1;
/*
###########################################
# END DATABASE customer
###########################################
*/ |
<reponame>UAMS-DBMI/PosdaTools<gh_stars>1-10
-- Name: GetPatientMappingForPatientsInTimepointWithMissing
-- Schema: posda_files
-- Columns: ['from_patient_id', 'to_patient_id', 'to_patient_name', 'collection_name', 'site_name', 'batch_number', 'diagnosis_date', 'baseline_date', 'date_shift', 'uid_root', 'site_code', 'files_in_tp']
-- Args: ['activity_id']
-- Tags: ['adding_ctp', 'for_scripting', 'patient_mapping', 'activity_timepoint']
-- Description: Get patient mappings for patients in timepoint
--
select
from_patient_id, to_patient_id, to_patient_name, collection_name, site_name, batch_number,
diagnosis_date, baseline_date, date_shift, uid_root, site_code, count as files_in_tp
from (
select
distinct project_name as collection_name, site_name, patient_id as to_patient_id, count(*)
from
file_patient natural join ctp_file
where
visibility is null and file_id in (
select file_id
from activity_timepoint_file
where activity_timepoint_id = (
select max(activity_timepoint_id)
from activity_timepoint where activity_id = ?
)
) group by collection_name, site_name, patient_id
) as foo natural left join patient_mapping |
<reponame>cuadradek/perun
-- database version 3.1.82 (don't forget to update insert statement at the end of file)
CREATE EXTENSION IF NOT EXISTS "unaccent";
CREATE EXTENSION IF NOT EXISTS "pgcrypto";
-- VOS - virtual organizations
create table vos (
id integer not null,
name varchar not null, -- full name of VO
short_name varchar not null, -- commonly used name
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint vo_pk primary key (id),
constraint vo_u unique (name)
);
-- USERS - information about user as real person
create table users (
id integer not null,
uu_id uuid not null default gen_random_uuid(),
first_name varchar, -- christening name
last_name varchar, -- family name
middle_name varchar, -- second name
title_before varchar, -- academic degree used before name
title_after varchar, -- academic degree used after name
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
service_acc boolean default false not null, --is it service account?
sponsored_acc boolean default false not null, --is it sponsored account?
anonymized boolean default false not null, --was user anonymized?
created_by_uid integer,
modified_by_uid integer,
constraint usr_pk primary key (id)
);
-- OWNERS - owners of resources and devices
create table owners (
id integer not null,
name varchar not null, --name of owner
contact varchar, --contact email or phone
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
type varchar not null, --type of owner (for example IdP)
created_by_uid integer,
modified_by_uid integer,
constraint ow_pk primary key (id),
constraint ow_u unique (name)
);
-- CABINET_CATEGORIES - possible categories of publications
create table cabinet_categories (
id integer not null,
name varchar not null, --name of category
rank numeric(38,1) not null, --coefficient for evaluation of publication in scope of this category
created_by_uid integer,
modified_by_uid integer,
constraint cab_cat_pk primary key (id)
);
-- CABINET_PUBLICATION_SYSTEMS - external publication systems. Contains information which allowes searching
create table cabinet_publication_systems (
id integer not null,
friendlyName varchar not null, --name of publication system
url varchar not null, --address for searching at external system
username varchar, --logname
password varchar, -- and password for connection to external system
loginNamespace varchar not null, --namespace used for username
type varchar not null, --name of class of parser for received data (for example cz.metacentrum.perun.cabinet.strategy.impl.MUStrategy) *)
created_by_uid integer,
modified_by_uid integer,
constraint cab_pubsys_pk primary key (id)
);
--*) it have to include entry about internal publication system to create publication directly in Perun DB
-- CABINET_PUBLICATIONS - all publications stored in Perun DB
create table cabinet_publications (
id integer not null,
externalId integer not null, --identifier at externa pub. system
publicationSystemId integer not null, --identifier of external pub. system (cabinet_publication_systems.id) *)
title varchar not null,
year integer not null, --short title of publication
main varchar, --full cite of publication
isbn varchar,
categoryId integer not null, --identifier of category (cabinet_categories.id)
createdBy varchar default user not null,
createdDate timestamp not null,
rank numeric (38,1) default 0 not null,
doi varchar,
locked boolean default false not null,
created_by_uid integer,
modified_by_uid integer,
constraint cab_pub_pk primary key (id),
constraint catpub_sys_fk foreign key(publicationsystemid) references cabinet_publication_systems(id),
constraint cabpub_cat_fk foreign key(categoryid) references cabinet_categories(id)
);
--*) if publication is created directly in Perun externalId=id and publicationSystemId is identifier of internal system
-- CABINET_AUTHORSHIPS - relation of user to publication (author,co-author)
create table cabinet_authorships (
id integer not null,
publicationId integer not null, --identifier of publication (cabinet_publications.id)
userId integer not null, -- identifier of user (users.id)
createdBy varchar default user not null,
createdDate timestamp not null,
created_by_uid integer,
modified_by_uid integer,
constraint cab_au_pk primary key (id),
constraint cabaut_pub_fk foreign key(publicationid) references cabinet_publications(id),
constraint cabaut_usr_fk foreign key(userid) references users(id)
);
-- CABINET THANKS - list of institutions which are acnowledged at publication
create table cabinet_thanks (
id integer not null,
publicationid integer not null, --identifier of publication (cabinet_publications.id)
ownerId integer not null, --identifier of owner of used ources and devices (owners.id) - MetaCenter,CESNET...
createdBy varchar default user not null,
createdDate timestamp not null,
created_by_uid integer,
modified_by_uid integer,
constraint cab_th_pk primary key (id),
constraint cabthank_pub_fk foreign key(publicationid) references cabinet_publications(id)
);
-- FACILITIES - sources, devices - includes clusters,hosts,storages...
create table facilities (
id integer not null,
name varchar not null, --unique name of facility
dsc varchar,
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint fac_pk primary key(id),
constraint fac_name_u unique (name)
);
-- RESOURCES - facility assigned to VO
create table resources (
id integer not null,
uu_id uuid not null default gen_random_uuid(),
facility_id integer not null, --facility identifier (facility.id)
name varchar not null, --name of resource
dsc varchar, --purpose and description
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
vo_id integer not null, --identifier of VO (vos.id)
created_by_uid integer,
modified_by_uid integer,
constraint rsrc_pk primary key (id),
constraint rsrc_fac_fk foreign key (facility_id) references facilities(id),
constraint rsrc_vo_fk foreign key (vo_id) references vos(id)
);
-- DESTINATIONS - targets of services
create table destinations (
id integer not null,
destination varchar not null, --value of destination (hostname,email,URL...)
type varchar not null, --type (host,URL...)
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint dest_pk primary key (id),
constraint dest_u unique(destination,type)
);
-- FACILITY_OWNERS - one or more institutions which own the facility
create table facility_owners (
facility_id integer not null, --identifier of facility (facilities.id)
owner_id integer not null, --identifier of owner (owners.id)
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint facow_pk primary key (facility_id,owner_id),
constraint facow_fac_fk foreign key (facility_id) references facilities(id),
constraint facow_ow_fk foreign key (owner_id) references owners(id)
);
-- GROUPS - groups of users
create table groups (
id integer not null,
uu_id uuid not null default gen_random_uuid(),
name text not null, --group name
dsc varchar, --purpose and description
vo_id integer not null, --identifier of VO (vos.id)
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
parent_group_id integer, --in case of subgroup identifier of parent group (groups.id)
created_by_uid integer,
modified_by_uid integer,
constraint grp_pk primary key (id),
constraint grp_vos_fk foreign key (vo_id) references vos(id),
constraint grp_grp_fk foreign key (parent_group_id) references groups(id)
);
-- FACILITIES_CONTACTS - all optional contacts for facility (owners, users or groups)
create table facility_contacts (
name varchar not null, -- similar to tag of group of contacts
facility_id integer not null, --facility identifier
owner_id integer, --owner identifier
user_id integer, --user identifier
group_id integer, -- group identifier
constraint faccont_fac_fk foreign key (facility_id) references facilities(id),
constraint faccont_usr_fk foreign key (user_id) references users(id),
constraint faccont_own_fk foreign key (owner_id) references owners(id),
constraint faccont_grp_fk foreign key (group_id) references groups(id),
constraint faccont_usr_own_grp_chk check
((user_id is not null and owner_id is null and group_id is null)
or (user_id is null and owner_id is not null and group_id is null)
or (user_id is null and owner_id is null and group_id is not null))
);
-- MEMBERS - members of VO
create table members (
id integer not null,
user_id integer not null, --user's identifier (users.id)
vo_id integer not null, --identifier of VO (vos.id)
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
status integer default 0 not null, --status of membership
sponsored boolean default false not null,
created_by_uid integer,
modified_by_uid integer,
constraint mem_pk primary key(id),
constraint mem_user_fk foreign key(user_id) references users(id),
constraint mem_vo_fk foreign key(vo_id) references vos(id),
constraint mem_user_vo_u unique (vo_id, user_id)
);
-- ROLES - possible user's rolles - controle access of users to data in DB
create table roles (
id integer not null,
name varchar not null, --name of role
created_by_uid integer,
modified_by_uid integer,
constraint roles_pk primary key (id),
constraint roles_name_u unique (name)
);
-- ACTION_TYPES - possible actions for attributes
create table action_types (
id integer not null,
action_type varchar not null, --type of action (read/write...)
description varchar, --description
constraint actiontyp_pk primary key (id),
constraint actiontyp_u unique (action_type),
constraint actiontyp_at_chk check (action_type in ('read', 'read_vo', 'read_public', 'write', 'write_vo', 'write_public'))
);
-- MEMBERSHIP_TYPES - possible types of membership in group
create table membership_types (
id integer not null,
membership_type varchar not null, --type of memberships (DIRECT/INDIRECT...)
description varchar, --description
constraint MEMTYPE_PK primary key (id)
);
-- ATTR_NAMES - list of possible attributes
create table attr_names (
id integer not null,
attr_name varchar not null, --full name of attribute
friendly_name varchar not null, --short name of attribute
namespace varchar not null, --access of attribute to the entity
type varchar not null, --type o0f attribute data (strig,number,array...)
dsc varchar, --purpose,description
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
display_name varchar, --name of attr. displayed at GUI
is_unique boolean DEFAULT FALSE NOT NULL,
constraint attnam_pk primary key(id),
constraint attnam_u unique (attr_name),
constraint attfullnam_u unique (friendly_name,namespace)
);
-- ATTRIBUTES_AUTHZ - controles permissions for access to attributes
create table attributes_authz (
attr_id integer not null, --identifier of attribute (attr_names.id)
role_id integer not null, --identifier of role (roles.id)
action_type_id integer not null, --identifier of action (action_types.id)
constraint attrauthz_pk primary key (attr_id,role_id,action_type_id),
constraint attrauthz_attr_fk foreign key (attr_id) references attr_names (id),
constraint attrauthz_role_fk foreign key (role_id) references roles(id),
constraint attrauthz_actiontyp_fk foreign key (action_type_id) references action_types(id)
);
-- HOSTS - detail information about hosts and cluster nodes
create table hosts (
id integer not null,
hostname varchar not null, --full name of machine
facility_id integer not null, --identifier of facility containing the host (facilities.id)
dsc varchar, --description
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint host_pk primary key (id),
constraint host_fac_fk foreign key(facility_id) references facilities(id)
);
-- HOST_ATTR_VALUES - values of attributes assigned to hosts
create table host_attr_values (
host_id integer not null, --identifier of host (hosts.id)
attr_id integer not null, --identifier of attributes (attr_names.id)
attr_value text, --value of attribute
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint hostav_pk primary key (host_id,attr_id),
constraint hostav_host_fk foreign key (host_id) references hosts(id),
constraint hostav_attr_fk foreign key (attr_id) references attr_names(id)
);
-- HOST_ATTR_U_VALUES - unique attribute values
CREATE TABLE host_attr_u_values (
host_id INT NOT NULL,
attr_id INT NOT NULL,
attr_value text,
UNIQUE (attr_id, attr_value),
FOREIGN KEY (host_id,attr_id) REFERENCES host_attr_values ON DELETE CASCADE
);
-- AUDITER_CONSUMERS - registers recently processed events
create table auditer_consumers (
id integer not null,
name varchar not null,
last_processed_id integer,
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint audcon_pk primary key (id),
constraint audcon_u unique(name)
);
-- SERVICES - provided services, their atomic form
create table services (
id integer not null,
name varchar not null, --name of service
description varchar,
delay integer not null default 10,
recurrence integer not null default 2,
enabled boolean default true not null,
script varchar not null,
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint serv_pk primary key(id),
constraint serv_u unique(name)
);
-- SERVICE_REQUIRED_ATTRS - list of attributes required by the service
create table service_required_attrs (
service_id integer not null, --identifier of service (services.id)
attr_id integer not null, --identifier of attribute (attr_names.id)
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint srvreqattr_pk primary key (service_id,attr_id),
constraint srvreqattr_srv_fk foreign key(service_id) references services(id),
constraint srvreqattr_attr_fk foreign key(attr_id) references attr_names(id)
);
-- SPECIFIC_USER_USERS - relation between specific-users and real users
create table specific_user_users (
user_id integer not null, --identifier of real user (users.id)
specific_user_id integer not null, --identifier of specific user (users.id)
created_by_uid integer,
modified_by_uid integer,
modified_at timestamp default statement_timestamp() not null,
type varchar default 'service' not null,
status integer default 0 not null, -- 0=enabled or 1=disabled ownership
constraint acc_specifu_u_pk primary key (user_id,specific_user_id),
constraint acc_specifu_u_uid_fk foreign key (user_id) references users(id),
constraint acc_specifu_u_suid_fk foreign key (specific_user_id) references users(id),
constraint specifu_u_status_chk check (status in (0,1))
);
-- SERVICE_DENIALS - services excluded from ussage
create table service_denials (
id integer not null,
service_id integer not null, --identifier of service (services.id)
facility_id integer, --identifier of facility (facilities.id)
destination_id integer, --identifier of destination (destinations.id) if service is not excluded on whole service
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint srvden_pk primary key (id),
constraint srvden_srv_fk foreign key (service_id) references services(id),
constraint srvden_fac_fk foreign key (facility_id) references facilities(id),
constraint srvden_dest_fk foreign key (destination_id) references destinations(id),
constraint srvden_u check(service_id is not null and ((facility_id is not null and destination_id is null) or (facility_id is null and destination_id is not null)))
);
-- RESOURCE_SERVICES - services assigned to resource
create table resource_services (
service_id integer not null, --identifier of service (services.id)
resource_id integer not null, --identifier of resource (resources.id)
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint resrcsrv_pk primary key (service_id,resource_id),
constraint resrcsrv_srv_fk foreign key (service_id) references services(id),
constraint resrcsrv_rsrc_fk foreign key (resource_id) references resources(id)
);
-- APPLICATION - registration data
create table application (
id integer not null,
vo_id integer not null, --identifier of VO (vos.id)
user_id integer, --identifier of user (users.id)
apptype varchar not null, --type of application (initial/extension/embedded)
extSourceName varchar, --name of external source of users
extSourceType varchar, --type of external source of users (federation...)
fed_info text, --data from federation or cert
state varchar, --state of application (new/verified/approved/rejected)
extSourceLoa integer, --level of assurance of user by external source
group_id integer, --identifier of group (groups.id) if application is for group
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint app_pk primary key (id),
constraint app_vo_fk foreign key (vo_id) references vos(id) on delete cascade,
constraint app_group_fk foreign key (group_id) references groups(id) on delete cascade,
constraint app_user_fk foreign key (user_id) references users(id) on delete cascade,
constraint app_state_chk check (state in ('REJECTED','NEW','VERIFIED','APPROVED'))
);
-- APPLICATION_FORM - form for application into VO or group
create table application_form (
id integer not null,
vo_id integer not null, --identifier of VO (vos.id)
automatic_approval boolean default false not null, --approval of application is automatic
automatic_approval_extension boolean default false not null, --approval of extension is automatic
automatic_approval_embedded boolean default false not null, --approval of embedded application is automatic
module_name varchar, --name of module which processes application
group_id integer, --identifier of group (groups.id) if application is for group
created_by_uid integer,
modified_by_uid integer,
constraint applform_pk primary key (id),
constraint applform_vo_fk foreign key (vo_id) references vos(id) on delete cascade,
constraint applform_group_fk foreign key (group_id) references groups(id) on delete cascade
);
create type app_item_disabled as enum (
'NEVER',
'ALWAYS',
'IF_PREFILLED',
'IF_EMPTY'
);
create type app_item_hidden as enum (
'NEVER',
'ALWAYS',
'IF_PREFILLED',
'IF_EMPTY'
);
-- APPLICATION_FORM_ITEMS - items of application form
create table application_form_items (
id integer not null,
form_id integer not null, --identifier of form (application_form.id)
hidden app_item_hidden not null default 'NEVER',
disabled app_item_disabled not null default 'NEVER',
updatable boolean not null default true,
hidden_dependency_item_id integer,
disabled_dependency_item_id integer,
ordnum integer not null, --order of item
shortname varchar not null, --name of item
required boolean default false not null, --value for item is mandatory
type varchar, --type of item
fed_attr varchar, --copied from federation attribute
src_attr varchar, --sourced from attribute
dst_attr varchar, --saved to attribute
regex varchar, --regular expression for checking of value
created_by_uid integer,
modified_by_uid integer,
constraint applfrmit_pk primary key (id),
constraint applfrmit_applform foreign key (form_id) references application_form(id) on delete cascade,
constraint applfrmit_hd foreign key (hidden_dependency_item_id) references application_form_items(id) ON DELETE SET NULL,
constraint applfrmit_dd foreign key (disabled_dependency_item_id) references application_form_items(id) ON DELETE SET NULL
);
-- APPLICATION_FORM_ITEM_APPTYPES - possible types of app. form items
create table application_form_item_apptypes (
item_id integer not null, --identifier of form item (application_form_items.id)
apptype varchar not null, --type of item
created_by_uid integer,
modified_by_uid integer,
constraint applfrmittyp_applfrmit_fk foreign key (item_id) references application_form_items(id) on delete cascade
);
-- APPLICATION_FORM_ITEM_TEXTS - texts displayed with the items at app. form
create table application_form_item_texts (
item_id integer not null, --identifier of form item (application_form_items.id)
locale varchar not null, --language for application
label text, --label of item on app. form
options text, --options for items with menu
help varchar, --text of help
error_message varchar, --text of error message
created_by_uid integer,
modified_by_uid integer,
constraint applfrmittxt_pk primary key(item_id,locale),
constraint applfrmittxt_applfrmit_fk foreign key (item_id) references application_form_items(id) on delete cascade
);
-- APPLICATION_DATA - values of data entered by application form
create table application_data (
id integer not null,
app_id integer not null, --identifier of application (application.id)
item_id integer, --identifier of item (application_form_items.id)
shortname varchar, --name of item
value varchar, --value of item
assurance_level varchar, --level of assurance of item of newly registered user
created_by_uid integer,
modified_by_uid integer,
constraint appdata_pk primary key (id),
constraint appdata_app_fk foreign key (app_id) references application(id) on delete cascade,
constraint appdata_applfrmit_fk foreign key (item_id) references application_form_items(id) on delete cascade
);
-- APPLICATION_MAILS - notification mails sent together with application
create table application_mails (
id integer not null,
form_id integer not null, --identifier of form (application_form.id)
app_type varchar not null, --application type (initial/extension/embedded)
mail_type varchar not null, --type of mail (user/administrator)
send boolean default false not null, --sent (Y/N)
created_by_uid integer,
modified_by_uid integer,
constraint appmails_pk primary key (id),
constraint appmails_u unique (form_id,app_type,mail_type),
constraint appmail_appform_fk foreign key (form_id) references application_form(id) on delete cascade
);
-- APPLICATION_MAIL_TEXTS - texts of notification mails
create table application_mail_texts (
mail_id integer not null, --identifier of mail (application_mails.id)
locale varchar not null, --language for texts
subject varchar, --subject of mail
text varchar, --text of mail
created_by_uid integer,
modified_by_uid integer,
constraint appmailtxt_pk primary key (mail_id, locale),
constraint appmailtxt_appmails_fk foreign key (mail_id) references application_mails(id) on delete cascade
);
-- APPLICATION_RESERVED_LOGINS - lognames reserved for new users who has not been saved at users table yet
create table application_reserved_logins (
login varchar not null, --logname
namespace varchar not null, --namespace where logname is reserved
app_id integer not null, --identifier of application (application.id)
created_by varchar default user not null,
created_at timestamp default statement_timestamp() not null,
created_by_uid integer,
modified_by_uid integer,
constraint app_logins_pk primary key(login, namespace),
constraint applogin_appid_fk foreign key(app_id) references application(id)
);
-- FACILITY_SERVICE_DESTINATIONS - destinations of services assigned to the facility
create table facility_service_destinations (
service_id integer not null, --identifier of service (services.id)
facility_id integer not null, --identifier of facility (facilities.id)
destination_id integer not null, --identifier of destination (destinations.id)
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
propagation_type varchar default 'PARALLEL',
constraint dest_srv_fk foreign key (service_id) references services(id),
constraint dest_fac_fk foreign key (facility_id) references facilities(id),
constraint dest_dest_fk foreign key(destination_id) references destinations(id)
);
-- ENTITYLESS_ATTR_VALUES - value of attributes which are not assigned to any entity
create table entityless_attr_values (
subject varchar not null, --indicator of subject assigned with attribute
attr_id integer not null, --identifier of attribute (attr_names.id)
attr_value text, --attribute value
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint entlatval_pk primary key(subject,attr_id),
constraint entlatval_attr_fk foreign key (attr_id) references attr_names(id)
);
-- FACILITY_ATTR_VALUES - attribute values assigned to facility
create table facility_attr_values (
facility_id integer not null, --identifier of facility (facilities.id)
attr_id integer not null, --identifier of attribute (attr_names.id)
attr_value text, --attribute value
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint facattval_pk primary key (facility_id,attr_id),
constraint facattval_nam_fk foreign key (attr_id) references attr_names(id),
constraint facattval_fac_fk foreign key (facility_id) references facilities (id)
);
-- FACILITY_ATTR_U_VALUES - unique attribute values
CREATE TABLE facility_attr_u_values (
facility_id INT NOT NULL,
attr_id INT NOT NULL,
attr_value text,
UNIQUE (attr_id, attr_value),
FOREIGN KEY (facility_id,attr_id) REFERENCES facility_attr_values ON DELETE CASCADE
);
-- GROUP_ATTR_VALUES - attribute values assigned to groups
create table group_attr_values (
group_id integer not null, --identifier of group (groups.id)
attr_id integer not null, --identifier of attribute (attr_names.id)
attr_value text, --attribute value
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint grpattval_pk primary key (group_id,attr_id),
constraint grpattval_grp_fk foreign key (group_id) references groups(id),
constraint grpattval_attr_fk foreign key (attr_id) references attr_names(id)
);
-- GROUP_ATTR_U_VALUES - unique attribute values
CREATE TABLE group_attr_u_values (
group_id INT NOT NULL,
attr_id INT NOT NULL,
attr_value text,
UNIQUE (attr_id, attr_value),
FOREIGN KEY (group_id,attr_id) REFERENCES group_attr_values ON DELETE CASCADE
);
-- RESOURCE_ATTR_VALUES - attribute values assigned to resources
create table resource_attr_values (
resource_id integer not null, --identifier of resource (resources.id)
attr_id integer not null, --identifier of attribute (attr_names.id)
attr_value text, --attribute value
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint resatval_pk primary key (resource_id,attr_id),
constraint resatval_res_fk foreign key(resource_id) references resources(id),
constraint resatval_resatnam_fk foreign key(attr_id) references attr_names(id)
);
-- RESOURCE_ATTR_U_VALUES - unique attribute values
CREATE TABLE resource_attr_u_values (
resource_id INT NOT NULL,
attr_id INT NOT NULL,
attr_value text,
UNIQUE (attr_id, attr_value),
FOREIGN KEY (resource_id,attr_id) REFERENCES resource_attr_values ON DELETE CASCADE
);
-- GROUP_RESOURCE_ATTR_VALUES - attribute values assigned to groups and resources
create table group_resource_attr_values (
group_id integer not null, --identifier of group (groups.id)
resource_id integer not null, --identifier of resource (resources.id)
attr_id integer not null, --identifier of attribute (attr_names.id)
attr_value text, --attribute value
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint grpresav_pk primary key (group_id,resource_id,attr_id),
constraint grpresav_grp_fk foreign key (group_id) references groups(id),
constraint grpresav_res_fk foreign key (resource_id) references resources(id),
constraint grpresav_attr_fk foreign key (attr_id) references attr_names(id)
);
-- GROUP_RESOURCE_ATTR_U_VALUES - unique attribute values
CREATE TABLE group_resource_attr_u_values (
group_id INT NOT NULL,
resource_id INT NOT NULL,
attr_id INT NOT NULL,
attr_value text,
UNIQUE (attr_id, attr_value),
FOREIGN KEY (group_id,resource_id,attr_id) REFERENCES group_resource_attr_values ON DELETE CASCADE
);
-- GROUPS_MEMBERS - members of groups
create table groups_members (
group_id integer not null, --identifier of group (groups.id)
member_id integer not null, --identifier of member (members.id)
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
source_group_status integer not null default 0,
created_by_uid integer,
modified_by_uid integer,
membership_type integer not null, --identifier of membership type (membersip_types.id)
source_group_id integer not null, --identifier of parent group (groups.id) if any
constraint grpmem_pk primary key (member_id,group_id, source_group_id),
constraint grpmem_gr_fk foreign key (group_id) references groups(id),
constraint grpmem_mem_fk foreign key (member_id) references members(id),
constraint grpmem_memtype_fk foreign key (membership_type) references membership_types(id)
);
create type group_resource_status as enum (
'ACTIVE',
'INACTIVE',
'FAILED',
'PROCESSING'
);
-- GROUPS_RESOURCES - groups assigned to resource
create table groups_resources (
group_id integer not null, --identifier of group (groups.id)
resource_id integer not null, --identifier of resource (resources.id)
status group_resource_status not null default 'PROCESSING',
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint grres_grp_res_u unique (group_id,resource_id),
constraint grres_gr_fk foreign key (group_id) references groups(id),
constraint grres_res_fk foreign key (resource_id) references resources(id)
);
-- MEMBER_ATTR_VALUES - values of attributes assigned to members
create table member_attr_values (
member_id integer not null, --identifier of member (members.id)
attr_id integer not null, --identifier of attribute (attr_names.id)
attr_value text, --attribute value
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint memattval_pk primary key (member_id,attr_id),
constraint memattval_mem_fk foreign key (member_id) references members(id),
constraint memattval_attr_fk foreign key (attr_id) references attr_names(id)
);
-- MEMBER_ATTR_U_VALUES -- unique attribute values
CREATE TABLE member_attr_u_values (
member_id INT NOT NULL,
attr_id INT NOT NULL,
attr_value text,
UNIQUE (attr_id, attr_value),
FOREIGN KEY (member_id,attr_id) REFERENCES member_attr_values ON DELETE CASCADE
);
-- MEMBER_GROUP_ATTR_VALUES - values of attributes assigned to members in groups
create table member_group_attr_values (
member_id integer not null, --identifier of member (members.id)
group_id integer not null, --identifier of group (groups.id)
attr_id integer not null, --identifier of attribute (attr_names.id)
attr_value text, --attribute value
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint memgav_pk primary key(member_id,group_id,attr_id),
constraint memgav_mem_fk foreign key (member_id) references members(id),
constraint memgav_grp_fk foreign key (group_id) references groups(id),
constraint memgav_accattnam_fk foreign key (attr_id) references attr_names(id)
);
-- MEMBER_GROUP_ATTR_U_VALUES - unique attribute values
CREATE TABLE member_group_attr_u_values (
member_id INT NOT NULL,
group_id INT NOT NULL,
attr_id INT NOT NULL,
attr_value text,
UNIQUE (attr_id, attr_value),
FOREIGN KEY (member_id,group_id,attr_id) REFERENCES member_group_attr_values ON DELETE CASCADE
);
-- MEMBER_RESOURCE_ATTR_VALUES - values of attributes assigned to members on resources
create table member_resource_attr_values (
member_id integer not null, --identifier of member (members.id)
resource_id integer not null, --identifier of resource (resources.id)
attr_id integer not null, --identifier of attribute (attr_names.id)
attr_value text, --attribute value
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint memrav_pk primary key(member_id,resource_id,attr_id),
constraint memrav_mem_fk foreign key (member_id) references members(id),
constraint memrav_rsrc_fk foreign key (resource_id) references resources(id),
constraint memrav_accattnam_fk foreign key (attr_id) references attr_names(id)
);
-- MEMBER_RESOURCE_ATTR_U_VALUES - unique attribute values
CREATE TABLE member_resource_attr_u_values (
member_id INT NOT NULL,
resource_id INT NOT NULL,
attr_id INT NOT NULL,
attr_value text,
UNIQUE (attr_id, attr_value),
FOREIGN KEY (member_id,resource_id,attr_id) REFERENCES member_resource_attr_values ON DELETE CASCADE
);
-- USER_ATTR_VALUES - values of attributes assigned to users
create table user_attr_values (
user_id integer not null, --identifier of user (users.id)
attr_id integer not null, --identifier of attribute (attr_names.id)
attr_value text, --attribute value
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint usrav_pk primary key(user_id,attr_id),
constraint usrav_usr_fk foreign key (user_id) references users(id),
constraint usrav_accattnam_fk foreign key (attr_id) references attr_names(id)
);
-- USER_ATTR_U_VALUE - unique attribute values
CREATE TABLE user_attr_u_values (
user_id INT NOT NULL,
attr_id INT NOT NULL,
attr_value text,
UNIQUE (attr_id, attr_value),
FOREIGN KEY (user_id,attr_id) REFERENCES user_attr_values ON DELETE CASCADE
);
-- USER_FACILITY_ATTR_VALUES - values of attributes assigned to users on facilities
create table user_facility_attr_values (
user_id integer not null, --identifier of user (users.id)
facility_id integer not null, --identifier of facility (facilities.id)
attr_id integer not null, --identifier of attribute (attr_names.id)
attr_value text, --attribute value
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint usrfacav_u primary key(user_id,facility_id,attr_id),
constraint usrfacav_mem_fk foreign key (user_id) references users(id),
constraint usrfacav_fac_fk foreign key (facility_id) references facilities(id),
constraint usrfacav_accattnam_fk foreign key (attr_id) references attr_names(id)
);
-- USER_FACILITY_ATTR_U_VALUES - unique attribute values
CREATE TABLE user_facility_attr_u_values (
user_id INT NOT NULL,
facility_id INT NOT NULL,
attr_id INT NOT NULL,
attr_value text,
UNIQUE (attr_id, attr_value),
FOREIGN KEY (user_id,facility_id,attr_id) REFERENCES user_facility_attr_values ON DELETE CASCADE
);
-- VO_ATTR_VALUES - attributes specific for VO
create table vo_attr_values (
vo_id integer not null, --identifier of VO (vos.id)
attr_id integer not null, --identifier of attribute (attr_names.id)
attr_value text, --attribute value
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint voattval_pk primary key (vo_id,attr_id),
constraint voattval_nam_fk foreign key (attr_id) references attr_names(id),
constraint voattval_vo_fk foreign key (vo_id) references vos (id)
);
-- VO_ATTR_U_VALUES - unique attribute values
CREATE TABLE vo_attr_u_values (
vo_id INT NOT NULL,
attr_id INT NOT NULL,
attr_value text,
UNIQUE (attr_id, attr_value),
FOREIGN KEY (vo_id,attr_id) REFERENCES vo_attr_values ON DELETE CASCADE
);
-- EXT_SOURCES - external sources from which we can gain data about users
create table ext_sources (
id integer not null,
name varchar not null, --name of source
type varchar, --type of source (LDAP/IdP...)
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint usrsrc_pk primary key(id),
constraint usrsrc_u unique (name)
);
-- EXT_SOURCES_ATTRIBUTES - values of attributes of external sources
create table ext_sources_attributes (
ext_sources_id integer not null, --identifier of ext. source (ext_sources.id)
attr_name varchar not null, --name of attribute at ext. source
attr_value text, --value of attribute
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint usrcatt_usrc_fk foreign key (ext_sources_id) references ext_sources(id)
);
-- VO_EXT_SOURCES - external sources assigned to VO
create table vo_ext_sources (
vo_id integer not null, --identifier of VO (vos.id)
ext_sources_id integer not null, --identifier of ext. source (ext_sources.id)
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint vousrsrc_pk primary key (vo_id,ext_sources_id),
constraint vousrsrc_usrsrc_fk foreign key(ext_sources_id) references ext_sources(id),
constraint vousrsrc_vos_fk foreign key(vo_id) references vos(id)
);
-- GROUP_EXT_SOURCES - external source assigned to GROUP
create table group_ext_sources (
group_id integer not null,
ext_source_id integer not null,
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint groupsrc_pk primary key (group_id,ext_source_id),
constraint groupsrc_src_fk foreign key(ext_source_id) references ext_sources(id),
constraint groupsrc_groups_fk foreign key(group_id) references groups(id)
);
-- USER_EXT_SOURCES - external source from which user come (identification of user in his home system)
create table user_ext_sources (
id integer not null,
user_id integer not null, --identifier of user (users.id)
login_ext varchar not null, --logname from his home system
ext_sources_id integer not null, --identifier of ext. source (ext_sources.id)
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
loa integer, --level of assurance
last_access timestamp default statement_timestamp() not null, --time of last user's access (to Perun) by using this external source
created_by_uid integer,
modified_by_uid integer,
constraint usrex_p primary key(id),
constraint usrex_u unique (ext_sources_id,login_ext),
constraint usrex_usr_fk foreign key (user_id) references users(id),
constraint usrex_usersrc_fk foreign key(ext_sources_id) references ext_sources(id)
);
-- SERVICE_PACKAGES - possible groups of services
create table service_packages (
id integer not null,
name varchar not null, --name of service package
description varchar, --purpose,description
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint pkg_pk primary key (id),
constraint pkg_name unique(name)
);
-- SERVICE_SERVICE_PACKAGES - groups of services which should to be executed together however at specific order
create table service_service_packages (
service_id integer not null, --identifier of service (services.id)
package_id integer not null, --identifier of package (service_packages.id)
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint srvpkg_srv_pk primary key(service_id,package_id),
constraint srvpkg_srv_fk foreign key(service_id) references services(id),
constraint srvpkg_pkg_fk foreign key(package_id) references service_packages(id)
);
-- TASKS - contains planned services and services finished at near past
create table tasks (
id integer not null,
service_id integer not null, --identifier of executed service (services.id)
facility_id integer not null, --identifier of target facility (facilities.id)
schedule timestamp not null, --planned time for starting task
recurrence integer not null, --number of repeating of task in case of error
delay integer not null, --delay after next executing in case of error
status varchar not null, --state of task
start_time timestamp, --real start time of task
end_time timestamp, --real end time of task
engine_id integer default 1, --identifier of engine which is executing the task
created_at timestamp default statement_timestamp() not null,
err_message varchar, --return message in case of error
created_by_uid integer,
modified_by_uid integer,
constraint task_pk primary key (id),
constraint task_u unique (service_id, facility_id),
constraint task_srv_fk foreign key (service_id) references services(id),
constraint task_fac_fk foreign key (facility_id) references facilities(id),
constraint task_stat_chk check (status in ('WAITING', 'PLANNED', 'GENERATING', 'GENERROR', 'GENERATED', 'SENDING', 'DONE', 'SENDERROR', 'ERROR', 'WARNING'))
);
-- TASKS_RESULTS - contains partial results of tasks (executing, waiting and at near past finished)
create table tasks_results (
id integer not null,
task_id integer not null, --identifier of task (tasks.id)
destination_id integer not null, --identifier of destination (destinations.id)
status varchar not null, --status of task
err_message varchar, --return message in case of error
std_message varchar, --return message in case of success
return_code integer, --returned value
timestamp timestamp, --real time of executing
engine_id integer default 1 not null, --identifier of executing engine
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint taskres_pk primary key (id),
constraint taskres_task_fk foreign key (task_id) references tasks(id),
constraint taskres_dest_fk foreign key (destination_id) references destinations(id),
constraint taskres_stat_chk check (status in ('DONE','ERROR','DENIED', 'WARNING'))
);
create table auditer_log (
id integer not null, --identifier of logged event
msg text not null, --text of logging message
actor varchar not null, --who causes the event
created_at timestamp default statement_timestamp() not null,
created_by_uid integer,
modified_by_uid integer,
constraint audlog_pk primary key (id)
);
-- RESERVED_LOGINS - reserved lognames, actually is not used. Prepared for reservation by core.
create table reserved_logins (
login varchar, --logname
namespace varchar, --namespace in which is logname using
application varchar, --relation to application if any
id varchar,
created_by_uid integer,
modified_by_uid integer,
constraint reservlogins_pk primary key (login,namespace)
);
-- PN_AUDIT_MESSAGE - Contains all messages retrieved from the auditer log, since the notification module is auditer consumer. These messages are waiting to be processed by the notification module
create table pn_audit_message (
message text,
id integer NOT NULL,
created_by_uid integer,
modified_by_uid integer,
constraint pn_audmsg_pk primary key (id)
);
-- PN_OBJECT - Keeps names of the Perun beans and their properties, for the recognition in a regular expression in the notification module
create table pn_object (
id integer NOT NULL,
name varchar, --arbitrary name
properties varchar, --set of names of methods divided by ';'
class_name varchar, --the whole java class name of the object, e.g. 'cz.metacentrum.perun.core.api.Vo'
created_by_uid integer,
modified_by_uid integer,
constraint pn_object_pk primary key (id)
);
-- PN_TEMPLATE - Contains templates for creating the message in the notification module
create table pn_template (
id integer NOT NULL,
primary_properties varchar NOT NULL, --important attributes, which messages will be grouped on, same as later PN_POOL_MESSAGE.KEY_ATTRIBUTES
notify_trigger varchar, --configures two approaches to the grouping messages,
--when equals 'ALL_REGEX_IDS', the pool messages are grouped and sent when all needed audit messages are collected
--when equals 'STREAM', the related pool messages are waiting for the certain amount of time and then sent
youngest_message_time integer, --time limit for the youngest message
oldest_message_time integer, --time limit for the oldest message
name varchar, --arbitrary name
sender varchar, --email addres that will be stated as sender
created_by_uid integer,
modified_by_uid integer,
constraint pn_tmpl_pk primary key (id)
);
-- PN_POOL_MESSAGE - Contains all messages, which are already processed by the notification module. The mesages will be grouped in this table before sending
create table pn_pool_message (
id integer NOT NULL,
regex_id integer NOT NULL, --references a regular expression binded to a message
template_id integer NOT NULL, --references a template binded to a message
key_attributes varchar NOT NULL, --contains all attributes extracted from audit message that are important for grouping messages
created timestamp default statement_timestamp() NOT NULL, --the time of the pool message creation, important when PN_TEMPLATE.NOTIFY_TRIGGER is set to 'stream'
notif_message text NOT NULL, --contains original audit message, important when gaining attributes in template message
created_by_uid integer,
modified_by_uid integer,
constraint pn_poolmsg_pk primary key (id),
constraint pn_poolmsg_tmpl_fk foreign key (template_id) references pn_template(id)
);
-- PN_RECEIVER - Keeps information about receiver of messages from notification module
create table pn_receiver (
id integer NOT NULL,
target varchar NOT NULL, --the email address or jabber of the receiver
type_of_receiver varchar NOT NULL, --available options are email_user/email_group/jabber
template_id integer NOT NULL, --reference to the pn_template
created_by_uid integer,
modified_by_uid integer,
locale varchar, ----the message language and formating is based on locale
constraint pn_receiver_pk primary key (id),
constraint pn_receiver_tmpl_fk foreign key (template_id) references pn_template(id)
);
-- PN_REGEX - Keeps regular expressions, which are used to parse audit messages in the notification module
create table pn_regex (
id integer NOT NULL,
note varchar, --comment to the regex
regex varchar NOT NULL, --the regular expression
created_by_uid integer,
modified_by_uid integer,
constraint pn_regex_pk primary key (id)
);
-- PN_TEMPLATE_MESSAGE - Contains text messages that the notification module sends. The freemaker syntax can be used in the message, so the content is dynamic and is able to contain attributes from the audit message
create table pn_template_message (
id integer NOT NULL,
template_id integer NOT NULL, --reference to the pn_template
locale varchar NOT NULL, --the message language and formating is based on locale
message varchar, --text message
created_by_uid integer,
modified_by_uid integer,
subject varchar not null, --text, which is used as subject of the message
constraint pn_tmplmsg_pk primary key (id),
constraint pn_tmplmsg_tmpl_fk foreign key (template_id) references pn_template(id) deferrable
);
-- PN_TEMPLATE_REGEX - Represents relation between pn_template and pn_regex in the notification module
create table pn_template_regex (
regex_id integer NOT NULL, --referecnce to the regular expression
template_id integer NOT NULL, --reference to the pn_template
id integer NOT NULL,
created_by_uid integer,
modified_by_uid integer,
constraint pn_tmplrgx_pk primary key (id),
constraint pn_tmplrgx_rgx_fk foreign key (regex_id) references pn_regex(id),
constraint pn_tmplrgx_tmpl_fk foreign key (template_id) references pn_template(id)
);
-- PN_REGEX_OBJECT - Represents relation between pn_regex and pn_object in the notification module
create table pn_regex_object (
id integer NOT NULL,
regex_id integer NOT NULL, --referecnce to the pn_regex
object_id integer NOT NULL, --reference to the pn_object
created_by_uid integer,
modified_by_uid integer,
constraint pn_rgxobj_pk primary key (id),
constraint pn_rgxobj_rgx_fk foreign key (regex_id) references pn_regex(id),
constraint pn_rgxobj_obj_fk foreign key (object_id) references pn_object(id)
);
-- GROUPS_GROUPS - Groups relations (union,subgroups)
create table groups_groups (
result_gid integer not null, --identifier of group
operand_gid integer not null, --identifier of operand group (unioned / parent group)
parent_flag boolean default false,
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
constraint grp_grp_pk primary key (result_gid,operand_gid),
constraint grp_grp_rgid_fk foreign key (result_gid) references groups(id),
constraint grp_grp_ogid_fk foreign key (operand_gid) references groups(id)
);
-- RES_TAGS - possible resource tags in VO
create table res_tags (
id integer not null,
vo_id integer not null, --identifier of VO
tag_name varchar not null, --name of tag (computationl node/storage...)
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint restags_pk primary key (id),
constraint restags_u unique (vo_id, tag_name),
constraint restags_vos_fk foreign key (vo_id) references vos(id)
);
-- TAGS_RESOURCES - relation between tags and resources
create table tags_resources (
tag_id integer not null, --identifier of tag (res_tags.id)
resource_id integer not null, --identifier of resource
constraint tags_res_pk primary key (tag_id,resource_id),
constraint tags_res_tags_fk foreign key (tag_id) references res_tags(id),
constraint tags_res_res_fk foreign key (resource_id) references resources(id)
);
-- CONFIGURATIONS - system Perun configuration
create table configurations (
property varchar not null, --property (for example database version)
value varchar not null, --value of configuration property
constraint config_pk primary key (property)
);
-- MAILCHANGE - allow to user to change mail address, temporairly saved mails during change is in progress
create table mailchange (
id integer not null,
uu_id uuid not null default gen_random_uuid(),
value text not null, --
user_id integer not null, --identifier of user (users.id)
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
created_by_uid integer,
constraint mailchange_pk primary key (id),
constraint mailchange_u_fk foreign key (user_id) references users(id)
);
--PWDRESET - allows to user to change passwd
create table pwdreset (
id integer not null,
uu_id uuid not null default gen_random_uuid(),
namespace text not null,
mail text,
user_id integer not null,
validity_to timestamp not null,
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
created_by_uid integer,
constraint pwdreset_pk primary key (id),
constraint pwdreset_u_fk foreign key (user_id) references users(id)
);
create table security_teams (
id integer not null,
name varchar not null,
description varchar,
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint security_teams_pk primary key (id)
);
create table security_teams_facilities (
security_team_id integer not null,
facility_id integer not null,
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint security_teams_facilities_pk primary key (security_team_id, facility_id),
constraint security_teams_facilities_security_team_fk foreign key (security_team_id) references security_teams(id),
constraint security_teams_facilities_facilities_fk foreign key (facility_id) references facilities(id)
);
create table blacklists (
security_team_id integer not null,
user_id integer not null,
description varchar,
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint bllist_pk primary key (security_team_id,user_id),
constraint bllist_secteam_fk foreign key (security_team_id) references security_teams (id),
constraint bllist_user_fk foreign key (user_id) references users(id)
);
create table vos_bans (
id integer not null,
member_id integer not null,
vo_id integer not null,
description varchar,
banned_to timestamp default '2999-01-01 00:00:00' not null,
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint vos_bans_pk primary key (id),
constraint vos_bans_u unique (member_id),
constraint vos_bans_mem_fk foreign key (member_id) references members (id),
constraint vos_bans_vo_fk foreign key (vo_id) references vos (id)
);
create table resources_bans (
id integer not null,
member_id integer not null,
resource_id integer not null,
description varchar,
banned_to timestamp not null,
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint res_bans_pk primary key (id),
constraint res_bans_u unique (member_id, resource_id),
constraint res_bans_mem_fk foreign key (member_id) references members (id),
constraint res_bans_res_fk foreign key (resource_id) references resources (id)
);
create table facilities_bans (
id integer not null,
user_id integer not null,
facility_id integer not null,
description varchar,
banned_to timestamp not null,
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint fac_bans_pk primary key (id),
constraint fac_bans_u unique (user_id, facility_id),
constraint fac_bans_usr_fk foreign key (user_id) references users (id),
constraint fac_bans_fac_fk foreign key (facility_id) references facilities (id)
);
create table user_ext_source_attr_values (
user_ext_source_id integer not null,
attr_id integer not null,
attr_value text,
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
created_by_uid integer,
modified_by_uid integer,
constraint uesattrval_pk primary key (user_ext_source_id, attr_id),
constraint uesattrval_ues_fk foreign key (user_ext_source_id) references user_ext_sources(id),
constraint uesattrval_attr_fk foreign key (attr_id) references attr_names(id)
);
-- USER_EXT_SOURCE_ATTR_U_VALUES - unique attribute values
CREATE TABLE user_ext_source_attr_u_values (
user_ext_source_id INT NOT NULL,
attr_id INT NOT NULL,
attr_value text,
UNIQUE (attr_id, attr_value),
FOREIGN KEY (user_ext_source_id,attr_id) REFERENCES user_ext_source_attr_values ON DELETE CASCADE
);
CREATE TABLE members_sponsored (
active boolean default true not null,
sponsored_id INTEGER NOT NULL,
sponsor_id INTEGER NOT NULL,
validity_to timestamp default null,
created_at timestamp default statement_timestamp() not null,
created_by varchar default user not null,
created_by_uid integer,
modified_at timestamp default statement_timestamp() not null,
modified_by varchar default user not null,
modified_by_uid integer,
constraint memspons_mem_fk foreign key (sponsored_id) references members(id),
constraint memspons_usr_fk foreign key (sponsor_id) references users(id),
constraint memspons_mem_usr_u unique (sponsored_id, sponsor_id)
);
-- AUTHZ - assigned roles to users/groups/VOs/other entities...
create table authz (
user_id integer, --identifier of user
role_id integer not null, --identifier of role
vo_id integer, --identifier of VO
facility_id integer, --identifier of facility
member_id integer, --identifier of member
group_id integer, --identifier of group
service_id integer, --identifier of service
resource_id integer, --identifier of resource
sponsored_user_id integer, --identifier of sponsored user
created_by_uid integer,
modified_by_uid integer,
authorized_group_id integer, --identifier of whole authorized group
security_team_id integer, --identifier of security team
constraint authz_role_fk foreign key (role_id) references roles(id),
constraint authz_user_fk foreign key (user_id) references users(id),
constraint authz_authz_group_fk foreign key (authorized_group_id) references groups(id),
constraint authz_vo_fk foreign key (vo_id) references vos(id),
constraint authz_fac_fk foreign key (facility_id) references facilities(id),
constraint authz_mem_fk foreign key (member_id) references members(id),
constraint authz_group_fk foreign key (group_id) references groups(id),
constraint authz_service_fk foreign key (service_id) references services(id),
constraint authz_res_fk foreign key (resource_id) references resources(id),
constraint authz_sponsu_fk foreign key (sponsored_user_id) references users(id),
constraint authz_sec_team_fk foreign key (security_team_id) references security_teams(id),
constraint authz_user_autgrp_chk check
((user_id is not null and authorized_group_id is null) or (user_id is null and authorized_group_id is not null))
);
create table groups_to_register (
group_id integer,
constraint grpreg_group_fk foreign key (group_id) references groups(id) on delete cascade
);
create sequence "attr_names_id_seq";
create sequence "auditer_consumers_id_seq";
create sequence "auditer_log_id_seq";
create sequence "destinations_id_seq";
create sequence "ext_sources_id_seq";
create sequence "facilities_id_seq";
create sequence "groups_id_seq";
create sequence "hosts_id_seq";
create sequence "members_id_seq";
create sequence "owners_id_seq";
create sequence "resources_id_seq";
create sequence "services_id_seq";
create sequence "service_denials_id_seq";
create sequence "service_packages_id_seq";
create sequence "tasks_id_seq";
create sequence "tasks_results_id_seq";
create sequence "users_id_seq";
create sequence "user_ext_sources_id_seq";
create sequence "vos_id_seq";
create sequence "cabinet_publications_id_seq";
create sequence "cabinet_pub_sys_id_seq";
create sequence "cabinet_authorships_id_seq";
create sequence "cabinet_thanks_id_seq";
create sequence "cabinet_categories_id_seq";
create sequence "roles_id_seq";
create sequence "application_form_id_seq";
create sequence "application_form_items_id_seq";
create sequence "application_id_seq";
create sequence "application_data_id_seq";
create sequence "application_mails_id_seq";
create sequence "pn_object_id_seq";
create sequence "pn_pool_message_id_seq";
create sequence "pn_receiver_id_seq";
create sequence "pn_regex_id_seq";
create sequence "pn_template_id_seq";
create sequence "pn_audit_message_id_seq";
create sequence "pn_template_regex_seq";
create sequence "pn_template_message_id_seq";
create sequence "pn_regex_object_seq";
create sequence "action_types_seq";
create sequence "res_tags_seq";
create sequence "mailchange_id_seq";
create sequence "pwdreset_id_seq";
create sequence "security_teams_id_seq";
create sequence "resources_bans_id_seq";
create sequence "facilities_bans_id_seq";
create sequence "vos_bans_id_seq";
create unique index idx_grp_nam_vo_parentg_u on groups (name,vo_id,coalesce(parent_group_id,'0'));
create index idx_namespace on attr_names(namespace);
create index idx_authz_user_role_id on authz (user_id,role_id);
create index idx_authz_authz_group_role_id on authz (authorized_group_id,role_id);
create index idx_fk_cabthank_pub on cabinet_thanks(publicationid);
create index idx_fk_usrex_usr on user_ext_sources(user_id);
create index idx_fk_usrex_usersrc on user_ext_sources(ext_sources_id);
create index idx_fk_mem_user on members(user_id);
create index idx_fk_mem_vo on members(vo_id);
create index idx_fk_host_fac on hosts(facility_id);
create index idx_fk_dest_srv on facility_service_destinations(service_id);
create index idx_fk_dest_fac on facility_service_destinations(facility_id);
create index idx_fk_dest_destc on facility_service_destinations(destination_id);
create index idx_fk_vousrsrc_usrsrc on vo_ext_sources(ext_sources_id);
create index idx_fk_vousrsrc_vos on vo_ext_sources(vo_id);
create index idx_fk_groupsrc_src on group_ext_sources(ext_source_id);
create index idx_fk_groupsrc_group on group_ext_sources(group_id);
create index idx_fk_usrcatt_usrc on ext_sources_attributes(ext_sources_id);
create index idx_fk_rsrc_fac on resources(facility_id);
create index idx_fk_rsrc_vo on resources(vo_id);
create index idx_fk_faccont_fac on facility_contacts(facility_id);
create index idx_fk_faccont_usr on facility_contacts(user_id);
create index idx_fk_faccont_own on facility_contacts(owner_id);
create index idx_fk_faccont_grp on facility_contacts(group_id);
create index idx_fk_resatval_res on resource_attr_values(resource_id);
create index idx_fk_resatval_resatnam on resource_attr_values(attr_id);
create index idx_fk_usrav_usr on user_attr_values(user_id);
create index idx_fk_usrav_accattnam on user_attr_values(attr_id);
create index idx_fk_facow_fac on facility_owners(facility_id);
create index idx_fk_facow_ow on facility_owners(owner_id);
create index idx_fk_facattval_nam on facility_attr_values(attr_id);
create index idx_fk_facattval_fac on facility_attr_values(facility_id);
create index idx_fk_voattval_nam on vo_attr_values(attr_id);
create index idx_fk_voattval_vo on vo_attr_values(vo_id);
create index idx_fk_srvpkg_srv on service_service_packages(service_id);
create index idx_fk_srvpkg_pkg on service_service_packages(package_id);
create index idx_fk_grp_vos on groups(vo_id);
create index idx_fk_grp_grp on groups(parent_group_id);
create index idx_fk_memrav_mem on member_resource_attr_values(member_id);
create index idx_fk_memrav_rsrc on member_resource_attr_values(resource_id);
create index idx_fk_memrav_accattnam on member_resource_attr_values(attr_id);
create index idx_fk_memgav_mem on member_group_attr_values(member_id);
create index idx_fk_memgav_grp on member_group_attr_values(group_id);
create index idx_fk_memgav_accattnam on member_group_attr_values(attr_id);
create index idx_fk_usrfacav_mem on user_facility_attr_values(user_id);
create index idx_fk_usrfacav_fac on user_facility_attr_values(facility_id);
create index idx_fk_usrfacav_accattnam on user_facility_attr_values(attr_id);
create index idx_fk_task_srv on tasks(service_id);
create index idx_fk_task_fac on tasks(facility_id);
create index idx_fk_taskres_task on tasks_results(task_id);
create index idx_fk_taskres_dest on tasks_results(destination_id);
create index idx_fk_srvden_srv on service_denials(service_id);
create index idx_fk_srvden_fac on service_denials(facility_id);
create index idx_fk_srvden_dest on service_denials(destination_id);
create unique index idx_srvden_u ON service_denials(COALESCE(service_id, '0'), COALESCE(facility_id, '0'), COALESCE(destination_id, '0'));
create index idx_fk_srvreqattr_srv on service_required_attrs(service_id);
create index idx_fk_srvreqattr_attr on service_required_attrs(attr_id);
create index idx_fk_resrcsrv_srv on resource_services(service_id);
create index idx_fk_resrcsrv_rsrc on resource_services(resource_id);
create index idx_fk_memattval_mem on member_attr_values(member_id);
create index idx_fk_memattval_attr on member_attr_values(attr_id);
create index idx_fk_grpattval_grp on group_attr_values(group_id);
create index idx_fk_grpattval_attr on group_attr_values(attr_id);
create index idx_fk_grpresav_grp on group_resource_attr_values(group_id);
create index idx_fk_grpresav_res on group_resource_attr_values(resource_id);
create index idx_fk_grpresav_attr on group_resource_attr_values(attr_id);
create index idx_fk_hostav_host on host_attr_values(host_id);
create index idx_fk_hostav_attrt on host_attr_values(attr_id);
create index idx_fk_entlatval_attr on entityless_attr_values(attr_id);
create index idx_fk_catpub_sys on cabinet_publications(publicationsystemid);
create index idx_fk_cabpub_cat on cabinet_publications(categoryid);
create unique index idx_faccont_u2 ON facility_contacts (COALESCE(user_id, '0'), COALESCE(owner_id, '0'), COALESCE(group_id, '0'), facility_id, name);
create unique index idx_authz_u ON authz (COALESCE(user_id, '0'), COALESCE(authorized_group_id, '0'), role_id, COALESCE(group_id, '0'), COALESCE(vo_id, '0'), COALESCE(facility_id, '0'), COALESCE(member_id, '0'), COALESCE(resource_id, '0'), COALESCE(service_id, '0'), COALESCE(security_team_id, '0'), COALESCE(sponsored_user_id, '0'));
create index idx_fk_authz_role on authz(role_id);
create index idx_fk_authz_user on authz(user_id);
create index idx_fk_authz_authz_group on authz(authorized_group_id);
create index idx_fk_authz_vo on authz(vo_id);
create index idx_fk_authz_fac on authz(facility_id);
create index idx_fk_authz_mem on authz(member_id);
create index idx_fk_authz_group on authz(group_id);
create index idx_fk_authz_service on authz(service_id);
create index idx_fk_authz_res on authz(resource_id);
create index idx_fk_authz_sec_team on authz(security_team_id);
create index idx_fk_authz_sponsu on authz(sponsored_user_id);
create index idx_fk_grres_gr on groups_resources(group_id);
create index idx_fk_grres_res on groups_resources(resource_id);
create index idx_fk_grpmem_gr on groups_members(group_id);
create index idx_fk_grpmem_mem on groups_members(member_id);
create index idx_fk_grpmem_memtype on groups_members(membership_type);
create unique index applform_u1 on application_form (vo_id) where group_id is null;
create unique index applform_u2 on application_form (vo_id, group_id) where group_id is not null;
create index idx_fk_applform_vo on application_form(vo_id);
create index idx_fk_applform_group on application_form(group_id);
create index idx_fk_applfrmit_applform on application_form_items(form_id);
create index idx_fk_applfrmittyp_applfrmit on application_form_item_apptypes(item_id);
create index idx_fk_applfrmittxt_applfrmit on application_form_item_texts(item_id);
create index idx_fk_app_vo on application(vo_id);
create index idx_fk_app_user on application(user_id);
create index idx_fk_app_group on application(group_id);
create index idx_fk_appdata_app on application_data(app_id);
create index idx_fk_appdata_applfrmit on application_data(item_id);
create index idx_fk_applogin_appid on application_reserved_logins(app_id);
create index idx_fk_appmail_appform on application_mails(form_id);
create index idx_fk_appmailtxt_appmails on application_mail_texts(mail_id);
create index idx_fk_cabaut_pub on cabinet_authorships(publicationid);
create index idx_fk_cabaut_usr on cabinet_authorships(userid);
create index idx_fk_pn_poolmsg_tmpl on pn_pool_message(template_id);
create index idx_fk_pn_receiver_tmpl on pn_receiver(template_id);
create index idx_fk_pn_tmplmsg_tmpl on pn_template_message(template_id);
create index idx_fk_pn_tmplrgx_rgx on pn_template_regex(regex_id);
create index idx_fk_pn_tmplrgx_tmpl on pn_template_regex(template_id);
create index idx_fk_pn_rgxobj_rgx on pn_regex_object(regex_id);
create index idx_fk_pn_rgxobj_obj on pn_regex_object(object_id);
create index idx_fk_specifu_u_ui on specific_user_users(user_id);
create index idx_fk_specifu_u_sui on specific_user_users(specific_user_id);
create index idx_fk_grp_grp_rgid on groups_groups(result_gid);
create index idx_fk_grp_grp_ogid on groups_groups(operand_gid);
create index idx_fk_attrauthz_actiontyp on attributes_authz(action_type_id);
create index idx_fk_attrauthz_role on attributes_authz(role_id);
create index idx_fk_attrauthz_attr on attributes_authz(attr_id);
create index idx_fk_restags_vos on res_tags(vo_id);
create index idx_fk_tags_res_tags on tags_resources(tag_id);
create index idx_fk_tags_res_res on tags_resources(resource_id);
create index idx_fk_mailchange_user_id on mailchange(user_id);
create index idx_fk_pwdreset_user_id on pwdreset(user_id);
create index idx_fk_security_teams_facilities_security_team on security_teams_facilities (security_team_id);
create index idx_fk_security_teams_facilities_facilities on security_teams_facilities (facility_id);
create index idx_fk_bllist_user on blacklists (user_id);
create index idx_fk_bllist_secteam on blacklists (security_team_id);
create index idx_fk_res_ban_member on resources_bans (member_id);
create index idx_fk_res_ban_res on resources_bans (resource_id);
create index idx_fk_res_ban_member_res on resources_bans (member_id, resource_id);
create index idx_fk_fac_ban_user on facilities_bans (user_id);
create index idx_fk_fac_ban_fac on facilities_bans (facility_id);
create index idx_fk_fac_ban_user_fac on facilities_bans (user_id, facility_id);
create index idx_fk_vos_ban_member on vos_bans (member_id);
create index idx_fk_vos_ban_vos on vos_bans (vo_id);
create index idx_fk_ues_attr_values_ues on user_ext_source_attr_values (user_ext_source_id);
create index idx_fk_ues_attr_values_attr on user_ext_source_attr_values (attr_id);
create index idx_fk_memspons_mem ON members_sponsored(sponsored_id);
create index idx_fk_memspons_usr ON members_sponsored(sponsor_id);
CREATE INDEX fauv_idx ON facility_attr_u_values (facility_id, attr_id);
CREATE INDEX gauv_idx ON group_attr_u_values (group_id, attr_id);
CREATE INDEX grauv_idx ON group_resource_attr_u_values (group_id, resource_id, attr_id);
CREATE INDEX hauv_idx ON host_attr_u_values (host_id, attr_id);
CREATE INDEX mauv_idx ON member_attr_u_values (member_id, attr_id);
CREATE INDEX mgauv_idx ON member_group_attr_u_values (member_id, group_id, attr_id);
CREATE INDEX mrauv_idx ON member_resource_attr_u_values (member_id, resource_id, attr_id);
CREATE INDEX rauv_idx ON resource_attr_u_values (resource_id, attr_id);
CREATE INDEX uauv_idx ON user_attr_u_values (user_id, attr_id);
CREATE INDEX uesauv_idx ON user_ext_source_attr_u_values (user_ext_source_id, attr_id);
CREATE INDEX ufauv_idx ON user_facility_attr_u_values (user_id, facility_id, attr_id);
CREATE INDEX vauv_idx ON vo_attr_u_values (vo_id, attr_id);
-- set initial Perun DB version
insert into configurations values ('DATABASE VERSION','3.1.82');
-- insert membership types
insert into membership_types (id, membership_type, description) values (1, 'DIRECT', 'Member is directly added into group');
insert into membership_types (id, membership_type, description) values (2, 'INDIRECT', 'Member is added indirectly through UNION relation');
-- insert action types
insert into action_types (id, action_type, description) values (nextval('action_types_seq'), 'read', 'Can read value.');
insert into action_types (id, action_type, description) values (nextval('action_types_seq'), 'read_vo', 'Vo related can read value.');
insert into action_types (id, action_type, description) values (nextval('action_types_seq'), 'read_public', 'Anyone can read value.');
insert into action_types (id, action_type, description) values (nextval('action_types_seq'), 'write', 'Can write, rewrite and remove value.');
insert into action_types (id, action_type, description) values (nextval('action_types_seq'), 'write_vo', 'Vo related can write, rewrite and remove value.');
insert into action_types (id, action_type, description) values (nextval('action_types_seq'), 'write_public', 'Anyone can write, rewrite and remove value.');
-- init default auditer consumers
insert into auditer_consumers (id, name, last_processed_id) values (nextval('auditer_consumers_id_seq'), 'dispatcher', 0);
insert into auditer_consumers (id, name, last_processed_id) values (nextval('auditer_consumers_id_seq'), 'notifications', 0);
-- initial user, user_ext_source and internal ext_source
/*
insert into ext_sources (id,name,type) values (nextval('ext_sources_id_seq'),'INTERNAL','cz.metacentrum.perun.core.impl.ExtSourceInternal');
insert into users (id, first_name, last_name) values (nextval('users_id_seq'),'Master','Perun');
insert into user_ext_sources (id, user_id, login_ext, ext_sources_id, loa) values (nextval('user_ext_sources_id_seq'), currval('users_id_seq'), 'perun', currval('ext_sources_id_seq'), 0);
*/
insert into roles (created_by_uid,modified_by_uid,id,name) values (null,null,21,'perunadmin');
insert into roles (created_by_uid,modified_by_uid,id,name) values (null,null,22,'voadmin');
insert into roles (created_by_uid,modified_by_uid,id,name) values (null,null,23,'groupadmin');
insert into roles (created_by_uid,modified_by_uid,id,name) values (null,null,24,'self');
insert into roles (created_by_uid,modified_by_uid,id,name) values (null,null,25,'authzresolver');
insert into roles (created_by_uid,modified_by_uid,id,name) values (null,null,26,'facilityadmin');
insert into roles (created_by_uid,modified_by_uid,id,name) values (null,null,29,'registrar');
insert into roles (created_by_uid,modified_by_uid,id,name) values (null,null,30,'engine');
insert into roles (created_by_uid,modified_by_uid,id,name) values (null,null,31,'rpc');
insert into roles (created_by_uid,modified_by_uid,id,name) values (null,null,32,'unknown');
insert into roles (created_by_uid,modified_by_uid,id,name) values (null,null,81,'voobserver');
insert into roles (created_by_uid,modified_by_uid,id,name) values (null,null,101,'topgroupcreator');
insert into roles (created_by_uid,modified_by_uid,id,name) values (null,null,41,'notifications');
insert into roles (created_by_uid,modified_by_uid,id,name) values (null,null,61,'serviceuser');
insert into roles (created_by_uid,modified_by_uid,id,name) values (null,null,121,'securityadmin');
insert into roles (created_by_uid,modified_by_uid,id,name) values (null,null,141,'sponsor');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3411,'Login in namespace: meta',55,'urn:perun:user:attribute-def:def:login-namespace:meta','login-namespace:meta','urn:perun:user:attribute-def:def','java.lang.String','Logname in namespace ''meta''.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2014-09-24 14:39:44.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3261,'Shibboleth external sources',2380,'urn:perun:user:attribute-def:virt:shibbolethExtSources','shibbolethExtSources','urn:perun:user:attribute-def:virt','java.util.LinkedHashMap','Pairs of IdP indentifier and user''s EPPN.',timestamp '2013-06-27 10:02:15.5','glory@META',timestamp '2013-10-29 11:28:02.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Home mount points',14,'urn:perun:facility:attribute-def:def:homeMountPoints','homeMountPoints','urn:perun:facility:attribute-def:def','java.util.ArrayList','Available mount points for home on Facility.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-24 14:03:50.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,3261,'DN of certificates',2400,'urn:perun:user:attribute-def:virt:userCertDNs','userCertDNs','urn:perun:user:attribute-def:virt','java.util.LinkedHashMap','All DNs of user''s certificates including external identities X509.',timestamp '2013-07-03 13:35:25.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2013-10-24 13:09:53.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'KERBEROS principals',800,'urn:perun:user:attribute-def:def:kerberosLogins','kerberosLogins','urn:perun:user:attribute-def:def','java.util.ArrayList','Logins in KERBEROS (including realm).',timestamp '2012-02-15 13:43:26.4','PERUNV3',timestamp '2013-10-23 14:27:19.4','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'UID in cerit',1040,'urn:perun:user:attribute-def:def:uid-namespace:cerit','uid-namespace:cerit','urn:perun:user:attribute-def:def','java.lang.Integer','UID in namespace ''cerit''.',timestamp '2012-03-14 16:05:00.4','michalp@META',timestamp '2013-10-24 13:14:53.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Default shell',21,'urn:perun:resource:attribute-def:def:defaultShell','defaultShell','urn:perun:resource:attribute-def:def','java.lang.String','Default shell applied to all users on Resource. Selection is limited by available shells on Resource and Facility.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-25 10:28:29.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Available shells',19,'urn:perun:resource:attribute-def:def:shells','shells','urn:perun:resource:attribute-def:def','java.util.ArrayList','Available shells for users on Resource. Selection is limited by available shells on Facility.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-25 10:29:29.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'ID',32,'urn:perun:member:attribute-def:core:id','id','urn:perun:member:attribute-def:core','java.lang.Integer','Identifier of member of VO at DB.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-25 12:42:39.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Shell',22,'urn:perun:user_facility:attribute-def:def:shell','shell','urn:perun:user_facility:attribute-def:def','java.lang.String','User''s selected shell on Facility.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-24 13:24:11.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Default home mount point',23,'urn:perun:resource:attribute-def:def:defaultHomeMountPoint','defaultHomeMountPoint','urn:perun:resource:attribute-def:def','java.lang.String','Default home mount point for users on Resource. Selection is limited by available home mount points on Resource and Facility.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-25 10:30:50.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'ID',38,'urn:perun:resource:attribute-def:core:id','id','urn:perun:resource:attribute-def:core','java.lang.Integer','Identifier of resource at DB.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-25 10:21:38.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Name',39,'urn:perun:resource:attribute-def:core:name','name','urn:perun:resource:attribute-def:core','java.lang.String','Resource name.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-25 10:26:58.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Description',40,'urn:perun:resource:attribute-def:core:description','description','urn:perun:resource:attribute-def:core','java.lang.String','Description of resource, purpose of it''s creating.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-25 10:27:32.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'ID',43,'urn:perun:vo:attribute-def:core:id','id','urn:perun:vo:attribute-def:core','java.lang.Integer','Identifier of VO in DB.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-25 13:03:50.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Name',44,'urn:perun:vo:attribute-def:core:name','name','urn:perun:vo:attribute-def:core','java.lang.String','Full name of Virtual organization.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-25 13:04:32.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Short name',45,'urn:perun:vo:attribute-def:core:shortName','shortName','urn:perun:vo:attribute-def:core','java.lang.String','Short name of Virtual organization.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-25 13:05:13.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'ID',49,'urn:perun:user:attribute-def:core:id','id','urn:perun:user:attribute-def:core','java.lang.Integer','Identifier of user at DB.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-22 13:47:53.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'First name',50,'urn:perun:user:attribute-def:core:firstName','firstName','urn:perun:user:attribute-def:core','java.lang.String','User''s first (christening) name.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-22 13:50:11.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Last name',51,'urn:perun:user:attribute-def:core:lastName','lastName','urn:perun:user:attribute-def:core','java.lang.String','User''s last name (family name).',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-22 13:50:41.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Middle name',52,'urn:perun:user:attribute-def:core:middleName','middleName','urn:perun:user:attribute-def:core','java.lang.String','User''s middle name.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-22 13:57:32.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Title before',53,'urn:perun:user:attribute-def:core:titleBefore','titleBefore','urn:perun:user:attribute-def:core','java.lang.String','Scientific degree before of user''s name.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-22 13:58:06.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Title after',54,'urn:perun:user:attribute-def:core:titleAfter','titleAfter','urn:perun:user:attribute-def:core','java.lang.String','Scientific degree behind of user''s name.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-22 13:58:30.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'UID in ruk',221,'urn:perun:user:attribute-def:def:uid-namespace:ruk','uid-namespace:ruk','urn:perun:user:attribute-def:def','java.lang.Integer','UID in namespace ''ruk''.',timestamp '2011-11-28 12:50:38.2','PERUNV3',timestamp '2013-10-24 13:17:17.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'UID in ics',222,'urn:perun:user:attribute-def:def:uid-namespace:ics','uid-namespace:ics','urn:perun:user:attribute-def:def','java.lang.Integer','UID in namespace ''ics''.',timestamp '2011-11-28 12:50:59.2','PERUNV3',timestamp '2013-10-24 13:16:51.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'UID namespace',263,'urn:perun:facility:attribute-def:def:uid-namespace','uid-namespace','urn:perun:facility:attribute-def:def','java.lang.String','Define namespace for user''s UIDs on Facility.',timestamp '2011-12-01 13:59:30.5','PERUNV3',timestamp '2013-10-24 13:46:08.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'GID namespace',280,'urn:perun:facility:attribute-def:def:unixGID-namespace','unixGID-namespace','urn:perun:facility:attribute-def:def','java.lang.String','Define namespace for unix groups GIDs on Facility.',timestamp '2011-12-01 14:39:05.5','PERUNV3',timestamp '2013-10-24 13:49:27.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Group''s external source',100,'urn:perun:group:attribute-def:def:groupExtSource','groupExtSource','urn:perun:group:attribute-def:def','java.lang.String','External source from which group comes from. Used for groups synchronization.',timestamp '2011-09-20 12:33:19.3','PERUNV3',timestamp '2013-10-25 11:18:32.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Member''s external source',101,'urn:perun:group:attribute-def:def:groupMembersExtSource','groupMembersExtSource','urn:perun:group:attribute-def:def','java.lang.String','External source from which group members comes from. Used for group synchronization.',timestamp '2011-09-20 12:33:19.3','PERUNV3',timestamp '2013-10-25 11:19:25.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Member''s query',102,'urn:perun:group:attribute-def:def:groupMembersQuery','groupMembersQuery','urn:perun:group:attribute-def:def','java.lang.String','Query (SQL) on external source which retrieves list of it''s members.',timestamp '2011-09-20 12:33:19.3','PERUNV3',timestamp '2013-10-25 11:20:14.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Synchronization enabled',103,'urn:perun:group:attribute-def:def:synchronizationEnabled','synchronizationEnabled','urn:perun:group:attribute-def:def','java.lang.String','Enables group synchronization from external source.',timestamp '2011-09-20 12:33:21.3','PERUNV3',timestamp '2013-10-25 11:21:16.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3411,'Synchronization interval',104,'urn:perun:group:attribute-def:def:synchronizationInterval','synchronizationInterval','urn:perun:group:attribute-def:def','java.lang.String','Time between two successful synchronizations in (value * 5) minutes.',timestamp '2011-09-20 12:33:21.3','PERUNV3',timestamp '2014-12-04 10:41:31.5','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Min UID in namespace',300,'urn:perun:entityless:attribute-def:def:namespace-minUID','namespace-minUID','urn:perun:entityless:attribute-def:def','java.lang.Integer','Minimal value of UID in specific namespace.',timestamp '2011-12-02 11:25:33.6','PERUNV3',timestamp '2013-10-25 13:50:04.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Max UID in namespace',301,'urn:perun:entityless:attribute-def:def:namespace-maxUID','namespace-maxUID','urn:perun:entityless:attribute-def:def','java.lang.Integer','Maximal value of UID in specific namespace.',timestamp '2011-12-02 11:25:40.6','PERUNV3',timestamp '2013-10-25 13:50:04.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Membership expiration rules',1540,'urn:perun:vo:attribute-def:def:membershipExpirationRules','membershipExpirationRules','urn:perun:vo:attribute-def:def','java.util.LinkedHashMap','Set of rules to determine date of membership expiration. If not set, membership is not limited.',timestamp '2012-09-27 13:22:58.5','michalp@META',timestamp '2013-10-25 13:17:17.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,3261,'Unix group name namespace',2340,'urn:perun:facility:attribute-def:def:unixGroupName-namespace','unixGroupName-namespace','urn:perun:facility:attribute-def:def','java.lang.String','Define namespace for unix groups names on Facility.',timestamp '2013-06-17 14:24:30.2','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2013-10-24 13:52:19.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Workplace (for VO)',343,'urn:perun:member:attribute-def:def:workplace','workplace','urn:perun:member:attribute-def:def','java.lang.String','Workplace at the member''s organization.',timestamp '2011-12-06 15:07:32.3','PERUNV3',timestamp '2013-10-25 12:44:08.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Hostname',380,'urn:perun:facility:attribute-def:def:hostName','hostName','urn:perun:facility:attribute-def:def','java.lang.String','Hostname for Facility',timestamp '2011-12-07 12:23:03.4','PERUNV3',timestamp '2013-10-24 14:26:07.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Number of cores',401,'urn:perun:facility:attribute-def:def:hostCoresNumber','hostCoresNumber','urn:perun:facility:attribute-def:def','java.lang.Integer','Number of cores on Host Facility.',timestamp '2011-12-08 09:16:57.5','PERUNV3',timestamp '2013-10-24 14:27:16.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Number of cores',400,'urn:perun:host:attribute-def:def:coresNumber','coresNumber','urn:perun:host:attribute-def:def','java.lang.Integer','Number of cores on hosts inside cluster.',timestamp '2011-12-08 09:16:00.5','PERUNV3',timestamp '2013-10-24 14:17:38.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'FS home mount point',500,'urn:perun:resource:attribute-def:def:fsHomeMountPoint','fsHomeMountPoint','urn:perun:resource:attribute-def:def','java.lang.String','Home mount point for resource.',timestamp '2011-12-19 22:12:00.2','PERUNV3',timestamp '2013-10-25 10:48:13.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Default data limit',520,'urn:perun:resource:attribute-def:def:defaultDataLimit','defaultDataLimit','urn:perun:resource:attribute-def:def','java.lang.String','Default hard quota for user''s data, including units (M,G,T, ...), G is default.',timestamp '2011-12-21 13:52:26.4','PERUNV3',timestamp '2013-10-25 10:38:26.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Default data quota',521,'urn:perun:resource:attribute-def:def:defaultDataQuota','defaultDataQuota','urn:perun:resource:attribute-def:def','java.lang.String','Default soft quota for user''s data including units (M, G, T, ...), G is default.',timestamp '2011-12-21 13:54:07.4','PERUNV3',timestamp '2013-10-25 10:37:12.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Shell for passwd_scp',601,'urn:perun:facility:attribute-def:def:shell_passwd-scp','shell_passwd-scp','urn:perun:facility:attribute-def:def','java.lang.String','Shell used for passwd_scp access on Facility.',timestamp '2012-01-12 12:36:15.5','PERUNV3',timestamp '2013-10-24 14:06:52.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Default files quota',760,'urn:perun:resource:attribute-def:def:defaultFilesQuota','defaultFilesQuota','urn:perun:resource:attribute-def:def','java.lang.Integer','Default soft quota for max. number of user''s files.',timestamp '2012-02-08 10:16:41.4','PERUNV3',timestamp '2013-10-25 10:39:47.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Default files limit',761,'urn:perun:resource:attribute-def:def:defaultFilesLimit','defaultFilesLimit','urn:perun:resource:attribute-def:def','java.lang.Integer','Default hard quota for max. number of user''s files.',timestamp '2012-02-08 10:17:12.4','PERUNV3',timestamp '2013-10-25 10:40:50.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Membership expiration',860,'urn:perun:member:attribute-def:def:membershipExpiration','membershipExpiration','urn:perun:member:attribute-def:def','java.lang.String','Date of VO membership expiration.',timestamp '2012-03-02 14:03:09.6','michalp@META',timestamp '2013-10-25 12:52:15.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Sponzored member',900,'urn:perun:member:attribute-def:def:sponzoredMember','sponzoredMember','urn:perun:member:attribute-def:def','java.lang.String','RT ticket number, which describes why the membership is sponzored.',timestamp '2012-03-08 17:03:42.5','michalp@META',timestamp '2013-10-25 12:53:21.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Display name',1140,'urn:perun:user:attribute-def:core:displayName','displayName','urn:perun:user:attribute-def:core','java.lang.String','Displayed user''s name.',timestamp '2012-04-24 15:00:01.3','michalp@META',timestamp '2013-10-23 14:07:18.4','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Umask for home',1200,'urn:perun:facility:attribute-def:def:homeDirUmask','homeDirUmask','urn:perun:facility:attribute-def:def','java.lang.String','Unix umask, which will be applied when new home folder is created.',timestamp '2012-05-13 17:15:20.1','glory@META',timestamp '2013-10-24 14:11:09.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Workplace',1366,'urn:perun:user:attribute-def:def:workplace','workplace','urn:perun:user:attribute-def:def','java.lang.String','Workplace in organization. Provided by IDP.',timestamp '2012-08-17 12:34:21.6','michalp@META',timestamp '2013-10-22 14:00:34.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'ID',80,'urn:perun:group:attribute-def:core:id','id','urn:perun:group:attribute-def:core','java.lang.Integer','Identifier of group at DB.',timestamp '2011-07-01 15:10:18.6','PERUNV3',timestamp '2013-10-25 11:13:01.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Name',81,'urn:perun:group:attribute-def:core:name','name','urn:perun:group:attribute-def:core','java.lang.String','Group name.',timestamp '2011-07-01 15:10:18.6','PERUNV3',timestamp '2013-10-25 11:13:32.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Description',82,'urn:perun:group:attribute-def:core:description','description','urn:perun:group:attribute-def:core','java.lang.String','Description of group, for what purpose it is used.',timestamp '2011-07-01 15:10:18.6','PERUNV3',timestamp '2013-10-25 11:14:06.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Login namespace',261,'urn:perun:facility:attribute-def:def:login-namespace','login-namespace','urn:perun:facility:attribute-def:def','java.lang.String','Define namespace for all user''s logins on Facility.',timestamp '2011-12-01 13:27:59.5','PERUNV3',timestamp '2013-10-24 13:45:13.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Max UID',360,'urn:perun:facility:attribute-def:virt:maxUID','maxUID','urn:perun:facility:attribute-def:virt','java.lang.Integer','Maximal UID. Value is determined automatically based on Facility''s namespace.',timestamp '2011-12-07 10:36:52.4','PERUNV3',timestamp '2013-10-24 13:54:20.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Min UID',361,'urn:perun:facility:attribute-def:virt:minUID','minUID','urn:perun:facility:attribute-def:virt','java.lang.Integer','Minimal UID. Value is determined automatically based on Facility''s namespace.',timestamp '2011-12-07 10:36:57.4','PERUNV3',timestamp '2013-10-24 13:56:24.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Mount point for fs_scratch',460,'urn:perun:facility:attribute-def:def:fsScratchMountPoint','fsScratchMountPoint','urn:perun:facility:attribute-def:def','java.lang.String','Mount point where the scratch is located.',timestamp '2011-12-16 15:21:32.6','PERUNV3',timestamp '2013-10-24 14:08:25.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3411,'Login in namespace: cesnet',660,'urn:perun:user:attribute-def:def:login-namespace:cesnet','login-namespace:cesnet','urn:perun:user:attribute-def:def','java.lang.String','Logname in namespace ''cesnet''.',timestamp '2012-01-17 10:35:00.3','PERUNV3',timestamp '2014-09-24 14:39:44.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Status',880,'urn:perun:member:attribute-def:core:status','status','urn:perun:member:attribute-def:core','java.lang.String','Status of member (VALID,INVALID,EXPIRED,SUSPENDED,DISABLED).',timestamp '2012-03-07 14:24:01.4','glory@META',timestamp '2013-10-25 12:54:42.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Registration note',1180,'urn:perun:member:attribute-def:opt:registrationNote','registrationNote','urn:perun:member:attribute-def:opt','java.lang.String','Note entered on registration form. Usually reason of registration.',timestamp '2012-05-09 14:15:20.4','michalp@META',timestamp '2013-10-25 12:55:32.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Data quota',1241,'urn:perun:member_resource:attribute-def:def:dataQuota','dataQuota','urn:perun:member_resource:attribute-def:def','java.lang.String','Soft quota for user''s data, including units (M,G,T, ...), G is default. Standard is empty, Default data quota is used. Filled value defines exception from Resource''s default.',timestamp '2012-05-22 10:41:23.3','zora@META',timestamp '2013-10-25 10:42:57.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Files quota',1242,'urn:perun:member_resource:attribute-def:def:filesQuota','filesQuota','urn:perun:member_resource:attribute-def:def','java.lang.Integer','Soft quota for max. number of user''s files. Standard is empty, Default files quota is used.Filled value defines exception from Resource''s default.',timestamp '2012-05-22 10:41:56.3','zora@META',timestamp '2013-10-25 10:45:38.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Preferred language (for VO)',1300,'urn:perun:member:attribute-def:def:preferredLanguage','preferredLanguage','urn:perun:member:attribute-def:def','java.lang.String','Language prefferred for communication (notification) for VO.',timestamp '2012-06-18 11:53:54.2','<EMAIL>',timestamp '2013-10-25 12:47:29.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix group name in cerit',1320,'urn:perun:group:attribute-def:def:unixGroupName-namespace:cerit','unixGroupName-namespace:cerit','urn:perun:group:attribute-def:def','java.lang.String','Unix group name in namespace ''cerit'' .',timestamp '2012-06-28 13:40:03.5','<EMAIL>',timestamp '2013-10-25 12:32:08.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Link to user''s dashboard',1341,'urn:perun:vo:attribute-def:def:dashboardLink','dashboardLink','urn:perun:vo:attribute-def:def','java.lang.String','Link to the user''s dashboard. URL must start with http://.',timestamp '2012-08-15 11:23:11.4','michalp@META',timestamp '2013-10-25 13:07:35.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'AFS server',1370,'urn:perun:facility:attribute-def:def:afsServer','afsServer','urn:perun:facility:attribute-def:def','java.lang.String','AFS server for Facility.',timestamp '2012-08-17 14:26:00.6','michalp@META',timestamp '2013-10-24 14:32:00.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'AFS users volume',1373,'urn:perun:resource:attribute-def:def:afsUsersVolume','afsUsersVolume','urn:perun:resource:attribute-def:def','java.lang.String','Prefix of the AFS volme, where users have theirs directories.',timestamp '2012-08-17 14:43:17.6','michalp@META',timestamp '2013-10-25 10:56:23.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'AFS mountpoint',1377,'urn:perun:resource:attribute-def:def:afsUsersMountPoint','afsUsersMountPoint','urn:perun:resource:attribute-def:def','java.lang.String','AFS user''s mountpoint.',timestamp '2012-08-17 14:46:46.6','michalp@META',timestamp '2013-10-25 10:55:00.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'AFS user''s quota',1376,'urn:perun:user_facility:attribute-def:def:afsUserQuota','afsUserQuota','urn:perun:user_facility:attribute-def:def','java.lang.String','User''s quota for AFS. Filled value define exception from default.',timestamp '2012-08-17 14:45:47.6','michalp@META',timestamp '2013-10-24 13:32:42.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'AFS volume',1378,'urn:perun:resource:attribute-def:def:afsVolume','afsVolume','urn:perun:resource:attribute-def:def','java.lang.String','AFS top-level volume.',timestamp '2012-08-17 14:47:54.6','michalp@META',timestamp '2013-10-25 10:53:56.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Description for user''s settings page in GUI',1400,'urn:perun:resource:attribute-def:def:userSettingsDescription','userSettingsDescription','urn:perun:resource:attribute-def:def','java.lang.String','Description, which is shown to users when changing shell or quotas in GUI.',timestamp '2012-08-27 12:38:52.2','glory@META',timestamp '2013-10-25 10:33:47.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Spec description',1480,'urn:perun:facility:attribute-def:def:spec','spec','urn:perun:facility:attribute-def:def','java.util.LinkedHashMap','Detailed description of facility hardware (in CS and EN).',timestamp '2012-09-13 10:04:13.5','makub@META',timestamp '2013-10-24 14:36:03.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Reserved',1424,'urn:perun:host:attribute-def:def:reserved','reserved','urn:perun:host:attribute-def:def','java.lang.String','Is this Host permanently reserved?',timestamp '2012-09-03 16:29:52.2','glory@META',timestamp '2013-10-24 14:28:49.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Mail',60,'urn:perun:member:attribute-def:def:mail','mail','urn:perun:member:attribute-def:def','java.lang.String','E-mail address in organization (VO wide).',timestamp '2011-06-01 13:36:44.4','PERUNV3',timestamp '2013-10-25 12:48:40.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3411,'Login in namespace: mu',61,'urn:perun:user:attribute-def:def:login-namespace:mu','login-namespace:mu','urn:perun:user:attribute-def:def','java.lang.String','Logname in namespace ''mu''.',timestamp '2011-06-01 13:37:01.4','PERUNV3',timestamp '2014-09-24 14:39:44.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Address (for VO)',62,'urn:perun:member:attribute-def:def:address','address','urn:perun:member:attribute-def:def','java.lang.String','Member''s address in organization (can be different from user''s address).',timestamp '2011-06-01 13:37:14.4','PERUNV3',timestamp '2013-10-25 12:45:46.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'ID',120,'urn:perun:host:attribute-def:core:id','id','urn:perun:host:attribute-def:core','java.lang.Integer','Identifier of host at DB.',timestamp '2011-10-24 14:30:58.2','PERUNV3',timestamp '2013-10-24 14:15:17.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Hostname',121,'urn:perun:host:attribute-def:core:hostname','hostname','urn:perun:host:attribute-def:core','java.lang.String','Full name of Host.',timestamp '2011-10-24 14:30:58.2','PERUNV3',timestamp '2013-10-24 14:16:39.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Organization (for VO)',123,'urn:perun:member:attribute-def:def:organization','organization','urn:perun:member:attribute-def:def','java.lang.String','Organization, from which user comes from.',timestamp '2011-10-24 14:47:04.2','PERUNV3',timestamp '2013-10-25 12:50:43.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'EDUROAM identity',1060,'urn:perun:user:attribute-def:def:eduroamIdentities','eduroamIdentities','urn:perun:user:attribute-def:def','java.util.ArrayList','List of identities in EDUROAM.',timestamp '2012-03-21 09:23:14.4','michalp@META',timestamp '2013-10-23 14:25:42.4','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Phone',1362,'urn:perun:user:attribute-def:def:phone','phone','urn:perun:user:attribute-def:def','java.lang.String','Phone number in organization. Provided by IDP.',timestamp '2012-08-17 12:32:30.6','michalp@META',timestamp '2013-10-23 14:10:23.4','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix group name in einfra',1321,'urn:perun:group:attribute-def:def:unixGroupName-namespace:einfra','unixGroupName-namespace:einfra','urn:perun:group:attribute-def:def','java.lang.String','Unix group name in namespace ''einfra''.',timestamp '2012-06-28 13:40:27.5','<EMAIL>',timestamp '2013-10-25 12:33:54.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix group name in storage',1322,'urn:perun:group:attribute-def:def:unixGroupName-namespace:storage','unixGroupName-namespace:storage','urn:perun:group:attribute-def:def','java.lang.String','Unix group name in namespace ''storage''.',timestamp '2012-06-28 13:40:48.5','<EMAIL>',timestamp '2013-10-25 12:35:17.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix GID in storage',1325,'urn:perun:group:attribute-def:def:unixGID-namespace:storage','unixGID-namespace:storage','urn:perun:group:attribute-def:def','java.lang.Integer','Unix GID in namespace ''storage''.',timestamp '2012-06-28 13:42:02.5','<EMAIL>',timestamp '2013-10-25 12:38:34.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Preferred mail',1361,'urn:perun:user:attribute-def:def:preferredMail','preferredMail','urn:perun:user:attribute-def:def','java.lang.String','E-mail address preferred for communication.',timestamp '2012-08-17 12:32:16.6','michalp@META',timestamp '2013-10-23 14:11:57.4','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Organization',1363,'urn:perun:user:attribute-def:def:organization','organization','urn:perun:user:attribute-def:def','java.lang.String','Organization, from which user comes from. Provided by IDP.',timestamp '2012-08-17 12:32:44.6','michalp@META',timestamp '2013-10-23 14:11:05.4','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Address',1364,'urn:perun:user:attribute-def:def:address','address','urn:perun:user:attribute-def:def','java.lang.String','Address in organization. Provided by IDP.',timestamp '2012-08-17 12:32:59.6','michalp@META',timestamp '2013-10-23 14:08:35.4','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Frontend',1425,'urn:perun:host:attribute-def:def:frontend','frontend','urn:perun:host:attribute-def:def','java.lang.String','Is this host a frontend?',timestamp '2012-09-03 16:30:44.2','glory@META',timestamp '2013-10-24 14:28:11.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3411,'VO''s application URL',1460,'urn:perun:vo:attribute-def:def:applicationURL','applicationURL','urn:perun:vo:attribute-def:def','java.lang.String','Custom link to VO''s application form used in e-mail invitations.',timestamp '2012-09-10 11:35:22.2','michalp@META',timestamp '2014-09-03 09:02:36.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3411,'VO logo''s URL',1560,'urn:perun:vo:attribute-def:def:voLogoURL','voLogoURL','urn:perun:vo:attribute-def:def','java.lang.String','Full URL of the VO''s logo image (including http://).',timestamp '2012-10-01 13:23:20.2','michalp@META',timestamp '2014-11-04 10:16:53.3','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'HW description URL',1482,'urn:perun:facility:attribute-def:def:url','url','urn:perun:facility:attribute-def:def','java.util.LinkedHashMap','URL to HW description (in CS and EN).',timestamp '2012-09-13 10:04:51.5','makub@META',timestamp '2013-10-24 14:37:14.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Contact e-mails',1500,'urn:perun:vo:attribute-def:def:contactEmail','contactEmail','urn:perun:vo:attribute-def:def','java.util.ArrayList','Contact emails for the users ( to User support).',timestamp '2012-09-25 16:24:25.3','zlamalp@META',timestamp '2013-10-25 13:09:34.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Public ssh Key',1520,'urn:perun:user:attribute-def:def:sshPublicKey','sshPublicKey','urn:perun:user:attribute-def:def','java.util.ArrayList','User''s public SSH key.',timestamp '2012-09-26 09:45:04.4','michalp@META',timestamp '2013-10-24 12:43:25.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Discs',1605,'urn:perun:facility:attribute-def:def:disk','disk','urn:perun:facility:attribute-def:def','java.util.LinkedHashMap','Description of installed discs (in CS and EN).',timestamp '2012-10-05 12:30:52.6','makub@META',timestamp '2013-10-24 14:38:28.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Network interfaces',1606,'urn:perun:facility:attribute-def:def:network','network','urn:perun:facility:attribute-def:def','java.util.LinkedHashMap','Description of network interfaces (Ethernet,Infiniband etc) in CS and EN',timestamp '2012-10-05 12:32:29.6','makub@META',timestamp '2013-10-24 14:39:45.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Comment',1607,'urn:perun:facility:attribute-def:def:comment','comment','urn:perun:facility:attribute-def:def','java.util.LinkedHashMap','Comment of hardware description (in CS and EN).',timestamp '2012-10-05 12:33:25.6','makub@META',timestamp '2013-10-24 14:41:01.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Owner',1608,'urn:perun:facility:attribute-def:def:owner','owner','urn:perun:facility:attribute-def:def','java.util.LinkedHashMap','Organization that funded the hardware (in CS and EN).',timestamp '2012-10-05 12:35:09.6','makub@META',timestamp '2013-10-24 14:42:51.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Listing priority',1660,'urn:perun:facility:attribute-def:def:listingPriority','listingPriority','urn:perun:facility:attribute-def:def','java.lang.Integer','Priority in lists of facilities, ordering higher numbers first.',timestamp '2012-10-17 13:04:50.4','makub@META',timestamp '2013-10-24 14:43:45.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'IP for Flexlm',1700,'urn:perun:user:attribute-def:def:IPsForFlexlm','IPsForFlexlm','urn:perun:user:attribute-def:def','java.util.ArrayList','IP adresses for IPtables on Flexlm server.',timestamp '2012-10-22 16:16:07.2','glory@META',timestamp '2013-10-24 13:38:26.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'PBSmon server',1580,'urn:perun:facility:attribute-def:def:pbsmonServer','pbsmonServer','urn:perun:facility:attribute-def:def','java.lang.String','Server for PBS monitor.',timestamp '2012-10-04 12:59:50.5','makub@META',timestamp '2013-10-29 11:25:36.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'UID in zcu',220,'urn:perun:user:attribute-def:def:uid-namespace:zcu','uid-namespace:zcu','urn:perun:user:attribute-def:def','java.lang.Integer','UID in namespace ''zcu''.',timestamp '2011-11-28 12:49:34.2','PERUNV3',timestamp '2013-10-24 13:19:18.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'List of destinations',1440,'urn:perun:group:attribute-def:def:listOfDestinations','listOfDestinations','urn:perun:group:attribute-def:def','java.util.ArrayList','List of destinations where the group has some special meaning.',timestamp '2012-09-06 12:57:48.5','michalp@META',timestamp '2013-10-25 11:15:07.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Is unix group',145,'urn:perun:group_resource:attribute-def:def:isUnixGroup','isUnixGroup','urn:perun:group_resource:attribute-def:def','java.lang.Integer','Group on Resource creates unix group on Facility.',timestamp '2011-11-08 12:03:32.3','PERUNV3',timestamp '2013-10-25 11:23:46.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Photo',1601,'urn:perun:facility:attribute-def:def:photo','photo','urn:perun:facility:attribute-def:def','java.lang.String','URL of Facility hw photo.',timestamp '2012-10-05 12:25:17.6','makub@META',timestamp '2013-10-24 14:45:15.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'GID',341,'urn:perun:group_resource:attribute-def:virt:unixGID','unixGID','urn:perun:group_resource:attribute-def:virt','java.lang.Integer','GID of unix group on Facility to which is this group mapped via Resource. Value is determined automatically from all group''s GID based on Facility''s namespace.',timestamp '2011-12-06 13:26:58.3','PERUNV3',timestamp '2013-10-25 11:28:37.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Default unix GID',342,'urn:perun:user_facility:attribute-def:def:defaultUnixGID','defaultUnixGID','urn:perun:user_facility:attribute-def:def','java.lang.Integer','Unix GID of default user''s Group on Facility.',timestamp '2011-12-06 13:28:37.3','PERUNV3',timestamp '2013-10-29 11:19:23.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Research group (for VO)',421,'urn:perun:member:attribute-def:opt:researchGroup','researchGroup','urn:perun:member:attribute-def:opt','java.lang.String','Membership in research group.',timestamp '2011-12-08 10:30:04.5','PERUNV3',timestamp '2013-10-25 12:51:22.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'DN of certificates',441,'urn:perun:user:attribute-def:def:userCertDNs','userCertDNs','urn:perun:user:attribute-def:def','java.util.LinkedHashMap','All DNs of user''s certificates.',timestamp '2011-12-13 12:52:09.3','PERUNV3',timestamp '2013-10-24 13:08:53.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix group name',580,'urn:perun:resource:attribute-def:virt:unixGroupName','unixGroupName','urn:perun:resource:attribute-def:virt','java.lang.String','Unix group name used when whole Resource is group on Facility. Value is determined automatically based on Facility namespace.',timestamp '2012-01-11 11:51:56.4','PERUNV3',timestamp '2013-10-25 10:58:40.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix group name',582,'urn:perun:group_resource:attribute-def:virt:unixGroupName','unixGroupName','urn:perun:group_resource:attribute-def:virt','java.lang.String','Name of unix group on Facility to which is this group mapped via Resource. Value is determined automatically from all group''s unix group names based on Facility''s namespace.',timestamp '2012-01-11 11:52:22.4','PERUNV3',timestamp '2013-10-25 11:27:42.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Thumbnail',1602,'urn:perun:facility:attribute-def:def:thumbnail','thumbnail','urn:perun:facility:attribute-def:def','java.lang.String','URL of facility hw photo''s thumbnail.',timestamp '2012-10-05 12:25:45.6','makub@META',timestamp '2013-10-24 14:46:24.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'CPU',1603,'urn:perun:facility:attribute-def:def:cpu','cpu','urn:perun:facility:attribute-def:def','java.lang.String','Dsecription of CPUs (number, cores, vendor, type, frequency).',timestamp '2012-10-05 12:28:52.6','makub@META',timestamp '2013-10-24 14:47:08.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix group name in einfra',588,'urn:perun:resource:attribute-def:def:unixGroupName-namespace:einfra','unixGroupName-namespace:einfra','urn:perun:resource:attribute-def:def','java.lang.String','Unix group name in namespace ''einfra''.',timestamp '2012-01-11 12:22:11.4','PERUNV3',timestamp '2013-10-25 13:35:22.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix GID in cerit',589,'urn:perun:resource:attribute-def:def:unixGID-namespace:cerit','unixGID-namespace:cerit','urn:perun:resource:attribute-def:def','java.lang.Integer','Unix GID of group which represented group for whole resource at namespace ''cerit''.',timestamp '2012-01-11 12:22:41.4','PERUNV3',timestamp '2013-10-25 11:02:29.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix GID in einfra',590,'urn:perun:resource:attribute-def:def:unixGID-namespace:einfra','unixGID-namespace:einfra','urn:perun:resource:attribute-def:def','java.lang.Integer','Unix GID of group which represented group for whole resource at namespace ''einfra''.',timestamp '2012-01-11 12:22:47.4','PERUNV3',timestamp '2013-10-25 11:03:48.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix group name in storage',662,'urn:perun:resource:attribute-def:def:unixGroupName-namespace:storage','unixGroupName-namespace:storage','urn:perun:resource:attribute-def:def','java.lang.String','Unix group name in namespace ''storage''.',timestamp '2012-01-17 11:11:59.3','PERUNV3',timestamp '2013-10-25 13:36:54.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix GID in storage',661,'urn:perun:resource:attribute-def:def:unixGID-namespace:storage','unixGID-namespace:storage','urn:perun:resource:attribute-def:def','java.lang.Integer','Unix GID of group which represented group for whole resource at namespace ''storage''.',timestamp '2012-01-17 11:11:08.3','PERUNV3',timestamp '2013-10-25 11:05:05.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Memory (RAM)',1604,'urn:perun:facility:attribute-def:def:memory','memory','urn:perun:facility:attribute-def:def','java.lang.String','Size of installed RAM.',timestamp '2012-10-05 12:29:51.6','makub@META',timestamp '2013-10-24 14:47:45.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'UID in storage',667,'urn:perun:user:attribute-def:def:uid-namespace:storage','uid-namespace:storage','urn:perun:user:attribute-def:def','java.lang.Integer','UID in namespace ''storage''.',timestamp '2012-01-17 11:17:05.3','PERUNV3',timestamp '2013-10-24 13:18:55.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3411,'Login in namespace: egi-ui',780,'urn:perun:user:attribute-def:def:login-namespace:egi-ui','login-namespace:egi-ui','urn:perun:user:attribute-def:def','java.lang.String','Logname in namespace ''egi-ui.',timestamp '2012-02-08 14:11:33.4','PERUNV3',timestamp '2014-09-24 14:39:44.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix GID in cerit',1323,'urn:perun:group:attribute-def:def:unixGID-namespace:cerit','unixGID-namespace:cerit','urn:perun:group:attribute-def:def','java.lang.Integer','Unix GID in namespace ''cerit''.',timestamp '2012-06-28 13:41:27.5','<EMAIL>',timestamp '2013-10-25 12:36:13.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix GID in einfra',1324,'urn:perun:group:attribute-def:def:unixGID-namespace:einfra','unixGID-namespace:einfra','urn:perun:group:attribute-def:def','java.lang.Integer','Unix GID in namespace ''einfra''.',timestamp '2012-06-28 13:41:46.5','<EMAIL>',timestamp '2013-10-25 12:37:40.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Preferred language',1365,'urn:perun:user:attribute-def:def:preferredLanguage','preferredLanguage','urn:perun:user:attribute-def:def','java.lang.String','Language preferred in communication (notifications).',timestamp '2012-08-17 12:34:08.6','michalp@META',timestamp '2013-10-23 14:09:39.4','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Level of assurance by organization (EN)',1921,'urn:perun:user:attribute-def:virt:organizationsWithLoa:en','organizationsWithLoa:en','urn:perun:user:attribute-def:virt','java.util.LinkedHashMap','Level of assurance by organization (english). Value is automatically determined from all user''s external identities.',timestamp '2012-11-30 10:42:02.6','glory@META',timestamp '2013-10-24 13:41:05.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix GID in egi-ui',1826,'urn:perun:group:attribute-def:def:unixGID-namespace:egi-ui','unixGID-namespace:egi-ui','urn:perun:group:attribute-def:def','java.lang.Integer','Unix GID in namespace ''egi-ui''.',timestamp '2012-11-15 22:49:35.5','vlasta@META',timestamp '2013-10-25 12:36:42.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Mailing list uses lang variants',1860,'urn:perun:resource:attribute-def:def:mailingListUsesLangVariants','mailingListUsesLangVariants','urn:perun:resource:attribute-def:def','java.lang.String','Atribute has value ''true'' if separate mailing lists for each language are used.',timestamp '2012-11-20 08:56:38.3','makub@META',timestamp '2013-12-03 10:14:09.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3261,'Cloud platform destination map',2200,'urn:perun:facility:attribute-def:def:cloudPlatformDestinationMap','cloudPlatformDestinationMap','urn:perun:facility:attribute-def:def','java.util.LinkedHashMap','Maps cloud platform (opennebula, openstack, ..) to destinations.',timestamp '2013-03-11 12:57:08.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-24 14:48:46.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (-1,3261,'Priority coeficient',2240,'urn:perun:user:attribute-def:def:priorityCoeficient','priorityCoeficient','urn:perun:user:attribute-def:def','java.lang.String','User''s priority coeficient based on reported Publications.',timestamp '2013-04-09 13:47:45.3','perunCabinet',timestamp '2013-10-24 13:34:47.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3411,'Login in namespace: einfra',146,'urn:perun:user:attribute-def:def:login-namespace:einfra','login-namespace:einfra','urn:perun:user:attribute-def:def','java.lang.String','Logname in namespace ''einfra''.',timestamp '2011-11-08 12:09:16.3','PERUNV3',timestamp '2014-09-24 14:39:44.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'AFS cell name',1368,'urn:perun:facility:attribute-def:def:afsCell','afsCell','urn:perun:facility:attribute-def:def','java.lang.String','AFS cell name for Facility.',timestamp '2012-08-17 13:09:40.6','michalp@META',timestamp '2013-10-24 14:31:16.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Quota FS name',820,'urn:perun:resource:attribute-def:def:quotaFileSystem','quotaFileSystem','urn:perun:resource:attribute-def:def','java.lang.String','Name of file system, which has files/data quota applied by Resource.',timestamp '2012-02-17 11:16:19.6','PERUNV3',timestamp '2013-10-25 10:35:33.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Certificates',440,'urn:perun:user:attribute-def:def:userCertificates','userCertificates','urn:perun:user:attribute-def:def','java.util.LinkedHashMap','All user''s full certificates.',timestamp '2011-12-13 12:49:59.3','PERUNV3',timestamp '2013-10-24 12:55:44.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Short name of VO',1720,'urn:perun:resource:attribute-def:virt:voShortName','voShortName','urn:perun:resource:attribute-def:virt','java.lang.String','Short name of VO where this resource is assigned.',timestamp '2012-10-30 16:08:25.3','glory@META',timestamp '2013-10-29 11:29:47.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Description',1481,'urn:perun:facility:attribute-def:def:desc','desc','urn:perun:facility:attribute-def:def','java.util.LinkedHashMap','Short description of facility (in CS and EN).',timestamp '2012-09-13 10:04:33.5','makub@META',timestamp '2013-10-25 13:51:59.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'GID of system unix group',1161,'urn:perun:group_resource:attribute-def:def:systemUnixGID','systemUnixGID','urn:perun:group_resource:attribute-def:def','java.lang.Integer','GID of unix system group to which is this group mapped.',timestamp '2012-05-04 12:39:00.6','michalp@META',timestamp '2013-10-25 11:25:26.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Link to user''s manuals',1340,'urn:perun:vo:attribute-def:def:userManualsLink','userManualsLink','urn:perun:vo:attribute-def:def','java.lang.String','Link to user''s manuals of VO members. URL must start with http://.',timestamp '2012-08-15 11:21:55.4','michalp@META',timestamp '2013-10-25 13:06:16.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3411,'Unix group name in metacloud',2560,'urn:perun:resource:attribute-def:def:unixGroupName-namespace:metacloud','unixGroupName-namespace:metacloud','urn:perun:resource:attribute-def:def','java.lang.String','Unix group name in namespace ''metacloud''.',timestamp '2013-12-11 10:37:58.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-09-24 14:03:51.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,3411,'Quota enabled',2840,'urn:perun:facility:attribute-def:def:quotaEnabled','quotaEnabled','urn:perun:facility:attribute-def:def','java.lang.Integer','Attribute says if quota is enabled on facility.',timestamp '2014-07-09 11:44:35.4','stava@META',timestamp '2014-07-09 12:33:53.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Project hard data quota limit',2841,'urn:perun:group_resource:attribute-def:def:projectDataLimit','projectDataLimit','urn:perun:group_resource:attribute-def:def','java.lang.String','Project hard quota including units (M,G,T, ...), G is default.',timestamp '2014-07-09 11:54:02.4','stava@META',timestamp '2014-07-09 11:55:22.4','stava@META');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (-1,3411,'Group''s appliaction URL',2920,'urn:perun:group:attribute-def:def:applicationURL','applicationURL','urn:perun:group:attribute-def:def','java.lang.String','Custom link to group''s application form used in e-mail invitations.',timestamp '2014-08-26 15:05:15.3','perunRegistrar',timestamp '2014-09-03 09:02:36.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,3411,'Virtual default unix GID',2988,'urn:perun:user_facility:attribute-def:virt:defaultUnixGID','defaultUnixGID','urn:perun:user_facility:attribute-def:virt','java.lang.Integer','Computed unix group id from user preferrences.',timestamp '2014-09-09 14:31:15.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-24 12:55:24.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3411,'Last synchronization timestamp',2941,'urn:perun:group:attribute-def:def:lastSynchronizationTimestamp','lastSynchronizationTimestamp','urn:perun:group:attribute-def:def','java.lang.String','If group is synchronized, there will be the last timestamp of group synchronization.',timestamp '2014-08-27 13:34:18.4','PERUNV3',timestamp '2014-08-27 18:59:27.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,null,'Last synchronization state',2960,'urn:perun:group:attribute-def:def:lastSynchronizationState','lastSynchronizationState','urn:perun:group:attribute-def:def','java.lang.String','If group is synchronized, there will be information about state of last synchronization.',timestamp '2014-08-28 17:49:29.5','PERUNV3',timestamp '2014-08-28 17:49:29.5','PERUNV3');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix group name in egi-ui',1824,'urn:perun:resource:attribute-def:def:unixGroupName-namespace:egi-ui','unixGroupName-namespace:egi-ui','urn:perun:resource:attribute-def:def','java.lang.String','Unix group name in namespace ''egi-ui''.',timestamp '2012-11-15 22:46:11.5','vlasta@META',timestamp '2013-10-25 13:33:48.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix group name in egi-ui',1825,'urn:perun:group:attribute-def:def:unixGroupName-namespace:egi-ui','unixGroupName-namespace:egi-ui','urn:perun:group:attribute-def:def','java.lang.String','Unix group name in namespace ''egi-ui''.',timestamp '2012-11-15 22:46:51.5','vlasta@META',timestamp '2013-10-25 12:33:13.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Level of assurance by organization (CS)',1920,'urn:perun:user:attribute-def:virt:organizationsWithLoa:cs','organizationsWithLoa:cs','urn:perun:user:attribute-def:virt','java.util.LinkedHashMap','Level of assurance by organization (czech). Value is automatically determined from all user''s external identities.',timestamp '2012-11-30 10:41:46.6','glory@META',timestamp '2013-10-24 13:40:16.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'AFS group''s name',1980,'urn:perun:group_resource:attribute-def:def:afsGroupName','afsGroupName','urn:perun:group_resource:attribute-def:def','java.lang.String','Name of group in AFS.',timestamp '2013-01-14 13:24:13.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-29 11:14:16.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Mount point for locale scratch',2000,'urn:perun:facility:attribute-def:def:fsScratchLocalMountPoint','fsScratchLocalMountPoint','urn:perun:facility:attribute-def:def','java.lang.String','Mountpoint where the local scratch is located.',timestamp '2013-01-17 15:17:40.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-10-29 11:19:23.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'To email addresses',2020,'urn:perun:group:attribute-def:def:toEmail','toEmail','urn:perun:group:attribute-def:def','java.util.ArrayList','Email addresses (of Group managers) used as To in mail notifications.',timestamp '2013-01-22 13:45:39.3','perunRegistrar',timestamp '2013-10-25 11:16:52.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3354,3261,'Certificates expirations',2061,'urn:perun:user:attribute-def:virt:userCertExpirations','userCertExpirations','urn:perun:user:attribute-def:virt','java.util.LinkedHashMap','Expirations of user''s certificates.',timestamp '2013-01-29 16:23:08.3','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-10-24 13:10:57.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,3261,'DN of preferred certificate',2120,'urn:perun:user:attribute-def:def:userPreferredCertDN','userPreferredCertDN','urn:perun:user:attribute-def:def','java.lang.String','One user-preferred certificate DN without certificate authority.',timestamp '2013-02-13 10:58:56.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2013-10-24 13:12:24.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,3261,'EPPN',2300,'urn:perun:user:attribute-def:virt:eduPersonPrincipalNames','eduPersonPrincipalNames','urn:perun:user:attribute-def:virt','java.util.ArrayList','Extsource logins from IDP.',timestamp '2013-04-29 10:26:08.2','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2013-10-24 13:13:29.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Shell for passwd_scp',622,'urn:perun:user_facility:attribute-def:def:shell_passwd-scp','shell_passwd-scp','urn:perun:user_facility:attribute-def:def','java.lang.String','User''s shell used for passwd_scp access on Facility.',timestamp '2012-01-12 13:19:30.5','PERUNV3',timestamp '2013-10-24 13:30:34.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3197,3197,'Big projects',2580,'urn:perun:user:attribute-def:opt:bigProjects','bigProjects','urn:perun:user:attribute-def:opt','java.lang.String','ESFRI and other big projects',timestamp '2013-12-13 12:44:05.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988',timestamp '2013-12-13 12:44:05.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3411,'Login in namespace: cloudidp',2600,'urn:perun:user:attribute-def:def:login-namespace:cloudidp','login-namespace:cloudidp','urn:perun:user:attribute-def:def','java.lang.String','Logname in namespace: ''cloudidp''.',timestamp '2013-12-20 14:38:36.6','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-09-24 14:39:44.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3255,'Computed shell from user''s preferrences',2620,'urn:perun:user_facility:attribute-def:virt:shell','shell','urn:perun:user_facility:attribute-def:virt','java.lang.String','Computed shell from user preferences',timestamp '2014-01-09 11:18:50.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-04-03 15:55:16.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3411,'VO created date',2820,'urn:perun:vo:attribute-def:core:createdAt','createdAt','urn:perun:vo:attribute-def:core','java.lang.String','Date when VO was created.',timestamp '2014-07-07 15:48:26.2','glory@META',timestamp '2014-08-13 14:43:03.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3261,3261,'Facility displayed name',2640,'urn:perun:facility:attribute-def:def:displayName','displayName','urn:perun:facility:attribute-def:def','java.lang.String','Name of facility displayed at PBSMON',timestamp '2014-01-21 13:52:12.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378',timestamp '2014-01-21 13:52:12.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Project owner login',2703,'urn:perun:group_resource:attribute-def:def:projectOwnerLogin','projectOwnerLogin','urn:perun:group_resource:attribute-def:def','java.lang.String','Login of user, who is owner of project directory.',timestamp '2014-03-10 16:47:52.2','stava@META',timestamp '2014-05-12 17:01:19.2','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Basic default GID',2980,'urn:perun:user_facility:attribute-def:def:basicDefaultGID','basicDefaultGID','urn:perun:user_facility:attribute-def:def','java.lang.Integer','Pregenerated primary unix gid which is used if user doesn''t have other preferencies.',timestamp '2014-09-09 13:53:35.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 13:53:35.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3255,'VO description',2821,'urn:perun:vo:attribute-def:def:description','description','urn:perun:vo:attribute-def:def','java.lang.String','Description of the VO',timestamp '2014-07-07 15:49:16.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-07-07 15:49:16.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Authoritative Group',2900,'urn:perun:group:attribute-def:def:authoritativeGroup','authoritativeGroup','urn:perun:group:attribute-def:def','java.lang.Integer','If group is authoritative for member. (for synchronization)',timestamp '2014-07-28 13:28:46.2','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-07-28 13:28:46.2','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'KERBEROS principals (full)',1941,'urn:perun:user:attribute-def:virt:kerberosLogins','kerberosLogins','urn:perun:user:attribute-def:virt','java.util.ArrayList','Logins in KERBEROS (including realm and kerberos UserExtSources).',timestamp '2012-12-05 21:02:48.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2013-10-23 14:28:50.4','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3354,3261,'UID namespace policy',2080,'urn:perun:entityless:attribute-def:def:namespace-uid-policy','namespace-uid-policy','urn:perun:entityless:attribute-def:def','java.lang.String','Policy for generating new UID number: recycle - use first available UID, increment - add 1 to last used UID (one of them).',timestamp '2013-01-30 14:19:41.4','michalp@META',timestamp '2013-10-25 13:21:06.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Home mount point',24,'urn:perun:user_facility:attribute-def:def:homeMountPoint','homeMountPoint','urn:perun:user_facility:attribute-def:def','java.lang.String','Where user''s home is mounted on Facility.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-24 13:25:02.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3411,'Public ssh admin key',2220,'urn:perun:user:attribute-def:def:sshPublicAdminKey','sshPublicAdminKey','urn:perun:user:attribute-def:def','java.util.ArrayList','User''s SSH public keys used for root access.',timestamp '2013-04-01 23:48:16.2','glory@META',timestamp '2014-05-16 09:40:07.6','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Files limit',1244,'urn:perun:member_resource:attribute-def:def:filesLimit','filesLimit','urn:perun:member_resource:attribute-def:def','java.lang.Integer','Hard quota for max. number of user''s files. Standard is empty, Default files limit is used. Filled value defines exception from Resource''s default.',timestamp '2012-05-22 10:43:29.3','zora@META',timestamp '2013-10-25 10:46:21.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Phone (for VO)',122,'urn:perun:member:attribute-def:def:phone','phone','urn:perun:member:attribute-def:def','java.lang.String','Phone number in organization.',timestamp '2011-10-24 14:46:44.2','PERUNV3',timestamp '2013-10-25 12:49:43.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3261,'UID in sagrid',2501,'urn:perun:user:attribute-def:def:uid-namespace:sagrid','uid-namespace:sagrid','urn:perun:user:attribute-def:def','java.lang.Integer','UID in namespace ''sagrid''',timestamp '2013-11-14 16:05:44.5','glory@META',timestamp '2013-12-03 10:18:35.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3411,3411,'Notification default language',2540,'urn:perun:vo:attribute-def:def:notificationsDefLang','notificationsDefLang','urn:perun:vo:attribute-def:def','java.lang.String','Default language used for application notifications to VO managers.',timestamp '2013-12-02 13:56:10.2','zlamalp@META',timestamp '2013-12-02 13:56:10.2','zlamalp@META');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Project name',2702,'urn:perun:group_resource:attribute-def:def:projectName','projectName','urn:perun:group_resource:attribute-def:def','java.lang.String','Name of project, directory where the project exists.',timestamp '2014-03-10 16:47:30.2','stava@META',timestamp '2014-05-12 17:01:19.2','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3255,'Contact role for appDB',2822,'urn:perun:resource:attribute-def:def:appDBContactRole','appDBContactRole','urn:perun:resource:attribute-def:def','java.lang.String','Contact role for appDB',timestamp '2014-07-07 16:22:09.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-07-07 16:22:09.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Project soft data quota.',2842,'urn:perun:group_resource:attribute-def:def:projectDataQuota','projectDataQuota','urn:perun:group_resource:attribute-def:def','java.lang.String','Project soft quota including units (M, G, T, ...), G is default.',timestamp '2014-07-09 11:54:59.4','stava@META',timestamp '2014-07-09 11:54:59.4','stava@META');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3411,'Target user for k5login',2860,'urn:perun:resource:attribute-def:def:k5loginTargetUser','k5loginTargetUser','urn:perun:resource:attribute-def:def','java.lang.String','Target user for .k5login settings.',timestamp '2014-07-15 14:38:34.3','glory@META',timestamp '2014-08-13 14:42:35.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Preferred Unix GroupName for cerit',2981,'urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:cerit','preferredUnixGroupName-namespace:cerit','urn:perun:user:attribute-def:def','java.util.ArrayList','User preferred unix group name, ordered by user''s personal preferrences.',timestamp '2014-09-09 13:55:52.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 13:55:52.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Preferred Unix Group Name',2989,'urn:perun:user_facility:attribute-def:virt:preferredUnixGroupName','preferredUnixGroupName','urn:perun:user_facility:attribute-def:virt','java.util.ArrayList','Choosed users preferred unix groupNames for specific facility namespace.',timestamp '2014-09-09 14:32:04.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:32:04.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Preferred Unix GroupName for metacloud',3060,'urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:metacloud','preferredUnixGroupName-namespace:metacloud','urn:perun:user:attribute-def:def','java.util.ArrayList','User preferred unix group name ordered by user''s preferrences.',timestamp '2014-09-24 11:58:21.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-24 11:58:21.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3354,3354,'Heslo pro službu SAMBA DÚ',3200,'urn:perun:user:attribute-def:def:altPasswords:samba-du','altPasswords:sam<PASSWORD>','urn:perun:user:attribute-def:def','java.util.LinkedHashMap','Heslo pro službu SAMBA DÚ, uloženo na SAMBA serveru.',timestamp '2014-12-04 20:17:13.5','/DC=cz/DC=cesnet-ca/O=Masaryk University/CN=Michal Prochazka',timestamp '2014-12-04 20:17:13.5','/DC=cz/DC=cesnet-ca/O=Masaryk University/CN=Michal Prochazka');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Name of mailing list',1840,'urn:perun:resource:attribute-def:def:mailingListName','mailingListName','urn:perun:resource:attribute-def:def','java.lang.String','Name of the mailing list which is represented by this resource.',timestamp '2012-11-16 12:58:02.6','glory@META',timestamp '2013-12-03 10:14:09.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Name',1,'urn:perun:facility:attribute-def:core:name','name','urn:perun:facility:attribute-def:core','java.lang.String','Facility name.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-24 13:42:48.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'UID',262,'urn:perun:user_facility:attribute-def:virt:UID','UID','urn:perun:user_facility:attribute-def:virt','java.lang.Integer','User''s UID used at facility. Value is determined automatically from all user''s UIDs by Facility''s namespace.',timestamp '2011-12-01 13:58:28.5','PERUNV3',timestamp '2013-10-24 13:23:30.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Home mount points',20,'urn:perun:resource:attribute-def:def:homeMountPoints','homeMountPoints','urn:perun:resource:attribute-def:def','java.util.ArrayList','Available mount points for users on Resource. Selection is limited by available home mount points on Facility.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-25 10:32:36.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'PBS server',1080,'urn:perun:facility:attribute-def:def:pbsServer','pbsServer','urn:perun:facility:attribute-def:def','java.lang.String','PBS server which controls this facility.',timestamp '2012-03-23 11:10:21.6','glory@META',timestamp '2013-10-24 14:13:56.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'SSH host key',700,'urn:perun:host:attribute-def:def:sshHostKey','sshHostKey','urn:perun:host:attribute-def:def','java.lang.String','Host''s SSH key.',timestamp '2012-02-07 15:11:45.3','PERUNV3',timestamp '2013-10-24 14:24:52.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Email footer',1680,'urn:perun:vo:attribute-def:def:mailFooter','mailFooter','urn:perun:vo:attribute-def:def','java.lang.String','Email footer used in mail notifications by tag {mailFooter}. To edit text whithout loose of formatting, please use notification''s GUI!!',timestamp '2012-10-19 10:52:35.6','zlamalp@META',timestamp '2013-10-25 13:16:06.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3411,'Login in namespace: sagrid',2500,'urn:perun:user:attribute-def:def:login-namespace:sagrid','login-namespace:sagrid','urn:perun:user:attribute-def:def','java.lang.String','Logname in namespace ''sagrid''.',timestamp '2013-11-14 15:58:43.5','glory@META',timestamp '2014-09-24 14:39:44.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3255,'User preferred shells',2680,'urn:perun:user:attribute-def:def:preferredShells','preferredShells','urn:perun:user:attribute-def:def','java.util.ArrayList','User preferred shells, ordered by user''s personal preferences',timestamp '2014-02-12 14:23:22.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-04-03 15:54:05.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Projects base path',2700,'urn:perun:resource:attribute-def:def:projectsBasePath','projectsBasePath','urn:perun:resource:attribute-def:def','java.lang.String','Path to base directory of projects.',timestamp '2014-03-10 16:46:06.2','stava@META',timestamp '2014-05-12 17:01:19.2','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (-1,-1,'Registrar URL',3160,'urn:perun:vo:attribute-def:def:registrarURL','registrarURL','urn:perun:vo:attribute-def:def','java.lang.String','Custom URL used in registration notifications (hostname without any parameters like: https://hostname.domain/). If not set, default hostname of Perun instance is used.',timestamp '2014-11-10 12:23:17.2','perunRegistrar',timestamp '2014-11-10 12:23:17.2','perunRegistrar');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (-1,-1,'Registrar URL',3161,'urn:perun:group:attribute-def:def:registrarURL','registrarURL','urn:perun:group:attribute-def:def','java.lang.String','Custom URL used in registration notifications (hostname without any parameters like: https://hostname.domain/). This value override same VO setting. If not set, default hostname of Perun instance is used.',timestamp '2014-11-10 12:23:18.2','perunRegistrar',timestamp '2014-11-10 12:23:18.2','perunRegistrar');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3354,3354,'Login on DU SAMBA server',3180,'urn:perun:user:attribute-def:def:login-namespace:du-samba','login-namespace:du-samba','urn:perun:user:attribute-def:def','java.lang.String','Login on DU SAMBA server',timestamp '2014-11-25 12:07:59.3','michalp@META',timestamp '2014-11-25 12:07:59.3','michalp@META');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'From email address',1740,'urn:perun:vo:attribute-def:def:fromEmail','fromEmail','urn:perun:vo:attribute-def:def','java.lang.String','Email address used as From in mail notifications.',timestamp '2012-11-05 12:04:18.2','perunRegistrar',timestamp '2013-10-25 13:10:45.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Available shells',13,'urn:perun:facility:attribute-def:def:shells','shells','urn:perun:facility:attribute-def:def','java.util.ArrayList','Available shells at Facility, which can be selected by users. Selection can be shortened or default shell set per Resource.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-24 14:02:38.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Data limit',1243,'urn:perun:member_resource:attribute-def:def:dataLimit','dataLimit','urn:perun:member_resource:attribute-def:def','java.lang.String','Hard quota for user''s data, including units (M,G,T, ...), G is default. Standard is empty, Default data limit is used. Filled value defines exception from Resource''s default.',timestamp '2012-05-22 10:43:11.3','zora@META',timestamp '2013-10-25 10:44:44.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3261,'Unix group name in sagrid',2502,'urn:perun:resource:attribute-def:def:unixGroupName-namespace:sagrid','unixGroupName-namespace:sagrid','urn:perun:resource:attribute-def:def','java.lang.String','Unix group name in namespace ''sagrid''',timestamp '2013-11-14 16:06:39.5','glory@META',timestamp '2013-12-03 10:18:35.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3261,'Maling list manager''s e-mail',2520,'urn:perun:resource:attribute-def:def:mailingListManagerMail','mailingListManagerMail','urn:perun:resource:attribute-def:def','java.lang.String','Maling list manager''s e-mail.',timestamp '2013-11-15 09:48:31.6','glory@META',timestamp '2013-12-03 10:14:09.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3411,3411,'Notification default language',2541,'urn:perun:group:attribute-def:def:notificationsDefLang','notificationsDefLang','urn:perun:group:attribute-def:def','java.lang.String','Default language used for application notifications to Group managers.',timestamp '2013-12-02 13:57:27.2','zlamalp@META',timestamp '2013-12-02 13:57:27.2','zlamalp@META');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3255,'Unix permissions for scratch',2720,'urn:perun:facility:attribute-def:def:scratchDirPermissions','scratchDirPermissions','urn:perun:facility:attribute-def:def','java.lang.String','Unix permissions, which will be applied when new scratch folder is created.',timestamp '2014-05-05 14:54:28.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-05-05 14:54:28.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Preferred Unix GroupName for einfra',2983,'urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:einfra','preferredUnixGroupName-namespace:einfra','urn:perun:user:attribute-def:def','java.util.ArrayList','User preferred unix group name, ordered by user''s personal preferrences.',timestamp '2014-09-09 13:57:59.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 13:57:59.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Preferred Unix GroupName for sitola',2984,'urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:sitola','preferredUnixGroupName-namespace:sitola','urn:perun:user:attribute-def:def','java.util.ArrayList','User preferred unix group name, ordered by user''s personal preferrences.',timestamp '2014-09-09 14:10:16.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:10:16.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'To email addresses',1743,'urn:perun:vo:attribute-def:def:toEmail','toEmail','urn:perun:vo:attribute-def:def','java.util.ArrayList','Email addresses (of VO managers) used as To in mail notifications.',timestamp '2012-11-05 12:16:55.2','perunRegistrar',timestamp '2013-10-25 13:11:35.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix GID in sitola',1900,'urn:perun:group:attribute-def:def:unixGID-namespace:sitola','unixGID-namespace:sitola','urn:perun:group:attribute-def:def','java.lang.Integer','Unix GID in namespace ''sitola''.',timestamp '2012-11-22 14:35:07.5','glory@META',timestamp '2013-10-25 12:38:07.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix group name in sitola',1901,'urn:perun:group:attribute-def:def:unixGroupName-namespace:sitola','unixGroupName-namespace:sitola','urn:perun:group:attribute-def:def','java.lang.String','Unix group name in namespace ''sitola''.',timestamp '2012-11-22 14:35:27.5','glory@META',timestamp '2013-10-25 12:34:36.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix GID in sitola',1902,'urn:perun:resource:attribute-def:def:unixGID-namespace:sitola','unixGID-namespace:sitola','urn:perun:resource:attribute-def:def','java.lang.Integer','Unix GID of group which represented group for whole resource at namespace ''sitola''.',timestamp '2012-11-22 14:36:02.5','glory@META',timestamp '2013-10-25 11:04:32.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'KERBEROS admin principal',2040,'urn:perun:user:attribute-def:def:kerberosAdminPrincipal','kerberosAdminPrincipal','urn:perun:user:attribute-def:def','java.lang.String','KERBEROS admin principal (used for root access).',timestamp '2013-01-28 10:40:16.2','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2013-10-23 14:21:18.4','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3261,'UID in fedcloud',2100,'urn:perun:user:attribute-def:def:uid-namespace:fedcloud','uid-namespace:fedcloud','urn:perun:user:attribute-def:def','java.lang.Integer','UID in namespace ''fedcloud'' for opennebula_fedcloud.',timestamp '2013-02-04 15:46:24.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-24 13:16:22.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3261,'FS volume',2160,'urn:perun:resource:attribute-def:def:fsVolume','fsVolume','urn:perun:resource:attribute-def:def','java.lang.String','Volume on which users''s homes dirs are created. (It''s not mount point!).',timestamp '2013-02-27 13:06:34.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-25 10:51:29.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3354,3261,'UID in cesnet',2221,'urn:perun:user:attribute-def:def:uid-namespace:cesnet','uid-namespace:cesnet','urn:perun:user:attribute-def:def','java.lang.Integer','UID in namespace ''cesnet''.',timestamp '2013-04-02 11:35:06.3','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-10-24 13:15:29.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3354,3261,'Apache SSL authz dir',2260,'urn:perun:resource:attribute-def:def:apacheSSLAuthzDir','apacheSSLAuthzDir','urn:perun:resource:attribute-def:def','java.lang.String','Path to the directory, which will contain list of allowed certificates.',timestamp '2013-04-24 13:56:46.4','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-10-25 10:50:34.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Destination file for passwd_scp',1120,'urn:perun:facility:attribute-def:def:passwdScpDestinationFile','passwdScpDestinationFile','urn:perun:facility:attribute-def:def','java.lang.String','Path where passwd file (for passwd_scp service) is stored (Typically: /etc/passwd).',timestamp '2012-04-17 15:19:10.3','glory@META',timestamp '2013-10-24 14:13:11.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'AFS partition',1371,'urn:perun:facility:attribute-def:def:afsPartition','afsPartition','urn:perun:facility:attribute-def:def','java.lang.String','AFS partition.',timestamp '2012-08-17 14:26:16.6','michalp@META',timestamp '2013-10-24 14:32:27.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3261,'Unix GID in sagrid',2503,'urn:perun:resource:attribute-def:def:unixGID-namespace:sagrid','unixGID-namespace:sagrid','urn:perun:resource:attribute-def:def','java.lang.Integer','Unix GID of group which represented group for whole resource at namespace ''sagrid''.',timestamp '2013-11-14 16:07:46.5','glory@META',timestamp '2013-12-03 10:18:35.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3261,'Unix group name in sagrid',2504,'urn:perun:group:attribute-def:def:unixGroupName-namespace:sagrid','unixGroupName-namespace:sagrid','urn:perun:group:attribute-def:def','java.lang.String','Unix group name in namespace ''sagrid''',timestamp '2013-11-14 16:08:42.5','glory@META',timestamp '2013-12-03 10:18:35.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3261,'Unix GID in sagrid',2505,'urn:perun:group:attribute-def:def:unixGID-namespace:sagrid','unixGID-namespace:sagrid','urn:perun:group:attribute-def:def','java.lang.Integer','Unix GID in namespace ''sagrid''',timestamp '2013-11-14 16:09:11.5','glory@META',timestamp '2013-12-03 10:18:35.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Project directory permissions',2701,'urn:perun:group_resource:attribute-def:def:projectDirPermissions','projectDirPermissions','urn:perun:group_resource:attribute-def:def','java.lang.Integer','Permissions (ACL) to directory, where the project exists. Standard unix file system permissions in numeric format.',timestamp '2014-03-10 16:47:01.2','stava@META',timestamp '2014-05-12 17:01:19.2','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3354,3354,'Alternative passwords for eInfra',2780,'urn:perun:user:attribute-def:def:altPasswords:einfra','altPasswords:einfra','urn:perun:user:attribute-def:def','java.util.LinkedHashMap','List containing mapping between alt. password description and its ID in external authN system limited to eInfra',timestamp '2014-06-20 16:57:10.6','/C=CZ/O=Masarykova univerzita/CN=Michal Prochazka/unstructuredName=39700',timestamp '2014-06-20 16:57:10.6','/C=CZ/O=Masarykova univerzita/CN=Michal Prochazka/unstructuredName=39700');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Preferred Unix GroupName for storage',2985,'urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:storage','preferredUnixGroupName-namespace:storage','urn:perun:user:attribute-def:def','java.util.ArrayList','User preferred unix group name, ordered by user''s personal preferrences.',timestamp '2014-09-09 14:10:54.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:10:54.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Preferred Unix Group Name for egi-ui',3000,'urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:egi-ui','preferredUnixGroupName-namespace:egi-ui','urn:perun:user:attribute-def:def','java.util.ArrayList','User preferred unix group name, ordered by user''s personal preferrences.',timestamp '2014-09-10 09:52:34.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-10 09:52:34.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3354,3354,'Is facility monitored?',3080,'urn:perun:facility:attribute-def:opt:metaIsMonitored','metaIsMonitored','urn:perun:facility:attribute-def:opt','java.lang.String','Is facility monitored by MetaCentrum Nagios',timestamp '2014-10-02 22:26:00.5','/C=CZ/O=Masarykova univerzita/CN=Michal Prochazka/unstructuredName=39700',timestamp '2014-10-02 22:42:11.5','/C=CZ/O=Masarykova univerzita/CN=Michal Prochazka/unstructuredName=39700');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Publications',1800,'urn:perun:user:attribute-def:def:publications','publications','urn:perun:user:attribute-def:def','java.util.LinkedHashMap','Number of publications with acknowledgement per resource provider.',timestamp '2012-11-15 10:08:53.5','michalp@META',timestamp '2013-10-24 13:37:00.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'UID in egi-ui',1821,'urn:perun:user:attribute-def:def:uid-namespace:egi-ui','uid-namespace:egi-ui','urn:perun:user:attribute-def:def','java.lang.Integer','UID in namespace ''egi-ui''.',timestamp '2012-11-15 22:32:11.5','vlasta@META',timestamp '2013-10-24 13:15:56.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix GID in egi-ui',1822,'urn:perun:resource:attribute-def:def:unixGID-namespace:egi-ui','unixGID-namespace:egi-ui','urn:perun:resource:attribute-def:def','java.lang.Integer','Unix GID of group which represented group for whole resource at namespace ''egi-ui''.',timestamp '2012-11-15 22:37:23.5','vlasta@META',timestamp '2013-10-25 11:03:05.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Mailing-list exclusion',1841,'urn:perun:member_resource:attribute-def:def:optOutMailingList','optOutMailingList','urn:perun:member_resource:attribute-def:def','java.lang.String','By default empty. If any value is set - it excludes member from mailing list represented by Resource (with service mailman).',timestamp '2012-11-16 13:05:32.6','glory@META',timestamp '2013-10-25 10:53:04.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'UID in shongo',1960,'urn:perun:user:attribute-def:def:uid-namespace:shongo','uid-namespace:shongo','urn:perun:user:attribute-def:def','java.lang.Integer','UID in namespace ''shongo''.',timestamp '2012-12-11 15:47:29.3','zlamalp@META',timestamp '2013-10-24 13:17:40.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3354,3261,'Login in namespace: einfra-services',2060,'urn:perun:user:attribute-def:def:login-namespace:einfra-services','login-namespace:einfra-services','urn:perun:user:attribute-def:def','java.lang.String','Logname in namespace ''einfra-services''.',timestamp '2013-01-29 12:01:23.3','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-10-23 14:17:26.4','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3411,3261,'From email address',2140,'urn:perun:group:attribute-def:def:fromEmail','fromEmail','urn:perun:group:attribute-def:def','java.lang.String','Email address used as From in mail notifications.',timestamp '2013-02-20 15:14:44.4','zlamalp@META',timestamp '2013-10-25 11:17:34.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3261,'Administrative resource for owencloud',2420,'urn:perun:resource:attribute-def:def:owncloudAdminResource','owncloudAdminResource','urn:perun:resource:attribute-def:def','java.lang.String','Users asigned to this resource will be propageted to each VO in owncloud (to be able to be set as managers). (values: true/false or nothing).',timestamp '2013-07-10 15:40:02.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-29 11:19:23.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Used Gids',2880,'urn:perun:entityless:attribute-def:def:usedGids','usedGids','urn:perun:entityless:attribute-def:def','java.util.LinkedHashMap','All used and already depleted gids. Depleted mean gids, which are not used now.',timestamp '2014-07-24 13:15:28.5','stava@META',timestamp '2014-07-24 13:15:28.5','stava@META');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'AFS default users quota',1375,'urn:perun:resource:attribute-def:def:afsDefaultUsersQuota','afsDefaultUsersQuota','urn:perun:resource:attribute-def:def','java.lang.String','Default AFS user''s quota.',timestamp '2012-08-17 14:44:53.6','michalp@META',timestamp '2013-10-25 10:55:37.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'ID',41,'urn:perun:facility:attribute-def:core:id','id','urn:perun:facility:attribute-def:core','java.lang.Integer','Identifier of facility at DB.',timestamp '2011-06-01 10:57:48.4','PERUNV3',timestamp '2013-10-24 13:43:21.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Name of system unix group',1162,'urn:perun:group_resource:attribute-def:def:systemUnixGroupName','systemUnixGroupName','urn:perun:group_resource:attribute-def:def','java.lang.String','Name of the system unix group to which is this group mapped.',timestamp '2012-05-04 12:39:15.6','michalp@META',timestamp '2013-10-25 11:26:47.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Is system unix group',1160,'urn:perun:group_resource:attribute-def:def:isSystemUnixGroup','isSystemUnixGroup','urn:perun:group_resource:attribute-def:def','java.lang.Integer','Group on Resource creates system unix group on Facility.',timestamp '2012-05-04 12:37:12.6','michalp@META',timestamp '2013-10-25 11:24:31.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Home mount point for passwd_scp',623,'urn:perun:facility:attribute-def:def:homeMountPoint_passwd-scp','homeMountPoint_passwd-scp','urn:perun:facility:attribute-def:def','java.lang.String','Home mount point for service passwd_scp.',timestamp '2012-01-12 14:01:06.5','PERUNV3',timestamp '2013-10-24 14:09:51.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Apache authz file',1380,'urn:perun:resource:attribute-def:def:apacheAuthzFile','apacheAuthzFile','urn:perun:resource:attribute-def:def','java.lang.String','File containing authz entries for Apache.',timestamp '2012-08-24 15:34:29.6','michalp@META',timestamp '2013-10-25 10:49:42.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix group name in cerit',586,'urn:perun:resource:attribute-def:def:unixGroupName-namespace:cerit','unixGroupName-namespace:cerit','urn:perun:resource:attribute-def:def','java.lang.String','Unix group name in namespace ''cerit''.',timestamp '2012-01-11 12:22:02.4','PERUNV3',timestamp '2013-10-25 13:34:09.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,3261,'Timezone',2460,'urn:perun:user:attribute-def:def:timezone','timezone','urn:perun:user:attribute-def:def','java.lang.String','User''s timezone described by ±[hh] (ISO 8601).',timestamp '2013-10-09 09:21:13.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2013-10-29 11:28:02.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3261,3261,'Is cluster',2660,'urn:perun:facility:attribute-def:def:isCluster','isCluster','urn:perun:facility:attribute-def:def','java.lang.Integer','Value of attribute 0 or empty means it is not cluster, value 1 means it is cluster',timestamp '2014-01-24 11:12:44.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378',timestamp '2014-01-24 11:12:44.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Level of assurance',3461,'urn:perun:user:attribute-def:virt:loa','loa','urn:perun:user:attribute-def:virt','java.lang.Integer','The highest value of LoA from all users userExtSources.',timestamp '2012-11-06 14:05:52.3','zlamalp@META',timestamp '2013-10-25 12:57:17.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'RT queue for VO',1780,'urn:perun:vo:attribute-def:def:RTVoQueue','RTVoQueue','urn:perun:vo:attribute-def:def','java.lang.String','Definition of VO''s RT queue.',timestamp '2012-11-13 14:19:31.3','stava@META',timestamp '2013-10-25 13:18:10.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix group name in sitola',1903,'urn:perun:resource:attribute-def:def:unixGroupName-namespace:sitola','unixGroupName-namespace:sitola','urn:perun:resource:attribute-def:def','java.lang.String','Unix group name in namespace ''sitola''.',timestamp '2012-11-22 14:36:27.5','glory@META',timestamp '2013-10-25 13:36:09.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Mailing list allow invalid users',1880,'urn:perun:resource:attribute-def:def:mailingListAllowInvalidUsers','mailingListAllowInvalidUsers','urn:perun:resource:attribute-def:def','java.lang.String','Atribute has value ''true'' if users with status other than VALID should be included.',timestamp '2012-11-20 13:57:53.3','makub@META',timestamp '2013-12-03 10:14:09.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'UID in sitola',1904,'urn:perun:user:attribute-def:def:uid-namespace:sitola','uid-namespace:sitola','urn:perun:user:attribute-def:def','java.lang.Integer','UID in namespace ''sitola''.',timestamp '2012-11-22 14:37:08.5','glory@META',timestamp '2013-10-24 13:18:06.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3411,'Login in namespace: sitola',1905,'urn:perun:user:attribute-def:def:login-namespace:sitola','login-namespace:sitola','urn:perun:user:attribute-def:def','java.lang.String','Logname in namespace ''sitola''.',timestamp '2012-11-22 14:38:03.5','glory@META',timestamp '2014-09-24 14:39:45.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Research group',1369,'urn:perun:user:attribute-def:opt:researchGroup','researchGroup','urn:perun:user:attribute-def:opt','java.lang.String','Name of the research group where the user works.',timestamp '2012-08-17 13:48:03.6','michalp@META',timestamp '2013-10-23 14:12:57.4','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'AFS default realm',1372,'urn:perun:resource:attribute-def:def:afsDefaultUsersRealm','afsDefaultUsersRealm','urn:perun:resource:attribute-def:def','java.lang.String','AFS default user''s realm (lower case).',timestamp '2012-08-17 14:40:13.6','michalp@META',timestamp '2013-10-25 10:57:22.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3261,'ID of VO',2480,'urn:perun:resource:attribute-def:core:voId','voId','urn:perun:resource:attribute-def:core','java.lang.Integer','ID of VO where this resource is assigned',timestamp '2013-10-14 14:50:01.2','glory@META',timestamp '2013-10-29 11:29:47.3','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Login',260,'urn:perun:user_facility:attribute-def:virt:login','login','urn:perun:user_facility:attribute-def:virt','java.lang.String','User''s logname at facility. Value is determined automatically from all user''s logins by Facility''s namespace.',timestamp '2011-12-01 13:26:26.5','PERUNV3',timestamp '2013-10-24 13:20:41.5','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (null,3261,'Unix GID',581,'urn:perun:resource:attribute-def:virt:unixGID','unixGID','urn:perun:resource:attribute-def:virt','java.lang.Integer','Unix GID used when whole Resource is group on Facility. Value is taken from resource''s GIDs based on Facility namespace.',timestamp '2012-01-11 11:52:01.4','PERUNV3',timestamp '2013-10-25 10:59:40.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3411,'Unix group name in metacloud',2561,'urn:perun:group:attribute-def:def:unixGroupName-namespace:metacloud','unixGroupName-namespace:metacloud','urn:perun:group:attribute-def:def','java.lang.String','Unix group name innamespace ''metacloud''.',timestamp '2013-12-11 10:38:10.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-09-24 14:03:51.4','/C=CZ/O=Masarykova univerzita/CN=Pavel Zl\xC3\xA1mal/unstructuredName=256627');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Preferred Unix GroupName for sagrid',2987,'urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:sagrid','preferredUnixGroupName-namespace:sagrid','urn:perun:user:attribute-def:def','java.util.ArrayList','User preferred unix group name, ordered by user''s personal preferrences.',timestamp '2014-09-09 14:11:57.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:11:57.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3255,3255,'Unix permissions for scratch_local',3020,'urn:perun:facility:attribute-def:def:scratchLocalDirPermissions','scratchLocalDirPermissions','urn:perun:facility:attribute-def:def','java.lang.String','Unix permissions, which will be applied when new scratch folder is created.',timestamp '2014-09-17 10:17:09.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-09-17 10:17:09.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3354,3354,'Is host managed?',3140,'urn:perun:host:attribute-def:opt:metaIsManaged','metaIsManaged','urn:perun:host:attribute-def:opt','java.lang.String','Is facility managed by MetaCentrum Puppet',timestamp '2014-10-18 07:44:44.7','/C=CZ/O=CESNET/CN=Michal Prochazka/unstructuredName=8497',timestamp '2014-10-18 07:44:44.7','/C=CZ/O=CESNET/CN=Michal Prochazka/unstructuredName=8497');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3354,3354,'Is facility managed?',3081,'urn:perun:facility:attribute-def:opt:metaIsManaged','metaIsManaged','urn:perun:facility:attribute-def:opt','java.lang.String','Is facility managed by MetaCentrum Puppet',timestamp '2014-10-02 22:42:00.5','/C=CZ/O=Masarykova univerzita/CN=Michal Prochazka/unstructuredName=39700',timestamp '2014-10-02 22:42:00.5','/C=CZ/O=Masarykova univerzita/CN=Michal Prochazka/unstructuredName=39700');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (3354,3354,'Is host monitored?',3141,'urn:perun:host:attribute-def:opt:metaIsMonitored','metaIsMonitored','urn:perun:host:attribute-def:opt','java.lang.String','Is host monitored by MetaCentrum Nagios',timestamp '2014-10-18 07:45:39.7','/C=CZ/O=CESNET/CN=Michal Prochazka/unstructuredName=8497',timestamp '2014-10-18 07:45:39.7','/C=CZ/O=CESNET/CN=Michal Prochazka/unstructuredName=8497');
insert into attr_names (created_by_uid,modified_by_uid,display_name,id,attr_name,friendly_name,namespace,type,dsc,created_at,created_by,modified_at,modified_by) values (6701,6701,'Exclude non-valid users from unix groups`',3220,'urn:perun:facility:attribute-def:def:excludeNonValidUsersFromUnixGroups','excludeNonValidUsersFromUnixGroups','urn:perun:facility:attribute-def:def','java.lang.String','Exclude non-valid users from unix groups if true is set.',timestamp '2015-01-20 13:13:54.3','stava@META',timestamp '2015-01-20 13:13:54.3','stava@META');
insert into attributes_authz (attr_id,role_id,action_type_id) values (1161,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1161,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1161,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1161,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1161,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1162,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1162,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1162,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1162,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1162,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1180,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1180,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1180,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1180,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1180,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1200,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1200,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1200,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1200,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1200,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1200,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1241,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1241,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1241,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1241,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1241,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1241,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1242,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1242,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1242,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1242,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1242,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1242,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1243,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1243,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1243,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1243,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1243,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1243,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1244,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1244,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1244,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1244,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1244,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1244,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1300,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1300,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1300,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1300,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1300,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1300,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1320,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1320,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1320,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1320,23,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1320,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1321,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1321,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1321,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1321,23,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1321,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1321,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1321,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1322,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1322,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1322,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1322,23,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1322,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1323,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1323,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1323,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1324,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1324,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1324,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1325,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1325,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1325,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1340,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1340,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1340,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1341,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1341,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1341,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1361,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1361,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1361,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1361,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1361,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1362,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1362,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1362,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1362,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1362,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1363,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1363,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1363,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1363,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1364,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1364,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1364,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1364,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1364,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1365,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1365,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1365,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1365,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1365,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1366,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1366,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1366,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1366,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1366,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1366,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1368,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1368,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1369,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1369,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1369,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1369,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1369,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1369,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1370,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1370,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1371,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1371,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1372,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1372,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1372,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1372,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1372,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1372,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1373,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1373,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1373,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1373,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1373,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1373,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1375,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1375,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1375,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1375,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1375,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1375,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1376,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1376,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1376,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1376,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1376,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1376,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1377,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1377,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1377,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1377,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1377,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1377,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1378,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1378,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1378,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1378,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1378,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1378,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1380,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1380,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1380,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1380,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1380,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1380,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1400,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1400,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1400,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1400,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1400,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1424,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1424,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1425,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1425,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1440,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1440,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1440,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1440,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1440,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1460,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1460,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1460,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1480,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1480,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1480,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1480,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1480,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1480,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1481,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1481,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1482,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1482,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1482,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1482,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1482,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1482,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1500,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1500,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1500,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1520,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1520,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1520,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1520,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1520,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1520,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1540,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1540,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1540,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1560,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1560,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1560,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1580,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1580,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1601,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1601,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1601,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1601,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1601,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1601,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1602,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1602,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1602,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1602,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1602,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1602,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1603,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1603,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1603,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1603,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1603,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1603,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1604,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1604,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1604,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1604,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1604,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1604,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1605,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1605,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1605,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1605,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1605,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1605,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (343,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (343,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (343,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (343,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (343,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (343,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (360,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (360,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (360,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (360,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (360,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (361,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (361,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (361,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (361,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (361,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (380,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (380,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (380,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (380,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (380,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (380,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (400,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (400,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (401,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (401,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (401,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (401,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (401,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (401,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (421,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (421,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (421,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (421,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (421,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (421,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (440,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (440,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (440,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (440,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (440,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (441,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (441,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (441,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (441,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (441,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (460,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (460,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (460,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (460,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (460,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (460,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (500,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (500,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (500,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (500,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (500,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (500,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (520,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (520,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (520,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (520,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (520,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (520,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (521,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (521,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (521,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (521,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (521,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (521,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (580,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (580,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (580,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (580,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (580,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (580,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (581,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (581,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (581,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (581,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (581,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (582,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (582,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (582,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (582,23,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (582,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (582,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (582,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (586,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (586,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (586,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (586,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (586,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (586,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (588,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (588,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (588,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (588,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (588,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (588,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (589,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (589,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (589,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (589,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (589,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (590,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (590,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (590,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (590,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (590,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (601,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (601,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (622,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (622,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (622,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (622,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (622,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (622,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (622,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (623,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (623,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (660,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (660,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (660,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (660,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (660,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (661,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (661,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (661,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (661,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (661,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (662,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (662,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (662,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (662,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (662,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (662,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (667,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (667,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (667,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (667,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (667,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (700,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (700,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (760,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (760,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (760,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (760,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (760,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (760,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (761,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (761,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (761,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (761,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (761,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (761,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (780,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (780,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (780,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (780,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (780,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (800,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (800,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (800,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (800,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (800,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (820,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (820,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (820,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (820,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (820,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (820,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (860,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (860,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (860,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (860,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (860,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (860,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (880,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (880,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (880,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (880,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (880,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (880,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (900,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (900,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (900,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (900,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (900,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (900,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1040,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1040,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1040,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1040,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1040,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1060,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1060,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1060,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1060,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1060,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1080,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1080,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1080,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1080,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1080,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1080,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1120,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1120,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1140,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1140,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1140,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1140,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1140,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1160,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1160,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1160,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1160,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1160,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1606,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1606,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1606,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1606,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1606,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1606,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1607,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1607,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1608,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1608,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1608,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1608,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1608,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1608,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1660,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1660,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1680,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1680,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1680,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1700,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1700,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1700,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1700,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1700,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1700,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1720,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1720,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1720,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1720,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1720,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1740,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1740,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1740,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1743,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1743,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1743,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3461,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3461,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3461,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3461,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3461,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1780,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1780,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1780,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1821,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1821,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1821,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1821,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1821,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1822,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1822,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1822,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1822,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1822,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1824,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1824,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1824,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1824,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1824,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1824,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1825,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1825,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1825,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1825,23,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1825,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1826,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1826,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1826,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1840,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1840,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1840,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1840,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1840,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1840,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1841,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1841,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1841,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1841,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1841,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1841,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1841,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1860,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1860,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1860,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1860,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1860,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1860,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1880,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1880,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1880,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1880,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1880,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1880,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1900,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1900,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1900,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1901,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1901,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1901,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1901,23,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1901,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1902,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1902,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1902,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1902,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1902,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1903,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1903,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1903,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1903,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1903,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1903,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1904,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1904,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1904,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1904,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1904,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1905,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1905,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1905,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1905,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1905,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1920,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1920,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1920,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1920,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1920,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1921,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1921,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1921,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1921,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1921,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1941,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1941,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1941,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1941,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1941,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1960,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1960,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1960,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1960,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1960,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1980,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1980,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1980,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1980,23,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1980,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2000,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2000,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2000,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2000,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2000,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2000,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2020,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2020,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2020,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2020,23,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2020,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2040,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2040,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2040,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2040,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2040,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2040,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2060,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2060,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2060,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2060,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2060,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2061,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2061,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2061,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2061,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2061,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2080,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2080,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2080,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2080,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2080,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2100,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2100,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2100,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2100,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2100,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2120,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2120,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2120,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2120,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2120,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2120,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2140,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2140,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2140,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2140,23,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2140,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2160,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2160,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2160,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2160,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2160,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2160,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (1,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (13,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (13,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (14,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (14,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (19,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (19,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (19,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (19,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (19,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (19,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (20,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (20,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (20,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (20,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (20,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (20,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (21,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (21,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (21,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (21,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (21,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (21,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (21,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (22,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (22,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (22,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (22,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (22,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (22,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (22,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (23,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (23,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (23,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (23,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (23,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (23,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (23,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (24,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (24,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (24,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (24,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (24,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (24,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (32,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (32,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (32,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (32,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (32,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (38,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (38,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (38,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (38,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (38,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (39,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (39,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (39,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (39,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (39,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (40,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (40,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (40,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (40,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (40,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (41,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (41,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (41,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (41,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (41,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (43,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (43,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (44,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (44,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (45,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (45,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (49,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (49,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (49,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (49,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (49,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (50,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (50,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (50,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (50,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (50,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (51,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (51,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (51,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (51,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (51,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (52,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (52,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (52,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (52,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (52,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (53,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (53,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (53,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (53,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (53,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (54,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (54,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (54,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (54,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (54,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (55,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (55,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (55,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (55,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (55,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (60,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (60,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (60,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (60,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (60,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (61,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (61,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (61,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (61,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (61,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (62,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (62,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (62,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (62,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (62,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (62,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (80,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (80,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (80,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (81,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (81,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (81,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (82,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (82,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (82,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (100,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (100,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (100,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (100,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (101,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (101,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (101,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (101,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (102,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (102,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (102,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (102,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (103,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (103,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (103,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (103,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (104,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (104,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (104,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (104,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (120,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (121,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (122,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (122,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (122,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (122,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (122,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (122,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (123,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (123,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (123,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (123,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (123,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (145,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (145,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (145,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (145,23,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (145,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (145,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (146,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (146,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (146,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (146,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (146,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (220,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (220,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (220,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (220,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (220,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (221,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (221,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (221,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (221,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (221,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (222,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (222,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (222,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (222,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (222,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (260,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (260,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (260,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (260,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (260,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (261,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (261,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (261,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (261,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (261,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (261,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (262,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (262,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (262,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (262,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (262,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (263,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (263,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (263,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (263,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (263,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (263,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (280,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (280,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (280,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (280,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (280,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (280,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (300,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (300,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (300,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (300,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (300,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (301,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (301,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (301,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (301,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (301,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (341,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (341,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (341,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (341,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (342,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (342,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (342,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (342,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (342,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (342,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2200,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2200,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2200,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2200,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2200,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2200,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2220,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2220,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2220,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2220,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2220,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2220,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2221,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2221,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2221,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2221,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2221,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2260,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2260,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2260,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2260,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2260,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2260,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2300,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2300,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2300,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2300,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2300,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2340,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2340,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2340,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2340,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2340,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2340,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2400,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2400,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2400,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2400,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2400,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2460,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2460,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2460,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2460,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2460,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2460,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2500,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2500,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2500,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2500,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2500,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2501,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2501,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2501,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2501,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2501,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2502,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2502,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2502,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2502,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2502,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2502,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2503,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2503,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2503,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2503,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2503,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2504,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2504,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2504,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2504,23,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2504,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2505,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2505,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2505,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2540,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2540,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2540,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2541,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2541,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2541,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2541,23,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2541,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2560,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2560,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2560,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2560,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2560,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2560,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2561,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2561,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2561,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2561,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2561,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2561,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2580,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2580,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2580,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2580,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2580,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2620,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2620,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2620,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2620,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2620,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2640,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2640,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2640,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2640,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2640,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2640,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2660,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2660,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2660,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2660,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2660,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2660,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2680,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2680,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2680,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2680,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2680,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2680,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2700,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2700,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2700,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2700,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2700,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2700,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2701,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2701,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2701,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2701,23,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2701,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2701,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2701,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2701,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2702,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2702,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2702,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2702,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2702,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2702,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2702,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2703,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2703,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2703,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2703,23,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2703,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2703,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2703,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2703,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2720,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2720,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2720,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2720,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2720,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2720,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2780,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2780,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2840,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2840,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2840,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2840,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2840,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2840,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2841,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2841,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2841,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2841,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2841,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2841,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2842,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2842,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2842,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2842,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2842,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2842,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2860,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2860,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2860,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2860,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2860,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2900,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2900,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2900,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2900,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2920,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2920,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2920,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2920,23,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2920,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2941,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2941,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2941,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2960,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2960,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2960,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2980,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2980,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2980,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2980,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2980,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2980,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2981,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2981,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2981,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2981,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2981,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2981,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2983,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2983,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2983,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2983,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2983,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2983,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2984,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2984,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2984,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2984,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2984,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2984,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2985,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2985,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2985,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2985,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2985,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2985,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2987,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2987,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2987,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2987,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2987,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2987,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2988,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2988,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2988,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2988,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2988,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2988,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2989,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2989,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2989,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2989,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2989,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (2989,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3000,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3000,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3000,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3000,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3000,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3000,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3020,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3020,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3020,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3020,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3020,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3020,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3060,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3060,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3060,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3060,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3060,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3060,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3080,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3080,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3081,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3081,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3140,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3140,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3141,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3141,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3160,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3160,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3160,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3161,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3161,22,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3161,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3161,23,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3161,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3180,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3180,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3180,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3180,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3180,81,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3200,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3200,24,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3220,22,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3220,23,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3220,24,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3220,26,1);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3220,26,2);
insert into attributes_authz (attr_id,role_id,action_type_id) values (3220,81,1);
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,1,'eduroam_radius',null,10,2,true,'./eduroam_radius',timestamp '2011-05-30 22:51:00.2','PERUNV3',timestamp '2011-05-30 22:51:00.2','PERUNV3');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,161,'passwd_nfs4',null,10,2,true,'./passwd_nfs4',timestamp '2012-01-10 12:47:59.3','PERUNV3',timestamp '2012-01-10 12:47:59.3','PERUNV3');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,162,'group_nfs4',null,10,2,true,'./group_nfs4',timestamp '2012-01-10 12:48:08.3','PERUNV3',timestamp '2012-01-10 12:48:08.3','PERUNV3');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,163,'passwd_scp',null,10,2,true,'./passwd_scp',timestamp '2012-01-10 12:51:04.3','PERUNV3',timestamp '2012-01-10 12:51:04.3','PERUNV3');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,302,'afs',null,10,2,true,'./afs',timestamp '2012-08-17 13:10:44.6','michalp@META',timestamp '2012-08-17 13:10:44.6','michalp@META');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,422,'pbsmon_users',null,10,2,true,'./pbsmon_users',timestamp '2012-11-15 09:35:35.5','michalp@META',timestamp '2012-11-15 09:35:35.5','michalp@META');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3354,3354,762,'redmine-MU',null,10,2,true,'./redmine',timestamp '2014-05-23 13:03:36.6','<EMAIL>',timestamp '2014-05-23 13:03:36.6','<EMAIL>');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3255,3255,561,'docdb',null,10,2,true,'./docdb',timestamp '2013-05-22 14:53:23.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-05-22 14:53:23.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3197,3197,581,'mailman_owners',null,10,2,true,'./mailman_owners',timestamp '2013-05-23 10:23:50.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988',timestamp '2013-05-23 10:23:50.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3354,3354,661,'mailman',null,10,2,true,'./mailman',timestamp '2013-11-15 21:40:26.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700',timestamp '2013-11-15 21:40:26.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3255,3255,822,'_require_login_einfra',null,10,2,true,'./_require_login_einfra',timestamp '2014-09-11 11:38:15.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-09-11 11:38:15.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,81,'k5login_root',null,10,2,true,'./k5login_root',timestamp '2011-12-07 12:13:48.4','PERUNV3',timestamp '2011-12-07 12:13:48.4','PERUNV3');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,421,'mailman_meta',null,10,2,true,'./mailman_meta',timestamp '2012-11-15 08:43:05.5','michalp@META',timestamp '2012-11-15 08:43:05.5','michalp@META');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,401,'sshkeys',null,10,2,true,'./sshkeys',timestamp '2012-10-30 13:19:00.3','michalp@META',timestamp '2012-10-30 13:19:00.3','michalp@META');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,402,'sshkeys_root',null,10,2,true,'./sshkeys_root',timestamp '2012-10-30 13:28:30.3','michalp@META',timestamp '2012-10-30 13:28:30.3','michalp@META');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3255,3255,601,'apache_basic_auth',null,10,2,true,'./apache_basic_auth',timestamp '2013-06-18 10:58:06.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-06-18 10:58:06.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3255,3255,641,'owncloud_vo_mapping',null,10,2,true,'./owncloud_vo_mapping',timestamp '2013-07-09 11:33:21.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-07-09 11:33:21.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3354,3354,701,'cloudidp',null,10,2,true,'./cloudidp',timestamp '2013-12-20 10:14:46.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700',timestamp '2013-12-20 10:14:46.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (6701,6701,741,'fs_project',null,10,2,true,'./fs_project',timestamp '2014-03-12 09:35:39.4','stava@META',timestamp '2014-03-12 09:35:39.4','stava@META');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (6701,6701,841,'samba_du',null,10,2,true,'./samba_du',timestamp '2014-10-08 15:51:25.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-10-08 15:51:25.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,101,'fs_scratch',null,10,2,true,'./fs_scratch',timestamp '2011-12-16 15:20:31.6','PERUNV3',timestamp '2011-12-16 15:20:31.6','PERUNV3');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,141,'pbs_phys_cluster',null,10,2,true,'./pbs_phys_cluster',timestamp '2011-12-16 20:26:10.6','PERUNV3',timestamp '2011-12-16 20:26:10.6','PERUNV3');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3255,3255,462,'fedcloud_export',null,10,2,true,'./fedcloud_export',timestamp '2013-03-07 19:02:36.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-03-07 19:02:36.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,281,'voms',null,10,2,true,'./voms',timestamp '2012-05-28 17:48:38.2','<EMAIL>',timestamp '2012-05-28 17:48:38.2','<EMAIL>');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,341,'pbsmon_json',null,10,2,true,'./pbsmon_json',timestamp '2012-09-03 16:31:26.2','glory@META',timestamp '2012-09-03 16:31:26.2','glory@META');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,361,'pkinit',null,10,2,true,'./pkinit',timestamp '2012-10-19 19:43:35.6','michalp@META',timestamp '2012-10-19 19:43:35.6','michalp@META');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3255,3255,481,'pbs_publication_fairshare',null,10,2,true,'./pbs_publication_fairshare',timestamp '2013-04-08 17:17:53.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-04-08 17:17:53.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3255,3255,721,'afs_group',null,10,2,true,'./afs_group',timestamp '2014-03-11 23:42:00.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-03-11 23:42:00.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,21,'passwd',null,10,2,true,'./passwd',timestamp '2011-09-23 13:35:51.6','PERUNV3',timestamp '2011-09-23 13:35:51.6','PERUNV3');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,61,'pbs_pre',null,10,2,true,'./pbs_pre',timestamp '2011-11-30 11:10:35.4','PERUNV3',timestamp '2011-11-30 11:10:35.4','PERUNV3');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,121,'fs_home',null,10,2,true,'./fs_home',timestamp '2011-12-16 19:56:22.6','PERUNV3',timestamp '2011-12-16 19:56:22.6','PERUNV3');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,261,'users_export',null,10,2,true,'./users_export',timestamp '2012-04-24 14:56:04.3','michalp@META',timestamp '2012-04-24 14:56:04.3','michalp@META');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,321,'apache_ssl',null,10,2,true,'./apache_ssl',timestamp '2012-08-24 15:29:44.6','michalp@META',timestamp '2012-08-24 15:29:44.6','michalp@META');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3255,3255,781,'appDB',null,10,2,true,'./appDB',timestamp '2014-06-30 14:41:27.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-06-30 14:41:27.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3255,3255,801,'k5login_generic',null,10,2,true,'./k5login_generic',timestamp '2014-07-15 14:34:49.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-07-15 14:34:49.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,41,'k5login',null,10,2,true,'./k5login',timestamp '2011-11-08 11:34:50.3','PERUNV3',timestamp '2011-11-08 11:34:50.3','PERUNV3');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,42,'group',null,10,2,true,'./group',timestamp '2011-11-08 11:34:54.3','PERUNV3',timestamp '2011-11-08 11:34:54.3','PERUNV3');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,43,'mailaliases',null,10,2,true,'./mailaliases',timestamp '2011-11-08 11:34:59.3','PERUNV3',timestamp '2011-11-08 11:34:59.3','PERUNV3');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,221,'fs_scratch_local',null,10,2,true,'./fs_scratch_local',timestamp '2012-03-30 09:34:08.6','michalp@META',timestamp '2012-03-30 09:34:08.6','michalp@META');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3255,3255,541,'du_users_export',null,10,2,true,'./du_users_export',timestamp '2013-05-16 15:05:16.5','glory@META',timestamp '2013-05-16 15:05:16.5','glory@META');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (null,null,381,'flexlm_iptables',null,10,2,true,'./flexlm_iptables',timestamp '2012-10-22 16:17:03.2','glory@META',timestamp '2012-10-22 16:17:03.2','glory@META');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3354,3354,501,'openvpn',null,10,2,true,'./openvpn',timestamp '2013-04-10 16:32:46.4','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-04-10 16:32:46.4','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3354,3354,861,'labkey',null,10,2,true,'./labkey',timestamp '2014-11-24 12:38:08.2','/C=CZ/O=Masarykova univerzita/CN=Michal Prochazka/unstructuredName=39700',timestamp '2014-11-24 12:38:08.2','/C=CZ/O=Masarykova univerzita/CN=Michal Prochazka/unstructuredName=39700');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3354,3354,621,'gridmap',null,10,2,true,'./gridmap',timestamp '2013-06-20 10:43:18.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-06-20 10:43:18.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into services (created_by_uid,modified_by_uid,id,name,description,delay,recurrence,enabled,script,created_at,created_by,modified_at,modified_by) values (3255,3255,681,'metacloud_export',null,10,2,true,'./metacloud_export',timestamp '2013-12-10 18:12:16.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-12-10 18:12:16.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,582,timestamp '2013-10-09 15:07:15.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-09 15:07:15.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,42,341,timestamp '2011-12-06 13:35:06.3','PERUNV3',timestamp '2011-12-06 13:35:06.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,361,timestamp '2011-12-07 10:47:41.4','PERUNV3',timestamp '2011-12-07 10:47:41.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,42,260,timestamp '2011-12-06 13:36:04.3','PERUNV3',timestamp '2011-12-06 13:36:04.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,42,261,timestamp '2011-12-06 13:42:32.3','PERUNV3',timestamp '2011-12-06 13:42:32.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,360,timestamp '2011-12-07 10:47:33.4','PERUNV3',timestamp '2011-12-07 10:47:33.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,61,1080,timestamp '2012-03-23 11:11:30.6','glory@META',timestamp '2012-03-23 11:11:30.6','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,781,2300,timestamp '2014-06-30 14:42:27.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-06-30 14:42:27.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,61,880,timestamp '2012-03-23 11:13:12.6','glory@META',timestamp '2012-03-23 11:13:12.6','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,161,262,timestamp '2012-01-10 12:55:08.3','PERUNV3',timestamp '2012-01-10 12:55:08.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,161,342,timestamp '2012-01-10 12:55:10.3','PERUNV3',timestamp '2012-01-10 12:55:10.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,161,360,timestamp '2012-01-10 12:55:46.3','PERUNV3',timestamp '2012-01-10 12:55:46.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,161,361,timestamp '2012-01-10 12:55:46.3','PERUNV3',timestamp '2012-01-10 12:55:46.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,21,2340,timestamp '2013-08-07 11:05:16.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-08-07 11:05:16.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,481,262,timestamp '2013-04-16 13:00:25.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-04-16 13:00:25.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,162,341,timestamp '2012-01-10 12:59:11.3','PERUNV3',timestamp '2012-01-10 12:59:11.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,481,261,timestamp '2013-04-16 13:00:43.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-04-16 13:00:43.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,321,2400,timestamp '2013-07-11 09:48:37.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-07-11 09:48:37.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,421,1361,timestamp '2013-06-25 14:46:33.3','glory@META',timestamp '2013-06-25 14:46:33.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,261,timestamp '2012-01-10 13:01:45.3','PERUNV3',timestamp '2012-01-10 13:01:45.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,121,2340,timestamp '2013-08-02 17:11:08.6','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-08-02 17:11:08.6','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,400,timestamp '2012-09-12 14:58:47.4','michalp@META',timestamp '2012-09-12 14:58:47.4','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,1606,timestamp '2012-10-05 13:04:28.6','makub@META',timestamp '2012-10-05 13:04:28.6','makub@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,361,800,timestamp '2012-10-19 19:44:36.6','michalp@META',timestamp '2012-10-19 19:44:36.6','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,422,1363,timestamp '2012-11-15 09:58:01.5','michalp@META',timestamp '2012-11-15 09:58:01.5','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,101,280,timestamp '2013-09-02 09:43:22.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-09-02 09:43:22.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,422,261,timestamp '2012-11-15 10:10:50.5','michalp@META',timestamp '2012-11-15 10:10:50.5','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,421,1840,timestamp '2012-11-16 12:59:38.6','glory@META',timestamp '2012-11-16 12:59:38.6','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,421,1860,timestamp '2012-11-20 08:57:16.3','makub@META',timestamp '2012-11-20 08:57:16.3','makub@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,221,2000,timestamp '2013-01-17 15:18:02.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-01-17 15:18:02.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,163,24,timestamp '2013-01-10 14:20:37.5','glory@META',timestamp '2013-01-10 14:20:37.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,21,1720,timestamp '2013-02-06 12:37:32.4','glory@META',timestamp '2013-02-06 12:37:32.4','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,1243,timestamp '2013-05-16 15:09:12.5','glory@META',timestamp '2013-05-16 15:09:12.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,221,2340,timestamp '2013-09-02 09:44:38.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-09-02 09:44:38.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3197,3197,581,880,timestamp '2013-05-23 10:27:06.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988',timestamp '2013-05-23 10:27:06.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,601,260,timestamp '2013-06-18 10:58:54.3','glory@META',timestamp '2013-06-18 10:58:54.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,161,280,timestamp '2013-09-02 09:45:22.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-09-02 09:45:22.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3197,3197,561,81,timestamp '2013-05-24 11:21:49.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=<NAME> 3988',timestamp '2013-05-24 11:21:49.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,422,1361,timestamp '2013-06-25 14:46:36.3','glory@META',timestamp '2013-06-25 14:46:36.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,581,1361,timestamp '2013-06-25 14:46:35.3','glory@META',timestamp '2013-06-25 14:46:35.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,281,1361,timestamp '2013-06-25 14:46:38.3','glory@META',timestamp '2013-06-25 14:46:38.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,163,2340,timestamp '2013-09-02 09:45:46.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-09-02 09:45:46.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,280,timestamp '2013-10-09 15:07:15.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-09 15:07:15.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,341,timestamp '2013-10-09 15:07:15.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-09 15:07:15.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,38,timestamp '2013-10-11 11:59:49.6','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-11 11:59:49.6','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,681,580,timestamp '2013-12-10 18:13:00.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-12-10 18:13:00.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,701,51,timestamp '2013-12-20 11:23:18.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700',timestamp '2013-12-20 11:23:18.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,741,2703,timestamp '2014-03-12 09:39:57.4','stava@META',timestamp '2014-03-12 09:39:57.4','stava@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,741,582,timestamp '2014-03-12 09:39:57.4','stava@META',timestamp '2014-03-12 09:39:57.4','stava@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,741,2701,timestamp '2014-03-12 09:39:57.4','stava@META',timestamp '2014-03-12 09:39:57.4','stava@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,741,2700,timestamp '2014-03-12 09:39:57.4','stava@META',timestamp '2014-03-12 09:39:57.4','stava@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,762,50,timestamp '2014-05-23 13:04:02.6','<EMAIL>',timestamp '2014-05-23 13:04:02.6','<EMAIL>');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,762,1361,timestamp '2014-05-23 13:04:30.6','<EMAIL>',timestamp '2014-05-23 13:04:30.6','<EMAIL>');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,781,1361,timestamp '2014-06-30 14:42:11.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-06-30 14:42:11.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,781,2400,timestamp '2014-06-30 14:42:20.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-06-30 14:42:20.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,801,880,timestamp '2014-07-15 14:35:39.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-07-15 14:35:39.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,801,2860,timestamp '2014-07-15 14:39:01.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-07-15 14:39:01.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,801,1941,timestamp '2014-08-12 13:17:42.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-08-12 13:17:42.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,43,261,timestamp '2011-12-07 11:17:51.4','PERUNV3',timestamp '2011-12-07 11:17:51.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,50,timestamp '2011-11-09 11:23:22.4','PERUNV3',timestamp '2011-11-09 11:23:22.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,51,timestamp '2011-11-09 11:23:34.4','PERUNV3',timestamp '2011-11-09 11:23:34.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,260,timestamp '2011-12-06 19:59:42.3','PERUNV3',timestamp '2011-12-06 19:59:42.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,500,timestamp '2011-12-19 22:12:27.2','PERUNV3',timestamp '2011-12-19 22:12:27.2','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,41,260,timestamp '2011-12-07 11:16:31.4','PERUNV3',timestamp '2011-12-07 11:16:31.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,342,timestamp '2011-12-06 19:53:48.3','PERUNV3',timestamp '2011-12-06 19:53:48.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,262,timestamp '2011-12-06 19:59:50.3','PERUNV3',timestamp '2011-12-06 19:59:50.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,41,261,timestamp '2011-12-07 11:16:41.4','PERUNV3',timestamp '2011-12-07 11:16:41.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,43,260,timestamp '2011-12-07 11:17:49.4','PERUNV3',timestamp '2011-12-07 11:17:49.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,880,timestamp '2012-07-18 12:29:59.4','glory@META',timestamp '2012-07-18 12:29:59.4','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,761,timestamp '2012-02-08 10:28:56.4','PERUNV3',timestamp '2012-02-08 10:28:56.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,101,300,timestamp '2011-12-20 15:08:44.3','PERUNV3',timestamp '2011-12-20 15:08:44.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,101,260,timestamp '2011-12-20 15:10:47.3','PERUNV3',timestamp '2011-12-20 15:10:47.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,163,23,timestamp '2013-02-27 18:22:16.4','glory@META',timestamp '2013-02-27 18:22:16.4','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,262,timestamp '2011-12-21 15:33:50.4','PERUNV3',timestamp '2011-12-21 15:33:50.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,261,timestamp '2011-12-21 14:52:37.4','PERUNV3',timestamp '2011-12-21 14:52:37.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,520,timestamp '2011-12-21 14:56:06.4','PERUNV3',timestamp '2011-12-21 14:56:06.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,521,timestamp '2011-12-21 14:56:09.4','PERUNV3',timestamp '2011-12-21 14:56:09.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,263,timestamp '2011-12-21 15:33:50.4','PERUNV3',timestamp '2011-12-21 15:33:50.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,360,timestamp '2011-12-21 15:33:50.4','PERUNV3',timestamp '2011-12-21 15:33:50.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,361,timestamp '2011-12-21 15:33:51.4','PERUNV3',timestamp '2011-12-21 15:33:51.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,760,timestamp '2012-02-08 10:28:54.4','PERUNV3',timestamp '2012-02-08 10:28:54.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,161,2340,timestamp '2013-09-02 09:45:22.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-09-02 09:45:22.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,163,51,timestamp '2012-01-10 13:19:29.3','PERUNV3',timestamp '2012-01-10 13:19:29.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,163,260,timestamp '2012-01-10 13:19:29.3','PERUNV3',timestamp '2012-01-10 13:19:29.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,163,261,timestamp '2012-01-10 13:19:30.3','PERUNV3',timestamp '2012-01-10 13:19:30.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,161,800,timestamp '2012-02-15 15:00:47.4','glory@META',timestamp '2012-02-15 15:00:47.4','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,162,800,timestamp '2012-02-15 15:00:50.4','glory@META',timestamp '2012-02-15 15:00:50.4','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,141,1080,timestamp '2012-03-23 11:13:12.6','glory@META',timestamp '2012-03-23 11:13:12.6','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,221,262,timestamp '2012-03-30 09:39:28.6','michalp@META',timestamp '2012-03-30 09:39:28.6','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,401,260,timestamp '2012-10-30 13:24:47.3','michalp@META',timestamp '2012-10-30 13:24:47.3','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,1660,timestamp '2012-10-17 13:06:18.4','makub@META',timestamp '2012-10-17 13:06:18.4','makub@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,221,342,timestamp '2012-03-30 09:39:30.6','michalp@META',timestamp '2012-03-30 09:39:30.6','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,263,timestamp '2013-05-16 15:08:21.5','glory@META',timestamp '2013-05-16 15:08:21.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,221,260,timestamp '2012-03-30 09:39:30.6','michalp@META',timestamp '2012-03-30 09:39:30.6','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,221,301,timestamp '2012-03-30 09:39:31.6','michalp@META',timestamp '2012-03-30 09:39:31.6','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,221,300,timestamp '2012-03-30 09:39:31.6','michalp@META',timestamp '2012-03-30 09:39:31.6','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,1424,timestamp '2012-09-03 16:33:52.2','glory@META',timestamp '2012-09-03 16:33:52.2','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,221,263,timestamp '2012-03-30 09:39:33.6','michalp@META',timestamp '2012-03-30 09:39:33.6','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,221,581,timestamp '2012-03-30 09:39:33.6','michalp@META',timestamp '2012-03-30 09:39:33.6','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,361,2400,timestamp '2013-09-06 10:37:08.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-09-06 10:37:08.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,221,580,timestamp '2012-03-30 09:39:34.6','michalp@META',timestamp '2012-03-30 09:39:34.6','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,1481,timestamp '2012-09-13 10:06:22.5','makub@META',timestamp '2012-09-13 10:06:22.5','makub@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,163,280,timestamp '2013-09-02 09:45:46.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-09-02 09:45:46.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,401,1520,timestamp '2012-10-30 13:19:25.3','michalp@META',timestamp '2012-10-30 13:19:25.3','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,402,1520,timestamp '2012-10-30 13:28:46.3','michalp@META',timestamp '2012-10-30 13:28:46.3','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,121,timestamp '2012-09-03 16:33:55.2','glory@META',timestamp '2012-09-03 16:33:55.2','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,1425,timestamp '2012-09-03 16:33:56.2','glory@META',timestamp '2012-09-03 16:33:56.2','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,101,880,timestamp '2012-11-08 00:18:42.5','glory@META',timestamp '2012-11-08 00:18:42.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,281,2400,timestamp '2013-07-09 13:47:42.3','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-07-09 13:47:42.3','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,81,1440,timestamp '2012-09-06 13:01:00.5','michalp@META',timestamp '2012-09-06 13:01:00.5','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,421,1140,timestamp '2012-11-15 08:43:46.5','michalp@META',timestamp '2012-11-15 08:43:46.5','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,421,880,timestamp '2012-11-15 08:56:31.5','michalp@META',timestamp '2012-11-15 08:56:31.5','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,421,1365,timestamp '2012-11-15 09:24:02.5','michalp@META',timestamp '2012-11-15 09:24:02.5','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,422,1140,timestamp '2012-11-15 09:58:01.5','michalp@META',timestamp '2012-11-15 09:58:01.5','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,422,1800,timestamp '2012-11-15 10:09:16.5','michalp@META',timestamp '2012-11-15 10:09:16.5','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,422,1300,timestamp '2012-12-03 11:04:35.2','<EMAIL>',timestamp '2012-12-03 11:04:35.2','<EMAIL>');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,422,860,timestamp '2012-12-03 11:04:35.2','<EMAIL>',timestamp '2012-12-03 11:04:35.2','<EMAIL>');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,42,80,timestamp '2012-12-19 15:03:35.4','glory@META',timestamp '2012-12-19 15:03:35.4','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,421,860,timestamp '2012-12-21 11:07:32.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988',timestamp '2012-12-21 11:07:32.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,162,1161,timestamp '2013-01-15 13:49:49.3','glory@META',timestamp '2013-01-15 13:49:49.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,162,1162,timestamp '2013-01-15 13:49:52.3','glory@META',timestamp '2013-01-15 13:49:52.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,163,20,timestamp '2013-02-27 18:22:13.4','glory@META',timestamp '2013-02-27 18:22:13.4','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,360,timestamp '2013-05-16 15:08:30.5','glory@META',timestamp '2013-05-16 15:08:30.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,1241,timestamp '2013-05-16 15:09:17.5','glory@META',timestamp '2013-05-16 15:09:17.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,1244,timestamp '2013-05-16 15:09:27.5','glory@META',timestamp '2013-05-16 15:09:27.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,1242,timestamp '2013-05-16 15:09:35.5','glory@META',timestamp '2013-05-16 15:09:35.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,481,263,timestamp '2013-04-16 13:00:25.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-04-16 13:00:25.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,1361,timestamp '2013-05-16 15:06:22.5','glory@META',timestamp '2013-05-16 15:06:22.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,520,timestamp '2013-05-16 15:09:42.5','glory@META',timestamp '2013-05-16 15:09:42.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3197,3197,581,1840,timestamp '2013-05-23 10:27:29.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988',timestamp '2013-05-23 10:27:29.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3197,3197,581,1860,timestamp '2013-05-23 10:27:43.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988',timestamp '2013-05-23 10:27:43.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,641,262,timestamp '2013-07-09 11:34:01.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-07-09 11:34:01.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,321,1380,timestamp '2013-09-23 22:50:43.2','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-09-23 22:50:43.2','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,661,1361,timestamp '2013-11-15 22:04:04.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700',timestamp '2013-11-15 22:04:04.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,661,2520,timestamp '2013-11-15 22:04:55.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700',timestamp '2013-11-15 22:04:55.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,681,880,timestamp '2013-12-16 16:48:11.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-12-16 16:48:11.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,1,timestamp '2014-01-23 16:04:57.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-01-23 16:04:57.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,101,262,timestamp '2011-12-20 15:06:04.3','PERUNV3',timestamp '2011-12-20 15:06:04.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,24,timestamp '2011-11-10 10:00:46.5','PERUNV3',timestamp '2011-11-10 10:00:46.5','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,22,timestamp '2011-11-10 10:01:13.5','PERUNV3',timestamp '2011-11-10 10:01:13.5','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,101,460,timestamp '2011-12-16 15:22:48.6','PERUNV3',timestamp '2011-12-16 15:22:48.6','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,163,622,timestamp '2012-01-12 14:29:33.5','PERUNV3',timestamp '2012-01-12 14:29:33.5','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,101,263,timestamp '2011-12-20 15:08:42.3','PERUNV3',timestamp '2011-12-20 15:08:42.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,462,361,timestamp '2013-03-07 19:02:59.5','glory@META',timestamp '2013-03-07 19:02:59.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,101,301,timestamp '2011-12-20 15:08:43.3','PERUNV3',timestamp '2011-12-20 15:08:43.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,43,1361,timestamp '2013-06-25 14:46:31.3','glory@META',timestamp '2013-06-25 14:46:31.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,163,360,timestamp '2012-01-10 13:19:31.3','PERUNV3',timestamp '2012-01-10 13:19:31.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,163,601,timestamp '2012-01-12 14:29:31.5','PERUNV3',timestamp '2012-01-12 14:29:31.5','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,263,timestamp '2012-01-17 11:15:45.3','PERUNV3',timestamp '2012-01-17 11:15:45.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,601,1380,timestamp '2013-06-18 11:31:54.3','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-06-18 11:31:54.3','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,1603,timestamp '2012-10-05 13:04:28.6','makub@META',timestamp '2012-10-05 13:04:28.6','makub@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,61,1,timestamp '2012-04-10 14:02:34.3','glory@META',timestamp '2012-04-10 14:02:34.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,141,1,timestamp '2012-04-11 08:25:09.4','glory@META',timestamp '2012-04-11 08:25:09.4','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,481,49,timestamp '2013-04-09 16:19:53.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-04-09 16:19:53.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,481,260,timestamp '2013-04-09 16:19:53.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-04-09 16:19:53.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,146,timestamp '2013-05-16 15:06:02.5','glory@META',timestamp '2013-05-16 15:06:02.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3197,3197,561,261,timestamp '2013-05-23 15:52:27.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988',timestamp '2013-05-23 15:52:27.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,601,261,timestamp '2013-06-20 14:01:00.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-06-20 14:01:00.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,561,1361,timestamp '2013-06-25 14:46:27.3','glory@META',timestamp '2013-06-25 14:46:27.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,462,1361,timestamp '2013-06-25 14:46:29.3','glory@META',timestamp '2013-06-25 14:46:29.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,621,1941,timestamp '2013-06-26 13:52:28.4','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-06-26 13:52:28.4','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,581,timestamp '2013-01-24 13:42:46.5','glory@META',timestamp '2013-01-24 13:42:46.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,121,81,timestamp '2013-09-16 16:11:18.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-09-16 16:11:18.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,2380,timestamp '2013-06-27 10:03:25.5','glory@META',timestamp '2013-06-27 10:03:25.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,163,1120,timestamp '2012-04-17 15:19:40.3','glory@META',timestamp '2012-04-17 15:19:40.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,261,1140,timestamp '2012-04-24 15:01:02.3','michalp@META',timestamp '2012-04-24 15:01:02.3','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,261,146,timestamp '2012-04-24 15:01:03.3','michalp@META',timestamp '2012-04-24 15:01:03.3','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,121,2160,timestamp '2013-02-27 13:12:05.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-02-27 13:12:05.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,1200,timestamp '2012-05-13 17:23:08.1','glory@META',timestamp '2012-05-13 17:23:08.1','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,1241,timestamp '2012-05-22 10:45:50.3','zora@META',timestamp '2012-05-22 10:45:50.3','zora@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,1242,timestamp '2012-05-22 10:45:51.3','zora@META',timestamp '2012-05-22 10:45:51.3','zora@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,1243,timestamp '2012-05-22 10:45:51.3','zora@META',timestamp '2012-05-22 10:45:51.3','zora@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,1244,timestamp '2012-05-22 10:45:52.3','zora@META',timestamp '2012-05-22 10:45:52.3','zora@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,281,45,timestamp '2012-10-30 15:27:56.3','michalp@META',timestamp '2012-10-30 15:27:56.3','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,101,2340,timestamp '2013-09-02 09:43:22.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-09-02 09:43:22.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,422,260,timestamp '2012-11-15 09:58:01.5','michalp@META',timestamp '2012-11-15 09:58:01.5','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,81,2040,timestamp '2013-01-29 15:00:38.3','glory@META',timestamp '2013-01-29 15:00:38.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,2480,timestamp '2013-10-14 16:08:56.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-14 16:08:56.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,42,2340,timestamp '2013-07-04 10:18:38.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-07-04 10:18:38.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,42,280,timestamp '2013-07-04 10:18:39.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-07-04 10:18:39.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,162,280,timestamp '2013-07-04 10:19:32.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-07-04 10:19:32.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,462,1720,timestamp '2013-03-07 19:03:02.5','glory@META',timestamp '2013-03-07 19:03:02.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,462,1520,timestamp '2013-03-07 19:03:04.5','glory@META',timestamp '2013-03-07 19:03:04.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,162,2340,timestamp '2013-07-04 10:19:49.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-07-04 10:19:49.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,462,2400,timestamp '2013-09-06 10:36:22.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-09-06 10:36:22.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,641,1720,timestamp '2013-07-09 11:35:42.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-07-09 11:35:42.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,1720,timestamp '2013-10-09 14:44:16.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-09 14:44:16.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,121,582,timestamp '2013-09-16 15:19:06.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-09-16 15:19:06.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,81,timestamp '2013-10-09 15:17:50.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-09 15:17:50.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,49,timestamp '2013-10-14 16:09:05.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-14 16:09:05.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,681,2220,timestamp '2013-12-10 18:13:13.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-12-10 18:13:13.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,681,261,timestamp '2013-12-10 18:13:49.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-12-10 18:13:49.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,681,2400,timestamp '2013-12-10 18:15:23.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-12-10 18:15:23.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,681,1140,timestamp '2013-12-10 18:15:42.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-12-10 18:15:42.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,681,1361,timestamp '2013-12-10 18:15:53.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-12-10 18:15:53.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,701,1140,timestamp '2013-12-20 11:23:18.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700',timestamp '2013-12-20 11:23:18.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,721,1980,timestamp '2014-03-12 00:00:20.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-03-12 00:00:20.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,741,261,timestamp '2014-03-12 09:39:57.4','stava@META',timestamp '2014-03-12 09:39:57.4','stava@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,741,341,timestamp '2014-03-12 09:39:57.4','stava@META',timestamp '2014-03-12 09:39:57.4','stava@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,721,261,timestamp '2014-03-12 14:44:19.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-03-12 14:44:19.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,14,timestamp '2011-10-13 11:13:21.5','PERUNV3',timestamp '2011-10-13 11:13:21.5','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,101,342,timestamp '2011-12-16 16:14:50.6','PERUNV3',timestamp '2011-12-16 16:14:50.6','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,260,timestamp '2011-12-16 19:58:45.6','PERUNV3',timestamp '2011-12-16 19:58:45.6','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,13,timestamp '2011-10-13 11:18:38.5','PERUNV3',timestamp '2011-10-13 11:18:38.5','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,580,timestamp '2013-10-09 15:07:15.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-09 15:07:15.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,23,timestamp '2011-10-13 11:22:25.5','PERUNV3',timestamp '2011-10-13 11:22:25.5','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,21,timestamp '2011-10-13 11:22:34.5','PERUNV3',timestamp '2011-10-13 11:22:34.5','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,20,timestamp '2011-10-13 11:22:57.5','PERUNV3',timestamp '2011-10-13 11:22:57.5','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,19,timestamp '2011-10-13 11:23:09.5','PERUNV3',timestamp '2011-10-13 11:23:09.5','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,61,260,timestamp '2011-12-01 14:55:49.5','PERUNV3',timestamp '2011-12-01 14:55:49.5','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3197,3197,561,260,timestamp '2013-05-23 15:52:27.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988',timestamp '2013-05-23 15:52:27.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,163,262,timestamp '2012-01-10 13:19:27.3','PERUNV3',timestamp '2012-01-10 13:19:27.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,1580,timestamp '2012-10-04 13:00:21.5','makub@META',timestamp '2012-10-04 13:00:21.5','makub@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,1607,timestamp '2012-10-05 13:04:28.6','makub@META',timestamp '2012-10-05 13:04:28.6','makub@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,1608,timestamp '2012-10-05 13:04:28.6','makub@META',timestamp '2012-10-05 13:04:28.6','makub@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,1,1060,timestamp '2012-03-21 09:23:28.4','michalp@META',timestamp '2012-03-21 09:23:28.4','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,163,342,timestamp '2012-01-10 13:19:28.3','PERUNV3',timestamp '2012-01-10 13:19:28.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,163,50,timestamp '2012-01-10 13:19:28.3','PERUNV3',timestamp '2012-01-10 13:19:28.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,163,361,timestamp '2012-01-10 13:19:32.3','PERUNV3',timestamp '2012-01-10 13:19:32.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,1601,timestamp '2012-10-05 13:04:28.6','makub@META',timestamp '2012-10-05 13:04:28.6','makub@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,1602,timestamp '2012-10-05 13:04:28.6','makub@META',timestamp '2012-10-05 13:04:28.6','makub@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,641,360,timestamp '2013-07-09 11:34:25.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-07-09 11:34:25.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,162,1160,timestamp '2013-01-15 13:48:59.3','glory@META',timestamp '2013-01-15 13:48:59.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,281,1720,timestamp '2012-10-30 16:36:26.3','glory@META',timestamp '2012-10-30 16:36:26.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,261,1363,timestamp '2013-01-24 23:22:36.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-01-24 23:22:36.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,261,880,timestamp '2013-01-24 23:51:39.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-01-24 23:51:39.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,261,1720,timestamp '2013-01-25 00:07:11.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-01-25 00:07:11.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,481,1140,timestamp '2013-04-12 13:05:57.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-04-12 13:05:57.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3197,3197,561,1140,timestamp '2013-05-23 15:51:42.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988',timestamp '2013-05-23 15:51:42.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3197,3197,561,82,timestamp '2013-05-24 11:21:49.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988',timestamp '2013-05-24 11:21:49.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,121,280,timestamp '2013-08-02 17:11:09.6','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-08-02 17:11:09.6','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,641,361,timestamp '2013-07-09 11:34:14.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-07-09 11:34:14.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,21,280,timestamp '2013-08-07 11:05:16.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-08-07 11:05:16.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,121,1720,timestamp '2013-09-16 16:53:33.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-09-16 16:53:33.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,2340,timestamp '2013-10-09 15:07:15.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-09 15:07:15.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,581,timestamp '2013-10-09 15:07:16.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-09 15:07:16.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,462,263,timestamp '2013-03-07 19:02:55.5','glory@META',timestamp '2013-03-07 19:02:55.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,462,262,timestamp '2013-03-07 19:03:07.5','glory@META',timestamp '2013-03-07 19:03:07.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,661,880,timestamp '2013-11-15 22:04:19.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700',timestamp '2013-11-15 22:04:19.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,681,2340,timestamp '2013-12-10 18:13:00.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-12-10 18:13:00.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,701,146,timestamp '2013-12-20 11:23:18.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700',timestamp '2013-12-20 11:23:18.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,701,1361,timestamp '2013-12-20 12:05:57.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700',timestamp '2013-12-20 12:05:57.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,341,2640,timestamp '2014-01-23 13:02:19.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-01-23 13:02:19.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3261,3261,61,2660,timestamp '2014-01-24 11:15:23.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378',timestamp '2014-01-24 11:15:23.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,701,1363,timestamp '2013-12-20 12:30:25.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700',timestamp '2013-12-20 12:30:25.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3261,3261,341,2660,timestamp '2014-01-24 11:14:32.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378',timestamp '2014-01-24 11:14:32.6','/C=CZ/O=Masaryk University/CN=Zora Sebestianova/unstructuredName=71378');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,741,2340,timestamp '2014-03-12 09:39:57.4','stava@META',timestamp '2014-03-12 09:39:57.4','stava@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,741,2702,timestamp '2014-03-12 09:39:57.4','stava@META',timestamp '2014-03-12 09:39:57.4','stava@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,721,260,timestamp '2014-03-12 14:44:19.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-03-12 14:44:19.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,721,1372,timestamp '2014-03-12 14:44:30.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-03-12 14:44:30.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,101,2720,timestamp '2014-05-05 14:54:53.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-05-05 14:54:53.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,762,51,timestamp '2014-05-23 13:04:08.6','<EMAIL>',timestamp '2014-05-23 13:04:08.6','<EMAIL>');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,762,260,timestamp '2014-05-23 13:04:15.6','<EMAIL>',timestamp '2014-05-23 13:04:15.6','<EMAIL>');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,281,880,timestamp '2014-06-06 16:59:54.6','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-06-06 16:59:54.6','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,1605,timestamp '2012-10-05 13:04:28.6','makub@META',timestamp '2012-10-05 13:04:28.6','makub@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,162,581,timestamp '2012-01-11 12:19:19.4','PERUNV3',timestamp '2012-01-11 12:19:19.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,641,263,timestamp '2013-07-09 11:34:01.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-07-09 11:34:01.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,42,581,timestamp '2012-01-11 12:19:17.4','PERUNV3',timestamp '2012-01-11 12:19:17.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,501,2400,timestamp '2013-09-06 10:36:50.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-09-06 10:36:50.6','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,41,500,timestamp '2011-12-22 13:50:05.5','PERUNV3',timestamp '2011-12-22 13:50:05.5','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,621,2400,timestamp '2013-07-09 13:48:39.3','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497',timestamp '2013-07-09 13:48:39.3','/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Michal Prochazka 8497');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,641,2420,timestamp '2013-07-10 15:40:20.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-07-10 15:40:20.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,42,582,timestamp '2012-01-11 12:17:38.4','PERUNV3',timestamp '2012-01-11 12:17:38.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,162,582,timestamp '2012-01-11 12:17:51.4','PERUNV3',timestamp '2012-01-11 12:17:51.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,42,580,timestamp '2012-01-11 12:20:03.4','PERUNV3',timestamp '2012-01-11 12:20:03.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,162,580,timestamp '2012-01-11 12:20:04.4','PERUNV3',timestamp '2012-01-11 12:20:04.4','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,221,280,timestamp '2013-09-02 09:44:38.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-09-02 09:44:38.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,880,timestamp '2013-10-11 12:04:07.6','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-10-11 12:04:07.6','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,42,1161,timestamp '2012-05-07 10:17:57.2','glory@META',timestamp '2012-05-07 10:17:57.2','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,580,timestamp '2012-02-16 11:09:47.5','glory@META',timestamp '2012-02-16 11:09:47.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,101,580,timestamp '2012-02-16 11:09:58.5','glory@META',timestamp '2012-02-16 11:09:58.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,161,263,timestamp '2012-01-12 12:09:15.5','PERUNV3',timestamp '2012-01-12 12:09:15.5','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,121,581,timestamp '2012-02-16 11:10:11.5','glory@META',timestamp '2012-02-16 11:10:11.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,163,263,timestamp '2012-01-17 11:19:29.3','PERUNV3',timestamp '2012-01-17 11:19:29.3','PERUNV3');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,101,581,timestamp '2012-02-16 11:10:15.5','glory@META',timestamp '2012-02-16 11:10:15.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,1604,timestamp '2012-10-05 13:04:28.6','makub@META',timestamp '2012-10-05 13:04:28.6','makub@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,381,1700,timestamp '2012-10-22 16:17:34.2','glory@META',timestamp '2012-10-22 16:17:34.2','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,422,880,timestamp '2012-11-15 09:58:01.5','michalp@META',timestamp '2012-11-15 09:58:01.5','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,421,1841,timestamp '2012-11-16 13:05:52.6','glory@META',timestamp '2012-11-16 13:05:52.6','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,880,timestamp '2012-03-20 13:43:49.3','glory@META',timestamp '2012-03-20 13:43:49.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,81,880,timestamp '2012-03-20 13:44:04.3','glory@META',timestamp '2012-03-20 13:44:04.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,860,timestamp '2012-03-20 14:35:37.3','glory@META',timestamp '2012-03-20 14:35:37.3','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,41,800,timestamp '2012-03-23 09:34:56.6','michalp@META',timestamp '2012-03-23 09:34:56.6','michalp@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,42,1160,timestamp '2012-05-07 10:17:55.2','glory@META',timestamp '2012-05-07 10:17:55.2','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,42,1162,timestamp '2012-05-07 10:17:58.2','glory@META',timestamp '2012-05-07 10:17:58.2','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,1480,timestamp '2012-09-13 10:06:22.5','makub@META',timestamp '2012-09-13 10:06:22.5','makub@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,341,1,timestamp '2012-09-13 10:06:22.5','makub@META',timestamp '2012-09-13 10:06:22.5','makub@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,421,1880,timestamp '2012-11-20 13:58:21.3','makub@META',timestamp '2012-11-20 13:58:21.3','makub@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,422,1369,timestamp '2012-12-06 08:50:21.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988',timestamp '2012-12-06 08:50:21.5','/DC=org/DC=terena/DC=tcs/C=CZ/O=Masaryk University/CN=Martin Kuba 3988');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,462,2200,timestamp '2013-03-11 12:58:43.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-03-11 12:58:43.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (null,null,21,580,timestamp '2013-01-24 13:42:49.5','glory@META',timestamp '2013-01-24 13:42:49.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,462,360,timestamp '2013-03-07 19:02:57.5','glory@META',timestamp '2013-03-07 19:02:57.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,262,timestamp '2013-05-16 15:07:09.5','glory@META',timestamp '2013-05-16 15:07:09.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,661,1140,timestamp '2013-11-15 22:03:47.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700',timestamp '2013-11-15 22:03:47.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,39,timestamp '2013-05-16 15:06:45.5','glory@META',timestamp '2013-05-16 15:06:45.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,760,timestamp '2013-05-16 15:09:56.5','glory@META',timestamp '2013-05-16 15:09:56.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,361,timestamp '2013-05-16 15:08:36.5','glory@META',timestamp '2013-05-16 15:08:36.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,521,timestamp '2013-05-16 15:09:47.5','glory@META',timestamp '2013-05-16 15:09:47.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,761,timestamp '2013-05-16 15:10:02.5','glory@META',timestamp '2013-05-16 15:10:02.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,541,1941,timestamp '2013-06-27 09:29:04.5','glory@META',timestamp '2013-06-27 09:29:04.5','glory@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,661,1840,timestamp '2013-11-15 22:04:40.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700',timestamp '2013-11-15 22:04:40.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,681,582,timestamp '2013-12-10 18:13:00.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-12-10 18:13:00.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,681,260,timestamp '2013-12-10 18:13:50.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2013-12-10 18:13:50.3','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,741,2840,timestamp '2014-07-09 11:56:47.4','stava@META',timestamp '2014-07-09 11:56:47.4','stava@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,701,50,timestamp '2013-12-20 11:23:18.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700',timestamp '2013-12-20 11:23:18.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,701,1364,timestamp '2013-12-20 11:23:18.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700',timestamp '2013-12-20 11:23:18.6','/C=CZ/O=Masarykova univerzita/CN=Michal Proch\xC3\xA1zka/unstructuredName=39700');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,21,2620,timestamp '2014-01-09 11:19:52.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-01-09 11:19:52.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,21,2680,timestamp '2014-02-26 21:45:55.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-02-26 21:45:55.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,741,280,timestamp '2014-03-12 09:39:57.4','stava@META',timestamp '2014-03-12 09:39:57.4','stava@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,781,1341,timestamp '2014-07-07 15:44:48.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-07-07 15:44:48.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,781,2820,timestamp '2014-07-07 15:48:38.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-07-07 15:48:38.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,781,880,timestamp '2014-06-30 14:42:33.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-06-30 14:42:33.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,781,50,timestamp '2014-06-30 14:42:38.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-06-30 14:42:38.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,781,51,timestamp '2014-06-30 14:42:43.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-06-30 14:42:43.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,781,1460,timestamp '2014-07-07 15:44:48.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-07-07 15:44:48.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,781,2821,timestamp '2014-07-07 15:49:33.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-07-07 15:49:33.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,781,45,timestamp '2014-07-07 15:52:24.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-07-07 15:52:24.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,781,2822,timestamp '2014-07-07 16:22:58.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-07-07 16:22:58.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,781,49,timestamp '2014-07-07 18:14:55.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-07-07 18:14:55.2','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,741,2842,timestamp '2014-07-09 11:57:00.4','stava@META',timestamp '2014-07-09 11:57:00.4','stava@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,741,2841,timestamp '2014-07-09 11:57:00.4','stava@META',timestamp '2014-07-09 11:57:00.4','stava@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,21,2980,timestamp '2014-09-09 14:34:05.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:34:05.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,161,2988,timestamp '2014-09-09 14:34:14.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:34:14.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,163,2980,timestamp '2014-09-09 14:34:39.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:34:39.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,101,2989,timestamp '2014-09-09 14:35:04.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:35:04.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,841,341,timestamp '2014-10-08 16:08:38.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-10-08 16:08:38.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,121,2840,timestamp '2014-09-03 10:38:38.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-03 10:38:38.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,21,2988,timestamp '2014-09-09 14:34:05.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:34:05.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,161,2980,timestamp '2014-09-09 14:34:14.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:34:14.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,163,2988,timestamp '2014-09-09 14:34:39.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:34:39.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,101,2988,timestamp '2014-09-09 14:35:04.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:35:04.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,841,263,timestamp '2014-10-08 15:53:12.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-10-08 15:53:12.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,841,261,timestamp '2014-10-08 15:52:53.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-10-08 15:52:53.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,841,262,timestamp '2014-10-08 15:53:12.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-10-08 15:53:12.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,42,880,timestamp '2015-01-20 14:15:53.3','stava@META',timestamp '2015-01-20 14:15:53.3','stava@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,161,2989,timestamp '2014-09-09 14:34:14.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:34:14.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,163,2989,timestamp '2014-09-09 14:34:39.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:34:39.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,101,2980,timestamp '2014-09-09 14:35:04.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:35:04.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,221,2980,timestamp '2014-09-09 14:35:28.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:35:28.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,861,1140,timestamp '2014-11-24 12:38:32.2','/C=CZ/O=Masarykova univerzita/CN=Michal Prochazka/unstructuredName=39700',timestamp '2014-11-24 12:38:32.2','/C=CZ/O=Masarykova univerzita/CN=Michal Prochazka/unstructuredName=39700');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,21,2989,timestamp '2014-09-09 14:34:05.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:34:05.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,462,880,timestamp '2014-11-26 14:45:59.4','/C=CZ/O=Masarykova univerzita/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-11-26 14:45:59.4','/C=CZ/O=Masarykova univerzita/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,221,2989,timestamp '2014-09-09 14:35:28.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:35:28.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,861,123,timestamp '2014-11-24 12:39:18.2','/C=CZ/O=Masarykova univerzita/CN=Michal Prochazka/unstructuredName=39700',timestamp '2014-11-24 12:39:18.2','/C=CZ/O=Masarykova univerzita/CN=Michal Prochazka/unstructuredName=39700');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,221,2988,timestamp '2014-09-09 14:35:28.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-09-09 14:35:28.3','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3354,3354,861,1361,timestamp '2014-11-24 12:38:41.2','/C=CZ/O=Masarykova univerzita/CN=Michal Prochazka/unstructuredName=39700',timestamp '2014-11-24 12:38:41.2','/C=CZ/O=Masarykova univerzita/CN=Michal Prochazka/unstructuredName=39700');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,42,3220,timestamp '2015-01-20 14:16:00.3','stava@META',timestamp '2015-01-20 14:16:00.3','stava@META');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,841,260,timestamp '2014-10-08 15:52:53.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-10-08 15:52:53.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,822,146,timestamp '2014-09-11 11:38:28.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-09-11 11:38:28.5','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (3255,3255,221,3020,timestamp '2014-09-17 10:18:34.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920',timestamp '2014-09-17 10:18:34.4','/C=CZ/O=Masaryk University/CN=Slavek Licehammer/unstructuredName=255920');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,841,581,timestamp '2014-10-08 15:54:14.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-10-08 15:54:14.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,841,2340,timestamp '2014-10-08 16:08:10.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-10-08 16:08:10.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,841,582,timestamp '2014-10-08 16:07:52.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-10-08 16:07:52.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,841,280,timestamp '2014-10-08 15:57:03.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-10-08 15:57:03.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,841,361,timestamp '2014-10-08 15:57:45.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-10-08 15:57:45.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,841,360,timestamp '2014-10-08 15:57:57.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-10-08 15:57:57.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,841,580,timestamp '2014-10-08 15:54:14.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-10-08 15:54:14.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
insert into service_required_attrs (created_by_uid,modified_by_uid,service_id,attr_id,created_at,created_by,modified_at,modified_by) values (6701,6701,341,1720,timestamp '2014-11-26 17:23:01.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739',timestamp '2014-11-26 17:23:01.4','/C=CZ/O=Masarykova univerzita/CN=Michal \xC5\xA0\xC5\xA5ava/unstructuredName=255739');
drop sequence pn_template_message_id_seq;
create sequence pn_template_message_id_seq start with 162;
drop sequence users_id_seq;
create sequence users_id_seq start with 45338;
drop sequence user_ext_sources_id_seq;
create sequence user_ext_sources_id_seq start with 104094;
drop sequence pn_template_id_seq;
create sequence pn_template_id_seq start with 143;
drop sequence hosts_id_seq;
create sequence hosts_id_seq start with 5247;
drop sequence service_denials_id_seq;
create sequence service_denials_id_seq start with 1236;
drop sequence pn_regex_object_seq;
create sequence pn_regex_object_seq start with 1;
drop sequence mailchange_id_seq;
create sequence mailchange_id_seq start with 443;
drop sequence tasks_results_id_seq;
create sequence tasks_results_id_seq start with 85745269;
drop sequence vos_id_seq;
create sequence vos_id_seq start with 3322;
drop sequence pn_audit_message_id_seq;
create sequence pn_audit_message_id_seq start with 1;
drop sequence ext_sources_id_seq;
create sequence ext_sources_id_seq start with 2402;
drop sequence pwdreset_id_seq;
create sequence pwdreset_id_seq start with 422;
drop sequence cabinet_publications_id_seq;
create sequence cabinet_publications_id_seq start with 5024;
drop sequence pn_object_id_seq;
create sequence pn_object_id_seq start with 1;
drop sequence facilities_id_seq;
create sequence facilities_id_seq start with 3323;
drop sequence tasks_id_seq;
create sequence tasks_id_seq start with 19049;
drop sequence application_mails_id_seq;
create sequence application_mails_id_seq start with 3967;
drop sequence cabinet_categories_id_seq;
create sequence cabinet_categories_id_seq start with 62;
drop sequence pn_pool_message_id_seq;
create sequence pn_pool_message_id_seq start with 1;
drop sequence pn_receiver_id_seq;
create sequence pn_receiver_id_seq start with 182;
drop sequence services_id_seq;
create sequence services_id_seq start with 862;
drop sequence service_packages_id_seq;
create sequence service_packages_id_seq start with 45;
drop sequence application_id_seq;
create sequence application_id_seq start with 18420;
drop sequence destinations_id_seq;
create sequence destinations_id_seq start with 4624;
drop sequence pn_regex_id_seq;
create sequence pn_regex_id_seq start with 102;
drop sequence cabinet_thanks_id_seq;
create sequence cabinet_thanks_id_seq start with 4602;
drop sequence members_id_seq;
create sequence members_id_seq start with 54032;
drop sequence attr_names_id_seq;
create sequence attr_names_id_seq start with 3521;
drop sequence application_form_id_seq;
create sequence application_form_id_seq start with 3502;
drop sequence resources_id_seq;
create sequence resources_id_seq start with 8306;
drop sequence cabinet_pub_sys_id_seq;
create sequence cabinet_pub_sys_id_seq start with 62;
drop sequence auditer_log_id_seq;
create sequence auditer_log_id_seq start with 3199217;
drop sequence pn_template_regex_seq;
create sequence pn_template_regex_seq start with 142;
drop sequence application_data_id_seq;
create sequence application_data_id_seq start with 54230;
drop sequence groups_id_seq;
create sequence groups_id_seq start with 9643;
drop sequence application_form_items_id_seq;
create sequence application_form_items_id_seq start with 7609;
drop sequence res_tags_seq;
create sequence res_tags_seq start with 22;
drop sequence roles_id_seq;
create sequence roles_id_seq start with 102;
drop sequence cabinet_authorships_id_seq;
create sequence cabinet_authorships_id_seq start with 5884;
-- insert default perun admin user
insert into users (id, first_name, last_name) values (1, 'John', 'Doe');
insert into ext_sources (id, name, type) values (1, 'BA', 'cz.metacentrum.perun.core.impl.ExtSourceKerberos');
insert into user_ext_sources (id, user_id, login_ext, ext_sources_id, loa) values (1, 1, 'perun@BA', 1, 2);
insert into authz (user_id, role_id) values (1 , 21);
|
CREATE UNIQUE INDEX uniq_email ON auth_user(email) WHERE email IS NOT NULL;
|
-- @testpoint:opengauss关键字release(非保留),作为外部数据源名
--关键字不带引号-成功
drop data source if exists release;
create data source release;
drop data source release;
--关键字带双引号-成功
drop data source if exists "release";
create data source "release";
drop data source "release";
--关键字带单引号-合理报错
drop data source if exists 'release';
--关键字带反引号-合理报错
drop data source if exists `release`;
|
CREATE TABLE [Stage].[PlanedToRealPayments] (
[Id] [bigint] NOT NULL,
[GID] [uniqueidentifier] NOT NULL,
[PlanedPaymentGID] [uniqueidentifier] NOT NULL,
[RealPaymentGID] [uniqueidentifier] NOT NULL,
[Value] [decimal](18, 2) NOT NULL,
[Deleted] [bit] NOT NULL,
[AuthorGID] [uniqueidentifier] NULL,
[_CreateDateTime] [datetime2] NOT NULL,
[_ActionDateTime] [datetime2] NOT NULL,
[SourceRecordId] [int] NOT NULL,
[LoadDateTime] [datetime2] NOT NULL,
CONSTRAINT [PK_PlanedToRealPayments_Id] PRIMARY KEY CLUSTERED ([Id])
)
ON [PRIMARY]
GO |
<reponame>gegagome/IRS_Preparers
CREATE TABLE [dbo].[Table] (
[Id] INT NULL,
[Name of Business] TEXT NULL,
[Address] TEXT NULL,
[Location] TEXT NULL,
[Point of Contact] TEXT NULL,
[Telephone] TEXT NULL,
[Type of Service] TEXT NULL,
PRIMARY KEY CLUSTERED ([Id] ASC)
);
|
<gh_stars>0
//Description: The script generates a report of tablesapces, data files, roll back segments, control files, log files, objects (user wise, valid and invalid)
set long 132
set serveroutput on
declare
cursor tablespaces is
select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size
from dba_tablespaces t, dba_data_files d
where t.tablespace_name = d.tablespace_name
group by t.tablespace_name;
cursor datafiles is
select tablespace_name, file_id, file_name,
round(bytes/(1024*1024),0) total_space
from dba_data_files
order by tablespace_name;
cursor rollbacksegments is
select segment_name,
tablespace_name, r.status,
(initial_extent/1024) InitialExtent,
(next_extent/1024) NextExtent,
max_extents, v.curext CurExtent
From dba_rollback_segs r, v$rollstat v
Where r.segment_id = v.usn(+)
order by segment_name ;
cursor controlfiles is select name from v$controlfile;
cursor logfiles is select member from v$logfile;
cursor objects is select owner, object_type, status, count(*) count# from all_objects group by owner, object_type, status;
DBName VarChar2(20);
ToDate VarChar2(20);
Grand_Total_Space Integer;
Grand_Free_Space Integer;
TmpOwner VarChar2(50);
TmpObjectType VarChar2(50);
free_space Integer;
Ruler Char(90);
Remarks VarChar2(80);
Star Char(90);
Version VarChar2(80);
Log_Mode VarChar2(32);
Created VarChar2(20);
ValidCount Integer;
InValidCount Integer;
TotValidCount Integer;
TotInValidCount Integer;
GrandValidCount Integer;
GrandInValidCount Integer;
Is_It_First_Record Integer;
begin
dbms_output.enable;
ruler :=
'---------------------------------------------------------------------------
-----';
Star :=
'***************************************************************************
*****';
Grand_Total_Space := 0;
Grand_Free_Space := 0;
Select Substr(Global_Name,1,4) , To_Char(sysdate,'DD-MON-YYYY
HH24:MI:SS')
Into DBName, ToDate
From Global_Name;
Select version
Into Version
FROM Product_component_version
Where SUBSTR(PRODUCT,1,6)='Oracle';
Select Created, Log_Mode
Into Created, Log_Mode
From V$Database;
--
-- Database
--
dbms_output.put_line(Star);
dbms_output.put_line('Date : ' || ToDate);
dbms_output.put_line('Database : ' || DBName);
dbms_output.put_line('Created : ' || Created);
dbms_output.put_line('Version : ' || Version);
dbms_output.put_line('Log Mode : ' || Log_Mode);
dbms_output.put_line(Star);
--
-- Tablespaces
--
dbms_output.put_line('TABLESPACES (' || DBName || ')');
dbms_output.put_line(Ruler);
dbms_output.put_line( rpad('TABLESPACE',60,' ') ||
rpad('TOTAL(M)',10,' ') || rpad('FREE(M)',10,' '));
dbms_output.put_line(Ruler);
Grand_Total_Space := 0;
Grand_Free_Space := 0;
for tablespace in tablespaces loop
free_space := 0;
Begin
select sum(bytes/(1024*1024))
into free_space
from dba_free_space
where tablespace_name = tablespace.tablespace_name
group by tablespace_name;
Exception
When No_Data_Found Then Free_Space := 0;
End;
remarks := null;
If free_space <= (tablespace.ts_size * .1) then
remarks := ' ***';
End If;
dbms_output.put_line (rpad(tablespace.tablespace_name,60,'
')
|| rpad(to_char(tablespace.ts_size)
,10,' ')
|| rpad(to_char(free_space) ,6,' ' )
|| remarks
);
Grand_Total_Space := Grand_Total_Space + tablespace.ts_size;
Grand_Free_Space := Grand_Free_Space + free_space;
end loop;
dbms_output.put_line('-----');
dbms_output.put_line (rpad('Total ',60,' ') ||
rpad(Grand_Total_Space,10,' ') || rpad(Grand_Free_Space,10,' '));
dbms_output.put_line('-----');
--
-- Data Files
--
dbms_output.put_line(Ruler);
dbms_output.put_line('DATA FILES (' || DBName || ')');
dbms_output.put_line(Ruler);
dbms_output.put_line( rpad('TABLESPACE',15,' ') || rpad('DATA
FILE',45,' ') || rpad('TOTAL(M)',10,' ') || rpad('FREE(M)',10,' '));
dbms_output.put_line(Ruler);
Grand_Total_Space := 0;
Grand_Free_Space := 0;
for datafile in datafiles loop
free_space := 0;
Begin
select sum(bytes/(1024*1024))
into free_space
from dba_free_space
where tablespace_name =
datafile.tablespace_name
and file_id = datafile.file_id
group by tablespace_name, file_id;
Exception
When No_Data_Found Then Free_Space := 0;
End;
remarks := null;
If free_space <= (datafile.total_space * .1) then
remarks := ' ***';
End If;
dbms_output.put_line (rpad(datafile.tablespace_name,15,' ')
|| rpad(datafile.file_name,45,' ')
||
rpad(to_char(datafile.total_space) ,10,' ')
|| rpad(to_char(free_space) ,6,' ')
|| remarks
);
Grand_Total_Space := Grand_Total_Space +
datafile.total_space;
Grand_Free_Space := Grand_Free_Space + free_space;
end loop;
dbms_output.put_line('-----');
dbms_output.put_line (rpad('Total ',60,' ') ||
rpad(Grand_Total_Space,10,' ') || rpad(Grand_Free_Space,10,' '));
dbms_output.put_line('-----');
--
-- RollBack Segments
--
dbms_output.put_line(Ruler);
dbms_output.put_line('ROLLBACK SEGMENTS (' || DBName || ')');
dbms_output.put_line(Ruler);
dbms_output.put_line( rpad('RBS NAME', 15, ' ') ||
rpad('TABLESPACE', 20, ' ') ||
rpad('STATUS', 8, ' ') ||
rpad('INITIAL(K)', 10, ' ') ||
rpad('NEXT(K)', 10, ' ') ||
rpad('MAX(NO)', 8, ' ') ||
rpad('CURR.(NO)', 9, ' ')
);
dbms_output.put_line(Ruler);
for RBS in rollbacksegments loop
remarks := null;
If Rbs.Max_Extents - Rbs.CurExtent <= 10 then
remarks := ' ***';
End If;
dbms_output.put_line( rpad(rbs.segment_name,15,' ') ||
rpad(rbs.tablespace_name,20,' ') ||
rpad(rbs.status,8,' ') ||
rpad(rbs.initialextent,10,' ') ||
rpad(rbs.nextextent,10,' ') ||
rpad(rbs.Max_Extents,10,' ') ||
rpad(rbs.curextent,10,' ')
);
end loop;
--
-- Control Files
--
dbms_output.put_line(Ruler);
dbms_output.put_line('CONTROL FILES (' || DBName || ')');
dbms_output.put_line(Ruler);
for controlfile in controlfiles loop
dbms_output.put_line( rpad(controlfile.name,50,' '));
end loop;
--
-- Log Files
--
dbms_output.put_line(Ruler);
dbms_output.put_line('LOG FILES (' || DBName || ')');
dbms_output.put_line(Ruler);
for logfile in logfiles loop
dbms_output.put_line( rpad(logfile.member,50,' '));
end loop;
dbms_output.put_line(Ruler);
end;
/
|
select c_last_name
,c_first_name
,ca_city
,bought_city
,ss_ticket_number
,amt,profit
from
(select ss_ticket_number
,ss_customer_sk
,ca_city as bought_city
,sum(ss_coupon_amt) as amt
,sum(ss_net_profit) as profit
from store_sales
JOIN date_dim ON store_sales.ss_sold_date_sk = date_dim.d_date_sk
JOIN store ON store_sales.ss_store_sk = store.s_store_sk
JOIN household_demographics ON store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk
JOIN customer_address ON store_sales.ss_addr_sk = customer_address.ca_address_sk
where
(household_demographics.hd_dep_count = 6 or
household_demographics.hd_vehicle_count= 3)
and date_dim.d_dow in (6,0)
and date_dim.d_year in (1998,1998+1,1998+2)
and store.s_city in ('Riverview','New Hope','Highland','Spring Hill','Mount Zion')
group by ss_ticket_number,ss_customer_sk,ss_addr_sk,ca_city) dn
JOIN customer ON dn.ss_customer_sk = customer.c_customer_sk
JOIN customer_address ON customer.c_current_addr_sk = customer_address.ca_address_sk
where
customer_address.ca_city <> dn.bought_city
order by c_last_name
,c_first_name
,ca_city
,bought_city
,ss_ticket_number
limit 100;
|
ALTER TABLE persons
ADD COLUMN IF NOT EXISTS locationOfBirth UUID,
ADD COLUMN IF NOT EXISTS locationOfDeath UUID; |
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Sportsfest_MemberId]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Sportsfest] DROP CONSTRAINT [DF_Sportsfest_MemberId]
END
GO
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Sportsfest_EntryDate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Sportsfest] DROP CONSTRAINT [DF_Sportsfest_EntryDate]
END
GO
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Sportsfest_Locale]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Sportsfest] DROP CONSTRAINT [DF_Sportsfest_Locale]
END
GO
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Sportsfest_Suggestion]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Sportsfest] DROP CONSTRAINT [DF_Sportsfest_Suggestion]
END
GO
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Sportsfest_CountryCode]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Sportsfest] DROP CONSTRAINT [DF_Sportsfest_CountryCode]
END
GO
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Sportsfest_ShirtSize]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Sportsfest] DROP CONSTRAINT [DF_Sportsfest_ShirtSize]
END
GO
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Sportsfest]') AND type in (N'U'))
DROP TABLE [dbo].[Sportsfest]
GO
|
<reponame>Shuttl-Tech/antlr_psql
-- file:portals.sql ln:268 expect:true
declare c1 cursor for select count_tt1_v(), count_tt1_s()
|
<filename>01 - [MS SQL Problems]/10 - [Subqueries and Joins - Exercise]/P14_CountriesWithRivers.sql
SELECT TOP (5) c.CountryName, r.RiverName
FROM Countries AS c
LEFT JOIN CountriesRivers AS cr ON cr.CountryCode = c.CountryCode
LEFT JOIN Rivers r ON r.Id = cr.RiverId
WHERE c.ContinentCode = 'AF'
ORDER BY c.CountryName
|
-- 29.06.2016 11:04
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog,IsDeleteable,IsHighVolume,IsSecurityEnabled,IsView,LoadSeq,Name,ReplicationType,TableName,Updated,UpdatedBy) VALUES ('3',0,0,0,540766,'N',TO_TIMESTAMP('2016-06-29 11:04:36','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.fresh','N','Y','N','N','Y','N','N','N',0,'Counter Documents','L','RV_Counter_Documents',TO_TIMESTAMP('2016-06-29 11:04:36','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 11:04
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=540766 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID)
;
-- 29.06.2016 11:04
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
CREATE SEQUENCE RV_COUNTER_DOCUMENTS_SEQ INCREMENT 1 MINVALUE 0 MAXVALUE 2147483647 START 1000000
;
-- 29.06.2016 11:04
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,554322,TO_TIMESTAMP('2016-06-29 11:04:36','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'Table RV_Counter_Documents',1,'Y','N','Y','Y','RV_Counter_Documents','N',1000000,TO_TIMESTAMP('2016-06-29 11:04:36','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 11:07
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Table SET EntityType='D',Updated=TO_TIMESTAMP('2016-06-29 11:07:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540766
;
-- 29.06.2016 13:53
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,543103,0,'Counter_AD_Table_ID',TO_TIMESTAMP('2016-06-29 13:53:40','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Counter_AD_Table_ID','Counter_AD_Table_ID',TO_TIMESTAMP('2016-06-29 13:53:40','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 13:53
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=543103 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- 29.06.2016 13:53
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,543104,0,'Counter_Record_ID',TO_TIMESTAMP('2016-06-29 13:53:58','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Counter_Record_ID','Counter_Record_ID',TO_TIMESTAMP('2016-06-29 13:53:58','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 13:53
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=543104 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- 29.06.2016 13:54
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,543105,0,'Counter_DocumentNo',TO_TIMESTAMP('2016-06-29 13:54:21','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Counter_DocumentNo','Counter_DocumentNo',TO_TIMESTAMP('2016-06-29 13:54:21','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 13:54
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=543105 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- 29.06.2016 14:01
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Table SET TableName='RV_Missing_Counter_Documents',Updated=TO_TIMESTAMP('2016-06-29 14:01:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540766
;
-- 29.06.2016 14:01
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Sequence SET Name='RV_Missing_Counter_Documents',Updated=TO_TIMESTAMP('2016-06-29 14:01:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Sequence_ID=554322
;
-- 29.06.2016 14:01
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
ALTER SEQUENCE RV_Counter_Documents_SEQ RENAME TO RV_Missing_Counter_Documents_SEQ
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,554761,126,0,19,540766,'AD_Table_ID',TO_TIMESTAMP('2016-06-29 14:02:02','YYYY-MM-DD HH24:MI:SS'),100,'Database Table information','D',131089,'The Database Table provides the information of the table definition','Y','N','N','N','N','N','N','N','N','N','DB-Tabelle',TO_TIMESTAMP('2016-06-29 14:02:02','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=554761 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,554762,538,0,19,540766,'Record_ID',TO_TIMESTAMP('2016-06-29 14:02:02','YYYY-MM-DD HH24:MI:SS'),100,'Direct internal record ID','D',10,'The Record ID is the internal unique identifier of a record. Please note that zooming to the record may not be successful for Orders, Invoices and Shipment/Receipts as sometimes the Sales Order type is not known.','Y','N','N','N','N','N','N','N','N','N','Datensatz-ID',TO_TIMESTAMP('2016-06-29 14:02:02','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=554762 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,554763,290,0,10,540766,'DocumentNo',TO_TIMESTAMP('2016-06-29 14:02:02','YYYY-MM-DD HH24:MI:SS'),100,'Document sequence number of the document','D',30,'The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>".
If the document type of your document has no automatic document sequence defined, the field is empty if you create a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. 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','N','N','N','N','N','N','N','N','Beleg Nr.',TO_TIMESTAMP('2016-06-29 14:02:02','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=554763 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,554764,196,0,19,540766,'C_DocType_ID',TO_TIMESTAMP('2016-06-29 14:02:02','YYYY-MM-DD HH24:MI:SS'),100,'Belegart oder Verarbeitungsvorgaben','D',10,'Die Belegart bestimmt den Nummernkreis und die Vorgaben für die Belegverarbeitung.','Y','N','N','N','N','N','N','N','N','N','Belegart',TO_TIMESTAMP('2016-06-29 14:02:02','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=554764 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,554765,543103,0,19,540766,'Counter_AD_Table_ID',TO_TIMESTAMP('2016-06-29 14:02:02','YYYY-MM-DD HH24:MI:SS'),100,'D',131089,'Y','N','N','N','N','N','N','N','N','N','Counter_AD_Table_ID',TO_TIMESTAMP('2016-06-29 14:02:02','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=554765 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,554766,543104,0,19,540766,'Counter_Record_ID',TO_TIMESTAMP('2016-06-29 14:02:03','YYYY-MM-DD HH24:MI:SS'),100,'D',10,'Y','N','N','N','N','N','N','N','N','N','Counter_Record_ID',TO_TIMESTAMP('2016-06-29 14:02:03','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=554766 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,554767,2494,0,19,540766,'Counter_C_DocType_ID',TO_TIMESTAMP('2016-06-29 14:02:03','YYYY-MM-DD HH24:MI:SS'),100,'Generated Counter Document Type (To)','D',10,'The Document Type of the generated counter document','Y','N','N','N','N','N','N','N','N','N','Counter Document Type',TO_TIMESTAMP('2016-06-29 14:02:03','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=554767 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,554768,543105,0,10,540766,'Counter_DocumentNo',TO_TIMESTAMP('2016-06-29 14:02:03','YYYY-MM-DD HH24:MI:SS'),100,'D',30,'Y','N','N','N','N','N','N','N','N','N','Counter_DocumentNo',TO_TIMESTAMP('2016-06-29 14:02:03','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=554768 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 29.06.2016 14:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2016-06-29 14:02:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554761
;
-- 29.06.2016 14:03
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_Value_ID=540255,Updated=TO_TIMESTAMP('2016-06-29 14:03:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554761
;
-- 29.06.2016 14:04
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=53290,Updated=TO_TIMESTAMP('2016-06-29 14:04:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554765
;
-- 29.06.2016 14:04
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, AD_Reference_Value_ID=53290,Updated=TO_TIMESTAMP('2016-06-29 14:04:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554761
;
-- 29.06.2016 14:04
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, AD_Reference_Value_ID=170,Updated=TO_TIMESTAMP('2016-06-29 14:04:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554764
;
-- 29.06.2016 14:04
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-29 14:04:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554765
;
-- 29.06.2016 14:05
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, AD_Reference_Value_ID=170,Updated=TO_TIMESTAMP('2016-06-29 14:05:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554767
;
-- 29.06.2016 14:07
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Window (AD_Client_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,EntityType,IsActive,IsBetaFunctionality,IsDefault,IsOneInstanceOnly,IsSOTrx,Name,Processing,Updated,UpdatedBy,WindowType,WinHeight,WinWidth) VALUES (0,0,540296,TO_TIMESTAMP('2016-06-29 14:07:34','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','N','N','Y','RV_Missing_Counter_Documents','N',TO_TIMESTAMP('2016-06-29 14:07:34','YYYY-MM-DD HH24:MI:SS'),100,'M',0,0)
;
-- 29.06.2016 14:07
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Window_Trl (AD_Language,AD_Window_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Window_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_Window t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Window_ID=540296 AND NOT EXISTS (SELECT * FROM AD_Window_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Window_ID=t.AD_Window_ID)
;
-- 29.06.2016 14:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Tab (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,EntityType,HasTree,ImportFields,IsActive,IsAdvancedTab,IsCheckParentsChanged,IsGenericZoomTarget,IsGridModeOnly,IsInfoTab,IsInsertRecord,IsQueryOnLoad,IsReadOnly,IsRefreshAllOnActivate,IsSearchActive,IsSearchCollapsed,IsSingleRow,IsSortTab,IsTranslationTab,MaxQueryRecords,Name,Processing,SeqNo,TabLevel,Updated,UpdatedBy) VALUES (0,0,540742,540766,540296,TO_TIMESTAMP('2016-06-29 14:08:16','YYYY-MM-DD HH24:MI:SS'),100,'D','N','N','Y','N','Y','N','N','N','Y','Y','N','N','Y','Y','N','N','N',0,'Missing_Counter_Documents','N',10,0,TO_TIMESTAMP('2016-06-29 14:08:16','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 14:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, CommitWarning,Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Tab_ID, t.CommitWarning,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_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=540742 AND NOT EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Tab_ID=t.AD_Tab_ID)
;
-- 29.06.2016 14:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET IsInsertRecord='N', IsReadOnly='Y',Updated=TO_TIMESTAMP('2016-06-29 14:08:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540742
;
-- 29.06.2016 14:31
-- 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,EntityType,InternalName,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES ('W',0,540714,0,540296,TO_TIMESTAMP('2016-06-29 14:31:14','YYYY-MM-DD HH24:MI:SS'),100,'D','Missing_Counter_Documents','Y','N','N','N','RV_Missing_Counter_Documents',TO_TIMESTAMP('2016-06-29 14:31:14','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 14:31
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_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_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=540714 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID)
;
-- 29.06.2016 14:31
-- 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, 540714, 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=540714)
;
-- 29.06.2016 14:31
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540400, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540664 AND AD_Tree_ID=10
;
-- 29.06.2016 14:31
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540400, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540401 AND AD_Tree_ID=10
;
-- 29.06.2016 14:31
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540400, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540402 AND AD_Tree_ID=10
;
-- 29.06.2016 14:31
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540400, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540437 AND AD_Tree_ID=10
;
-- 29.06.2016 14:31
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540400, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540714 AND AD_Tree_ID=10
;
-- 29.06.2016 14:31
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540400, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=540435 AND AD_Tree_ID=10
;
-- 29.06.2016 14:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,554769,113,0,19,540766,'AD_Org_ID',TO_TIMESTAMP('2016-06-29 14:45:56','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten','D',10,'Eine Organisation ist ein Bereich ihres Mandanten - z.B. Laden oder Abteilung. Sie können Daten über Organisationen hinweg gemeinsam verwenden.','Y','N','N','N','N','N','N','N','N','N','Sektion',TO_TIMESTAMP('2016-06-29 14:45:56','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.06.2016 14:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=554769 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 29.06.2016 14:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,554770,102,0,19,540766,'AD_Client_ID',TO_TIMESTAMP('2016-06-29 14:45:56','YYYY-MM-DD HH24:MI:SS'),100,'Mandant für diese Installation.','D',10,'Ein Mandant ist eine Firma oder eine juristische Person. Sie können keine Daten über Mandanten hinweg verwenden. .','Y','N','N','N','N','N','N','N','N','N','Mandant',TO_TIMESTAMP('2016-06-29 14:45:56','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.06.2016 14:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=554770 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 29.06.2016 14:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,554771,245,0,16,540766,'Created',TO_TIMESTAMP('2016-06-29 14:45:56','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem dieser Eintrag erstellt wurde','D',35,'Das Feld Erstellt zeigt an, zu welchem Datum dieser Eintrag erstellt wurde.','Y','N','N','N','N','N','N','N','N','N','Erstellt',TO_TIMESTAMP('2016-06-29 14:45:56','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.06.2016 14:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=554771 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 29.06.2016 14:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,554772,246,0,18,110,540766,'CreatedBy',TO_TIMESTAMP('2016-06-29 14:45:56','YYYY-MM-DD HH24:MI:SS'),100,'Nutzer, der diesen Eintrag erstellt hat','D',10,'Das Feld Erstellt durch zeigt an, welcher Nutzer diesen Eintrag erstellt hat.','Y','N','N','N','N','N','N','N','N','N','Erstellt durch',TO_TIMESTAMP('2016-06-29 14:45:56','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.06.2016 14:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=554772 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 29.06.2016 14:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,554773,607,0,16,540766,'Updated',TO_TIMESTAMP('2016-06-29 14:45:56','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem dieser Eintrag aktualisiert wurde','D',35,'Aktualisiert zeigt an, wann dieser Eintrag aktualisiert wurde.','Y','N','N','N','N','N','N','N','N','N','Aktualisiert',TO_TIMESTAMP('2016-06-29 14:45:56','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.06.2016 14:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=554773 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 29.06.2016 14:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,554774,608,0,18,110,540766,'UpdatedBy',TO_TIMESTAMP('2016-06-29 14:45:56','YYYY-MM-DD HH24:MI:SS'),100,'Nutzer, der diesen Eintrag aktualisiert hat','D',10,'Aktualisiert durch zeigt an, welcher Nutzer diesen Eintrag aktualisiert hat.','Y','N','N','N','N','N','N','N','N','N','Aktualisiert durch',TO_TIMESTAMP('2016-06-29 14:45:56','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.06.2016 14:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=554774 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 29.06.2016 14:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,554775,348,0,14,540766,'IsActive',TO_TIMESTAMP('2016-06-29 14:45:56','YYYY-MM-DD HH24:MI:SS'),100,'Der Eintrag ist im System aktiv','D',2147483647,'Es gibt zwei Möglichkeiten, einen Datensatz nicht mehr verfügbar zu machen: einer ist, ihn zu löschen; der andere, ihn zu deaktivieren. Ein deaktivierter Eintrag ist nicht mehr für eine Auswahl verfügbar, aber verfügbar für die Verwendung in Berichten. Es gibt zwei Gründe, Datensätze zu deaktivieren und nicht zu löschen: (1) Das System braucht den Datensatz für Revisionszwecke. (2) Der Datensatz wird von anderen Datensätzen referenziert. Z.B. können Sie keinen Geschäftspartner löschen, wenn es Rechnungen für diesen Geschäftspartner gibt. Sie deaktivieren den Geschäftspartner und verhindern, dass dieser Eintrag in zukünftigen Vorgängen verwendet wird.','Y','N','N','N','N','N','N','N','N','N','Aktiv',TO_TIMESTAMP('2016-06-29 14:45:56','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.06.2016 14:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=554775 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,554761,557005,0,540742,TO_TIMESTAMP('2016-06-29 14:46:49','YYYY-MM-DD HH24:MI:SS'),100,'Database Table information',131089,'D','The Database Table provides the information of the table definition','Y','Y','Y','N','N','N','N','N','DB-Tabelle',TO_TIMESTAMP('2016-06-29 14:46:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557005 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,554762,557006,0,540742,TO_TIMESTAMP('2016-06-29 14:46:49','YYYY-MM-DD HH24:MI:SS'),100,'Direct internal record ID',10,'D','The Record ID is the internal unique identifier of a record. Please note that zooming to the record may not be successful for Orders, Invoices and Shipment/Receipts as sometimes the Sales Order type is not known.','Y','Y','Y','N','N','N','N','N','Datensatz-ID',TO_TIMESTAMP('2016-06-29 14:46:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557006 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,554763,557007,0,540742,TO_TIMESTAMP('2016-06-29 14:46:49','YYYY-MM-DD HH24:MI:SS'),100,'Document sequence number of the document',30,'D','The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>".
If the document type of your document has no automatic document sequence defined, the field is empty if you create a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. 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','Y','Y','N','N','N','N','N','Beleg Nr.',TO_TIMESTAMP('2016-06-29 14:46:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557007 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,554764,557008,0,540742,TO_TIMESTAMP('2016-06-29 14:46:49','YYYY-MM-DD HH24:MI:SS'),100,'Belegart oder Verarbeitungsvorgaben',10,'D','Die Belegart bestimmt den Nummernkreis und die Vorgaben für die Belegverarbeitung.','Y','Y','Y','N','N','N','N','N','Belegart',TO_TIMESTAMP('2016-06-29 14:46:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557008 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,554765,557009,0,540742,TO_TIMESTAMP('2016-06-29 14:46:49','YYYY-MM-DD HH24:MI:SS'),100,131089,'D','Y','Y','Y','N','N','N','N','N','Counter_AD_Table_ID',TO_TIMESTAMP('2016-06-29 14:46:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557009 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,554766,557010,0,540742,TO_TIMESTAMP('2016-06-29 14:46:49','YYYY-MM-DD HH24:MI:SS'),100,10,'D','Y','Y','Y','N','N','N','N','N','Counter_Record_ID',TO_TIMESTAMP('2016-06-29 14:46:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557010 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,554767,557011,0,540742,TO_TIMESTAMP('2016-06-29 14:46:49','YYYY-MM-DD HH24:MI:SS'),100,'Generated Counter Document Type (To)',10,'D','The Document Type of the generated counter document','Y','Y','Y','N','N','N','N','N','Counter Document Type',TO_TIMESTAMP('2016-06-29 14:46:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557011 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,554768,557012,0,540742,TO_TIMESTAMP('2016-06-29 14:46:49','YYYY-MM-DD HH24:MI:SS'),100,30,'D','Y','Y','Y','N','N','N','N','N','Counter_DocumentNo',TO_TIMESTAMP('2016-06-29 14:46:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557012 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,554769,557013,0,540742,TO_TIMESTAMP('2016-06-29 14:46:50','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten',10,'D','Eine Organisation ist ein Bereich ihres Mandanten - z.B. Laden oder Abteilung. Sie können Daten über Organisationen hinweg gemeinsam verwenden.','Y','Y','Y','N','N','N','N','N','Sektion',TO_TIMESTAMP('2016-06-29 14:46:50','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557013 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,554770,557014,0,540742,TO_TIMESTAMP('2016-06-29 14:46:50','YYYY-MM-DD HH24:MI:SS'),100,'Mandant für diese Installation.',10,'D','Ein Mandant ist eine Firma oder eine juristische Person. Sie können keine Daten über Mandanten hinweg verwenden. .','Y','Y','Y','N','N','N','N','N','Mandant',TO_TIMESTAMP('2016-06-29 14:46:50','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557014 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,554775,557015,0,540742,TO_TIMESTAMP('2016-06-29 14:46:50','YYYY-MM-DD HH24:MI:SS'),100,'Der Eintrag ist im System aktiv',2147483647,'D','Es gibt zwei Möglichkeiten, einen Datensatz nicht mehr verfügbar zu machen: einer ist, ihn zu löschen; der andere, ihn zu deaktivieren. Ein deaktivierter Eintrag ist nicht mehr für eine Auswahl verfügbar, aber verfügbar für die Verwendung in Berichten. Es gibt zwei Gründe, Datensätze zu deaktivieren und nicht zu löschen: (1) Das System braucht den Datensatz für Revisionszwecke. (2) Der Datensatz wird von anderen Datensätzen referenziert. Z.B. können Sie keinen Geschäftspartner löschen, wenn es Rechnungen für diesen Geschäftspartner gibt. Sie deaktivieren den Geschäftspartner und verhindern, dass dieser Eintrag in zukünftigen Vorgängen verwendet wird.','Y','Y','Y','N','N','N','N','N','Aktiv',TO_TIMESTAMP('2016-06-29 14:46:50','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.06.2016 14:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557015 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- 29.06.2016 14:47
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNo=10,Updated=TO_TIMESTAMP('2016-06-29 14:47:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557014
;
-- 29.06.2016 14:47
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET SeqNo=20, SeqNoGrid=20,Updated=TO_TIMESTAMP('2016-06-29 14:47:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557013
;
-- 29.06.2016 14:48
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET SeqNoGrid=10,Updated=TO_TIMESTAMP('2016-06-29 14:48:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557014
;
-- 29.06.2016 14:48
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2016-06-29 14:48:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557013
;
-- 29.06.2016 14:48
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET SeqNo=30, SeqNoGrid=30,Updated=TO_TIMESTAMP('2016-06-29 14:48:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557005
;
-- 29.06.2016 14:48
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsSameLine='Y', SeqNo=40, SeqNoGrid=40,Updated=TO_TIMESTAMP('2016-06-29 14:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557006
;
-- 29.06.2016 14:48
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET SeqNo=50, SeqNoGrid=50,Updated=TO_TIMESTAMP('2016-06-29 14:48:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557007
;
-- 29.06.2016 14:48
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsSameLine='Y', SeqNo=60, SeqNoGrid=60,Updated=TO_TIMESTAMP('2016-06-29 14:48:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557008
;
-- 29.06.2016 14:48
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET SeqNo=70, SeqNoGrid=70,Updated=TO_TIMESTAMP('2016-06-29 14:48:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557009
;
-- 29.06.2016 14:48
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsSameLine='Y', SeqNo=80, SeqNoGrid=80,Updated=TO_TIMESTAMP('2016-06-29 14:48:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557010
;
-- 29.06.2016 14:48
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET SeqNo=90, SeqNoGrid=90,Updated=TO_TIMESTAMP('2016-06-29 14:48:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557011
;
-- 29.06.2016 14:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsSameLine='Y', SeqNo=100, SeqNoGrid=100,Updated=TO_TIMESTAMP('2016-06-29 14:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557012
;
-- 29.06.2016 14:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET SeqNo=110, SeqNoGrid=110,Updated=TO_TIMESTAMP('2016-06-29 14:49:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557015
;
-- 29.06.2016 14:53
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=28,Updated=TO_TIMESTAMP('2016-06-29 14:53:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554762
;
-- 29.06.2016 14:53
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=28,Updated=TO_TIMESTAMP('2016-06-29 14:53:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554766
;
-- 29.06.2016 15:01
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=11,Updated=TO_TIMESTAMP('2016-06-29 15:01:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554766
;
-- 29.06.2016 15:53
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y',Updated=TO_TIMESTAMP('2016-06-29 15:53:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554761
;
-- 29.06.2016 15:53
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y',Updated=TO_TIMESTAMP('2016-06-29 15:53:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554764
;
-- 29.06.2016 15:53
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsAutocomplete='Y',Updated=TO_TIMESTAMP('2016-06-29 15:53:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554764
;
-- 29.06.2016 17:10
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=20,Updated=TO_TIMESTAMP('2016-06-29 17:10:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554775
;
|
<gh_stars>1-10
DROP DATABASE IF EXISTS localshop_database;
CREATE DATABASE localshop_database; |
CREATE SEQUENCE test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1
ALTER SEQUENCE test_sequence INCREMENT BY 10 MINVALUE 1 MAXVALUE 371717 CYCLE |
<reponame>octanner/kafka-api<gh_stars>0
# --- !Ups
CREATE TABLE TOPIC_KEY_MAPPING (
TOPIC_ID TEXT NOT NULL REFERENCES TOPIC(TOPIC_ID),
KEY_TYPE TEXT NOT NULL,
SCHEMA TEXT NULL,
VERSION INT NULL,
CLUSTER TEXT NOT NULL,
CREATED_TIMESTAMP TIMESTAMP DEFAULT now(),
PRIMARY KEY (TOPIC_ID)
); |
CREATE TABLE dbuserpasswordresettoken (Domain varchar(255), UserId varchar(255), Token varchar(255), ExpireDate datetime); |
/*
List all procedures and functions in the graph algorithms library (algo.*)
*/
CALL algo.list()
/*
List all procedures and functions in the graph algorithms library
whose name contains a given pattern, for instance "pageRank"
*/
CALL algo.list("pageRank")
|
-- =============================================
-- Create date: <2016/6/18>
-- Description: 查看数据库错误日志
-- =============================================
EXEC xp_readerrorlog 0,1,NULL,NULL,'2016-04-28','2018-10-10','DESC' |
<gh_stars>1000+
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.6.2
-- Dumped by pg_dump version 9.6.2
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET row_security = off;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
--
-- Name: add(integer, integer); Type: FUNCTION; Schema: public; Owner: gilles
--
CREATE FUNCTION add(integer, integer) RETURNS integer
LANGUAGE sql IMMUTABLE STRICT
AS $_$select $1 + $2;$_$;
ALTER FUNCTION public.add(integer, integer) OWNER TO gilles;
--
-- Name: check_password(text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text); Type: FUNCTION; Schema: public; Owner: gilles
--
CREATE FUNCTION check_password(uname1 text, pass1 text, uname2 text, pass2 text, uname3 text, pass3 text, uname4 text, pass4 text, uname5 text, pass5 text, uname6 text, pass6 text, uname7 text, pass7 text, uname8 text, pass8 text, uname9 text, pass9 text) RETURNS boolean
LANGUAGE plpgsql SECURITY DEFINER
SET search_path TO admin, pg_temp
AS $_$
DECLARE passed BOOLEAN;
BEGIN
SELECT (pwd = $2) INTO passed
FROM pwds
WHERE username = $1;
RETURN passed;
END;
$_$;
ALTER FUNCTION public.check_password(uname1 text, pass1 text, uname2 text, pass2 text, uname3 text, pass3 text, uname4 text, pass4 text, uname5 text, pass5 text, uname6 text, pass6 text, uname7 text, pass7 text, uname8 text, pass8 text, uname9 text, pass9 text) OWNER TO gilles;
--
-- Name: dup(integer); Type: FUNCTION; Schema: public; Owner: gilles
--
CREATE FUNCTION dup(integer, OUT f1 integer, OUT f2 text) RETURNS record
LANGUAGE sql
AS $_$ SELECT $1, CAST($1 AS text) || ' is text' $_$;
ALTER FUNCTION public.dup(integer, OUT f1 integer, OUT f2 text) OWNER TO gilles;
--
-- Name: increment(integer); Type: FUNCTION; Schema: public; Owner: gilles
--
CREATE FUNCTION increment(i integer) RETURNS integer
LANGUAGE plpgsql
AS $$
BEGIN
RETURN i + 1;
END;
$$;
ALTER FUNCTION public.increment(i integer) OWNER TO gilles;
--
-- Name: peuple_stock(integer, integer); Type: FUNCTION; Schema: public; Owner: userdb
--
CREATE FUNCTION peuple_stock(annee_debut integer, annee_fin integer) RETURNS bigint
LANGUAGE plpgsql
AS $$
DECLARE
v_annee integer;
v_nombre integer;
v_contenant_id integer;
v_vin_id integer;
compteur bigint :=0;
annees integer;
contenants integer;
vins integer;
tuples_a_generer integer;
BEGIN
-- vider la table de stock
truncate table stock;
-- calculer le nombre d'annees
select (annee_fin-annee_debut)+1 into annees;
-- nombre de contenants
select count(*) from contenant into contenants;
-- nombre de vins
select count(*) from vin into vins;
-- calcul des combinaisons
select annees*contenants*vins into tuples_a_generer;
--on boucle sur tous les millesimes: disons 1930 a 2000
-- soit 80 annees
for v_annee in annee_debut .. annee_fin loop
-- on boucle sur les contenants possibles
for v_contenant_id in 1 .. contenants loop
-- idem pour l'id du vin
for v_vin_id in 1 .. vins loop
-- on prends un nombre de bouteilles compris entre 6 et 18
select round(random()*12)+6
into v_nombre;
-- insertion dans la table de stock
insert into stock (vin_id, contenant_id, annee, nombre)
values (v_vin_id, v_contenant_id, v_annee, v_nombre);
if (((compteur%1000)=0) or (compteur=tuples_a_generer)) then
raise notice 'stock : % sur % tuples generes', compteur, tuples_a_generer;
end if;
compteur := compteur + 1;
end loop; --fin boucle vin
end loop; -- fin boucle contenant
end loop; --fin boucle annee
RETURN compteur;
END;
$$;
ALTER FUNCTION public.peuple_stock(annee_debut integer, annee_fin integer) OWNER TO userdb;
--
-- Name: peuple_vin(); Type: FUNCTION; Schema: public; Owner: userdb
--
CREATE FUNCTION peuple_vin() RETURNS bigint
LANGUAGE plpgsql
AS $$
DECLARE
v_recoltant_id integer;
v_appellation_id integer;
v_type_vin_id integer;
recoltants integer;
appellations integer;
types_vins integer;
tuples_a_generer integer;
compteur bigint :=0;
BEGIN
-- vider la table de stock, qui depend de vin, puis vin
delete from stock;
delete from vin;
-- compter le nombre de recoltants
select count(*) from recoltant into recoltants;
-- compter le nombre d'appellations
select count(*) from appellation into appellations;
-- compter le nombre de types de vins
select count(*) from type_vin into types_vins;
-- calculer le nombre de combinaisons possibles
select (recoltants*appellations*types_vins) into tuples_a_generer;
--on boucle sur tous les recoltants
for v_recoltant_id in 1 .. recoltants loop
-- on boucle sur les appelations
for v_appellation_id in 1 .. appellations loop
-- on boucle sur les types de vins
for v_type_vin_id in 1 .. types_vins loop
-- insertion dans la table de vin
insert into vin (recoltant_id, appellation_id, type_vin_id)
values (v_recoltant_id, v_appellation_id, v_type_vin_id);
if (((compteur%1000)=0) or (compteur=tuples_a_generer)) then
raise notice 'vins : % sur % tuples generes', compteur, tuples_a_generer;
end if;
compteur := compteur + 1;
end loop; --fin boucle type vin
end loop; -- fin boucle appellations
end loop; --fin boucle recoltants
RETURN compteur;
END;
$$;
ALTER FUNCTION public.peuple_vin() OWNER TO userdb;
--
-- Name: trous_stock(); Type: FUNCTION; Schema: public; Owner: userdb
--
CREATE FUNCTION trous_stock() RETURNS bigint
LANGUAGE plpgsql
AS $$
DECLARE
stock_total integer;
echantillon integer;
vins_disponibles integer;
contenants_disponibles integer;
v_vin_id integer;
v_contenant_id integer;
v_tuples bigint := 0;
annee_min integer;
annee_max integer;
v_annee integer;
BEGIN
-- on compte le nombre de tuples dans stock
select count(*) from stock into stock_total;
raise NOTICE 'taille du stock %', stock_total;
-- on calcule la taille de l'echantillon a
-- supprimer de la table stock
select round(stock_total/10) into echantillon;
raise NOTICE 'taille de l''echantillon %', echantillon;
-- on compte le nombre de vins disponibles
select count(*) from vin into vins_disponibles;
raise NOTICE '% vins disponibles', vins_disponibles;
-- on compte le nombre de contenants disponibles
select count(*) from contenant into contenants_disponibles;
raise NOTICE '% contenants disponibles', contenants_disponibles;
-- on recupere les bornes min/max de annees
select min(annee), max(annee)
from stock
into annee_min, annee_max;
-- on fait une boucle correspondant a 1% des tuples
-- de la table stock
for v_tuples in 1 .. echantillon loop
-- selection d'identifiant, au hasard
--select round(random()*contenants_disponibles) into v_contenant_id;
v_contenant_id := round(random()*contenants_disponibles);
--select round(random()*vins_disponibles) into v_vin_id;
v_vin_id := round(random()*vins_disponibles);
v_annee := round(random()*(annee_max-annee_min))+(annee_min);
-- si le tuple est deja efface, ce n'est pas grave..
delete
from stock
where
contenant_id = v_contenant_id
and vin_id = v_vin_id
and annee = v_annee;
if (((v_tuples%100)=0) or (v_tuples=echantillon)) then
raise notice 'stock : % sur % echantillon effaces',v_tuples, echantillon;
end if;
end loop; --fin boucle v_tuples
RETURN echantillon;
END;
$$;
ALTER FUNCTION public.trous_stock() OWNER TO userdb;
--
-- Name: trous_vin(); Type: FUNCTION; Schema: public; Owner: userdb
--
CREATE FUNCTION trous_vin() RETURNS bigint
LANGUAGE plpgsql
AS $$
DECLARE
vin_total integer;
echantillon integer;
v_vin_id integer;
v_tuples bigint := 0;
v_annee integer;
BEGIN
-- on compte le nombre de tuples dans vin
select count(*) from vin into vin_total;
raise NOTICE '% vins disponibles', vin_total;
-- on calcule la taille de l'echantillon a
-- supprimer de la table vin
select round(vin_total/10) into echantillon;
raise NOTICE 'taille de l''echantillon %', echantillon;
-- on fait une boucle correspondant a 10% des tuples
-- de la table vin
for v_tuples in 1 .. echantillon loop
-- selection d'identifiant, au hasard
v_vin_id := round(random()*vin_total);
-- si le tuple est deja efface, ce n'est pas grave..
-- TODO remplacer ce delete par un trigger on delete cascade
-- voir dans druid le schema???
delete
from stock
where vin_id = v_vin_id;
delete
from vin
where id = v_vin_id;
if (((v_tuples%100)=0) or (v_tuples=echantillon)) then
raise notice 'vin : % sur % echantillon effaces',v_tuples, echantillon;
end if;
end loop; --fin boucle v_tuples
RETURN echantillon;
END;
$$;
ALTER FUNCTION public.trous_vin() OWNER TO userdb;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: appellation; Type: TABLE; Schema: public; Owner: userdb
--
CREATE TABLE appellation (
id integer NOT NULL,
libelle text NOT NULL,
region_id integer
)
WITH (autovacuum_enabled=off);
ALTER TABLE appellation OWNER TO userdb;
--
-- Name: appellation_id_seq; Type: SEQUENCE; Schema: public; Owner: userdb
--
CREATE SEQUENCE appellation_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE appellation_id_seq OWNER TO userdb;
--
-- Name: appellation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: userdb
--
ALTER SEQUENCE appellation_id_seq OWNED BY appellation.id;
--
-- Name: contenant; Type: TABLE; Schema: public; Owner: userdb
--
CREATE TABLE contenant (
id integer NOT NULL,
contenance real NOT NULL,
libelle text
)
WITH (autovacuum_enabled=off, fillfactor='20');
ALTER TABLE contenant OWNER TO userdb;
--
-- Name: contenant_id_seq; Type: SEQUENCE; Schema: public; Owner: userdb
--
CREATE SEQUENCE contenant_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE contenant_id_seq OWNER TO userdb;
--
-- Name: contenant_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: userdb
--
ALTER SEQUENCE contenant_id_seq OWNED BY contenant.id;
--
-- Name: recoltant; Type: TABLE; Schema: public; Owner: userdb
--
CREATE TABLE recoltant (
id integer NOT NULL,
nom text,
adresse text
)
WITH (autovacuum_enabled=off);
ALTER TABLE recoltant OWNER TO userdb;
--
-- Name: recoltant_id_seq; Type: SEQUENCE; Schema: public; Owner: userdb
--
CREATE SEQUENCE recoltant_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE recoltant_id_seq OWNER TO userdb;
--
-- Name: recoltant_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: userdb
--
ALTER SEQUENCE recoltant_id_seq OWNED BY recoltant.id;
--
-- Name: region; Type: TABLE; Schema: public; Owner: userdb
--
CREATE TABLE region (
id integer NOT NULL,
libelle text NOT NULL
)
WITH (autovacuum_enabled=off);
ALTER TABLE region OWNER TO userdb;
--
-- Name: region_id_seq; Type: SEQUENCE; Schema: public; Owner: userdb
--
CREATE SEQUENCE region_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE region_id_seq OWNER TO userdb;
--
-- Name: region_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: userdb
--
ALTER SEQUENCE region_id_seq OWNED BY region.id;
--
-- Name: stock; Type: TABLE; Schema: public; Owner: userdb
--
CREATE TABLE stock (
vin_id integer NOT NULL,
contenant_id integer NOT NULL,
annee integer NOT NULL,
nombre integer NOT NULL
)
WITH (autovacuum_enabled=off);
ALTER TABLE stock OWNER TO userdb;
--
-- Name: type_vin; Type: TABLE; Schema: public; Owner: userdb
--
CREATE TABLE type_vin (
id integer NOT NULL,
libelle text NOT NULL
)
WITH (autovacuum_enabled=off);
ALTER TABLE type_vin OWNER TO userdb;
--
-- Name: type_vin_id_seq; Type: SEQUENCE; Schema: public; Owner: userdb
--
CREATE SEQUENCE type_vin_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE type_vin_id_seq OWNER TO userdb;
--
-- Name: type_vin_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: userdb
--
ALTER SEQUENCE type_vin_id_seq OWNED BY type_vin.id;
--
-- Name: vin; Type: TABLE; Schema: public; Owner: userdb
--
CREATE TABLE vin (
id integer NOT NULL,
recoltant_id integer,
appellation_id integer NOT NULL,
type_vin_id integer NOT NULL
)
WITH (autovacuum_enabled=off);
ALTER TABLE vin OWNER TO userdb;
--
-- Name: vin_id_seq; Type: SEQUENCE; Schema: public; Owner: userdb
--
CREATE SEQUENCE vin_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE vin_id_seq OWNER TO userdb;
--
-- Name: vin_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: userdb
--
ALTER SEQUENCE vin_id_seq OWNED BY vin.id;
--
-- Name: appellation id; Type: DEFAULT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY appellation ALTER COLUMN id SET DEFAULT nextval('appellation_id_seq'::regclass);
--
-- Name: contenant id; Type: DEFAULT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY contenant ALTER COLUMN id SET DEFAULT nextval('contenant_id_seq'::regclass);
--
-- Name: recoltant id; Type: DEFAULT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY recoltant ALTER COLUMN id SET DEFAULT nextval('recoltant_id_seq'::regclass);
--
-- Name: region id; Type: DEFAULT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY region ALTER COLUMN id SET DEFAULT nextval('region_id_seq'::regclass);
--
-- Name: type_vin id; Type: DEFAULT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY type_vin ALTER COLUMN id SET DEFAULT nextval('type_vin_id_seq'::regclass);
--
-- Name: vin id; Type: DEFAULT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY vin ALTER COLUMN id SET DEFAULT nextval('vin_id_seq'::regclass);
--
-- Name: appellation appellation_libelle_key; Type: CONSTRAINT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY appellation
ADD CONSTRAINT appellation_libelle_key UNIQUE (libelle);
--
-- Name: appellation appellation_pkey; Type: CONSTRAINT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY appellation
ADD CONSTRAINT appellation_pkey PRIMARY KEY (id);
--
-- Name: contenant contenant_pkey; Type: CONSTRAINT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY contenant
ADD CONSTRAINT contenant_pkey PRIMARY KEY (id);
--
-- Name: recoltant recoltant_pkey; Type: CONSTRAINT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY recoltant
ADD CONSTRAINT recoltant_pkey PRIMARY KEY (id);
--
-- Name: region region_pkey; Type: CONSTRAINT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY region
ADD CONSTRAINT region_pkey PRIMARY KEY (id);
--
-- Name: stock stock_pkey; Type: CONSTRAINT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY stock
ADD CONSTRAINT stock_pkey PRIMARY KEY (vin_id, contenant_id, annee);
--
-- Name: type_vin type_vin_pkey; Type: CONSTRAINT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY type_vin
ADD CONSTRAINT type_vin_pkey PRIMARY KEY (id);
--
-- Name: vin vin_pkey; Type: CONSTRAINT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY vin
ADD CONSTRAINT vin_pkey PRIMARY KEY (id);
--
-- Name: appellation appellation_region_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY appellation
ADD CONSTRAINT appellation_region_id_fkey FOREIGN KEY (region_id) REFERENCES region(id) ON DELETE CASCADE;
--
-- Name: stock stock_contenant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY stock
ADD CONSTRAINT stock_contenant_id_fkey FOREIGN KEY (contenant_id) REFERENCES contenant(id) ON DELETE CASCADE;
--
-- Name: stock stock_vin_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY stock
ADD CONSTRAINT stock_vin_id_fkey FOREIGN KEY (vin_id) REFERENCES vin(id) ON DELETE CASCADE;
--
-- Name: vin vin_appellation_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY vin
ADD CONSTRAINT vin_appellation_id_fkey FOREIGN KEY (appellation_id) REFERENCES appellation(id) ON DELETE CASCADE;
--
-- Name: vin vin_recoltant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY vin
ADD CONSTRAINT vin_recoltant_id_fkey FOREIGN KEY (recoltant_id) REFERENCES recoltant(id) ON DELETE CASCADE;
--
-- Name: vin vin_type_vin_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: userdb
--
ALTER TABLE ONLY vin
ADD CONSTRAINT vin_type_vin_id_fkey FOREIGN KEY (type_vin_id) REFERENCES type_vin(id) ON DELETE CASCADE;
--
-- PostgreSQL database dump complete
--
|
<reponame>Anshelen/portfolio<gh_stars>0
ALTER TABLE account
ADD COLUMN version INTEGER DEFAULT 0;
ALTER TABLE verification_token
ADD COLUMN version INTEGER DEFAULT 0;
|
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Servidor: localhost
-- Tiempo de generación: 14-11-2018 a las 18:55:56
-- Versión del servidor: 10.1.36-MariaDB
-- Versión de 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 */;
--
-- Base de datos: `somosmoa`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `iva`
--
CREATE TABLE `iva` (
`id` int(10) NOT NULL,
`iva` decimal(6,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Volcado de datos para la tabla `iva`
--
INSERT INTO `iva` (`id`, `iva`) VALUES
(0, '16.50');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `mesas`
--
CREATE TABLE `mesas` (
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Volcado de datos para la tabla `mesas`
--
INSERT INTO `mesas` (`id`) VALUES
(1),
(2),
(3),
(4),
(5),
(6),
(7),
(8),
(9),
(10),
(11),
(12);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tb_cafe`
--
CREATE TABLE `tb_cafe` (
`id` int(11) NOT NULL,
`id_comanda` int(12) NOT NULL,
`h_entrada` time NOT NULL,
`h_salida` time NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tb_clientes`
--
CREATE TABLE `tb_clientes` (
`id` int(11) NOT NULL,
`nombres` varchar(50) NOT NULL,
`apellidos` varchar(50) NOT NULL,
`cedula` varchar(10) NOT NULL,
`direccion` varchar(50) NOT NULL,
`telf1` varchar(20) NOT NULL,
`facebook` varchar(50) NOT NULL,
`twitter` varchar(50) NOT NULL,
`instagram` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Clientes';
--
-- Volcado de datos para la tabla `tb_clientes`
--
INSERT INTO `tb_clientes` (`id`, `nombres`, `apellidos`, `cedula`, `direccion`, `telf1`, `facebook`, `twitter`, `instagram`, `email`) VALUES
(1, 'Mireya ', 'Arellano de Contreras', '6326095', 'carr 22, cale 16 # 22-85', '+584241051197', '', '', '', '<EMAIL>'),
(2, 'Aarón', '<NAME>', '19153540', 'carrera 22 bo', '+58412468357', '', '', '', ''),
(5, 'Camilo', 'Contreras S.', '9412468', 'carr 22, cale 16 # 22-85', '+584141266763', '', '', '', ''),
(6, 'Angel', 'Contreras', '11204022', '<NAME>', '+584141266763', '', '', '', '<EMAIL>'),
(10, 'Nuevo', 'Cliente', '1754354', '', '', '', '', '', ''),
(11, 'Nuevo', 'Cliente', '85467528', '', '', '', '', '', ''),
(12, 'Nuevo', 'Cliente', '995544', '', '', '', '', '', ''),
(13, 'Nuevo', 'Cliente', '998877', '', '', '', '', '', ''),
(14, '', '', '21218934', '', '', '', '', '', ''),
(15, '', '', '12345677', '', '', '', '', '', ''),
(16, '', '', '11223322', '', '', '', '', '', ''),
(17, '', '', '21002087', '', '', '', '', '', '');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tb_cocina`
--
CREATE TABLE `tb_cocina` (
`id` int(11) NOT NULL,
`id_comanda` int(12) NOT NULL,
`h_entrada` time NOT NULL,
`h_salida` time NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='recepcion y despacho de comandas';
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tb_comandas`
--
CREATE TABLE `tb_comandas` (
`id` int(11) NOT NULL,
`id_productos` varchar(50) NOT NULL,
`ctd` varchar(50) NOT NULL,
`id_usuario` int(4) NOT NULL,
`id_mesa` int(4) NOT NULL,
`id_cliente` int(4) NOT NULL,
`status` tinyint(1) NOT NULL,
`status_cafe` int(1) NOT NULL,
`status_cocina` int(1) NOT NULL,
`obs_expressos` varchar(125) DEFAULT NULL,
`obs_lattes` varchar(125) DEFAULT NULL,
`obs_bfrias` varchar(125) DEFAULT NULL,
`obs_energy` varchar(125) DEFAULT NULL,
`obs_shake` varchar(125) DEFAULT NULL,
`obs_fruits` varchar(125) DEFAULT NULL,
`obs_paninis` varchar(125) DEFAULT NULL,
`obs_salads` varchar(125) DEFAULT NULL,
`obs_hotcakes` varchar(125) DEFAULT NULL,
`obs_cakes` varchar(125) DEFAULT NULL,
`obs_deserts` varchar(125) DEFAULT NULL,
`h_pedido` time NOT NULL,
`h_entrega` time NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Pedidos de cada mesa';
--
-- Volcado de datos para la tabla `tb_comandas`
--
INSERT INTO `tb_comandas` (`id`, `id_productos`, `ctd`, `id_usuario`, `id_mesa`, `id_cliente`, `status`, `status_cafe`, `status_cocina`, `obs_expressos`, `obs_lattes`, `obs_bfrias`, `obs_energy`, `obs_shake`, `obs_fruits`, `obs_paninis`, `obs_salads`, `obs_hotcakes`, `obs_cakes`, `obs_deserts`, `h_pedido`, `h_entrega`) VALUES
(26, '1', '1', 2, 2, 85467528, 1, 2, 0, '', '', '', '', '', '', '', '', '', '', '', '12:52:20', '00:00:00'),
(27, '1,2,7', '4,3,1', 2, 4, 6326095, 1, 2, 0, '', '', '', '', '', '', '', '', '', '', '', '21:13:21', '00:00:00'),
(28, '1', '2', 2, 6, 12345677, 1, 2, 0, '', '', '', '', '', '', '', '', '', '', '', '21:16:37', '00:00:00');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tb_facturacion`
--
CREATE TABLE `tb_facturacion` (
`id` int(11) NOT NULL,
`id_comanda` int(12) NOT NULL,
`fecha` date NOT NULL,
`sub_total` int(12) NOT NULL,
`iva` int(2) NOT NULL,
`total` int(12) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Facturación';
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tb_productos`
--
CREATE TABLE `tb_productos` (
`id` int(11) NOT NULL,
`grupo` varchar(10) NOT NULL,
`area` varchar(10) NOT NULL,
`id_iva` int(12) NOT NULL DEFAULT '1',
`producto` varchar(50) NOT NULL,
`base_imponible` decimal(12,2) NOT NULL,
`iva` decimal(12,2) NOT NULL,
`total` decimal(12,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Volcado de datos para la tabla `tb_productos`
--
INSERT INTO `tb_productos` (`id`, `grupo`, `area`, `id_iva`, `producto`, `base_imponible`, `iva`, `total`) VALUES
(1, 'expresso', 'cafe', 1, 'ESPRESSO ', '0.00', '0.00', '0.00'),
(2, 'expresso', 'cafe', 1, 'RISTRETO ', '0.00', '0.00', '0.00'),
(3, 'expresso', 'cafe', 1, 'TRIPLE RISTRETO ', '0.00', '0.00', '0.00'),
(4, 'expresso', 'cafe', 1, 'LUNGO ', '0.00', '0.00', '0.00'),
(5, 'expresso', 'cafe', 1, 'DOPPIO RISTRETO ', '0.00', '0.00', '0.00'),
(6, 'expresso', 'cafe', 1, 'AMERICANO ', '0.00', '0.00', '0.00'),
(7, 'lattes', 'cafe', 1, 'LATTE ORANGE ', '0.00', '0.00', '0.00'),
(8, 'expresso', 'cafe', 1, 'ESPRESSO DE GUARANA ', '0.00', '0.00', '0.00'),
(9, 'lattes', 'cafe', 1, 'LATTE VAINILLA ', '0.00', '0.00', '0.00'),
(10, 'lattes', 'cafe', 1, 'LATTE CAPUCCINO ', '0.00', '0.00', '0.00'),
(11, 'lattes', 'cafe', 1, 'CAPUCCINO DOPPIO ', '0.00', '0.00', '0.00'),
(12, 'lattes', 'cafe', 1, 'MACHIATONE ', '0.00', '0.00', '0.00'),
(13, 'lattes', 'cafe', 1, 'MACHIATTO ', '0.00', '0.00', '0.00'),
(14, 'lattes', 'cafe', 1, 'MOCHA ', '0.00', '0.00', '0.00'),
(15, 'lattes', 'cafe', 1, 'BOMBOM', '0.00', '0.00', '0.00'),
(16, 'lattes', 'cafe', 1, 'CHOCOMILK ', '0.00', '0.00', '0.00'),
(17, 'energizant', 'cocina', 1, 'DETOX CLASIC ', '0.00', '0.00', '0.00'),
(18, 'energizant', 'cocina', 1, 'DETOX MOA ', '0.00', '0.00', '0.00'),
(19, 'energizant', 'cocina', 1, 'ENERGY MOA ', '0.00', '0.00', '0.00'),
(20, 'energizant', 'cocina', 1, 'ENERGY ORANGE ', '0.00', '0.00', '0.00'),
(21, 'energizant', 'cocina', 1, 'MOATON', '0.00', '0.00', '0.00'),
(22, 'energizant', 'cocina', 1, 'J<NAME> ', '0.00', '0.00', '0.00'),
(23, 'energizant', 'cocina', 1, 'GUANABI MOA ', '0.00', '0.00', '0.00'),
(24, 'b_frias', 'cocina', 1, 'FRAPPE', '0.00', '0.00', '0.00'),
(25, 'b_frias', 'cocina', 1, 'FRAPUCCINO ', '0.00', '0.00', '0.00'),
(26, 'b_frias', 'cocina', 1, 'FRAPPU ESPECIAL ', '0.00', '0.00', '0.00'),
(27, 'b_frias', 'cocina', 1, 'ICE COCONUT ', '0.00', '0.00', '0.00'),
(28, 'b_frias', 'cocina', 1, 'ICE COFFE ', '0.00', '0.00', '0.00'),
(29, 'b_frias', 'cocina', 1, 'ICE ORANGE ', '0.00', '0.00', '0.00'),
(30, 'b_frias', 'cocina', 1, '<NAME> ', '0.00', '0.00', '0.00'),
(31, 'b_frias', 'cocina', 1, 'TE VERDE ', '0.00', '0.00', '0.00'),
(32, 'b_frias', 'cocina', 1, 'TIZANA ', '0.00', '0.00', '0.00'),
(33, 'tortas', 'cocina', 1, 'BROWNIE ', '0.00', '0.00', '0.00'),
(34, 'tortas', 'cocina', 1, '<NAME> ', '0.00', '0.00', '0.00'),
(35, 'tortas', 'cocina', 1, '<NAME> ', '0.00', '0.00', '0.00'),
(36, 'tortas', 'cocina', 1, '<NAME>', '0.00', '0.00', '0.00'),
(37, 'tortas', 'cocina', 1, '<NAME> ', '0.00', '0.00', '0.00'),
(38, 'tortas', 'cocina', 1, '<NAME> ', '0.00', '0.00', '0.00'),
(39, 'tortas', 'cocina', 1, 'CHEES CAKE ', '0.00', '0.00', '0.00'),
(40, 'postres', 'cocina', 1, 'ICE BROWNIE ', '0.00', '0.00', '0.00'),
(41, 'postres', 'cocina', 1, '<NAME> ', '0.00', '0.00', '0.00'),
(42, 'postres', 'cocina', 1, '<NAME> ', '0.00', '0.00', '0.00'),
(43, 'postres', 'cocina', 1, '<NAME>', '0.00', '0.00', '0.00'),
(44, 'postres', 'cocina', 1, 'PIE ', '0.00', '0.00', '0.00'),
(45, 'postres', 'cocina', 1, '<NAME>', '0.00', '0.00', '0.00'),
(46, 'postres', 'cocina', 1, 'PARFAIT ', '0.00', '0.00', '0.00'),
(47, 'postres', 'cocina', 1, '<NAME>', '0.00', '0.00', '0.00'),
(48, 'p_caliente', 'cocina', 1, 'PANQUECAS ', '0.00', '0.00', '0.00'),
(49, 'p_caliente', 'cocina', 1, 'WAFLE ', '0.00', '0.00', '0.00'),
(50, 'p_caliente', 'cocina', 1, 'CREPE ', '0.00', '0.00', '0.00'),
(51, 'panini', 'cocina', 1, 'AMERICANO ', '0.00', '0.00', '0.00'),
(52, 'panini', 'cocina', 1, '<NAME> ', '0.00', '0.00', '0.00'),
(53, 'panini', 'cocina', 1, 'DES<NAME> ', '0.00', '0.00', '0.00'),
(54, 'panini', 'cocina', 1, 'MONTADITO DE ATUN', '0.00', '0.00', '0.00'),
(55, 'panini', 'cocina', 1, 'PAN<NAME> ', '0.00', '0.00', '0.00'),
(56, 'panini', 'cocina', 1, 'ROAST BEEFS ', '0.00', '0.00', '0.00'),
(57, 'panini', 'cocina', 1, 'VEGANO ', '0.00', '0.00', '0.00'),
(58, 'ensaladas', 'cocina', 1, 'ENSALADA CESAR ', '0.00', '0.00', '0.00'),
(59, 'ensaladas', 'cocina', 1, 'ENSALADA DEL MAR', '0.00', '0.00', '0.00'),
(60, 'ensaladas', 'cocina', 1, 'ENSALADA MOA ', '0.00', '0.00', '0.00'),
(61, 'ensaladas', 'cocina', 1, 'GREEN SALAD ', '0.00', '0.00', '0.00'),
(62, 'm_frutas', 'cocina', 1, 'COCADA ', '0.00', '0.00', '0.00'),
(63, 'm_frutas', 'cocina', 1, 'COCADA ESPECIAL ', '0.00', '0.00', '0.00'),
(64, 'm_frutas', 'cocina', 1, 'MERENGADA FRUTA ', '0.00', '0.00', '0.00'),
(65, 'm_frutas', 'cocina', 1, 'MERENGADA FRUTA ESPECIAL ', '0.00', '0.00', '0.00'),
(66, 'merengadas', 'cocina', 1, 'HELADO ', '0.00', '0.00', '0.00'),
(67, 'merengadas', 'cocina', 1, 'CHOCO ESPECIAL ', '0.00', '0.00', '0.00'),
(68, 'merengadas', 'cocina', 1, 'CHOCO/OREO ', '0.00', '0.00', '0.00'),
(69, 'merengadas', 'cocina', 1, 'MILK SHAKE ', '0.00', '0.00', '0.00'),
(70, 'merengadas', 'cocina', 1, ' PIE ', '0.00', '0.00', '0.00'),
(71, 'merengadas', 'cocina', 1, 'PIE ESPECIAL ', '0.00', '0.00', '0.00'),
(72, 'merengadas', 'cocina', 1, 'SAMBA ', '0.00', '0.00', '0.00'),
(73, 'merengadas', 'cocina', 1, 'M.S. ESPECIAL', '0.00', '0.00', '0.00'),
(74, 'merengadas', 'cocina', 1, 'SAMBA ESPECIAL ', '0.00', '0.00', '0.00');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tb_rol`
--
CREATE TABLE `tb_rol` (
`id` int(11) NOT NULL,
`descripcion` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Volcado de datos para la tabla `tb_rol`
--
INSERT INTO `tb_rol` (`id`, `descripcion`) VALUES
(1, 'Admin'),
(2, 'Caja'),
(3, 'Mesa'),
(4, 'Cafe'),
(5, 'Cocina');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tb_usuarios`
--
CREATE TABLE `tb_usuarios` (
`id` int(11) NOT NULL,
`id_rol` int(2) NOT NULL,
`username` varchar(20) NOT NULL,
`password` varchar(12) NOT NULL,
`nombres` varchar(50) NOT NULL,
`apellidos` varchar(50) NOT NULL,
`cedula` varchar(10) NOT NULL,
`direccion` varchar(125) NOT NULL,
`telf1` varchar(20) NOT NULL,
`telf2` varchar(20) NOT NULL,
`email` varchar(50) NOT NULL,
`facebook` varchar(50) NOT NULL,
`twitter` varchar(50) NOT NULL,
`instagram` varchar(50) NOT NULL,
`f_ingreso` date NOT NULL,
`f_egreso` date DEFAULT NULL,
`authKey` varchar(50) NOT NULL,
`accessToken` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Usuarios y empleados';
--
-- Volcado de datos para la tabla `tb_usuarios`
--
INSERT INTO `tb_usuarios` (`id`, `id_rol`, `username`, `password`, `nombres`, `apellidos`, `cedula`, `direccion`, `telf1`, `telf2`, `email`, `facebook`, `twitter`, `instagram`, `f_ingreso`, `f_egreso`, `authKey`, `accessToken`) VALUES
(1, 1, 'Admin', '123456', 'Admin', 'Administrador@', '9412468', 'carr 22, cale 16 # 22-85', '+58123123467', '+58123123467', '<EMAIL>', 'fff', 'ttt', 'iii', '2018-09-05', '2018-09-05', '', ''),
(2, 3, 'Mesas', '123456', 'Mesa', 'Meserer@', '94124682', 'carr 22, cale 16 # 22-85, Bar<NAME>2', '+581231234672', '+581231234672', '<EMAIL>', 'fff2', 'ttt2', 'iii2', '2018-09-06', '2018-09-06', '', ''),
(3, 4, 'Cafe', '123456', 'Cafe', 'Lattes@', '94124683', 'carr 22, cale 16 # 22-85', '+58123123467', '+581231234672', '<EMAIL>', 'fff', 'ttt', 'iii', '2018-09-15', '2018-09-15', '', ''),
(4, 5, 'Cocina', '123456', 'Cocina', 'Paninis@', '123456789', 'MCO:85316 2250NW 114th Ave', '+58123123467', '', '', '', '', '', '2018-09-18', NULL, '', '');
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `iva`
--
ALTER TABLE `iva`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `mesas`
--
ALTER TABLE `mesas`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `tb_cafe`
--
ALTER TABLE `tb_cafe`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id_comanda` (`id_comanda`);
--
-- Indices de la tabla `tb_clientes`
--
ALTER TABLE `tb_clientes`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `tb_cocina`
--
ALTER TABLE `tb_cocina`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id_comanda` (`id_comanda`);
--
-- Indices de la tabla `tb_comandas`
--
ALTER TABLE `tb_comandas`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `tb_facturacion`
--
ALTER TABLE `tb_facturacion`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id_comanda` (`id_comanda`);
--
-- Indices de la tabla `tb_productos`
--
ALTER TABLE `tb_productos`
ADD PRIMARY KEY (`id`),
ADD KEY `id_iva` (`id_iva`),
ADD KEY `id` (`id`),
ADD KEY `id_iva_2` (`id_iva`);
--
-- Indices de la tabla `tb_rol`
--
ALTER TABLE `tb_rol`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `tb_usuarios`
--
ALTER TABLE `tb_usuarios`
ADD PRIMARY KEY (`id`),
ADD KEY `id_rol` (`id_rol`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `mesas`
--
ALTER TABLE `mesas`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT de la tabla `tb_cafe`
--
ALTER TABLE `tb_cafe`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `tb_clientes`
--
ALTER TABLE `tb_clientes`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT de la tabla `tb_cocina`
--
ALTER TABLE `tb_cocina`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `tb_comandas`
--
ALTER TABLE `tb_comandas`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;
--
-- AUTO_INCREMENT de la tabla `tb_facturacion`
--
ALTER TABLE `tb_facturacion`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `tb_productos`
--
ALTER TABLE `tb_productos`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=75;
--
-- AUTO_INCREMENT de la tabla `tb_rol`
--
ALTER TABLE `tb_rol`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT de la tabla `tb_usuarios`
--
ALTER TABLE `tb_usuarios`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- Restricciones para tablas volcadas
--
--
-- Filtros para la tabla `tb_cafe`
--
ALTER TABLE `tb_cafe`
ADD CONSTRAINT `tb_cafe_ibfk_1` FOREIGN KEY (`id_comanda`) REFERENCES `tb_comandas` (`id`);
--
-- Filtros para la tabla `tb_cocina`
--
ALTER TABLE `tb_cocina`
ADD CONSTRAINT `tb_cocina_ibfk_1` FOREIGN KEY (`id_comanda`) REFERENCES `tb_comandas` (`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 */;
|
CREATE TABLE "room"."ShuffleAlgorithm"("name" text NOT NULL, "description" text NOT NULL, PRIMARY KEY ("name") );
|
drop table if exists TPRIVILEGE;
CREATE TABLE PUBLIC.TPRIVILEGE (
C_PRIVILEGEID VARCHAR(100),
C_PRIVILEGECODE VARCHAR(100),
C_PRIVILEGENAME VARCHAR(100),
C_PRIVILEGEFULLCODE VARCHAR(100),
C_PARENTFULLCODE VARCHAR(100),
C_PRIVILEGETYPE VARCHAR(100),
C_PRIVILEGEURL VARCHAR(100),
C_ICON VARCHAR(100),
L_SORTID INTEGER,
C_PRIVILEGEDESC VARCHAR(100),
C_CREATEDBYID VARCHAR(100),
D_CREATEDTIME DATE,
C_LASTMODIFIEDBYID VARCHAR(100),
D_LASTMODIFIEDTIME DATE
);
|
CREATE TABLE facts(
factsID SERIAL NOT NULL PRIMARY KEY,
dateCreated TIMESTAMPTZ NOT NULL DEFAULT NOW(),
data JSON NOT NULL
);
CREATE OR REPLACE FUNCTION trigger_set_timestamp()
RETURNS TRIGGER AS $$
BEGIN
NEW.updated_at = NOW();
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
CREATE TRIGGER set_timestamp
BEFORE UPDATE ON facts
FOR EACH ROW
EXECUTE PROCEDURE trigger_set_timestamp(); |
<reponame>uk-gov-mirror/SkillsFundingAgency.das-login-service<filename>src/SFA.DAS.LoginService.Database/Tables/IdentityServer/IdentityServer.ApiProperties.sql
CREATE TABLE [IdentityServer].[ApiProperties]
(
[Id] [int] IDENTITY(1,1) NOT NULL,
[Key] [nvarchar](250) NOT NULL,
[Value] [nvarchar](2000) NOT NULL,
[ApiResourceId] [int] NOT NULL,
CONSTRAINT [PK_ApiProperties] 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]
GO
ALTER TABLE [IdentityServer].[ApiProperties] ADD CONSTRAINT [FK_ApiProperties_ApiResources_ApiResourceId] FOREIGN KEY([ApiResourceId])
REFERENCES [IdentityServer].[ApiResources] ([Id])
ON DELETE CASCADE
GO
ALTER TABLE [IdentityServer].[ApiProperties] CHECK CONSTRAINT [FK_ApiProperties_ApiResources_ApiResourceId]
GO
|
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603811',@CutoffDate = N'2017-09-30',@EPS = N'0.58',@EPSDeduct = N'0',@Revenue = N'2.27亿',@RevenueYoy = N'6.35',@RevenueQoq = N'17.91',@Profit = N'4561.75万',@ProfitYoy = N'1.06',@ProfiltQoq = N'-1.91',@NAVPerUnit = N'6.7392',@ROE = N'9.58',@CashPerUnit = N'0.3898',@GrossProfitRate = N'50.86',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-26'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603811',@CutoffDate = N'2017-06-30',@EPS = N'0.4',@EPSDeduct = N'0.36',@Revenue = N'1.49亿',@RevenueYoy = N'-2.33',@RevenueQoq = N'-19.46',@Profit = N'3004.81万',@ProfitYoy = N'-10.03',@ProfiltQoq = N'11.98',@NAVPerUnit = N'6.5565',@ROE = N'6.97',@CashPerUnit = N'0.0981',@GrossProfitRate = N'49.34',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-08-18'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603811',@CutoffDate = N'2017-03-31',@EPS = N'0.22',@EPSDeduct = N'0',@Revenue = N'8231.10万',@RevenueYoy = N'16.48',@RevenueQoq = N'-23.77',@Profit = N'1417.52万',@ProfitYoy = N'23.75',@ProfiltQoq = N'-38.45',@NAVPerUnit = N'6.7802',@ROE = N'4.93',@CashPerUnit = N'-0.0897',@GrossProfitRate = N'45.98',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603811',@CutoffDate = N'2016-12-31',@EPS = N'1.07',@EPSDeduct = N'1.02',@Revenue = N'3.21亿',@RevenueYoy = N'1.35',@RevenueQoq = N'76.74',@Profit = N'6816.92万',@ProfitYoy = N'18.13',@ProfiltQoq = N'96.10',@NAVPerUnit = N'4.3844',@ROE = N'26.42',@CashPerUnit = N'1.4879',@GrossProfitRate = N'51.11',@Distribution = N'10派4.1',@DividenRate = N'1.13',@AnnounceDate = N'2017-02-23'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603811',@CutoffDate = N'2016-06-30',@EPS = N'0.52',@EPSDeduct = N'0.49',@Revenue = N'1.52亿',@RevenueYoy = N'-',@RevenueQoq = N'15.31',@Profit = N'3339.73万',@ProfitYoy = N'-',@ProfiltQoq = N'91.57',@NAVPerUnit = N'3.8403',@ROE = N'13.22',@CashPerUnit = N'0.6760',@GrossProfitRate = N'54.46',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-08-18'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603811',@CutoffDate = N'2016-09-30',@EPS = N'0.71',@EPSDeduct = N'0',@Revenue = N'2.13亿',@RevenueYoy = N'-',@RevenueQoq = N'-25.02',@Profit = N'4514.05万',@ProfitYoy = N'-',@ProfiltQoq = N'-46.48',@NAVPerUnit = N'0.0000',@ROE = N'18.02',@CashPerUnit = N'0.0000',@GrossProfitRate = N'52.07',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-26'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603811',@CutoffDate = N'2014-06-30',@EPS = N'0.35',@EPSDeduct = N'0.34',@Revenue = N'1.45亿',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'2214.74万',@ProfitYoy = N'-',@ProfiltQoq = N'-',@NAVPerUnit = N'3.3684',@ROE = N'10.56',@CashPerUnit = N'0.5076',@GrossProfitRate = N'47.77',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-12-05'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603811',@CutoffDate = N'2014-12-31',@EPS = N'0.84',@EPSDeduct = N'0.81',@Revenue = N'3.20亿',@RevenueYoy = N'20.36',@RevenueQoq = N'-',@Profit = N'5385.38万',@ProfitYoy = N'47.55',@ProfiltQoq = N'-',@NAVPerUnit = N'3.8646',@ROE = N'24.17',@CashPerUnit = N'1.3163',@GrossProfitRate = N'51.26',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-02-23'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603811',@CutoffDate = N'2013-12-31',@EPS = N'0.57',@EPSDeduct = N'0.55',@Revenue = N'2.66亿',@RevenueYoy = N'4.16',@RevenueQoq = N'-',@Profit = N'3649.76万',@ProfitYoy = N'24.56',@ProfiltQoq = N'-',@NAVPerUnit = N'3.1518',@ROE = N'19.81',@CashPerUnit = N'0.7541',@GrossProfitRate = N'44.36',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-12-05'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603811',@CutoffDate = N'2012-12-31',@EPS = N'0',@EPSDeduct = N'0',@Revenue = N'2.55亿',@RevenueYoy = N'18.65',@RevenueQoq = N'-',@Profit = N'2930.14万',@ProfitYoy = N'119.47',@ProfiltQoq = N'-',@NAVPerUnit = N'2.7876',@ROE = N'25.74',@CashPerUnit = N'0.5940',@GrossProfitRate = N'41.70',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-12-05'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603811',@CutoffDate = N'2011-12-31',@EPS = N'0',@EPSDeduct = N'0',@Revenue = N'2.15亿',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'1335.07万',@ProfitYoy = N'-',@ProfiltQoq = N'-',@NAVPerUnit = N'1.9542',@ROE = N'14.22',@CashPerUnit = N'0.1913',@GrossProfitRate = N'35.75',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-12-05'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603811',@CutoffDate = N'2016-03-31',@EPS = N'0.18',@EPSDeduct = N'0',@Revenue = N'7066.62万',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'1145.44万',@ProfitYoy = N'-',@ProfiltQoq = N'-',@NAVPerUnit = N'0.0000',@ROE = N'4.31',@CashPerUnit = N'0.0000',@GrossProfitRate = N'56.69',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603811',@CutoffDate = N'2015-12-31',@EPS = N'0.9',@EPSDeduct = N'0.85',@Revenue = N'3.17亿',@RevenueYoy = N'-1.02',@RevenueQoq = N'-',@Profit = N'5770.51万',@ProfitYoy = N'7.15',@ProfiltQoq = N'-',@NAVPerUnit = N'4.0676',@ROE = N'23.82',@CashPerUnit = N'1.2824',@GrossProfitRate = N'53.12',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-02-23' |
<gh_stars>0
/*
SQLyog Professional
MySQL - 10.4.11-MariaDB : Database - dbperpus
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!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 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`dbperpus` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
USE `dbperpus`;
/*Table structure for table `tbl_buku` */
DROP TABLE IF EXISTS `tbl_buku`;
CREATE TABLE `tbl_buku` (
`id_buku` int(11) NOT NULL AUTO_INCREMENT,
`judul_buku` varchar(100) NOT NULL,
`tahun_terbit` int(4) NOT NULL,
`penerbit` varchar(30) NOT NULL,
`penulis` varchar(30) NOT NULL,
`id_kategori` int(3) NOT NULL,
`isdeleted` tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`id_buku`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
/*Data for the table `tbl_buku` */
insert into `tbl_buku`(`id_buku`,`judul_buku`,`tahun_terbit`,`penerbit`,`penulis`,`id_kategori`,`isdeleted`) values
(1,'Pintar Matematika',2015,'Erlangga','Jarno',1,0),
(2,'Hidup Sehat Sejati',2020,'Erlangga','Jino',1,1),
(3,'Kisah 1002',2020,'Bentang Pustaka','<NAME>',2,1),
(4,'Kisah 1002',2020,'Bentang Pustaka','<NAME>',2,1),
(5,'Kisah 1004',2020,'Bentang Pustaka','<NAME>',2,1),
(6,'Ayah',2015,'Bentang Pustaka','<NAME>',2,1),
(7,'Habis Gelap Terbitlah Terang',1997,'Gramedia','Anom',1,0),
(8,'Peraih Mimpi',2000,'Bentang Pustaka','<NAME>',2,1),
(9,'Ayat Cinta',2000,'Gramedia','Arman',2,0),
(10,'Buku Matematika',2020,'Erlangga','Arya',1,0),
(12,'<NAME>',2020,'Bentang Pustaka','Anom',1,1);
/*Table structure for table `tbl_kategori` */
DROP TABLE IF EXISTS `tbl_kategori`;
CREATE TABLE `tbl_kategori` (
`id_kategori` int(3) NOT NULL AUTO_INCREMENT,
`nama_kategori` varchar(30) NOT NULL,
`isdeleted` tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`id_kategori`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*Data for the table `tbl_kategori` */
insert into `tbl_kategori`(`id_kategori`,`nama_kategori`,`isdeleted`) values
(1,'Buku Pelajaran',0),
(2,'Novel',0),
(3,'Komik',0);
/*Table structure for table `tbl_member` */
DROP TABLE IF EXISTS `tbl_member`;
CREATE TABLE `tbl_member` (
`id_member` varchar(30) NOT NULL,
`nama_member` varchar(100) NOT NULL,
`alamat` varchar(100) NOT NULL,
`email` varchar(50) NOT NULL,
`no_telp` varchar(15) NOT NULL,
`created` datetime NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id_member`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `tbl_member` */
insert into `tbl_member`(`id_member`,`nama_member`,`alamat`,`email`,`no_telp`,`created`) values
('M-2010001','Dharma','Jrakah 02/04','<EMAIL>','2129019201','2020-11-15 19:57:39'),
('M-2010002','Anom','Janti','<EMAIL>','21291029','2020-11-15 20:08:01');
/*Table structure for table `tbl_peminjaman` */
DROP TABLE IF EXISTS `tbl_peminjaman`;
CREATE TABLE `tbl_peminjaman` (
`id_peminjaman` varchar(30) NOT NULL,
`id_member` varchar(30) NOT NULL,
`id_user` int(11) NOT NULL,
`id_buku` int(11) NOT NULL,
`tgl_pinjam` datetime NOT NULL,
`tgl_kembali` datetime DEFAULT NULL,
`status_pinjam` varchar(15) NOT NULL COMMENT 'Pinjam, Kembali',
PRIMARY KEY (`id_peminjaman`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `tbl_peminjaman` */
/*Table structure for table `tbl_role` */
DROP TABLE IF EXISTS `tbl_role`;
CREATE TABLE `tbl_role` (
`id_role` int(3) NOT NULL AUTO_INCREMENT,
`nama_role` varchar(30) NOT NULL,
PRIMARY KEY (`id_role`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
/*Data for the table `tbl_role` */
insert into `tbl_role`(`id_role`,`nama_role`) values
(1,'Manajer'),
(2,'Pustakawan');
/*Table structure for table `tbl_user` */
DROP TABLE IF EXISTS `tbl_user`;
CREATE TABLE `tbl_user` (
`id_user` int(11) NOT NULL AUTO_INCREMENT,
`nama_user` varchar(50) NOT NULL,
`username` varchar(30) NOT NULL,
`id_role` int(3) NOT NULL,
`password` varchar(255) NOT NULL,
`isdeleted` tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`id_<PASSWORD>`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*Data for the table `tbl_user` */
insert into `tbl_user`(`id_user`,`nama_user`,`username`,`id_role`,`password`,`isdeleted`) values
(1,'Manager','manager',1,'b456f30873e3fbbe70dbb2e6775843d90eb5a8fb471b1b42698de889783a4d10b95f1f8114e31f970d9b71439e5ff0d281a131f0a4d061e7a81b4c69f279325f',0),
(2,'Pustakawan','p<PASSWORD>akawan',2,'b456f30873e3fbbe70dbb2e6775843d90eb5a8fb471b1b42698de889783a4d10b95f1f8114e31f970d9b71439e5ff0d281a131f0a4d061e7a81b4c69f279325f',0),
(3,'Bekti','bekti',1,'b456f30873e3fbbe70dbb2e6775843d90eb5a8fb471b1b42698de889783a4d10b95f1f8114e31f970d9b71439e5ff0d281a131f0a4d061e7a81b4c69f279325f',0);
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
<filename>db/src/libs/util/schema.sql
drop schema if exists util cascade;
create schema util;
set search_path = util, public;
\ir mutation_comments_view.sql;
|
DROP SCHEMA public CASCADE;
CREATE SCHEMA public;
CREATE EXTENSION pg_trgm;
CREATE TABLE companies (
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL,
ic_id VARCHAR(63) NOT NULL UNIQUE,
created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
login_url VARCHAR(255),
has_support BOOLEAN DEFAULT FALSE,
details JSONB
);
CREATE INDEX company_ic_id ON companies USING btree (ic_id);
CREATE TABLE people (
id SERIAL PRIMARY KEY,
company INT NOT NULL REFERENCES companies ON DELETE CASCADE,
name VARCHAR(255) NOT NULL,
ic_id VARCHAR(63) NOT NULL UNIQUE,
last_seen TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
search TEXT,
details JSONB
);
CREATE INDEX people_last_seen ON people USING btree (last_seen);
CREATE INDEX search_index ON people USING GIN (search gin_trgm_ops);
CREATE TABLE people_numbers (
person INT NOT NULL REFERENCES people ON DELETE CASCADE,
number VARCHAR(127),
UNIQUE (person, number)
);
CREATE INDEX number_index ON people_numbers USING GIN (number gin_trgm_ops);
CREATE TABLE calls (
id SERIAL PRIMARY KEY,
number VARCHAR(127) NOT NULL,
person INT REFERENCES people,
country VARCHAR(31),
ts TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX call_ts ON calls USING btree (ts);
|
CREATE INDEX flw_name_idx ON flows (name); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.