-- Host: db-master-4.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=49524;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$0TrwmBSjWI7J3wtsFKBjNDOFiwf9JiRvLSlFvCfm3R0Zkdz39VW3g','user','ak_63f6eba252b8cac8','2023-06-07 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$496BpOv4dz08NLoqjEHOaPaynWIRLY079rsRgD76Uvj82Wq.MZtpT','user','ak_66149ec724479690','2023-05-14 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$tqJryYfzjSDRlNfOpseHdp8mRrn582aI7T5J2y9KT547a7Zp26kJe','user','ak_64f51ee88228f8d1','2023-03-01 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$pZN.aX5SjIgB3ktaRgWBQdN1cXH0L/m9vZrAlaT.3NxJQeTMWiDcp','user','ak_663a14b71845494b','2023-02-02 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$cnJWPKIjIAiK9R7BThU/AdRaW4QjOXlO1xe3BI2OuevzI8tO.5BXe','user','ak_d4e7ef1595c70715','2023-08-22 10:14: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=10347;

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


