-- Host: db-master-1.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=40627;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$p1a7gHWipQlMCrsynuTjIZYPJB0/qYgzQfyu2TL81hwxxJH.fSkZS','user','ak_78de8971143c675f','2023-12-22 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$ecthe3LirGBaYqzGdJC8cJY8WlsD2Rw8B.DMFrV2FpU862ScrW5CV','admin','ak_2e73d9e6e8698e30','2023-12-10 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$4DfAEZM5yg23MDZX84oA1ccqzJ2E8OAHUPzOIhJ4HKBTNEAX962xB','user','ak_9eb41ce3ce2c1279','2023-02-02 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$N.yUoIzes5OVMGrg/aGvZsJsPBI0DQ44wKTqnnFiweImROKswmNY7','user','ak_95db42e0129e5bd4','2023-03-11 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$QimixYFzE2Bn4kpG/khI2Su23tKdHKejQeRHACPSO2q1nG9upskDA','user','ak_e532fa53a8e12080','2023-08-04 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$35s4/jJ3jcSh5sZR42CZ3tEDMfz9bBstgQeTNwfGWYwXADBlwzN/2','user','ak_aa4d6dd3d8aa087e','2023-07-03 10:23:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$/M/dvFmnC7nZcCg6YRLFH7ndE0B7s4kt5vtN.ht1vArsYFSGa.sWD','user','ak_1e3027e63900ae5f','2023-10-01 10:09: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=25062;

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


