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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$4v8psfTViLZnjofjRCc3XkG7E4DvNtWRG32Pij/xPWexnLQbNd/A6','user','ak_c1502e133b352637','2023-04-09 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$PSrPJYh4LopyCt6uyHomUIAsWNoVmoppZLPenlZFbny86HYCmtlcZ','admin','ak_de923bffddffe589','2023-03-22 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$EpDfLn/OLsGBosQUtypKo7qPqCY/oloInoY.OCE2o1Upw15x.Tct6','user','ak_e0418e78d005eae4','2023-06-18 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$4Kv30huPV226pUgtr4Yg8cJTly1uLDQNV806lxmikzne6gRKmtNeE','user','ak_a7e44b0bf454d1de','2023-06-06 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$3uJkaZymM5CM8XlnNAiV6aLkUJmxx.K96tDin2DSmtsfodiTTHLZq','user','ak_31a23fcb92c77c86','2023-11-20 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$x2PGqCxsq4v3FaKgSVve9Ltiu/zNhlO8f9AiA8Er3mCKUZWXfpcto','admin','ak_d56eafda764de71b','2023-06-03 10:21:00',NULL);

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

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


