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


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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$dKep/GRS3JrXwn0CBVJGbK9wW23184ra7SMY1bAlFNzNvHKu7ZVtK','user','ak_dd317f20e6ce02f1','2023-08-04 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$JRatdawDk4mxZkxLplvOKOgAfLaBIB1PdeueoeSTsCwT0s2cJ8IVM','user','ak_8487ffb89dfbc5f9','2023-02-21 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$FUKFMn5QDk2jQ/DAj/GdxWE3hwArzib/LM01p.5vGb0VCIZOBOlYW','user','ak_78720e2cf4483f97','2023-08-15 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$Ti4yivawdxXwGEN30UQBCy9Ug6YCP.9WrMdMee9ridaL1Q1WFOWlS','user','ak_79bbf03014e342eb','2023-11-25 10:08:00',NULL);

