-- Host: db-master-0.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=29675;

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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$4cTJPISoeyMP9PzIAwA17XAee7u73n.T66P1cjxezJd130xR6GiyP','user','ak_381399797c17fab7','2023-06-05 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$X/n6mPUVHnZzRoNwP3I8VfPFeo3eJhnTlPEWfyCmg7JCBGp5r/YvZ','admin','ak_f2a7e87f1030c6d1','2023-06-18 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$XndM7FX3QdQNkQXEjm4FywOjFRfB7de.gp.9biiqXDXtaSQIRMuTF','user','ak_6ef36fa33b994afe','2023-11-08 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$p/TkoKpKl1Lx58PU/B.LKKppRo0EYz5U7F4R9vddT0ciTw78jDX6Y','user','ak_cf1d43cbdc34745b','2023-05-19 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$NYy9oYJw7TOp25Vbw85UnmZpojhjZaLJbnJiUt9l/sHNvYvFmSX1c','user','ak_b824360f8f6be627','2023-04-16 10:02:00',NULL);

