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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$xNoapksJzYIb4KDcsVo.A9/r6QJbiP82gSa3DjQMYiVcebBX42axZ','user','ak_e3897fb13eae060c','2023-07-06 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$MuPTUKJ1RSOjD3a7hT8WsQmR3yMZhxFGuylqIhhqDSCJWaTaNM5jg','user','ak_c3b20061e454bee2','2023-03-27 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$0vh37iSQdD0r2H1cxkzs1mRQxtgm1ZqmxnYnU6rL6n8nQHfVf0BI6','user','ak_4220c6e627373012','2023-10-02 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$XbK6D8GYxignXYr2YrXfqqor3mqKSWPgYBU/t5mm.k.tnncx0lIF2','user','ak_7d43df55d357cdae','2023-08-14 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$NfOguJ.dt7xuj5/sraScp03xIUNJtL9MeyOie9NdE/SfmRII/TCy6','admin','ak_429d45d78c4346d4','2023-07-22 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$E3TNA.yxOCNztEb/UlMWApBuzf9cZgh8NY.H/aMsP9.JHc1Gcx3Fg','user','ak_f1a29f453da6b172','2023-06-02 10:05:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$zwqkv/rxo5/JKk5YVO5reI39PV3gBPJY9ajdJIP8oSIH3MBRaubNi','user','ak_da3f346bc3dfc605','2023-06-13 10:06:00',NULL);

