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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$vCuYW2BiY6TrWQ2tLXvXjd1xv402Jw26URgYVYJu.TQfI0rx4VbEd','user','ak_3a2a105f1ddd0f6b','2023-02-05 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$PWylmSyVFIwW2h4AC0pAp8BiyMEy/Wq27P01GSgW6oIvOvvPcku37','user','ak_b37ef903987ce586','2023-08-10 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$cCsjav549BVUsedI/9Uncc0qCgSDpl33/MM0dpzWiWNM.ZkPHZw3V','user','ak_4a41fedb187bda80','2023-08-16 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$GBMK9bkWlKH7d1EldvRbVvQ85Bco3Ku3eRUjqSy452W9OTd2q4FKP','user','ak_0eadd106bab660aa','2023-07-13 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$QxHVFW8/ShDTcq50AIMS5O2KTZ1ps81y3IG.vJCPtSPbNot9ze.58','user','ak_4b0ed8692ec7fdf0','2023-09-16 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$qhes/3Ww4F3m0bE/O1fj7jqfghmMFlGzLh8ILGwjQk15XisgT2Y6p','user','ak_b4f5b09565546eaa','2023-03-15 10:22: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=39220;

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


