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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$ICmTgRsboi44oebV1xPITzRmBAotfifH0w.B2ycyT.RQBUf7vZxuM','user','ak_6804386f5473a5db','2023-02-22 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$g81uAevYSuDtruVRzraSLvymzmeKrehsvU8m5Vm1LdG0QOKQSaAsG','user','ak_2baedd1b44e25e72','2023-10-21 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$aYVwPSVn6G7ktP5yftagqvIlG3V6XzcbRwtp5p2zuq6.eO1BNxnDw','user','ak_1e3627df6c42a4f7','2023-06-26 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$dakVNyhm7z8BFaA/1Bopt8.0p3n2haxvs4hSPo8eL/x/uWtxm3rne','user','ak_332c636fc794d065','2023-01-02 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$oj3PxDQ5wf80vX1gda1AnF52/iPIRLDm2Vh1R28DEnj3AyfT.55EZ','admin','ak_63b745ef054931c4','2023-08-07 10:19:00',NULL);

