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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$YZikFPODmP42X5bqBE2M1rpGq5VTTXDq8/WczhieZVkr.RnHaJkto','user','ak_def183f37b517323','2023-06-16 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$4SyK1jhgMiM..fKenkJpTldSA8ZxsgPWCW4Xqjgd9r2wSwVMncRyj','user','ak_6ac0685c0be561a3','2023-02-06 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$vXUMd1URfpKoh7gKR20No8em6YQa3pKlyAJAGwSSFcAtXGQ6fzvgx','admin','ak_f70262280fdc5f11','2023-04-18 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$spH7jlZOgE00jLzG2j5oDDO1j0Xd.VvT48LNQ2kCNKeaxPwYEl5iL','admin','ak_5c0fa862fb0d120c','2023-09-09 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$cZav1x1N3U6fPpDDXuiAuJAPvVBbkL1k77jDru0MY2XjOxf.0jO88','admin','ak_bf8f9c416707950a','2023-07-24 10:13:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=28890;

--
-- Dumping data for table `sessions`
--


