--
-- Host: localhost    Database: android
-- ------------------------------------------------------


--
-- Current Database: `android`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `android` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */;

USE `android`;

--
-- Table structure for table `admin`
--

CREATE TABLE `admin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `senaste` text NOT NULL,
  `footer` longtext NOT NULL,
  `version` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `admin`
--

INSERT INTO `admin` VALUES
(1,'2022-09-18','Design och programering av Hans Engfeldt Copyright &copy; 2022','V.2.0.2');

--
-- Table structure for table `information`
--

CREATE TABLE `information` (
  `id` int(6) unsigned NOT NULL AUTO_INCREMENT,
  `rubrik` varchar(30) DEFAULT NULL,
  `fordon` varchar(30) DEFAULT NULL,
  `info` varchar(255) DEFAULT NULL,
  `start` varchar(30) DEFAULT NULL,
  `slut` varchar(30) DEFAULT NULL,
  `prio` varchar(30) DEFAULT NULL,
  `inlagd` varchar(30) DEFAULT NULL,
  `vem` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=470 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `information`
--

INSERT INTO `information` VALUES
(463,'Verkstad','195','Scania 2300',' 2022-09-22',' 2022-09-22','alert alert-danger','2022-09-22 19:48:18','Hans');

--
-- Table structure for table `lastbil`
--

CREATE TABLE `lastbil` (
  `id` int(6) unsigned NOT NULL AUTO_INCREMENT,
  `fordonsnr` varchar(30) DEFAULT NULL,
  `regnr` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `lastbil`
--

INSERT INTO `lastbil` VALUES
(1,'024','TFX37D'),
(2,'140','CYR699'),
(3,'147','YDA30T'),
(4,'060','RNB160'),
(5,'052','OBT382'),
(6,'114','XFC209'),
(7,'129','DGD019'),
(8,'195','TDM583'),
(9,'088','DUU153'),
(10,'194','TDN187'),
(11,'184','HDO994'),
(12,'131','UKP712'),
(13,'101','BHD554'),
(14,'142','XGH751'),
(15,'162','XXF538'),
(16,'185','BBF730'),
(17,'160','XCX608'),
(18,'103','DWY230'),
(19,'070','TPD697'),
(20,'197','AKY086'),
(21,'087','DUU809'),
(22,'186','HJB913'),
(23,'164','XXF808'),
(24,'130','TTU541'),
(25,'163','RSF673'),
(26,'026','PEK64W'),
(27,'039','HOD939'),
(28,'108','XMH416'),
(29,'No',NULL),
(30,'028','PLD43K'),
(32,'021','HNB28H'),
(33,'022','LLY09U'),
(35,'020','EDX67D'),
(37,'027','LFX09Z'),
(38,'168','BYY465'),
(39,'036','ATJ838'),
(40,'071','PNB95W'),
(41,'083','PXX947'),
(42,'051','ODR124'),
(43,'053','OBT043'),
(44,'096','DJC465'),
(45,'097','DJC301'),
(46,'030','YXA807'),
(47,'066','WDC825'),
(48,'054','RZA720'),
(49,'037','ZLE031'),
(50,'077','DZR155'),
(51,'023','OLY32F'),
(52,'078','UTE390'),
(53,'123','YAP941'),
(54,'110','WTZ070'),
(55,'125','JPC813'),
(56,'059','RNM040'),
(57,'112','DOC158');

--
-- Table structure for table `lossning`
--

CREATE TABLE `lossning` (
  `id` int(6) unsigned NOT NULL AUTO_INCREMENT,
  `statusbil` varchar(30) DEFAULT NULL,
  `statusvagn` varchar(30) DEFAULT NULL,
  `fordon` varchar(30) DEFAULT NULL,
  `vagn` varchar(30) DEFAULT NULL,
  `lossinfo` longtext DEFAULT NULL,
  `portbil` varchar(30) DEFAULT NULL,
  `portvagn` varchar(30) DEFAULT NULL,
  `ankomst` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=87 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `lossning`
--

INSERT INTO `lossning` VALUES
(85,'Ankommer','Ankommer','020','No','','0','0',''),
(86,'Ankommer','Ankommer','023','No','','0','0','');

--
-- Table structure for table `planering`
--

CREATE TABLE `planering` (
  `id` int(6) unsigned NOT NULL AUTO_INCREMENT,
  `fordon` varchar(30) DEFAULT NULL,
  `vagn` varchar(30) DEFAULT NULL,
  `statusbil` varchar(30) DEFAULT NULL,
  `statusvagn` varchar(30) DEFAULT NULL,
  `portbil` varchar(30) DEFAULT NULL,
  `portvagn` varchar(30) DEFAULT NULL,
  `status` varchar(30) DEFAULT NULL,
  `lastas` varchar(30) DEFAULT NULL,
  `lat` varchar(50) NOT NULL,
  `lng` varchar(50) NOT NULL,
  `lat2` varchar(50) NOT NULL,
  `lng2` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `planering`
--

INSERT INTO `planering` VALUES
(1,'024','2110','Klar','Klar','5','6','0','Ja','','','',''),
(2,'140','No','Ledig','Ledig','0','0','0','Nej','','','',''),
(3,'184','4162','Ledig','Ledig','0','0','0','Nej','','','',''),
(5,'026','2171','Parkerad','Parkerad','7','10','0','Ja','','','',''),
(6,'130','2131','Tillbackad','Ledig','3','0','0','Nej','','','',''),
(7,'142','2112','Ledig','Ledig','0','0','0','Nej','','','',''),
(8,'147','2146','Ledig','Ledig','0','0','0','Nej','','','',''),
(9,'197','2102','Ledig','Ledig','0','0','0','Nej','','','',''),
(19,'195','No','Ledig','Ledig','0','0','0','Nej','','','','');

--
-- Table structure for table `port`
--

CREATE TABLE `port` (
  `id` int(6) unsigned NOT NULL AUTO_INCREMENT,
  `portnr` int(3) DEFAULT NULL,
  `fordon` varchar(30) DEFAULT NULL,
  `vagn` varchar(30) DEFAULT NULL,
  `status` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `port`
--

INSERT INTO `port` VALUES
(1,1,'No','No','Ledig'),
(2,2,'No','No','Ledig'),
(3,3,'No','No','Ledig'),
(4,4,'No','No','Ledig'),
(5,5,'No','No','Ledig'),
(6,6,'No','No','Ledig'),
(7,7,'No','No','Ledig'),
(8,8,'No','No','Ledig'),
(9,9,'No','No','Ledig'),
(10,10,'No','No','Ledig'),
(11,11,'No','No','Ledig'),
(12,12,'No','No','Ledig'),
(13,13,'No','No','Ledig'),
(14,14,'No','No','Ledig'),
(15,15,'No','No','Ledig'),
(16,16,'No','No','Ledig'),
(17,17,'No','No','Ledig'),
(18,18,'No','No','Ledig'),
(19,19,'No','No','Ledig'),
(20,20,'No','No','Ledig'),
(21,21,'No','No','Ledig'),
(22,22,'No','No','Ledig'),
(23,23,'No','No','Ledig'),
(24,24,'No','No','Ledig'),
(25,25,'No','No','Ledig'),
(26,26,'No','No','Ledig'),
(27,27,'No','No','Ledig'),
(28,28,'No','No','Ledig'),
(29,29,'No','No','Ledig'),
(30,30,'No','No','Ledig'),
(31,31,'No','No','Ledig'),
(32,32,'No','No','Ledig'),
(33,33,'No','No','Ledig'),
(34,34,'No','No','Ledig'),
(35,35,'No','No','Ledig'),
(36,36,'No','No','Ledig'),
(37,37,'No','No','Ledig'),
(38,38,'No','No','Ledig'),
(39,39,'No','No','Ledig'),
(40,40,'No','No','Ledig'),
(41,41,'No','No','Ledig'),
(42,42,'No','No','Ledig'),
(43,43,'No','No','Ledig'),
(44,44,'No','No','Ledig'),
(45,45,'No','No','Ledig');

--
-- Table structure for table `ticket`
--

CREATE TABLE `ticket` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` text NOT NULL,
  `epost` text NOT NULL,
  `rubrik` text NOT NULL,
  `subject` longtext NOT NULL,
  `tid` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `status` text NOT NULL,
  `subjectnr` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `ticket`
--

INSERT INTO `ticket` VALUES
(14,'','','','','2024-12-31 10:23:58','Nytt',459176),
(15,'','','','','2025-01-15 10:54:07','Nytt',686473),
(16,'','','','','2025-02-04 08:52:09','Nytt',249680),
(17,'','','','','2025-02-07 19:00:23','Nytt',960081),
(18,'','','','','2025-04-26 02:37:53','Nytt',584127),
(19,'','','','','2025-08-04 20:01:39','Nytt',685018),
(20,'','','','','2025-09-21 21:53:48','Nytt',617246),
(21,'','','','','2025-10-03 01:51:39','Nytt',306700),
(22,'','','','','2025-10-03 10:10:09','Nytt',461829),
(23,'','','','','2025-11-02 14:31:31','Nytt',969234),
(24,'','','','','2025-11-28 23:56:01','Nytt',657618);

--
-- Table structure for table `todolist`
--

CREATE TABLE `todolist` (
  `id` int(6) unsigned NOT NULL AUTO_INCREMENT,
  `rubrik` varchar(30) DEFAULT NULL,
  `text` longtext DEFAULT NULL,
  `prioritet` varchar(30) DEFAULT NULL,
  `inlagd` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `todolist`
--

INSERT INTO `todolist` VALUES
(6,'användare','fixa att att editera och radera användare','alert alert-success','2022-08-20 13:21:34'),
(7,'Fordonsparken','påbörja uppbygganden av fordonsparken','alert alert-success','2022-08-22 10:26:56'),
(9,'startsidan','fixa så att det går att editera lastning o lossning från startsidan','alert alert-success','2022-09-09 04:09:43');

--
-- Table structure for table `vagn`
--

CREATE TABLE `vagn` (
  `id` int(6) unsigned NOT NULL AUTO_INCREMENT,
  `fordonsnr` varchar(30) DEFAULT NULL,
  `regnr` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `vagn`
--

INSERT INTO `vagn` VALUES
(1,'2110','DTW834'),
(2,'4139',''),
(3,'2171','UGJ774'),
(4,'2109','CFT685'),
(5,'2120','CML765'),
(6,'4164',''),
(7,'2146','XRZ613'),
(8,'2112','RST421'),
(9,'2102','BHK074'),
(10,'2113','123456'),
(11,'4107',''),
(12,'4162','UOA687'),
(13,'2117','BXR252'),
(14,'2103','CHH203'),
(15,'4102','BXR226'),
(16,'2124','DSW518'),
(17,'2135','REP577'),
(18,'2134','RND247'),
(19,'2105','CFK440'),
(20,'2118',''),
(21,'2108','RAZ976'),
(22,'2127','SNP694'),
(23,'2129','WLF179'),
(24,'2121','DFZ456'),
(25,'2106','RYU799'),
(26,'2131','BXK241'),
(27,'2119','DHU530'),
(28,'2130','EOL161'),
(29,'2125','JGU871'),
(30,'2132','TPJ022'),
(31,'4114','WAD169'),
(32,'2107','DGU654'),
(33,'No',NULL),
(35,'4104','1'),
(36,'2104','CFK436'),
(37,'2122','XLE446'),
(38,'2141','XKJ207'),
(39,'4135','SUO493'),
(40,'2123','DXM239'),
(41,'4131','CJW711'),
(42,'4115','ZJY545'),
(43,'4125','DGU638'),
(44,'4103','BXR272'),
(45,'2115','BXR225'),
(46,'4148','DHD44E'),
(47,'4132','RYM703'),
(48,'4145','OEH74M'),
(49,'4126','EFF815'),
(50,'4134','ZMH161'),
(51,'2111','WJH390'),
(52,'4116','ZJY540'),
(53,'4124','EGJ905'),
(54,'2136','WOA71J'),
(55,'2128','WYS281'),
(56,'4143','HLE70B'),
(57,'2133','ENE476'),
(58,'2126','UYB624'),
(59,'4122','YCS228');

--
-- Table structure for table `yrke`
--

CREATE TABLE `yrke` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `yrke` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `yrke`
--

INSERT INTO `yrke` VALUES
(1,'Admin'),
(2,'Transportledare'),
(4,'Terminalarbetare'),
(5,'Chaufför');

--
-- Table structure for table `yrkesbild`
--

CREATE TABLE `yrkesbild` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `photo` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `yrkesbild`
--

INSERT INTO `yrkesbild` VALUES
(1,'https://api.hansengfeldt.se/Mertz2/app/Bilder/Admin.png'),
(2,'https://api.hansengfeldt.se/Mertz2/app/Bilder/Transportledare.png'),
(3,'https://api.hansengfeldt.se/Mertz2/app/Bilder/kvinna_transportledare.png'),
(4,'https://api.hansengfeldt.se/Mertz2/app/Bilder/Terminalarbetare.png'),
(5,'https://api.hansengfeldt.se/Mertz2/app/Bilder/Chaufför.png');


