-- Host: db-master-2.internal    Database: webapp_db


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=43979;

--
-- Dumping data for table `products`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=19315;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$NdYBLqcmVTJ7nvdw2jcIX.oBSLmGpax0R1ONtrDDATrUCsVf6xd4U','user','ak_9fff9efce97be7a7','2023-12-23 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$mJfSGzcdqj089ojdgMIn2kmkWWUbvcZmKRDmvBhMk4FuIuU45EPDl','user','ak_19064b8050815449','2023-03-24 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$OX2.ol5ALgW/mQxKl4IR00OrmyEIJradC58sc/fHtsUcKJcZmBIZD','user','ak_c69cef9b5ca91ad6','2023-10-23 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$SFtvYbbrLACyPLiQhoVJgMvjqPUCdMw3netbEPdMHGZv0I6/awkYV','user','ak_c8cd0dacbedc4d8d','2023-02-17 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$FAKNX2vHmww9UqxDpqsw.2.KYdCTpOejB0AaGDDcDdbo6YAtaeIcE','user','ak_787c36eae7ad373d','2023-04-21 10:10:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=5384;

--
-- Dumping data for table `sessions`
--


