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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$NMe88vCiarX7zDza6bXU65c9lSuOC1UPd//hMxyrRCTfX5V6eDELh','user','ak_a4cf762e791ccd58','2023-11-01 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$p3Qz2F2HZDvsyEfToB3fcraadLYPzC1Lhy7m/QRDfZ4aovrd.hi2B','admin','ak_c858ef35da148976','2023-01-27 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$MuA1CtTbIRpqqPFxAhupiHZYqHkRHCGwmpj/ETtOfueVJzHA84/Sl','user','ak_66d89be499718029','2023-10-12 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$kdbYXnv.yncbNgljU7P7sTsC6aS8WMNd81ozRPat.IDi8QrihVzax','user','ak_b72b0b6f3b58d75d','2023-06-21 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$stZUjj5Jk1DcbTonvH.SGT.47nicYD45Q2lhdH0I9iOXTQCiLuqib','user','ak_03ec0dc5e9c4587c','2023-12-27 10:01: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=6574;

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

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


