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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$9N.s4a9IhrGPxFgCgP9Z1QLf02ECB3JWJ1pNxkEhjaxNF96ovWVCq','admin','ak_694e08bdb5a5e5a9','2023-11-10 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$CzpbyVHCJ6mVtd05DnaHOD4HfzDSTsMQZn80NAFnI406SviiRwvLv','user','ak_e51351de32bb85e6','2023-12-18 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$vv1kSgFEAtmLKgaOJHhIEFZwwtViWz7kXkiaHvu4PZ3oYhyjf5zTm','admin','ak_3ce5c0c435b9fc8e','2023-07-22 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$s.zCOk.pdxQh2T6eaewAoJvpN7bL4wn5zDX.SoJ/ZqJkZ5g0F3zI0','user','ak_24c76dd72a2649ac','2023-07-01 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$jpn3.gAugzagq.QBOUEp7Gl.enpxVMtr3.iz.6rzrW.jaGiNpBzv.','user','ak_41e0751f2f48ee70','2023-09-20 10:13: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=23492;

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


