-- Host: db-master-2.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=17187;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$PnHWeuf5wEnqPyY7umrIRfk/5n05XVsPpY6cpO/m4APUdtDKxyGyS','user','ak_f254846cb11c5a1b','2023-10-07 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$zPn70tCVh0ScBBOXLds4KxwjI09Q2ItHH5sk4R9GRTikv06snMBZC','admin','ak_6fd14ab0bb232377','2023-10-18 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$mJc3W1aTSS1pfZcKIDmGE3u0lJ4Uodta/5AWyZ.TD8yG/1k8ieHLU','admin','ak_482b89839ff10218','2023-08-20 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$i7zt6jQKsLH5WVq54uf/sZX6Dmg.kEycejVxSk9PmGFIm0Z6FLvjl','admin','ak_0edfe78d05b504e0','2023-08-16 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$TRd2Mkz5oDFZqPLKSRoO42H2X9nlHfuHGmQPCNF1Q.Pyt7s9dN14d','admin','ak_2a126ca466023944','2023-07-04 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$Kh/Bx.HUVW1TjoXKOqjl70qiP7/3PEnSoLrq.wjeTzI.iByH6.0Tv','user','ak_9f4ca150a6b80fde','2023-09-28 10:11: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=4279;

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


