-- Host: db-master-1.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=29859;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$ff885ov0/wyhcgZbJm/y4YfyTj9SawpP3gpaExycYM5YsjUd4bUET','admin','ak_31df537182d910fd','2023-07-07 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$kLvn/vtelEXVK5IGpuko5FdQ0G6.kafxV/WtUx9JDm62tBcHXLGYw','user','ak_fe173a79cedc08af','2023-12-05 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$yhKYXsi.RcNvOKb4UFQIFxM8ri14nAvyz8ygw8ZwbvE5QytSmKMww','user','ak_1500fb19fd61fe9e','2023-09-20 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$HGlwptL5hREtph4bZIYdcXFkqOAUxZzJJVx7kWB/LIztrXAlWVy7.','user','ak_2243a9d135c4b7c3','2023-06-25 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$8spvDDmJfAmfr3b3FUb.ZaEco1WhI/vEzTb9lAe5.q983MoP9KulB','admin','ak_2e31d43c8bce973a','2023-08-05 10:22:00',NULL);

