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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$oAOoy0vSdRfNERs8GAr2fMeuY0yVm95i0Fss0lXBOndgWJyInBCgL','user','ak_e67f47ec07c85a1a','2023-05-11 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$y8AP9Hker0WR9aTtEvU4SUOI/Ed7NS7aTh8ikGIrH3G/bm7XlvwkY','user','ak_dc9ac73e65bc021e','2023-10-11 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$jRuC4slny2y661cZ5ruPkxYsecHhTsHAg5ZhyC9PUDaaBTHXQrPv1','user','ak_99c1299b33840029','2023-01-13 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$YEjBYnZMWCy.GSfCPsYIqC7V.8NKs5h2WUj6kqB9zu66rGjKJREaj','user','ak_58b80b0a0a7595f7','2023-03-06 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$gSdc9jK5XSPUTVqIpkV0qYUWgorDuJAP8GjDkA9w7TzKCd/cyGzNg','user','ak_531b18c132add97b','2023-03-26 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$hm45g2YxpN3l51lbOA/WVHEH14uwBtAFDaXKr.uUKwJnVy9cfTWHy','admin','ak_e0d7d55fc500683b','2023-06-14 10:21:00',NULL);

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

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

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


