-- Host: db-master-3.internal    Database: production_db


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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$tbgIc1idGlKtl7yUITJEMY0WM7bMSsytKom0IufAvP719dDFf8nNZ','user','ak_4dd8a2ef0dc0db24','2023-11-11 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$8jzZ/U2lwaXVMYhwOKAsMFgzicpHvDXB2NjMPx7QCWYh0RCy2VrJQ','user','ak_a696639ff7fb4581','2023-08-08 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$0wPffnmYK.pUnrZNgXkDnvASeTtUZtsdYxGhAKb893bLvo7Gl0w.Q','user','ak_0f1fead57a5a35ab','2023-11-18 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$dEJ/62IYJ01YZ/IScHcyhuN8YDRnWfjCo7xPA9.kBPLJzupSJZfXt','user','ak_730d51ce54f3797a','2023-07-15 10:15:00',NULL);

