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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$k.x0raq8h38LJsObK2VTfLhGrazJTN3u3e18cB1ASxpqZ4r397GNi','user','ak_ae84787f8f6697e3','2023-05-07 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$LuVJjJWFz8WC960yfRQJfei1N74kyn8PSVsRBiqyZeuB9HOibp14U','admin','ak_fdb533b2368358f1','2023-09-01 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$3LEbfSGfitsAri/VmNsvon4cr5HXTqSF3oMBS9XfyMhslX3r7ggaf','user','ak_8e656a0f8f191383','2023-03-13 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$45lxysx0qa70wz01S6Dm8ILA3puwGcCTHkrl9eW8Vk5Ef9y35PNWm','user','ak_704dc2684346c599','2023-10-09 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$Jmm8mfiQxfeAdZoUUal2CSC0bV5f8OPUBD1V/mxj09Jxst4YUJSGx','admin','ak_f3492f26f58ecd52','2023-08-12 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$zgL1iVsL9mbFWeWLWa2v2ZDCTjvyezP3hfcICmN.4Mb//TFZzJUVS','admin','ak_2790b30782ac48ee','2023-01-06 10:12: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=25093;

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


