-- Host: db-master-8.internal    Database: analytics


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$E1ZBwmqB8k4Nm4prrgZsbzAV6L9akCDoguiGbJ8sJ7BOx68iyZ.Rr','user','ak_793eaecd98059dd6','2023-03-15 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$l.UgTRs.kE3iWkHw6qSpvqE3Lkev/5FkYdRPvDc62kTs2ewzGdcDr','user','ak_2c0dbadfd85b662c','2023-05-26 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$ZP1QqXWYDU.0VskL9h2IIjuovGSpficU5Crva.GQFP0ZkQBImomqI','user','ak_b46d54cfcc0c958f','2023-10-14 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$JY3hVbEBACbCw8frAYtPMDqrnuI82oun5Fi4SW4JzpGW8dNEdTFIo','user','ak_77d065de69beb753','2023-05-19 10:12: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=14335;

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


