-- Host: db-master-9.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=17076;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$2TyPmSrfeaELCObuO00z0LTp4xw/LRmMDYGXPIP7sglNxShyz/LC7','admin','ak_ff71fdfdb23c0fdb','2023-05-09 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$1xmuEDJpaKMs5ihqoYrQMf49bMVLU14crG239WaEcjOmLpP8F9V6k','admin','ak_8e5cd701a6ada316','2023-07-16 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$FXNvyvVQH38wAMJSwGTE8PjwhsNVDRTVROnhHf6/ebgt4DZO9aXRw','user','ak_2827d8b7c5a152ab','2023-02-06 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$9VgqN45gp1hUGAKtxFZ050e91eRh/ONNSRVfotfh1R8kqZC6gfSFS','user','ak_699e25135e2676a2','2023-05-14 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$CAVHA9mo4Cq4nmqpnosjgtcGe3blwfY7CbbxyuIOmgCXJxd1asKe9','user','ak_2a3a650cce7f45e3','2023-04-18 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$U06Fuhb7kqHPvGkZ2S9V.rcyc4tiMGUim4cMZ9Q.NcBFrowHz056J','user','ak_6dfa4859f44f4941','2023-08-07 10:17:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$fA7QykQ7y3e240T1/h2KWgWgFwD6LVBPQ32ul3kTzrFZ4FExMRSut','user','ak_54feecd774f348a4','2023-07-27 10:10:00',NULL);

