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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$rzVbMRL3Q8SuPSUY9/K8gtyfUpWwbKnkPbSCq52NR/wKnBx1EGZBf','user','ak_ddd2df18c33ffce9','2023-05-06 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$L7Ng01ExzJnJCLe3cnHaJh2jw.7x8merC44mP.ffHWUqXdTSqPV6P','user','ak_7d88539a03b43ca4','2023-06-19 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$WoT7DZuPS8XESRoZ2Xm0se7oZcYISd3Vpguu.Dbe6JUdYNocE.iDM','admin','ak_228f43b1460cf98c','2023-12-21 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$oHImlkwJAeW3Qdur5Mpj7aHzRQTIig2A9U.9rOGB1PYA7SBoficym','admin','ak_f11ba3eefbcdd796','2023-04-23 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$2U/meZUMH1zqQLviXs1S.dBak85SNNTeWmNZ4Go/WUkP16dT7dK4e','user','ak_d170159d5fe3e1cf','2023-06-12 10:03: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=17949;

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


