-- Host: db-master-7.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$mXn764Ak1hoBls2o0t7LB9v3C6PfqzQyx34WArvTJzku5iOE8gsOz','admin','ak_254307d4fd204620','2023-04-12 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$f.4luUGdSC49e3mLMrz1.VqgyGV6A9ztIJL3uG2WXoae4QC1Gc2ok','user','ak_ff9e8c986684e05a','2023-01-26 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$Lf.GqmrGjh10roLdFcAVl8VBrvZhvxb1Tunt.mk8ydMvST0SrndRC','user','ak_ac44a3e6faa0923a','2023-08-12 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$0rHgKvDEY...w5jJKvvw4F83GoxgCxLMHWtq2.iMNCoAD..55yAW8','user','ak_0a4bf0b525121338','2023-07-16 10:12: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=47960;

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


