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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$XsUVUk7doc15wCIWzGyszh6vTRc4wTWu..6F0reDfd3czuMzikSoj','admin','ak_d56e59a31718e4a8','2023-05-15 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$/lgRqI4ZrVIVebSRKjA3yOTFJqI6Rsjqf8mMzfVl4AHYgFMgvWkeO','admin','ak_7d3b148aa70802d4','2023-12-03 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$eu/O0hkz1ABdlPizFaQoL/PZsolTlMQKdxJDneifrFHJu.y3Q490L','user','ak_40e088ada9c70c31','2023-07-19 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$nZcLIzw2np6no1TgMZAd9SrP.J9G.G3frqN9UovXPVOikDmA1J1h0','admin','ak_615513fe6c6330b5','2023-06-15 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$K1jQSHefw0TH8xQ3ViSIO8FvLv/zd91DE6xne9Bf6/DWwcfRu6tX.','user','ak_bb228bcc1787058f','2023-06-28 10:16:00',NULL);

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

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


