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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$3cIVoe0IYP5gzNRmR67SQWeMyZm9jKlgiIL/VIorsnXrKeP1dagEL','user','ak_4cba29fb40c73d95','2023-02-22 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$nwtfj2Ep4OvsW30Pq532DjzmQGq0cZ1IyshxGwNZ6Kg8AOrkecwOv','user','ak_d52e2d01c8a83a23','2023-07-05 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$VFGo3jgXYfHy0nvjLm37UNzER9uY0sxIsll14XrEgL8uaBxNPp2e4','user','ak_6b8fb6ad73edf056','2023-10-20 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$17Abd4i31HZfvPUkBHgkc2lFvre548UjSox85No1cCMJfP7z/0TUm','admin','ak_e3bd81afb002dcae','2023-12-22 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$.V/evzZd3IlL1GJw8xzxFdefbcRUv6wT.aJ.g/dhuZzfriOpGsedN','user','ak_69b4d92a8b7c8772','2023-04-18 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$wYHM3eQMML6dHRDN8nrdM.dtVZ4hEjBroAubXucNTMvtgc.orZAgd','user','ak_ff6500ddfd9ea5f8','2023-12-28 10:09: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=16942;

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


