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


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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$NHSJsBnIsbv62YYl0JciMN3y4E/6LxfZfCcKRGezbLrKCRkAJLBW2','user','ak_4c44e08de090c6d3','2023-04-04 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$gLTITIvSfA8NkwfXt0YiWuc8ELGUX9eYEzPYwIAI1SlTtY141AIQ2','user','ak_941cac3b09060da4','2023-07-15 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$BeRhiPjCks0W9cZ/h8a9t75mPEOWScGFgOpZrc4rMRz4kepNnnGIc','user','ak_b909a1b7cf7e5def','2023-03-03 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$VboS0RtXRyhsLlhwTOFkY/fj6STEbdNEX4SgkX2yzPlfTUYQPcFl9','admin','ak_6447dfd3dba816b3','2023-04-28 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$Jr8rAXZZMWoYTNXH7sD6iITiZKLGbGaY99aYYyle742rwfmt7VkxU','user','ak_714bf212ad63a9c0','2023-09-26 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$Z8FKNxw3D3j8Ksav2jVY3Vj0.6gdM60vcx3GwXOspZMzMUU0aIUjg','admin','ak_de05a844e449cf9a','2023-12-28 10:05:00',NULL);

