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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$o7VStayhUJPdMlPUYxisSroAO.jxfC2aEkZfa7tnXgy7HgY.pumve','user','ak_2e07188f57f65a75','2023-02-27 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$HwYXif6y4MC3RDYn6586kC1OBTIxoww8K5sUSWPL.bgBNLybEAjbe','user','ak_576771473210071e','2023-05-12 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$A4Q0JzZKlEBlqsUpjWr4YvWjr.Phd7TprnSLeYw7nGtTcaBw13hrK','user','ak_399be53aa92ac961','2023-04-21 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$7ARdeEqr08BDw13UHVjAEVIDNsXr5c/SIHwxmqUrXOTETY4dtx11.','user','ak_4664e4e4a6cbeace','2023-08-10 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$4UuRhp0oRCIcfOU/VjBM4JkPS09a3qYgcEjTLEkIWBp5QOIiVubg3','user','ak_598dfc57c5eaf573','2023-10-17 10:10:00',NULL);

