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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$pZ3SAc5FvR3.XICW011SJFX6CdN0W9sw5J2PlfdQk3vMDmN5ZgujJ','user','ak_1f07af02b01b88b6','2023-06-10 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$Ig7yVURt6RKQ4qsfMnFxVHghCQweccZ4BuYcysjRXRVsqgr83nBUW','admin','ak_fd0ecc9188e69bd3','2023-11-07 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$MsyS10bIJ32PGtKXR5KQI7Ut3QBXTFC1Ycu6XuWh.1ylIMk2W4TQP','user','ak_62edbaed92486920','2023-06-12 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$4q97DJzwYcR1Te4iIZEPdTrHiYan3WGu.DeTCdn6Uutt2Xc1l3mfk','user','ak_1f3d2093119c8b63','2023-12-14 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$AEe3j76Cgh1AuH4HeALs8Vjyvs8JbCWeclmkN5u9MzFQzJoxgsGCO','admin','ak_b0b0b61bd0831399','2023-09-20 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$pJwr7aazZa2Xk06MEKyPg8GtKHDVq.Rq6UddqiopcYVLStwbUDBWd','user','ak_18ad1cb17d69589a','2023-12-25 10:21:00',NULL);

