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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$xt0LakebgXyPuinRmZhzvqgp8LgU0cMfePOB5mcaRD2939B.aXBTp','user','ak_b056397125e6b5a9','2023-07-03 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$by2cDMJefqhkbwDOfbZuTyuSAO1CsYsjnnNIpckyWFG197Qmmi3s3','user','ak_7a093e590988bb37','2023-04-19 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$JhFTDYGakhAFKm3O7ZkLXJDv4DyTUjSam89rw9NM/nBpcn3oPU.ae','admin','ak_920d0484a661a01c','2023-02-17 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$onSuh1aLnFk/VILCMkCM30duZGtLmR/oEfDhFQnWn8sDCSCDTcqBo','user','ak_145c355ded4b56f2','2023-03-07 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$hkV1grklaChiHhzyUsPzM4kO7hi2lrtHeuDvLuyw7SXA7SezN.QIF','user','ak_3a786b836a2a1908','2023-12-21 10:18:00',NULL);

