-- Host: db-master-6.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=48649;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$KH5RLELyz3ISlOsx2RSiJ3gtsTfCdd606uECocfM8LRKsIaJx60DU','admin','ak_555f2ec4d2adb7af','2023-08-25 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$u6njsZP7VbIj542YESSfTokA1lM2kqKbrAaTp4xgwnvb8mOaN/Vqx','admin','ak_7fb095a875157a20','2023-06-25 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$lXuDNyFyUus5.ILvR43yeVApUj2htjWYb9ZNn/OFpf28mS.inb0qS','user','ak_801baaa541ee00b7','2023-09-04 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$BuxQFYZ/2XwevHWDtIZWF1vhmI9Pq7UdT83iD/uSf.Rcimo9/xeSW','admin','ak_880d9da23e3b1c44','2023-04-11 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$MR1733Zfc8fWdsOMCcvPV30WptKGqmZ7yKR9giR3PYqFysVAFrl4f','user','ak_b2df8d7fd64194b0','2023-04-11 10:18:00',NULL);

