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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$wTn7QjRyvp98ZCrdosOwyPZVFw3.BeQrf8TTUt1vENNm4A1ZK0cjB','admin','ak_b76bb407ca5c3dbe','2023-10-02 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$vYhJKQH4sjtnfH7iPQlmtsOLnenZIzFg13bEQMwzIxob.UBhL8AHi','user','ak_4aae1db9a9209a08','2023-08-08 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$D8gFXMB341L.mARer9JtpkjugWsvptu/v8F88YdVB/lzt/WSIU/a6','user','ak_2cb331279652c9af','2023-12-02 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$22VXSEU4v3YN6cqFNv0qTLkGrYpbz78MXhoqXmUaE8uTSgN507MDr','user','ak_eac04f42ebb6b996','2023-12-02 10:06:00',NULL);

