-- Host: db-master-2.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=49685;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$W2LH/g0Ji6Rfs4wFTahAEbZPXmmltSXHBpGBO.unJFKgIUqqqFP.9','user','ak_7f0645ddcd068a79','2023-07-12 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$fo80i5209LYAcqOwDeovY3ytsfsLNaeawAaWAj9W.ZSxPW6e8AINe','user','ak_c7b807f5887f4680','2023-08-03 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$7AYVkm8YHqkFQaU/pFS3lCW3wfEAzHPV1M0YJZg142hdHrKHgGVCE','user','ak_78dd3a6fece648af','2023-11-28 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$M6s8F.uHH0Jer5k38kJdvdt1NwltRyjFZld0aEnUC/9.pLEe0kgg0','user','ak_c1fcc84959c7836f','2023-05-19 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$QUY0fPdqSK5j.WgP7MLSsoE2wSYKd6GypqU54.FKDJ3E.XohpV/T1','user','ak_180b4fd1ad9b854c','2023-02-08 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$R03898.20VIZrlE2.d7ayWv8lpWY8jRprfLY.IdZMroPtfVnMnMnn','user','ak_298ac41debd3f941','2023-07-22 10:21: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=15741;

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

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


