-- Host: db-master-0.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=31049;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$AqZbeRGpok0htKhzBIBDRqRYxxtbFsDHZut0DxWQwWqsnXn.y2uQU','admin','ak_b2b32fda04c175ef','2023-09-08 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$BKayxWQdqozFqtLR/KogetfXKoUCUzRAPid7KKvUCwHJ2uFQE8Xbv','user','ak_d50b1ddf19910e5b','2023-11-10 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$Sx/wby4FIMwgzUuw9ytH90Y1w9UQ7DWucbMl5MdQQn.NqAq9aQRn6','user','ak_874aae7fe4d1f4cb','2023-12-28 10:21:00',NULL);

