-- Host: db-master-1.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=48972;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$JPvEak7.U9xydQ2vfyoDyVRjrHBa6kGYeuKNT/5rZxyk.DfF/hiCk','user','ak_2c9ebd357fa652c0','2023-02-01 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$JJxf5hstR5Zmb4nbO3gwZ240Ayt4ZDjneDdw1rfoiSPJwz8Ld3mnT','user','ak_8d191d89d3c8d357','2023-12-20 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$2Disl5Xu0dISCSqk34K5ZPKjJGSzy4ONVw.QWs4CBAvPj2RCWOsba','admin','ak_8994c7a2534f5a78','2023-01-28 10:11:00',NULL);

