-- phpMyAdmin SQL Dump
-- version 5.1.1deb5ubuntu1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3308:3308
-- Generation Time: Mar 22, 2026 at 12:46 PM
-- Server version: 8.0.45-0ubuntu0.22.04.1
-- PHP Version: 8.1.2-1ubuntu2.23

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `zug_trenesanas_eksamenam_1`
--

-- --------------------------------------------------------

--
-- Table structure for table `Darba_numurs`
--

CREATE TABLE `Darba_numurs` (
  `id` int NOT NULL COMMENT 'Darba numura id',
  `darba_nr` decimal(4,2) DEFAULT NULL COMMENT 'Kaut kāds skaitlis idk',
  `darba_variants` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Kas tas par darbu',
  `merv` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Mērvienība',
  `cena` int DEFAULT NULL COMMENT 'Cena par katru'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Kāds darbs notiek?';

--
-- Dumping data for table `Darba_numurs`
--

INSERT INTO `Darba_numurs` (`id`, `darba_nr`, `darba_variants`, `merv`, `cena`) VALUES
(1, '5.20', 'Maršruta apsekošana', 'km', 1),
(2, '5.10', 'Izsaukums luksofora objektā', 'gab.', 10),
(3, '3.17', 'Vadības plates ZKS tipa drošinātāja nomaiņa', 'gab.', 10),
(4, '2.40', 'Balsta vāka maiņa', 'gab.', 5),
(5, '1.28', 'SP-7 tipa sadalnes montāža', 'gab.', 20),
(6, '4.40', 'Signālgalvas demontāža uz balsta', 'gab.', 10),
(7, '2.43', 'Pasūtītāja transporta signālgalvas montāža uz balsta', 'gab.', 20),
(8, '1.25', 'Signālkabeļa spaiļu komplekta nomaiņa balstā, konsolē', 'kompl.', 5),
(9, '1.11', 'Signālkabeļa Cu 7x1,5 montāža stabā, konsolē', 'm.', 2),
(10, '2.27', 'Spuldzes nomaiņa uz balsta', 'gab.', 4),
(11, '1.26', 'Luksofora objekta bojājuma noteikšana', 'st.', 20),
(12, '2.25', 'Signālgalvas aizsargjumtiņa nomaiņa uz balsta', 'gab.', 20),
(13, '5.30', 'Skaitītāju radījumu nolasīšana, objektu apsekošana', 'gab.', 2495);

-- --------------------------------------------------------

--
-- Table structure for table `Darbinieki`
--

CREATE TABLE `Darbinieki` (
  `id` int NOT NULL COMMENT 'Darbinieka id',
  `vards` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Darbinieka vārds'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Darbinieki';

--
-- Dumping data for table `Darbinieki`
--

INSERT INTO `Darbinieki` (`id`, `vards`) VALUES
(1, 'U. Grunde-Zeiferde'),
(2, 'Ē. Aukmanis'),
(3, 'U. Grunde-Zeiferts, Ē. Aukmanis');

-- --------------------------------------------------------

--
-- Table structure for table `Darbs`
--

CREATE TABLE `Darbs` (
  `id` int NOT NULL COMMENT 'darba id',
  `darba_tips` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Kas notiek?',
  `darba_numurs_id` int DEFAULT NULL COMMENT 'Darba tipa id',
  `nauda_id` int DEFAULT NULL COMMENT 'naudas id',
  `darbinieka_id` int DEFAULT NULL COMMENT 'darbinieka id',
  `vieta_id` int DEFAULT NULL COMMENT 'vietas id',
  `sakums` timestamp NULL DEFAULT NULL COMMENT 'Kad sāka darbu?',
  `beigas` timestamp NULL DEFAULT NULL COMMENT 'Kad beidza darbu?'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Visa kopīgā informācija';

--
-- Dumping data for table `Darbs`
--

INSERT INTO `Darbs` (`id`, `darba_tips`, `darba_numurs_id`, `nauda_id`, `darbinieka_id`, `vieta_id`, `sakums`, `beigas`) VALUES
(1, 'Apgaita', 1, 1, 1, 1, '2012-01-01 06:00:00', '2012-01-01 07:30:00'),
(2, 'Apgaita', 1, 2, 1, 1, '2012-01-02 06:00:00', '2012-01-02 07:30:00'),
(3, 'Apgaita', 1, 3, 1, 1, '2012-01-03 06:00:00', '2012-01-03 07:30:00'),
(4, 'Izsaukums', 2, 4, 1, 2, '2026-01-03 11:50:00', '2026-01-03 12:50:00'),
(5, 'Izsaukums', 2, 5, 1, 3, '2026-01-03 14:00:00', '2026-01-03 14:15:00'),
(6, 'Izsaukums', 2, 6, 1, 4, '2026-01-03 14:15:00', '2026-01-03 14:30:00'),
(7, 'Izsaukums', 2, 7, 1, 5, '2026-01-03 14:50:00', '2026-01-03 15:30:00'),
(8, 'Apkope', 3, 8, 1, 5, '2026-01-03 14:50:00', '2026-01-03 15:30:00'),
(9, 'Apkope', 4, 9, 1, 5, '2026-01-03 14:50:00', '2026-01-03 15:30:00'),
(10, 'Izsaukums', 2, 10, 1, 6, '2026-01-03 15:45:00', '2026-01-03 16:00:00'),
(11, 'Apkope', 4, 11, 1, 6, '2026-01-03 15:45:00', '2026-01-03 16:00:00'),
(12, 'Apgaita', 1, 12, 1, 1, '2026-01-04 06:00:00', '2026-01-04 07:30:00'),
(13, 'Izsaukums', 2, 13, 1, 5, '2026-01-04 09:00:00', '2026-01-04 16:00:00'),
(14, 'Apkope', 5, 14, 1, 5, '2026-01-04 09:00:00', '2026-01-04 09:30:00'),
(15, 'Izsaukums', 2, 15, 1, 7, '2026-01-04 14:22:00', '2026-01-04 17:00:00'),
(16, 'Apkope', 6, 16, 1, 7, '2026-01-04 15:00:00', '2026-01-04 16:00:00'),
(18, 'Apkope', 8, 18, 1, 7, '2026-01-04 16:00:00', '2026-01-04 17:30:00'),
(19, 'Apkope', 9, 19, 1, 7, '2026-01-04 16:00:00', '2026-01-04 17:30:00'),
(20, 'Apgaita', 1, 20, 2, 1, '2026-01-04 16:00:00', '2026-01-04 17:30:00'),
(21, 'Izsaukums', 2, 21, 2, 8, '2026-01-05 06:00:00', '2026-01-05 07:30:00'),
(22, 'Izsaukums', 2, 22, 2, 2, '2026-01-05 07:25:00', '2026-01-05 10:00:00'),
(23, 'Izsaukums', 2, 23, 2, 8, '2026-01-05 09:00:00', '2026-01-05 10:00:00'),
(24, 'Izsaukums', 2, 24, 2, 9, '2026-01-05 10:00:00', '2026-01-05 10:30:00'),
(25, 'Izsaukums', 2, 25, 2, 10, '2026-01-05 10:30:00', '2026-01-05 12:00:00'),
(26, 'Izsaukums', 2, 26, 2, 3, '2026-01-05 12:48:00', '2026-01-05 13:30:00'),
(27, 'Izsaukums', 2, 27, 2, 9, '2026-01-05 13:30:00', '2026-01-05 14:00:00'),
(28, 'Apgaita', 1, 28, 2, 1, '2026-01-05 14:00:00', '2026-01-05 15:00:00'),
(29, 'Izsaukums', 2, 29, 2, 11, '2026-01-06 06:00:00', '2026-01-06 07:30:00'),
(30, 'Apkope', 10, 30, 2, 11, '2026-01-06 06:30:00', '2026-01-06 07:40:00'),
(31, 'Apgaita', 1, 31, 2, 1, '2026-01-06 06:30:00', '2026-01-06 07:40:00'),
(32, 'Apgaita', 1, 32, 2, 1, '2026-01-07 06:00:00', '2026-01-07 07:30:00'),
(33, 'Izsaukums', 2, 33, 2, 8, '2026-01-08 06:00:00', '2026-01-08 07:30:00'),
(34, 'Apgaita', 1, 34, 2, 1, '2026-01-08 14:30:00', '2026-01-08 15:00:00'),
(36, 'Izsaukums', 2, 36, 2, 13, '2026-01-09 09:00:00', '2026-01-09 09:40:00'),
(37, 'Izsaukums', 2, 37, 1, 14, '2026-01-09 10:00:00', '2026-01-09 10:30:00'),
(38, 'Izsaukums', 2, 38, 1, 14, '2026-01-09 14:20:00', '2026-01-09 15:00:00'),
(39, 'Izsaukums', 2, 39, 1, 15, '2026-01-09 15:30:00', '2026-01-09 16:00:00'),
(40, 'Izsaukums', 2, 40, 1, 16, '2026-01-09 15:30:00', '2026-01-09 16:30:00'),
(41, 'Apkope', 11, 41, 1, 16, '2026-01-09 15:30:00', '2026-01-09 17:00:00'),
(42, 'Apkope', 11, 42, 1, 15, '2026-01-09 15:30:00', '2026-01-09 17:00:00'),
(43, 'Apkope', 11, 43, 1, 15, '2026-01-09 16:00:00', '2026-01-09 16:30:00'),
(44, 'Apgaita', 1, 44, 1, 1, '2026-01-09 16:00:00', '2026-01-09 16:30:00'),
(45, 'Apgaita', 1, 45, 1, 1, '2026-01-10 06:00:00', '2026-01-10 07:30:00'),
(47, 'Izsaukums', 2, 47, 2, 3, '2026-01-12 06:00:00', '2026-01-12 07:30:00'),
(48, 'Apkope', 12, 48, 2, 3, '2026-01-12 12:07:00', '2026-01-12 13:25:00'),
(50, 'Apgaita', 1, 50, 2, 1, '2026-01-12 17:01:00', '2026-01-12 18:09:00'),
(51, 'Izsaukums', 2, 51, 2, 18, '2026-01-13 06:00:00', '2026-01-13 07:30:00'),
(52, 'Apkope', 10, 52, 2, 18, '2026-01-13 09:49:00', '2026-01-13 10:09:00'),
(53, 'Izsaukums', 2, 53, 2, 10, '2026-01-13 09:49:00', '2026-01-13 10:09:00'),
(54, 'Izsaukums', 2, 54, 2, 3, '2026-01-13 11:19:00', '2026-01-13 11:39:00'),
(55, 'Apgaita', 1, 55, 1, 1, '2026-01-13 13:48:00', '2026-01-13 16:07:00'),
(56, 'Izsaukums', 2, 56, 1, 12, '2026-01-14 06:00:00', '2026-01-14 07:30:00'),
(57, 'Apkope', 10, 57, 1, 12, '2026-01-14 20:07:00', '2026-01-14 20:08:00'),
(58, 'Izsaukums', 2, 58, 1, 19, '2026-01-14 20:07:00', '2026-01-14 20:08:00'),
(59, 'Apgaita', 1, 59, 1, 1, '2026-01-14 20:09:00', '2026-01-14 20:10:00'),
(60, 'Izsaukums', 2, 60, 1, 16, '2026-01-15 06:00:00', '2026-01-15 07:30:00'),
(61, 'Apgaita', 1, 61, 1, 1, '2026-01-15 07:00:00', '2026-01-15 07:30:00'),
(62, 'Apgaita', 1, 62, 1, 1, '2026-01-16 06:00:00', '2026-01-16 07:30:00'),
(63, 'Izsaukums', 2, 63, 1, 5, '2026-01-17 06:00:00', '2026-01-17 07:30:00'),
(64, 'Apgaita', 1, 64, 2, 1, '2026-01-17 15:49:00', '2026-01-17 16:30:00'),
(65, 'Apgaita', 1, 65, 2, 1, '2026-01-18 06:00:00', '2026-01-18 07:30:00'),
(66, 'Izsaukums', 2, 66, 2, 15, '2026-01-19 06:00:00', '2026-01-19 07:30:00'),
(67, 'Apkope', 11, 67, 2, 15, '2026-01-19 07:51:00', '2026-01-19 09:54:00'),
(68, 'Apgaita', 1, 68, 2, 1, '2026-01-19 07:51:00', '2026-01-19 09:54:00'),
(69, 'Izsaukums', 2, 69, 3, 20, '2026-01-20 06:00:00', '2026-01-20 07:30:00'),
(70, 'Apkope', 12, 70, 3, 20, '2026-01-20 11:20:00', '2026-01-20 11:50:00'),
(71, 'Izsaukums', 2, 71, 3, 21, '2026-01-20 11:20:00', '2026-01-20 11:50:00'),
(72, 'Apkope', 12, 72, 3, 21, '2026-01-20 11:50:00', '2026-01-20 12:20:00'),
(73, 'Izsaukums', 2, 73, 3, 22, '2026-01-20 11:50:00', '2026-01-20 12:20:00'),
(74, 'Apkope', 12, 74, 3, 22, '2026-01-20 12:20:00', '2026-01-20 12:50:00'),
(75, 'Apgaita', 1, 75, 1, 1, '2026-01-20 12:20:00', '2026-01-20 12:50:00'),
(76, 'Apgaita', 1, 76, 1, 1, '2026-01-21 06:00:00', '2026-01-21 07:30:00'),
(77, 'Izsaukums', 2, 77, 1, 23, '2026-01-22 06:00:00', '2026-01-22 07:30:00'),
(78, 'Apkope', 10, 78, 1, 23, '2026-01-22 07:28:00', '2026-01-22 07:58:00'),
(79, 'Apgaita', 1, 79, 1, 1, '2026-01-22 07:28:00', '2026-01-22 07:58:00'),
(80, 'Apgaita', 1, 80, 1, 1, '2026-01-23 06:00:00', '2026-01-23 07:30:00'),
(81, 'Apgaita', 1, 81, 2, 1, '2026-01-24 06:00:00', '2026-01-24 07:30:00'),
(87, 'Apkope', 10, 87, 2, 25, '2026-01-01 06:00:00', '2026-01-01 07:30:00'),
(88, 'Izsaukums', 2, 88, 2, 25, '2026-01-01 07:30:00', '2026-01-01 08:09:00'),
(89, 'Apgaita', 1, 89, 2, 1, '2026-01-01 08:20:00', '2026-01-01 08:50:00'),
(90, 'Apgaita', 1, 90, 1, 1, '2026-01-27 06:00:00', '2026-01-27 07:30:00'),
(96, 'Izsaukums', 2, 96, 1, 19, '2026-01-29 06:00:00', '2026-01-29 07:30:00'),
(97, 'Apkope', 10, 97, 1, 19, '2026-01-29 06:00:00', '2026-01-29 06:30:00'),
(98, 'Izsaukums', 2, 98, 2, 3, '2026-01-29 06:30:00', '2026-01-29 07:00:00'),
(99, 'Apgaita', 1, 99, 2, 1, '2026-01-29 17:30:00', '2026-01-29 18:00:00'),
(100, 'Izsaukums', 2, 100, 2, 21, '2026-01-30 06:00:00', '2026-01-30 07:30:00'),
(101, 'Apkope', 11, 101, 2, 21, '2026-01-30 06:50:00', '2026-01-30 10:20:00'),
(102, 'Apgaita', 1, 102, 2, 1, '2026-01-30 06:51:00', '2026-01-30 10:24:00'),
(103, 'Izsaukums', 2, 103, 2, 21, '2026-01-31 06:00:00', '2026-01-31 07:30:00'),
(104, 'Apkope', 3, 104, 2, 21, '2026-01-31 07:30:00', '2026-01-31 08:00:00'),
(105, 'Apkope', 11, 105, 2, 21, '2026-01-31 07:30:00', '2026-01-31 08:00:00'),
(106, 'Izsaukums', 2, 106, 2, 25, '2026-01-31 07:30:00', '2026-01-31 08:00:00'),
(107, 'Apkope', 10, 107, 2, 25, '2026-01-31 08:04:00', '2026-01-31 09:04:00'),
(108, 'Apkope', 13, 108, 2, 1, '2026-01-31 08:04:00', '2026-01-31 09:07:00'),
(109, 'Izsaukums', 2, 109, 2, 26, '2026-01-31 09:00:00', '2026-01-31 17:00:00'),
(110, 'Izsaukums', 2, 110, 2, 27, '2026-01-31 09:00:00', '2026-01-31 17:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `Naudas_dati`
--

CREATE TABLE `Naudas_dati` (
  `id` int NOT NULL COMMENT 'Naudas id',
  `daudzums` int DEFAULT NULL COMMENT 'Cik daudz?'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Lietas ar naudu';

--
-- Dumping data for table `Naudas_dati`
--

INSERT INTO `Naudas_dati` (`id`, `daudzums`) VALUES
(1, 20),
(2, 20),
(3, 20),
(4, 1),
(5, 1),
(6, 1),
(7, 1),
(8, 1),
(9, 1),
(10, 1),
(11, 1),
(12, 20),
(13, 1),
(14, 1),
(15, 1),
(16, 1),
(17, 1),
(18, 1),
(19, 3),
(20, 20),
(21, 1),
(22, 1),
(23, 1),
(24, 1),
(25, 1),
(26, 1),
(27, 1),
(28, 20),
(29, 1),
(30, 1),
(31, 20),
(32, 20),
(33, 1),
(34, 20),
(35, 1),
(36, 1),
(37, 1),
(38, 1),
(39, 1),
(40, 1),
(41, 1),
(42, 1),
(43, 1),
(44, 20),
(45, 20),
(46, 20),
(47, 1),
(48, 2),
(49, 1),
(50, 20),
(51, 1),
(52, 1),
(53, 1),
(54, 1),
(55, 20),
(56, 1),
(57, 1),
(58, 1),
(59, 20),
(60, 1),
(61, 20),
(62, 20),
(63, 1),
(64, 20),
(65, 20),
(66, 1),
(67, 1),
(68, 20),
(69, 1),
(70, 1),
(71, 1),
(72, 1),
(73, 1),
(74, 1),
(75, 20),
(76, 20),
(77, 1),
(78, 1),
(79, 20),
(80, 20),
(81, 20),
(82, 1),
(83, 1),
(84, 1),
(85, 1),
(86, 20),
(87, 1),
(88, 1),
(89, 20),
(90, 20),
(91, 1),
(92, 1),
(93, 1),
(94, 1),
(95, 20),
(96, 1),
(97, 1),
(98, 1),
(99, 20),
(100, 1),
(101, 1),
(102, 20),
(103, 1),
(104, 2),
(105, 1),
(106, 1),
(107, 1),
(108, 1),
(109, 1),
(110, 1);

-- --------------------------------------------------------

--
-- Table structure for table `Vieta`
--

CREATE TABLE `Vieta` (
  `id` int NOT NULL COMMENT 'Vietas id',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Vietas nosaukums'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Kur notiek darbs?';

--
-- Dumping data for table `Vieta`
--

INSERT INTO `Vieta` (`id`, `name`) VALUES
(1, 'Jelgava'),
(2, 'Rīgas-Izstādes'),
(3, 'Dobeles-Brieža'),
(4, 'Raiņa-Sarmas'),
(5, 'Raiņa-Mātera'),
(6, 'Raiņa-Pasta'),
(7, 'Raiņa-Akadēmijas'),
(8, 'Dobeles-5.Līnija'),
(9, 'Raiņa-Tērvetes'),
(10, 'Rīgas-Loka'),
(11, 'Lielā-Mātera'),
(12, 'Pasta-Edžus'),
(13, 'Lielā-Pasta'),
(14, 'Dobeles-4.līnija'),
(15, 'Lielā-IKI'),
(16, 'Pasta-Stacijas'),
(17, 'Mātera-Svētes'),
(18, 'Rīgas-Strazdu'),
(19, 'Lielā-Akadēmijas'),
(20, 'Dobeles-Satiksmes'),
(21, 'Dobeles-Atmodas'),
(22, 'Lielā-Māras'),
(23, 'Rīgas-Pērnavas'),
(24, 'Dobeles-Blaumaņa'),
(25, 'Rūpniecības-Kalpaka'),
(26, 'Rīgas-Tērvetes'),
(27, 'Dobeles-%. Līnija');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `Darba_numurs`
--
ALTER TABLE `Darba_numurs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Darbinieki`
--
ALTER TABLE `Darbinieki`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Darbs`
--
ALTER TABLE `Darbs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `darba_tips_id` (`darba_numurs_id`),
  ADD KEY `nauda_id` (`nauda_id`),
  ADD KEY `darbinieka_id` (`darbinieka_id`),
  ADD KEY `vieta_id` (`vieta_id`);

--
-- Indexes for table `Naudas_dati`
--
ALTER TABLE `Naudas_dati`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Vieta`
--
ALTER TABLE `Vieta`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `Darba_numurs`
--
ALTER TABLE `Darba_numurs`
  MODIFY `id` int NOT NULL AUTO_INCREMENT COMMENT 'Darba numura id', AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `Darbinieki`
--
ALTER TABLE `Darbinieki`
  MODIFY `id` int NOT NULL AUTO_INCREMENT COMMENT 'Darbinieka id', AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `Darbs`
--
ALTER TABLE `Darbs`
  MODIFY `id` int NOT NULL AUTO_INCREMENT COMMENT 'darba id', AUTO_INCREMENT=111;

--
-- AUTO_INCREMENT for table `Naudas_dati`
--
ALTER TABLE `Naudas_dati`
  MODIFY `id` int NOT NULL AUTO_INCREMENT COMMENT 'Naudas id', AUTO_INCREMENT=111;

--
-- AUTO_INCREMENT for table `Vieta`
--
ALTER TABLE `Vieta`
  MODIFY `id` int NOT NULL AUTO_INCREMENT COMMENT 'Vietas id', AUTO_INCREMENT=28;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `Darbs`
--
ALTER TABLE `Darbs`
  ADD CONSTRAINT `Darbs_ibfk_1` FOREIGN KEY (`darba_numurs_id`) REFERENCES `Darba_numurs` (`id`),
  ADD CONSTRAINT `Darbs_ibfk_2` FOREIGN KEY (`nauda_id`) REFERENCES `Naudas_dati` (`id`),
  ADD CONSTRAINT `Darbs_ibfk_3` FOREIGN KEY (`darbinieka_id`) REFERENCES `Darbinieki` (`id`),
  ADD CONSTRAINT `Darbs_ibfk_4` FOREIGN KEY (`vieta_id`) REFERENCES `Vieta` (`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 */;
