-- Host: db-master-0.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=29879;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$zfeHQG/NolPhdMG5mGqJ3/oQeHgf5MjL.DM0H8CRt.J9u11sAaglC','user','ak_ae2834d4c0ce5180','2023-08-20 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$sDcR.U1Q4AGSykYuQ6pliL3tnc5LBiz98buoUg9KL6l8QGBzl/RpH','admin','ak_5cb7c2e3a8189b52','2023-06-03 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$pVN4Jh5wAuVzusgmej/lH5BWG5DjwQdKm3FuFMk.do.2.nyv8tvFd','admin','ak_e5c3d29f3e2f8b72','2023-07-14 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$4nNEfpN2750DHqL3ZosguT3Rv1H8lvYPw7qtYkPhgI6PGnX40/V4E','user','ak_6404aae82498dafd','2023-05-06 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$iSBJKitZqaOFXe8hb0yKt0VnszAp8KWnfhdUBaLH2OQHCCCrd5jEp','admin','ak_5a674de211bb8114','2023-09-10 10:09:00',NULL);

