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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$nf5OnTPstuxfNb9xpfHogxJAPVSborVSvRfOBC7TvFRXz.AuWeK1D','user','ak_987d68b748bde1e4','2023-07-06 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$FErWkV2hIImOgCfw56YbUm.R9jf7iRVeZztxisGFTk0iTqDRHPt1T','admin','ak_29c30762193c7bbe','2023-03-20 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$Ohhw5TG3uh8mZFqRuP.0QghW8.PdUDuIgHoUbmDUwInx9th6u8wc2','user','ak_99a2aea9d4df5a49','2023-11-08 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$FJqOXysgP2enCANjqga8bUZ0ljTM..ykVAXiLMNc0lH4aVc0NBA4Y','user','ak_52ed43229a7aea35','2023-06-13 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$ZyEm1ett2WI1yjkYEgZ6wMN2vm2EAs3sF3zA7ZWa0sa5Us.sJ8t0b','user','ak_d74039476bb589e0','2023-08-19 10:20:00',NULL);

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=36311;

--
-- Dumping data for table `payments`
--


