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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$IEulgl1FB/b9TJF5jS.O/yu4oCJj.NYCFMeLrsNtRtqjf/NgS57dF','user','ak_df3a9c57c4429cd5','2023-07-09 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$BXcPq204zJ3VIP004bI3xY83G78kCPcZGRq3QPJbIXPRpwVhJ3/q/','user','ak_b3c6db8c508a6696','2023-07-27 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$GpK.lsirb13ClJOmsvb4AjjbrFcEYrhT6DnOT0LL10dOF1aMPi8RP','admin','ak_d5d402cee95a3252','2023-09-04 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$EBq694SoEyUU7Sl7BFvxkykU2G0sGeywG.6dcqo6d0ucA3A39OpEZ','user','ak_595b6f38ec8def13','2023-06-27 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$zJ01GsOUZA66HyBJpWblycRgWaD9RCE9SpBy8lwhUQHySejdPBfSQ','admin','ak_c8f155fee176ecb5','2023-02-13 10:12:00',NULL);

