-- Host: db-master-5.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=6520;

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$9CM6naFqEMmUIZ2cFAxtHEgi2hkUAk4vMvQThXc8WSi572D82r65j','admin','ak_5b2d33ec0ae8c7ad','2023-09-24 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$QL4GUDybS9PJf.bIoMddarW9hM3wFKUNA23i8LgqGR6RiV4wKCEf/','user','ak_e708193cafa73ada','2023-01-03 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$yTtcroKes1iXwLj51MUyGTaCVjjaSyEY6sHtR1Z0fop1l/RjpDy.W','admin','ak_75af981991a9042e','2023-05-16 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$HfgV4ZbSbANDPdNRB9l7nNrwdjTmzmQoEkY93LrNljqa/hi1yZsc3','user','ak_9991985cf4c47fe6','2023-08-05 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$dcKqtuVCG5PJNnxggj36X/g.Srli5ZE7.fFMMVjvUBCON950jcRRB','user','ak_befe6dd5a11feefc','2023-07-18 10:04:00',NULL);

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

--
-- Dumping data for table `products`
--


