-- Host: db-master-5.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=16224;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$UQtabLnR.LRBkiCyD4knYRhn.b5969nEteFhCY6jHEc8TLxY/F37y','admin','ak_f9a6604fc3d50dbc','2023-07-23 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$Y7Z1LC9fb91nEK7QpRDonYy354OcHMAHWswlJSKoLvKmI7s63n3n1','admin','ak_330512c3f6f2f484','2023-04-21 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$akca0sT/Nb75dunYUoob2JYS93eUy7gGE3T9Lq39KrPneX7HPLwQu','user','ak_7b6a238a5c513c06','2023-01-05 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$S1v5wXQUpCDJjBURKVGB053qxgJGT30VnTo6yHv8UtF4HYHQ2R0Lr','admin','ak_4d242c3dd147822d','2023-08-02 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$j0y3smBMKtWmg0e5plmNsi2LJpfb.AYgXSzRIDlLhnDjX53vgF1c4','admin','ak_91642074b0c0747b','2023-05-24 10:21: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=47443;

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


