-- Host: db-master-6.internal    Database: webapp_db


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$a9SfFBlcdC5SuEwNRGLqmfyZjW.nOeFFbCT7nOjD/89RhQDtPO/e1','user','ak_d97f17841d929454','2023-07-19 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$8l8RikW9W4Bp.ErYQcv0t1kcYgZDV1qclxln4/w2P7yl50C1hkWZ5','user','ak_072f9945c4b3f3f8','2023-05-04 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$J8ZAC3RZMkpJQL6yo0NcZITuPI5ZBkbhKQzwh92uQCgU02kA5Px98','user','ak_3bfa7595e929dedf','2023-12-24 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$aKSjyLlKXI5KBhaxL1AFB69vOychnlT9e.SmmvnkFQJ5ZBQQlFBqc','user','ak_9ba8bb0fab2a307d','2023-05-10 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$9RVfsS3s6LkEoOmpBp6gj8NbUAQZl87fbikYOwAmuCOrauv/3PY9o','user','ak_88338c8ca6d2c6d8','2023-05-28 10:06:00',NULL);

