-- Host: db-master-2.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=27807;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$cd49ZI6HXEzQrnmppRvw4b2sIMpU9GAH2P/rm5MojvCAcrkVPECX/','user','ak_faeae8eef08f3daf','2023-12-10 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$RpnPHnCBkR0D/eHWbqbENEUNDeMbDL5LRGTlcCJuT9MCV7T6Us.UJ','user','ak_965af06e2ea9b419','2023-10-28 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$nrQjMThv2H57bxdhzdeK0ptW3L4ObYRLFpnKCsyXMeoQWpDP/eaJZ','admin','ak_0ceedf96f475fb0b','2023-12-26 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$D5pKr3vcjOS5GbEdca2zEwEbWUofD0jeYFVgBykRUI1neow/ksLDL','admin','ak_d54ed6a254dcc569','2023-10-14 10:17:00',NULL);

