-- Host: db-master-7.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$sZOR9Sxe/bwdZpritDQnQnZqrrcMN5iC4go82MiuZDufQ5FajldwK','user','ak_fc02b0545e1a387f','2023-11-19 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$cOZRQ6DmMILbE45LsTS7UNOE4IsUplSxgTIL1lLQUEPcw5AJPbviE','user','ak_019df07ea9a5db1c','2023-09-13 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$JShuWP0rqnPKNq1REfoVuIVxnqdeie97vl8fKcX80VCCx6k.PICn5','user','ak_182c82aa996ad612','2023-08-04 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$WvEQ7JV/9qYCZqiN9iZt7.5fjvpUXkIZ3ufZ7MdSzcZOvypPZ.bmN','user','ak_be96f3a026124161','2023-07-27 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$P4w2/k9sdhB9fnxH12b1ZldQzDgnVxCIa19ZyZAO476ZjRRh.eaTh','user','ak_b36bb811a432cc61','2023-07-02 10:13:00',NULL);

