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

--
-- Dumping data for table `orders`
--


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=1512;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$.E1e.pmj8R/1ubsOtfnJj6l3uJ/0QPLJFTfIIHnYezCYwK6WMwQNU','admin','ak_7e0f46fcfea6337e','2023-02-26 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$l3p6NLuZ0UFAUl5f2/RgXuGq4WuLgH4pKE6DR./V7KwO53CZIWSU2','user','ak_162e5ee44210f020','2023-02-28 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$J.xBYMR8HAVuYwPmS7QaaSiQRjJqYvr5gUTnsVSiNAgWMFqfRtprg','user','ak_6f7463606b7fc42e','2023-11-01 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$a8eN2RoFgAb.682s18iCK0vtV6J7GXlk8B5oBYAPylL6j/VN7mknH','user','ak_8d5b5ea430eca59d','2023-03-15 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$fDFyTN9aQ4zjvbneTixcXY6mzNChGbivOjUZ3W5NzZFDtjUMd9RKd','user','ak_9fd5014642b663e2','2023-09-19 10:02:00',NULL);

