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


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$uedt61dV2yogmXtdiOH5u4nSW5NJkttUWJfS9cccAKtMap9KLqhNs','user','ak_b60cc02bd956799c','2023-02-14 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$JVG/3OXOg7XyX.7jE3GGVHTMliSWwVKq0D4T3tYvNKjpwWDkjGqvg','user','ak_ea7c740c0ff611ce','2023-12-17 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$bQKaZECBhWC8gUQJ5bzJTT/LKYASsL.ZqyRM2VgU2rcFDwGxFUv2s','user','ak_f84b20328ef0a7ab','2023-04-13 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$mHZ80ZOqbSDDp.h6vvFBEjwKqFA32yMVmM9oJDsP2.CYTIDDVXu4A','admin','ak_a5e3cc2b23634804','2023-03-14 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$Scflw8y6Fxz2M47oDvnX.T4RpSBQe3EYiqZ9x6EUioOaIlG2tjpIJ','user','ak_5a2331a353ea1bd7','2023-04-10 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$dK.KbuQzZDY3mEwAfLmaSw9bGoIpz8SLPG7qfFeGRRnOgPVvxHhAt','admin','ak_d68a82ea8a26d185','2023-01-08 10:02: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=40679;

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


