-- Host: db-master-6.internal    Database: production_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=24836;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$xkjACCOURCa1jzXkkjYF4GHa4VNLGwZrm6UF4PYYy4.Uiv7oXRV6p','admin','ak_66857e120cc92013','2023-09-01 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$aHvduIsXC91S.Znsv3jsaGII4NK1ngTUXSAq.8lRJdk1IhwT6gBMT','user','ak_acf6be8cc4702e7f','2023-04-14 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$ko1e5fi/tRyPo5QwUiG.KU6ymbc296NQnYHlMcMAfM73Dx/YrcF/j','admin','ak_ba9f9e5309e95e00','2023-05-20 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$uFnhoFnxoiRPgbXap5FA6gklbkWJomEh6LnXfNg97FxpewgH8VQoM','user','ak_5e38ad9c7a767187','2023-08-18 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$NcKvH0VpAek4EbdNIjK8iPggOFsv1xDRGfHZBmyiiuw3B4yEpI9/K','user','ak_7d8d4a452faaa4c4','2023-09-15 10:14: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=47440;

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

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


