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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$dlpnKwX21t.Prd8nDtUzZQuDV6C5DbKjHm3Jjdsy6DEq4kqtmIefz','admin','ak_fa1062e4d0550892','2023-09-27 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$/zmknztsKj0rHSNyaMpftufZLUFHAFNQKyBNdxRyCb7FmMqb0yCpr','user','ak_3da5e55310ca92f7','2023-10-27 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$qjw3wJ4eNUTJtXU6Xa1Z3A8zBN7sCvvkyW9Y5nyo.qowyIbtHEjfD','user','ak_9e26a30941577530','2023-04-02 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$vtn24muePVNESa5fBlAUtzay8Kfc0w/wu.iDDuEMd9Z8HsTr/DQwB','user','ak_2e4a6a758fef4c33','2023-09-07 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$K1r0tLKgdCP8ZgC66d51OSkueWIc.5fzXkbekLg94or8SJznXQfYs','admin','ak_3e682eb885658340','2023-10-28 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$kY8XNypeNH5F6ykGCFtOoMcQsD47vqX1i9d8Fp373frL9ufiPe0tb','user','ak_733474cc59522118','2023-02-22 10:13:00',NULL);

