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


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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$tcj2jbqYc.mP51lJDD1jtEsSyGJaLDElm01ijhbzpXVQigIR5v1yK','user','ak_96585b478ae24777','2023-01-13 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$zrdofIqszv8q5Woui2QdizvPgP8qcLMu0zwkX3eeGnaV3E/hS19Et','admin','ak_1918d2fe99694535','2023-10-03 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$ExPHgf5N0tWu6uZtT1vefMp8LSp653/8RcFA5/a.e2D1jFhVKR.lz','user','ak_2fee16c0fff2b743','2023-12-16 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$DipltDJqLNE1LzD1S0OldIPEkpz//FVrvtw5xVD5EHfEfBv22Rtdj','admin','ak_67258929f5bd9509','2023-12-24 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$CiPOmMqQlO2gMKeWDjS8qkPxXEcuroeb3LFJL/ee6HKLMg0CAlXIW','user','ak_ad40ba423facc449','2023-10-16 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$DdQ53VSPshj8xE8xiWZiyCOJ8678c./XQVMYmoliZyP99tI8Fp1XW','user','ak_f91f7cbefe49d3cb','2023-12-08 10:06:00',NULL);

