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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$q35T3TNH1FjHAvUp5nY3c9AI8ZkKojUkQFgKB4g/f5/cV1ZFx6fRq','admin','ak_1864f62657d9f403','2023-08-09 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$2NeTVCtHnhQBWenjMN5HM.e9As/S2/cMrzzjBXdDSenWUoKrAStGI','user','ak_d98721b219ae27bb','2023-05-02 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$w44Z0Ygq9SKGVEhEvaoMZAc3gqGNF2CzqXLnBVxWy72lfnlf5b.jB','user','ak_d31a64cc3b6ae6da','2023-12-12 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$dDCnPhoKORh.mcJtuUukgLXG7QEZn6Zrj.DdGkWo5jwOAdnlgiZRT','user','ak_6d0b449b6e7eeb2b','2023-09-20 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$FCQyTgkHe1oRFYifXlc.RoKQRqfSigBkAq373Pz.JFnOQxN3q7AVE','user','ak_250c7983fd77528b','2023-11-19 10:09:00',NULL);

