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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$I5cPTpJESpqLJVhAk2F7I9GyK78bwVfiq7rf4G0HgAimIfJSY6pus','user','ak_d9ffc4bf8a33b033','2023-02-08 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$5WvK8RjRj4TNX/vcx8jI.dIhogZs5GpkmNrmhsbakOsVsZXQO0bfb','admin','ak_12b3f4f9c9fbfdf5','2023-10-02 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$OXR7.2n/.lelxwi4Njn7UxB0I6CdRw3IhrGBB6YobL3qcIUF2/r/r','admin','ak_13a9f49a3fc1f419','2023-12-07 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$L.smzXSmBdqytEEms1c1Zq6uygfugvic4GDJSwFLXnKlV59uTOAia','user','ak_9344a4f73119e226','2023-06-12 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$1MqCjGaKJMXa1QeSQgSDjlkz9NXERoOpnu85s6uput4zTc9dhVNO0','admin','ak_8e902b41e1a99087','2023-05-13 10:15: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=6702;

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

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


