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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$X96VSuEEn7zBT58OTE0J8YQuPHhHNcV9HMbmTLH8zxmd34V3v1yx5','admin','ak_f6fd23dfa9d95af7','2023-09-13 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$xSs4Q4Xipq.4z7SHMsUxc0vyzDnXfZUxV5LSF8.hz64RrbTKvK.p5','user','ak_44cb79de5379aeb5','2023-06-13 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$RawgYrKe9H6JmxOz72SrBYCBQi9jVPI4zvu4Endgl1wNCi6MxgQ0r','user','ak_705249213060fc5d','2023-03-25 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$ONGIvJNxf6lGy1gTI1p6G372JoNbY72WxMw56emwwfu0ZikZOBJLI','user','ak_a54a60fe8ac5fdbb','2023-02-12 10:03: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=50597;

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


