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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$Ssz12jcCCLJHAgAHcluxdiYnJ39Q5GG6kY/vYN9k5iU/HjwzAG8oq','admin','ak_232213f4870342ac','2023-06-09 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$CQ.iNYTXVcpnJ3jrJrlToBE4JY0fVGJI0dbf2hrlHfC1D1ocP4MfF','user','ak_3741aaf3baa93fae','2023-03-22 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$Jrxyl/.yVb0QL4GU2hvWWkvS7UxxnKdus0EZjjXOGtS9d6ayB1pkd','admin','ak_fce87785630e60f2','2023-12-20 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$zoMOgnMzSi3mmD4y4Y9H1NAhTgzUPnUYKHrx.39qn1eNtC4p1oTVK','admin','ak_6fc73dce1d937e77','2023-10-24 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$i6/IlXZJp0hR1pd9dYa1NzDKBUrW8s.mxGkncP4oX3wv1u6hlKqVs','user','ak_d69d1a44db163a11','2023-12-02 10:03: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=27166;

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

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


