-- Host: db-master-9.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=40356;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$DgAEocmgNm4UaSbXzb47ToYOxyn/JfoP7.wrqmjPt0sSCyvdbozMk','user','ak_22785aa3f1831e71','2023-12-27 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$Lv9OAK3CS6qcheWBFpiWeMOffugIEgQmqU3nVeWbZ7cmOHQNCmAV8','admin','ak_0f93c6740665279e','2023-12-12 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$i8.AGMZckhxdVsGUrM2cKxJRT9MG3W27E5wBpdEf.R0kHWgYXL8Vn','user','ak_bcbb7792e2188300','2023-09-25 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$T13fy.iz8LilzE5OKzSeAfy2cA5jL287lJUuO63w/tfJLXK.TdjpO','user','ak_c74398f911e5f6f8','2023-07-18 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$k77JpRmwHyOXtIzAv.eXcM3L/2hgQhFFRo3811u1nYKOCKlfatoW0','user','ak_05a8144681e69e11','2023-12-27 10:15:00',NULL);

