-- Host: db-master-6.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=9807;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$A9eJHavdCiVI5ZIG9n4lIttC3NYZJBlipzpC6Ca1WIjr9kXgQUr/l','user','ak_469f41f73cdf95b2','2023-12-03 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$WklibjS.Fpar/7Hp.T0TG3wTzvrAOGKFY/rqxAVimEPgF33Uj2B8k','admin','ak_a0bedf716dcc80c0','2023-03-13 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$5vOhXdHAirRLCgDwazCcBPSIv5m7MfGoPOyF2Gs8NndVu7po3lC/8','user','ak_9f5db7cf32d53345','2023-11-03 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$9roD3Wji5VyfhG6H4FLCVNj3Cqu4dghGOTiO2AdARfn5QDO3szDvz','user','ak_5b32299da1c02f24','2023-09-15 10:17:00',NULL);

