-- Host: db-master-4.internal    Database: webapp_db


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$fT6dFRqSPxeNtjdRmtPz2Pjsi/Gw3PXjh6zrsEGyt/nY60Ab1k02d','admin','ak_eff4134e97a0265b','2023-07-17 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$1yDyMgkHEhrhc8gqPiLoNd/iumFzZkQWM2uBxitzqFo3.dvV5u.Oi','admin','ak_1cb6a5306c8702cc','2023-03-11 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$9PnOMyxBlUrBBaz7SC6qF8kXSYZhsA61hMTN0eKIsumUPhKpSt2Ny','admin','ak_0cfb0785cba13da7','2023-01-12 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$nwLCndU7aB9eTrlBceG9QDu7jlH11I.rNnPdr7sBFBa4Xvmo0bCsu','admin','ak_2fa0aa28b45d47b9','2023-02-19 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$seZ.0m6eQQbjYm2s8IEeszR9shqTQwkxJZHSRd9x7V1UKyaXSJXg7','user','ak_ccb7606b9fef333a','2023-02-22 10:16:00',NULL);

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

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


