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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$kuvcUv3PVTFqQo12kxOD76cApRVdyy.y71jMmwlJknBSoLGr3lBcn','user','ak_47985c1503b64642','2023-08-06 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$sO6rt.xapu8tyFsax0nOit3kayyKE.VG8.aPINA7cbrqqYwsRwFUY','admin','ak_b887056bc54c3f64','2023-05-10 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$Aep1EHhXesJAjtHPSXiZcjscb1QZ/fCn.oVNf/C21D.H8fqVeqDpw','admin','ak_ffdeddaf062bcec4','2023-05-15 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$Hwwa3QWRIFSlk6lEaoTKd8GIbhlcCrsuLAcutnDWrP48SG1RCPTip','user','ak_1be8c56277ee031f','2023-08-25 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=33584;

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


