-- Host: db-master-6.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=41414;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$pbFRz7TeF9Z0aD7sp.d.OaIfYEgY1XMg5N9D9LLD1vNQ87dTUWIbb','user','ak_71bfba7ef3c80712','2023-09-20 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$L0XzDLrgS42fmj/dMdwDTx/kJ2.LoweX6yKmCsJK6v3n82k.abjna','admin','ak_c2b4428b2dfab3ef','2023-01-26 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$hJiddrWP6BKKfDz21BZCudZuGMsqa.KmU3AmKhtHZRlYd9Kg7tsQu','admin','ak_af8bd606925e3243','2023-11-04 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$Lk56.V7j44tj/GhWydFdHhpcgb2/upEDOvyCrOA3rffEBIyj/olC.','user','ak_d052942eacb893ab','2023-03-07 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$eWl4mECJmtKJxa936RkW7FXXc8hmY5Wi2T7evhhKjLd5oIDsFxCm7','user','ak_c3e8440742f44181','2023-07-22 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$OddVA2WUQ1H4bqhsoo0ZeHoptbcAQ4tW8HvmhAIQMXny8iP1EaJjK','admin','ak_fde2f4165361ac10','2023-05-09 10:05: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=44793;

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


