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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$jtW7.IswwavcsOuc/YRCdZMRY51p8TAAKwCMn.64/MaRwxGuc6zoO','user','ak_345582c6d42d87c7','2023-04-12 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$QRdyiZ2iepbKYj8vPXK/UHVmbPe7OTXJwQEgQWkxIKmwZbcDq962d','user','ak_2b91f6943f189aff','2023-07-07 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$VDkfOypUz4BLVNNqjCEgU1x3BXhPDZcewTgP3Cb5lv//rJ7NXfzlI','user','ak_440d8f7033856b6f','2023-11-28 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$TaQdrfCZ.K90Jsusi9OUuWWzQqb7VK7j7t8uOemf1gvblzLZ41YnZ','user','ak_ff256e62c4918254','2023-09-02 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$PqK0npsDrTMp0JOORFKR.4nUYqaXLAMWC7.rVOy6YJMUtmYddxks3','user','ak_5f887365e1d66e7b','2023-07-05 10:23:00',NULL);

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

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


