-- Host: db-master-2.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$omF6HTnDu.og3b7ZpM7WA8922AABziya3/xTN05/JlX3FuKi2YngZ','user','ak_1e79cc08d513b312','2023-01-21 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$Z.mlzY1LnSzPfpX.dGp2nsxMgfmm6kJNcbJKKstTgPF45qbcC9yU/','user','ak_272f434bcca71d24','2023-12-02 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$W8qS9Bjk2kPAWunXCPWtG/kUQTK60Irgku57LfqBFtMCgT1Hk63O5','user','ak_e0d3f480f31846dc','2023-10-23 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$FS.QKanAFR/zgzOusUl9mxGQMomn0AxHYzj3bOGA9S3LDF5XL/9wH','user','ak_2b9ae31c5eb63834','2023-03-05 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$6xWqzxY5VutI0DXgqN2XsJJphn/OfLWuWRyUf.Hk2Jt5geBhMcJ/u','admin','ak_c0b8d431923aede9','2023-11-09 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$WJ9RtPYK46f684v5PnQGmsKcK6x9.VxmgnyHDxsIgPCyRXrZ1hPb8','admin','ak_4832a4d322727fe5','2023-05-13 10:05:00',NULL);

