-- Host: db-master-8.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$bmIbGRacCE5hPtkN9n4M44wvim1D2mRAQ5zv.cKzeBJpqqlLfv4sA','admin','ak_19b28e886a5bfc62','2023-11-09 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$S7MuWO8EVYg4aCi2NbMuvNYsSC7ML8O1Phrsxwv6qMf2ZoGcZwKgl','user','ak_90315844e33a8f3c','2023-12-20 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$mXzpuMzx00/IfWFDTzpnFLKQr1GXxl9ySo7ARJn2ZgSNRMBSkyEbK','user','ak_f50517df73b8ddd5','2023-01-25 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$OsPpPW9DlVyK9QSElXFN/rbLekYMnm9QtNuwtofMua5SUuRnMgE8y','admin','ak_c40b89652494dc18','2023-12-14 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$0Y8Necl8O84S1gBkADH6NVj.bapnd/m/3NDFrX2lvRHbsNjPMjukP','user','ak_da74619991ef32a9','2023-07-04 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$Nl050vnudtrJXFklqzLfhMCevvMdk54slM4gp.ECaJdKqs06A8lyq','user','ak_ad9a3b84077b5699','2023-10-22 10:00: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=4081;

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


