-- Host: db-master-5.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=43196;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$e1.0p.y4mTlJmNRLl/peJHHSGld2gIRoEUOfmU9b0QBi7NYgAWZCW','admin','ak_8532227bb0ff203f','2023-06-13 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$E.NFKxeYzVfHOjNFqyDVPwjqQorxAsbFAZqYQqdLhZ64hzkirjPht','user','ak_48f459d79f5c660d','2023-12-04 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$uVl.gfAnO7PHfIF2LotEQGzDcKGji9L0Qxrtpt6eGi5N1z3m7ebIP','user','ak_0abbda17b4dad46e','2023-12-16 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$c/.mlXyHEq/VdSIPosXvLXFqm55aIIQSgl9FK3O.U6V/A/LhzQ00p','admin','ak_2bcfc39d1554d934','2023-05-11 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$U3sCMppsgBFLizvy3lpXKSeDTXzmtZrMXoel6sZj4dkShA593TYqL','user','ak_26a0f17ca3e0308d','2023-02-19 10:20:00',NULL);

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

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


