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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$A.8spTTu0dQsPOQbEI1SMbypjotiEBuwG63sax0UaTiTj27Og93pN','admin','ak_c0d2ecb604153fcf','2023-12-04 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$ov/mNmpBzv7VWn5/b0mGQMIzElEu.iUIg2IuNN3dv6TefeNQ3gLVy','user','ak_fac19523b1ebbf5a','2023-02-13 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$qJfMcHY8ihelsYbdiQ3YezxmPnuJQQTms4Qu1uPc.TQlf.G.3Pt0l','user','ak_d8645b28c68487da','2023-11-22 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$/uW161.lSd0Qe6Usvr2FxmjVirhzhzfwbpStRgZAl7XeXhrX9LSAk','admin','ak_d12bd3923d5251c6','2023-11-10 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$N1XJjQgqfI2xRxAMVEUFXNNSAjrgzQCBGYK2OUGF1IFgyG5rTWB4W','admin','ak_f4237ca100ea5880','2023-05-06 10:16: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=34258;

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


