-- Host: db-master-4.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=12937;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$iXnkyl1HIbrpswalM/w2l.AheE0.flJXAOjxnJn5Mtdy0n6IUhgSh','user','ak_d782913cf0ced4fd','2023-03-06 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$zzB.r.mUr55UOV9i7R3Bos0Ypocmlus3QP9GcUFd5ulpR3/yDXATw','admin','ak_36813f1118f3981e','2023-12-21 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$WcL3lhmZmjPcHxr4qudOg./GWCmOpH0LHajvm/GR24lWSqEXBgZAR','admin','ak_5624f289578bca25','2023-05-19 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$D.wYOMOkxlDKrZy7WDJXL6geargu1efoO0buj3QEx0QkGPZkZdOiE','user','ak_2562c936a80aeb2f','2023-09-07 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$iNKEcbruBitg9Pd84izOXa7lf38Ql26yKZXExOPttxj3H/xWq4aAN','admin','ak_bd3f24e0af53655a','2023-02-17 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$vqfrKiQ.zW6VGE07kXjtxFLswh2rXfrVmX8PCRv6Y3rEUmrVRQwsA','user','ak_43ca6fd118536ee7','2023-10-12 10:15:00',NULL);

