-- --------------------------------------------------------
-- Server OS:                    Win64
-- HeidiSQL Version:             12.3.0.6589
-- --------------------------------------------------------



-- Dumping database structure for project_web_management
CREATE DATABASE IF NOT EXISTS `project_web_management` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */;
USE `project_web_management`;

-- Dumping structure for table project_web_management.webpages
CREATE TABLE IF NOT EXISTS `webpages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Dumping data for table project_web_management.webpages: ~3 rows (approximately)
INSERT INTO `webpages` (`id`, `name`) VALUES
	(1, 'mitauprefab'),
	(2, 'deprom'),
	(3, 'montealife');

-- Dumping structure for table project_web_management.web_data
CREATE TABLE IF NOT EXISTS `web_data` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hours` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `files` text DEFAULT NULL,
  `webpage_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `webpage_id` (`webpage_id`),
  CONSTRAINT `web_data_ibfk_1` FOREIGN KEY (`webpage_id`) REFERENCES `webpages` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Dumping data for table project_web_management.web_data: ~8 rows (approximately)
INSERT INTO `web_data` (`id`, `hours`, `description`, `files`, `webpage_id`) VALUES
	(1, 3, 'made some upodates', 'aaa', 1),
	(2, 2, 'testing ', 'sassss', 2),
	(3, 222, 'Guys who are website freelancers', 'ol.sql', 3),
	(4, 5, 'testj gggg', 'Oliver’s story_Mariuss_Gustins_310.pptx', 1),
	(5, 2, 'dddd', 'uzdevumi.txt', 3),
	(6, 2, 'dddd', 'uzdevumi.txt', 3),
	(7, 1, 'dasdasd', 'uzdevumi.txt', 2),
	(8, 3, 'assasasasasasasasa', 'accident-insurance.png', 1);

