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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$qz3Yl/WpH5OFeqioRLOusRX1zKJF.GWj2o8.ooooFN0.U7.BvgnsA','admin','ak_f909fe2b2610b694','2023-07-28 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$TJZ.6cqAA3KJ3ERqPWRQ3oUSZO2mcM3yi4RcbahVWcrx8kkhPZ5p4','user','ak_62858a5d8627396e','2023-09-01 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$KcxaiI2PyKJKzKghNabag/PH.yf3by8PTGB9qvhCOmUn5/3Q3skHL','admin','ak_13447472b20284fd','2023-11-20 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$p5Rh54tQugl4e8DBvm86onMdwcuGg3cIv5HgEHdWpRXBRUxXaY00M','admin','ak_7f09f5a3cc771c2c','2023-09-05 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$sFMyhesFvr5PgEnxLaCBnY1XAx2MXtydWU3dtmzoWllgeDvTAvBei','admin','ak_27e3920a5431b652','2023-12-04 10:09: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=22718;

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


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

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


