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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$xqB.Uo00ZOHYW/sEfzrxEzxR0w9iJNERyHLUt7I5eFl4G4toUIgx6','user','ak_63785d9fb76729ad','2023-02-21 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$Bw3UgOPYYSV0b9FAz5.D/b0RRqrvpoRtZO9WZIFvaj2wHSLfZprsc','user','ak_d64266a759a8a7b8','2023-10-09 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$WUd.HKLzLcgdlvIk.Km9XlRHXGstbwyl5dVFnOS4Gs/IQ9NjFED/y','user','ak_1097b23da9096c9f','2023-12-08 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$8/TVXTrXjXz9mezIVYd2n2vqVWq/IV.r/EcqjCF.kNxpqQMP/Gp2H','admin','ak_cd418cf7bf1fecbf','2023-07-08 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$6m2wwKBFGtrcb3XWtl8U9rCZ84azuG0Vphus3cNAxP5VrNEvUe4XD','user','ak_5b6b304499e3b238','2023-06-19 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$nK4p.paWpi8bFsEfjx55WkWlZir9Ff6VpCNoTXec9cqV2lgvntRce','admin','ak_49ca4584bd897a14','2023-01-10 10:04: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=21183;

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


