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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$vll27H2asbPU.Bj/YLCZXX0PpxNhge.I.9zDwU6GcMdeBXIfOWyLP','admin','ak_61ca42498df23216','2023-04-10 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$bBTgEipdb77DdGNEuxeGIQg/f2pi2Fy6c6K/9tjB9onWlTbbqlFnW','user','ak_e4a36462edc57ee2','2023-02-28 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$uFJ.txAJtJAKGBU6qKF0oq2hrFruk6C.XZ6uTB/Cm4aAzV2JJJoFh','admin','ak_5ba989e12644a095','2023-09-06 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$QbEvIegCf4zbyZAKBpBYtzWHB3m1qPx7bEmoHU5gMwOm5ZhYYcStK','user','ak_7b4c1f64d28c8c5f','2023-04-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=44759;

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


