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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$DWQ4zs9wNRmvIrBNFvyA454GSKwjwKNgoeKbzU39TLxprzLGw/0xn','user','ak_4d21c1a621a3f023','2023-04-20 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$Eoz7zbVUbhPqO75l6zZcXfZUd7UZZJkPYLC1wL8..hr2NvYYIY1SP','user','ak_cea50946e7bd3c5a','2023-11-14 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$QSkrMlOQtXgIm2JwBE0bDuJmxuReX2AvW9cEGhNXfWMckAW/jkV3N','user','ak_d3d6184fe3f6e842','2023-06-26 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$g8VyS/tyBPb0XjSRZFTiqnNwsSITjsjdGM3dFTX8LNE4IpLcrRxi/','admin','ak_1c458b3b5547e74b','2023-09-26 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$mm5VPAIYtvq7BLGw./9k3/5obJHQM8SzwndG/7KqiddX1DvP1NHKm','admin','ak_8deaf9745dca5f87','2023-01-13 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$0fdT8lClpK5qXCxdStl6FbVkI6lh6ogDfGoVXl8YqG4TGhVuxWAfU','admin','ak_5fc5b961ca9c30f4','2023-04-26 10:21:00',NULL);

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

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


