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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$RQZprb3xdUbEu6dfG3mhe9hLt9lpuB3EZCsJcDa.sNbqPHOUBmH1I','user','ak_82f489d25ef69e51','2023-09-23 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$41BRcs8DePxH/fMQzUs2EUIKgz25WGm5LzpYZJBweb3C44L6/6mDL','user','ak_24063712d3a0ce03','2023-01-24 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$umIj0Vr.W1n8KcwLrt.3HUcKQ/Gfp4D0j3mWmEb6QlxhG.KpZ50Y2','admin','ak_17cab4167ee8fd90','2023-09-06 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$tq.CeNQ0sqINj7NPsv6jIWk6l/RBgr3nhnUxDQ02Ub2y5OXCxtyXV','user','ak_ea46ccc925c1cee4','2023-09-25 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$2ZrJTZAOiGsaIBDRgJMAjosSyZD1K1ptZWiiLQddfDFTPbCStIxkN','admin','ak_0759a089dc82fc62','2023-08-05 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=41796;

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


