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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$6vvlPAfKM.HeUFHuoNOGtx9DT4v4FUeUsSlwwApz2Mmf77uhtL4ec','user','ak_a0c83b967f7a3d71','2023-07-09 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$MSkwRU6nwDl3iZrDVuooG6ifVjQSQepE5jSNyN/kCW3AptH1LvLDK','user','ak_1b36aa3e6c2f775e','2023-09-24 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$4gd9lzObsiprXcML8qOgprHJgeCIUfnC8FiTFzHqJ3DzCtVJ/MkFL','user','ak_4a3ba4bd945220f5','2023-08-25 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$zAM0h9PKzFvWGdogsxzNrfA2q0ewC6xnUOmrCzqcJWU7B9RxfYZyO','admin','ak_b3723fee21f72bbc','2023-09-24 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$gonRQ5/dIy8GX8DA/U3WP2jRPVBQFVMcuutlUBkyG4BIyOiBrUgZ1','user','ak_a2d1d8a451879b8c','2023-11-01 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=14298;

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


