-- Host: db-master-0.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=12359;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$yZSspm7Xv9q0e.Tc2D.ERO5kUiXcmiCJxbirbRKXfOVLZbcWoJ./9','admin','ak_a335c6eb942f6a5f','2023-01-23 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$W0Vt0o6ejrOScizYk5De06rkxiWrFnzbivLdzLca7DjKOUDEdBF49','user','ak_fd1025650b34f8e0','2023-04-01 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$jWKTjtw9zVVwcFNb6rkJW0ND5136rwPaU9/JJUqC2OpBCcmFJU2CR','user','ak_067766bf88281658','2023-06-27 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$JWc4L6/iwZj5iu2duohHNIpLtypCNJSsq9//Ja0K5j35x6CzxaHX.','admin','ak_4f10037bb0485574','2023-11-05 10:09: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=41022;

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


