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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$1/oN9l.C/ayDHyDoC2aE1NPTP/ImOctlTLJUzKJIAlwb49MQKsYJY','user','ak_5a9ef8ebf960fa89','2023-03-24 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$z6tAnVEpZ8D0meMnA6oVDRBUAp/5tV00ADKUQ55/GavePTMNiSrBg','user','ak_acb5f359d8cc0a1d','2023-08-09 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$dOZ2ofyzRWbcwk/Bc5vn.ZqjwZyfKtvmldjsAphk26uwuJSfdS6ZA','user','ak_d6f97e330dce2fe0','2023-11-17 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$wxnsFMBoENT4x294CY/vQ4Rth0n5qQXNiL2BMlEZXXV5QFqd3SVsO','user','ak_86f634132be13305','2023-01-14 10:15: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=7863;

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


