-- Host: db-master-6.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=14900;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$UDhMrRfKrRQpLrjY6FDQGkyIFus5izFJafXgNNgocbOTZr.NZb6.y','user','ak_723e7cc6e547c06e','2023-02-09 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$ZxNUVEKbmQKTsdxSE5zyzEeJkN4M6ATGfnDc6YTXC2vMxFiz7wJBi','user','ak_9879866dafb68cc7','2023-08-11 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$ThtK1pjL.RDGbJpRHqbmkfKLNKXwVmgz4Dz9elzJLdB6iYDQPkt0t','user','ak_f023df1fe5d10249','2023-02-19 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$67CKX05sCcpUSZavrP3Ef8/PQ8cLJNIM0IfPlqG1VdQCJnLwoQJhW','user','ak_bb767539df83ee81','2023-07-12 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$q1mTGtp5GHMSfz6sHZ4sFVZxDTonEt84Z69EU1HFqvlhjiJI4rbuD','admin','ak_5f0ff3e900c4f398','2023-07-06 10:23:00',NULL);

