-- Host: db-master-0.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=22575;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$2hXmmB7l17RELQHKPcBqp9gkcDy.3THhTkVbvr2Cyy7yZN5zL5A6n','user','ak_68fe84fa67732158','2023-02-06 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$55disBoy9SocdoO4Yvv66iSChSbQ2lFJQCxjozrckUtm4AppGebaO','admin','ak_7aed94eab7728216','2023-04-03 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$MQ57s6cnruZ7fYmAET/DkW1B9svXxAEuUtfOw5wg27c6D2ynLmh7I','user','ak_9ce85acd81c6f3fe','2023-03-13 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$r7H2c/8Gn9IMGVcaCe0mAC/A0k/u3wTt2uQ.Va8lL7Ys1Kw7XIrqZ','user','ak_8c3ec76dc7094d76','2023-10-16 10:14:00',NULL);

