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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$2LNGC5VgqUhRoKgfsgpAX5ilLqDDRd2g1ZoGflyudIhTueDu23NNo','user','ak_9427ddd54b4de6ed','2023-10-08 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$f95VgMRXjEa2mAfwr/DvqQEfYK.qb7dz5ziBcR9gwvJTJV0K2b.Mc','admin','ak_ab789f9b3917910d','2023-03-25 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$.T76/4bzcwvYaXRlVPso8kZTQxlCeQJWz5LLeJ1GGDDVklxST/94b','admin','ak_65bf7c0fc6316568','2023-07-24 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$buYyd0bG1rrE6QcpZtyFrKiyYCs/zLMth4RVF664/lrKaEyzdvOEJ','admin','ak_aa2cefb11a51b128','2023-03-24 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$0mbMhuH1p0KMxx6RNjNu3z8nHdOumJ/ZUJzLzUMoOgxWylQ39Cs15','admin','ak_b466947e5a25b785','2023-06-25 10:07: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=40561;

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


