-- Host: db-master-9.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=5646;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$syOUhkyeat9K2QbFZ/.EjS//wlLJPUyvTSUY/PybzWTyAdfuUsANa','user','ak_e7872b5a1e757744','2023-08-11 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$EsFngJ3vRFVms2CGP1TrpzIHo4FbFY.qlGRfGmBIg3QQnmUxrlGyB','user','ak_d86e72d94e9b58fc','2023-09-05 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$R3Z366ZoZwl/yo52EsY/x.dvM.zbPpiQY0Q4ppBAEn66oXcOh.4UK','user','ak_a220d99196ab65a6','2023-02-01 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$tX1KqzVT2HQzuOM3y2CcUy/Kj1GKZGe3R8NwgUH9tV9VxLHKXWWsd','user','ak_a41d61c8fd616cf7','2023-08-26 10:21:00',NULL);

