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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$FN9KKguCu820P.cDgO4SpXscmp4FGXlWN/q96mOX5LLQ0zsNZ79Pp','user','ak_43c0aa369df0820b','2023-05-17 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$zPjJcLoR4wqywhIyz4DjAVBqxIcMc1PYZjCGXcH8e/45w97lLe3vc','user','ak_63720c0789eb57a0','2023-02-22 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$.1MLBqHzEEq6A4KrhRcTtQfhdo1O4W3dpZlnY.0BpoyIhZr1IQvuw','admin','ak_50d9d331f22b8c24','2023-03-03 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$/XKNuzGvEm2CqYSAVr9E6ko6i6Z3l4w3RMsVYJ/ZOR29KzPOUmX55','user','ak_b9e93d18ae846837','2023-06-08 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$1wosKtmFXvvwQaNVT48eOid83hjcIjSDE07Q1nKfkbFYWorOrEqzN','user','ak_0ae7a3a785c90b9c','2023-11-24 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=33123;

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


