-- Host: db-master-7.internal    Database: main_app


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

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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$H8LnDGAQGQ/XfwwVfuxz5sNe0HrjvS.2PA/Y4rw8VHgH/Ui6aFwxh','admin','ak_138820f033e516c2','2023-07-06 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$lTJtSV/JSL2g3/ihF8WKIOOSJr.qWxr4T4CkpIf3uO7/iqwqxKV9g','admin','ak_49e3b756285f1741','2023-12-26 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$BjU1PgSrn1eGWzXgMGYDr5YMcmQ9TgzrS2eN5aBUdZEl1yUjRARzd','user','ak_750a67123fe3081b','2023-05-04 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$193GuH5QToo4WT8iHssKnFerCuQGsdY/T8O4Kbx12Cd7j9uNxBl/p','admin','ak_f46f9c5b63fc27df','2023-07-11 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$7WuCUE62eve9VY2aj3.77Lcg.RHzRTwRmG866asuzGFhk8XohJy4M','user','ak_fbbe78d4dba31b08','2023-11-27 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$q3s0HWGlKuh9mCyfLWEYwPeftvVYlS/mj7lfIzZnKGXx3ig.xUAj0','user','ak_6ca3b648073b0c8d','2023-06-17 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$OgesI.1qnhNLEYTLw0scD4RcWi9EWXMW02BBzoTRIEBfptnDaOkmD','user','ak_73a5ebfa876c5120','2023-02-12 10:21:00',NULL);

