-- Host: db-master-2.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=19712;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$8EARhfRm3elQdNfXynj.RtrZiVlkQQgjwC3sWam6.VDnighffHpn7','user','ak_46892b6307b751e3','2023-08-04 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$wIrQVEioqo.ym151zVEOvuSrQ8uHat/miLa7StyELuVfGRUL6Bi0S','admin','ak_3998bdc50fa3e997','2023-12-08 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$UNOmyA3QQpISPBxqQUqes/AOZD0RUVDZFGT5sM8eE0e9OAHq2o6ft','admin','ak_c3ed310c9aae0715','2023-11-15 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$VE7IuYD1eFJCw.JjHmy.UFTKhp38cr7hkNHD8SOC2yUetsNZSz8j6','admin','ak_ba380e59a7c2a729','2023-09-11 10:11:00',NULL);

