-- Host: db-master-1.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=21839;

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$2Dx5dqfUKWPtZMyAKF007g3G/0Cd5o3zczEfdGkXApzmdzd9KDhWu','admin','ak_04b2fc392129bec0','2023-03-05 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$m8vHWiq3Ug6YF1m8CAr20./ReT6gCsLLWRWXFrkq3YRedb8f0QWT7','user','ak_bf31fca048708f1f','2023-04-15 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$3c5KQeVU95ZTE/ZzNo1pCdfc3B4N6AT6SO5MoAaAaSOdVKDBWBU1p','user','ak_8d0f126ab74f4f34','2023-09-05 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$xoZ3AafDVnQUktMJEwn7UvfXVkwCcLdXpfnHwuG4fxMquaBrPpdez','admin','ak_50d3e40298d7a09b','2023-10-07 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$gWxLly9Bf9OChQBUCOcD7DrlT58TYFJ1fuTEx/GyDuqUQYeKfM7BN','user','ak_c6c7965317bcf2ad','2023-12-22 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$oxa9pIpYI7i9RN2k63ZKOwsrfhQnZw.JFWco7KbuH6bymhKNWtw.m','user','ak_dbec54405b32713e','2023-12-07 10:07: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=43362;

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


