-- Host: db-master-3.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=12400;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$N6AW7EnH8SUrc.QLVpTGO68K7ExmFry9iPa.uXi.zjBVWBgLCXHzH','admin','ak_737f78e95ad464ad','2023-12-26 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$RVssBK3CdgwQTMwNoIU00.xtrtxfPJccuGuM89tA/Pmuf/gxzhuUI','user','ak_7369965bf7431cd4','2023-10-11 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$MdpxgJ2Cn9oIPh3pnM10WKL7bZMx/sPImzOOV4/iC0MlSQirz2Mj5','user','ak_db4d261e65b13c1e','2023-12-28 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$YAld7ahMNJL5QZMoPqt/U5ncSrVRnq5vomQrk2I0bYQuxgDfOnjcF','user','ak_eaaacf7139bcdfff','2023-12-23 10:01:00',NULL);

