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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$8BBmvW8GMikHJGnBA8dEV5JG3BkW5gVW5C9vcIu0vDm3AXv4ZsUsw','user','ak_f923ffd9eced5785','2023-03-25 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$juRjBJoQd0DO2/6WEsQKHHGXY1uRykeqSZb0cqwLs2VxtPTess9dp','user','ak_a811ba046f955747','2023-02-04 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$RWHqJJuoJ.mGV5ovZJ1N4R/blS/yw49NMVkVdXTUAFSl8pQNoWP6s','user','ak_04b282d845378b7f','2023-06-06 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$Hi/qIKKq.4ODp9lNPVzhPd.5XXpgfXiOmIhtuKYCJsbMYGZtn0We7','user','ak_8a59673765424cb7','2023-05-22 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$TYggkUCKCM0EQSfkitsB48LHJziHgDL0JMvz8kh4ciWUBRVQfES4I','user','ak_b08859c4ce7e6726','2023-10-25 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$fh8A5ngnfOqMRk4U/JNe6Yp1o9gbDQbxGjyNiX1BCzBbDJERCyzr3','admin','ak_c4ce9c29970f896c','2023-05-25 10:12:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=45178;

--
-- Dumping data for table `audit_log`
--


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

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


