-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jun 27, 2025 at 12:12 PM
-- Server version: 8.0.37
-- PHP Version: 8.3.22

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: `uzelcomh_db`
--

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

--
-- Table structure for table `antique_electronics`
--

CREATE TABLE `antique_electronics` (
  `id` int NOT NULL,
  `parent_id` int DEFAULT NULL,
  `filename` varchar(255) COLLATE cp1250_croatian_ci DEFAULT NULL,
  `model` varchar(255) COLLATE cp1250_croatian_ci DEFAULT NULL,
  `brand` varchar(255) COLLATE cp1250_croatian_ci DEFAULT NULL,
  `year` varchar(255) COLLATE cp1250_croatian_ci DEFAULT NULL,
  `tubes` varchar(255) COLLATE cp1250_croatian_ci DEFAULT NULL,
  `type` varchar(255) COLLATE cp1250_croatian_ci DEFAULT NULL,
  `descr` tinytext COLLATE cp1250_croatian_ci
) ENGINE=MyISAM DEFAULT CHARSET=cp1250 COLLATE=cp1250_croatian_ci;

--
-- Dumping data for table `antique_electronics`
--

INSERT INTO `antique_electronics` (`id`, `parent_id`, `filename`, `model`, `brand`, `year`, `tubes`, `type`, `descr`) VALUES
(1, NULL, 'AEG_Super_4311a_GW.jpg', 'Super 4311a GW', 'AEG', NULL, NULL, 'radio', NULL),
(2, NULL, 'AEG_Super_431W.jpg', 'Super 431W', 'AEG', NULL, NULL, 'radio', NULL),
(3, NULL, 'Blaupunkt_5W641.jpg', '5W641', 'Blaupunkt', NULL, NULL, 'radio', NULL),
(4, NULL, 'Blaupunkt_GB69-40H.jpg', 'GB69-40H', 'Blaupunkt', NULL, NULL, 'radio', NULL),
(5, NULL, 'D_Nora_NeutrodynE4a_front(1).jpg', 'Neutrodyn E4a', 'Nora', NULL, NULL, 'radio', NULL),
(6, NULL, 'Eri-meter_etui_30s.jpg', 'Eri-meter etui', NULL, '30te', NULL, 'meter', NULL),
(7, NULL, 'Eumig_.jpg', 'Eumig ', 'Eumig', NULL, NULL, 'radio', NULL),
(8, NULL, 'Eumig_132_1932.jpg', '132', 'Eumig', '1932', NULL, 'radio', NULL),
(9, NULL, 'Eumig_4375.jpg', '4375', 'Eumig', NULL, NULL, 'radio', NULL),
(10, NULL, 'Grundig_1.jpg', 'Grundig 1', 'Grundig', NULL, NULL, 'radio', NULL),
(11, NULL, 'Hornyphon_Rex_prednji.jpg', 'Rex prednji', 'Hornyphon', NULL, NULL, 'radio', NULL),
(12, NULL, 'Hornyphon_Rex_straznji.jpg', 'Rex straznji', 'Hornyphon', NULL, NULL, 'radio', NULL),
(13, NULL, 'Hornyphon_Super-Prinz_41.jpg', 'Super-Prinz 41', 'Hornyphon', NULL, NULL, 'radio', NULL),
(14, NULL, 'Kapsch_A-C_441.jpg', 'A-C 441', 'Kapsch', NULL, NULL, 'radio', NULL),
(15, 31, 'Kosmaj_47_2.jpg', 'Kosmaj 47', 'Nikola Tesla', NULL, NULL, 'radio', NULL),
(16, NULL, 'Magneti_Marelli-Alcor_tip44_prednji.jpg', 'Alcor tip44 prednji', 'Magneti Marelli', NULL, NULL, 'radio', NULL),
(17, 16, 'Magneti_Marelli-Alcor_tip44_straznji.jpg', 'Alcor tip44 straznji', 'Magneti Marelli', NULL, NULL, 'radio', NULL),
(18, NULL, 'Mende_195GW.jpg', '195GW', 'Mende', NULL, NULL, 'radio', NULL),
(19, NULL, 'Minerva_535-5.jpg', '535-5', 'Minerva', NULL, NULL, 'radio', NULL),
(20, NULL, 'Minerva_Record_W.jpg', 'Record W', 'Minerva', NULL, NULL, 'radio', NULL),
(21, NULL, 'Narodni_Radio.jpg', 'Narodni Radio', NULL, NULL, NULL, 'radio', NULL),
(22, NULL, 'Nikola_Tesla_51.jpg', '51', 'Nikola Tesla', NULL, NULL, 'radio', NULL),
(23, 22, 'Nikola_Tesla_51_2.jpg', '51', 'Nikola Tesla', NULL, NULL, 'radio', NULL),
(24, NULL, 'Nikola_Tesla_53E.jpg', '53E', 'Nikola Tesla', NULL, NULL, 'radio', NULL),
(25, NULL, 'Nikola_Tesla_53_1953.jpg', '53', 'Nikola Tesla', '1953', NULL, 'radio', NULL),
(26, NULL, 'Nikola_Tesla_57B.jpg', '57B', 'Nikola Tesla', NULL, NULL, 'radio', NULL),
(27, NULL, 'Nikola_Tesla_58A.jpg', '58A', 'Nikola Tesla', NULL, NULL, 'radio', NULL),
(28, NULL, 'Nikola_Tesla_58U.jpg', '58U', 'Nikola Tesla', NULL, NULL, 'radio', NULL),
(29, NULL, 'Nikola_Tesla_BELIND_T300.jpg', 'BELIND T300', 'Nikola Tesla', NULL, NULL, 'radio', NULL),
(30, NULL, 'Nikola_Tesla_Jastrebac_T54-4.jpg', 'Jastrebac T54-4', 'Nikola Tesla', NULL, NULL, 'radio', NULL),
(31, NULL, 'Nikola_Tesla_Kosmaj_47.jpg', 'Kosmaj 47', 'Nikola Tesla', NULL, NULL, 'radio', NULL),
(32, NULL, 'Nikola_Tesla_Kosmaj_47_1947.jpg', 'Kosmaj 47', 'Nikola Tesla', '1947', NULL, 'radio', NULL),
(33, NULL, 'Nikola_Tesla_Kosmaj_49.jpg', 'Kosmaj 49', 'Nikola Tesla', NULL, NULL, 'radio', NULL),
(34, NULL, 'Nikola_Tesla_Kosmaj_49_1.jpg', 'Kosmaj 49 1', 'Nikola Tesla', NULL, NULL, 'radio', NULL),
(35, NULL, 'Nikola_Tesla_Kosmaj_49_2.jpg', 'Kosmaj 49 2', 'Nikola Tesla', NULL, NULL, 'radio', NULL),
(36, NULL, 'Nikola_Tesla_Kosmaj_49_3.jpg', 'Kosmaj 49 3', 'Nikola Tesla', NULL, NULL, 'radio', NULL),
(37, NULL, 'Osciloskop_FURZEHILL_TIP1684D-2.jpg', 'TIP1684D-2', 'Furzhehill', NULL, NULL, 'osciloskop', NULL),
(38, NULL, 'Otpornik.jpg', 'Otpornik', NULL, NULL, NULL, 'otpornik', NULL),
(39, NULL, 'P1080172.jpg', 'Dugme - Kotačić', NULL, NULL, NULL, 'dugme', NULL),
(40, NULL, 'P1080173.jpg', 'Dugme', NULL, NULL, NULL, 'dugme', NULL),
(41, NULL, 'P1080174.jpg', 'Dugme', NULL, NULL, NULL, 'dugme', NULL),
(42, NULL, 'P1080175.jpg', 'Dugme', NULL, NULL, NULL, 'dugme', NULL),
(43, NULL, 'Philips_470A.jpg', '470A', 'Philips', NULL, NULL, 'radio', NULL),
(44, NULL, 'Philips_611-1.jpg', '611-1', 'Philips', NULL, NULL, 'radio', NULL),
(45, NULL, 'Philips_614.jpg', '614', 'Philips', NULL, NULL, 'radio', NULL),
(46, NULL, 'Philips_661U.jpg', '661U', 'Philips', NULL, NULL, 'radio', NULL),
(47, NULL, 'Philips_930c_1931.jpg', '930c', 'Philips', '1931', NULL, 'radio', NULL),
(48, NULL, 'Philips_BX482A.jpg', 'BX482A', 'Philips', NULL, NULL, 'radio', NULL),
(49, NULL, 'Philips_BX683x.jpg', 'BX683x', 'Philips', NULL, NULL, 'radio', NULL),
(50, NULL, 'Philips_S171A.jpg', 'S171A', 'Philips', NULL, NULL, 'radio', NULL),
(51, NULL, 'Philips_Stradivari_BA221U.jpg', 'Stradivari BA221U', 'Philips', NULL, NULL, 'radio', NULL),
(52, NULL, 'Philips_komplet1.jpg', 'Komplet 1', 'Philips', NULL, NULL, 'radio', NULL),
(53, NULL, 'Philps_916x_1943.jpg', '916x', 'Philips', '1943', NULL, 'radio', NULL),
(54, NULL, 'Promjenjivi_Kondenzatori.jpg', 'Promjenjivi Kondenzatori', NULL, NULL, NULL, 'kondenzator', NULL),
(55, NULL, 'Pupin_B7.jpg', 'B7', 'Pupin', NULL, NULL, 'radio', NULL),
(56, NULL, 'REK,Sumadija.jpg', 'Šumadija', 'REK', NULL, NULL, 'radio', NULL),
(57, NULL, 'RFT_.jpg', 'RFT ', 'RFT', NULL, NULL, 'radio', NULL),
(58, NULL, 'RR_110.jpg', 'RR 110', 'RR', NULL, NULL, 'radio', NULL),
(59, NULL, 'RR_520.jpg', 'RR 520', 'RR', NULL, NULL, 'radio', NULL),
(60, NULL, 'RR_633.jpg', 'RR 633', 'RR', NULL, NULL, 'radio', NULL),
(61, NULL, 'Riz_58.jpg', '58', 'Riz', NULL, NULL, 'radio', NULL),
(62, NULL, 'Riz_604.jpg', '604', 'Riz', NULL, NULL, 'radio', NULL),
(63, NULL, 'Riz_604_UKV.jpg', '604 UKV', 'Riz', NULL, NULL, 'radio', NULL),
(64, NULL, 'Riz_Dubrava.jpg', 'Dubrava', 'Riz', NULL, NULL, 'radio', NULL),
(65, NULL, 'Riz_Gramafon.jpg', 'Gramafon', 'Riz', NULL, NULL, 'gramafon', NULL),
(66, NULL, 'Riz_Jadran_59_UKV.jpg', 'Jadran 59 UKV', 'Riz', NULL, NULL, 'radio', NULL),
(67, NULL, 'Riz_Pionir.jpg', 'Pionir', 'Riz', NULL, NULL, 'radio', NULL),
(68, NULL, 'Riz_Pionir_60.jpg', 'Pionir 60', 'Riz', NULL, NULL, 'radio', NULL),
(69, NULL, 'Savica_56.jpg', '56', 'Savica', NULL, NULL, 'radio', NULL),
(70, NULL, 'Siemens_120GW.jpg', '120GW', 'Siemens', NULL, NULL, 'radio', NULL),
(71, NULL, 'Siemens_12GW.jpg', '12GW', 'Siemens', NULL, NULL, 'radio', NULL),
(72, NULL, 'Siemens_13W.jpg', '13W', 'Siemens', NULL, NULL, 'radio', NULL),
(73, NULL, 'Sirutor.jpg', 'Sirutor', NULL, NULL, NULL, 'sirutor', NULL),
(74, NULL, 'Star_Mars.jpg', 'Star Mars', NULL, NULL, NULL, 'radio', NULL),
(75, NULL, 'Tefadyn_SuperTefadyn_KW.jpg', 'SuperTefadyn KW', 'Tefadyn', NULL, NULL, 'radio', NULL),
(76, NULL, 'Telefunken_154GWK.jpg', '154GWK', 'Telefunken', NULL, NULL, 'radio', NULL),
(77, NULL, 'Telefunken_542BK.jpg', '542BK', 'Telefunken', NULL, NULL, 'radio', NULL),
(78, NULL, 'Telefunken_664WK-SP.jpg', '664WK-SP', 'Telefunken', NULL, NULL, 'radio', NULL),
(79, NULL, 'Vesna.jpg', 'Vesna', NULL, NULL, NULL, 'radio', NULL),
(80, NULL, 'Wega_Mars_Baterie.jpg', 'Mars Baterie', 'Wega', NULL, NULL, 'radio', NULL),
(81, NULL, 'Zenith_prednji.jpg', 'Zenith prednji', 'Zenith', NULL, NULL, 'radio', NULL),
(82, 81, 'Zenith_straznji.jpg', 'Zenith straznji', 'Zenith', NULL, NULL, 'radio', NULL),
(83, NULL, 'his_master_voice_5201_1949.jpg', '5201', 'His master voice', '1949', NULL, 'radio', NULL),
(84, NULL, 'home_made_tube_tester_by_uzel_1.jpg', 'Tube tester', 'Uzel', '2011', NULL, 'tube tester', NULL),
(85, 84, 'home_made_tube_tester_by_uzel_2.jpg', 'Tube tester', 'Uzel', '2011', NULL, 'tube tester', NULL),
(86, 5, 'img_1349.jpg', 'Neutrodyn E4a šasija', NULL, NULL, NULL, 'radio', NULL),
(87, 5, 'img_1350.jpg', 'Neutrodyn E4a šasija', NULL, NULL, NULL, 'radio', NULL),
(88, NULL, 'img_1351.jpg', 'Gramafon', NULL, NULL, NULL, 'gramafon', NULL),
(89, NULL, 'img_1353.jpg', 'Gramafonske ruke', NULL, NULL, NULL, 'gramafon', NULL),
(90, NULL, 'img_1354.jpg', 'Transformator', 'Philips', NULL, NULL, 'transformator', NULL),
(91, NULL, 'img_1357.jpg', 'Zavojnice', NULL, NULL, NULL, 'zavojnica', NULL),
(92, NULL, 'img_1360.jpg', 'Cijev', NULL, NULL, NULL, 'cijev', NULL),
(93, NULL, 'img_1361.jpg', 'Voltmetar', NULL, NULL, NULL, 'instrument', NULL),
(94, NULL, 'img_1367.jpg', 'Zvučnik', NULL, NULL, NULL, 'zvučnik', NULL),
(95, NULL, 'instrument_telefonista_njemacke_vojske_II.jpg', 'Instrument', NULL, '1942', NULL, 'instrument', 'instrument telefonista njemacke vojske'),
(96, NULL, 'philips_philetta_bd254u_1955.jpg', 'Philetta BD254U', 'Philips', '1955', NULL, 'radio', ''),
(97, NULL, 'pict0006.jpg', 'Zavojnice', NULL, NULL, NULL, 'zavojnica', NULL),
(98, NULL, 'radio_detektor.jpg', 'Radio detektor', NULL, NULL, NULL, 'radio detektor', NULL),
(99, NULL, 'radio_voltmetar_za_provjeru_anodnih_baterija_30s.jpg', 'Voltmetar', NULL, '30te', NULL, 'instrument', ' za provjeru anodnih baterija'),
(100, NULL, 'riz_bu357_1957.jpg', 'BU357', 'Riz', '1957', NULL, 'radio', NULL),
(101, NULL, 'tefag_50a_1942.jpg', '50a', 'Tefag', '1942', NULL, 'radio', NULL),
(102, NULL, 'visokoohmske_slusalice.jpg', 'Visokoomske slušalice', NULL, NULL, NULL, 'slušalice', NULL),
(103, NULL, 'blaupunkt.JPG', 'Blaupunkt', 'Blaupunkt', NULL, NULL, 'radio', NULL),
(104, NULL, 'stassfurt.JPG', 'Stassfurt', 'Stassfurt', NULL, NULL, 'radio', NULL),
(105, NULL, 'voltmetar_wehrmacht.JPG', 'Voltmetar wehrmacht', 'wehrmacht', NULL, NULL, 'instrument', NULL),
(106, NULL, 'philips_bx683.JPG', 'bx683', 'Philips', NULL, NULL, 'radio', NULL),
(107, NULL, 'kosmaj_47.JPG', 'Kosmaj 47', 'Nikola Tesla', NULL, NULL, 'radio', NULL),
(108, NULL, 'philips_siera.JPG', 'Siera', 'Philips', NULL, NULL, 'radio', NULL),
(109, NULL, 'Nikola_Tesla_Kosmaj_49_4.jpg', 'Kosmaj 49 4', 'Nikola Tesla', NULL, NULL, 'radio', NULL);

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

--
-- Table structure for table `trgovina_kosarica`
--

CREATE TABLE `trgovina_kosarica` (
  `id` int NOT NULL,
  `ponuda_id` int DEFAULT NULL,
  `proizvod_id` int DEFAULT NULL,
  `kolicina` decimal(10,0) DEFAULT NULL,
  `cijena` decimal(10,0) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `trgovina_kosarica`
--

INSERT INTO `trgovina_kosarica` (`id`, `ponuda_id`, `proizvod_id`, `kolicina`, `cijena`) VALUES
(1, 1, 56, 2, 45),
(2, 2, 65, 3, 7),
(3, 2, 90, 2, 5),
(4, 2, 56, 3, 45),
(5, 2, 52, 2, 42),
(6, 2, 54, 2, 37),
(7, 2, 61, 3, 69),
(8, 2, 59, 2, 79),
(9, 2, 49, 2, 45),
(10, 3, 49, 2, 45);

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

--
-- Table structure for table `trgovina_ponuda`
--

CREATE TABLE `trgovina_ponuda` (
  `id` int NOT NULL,
  `nacin_placanja` enum('gotovina','karticno') DEFAULT NULL,
  `status` enum('otvoreno','naruceno','isporuceno','obrada','odobreno') DEFAULT NULL,
  `napomena` tinytext,
  `kupac_ime` varchar(255) DEFAULT NULL,
  `kupac_prezime` varchar(255) DEFAULT NULL,
  `kupac_adresa` varchar(255) DEFAULT NULL,
  `kupac_pbr` varchar(255) DEFAULT NULL,
  `kupac_mjesto` varchar(255) DEFAULT NULL,
  `kupac_eposta` varchar(255) DEFAULT NULL,
  `kupac_telefon` varchar(255) DEFAULT NULL,
  `kupac_napomena` varchar(255) DEFAULT NULL,
  `datum_ponuda` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `pdv` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `trgovina_ponuda`
--

INSERT INTO `trgovina_ponuda` (`id`, `nacin_placanja`, `status`, `napomena`, `kupac_ime`, `kupac_prezime`, `kupac_adresa`, `kupac_pbr`, `kupac_mjesto`, `kupac_eposta`, `kupac_telefon`, `kupac_napomena`, `datum_ponuda`, `pdv`) VALUES
(1, 'karticno', 'naruceno', NULL, 'Luka', 'Uzel', 'Tratinska 28', '10000', 'Zagreb', 'luka.uzel@gmail.com', '098 709 745', '', '2011-12-27 00:10:21', '23'),
(2, 'karticno', 'naruceno', NULL, 'Luka', 'Uzel', 'Tratinska 28', '10000', 'Zagreb', 'luka.uzel@gmail.com', '098 709 745', '', '2011-12-27 00:26:09', '23'),
(3, 'karticno', 'naruceno', NULL, 'Luka', 'Uzel', 'Tratinska 28', '10000', 'Zagreb', 'luka.uzel@gmail.com', '098 709 745', '', '2011-12-27 09:27:17', '23');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `antique_electronics`
--
ALTER TABLE `antique_electronics`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unique` (`filename`);

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `antique_electronics`
--
ALTER TABLE `antique_electronics`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=110;

--
-- AUTO_INCREMENT for table `trgovina_kosarica`
--
ALTER TABLE `trgovina_kosarica`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `trgovina_ponuda`
--
ALTER TABLE `trgovina_ponuda`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
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 */;
