-- Host: db-master-8.internal    Database: main_app


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$SWKsD.NQStzEO7i8/3sx3VNqaLBACv3qPJUZShBMBi7WTC6NnU1Rc','user','ak_85f0e5e6a13ad176','2023-06-01 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$R/Mfy3kyyn2NBKvAwJMLpuTDHsVrJSZkBomUuVyUpfYbdqXmgqBuV','user','ak_3ca4db1c063da96a','2023-06-24 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$GIFPLQslA6llPIbsvg2oTOOaQNbuQgpYT2OQvMw.3kFD2anA6sqzg','user','ak_16a9c796f03df8d1','2023-03-05 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$iDgaq5Z/y49DzheVN.q3EH.Ptz.PbBv7kszueP9d6z8/ubuhM8zXq','user','ak_163ba9258bb03757','2023-05-25 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$ZaXJe3VSbmG2OTz1./Z5bTJUZmBA2LB1bSqfFUAIrGYn9HH4YNCAB','admin','ak_ee544e4053a5b358','2023-04-28 10:08:00',NULL);

