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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$3zR/iDaf9Z/UzC06fxGqyqoIICH.F2YGZxENyoKlV7VIRVeu2ymPA','user','ak_5295d08a70db03a3','2023-04-06 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$V5thvi/PxM2DS.WqsQJ3EBNQ0XjCrUEGHzkeArqcxT9b22.HXX0XQ','admin','ak_86d3ff059b1434e5','2023-03-07 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$fWxkqYgrkN0TMDsjBICn7ds5aeCemJcl9ks0kglXgaeLt16erBDJi','user','ak_45d41296c11ec4d6','2023-08-10 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$DcbALFF41Lc.E0Uh9BNZYnWx51fRVaY/k2v2ypia1KpPjT3XsXEmk','user','ak_6867c83501bf9107','2023-06-18 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$3zNM/cBReJ7Rw1PU./rNIK02ALOmv9lgtQnyB9m.IJHAbVr6M1J1v','user','ak_9277d38a5a76e0a8','2023-12-27 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$5o9XghRjKwtzVPtl9L1zJwauaBQc2KsAuI49iPDdDRYpoDkSX4kL7','user','ak_cb0527fd449c9103','2023-07-26 10:16:00',NULL);

