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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$tqfezzxCyC5RTAHcYV48neFPteJgoHkYvKIUQKPGe/vwQvvMNJHoR','user','ak_fe6db22ce980bca2','2023-12-19 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$S98wXFAEd98HqjrJFv9QYi5w7HV8OT6ABUUd.wHuA0g.ybkquKDB1','admin','ak_375a64dcacec07c7','2023-07-18 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$OQ/BuBH8IkqAFYC893T4ScwKygkK9c7NIZF2/gE1udUWrvCO57TVA','user','ak_b1d7540e5d4c0b01','2023-08-12 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$rmYlhvRbxJty42x.k2QCiZTzYNA7TEqsIXZR9bBPpeyjUiimY7wfv','admin','ak_201e32255249512e','2023-06-19 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$lEuLNt6OEa46j54MI9hiinlpYkW4TIiN7KtgfyHGV0vXs88hMx5AT','admin','ak_a82180efb1b793e0','2023-09-04 10:23: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=1638;

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


