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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$TgsA3jqRJOM8a1uF0d/oOMCtDdUiviTO5eG01S.IhadcckUgkkfot','user','ak_95991c0497ebc1ba','2023-04-09 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$YJU/zFeRuOp8ggr8zRpNIEM3LIsSsbApJs/Lb7edbEbA2vNmxGwqF','user','ak_1419593748a828f8','2023-09-03 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$4WUj/fWSclFEQ7vdUrO14Zp9Mv0UkIQIy.PYg3IVKgH8u8n3JtMvl','user','ak_72b7f0b955717ea2','2023-04-21 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$nSXglkRdRkDPjv6BvcVLTNLN5LdEm4OSVkE1260hUoJ4037TdLNsM','user','ak_5c303135a51d879b','2023-03-13 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$rXauqK2F2s0ycSgT974B.XxC.woKoti1FtXSqAOLMDFMFs6.ZXHyk','user','ak_efed07effd64bf86','2023-12-16 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$fFBy8D3JFMOJTcWl5oR393Mb5i/rQ3FdFMLAYNFBMgbyNvMB//j.f','admin','ak_a4f5d3ace098f442','2023-11-26 10:11: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=28698;

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


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

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


