-- Host: db-master-0.internal    Database: analytics


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=37516;

--
-- Dumping data for table `products`
--


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$Vk9.RmUTQb.lFsoxOAMDfyLRwk/iaOagXy0MCaqC5uig/EyYGQDi7','admin','ak_34c54d9729f5ed07','2023-07-05 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$5Zn4VHQ5OFFZs8FF7KwOS4uMTTD3xf8UfzoktWmJPHwBJnKhNDY2E','user','ak_f50394dddb2dccff','2023-11-20 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$1GBFvqpa9UFvLqRZJQsam93qbbXEx6FGzstpQ1pJEtq2xw5aYyTlB','user','ak_c0183839b4efb5ab','2023-10-25 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$4dNM4835ly7InCvCvfu75xUh8X95xjTHVhT1SdKtRZMuhfrTC4d6d','user','ak_d69489b23c33defe','2023-03-27 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$XohfsB3TTv0mHpgDTgHvtRsGLSMRt2xsich1y2nKFHjPxQqF8Xn8Q','admin','ak_a188ecb8079327ba','2023-01-26 10:00:00',NULL);

