-- Host: db-master-4.internal    Database: ecommerce


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$.KiByAz6dOKktuFoRN56SehY4AOClPKbjrRgV5iBjiQpN8C9FTsTj','user','ak_87ac22753cc80d8f','2023-08-15 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$kja74zgzUBwvJTnvvkZ61d4xGp.IynbA7wuHsW/foJeUem80ocRfZ','user','ak_2402e92eda56fe02','2023-10-25 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$mZ4imxH65EMXTjFz/eA71K947YTRp9Y8vsH7KRDcistcPJetSNyus','user','ak_db1592d553702d23','2023-06-09 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$ZM3Xq6qDiSf0nAnZOaAJcBD8E/w.nyFQmR8GsQENOVcqRB4bfTT3k','admin','ak_787e716899f61df9','2023-02-17 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$KqG8O33bnpnlgLtBAWzyx.hSLLutm4BG3hnAYp67spOa15EEQUTji','user','ak_6b51f0956cca9115','2023-02-05 10:15: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=22724;

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


