-- Host: db-master-8.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=6576;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$lJNdDl22EtoBo3ntO5IIoT8YlH./Vg5pMrOXEaZCNC8Ct2VewCkq1','user','ak_8430b205e1c8c4a0','2023-11-11 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$MBqNofxyifUk8Q.f1lhixYmBwd06MgyTCRgfLOpHOm6MY7FDT9ARw','user','ak_77fea83aa1f88ff1','2023-01-16 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$HggBTcD0qUz0ftvfJ83LVpSDahFbJaeQVeU5zFJ4WnVbbgHvfYMyB','admin','ak_d35e7762122014ef','2023-03-22 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$dogQH4w4pPOmDuWffAk3h.yxCIAqn1m.z4G6zVQ0JbTdtRtjKH38v','user','ak_191903e146b5444b','2023-04-08 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$ggBwR8BMq4zOtr9HpvLrNV7BSvgPAewoc94DV/J9OOAtjQ6zjGAt.','user','ak_5110893d25a50059','2023-01-24 10:00:00',NULL);

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

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

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


