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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$vNdBxgdUBdwTgL.hX4VP71ylJg3RsQ6rCzoN2AH2jbn7v/0HTmr7H','user','ak_7ca92ed2b9955ec1','2023-10-13 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$mVxKCnJceYVar1OvB/EwSkxw184.N5lje1VU3K6dFLVlHsftBi0Wa','user','ak_3e0fe8f56289abfc','2023-06-25 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$TyGIfmCpH52n2sgMtP6tJUsb/Ws4zOWYteSJMK.1ryyMVt9PBS61N','admin','ak_291d6eca2bfee2fe','2023-11-02 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$amKeqraka2WS7fq7QeKCLeMm7JetA97OlPyOJ/4ZlpxXqCIvZB4ez','admin','ak_b05b01d469909733','2023-01-11 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$Bh49X9Df3NjrOULYbI7XZBoo52W9ZE5.WJJPj27yvxzayt5eB9pHS','admin','ak_e0e16c616862176e','2023-10-15 10:11:00',NULL);

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

--
-- Dumping data for table `payments`
--


