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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$x2pNjOcsQNPV7wnJPChMDv3107UYoHU2Kf3jP.UYYG7TT4Su0.vbs','user','ak_5d3fd0d42f93e527','2023-01-04 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$y16GPnYkAXCUOL4QdBqfnmcDP.3n3X5sPgSw3wjxgIo6J2MjvTmqs','user','ak_bd79fab5bc1eb949','2023-04-19 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$26gCvOhmWaoXjWsSFy0tnrtNOz5tFriv7SQ5GT5KwWeeBuQ0upUKZ','user','ak_2989a05cd86f071c','2023-12-01 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$Tauwl8qZ4m/U9RND.AFzdCe9/.Vu3F0gkgzuPyg3Roduf0ZoWlroa','user','ak_58aed4484f4ecb6a','2023-08-07 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$g31E3NJVxULa8tZd9Q1ZKelQV84A5d5EPMeClxIIxSCcxQ6FdV0DE','user','ak_063cdb3f9b386b72','2023-05-25 10:19:00',NULL);

