-- Host: db-master-6.internal    Database: ecommerce


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$UTVIaATpUnexfwRrEY4plvbg7v.HR/gMJf.04UgOhRJ6WGSohDJk6','admin','ak_38c16fdcd3a03363','2023-04-22 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$gRgn.aq9xgRrixo8FijJikjvP217RMrtuB92j2RpM5oUyeoDr3azg','admin','ak_157c48cc8deaca1a','2023-07-07 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$Yg0x1fYfaIitoQMxw8cp7Ohw2c8SW5ngUViQsk3TqvOqbsY5peR5/','user','ak_3c982f5dc52dc7f2','2023-01-26 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$1smNUNQZd8CcxzC6NNcQx.RP.4TxNJUfEID6iJtIglWxRoQ3fOUe6','admin','ak_f23e18d8eb93976a','2023-12-28 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$EBTix/kAm5XU9Z8YxVUsOyiDD0wDefwxDAeCgX1E3mw77IRjCeBT1','user','ak_1241a65127de0155','2023-04-20 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$V9oT87LZFfqzcp0A0ykbKrv8pRLlP6yPDBALTT9JPKUkT07y22Mtv','user','ak_dd4d8b9507a896a2','2023-02-03 10:01:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@internal.io','$2b$12$OVwHROQ0whytfJcxRkZIl3qRZNNieRxY0Jn.715QxfisAUNTJ1z3p','user','ak_af91653ec8ccca34','2023-12-19 10:04: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=34512;

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


