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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$dwUVjaA7RNJWtVxa3hC6xe2YqcvRtyz6Sezr79GiYwBnqST0lSSQ8','user','ak_bb0274b193770aa4','2023-06-20 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$VO4Kkt1x/s8/ZAe9JURezYtu.MDEX1eeJMP63gfUimgPGgSsC3B2x','admin','ak_19e2ab2eaa8da035','2023-04-25 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$suYsMYkEm4//3vmb2kj5UE31WUOuKEPsd5v1dDHGnbbZ16Sg87Ake','user','ak_9703fa554bc209bd','2023-10-01 10:11:00',NULL);

