-- Host: db-master-1.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=17070;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$vGM1w5bAd8T.VrDXCBGfmVkKlSc5a2Fku0DF3yTRZ2FZsinn6C9.E','user','ak_c89f2bbeba9c5358','2023-11-01 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$Tajud903iX9JZrk5qceN2oqqDi/lM.f4dq..BrS6/kaO4E34JoN7N','admin','ak_2c1dd7b823b3844a','2023-06-18 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$CVTSKTtJjZ4Pw0eOfeySI91OP8TUaArosct9bIhlibSK3IcU.JG/W','user','ak_54a7906f41d48de3','2023-09-25 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$5BpKoE1mS0A35/SYqplMBAWI4YWEA3/ethoRxQz.H7TcZ40BhZHjF','user','ak_92c1a51ebb5c02fb','2023-06-27 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$/NO.yQ.OhzaqZYU7hOzJ3FtckV6JTLldtcW7FGUKORJny7qpmEZTS','user','ak_e1c7f0d9c23f462b','2023-11-10 10:19:00',NULL);

