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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$34didkMp22H5W6wtbgSecQsgErfs6VE.1E6yNlf5TK7ym4vvJbndL','user','ak_602e7d2013604c1a','2023-02-16 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$BvcNUoxZZDjlwbrXCr1iH18m3SYSrdNLvmSxoqoric4oCijvTRED8','admin','ak_d966332f17049d4b','2023-09-28 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$POZnD30CNoeyTLrTMa02qb4IukwhYqFLaQFsZxFwm.NHHZNAHcNp5','admin','ak_d23c9562aaaa1769','2023-11-02 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$eZaysej/aDVc1rqo8gmJr/AZjCA.6cxvamsSR.HnBQGRbTbyw2Y0m','admin','ak_66c60c3ca3576ae4','2023-07-18 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$LOmrJTu2v3f9ycs37fBFzix3CBhkR2TO6FKSExtKOu9BxdtqsfZ0L','user','ak_2ada163082512fe8','2023-01-16 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$I4chmUNN3rp/hP0n4Oya3vFcd6dmBND4OEPJ9Hm6rmiTgPT.M3tPL','user','ak_9060fdc6f46ee15e','2023-08-19 10:07:00',NULL);

