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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$Pb0J0YUfP5cJI7XyrTWVOiNLILHOBItE0HDwnaDGp7hjLjB9xTmp5','user','ak_370cd5d1f6a73964','2023-12-20 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$SGSG67jAEPvQrW27DtVQWLTu6T3a/fgEq1nksXqYQWnfZzgt28S.c','admin','ak_abb926ad7788e10a','2023-04-15 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$rw3bOfXCaATcjjg.S.jdJpwzMix7y4UJRlz4pQdrKWWe72dTi9r9z','admin','ak_ac08c0aa04002c74','2023-08-01 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$S.F6E6TGYT0RQG7sylgeNVDKKfUThqoKejcgznE29Qalx39Puk61m','admin','ak_3f436e035c50a4a1','2023-09-05 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$..Qak1pwFzz6LC.gyOVKVj8uvXQM6ZJEkQTt4i6idFe3EpEG4mVse','admin','ak_832ea6eda1e41012','2023-01-04 10:17: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=29596;

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


