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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$4RtBjzJmuqTjdsCXq2BdRc4Ae/z0EENhZXX2VP0PS6pvP.VALMwGo','user','ak_84d719d5374631de','2023-03-23 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$JVteFD3euHL2ODazebku6LOCuq3LUtIoo3MvRXRMtVFBOajTW8axV','user','ak_9b33615ee4715176','2023-08-17 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$Q6Aif6MKd3on4oKv9ldrHs4/NcHUaQy8wXxY5gSbiIEEg8YWIomw5','admin','ak_bf50627eba082649','2023-10-15 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$f1KS1ZDZ3Eh6L4EX1w00NTVI359jV/F3qN3tAGa6VIPhz2rKNCW2X','admin','ak_7c83bc3adb5e495c','2023-07-07 10:14:00',NULL);

