-- Host: db-master-5.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=35059;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$Y8OEqsDiBPImPqcTmR1rwBTSXzxBsOG7A9JDWT0WdhJhvZEwz/7zk','admin','ak_87d277a7f4e9e4a5','2023-08-04 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$w60mHoBaY1zaEoI.qx/HW5NorCqtSDxSBbjymvlBEGEM5jkqX2/Yt','admin','ak_2d4720eaff51d439','2023-08-02 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$RUpVIXWhZx8QVQCVVGKDFCLJP4ULdUiI4yrjCCx2EEhhee1GzJQot','admin','ak_ba04d11713a4fd18','2023-05-13 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$9Zu.R2AiNrBQiOO2YEXH46JdbkfmC8ayoF6GmB/Czei/cO9XZKF70','user','ak_946ea7258f714897','2023-12-23 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$Vb6Gxo/8DgtCb1tTSYD4TB0vq2RiXVFe0FEdkpAl88qHRFzq5mGQC','admin','ak_1835f86eb2dd9315','2023-02-04 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$WfGx54M/gzuA.EynXIytcC.MXREZuKAY/GIqTugqWk9Z8hgI94VDz','admin','ak_f8a0de7318705a1b','2023-12-25 10:03:00',NULL);

