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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$DUa9pRSAIS/NYtVAvQDs4DR7g04t8gr1nnm2p0TxMSjy73mNj.5/w','user','ak_70f17afcacb84256','2023-09-05 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$i8ATNR3iZWK44FvstDVkYJfbfZpSE1mBxkn/kdwSF9c8wjicNLVqA','user','ak_27409d35efe42dee','2023-05-22 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$PNWNqzXT6T2GlLt6Lf3rtLp5G4nkXb38zuAjcYKbCevQ/lzdZ9MiI','admin','ak_6f58222932c164ea','2023-11-14 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$wMU4OdHEjPq7oxE9IWJnx185ce/GXWUW8R.IBkgFspPEF/jG6dPOy','admin','ak_36e130d27f5e431c','2023-02-25 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$ZUArPXZ4E.daYzlwXJdDBbylwzC.CKimkJjGDIdvhApiFa2cqvnMf','user','ak_17eaeec5b9a5b3c4','2023-10-05 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$NfmN459tDLfsLwK8sfJ5nMm6AQHlE.aooKwZm2iCi93SQWJeSgoCl','user','ak_5b7c052e250f680c','2023-10-06 10:08:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@internal.io','$2b$12$0GSpA4y3ZQq0w./YCAizMjIW69FEESLQaV94vQlus1kNptcwRxKni','user','ak_d9d371bd64f2c3b4','2023-10-23 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=35702;

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


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

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


