-- Host: db-master-6.internal    Database: production_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=36854;

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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$Ny5OnPJClyufYbCeV3BoVlqnGIGkC.kEi4CsJKD3qWwFXCz7Pizna','user','ak_896979faefac0f40','2023-12-09 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$6QHl4kA4D2qYe.tvxCYn.ULlkFTqEVj7edXgpb1WBxIrgdAYFlm7c','user','ak_79d415acfe73ef34','2023-12-21 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$HuInAus/4Ts5nB5oMeVlgJfpx19wNLg5Ayciz.NEg0/VhcYuZm1Od','user','ak_32fb6332469c0d9a','2023-01-19 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$wc6J1xcksS/KkyEfeTQW4RArRKxMVpV4R8kDy.rjBaghsn82GObcl','user','ak_fd939f0fe0bd4ed7','2023-01-09 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$kmJGLudBR1dxGTAD7E5diZRVTqwE9wDA1BiNmMAMn9SDxpUW8Uhqk','user','ak_39617e58048f81f5','2023-12-08 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$KWxK1rrRfH8WY4Ny6yuewHxr8UAFFqMlPxFibURfq9VtkBl5JPueg','admin','ak_aae9074771d503f1','2023-06-25 10:20:00',NULL);

