-- Host: db-master-9.internal    Database: customers


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$Vacsc4.egzVl6UbeIt25JzJQlqEinc11ltzYPsKO7hS/bPLtBVoKM','admin','ak_244a7a20afd51467','2023-08-20 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$5SjX9iht3etW.4gVaUerGrClwD6FiZ/PQSPaQp3up7qGfxSs/VeMN','admin','ak_eb1d166f6023f0ac','2023-01-16 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$wJj8dxD0RC5Zjo/laiWo1XX5Xsi4aO3/6xfvevMwevKb4uru9iLu/','user','ak_42090fb2a2938739','2023-11-06 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$zPQRZGnCKV41uZCrvlJaFFrNn3IK8kIrC2WLpqej2P20lpNCtAlAQ','admin','ak_400db3f4c59bf6f2','2023-12-24 10:08:00',NULL);

