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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=12723;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$0Ff/w/OOkVrxFC5hBblP4aU7oOjFi7wofzIxIHB4uTYXTDIG1WUM9','admin','ak_eeaf8683ea1f8657','2023-07-05 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$OHEDx9F3q7CyB//FSm2J1pZu5ItPJKVPbERFTfYLmVPjTMwe/grAn','admin','ak_eb86fbe044df802c','2023-02-17 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$IAfEpkcqlQeC0QnouawotnFpMDbGbCdguqPXktbZLBLkCXJr6Bwx3','user','ak_6ee4c048f0538a71','2023-11-15 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$xCcBJXd7/UT/hu/lKitnuRI0xG4iCo0yOOOPEgqog/YxuI4fi13ep','user','ak_1c98dbc7e22c15c6','2023-06-23 10:17: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=21800;

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


