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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$ZnjHWlDQ8kyjNQ06L/Mq/4LUTANEhVAsSaal1ebfxlrZLAHrNaO2Z','admin','ak_d000c29248720c7c','2023-01-18 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$ne5uy7XJlZq7IuegoDW2we00QSim8xUCwb3pe9d7vahWe/QGln54I','user','ak_f669a36bf3d6fa90','2023-10-20 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$mwlHDJC9R72Dli7rcFqEMNvOmxel8GePUCdxyhS5K.GmYI9FoOOBe','user','ak_c172d64624dc6c4e','2023-04-14 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$fXuitHL7Q5uwgVLOrdZ687Mb2TsEWYvdf25HBISWtQYdWOc74gqEq','user','ak_a3621bf8fcddfcf5','2023-05-01 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$BpC0BdnyIp947XTNMnay9U3zVydJaXyRgJWMsOawlrSL8rOdKn3c.','admin','ak_acfd12cc44929eb1','2023-03-18 10:14: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=1965;

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


