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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$8e25ibLhZkOUo/jxgamclzFFXsZFZTQ7kVuX8qdx.NyrVoBdbx861','admin','ak_9225374d246058df','2023-07-09 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$90OSX.CMCog9tKNs/yvDmLp0EmXy3oxJ7DhFgw/dDy4NwRMNmBrs2','admin','ak_e28636d9d73c8c9e','2023-12-14 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$HU926BvcyuIXX89nV2aeYuzfxV5AgEAxJ8GKcxoH3AN1Ekm5zSqxx','user','ak_6b01a0c27c31df5c','2023-04-06 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$lTD6cJAdgQ3hmmNSXG/7jbcU3tFTvMD0WiEeaHAaqBkdVzjaWD3Ev','user','ak_0d4ee36bc78d568f','2023-02-07 10:16:00',NULL);

