-- Host: db-master-3.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=38496;

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$0EMatuJ0JZVGkDOuulcyIHTd24pbID52AN7OVxk.4hzu9MO6JtPd1','user','ak_b1b69829f37f3004','2023-03-13 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$eoIdM67a00FtConkkQl7cojgNROSyd2Ya3oJBBqnYQylYaG1.yNMr','user','ak_a2f9eaaa5cb91385','2023-02-24 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$sy6WeICippiElXDbwPGjYKKTNqRUdaEzBhCsGuiQwPIcjwkHyih0x','admin','ak_97a912a6a6426227','2023-01-13 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$m4eH87/p9XdIknnGFk4AI47Ui/b7eualc4k9UAj7Ef0HJNDEtgQOP','user','ak_ecce0ea8d3b4a433','2023-12-14 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$uWep53iH57Nhlp2x090.TtGAnDbJhKWbhkdNCimp7mtUDncOVHWr5','user','ak_2f6a076fd9a5408c','2023-07-12 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$uPx4djc78I9.yFb1ti4I2yYTsj0YgwoDC66RCVsyhcjdPRKidPCAT','user','ak_9a48325e6de19318','2023-03-16 10:02:00',NULL);

