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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$wh/XG.v/yTF0.Jfp41kXVZ67QEmNKAga7wLsjydKTG6NVDggSg5EO','admin','ak_766bec937378c5dd','2023-12-09 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$6TI8yF6X86oxdqGWymJjnLYagooIT.jlk1bORSrLbeBSKM4wtXeZA','admin','ak_28029731779d4d8a','2023-08-10 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$6BspwFapjLVKcV33QZw.57f6kPTkjxH.JQVPjjpkFOg2YUyNVODsh','admin','ak_99dfe4f9cf9a1503','2023-03-16 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$lg1RUKi/B3vvnEgrcxCwoQfiNvCwpK1TDdlS/Lyy1DuvohfhvMo5p','user','ak_60755e4854506ae0','2023-08-21 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$HRI2IDcL7Sx.VQ.iRcC6P.6iKod1fWgyZn8dnRI/fBA4XgPWp8uXQ','admin','ak_f197a5a7ea8d9834','2023-03-20 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$032MlB/DPhHxlNvP0VkaxgIIssYO.dNV5CqmfsGJuu6YeYgYt9dcq','user','ak_ef4fcb8bd3a1d896','2023-02-12 10:16: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=16290;

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

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


