-- Host: db-master-0.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=16225;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$v/VaCNeV.fWUxZnFVQcTmeY0UUgmetuiRddyM8ONJPsyAP1MHsUQs','user','ak_2c2bd9b56bc8e64f','2023-11-18 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$.Ty56fn9Bbsi/BB9B7l3n5qmoMl7HVVI5iDRn2WY3Y5BcQxEoEKXO','user','ak_ac9feafda955b272','2023-11-03 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$H1VnRhyn1RdmkNlzeldh.3f0QxH3DRDGr3gp5i09mQtyQTCrUOkQI','user','ak_9768617a7a6e01c4','2023-05-18 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$pVTBS2Of.CKpUMIfuZ01clElbuR71d5yqWESDNHxmUHnR4C1tzpQE','user','ak_b676cf8145872bb2','2023-07-06 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$LuDd.wWdhdsnVBWr1yyQMkq9T3aAAFqZbhAE4Mrjo8GgNlaAz.1vQ','user','ak_25fb5b7a27279469','2023-10-17 10:07: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=33306;

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


