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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$1glt/8UBW8sjZdC2IWPzA6WMUF0d7Htl6uvYTmQ9xKXrfpIsDVxJa','user','ak_4c3084123cc665e8','2023-07-03 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$mPf4G9aFrbfUj9sArsNzyUFPDNSg7BV6YwaVFyDWxyyncIz8Fidat','admin','ak_464f29359fbeef35','2023-02-18 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$3VV1vPmO3QiiNDO0WK8zc3pg4.mxnz/uTkgR6ZCwPNsk0n3s0Wqca','user','ak_ac535a5fb841c615','2023-06-19 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$IC6n6ltSqPSQFl.8ICAaWhTVNFYbHTq3eJXOYoKBF/lOmI1kcjTUM','user','ak_c9cb3a1ed6d469a4','2023-07-03 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$RkKNI3ydlEVitSrGbN4CV6qJsykA03xdsSPVKrXZeLDHbtq/yk.bC','user','ak_b04a26b25a243ec6','2023-09-12 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$ux/czJ2W9H/zm1xuutkOph4pvr5JbEnZCG7.pcsc3uEn9RHDzpJpF','user','ak_b9f5871513d5a52f','2023-08-18 10:16: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=10321;

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


