-- Host: db-master-0.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$u3YVj/LeL1RlSYO42u/mMnh/Uw/Q9pK4x2RauNRUZX0f//JT8AzUB','user','ak_fb804308b4c11c8c','2023-03-20 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$3fK6Ys4dQHQk1fwA7A6CQUUOziHW7HZQSCJUsXrn3BCq7M.JfEQDm','user','ak_76e55465345b0727','2023-06-09 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$ZbIFKg58A.HGjSZ8PBwRVEcQZ3/ExRkO7npHi9yjRVmpI/Lb8Zudy','admin','ak_56ed5540b2cec494','2023-04-07 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$LD2A0CmG1/EZj6ER5mu2lQ9bc3y42be/HGXSIVOyJV62oZEuZqBNa','user','ak_142902d0a5ff2aeb','2023-07-23 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$cMZT2ciDwdAKuE43fonDh1FtRHfM0q00LWEh7N/IGiIDgUb.v7vhK','admin','ak_24ff47c344afa37e','2023-02-02 10:15: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=4381;

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


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

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


