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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$KfLQceUPs5ttoOcEMVOMcKfF5gXi7DwV16u5P0iuumJpGqQMZ1Vay','user','ak_324f48608f5bd7fe','2023-07-12 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$PFMEtWLCGhOQyND.r4jUi9reeukWLEDZWT73Jmn30fPsLjGFhJAPT','user','ak_070af3c87a8c7c25','2023-04-16 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$o0Fw7D86Y66pXuzRHC.kgPZFHPNp2hWRnldjnmCbzBiEjKcu2SK46','user','ak_95d90c53aa4edcda','2023-03-07 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$iK8pvJV1mdBy.rSSBGK..lUdC3W5e02embn5I1ALH4siaOE3JB8BT','user','ak_dc5c37d6863d7075','2023-01-01 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$NwZweu841RoyNWMrgdI/udi2OAN.STHVMBVvJ7B4fKIqeQq1htrHv','admin','ak_41304346e38026f2','2023-09-20 10:04:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=49510;

--
-- Dumping data for table `orders`
--


