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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=32173;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$PvnaumyGwRlsyXGNqM1z9rP0V3OBCbcd.d7AacnG.ysu.mNfiDOiK','user','ak_49c21ef39489b43a','2023-01-21 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$RqWXKInk1IjC53KkCSPvJ3w4L/raU84ZEqvoDPFljg0ZrvFU7L5l8','admin','ak_e43962e937d57e6c','2023-02-25 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$SAgGTCrz5wKzM3SzUXldxRPlAkFYP.yyPejYQVn4sJT7.SJYtzSdL','user','ak_dac090dca9eb8a7a','2023-06-28 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$eP.QeUIUB8Hw4H1oodeB6FB3rCQ/wMKpgeetrgxtp2nwj.6YQysOG','user','ak_02ddbfc9a9d40b7a','2023-01-28 10:17:00',NULL);

