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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$LQriwvZ409BbgsXMNlzvkQS/7cS0KJdoptPYx.rvnk.xtkuSSrXgM','admin','ak_916717703b50ee38','2023-11-16 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$SPNSDT8j0NnJGixrOrnf48DNoqK.TQxhxkxm/gJp1jhTDpWMrPlEL','user','ak_55f4daba42b8bd7f','2023-04-14 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$aUKhDL1Oi8Z8chSDFBOPqwhQyD6aa1bkgNhs5ba.vRXqq7KoYh7Sc','user','ak_56e8ee27768f71a4','2023-09-17 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$h/A594WJmU67T4yd8J2tCq7FGrz/r8N9zss/3w3H5NkV7xkoZMHpW','user','ak_7c718af064140878','2023-11-19 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$tGKWDeB0YO/0heLfebCVLa7jpLDWyn2GzLdBGaMMw2QzjnmN.VC0f','user','ak_0a1093812b84fa07','2023-12-24 10:23: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=37342;

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


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

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


