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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$5tXr2sR52V/yGNfaw.sJHPk/n6sTMtBCWiyy3tuMAzE3MSnRG9pvN','admin','ak_b06dfb16b105ea1c','2023-10-23 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$w5k//kR2j0r9/jiIMQTuZ5ZKeblDJ4kuS3srMA.ZtqyI6YaqVlqgN','user','ak_b261ed5bbf794717','2023-08-16 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$gcwwOBOlWyks9oXwv86VMiZnEuQvexuNgcnwbgwO77HCnIKvjRG6L','user','ak_7414396f57f5df86','2023-05-12 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$t2GwUy3qpsiujRtXObKm92vyewn8kgkekiXffkhZdYY3QKsw4VlOo','admin','ak_24c4c9c5ff97e50c','2023-09-07 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$AYQO14pKSox7.G0weGxEBVPTaa6c9m0fXgX.Abh7iBSEPxudds1GU','admin','ak_aac54b222d1dfb94','2023-10-16 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$ch401i3G2y4Fx6eOisbujiHReZqQVfJCbrqDCe1DnNHOdeVtairu6','user','ak_32dd7c3e183023b3','2023-06-06 10:20:00',NULL);

