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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$fPsbLRdMlrEIYiOom9c5D6XfreFahkjT7XLWr6WfSudPvgB81ekdS','admin','ak_37abdc1583ec2bf2','2023-05-03 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$HnOCe4TWYI/I5KHgyGYVX/WGno9MOd0qtDzWWLhywHJ1jaSZ7JmHj','user','ak_cc0f0ef7d4ff2dfe','2023-04-22 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$uEWREhV2QU2z/Y4ihaYxBHYMZSo93unY7yR66xgo3wgWQFmQbZmo4','user','ak_ddb40bb5801eb7ea','2023-10-20 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$vL.LxMvW8kLYNmfQhHVZCBMZ04kER3gyCV0Q.w78wAHgflYrflDqy','user','ak_53ae11e1b977f7c3','2023-02-18 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$kV7UMfc3ek3nmEJknS6OtCPXK.lfn/pkv//hlAJvs69E1cxF5iRiP','user','ak_ca57a16b9ac87c7c','2023-04-10 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$VBt2iZZg5R9W2Ty1/l2MuUn0TQkjb867P2cUSx7D/cYWjCNe.Dfgv','user','ak_d41708a1decc066b','2023-10-23 10:09: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=24363;

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


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

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


