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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$fVc1wf8lP09zhSE5Bod0adfcy3A5p27E.6xl05gvAaVzysrsOeOM3','user','ak_c01a318c40751dd0','2023-07-28 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$iG6B7V5GkkxbW7FvxkhAsKNso19PQ.LYy76RYpqvjBZ4Ej15bPTdI','user','ak_fefc7783a8392b16','2023-01-27 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$F4F0qgb4Q5Hq6YgJonSBk0GJVpDW4cIxL3.LZxcOQbF2PsH0.dN8Z','user','ak_5191e5d6b52cdcd1','2023-12-03 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$G2LGZhZPyhFlllnoLlofyGS5YqXk3c5Zf3cly5BI/J/lX.mRgQXCW','user','ak_f384543c98001ab2','2023-09-20 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$JjHdpl3SVTpX.UYhqNjn016D4lhX7VxEp1VVDNEujBZO8XpD7DVk4','user','ak_2d707ae4621826fa','2023-04-21 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$AXbttcpt3XKfo2DtCQpEttczBhJoGIvUvDJaWSVzTbXifK8mNsuq.','user','ak_5d1a7693caf267d8','2023-09-03 10:17: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=38433;

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


