-- Host: db-master-1.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=39019;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$8enGQPEbvA3fozRTYtUcFxjZCYObnJUQj3vCI9qeOLBLeMo9DwuaG','admin','ak_366d230266af14e6','2023-05-05 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$6RpcjctPoHZ/qc0ZNsFsk8hRw4eEj41Lx5jKVk3rmnzvuRwaWI7zc','user','ak_9ee80abd9e13007e','2023-01-07 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$wh45WmMxZ1G/acfhZCvbayZ4Ar82QxtxuD.uDFr7lWifxgVg5.oIW','admin','ak_6fa1043e40dc0b64','2023-10-04 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$NeklpkwOhZSBmRKEWciWSHNgIdOaLoJ6TCc4y1AQB3sXuAEYSt.bY','user','ak_c927301d84704327','2023-06-26 10:06:00',NULL);

