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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$Sc5I0gEqdWkfkMc1K10dymePhFX6Z1PwNfDFC1C.s66/wdBWcJeKT','user','ak_ceffa60db7d08014','2023-01-17 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$Y0wWalnDj/4Xs6bY3zalnkRyi7T7FC5kPMxkPxGnFKX5NNZS2yPxV','admin','ak_c9edeb036c27ea18','2023-04-07 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$y2yMvlVSg5C9nhY.kAQ/w8PUoml8APUGV2OhDtMLdf9jhDuki7OhV','user','ak_a7c263e534ff9045','2023-06-04 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$toSVgN8gsEwtJednkFVmKHiX5.grffcPxS/oGcSctgfvcUKGeZDJk','admin','ak_180c9e2799bd5a24','2023-04-17 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$uFQI7v6lUd4JppbOLYKChCPy2.Tv1HBP9xIfoxcIG09XwRlw578ut','user','ak_c8f62939c60f2861','2023-12-02 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$.fYmnou18WxrqDpOsY0r5CgyOQ/tFYhBHX32.Zqfqe8zloCB6Thel','user','ak_0f33039712f0203e','2023-09-05 10:01: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=26075;

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


