-- Host: db-master-9.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=30238;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$viy0kvJD9WUqznInxSrZyZsL9WJh9ZyorzMw0xE.54.cvAExkpQF3','admin','ak_a0d1bb77e4dc9b4c','2023-03-28 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$vrVMixOJuYj2tAUCcNs5lPEat8Z/IFxCqwt3BL9T0rxrBogFCbwY1','admin','ak_a8d4885cf1eda91e','2023-02-05 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$nD4B30RTPYmwqOJSfdc6HYejC1qZ4cxIq0ZLolgsNyPoO1QEwQt1D','user','ak_c38d4f6eaae5eed4','2023-04-21 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$R0NipJOQbH0W3TKHatQZLKyn0DR3wMM01RGE2.Rx5TDcoAD4jxkzs','admin','ak_05fb44bb08b43370','2023-06-06 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$O2mTmY1s4f4ra4rWKQfXlgOV9s2450e6UfoSMi2ECHnR60RA5bgod','user','ak_2b3dae9a13fb0aaa','2023-02-17 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$0jMhLTKhCAGjiKck9vn0muXGsV6BDUMF/MDiWG7mohnqUmRx5aL6f','admin','ak_6beb3bc8a6802997','2023-09-15 10:08: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=17291;

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


