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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$G9Jk0zEN4ZmE0CHd8nryDILLzfg0agt5IqNdcd2c2TSfN5SjoA9.b','admin','ak_489aa9c5e59d68f6','2023-07-11 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$/WQPIiF2St6A7mFZAWQXI9ZSBUCcpxksf7Veo8w71SdnYd9l4DprR','user','ak_5f01a1e15a96958d','2023-09-18 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$Li7qgr/sS4ttQXPkozjzqHFfqhyc2a2G7wBZrbKUCE4inWw5IQTvM','user','ak_d075ce9dd463cf44','2023-09-11 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$HMsdQXIkLVMrOgmsMtMxLaA2F2/pVyXbvHRcnephl0VTSuFMyOWuh','admin','ak_071f3f9d43ab236c','2023-09-16 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$V6a7QCSucGq7FxL3j1NeNdheRg5Dhjt.2iLGtUYwG1ezGBb1wRFVV','admin','ak_adab94df5906bd8a','2023-03-04 10:01: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=17496;

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

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


