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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$k/Hy1aPbam/CmdK.8ir/j3UAdbftuRHLWK.tB0ZG9DHyBMVPJ3sJK','user','ak_58bec305695cefb9','2023-06-24 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$tuJpWJMTDugJYyrjoKJjq7HCor/4Nk0jM60N3uf1Ovf8mLUBJ9uFF','user','ak_00d0a32ae9b1a480','2023-03-23 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$VnD3Yx4kcQnYJUitnhBnDl1oOL7wUMSJClzmljUMgUaYRu1TUx8oP','admin','ak_bd92c3cfc9311488','2023-12-24 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$NTa.1p3hoBGPGDqLkCJmYV5iYUCo5NH87BiMhnAmFIVwrD3j/67Fm','user','ak_2dfa204d30ead90b','2023-06-06 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$O8X9vaft7u0Sy3wh9DK8UgDppXmO8x/InJcu/In0yQFESWyQJ28rF','user','ak_450607ecd9b8657c','2023-02-07 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$xINla/3UVKYguAhr62NVvI10P3ZBbUd.Tvn/jSC3.dAw9hSV8dAPj','user','ak_1a1d0eb493d1b7f0','2023-01-19 10:10: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=47554;

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


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

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


