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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$DnGz43Ertt.Xcyie4UFx2hCRCSrEmCWNDziHPAqgveykKxi8irA9l','user','ak_a37861452e9c4981','2023-12-08 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$4fe2nTg7iEL27VjJRf7o2HpSszjxnHDVWPwEXqplhPVol6hHhfGrX','admin','ak_6fc40f3735d60e08','2023-07-09 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$6O16DRwDSdMmMLW3E1vuaxxImgxzqGovXzFxoykpaCGdwj2sH9lVJ','admin','ak_fbed79ad84f4e1de','2023-03-11 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$NyR0/VrDd.CVNNM7HIRNAK8e7Iwv.pVLgSw7XxINwBJPZvUE9lWl/','user','ak_8054f099c7e016ae','2023-08-03 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$j1l8kSL40XCWIMzzaERf3fle/8aULnBNrDFJUMsL17fuxkmmGgTP3','user','ak_c416ab4581e1c2ce','2023-06-10 10:06: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=27619;

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=2015;

--
-- Dumping data for table `audit_log`
--


