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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$GJeHxB.LPWFtGhiqzLezU8nceXJvY/qfSHe99BU6Z9kNA.LWkLGJ.','user','ak_7689262c85687cd6','2023-04-22 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$smNHgfWecACnddDCQjE7/bL3HozOuNQVNJg1dXEpY0RLk3.MlzuEQ','user','ak_699650accd1b48d0','2023-02-21 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$s5ATt.9nP7hPqpp1uOmD0sRW6noqGvAsc8lnDcP1unUO77Kf7Jhoq','user','ak_ea659daa5d06ae48','2023-11-06 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$5h41SCj0tDiq9otygvgV86hDFrlRNreudsHof38hDY/BQvNZeXzGK','user','ak_6d7789932c690acd','2023-06-24 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$8AK.x98Pge1Jm5keThO3a2g4Db2NwiUm1Wh7SRet66FhHnudzWvDE','user','ak_74286c358aa3a2ac','2023-04-15 10:11: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=31105;

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


