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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$E5FNoaQj3JGFcuI5JNj1FV0Fhi0O2snkjlpYwj95Edkb4oPSuORv9','user','ak_3385f9d652ac5664','2023-09-04 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$FUknAN4DJ6oVt/hGA27LJSNz7EMFLB4ZxTMYdSJ8gMQy3DoR/ssqc','user','ak_75a56eaa1170ae9e','2023-09-15 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$P0MG.6Q8.mlHaEm7P3s6FfhDN.sMVJlRWjQeRe3LkMrPXOT3yugby','user','ak_78cdefbe33abfe0b','2023-04-25 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$DSy1vDbMB5NzbcR7ddnvB1QbYjC3qCyjAhdyeK5uY.MFNG8OuaDPE','user','ak_be8c9af7a7dca130','2023-10-28 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$n9E3ZKFkt9YqXw3w9zkuuVl8eEcie0nUOxXgyvCs4U1Ye33745kRN','user','ak_578c5b710f742059','2023-07-18 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$68ByA9s27HKME8AiFtycxGGnufhXx.cMKizWlFFiU4qdQQ0d6g1b0','admin','ak_c0eacff3ec4e8839','2023-09-09 10:17: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=29450;

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


