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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$zLQAebMGrOisl923iFc9UcX93tbHMmAkEVhunmSMQFUHcZU.HYRHE','admin','ak_ed2c2326c2a22622','2023-03-17 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$mdXmFjNcJwFVHrEBUdxkb6tEBnjuYNgE7zFP9qU1kQdmTmrxPooVP','user','ak_1fff5be15185873a','2023-02-26 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$1SeJCvIGbmu4Cy/G2iv6M5QkZtfDGU563eC42EA80hvw4S887WQy5','admin','ak_97b1d5e66ef89912','2023-09-08 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$yfJfAPQpWbC.lIb1dZzqHdza9qvrKO/0nQDCFd2jn4cDzlpG2tW.U','user','ak_c4a2214fdfc7b324','2023-03-02 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$NSixy9y39RgfNOsx6SsBy8u.hR5enJmg5qCW7NOJ7YOyCcz66mau9','user','ak_96c0759f89d54c48','2023-07-04 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$MRJBx3MJmmp2Fls8qI2Oe5TjDaOOsgrKgaigGdHENCvODG1vTQ2ec','user','ak_dba10f6e712f4c3e','2023-02-10 10:15: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=19514;

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


