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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$0E5uH5OAuHHY8ugv6OamsuW6cHySbgWk0.EyopsGV2wODTWsTha3p','admin','ak_b4527a4a9e3beb59','2023-12-06 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$GexG0A4RM8lB3zWIreoc1E/vStykz/jprcvkwqJU16/w9o7Qu9N6u','user','ak_5edcf9096691f4f2','2023-09-23 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$5.tTfXd/wkRQYTqorvQDbIMP1O6HgP9/jsm0gJPl0jHGWvMbTC2lh','user','ak_a80eb7e7cb04808f','2023-06-04 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$45lC3IQW9aWh75sblyN3p0zWGYTqzdvgapU0iJXmxTNuzpcFtwNjA','user','ak_aa156adbf17e0360','2023-11-04 10:00: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=3223;

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

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


