-- Host: db-master-3.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$6L7nXOBX5wA.Xl9taRVhVH.QxSgbdMaYMjSLivTSfjNgO2QOxruub','admin','ak_c626cb6767ec4217','2023-07-05 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$CnDcGwPyJH6li4j8IVcpkhN4U7YcIy.ayPKy.MZPJ.ozkhbmmzTbi','admin','ak_073c0fc0341f2099','2023-01-08 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$Oh7dJW1IjhUL2R4YpOMBiuXoLZ0FZki6UxqKG2FlLEIDnFSKBnsdz','user','ak_9fadb6111629e021','2023-04-04 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$sn1N/8eNdbGW3j3ej5WB64fUjsX1d/o6OYZvm3eNIEZfsWTGljiC/','user','ak_d2a20d478ebf1fae','2023-07-25 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$XlbinvHP8dhtRHKXdjTwB0fyfruvIXk1zwYHlCzdwnuzmXXE2MVj2','user','ak_e867ba3cafb5fb63','2023-02-05 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$/m9hYDMGwt/U/sYIAOLr2sWwzMe03uZoqLlGg1PZa.p3hTwsOCg0J','user','ak_c51935626488f5ee','2023-10-20 10:05:00',NULL);
INSERT INTO `users` VALUES (7,'admin@company.com','$2b$12$9k6cuayJtZHCoX5VYktwyZR1cDHf8tqbIYFpwaSKeXNPyciBRZKP4','admin','ak_abfdb888333a0348','2023-07-01 10:16: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=40482;

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


