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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$4HL1lhC/orjNNsiCr2m1g5sATbuTh4yVNasdRq0kb1oH3C0NGW2r9','user','ak_71db2dc361ee3485','2023-03-19 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$15Oepbs5GRGZw.bca7o/44GjFAxe8frnvDjHT35gTrs1fQeSWnSAu','user','ak_18b49a7906ca637c','2023-11-04 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$JrraTpU9JwgSxpb5tzA.hOqdw4llpCqkRAxHPb9oiNsKi0xRKSCIr','user','ak_6fefb4eec18651df','2023-08-21 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$VvLD7l.hN8hbl2UZnlYwxL6g/S./M3v9KVtd0DwgiCWweKf1qe4VH','admin','ak_30ef3ebda5699089','2023-03-07 10:07:00',NULL);

