-- Host: db-master-6.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=13910;

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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$nrW0od5ZN5hVcp/Qdbd1SFwUkvj1nLgt6nYU2Tybxf0viOO.ChFno','user','ak_a754e916c5b9fd57','2023-01-28 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$pse3NGqgF41fjBB5O5DjdyrCFkLjDHkNG2207wSLwb6f4flHPmwzl','user','ak_b10d6e3c8178cf01','2023-05-12 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$bl/FW3hDWINlOvP30/RXRT42RHmxV.3ZZ8ejT1z.VSV2qe8hBA6.P','user','ak_c758e5b55e882abd','2023-01-23 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$dsU.CKtm7cQnMCq.snNhiy0xSN0LY0PHXaoe.zkJFa3UbUlP6bn1.','user','ak_e2ad46af8f8ba341','2023-11-15 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$r.AwIRZ4FVGg44JmK0u.qlVtHX0prS0LQXjs6Oqf6.c/70w7SeEmS','admin','ak_5b91102e22c59361','2023-04-22 10:23:00',NULL);

