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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$bj7/tAEIJuOo.tq7Boxof7MOG/Q1MVCXGLPaMpjy4SdKnCg.OAAhj','user','ak_86523609ee4b65ba','2023-03-27 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$QUwISciUDr0W6Jrb6QhUH25qF3UFoeSn7WW4DERHT4Ko3b1e5D75B','admin','ak_5dbb60002315b635','2023-01-22 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$OUz9yQo6CL24c93UMbv3zTOv88fqG6FNi2yMSETNyJw/9RU8vI5UT','admin','ak_2d06377088a3f9de','2023-03-02 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$faR7WiEjkmftr/MI8IF2QbtQSiUIIWIEEyAQeWv5nPsgxi7UBvs78','user','ak_b94cbde284b23ddd','2023-09-24 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$VdY2TD6AsM1mvUX1tpoI1nVb9cxD9rkax4WuRVnzYIMXd2Ky/2H/e','user','ak_f7fec46c82436a6c','2023-01-20 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$cl6IdX9iNmSDWFkKOr4DOpH6p43gvB6UwNhRWmwVuzSt/YGey6IfM','user','ak_ae16b9ece714e75f','2023-11-06 10:07:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=21074;

--
-- Dumping data for table `sessions`
--


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

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


