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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$8l7gEFat8EdQk6Odi95Q3m0/dhc5FojgPqRddDvNlZw2D4F9gQXsv','admin','ak_223eb8ac35acc3e8','2023-11-27 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$Oc5O4dXlckgETvQjAR1Ir1PsLIgjdEKkJp.HIs8Vo92YqLetGTrFX','admin','ak_cbfcd75e9c7b1b54','2023-09-10 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$S0kCh54ve01WVNJj4ysiHJvpQyCgRl0WZ0b8Bx0bD71mDzgKcYS3/','admin','ak_d785f48eaeb1c027','2023-03-17 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$sz/YnyNEUr/CQVN7n/4Y/oii8mRX8Loru3lYvNj3PHjgnUeicf8os','admin','ak_0c371889824c6afe','2023-05-07 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$unRlA2u4axs1BkhGXM3RzriUZYLEqyKert8Xgv08LbS3SXgb8ac4b','user','ak_387e9dfdae59dfbd','2023-07-10 10:23: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=5611;

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


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

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


