-- Host: db-master-8.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=24057;

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$oix1Wn5Ugy95HaQoPj7c6J7tq0jeQZM9GZq7m09hbmpplS7clEvOy','user','ak_eb945e7b3960d7fc','2023-05-09 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$I75sLwC.qaVQxelJ6SvCog8ftgN894/4tQDy3ysatXq/V3UWj05Cm','admin','ak_b670c6ca267080db','2023-03-12 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$R8/5VBhkscLLm2ask7LEWFng/bYDfXW7SuYJdgmKIOxrEgbQ/LeDv','user','ak_2976c664e1e1fd85','2023-12-17 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$SHPEYUyjrlsuCamXzU2l0duH6txZP7DFYMfG2Ah4JvzUuc0iN0L7O','user','ak_3ade2aa799063467','2023-02-18 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$6qmXsQgtgO.FG2kkzKhVerjZKX8aW1QDxRLy0KSr4866ODpz0eCPS','user','ak_e35b048aff714619','2023-09-02 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$Npk8LyKaGB7BI/5PBTN0B0F5enLxbLNAWmefhpvBgEaLWL764HG28','user','ak_cb57207e32d9c0af','2023-07-12 10:02:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@company.com','$2b$12$jF3k6lwU6VOcShH9Iei6l1w9T3V4fsJx4vTlchatJsWa/bIaHgDNW','user','ak_91e9bfa9f5325a58','2023-03-28 10:16:00',NULL);

