-- Host: db-master-6.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=22334;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$3jpsDl3OYr1FGfrWRMFfgmrmbUGNA3Tx9SKx0.3VBuWYDoeyYOhaX','user','ak_b3c00e716c4ad6c1','2023-03-13 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$cUYpq.6er7ai9yy.R8pgjpCvUl8onSsmWPz3SE0t4jeeFMWkSq.Nm','admin','ak_ed0f8b6b507fe630','2023-03-08 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$7vylNK59HMzHYf1s5GQwr7ntyWzRQpEVRYqDrMGEvGdoNhmMECG9Q','user','ak_99363a37e7ca567a','2023-01-14 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$Tt0JmKzR/4KnkiSZvRzDBBh0.4GXIy74dGEdNmD0a22/c8PEMRmlW','admin','ak_340e5a550edb279d','2023-07-08 10:01:00',NULL);

