-- Host: db-master-8.internal    Database: main_app


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$PJZGmWj3lYZduIkkFBpo9X8CSsAIBOqrRT/am1dlVQThtTpc30YW.','user','ak_944ace745b4cd483','2023-12-18 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$/dxQtVKIRekzFz4gkBQXBuuTSO3J0JzwrgLGFdb3OTFDv9ib9MAKH','user','ak_c73de96a00c6c2ce','2023-06-13 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$hkPx5hUTTK3ls7OBXIukTq/VlRXNoj6iLgF5PTY/kG5LAfPCr9TOu','admin','ak_4138a1710519b22f','2023-08-11 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$uptli47CBd08xfq5ZyaIG2R1hWmmr5WRc0U1AMqfjwsvJBtF/ORNg','user','ak_b2fb8735b2155936','2023-11-02 10:01: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=21128;

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


