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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$bCHQSxqtXserLQzfuZSHop1xFybu9s7jh8v1MN8IZXK0SjIZ2nHMo','admin','ak_d704f5eedc937abf','2023-01-17 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$NaUNz4hk5LfrXMGiDoEwxxrgfG1j9X32Ff0evUvKZ8CHUUqRpXC8Q','user','ak_7764e38026edf33a','2023-06-26 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$8n.TnQfjxw5r41eEMDtNAlAUm15laKvDg632doy650sJy.ooGYCK.','user','ak_605a6374c7f9b359','2023-09-16 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$4a4hR4CYsnNb2cfvbye/uBFeWeDrqDmZwXUSdzWT0mw8L9krQ7dVY','user','ak_06b230bdb0f64076','2023-07-06 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$LrzrW9dT3o8MAYB/COnfxZTaoWfhPHQcl.d3drWsayUkjaa17/14B','user','ak_1ecabb7a6c1020db','2023-02-03 10:11: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=39258;

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


