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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$WFPGXxW0G2aYnqpgpE5VT4fh7AR45dnr8BMbBtaB8KHJdo.N39lgu','user','ak_e4152fb1cd083089','2023-04-04 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$LOYhAbG67kOE6UbFd0IBDYHwPeD9QIIcPsXXDCJjSOmBzj1Go5YU4','user','ak_1672b9ba13903a12','2023-06-22 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$07Q5dhmBbb92Gsr6eaE5uYnDm0/GG9372/6hEvdLhGj1uK0rgL0h5','admin','ak_3532ab19d94e3b5d','2023-09-12 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$pVbcBaJ1mODKq2FW/bnbEP7dcO2wLM393EGFizry435.ZTflxmkW1','admin','ak_ca9c427ef1cd015c','2023-02-04 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$3PXBKGDChmaIUC.WwIgCnLmdpeuq55L43Nq/F.afThaVCD8DwxXZU','user','ak_058dc47437ac1de7','2023-08-17 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$n7chUSV.Md2mlPB0WjHTZNjeu8G2lATIzFaLRr8E58DosnE/OMn7/','user','ak_7739c0efef91be22','2023-01-09 10:14:00',NULL);

