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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$JNe8q6xvo.wb.6QPmmhY6LFxWPzEQAGeLieROZE9i.9jps2G51Dmu','admin','ak_55614f0dc365533f','2023-11-08 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$Yh539RgePJx6qAA1ACEAMaGh4JP42lI052COO6mw77bARqCDrE0n/','user','ak_01d9704d420347ae','2023-02-27 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$C1KB7rt77Q6IalTlYf6jx5bSXTsZbZStjkS7Bp6v.ROEJ.A2aIEOE','user','ak_35dbf1d56664a637','2023-05-11 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$uZq9DiWvzNM6vq9pJETkZouHZ5/DFcgD2P5T2GAiPBXRuhfP9tWC.','user','ak_8b011d062bd2eb3f','2023-08-18 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$OM7kKzZYfG5mmlIAkmj.obAJsB8McTu6QEQ8E7/V0I1fVRru84e/b','user','ak_d31d298e41919cd9','2023-06-26 10:02: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=37970;

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


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

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


