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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$PudPbaKLbWbd2OLOK18CQ4PKFDz74RZyivhSvF8sB6otI0YCba5eG','user','ak_0f6b974d524ca6c4','2023-03-07 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$zmjxh5MUW6pTy.VE6WRVg7F5gr0Wwi3p5PfIndGCkY9o17QgnRnXH','user','ak_c7ccef88cd07e1ae','2023-11-16 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$w8N1313evUwcotkaptGd.ZbSav5fOABNqjzHenLHSEEBjDIsdiSjq','user','ak_b0e508bd1e6897a9','2023-08-07 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$w3oQhbCRNfbAwEtkmSF1F/eJKUntWXX8pZMhIkVYXGyjni/.o4I70','user','ak_811466976c2d007a','2023-06-06 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$j/bo2n06T32pFhQU4Gy9r46pTQLKzctWxQX7A0lECMPBRgR.tmlDB','admin','ak_ba85e414a2997235','2023-08-28 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$LZywoi0s/mlKoEznkFiaNSf/hOjCTqQJVtuXdrgKienQmy6uZa6B0','user','ak_51eb27ce5f4fd0d3','2023-03-26 10:09:00',NULL);

