-- Host: db-master-0.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$DPXmhp7Ekmfvm7b.JvPGVGYRlhAP..55qO0kPNG.oBBC7jpRFWYem','user','ak_b71df085f93a0ca3','2023-04-17 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$zZdn1IUbfjFNeEXTh7n4DesgrZ8d/HHkCS/uNPIQyXkmALK6K0jNa','user','ak_d15b9649ccd15623','2023-08-14 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$4eLF0gepP4JRFYjDTKyRVLraRTvX018o99iSclmIMAfVxsjnOnYdb','user','ak_9ce5b8a8449d83e4','2023-08-08 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$haO99RQCsTR4h5rAJB54bK/lCc/IUiPzzu3FPiG2idIRKpblnqZNm','admin','ak_da33fab2d0618241','2023-09-04 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$nwQY5iAKDni9GxWhyN5.T9wOqOBqzYVvphtHn420/V.x47EdXztai','admin','ak_d9411ddacf7c46d9','2023-03-19 10:16:00',NULL);

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

--
-- Dumping data for table `products`
--


