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


--
-- 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=5710;

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


--
-- 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=24428;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$kQu70RgMPsp9Efy5Uci0IugAvG6/UH5E45ILS2UF2qZMt8PXhgBLp','admin','ak_5e630291d377a001','2023-11-23 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$E7AcS4fJVEcxSqdfvlcurO3/ba0rT7Wq7Z2gmF0Vhro.wuoy9NgTB','user','ak_3dbcef939c18ebd1','2023-12-21 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$CUXdmOeKtVbkKC7bSL1a7/0p4zxjBeZP9oiC3l2PYfGlK3C2b92Va','admin','ak_b3a69e5e68313e2b','2023-02-26 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$/Ng0FSHsewEoEm2wT1IErF0X1YADXzmIEKZzwa6swq41dqu3Pm/jI','user','ak_27651e7b62618aed','2023-02-25 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$hD9fB6nuEXBiRI8nqomBEEPq7QSRL91wBr7iggcJXtxrG6ea/8Yb1','admin','ak_51557b42828d2137','2023-01-21 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$IrTboFdT60BXTvrGqsVecASTVtb7D/JgMV6ZweUwsAItlSlhUra5E','user','ak_2d7a59ed737f8781','2023-08-19 10:01:00',NULL);

--
-- 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=13137;

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


