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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$2I9i.R9f1uFeSVvLpmnBJxx6wXl3GccqWYkyKSFK5oe4u4XqIn4oV','user','ak_dca5ec385845ae89','2023-04-21 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$tqrXImhg16mq.8mgdjCaLocVIqtXxeUfh4pNEtN2m9yGge3EMZdjH','user','ak_af76560e7359642a','2023-06-23 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$tEc2VFSRXTT/bpR2WgSUZ9Q.Lsj6Ja6HJe7/lMDlC5PUoVkwiRFOp','user','ak_050f37748aeffe19','2023-08-08 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$w8lzLPKVjn/rF.gDl97fz.nPBa1rIIsCk7YszEb1tgHMBqZywq6y2','user','ak_1b8becee0065714e','2023-08-22 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$cwREPuoh7MeYQ4JYYQ/pZ3dtAGj8tRCSg1eh5n7ZTMfHkfkImZgA/','user','ak_843ecebfd35016d9','2023-07-05 10:22:00',NULL);

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

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


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

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


