-- Host: db-master-3.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=28036;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$QGc5IkOSSpJC6qcExtcowlRatTrql3/AL1LWaUL3P6SnK9NKSXQMo','user','ak_c46681b0adee6a7d','2023-07-06 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$lQuKF.OUekyPBSPt6g.D4UShwRJAQtnua0OotMdnGOKUle39iWIPD','admin','ak_bd11792fd5364676','2023-10-13 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$XxXOevV63BlLIOKdbcAmAPFEu3b4GQLP1dfcdo004gWsnIn2BeM9N','user','ak_f9be353447ae335a','2023-07-18 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$WLq9/Rg1Hk1xW8X3DszT8LurWFZp6NJzQereZmQoLSJ8povppCAwZ','user','ak_78368d382a53c6d5','2023-01-16 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$Jbd48HqZU/ethGWsvO6sdYBkRjdYPIHw8A9RLy372tyQ6h.4iToi.','user','ak_9f80070c6483c406','2023-05-08 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$TK4CryOErZg9uaaN6sqgbojb92xqTJt4pV/af/u/zOTCUM7253ySw','user','ak_9e82fe8525964813','2023-07-08 10:02: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=30562;

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

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


