sql stringlengths 6 1.05M |
|---|
ALTER TABLE "public"."ft_channels_stats" ALTER COLUMN "zone_label_url" DROP NOT NULL;
ALTER TABLE "public"."ft_channels_stats" ALTER COLUMN "zone_counterparty_label_url" DROP NOT NULL;
ALTER TABLE "public"."ft_channels_stats" ALTER COLUMN "zone_readable_name" DROP NOT NULL;
ALTER TABLE "public"."ft_channels_stats" ALTER COLUMN "zone_counterparty_readable_name" DROP NOT NULL;
ALTER TABLE "public"."ft_channels_stats" ALTER COLUMN "zone_label_url2" DROP NOT NULL;
ALTER TABLE "public"."ft_channels_stats" ALTER COLUMN "zone_label_url2" DROP NOT NULL;
ALTER TABLE "public"."ft_channels_stats" ALTER COLUMN "zone_counterparty_label_url2" DROP NOT NULL;
ALTER TABLE "public"."ft_channels_stats" ALTER COLUMN "zone_counterparty_channel_id" DROP NOT NULL;
ALTER TABLE "public"."ft_channels_stats" ALTER COLUMN "zone_website" DROP NOT NULL;
|
<reponame>kuro-channel/knowledge-1<filename>src/main/resources/org/support/project/web/dao/sql/ProvisionalRegistrationsDao/ProvisionalRegistrationsDao_physical_select_on_key.sql
SELECT * FROM PROVISIONAL_REGISTRATIONS
WHERE
ID = ?
;
|
SELECT * FROM STOCKS
ORDER BY INSERT_DATETIME %s
LIMIT ? OFFSET ?;
|
ALTER TABLE {$NAMESPACE}_worker.worker_activetask
ADD COLUMN priority int unsigned NOT NULL;
ALTER TABLE {$NAMESPACE}_worker.worker_activetask
ADD KEY (leaseOwner, priority, id);
ALTER TABLE {$NAMESPACE}_worker.worker_archivetask
ADD COLUMN priority int unsigned NOT NULL;
ALTER TABLE {$NAMESPACE}_worker.worker_archivetask
ADD KEY (leaseOwner, priority, id);
|
-- Tests for package DBMS_RANDOM
SELECT dbms_random.initialize(8);
SELECT dbms_random.normal();
SELECT dbms_random.normal();
SELECT dbms_random.seed(8);
SELECT dbms_random.random();
SELECT dbms_random.seed('test');
SELECT dbms_random.string('U',5);
SELECT dbms_random.string('P',2);
SELECT dbms_random.string('x',4);
SELECT dbms_random.string('a',2);
SELECT dbms_random.string('l',3);
SELECT dbms_random.seed(5);
SELECT dbms_random.value();
SELECT dbms_random.value(10,15);
SELECT dbms_random.terminate();
|
autocommit off;
select *
from joe.dated_inventory_v d
where shipment_pending = 'yes';
rollback;
|
<reponame>MiroslavKisov/Software-University<filename>CSharp DB Fundamentals MSSQL/TableRelations/TableRelations/02.OneToManyRelationship.sql<gh_stars>0
USE TableRelations
CREATE TABLE Manufacturers(
ManufacturerID INT PRIMARY KEY NOT NULL,
Name NVARCHAR(50) NOT NULL,
EstablishedOn DATE NOT NULL
)
INSERT INTO Manufacturers(ManufacturerID, Name, EstablishedOn)
VALUES
(1, 'BMW', '07/03/1916'),
(2, 'Tesla', '01/01/2003'),
(3, 'Lada', '01/05/1966')
CREATE TABLE Models (
ModelID INT PRIMARY KEY NOT NULL,
Name NVARCHAR(50) NOT NULL,
ManufacturerID INT FOREIGN KEY REFERENCES Manufacturers(ManufacturerID)
)
INSERT INTO Models(ModelID, Name, ManufacturerID)
VALUES
(101, 'X1', 1),
(102, 'i6', 1),
(103, 'Model S', 2),
(104, 'Model X', 2),
(105, 'Model 3', 2),
(106, 'Nova', 3) |
SELECT q.AA48 AS "段代碼", q.KCNT AS "段名稱", COUNT(*) AS "土地標示部筆數"
FROM (
SELECT t.AA48, m.KCNT
FROM MOICAD.RALID t
LEFT JOIN MOIADM.RKEYN m on (m.KCDE_1 = '48' and m.KCDE_2 = t.AA48)
) q
GROUP BY q.AA48, q.KCNT |
ALTER TABLE SETTINGS ADD (
DISKS NUMBER(10,0)
);
UPDATE SETTINGS SET DISKS = 1 WHERE DISK = 1;
ALTER TABLE SETTINGS DROP COLUMN DISK; |
<gh_stars>0
DROP DATABASE IF EXISTS Explorer_db;
CREATE DATABASE Explorer_db;
USE Explorer_db;
CREATE TABLE explorers(
id INT AUTO_INCREMENT NOT NULL,
userName VARCHAR(100) NOT NULL,
passcode VARCHAR(55) NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE locations (
id INT AUTO_INCREMENT NOT NULL,
city VARCHAR(100) NOT NULL,
destination VARCHAR(255) NOT NULL,
address VARCHAR(255) NOT NULL,
rating INT NOT NULL,
cost DECIMAL(10,2),
facts VARCHAR(255) NOT NULL,
comments VARCHAR(255),
userId INT NOT NULL,
urlImage VARCHAR(255) NOT NULL,
PRIMARY KEY(id),
FOREIGN KEY(userId) REFERENCES explorers(id)
);
INSERT INTO explorers ( userName, passcode) value("papito", "12345"),("Dora","12345");
INSERT INTO locations (city,destination, address, rating, cost, facts, comments, userId, urlImage)
VALUE
("San Francisco","Alcatraz","San Francisco, CA 94133",4.5, 49.95,"Alcatraz reveals stories of American incarceration, justice, and our common humanity.", "The trip to alcatraz was amazing. Learned a lot", 1, "alcatrazz" ),
("San Francisco","Go-cart experience", "Embarcadero,Ca", 4.8, 126.13, "Pass through the famous Golden Gate Park and explore San Francisco's most iconic sites on a GoCar. Visit the spots you can't get to on a bus and choose to customize your own map! It's totally up to you.", "whoaa!Go carting was an experience for the books", 2, "touryellowcars"),
("San Francisco","Full house scene", "Castro st.", 3.5, 45.99, "Take some amazing pictures in the actual location where the show 'Full House' was filmed. Rekindle the 90's sitcom show while having a picnic near the famous victorian houses.", " WOW. what a nice picnic we had today.", 1, "houses"),
("San Francisco","Broadway NightLife","Broadway st.", 3.0, 25.99, "The neon-lined stretch of Broadway through North Beach was historically the city's red-light district, home to strip clubs and other adult businesses, as well as many nightclubs and bars, and has been featured in several films and television shows", "It's always a fun night on Broadway street with a group of people", 1, "italy"),
("San Francisco","Golden Gate Bay Cruise","Golden Gate st.", 4.0, 45.88, "Sail along San Francisco's breathtaking waterfront, under the majestic Golden Gate Bridge, and around notorious Alcatraz Island. Discover San Francisco's history via an award-winning audio commentary, available in 16 languages.", "Sailing during the evening was incredible!", 2, "bridgeImage"),
("San Francisco","<NAME>","Marin,Ca",4.7,10.00,"<NAME>, home to some of the oldest and most beautiful trees in the world; you will have over an hour to walk amongst the breathtaking redwoods before coming back to SF.", "Loved to see all the trees in Muir Woods. Will come back soon!", 1, "muirwoods"),
("San Francisco","Bay Sailing Tour with Drinks","Embarcadero,Ca",5.0,49.96,"For a relaxing afternoon on the water, hop aboard the Privateer traditional sailboat for a 90-minute cruise of the bay, complete with beer and wine. Get personal attention from a skilled crew as you enjoy stunning views of the bay!", "Loved to sail the pacific ocean! Will come back soon!", 2, "sailing"),
("San Francisco","Hop-On Hop-Off: Classic, Premium or Deluxe","Embarcadero,Ca",3.5,55.00,"See the sights of San Francisco at your own pace from the top deck of a double decker, hop-on hop-off sightseeing bus. Choose from a Classic, Premium or Deluxe Ticket and marvel at monuments such as the Transamerica Pyramid and Golden Gate Bridge.", "Bus ride was incredible! Will come back soon!", 2, "bustour"),
("San Francisco","Scenic Helicopter Flight","Polk st.",5.0,265.00,"Soar over San Francisco on an exhilarating 25-30 minute helicopter flight and get bird's eye views of Alcatraz, the Golden Gate Bridge, Angel Island and the coastline of California.", "Unbelievable experince! Most memorable anniversary!", 1, "heli"),
("San Francisco","Skip The Line: California Academy of Sciences Entrance"," Grand Ave.",4.5,35.00,"Visit San Francisco’s California Academy of Sciences, the world’s only aquarium-planetarium-rainforest-living museum. The venue allows you to see African penguins, rocket through the galaxy, experience a coral reef, and much more, all in one place!", "Fun time! took my kids and they loved it!", 2, "CAS");
INSERT INTO locations (city,destination, address, rating, cost, facts, comments, userId, urlImage)
VALUE ("Seattle", "Seattle: Pike Place Market Chef-Guided Food Tour", "Seattle,Ca", 4.6, 59.95,"Embark on a culinary tasting adventure of Pike Place Market with a local chef guide. Stop at 10 different artisanal vendors; learning about local production and tasting your way through the flavors of the Northwest.", "Very fun time exploring Pike Place!", 1, "PM"),
("Seattle", "Mount Rainier Park All-Inclusive Small Group Tour", "Seattle,Ca", 4.8, 249.95,"Discover Mt. Rainier like never before on this day-long, guided walk or snowshoe adventure with a stop for lunch. Learn local secrets as you enjoy spectacular scenery and explore thrilling trails.", "It's a long 10 hours but worth it when you actually get up to the mountain", 2,"mountain"),
("Seattle", "Olympic National Park Small Group Tour", "Seattle,Ca", 4.8, 263.15, "Explore the rugged and beautiful World Heritage Site, the Olympic National Park, with your small group in a comfortable van, an award-winning local guide, a beautiful lunch, local wine, snacks, and drinks.", "These trails were stunning!",1, "hug"),
("Seattle","Snoqualmie Falls & Woodinville Wine Tasting", "Seattle,Ca", 4.5, 240.15, "Experience the essence of Washington's wild beauty and independent spirit on a memorable day trip to Snoqualmie Falls and the Woodinville Wine Country. Taste fine wines at 3 boutique wineries and follow trails on interpretative nature walks.", "The wine was so good!I will definetly be coming back with a bigger group", 2,"wine"),
("Seattle","Half-Day Coffee, Chocolate, and Wine Tour", "Seattle,Ca", 4.8, 99.00, "Experience an exclusive guided tour of Starbucks' flagship Roastery location where the best coffee in the world is served daily, visit Fran’s Chocolates production facility for a tour and tasting, and end your tour at Browne Family Vineyards.", "The chocolate was so good!I will plan for a longer time next time",1, "choc"),
("Seattle","Underground Donut Tour", "Seattle,Ca", 4.7, 30.00, "Take a trip with Seattle's only donut tour. Making 4 stops at some of the city's best donut shops, you'll sample all the best donuts Seattle has to offer. You can enjoy samples at each location, and learn about the history of donuts in the Emerald City.", "The donuts had a particular flavor you will not be able to find anywhere else!Incredible",2,"donut"),
("Seattle","Cooking Class and Pike Place Market Tour","Seattle,Ca",3.5, 127.00,"Get an introduction to fresh ingredients sourced from Pike Place. Create a multi-course meal before indulging in the fruits of your labor. End the experience with a brief market tour.", "cooking was amazing, it seemed like the chef really seemed like he knew what he was doing",1,"cook"),
("Seattle","Private San Juan Island Tour","Seattle,Ca",5.0, 787.91,"Spend the day exploring San Juan Island, discovering this mysterious landscape with a naturalist guide. Ride a ferry to seek fantastic hikes, birding spots, and whale watching from shore. Transportation, a light breakfast, and lunch are included.", "The boat scene during the evening was unforgettable. Will do it again",2,"island"),
("Seattle","The Ultimate Food Experience with Local Guide","Seattle,Ca",4.7, 188.26,"Discover the famous spots and hidden gems of the Seattle food scene! With your local guide, you will discover why Seattle is known for Pacific Northwest cuisine and fresh produce. Indulge in local treats, like clam chowder, mac n' cheese and craft beer!", "Eating street food is my favorite especially in Seattle.", 1, "food"),
("Seattle","Cannabis Tour: Half-Day Herban Adventure","Seattle,Ca",3.5, 114.26,"Explore behind the scenes of Seattle’s cannabis industry and culture on this 2.5-hour tour. Follow your guide down the rabbit hole of America’s fastest growing start-up industry.", "It was awful. never coming back.", 2, "canni"); |
/*
-- Query: SELECT * FROM smistamento_posti.invitati
LIMIT 0, 1000
-- Date: 2018-07-04 17:26
*/
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `invitati`
--
DROP TABLE IF EXISTS `invitati`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `invitati` (
`ID_Evento` varchar(60) NOT NULL,
`ID_Invitato` varchar(60) NOT NULL,
`NomeInvitato` varchar(60) NOT NULL,
`CognomeInvitato` varchar(60) NOT NULL,
`EtaInvitato` int(11) DEFAULT NULL,
PRIMARY KEY (`ID_Evento`,`ID_Invitato`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `invitati`
--
LOCK TABLES `invitati` WRITE;
/*!40000 ALTER TABLE `invitati` DISABLE KEYS */;
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Cena con Imperatore','Obiwan002','ObiWan','Kenobi',50);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','AlbSil','Albus','Silente',111);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>-Catwoman','AlessandroBorghese','Voto','Dieci',40);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>-Catwoman','AlfPenn','Alfred','Pennyworth',60);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','Aquaman','Arthur','Curry',40);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','Batgirl','Barbara','Gordon',25);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','Batman','Bruce','Wayne',40);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>-Catwoman','CapitanAmerica','Steve','Rogers',40);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>-Catwoman','Catwoman','Selina','Kyle',28);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>-Catwoman','Ciclope','Scott','Summers',33);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>man-Catwoman','EmmaWatson','Emma','Watson',30);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>-Catwoman','Fenice','Jean','Grey',32);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','Flash','Bart','Allen',35);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>-Catwoman','FrancescoGiuseppe','Francesco','Giuseppe',40);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>-Catwoman','FrodoB','Frodo','Beggins',15);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>man-Catwoman','Gandalf','Mago','Bianco',100);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>-Catwoman','GinWea','Ginny','Weasley',16);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','GordonRamsey','Gordon','Ramsey',40);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','HarPot','Harry','Potter',17);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>-Catwoman','HerGra','Hermione','Granger',17);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','InvisibleGirl','Susan','Storm',29);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','LanternaVerde','Hal','Jordan',45);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','Legolas','Lego','Las',30);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>-Catwoman','LunLov','Luna','Lovegood',17);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>-Catwoman','MinMcGra','Minerva','McGranitt',60);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>man-Catwoman','MrFantastic','Reed','Richards',37);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>-Catwoman','NevPac','Neville','Paciock',17);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>-Catwoman','PrincipessaPeach','Principessa','Peach',30);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','PrincipessaSissi','Principessa','Sissi',35);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','RemLup','Remus','Lupin',50);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','Robin','Dick','Grayson',30);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>man-Catwoman','RonWea','Ron','Weasley',17);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>-Catwoman','Saruman','Mago','Nero',120);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','Scarlet','Wanda','Maxinoff',30);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>man-Catwoman','SevPit','Severus','Piton',50);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>man-Catwoman','SuperLuigi','Luigi','Bros',45);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','Superman','Clark','Kent',30);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','SuperMario','Mario','Bros',40);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('Matrimonio Batman-Catwoman','VittSgarbi','Vittorio','Sgarbi',60);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>-Catwoman','Wolverine','Logan','Howlett',50);
INSERT INTO `invitati` (`ID_Evento`,`ID_Invitato`,`NomeInvitato`,`CognomeInvitato`,`EtaInvitato`) VALUES ('<NAME>','WonderWoman','Diana ','Prince',45);
/*!40000 ALTER TABLE `invitati` 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 */;
|
<reponame>ahmed1wagih/Market
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 13, 2017 at 03:30 PM
-- Server version: 5.7.14
-- PHP Version: 5.6.25
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `market`
--
-- --------------------------------------------------------
--
-- Table structure for table `aboutsetting`
--
CREATE TABLE `aboutsetting` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`ar_text` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`en_text` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`file` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `aboutsetting`
--
INSERT INTO `aboutsetting` (`id`, `name`, `ar_text`, `en_text`, `file`, `created_at`, `updated_at`) VALUES
(1, 'معلومات عنا', 'معلومات عنا نص ', 'About us text', 'uploads/aboutsettings/150193725685487.jpg', '2017-08-05 10:47:36', '2017-08-05 10:47:36');
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`id`, `name`, `password`, `created_at`, `updated_at`) VALUES
(1, 'admin', '<PASSWORD>', '2017-07-25 09:42:35', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `category`
--
CREATE TABLE `category` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) NOT NULL,
`text` varchar(255) NOT NULL,
`color` varchar(255) NOT NULL,
`file` varchar(255) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `category`
--
INSERT INTO `category` (`id`, `name`, `text`, `color`, `file`, `created_at`, `updated_at`) VALUES
(5, 'سيارات', 'نص توضيحي لقسم السيارات من الادمن بانل', 'inner b1', 'uploads/categories/150261914111886.png', '2017-08-13 08:12:21', '2017-08-13 09:26:27'),
(6, 'كاميرات تصوير ', 'نص توضيحي لقسم كاميرات التصوير من الادمن بانل', 'inner b2', 'uploads/categories/150262337594338.png', '2017-08-13 09:22:55', '2017-08-13 09:26:18'),
(7, 'موبايلات', 'نص توضيحي لقسم الموبايلات من الادمن بانل', 'inner b4', 'uploads/categories/150262356987098.png', '2017-08-13 09:25:13', '2017-08-13 09:26:09'),
(8, 'أجهزة كمبيوتر', 'نص توضيحي لقسم أجهزة الكمبيوتر من الادمن بانل', 'inner b3', 'uploads/categories/150262388149910.png', '2017-08-13 09:31:21', '2017-08-13 09:31:21'),
(9, 'مجوهرات و هدايا', 'نص توضيحي لقسم المجوهرات و الهدايا من الادمن بانل', 'inner b6', 'uploads/categories/150262395253778.png', '2017-08-13 09:32:32', '2017-08-13 09:32:32'),
(10, 'عقارات', 'نص توضيحي لقسم العقارات من الادمن بانل', 'inner b5', 'uploads/categories/150262399760034.png', '2017-08-13 09:33:17', '2017-08-13 09:38:47'),
(11, 'نظارات', 'نص توضيحي لقسم النظارات من الادمن بانل', 'inner b2', 'uploads/categories/150262403156339.png', '2017-08-13 09:33:51', '2017-08-13 09:33:51'),
(12, 'أحذية رياضية', 'نص توضيحي لقسم الأحذية الرياضية من الادمن بانل', 'inner b7', 'uploads/categories/150262436978955.png', '2017-08-13 09:39:29', '2017-08-13 09:39:29');
-- --------------------------------------------------------
--
-- Table structure for table `contact`
--
CREATE TABLE `contact` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`adress` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`message` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `contact`
--
INSERT INTO `contact` (`id`, `name`, `email`, `adress`, `phone`, `message`, `created_at`, `updated_at`) VALUES
(1, 'أحمد', '<EMAIL>', 'شارع الملاميطي', '0987654321', 'رسالة رسالة رسالة رسالة رسالة رسالة رسالة رسالة رسالة رسالة رسالة رسالة رسالة رسالة رسالة رسالة رسالة رسالة رسالة ', '2017-08-05 11:46:22', '2017-08-05 11:46:22'),
(2, 'محمود', '<EMAIL>', 'محمود شارع محمود', '0123155352', 'رسالات كتير كتير رسالات كتير كتيررسالات كتير كتيررسالات كتير كتيررسالات كتير كتيررسالات كتير كتير', '2017-08-05 12:00:36', '2017-08-05 12:00:36');
-- --------------------------------------------------------
--
-- Table structure for table `contactsetting`
--
CREATE TABLE `contactsetting` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`ar_text` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`en_text` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`file` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `contactsetting`
--
INSERT INTO `contactsetting` (`id`, `name`, `ar_text`, `en_text`, `file`, `created_at`, `updated_at`) VALUES
(1, 'إعداد جديد', 'علاء مرسي', '<NAME>', 'uploads/contactsettings/150210638328303.jpg', '2017-08-07 09:46:23', '2017-08-07 09:46:23');
-- --------------------------------------------------------
--
-- Table structure for table `footersetting`
--
CREATE TABLE `footersetting` (
`id` int(10) UNSIGNED NOT NULL,
`ar_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`en_name` varchar(255) CHARACTER SET utf8 NOT NULL,
`ar_text` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`en_text` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`file` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `footersetting`
--
INSERT INTO `footersetting` (`id`, `ar_name`, `en_name`, `ar_text`, `en_text`, `file`, `created_at`, `updated_at`) VALUES
(1, 'الصفقة الرابحة اون لاين', 'The Winning Deal Online', 'أحدي مشاريع شركه Eurosoq لحلول التجاره والتجاره الالكترونيه بين أوروبا والشرق الأوسط نحن نؤمن لك عمليه التسوق والشراء من الانترنت بكل سهوله وأمان', 'One of Eurosoc\'s business solutions for e-commerce and commerce between Europe and the Middle East We believe in the process of shopping and buying from the Internet easily and safely', '', '2017-08-13 09:43:03', '2017-08-13 09:43:03'),
(2, 'خريطة الموقع', '', 'خريطة الموقع', 'Site Map', '', '2017-08-13 09:43:51', '2017-08-13 09:43:51'),
(3, 'تواصل معنا', '', 'تواصل معنا ', 'Contact with us', '', '2017-08-13 09:44:13', '2017-08-13 09:44:13'),
(4, 'العنوان', 'Address', '7 شارع محمد محمد', '7 Mohamed Mohamed St. ', '', '2017-08-13 09:45:10', '2017-08-13 09:45:10'),
(5, '0123456789', '0123456789', 'الموبايل', 'Mobile', '', '2017-08-13 09:45:57', '2017-08-13 09:45:57'),
(6, 'Company <EMAIL>', 'Company <EMAIL>', 'البريد الإلكتروني', 'Email', '', '2017-08-13 09:46:27', '2017-08-13 09:46:27'),
(7, 'الحقوق', '', 'جميع الحقوق محفوظة لموقع الصفقة الرابحة اون لاين © 2016', 'All rights reserved for The Winning Deal Online © 2016', '', '2017-08-13 10:01:31', '2017-08-13 10:01:31');
-- --------------------------------------------------------
--
-- Table structure for table `homesetting`
--
CREATE TABLE `homesetting` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`ar_text` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`en_text` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`file` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `homesetting`
--
INSERT INTO `homesetting` (`id`, `name`, `ar_text`, `en_text`, `file`, `created_at`, `updated_at`) VALUES
(1, 'الصفقة الرابحة أونلاين', 'نص من إعدادات لوحة التحكم لإعدادات الصفحة الرئيسية نص من إعدادات لوحة التحكم لإعدادات الصفحة الرئيسية نص من إعدادات لوحة التحكم لإعدادات الصفحة الرئيسية نص من إعدادات لوحة التحكم لإعدادات الصفحة الرئيسية نص من إعدادات لوحة التحكم لإعدادات الصفحة الرئيسية ', 'English text from admin panel for home page settings ', '', '2017-08-09 06:25:50', '2017-08-09 06:25:50');
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`migration`, `batch`) VALUES
('2017_07_25_091911_create_admin_table', 1),
('2017_07_25_113653_create_user_table', 2),
('2017_07_25_124455_create_category_table', 3),
('2017_08_05_093207_create_setting_table', 4),
('2017_08_05_123153_create_aboutsetting_table', 5),
('2017_08_05_125121_create_contact_table', 6),
('2017_08_07_112952_create_contactsetting_table', 7),
('2017_08_07_115457_create_termssetting_table', 8),
('2017_08_07_122805_create_footersetting_table', 9),
('2017_08_07_124358_create_socialsetting_table', 10),
('2017_08_13_123641_create_products_table', 11);
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) NOT NULL,
`type` varchar(255) NOT NULL,
`cat_id` int(10) UNSIGNED NOT NULL,
`text` varchar(255) NOT NULL,
`price` varchar(255) NOT NULL,
`user` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`phone` varchar(255) NOT NULL,
`file` varchar(255) NOT NULL,
`country` varchar(255) NOT NULL,
`city` varchar(255) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `socialsetting`
--
CREATE TABLE `socialsetting` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`ar_text` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`en_text` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`file` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `socialsetting`
--
INSERT INTO `socialsetting` (`id`, `name`, `ar_text`, `en_text`, `file`, `created_at`, `updated_at`) VALUES
(4, 'Twitter', 'www.twitter.com/thewinningdeal', 'www.twitter.com/thewinningdeal', '', '2017-08-13 10:03:35', '2017-08-13 10:05:22'),
(3, 'facebook', 'www.facebook.com/thewinningdeal', 'www.facebook.com/thewinningdeal', '', '2017-08-13 10:03:14', '2017-08-13 10:05:38'),
(5, 'Instagram', 'www.instagram.com/thewinningdeal', 'www.instagram.com/thewinningdeal', '', '2017-08-13 10:03:57', '2017-08-13 10:05:45'),
(6, 'Google+', 'www.googleplus.com/thewinningdeal', 'www.googleplus.com/thewinningdeal', '', '2017-08-13 10:04:19', '2017-08-13 10:05:57'),
(7, 'Youtube', 'www.youtube.com/thewinningdeal', 'www.youtube.com/thewinningdeal', '', '2017-08-13 10:04:36', '2017-08-13 10:06:06');
-- --------------------------------------------------------
--
-- Table structure for table `termssetting`
--
CREATE TABLE `termssetting` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`ar_text` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`en_text` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`file` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `termssetting`
--
INSERT INTO `termssetting` (`id`, `name`, `ar_text`, `en_text`, `file`, `created_at`, `updated_at`) VALUES
(1, 'إعداد جديد نوفي نوفي', 'نص بالعربية', 'English Text', '', '2017-08-07 10:09:33', '2017-08-07 10:09:33'),
(3, 'إعداد جديد خالص', 'جديد جداً', 'Very new', 'uploads/termssettings/150210782721440.jpg', '2017-08-07 10:10:27', '2017-08-07 10:10:27');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`address` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`file` varchar(255) CHARACTER SET utf8 NOT NULL,
`remember_token` varchar(100) CHARACTER SET utf8 DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `password`, `phone`, `address`, `file`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, '<NAME> ma7<PASSWORD>', '<EMAIL>', '$2y$10$EuZdUe5Fzyd2aYGDybomIesmwvehyGsLtJFCo0XJuwH4Vudatacea', '781.409.2728 x726', '1087 Reichert Knoll Suite 001Pollyfort, AR 44411-2731', '', NULL, '2017-07-25 10:15:42', '2017-07-25 11:52:39'),
(39, '', '<EMAIL>', '123123', '', '', '', NULL, '2017-08-01 10:28:02', '2017-08-01 10:28:02'),
(38, '', '<EMAIL>', '123123', '', '', '', NULL, '2017-08-01 10:26:53', '2017-08-01 10:26:53'),
(3, '<NAME>', '<EMAIL>', '$2y$10$F5cNLLSVwCFhq7k.TTpfiu9.h/z7AaFRy1uu4X36s2/V2jSHKUK5q', '1-798-888-4736', '2625 Karelle Inlet\nGaylordfurt, CO 83259-4226', '', NULL, '2017-07-25 10:15:42', '2017-07-25 10:15:42'),
(4, '<NAME>', '<EMAIL>', '$2y$10$ZUdJGIx4tBU/2C/6kfYrle1iBuPBJQtxJugmt67L8vMHP8MCmf5/K', '+1-823-285-5909', '86417 Delaney Dam\nSouth Athenaville, TN 05831', '', NULL, '2017-07-25 10:15:42', '2017-07-25 10:15:42'),
(5, '<NAME>', '<EMAIL>', '$2y$10$5g7OjKyqQD/lq2m4xbR2YeZ6HrfFLNu/R/tCR58vqeyCfkfk3u4La', '907-695-1995', '995 Gusikowski Flats Suite 411\nSouth Medaberg, VA 92747', '', NULL, '2017-07-25 10:15:42', '2017-07-25 10:15:42'),
(6, '<NAME>', '<EMAIL>', '$2y$10$zR9ch6hQPiQmJlYpoHWPcOffubKgc5JqUYipyK3KfHvUeILnc/f0W', '1-657-798-6343 x751', '32054 Rau Cliffs Suite 244\nLake Okeyfurt, IA 16492', '', NULL, '2017-07-25 10:15:42', '2017-07-25 10:15:42'),
(7, '<NAME>', '<EMAIL>', '$2y$10$FAFuCBdX65P4z/eIPBv6TOT1uDV3fblSPjwzKBP9L6ZiZB7rXUIvG', '1-546-896-3539 x47659', '4276 Heidenreich Loop\nKarelleberg, AZ 19794-8395', '', NULL, '2017-07-25 10:15:42', '2017-07-25 10:15:42'),
(8, '<NAME>', '<EMAIL>', '$2y$10$8tVd.bf/yyHmvDIcIYBCrOjqRe324zstk.2GdVxD0odnSQvXRHPem', '+1-989-310-5460', '8463 Calista Village Apt. 033\nEast Rod, TX 69255', '', NULL, '2017-07-25 10:15:42', '2017-07-25 10:15:42'),
(9, 'Dr. <NAME>', '<EMAIL>', '$2y$10$S3hzSpBlRyTNXAPC36zNZ.RRL4szQ3ea.Hbe7FXXqep6WSoIHJY..', '+15192966934', '67131 Kautzer Street\nPhilipberg, MO 17612-4261', '', NULL, '2017-07-25 10:15:42', '2017-07-25 10:15:42'),
(10, '<NAME>', '<EMAIL>', '$2y$10$ckUBkyJv0FlvqoDh7SHKK.CpF5Wyxqchp6KnjUtF40HPz8Yv2/N8C', '406.523.7186', '92412 Sammy Circles\nEast Patrick, NE 50090-0005', '', NULL, '2017-07-25 10:15:42', '2017-07-25 10:15:42'),
(37, '', '<EMAIL>', '123123', '', '', '', NULL, '2017-08-01 10:25:41', '2017-08-01 10:25:41'),
(14, '', '<EMAIL>', '123123', '', '', '', NULL, '2017-08-01 09:53:33', '2017-08-01 09:53:33'),
(46, 'heha2', '<EMAIL>', <PASSWORD>$dPsu3hp8psdbQOnfCrVjeeWKPga9aOF.1Jbk4l6Ki1V/nG3wqlRfy', '', '', '', NULL, '2017-08-08 08:34:52', '2017-08-08 08:34:52'),
(45, '', '<EMAIL>', '$2y$10$tpt9o/j76TXRzX3.5jn0A.tC6BHYZJZhGHm911uaaBUva.pDLls8q', '', '', '', NULL, '2017-08-08 07:35:38', '2017-08-08 07:35:38'),
(44, '', '<EMAIL>', '$2y$10$fUQ2w3L12T/FVS/pomhkj.Ow9GKx.EnqZdgE004JjNQGh8u7e7kjq', '', '', '', NULL, '2017-08-08 07:35:13', '2017-08-08 07:35:13'),
(41, '', '<EMAIL>', '$2y$10$Whfun/FoV0VVoc4YW4MrX.0Dv24o5ZjExSWsv3KImaiLLWR2GllMC', '', '', '', NULL, '2017-08-01 10:31:34', '2017-08-01 10:31:34'),
(43, '', '<EMAIL>', <PASSWORD>', '', '', '', NULL, '2017-08-07 22:39:10', '2017-08-07 22:39:10'),
(42, '', '<EMAIL>', <PASSWORD>$fgzAoLD3lrwqz6VKM6Sxte..3JVEYhAM1sDavQ3klvNixe6gNC69C', '', '', '', 'WHOjOJvzta0o4EUHfM3zioN4W4uu0RQDIMT6KfQeEUA5CiK3MaJLG06etsKd', '2017-08-01 10:51:47', '2017-08-09 11:30:22'),
(47, ' إبراهيم محمود سلطان', '<EMAIL>', '', '0123456789', '7 شارع الشهيد ميكي ماوس', 'uploads/users/150261602684122.jpg', 'fxbFZVBI2r9nXEeir5Edw2ePVausUc5lSJcko8d7w567UI7d3HBZqQgSFfgX', '2017-08-08 08:35:40', '2017-08-13 07:20:26'),
(56, '', '<EMAIL>', <PASSWORD>', '', '', '', NULL, '2017-08-08 11:43:37', '2017-08-08 11:43:37'),
(57, '', '<EMAIL>', <PASSWORD>', '', '', '', NULL, '2017-08-08 11:45:47', '2017-08-08 11:45:47'),
(58, '', '<EMAIL>', <PASSWORD>', '', '', '', NULL, '2017-08-08 11:50:10', '2017-08-08 11:50:10'),
(55, '', '<EMAIL>', <PASSWORD>', '', '', '', NULL, '2017-08-08 11:38:09', '2017-08-08 11:38:09'),
(59, 'محووووود', '', '', '', '', '', '0dNecwxp7PZ3SbeKNrcI2QeTpzI5lBXYhSLjdNr0NeBRL99Pp26tu2rX6BDR', '2017-08-09 11:36:49', '2017-08-12 23:23:14'),
(60, ' خلف الدهشور خلف وائل', '<EMAIL>', '', '0123234234234', 'التجمع الخامس - شارع التسعين', 'uploads/users/150261842717342.jpg', '9Ax7sbTPcagkc7qLp67SbjNqcLumPZqu0jXwat82wYjo6c8kB3bGUuQCJsWw', '2017-08-13 07:46:09', '2017-08-13 13:28:42'),
(61, 'أشرف', '<EMAIL>', <PASSWORD>', '', '', '', 'j0g64Z1EOA9Z4YRSdqNd2O1W6x1jyMpB1Gw8AiqtAIwD3cqcOSayHMp5o1Wt', '2017-08-13 07:47:58', '2017-08-13 07:59:37');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `aboutsetting`
--
ALTER TABLE `aboutsetting`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `admin_name_unique` (`name`);
--
-- Indexes for table `category`
--
ALTER TABLE `category`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `contact`
--
ALTER TABLE `contact`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `contactsetting`
--
ALTER TABLE `contactsetting`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `footersetting`
--
ALTER TABLE `footersetting`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `homesetting`
--
ALTER TABLE `homesetting`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`),
ADD KEY `cat_id` (`cat_id`);
--
-- Indexes for table `socialsetting`
--
ALTER TABLE `socialsetting`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `termssetting`
--
ALTER TABLE `termssetting`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `aboutsetting`
--
ALTER TABLE `aboutsetting`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `category`
--
ALTER TABLE `category`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `contact`
--
ALTER TABLE `contact`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `contactsetting`
--
ALTER TABLE `contactsetting`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `footersetting`
--
ALTER TABLE `footersetting`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `homesetting`
--
ALTER TABLE `homesetting`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `socialsetting`
--
ALTER TABLE `socialsetting`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `termssetting`
--
ALTER TABLE `termssetting`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=62;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `products`
--
ALTER TABLE `products`
ADD CONSTRAINT `products_ibfk_1` FOREIGN KEY (`cat_id`) REFERENCES `category` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- member user
UPDATE `users`
SET `active` = 'TEMP', `verification_token` = '<PASSWORD>', `verification_token_expiry_date` = '2030-08-07 00:00:00'
WHERE `user_id` = 'c7081519-16e5-4f92-ac50-1834001f12b9';
|
<filename>episode04/query_ep04.sql
-- Learning SQL (Notes from <NAME>)
-- Functions: JOIN
SELECT *
FROM tb_products
LEFT JOIN tb_order_items; -- O que eu encontrar na tb_order_items vou trazer para o tb_products
SELECT *
FROM tb_products
RIGHT JOIN tb_order_items; -- O que eu encontrar na tb_products vou trazer para o tb_order_items
SELECT *
FROM tb_products
INNER JOIN tb_order_items; -- O que eu encontrar na tb_products e na tb_order_items mantém
-- OBJETIVO: calcular a quantidade de vendas e receita por categoria de produto durante o ano de 2017
SELECT T1.order_id
, T1.customer_id
, T1.order_status
, T1.order_purchase_timestamp
, T2.product_id
, T2.price -- receita
, T3.product_category_name -- categoria do produto
FROM tb_orders as T1 -- Primeira tabela: pedidos
LEFT JOIN tb_order_items as T2 -- Segunda tabela: pedido / item
ON T1.order_id = T2.order_id
LEFT JOIN tb_products as T3 -- Terceita tabela
ON T2.product_id = T3.product_id
WHERE strftime ('%Y', DATE (T1.order_approved_at)) = '2017' -- ano de 2017
AND T1.order_status = 'delivered' -- produtos entregues com sucesso
-- OBJETIVO 2: calcular a quantidade de vendas (pedidos), itens vendidos e receita por categoria de produto durante o ano de 2017
SELECT T3.product_category_name -- categoria do produto
, COUNT (T1.order_id) as qtd_itens_vendidos
, COUNT (DISTINCT T1.order_id) as qtd_pedidos
, ROUND (SUM (T2.price), 2) as receita
/* T1.customer_id
, T1.order_status
, T1.order_purchase_timestamp
, T2.product_id */
FROM tb_orders as T1 -- Primeira tabela: pedidos
LEFT JOIN tb_order_items as T2 -- Segunda tabela: pedido / item
ON T1.order_id = T2.order_id
LEFT JOIN tb_products as T3 -- Terceita tabela
ON T2.product_id = T3.product_id
WHERE strftime ('%Y', DATE (T1.order_approved_at)) = '2017' -- ano de 2017
AND T1.order_status = 'delivered' -- produtos entregues com sucesso
GROUP BY T3.product_category_name;
|
create table client (
id number(5),
nom varchar2(20),
solde number(6,2),
constraint client_pk primary key (id)
);
insert into client values (1, 'toto', 200.0);
insert into client values (2, 'titi', 20.0);
insert into client values (3, 'titi', 20.0);
insert into client values (5, 'tata', 120.0);
insert into client values (15, 'bof', 150.0);
insert into client values (16, 'bif', 150.0);
-- Connaître les tables et description d'une table --
select * from tab;
desc client;
-- Question 1.1 --
select solde from client;
select nom,solde from client;
-- SQL manipule aussi des ensembles. --
-- Question 1.2 --
select distinct solde from client;
select distinct nom,solde from client;
select distinct solde, nom from client;
-- Les distinct sert a supprimer les doublons --
-- Question 1.3 --
-- 1)
select nom from client where solde >= 150.0;
-- 2)
select nom from client where mod(id, 2) = 0;
-- 3)
select id, nom from client where nom like '%o%';
-- Question 1.4 --
insert into client values (20, 'riri', null);
insert into client(id, nom) values (21, 'fifi');
insert into client(id, solde) values (22, 150.0);
select * from client;
-- Il possède des values null dans les colonnes non informés.
-- Question 1.5 --
insert into client(nom) values ('loulou');
-- Le serveur nous autorise pas a inserer null, celà peut venir de la clef primaire car celui-ci ne peut être null.
-- Question 1.6 --
select count(*) from client;
select count(nom) from client;
select avg(solde) from client;
-- Les valeurs null ne sont pas pris en compte quand on selection une colonne précise.
-- I.I --
update client set solde = solde + 10.0;
-- Question 1.7 --
update client set solde = solde - 30.0, nom ='toto' where id = 2;
-- 1) Car on précise l'id du client ainsi que son nom mais comme l'id est unique cela ne modifiera que celui donné.
update client set solde = solde + 30.0
where solde between 100.0 and 180.0;
-- 2) Car on choisi un ensemble de valeurs il peut donc avec 0, 1 ou plusieurs solde dans cette intervalle.
-- Question 1.8 --
delete from client where id = 4;
delete from client where id = 1;
-- Aucun déclenche d'erreur alors que l'id 4 n'est pas inscrit dans la table.
-- A faire attention :
-- delete from client; Supprime toute les lignes de la table.
-- drop table client; Supprime la table.
-- flashback table client to before drop; Permet de recupere une table supprimer.
-- purge recyclebin; vide la corbeille.
-- II --
create table producteur (
id number(5),
nom varchar2 (20),
constraint producteur_pk primary key (id)
);
create table produit (
id number(5),
nom varchar2(20),
prix_unitaire number(8,2),
producteur number(5),
constraint produit_producteur_fk foreign key (producteur) references producteur(id),
constraint produit_pk primary key(id)
);
insert into producteur values (1, 'Bricolot');
insert into producteur values (2, 'Fruit''n Fibre');
insert into produit(id, nom, prix_unitaire, producteur) values (1, 'clou', 11.0, 1);
insert into produit(id, nom, prix_unitaire, producteur) values (2, 'robinet', 30.0, 1);
insert into produit(id, nom, prix_unitaire, producteur) values (3, 'kiwi', 0.3, 2);
-- Question 2.1 --
-- 1)
select * from client, producteur;
-- 2)
select p1.*, p2.* from producteur p1 cross join producteur p2;
-- Question 2.2 --
-- 1)
select producteur.NOM as producteur_nom, produit.NOM as produit_nom
from producteur inner join produit on produit.ID = producteur.ID;
-- 2)
select p1.nom, p2.nom, p1.prix_unitaire, p2.prix_unitaire from
produit p1 cross join produit p2 where p1.prix_unitaire < p2.prix_unitaire;
-- III --
create table Commande (
idClient number(5),
idProduit number(5),
quantite number(5),
constraint commande_pk primary key (idClient, idProduit),
constraint Commande_client_fk foreign key (idClient) references client(id),
constraint commande_produit_fk foreign key (idProduit) references produit(id)
);
insert into commande values (2 ,2 ,3);
insert into commande values (2 ,3 ,20);
insert into commande values (5 ,1 ,100);
insert into commande values (5 ,3 ,10);
-- Question 3.1 --
select client.nom, produit.nom, quantite
from commande join client on client.ID = commande.IDCLIENT
join produit on commande.IDPRODUIT = produit.id;
-- Question 3.2 --
select client.nom from client inner join commande on client.id = commande.IDCLIENT;
select client.nom
from client
where client.id = (select idclient from commande);
|
<filename>database/carga_segmentos.sql<gh_stars>0
INSERT INTO tb_segmento(co_segmento, tp_segmento,ds_detalhamento, st_ativo) VALUES (1,'tecnico_artistico','Técnico-artístico',TRUE);
INSERT INTO tb_segmento(co_segmento, tp_segmento,ds_detalhamento, st_ativo) VALUES (2,'patrimonio_cultural','Patrimônio cultural',TRUE);
INSERT INTO tb_segmento(co_segmento, tp_segmento,ds_detalhamento, st_ativo) VALUES (3,'culturas_populares','Culturas populares',TRUE);
INSERT INTO tb_segmento(co_segmento, tp_segmento,ds_detalhamento, st_ativo) VALUES (4,'culturas_povos_indigenas','Culturas dos povos indígenas',TRUE);
INSERT INTO tb_segmento(co_segmento, tp_segmento,ds_detalhamento, st_ativo) VALUES (5,'expressoes_afrobrasileiras','Expressões culturais afro-brasileiras',TRUE);
|
create database sentiment_973_test;
use sentiment_973_test;
create table if not exists sentiment_result(
recordDate char(8) not null
,topic varchar(255) not null
,pos int(2) not null
,mid int(2) not null
,neg int(2) not null
)Primary key(recordDate,topic) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
<reponame>VanHakobyan/ISTC_Coding_School
-- =============================================
Create FUNCTION fn_GetLinkedinProfileAllInfoById(@Id int)
RETURNS TABLE
AS
RETURN
(
select
lp.*,
le.Time as WorkTime,
le.Location as WorkLocation,
le.Title as WorkTitle,
le.Company as WorkCompany,
led.Name EducationName,
LEd.Time EducationTime,
LEd.Title EducationTitle,
li.Name InterestName,
Li.FollowersCount InterestFollowersCount,
LL.Name LangugeName,
LS.Name SkillName,
LS.EndorsedCount
from LinkedinProfile LP
join LinkedinExperience LE on LE.LinkedinProfileId = LP.Id
join LinkedinEducation LEd on LEd.LinkedinProfileId=LP.Id
join LinkedinInterest LI on LI.LinkedinProfileId=LP.Id
join LinkedinLanguage LL on LL.LinkedinProfileId=LP.Id
join LinkedinSkill LS on LS.LinkedinProfileId=LP.Id
where LP.id=@Id
)
GO
|
<gh_stars>1-10
INSERT INTO `modelos` (`id_modelo`, `NombreModelo`, `id_marca`, `created_at`, `updated_at`) VALUES
(1, '500C','1', NULL, NULL),
(2, '500','1', NULL, NULL),
(3, '124 Spider','1', NULL, NULL),
(4, 'Giulietta','2', NULL, NULL),
(5, 'Mito','2', NULL, NULL),
(6, '4C','2', NULL, NULL),
(7, 'giulia','2', NULL, NULL),
(8, 'Stelvio','2', NULL, NULL),
(9, '4-C','3', NULL, NULL),
(10, 'DB9','4', NULL, NULL),
(11, 'Vantage V8','4', NULL, NULL),
(12, 'Vanquish','4', NULL, NULL),
(13, 'Vantage V12','4', NULL, NULL),
(14, 'Rapide','4', NULL, NULL),
(15, 'A4','5', NULL, NULL),
(16, 'A8','5', NULL, NULL),
(17, 'A3','5', NULL, NULL),
(18, 'TT','5', NULL, NULL),
(19, 'A5','5', NULL, NULL),
(20, 'A4 Allroad Quattro','5', NULL, NULL),
(21, 'A6','5', NULL, NULL),
(22, 'A7','5', NULL, NULL),
(23, 'Q3','5', NULL, NULL),
(24, 'Q5','5', NULL, NULL),
(25, 'S5','5', NULL, NULL),
(26, 'A1','5', NULL, NULL),
(27, 'A6 Allroad Quattro','5', NULL, NULL),
(28, 'S7','5', NULL, NULL),
(29, 'S6','5', NULL, NULL),
(30, 'S8','5', NULL, NULL),
(31, 'RS4','5', NULL, NULL),
(32, 'RS5','5', NULL, NULL),
(33, 'R8','5', NULL, NULL),
(34, 'SQ5','5', NULL, NULL),
(35, 'Q7','5', NULL, NULL),
(36, 'RS6','5', NULL, NULL),
(37, 'RS7','5', NULL, NULL),
(38, 'RS Q3','5', NULL, NULL),
(39, 'S3','5', NULL, NULL),
(40, 'S1','5', NULL, NULL),
(41, 'TTS','5', NULL, NULL),
(42, 'S4','5', NULL, NULL),
(43, 'RS3','5', NULL, NULL),
(44, 'SQ7','5', NULL, NULL),
(45, 'S4X','5', NULL, NULL),
(46, 'S6X','5', NULL, NULL),
(47, 'S7X','5', NULL, NULL),
(48, 'Continental GT','6', NULL, NULL),
(49, 'Mulsanne','6', NULL, NULL),
(50, '<NAME>','6', NULL, NULL),
(51, 'Continental GTC','6', NULL, NULL),
(52, 'Bentayga','6', NULL, NULL),
(53, '<NAME>','7', NULL, NULL),
(54, '<NAME>','7', NULL, NULL),
(55, '<NAME>','7', NULL, NULL),
(56, '<NAME>','7', NULL, NULL),
(57, 'Serie 3','7', NULL, NULL),
(58, 'Serie 4','7', NULL, NULL),
(59, 'Serie 5','7', NULL, NULL),
(60, 'Serie 6','7', NULL, NULL),
(61, 'Serie 7','7', NULL, NULL),
(62, 'Z4','7', NULL, NULL),
(63, 'X1','7', NULL, NULL),
(64, 'X2','7', NULL, NULL),
(65, 'X3','7', NULL, NULL),
(66, 'X4','7', NULL, NULL),
(67, 'X5','7', NULL, NULL),
(68, 'X6','7', NULL, NULL),
(69, 'z-4','7', NULL, NULL),
(70, 'I3','7', NULL, NULL),
(71, 'I8','7', NULL, NULL),
(72, 'E6','8', NULL, NULL),
(73, 'Cruze','9', NULL, NULL),
(74, 'Aveo','9', NULL, NULL),
(75, 'Trax','9', NULL, NULL),
(76, 'Orlando','9', NULL, NULL),
(77, 'Spark','9', NULL, NULL),
(78, 'Camaro','9', NULL, NULL),
(80,'C1','10', NULL, NULL),
(81, 'C2','10', NULL, NULL),
(82, 'C3','10', NULL, NULL),
(83, 'C3 Picasso','10', NULL, NULL),
(84, '<NAME>','10', NULL, NULL),
(85, 'C4','10', NULL, NULL),
(86, 'C4 Picasso','10', NULL, NULL),
(87, '<NAME>','10', NULL, NULL),
(88, 'C4 Cactus','10', NULL, NULL),
(89, 'Nemo','10', NULL, NULL),
(90, 'Berlingo','10', NULL, NULL),
(91, 'C-Elysée','10', NULL, NULL),
(92, 'C-Zero','10', NULL, NULL),
(93, 'Spacetourer','10', NULL, NULL),
(94, 'E-Mehari','10', NULL, NULL),
(95, 'Grand C4 Picasso','10', NULL, NULL),
(96, 'Logan','11', NULL, NULL),
(97, 'Lodgy','11', NULL, NULL),
(98, 'Sandero','11', NULL, NULL),
(99, 'Duster','11', NULL, NULL),
(100, 'Dokker','11', NULL, NULL),
(101, '<NAME>','12', NULL, NULL),
(102, '<NAME>','12', NULL, NULL),
(103, 'DS 3','13', NULL, NULL),
(104, 'DS 4','13', NULL, NULL),
(105, 'DS 5','13', NULL, NULL),
(106, 'DS 4 Crossback','13', NULL, NULL),
(107, 'DS 7 Crossback','13', NULL, NULL),
(108, '488','14', NULL, NULL),
(109, 'GTC4','14', NULL, NULL),
(110, 'California','14', NULL, NULL),
(111, 'F12','14', NULL, NULL),
(112, 'Portofino','14', NULL, NULL),
(113, '2','14', NULL, NULL),
(114, '458','15', NULL, NULL),
(115, 'FF','15', NULL, NULL),
(116, 'F-12','15', NULL, NULL),
(117, 'CaliforniaX','15', NULL, NULL),
(118, '488X','15', NULL, NULL),
(119, 'Bravo','16', NULL, NULL),
(120, 'Fiorino','16', NULL, NULL),
(121, 'C-Max','17', NULL, NULL),
(122, 'Fiesta','17', NULL, NULL),
(123, 'Focus','17', NULL, NULL),
(124, 'Mondeo','17', NULL, NULL),
(125, 'Ka','17', NULL, NULL),
(126, 'S-MAX','17', NULL, NULL),
(127, 'B-MAX','17', NULL, NULL),
(128, 'Grand C-MAx','17', NULL, NULL),
(129, 'Tourneo Custom','17', NULL, NULL),
(130, 'Kuga','17', NULL, NULL),
(131, 'Galaxy','17', NULL, NULL),
(132, 'Grand Tourneo Connect','17', NULL, NULL),
(133, 'Tourneo Connect','17', NULL, NULL),
(134, 'EcoSport','17', NULL, NULL),
(135, 'Tourneo Courier','17', NULL, NULL),
(136, 'Mustang','17', NULL, NULL),
(137, 'Transit Connect','17', NULL, NULL),
(138, 'Edge','17', NULL, NULL),
(139, 'Ka+','17', NULL, NULL),
(140, 'Accord','18', NULL, NULL),
(141, 'Jazz','18', NULL, NULL),
(142, 'Civic','18', NULL, NULL),
(143, 'CR-V','18', NULL, NULL),
(144, 'HR-V','18', NULL, NULL),
(145, 'I20','19', NULL, NULL),
(146, 'Ix35','19', NULL, NULL),
(147, 'Ix20','19', NULL, NULL),
(148, 'I10','19', NULL, NULL),
(149, 'Santa Fe','19', NULL, NULL),
(150, 'Veloster','19', NULL, NULL),
(151, 'I30','19', NULL, NULL),
(152, 'Elantra','19', NULL, NULL),
(153, 'I40','19', NULL, NULL),
(154, 'Grand Santa Fe','19', NULL, NULL),
(155, 'Genesis','19', NULL, NULL),
(156, 'H-1 Travel','19', NULL, NULL),
(157, 'Tucson','19', NULL, NULL),
(158, 'I20 Active','19', NULL, NULL),
(159, 'IONIQ','19', NULL, NULL),
(160, 'Kona','19', NULL, NULL),
(161, 'Q70','20', NULL, NULL),
(162, 'Q50','20', NULL, NULL),
(163, 'Qx70','20', NULL, NULL),
(164, 'Qx50','20', NULL, NULL),
(165, 'Q60','20', NULL, NULL),
(166, 'Q30','20', NULL, NULL),
(167, 'QX30','20', NULL, NULL),
(168, 'D-Max','21', NULL, NULL),
(169, 'Xf','22', NULL, NULL),
(170, '<NAME>','22', NULL, NULL),
(171, 'F-type','22', NULL, NULL),
(172, 'XJ','22', NULL, NULL),
(173, 'XE','22', NULL, NULL),
(174, 'F-Pace','22', NULL, NULL),
(175, 'E-Pace','22', NULL, NULL),
(176, 'Grand Cherokee','23', NULL, NULL),
(177, 'Wrangler Unlimited','23', NULL, NULL),
(178, 'CherokeeX','23', NULL, NULL),
(179, 'WranglerX','23', NULL, NULL),
(180, 'Renegade','23', NULL, NULL),
(181, 'Compass','23', NULL, NULL),
(182, 'Wrangler-Unlimited','24', NULL, NULL),
(183, 'Wrangler','24', NULL, NULL),
(184, 'Cherokee','24', NULL, NULL),
(185, 'Picanto','25', NULL, NULL),
(186, 'Rio','25', NULL, NULL),
(187, 'Sportage','25', NULL, NULL),
(188, 'Venga','25', NULL, NULL),
(189, 'Optima','25', NULL, NULL),
(190, 'Cee´d','25', NULL, NULL),
(191, 'Cee´d Sportswagon','25', NULL, NULL),
(192, 'Carens','25', NULL, NULL),
(193, 'Pro Cee´d','25', NULL, NULL),
(194, 'Sorento','25', NULL, NULL),
(195, 'Soul','25', NULL, NULL),
(196, 'Niro','25', NULL, NULL),
(197, 'Soul EV','25', NULL, NULL),
(198, 'Pro Cee´d GT','25', NULL, NULL),
(199, 'Stonic','25', NULL, NULL),
(200, 'Optima SW','25', NULL, NULL),
(201, 'Optima PHEV','25', NULL, NULL),
(202, 'Optima Hibrido Enchufable','25', NULL, NULL),
(203, 'optima SW GT','25', NULL, NULL),
(204, 'Optima GT','25', NULL, NULL),
(205, 'niro Hibrido Enchufable','25', NULL, NULL),
(206, 'Optima SW Hibrido Enchufable','25', NULL, NULL),
(207, 'Stinger','25', NULL, NULL),
(208, '4X4','26', NULL, NULL),
(209, 'Priora','26', NULL, NULL),
(210, 'Aventador','27', NULL, NULL),
(211, '<NAME>','27', NULL, NULL),
(212, '<NAME>','27', NULL, NULL),
(213, 'Aventador S Roadster','27', NULL, NULL),
(214, 'Huracán','27', NULL, NULL),
(215, '<NAME>','27', NULL, NULL),
(216, '<NAME>','27', NULL, NULL),
(217, 'Urus','27', NULL, NULL),
(218, 'Centenario','27', NULL, NULL),
(219, 'Sián','27', NULL, NULL),
(220, 'Gallardo','27', NULL, NULL),
(221, 'Reventón','27', NULL, NULL),
(222, 'Murcielago','27', NULL, NULL),
(223, 'Ypsilon','28', NULL, NULL),
(224, 'Voyager','28', NULL, NULL),
(225, 'Delta','28', NULL, NULL),
(226, 'Thema','29', NULL, NULL),
(227, 'Delta-X','29', NULL, NULL),
(228, 'Defender','30', NULL, NULL),
(229, 'Discovery 4','30', NULL, NULL),
(230, 'Range Rover','30', NULL, NULL),
(231, 'Range Rover Evoque','30', NULL, NULL),
(232, 'Range Rover Sport','30', NULL, NULL),
(233, 'Range Rover velar','30', NULL, NULL),
(234, 'Freelander','30', NULL, NULL),
(235, 'Discovery Sport','30', NULL, NULL),
(236, 'GS','31', NULL, NULL),
(237, 'RX','31', NULL, NULL),
(238, 'CT','31', NULL, NULL),
(239, 'IS','31', NULL, NULL),
(240, 'NX','31', NULL, NULL),
(241, 'RC','31', NULL, NULL),
(242, 'LS','31', NULL, NULL),
(243, 'LC','31', NULL, NULL),
(244, 'Goa','32', NULL, NULL),
(245, 'KUV100','32', NULL, NULL),
(246, 'XUV500','32', NULL, NULL),
(247, 'Quanto','32', NULL, NULL),
(248, 'Genio','32', NULL, NULL),
(249, '<NAME>','33', NULL, NULL),
(250, 'Quattroporte','33', NULL, NULL),
(251, 'Ghibli','33', NULL, NULL),
(252, '<NAME>','33', NULL, NULL),
(253, 'Levante','33', NULL, NULL),
(254, 'Mazda 2','34', NULL, NULL),
(255, 'CX-5','34', NULL, NULL),
(256, 'Mazda 6','34', NULL, NULL),
(257, 'MX-5','34', NULL, NULL),
(258, 'Mazda 3','34', NULL, NULL),
(259, 'Mazda 5','34', NULL, NULL),
(260, 'CX-9','34', NULL, NULL),
(261, 'CX-3','34', NULL, NULL),
(262, 'Clase SL','35', NULL, NULL),
(263, 'Clase SLK','35', NULL, NULL),
(264, 'Clase V','35', NULL, NULL),
(265, 'Clase C','35', NULL, NULL),
(266, 'Clase M','35', NULL, NULL),
(267, 'Clase G','35', NULL, NULL),
(268, 'Clase E','35', NULL, NULL),
(269, 'Clase CL','35', NULL, NULL),
(270, 'Clase S','35', NULL, NULL),
(271, 'Clase GLK-X','35', NULL, NULL),
(272, 'Clase AMG','35', NULL, NULL),
(273, 'Clase B','35', NULL, NULL),
(274, 'Clase A','35', NULL, NULL),
(275, 'Clase GL','35', NULL, NULL),
(276, 'Clase GLS','35', NULL, NULL),
(277, 'Clase GLA','35', NULL, NULL),
(278, 'AMG GT','35', NULL, NULL),
(279, 'Vito','35', NULL, NULL),
(280, 'Clase GLE Coupé','35', NULL, NULL),
(281, 'Clase GLE','35', NULL, NULL),
(282, 'Clase GLK','35', NULL, NULL),
(283, 'Clase GLC','35', NULL, NULL),
(284, 'Clase SLS','35', NULL, NULL),
(285, 'GLC Coupé','35', NULL, NULL),
(286, 'CLS','35', NULL, NULL),
(287, 'Mini','36', NULL, NULL),
(288, 'COUTRYMAN','36', NULL, NULL),
(289, 'PACEMAN','36', NULL, NULL),
(290, 'CLUBMAN','36', NULL, NULL),
(291, 'Montero','37', NULL, NULL),
(292, 'I-MiEV','37', NULL, NULL),
(293, 'ASX','37', NULL, NULL),
(294, 'Outlander','37', NULL, NULL),
(295, 'Space Star','37', NULL, NULL),
(296, 'L200','37', NULL, NULL),
(297, 'Eclipse Cross','37', NULL, NULL),
(298, 'Roadster','38', NULL, NULL),
(299, 'Plus 8','38', NULL, NULL),
(300, 'Plus 4','38', NULL, NULL),
(301, '4/4','38', NULL, NULL),
(302, 'X-TRAIL','39', NULL, NULL),
(303, 'QASHQAI','39', NULL, NULL),
(304, 'NOTE','39', NULL, NULL),
(305, 'LEAF','39', NULL, NULL),
(306, 'Pathfinder','39', NULL, NULL),
(307, 'EVALIA','39', NULL, NULL),
(308, 'Navara','39', NULL, NULL),
(309, 'Micra','39', NULL, NULL),
(310, 'JUKE','39', NULL, NULL),
(311, '370Z','39', NULL, NULL),
(312, 'NV-200','39', NULL, NULL),
(313, 'GT-R','39', NULL, NULL),
(314, 'PULSAR','39', NULL, NULL),
(315, 'Murano','39', NULL, NULL),
(316, 'NV200 EVALIA','39', NULL, NULL),
(317, 'E-NV200 EVALIA','39', NULL, NULL),
(318, 'Mokka X','40', NULL, NULL),
(319, 'Vivaro-X','40', NULL, NULL),
(320, '<NAME>','40', NULL, NULL),
(321, 'Corsa','41', NULL, NULL),
(322, 'Astra','41', NULL, NULL),
(323, 'Meriva','41', NULL, NULL),
(324, '<NAME>','41', NULL, NULL),
(325, 'Zafira','41', NULL, NULL),
(326, 'Insignia','41', NULL, NULL),
(327, 'Combo','41', NULL, NULL),
(328, 'Ampera','41', NULL, NULL),
(329, 'Mokka','41', NULL, NULL),
(330, 'Adam','41', NULL, NULL),
(331, 'Cabrio','41', NULL, NULL),
(332, 'Antara','41', NULL, NULL),
(333, 'Karl','41', NULL, NULL),
(334, 'GTC','41', NULL, NULL),
(335, 'Crossland X','41', NULL, NULL),
(336, 'Mokka-X','41', NULL, NULL),
(337, 'Grandland X','41', NULL, NULL),
(338, 'Vivaro','41', NULL, NULL),
(339, '308','42', NULL, NULL),
(340, '807','42', NULL, NULL),
(341, 'Bipper','42', NULL, NULL),
(342, '508','42', NULL, NULL),
(343, 'Partner','42', NULL, NULL),
(344, '3008','42', NULL, NULL),
(345, '208','42', NULL, NULL),
(346, '2008','42', NULL, NULL),
(347, 'RCZ','42', NULL, NULL),
(348, '5008','42', NULL, NULL),
(349, '4008','42', NULL, NULL),
(350, '108','42', NULL, NULL),
(351, '207','42', NULL, NULL),
(352, 'ION','42', NULL, NULL),
(353, 'TRAVELLER','42', NULL, NULL),
(354, '911','43', NULL, NULL),
(355, 'Boxter','43', NULL, NULL),
(356, 'Cayenne','43', NULL, NULL),
(357, 'Panamera','43', NULL, NULL),
(358, '918','43', NULL, NULL),
(359, 'Macan','43', NULL, NULL),
(360, 'Cayman','43', NULL, NULL),
(361, '718','43', NULL, NULL),
(362, 'Fluence','44', NULL, NULL),
(363, '<NAME>','44', NULL, NULL),
(364, 'Latitude','44', NULL, NULL),
(365, 'Clio','44', NULL, NULL),
(366, 'Scénic','44', NULL, NULL),
(367, 'Laguna','44', NULL, NULL),
(368, '<NAME>','44', NULL, NULL),
(369, 'Mégane','44', NULL, NULL),
(370, '<NAME>','44', NULL, NULL),
(371, 'captur','44', NULL, NULL),
(372, 'ZOE','44', NULL, NULL),
(373, 'Koleos','44', NULL, NULL),
(374, 'Twingo','44', NULL, NULL),
(375, 'Space','44', NULL, NULL),
(376, 'Kadjar','44', NULL, NULL),
(377, 'Talisman','44', NULL, NULL),
(378, 'Phantom','45', NULL, NULL),
(379, 'Ibiza','46', NULL, NULL),
(380, '<NAME>','46', NULL, NULL),
(381, 'Alhambra','46', NULL, NULL),
(382, 'Altea','46', NULL, NULL),
(383, 'Mii','46', NULL, NULL),
(384, 'Toledo','46', NULL, NULL),
(385, 'Altea XL','46', NULL, NULL),
(386, 'Ateca','46', NULL, NULL),
(387, 'León','46', NULL, NULL),
(388, '<NAME>','46', NULL, NULL),
(389, 'Arona','46', NULL, NULL),
(390, 'Octavia','47', NULL, NULL),
(391, 'Fabia','47', NULL, NULL),
(392, 'Roomster','47', NULL, NULL),
(393, 'Yeti','47', NULL, NULL),
(394, 'SuperB','47', NULL, NULL),
(395, 'Citigo','47', NULL, NULL),
(396, 'Rapid','47', NULL, NULL),
(397, 'Spacebank','47', NULL, NULL),
(398, 'Scout','47', NULL, NULL),
(399, 'Kodiaq','47', NULL, NULL),
(400, 'Karoq','47', NULL, NULL),
(401, 'Fortwo','48', NULL, NULL),
(402, 'Forfour','48', NULL, NULL),
(403, 'Rexton','49', NULL, NULL),
(404, 'Rodius','49', NULL, NULL),
(405, 'Korando','49', NULL, NULL),
(406, 'Actyon Sports Pick Up','49', NULL, NULL),
(407, 'Tivoly','49', NULL, NULL),
(408, 'XLV','49', NULL, NULL),
(409, 'Forester','50', NULL, NULL),
(410, 'XV','50', NULL, NULL),
(411, 'Outback','50', NULL, NULL),
(412, 'BRZ','50', NULL, NULL),
(413, 'WRX STI','50', NULL, NULL),
(414, 'Levorg','50', NULL, NULL),
(415, 'Grand Vitara','51', NULL, NULL),
(416, 'Swift','51', NULL, NULL),
(417, 'SX4','51', NULL, NULL),
(418, 'Jimmy','51', NULL, NULL),
(419, 'Grand SX4 S-Cross','51', NULL, NULL),
(420, 'Celerio','51', NULL, NULL),
(421, 'Kizashi','51', NULL, NULL),
(422, 'Vitara','51', NULL, NULL),
(423, 'Baleno','51', NULL, NULL),
(424, 'ignis','51', NULL, NULL),
(425, 'Xenon','52', NULL, NULL),
(426, 'Aria','52', NULL, NULL),
(427, 'Vista','52', NULL, NULL),
(428, 'Model X','53', NULL, NULL),
(429, 'Model S','53', NULL, NULL),
(430, 'Avenis','54', NULL, NULL),
(431, '<NAME>','54', NULL, NULL),
(432, 'Yaris','54', NULL, NULL),
(433, 'verso','54', NULL, NULL),
(434, 'Auris','54', NULL, NULL),
(435, 'Prius+','54', NULL, NULL),
(436, 'GT86','54', NULL, NULL),
(437, 'Prius','54', NULL, NULL),
(438, 'Rav4','54', NULL, NULL),
(439, 'Aygo','54', NULL, NULL),
(440, 'Hilux','54', NULL, NULL),
(441, 'Land Cruiser 200','54', NULL, NULL),
(442, '<NAME>','54', NULL, NULL),
(443, 'C-HR','54', NULL, NULL),
(444, 'Polo','55', NULL, NULL),
(445, 'Jetta','55', NULL, NULL),
(446, 'Phaeton','55', NULL, NULL),
(447, 'Golf','55', NULL, NULL),
(448, 'Touran','55', NULL, NULL),
(449, 'Touareg','55', NULL, NULL),
(450, 'Beetle','55', NULL, NULL),
(451, 'Sharan','55', NULL, NULL),
(452, 'Tiguan','55', NULL, NULL),
(453, 'Multivan','55', NULL, NULL),
(454, 'California-X','55', NULL, NULL),
(455, 'Caravelle','55', NULL, NULL),
(456, 'Ups','55', NULL, NULL),
(457, 'CC','55', NULL, NULL),
(458, '<NAME>','55', NULL, NULL),
(459, 'Amarok','55', NULL, NULL),
(460, 'Caddy','55', NULL, NULL),
(461, 'Transporter','55', NULL, NULL),
(462, 'Scirocco','55', NULL, NULL),
(463, 'Passar','55', NULL, NULL),
(464, 'Eos','55', NULL, NULL),
(465, 'Arteon','55', NULL, NULL),
(466, 'T-Roc','55', NULL, NULL),
(467, '<NAME>','55', NULL, NULL),
(468, 'V70','56', NULL, NULL),
(469, 'S80','56', NULL, NULL),
(470, 'XC70','56', NULL, NULL),
(471, 'V60','56', NULL, NULL),
(472, 'S60X','56', NULL, NULL),
(473, 'XC90','56', NULL, NULL),
(474, 'XC60','56', NULL, NULL),
(475, 'V40','56', NULL, NULL),
(476, 'V40 CrossCountry','56', NULL, NULL),
(477, 'V60 CrossCountry','56', NULL, NULL),
(478, 'S60 CrossCountry','56', NULL, NULL),
(479, 'V90 CrossCountry','56', NULL, NULL),
(480, 'S90','56', NULL, NULL),
(481, 'V90','56', NULL, NULL),
(482, 'XC40','56', NULL, NULL);
|
-- Sample table schema for less-locking universal PgSQL queue
--CREATE USER test PASSWORD '<PASSWORD>';
--CREATE DATABASE temp OWNER='test' TEMPLATE='template0';
DROP TABLE IF EXISTS queuellss;
CREATE TABLE queuellss (
queue_name VARCHAR(64) NOT NULL,
queue_id BIGSERIAL,
PRIMARY KEY (queue_id),
ephemeral_id BIGINT NOT NULL DEFAULT 0,
msg_org_timestamp TIMESTAMP NOT NULL,
msg_timestamp TIMESTAMP NOT NULL,
msg_num_requeues INT NOT NULL DEFAULT 0,
msg_content BYTEA
);
CREATE INDEX queuellss_queue_name ON queuellss(queue_name);
CREATE INDEX queuellss_ephemeral_id ON queuellss(ephemeral_id);
CREATE INDEX queuellss_msg_timestamp ON queuellss(msg_timestamp);
|
<filename>sql/raw/base_municipios_datos.sql
create table raw.base_municipios_datos (
renglon character varying,
clave character varying,
clave_ent character varying,
nom_ent character varying,
mun character varying,
sexo character varying,
ano character varying,
edad_quin character varying,
pob character varying
); |
/*
SQLyog Community v13.1.6 (64 bit)
MySQL - 10.4.14-MariaDB : Database - btrulead_leads
*********************************************************************
*/
/*!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*/`btrulead_leads` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
USE `btrulead_leads`;
/*Table structure for table `calendar` */
DROP TABLE IF EXISTS `calendar`;
CREATE TABLE `calendar` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(100) NOT NULL,
`title` varchar(255) NOT NULL,
`location` varchar(255) DEFAULT NULL,
`desc` text DEFAULT NULL,
`start_at` timestamp NOT NULL DEFAULT current_timestamp(),
`end_at` timestamp NULL DEFAULT NULL,
`status` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
/*Data for the table `calendar` */
/*!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>benchmark/Uberlandia/queries-monetdb/9.sql
SELECT "Uberlandia_1"."nome da sit matricula (situacao detalhada)" AS "nome da sit matricula (situacao detalhada)" FROM "Uberlandia_1" GROUP BY "Uberlandia_1"."nome da sit matricula (situacao detalhada)" LIMIT 28;
|
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Lua_Hello', 'dl_npc_lua', 'Oh, hello. It''s very uncommon to see a mage with such a special aura. You''re an elementalist, right?', 'Oh, hallo. Es ist ziemlich unüblich, einen Magier mit einer solch speziellen Aura zu treffen. Du bist ein Elementarmagier, nicht wahr?', 'Oh, hallo. Es isch ziemlig ungwöhnlich ä Magier mit sonere speziellä Aura z''träffe. Du bisch ä Elementarmagier, gäll?');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Choice_Elementalist', 'dl_npc_lua', 'Yes, you''re right. How do you know?', 'Ja, bin ich. Woher weisst du das?', 'Ja, bini. Woher weisch du das?');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Choice_Flirt', 'dl_npc_lua', 'It''s also uncommon to meet such a beautiful lady here.', 'Es ist auch unüblich, hier so eine hübsche Dame zu treffen.', 'Es isch au ungwöhnlich, da sone hübschi Dame z''treffe.');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Lua_Elementalist', 'dl_npc_lua', 'I''m a clairvoyant. (Smiles mysteriously)', 'Ich bin eine Sehende. (Lächelt geheimnisvoll)', 'Ich bi ä Sehendi. (Lächlet gheimnisvoll)');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Lua_Flirt', 'dl_npc_lua', '(Blushes) Oh, thank you. What a pity, my skills as a clairvoyant only show me your aura, not your thoughts.', '(Errötet) Oh, danke. Wie schade, meine Fähigkeiten als Sehende enthüllen nur deine Aura, nicht aber deine Gedanken.', '(Errötet) Oh, merci. Schad, mini Fähigkeite als Sehendi enthüllä nur dini Aura, aber nid dini Gedanggä.');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Choice_Clairvoyant', 'dl_npc_lua', 'What does it mean to be a clairvoyant?', 'Was bedeutet es, eine Sehende zu sein?', 'Was heissts, e Sehendi z''sii?');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Choice_MyAura', 'dl_npc_lua', 'What colour does my aura have then?', 'Was für eine Farbe hat dann meine Aura?', 'Wa füre Farb het denn mini Aura?');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Choice_NoNecromancer', 'dl_npc_lua', 'You don''t look like a necromancer...', 'Du siehst nicht gerade wie ein Nekromant aus...', 'Du gsesch nid grad we en Nekromant us...');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Choice_EyeQuest', 'dl_npc_lua', 'Can I help you with something?', 'Kann ich dir irgendwie helfen?', 'Chan ich dir irgendwie helfe?');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Choice_GotEye', 'dl_npc_lua', 'I got your amulet.', 'Ich habe dein Amulett.', 'Ich ha dis Amulett.');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Lua_Clairvoyant', 'dl_npc_lua', 'Most mages only feel the power of someone''s aura. People like me can see their colour - the mage''s affinity to a type of magic.', 'Die meisten Magier spüren nur die Kraft von Auren. Leute wie ich sehen aber ihre Farbe - die Affinität eines Magiers zu einem Zweig der Magie.', 'Diä meischtä Magier gspüürä nur d''Kraft vo Aurenä. Lüt wiä ich gsehn aber ihri Farb - d''Affinität vom Magier zunere gwüsse Art vo Magie.');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Lua_MyAura', 'dl_npc_lua', 'For me, it appears in a fiery red. Exceptionally beautiful to look at.', 'Für mich erscheint sie in einem feurigen Rot. Ein aussergewöhnlich schöner Anblick. ', 'Für mich erschiint sie imene Fyyrrot. Wirgglig ussergwöhnlig zum aaluege.');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Lua_NoNecromancer', 'dl_npc_lua', 'Just because I don''t wear their robes? Well, to be honest, I just came here to read.', 'Einfach weil ich nicht ihre Roben trage? Nun, um ehrlich zu sein, bin ich einfach zum Lesen hergekommen.', 'Nur willi nit ihri Robe aa ha? Jo wenni ehrlig bi bini au nur doo zum läse.');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Lua_NoNecromancer2', 'dl_npc_lua', 'I love this library. So much knowledge that would be burned by the clerics if they got the chance...', 'Ich liebe diese Bibliothek. So viel Wissen, welches von den Klerikern verbrannt werden würde, wenn es ihnen möglich wäre.', 'Ich lieb die Bibliothek. So viel Wüssä wo vo dä Kleriker verbrennt wärde würd, wennsi d''Möglichkeit drzue hättä.');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Lua_EyeQuest', 'dl_npc_lua', 'Oh, that''s so nice of you to ask. ', 'Oh, lieb von dir, dass du fragst.', 'Oh, isch lieb, dassd fragsch.');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Lua_EyeQuest2', 'dl_npc_lua', 'My dear magical amulet, the "Eye of the Moon", got stolen.', 'Mein geliebtes magisches Amulett, das "Auge des Mondes", wurde gestohlen.', 'Mis gliebt Amulet, es "Mondaug" isch gstoohle worde.');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Lua_EyeQuest3', 'dl_npc_lua', 'Unfortunately, I don''t have any clue where it could be.', 'Leider habe ich keine Idee, wo es sein könnte.', 'Leider hani gar keni Ideä, wos si chenti.');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Lua_EyeQuest4', 'dl_npc_lua', 'But I would give you my gold and precious stones, if you happen to find it.', 'Aber ich würde dir mein Gold und Edelsteine überlassen, wenn du es finden solltest.', 'Aber ich wür der mis Gold und Edelstei ge, wennds finde söttsch.');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Lua_GotEye', 'dl_npc_lua', 'Wow, you really found it?', 'Wow, du hast es wirklich gefunden?', 'Wow, du hesches würkli gfunde?');
INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Lua_GotEye2', 'dl_npc_lua', 'I really, really missed it. Thank you, my hero. Here, take your reward.', 'Das habe ich wirklich sehr vermisst. Vielen Dank, mein Held. Hier, nimm deine Belohnung.', 'Das hani wirgglig sehr vrmisst. Danke, <NAME>. Da, nimm dini Belohnig.');
|
/* Sales */
UPDATE `modules` SET `ModuleStatus`='0' WHERE `ModuleId`=7;
/* Purchase */
UPDATE `modules` SET `ModuleStatus`='0' WHERE `ModuleId`=8;
/* Accounts */
UPDATE `modules` SET `ModuleStatus`='0' WHERE `ModuleId`=9;
/* Purchase Order */
UPDATE `menu` SET `menu_status`='0' WHERE `menu_id`=268;
/* Purchase Inward */
UPDATE `menu` SET `menu_status`='0' WHERE `menu_id`=274;
/* General Inward */
UPDATE `menu` SET `menu_status`='0' WHERE `menu_id`=280;
/* Credit Note */
UPDATE `menu` SET `menu_status`='0' WHERE `menu_id`=297;
/* Debit Note */
UPDATE `menu` SET `menu_status`='0' WHERE `menu_id`=303; |
use esa;
drop table if exists assets;
create table assets
(
asset_id bigint NOT NULL AUTO_INCREMENT,
merchant_id bigint not null,
parent_id bigint null,
label varchar(255) not null,
value varchar(800) not null,
PRIMARY KEY(asset_id)
);
|
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: address_alias; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE address_alias (
address_alias_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
principal_pid character varying(15) NOT NULL,
alias_pid character varying(15) NOT NULL,
alias_type_code character varying(10) NOT NULL,
alias_comment character varying(200)
);
ALTER TABLE address_alias OWNER TO postgres;
--
-- Name: address_alias_type_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE address_alias_type_aut (
code character varying(10) NOT NULL,
name character varying(50) NOT NULL,
description character varying(30)
);
ALTER TABLE address_alias_type_aut OWNER TO postgres;
--
-- Name: address_default_geocode; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE address_default_geocode (
address_default_geocode_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
address_detail_pid character varying(15) NOT NULL,
geocode_type_code character varying(4) NOT NULL,
longitude numeric(11,8),
latitude numeric(10,8)
);
ALTER TABLE address_default_geocode OWNER TO postgres;
--
-- Name: address_detail; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE address_detail (
address_detail_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_last_modified date,
date_retired date,
building_name character varying(100),
lot_number_prefix character varying(2),
lot_number character varying(5),
lot_number_suffix character varying(2),
flat_type_code character varying(7),
flat_number_prefix character varying(2),
flat_number numeric(5,0),
flat_number_suffix character varying(2),
level_type_code character varying(4),
level_number_prefix character varying(2),
level_number numeric(3,0),
level_number_suffix character varying(2),
number_first_prefix character varying(3),
number_first numeric(6,0),
number_first_suffix character varying(2),
number_last_prefix character varying(3),
number_last numeric(6,0),
number_last_suffix character varying(2),
street_locality_pid character varying(15),
location_description character varying(45),
locality_pid character varying(15) NOT NULL,
alias_principal character(1),
postcode character varying(4),
private_street character varying(75),
legal_parcel_id character varying(20),
confidence numeric(1,0),
address_site_pid character varying(15) NOT NULL,
level_geocoded_code numeric(2,0) NOT NULL,
property_pid character varying(15),
gnaf_property_pid character varying(15),
primary_secondary character varying(1)
);
ALTER TABLE address_detail OWNER TO postgres;
--
-- Name: address_mesh_block_2021; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE address_mesh_block_2021 (
address_mesh_block_2021_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
address_detail_pid character varying(15) NOT NULL,
mb_match_code character varying(15) NOT NULL,
mb_2021_pid character varying(15) NOT NULL
);
ALTER TABLE address_mesh_block_2021 OWNER TO postgres;
--
-- Name: address_mesh_block_2016; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE address_mesh_block_2016 (
address_mesh_block_2016_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
address_detail_pid character varying(15) NOT NULL,
mb_match_code character varying(15) NOT NULL,
mb_2016_pid character varying(15) NOT NULL
);
ALTER TABLE address_mesh_block_2016 OWNER TO postgres;
----
---- Name: address_mesh_block_2011; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
----
--
--CREATE TABLE address_mesh_block_2011 (
-- address_mesh_block_2011_pid character varying(15) NOT NULL,
-- date_created date NOT NULL,
-- date_retired date,
-- address_detail_pid character varying(15) NOT NULL,
-- mb_match_code character varying(15) NOT NULL,
-- mb_2011_pid character varying(15) NOT NULL
--);
--
--
--ALTER TABLE address_mesh_block_2011 OWNER TO postgres;
--
-- Name: address_site; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE address_site (
address_site_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
address_type character varying(8),
address_site_name character varying(45)
);
ALTER TABLE address_site OWNER TO postgres;
--
-- Name: address_site_geocode; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE address_site_geocode (
address_site_geocode_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
address_site_pid character varying(15),
geocode_site_name character varying(46),
geocode_site_description character varying(45),
geocode_type_code character varying(4),
reliability_code numeric(1,0) NOT NULL,
boundary_extent numeric(7,0),
planimetric_accuracy numeric(12,0),
elevation numeric(7,0),
longitude numeric(11,8),
latitude numeric(10,8)
);
ALTER TABLE address_site_geocode OWNER TO postgres;
--
-- Name: address_type_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE address_type_aut (
code character varying(8) NOT NULL,
name character varying(50) NOT NULL,
description character varying(30)
);
ALTER TABLE address_type_aut OWNER TO postgres;
--
-- Name: flat_type_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE flat_type_aut (
code character varying(7) NOT NULL,
name character varying(50) NOT NULL,
description character varying(30)
);
ALTER TABLE flat_type_aut OWNER TO postgres;
--
-- Name: geocode_reliability_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE geocode_reliability_aut (
code numeric(1,0) NOT NULL,
name character varying(50) NOT NULL,
description character varying(100)
);
ALTER TABLE geocode_reliability_aut OWNER TO postgres;
--
-- Name: geocode_type_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE geocode_type_aut (
code character varying(4) NOT NULL,
name character varying(50) NOT NULL,
description character varying(250)
);
ALTER TABLE geocode_type_aut OWNER TO postgres;
--
-- Name: geocoded_level_type_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE geocoded_level_type_aut (
code numeric(2,0) NOT NULL,
name character varying(50) NOT NULL,
description character varying(70)
);
ALTER TABLE geocoded_level_type_aut OWNER TO postgres;
--
-- Name: level_type_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE level_type_aut (
code character varying(4) NOT NULL,
name character varying(50) NOT NULL,
description character varying(30)
);
ALTER TABLE level_type_aut OWNER TO postgres;
--
-- Name: locality; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE locality (
locality_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
locality_name character varying(100) NOT NULL,
primary_postcode character varying(4),
locality_class_code character(1) NOT NULL,
state_pid character varying(15) NOT NULL,
gnaf_locality_pid character varying(15),
gnaf_reliability_code numeric(1,0) NOT NULL
);
ALTER TABLE locality OWNER TO postgres;
--
-- Name: locality_alias; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE locality_alias (
locality_alias_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
locality_pid character varying(15) NOT NULL,
name character varying(100) NOT NULL,
postcode character varying(4),
alias_type_code character varying(10) NOT NULL,
state_pid character varying(15) NOT NULL
);
ALTER TABLE locality_alias OWNER TO postgres;
--
-- Name: locality_alias_type_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE locality_alias_type_aut (
code character varying(10) NOT NULL,
name character varying(50) NOT NULL,
description character varying(100)
);
ALTER TABLE locality_alias_type_aut OWNER TO postgres;
--
-- Name: locality_class_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE locality_class_aut (
code character(1) NOT NULL,
name character varying(50) NOT NULL,
description character varying(200)
);
ALTER TABLE locality_class_aut OWNER TO postgres;
--
-- Name: locality_neighbour; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE locality_neighbour (
locality_neighbour_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
locality_pid character varying(15) NOT NULL,
neighbour_locality_pid character varying(15) NOT NULL
);
ALTER TABLE locality_neighbour OWNER TO postgres;
--
-- Name: locality_point; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE locality_point (
locality_point_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
locality_pid character varying(15) NOT NULL,
planimetric_accuracy numeric(12,0),
longitude numeric(11,8),
latitude numeric(10,8)
);
ALTER TABLE locality_point OWNER TO postgres;
--
-- Name: mb_2021; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE mb_2021 (
mb_2021_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
mb_2021_code character varying(15) NOT NULL
);
ALTER TABLE mb_2021 OWNER TO postgres;
--
-- Name: mb_2016; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE mb_2016 (
mb_2016_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
mb_2016_code character varying(15) NOT NULL
);
ALTER TABLE mb_2016 OWNER TO postgres;
----
---- Name: mb_2011; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
----
--
--CREATE TABLE mb_2011 (
-- mb_2011_pid character varying(15) NOT NULL,
-- date_created date NOT NULL,
-- date_retired date,
-- mb_2011_code character varying(15) NOT NULL
--);
--
--
--ALTER TABLE mb_2011 OWNER TO postgres;
--
-- Name: mb_match_code_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE mb_match_code_aut (
code character varying(15) NOT NULL,
name character varying(100) NOT NULL,
description character varying(250)
);
ALTER TABLE mb_match_code_aut OWNER TO postgres;
--
-- Name: primary_secondary; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE primary_secondary (
primary_secondary_pid character varying(15) NOT NULL,
primary_pid character varying(15) NOT NULL,
secondary_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
ps_join_type_code numeric(2,0) NOT NULL,
ps_join_comment character varying(500)
);
ALTER TABLE primary_secondary OWNER TO postgres;
--
-- Name: ps_join_type_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ps_join_type_aut (
code numeric(2,0) NOT NULL,
name character varying(50) NOT NULL,
description character varying(500)
);
ALTER TABLE ps_join_type_aut OWNER TO postgres;
--
-- Name: state; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE state (
state_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
state_name character varying(50) NOT NULL,
state_abbreviation character varying(3) NOT NULL
);
ALTER TABLE state OWNER TO postgres;
--
-- Name: street_class_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE street_class_aut (
code character(1) NOT NULL,
name character varying(50) NOT NULL,
description character varying(200)
);
ALTER TABLE street_class_aut OWNER TO postgres;
--
-- Name: street_locality; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE street_locality (
street_locality_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
street_class_code character(1) NOT NULL,
street_name character varying(100) NOT NULL,
street_type_code character varying(15),
street_suffix_code character varying(15),
locality_pid character varying(15) NOT NULL,
gnaf_street_pid character varying(15),
gnaf_street_confidence numeric(1,0),
gnaf_reliability_code numeric(1,0) NOT NULL
);
ALTER TABLE street_locality OWNER TO postgres;
--
-- Name: street_locality_alias; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE street_locality_alias (
street_locality_alias_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
street_locality_pid character varying(15) NOT NULL,
street_name character varying(100) NOT NULL,
street_type_code character varying(15),
street_suffix_code character varying(15),
alias_type_code character varying(10) NOT NULL
);
ALTER TABLE street_locality_alias OWNER TO postgres;
--
-- Name: street_locality_alias_type_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE street_locality_alias_type_aut (
code character varying(10) NOT NULL,
name character varying(50) NOT NULL,
description character varying(15)
);
ALTER TABLE street_locality_alias_type_aut OWNER TO postgres;
--
-- Name: street_locality_point; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE street_locality_point (
street_locality_point_pid character varying(15) NOT NULL,
date_created date NOT NULL,
date_retired date,
street_locality_pid character varying(15) NOT NULL,
boundary_extent numeric(7,0),
planimetric_accuracy numeric(12,0),
longitude numeric(11,8),
latitude numeric(10,8)
);
ALTER TABLE street_locality_point OWNER TO postgres;
--
-- Name: street_suffix_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE street_suffix_aut (
code character varying(15) NOT NULL,
name character varying(50) NOT NULL,
description character varying(30)
);
ALTER TABLE street_suffix_aut OWNER TO postgres;
--
-- Name: street_type_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE street_type_aut (
code character varying(15) NOT NULL,
name character varying(50) NOT NULL,
description character varying(15)
);
ALTER TABLE street_type_aut OWNER TO postgres;
-- new for August 2018
--
-- Name: address_feature; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE address_feature (
address_feature_id character varying(16) NOT NULL,
address_feature_pid character varying(16) NOT NULL,
address_detail_pid character varying(15) NOT NULL,
date_address_detail_created date,
date_address_detail_retired date,
address_change_type_code character varying(50) -- possible data issue - some values were null in the 201808 release
);
ALTER TABLE address_feature OWNER TO postgres;
--
-- Name: address_change_type_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE address_change_type_aut (
code character varying(50) NOT NULL,
name character varying(100) NOT NULL,
description character varying(500)
);
ALTER TABLE address_change_type_aut OWNER TO postgres;
--
-- Name: address_change_type_aut; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE locality_pid_linkage (
ab_locality_pid character varying(15) NOT NULL,
ab_locality_polygon_pid character varying(15) NOT NULL,
locality_pid character varying(15) NOT NULL,
locality_polygon_pid character varying(15) NOT NULL,
state character varying(3)
);
ALTER TABLE locality_pid_linkage OWNER TO postgres;
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;
|
UPDATE `menu` SET `menu_name`='Production Report', `menu_title`='Production Report' WHERE `menu_id`=401;
INSERT INTO `menu` (`menu_id`, `ModuleId`, `role_id`, `menu_name`, `menu_title`, `menu_image`, `menu_template`, `menu_order`, `parent`, `target`, `menu_default`, `menu_status`, `external_link`, `show_after_login`, `entry_by`, `IsTop`, `IsSideMenu`, `IsFooter`, `IsListing`, `IsAdd`, `IsEdit`, `IsDelete`, `IsView`, `IsPrint`, `IsApprove`, `IsUnApprove`, `IsEmail`, `IsSMS`, `IsExportExcel`, `IsExportPDF`, `IsImport`) VALUES (438, 2, 423, 'Carding - Summary', 'Carding - Summary', NULL, 'carding_summary', 8, 400, '_self', '0', '1', NULL, '0', 1, '0', '1', '0', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
INSERT INTO `menu` (`menu_id`, `ModuleId`, `role_id`, `menu_name`, `menu_title`, `menu_image`, `menu_template`, `menu_order`, `parent`, `target`, `menu_default`, `menu_status`, `external_link`, `show_after_login`, `entry_by`, `IsTop`, `IsSideMenu`, `IsFooter`, `IsListing`, `IsAdd`, `IsEdit`, `IsDelete`, `IsView`, `IsPrint`, `IsApprove`, `IsUnApprove`, `IsEmail`, `IsSMS`, `IsExportExcel`, `IsExportPDF`, `IsImport`) VALUES (439, 2, 423, 'Carding - Detail', 'Carding - Detail', NULL, 'carding_detail', 9, 400, '_self', '0', '1', NULL, '0', 1, '0', '1', '0', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
INSERT INTO `menu` (`menu_id`, `ModuleId`, `menu_name`, `menu_title`, `menu_template`, `menu_order`, `menu_status`) VALUES (442, '10', 'Mis', 'Mis', 'report', '2', '0');
INSERT INTO `menu` (`menu_id`, `ModuleId`, `role_id`, `menu_name`, `menu_title`, `menu_image`, `menu_template`, `menu_order`, `parent`, `target`, `menu_default`, `menu_status`, `external_link`, `show_after_login`, `entry_by`, `IsTop`, `IsSideMenu`, `IsFooter`, `IsListing`, `IsAdd`, `IsEdit`, `IsDelete`, `IsView`, `IsPrint`, `IsApprove`, `IsUnApprove`, `IsEmail`, `IsSMS`, `IsExportExcel`, `IsExportPDF`, `IsImport`) VALUES (440, 10, 442, 'Prod Analysis - Summary', 'Prod Analysis - Summary', NULL, 'production_analysis_sum', 22, 400, '_self', '0', '1', NULL, '0', 1, '0', '1', '0', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
INSERT INTO `menu` (`menu_id`, `ModuleId`, `role_id`, `menu_name`, `menu_title`, `menu_image`, `menu_template`, `menu_order`, `parent`, `target`, `menu_default`, `menu_status`, `external_link`, `show_after_login`, `entry_by`, `IsTop`, `IsSideMenu`, `IsFooter`, `IsListing`, `IsAdd`, `IsEdit`, `IsDelete`, `IsView`, `IsPrint`, `IsApprove`, `IsUnApprove`, `IsEmail`, `IsSMS`, `IsExportExcel`, `IsExportPDF`, `IsImport`) VALUES (441, 10, 442, 'Prod Analysis - Detail', 'Prod Analysis - Detail', NULL, 'production_analysis_det', 22, 400, '_self', '0', '1', NULL, '0', 1, '0', '1', '0', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
UPDATE `menu` SET `menu_order`='10' WHERE `menu_id`=408;
UPDATE `menu` SET `menu_order`='11' WHERE `menu_id`=409;
UPDATE `menu` SET `menu_order`='12' WHERE `menu_id`=410;
UPDATE `menu` SET `menu_order`='13' WHERE `menu_id`=411;
UPDATE `menu` SET `menu_order`='14' WHERE `menu_id`=412;
UPDATE `menu` SET `menu_order`='15' WHERE `menu_id`=413;
UPDATE `menu` SET `menu_order`='16' WHERE `menu_id`=414;
UPDATE `menu` SET `menu_order`='17' WHERE `menu_id`=415;
UPDATE `menu` SET `menu_order`='18' WHERE `menu_id`=416;
UPDATE `menu` SET `menu_order`='19' WHERE `menu_id`=417;
UPDATE `menu` SET `menu_order`='20' WHERE `menu_id`=418;
UPDATE `menu` SET `menu_order`='21' WHERE `menu_id`=419; |
<filename>psql/seed.sql
DO $$
DECLARE
v_user1_uuid uuid = '08BDE84B-757C-4EF9-BF9F-08B2366FF6F1';
v_user_servce1_uuid uuid = '08BDE84B-757C-4EF9-BF9F-08B2366FF6F1';
v_repo1_uuid uuid = 'F034F9D0-B36A-4AE4-858D-564265FA69C3';
BEGIN
INSERT INTO owners (uuid, username, name) values (v_user1_uuid, 'user1', 'User One');
INSERT INTO owner_vcs (uuid, owner_uuid, service_id, username) values (v_user_servce1_uuid, v_user1_uuid, '23598043290', 'user1');
INSERT INTO repos (uuid, owner_vcs_uuid, service_id, name) values (v_repo1_uuid, v_user_servce1_uuid, '92385348957239', 'repo1');
INSERT INTO services (repo_uuid, alias, topics, name, owner_uuid) values (v_repo1_uuid, 'repo1', ARRAY['topic', 'database', 'repo', 'microservices']::citext[], 'Foobar', v_user1_uuid);
END;
$$ LANGUAGE plpgsql;
|
<gh_stars>0
-- --------------------------------------------------------
-- Host: localhost
-- Versión del servidor: 5.7.24 - MySQL Community Server (GPL)
-- SO del servidor: Win64
-- HeidiSQL Versión: 10.2.0.5599
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Volcando estructura de base de datos para puntoventa
CREATE DATABASE IF NOT EXISTS `puntoventa` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `puntoventa`;
-- Volcando estructura para tabla puntoventa.categories
CREATE TABLE IF NOT EXISTS `categories` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`state` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1',
`parent_id` int(11) DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla puntoventa.categories: ~4 rows (aproximadamente)
/*!40000 ALTER TABLE `categories` DISABLE KEYS */;
INSERT INTO `categories` (`id`, `name`, `description`, `state`, `parent_id`, `updated_at`, `created_at`) VALUES
(22, 'Laptop', 'Laptop Lenovo IdeaPad S340 Core i7 10ma Gen 256GB SSD 8GB', '1', NULL, '2020-06-01 23:58:18', '2020-06-01 23:58:18'),
(32, 'Ropa', 'Ropas', '1', NULL, '2020-06-03 04:11:09', '2020-06-03 04:11:09'),
(33, 'Laptop lenovo', 'Laptop lenovo', '1', 22, '2020-06-03 14:37:09', '2020-06-03 14:37:09'),
(35, 'Lavadoras', 'lavadoras', '1', NULL, '2020-06-03 14:38:15', '2020-06-03 14:38:15');
/*!40000 ALTER TABLE `categories` ENABLE KEYS */;
-- Volcando estructura para tabla puntoventa.failed_jobs
CREATE TABLE IF NOT EXISTS `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;
-- Volcando datos para la tabla puntoventa.failed_jobs: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */;
/*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */;
-- Volcando estructura para tabla puntoventa.migrations
CREATE TABLE IF NOT EXISTS `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=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla puntoventa.migrations: ~2 rows (aproximadamente)
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2020_03_29_025155_create_categories_table', 2);
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
-- Volcando estructura para tabla puntoventa.password_resets
CREATE TABLE IF NOT EXISTS `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;
-- Volcando datos para la tabla puntoventa.password_resets: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
-- Volcando estructura para tabla puntoventa.products
CREATE TABLE IF NOT EXISTS `products` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`category_id` int(11) DEFAULT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`codigo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`stock` int(11) DEFAULT NULL,
`img` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`price_compra` decimal(11,2) NOT NULL,
`price_venta` decimal(11,2) NOT NULL,
`date` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla puntoventa.products: ~1 rows (aproximadamente)
/*!40000 ALTER TABLE `products` DISABLE KEYS */;
INSERT INTO `products` (`id`, `category_id`, `description`, `codigo`, `stock`, `img`, `price_compra`, `price_venta`, `date`, `created_at`, `updated_at`) VALUES
(14, 33, 'Trabajo8999', '3432l', 324, '/producto/1591206204_S340-15IIL_1.jpg', 324.00, 324.00, '2020-06-13', '2020-06-03 17:13:23', '2020-06-03 17:43:25');
/*!40000 ALTER TABLE `products` ENABLE KEYS */;
-- Volcando estructura para tabla puntoventa.users
CREATE TABLE IF NOT EXISTS `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,
PRIMARY KEY (`id`),
UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla puntoventa.users: ~1 rows (aproximadamente)
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'puntoventa', '<EMAIL>', NULL, '$2y$10$pLCAfAAHS8aAEgRPJbxLiu7TOlWa9q5.kWd.rothlfzzyuQ3QpzuG', NULL, '2020-03-08 00:10:06', '2020-03-08 00:10:06'),
(2, 'puntoventas', '<EMAIL>', NULL, '$2y$10$jSB1Op.849rLYvLyl7uSzeWjrgkOH58IkW/Zh3CUE2Fr/xHxqtB0W', NULL, '2020-03-20 15:29:46', '2020-03-20 15:29:46'),
(3, 'spaziour', '<EMAIL>', NULL, '$2y$10$mZUclw3n3neuT4ja0SzlEuNx/CEcTw8LhZqmt2NnXQDAZbQVG2xTu', NULL, '2020-03-26 20:28:32', '2020-03-26 20:28:32'),
(4, 'michael', '<EMAIL>', NULL, '$2y$10$BJsAkrMGKqL6goP.xSUVGeT0dYaR0u3wDm.obz2Gqp.W1K91BJcQi', NULL, '2020-06-01 23:46:01', '2020-06-01 23:46:01');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
-- phpMyAdmin SQL Dump
-- version 4.8.0
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 23-03-2019 a las 09:07:26
-- Versión del servidor: 10.1.31-MariaDB
-- Versión de PHP: 7.2.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de datos: `msv001`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `chats`
--
CREATE TABLE `chats` (
`cod_chat` int(12) NOT NULL,
`tiempo_mensaje` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`nom_usuario` varchar(60) NOT NULL,
`mensaje` varchar(500) NOT NULL,
`cod_proyecto` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Volcado de datos para la tabla `chats`
--
INSERT INTO `chats` (`cod_chat`, `tiempo_mensaje`, `nom_usuario`, `mensaje`, `cod_proyecto`) VALUES
(300, '2018-11-07 14:54:20', '<NAME>', 'estees mi mensaje', 'pry2'),
(301, '2018-11-07 16:36:57', '<NAME>', 'hi', 'pry2'),
(302, '2018-11-07 16:37:01', '<NAME>', '123', 'pry2'),
(304, '2018-11-12 00:13:02', '<NAME>', 'Iniciando con el proyecto para la empresa automotriz', 'pry4'),
(305, '2018-11-12 00:13:42', 'Sergio Junior Espinoza Peralta', 'Listo estoy a cargo segun lo que me habilitlo de la perspectiva clientes', 'pry4'),
(311, '2018-11-12 00:22:02', 'Sergio Junior Espinoza Peralta', 'perspectiva Clientes listo', 'pry4'),
(312, '2018-11-12 00:24:54', '<NAME>', 'verificado y cambiado', 'pry4'),
(313, '2018-11-12 16:47:05', 'Sergio Junior Espinoza Peralta', '\n', 'pry4'),
(314, '2018-11-12 23:56:27', 'Sergio Junior Espinoza Peralta', 'este es el nuevo mensaje ', 'pry2'),
(315, '2018-11-12 23:56:34', 'Sergio Junior Espinoza Peralta', 'desde eñ punto de vista de controlador', 'pry2'),
(316, '2018-11-13 21:40:32', 'Sergio Junior Espinoza Peralta', 'guardardado informatica', 'pry1'),
(317, '2018-11-13 21:40:44', '<NAME>', 'listo', 'pry1'),
(318, '2018-11-13 21:51:53', '<NAME>', '159', 'pry3'),
(319, '2018-11-13 21:51:56', '<NAME>', '1258', 'pry3'),
(320, '2018-11-15 17:09:48', '<NAME>', 'creando perspectivas', 'pry5'),
(321, '2018-11-15 17:13:34', 'Ser<NAME>', 'los cambios ya estan ', 'pry5'),
(322, '2018-11-15 17:15:53', '<NAME>', '159', 'pry5'),
(323, '2018-11-15 17:16:04', 'Ser<NAME>', '255', 'pry5'),
(324, '2018-11-19 01:34:12', '<NAME>', '\n', 'pry4'),
(325, '2018-11-19 01:34:19', '<NAME>', '\n', 'pry4'),
(326, '2018-11-19 01:34:26', '<NAME>', '\n', 'pry4'),
(327, '2018-11-19 01:35:02', '<NAME>', '\n', 'pry4'),
(328, '2018-12-15 02:14:15', 'Sergio Junior Espinoza Peralta', '123', 'pry5'),
(329, '2018-12-17 23:50:58', 'Sergio Junior Espinoza Peralta', '1', 'pry5'),
(330, '2018-12-17 23:50:59', 'Sergio Junior Espinoza Peralta', '1', 'pry5'),
(331, '2018-12-17 23:51:00', 'Sergio Junior Espinoza Peralta', '1', 'pry5'),
(332, '2018-12-17 23:51:01', 'Sergio Junior Espinoza Peralta', '1', 'pry5'),
(333, '2018-12-17 23:51:02', 'Sergio Junior Espinoza Peralta', '1', 'pry5'),
(334, '2018-12-17 23:51:03', 'Sergio Junior Espinoza Peralta', '1', 'pry5'),
(335, '2018-12-17 23:51:04', 'Sergio Junior Espinoza Peralta', '1', 'pry5'),
(336, '2018-12-17 23:51:06', 'Sergio Junior Espinoza Peralta', '1', 'pry5'),
(337, '2018-12-17 23:51:07', 'Sergio Junior Espinoza Peralta', '1', 'pry5'),
(338, '2018-12-17 23:51:09', 'Sergio Junior Espinoza Peralta', '1', 'pry5'),
(339, '2018-12-17 23:51:10', 'Sergio Junior Espinoza Peralta', '1', 'pry5'),
(340, '2018-12-17 23:51:11', 'Sergio Junior Espinoza Peralta', '1', 'pry5'),
(341, '2018-12-17 23:51:13', 'Sergio Junior Espinoza Peralta', '1', 'pry5'),
(342, '2018-12-17 23:51:50', 'Sergio Junior Espinoza Peralta', '15', 'pry5'),
(343, '2018-12-17 23:51:51', 'Sergio Junior Espinoza Peralta', '15', 'pry5'),
(344, '2019-01-14 01:06:41', '<NAME>', '123', 'pry1'),
(345, '2019-01-14 01:09:26', '<NAME>', '13', 'pry1'),
(346, '2019-01-14 01:09:32', '<NAME>', '2545', 'pry1'),
(347, '2019-01-14 01:09:46', 'Sergio Junior Espinoza Peralta', '4554', 'pry5'),
(348, '2019-01-14 03:57:27', 'Sergio Junior Espinoza Peralta', '4455', 'pry2'),
(349, '2019-01-14 03:57:28', 'Sergio Junior Espinoza Peralta', '1', 'pry2'),
(350, '2019-01-14 03:57:28', 'Sergio Junior Espinoza Peralta', '12', 'pry2'),
(351, '2019-01-14 03:57:29', 'Sergio Junior Espinoza Peralta', '1', 'pry2'),
(352, '2019-01-14 03:57:30', 'Sergio Junior Espinoza Peralta', '2', 'pry2'),
(353, '2019-01-14 03:57:30', 'Sergio Junior Espinoza Peralta', '2', 'pry2'),
(354, '2019-01-14 03:57:31', 'Sergio Junior Espinoza Peralta', '1', 'pry2'),
(355, '2019-01-14 03:57:31', 'Sergio Junior Espinoza Peralta', '2', 'pry2'),
(356, '2019-01-14 03:57:32', 'Sergio Junior Espinoza Peralta', '5', 'pry2'),
(357, '2019-01-14 03:57:35', 'Sergio Junior Espinoza Peralta', '45', 'pry2'),
(358, '2019-01-14 03:57:36', 'Sergio Junior Espinoza Peralta', '23', 'pry2'),
(359, '2019-01-14 03:57:38', 'Sergio Junior Espinoza Peralta', '32', 'pry2'),
(360, '2019-01-14 03:57:39', 'Sergio Junior Espinoza Peralta', '313', 'pry2'),
(361, '2019-01-14 05:26:00', 'Sergio Junior Espinoza Peralta', 'ffdffdf', 'pry2'),
(362, '2019-01-14 05:26:02', 'Sergio Junior Espinoza Peralta', '\n', 'pry2'),
(363, '2019-01-14 05:26:03', 'Sergio Junior Espinoza Peralta', '\n', 'pry2'),
(364, '2019-01-14 05:26:13', 'Sergio Junior Espinoza Peralta', 'dddddfdfd fsdfsdfdsfdsf', 'pry2'),
(365, '2019-01-14 05:26:18', 'Sergio Junior Espinoza Peralta', 'fdfd', 'pry2'),
(366, '2019-01-14 08:34:34', '<NAME>', 'dsdsads', 'pry5'),
(367, '2019-01-14 08:36:12', '<NAME>', '45545', 'pry5'),
(368, '2019-01-14 08:44:11', '<NAME>', 'Este es mi mensaje ', 'pry5'),
(369, '2019-01-14 08:48:29', '<NAME>', 'ghg', 'pry5'),
(370, '2019-01-14 08:48:33', '<NAME>', 'dfddf', 'pry5'),
(371, '2019-01-14 12:08:44', 'Sergio Junior Espinoza Peralta', '1', 'pry2'),
(372, '2019-01-14 12:08:47', 'Sergio Junior Espinoza Peralta', '3', 'pry2'),
(373, '2019-01-14 12:09:03', 'Sergio Junior Espinoza Peralta', 'fdfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff', 'pry2'),
(374, '2019-01-14 12:13:01', '<NAME>', 'Esto si funciona ahora de marravilla', 'pry4'),
(375, '2019-01-14 12:19:42', '<NAME>', '132', 'pry4'),
(376, '2019-01-14 12:19:45', '<NAME>', '156', 'pry4');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `equipos`
--
CREATE TABLE `equipos` (
`cod_equipo` varchar(30) NOT NULL,
`npm_equipo` varchar(80) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Volcado de datos para la tabla `equipos`
--
INSERT INTO `equipos` (`cod_equipo`, `npm_equipo`) VALUES
('equ6', 'Dinamita'),
('equ4', 'Equipo 1'),
('equ2', 'Otro'),
('equ5', 'Otro'),
('equ3', 'Otro Equipo'),
('equ1', 'Sistemicos');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `proyectos`
--
CREATE TABLE `proyectos` (
`cod_proyecto` varchar(30) NOT NULL,
`nom_proyecto` varchar(80) NOT NULL,
`cod_equipo` varchar(30) NOT NULL,
`dom_proyecto` longtext NOT NULL,
`img_proyecto` varchar(50) NOT NULL,
`tmc_proyecto` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Volcado de datos para la tabla `proyectos`
--
INSERT INTO `proyectos` (`cod_proyecto`, `nom_proyecto`, `cod_equipo`, `dom_proyecto`, `img_proyecto`, `tmc_proyecto`) VALUES
('pry1', 'ISG 1', 'equ1', '<mxGraphModel>\n <root>\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\n <mxCell/>\n </Diagram>\n <Layer label=\"Default Layer\" id=\"1\">\n <mxCell parent=\"0\"/>\n </Layer>\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"296.2232742626834\" y=\"271.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"316.2232742626834\" y=\"242.97044334975362\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"\" href=\"\" id=\"366\">\n <mxCell style=\"rounded;strokeColor=orange;fillColor=orange;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"460.2232742626834\" y=\"135.97044334975362\" width=\"272\" height=\"342\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"367\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"364\" target=\"366\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Roundrect label=\"\" href=\"\" id=\"368\">\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"460.2232742626834\" y=\"222.97044334975362\" width=\"260\" height=\"160\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Text label=\"DIRIGEN / ORGANIZACION\" href=\"\" id=\"369\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"530.2232742626834\" y=\"135.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"555.2232742626834\" y=\"392.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Directores\" href=\"\" id=\"371\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"485.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"475.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Rect label=\"Función 1\" href=\"\" id=\"373\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"480.2232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"479.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"377\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"272.9704433497536\" width=\"150\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"155.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"379\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"366\" target=\"378\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"762.2232742626834\" y=\"175.97044334975362\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"380\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"366\" target=\"377\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"382.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Image label=\"\" href=\"\" id=\"382\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"828.2232742626834\" y=\"477.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"242.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"843.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"386\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"387\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"170.2232742626834\" y=\"252.97044334975362\" width=\"60\" height=\"110\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"150.2232742626834\" y=\"257.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"145.2232742626834\" y=\"352.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"\" href=\"\" id=\"390\">\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1140\" y=\"130\" width=\"260\" height=\"160\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"391\">\n <mxCell parent=\"1\" source=\"368\" target=\"390\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Roundrect label=\"\" href=\"\" id=\"392\">\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" vertex=\"1\" parent=\"1\">\n <mxGeometry x=\"1090\" y=\"380\" width=\"260\" height=\"160\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"393\">\n <mxCell edge=\"1\" parent=\"1\" source=\"390\" target=\"392\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n </root>\n</mxGraphModel>\n', 'img3.jpg', '2018-10-31 16:54:52'),
('pry2', 'Proyecto', 'equ1', '<mxGraphModel>\n <root>\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\n <mxCell/>\n </Diagram>\n <Layer label=\"Default Layer\" id=\"1\">\n <mxCell parent=\"0\"/>\n </Layer>\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"296.2232742626834\" y=\"271.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"316.2232742626834\" y=\"242.97044334975362\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"\" href=\"\" id=\"368\">\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"698.2232742626834\" y=\"29.970443349753623\" width=\"260\" height=\"160\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Text label=\"DIRIGEN / ORGANIZACION\" href=\"\" id=\"369\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"530.2232742626834\" y=\"135.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"555.2232742626834\" y=\"392.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Directores\" href=\"\" id=\"371\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"485.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"475.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Rect label=\"Función 1\" href=\"\" id=\"373\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"480.2232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"479.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"377\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"272.9704433497536\" width=\"150\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"155.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"382.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Image label=\"\" href=\"\" id=\"382\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"828.2232742626834\" y=\"477.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"242.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"843.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"386\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"150.2232742626834\" y=\"257.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"145.2232742626834\" y=\"352.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"eres gil moriras gil\" href=\"\" id=\"390\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1120\" y=\"170\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"391\">\n <mxCell parent=\"1\" source=\"385\" target=\"390\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n </root>\n</mxGraphModel>\n', 'img6.jpg', '2018-10-31 21:35:33'),
('pry3', 'Lo q sea ', 'equ1', '<mxGraphModel>\r\n <root>\r\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label=\"Default Layer\" id=\"1\">\r\n <mxCell parent=\"0\"/>\r\n </Layer>\r\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"296.2232742626834\" y=\"271.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"316.2232742626834\" y=\"242.97044334975362\" width=\"60\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label=\"\" href=\"\" id=\"366\">\r\n <mxCell style=\"rounded;strokeColor=orange;fillColor=orange;\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"460.2232742626834\" y=\"135.97044334975362\" width=\"272\" height=\"342\" as=\"geometry\"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label=\"\" href=\"\" id=\"367\">\r\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"364\" target=\"366\" edge=\"1\">\r\n <mxGeometry relative=\"1\" as=\"geometry\"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label=\"\" href=\"\" id=\"368\">\r\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"460.2232742626834\" y=\"222.97044334975362\" width=\"260\" height=\"160\" as=\"geometry\"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label=\"DIRIGEN / ORGANIZACION\" href=\"\" id=\"369\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"530.2232742626834\" y=\"135.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"555.2232742626834\" y=\"392.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"Insertar Directores\" href=\"\" id=\"371\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"485.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"475.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label=\"Función 1\" href=\"\" id=\"373\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"480.2232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"609.7232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"479.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\r\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"609.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"377\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"813.2232742626834\" y=\"272.9704433497536\" width=\"150\" height=\"70\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"813.2232742626834\" y=\"155.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label=\"\" href=\"\" id=\"379\">\r\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"366\" target=\"378\" edge=\"1\">\r\n <mxGeometry relative=\"1\" as=\"geometry\">\r\n <Array as=\"points\">\r\n <mxPoint x=\"762.2232742626834\" y=\"175.97044334975362\"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label=\"\" href=\"\" id=\"380\">\r\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"366\" target=\"377\" edge=\"1\">\r\n <mxGeometry relative=\"1\" as=\"geometry\"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"838.2232742626834\" y=\"382.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Image label=\"\" href=\"\" id=\"382\">\r\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"838.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"50\" as=\"geometry\"/>\r\n </mxCell>\r\n </Image>\r\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"828.2232742626834\" y=\"477.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"813.2232742626834\" y=\"242.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"843.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label=\"\" href=\"\" id=\"386\">\r\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\r\n <mxGeometry relative=\"1\" as=\"geometry\"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label=\"\" href=\"\" id=\"387\">\r\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"170.2232742626834\" y=\"252.97044334975362\" width=\"60\" height=\"110\" as=\"geometry\"/>\r\n </mxCell>\r\n </Image>\r\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"150.2232742626834\" y=\"257.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"145.2232742626834\" y=\"352.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>', 'img2.jpg', '2018-11-07 14:33:03'),
('pry4', 'Automotriz', 'equ3', '<mxGraphModel>\n <root>\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\n <mxCell/>\n </Diagram>\n <Layer label=\"Default Layer\" id=\"1\">\n <mxCell parent=\"0\"/>\n </Layer>\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"296.2232742626834\" y=\"271.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"316.2232742626834\" y=\"242.97044334975362\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"\" href=\"\" id=\"366\">\n <mxCell style=\"rounded;strokeColor=orange;fillColor=orange;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"460.2232742626834\" y=\"135.97044334975362\" width=\"272\" height=\"342\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"367\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"364\" target=\"366\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Roundrect label=\"\" href=\"\" id=\"368\">\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"460.2232742626834\" y=\"222.97044334975362\" width=\"260\" height=\"160\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Text label=\"DIRIGEN / ORGANIZACION\" href=\"\" id=\"369\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"530.2232742626834\" y=\"135.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"555.2232742626834\" y=\"392.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Directores\" href=\"\" id=\"371\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"485.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"475.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Rect label=\"Función 1\" href=\"\" id=\"373\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"480.2232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"479.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"377\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"272.9704433497536\" width=\"150\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"155.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"379\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"366\" target=\"378\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"762.2232742626834\" y=\"175.97044334975362\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"380\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"366\" target=\"377\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"382.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Image label=\"\" href=\"\" id=\"382\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"828.2232742626834\" y=\"477.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"242.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"843.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"386\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"387\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"170.2232742626834\" y=\"252.97044334975362\" width=\"60\" height=\"110\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"150.2232742626834\" y=\"257.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"145.2232742626834\" y=\"352.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Image label=\"\" href=\"\" id=\"392\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1105\" y=\"95\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Connector label=\"\" href=\"\" id=\"393\">\n <mxCell parent=\"1\" source=\"382\" target=\"392\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"394\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1335\" y=\"195\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Connector label=\"\" href=\"\" id=\"395\">\n <mxCell parent=\"1\" source=\"392\" target=\"394\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Texto label=\"Texto\" href=\"\" id=\"396\">\n <mxCell style=\"doubleEllipse\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"180\" y=\"120\" width=\"60\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Texto label=\"Texto\" href=\"\" id=\"397\">\n <mxCell style=\"doubleEllipse\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"310\" y=\"60\" width=\"60\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Connector label=\"\" href=\"\" id=\"398\">\n <mxCell parent=\"1\" source=\"396\" target=\"397\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Texto label=\"Texto\" href=\"\" id=\"399\">\n <mxCell style=\"doubleEllipse\" vertex=\"1\" parent=\"1\">\n <mxGeometry x=\"510\" y=\"30\" width=\"60\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Connector label=\"\" href=\"\" id=\"400\">\n <mxCell edge=\"1\" parent=\"1\" source=\"397\" target=\"399\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Texto label=\"Texto\" href=\"\" id=\"401\">\n <mxCell style=\"doubleEllipse\" vertex=\"1\" parent=\"1\">\n <mxGeometry x=\"670\" y=\"10\" width=\"60\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Connector label=\"\" href=\"\" id=\"402\">\n <mxCell edge=\"1\" parent=\"1\" source=\"399\" target=\"401\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"403\">\n <mxCell vertex=\"1\" parent=\"1\">\n <mxGeometry x=\"1060\" y=\"170\" width=\"140\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"404\">\n <mxCell edge=\"1\" parent=\"1\" source=\"378\" target=\"403\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"405\">\n <mxCell vertex=\"1\" parent=\"1\">\n <mxGeometry x=\"1140\" y=\"370\" width=\"140\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"406\">\n <mxCell edge=\"1\" parent=\"1\" source=\"403\" target=\"405\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n </root>\n</mxGraphModel>\n', 'img1.jpg', '2018-11-12 00:09:27'),
('pry5', 'Proyecto 8', 'equ4', '<mxGraphModel>\n <root>\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\n <mxCell/>\n </Diagram>\n <Layer label=\"Default Layer\" id=\"1\">\n <mxCell parent=\"0\"/>\n </Layer>\n <Shape label=\"Entornos\" href=\"\" id=\"85\">\n <mxCell style=\"cloud;strokeColor=brown;fillColor=brown;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"140\" y=\"40\" width=\"390\" height=\"1010\" as=\"geometry\"/>\n </mxCell>\n </Shape>\n <Shape label=\"Operaci�n 2\" href=\"\" id=\"4\">\n <mxCell style=\"ellipse\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"605\" y=\"590\" width=\"80\" height=\"80\" as=\"geometry\"/>\n </mxCell>\n </Shape>\n <Rect label=\"Rectangle\" href=\"\" id=\"6\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"735\" y=\"560\" width=\"80\" height=\"80\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Shape label=\"Shape\" href=\"\" id=\"11\">\n <mxCell style=\"triangle;rotation=-90;strokeColor=green;fillColor=green;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"895\" y=\"560\" width=\"60\" height=\"80\" as=\"geometry\"/>\n </mxCell>\n </Shape>\n <Connector label=\"\" href=\"\" id=\"12\">\n <mxCell style=\"rounded=0;\" parent=\"1\" source=\"4\" target=\"6\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"18\">\n <mxCell style=\"strokeColor=green;fillColor=green;\" parent=\"1\" source=\"4\" target=\"11\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"805\" y=\"690\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"19\">\n <mxCell style=\"strokeColor=green;fillColor=green;\" parent=\"1\" source=\"6\" target=\"11\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Shape label=\"Shape\" href=\"\" id=\"36\">\n <mxCell style=\"triangle;rotation=-90;strokeColor=green;fillColor=green;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"985\" y=\"400\" width=\"60\" height=\"80\" as=\"geometry\"/>\n </mxCell>\n </Shape>\n <Connector label=\"\" href=\"\" id=\"37\">\n <mxCell style=\"strokeColor=green;fillColor=green;\" parent=\"1\" source=\"11\" target=\"36\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"1016\" y=\"600\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Shape label=\"Operaci�n 1\" href=\"\" id=\"39\">\n <mxCell style=\"ellipse\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"605\" y=\"730\" width=\"80\" height=\"80\" as=\"geometry\"/>\n </mxCell>\n </Shape>\n <Rect label=\"Rectangle\" href=\"\" id=\"40\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"735\" y=\"700\" width=\"80\" height=\"80\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Shape label=\"Shape\" href=\"\" id=\"41\">\n <mxCell style=\"triangle;rotation=-90;strokeColor=green;fillColor=green;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"895\" y=\"700\" width=\"60\" height=\"80\" as=\"geometry\"/>\n </mxCell>\n </Shape>\n <Connector label=\"\" href=\"\" id=\"42\">\n <mxCell style=\"rounded=0;\" parent=\"1\" source=\"39\" target=\"40\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"43\">\n <mxCell style=\"strokeColor=green;fillColor=green;\" parent=\"1\" source=\"39\" target=\"41\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"805\" y=\"830\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"44\">\n <mxCell style=\"strokeColor=green;fillColor=green;\" parent=\"1\" source=\"40\" target=\"41\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"45\">\n <mxCell style=\"strokeColor=green;fillColor=green;\" parent=\"1\" source=\"41\" target=\"36\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"1015\" y=\"560\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"46\">\n <mxCell parent=\"1\" source=\"4\" target=\"39\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Rect label=\"Control\" href=\"\" id=\"47\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"685\" y=\"420\" width=\"180\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"48\">\n <mxCell parent=\"1\" source=\"36\" target=\"47\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <mxPoint x=\"1025\" y=\"400\" as=\"sourcePoint\"/>\n <Array as=\"points\"/>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Shape label=\"Auditoria\" id=\"49\">\n <mxCell style=\"triangle;rotation=90;strokeColor=green;fillColor=green;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"525\" y=\"410\" width=\"60\" height=\"80\" as=\"geometry\"/>\n </mxCell>\n </Shape>\n <Connector label=\"\" href=\"\" id=\"50\">\n <mxCell parent=\"1\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <mxPoint x=\"685\" y=\"439\" as=\"sourcePoint\"/>\n <mxPoint x=\"575\" y=\"439\" as=\"targetPoint\"/>\n <Array as=\"points\">\n <mxPoint x=\"625\" y=\"439\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"51\">\n <mxCell style=\"strokeColor=green;fillColor=green;\" parent=\"1\" source=\"49\" target=\"4\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"585\" y=\"600\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"52\">\n <mxCell style=\"strokeColor=green;fillColor=green;\" parent=\"1\" source=\"49\" target=\"39\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"585\" y=\"760\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Shape label=\"Entorno 1\" href=\"\" id=\"55\">\n <mxCell style=\"cloud;strokeColor=grey;fillColor=grey;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"265\" y=\"670\" width=\"160\" height=\"285\" as=\"geometry\"/>\n </mxCell>\n </Shape>\n <Shape label=\"Entorno 2\" href=\"\" id=\"56\">\n <mxCell style=\"cloud;strokeColor=grey;fillColor=grey;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"265\" y=\"490\" width=\"160\" height=\"285\" as=\"geometry\"/>\n </mxCell>\n </Shape>\n <Rect label=\"Inteligencia\" href=\"\" id=\"57\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"685\" y=\"340\" width=\"180\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Pol�tica\" href=\"\" id=\"58\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"685\" y=\"260\" width=\"180\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"63\">\n <mxCell style=\"arrowRounded;rounded=1;shadow=1; border-radius=5px;strokeColor=purple;fillColor=purple;\" parent=\"1\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <mxPoint x=\"685\" y=\"430\" as=\"sourcePoint\"/>\n <mxPoint x=\"685\" y=\"350\" as=\"targetPoint\"/>\n <Array as=\"points\">\n <mxPoint x=\"645\" y=\"390\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"65\">\n <mxCell style=\"arrowRounded;rounded=1;shadow=1; border-radius=5px;\" parent=\"1\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <mxPoint x=\"865\" y=\"350\" as=\"sourcePoint\"/>\n <mxPoint x=\"865\" y=\"430\" as=\"targetPoint\"/>\n <Array as=\"points\">\n <mxPoint x=\"905\" y=\"390\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"76\">\n <mxCell style=\"strokeColor=green;fillColor=green;\" parent=\"1\" source=\"58\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <mxPoint x=\"875\" y=\"290\" as=\"sourcePoint\"/>\n <mxPoint x=\"905\" y=\"370\" as=\"targetPoint\"/>\n <Array as=\"points\">\n <mxPoint x=\"945\" y=\"320\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector id=\"75\">\n <mxCell style=\"strokeColor=green;fillColor=green;\" parent=\"1\" source=\"58\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <mxPoint x=\"586.1153846153846\" y=\"216.57692307692298\" as=\"sourcePoint\"/>\n <mxPoint x=\"645\" y=\"360\" as=\"targetPoint\"/>\n <Array as=\"points\">\n <mxPoint x=\"605\" y=\"310\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Shape label=\"\" href=\"\" id=\"77\">\n <mxCell style=\"ellipse;strokeColor=red;fillColor=red;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"700\" y=\"285\" width=\"10\" height=\"10\" as=\"geometry\"/>\n </mxCell>\n </Shape>\n <Connector label=\"\" href=\"\" id=\"81\">\n <mxCell parent=\"1\" source=\"56\" target=\"4\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"515\" y=\"630\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"82\">\n <mxCell parent=\"1\" target=\"39\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <mxPoint x=\"421.39157572217044\" y=\"800\" as=\"sourcePoint\"/>\n <mxPoint x=\"604.7701665379259\" y=\"800\" as=\"targetPoint\"/>\n <Array as=\"points\"/>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Shape label=\"Entorno Futuro\" href=\"\" id=\"83\">\n <mxCell style=\"cloud;strokeColor=gold;fillColor=gold;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"265\" y=\"217.5\" width=\"160\" height=\"285\" as=\"geometry\"/>\n </mxCell>\n </Shape>\n <Connector label=\"\" href=\"\" id=\"84\">\n <mxCell style=\"strokeColor=gold;fillColor=gold;\" parent=\"1\" source=\"83\" target=\"57\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"545\" y=\"380\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"86\">\n <mxCell style=\"strokeColor=brown;fillColor=brown;\" parent=\"1\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <mxPoint x=\"482.947337794227\" y=\"502.49999999999994\" as=\"sourcePoint\"/>\n <mxPoint x=\"685\" y=\"372.5\" as=\"targetPoint\"/>\n <Array as=\"points\">\n <mxPoint x=\"495\" y=\"502.5\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Text label=\"una parte texto y grafico \" href=\"\" id=\"87\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"415\" y=\"130\" width=\"140\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"una parte texto y grafico \" href=\"\" id=\"88\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"560\" y=\"130\" width=\"140\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"89\">\n <mxCell parent=\"1\" source=\"87\" target=\"88\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"una parte texto y grafico \" href=\"\" id=\"90\">\n <mxCell style=\"text\" vertex=\"1\" parent=\"1\">\n <mxGeometry x=\"700\" y=\"130\" width=\"140\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"91\">\n <mxCell edge=\"1\" parent=\"1\" source=\"88\" target=\"90\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n </root>\n</mxGraphModel>\n', 'img4.jpg', '2018-11-15 17:08:36');
INSERT INTO `proyectos` (`cod_proyecto`, `nom_proyecto`, `cod_equipo`, `dom_proyecto`, `img_proyecto`, `tmc_proyecto`) VALUES
('pry6', 'UPEN PLAZA', 'equ5', '<mxGraphModel>\r\n<root>\r\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label=\"Default Layer\" id=\"1\">\r\n <mxCell parent=\"0\"/>\r\n </Layer>\r\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"296.2232742626834\" y=\"271.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"316.2232742626834\" y=\"242.97044334975362\" width=\"60\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label=\"\" href=\"\" id=\"366\">\r\n <mxCell style=\"rounded;strokeColor=orange;fillColor=orange;\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"460.2232742626834\" y=\"135.97044334975362\" width=\"272\" height=\"342\" as=\"geometry\"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label=\"\" href=\"\" id=\"367\">\r\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"364\" target=\"366\" edge=\"1\">\r\n <mxGeometry relative=\"1\" as=\"geometry\"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label=\"\" href=\"\" id=\"368\">\r\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"460.2232742626834\" y=\"222.97044334975362\" width=\"260\" height=\"160\" as=\"geometry\"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label=\"DIRIGEN / ORGANIZACION\" href=\"\" id=\"369\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"530.2232742626834\" y=\"135.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"555.2232742626834\" y=\"392.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"Insertar Directores\" href=\"\" id=\"371\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"485.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"475.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label=\"Función 1\" href=\"\" id=\"373\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"480.2232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"609.7232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"479.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\r\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"609.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"377\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"813.2232742626834\" y=\"272.9704433497536\" width=\"150\" height=\"70\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"813.2232742626834\" y=\"155.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label=\"\" href=\"\" id=\"379\">\r\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"366\" target=\"378\" edge=\"1\">\r\n <mxGeometry relative=\"1\" as=\"geometry\">\r\n <Array as=\"points\">\r\n <mxPoint x=\"762.2232742626834\" y=\"175.97044334975362\"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label=\"\" href=\"\" id=\"380\">\r\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"366\" target=\"377\" edge=\"1\">\r\n <mxGeometry relative=\"1\" as=\"geometry\"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"838.2232742626834\" y=\"382.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Image label=\"\" href=\"\" id=\"382\">\r\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"838.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"50\" as=\"geometry\"/>\r\n </mxCell>\r\n </Image>\r\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"828.2232742626834\" y=\"477.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"813.2232742626834\" y=\"242.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"843.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label=\"\" href=\"\" id=\"386\">\r\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\r\n <mxGeometry relative=\"1\" as=\"geometry\"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label=\"\" href=\"\" id=\"387\">\r\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"170.2232742626834\" y=\"252.97044334975362\" width=\"60\" height=\"110\" as=\"geometry\"/>\r\n </mxCell>\r\n </Image>\r\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"150.2232742626834\" y=\"257.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"145.2232742626834\" y=\"352.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n</root>\r\n</mxGraphModel>', 'img6.jpg', '2019-03-13 06:00:25'),
('pry7', 'UPEN PLAZA', 'equ5', '<mxGraphModel>\r\n<root>\r\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label=\"Default Layer\" id=\"1\">\r\n <mxCell parent=\"0\"/>\r\n </Layer>\r\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"296.2232742626834\" y=\"271.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"316.2232742626834\" y=\"242.97044334975362\" width=\"60\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label=\"\" href=\"\" id=\"366\">\r\n <mxCell style=\"rounded;strokeColor=orange;fillColor=orange;\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"460.2232742626834\" y=\"135.97044334975362\" width=\"272\" height=\"342\" as=\"geometry\"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label=\"\" href=\"\" id=\"367\">\r\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"364\" target=\"366\" edge=\"1\">\r\n <mxGeometry relative=\"1\" as=\"geometry\"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label=\"\" href=\"\" id=\"368\">\r\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"460.2232742626834\" y=\"222.97044334975362\" width=\"260\" height=\"160\" as=\"geometry\"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label=\"DIRIGEN / ORGANIZACION\" href=\"\" id=\"369\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"530.2232742626834\" y=\"135.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"555.2232742626834\" y=\"392.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"Insertar Directores\" href=\"\" id=\"371\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"485.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"475.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label=\"Función 1\" href=\"\" id=\"373\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"480.2232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"609.7232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"479.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\r\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"609.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"377\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"813.2232742626834\" y=\"272.9704433497536\" width=\"150\" height=\"70\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"813.2232742626834\" y=\"155.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label=\"\" href=\"\" id=\"379\">\r\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"366\" target=\"378\" edge=\"1\">\r\n <mxGeometry relative=\"1\" as=\"geometry\">\r\n <Array as=\"points\">\r\n <mxPoint x=\"762.2232742626834\" y=\"175.97044334975362\"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label=\"\" href=\"\" id=\"380\">\r\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"366\" target=\"377\" edge=\"1\">\r\n <mxGeometry relative=\"1\" as=\"geometry\"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"838.2232742626834\" y=\"382.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Image label=\"\" href=\"\" id=\"382\">\r\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"838.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"50\" as=\"geometry\"/>\r\n </mxCell>\r\n </Image>\r\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"828.2232742626834\" y=\"477.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"813.2232742626834\" y=\"242.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"843.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label=\"\" href=\"\" id=\"386\">\r\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\r\n <mxGeometry relative=\"1\" as=\"geometry\"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label=\"\" href=\"\" id=\"387\">\r\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"170.2232742626834\" y=\"252.97044334975362\" width=\"60\" height=\"110\" as=\"geometry\"/>\r\n </mxCell>\r\n </Image>\r\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"150.2232742626834\" y=\"257.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"145.2232742626834\" y=\"352.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n</root>\r\n</mxGraphModel>', 'img4.jpg', '2019-03-13 06:22:03'),
('pry8', 'UPEN PLAZA', 'equ1', '<mxGraphModel>\r\n<root>\r\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label=\"Default Layer\" id=\"1\">\r\n <mxCell parent=\"0\"/>\r\n </Layer>\r\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"296.2232742626834\" y=\"271.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"316.2232742626834\" y=\"242.97044334975362\" width=\"60\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label=\"\" href=\"\" id=\"366\">\r\n <mxCell style=\"rounded;strokeColor=orange;fillColor=orange;\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"460.2232742626834\" y=\"135.97044334975362\" width=\"272\" height=\"342\" as=\"geometry\"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label=\"\" href=\"\" id=\"367\">\r\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"364\" target=\"366\" edge=\"1\">\r\n <mxGeometry relative=\"1\" as=\"geometry\"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label=\"\" href=\"\" id=\"368\">\r\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"460.2232742626834\" y=\"222.97044334975362\" width=\"260\" height=\"160\" as=\"geometry\"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label=\"DIRIGEN / ORGANIZACION\" href=\"\" id=\"369\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"530.2232742626834\" y=\"135.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"555.2232742626834\" y=\"392.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"Insertar Directores\" href=\"\" id=\"371\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"485.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"475.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label=\"Función 1\" href=\"\" id=\"373\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"480.2232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"609.7232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"479.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\r\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"609.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"377\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"813.2232742626834\" y=\"272.9704433497536\" width=\"150\" height=\"70\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\r\n <mxCell parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"813.2232742626834\" y=\"155.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label=\"\" href=\"\" id=\"379\">\r\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"366\" target=\"378\" edge=\"1\">\r\n <mxGeometry relative=\"1\" as=\"geometry\">\r\n <Array as=\"points\">\r\n <mxPoint x=\"762.2232742626834\" y=\"175.97044334975362\"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label=\"\" href=\"\" id=\"380\">\r\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"366\" target=\"377\" edge=\"1\">\r\n <mxGeometry relative=\"1\" as=\"geometry\"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"838.2232742626834\" y=\"382.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Image label=\"\" href=\"\" id=\"382\">\r\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"838.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"50\" as=\"geometry\"/>\r\n </mxCell>\r\n </Image>\r\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"828.2232742626834\" y=\"477.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"813.2232742626834\" y=\"242.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"843.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label=\"\" href=\"\" id=\"386\">\r\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\r\n <mxGeometry relative=\"1\" as=\"geometry\"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label=\"\" href=\"\" id=\"387\">\r\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"170.2232742626834\" y=\"252.97044334975362\" width=\"60\" height=\"110\" as=\"geometry\"/>\r\n </mxCell>\r\n </Image>\r\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"150.2232742626834\" y=\"257.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\r\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\r\n <mxGeometry x=\"145.2232742626834\" y=\"352.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\r\n </mxCell>\r\n </Text>\r\n</root>\r\n</mxGraphModel>', 'img3.jpg', '2019-03-13 06:22:20');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `pro_per`
--
CREATE TABLE `pro_per` (
`cod_pro_per` varchar(30) NOT NULL,
`nom_perspectiva` varchar(60) NOT NULL,
`cod_proyecto` varchar(30) NOT NULL,
`cod_usuario` varchar(30) NOT NULL,
`estado` tinyint(1) NOT NULL DEFAULT '0',
`dom_perspectiva` longtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Volcado de datos para la tabla `pro_per`
--
INSERT INTO `pro_per` (`cod_pro_per`, `nom_perspectiva`, `cod_proyecto`, `cod_usuario`, `estado`, `dom_perspectiva`) VALUES
('pro_per1', 'Informatico', 'pry1', 'usu1', 1, '<mxGraphModel>\n <root>\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\n <mxCell/>\n </Diagram>\n <Layer label=\"Default Layer\" id=\"1\">\n <mxCell parent=\"0\"/>\n </Layer>\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"296.2232742626834\" y=\"271.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"316.2232742626834\" y=\"242.97044334975362\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"\" href=\"\" id=\"366\">\n <mxCell style=\"rounded;strokeColor=orange;fillColor=orange;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"460.2232742626834\" y=\"135.97044334975362\" width=\"272\" height=\"342\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"367\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"364\" target=\"366\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Roundrect label=\"\" href=\"\" id=\"368\">\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"460.2232742626834\" y=\"222.97044334975362\" width=\"260\" height=\"160\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Text label=\"DIRIGEN / ORGANIZACION\" href=\"\" id=\"369\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"530.2232742626834\" y=\"135.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"555.2232742626834\" y=\"392.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Directores\" href=\"\" id=\"371\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"485.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"475.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Rect label=\"Función 1\" href=\"\" id=\"373\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"480.2232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"479.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"377\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"272.9704433497536\" width=\"150\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"155.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"379\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"366\" target=\"378\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"762.2232742626834\" y=\"175.97044334975362\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"380\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"366\" target=\"377\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"382.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Image label=\"\" href=\"\" id=\"382\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"828.2232742626834\" y=\"477.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"242.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"843.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"386\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"387\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"170.2232742626834\" y=\"252.97044334975362\" width=\"60\" height=\"110\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"150.2232742626834\" y=\"257.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"145.2232742626834\" y=\"352.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"390\">\n <mxCell parent=\"1\" vertex=\"1\" collapsed=\"1\">\n <mxGeometry x=\"1165\" y=\"225\" width=\"195\" height=\"85\" as=\"geometry\">\n <mxRectangle x=\"1165\" y=\"225\" width=\"980\" height=\"370\" as=\"alternateBounds\"/>\n </mxGeometry>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"394\">\n <mxCell parent=\"390\" source=\"392\" target=\"393\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Texto label=\"Texto\" href=\"\" id=\"393\">\n <mxCell style=\"cloud\" parent=\"390\" vertex=\"1\">\n <mxGeometry x=\"630\" y=\"390\" width=\"80\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Texto label=\"Texto\" href=\"\" id=\"392\">\n <mxCell style=\"cloud\" parent=\"390\" vertex=\"1\">\n <mxGeometry x=\"590\" y=\"120\" width=\"80\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Texto label=\"Texto\" href=\"\" id=\"395\">\n <mxCell style=\"cloud\" parent=\"390\" vertex=\"1\">\n <mxGeometry x=\"1010\" y=\"230\" width=\"80\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Connector label=\"\" href=\"\" id=\"396\">\n <mxCell parent=\"390\" source=\"393\" target=\"395\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Texto label=\"Texto\" href=\"\" id=\"397\">\n <mxCell style=\"cloud\" parent=\"390\" vertex=\"1\">\n <mxGeometry x=\"740\" y=\"90\" width=\"80\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Connector label=\"\" href=\"\" id=\"398\">\n <mxCell parent=\"390\" source=\"395\" target=\"397\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Texto label=\"Texto\" href=\"\" id=\"399\">\n <mxCell style=\"cloud\" parent=\"390\" vertex=\"1\">\n <mxGeometry x=\"500\" y=\"30\" width=\"80\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Connector label=\"\" href=\"\" id=\"400\">\n <mxCell parent=\"390\" source=\"397\" target=\"399\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Texto label=\"Texto\" href=\"\" id=\"401\">\n <mxCell style=\"cloud\" parent=\"390\" vertex=\"1\">\n <mxGeometry x=\"420\" y=\"170\" width=\"80\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Connector label=\"\" href=\"\" id=\"402\">\n <mxCell parent=\"390\" source=\"392\" target=\"401\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"391\">\n <mxCell parent=\"1\" source=\"377\" target=\"390\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"416\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"575\" y=\"555\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Connector label=\"\" href=\"\" id=\"417\">\n <mxCell parent=\"1\" source=\"382\" target=\"416\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"418\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"295\" y=\"495\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Connector label=\"\" href=\"\" id=\"419\">\n <mxCell parent=\"1\" source=\"416\" target=\"418\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"420\">\n <mxCell vertex=\"1\" parent=\"1\">\n <mxGeometry x=\"150\" y=\"65\" width=\"100\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"421\">\n <mxCell edge=\"1\" parent=\"1\" source=\"364\" target=\"420\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n </root>\n</mxGraphModel>\n'),
('pro_per10', 'Clientes', 'pry4', 'usu1', 0, '<mxGraphModel>\n <root>\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\n <mxCell/>\n </Diagram>\n <Layer label=\"Default Layer\" id=\"1\">\n <mxCell parent=\"0\"/>\n </Layer>\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"491.2232742626834\" y=\"271.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"511.2232742626834\" y=\"242.97044334975362\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"\" href=\"\" id=\"366\">\n <mxCell style=\"rounded;strokeColor=orange;fillColor=orange;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"655.2232742626834\" y=\"135.97044334975362\" width=\"272\" height=\"342\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"367\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"364\" target=\"366\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Roundrect label=\"\" href=\"\" id=\"368\">\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"655.2232742626834\" y=\"222.97044334975362\" width=\"260\" height=\"160\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Text label=\"Encargados Clientes\" href=\"\" id=\"369\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"725.2232742626834\" y=\"135.97044334975362\" width=\"120\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"750.2232742626834\" y=\"392.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Directores de Clientes:\" href=\"\" id=\"371\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"680.2232742626834\" y=\"155.97044334975362\" width=\"130\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"670.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Rect label=\"Seleccion\" href=\"\" id=\"373\">\n <mxCell parent=\"1\" vertex=\"1\" collapsed=\"1\">\n <mxGeometry x=\"675\" y=\"253\" width=\"85\" height=\"37\" as=\"geometry\">\n <mxRectangle x=\"675\" y=\"253\" width=\"790\" height=\"340\" as=\"alternateBounds\"/>\n </mxGeometry>\n </mxCell>\n </Rect>\n <Text label=\"En esta parte se esta trabajando la primera funcion del campo clientes .::::: :::::::,;;; ;;;::: :::; \" href=\"\" id=\"393\">\n <mxCell style=\"text\" parent=\"373\" vertex=\"1\">\n <mxGeometry x=\"560\" y=\"120\" width=\"480\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Image label=\"\" href=\"\" id=\"397\">\n <mxCell style=\"image\" parent=\"373\" vertex=\"1\">\n <mxGeometry x=\"530\" y=\"265\" width=\"80\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Texto label=\"Procedimiento Uno\" href=\"\" id=\"400\">\n <mxCell style=\"ellipse\" parent=\"373\" vertex=\"1\" collapsed=\"1\">\n <mxGeometry x=\"725\" y=\"323\" width=\"145\" height=\"137\" as=\"geometry\">\n <mxRectangle x=\"725\" y=\"323\" width=\"85\" height=\"37\" as=\"alternateBounds\"/>\n </mxGeometry>\n </mxCell>\n </Texto>\n <Texto label=\"Hola\" href=\"\" id=\"404\">\n <mxCell style=\"rhombus\" parent=\"400\" vertex=\"1\">\n <mxGeometry x=\"905\" y=\"265\" width=\"60\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Texto label=\"Texto\" href=\"\" id=\"405\">\n <mxCell style=\"rhombus\" parent=\"400\" vertex=\"1\">\n <mxGeometry x=\"705\" y=\"245\" width=\"60\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Connector label=\"\" href=\"\" id=\"406\">\n <mxCell parent=\"400\" source=\"404\" target=\"405\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Texto label=\"Texto\" href=\"\" id=\"408\">\n <mxCell style=\"doubleEllipse;strokeColor=red;fillColor=red;\" parent=\"400\" vertex=\"1\">\n <mxGeometry x=\"385\" y=\"155\" width=\"60\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Connector label=\"\" href=\"\" id=\"412\">\n <mxCell parent=\"400\" source=\"408\" target=\"411\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Roundrect label=\"Proceso 1\" href=\"\" id=\"411\">\n <mxCell style=\"rounded\" parent=\"400\" vertex=\"1\">\n <mxGeometry x=\"535\" y=\"155\" width=\"130\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"413\">\n <mxCell parent=\"400\" source=\"411\" target=\"405\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Texto label=\"Texto\" href=\"\" id=\"414\">\n <mxCell style=\"doubleEllipse;strokeColor=red;fillColor=red;\" parent=\"400\" vertex=\"1\">\n <mxGeometry x=\"1075\" y=\"265\" width=\"60\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Roundrect label=\"Proceso 1\" href=\"\" id=\"417\">\n <mxCell style=\"rounded\" parent=\"400\" vertex=\"1\">\n <mxGeometry x=\"1005\" y=\"375\" width=\"130\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"422\">\n <mxCell parent=\"400\" source=\"404\" target=\"417\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"423\">\n <mxCell parent=\"400\" source=\"417\" target=\"414\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Roundrect label=\"skdjd dds sd sfsjfj \" href=\"\" id=\"424\">\n <mxCell style=\"rounded\" parent=\"400\" vertex=\"1\">\n <mxGeometry x=\"475\" y=\"365\" width=\"130\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"425\">\n <mxCell parent=\"400\" source=\"411\" target=\"424\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"401\">\n <mxCell style=\"strokeColor=Yellow;\" parent=\"373\" source=\"397\" target=\"400\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"804.7232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"674.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"804.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"377\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1400.2232742626834\" y=\"252.97044334975362\" width=\"150\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1008.2232742626834\" y=\"155.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"379\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"366\" target=\"378\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"957.2232742626834\" y=\"175.97044334975362\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"380\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"366\" target=\"377\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1033.2232742626834\" y=\"382.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1023.2232742626834\" y=\"477.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1008.2232742626834\" y=\"242.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1038.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"386\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"345.2232742626834\" y=\"257.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"340.2232742626834\" y=\"352.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Texto label=\"\" href=\"\" id=\"402\">\n <mxCell style=\"actor;strokeColor=green;fillColor=green;gradientColor=blue;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"370\" y=\"278\" width=\"40\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Texto label=\"\" href=\"\" id=\"403\">\n <mxCell style=\"actor\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1063\" y=\"413\" width=\"40\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n </root>\n</mxGraphModel>\n'),
('pro_per11', 'Proveedores', 'pry4', 'usu2', 0, '<mxGraphModel>\n <root>\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\n <mxCell/>\n </Diagram>\n <Layer label=\"Default Layer\" id=\"1\">\n <mxCell parent=\"0\"/>\n </Layer>\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"536.2232742626834\" y=\"281.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"556.2232742626834\" y=\"252.97044334975362\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"\" href=\"\" id=\"366\">\n <mxCell style=\"rounded;strokeColor=orange;fillColor=orange;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"700.2232742626834\" y=\"145.97044334975362\" width=\"272\" height=\"342\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"367\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"364\" target=\"366\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Roundrect label=\"\" href=\"\" id=\"368\">\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"700.2232742626834\" y=\"232.97044334975362\" width=\"260\" height=\"160\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Text label=\"DIRIGEN / ORGANIZACION\" href=\"\" id=\"369\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"770.2232742626834\" y=\"145.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"795.2232742626834\" y=\"402.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Directores\" href=\"\" id=\"371\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"725.2232742626834\" y=\"165.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"715.2232742626834\" y=\"417.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Rect label=\"Función 1\" href=\"\" id=\"373\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"720.2232742626834\" y=\"262.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"849.7232742626834\" y=\"262.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"719.7232742626834\" y=\"312.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"849.7232742626834\" y=\"312.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"377\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1053.2232742626834\" y=\"282.9704433497536\" width=\"150\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1053.2232742626834\" y=\"165.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"379\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"366\" target=\"378\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"1002.2232742626834\" y=\"185.97044334975362\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"380\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"366\" target=\"377\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1078.2232742626834\" y=\"392.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Image label=\"\" href=\"\" id=\"382\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1078.2232742626834\" y=\"417.9704433497536\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1068.2232742626834\" y=\"487.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1053.2232742626834\" y=\"252.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1083.2232742626834\" y=\"165.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"386\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"387\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"410.2232742626834\" y=\"262.9704433497536\" width=\"60\" height=\"110\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"390.2232742626834\" y=\"267.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"385.2232742626834\" y=\"362.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n </root>\n</mxGraphModel>\n'),
('pro_per12', 'Gne', 'pry4', 'usu3', 0, '<mxGraphModel>\n <root>\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\n <mxCell/>\n </Diagram>\n <Layer label=\"Default Layer\" id=\"1\">\n <mxCell parent=\"0\"/>\n </Layer>\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"531.2232742626834\" y=\"291.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"551.2232742626834\" y=\"262.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"\" href=\"\" id=\"366\">\n <mxCell style=\"rounded;strokeColor=orange;fillColor=orange;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"695.2232742626834\" y=\"155.97044334975362\" width=\"272\" height=\"342\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"367\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"364\" target=\"366\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Roundrect label=\"\" href=\"\" id=\"368\">\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"695.2232742626834\" y=\"242.97044334975362\" width=\"260\" height=\"160\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Text label=\"DIRIGEN / ORGANIZACION\" href=\"\" id=\"369\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"765.2232742626834\" y=\"155.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"790.2232742626834\" y=\"412.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Directores\" href=\"\" id=\"371\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"720.2232742626834\" y=\"175.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"710.2232742626834\" y=\"427.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Rect label=\"Función 1\" href=\"\" id=\"373\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"715.2232742626834\" y=\"272.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"844.7232742626834\" y=\"272.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"714.7232742626834\" y=\"322.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"844.7232742626834\" y=\"322.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"377\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1048.2232742626834\" y=\"292.9704433497536\" width=\"150\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1048.2232742626834\" y=\"175.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"379\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"366\" target=\"378\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"997.2232742626834\" y=\"195.97044334975362\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"380\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"366\" target=\"377\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1073.2232742626834\" y=\"402.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Image label=\"\" href=\"\" id=\"382\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1073.2232742626834\" y=\"427.9704433497536\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1063.2232742626834\" y=\"497.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1048.2232742626834\" y=\"262.9704433497536\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1078.2232742626834\" y=\"175.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"386\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"387\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"405.2232742626834\" y=\"272.9704433497536\" width=\"60\" height=\"110\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"385.2232742626834\" y=\"277.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"380.2232742626834\" y=\"372.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Texto label=\"Texto\" href=\"\" id=\"390\">\n <mxCell style=\"cylinder\" vertex=\"1\" parent=\"1\">\n <mxGeometry x=\"110\" y=\"300\" width=\"60\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Texto label=\"Texto\" href=\"\" id=\"391\">\n <mxCell style=\"cylinder\" vertex=\"1\" parent=\"1\">\n <mxGeometry x=\"210\" y=\"240\" width=\"60\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Connector label=\"\" href=\"\" id=\"392\">\n <mxCell edge=\"1\" parent=\"1\" source=\"390\" target=\"391\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n </root>\n</mxGraphModel>\n');
INSERT INTO `pro_per` (`cod_pro_per`, `nom_perspectiva`, `cod_proyecto`, `cod_usuario`, `estado`, `dom_perspectiva`) VALUES
('pro_per13', 'Informatica', 'pry5', 'usu1', 0, '<mxGraphModel>\n <root>\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\n <mxCell/>\n </Diagram>\n <Layer label=\"Default Layer\" id=\"1\">\n <mxCell parent=\"0\"/>\n </Layer>\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"296.2232742626834\" y=\"271.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"316.2232742626834\" y=\"242.97044334975362\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"\" href=\"../../../../../../www.google.com\" id=\"366\">\n <mxCell style=\"rounded;strokeColor=orange;fillColor=orange;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"460.2232742626834\" y=\"135.97044334975362\" width=\"272\" height=\"342\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"367\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"364\" target=\"366\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Roundrect label=\"\" href=\"\" id=\"368\">\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;rotation=-1;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"466.2232742626834\" y=\"222.97044334975362\" width=\"260\" height=\"160\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Text label=\"DIRIGEN / ORGANIZACION\" href=\"\" id=\"369\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"530.2232742626834\" y=\"135.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"555.2232742626834\" y=\"392.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Directores\" href=\"\" id=\"371\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"485.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"475.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Rect label=\"Función 1\" href=\"\" id=\"373\">\n <mxCell parent=\"1\" vertex=\"1\" collapsed=\"1\">\n <mxGeometry x=\"479.5\" y=\"252\" width=\"80\" height=\"37\" as=\"geometry\">\n <mxRectangle x=\"480.2232742626834\" y=\"252.97044334975362\" width=\"1050\" height=\"475\" as=\"alternateBounds\"/>\n </mxGeometry>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"444\">\n <mxCell parent=\"373\" source=\"457\" target=\"448\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Roundrect label=\"S3\" href=\"\" id=\"445\">\n <mxCell style=\"rounded\" parent=\"373\" vertex=\"1\">\n <mxGeometry x=\"580\" y=\"80\" width=\"240\" height=\"130\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Texto label=\"S2\" href=\"\" id=\"446\">\n <mxCell style=\"triangle;rotation=-90;\" parent=\"373\" vertex=\"1\">\n <mxGeometry x=\"980\" y=\"80\" width=\"70\" height=\"130\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Roundrect label=\"Gestion Local\" href=\"\" id=\"447\">\n <mxCell style=\"rounded\" parent=\"373\" vertex=\"1\">\n <mxGeometry x=\"640\" y=\"330\" width=\"140\" height=\"60\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Texto label=\"Coordinacion Local\" href=\"\" id=\"448\">\n <mxCell style=\"triangle;rotation=-90;\" parent=\"373\" vertex=\"1\">\n <mxGeometry x=\"1030\" y=\"260\" width=\"30\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Texto label=\"Entorno Local\" href=\"\" id=\"449\">\n <mxCell style=\"cloud;strokeColor=red;fillColor=red;\" parent=\"373\" vertex=\"1\">\n <mxGeometry x=\"190\" y=\"230\" width=\"130\" height=\"235\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Texto label=\"S3*\" href=\"\" id=\"450\">\n <mxCell style=\"triangle;rotation=90;\" parent=\"373\" vertex=\"1\">\n <mxGeometry x=\"355\" y=\"115\" width=\"70\" height=\"100\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Connector label=\"\" href=\"\" id=\"451\">\n <mxCell parent=\"373\" source=\"447\" target=\"445\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"452\">\n <mxCell parent=\"373\" source=\"448\" target=\"447\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"453\">\n <mxCell parent=\"373\" source=\"449\" target=\"457\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"454\">\n <mxCell parent=\"373\" source=\"446\" target=\"445\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"455\">\n <mxCell parent=\"373\" source=\"445\" target=\"450\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"Diseño de AutonomÃa de la Funcion 1\" href=\"\" id=\"456\">\n <mxCell style=\"text\" parent=\"373\" vertex=\"1\">\n <mxGeometry x=\"160\" y=\"50\" width=\"210\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Texto label=\"Operacion o Funcion 1\" href=\"\" id=\"457\">\n <mxCell style=\"ellipse;strokeColor=red;fillColor=red;\" parent=\"373\" vertex=\"1\">\n <mxGeometry x=\"410\" y=\"290\" width=\"150\" height=\"140\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Connector label=\"\" href=\"\" id=\"458\">\n <mxCell parent=\"373\" source=\"457\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <mxPoint x=\"560\" y=\"500\" as=\"sourcePoint\"/>\n <mxPoint x=\"485\" y=\"510\" as=\"targetPoint\"/>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Text label=\"Relacion Con los Demas Procesos\" href=\"\" id=\"459\">\n <mxCell style=\"text;strokeColor=red;fillColor=red;\" parent=\"373\" vertex=\"1\">\n <mxGeometry x=\"400\" y=\"520\" width=\"190\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"610.2232742626834\" y=\"251.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"479.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"377\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"272.9704433497536\" width=\"150\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"155.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"379\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"366\" target=\"378\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"762.2232742626834\" y=\"175.97044334975362\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"380\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"366\" target=\"377\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"382.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Image label=\"\" href=\"\" id=\"382\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"828.2232742626834\" y=\"477.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"242.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"843.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"386\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"387\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"170.2232742626834\" y=\"252.97044334975362\" width=\"60\" height=\"110\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"150.2232742626834\" y=\"257.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"145.2232742626834\" y=\"352.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"Rounded\" href=\"\" id=\"393\">\n <mxCell style=\"rounded\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"150\" y=\"130\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Roundrect label=\"Rounded\" href=\"\" id=\"394\">\n <mxCell style=\"rounded\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"150\" y=\"210\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"395\">\n <mxCell parent=\"1\" source=\"393\" target=\"394\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Container label=\"Container\" href=\"\" id=\"396\">\n <mxCell style=\"swimlane\" parent=\"1\" vertex=\"1\" connectable=\"0\">\n <mxGeometry x=\"1100\" y=\"66\" width=\"200\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Container>\n <Texto label=\"Texto\" href=\"\" id=\"397\">\n <mxCell style=\"hexagon\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"1120\" y=\"150\" width=\"80\" height=\"140\" as=\"geometry\"/>\n </mxCell>\n </Texto>\n <Connector label=\"\" href=\"\" id=\"398\">\n <mxCell parent=\"1\" source=\"397\" target=\"377\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"REGULADORES\" href=\"\" id=\"415\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"930\" y=\"70\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"416\">\n <mxCell parent=\"1\" source=\"385\" target=\"415\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"417\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"965\" y=\"215\" width=\"150\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"418\">\n <mxCell parent=\"1\" source=\"377\" target=\"417\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"Equivalente a Modelo de Sistema Viable\" href=\"\" id=\"460\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"80\" y=\"30\" width=\"220\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"Rounded\" href=\"\" id=\"461\">\n <mxCell style=\"rounded\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"190\" y=\"448\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"462\">\n <mxCell parent=\"1\" source=\"393\" target=\"461\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Roundrect label=\"Rounded\" href=\"\" id=\"463\">\n <mxCell style=\"rounded\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"280\" y=\"160\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"464\">\n <mxCell parent=\"1\" source=\"461\" target=\"463\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n </root>\n</mxGraphModel>\n'),
('pro_per14', 'Bienes', 'pry5', 'usu2', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>'),
('pro_per15', 'Clientes', 'pry5', 'usu3', 1, '<mxGraphModel>\n <root>\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\n <mxCell/>\n </Diagram>\n <Layer label=\"Default Layer\" id=\"1\">\n <mxCell parent=\"0\"/>\n </Layer>\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"296.2232742626834\" y=\"271.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"316.2232742626834\" y=\"242.97044334975362\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"\" href=\"\" id=\"366\">\n <mxCell style=\"rounded;strokeColor=orange;fillColor=orange;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"460.2232742626834\" y=\"135.97044334975362\" width=\"272\" height=\"342\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"367\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"364\" target=\"366\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Roundrect label=\"\" href=\"\" id=\"368\">\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"460.2232742626834\" y=\"222.97044334975362\" width=\"260\" height=\"160\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Text label=\"DIRIGEN / ORGANIZACION\" href=\"\" id=\"369\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"530.2232742626834\" y=\"135.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"555.2232742626834\" y=\"392.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Directores\" href=\"\" id=\"371\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"485.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"475.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Rect label=\"Función 1\" href=\"\" id=\"373\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"480.2232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"479.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"377\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"272.9704433497536\" width=\"150\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"155.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"379\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"366\" target=\"378\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"762.2232742626834\" y=\"175.97044334975362\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"380\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"366\" target=\"377\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"382.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Image label=\"\" href=\"\" id=\"382\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"828.2232742626834\" y=\"477.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"242.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"843.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"386\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"387\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"170.2232742626834\" y=\"252.97044334975362\" width=\"60\" height=\"110\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"150.2232742626834\" y=\"257.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"145.2232742626834\" y=\"352.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Image label=\"\" href=\"\" id=\"390\">\n <mxCell style=\"image\" vertex=\"1\" parent=\"1\">\n <mxGeometry x=\"1075\" y=\"365\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Connector label=\"\" href=\"\" id=\"391\">\n <mxCell edge=\"1\" parent=\"1\" source=\"382\" target=\"390\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"392\">\n <mxCell style=\"image\" vertex=\"1\" parent=\"1\">\n <mxGeometry x=\"1075\" y=\"155\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Connector label=\"\" href=\"\" id=\"393\">\n <mxCell edge=\"1\" parent=\"1\" source=\"390\" target=\"392\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"394\">\n <mxCell style=\"image\" vertex=\"1\" parent=\"1\">\n <mxGeometry x=\"1275\" y=\"155\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Connector label=\"\" href=\"\" id=\"395\">\n <mxCell edge=\"1\" parent=\"1\" source=\"392\" target=\"394\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"396\">\n <mxCell edge=\"1\" parent=\"1\" source=\"394\" target=\"390\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"397\">\n <mxCell style=\"image\" vertex=\"1\" parent=\"1\">\n <mxGeometry x=\"1275\" y=\"355\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Connector label=\"\" href=\"\" id=\"398\">\n <mxCell edge=\"1\" parent=\"1\" source=\"394\" target=\"397\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n </root>\n</mxGraphModel>\n'),
('pro_per16', '1', 'pry5', 'usu1', 0, '<mxGraphModel>\n <root>\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\n <mxCell/>\n </Diagram>\n <Layer label=\"Default Layer\" id=\"1\">\n <mxCell parent=\"0\"/>\n </Layer>\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"296.2232742626834\" y=\"271.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"316.2232742626834\" y=\"242.97044334975362\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"\" href=\"\" id=\"366\">\n <mxCell style=\"rounded;strokeColor=orange;fillColor=orange;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"460.2232742626834\" y=\"135.97044334975362\" width=\"272\" height=\"342\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"367\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"364\" target=\"366\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Roundrect label=\"\" href=\"\" id=\"368\">\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"460.2232742626834\" y=\"222.97044334975362\" width=\"260\" height=\"160\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Text label=\"DIRIGEN / ORGANIZACION\" href=\"\" id=\"369\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"530.2232742626834\" y=\"135.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"555.2232742626834\" y=\"392.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Directores\" href=\"\" id=\"371\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"485.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"475.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Rect label=\"Función 1\" href=\"\" id=\"373\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"480.2232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"479.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"377\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"272.9704433497536\" width=\"150\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"155.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"379\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"366\" target=\"378\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"762.2232742626834\" y=\"175.97044334975362\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"380\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"366\" target=\"377\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"382.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Image label=\"\" href=\"\" id=\"382\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"828.2232742626834\" y=\"477.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"242.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"843.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"386\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"387\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"170.2232742626834\" y=\"252.97044334975362\" width=\"60\" height=\"110\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"150.2232742626834\" y=\"257.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"145.2232742626834\" y=\"352.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"390\">\n <mxCell vertex=\"1\" parent=\"1\">\n <mxGeometry x=\"296\" y=\"145\" width=\"100\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"391\">\n <mxCell edge=\"1\" parent=\"1\" source=\"364\" target=\"390\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n </root>\n</mxGraphModel>\n');
INSERT INTO `pro_per` (`cod_pro_per`, `nom_perspectiva`, `cod_proyecto`, `cod_usuario`, `estado`, `dom_perspectiva`) VALUES
('pro_per17', '2', 'pry5', 'usu2', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>'),
('pro_per18', '3', 'pry5', 'usu3', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>'),
('pro_per19', '56', 'pry5', 'usu1', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>'),
('pro_per2', 'Procesos', 'pry1', 'usu2', 0, '<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>');
INSERT INTO `pro_per` (`cod_pro_per`, `nom_perspectiva`, `cod_proyecto`, `cod_usuario`, `estado`, `dom_perspectiva`) VALUES
('pro_per20', '233', 'pry5', 'usu2', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>'),
('pro_per21', '55', 'pry5', 'usu3', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>'),
('pro_per22', '12', 'pry1', 'usu1', 0, '<mxGraphModel>\n <root>\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\n <mxCell/>\n </Diagram>\n <Layer label=\"Default Layer\" id=\"1\">\n <mxCell parent=\"0\"/>\n </Layer>\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"296.2232742626834\" y=\"271.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"316.2232742626834\" y=\"242.97044334975362\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"\" href=\"\" id=\"366\">\n <mxCell style=\"rounded;strokeColor=orange;fillColor=orange;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"460.2232742626834\" y=\"135.97044334975362\" width=\"272\" height=\"342\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"367\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"364\" target=\"366\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Roundrect label=\"\" href=\"\" id=\"368\">\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"460.2232742626834\" y=\"222.97044334975362\" width=\"260\" height=\"160\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Text label=\"DIRIGEN / ORGANIZACION\" href=\"\" id=\"369\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"530.2232742626834\" y=\"135.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"555.2232742626834\" y=\"392.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Directores\" href=\"\" id=\"371\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"485.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"475.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Rect label=\"Función 1\" href=\"\" id=\"373\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"480.2232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"479.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"377\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"272.9704433497536\" width=\"150\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"155.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"379\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"366\" target=\"378\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"762.2232742626834\" y=\"175.97044334975362\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"380\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"366\" target=\"377\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"382.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Image label=\"\" href=\"\" id=\"382\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"828.2232742626834\" y=\"477.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"242.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"843.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"386\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"387\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"170.2232742626834\" y=\"252.97044334975362\" width=\"60\" height=\"110\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"150.2232742626834\" y=\"257.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"145.2232742626834\" y=\"352.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"\" href=\"\" id=\"390\">\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" vertex=\"1\" parent=\"1\">\n <mxGeometry x=\"220\" y=\"60\" width=\"260\" height=\"160\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"391\">\n <mxCell edge=\"1\" parent=\"1\" source=\"368\" target=\"390\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n </root>\n</mxGraphModel>\n'),
('pro_per23', '14', 'pry1', 'usu2', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>'),
('pro_per24', '14', 'pry1', 'usu3', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>');
INSERT INTO `pro_per` (`cod_pro_per`, `nom_perspectiva`, `cod_proyecto`, `cod_usuario`, `estado`, `dom_perspectiva`) VALUES
('pro_per25', '12', 'pry4', 'usu1', 0, '<mxGraphModel>\n <root>\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\n <mxCell/>\n </Diagram>\n <Layer label=\"Default Layer\" id=\"1\">\n <mxCell parent=\"0\"/>\n </Layer>\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"296.2232742626834\" y=\"271.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"316.2232742626834\" y=\"242.97044334975362\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"\" href=\"\" id=\"366\">\n <mxCell style=\"rounded;strokeColor=orange;fillColor=orange;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"460.2232742626834\" y=\"135.97044334975362\" width=\"272\" height=\"342\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Connector label=\"\" href=\"\" id=\"367\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"364\" target=\"366\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Roundrect label=\"\" href=\"\" id=\"368\">\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"460.2232742626834\" y=\"222.97044334975362\" width=\"260\" height=\"160\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Text label=\"DIRIGEN / ORGANIZACION\" href=\"\" id=\"369\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"530.2232742626834\" y=\"135.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"555.2232742626834\" y=\"392.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Directores\" href=\"\" id=\"371\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"485.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"475.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Rect label=\"Función 1\" href=\"\" id=\"373\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"306.2232742626834\" y=\"155.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"479.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Inserte Productos o Servicios\" href=\"\" id=\"377\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"272.9704433497536\" width=\"150\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"155.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Connector label=\"\" href=\"\" id=\"379\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"366\" target=\"378\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\">\n <Array as=\"points\">\n <mxPoint x=\"762.2232742626834\" y=\"175.97044334975362\"/>\n </Array>\n </mxGeometry>\n </mxCell>\n </Connector>\n <Connector label=\"\" href=\"\" id=\"380\">\n <mxCell style=\"arrowConnector\" parent=\"1\" source=\"366\" target=\"377\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"382.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Image label=\"\" href=\"\" id=\"382\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"828.2232742626834\" y=\"477.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"242.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"843.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"386\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"387\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"170.2232742626834\" y=\"252.97044334975362\" width=\"60\" height=\"110\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"150.2232742626834\" y=\"257.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"145.2232742626834\" y=\"352.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n </root>\n</mxGraphModel>\n'),
('pro_per26', '13', 'pry4', 'usu2', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>'),
('pro_per27', '14', 'pry4', 'usu3', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>'),
('pro_per28', '133', 'pry2', 'usu1', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>'),
('pro_per29', '145', 'pry2', 'usu2', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>');
INSERT INTO `pro_per` (`cod_pro_per`, `nom_perspectiva`, `cod_proyecto`, `cod_usuario`, `estado`, `dom_perspectiva`) VALUES
('pro_per3', 'Orcurin', 'pry1', 'usu3', 0, '<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>'),
('pro_per30', '1654', 'pry2', 'usu3', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>'),
('pro_per31', 'Perspectiva 1', 'pry8', 'usu1', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>'),
('pro_per32', 'Perspectiva 2', 'pry8', 'usu2', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>');
INSERT INTO `pro_per` (`cod_pro_per`, `nom_perspectiva`, `cod_proyecto`, `cod_usuario`, `estado`, `dom_perspectiva`) VALUES
('pro_per33', 'Perspectiva 3', 'pry8', 'usu3', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>'),
('pro_per4', 'Cliente', 'pry2', 'usu1', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>'),
('pro_per5', 'Bienes', 'pry2', 'usu2', 0, '<mxGraphModel>\n <root>\n <Diagram label=\"My Diagram\" href=\"http://www.jgraph.com/\" id=\"0\">\n <mxCell/>\n </Diagram>\n <Layer label=\"Default Layer\" id=\"1\">\n <mxCell parent=\"0\"/>\n </Layer>\n <Rect label=\"Insertar Insumos\" href=\"\" id=\"364\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"296.2232742626834\" y=\"271.9704433497536\" width=\"100\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Text label=\"INSUMOS\" href=\"\" id=\"365\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"316.2232742626834\" y=\"242.97044334975362\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Roundrect label=\"\" href=\"\" id=\"368\">\n <mxCell style=\"rounded;strokeColor=yellow;fillColor=yellow;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"888.2232742626834\" y=\"117.97044334975362\" width=\"260\" height=\"160\" as=\"geometry\"/>\n </mxCell>\n </Roundrect>\n <Text label=\"DIRIGEN / ORGANIZACION\" href=\"\" id=\"369\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"530.2232742626834\" y=\"135.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"ACTORES\" href=\"\" id=\"370\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"555.2232742626834\" y=\"392.9704433497536\" width=\"60\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Directores\" href=\"\" id=\"371\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"485.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Insertar Actores\" href=\"\" id=\"372\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"475.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Rect label=\"Función 1\" href=\"\" id=\"373\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"480.2232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 2\" href=\"\" id=\"374\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"252.97044334975362\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 3\" href=\"\" id=\"375\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"479.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Función 4\" href=\"\" id=\"376\">\n <mxCell style=\"strokeColor=orange;shadow=1;\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"609.7232742626834\" y=\"302.9704433497536\" width=\"80\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"No seas Mamon\" href=\"\" id=\"377\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"195.2232742626834\" y=\"49.97044334975362\" width=\"150\" height=\"70\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Rect label=\"Insertar Reguladores\" href=\"\" id=\"378\">\n <mxCell parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"155.97044334975362\" width=\"140\" height=\"40\" as=\"geometry\"/>\n </mxCell>\n </Rect>\n <Text label=\"BENEFICIARIOS\" href=\"\" id=\"381\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"382.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Image label=\"\" href=\"\" id=\"382\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"838.2232742626834\" y=\"407.9704433497536\" width=\"90\" height=\"50\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"Insertar Beneficiarios\" href=\"\" id=\"383\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"828.2232742626834\" y=\"477.9704433497536\" width=\"120\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"PRODUCTOS / SERVICIOS\" href=\"\" id=\"384\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"813.2232742626834\" y=\"242.97044334975362\" width=\"160\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"REGULADORES\" href=\"\" id=\"385\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"843.2232742626834\" y=\"155.97044334975362\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Connector label=\"\" href=\"\" id=\"386\">\n <mxCell style=\"straightConnector\" parent=\"1\" source=\"377\" target=\"381\" edge=\"1\">\n <mxGeometry relative=\"1\" as=\"geometry\"/>\n </mxCell>\n </Connector>\n <Image label=\"\" href=\"\" id=\"387\">\n <mxCell style=\"image\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"170.2232742626834\" y=\"252.97044334975362\" width=\"60\" height=\"110\" as=\"geometry\"/>\n </mxCell>\n </Image>\n <Text label=\"PROVEEDORES\" href=\"\" id=\"388\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"150.2232742626834\" y=\"257.9704433497536\" width=\"100\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n <Text label=\"Inserte proveedores\" href=\"\" id=\"389\">\n <mxCell style=\"text\" parent=\"1\" vertex=\"1\">\n <mxGeometry x=\"145.2232742626834\" y=\"352.9704433497536\" width=\"110\" height=\"20\" as=\"geometry\"/>\n </mxCell>\n </Text>\n </root>\n</mxGraphModel>\n'),
('pro_per6', 'Proveedor', 'pry2', 'usu3', 0, '<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="OOO" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="920.2232742626834" y="95.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="P.... QUE OFERTON" href="" id="390">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="190" y="86" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>'),
('pro_per7', 'Cliente', 'pry3', 'usu1', 0, ''),
('pro_per8', 'Bienes', 'pry3', 'usu2', 1, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>');
INSERT INTO `pro_per` (`cod_pro_per`, `nom_perspectiva`, `cod_proyecto`, `cod_usuario`, `estado`, `dom_perspectiva`) VALUES
('pro_per9', 'Proveedor', 'pry3', 'usu3', 0, '\r\n<mxGraphModel>\r\n <root>\r\n <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">\r\n <mxCell/>\r\n </Diagram>\r\n <Layer label="Default Layer" id="1">\r\n <mxCell parent="0"/>\r\n </Layer>\r\n <Rect label="Insertar Insumos" href="" id="364">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="296.2232742626834" y="271.9704433497536" width="100" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Text label="INSUMOS" href="" id="365">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="316.2232742626834" y="242.97044334975362" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Roundrect label="" href="" id="366">\r\n <mxCell style="rounded;strokeColor=orange;fillColor=orange;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="135.97044334975362" width="272" height="342" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Connector label="" href="" id="367">\r\n <mxCell style="arrowConnector" parent="1" source="364" target="366" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Roundrect label="" href="" id="368">\r\n <mxCell style="rounded;strokeColor=yellow;fillColor=yellow;" parent="1" vertex="1">\r\n <mxGeometry x="460.2232742626834" y="222.97044334975362" width="260" height="160" as="geometry"/>\r\n </mxCell>\r\n </Roundrect>\r\n <Text label="DIRIGEN / ORGANIZACION" href="" id="369">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="530.2232742626834" y="135.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="ACTORES" href="" id="370">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="555.2232742626834" y="392.9704433497536" width="60" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Directores" href="" id="371">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="485.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Insertar Actores" href="" id="372">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="475.2232742626834" y="407.9704433497536" width="90" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Rect label="Función 1" href="" id="373">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="480.2232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 2" href="" id="374">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="252.97044334975362" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 3" href="" id="375">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="479.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Función 4" href="" id="376">\r\n <mxCell style="strokeColor=orange;shadow=1;" parent="1" vertex="1">\r\n <mxGeometry x="609.7232742626834" y="302.9704433497536" width="80" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Inserte Productos o Servicios" href="" id="377">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="272.9704433497536" width="150" height="70" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Rect label="Insertar Reguladores" href="" id="378">\r\n <mxCell parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="155.97044334975362" width="140" height="40" as="geometry"/>\r\n </mxCell>\r\n </Rect>\r\n <Connector label="" href="" id="379">\r\n <mxCell style="straightConnector" parent="1" source="366" target="378" edge="1">\r\n <mxGeometry relative="1" as="geometry">\r\n <Array as="points">\r\n <mxPoint x="762.2232742626834" y="175.97044334975362"/>\r\n </Array>\r\n </mxGeometry>\r\n </mxCell>\r\n </Connector>\r\n <Connector label="" href="" id="380">\r\n <mxCell style="arrowConnector" parent="1" source="366" target="377" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Text label="BENEFICIARIOS" href="" id="381">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="382.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Image label="" href="" id="382">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="838.2232742626834" y="407.9704433497536" width="90" height="50" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="Insertar Beneficiarios" href="" id="383">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="828.2232742626834" y="477.9704433497536" width="120" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="PRODUCTOS / SERVICIOS" href="" id="384">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="813.2232742626834" y="242.97044334975362" width="160" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="REGULADORES" href="" id="385">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="843.2232742626834" y="155.97044334975362" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Connector label="" href="" id="386">\r\n <mxCell style="straightConnector" parent="1" source="377" target="381" edge="1">\r\n <mxGeometry relative="1" as="geometry"/>\r\n </mxCell>\r\n </Connector>\r\n <Image label="" href="" id="387">\r\n <mxCell style="image" parent="1" vertex="1">\r\n <mxGeometry x="170.2232742626834" y="252.97044334975362" width="60" height="110" as="geometry"/>\r\n </mxCell>\r\n </Image>\r\n <Text label="PROVEEDORES" href="" id="388">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="150.2232742626834" y="257.9704433497536" width="100" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n <Text label="Inserte proveedores" href="" id="389">\r\n <mxCell style="text" parent="1" vertex="1">\r\n <mxGeometry x="145.2232742626834" y="352.9704433497536" width="110" height="20" as="geometry"/>\r\n </mxCell>\r\n </Text>\r\n </root>\r\n</mxGraphModel>');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `pro_rol`
--
CREATE TABLE `pro_rol` (
`cod_pro_rol` varchar(30) NOT NULL,
`nom_pro_rol` varchar(60) NOT NULL,
`cod_proyecto` varchar(30) NOT NULL,
`cod_usuario` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Volcado de datos para la tabla `pro_rol`
--
INSERT INTO `pro_rol` (`cod_pro_rol`, `nom_pro_rol`, `cod_proyecto`, `cod_usuario`) VALUES
('pr1', 'gestor', 'pry1', 'usu2'),
('pr10', 'gestor', 'pry4', 'usu2'),
('pr11', 'analista', 'pry4', 'usu1'),
('pr12', 'analista', 'pry4', 'usu3'),
('pr13', 'gestor', 'pry5', 'usu2'),
('pr14', 'analista', 'pry5', 'usu1'),
('pr15', 'analista', 'pry5', 'usu3'),
('pr16', 'analista', 'pry6', 'usu1'),
('pr17', 'gestor', 'pry6', 'usu2'),
('pr18', 'analista', 'pry7', 'usu1'),
('pr19', 'gestor', 'pry7', 'usu2'),
('pr2', 'analista', 'pry1', 'usu1'),
('pr20', 'gestor', 'pry8', 'usu2'),
('pr21', 'analista', 'pry8', 'usu1'),
('pr22', 'analista', 'pry8', 'usu3'),
('pr3', 'analista', 'pry1', 'usu3'),
('pr4', 'analista', 'pry2', 'usu2'),
('pr5', 'gestor', 'pry2', 'usu1'),
('pr6', 'analista', 'pry2', 'usu3'),
('pr7', 'gestor', 'pry3', 'usu2'),
('pr8', 'analista', 'pry3', 'usu1'),
('pr9', 'analista', 'pry3', 'usu3');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `usuarios`
--
CREATE TABLE `usuarios` (
`cod_usuario` varchar(30) NOT NULL,
`cor_usuario` varchar(30) NOT NULL,
`nom_usuario` varchar(60) NOT NULL,
`pas_usuario` varchar(40) NOT NULL,
`cod_rol` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Volcado de datos para la tabla `usuarios`
--
INSERT INTO `usuarios` (`cod_usuario`, `cor_usuario`, `nom_usuario`, `pas_usuario`, `cod_rol`) VALUES
('usu1', '<EMAIL>', '<NAME>', 'sergio', 'rol1'),
('usu2', '<EMAIL>', '<NAME>', 'taipe', 'rol1'),
('usu3', '<EMAIL>', '<NAME>', 'perro', 'rol1');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `usu_equipo`
--
CREATE TABLE `usu_equipo` (
`cod_usu_equ` varchar(30) NOT NULL,
`cod_usuario` varchar(30) NOT NULL,
`cod_equipo` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Volcado de datos para la tabla `usu_equipo`
--
INSERT INTO `usu_equipo` (`cod_usu_equ`, `cod_usuario`, `cod_equipo`) VALUES
('eu2', 'usu1', 'equ1'),
('eu6', 'usu1', 'equ2'),
('eu8', 'usu1', 'equ3'),
('eu11', 'usu1', 'equ4'),
('eu13', 'usu1', 'equ5'),
('eu16', 'usu1', 'equ6'),
('eu1', 'usu2', 'equ1'),
('eu4', 'usu2', 'equ2'),
('eu7', 'usu2', 'equ3'),
('eu10', 'usu2', 'equ4'),
('eu14', 'usu2', 'equ5'),
('eu15', 'usu2', 'equ6'),
('eu3', 'usu3', 'equ1'),
('eu5', 'usu3', 'equ2'),
('eu9', 'usu3', 'equ3'),
('eu12', 'usu3', 'equ4'),
('eu17', 'usu3', 'equ6');
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `chats`
--
ALTER TABLE `chats`
ADD PRIMARY KEY (`cod_chat`),
ADD KEY `cod_tip_archivo` (`mensaje`,`cod_proyecto`),
ADD KEY `cod_tip_archivo_2` (`mensaje`,`cod_proyecto`),
ADD KEY `cod_proyecto` (`cod_proyecto`);
--
-- Indices de la tabla `equipos`
--
ALTER TABLE `equipos`
ADD PRIMARY KEY (`cod_equipo`),
ADD KEY `cod_usuario` (`npm_equipo`);
--
-- Indices de la tabla `proyectos`
--
ALTER TABLE `proyectos`
ADD PRIMARY KEY (`cod_proyecto`),
ADD KEY `cod_equipo` (`cod_equipo`);
--
-- Indices de la tabla `pro_per`
--
ALTER TABLE `pro_per`
ADD PRIMARY KEY (`cod_pro_per`),
ADD KEY `cod_perspectiva` (`cod_usuario`),
ADD KEY `cod_proyecto` (`cod_proyecto`);
--
-- Indices de la tabla `pro_rol`
--
ALTER TABLE `pro_rol`
ADD PRIMARY KEY (`cod_pro_rol`),
ADD KEY `cod_proyecto` (`cod_proyecto`);
--
-- Indices de la tabla `usuarios`
--
ALTER TABLE `usuarios`
ADD PRIMARY KEY (`cod_usuario`),
ADD KEY `cod_rol` (`cod_rol`);
--
-- Indices de la tabla `usu_equipo`
--
ALTER TABLE `usu_equipo`
ADD PRIMARY KEY (`cod_usu_equ`),
ADD KEY `cod_usuario` (`cod_usuario`,`cod_equipo`),
ADD KEY `cod_equipo` (`cod_equipo`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `chats`
--
ALTER TABLE `chats`
MODIFY `cod_chat` int(12) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=377;
--
-- Restricciones para tablas volcadas
--
--
-- Filtros para la tabla `chats`
--
ALTER TABLE `chats`
ADD CONSTRAINT `chats_ibfk_2` FOREIGN KEY (`cod_proyecto`) REFERENCES `proyectos` (`cod_proyecto`);
--
-- Filtros para la tabla `proyectos`
--
ALTER TABLE `proyectos`
ADD CONSTRAINT `proyectos_ibfk_2` FOREIGN KEY (`cod_equipo`) REFERENCES `equipos` (`cod_equipo`);
--
-- Filtros para la tabla `pro_per`
--
ALTER TABLE `pro_per`
ADD CONSTRAINT `pro_per_ibfk_2` FOREIGN KEY (`cod_proyecto`) REFERENCES `proyectos` (`cod_proyecto`);
--
-- Filtros para la tabla `pro_rol`
--
ALTER TABLE `pro_rol`
ADD CONSTRAINT `pro_rol_ibfk_1` FOREIGN KEY (`cod_proyecto`) REFERENCES `proyectos` (`cod_proyecto`);
--
-- Filtros para la tabla `usu_equipo`
--
ALTER TABLE `usu_equipo`
ADD CONSTRAINT `usu_equipo_ibfk_1` FOREIGN KEY (`cod_usuario`) REFERENCES `usuarios` (`cod_usuario`),
ADD CONSTRAINT `usu_equipo_ibfk_2` FOREIGN KEY (`cod_equipo`) REFERENCES `equipos` (`cod_equipo`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
DROP TRIGGER cloud_providers_updated_at on cloud_providers;
DROP TABLE cloud_providers;
|
--
-- schema definition from init-db.sql of version 1.1.3 revision 5322
-- with minor bugfixes:
-- corrected unique constraint on custom_messages (andromda bug)
-- renamed index/constraint core_tag_TAG_CLEARANCES_FKC on table core_tag2clearance_include to core_tag_inc_TAG_CLEARANCES_FKC because of name conflict
create table channel_configuration (
`ID` BIGINT not null auto_increment,
`FORCE_SSL` TINYINT not null,
`CHANNEL_TYPE` VARCHAR(1024) not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table configuration (
`ID` BIGINT not null auto_increment,
CLIENT_CONFIG_FK BIGINT unique,
primary key (`ID`)
) ENGINE=InnoDB;
create table configuration_client (
`ID` BIGINT not null auto_increment,
`LOGO_IMAGE` LONGBLOB,
`LAST_LOGO_IMAGE_MODIFICATION_D` TIMESTAMP default 0,
`TIME_ZONE_ID` VARCHAR(1024),
DEFAULT_BLOG_FK BIGINT unique,
primary key (`ID`)
) ENGINE=InnoDB;
create table configuration_confluence (
`ID` BIGINT not null,
`AUTHENTICATION_API_URL` VARCHAR(1024) not null,
`IMAGE_API_URL` VARCHAR(1024),
`ADMIN_LOGIN` VARCHAR(1024),
`ADMIN_PASSWORD` VARCHAR(1024),
`SERVICE_URL` VARCHAR(1024),
`PERMISSIONS_URL` VARCHAR(1024),
`BASE_PATH` VARCHAR(1024),
primary key (`ID`)
) ENGINE=InnoDB;
create table configuration_external_system (
`ID` BIGINT not null auto_increment,
`ALLOW_EXTERNAL_AUTHENTICATION` TINYINT not null,
`SYSTEM_ID` VARCHAR(50) not null unique,
`PRIMARY_AUTHENTICATION` TINYINT not null,
`SYNCHRONIZE_USER_GROUPS` TINYINT not null,
CONFIGURATION_FK BIGINT,
primary key (`ID`)
) ENGINE=InnoDB;
create table configuration_ldap (
`ID` BIGINT not null,
`URL` VARCHAR(1024) not null,
`MANAGER_PASSWORD` VARCHAR(1024) not null,
`MANAGER_D_N` VARCHAR(1024) not null,
`SEARCHBASE` VARCHAR(1024) not null,
`SEARCHFILTER` VARCHAR(1024) not null,
`SEARCH_SUB_TREE` TINYINT not null,
`PROPERTY_MAPPING` VARCHAR(1024) not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table configuration_setting (
`KEY` VARCHAR(255) not null,
`VALUE` TEXT,
CONFIGURATION_FK BIGINT,
primary key (`KEY`)
) ENGINE=InnoDB;
create table configuration_sharepoint (
`ID` BIGINT not null,
`AUTHENTICATION_API_URL` VARCHAR(1024) not null,
`ADMIN_PASSWORD` VARCHAR(1024) not null,
`ADMIN_LOGIN` VARCHAR(1024) not null,
`IMAGE_API_URL` VARCHAR(1024),
primary key (`ID`)
) ENGINE=InnoDB;
create table core_attachment (
`ID` BIGINT not null auto_increment,
`CONTENT_IDENTIFIER` VARCHAR(1024) not null,
`REPOSITORY_IDENTIFIER` VARCHAR(1024) not null,
`NAME` VARCHAR(1024) not null,
`CONTENT_TYPE` VARCHAR(1024),
`SIZE` BIGINT,
`STATUS` VARCHAR(1024) not null,
GLOBAL_ID_FK BIGINT unique,
NOTE_FK BIGINT,
primary key (`ID`)
) ENGINE=InnoDB;
create table core_blog (
`ID` BIGINT not null auto_increment,
`TITLE` VARCHAR(1024) not null,
`DESCRIPTION` TEXT,
`CREATION_DATE` TIMESTAMP default 0 not null,
`NAME_IDENTIFIER` VARCHAR(255) not null unique,
`LAST_MODIFICATION_DATE` TIMESTAMP default 0 not null,
`ALL_CAN_READ` TINYINT not null,
`ALL_CAN_WRITE` TINYINT not null,
`PUBLIC_ACCESS` TINYINT not null,
GLOBAL_ID_FK BIGINT unique,
primary key (`ID`)
) ENGINE=InnoDB;
create table core_blog2tag (
BLOGS_FK BIGINT not null,
TAGS_FK BIGINT not null,
primary key (BLOGS_FK, TAGS_FK)
) ENGINE=InnoDB;
create table core_blog_event (
`ID` BIGINT not null auto_increment,
`TIME` TIMESTAMP default 0 not null,
`TYPE` VARCHAR(1024) not null,
CREATOR_FK BIGINT,
BLOG_FK BIGINT,
primary key (`ID`)
) ENGINE=InnoDB;
create table core_blog_member (
`ID` BIGINT not null auto_increment,
class varchar(255) not null,
`ROLE` VARCHAR(1024) not null,
BLOG_FK BIGINT not null,
KENMEI_ENTITY_FK BIGINT not null,
`EXTERNAL_SYSTEM_ID` VARCHAR(50),
primary key (`ID`)
) ENGINE=InnoDB;
create table core_content (
`ID` BIGINT not null auto_increment,
`CONTENT` TEXT not null,
`SHORT_CONTENT` TEXT,
primary key (`ID`)
) ENGINE=InnoDB;
create table core_external_object (
`ID` BIGINT not null auto_increment,
`EXTERNAL_SYSTEM_ID` VARCHAR(50) not null,
`EXTERNAL_ID` VARCHAR(200) not null,
`EXTERNAL_NAME` VARCHAR(1024),
BLOG_FK BIGINT,
primary key (`ID`),
unique (`EXTERNAL_SYSTEM_ID`, `EXTERNAL_ID`)
) ENGINE=InnoDB;
create table core_external_object_properties (
`ID` BIGINT not null auto_increment,
`KEY` VARCHAR(300) not null,
`VALUE` VARCHAR(1024) not null,
EXTERNAL_OBJECT_FK BIGINT,
primary key (`ID`)
) ENGINE=InnoDB;
create table core_global_id (
`ID` BIGINT not null auto_increment,
`GLOBAL_IDENTIFIER` VARCHAR(255) not null unique,
primary key (`ID`)
) ENGINE=InnoDB;
create table core_note (
`ID` BIGINT not null auto_increment,
`CREATION_DATE` TIMESTAMP default 0 not null,
`LAST_MODIFICATION_DATE` TIMESTAMP default 0 not null,
`CREATION_SOURCE` VARCHAR(1024) not null,
`DIRECT` TINYINT not null,
`STATUS` VARCHAR(1024) not null,
`VERSION` BIGINT not null,
`DISCUSSION_PATH` VARCHAR(1024),
USER_FK BIGINT not null,
CONTENT_FK BIGINT not null unique,
GLOBAL_ID_FK BIGINT unique,
BLOG_FK BIGINT not null,
PARENT_FK BIGINT,
ORIGIN_FK BIGINT,
primary key (`ID`)
) ENGINE=InnoDB;
create table core_notes2crossblogs (
NOTES_FK BIGINT not null,
CROSSPOST_BLOGS_FK BIGINT not null,
primary key (NOTES_FK, CROSSPOST_BLOGS_FK)
) ENGINE=InnoDB;
create table core_notes2tag (
NOTES_FK BIGINT not null,
TAGS_FK BIGINT not null,
primary key (NOTES_FK, TAGS_FK)
) ENGINE=InnoDB;
create table core_notes2user_to_notify (
NOTES_FK BIGINT not null,
USERS_TO_BE_NOTIFIED_FK BIGINT not null,
primary key (NOTES_FK, USERS_TO_BE_NOTIFIED_FK)
) ENGINE=InnoDB;
create table core_processed_utp_mail (
`ID` BIGINT not null auto_increment,
`MAIL_MESSAGE_ID` VARCHAR(255) not null unique,
primary key (`ID`)
) ENGINE=InnoDB;
create table core_role2blog (
`ID` BIGINT not null auto_increment,
`BLOG_ID` BIGINT not null,
`USER_ID` BIGINT not null,
`NUMERIC_ROLE` INTEGER not null,
`EXTERNAL_SYSTEM_ID` VARCHAR(1024),
`GRANTED_BY_GROUP` TINYINT not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table core_role2blog_granting_group (
USER_TO_BLOG_ROLE_MAPPINGS_FK BIGINT not null,
GRANTING_GROUPS_FK BIGINT not null,
primary key (USER_TO_BLOG_ROLE_MAPPINGS_FK, GRANTING_GROUPS_FK)
) ENGINE=InnoDB;
create table core_tag (
`ID` BIGINT not null auto_increment,
class varchar(255) not null,
`LOWER_NAME` VARCHAR(1024) not null,
`NAME` VARCHAR(255) not null unique,
GLOBAL_ID_FK BIGINT unique,
CATEGORY_FK BIGINT,
ABSTRACT_TAG_CATEGORY_TAGS_IDX integer,
primary key (`ID`)
) ENGINE=InnoDB;
create table core_tag2clearance_exclude (
TAG_CLEARANCES_FK BIGINT not null,
EXCLUDE_TAGS_FK BIGINT not null,
TAG_CLEARANCE_EXCLUDE_TAGS_IDX integer not null,
primary key (TAG_CLEARANCES_FK, TAG_CLEARANCE_EXCLUDE_TAGS_IDX)
) ENGINE=InnoDB;
create table core_tag2clearance_include (
TAG_CLEARANCES_FK BIGINT not null,
INCLUDE_TAGS_FK BIGINT not null,
TAG_CLEARANCE_INCLUDE_TAGS_IDX integer not null,
primary key (TAG_CLEARANCES_FK, TAG_CLEARANCE_INCLUDE_TAGS_IDX)
) ENGINE=InnoDB;
create table core_tag_category (
`ID` BIGINT not null auto_increment,
class varchar(255) not null,
`NAME` VARCHAR(1024) not null,
`PREFIX` VARCHAR(1024) not null,
`DESCRIPTION` VARCHAR(1024),
`MULTIPLE_TAGS` TINYINT not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table core_tag_clearance (
`ID` BIGINT not null auto_increment,
class varchar(255) not null,
`INCLUDE_PROTECTED_RESOURCES` TINYINT,
OWNER_FK BIGINT,
primary key (`ID`)
) ENGINE=InnoDB;
create table core_users2favorite_notes (
FAVORITE_NOTES_FK BIGINT not null,
FAVORITE_USERS_FK BIGINT not null,
primary key (FAVORITE_NOTES_FK, FAVORITE_USERS_FK)
) ENGINE=InnoDB;
create table crc_cache_config (
`ID` BIGINT not null auto_increment,
`TIME_TO_STAY` BIGINT not null,
CURRENT_CACHE_CONNECTOR_CON_FK BIGINT unique,
primary key (`ID`)
) ENGINE=InnoDB;
create table crc_connector_config (
`ID` BIGINT not null auto_increment,
`SUPPORTS_METADATA` TINYINT not null,
`CONNECTOR_ID` VARCHAR(1024) not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table crc_filesystem_config (
`ID` BIGINT not null,
`PATH` VARCHAR(1024) not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table crc_ramconn_config (
`ID` BIGINT not null,
`MIN_ABSOLUTE_FREE_MEMORY` BIGINT not null,
`MIN_FREE_MEMORY_IN_PERCENT` INTEGER not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table custom_messages (
`ID` BIGINT not null auto_increment,
`KEY` VARCHAR(255) not null,
`MESSAGE` TEXT not null,
`IS_HTML` TINYINT not null,
LANGUAGE_FK BIGINT unique,
unique(`KEY`, LANGUAGE_FK),
primary key (`ID`)
) ENGINE=InnoDB;
create table iprange_channel (
`TYPE` VARCHAR(255) not null,
`ENABLED` TINYINT not null,
primary key (`TYPE`)
) ENGINE=InnoDB;
create table iprange_filter (
`ID` BIGINT not null auto_increment,
`NAME` VARCHAR(1024) not null,
`ENABLED` TINYINT not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table iprange_filter_channel (
IP_RANGE_FILTERS_FK BIGINT not null,
CHANNELS_FK VARCHAR(255) not null,
primary key (IP_RANGE_FILTERS_FK, CHANNELS_FK)
) ENGINE=InnoDB;
create table iprange_range (
`ID` BIGINT not null auto_increment,
`START_VALUE` LONGBLOB not null,
`END_VALUE` LONGBLOB not null,
`STRING_REPRESENTATION` VARCHAR(1024),
IP_RANGE_FILTER_IN_FK BIGINT,
IP_RANGE_FILTER_EX_FK BIGINT,
primary key (`ID`)
) ENGINE=InnoDB;
create table mc_config (
`ID` BIGINT not null auto_increment,
`TYPE` VARCHAR(1024) not null,
`PROPERTIES` VARCHAR(1024) not null,
`ONLY_IF_AVAILABLE` TINYINT not null,
`PRIORITY` INTEGER not null,
NOTIFICATION_CONFIG_FK BIGINT,
primary key (`ID`)
) ENGINE=InnoDB;
create table md_country (
`ID` BIGINT not null auto_increment,
`COUNTRY_CODE` VARCHAR(255) not null unique,
`NAME` VARCHAR(1024) not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table md_language (
`ID` BIGINT not null auto_increment,
`LANGUAGE_CODE` VARCHAR(255) not null unique,
`NAME` VARCHAR(1024) not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table misc_query_helper (
`ID` BIGINT not null auto_increment,
primary key (`ID`)
) ENGINE=InnoDB;
create table news_feed_cache (
`ID` BIGINT not null auto_increment,
`TIMESTAMP` TIMESTAMP default 0 not null,
`USER_ID` BIGINT not null unique,
`CONTENT_DATA` TEXT not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table news_widget_feed (
`ID` BIGINT not null auto_increment,
`NAME` VARCHAR(1024) not null,
`TYPE` VARCHAR(1024) not null,
KENMEI_USER_FK BIGINT,
primary key (`ID`)
) ENGINE=InnoDB;
create table news_widget_parameter (
`ID` BIGINT not null auto_increment,
`NAME` VARCHAR(1024) not null,
`VALUE` VARCHAR(1024) not null,
WIDGET_NEWS_FEED_FK BIGINT,
primary key (`ID`)
) ENGINE=InnoDB;
create table notification_config (
`ID` BIGINT not null auto_increment,
`FALLBACK` VARCHAR(1024),
primary key (`ID`)
) ENGINE=InnoDB;
create table security_code (
`ID` BIGINT not null auto_increment,
`CODE` VARCHAR(255) not null unique,
`ACTION` VARCHAR(1024) not null,
`CREATING_DATE` TIMESTAMP default 0 not null,
KENMEI_USER_FK BIGINT,
primary key (`ID`)
) ENGINE=InnoDB;
create table security_email_code (
`ID` BIGINT not null,
`NEW_EMAIL_ADDRESS` VARCHAR(1024) not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table security_forgotten_pw_code (
`ID` BIGINT not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table security_invite_blog (
`ID` BIGINT not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table security_invite_client (
`ID` BIGINT not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table security_user_auth_failed_status (
`ID` BIGINT not null auto_increment,
`LOCKED_TIMEOUT` TIMESTAMP default 0,
`FAILED_AUTH_COUNTER` INTEGER not null,
`CHANNEL_TYPE` VARCHAR(1024) not null,
KENMEI_USER_FK BIGINT,
primary key (`ID`)
) ENGINE=InnoDB;
create table security_user_code (
`ID` BIGINT not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table security_user_unlock_code (
`ID` BIGINT not null,
`CHANNEL` VARCHAR(1024) not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table snc_config (
`ID` BIGINT not null auto_increment,
`USERNAME` VARCHAR(1024) not null,
`PASSWORD` VARCHAR(1024) not null,
`PROPERTIES_STRING` VARCHAR(1024) not null,
`LAST_SYNCHRONIZATION` TIMESTAMP default 0,
`SOCIAL_NETWORK_TYPE` VARCHAR(1024) not null,
`REQUEST_INTERVAL` BIGINT not null,
`SYNCHRONIZATION_ENABLED` TINYINT not null,
`CONFIG_NAME` VARCHAR(1024) not null,
USER_PROFILE_FK BIGINT not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table snc_job_details (
`ID` BIGINT not null auto_increment,
`LAST_REQUEST` BIGINT,
`NEXT_REQUEST` BIGINT not null,
`MISFIRED_COUNTER` INTEGER not null,
`IS_DISABLED` TINYINT not null,
`LAST_MESSAGE` VARCHAR(1024),
SOCIAL_NETWORK_CONFIGURATIO_FK BIGINT not null unique,
primary key (`ID`)
) ENGINE=InnoDB;
create table user_authorities (
`ID` BIGINT not null auto_increment,
`ROLE` VARCHAR(1024) not null,
KENMEI_USER_FK BIGINT,
primary key (`ID`)
) ENGINE=InnoDB;
create table user_client (
`ID` BIGINT not null auto_increment,
`CLIENT_ID` VARCHAR(255) not null unique,
`PROXY_URL_PREFIX` VARCHAR(1024),
`SECURITY_KEY` VARCHAR(1024),
`NAME` VARCHAR(1024) not null,
`CLIENT_STATUS` VARCHAR(1024) not null,
`CREATION_VERSION` VARCHAR(1024),
`CREATION_TIME` TIMESTAMP default 0,
`CREATION_REVISION` BIGINT,
primary key (`ID`)
) ENGINE=InnoDB;
create table user_client_statistic (
`ID` BIGINT not null auto_increment,
`REPOSITORY_SIZE` BIGINT not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table user_contact (
`ID` BIGINT not null auto_increment,
`STREET` VARCHAR(1024),
`ZIP` VARCHAR(1024),
`CITY` VARCHAR(1024),
`PHONE_COUNTRY_CODE` VARCHAR(1024) not null,
`PHONE_AREA_CODE` VARCHAR(1024) not null,
`PHONE_PHONE_NUMBER` VARCHAR(1024) not null,
`FAX_COUNTRY_CODE` VARCHAR(1024) not null,
`FAX_AREA_CODE` VARCHAR(1024) not null,
`FAX_PHONE_NUMBER` VARCHAR(1024) not null,
COUNTRY_FK BIGINT,
primary key (`ID`)
) ENGINE=InnoDB;
create table user_entity (
`ID` BIGINT not null auto_increment,
GLOBAL_ID_FK BIGINT unique,
primary key (`ID`)
) ENGINE=InnoDB;
create table user_external_auth (
`ID` BIGINT not null auto_increment,
`EXTERNAL_USER_ID` VARCHAR(250) not null unique,
`SYSTEM_ID` VARCHAR(50) not null,
KENMEI_USER_FK BIGINT,
primary key (`ID`),
unique (`EXTERNAL_USER_ID`, `SYSTEM_ID`)
) ENGINE=InnoDB;
create table user_group (
`ID` BIGINT not null,
`ALIAS` VARCHAR(255) not null unique,
`NAME` VARCHAR(1024) not null,
`DESCRIPTION` TEXT,
primary key (`ID`)
) ENGINE=InnoDB;
create table user_group_external (
`ID` BIGINT not null,
`EXTERNAL_SYSTEM_ID` VARCHAR(1024) not null,
`EXTERNAL_ID` VARCHAR(1024) not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table user_group_member (
GROUP_MEMBERS_FK BIGINT not null,
GROUPS_FK BIGINT not null,
primary key (GROUP_MEMBERS_FK, GROUPS_FK)
) ENGINE=InnoDB;
create table user_image (
`ID` BIGINT not null auto_increment,
`IMAGE` LONGBLOB not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table user_of_group (
`ID` BIGINT not null auto_increment,
`MODIFICATION_TYPE` VARCHAR(1024),
GROUP_FK BIGINT not null,
USER_FK BIGINT not null,
primary key (`ID`)
) ENGINE=InnoDB;
create table user_profile (
`ID` BIGINT not null auto_increment,
`LAST_NAME` VARCHAR(1024),
`SALUTATION` VARCHAR(1024),
`POSITION` VARCHAR(1024),
`COMPANY` VARCHAR(1024),
`FIRST_NAME` VARCHAR(1024),
`LAST_MODIFICATION_DATE` TIMESTAMP default 0 not null,
`LAST_PHOTO_MODIFICATION_DATE` TIMESTAMP default 0,
`TIME_ZONE_ID` VARCHAR(1024),
SMALL_IMAGE_FK BIGINT unique,
CONTACT_FK BIGINT unique,
MEDIUM_IMAGE_FK BIGINT unique,
LARGE_IMAGE_FK BIGINT unique,
NOTIFICATION_CONFIG_FK BIGINT not null unique,
primary key (`ID`)
) ENGINE=InnoDB;
create table user_user (
`ID` BIGINT not null,
`PASSWORD` VARCHAR(<PASSWORD>),
`EMAIL` VARCHAR(255) not null unique,
`LANGUAGE_CODE` VARCHAR(1024) not null,
`LAST_LOGIN` TIMESTAMP default 0,
`STATUS` VARCHAR(1024) not null,
`ALIAS` VARCHAR(255) unique,
`TERMS_ACCEPTED` TINYINT not null,
`REMINDER_MAIL_SENT` TINYINT not null,
`STATUS_CHANGED` TIMESTAMP default 0 not null,
PROFILE_FK BIGINT not null unique,
primary key (`ID`)
) ENGINE=InnoDB;
alter table configuration
add index configuration_CLIENT_CONFIG_FC (CLIENT_CONFIG_FK),
add constraint configuration_CLIENT_CONFIG_FC
foreign key (CLIENT_CONFIG_FK)
references configuration_client (`ID`);
alter table configuration_client
add index configuration_client_DEFAULT_C (DEFAULT_BLOG_FK),
add constraint configuration_client_DEFAULT_C
foreign key (DEFAULT_BLOG_FK)
references core_blog (`ID`);
alter table configuration_confluence
add index configuration_confluenceIFKC (`ID`),
add constraint configuration_confluenceIFKC
foreign key (`ID`)
references configuration_external_system (`ID`);
alter table configuration_external_system
add index configuration_external_systemC (CONFIGURATION_FK),
add constraint configuration_external_systemC
foreign key (CONFIGURATION_FK)
references configuration (`ID`);
alter table configuration_ldap
add index configuration_ldapIFKC (`ID`),
add constraint configuration_ldapIFKC
foreign key (`ID`)
references configuration_external_system (`ID`);
alter table configuration_setting
add index configuration_setting_CONFIGUC (CONFIGURATION_FK),
add constraint configuration_setting_CONFIGUC
foreign key (CONFIGURATION_FK)
references configuration (`ID`);
alter table configuration_sharepoint
add index configuration_sharepointIFKC (`ID`),
add constraint configuration_sharepointIFKC
foreign key (`ID`)
references configuration_external_system (`ID`);
alter table core_attachment
add index core_attachment_NOTE_FKC (NOTE_FK),
add constraint core_attachment_NOTE_FKC
foreign key (NOTE_FK)
references core_note (`ID`);
alter table core_attachment
add index core_attachment_GLOBAL_ID_FKC (GLOBAL_ID_FK),
add constraint core_attachment_GLOBAL_ID_FKC
foreign key (GLOBAL_ID_FK)
references core_global_id (`ID`);
alter table core_blog
add index core_blog_GLOBAL_ID_FKC (GLOBAL_ID_FK),
add constraint core_blog_GLOBAL_ID_FKC
foreign key (GLOBAL_ID_FK)
references core_global_id (`ID`);
alter table core_blog2tag
add index core_tag_BLOGS_FKC (BLOGS_FK),
add constraint core_tag_BLOGS_FKC
foreign key (BLOGS_FK)
references core_blog (`ID`);
alter table core_blog2tag
add index core_blog_TAGS_FKC (TAGS_FK),
add constraint core_blog_TAGS_FKC
foreign key (TAGS_FK)
references core_tag (`ID`);
alter table core_blog_event
add index core_blog_event_CREATOR_FKC (CREATOR_FK),
add constraint core_blog_event_CREATOR_FKC
foreign key (CREATOR_FK)
references user_user (`ID`);
alter table core_blog_event
add index core_blog_event_BLOG_FKC (BLOG_FK),
add constraint core_blog_event_BLOG_FKC
foreign key (BLOG_FK)
references core_blog (`ID`);
alter table core_blog_member
add index core_blog_member_BLOG_FKC (BLOG_FK),
add constraint core_blog_member_BLOG_FKC
foreign key (BLOG_FK)
references core_blog (`ID`);
alter table core_blog_member
add index core_blog_member_KENMEI_ENTITC (KENMEI_ENTITY_FK),
add constraint core_blog_member_KENMEI_ENTITC
foreign key (KENMEI_ENTITY_FK)
references user_entity (`ID`);
alter table core_external_object
add index core_external_object_BLOG_FKC (BLOG_FK),
add constraint core_external_object_BLOG_FKC
foreign key (BLOG_FK)
references core_blog (`ID`);
alter table core_external_object_properties
add index core_external_object_propertiC (EXTERNAL_OBJECT_FK),
add constraint core_external_object_propertiC
foreign key (EXTERNAL_OBJECT_FK)
references core_external_object (`ID`);
alter table core_note
add index core_note_PARENT_FKC (PARENT_FK),
add constraint core_note_PARENT_FKC
foreign key (PARENT_FK)
references core_note (`ID`);
alter table core_note
add index core_note_CONTENT_FKC (CONTENT_FK),
add constraint core_note_CONTENT_FKC
foreign key (CONTENT_FK)
references core_content (`ID`);
alter table core_note
add index core_note_USER_FKC (USER_FK),
add constraint core_note_USER_FKC
foreign key (USER_FK)
references user_user (`ID`);
alter table core_note
add index core_note_ORIGIN_FKC (ORIGIN_FK),
add constraint core_note_ORIGIN_FKC
foreign key (ORIGIN_FK)
references core_note (`ID`);
alter table core_note
add index core_note_BLOG_FKC (BLOG_FK),
add constraint core_note_BLOG_FKC
foreign key (BLOG_FK)
references core_blog (`ID`);
alter table core_note
add index core_note_GLOBAL_ID_FKC (GLOBAL_ID_FK),
add constraint core_note_GLOBAL_ID_FKC
foreign key (GLOBAL_ID_FK)
references core_global_id (`ID`);
alter table core_notes2crossblogs
add index core_note_CROSSPOST_BLOGS_FKC (CROSSPOST_BLOGS_FK),
add constraint core_note_CROSSPOST_BLOGS_FKC
foreign key (CROSSPOST_BLOGS_FK)
references core_blog (`ID`);
alter table core_notes2crossblogs
add index core_blog_NOTES_FKC (NOTES_FK),
add constraint core_blog_NOTES_FKC
foreign key (NOTES_FK)
references core_note (`ID`);
alter table core_notes2tag
add index core_note_TAGS_FKC (TAGS_FK),
add constraint core_note_TAGS_FKC
foreign key (TAGS_FK)
references core_tag (`ID`);
alter table core_notes2tag
add index core_tag_NOTES_FKC (NOTES_FK),
add constraint core_tag_NOTES_FKC
foreign key (NOTES_FK)
references core_note (`ID`);
alter table core_notes2user_to_notify
add index core_note_USERS_TO_BE_NOTIFIEC (USERS_TO_BE_NOTIFIED_FK),
add constraint core_note_USERS_TO_BE_NOTIFIEC
foreign key (USERS_TO_BE_NOTIFIED_FK)
references user_user (`ID`);
alter table core_notes2user_to_notify
add index user_user_NOTES_FKC (NOTES_FK),
add constraint user_user_NOTES_FKC
foreign key (NOTES_FK)
references core_note (`ID`);
alter table core_role2blog_granting_group
add index core_role2blog_GRANTING_GROUPC (GRANTING_GROUPS_FK),
add constraint core_role2blog_GRANTING_GROUPC
foreign key (GRANTING_GROUPS_FK)
references user_group (`ID`);
alter table core_role2blog_granting_group
add index user_group_USER_TO_BLOG_ROLE_C (USER_TO_BLOG_ROLE_MAPPINGS_FK),
add constraint user_group_USER_TO_BLOG_ROLE_C
foreign key (USER_TO_BLOG_ROLE_MAPPINGS_FK)
references core_role2blog (`ID`);
alter table core_tag
add index CATEGORIZED_TAG_CATEGORY_FKC (CATEGORY_FK),
add constraint CATEGORIZED_TAG_CATEGORY_FKC
foreign key (CATEGORY_FK)
references core_tag_category (`ID`);
alter table core_tag
add index core_tag_GLOBAL_ID_FKC (GLOBAL_ID_FK),
add constraint core_tag_GLOBAL_ID_FKC
foreign key (GLOBAL_ID_FK)
references core_global_id (`ID`);
alter table core_tag2clearance_exclude
add index core_tag_TAG_CLEARANCES_FKC (TAG_CLEARANCES_FK),
add constraint core_tag_TAG_CLEARANCES_FKC
foreign key (TAG_CLEARANCES_FK)
references core_tag_clearance (`ID`);
alter table core_tag2clearance_exclude
add index core_tag_clearance_EXCLUDE_TAC (EXCLUDE_TAGS_FK),
add constraint core_tag_clearance_EXCLUDE_TAC
foreign key (EXCLUDE_TAGS_FK)
references core_tag (`ID`);
alter table core_tag2clearance_include
add index core_tag_clearance_INCLUDE_TAC (INCLUDE_TAGS_FK),
add constraint core_tag_clearance_INCLUDE_TAC
foreign key (INCLUDE_TAGS_FK)
references core_tag (`ID`);
alter table core_tag2clearance_include
add index core_tag_inc_TAG_CLEARANCES_FKC (TAG_CLEARANCES_FK),
add constraint core_tag_inc_TAG_CLEARANCES_FKC
foreign key (TAG_CLEARANCES_FK)
references core_tag_clearance (`ID`);
alter table core_tag_clearance
add index core_user_tag_clearance_OWNERC (OWNER_FK),
add constraint core_user_tag_clearance_OWNERC
foreign key (OWNER_FK)
references user_user (`ID`);
alter table core_users2favorite_notes
add index user_user_FAVORITE_NOTES_FKC (FAVORITE_NOTES_FK),
add constraint user_user_FAVORITE_NOTES_FKC
foreign key (FAVORITE_NOTES_FK)
references core_note (`ID`);
alter table core_users2favorite_notes
add index core_note_FAVORITE_USERS_FKC (FAVORITE_USERS_FK),
add constraint core_note_FAVORITE_USERS_FKC
foreign key (FAVORITE_USERS_FK)
references user_user (`ID`);
alter table crc_cache_config
add index crc_cache_config_CURRENT_CACHC (CURRENT_CACHE_CONNECTOR_CON_FK),
add constraint crc_cache_config_CURRENT_CACHC
foreign key (CURRENT_CACHE_CONNECTOR_CON_FK)
references crc_connector_config (`ID`);
alter table crc_filesystem_config
add index crc_filesystem_configIFKC (`ID`),
add constraint crc_filesystem_configIFKC
foreign key (`ID`)
references crc_connector_config (`ID`);
alter table crc_ramconn_config
add index crc_ramconn_configIFKC (`ID`),
add constraint crc_ramconn_configIFKC
foreign key (`ID`)
references crc_connector_config (`ID`);
alter table custom_messages
add index custom_messages_LANGUAGE_FKC (LANGUAGE_FK),
add constraint custom_messages_LANGUAGE_FKC
foreign key (LANGUAGE_FK)
references md_language (`ID`);
alter table iprange_filter_channel
add index iprange_channel_IP_RANGE_FILTC (IP_RANGE_FILTERS_FK),
add constraint iprange_channel_IP_RANGE_FILTC
foreign key (IP_RANGE_FILTERS_FK)
references iprange_filter (`ID`);
alter table iprange_filter_channel
add index iprange_filter_CHANNELS_FKC (CHANNELS_FK),
add constraint iprange_filter_CHANNELS_FKC
foreign key (CHANNELS_FK)
references iprange_channel (`TYPE`);
alter table iprange_range
add index ip_range_filter_C_ex (IP_RANGE_FILTER_EX_FK),
add constraint ip_range_filter_C_ex
foreign key (IP_RANGE_FILTER_EX_FK)
references iprange_filter (`ID`);
alter table iprange_range
add index ip_range_filter_C_in (IP_RANGE_FILTER_IN_FK),
add constraint ip_range_filter_C_in
foreign key (IP_RANGE_FILTER_IN_FK)
references iprange_filter (`ID`);
alter table mc_config
add index mc_config_NOTIFICATION_CONFIGC (NOTIFICATION_CONFIG_FK),
add constraint mc_config_NOTIFICATION_CONFIGC
foreign key (NOTIFICATION_CONFIG_FK)
references notification_config (`ID`);
alter table news_widget_feed
add index news_widget_feed_KENMEI_USER_C (KENMEI_USER_FK),
add constraint news_widget_feed_KENMEI_USER_C
foreign key (KENMEI_USER_FK)
references user_user (`ID`);
alter table news_widget_parameter
add index news_widget_parameter_WIDGET_C (WIDGET_NEWS_FEED_FK),
add constraint news_widget_parameter_WIDGET_C
foreign key (WIDGET_NEWS_FEED_FK)
references news_widget_feed (`ID`);
alter table security_code
add index security_code_KENMEI_USER_FKC (KENMEI_USER_FK),
add constraint security_code_KENMEI_USER_FKC
foreign key (KENMEI_USER_FK)
references user_user (`ID`);
alter table security_email_code
add index security_email_codeIFKC (`ID`),
add constraint security_email_codeIFKC
foreign key (`ID`)
references security_code (`ID`);
alter table security_forgotten_pw_code
add index security_forgotten_pw_codeIFKC (`ID`),
add constraint security_forgotten_pw_codeIFKC
foreign key (`ID`)
references security_code (`ID`);
alter table security_invite_blog
add index security_invite_blogIFKC (`ID`),
add constraint security_invite_blogIFKC
foreign key (`ID`)
references security_code (`ID`);
alter table security_invite_client
add index security_invite_clientIFKC (`ID`),
add constraint security_invite_clientIFKC
foreign key (`ID`)
references security_code (`ID`);
alter table security_user_auth_failed_status
add index security_user_auth_failed_staC (KENMEI_USER_FK),
add constraint security_user_auth_failed_staC
foreign key (KENMEI_USER_FK)
references user_user (`ID`);
alter table security_user_code
add index security_user_codeIFKC (`ID`),
add constraint security_user_codeIFKC
foreign key (`ID`)
references security_code (`ID`);
alter table security_user_unlock_code
add index security_user_unlock_codeIFKC (`ID`),
add constraint security_user_unlock_codeIFKC
foreign key (`ID`)
references security_code (`ID`);
alter table snc_config
add index snc_config_USER_PROFILE_FKC (USER_PROFILE_FK),
add constraint snc_config_USER_PROFILE_FKC
foreign key (USER_PROFILE_FK)
references user_profile (`ID`);
alter table snc_job_details
add index snc_job_details_SOCIAL_NETWORC (SOCIAL_NETWORK_CONFIGURATIO_FK),
add constraint snc_job_details_SOCIAL_NETWORC
foreign key (SOCIAL_NETWORK_CONFIGURATIO_FK)
references snc_config (`ID`);
alter table user_authorities
add index user_authorities_KENMEI_USER_C (KENMEI_USER_FK),
add constraint user_authorities_KENMEI_USER_C
foreign key (KENMEI_USER_FK)
references user_user (`ID`);
alter table user_contact
add index user_contact_COUNTRY_FKC (COUNTRY_FK),
add constraint user_contact_COUNTRY_FKC
foreign key (COUNTRY_FK)
references md_country (`ID`);
alter table user_entity
add index user_entity_GLOBAL_ID_FKC (GLOBAL_ID_FK),
add constraint user_entity_GLOBAL_ID_FKC
foreign key (GLOBAL_ID_FK)
references core_global_id (`ID`);
alter table user_external_auth
add index user_external_auth_KENMEI_USEC (KENMEI_USER_FK),
add constraint user_external_auth_KENMEI_USEC
foreign key (KENMEI_USER_FK)
references user_user (`ID`);
alter table user_group
add index user_groupIFKC (`ID`),
add constraint user_groupIFKC
foreign key (`ID`)
references user_entity (`ID`);
alter table user_group_external
add index user_group_externalIFKC (`ID`),
add constraint user_group_externalIFKC
foreign key (`ID`)
references user_group (`ID`);
alter table user_group_member
add index user_group_GROUP_MEMBERS_FKC (GROUP_MEMBERS_FK),
add constraint user_group_GROUP_MEMBERS_FKC
foreign key (GROUP_MEMBERS_FK)
references user_entity (`ID`);
alter table user_group_member
add index user_entity_GROUPS_FKC (GROUPS_FK),
add constraint user_entity_GROUPS_FKC
foreign key (GROUPS_FK)
references user_group (`ID`);
alter table user_of_group
add index user_of_group_GROUP_FKC (GROUP_FK),
add constraint user_of_group_GROUP_FKC
foreign key (GROUP_FK)
references user_group (`ID`);
alter table user_of_group
add index user_of_group_USER_FKC (USER_FK),
add constraint user_of_group_USER_FKC
foreign key (USER_FK)
references user_user (`ID`);
alter table user_profile
add index user_profile_SMALL_IMAGE_FKC (SMALL_IMAGE_FK),
add constraint user_profile_SMALL_IMAGE_FKC
foreign key (SMALL_IMAGE_FK)
references user_image (`ID`);
alter table user_profile
add index user_profile_CONTACT_FKC (CONTACT_FK),
add constraint user_profile_CONTACT_FKC
foreign key (CONTACT_FK)
references user_contact (`ID`);
alter table user_profile
add index user_profile_NOTIFICATION_CONC (NOTIFICATION_CONFIG_FK),
add constraint user_profile_NOTIFICATION_CONC
foreign key (NOTIFICATION_CONFIG_FK)
references notification_config (`ID`);
alter table user_profile
add index user_profile_MEDIUM_IMAGE_FKC (MEDIUM_IMAGE_FK),
add constraint user_profile_MEDIUM_IMAGE_FKC
foreign key (MEDIUM_IMAGE_FK)
references user_image (`ID`);
alter table user_profile
add index user_profile_LARGE_IMAGE_FKC (LARGE_IMAGE_FK),
add constraint user_profile_LARGE_IMAGE_FKC
foreign key (LARGE_IMAGE_FK)
references user_image (`ID`);
alter table user_user
add index user_userIFKC (`ID`),
add constraint user_userIFKC
foreign key (`ID`)
references user_entity (`ID`);
alter table user_user
add index user_user_PROFILE_FKC (PROFILE_FK),
add constraint user_user_PROFILE_FKC
foreign key (PROFILE_FK)
references user_profile (`ID`);
--
-- add changesets to synchronize changelog
--
INSERT INTO `DATABASECHANGELOG` (`ID`, `AUTHOR`, `FILENAME`, `DATEEXECUTED`, `MD5SUM`, `DESCRIPTION`, `COMMENTS`, `TAG`, `LIQUIBASE`) VALUES
('reset_checksum_001', 'unknown', 'de/communardo/kenmei/database/update/db.changelog.default.xml', NOW(), '6c50cd6ee695161d8f569de01f98956', 'Custom SQL', 'Reset Checksums', NULL, '1.9.2'),
('mt2859_2', 'unknown', 'de/communardo/kenmei/database/update/v1.0.3/db.changelog.v1.0.3.xml', NOW(), 'b2e0e51b2fdd768127d43d458e21d939', 'Add Unique Constraint', '', NULL, '1.9.2'),
('mt2846_global_id_v2_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.refactor.xml', NOW(), 'c0cbabe0cea6e8c89d81b7169f92e414', 'Insert Row', 'MT 2846: CR 119 - Refactoring Post Backend: Global Id', NULL, '1.9.2'),
('mt2846_global_id_checksum_v2', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.refactor.xml', NOW(), '304f2354db312562949c37255a17bf', 'Custom SQL', 'MT 2846: CR 119 - Refactoring Post Backend: Global Id, Configuration, Checksum', NULL, '1.9.2'),
('mt2846_user_external_auth', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.refactor.xml', NOW(), '6c8c9284a09b847b41d87b11499cf4b', 'Rename Table, Rename Column, Drop Foreign Key Constraint, Add Foreign Key Constraint', 'MT 2846: CR 119 - Refactoring Post Backend - Rename external user auth', NULL, '1.9.2'),
('mt2846_remove_module_status', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.refactor.xml', NOW(), 'c616cb81c99fea1e6427599e6cec5187', 'Drop Column (x4)', 'MT 2846: CR 119 - Refactoring Post Backend - Remove module status', NULL, '1.9.2'),
('mt2846_mysql_1', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), '30d723e996f2fe7b25fddc235b2dcfcb', 'Drop Table (x6)', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_2', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), 'a66cd5a4ddf1ad5b2ee81c0574673bd', 'Drop Foreign Key Constraint (x9)', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_3', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), '86c7a598426a561fc898d3bd5930a3e6', 'Create Table', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_4', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), '59f5a1279fabc9ed2a3c7f97edad36b8', 'Create Table', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_4a', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), '774a36dba4aff22ffbdf3bcf16ed6f', 'SQL From File', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_5', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), '937b3863b7ea9f194231bd2dafff6832', 'Drop Column (x7)', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_6', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), 'a669428a7b42a371372f4e08556acb', 'SQL From File', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_7', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), 'f431f661f875edb7a4c7122b691768', 'Drop Column, Rename Table, Add Not-Null Constraint', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_8', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), '44a6dfe46a8feb68eaece96d1ffd7ddf', 'SQL From File', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_9', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), 'a8626d4dafc03b63fc2a64ba9cacfc9c', 'Rename Table', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_10', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), 'cf28a7b028c31c85bc9ddeec98c856fc', 'Add Column (x7), Rename Column', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_11', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), 'e3397a39ece50c8ba1ae089f831ac4b', 'SQL From File', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_12', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), '8f569acbd4f4184a409f268fc9cb46be', 'Add Not-Null Constraint (x3), Drop Table (x2)', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_13', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), '172934a379fa3cf0a5cf9ee1116b1', 'Rename Table', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_14', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), '53b64a5a1bb0c3235c619ce40ac1e5', 'Rename Column, Add Column (x3), Drop Table, Drop Column', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_15', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), 'a15f2a38d192f1ea28297d763382923', 'Custom SQL', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_16', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), 'f4f35c79c8f9cbdfa6fe278a2d1b0e', 'Rename Table', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_17', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), '2c781dee109292b6fd35f10b820c9e0', 'Rename Column (x5), Drop Column (x4)', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_18', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), 'd41d8cd98f0b24e980998ecf8427e', 'Empty', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_19', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), '9d3c6d7f42f3efccf7973fc8135bde5', 'Add Foreign Key Constraint (x3), Add Unique Constraint (x3), Add Foreign Key Constraint (x11), Add Unique Constraint, Drop Foreign Key Constraint, Add Foreign Key Constraint (x3), Add Unique Constraint, Add Foreign Key Constraint', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_mysql_20', 'unknown', 'de/communardo/kenmei/database/update/v1.1/mysql/db.changelog.v1.1.refactor.mysql.xml', NOW(), 'c59f2b28cf96874373cfeacffc881b4', 'SQL From File', 'MT 2846: CR 119 - Refactoring Post Backend - MySql', NULL, '1.9.2'),
('mt2846_favorite_users', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.refactor.xml', NOW(), '9f4a84f23eb8c55a4730335d35c3ab7f', 'Rename Table', 'MT 2846: CR 119 - Refactoring Post Backend - Favorite users', NULL, '1.9.2'),
('20091007_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.0.3/db.changelog.v1.0.3.xml', NOW(), '89652831b7f99da19387e93f72471b', 'Custom SQL', '', NULL, '1.9.2'),
('mt2899_mysql_v3', 'unknown', 'de/communardo/kenmei/database/update/v1.0.3/db.changelog.v1.0.3.xml', NOW(), '2386128fd9dcb86b8fa469f8ff2ec81', 'Custom SQL', 'MT 2899: Image caching problems', NULL, '1.9.2'),
('mt2940_1', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.xml', NOW(), 'b962fa5b9ddcecbc21d62b4999d8764', 'Update Data, Create Table, Add Foreign Key Constraint (x2)', 'CR 131: autosave refactoring', NULL, '1.9.2'),
('mt2945_1', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.xml', NOW(), '22b680833818a22cf3f5e695a7b185d', 'Add Column, Add Foreign Key Constraint', 'CR 109: Post without selecting a blog', NULL, '1.9.2'),
('mt2957_1', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.xml', NOW(), '2a75e566753c4ffb3f42c5fb9896cd', 'Add Column (x2)', 'CR 122 - Threaded answers', NULL, '1.9.2'),
('mt2957_2_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.xml', NOW(), '39dd942ccd10338659ba1bfdb94f9183', 'Custom SQL', 'CR 122 - Threaded answers', NULL, '1.9.2'),
('mt2976_1', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.xml', NOW(), 'dcd4c199fd6bf5cd3ca66a34a84afa7', 'Add Column (x3)', 'Content Type', NULL, '1.9.2'),
('mt2976_2', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.xml', NOW(), '6b7314e763c81f1f96c67deb8d806d69', 'Custom SQL', 'Attachment Status', NULL, '1.9.2'),
('rename_default_blog_alias_1_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.xml', NOW(), 'aab6b129c4acfe2705da4d8d127dd7b', 'Custom SQL', 'Renames the blog alias of the default blog, if an alias ''public'' not exists.', NULL, '1.9.2'),
('mt3022_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.xml', NOW(), 'a4c8beb7d79b2eb7c18c2d883f2eb3c', 'Custom SQL', 'Increase Repository Limit', NULL, '1.9.2'),
('rename_default_blog_alias_2_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.xml', NOW(), 'b38717f58c847a3c1896dd7425ef50', 'Custom SQL', 'Renames the blog alias of the default blog, if it is still the message key.', NULL, '1.9.2'),
('mt3096_1', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.xml', NOW(), 'abcc6ad563565e4050381273ef3fcc5d', 'Custom SQL', 'deletes unconnected large user images', NULL, '1.9.2'),
('mt3178_1_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.xml', NOW(), 'dd97e4a211a78df2d24fbda9552922b', 'Insert Row', 'Automated Client Approval', NULL, '1.9.2'),
('mt3187_1', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.xml', NOW(), '77fa5d42e90366abddbbb7dbb94e61d', 'Drop Foreign Key Constraint', 'Adjust the forein key constraint for kenmei_users_fk.', NULL, '1.9.2'),
('mt3187_2', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.xml', NOW(), '1b315757661762a2659fde38c03259', 'Add Foreign Key Constraint', 'Adjust the forein key constraint for kenmei_users_fk.', NULL, '1.9.2'),
('mt3187_3', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.xml', NOW(), '77fa5d42e90366abddbbb7dbb94e61d', 'Drop Foreign Key Constraint', 'Adjust the forein key constraint for kenmei_users_fk.', NULL, '1.9.2'),
('mt3187_4_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.xml', NOW(), '925ad9965ef8812edba0b6ba81d9629', 'Custom SQL, Add Foreign Key Constraint', 'Adjust the forein key constraint for kenmei_users_fk.', NULL, '1.9.2'),
('mt3196_1', 'unknown', 'de/communardo/kenmei/database/update/v1.1.2/db.changelog.v1.1.2.xml', NOW(), '3f4f52f46b355cec745a24706cca46d4', 'Add Column', 'CR 100 - Support Time Zones: add new column to user_profile', NULL, '1.9.2'),
('mt3196_2', 'unknown', 'de/communardo/kenmei/database/update/v1.1.2/db.changelog.v1.1.2.xml', NOW(), 'dca47279adc3bbd1ad7e1d7174e10b1', 'Add Column (x2)', 'CR 100 - Support Time Zones: add new column to user_client_creation, configuration_client', NULL, '1.9.2'),
('mt3208', 'unknown', 'de/communardo/kenmei/database/update/v1.1.2/db.changelog.v1.1.2.xml', NOW(), 'a5e3666944ac3f968080ff852bd777d3', 'Add Column', 'CR 68 Read-More functionality', NULL, '1.9.2'),
('mt3277_1_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '2ea8e41788851b5f4a58846e05bcc82', 'Create Table, Custom SQL, Drop Column, Add Foreign Key Constraint (x2)', 'CR 96 - support for groups: add user_entity and copy users', NULL, '1.9.2'),
('mt3277_2_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '88fa38c4a5f8ae66e1cbae3414dfccf', 'Drop Table (x2)', 'CR 96 - support for groups: remove obsolete security codes', NULL, '1.9.2'),
('mt3277_3_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'f595d3d3bb28aa16d7567246a3a4585', 'Add Column, Custom SQL', 'CR 96 - support for groups: copy all_can_x rights from group to blog', NULL, '1.9.2'),
('mt3277_4_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '25c695869c8f851fd412ca90db5b2677', 'Add Column, Custom SQL', 'CR 96 - support for groups: add blogs to group member', NULL, '1.9.2'),
('mt3277_5_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'ce8baa4707c58ddfba1523c015deb0', 'Drop Foreign Key Constraint (x2), Drop Column (x2), Custom SQL, Rename Table, Rename Column (x2), Add Column, Add Foreign Key Constraint (x2), Add Not-Null Constraint (x3)', 'CR 96 - support for groups: group member to blog member', NULL, '1.9.2'),
('mt3277_6_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'da4346ff7575e6ebf6b3cd1266164', 'Drop Foreign Key Constraint, Drop Column', 'CR 96 - support for groups: cleanup core_blog', NULL, '1.9.2'),
('mt3277_7_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '3e47ee3a105c684a582e423518decca', 'Drop Column (x3), Delete Data, Add Column (x3), Add Foreign Key Constraint', 'CR 96 - support for groups: fix user_group', NULL, '1.9.2'),
('mt3277_8_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '9a394f311e01bce782f7d562045c46b', 'Create Table', 'CR 96 - support for groups: add helper table for fast blog role lookup', NULL, '1.9.2'),
('mt3277_9_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'ae6438d32dde3f4c6124ca8330b5ec6', 'Custom SQL', 'CR 96 - support for groups: fill core_role2blog', NULL, '1.9.2'),
('mt3277_10_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'fa346348fef8d167f2390c9b247f053', 'Create Table, Add Primary Key, Add Foreign Key Constraint (x2)', 'CR 96 - support for groups: allow several granting groups', NULL, '1.9.2'),
('mt3277_11_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'c83fd6a7d42279a72d55ededfcfa4d86', 'Create Table, Add Primary Key, Add Foreign Key Constraint (x2)', 'CR 96 - support for groups: connect entity with group', NULL, '1.9.2'),
('mt3277_13_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '4691cf11e2e377d7897b8abdecc6d88d', 'Add Not-Null Constraint (x2)', 'CR 96 - support for groups: not null constraints for all_can_x rights', NULL, '1.9.2'),
('mt3281_1_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '3ebca4821f7296e11d97c5913fe8707c', 'Insert Row', 'CR 134 - Anonymous Access, Anonymous User', NULL, '1.9.2'),
('mt3281_2_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'f4972baac8a2f4504d77fd85c7d15e9', 'Add Column, Add Not-Null Constraint', 'CR 134 - Anonymous Access, Anonymous User', NULL, '1.9.2'),
('cr135', 'amo', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'a02a9368d39aadb2b9affeff80229c', 'Create Table, Add Foreign Key Constraint', 'CR 135 - User group synchronization', NULL, '1.9.2'),
('mt3283_external_configuration', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'c2c4eb85364225670b85647601134e0', 'Rename Table (x3), Rename Column, Add Column, Drop Foreign Key Constraint, Add Foreign Key Constraint', 'Refactor External Authentication', NULL, '1.9.2'),
('mt3283_confluence_configuration', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '5029a38aca9b7c4c25a4f41f619caa1c', 'Add Column (x2)', '', NULL, '1.9.2'),
('mt3283_external_objects', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '75db72d38b92ade15a93f1b854b9048', 'Create Table, Add Unique Constraint, Create Table, Add Foreign Key Constraint (x2), Add Column', '', NULL, '1.9.2'),
('mt3283_2_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '22711a3246654a434873c0e1fbf78119', 'Set Column as Auto-Increment, Add Not-Null Constraint', 'Refactor External Authentication', NULL, '1.9.2'),
('mt3283_external_objects_2', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'ff7ed34175992ead7a175351c0d4e9', 'Add Column, Add Not-Null Constraint', 'Add class to blog_member', NULL, '1.9.2'),
('mt3292_confluence_permission_url', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '21a7986f567bd1c385abbdfead1e8c3', 'Add Column', 'CR 135 - Support Synchronization of blog rights with external systems', NULL, '1.9.2'),
('cr135_1', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '318b839a3fff783a8f4a4a3e7f5866', 'Add Column', 'Add serviceUrl to confluence configuration', NULL, '1.9.2'),
('mt3283_external_objects_3', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'd3cc6233f8abccd7d6c2eb5017cf77', 'Add Column', '', NULL, '1.9.2'),
('mt3277_fix_null_constraint', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '97f2d0c8945bae1c69f8f827c57e73', 'Drop Not-Null Constraint', 'Drop wrong "not null" constraint from user entities.', NULL, '1.9.2'),
('mt3178_2_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1/db.changelog.v1.1.xml', NOW(), 'd1808dcb3e616cfff590fbbdf8494f', 'Insert Row', 'Automated Client Approval', NULL, '1.9.2'),
('set_configuration', 'unknown', 'de/communardo/kenmei/database/update/db.changelog.final.xml', NOW(), '6148c09f2e75f3239da193221c5cedca', 'Custom SQL', 'Assign the configuration FK', NULL, '1.9.2'),
('mt3283_external_objects_fix_key_unique_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'c2294436992eb88562f385fe26135b0', 'Drop Primary Key, Add Column', 'CR 135 - Support Synchronization of blog rights with external systems', NULL, '1.9.2'),
('mt3277_14', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'e694eb5228924a36a25357646af454e4', 'Add Column, Custom SQL, Add Not-Null Constraint', 'CR 96 - support for groups: grantedByGroup flag for mapping table', NULL, '1.9.2'),
('mt3350_configuration_column_ldap', 'unknown', 'de/communardo/kenmei/database/update/v1.1.2/db.changelog.v1.1.2.xml', NOW(), 'dd10f32f1dfab6778b0c3eb60acd4ba', 'Drop Column', 'MT 3350', NULL, '1.9.2'),
('phone_and_fax_country_code_fix_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '89e69368ec3f98f683218ccbb47340', 'Custom SQL', '', NULL, '1.9.2'),
('mt_3272_1_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'f421adb0107c9087be3d4be78a9086f3', 'Custom SQL', 'MT 3272: UserProfile saves space instead of NULL if no time zone is selected', NULL, '1.9.2'),
('phone_country_code_fix__client_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '84e1be9cc8d1aa2f974526d73f3cf9e7', 'Custom SQL', '', NULL, '1.9.2'),
('cr69_user_groups_v2', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '41e53effcad9d4fe485b75dab0922bf1', 'Rename Column', '', NULL, '1.9.2'),
('mt_3314_refactor_confluence_page', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '86b2b96eee76c0d6bdaad4e1c24b5b25', 'Add Column', '', NULL, '1.9.2'),
('mt3283_external_objects_fix_auto_increment_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'c7f24c22f84e8eff695ba917c8fd6d7', 'Custom SQL', 'CR 135 - Support Synchronization of blog rights with external systems', NULL, '1.9.2'),
('mt3329_1_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '836a30af94fb53cfe359ea11fe4f62fe', 'Create Table, Custom SQL, Add Foreign Key Constraint (x2)', 'CR 96 - support for hierarchical groups: add user_of_group and copy users', NULL, '1.9.2'),
('mt3350_configuration_column_source', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '12af7efa26d7a9eefaedfcd1ad9e2d24', 'Drop Column', 'MT 3350', NULL, '1.9.2'),
('confluence_set_basepath_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '8dab40b53251883889955704653be51', 'Custom SQL', '', NULL, '1.9.2'),
('remove_uk_country_code', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'a8a46d136dea83ec4bdfffd11c9b065', 'Custom SQL', '', NULL, '1.9.2'),
('cr_179_add_is_Html_column_v2', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '51c815f15bbb47cb1990c3f556b2fe', 'Add Column, Add Not-Null Constraint', '', NULL, '1.9.2'),
('cr_179_add_messages_table_v2', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '51bf6b30763f19d84b1ba2aeac1fd14', 'Create Table, Add Foreign Key Constraint, Add Unique Constraint', '', NULL, '1.9.2'),
('cr_179_add_messages_table_fix_key_column', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'db6273f493f2c16fa8c63f1a43ea57', 'Modify Column', '', NULL, '1.9.2'),
('cr_179_insert_default_values_for_imprint_terms_of_use_mysql', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'c7e584ebae6171b861bd5a37f4be42', 'Custom SQL', '', NULL, '1.9.2'),
('jt1528_convert_core_note_to_innoDB', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '5c59d4c1140af9231be2cdf42c265d', 'Custom SQL', 'Change engine of core_note to innoDB', NULL, '1.9.2'),
('KENMEI-1566-Remove_MySQL_Timestamp_Trigger', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), 'a4fb25b5e12f2ab2519c961d47707617', 'Custom SQL', '', NULL, '1.9.2'),
('KENMEI-1533_Erzeugung_Global_ID_fehlerhaft-MySQL', 'unknown', 'de/communardo/kenmei/database/update/v1.1.3/db.changelog.v1.1.3.xml', NOW(), '5a199146dfd883297b1bfdb6ef6f517', 'SQL From File', '', NULL, '1.9.2'); |
create table api_config
(
id int auto_increment
primary key,
name varchar(20) not null comment '名称',
request_path varchar(50) not null comment '请求路径',
request_method varchar(6) not null comment '请求方法',
sql_statement varchar(5000) not null comment 'SQL语句',
group_id int not null comment '分组ID',
data_source_config_id int not null comment '数据源配置ID',
is_pageable int not null comment '是否分页查询',
is_listable int not null comment '是否数组结果',
is_enable int not null comment '是否启用',
constraint unique_path_method
unique (request_path, request_method)
)
comment 'API配置';
create table api_group
(
id int auto_increment
primary key,
name varchar(20) not null comment '名称'
)
comment 'API分组';
create table api_param_config
(
id int auto_increment
primary key,
name varchar(20) not null comment '名称',
`key` varchar(20) not null comment '键',
type varchar(20) not null comment '类型',
is_listable int not null comment '是否数组',
is_required int not null comment '是否必需',
api_config_id int not null comment 'API配置ID',
list_order int not null comment '关联顺序'
)
comment 'API参数配置';
create table data_source_config
(
id int auto_increment
primary key,
type varchar(20) not null comment '类型',
name varchar(20) not null comment '名称',
jdbc_url varchar(200) not null comment 'Url',
username varchar(20) not null comment '用户名',
password varchar(20) not null comment '密码'
)
comment '数据源配置'; |
<reponame>YangHao666666/hawq<filename>contrib/hawq-hadoop/hawq-mapreduce-tool/test-data/test_parquet_types_bit/test_parquet_types_bit.sql
DROP TABLE IF EXISTS test_parquet_types_bit;
CREATE TABLE test_parquet_types_bit (c0 bit) with (appendonly=true, orientation=parquet, compresstype=none, rowgroupsize=8388608, pagesize=1048576, compresslevel=0);
INSERT INTO test_parquet_types_bit values ('1'),
('0'),
(null); |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 03, 2022 at 01:17 PM
-- Server version: 10.4.22-MariaDB
-- PHP Version: 7.4.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `wallet`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin_messages`
--
CREATE TABLE `admin_messages` (
`rowid` int(11) NOT NULL,
`message_title` varchar(200) NOT NULL,
`user_email` varchar(200) DEFAULT NULL,
`user_mobile` varchar(20) DEFAULT NULL,
`message_text` text DEFAULT NULL,
`message_time` datetime DEFAULT current_timestamp(),
`message_status` tinyint(4) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `admin_notifications`
--
CREATE TABLE `admin_notifications` (
`rowid` int(11) NOT NULL,
`title` varchar(200) NOT NULL,
`descriptions` text NOT NULL,
`created_at` datetime DEFAULT NULL,
`status` tinyint(4) DEFAULT 1,
`user_id` int(11) DEFAULT NULL,
`sale_id` int(11) DEFAULT NULL,
`nft_id` int(11) DEFAULT NULL,
`n_type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1-Create Sale, 2-Sale Sucess, 3-Send Money, 4-Money recieve, 6, mesage, 7, Reports'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `admin_notifications`
--
INSERT INTO `admin_notifications` (`rowid`, `title`, `descriptions`, `created_at`, `status`, `user_id`, `sale_id`, `nft_id`, `n_type`) VALUES
(1, 'User2 Created New Nft (New NFT Test 2)', 'User2 Created New Nft (New NFT Test 2) with <b>2</b> ETH and Having <b>6</b> Units, Please Approve it', '2022-02-24 15:49:41', 1, 3, NULL, 9, 1),
(2, 'Admin Created New Nft (Its new Test)', 'Admin Created New Nft (Its new Test) with <b>0.4</b> ETH and Having <b>4</b> Units, Please Approve it', '2022-03-22 16:30:47', 1, 1, NULL, 10, 1);
-- --------------------------------------------------------
--
-- Table structure for table `admin_settings`
--
CREATE TABLE `admin_settings` (
`rowid` int(11) NOT NULL,
`metamask_key` varchar(500) NOT NULL,
`update_at` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `admin_settings`
--
INSERT INTO `admin_settings` (`rowid`, `metamask_key`, `update_at`) VALUES
(1, '0xef2a8ce9079c23b8fe7d839c8b814898383ce07e', '2022-02-14 15:41:21');
-- --------------------------------------------------------
--
-- Table structure for table `all_categories`
--
CREATE TABLE `all_categories` (
`rowid` int(11) NOT NULL,
`cate_name` varchar(30) NOT NULL,
`category_descriptions` text DEFAULT NULL,
`cate_image` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `all_categories`
--
INSERT INTO `all_categories` (`rowid`, `cate_name`, `category_descriptions`, `cate_image`) VALUES
(6, 'Body Arts', 'Body Arts', 'nischal-masand-rdGF8LPkvoY-unsplash.jpg'),
(7, 'Hand Arts Super', 'Hand Arts Super', 'simon-lee-2FWcYzN7X_c-unsplash_(1).jpg'),
(8, 'Hands Art Lines', 'Hands Art Lines', 'simon-lee-ldg40aCeOXo-unsplash.jpg');
-- --------------------------------------------------------
--
-- Table structure for table `all_foloowers`
--
CREATE TABLE `all_foloowers` (
`rowid` int(11) NOT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
`folower_id` int(11) NOT NULL,
`folowwing_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `all_foloowers`
--
INSERT INTO `all_foloowers` (`rowid`, `created_at`, `folower_id`, `folowwing_id`) VALUES
(13, '2022-03-01 15:17:47', 3, 2);
-- --------------------------------------------------------
--
-- Table structure for table `all_nfts_list`
--
CREATE TABLE `all_nfts_list` (
`rowid` int(11) NOT NULL,
`type_id` int(11) NOT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
`created_by` int(11) DEFAULT NULL,
`nft_user` int(11) DEFAULT NULL,
`approve_by` int(11) DEFAULT NULL,
`approve_at` datetime DEFAULT NULL,
`nft_token` varchar(260) DEFAULT NULL,
`mining_token` varchar(260) DEFAULT NULL,
`nft_status` tinyint(4) NOT NULL DEFAULT 0,
`nft_price` double NOT NULL DEFAULT 0,
`price_currency` int(11) DEFAULT NULL,
`sale_status` tinyint(4) NOT NULL DEFAULT 0,
`sale_type` tinyint(4) NOT NULL DEFAULT 0,
`total_rattings` int(11) NOT NULL DEFAULT 0,
`nft_name` varchar(150) NOT NULL,
`nft_descriptions` text NOT NULL,
`nft_category` int(11) DEFAULT NULL,
`nft_file` varchar(100) DEFAULT NULL,
`nft_unit` int(11) NOT NULL DEFAULT 1,
`purchase_id` int(11) DEFAULT NULL,
`on_sale` int(11) NOT NULL DEFAULT 0,
`already_sold` int(11) NOT NULL DEFAULT 0,
`total_royality` float NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `all_nfts_list`
--
INSERT INTO `all_nfts_list` (`rowid`, `type_id`, `created_at`, `created_by`, `nft_user`, `approve_by`, `approve_at`, `nft_token`, `mining_token`, `nft_status`, `nft_price`, `price_currency`, `sale_status`, `sale_type`, `total_rattings`, `nft_name`, `nft_descriptions`, `nft_category`, `nft_file`, `nft_unit`, `purchase_id`, `on_sale`, `already_sold`, `total_royality`) VALUES
(8, 1, '2022-02-24 12:52:13', 2, 2, NULL, NULL, '670b14728ad9902aecba32e22fa4f6bd16217716d4d9bc8.04624146', NULL, 1, 2, 1, 0, 0, 0, 'Test 1 NFT Sale', 'Its test 1 for user1 , with 5 items', 7, 'Employee_QR_2_(1).png', 5, NULL, 5, 0, 0),
(9, 1, '2022-02-24 15:49:41', 3, 3, NULL, NULL, '670b14728ad9902aecba32e22fa4f6bd162179b053fdf21.72116682', NULL, 1, 2, 1, 0, 0, 0, 'New NFT Test 2', 'New NFT Test 2 User 2 Testibf CCOUNT', 7, 'simon-lee-hbFKxsIqclc-unsplash.jpg', 6, NULL, 6, 0, 0),
(10, 1, '2022-03-22 16:30:47', 1, 1, NULL, NULL, '670b14728ad9902aecba32e22fa4f6bd16239eba7eed9b8.70081814', NULL, 1, 0.4, 1, 0, 0, 0, 'Its new Test', 'LOnd', 7, 'Employee_QR.png', 4, NULL, 4, 0, 8);
-- --------------------------------------------------------
--
-- Table structure for table `nft_reports`
--
CREATE TABLE `nft_reports` (
`rowid` int(11) NOT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
`sale_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`nft_id` int(11) DEFAULT NULL,
`reprt_type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1; defult Piblic,',
`descriptions` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `nft_sales`
--
CREATE TABLE `nft_sales` (
`rowid` int(11) NOT NULL,
`nft_id` int(11) NOT NULL,
`owner_id` int(11) NOT NULL,
`buyer_id` int(11) DEFAULT NULL,
`sale_ststus` tinyint(4) NOT NULL DEFAULT 0,
`sale_price` double NOT NULL DEFAULT 0,
`sale_tax` double NOT NULL DEFAULT 0,
`paid_price` double NOT NULL DEFAULT 0,
`price_transfer_status` tinyint(4) NOT NULL DEFAULT 0,
`created_at` datetime DEFAULT NULL,
`sale_type` tinyint(4) NOT NULL DEFAULT 0,
`expire_at` datetime DEFAULT NULL,
`sale_at` datetime DEFAULT NULL,
`complete_at` datetime DEFAULT NULL,
`bidding_sale` tinyint(4) NOT NULL DEFAULT 0,
`total_star` int(11) NOT NULL DEFAULT 0,
`total_units` int(11) NOT NULL DEFAULT 1,
`paid_tax` double NOT NULL DEFAULT 0,
`paid_net` double NOT NULL DEFAULT 0,
`transaction_id1` varchar(500) DEFAULT NULL,
`transaction_id2` varchar(500) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `nft_sales`
--
INSERT INTO `nft_sales` (`rowid`, `nft_id`, `owner_id`, `buyer_id`, `sale_ststus`, `sale_price`, `sale_tax`, `paid_price`, `price_transfer_status`, `created_at`, `sale_type`, `expire_at`, `sale_at`, `complete_at`, `bidding_sale`, `total_star`, `total_units`, `paid_tax`, `paid_net`, `transaction_id1`, `transaction_id2`) VALUES
(6, 8, 2, NULL, 0, 2.000000001, 0, 0, 0, '2022-02-24 15:33:24', 0, '2022-02-28 07:14:00', NULL, NULL, 1, 0, 2, 0, 0, NULL, NULL),
(7, 9, 3, 1, 1, 2.000000001, 0, 2.000000001, 1, '2022-02-24 15:50:42', 0, '2022-03-12 19:50:00', '2022-03-03 09:03:00', NULL, 2, 0, 3, 0.090000000045, 6.090000003045, 'ffggg', NULL),
(9, 9, 3, NULL, 0, 0.500000001, 0, 0, 0, '2022-02-24 17:31:47', 0, '2022-02-26 21:31:00', NULL, NULL, 2, 0, 1, 0, 0, NULL, NULL),
(10, 8, 2, NULL, 0, 2.000000001, 0, 0, 0, '2022-03-01 11:20:30', 0, '2022-03-26 15:20:00', NULL, NULL, 1, 0, 2, 0, 0, NULL, NULL),
(11, 10, 1, NULL, 0, 0.400000001, 0, 0, 0, '2022-03-23 16:37:28', 0, '2022-03-19 20:37:00', NULL, NULL, 2, 0, 4, 0, 0, NULL, NULL),
(12, 9, 3, NULL, 0, 2.000000001, 0, 0, 0, '2022-03-23 16:47:30', 0, '2022-03-27 20:47:00', NULL, NULL, 2, 0, 2, 0, 0, NULL, NULL),
(13, 8, 2, NULL, 0, 2.000000001, 0, 0, 0, '2022-03-23 16:49:57', 0, '2022-04-02 20:49:00', NULL, NULL, 2, 0, 1, 0, 0, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `nft_sales_bids`
--
CREATE TABLE `nft_sales_bids` (
`rowid` int(11) NOT NULL,
`sale_id` int(11) NOT NULL,
`bid_amount` double NOT NULL DEFAULT 0,
`bid_tax` double NOT NULL DEFAULT 0,
`total_amount` double NOT NULL DEFAULT 0,
`user_id` int(11) NOT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
`bid_status` tinyint(4) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `nft_sales_bids`
--
INSERT INTO `nft_sales_bids` (`rowid`, `sale_id`, `bid_amount`, `bid_tax`, `total_amount`, `user_id`, `created_at`, `bid_status`) VALUES
(7, 0, 1, 0.2, 1.2, 1, '2022-03-01 15:21:05', 1),
(8, 0, 0.000003, 0.0000006, 0.0000036, 1, '2022-03-23 20:32:55', 1);
-- --------------------------------------------------------
--
-- Table structure for table `nft_types`
--
CREATE TABLE `nft_types` (
`rowid` int(11) NOT NULL,
`type_name` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `sale_comments`
--
CREATE TABLE `sale_comments` (
`rowid` int(11) NOT NULL,
`sale_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`comment_time` datetime DEFAULT NULL,
`comment_text` text NOT NULL,
`comment_rattings` int(11) NOT NULL DEFAULT 0,
`toal_ratting_number` int(11) NOT NULL DEFAULT 0,
`comment_status` tinyint(4) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `sale_rattings`
--
CREATE TABLE `sale_rattings` (
`rowid` int(11) NOT NULL,
`sale_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
`update_at` datetime DEFAULT NULL,
`ratting_type` tinyint(4) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `sale_rattings`
--
INSERT INTO `sale_rattings` (`rowid`, `sale_id`, `user_id`, `created_at`, `update_at`, `ratting_type`) VALUES
(5, 6, 2, '2022-02-24 19:58:42', NULL, 0);
-- --------------------------------------------------------
--
-- Table structure for table `sal_purchase_record`
--
CREATE TABLE `sal_purchase_record` (
`rowid` int(11) NOT NULL,
`sale_id` int(11) NOT NULL,
`buyer_user` int(11) NOT NULL,
`seller_id` int(11) NOT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
`sub_total` double NOT NULL DEFAULT 0,
`tax_amount` double NOT NULL DEFAULT 0,
`total_amount` double NOT NULL DEFAULT 0,
`buyer_pay_status` tinyint(4) NOT NULL DEFAULT 0,
`admoin_pay_status` tinyint(4) NOT NULL DEFAULT 0,
`seller_pay_status` tinyint(4) NOT NULL DEFAULT 0,
`nft_file` varchar(500) DEFAULT NULL,
`sale_status` tinyint(4) NOT NULL DEFAULT 0,
`buyer_inint_payment` datetime DEFAULT NULL,
`buyer_admin_confirm` datetime DEFAULT NULL,
`seller_init_payment` datetime DEFAULT NULL,
`seller_confirm` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`rowid` int(11) NOT NULL,
`user_email` varchar(200) NOT NULL,
`user_name` varchar(200) NOT NULL,
`user_password` varchar(256) NOT NULL,
`meta_mask_key` varchar(300) DEFAULT NULL,
`user_status` tinyint(4) NOT NULL DEFAULT 1,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
`forget_password` varchar(200) DEFAULT NULL,
`failed_login` int(11) DEFAULT 0,
`last_failed` datetime DEFAULT NULL,
`user_type` tinyint(4) NOT NULL DEFAULT 1,
`user_balance` float NOT NULL DEFAULT 0,
`user_image` varchar(100) DEFAULT NULL,
`user_bio` text DEFAULT NULL,
`total_foloowings` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`rowid`, `user_email`, `user_name`, `user_password`, `meta_mask_key`, `user_status`, `created_at`, `forget_password`, `failed_login`, `last_failed`, `user_type`, `user_balance`, `user_image`, `user_bio`, `total_foloowings`) VALUES
(1, '<EMAIL>', 'Admin', '<PASSWORD>', '<PASSWORD>', 1, '2022-01-16 22:20:27', '', 0, NULL, 2, 0, 'WhatsApp_Image_2021-06-10_at_3_52_50_AM.jpeg', 'sssssssssssssss', 1),
(2, '<EMAIL>', 'User1', '<PASSWORD>', '<PASSWORD>', 1, '2022-01-16 22:30:04', NULL, 0, NULL, 1, 0, 'IMG_4914_-_Copy.JPG', 'No Nia', 0),
(3, '<EMAIL>', 'User2', '<PASSWORD>57f20f883e', '0xef2a8ce9079c23b8fe7d839c8b814898383ce07e', 1, '2022-01-31 12:40:52', NULL, 0, '2022-01-31 08:23:55', 1, 0, NULL, NULL, 1),
(4, '<EMAIL>', 'User3', 'e10adc3949ba59abbe56e057f20f883e', NULL, 1, '2022-02-13 00:43:22', NULL, 0, NULL, 1, 0, NULL, NULL, 0);
-- --------------------------------------------------------
--
-- Table structure for table `user_chat`
--
CREATE TABLE `user_chat` (
`rowid` int(11) NOT NULL,
`sender_type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1:user, 2;admin',
`user_id` int(11) NOT NULL,
`message_text` text NOT NULL,
`create_at` datetime NOT NULL DEFAULT current_timestamp(),
`admin_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin_messages`
--
ALTER TABLE `admin_messages`
ADD PRIMARY KEY (`rowid`);
--
-- Indexes for table `admin_notifications`
--
ALTER TABLE `admin_notifications`
ADD PRIMARY KEY (`rowid`);
--
-- Indexes for table `admin_settings`
--
ALTER TABLE `admin_settings`
ADD PRIMARY KEY (`rowid`);
--
-- Indexes for table `all_categories`
--
ALTER TABLE `all_categories`
ADD PRIMARY KEY (`rowid`);
--
-- Indexes for table `all_foloowers`
--
ALTER TABLE `all_foloowers`
ADD PRIMARY KEY (`rowid`);
--
-- Indexes for table `all_nfts_list`
--
ALTER TABLE `all_nfts_list`
ADD PRIMARY KEY (`rowid`);
--
-- Indexes for table `nft_reports`
--
ALTER TABLE `nft_reports`
ADD PRIMARY KEY (`rowid`);
--
-- Indexes for table `nft_sales`
--
ALTER TABLE `nft_sales`
ADD PRIMARY KEY (`rowid`);
--
-- Indexes for table `nft_sales_bids`
--
ALTER TABLE `nft_sales_bids`
ADD PRIMARY KEY (`rowid`);
--
-- Indexes for table `nft_types`
--
ALTER TABLE `nft_types`
ADD PRIMARY KEY (`rowid`);
--
-- Indexes for table `sale_comments`
--
ALTER TABLE `sale_comments`
ADD PRIMARY KEY (`rowid`);
--
-- Indexes for table `sale_rattings`
--
ALTER TABLE `sale_rattings`
ADD PRIMARY KEY (`rowid`);
--
-- Indexes for table `sal_purchase_record`
--
ALTER TABLE `sal_purchase_record`
ADD PRIMARY KEY (`rowid`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`rowid`);
--
-- Indexes for table `user_chat`
--
ALTER TABLE `user_chat`
ADD PRIMARY KEY (`rowid`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin_messages`
--
ALTER TABLE `admin_messages`
MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `admin_notifications`
--
ALTER TABLE `admin_notifications`
MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `admin_settings`
--
ALTER TABLE `admin_settings`
MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `all_categories`
--
ALTER TABLE `all_categories`
MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `all_foloowers`
--
ALTER TABLE `all_foloowers`
MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `all_nfts_list`
--
ALTER TABLE `all_nfts_list`
MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `nft_reports`
--
ALTER TABLE `nft_reports`
MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `nft_sales`
--
ALTER TABLE `nft_sales`
MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `nft_sales_bids`
--
ALTER TABLE `nft_sales_bids`
MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `nft_types`
--
ALTER TABLE `nft_types`
MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sale_comments`
--
ALTER TABLE `sale_comments`
MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sale_rattings`
--
ALTER TABLE `sale_rattings`
MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `sal_purchase_record`
--
ALTER TABLE `sal_purchase_record`
MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `user_chat`
--
ALTER TABLE `user_chat`
MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
INSERT INTO [PatientProvider]
(PatientId,
CaseId,
ProviderId,
AccountId,
CreatedTimestamp,
AssignedTimestamp,
DischargeTimestamp,
LastUpdateTimestamp,
LastUpdateAccountId)
SELECT p.PatientId, c.CaseId, cp.ProviderId, cp.AccountId,cp.CreatedTimestamp,cp.AssignedTimestamp,cp.DischargeTimestamp,cp.LastUpdatedTimestamp,cp.LastUpdatedAccountId FROM [CaseProvider] AS cp
INNER JOIN [Case] AS c
ON cp.CaseId = c.CaseId
INNER JOIN [Patient] AS P
ON c.PatientId = p.PatientId;
|
<filename>Homework/DBFundamentals/Databases Basics/09.ExamPrep03January2018/PrepExamExercises/PrepExamExercises/05. Showroom.sql
SELECT Manufacturer, Model
FROM Models
ORDER BY Manufacturer, Id DESC |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.4.10
-- http://www.phpmyadmin.net
--
-- Host: localhost:8889
-- Generation Time: Mar 01, 2017 at 01:39 AM
-- Server version: 5.5.42
-- PHP Version: 7.0.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `university`
--
-- --------------------------------------------------------
--
-- Table structure for table `courses`
--
CREATE TABLE `courses` (
`name_of_course` varchar(255) DEFAULT NULL,
`course_number` varchar(255) DEFAULT NULL,
`id` bigint(20) unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `students`
--
CREATE TABLE `students` (
`name` varchar(255) DEFAULT NULL,
`admission` date DEFAULT NULL,
`id` bigint(20) unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `courses`
--
ALTER TABLE `courses`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`);
--
-- Indexes for table `students`
--
ALTER TABLE `students`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `courses`
--
ALTER TABLE `courses`
MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `students`
--
ALTER TABLE `students`
MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>manasavesala/HairSalon.Solution<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: Dec 20, 2018 at 07:35 AM
-- Server version: 5.6.34-log
-- PHP Version: 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 */;
--
-- Database: `manasa_vesala`
--
CREATE DATABASE IF NOT EXISTS `manasa_vesala` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `manasa_vesala`;
-- --------------------------------------------------------
--
-- Table structure for table `clients`
--
CREATE TABLE `clients` (
`name` varchar(255) NOT NULL,
`stylistName` varchar(255) NOT NULL,
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `clients`
--
INSERT INTO `clients` (`name`, `stylistName`, `id`) VALUES
('Manasa', 'deepica', 12),
('swathi', 'deepica', 13),
('murali', 'john', 14),
('sindhu', 'john', 15);
-- --------------------------------------------------------
--
-- Table structure for table `specialties`
--
CREATE TABLE `specialties` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `specialties`
--
INSERT INTO `specialties` (`id`, `name`) VALUES
(7, 'Hair Stylist'),
(8, 'Make Up '),
(10, 'Dressing'),
(11, 'HairColor');
-- --------------------------------------------------------
--
-- Table structure for table `stylists`
--
CREATE TABLE `stylists` (
`stylistName` varchar(255) NOT NULL,
`location` varchar(255) NOT NULL,
`rating` varchar(255) NOT NULL,
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `stylists`
--
INSERT INTO `stylists` (`stylistName`, `location`, `rating`, `id`) VALUES
('deepica', 'seattle', '4.5 stars', 5),
('john', 'tacoma', '5 stars', 6);
-- --------------------------------------------------------
--
-- Table structure for table `stylists_specialties`
--
CREATE TABLE `stylists_specialties` (
`id` int(11) NOT NULL,
`stylist_id` int(11) NOT NULL,
`specialty_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `stylists_specialties`
--
INSERT INTO `stylists_specialties` (`id`, `stylist_id`, `specialty_id`) VALUES
(1, 1, 7),
(2, 2, 8),
(3, 2, 8),
(4, 4, 7),
(5, 2, 10),
(6, 1, 10),
(7, 4, 10),
(8, 4, 10),
(9, 4, 8),
(10, 1, 11);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `clients`
--
ALTER TABLE `clients`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `specialties`
--
ALTER TABLE `specialties`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `stylists`
--
ALTER TABLE `stylists`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `stylists_specialties`
--
ALTER TABLE `stylists_specialties`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `clients`
--
ALTER TABLE `clients`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `specialties`
--
ALTER TABLE `specialties`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `stylists`
--
ALTER TABLE `stylists`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `stylists_specialties`
--
ALTER TABLE `stylists_specialties`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;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 database planthub owner postgres;
grant all privileges on database planthub to postgres;*/
create table if not exists public.settings
(
ID serial
constraint settings_pk
primary key,
limits_trigger boolean default true not null,
water_level_limit float,
water_amount_limit float,
moist_limit float,
scheduled_trigger boolean default false not null,
hour_range int,
location varchar not null,
irrigation_duration int not null,
chart_type boolean default false not null,
language boolean default false not null,
theme boolean default false not null,
lat float,
lon float,
default_water_amount float
);
create unique index settings_id_uindex
on settings (ID);
create table if not exists public.measurements
(
ID serial
constraint measurements_pk
primary key,
timestamp timestamp default now() not null,
hum float not null,
temp float not null,
moist float not null,
with_irrigation boolean default false not null
);
create unique index measurements_id_uindex
on measurements (ID);
create table if not exists public.irrigation_history
(
ID serial
constraint irrigation_history_pk
primary key,
timestamp timestamp default now() not null,
water_level float not null,
water_amount float not null,
water_overdrawn float not null
);
create unique index irrigation_history_id_uindex
on irrigation_history (ID);
|
<reponame>jsinh-blog-code/convert-datatabe-to-json<filename>ComplexJson/DemoTable.sql
CREATE TABLE [dbo].[Demo]
(
[EmployeeId] INT NOT NULL PRIMARY KEY,
[EmployeeCode] NVARCHAR(50) NOT NULL,
[ManagerId] INT NOT NULL,
[FirstName] NVARCHAR(50) NOT NULL,
[LastName] NVARCHAR(50) NOT NULL,
[AverageSalePerDay] INT NOT NULL,
[TotalSales] INT NOT NULL
)
INSERT INTO [dbo].[Demo] ([EmployeeId] ,[EmployeeCode] ,[ManagerId] ,[FirstName] ,[LastName] ,[AverageSalePerDay] ,[TotalSales])
VALUES (1 ,'ABC' ,10 ,'Alex' ,'Shrute' ,12 ,100);
INSERT INTO [dbo].[Demo] ([EmployeeId] ,[EmployeeCode] ,[ManagerId] ,[FirstName] ,[LastName] ,[AverageSalePerDay] ,[TotalSales])
VALUES (2 ,'COD' ,10 ,'Jasmine' ,'Roal' ,35 ,150);
INSERT INTO [dbo].[Demo] ([EmployeeId] ,[EmployeeCode] ,[ManagerId] ,[FirstName] ,[LastName] ,[AverageSalePerDay] ,[TotalSales])
VALUES (3 ,'JAS' ,10 ,'Jsinh' ,'Chauhan' ,25 ,500);
INSERT INTO [dbo].[Demo] ([EmployeeId] ,[EmployeeCode] ,[ManagerId] ,[FirstName] ,[LastName] ,[AverageSalePerDay] ,[TotalSales])
VALUES (4 ,'PAR' ,10 ,'Rex' ,'Maul' ,14 ,233);
INSERT INTO [dbo].[Demo] ([EmployeeId] ,[EmployeeCode] ,[ManagerId] ,[FirstName] ,[LastName] ,[AverageSalePerDay] ,[TotalSales])
VALUES (5 ,'SUR' ,10 ,'Sam' ,'Paulo' ,21 ,200);
INSERT INTO [dbo].[Demo] ([EmployeeId] ,[EmployeeCode] ,[ManagerId] ,[FirstName] ,[LastName] ,[AverageSalePerDay] ,[TotalSales])
VALUES (6 ,'RAM' ,10 ,'Remo' ,'Fernd' ,18 ,321); |
ALTER TABLE casesvc.case
DROP COLUMN active_enrolment;
ALTER TABLE casesvc.case
add column active_enrolment boolean DEFAULT FALSE;
|
CREATE TABLE /*_*/mwunit_attributes (
attribute_name VARCHAR(255) NOT NULL,
attribute_value VARCHAR(512),
article_id INT UNSIGNED NOT NULL,
test_name VARCHAR(255) NOT NULL,
PRIMARY KEY (attribute_name, article_id, test_name),
FOREIGN KEY (article_id, test_name) REFERENCES mwunit_tests(article_id, test_name)
); |
<filename>AzureDevOpsServer2020/Scripts/Config/JobQueueAnalyticsJob.sql
-- Get the job queue Analytics staging and transform jobs.
SELECT JobId, Priority, QueueTime, JobSource, JobState, ExecutionStartTime, StateChangeTime,
QueuedReasons, QueueFlags, RequeueJob, RequeuePriority, RequeueDelaySeconds
FROM dbo.tbl_JobQueue
WHERE
(
JobId = '183cd78d-1eeb-4b80-a488-cdd823b51c40' -- Work Item Link Types Analytics Job (Recovery)
OR JobId = '18ff999a-382f-4573-8f18-6ea3e7d72355' -- Team Setting Analytics Job
OR JobId = '1eb33c0e-ba17-4571-8ead-73fba82b7083' -- Collection Analytics Job
OR JobId = '266c0520-bc58-4f37-855a-0b095c00ba9e' -- Test Configuration Sync Analytics Job
OR JobId = '327ea60c-2ede-4d49-b87c-967c2b04c950' -- Work Item Revisions Analytics Job
OR JobId = '3e267d39-c3d0-402c-9312-8a0eb09cc9e5' -- Project Analytics Job
OR JobId = '422eaa92-8df9-44dd-8590-accd1d8c496e' -- Kanban Board Rows Analytics Job
OR JobId = '439ff596-d92b-44c0-a1f4-f97277502fd7' -- Test Case Reference Sync Analytics Job
OR JobId = '44175be3-dd88-403b-a88b-cd11863423bc' -- WorkItem Iteration Analytics Job
OR JobId = '4945fd20-dfd1-4456-b36f-935d8caa3cb1' -- Tags Analytics Job
OR JobId = '53bd3fb1-5419-448a-a46b-3a1281b920ef' -- Kanban Board Columns Analytics Job
OR JobId = '58ceeb48-b7f2-469a-9854-ede85a60ab8d' -- Kanban Board Rows Analytics Job (Recovery)
OR JobId = '67430e02-acdf-4103-b6fc-38602cdc862c' -- Project Analytics Job (Recovery)
OR JobId = '68ef493a-3540-4fc1-8d9b-5dd28763497d' -- Kanban Board Columns Analytics Job (Recovery)
OR JobId = '74b395d4-4d86-40b6-901d-830cf7963de3' -- Work Item Destroyed Analytics Job
OR JobId = '78054eb1-62db-46fa-9704-e35f17c16079' -- Test Suite Sync Analytics Job
OR JobId = '7c4627d1-2fdf-4ddb-8172-a831ca134cc3' -- Work Item Destroyed Analytics Job (Recovery)
OR JobId = '843a6142-6e52-47d7-8711-4a9d2616fce2' -- Team Setting Analytics Job (Recovery)
OR JobId = '8753395b-8cc0-43a2-848f-61de02630724' -- Processes Analytics Job
OR JobId = '950deab4-5123-46a4-abd9-e3304baacc5a' -- Test Point Sync Analytics Job (Recovery)
OR JobId = '9609bcd9-9f5b-40ac-82d4-c475ec9a0984' -- Test Runs Sync Analytics Job
OR JobId = '99091932-e1d0-473f-ab8d-2a71f60caf3e' -- Test Runs Sync Analytics Job (Recovery)
OR JobId = 'afd82317-8d48-42fa-a3bb-00dd3e22035a' -- Collection Analytics Job (Recovery)
OR JobId = 'b2e1603d-43be-4bf4-a75b-ad13c6b9fc24' -- Test Point Sync Analytics Job
OR JobId = 'b388f317-1ac6-426f-a40c-3a930d1a9c0b' -- Work Item Link Types Analytics Job
OR JobId = 'b524c814-1093-4c40-a6dc-51f6397a4a15' -- Test Results Sync Analytics Job (Recovery)
OR JobId = 'b92e39dd-2a02-4044-b017-226e33c44187' -- Analytics Maintain Staging Schedules Job
OR JobId = 'bfa21cf5-5865-4c89-9d29-99fcbdfc4a5c' -- Work Item Links Analytics Job (Recovery)
OR JobId = 'c4b5bc26-c37e-4387-9f30-17725b43fffa' -- Processes Analytics Job (Recovery)
OR JobId = 'd2d0e457-9013-4843-b582-9d3f8b2073e0' -- Test Configuration Sync Analytics Job (Recovery)
OR JobId = 'd7ed949f-392c-4328-812c-06571c64dad0' -- Test Case Reference Sync Analytics Job (Recovery)
OR JobId = 'dd42395a-5b0c-468a-9ef6-5374377d3652' -- Test Results Sync Analytics Job
OR JobId = 'dd9ac434-092c-451c-b5cc-640d97cc2176' -- Work Item Revisions Analytics Job (Recovery)
OR JobId = 'e1b1570c-9be5-4279-afbf-2a1c36d939bf' -- Work Item Links Analytics Job
OR JobId = 'e3d798dd-55d3-44ab-8e91-9f8b5d2a514d' -- Test Point History Sync Analytics Job (Recovery)
OR JobId = 'e7574d45-89e1-4088-955a-e536def61567' -- Test Suite Sync Analytics Job (Recovery)
OR JobId = 'e7ce94e0-6069-4424-b501-5630431b247c' -- WorkItem Area Analytics Job (Recovery)
OR JobId = 'fcb7d04d-5f9f-4a37-971d-723580ff67d6' -- WorkItem Iteration Analytics Job (Recovery)
OR JobId = 'fd61e994-6916-463f-a9ce-4b217ed3dc95' -- WorkItem Area Analytics Job
OR JobId = 'fe3bf789-1b7d-4504-bed7-35775590bfe7' -- Test Point History Sync Analytics Job
OR JobId = '468B2974-4836-4F90-83E9-CF2D7432A8A7' -- Test Plan Analytics Job
OR JobId = 'E17BC5FF-3413-4598-823D-C4B85A1F53AF' -- Test Plan Analytics Job (Recovery)
OR JobId = '5ce180ee-3c58-4d12-80e6-ceccf7b09e7d' -- TestResults analytics job tcm
OR JobId = 'f4a76397-8993-4b1e-963a-d5dfb4541c7f' -- TestResults analytics job tcm (Recovery)
OR JobId = 'f17c101c-df6a-488e-9b75-258e315015f8' -- TestRun Analytics job tcm
OR JobId = '093ab808-1776-4e50-9ad5-8d4b82cc27d8' -- TestRun Analytics job tcm (Recovery)
OR JobId = '950e11ca-62a1-424f-9810-b253c24cf406' -- Test Case Reference Analytics Job tcm
OR JobId = '5b7a9c5f-c7d0-4aee-90d2-2fa63deaa90d' -- Test Case Reference Analytics Job tcm (Recovery)
OR JobId = '86B94D0B-BFD0-44DC-877B-BF9FC550C4B3' -- Task Plan Analytics Job
OR JobId = '147E566D-9776-41A1-ADE6-99D9421D1221' -- Task Plan Analytics Job (Recovery)
OR JobId = '9F5D4356-C28C-4746-BA9F-8AEFFAD5CCC4' -- Task Timeline Record Analytics Job
OR JobId = 'FB818B11-CA5E-4B81-A8F0-F2682B3980A3' -- Task Timeline Record Analytics Job (Recovery)
OR JobId = 'A72F8A0A-2B38-42B8-B796-F8F0BED3E99F' -- Task Definition Reference Analytics Job
OR JobId = 'E71655FA-32E7-4AC7-BEC1-7B5004953A60' -- Task Definition Reference Analytics Job (Recovery)
OR JobId = 'BBDAF35E-FFDE-405C-931E-20F8B5602AEC' -- Build Analytics job
OR JobId = '3CD11578-47BD-4856-AA90-8DB3790B2BC4' -- Build Analytics job (Recovery)
OR JobId = '2fccba60-22db-45ad-8334-db1761191400' -- Analytics DB Maintenance Job
OR JobId = '315c619a-c4f5-4721-a850-4e86f98588f5' -- Analytics Project Permissions Job
OR JobId = '5549dec4-722d-488e-bd9f-6622fe281507' -- Analytics Deleted Table Cleanup Job
OR JobId = '63b34e3d-dd96-42b1-a262-8c2a6e3f127d' -- Analytics Transform Job
OR JobId = '78e8059e-c958-4dd7-a2e3-25260c700996' -- Analytics Data Quality Job
OR JobId = '924cf5fc-ddc7-4ec0-b283-13aa1e4a4996' -- Analytics Data Quality Cleanup Job
OR JobId = '9b61a767-f78e-4106-8886-45c9f560ec3f' -- Analytics Stream Cleanup Job
OR JobId = 'a060529e-b328-410c-bbb4-058421b5a0b4' -- Analytics Time Zone Update Job
OR JobId = 'd2f10407-d805-4c58-9539-29f51e201f13' -- Analytics Calendar Update Job
)
|
CREATE PROCEDURE OT_SETACCESS_RemoveReadWriteAccessForUsergroup
@usersetid as int
, @settype as char(1)
, @companyid int
as
DELETE OUTTASK_USER_SET_READ_ACCESS
FROM OUTTASK_USER_SET_READ_ACCESS A, OUTTASK_USER_SET S
WHERE A.READ_SET_ID = @usersetid
AND A.SET_ID = S.SET_ID
AND S.SET_TYPE = @settype
AND S.COMPANY_ID = @companyid
DELETE OUTTASK_USER_SET_WRITE_ACCESS
FROM OUTTASK_USER_SET_WRITE_ACCESS A, OUTTASK_USER_SET S
WHERE A.WRITE_SET_ID = @usersetid
AND A.SET_ID = S.SET_ID
AND S.SET_TYPE = @settype
AND S.COMPANY_ID = @companyid
|
UPDATE person
SET second_name = '{{JohnSecondName}}'
WHERE name = 'John';
UPDATE person
SET second_name = '{{MariaSecondName}}'
WHERE name = 'Maria';
SELECT * FROM person; |
<filename>scripts/migrate_tests.sql
ALTER TABLE users ADD COLUMN tested_till TEXT;
ALTER TABLE users ADD COLUMN medical_exception BOOLEAN NOT NULL DEFAULT FALSE; |
CREATE PROCEDURE [dbo].[EPAO_Register_register_standards]
AS
SET NOCOUNT ON;
select os.EndPointAssessorOrganisationId as EPA_organisation_identifier,
o.EndPointAssessorName as 'EPA_organisation (lookup auto-populated)',
os.StandardCode as Standard_code,
sc.Title as 'StandardName (lookup auto-populated)',
Convert(nvarchar,[EffectiveFrom],23) as Effective_from,
Convert(nvarchar,[EffectiveTo],23) as Effective_to,
c.DisplayName as Contact_name,
c.PhoneNumber as Contact_phonenumber,
c.Email as Contact_email,
Convert(nvarchar,os.DateStandardApprovedOnRegister,23) as 'Date standard Approved on the Register',
os.Comments as Comments
from OrganisationStandard os
inner join Organisations o on os.EndPointAssessorOrganisationId = o.EndPointAssessorOrganisationId and o.EndPointAssessorOrganisationId<> 'EPA0000' and o.Status = 'Live'
left outer join StandardCollation sc on os.StandardCode = sc.StandardId
left outer join Contacts c on os.ContactId = c.Id
where os.[Status] = 'Live'
and (os.EffectiveTo is null OR os.EffectiveTo > GETDATE())
order by os.EndPointAssessorOrganisationId, os.StandardCode
|
REVOKE ALL ON TABLE view1 FROM public; |
-- file:aggregates.sql ln:730 expect:true
select my_avg(one),my_sum(one) from (values(1),(3)) t(one)
|
-- file:rowsecurity.sql ln:589 expect:true
SELECT * FROM t1 WHERE f_leak(b)
|
<gh_stars>1-10
INSERT INTO user (email, password) VALUES ('<EMAIL>','<PASSWORD>');
INSERT INTO user (email, password) VALUES ('<EMAIL>','<PASSWORD>');
INSERT INTO user (email, password) VALUES ('<EMAIL>','<PASSWORD>');
INSERT INTO user (email, password) VALUES ('<EMAIL>','<PASSWORD>'); |
drop database if exists company_db;
create database company_db;
use company_db;
create table department(
id int PRIMARY KEY,
depName VARCHAR(30)
);
create table roles (
id INT PRIMARY KEY,
title VARCHAR(30),
salary DECIMAL,
department_id INT,
FOREIGN KEY(department_id) REFERENCES department(id)
);
create table employee (
id INT PRIMARY KEY,
first_name VARCHAR(30),
last_name VARCHAR(30),
role_id INT,
manager_id INT NULL,
FOREIGN KEY(role_id) REFERENCES roles(id)
); |
use QuanLiShop
go
---------- ROLE ----------
-- load --
drop procedure if exists load_role
go
create procedure load_role
as
select * from role
go
-- insert --
drop procedure if exists insert_role
go
create procedure insert_role
@name varchar(10)
as
insert into Role(name)
values (@name)
go
-- update --
drop procedure if exists update_role
go
create procedure update_role
@id int,
@name varchar(10)
as
update Role
set name = @name
where roleID = @id
go
-- delete --
drop procedure if exists delete_role
go
create procedure delete_role
@id int
as
delete Role
where roleID = @id
go
---------- Users ----------
-- load --
drop procedure if exists load_Users
go
create procedure load_Users
as
select * from Users
go
-- insert --
drop procedure if exists insert_Users
go
create procedure insert_Users
@hoTen nvarchar(50),
@sdt varchar(10),
@ngaySinh date,
@diaChi nvarchar(50),
@userName varchar(20),
@password varchar(20)
as
insert into Users(hoTen, sdt, ngaySinh, diaChi, username, password)
values(@hoten, @sdt, @ngaySinh, @diaChi, @userName, @password)
go
-- update --
drop procedure if exists update_Users
go
create procedure update_Users
@maKH int,
@hoTen nvarchar(50),
@sdt varchar(10),
@ngaySinh date,
@diaChi nvarchar(50),
@userName varchar(20),
@password varchar(20)
as
update Users
set
hoTen = @hoTen,
sdt = @sdt,
ngaySinh = @ngaySinh,
diaChi = @diaChi,
userName = @userName,
password = <PASSWORD>
where maKh = @maKH
go
-- delete --
drop procedure if exists delete_Users
go
create procedure delete_Users
@maKH int
as
delete Users
where maKH = @maKH
go
---------- BinhLuan ----------
-- load --
drop procedure if exists load_BinhLuan
go
create procedure load_BinhLuan
as
select * from BinhLuan
go
-- insert --
drop procedure if exists insert_BinhLuan
go
create procedure insert_BinhLuan
@maKH int,
@maSP int,
@noiDung nvarchar(max)
as
insert into BinhLuan(maKH, maSP, noiDung)
values(@maKH, @maSP, @noiDung)
go
-- update --
drop procedure if exists update_BinhLuan
go
create procedure update_BinhLuan
@maCMT int,
@noiDung nvarchar(max)
as
update BinhLuan
set
noiDung = @noiDung
where maCMT = @maCMT
go
-- delete --
drop procedure if exists delete_BinhLuan
go
create procedure delete_BinhLuan
@maCMT int
as
delete BinhLuan
where maCMT = @maCMT
go
---------- VanChuyen ----------
-- load --
drop procedure if exists load_VanChuyen
go
create procedure load_VanChuyen
as
select * from VanChuyen
go
-- insert --
drop procedure if exists insert_vanchuyen
go
create procedure insert_vanchuyen
@tenDV varchar(50),
@email varchar(50),
@SDT varchar(10),
@diachi varchar(50)
as
insert into VanChuyen(tenDV,email,SDT,diaChi)
values (@tenDV,@email,@SDT,@diachi)
go
-- update --
drop procedure if exists update_vanchuyen
go
create procedure update_vanchuyen
@id int,
@tenDV varchar(50),
@email varchar(50),
@SDT varchar(10),
@diachi varchar(50)
as
update VanChuyen
set tenDV = @tenDV, email = @email, SDT = @SDT, diaChi = @diachi
where maDV = @id
go
-- delete --
drop procedure if exists delete_vanchuyen
go
create procedure delete_vanchuyen
@id int
as
delete VanChuyen
where maDV = @id
go
---------- DonHang ----------
-- load --
drop procedure if exists load_DonHang
go
create procedure load_DonHang
as
select * from DonHang
go
-- insert --
drop procedure if exists insert_donhang
go
create procedure insert_donhang
@maKH int,
@tenNguoiNhan nvarchar(200),
@diaChi nvarchar(MAX),
@sdt nvarchar(MAX),
@tongTien float,
@maDV int
as
insert into DonHang(maKH, tenNguoiNhan, diaChi,sdt,tongTien, maDV)
values (@maKH, @tenNguoiNhan, @diaChi, @sdt, @tongTien, @maDV)
go
-- update --
drop procedure if exists update_donhang
go
create procedure update_donhang
@id int,
@maKH int,
@ngayMua datetime,
@tongTien float,
@maDV int
as
update DonHang
set maKH = @maKH, ngayMua = @ngayMua, tongTien = @tongTien, maDV = @maDV
where maDH = @id
go
-- delete --
drop procedure if exists delete_donhang
go
create procedure delete_donhang
@id int
as
delete DonHang
where maDH = @id
go
---------- ChiTietDonHang ----------
-- load --
drop procedure if exists load_ChiTietDonHang
go
create procedure load_ChiTietDonHang
as
select * from ChiTietDonHang
go
-- insert --
drop procedure if exists insert_chiTietDonHang
go
create procedure insert_chiTietDonHang
@maDH int,
@maSP int,
@soLuongSP int,
@thanhTien float
as
insert into ChiTietDonHang(maDH,maSP,soLuongSP,thanhTien)
values (@maDH,@maSP,@soLuongSP,@thanhTien)
go
-- update --
drop procedure if exists update_chiTietDonHang
go
create procedure update_chiTietDonHang
@id int,
@maDH int,
@maSP int,
@soLuongSP int,
@thanhTien float
as
update ChiTietDonHang
set maDH = @maDH, maSP = @maSP, soLuongSP = @soLuongSP, thanhTien = @thanhTien
where ID = @id
go
-- delete --
drop procedure if exists delete_chiTietDonHang
go
create procedure delete_chiTietDonHang
@id int
as
delete ChiTietDonHang
where ID = @id
go
---------- ChiTietGioHang ----------
-- load --
drop procedure if exists load_ChiTietGioHang
go
create procedure load_ChiTietGioHang
as
select * from ChiTietGioHang
go
-- insert --
drop procedure if exists insert_chiTietGioHang
go
create procedure insert_chiTietGioHang
@maKH int,
@maSP int,
@soLuongSP int
as
insert into ChiTietGioHang(maKH,maSP,soLuongSP)
values (@maKH,@maSP,@soLuongSP)
go
-- update --
drop procedure if exists update_chiTietGioHang
go
create procedure update_chiTietGioHang
@id int,
@maKH int,
@maSP int,
@soLuongSP int
as
update ChiTietGioHang
set maKH = @maKH, maSP = @maSP, soLuongSP = @soLuongSP
where ID = @id
go
-- delete --
drop procedure if exists delete_chiTietGioHang
go
create procedure delete_chiTietGioHang
@id int
as
delete ChiTietGioHang
where ID = @id
go
---------- SanPham ----------
-- load --
drop procedure if exists load_SanPham
go
create procedure load_SanPham
as
select * from SanPham
go
-- insert --
drop procedure if exists insert_SanPham
go
create procedure insert_SanPham
@tenSP nvarchar(50),
@maTH int, @maLoaiSP int,
@hinhSP varchar(max),
@giaSP float,
@soLuongSP int,
@ngayDangBan date
as
insert into SanPham(tenSP, maTH, maLoaiSP, hinhSP, giaSP, soLuongSP, ngayDangBan)
values(@tenSP, @maTH, @maLoaiSP, @hinhSP, @giaSP, @soLuongSP, @ngayDangBan)
go
-- update --
drop procedure if exists update_SanPham
go
create Procedure update_SanPham
@maSP int,
@tenSP nvarchar(50),
@maTH int,
@maLoaiSP int,
@hinhSP varchar(max),
@giaSP float,
@soLuongSP int,
@ngayDangBan date
as
update SanPham
set
tenSP = @tenSP,
maTH = @maTH,
maLoaiSP = @maLoaiSP,
hinhSP = @hinhSP,
giaSP = @giaSP,
soLuongSP = @soLuongSP,
ngayDangBan = @ngayDangBan
where maSP = @maSP
go
-- delete --
drop procedure if exists delete_SanPham
go
create procedure delete_SanPham
@maSP int
as
delete from SanPham
where maSP = @maSP
go
-------- ThuongHieu ----------
-- load --
drop procedure if exists load_ThuongHieu
go
create procedure load_ThuongHieu
as
select * from ThuongHieu
go
-- insert --
drop procedure if exists insert_ThuongHieu
go
create Procedure insert_ThuongHieu
@tenTH nvarchar(26),
@emailTH nvarchar(50),
@hinhTH varchar(max)
as
insert into ThuongHieu (tenTH, emailTH, hinhTH)
values (@tenTH, @emailTH, @hinhTH)
go
-- update --
drop procedure if exists update_ThuongHieu
go
create Procedure update_ThuongHieu
@maTH int, @tenTH nvarchar(26), @emailTH nvarchar(50), @hinhTH varchar(max)
as
update ThuongHieu
set
tenTH = @tenTH,
emailTH = @emailTH,
hinhTH = @hinhTH
where maTH = @maTH
go
-- delete --
drop procedure if exists delete_ThuongHieu
go
create Procedure delete_ThuongHieu
@maTH int
as
delete from ThuongHieu
where maTH = @maTH
go
-------- LoaiSP ----------
-- load --
drop procedure if exists load_LoaiSP
go
create procedure load_LoaiSP
as
select * from LoaiSP
go
-- insert --
drop procedure if exists insert_LoaiSP
go
create Procedure insert_LoaiSP
@tenLoaiSP nvarchar(50)
as
insert into LoaiSP(tenLoaiSP)
values(@tenLoaiSP)
go
-- update --
drop procedure if exists update_LoaiSP
go
create Procedure update_LoaiSP
@maLoaiSP int,
@tenLoaiSP nvarchar(50)
as
update LoaiSP
set tenLoaiSP = @tenLoaiSP
where maLoaiSP = @maLoaiSP
go
-- delete --
drop procedure if exists delete_LoaiSP
go
create Procedure delete_LoaiSP
@maLoaiSP int
as
delete from LoaiSP
where maLoaiSP = @maLoaiSP
go |
<filename>PersonalFinance/PersonalFinance/PersonalFinance_options.sql
DROP TABLE IF EXISTS 'options';
CREATE TABLE 'options' (
guid VARCHAR(32) NOT NULL,
broker_guid VARCHAR(32) NOT NULL,
trade_date DATE NULL DEFAULT '00-00-0000',
trade_time TIME NULL DEFAULT '00:00:00',
exchange CHAR(20) NOT NULL,
symbol VARCHAR(50) NOT NULL,
strike_price REAL NOT NULL,
contract_type CHAR(5) NOT NULL,
expiry_date DATE NULL DEFAULT '00-00-0000',
trade_type CHAR(5) NOT NULL,
quantity REAL NOT NULL,
rate REAL NOT NULL
) |
<filename>md_clean.sql
-- First 5 digits of ZIP codes
UPDATE parties
SET zip = LEFT(zip, 5)
WHERE LENGTH(zip) > 5;
UPDATE attorneys
SET zip = LEFT(zip, 5)
WHERE LENGTH(zip) > 5;
-- Remove random numbers in front of charge dispositions
UPDATE charges
SET disposition = SPLIT_PART(disposition, ';', 2)
WHERE disposition LIKE '%:%';
-- Combine some charge dispositions
UPDATE charges
SET disposition = 'Nolle Prosequi'
WHERE LOWER(disposition) = 'nolle prosequi';
UPDATE charges
SET disposition = 'Stet'
WHERE LOWER(disposition) = 'stet';
UPDATE charges
SET disposition = 'Guilty'
WHERE LOWER(disposition) = 'guilty';
UPDATE charges
SET disposition = 'Not Guilty'
WHERE LOWER(disposition) = 'not guilty';
UPDATE charges
SET disposition = 'Probation Before Judgement'
WHERE LOWER(disposition) LIKE '%probation before judgement%'
OR LOWER(disposition) LIKE '%pbj%';
-- Set height 0 to null
UPDATE parties
SET height = NULL
WHERE height = 0;
-- Set weight 0 to null
UPDATE parties
SET weight = NULL
WHERE weight = 0;
-- Combine some races
UPDATE parties
SET race = 'African American'
WHERE LOWER(race) = 'black'
OR LOWER(race) = 'africanamerican'
OR LOWER(race) = 'african american'
OR LOWER(race) = 'black, african american'
OR LOWER(race) = 'black,african american'
OR LOWER(race) = 'african american/black';
UPDATE parties
SET race = 'Caucasian'
WHERE LOWER(race) = 'white'
OR LOWER(race) = 'caucasian'
OR LOWER(race) = 'caucasion'
OR LOWER(race) = 'white, caucasian, asiatic indian, arab'
OR LOWER(race) = 'white,caucasian,asiatic indian,arab'
OR LOWER(race) = 'white, asiatic indian, arab';
UPDATE parties
SET race = 'American Indian, Alaska Native'
WHERE LOWER(race) = 'american indian, alaska native'
OR LOWER(race) = 'american indian,alaska native';
UPDATE parties
SET race = 'Pacific Islander'
WHERE LOWER(race) = 'asian,native hawaiian,other pacific islander'
OR LOWER(race) = 'asian, native hawaiian,other pacific islander'
OR LOWER(race) = 'native hawaiian or other pacific islander';
UPDATE parties
SET race = null
WHERE LOWER(race) = 'unknown';
UPDATE parties
SET race = 'Other'
WHERE LOWER(race) = 'unknown, other'
OR LOWER(race) = 'unknown,other';
|
<filename>openaq/viz-tools/tableau/config/calculated fields/tableau_calculated_values.sql<gh_stars>0
if MAX([parameter]) = 'pm25' then
if AVG([value]) >= 0 and AVG([value]) <= 10 then '1 Good'
elseif AVG([value]) > 10 and AVG([value]) <= 20 then '2 Fair'
elseif AVG([value]) > 20 and AVG([value]) <= 25 then '3 Moderate'
elseif AVG([value]) > 25 and AVG([value]) <= 50 then '4 Poor'
elseif AVG([value]) > 50 and AVG([value]) <= 75 then '5 Very poor'
elseif AVG([value]) > 75 and AVG([value]) <= 800 then '6 Extremely poor'
else '99 Error'
end
elseif MAX([parameter]) = 'pm10' then
if AVG([value]) >= 0 and AVG([value]) <= 20 then '1 Good'
elseif AVG([value]) > 20 and AVG([value]) <= 40 then '2 Fair'
elseif AVG([value]) > 40 and AVG([value]) <= 50 then '3 Moderate'
elseif AVG([value]) > 50 and AVG([value]) <= 100 then '4 Poor'
elseif AVG([value]) > 100 and AVG([value]) <= 150 then '5 Very poor'
elseif AVG([value]) > 150 and AVG([value]) <= 1200 then '6 Extremely poor'
else '99 Error'
end
elseif MAX([parameter]) = 'no2' then
if AVG([value]) >= 0 and AVG([value]) <= 40 then '1 Good'
elseif AVG([value]) > 40 and AVG([value]) <= 90 then '2 Fair'
elseif AVG([value]) > 90 and AVG([value]) <= 120 then '3 Moderate'
elseif AVG([value]) > 120 and AVG([value]) <= 230 then '4 Poor'
elseif AVG([value]) > 230 and AVG([value]) <= 340 then '5 Very poor'
elseif AVG([value]) > 340 and AVG([value]) <= 1000 then '6 Extremely poor'
else '99 Error'
end
elseif MAX([parameter]) = 'o3' then
if AVG([value]) >= 0 and AVG([value]) <= 50 then '1 Good'
elseif AVG([value]) > 50 and AVG([value]) <= 100 then '2 Fair'
elseif AVG([value]) > 100 and AVG([value]) <= 130 then '3 Moderate'
elseif AVG([value]) > 130 and AVG([value]) <= 240 then '4 Poor'
elseif AVG([value]) > 240 and AVG([value]) <= 380 then '5 Very poor'
elseif AVG([value]) > 380 and AVG([value]) <= 800 then '6 Extremely poor'
else '99 Error'
end
elseif MAX([parameter]) = 'so2' then
if AVG([value]) >= 0 and AVG([value]) <= 100 then '1 Good'
elseif AVG([value]) > 100 and AVG([value]) <= 200 then '2 Fair'
elseif AVG([value]) > 200 and AVG([value]) <= 350 then '3 Moderate'
elseif AVG([value]) > 350 and AVG([value]) <= 500 then '4 Poor'
elseif AVG([value]) > 500 and AVG([value]) <= 750 then '5 Very poor'
elseif AVG([value]) > 750 and AVG([value]) <= 1250 then '6 Extremely poor'
else '99 Error'
end
else 'Unknown parameter'
end
|
<gh_stars>0
--liquibase formatted sql
--changeset andrey_pylypchuk:1 splitStatements:false runOnChange:true runAlways:true
CREATE OR REPLACE FUNCTION calc_buyer_prioritization()
RETURNS VOID AS $$
BEGIN
TRUNCATE buyer_prioritization;
INSERT INTO buyer_prioritization
SELECT p.id,
p.identifier_id,
p.identifier_legal_name_ru,
COUNT(t.id) FILTER (WHERE t.bad_quality IS TRUE) procedures_with_bad_data,
p.region
FROM party p
JOIN tender t ON t.buyer_id = p.id
WHERE (t.status = 'complete'
OR (t.status = 'active' AND
t.current_stage = 'evaluationComplete' AND
(SELECT (EXTRACT(DAYS FROM now() - date) > 30) FROM award WHERE tender_id = t.id ORDER BY date LIMIT 1)
)
)
GROUP BY p.id;
END;
$$
LANGUAGE 'plpgsql'; |
UPDATE computation_strategies
SET computation_strategy_type = 'georegion_match_on_point'
WHERE computation_strategy_type = 'georegion'; |
<reponame>zzqfsy/spring-distributed-transaction<filename>dbfile/zzqfsy-order.sql
/*
Navicat MySQL Data Transfer
Source Server : local
Source Server Version : 50556
Source Host : 127.0.0.1:3306
Source Database : zzqfsy-order
Target Server Type : MYSQL
Target Server Version : 50556
File Encoding : 65001
Date: 2018-09-06 21:54:47
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for t_order
-- ----------------------------
DROP TABLE IF EXISTS `t_order`;
CREATE TABLE `t_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`i_project_id` int(11) DEFAULT NULL COMMENT '产品i',
`i_user_id` int(11) DEFAULT NULL COMMENT '用户id',
`s_order_no` varchar(50) DEFAULT NULL COMMENT '订单号 ',
`dcm_amount` decimal(10,2) DEFAULT NULL COMMENT '订单金额',
`i_status` tinyint(3) DEFAULT NULL COMMENT '订单状态, 0-初始化,1-已完成,2-已失败',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_order
-- ----------------------------
INSERT INTO `t_order` VALUES ('1', '1', '1', 'PO0000000011808222303005046771', '100.00', '1');
INSERT INTO `t_order` VALUES ('2', '1', '1', 'PO0000000011808222336122907801', '100.00', '1');
|
SELECT tab0.v1 AS v1 , tab0.v0 AS v0 , tab1.v2 AS v2
FROM (SELECT obj AS v1 , sub AS v0
FROM sorg__email$$1$$
) tab0
JOIN (SELECT sub AS v0 , obj AS v2
FROM sorg__faxNumber$$2$$
) tab1
ON(tab0.v0=tab1.v0)
++++++Tables Statistic
sorg__email$$1$$ 1 SS sorg__email/sorg__faxNumber
VP <sorg__email> 909754
SS <sorg__email><sorg__faxNumber> 945 0.0
------
sorg__faxNumber$$2$$ 1 SS sorg__faxNumber/sorg__email
VP <sorg__faxNumber> 1179
SS <sorg__faxNumber><sorg__email> 945 0.8
------
|
<filename>Migrations/Cats.DatabaseSchema/Security/EarlyWarning.sql
CREATE SCHEMA [EarlyWarning]
AUTHORIZATION [dbo];
|
<reponame>goldmansachs/obevo-kata
CREATE PROCEDURE SP364(OUT MYCOUNT INTEGER) SPECIFIC SP364_26813 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE208;SELECT COUNT(*)INTO MYCOUNT FROM TABLE217;SELECT COUNT(*)INTO MYCOUNT FROM TABLE58;SELECT COUNT(*)INTO MYCOUNT FROM VIEW60;SELECT COUNT(*)INTO MYCOUNT FROM VIEW41;SELECT COUNT(*)INTO MYCOUNT FROM VIEW50;END
GO |
select
type || ' ' || name as resource,
case
when (arguments -> 'ebs_optimized')::bool is true then 'ok'
else 'alarm'
end as status,
name || case
when (arguments -> 'ebs_optimized')::bool is true then ' EBS optimization enabled'
else ' EBS optimization disabled'
end || '.' as reason,
path || ':' || start_line
from
terraform_resource
where
type = 'aws_instance'; |
<filename>schema/data_classes/utils.sql
create schema if not exists flybase;
grant usage on schema flybase to PUBLIC;
-- Given a FlyBase ID, returns the 4 letter FlyBase data class.
create or replace function flybase.data_class(id text)
returns text as $$
declare
-- Data class to return.
data_class text;
begin
-- Get the substring.
data_class = substring(id from 1 for 4);
-- Format and return it.
return upper(substring(data_class from 1 for 2)) || lower(substring(data_class from 3 for 2));
end
$$ language plpgsql stable;
comment on function flybase.data_class(text) is 'Given a FlyBase ID returns the data class prefix e.g. FBgn0000490 -> FBgn';
|
<reponame>Tigerdile/tigerdile
-- Create profile payment types table
create table sd_profile_payment_types (
id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
title varchar(256),
PRIMARY KEY(id)
) ENGINE=InnoDB;
insert into sd_profile_payment_types (id, title) values
(1, 'Monthly: Pro-Rated Up-Front Payment Required'),
(2, 'Monthly: No Up-Front Payment');
-- Add a payment type column to profiles
alter table sd_profiles
add column payment_type_id bigint(20) unsigned default 1,
add constraint sd_profiles_payment_type_fk
foreign key (payment_type_id)
references sd_profile_payment_types(id);
-- add declined_on date to subscriptions
alter table sd_subscriptions
add column declined_on datetime;
create index sd_subscriptions_declined_on_idx
on sd_subscriptions (declined_on);
|
-- 予約テーブルとホテルテーブルをすべて結合
WITH rsv_and_hotel_tb AS(
SELECT
-- 必要な列の抽出
rsv.reserve_id, rsv.hotel_id, rsv.customer_id,
rsv.reserve_datetime, rsv.checkin_date, rsv.checkin_time,
rsv.checkout_date, rsv.people_num, rsv.total_price,
hotel.base_price, hotel.big_area_name, hotel.small_area_name,
hotel.hotel_latitude, hotel.hotel_longitude, hotel.is_business
-- 結合元となるreserve_tbを選択、テーブルの短縮名をrsvに設定
FROM work.reserve_tb rsv
-- 結合するhotel_tbを選択、テーブルの短縮名をhotekに設定
INNER JOIN work.hotel_tb hotel
-- 結合の条件を指定、hotel_idが同じレコード同士を結合
ON rsv.hotel_id = hotel.hotel_id
)
-- 結合したテーブルから条件に適合するデータのみ抽出
SELECT * FROM rsv_and_hotel_tb
-- is_businessのデータのみ抽出
WHERE is_business is True
-- people_numが1人のデータのみ抽出
AND people_num = 1
|
drop table if exists 가댁체힐你好;
drop table if exists 가댁체힐_你好;
Create table 가댁체힐你好(가#댁 INT NOT NULL DEFAULT 0 PRIMARY KEY,전화 VARCHAR(10));
INSERT INTO 가댁체힐你好 VALUES(1,'111-1111'), (2,'222-2222'), (3, '333-3333');
CREATE TABLE 가댁체힐_你好 LIKE 가댁체힐你好;
SELECT * FROM 가댁체힐_你好 order by 1;
desc 가댁체힐你好;
desc 가댁체힐_你好;
drop table 가댁체힐你好,가댁체힐_你好;
|
<filename>openGaussBase/testcase/KEYWORDS/sqlcode/Opengauss_Function_Keyword_Sqlcode_Case0023.sql<gh_stars>0
-- @testpoint: opengauss关键字sqlcode非保留),作为索引名,部分测试点合理报错
--前置条件,创建一个表
drop table if exists explain_test;
create table explain_test(id int,name varchar(10));
--关键字不带引号-成功
drop index if exists sqlcode;
create index sqlcode on explain_test(id);
drop index sqlcode;
--关键字带双引号-成功
drop index if exists "sqlcode";
create index "sqlcode" on explain_test(id);
drop index "sqlcode";
--关键字带单引号-合理报错
drop index if exists 'sqlcode';
create index 'sqlcode' on explain_test(id);
--关键字带反引号-合理报错
drop index if exists `sqlcode`;
create index `sqlcode` on explain_test(id);
drop table if exists explain_test; |
<reponame>te-pos-com/erp<filename>erp/database.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 20, 2021 at 01:15 PM
-- Server version: 10.4.20-MariaDB
-- PHP Version: 7.3.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `tes`
--
-- --------------------------------------------------------
--
-- Table structure for table `ci_sessions`
--
CREATE TABLE `ci_sessions` (
`id` varchar(128) NOT NULL,
`ip_address` varchar(45) NOT NULL,
`timestamp` int(10) UNSIGNED NOT NULL DEFAULT 0,
`data` blob NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `ci_sessions`
--
INSERT INTO `ci_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES
('3qnrk0ksvu2jj9kje9bs27b1qjg8lq1l', '::1', 1626778765, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632363737383736353b69647c733a313a2238223b757365726e616d657c733a353a2261646d696e223b656d61696c7c733a32313a22726f6d616e6b686f69727540676d61696c2e636f6d223b735f726f6c657c733a333a22725f35223b6c6f67676564696e7c623a313b),
('5uf96t4ptasu6r812cdtjil17b163tlv', '::1', 1626779221, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632363737393232313b),
('8g38uohlbbhg2ifi1lco83v25o80i6en', '::1', 1626777969, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632363737373936393b69647c733a313a2238223b757365726e616d657c733a353a2261646d696e223b656d61696c7c733a32313a22726f6d616e6b686f69727540676d61696c2e636f6d223b735f726f6c657c733a333a22725f35223b6c6f67676564696e7c623a313b),
('9iqgpfic73204s3miai2aq4mtc2qadt2', '::1', 1626777663, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632363737373636333b),
('arslsli9tfema9869k9a91b2glrcfjob', '::1', 1626779529, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632363737393532393b69647c733a313a2238223b757365726e616d657c733a353a2261646d696e223b656d61696c7c733a32313a22726f6d616e6b686f69727540676d61696c2e636f6d223b735f726f6c657c733a333a22725f35223b6c6f67676564696e7c623a313b),
('bqendel2gd4r73d2ovapn7nurpc1212s', '::1', 1626774158, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632363737343135383b),
('s071ct9miaenqpuogrebvgs3s1vm8rdu', '::1', 1626778448, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632363737383434383b69647c733a313a2238223b757365726e616d657c733a353a2261646d696e223b656d61696c7c733a32313a22726f6d616e6b686f69727540676d61696c2e636f6d223b735f726f6c657c733a333a22725f35223b6c6f67676564696e7c623a313b),
('un97gip4aa5n2rfdtcnqk3ks7703eq83', '::1', 1626779529, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632363737393532393b69647c733a313a2238223b757365726e616d657c733a353a2261646d696e223b656d61696c7c733a32313a22726f6d616e6b686f69727540676d61696c2e636f6d223b735f726f6c657c733a333a22725f35223b6c6f67676564696e7c623a313b);
-- --------------------------------------------------------
--
-- Table structure for table `te_accounts`
--
CREATE TABLE `te_accounts` (
`id` int(5) NOT NULL,
`acn` varchar(35) NOT NULL,
`holder` varchar(100) NOT NULL,
`adate` datetime NOT NULL,
`lastbal` decimal(16,2) DEFAULT 0.00,
`code` varchar(30) DEFAULT NULL,
`loc` int(4) DEFAULT NULL,
`account_type` enum('Assets','Expenses','Income','Liabilities','Equity','Basic') NOT NULL DEFAULT 'Basic'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `te_accounts`
--
INSERT INTO `te_accounts` (`id`, `acn`, `holder`, `adate`, `lastbal`, `code`, `loc`, `account_type`) VALUES
(1, '123456', 'Sales Account', '2018-01-01 00:00:00', '0.00', 'Default Sales Account', 0, 'Basic');
-- --------------------------------------------------------
--
-- Table structure for table `te_attendance`
--
CREATE TABLE `te_attendance` (
`id` int(11) NOT NULL,
`emp` int(11) NOT NULL,
`created` datetime NOT NULL DEFAULT current_timestamp(),
`adate` date NOT NULL,
`tfrom` time NOT NULL,
`tto` time NOT NULL,
`note` varchar(255) DEFAULT NULL,
`actual_hours` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_bank_ac`
--
CREATE TABLE `te_bank_ac` (
`id` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`bank` varchar(50) NOT NULL,
`acn` varchar(50) NOT NULL,
`code` varchar(50) DEFAULT NULL,
`note` varchar(2000) DEFAULT NULL,
`address` varchar(100) DEFAULT NULL,
`branch` varchar(100) DEFAULT NULL,
`enable` enum('Yes','No') NOT NULL DEFAULT 'No'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_config`
--
CREATE TABLE `te_config` (
`id` int(11) NOT NULL,
`type` int(3) NOT NULL,
`val1` varchar(50) NOT NULL,
`val2` varchar(200) NOT NULL,
`val3` varchar(100) NOT NULL,
`val4` varchar(100) NOT NULL,
`rid` int(11) NOT NULL,
`other` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_currencies`
--
CREATE TABLE `te_currencies` (
`id` int(4) NOT NULL,
`code` varchar(3) CHARACTER SET latin1 DEFAULT NULL,
`symbol` varchar(3) DEFAULT NULL,
`rate` decimal(10,5) NOT NULL,
`thous` char(1) CHARACTER SET latin1 DEFAULT NULL,
`dpoint` char(1) CHARACTER SET latin1 NOT NULL,
`decim` int(2) NOT NULL,
`cpos` int(11) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_customers`
--
CREATE TABLE `te_customers` (
`id` int(11) UNSIGNED NOT NULL,
`name` varchar(50) NOT NULL,
`phone` varchar(20) DEFAULT NULL,
`address` varchar(50) DEFAULT NULL,
`city` varchar(50) DEFAULT NULL,
`region` varchar(30) DEFAULT NULL,
`country` varchar(50) DEFAULT NULL,
`postbox` varchar(20) DEFAULT NULL,
`email` varchar(60) DEFAULT NULL,
`picture` varchar(100) NOT NULL DEFAULT 'example.png',
`gid` int(5) NOT NULL DEFAULT 1,
`company` varchar(100) DEFAULT NULL,
`taxid` varchar(100) DEFAULT NULL,
`name_s` varchar(100) DEFAULT NULL,
`phone_s` varchar(100) DEFAULT NULL,
`email_s` varchar(100) DEFAULT NULL,
`address_s` varchar(100) DEFAULT NULL,
`city_s` varchar(100) DEFAULT NULL,
`region_s` varchar(100) DEFAULT NULL,
`country_s` varchar(100) DEFAULT NULL,
`postbox_s` varchar(100) DEFAULT NULL,
`balance` decimal(16,2) DEFAULT 0.00,
`loc` int(11) DEFAULT 0,
`docid` varchar(255) DEFAULT NULL,
`custom1` varchar(255) DEFAULT NULL,
`discount_c` decimal(16,2) DEFAULT NULL,
`reg_date` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `te_customers`
--
INSERT INTO `te_customers` (`id`, `name`, `phone`, `address`, `city`, `region`, `country`, `postbox`, `email`, `picture`, `gid`, `company`, `taxid`, `name_s`, `phone_s`, `email_s`, `address_s`, `city_s`, `region_s`, `country_s`, `postbox_s`, `balance`, `loc`, `docid`, `custom1`, `discount_c`, `reg_date`) VALUES
(1, 'Walk-in Client', '0987654321', NULL, NULL, NULL, NULL, NULL, '<EMAIL>', 'example.png', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0.00', 0, NULL, NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `te_custom_data`
--
CREATE TABLE `te_custom_data` (
`id` int(11) NOT NULL,
`field_id` int(11) NOT NULL,
`rid` int(11) NOT NULL,
`module` int(3) NOT NULL,
`data` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_custom_fields`
--
CREATE TABLE `te_custom_fields` (
`id` int(11) NOT NULL,
`f_module` int(3) NOT NULL,
`f_type` varchar(30) NOT NULL,
`name` varchar(30) DEFAULT NULL,
`placeholder` varchar(30) DEFAULT NULL,
`value_data` text NOT NULL,
`f_view` int(2) NOT NULL,
`other` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_cust_group`
--
CREATE TABLE `te_cust_group` (
`id` int(10) NOT NULL,
`title` varchar(60) DEFAULT NULL,
`summary` varchar(250) DEFAULT NULL,
`disc_rate` decimal(9,2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `te_cust_group`
--
INSERT INTO `te_cust_group` (`id`, `title`, `summary`, `disc_rate`) VALUES
(1, 'Default Group', 'Default Group', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `te_documents`
--
CREATE TABLE `te_documents` (
`id` int(11) NOT NULL,
`title` varchar(100) DEFAULT NULL,
`filename` varchar(50) DEFAULT NULL,
`cdate` date NOT NULL,
`permission` int(1) DEFAULT NULL,
`cid` int(11) NOT NULL,
`fid` int(11) NOT NULL,
`rid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_draft`
--
CREATE TABLE `te_draft` (
`id` int(11) NOT NULL,
`tid` int(11) NOT NULL,
`invoicedate` date NOT NULL,
`invoiceduedate` date NOT NULL,
`subtotal` decimal(16,2) DEFAULT 0.00,
`shipping` decimal(16,2) DEFAULT 0.00,
`ship_tax` decimal(16,2) DEFAULT NULL,
`ship_tax_type` enum('incl','excl','off') DEFAULT 'off',
`discount` decimal(16,2) DEFAULT 0.00,
`tax` decimal(16,2) DEFAULT 0.00,
`total` decimal(16,2) DEFAULT 0.00,
`pmethod` varchar(14) DEFAULT NULL,
`notes` varchar(255) DEFAULT NULL,
`status` enum('paid','due','canceled','partial') NOT NULL DEFAULT 'due',
`csd` int(5) NOT NULL DEFAULT 0,
`eid` int(4) NOT NULL,
`pamnt` decimal(16,2) DEFAULT 0.00,
`items` decimal(10,2) NOT NULL,
`taxstatus` enum('yes','no','cgst','igst') NOT NULL DEFAULT 'yes',
`discstatus` tinyint(1) NOT NULL,
`format_discount` enum('%','flat','bflat','b_p') NOT NULL DEFAULT '%',
`refer` varchar(20) DEFAULT NULL,
`term` int(3) NOT NULL,
`multi` int(4) DEFAULT NULL,
`i_class` int(1) NOT NULL DEFAULT 0,
`loc` int(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_draft_items`
--
CREATE TABLE `te_draft_items` (
`id` int(11) NOT NULL,
`tid` int(11) NOT NULL,
`pid` int(11) NOT NULL DEFAULT 0,
`product` varchar(255) DEFAULT NULL,
`code` varchar(20) DEFAULT NULL,
`qty` decimal(10,2) NOT NULL DEFAULT 0.00,
`price` decimal(16,2) NOT NULL DEFAULT 0.00,
`tax` decimal(16,2) DEFAULT 0.00,
`discount` decimal(16,2) DEFAULT 0.00,
`subtotal` decimal(16,2) DEFAULT 0.00,
`totaltax` decimal(16,2) DEFAULT 0.00,
`totaldiscount` decimal(16,2) DEFAULT 0.00,
`product_des` text DEFAULT NULL,
`i_class` int(1) NOT NULL DEFAULT 0,
`unit` varchar(5) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_employees`
--
CREATE TABLE `te_employees` (
`id` int(11) NOT NULL,
`username` varchar(30) NOT NULL,
`name` varchar(50) NOT NULL,
`address` varchar(100) DEFAULT NULL,
`city` varchar(50) DEFAULT NULL,
`region` varchar(50) DEFAULT NULL,
`country` varchar(50) DEFAULT NULL,
`postbox` varchar(20) DEFAULT NULL,
`phone` varchar(15) DEFAULT NULL,
`phonealt` varchar(15) DEFAULT NULL,
`picture` varchar(50) NOT NULL DEFAULT 'example.png',
`sign` varchar(100) DEFAULT 'sign.png',
`joindate` datetime NOT NULL DEFAULT current_timestamp(),
`dept` int(11) DEFAULT NULL,
`degis` int(11) DEFAULT NULL,
`salary` decimal(16,2) DEFAULT 0.00,
`clock` int(1) DEFAULT NULL,
`clockin` int(11) DEFAULT NULL,
`clockout` int(11) DEFAULT NULL,
`c_rate` decimal(16,2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `te_employees`
--
INSERT INTO `te_employees` (`id`, `username`, `name`, `address`, `city`, `region`, `country`, `postbox`, `phone`, `phonealt`, `picture`, `sign`, `joindate`, `dept`, `degis`, `salary`, `clock`, `clockin`, `clockout`, `c_rate`) VALUES
(13, 'admin', 'BusinessOwner', 'Test Street', 'Test City', 'Test Region', 'Test Country', '123456', '12345678', '0', 'example.png', 'sign.png', '2021-07-20 16:13:07', NULL, NULL, '0.00', NULL, NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `te_events`
--
CREATE TABLE `te_events` (
`id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`description` text NOT NULL,
`color` varchar(7) NOT NULL DEFAULT '#3a87ad',
`start` datetime NOT NULL,
`end` datetime DEFAULT NULL,
`allDay` varchar(50) NOT NULL DEFAULT 'true',
`rel` int(2) NOT NULL DEFAULT 0,
`rid` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_gateways`
--
CREATE TABLE `te_gateways` (
`id` int(5) NOT NULL,
`name` varchar(50) NOT NULL,
`enable` enum('Yes','No') NOT NULL,
`key1` varchar(255) NOT NULL,
`key2` varchar(255) DEFAULT NULL,
`currency` varchar(3) NOT NULL DEFAULT 'USD',
`dev_mode` enum('true','false') NOT NULL,
`ord` int(5) NOT NULL,
`surcharge` decimal(16,2) NOT NULL,
`extra` varchar(40) NOT NULL DEFAULT 'none'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `te_gateways`
--
INSERT INTO `te_gateways` (`id`, `name`, `enable`, `key1`, `key2`, `currency`, `dev_mode`, `ord`, `surcharge`, `extra`) VALUES
(1, 'Stripe', 'Yes', 'sk_test_secratekey', 'stripe_public_key', 'USD', 'true', 1, '0.00', 'none'),
(2, 'Authorize.Net', 'Yes', 'TRANSACTIONKEY', 'LOGINID', 'AUD', 'true', 2, '0.00', 'none'),
(3, 'Pin Payments', 'Yes', 'TEST', 'none', 'AUD', 'true', 3, '0.00', 'none'),
(4, 'PayPal', 'Yes', 'MyPayPalClientId', 'MyPayPalSecret', 'USD', 'true', 4, '0.00', 'none'),
(5, 'SecurePay', 'Yes', 'ABC0001', 'abc123', 'AUD', 'true', 5, '0.00', 'none'),
(6, '2Checkout', 'Yes', 'Publishable Key', 'Private Key', 'USD', 'true', 6, '0.00', 'seller_id'),
(7, 'PayU Money', 'Yes', 'MERCHANT_KEY', 'MERCHANT_SALT', 'USD', 'true', 7, '0.00', 'none'),
(8, 'RazorPay', 'Yes', 'Key Id', 'Key Secret', 'INR', 'true', 8, '0.00', 'none');
-- --------------------------------------------------------
--
-- Table structure for table `te_goals`
--
CREATE TABLE `te_goals` (
`id` int(1) NOT NULL,
`income` bigint(20) NOT NULL,
`expense` bigint(20) NOT NULL,
`sales` bigint(20) NOT NULL,
`netincome` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `te_goals`
--
INSERT INTO `te_goals` (`id`, `income`, `expense`, `sales`, `netincome`) VALUES
(1, 999999, 999999, 999999, 999999);
-- --------------------------------------------------------
--
-- Table structure for table `te_hrm`
--
CREATE TABLE `te_hrm` (
`id` int(11) NOT NULL,
`typ` int(2) NOT NULL,
`rid` int(11) NOT NULL,
`val1` varchar(255) DEFAULT NULL,
`val2` varchar(255) DEFAULT NULL,
`val3` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_invoices`
--
CREATE TABLE `te_invoices` (
`id` int(11) NOT NULL,
`tid` int(11) NOT NULL,
`invoicedate` date NOT NULL,
`invoiceduedate` date NOT NULL,
`subtotal` decimal(16,2) DEFAULT 0.00,
`shipping` decimal(16,2) DEFAULT 0.00,
`ship_tax` decimal(16,2) DEFAULT NULL,
`ship_tax_type` enum('incl','excl','off') DEFAULT 'off',
`discount` decimal(16,2) DEFAULT 0.00,
`discount_rate` decimal(10,2) DEFAULT 0.00,
`tax` decimal(16,2) DEFAULT 0.00,
`total` decimal(16,2) DEFAULT 0.00,
`pmethod` varchar(14) DEFAULT NULL,
`notes` varchar(255) DEFAULT NULL,
`status` enum('paid','due','canceled','partial') NOT NULL DEFAULT 'due',
`csd` int(5) NOT NULL DEFAULT 0,
`eid` int(4) NOT NULL,
`pamnt` decimal(16,2) DEFAULT 0.00,
`items` decimal(10,2) NOT NULL,
`taxstatus` enum('yes','no','incl','cgst','igst') NOT NULL DEFAULT 'yes',
`discstatus` tinyint(1) NOT NULL,
`format_discount` enum('%','flat','b_p','bflat') NOT NULL DEFAULT '%',
`refer` varchar(20) DEFAULT NULL,
`term` int(3) NOT NULL,
`multi` int(4) DEFAULT NULL,
`i_class` int(1) NOT NULL DEFAULT 0,
`loc` int(4) NOT NULL,
`r_time` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_invoice_items`
--
CREATE TABLE `te_invoice_items` (
`id` int(11) NOT NULL,
`tid` int(11) NOT NULL,
`pid` int(11) NOT NULL DEFAULT 0,
`product` varchar(255) DEFAULT NULL,
`code` varchar(20) DEFAULT NULL,
`qty` decimal(10,2) NOT NULL DEFAULT 0.00,
`price` decimal(16,2) NOT NULL DEFAULT 0.00,
`tax` decimal(16,2) DEFAULT 0.00,
`discount` decimal(16,2) DEFAULT 0.00,
`subtotal` decimal(16,2) DEFAULT 0.00,
`totaltax` decimal(16,2) DEFAULT 0.00,
`totaldiscount` decimal(16,2) DEFAULT 0.00,
`product_des` text DEFAULT NULL,
`i_class` int(1) NOT NULL DEFAULT 0,
`unit` varchar(5) DEFAULT NULL,
`serial` varchar(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_locations`
--
CREATE TABLE `te_locations` (
`id` int(3) NOT NULL,
`cname` varchar(100) NOT NULL,
`address` varchar(255) DEFAULT NULL,
`city` varchar(50) DEFAULT NULL,
`region` varchar(40) DEFAULT NULL,
`country` varchar(40) DEFAULT NULL,
`postbox` varchar(20) DEFAULT NULL,
`phone` varchar(20) DEFAULT NULL,
`email` varchar(50) DEFAULT NULL,
`taxid` varchar(40) DEFAULT NULL,
`logo` varchar(50) DEFAULT 'logo.png',
`cur` int(4) NOT NULL,
`ware` int(11) DEFAULT 0,
`ext` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_log`
--
CREATE TABLE `te_log` (
`id` int(11) NOT NULL,
`note` mediumtext NOT NULL,
`created` datetime NOT NULL DEFAULT current_timestamp(),
`user` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `te_log`
--
INSERT INTO `te_log` (`id`, `note`, `created`, `user`) VALUES
(1, '[Logged In] <EMAIL>', '2021-07-20 09:13:45', ''),
(2, '[Logged Out] admin', '2021-07-20 09:17:36', ''),
(3, '[Logged In] <EMAIL>', '2021-07-20 10:41:03', ''),
(4, '[Logged Out] admin', '2021-07-20 11:01:58', ''),
(5, '[Logged In] <EMAIL>', '2021-07-20 11:07:38', '');
-- --------------------------------------------------------
--
-- Table structure for table `te_login_attempts`
--
CREATE TABLE `te_login_attempts` (
`id` int(11) NOT NULL,
`ip_address` varchar(39) DEFAULT '0',
`timestamp` datetime DEFAULT NULL,
`login_attempts` tinyint(2) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `te_metadata`
--
CREATE TABLE `te_metadata` (
`id` int(11) NOT NULL,
`type` int(3) NOT NULL,
`rid` int(11) NOT NULL,
`col1` varchar(255) DEFAULT NULL,
`col2` varchar(255) DEFAULT NULL,
`d_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `te_milestones`
--
CREATE TABLE `te_milestones` (
`id` int(11) NOT NULL,
`pid` int(11) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`sdate` date NOT NULL,
`edate` date NOT NULL,
`exp` text NOT NULL,
`color` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_movers`
--
CREATE TABLE `te_movers` (
`id` int(11) NOT NULL,
`d_type` int(3) NOT NULL,
`rid1` int(11) NOT NULL,
`rid2` int(11) NOT NULL,
`rid3` int(11) NOT NULL,
`d_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`note` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_notes`
--
CREATE TABLE `te_notes` (
`id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`content` text DEFAULT NULL,
`cdate` date NOT NULL,
`last_edit` datetime NOT NULL DEFAULT current_timestamp(),
`cid` int(11) NOT NULL DEFAULT 0,
`fid` int(11) NOT NULL DEFAULT 0,
`rid` int(11) NOT NULL DEFAULT 0,
`ntype` int(2) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_pms`
--
CREATE TABLE `te_pms` (
`id` int(11) UNSIGNED NOT NULL,
`sender_id` int(11) UNSIGNED NOT NULL,
`receiver_id` int(11) UNSIGNED NOT NULL,
`title` varchar(255) NOT NULL,
`message` text DEFAULT NULL,
`date_sent` datetime DEFAULT NULL,
`date_read` datetime DEFAULT NULL,
`pm_deleted_sender` int(1) NOT NULL,
`pm_deleted_receiver` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_premissions`
--
CREATE TABLE `te_premissions` (
`id` int(11) NOT NULL,
`module` enum('Sales','Stock','Crm','Project','Accounts','Miscellaneous','Employees','Assign Project','Customer Profile','Reports','Delete') NOT NULL,
`r_1` int(1) NOT NULL,
`r_2` int(1) NOT NULL,
`r_3` int(1) NOT NULL,
`r_4` int(1) NOT NULL,
`r_5` int(1) NOT NULL,
`r_6` int(1) NOT NULL,
`r_7` int(1) NOT NULL,
`r_8` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `te_premissions`
--
INSERT INTO `te_premissions` (`id`, `module`, `r_1`, `r_2`, `r_3`, `r_4`, `r_5`, `r_6`, `r_7`, `r_8`) VALUES
(1, 'Sales', 0, 1, 1, 1, 1, 0, 0, 0),
(2, 'Stock', 1, 0, 1, 1, 1, 0, 0, 0),
(3, 'Crm', 0, 0, 1, 1, 1, 0, 0, 0),
(4, 'Project', 0, 0, 0, 1, 1, 1, 0, 0),
(5, 'Accounts', 0, 0, 0, 1, 1, 0, 0, 0),
(6, 'Miscellaneous', 0, 0, 0, 1, 1, 0, 0, 0),
(7, 'Assign Project', 0, 1, 0, 0, 1, 0, 0, 0),
(8, 'Customer Profile', 0, 0, 0, 0, 1, 0, 0, 0),
(9, 'Employees', 0, 0, 0, 0, 1, 0, 0, 0),
(10, 'Reports', 0, 0, 0, 1, 1, 0, 0, 0),
(11, 'Delete', 1, 1, 1, 1, 1, 1, 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `te_products`
--
CREATE TABLE `te_products` (
`pid` int(11) NOT NULL,
`pcat` int(3) NOT NULL DEFAULT 1,
`warehouse` int(11) NOT NULL DEFAULT 1,
`product_name` varchar(80) NOT NULL,
`product_code` varchar(30) DEFAULT NULL,
`product_price` decimal(16,2) DEFAULT 0.00,
`fproduct_price` decimal(16,2) DEFAULT 0.00,
`taxrate` decimal(16,2) DEFAULT 0.00,
`disrate` decimal(16,2) DEFAULT 0.00,
`qty` decimal(10,2) NOT NULL,
`product_des` text DEFAULT NULL,
`alert` int(11) DEFAULT NULL,
`unit` varchar(4) DEFAULT NULL,
`image` varchar(120) DEFAULT 'default.png',
`barcode` varchar(16) DEFAULT NULL,
`merge` int(2) NOT NULL,
`sub` int(11) NOT NULL,
`vb` int(11) NOT NULL,
`expiry` date DEFAULT NULL,
`code_type` varchar(8) DEFAULT 'EAN13',
`sub_id` int(11) DEFAULT 0,
`b_id` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_product_cat`
--
CREATE TABLE `te_product_cat` (
`id` int(3) NOT NULL,
`title` varchar(100) NOT NULL,
`extra` varchar(255) DEFAULT NULL,
`c_type` int(2) DEFAULT 0,
`rel_id` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `te_product_cat`
--
INSERT INTO `te_product_cat` (`id`, `title`, `extra`, `c_type`, `rel_id`) VALUES
(1, 'General', 'General Cat', 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `te_product_serials`
--
CREATE TABLE `te_product_serials` (
`id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`serial` varchar(200) DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `te_projects`
--
CREATE TABLE `te_projects` (
`id` int(11) NOT NULL,
`p_id` varchar(20) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`status` enum('Waiting','Pending','Terminated','Finished','Progress') NOT NULL DEFAULT 'Pending',
`priority` enum('Low','Medium','High','Urgent') NOT NULL DEFAULT 'Medium',
`progress` int(3) NOT NULL,
`cid` int(11) NOT NULL,
`sdate` date NOT NULL,
`edate` date NOT NULL,
`tag` varchar(255) DEFAULT NULL,
`phase` varchar(255) DEFAULT NULL,
`note` text DEFAULT NULL,
`worth` decimal(16,2) NOT NULL DEFAULT 0.00,
`ptype` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_project_meta`
--
CREATE TABLE `te_project_meta` (
`id` int(11) NOT NULL,
`pid` int(11) NOT NULL,
`meta_key` int(11) NOT NULL,
`meta_data` varchar(200) DEFAULT NULL,
`value` varchar(255) DEFAULT NULL,
`key3` varchar(20) DEFAULT NULL,
`key4` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_promo`
--
CREATE TABLE `te_promo` (
`id` int(11) NOT NULL,
`code` varchar(15) NOT NULL,
`amount` decimal(10,2) NOT NULL,
`valid` date NOT NULL,
`active` int(1) NOT NULL,
`note` varchar(100) NOT NULL,
`reflect` int(11) NOT NULL,
`qty` int(11) NOT NULL,
`available` int(11) NOT NULL,
`location` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_purchase`
--
CREATE TABLE `te_purchase` (
`id` int(11) NOT NULL,
`tid` int(11) NOT NULL,
`invoicedate` date NOT NULL,
`invoiceduedate` date NOT NULL,
`subtotal` decimal(16,2) DEFAULT 0.00,
`shipping` decimal(16,2) DEFAULT 0.00,
`ship_tax` decimal(16,2) DEFAULT NULL,
`ship_tax_type` enum('incl','excl','off') DEFAULT 'off',
`discount` decimal(16,2) DEFAULT 0.00,
`tax` decimal(16,2) DEFAULT 0.00,
`total` decimal(16,2) DEFAULT 0.00,
`pmethod` varchar(14) DEFAULT NULL,
`notes` varchar(255) DEFAULT NULL,
`status` enum('paid','due','canceled','partial') DEFAULT 'due',
`csd` int(5) NOT NULL DEFAULT 0,
`eid` int(4) NOT NULL,
`pamnt` decimal(16,2) DEFAULT 0.00,
`items` decimal(10,2) NOT NULL,
`taxstatus` enum('yes','no','incl','cgst','igst') DEFAULT 'yes',
`discstatus` tinyint(1) NOT NULL,
`format_discount` enum('%','flat','b_p','bflat') DEFAULT NULL,
`refer` varchar(20) DEFAULT NULL,
`term` int(3) NOT NULL,
`loc` int(4) NOT NULL,
`multi` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_purchase_items`
--
CREATE TABLE `te_purchase_items` (
`id` int(11) NOT NULL,
`tid` int(11) NOT NULL,
`pid` int(11) NOT NULL,
`product` varchar(255) DEFAULT NULL,
`code` varchar(20) DEFAULT NULL,
`qty` decimal(10,2) NOT NULL,
`price` decimal(16,2) DEFAULT 0.00,
`tax` decimal(16,2) DEFAULT 0.00,
`discount` decimal(16,2) DEFAULT 0.00,
`subtotal` decimal(16,2) DEFAULT 0.00,
`totaltax` decimal(16,2) DEFAULT 0.00,
`totaldiscount` decimal(16,2) DEFAULT 0.00,
`product_des` text DEFAULT NULL,
`unit` varchar(5) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_quotes`
--
CREATE TABLE `te_quotes` (
`id` int(11) NOT NULL,
`tid` int(11) NOT NULL,
`invoicedate` date NOT NULL,
`invoiceduedate` date NOT NULL,
`subtotal` decimal(16,2) DEFAULT 0.00,
`shipping` decimal(16,2) DEFAULT 0.00,
`ship_tax` decimal(16,2) DEFAULT NULL,
`ship_tax_type` enum('incl','excl','off') DEFAULT 'off',
`discount` decimal(16,2) DEFAULT 0.00,
`tax` decimal(16,2) DEFAULT 0.00,
`total` decimal(16,2) DEFAULT 0.00,
`pmethod` varchar(14) DEFAULT NULL,
`notes` varchar(255) DEFAULT NULL,
`status` enum('pending','accepted','rejected','customer_approved') DEFAULT 'pending',
`csd` int(5) NOT NULL DEFAULT 0,
`eid` int(4) NOT NULL,
`pamnt` decimal(16,2) NOT NULL,
`items` decimal(10,2) NOT NULL,
`taxstatus` enum('yes','no','incl','cgst','igst') DEFAULT 'yes',
`discstatus` tinyint(1) NOT NULL,
`format_discount` enum('%','flat','b_p','bflat') DEFAULT '%',
`refer` varchar(20) DEFAULT NULL,
`term` int(3) NOT NULL,
`proposal` text DEFAULT NULL,
`multi` int(4) DEFAULT NULL,
`loc` int(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_quotes_items`
--
CREATE TABLE `te_quotes_items` (
`id` int(11) NOT NULL,
`tid` int(11) NOT NULL,
`pid` int(11) NOT NULL,
`product` varchar(255) DEFAULT NULL,
`code` varchar(20) DEFAULT NULL,
`qty` decimal(16,2) NOT NULL,
`price` decimal(16,2) DEFAULT 0.00,
`tax` decimal(16,2) DEFAULT 0.00,
`discount` decimal(16,2) DEFAULT 0.00,
`subtotal` decimal(16,2) DEFAULT 0.00,
`totaltax` decimal(16,2) DEFAULT 0.00,
`totaldiscount` decimal(16,2) DEFAULT 0.00,
`product_des` text DEFAULT NULL,
`unit` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_register`
--
CREATE TABLE `te_register` (
`id` int(11) NOT NULL,
`uid` int(11) NOT NULL,
`o_date` datetime NOT NULL,
`c_date` datetime NOT NULL,
`cash` decimal(16,2) NOT NULL,
`card` decimal(16,2) NOT NULL,
`bank` decimal(16,2) NOT NULL,
`cheque` decimal(16,2) NOT NULL,
`r_change` decimal(16,2) NOT NULL,
`active` int(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `te_register`
--
INSERT INTO `te_register` (`id`, `uid`, `o_date`, `c_date`, `cash`, `card`, `bank`, `cheque`, `r_change`, `active`) VALUES
(1, 8, '2021-07-20 09:14:22', '0000-00-00 00:00:00', '0.00', '0.00', '0.00', '0.00', '0.00', 1);
-- --------------------------------------------------------
--
-- Table structure for table `te_reports`
--
CREATE TABLE `te_reports` (
`id` int(11) NOT NULL,
`month` varchar(10) DEFAULT NULL,
`year` int(4) NOT NULL,
`invoices` int(11) NOT NULL,
`sales` decimal(16,2) DEFAULT 0.00,
`items` decimal(10,2) NOT NULL,
`income` decimal(16,2) DEFAULT 0.00,
`expense` decimal(16,2) DEFAULT 0.00
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_restkeys`
--
CREATE TABLE `te_restkeys` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`key` varchar(40) DEFAULT NULL,
`level` int(2) NOT NULL,
`ignore_limits` tinyint(1) NOT NULL DEFAULT 0,
`is_private_key` tinyint(1) NOT NULL DEFAULT 0,
`ip_addresses` text DEFAULT NULL,
`date_created` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_smtp`
--
CREATE TABLE `te_smtp` (
`id` int(11) NOT NULL,
`host` varchar(100) NOT NULL,
`port` int(11) NOT NULL,
`auth` enum('true','false') NOT NULL,
`auth_type` enum('none','tls','ssl') NOT NULL,
`username` varchar(100) NOT NULL,
`password` varchar(50) NOT NULL,
`sender` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `te_smtp`
--
INSERT INTO `te_smtp` (`id`, `host`, `port`, `auth`, `auth_type`, `username`, `password`, `sender`) VALUES
(1, 'smtp.com', 587, 'true', 'none', '<EMAIL>', '123456', '<EMAIL>');
-- --------------------------------------------------------
--
-- Table structure for table `te_stock_r`
--
CREATE TABLE `te_stock_r` (
`id` int(11) NOT NULL,
`tid` int(8) NOT NULL,
`invoicedate` date NOT NULL,
`invoiceduedate` date NOT NULL,
`subtotal` decimal(16,2) DEFAULT 0.00,
`shipping` decimal(16,2) DEFAULT 0.00,
`ship_tax` decimal(16,2) DEFAULT NULL,
`ship_tax_type` enum('incl','excl','off') DEFAULT 'off',
`discount` decimal(16,2) DEFAULT 0.00,
`tax` decimal(16,2) DEFAULT 0.00,
`total` decimal(16,2) DEFAULT 0.00,
`pmethod` varchar(14) DEFAULT NULL,
`notes` varchar(255) DEFAULT NULL,
`status` enum('pending','accepted','rejected','partial','canceled') DEFAULT 'pending',
`csd` int(5) NOT NULL DEFAULT 0,
`eid` int(4) NOT NULL,
`pamnt` decimal(16,2) DEFAULT 0.00,
`items` decimal(10,0) NOT NULL,
`taxstatus` enum('yes','no','incl','cgst','igst') DEFAULT 'yes',
`discstatus` tinyint(1) NOT NULL,
`format_discount` enum('%','flat','bflat','b_p') DEFAULT NULL,
`refer` varchar(20) DEFAULT NULL,
`term` int(3) NOT NULL,
`loc` int(4) NOT NULL,
`i_class` int(1) NOT NULL DEFAULT 0,
`multi` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_stock_r_items`
--
CREATE TABLE `te_stock_r_items` (
`id` int(11) NOT NULL,
`tid` int(11) NOT NULL,
`pid` int(11) NOT NULL,
`product` varchar(255) DEFAULT NULL,
`code` varchar(20) DEFAULT NULL,
`qty` decimal(10,2) NOT NULL,
`price` decimal(16,2) DEFAULT 0.00,
`tax` decimal(16,2) DEFAULT 0.00,
`discount` decimal(16,2) DEFAULT 0.00,
`subtotal` decimal(16,2) DEFAULT 0.00,
`totaltax` decimal(16,2) DEFAULT 0.00,
`totaldiscount` decimal(16,2) DEFAULT 0.00,
`product_des` text DEFAULT NULL,
`unit` varchar(5) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_supplier`
--
CREATE TABLE `te_supplier` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(50) NOT NULL,
`phone` varchar(20) DEFAULT NULL,
`address` varchar(50) DEFAULT NULL,
`city` varchar(50) DEFAULT NULL,
`region` varchar(30) DEFAULT NULL,
`country` varchar(50) DEFAULT NULL,
`postbox` varchar(20) DEFAULT NULL,
`email` varchar(60) DEFAULT NULL,
`picture` varchar(100) NOT NULL DEFAULT 'example.png',
`gid` int(5) NOT NULL DEFAULT 1,
`company` varchar(100) DEFAULT NULL,
`taxid` varchar(100) DEFAULT NULL,
`loc` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_system`
--
CREATE TABLE `te_system` (
`id` int(1) NOT NULL,
`cname` char(50) NOT NULL,
`address` varchar(255) NOT NULL,
`city` varchar(30) NOT NULL,
`region` varchar(40) NOT NULL,
`country` varchar(30) NOT NULL,
`postbox` varchar(15) NOT NULL,
`phone` varchar(20) NOT NULL,
`email` varchar(40) NOT NULL,
`taxid` varchar(20) NOT NULL,
`tax` int(11) NOT NULL,
`currency` varchar(4) CHARACTER SET utf8 COLLATE utf8_swedish_ci NOT NULL,
`currency_format` int(1) NOT NULL,
`prefix` varchar(5) NOT NULL,
`dformat` int(1) NOT NULL,
`zone` varchar(25) NOT NULL,
`logo` varchar(30) NOT NULL,
`lang` varchar(20) DEFAULT 'english',
`foundation` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `te_system`
--
INSERT INTO `te_system` (`id`, `cname`, `address`, `city`, `region`, `country`, `postbox`, `phone`, `email`, `taxid`, `tax`, `currency`, `currency_format`, `prefix`, `dformat`, `zone`, `logo`, `lang`, `foundation`) VALUES
(1, 'ABC Company', '412 Example South Street,', 'Los Angeles', 'FL', 'USA', '123', '410-987-89-60', '<EMAIL>', '23442', -1, 'Rp.', 0, 'SRN', 1, 'Etc/Greenwich', 'logo.png', 'indonesian', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `te_terms`
--
CREATE TABLE `te_terms` (
`id` int(4) NOT NULL,
`title` varchar(100) NOT NULL,
`type` int(1) NOT NULL,
`terms` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `te_terms`
--
INSERT INTO `te_terms` (`id`, `title`, `type`, `terms`) VALUES
(1, 'Payment On Receipt', 0, '<p>1. 10% discount if payment received within ten days otherwise payment 30 days\r\n after invoice date<br></p>');
-- --------------------------------------------------------
--
-- Table structure for table `te_tickets`
--
CREATE TABLE `te_tickets` (
`id` int(11) NOT NULL,
`subject` varchar(255) NOT NULL,
`created` datetime NOT NULL,
`cid` int(11) NOT NULL,
`status` enum('Solved','Processing','Waiting') NOT NULL,
`section` varchar(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_tickets_th`
--
CREATE TABLE `te_tickets_th` (
`id` int(11) NOT NULL,
`tid` int(11) NOT NULL,
`message` text DEFAULT NULL,
`cid` int(11) NOT NULL,
`eid` int(11) NOT NULL,
`cdate` datetime NOT NULL,
`attach` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_todolist`
--
CREATE TABLE `te_todolist` (
`id` int(11) NOT NULL,
`tdate` date NOT NULL,
`name` varchar(100) DEFAULT NULL,
`status` enum('Due','Done','Progress') NOT NULL DEFAULT 'Due',
`start` date NOT NULL,
`duedate` date NOT NULL,
`description` text DEFAULT NULL,
`eid` int(11) NOT NULL,
`aid` int(11) NOT NULL,
`related` int(11) NOT NULL,
`priority` enum('Low','Medium','High','Urgent') NOT NULL,
`rid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_transactions`
--
CREATE TABLE `te_transactions` (
`id` int(11) NOT NULL,
`acid` int(11) NOT NULL,
`account` varchar(200) NOT NULL,
`type` enum('Income','Expense','Transfer') NOT NULL,
`cat` varchar(200) NOT NULL,
`debit` decimal(16,2) DEFAULT 0.00,
`credit` decimal(16,2) DEFAULT 0.00,
`payer` varchar(200) DEFAULT NULL,
`payerid` int(11) NOT NULL DEFAULT 0,
`method` varchar(200) DEFAULT NULL,
`date` date NOT NULL,
`tid` int(11) NOT NULL DEFAULT 0,
`eid` int(11) NOT NULL,
`note` varchar(255) DEFAULT NULL,
`ext` int(1) DEFAULT 0,
`loc` int(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_trans_cat`
--
CREATE TABLE `te_trans_cat` (
`id` int(11) NOT NULL,
`name` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `te_trans_cat`
--
INSERT INTO `te_trans_cat` (`id`, `name`) VALUES
(1, 'Income'),
(2, 'Expenses'),
(3, 'Other');
-- --------------------------------------------------------
--
-- Table structure for table `te_units`
--
CREATE TABLE `te_units` (
`id` int(11) NOT NULL,
`name` varchar(20) NOT NULL,
`code` varchar(5) NOT NULL,
`type` int(1) NOT NULL,
`sub` int(1) NOT NULL,
`rid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `te_users`
--
CREATE TABLE `te_users` (
`id` int(11) UNSIGNED NOT NULL,
`email` varchar(100) NOT NULL,
`pass` varchar(64) NOT NULL,
`username` varchar(100) DEFAULT NULL,
`banned` tinyint(1) DEFAULT 0,
`last_login` datetime DEFAULT NULL,
`last_activity` datetime DEFAULT NULL,
`date_created` datetime DEFAULT NULL,
`forgot_exp` text DEFAULT NULL,
`remember_time` datetime DEFAULT NULL,
`remember_exp` text DEFAULT NULL,
`verification_code` text DEFAULT NULL,
`totp_secret` varchar(16) DEFAULT NULL,
`ip_address` text DEFAULT NULL,
`roleid` int(1) NOT NULL,
`picture` varchar(50) DEFAULT NULL,
`loc` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `te_users`
--
INSERT INTO `te_users` (`id`, `email`, `pass`, `username`, `banned`, `last_login`, `last_activity`, `date_created`, `forgot_exp`, `remember_time`, `remember_exp`, `verification_code`, `totp_secret`, `ip_address`, `roleid`, `picture`, `loc`) VALUES
(8, '<EMAIL>', '<PASSWORD>b0f088f9427e4d56600b065bbe', 'admin', 0, '2021-07-20 11:07:38', '2021-07-20 11:07:38', '2021-07-20 11:12:42', NULL, NULL, NULL, '', NULL, '::1', 5, 'example.png', 0);
-- --------------------------------------------------------
--
-- Table structure for table `te_warehouse`
--
CREATE TABLE `te_warehouse` (
`id` int(3) NOT NULL,
`title` varchar(100) NOT NULL,
`extra` varchar(255) DEFAULT NULL,
`loc` int(4) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `te_warehouse`
--
INSERT INTO `te_warehouse` (`id`, `title`, `extra`, `loc`) VALUES
(1, 'Main WareHouse', 'The Main WareHouse', 0);
-- --------------------------------------------------------
--
-- Table structure for table `univarsal_api`
--
CREATE TABLE `univarsal_api` (
`id` int(11) NOT NULL,
`name` varchar(100) DEFAULT NULL,
`key1` varchar(255) DEFAULT NULL,
`key2` varchar(255) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`method` varchar(10) DEFAULT NULL,
`other` text DEFAULT NULL,
`active` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `univarsal_api`
--
INSERT INTO `univarsal_api` (`id`, `name`, `key1`, `key2`, `url`, `method`, `other`, `active`) VALUES
(1, 'Goo.gl URL Shortner', 'yourkey', '0', '0', '0', '0', 0),
(2, 'Twilio SMS API', 'ac', 'key', '+11234567', '0', '0', 1),
(3, 'Company Support', '1', '1', '<EMAIL>', NULL, '<p>Your footer</p>', 1),
(4, 'Currency', '.', ',', '2', 'l', '', 0),
(5, 'Exchange', 'key1v', 'key2', 'USD', NULL, NULL, 0),
(6, 'New Invoice Notification', '[{Company}] Invoice #{BillNumber} Generated', NULL, NULL, NULL, '<p>Dear\r\n Client,\r\n</p><p>We are contacting you in regard to a payment received for invoice # {BillNumber} that has\r\n been created on your account. You may find the invoice with below link.\r\n\r\nView\r\n Invoice\r\n{URL}\r\n\r\nWe look forward to conducting future business with you.\r\n\r\nKind\r\n Regards,\r\nTeam\r\n{CompanyDetails}</p>', NULL),
(7, 'Invoice Payment Reminder', '[{Company}] Invoice #{BillNumber} Payment Reminder', NULL, NULL, NULL, '<p>Dear\r\n Client,</p><p>We are contacting you in regard to a payment reminder of invoice # {BillNumber} that has been\r\n created on your account. You may find the invoice with below link. Please pay the balance of {Amount} due by\r\n {DueDate}.</p><p>\r\n\r\n<b>View Invoice</b></p><p><span style=\"font-size: 1rem;\">{URL}\r\n</span></p><p>\r\n <span style=\"font-size: 1rem;\">\r\nWe look forward to conducting future business with you.</span></p><p>\r\n <span style=\"font-size: 1rem;\">\r\n\r\nKind Regards,\r\n</span></p><p><span style=\"font-size: 1rem;\">\r\nTeam\r\n</span>\r\n </p><p><span style=\"font-size: 1rem;\">\r\n{CompanyDetails}</span></p>', NULL),
(8, 'Invoice Refund Proceeded', '{Company} Invoice #{BillNumber} Refund Proceeded', NULL, NULL, NULL, '<p>Dear\r\n Client,</p><p>\r\nWe are contacting you in regard to a refund request processed for invoice # {BillNumber}\r\n that has been created on your account. You may find the invoice with below link. Please pay the balance of\r\n {Amount} by {DueDate}.\r\n</p><p>\r\nView Invoice\r\n</p><p>{URL}\r\n</p><p>\r\nWe look forward to\r\n conducting future business with you.\r\n</p><p>\r\nKind Regards,\r\n</p><p>\r\n \r\nTeam\r\n\r\n{CompanyDetails}</p>', NULL),
(9, 'Invoice payment Received', '{Company} Payment Received for Invoice #{BillNumber}', NULL, NULL, NULL, '<p>\r\n Dear Client,\r\n</p><p>We are contacting you in regard to a payment received for invoice # {BillNumber} that\r\n has been created on your account. You can find the invoice with below link.\r\n</p><p>\r\nView Invoice</p>\r\n <p>\r\n{URL}\r\n</p><p>\r\nWe look forward to conducting future business with you.\r\n</p><p>\r\nKind\r\n Regards,\r\n</p><p>\r\nTeam\r\n</p><p>\r\n{CompanyDetails}</p>', NULL),
(10, 'Invoice Overdue Notice', '{Company} Invoice #{BillNumber} Generated for you', NULL, NULL, NULL, '<p>Dear\r\n Client,</p><p>\r\nWe are contacting you in regard to an Overdue Notice for invoice # {BillNumber} that has\r\n been created on your account. You may find the invoice with below link.\r\nPlease pay the balance of\r\n {Amount} due by {DueDate}.\r\n</p><p>View Invoice\r\n</p><p>{URL}\r\n</p><p>\r\nWe look forward to\r\n conducting future business with you.\r\n</p><p>\r\nKind Regards,\r\n</p><p>\r\nTeam</p><p>\r\n \r\n\r\n{CompanyDetails}</p>', NULL),
(11, 'Quote Proposal', '{Company} Quote #{BillNumber} Generated for you', NULL, NULL, NULL, '<p>Dear Client,</p>\r\n <p>\r\nWe are contacting you in regard to a new quote # {BillNumber} that has been created on your account. You\r\n may find the quote with below link.\r\n</p><p>\r\nView Invoice\r\n</p><p>{URL}\r\n</p><p>\r\nWe look forward\r\n to conducting future business with you.</p><p>\r\n\r\nKind Regards,</p><p>\r\n\r\nTeam</p><p>\r\n \r\n\r\n{CompanyDetails}</p>', NULL),
(12, 'Purchase Order Request', '{Company} Purchase Order #{BillNumber} Requested', NULL, NULL, NULL, '<p>Dear\r\n Client,\r\n</p><p>We are contacting you in regard to a new purchase # {BillNumber} that has been requested\r\n on your account. You may find the order with below link. </p><p>\r\n\r\nView Invoice\r\n</p><p>{URL}</p><p>\r\n \r\n\r\nWe look forward to conducting future business with you.</p><p>\r\n\r\nKind Regards,\r\n</p><p>\r\n \r\nTeam</p><p>\r\n\r\n{CompanyDetails}</p>', NULL),
(13, 'Stock Return Mail', '{Company} New purchase return # {BillNumber}', NULL, NULL, NULL, 'Dear Client,\r\n\r\nWe are contacting you in regard to a new purchase return # {BillNumber} that has been requested on your account. You may find the order with below link.\r\n\r\nView Invoice\r\n\r\n{URL}\r\n\r\nWe look forward to conducting future business with you.\r\n\r\nKind Regards,\r\n\r\nTeam\r\n\r\n{CompanyDetails}', NULL),
(14, 'Customer Registration', '{Company} Customer Registration - {NAME}', NULL, NULL, NULL, 'Dear Customer,\r\nThank You for registration, please confirm the registration by the following URL {REG_URL}\r\nRegards', NULL),
(15, ' Customer Password Reset', '{Company} Customer Password Reset- {NAME}', NULL, NULL, NULL, 'Dear Customer,\r\nPlease reset the password by the following URL {RESET_URL}\r\nRegards', NULL),
(16, 'Customer Registration by Employee', '{Company} Customer Registration - {NAME}', '0', '0', '0', 'Dear Customer,\r\nThank You for registration.\r\nLogin URL: {URL}\r\nLogin Email: {EMAIL}\r\nPassword: {PASSWORD}\r\n\r\nRegards\r\n{CompanyDetails}', 0),
(30, 'New Invoice Notification', NULL, NULL, NULL, NULL, 'Dear Customer, new invoice # {BillNumber} generated. {URL} Regards', NULL),
(31, 'Invoice Payment Reminder', NULL, NULL, NULL, NULL, 'Dear Customer, Please make payment of invoice # {BillNumber}. {URL} Regards', NULL),
(32, 'Invoice Refund Proceeded', NULL, NULL, NULL, NULL, 'Dear Customer, Refund generated of invoice # {BillNumber}. {URL} Regards', NULL),
(33, 'Invoice payment Received', NULL, NULL, NULL, NULL, 'Dear Customer, Payment received of invoice # {BillNumber}. {URL} Regards', NULL),
(34, 'Invoice Overdue Notice', NULL, NULL, NULL, NULL, 'Dear Customer, Dear Customer,Payment is overdue of invoice # {BillNumber}. {URL} Regards', NULL),
(35, 'Quote Proposal', NULL, NULL, NULL, NULL, 'Dear Customer, Dear Customer, a quote created for you # {BillNumber}. {URL} Regards', NULL),
(36, 'Purchase Order Request', NULL, NULL, NULL, NULL, 'Dear Customer, Dear, a purchased order for you # {BillNumber}. {URL} Regards', NULL),
(51, 'QT#', 'PO#', 'SUB#', 'SR#', 'TRN#', 'SRN#', 1),
(52, 'ThermalPrint', '0', NULL, NULL, NULL, 'POS#', 0),
(53, 'ConfPort', 'Public Key', '0', 'Private Key', NULL, NULL, 1),
(54, 'online_payment', '1', 'USD', '1', '1', NULL, 1),
(55, 'CronJob', '99293768', 'rec_email', 'email', 'rec_due', 'recemail', NULL),
(56, 'Auto Email SMS', 'email', 'sms', NULL, NULL, NULL, NULL),
(60, 'Warehouse', '1', NULL, NULL, NULL, NULL, NULL),
(61, 'Discount & Shipping', '%', '10.00', 'incl', NULL, '% Discount After TAX', NULL),
(62, 'AutoAttendance', '1', '0', '0', '0', '0', NULL),
(63, 'Zero Stock Billing', '1', '0', '0', '0', '0', 0),
(64, 'FrontEndSection', '0', '0', '0', '0', NULL, 0),
(65, 'Dual Entry', '0', '1', '0', '0', '0', 0),
(66, 'Email Alert', '0', '0', '<EMAIL>', '0', '0', 0),
(67, 'billing_settings', '0', '0', NULL, NULL, NULL, NULL),
(69, 'pos_settings', '1', NULL, NULL, NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`users_id` int(11) NOT NULL,
`user_id` varchar(255) DEFAULT NULL,
`var_key` varchar(255) DEFAULT NULL,
`status` varchar(255) DEFAULT NULL,
`is_deleted` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`profile_pic` varchar(255) DEFAULT NULL,
`user_type` varchar(255) DEFAULT NULL,
`cid` int(11) DEFAULT NULL,
`lang` varchar(25) NOT NULL DEFAULT 'english',
`code` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`users_id`, `user_id`, `var_key`, `status`, `is_deleted`, `name`, `password`, `email`, `profile_pic`, `user_type`, `cid`, `lang`, `code`) VALUES
(1, '1', NULL, 'active', '0', 'Walk-in Client', '$2y$10$TKfTVltchv/jxZIouy8i8O7rSzVvtdx4Y5wNRodK5RNyTBJkEoIAW', '<EMAIL>', NULL, 'Member', 1, 'english', NULL);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `ci_sessions`
--
ALTER TABLE `ci_sessions`
ADD PRIMARY KEY (`id`),
ADD KEY `ci_sessions_timestamp` (`timestamp`);
--
-- Indexes for table `te_accounts`
--
ALTER TABLE `te_accounts`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `acn` (`acn`),
ADD KEY `id` (`id`);
--
-- Indexes for table `te_attendance`
--
ALTER TABLE `te_attendance`
ADD PRIMARY KEY (`id`),
ADD KEY `emp` (`emp`);
--
-- Indexes for table `te_bank_ac`
--
ALTER TABLE `te_bank_ac`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_config`
--
ALTER TABLE `te_config`
ADD PRIMARY KEY (`id`),
ADD KEY `type` (`type`);
--
-- Indexes for table `te_currencies`
--
ALTER TABLE `te_currencies`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_customers`
--
ALTER TABLE `te_customers`
ADD PRIMARY KEY (`id`),
ADD KEY `gid` (`gid`);
--
-- Indexes for table `te_custom_data`
--
ALTER TABLE `te_custom_data`
ADD PRIMARY KEY (`id`),
ADD KEY `fid` (`field_id`,`rid`);
--
-- Indexes for table `te_custom_fields`
--
ALTER TABLE `te_custom_fields`
ADD PRIMARY KEY (`id`),
ADD KEY `f_module` (`f_module`);
--
-- Indexes for table `te_cust_group`
--
ALTER TABLE `te_cust_group`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_documents`
--
ALTER TABLE `te_documents`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_draft`
--
ALTER TABLE `te_draft`
ADD PRIMARY KEY (`id`),
ADD KEY `eid` (`eid`),
ADD KEY `csd` (`csd`),
ADD KEY `invoice` (`tid`) USING BTREE,
ADD KEY `i_class` (`i_class`),
ADD KEY `loc` (`loc`);
--
-- Indexes for table `te_draft_items`
--
ALTER TABLE `te_draft_items`
ADD PRIMARY KEY (`id`),
ADD KEY `invoice` (`tid`),
ADD KEY `i_class` (`i_class`);
--
-- Indexes for table `te_employees`
--
ALTER TABLE `te_employees`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_events`
--
ALTER TABLE `te_events`
ADD PRIMARY KEY (`id`),
ADD KEY `rel` (`rel`),
ADD KEY `rid` (`rid`);
--
-- Indexes for table `te_gateways`
--
ALTER TABLE `te_gateways`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_hrm`
--
ALTER TABLE `te_hrm`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_invoices`
--
ALTER TABLE `te_invoices`
ADD PRIMARY KEY (`id`),
ADD KEY `eid` (`eid`),
ADD KEY `csd` (`csd`),
ADD KEY `invoice` (`tid`) USING BTREE,
ADD KEY `i_class` (`i_class`),
ADD KEY `loc` (`loc`);
--
-- Indexes for table `te_invoice_items`
--
ALTER TABLE `te_invoice_items`
ADD PRIMARY KEY (`id`),
ADD KEY `invoice` (`tid`),
ADD KEY `i_class` (`i_class`);
--
-- Indexes for table `te_locations`
--
ALTER TABLE `te_locations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_log`
--
ALTER TABLE `te_log`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_login_attempts`
--
ALTER TABLE `te_login_attempts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_metadata`
--
ALTER TABLE `te_metadata`
ADD PRIMARY KEY (`id`),
ADD KEY `type` (`type`),
ADD KEY `rid` (`rid`);
--
-- Indexes for table `te_milestones`
--
ALTER TABLE `te_milestones`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_movers`
--
ALTER TABLE `te_movers`
ADD PRIMARY KEY (`id`),
ADD KEY `d_type` (`d_type`,`rid1`,`rid2`,`rid3`);
--
-- Indexes for table `te_notes`
--
ALTER TABLE `te_notes`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_pms`
--
ALTER TABLE `te_pms`
ADD PRIMARY KEY (`id`),
ADD KEY `full_index` (`id`,`sender_id`,`receiver_id`,`date_read`);
--
-- Indexes for table `te_premissions`
--
ALTER TABLE `te_premissions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_products`
--
ALTER TABLE `te_products`
ADD PRIMARY KEY (`pid`),
ADD KEY `pcat` (`pcat`),
ADD KEY `warehouse` (`warehouse`);
--
-- Indexes for table `te_product_cat`
--
ALTER TABLE `te_product_cat`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_product_serials`
--
ALTER TABLE `te_product_serials`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_projects`
--
ALTER TABLE `te_projects`
ADD PRIMARY KEY (`id`),
ADD KEY `p_id` (`p_id`);
--
-- Indexes for table `te_project_meta`
--
ALTER TABLE `te_project_meta`
ADD PRIMARY KEY (`id`),
ADD KEY `pid` (`pid`),
ADD KEY `meta_key` (`meta_key`),
ADD KEY `key3` (`key3`);
--
-- Indexes for table `te_promo`
--
ALTER TABLE `te_promo`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `code_2` (`code`),
ADD KEY `code` (`code`);
--
-- Indexes for table `te_purchase`
--
ALTER TABLE `te_purchase`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `invoice` (`tid`),
ADD KEY `eid` (`eid`),
ADD KEY `csd` (`csd`);
--
-- Indexes for table `te_purchase_items`
--
ALTER TABLE `te_purchase_items`
ADD PRIMARY KEY (`id`),
ADD KEY `invoice` (`tid`);
--
-- Indexes for table `te_quotes`
--
ALTER TABLE `te_quotes`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `invoice` (`tid`),
ADD KEY `eid` (`eid`),
ADD KEY `csd` (`csd`);
--
-- Indexes for table `te_quotes_items`
--
ALTER TABLE `te_quotes_items`
ADD PRIMARY KEY (`id`),
ADD KEY `invoice` (`tid`);
--
-- Indexes for table `te_register`
--
ALTER TABLE `te_register`
ADD PRIMARY KEY (`id`),
ADD KEY `uid` (`uid`),
ADD KEY `active` (`active`);
--
-- Indexes for table `te_reports`
--
ALTER TABLE `te_reports`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_restkeys`
--
ALTER TABLE `te_restkeys`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_smtp`
--
ALTER TABLE `te_smtp`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_stock_r`
--
ALTER TABLE `te_stock_r`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `invoice` (`tid`),
ADD KEY `eid` (`eid`),
ADD KEY `csd` (`csd`);
--
-- Indexes for table `te_stock_r_items`
--
ALTER TABLE `te_stock_r_items`
ADD PRIMARY KEY (`id`),
ADD KEY `invoice` (`tid`) KEY_BLOCK_SIZE=1024 USING BTREE;
--
-- Indexes for table `te_supplier`
--
ALTER TABLE `te_supplier`
ADD PRIMARY KEY (`id`),
ADD KEY `gid` (`gid`);
--
-- Indexes for table `te_system`
--
ALTER TABLE `te_system`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_terms`
--
ALTER TABLE `te_terms`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_tickets`
--
ALTER TABLE `te_tickets`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_tickets_th`
--
ALTER TABLE `te_tickets_th`
ADD PRIMARY KEY (`id`),
ADD KEY `tid` (`tid`),
ADD KEY `cid` (`cid`),
ADD KEY `eid` (`eid`);
--
-- Indexes for table `te_todolist`
--
ALTER TABLE `te_todolist`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_transactions`
--
ALTER TABLE `te_transactions`
ADD PRIMARY KEY (`id`),
ADD KEY `loc` (`loc`),
ADD KEY `acid` (`acid`),
ADD KEY `eid` (`eid`),
ADD KEY `tid` (`tid`);
--
-- Indexes for table `te_trans_cat`
--
ALTER TABLE `te_trans_cat`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_units`
--
ALTER TABLE `te_units`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `te_users`
--
ALTER TABLE `te_users`
ADD PRIMARY KEY (`id`),
ADD KEY `email` (`email`),
ADD KEY `username` (`username`);
--
-- Indexes for table `te_warehouse`
--
ALTER TABLE `te_warehouse`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `univarsal_api`
--
ALTER TABLE `univarsal_api`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`users_id`),
ADD KEY `code` (`code`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `te_accounts`
--
ALTER TABLE `te_accounts`
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `te_attendance`
--
ALTER TABLE `te_attendance`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_bank_ac`
--
ALTER TABLE `te_bank_ac`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_config`
--
ALTER TABLE `te_config`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_currencies`
--
ALTER TABLE `te_currencies`
MODIFY `id` int(4) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_customers`
--
ALTER TABLE `te_customers`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `te_custom_data`
--
ALTER TABLE `te_custom_data`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_custom_fields`
--
ALTER TABLE `te_custom_fields`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_cust_group`
--
ALTER TABLE `te_cust_group`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `te_documents`
--
ALTER TABLE `te_documents`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_draft`
--
ALTER TABLE `te_draft`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_draft_items`
--
ALTER TABLE `te_draft_items`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_employees`
--
ALTER TABLE `te_employees`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `te_events`
--
ALTER TABLE `te_events`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_gateways`
--
ALTER TABLE `te_gateways`
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `te_hrm`
--
ALTER TABLE `te_hrm`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_invoices`
--
ALTER TABLE `te_invoices`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_invoice_items`
--
ALTER TABLE `te_invoice_items`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_locations`
--
ALTER TABLE `te_locations`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_log`
--
ALTER TABLE `te_log`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `te_login_attempts`
--
ALTER TABLE `te_login_attempts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `te_metadata`
--
ALTER TABLE `te_metadata`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_milestones`
--
ALTER TABLE `te_milestones`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_movers`
--
ALTER TABLE `te_movers`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_notes`
--
ALTER TABLE `te_notes`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_pms`
--
ALTER TABLE `te_pms`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_premissions`
--
ALTER TABLE `te_premissions`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `te_products`
--
ALTER TABLE `te_products`
MODIFY `pid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_product_cat`
--
ALTER TABLE `te_product_cat`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `te_product_serials`
--
ALTER TABLE `te_product_serials`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_projects`
--
ALTER TABLE `te_projects`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_project_meta`
--
ALTER TABLE `te_project_meta`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_promo`
--
ALTER TABLE `te_promo`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_purchase`
--
ALTER TABLE `te_purchase`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_purchase_items`
--
ALTER TABLE `te_purchase_items`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_quotes`
--
ALTER TABLE `te_quotes`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_quotes_items`
--
ALTER TABLE `te_quotes_items`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_register`
--
ALTER TABLE `te_register`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `te_reports`
--
ALTER TABLE `te_reports`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_restkeys`
--
ALTER TABLE `te_restkeys`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_stock_r`
--
ALTER TABLE `te_stock_r`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_stock_r_items`
--
ALTER TABLE `te_stock_r_items`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_supplier`
--
ALTER TABLE `te_supplier`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_terms`
--
ALTER TABLE `te_terms`
MODIFY `id` int(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `te_tickets`
--
ALTER TABLE `te_tickets`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_tickets_th`
--
ALTER TABLE `te_tickets_th`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_todolist`
--
ALTER TABLE `te_todolist`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_transactions`
--
ALTER TABLE `te_transactions`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_trans_cat`
--
ALTER TABLE `te_trans_cat`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `te_units`
--
ALTER TABLE `te_units`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `te_users`
--
ALTER TABLE `te_users`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `te_warehouse`
--
ALTER TABLE `te_warehouse`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `univarsal_api`
--
ALTER TABLE `univarsal_api`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=70;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `users_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<gh_stars>0
CREATE TABLE `orwms`.`admin` ( `id` INT(11) NOT NULL AUTO_INCREMENT , `user_name` VARCHAR(255) NOT NULL , `password` VARCHAR(255) NOT NULL , PRIMARY KEY (`id`), UNIQUE (`user_name`)) ENGINE = InnoDB;
|
<filename>source/SQLParserDemo/src/demos/dlineage/scripts/oracle/shipping/qs_drop.sql
Rem
Rem $Header: qs_drop.sql 29-aug-2002.11:59:46 hyeh Exp $
Rem
Rem qs_drop.sql
Rem
Rem Copyright (c) 2001, 2015, Oracle Corporation. All rights reserved.
Rem
Rem Permission is hereby granted, free of charge, to any person obtaining
Rem a copy of this software and associated documentation files (the
Rem "Software"), to deal in the Software without restriction, including
Rem without limitation the rights to use, copy, modify, merge, publish,
Rem distribute, sublicense, and/or sell copies of the Software, and to
Rem permit persons to whom the Software is furnished to do so, subject to
Rem the following conditions:
Rem
Rem The above copyright notice and this permission notice shall be
Rem included in all copies or substantial portions of the Software.
Rem
Rem THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Rem EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Rem MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
Rem NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
Rem LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
Rem OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
Rem WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Rem
Rem NAME
Rem qs_drop.sql - Cleanup and drop all QS related schemas
Rem
Rem DESCRIPTION
Rem QS is the Queued Shipping schema of the Oracle 9i Sample
Rem Schemas
Rem
Rem NOTES
Rem
Rem
Rem MODIFIED (MM/DD/YY)
Rem hyeh 08/29/02 - hyeh_mv_comschema_to_rdbms
Rem ahunold 02/05/01 - Created
Rem
set echo on;
set serveroutput on;
CONNECT QS_ADM/&password_QS_ADM
execute dbms_aqadm.stop_queue(queue_name => 'QS.QS_neworders_que');
execute dbms_aqadm.stop_queue(queue_name => 'QS.QS_bookedorders_que');
execute dbms_aqadm.stop_queue(queue_name => 'QS.logon_logoff');
execute dbms_aqadm.stop_queue(queue_name => 'QS_WS.QS_WS_bookedorders_que');
execute dbms_aqadm.stop_queue(queue_name => 'QS_WS.QS_WS_shippedorders_que');
execute dbms_aqadm.stop_queue(queue_name => 'QS_WS.QS_WS_backorders_que');
execute dbms_aqadm.stop_queue(queue_name => 'QS_ES.QS_ES_bookedorders_que');
execute dbms_aqadm.stop_queue(queue_name => 'QS_ES.QS_ES_shippedorders_que');
execute dbms_aqadm.stop_queue(queue_name => 'QS_ES.QS_ES_backorders_que');
execute dbms_aqadm.stop_queue(queue_name => 'QS_OS.QS_OS_bookedorders_que');
execute dbms_aqadm.stop_queue(queue_name => 'QS_OS.QS_OS_shippedorders_que');
execute dbms_aqadm.stop_queue(queue_name => 'QS_OS.QS_OS_backorders_que');
execute dbms_aqadm.stop_queue(queue_name => 'QS_CS.QS_CS_bookedorders_que');
execute dbms_aqadm.stop_queue(queue_name => 'QS_CS.QS_CS_backorders_que');
execute dbms_aqadm.stop_queue(queue_name => 'QS_CS.QS_CS_shippedorders_que');
execute dbms_aqadm.stop_queue(queue_name => 'QS_CS.QS_CS_billedorders_que');
Rem Drop queue tables, queues for QS
Rem
CONNECT QS/&password_QS
begin
dbms_aqadm.drop_queue (
queue_name => 'QS_neworders_que');
end;
/
begin
dbms_aqadm.drop_queue (
queue_name => 'QS_bookedorders_que');
end;
/
begin
dbms_aqadm.drop_queue_table(
queue_table => 'QS_orders_sqtab');
end;
/
Rem Create a priority queue table for QS
begin
dbms_aqadm.drop_queue_table(
queue_table => 'QS_orders_pr_mqtab');
end;
/
CONNECT QS/&password_QS
Rem
Rem Drop the multiconsumer nonpersistent queue in QS schema
Rem This queue is used by the conenction dispatcher to count
Rem the number of user connections to the QS application
execute dbms_aqadm.drop_queue(queue_name => 'LOGON_LOGOFF');
Rem Drop queue tables, queues for QS_WS Shipping
CONNECT QS_WS/&password_QS_WS
Rem Booked orders are stored in the priority queue table
begin
dbms_aqadm.drop_queue (
queue_name => 'QS_WS_bookedorders_que');
end;
/
Rem Shipped orders and back orders are stored in the FIFO queue table
begin
dbms_aqadm.drop_queue (
queue_name => 'QS_WS_shippedorders_que');
end;
/
begin
dbms_aqadm.drop_queue (
queue_name => 'QS_WS_backorders_que');
end;
/
Rem Drop queue table for QS_WS shipping
begin
dbms_aqadm.drop_queue_table(
queue_table => 'QS_WS_orders_pr_mqtab');
end;
/
Rem Drop queue tables for QS_WS shipping
begin
dbms_aqadm.drop_queue_table(
queue_table => 'QS_WS_orders_mqtab');
end;
/
Rem Drop queue tables, queues for QS_ES Shipping
CONNECT QS_ES/&password_QS_ES
Rem Booked orders are stored in the priority queue table
begin
dbms_aqadm.drop_queue (
queue_name => 'QS_ES_bookedorders_que');
end;
/
Rem Shipped orders and back orders are stored in the FIFO queue table
begin
dbms_aqadm.drop_queue (
queue_name => 'QS_ES_shippedorders_que');
end;
/
begin
dbms_aqadm.drop_queue (
queue_name => 'QS_ES_backorders_que');
end;
/
Rem Drop queue table for QS_ES shipping
begin
dbms_aqadm.drop_queue_table(
queue_table => 'QS_ES_orders_mqtab');
end;
/
Rem Drop FIFO queue tables for QS_ES shipping
begin
dbms_aqadm.drop_queue_table(
queue_table => 'QS_ES_orders_pr_mqtab');
end;
/
Rem Drop queue tables, queues for Overseas Shipping
CONNECT QS_OS/&password_QS_OS
Rem Booked orders are stored in the priority queue table
begin
dbms_aqadm.drop_queue (
queue_name => 'QS_OS_bookedorders_que');
end;
/
Rem Shipped orders and back orders are stored in the FIFO queue table
begin
dbms_aqadm.drop_queue (
queue_name => 'QS_OS_shippedorders_que');
end;
/
begin
dbms_aqadm.drop_queue (
queue_name => 'QS_OS_backorders_que');
end;
/
Rem Create a priority queue table for QS_OS shipping
begin
dbms_aqadm.drop_queue_table(
queue_table => 'QS_OS_orders_pr_mqtab');
end;
/
Rem Create a FIFO queue tables for QS_OS shipping
begin
dbms_aqadm.drop_queue_table(
queue_table => 'QS_OS_orders_mqtab');
end;
/
Rem Create queue tables, queues for Customer Billing
CONNECT QS_CBADM/&password_QS_CBADM
begin
dbms_aqadm.drop_queue (
queue_name => 'QS_CBADM_shippedorders_q');
end;
/
begin
dbms_aqadm.drop_queue (
queue_name => 'QS_CBADM_billedorders_q');
end;
/
begin
dbms_aqadm.drop_queue_table(
queue_table => 'QS_CBADM_orders_sqtab', force => true);
dbms_aqadm.drop_queue_table(
queue_table => 'QS_CBADM_orders_mqtab', force => true);
end;
/
CONNECT QS_CS/&password_QS_CS
DROP TABLE Order_Status_Table;
Rem Drop queue tables, queues for Customer Service
begin
dbms_aqadm.drop_queue (
queue_name => 'QS_CS_bookedorders_que');
dbms_aqadm.drop_queue (
queue_name => 'QS_CS_backorders_que');
dbms_aqadm.drop_queue (
queue_name => 'QS_CS_shippedorders_que');
dbms_aqadm.drop_queue (
queue_name => 'QS_CS_billedorders_que');
end;
/
begin
dbms_aqadm.drop_queue_table(
queue_table => 'QS_CS_order_status_qt', force => true);
end;
/
CONNECT QS_ADM/&password_QS_ADM
Rem drop objects types
drop type order_typ;
drop type orderitemlist_vartyp;
drop type orderitem_typ;
drop type customer_typ;
Rem drop queue admin account and individual accounts for each application
Rem
CONNECT system/&password_SYSTEM
set serveroutput on;
set echo on;
drop user QS_ADM cascade;
drop user QS cascade;
drop user QS_WS cascade;
drop user QS_ES cascade;
drop user QS_OS cascade;
drop user QS_CBADM cascade;
drop user QS_CB cascade;
drop user QS_CS cascade;
|
alter table cms_route add ord int;
|
<reponame>dheaach/Website-Bengkel
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 02, 2019 at 12:48 AM
-- Server version: 10.1.28-MariaDB
-- PHP Version: 7.1.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `bengkel_2`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`id` int(11) NOT NULL,
`username` varchar(50) NOT NULL,
`password` varchar(100) NOT NULL,
`level` enum('admin','user') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`id`, `username`, `password`, `level`) VALUES
(1, 'dhea', '<PASSWORD>', 'admin'),
(2, 'w<PASSWORD>', '<PASSWORD>', 'admin');
-- --------------------------------------------------------
--
-- Table structure for table `barang`
--
CREATE TABLE `barang` (
`id` varchar(10) NOT NULL,
`id_toko` varchar(10) NOT NULL,
`nama` varchar(25) NOT NULL,
`satuan` varchar(5) NOT NULL,
`jenis` varchar(10) NOT NULL,
`harga` int(11) NOT NULL,
`stok` smallint(6) NOT NULL,
`kategori` tinyint(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `barang`
--
INSERT INTO `barang` (`id`, `id_toko`, `nama`, `satuan`, `jenis`, `harga`, `stok`, `kategori`) VALUES
('1266', '', 'gerigi', 'biji', 'sparepart', 12000, 12, 4),
('2223', '', 'aki', 'buah', 'bahan', 120000000, 15, 7),
('566', '', 'av\\c kirai', 'biji', 'barang', 12000000, 12, 3),
('6655', '', 'pembenaran motor', 'tenag', 'jasa', 120000000, 0, 6),
('67', '', 'obeng', 'biji', 'spare part', 5000000, 0, 5),
('99898', '', 'pelek', 'biji', 'aksesoris', 98000, 45, 5);
-- --------------------------------------------------------
--
-- Table structure for table `customer`
--
CREATE TABLE `customer` (
`id` varchar(10) NOT NULL,
`nama` varchar(25) NOT NULL,
`alamat` varchar(255) NOT NULL,
`kota` varchar(25) NOT NULL,
`kodepos` varchar(10) DEFAULT NULL,
`hp` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `customer`
--
INSERT INTO `customer` (`id`, `nama`, `alamat`, `kota`, `kodepos`, `hp`) VALUES
('cs001', 'alan', 'saxophone', 'malang', '65464', '0123456789');
-- --------------------------------------------------------
--
-- Table structure for table `detilbeli`
--
CREATE TABLE `detilbeli` (
`detil` int(11) NOT NULL,
`idbeli` varchar(10) NOT NULL,
`idbarang` varchar(10) NOT NULL,
`hargad` int(11) NOT NULL,
`qty` int(11) NOT NULL,
`nilai` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Triggers `detilbeli`
--
DELIMITER $$
CREATE TRIGGER `tambahstok` AFTER INSERT ON `detilbeli` FOR EACH ROW BEGIN
UPDATE barang set stok=stok+new.qty WHERE id = new.idbarang;
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `detiljual`
--
CREATE TABLE `detiljual` (
`dj` int(11) NOT NULL,
`idjual` varchar(10) NOT NULL,
`idbarang` varchar(10) NOT NULL,
`hargaj` int(11) NOT NULL,
`jumlah` int(11) NOT NULL,
`subtotal` int(11) NOT NULL,
`diskon` int(11) NOT NULL,
`total` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `detiljual`
--
INSERT INTO `detiljual` (`dj`, `idjual`, `idbarang`, `hargaj`, `jumlah`, `subtotal`, `diskon`, `total`) VALUES
(3, '8890', '67', 5000000, 1, 5000000, 0, 5000000);
--
-- Triggers `detiljual`
--
DELIMITER $$
CREATE TRIGGER `krgstok` AFTER INSERT ON `detiljual` FOR EACH ROW BEGIN
UPDATE barang set stok=stok-new.jumlah WHERE id = new.idbarang;
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `karyawan`
--
CREATE TABLE `karyawan` (
`id` varchar(10) NOT NULL,
`nama_staff` varchar(25) NOT NULL,
`alamat` varchar(225) NOT NULL,
`kota` varchar(25) NOT NULL,
`kodepos` varchar(10) DEFAULT NULL,
`tlp` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `karyawan`
--
INSERT INTO `karyawan` (`id`, `nama_staff`, `alamat`, `kota`, `kodepos`, `tlp`) VALUES
('kas01', 'andin', 'klojen', 'malang', '', '0213695847');
-- --------------------------------------------------------
--
-- Table structure for table `kategori`
--
CREATE TABLE `kategori` (
`id` tinyint(3) NOT NULL,
`nama` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `kategori`
--
INSERT INTO `kategori` (`id`, `nama`) VALUES
(3, 'A/C'),
(4, 'Spare Part'),
(5, 'Variasi'),
(6, 'Jasa'),
(7, 'Barang');
-- --------------------------------------------------------
--
-- Table structure for table `pembelian`
--
CREATE TABLE `pembelian` (
`id` varchar(10) NOT NULL,
`tanggal` datetime NOT NULL,
`keterangan` varchar(225) NOT NULL,
`faktur` varchar(10) NOT NULL,
`nilai` int(11) NOT NULL,
`suplier` varchar(10) NOT NULL,
`staff` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `pembelian`
--
INSERT INTO `pembelian` (`id`, `tanggal`, `keterangan`, `faktur`, `nilai`, `suplier`, `staff`) VALUES
('32', '2019-06-24 21:04:24', 'swsw', '1212', 0, 'sup1', 'kas01'),
('777', '2019-07-06 08:53:53', 'iiii', '881', 0, 'sup1', 'kas01'),
('d56', '2019-06-20 14:50:41', '3456ghj', 'ertyui', 0, 'sup1', 'kas01'),
('g7', '2019-06-20 14:50:16', 'fghjkl', 'ajdajd2iug', 0, 'sup1', 'kas01');
-- --------------------------------------------------------
--
-- Table structure for table `penjualan`
--
CREATE TABLE `penjualan` (
`id` varchar(10) NOT NULL,
`tanggal` datetime NOT NULL,
`idcust` varchar(10) NOT NULL,
`nomanual` varchar(10) NOT NULL,
`keterangan` varchar(225) NOT NULL,
`nilai` int(11) NOT NULL,
`staff` varchar(10) NOT NULL,
`tipekendaraan` varchar(20) NOT NULL,
`norangka` varchar(25) NOT NULL,
`nomesin` varchar(25) NOT NULL,
`nopol` varchar(10) NOT NULL,
`bpkb` varchar(25) NOT NULL,
`stnk` varchar(25) NOT NULL,
`keluhan` varchar(255) NOT NULL,
`jenis` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `penjualan`
--
INSERT INTO `penjualan` (`id`, `tanggal`, `idcust`, `nomanual`, `keterangan`, `nilai`, `staff`, `tipekendaraan`, `norangka`, `nomesin`, `nopol`, `bpkb`, `stnk`, `keluhan`, `jenis`) VALUES
('12', '2019-06-26 11:02:57', 'cs001', '123', 'lunas', 0, 'kas01', '', '', '', '', '', '', '', 'langsung'),
('3', '2019-06-24 21:04:54', 'cs001', '33', 'sww', 0, 'kas01', '', '', '', '', '', '', '', 'langsung'),
('54', '2019-06-24 21:05:22', 'cs001', '767', 'juh', 0, 'kas01', '7', '7', '7', '7', '7', '7', 'kjkh', 'servis'),
('67', '2019-06-26 11:02:15', 'cs001', '90', 'lunsa', 0, 'kas01', '', '', '', '', '', '', '', 'langsung'),
('8890', '2019-06-25 15:02:54', 'cs001', '90', 'lunas', 5000000, 'kas01', '', '', '', '', '', '', '', 'langsung');
-- --------------------------------------------------------
--
-- Table structure for table `suplier`
--
CREATE TABLE `suplier` (
`id` varchar(10) NOT NULL,
`nama` varchar(25) NOT NULL,
`alamat` varchar(225) NOT NULL,
`kota` varchar(25) NOT NULL,
`kodepos` varchar(10) DEFAULT NULL,
`tlp` varchar(30) DEFAULT NULL,
`fax` varchar(25) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `suplier`
--
INSERT INTO `suplier` (`id`, `nama`, `alamat`, `kota`, `kodepos`, `tlp`, `fax`) VALUES
('sup1', 'jito', 'arjosari', 'malang', '88786', '098878977', '97877');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `barang`
--
ALTER TABLE `barang`
ADD PRIMARY KEY (`id`),
ADD KEY `id_kategori` (`kategori`);
--
-- Indexes for table `customer`
--
ALTER TABLE `customer`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `detilbeli`
--
ALTER TABLE `detilbeli`
ADD PRIMARY KEY (`detil`),
ADD KEY `id_beli` (`idbeli`),
ADD KEY `id_barang` (`idbarang`);
--
-- Indexes for table `detiljual`
--
ALTER TABLE `detiljual`
ADD PRIMARY KEY (`dj`),
ADD UNIQUE KEY `id_barang` (`idbarang`) USING BTREE,
ADD KEY `id_jual` (`idjual`);
--
-- Indexes for table `karyawan`
--
ALTER TABLE `karyawan`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `kategori`
--
ALTER TABLE `kategori`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pembelian`
--
ALTER TABLE `pembelian`
ADD PRIMARY KEY (`id`),
ADD KEY `id_suplier` (`suplier`),
ADD KEY `id_staf` (`staff`);
--
-- Indexes for table `penjualan`
--
ALTER TABLE `penjualan`
ADD PRIMARY KEY (`id`),
ADD KEY `id_customer` (`idcust`),
ADD KEY `id_staff` (`staff`);
--
-- Indexes for table `suplier`
--
ALTER TABLE `suplier`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `detilbeli`
--
ALTER TABLE `detilbeli`
MODIFY `detil` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `detiljual`
--
ALTER TABLE `detiljual`
MODIFY `dj` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `kategori`
--
ALTER TABLE `kategori`
MODIFY `id` tinyint(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `barang`
--
ALTER TABLE `barang`
ADD CONSTRAINT `id_kategori` FOREIGN KEY (`kategori`) REFERENCES `kategori` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `detilbeli`
--
ALTER TABLE `detilbeli`
ADD CONSTRAINT `id_barang` FOREIGN KEY (`idbarang`) REFERENCES `barang` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `id_beli` FOREIGN KEY (`idbeli`) REFERENCES `pembelian` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `detiljual`
--
ALTER TABLE `detiljual`
ADD CONSTRAINT `detiljual_ibfk_1` FOREIGN KEY (`idbarang`) REFERENCES `barang` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `id_jual` FOREIGN KEY (`idjual`) REFERENCES `penjualan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `pembelian`
--
ALTER TABLE `pembelian`
ADD CONSTRAINT `id_staf` FOREIGN KEY (`staff`) REFERENCES `karyawan` (`id`),
ADD CONSTRAINT `id_suplier` FOREIGN KEY (`suplier`) REFERENCES `suplier` (`id`);
--
-- Constraints for table `penjualan`
--
ALTER TABLE `penjualan`
ADD CONSTRAINT `id_customer` FOREIGN KEY (`idcust`) REFERENCES `customer` (`id`),
ADD CONSTRAINT `id_staff` FOREIGN KEY (`staff`) REFERENCES `karyawan` (`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>evanfrisch/demographics_etl
USE demographics
GO
IF OBJECT_ID(N'[dbo].[vw_SchoolStaffStudentHispanic]','V') IS NOT NULL
DROP VIEW [dbo].[vw_SchoolStaffStudentHispanic]
GO
CREATE VIEW vw_SchoolStaffStudentHispanic AS
SELECT ds.countyDistrictNumber,ds.district,ds.schoolID,ds.schoolName,hispanic.ethnicity,stu.studentCount,stu.totalEnrollment,stu.percentOfStudents,
ISNULL(sta.staffCount,0) AS staffCount,ISNULL(sta.totalStaffCount,0) AS totalStaffCount,ISNULL(sta.percentOfStaff,0) AS percentOfStaff,ds.geopoint,x,y
FROM DimSchool ds
LEFT JOIN DimHispanic hispanic ON hispanic.isHispanic IN (0,1)
LEFT JOIN vw_StudentHispanicSnapshot stu ON stu.schoolID = ds.schoolID AND stu.ethnicity = hispanic.ethnicity
LEFT JOIN vw_SchoolStaffHispanic sta ON sta.schoolID = stu.schoolID AND sta.isHispanic = hispanic.isHispanic AND sta.schoolYear = stu.schoolYear
GO
GRANT SELECT ON vw_SchoolStaffStudentHispanic
TO demographics_user;
GO
|
<reponame>837477/MODAKBUL
CREATE TABLE IF NOT EXISTS post_comment(
comment_id INT NOT NULL AUTO_INCREMENT,
post_id INT NOT NULL,
user_id VARCHAR(20) NULL,
comment VARCHAR(500) NOT NULL,
comment_anony TINYINT NOT NULL DEFAULT 0,
comment_date DATETIME NOT NULL DEFAULT NOW(),
comment_parent INT NULL DEFAULT NULL,
PRIMARY KEY(comment_id),
FOREIGN KEY(post_id) REFERENCES post(post_id) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY(user_id) REFERENCES user(user_id) ON DELETE SET NULL ON UPDATE CASCADE,
FOREIGN KEY(comment_parent) REFERENCES post_comment(comment_id) ON DELETE CASCADE ON UPDATE CASCADE
)ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |
drop schema ims;
CREATE SCHEMA IF NOT EXISTS `ims`;
USE `ims` ;
CREATE TABLE IF NOT EXISTS `ims`.`customers` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`first_name` VARCHAR(40) NULL DEFAULT NULL,
`surname` VARCHAR(40) NULL DEFAULT NULL,
PRIMARY KEY (`id`)
);
create table IF NOT EXISTS `ims`.`items` (
`product_id` int NOT NULL AUTO_INCREMENT,
`product_name` char(25) NULL DEFAULT NULL,
`product_type` char(20) NULL DEFAULT NULL,
`product_price` float(11) NULL DEFAULT NULL,
PRIMARY KEY (`product_id`)
);
create table IF NOT EXISTS `ims`.`orders` (
`order_id` int NOT NULL AUTO_INCREMENT,
`customer_id` int NOT NULL,
PRIMARY KEY (`order_id`),
foreign key (`customer_id`) references `ims`.`customers` (`id`)
);
create table IF NOT EXISTS `ims`.`orderitems` (
`orderitems_id` int NOT NULL AUTO_INCREMENT,
`order_id` INT NOT NULL,
`product_id` INT,
PRIMARY KEY (`orderitems_id`),
CONSTRAINT foreign key (`order_id`) references `ims`.`orders` (`order_id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT foreign key (`product_id`) references `ims`.`items` (`product_id`) ON DELETE CASCADE ON UPDATE CASCADE
);
|
SELECT date, customer_id,
daily_spend,
SUM(daily_spend) OVER (PARTITION BY customer_id
ORDER BY date) AS cumulative_spend
FROM
(SELECT DATE(payment_ts) AS date,
customer_id,
SUM(amount) AS daily_spend
FROM payment
WHERE customer_id IN (1, 2, 3)
GROUP BY DATE(payment_ts),
customer_id) gr |
<reponame>Shuttl-Tech/antlr_psql
-- file:select_implicit.sql ln:10 expect:true
CREATE TABLE test_missing_target (a int, b int, c char(8), d char)
|
-- file:updatable_views.sql ln:399 expect:true
INSERT INTO base_tbl VALUES (1, 'Row 1', 1.0)
|
/*
-- Flows for APEX - test_variable_expressions.pkb
--
-- (c) Copyright Oracle Corporation and / or its affiliates, 2022.
--
-- Created 10-Mar-2022 <NAME> - Insum
-- Edited 09-May-2022 <NAME> - Oracle
--
*/
create or replace package body test_variable_expressions is
g_model_a10 constant varchar2(100) := 'A10 - Variable Expressions Types';
g_sbfl_static flow_subflows.sbfl_id%type;
g_sbfl_procvar flow_subflows.sbfl_id%type;
g_sbfl_sqlSingle flow_subflows.sbfl_id%type;
g_sbfl_sqlMulti flow_subflows.sbfl_id%type;
g_sbfl_expression flow_subflows.sbfl_id%type;
g_sbfl_funcBody flow_subflows.sbfl_id%type;
g_prcs_id flow_processes.prcs_id%type;
g_dgrm_id flow_diagrams.dgrm_id%type;
procedure set_dgrm_id( pi_dgrm_name in varchar2)
is
begin
select dgrm_id
into g_dgrm_id
from flow_diagrams
where dgrm_name = pi_dgrm_name;
end set_dgrm_id;
procedure set_up_process
is
l_actual sys_refcursor;
l_expected sys_refcursor;
begin
-- get dgrm_id to use for comparaison
set_dgrm_id( g_model_a10 );
-- create a new instance
g_prcs_id := flow_api_pkg.flow_create(
pi_dgrm_id => g_dgrm_id
, pi_prcs_name => 'test - var_exp_all_types'
);
-- check no existing process variables
open l_actual for
select *
from flow_process_variables
where prov_prcs_id = g_prcs_id;
ut.expect( l_actual ).to_have_count( 0 );
-- start process and check running status
flow_api_pkg.flow_start( p_process_id => g_prcs_id );
open l_expected for
select
g_dgrm_id as prcs_dgrm_id,
'test - var_exp_all_types' as prcs_name,
flow_constants_pkg.gc_prcs_status_running as prcs_status
from dual;
open l_actual for
select prcs_dgrm_id, prcs_name, prcs_status
from flow_processes p
where p.prcs_id = g_prcs_id;
ut.expect( l_actual ).to_equal( l_expected );
-- check all parallel subflows running
open l_expected for
select
g_prcs_id as sbfl_prcs_id,
g_dgrm_id as sbfl_dgrm_id,
'Static' as sbfl_current,
flow_constants_pkg.gc_sbfl_status_running sbfl_status
from dual
union
select
g_prcs_id as sbfl_prcs_id,
g_dgrm_id as sbfl_dgrm_id,
'ProcVar' as sbfl_current,
flow_constants_pkg.gc_sbfl_status_running sbfl_status
from dual
union
select
g_prcs_id as sbfl_prcs_id,
g_dgrm_id as sbfl_dgrm_id,
'SQLSingle' as sbfl_current,
flow_constants_pkg.gc_sbfl_status_running sbfl_status
from dual
union
select
g_prcs_id as sbfl_prcs_id,
g_dgrm_id as sbfl_dgrm_id,
'SQLMulti' as sbfl_current,
flow_constants_pkg.gc_sbfl_status_running sbfl_status
from dual
union
select
g_prcs_id as sbfl_prcs_id,
g_dgrm_id as sbfl_dgrm_id,
'Expression' as sbfl_current,
flow_constants_pkg.gc_sbfl_status_running sbfl_status
from dual
union
select
g_prcs_id as sbfl_prcs_id,
g_dgrm_id as sbfl_dgrm_id,
'FuncBody' as sbfl_current,
flow_constants_pkg.gc_sbfl_status_running sbfl_status
from dual
;
open l_actual for
select sbfl_prcs_id, sbfl_dgrm_id, sbfl_current, sbfl_status
from flow_subflows
where sbfl_prcs_id = g_prcs_id
and sbfl_status not like 'split';
ut.expect( l_actual ).to_equal( l_expected ).unordered;
-- get the subflow ids
select sbfl_id
into g_sbfl_static
from flow_subflows
where sbfl_prcs_id = g_prcs_id
and sbfl_current = 'Static';
select sbfl_id
into g_sbfl_procvar
from flow_subflows
where sbfl_prcs_id = g_prcs_id
and sbfl_current = 'ProcVar';
select sbfl_id
into g_sbfl_sqlsingle
from flow_subflows
where sbfl_prcs_id = g_prcs_id
and sbfl_current = 'SQLSingle';
select sbfl_id
into g_sbfl_sqlmulti
from flow_subflows
where sbfl_prcs_id = g_prcs_id
and sbfl_current = 'SQLMulti';
select sbfl_id
into g_sbfl_expression
from flow_subflows
where sbfl_prcs_id = g_prcs_id
and sbfl_current = 'Expression';
select sbfl_id
into g_sbfl_funcbody
from flow_subflows
where sbfl_prcs_id = g_prcs_id
and sbfl_current = 'FuncBody';
-- all running and ready for tests
end set_up_process;
procedure tear_down_process
is
begin
flow_api_pkg.flow_delete (p_process_id => g_prcs_id);
end tear_down_process;
procedure var_exp_static
is
l_actual sys_refcursor;
l_expected sys_refcursor;
l_step_key flow_subflows.sbfl_step_key%type;
l_sbfl_id flow_subflows.sbfl_id%type;
begin
l_sbfl_id := g_sbfl_static;
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test VC2
open l_expected for
select
'StaticVC2' as prov_var_name,
'StaticVC2' as prov_var_vc2
from dual;
open l_actual for
select prov_var_name, prov_var_vc2
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'VARCHAR2'
and prov_var_name = 'StaticVC2'
and prov_var_num is null
and prov_var_date is null
and prov_var_clob is null;
ut.expect( l_actual ).to_equal( l_expected );
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test Num
open l_expected for
select
'StaticNumber2' as prov_var_name,
'2' as prov_var_num
from dual
union
select
'StaticNumber2dec1' as prov_var_name,
'2.1' as prov_var_num
from dual;
open l_actual for
select prov_var_name, to_char(prov_var_num) as prov_var_num
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'NUMBER'
and prov_var_name like 'Static%'
and prov_var_vc2 is null
and prov_var_date is null
and prov_var_clob is null;
ut.expect( l_actual ).to_equal( l_expected ).unordered;
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test Num
open l_expected for
select
'StaticDate' as prov_var_name,
'2021-08-15 15:16:17' as prov_var_date
from dual;
open l_actual for
select prov_var_name, to_char(prov_var_date,'YYYY-MM-DD HH24:MI:SS') as prov_var_date
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'DATE'
and prov_var_name = 'StaticDate'
and prov_var_num is null
and prov_var_vc2 is null
and prov_var_clob is null;
ut.expect( l_actual ).to_equal( l_expected );
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow to complete subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
end var_exp_static;
procedure var_exp_procvar
is
l_actual sys_refcursor;
l_expected sys_refcursor;
l_step_key flow_subflows.sbfl_step_key%type;
l_sbfl_id flow_subflows.sbfl_id%type;
begin
l_sbfl_id := g_sbfl_procvar;
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test VC2
open l_expected for
select
'CopyStaticVC2' as prov_var_name,
'StaticVC2' as prov_var_vc2
from dual;
open l_actual for
select prov_var_name, prov_var_vc2
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'VARCHAR2'
and prov_var_name = 'CopyStaticVC2'
and prov_var_num is null
and prov_var_date is null
and prov_var_clob is null;
ut.expect( l_actual ).to_equal( l_expected );
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test Num
open l_expected for
select
'CopyStaticNumber2' as prov_var_name,
'2' as prov_var_num
from dual
union
select
'CopyStaticNumber2dec1' as prov_var_name,
'2.1' as prov_var_num
from dual;
open l_actual for
select prov_var_name, to_char(prov_var_num) as prov_var_num
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'NUMBER'
and prov_var_name like 'CopyStatic%'
and prov_var_vc2 is null
and prov_var_date is null
and prov_var_clob is null;
ut.expect( l_actual ).to_equal( l_expected ).unordered;
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test Num
open l_expected for
select
'CopyStaticDate' as prov_var_name,
'2021-08-15 15:16:17' as prov_var_date
from dual;
open l_actual for
select prov_var_name, to_char(prov_var_date,'YYYY-MM-DD HH24:MI:SS') as prov_var_date
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'DATE'
and prov_var_name = 'CopyStaticDate'
and prov_var_num is null
and prov_var_vc2 is null
and prov_var_clob is null;
ut.expect( l_actual ).to_equal( l_expected );
-- set up CLOB to copy
flow_process_vars.set_var
( pi_prcs_id => g_prcs_id
, pi_var_name => 'StaticCLOB'
, pi_clob_value => 'This is a very short CLOB'
);
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow to complete subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test CLOB
open l_expected for
select
'CopyStaticCLOB' as prov_var_name,
to_clob('This is a very short CLOB') as prov_var_clob
from dual;
open l_actual for
select prov_var_name, prov_var_clob
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'CLOB'
and prov_var_name = 'CopyStaticCLOB'
and prov_var_num is null
and prov_var_vc2 is null
and prov_var_date is null;
ut.expect( l_actual ).to_equal( l_expected );
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow to complete subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
end var_exp_procvar;
procedure var_exp_sqlsingle
is
l_actual sys_refcursor;
l_expected sys_refcursor;
l_step_key flow_subflows.sbfl_step_key%type;
l_sbfl_id flow_subflows.sbfl_id%type;
begin
l_sbfl_id := g_sbfl_sqlsingle;
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test VC2
open l_expected for
select
'SQLSingleVC2' as prov_var_name,
'SingleVC2' as prov_var_vc2
from dual;
open l_actual for
select prov_var_name, prov_var_vc2
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'VARCHAR2'
and prov_var_name = 'SQLSingleVC2'
and prov_var_num is null
and prov_var_date is null
and prov_var_clob is null;
ut.expect( l_actual ).to_equal( l_expected );
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test Num
open l_expected for
select
'SQLSingleNumber' as prov_var_name,
'1000' as prov_var_num
from dual;
open l_actual for
select prov_var_name, to_char(prov_var_num) as prov_var_num
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'NUMBER'
and prov_var_name = 'SQLSingleNumber'
and prov_var_vc2 is null
and prov_var_date is null
and prov_var_clob is null;
ut.expect( l_actual ).to_equal( l_expected ).unordered;
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test Num
open l_expected for
select
'SQLSingleDate' as prov_var_name,
'2022-01-01' as prov_var_date
from dual;
open l_actual for
select prov_var_name, to_char(prov_var_date,'YYYY-MM-DD') as prov_var_date
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'DATE'
and prov_var_name = 'SQLSingleDate'
and prov_var_num is null
and prov_var_vc2 is null
and prov_var_clob is null;
ut.expect( l_actual ).to_equal( l_expected );
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow to complete subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
end var_exp_sqlsingle;
procedure var_exp_sqlmulti
is
l_actual sys_refcursor;
l_expected sys_refcursor;
l_step_key flow_subflows.sbfl_step_key%type;
l_sbfl_id flow_subflows.sbfl_id%type;
begin
l_sbfl_id := g_sbfl_sqlmulti;
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test VC2
open l_expected for
select
'SQLMultiVC2' as prov_var_name,
'value1:value2:value3' as prov_var_vc2
from dual;
open l_actual for
select prov_var_name, prov_var_vc2
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'VARCHAR2'
and prov_var_name = 'SQLMultiVC2'
and prov_var_num is null
and prov_var_date is null
and prov_var_clob is null;
ut.expect( l_actual ).to_equal( l_expected );
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow to completion
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
end var_exp_sqlmulti;
procedure var_exp_expression
is
l_actual sys_refcursor;
l_expected sys_refcursor;
l_step_key flow_subflows.sbfl_step_key%type;
l_sbfl_id flow_subflows.sbfl_id%type;
begin
l_sbfl_id := g_sbfl_expression;
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test VC2
open l_expected for
select
'ExpressionVC2' as prov_var_name,
'KING is UPPERCASE' as prov_var_vc2
from dual;
open l_actual for
select prov_var_name, prov_var_vc2
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'VARCHAR2'
and prov_var_name = 'ExpressionVC2'
and prov_var_num is null
and prov_var_date is null
and prov_var_clob is null;
ut.expect( l_actual ).to_equal( l_expected );
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test Num
open l_expected for
select
'ExpressionNumber' as prov_var_name,
'42' as prov_var_num
from dual;
open l_actual for
select prov_var_name, to_char(prov_var_num) as prov_var_num
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'NUMBER'
and prov_var_name = 'ExpressionNumber'
and prov_var_vc2 is null
and prov_var_date is null
and prov_var_clob is null;
ut.expect( l_actual ).to_equal( l_expected ).unordered;
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test Num
open l_expected for
select
'ExpressionDate' as prov_var_name,
'2022-04-01 14:00:00' as prov_var_date
from dual;
open l_actual for
select prov_var_name, to_char(prov_var_date,'YYYY-MM-DD HH24:MI:SS') as prov_var_date
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'DATE'
and prov_var_name = 'ExpressionDate'
and prov_var_num is null
and prov_var_vc2 is null
and prov_var_clob is null;
ut.expect( l_actual ).to_equal( l_expected );
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow to complete subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
end var_exp_expression;
procedure var_exp_funcbody
is
l_actual sys_refcursor;
l_expected sys_refcursor;
l_step_key flow_subflows.sbfl_step_key%type;
l_sbfl_id flow_subflows.sbfl_id%type;
begin
l_sbfl_id := g_sbfl_funcbody;
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test VC2
open l_expected for
select
'FuncBodyVC2' as prov_var_name,
'September' as prov_var_vc2
from dual;
open l_actual for
select prov_var_name, prov_var_vc2
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'VARCHAR2'
and prov_var_name = 'FuncBodyVC2'
and prov_var_num is null
and prov_var_date is null
and prov_var_clob is null;
ut.expect( l_actual ).to_equal( l_expected );
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test Num
open l_expected for
select
'FuncBodyNumber' as prov_var_name,
'226.8' as prov_var_num
from dual;
open l_actual for
select prov_var_name, to_char(prov_var_num) as prov_var_num
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'NUMBER'
and prov_var_name = 'FuncBodyNumber'
and prov_var_vc2 is null
and prov_var_date is null
and prov_var_clob is null;
ut.expect( l_actual ).to_equal( l_expected ).unordered;
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
-- test Num
open l_expected for
select
'FuncBodyDate' as prov_var_name,
'2022-04-01 14:00:00' as prov_var_date
from dual;
open l_actual for
select prov_var_name, to_char(prov_var_date,'YYYY-MM-DD HH24:MI:SS') as prov_var_date
from flow_process_variables
where prov_prcs_id = g_prcs_id
and prov_var_type = 'DATE'
and prov_var_name = 'FuncBodyDate'
and prov_var_num is null
and prov_var_vc2 is null
and prov_var_clob is null;
ut.expect( l_actual ).to_equal( l_expected );
-- get step key
select sbfl_step_key
into l_step_key
from flow_subflows
where sbfl_id = l_sbfl_id;
--step forward on subflow to complete subflow
flow_api_pkg.flow_complete_step
( p_process_id => g_prcs_id
, p_subflow_id => l_sbfl_id
, p_step_key => l_step_key);
end var_exp_funcbody;
procedure var_exp_process_completed
is
l_actual sys_refcursor;
l_expected sys_refcursor;
begin
-- if all of the tests have completed correctly, the process should also have completed.
-- final test is to check that all subflows, and hence the process, completed correctly.
open l_expected for
select
g_dgrm_id as prcs_dgrm_id,
'test - var_exp_all_types' as prcs_name,
flow_constants_pkg.gc_prcs_status_completed as prcs_status
from dual;
open l_actual for
select prcs_dgrm_id, prcs_name, prcs_status
from flow_processes p
where p.prcs_id = g_prcs_id;
ut.expect( l_actual ).to_equal( l_expected );
end var_exp_process_completed;
end test_variable_expressions; |
-- ================================================
-- Template generated from Template Explorer using:
-- Create Procedure (New Menu).SQL
--
-- Use the Specify Values for Template Parameters
-- command (Ctrl-Shift-M) to fill in the parameter
-- values below.
--
-- This block of comments will not be included in
-- the definition of the procedure.
-- ================================================
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <NAME>
-- Create date:
-- Description: Ta id twn foititvn pou katoxirosan ergastiria gia sigkekrimeni xronia kai periodo
-- =============================================
CREATE PROCEDURE IdFoitoitwnKatoxirosiErg
-- Add the parameters for the stored procedure here
@year int = 0,
@period int = 0
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
SELECT studentID
FROM [dbo].[UNIStudentCourses]
WHERE cyear=@year and cperiod=@period and cgrade=0.4 and courseID like '269-____2'
Group by studentID
END
GO
|
<gh_stars>0
DROP TABLE IF EXISTS "paises";
CREATE TABLE "paises" ("id_pais" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE , "nombre" VARCHAR);
INSERT INTO "paises" VALUES(1,'Mexico');
INSERT INTO "paises" VALUES(2,'Canada');
INSERT INTO "paises" VALUES(3,'Estados Unidos');
|
<reponame>Epi-Info/Epi-Info-Database-Web
CREATE PROCEDURE [dbo].[usp_IsSQLProject]
@FormId varchar(100) = ''
AS
BEGIN
Select IsSQLProject
from SurveyMetaData where Cast(SurveyId as varchar(100)) = @FormId;-- '05c7ff68-4feb-4e54-a620-8670dadf7590' ; --CONVERT(UNIQUEIDENTIFIER, @FormId);
END |
<gh_stars>0
SELECT
CASE
WHEN connection_spec.data_direction == 0 THEN "c2s"
WHEN connection_spec.data_direction == 1 THEN "s2c"
ELSE "error"
END as label_direction,
CONCAT(
REPLACE(
REGEXP_EXTRACT(task_filename,
r'gs://.*-(mlab[1-4]-[a-z]{3}[0-9]+)-ndt.*.tgz'),
"-",
"."),
".measurement-lab.org") AS label_machine,
count(*) as value
FROM
[measurement-lab:public.ndt]
WHERE
TIMESTAMP_TO_USEC(log_time) > ((INTEGER(UNIX_START_TIME) / (REFRESH_RATE_SEC)) * (REFRESH_RATE_SEC) - (24 * 60 * 60)) * 1000000
GROUP BY label_machine, label_direction
ORDER BY value
|
USE [TMF656]
GO
/****** Object: Table [dbo].[ServiceProblem2Place] Script Date: 10/30/2020 9:14:07 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ServiceProblem2Place](
[id] [uniqueidentifier] NOT NULL,
[ServiceProblem] [uniqueidentifier] NOT NULL,
[Place] [uniqueidentifier] NULL,
[RelationshipType] [varchar](50) NOT NULL,
[external_id] [varchar](max) NULL,
[external_href] [varchar](max) NULL,
CONSTRAINT [PK_ServiceProblem2AffectedLocation] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[ServiceProblem2Place] ADD CONSTRAINT [DF_ServiceProblem2AffectedLocation_id] DEFAULT (newid()) FOR [id]
GO
ALTER TABLE [dbo].[ServiceProblem2Place] WITH CHECK ADD CONSTRAINT [FK_ServiceProblem2AffectedLocation_Place] FOREIGN KEY([Place])
REFERENCES [dbo].[Place] ([id])
GO
ALTER TABLE [dbo].[ServiceProblem2Place] CHECK CONSTRAINT [FK_ServiceProblem2AffectedLocation_Place]
GO
ALTER TABLE [dbo].[ServiceProblem2Place] WITH CHECK ADD CONSTRAINT [FK_ServiceProblem2AffectedLocation_ServiceProblem] FOREIGN KEY([ServiceProblem])
REFERENCES [dbo].[ServiceProblem] ([id])
GO
ALTER TABLE [dbo].[ServiceProblem2Place] CHECK CONSTRAINT [FK_ServiceProblem2AffectedLocation_ServiceProblem]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Values allowed; AFFECTED_LOCATION' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ServiceProblem2Place', @level2type=N'COLUMN',@level2name=N'RelationshipType'
GO
|
<gh_stars>10-100
CREATE OR REPLACE VIEW "public"."view_nation_indicateur_login" AS
SELECT u.type,
count(m.id) AS count
FROM mandataires m,
users u
WHERE ((m.user_id = u.id) AND (u.active = true) AND (u.last_login > (now() - '1 mon'::interval)))
GROUP BY u.type
UNION
SELECT u.type,
count(DISTINCT sm.service_id) AS count
FROM users u,
departements d,
service_members sm,
services s
WHERE ((u.active = true) AND (u.id = sm.user_id) AND (sm.service_id = s.id) AND (u.last_login > (now() - '1 mon'::interval)))
GROUP BY u.type
UNION
SELECT u.type,
count(DISTINCT m.id) AS count
FROM tis t
JOIN magistrat m ON m.ti_id = t.id
JOIN users u ON u.id = m.user_id
WHERE u.active = true AND u.last_login > (now() - '1 mon'::interval)
GROUP BY u.type
UNION
SELECT u.type,
count(DISTINCT di.id) AS count
FROM direction di
JOIN users u ON di.user_id = u.id
WHERE (((u.active = true) AND (u.last_login > (now() - '1 mon'::interval))))
GROUP BY u.type;
|
CREATE VIEW stock (
symbol varchar,
price decimal
) AS select null, null;
CREATE function func (val string) returns integer options (JAVA_CLASS 'org.teiid.arquillian.SampleFunctions', JAVA_METHOD 'doSomething'); |
<gh_stars>1000+
ALTER TABLE `lh_chat` ADD `uagent` varchar(250) NOT NULL, COMMENT='';
ALTER TABLE `lh_chat` ADD `device_type` int(11) NOT NULL DEFAULT '0', COMMENT=''; |
<reponame>henrylin2015/tp3.2.3-sys<filename>data/tp3.2.3_2016-10-24.sql
# ************************************************************
# Sequel Pro SQL dump
# Version 4499
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.6.27)
# Database: tp3.2.3
# Generation Time: 2016-10-24 09:41:20 +0000
# ************************************************************
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
# Dump of table tp_admin_user
# ------------------------------------------------------------
DROP TABLE IF EXISTS `tp_admin_user`;
CREATE TABLE `tp_admin_user` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'UID',
`user_type` int(11) NOT NULL DEFAULT '1' COMMENT '用户类型',
`nickname` varchar(63) DEFAULT NULL COMMENT '昵称',
`username` varchar(31) NOT NULL DEFAULT '' COMMENT '用户名',
`password` varchar(63) NOT NULL DEFAULT '' COMMENT '密码',
`email` varchar(63) NOT NULL DEFAULT '' COMMENT '邮箱',
`email_bind` tinyint(1) NOT NULL DEFAULT '0' COMMENT '邮箱验证',
`mobile` varchar(11) NOT NULL DEFAULT '' COMMENT '手机号',
`mobile_bind` tinyint(1) NOT NULL DEFAULT '0' COMMENT '邮箱验证',
`avatar` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '头像',
`score` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '积分',
`money` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '余额',
`reg_ip` bigint(20) NOT NULL DEFAULT '0' COMMENT '注册IP',
`reg_type` varchar(15) NOT NULL DEFAULT '' COMMENT '注册方式',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
`status` tinyint(3) NOT NULL DEFAULT '0' COMMENT '状态',
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户账号表';
LOCK TABLES `tp_admin_user` WRITE;
/*!40000 ALTER TABLE `tp_admin_user` DISABLE KEYS */;
INSERT INTO `tp_admin_user` (`id`, `user_type`, `nickname`, `username`, `password`, `email`, `email_bind`, `mobile`, `mobile_bind`, `avatar`, `score`, `money`, `reg_ip`, `reg_type`, `create_time`, `update_time`, `status`)
VALUES
(3,1,'henry','admin','1690542b89<PASSWORD>','',0,'',0,0,0,0.00,0,'','2016-10-24 13:54:16','2016-10-24 13:54:16',1);
/*!40000 ALTER TABLE `tp_admin_user` ENABLE KEYS */;
UNLOCK TABLES;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
--
-- hpc_data_registration.sql
--
-- Copyright SVG, Inc.
-- Copyright Leidos Biomedical Research, Inc
--
-- Distributed under the OSI-approved BSD 3-Clause License.
-- See http://ncip.github.com/HPC/LICENSE.txt for details.
--
--
-- @author <a href="mailto:<EMAIL>"><NAME></a>
--
DROP TABLE IF EXISTS public."HPC_BULK_DATA_OBJECT_REGISTRATION_TASK";
CREATE TABLE public."HPC_BULK_DATA_OBJECT_REGISTRATION_TASK"
(
"ID" text PRIMARY KEY,
"USER_ID" text,
"UI_URL" text,
"STATUS" text,
"ITEMS" text,
"CREATED" timestamp
)
WITH (
OIDS=FALSE
);
COMMENT ON TABLE public."HPC_BULK_DATA_OBJECT_REGISTRATION_TASK" IS
'Bulk data object registration tasks';
COMMENT ON COLUMN public."HPC_BULK_DATA_OBJECT_REGISTRATION_TASK"."ID" IS
'The bulk registration task ID';
COMMENT ON COLUMN public."HPC_BULK_DATA_OBJECT_REGISTRATION_TASK"."USER_ID" IS
'The user ID who submitted the request';
COMMENT ON COLUMN public."HPC_BULK_DATA_OBJECT_REGISTRATION_TASK"."UI_URL" IS
'The UI URL to view the task by id.
COMMENT ON COLUMN public."HPC_BULK_DATA_OBJECT_REGISTRATION_TASK"."STATUS" IS
'The bulk registration task status';
COMMENT ON COLUMN public."HPC_BULK_DATA_OBJECT_REGISTRATION_TASK"."ITEMS" IS
'The list individual data object registrations included in this bulk registration request, in JSON format';
COMMENT ON COLUMN public."HPC_BULK_DATA_OBJECT_REGISTRATION_TASK"."CREATED" IS
'The data/time the bulk registration request was submitted';
DROP TABLE IF EXISTS public."HPC_BULK_DATA_OBJECT_REGISTRATION_RESULT";
CREATE TABLE public."HPC_BULK_DATA_OBJECT_REGISTRATION_RESULT"
(
"ID" text PRIMARY KEY,
"USER_ID" text NOT NULL,
"RESULT" boolean NOT NULL,
"MESSAGE" text,
"EFFECTIVE_TRANSFER_SPEED" integer,
"ITEMS" text,
"CREATED" timestamp NOT NULL,
"COMPLETED" timestamp NOT NULL
)
WITH (
OIDS=FALSE
);
COMMENT ON TABLE public."HPC_BULK_DATA_OBJECT_REGISTRATION_RESULT" IS
'Bulk data object registration task results';
COMMENT ON COLUMN public."HPC_BULK_DATA_OBJECT_REGISTRATION_RESULT"."ID" IS
'The bulk registration task ID';
COMMENT ON COLUMN public."HPC_BULK_DATA_OBJECT_REGISTRATION_RESULT"."USER_ID" IS
'The user ID who submitted the request';
COMMENT ON COLUMN public."HPC_BULK_DATA_OBJECT_REGISTRATION_RESULT"."RESULT" IS
'Task success/failure indicator';
COMMENT ON COLUMN public."HPC_BULK_DATA_OBJECT_REGISTRATION_RESULT"."MESSAGE" IS
'An error message if the task failed';
COMMENT ON COLUMN public."HPC_BULK_DATA_OBJECT_REGISTRATION_RESULT"."EFFECTIVE_TRANSFER_SPEED" IS
'The upload effective transfer speed in bytes per second';
COMMENT ON COLUMN public."HPC_BULK_DATA_OBJECT_REGISTRATION_RESULT"."ITEMS" IS
'The list individual data object registrations included in this bulk registration request, in JSON format';
COMMENT ON COLUMN public."HPC_BULK_DATA_OBJECT_REGISTRATION_RESULT"."CREATED" IS
'The data/time the bulk registration request was submitted';
COMMENT ON COLUMN public."HPC_BULK_DATA_OBJECT_REGISTRATION_RESULT"."COMPLETED" IS
'The data/time the bulk registration request was completed';
DROP TABLE IF EXISTS public."HPC_DATA_OBJECT_REGISTRATION_RESULT";
CREATE TABLE public."HPC_DATA_OBJECT_REGISTRATION_RESULT"
(
"ID" text PRIMARY KEY,
"PATH" text NOT NULL,
"USER_ID" text NOT NULL,
"UPLOAD_METHOD" text,
"RESULT" boolean NOT NULL,
"MESSAGE" text,
"EFFECTIVE_TRANSFER_SPEED" integer,
"DATA_TRANSFER_REQUEST_ID" text,
"SOURCE_LOCATION_FILE_ID" text,
"SOURCE_LOCATION_FILE_CONTAINER_ID" text,
"SOURCE_LOCATION_FILE_CONTAINER_NAME" text,
"CREATED" timestamp NOT NULL,
"COMPLETED" timestamp NOT NULL
)
WITH (
OIDS=FALSE
);
COMMENT ON TABLE public."HPC_DATA_OBJECT_REGISTRATION_RESULT" IS
'Data object registration task results';
COMMENT ON COLUMN public."HPC_DATA_OBJECT_REGISTRATION_RESULT"."ID" IS
'The registered data object ID';
COMMENT ON COLUMN public."HPC_DATA_OBJECT_REGISTRATION_RESULT"."PATH" IS
'The registered data object path';
COMMENT ON COLUMN public."HPC_DATA_OBJECT_REGISTRATION_RESULT"."USER_ID" IS
'The user ID who submitted the request';
COMMENT ON COLUMN public."HPC_DATA_OBJECT_REGISTRATION_RESULT"."UPLOAD_METHOD" IS
'The upload method used w/ the registration request';
COMMENT ON COLUMN public."HPC_DATA_OBJECT_REGISTRATION_RESULT"."RESULT" IS
'Registration success/failure indicator';
COMMENT ON COLUMN public."HPC_DATA_OBJECT_REGISTRATION_RESULT"."MESSAGE" IS
'An error message if the registration failed';
COMMENT ON COLUMN public."HPC_DATA_OBJECT_REGISTRATION_RESULT"."EFFECTIVE_TRANSFER_SPEED" IS
'The upload effective transfer speed in bytes per second';
COMMENT ON COLUMN public."HPC_DATA_OBJECT_REGISTRATION_RESULT"."DATA_TRANSFER_REQUEST_ID" IS
'The data transfer (Globus, S3, etc) request ID';
COMMENT ON COLUMN public."HPC_DATA_OBJECT_REGISTRATION_RESULT"."SOURCE_LOCATION_FILE_ID" IS
'The file ID on the upload source endpoint';
COMMENT ON COLUMN public."HPC_DATA_OBJECT_REGISTRATION_RESULT"."SOURCE_LOCATION_FILE_CONTAINER_ID" IS
'The upload source container ID';
COMMENT ON COLUMN public."HPC_DATA_OBJECT_REGISTRATION_RESULT"."SOURCE_LOCATION_FILE_CONTAINER_NAME" IS
'The upload source container name';
COMMENT ON COLUMN public."HPC_DATA_OBJECT_REGISTRATION_RESULT"."CREATED" IS
'The data/time the bulk registration request was submitted';
COMMENT ON COLUMN public."HPC_DATA_OBJECT_REGISTRATION_RESULT"."COMPLETED" IS
'The data/time the bulk registration request was completed';
|
<filename>fdb-sql-layer-core/src/test/resources/com/foundationdb/sql/optimizer/rule/pick-joins-and-indexes/order-by-subquery-provides-order-by.sql
-- Make sure sort is handled for both inside and outside
-- The subquery should be able to provide the sort for the outside, but that's a lot of work. For now, just ensure
-- that the sort still exists. Ideally it would put the subquery as the outer source and not have run an additional
-- sort
SELECT * FROM t1 JOIN (SELECT id FROM a ORDER BY id LIMIT 10) AS anon1 on anon1.id = t1.c1 ORDER BY anon1.id
|
CREATE VIEW TSBCouponTransactionView
AS
SELECT TSBCouponTransaction.*
, TSB.TSBNameEN
, TSB.TSBNameTH
--, usr.FullNameEN, usr.FullNameTH
--, sup.FullNameEN AS SoldByFullNameEN, sup.FullNameTH AS SoldByFullNameTH
, LaneView.PlazaGroupId, LaneView.PlazaGroupNameEN, LaneView.PlazaGroupNameTH
FROM TSBCouponTransaction
LEFT JOIN LaneView ON (TSBCouponTransaction.TSBId = LaneView.TSBId AND TSBCouponTransaction.LaneId = LaneView.LaneId)
, TSB
--LEFT JOIN [UserView] usr ON (TSBCouponTransaction.UserId = usr.UserId)
--LEFT JOIN [UserView] sup ON (TSBCouponTransaction.SoldBy = sup.UserId)
WHERE TSBCouponTransaction.TSBId = TSB.TSBId
|
<filename>TestDatabase/Security/Schemas/Division.sql
CREATE SCHEMA [Division] |
<gh_stars>0
/*OPENER*/
UPDATE Policies SET CultureFromKills=50, CultureFromBarbarianKills=0 WHERE Type='POLICY_HONOR';
/*Professional Army*/
UPDATE Policy_BuildingClassProductionModifiers SET ProductionModifier=100 WHERE PolicyType='POLICY_PROFESSIONAL_ARMY';
/*Warrior Code*/
UPDATE Policies SET BaseFreeUnits=2 WHERE Type='POLICY_WARRIOR_CODE';
DELETE FROM Policy_UnitCombatProductionModifiers WHERE PolicyType='POLICY_WARRIOR_CODE';
DELETE FROM Policy_FreeUnitClasses WHERE PolicyType='POLICY_WARRIOR_CODE';
INSERT INTO Policy_FreeUnitClasses
(PolicyType, UnitClassType, Count) VALUES
('POLICY_WARRIOR_CODE', 'UNITCLASS_WARRIOR', 2);
/*DISCIPLINE*/
UPDATE Policies SET ExpModifier=50 WHERE Type='POLICY_DISCIPLINE';
/*MILITARY_TRADITION*/
UPDATE Policies SET ExpModifier=0 WHERE Type='POLICY_MILITARY_TRADITION';
UPDATE Policies Set MilitaryProductionModifier=15 WHERE Type='POLICY_MILITARY_TRADITION';
UPDATE Policies SET IncludesOneShotFreeUnits=1 WHERE Type='POLICY_MILITARY_TRADITION';
INSERT INTO Policy_FreeUnitClasses
(PolicyType, UnitClassType, Count) VALUES
('POLICY_MILITARY_TRADITION', 'UNITCLASS_GREAT_GENERAL', 1);
INSERT INTO Policy_BuildingClassHappiness
(PolicyType, BuildingClassType, Happiness) VALUES
('POLICY_MILITARY_TRADITION', 'BUILDINGCLASS_HEROIC_EPIC', 4);
/*Military caste*/
UPDATE Policies SET CulturePerGarrisonedUnit=0 WHERE Type='POLICY_MILITARY_CASTE';
UPDATE Policies SET HappinessPerGarrisonedUnit=0 WHERE Type='POLICY_MILITARY_CASTE';
INSERT INTO Policy_BuildingClassCultureChanges
(PolicyType, BuildingClassType, CultureChange) VALUES
('POLICY_MILITARY_CASTE', 'BUILDINGCLASS_BARRACKS', 2);
INSERT INTO Policy_BuildingClassHappiness
(PolicyType, BuildingClassType, Happiness) VALUES
('POLICY_MILITARY_CASTE', 'BUILDINGCLASS_BARRACKS', 1);
/*Finisher*/
INSERT INTO Policy_BuildingClassProductionModifiers
(PolicyType, BuildingClassType, ProductionModifier) VALUES
('POLICY_HONOR_FINISHER', 'BUILDINGCLASS_COURTHOUSE', 50);
/*Layout*/
UPDATE Policies SET GridX=2, GridY=1 where Type='POLICY_PROFESSIONAL_ARMY';
UPDATE Policies SET GridX=2, GridY=2 where Type='POLICY_MILITARY_CASTE';
UPDATE Policies SET GridX=4, GridY=1 where Type='POLICY_WARRIOR_CODE';
UPDATE Policies SET GridX=4, GridY=2 where Type='POLICY_DISCIPLINE';
UPDATE Policies SET GridX=3, GridY=3 where Type='POLICY_MILITARY_TRADITION';
/*Prereqs*/
DELETE FROM Policy_PrereqPolicies WHERE PolicyType='POLICY_PROFESSIONAL_ARMY';
DELETE FROM Policy_PrereqPolicies WHERE PolicyType='POLICY_MILITARY_CASTE';
DELETE FROM Policy_PrereqPolicies WHERE PolicyType='POLICY_MILITARY_TRADITION';
INSERT INTO Policy_PrereqPolicies
(PolicyType, PrereqPolicy) VALUES
('POLICY_DISCIPLINE', 'POLICY_WARRIOR_CODE'),
('POLICY_MILITARY_CASTE', 'POLICY_PROFESSIONAL_ARMY'),
('POLICY_MILITARY_TRADITION', 'POLICY_DISCIPLINE'),
('POLICY_MILITARY_TRADITION', 'POLICY_MILITARY_CASTE');
/*Texts*/
Update Language_en_US Set Text='[COLOR_POSITIVE_TEXT]Honor[ENDCOLOR] is best for agressive and militaristic civilizations. It unlocks the Statue of Zeus.[NEWLINE][NEWLINE]Adopting Honor will grant [ICON_CULTURE] when destroying enemy units (50% of [ICON_STRENGTH]). It will also periodically reveal barbarian camps and boost strength against barbarians by 33%.[NEWLINE][NEWLINE]Adopting all Policies in the Honor tree will grant gold when killing units and boosts the production of Courthouses by 50%. It also allows the purchase of Great Generals with [ICON_PEACE] Faith starting in the Industrial Era.' Where Tag='TXT_KEY_POLICY_BRANCH_HONOR_HELP';
Update Language_en_US Set Text='[COLOR_POSITIVE_TEXT]Professional Army[ENDCOLOR][NEWLINE]Barracks, Armories, and Military Academies production is doubled and upgrading units costs 33% less [ICON_GOLD] gold.' Where Tag='TXT_KEY_POLICY_PROFESSIONAL_ARMY_HELP';
Update Language_en_US Set Text='[COLOR_POSITIVE_TEXT]Military Caste[ENDCOLOR][NEWLINE]Barracks now give +1 [ICON_HAPPINESS_1] Happiness, and +2 [ICON_CULTURE] Culture.' Where Tag='TXT_KEY_POLICY_MILITARY_CASTE_HELP';
Update Language_en_US Set Text='[COLOR_POSITIVE_TEXT]Warrior Code[ENDCOLOR][NEWLINE]Receive 2 warriors and 2 units cost no maintenance. General points are increased by 50%.' Where Tag='TXT_KEY_POLICY_WARRIOR_CODE_HELP';
Update Language_en_US Set Text='[COLOR_POSITIVE_TEXT]Discipline[ENDCOLOR][NEWLINE]+15% [ICON_STRENGTH] combat strength for melee Units next to military units. Military units also gain 50% more Experience from combat.' Where Tag='TXT_KEY_POLICY_DISCIPLINE_HELP';
Update Language_en_US Set Text='[COLOR_POSITIVE_TEXT]Military Tradition[ENDCOLOR][NEWLINE]Get 15% more [ICON_PRODUCTION] Production toward military units and the Heroic Epic gives +4 [ICON_HAPPINESS_1] Happiness. You also receive a free Great General.' Where Tag='TXT_KEY_POLICY_MILITARY_TRADITION_HELP';
Update Language_DE_DE Set Text='[COLOR_POSITIVE_TEXT]Honor[ENDCOLOR] is best for agressive and militaristic civilizations. It unlocks the Statue of Zeus.[NEWLINE][NEWLINE]Adopting Honor will grant [ICON_CULTURE] when destroying enemy units (50% of [ICON_STRENGTH]). It will also periodically reveal barbarian camps and boost strength against barbarians by 33%.[NEWLINE][NEWLINE]Adopting all Policies in the Honor tree will grant gold when killing units and boosts the production of Courthouses by 50%. It also allows the purchase of Great Generals with [ICON_PEACE] Faith starting in the Industrial Era.' Where Tag='TXT_KEY_POLICY_BRANCH_HONOR_HELP';
Update Language_DE_DE Set Text='[COLOR_POSITIVE_TEXT]Professional Army[ENDCOLOR][NEWLINE]Barracks, Armories, and Military Academies production is doubled and upgrading units costs 33% less [ICON_GOLD] gold.' Where Tag='TXT_KEY_POLICY_PROFESSIONAL_ARMY_HELP';
Update Language_DE_DE Set Text='[COLOR_POSITIVE_TEXT]Military Caste[ENDCOLOR][NEWLINE]Barracks now give +1 [ICON_HAPPINESS_1] Happiness, and +2 [ICON_CULTURE] Culture.' Where Tag='TXT_KEY_POLICY_MILITARY_CASTE_HELP';
Update Language_DE_DE Set Text='[COLOR_POSITIVE_TEXT]Warrior Code[ENDCOLOR][NEWLINE]Receive 2 warriors and 2 units cost no maintenance. General points are increased by 50%.' Where Tag='TXT_KEY_POLICY_WARRIOR_CODE_HELP';
Update Language_DE_DE Set Text='[COLOR_POSITIVE_TEXT]Discipline[ENDCOLOR][NEWLINE]+15% [ICON_STRENGTH] combat strength for melee Units next to military units. Military units also gain 50% more Experience from combat.' Where Tag='TXT_KEY_POLICY_DISCIPLINE_HELP';
Update Language_DE_DE Set Text='[COLOR_POSITIVE_TEXT]Military Tradition[ENDCOLOR][NEWLINE]Get 15% more [ICON_PRODUCTION] Production toward military units and the Heroic Epic gives +4 [ICON_HAPPINESS_1] Happiness. You also receive a free Great General.' Where Tag='TXT_KEY_POLICY_MILITARY_TRADITION_HELP';
Update Language_PL_PL Set Text='[COLOR_POSITIVE_TEXT]Honor[ENDCOLOR] is best for agressive and militaristic civilizations. It unlocks the Statue of Zeus.[NEWLINE][NEWLINE]Adopting Honor will grant [ICON_CULTURE] when destroying enemy units (50% of [ICON_STRENGTH]). It will also periodically reveal barbarian camps and boost strength against barbarians by 33%.[NEWLINE][NEWLINE]Adopting all Policies in the Honor tree will grant gold when killing units and boosts the production of Courthouses by 50%. It also allows the purchase of Great Generals with [ICON_PEACE] Faith starting in the Industrial Era.' Where Tag='TXT_KEY_POLICY_BRANCH_HONOR_HELP';
Update Language_PL_PL Set Text='[COLOR_POSITIVE_TEXT]Professional Army[ENDCOLOR][NEWLINE]Barracks, Armories, and Military Academies production is doubled and upgrading units costs 33% less [ICON_GOLD] gold.' Where Tag='TXT_KEY_POLICY_PROFESSIONAL_ARMY_HELP';
Update Language_PL_PL Set Text='[COLOR_POSITIVE_TEXT]Military Caste[ENDCOLOR][NEWLINE]Barracks now give +1 [ICON_HAPPINESS_1] Happiness, and +2 [ICON_CULTURE] Culture.' Where Tag='TXT_KEY_POLICY_MILITARY_CASTE_HELP';
Update Language_PL_PL Set Text='[COLOR_POSITIVE_TEXT]Warrior Code[ENDCOLOR][NEWLINE]Receive 2 warriors and 2 units cost no maintenance. General points are increased by 50%.' Where Tag='TXT_KEY_POLICY_WARRIOR_CODE_HELP';
Update Language_PL_PL Set Text='[COLOR_POSITIVE_TEXT]Discipline[ENDCOLOR][NEWLINE]+15% [ICON_STRENGTH] combat strength for melee Units next to military units. Military units also gain 50% more Experience from combat.' Where Tag='TXT_KEY_POLICY_DISCIPLINE_HELP';
Update Language_PL_PL Set Text='[COLOR_POSITIVE_TEXT]Military Tradition[ENDCOLOR][NEWLINE]Get 15% more [ICON_PRODUCTION] Production toward military units and the Heroic Epic gives +4 [ICON_HAPPINESS_1] Happiness. You also receive a free Great General.' Where Tag='TXT_KEY_POLICY_MILITARY_TRADITION_HELP'; |
<filename>src/config/db/default_data/system_vatrates.sql
INSERT INTO `SITE_DB`.`system_vatrates` (`id`, `name`, `vatrate`, `country`)
VALUES
(1,'No VAT',0,'DK'),
(2,'25%',25,'DK');
|
<gh_stars>1-10
select top 100 v.VacancyId, v.VacancyOwnerRelationshipId
from vacancy v
join vacancyownerrelationship vor
on vor.VacancyOwnerRelationshipId = v.VacancyOwnerRelationshipId
where v.vacancystatusid = 2
and vor.statustypeid <> 4
UPDATE vacancyownerrelationship
SET EditedInRaa = 1,
StatusTypeId = 4
WHERE VacancyOwnerRelationshipId IN (139891, 356820)
select top 100 v.VacancyId, v.VacancyOwnerRelationshipId
from vacancy v
join vacancyownerrelationship vor
on vor.VacancyOwnerRelationshipId = v.VacancyOwnerRelationshipId
where v.vacancystatusid = 2
and vor.statustypeid <> 4
UPDATE vacancyownerrelationship
SET EditedInRaa = 1,
StatusTypeId = 4
WHERE VacancyOwnerRelationshipId IN (139891, 356820)
|
SELECT COUNT(*)
FROM {{ schema }}.{{ table }}
WHERE {{ column }} IS NULL |
<reponame>timshadel/subdivision-list<filename>data/gl/postgres/subdivisions_CH.postgres.sql<gh_stars>10-100
CREATE TABLE subdivision_CH (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-AG', E'Argovia', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-AR', E'Appenzell Exterior', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-AI', E'Appenzell Interior', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-BL', E'Basilea-Campo', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-BS', E'Basilea-Cidade', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-BE', E'Berna - Bern', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-FR', E'Friburgo - Fribourg', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-GR', E'Grisóns', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-JU', E'Jura', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-NE', E'Neuchâtel', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-NW', E'Nidwalden', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-OW', E'Obwalden', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-SH', E'Schaffhausen', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-TG', E'Turgovia', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-TI', E'Tesino', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-VS', E'Valais', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-VD', E'Vaud', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-GE', E'Xenebra - Genève', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-LU', E'Lucerna - Luzern', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-ZH', E'Zúric - Zürich', E'canton');
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.