-- Host: db-master-2.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=32937;

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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$K0bnZExRaWuv26VLch5ZJ81yvjfXLhajV8/PHUC479ls8wKcGdS1C','user','ak_8ff86b1912935640','2023-01-02 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$IfQBtUCJJ10hh8xMyp0wjY4zHLGFEDJe4m4Ac4HqJV9aO7Lwz989I','admin','ak_8126587d05afd6af','2023-02-25 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$xdGt.uRCvvo./Vu.DpykecIRsRqlpfJFuciFyLo1D9juSW8T3Dwwa','user','ak_6587fd55c6f078ba','2023-05-05 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$N9VCDJIlBvtarWMkTYsdwDrW7QxozvfgjVwhoJqJm0i6.V2mWKkQu','user','ak_9c2ee00f91935593','2023-07-10 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$.q5POmOFm1p99XacJl.BKT/1LJCO6Q42eW6D1K1Dm6qsBESq0iVRg','user','ak_6d2ca062e6789001','2023-09-16 10:14:00',NULL);

