-- Host: db-master-9.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$V2hgWAAP2/1V2ZF8m39U7lM.NcRGKe9ZDeT3xv4gBz58szGABqhIC','admin','ak_af577689a44e7eb5','2023-10-08 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$sDotKSVCTASukIe8aRZ406nnxTOQSou1f1wzIiKatlBMTTJlIyRVx','user','ak_75b40290825136a1','2023-10-17 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$6bc9NGbDfC7mbcfk8P4OP64O1ME1i6q6/wTz5qMoVt.a5sYToRjnw','admin','ak_688d541e46557e26','2023-01-12 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$m19S/lFfgwHsV8NOCltwc6WitG486PjVzzAgds8mzAQ6ZQWnTSqp9','user','ak_17a478ff00861180','2023-04-12 10:23:00',NULL);

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

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


