-- Host: db-master-2.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=5188;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$cNXr8mk5DjeBVBgU4zmUFXFUbsfaIab371r2zWsf8w1SufUhjI.Up','admin','ak_e8eaa71873f14c8c','2023-11-10 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$xMvjkYnZnXf8BTloAmN/azsoYysUkIxQ9aMUUzuLuBmO/X5y6ZSR.','user','ak_3ade274c28922c58','2023-07-17 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$y3hP7qwB9sbRfGdb4QBmuulFr6u52AfXwpqMgU1ieh4k55LVAsth.','user','ak_7e625188b302852f','2023-03-15 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$PaU1fx2r0.3JOZB5mwejYpWLwfHpqoyL3oVupNVIrpKGYCTdi6gHY','user','ak_7c40dc44c6b57511','2023-03-20 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$TiP7zMikyru25fsoIvHZEx.LElox1Cx.Eby55nJdIKMfcw8McM4ZZ','user','ak_3f6cb99d39a4d725','2023-05-02 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$dXgM7L3wkYBJkpnkZB1DmM3wFxMU/8PUcql.7i/3lhRDwftVc6ZCn','user','ak_e2c759d3c1697e12','2023-01-05 10:00: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=16871;

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

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


