-- Host: db-master-1.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$KOetNpS6X5M/IEPrD6FWnBEWhXsZknrs4lfrriToAMqcx9JEnULT/','user','ak_9904a1e6d519152c','2023-02-23 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$vnSgnmBcRslaQ.BmGWK3MJRCN2XsWvFGjktQBD0NgLYI0prwanjgu','user','ak_17196cffcad7ec93','2023-04-26 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$fzsAGQwiZPRKy72Dwv6L5JV.5ZYmXReg6YRn7LDXg6kiD3GWRgoYF','user','ak_e4456d04b7add391','2023-09-09 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$FZawPB1ckFzYM86yZ.4im/MZT5lHtzFMou3ILgmSXt.X3uMfn6s2O','admin','ak_d7ace5ec376b8196','2023-03-04 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$enbqBQJKRWXGomuHpOyqNiwzRO2jmPwaf7QMP0OVFeHclQ4IUX.LJ','admin','ak_b95a57a33399f420','2023-08-18 10:22: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=5366;

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


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

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


