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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$bqC5wfiJMLmSfPVDLz27miB4aAFbtcgcQp75wUTcJHS3X/TgZBQHJ','user','ak_57620c5c47bb27f7','2023-02-20 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$UCtsmbLr8tTOi6GTzuYXlicUQG1tZTQ/L6pZgxPX0Dgor0WlT2kjC','user','ak_0726a92ae8de582a','2023-05-17 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$DOvWKXQGQQDt7cZd.4G2ywOQV8pT3Z1Mvsgy62SJ4qbkLZCb83zgX','admin','ak_c079dd1049d5b657','2023-05-04 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$nue4z1JmOckTlz8lL/d6LZLXyKeK6ui.anys2uPAwVRO2/e6axF09','admin','ak_b282f6c2e044da25','2023-08-17 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$nRjCA/6KjEbCiS.CSEA90bFUpvjtalobKsf64pQGuOgGxPdP/bB0c','user','ak_ca8209ba20874ac8','2023-06-01 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$qlDksEMHIjs6e2zy7xZTWxPw0dTn0s63/TCBfcOrTVlGz8b1w2kcz','user','ak_bfa05e823f68cc30','2023-02-24 10:09:00',NULL);

