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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$TMQCWCdYf9VhBlUk/x/B7Kz0S9HDFWC3xHBUzbpLQiNvzQrSm8RYV','admin','ak_8225971cb2bf4fc8','2023-05-15 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$5RqsxaYx3wru1pLqnDRmkhxrjfTrgB6nsXhbi72yiBN0PjJMucWy9','user','ak_897b9c6c425aac98','2023-03-28 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$7H6l4WinE6VHG8nLEmeukx.vr/dsMQAPBCrR5lxPxkHqJluBF3WqI','admin','ak_fa76d79e95208f5b','2023-11-06 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$LCGSUNedecxTcIuIWq8bFKJggL8.vcLY25GEbVFc7HipARrikXgxs','user','ak_9c3f55167ab67f90','2023-10-01 10:08:00',NULL);

