-- Host: db-master-4.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=14095;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=20565;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$sUlyNhvZF70P8ZT4SiIcsp.0EbW2ZuPRCBI0ejx68ujjZyuWr84gJ','user','ak_7168597dc479f98a','2023-02-10 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$ca9XDnyZlTIdrfnKgxEuVE.qu.oY4XA17UHwZ/GhYrfgTUyFsy3sl','admin','ak_0ae9287a6324f5e7','2023-05-04 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$yJh4w2LGomTpNBxSV5mQNhGkl73RWxRSZWB0p8OPvTtwJWNmVy5d6','user','ak_9fb4c931fa32600b','2023-01-28 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$5d6LgLCW5GiQW85DEsLM13v75k9WYXDBY3bAJgS3iSL/OgRz5MUFm','admin','ak_c76138f27c55cce5','2023-06-20 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$2P1Ojn9gbt917gD.Inulj9111SlHtsyEhW1VZ5Tp6DiTvGKy7Kcvu','user','ak_c3b383430bd25c67','2023-03-02 10:23:00',NULL);

