-- Host: db-master-7.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=46059;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$m8RxxNSmHMZbw7V2Lm7.DQGoWXaKJ/VjC8SXEvgvRuI07NBfKS3ZG','user','ak_23e75c5d4a436f4d','2023-06-06 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$7Tyqxj3CBjjVYJP4AX9BDw2MsD.7q5/EdmLTVgCB9SUwu.uL7Tt9V','admin','ak_b757b3ab10c34aa8','2023-03-24 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$rZU/FuX7gy3b0pmStOMPpUHJnB1qg6r0yewSjp6MgKmx309BPHHRq','user','ak_12000d8cdd6bfffe','2023-04-02 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$CklOXwpqdQgUC.w7/FioqLm/hb/s1dJOku6pURKO432l40TER69Lw','user','ak_d27a16c3061d7c9c','2023-09-27 10:22: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=42869;

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


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

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


