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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$SuaBNgBsgI2EJX1eL0SIQlx9PrT.iedofZXznqvKuePkbRkoSOIol','user','ak_cfb62bb767304981','2023-03-22 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$ttC1naw0ATSn1zZclU051vUBRptLRW3Fb1.t1UzHTpCkTARsmh90V','user','ak_bfee8a8c748ba032','2023-01-07 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$AXfx/K3Z6uUiXyRlEll7uFeCaIeeeck4bg56xom7O/7yGz9llCMyU','admin','ak_9bf32e238f1154ba','2023-12-25 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$FFLoorvXUxHrmeaUyKzFJ/pYUxlVMPNZ.i.gIuH9SJIpa5Xu4PbxH','user','ak_874c805f4c3c9b0d','2023-05-24 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$VD5j5ANiIN461G5UBlci6F879YU9vL4C47EbWNt9L7qPINFMlzV7y','user','ak_f62b70b23692cdb1','2023-08-24 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$qzdivI6H9NPKrRRATUFxJEqgcsmqfpA.Y5cxJ0UPP1hRWoOk7I1R6','user','ak_8e4054827a65c591','2023-10-03 10:13: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=31871;

--
-- Dumping data for table `orders`
--


