-- Host: db-master-8.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=28786;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$RhGMCJsFfOHFUQsspfzU.I.f3f2jXkaQQsW30i/IQwdUHx3JmdlSW','user','ak_d73355f58bd141f0','2023-07-19 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$q8ti3PjP/8z6hKfd1gFQ2JbDlW2czKXZ3Igqh9bU6ahNOsYYQYXPy','user','ak_bc8f24733c1cca6d','2023-04-06 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$H/etBiSPi9l5v9UrIBd/0C.m.OdwSHSIMTLjM3MJD/4ZVhMLh7IVp','admin','ak_0a0e30bf13c9597d','2023-11-19 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$qMCuVH3Mf2vK68ulEIL5j8o7j3dSWmrUhi8BBtxtCYrrhVkP8NrLP','user','ak_98c15e66501480c9','2023-12-12 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$tug9q08QIbkuj4G3wkjM.faXLl/Xf6rtvT2jA/gUKc8gP.8CcIAOq','user','ak_8caaec8918d2e752','2023-06-07 10:03: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=27248;

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


