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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$Ldqy6JItxbq8UxRfg5jgR/L7MGFFU/SaQDDwVQtlTKiaMSYWJeQ5p','user','ak_489150bcda557c23','2023-12-04 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$qElBruLSn.EWhPY78TM/lur3H3tgqfF5vdXnChGt99w2hpcvvRoxi','admin','ak_7353e643868b158f','2023-11-12 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$NgKBH64MeLTnyZLIS9Jz.sS9yL20EAhPi6exi5TbWcDNvbfpu5wXC','user','ak_4473d1692f04d534','2023-09-17 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$7WOpjNhfqRWpj0Wy3zlD/iC6mtuLAppQqfNjbgRUetc6ZmUyNJNUv','user','ak_51ac59966e87e07a','2023-06-07 10:16:00',NULL);

