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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$Obzy58RCxlKOTUoVvNZi4e7mWEQkpfQY8ZYSpjamUiIqUmpwotw4v','user','ak_62aed42ec1f09354','2023-06-01 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$YYv0yoyxhfPdx.5kWgMk7fc3kbjOCOBNHr6I0braMzyGPnJt6LwNN','user','ak_1b52d7d4478356b0','2023-03-04 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$t4LZApArX.5dj5ghnfrGSetikavM/jae0On5R84sWay5E7hpZ7dj8','admin','ak_98a5e6a26221b41a','2023-02-02 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$wJxWofP1svNjFGnqEOCvszVZoEotmNeHunzVGei0boXaXDdQQjj42','user','ak_72b2df7f7f02d4ca','2023-03-09 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$og4hbsRqMwTX0YPQGjNDa.k4ksNmbS5qoKQTNQQQ2tIVvYHrKvTyy','admin','ak_2ce7ab900ab8f2af','2023-10-03 10:07:00',NULL);

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

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


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

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


