-- Host: db-master-1.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=28295;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$U8lxK8qb8/.Mn97.qYtXznfrlm0XM7h3QOM7p85NIhxLwCfUdipD/','user','ak_154ad3ed33078e6b','2023-05-01 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$OSlZdebUYxsWSteAwSj88/nLWl2ttAt.P3Fb4EmjbFJjygshvk1M5','admin','ak_99afe9f12775a8b8','2023-12-09 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$k2sqvdzR4sapcID3EQJp8b/r5GAN0LWH66cGYVKu/91RHqKQicnDy','user','ak_e3cfeac57fc0f800','2023-11-11 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$UiCpo0VZGJOCM9pA93ItcW2rkt7stkftui9als61rqrzlE7lQg/q5','user','ak_e95a83bf2a984f0a','2023-04-05 10:23: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=13057;

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


