-- Host: db-master-8.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=11881;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$Ru3/5iR0AxZvJ5XJtEuUIra/6X3ti7VCViqLSuAt25x/7GCSBNPYE','user','ak_404e56f0163b7c8b','2023-03-22 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$vOB2IoMWCWD9hj.H8setFE7GCHVX0z0sVagzSsakK7JCGUmfNkTuY','user','ak_1b6a7ea16eeafa62','2023-11-14 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$FVWs54p93Ca7.0N52fPOmCBL2zcAe1TNq4PHkDlIuHVVN8QXZYgTJ','admin','ak_1da20f28b39bef67','2023-01-26 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$HtxwavnOXkIDMYudTUYHwaUzVjiV05d0foWku2jWHx9bhLo5NX7hz','user','ak_17987882ba9ea152','2023-07-12 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$xAILH23LgBgHcLShQ/wkSzxNUfewt/q4PV0T2/tsGQgZx7avOXPPl','admin','ak_e8284dd6655437c0','2023-01-23 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=39375;

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


