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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$HELfobcHG.b77isX4L1kydNyuJchSbSGdZ7BbsDYEqWs5d.mfEJwR','user','ak_9308fa8ef943074d','2023-01-17 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$FUTxke7SRhnE1SZSw6Vu4a8jBBbxHQ.6IcvLGAkpznv0QqULs84Jw','user','ak_7cebf90b4d42eaca','2023-03-17 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$tt7sUSARFOgXeLqKObq5UpMIuXcgVS6qOxqrz1hJUN10Ot8b3tSG0','user','ak_d55f597e5c3f8c36','2023-12-05 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$xoT0eqBDd8ynHW2Tw6MCEBE6NXiuAvkolR5xg9Ms80hAP8iN/l5l1','user','ak_1361566e8427db7a','2023-08-17 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$yL0N7CWCMGH1Gigj.Gv/AvWe5a3cFO37D/hmajDFezMnVnADRiItD','user','ak_fc65e98e749c998f','2023-11-12 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$6VHarmh24YXQtd1GWIT9A2nYxIlDbhkggvFWSGYVWdM56jcY/yiTz','user','ak_2a538d39eb85be51','2023-03-09 10:16:00',NULL);

