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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$Is1hpiC8mflzMuWAmhqTkr0wkmXejqn10weDqzwNhIGDqXPGElYgP','admin','ak_543fd93d30158332','2023-06-26 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$wSYdMitfi0XgPQxOnXgtFjrL5ZeIPnSL5cl2ZFsIvf7.EkS5ZSmuz','admin','ak_f81ed125c3ea8ead','2023-12-08 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$EWnY/gcpkZjbamLkVW2/s2u2eQneeLmR4a4VyjFHRyiSeYeZPlGfn','admin','ak_90eef05eac23e41c','2023-11-12 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$KrsE/KpJNmg7kPw01lF8d/rBvhQ3jWzMY8fTIF3yJ5cNbRA10lR/G','admin','ak_0299f6c9fbcc1f56','2023-02-25 10:11: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=30533;

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


