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


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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$FY0bghv2pz7cvT6wsGHurPijcmAq5NbHAr2F7MHc1mucYjt9OvSg0','user','ak_5839fb9895748a8a','2023-03-06 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$/E6GirhF/A9dd4Xy6eNVi7RoPhWmB7YAdjisdU6Cd0CK2Sb.tqAXg','admin','ak_dd86caa4db3c76d2','2023-11-05 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$V6aZy8s/xHBMLNpd/BAb1MyQo/flb1fHQn2Z4tOhsJj.TBiJZ6SLy','admin','ak_215c44fc790e4a39','2023-02-01 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$x7QNhhauTOCfKtCbZlGWC3zfjggHzZekRvsuX9eO9fGvc1zV25DRi','user','ak_d556b7303a6e9338','2023-07-27 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$lY9DxPddiUwQS7BWgTcV11MDJ.Z0ER5tbkhPzFb9sS.CMdJh.3RYy','user','ak_a6ce6c8015edde9e','2023-09-28 10:17: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=35534;

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


