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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$AJhe4hnvn/gU75LqdXTPLcpsGYjH.WiGqxvlcAi9olpjLQ9RhZOog','user','ak_33a540147b4c7984','2023-03-06 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$echyfvDIeThvVBWUClYcSFCdt8J4rFt2aF/V3TbUZ..2SNe6cebT/','user','ak_90369451d992634e','2023-10-04 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$AnogZgu8em/1ZBvszd2g/aKkFA0QiRhvc03fxiJ13TESpRBE0yOc3','user','ak_6d73aa5ee1eb46df','2023-08-05 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$1kcMZ27FWRc1DfbSgJ8H9DgRVVqqo3SWz4b94Xp1Nh86ENu05ypb.','admin','ak_3f3e684a362d242b','2023-05-17 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$qBf2/Ro/Jr62srNyFaIdPDo.DChUKx2gLa5KXrF893Yb77kMDodmO','user','ak_0c93a7ed72c5f0e9','2023-02-06 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$mZqX0jW7jbvjDQhCohqYvO9Ql5SL5hwh.7GJ/Od5mWz6rd6cSjfvN','user','ak_4ae09e61247c87a6','2023-04-26 10:02: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=48555;

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


