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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$GBd3CWbMe6j5uD5.mO.eQTWRxitxZ/3BqryJ49bMarVqWAHenECN2','admin','ak_5d9ffaac5a25f8c7','2023-12-27 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$r8JeeN9L2Cbk3oW.iuUVUE6qlcZRQWjhKV1dnkiHXBdkQkNOrwgcW','user','ak_cc24398b2a1a6631','2023-05-23 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$RelJFYY1AczSYBn6uPC164yxQ5zDfT5ewEP1UojYtmKw4AFzoo6rE','admin','ak_bca1eb0af319f185','2023-08-15 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$c4ETeGPV1811H8WDxZlK75B0hXzHBFp9wFsxBauReDtRmcounRlJ5','user','ak_634944a4ecdf214e','2023-07-28 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$nrAl4OQSkVCm3SN3yY12O9.R4NKTLvwGV0ccfBd6MAvmM6ntM0BjP','user','ak_155e725ac7fef8aa','2023-07-04 10:06: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=31722;

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


