-- Host: db-master-1.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=49989;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$.kTrxUNEt8x61pLX75/5yaXNvhz1VsTDokDPP.u29enAakf6/Pz/2','user','ak_96edbd1e2b8cf6a8','2023-09-08 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$lXXSbwz/jwSDMbmGJdoPCh2DYKwSpRjo5RZGp1A9/BGftYgajWm./','admin','ak_ac177f7f07015d11','2023-02-15 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$dpSYSqoGQscwKvcG.WkH1JGjBD0FcHavuUg7/ImVoVdG0XAKUw7.J','user','ak_c0dbc3c8183f842a','2023-05-17 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$QsrdFdcC6sUbL/sgT7ab.axbTJAv3yo2317j83PWsrSbhOB24GH.S','user','ak_2023be6dba26f496','2023-02-13 10:19: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=4426;

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


