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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$xeXsO5y9AiuTazlN8UnY.nuvq9icqomffiTNDgllMMnAbqP53DTz0','user','ak_0beb19c7c0403d65','2023-05-27 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$nfmGvwC6XQ1thcbXZdkHh/Co6ytnNVTqAsiLV27q5QRGFspqOvSNS','user','ak_baa7f84458badf3b','2023-07-12 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$zshYbCHd2LBiMfPi4u3eiLCINs/suftu0A8FS8hpVN6EhGizKz0hh','user','ak_6c9c12244759d8ca','2023-01-26 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$7iRYjEAiP6ypg07cEj3m7/QUemT3qRQG43/2bJZ7b/DyvH7esSAkZ','user','ak_49343bd62c2e0aba','2023-04-22 10:16:00',NULL);

