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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$LlxGYBzcyoa1Ry7g5KV6XNlJuDztd5HzVNI4y3lUGFaZD5O54adQH','user','ak_b864d263dc125877','2023-05-18 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$nwhcvKmfVGCDBH0kd1wWFVLsbST4mP9nIceWzIst2dJ89o1ixq52z','admin','ak_f1979871859bab6c','2023-11-09 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$96VGPMPdzz9c5luxqIHBHqy3IggMMIVXMJsP/r0i68QKdDEFupPaZ','user','ak_ad4888267d57dcb8','2023-11-01 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$aSZC/MNhnk66mgP/COoBKBmmSsSN9BfJZbkg4wQ9HeWohEnO3jYEB','user','ak_cd5d3d71ff8a33d4','2023-02-26 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$r719/uo3M2pORXt3olNzaZUWXpgqsk8tsKdRex7g1khraYn4XrAv6','admin','ak_35eab98df81cdc0e','2023-06-20 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$piIeVSpQ3rzZ.Q3kmpRxJSZuXeAUHFGspR.hjLZWzu8yDdGbpEk3A','user','ak_420d0736e72d68dc','2023-05-04 10:18:00',NULL);

