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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$3Dt6vmAiwTAKqaKg1RKxrSXHWvV4eyk2sT9xIxzbS6NK3UE392OkU','user','ak_bc5a2a77b81813bb','2023-05-27 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$fopsfd5KAqO81WZgYbX/SF2dGX1bzq1QGBAzOVXef8hmQsHvHfwXl','user','ak_33deb9d62fa2c381','2023-12-19 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$rTrXDSdgQmtDVOuv5HYu9x1WrY9UyTQMn/Un4BtkG0Oy5nfIK/TFp','user','ak_24ef9be8587bf447','2023-11-05 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$6zqv.KqGZncm9CFPEHvnFgHw6b1NolZDEhWPSpfhWV8YocX4mBvl4','user','ak_dbfb468c24652665','2023-07-08 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$w5e1Tx3xmlPlNfu6UpuwtYx04TEg5rvvIYsTweVmVDv7B5mNRMHiH','user','ak_6ffb7088fb3ce65b','2023-07-23 10:21: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=35013;

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


