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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$xVnGSf/sfC4nq6ZMHbxjH/GvDhENW6I/kjOfWujmK5FyGd9cyidu8','user','ak_42d0c2b1203b33c3','2023-02-27 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$O9ZCEEgr0V1pX7WDS6PEbnFrzUcw3JP8fuElZZsHIBAF3OaTG28b8','admin','ak_108bc46e847ad52f','2023-03-13 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$xwhvTnmrhsv564O.CEvBBLthnoMVW4tw7ImBnVJWGLQ7h/7vsYKdK','user','ak_590c3b5b5d60afa6','2023-03-14 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$mkzqHyW7tD4ueriguTRPOhAeQam7ZoN3eWcHRWEYOEMTUfHkuQLXB','user','ak_7233ec0659b1a8ea','2023-02-01 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$Bp.zENMCoAdl35opWpHpyctTG66jCfMXhKsDalbnMJAG8005F3Wg4','user','ak_1ad7d28ebcd113f3','2023-11-01 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$xQ8Rtsp617fO.stwHptTQ0foej/0QQFT3.73cO1iTtxDymD9.oA3O','user','ak_897b9c3b584b3360','2023-02-11 10:03: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=43205;

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


