-- Host: db-master-2.internal    Database: customers


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

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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$Q6bOM5f1k1EURD2f3IycLZLO1x0Cvd6g8nLGSBnUtJgcQWw8t3gjs','admin','ak_d78566c0c0fc71c8','2023-04-22 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$3c2o2EIEH8bPOM1sh5cZ2.F.8Ca6351kbxnVPiITKh99qdd3sIrSv','user','ak_0df42b8efa2c6028','2023-06-15 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$wtPzLyVk4d4pk71rSDCDtUgLs2S3KH26C5KsCnffOVlPFC9ANXwFm','admin','ak_9fe6d98ccbd64c6d','2023-09-08 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$Ja91N3x9.HkXkxCHn7P/1w7NTMCtGyH4lHSLlgQ08UIjcprSPw3pE','user','ak_0f04a96c4edfc12a','2023-05-07 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$nsF3ZAVMzGmbBjpb7CCIHgRDfyXDxgptB4TlZMojvtBfk3hAjgwhj','user','ak_7fc3be36a37d9759','2023-06-24 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$3cr91rGFiH2pjskO3i3qp6diBOwRrsq2TB3HT55Rr1AqKyhDfryzJ','admin','ak_5fef9bfca627f79b','2023-04-24 10:22:00',NULL);

