-- Host: db-master-6.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=8138;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$L5vkMJuHhNGQ4mJkLWRUCV3fGVVdEWiktcmAoBfreotNqsexlNW9f','user','ak_48e723782bc5c390','2023-06-24 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$L0S3Vjb00TDziny/7cAq7aTJlYsJlA8xUTHJXKFZM1DcFhVeifDBp','admin','ak_a5fcacc5448b5d08','2023-01-17 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$e76d4a.7lEunjCoQZuywSjYHVdfZPiWSOYN5oeUnwfhLrFQGvMfN9','user','ak_5bea34e075fdc407','2023-12-13 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$p3nRipjPWb7OWE1/fS9aIcFlSo8b4mVzmEX.6lye/6jwT9Ly6Tu3V','admin','ak_801751fe2fc5081b','2023-04-28 10:21:00',NULL);

