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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$ilJoMTl4HsDmmLqmw9pcEwZCHAhouRhuI9Z2kTVrukQCZisn/DJOH','user','ak_d77641869808461f','2023-11-20 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$5YnWmyLG2WyWdCgtGvLACkat/S/H4DFtJeC2CciyNKBYa15pYm6Ms','admin','ak_8b8aa90b13d9a090','2023-07-16 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$yTeH9MPdZh3MEG46Wn01v1E1737ujIwBAD2Go9c2D554XSGlHCxkb','user','ak_fb4dea33841ba4a1','2023-03-22 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$6sxA2YZ7OCpdh4JS4P74PGymriA2mURcR.QtypiwcCwa//8cKRASo','user','ak_6866fe9e3297b215','2023-11-15 10:11:00',NULL);

