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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$c/Brky6qXM169OQMzYLWs0rpspNkTSG46/6yV6QuY7ZoJY1k4pDvG','admin','ak_f4d5e9d072bdeb7e','2023-07-03 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$a2DcxdUSgx9geLKMsdgoHA27kBWSp3Z4frSfeIZKFLHJwvBueo03S','user','ak_a6a982426ea6ad5b','2023-02-27 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$LLcfSOXjtwBadbKi9U8Tv6Kiywvq/p8MCghEiJhDesirIw0mDGABn','admin','ak_9715fa40408c62a8','2023-10-20 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$qVyiRCxVDkug8C9eQDSw1GkPWssCl.N76ldrIqNGweiT.Dl/uUily','admin','ak_39a4a13ee5fbf449','2023-12-16 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$Q9zxPy0k8DXRSzFh6Asx1M4FtR9oIuOxw5L3OKaDsEpLvUVG.08tu','admin','ak_672068e163400e8f','2023-08-09 10:21:00',NULL);

