-- Host: db-master-2.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$SmuVzPO8OY8t2ALPyq3ldgpTzTXGfPXTcWMoY1Cldtp5otwBd.XkQ','user','ak_1f031c7d3ed8f2ec','2023-11-08 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$XBTRm6eeVPQtz3qJGiUGvLDCEF/X5hBFXSJDCfiz8iAj6XUhpMMiR','admin','ak_a1c2e15d3875c5f5','2023-10-02 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$zvkgQVjUnnEIEfgvGDBCDD1eW0uSRHbr4rI3vu7gZTV.q7IU5BeLy','admin','ak_a3fe6e11448264f4','2023-02-23 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$IJnowGqf64ViZqSOBfYcrDPMrYBVY/fOSkUCN695RPLq5YwwT.q8b','user','ak_4ba3f52078c9d215','2023-07-28 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$u/9PYHSsqp6LDEamUGE8tp658VkDDSGSMSao6fHbVUcSxSIPg5LKw','user','ak_520d6b952f35b500','2023-08-19 10:14:00',NULL);

