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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$ewFU5ZLLVvWOToP8B902Uph65qJZx9XaueBRrVRamO/yTt.IroyGe','admin','ak_041937bb00fe5745','2023-10-26 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$NvGZdXRTdatVNxoMB/cOwb0.LJ1BoTmpFWzg6WevmFfePglvnQgq0','admin','ak_d82761c6fedf3736','2023-08-03 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$eoervc80scWp2bB7GUQrkltJ.MfSKsN.GvkgqcPEiPHRBA0vXF9Zx','admin','ak_9da886c8dc830f9e','2023-06-07 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$aILXTkphXf2yQuCK7bQXOUvNrDMy5jw.L0BqOEJLRTeTuKjzpo4jC','user','ak_82dc1b036d07cd75','2023-10-11 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$76JF1TCv8pseUBvUGNJds98NtK5TUpJ6EQD45i3NgfAluDGSSuYmJ','admin','ak_30bdd748b2afd1e9','2023-12-05 10:15: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=4237;

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

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


