-- Host: db-master-2.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$4DrgsjcHrjN.zWdkRbG3T8b/HwK9BeH2fb2Z6q8JTDPi5OFDh84SQ','user','ak_631254fd7115c5d1','2023-07-03 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$nwYBF6YffsH9SVoV7TPw1XDasds60XVBJJ0eV7kDfdq53LYivdYSK','user','ak_8414227afde53388','2023-06-01 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$FUbO6.N2szKmG.CkEUDjfNAHC2EyJyMGOeR5lqYV3gnStHtzlYLeo','user','ak_6e02029429b05922','2023-01-23 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$4Yxq4GhnRvgpPycSbqlGlWKmCvzoPfmc5Z5gvb6LHgWpkH7ZzV7Dr','user','ak_f4cfe382c41eabeb','2023-01-07 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$jW6QMAlxXdBsOPG9EUmJviQzd./rZGLwL1KopgQroJRsFg8rgLF.n','user','ak_81f3aec8769616e2','2023-09-01 10:04: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=26238;

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


