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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$RgPHvbt3aB/okV4lO3jCKbzEZk9cojneToc5qvokpQoaG.INeBn3H','user','ak_4b74d8144599fd72','2023-07-15 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$JYyWSkojHoYVpr1AynLuuIpwQD15eT4l4pDAd047zvoyEer2o.QIm','user','ak_418f93022d0fbcc7','2023-09-02 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$Ii74x.ZKECoMt9H7Z1rrQFYkoWubtX1eo5Ijk1/CC31Z4jex28gct','user','ak_77d654f828cf19a3','2023-10-16 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$xXZ3vbNhxhsE.u7NqWAc3ZWRA6E6Q98gDyy0w1/B5489aWqyeJjDM','user','ak_60a3dd7a7205a5a6','2023-09-07 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$.Mo3FjLNcy.BQD1eemy.XlpzuMj0Uqf3KcwHNAS2WwoYDfdM9jNp6','user','ak_0d7268c00e8793a5','2023-07-03 10:09: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=50779;

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


