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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$pg/48AjI.N9Z2g1PTdYtCXuh0O15JWu5DL5eOb2LLEtgw4eUJfAWo','user','ak_2bf569f7f9aac3d9','2023-07-15 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$Wi2aQH4vO8II74dlv1M5GXyfyIkieYKvcGpM/4aOs.DPWUOFtqpUM','admin','ak_daf1c8aafd795849','2023-10-08 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$LmRRTpW0P8NEsARiavLYh6x8rSZM3R0TAXzpnW4fyTkIPw/KqSwp0','user','ak_62f2f8c8702cecf3','2023-06-27 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$fB3p7kXeB9j8VfvxXddMje6seJZvdSLZWao6bgriu2u0E5TDOapvQ','user','ak_80cc1e78103fe6e1','2023-08-04 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$/IUgvgWVQ1uEDTld/AZIzCk3eHNrYKI2kaXSttkNhlCYGGAViG7NV','admin','ak_1dc4b4a31ed5c7de','2023-02-04 10:14: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=33395;

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


