-- Host: db-master-4.internal    Database: analytics


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$q/2w1tF/SSsoQ7LBzKt8qMuJQmf1hN02TZY/wk2nvgXgWos1e0lzP','user','ak_8aa370fa333befbe','2023-01-11 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$El2guoySZI3dy/Ps91c7IJ5lVpBEDf2Z8Qs9sJ8IiTq3UNXYanEnR','user','ak_cdcf1ee19f9e3928','2023-03-04 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$Lcylbfn0/sUicUQf.Yzz2UA9OwnVJTuPjbbS8Dx52Z9pxQgPEi9uG','user','ak_88ffe21f75724fda','2023-02-02 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$9j1IfzXwlqjNBU4xER6nv6GgzQtMWkulb0hojC3ayDvngz4MVM3CH','user','ak_83d189cdc4b4a8cf','2023-06-06 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$lhMhR6OpQn6s8iL8O22p/8az1AWeUQK9CrnXFUhT6UfAquAxw0S27','user','ak_505b7b720f40e971','2023-10-21 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$OpkPFT2s7l0WgfsvMqDqgi/pFKZglKGNy6YZ2omme5jUfSsOVMtMK','user','ak_00b237dfcad3d934','2023-12-22 10:05: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=1659;

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


