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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$A.CzabMn4/TTq8x9UHk1om7G5sagxaN.yGDkA8utIokXN9xKBLjbC','user','ak_3c394d09b91e9b3f','2023-02-18 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$a8dCD8u9gmAk.EDUxqKDpFED3bGHpXCIT71Piew27GUjsLqlVRk..','user','ak_706143522ae11819','2023-02-10 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$38TewtFyI8N6ywRCZobBiTXBZgPh4t2KpPu9aDPZhMSaerIYabVNr','user','ak_015ab4070e22e84a','2023-12-10 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$18PmMu51vLqhz.9odGcBYU/Js2BK6J2CZ.0mAhZswEMGIdBRZap.L','user','ak_26ab71fe248f3237','2023-05-12 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$BXAlua/NzSHbsL.0E3.p2BDzqYWxz2UhXgYpSTpNyX.Gkx90.rI3d','user','ak_fa0d51f656f2beb1','2023-09-10 10:23: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=12814;

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

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


