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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$k1tF8ejzdMzu0/ABwR1XpWCFBs4nY4ibod4wM3QWvMKXltKAeSn9c','user','ak_c73efc7e1f1f1e40','2023-11-18 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$5Z2a90aIo5Ar93jP0r2Rry0T4.iLlvKnylGCyrnYBfv2AIGo0I4jZ','user','ak_a0900b7b1d9460c7','2023-06-17 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$ZVLeF.oG/L5mGHNTzrHTs96bfrdelf98XB1.auMP5zqW0WyrbkEqB','user','ak_1571e0290acf4e1a','2023-08-05 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$ccfJyAdJxeL3F6NQmgnaOwy56SZiItUd0yPnQ5vuRmnmbiHIeSGsH','user','ak_93b22c56636a4776','2023-04-09 10:15:00',NULL);

