-- Host: db-master-4.internal    Database: webapp_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=18746;

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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$wNzq53cTtyZFLsgis1sd8gv4MSgkajHoiSXiLxwOu2sCkJEJIFl6j','user','ak_a5dc883202af5525','2023-06-17 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$DqpJ9ulj2vOfkMUn5fgUivfB0hlTli4dGIUNQQJNugz42cYAoxHbD','user','ak_45eb1cb429f461c9','2023-11-17 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$mNccvVoK.8uw95BDKXq6eFYPOWp6Soq3k2bM/ZqJHXadt2wLt7y6n','admin','ak_2fc5ee1515eac274','2023-11-04 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$.q9LmAFPbEXQT8OXDXOkKOnoMC21Xfo22ZPUxA5EXrrZCr8h56ue9','admin','ak_f00d6aa35b0cdb17','2023-01-20 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$biLoAZMqzESYG5hCXiRqhdVrmgPznZRKLrxf0HfLZeiGFMGq2ZbW6','admin','ak_220cd3ae9ae96271','2023-02-08 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$dMSJEWBBwkwQtTxAloOfH0eWRKDED86IACv1vy9uvmis6LlEhpU3o','user','ak_7f524d8fe38568c2','2023-04-10 10:04:00',NULL);

