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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$J/niNM4VZXowWYyr3qNiW6VzypX5bskL8hMU5y00oEk3EwBxOJq8l','admin','ak_02cc0eea8be029f9','2023-04-26 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$Cy3YNJ0qLA1kvGPTnCUO8MgmPH9lggAFLp3AdbUtHnXGNpOvatYSz','user','ak_ca456f65eb65ed26','2023-11-12 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$S7gZmCZAeIaFB0ar8KK3SRtab033aiw9SvAS1jhQOvIQrBg/RIHRz','user','ak_73b2854a99b3bba0','2023-01-19 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$u2Xgv4HkcNFBZ1x.nqVKDaoRBqf8FjyWnGm1AXKGPGi70wEzJVfJv','admin','ak_845018985c9bb0a3','2023-11-26 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$NTkHx0IpEGU4vjiOEWX17TrQyswUj4A.DX3dZmN/osWDzzcUjSkqg','user','ak_9c5d17855bbe74e9','2023-01-04 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$c53py2R7LFucr06i07EDksEUs3PK07ayL/sUgmlpU44ZiFilBe6qX','user','ak_00ec7c75911071e5','2023-05-20 10:09:00',NULL);

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

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


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

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


