-- Host: db-master-5.internal    Database: ecommerce


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=28709;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$TR1lgQm3hosTVk3q/P00bd739imyprm50pm1OcDSvmyfSbYffjghc','user','ak_a2f95d6b43b9c4f9','2023-10-22 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$D/WrO7Qd0Evy4tHflTcDXw/nsMGnKlVF89HTpJUzQkcxN9UqpjPr7','user','ak_b93d88bc99886642','2023-02-10 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$Wh7l1qxGx3D1SLm2gLtF.FzTpP565tLL3a5Kg7oEhlxmSuttksxXs','user','ak_20fed1e0165bc104','2023-01-07 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$YMcYYeA5gO.p5bu1CidcFSt9pHctwK4mFze3dlw9d/6mPYcARkOKa','admin','ak_869f78ff03f31dcb','2023-01-12 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$raShoZnc6bEZvLY9DvHLoHWYxaU2Sf9PsQT3Xr8xaOh8wfFwk1zjj','admin','ak_eaccde9a2dda2a15','2023-03-15 10:15: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=2808;

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


