-- Host: db-master-3.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=33241;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$KjluWecSe/oCIbWtL.NzDYlZiscW5o1Qnx184DdCA4n2DOJgTvpT.','admin','ak_0c80ebdcd891309b','2023-06-17 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$VFEGWB2QzKlmU7ysAIzH.R3ws7Z.y.K5p0fqSoTewAOMnBwpNR3D4','admin','ak_e4dbb276bd3d8240','2023-08-11 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$0SNH7c7aDLimfYowGFVPG6ksnzCBEyjrmEfKGx7CYL/NSDajc2hdE','user','ak_596d79c33ade78c1','2023-03-04 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$ri0pIFj9lgoeu4QwSV.ftIOquB1VEXDePBezGamB2yVGEh0ij.reP','user','ak_2332f2b4da99930e','2023-09-02 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$bG0lknTA3r2cSJJljQYcqIEscYqgL5vB5clbCgwob.jBekQNRb.e.','admin','ak_d7cc8812390c0b12','2023-03-12 10:12:00',NULL);

