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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$ZE6.iL6RdVDttmRaOkRAQNwHnz59qY8RSX2hF498vVu2mGnBlYqpm','user','ak_0af15185f643bf40','2023-05-03 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$o30rMeqwa0nHqw6e2wIBWGHYM5IGkq2mqujJ2cxVOTIXkxkS1CUgd','user','ak_81b5ff321511aabf','2023-01-02 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$KvR5mTubEVjWoNeZlYUPcNZeYFEDMHr4ALt.6MQPiWk48XDCbqUX5','user','ak_c7e8bf8c8d016c12','2023-06-11 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$q9VOt8gmDpEamFgTcFojU8z3t/xkI/s08Y4vpknWvaTEaV2NrjXyR','admin','ak_d8f2ecfaac65fd87','2023-04-28 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$arfBOx5zyK1jQs6FEzGL.4F1/zbARvhZFcv7H4zPIjCb5D3OeaLnA','admin','ak_3dda46e0675a9a91','2023-02-18 10:10:00',NULL);

