-- Host: db-master-1.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=40726;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$o/zptGzkSLBjwURsb.sh.UBFkjkL4KWNzmuwi/lT6aupx.xTFbWrX','user','ak_f1218f913721e31f','2023-12-21 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$d6Ozpg8qjF7kBfXW65LehljpTLhEPfujurgt.kp4B7uh.geoZojE3','user','ak_55b073ae979efd01','2023-10-24 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$eWnUmc6khJI6r.kiQ3qdekTAvNYo7QvCo.Iq1XNCnU5n6EGOUv0hy','user','ak_74968c4633d1fb34','2023-02-03 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$VgB7wY9AYdcaZr/9VpLzTzs3m/1NG9Uxp5/MpcTpLVb49TxHGmQaa','user','ak_8bec6fc9d16cba74','2023-07-18 10:13: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=3213;

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


