-- Host: db-master-0.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$zcjYvrsWevnMA/.ONCnsy4MX8yDwxAWjr7.Hap3Xau9FJIQ/Jn7zv','user','ak_43a66f7ddc82d7d4','2023-11-25 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$CfAndC7QV1V2cR/EJCMb0.cLa7MJaC/gbAfj/szPGNJ8MyP/QO5IQ','user','ak_c77ac2d5fe363a71','2023-07-27 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$ck5H8wLyzY/X0STGXc/eR2ogVveP3ptYFtWchk1WbYJASfyuL8kp0','admin','ak_b4bb09b8d987ad94','2023-05-12 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$8E0O3DrhNCracAoPadpmIQSNumGWN3xnCPNPMUOgBfJ7bHiG1LoL9','user','ak_9915adcd09eaa032','2023-02-05 10:23:00',NULL);

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

--
-- Dumping data for table `products`
--


