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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$ND4sq9nSQ.1CNsLm4DxB288qcrjYAfzTSaAky7pS87Vgdz9BQF6ee','user','ak_dcb5dc159182dd79','2023-06-01 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$KY50awk3NCjx8ubPFeGrWXG9IYlhXlszguBXyb8lTmOV7D4OOLQHy','user','ak_3876e223060e244f','2023-10-28 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$FOVUneW0WDyWi3YPLxiEaKBfR9WXDwCiCrARgHwMBgj/8mjT7zSB9','user','ak_f4661e1a3f16a73d','2023-12-08 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$SLLyAsdtrITYIKco2nU55e2MJSiMHxqNF7FpwzidYPr9VTuJllOMg','user','ak_e87058dabc4234b1','2023-01-02 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$gAKtDhbXcfDBRY3yNQoUuoYYEzPwZJUVdV.wBtw9RN54lk4uKRHqT','user','ak_440fbb1544dcacc1','2023-03-15 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$krn8XzxRX9OXQHjxx5LWa10dYM/w10V7JppnMm7j.2bYQz6QBWx7O','user','ak_b7114920a2d47469','2023-10-15 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'admin@internal.io','$2b$12$r5g9lgU1dBHtrKoAIV.GKAxGn78RLWoXEXYP0wdl6gPUzBmR9WalF','user','ak_a4715cd6634bb20f','2023-03-08 10:22: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=41311;

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

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


