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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$q15PSUtVMkqRUtGD5KiWUAA6GsyJL59JJwNY5o5x5beAHiXsf7wIN','admin','ak_55b63b31cee60da2','2023-09-09 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$ytBOSvyM8/l8FLjopgSAGRIWOmHl/SeWQ0b5qzuFC9aRBzOsrQG/A','user','ak_2d6bfde90494d2d2','2023-05-16 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$lL5MZ1t7uj1TWtDB0z80FhSdcc8xWWDkdeY9AFCzsRghtbvDeWuGb','user','ak_a7d38f77038a8ca1','2023-09-07 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$qzFx9Hmu/2.Z5khfUQRBRersrxsHELkwATrokcMtp8uZZB9bhZcC8','admin','ak_1a928b1ee6cc3c81','2023-04-25 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$tFUQZfgcoN0zFzpqWfY.Qvi8LgqJC8v1VvrvnxJmC8CyCOEX4sbCO','user','ak_e5aa204a90bac450','2023-06-01 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$Ra0ckkoDUYQ6.10L3XkovmFHAL9Q5atHb32qQbFfM2M4A6VwZW8w4','user','ak_414dd7fc7a7f51fd','2023-02-16 10:13:00',NULL);

