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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$IJOE8dYU4EXyok3LucO9HamVAmdvVETlwgYEAgE1hH1DWiQcqhxW.','admin','ak_777a5711b2a6f236','2023-07-08 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$YSAXiY4LfepLTFextuQoAZjc/ejpMd1Y6i0ENhsn2V.lgvNprNq51','admin','ak_9c8df1e320586102','2023-10-17 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$8VCfnMbWKG3GmeQ1T581NS8i.4OmisybR9fMmXx8bq.OsMGyBh/XD','user','ak_3cb2594e2c49bf1e','2023-10-26 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$CLGEHTRPuBY8BpUPu8qvA11VEZP8FxblQUCj1deBwsjT/4l66WXhu','user','ak_e51dec6ea81a4136','2023-01-17 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$yFXgk8GEo.rP3/S6lJPb20EfipZ9e8yLEcpuTGq2ZNSB0rdLwjxc/','admin','ak_ca3da346d59e38f9','2023-07-15 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$HJKuQAgo1FvbJTsPQ9vdrqRDaSycfkDSBLf2rCQSWp59J/aNmNN5N','admin','ak_1d9b072a5fdac0b2','2023-12-07 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=48454;

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


